home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Diversos / ntech.swf / scripts / DefineSprite_97_GoodTargetBlueBottomID / frame_1 / DoAction.as
Encoding:
Text File  |  2006-06-13  |  607 b   |  27 lines

  1. stop();
  2. Speed = Math.random() * 4 + 1;
  3. this.onEnterFrame = function()
  4. {
  5.    DistY = Math.abs(_Y - _root.Device._y);
  6.    if(DistY <= 12)
  7.    {
  8.       if(this.hitTest(_root.laser) && _root.BeamColor == "0x0000FF" || this.hitTest(_root.WaveBlast))
  9.       {
  10.          play();
  11.          _root.Hitter.play();
  12.       }
  13.       else if(this.hitTest(_root.laser) && _root.BeamColor != "0x0000FF")
  14.       {
  15.          play();
  16.          _root.Hitter.play();
  17.          _root.Wall.play();
  18.          HitByWrong = true;
  19.       }
  20.    }
  21.    if(this._y < 0)
  22.    {
  23.       this.unloadMovie();
  24.    }
  25.    this._y -= Speed;
  26. };
  27.