📄 bounce.as
字号:
class mx.transitions.easing.Bounce
{
function Bounce()
{
} // End of the function
static function easeOut(t, b, c, d)
{
t = t / d;
if (t / d < 3.636364E-001)
{
return (c * (7.562500E+000 * t * t) + b);
}
else if (t < 7.272727E-001)
{
t = t - 5.454545E-001;
return (c * (7.562500E+000 * (t - 5.454545E-001) * t + 7.500000E-001) + b);
}
else if (t < 9.090909E-001)
{
t = t - 8.181818E-001;
return (c * (7.562500E+000 * (t - 8.181818E-001) * t + 9.375000E-001) + b);
}
else
{
t = t - 9.545455E-001;
return (c * (7.562500E+000 * (t - 9.545455E-001) * t + 9.843750E-001) + b);
} // end else if
} // End of the function
static function easeIn(t, b, c, d)
{
return (c - mx.transitions.easing.Bounce.easeOut(d - t, 0, c, d) + b);
} // End of the function
static function easeInOut(t, b, c, d)
{
if (t < d / 2)
{
return (mx.transitions.easing.Bounce.easeIn(t * 2, 0, c, d) * 5.000000E-001 + b);
}
else
{
return (mx.transitions.easing.Bounce.easeOut(t * 2 - d, 0, c, d) * 5.000000E-001 + c * 5.000000E-001 + b);
} // end else if
} // End of the function
static var version = "1.1.0.52";
} // End of Class
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -