PGDN (Key.PGDN property)

public static PGDN : Number

The key code value for the Page Down key (34).

Availability: ActionScript 1.0; Flash Player 5

Example

The following example rotates a movie clip called car_mc when you press the Page Down or Page Up key.

var keyListener:Object = new Object();
keyListener.onKeyDown = function() {
    if (Key.isDown(Key.PGDN)) {
    car_mc._rotation += 5;
    } else if (Key.isDown(Key.PGUP)) {
    car_mc._rotation -= 5;
    }
};
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/00001769.html