A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: how to get mouseposition

  1. #1

    how to get mouseposition

    can someone help me,is there an action to get my position of my mouse?
    FrEaKiNg

  2. #2
    Opal Technologies aqeel's Avatar
    Join Date
    Apr 2001
    Location
    England
    Posts
    267
    //X-cordinates
    xmouse = _root._xmouse;

    //y-cordinates
    ymouse = _root._ymouse;


    thats it
    "I have seen the movement of the sinews of the sky
    And the blood coursing in the veins of the moon"

  3. #3
    Senior Member pellepiano's Avatar
    Join Date
    Feb 2000
    Location
    Stockholm, Sweden
    Posts
    15,151
    Put this on a MC.

    onClipEvent(enterFrame){
    _root.my=_root._ymouse;
    _root.mx=_root._xmouse;
    }

    If you make dynamic textfields in the main timelin called mx and my you should see the coordinates.

    -Pelle Piano
    // Image Gallery
    www.studiobild.com
    // Photo Blog
    http://talesofthepixel.blogspot.com

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