Skip to main content
Participant
August 12, 2008
Question

Need Explaination About the Code

  • August 12, 2008
  • 2 replies
  • 311 views
Hi All,
I have Piece of Code in AS2, i need help to Explain What is it.

The below are the Sample Codes :

Math.easeInQuart = function (t, b, c, d)
{
var _loc1 = t;
_loc1 = _loc1 / d;
return (c * (_loc1 / d) * _loc1 * _loc1 * _loc1 + b);
};
Math.easeOutQuart = function (t, b, c, d)
{
var _loc1 = t;
_loc1 = _loc1 / d - 1;
return (-c * ((_loc1 / d - 1) * _loc1 * _loc1 * _loc1 - 1) + b);
};
Math.easeInOutQuart = function (t, b, c, d)
{
var _loc1 = t;
_loc1 = _loc1 / (d / 2);
if (_loc1 / (d / 2) < 1)
{
return (c / 2 * _loc1 * _loc1 * _loc1 * _loc1 + b);
} // end if
_loc1 = _loc1 - 2;
return (-c / 2 * ((_loc1 - 2) * _loc1 * _loc1 * _loc1 - 2) + b);
};

I want to know What is the Input to the above function and what will be output ....


Thanks,
Kamalahasan.K


This topic has been closed for replies.

2 replies

kglad
Community Expert
Community Expert
August 12, 2008
use google to search for penner's easing equations. they're freely available. you need not decompile someone elses work.
Inspiring
August 12, 2008
Kamalahasan,

> I want to know What is the Input to the above function
> and what will be output ....

Those look like the early versions of Robert Penner's easing equations.

More information here:

http://www.robertpenner.com/easing/


David Stiller
Adobe Community Expert
Dev blog, http://www.quip.net/blog/
"Luck is the residue of good design."