# Trying to understand 'MovieClipLoader.onLoadComplete()' - Please Help!

**URL:** <https://forum.kirupa.com/t/trying-to-understand-moviecliploader-onloadcomplete-please-help/150744>\
**Category:** flash\
**Created:** [June 10, 2005, 12:40am UTC](https://forum.kirupa.com/t/trying-to-understand-moviecliploader-onloadcomplete-please-help/150744 "2005-06-10T00:40:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nawebb79](https://avatars.discourse-cdn.com/v4/letter/n/91b2a8/32.png) [@nawebb79](https://forum.kirupa.com/u/nawebb79)\
**Post date:** [June 10, 2005, 12:40am UTC](https://forum.kirupa.com/t/trying-to-understand-moviecliploader-onloadcomplete-please-help/150744/1 "2005-06-10T00:40:28Z")

</div>

Hi All!

I am trying to get an mp3 to start streaming after a jpg has finished dynamically loading. I know the best way to do this is to use MovieClipLoader.onLoadComplete(), however I’m having a few implementation problems as you can see below. Any help would be really appreciated.

```auto
function nextImage() {
	 if (p< (total-1)) {
		 p++;
		 if (loaded == filesize) {
			 empty_mc._alpha = 0;
			 mclListener.onLoadStart =function(empty_mc) {
					empty_mc.loadMovie(image[p], 1);
			 };
			 mclListener.onLoadComplete =function(empty_mc) {
					audio_mc.loadSound(audio[p], 1);
			 };
		 }
	 }
}

```

Thank you.
