Flash是否会预定义任何keyCode常量? [英] Does Flash pre-define any keyCode constants?

查看:117
本文介绍了Flash是否会预定义任何keyCode常量?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

考虑到Adobe的工作方式,我希望可以使用静态常量引用某些非ASCII的键码,例如 KeyCode.UP_KEY .我在做梦吗?还是只是假设38是永久性的向上键??

I would have expected, given the way Adobe seems to do things, that you could reference some of the non-ASCII keycodes using a static constant, for example KeyCode.UP_KEY. Am I dreaming? Or do you just assume 38 will be the up key in perpetuity..?

推荐答案

我相信您正在寻找 Keyboard

Keyboard.UP 将指向上键, Keyboard.DOWN 将指向下键,依此类推.

Keyboard.UP will refer to the up key, Keyboard.DOWN to the down key, and so on.

请参见 http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/ui/Keyboard.html 了解更多密钥代码.

See http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/ui/Keyboard.html for more key codes.

这篇关于Flash是否会预定义任何keyCode常量?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆