16 July 2010
Adobe Flash Player provides a mask feature for visually cropping display objects within a shape. The process involves creating a shape and applying it to the "mask" property of another display object. Masks can stay stationary while the object being masked moves—or masks can animate above the object to create transitions and special effects.
This sample demonstrates three types of masks. Click the buttons to see the different effects.
This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License. Permissions beyond the scope of this license, pertaining to the examples of code included within this work are available at Adobe.