# \[AS3\] Snapshot of ENTIRE movieclip?

**URL:** <https://forum.kirupa.com/t/as3-snapshot-of-entire-movieclip/325077>\
**Category:** Uncategorized\
**Created:** [September 25, 2011, 10:01am UTC](https://forum.kirupa.com/t/as3-snapshot-of-entire-movieclip/325077 "2011-09-25T10:01:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Scheisse](https://avatars.discourse-cdn.com/v4/letter/s/839c29/32.png) [@Scheisse](https://forum.kirupa.com/u/Scheisse)\
**Post date:** [September 25, 2011, 10:01am UTC](https://forum.kirupa.com/t/as3-snapshot-of-entire-movieclip/325077/1 "2011-09-25T10:01:55Z")

</div>

I am trying to take a snapshot of an entire movieclip. Here is the function I am using:

```auto

function snapShot(mc:DisplayObject, scalex:Number, scaley:Number):Bitmap
{
    var m:Matrix = new Matrix();
    m.scale(scalex,scaley);
    var bmpData:BitmapData = new BitmapData(mc.width, mc.height+3, true, 0x00000000);
    bmpData.draw(mc,m);
    var bmp:Bitmap = new Bitmap(bmpData);
    return bmp;
}

```

Here is my problem:  
Using this picture:  
 ![](http://forum.kirupa.com/uploads/kirupa/6591/8aefd1f64fb1fb61.jpg)

When I pass it through the function I only get the bottom-right portion of the image. It has a centered registration point. I’ve tried all registration points too and the top-left (0,0) works but my project is already based around objects having a low-mid registration point:

![](http://i56.tinypic.com/2z5ov93.png)

[SIZE=4]**Does anyone know what I am doing wrong?  
I just want a snapshot of the full movieclip instead of the bottom-right portion regardless of the registration point.**[/SIZE]

edit: No, I’m not here to sell watermelons 😉
