摘要: 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 阅读全文
posted @ 2012-07-02 18:03 王翔(kingfly) 阅读(1801) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2012-07-02 14:11 王翔(kingfly) 阅读(318) 评论(0) 推荐(0) 编辑
摘要: 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会将字符编码转 阅读全文
posted @ 2012-07-02 11:37 王翔(kingfly) 阅读(714) 评论(0) 推荐(0) 编辑