Problem with preloading external images(.jpegs)

Hi guys,

One of my first posts, so point out any shortcomings in my demeanor.

I have created a flash website with a number of portfolio sections (eg.web, 3d, print etc.) The main site/timeline is a .swf, and each portfolio section is an external .swf that id loaded into an empty movie clip with the aid of a preloader. This all works fine and there are no issues.

However, within each of those portfolio .swfs is a number of links to relevant imagery of our design work. I have a preloader that runs when you load these .jpegs and it works apart form one obvious issue.

When you click on the button for the desired piece of work, the preloader (percentage and bar) pops up and, instead of starting at 0%, it reads 2147483628% for a second then drops to 0% and begins the loading process.

Now it all loads fine and my images appear after the preloader has finished, but that annoying number is really unnerving for me. It has to be fixed before I can let this site go live.

I have no idea why it is doing this as it is the same preloader that I have used for loading all the .swfs and they load fine.

I reckon its got something to do with loading .jpegs as opposed to .swfs.
I have also created and viewed this on a Mac so I don’t know if this has anything to do with it.

Here is the link to the site:

If you want to check out the issue, go through to anyone of the portfolio sections (video and dvd excluded as they load .swfs) and click on a button to bring up an image.

Here is the code I have on the preloader:

[COLOR=Red]onClipEvent (enterFrame) {
loading = _parent.shell.getBytesLoaded();
total = _parent.shell.getBytesTotal();
percent = (loading/total)100;
per = int(percent);
percentage = per+"%";
loadbar._width = per
1.65;
if (percent>99.5) {
_parent.preloader2._alpha = 0;
loading = 0;
}
}[/COLOR]

And the code on the button/s:

[COLOR=Red]on (release) {
loadMovie(“presentations_1.jpg”, shell);
}
on (release) {
loadVariables(“presentations_1.txt”, this);
}
on (release) {
gotoAndStop(104);
}
on (release) {
preloader2._alpha = 100;[/COLOR]

Where “shell” is the empty movieclip for loading external .jpegs and .swfs into, and “presentations_1.txt” is some dynamic descriptor text.

Anyway I appreciate any feedback and help.

Cheers,

Enforcer73