Penner Equation Need Help!

I am trying to implement a penner equation. Want my menu to ease int its position. However I am having no luck.

Here is the Penner equation and my implementation try.

[AS]

// IMMEDIATELY BELOW IS MY IMPLEMENTATION
MovieClip.prototype.linearTween2 = function(endx, endy, duration, startingx, startingy) {
var t;
this.onEnterFrame = function() {
if (t++<duration) {
var x = Math.abs(endx-startingx) * ((t = t/duration-1)t((s+1)*t+s)+1)+ startingx, y = Math.abs(endy-startingy) * ((t = t/duration-1)t((s+1)*t+s)+1)+ startingy;

                    this._x += x;
                    //this._y += y;
            } else {
                    delete this.onEnterFrame;
            }
    }

}

// BELOW IS THE PENNER EQUATION

// back easing out - moving towards target, overshooting it slightly, then reversing and coming back to target
// back easing in - backtracking slightly, then reversing direction and moving to target
// t: current time, b: beginning value, c: change in value, d: duration, s: overshoot amount (optional)
// t and d can be in frames or seconds/milliseconds
// s controls the amount of overshoot: higher s means greater overshoot
// s has a default value of 1.70158, which produces an overshoot of 10 percent
// s==0 produces cubic easing with no overshoot
Math.easeOutBack = function (t, b, c, d, s) {
if (s == undefined) s = 1.70158;
return c*((t=t/d-1)t((s+1)*t + s) + 1) + b;
}

[/AS]

bump!

If you just want it to ease to a location why don’t you just use a basic easing equation?

http://www.kirupa.com/developer/mx/followease.htm
http://www.kirupa.com/developer/mx/easing_mouseclick.htm

Oh and…

http://www.kirupaforum.com/forums/showthread.php?s=&threadid=23766

Well trying to get the tweening to go past the target area and come back. this can be done with the Penner Equation. Since this is one of his more difficult ones, I think once i have mastered it i will be able to apply other equations.