hello there,
i would like to know how i can hide hotspot with scene name attribute ?
i'v add some hotspot dynamicly, and i've get the scene name and pluged it into the tag of these hotspot.
ex:
hs1 => get(xml.scene) => add these to TAG => scene1
hs2 =>... scene1
hs3 = scene2
hs4 = scene2
At the moments all these hotspot are visible on each scene...
I would like to know how i can do to set visible only these witch have the same scene name ?
if i'm on the scene 1 i only want to see these who have scene_name = scene1
i have used get(xml.scene) to write the scene name onmy hotspot ...
Code
<action name="hidehotspots"> for(set(i,0), i LT hotspot.count, inc(i), if(hotspot[get(i)].tag == get(xml.scene), set(hotspot[get(i)].visible,false); ); </action>
but i don't think it's a good way...
regards