Continuous loop

I have posted this question recently and I am desperate for a solution. I have a pre-loader which is causing a continuous loop. I am very much a novice and the script was from a third party.

On frame 1, I have:

totalK = getBytesTotal()/1000;
loadedK = getBytesLoaded()/1000;
remainingK = totalK-loadedK;
percentageK = (loadedK/totalK)*100;
setProperty(“bar”, _xscale, percentageK);
if (loadedK>=totalK && totalK != 0) {
gotoAndPlay(3);
}

on Frame 2:

gotoAndPlay(1);

I believe the script in frame 2 is causing the loop. If I placed an else script in frame 1 and removed the script from frame 2 would this help?

For example if:

(loadedK>=totalK && totalK != 0) {
gotoAndPlay(3);
}

else

totalK = getBytesTotal()/1000;
loadedK = getBytesLoaded()/1000;
remainingK = totalK-loadedK;
percentageK = (loadedK/totalK)*100;
setProperty(“bar”, _xscale, percentageK);
if (loadedK>=totalK && totalK != 0) {
gotoAndPlay(3);
}

Cheers<:}

I,

U are doing it the way it used to be done in Flash 4.
I’m posting a fla for u to have a look.(AH! and does the preloading [this is a Flash 5 version but it’ll work in MX. the only difference is that in this example the enterframe it’s called on the MC itself .In MX u would call it from the timeline)

Cheers

SHO