home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Classicos / bee_war.swf / scripts / DefineSprite_445 / frame_8 / DoAction.as
Encoding:
Text File  |  2002-02-08  |  521 b   |  28 lines

  1. qq_x = getProperty("/qq", _X);
  2. qq_width = getProperty("/qq", _width) / 2;
  3. if(qq_x - qq_width < my_x and my_x < qq_x + qq_width)
  4. {
  5.    if(eval("/:hit") == 1)
  6.    {
  7.       tellTarget("/qq")
  8.       {
  9.          gotoAndStop("hit_qq");
  10.          play();
  11.       }
  12.       i = 1;
  13.       while(i < 3)
  14.       {
  15.          if(eval("/:hit") == 0)
  16.          {
  17.             break;
  18.          }
  19.          tellTarget("/qq_time")
  20.          {
  21.             nextFrame();
  22.          }
  23.          i++;
  24.       }
  25.       gotoAndPlay(11);
  26.    }
  27. }
  28.