# Loading different swf depending on URL

**URL:** <https://forum.kirupa.com/t/loading-different-swf-depending-on-url/99771>\
**Category:** Uncategorized\
**Created:** [January 21, 2004, 10:58pm UTC](https://forum.kirupa.com/t/loading-different-swf-depending-on-url/99771 "2004-01-21T22:58:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![optimis](https://avatars.discourse-cdn.com/v4/letter/o/ac91a4/32.png) [@optimis](https://forum.kirupa.com/u/optimis)\
**Post date:** [January 21, 2004, 10:58pm UTC](https://forum.kirupa.com/t/loading-different-swf-depending-on-url/99771/1 "2004-01-21T22:58:10Z")

</div>

HI,

I am setting up a site with a main navigation SWF that loads each section into a MC on the stage.

I would like it to load the “home” SWF when they go to the site via one URL: ie. [http://www.home.com](http://www.home.com)

and I would like it to default to the “garden” SWF when accessing:  
ie. [http://www.garden.com](http://www.garden.com)

How can my main navigation SWF tell which URL the user is coming from?

I want to avoid having to make duplicates of the main SWF file.

-OPT
