Example
In the following example, a function that sends a trace() statement to the Output panel is
defined for the
onPress
my_btn.onPress = function () {
trace ("onPress called");
};
onRelease (Button.onRelease handler)
onRelease = function() {}
Invoked when a button is released. You must define a function that executes when the event
handler is invoked.
Availability: ActionScript 1.0; Flash Player 6
Example
In the following example, a function that sends a trace() statement to the Output panel is
defined for the
onRelease
my_btn.onRelease = function () {
trace ("onRelease called");
};
onReleaseOutside (Button.onReleaseOutside
handler)
onReleaseOutside = function() {}
Invoked when the mouse is released while the pointer is outside the button after the button is
pressed while the pointer is inside the button. You must define a function that executes when
the event handler is invoked.
Availability: ActionScript 1.0; Flash Player 6
Example
In the following example, a function that sends a trace() statement to the Output panel is
defined for the
onReleaseOutside
my_btn.onReleaseOutside = function () {
trace ("onReleaseOutside called");
};
handler:
handler:
handler:
Button
365
Need help?
Do you have a question about the FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE and is the answer not in the manual?