# Load many small externall SWF into ONE container

**URL:** <https://forum.kirupa.com/t/load-many-small-externall-swf-into-one-container/205802>\
**Category:** flash\
**Created:** [November 2, 2006, 2:45am UTC](https://forum.kirupa.com/t/load-many-small-externall-swf-into-one-container/205802 "2006-11-02T02:45:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![masster](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/masster/32/627_2.png) [@masster](https://forum.kirupa.com/u/masster)\
**Post date:** [November 2, 2006, 2:45am UTC](https://forum.kirupa.com/t/load-many-small-externall-swf-into-one-container/205802/1 "2006-11-02T02:45:07Z")

</div>

Hi,  
I have this problem that I can’t solve and need your help.

So, I have many small SWF files (1-2kBytes) in a folder (“samples/”).  
Right now I have a loop that passes data writen fron an array to a **create\_holder** function which in turn loads external SWFs like so:

```auto
function createHolder(holderName:String, jMovie:String, parentClip:MovieClip, xPos:Number, yPos:Number):Void {
var newClip:MovieClip = this.createEmptyMovieClip(holderName, parentClip.getNextHighestDepth());
var jClip:MovieClip = newClip.createEmptyMovieClip("jClip", newClip.getNextHighestDepth());
var dropShadow:DropShadowFilter = new DropShadowFilter(4, 90, 0x000000, 0.5, 5, 5);
jClip.loadMovie(jMovie);
jclip._x = 0;
jClip._y = 0;
newClip._x = xPos;
newClip._y = yPos;
}

var PATH:String = "samples/";
var xStart:Number = 100;
var yStart:Number = 20;
	for (var i:Number = 0; i<tArray.length; i++) {
	createHolder(tArray*, PATH+tArray*+".swf",this, xStart, yStart);
	xStart += 32;
	}

```

What i can’t figure out is this:

1. how can I build a SINGLE preloader (0 to 100%) for all external SWFs ? I mean, NOT a preloader for each small SWF, but only one for entire bunch.

2. is it possible to load them into a SINGLE movie, so after loading I can move them all at once?

Thanks
