Penner Easing Equation problems

I have a actionscript 2 file that I am trying to perform some of the penner easing equations; however, everytime I try to publish the file it spits out this error "There is no property with the name ‘easeOutElastic’. But when I am in the code window and I check for actionscript errors it displays that I have no errors. The errors only happen when I export the file. Is this the way I am calling the easing functions? Thanks for your help.

function onRelease()
{
this.stopDrag();
this.begin = this._x;
this.change = -begin;
this.duration = 16;
this.time = 0;
this.onEnterFrame = function ()
{
++this.time;
if (this.time < this.duration)
{
this._x = Math.easeOutElastic(this.time, this.begin, this.change, this.duration, 5, 5);
}
else
{
delete this.onEnterFrame;
} // end else if
};
} // End of the function
function onReleaseOutside()
{
onRelease();
} // End of the function
var begin;
var change;
var duration;
Number;
var time;
Math.easeOutElastic = function (t, b, c, d, a, p)
{
if (t == 0)
{
return (b);
} // end if
t = t / d;
if (t == 1)
{
return (b + c);
} // end if
if (!p)
{
p = d * 3.000000E-001;
} // end if
if (a < Math.abs©)
{
a = c;
var _loc7 = p / 4;
}
else
{
_loc7 = p / 6.283185E+000 * Math.asin(c / a);
} // end else if
return (a * Math.pow(2, -10 * t) * Math.sin((t * d - _loc7) * 6.283185E+000 / p) + c + b);
};
}