Key.LEFT
Availability
Flash Player 5.
Usage
Key.LEFT
Description
Property; constant associated with the key code value for the Left Arrow key (37).
Key.onKeyDown
Availability
Flash Player 6.
Usage
someListener.onKeyDown
Description
Listener; notified when a key is pressed. To use
can then define a function for
Key object, as in the following:
someListener = new Object();
someListener.onKeyDown = function () { ... };
Key.addListener(someListener);
Listeners enable different pieces of code to cooperate because multiple listeners can receive
notification about a single event.
See also
Key.addListener()
Key.onKeyUp
Availability
Flash Player 6.
Usage
someListener.onKeyUp
Description
Listener; notified when a key is released. To use
can then define a function for
Key object, as in the following:
someListener = new Object();
someListener.onKeyUp = function () { ... };
Key.addListener(someListener);
onKeyDown
and use
onKeyDown
addListener()
onKeyUp
and use
onKeyUp
addListener()
you must create a listener object. You
to register the listener with the
you must create a listener object. You
to register the listener with the
Key.onKeyUp
415
Need help?
Do you have a question about the FLASH MX 2004 - ACTIONSCRIPT and is the answer not in the manual?
Questions and answers