wu-tang
11-04-2008, 12:31 AM
Quick question. I have a MC with some over sized content in it (2000,2000). The content is at x=-1000, y=-1000;
This MC sits on the stage and can be moved around. Sometimes it is at a negative X,Y and it extended past the stage width & height.
In the MC class I have a function:
public function getBitmap():Bitmap
{
var bmpData:BitmapData = new BitmapData(grid.width, grid.height, false, 0xFFFF00);
bmpData.draw(this);
var bmp:Bitmap = new Bitmap(bmpData);
return bmp;
};
However, it seems to only capture the area visible on stage - from 0,0 to the width and height of the MC.
Anyone know if it's possible to capture the whole area of the MC?
Thanks:D
This MC sits on the stage and can be moved around. Sometimes it is at a negative X,Y and it extended past the stage width & height.
In the MC class I have a function:
public function getBitmap():Bitmap
{
var bmpData:BitmapData = new BitmapData(grid.width, grid.height, false, 0xFFFF00);
bmpData.draw(this);
var bmp:Bitmap = new Bitmap(bmpData);
return bmp;
};
However, it seems to only capture the area visible on stage - from 0,0 to the width and height of the MC.
Anyone know if it's possible to capture the whole area of the MC?
Thanks:D