ActionScript: stop();


Get Adobe Flash player

We will create a movie with a ball that moves. We will add ActionScript to make the ball stop.

  1. Start a new flash movie.
  2. Draw a ball and make it a movie clip named Ball.
  3. Add some motion tween so that the ball moves from the top left to the bottom right.
  4. ball animation
  5. Add a layer named actionscript as the top layer. At this point there is no ActionScript.
  6. When you run the movie the ball will move from the top-left to the bottom-right over and over.

Download the finished movie

Next: We will add ActionScript to make the ball stop.


INDEX, What is ActionScript, Important Things to Remember, Naming Movie Clips, Stop!, Live demo of the ball stop movie, Stop Again!, Play!, Self Study Questions
Next lesson: Code Snippets

Copyright © Zebra0.com
All rights reserved worldwide.

 
 

Stop!