how to copyPixels from an Image
Hello.
My question is ..... well the Tittle of the post says it all.
How do i copyPixels from a image that i have onstage?
I know that when you use .draw it is simple - 1st thing you do is pass the source of the item you want to copy from, no matter if it is bitmapData, Bitmap, Sprite, MC or something else,
but when with copyPixels it is asking specifically for bitmapData..... and that is my problem, what if my source is a MovieClip dragged from the library to the stage.
I did read the http://help.adobe.com referance for the copyPixels but there they create directly the bitmapData like this var bmd2:BitmapData = new BitmapData(80, 40, false, 0x0000CC44);
and then copy from it. But how do you copyPixels from a MC .
Im trying something like this
var newPieceImage1:Bitmap=new Bitmap(new BitmapData(100, 100));
newPieceImage1.bitmapData.copyPixels(movingMC.bitmapData, new Rectangle(0, 0, 100, 100), new Point(0,0));
where the movingMC is actually the picture from the library
Hope you understand my question.
PS: i also would like to ask if i want to copyPixels from a mc with Moving objects in it, how do i do it ?
