Hello,
I’m using the following actionscript to load a movie with a preloader. It works on my version of IE 6 but in other browsers (mozilla on pc and IE on mac) when the page loads it just stalls and doesn’t preload. I’m forced to refresh the page to get something to happen.
stop();
function loadSWF(theURL, theTarget) {
loadMovie(theURL, theTarget);
loaderInterval = setInterval(loadChecker, 50);
}
function loadChecker() {
loading = _root.holder1_mc.getBytesLoaded();
total = _root.holder1_mc.getBytesTotal();
percent -= (percent-((loading/total)*100))*.25;
per = int(percent);
percentage = per+"%";
_root.loading_mc.preloader_mc.loadBar._width = per * 2;
if (percent > 99) {
faderInterval = setInterval(fadeBack, 50);
clearInterval(loaderInterval);
}
};
function fadeBack() {
_root.loading_mc._alpha -= 6
if (_root.loading_mc._alpha < 1) {
_root.holder1_mc.gotoAndStop("home");
unloadMovie("_root.loading_mc");
clearInterval(faderInterval);
}
};
loadSWF("menu.swf", "_root.holder1_mc");
Is there something I should fix in there?
Foo :rd: