home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Puzzle / PuzzlePuzzle.swf / scripts / frame_449 / DoAction_2.as next >
Encoding:
Text File  |  2005-08-05  |  1.7 KB  |  77 lines

  1. if(80 - stime < time)
  2. {
  3.    sssb();
  4.    sss();
  5.    time = 0;
  6.    stime = stime + 2 + guan;
  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.       char1.gotoandplay("lose");
  38.       char2.gotoandplay("win");
  39.       p2k.gotoandplay(2);
  40.       man.gotoandplay("lose");
  41.       sound.gotoandplay("clear");
  42.       manb.gotoandplay("win");
  43.       gotoAndPlay(560);
  44.    }
  45.    else if(b[ai][10] != 0)
  46.    {
  47.       i = 10;
  48.       while(i >= 0)
  49.       {
  50.          j = 7;
  51.          while(j >= 0)
  52.          {
  53.             removeMovieClip("gb" add (i * 8 + j));
  54.             removeMovieClip("gg" add (i * 8 + j));
  55.             j--;
  56.          }
  57.          i--;
  58.       }
  59.       cheng += 1;
  60.       attachMovie("lose","lose1",1);
  61.       setProperty(lose1, _X, 489);
  62.       setProperty(lose1, _Y, 256);
  63.       cheng += 1;
  64.       attachMovie("win","win1",2);
  65.       setProperty(win1, _X, 160);
  66.       setProperty(win1, _Y, 256);
  67.       char1.gotoandplay("win");
  68.       char2.gotoandplay("lose");
  69.       man.gotoandplay("win");
  70.       manb.gotoandplay("lose");
  71.       sound.gotoandplay("clear");
  72.       p1k.gotoandplay(2);
  73.       gotoAndPlay(453);
  74.    }
  75.    ai++;
  76. }
  77.