上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 22 下一页
摘要: 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) 编辑
摘要: 单机CLICK,双击DOUBLE_CLICK,按下MOUSE_DOWN,弹起MOUSE_UP,划过ROLL_OVER,划出ROLL_OUT,移动MOUSE_MOVE 阅读全文
posted @ 2012-06-29 17:12 王翔(kingfly) 阅读(390) 评论(0) 推荐(0) 编辑
摘要: package{importflash.display.MovieClip;importflash.display.Sprite;importflash.events.Event;importflash.events.MouseEvent;importflash.geom.Rectangle;importflash.media.Sound;importflash.text.*;publicclassMainextendsSprite{publicstaticconstSTATE_INIT:int=10;publicstaticconstSTATE_START_PLAYER:int=20;pub 阅读全文
posted @ 2012-06-26 15:29 王翔(kingfly) 阅读(5024) 评论(0) 推荐(0) 编辑
摘要: package{importflash.display.MovieClip;importflash.display.Sprite;importflash.events.Event;importflash.events.MouseEvent;importflash.geom.Rectangle;importflash.media.Sound;importflash.text.*;publicclassMainextendsSprite{publicstaticconstSTATE_INIT:int=10;publicstaticconstSTATE_PLAY:int=20;publicstati 阅读全文
posted @ 2012-06-21 15:16 王翔(kingfly) 阅读(925) 评论(0) 推荐(0) 编辑
摘要: package{importflash.display.Sprite;importflash.events.Event;importflash.events.MouseEvent;publicclassMainextendsSprite{publicstaticconstSTATE_INIT:int=10;publicstaticconstSTATE_PLAY:int=20;publicstaticconstSTATE_GAME_OVER:int=30;publicvargameState:int=0;//游戏状态publicvarclicks:int=0;//游戏点击次数publicfunc 阅读全文
posted @ 2012-06-20 11:05 王翔(kingfly) 阅读(2381) 评论(0) 推荐(1) 编辑
摘要: package{importflash.display.Bitmap;importflash.display.BitmapData;importflash.display.Loader;importflash.display.Sprite;importflash.events.Event;importflash.events.MouseEvent;importflash.net.URLLoader;importflash.net.URLRequest;publicclassMainextendsSprite{privatevarxiao_tu:Bitmap;//原小图privatevarda_ 阅读全文
posted @ 2012-06-19 11:39 王翔(kingfly) 阅读(1190) 评论(0) 推荐(0) 编辑
摘要: $a = Array ([0] => Array ( [level] => 25 [nick_name] => 王贵)[1] => Array ( [level] => 6 [nick_name] => 张三)[2] => Array ( [level] => 30 [nick_name] => 李四)[3] => Array ( [level] => 25 [nick_name] => 王五)[4] => Array ( [level] => 21 [nick_name] => 六儿)[5] => 阅读全文
posted @ 2012-05-16 15:26 王翔(kingfly) 阅读(275) 评论(0) 推荐(0) 编辑
摘要: 生成按钮类packagecom.ui{importflash.display.SimpleButton;importorg.osmf.layout.AbsoluteLayoutFacet;publicclassButtonextendsSimpleButton{publicfunctionButton(thistext:String):void{vararr:Array=init(thistext);super(arr[0],arr[1],arr[2],arr[2]);//调用父类的构造器函数}privatefunctioninit(thistext:String):Array{varatex 阅读全文
posted @ 2012-05-07 10:01 王翔(kingfly) 阅读(1418) 评论(0) 推荐(0) 编辑
摘要: package{importflash.display.Sprite;importflash.events.MouseEvent;importflash.text.TextField;publicclassMainextendsSprite{privatevarceng:Sprite;privatevarisdown:Boolean=false;//默认鼠标未按下privatevarlinesize:uint=2;//笔触粗细privatevaroldx:Number;//记录上一个点的X坐标位置privatevaroldy:Number;//记录上一个点的Y坐标位置privatevarcha 阅读全文
posted @ 2012-04-25 14:42 王翔(kingfly) 阅读(935) 评论(0) 推荐(0) 编辑
摘要: package{importflash.display.SimpleButton;importflash.display.Sprite;importflash.events.MouseEvent;importflash.text.TextField;publicclassMainextendsSprite{publicfunctionMain():void{init();}privatefunctioninit():void{vara:Sprite=newSprite();//按钮抬起时显示状态huitu(a,0x00ff00);varb:Sprite=newSprite();//放到按钮上显 阅读全文
posted @ 2012-04-25 11:16 王翔(kingfly) 阅读(1559) 评论(2) 推荐(0) 编辑
上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 22 下一页