A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: Find Mouse Position Within Circle

Threaded View

  1. #1
    Challenging Convention Andology's Avatar
    Join Date
    May 2001

    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:

    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,

    Last edited by Andology; 07-30-2008 at 07:15 PM.
    The Andology Corporation Ltd
    Challenging Convention
    Fusion of Business & Technology

    Joop Media - The Final Link In The Chain

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Click Here to Expand Forum to Full Width

HTML5 Development Center