Creating a gradient mask in AS3 is pretty simple. Just copy and paste this code and you're good to go. First create your two movie clips, one for your mask, the other what's to be masked.
mcContent.cacheAsBitmap = true
mcMask.cacheAsBitmap = true
mcContent.mask = mcMask
There, just like that, transparent gradient masking.
No comments:
Post a Comment