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

Summary

You can detect key presses in many different ways. One way is to use on (keypress) handlers attached to a button. You can also write ActionScript code that uses the Key.isDown function to check a key at any given time. With listeners, your code can be alerted any time a user presses a key.

To get longer pieces of user input, you can create input text fields. These can be linked to variables so that the contents of the input text can be read by ActionScript. You can use input text areas to get a single character, a word, a line, or many lines of text input.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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