What is the best way to navigate through an actionscript swf using arrows?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
set the
tabIndexproperty of theTextInput. That should allow you to tab through the form.It is inadvisable to override the default functionality for arrow keys because they are used to move the text insertion point within the textInput
As for enter, you’ll have to listen for the keyUp event and, if you detect an enter key, move to the next field.
EDIT
For Flash CS5, this code should work:
important: first drag a component from the “User Interface” group onto the stage and delete it. This should put all the required components in the library ready for you to use
EDIT2
Change
in your code to this: