# Using arrays to load multiple swf-s with AS3

**URL:** <https://forum.kirupa.com/t/using-arrays-to-load-multiple-swf-s-with-as3/298850>\
**Category:** flash\
**Created:** [October 26, 2009, 12:54pm UTC](https://forum.kirupa.com/t/using-arrays-to-load-multiple-swf-s-with-as3/298850 "2009-10-26T12:54:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mephisto28](https://avatars.discourse-cdn.com/v4/letter/m/e8c25b/32.png) [@mephisto28](https://forum.kirupa.com/u/mephisto28)\
**Post date:** [October 26, 2009, 12:54pm UTC](https://forum.kirupa.com/t/using-arrays-to-load-multiple-swf-s-with-as3/298850/1 "2009-10-26T12:54:51Z")

</div>

Hi there, I’m pretty new to AS3 and I have a problem.  
I’m trying to load multiple external swf files into my main movie and arrange them on the stage (talking about 20 or more mc-s)  
So far I figured out how to load one single mc like this:

```auto

// Make request and loader
var request:URLRequest = new URLRequest("pano1.swf");
var loader:Loader = new Loader();

// This is done after the swf is loaded.
function finished_loading (e:Event) {
var externalMovie = MovieClip(loader.content); // cast 'DisplayObject' to 'MovieClip'
this.addChild(externalMovie); // add your swf directly to the stage
//externalMovie.gotoAndPlay("start"); // Now you can use all MovieClip methods!
externalMovie.x = 130;
externalMovie.y = 18;
}

// Tell the loader to call 'finished_loading' after the swf is loaded.
import flash.events.Event;
loader.contentLoaderInfo.addEventListener(flash.events.Event.COMPLETE, finished_loading);

// Start loading.
loader.load(request);

```

Can somebody help me modify this (or point me to a tut. or something) to load an array of swf files and add them all to the stage?

Thanx in advance!
