
Код AS3:
function replaceColors (source:BitmapData):void
{
var dest:BitmapData = new BitmapData(source.width,source.height,true,0x00000000);
dest.draw (source);
dest.threshold(source, source.rect, new Point(), ">", 0xfff1f1f1,0x00000000);
addChild (new Bitmap(dest));
}
Я просто заменил белый цвет на прозрачный с помощью метода threshold класса BitmapData