Sie sind nicht angemeldet.

Lieber Besucher, herzlich willkommen bei: krpano.com Forum. Falls dies Ihr erster Besuch auf dieser Seite ist, lesen Sie sich bitte die Hilfe durch. Dort wird Ihnen die Bedienung dieser Seite näher erläutert. Darüber hinaus sollten Sie sich registrieren, um alle Funktionen dieser Seite nutzen zu können. Benutzen Sie das Registrierungsformular, um sich zu registrieren oder informieren Sie sich ausführlich über den Registrierungsvorgang. Falls Sie sich bereits zu einem früheren Zeitpunkt registriert haben, können Sie sich hier anmelden.

1

Samstag, 26. Juni 2010, 23:27

Image hotspots changed?

Has anything changed in latest version of KRPano? My working panorama with image hotspots stopped to work properly.
Now hotspots get into strange loop when hovered.
http://www.fototv.pl/newsy/wydarzenia/el…a-reloaded.html
Any help?

Hotspots are defined as

Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
	<hotspot name="hopspot1" 
	         url="hotspot_ani.swf"
	         ath="112" 
	         atv="-7.5"
	         scale="1"
	         zoom="true"
			 onhover="showtext(Podest);"
			 onover="set(url,thm_kotlownia_top.png);tween(scale,0.7);"
			 onloaded="resetsize();"
			 onout="set(url,hotspot_ani.swf);tween(scale,0.5);"						 
			 onclick="action(moveto1);"
			 />

Regards

2

Sonntag, 27. Juni 2010, 00:37

Hi RadioErewan,

Are you sure this code has ever worked with older Krpano versions? I have tried some without success...

It seems that when the onover event is called, the onout event is executed too... Probably because of the changing of the URL...
So, try with this code:

Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
<hotspot name="hopspot1" 
	url="hotspot_ani.swf"
	ath="112" 
	atv="-7.5"
	scale="1"
	zoom="true"
	onhover="showtext(Podest);"
	onover="set(url,thm_kotlownia_top.png); tween(scale,0.7); delayedcall(0.01,set(onout,set(url,button1.png);tween(scale,0.5);set(onout,)));"
	onloaded="resetsize();"
	onout=""						 
	onclick="action(moveto1);"
	/>

Here, there is no onout event... It is set inside the onover event by a delayedcall...

Hope this help.

SAlut.

3

Sonntag, 27. Juni 2010, 00:46

It worked w/o problems. Maybe new flash player verified my code (but it was based on sample from KRPano).
Will check your hint.

Regards

4

Sonntag, 27. Juni 2010, 00:50

Zitat

it was based on sample from KRPano...
Which sample?

5

Sonntag, 27. Juni 2010, 18:28

Hi,

this is a bug in the current version,
I think you are using an example from the 1.0.7 version, there this code was working,

in 1.0.8 the changing the the url and the onover/onout are handled faster, which results in a onout event when the url was changed and the original image was removed for a short time,

this bug/behavior will be fixed in the next release (1.0.8.12),

this would be a workaround for that moment - change the onout event to that:

Quellcode

1
onout="delayedcall(0.1, ifnot(hovering, set(url,'hotspot_ani.swf');tween(scale,0.5); ); );"


best regards,
Klaus

6

Sonntag, 27. Juni 2010, 18:42

Many thanks, works like advertised ;-).