# Resizing external swf

**URL:** <https://forum.kirupa.com/t/resizing-external-swf/351995>\
**Category:** flash\
**Created:** [November 7, 2014, 7:33am UTC](https://forum.kirupa.com/t/resizing-external-swf/351995 "2014-11-07T07:33:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![nekolita](https://avatars.discourse-cdn.com/v4/letter/n/3be4f8/32.png) [@nekolita](https://forum.kirupa.com/u/nekolita)\
**Post date:** [November 7, 2014, 7:33am UTC](https://forum.kirupa.com/t/resizing-external-swf/351995/1 "2014-11-07T07:33:29Z")

</div>

Hello,

I’m very, very new in Flash AS3 and currently, I’m having a problem on how to resize my external swf. My parent swf is in landscape mode and my child swf is in portrait mode. I want the output of the child swf to be in its original portrait mode when clicked (yeah…i have a button to load the child swf).

This is my code that I used to load my child swf. The load and the alignment was all a huge success but not the portrait mode. How can I alter my code so that it works?

```javascript
var page:Loader = new Loader(); 
startproject.addEventListener(MouseEvent.CLICK, onClick);
 function onClick(myEvent:MouseEvent):void
 {
 var pageRequest:URLRequest = new URLRequest("main.swf");
 var context:LoaderContext = new LoaderContext(false,new ApplicationDomain());
 page.load(pageRequest,context); 
 this.addChild(page);
 page.x = 150;
 page.y = 0;
 page.addEventListener('killMe', killLoadedClip); 
 } 

function killLoadedClip(event:Event):void
 { 
 event.target.removeEventListener('killMe', killLoadedClip) 
 removeChild(page); 
 page.unloadAndStop();
 }

```

I’ve tried everything but I don’t know. Need help, please. Thank yoy

---

<div class="post-metadata">

**Author:** ![krilnon](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/krilnon/32/34_2.png) [@krilnon](https://forum.kirupa.com/u/krilnon)\
**Post date:** [November 7, 2014, 6:27pm UTC](https://forum.kirupa.com/t/resizing-external-swf/351995/2 "2014-11-07T18:27:42Z")

</div>

How is the child SWF programmed? If it contains logic that positions things based on the stage dimensions, then you’re going to have trouble inserting it in a landscape SWF without modification.
