MACROMEDIA FLASH MX 2004 - ACTIONSCRIPT Reference Manual page 299

Actionscript reference guide
Hide thumbs Also See for FLASH MX 2004 - ACTIONSCRIPT:
Table of Contents

Advertisement

See also
Button.onKeyUp
Button.onKeyDown
Availability
Flash Player 6.
Usage
my_btn.onKeyDown = function() {
// your statements here
}
Parameters
None.
Returns
Nothing.
Description
Event handler; invoked when a button has keyboard focus and a key is pressed. The
event handler is invoked with no parameters. You can use
to determine which key was pressed.
You must define a function that executes when the event handler is invoked.
Example
In the following example, a function that sends a
for the
onKeyDown
my_btn.onKeyDown = function () {
trace ("onKeyDown called");
};
See also
Button.onKeyUp
Button.onKeyUp
Availability
Flash Player 6.
Usage
my_btn.onKeyUp = function() {
// your statements here
}
Parameters
None.
handler.
Key.getAscii()
action to the Output panel is defined
trace()
onKeyDown
and
Key.getCode()
Button.onKeyUp
299

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH MX 2004 - ACTIONSCRIPT and is the answer not in the manual?

Subscribe to Our Youtube Channel

Table of Contents