开发者

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

开发者 https://www.devze.com 2022-12-20 03:25 出处:网络
is it possible to get access to Flash\'s internal bitmap cache of an object when CacheAsBitmap is on ?

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

精彩评论

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