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

Event-Based Scripting

The Flash Player generates an event to signal you that something potentially significant has happened to an object in your program. For instance, the user may have clicked on a button or resized the Stage; a movie clip, XML file, or sound may have completed loading; or the user may have changed the contents of a text field.

Nothing happens in your movie when the player generates an event. To make something happen, you must trap the event by creating an event handler or callback function for it. The Flash Player will then call your function when the event occurs.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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