# External Loading of swf and watching behind the scenes

**URL:** https://forum.kirupa.com/t/external-loading-of-swf-and-watching-behind-the-scenes/283528
**Category:** flash
**Created:** [March 7, 2009, 3:25pm UTC](https://forum.kirupa.com/t/external-loading-of-swf-and-watching-behind-the-scenes/283528 "2009-03-07T15:25:19Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![blackcoma](https://avatars.discourse-cdn.com/v4/letter/b/48db29/32.png) [@blackcoma](https://forum.kirupa.com/u/blackcoma)
#### Post date: [March 7, 2009, 3:25pm UTC](https://forum.kirupa.com/t/external-loading-of-swf-and-watching-behind-the-scenes/283528/1 "2009-03-07T15:25:19Z")

</div>

I’m currently working on a portfolio site,  
which, among other things, loads external swf files into the stage.

The problem starts when I load a 400x300 swf file into the stage, which is 900x800.  
The result is that I get all objects which are outside the stage area in the loaded swf, on my main stage.

I tried everything from changing the width and the height to loading it into a movieclip.  
It’s always the same, I get all the elements from outside the stage of the loaded swf (if I try to change the width/height, the objects outside the scene still remain)

This is the code I’m using to load the external AS2 swf:

```auto

function startVideo()
{
    var request:URLRequest = new URLRequest("test.swf");
    var loader:Loader = new Loader();
    loader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, loadProgress);
    loader.contentLoaderInfo.addEventListener(Event.COMPLETE, loadComplete);
    loader.load(request);

}

        function loadProgress(event:ProgressEvent):void{
            var percentLoaded:Number = event.bytesLoaded/event.bytesTotal;
            trace(percentLoaded);
            
        }
        
        function loadComplete(event:Event):void{
            trace("Complete");         

        }
        
startVideo();

```

What am I doing wrong?
