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

Chapter 2. Using Event Handlers > USING FRAME EVENTS

USING FRAME EVENTS

Frame events are probably the easiest events to understand. When you attach a series of actions to a keyframe on the timeline, Flash executes those actions when the movie reaches that frame during playback. Frame events are great for triggering actions based on the passage of time or actions that need to be somehow synchronized with elements currently visible on the stage.

TIP

Many dynamically based projects need to have a number of things set in place as soon as they begin to play. Known as initializing, this process usually involves creating data or establishing certain aspects of the movie’s functionality. For this reason, many developers place a number of actions on Frame 1 of the main timeline to implement this initialization process. These actions are then used to create variables and arrays as well as to define functions— all of which may be needed soon after the movie begins to play.



PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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