Onrelease (Button.onrelease Handler); Onreleaseoutside (Button.onreleaseoutside Handler) - MACROMEDIA FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE Reference

Actionscript 2.0 language reference
Table of Contents

Advertisement

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

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE and is the answer not in the manual?

This manual is also suitable for:

Flash 8

Table of Contents

Save PDF