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

Target Paths

A target path is essentially an object name, or a series of object names separated by dots, that tells Flash where to find a particular object. To control movie clip timelines, you specify both the target path for a particular movie clip and a basic action. The target path tells Flash which movie-clip instance to look at, and the action tells Flash what to do with that movie-clip instance. The basic actions that control the playhead are Go To, Play, and Stop. For example, if you name a movie-clip instance bigClock, you can write the ActionScript statement bigClock.gotoAndStop(37), and the playhead within the movie-clip instance called bigClock will move to frame 37 and stop there. bigClock is the target path, and gotoAndStop is the action.

In the Parameters pane of the Actions panel, the Insert Target Path button opens the Insert Target Path dialog box which provides a visual way to insert a target path (Figure 5.5). All named movie-clip instances are shown in a hierarchical fashion in the display window. You can select individual movie clips, and the correct target paths appear.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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