Action Scripting Basics: Inserting a Simple Stop – Knowligent
Action Scripting Basics: Inserting a Simple Stop

Action Scripting Basics: Inserting a Simple Stop

HomeHow to, TechAction Scripting Basics: Inserting a Simple Stop

The stop command is probably the most basic of all ActionScript commands, and the most essential. A stop is essentially an instruction in the ActionScript programming language that tells your Flash movie to pause at a specific frame, rather than continuing to the end of the animation or looping indefinitely.

Action Script 3.0 Tutorial – Play and Stop

Stop commands are especially useful when you are playing an animation before pausing to wait for a user response. You would insert a stop command at the end of the animation, once the options are presented to the user. This prevents the animation from skipping through the options without giving the user a chance to select one.

Although ActionScripting is a programming language, Flash's library allows you to "write" in the language without typing the code yourself. To insert a stop at any point in your animation, simply follow these steps:

And that's it. You've added a stop command that tells your movie to pause on that specific frame, and you've worked with ActionScript for the first time.