A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Mouse tracking methods

  1. #1
    I need some sort of method to track the coordinates of the mouse. I've tried the drag movie clip method, but the refresh rate on the coordinates is only as fast as the time it takes to loop through two frames. Also, when the mouse is moved outside the movie the movie clip gets stuck on the edge, which creates some problems w/ what I'm trying to do. Is there any other way to track the coordinates of the mouse. Or if it is inside or outside the movie??

  2. #2
    Senior Moderator
    Join Date
    Apr 2000
    Location
    Sheffield, UK
    Posts
    3,881
    Not really no!!

    The best and most efficient way is to drag a movieclip Start Drag("mcname") and inside the movieclip on the first frame you have:

    set variable:"/:my_x" = _x
    set variable:"/:my_y" = _y

    then on the second frame put:

    Go To And Play(1)


    Hope that helps!!
    Regards FlashGuru

  3. #3
    I see... thanks FlashGuru!

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