A-C > Button.onKeyUp |
![]() ![]() ![]() |
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"); };
![]() ![]() ![]() |