Table 14.1. Button Events
Event Handler Object Action | Event Handler Frame Method | Action Description |
---|
on (press) | onPress | The event triggered when a user presses a button |
on (release) | onRelease | The event triggered when a user releases a button after pressing it |
on (releaseOutside) | onReleaseOutside | The event triggered when a user releases the mouse button outside the hit area of a button that has received an onPress event |
on (rollOver) | onRollOver | The event triggered when a user's mouse cursor moves over a button without the mouse button being pressed |
on (rollOut) | onRollOut | The event triggered when a user moves the mouse cursor outside a button's hit area without the mouse button being suppressed |
on (dragOver) | onDragOver | The event triggered when a user moves the mouse cursor over a button's hit area after the button has received an onDragOut event |
on (dragOut) | onDragOut | The event triggered when the mouse cursor is moved outside the button's hit area while the mouse button is depressed |
on (keyPress"...") | onKeyDown, OnKeyUp | The event triggered when a user presses or releases a key on the keyboard that has been specified in the event |
N/A | onSetFocus | The event triggered when a button receives focus from a keyboard interaction (for example, if a user uses the Tab key to gain focus on the button) |
N/A | onKillFocus | The event triggered when a button loses keyboard focus |