home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Classicos / 4_ball_pong.swf / scripts / frame_4 / DoAction.as
Encoding:
Text File  |  2007-04-02  |  1.1 KB  |  66 lines

  1. amp = 1.01 + va / 100 * 0.12;
  2. i = 1;
  3. while(i <= c)
  4. {
  5.    _root["lf" + i].removeMovieClip();
  6.    i++;
  7. }
  8. b1._x = 585;
  9. b2._x = 15;
  10. stop();
  11. if(stt == 1)
  12. {
  13.    stt = 3;
  14.    t1 = getTimer();
  15. }
  16. cu.startDrag(true);
  17. Mouse.hide();
  18. this.onEnterFrame = function()
  19. {
  20.    _xmouse = 300;
  21.    if(Key.isDown(77))
  22.    {
  23.       if(bic == 1)
  24.       {
  25.          bic = 2;
  26.          mm++;
  27.          if(mm == 2)
  28.          {
  29.             m1.stop();
  30.             m2.start(0,100);
  31.          }
  32.          if(mm == 1)
  33.          {
  34.             m1.start(0,100);
  35.          }
  36.          if(mm == 3)
  37.          {
  38.             m2.stop();
  39.             mm = 0;
  40.          }
  41.       }
  42.    }
  43.    else
  44.    {
  45.       bic = 1;
  46.    }
  47.    if(_root._currentframe == 4)
  48.    {
  49.       t = getTimer() - t1;
  50.       t = Math.floor(t / 1000);
  51.       min = Math.floor(t / 60);
  52.       sec = t - min * 60;
  53.       nmin = min;
  54.       nsec = sec;
  55.       if(min < 10)
  56.       {
  57.          nmin = "0" + min;
  58.       }
  59.       if(sec < 10)
  60.       {
  61.          nsec = "0" + sec;
  62.       }
  63.       string = nmin + " : " + nsec;
  64.    }
  65. };
  66.