Pre-loading one external clip while another plays

Ok, try this. It works for my swf’s, you just need to download the preloader class com.qlod.LoaderClass. I have the code if you need it. Just put the names of your clips in swf_array. Also, two clips are always running at the same time, so if that’s not ok (i.e. your sounds might be screwy) you may need to add something to the if statement to make the unneeded one stop. This isn’t the best code but it seems to work for me seemlessly.

swf_array = [“part1.swf”,“part2.swf”,“part1.swf”,“part2.swf”,“part1.swf”,“part2.swf”,“part1.swf”,“part2.swf”,“part1.swf”,“part2.swf”,“part1.swf”,“part2.swf”];
counter = 0;
var tc = this.createEmptyMovieClip(“TopClip”,3);
var bc = this.createEmptyMovieClip(“BottomClip”,2);
myLoader = new com.qlod.LoaderClass();
var tcflag = false;
var bcflag = false;
this.onEnterFrame = function()
{
if(counter == 0)
{
myLoader.load(tc,swf_array[counter]);
counter++;
myLoader.load(bc,swf_array[counter]);
counter++;
}
else if(tcflag)
{
tcflag=false;
tc.swapDepths(2);
tc.unloadMovie();
bc.gotoAndPlay(1);
myLoader.load(tc,swf_array[counter]);
counter++

}
else if(bcflag )
{
bcflag=false;
bc.swapDepths(2);
bc.unloadMovie();
tc.gotoAndPlay(1);
myLoader.load(bc,swf_array[counter]);
counter++
}
else if(tc._visible && tc._totalFrames == tc._currentFrame)
{
tcflag = true;
}
else if(bc._visible && bc._totalFrames == bc._currentFrame)
{
bcflag = true;
}
}