Masking Layers

Hi all,

How could I mask more than one layer with one mask?

just drag and drop the layer under the mask :slight_smile:

Thanx Kax,

Then, how do you adjust the location of the masks created by using setMask();?

oh wait … i thought you where using another layer as the mask

setMask() allows you to mask only one movie clip. you can’t mask several movie clips with the same mask :-\

however, you can place all the movie clips into another movie clip and then apply the mask :slight_smile:

and to move the movie clip (mask) through the _x and _y properties

Hi Kax,

Here’s what I did. I create movieClip shaped square and add some tween motion to it. It’s not placed anywhere on the frame or layer but stored in the library. I load jpg file onto the container movieClip and use setMask() to mask it.

_root.imageholder.loadMovie(“images/image0.jpg”);
_root.imageholder.setMask(“mask1”);
_root.imageholder.setMask(“mask2”);
_root.imageholder.setMask(“mask3”);
_root.imageholder.setMask(“mask4”);

But, mask never appear on the screen therefore picture is always seen. What’s wrong with this?

i told you that you can’t mask several movie clips with the same movie clip. either a movie clip can have several masks :-\

i’m not sure that i understood how you set up your movie … can you attach the files? :slight_smile:

Here you go KazchiX, for some weird reason, the setMask worked after I placed it into an event handler. I tried using attachMovie, but that isn’t working, but I’m still playing around with it.

:sleep: :stuck_out_tongue:

haha Kax, did I do something wrong? If I made a mistake then please help. =)

no no no … don’t get me wrong =)

is just that i was waiting for the files and you already have them :stuck_out_tongue:
that made me laugh :slight_smile:

i mean … what’s the point of asking for help if you already it? :crazy:

Well I was helping her with the setMask, but it stumped me for awhile so it was best to ask for more help on the forum. =)

oh … that’s a good point :stuck_out_tongue: :wink: :slight_smile: