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

Chapter 15. Introducing Complex Interactivity > Controlling Nested Timelines

Controlling Nested Timelines

One way to create complex interactions is to use one object to manipulate another. You can use a button to control a movie clip or a movie loaded via ActionScript, for example. The object that you want to manipulate is called the target. You point Flash to the target by identifying its target path (its address). In Chapter 13, you learned to control the Timeline by creating buttons with the stop and play actions. In that exercise, you didn’t need to tell Flash the path to the Timeline you wanted to stop because there was only one Timeline—the one containing the button. By default, a button’s event handler targets the Timeline that contains that button.

As you nest movie clips and buttons within other movie clips, you must tell Flash which of the nested Timelines you want to control. For this purpose, you’ll want to learn two shorthand path names: _parent and _root. The _parent is the Timeline of the movie (or movie clip) containing the clip to which you are at aching the script, and the _root is the main Timeline containing all your movie’s elements.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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