Setting all bitmapdata pixels transparent

Hi

i’ve got a bitmapdata “bmp”
already transparent, already created
i am loading a sequence of pngs with an alpha channel into it
after the new png is loaded i want to ERASE the contents of bitmap
and draw the new png so the images do not accumulate…

floodfill method is not working,

//SET TRANSPARENT (not working)
bmp.floodFill(0, 0, 0x00000000);
//REDRAW
bmp.draw(target_mc)

all help appreciated,
jhave

try something like:

var color:Number = 0x00000000;
bmp.fillRect(bmp.rectangle, color);

Hope this helps :thumb:

worked perfectly!