# Regarding tweening from Voetsjoeba (Beginner)

**URL:** https://forum.kirupa.com/t/regarding-tweening-from-voetsjoeba-beginner/190878
**Category:** flash
**Created:** [June 15, 2006, 10:12am UTC](https://forum.kirupa.com/t/regarding-tweening-from-voetsjoeba-beginner/190878 "2006-06-15T10:12:39Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![gabi\_cavaller](https://avatars.discourse-cdn.com/v4/letter/g/d07c76/32.png) [@gabi\_cavaller](https://forum.kirupa.com/u/gabi_cavaller)
#### Post date: [June 15, 2006, 10:12am UTC](https://forum.kirupa.com/t/regarding-tweening-from-voetsjoeba-beginner/190878/1 "2006-06-15T10:12:39Z")

</div>

Right, this code i borrowed from this forum from a person called Voetsjoeba. .

I dont know how to use it properly, how do i reference the movieclip.? The function is called MovieClip and i thought that you refered to the MovieClip instance by calling it “MC”

I dont know, please help me understand this a bit further.

I have put it on the main timeline on frame one.  
And its not working.

Many thanks in advanced and kind regards, Gabriel.  
[LEFT]

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  
}  
}  
}  
MC.ease(100,100);[/LEFT]  
[/QUOTE]
