# Attaching Mask Dynamically to multiple instances?

**URL:** <https://forum.kirupa.com/t/attaching-mask-dynamically-to-multiple-instances/174113>\
**Category:** Uncategorized\
**Created:** [January 3, 2006, 1:19am UTC](https://forum.kirupa.com/t/attaching-mask-dynamically-to-multiple-instances/174113 "2006-01-03T01:19:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![SAVAGER](https://avatars.discourse-cdn.com/v4/letter/s/85f322/32.png) [@SAVAGER](https://forum.kirupa.com/u/SAVAGER)\
**Post date:** [January 3, 2006, 1:19am UTC](https://forum.kirupa.com/t/attaching-mask-dynamically-to-multiple-instances/174113/1 "2006-01-03T01:19:22Z")

</div>

Hi

I am attaching six movies via the attachMovie method. I have put all six of these instances into an array and everything’s going smoothly as all box’s move around in random places and bounce around around a little. Only problem is I want to mask all 6 of these instances via setMask so they are restricted to one area but can’t seem to figure out how to do that.

If that’s not possible I would also love to know if there is a way to do collision testing with them and then I could draw a border around the area I want them to stay in and have them bounce around that (I would actually prefer this)

Any ideas???

Thanks in advance
