EasyManua.ls Logo

MACROMEDIA FLASH MX 2004 - ACTIONSCRIPT - Page 301

MACROMEDIA FLASH MX 2004 - ACTIONSCRIPT
816 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Button.onRelease 301
Returns
Nothing.
Description
Event handler; invoked when a button is pressed. You must define a function that executes when
the event handler is invoked.
Example
In the following example, a function that sends a trace() action to the Output panel is defined
for the
onPress handler.
my_btn.onPress = function () {
trace ("onPress called");
};
Button.onRelease
Availability
Flash Player 6.
Usage
my_btn.onRelease = function() {
// your statements here
}
Parameters
None.
Returns
Nothing.
Description
Event handler; invoked when a button is released. You must define a function that executes when
the event handler is invoked.
Example
In the following example, a function that sends a trace() action to the Output panel is defined
for the
onRelease handler.
my_btn.onRelease = function () {
trace ("onRelease called");
};

Table of Contents

Related product manuals