AS3 Flex masks with black background from png bitmap

Posted by airlocker on Stack Overflow See other posts from Stack Overflow or by airlocker
Published on 2010-04-30T16:04:42Z Indexed on 2010/04/30 16:07 UTC
Read the original article Hit count: 253

Filed under:
|
|
|

Hi all

What I am trying to achieve might be trivial, however I am loading a PNG mask which does not have a transparent background, but rather a black background, with the shape defined on top in white (the actual mask which needs to be applied). Apparently Flex expects me to provide a mask with a transparent background for it to work, or am I missing something?

If that's the case, could I transform the bitmapData which I am loading so that it treats black color as transparent?

thanks in advance.

© Stack Overflow or respective owner

Related posts about actionscript-3

Related posts about mask