# Penner Easing Equation problems

**URL:** https://forum.kirupa.com/t/penner-easing-equation-problems/273537
**Category:** flash
**Created:** [October 16, 2008, 4:01pm UTC](https://forum.kirupa.com/t/penner-easing-equation-problems/273537 "2008-10-16T16:01:06Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![bgosh](https://avatars.discourse-cdn.com/v4/letter/b/e47c2d/32.png) [@bgosh](https://forum.kirupa.com/u/bgosh)
#### Post date: [October 16, 2008, 4:01pm UTC](https://forum.kirupa.com/t/penner-easing-equation-problems/273537/1 "2008-10-16T16:01:06Z")

</div>

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