home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Acao / kung_fu.swf / scripts / __Packages / mx / transitions / easing / Strong.as < prev   
Encoding:
Text File  |  2006-06-13  |  494 b   |  23 lines

  1. class mx.transitions.easing.Strong
  2. {
  3.    function Strong()
  4.    {
  5.    }
  6.    static function easeIn(t, b, c, d)
  7.    {
  8.       return c * (t /= d) * t * t * t * t + b;
  9.    }
  10.    static function easeOut(t, b, c, d)
  11.    {
  12.       return c * ((t = t / d - 1) * t * t * t * t + 1) + b;
  13.    }
  14.    static function easeInOut(t, b, c, d)
  15.    {
  16.       if((t /= d / 2) < 1)
  17.       {
  18.          return c / 2 * t * t * t * t * t + b;
  19.       }
  20.       return c / 2 * ((t -= 2) * t * t * t * t + 2) + b;
  21.    }
  22. }
  23.