User Guide

Key.PGDN 363
Key.PGDN
Availability
Flash Player 5.
Usage
Key.PGDN:Number
Description
Property; constant associated with the key code value for the Page Down key (34).
Example
The following example rotates a movie clip called car_mc when you press the Page Down and
Page Up keys.
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);