I found this question on Adobe's forums,但我不開心的回答有:繪圖小精靈大的位圖
我有一個精靈circSprite,我在一個大的位圖drawingBitmap借鑑。
drawingBitmapData = new BitmapData(800, 600, true,0); drawingBitmap = new Bitmap(drawingBitmapData); stage.addChild(drawingBitmap); var circSprite:Sprite = new Sprite(); circSprite.graphics.beginFill(0xFF0000,0); circSprite.graphics.drawRect(0,0,160,160); circSprite.graphics.endFill(); circSprite.graphics.beginFill(0xFF00FF,1); circSprite.graphics.drawCircle(40,40,40); circSprite.graphics.endFill(); var mat:Matrix = new Matrix(); drawingBitmapData.drawWithQuality(circSprite,mat,null,null, null,true,StageQuality.MEDIUM);
我想將circSpirte移動到不同的位置(100,100) - 我該怎麼做?
謝謝!