摘要:
package{importflash.display.Sprite;importflash.events.Event;importflash.events.KeyboardEvent;importflash.events.TimerEvent;importflash.utils.Timer;importflash.utils.getTimer;publicclassMainextendsSprite{varmascot:Bo=newBo();varleftArrow:Boolean=false;varrightArrow:Boolean=false;varupArrow:Boolean=fa 阅读全文
摘要:
package{importflash.display.Sprite;importflash.events.KeyboardEvent;importflash.text.TextField;importflash.text.TextFieldType;importflash.text.TextFormat;publicclassMainextendsSprite{varmyinput:TextField;publicfunctionMain():void{init();}privatefunctioninit():void{varinputFormat:TextFormat=newTextFo 阅读全文
摘要:
package{importflash.display.Sprite;importflash.events.KeyboardEvent;publicclassMainextendsSprite{publicfunctionMain():void{init();}privatefunctioninit():void{stage.addEventListener(KeyboardEvent.KEY_DOWN,aaa);}publicfunctionaaa(e:KeyboardEvent):void{//e.charCode显示输入的字符编码(会区分大小写)//forChareCode会将字符编码转 阅读全文