Bitmap with alpha

bitmap with alpha

hi, I have a dynamically attached bitmap (black and white),
and trying to remove the black area from the bitmap.

also trying to change the bounding box of the mc according to the reduced size of my bitmap.

does anyone have any idea how?



var bmp:BitmapData = new BitmapData(160, 120);

bmp.draw(out);

var mc:MovieClip = this.createEmptyMovieClip("mc1",5);
	
mc.attachBitmap(bmp, 0);