![]() ![]() ![]() | |
![]() | |
![]() | |
![]() |
Flash documents can have movie clip instances in their Timelines. Each movie clip instance has its own Timeline. You can place a movie clip instance inside anther movie clip instance.
Note: A movie clips is a type of symbol. For information on adding movie clips to a document, see Using Symbols, Instances, and Library Assets.
A movie clip nested inside another movie clip (or inside a document) is a child of that movie clip or document. Relationships between nested movie clips are hierarchical: modifications made to the parent will affect the child. You can use ActionScript to send messages between movie clips (and their Timelines). To control a movie clip Timeline from another Timeline, you must specify the location of the movie clip with a target path. In the Movie Explorer, you can view the hierarchy of nested movie clips in a document.
You can also use behaviors, prewritten ActionScript scripts, to control movie clips. See Controlling instances with behaviors.
For information on working with nested movie clips, see the following sections:
When you place a movie clip instance on another movie clip's Timeline, the placed movie clip is the child and the other movie clip is the parent. The parent instance contains the child instance. The root Timeline for each level is the parent of all the movie clips on its level, and because it is the topmost Timeline, it has no parent.
A child Timeline nested inside another Timeline is affected by changes made to the parent Timeline. For example, if portland
is a child of oregon
and you change the _xscale
property of oregon
, then the scale of portland
also changes.
Timelines can send messages to each other with ActionScript. For example, an action on the last frame of one movie clip can tell another movie clip to play. To use ActionScript to control a Timeline, you must use a target path to specify the location of the Timeline. See Writing target paths.
![]() | |
![]() | |
![]() | |
![]() ![]() ![]() |