Adobe Flash Professional CS6 Adobe Flash Professional CS6 Classroom In A Book | Page 237
7 In the Properties inspector, set the X value to 60 and the Y value to 150.
The restaurant information about gabel and loffel is centered on the Stage and
covers all the buttons.
8 Select the keyframe at frame 20.
9 Drag the symbol called gary gari from the Library panel to the Stage. The
symbol named gary gari is another movie clip symbol that contains a photo,
graphics, and text about this restaurant.
10 In the Properties inspector, set the X value to 60 and the Y value to 150.
11 Place each of the movie clip symbols from the restaurant content folder in the
Library panel to the corresponding keyframes in the content layer.
Each keyframe should contain a different movie clip symbol about a restaurant.
Using labels on keyframes
Your ActionScript code tells Flash to go to a different frame number when the user
clicks each of the buttons. However, if you decide to edit your Timeline and add or
delete a few frames, you’ll need to go back into your ActionScript and change your
code so the frame numbers match.
An easy way to avoid this problem is to use frame labels instead of fixed frame
numbers. Frame labels are names that you give to keyframes. Instead of referring
228
Lesson 6
Creating Interactive navigation