Hello, I'm trying to make a moving layer [tag] match the position of a series of hotspots on the onover event, for that I'm using a style with:
Code
onover="spheretoscreen(hotspot[get(name)].ath,hotspot[get(name)].atv,layer[tag].x,layer[tag].y);"
It mostly works well, but when the hotspots are located nearer to the edge of the screen then the center of the layer and the hotspot begin to proportionally mismatch, it actually starts to go beyond depending on the side the hotspot is in (or up or down), I'm posting three images so you understand the problem.
My question is, is there any way to correct this mismatching alignment, I'd like to see the layer centered right on the hotspot no matter where in the screen it is.
Thank you