摘要:
[SWF(backgroundColor=0x0,width=550,height=400)]varsp:Sprite=newSprite();addChild(sp);sp.x=stage.stageWidth/2;sp.y=stage.stageHeight/2;varball:Sprite=newSprite();sp.addChild(ball);ball.z=650;varspeed:Number=10;vara=10;trace(a=a*a,a/2,a);functioncreateRect(com:Sprite,c:uint=0xff0000,w:Number=50,h:Numb 阅读全文
posted @ 2011-09-02 20:34
ddw1997
阅读(491)
评论(0)
推荐(0)
摘要:
importflash.geom.Matrix;importflash.display.BitmapData;varmap:BitmapData=newBitmapData(mc.width,mc.height);map.draw(mc);var_testPic:BitmapData=newtestPic();var_w:Number=map.width;var_h:Number=map.height;varm1:Matrix=newMatrix();varm2:Matrix=newMatrix();varap:Array=[];varat:Array=[];vartempmc:MovieCl 阅读全文
posted @ 2011-09-02 20:21
ddw1997
阅读(374)
评论(0)
推荐(0)
摘要:
importflash.display.MovieClip;importflash.geom.Matrix;importflash.events.MouseEvent;varsp:MovieClip=newContainer();varcontainClone:MovieClip=newContainer();varrect:MovieClip=newRect();this.addChild(sp);sp.x=sp.y=200;sp.addChild(rect);rect.x=100;rect.y=50;varm0:Matrix=rect.transform.matrix;varm1:Matr 阅读全文
posted @ 2011-09-02 20:08
ddw1997
阅读(281)
评论(0)
推荐(0)
摘要:
importflash.events.Event;importflash.geom.Matrix;varangle:Number=0;varcameraM:Matrix=newMatrix();varmcM:Matrix=mc.transform.matrix;this.addEventListener(Event.ENTER_FRAME,loop);functionloop(e:Event):void{angle++;vartempM:Matrix=mcM.clone();cameraM.identity();cameraM.createBox(1,1,angle*Math.PI/180,1 阅读全文
posted @ 2011-09-02 20:04
ddw1997
阅读(299)
评论(0)
推荐(0)
摘要:
阅读全文
posted @ 2011-09-02 19:49
ddw1997
阅读(315)
评论(0)
推荐(0)

浙公网安备 33010602011771号