png2swf utility is a part of SWFTools package. It is capable of converting PNG to SWF format and it can really save your life if you are in need of having small PNG files. » Read more: png2swf: a way to keep transparency and small PNG file size
Posts Tagged ‘transparency’
png2swf: a way to keep transparency and small PNG file size
August 7th, 2011BitmapData and transparency
August 4th, 2011If you used draw method from BitmapData class to copy some DisplayObject with transparency you may notice that all transparent pixels turned white. This is because you didn’t set properly parameters in BitmapData construcotr.
By default BitmapData fills it’s background with white and to avoid this you have to set fillColor parameter to any transparent color.
var bitmapData:BitmapData = new BitmapData(someWidth, someHeight, true, 0x00ffffff);
bitmapData.draw(someDisplayObject);
bitmapData.draw(someDisplayObject);