Pgup (Key.pgup Property); Removelistener (Key.removelistener Method) - MACROMEDIA FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE Reference

Flash lite 2.x actionscript language reference
Hide thumbs Also See for FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE:
Table of Contents

Advertisement

PGUP (Key.PGUP property)

public static PGUP :
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
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
Availability: ActionScript 1.0; Flash Lite 2.0
Parameters
- An object.
listener:Object
Returns
- If the
Boolean
listener
was not successfully removed (for example, because the
listener
Key objects listener list), the method returns
Number
Key.addListener()
was successfully removed, the method returns
false
when you press the Page Down and
car_mc
.
listener
.
. If the
true
was not on the
Key
385

Advertisement

Table of Contents
loading

Table of Contents