You are not logged in.

Zephyr

Professional

  • "Zephyr" started this thread

Posts: 994

Location: Netherlands

Occupation: Web developer

  • Send private message

1

Friday, January 7th 2011, 5:59pm

XML Object

krpano supports communication through setters and getters, but this is always been limited to strings

for instance to load a new panorama, you could do this in flash:
krpano.call("loadpano(tour.xml)");

but would it be possible to load the xml myself in an plugin, and then send the XML/XMLList object to krpano? something like
krpano.set("xml.content", someXML);

This would be usefull for instance creating somekind of encryption with the key stored in flash, or defining xml in the swf, instead of externally loading it. This xml could be compiled, leading to a smaller filesize. Alsoo you could combine different XMLLists, have all interface (keep="true" related stuff) stored in swf, and the hotspots outside.

krpano probally already uses a Loader to load the xml and the converts it to xml object . Maybe you could define a function or event listener, so it skips the Loader part and directly uses the xml object.
3d childrens game using krpano Game
Minify your xml with my krpano XML Compressor
Krpano XML Parsing Error Checklist
Available for hire (krpano xml, javascript, actionscript, flash, php and ipad plugins).

2

Friday, January 7th 2011, 9:08pm

Hi,

just have a look at the loadxml() action
with it you can load a xml string directly,

best regards,
Klaus

Zephyr

Professional

  • "Zephyr" started this thread

Posts: 994

Location: Netherlands

Occupation: Web developer

  • Send private message

3

Saturday, January 8th 2011, 10:45am

Awesome!

So I could do like:

Source code

1
2
3
var krpanoXML:XML = <krpano>test</krpano>

krpano.call("loadxml("+krpanoXML+")");
3d childrens game using krpano Game
Minify your xml with my krpano XML Compressor
Krpano XML Parsing Error Checklist
Available for hire (krpano xml, javascript, actionscript, flash, php and ipad plugins).

4

Wednesday, January 12th 2011, 4:48pm

Hi,

maybe, I don't know if XML objects will be automatically converted to strings in as3,
but when - it will work of course,

best regards,
Klaus