In the "Embedding into HTML" documentation the statement swf.addVariable("xml", "pano.xml"); loads the startup xml file. Can I omit that statement and instead load the xml from a string using the loadxml function? For example, I have tried the following code where xmlString contains the content of the pano.xml file and it does not seem to work:
var swf = createswf("krpano.swf", "krpanoSWFObject", "100%", "100%", "#000000");
swf.call(loadxml(escape(xmlString)));
swf.embed("panoDiv");
What is wrong with the above script? Can someone provide a complete example of loading krpano xml from a string?
I need to do this because the xml file I am using changes dynamically and I am worried about synchronization problems if it changes before the addVariable statement loads the xml.