2
不是一個這麼苦苦掙扎的編碼器:nextframe()上的AS3 bitmapData;
試圖在下一個幀中將當前幀作爲位圖來繪製CPU效率。在AS2中,這個代碼的作用就像一個魅力:
import flash.display.*;
// # create the bitmap
var tBitmapData = new BitmapData(400, 200, true, 0x00000000);
// # now draw this movieClip's content to the bitmap
tBitmapData.draw(this);
// # 2nd frame should be blank!
nextFrame();
// # now attach the bitmap you made to this movieclip
this.attachBitmap(tBitmapData, 1, "auto", true);
只需要知道如何重寫這個AS3。謝謝!
應該用下面的東西替換attachBitmap行:'addChild(new Bitmap(tBitmapData));'' –