this is a little variation to the script that can use to avoid error to the path and leave the orginal file inside a foldere placed everywhere:
in red variaton to original script. the Param base point your script at the folder of your work, so you will never have problem with plugins and files.
in green name of your file and your root this is just example. this must change every new work with the new name and/or folder
<script type="text/javascript">
// <![CDATA[
if (typeof(deconcept) !== 'undefined' && deconcept.SWFObjectUtil.getPlayerVersion().major >= 6)
{
var root =' direction/to/ your/folder/'; // immettere qui il path alla root dei file
var so = new SWFObject(""+root+"krpano.swf", "krpanoSWFObject", "100%", "100%", "9.0.28","#fff");
so.addParam("allowFullScreen","true");
so.addParam("base", ""+root+"");
so.addVariable("pano", ""+root+"yourfile.xml");
so.useExpressInstall(""+root+"swfobject/expressinstall.swf");
so.setAttribute('xiRedirectUrl', window.location);
if ( so.write("krpano") ) { var mousewheelfixes = new SWFkrpanoMouseWheel(so); }
}
else
{
document.getElementById("krpano").innerHTML = '<table width="100%" height="100%"><tr valign="middle"><td><center>ERROR:<br><br>Adobe Flash Player 9 needed<br><br><br><a href="http://www.adobe.com/go/getflashplayer/" target="_blank"><IMG SRC="http://www.macromedia.com/images/shared/…lash_player.gif" BORDER="1"></a><br>...click here to download...<br><br><br><br></center></td></tr></table>';
}
// ]]>
</script>