# \[how-to\] apply 1 mask on 10 movieClips in AS2

**URL:** <https://forum.kirupa.com/t/how-to-apply-1-mask-on-10-movieclips-in-as2/230285>\
**Category:** flash\
**Created:** [June 25, 2007, 2:19am UTC](https://forum.kirupa.com/t/how-to-apply-1-mask-on-10-movieclips-in-as2/230285 "2007-06-25T02:19:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![manfree](https://avatars.discourse-cdn.com/v4/letter/m/f04885/32.png) [@manfree](https://forum.kirupa.com/u/manfree)\
**Post date:** [June 25, 2007, 2:19am UTC](https://forum.kirupa.com/t/how-to-apply-1-mask-on-10-movieclips-in-as2/230285/1 "2007-06-25T02:19:07Z")

</div>

dear all,

Currently i have 10 movieClips and named it as (dog0, dog1, dog2 … dog9)  
I would like to appy a mask for these movieClips (dogs) ~~ by using ActionScript

```auto
 
// this script works fine 
dog0.setMask(theMask);

```

however,  
when i try the following script

```auto
dog0.setMask(theMask);
dog1.setMask(theMask);

```

the mask only applies on dog1 … but NOT dog0  
does it mean i have to create 10 masks for each dog ???

Any body could help me to solve it ??  
I would like to mask all these dogs ~~

Thanks  
Sam
