# Using duplicate mc as mask?Help

**URL:** <https://forum.kirupa.com/t/using-duplicate-mc-as-mask-help/22116>\
**Category:** Uncategorized\
**Created:** [May 30, 2003, 12:29pm UTC](https://forum.kirupa.com/t/using-duplicate-mc-as-mask-help/22116 "2003-05-30T12:29:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![muk](https://avatars.discourse-cdn.com/v4/letter/m/f4b2a3/32.png) [@muk](https://forum.kirupa.com/u/muk)\
**Post date:** [May 30, 2003, 12:29pm UTC](https://forum.kirupa.com/t/using-duplicate-mc-as-mask-help/22116/1 "2003-05-30T12:29:07Z")

</div>

is it possible to use an duplicate mc as mask?  
i have a 15 frame mc thats duplicated on main timeline - if i turn its layer into mask the dup mc does not play through 15 frames and remain on stage but flashes and dissapears.  
Current code:  
frame 1:  
\_root.drip.duplicateMovieClip(“drip”, i, i);  
\_root.drip.\_x = random(600);  
\_root.drip.\_y = random(300);  
\_root.drip.\_xscale = scale;  
\_root.drip.\_yscale = scale;  
scale = (random(100)+50);  
i++;  
frame2:  
if (i\<10) {  
gotoAndPlay(1);  
}  
if (i\>=10) {  
gotoAndStop(“sivmenu”);  
}  
any help most appreciated

---

<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:** [May 30, 2003, 12:51pm UTC](https://forum.kirupa.com/t/using-duplicate-mc-as-mask-help/22116/2 "2003-05-30T12:51:55Z")

</div>

should “scale” be defined before its used?

\_root.drip.\_y = random(300);  
\<–|  
\_root.drip.\_xscale = scale; |  
\_root.drip.\_yscale = scale; |  
scale = (random(100)+50); --|

maybe tag another stop(); action on the frame that has the label “sivmenu” just for good luck 🙂

plus you should probably put i=1; at the start of your code so this line:

\_root.drip.duplicateMovieClip(“drip”, i, i);  
starts off with \_root.drip.duplicateMovieClip(“drip”, 1,1);

hope that helps 🙂

Proposed code:

Frame 1:  
i=1;  
\_root.drip.duplicateMovieClip(“drip”, i, i);  
\_root.drip.\_x = random(600);  
\_root.drip.\_y = random(300);  
scale = (random(100)+50);  
\_root.drip.\_xscale = scale;  
\_root.drip.\_yscale = scale;  
i++;

Frame 2:  
if (i\<10) {  
gotoAndPlay(1);  
}  
if (i\>=10) {  
gotoAndStop(“sivmenu”);  
}

Frame “sivmenu”:  
stop();

---

<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:** [May 31, 2003, 9:14am UTC](https://forum.kirupa.com/t/using-duplicate-mc-as-mask-help/22116/3 "2003-05-31T09:14:51Z")

</div>

thanks but it works the same. problem is it works fine, but as soon as I turn duplicate mc’s layer into mask it dosn’t. Maybe this is just not possible? I’m trying to make a ‘drip’ sequence that slowly reveals underlying layer b4 moving on? any insight or other ways around this greatly appreciated.
