How to make a gradient mask in flash
I helped one of my fellow co-workers by figuring this out. Was not easy, and wasn’t fun, but once I got it…all was good and I was happy. So here is the the quick instructions on how to do it. Enjoy!
3 layers:
Bottom layer: stuff you want masked – make it movie clip with an instance name of: maskee
Middle layer: the actual mask – make it a movie clip with an instance name of: mask_mc
Top layer: action script layer
place this in the first frame of the mask middle layer:
maskee.setMask(“mask_mc”);
place this in the actions layer:
maskee.cacheAsBitmap = true;
maskMC.cacheAsBitmap = true;
Click on each movie clip, and in the properties panel, and check: Use runtime bit Caching. (Can’t remember if this was really needed or not).
And there you go!





