PDA

View Full Version : Preloading .swfs AND the .swfs they call


knees
01-15-2006, 11:02 PM
Hello. I'm using a preloader on my website, the first .swf of which loads another .swf into a movieclip. The preloader only checks to see if the 1st .swf is loaded, and not the called .swf, which interferes with the timing, depending on how fast or slow the user's connection is.

So, how do I make a preloader which accounts for the loading of .swf files called by the _root swf?

Here is my preloading technique:

frame 1:

if (_root._framesloaded >= _root._totalframes) {
gotoAndPlay("start");
}

frame 2:

gotoAndPlay(1);

frame 3:

this frame is labeled "start

frame 4: [loads the other .swf]

this.createEmptyMovieClip("main", 999);
loadMovie("main.swf", main);