[MX] Preloader Lock Up

Hello,

I’m using a preloader on my website. The preloader works fine on Internet Explorer, however when I tested it in Mozilla and on a Mac (running Netscape) there is a lockup on the preloader. The screen will just sit there and the website doesn’t load. Both were running Flash Player 6 which is the version I’m aiming for. I found that if I refreshed the page the site would begin to work, but I doubt visitors to my site would do this and I don’t want it to be required to get my site to work. I’m going to post the code I’m using below. If anyone out there could help me with this it would be greatly appreciated!

Heres the action script - from the first frame of my launch movie


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");

As you can see I call the loadSWF function to load menu.swf into the holder1_mc movieclip. That function then sets an interval with the loadChecker function that acts as the preloader. This is where nothing happens on some browsers (yet it works fine in IE). Any suggestions?

Thanks

Foo :toad: