A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: get mouse position

  1. #1
    Junior Member
    Join Date
    Oct 2001
    Posts
    8

    Question

    sorry, but how do you get the mouse position?
    I currently use a dumb way: I create a drag movie clip (sometimes a void drag movie clip) and then get the position of that movie clip as the mouse position. I am just wondering whether there is a one line command for it. Thanks.

  2. #2
    Senior Member webcorps's Avatar
    Join Date
    Jul 2000
    Posts
    264
    there is go to flashguru's site i think it is flashguru.co.uk

  3. #3
    Member
    Join Date
    Oct 2001
    Posts
    44

    Cow Icon

    In Flash 5 it lokks like this:

    Code:
    mouseX = _root._xmouse; // X coord. in _root
    mouseY = _root._ymouse; // Y coord. in _root
    and You have some other mouse actions like :
    Mouse.hide();
    Mouse.show();

    ZeroIQ



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