# Load external SWF file into another SWF

**URL:** https://forum.kirupa.com/t/load-external-swf-file-into-another-swf/319785
**Category:** flash
**Created:** [March 4, 2011, 9:25am UTC](https://forum.kirupa.com/t/load-external-swf-file-into-another-swf/319785 "2011-03-04T09:25:53Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Nazgul128](https://avatars.discourse-cdn.com/v4/letter/n/c89c15/32.png) [@Nazgul128](https://forum.kirupa.com/u/Nazgul128)
#### Post date: [March 4, 2011, 9:25am UTC](https://forum.kirupa.com/t/load-external-swf-file-into-another-swf/319785/1 "2011-03-04T09:25:53Z")

</div>

Hello all.

I’ve tried loading a .swf file externally into another .swf file on my local drive, and it works. Now, when I try to Simulate Download, the preloader in the 2nd file doesn’t get played and the images in there take a while to get displayed.

I need to load a .swf file from a server into the parent .swf file(I’m working on using a “thin flash file” for added security for the company I work for - blank file which loads the content from another file on their server).

So far, I have:

```auto
try
{
    var myLoader:Loader = new Loader(); 
    addChild(myLoader);
    var url:URLRequest = new URLRequest("newBook.swf"); 
    myLoader.load(url);
}    

catch (e:Error) 
{
    trace("ruhroh");
}

```

When I replace the “newBook.swf” with the URL of another .swf, there’s just a blank page.

I’m not too sure how to proceed, and I hope you will be able to help me out. I’d greatly appreciate the help.

Many thanks,  
-Nazgul
