Here is my question:
I create a hotspot and I want to add "onout" event to it.
Code
<hotspot
name="spot_a"
style="'hotspot_circle'|tooltip"
ath="180"
atv="0"
scale="0.40"
keep="true"
tooltip="pano 13"
onup="js(getHotspot(get(name),onup))"
onhover="js(getHotspot(get(name),onhover))"
onout="js(getHotspot(get(name),onout))"
>
</hotspot>
Alles anzeigen
and then I set tooltip style like this:
Code
<style name="tooltip"
onover="copy(layer[tooltip].html, tooltip);
set(layer[tooltip].visible, true);
tween(layer[tooltip].alpha, 1.0, 0.5);
asyncloop(hovering, copy(layer[tooltip].x,mouse.stagex); copy(layer[tooltip].y,mouse.stagey); );"
onout="tween(layer[tooltip].alpha, 0.0, 0.25, default, set(layer[tooltip].visible,false), copy(layer[tooltip].x,mouse.stagex); copy(layer[tooltip].y,mouse.stagey); );"
/>
Now, every time I move the mouse out of the hotspot, the getHotspot function will be executed but the tooltip won't disappear anymore. But when I delete "onout" function in hotspot, the tooltip will work perfectly(disappeared when I move out of the hotspot).
Can anyone help me to solve this problem, please?