Accessibility
 
Home > Products > Flash > Support > ActionScript Dictionary
Flash Icon Macromedia Flash Support Center - ActionScript dictionary
Button.onKeyUp

Availability
Flash Player 6.

Usage

 myButton .onKeyUp

Parameters
None.

Returns
Nothing.

Description
Event handler; invoked when a button has input focus and a key is released. The onKeyUp event is invoked with no parameters. You can use the Key.getAscii and Key.getCode methods to determine which key was pressed.

You must define a function that executes when the event is invoked.

Example
The following example defines a function for the onKeyPress method that sends a trace to the Output window:

myButton.onKeyUp = function () {
	trace ("onKeyUp called");
};

To Table of Contents Back to Previous document Forward to next document