• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 14. Events > Cross-Object Events

Cross-Object Events

In HTML forms, when a user has finished entering data, he or she can click the submit button or press the Enter key while in the last text field. Well, Flash, by default, does not have the capability for users to simply press the Enter key and move on through an application or form. So how does a Flash developer overcome this dilemma? Use a Key object listener with the TextField object.

This example will create a text field that will listen for the Enter key to be pressed:


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint