# Loading an external swf with a determined scale

**URL:** <https://forum.kirupa.com/t/loading-an-external-swf-with-a-determined-scale/302033>\
**Category:** flash\
**Created:** [December 20, 2009, 2:34pm UTC](https://forum.kirupa.com/t/loading-an-external-swf-with-a-determined-scale/302033 "2009-12-20T14:34:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Loyx](https://avatars.discourse-cdn.com/v4/letter/l/e274bd/32.png) [@Loyx](https://forum.kirupa.com/u/Loyx)\
**Post date:** [December 20, 2009, 2:34pm UTC](https://forum.kirupa.com/t/loading-an-external-swf-with-a-determined-scale/302033/1 "2009-12-20T14:34:09Z")

</div>

Hi guys, I’m new to as3 and i’m trying to load an external swf (as2) and I want to use it as a background for my movie.

I’m doing it with this code:

```auto
var bg = new Loader();
bg.load(new URLRequest("background.swf"));
addChild(bg);
bg.x = 0;
bg.y = 0;
bg.scaleX = stage.stageWidth;
bg.scaleY = stage.stageHeight;

```

Why is not working when I set as the width and height the stageWidth and stageHeight parameters?

Thanks
