I am trying to take a snapshot of an entire movieclip. Here is the function I am using:
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:
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:
[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