# Motion tween with AS

**URL:** <https://forum.kirupa.com/t/motion-tween-with-as/139382>\
**Category:** Uncategorized\
**Created:** [March 2, 2005, 4:36pm UTC](https://forum.kirupa.com/t/motion-tween-with-as/139382 "2005-03-02T16:36:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![projectbios](https://avatars.discourse-cdn.com/v4/letter/p/e95f7d/32.png) [@projectbios](https://forum.kirupa.com/u/projectbios)\
**Post date:** [March 2, 2005, 4:36pm UTC](https://forum.kirupa.com/t/motion-tween-with-as/139382/1 "2005-03-02T16:36:46Z")

</div>

Ok, im trying to grasp how functions and motion tweening works.

Heres my question. How do i make an object move along the y axis once it has reached its x axis target?

HEre is the code, that i got from here.

and what in this code is making the MC ease out?

```auto

MovieClip.prototype.move = function() {
endX = 202;
this._x += Math.round((endX-this._x) >> 1);
 
delete this.onEnterFrame;
};

```
