# Is masking the duplicated movieclips possible?

**URL:** https://forum.kirupa.com/t/is-masking-the-duplicated-movieclips-possible/119339
**Category:** Uncategorized
**Created:** [August 13, 2004, 4:24pm UTC](https://forum.kirupa.com/t/is-masking-the-duplicated-movieclips-possible/119339 "2004-08-13T16:24:20Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![gerryboy\_2k](https://avatars.discourse-cdn.com/v4/letter/g/74df32/32.png) [@gerryboy\_2k](https://forum.kirupa.com/u/gerryboy_2k)
#### Post date: [August 13, 2004, 4:24pm UTC](https://forum.kirupa.com/t/is-masking-the-duplicated-movieclips-possible/119339/1 "2004-08-13T16:24:20Z")

</div>

I ve got a mouse trail, I would like to mask all the trails to a image, is it possible masking the duplicated movieclips (that come as trails) to a image that is below ?? using set mask()?? as for me only the actual movie masks the image but not the duplicated ones, unfortunately. can anyone help plz. below is the code i ve used.

var a:Number=0;

onEnterFrame=function():Void{  
a+=1;  
duplicateMovieClip(mcAni,“mcAni”+a,a);  
**[color=red]img.setMask(“mcAni”+a);[/color]**  
if(a\>36){  
removeMovieClip(mcAni)  
a=0;  
}  
mcAni.\_x+=(\_xmouse-mcAni.\_x)/15;  
mcAni.\_y+=(\_ymouse-mcAni.\_y)/15;

}
