PDA

View Full Version : path gets lost?


Herre
04-04-2007, 02:06 PM
Hai folks,

I've got this strange problems with paths... don't know if i'm posting this in the right forum though... here I go:

I've got 2 folders:
\swf\*.* : here are al the swf's
\pictures\testgallerij\*.* here is an swf, images and xml for 1 gallery.

I did this because I want a folder for every image gallery, to keep things clear and categorized.

Now the problem: When I run my swf in the \pictures\testgallerij\ folder, its works perfect. He does a load of images.xml, wich is also in the same folder.

But, when I load the same swf in a loader mc in an swf that is stored in de \swf\ folder, he finds the gallery-swf, but inside that swf he can't find the images.xml file. I think he tries to search the images.xml in the \swf\ folder instead of in the \pictures\testgallerij\ folder.

In the gallery-swf, I've put lockroot=true, but that doesn't seem to do the trick.

I've uploaded the whole system, maybe that's easier to understand the problem (my english is not that rockin'), index.html is stored in de /swf/ folder.

What do I miss? It's probably something small, but I'm completely stuck here...

Kind regards,
Herre, the belgian guy.


http://www.hermandesmet.be/html/site.zip

evride
04-08-2007, 02:36 AM
Your problem was the linking. You can't just jump folders and not tell flash you're doing so.
This should be the XML in the blog.xml file of the swf folder
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<images>
<pic>
<image>../pictures/testgallerij/1.jpg</image>
<caption><![CDATA[Saw this amazing ice-cubes in Helsinki city last week. For a full gallery, <a href="www.google.com">click here<a>.<br>This is text on a new line.]]></caption>
</pic>
<pic>
<image>../pictures/testgallerij/2.jpg</image>
<caption>Doel</caption>
</pic>
<pic>
<image>../pictures/testgallerij/2b.jpg</image>
</pic>
</images>

../ makes the folder go up a level

Herre
04-09-2007, 09:57 AM
hey

thanx, that solved the problem...

pretty stupid actually :-)

Cheers,
Herre