# Flash 8: How do I load consecutive multiple external swf files?

**URL:** <https://forum.kirupa.com/t/flash-8-how-do-i-load-consecutive-multiple-external-swf-files/185921>\
**Category:** Uncategorized\
**Created:** [April 17, 2006, 6:40pm UTC](https://forum.kirupa.com/t/flash-8-how-do-i-load-consecutive-multiple-external-swf-files/185921 "2006-04-17T18:40:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dragonlilly](https://avatars.discourse-cdn.com/v4/letter/d/b3f665/32.png) [@dragonlilly](https://forum.kirupa.com/u/dragonlilly)\
**Post date:** [April 17, 2006, 6:40pm UTC](https://forum.kirupa.com/t/flash-8-how-do-i-load-consecutive-multiple-external-swf-files/185921/1 "2006-04-17T18:40:35Z")

</div>

Hello, all of you brilliant people! I have a question and hope that someone may be able to help.

I have a container .fla movie and would like to load consecutive external .swf files. Right now I have a play button triggering the loading of the next movie, but what I would REALLY like is a smooth transition from .swf to .swf using a listener so that the next .swf will load once the previous one has finished. I have a counter which determines the next .swf in order.

So far, my code is this:

Counter:

stop();  
//SETUP OUR COUNTER  
var mcCounter:Number = 0;

//THIS BLOCK IS ONLY TO HANDLE THE LOADER AND THE FIRST MOVIE, movie0.swf  
var myMCL:MovieClipLoader = new MovieClipLoader();  
var loadListener:Object = new Object();  
myMCL.addListener(loadListener);  
myMCL.loadClip(“movie” + mcCounter + “.swf”, 6);  
loadListener.onLoadComplete = function():Void {  
\_level0.play();  
}

//-------------------------\<CLIP LOADERS\>------------------------------\  
function loadNextClip():Void {  
if(mcCounter \< 6) {  
mcCounter++;  
var nextMCL:MovieClipLoader = new MovieClipLoader();  
nextMCL.addListener(this);  
nextMCL.loadClip(“movie” + mcCounter + “.swf”,6);  
}

}  
//LOADS PREVIOUS CLIP , WON"T GO PAST ZERO  
function loadPrevClip():Void {  
if(mcCounter \> 0) {  
mcCounter–;  
var prevMCL:MovieClipLoader = new MovieClipLoader();  
prevMCL.addListener(this);  
prevMCL.loadClip(“movie” + mcCounter + “.swf”,6);  
}  
}  
//-------------------------\</CLIP LOADERS\>------------------------------\

Any suggestions? I appreciate ANY help you can offer. I have been unsuccessfully looking for hours online, and can’t find any examples, although it doesn’t seem as if it should be the hardest thing in the world.

---

<div class="post-metadata">

**Author:** ![lunatic](https://avatars.discourse-cdn.com/v4/letter/l/73ab20/32.png) [@lunatic](https://forum.kirupa.com/u/lunatic)\
**Post date:** [April 17, 2006, 7:14pm UTC](https://forum.kirupa.com/t/flash-8-how-do-i-load-consecutive-multiple-external-swf-files/185921/2 "2006-04-17T19:14:26Z")

</div>

[ot] please take advantage of our nifty code tags - it makes your code much easier for others to read. You can use the buttons when writing a post or simply type [noparse]

```auto
 your code here 

```

[/noparse].

Thanks! :hr: [/ot]

---

<div class="post-metadata">

**Author:** ![Digitalosophy](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/digitalosophy/32/1114_2.png) [@Digitalosophy](https://forum.kirupa.com/u/Digitalosophy)\
**Post date:** [April 17, 2006, 7:46pm UTC](https://forum.kirupa.com/t/flash-8-how-do-i-load-consecutive-multiple-external-swf-files/185921/3 "2006-04-17T19:46:13Z")

</div>

[http://www.senocular.com/flash/source.php?id=0.131](http://www.senocular.com/flash/source.php?id=0.131)
