# Problem with external preloader

**URL:** <https://forum.kirupa.com/t/problem-with-external-preloader/313696>\
**Category:** flash\
**Created:** [September 7, 2010, 3:14pm UTC](https://forum.kirupa.com/t/problem-with-external-preloader/313696 "2010-09-07T15:14:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mozaix](https://avatars.discourse-cdn.com/v4/letter/m/ecc23a/32.png) [@mozaix](https://forum.kirupa.com/u/mozaix)\
**Post date:** [September 7, 2010, 3:14pm UTC](https://forum.kirupa.com/t/problem-with-external-preloader/313696/1 "2010-09-07T15:14:34Z")

</div>

I have this great tutorial explaining how to put one ‘master’ preloader for all the external swfs. I tried it, it works great… almost.

On my website I have 3 pages: webdesign, animation and illustration.  
I used the exact same code for all the 3 pages, and it works fine with the web design and illustration, but not on the animation page.

What happens is that when the preloader is on about 30-40%, the swf starts playing (ie it’s loaded) while the preloader is still running.

How is it possible that it works on 2 pages but not on the 3rd ??

The code I’m using is:

//--------Movie Clip Loader----------\  
var mcLoader:MovieClipLoader = new MovieClipLoader();  
var myListener:Object = new Object();  
mcLoader.addListener(myListener);

myListener.onLoadProgress = function(target\_mc,bytesLoaded,bytesTotal) {  
extLoader\_mc.\_visible = true;  
var pctLoaded = Math.round(bytesLoaded/bytesTotal\*100);  
extLoader\_mc.extLoaderBar\_mc.\_xscale = pctLoaded;  
if (bytesLoaded \>= bytesTotal) {  
extLoader\_mc.\_visible = false;  
}  
}  
mcLoader.loadClip(“swfs/myswf.swf”,emptymc);

Any help would be highly appreciated…  
Thank you.
