home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Nave / dragonforce.swf / scripts / DefineSprite_44_transition / frame_23 / DoAction.as
Encoding:
Text File  |  2006-06-13  |  1.1 KB  |  40 lines

  1. if(_root.youaredead == true)
  2. {
  3.    _root.paused = false;
  4.    _quality = "high";
  5.    _root.reset = false;
  6.    _root.controls._visible = false;
  7.    _root.gamestart = false;
  8.    _root.gametimer = false;
  9.    _root.shipshieldtotal = _root.shipshield = 50;
  10.    _root.status.mask.shield._xscale = 100 * (_root.shipshield / _root.shipshieldtotal);
  11.    _root.numberofbombs = 3;
  12.    _root.targetenemy = 0;
  13.    _root.mhlevel = 0;
  14.    _root.status.bomb.gotoAndStop(_root.numberofbombs + 1);
  15.    _root.status.mask.missile.gotoAndStop(_root.whichmissileframe);
  16.    _root.protectorlevel = 0;
  17.    _root.weapontype = "red";
  18.    _root.weaponnumber = 1;
  19.    _root.sgreenfunction = false;
  20.    _root.sgreentimer = 0;
  21.    _root.ship._visible = true;
  22.    _root.youaredead = false;
  23.    if(_root.mode == "mission")
  24.    {
  25.       _root.maindisplay.gotoAndStop("continue");
  26.    }
  27.    else if(_root.mode == "survival")
  28.    {
  29.       _root.maindisplay.gotoAndStop("title");
  30.    }
  31.    _root.fade = "out";
  32.    _root.clean();
  33.    _root.ship.protector.gotoAndStop("blank");
  34.    _root.ship.protector.gotoAndStop("blank");
  35.    if(_root.mode == "survival")
  36.    {
  37.       _root.abortmission = true;
  38.    }
  39. }
  40.