i have a preloader which works perfectly fine in Flash but when i uploaded it, the "percentage number" changed to "NaN%."

I don't have an idea how to solve it.

Here is the code:

imgbtn1.onRelease = function() {
infoField._visible = true;
startLoading("PHOTOS/Worskhop_02.jpg");
};
imgbtn2.onRelease = function() {
infoField._visible = true;
startLoading("PHOTOS/Worskhop_03.jpg");
};
imgbtn3.onRelease = function() {
infoField._visible = true;
startLoading("PHOTOS/Worskhop_04.jpg");
};

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



Please help. Thanks.

the site is in here:
www.percx.com/Home.html
located in "News and Updates" >> "Photos"