Hi I am loading pics via xml and i want each button to load an image once it is clicked, but I only get the last image name for each button and not the rest. can some one please help.

Code:
//2

path = "images/ring/gk_th2/";
ballPath = "images/ring/bigger/"
var myXML2:XML = new XML();
myXML2.ignoreWhite = true;
myXML2.onLoad = function(){
	

	var imagesNode2 = myXML2.firstChild;
	var totalImages2 = myXML2.firstChild.childNodes.length;
	
	for(t=0; t<totalImages2; t++){
		var imgNode2 = imagesNode2.childNodes[t].childNodes[2].firstChild.nodeValue;
		var textNode = imagesNode2.childNodes[t].childNodes[1].firstChild.nodeValue;
		trace("test: "+imgNode2[2]);
		
		
		var newClip2 = _root.attachMovie("templateClip_b", "templateClip_b"+t, _root.getNextHighestDepth());
		
		var columns2:Number = 6;
		var hSpacing2:Number = 25;
		var vSpacing2:Number = 25;
		
	
		newClip2._x = 716;
		newClip2._y = 130;
		newClip2._x += ((t % columns2)) * (newClip2._width + hSpacing2);
		newClip2._y += Math.floor(t / columns2) * (newClip2._height + vSpacing2);
		
		
		newClip2.imageHolder2.loadMovie(path+imgNode2);

		newClip2.onRelease = function()
				{
					//_root.bigger_mc.loadMovie(ballPath+imgNode2);
					trace(imgNode2);

				}


	}
	
}
myXML2.load("xml/gk_2.xml");