# attachMovie and setMask, help please

**URL:** <https://forum.kirupa.com/t/attachmovie-and-setmask-help-please/155940>\
**Category:** flash\
**Created:** [July 21, 2005, 12:34pm UTC](https://forum.kirupa.com/t/attachmovie-and-setmask-help-please/155940 "2005-07-21T12:34:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![marws](https://avatars.discourse-cdn.com/v4/letter/m/7ea924/32.png) [@marws](https://forum.kirupa.com/u/marws)\
**Post date:** [July 21, 2005, 12:34pm UTC](https://forum.kirupa.com/t/attachmovie-and-setmask-help-please/155940/1 "2005-07-21T12:34:18Z")

</div>

Hello, i am working on a piece of code, it does not seem very complicated but I am stuck, here is the deal:  
I have a empty mc on top of another mc with a figure in it, using set mask I make the empty mc work as a mask over the figure, nothing shows, great. Now I want to have the user click on empty mc and attach a mc inside it to mask the figure and show a little piece of it. And it just does not happen.

here is the code:

empty\_mc.onRelease=function(){  
this.attachMovie(“ball”, “b”, 2);  
}  
empty2\_mc.setMask(empty\_mc);

Also I need to duplicate the ball mc , so every time the user clicks on empty mc a smal piece of the figure shows

Dont know if I am making myself clear, but I really need help with this

Thanks in advance
