
Creating a gradient mask in Flash 8
To create a gradient mask in Flash up to version 8, you had to create a movie above the mask with a gradient to match the background color, and if the background is also a picture, creating such a mask became even more difficult. In the eighth version of Flash, the moviebooks have the cacheAsBitmap property , with which we got a gain in FlashPlayer’s performance by programmatically animating a large number of movie clips on stage, and it was very easy to create gradient masks. We’ll analyze a couple of examples, one we’ll do with handles, setting bitmap caching in the Properties panel. We

’ll do another one programmatically, pulling movies to the scene from the library and applying cacheAsBitmap to them. I will not paint anything here, because commented everything in the source, so download and understand.
Source code

’ll do another one programmatically, pulling movies to the scene from the library and applying cacheAsBitmap to them. I will not paint anything here, because commented everything in the source, so download and understand.
Source code