# Ease out, not in?

**URL:** <https://forum.kirupa.com/t/ease-out-not-in/163597>\
**Category:** flash\
**Created:** [September 23, 2005, 6:41pm UTC](https://forum.kirupa.com/t/ease-out-not-in/163597 "2005-09-23T18:41:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rhamej](https://avatars.discourse-cdn.com/v4/letter/r/bb73d2/32.png) [@rhamej](https://forum.kirupa.com/u/rhamej)\
**Post date:** [September 23, 2005, 6:41pm UTC](https://forum.kirupa.com/t/ease-out-not-in/163597/1 "2005-09-23T18:41:10Z")

</div>

I know how to easeIn a movieClips property using something like:  
this.\_x+=(Xvalue-this.\_x)/5 so it gradually slows down.  
But what would I use to make it start slow then speed up?  
I am guessing something like:

```auto

var speed =20
this.onEnterframe=function(){
  this._x+=(Xvalue-this._x)/speed
speed--
if(Math.abs(Xvalue-this._x)<1{
 this._x=Xvalue
speed=20
delete this.onEnterFrame
}
}

```

But trying this on multiple mcs and it goes wack because speed is constantly changing. How can I declare the speed var for each onEnterFrame?  
Or if you now of a better way, please enlighten me 🙂

Josh
