home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Acao / DemonicDefence3.swf / scripts / frame_8 / DoAction.as
Encoding:
Text File  |  2005-09-27  |  1.5 KB  |  73 lines

  1. _root.enemy.gotoAndStop(1);
  2. if((_root.alreadySaved1 == 1 || _root.alreadySaved2 == 1 || _root.alreadySaved3 == 1) && _root.loadedIt == 1)
  3. {
  4.    if(_root.healSpell == 1)
  5.    {
  6.       _root.restoreHp._visible = true;
  7.    }
  8.    if(_root.axeSpell == 1)
  9.    {
  10.       _root.summon_Axe._visible = true;
  11.    }
  12.    if(_root.maceSpell == 1)
  13.    {
  14.       _root.summon_Mace._visible = true;
  15.    }
  16.    if(_root.metSpell == 1)
  17.    {
  18.       _root.meteora._visible = true;
  19.    }
  20.    if(_root.ballSpell == 1)
  21.    {
  22.       _root.flameB._visible = true;
  23.    }
  24.    if(_root.swordSpell == 1)
  25.    {
  26.       _root.summon_Sword._visible = true;
  27.    }
  28.    if(_root.rockSpell == 1)
  29.    {
  30.       _root.bigRock._visible = true;
  31.    }
  32.    if(_root.killSpell == 1)
  33.    {
  34.       _root.instaKill._visible = true;
  35.    }
  36.    if(_root.poisSpell == 1)
  37.    {
  38.       _root.poisonF._visible = true;
  39.    }
  40.    if(_root.nukeSpell == 1)
  41.    {
  42.       _root.nuke._visible = true;
  43.    }
  44.    if(_root.gotFarm == 1)
  45.    {
  46.       _root.farm._visible = true;
  47.    }
  48.    if(_root.oasisUpgrade == 1)
  49.    {
  50.       _root.oasis._visible = true;
  51.    }
  52.    if(_root.gotTower == 1)
  53.    {
  54.       _root.tower._visible = true;
  55.    }
  56.    if(_root.gotWall == 1)
  57.    {
  58.       _root.wall2._visible = true;
  59.    }
  60.    _root.buyMenu._visible = true;
  61. }
  62. else
  63. {
  64.    _root.enemyOut = 0;
  65.    while(_root.enemyOut < 3)
  66.    {
  67.       _root.enemyOut += 1;
  68.       duplicateMovieClip(_root.enemy,"enemy" + _root.enemyOut,16384 + _root.enemyOut);
  69.       _root["enemy" + _root.enemyOut].activate = 1;
  70.    }
  71. }
  72. stop();
  73.