User Guide
284 ActionScript classes
Example
In the following example, a function that sends a trace() statement to the Output panel is
defined for the
onRelease handler:
my_btn.onRelease = function () {
trace ("onRelease called");
};
onReleaseOutside (Button.onReleaseOutside
handler)
onReleaseOutside = function() {}
Invoked when the mouse is released with the pointer outside the button after the mouse
button is pressed with the pointer inside the button. You must define a function that is
executed when the event handler is invoked.
Note: The
onReleaseOutside Event Handler is supported for Flash Lite 2.0 only if
System.capabilities.hasMouse is true or System.capabilities.hasStylus is
true
.
Availability: ActionScript 1.0; Flash Lite 2.0
Example
In the following example, a function that sends a trace() statement to the Output panel is
defined for the
onReleaseOutside handler:
my_btn.onReleaseOutside = function () {
trace ("onReleaseOutside called");
};
onRollOut (Button.onRollOut handler)
onRollOut = function() {}
Invoked when the button loses focus. This can happen when the user clicks another button or
area outside of the currently selected button. You must define a function that is executed
when the event handler is invoked.
Availability: ActionScript 1.0; Flash Lite 2.0