I often use that code in order to set the transparency angle for my hotspot:
Code
<settings transparent_angle="45"/>
<events name="transparent_active" keep="true" onviewchanged="transparent_active"/>
<action name="transparent_active" scope="local">
getlooktodistance(current_angle, hotspot[logo].ath, hotspot[logo].atv);
clamp(current_angle, 0, get(settings.transparent_angle));
set(current_angle_90, calc( current_angle * (90 / settings.transparent_angle) ));
set(current_angle_90_rad, calc( current_angle_90 / 180 * Math.PI ));
if(current_angle_90 LT 90,
Math.cos(transparent_coeff, current_angle_90_rad);
,
set(transparent_coeff, 0);
);
set(hotspot[logo].alpha, get(transparent_coeff));
trace(hotspot[logo].alpha);
</action>
Display More
I all my Tour works without problems, but I have noticed that if I add the Tooltip plugin there is some conflict between the codes and my hotspots remains invisible, no matter which value of transparency I insert...
Can someone give me an help , please?
Thanks
Luca