hey, im trying to load some variables from a php script using LoadVars within a for loop. The problem is that it seems to only load in from the last loop. So if there are two, only the second shows, three, only the third. Here’s the relevant code and any help is most appreciated:
for(j=0; j<shirtsArray.length; j++){
shirtVars = new LoadVars();
shirtVars.load("image_functions.php?duty=getShirt&image="+shirtsArray[0], "Get");
shirtVars.onLoad = function(){
newShirt = shirtVars.shirt;
//_root[path].shirtThumb_mc._xscale = -717;
//_root[path].shirtThumb_mc._yscale = -717;
loadMovie("hot_shirts/"+newShirt, _root[path].shirtThumb_mc);
}
}