# Preloader Stall

**URL:** https://forum.kirupa.com/t/preloader-stall/52141
**Category:** flash
**Created:** [May 20, 2004, 2:43pm UTC](https://forum.kirupa.com/t/preloader-stall/52141 "2004-05-20T14:43:30Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![foochuck](https://avatars.discourse-cdn.com/v4/letter/f/dfb087/32.png) [@foochuck](https://forum.kirupa.com/u/foochuck)
#### Post date: [May 20, 2004, 2:43pm UTC](https://forum.kirupa.com/t/preloader-stall/52141/1 "2004-05-20T14:43:30Z")

</div>

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.

```auto

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:
