home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Diversos / ntech.swf / scripts / DefineSprite_23_GoodTargetBottomID / frame_1 / DoAction.as
Encoding:
Text File  |  2006-06-13  |  532 b   |  28 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) || this.hitTest(_root.WaveBlast))
  9.       {
  10.          play();
  11.          _root.Hitter.play();
  12.       }
  13.    }
  14.    if(_root.Special == "CrossBeam")
  15.    {
  16.       if(this.hitTest(_root.Crosslaser))
  17.       {
  18.          play();
  19.          _root.Hitter.play();
  20.       }
  21.    }
  22.    if(this._y < 0)
  23.    {
  24.       this.unloadMovie();
  25.    }
  26.    this._y -= Speed;
  27. };
  28.