You can use threshold to do that.
var bitmap:BitmapData = BitmapData.loadBitmap("myPNG");
bitmap.threshold(bitmap, bitmap.rectangle, bitmap.rectangle.topLeft, '>',
0x00000000, 0xFFFF0000);
maskClip.attachBitmap(bitmap, 1);
That will turn all pixels with some alpha to red and full alpha.
Dave -
Head Developer
http://www.blurredistinction.com
Adobe Community Expert
http://www.adobe.com/communities/experts/
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com