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

Chapter 16. Interaction, Events, and Seq... > Flash at Work: General-Purpose Flash...

Flash at Work: General-Purpose Flash Event Engines

The documented event model in Flash MX allows you to listen for a limited set of events: key presses, mouse clicks, text field changes, and Stage resizing. However, situations may arise in which you want to listen for other events, associated either with built-in objects or with objects that you have created. A general-purpose event engine allows you to do this.

For instance, suppose you have a movie with a puppet and a puppet-master. The user manipulates the puppet-master. The actions of the puppet-master in turn trigger responses in the puppet. You want to define events associated with the puppet-master, and you want the puppet to listen for those events. You can accomplish this in four basic steps:


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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