Hi there,

I got this function where I want the use the i var to change the names of various objects:

Code:
function imgHolders()
{
for(i=0; i<myVars.total; i++)
{
this.createEmptyMovieClip("imgholder"+i, i); 
// "imgholder"+i should result in imgholder0
clip._x = 10*i;
clip._y = 10*i;
loadMovie myVars.imgfolder+myVars.img+i, "imgholder"+i); 
// myVars.img+i should result in myVars.img0
}
}
Can someone please explain once and for all how to do this. I keep on messing this up!!!

Cheers,
Gekke_Hollander