User Guide

134 Chapter 2: ActionScript Language Reference
Event handler summary for the Button class
Button.useHandCursor
A Boolean value that indicates whether the pointing hand is displayed
when the mouse passes over a button.
Button._visible
A Boolean value that indicates whether a button instance is hidden
or visible.
Button._width
The width of a button instance, in pixels.
Button._x
The x coordinate of a button instance.
Button._xmouse
Read-only; the x coordinate of the mouse pointer relative to a button
instance.
Button._xscale
The value specifying the percentage for horizontally scaling a button
instance.
Button._y
The y coordinate of a button instance.
Button._ymouse
Read-only; the y coordinate of the mouse pointer relative to a button
instance.
Button._yscale
The value specifying the percentage for vertically scaling a
button instance.
Event handler Description
Button.onDragOut
Invoked when the mouse button is pressed over the button and the
pointer then rolls outside the button.
Button.onDragOver
Invoked when the user presses and drags the mouse button outside and
then over the button.
Button.onKeyUp
Invoked when a key is released.
Button.onKillFocus
Invoked when focus is removed from a button.
Button.onPress
Invoked when the mouse button is pressed while the pointer is over a
button.
Button.onRelease
Invoked when the mouse button is released while the pointer is over a
button.
Button.onReleaseOutside
Invoked when the mouse button is released while the pointer is outside
the button after the button is pressed while the pointer is inside the
button.
Button.onRollOut
Invoked when the mouse pointer rolls outside of a button area.
Button.onRollOver
Invoked when the mouse pointer rolls over a button.
Button.onSetFocus
Invoked when a button has input focus and a key is released.
Property Description