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

Chapter 2. Using Event Handlers > WHAT EVENT HANDLERS DO

WHAT EVENT HANDLERS DO

Event handlers orchestrate your movies’ interactivity by controlling when scripts are triggered. They provide a “when” to a script so that it executes only when something specific occurs. Every script in your movie is triggered by an event—a user rolling over a button or pressing a key, your movie’s timeline reaching a certain frame, and so on.

In ActionScript, event handlers (with the exception of frame events) usually represent the first lines in any script. For example:


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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