View Full Version : simple loadMovie prob. Paths revert to parent file structure.

07-16-2006, 08:06 PM
I'm trying to loadMovie("someFolder/test.swf", "container");


The problem is that the test.swf requires two .xml files that are located in the same folder "someFolder". But when trying to run the movie it is looking for the .xml files in the parent folder of someFolder.

I can run test.swf on its own it works on it's own and the paths are correct but when i try it with loadMovie it can't find the .xml files because it's looking at the root. Probably an easy fix, or else it can't be fixed. Any ideas?


07-16-2006, 09:52 PM
Use a leading forward slash in front of the file so it starts at the root of the site.

loadMovie("/someFolder/test.swf", "container");
Same goes for when you call your xml files from test.swf.

07-16-2006, 10:16 PM
well all the paths are right. The problem is that when I load the test.swf into the main movie.swf the paths that were in test.swf default to the root folder instead of the folder that they are actually in.

so it puts the xml at wholeSiteFolder/file1.xml instead of wholeSiteFolder/someFolder/file1.xml.

What is worse is that test.swf is actually the FIG (http://www.flashimagegallery.com/) image gallery so I can't edit its code and I can't even purchase it. And I need it to load in the flash file because when i tried to have multiple image galleries open as popups it kills IE. I started another thread about the Ie problem but got no responses :(

07-16-2006, 10:18 PM
So you can't edit the calls to the xml files then? Then why not just move the xml files to the root?

07-16-2006, 10:25 PM
ahh would that I could. But since i need multiple image galleries, I also need multiple xml files. So i can't move it to the root because then I would only be able to use one xml file and thus have only one gallery.

The xml file is really just menu.xml to control which pictures load. But since I can't edit the swf for the image gallery, i can't set it to use multiple menu.xml's for each different gallery.

So the only thing I could think to do was put a diffent gallery.swf into different folders and load them into flash separately so that they would call the menu.xml that is in their folder. Only for some reason it is looking for menu.xml in the root folder. :S

07-17-2006, 02:57 PM
if you want, you can try using a swf decompiler, such as the one on the sothink website. I would put the link, but it gets all starred out. There are free ones, this one is just the best. It will decompile the swf file basically give you the .fla file to do with whatever you want-