# Determining direction of Mouse Movement

**URL:** https://forum.kirupa.com/t/determining-direction-of-mouse-movement/46026
**Category:** flash
**Created:** [March 20, 2004, 9:54am UTC](https://forum.kirupa.com/t/determining-direction-of-mouse-movement/46026 "2004-03-20T09:54:25Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Danneman](https://avatars.discourse-cdn.com/v4/letter/d/b19c9b/32.png) [@Danneman](https://forum.kirupa.com/u/Danneman)
#### Post date: [March 20, 2004, 9:54am UTC](https://forum.kirupa.com/t/determining-direction-of-mouse-movement/46026/1 "2004-03-20T09:54:25Z")

</div>

Hi,

Is there a way to determine the direction in which the mouse-cursor is moving (up/down)?

Kinda like a constant listener, or something.

I only know about the onMouseMove-function, but it doesnt seem to come with parameters for direction.

Maby there is something that can be done with the:

\_ymouse

…parameter. Something similar to:

\_ymouse ++;

…to indicate the mouse-cursor is moving downwards.

Thanks
