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

  1. stop();
  2. this.onEnterFrame = function()
  3. {
  4.    this._x = _root.Device._x;
  5.    if(_root._ymouse >= 126 && _root._ymouse <= 630)
  6.    {
  7.       this._y = _root._ymouse;
  8.    }
  9.    if(_root.SAmmo <= 0)
  10.    {
  11.       _root.Special = "None";
  12.       this.unloadMovie();
  13.    }
  14.    if(_root.HitDevice._currentframe >= 1)
  15.    {
  16.       this.gotoAndStop("Hit");
  17.    }
  18. };
  19. this.onMouseDown = function()
  20. {
  21.    if(_root.NextShot == true)
  22.    {
  23.       _root.attachMovie("WaveBlastID","WaveBlast",200);
  24.       play();
  25.       _root.NextShot = false;
  26.       _root.SAmmo -= 1;
  27.    }
  28. };
  29.