Using buttons to navigate labeled frames


show more Using buttons to navigate labeled frames 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 ...

Using buttons to navigate labeled frames

Now that we've created Frame Labels we can use our buttons to navigate to those Frame Labels. Let's select frame 1 of the actions layer and open up the Actions panel by pressing Option+F9 on the Mac or F9 on the PC. At the top of your code find the dance1 function, mine goes from line 1 to line 4. Inside of that function at the end of the robot_mc.gotoAndStop line of code, delete the number inside the parentheses. Instead we're going to pass in a string, so type quotes. Inside the quotes, type the name of the Frame Label that you want to go to.

The name the Frame Label for the dance1 is dance1. Now we'll do the same thing for the dance2 function and the dance3 function. Select the number 2 inside of the dance2 function and replace that with the string value "dance2" In the dance3 function, replace the number 3 with the string value "dance3" So the difference between navigating to a frame number and a Frame Label, is that the Frame Label is a strings so...

Using buttons to navigate labeled frames
Video duration: 2m 30s 5h 21m Intermediate

Viewers:

Using buttons to navigate labeled frames 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 ...