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.