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..?
I would have expected, given the way Adobe seems to do things, that you
Share
I believe you are looking for the
KeyboardclassKeyboard.UPwill refer to the up key,Keyboard.DOWNto the down key, and so on.See http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/ui/Keyboard.html for more key codes.