User Guide
Key 385
PGUP (Key.PGUP property)
public static PGUP : Number
The key code value for the Page Up key (33).
Availability: ActionScript 1.0; Flash Lite 2.0
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);
removeListener (Key.removeListener method)
public static removeListener(listener:Object) : Boolean
Removes an object previously registered with Key.addListener().
Availability: ActionScript 1.0; Flash Lite 2.0
Parameters
listener:Object - An object.
Returns
Boolean - If the listener was successfully removed, the method returns true. If the
listener was not successfully removed (for example, because the listener was not on the
Key objects listener list), the method returns
false.