- Listening for Events
- Mouse Detection
- The SimpleButton Class
- Invisible Buttons
- Animated Buttons and the Movie Clip Symbol
- Complex Buttons
- Button-tracking Options
- Changing Button Behavior
- Creating Buttons Dynamically
- Keyboard Detection
- The Contextual Menu
- Creating Continuous Actions
- A Summary of Events
A Summary of Events
Table 4.4 lists the many basic events discussed in this chapter. You’ll learn about many more events in the chapters that follow. For more on the Event class, see Flash Help > ActionScript 3.0 Language and Component Reference > All Classes > Event Class.
Table 4.4. Events
EVENT |
DESCRIPTION |
MouseEvent.CLICK |
Mouse click |
MouseEvent.DOUBLE_CLICK |
Mouse double-click |
MouseEvent.MOUSE_MOVE |
Mouse move |
MouseEvent.MOUSE_DOWN |
Mouse button pressed |
MouseEvent.MOUSE_UP |
Mouse button released |
MouseEvent.MOUSE_OVER |
Mouse pointer moves over the target |
MouseEvent.MOUSE_OUT |
Mouse pointer moves off of the target |
MouseEvent.MOUSE_WHEEL |
Mouse wheel moves forward or backward |
KeyboardEvent.KEY_DOWN |
Key pressed |
KeyboardEvent.KEY_UP |
Key released |
ContextMenuEvent.MENU_ITEM_SELECT |
Contextual menu item selected |
Event.ENTER_FRAME |
Happens at the frame rate of the Flash movie (not user controlled) |
TimerEvent.TIMER |
Happens at every interval defined by the Timer object |
TimerEvent.TIMER_COMPLETE |
Happens when the Timer object finishes all of its intervals |