# \[B\]Mouse Position\[/B\]

**URL:** <https://forum.kirupa.com/t/b-mouse-position-b/313737>\
**Category:** flash\
**Created:** [September 8, 2010, 1:10pm UTC](https://forum.kirupa.com/t/b-mouse-position-b/313737 "2010-09-08T13:10:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![phantom2040](https://avatars.discourse-cdn.com/v4/letter/p/e99b99/32.png) [@phantom2040](https://forum.kirupa.com/u/phantom2040)\
**Post date:** [September 8, 2010, 1:10pm UTC](https://forum.kirupa.com/t/b-mouse-position-b/313737/1 "2010-09-08T13:10:30Z")

</div>

Hi everyone

I wonder how to get the mouse’s position relative to the size of the stage and using:

```auto
stage.scaleMode = StageScaleMode.EXACT_FIT;

```

For example with a stage of 400 x 400, the vertical mouse’s position goes (from a corner to another) from 0 to 400. Normal !

But now when I resize my SWF until 800 x 800, the vertical mouse’s position still goes from 0 to 400.

I get the vertical position with

```auto
mouseY

```

and the height of the satge with

```auto
stage.stageHeight

```

How can I get the mouse’s position going from 0 to 800 in this exemple?

Thanx a lot
