| As we've discussed in
the Masking
tutorial, a mask can restrict the visible area of
the target clip to the mask area. So, what if the mask
can move? Below is a simple example showing the effect
(please move your mouse around...):
In this example, there is not much new
techniques. You can create the target clip (the background
picture) and the mask as in the Masking
tutorial. The only thing worth mentioning is how
to make the mask move with the mouse.
Assumming you've already created your
target clip and the mask clip on the main stage. Now,
add a new layer on the main stage and name it as "action".
In the first frame of the new layer, add the following
actionscripts:
startDrag(mask_clip, true);
Mouse.hide(); |
The first line makes the mask clip (with
name "mask_clip") move with the mouse cursor.
The second line hide the mouse cursor (so the effect
looks better ^_^).
That is all. Enjoy!
< Tutorials
Index - Download
this tutorial - Post
suggestions > |
| |