开发者

AS3 - get access to the internal bitmap used by CacheAsBitmap?

is it possible to get access to Flash's internal bitmap cache of an object when CacheAsBitmap is on ?

eg, something like:

var bmd:BitmapData = someDisplayObject.getCachedBit开发者_Python百科mapData();
if (bmd != null)
    trace("stoked!");
else
    trace("bummer. got to bmd.Draw(someDisplayObject) ourselves.");

seems unlikely, but thought i'd ask.

tia, Orion


Unfortunately, you will need to go the draw route.

cacheAsBitmap is only used internally by Flash player to determine how a display object is drawn.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜