home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Classicos / bee_war.swf / scripts / DefineSprite_388 / frame_16 / DoAction.as
Encoding:
Text File  |  2002-02-08  |  561 b   |  29 lines

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