摘要:
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会将字符编码转 阅读全文
摘要:
单机CLICK,双击DOUBLE_CLICK,按下MOUSE_DOWN,弹起MOUSE_UP,划过ROLL_OVER,划出ROLL_OUT,移动MOUSE_MOVE 阅读全文
摘要:
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 阅读全文
摘要:
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 阅读全文
摘要:
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 阅读全文
摘要:
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_ 阅读全文
摘要:
$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] => 阅读全文
摘要:
生成按钮类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 阅读全文
摘要:
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 阅读全文
摘要:
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();//放到按钮上显 阅读全文