Load jpeg from a loop pb

Hello,

Here’s what i’m trying to do: I load a variable (image url) from PHP/SQL and i’m trying to resize the images on the fly:


myLoadvars = new LoadVars();
myLoadvars.load("http://localhost:8080/Tests/music.php");
myLoadvars.onLoad = function(succes) {
	if (succes) {
		_global.songtotal = parseInt(this.musictotal);
		for (i=0; i<_global.songtotal; i++) {
			_root["mycover"+i] = this["Cover"+i];
			_root.createEmptyMovieClip(["container"+i], 400+i);
			loadMovie(_root["mycover"+i], _root["container"+i]);
			_root["container"+i]._x = 50*(i+1); //only to check result
		}
	}
};

well i’m stuck here cause only the 1st pic get stored in the 1st container … Any idea why??