User Guide
364 Chapter 2: ActionScript Language Reference
Key.PGUP
Availability
Flash Player 5.
Usage
Key.PGUP:Number
Description
Property; constant associated with the key code value for the Page Up key (33).
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);