Kamchatka
Masking display objects
You can use a display object as a mask to create a hole through which the contents of another display object are visible.
Subtopics
Defining a mask
About masking device fonts
Alpha channel masking
Defining a mask
To indicate that a display object will be the mask for another display object, set the mask object as the mask property of the display object to be masked:

Код:
// Make the object maskSprite be a mask for the object mySprite.
mySprite.mask = maskSprite;
см. Хелп
Display programming > Manipulating display objects > Masking display objects