Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


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

Chapter 8. Controlling the Timeline

8. Controlling the Timeline

Developers making the leap from timeline-driven applications to ActionScript-driven applications will use a combination of frame-based functionality with ActionScript control. In some cases, it just makes sense to create visual states of a display object on separate frames and toggle between the visual states using ActionScript. In many cases, pure ActionScript is overkill. Some experienced coders snub their noses at timeline-based functionality, but there’s nothing wrong with using the timeline. Just keep it short and simple.

This chapter introduces you to controlling the timeline using ActionScript. We discuss starting and stopping animations and targeting specific frames on the timeline using MovieClip class methods. We also cover traversing the hierarchy of display objects to target different timelines using absolute and relative target paths, and changing a movie’s frame rate using the frameRate property of the Stage class, which is new to ActionScript 3.


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint