PDA

View Full Version : Preloading SWFs While others play in sequence


phalafal
11-26-2002, 08:29 PM
Okay-
I have done the tuts on sequential preloading. I have no problems on how to build a preloader. My issue is:

I have a movie that has a mc in it that loads a sequence of SWFs. I need to preload each of these SWFs. Even harder - what I need is for one swf to be preloading while the previous one is playing.
For example:

1) Section1.swf (playing), Section2.swf (preloading)
2) Section2.swf (playing), Section3.swf (preloading)
3) Section3.swf (playing), Section4.swf (preloading)
4) Section4.swf (playing), Section5.swf (preloading)

__________________________________________________ __

What I have so is the code to play each SWF in sequence:

On Frame 1:

loadMovieNum ("section1.swf", 1);


On the MC:

onClipEvent (enterFrame) {
if (counter == null) {
loadMovieNum ("section1.swf", 1);
counter = 2;
} else if ((_level1._totalFrames != undefined) &&(_level1._currentFrame == _level1._totalFrames)) {
filename = "section"+counter+".swf";
loadMovieNum (filename, 1);
counter++;
}
}


Does anybody have any suggestions - or code that would help?