PDA

View Full Version : problem with masking, please help



zouzoumm
April 17th, 2003, 12:17 AM
Hi Everyone, I need a little help on this.
I want to mask a movie clip with another one, the mask is a dynamic square which expands to the whole scene.
Anyway, I wanted to now what is the relation between the layer of the masked movie and the mask itself,(should they be at the same level or not?):hangover: I use the above script:

_root.createEmptyMovieClip("mask", 22);
_root.createEmptyMovieClip("masked", 21);
masked.attachMovie("home_btn", "masky", 0);
_root.masked.masky.setMask("mask");
with (_root.mask) {
lineStyle(0, 0*000000, 100);
beginFill(0*FF0000, 40);
moveTo(38, 361);
lineTo(saita._x, 361);
lineTo(saita._x, saita._y);
lineTo(38, saita._y);
lineTo(38, 361);
mask.endFill();
}

Please help

deamothul
April 22nd, 2003, 07:56 AM
Hey, saw this thread before.:)
Gues it was on flashKit.
What kinda problem do you have with the mask.

I had a problem with it too, i wanted 2 mask different objects with the same mask, CAN't be Done AAAhhggg;(

Had 2 make a mulitple masks if i had muliple objects to mask.

Greetz from deamothul - the script keeper -

pom
April 22nd, 2003, 05:48 PM
zouzoum >> Maybe if you described your problem with that code... :)
deamothul >> The usual workaround is to put all the clips you want to mask inside a container clip and then mask the container.

pom :trout:

deamothul
April 23rd, 2003, 03:38 AM
Pom, that didn't work 4 me. ;(