# Sequential loading?

**URL:** <https://forum.kirupa.com/t/sequential-loading/114541>\
**Category:** Uncategorized\
**Created:** [June 29, 2004, 3:38pm UTC](https://forum.kirupa.com/t/sequential-loading/114541 "2004-06-29T15:38:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mindfriction](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/mindfriction/32/172_2.png) [@mindfriction](https://forum.kirupa.com/u/mindfriction)\
**Post date:** [June 29, 2004, 3:38pm UTC](https://forum.kirupa.com/t/sequential-loading/114541/1 "2004-06-29T15:38:07Z")

</div>

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…

```auto

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);

```
