Hi,
I'm trying to hide and unhide a groupe a Hotspot with a Tag.
Here is my code :
I creat the Action
Code
<action name="hideHotSpotsNiveau1">
for(set(i,0), i LT hotspot.count, inc(i),
if(hotspot[get(i)].tag == hs,
set(hotspot[get(i)].visible,false);
);
);
</action>
I creat a button that will hide and unhide the Groupe of Hostpot
Code
<layer name="Hotspotsniveau1" url="images/user_male.png" align="leftttop" x="5" y="150" scale="0.5" keep="true" zorder="-1" onclick="switch(hideHotSpotsNiveau1)"/>
I creat a hotspot with the Tag
Code
<hotspot name="spot4" style="skin_hotspotstyle" ath="5.307" atv="19.451" linkedscene="scene_villa-suar1" tag="hs" visible=""/>
Thanks a lot for your help and feedback. :)