A few facts: 1. I can only use ActionScript 2.
2. All files are in the same domain (for example, http://www.example.com).
I have a SWF bootloader that acts as a selection tool (" auto_magic.swf ") located on the "/" page of the website (root folder). <sh> The user selects the tool that he needs (this is a mechanical diagnostic system), and the main movie loads it (currently I use loadMovie () - I suggest another, if necessary).
This tool is located in " /tools/[tools_name.BIZ/tool_main.swf ".
Now "tool_main.swf" loads just fine.
The problem is that "tool_main.swf" needs to load other files located in its folder , so, for example, it tries to load "config.xml", BUT Flash does not look for "config.xml" in the dedicated tool folder - instead looks for this file in the root folder "/", where "auto_magic.swf" is located, probably due to the main swf of the movie coming from there.
To make this even worse, I cannot modify the SWF tool ("tool_main.swf") because it comes from a third party.
Is there any solution? As far as I can see this, I need one of these solutions.
1. Be able to set the base url of loaded swf .
2. * Change * the entire source URL of the movie at runtime because it needs to load several tools from different folders.
Try to solve it in a few good hours. Help would be much appreciated!
source
share