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

Chapter 2. Using Event Handlers > UNDERSTANDING EVENT HANDLER METHODS

UNDERSTANDING EVENT HANDLER METHODS

Although we’ve discussed a number of events thus far, we’ve really just scratched the surface of the things Flash can react to. You already know that scripts react to all kinds of triggers: interaction with the mouse, the timeline reaching a specific frame, movie clip instances entering a scene. But did you also know that by using event handler methods, you can make your scripts execute when sounds finish playing, when the stage is resized, or when the text in a text field changes? You can even use event handler methods to extend the functionality of the events we’ve already used in this lesson.

Although event handler methods and standard event handlers are used for the same basic purpose (that is, executing a script when something happens in your movie), you must implement them a bit differently.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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