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
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);
364
Chapter 2: ActionScript Language Reference
when you press the Page Down and
car_mc
Need help?
Do you have a question about the FLASH MX 2004-ACTIONSCRIPT LANGUAGE and is the answer not in the manual?