Kirupa XML thumbs stretched

Hi, I’ve been playing around with the XML gallery, and finally I got the thumbs to preload, however, now my thumbnails are being stretched, an error in the code, im not great with AS, so it’s possible its an easy fix, I’d really appreciate some help on this, I’ve pasted the code I have so far below with files.

Thank you, Jim

 
function loadXML(loaded) {
 if (loaded) {
  xmlNode = this.firstChild;
  image = [];
  description = [];
  thumbnails = []; 
  total = xmlNode.childNodes.length;
  for (i=0; i<total; i++) {
   image* = xmlNode.childNodes*.childNodes[0].firstChild.nodeValue;
   description* = xmlNode.childNodes*.childNodes[1].firstChild.nodeValue;
   thumbnails* = xmlNode.childNodes*.childNodes[2].firstChild.nodeValue; 
   thumbnails_fn(i);
 
   }
  id = setInterval(preloadPic, 100);
  firstImage();
 } else {
  content = "file not loaded!";
 }
}
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("images.xml");
//////////////////////////
listen = new Object();
listen.onKeyDown = function() {
 if (Key.getCode() == Key.LEFT) {
  prevImage();
 } else if (Key.getCode() == Key.RIGHT) {
  nextImage();
 }
};
Key.addListener(listen);
previous_btn.onRelease = function() {
 prevImage();
};
next_btn.onRelease = function() {
 nextImage();
};
/////////////////////////////////////
var p = 0;
var current;
var k = 0;
function preloadPic() {
 clearInterval(id);
 var con = picture.duplicateMovieClip("con"+k, 9984+k);
 con.loadMovie(image[p]);
 preloader._visible = 1;
 preloader.swapDepths(con.getDepth()+3);
 con._alpha = 0;
 var temp = _root.createEmptyMovieClip("temp"+k, 99+k);
 k++;
 temp.onEnterFrame = function() {
  var total = con.getBytesTotal();
  var loaded = con.getBytesLoaded();
  percent = Math.round(loaded/total*100);
  preloader.preload_bar._xscale = percent;
  preloader._visible = true;
  if (con._width) {
   preloader._visible = 0;
   con.onEnterFrame = fadeIn;
   delete this.onEnterFrame;
  }
 };
}
MovieClip.prototype.fadeIn = function() {
 if (this._alpha<100) {
  current._alpha -= 10;
  this._alpha += 10;
 } else {
  current._visible = 0;
  current = this;
  delete this.onEnterFrame;
 }
};
function nextImage() {
 p<total-1 ? (p++, preloadPic()) : null;
 desc_txt.text = description[p];
 picture_num();
}
function prevImage() {
 p>0 ? (p--, preloadPic()) : null;
 desc_txt.text = description[p];
 picture_num();
}
function firstImage() {
 con0._visible = 1;
 con0._alpha = 0;
 con0.onEnterFrame = fadeIn;
 desc_txt.text = description[p];
 picture_num();
}
function picture_num() {
 current_pos = p+1;
 pos_txt.text = current_pos+" / "+total;
}
previous_btn.onRelease = function() {
 prevImage();
};
next_btn.onRelease = function() {
 nextImage();
};
///////////////////////////////////////////////////
function thumbNailScroller() { 
// thumbnail code! 
this.createEmptyMovieClip("tscroller", 1000); 
scroll_speed = 10; 
tscroller.onEnterFrame = function() { 
if ((_root._ymouse>=thumbnail_mc._y) && 
(_root._ymouse<=thumbnail_mc._y+thumbnail_mc._height)) { 
if ((_root._xmouse>=(hit_right._x-40)) && 
(thumbnail_mc.hitTest(hit_right))) { 
thumbnail_mc._x -= scroll_speed; 
} else if ((_root._xmouse<=40) && (thumbnail_mc.hitTest(hit_left))) { 
thumbnail_mc._x += scroll_speed; 
} 
} else { 
delete tscroller.onEnterFrame; 
} 
}; 
} 
 
function thumbnails_fn(k) { 
thumbnail_mc.createEmptyMovieClip("t"+k, 
thumbnail_mc.getNextHighestDepth()); 
tlistener = new Object(); 
tlistener.onLoadInit = function(target_mc) { 
target_mc._x = hit_left._x+(eval("thumbnail_mc.t"+k)._width+5)*k; 
target_mc.pictureValue = k; 
target_mc.onRelease = function() { 
p = this.pictureValue-1; 
nextImage(); 
}; 
target_mc.onRollOver = function() { 
this._alpha = 50; 
thumbNailScroller(); 
}; 
target_mc.onRollOut = function() { 
this._alpha = 100; 
}; 
}; 
image_mcl = new MovieClipLoader(); 
image_mcl.addListener(tlistener); 
image_mcl.loadClip(thumbnails[k], "thumbnail_mc.t"+k); 
}