My animated hotspots don't start animation before clicked anywhere on pano...
http://www.ditib-ma.de/site/assets/360-panoramen-moschee/
v 1.0.8
hotspots are animated default style:
Code
<!-- hotspot styles (for Flash and HTML5) -->
<style name="hotspot_ani_black"
url="../hotspots/hotspot_ani_black_64x64x30.png"
crop="0|0|64|64"
framewidth="64" frameheight="64" frame="0" lastframe="29"
onloaded="hotspot_animate();"
altonloaded="if(isphone, mul(scale,2)); onloaded();"
/>
<style name="hotspot_ani_white"
url="../hotspots/hotspot_ani_white_64x64x30.png"
crop="0|0|64|64"
framewidth="64" frameheight="64" frame="0" lastframe="29"
onloaded="hotspot_animate();"
altonloaded="if(isphone, mul(scale,2)); onloaded();"
/>
<action name="hotspot_animate">
inc(frame,1,get(lastframe),0);
mul(ypos,frame,frameheight);
txtadd(crop,'0|',get(ypos),'|',get(framewidth),'|',get(frameheight));
delayedcall(0.03, if(loaded, hotspot_animate() ) );
</action>
Display More
actions executed onstart:
Code
<action name="startup">
loadscene(get(scene[0].name), null, MERGE);
playsound(bgsnd, 'media/047.mp3', 0);
if(scene.count GT 1, buildthumbs(); );
set(step,1);
autotour();
set(idletime,20);
set(events.onidle, autotour() );
</action>
Thank you!!