1. Home
  2. Computing & Technology
  3. Animation

Flash Animation 9: Adding Interactivity with Buttons

By , About.com Guide

10 of 10

Inserting a Stop and Conclusion

The action that we're going to insert now is called a stop. True to its name, a stop stops the play of the Flash movie at the frame specified; without it, our buttons would flash on the screen for one quick frame before vanishing as the scene restarted.

Inserting a stop is very easy. What we'll actually be doing is putting in a line of code/program language in the ActionScript language that contains the command to stop and any relevant parameters (there are no parameters in this instance), but rather than having to write the program code yourself (though you could if you wished) Flash makes it very easy to simply insert lines of code through a point-and-click ActionScript library.

To access this library and insert your stop command, just right-click on the keyframe on your Actions layer, select Actions, and then drill down through the Actions command list to find a stop command to insert. (For more detailed instructions, click here.)

You should now have a movie that starts off with the storytelling that we've built in previous lessons, and then stops to ask a question and display a set of user options. In the next lesson we'll move on to learning how to create new scenes to display the end results of those options.

Explore Animation
About.com Special Features

Holiday Central

What to eat, where to go, fun things to do and how to save money on the perfect gifts. More >

Family Tech Center

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

  1. Home
  2. Computing & Technology
  3. Animation
  4. Flash Animation Tutorials
  5. Flash Animation 9: Adding Interactivity with Buttons

©2009 About.com, a part of The New York Times Company.

All rights reserved.