摘要: 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) 编辑