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

Chapter 13. Interactivity with Objects > Choosing a Button’s Event Handler

Choosing a Button’s Event Handler

When you click a basic Flash button, pressing the mouse button down is what actually triggers Flash to display the Down frame. When you attach ActionScript to a button, the script adds to the button’s built-in actions. In Normal mode, when you at ach an action to a button instance Flash automatically adds the default event handler, on (release), to the Script pane. That code makes the release of the mouse button trigger the actions attached to the button. You can change that behavior by selecting a different event parameter for the handler.

In the preceding exercise, you let Flash add the event handler automatically when you chose an action. This time, try choosing the event-handler action yourself.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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