If you attach all the movies to a single container movie, then you can unload the container movie only, and all the stuff attached to it will unload, regardless of whether it is finished loading. This also simplifies your unload code.


code:

var iPageStart = 0;
cont_mc = _root.createEmptyMovieClip('cont_mc', 1);

for(var i = _root.iPageStart; i < n; i++) {
mc = cont_mc.createEmptyMovieClip("movie" + i, i);
mc._x = 0;
mc._y = 102;
mc.loadMovie("oronite-scrollText-" + i + ".swf");
}


//fired from an exit button
function unloadAll(){
iPageStart = 0;
_root.cont_mc.unloadMovie();
return true;
}