krpano tools 1.0.8-12 new way to embed a virtual tour

  • I have noticed that krpanotools 1.0.8-12 embed the virtual tours in a new way which includes the licenses, which I think it is wicked!
    I would like to start using it but I have a little problem.

    In the past I had the following code in my html file:

    Code
    var first_scene = "pano01";
    		  
        	var action =  "action(" + first_scene + "); ";
        	var action2 = "action(interface); ";
        	var xml =  "files/panos/" +first_scene + ".xml";
        	swf.addVariable("onstart", action + action2);
        	swf.addVariable("xml", xml);
        	swf.addVariable("showErrors", "false");
        	swf.embed("krpanoDIV");

    Using this code I can add a 'onstart' property to the first scene to run the actions "pano01" and "interface".

    So how can I addVariable to the new way to embed krpano?

    Code
    <script type="text/javascript">
    		embedpano({swf:"files/krpano/krpano.swf",
    					  xml:"files/panos/pano01.xml",
    					  target:"pano"});
    	</script>

    I tried several combinations but I am not exactly what I am doing.
    Any help would be greatly appreciated.

    Cheers!

Participate now!

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