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)

The behavior appears in the Behaviors panel:

Notice that if you click inside the Event column, a menu appears, letting you select a different mouse event to apply the behavior to:

  1. To see how the button works, add a new keyframe (F6) to frame 3. Remember, the behavior moves the playhead to frame 3 when the user clicks the button.

  1. With frame 3 selected, use the Text tool to add the word “Hello” to the Stage:

  1. Flash will automatically progress through the movie, making the button essentially useless, since “Hello” will quickly appear as soon as the playhead reaches frame 3, unless we tell Flash not to play the movie when it loads. To do so, add a new layer called “Actions” and, with the first frame of that layer selected, open the Actions panel. Add the stop() action, just as we did to the last frame of our motion tween earlier:

  1. The stop() action is used frequently throughout a movie to control the flow of events, from one animation to another. In a user-driven Flash movie, stop() will appear in many places to simulate traditional application screens, rather than the constant motion of animation. So far, we’ve added a stop() action to the beginning of the movie, so Flash will wait for the user to do something before moving through the Timeline. But once it starts moving, it’s going to keep going unless we add another stop() action to the last frame, the one with the “Hello” text. Without a stop() action here, “Hello” will appear and quickly disappear as soon as the user clicks the button, because the playhead will automatically move back to frame 1 in the Timeline, where the text does not appear.

 

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