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.