|    | |
|  | |
|  | |
|  | |
Flash Player 6.
someListener.onKeyDown
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.
|  | |
|  | |
|  | |
|    | |