views:

26

answers:

1

Hi,

I am coding in AS3 and I am using BitmapData to take a snapshot of a movieclip. Is there a way to have the end result BitmapData to support transparency?

How do I take a snapshot of a movieclip without any background?

Thanks.

A: 

have you tried the following?

// set the transparent property to true
var bmd:BitmapData = new BitmapData( movieClip.width , movieClip.heigth , true );

//pass the movie clip you want to take a snapshot of as a parameter
//to the draw() method
bmd.draw(movieClip);
PatrickS