# Get mouse position relative to screen?

**URL:** https://forum.kirupa.com/t/get-mouse-position-relative-to-screen/304774
**Category:** flash
**Created:** [February 13, 2010, 4:34pm UTC](https://forum.kirupa.com/t/get-mouse-position-relative-to-screen/304774 "2010-02-13T16:34:24Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![brunoja](https://avatars.discourse-cdn.com/v4/letter/b/b38774/32.png) [@brunoja](https://forum.kirupa.com/u/brunoja)
#### Post date: [February 13, 2010, 4:34pm UTC](https://forum.kirupa.com/t/get-mouse-position-relative-to-screen/304774/1 "2010-02-13T16:34:24Z")

</div>

Hello!

I would like to know if there is any way that when mouse leaves screen, the mouse coord from the Main Movie Clip (mouseX and mouseY) keeps updating! Is there any way to get the mouse pos relative to the screen pos?

For example when mouse leaves screen and goes 30 pixels up, its position would be (X,-30)

Thank you!
