home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Puzzle / frog_day.swf / scripts / DefineSprite_377 / frame_36 / DoAction.as
Encoding:
Text File  |  2007-03-20  |  354 b   |  21 lines

  1. HOLD = "0";
  2. if(eval("a" add Robo) == WARP)
  3. {
  4.    stop();
  5.    tellTarget(Robo add "/icon")
  6.    {
  7.       gotoAndStop("WarpNO");
  8.       play();
  9.    }
  10.    num = "1";
  11.    while("165" >= num)
  12.    {
  13.       if(eval("a" add num) == WARP and Robo != num and HOLD == "0")
  14.       {
  15.          HOLD = "1";
  16.          Robo = num;
  17.       }
  18.       num += "1";
  19.    }
  20. }
  21.