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

  1. stop();
  2. gggg.onRelease = function()
  3. {
  4.    _root.getURL("http://www.gamegarage.co.uk");
  5. };
  6. i = 1;
  7. while(i <= 5)
  8. {
  9.    _root["lf" + i]._visible = false;
  10.    _root["cf" + i]._visible = false;
  11.    i++;
  12. }
  13. if(c == 5)
  14. {
  15.    ttt1 = "Computer wins..";
  16.    sym.gotoAndStop(2);
  17. }
  18. else if(va < 100)
  19. {
  20.    sym.gotoAndStop(1);
  21.    ttt1 = "U win!! try wining the hardest mode..";
  22. }
  23. else if(va == 100)
  24. {
  25.    sym.gotoAndStop(3);
  26.    ttt1 = "U win!! Very nice!";
  27. }
  28. t21 = 12;
  29. win = 44;
  30. c = 0;
  31. p = 0;
  32. Mouse.show();
  33. this.onEnterFrame = function()
  34. {
  35.    if(Key.isDown(77))
  36.    {
  37.       if(bic == 1)
  38.       {
  39.          bic = 2;
  40.          mm++;
  41.          if(mm == 2)
  42.          {
  43.             m1.stop();
  44.             m2.start(0,100);
  45.          }
  46.          if(mm == 1)
  47.          {
  48.             m1.start(0,100);
  49.          }
  50.          if(mm == 3)
  51.          {
  52.             m2.stop();
  53.             mm = 0;
  54.          }
  55.       }
  56.    }
  57.    else
  58.    {
  59.       bic = 1;
  60.    }
  61. };
  62.