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

Chapter 7. Basic Tasks: Create an Applic... > Write an event handler for the compo...

Write an event handler for the component

For your SWF file to react to events such as a mouse click, you can use event handlers—ActionScript associated with a particular object and event. You’ll use an on() event handler for the Button component that calculates the total price when users click the button.

For more information about event handlers, see “Handling Events” in Flash Help.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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