EasyManua.ls Logo

MACROMEDIA FLASH MX 2004 - ACTIONSCRIPT - Page 415

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...
Key.onKeyUp 415
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 onKeyDown you must create a listener object. You
can then define a function for
onKeyDown and use addListener() to register the listener with the
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 onKeyUp you must create a listener object. You
can then define a function for onKeyUp and use addListener() to register the listener with the
Key object, as in the following:
someListener = new Object();
someListener.onKeyUp = function () { ... };
Key.addListener(someListener);

Table of Contents

Related product manuals