# 256 levels of recursion

**URL:** https://forum.kirupa.com/t/256-levels-of-recursion/39572
**Category:** Uncategorized
**Created:** [January 8, 2004, 8:37pm UTC](https://forum.kirupa.com/t/256-levels-of-recursion/39572 "2004-01-08T20:37:01Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Stanley](https://avatars.discourse-cdn.com/v4/letter/s/7ab992/32.png) [@Stanley](https://forum.kirupa.com/u/Stanley)
#### Post date: [January 8, 2004, 8:37pm UTC](https://forum.kirupa.com/t/256-levels-of-recursion/39572/1 "2004-01-08T20:37:01Z")

</div>

“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);
