C o L i n C h e e
2 5 3 4 2 7 4
c o l i n c h e e . n e t
S w i n b u r n e
U n i v e r s i t y

L o o p i n g S c r i p t

tfor (var i = 0; i<=15; i++)
{


// more 16 boxes vertically
for (var j = 0; j<=15; j++)
{
this.attachMovie("my_mc", "box"+j+"_"+i, this.getNextHighestDepth());

this["box"+j+"_"+i]._x = 20 * i;
// this["box"+i]._y = 0;
this["box"+j+"_"+i]._y = 20 * j;

this["box"+j+"_"+i].gotoAndPlay(random(5)+1);
//this["box"+j+"_"+i].gotoAndStop(random(5)*10+1);

}
}

}