PDA

View Full Version : Inconsistent Loading Problems



Wedge_Man
February 6th, 2008, 03:31 PM
Hey all,

So i'm having some very weird problems working with Loaders that are loading in external swfs.

Basically my main class loads in an external swf. While it's loading a progress bar increments to show the loading. When fully loaded it will use movieclips from the external swf and put them on the stage.

There are two problems.

The first is that the progress bar starts off blank or at (0%), and then suddenly jumps to 60% and then slowly increments till 100% (External swf is approx 4 megs).

The second problem is that only about 25% of the time will it actually do what it's supposed to when finished loading.

I've tried capturing on the Event.COMPLETE and Event.INIT events to then load a movieclip from the external swf. INIT seems to work the best but still many times it will just hang at 100% without doing anything even though the event has been fired.

Even more strange, if I leave it alone for about 5 to 10 min, it then suddenly works!

Am I missing something to do with when external content is truly loaded and ready to use?

Thanks alot!

Wedge_Man
February 6th, 2008, 07:09 PM
UPDATE:

Ok I've gone through the code again and I'm making sure I get an INIT event on each swf I'm loading in.

Now the main problem seems to be that my loaders will freeze at some points in time about 25% of the time.

Basically it gets stuck at 99% or 85% or 64% and won't increment ever.

Anyone had issues with this?