Hi,
I have two Flash files on a page. One is a side bar with links and the second one is an image gallery that gets an XML file specified via FlashVars. Now, the side bar is embedded like this:
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="200" height="565" id="sidebar" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name=FlashVars value="xmlfile=../flash/sidebar.xml">
<param name="movie" value="../flash/sidebar.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#000000" /><embed src="../flash/sidebar.swf" FlashVars="xmlfile=../flash/sidebar.xml" quality="high" bgcolor="#000000" width="200" height="565" name="sidebar" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
while the gallery is included like this, using javascript:
<script language="javascript" type="text/javascript">
document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="650" height="450" id="main" align="middle">')
document.write('<param name="allowScriptAccess" value="sameDomain" />')
document.write('<param name=FlashVars value="' + getCategory() + '">')
document.write('<param name="movie" value="../flash/main.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#000000" /><embed src="../flash/main.swf" FlashVars="' + getCategory() + '" quality="high" bgcolor="#000000" width="650" height="450" name="main" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />')
document.write('</object>')
</script>
Both show up correctly when I run it on my local server (WAMPServer) but when I copy this to my website, the gallery (the one embedded with the Javascript bit) won’t sjow up. There is nothing, no Flash file, no “broken file” placeholder, no nothing.
Please, can somebody advice?
Many thanks in advance for your help!