Learnthat.com Free Certification and Computer Online Courses
ThatNetwork.com Internet Media Network Exampractice.com free certification practice exams, mcse, comptia Definethat.com - Free technical definitions, define Free Romance Tips, Romantic Tips, Date Ideas Free POD publisher comparison print on demand
Learnthat.com Free A+ Certification, Computer Classes, Certification Courses, Business, Lifestyle, ApplicationsFree business tutorials and definitionsFree certification tutorials and definitionsFree computer and technical tutorials and technical definitionsFree Finance Tutorials and DefinitionsFree House Repair TutorialsFree Lifestyle and Fun Tutorials
  All Online CoursesNew Courses QuickTipsWord DefinitionsSubmit a TutorialLinks
÷ Resources
Home
free tech tutorials
Free Tutorials
free tech tutorials
Certifications
free tech tutorials
Definitions
free tech tutorials
Resources/Links
free tech tutorials
Forums
free tech tutorials
Distance Education
free tech tutorials
Highest Rated Tutorials
÷ Popular Tutorials
÷ New Tutorials

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:

  1. Select the first frame of the Actions layer.

  1. Open the Actions panel. Click the Global Functions folder to expand it, and then click the Timeline Control folder to see a list of actions. Double-click the stop action to add it to the Script pane:

Now the movie will wait for an event before playing the animation.

  1. On the Stage, select the play button.

  1. If it isn’t still open, open the Actions panel. Verify that you’re in the Script pane for the play button.

  1. You can either use the folder list to navigate to available actions, or you can add an action using the plus  button at the top of the Script pane.

 

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:

DefineThat.com Technical Defintions Romancetips.com
Free Gift Ideas - GiveThat Planthat.com Free Unique Business Ideas
PublishOnDemand.net - Learn about Print on Demand (POD) - Self Publishing Seekthat.com - Technical Search Engine
ThatNetwork.com  

About Us : Contact Us : Advertise : Privacy Information

© 1998-2004 Learnthat.com