I know this should be simple but I can’t figure it out for the life of me.
for(i=0;i<xmlLength;i++){
mainMenu.createEmptyMovieClip(xml*.attributes.n,mainMenu.getNextHighestDepth());
mainMenu[xml*.attributes.n].createTextField(xml*.attributes.tf,this.getNextHighestDepth(),0,yPos,50,15);
mainMenu[xml*.attributes.n][xml*.attributes.tf].html = truel
mainMenu[xml*.attributes.n][xml*.attributes.tf].htmlText = xml*.attributes.n;
mainMenu[xml*.attributes.n]._y = yPos;
yPos+=10;
mainMenu[xml*.attributes.n].onRelease = function(){
pl = xml[**HERE**].attributes.dl;
funcSite(pl);
}
}//end for
on the line pl = xml[HERE].attributes.dl; i want to replace here with the var ‘i’ that is being created by the for loop. I have tried just putting ‘i’ there. any thoughts?