I’ve got various flash files stored on my server.
For this exmaple – here is the directory structure:
Files > Example >
-> example.swf
-> example.xml
So then on a separate webpage stored in the root of my server.. i’m embeding the flash.
...
<param name="movie" value="http://www.example.com/Files/Example/example.swf">
...
Now the issue comes. Because the .swf is trying to access example.xml … which is NOT stored in the root directory. How can I fix this problem?
(I’d rather not use an iframe)
You can use the BASE attribute of the object/embed tag for the Flash player.
By default, relative paths in Flash are resolved relative to the page that contains the Flash, not relative to the swf file. The BASE attribute lets you specify another URL, other directory path, that is used to resolve relative URL’s.
So for your example above, you could add this: