I could barely find a reasonable title that would explain my issue, let alone try and search for how to fix this.
My issue:
User uploads a .zip with say:
It gets extracted into a unique folder ID ex. /swfs/123456/
Server tries to load the .swf in "index.php" and the .swf tries to call the .xml file, which should be in the same directory as the .swf, thinking xml src="images.xml"
The .swf thinks the xml file is in the same folder, but I guess when HTML calls a .swf is confused of it's directory. It's looking for an xml file that doesnt exist because its looking in the same folder as index.php instead of the .swfs original folder ex. /swfs/123456/images.xml
How would I possibly tell the .swf to load an xml without knowing what the directory is, or stop html from confusing my .swf of it's original location?
*Or is it that the xml file is confused of it's location and linking to the wrong images?
When embedding your swf, you could set the base attribute.
base - . or [base directory] or [URL]. Specifies the base directory or URL used to resolve all relative path statements in the Flash Player movie. This attribute is helpful when your Flash Player movies are kept in a different directory from your other files.
From: http://kb2.adobe.com/cps/127/tn_12701.html
Also see: http://kb2.adobe.com/cps/041/tn_04157.html
Example:
<embed base="http://www.example.com/pages/" href="myMovie.swf" quality="high"
pluginspage="http://www.macromedia.com/go/getflashplayer"
type="application/x-shockwave-flash" ></embed>