Accessibility
 
Home > Products > Flash > Support > ActionScript Dictionary
Flash Icon Macromedia Flash Support Center - ActionScript dictionary
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 the addListener method 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

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