home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Classicos / 4_ball_pong.swf / scripts / frame_5 / DoAction.as
Encoding:
Text File  |  2007-04-02  |  496 b   |  28 lines

  1. stop();
  2. b1._x = 575;
  3. b2._x = 25;
  4. lose = false;
  5. Mouse.hide();
  6. t1 = getTimer();
  7. this.onEnterFrame = function()
  8. {
  9.    if(_root._currentframe == 5)
  10.    {
  11.       t = getTimer() - t1;
  12.       t = Math.floor(t / 1000);
  13.       min = Math.floor(t / 60);
  14.       sec = t - min * 60;
  15.       nmin = min;
  16.       nsec = sec;
  17.       if(min < 10)
  18.       {
  19.          nmin = "0" + min;
  20.       }
  21.       if(sec < 10)
  22.       {
  23.          nsec = "0" + sec;
  24.       }
  25.       string = nmin + " : " + nsec;
  26.    }
  27. };
  28.