Navigating Movie Clip Timelines

Stop a Movie Clip inside a Movie Clip inside a Movie Clip with Dot Syntax

Let's think about the structure of our embedded Movie Clips based on their Instance Names:

vehicle_moving contains vehicle contains body and wheels

You can think of it like a folder system, where a path to body might look like:

vehicle_moving/vehicle/body

This just about works. The only difference is, ActionScript uses dot syntax for the navigation structure, so our path looks like this:

vehicle_moving.vehicle.body

Each element is separated with a dot. We can add the stop(); method to the end of that path to stop the body timeline.

First, insert an actions layer on the main timeline, then bring up the Actions window:

Content on this page requires a newer version of Adobe Flash Player.

Get Adobe Flash player

Now check it out... no more blinking:

Content on this page requires a newer version of Adobe Flash Player.

Get Adobe Flash player

Try to apply the same formula to stop wheels, because they are going to do the same thing once you start adding more frames.