# Loader and URLs

**URL:** https://forum.kirupa.com/t/loader-and-urls/286582
**Category:** Uncategorized
**Created:** [April 17, 2009, 9:32am UTC](https://forum.kirupa.com/t/loader-and-urls/286582 "2009-04-17T09:32:35Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![RossKidd](https://avatars.discourse-cdn.com/v4/letter/r/53a042/32.png) [@RossKidd](https://forum.kirupa.com/u/RossKidd)
#### Post date: [April 17, 2009, 9:32am UTC](https://forum.kirupa.com/t/loader-and-urls/286582/1 "2009-04-17T09:32:35Z")

</div>

Hi,

I am loading a url from an xml file, when working the structure was:

mycarousel.swf  
images(folder)  
-image1.jpg  
-thumb1.jpg

the xml was  
\<item thumb=“images/thumb1.jpg” image=“images/image1.jpg”\>\</item\>

This worked fine. Now I want to put all that into a folder called ‘carousel’ and then load this into my main movie.

var myRequest:URLRequest = new URLRequest(“carousel/mycarousel.swf”);

so the structure is now

mainmovie.swf

carousel(folder)  
mycarousel.swf  
images(folder)  
-image1.jpg  
-thumb1.jpg

the problem is whatever I do I get a URL error on the xml file. I do not really understand how flash deals with relative and absolute paths and how to resove this.

Thanks,
