INSERT (Key.INSERT property)

public static INSERT : Number

The key code value for the Insert key (45).

Availability: ActionScript 1.0; Flash Player 5

Example

The following example creates a new listener object and defines a function for onKeyDown. The last line uses addListener() to register the listener with the Key object so that it can receive 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);

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/00001761.html