# \[AS2\] Masking Duplicated Movie Clips?

**URL:** https://forum.kirupa.com/t/as2-masking-duplicated-movie-clips/241366
**Category:** flash
**Created:** [October 12, 2007, 5:41pm UTC](https://forum.kirupa.com/t/as2-masking-duplicated-movie-clips/241366 "2007-10-12T17:41:57Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![switchBack](https://avatars.discourse-cdn.com/v4/letter/s/9dc877/32.png) [@switchBack](https://forum.kirupa.com/u/switchBack)
#### Post date: [October 12, 2007, 5:41pm UTC](https://forum.kirupa.com/t/as2-masking-duplicated-movie-clips/241366/1 "2007-10-12T17:41:57Z")

</div>

Hey everyone, I need some help :D.

I used a tutorial from here, that creates snow, and changed it up a bit so that it now creates fizz in a soda. however I’m running into a snag.

Is there any way to mask duplicated movieClips so that they only show up in a certain area? Or some way to set parameters to accomplish the same effect? (i.e. I want the bubbles to only appear in the area of the cup, and not all over the place).

Right now I have just set X and Y values to do this, but the cup is angled and not square, so it doesn’t looks quite right.

I have tried setting a mask on a layer above which the duplicated movie clip sits, and also have tried setting the depth of a mask\_mc so that it is well above any of the layers that the bubbles are generated on (by use of a for() loop), but nothing works.

Any help would be very much appreciated. Thanks.
