- Stop an animation using Actionscript 2.0 code.
 - Create a motion tween of a ball on a layer called "ball"
 - Create a new layer called "actions" with a blank keyframe
 - Right-click on the blank keyframe and select Actions
 - Place stop(); code in the actions panel of the blank keyframe
 - Test your scene
 - Move the blank keyframe to another frame
 - Test your scene
 - Create a Button to Play the animation
 - Create a rectangle and type "PLAY" inside it
 - Select the rectangle and text and Convert to a Symbol (symbol type is a button)
 - Right click on the button and select Actions
 - Place play(); code in the actions panel
 - Test your scene and click your button
 
- Create a Button to Stop the animation
 - Create another button the same way you created the "PLAY" button
 - Right click on the button and select Actions
 - Place stop(); code in the actions panel
 - Test your scene and click on your buttons
 
Resources:
- Buttons - Flash Tutorial: Basic Button Properties
 - Interactive Example - Jordan: History of Flight
 
No comments:
Post a Comment