home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Puzzle / PuzzlePuzzle.swf / scripts / frame_660 / DoAction.as
Encoding:
Text File  |  2005-08-05  |  1.5 KB  |  73 lines

  1. if(180 - stime < time)
  2. {
  3.    sssb();
  4.    sss();
  5.    time = 0;
  6.    stime += 10;
  7.    if(stime >= 60)
  8.    {
  9.       stime = 60;
  10.    }
  11. }
  12. ai = 0;
  13. while(ai < 8)
  14. {
  15.    if(a[ai][10] != 0)
  16.    {
  17.       i = 10;
  18.       while(i >= 0)
  19.       {
  20.          j = 7;
  21.          while(j >= 0)
  22.          {
  23.             removeMovieClip("gb" add (i * 8 + j));
  24.             removeMovieClip("gg" add (i * 8 + j));
  25.             j--;
  26.          }
  27.          i--;
  28.       }
  29.       cheng += 1;
  30.       attachMovie("lose","lose1",1);
  31.       setProperty(lose1, _X, 160);
  32.       setProperty(lose1, _Y, 256);
  33.       cheng += 1;
  34.       attachMovie("win","win1",2);
  35.       setProperty(win1, _X, 489);
  36.       setProperty(win1, _Y, 256);
  37.       man.gotoandplay("lose");
  38.       manb.gotoandplay("win");
  39.       sound.gotoandplay("clear");
  40.       p2w++;
  41.       gotoAndPlay(662);
  42.    }
  43.    else if(b[ai][10] != 0)
  44.    {
  45.       i = 10;
  46.       while(i >= 0)
  47.       {
  48.          j = 7;
  49.          while(j >= 0)
  50.          {
  51.             removeMovieClip("gb" add (i * 8 + j));
  52.             removeMovieClip("gg" add (i * 8 + j));
  53.             j--;
  54.          }
  55.          i--;
  56.       }
  57.       cheng += 1;
  58.       attachMovie("lose","lose1",1);
  59.       setProperty(lose1, _X, 489);
  60.       setProperty(lose1, _Y, 256);
  61.       cheng += 1;
  62.       attachMovie("win","win1",2);
  63.       setProperty(win1, _X, 160);
  64.       setProperty(win1, _Y, 256);
  65.       man.gotoandplay("win");
  66.       sound.gotoandplay("clear");
  67.       p1w++;
  68.       manb.gotoandplay("lose");
  69.       gotoAndPlay(662);
  70.    }
  71.    ai++;
  72. }
  73.