Here is the code I am using.. it is duplicating the container fine but not loading the images. I trace the path and it is finding the image path fine, but still not loading.

Code:
stop();
var i = 0;
num = 0;
gridx = this.tracktainer._width + 5;
gridy = this.tracktainer._height + 5;


tracks = new XML();
tracks.ignoreWhite = true;
tracks.onLoad = function(success)
{
        if(success)
        {
			trackNum = tracks.firstChild.childNodes.length;
			imagePath  =  [];
			
			for(k=0; k<2 ; k++){
				for(l=0; l<trackNum; l++){
					tracktainer.duplicateMovieClip("track" + num, num+1);
					setProperty("track" + num, _x, tracktainer._x + (gridx * k));
					setProperty("track" + num, _y, tracktainer._y + (gridy * l));
					imagePath = tracks.firstChild.firstChild
					//tracker.loadMovie(imagePath);
					["track" + num].loadMovie(imagePath.attributes.jpegURL);
					num++;
					i++;
					trace(imagePath);
				}
			}
		}
}


	

tracks.load("tracks.xml");