home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Acao / angelpang.swf / scripts / DefineSprite_5 / frame_2 / DoAction.as
Encoding:
Text File  |  2006-06-13  |  1.5 KB  |  56 lines

  1. if(this.in_boss_bullet.hitTest(_parent._parent.Hitbox))
  2. {
  3.    _parent.removeMovieClip(this);
  4. }
  5. this.in_boss_bullet._x += speed;
  6. var j = 1;
  7. while(j < 20)
  8. {
  9.    if(_parent._parent["mball" + j].ishit)
  10.    {
  11.       if(this.hitTest(_parent._parent["mball" + j].hit))
  12.       {
  13.          _parent._parent["mball" + j].play();
  14.          _parent.removeMovieClip(this);
  15.          _parent._parent["mball" + j].ishit = false;
  16.       }
  17.    }
  18.    if(_parent._parent["sball" + j].ishit)
  19.    {
  20.       if(this.hitTest(_parent._parent["sball" + j].hit))
  21.       {
  22.          _parent._parent["sball" + j].play();
  23.          _parent.removeMovieClip(this);
  24.          _parent._parent["sball" + j].ishit = false;
  25.       }
  26.    }
  27.    if(_parent._parent["ssball" + j].ishit)
  28.    {
  29.       if(this.hitTest(_parent._parent["ssball" + j].hit))
  30.       {
  31.          _parent._parent["ssball" + j].play();
  32.          this.removeMovieClip(this);
  33.          _parent._parent["ssball" + j].ishit = false;
  34.       }
  35.    }
  36.    if(_parent._parent["sssball" + j].ishit)
  37.    {
  38.       if(this.hitTest(_parent._parent["sssball" + j].hit))
  39.       {
  40.          _parent._parent["sssball" + j].play();
  41.          _parent.removeMovieClip(this);
  42.          _parent._parent["sssball" + j].ishit = false;
  43.       }
  44.    }
  45.    if(_parent._parent.ball.ishit)
  46.    {
  47.       if(this.hitTest(_parent._parent.ball.hit))
  48.       {
  49.          _parent._parent.ball.play();
  50.          _parent.removeMovieClip(this);
  51.          _parent._parent.ball.ishit = false;
  52.       }
  53.    }
  54.    j++;
  55. }
  56.