# Voetsjoeba Ease In?

**URL:** <https://forum.kirupa.com/t/voetsjoeba-ease-in/83844>\
**Category:** flash\
**Created:** [March 22, 2005, 4:14pm UTC](https://forum.kirupa.com/t/voetsjoeba-ease-in/83844 "2005-03-22T16:14:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![novetree](https://avatars.discourse-cdn.com/v4/letter/n/7ab992/32.png) [@novetree](https://forum.kirupa.com/u/novetree)\
**Post date:** [March 22, 2005, 4:14pm UTC](https://forum.kirupa.com/t/voetsjoeba-ease-in/83844/1 "2005-03-22T16:14:51Z")

</div>

I’m using Flash MX

Was wondering if anyone had any ideas on making Voetsjoeba’s golden formula ease “In” (slow to fast)

Here is the code for ease “out” (fast to slow):

```php
MovieClip.prototype.ease = function(x,y){
        this.onEnterFrame = function(){
                this._x = x-(x-this._x)/1.1;
                this._y = y-(y-this._y)/1.1
                if(this._x > x-1 && this._x < x+1 && this._y > y-1 && this._y < y+1){
                        this._x = x;
                        this._y = y;
                        delete this.onEnterFrame
                        //do other stuff here, this is the point at which the object reaches its target
                }
        }
}

```

Mad props to Voetsjoeba by the way.
