# Loading/calling .swf (relative/static/hard-coded paths etc.)

**URL:** https://forum.kirupa.com/t/loading-calling-swf-relative-static-hard-coded-paths-etc/50926
**Category:** Uncategorized
**Created:** [May 7, 2004, 7:41pm UTC](https://forum.kirupa.com/t/loading-calling-swf-relative-static-hard-coded-paths-etc/50926 "2004-05-07T19:41:36Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![piku](https://avatars.discourse-cdn.com/v4/letter/p/9de0a6/32.png) [@piku](https://forum.kirupa.com/u/piku)
#### Post date: [May 7, 2004, 7:41pm UTC](https://forum.kirupa.com/t/loading-calling-swf-relative-static-hard-coded-paths-etc/50926/1 "2004-05-07T19:41:36Z")

</div>

if someone can shed some light to this matter… i’m pretty new (somewhat) w/ AS

let’s say, i got an .swf ([voets enahnced mp3-player) @ [url=“http://test.pixelbebop.com/test08/”]http://test.pixelbebop.com/test08/ --which works perfectly at the moment. i then referrenced this .swf in [url=“http://test.pixelbebop.com/test08/case01/”]http://test.pixelbebop.com/test08/case01/](http://www.kirupaforum.com/forums/showthread.php?t=49368&highlight=player+xml+mp3) --which doesn’t work prolly because the .swf is calling the XML (i.e. “onlineplaylist.xml”) relative to its whereabout, which is /test08.

the question is, is there any way around this problem, so that if i put all .SWFs in a certain location (server/directory/what-have-you…), and referrence it from another server &/or directory (like above), it would work???

i know that the above can be simply fixed, by hard-coding the location of the XML file. i.e.

```auto
XMLRetrieve.load(" **http://url/folder/etc/** onlineplaylist.xml");

```

but is there a smarter way, cause i know this is probably the same when loading clips dynamically.

TIA.

* * *

btw: using fmx2004pro
