Preloader images with xml problem

I made my gallery using the squirell finder and a tutorial on the internet about preloading images and this is what i got.


function DisplayInfo(){
    infoField._visible = true;
    startLoading(this.images_h);

    trace(this.images_h); // images/studio.jpg
}

// Preloader image (viewer)
function startLoading(whichImage) {
   loadMovie(whichImage, "viewer");
   _root.onEnterFrame = function() {
      infoLoaded = viewer.getBytesLoaded();
      infoTotal = viewer.getBytesTotal();
      percentage = Math.floor(infoLoaded/infoTotal*100);
      infoField.text = percentage+"%";
      if (percentage>=100) {
         delete this.onEnterFrame;
         infoField._visible = false;
      } 
      trace(percentage);
   };
  
}

“viewer” is my image holder. My images load 100% or 0% if i put a bigger picture in my file it only keeps repeating 000000000000000 in my output box. What am i doing wrong?

Preloader tutorial: Lukamaras.com