# Record Mouse Position

**URL:** <https://forum.kirupa.com/t/record-mouse-position/318068>\
**Category:** flash\
**Created:** [January 10, 2011, 12:50am UTC](https://forum.kirupa.com/t/record-mouse-position/318068 "2011-01-10T00:50:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![na\_il](https://avatars.discourse-cdn.com/v4/letter/n/bc79bd/32.png) [@na\_il](https://forum.kirupa.com/u/na_il)\
**Post date:** [January 10, 2011, 12:50am UTC](https://forum.kirupa.com/t/record-mouse-position/318068/1 "2011-01-10T00:50:51Z")

</div>

I want to record the mouse’s position on stage on entering the stage with out having to move the mouse.

\*\*In example:

I want to have an event occur only if the \*\ ***mouse Y position is greater than 200 when entering the stage.**

The only way i know to do is is setting up a MOUSE\_MOVE type, mouse event.

**here is my code:**

var Timer\_Down2:Timer = new Timer(10000)

stage.addEventListener(Event.ENTER\_FRAME, slider\_down);

function slider\_down(event):void{

if (slider.y == (((stage.height - bottom\_banner.height) +.5) && (mouseY\<(stage.height -(slider.height + bottom\_banner.height))))){  
Timer\_Down2.addEventListener(TimerEvent.TIMER, slider\_down2);  
Timer\_Down2.start();  
trace(mouseY);  
}

}

thnx in advance
