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

Chapter 15. Time- and Frame-Based Dynami... > CONTROLLING THE PLAYBACK SPEED AND D...

CONTROLLING THE PLAYBACK SPEED AND DIRECTION OF A TIMELINE

Normally, a movie’s timeline plays in a forward direction at a pace dictated by the fps (frames-per-second) setting in the Movie Properties dialog box. However, you can control the direction in which your timeline moves as well as its speed by using ActionScript. In fact, you’ll find that by combining scripting elements (which control direction) with the enterFrame event, you can gain incredible control over your project’s timeline.

The first two scripting elements we’ll discuss here are the nextFrame() and prevFrame() methods of the Movie Clip object. You use these methods to move a timeline to the next or previous frame by employing the following syntax:


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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