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<:}