代码为:
ffD:\快盘1\flash\旋转测试.swf 1 2 3 4 5 6 | stage.addEventListener(KeyboardEvent.KEY_DOWN,getMsg); function getMsg(me:KeyboardEvent){ char_txt.text= String (me.charCode); //获得字符码 key_txt.text= String (me.keyCode); //获得按键码 in_txt.text= String .fromCharCode(me.charCode); //获得文字 } |