[Flash8] External SWFs not Loading Properly

Hello All,

After two days of trying trying to research the answers, I have finally realized I need someone else’s help. I am having trouble loading external SWFs into my main SWF. I will just use three files as examples for this discussion: 1) main.swf, 2) intro.swf, 3) logo.swf.

I am using the same preloader (same code) in both my intro.swf and logo.swf. There is an if statement telling the externally loaded swf to play the next frame on main.swf after the externally loaded swf is completely loaded.

THE PROBLEM:

My intro.swf loads fine (progress bar shows up in main.swf), but when I try to load logo.swf after loading intro.swf, it will not load. If I reverse the order, load logo.swf first, then intro.swf, the logo.swf loads, but the intro.swf does not. I have included examples of my code below, the flas. I had to delete information from the flas because the files were too large, but the parts I need help with are there. Any help would be much appreciated. This is my first flash project and I giving this client his money back is no longer an option.

It also works if I use the same instance name when creating my new movie clip. For instance, if I use mIntro (see below) to hold both my intro.swf and logo.swf then they both load properly, but then I cannot call both movies when I need them because one will replace the other.
EXAMPLE CODE:
**
main.swf------------------------------------------**

Frame1:

stop();

this.createEmptyMovieClip(“mIntro”, this.getNextHighestDepth());
var mlSWFLoader:MovieClipLoader = new MovieClipLoader();

mlSWFLoader.loadClip(“intro.swf”, mIntro);

Frame2:

stop();

this.createEmptyMovieClip(“mLogo”, this.getNextHighestDepth());
var mlSWFLoader:MovieClipLoader = new MovieClipLoader();

mlSWFLoader.loadClip(“logo.swf”, mLogo);

intro.swf-------------------------------------

Frame1:

bytes_loaded = Math.round(this.getBytesLoaded());
bytes_total = Math.round(this.getBytesTotal());
getPercent = bytes_loaded/bytes_total;
this.loadBar._width = getPercent100;
this.loadText = Math.round(getPercent
100)+"%";

if (bytes_loaded == bytes_total) {
_root.gotoAndPlay(2);
}

Frame2:

gotoAndPlay(1);

Frame3:

stop();

logo.swf-----------------------------------------

Frame1:

bytes_loaded = Math.round(_root.getBytesLoaded());
bytes_total = Math.round(_root.getBytesTotal());
getPercent = bytes_loaded/bytes_total;
this.loadBar._width = getPercent100;
this.loadText = Math.round(getPercent
100)+"%";

if (bytes_loaded == bytes_total) {
_root.gotoAndPlay(3);
}

Frame2:

gotoAndPlay(1);

Frame3:

stop();