Put the bitmap on a display container, set the .mask of the masked
object as being that object that contains the bitmap, set cacheAsBitmap
of both to true. So it'll be a normal masked object, but it'll respect
the bitmap transparency (instead of using the image's box as the
transparency mask).
Zeh
jonathan howe wrote:
Hallo,
I'm loading transparent pngs in as Bitmaps and placing them within a display
object. I'd like to create a mask that is the same shape as the
non-transparent pixels, (so that I can overlay a gleam animation). Is there
an easy way to use a Bitmap or BitmapData as a mask that respects the shape
of the bitmap?
Please lend me your awesomeness for a moment,
-jonathan
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders