# Loading external swfs in orginal format

**URL:** <https://forum.kirupa.com/t/loading-external-swfs-in-orginal-format/264314>\
**Category:** Uncategorized\
**Created:** [June 24, 2008, 10:34pm UTC](https://forum.kirupa.com/t/loading-external-swfs-in-orginal-format/264314 "2008-06-24T22:34:00Z")\
**Posts on this page:** 3\
**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 24, 2008, 10:34pm UTC](https://forum.kirupa.com/t/loading-external-swfs-in-orginal-format/264314/1 "2008-06-24T22:34:00Z")

</div>

Hi Guys,

I trying to create a website in flash in which the user clicks on a thumbnail and it loads an sample animation swf in a specific area of the site.

I got to load but the problem is the swf is not displaying in its correct window size…I’m not sure how to explain it. but its showing beyond the original stage format…

any help or suggestions is greatly appreciated.  
Thanks

```auto

 
var loader1:Loader = new Loader();
addChild(loader1); 
 
 
var request:URLRequest = new URLRequest("cutout.swf");
 
cut_btn.addEventListener(MouseEvent.MOUSE_DOWN, cut);
function cut(evt:MouseEvent):void { 
 loader1.scaleY =.6; //resizing to fit in certain area of gallery
loader1.scaleX=.6;
 
loader1.x= 400.9; //positioning
loader1.y= 106.3;
loader1.load(request);
 
}

```

---

<div class="post-metadata">

**Author:** ![nikefido](https://avatars.discourse-cdn.com/v4/letter/n/ed8c4c/32.png) [@nikefido](https://forum.kirupa.com/u/nikefido)\
**Post date:** [June 24, 2008, 10:47pm UTC](https://forum.kirupa.com/t/loading-external-swfs-in-orginal-format/264314/2 "2008-06-24T22:47:50Z")

</div>

ActionScript Code:  
[LEFT]loader1.[COLOR=#000080]contentLoaderInfo[/COLOR].[COLOR=#000080]addEventListener[/COLOR][COLOR=#000000]([/COLOR]Event.[COLOR=#000080]COMPLETE[/COLOR], onComplete[COLOR=#000000])[/COLOR]; [COLOR=#808080]_//might want to try INIT instead of COMPLETE_[/COLOR]

[COLOR=#000000] **function** [/COLOR] onCompleteCOLOR=#000000[/COLOR]:[COLOR=#0000FF]void[/COLOR] [COLOR=#000000]{[/COLOR]  
loader1.[COLOR=#000080]scaleY[/COLOR] =.[COLOR=#000080]6[/COLOR]; [COLOR=#808080]_//resizing to fit in certain area of gallery_[/COLOR]  
loader1.[COLOR=#000080]scaleX[/COLOR]=.[COLOR=#000080]6[/COLOR];  
loader1.[COLOR=#000080]x[/COLOR]= [COLOR=#000080]400[/COLOR].[COLOR=#000080]9[/COLOR]; [COLOR=#808080]_//positioning_[/COLOR]  
loader1.[COLOR=#000080]y[/COLOR]= [COLOR=#000080]106[/COLOR].[COLOR=#000080]3[/COLOR];  
addChildCOLOR=#000000[/COLOR];  
[COLOR=#000000]}[/COLOR]  
[/LEFT]

You should try doing your code in a different order. You need to give flash sometime to load before you start making changes to and adding the Loader 😃

---

<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 24, 2008, 11:03pm UTC](https://forum.kirupa.com/t/loading-external-swfs-in-orginal-format/264314/3 "2008-06-24T23:03:48Z")

</div>

Thanks very much for your help!
