FORUMS: list search recent posts

Problem with external preloader

COW Forums : Adobe Flash

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>

Noemi Szantai
Problem with external preloader
on Sep 7, 2010 at 3:40:49 pm

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

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;

Any help would be highly appreciated...
Thank you.

Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2018 All Rights Reserved