I think there is more to this. I ran a ton of tests and this is what i have come up with. depending on where the loadscene is placed you get very different results. the events must not queue up behind one another?
here is a download link to this test if someone want to verify.
http://www.virtualnorthland.com/panos/te…/onloadtest.rar
<!-- USE loadscene(testscene); OR delayedcall(1, loadscene(testscene)); FOR TESTING
loadscene inside global onstart = first onstart works, first onxml does not, first onload does not, second onstart works, second onxml works 2 times?, second onload works
loadscene inside global onxml = first onstart works, first onxml works, first onload does not, second onstart works, second onxml works, second onload works
loadscene inside global onload = first onstart works, first onxml works, first onload works, second onstart works, second onxml works, second onload does not
loadscene inside global onxml with a DELAYEDCALL of 1 second everything works.
loadscene inside global onload with a DELAYEDCALL of 1 second everything works.
loadscene inside global onstart with a DELAYEDCALL of 1 second everything works.
REMOVING GLOBAL 'IMAGE' TAGS MAKES FIRST ONLOAD STOP TOTALLY. Why are images tags needed outside of a scene?
REMOVING SCENE 'IMAGE' TAGS MAKES SECOND ONLOAD STOP TOTALLY. Why are images tags needed at all shouldnt preview just work?
-->
<krpano version="1.0.8.14" onstart="showlog(); trace('first onstart is working ...'); ">
<view hlookat="0" vlookat="90" fov="120" />
<preview url="preview.jpg" />
<image> <!-- delete IMAGE tag code and onloadcomplete stops working totally-->
<cubestrip url="preview.jpg" />
</image> <!-- delete IMAGE tag code and onloadcomplete stops working totally-->
<!-- start of global data -->
<events onxmlcomplete="trace('first onxmlcomplete is working ...'); "
onloadcomplete="trace('first onloadcomplete is working ...'); "/>
<!-- end of global data -->
<scene name="testscene" onstart="trace('second onstart is working ...');">
<view hlookat="0" vlookat="-90" fov="120" />
<preview url="preview.jpg" />
<image> <!-- delete IMAGE tag code and onloadcomplete stops working totally-->
<cubestrip url="preview.jpg" />
</image> <!-- delete IMAGE tag code and onloadcomplete stops working totally-->
<!-- start of scene data -->
<events onxmlcomplete="trace('second onxmlcomplete is working ...');"
onloadcomplete="trace('second onloadcomplete is working ...');"/>
<!-- end of scene data -->
</scene>
</krpano>