Hi everybody,
I was wondering if there is a mathematical way (i use as3 to add hotspot) to convert an hotspot point (ath,atv), to http://hotspot.ox/oy coordinates.
What I want to achieve is to convert a polyhotspot square (multipoint) to a hotspot with ox,oy,edge,with,height parameters
for example i have this code that i want to be transformed:
...
<hotspot name="hs1" fillcolor="0xf40c0c" fillcolorhover="0xf40c0c" fillalpha="0.9" fillalphahover="0.0" bordercolor="0xffff00" borderalphahover="0.0">
<point ath="7.8" atv="-1.7" />
<point ath="14.4" atv="-1.7" />
<point ath="14.4" atv="4.3" />
<point ath="7.8" atv="4.3" />
</hotspot>
...
TO (for front cubeface)
...
<hotspot name="hs2" url="something.jpg" ath="0.0" atv="0.0" edge="lefttop" ox="?" oy="?" width="?" height="?" />
...
Any help will be lovely appreciated
Regards,
Julien