This content has been marked as final.
Show 4 replies
-
1. Re: Flash content won't play if HTML is in a different directory
Ross Ritchey Aug 11, 2008 9:17 AM (in response to 4ever)Flash looks at the current location of the HTML page for the start of any relative paths. So, if your SWF is in a different location from the HTML, you will want to use server-relative paths ("/path/to/xml.xml") or absolute paths (" http://www.mysite.com/path/to/xml.xml") in the Flash.
If you don't want to change the SWF, move the XML and any other files relative to the root of the server, and you will be in business. -
2. Re: Flash content won't play if HTML is in a different directory
4ever Aug 11, 2008 9:39 AM (in response to Ross Ritchey)Thanks for the quick reply, but when I changed the .fla file to reflect the server-relative path
(myShowXML.load ("/flash/images.xml");
the show would still not play. -
3. Flash content won't play if HTML is in a different directory
Ross Ritchey Aug 11, 2008 9:43 AM (in response to 4ever)Did you try an absolute path?
Also, is "/flash/images.xml" relative to the root of the server? Or is the "flash" folder inside of another folder? -
4. Re: Flash content won't play if HTML is in a different directory
4ever Aug 11, 2008 10:54 AM (in response to Ross Ritchey)Yes, and flashplayer would keep throwing an error about an unsafe operation and would block the page from loading. So I gave up and just put everthing at the siteroot. It works, but it's not as organized.

