# Other setMask problems

**URL:** <https://forum.kirupa.com/t/other-setmask-problems/79098>\
**Category:** Uncategorized\
**Created:** [February 10, 2005, 10:31pm UTC](https://forum.kirupa.com/t/other-setmask-problems/79098 "2005-02-10T22:31:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![2nd\_day](https://avatars.discourse-cdn.com/v4/letter/2/a4c791/32.png) [@2nd\_day](https://forum.kirupa.com/u/2nd_day)\
**Post date:** [February 10, 2005, 10:31pm UTC](https://forum.kirupa.com/t/other-setmask-problems/79098/1 "2005-02-10T22:31:35Z")

</div>

hi ppl,

i’ve done some actionscripting and i came up with this:

```auto

col = 16;
row = 8;
total = 128
for(i=0; i<total; i++){
 xpos = (i%col)*50;
 ypos = Math.floor(i/col)*50;
 _root.attachMovie("box", "mc"+i, i);
 _root["mc"+i]._y=ypos;
 _root["mc"+i]._x=xpos;
 //_root.boe.setMask(_root["mc"+i]);
 _root["mc"+i]._alpha=5;
}
_root.b=-1;
this.onEnterFrame = function(){
 
 _root.b++;
 _root["mc"+_root.b]._alpha=10;
 _root["mc"+(_root.b-1)]._alpha=25;
 _root["mc"+(_root.b-2)]._alpha=50;
 _root["mc"+(_root.b-3)]._alpha=80;
 _root["mc"+(_root.b-4)]._alpha=100;
 if(_root.b>(total+4)){
  //_root.b=-1;
  delete this.onEnterFrame;
 }
}

```

just make a cube 50\*50px and export it for actionscript… when you test the movie you will see a part of the screen filling with that same box… i want to use these boxes as a mask for a picture… but i can’t make it work…  
this (\_root.boe.setMask(\_root[“mc”+i])😉 just doesn’t fix it…

who can help me out?
