![]() ![]() | |
You can use a movie clip as a mask to create a hole through which the contents of another movie clip are visible. The mask movie clip plays all the frames in its Timeline, just like a regular movie clip. You can make the mask movie clip draggable, animate it along a motion guide, use separate shapes within a single mask, or resize a mask dynamically. You can also use ActionScript to turn a mask on and off.
You cannot use a mask to mask another mask. You cannot set the _alpha property of a mask movie clip. Only fills are used in a movie clip that is used as a mask; strokes are ignored.
To create a mask:image.mask.
The masked movie clip will be revealed under all opaque (nontransparent) areas of the movie clip acting as the mask.
image.setMask(mask);
For detailed information, see MovieClip.setMask().
![]() ![]() | |