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,
- don't have blinking cursor in textfield.
- 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
Post a Comment