• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 13. Interactivity with Objects > Adding Actions to Buttons

Adding Actions to Buttons

All Flash buttons have certain actions built in. By default, when you move the mouse into the button area, Flash jumps to the Over frame; when you click the button, Flash takes you to the Down frame. To create more interactivity or to refine the way a button responds to a user's mouse movements, you attach ActionScripts to an instance of a button. The process is similar to adding frame actions (see Chapter 12), except that you create your scripts in the Object Actions panel.

To access the Object Actions panel:

1.
Click the Stage, or select an object (a button or a movie-clip symbol) on the Stage.

2.
If the Object Actions panel is not currently active, do one of the following:

  • From the Window menu, choose Actions.

  • In the Launcher bar at the bottom of the Stage, click the Show Actions button (Figure 13.16).

    Figure 13.16. When the Stage has focus (when the dark border appears around the Stage) choose Window > Actions (top) or click the Show Actions button in the Launcher bar (bottom) to access the Object Actions panel. To set focus on the Stage, click it or select items on it.

The Object Actions panel opens or comes to the front if it's grouped in a window with other panels.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint