# Adding easing to an mc that is replacing the mouse

**URL:** <https://forum.kirupa.com/t/adding-easing-to-an-mc-that-is-replacing-the-mouse/226200>\
**Category:** flash\
**Created:** [May 18, 2007, 7:03pm UTC](https://forum.kirupa.com/t/adding-easing-to-an-mc-that-is-replacing-the-mouse/226200 "2007-05-18T19:03:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![thinkpixels](https://avatars.discourse-cdn.com/v4/letter/t/838e76/32.png) [@thinkpixels](https://forum.kirupa.com/u/thinkpixels)\
**Post date:** [May 18, 2007, 7:03pm UTC](https://forum.kirupa.com/t/adding-easing-to-an-mc-that-is-replacing-the-mouse/226200/1 "2007-05-18T19:03:54Z")

</div>

Swapping the cursor for an MC and then attaching that to the mouse for a game I’m buiding. Looking to see if there is way to add some easing to the mouse movement. Most examples i see here list a target and dividing that by 2, but in this case there is no target since its \_x, \_y is set by mouse position. Thanks.

```auto
Mouse.hide()
this.my_mc.onEnterFrame = function(){
this._x = _xmouse
this._y = _ymouse

```
