Find Mouse Position Within Circle
Hi Guys,
K, this is really doing me in, and i know it'll be easy for you geniuses ;)
I have a circle, of which the outer ring is a button, i need to know (as a percentage) where the mouse was clicked within that active area.
Here is an illustration:
http://www.andology.com/remote_image...ion_Circle.gif
The whole circle will be inside a clip and the actual circle may vary in size so ideally i need it to know it's own _width and tell me where the mouse clicked as a percentage between points A & B. Also, it must be able to work when clicking at any point in the circle (top, bottom, left, right etc.)
LOL, after 3 or 4 hours of trial & error trying it with pure Math, i was tempted to just say "F*** It" and make 100 individual progressively larger rings, make them buttons and name them 0-99 ;)
It seems like a really easy thing to do, but i am really struggling with it.
I would really appreciate any help.
Thanks in advance,
Andy