Photo of Words

Create masks using alpha gradients

This may save your life

By: Josh Knight

I have very little time, but I don't ever want to forget this. If you want to use an alpha gradient as a mask, here's what you have to do:

maskee.cacheAsBitmap = true;
mask.cacheAsBitmap = true;

maskee.setMask(mask);

Obviosuly, "maskee" is the instance name of the clip you are masking. And, "mask" is the movie clip you are using as a mask - the one that contains the gradient.

Enjoy.