scheving
04-16-2009, 04:02 PM
I have been searching the forum here, and seen a few posts about this problem, however I haven't been able to figure this out... I know, shame on me! ;)
This is a problem with paths..
My structure:
My html page is here: mysite.com/places/place1.html
and has this code:
<script type="text/javascript" src="../files/swfobject.js"></script>
<div id="flashcontent">This content requires <a href="http://www.adobe.com/go/getflashplayer/">Adobe Flash Player</a> and a browser with JavaScript enabled.<br />
Built on <a href="http://flashpanoramas.com/player/">Flash Panorama Player</a>.</div>
<script type="text/javascript">
var so = new SWFObject("files/show_pano.swf", "pano", "960", "500", "6.0.65", "#282828");
so.addVariable("movie", "files/pano.swf");
so.addVariable("xml_file", "xml/jokulsargljufur.xml")
so.addVariable("redirect", window.location);
so.addParam("allowFullScreen","true");
so.addParam("allowScriptAccess","sameDomain");
so.write("flashcontent");
</script>
But the xml file and the swf files don't load, I assume that is because of some path issues.
I hope you guys understand what I mean, difficult to get this into words ;)
This is a problem with paths..
My structure:
My html page is here: mysite.com/places/place1.html
and has this code:
<script type="text/javascript" src="../files/swfobject.js"></script>
<div id="flashcontent">This content requires <a href="http://www.adobe.com/go/getflashplayer/">Adobe Flash Player</a> and a browser with JavaScript enabled.<br />
Built on <a href="http://flashpanoramas.com/player/">Flash Panorama Player</a>.</div>
<script type="text/javascript">
var so = new SWFObject("files/show_pano.swf", "pano", "960", "500", "6.0.65", "#282828");
so.addVariable("movie", "files/pano.swf");
so.addVariable("xml_file", "xml/jokulsargljufur.xml")
so.addVariable("redirect", window.location);
so.addParam("allowFullScreen","true");
so.addParam("allowScriptAccess","sameDomain");
so.write("flashcontent");
</script>
But the xml file and the swf files don't load, I assume that is because of some path issues.
I hope you guys understand what I mean, difficult to get this into words ;)