Home     |     Photoshop    |     Flash General    |     Flash Actionscript    |     Dreamweaver    |     Macromedia Fireworks


Cervo Technologies
The Right Source to Outsource

Macromedia Flash Actionscript

Key Trapping Problem


Simple description:
 There is a TextField in the TextInput Component. When the TextInput gets
focus, the TextField gets focus instead.
 Now, I have a TextInput on the stage. The focus is on the TextInput('s
TextField) and I WANT TO:
 Receive a Key.onKeyDown event when I push the arrow keys on the keyboard while
the focus is in the textfield

 Unfortunately the textfield "EATS" the event when the arrow keys on the
keyboard are pressed... They are used to move the carets... Then the event are
"eaten" by the TextField. Now I don't want it to be eaten. I want to capture
the Key.onKeyDown event. I am using AS 2.0 and Anyone got a way to figure out a
way to capture the event?

 Thanks
 BeNJamin Jones

Is there a solution? Or in FL CS3 the problem is solved?

-----------------------------------------------Reply-----------------------------------------------
HEY COULD ANYONE JUST PAY A VISIT?

-----------------------------------------------Reply-----------------------------------------------
Anyone here?
Help...
Add to del.icio.us | Digg this | Stumble it | Powered by Megasolutions Inc