

Using commentsappropriately is called documenting your code. Those two slashesindicate that the rest of the line is a comment, which Flash completely ignores.Comments are only for programmers, not for the computer.

Commentsĭid you notice we introduced one new element? For the Scene 2 BackwardButton, there are a few lines that start with two slashes. To see the final movie, check out buzzkill2.fla. Position the button wherever you want.Įnter the following code: on(release) Go to the last frame in Scene 1 of the movie (frame 60) on the buttonlayer.ĭrag the Forward Button symbol onto the empty button layer. Notice that there's no way to go beyond the firstscene/slide. Go ahead and play with the movie, using Control Test Movie.Īlways test your movies with Control Test Movie, since that'sthe only way you can properly test your actions. This stop method halts the playhead in its tracks.That is, it stops the Flash movie from playing further. The only ActionScript you'll seeis stop(). Each scenehas one frame action on its last frame: stop().Ĭlick on the last frame in the actions layer in each scene, and then openthe Actions panel to see the ActionScript. Notice that there are three scenesone for each slide.

For the purposes of this tutorial, we'll only deal with thefirst three slides of the presentation, shown in Figure 3≤.įigure3≤ All three slides of the Buzzkill presentation Someone else has created the slides for thepresentation, and it's our job to make sure the presenter can move fromslide to slide. It's for Buzzkill Industries, a young, edgy company thatmakes safety equipment.

Let's say our assignment is to create a Flash version of a PowerPointpresentation. We're discussing ithere only because you should know how to do it. Learn More Buy Moving from Scene to Sceneīe careful with scenes: Most animators, and Macromedia as well, don'trecommend using scenes except with long animations. Advanced Macromedia Flash MX: ActionScript in Action, 2nd Edition
