TextField Focus


hello there,

 

i new as3 , trying figure out how set focus textfield on stage. found out if use

stage.focus = tf; tf focus , does, when type letters go directly textfield.

problems are,

 

  1. don't have blinking cursor in textfield.
  2. added event listener catch when user press the  enter  key catches enter key after click textfield mouse , having blinking cursor in textfield.

 

any idea ?

 

 

 

regards,

are seeing behavior in testing environment or when put flash html page?

 

in testing environment might want go control menu , select disable keyboard shortcuts. give better representation of how things work when standing on own.

 

also there kind of issue around setting focus. swf object has have received click before can set blinking i-beam input text field. "security" type of thing. prevent malicious swf looking kind of interactive password field , grabbing someone's password or like.

 

depending upon doing can have "start" button or make sure user has clicked flash before flash can able set focus.



More discussions in ActionScript 3


adobe

Comments

Popular posts from this blog

How to decompile jsxbin to jsx

Gavik Photoslide GK2: Not able to upload photos - Joomla! Forum - community, help and support

Phoca Guestbook logger registret bruger af - Joomla! Forum - community, help and support