Flash CS3 文档 |
|||
| ActionScript 2.0 语言参考 > ActionScript 类 > Key > PGDN(Key.PGDN 属性) | |||
public static PGDN : Number
Page Down 键的键控代码值 (34)。
可用性:ActionScript 1.0、Flash Player 5
在下面的示例中,当您按 Page Down 或 Page Up 键时,名为 car_mc 的影片剪辑将会旋转。
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);
Flash CS3
当前页: http://livedocs.adobe.com/flash/9.0_cn/main/00001769.html