# Easing tutorial. Why isn't it working?

**URL:** https://forum.kirupa.com/t/easing-tutorial-why-isnt-it-working/229163
**Category:** flash
**Created:** [June 14, 2007, 4:11pm UTC](https://forum.kirupa.com/t/easing-tutorial-why-isnt-it-working/229163 "2007-06-14T16:11:08Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![AgentOrange](https://avatars.discourse-cdn.com/v4/letter/a/edb3f5/32.png) [@AgentOrange](https://forum.kirupa.com/u/AgentOrange)
#### Post date: [June 14, 2007, 4:11pm UTC](https://forum.kirupa.com/t/easing-tutorial-why-isnt-it-working/229163/1 "2007-06-14T16:11:08Z")

</div>

Hi all, I don’t know if I’m doing something fundamentally wrong here but I’m working my way through the Kirupa easing tutorial and NONE of the provided code seems to work! I’m copying and pasting it in to a test FLA and my little grey box is just sitting there. With the first bit of code -

var speed:Number = 2;  
ease = function( what:MovieClip , to:Number ){

what.onEnterFrame = function(){

var distance:Number = to - this.\_x;  
var newDistance:Number = distance / speed;  
this.\_x = to - newDistance;

}

}

I’m told that there’s an error when I try to auto-format. And with the second I get this:

Syntax error.
