Hello,
I'm trying to change a hotspot status when the panorama is rotating through the hotspots area, i.e. without a click.
So I tried to catch the hlookat and make a condition out of that. First issue was, when I found that hlookat has no limitation in counting up and down. Thats solved according to an older hint of Michel (Thanks again) by using adjusthlookat. Then I rememered, that one can not connect if-conditions so easily, but again I found a solution on that, proposed by Michel (WOW). Nevertheless my action does not work and I don't know why. Any idea?
Code
<events onviewchange= "fader(flip_f)"/>
<action name="fader">
adjusthlookat(view.hlookat);
trace(view.hlookat); #this is returning hlookat between 0 and 360
trace(%1); #this is returning the name of the hotspot to be changed.
if( # this is not working anymore
view.hlookat LT 20 ,
trace(%1);
if(
view.hlookat GT 1 ,
set(hotspot(%1).visible,true);
,
set(hotspot(%1).visible,false);
);
,
set(hotspot(%1).visible,false);
);
</action>
Alles anzeigen
What is wrong with the condition part? Am I too blind to see? any syntax error?
Any help appreciated very much,
All the best,
Michael