Hi there,
I got this function where I want the use the i var to change the names of various objects:
Can someone please explain once and for all how to do this. I keep on messing this up!!!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 } }
Cheers,
Gekke_Hollander





Reply With Quote