Adobe Flash Professional CS6 Adobe Flash Professional CS6 Classroom In A Book | Page 364

Controlling Movie Clips When you return to the front page, you’ll see the four sections, so you can click another movie clip to load a different section. But wouldn’t it be nice to replay the initial animation? The initial animations are nested inside each movie clip, and you can control the four movie clips that are on the Stage. You can use the basic naviga- tion commands that you already learned in Lesson 6 ( gotoAndStop , gotoAnd- Play , stop , play ) to navigate the Timelines of these movie clips. Simply precede the command with the name of the movie clip and separate them with a dot. Flash targets that particular movie clip and moves its Timeline accordingly. 1 Select the first frame of the actionscript layer and open the Actions panel. 2 Add to the commands in the function called unloadcontent so the entire function appears as follows: function unloadcontent(e:MouseEvent):void { myProloader.unload(); page1_mc.gotoAndPlay(1); page2_mc.gotoAndPlay(1); page3_mc.gotoAndPlay(1); page4_mc.gotoAndPlay(1); } Adobe FLAsh ProFessionAL Cs6 CLAssroom in A book 355