Saturday, January 19, 2008

How to make a "torch" effect

In this tutorial I'm explaining the most basic way of doing it.

What's on stage?

Only 2 layers, the mask and the masked.



In layer 1, the masked one, I have an image and in layer 2, the mask, a MovieClip instanced as "torch".

The actionScript there is:

startDrag("torch", true);
Mouse.hide();

And that's all. With startDrag we tell the movie to drag our MovieClip with the mouse and then we hide our mouse.

Here you can see it in action





Download the source code here

1 comment:

Rising ICT said...

Good written article