Hello, I'm trying to dynamically modify krpano variables from a HTML embed window through JS but don't know how should I do this. The variables I'd like to modify (rewrite) are the "stagescale", which is an attribute of the <krpano> element, and the "mousetype" variable, which lives inside the <control> element. ¿Any ideas on how to achieve this?
When I create de viewer is where I'd like to modify the "mousetype" variable, but since it doesn't live inside the krpano element I have my doubts:
Code
var viewer = createPanoViewer({swf:"tour.swf", id:"krpanoSWFObject", html5:"always", html5licenseload:false});
viewer.addVariable("xml", "tour.xml");
viewer.addVariable("stagescale", ".45");
viewer.addVariable("simulatedevice", "iphone");
viewer.embed("krpanoDIV");
Once generated I'd like to modify the stagescale without reloading the viewer.
Thank yo guys, very much guys.