You are not logged in.

1

Saturday, June 26th 2010, 11:27pm

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

Source code

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

michel

Professional

Posts: 1,153

Location: ANDORRA

Occupation: TV

  • Send private message

2

Sunday, June 27th 2010, 12:37am

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:

Source code

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

Sunday, June 27th 2010, 12:46am

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

michel

Professional

Posts: 1,153

Location: ANDORRA

Occupation: TV

  • Send private message

4

Sunday, June 27th 2010, 12:50am

Quoted

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

5

Sunday, June 27th 2010, 6:28pm

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:

Source code

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


best regards,
Klaus

6

Sunday, June 27th 2010, 6:42pm

Many thanks, works like advertised ;-).