# The syntax for the relative path

**URL:** https://forum.kirupa.com/t/the-syntax-for-the-relative-path/268004
**Category:** Uncategorized
**Created:** [August 8, 2008, 4:25am UTC](https://forum.kirupa.com/t/the-syntax-for-the-relative-path/268004 "2008-08-08T04:25:41Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![RJkey](https://avatars.discourse-cdn.com/v4/letter/r/35a633/32.png) [@RJkey](https://forum.kirupa.com/u/RJkey)
#### Post date: [August 8, 2008, 4:25am UTC](https://forum.kirupa.com/t/the-syntax-for-the-relative-path/268004/1 "2008-08-08T04:25:41Z")

</div>

Hi,

I have my file structure like this:

/main.swf  
/main.as (the document class of “main.fla”)  
/xml/1/1.xml  
/img/1/1.jpg

In the main.as, I will need to load data from the xml/ and /img folders. Does anyone know what will be the syntax to refer to /xml/1/1.xml as a relative path? Any sample code or link to sourece would be greatly appreciated.

Thanks a lot!
