home *** CD-ROM | disk | FTP | other *** search
/ Champak 48 / cdrom_image.iso / Games / bobsleddin.swf / scripts / __Packages / Flash.as < prev    next >
Encoding:
Text File  |  2007-09-28  |  528 b   |  24 lines

  1. class Flash
  2. {
  3.    static var TimeoutsCreated = 0;
  4.    function Flash()
  5.    {
  6.    }
  7.    static function setTimeout(fn, timeout)
  8.    {
  9.       Flash.TimeoutsCreated = Flash.TimeoutsCreated + 1;
  10.       return arguments.id = setInterval(Flash.callTimeout,timeout,arguments);
  11.    }
  12.    static function clearTimeout(id)
  13.    {
  14.       clearInterval(id);
  15.    }
  16.    static function callTimeout(data)
  17.    {
  18.       clearInterval(data.id);
  19.       var _loc2_ = data[0];
  20.       data = data.splice(2);
  21.       _loc2_.apply(null,data);
  22.    }
  23. }
  24.