PDA

View Full Version : Mask dragging in Flash 5!


GustavoGF
08-28-2002, 04:24 AM
Hi guys...
I was trying to make a cool effect in Flash: I have a picture of a person, and then I drawed the person with the pencil tool, on another layer... Then, I created a mask movie clip that masks the picture of the person. So, the deal is when the user moves the mouse, the mask will follow the mouse, and reveal the photo in the drawing, but only a small part of it. The layer with the drawing stays in the back, off the mask.

The mask movie clip is a rectangle with approximately 500px width and 150px height.

In the stage, I added an action to the movie clip:


OnClipEvent (load) {
StartDrag (this, true, 0, 0, 0, 450);
}


It worked perfectly in Flash MX, but in Flash 5 it just WONT DRAG GRRR$%¨#@ :mad: -- sorry.

Can anyone help me? Why Flash 5 sucks?
Thanks to eveyone!

farafiro
09-01-2002, 11:57 AM
In flash 5 u can't script a mask, there is a work around it. I think there is an example here in the Movies section

GustavoGF
09-01-2002, 07:24 PM
Thanks, Farafiro...

I think I'll have to script it with _xmouse and _ymouse properties...

Many thanks,