![]() |
|
| • All Online Courses • New Courses • QuickTips • Word Definitions • Submit a Tutorial • Links • |
|
Adding Behaviors to Buttons in Flash (Continued) Adding Behaviors to Buttons (Continued)Below, our Stage shows the car with its motion guide layer—the path it will follow as it moves around the Stage. We’ve added a new layer for our buttons, and dropped the buttons on frame 1 of that layer (called “Buttons”):
We’ve also added an Actions layer to hold our ActionScript code. We did this earlier, when we added a stop() action to the end of the movie.
If you like, select the last frame of the Actions layer and open the Actions panel, just to verify that the stop() action is there:
Before we program our buttons we need to add a stop() action to the beginning of the movie, to prevent the Timeline from automatically moving forward as soon as the movie loads. We’ll do this now, and then we’ll add play and stop actions to our buttons to allow the user to control the progression:
Now the movie will wait for an event before playing the animation.
by Summer Doucet Find more free Software tutorials from Learnthat.com. More Information:
Help us by rating this tutorial: [---] [--] [+] [++] [+++] [---] lowest; [+++] highest
|
|
||||||
![]() |
Learn: Free
Tutorials - Links
to Free Tutorials
Understand: Free Technical Definitions
- ExplainThat Whitepapers
Use: Certification Section -
Discussion Forum
Visit Our Network Sites:
About Us : Contact Us : Advertise : Privacy Information