Problem with button and xml

var portXML:XML = new XML();
portXML.ignoreWhite = true;
portXML.onLoad = function(success:Boolean):Void {
	if(success){
		//processing Xml
		trace("XML: "+success);
		proAmmount = portXML.firstChild.childNodes.length
		//trace(proAmmount);
		
		//define project attributes and make array
		
		proName = [];
		proDescription = [];
		proCategory = [];
		proDate = [];
		proFeatured = [];
		proImage1 = [];
		proImage2 = [];
		proImage3 = [];
		proImage4 = [];
		proImage5 = [];
		proThumb = [];
		proUrl = [];
		
		var startX:Number = 40;
		var gridX:Number = 18;
		var category:String
       
		for(var i=0; i<proAmmount; i++) {
      		var t = proBtn.duplicateMovieClip("proBtn"+i,i);
      		t._y = gridX * i;
      		t._y = startX +(gridX * i);
			
		
		_root["proBtn"+i].proName.text = portXML.firstChild.childNodes*.attributes.proName;
		_root.proCategory* = portXML.firstChild.childNodes*.attributes.category;
		_root.proDate* = portXML.firstChild.childNodes*.attributes.date;
		_root.proFeatured* = portXML.firstChild.childNodes*.attributes.featured;
				
		t.onPress = DisplayInfo(i);
	
		}
		proBtn._visible=0;
		
	}

}

ok got this and when i call inside the loop t.onPress = DisplayInfo(i); it dosent load on PRESS it loads it automaticaly and when i click on the different items it dosent change… hmm… the displayinfo function all it does is

function DisplayInfo(i){
	_root.maintext.text  = _root.proDate*;
}