Hi Klaus,
I'm trying to select random scenes from a pano, all works well with a standalone tour however when I call the xml with the loadpano routine all delayed calls with an ID fail to mature; any idea what is wrong?
xml extract:
<krpano version="1.16" title="Saltdean Home" onstart="local_startup();">
<action name="local_startup">
set(autorotate.speed,5);
if(startscene === null, copy(startscene,scene[0].name));
playsound(s1,music/music1.mp3,100);
loadscene(get(startscene), null, MERGE);
</action>
<!-- automatically select a random scene if not changed within 200 seconds --->
<action name="startNext">
if(randomscene,stopdelayedcall(randomscene));
mul(nextScene,random,3);
roundval(nextScene);
delayedcall(randomscene,200, loadscene(get(scene[get(nextScene)].name),null,MERGE,BLEND(1)));
trace('Next Scene ',get(scene[get(nextScene)].name));
</action>
<scene name="scene_Hall" title="Hall" onstart="startNext();" thumburl="panos/Hall.tiles/thumb.jpg" lat="" lng="" heading="">
:
</scene>
<scene name="scene_Bathroom" title="Bathroom" onstart="startNext();" thumburl="panos/Bathroom.tiles/thumb.jpg" lat="" lng="" heading="">
:
</scene>
<scene name="scene_Bedroom" title="Bedroom" onstart="startNext()" thumburl="panos/Bedroom.tiles/thumb.jpg" lat="" lng="" heading="">
:
</scene>
</krpano>
called from another xml file with:
delayedcall(0.75, loadpano('%SWFPATH%/saltdean/vtour-1/krpano.xml', null, MERGE, BLEND(2)) ));
BR
Pedro