Hi,
Actually, it's not terribly difficult to do this yourself. First, create an
array to hold the names of your clips. Then, create a handler to iterate through
them and load them sequentially. The code (Flash 6/7) will look something like this:
// ----------START CODE ------------
var clipArray:Array=new Array();
clipArray[0]='movie1.swf';
clipArray[1]='movie2.swf';
clipArray[2]='movie3.swf';
clipArray[3]='movie4.swf';
//...and so on.
//And the handler for the loads
var currentLoadItem=1;
var currentLoad:MovieClip=undefined;
//Function to create new clip and start loading
function loadItem(itemNum) {
currentLoad=this.createEmptyMovieClip('movie_'+(itemNum+1), (itemNum+1));
currentLoad.loadMovie(clipArray[itemNum]);
}//loadItem
this.onEnterFrame=function() {
if (currentLoad<>null) {
//Check current loading progress
var total=currentLoad.getBytesTotal();
var loaded=currentLoad.getBytesLoaded();
if ((loaded==total) && (loaded>0)){
//If current clip is loaded and there's
//another in the array, start loading it
if (clipArray[currentLoadItem]!=undefined) {
loadItem(currentLoadItem);
currentLoadItem++;
} else {
//This was the last item. Stop checking.
this.onEnterFrame=undefined;
}// else
}// if
}// if
}//onEnterFrame
//Start loading first item
loadItem(0);
// ----------END CODE ------------
This is not terribly dynamic. It starts loading to specific depths so if there
are existing clips at those depths they will be replaced. Also, the clips all
load on top of each other so you may wish to add some positioning code in there.
Regards,
Patrick
[quoted text, click to view] Shutchinson wrote:
> I am trying to get 10 swfs to load and play one after the other without the use
> of buttons. I have created an empty mc and of course the first swf loads fine
> without any problems.
>
> Does anyone know of a place on the web (I have searched) that will give me
> more information as to how to write the ActionScript to get the rest of the
> swfs to load one after the other. i know I need to write the trace script, but
> other than that, I am completely clueless.