# Swf loading into movieclip is wrong size

**URL:** <https://forum.kirupa.com/t/swf-loading-into-movieclip-is-wrong-size/318736>\
**Category:** flash\
**Created:** [January 28, 2011, 5:14pm UTC](https://forum.kirupa.com/t/swf-loading-into-movieclip-is-wrong-size/318736 "2011-01-28T17:14:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![donbon](https://avatars.discourse-cdn.com/v4/letter/d/8491ac/32.png) [@donbon](https://forum.kirupa.com/u/donbon)\
**Post date:** [January 28, 2011, 5:14pm UTC](https://forum.kirupa.com/t/swf-loading-into-movieclip-is-wrong-size/318736/1 "2011-01-28T17:14:34Z")

</div>

EDIT: I found a solution

Hi, I’m a total noob when it comes to actionscript so any help is really appreciated.

I am trying to load a swf into a movieclip of the same size but the swf seems to be resized somehow. Any help would be appreciated.

The Movieclip and the swf are both 300 x 300 pixels. Yet the swf loads in scaled down and is only taking up part of the movieclip.

I have the following code on the 1st frame of the timeline of the container movie:

```php

// loader
var swfLoader:Loader = new Loader();
main.addChild(swfLoader);
var bgURL:URLRequest = new URLRequest("swf1.swf");
swfLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, loadProdComplete);
swfLoader.load(bgURL);
function loadProdComplete(e:Event):void {
    trace("file loaded");
}

```
