Learning Flash Lite 1.x ActionScript |
|
|
|
| Flash 4 ActionScript Primer > Controlling other timelines | |||
To specify a path to a timeline, use slash syntax (/) combined with dots (..) to build the path reference. You can also use _levelN, _root, or _parent from Flash 5 notation to refer to, respectively, a specific movie level, the application's root timeline, or the parent timeline.
For example, suppose you had a movie clip instance named box on your SWF file's main timeline. The box instance, in turn, contains another movie clip instance named cards. The following examples target the movie clip cards from the main timeline:
tellTarget("/box/cards")
tellTarget("_level0/box/cards")
The following example targets the main timeline from the movie clip cards:
tellTarget("../../cards")
tellTarget("_root")
The following example targets the parent movie clip cards:
tellTarget("../cards")
tellTarget("_parent/cards")
|
|
|
|