I’m sure this is a very simple problem, but I’m not terribly well-versed in preloaders.
The preloader I have on my site right now works perfectly on the main page, but not on my portfolio page. I broke down my site into 2 parts because the portfolio is large.
Basically, on the first site, it loads 100% before moving on. On the portfolio, it loads about 45kb and then bounces you right into the following frames.
The preloader is a one-frame movie clip in frame 1 of my first scene. I looked at the actions on the 3 layers inside it - text, bar, background. On the preloader’s “background”:
onClipEvent (enterFrame) {
if (_parent.doneLoading == 760) {
total = _parent._parent.getBytesTotal();
isloaded = _parent._parent.getBytesLoaded();
p = 100*(isLoaded/total);
_parent.bytes = int(isloaded/1000) add " KB of " add int(total/1000) add " KB";
_parent.percent = int§ add “% LOADED”;
_parent.bar._xscale = p;
if (Number§>Number(95)) {
_parent._parent.gotoAndPlay(Number(2));
_parent.gotoAndStop(“off”)
_parent.doneLoading = 1;
} else {
_parent._parent.gotoAndPlay(Number(1));
}
}
}
On the preloader’s “text”:
doneLoading = 0
stop()
To see it in perfect action, check out:
http://www.daramoss.com
To see it #*$& up every time it preloads, check out:
http://www.daramoss.com/portfolio.html
THANKS SO MUCH!