# Access the cache from cacheAsBitmap

**URL:** <https://forum.kirupa.com/t/access-the-cache-from-cacheasbitmap/262346>\
**Category:** Uncategorized\
**Created:** [June 5, 2008, 9:08am UTC](https://forum.kirupa.com/t/access-the-cache-from-cacheasbitmap/262346 "2008-06-05T09:08:43Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![dominus](https://avatars.discourse-cdn.com/v4/letter/d/b5ac83/32.png) [@dominus](https://forum.kirupa.com/u/dominus)\
**Post date:** [June 5, 2008, 9:08am UTC](https://forum.kirupa.com/t/access-the-cache-from-cacheasbitmap/262346/1 "2008-06-05T09:08:43Z")

</div>

Is there any way to access the bitmap data that flash stores internally for a movieClip is the cacheAsBitmap property is set to true?

Also, do you know if there is another method to make a BitmapData from a DisplayObject(mc, sprite) rather than draw()? I need something really fast, for a graphic that has rather few changes.

Thanks

---

<div class="post-metadata">

**Author:** ![Alex\_Lexcuk](https://avatars.discourse-cdn.com/v4/letter/a/919ad9/32.png) [@Alex\_Lexcuk](https://forum.kirupa.com/u/Alex_Lexcuk)\
**Post date:** [June 5, 2008, 1:25pm UTC](https://forum.kirupa.com/t/access-the-cache-from-cacheasbitmap/262346/2 "2008-06-05T13:25:40Z")

</div>

on example dynamic text field

```auto

var myBitmapData:BitmapData;
var bmp:Bitmap;
myBitmapData = new BitmapData(150, 150, true, 0x00000000);//0x00000000 transparent
bmp= new Bitmap(myBitmapData);
myBitmapData.draw(my_text);
addChild(bmp);

```

[http://dnadillo.dn.ua/mur\_gallery/ac3FLA/star\_war.swf](http://dnadillo.dn.ua/mur_gallery/ac3FLA/star_war.swf)  
[http://dnadillo.dn.ua/mur\_gallery/ac3FLA/star\_war.rar](http://dnadillo.dn.ua/mur_gallery/ac3FLA/star_war.rar)

you may use instead of text MovieClip or Sprite.

---

<div class="post-metadata">

**Author:** ![dominus](https://avatars.discourse-cdn.com/v4/letter/d/b5ac83/32.png) [@dominus](https://forum.kirupa.com/u/dominus)\
**Post date:** [June 5, 2008, 1:34pm UTC](https://forum.kirupa.com/t/access-the-cache-from-cacheasbitmap/262346/3 "2008-06-05T13:34:27Z")

</div>

hi alex… thanks for the reply…

unfortunately that’s not what I had in mind when I posted the question…

---

<div class="post-metadata">

**Author:** ![creatify](https://avatars.discourse-cdn.com/v4/letter/c/d07c76/32.png) [@creatify](https://forum.kirupa.com/u/creatify)\
**Post date:** [June 5, 2008, 2:02pm UTC](https://forum.kirupa.com/t/access-the-cache-from-cacheasbitmap/262346/4 "2008-06-05T14:02:17Z")

</div>

I don’t know of a faster way than draw to get the bitmap to render - but here is an interesting thread that may help, its seems like another way to access a Bitmap quickly - but you’ll still need to draw this to an object to render - I believe: [http://www.kirupa.com/forum/showthread.php?t=267339&page=2](http://www.kirupa.com/forum/showthread.php?t=267339&page=2)
