Flash CS3 Documentation |
|||
| Extending Flash > Top-Level Functions and Methods > keyDown() | |||
Flash MX 2004.
function keyDown() {
// statements
}
None.
Nothing.
Function; called when the extensible tool is active and the user presses a key. The script should call tools.getKeyDown() to determine which key was pressed.
The following example displays information about which key was pressed when the extensible tool is active and the user presses a key.
function keyDown() {
fl.trace("key " + fl.tools.getKeyDown() + " was pressed");
}
Flash CS3
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/flash/9.0/main/00003821.html