Sie sind nicht angemeldet.

1

Dienstag, 17. März 2015, 16:17

hotspot not working, only after click anywhere on pano

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:

Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<!-- 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>

actions executed onstart:

Quellcode

1
2
3
4
5
6
7
8
9
<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!!

2

Dienstag, 17. März 2015, 16:20

can I move this question to general Panorama viewer?

It's not a problem of HTML5 viewer... sry