Thanks for the advice, Andrey. I try to use that function but not succeeded yet. What could be wrong in that code:
|
Source code
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
<hotspot name="close" url="plugins/textfield.swf"
handcursor="true"
selectable="false"
children="false"
width="100" height="20"
ath=".03" atv="-.05"
html="[p]salut[/p]"
css="p{color:#ff0000; font-family:Arial; font-weight:bold; font-size:24; margin-left:5; margin-right:5;}"
background="false"
autosize="center"
alpha=".7"
onclick="js(makeFrame());"
onhover="showtext(spheretoscreen(get('ath'),get('atv')))"
/>
|
The last line (with onhover) displays just the code not screen coordinates values as I expected.
EDIT------------------------------------------------------
it nearly worked but I cannot make showtext display both coordinates but one.
So that worked:
|
Source code
|
1
2
3
4
|
<action name='showCoor'>
spheretoscreen(ath,atv,q,w);
showtext(get(q));
</action>
|
and that not:
|
Source code
|
1
2
3
4
|
<action name='showCoor'>
spheretoscreen(ath,atv,q,w);
showtext(get(q) + ' ' + get(w));
</action>
|
Any ideas?
EDIT-----------------------------------------
I've managed it succesfully:
|
Source code
|
1
2
3
4
5
|
<action name='showCoor'>
spheretoscreen(ath,atv,q,w);
txtadd(e ,get(q),'___',get(w),);
showtext(get(e));
</action>
|
Thank you