Tutorials, extensions, and source files for ActionScript, Flash, and other Adobe products.


Flash Source Files

Gradient Mask Brain

Posted January 12, 2006 by senocular

Version: Flash 8

This example uses the BitmapData class and alpha channels within it to create an alpha mask revealing an image of a brain beneath an image of a human head providing an x-ray effect.

Note: Gradient masks can also be achieved without the BitmapData class if you use runtime bitmap caching for both the mask and the maskee and apply the mask using setMask.