# (Cannot) Masking multi objects, please help!

**URL:** <https://forum.kirupa.com/t/cannot-masking-multi-objects-please-help/262391>\
**Category:** flash\
**Created:** [June 5, 2008, 4:00pm UTC](https://forum.kirupa.com/t/cannot-masking-multi-objects-please-help/262391 "2008-06-05T16:00:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bonnieraymond](https://avatars.discourse-cdn.com/v4/letter/b/0ea827/32.png) [@bonnieraymond](https://forum.kirupa.com/u/bonnieraymond)\
**Post date:** [June 5, 2008, 4:00pm UTC](https://forum.kirupa.com/t/cannot-masking-multi-objects-please-help/262391/1 "2008-06-05T16:00:58Z")

</div>

Hello,  
I’m encountering this weird problem:

```auto
// first, I set the mask to movie1_mc
movie1_mc.mask = mask_mc; // mask works well

// but when I set the mask to movie2_mc:
movie2_mc.mask = mask_mc;
// ok, movie2_mc got the mask, but movie1_mc lost the mask.

```

So can the mask be applied to ONE object only? I don’t think so as we still can masking multi object on the timeline :pa:

Then, how to masking multi object by code? Please help! :jail:

---

<div class="post-metadata">

**Author:** ![Anogar](https://avatars.discourse-cdn.com/v4/letter/a/ed655f/32.png) [@Anogar](https://forum.kirupa.com/u/Anogar)\
**Post date:** [June 5, 2008, 9:10pm UTC](https://forum.kirupa.com/t/cannot-masking-multi-objects-please-help/262391/2 "2008-06-05T21:10:22Z")

</div>

Is there anything preventing you from sticking the objects into a container sprite or movieclip? In AS3 it doesn’t affect your pathing, really, so you can just add them in there and it’s pretty much good to go.

---

<div class="post-metadata">

**Author:** ![bonnieraymond](https://avatars.discourse-cdn.com/v4/letter/b/0ea827/32.png) [@bonnieraymond](https://forum.kirupa.com/u/bonnieraymond)\
**Post date:** [June 6, 2008, 11:01am UTC](https://forum.kirupa.com/t/cannot-masking-multi-objects-please-help/262391/3 "2008-06-06T11:01:17Z")

</div>

well, thanks for the answer, the only way to do that is putting objects into a container then mask the container, I’ll try this way.
