# Scriptable Mask

**URL:** <https://forum.kirupa.com/t/scriptable-mask/105316>\
**Category:** Uncategorized\
**Created:** [March 25, 2004, 12:26am UTC](https://forum.kirupa.com/t/scriptable-mask/105316 "2004-03-25T00:26:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![InteliMARK](https://avatars.discourse-cdn.com/v4/letter/i/82dd89/32.png) [@InteliMARK](https://forum.kirupa.com/u/InteliMARK)\
**Post date:** [March 25, 2004, 12:26am UTC](https://forum.kirupa.com/t/scriptable-mask/105316/1 "2004-03-25T00:26:10Z")

</div>

Hi i’ve dinamicly loaded a .JPG inside a movie clip that i’ve created with createEmptyMovieClip, then i’ve attached a movie clip from the library, what im trying to do is set a mask between this two movie clips, in one of them i used for depth 20, and the other one 21, but it doesnt work ☹

here is the code im using:

\_root.createEmptyMovieClip(“BigPic”, 20);  
BigPic.loadMovie(“images/bigfoto.jpg”);  
BigPic.\_x = 0;  
BigPic.\_y = 80;  
attachMovie(“camara”, “camara1”, 21);  
camara1.\_y = 80;  
BigPic.setMask(camara1);

Please give me a little hand with this…
