home *** CD-ROM | disk | FTP | other *** search
/ Champak 50 / Volume 50 - JOGO DISK .iso / Games / mallcrawl.swf / scripts / __Packages / mx / transitions / easing / Regular.as < prev   
Encoding:
Text File  |  2007-09-28  |  495 b   |  24 lines

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