Help needed with file structure!!

  • I'm still very new to flash and KR pano. I've been trying to make the code a bit neater and have been trying to put EVERYTHING inside one folder titled "360_files" except for the index page and the css. Can someone assist? I keep getting a parsing error or an i/o error. I've added the script from the index page below.

    <div id="pano">

    <div id="krpanoDIV">
    <noscript><table width="754" height="480" border="2" align="center" cellpadding="2" bordercolor="#CCCCCC">
    <tr valign="middle" bordercolor="#333333"><td width="754" height="474" align="center" valign="middle" bordercolor="#F0F0F0" bgcolor="#CCCCCC"><center>
    <span class="style2">ERROR:<br>
    <br>
    Javascript not activated</span><br>
    <br>
    </center></td></tr></table></noscript>
    </div>

    <script type="text/javascript" src="360_files/swfobject/swfobject.js"></script>
    <script type="text/javascript" src="360_files/swfobject/swfkrpanomousewheel.js"></script>

    <script type="text/javascript">
    // <![CDATA[
    if (typeof(deconcept) !== 'undefined')
    {
    if (deconcept.SWFObjectUtil.getPlayerVersion().major >= 6)
    {
    var so = new SWFObject("360_files/plugins/krpano.swf", "krpanoSWFObject", "754", "480", "9.0.28","#000000");

    so.addParam("allowFullScreen","true");
    so.addVariable("license","360_files/license.xml");
    so.useExpressInstall("360_files/swfobject/expressinstall.swf");
    so.setAttribute("xiRedirectUrl", window.location);

    so.addVariable("pano","360_files/esotericvision.xml");

    if ( so.write("krpanoDIV") ) { var mousewheelfixes = new SWFkrpanoMouseWheel(so); }
    }
    else
    {
    document.getElementById("krpanoDIV").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>';
    }
    }
    else
    {
    document.getElementById("krpanoDIV").innerHTML = '<table width="100%" height="100%"><tr valign="middle"><td><center>ERROR:<br><br><b>./swfobject/swfobject.js</b> not found<br><br><br><br><br></center></td></tr></table>';
    }
    // ]]>
    </script>
    </div>

  • If the thumbs are not loading... then you might want to post the link here and see if shanti or others can help you out with the specifics.

    It's a bit odd that when loading the index file directly (remote window link) the thumbs show up.

    It makes me think that there is a path issue... which I can sometimes help with... but in the case of Shanti's plugin, I can't say for sure how it reads the url path in...

    Code
    url="plugins/thumbs.swf?TheXML=gallery1.xml"


    ... if it's relative to the thumbs.swf file or if it's relative to the krpano.swf file.

    --------
    I just tried loading your page and using the firebug firefox app / plugin... and I don't think it's even trying to load the thumbs.swf... but I can't tell if it just can't find it... or if there's some other error.

    Shanti / Klaus and others are more adept at debugging this type of issue... or at least pointing you down the right path.

    Sorry I can't help more at this point.... but the thumbs plugin isn't something I've had a chance to really use.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!