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.
精彩评论