Key.insert - MACROMEDIA FLASH MX 2004-ACTIONSCRIPT LANGUAGE Reference

Actionscript language reference
Table of Contents

Advertisement

Key.INSERT

Availability
Flash Player 5.
Usage
Key.INSERT:Number
Description
Property; constant associated with the key code value for the Insert key (45).
Example
The following example creates a new listener object and defines a function for
last line uses
addListener()
notification from the key down event and display information in the Output panel.
var keyListener:Object = new Object();
keyListener.onKeyDown = function() {
if (Key.isDown(Key.INSERT)) {
trace("You pressed the Insert key.");
}
};
Key.addListener(keyListener);
356
Chapter 2: ActionScript Language Reference
to register the listener with the Key object so that it can receive
. The
onKeyDown

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH MX 2004-ACTIONSCRIPT LANGUAGE and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Flash mx

Table of Contents