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)

Add another keyframe to frame 3 of the Actions layer and, in the Actions panel, add another stop() action. The Actions layer should now display the small action symbol (a) in frames 1 and 3:

  1. Now, test the movie. When you click the button, the word “Hello” should appear:

 

Take a look at the ActionScript Flash inserted when you added the behavior to the button: Select the button on the Stage and open the Actions panel:

Notice that “myButton1” appears on the tab below the Script pane. You’re seeing the code attached to the button instance. The code itself is very simple: it tells Flash to move to and play frame 3 when the button is released. (The grey text next to the slashes (//) are comments—they’re informational only and don’t affect the code.)

Although you can use the Behaviors panel to quickly add simple behaviors to buttons, the Actions panel provides far more options. You’ll find the same behaviors in the list of actions, and then some.

As an example, we’re going to return to our motion tween with the car. We’ll add some controller buttons—a play button, a pause button and a stop button. You can either create these yourself or borrow some from the Flash button sample library. Drag them onto the Stage, or draw them and convert them to symbols, naming each instance something like “btnPlay”, “btnPause” and “btnStop”. As you progress through the following steps, you can check the screenshots to make sure everything is correctly named and in place.

 

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