摘要:
[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 阅读全文
摘要:
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 阅读全文
摘要:
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 阅读全文
摘要:
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 阅读全文
摘要:
阅读全文