# Multiple swfs in a loader

**URL:** <https://forum.kirupa.com/t/multiple-swfs-in-a-loader/264329>\
**Category:** Uncategorized\
**Created:** [June 25, 2008, 2:21am UTC](https://forum.kirupa.com/t/multiple-swfs-in-a-loader/264329 "2008-06-25T02:21:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![chelle22](https://avatars.discourse-cdn.com/v4/letter/c/48db29/32.png) [@chelle22](https://forum.kirupa.com/u/chelle22)\
**Post date:** [June 25, 2008, 2:21am UTC](https://forum.kirupa.com/t/multiple-swfs-in-a-loader/264329/1 "2008-06-25T02:21:23Z")

</div>

Hey guys

I have a frustrating problem, Im trying to load different swfs using the same loader, this works but the problem is that I can’t seem to change the location and size dimensions with other affecting the other swf… (one needs to be scaled smaller)

I’ve tried using the different varible names for each loader/swf… but then they stack on top of each other after another button is pressed… is there any possible way of doing this?

Thanks

```auto

var loader1:Loader = new Loader();
loader1.contentLoaderInfo.addEventListener(Event.INIT, onComplete); 
function onComplete(e:Event):void {
loader1.scaleY =.9; //resizing to fit in certain area of gallery
loader1.scaleX=.9;
loader1.x= 410.9; //positioning
loader1.y= 235.3;
addChild(loader1);
}
var request2:URLRequest = new URLRequest("Match2.swf");
mat_btn.addEventListener(MouseEvent.MOUSE_DOWN, mat);
function mat(evt:MouseEvent):void { 
loader1.load(request2);
}
loader1.contentLoaderInfo.addEventListener(Event.INIT, Dvd2);
function Dvd2(e:Event):void {
loader1.scaleY =.9; //resizing to fit in certain area of gallery
loader1.scaleX=.9;
loader1.x= 410.9; //positioning
loader1.y= 235.3;
addChild(loader1);
}
var request3:URLRequest = new URLRequest("dvdmenuproject.swf");
dvd_btn.addEventListener(MouseEvent.MOUSE_DOWN, dvd);
function dvd(evt:MouseEvent):void { 
loader1.load(request3);
}

```
