Kirupa AS Grid Tutorial Question

I am trying to tile a 5x5 bitmap 160 times in height which will come to 800 and 120 in width which is 600.

Here is the code that doesn’t work:

gridx=5;
for (var i=0;i < 160;i++)
{
background.duplicateMovieClip(“background”+i,i);
mc=this[“background”+i];
mc._x=gridxi;
}
dot._visible=0;
gridx=0;
gridy=120;
num=0;
for (var i=0;i < 160;i++)
{
for (var j=0;j < 5;j++)
{
background.duplicateMovieClip(“background”+num,num);
mc=this[“background”+num];
mc._x=gridx
i;
mc._y=gridy*j;
num++;
}
}
background._visible=0;

I am pretty sure this code I changed is as messsed up as possible. :sigh:

Thanks in Advanced

It’ll perform the same function with abandon… what’s the limit, 200,000 times?