views:

20

answers:

1

i want to create a mask based on an image with alpha transparency, therefore the image and the mask are not simply rectangles.

is this possible?

alt text

A: 

If you have a image where flash can read its transparency, for example a png, then you can as long you cacheAsBitmap both mask and masked objects and apply your mask by code. Example:

masked_mc.cacheAsBitmap = true; mask_mc.cacheAsBitmap = true;

masked_mc.mask = mask_mc;

With this you should be ready to go.

dome