Applying a mask to a DisplayObject

mask

Set the DisplayObject to be the mask of the DisplayObject. The initial value is null. To set the mask, assign a DisplayObject. To remove the mask, assign null.

Example

Next Chapter