Hey there …again,
Was wondering if anyone could possibly please give me a tip :love: on how to re-work this method so that it waits for each clip to finish before playing the next…
MovieClip.prototype.initSequence = function(){
trace("initSequence for: "+this);
trace("clips to initialise: "+arguments);
for(var clip=0;clip<arguments.length;clip++){
currClip=eval(arguments[clip]);
trace("initialising: "+currClip);
currClip.gotoAndPlay(2);//start
currClip._visible=true;//to skip dead preview
updateAfterEvent();//refresh screen
currClip.onEnterFrame=function(){
trace(this+" onEnterFrame");
if(this._currentframe==this._totalframes){
delete this.onEnterFrame;//and go to next it sequence
}else{
this.nextFrame();//otherwise play nextframe
}
}
}
}
this.initSequence(intro_mc, music_mc, byDi_mc, logo_mc, content_mc, location_mc, menu_mc);