i'm trying to add hotspot at mouse clicked coordinates.
i tried
|
Source code
|
1
2
3
4
5
6
7
8
9
|
<action name="click1" > showlog(true);
addhotspot(newspot);
screentosphere(mouse.x,mouse.y,toh, tov);
trace(toh); trace(tov);
set(hotspot[newspot].url,q.mark.png);
set(hotspot[newspot].ath,toh);
set(hotspot[newspot].atv,tov);
set(hotspot[newspot].onclick, removehotspot(newspot) );
</action>
|
it's not working for me.but if i replace toh and tov with values then it works perfectly.what could be the problem?? from logs
toh and tov have correct values