Adobe Flash Professional CS6 Adobe Flash Professional CS6 Classroom In A Book | Page 250
2 Right-click/Ctrl-click and choose Insert Keyframe.
A new keyframe is inserted in frame 19 of the actions layer.
3 Open the Actions panel.
The Script pane in the Actions panel is blank. Don’t panic! Your code has
not disappeared. Your code for the event listeners is on the first keyframe of
the actions layer. You have selected a new keyframe in which you will add a
stop command.
4 In the Script pane, enter stop();
If you wish, you could also use the Code Snippets panel to add the stop command.
Flash will stop playing when it reaches frame 19.
5 Insert keyframes at frames 29, 39, and 50.
6 In each of those keyframes, add a stop command in the Actions panel.
E Tip: If you want a
quick and easy way to
duplicate the keyframe
containing the stop
command, hold down
the Alt/Option key while
you move it to a new
location on the Timeline.
7 Test your movie by choosing Control > Test Movie > in Flash Professional.
Each button takes you to a different keyframe and plays a short fade-in
animation. At the end of the animation, the movie stops and waits for the
viewer to click the Home button.
Adobe FLAsh ProFessIonAL Cs6 CLAssroom In A book
241