# Load external .swf

**URL:** https://forum.kirupa.com/t/load-external-swf/256026
**Category:** flash
**Created:** [March 29, 2008, 2:40pm UTC](https://forum.kirupa.com/t/load-external-swf/256026 "2008-03-29T14:40:40Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![dynamicvine](https://avatars.discourse-cdn.com/v4/letter/d/ecae2f/32.png) [@dynamicvine](https://forum.kirupa.com/u/dynamicvine)
#### Post date: [March 29, 2008, 2:40pm UTC](https://forum.kirupa.com/t/load-external-swf/256026/1 "2008-03-29T14:40:40Z")

</div>

Hello,

I was wondering if someone could tell me how to load an external .swf on the click of a button …

The external .swf is stored in the same folder as the first .swf

I don’t want to have it load an exact URL (i.e. www.???.com/external.swf) but have it refer to it’s location compared to itself - I’ve tried “external.swf” and “/external.swf” but it doesn’t find either.

Code I’m using:  
import flash.net.URLRequest;  
import flash.events.Event;

function startLoad()  
{  
var mRequest:URLRequest = new URLRequest(“external.swf”);  
}

startLoad();

Sorry if that’s confusing at all?!  
Thanks for any help you can provide :p:
