# URL location and file linking

**URL:** <https://forum.kirupa.com/t/url-location-and-file-linking/258558>\
**Category:** flash\
**Created:** [April 25, 2008, 4:14am UTC](https://forum.kirupa.com/t/url-location-and-file-linking/258558 "2008-04-25T04:14:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chimeara](https://avatars.discourse-cdn.com/v4/letter/c/bc8723/32.png) [@Chimeara](https://forum.kirupa.com/u/Chimeara)\
**Post date:** [April 25, 2008, 4:14am UTC](https://forum.kirupa.com/t/url-location-and-file-linking/258558/1 "2008-04-25T04:14:57Z")

</div>

Ok, so basically I have a web site (A.swf) which then imports as a movie clip (B.swf), however B.swf gets data from a html file in the directory below it.

-Website[Folder]  
–A.swf  
–Folio [Folder]  
—B.swf  
—images.xml

So when I run B.swf it runs with no problems as the url for images.xml is just myXML.load(“images.xml”); However when I run A.swf it produces an error because it tries to load ‘images.xml’ from the folder A.swf is in not the folder B.swf is in.

I also do not want to use absolute referencing because then i will have to change it all when i upload it to the internet.

So is their a way to tell the program the directory is relative to B.swf not A.swf

e.g. something that works like thisDirectory.“images.xml”
