You are not logged in.

1

Tuesday, October 16th 2012, 9:31am

Hotspot onclick funtkioniert nicht

Hallo,

ich öffne ein Video(videospot) beim Klick darauf. Zusätzlich wird ein Hotspot(spot3) auf visible=true gesetzt. (soll man ein close Butten werden). Das funktioniert.

Wenn ich aber auf dem neuen Hotspot(spot3)ein visible=false für den Videohotspot setze funktioniert es nicht. Komischerweise wenn ich aus dem onclick ein onover mache funktioniert es.

Wo kann mein Fehler liegen?

<hotspot name="videospot"
url="%SWFPATH%/plugins/videoplayer.swf"
alturl="%SWFPATH%/plugins/videoplayer.js"
videourl="cats-short.m4v"
posterurl="%SWFPATH%/examples/plugin-examples/video-hotspot/poster.jpg"
distorted="true"
ath="0"
atv="0"
edge="center"
scale="0.4"
rx="0"
ry="0"
rz="0"
loop="true"
pausedonstart="true"
directionalsound="true"
range="200"
volume="0.7"
onclick="togglepause();set(hotspot[spot3].visible,true); tween(scale,2); "
/>

<hotspot name="spot3" style="skin_hotspotstyle" visible="false" ath="22.000" atv="30.000" onclick="set(hotspot[videospot].visible,false);" />

egal was ich mache onclick funktioniert nich, onover funktioniert.


gruß sarron

This post has been edited 1 times, last edit by "sarron" (Oct 16th 2012, 10:05am)


2

Wednesday, October 17th 2012, 8:18am

Hi,

das 'onclick' für den Spot3 wird vom 'skin_hotspotstyle' Style geladen und überschreibt damit das angegebene 'onclick'.

Siehe die 'Note' hier:
http://krpano.com/docu/xml/#layer.style

Schöne Grüße,
Klaus

3

Wednesday, October 17th 2012, 9:19am

Danke

Hallo Klaus,

Danke für die Info. Daran habe ich nicht gedacht.

Gruß sarron