Frederik77
Member
Posted 2 years ago #
I'm trying to build a Flash game arcade in WP, and it's coming along very well so far.
But some game SWFs need to load external files (MP3 and XML) and WP's permalink rewriting seems to confuse the paths, probably because the SWFs look for the files along the rewritten paths instead of the actual file positions.
Does anyone know a dynamic solution for this?
madfatter
Member
Posted 2 years ago #
Hi Frederik77,
I'm having a the same problem loading an xml file. I have the swf and xml folder in the main wordpress folder at the top level.
Oddly, it was working fine until I updated to wp 2.8.5. Now the browser reports that it's looking for the files in, for example if I was on the "example_category" page: mydomain.com/wordpress/example_category/xml when the file is in mydomain.com/wordpress/xml. If I hard code the link (ie instead of the swf loading xml/xml.file it tries to load http://www.mydomain.com/wordpress/xml/xml.file) the browser reports no issues but the flash file does nothing.
Did you find a solution to your problem?
kaotik78
Member
Posted 1 year ago #
This seems to be the case with flash/xml combos with no reported solution still. Can someone at wordpress add a feature for this?
It's really frustrating that no one can even tell us if this has a solution or not, I think flash files with XML references will simply not work
Figured it out:
add the following to your embedding script:
base="http://www.yourdomain.com/flashfolder/"
Surely replace the path to your own, this should point to where the content, xml and js are located, hope it helps
parklife
Member
Posted 1 year ago #
base="http://www.yourdomain.com/flashfolder/"
Jadoux - I had to register just to say
"You're a star, this worked an absolute treat, thanks very much!"
valeriedore
Member
Posted 1 year ago #
@Jadoux
You cannot believe how you saved my life right now!! THANKS!!!!
ZachSchneider
Member
Posted 1 year ago #
Here is validated XHTML embed object that is pulling in a video from a XML file. Thank you @Jadoux about the base parameter.
<object type="application/x-shockwave-flash" width="516" height="321" data="http://www.yourdomain.com/flashfolder/container.swf">
<param name="movie" value="http://www.yourdomain.com/flashfolder/container.swf" />
<param name="wmode" value="transparent" />
<param name="base" value="http://www.yourdomain.com/flashfolder/" />
</object>