I have a PNG file with transparency imported into the library and converted to MovieClip. Now I want to use this PNG file for masking another sprite drawn dynamically using the drawing API. I know that you cant mask a runtime generated sprite with a author time movieclip.
So i created another runtime sprite and copied the BitmapData of the PNG in the library to it. The masking happens, but not the way i want. The BitmapData is always a solid box and the masking apears across this box. I would like to have the transparent region of the PNG omitted from the mask data.
Is there anyway I can preserve the transparency information of the PNG when copying the BitmapData so that the masking is as per the PNG and not along the bounding box of the PNG image???