# onMouseMove Question

**URL:** <https://forum.kirupa.com/t/onmousemove-question/200235>\
**Category:** flash\
**Created:** [September 10, 2006, 1:22pm UTC](https://forum.kirupa.com/t/onmousemove-question/200235 "2006-09-10T13:22:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![killer2051](https://avatars.discourse-cdn.com/v4/letter/k/bc8723/32.png) [@killer2051](https://forum.kirupa.com/u/killer2051)\
**Post date:** [September 10, 2006, 1:22pm UTC](https://forum.kirupa.com/t/onmousemove-question/200235/1 "2006-09-10T13:22:13Z")

</div>

I am using this code to slide through frames in my swf by waving my mouse back and forth:

\_root.onMouseMove = function() {  
moveForward.gotoAndStop(Math.ceil(\_xmouse/10)); }

I would like it though to start from east to west insted of the other way around so when i move to the east my frames go forward. i cant figure it out at the moment. would appreciate some help. thankyou in advance
