# Basic Physics/Easing Question

**URL:** <https://forum.kirupa.com/t/basic-physics-easing-question/241282>\
**Category:** flash\
**Created:** [October 11, 2007, 6:49pm UTC](https://forum.kirupa.com/t/basic-physics-easing-question/241282 "2007-10-11T18:49:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![outshine](https://avatars.discourse-cdn.com/v4/letter/o/49beb7/32.png) [@outshine](https://forum.kirupa.com/u/outshine)\
**Post date:** [October 11, 2007, 6:49pm UTC](https://forum.kirupa.com/t/basic-physics-easing-question/241282/1 "2007-10-11T18:49:16Z")

</div>

Hi Everyone,

I have a basic script that moves a movieclip to the opposite Y position of the mouse pointer:

```auto

var cP = this.createEmptyMovieClip("centerPoint", 1);
cP._x = Stage.width / 2;
cP._y = Stage.height / 2;
var myBox = cP.attachMovie("boxMC", "myBox", 2, {_y:cP._y});
cP.onMouseMove = function() { 
 myBox._y = (cP._ymouse * -0.9);
};

```

Everything works great, but I’d really love to be able to ease the box to it’s Y position, rather than moving it to it’s final position immediately. I’m having a difficult time with it because the box is moved based on the mouse position, which obviously doesn’t ease.

Does anyone have any ideas? I’m attaching the .fla for reference.

Thanks!

Luke
