# Mouse Ease on axis

**URL:** <https://forum.kirupa.com/t/mouse-ease-on-axis/164190>\
**Category:** flash\
**Created:** [September 29, 2005, 6:41am UTC](https://forum.kirupa.com/t/mouse-ease-on-axis/164190 "2005-09-29T06:41:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pharoh32](https://avatars.discourse-cdn.com/v4/letter/p/f6c823/32.png) [@Pharoh32](https://forum.kirupa.com/u/Pharoh32)\
**Post date:** [September 29, 2005, 6:41am UTC](https://forum.kirupa.com/t/mouse-ease-on-axis/164190/1 "2005-09-29T06:41:53Z")

</div>

I looked at the ‘mouse follow with easing’ tutorial. [http://www.kirupa.com/developer/mx/followease.htm](http://www.kirupa.com/developer/mx/followease.htm)

Can someone help me with modifying the code. I’m not sure how to restrict it to one axis and set boundaries. I only want it to move along the x-axis.

```auto
 
onClipEvent (load) {
 _x = 0;
 _y = 0;
 speed = 5;
}

```
