Nesting code within MovieClips


show more Nesting code within MovieClips provides you with in-depth training on Web. Taught by Todd Perkins as part of the Flash CS3 Professional Beyond the Basics show less
please wait ...

Nesting code within MovieClips

Now we'll take a look at placing code inside of movie clips, and how to communicate from those movie clips to other elements inside of your Flash movie. On the stage, let's double-click the robot to enter its timeline. On frame one, select the robot on the stage and note that it's an instance of mcRobotDancing. What we're going to do is make the dance2, where the robot does the robot move, and the dance 3, where the robot does the breakdancing move. We'll make the dance2 and dance3 animations play one time and then have the robot return to doing the original dance1 dance.

For that reason we don't need to nest any code inside of mcRobotDancing. So let's go to the frame 8 where the dance2 Frame Label is. Select the robot on the stage and note that it's an instance of mcRobotHinge. So we'll double-click the robot. Above the very top layer let's create a new layer called actions. In the actions layer, I'm going to select the last frame. I'm going t...

Nesting code within MovieClips
Video duration: 5m 8s 5h 21m Intermediate

Viewers:

Nesting code within MovieClips provides you with in-depth training on Web. Taught by Todd Perkins as part of the Flash CS3 Professional Beyond the Basics

Subject:
Web
Software:
Flash Professional
Author:
please wait ...