home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Diversos / ntech.swf / scripts / DefineSprite_23_GoodTargetBottomID / frame_2 / DoAction.as
Encoding:
Text File  |  2006-06-13  |  501 b   |  18 lines

  1. _root.ParticleCounter += 1;
  2. _root.StationEnergy += 10;
  3. _root.ScoreCounter += Math.round(this._x / 100) * _root.ComboMultiplier;
  4. _root.ComboTimer = 30;
  5. _root.ComboMultiplier = _root.ComboMultiplier + 1;
  6. _root.ComboShowX = _X;
  7. _root.ComboShowY = _Y;
  8. _root.ComboViewer.gotoAndPlay(2);
  9. this.onEnterFrame = function()
  10. {
  11.    this._x += (_root.Device._x - this._x) / 10;
  12.    this._y += (_root.Device._y - this._y) / 10;
  13.    if(this.hitTest(_root.Device))
  14.    {
  15.       this.unloadMovie();
  16.    }
  17. };
  18.