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

7 Select the keyframe in the actions layer at frame 50 and open the Actions panel to examine the newly inserted code. The stop() command on the first line was already present in the file before you added the code snippet. 8 Now you must add conditional statements to check which of the cue points has been encountered and respond appropriately. Replace all the lines inside the function with the following code: if (event.info.name=="namecue") { gotoAndStop("zoodirector"); } if (event.info.name=="videocue") { gotoAndStop("videos"); } if (event.info.name=="soundcue") { gotoAndStop("sounds"); } if (event.info.name=="endcue") { gotoAndStop("home"); } 330 Lesson 8 Working with sound and Video