Hello,
I'd like to add a hovering effect (alpha, scale) to the standard tour arrow hotspots.
The original code is this one:
Code
<style name="skin_hotspotstyle" url="vtourskin_hotspot.png" scale="0.5" edge="top" oy="0" distorted="false"
tooltip=""
onclick="if(linkedscene, skin_hidetooltips(); tween(scale,0.25,0.5); tween(oy,-20,0.5); tween(alpha,0,0.5); looktohotspot(); loadscene(get(linkedscene),null,MERGE,BLEND(1)); skin_updatescroll(); );"
onloaded="if(skin_settings.tooltips_hotspots, if(linkedscene, copy(tooltip,scene[get(linkedscene)].title); loadstyle(skin_tooltips); ));"
/>
And this is, what I tried to add, without effect:
Code
<style name="skin_hotspotstyle" url="vtourskin_hotspot.png" alpha="0.7" scale="0.5" edge="top" oy="0" distorted="false"
tooltip=""
onover="tween(alpha,1);"
onout="tween(alpha,0.7);"
onclick="if(linkedscene, skin_hidetooltips(); tween(scale,0.25,0.5); tween(oy,-20,0.5); tween(alpha,0,0.5); loadscene(get(linkedscene),null,MERGE,BLEND(1)); skin_updatescroll(); );"
onloaded="if(skin_settings.tooltips_hotspots, if(linkedscene, copy(tooltip,scene[get(linkedscene)].title); loadstyle(skin_tooltips); ));"
/>
However, another hotspot for detailed text information is working quite nicely with this code:
Code
<style name="details-hs" tag="hs" distorted="false"
url="text.png" onover="tween(scale,1); tween(alpha,1);"
onout="tween(scale,0.8); tween(alpha,0.7);" alpha="0.7" scale="0.8"
zorder="1" />
Strange enough, adding
is at least tweening the alpha to 1 as expected, but that does not help any further, because it doesn't tween back when leaving the hotspot.
Why is this simple onver/onout working in the one example, but not in the other one??? Why is hover working but not onover/onout?
Any help appreciated very much,
Yours,
Michael