Hi, I'm completely lost.. I can't seem to grasp how and where an image resize call should be handled.

Code:
data_xml = new XML();
data_xml.ignoreWhite = true;
data_xml.onLoad = loadData;
data_xml.load("xml/category.xml);

bot.listt.btn._visible = false;
// PARSE XML DATA
function loadData(success) {
	if (success) {
		
		//STORE CATEGORY FUNCTIONS
		aPath = new Array();

		//
		pic = new Array();
		big = new Array();

		store = this.firstChild.childNodes;
		cat_total = store.length;		
		for (var i = 0; i<cat_total; i++) {

			aPath.push(store[i].attributes.path);
			pic.push(store[i].attributes.pic); // GET THUMB FROM XML
			
			bot.listt.btn.duplicateMovieClip("btn"+i, i);
			bot.listt["btn"+i]._y = bot.listt.btn._y+i*int(bot.listt.btn._height) +i;
			bot.listt["btn"+i].smallHolder.loadMovie(pic[i]); // DISPLAY ALBUM THUMB
			bot.listt["btn"+i].hit.onPress = function() 
			{
				listClick(this._parent.getDepth()); 
			};
		}
	}
Any help would be graciously appreciated, thanks!