# Masking Layers

**URL:** https://forum.kirupa.com/t/masking-layers/15573
**Category:** Uncategorized
**Created:** [March 15, 2003, 10:27pm UTC](https://forum.kirupa.com/t/masking-layers/15573 "2003-03-15T22:27:28Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![KazchiX](https://avatars.discourse-cdn.com/v4/letter/k/3e96dc/32.png) [@KazchiX](https://forum.kirupa.com/u/KazchiX)
#### Post date: [March 15, 2003, 10:27pm UTC](https://forum.kirupa.com/t/masking-layers/15573/1 "2003-03-15T22:27:28Z")

</div>

Hi all,

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

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [March 16, 2003, 12:26am UTC](https://forum.kirupa.com/t/masking-layers/15573/2 "2003-03-16T00:26:03Z")

</div>

just drag and drop the layer under the mask 🙂

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [March 16, 2003, 12:32am UTC](https://forum.kirupa.com/t/masking-layers/15573/3 "2003-03-16T00:32:32Z")

</div>

Thanx Kax,

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

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [March 16, 2003, 12:41am UTC](https://forum.kirupa.com/t/masking-layers/15573/4 "2003-03-16T00:41:47Z")

</div>

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 🙂

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

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [March 16, 2003, 1:08am UTC](https://forum.kirupa.com/t/masking-layers/15573/5 "2003-03-16T01:08:40Z")

</div>

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?

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [March 16, 2003, 1:29am UTC](https://forum.kirupa.com/t/masking-layers/15573/6 "2003-03-16T01:29:46Z")

</div>

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? 🙂

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [March 16, 2003, 1:37am UTC](https://forum.kirupa.com/t/masking-layers/15573/7 "2003-03-16T01:37:54Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [March 16, 2003, 1:44am UTC](https://forum.kirupa.com/t/masking-layers/15573/8 "2003-03-16T01:44:40Z")

</div>

:sleep: 😛

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [March 16, 2003, 1:46am UTC](https://forum.kirupa.com/t/masking-layers/15573/9 "2003-03-16T01:46:48Z")

</div>

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

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [March 16, 2003, 1:51am UTC](https://forum.kirupa.com/t/masking-layers/15573/10 "2003-03-16T01:51:28Z")

</div>

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

is just that i was waiting for the files and you already have them 😛  
that made me laugh 🙂

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

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [March 16, 2003, 1:53am UTC](https://forum.kirupa.com/t/masking-layers/15573/11 "2003-03-16T01:53:01Z")

</div>

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. =)

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [March 16, 2003, 1:54am UTC](https://forum.kirupa.com/t/masking-layers/15573/12 "2003-03-16T01:54:39Z")

</div>

oh … that’s a good point 😛 😉 🙂
