I have a flash movie which resides in a folder named ‘gallery’ in the root directory. When the page is loaded, it is unable to load the xml file, but the movie loads fine. Both the xml file and the movie are located within the ‘gallery’ folder.
I am assuming it has something t开发者_如何学Pythono do with the .htaccess file
While checking through firebug (it shows gallery.xml inside activities folder) GET gallery.xml http://localhost/adv/activities/gallery.xml
MY htaccess file
RewriteEngine on
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /([^/]+/)*index\.php\ HTTP/
RewriteRule ^(([^/]+/)*)index\.php$ http://localhost/adv/$1 [R=301,L]
RewriteRule activities/(.*) activity.php?actid=$1 [L]
@localhost: It sounds like you might be trying to access the XML within Flash with relative paths instead of absolute ones; change the path to absolute and it should work.
Relative path, e.g.:
gallery/gallery.xml
Absolute path, e.g.:
http://localhost/adv/gallery.xml
精彩评论