PDA

View Full Version : playing swf automaticly when one is done



arcticsoft
February 15th, 2008, 05:14 PM
I need to play swfs in order. After one is done playing, the next comes up and starts. I found this in the mx section:



this.createEmptyMovieClip("containerClip",this.getNextHighestDepth());
var movLoad:MovieClipLoader = new MovieClipLoader();
var myListener:Object = new Object();
myListener.onLoadInit = function(thisClip:MovieClip) {
thisClip.onEnterFrame = function() {
if (this._currentframe == this._totalframes) {
movLoad.loadClip("01.swf",this);
}
};
};
movLoad.addListener(myListener);
movLoad.loadClip("00.swf",this.containerClip);

How do you do this with as3? There is now a loader class and a movie clip class, but no moviecliploader class. Any help would be great. Thanks.

keplerf
February 17th, 2008, 11:21 PM
you just add
movLoad.addEventListener('complete', " funcion for load next movie );

cheers