home *** CD-ROM | disk | FTP | other *** search
/ 404 Jogos / CLJG.iso / Puzzle / casual_gameplay_escape.swf / scripts / DefineSprite_295_laser / frame_61 / DoAction.as
Text File  |  2008-09-05  |  409b  |  17 lines

  1. this._parent.ufocontainer.fire();
  2. this._parent.shake();
  3. this.onEnterFrame = function()
  4. {
  5.    if(this._currentframe > 61 && this._currentframe < 81)
  6.    {
  7.       if(Math.abs(this._parent.tank._x - this._x) < 45)
  8.       {
  9.          this._parent.gamestarted = false;
  10.          if(this._parent.tank._currentframe == 1)
  11.          {
  12.             this._parent.tank.gotoAndPlay(2);
  13.          }
  14.       }
  15.    }
  16. };
  17.