256 levels of recursion

“256 levels of recursion were exceeded in one action list.”

I’ve been trying to incorporate one of R.Penners equations into a prototype. it works, but appearantly not 100%

scratch scratch :hr:

Here’s the code. ‘tester’ is an MC instance

Math.easeInOutExpo = function (t, b, c, d) {
if (t==0) return b;
if (t==d) return b+c;
if ((t/=d/2) < 1) return c/2 * Math.pow(2, 10 * (t - 1)) + b;
return c/2 * (-Math.pow(2, -10 * --t) + 2) + b;
};

MovieClip.prototype.Tween = function(t, start, end, duration) {
this.onEnterFrame = function() {
if (t<duration) {
this._x = Math.easeInOutExpo(t, start, end, duration);
t++;
} else {
delete this.onEnterFrame();
};
};
}

tester.Tween(0,100,400,15);