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 Tutorial

 

Adding Behaviors to Buttons

In Flash, behaviors are pre-written scripts that you can add to object instances in your movie. They appear in the Behaviors panel:

To add a behavior to the button you just created:

  1. Make sure you’re in the Main Timeline, and not in Edit mode. In the Timeline, click frame 1, and then, on the Stage, select the button you just created.
  2. It’s a good idea to name all the symbol instances you place on the Stage. Naming allows you to refer to them in script. It also enables additional selections in the Behaviors panel. In the Property Inspector, enter a name for the button instance, such as “myButton1”:

  1. In the Behaviors panel, click the Add Behavior  button to open a menu of behaviors. Select Movie clip and then Goto and Play at frame or label.

A movie clip is essentially an animation that’s been converted to a symbol and resides on its own Timeline. We’ll demonstrate movie clips later in the tutorial, but for now, it’s enough to know that you can use this behavior to target a frame in either a self-contained movie clip or the Main Timeline. We’ll use the Main Timeline.

Selecting this behavior opens the Goto and Play at frame or label dialog:

If you had added movie clips from the library, their instances would appear in the list beneath _root, which represents the Main Timeline of the movie. Notice that “this” appears in the field above the list. The “this” keyword indicates the current object. When you select a target location from the list, Flash fills in the field with a relative path, if Relative is selected in the dialog, starting with the current object (“this”). If Absolute is selected in the dialog, Flash fills in an absolute path, starting with _root. We’ll describe this method of targeting objects in more detail later in the tutorial.

  1. At the bottom of the dialog, enter the number 3 to tell Flash to move forward in the Main Timeline (_root) to frame 3 when the button is pressed.
  2. Click OK.

 

 

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