Hi,
I want to set a variable of a javascript file from the xml file when i click on a hotspot.
But i dont know how to do this
Edit :
Here is a part of my code :
Code
<hotspot name="hs1" onclick="opendoor()" style="poly2" capture="false">
<point ath="120.897627" atv="-19.346698" />
<point ath="85.850566" atv="-17.347798" />
<point ath="86.333379" atv="45.537488" />
<point ath="119.321533" atv="49.184573" />
</hotspot>
<action name="opendoor">
js( alert('hello') );tween(hotspot[porte].alpha,1.0);tween(sound[portesound].volume,0.5);set(hotspot[hs1].onclick,closedoor())
</action>
Alles anzeigen