Frame 1
mochi.as2.MochiServices.connect("bbdf271dfb3e2738");
var CPMStarContentSpotID = "0";
System.security.allowDomain("server.cpmstar.com");
adBox.loadMovie("http://server.cpmstar.com/adviewas2.swf?contentspotid=3567QAC05FAB7");
stop();
Instance of Symbol 334 MovieClip in Frame 1
onClipEvent (load) {
totalFileSize = _root.getBytesTotal();
this._xscale = 0;
}
onClipEvent (enterFrame) {
bytesLoaded = _root.getBytesLoaded();
amountLoaded = bytesLoaded / totalFileSize;
this._xscale = percentLoaded;
percentLoaded = int(100 * amountLoaded);
_root.zagr = percentLoaded + " %";
if (amountLoaded >= 1) {
this.gotoAndStop(2);
}
}
Frame 4
stop();
Instance of Symbol 39 MovieClip in Frame 4
onClipEvent (load) {
p = 1;
}
onClipEvent (enterFrame) {
if (p == 1) {
_root.news = new Sound();
_root.news.attachSound("muz");
_root.news.start(0, 0);
_root.news.setVolume(100);
p = 2;
}
if (_root.news.position == _root.news.duration) {
_root.news.stop();
p = 1;
}
}
Frame 6
_root._quality = "HIGH";
stop();
Instance of Symbol 39 MovieClip "kurs" in Frame 6
onClipEvent (mouseMove) {
_x = _root._xmouse;
_y = _root._ymouse;
}
Instance of Symbol 606 MovieClip in Frame 6
onClipEvent (load) {
_root.levelZamok = 1;
_root.vragi = 0;
_root.gold = 150;
_root.gold2 = 0;
_root.basPer = 1;
_root.strPer = 1;
_root.perMon = 1;
_root.perZon = 12;
_root.perVrag = 30;
_root.perGil = 1;
_root.perNapala = 1;
_root.game = 2;
_root.volna = 1;
_root.smert = 0;
_root.panelNiz.w1 = 1;
_root.panelNiz.w2 = "/ 6";
_root.kolicBasd = 0;
_root.kolicBas = 8;
_root.kolicBasv = 8;
_root.panelNiz.b1 = 0;
_root.panelNiz.b2 = "/ 8";
_root.slot1.gotoAndStop(1);
_root.slot2.gotoAndStop(2);
_root.slot3.gotoAndStop(3);
_root.slot4.gotoAndStop(4);
_root.slot5.gotoAndStop("use");
_root.slot6.gotoAndStop("use");
_root.slot7.gotoAndStop("use");
_root.slot8.gotoAndStop("use");
_root.slot9.gotoAndStop("use");
_root.tur = 1;
}
onClipEvent (enterFrame) {
if ((_root.giz <= 0) & (_root.game < 3)) {
_root.game = 3;
_root.zamokSd.gotoAndStop(2);
_root.attachMovie("defeat", "defeat", _root.getNextHighestDepth());
_root.defeat._x = 287;
_root.defeat._y = 200;
_root.giz = 0;
}
if (((_root.game == 0) & (_root.vragi == 0)) & (_root.volna > 1)) {
_root.panelNiz.wave.gotoAndStop(2);
}
if (((_root.game == 0) & (_root.vragi == 0)) & (_root.volna == 7)) {
_root.attachMovie("nextlevel", "nextlevel", _root.getNextHighestDepth());
_root.nextlevel._x = 287;
_root.nextlevel._y = 200;
_root.game = 3;
}
if (_root.game == 1) {
if (_root.volna == 6) {
_root.attachMovie("newwave", "newwave", _root.getNextHighestDepth());
_root.newwave._x = 323.5;
_root.newwave._y = 238;
i = 1;
while (i <= 20) {
_root.attachMovie("enemyq", "enemy" + i, _root.getNextHighestDepth());
_root["enemy" + i]._x = -27 - ((i * _root["enemy" + i]._xscale) / 2);
_root["enemy" + i]._y = 100;
_root["enemy" + i].vrag.gotoAndPlay(int(Math.random() * 25));
if (i >= 20) {
_root.game = 0;
_root.volna = _root.volna + 1;
_root.vragi = 20;
break;
}
i++;
}
}
if (_root.volna == 5) {
_root.gold2 = _root.gold2 + 1;
_root.attachMovie("newwave", "newwave", _root.getNextHighestDepth());
_root.newwave._x = 323.5;
_root.newwave._y = 238;
i = 1;
while (i <= 16) {
_root.attachMovie("enemyaa", "enemy" + i, _root.getNextHighestDepth());
_root["enemy" + i]._x = -27 - ((i * _root["enemy" + i]._xscale) / 2);
_root["enemy" + i]._y = 100;
_root["enemy" + i].vrag.gotoAndPlay(int(Math.random() * 25));
if (i >= 16) {
_root.game = 0;
_root.volna = _root.volna + 1;
_root.vragi = 16;
break;
}
i++;
}
}
if (_root.volna == 4) {
_root.attachMovie("newwave", "newwave", _root.getNextHighestDepth());
_root.newwave._x = 323.5;
_root.newwave._y = 238;
i = 1;
while (i <= 12) {
_root.attachMovie("enemyyy", "enemy" + i, _root.getNextHighestDepth());
_root["enemy" + i]._x = -27 - ((i * _root["enemy" + i]._xscale) / 2);
_root["enemy" + i]._y = 100;
_root["enemy" + i].vrag.gotoAndPlay(int(Math.random() * 25));
if (i >= 12) {
_root.game = 0;
_root.volna = _root.volna + 1;
_root.vragi = 12;
break;
}
i++;
}
}
if (_root.volna == 3) {
_root.gold2 = _root.gold2 + 1;
_root.attachMovie("newresurs", "newresurs", _root.getNextHighestDepth());
_root.newresurs._x = 386;
_root.newresurs._y = 58;
_root.attachMovie("newwave", "newwave", _root.getNextHighestDepth());
_root.newwave._x = 323.5;
_root.newwave._y = 238;
i = 1;
while (i <= 18) {
_root.attachMovie("enemya", "enemy" + i, _root.getNextHighestDepth());
_root["enemy" + i]._x = -27 - ((i * _root["enemy" + i]._xscale) / 2);
_root["enemy" + i]._y = 100;
_root["enemy" + i].vrag.gotoAndPlay(int(Math.random() * 25));
if (i >= 18) {
_root.game = 0;
_root.volna = _root.volna + 1;
_root.vragi = 18;
break;
}
i++;
}
}
if (_root.volna == 2) {
_root.attachMovie("newwave", "newwave", _root.getNextHighestDepth());
_root.newwave._x = 323.5;
_root.newwave._y = 238;
i = 1;
while (i <= 15) {
_root.attachMovie("enemyy", "enemy" + i, _root.getNextHighestDepth());
_root["enemy" + i]._x = -27 - ((i * _root["enemy" + i]._xscale) / 2);
_root["enemy" + i]._y = 100;
_root["enemy" + i].vrag.gotoAndPlay(int(Math.random() * 25));
if (i >= 15) {
_root.game = 0;
_root.volna = _root.volna + 1;
_root.vragi = 15;
break;
}
i++;
}
}
if (_root.volna == 1) {
_root.attachMovie("newwave", "newwave", _root.getNextHighestDepth());
_root.newwave._x = 323.5;
_root.newwave._y = 238;
i = 1;
while (i <= 15) {
_root.attachMovie("enemy", "enemy" + i, _root.getNextHighestDepth());
_root["enemy" + i]._x = -27 - ((i * _root["enemy" + i]._xscale) / 2);
_root["enemy" + i]._y = 100;
_root["enemy" + i].vrag.gotoAndPlay(int(Math.random() * 25));
if (i >= 15) {
_root.game = 0;
_root.volna = _root.volna + 1;
_root.vragi = 15;
break;
}
i++;
}
}
}
}
Instance of Symbol 39 MovieClip "zzz" in Frame 6
onClipEvent (load) {
p = 1;
}
onClipEvent (enterFrame) {
if (p == 1) {
var news = new Sound(this.createEmptyMovieClip("mcSound1", this.getNextHighestDepth()));
news.attachSound("muz");
news.start(0, 0);
p = 2;
}
if (news.position == news.duration) {
news.stop();
p = 1;
}
}
Frame 7
_root.nextFrame();
Instance of Symbol 39 MovieClip "kurs" in Frame 8
onClipEvent (mouseMove) {
_x = _root._xmouse;
_y = _root._ymouse;
}
Instance of Symbol 606 MovieClip in Frame 8
onClipEvent (load) {
_root.levelZamok = 1;
_root.vragi = 0;
_root.gold = 200;
_root.gold2 = 2;
_root.basPer = 1;
_root.strPer = 1;
_root.perMon = 1;
_root.perZon = 19;
_root.perVrag = 30;
_root.perGil = 1;
_root.perNapala = 1;
_root.game = 0;
_root.volna = 1;
_root.smert = 0;
_root.kolicBasd = 0;
_root.kolicBas = 8;
_root.kolicBasv = 8;
_root.panelNiz.b1 = 0;
_root.panelNiz.b2 = "/ 8";
_root.panelNiz.w1 = 1;
_root.panelNiz.w2 = "/ 23";
_root.slot1.gotoAndStop(1);
_root.slot2.gotoAndStop(2);
_root.slot3.gotoAndStop(3);
_root.slot4.gotoAndStop(4);
_root.slot5.gotoAndStop(5);
_root.slot6.gotoAndStop(6);
_root.slot7.gotoAndStop(7);
_root.slot8.gotoAndStop(8);
_root.slot9.gotoAndStop("use");
_root.tur = 2;
sav = SharedObject.getLocal("SharedObject");
sav.data.tur = _root.tur;
sav.flush();
_root.panelNiz.wave.gotoAndStop(1);
}
onClipEvent (enterFrame) {
if ((_root.giz <= 0) & (_root.game < 3)) {
_root.game = 3;
_root.zamokSd.gotoAndStop(2);
_root.attachMovie("defeat", "defeat", _root.getNextHighestDepth());
_root.defeat._x = 287;
_root.defeat._y = 200;
_root.giz = 0;
}
if (((_root.game == 0) & (_root.vragi == 0)) & (_root.volna > 1)) {
_root.panelNiz.wave.gotoAndStop(2);
}
if (((_root.game == 0) & (_root.vragi == 0)) & (_root.volna == 24)) {
_root.attachMovie("nextlevel", "nextlevel", _root.getNextHighestDepth());
_root.nextlevel._x = 287;
_root.nextlevel._y = 200;
_root.game = 3;
}
if (_root.game == 1) {
if (_root.volna == 23) {
_root.attachMovie("newwave", "newwave", _root.getNextHighestDepth());
_root.newwave._x = 323.5;
_root.newwave._y = 238;
i = 1;
while (i <= 20) {
_root.attachMovie("enemyt", "enemy" + i, _root.getNextHighestDepth());
_root["enemy" + i]._x = -27 - ((i * _root["enemy" + i]._xscale) / 4);
_root["enemy" + i]._y = 211;
_root["enemy" + i].vrag.gotoAndPlay(int(Math.random() * 25));
i++;
_root.attachMovie("enemyt", "enemy" + i, _root.getNextHighestDepth());
_root["enemy" + i]._x = -27 - ((i * _root["enemy" + i]._xscale) / 4);
_root["enemy" + i]._y = 261;
_root["enemy" + i].vrag.gotoAndPlay(int(Math.random() * 25));
if (i >= 20) {
_root.game = 0;
_root.volna = _root.volna + 1;
_root.vragi = 20;
break;
}
i++;
}
}
if (_root.volna == 22) {
_root.gold2 = _root.gold2 + 1;
_root.attachMovie("newwave", "newwave", _root.getNextHighestDepth());
_root.newwave._x = 323.5;
_root.newwave._y = 238;
i = 1;
while (i <= 24) {
_root.attachMovie("enemyff", "enemy" + i, _root.getNextHighestDepth());
_root["enemy" + i]._x = -27 - ((i * _root["enemy" + i]._xscale) / 2);
_root["enemy" + i]._y = 211;
_root["enemy" + i].vrag.gotoAndPlay(int(Math.random() * 25));
i++;
_root.attachMovie("enemyff", "enemy" + i, _root.getNextHighestDepth());
_root["enemy" + i]._x = -27 - ((i * _root["enemy" + i]._xscale) / 2);
_root["enemy" + i]._y = 261;
_root["enemy" + i].vrag.gotoAndPlay(int(Math.random() * 25));
if (i >= 24) {
_root.game = 0;
_root.volna = _root.volna + 1;
_root.vragi = 24;
break;
}
i++;
}
}
if (_root.volna == 21) {
_root.attachMovie("newwave", "newwave", _root.getNextHighestDepth());
_root.newwave._x = 323.5;
_root.newwave._y = 238;
i = 1;
while (i <= 20) {
_root.attachMovie("enemyrr", "enemy" + i, _root.getNextHighestDepth());
_root["enemy" + i]._x = -27 - ((i * _root["enemy" + i]._xscale) / 2);
_root["enemy" + i]._y = 211;
_root["enemy" + i].vrag.gotoAndPlay(int(Math.random() * 25));
i++;
_root.attachMovie("enemyr", "enemy" + i, _root.getNextHighestDepth());
_root["enemy" + i]._x = -27 - ((i * _root["enemy" + i]._xscale) / 3);
_root["enemy" + i]._y = 261;
_root["enemy" + i].vrag.gotoAndPlay(int(Math.random() * 25));
if (i >= 20) {
_root.game = 0;
_root.volna = _root.volna + 1;
_root.vragi = 20;
break;
}
i++;
}
}
if (_root.volna == 20) {
_root.gold2 = _root.gold2 + 1;
_root.attachMovie("newwave", "newwave", _root.getNextHighestDepth());
_root.newwave._x = 323.5;
_root.newwave._y = 238;
i = 1;
while (i <= 25) {
_root.attachMovie("enemyf", "enemy" + i, _root.getNextHighestDepth());
_root["enemy" + i]._x = -27 - ((i * _root["enemy" + i]._xscale) / 3);
_root["enemy" + i]._y = 211;
_root["enemy" + i].vrag.gotoAndPlay(int(Math.random() * 25));
i++;
_root.attachMovie("enemyr", "enemy" + i, _root.getNextHighestDepth());
_root["enemy" + i]._x = -27 - ((i * _root["enemy" + i]._xscale) / 3);
_root["enemy" + i]._y = 261;
_root["enemy" + i].vrag.gotoAndPlay(int(Math.random() * 25));
if (i >= 25) {
_root.game = 0;
_root.volna = _root.volna + 1;
_root.vragi = 25;
break;
}
i++;
}
}
if (_root.volna == 19) {
_root.attachMovie("newwave", "newwave", _root.getNextHighestDepth());
_root.newwave._x = 323.5;
_root.newwave._y = 238;
i = 1;
while (i <= 18) {
_root.attachMovie("enemyf", "enemy" + i, _root.getNextHighestDepth());
_root["enemy" + i]._x = -27 - ((i * _root["enemy" + i]._xscale) / 2);
_root["enemy" + i]._y = 211;
_root["enemy" + i].vrag.gotoAndPlay(int(Math.random() * 25));
i++;
_root.attachMovie("enemyf", "enemy" + i, _root.getNextHighestDepth());
_root["enemy" + i]._x = -27 - ((i * _root["enemy" + i]._xscale) / 2);
_root["enemy" + i]._y = 261;
_root["enemy" + i].vrag.gotoAndPlay(int(Math.random() * 25));
if (i >= 18) {
_root.game = 0;
_root.volna = _root.volna + 1;
_root.vragi = 18;
break;
}
i++;
}
}
if (_root.volna == 18) {
_root.gold2 = _root.gold2 + 3;
_root.attachMovie("newwave", "newwave", _root.getNextHighestDepth());
_root.newwave._x = 323.5;
_root.newwave._y = 238;
i = 1;
while (i <= 25) {
_root.attachMovie("enemydd", "enemy" + i, _root.getNextHighestDepth());
_root["enemy" + i]._x = -27 - ((i * _root["enemy" + i]._xscale) / 4);
_root["enemy" + i]._y = 211;
_root["enemy" + i].vrag.gotoAndPlay(int(Math.random() * 25));
i++;
_root.attachMovie("enemydd", "enemy" + i, _root.getNextHighestDepth());
_root["enemy" + i]._x = -27 - ((i * _root["enemy" + i]._xscale) / 4);
_root["enemy" + i]._y = 261;
_root["enemy" + i].vrag.gotoAndPlay(int(Math.random() * 25));
if (i >= 25) {
_root.game = 0;
_root.volna = _root.volna + 1;
_root.vragi = 25;
break;
}
i++;
}
}
if (_root.volna == 17) {
_root.attachMovie("newwave", "newwave", _root.getNextHighestDepth());
_root.newwave._x = 323.5;
_root.newwave._y = 238;
i = 1;
while (i <= 20) {
_root.attachMovie("enemyd", "enemy" + i, _root.getNextHighestDepth());
_root["enemy" + i]._x = -27 - ((i * _root["enemy" + i]._xscale) / 4);
_root["enemy" + i]._y = 211;
_root["enemy" + i].vrag.gotoAndPlay(int(Math.random() * 25));
i++;
_root.attachMovie("enemyd", "enemy" + i, _root.getNextHighestDepth());
_root["enemy" + i]._x = -27 - ((i * _root["enemy" + i]._xscale) / 4);
_root["enemy" + i]._y = 261;
_root["enemy" + i].vrag.gotoAndPlay(int(Math.random() * 25));
if (i >= 20) {
_root.game = 0;
_root.volna = _root.volna + 1;
_root.vragi = 20;
break;
}
i++;
}
}
if (_root.volna == 16) {
_root.attachMovie("newwave", "newwave", _root.getNextHighestDepth());
_root.newwave._x = 323.5;
_root.newwave._y = 238;
i = 1;
while (i <= 14) {
_root.attachMovie("enemyr", "enemy" + i, _root.getNextHighestDepth());
_root["enemy" + i]._x = -27 - ((i * _root["enemy" + i]._xscale) / 2);
_root["enemy" + i]._y = 211;
_root["enemy" + i].vrag.gotoAndPlay(int(Math.random() * 25));
i++;
_root.attachMovie("enemyr", "enemy" + i, _root.getNextHighestDepth());
_root["enemy" + i]._x = -27 - ((i * _root["enemy" + i]._xscale) / 2);
_root["enemy" + i]._y = 261;
_root["enemy" + i].vrag.gotoAndPlay(int(Math.random() * 25));
if (i >= 14) {
_root.game = 0;
_root.volna = _root.volna + 1;
_root.vragi = 14;
break;
}
i++;
}
}
if (_root.volna == 15) {
_root.gold2 = _root.gold2 + 1;
_root.attachMovie("newwave", "newwave", _root.getNextHighestDepth());
_root.newwave._x = 323.5;
_root.newwave._y = 238;
i = 1;
while (i <= 20) {
_root.attachMovie("enemywww", "enemy" + i, _root.getNextHighestDepth());
_root["enemy" + i]._x = -27 - ((i * _root["enemy" + i]._xscale) / 4);
_root["enemy" + i]._y = 211;
_root["enemy" + i].vrag.gotoAndPlay(int(Math.random() * 25));
i++;
_root.attachMovie("enemyww", "enemy" + i, _root.getNextHighestDepth());
_root["enemy" + i]._x = -27 - ((i * _root["enemy" + i]._xscale) / 4);
_root["enemy" + i]._y = 261;
_root["enemy" + i].vrag.gotoAndPlay(int(Math.random() * 25));
if (i >= 20) {
_root.game = 0;
_root.volna = _root.volna + 1;
_root.vragi = 20;
break;
}
i++;
}
}
if (_root.volna == 14) {
_root.attachMovie("newwave", "newwave", _root.getNextHighestDepth());
_root.newwave._x = 323.5;
_root.newwave._y = 238;
i = 1;
while (i <= 20) {
_root.attachMovie("enemyww", "enemy" + i, _root.getNextHighestDepth());
_root["enemy" + i]._x = -27 - ((i * _root["enemy" + i]._xscale) / 4);
_root["enemy" + i]._y = 211;
_root["enemy" + i].vrag.gotoAndPlay(int(Math.random() * 25));
i++;
_root.attachMovie("enemye", "enemy" + i, _root.getNextHighestDepth());
_root["enemy" + i]._x = -27 - ((i * _root["enemy" + i]._xscale) / 4);
_root["enemy" + i]._y = 261;
_root["enemy" + i].vrag.gotoAndPlay(int(Math.random() * 25));
if (i >= 20) {
_root.game = 0;
_root.volna = _root.volna + 1;
_root.vragi = 20;
break;
}
i++;
}
}
if (_root.volna == 13) {
_root.attachMovie("newwave", "newwave", _root.getNextHighestDepth());
_root.newwave._x = 323.5;
_root.newwave._y = 238;
i = 1;
while (i <= 25) {
_root.attachMovie("enemyaaa", "enemy" + i, _root.getNextHighestDepth());
_root["enemy" + i]._x = -27 - ((i * _root["enemy" + i]._xscale) / 4);
_root["enemy" + i]._y = 211;
_root["enemy" + i].vrag.gotoAndPlay(int(Math.random() * 25));
i++;
_root.attachMovie("enemyww", "enemy" + i, _root.getNextHighestDepth());
_root["enemy" + i]._x = -27 - ((i * _root["enemy" + i]._xscale) / 4);
_root["enemy" + i]._y = 261;
_root["enemy" + i].vrag.gotoAndPlay(int(Math.random() * 25));
if (i >= 25) {
_root.game = 0;
_root.volna = _root.volna + 1;
_root.vragi = 25;
break;
}
i++;
}
}
if (_root.volna == 12) {
_root.gold2 = _root.gold2 + 1;
_root.attachMovie("newwave", "newwave", _root.getNextHighestDepth());
_root.newwave._x = 323.5;
_root.newwave._y = 238;
i = 1;
while (i <= 20) {
_root.attachMovie("enemyss", "enemy" + i, _root.getNextHighestDepth());
_root["enemy" + i]._x = -27 - ((i * _root["enemy" + i]._xscale) / 2);
_root["enemy" + i]._y = 211;
_root["enemy" + i].vrag.gotoAndPlay(int(Math.random() * 25));
i++;
_root.attachMovie("enemyaaa", "enemy" + i, _root.getNextHighestDepth());
_root["enemy" + i]._x = -27 - ((i * _root["enemy" + i]._xscale) / 3);
_root["enemy" + i]._y = 261;
_root["enemy" + i].vrag.gotoAndPlay(int(Math.random() * 25));
if (i >= 20) {
_root.game = 0;
_root.volna = _root.volna + 1;
_root.vragi = 20;
break;
}
i++;
}
}
if (_root.volna == 11) {
_root.attachMovie("newwave", "newwave", _root.getNextHighestDepth());
_root.newwave._x = 323.5;
_root.newwave._y = 238;
i = 1;
while (i <= 80) {
_root.attachMovie("enemyqqq", "enemy" + i, _root.getNextHighestDepth());
_root["enemy" + i]._x = -27 - ((i * _root["enemy" + i]._xscale) / 4);
_root["enemy" + i]._y = 211;
_root["enemy" + i].vrag.gotoAndPlay(int(Math.random() * 25));
i++;
_root.attachMovie("enemyw", "enemy" + i, _root.getNextHighestDepth());
_root["enemy" + i]._x = -27 - ((i * _root["enemy" + i]._xscale) / 4);
_root["enemy" + i]._y = 261;
_root["enemy" + i].vrag.gotoAndPlay(int(Math.random() * 25));
if (i >= 28) {
_root.game = 0;
_root.volna = _root.volna + 1;
_root.vragi = 28;
break;
}
i++;
}
}
if (_root.volna == 10) {
_root.gold2 = _root.gold2 + 1;
_root.attachMovie("newwave", "newwave", _root.getNextHighestDepth());
_root.newwave._x = 323.5;
_root.newwave._y = 238;
i = 1;
while (i <= 22) {
_root.attachMovie("enemyqq", "enemy" + i, _root.getNextHighestDepth());
_root["enemy" + i]._x = -27 - ((i * _root["enemy" + i]._xscale) / 4);
_root["enemy" + i]._y = 211;
_root["enemy" + i].vrag.gotoAndPlay(int(Math.random() * 25));
i++;
_root.attachMovie("enemyqq", "enemy" + i, _root.getNextHighestDepth());
_root["enemy" + i]._x = -27 - ((i * _root["enemy" + i]._xscale) / 4);
_root["enemy" + i]._y = 261;
_root["enemy" + i].vrag.gotoAndPlay(int(Math.random() * 25));
if (i >= 22) {
_root.game = 0;
_root.volna = _root.volna + 1;
_root.vragi = 22;
break;
}
i++;
}
}
if (_root.volna == 9) {
_root.attachMovie("newwave", "newwave", _root.getNextHighestDepth());
_root.newwave._x = 323.5;
_root.newwave._y = 238;
i = 1;
while (i <= 20) {
_root.attachMovie("enemyw", "enemy" + i, _root.getNextHighestDepth());
_root["enemy" + i]._x = -27 - ((i * _root["enemy" + i]._xscale) / 2);
_root["enemy" + i]._y = 211;
_root["enemy" + i].vrag.gotoAndPlay(int(Math.random() * 25));
i++;
_root.attachMovie("enemyw", "enemy" + i, _root.getNextHighestDepth());
_root["enemy" + i]._x = -27 - ((i * _root["enemy" + i]._xscale) / 2);
_root["enemy" + i]._y = 261;
_root["enemy" + i].vrag.gotoAndPlay(int(Math.random() * 25));
if (i >= 20) {
_root.game = 0;
_root.volna = _root.volna + 1;
_root.vragi = 20;
break;
}
i++;
}
}
if (_root.volna == 8) {
_root.attachMovie("newwave", "newwave", _root.getNextHighestDepth());
_root.newwave._x = 323.5;
_root.newwave._y = 238;
i = 1;
while (i <= 15) {
_root.attachMovie("enemyqq", "enemy" + i, _root.getNextHighestDepth());
_root["enemy" + i]._x = -27 - ((i * _root["enemy" + i]._xscale) / 3);
_root["enemy" + i]._y = 211;
_root["enemy" + i].vrag.gotoAndPlay(int(Math.random() * 25));
i++;
_root.attachMovie("enemyqq", "enemy" + i, _root.getNextHighestDepth());
_root["enemy" + i]._x = -27 - ((i * _root["enemy" + i]._xscale) / 3);
_root["enemy" + i]._y = 261;
_root["enemy" + i].vrag.gotoAndPlay(int(Math.random() * 25));
if (i >= 15) {
_root.game = 0;
_root.volna = _root.volna + 1;
_root.vragi = 15;
break;
}
i++;
}
}
if (_root.volna == 7) {
_root.attachMovie("newwave", "newwave", _root.getNextHighestDepth());
_root.newwave._x = 323.5;
_root.newwave._y = 238;
i = 1;
while (i <= 28) {
_root.attachMovie("enemyyy", "enemy" + i, _root.getNextHighestDepth());
_root["enemy" + i]._x = -27 - ((i * _root["enemy" + i]._xscale) / 4);
_root["enemy" + i]._y = 211;
_root["enemy" + i].vrag.gotoAndPlay(int(Math.random() * 25));
i++;
_root.attachMovie("enemyq", "enemy" + i, _root.getNextHighestDepth());
_root["enemy" + i]._x = -27 - ((i * _root["enemy" + i]._xscale) / 4);
_root["enemy" + i]._y = 261;
_root["enemy" + i].vrag.gotoAndPlay(int(Math.random() * 25));
if (i >= 28) {
_root.game = 0;
_root.volna = _root.volna + 1;
_root.vragi = 28;
break;
}
i++;
}
}
if (_root.volna == 6) {
_root.attachMovie("newwave", "newwave", _root.getNextHighestDepth());
_root.newwave._x = 323.5;
_root.newwave._y = 238;
i = 1;
while (i <= 27) {
_root.attachMovie("enemyy", "enemy" + i, _root.getNextHighestDepth());
_root["enemy" + i]._x = -27 - ((i * _root["enemy" + i]._xscale) / 2);
_root["enemy" + i]._y = 211;
_root["enemy" + i].vrag.gotoAndPlay(int(Math.random() * 25));
i++;
_root.attachMovie("enemyyy", "enemy" + i, _root.getNextHighestDepth());
_root["enemy" + i]._x = -27 - ((i * _root["enemy" + i]._xscale) / 2);
_root["enemy" + i]._y = 261;
_root["enemy" + i].vrag.gotoAndPlay(int(Math.random() * 25));
if (i >= 27) {
_root.game = 0;
_root.volna = _root.volna + 1;
_root.vragi = 27;
break;
}
i++;
}
}
if (_root.volna == 5) {
_root.gold2 = _root.gold2 + 1;
_root.attachMovie("newwave", "newwave", _root.getNextHighestDepth());
_root.newwave._x = 323.5;
_root.newwave._y = 238;
i = 1;
while (i <= 25) {
_root.attachMovie("enemyaa", "enemy" + i, _root.getNextHighestDepth());
_root["enemy" + i]._x = -27 - ((i * _root["enemy" + i]._xscale) / 3);
_root["enemy" + i]._y = 211;
_root["enemy" + i].vrag.gotoAndPlay(int(Math.random() * 25));
i++;
_root.attachMovie("enemyy", "enemy" + i, _root.getNextHighestDepth());
_root["enemy" + i]._x = -27 - ((i * _root["enemy" + i]._xscale) / 3);
_root["enemy" + i]._y = 261;
_root["enemy" + i].vrag.gotoAndPlay(int(Math.random() * 25));
if (i >= 25) {
_root.game = 0;
_root.volna = _root.volna + 1;
_root.vragi = 25;
break;
}
i++;
}
}
if (_root.volna == 4) {
_root.attachMovie("newwave", "newwave", _root.getNextHighestDepth());
_root.newwave._x = 323.5;
_root.newwave._y = 238;
i = 1;
while (i <= 18) {
_root.attachMovie("enemyy", "enemy" + i, _root.getNextHighestDepth());
_root["enemy" + i]._x = -27 - ((i * _root["enemy" + i]._xscale) / 4);
_root["enemy" + i]._y = 211;
_root["enemy" + i].vrag.gotoAndPlay(int(Math.random() * 25));
i++;
_root.attachMovie("enemyy", "enemy" + i, _root.getNextHighestDepth());
_root["enemy" + i]._x = -27 - ((i * _root["enemy" + i]._xscale) / 4);
_root["enemy" + i]._y = 261;
_root["enemy" + i].vrag.gotoAndPlay(int(Math.random() * 25));
if (i >= 18) {
_root.game = 0;
_root.volna = _root.volna + 1;
_root.vragi = 18;
break;
}
i++;
}
}
if (_root.volna == 3) {
_root.attachMovie("newwave", "newwave", _root.getNextHighestDepth());
_root.newwave._x = 323.5;
_root.newwave._y = 238;
i = 1;
while (i <= 20) {
_root.attachMovie("enemya", "enemy" + i, _root.getNextHighestDepth());
_root["enemy" + i]._x = -27 - ((i * _root["enemy" + i]._xscale) / 4);
_root["enemy" + i]._y = 211;
_root["enemy" + i].vrag.gotoAndPlay(int(Math.random() * 25));
i++;
_root.attachMovie("enemyy", "enemy" + i, _root.getNextHighestDepth());
_root["enemy" + i]._x = -27 - ((i * _root["enemy" + i]._xscale) / 4);
_root["enemy" + i]._y = 261;
_root["enemy" + i].vrag.gotoAndPlay(int(Math.random() * 25));
if (i >= 20) {
_root.game = 0;
_root.volna = _root.volna + 1;
_root.vragi = 20;
break;
}
i++;
}
}
if (_root.volna == 2) {
_root.attachMovie("newwave", "newwave", _root.getNextHighestDepth());
_root.newwave._x = 323.5;
_root.newwave._y = 238;
i = 1;
while (i <= 28) {
_root.attachMovie("enemy", "enemy" + i, _root.getNextHighestDepth());
_root["enemy" + i]._x = -27 - ((i * _root["enemy" + i]._xscale) / 4);
_root["enemy" + i]._y = 211;
_root["enemy" + i].vrag.gotoAndPlay(int(Math.random() * 25));
i++;
_root.attachMovie("enemy", "enemy" + i, _root.getNextHighestDepth());
_root["enemy" + i]._x = -27 - ((i * _root["enemy" + i]._xscale) / 4);
_root["enemy" + i]._y = 261;
_root["enemy" + i].vrag.gotoAndPlay(int(Math.random() * 25));
if (i >= 28) {
_root.game = 0;
_root.volna = _root.volna + 1;
_root.vragi = 28;
break;
}
i++;
}
}
if (_root.volna == 1) {
_root.attachMovie("newwave", "newwave", _root.getNextHighestDepth());
_root.newwave._x = 323.5;
_root.newwave._y = 238;
i = 1;
while (i <= 17) {
_root.attachMovie("enemy", "enemy" + i, _root.getNextHighestDepth());
_root["enemy" + i]._x = -27 - ((i * _root["enemy" + i]._xscale) / 4);
_root["enemy" + i]._y = 211;
_root["enemy" + i].vrag.gotoAndPlay(int(Math.random() * 25));
i++;
_root.attachMovie("enemy", "enemy" + i, _root.getNextHighestDepth());
_root["enemy" + i]._x = -27 - ((i * _root["enemy" + i]._xscale) / 4);
_root["enemy" + i]._y = 261;
_root["enemy" + i].vrag.gotoAndPlay(int(Math.random() * 25));
if (i >= 17) {
_root.game = 0;
_root.volna = _root.volna + 1;
_root.vragi = 17;
break;
}
i++;
}
}
}
}
Frame 9
_root.nextFrame();
Instance of Symbol 39 MovieClip "kurs" in Frame 10
onClipEvent (mouseMove) {
_x = _root._xmouse;
_y = _root._ymouse;
}
Instance of Symbol 606 MovieClip in Frame 10
onClipEvent (load) {
_root.levelZamok = 1;
_root.vragi = 0;
_root.gold = 800;
_root.gold2 = 1;
_root.basPer = 1;
_root.strPer = 1;
_root.perMon = 1;
_root.perZon = 19;
_root.perVrag = 30;
_root.perGil = 1;
_root.perNapala = 1;
_root.game = 0;
_root.volna = 1;
_root.smert = 0;
_root.kolicBasd = 0;
_root.kolicBas = 8;
_root.kolicBasv = 8;
_root.panelNiz.b1 = 0;
_root.panelNiz.b2 = "/ 8";
_root.panelNiz.w1 = 1;
_root.panelNiz.w2 = "/ 25";
_root.slot1.gotoAndStop(1);
_root.slot2.gotoAndStop(2);
_root.slot3.gotoAndStop(3);
_root.slot4.gotoAndStop(4);
_root.slot5.gotoAndStop(5);
_root.slot6.gotoAndStop(6);
_root.slot7.gotoAndStop(7);
_root.slot8.gotoAndStop(8);
_root.slot9.gotoAndStop(9);
_root.tur = 3;
sav = SharedObject.getLocal("SharedObject");
sav.data.tur = _root.tur;
sav.flush();
_root.panelNiz.wave.gotoAndStop(1);
}
onClipEvent (enterFrame) {
if ((_root.giz <= 0) & (_root.game < 3)) {
_root.game = 3;
_root.zamokSd.gotoAndStop(2);
_root.attachMovie("defeat", "defeat", _root.getNextHighestDepth());
_root.defeat._x = 287;
_root.defeat._y = 200;
_root.giz = 0;
}
if (((_root.game == 0) & (_root.vragi == 0)) & (_root.volna > 1)) {
_root.panelNiz.wave.gotoAndStop(2);
}
if (((_root.game == 0) & (_root.vragi == 0)) & (_root.volna == 26)) {
_root.attachMovie("nextlevel", "nextlevel", _root.getNextHighestDepth());
_root.nextlevel._x = 287;
_root.nextlevel._y = 200;
_root.game = 3;
}
if (_root.game == 1) {
if (_root.volna == 25) {
_root.attachMovie("newwave", "newwave", _root.getNextHighestDepth());
_root.newwave._x = 323.5;
_root.newwave._y = 238;
i = 1;
while (i <= 28) {
_root.attachMovie("enemygg", "enemy" + i, _root.getNextHighestDepth());
_root["enemy" + i]._x = -27 - ((i * _root["enemy" + i]._xscale) / 5);
_root["enemy" + i]._y = 344;
_root["enemy" + i].vrag.gotoAndPlay(int(Math.random() * 25));
i++;
_root.attachMovie("enemygg", "enemy" + i, _root.getNextHighestDepth());
_root["enemy" + i]._x = -27 - ((i * _root["enemy" + i]._xscale) / 4);
_root["enemy" + i]._y = 84;
_root["enemy" + i].vrag.gotoAndPlay(int(Math.random() * 25));
if (i >= 28) {
_root.game = 0;
_root.volna = _root.volna + 1;
_root.vragi = 28;
break;
}
i++;
}
}
if (_root.volna == 24) {
_root.gold2 = _root.gold2 + 1;
_root.attachMovie("newwave", "newwave", _root.getNextHighestDepth());
_root.newwave._x = 323.5;
_root.newwave._y = 238;
i = 1;
while (i <= 25) {
_root.attachMovie("enemygg", "enemy" + i, _root.getNextHighestDepth());
_root["enemy" + i]._x = -27 - ((i * _root["enemy" + i]._xscale) / 3);
_root["enemy" + i]._y = 344;
_root["enemy" + i].vrag.gotoAndPlay(int(Math.random() * 25));
i++;
_root.attachMovie("enemytt", "enemy" + i, _root.getNextHighestDepth());
_root["enemy" + i]._x = -27 - ((i * _root["enemy" + i]._xscale) / 3);
_root["enemy" + i]._y = 84;
_root["enemy" + i].vrag.gotoAndPlay(int(Math.random() * 25));
if (i >= 25) {
_root.game = 0;
_root.volna = _root.volna + 1;
_root.vragi = 25;
break;
}
i++;
}
}
if (_root.volna == 23) {
_root.gold2 = _root.gold2 + 1;
_root.attachMovie("newwave", "newwave", _root.getNextHighestDepth());
_root.newwave._x = 323.5;
_root.newwave._y = 238;
i = 1;
while (i <= 28) {
_root.attachMovie("enemygg", "enemy" + i, _root.getNextHighestDepth());
_root["enemy" + i]._x = -27 - ((i * _root["enemy" + i]._xscale) / 2);
_root["enemy" + i]._y = 344;
_root["enemy" + i].vrag.gotoAndPlay(int(Math.random() * 25));
i++;
_root.attachMovie("enemygg", "enemy" + i, _root.getNextHighestDepth());
_root["enemy" + i]._x = -27 - ((i * _root["enemy" + i]._xscale) / 2);
_root["enemy" + i]._y = 84;
_root["enemy" + i].vrag.gotoAndPlay(int(Math.random() * 25));
if (i >= 28) {
_root.game = 0;
_root.volna = _root.volna + 1;
_root.vragi = 28;
break;
}
i++;
}
}
if (_root.volna == 22) {
_root.gold2 = _root.gold2 + 1;
_root.gold2 = _root.gold2 + 1;
_root.attachMovie("newwave", "newwave", _root.getNextHighestDepth());
_root.newwave._x = 323.5;
_root.newwave._y = 238;
i = 1;
while (i <= 25) {
_root.attachMovie("enemytt", "enemy" + i, _root.getNextHighestDepth());
_root["enemy" + i]._x = -27 - ((i * _root["enemy" + i]._xscale) / 4);
_root["enemy" + i]._y = 344;
_root["enemy" + i].vrag.gotoAndPlay(int(Math.random() * 25));
i++;
_root.attachMovie("enemytt", "enemy" + i, _root.getNextHighestDepth());
_root["enemy" + i]._x = -27 - ((i * _root["enemy" + i]._xscale) / 2);
_root["enemy" + i]._y = 84;
_root["enemy" + i].vrag.gotoAndPlay(int(Math.random() * 25));
if (i >= 25) {
_root.game = 0;
_root.volna = _root.volna + 1;
_root.vragi = 25;
break;
}
i++;
}
}
if (_root.volna == 21) {
_root.gold = _root.gold + 400;
_root.attachMovie("newwave", "newwave", _root.getNextHighestDepth());
_root.newwave._x = 323.5;
_root.newwave._y = 238;
i = 1;
while (i <= 25) {
_root.attachMovie("enemyg", "enemy" + i, _root.getNextHighestDepth());
_root["enemy" + i]._x = -27 - ((i * _root["enemy" + i]._xscale) / 3);
_root["enemy" + i]._y = 344;
_root["enemy" + i].vrag.gotoAndPlay(int(Math.random() * 25));
i++;
_root.attachMovie("enemyg", "enemy" + i, _root.getNextHighestDepth());
_root["enemy" + i]._x = -27 - ((i * _root["enemy" + i]._xscale) / 3);
_root["enemy" + i]._y = 84;
_root["enemy" + i].vrag.gotoAndPlay(int(Math.random() * 25));
if (i >= 25) {
_root.game = 0;
_root.volna = _root.volna + 1;
_root.vragi = 25;
break;
}
i++;
}
}
if (_root.volna == 20) {
_root.gold2 = _root.gold2 + 1;
_root.attachMovie("newwave", "newwave", _root.getNextHighestDepth());
_root.newwave._x = 323.5;
_root.newwave._y = 238;
i = 1;
while (i <= 24) {
_root.attachMovie("enemyg", "enemy" + i, _root.getNextHighestDepth());
_root["enemy" + i]._x = -27 - ((i * _root["enemy" + i]._xscale) / 2);
_root["enemy" + i]._y = 344;
_root["enemy" + i].vrag.gotoAndPlay(int(Math.random() * 25));
i++;
_root.attachMovie("enemyg", "enemy" + i, _root.getNextHighestDepth());
_root["enemy" + i]._x = -27 - ((i * _root["enemy" + i]._xscale) / 2);
_root["enemy" + i]._y = 84;
_root["enemy" + i].vrag.gotoAndPlay(int(Math.random() * 25));
if (i >= 24) {
_root.game = 0;
_root.volna = _root.volna + 1;
_root.vragi = 24;
break;
}
i++;
}
}
if (_root.volna == 19) {
_root.attachMovie("newwave", "newwave", _root.getNextHighestDepth());
_root.newwave._x = 323.5;
_root.newwave._y = 238;
i = 1;
while (i <= 20) {
_root.attachMovie("enemytt", "enemy" + i, _root.getNextHighestDepth());
_root["enemy" + i]._x = -27 - ((i * _root["enemy" + i]._xscale) / 2);
_root["enemy" + i]._y = 344;
_root["enemy" + i].vrag.gotoAndPlay(int(Math.random() * 25));
i++;
_root.attachMovie("enemyff", "enemy" + i, _root.getNextHighestDepth());
_root["enemy" + i]._x = -27 - ((i * _root["enemy" + i]._xscale) / 2);
_root["enemy" + i]._y = 84;
_root["enemy" + i].vrag.gotoAndPlay(int(Math.random() * 25));
if (i >= 20) {
_root.game = 0;
_root.volna = _root.volna + 1;
_root.vragi = 20;
break;
}
i++;
}
}
if (_root.volna == 18) {
_root.attachMovie("newwave", "newwave", _root.getNextHighestDepth());
_root.newwave._x = 323.5;
_root.newwave._y = 238;
i = 1;
while (i <= 20) {
_root.attachMovie("enemyff", "enemy" + i, _root.getNextHighestDepth());
_root["enemy" + i]._x = -27 - ((i * _root["enemy" + i]._xscale) / 2);
_root["enemy" + i]._y = 344;
_root["enemy" + i].vrag.gotoAndPlay(int(Math.random() * 25));
i++;
_root.attachMovie("enemyff", "enemy" + i, _root.getNextHighestDepth());
_root["enemy" + i]._x = -27 - ((i * _root["enemy" + i]._xscale) / 2);
_root["enemy" + i]._y = 84;
_root["enemy" + i].vrag.gotoAndPlay(int(Math.random() * 25));
if (i >= 20) {
_root.game = 0;
_root.volna = _root.volna + 1;
_root.vragi = 20;
break;
}
i++;
}
}
if (_root.volna == 17) {
_root.attachMovie("newwave", "newwave", _root.getNextHighestDepth());
_root.newwave._x = 323.5;
_root.newwave._y = 238;
i = 1;
while (i <= 25) {
_root.attachMovie("enemyf", "enemy" + i, _root.getNextHighestDepth());
_root["enemy" + i]._x = -27 - ((i * _root["enemy" + i]._xscale) / 3);
_root["enemy" + i]._y = 344;
_root["enemy" + i].vrag.gotoAndPlay(int(Math.random() * 25));
i++;
_root.attachMovie("enemyddd", "enemy" + i, _root.getNextHighestDepth());
_root["enemy" + i]._x = -27 - ((i * _root["enemy" + i]._xscale) / 3);
_root["enemy" + i]._y = 84;
_root["enemy" + i].vrag.gotoAndPlay(int(Math.random() * 25));
if (i >= 25) {
_root.game = 0;
_root.volna = _root.volna + 1;
_root.vragi = 25;
break;
}
i++;
}
}
if (_root.volna == 16) {
_root.attachMovie("newwave", "newwave", _root.getNextHighestDepth());
_root.newwave._x = 323.5;
_root.newwave._y = 238;
i = 1;
while (i <= 28) {
_root.attachMovie("enemyrr", "enemy" + i, _root.getNextHighestDepth());
_root["enemy" + i]._x = -27 - ((i * _root["enemy" + i]._xscale) / 2);
_root["enemy" + i]._y = 344;
_root["enemy" + i].vrag.gotoAndPlay(int(Math.random() * 25));
i++;
_root.attachMovie("enemysss", "enemy" + i, _root.getNextHighestDepth());
_root["enemy" + i]._x = -27 - ((i * _root["enemy" + i]._xscale) / 6);
_root["enemy" + i]._y = 84;
_root["enemy" + i].vrag.gotoAndPlay(int(Math.random() * 25));
if (i >= 28) {
_root.game = 0;
_root.volna = _root.volna + 1;
_root.vragi = 28;
break;
}
i++;
}
}
if (_root.volna == 15) {
_root.gold2 = _root.gold2 + 1;
_root.attachMovie("newwave", "newwave", _root.getNextHighestDepth());
_root.newwave._x = 323.5;
_root.newwave._y = 238;
i = 1;
while (i <= 25) {
_root.attachMovie("enemyrr", "enemy" + i, _root.getNextHighestDepth());
_root["enemy" + i]._x = -27 - ((i * _root["enemy" + i]._xscale) / 2);
_root["enemy" + i]._y = 344;
_root["enemy" + i].vrag.gotoAndPlay(int(Math.random() * 25));
i++;
_root.attachMovie("enemyrr", "enemy" + i, _root.getNextHighestDepth());
_root["enemy" + i]._x = -27 - ((i * _root["enemy" + i]._xscale) / 2);
_root["enemy" + i]._y = 84;
_root["enemy" + i].vrag.gotoAndPlay(int(Math.random() * 25));
if (i >= 25) {
_root.game = 0;
_root.volna = _root.volna + 1;
_root.vragi = 25;
break;
}
i++;
}
}
if (_root.volna == 14) {
_root.attachMovie("newwave", "newwave", _root.getNextHighestDepth());
_root.newwave._x = 323.5;
_root.newwave._y = 238;
i = 1;
while (i <= 20) {
_root.attachMovie("enemyr", "enemy" + i, _root.getNextHighestDepth());
_root["enemy" + i]._x = -27 - ((i * _root["enemy" + i]._xscale) / 3);
_root["enemy" + i]._y = 344;
_root["enemy" + i].vrag.gotoAndPlay(int(Math.random() * 25));
i++;
_root.attachMovie("enemyr", "enemy" + i, _root.getNextHighestDepth());
_root["enemy" + i]._x = -27 - ((i * _root["enemy" + i]._xscale) / 3);
_root["enemy" + i]._y = 84;
_root["enemy" + i].vrag.gotoAndPlay(int(Math.random() * 25));
if (i >= 20) {
_root.game = 0;
_root.volna = _root.volna + 1;
_root.vragi = 20;
break;
}
i++;
}
}
if (_root.volna == 13) {
_root.attachMovie("newwave", "newwave", _root.getNextHighestDepth());
_root.newwave._x = 323.5;
_root.newwave._y = 238;
i = 1;
while (i <= 28) {
_root.attachMovie("enemyeee", "enemy" + i, _root.getNextHighestDepth());
_root["enemy" + i]._x = -27 - ((i * _root["enemy" + i]._xscale) / 3);
_root["enemy" + i]._y = 344;
_root["enemy" + i].vrag.gotoAndPlay(int(Math.random() * 25));
i++;
_root.attachMovie("enemydd", "enemy" + i, _root.getNextHighestDepth());
_root["enemy" + i]._x = -27 - ((i * _root["enemy" + i]._xscale) / 4);
_root["enemy" + i]._y = 84;
_root["enemy" + i].vrag.gotoAndPlay(int(Math.random() * 25));
if (i >= 28) {
_root.game = 0;
_root.volna = _root.volna + 1;
_root.vragi = 28;
break;
}
i++;
}
}
if (_root.volna == 12) {
_root.attachMovie("newwave", "newwave", _root.getNextHighestDepth());
_root.newwave._x = 323.5;
_root.newwave._y = 238;
i = 1;
while (i <= 20) {
_root.attachMovie("enemyr", "enemy" + i, _root.getNextHighestDepth());
_root["enemy" + i]._x = -27 - ((i * _root["enemy" + i]._xscale) / 2);
_root["enemy" + i]._y = 344;
_root["enemy" + i].vrag.gotoAndPlay(int(Math.random() * 25));
i++;
_root.attachMovie("enemyr", "enemy" + i, _root.getNextHighestDepth());
_root["enemy" + i]._x = -27 - ((i * _root["enemy" + i]._xscale) / 2);
_root["enemy" + i]._y = 84;
_root["enemy" + i].vrag.gotoAndPlay(int(Math.random() * 25));
if (i >= 20) {
_root.game = 0;
_root.volna = _root.volna + 1;
_root.vragi = 20;
break;
}
i++;
}
}
if (_root.volna == 11) {
_root.gold2 = _root.gold2 + 1;
_root.attachMovie("newwave", "newwave", _root.getNextHighestDepth());
_root.newwave._x = 323.5;
_root.newwave._y = 238;
i = 1;
while (i <= 27) {
_root.attachMovie("enemysss", "enemy" + i, _root.getNextHighestDepth());
_root["enemy" + i]._x = -27 - ((i * _root["enemy" + i]._xscale) / 4);
_root["enemy" + i]._y = 344;
_root["enemy" + i].vrag.gotoAndPlay(int(Math.random() * 25));
i++;
_root.attachMovie("enemysss", "enemy" + i, _root.getNextHighestDepth());
_root["enemy" + i]._x = -27 - ((i * _root["enemy" + i]._xscale) / 4);
_root["enemy" + i]._y = 84;
_root["enemy" + i].vrag.gotoAndPlay(int(Math.random() * 25));
if (i >= 27) {
_root.game = 0;
_root.volna = _root.volna + 1;
_root.vragi = 27;
break;
}
i++;
}
}
if (_root.volna == 10) {
_root.attachMovie("newwave", "newwave", _root.getNextHighestDepth());
_root.newwave._x = 323.5;
_root.newwave._y = 238;
i = 1;
while (i <= 26) {
_root.attachMovie("enemyeee", "enemy" + i, _root.getNextHighestDepth());
_root["enemy" + i]._x = -27 - ((i * _root["enemy" + i]._xscale) / 3);
_root["enemy" + i]._y = 344;
_root["enemy" + i].vrag.gotoAndPlay(int(Math.random() * 25));
i++;
_root.attachMovie("enemyeee", "enemy" + i, _root.getNextHighestDepth());
_root["enemy" + i]._x = -27 - ((i * _root["enemy" + i]._xscale) / 3);
_root["enemy" + i]._y = 84;
_root["enemy" + i].vrag.gotoAndPlay(int(Math.random() * 25));
if (i >= 26) {
_root.game = 0;
_root.volna = _root.volna + 1;
_root.vragi = 26;
break;
}
i++;
}
}
if (_root.volna == 9) {
_root.attachMovie("newwave", "newwave", _root.getNextHighestDepth());
_root.newwave._x = 323.5;
_root.newwave._y = 238;
i = 1;
while (i <= 20) {
_root.attachMovie("enemyee", "enemy" + i, _root.getNextHighestDepth());
_root["enemy" + i]._x = -27 - ((i * _root["enemy" + i]._xscale) / 4);
_root["enemy" + i]._y = 344;
_root["enemy" + i].vrag.gotoAndPlay(int(Math.random() * 25));
i++;
_root.attachMovie("enemyee", "enemy" + i, _root.getNextHighestDepth());
_root["enemy" + i]._x = -27 - ((i * _root["enemy" + i]._xscale) / 4);
_root["enemy" + i]._y = 84;
_root["enemy" + i].vrag.gotoAndPlay(int(Math.random() * 25));
if (i >= 20) {
_root.game = 0;
_root.volna = _root.volna + 1;
_root.vragi = 20;
break;
}
i++;
}
}
if (_root.volna == 8) {
_root.gold2 = _root.gold2 + 4;
_root.attachMovie("newwave", "newwave", _root.getNextHighestDepth());
_root.newwave._x = 323.5;
_root.newwave._y = 238;
i = 1;
while (i <= 28) {
_root.attachMovie("enemyd", "enemy" + i, _root.getNextHighestDepth());
_root["enemy" + i]._x = -27 - ((i * _root["enemy" + i]._xscale) / 4);
_root["enemy" + i]._y = 344;
_root["enemy" + i].vrag.gotoAndPlay(int(Math.random() * 25));
i++;
_root.attachMovie("enemye", "enemy" + i, _root.getNextHighestDepth());
_root["enemy" + i]._x = -27 - ((i * _root["enemy" + i]._xscale) / 4);
_root["enemy" + i]._y = 84;
_root["enemy" + i].vrag.gotoAndPlay(int(Math.random() * 25));
if (i >= 28) {
_root.game = 0;
_root.volna = _root.volna + 1;
_root.vragi = 28;
break;
}
i++;
}
}
if (_root.volna == 7) {
_root.attachMovie("newwave", "newwave", _root.getNextHighestDepth());
_root.newwave._x = 323.5;
_root.newwave._y = 238;
i = 1;
while (i <= 24) {
_root.attachMovie("enemyqqq", "enemy" + i, _root.getNextHighestDepth());
_root["enemy" + i]._x = -27 - ((i * _root["enemy" + i]._xscale) / 4);
_root["enemy" + i]._y = 344;
_root["enemy" + i].vrag.gotoAndPlay(int(Math.random() * 25));
i++;
_root.attachMovie("enemyaaa", "enemy" + i, _root.getNextHighestDepth());
_root["enemy" + i]._x = -27 - ((i * _root["enemy" + i]._xscale) / 4);
_root["enemy" + i]._y = 84;
_root["enemy" + i].vrag.gotoAndPlay(int(Math.random() * 25));
if (i >= 24) {
_root.game = 0;
_root.volna = _root.volna + 1;
_root.vragi = 24;
break;
}
i++;
}
}
if (_root.volna == 6) {
_root.attachMovie("newwave", "newwave", _root.getNextHighestDepth());
_root.newwave._x = 323.5;
_root.newwave._y = 238;
i = 1;
while (i <= 20) {
_root.attachMovie("enemyw", "enemy" + i, _root.getNextHighestDepth());
_root["enemy" + i]._x = -27 - ((i * _root["enemy" + i]._xscale) / 4);
_root["enemy" + i]._y = 344;
_root["enemy" + i].vrag.gotoAndPlay(int(Math.random() * 25));
i++;
_root.attachMovie("enemyqq", "enemy" + i, _root.getNextHighestDepth());
_root["enemy" + i]._x = -27 - ((i * _root["enemy" + i]._xscale) / 3);
_root["enemy" + i]._y = 84;
_root["enemy" + i].vrag.gotoAndPlay(int(Math.random() * 25));
if (i >= 20) {
_root.game = 0;
_root.volna = _root.volna + 1;
_root.vragi = 20;
break;
}
i++;
}
}
if (_root.volna == 5) {
_root.attachMovie("newwave", "newwave", _root.getNextHighestDepth());
_root.newwave._x = 323.5;
_root.newwave._y = 238;
i = 1;
while (i <= 28) {
_root.attachMovie("enemys", "enemy" + i, _root.getNextHighestDepth());
_root["enemy" + i]._x = -27 - ((i * _root["enemy" + i]._xscale) / 4);
_root["enemy" + i]._y = 344;
_root["enemy" + i].vrag.gotoAndPlay(int(Math.random() * 25));
i++;
_root.attachMovie("enemyqq", "enemy" + i, _root.getNextHighestDepth());
_root["enemy" + i]._x = -27 - ((i * _root["enemy" + i]._xscale) / 4);
_root["enemy" + i]._y = 84;
_root["enemy" + i].vrag.gotoAndPlay(int(Math.random() * 25));
if (i >= 28) {
_root.game = 0;
_root.volna = _root.volna + 1;
_root.vragi = 28;
break;
}
i++;
}
}
if (_root.volna == 4) {
_root.gold2 = _root.gold2 + 1;
_root.attachMovie("newwave", "newwave", _root.getNextHighestDepth());
_root.newwave._x = 323.5;
_root.newwave._y = 238;
i = 1;
while (i <= 25) {
_root.attachMovie("enemya", "enemy" + i, _root.getNextHighestDepth());
_root["enemy" + i]._x = -27 - ((i * _root["enemy" + i]._xscale) / 3);
_root["enemy" + i]._y = 344;
_root["enemy" + i].vrag.gotoAndPlay(int(Math.random() * 25));
i++;
_root.attachMovie("enemyaa", "enemy" + i, _root.getNextHighestDepth());
_root["enemy" + i]._x = -27 - ((i * _root["enemy" + i]._xscale) / 3);
_root["enemy" + i]._y = 84;
_root["enemy" + i].vrag.gotoAndPlay(int(Math.random() * 25));
if (i >= 25) {
_root.game = 0;
_root.volna = _root.volna + 1;
_root.vragi = 25;
break;
}
i++;
}
}
if (_root.volna == 3) {
_root.attachMovie("newwave", "newwave", _root.getNextHighestDepth());
_root.newwave._x = 323.5;
_root.newwave._y = 238;
i = 1;
while (i <= 20) {
_root.attachMovie("enemyq", "enemy" + i, _root.getNextHighestDepth());
_root["enemy" + i]._x = -27 - ((i * _root["enemy" + i]._xscale) / 3);
_root["enemy" + i]._y = 344;
_root["enemy" + i].vrag.gotoAndPlay(int(Math.random() * 25));
i++;
_root.attachMovie("enemyq", "enemy" + i, _root.getNextHighestDepth());
_root["enemy" + i]._x = -27 - ((i * _root["enemy" + i]._xscale) / 3);
_root["enemy" + i]._y = 84;
_root["enemy" + i].vrag.gotoAndPlay(int(Math.random() * 25));
if (i >= 20) {
_root.game = 0;
_root.volna = _root.volna + 1;
_root.vragi = 20;
break;
}
i++;
}
}
if (_root.volna == 2) {
_root.gold2 = _root.gold2 + 1;
_root.attachMovie("newwave", "newwave", _root.getNextHighestDepth());
_root.newwave._x = 323.5;
_root.newwave._y = 238;
i = 1;
while (i <= 28) {
_root.attachMovie("enemyyy", "enemy" + i, _root.getNextHighestDepth());
_root["enemy" + i]._x = -27 - ((i * _root["enemy" + i]._xscale) / 2);
_root["enemy" + i]._y = 344;
_root["enemy" + i].vrag.gotoAndPlay(int(Math.random() * 25));
i++;
_root.attachMovie("enemyyy", "enemy" + i, _root.getNextHighestDepth());
_root["enemy" + i]._x = -27 - ((i * _root["enemy" + i]._xscale) / 2);
_root["enemy" + i]._y = 84;
_root["enemy" + i].vrag.gotoAndPlay(int(Math.random() * 25));
if (i >= 28) {
_root.game = 0;
_root.volna = _root.volna + 1;
_root.vragi = 28;
break;
}
i++;
}
}
if (_root.volna == 1) {
_root.attachMovie("newwave", "newwave", _root.getNextHighestDepth());
_root.newwave._x = 323.5;
_root.newwave._y = 238;
i = 1;
while (i <= 20) {
_root.attachMovie("enemyy", "enemy" + i, _root.getNextHighestDepth());
_root["enemy" + i]._x = -27 - ((i * _root["enemy" + i]._xscale) / 4);
_root["enemy" + i]._y = 344;
_root["enemy" + i].vrag.gotoAndPlay(int(Math.random() * 25));
i++;
_root.attachMovie("enemyy", "enemy" + i, _root.getNextHighestDepth());
_root["enemy" + i]._x = -27 - ((i * _root["enemy" + i]._xscale) / 4);
_root["enemy" + i]._y = 84;
_root["enemy" + i].vrag.gotoAndPlay(int(Math.random() * 25));
if (i >= 20) {
_root.game = 0;
_root.volna = _root.volna + 1;
_root.vragi = 20;
break;
}
i++;
}
}
}
}
Frame 12
_root.giz = 100;
if (_root.tur == 1) {
_root.gotoAndStop("tur1");
}
if (_root.tur == 2) {
_root.gotoAndStop("tur2");
}
if (_root.tur == 3) {
_root.gotoAndStop("tur3");
}
Symbol 10 MovieClip Frame 1
stop();
Symbol 12 MovieClip [bas9] Frame 1
suc = 2;
Instance of Symbol 4 MovieClip in Symbol 12 MovieClip [bas9] Frame 1
onClipEvent (load) {
this._xscale = this._xscale + 30;
this._yscale = this._yscale + 30;
}
Instance of Symbol 7 MovieClip "mogno" in Symbol 12 MovieClip [bas9] Frame 1
onClipEvent (enterFrame) {
_parent._x = _root._xmouse;
_parent._y = _root._ymouse;
}
onClipEvent (enterFrame) {
p = 0;
i = 1;
while (i < _root.perZon) {
if (this.hitTest(_root["zona" + i])) {
_parent.mogno.gotoAndStop(1);
p = 1;
}
i++;
}
p2 = 2;
j = 1;
while (j < _root.basPer) {
if (this.hitTest(_root["basna" + j].basna)) {
_parent.mogno.gotoAndStop(1);
p2 = 3;
}
j++;
}
if ((p2 == 2) & (p == 0)) {
_parent.mogno.gotoAndStop(2);
}
}
onClipEvent (mouseDown) {
i = 1;
while (i < 10) {
if (_parent.mogno._currentframe == 2) {
but = new Sound();
but.attachSound("buy");
but.start(0, 0);
_root.attachMovie("basna9", "basna" + _root.basPer, _root.getNextHighestDepth());
_root["basna" + _root.basPer]._x = _parent._x;
_root["basna" + _root.basPer]._y = _parent._y;
_root["basna" + _root.basPer].kadr = 2;
_root.basPer++;
_root.gold = _root.gold - 500;
_root.kolicBasd = _root.kolicBasd + 1;
_root.panelNiz.b1 = _root.panelNiz.b1 + 1;
_parent.removeMovieClip();
}
i++;
}
}
Symbol 13 MovieClip [bas8] Frame 1
suc = 2;
Instance of Symbol 4 MovieClip in Symbol 13 MovieClip [bas8] Frame 1
onClipEvent (load) {
this._xscale = this._xscale + 40;
this._yscale = this._yscale + 40;
}
Instance of Symbol 7 MovieClip "mogno" in Symbol 13 MovieClip [bas8] Frame 1
onClipEvent (enterFrame) {
_parent._x = _root._xmouse;
_parent._y = _root._ymouse;
}
onClipEvent (enterFrame) {
p = 0;
i = 1;
while (i < _root.perZon) {
if (this.hitTest(_root["zona" + i])) {
_parent.mogno.gotoAndStop(1);
p = 1;
}
i++;
}
p2 = 2;
j = 1;
while (j < _root.basPer) {
if (this.hitTest(_root["basna" + j].basna)) {
_parent.mogno.gotoAndStop(1);
p2 = 3;
}
j++;
}
if ((p2 == 2) & (p == 0)) {
_parent.mogno.gotoAndStop(2);
}
}
onClipEvent (mouseDown) {
i = 1;
while (i < 10) {
if (_parent.mogno._currentframe == 2) {
but = new Sound();
but.attachSound("buy");
but.start(0, 0);
_root.attachMovie("basna8", "basna" + _root.basPer, _root.getNextHighestDepth());
_root["basna" + _root.basPer]._x = _parent._x;
_root["basna" + _root.basPer]._y = _parent._y;
_root["basna" + _root.basPer].kadr = 2;
_root.basPer++;
_root.gold = _root.gold - 650;
_root.kolicBasd = _root.kolicBasd + 1;
_root.panelNiz.b1 = _root.panelNiz.b1 + 1;
_parent.removeMovieClip();
}
i++;
}
}
Symbol 14 MovieClip [bas7] Frame 1
suc = 2;
Instance of Symbol 4 MovieClip in Symbol 14 MovieClip [bas7] Frame 1
onClipEvent (load) {
this._xscale = this._xscale + 30;
this._yscale = this._yscale + 30;
}
Instance of Symbol 7 MovieClip "mogno" in Symbol 14 MovieClip [bas7] Frame 1
onClipEvent (enterFrame) {
_parent._x = _root._xmouse;
_parent._y = _root._ymouse;
}
onClipEvent (enterFrame) {
p = 0;
i = 1;
while (i < _root.perZon) {
if (this.hitTest(_root["zona" + i])) {
_parent.mogno.gotoAndStop(1);
p = 1;
}
i++;
}
p2 = 2;
j = 1;
while (j < _root.basPer) {
if (this.hitTest(_root["basna" + j].basna)) {
_parent.mogno.gotoAndStop(1);
p2 = 3;
}
j++;
}
if ((p2 == 2) & (p == 0)) {
_parent.mogno.gotoAndStop(2);
}
}
onClipEvent (mouseDown) {
i = 1;
while (i < 10) {
if (_parent.mogno._currentframe == 2) {
but = new Sound();
but.attachSound("buy");
but.start(0, 0);
_root.attachMovie("basna7", "basna" + _root.basPer, _root.getNextHighestDepth());
_root["basna" + _root.basPer]._x = _parent._x;
_root["basna" + _root.basPer]._y = _parent._y;
_root["basna" + _root.basPer].kadr = 2;
_root.basPer++;
_root.gold = _root.gold - 500;
_root.kolicBasd = _root.kolicBasd + 1;
_root.panelNiz.b1 = _root.panelNiz.b1 + 1;
_parent.removeMovieClip();
}
i++;
}
}
Symbol 15 MovieClip [bas6] Frame 1
suc = 2;
Instance of Symbol 4 MovieClip in Symbol 15 MovieClip [bas6] Frame 1
onClipEvent (load) {
this._xscale = this._xscale + 10;
this._yscale = this._yscale + 10;
}
Instance of Symbol 7 MovieClip "mogno" in Symbol 15 MovieClip [bas6] Frame 1
onClipEvent (enterFrame) {
_parent._x = _root._xmouse;
_parent._y = _root._ymouse;
}
onClipEvent (enterFrame) {
p = 0;
i = 1;
while (i < _root.perZon) {
if (this.hitTest(_root["zona" + i])) {
_parent.mogno.gotoAndStop(1);
p = 1;
}
i++;
}
p2 = 2;
j = 1;
while (j < _root.basPer) {
if (this.hitTest(_root["basna" + j].basna)) {
_parent.mogno.gotoAndStop(1);
p2 = 3;
}
j++;
}
if ((p2 == 2) & (p == 0)) {
_parent.mogno.gotoAndStop(2);
}
}
onClipEvent (mouseDown) {
i = 1;
while (i < 10) {
if (_parent.mogno._currentframe == 2) {
but = new Sound();
but.attachSound("buy");
but.start(0, 0);
_root.attachMovie("basna6", "basna" + _root.basPer, _root.getNextHighestDepth());
_root["basna" + _root.basPer]._x = _parent._x;
_root["basna" + _root.basPer]._y = _parent._y;
_root["basna" + _root.basPer].kadr = 2;
_root.basPer++;
_root.gold = _root.gold - 200;
_root.kolicBasd = _root.kolicBasd + 1;
_root.panelNiz.b1 = _root.panelNiz.b1 + 1;
_parent.removeMovieClip();
}
i++;
}
}
Symbol 16 MovieClip [bas5] Frame 1
suc = 2;
Instance of Symbol 4 MovieClip in Symbol 16 MovieClip [bas5] Frame 1
onClipEvent (load) {
this._xscale = this._xscale + 160;
this._yscale = this._yscale + 160;
}
Instance of Symbol 7 MovieClip "mogno" in Symbol 16 MovieClip [bas5] Frame 1
onClipEvent (enterFrame) {
_parent._x = _root._xmouse;
_parent._y = _root._ymouse;
}
onClipEvent (enterFrame) {
p = 0;
i = 1;
while (i < _root.perZon) {
if (this.hitTest(_root["zona" + i])) {
_parent.mogno.gotoAndStop(1);
p = 1;
}
i++;
}
p2 = 2;
j = 1;
while (j < _root.basPer) {
if (this.hitTest(_root["basna" + j].basna)) {
_parent.mogno.gotoAndStop(1);
p2 = 3;
}
j++;
}
if ((p2 == 2) & (p == 0)) {
_parent.mogno.gotoAndStop(2);
}
}
onClipEvent (mouseDown) {
i = 1;
while (i < 10) {
if (_parent.mogno._currentframe == 2) {
but = new Sound();
but.attachSound("buy");
but.start(0, 0);
_root.attachMovie("basna5", "basna" + _root.basPer, _root.getNextHighestDepth());
_root["basna" + _root.basPer]._x = _parent._x;
_root["basna" + _root.basPer]._y = _parent._y;
_root["basna" + _root.basPer].kadr = 2;
_root.basPer++;
_root.gold = _root.gold - 250;
_root.kolicBasd = _root.kolicBasd + 1;
_root.panelNiz.b1 = _root.panelNiz.b1 + 1;
_parent.removeMovieClip();
}
i++;
}
}
Symbol 17 MovieClip [bas4] Frame 1
suc = 2;
Instance of Symbol 4 MovieClip in Symbol 17 MovieClip [bas4] Frame 1
onClipEvent (load) {
this._xscale = this._xscale + 40;
this._yscale = this._yscale + 40;
}
Instance of Symbol 7 MovieClip "mogno" in Symbol 17 MovieClip [bas4] Frame 1
onClipEvent (enterFrame) {
_parent._x = _root._xmouse;
_parent._y = _root._ymouse;
}
onClipEvent (enterFrame) {
p = 0;
i = 1;
while (i < _root.perZon) {
if (this.hitTest(_root["zona" + i])) {
_parent.mogno.gotoAndStop(1);
p = 1;
}
i++;
}
p2 = 2;
j = 1;
while (j < _root.basPer) {
if (this.hitTest(_root["basna" + j].basna)) {
_parent.mogno.gotoAndStop(1);
p2 = 3;
}
j++;
}
if ((p2 == 2) & (p == 0)) {
_parent.mogno.gotoAndStop(2);
}
}
onClipEvent (mouseDown) {
i = 1;
while (i < 10) {
if (_parent.mogno._currentframe == 2) {
but = new Sound();
but.attachSound("buy");
but.start(0, 0);
_root.attachMovie("basna4", "basna" + _root.basPer, _root.getNextHighestDepth());
_root["basna" + _root.basPer]._x = _parent._x;
_root["basna" + _root.basPer]._y = _parent._y;
_root["basna" + _root.basPer].kadr = 2;
_root.basPer++;
_root.gold = _root.gold - 240;
_root.kolicBasd = _root.kolicBasd + 1;
_root.panelNiz.b1 = _root.panelNiz.b1 + 1;
_parent.removeMovieClip();
}
i++;
}
}
Symbol 18 MovieClip [bas3] Frame 1
suc = 2;
Instance of Symbol 4 MovieClip in Symbol 18 MovieClip [bas3] Frame 1
onClipEvent (load) {
this._xscale = this._xscale + 20;
this._yscale = this._yscale + 20;
}
Instance of Symbol 7 MovieClip "mogno" in Symbol 18 MovieClip [bas3] Frame 1
onClipEvent (enterFrame) {
_parent._x = _root._xmouse;
_parent._y = _root._ymouse;
}
onClipEvent (enterFrame) {
p = 0;
i = 1;
while (i < _root.perZon) {
if (this.hitTest(_root["zona" + i])) {
_parent.mogno.gotoAndStop(1);
p = 1;
}
i++;
}
p2 = 2;
j = 1;
while (j < _root.basPer) {
if (this.hitTest(_root["basna" + j].basna)) {
_parent.mogno.gotoAndStop(1);
p2 = 3;
}
j++;
}
if ((p2 == 2) & (p == 0)) {
_parent.mogno.gotoAndStop(2);
}
}
onClipEvent (mouseDown) {
i = 1;
while (i < 10) {
if (_parent.mogno._currentframe == 2) {
but = new Sound();
but.attachSound("buy");
but.start(0, 0);
_root.attachMovie("basna3", "basna" + _root.basPer, _root.getNextHighestDepth());
_root["basna" + _root.basPer]._x = _parent._x;
_root["basna" + _root.basPer]._y = _parent._y;
_root["basna" + _root.basPer].kadr = 2;
_root.basPer++;
_root.gold = _root.gold - 150;
_root.kolicBasd = _root.kolicBasd + 1;
_root.panelNiz.b1 = _root.panelNiz.b1 + 1;
_parent.removeMovieClip();
}
i++;
}
}
Symbol 19 MovieClip [bas2] Frame 1
suc = 2;
Instance of Symbol 4 MovieClip in Symbol 19 MovieClip [bas2] Frame 1
onClipEvent (load) {
this._xscale = this._xscale + 10;
this._yscale = this._yscale + 10;
}
Instance of Symbol 7 MovieClip "mogno" in Symbol 19 MovieClip [bas2] Frame 1
onClipEvent (enterFrame) {
_parent._x = _root._xmouse;
_parent._y = _root._ymouse;
}
onClipEvent (enterFrame) {
p = 0;
i = 1;
while (i < _root.perZon) {
if (this.hitTest(_root["zona" + i])) {
_parent.mogno.gotoAndStop(1);
p = 1;
}
i++;
}
p2 = 2;
j = 1;
while (j < _root.basPer) {
if (this.hitTest(_root["basna" + j].basna)) {
_parent.mogno.gotoAndStop(1);
p2 = 3;
}
j++;
}
if ((p2 == 2) & (p == 0)) {
_parent.mogno.gotoAndStop(2);
}
}
onClipEvent (mouseDown) {
i = 1;
while (i < 10) {
if (_parent.mogno._currentframe == 2) {
but = new Sound();
but.attachSound("buy");
but.start(0, 0);
_root.attachMovie("basna2", "basna" + _root.basPer, _root.getNextHighestDepth());
_root["basna" + _root.basPer]._x = _parent._x;
_root["basna" + _root.basPer]._y = _parent._y;
_root["basna" + _root.basPer].kadr = 2;
_root.basPer++;
_root.gold = _root.gold - 100;
_root.kolicBasd = _root.kolicBasd + 1;
_root.panelNiz.b1 = _root.panelNiz.b1 + 1;
_parent.removeMovieClip();
}
i++;
}
}
Symbol 20 MovieClip [bas1] Frame 1
suc = 2;
Instance of Symbol 7 MovieClip "mogno" in Symbol 20 MovieClip [bas1] Frame 1
onClipEvent (enterFrame) {
_parent._x = _root._xmouse;
_parent._y = _root._ymouse;
}
onClipEvent (enterFrame) {
p = 0;
i = 1;
while (i < _root.perZon) {
if (this.hitTest(_root["zona" + i])) {
_parent.mogno.gotoAndStop(1);
p = 1;
}
i++;
}
p2 = 2;
j = 1;
while (j < _root.basPer) {
if (this.hitTest(_root["basna" + j].basna)) {
_parent.mogno.gotoAndStop(1);
p2 = 3;
}
j++;
}
if ((p2 == 2) & (p == 0)) {
_parent.mogno.gotoAndStop(2);
}
}
onClipEvent (mouseDown) {
i = 1;
while (i < 10) {
if (_parent.mogno._currentframe == 2) {
but = new Sound();
but.attachSound("buy");
but.start(0, 0);
_root.attachMovie("basna1", "basna" + _root.basPer, _root.getNextHighestDepth());
_root["basna" + _root.basPer]._x = _parent._x;
_root["basna" + _root.basPer]._y = _parent._y;
_root["basna" + _root.basPer].kadr = 2;
_root.basPer++;
_root.gold = _root.gold - 50;
_root.kolicBasd = _root.kolicBasd + 1;
_root.panelNiz.b1 = _root.panelNiz.b1 + 1;
_parent.removeMovieClip();
}
i++;
}
}
Symbol 22 MovieClip Frame 1
stop();
Symbol 35 MovieClip Frame 12
stop();
Symbol 46 MovieClip [basna10] Frame 1
stop();
Instance of Symbol 37 MovieClip "rad" in Symbol 46 MovieClip [basna10] Frame 1
onClipEvent (load) {
vr = 0;
vrr = 20;
}
onClipEvent (enterFrame) {
vr++;
if (vr < (vrr * 0.01)) {
_parent.zagr.gotoAndStop(1);
} else if ((vr >= (vrr * 0.01)) & (vr < (vrr * 0.1))) {
_parent.zagr.gotoAndStop(2);
} else if ((vr >= (vrr * 0.1)) & (vr < (vrr * 0.2))) {
_parent.zagr.gotoAndStop(3);
} else if ((vr >= (vrr * 0.2)) & (vr < (vrr * 0.3))) {
_parent.zagr.gotoAndStop(4);
} else if ((vr >= (vrr * 0.3)) & (vr < (vrr * 0.4))) {
_parent.zagr.gotoAndStop(5);
} else if ((vr >= (vrr * 0.4)) & (vr < (vrr * 0.5))) {
_parent.zagr.gotoAndStop(6);
} else if ((vr >= (vrr * 0.5)) & (vr < (vrr * 0.6))) {
_parent.zagr.gotoAndStop(7);
} else if ((vr >= (vrr * 0.6)) & (vr < (vrr * 0.7))) {
_parent.zagr.gotoAndStop(8);
} else if ((vr >= (vrr * 0.7)) & (vr < (vrr * 0.8))) {
_parent.zagr.gotoAndStop(9);
} else if ((vr >= (vrr * 0.8)) & (vr < (vrr * 0.9))) {
_parent.zagr.gotoAndStop(10);
} else if ((vr >= (vrr * 0.9)) & (vr < vrr)) {
_parent.zagr.gotoAndStop(11);
} else if (vr >= vrr) {
_parent.gotoAndStop(_parent.kadr);
}
}
Instance of Symbol 39 MovieClip "dan" in Symbol 46 MovieClip [basna10] Frame 1
onClipEvent (load) {
ataka = 5;
sko = 1;
skor = 40;
radius = 50;
xp = 0;
stoim = 150;
i = 1;
while (i < (_root.basPer + 1)) {
if (_parent._name == ("basna" + i)) {
ima = i;
}
i++;
}
}
onClipEvent (mouseDown) {
if (this.hitTest(_root.kurs)) {
i = 1;
while (i < (_root.basPer + 1)) {
_root["basna" + i].obvodka.gotoAndStop(1);
i++;
}
_parent.obvodka.gotoAndStop(2);
_root.tablic.gotoAndStop("bas10");
_root.tablic.ataka = ataka;
_root.tablic.sko = sko;
_root.tablic.radius = radius;
_root.tablic.xp = xp;
_root.tablic.xp2 = "/50";
_root.tablic.stoim = stoim;
_root.tablic.ima = ima;
if ((_root.gold2 >= 1) & (_parent._currentframe != _parent._totalframes)) {
_root.tablic.knApg._visible = 1;
} else {
_root.tablic.knApg._visible = 0;
}
if (xp >= 50) {
_root.tablic.knAta._visible = 1;
if (sko > 0.2) {
_root.tablic.knSko._visible = 1;
}
_root.tablic.knDal._visible = 1;
} else {
_root.tablic.knAta._visible = 0;
_root.tablic.knSko._visible = 0;
_root.tablic.knDal._visible = 0;
}
}
}
Instance of Symbol 37 MovieClip "rad" in Symbol 46 MovieClip [basna10] Frame 2
onClipEvent (load) {
_parent.stvol._rotation = vracenie;
}
onClipEvent (enterFrame) {
if (_parent.basna.hitTest(_root.kurs)) {
_parent.rad._alpha = 100;
} else {
_parent.rad._alpha = 0;
}
if (_parent.dan.xp >= 50) {
_parent.dan.xp = 50;
_parent.basna.lev.gotoAndStop(2);
}
vr++;
d = 1;
i = 1;
while (i < _root.perVrag) {
if ((((d == 1) & (_parent.stvol._currentframe == 1)) & (_root["enemy" + i]._currentframe == 1)) & this.hitTest(_root["enemy" + i])) {
dx = _root["enemy" + i]._x - _parent._x;
dy = _root["enemy" + i]._y - _parent._y;
ugol = Math.atan2(dx, dy);
vracenie = (ugol * 360) / -6.28318530717959;
d = 0;
if (vr >= _parent.dan.skor) {
_root["enemy" + i].vrag.giz = _root["enemy" + i].vrag.giz - _parent.dan.ataka;
_parent.dan.xp = _parent.dan.xp + 1;
_parent.stvol.gotoAndPlay("vas");
vr = 0;
}
}
i++;
}
if (vr < (_parent.dan.skor * 0.01)) {
_parent.zagr.gotoAndStop(1);
} else if ((vr >= (_parent.dan.skor * 0.01)) & (vr < (_parent.dan.skor * 0.1))) {
_parent.zagr.gotoAndStop(2);
} else if ((vr >= (_parent.dan.skor * 0.1)) & (vr < (_parent.dan.skor * 0.2))) {
_parent.zagr.gotoAndStop(3);
} else if ((vr >= (_parent.dan.skor * 0.2)) & (vr < (_parent.dan.skor * 0.3))) {
_parent.zagr.gotoAndStop(4);
} else if ((vr >= (_parent.dan.skor * 0.3)) & (vr < (_parent.dan.skor * 0.4))) {
_parent.zagr.gotoAndStop(5);
} else if ((vr >= (_parent.dan.skor * 0.4)) & (vr < (_parent.dan.skor * 0.5))) {
_parent.zagr.gotoAndStop(6);
} else if ((vr >= (_parent.dan.skor * 0.5)) & (vr < (_parent.dan.skor * 0.6))) {
_parent.zagr.gotoAndStop(7);
} else if ((vr >= (_parent.dan.skor * 0.6)) & (vr < (_parent.dan.skor * 0.7))) {
_parent.zagr.gotoAndStop(8);
} else if ((vr >= (_parent.dan.skor * 0.7)) & (vr < (_parent.dan.skor * 0.8))) {
_parent.zagr.gotoAndStop(9);
} else if ((vr >= (_parent.dan.skor * 0.8)) & (vr < (_parent.dan.skor * 0.9))) {
_parent.zagr.gotoAndStop(10);
} else if ((vr >= (_parent.dan.skor * 0.9)) & (vr < _parent.dan.skor)) {
_parent.zagr.gotoAndStop(11);
} else if (vr >= _parent.dan.skor) {
_parent.zagr.gotoAndStop(12);
}
}
Symbol 51 MovieClip Frame 1
stop();
Symbol 54 MovieClip Frame 1
stop();
Symbol 56 MovieClip Frame 1
stop();
Symbol 57 MovieClip [basna9] Frame 1
stop();
Instance of Symbol 37 MovieClip "rad" in Symbol 57 MovieClip [basna9] Frame 1
onClipEvent (load) {
vr = 0;
vrr = 200;
}
onClipEvent (enterFrame) {
if (_root.smert == 0) {
vr++;
if (vr < (vrr * 0.01)) {
_parent.zagr.gotoAndStop(1);
} else if ((vr >= (vrr * 0.01)) & (vr < (vrr * 0.1))) {
_parent.zagr.gotoAndStop(2);
} else if ((vr >= (vrr * 0.1)) & (vr < (vrr * 0.2))) {
_parent.zagr.gotoAndStop(3);
} else if ((vr >= (vrr * 0.2)) & (vr < (vrr * 0.3))) {
_parent.zagr.gotoAndStop(4);
} else if ((vr >= (vrr * 0.3)) & (vr < (vrr * 0.4))) {
_parent.zagr.gotoAndStop(5);
} else if ((vr >= (vrr * 0.4)) & (vr < (vrr * 0.5))) {
_parent.zagr.gotoAndStop(6);
} else if ((vr >= (vrr * 0.5)) & (vr < (vrr * 0.6))) {
_parent.zagr.gotoAndStop(7);
} else if ((vr >= (vrr * 0.6)) & (vr < (vrr * 0.7))) {
_parent.zagr.gotoAndStop(8);
} else if ((vr >= (vrr * 0.7)) & (vr < (vrr * 0.8))) {
_parent.zagr.gotoAndStop(9);
} else if ((vr >= (vrr * 0.8)) & (vr < (vrr * 0.9))) {
_parent.zagr.gotoAndStop(10);
} else if ((vr >= (vrr * 0.9)) & (vr < vrr)) {
_parent.zagr.gotoAndStop(11);
} else if (vr >= vrr) {
_parent.gotoAndStop(_parent.kadr);
}
}
}
Instance of Symbol 39 MovieClip "dan" in Symbol 57 MovieClip [basna9] Frame 1
onClipEvent (load) {
ataka = 25;
sko = 0.8;
skor = 32;
radius = 70;
xp = 0;
stoim = 400;
i = 1;
while (i < (_root.basPer + 1)) {
if (_parent._name == ("basna" + i)) {
ima = i;
}
i++;
}
}
onClipEvent (mouseDown) {
if (this.hitTest(_root.kurs)) {
i = 1;
while (i < (_root.basPer + 1)) {
_root["basna" + i].obvodka.gotoAndStop(1);
i++;
}
_parent.obvodka.gotoAndStop(2);
_root.tablic.gotoAndStop("bas9");
_root.tablic.ataka = ataka;
_root.tablic.sko = sko;
_root.tablic.radius = radius;
_root.tablic.xp = xp;
_root.tablic.xp2 = "/60";
_root.tablic.stoim = stoim;
_root.tablic.ima = ima;
if ((_root.gold2 >= 1) & (_parent._currentframe != _parent._totalframes)) {
_root.tablic.knApg._visible = 1;
} else {
_root.tablic.knApg._visible = 0;
}
if (xp >= 50) {
_root.tablic.knAta._visible = 1;
if (sko > 0.21) {
_root.tablic.knSko._visible = 1;
} else {
_root.tablic.knSko._visible = 0;
}
_root.tablic.knDal._visible = 1;
} else {
_root.tablic.knAta._visible = 0;
_root.tablic.knSko._visible = 0;
_root.tablic.knDal._visible = 0;
}
}
}
Instance of Symbol 37 MovieClip "rad" in Symbol 57 MovieClip [basna9] Frame 2
onClipEvent (load) {
vr = _parent.dan.skor;
dx = -_parent._x;
dy = -_parent._y;
ugol = Math.atan2(dx, dy);
vracenie = (ugol * 360) / -6.28318530717959;
_parent.stvol._rotation = vracenie;
this._xscale = this._xscale + 30;
this._yscale = this._yscale + 30;
}
onClipEvent (enterFrame) {
if (_root.smert == 0) {
if (_parent.basna.hitTest(_root.kurs)) {
_parent.rad._alpha = 100;
} else {
_parent.rad._alpha = 0;
}
if (_parent.dan.xp >= 50) {
_parent.dan.xp = 50;
_parent.basna.lev.gotoAndStop(2);
}
vr++;
d = 1;
i = 1;
while (i < _root.perVrag) {
if (((((d == 1) & (_parent.stvol._currentframe == 1)) & (_root["enemy" + i]._currentframe == 1)) & (_root["enemy" + i].vrag.tip == 1)) & this.hitTest(_root["enemy" + i])) {
dx = _root["enemy" + i]._x - _parent._x;
dy = _root["enemy" + i]._y - _parent._y;
ugol = Math.atan2(dx, dy);
vracenie = (ugol * 360) / -6.28318530717959;
_parent.stvol._rotation = vracenie;
d = 0;
if (vr >= _parent.dan.skor) {
_root["enemy" + i].vrag.giz = _root["enemy" + i].vrag.giz - _parent.dan.ataka;
_parent.dan.xp = _parent.dan.xp + 1;
_parent.stvol.gotoAndPlay("vas");
vr = 0;
}
}
i++;
}
if (vr < (_parent.dan.skor * 0.01)) {
_parent.zagr.gotoAndStop(1);
} else if ((vr >= (_parent.dan.skor * 0.01)) & (vr < (_parent.dan.skor * 0.1))) {
_parent.zagr.gotoAndStop(2);
} else if ((vr >= (_parent.dan.skor * 0.1)) & (vr < (_parent.dan.skor * 0.2))) {
_parent.zagr.gotoAndStop(3);
} else if ((vr >= (_parent.dan.skor * 0.2)) & (vr < (_parent.dan.skor * 0.3))) {
_parent.zagr.gotoAndStop(4);
} else if ((vr >= (_parent.dan.skor * 0.3)) & (vr < (_parent.dan.skor * 0.4))) {
_parent.zagr.gotoAndStop(5);
} else if ((vr >= (_parent.dan.skor * 0.4)) & (vr < (_parent.dan.skor * 0.5))) {
_parent.zagr.gotoAndStop(6);
} else if ((vr >= (_parent.dan.skor * 0.5)) & (vr < (_parent.dan.skor * 0.6))) {
_parent.zagr.gotoAndStop(7);
} else if ((vr >= (_parent.dan.skor * 0.6)) & (vr < (_parent.dan.skor * 0.7))) {
_parent.zagr.gotoAndStop(8);
} else if ((vr >= (_parent.dan.skor * 0.7)) & (vr < (_parent.dan.skor * 0.8))) {
_parent.zagr.gotoAndStop(9);
} else if ((vr >= (_parent.dan.skor * 0.8)) & (vr < (_parent.dan.skor * 0.9))) {
_parent.zagr.gotoAndStop(10);
} else if ((vr >= (_parent.dan.skor * 0.9)) & (vr < _parent.dan.skor)) {
_parent.zagr.gotoAndStop(11);
} else if (vr >= _parent.dan.skor) {
_parent.zagr.gotoAndStop(12);
}
}
}
Symbol 62 MovieClip Frame 1
stop();
Symbol 67 MovieClip Frame 1
stop();
Symbol 70 MovieClip Frame 1
stop();
Symbol 71 MovieClip [basna8] Frame 1
stop();
Instance of Symbol 37 MovieClip "rad" in Symbol 71 MovieClip [basna8] Frame 1
onClipEvent (load) {
vr = 0;
vrr = 220;
}
onClipEvent (enterFrame) {
if (_root.smert == 0) {
vr++;
if (vr < (vrr * 0.01)) {
_parent.zagr.gotoAndStop(1);
} else if ((vr >= (vrr * 0.01)) & (vr < (vrr * 0.1))) {
_parent.zagr.gotoAndStop(2);
} else if ((vr >= (vrr * 0.1)) & (vr < (vrr * 0.2))) {
_parent.zagr.gotoAndStop(3);
} else if ((vr >= (vrr * 0.2)) & (vr < (vrr * 0.3))) {
_parent.zagr.gotoAndStop(4);
} else if ((vr >= (vrr * 0.3)) & (vr < (vrr * 0.4))) {
_parent.zagr.gotoAndStop(5);
} else if ((vr >= (vrr * 0.4)) & (vr < (vrr * 0.5))) {
_parent.zagr.gotoAndStop(6);
} else if ((vr >= (vrr * 0.5)) & (vr < (vrr * 0.6))) {
_parent.zagr.gotoAndStop(7);
} else if ((vr >= (vrr * 0.6)) & (vr < (vrr * 0.7))) {
_parent.zagr.gotoAndStop(8);
} else if ((vr >= (vrr * 0.7)) & (vr < (vrr * 0.8))) {
_parent.zagr.gotoAndStop(9);
} else if ((vr >= (vrr * 0.8)) & (vr < (vrr * 0.9))) {
_parent.zagr.gotoAndStop(10);
} else if ((vr >= (vrr * 0.9)) & (vr < vrr)) {
_parent.zagr.gotoAndStop(11);
} else if (vr >= vrr) {
_parent.gotoAndStop(_parent.kadr);
}
}
}
Instance of Symbol 39 MovieClip "dan" in Symbol 71 MovieClip [basna8] Frame 1
onClipEvent (load) {
ataka = 40;
sko = 1.7;
skor = 68;
radius = 50;
xp = 0;
stoim = 600;
i = 1;
while (i < (_root.basPer + 1)) {
if (_parent._name == ("basna" + i)) {
ima = i;
}
i++;
}
}
onClipEvent (mouseDown) {
if (this.hitTest(_root.kurs)) {
i = 1;
while (i < (_root.basPer + 1)) {
_root["basna" + i].obvodka.gotoAndStop(1);
i++;
}
_parent.obvodka.gotoAndStop(2);
_root.tablic.gotoAndStop("bas8");
_root.tablic.ataka = ataka;
_root.tablic.sko = sko;
_root.tablic.radius = radius;
_root.tablic.xp = xp;
_root.tablic.xp2 = "/50";
_root.tablic.stoim = stoim;
_root.tablic.ima = ima;
if ((_root.gold2 >= 1) & (_parent._currentframe != _parent._totalframes)) {
_root.tablic.knApg._visible = 1;
} else {
_root.tablic.knApg._visible = 0;
}
if (xp >= 50) {
_root.tablic.knAta._visible = 1;
if (sko > 0.21) {
_root.tablic.knSko._visible = 1;
} else {
_root.tablic.knSko._visible = 0;
}
_root.tablic.knDal._visible = 1;
} else {
_root.tablic.knAta._visible = 0;
_root.tablic.knSko._visible = 0;
_root.tablic.knDal._visible = 0;
}
}
}
Instance of Symbol 37 MovieClip "rad" in Symbol 71 MovieClip [basna8] Frame 2
onClipEvent (load) {
vr = _parent.dan.skor;
dx = -_parent._x;
dy = -_parent._y;
ugol = Math.atan2(dx, dy);
vracenie = (ugol * 360) / -6.28318530717959;
_parent.stvol._rotation = vracenie;
this._xscale = this._xscale + 40;
this._yscale = this._yscale + 40;
}
onClipEvent (enterFrame) {
if (_root.smert == 0) {
if (_parent.basna.hitTest(_root.kurs)) {
_parent.rad._alpha = 100;
} else {
_parent.rad._alpha = 0;
}
if (_parent.dan.xp >= 50) {
_parent.dan.xp = 50;
_parent.basna.lev.gotoAndStop(2);
}
vr++;
d = 1;
i = 1;
while (i < _root.perVrag) {
if ((((d == 1) & (_parent.stvol._currentframe == 1)) & (_root["enemy" + i]._currentframe == 1)) & this.hitTest(_root["enemy" + i])) {
dx = _root["enemy" + i]._x - _parent._x;
dy = _root["enemy" + i]._y - _parent._y;
ugol = Math.atan2(dx, dy);
vracenie = (ugol * 360) / -6.28318530717959;
_parent.stvol._rotation = vracenie;
d = 0;
if (vr >= _parent.dan.skor) {
_root["enemy" + i].vrag.giz = _root["enemy" + i].vrag.giz - _parent.dan.ataka;
_parent.dan.xp = _parent.dan.xp + 1;
_parent.stvol.gotoAndPlay("vas");
vr = 0;
}
}
i++;
}
if (vr < (_parent.dan.skor * 0.01)) {
_parent.zagr.gotoAndStop(1);
} else if ((vr >= (_parent.dan.skor * 0.01)) & (vr < (_parent.dan.skor * 0.1))) {
_parent.zagr.gotoAndStop(2);
} else if ((vr >= (_parent.dan.skor * 0.1)) & (vr < (_parent.dan.skor * 0.2))) {
_parent.zagr.gotoAndStop(3);
} else if ((vr >= (_parent.dan.skor * 0.2)) & (vr < (_parent.dan.skor * 0.3))) {
_parent.zagr.gotoAndStop(4);
} else if ((vr >= (_parent.dan.skor * 0.3)) & (vr < (_parent.dan.skor * 0.4))) {
_parent.zagr.gotoAndStop(5);
} else if ((vr >= (_parent.dan.skor * 0.4)) & (vr < (_parent.dan.skor * 0.5))) {
_parent.zagr.gotoAndStop(6);
} else if ((vr >= (_parent.dan.skor * 0.5)) & (vr < (_parent.dan.skor * 0.6))) {
_parent.zagr.gotoAndStop(7);
} else if ((vr >= (_parent.dan.skor * 0.6)) & (vr < (_parent.dan.skor * 0.7))) {
_parent.zagr.gotoAndStop(8);
} else if ((vr >= (_parent.dan.skor * 0.7)) & (vr < (_parent.dan.skor * 0.8))) {
_parent.zagr.gotoAndStop(9);
} else if ((vr >= (_parent.dan.skor * 0.8)) & (vr < (_parent.dan.skor * 0.9))) {
_parent.zagr.gotoAndStop(10);
} else if ((vr >= (_parent.dan.skor * 0.9)) & (vr < _parent.dan.skor)) {
_parent.zagr.gotoAndStop(11);
} else if (vr >= _parent.dan.skor) {
_parent.zagr.gotoAndStop(12);
}
}
}
Symbol 77 MovieClip Frame 1
stop();
Symbol 82 MovieClip Frame 1
stop();
Symbol 86 MovieClip Frame 1
stop();
Symbol 87 MovieClip [basna7] Frame 1
stop();
Instance of Symbol 37 MovieClip "rad" in Symbol 87 MovieClip [basna7] Frame 1
onClipEvent (load) {
vr = 0;
vrr = 300;
}
onClipEvent (enterFrame) {
if (_root.smert == 0) {
vr++;
if (vr < (vrr * 0.01)) {
_parent.zagr.gotoAndStop(1);
} else if ((vr >= (vrr * 0.01)) & (vr < (vrr * 0.1))) {
_parent.zagr.gotoAndStop(2);
} else if ((vr >= (vrr * 0.1)) & (vr < (vrr * 0.2))) {
_parent.zagr.gotoAndStop(3);
} else if ((vr >= (vrr * 0.2)) & (vr < (vrr * 0.3))) {
_parent.zagr.gotoAndStop(4);
} else if ((vr >= (vrr * 0.3)) & (vr < (vrr * 0.4))) {
_parent.zagr.gotoAndStop(5);
} else if ((vr >= (vrr * 0.4)) & (vr < (vrr * 0.5))) {
_parent.zagr.gotoAndStop(6);
} else if ((vr >= (vrr * 0.5)) & (vr < (vrr * 0.6))) {
_parent.zagr.gotoAndStop(7);
} else if ((vr >= (vrr * 0.6)) & (vr < (vrr * 0.7))) {
_parent.zagr.gotoAndStop(8);
} else if ((vr >= (vrr * 0.7)) & (vr < (vrr * 0.8))) {
_parent.zagr.gotoAndStop(9);
} else if ((vr >= (vrr * 0.8)) & (vr < (vrr * 0.9))) {
_parent.zagr.gotoAndStop(10);
} else if ((vr >= (vrr * 0.9)) & (vr < vrr)) {
_parent.zagr.gotoAndStop(11);
} else if (vr >= vrr) {
_parent.gotoAndStop(_parent.kadr);
}
}
}
Instance of Symbol 39 MovieClip "dan" in Symbol 87 MovieClip [basna7] Frame 1
onClipEvent (load) {
ataka = 25;
sko = 1;
skor = 40;
radius = 70;
xp = 0;
stoim = 400;
i = 1;
while (i < (_root.basPer + 1)) {
if (_parent._name == ("basna" + i)) {
ima = i;
}
i++;
}
}
onClipEvent (mouseDown) {
if (this.hitTest(_root.kurs)) {
i = 1;
while (i < (_root.basPer + 1)) {
_root["basna" + i].obvodka.gotoAndStop(1);
i++;
}
_parent.obvodka.gotoAndStop(2);
_root.tablic.gotoAndStop("bas7");
_root.tablic.ataka = ataka;
_root.tablic.sko = sko;
_root.tablic.radius = radius;
_root.tablic.xp = xp;
_root.tablic.xp2 = "/50";
_root.tablic.stoim = stoim;
_root.tablic.ima = ima;
if ((_root.gold2 >= 1) & (_parent._currentframe != _parent._totalframes)) {
_root.tablic.knApg._visible = 1;
} else {
_root.tablic.knApg._visible = 0;
}
if (xp >= 50) {
_root.tablic.knAta._visible = 1;
if (sko > 0.21) {
_root.tablic.knSko._visible = 1;
} else {
_root.tablic.knSko._visible = 0;
}
_root.tablic.knDal._visible = 1;
} else {
_root.tablic.knAta._visible = 0;
_root.tablic.knSko._visible = 0;
_root.tablic.knDal._visible = 0;
}
}
}
Instance of Symbol 37 MovieClip "rad" in Symbol 87 MovieClip [basna7] Frame 2
onClipEvent (load) {
vr = _parent.dan.skor;
dx = -_parent._x;
dy = -_parent._y;
ugol = Math.atan2(dx, dy);
vracenie = (ugol * 360) / -6.28318530717959;
_parent.stvol._rotation = vracenie;
this._xscale = this._xscale + 30;
this._yscale = this._yscale + 30;
}
onClipEvent (enterFrame) {
if (_root.smert == 0) {
if (_parent.basna.hitTest(_root.kurs)) {
_parent.rad._alpha = 100;
} else {
_parent.rad._alpha = 0;
}
if (_parent.dan.xp >= 50) {
_parent.dan.xp = 50;
_parent.basna.lev.gotoAndStop(2);
}
vr++;
d = 1;
i = 1;
while (i < _root.perVrag) {
if ((((d == 1) & (_parent.stvol._currentframe == 1)) & (_root["enemy" + i]._currentframe == 1)) & this.hitTest(_root["enemy" + i])) {
dx = _root["enemy" + i]._x - _parent._x;
dy = _root["enemy" + i]._y - _parent._y;
ugol = Math.atan2(dx, dy);
vracenie = (ugol * 360) / -6.28318530717959;
_parent.stvol._rotation = vracenie;
d = 0;
if (vr >= _parent.dan.skor) {
_root["enemy" + i].vrag.giz = _root["enemy" + i].vrag.giz - _parent.dan.ataka;
_parent.dan.xp = _parent.dan.xp + 1;
_parent.stvol.gotoAndPlay("vas");
vr = 0;
}
}
i++;
}
if (vr < (_parent.dan.skor * 0.01)) {
_parent.zagr.gotoAndStop(1);
} else if ((vr >= (_parent.dan.skor * 0.01)) & (vr < (_parent.dan.skor * 0.1))) {
_parent.zagr.gotoAndStop(2);
} else if ((vr >= (_parent.dan.skor * 0.1)) & (vr < (_parent.dan.skor * 0.2))) {
_parent.zagr.gotoAndStop(3);
} else if ((vr >= (_parent.dan.skor * 0.2)) & (vr < (_parent.dan.skor * 0.3))) {
_parent.zagr.gotoAndStop(4);
} else if ((vr >= (_parent.dan.skor * 0.3)) & (vr < (_parent.dan.skor * 0.4))) {
_parent.zagr.gotoAndStop(5);
} else if ((vr >= (_parent.dan.skor * 0.4)) & (vr < (_parent.dan.skor * 0.5))) {
_parent.zagr.gotoAndStop(6);
} else if ((vr >= (_parent.dan.skor * 0.5)) & (vr < (_parent.dan.skor * 0.6))) {
_parent.zagr.gotoAndStop(7);
} else if ((vr >= (_parent.dan.skor * 0.6)) & (vr < (_parent.dan.skor * 0.7))) {
_parent.zagr.gotoAndStop(8);
} else if ((vr >= (_parent.dan.skor * 0.7)) & (vr < (_parent.dan.skor * 0.8))) {
_parent.zagr.gotoAndStop(9);
} else if ((vr >= (_parent.dan.skor * 0.8)) & (vr < (_parent.dan.skor * 0.9))) {
_parent.zagr.gotoAndStop(10);
} else if ((vr >= (_parent.dan.skor * 0.9)) & (vr < _parent.dan.skor)) {
_parent.zagr.gotoAndStop(11);
} else if (vr >= _parent.dan.skor) {
_parent.zagr.gotoAndStop(12);
}
}
}
Symbol 97 MovieClip Frame 1
stop();
Symbol 102 MovieClip Frame 1
stop();
Symbol 106 MovieClip Frame 1
stop();
Symbol 107 MovieClip [basna2] Frame 1
stop();
Instance of Symbol 37 MovieClip "rad" in Symbol 107 MovieClip [basna2] Frame 1
onClipEvent (load) {
vr = 0;
vrr = 120;
}
onClipEvent (enterFrame) {
if (_root.smert == 0) {
vr++;
if (vr < (vrr * 0.01)) {
_parent.zagr.gotoAndStop(1);
} else if ((vr >= (vrr * 0.01)) & (vr < (vrr * 0.1))) {
_parent.zagr.gotoAndStop(2);
} else if ((vr >= (vrr * 0.1)) & (vr < (vrr * 0.2))) {
_parent.zagr.gotoAndStop(3);
} else if ((vr >= (vrr * 0.2)) & (vr < (vrr * 0.3))) {
_parent.zagr.gotoAndStop(4);
} else if ((vr >= (vrr * 0.3)) & (vr < (vrr * 0.4))) {
_parent.zagr.gotoAndStop(5);
} else if ((vr >= (vrr * 0.4)) & (vr < (vrr * 0.5))) {
_parent.zagr.gotoAndStop(6);
} else if ((vr >= (vrr * 0.5)) & (vr < (vrr * 0.6))) {
_parent.zagr.gotoAndStop(7);
} else if ((vr >= (vrr * 0.6)) & (vr < (vrr * 0.7))) {
_parent.zagr.gotoAndStop(8);
} else if ((vr >= (vrr * 0.7)) & (vr < (vrr * 0.8))) {
_parent.zagr.gotoAndStop(9);
} else if ((vr >= (vrr * 0.8)) & (vr < (vrr * 0.9))) {
_parent.zagr.gotoAndStop(10);
} else if ((vr >= (vrr * 0.9)) & (vr < vrr)) {
_parent.zagr.gotoAndStop(11);
} else if (vr >= vrr) {
_parent.gotoAndStop(_parent.kadr);
}
}
}
Instance of Symbol 39 MovieClip "dan" in Symbol 107 MovieClip [basna2] Frame 1
onClipEvent (load) {
ataka = 6;
sko = 0.8;
skor = 32;
radius = 50;
xp = 0;
stoim = 80;
i = 1;
while (i < (_root.basPer + 1)) {
if (_parent._name == ("basna" + i)) {
ima = i;
}
i++;
}
}
onClipEvent (mouseDown) {
if (this.hitTest(_root.kurs)) {
i = 1;
while (i < (_root.basPer + 1)) {
_root["basna" + i].obvodka.gotoAndStop(1);
i++;
}
_parent.obvodka.gotoAndStop(2);
_root.tablic.gotoAndStop("bas2");
_root.tablic.ataka = ataka;
_root.tablic.sko = sko;
_root.tablic.radius = radius;
_root.tablic.xp = xp;
_root.tablic.xp2 = "/50";
_root.tablic.stoim = stoim;
_root.tablic.ima = ima;
if ((_root.gold2 >= 1) & (_parent._currentframe != _parent._totalframes)) {
_root.tablic.knApg._visible = 1;
} else {
_root.tablic.knApg._visible = 0;
}
if (xp >= 50) {
_root.tablic.knAta._visible = 1;
if (sko > 0.21) {
_root.tablic.knSko._visible = 1;
} else {
_root.tablic.knSko._visible = 0;
}
_root.tablic.knDal._visible = 1;
} else {
_root.tablic.knAta._visible = 0;
_root.tablic.knSko._visible = 0;
_root.tablic.knDal._visible = 0;
}
}
}
Instance of Symbol 37 MovieClip "rad" in Symbol 107 MovieClip [basna2] Frame 2
onClipEvent (load) {
vr = _parent.dan.skor;
dx = -_parent._x;
dy = -_parent._y;
ugol = Math.atan2(dx, dy);
vracenie = (ugol * 360) / -6.28318530717959;
_parent.stvol._rotation = vracenie;
this._xscale = this._xscale + 10;
this._yscale = this._yscale + 10;
}
onClipEvent (enterFrame) {
if (_root.smert == 0) {
if (_parent.basna.hitTest(_root.kurs)) {
_parent.rad._alpha = 100;
} else {
_parent.rad._alpha = 0;
}
if (_parent.dan.xp >= 50) {
_parent.dan.xp = 50;
_parent.basna.lev.gotoAndStop(2);
}
vr++;
d = 1;
i = 1;
while (i < _root.perVrag) {
if (((((d == 1) & (_parent.stvol._currentframe == 1)) & (_root["enemy" + i]._currentframe == 1)) & (_root["enemy" + i].vrag.tip == 0)) & this.hitTest(_root["enemy" + i])) {
dx = _root["enemy" + i]._x - _parent._x;
dy = _root["enemy" + i]._y - _parent._y;
ugol = Math.atan2(dx, dy);
vracenie = (ugol * 360) / -6.28318530717959;
_parent.stvol._rotation = vracenie;
d = 0;
if (vr >= _parent.dan.skor) {
_root["enemy" + i].vrag.giz = _root["enemy" + i].vrag.giz - _parent.dan.ataka;
_parent.dan.xp = _parent.dan.xp + 1;
_parent.stvol.gotoAndPlay("vas");
vr = 0;
}
}
i++;
}
if (vr < (_parent.dan.skor * 0.01)) {
_parent.zagr.gotoAndStop(1);
} else if ((vr >= (_parent.dan.skor * 0.01)) & (vr < (_parent.dan.skor * 0.1))) {
_parent.zagr.gotoAndStop(2);
} else if ((vr >= (_parent.dan.skor * 0.1)) & (vr < (_parent.dan.skor * 0.2))) {
_parent.zagr.gotoAndStop(3);
} else if ((vr >= (_parent.dan.skor * 0.2)) & (vr < (_parent.dan.skor * 0.3))) {
_parent.zagr.gotoAndStop(4);
} else if ((vr >= (_parent.dan.skor * 0.3)) & (vr < (_parent.dan.skor * 0.4))) {
_parent.zagr.gotoAndStop(5);
} else if ((vr >= (_parent.dan.skor * 0.4)) & (vr < (_parent.dan.skor * 0.5))) {
_parent.zagr.gotoAndStop(6);
} else if ((vr >= (_parent.dan.skor * 0.5)) & (vr < (_parent.dan.skor * 0.6))) {
_parent.zagr.gotoAndStop(7);
} else if ((vr >= (_parent.dan.skor * 0.6)) & (vr < (_parent.dan.skor * 0.7))) {
_parent.zagr.gotoAndStop(8);
} else if ((vr >= (_parent.dan.skor * 0.7)) & (vr < (_parent.dan.skor * 0.8))) {
_parent.zagr.gotoAndStop(9);
} else if ((vr >= (_parent.dan.skor * 0.8)) & (vr < (_parent.dan.skor * 0.9))) {
_parent.zagr.gotoAndStop(10);
} else if ((vr >= (_parent.dan.skor * 0.9)) & (vr < _parent.dan.skor)) {
_parent.zagr.gotoAndStop(11);
} else if (vr >= _parent.dan.skor) {
_parent.zagr.gotoAndStop(12);
}
}
}
Symbol 115 MovieClip Frame 1
stop();
Symbol 117 MovieClip Frame 1
stop();
Symbol 119 MovieClip Frame 1
stop();
Symbol 120 MovieClip [basna3] Frame 1
stop();
Instance of Symbol 37 MovieClip "rad" in Symbol 120 MovieClip [basna3] Frame 1
onClipEvent (load) {
vr = 0;
vrr = 120;
}
onClipEvent (enterFrame) {
if (_root.smert == 0) {
vr++;
if (vr < (vrr * 0.01)) {
_parent.zagr.gotoAndStop(1);
} else if ((vr >= (vrr * 0.01)) & (vr < (vrr * 0.1))) {
_parent.zagr.gotoAndStop(2);
} else if ((vr >= (vrr * 0.1)) & (vr < (vrr * 0.2))) {
_parent.zagr.gotoAndStop(3);
} else if ((vr >= (vrr * 0.2)) & (vr < (vrr * 0.3))) {
_parent.zagr.gotoAndStop(4);
} else if ((vr >= (vrr * 0.3)) & (vr < (vrr * 0.4))) {
_parent.zagr.gotoAndStop(5);
} else if ((vr >= (vrr * 0.4)) & (vr < (vrr * 0.5))) {
_parent.zagr.gotoAndStop(6);
} else if ((vr >= (vrr * 0.5)) & (vr < (vrr * 0.6))) {
_parent.zagr.gotoAndStop(7);
} else if ((vr >= (vrr * 0.6)) & (vr < (vrr * 0.7))) {
_parent.zagr.gotoAndStop(8);
} else if ((vr >= (vrr * 0.7)) & (vr < (vrr * 0.8))) {
_parent.zagr.gotoAndStop(9);
} else if ((vr >= (vrr * 0.8)) & (vr < (vrr * 0.9))) {
_parent.zagr.gotoAndStop(10);
} else if ((vr >= (vrr * 0.9)) & (vr < vrr)) {
_parent.zagr.gotoAndStop(11);
} else if (vr >= vrr) {
_parent.gotoAndStop(_parent.kadr);
}
}
}
Instance of Symbol 39 MovieClip "dan" in Symbol 120 MovieClip [basna3] Frame 1
onClipEvent (load) {
ataka = 14;
sko = 1.7;
skor = 68;
radius = 60;
xp = 0;
stoim = 100;
i = 1;
while (i < (_root.basPer + 1)) {
if (_parent._name == ("basna" + i)) {
ima = i;
}
i++;
}
}
onClipEvent (mouseDown) {
if (this.hitTest(_root.kurs)) {
i = 1;
while (i < (_root.basPer + 1)) {
_root["basna" + i].obvodka.gotoAndStop(1);
i++;
}
_parent.obvodka.gotoAndStop(2);
_root.tablic.gotoAndStop("bas3");
_root.tablic.ataka = ataka;
_root.tablic.sko = sko;
_root.tablic.radius = radius;
_root.tablic.xp = xp;
_root.tablic.xp2 = "/30";
_root.tablic.stoim = stoim;
_root.tablic.ima = ima;
if ((_root.gold2 >= 1) & (_parent._currentframe != _parent._totalframes)) {
_root.tablic.knApg._visible = 1;
} else {
_root.tablic.knApg._visible = 0;
}
if (xp >= 30) {
_root.tablic.knAta._visible = 1;
if (sko > 0.21) {
_root.tablic.knSko._visible = 1;
} else {
_root.tablic.knSko._visible = 0;
}
_root.tablic.knDal._visible = 1;
} else {
_root.tablic.knAta._visible = 0;
_root.tablic.knSko._visible = 0;
_root.tablic.knDal._visible = 0;
}
}
}
Instance of Symbol 37 MovieClip "rad" in Symbol 120 MovieClip [basna3] Frame 2
onClipEvent (load) {
vr = _parent.dan.skor;
dx = -_parent._x;
dy = -_parent._y;
ugol = Math.atan2(dx, dy);
vracenie = (ugol * 360) / -6.28318530717959;
_parent.stvol._rotation = vracenie;
this._xscale = this._xscale + 20;
this._yscale = this._yscale + 20;
}
onClipEvent (enterFrame) {
if (_root.smert == 0) {
if (_parent.basna.hitTest(_root.kurs)) {
_parent.rad._alpha = 100;
} else {
_parent.rad._alpha = 0;
}
if (_parent.dan.xp >= 30) {
_parent.dan.xp = 30;
_parent.basna.lev.gotoAndStop(2);
}
vr++;
d = 1;
i = 1;
while (i < _root.perVrag) {
if (((((d == 1) & (_parent.stvol._currentframe == 1)) & (_root["enemy" + i]._currentframe == 1)) & (_root["enemy" + i].vrag.tip == 0)) & this.hitTest(_root["enemy" + i])) {
dx = _root["enemy" + i]._x - _parent._x;
dy = _root["enemy" + i]._y - _parent._y;
ugol = Math.atan2(dx, dy);
vracenie = (ugol * 360) / -6.28318530717959;
_parent.stvol._rotation = vracenie;
d = 0;
if (vr >= _parent.dan.skor) {
_root["enemy" + i].vrag.giz = _root["enemy" + i].vrag.giz - _parent.dan.ataka;
_parent.dan.xp = _parent.dan.xp + 1;
_parent.stvol.gotoAndPlay("vas");
vr = 0;
}
}
i++;
}
if (vr < (_parent.dan.skor * 0.01)) {
_parent.zagr.gotoAndStop(1);
} else if ((vr >= (_parent.dan.skor * 0.01)) & (vr < (_parent.dan.skor * 0.1))) {
_parent.zagr.gotoAndStop(2);
} else if ((vr >= (_parent.dan.skor * 0.1)) & (vr < (_parent.dan.skor * 0.2))) {
_parent.zagr.gotoAndStop(3);
} else if ((vr >= (_parent.dan.skor * 0.2)) & (vr < (_parent.dan.skor * 0.3))) {
_parent.zagr.gotoAndStop(4);
} else if ((vr >= (_parent.dan.skor * 0.3)) & (vr < (_parent.dan.skor * 0.4))) {
_parent.zagr.gotoAndStop(5);
} else if ((vr >= (_parent.dan.skor * 0.4)) & (vr < (_parent.dan.skor * 0.5))) {
_parent.zagr.gotoAndStop(6);
} else if ((vr >= (_parent.dan.skor * 0.5)) & (vr < (_parent.dan.skor * 0.6))) {
_parent.zagr.gotoAndStop(7);
} else if ((vr >= (_parent.dan.skor * 0.6)) & (vr < (_parent.dan.skor * 0.7))) {
_parent.zagr.gotoAndStop(8);
} else if ((vr >= (_parent.dan.skor * 0.7)) & (vr < (_parent.dan.skor * 0.8))) {
_parent.zagr.gotoAndStop(9);
} else if ((vr >= (_parent.dan.skor * 0.8)) & (vr < (_parent.dan.skor * 0.9))) {
_parent.zagr.gotoAndStop(10);
} else if ((vr >= (_parent.dan.skor * 0.9)) & (vr < _parent.dan.skor)) {
_parent.zagr.gotoAndStop(11);
} else if (vr >= _parent.dan.skor) {
_parent.zagr.gotoAndStop(12);
}
}
}
Symbol 126 MovieClip Frame 1
stop();
Symbol 130 MovieClip Frame 1
stop();
Symbol 140 MovieClip Frame 1
stop();
Symbol 141 MovieClip [basna4] Frame 1
stop();
Instance of Symbol 37 MovieClip "rad" in Symbol 141 MovieClip [basna4] Frame 1
onClipEvent (load) {
vr = 0;
vrr = 180;
}
onClipEvent (enterFrame) {
if (_root.smert == 0) {
vr++;
if (vr < (vrr * 0.01)) {
_parent.zagr.gotoAndStop(1);
} else if ((vr >= (vrr * 0.01)) & (vr < (vrr * 0.1))) {
_parent.zagr.gotoAndStop(2);
} else if ((vr >= (vrr * 0.1)) & (vr < (vrr * 0.2))) {
_parent.zagr.gotoAndStop(3);
} else if ((vr >= (vrr * 0.2)) & (vr < (vrr * 0.3))) {
_parent.zagr.gotoAndStop(4);
} else if ((vr >= (vrr * 0.3)) & (vr < (vrr * 0.4))) {
_parent.zagr.gotoAndStop(5);
} else if ((vr >= (vrr * 0.4)) & (vr < (vrr * 0.5))) {
_parent.zagr.gotoAndStop(6);
} else if ((vr >= (vrr * 0.5)) & (vr < (vrr * 0.6))) {
_parent.zagr.gotoAndStop(7);
} else if ((vr >= (vrr * 0.6)) & (vr < (vrr * 0.7))) {
_parent.zagr.gotoAndStop(8);
} else if ((vr >= (vrr * 0.7)) & (vr < (vrr * 0.8))) {
_parent.zagr.gotoAndStop(9);
} else if ((vr >= (vrr * 0.8)) & (vr < (vrr * 0.9))) {
_parent.zagr.gotoAndStop(10);
} else if ((vr >= (vrr * 0.9)) & (vr < vrr)) {
_parent.zagr.gotoAndStop(11);
} else if (vr >= vrr) {
_parent.gotoAndStop(_parent.kadr);
}
}
}
Instance of Symbol 39 MovieClip "dan" in Symbol 141 MovieClip [basna4] Frame 1
onClipEvent (load) {
ataka = 8;
sko = 0.6;
skor = 26;
radius = 80;
xp = 0;
stoim = 200;
i = 1;
while (i < (_root.basPer + 1)) {
if (_parent._name == ("basna" + i)) {
ima = i;
}
i++;
}
}
onClipEvent (mouseDown) {
if (this.hitTest(_root.kurs)) {
i = 1;
while (i < (_root.basPer + 1)) {
_root["basna" + i].obvodka.gotoAndStop(1);
i++;
}
_parent.obvodka.gotoAndStop(2);
_root.tablic.gotoAndStop("bas4");
_root.tablic.ataka = ataka;
_root.tablic.sko = sko;
_root.tablic.radius = radius;
_root.tablic.xp = xp;
_root.tablic.xp2 = "/70";
_root.tablic.stoim = stoim;
_root.tablic.ima = ima;
if ((_root.gold2 >= 1) & (_parent._currentframe != _parent._totalframes)) {
_root.tablic.knApg._visible = 1;
} else {
_root.tablic.knApg._visible = 0;
}
if (xp >= 70) {
_root.tablic.knAta._visible = 1;
if (sko > 0.31) {
_root.tablic.knSko._visible = 1;
} else {
_root.tablic.knSko._visible = 0;
}
_root.tablic.knDal._visible = 1;
} else {
_root.tablic.knAta._visible = 0;
_root.tablic.knSko._visible = 0;
_root.tablic.knDal._visible = 0;
}
}
}
Instance of Symbol 37 MovieClip "rad" in Symbol 141 MovieClip [basna4] Frame 2
onClipEvent (load) {
vr = _parent.dan.skor;
dx = -_parent._x;
dy = -_parent._y;
ugol = Math.atan2(dx, dy);
vracenie = (ugol * 360) / -6.28318530717959;
_parent.stvol._rotation = vracenie;
this._xscale = this._xscale + 40;
this._yscale = this._yscale + 40;
}
onClipEvent (enterFrame) {
if (_root.smert == 0) {
if (_parent.basna.hitTest(_root.kurs)) {
_parent.rad._alpha = 100;
} else {
_parent.rad._alpha = 0;
}
if (_parent.dan.xp >= 70) {
_parent.dan.xp = 70;
_parent.basna.lev.gotoAndStop(2);
}
vr++;
d = 1;
i = 1;
while (i < _root.perVrag) {
if ((((d == 1) & (_parent.stvol._currentframe == 1)) & (_root["enemy" + i]._currentframe == 1)) & this.hitTest(_root["enemy" + i])) {
dx = _root["enemy" + i]._x - _parent._x;
dy = _root["enemy" + i]._y - _parent._y;
ugol = Math.atan2(dx, dy);
vracenie = (ugol * 360) / -6.28318530717959;
_parent.stvol._rotation = vracenie;
d = 0;
if (vr >= _parent.dan.skor) {
_root["enemy" + i].vrag.giz = _root["enemy" + i].vrag.giz - _parent.dan.ataka;
_parent.dan.xp = _parent.dan.xp + 1;
_parent.stvol.gotoAndPlay("vas");
vr = 0;
}
}
i++;
}
if (vr < (_parent.dan.skor * 0.01)) {
_parent.zagr.gotoAndStop(1);
} else if ((vr >= (_parent.dan.skor * 0.01)) & (vr < (_parent.dan.skor * 0.1))) {
_parent.zagr.gotoAndStop(2);
} else if ((vr >= (_parent.dan.skor * 0.1)) & (vr < (_parent.dan.skor * 0.2))) {
_parent.zagr.gotoAndStop(3);
} else if ((vr >= (_parent.dan.skor * 0.2)) & (vr < (_parent.dan.skor * 0.3))) {
_parent.zagr.gotoAndStop(4);
} else if ((vr >= (_parent.dan.skor * 0.3)) & (vr < (_parent.dan.skor * 0.4))) {
_parent.zagr.gotoAndStop(5);
} else if ((vr >= (_parent.dan.skor * 0.4)) & (vr < (_parent.dan.skor * 0.5))) {
_parent.zagr.gotoAndStop(6);
} else if ((vr >= (_parent.dan.skor * 0.5)) & (vr < (_parent.dan.skor * 0.6))) {
_parent.zagr.gotoAndStop(7);
} else if ((vr >= (_parent.dan.skor * 0.6)) & (vr < (_parent.dan.skor * 0.7))) {
_parent.zagr.gotoAndStop(8);
} else if ((vr >= (_parent.dan.skor * 0.7)) & (vr < (_parent.dan.skor * 0.8))) {
_parent.zagr.gotoAndStop(9);
} else if ((vr >= (_parent.dan.skor * 0.8)) & (vr < (_parent.dan.skor * 0.9))) {
_parent.zagr.gotoAndStop(10);
} else if ((vr >= (_parent.dan.skor * 0.9)) & (vr < _parent.dan.skor)) {
_parent.zagr.gotoAndStop(11);
} else if (vr >= _parent.dan.skor) {
_parent.zagr.gotoAndStop(12);
}
}
}
Symbol 146 MovieClip Frame 1
stop();
Symbol 148 MovieClip [basna5] Frame 1
stop();
Instance of Symbol 37 MovieClip "rad" in Symbol 148 MovieClip [basna5] Frame 1
onClipEvent (load) {
vr = 0;
vrr = 300;
}
onClipEvent (enterFrame) {
if (_root.smert == 0) {
vr++;
if (vr < (vrr * 0.01)) {
_parent.zagr.gotoAndStop(1);
} else if ((vr >= (vrr * 0.01)) & (vr < (vrr * 0.1))) {
_parent.zagr.gotoAndStop(2);
} else if ((vr >= (vrr * 0.1)) & (vr < (vrr * 0.2))) {
_parent.zagr.gotoAndStop(3);
} else if ((vr >= (vrr * 0.2)) & (vr < (vrr * 0.3))) {
_parent.zagr.gotoAndStop(4);
} else if ((vr >= (vrr * 0.3)) & (vr < (vrr * 0.4))) {
_parent.zagr.gotoAndStop(5);
} else if ((vr >= (vrr * 0.4)) & (vr < (vrr * 0.5))) {
_parent.zagr.gotoAndStop(6);
} else if ((vr >= (vrr * 0.5)) & (vr < (vrr * 0.6))) {
_parent.zagr.gotoAndStop(7);
} else if ((vr >= (vrr * 0.6)) & (vr < (vrr * 0.7))) {
_parent.zagr.gotoAndStop(8);
} else if ((vr >= (vrr * 0.7)) & (vr < (vrr * 0.8))) {
_parent.zagr.gotoAndStop(9);
} else if ((vr >= (vrr * 0.8)) & (vr < (vrr * 0.9))) {
_parent.zagr.gotoAndStop(10);
} else if ((vr >= (vrr * 0.9)) & (vr < vrr)) {
_parent.zagr.gotoAndStop(11);
} else if (vr >= vrr) {
_parent.gotoAndStop(_parent.kadr);
}
}
}
Instance of Symbol 39 MovieClip "dan" in Symbol 148 MovieClip [basna5] Frame 1
onClipEvent (load) {
ataka = 30;
sko = 3;
skor = 120;
radius = 200;
xp = 0;
stoim = 23;
i = 1;
while (i < (_root.basPer + 1)) {
if (_parent._name == ("basna" + i)) {
ima = i;
}
i++;
}
}
onClipEvent (mouseDown) {
if (this.hitTest(_root.kurs)) {
i = 1;
while (i < (_root.basPer + 1)) {
_root["basna" + i].obvodka.gotoAndStop(1);
i++;
}
_parent.obvodka.gotoAndStop(2);
_root.tablic.gotoAndStop("bas5");
_root.tablic.ataka = ataka;
_root.tablic.sko = sko;
_root.tablic.radius = radius;
_root.tablic.xp = xp;
_root.tablic.xp2 = "/30";
_root.tablic.stoim = stoim;
_root.tablic.ima = ima;
if ((_root.gold2 >= 1) & (_parent._currentframe != _parent._totalframes)) {
_root.tablic.knApg._visible = 1;
} else {
_root.tablic.knApg._visible = 0;
}
if (xp >= 50) {
_root.tablic.knAta._visible = 1;
if (sko > 0.21) {
_root.tablic.knSko._visible = 1;
} else {
_root.tablic.knSko._visible = 0;
}
_root.tablic.knDal._visible = 1;
} else {
_root.tablic.knAta._visible = 0;
_root.tablic.knSko._visible = 0;
_root.tablic.knDal._visible = 0;
}
}
}
Instance of Symbol 37 MovieClip "rad" in Symbol 148 MovieClip [basna5] Frame 2
onClipEvent (load) {
vr = _parent.dan.skor;
dx = -_parent._x;
dy = -_parent._y;
ugol = Math.atan2(dx, dy);
vracenie = (ugol * 360) / -6.28318530717959;
_parent.stvol._rotation = vracenie;
this._xscale = this._xscale + 160;
this._yscale = this._yscale + 160;
}
onClipEvent (enterFrame) {
if (_root.smert == 0) {
if (_parent.basna.hitTest(_root.kurs)) {
_parent.rad._alpha = 100;
} else {
_parent.rad._alpha = 0;
}
if (_parent.dan.xp >= 50) {
_parent.dan.xp = 50;
_parent.basna.lev.gotoAndStop(2);
}
vr++;
d = 1;
i = 1;
while (i < _root.perVrag) {
if (((((d == 1) & (_parent.stvol._currentframe == 1)) & (_root["enemy" + i]._currentframe == 1)) & (_root["enemy" + i].vrag.tip == 0)) & this.hitTest(_root["enemy" + i])) {
dx = _root["enemy" + i]._x - _parent._x;
dy = _root["enemy" + i]._y - _parent._y;
ugol = Math.atan2(dx, dy);
vracenie = (ugol * 360) / -6.28318530717959;
_parent.stvol._rotation = vracenie;
d = 0;
if (vr >= _parent.dan.skor) {
_root["enemy" + i].vrag.giz = _root["enemy" + i].vrag.giz - _parent.dan.ataka;
_parent.dan.xp = _parent.dan.xp + 1;
_parent.stvol.gotoAndPlay("vas");
vr = 0;
}
}
i++;
}
if (vr < (_parent.dan.skor * 0.01)) {
_parent.zagr.gotoAndStop(1);
} else if ((vr >= (_parent.dan.skor * 0.01)) & (vr < (_parent.dan.skor * 0.1))) {
_parent.zagr.gotoAndStop(2);
} else if ((vr >= (_parent.dan.skor * 0.1)) & (vr < (_parent.dan.skor * 0.2))) {
_parent.zagr.gotoAndStop(3);
} else if ((vr >= (_parent.dan.skor * 0.2)) & (vr < (_parent.dan.skor * 0.3))) {
_parent.zagr.gotoAndStop(4);
} else if ((vr >= (_parent.dan.skor * 0.3)) & (vr < (_parent.dan.skor * 0.4))) {
_parent.zagr.gotoAndStop(5);
} else if ((vr >= (_parent.dan.skor * 0.4)) & (vr < (_parent.dan.skor * 0.5))) {
_parent.zagr.gotoAndStop(6);
} else if ((vr >= (_parent.dan.skor * 0.5)) & (vr < (_parent.dan.skor * 0.6))) {
_parent.zagr.gotoAndStop(7);
} else if ((vr >= (_parent.dan.skor * 0.6)) & (vr < (_parent.dan.skor * 0.7))) {
_parent.zagr.gotoAndStop(8);
} else if ((vr >= (_parent.dan.skor * 0.7)) & (vr < (_parent.dan.skor * 0.8))) {
_parent.zagr.gotoAndStop(9);
} else if ((vr >= (_parent.dan.skor * 0.8)) & (vr < (_parent.dan.skor * 0.9))) {
_parent.zagr.gotoAndStop(10);
} else if ((vr >= (_parent.dan.skor * 0.9)) & (vr < _parent.dan.skor)) {
_parent.zagr.gotoAndStop(11);
} else if (vr >= _parent.dan.skor) {
_parent.zagr.gotoAndStop(12);
}
}
}
Symbol 153 MovieClip Frame 1
stop();
Symbol 155 MovieClip Frame 1
stop();
Symbol 156 MovieClip [basna6] Frame 1
stop();
Instance of Symbol 37 MovieClip "rad" in Symbol 156 MovieClip [basna6] Frame 1
onClipEvent (load) {
vr = 0;
vrr = 240;
}
onClipEvent (enterFrame) {
if (_root.smert == 0) {
vr++;
if (vr < (vrr * 0.01)) {
_parent.zagr.gotoAndStop(1);
} else if ((vr >= (vrr * 0.01)) & (vr < (vrr * 0.1))) {
_parent.zagr.gotoAndStop(2);
} else if ((vr >= (vrr * 0.1)) & (vr < (vrr * 0.2))) {
_parent.zagr.gotoAndStop(3);
} else if ((vr >= (vrr * 0.2)) & (vr < (vrr * 0.3))) {
_parent.zagr.gotoAndStop(4);
} else if ((vr >= (vrr * 0.3)) & (vr < (vrr * 0.4))) {
_parent.zagr.gotoAndStop(5);
} else if ((vr >= (vrr * 0.4)) & (vr < (vrr * 0.5))) {
_parent.zagr.gotoAndStop(6);
} else if ((vr >= (vrr * 0.5)) & (vr < (vrr * 0.6))) {
_parent.zagr.gotoAndStop(7);
} else if ((vr >= (vrr * 0.6)) & (vr < (vrr * 0.7))) {
_parent.zagr.gotoAndStop(8);
} else if ((vr >= (vrr * 0.7)) & (vr < (vrr * 0.8))) {
_parent.zagr.gotoAndStop(9);
} else if ((vr >= (vrr * 0.8)) & (vr < (vrr * 0.9))) {
_parent.zagr.gotoAndStop(10);
} else if ((vr >= (vrr * 0.9)) & (vr < vrr)) {
_parent.zagr.gotoAndStop(11);
} else if (vr >= vrr) {
_parent.gotoAndStop(_parent.kadr);
}
}
}
Instance of Symbol 39 MovieClip "dan" in Symbol 156 MovieClip [basna6] Frame 1
onClipEvent (load) {
ataka = 15;
sko = 1.5;
skor = 60;
radius = 50;
xp = 0;
stoim = 180;
i = 1;
while (i < (_root.basPer + 1)) {
if (_parent._name == ("basna" + i)) {
ima = i;
}
i++;
}
}
onClipEvent (mouseDown) {
if (this.hitTest(_root.kurs)) {
i = 1;
while (i < (_root.basPer + 1)) {
_root["basna" + i].obvodka.gotoAndStop(1);
i++;
}
_parent.obvodka.gotoAndStop(2);
_root.tablic.gotoAndStop("bas6");
_root.tablic.ataka = ataka;
_root.tablic.sko = sko;
_root.tablic.radius = radius;
_root.tablic.xp = xp;
_root.tablic.xp2 = "/40";
_root.tablic.stoim = stoim;
_root.tablic.ima = ima;
if ((_root.gold2 >= 1) & (_parent._currentframe != _parent._totalframes)) {
_root.tablic.knApg._visible = 1;
} else {
_root.tablic.knApg._visible = 0;
}
if (xp >= 40) {
_root.tablic.knAta._visible = 1;
if (sko > 0.21) {
_root.tablic.knSko._visible = 1;
} else {
_root.tablic.knSko._visible = 0;
}
_root.tablic.knDal._visible = 1;
} else {
_root.tablic.knAta._visible = 0;
_root.tablic.knSko._visible = 0;
_root.tablic.knDal._visible = 0;
}
}
}
Instance of Symbol 37 MovieClip "rad" in Symbol 156 MovieClip [basna6] Frame 2
onClipEvent (load) {
vr = _parent.dan.skor;
dx = -_parent._x;
dy = -_parent._y;
ugol = Math.atan2(dx, dy);
vracenie = (ugol * 360) / -6.28318530717959;
_parent.stvol._rotation = vracenie;
this._xscale = this._xscale + 10;
this._yscale = this._yscale + 10;
}
onClipEvent (enterFrame) {
if (_root.smert == 0) {
if (_parent.basna.hitTest(_root.kurs)) {
_parent.rad._alpha = 100;
} else {
_parent.rad._alpha = 0;
}
if (_parent.dan.xp >= 40) {
_parent.dan.xp = 40;
_parent.basna.lev.gotoAndStop(2);
}
vr++;
d = 1;
i = 1;
while (i < _root.perVrag) {
if (((((d == 1) & (_parent.stvol._currentframe == 1)) & (_root["enemy" + i]._currentframe == 1)) & (_root["enemy" + i].vrag.tip == 1)) & this.hitTest(_root["enemy" + i])) {
dx = _root["enemy" + i]._x - _parent._x;
dy = _root["enemy" + i]._y - _parent._y;
ugol = Math.atan2(dx, dy);
vracenie = (ugol * 360) / -6.28318530717959;
_parent.stvol._rotation = vracenie;
d = 0;
if (vr >= _parent.dan.skor) {
_root["enemy" + i].vrag.giz = _root["enemy" + i].vrag.giz - _parent.dan.ataka;
_parent.dan.xp = _parent.dan.xp + 1;
_parent.stvol.gotoAndPlay("vas");
vr = 0;
}
}
i++;
}
if (vr < (_parent.dan.skor * 0.01)) {
_parent.zagr.gotoAndStop(1);
} else if ((vr >= (_parent.dan.skor * 0.01)) & (vr < (_parent.dan.skor * 0.1))) {
_parent.zagr.gotoAndStop(2);
} else if ((vr >= (_parent.dan.skor * 0.1)) & (vr < (_parent.dan.skor * 0.2))) {
_parent.zagr.gotoAndStop(3);
} else if ((vr >= (_parent.dan.skor * 0.2)) & (vr < (_parent.dan.skor * 0.3))) {
_parent.zagr.gotoAndStop(4);
} else if ((vr >= (_parent.dan.skor * 0.3)) & (vr < (_parent.dan.skor * 0.4))) {
_parent.zagr.gotoAndStop(5);
} else if ((vr >= (_parent.dan.skor * 0.4)) & (vr < (_parent.dan.skor * 0.5))) {
_parent.zagr.gotoAndStop(6);
} else if ((vr >= (_parent.dan.skor * 0.5)) & (vr < (_parent.dan.skor * 0.6))) {
_parent.zagr.gotoAndStop(7);
} else if ((vr >= (_parent.dan.skor * 0.6)) & (vr < (_parent.dan.skor * 0.7))) {
_parent.zagr.gotoAndStop(8);
} else if ((vr >= (_parent.dan.skor * 0.7)) & (vr < (_parent.dan.skor * 0.8))) {
_parent.zagr.gotoAndStop(9);
} else if ((vr >= (_parent.dan.skor * 0.8)) & (vr < (_parent.dan.skor * 0.9))) {
_parent.zagr.gotoAndStop(10);
} else if ((vr >= (_parent.dan.skor * 0.9)) & (vr < _parent.dan.skor)) {
_parent.zagr.gotoAndStop(11);
} else if (vr >= _parent.dan.skor) {
_parent.zagr.gotoAndStop(12);
}
}
}
Symbol 169 MovieClip Frame 1
stop();
Symbol 170 MovieClip Frame 1
stop();
Symbol 174 MovieClip Frame 1
stop();
Symbol 175 MovieClip [basna1] Frame 1
stop();
Instance of Symbol 37 MovieClip "rad" in Symbol 175 MovieClip [basna1] Frame 1
onClipEvent (load) {
vr = 0;
vrr = 60;
}
onClipEvent (enterFrame) {
if (_root.smert == 0) {
vr++;
if (vr < (vrr * 0.01)) {
_parent.zagr.gotoAndStop(1);
} else if ((vr >= (vrr * 0.01)) & (vr < (vrr * 0.1))) {
_parent.zagr.gotoAndStop(2);
} else if ((vr >= (vrr * 0.1)) & (vr < (vrr * 0.2))) {
_parent.zagr.gotoAndStop(3);
} else if ((vr >= (vrr * 0.2)) & (vr < (vrr * 0.3))) {
_parent.zagr.gotoAndStop(4);
} else if ((vr >= (vrr * 0.3)) & (vr < (vrr * 0.4))) {
_parent.zagr.gotoAndStop(5);
} else if ((vr >= (vrr * 0.4)) & (vr < (vrr * 0.5))) {
_parent.zagr.gotoAndStop(6);
} else if ((vr >= (vrr * 0.5)) & (vr < (vrr * 0.6))) {
_parent.zagr.gotoAndStop(7);
} else if ((vr >= (vrr * 0.6)) & (vr < (vrr * 0.7))) {
_parent.zagr.gotoAndStop(8);
} else if ((vr >= (vrr * 0.7)) & (vr < (vrr * 0.8))) {
_parent.zagr.gotoAndStop(9);
} else if ((vr >= (vrr * 0.8)) & (vr < (vrr * 0.9))) {
_parent.zagr.gotoAndStop(10);
} else if ((vr >= (vrr * 0.9)) & (vr < vrr)) {
_parent.zagr.gotoAndStop(11);
} else if (vr >= vrr) {
_parent.gotoAndStop(_parent.kadr);
}
}
}
Instance of Symbol 39 MovieClip "dan" in Symbol 175 MovieClip [basna1] Frame 1
onClipEvent (load) {
ataka = 2;
sko = 0.5;
skor = 20;
radius = 40;
xp = 0;
stoim = 40;
i = 1;
while (i < (_root.basPer + 1)) {
if (_parent._name == ("basna" + i)) {
ima = i;
}
i++;
}
}
onClipEvent (mouseDown) {
if (this.hitTest(_root.kurs)) {
i = 1;
while (i < (_root.basPer + 1)) {
_root["basna" + i].obvodka.gotoAndStop(1);
i++;
}
_parent.obvodka.gotoAndStop(2);
_root.tablic.gotoAndStop("bas1");
_root.tablic.ataka = ataka;
_root.tablic.sko = sko;
_root.tablic.radius = radius;
_root.tablic.xp = xp;
_root.tablic.xp2 = "/50";
_root.tablic.stoim = stoim;
_root.tablic.ima = ima;
if ((_root.gold2 >= 1) & (_parent._currentframe != _parent._totalframes)) {
_root.tablic.knApg._visible = 1;
} else {
_root.tablic.knApg._visible = 0;
}
if (xp >= 50) {
_root.tablic.knAta._visible = 1;
if (sko > 0.31) {
_root.tablic.knSko._visible = 1;
} else {
_root.tablic.knSko._visible = 0;
}
_root.tablic.knDal._visible = 1;
} else {
_root.tablic.knAta._visible = 0;
_root.tablic.knSko._visible = 0;
_root.tablic.knDal._visible = 0;
}
}
}
Instance of Symbol 37 MovieClip "rad" in Symbol 175 MovieClip [basna1] Frame 2
onClipEvent (load) {
vr = _parent.dan.skor;
dx = -_parent._x;
dy = -_parent._y;
ugol = Math.atan2(dx, dy);
vracenie = (ugol * 360) / -6.28318530717959;
_parent.stvol._rotation = vracenie;
}
onClipEvent (enterFrame) {
if (_root.smert == 0) {
if (_parent.basna.hitTest(_root.kurs)) {
_parent.rad._alpha = 100;
} else {
_parent.rad._alpha = 0;
}
if (_parent.dan.xp >= 50) {
_parent.dan.xp = 50;
_parent.basna.lev.gotoAndStop(2);
}
vr++;
d = 1;
i = 1;
while (i < _root.perVrag) {
if ((((d == 1) & (_parent.stvol._currentframe == 1)) & (_root["enemy" + i]._currentframe == 1)) & this.hitTest(_root["enemy" + i])) {
dx = _root["enemy" + i]._x - _parent._x;
dy = _root["enemy" + i]._y - _parent._y;
ugol = Math.atan2(dx, dy);
vracenie = (ugol * 360) / -6.28318530717959;
_parent.stvol._rotation = vracenie;
d = 0;
if (vr >= _parent.dan.skor) {
_root["enemy" + i].vrag.giz = _root["enemy" + i].vrag.giz - _parent.dan.ataka;
_parent.dan.xp = _parent.dan.xp + 1;
_parent.stvol.gotoAndPlay("vas");
vr = 0;
}
}
i++;
}
if (vr < (_parent.dan.skor * 0.01)) {
_parent.zagr.gotoAndStop(1);
} else if ((vr >= (_parent.dan.skor * 0.01)) & (vr < (_parent.dan.skor * 0.1))) {
_parent.zagr.gotoAndStop(2);
} else if ((vr >= (_parent.dan.skor * 0.1)) & (vr < (_parent.dan.skor * 0.2))) {
_parent.zagr.gotoAndStop(3);
} else if ((vr >= (_parent.dan.skor * 0.2)) & (vr < (_parent.dan.skor * 0.3))) {
_parent.zagr.gotoAndStop(4);
} else if ((vr >= (_parent.dan.skor * 0.3)) & (vr < (_parent.dan.skor * 0.4))) {
_parent.zagr.gotoAndStop(5);
} else if ((vr >= (_parent.dan.skor * 0.4)) & (vr < (_parent.dan.skor * 0.5))) {
_parent.zagr.gotoAndStop(6);
} else if ((vr >= (_parent.dan.skor * 0.5)) & (vr < (_parent.dan.skor * 0.6))) {
_parent.zagr.gotoAndStop(7);
} else if ((vr >= (_parent.dan.skor * 0.6)) & (vr < (_parent.dan.skor * 0.7))) {
_parent.zagr.gotoAndStop(8);
} else if ((vr >= (_parent.dan.skor * 0.7)) & (vr < (_parent.dan.skor * 0.8))) {
_parent.zagr.gotoAndStop(9);
} else if ((vr >= (_parent.dan.skor * 0.8)) & (vr < (_parent.dan.skor * 0.9))) {
_parent.zagr.gotoAndStop(10);
} else if ((vr >= (_parent.dan.skor * 0.9)) & (vr < _parent.dan.skor)) {
_parent.zagr.gotoAndStop(11);
} else if (vr >= _parent.dan.skor) {
_parent.zagr.gotoAndStop(12);
}
}
}
Symbol 195 MovieClip Frame 10
_root.vragi--;
_parent.removeMovieClip();
Symbol 196 MovieClip [enemyqq] Frame 1
stop();
Instance of Symbol 183 MovieClip "vrag" in Symbol 196 MovieClip [enemyqq] Frame 1
onClipEvent (load) {
giz = 32;
sko = 1.6;
skox = sko;
skoy = 0;
tip = 0;
}
onClipEvent (enterFrame) {
if (_root.smert == 0) {
if (giz <= 0) {
_parent.nextFrame();
}
if (_parent.telo.hitTest(_root.povN)) {
skox = 0;
skoy = sko;
_parent._rotation = 90;
} else if (_parent.telo.hitTest(_root.povN2)) {
skox = 0;
skoy = sko;
_parent._rotation = 90;
} else if (_parent.telo.hitTest(_root.povN3)) {
skox = 0;
skoy = sko;
_parent._rotation = 90;
} else if (_parent.telo.hitTest(_root.povV)) {
skox = 0;
skoy = -sko;
_parent._rotation = -90;
} else if (_parent.telo.hitTest(_root.povV2)) {
skox = 0;
skoy = -sko;
_parent._rotation = -90;
} else if (_parent.telo.hitTest(_root.povV3)) {
skox = 0;
skoy = -sko;
_parent._rotation = -90;
} else if (_parent.telo.hitTest(_root.povP)) {
skox = sko;
skoy = 0;
_parent._rotation = 0;
} else if (_parent.telo.hitTest(_root.povP2)) {
skox = sko;
skoy = 0;
_parent._rotation = 0;
} else if (_parent.telo.hitTest(_root.povP3)) {
skox = sko;
skoy = 0;
_parent._rotation = 0;
} else if (_parent.telo.hitTest(_root.povP4)) {
skox = sko;
skoy = 0;
_parent._rotation = 0;
} else if (_parent.telo.hitTest(_root.povL)) {
skox = -sko;
skoy = 0;
_parent._rotation = 180;
} else if (_parent.telo.hitTest(_root.zamok)) {
_root.giz = _root.giz - 4;
_root.vragi = _root.vragi - 1;
_root.attachMovie("napala", "napala" + _root.perNapala, _root.getNextHighestDepth());
_root["napala" + _root.perNapala]._x = 323.5;
_root["napala" + _root.perNapala]._y = 238;
_root.perNapala++;
_parent.removeMovieClip();
}
_parent._x = _parent._x + skox;
_parent._y = _parent._y + skoy;
}
}
Symbol 196 MovieClip [enemyqq] Frame 2
d = int(Math.random() * 12) + 3;
_root.gold = _root.gold + d;
Symbol 197 MovieClip [enemyqqq] Frame 1
stop();
Instance of Symbol 183 MovieClip "vrag" in Symbol 197 MovieClip [enemyqqq] Frame 1
onClipEvent (load) {
giz = 38;
sko = 1.8;
skox = sko;
skoy = 0;
tip = 0;
}
onClipEvent (enterFrame) {
if (_root.smert == 0) {
if (giz <= 0) {
_parent.nextFrame();
}
if (_parent.telo.hitTest(_root.povN)) {
skox = 0;
skoy = sko;
_parent._rotation = 90;
} else if (_parent.telo.hitTest(_root.povN2)) {
skox = 0;
skoy = sko;
_parent._rotation = 90;
} else if (_parent.telo.hitTest(_root.povN3)) {
skox = 0;
skoy = sko;
_parent._rotation = 90;
} else if (_parent.telo.hitTest(_root.povV)) {
skox = 0;
skoy = -sko;
_parent._rotation = -90;
} else if (_parent.telo.hitTest(_root.povV2)) {
skox = 0;
skoy = -sko;
_parent._rotation = -90;
} else if (_parent.telo.hitTest(_root.povV3)) {
skox = 0;
skoy = -sko;
_parent._rotation = -90;
} else if (_parent.telo.hitTest(_root.povP)) {
skox = sko;
skoy = 0;
_parent._rotation = 0;
} else if (_parent.telo.hitTest(_root.povP2)) {
skox = sko;
skoy = 0;
_parent._rotation = 0;
} else if (_parent.telo.hitTest(_root.povP3)) {
skox = sko;
skoy = 0;
_parent._rotation = 0;
} else if (_parent.telo.hitTest(_root.povP4)) {
skox = sko;
skoy = 0;
_parent._rotation = 0;
} else if (_parent.telo.hitTest(_root.povL)) {
skox = -sko;
skoy = 0;
_parent._rotation = 180;
} else if (_parent.telo.hitTest(_root.zamok)) {
_root.giz = _root.giz - 4;
_root.vragi = _root.vragi - 1;
_root.attachMovie("napala", "napala" + _root.perNapala, _root.getNextHighestDepth());
_root["napala" + _root.perNapala]._x = 323.5;
_root["napala" + _root.perNapala]._y = 238;
_root.perNapala++;
_parent.removeMovieClip();
}
_parent._x = _parent._x + skox;
_parent._y = _parent._y + skoy;
}
}
Symbol 197 MovieClip [enemyqqq] Frame 2
d = int(Math.random() * 15) + 5;
_root.gold = _root.gold + d;
Symbol 198 MovieClip [enemyq] Frame 1
stop();
Instance of Symbol 183 MovieClip "vrag" in Symbol 198 MovieClip [enemyq] Frame 1
onClipEvent (load) {
giz = 26;
sko = 1.8;
skox = sko;
skoy = 0;
tip = 0;
}
onClipEvent (enterFrame) {
if (_root.smert == 0) {
if (giz <= 0) {
_parent.nextFrame();
}
if (_parent.telo.hitTest(_root.povN)) {
skox = 0;
skoy = sko;
_parent._rotation = 90;
} else if (_parent.telo.hitTest(_root.povN2)) {
skox = 0;
skoy = sko;
_parent._rotation = 90;
} else if (_parent.telo.hitTest(_root.povN3)) {
skox = 0;
skoy = sko;
_parent._rotation = 90;
} else if (_parent.telo.hitTest(_root.povV)) {
skox = 0;
skoy = -sko;
_parent._rotation = -90;
} else if (_parent.telo.hitTest(_root.povV2)) {
skox = 0;
skoy = -sko;
_parent._rotation = -90;
} else if (_parent.telo.hitTest(_root.povV3)) {
skox = 0;
skoy = -sko;
_parent._rotation = -90;
} else if (_parent.telo.hitTest(_root.povP)) {
skox = sko;
skoy = 0;
_parent._rotation = 0;
} else if (_parent.telo.hitTest(_root.povP2)) {
skox = sko;
skoy = 0;
_parent._rotation = 0;
} else if (_parent.telo.hitTest(_root.povP3)) {
skox = sko;
skoy = 0;
_parent._rotation = 0;
} else if (_parent.telo.hitTest(_root.povP4)) {
skox = sko;
skoy = 0;
_parent._rotation = 0;
} else if (_parent.telo.hitTest(_root.povL)) {
skox = -sko;
skoy = 0;
_parent._rotation = 180;
} else if (_parent.telo.hitTest(_root.zamok)) {
_root.giz = _root.giz - 5;
_root.vragi = _root.vragi - 1;
_root.attachMovie("napala", "napala" + _root.perNapala, _root.getNextHighestDepth());
_root["napala" + _root.perNapala]._x = 323.5;
_root["napala" + _root.perNapala]._y = 238;
_root.perNapala++;
_parent.removeMovieClip();
}
_parent._x = _parent._x + skox;
_parent._y = _parent._y + skoy;
}
}
Symbol 198 MovieClip [enemyq] Frame 2
d = int(Math.random() * 10) + 3;
_root.gold = _root.gold + d;
Symbol 203 MovieClip [enemyg] Frame 1
stop();
Instance of Symbol 202 MovieClip "vrag" in Symbol 203 MovieClip [enemyg] Frame 1
onClipEvent (load) {
giz = 310;
sko = 1.5;
skox = sko;
skoy = 0;
tip = 1;
}
onClipEvent (enterFrame) {
if (_root.smert == 0) {
if (giz <= 0) {
_parent.nextFrame();
}
if (_parent.telo.hitTest(_root.povN)) {
skox = 0;
skoy = sko;
_parent._rotation = 90;
} else if (_parent.telo.hitTest(_root.povN2)) {
skox = 0;
skoy = sko;
_parent._rotation = 90;
} else if (_parent.telo.hitTest(_root.povN3)) {
skox = 0;
skoy = sko;
_parent._rotation = 90;
} else if (_parent.telo.hitTest(_root.povV)) {
skox = 0;
skoy = -sko;
_parent._rotation = -90;
} else if (_parent.telo.hitTest(_root.povV2)) {
skox = 0;
skoy = -sko;
_parent._rotation = -90;
} else if (_parent.telo.hitTest(_root.povV3)) {
skox = 0;
skoy = -sko;
_parent._rotation = -90;
} else if (_parent.telo.hitTest(_root.povP)) {
skox = sko;
skoy = 0;
_parent._rotation = 0;
} else if (_parent.telo.hitTest(_root.povP2)) {
skox = sko;
skoy = 0;
_parent._rotation = 0;
} else if (_parent.telo.hitTest(_root.povP3)) {
skox = sko;
skoy = 0;
_parent._rotation = 0;
} else if (_parent.telo.hitTest(_root.povP4)) {
skox = sko;
skoy = 0;
_parent._rotation = 0;
} else if (_parent.telo.hitTest(_root.povL)) {
skox = -sko;
skoy = 0;
_parent._rotation = 180;
} else if (_parent.telo.hitTest(_root.zamok)) {
_root.giz = _root.giz - 10;
_root.vragi = _root.vragi - 1;
_root.attachMovie("napala", "napala" + _root.perNapala, _root.getNextHighestDepth());
_root["napala" + _root.perNapala]._x = 323.5;
_root["napala" + _root.perNapala]._y = 238;
_root.perNapala++;
_parent.removeMovieClip();
}
_parent._x = _parent._x + skox;
_parent._y = _parent._y + skoy;
}
}
Symbol 203 MovieClip [enemyg] Frame 2
d = int(Math.random() * 50) + 3;
_root.gold = _root.gold + d;
Symbol 204 MovieClip [enemygg] Frame 1
stop();
Instance of Symbol 202 MovieClip "vrag" in Symbol 204 MovieClip [enemygg] Frame 1
onClipEvent (load) {
giz = 400;
sko = 1.5;
skox = sko;
skoy = 0;
tip = 1;
}
onClipEvent (enterFrame) {
if (_root.smert == 0) {
if (giz <= 0) {
_parent.nextFrame();
}
if (_parent.telo.hitTest(_root.povN)) {
skox = 0;
skoy = sko;
_parent._rotation = 90;
} else if (_parent.telo.hitTest(_root.povN2)) {
skox = 0;
skoy = sko;
_parent._rotation = 90;
} else if (_parent.telo.hitTest(_root.povN3)) {
skox = 0;
skoy = sko;
_parent._rotation = 90;
} else if (_parent.telo.hitTest(_root.povV)) {
skox = 0;
skoy = -sko;
_parent._rotation = -90;
} else if (_parent.telo.hitTest(_root.povV2)) {
skox = 0;
skoy = -sko;
_parent._rotation = -90;
} else if (_parent.telo.hitTest(_root.povV3)) {
skox = 0;
skoy = -sko;
_parent._rotation = -90;
} else if (_parent.telo.hitTest(_root.povP)) {
skox = sko;
skoy = 0;
_parent._rotation = 0;
} else if (_parent.telo.hitTest(_root.povP2)) {
skox = sko;
skoy = 0;
_parent._rotation = 0;
} else if (_parent.telo.hitTest(_root.povP3)) {
skox = sko;
skoy = 0;
_parent._rotation = 0;
} else if (_parent.telo.hitTest(_root.povP4)) {
skox = sko;
skoy = 0;
_parent._rotation = 0;
} else if (_parent.telo.hitTest(_root.povL)) {
skox = -sko;
skoy = 0;
_parent._rotation = 180;
} else if (_parent.telo.hitTest(_root.zamok)) {
_root.giz = _root.giz - 10;
_root.vragi = _root.vragi - 1;
_root.attachMovie("napala", "napala" + _root.perNapala, _root.getNextHighestDepth());
_root["napala" + _root.perNapala]._x = 323.5;
_root["napala" + _root.perNapala]._y = 238;
_root.perNapala++;
_parent.removeMovieClip();
}
_parent._x = _parent._x + skox;
_parent._y = _parent._y + skoy;
}
}
Symbol 204 MovieClip [enemygg] Frame 2
d = int(Math.random() * 60) + 3;
_root.gold = _root.gold + d;
Symbol 208 MovieClip [enemyf] Frame 1
stop();
Instance of Symbol 207 MovieClip "vrag" in Symbol 208 MovieClip [enemyf] Frame 1
onClipEvent (load) {
giz = 240;
sko = 1.1;
skox = sko;
skoy = 0;
tip = 1;
}
onClipEvent (enterFrame) {
if (_root.smert == 0) {
if (giz <= 0) {
_parent.nextFrame();
}
if (_parent.telo.hitTest(_root.povN)) {
skox = 0;
skoy = sko;
_parent._rotation = 90;
} else if (_parent.telo.hitTest(_root.povN2)) {
skox = 0;
skoy = sko;
_parent._rotation = 90;
} else if (_parent.telo.hitTest(_root.povN3)) {
skox = 0;
skoy = sko;
_parent._rotation = 90;
} else if (_parent.telo.hitTest(_root.povV)) {
skox = 0;
skoy = -sko;
_parent._rotation = -90;
} else if (_parent.telo.hitTest(_root.povV2)) {
skox = 0;
skoy = -sko;
_parent._rotation = -90;
} else if (_parent.telo.hitTest(_root.povV3)) {
skox = 0;
skoy = -sko;
_parent._rotation = -90;
} else if (_parent.telo.hitTest(_root.povP)) {
skox = sko;
skoy = 0;
_parent._rotation = 0;
} else if (_parent.telo.hitTest(_root.povP2)) {
skox = sko;
skoy = 0;
_parent._rotation = 0;
} else if (_parent.telo.hitTest(_root.povP3)) {
skox = sko;
skoy = 0;
_parent._rotation = 0;
} else if (_parent.telo.hitTest(_root.povP4)) {
skox = sko;
skoy = 0;
_parent._rotation = 0;
} else if (_parent.telo.hitTest(_root.povL)) {
skox = -sko;
skoy = 0;
_parent._rotation = 180;
} else if (_parent.telo.hitTest(_root.zamok)) {
_root.giz = _root.giz - 10;
_root.vragi = _root.vragi - 1;
_root.attachMovie("napala", "napala" + _root.perNapala, _root.getNextHighestDepth());
_root["napala" + _root.perNapala]._x = 323.5;
_root["napala" + _root.perNapala]._y = 238;
_root.perNapala++;
_parent.removeMovieClip();
}
_parent._x = _parent._x + skox;
_parent._y = _parent._y + skoy;
}
}
Symbol 208 MovieClip [enemyf] Frame 2
d = int(Math.random() * 35) + 3;
_root.gold = _root.gold + d;
Symbol 209 MovieClip [enemyff] Frame 1
stop();
Instance of Symbol 207 MovieClip "vrag" in Symbol 209 MovieClip [enemyff] Frame 1
onClipEvent (load) {
giz = 300;
sko = 1.1;
skox = sko;
skoy = 0;
tip = 1;
}
onClipEvent (enterFrame) {
if (_root.smert == 0) {
if (giz <= 0) {
_parent.nextFrame();
}
if (_parent.telo.hitTest(_root.povN)) {
skox = 0;
skoy = sko;
_parent._rotation = 90;
} else if (_parent.telo.hitTest(_root.povN2)) {
skox = 0;
skoy = sko;
_parent._rotation = 90;
} else if (_parent.telo.hitTest(_root.povN3)) {
skox = 0;
skoy = sko;
_parent._rotation = 90;
} else if (_parent.telo.hitTest(_root.povV)) {
skox = 0;
skoy = -sko;
_parent._rotation = -90;
} else if (_parent.telo.hitTest(_root.povV2)) {
skox = 0;
skoy = -sko;
_parent._rotation = -90;
} else if (_parent.telo.hitTest(_root.povV3)) {
skox = 0;
skoy = -sko;
_parent._rotation = -90;
} else if (_parent.telo.hitTest(_root.povP)) {
skox = sko;
skoy = 0;
_parent._rotation = 0;
} else if (_parent.telo.hitTest(_root.povP2)) {
skox = sko;
skoy = 0;
_parent._rotation = 0;
} else if (_parent.telo.hitTest(_root.povP3)) {
skox = sko;
skoy = 0;
_parent._rotation = 0;
} else if (_parent.telo.hitTest(_root.povP4)) {
skox = sko;
skoy = 0;
_parent._rotation = 0;
} else if (_parent.telo.hitTest(_root.povL)) {
skox = -sko;
skoy = 0;
_parent._rotation = 180;
} else if (_parent.telo.hitTest(_root.zamok)) {
_root.giz = _root.giz - 10;
_root.vragi = _root.vragi - 1;
_root.attachMovie("napala", "napala" + _root.perNapala, _root.getNextHighestDepth());
_root["napala" + _root.perNapala]._x = 323.5;
_root["napala" + _root.perNapala]._y = 238;
_root.perNapala++;
_parent.removeMovieClip();
}
_parent._x = _parent._x + skox;
_parent._y = _parent._y + skoy;
}
}
Symbol 209 MovieClip [enemyff] Frame 2
d = int(Math.random() * 45) + 3;
_root.gold = _root.gold + d;
Symbol 215 MovieClip [enemydd] Frame 1
stop();
Instance of Symbol 214 MovieClip "vrag" in Symbol 215 MovieClip [enemydd] Frame 1
onClipEvent (load) {
giz = 88;
sko = 1.5;
skox = sko;
skoy = 0;
tip = 1;
}
onClipEvent (enterFrame) {
if (_root.smert == 0) {
if (giz <= 0) {
_parent.nextFrame();
}
if (_parent.telo.hitTest(_root.povN)) {
skox = 0;
skoy = sko;
_parent._rotation = 90;
} else if (_parent.telo.hitTest(_root.povN2)) {
skox = 0;
skoy = sko;
_parent._rotation = 90;
} else if (_parent.telo.hitTest(_root.povN3)) {
skox = 0;
skoy = sko;
_parent._rotation = 90;
} else if (_parent.telo.hitTest(_root.povV)) {
skox = 0;
skoy = -sko;
_parent._rotation = -90;
} else if (_parent.telo.hitTest(_root.povV2)) {
skox = 0;
skoy = -sko;
_parent._rotation = -90;
} else if (_parent.telo.hitTest(_root.povV3)) {
skox = 0;
skoy = -sko;
_parent._rotation = -90;
} else if (_parent.telo.hitTest(_root.povP)) {
skox = sko;
skoy = 0;
_parent._rotation = 0;
} else if (_parent.telo.hitTest(_root.povP2)) {
skox = sko;
skoy = 0;
_parent._rotation = 0;
} else if (_parent.telo.hitTest(_root.povP3)) {
skox = sko;
skoy = 0;
_parent._rotation = 0;
} else if (_parent.telo.hitTest(_root.povP4)) {
skox = sko;
skoy = 0;
_parent._rotation = 0;
} else if (_parent.telo.hitTest(_root.povL)) {
skox = -sko;
skoy = 0;
_parent._rotation = 180;
} else if (_parent.telo.hitTest(_root.zamok)) {
_root.giz = _root.giz - 5;
_root.vragi = _root.vragi - 1;
_root.attachMovie("napala", "napala" + _root.perNapala, _root.getNextHighestDepth());
_root["napala" + _root.perNapala]._x = 323.5;
_root["napala" + _root.perNapala]._y = 238;
_root.perNapala++;
_parent.removeMovieClip();
}
_parent._x = _parent._x + skox;
_parent._y = _parent._y + skoy;
}
}
Symbol 215 MovieClip [enemydd] Frame 2
d = int(Math.random() * 25) + 3;
_root.gold = _root.gold + d;
Symbol 219 MovieClip [enemyd] Frame 1
stop();
Instance of Symbol 218 MovieClip "vrag" in Symbol 219 MovieClip [enemyd] Frame 1
onClipEvent (load) {
giz = 65;
sko = 1.5;
skox = sko;
skoy = 0;
tip = 1;
}
onClipEvent (enterFrame) {
if (_root.smert == 0) {
if (giz <= 0) {
_parent.nextFrame();
}
if (_parent.telo.hitTest(_root.povN)) {
skox = 0;
skoy = sko;
_parent._rotation = 90;
} else if (_parent.telo.hitTest(_root.povN2)) {
skox = 0;
skoy = sko;
_parent._rotation = 90;
} else if (_parent.telo.hitTest(_root.povN3)) {
skox = 0;
skoy = sko;
_parent._rotation = 90;
} else if (_parent.telo.hitTest(_root.povV)) {
skox = 0;
skoy = -sko;
_parent._rotation = -90;
} else if (_parent.telo.hitTest(_root.povV2)) {
skox = 0;
skoy = -sko;
_parent._rotation = -90;
} else if (_parent.telo.hitTest(_root.povV3)) {
skox = 0;
skoy = -sko;
_parent._rotation = -90;
} else if (_parent.telo.hitTest(_root.povP)) {
skox = sko;
skoy = 0;
_parent._rotation = 0;
} else if (_parent.telo.hitTest(_root.povP2)) {
skox = sko;
skoy = 0;
_parent._rotation = 0;
} else if (_parent.telo.hitTest(_root.povP3)) {
skox = sko;
skoy = 0;
_parent._rotation = 0;
} else if (_parent.telo.hitTest(_root.povP4)) {
skox = sko;
skoy = 0;
_parent._rotation = 0;
} else if (_parent.telo.hitTest(_root.povL)) {
skox = -sko;
skoy = 0;
_parent._rotation = 180;
} else if (_parent.telo.hitTest(_root.zamok)) {
_root.giz = _root.giz - 5;
_root.vragi = _root.vragi - 1;
_root.attachMovie("napala", "napala" + _root.perNapala, _root.getNextHighestDepth());
_root["napala" + _root.perNapala]._x = 323.5;
_root["napala" + _root.perNapala]._y = 238;
_root.perNapala++;
_parent.removeMovieClip();
}
_parent._x = _parent._x + skox;
_parent._y = _parent._y + skoy;
}
}
Symbol 219 MovieClip [enemyd] Frame 2
d = int(Math.random() * 20) + 3;
_root.gold = _root.gold + d;
Symbol 223 MovieClip [enemyddd] Frame 1
stop();
Instance of Symbol 222 MovieClip "vrag" in Symbol 223 MovieClip [enemyddd] Frame 1
onClipEvent (load) {
giz = 120;
sko = 1.5;
skox = sko;
skoy = 0;
tip = 1;
}
onClipEvent (enterFrame) {
if (_root.smert == 0) {
if (giz <= 0) {
_parent.nextFrame();
}
if (_parent.telo.hitTest(_root.povN)) {
skox = 0;
skoy = sko;
_parent._rotation = 90;
} else if (_parent.telo.hitTest(_root.povN2)) {
skox = 0;
skoy = sko;
_parent._rotation = 90;
} else if (_parent.telo.hitTest(_root.povN3)) {
skox = 0;
skoy = sko;
_parent._rotation = 90;
} else if (_parent.telo.hitTest(_root.povV)) {
skox = 0;
skoy = -sko;
_parent._rotation = -90;
} else if (_parent.telo.hitTest(_root.povV2)) {
skox = 0;
skoy = -sko;
_parent._rotation = -90;
} else if (_parent.telo.hitTest(_root.povV3)) {
skox = 0;
skoy = -sko;
_parent._rotation = -90;
} else if (_parent.telo.hitTest(_root.povP)) {
skox = sko;
skoy = 0;
_parent._rotation = 0;
} else if (_parent.telo.hitTest(_root.povP2)) {
skox = sko;
skoy = 0;
_parent._rotation = 0;
} else if (_parent.telo.hitTest(_root.povP3)) {
skox = sko;
skoy = 0;
_parent._rotation = 0;
} else if (_parent.telo.hitTest(_root.povP4)) {
skox = sko;
skoy = 0;
_parent._rotation = 0;
} else if (_parent.telo.hitTest(_root.povL)) {
skox = -sko;
skoy = 0;
_parent._rotation = 180;
} else if (_parent.telo.hitTest(_root.zamok)) {
_root.giz = _root.giz - 5;
_root.vragi = _root.vragi - 1;
_root.attachMovie("napala", "napala" + _root.perNapala, _root.getNextHighestDepth());
_root["napala" + _root.perNapala]._x = 323.5;
_root["napala" + _root.perNapala]._y = 238;
_root.perNapala++;
_parent.removeMovieClip();
}
_parent._x = _parent._x + skox;
_parent._y = _parent._y + skoy;
}
}
Symbol 223 MovieClip [enemyddd] Frame 2
d = int(Math.random() * 28) + 3;
_root.gold = _root.gold + d;
Symbol 227 MovieClip [enemyss] Frame 1
stop();
Instance of Symbol 226 MovieClip "vrag" in Symbol 227 MovieClip [enemyss] Frame 1
onClipEvent (load) {
giz = 36;
sko = 2.4;
skox = sko;
skoy = 0;
tip = 1;
}
onClipEvent (enterFrame) {
if (_root.smert == 0) {
if (giz <= 0) {
_parent.nextFrame();
}
if (_parent.telo.hitTest(_root.povN)) {
skox = 0;
skoy = sko;
_parent._rotation = 90;
} else if (_parent.telo.hitTest(_root.povN2)) {
skox = 0;
skoy = sko;
_parent._rotation = 90;
} else if (_parent.telo.hitTest(_root.povN3)) {
skox = 0;
skoy = sko;
_parent._rotation = 90;
} else if (_parent.telo.hitTest(_root.povV)) {
skox = 0;
skoy = -sko;
_parent._rotation = -90;
} else if (_parent.telo.hitTest(_root.povV2)) {
skox = 0;
skoy = -sko;
_parent._rotation = -90;
} else if (_parent.telo.hitTest(_root.povV3)) {
skox = 0;
skoy = -sko;
_parent._rotation = -90;
} else if (_parent.telo.hitTest(_root.povP)) {
skox = sko;
skoy = 0;
_parent._rotation = 0;
} else if (_parent.telo.hitTest(_root.povP2)) {
skox = sko;
skoy = 0;
_parent._rotation = 0;
} else if (_parent.telo.hitTest(_root.povP3)) {
skox = sko;
skoy = 0;
_parent._rotation = 0;
} else if (_parent.telo.hitTest(_root.povP4)) {
skox = sko;
skoy = 0;
_parent._rotation = 0;
} else if (_parent.telo.hitTest(_root.povL)) {
skox = -sko;
skoy = 0;
_parent._rotation = 180;
} else if (_parent.telo.hitTest(_root.zamok)) {
_root.giz = _root.giz - 1;
_root.vragi = _root.vragi - 1;
_root.attachMovie("napala", "napala" + _root.perNapala, _root.getNextHighestDepth());
_root["napala" + _root.perNapala]._x = 323.5;
_root["napala" + _root.perNapala]._y = 238;
_root.perNapala++;
_parent.removeMovieClip();
}
_parent._x = _parent._x + skox;
_parent._y = _parent._y + skoy;
}
}
Symbol 227 MovieClip [enemyss] Frame 2
d = int(Math.random() * 18) + 3;
_root.gold = _root.gold + d;
Symbol 228 MovieClip [enemys] Frame 1
stop();
Instance of Symbol 226 MovieClip "vrag" in Symbol 228 MovieClip [enemys] Frame 1
onClipEvent (load) {
giz = 28;
sko = 2;
skox = sko;
skoy = 0;
tip = 1;
}
onClipEvent (enterFrame) {
if (_root.smert == 0) {
if (giz <= 0) {
_parent.nextFrame();
}
if (_parent.telo.hitTest(_root.povN)) {
skox = 0;
skoy = sko;
_parent._rotation = 90;
} else if (_parent.telo.hitTest(_root.povN2)) {
skox = 0;
skoy = sko;
_parent._rotation = 90;
} else if (_parent.telo.hitTest(_root.povN3)) {
skox = 0;
skoy = sko;
_parent._rotation = 90;
} else if (_parent.telo.hitTest(_root.povV)) {
skox = 0;
skoy = -sko;
_parent._rotation = -90;
} else if (_parent.telo.hitTest(_root.povV2)) {
skox = 0;
skoy = -sko;
_parent._rotation = -90;
} else if (_parent.telo.hitTest(_root.povV3)) {
skox = 0;
skoy = -sko;
_parent._rotation = -90;
} else if (_parent.telo.hitTest(_root.povP)) {
skox = sko;
skoy = 0;
_parent._rotation = 0;
} else if (_parent.telo.hitTest(_root.povP2)) {
skox = sko;
skoy = 0;
_parent._rotation = 0;
} else if (_parent.telo.hitTest(_root.povP3)) {
skox = sko;
skoy = 0;
_parent._rotation = 0;
} else if (_parent.telo.hitTest(_root.povP4)) {
skox = sko;
skoy = 0;
_parent._rotation = 0;
} else if (_parent.telo.hitTest(_root.povL)) {
skox = -sko;
skoy = 0;
_parent._rotation = 180;
} else if (_parent.telo.hitTest(_root.zamok)) {
_root.giz = _root.giz - 1;
_root.vragi = _root.vragi - 1;
_root.attachMovie("napala", "napala" + _root.perNapala, _root.getNextHighestDepth());
_root["napala" + _root.perNapala]._x = 323.5;
_root["napala" + _root.perNapala]._y = 238;
_root.perNapala++;
_parent.removeMovieClip();
}
_parent._x = _parent._x + skox;
_parent._y = _parent._y + skoy;
}
}
Symbol 228 MovieClip [enemys] Frame 2
d = int(Math.random() * 15) + 3;
_root.gold = _root.gold + d;
Symbol 229 MovieClip [enemysss] Frame 1
stop();
Instance of Symbol 226 MovieClip "vrag" in Symbol 229 MovieClip [enemysss] Frame 1
onClipEvent (load) {
giz = 35;
sko = 3;
skox = sko;
skoy = 0;
tip = 1;
}
onClipEvent (enterFrame) {
if (_root.smert == 0) {
if (giz <= 0) {
_parent.nextFrame();
}
if (_parent.telo.hitTest(_root.povN)) {
skox = 0;
skoy = sko;
_parent._rotation = 90;
} else if (_parent.telo.hitTest(_root.povN2)) {
skox = 0;
skoy = sko;
_parent._rotation = 90;
} else if (_parent.telo.hitTest(_root.povN3)) {
skox = 0;
skoy = sko;
_parent._rotation = 90;
} else if (_parent.telo.hitTest(_root.povV)) {
skox = 0;
skoy = -sko;
_parent._rotation = -90;
} else if (_parent.telo.hitTest(_root.povV2)) {
skox = 0;
skoy = -sko;
_parent._rotation = -90;
} else if (_parent.telo.hitTest(_root.povV3)) {
skox = 0;
skoy = -sko;
_parent._rotation = -90;
} else if (_parent.telo.hitTest(_root.povP)) {
skox = sko;
skoy = 0;
_parent._rotation = 0;
} else if (_parent.telo.hitTest(_root.povP2)) {
skox = sko;
skoy = 0;
_parent._rotation = 0;
} else if (_parent.telo.hitTest(_root.povP3)) {
skox = sko;
skoy = 0;
_parent._rotation = 0;
} else if (_parent.telo.hitTest(_root.povP4)) {
skox = sko;
skoy = 0;
_parent._rotation = 0;
} else if (_parent.telo.hitTest(_root.povL)) {
skox = -sko;
skoy = 0;
_parent._rotation = 180;
} else if (_parent.telo.hitTest(_root.zamok)) {
_root.giz = _root.giz - 1;
_root.vragi = _root.vragi - 1;
_root.attachMovie("napala", "napala" + _root.perNapala, _root.getNextHighestDepth());
_root["napala" + _root.perNapala]._x = 323.5;
_root["napala" + _root.perNapala]._y = 238;
_root.perNapala++;
_parent.removeMovieClip();
}
_parent._x = _parent._x + skox;
_parent._y = _parent._y + skoy;
}
}
Symbol 229 MovieClip [enemysss] Frame 2
d = int(Math.random() * 20) + 4;
_root.gold = _root.gold + d;
Symbol 233 MovieClip [enemyaaa] Frame 1
stop();
Instance of Symbol 232 MovieClip "vrag" in Symbol 233 MovieClip [enemyaaa] Frame 1
onClipEvent (load) {
giz = 18;
sko = 2.2;
skox = sko;
skoy = 0;
tip = 1;
}
onClipEvent (enterFrame) {
if (_root.smert == 0) {
if (giz <= 0) {
_parent.nextFrame();
}
if (_parent.telo.hitTest(_root.povN)) {
skox = 0;
skoy = sko;
_parent._rotation = 90;
} else if (_parent.telo.hitTest(_root.povN2)) {
skox = 0;
skoy = sko;
_parent._rotation = 90;
} else if (_parent.telo.hitTest(_root.povN3)) {
skox = 0;
skoy = sko;
_parent._rotation = 90;
} else if (_parent.telo.hitTest(_root.povV)) {
skox = 0;
skoy = -sko;
_parent._rotation = -90;
} else if (_parent.telo.hitTest(_root.povV2)) {
skox = 0;
skoy = -sko;
_parent._rotation = -90;
} else if (_parent.telo.hitTest(_root.povV3)) {
skox = 0;
skoy = -sko;
_parent._rotation = -90;
} else if (_parent.telo.hitTest(_root.povP)) {
skox = sko;
skoy = 0;
_parent._rotation = 0;
} else if (_parent.telo.hitTest(_root.povP2)) {
skox = sko;
skoy = 0;
_parent._rotation = 0;
} else if (_parent.telo.hitTest(_root.povP3)) {
skox = sko;
skoy = 0;
_parent._rotation = 0;
} else if (_parent.telo.hitTest(_root.povP4)) {
skox = sko;
skoy = 0;
_parent._rotation = 0;
} else if (_parent.telo.hitTest(_root.povL)) {
skox = -sko;
skoy = 0;
_parent._rotation = 180;
} else if (_parent.telo.hitTest(_root.zamok)) {
_root.giz = _root.giz - 1;
_root.vragi = _root.vragi - 1;
_root.attachMovie("napala", "napala" + _root.perNapala, _root.getNextHighestDepth());
_root["napala" + _root.perNapala]._x = 323.5;
_root["napala" + _root.perNapala]._y = 238;
_root.perNapala++;
_parent.removeMovieClip();
}
_parent._x = _parent._x + skox;
_parent._y = _parent._y + skoy;
}
}
Symbol 233 MovieClip [enemyaaa] Frame 2
d = int(Math.random() * 12) + 4;
_root.gold = _root.gold + d;
Symbol 234 MovieClip [enemya] Frame 1
stop();
Instance of Symbol 232 MovieClip "vrag" in Symbol 234 MovieClip [enemya] Frame 1
onClipEvent (load) {
giz = 8;
sko = 2.5;
skox = sko;
skoy = 0;
tip = 1;
}
onClipEvent (enterFrame) {
if (_root.smert == 0) {
if (giz <= 0) {
_parent.nextFrame();
}
if (_parent.telo.hitTest(_root.povN)) {
skox = 0;
skoy = sko;
_parent._rotation = 90;
} else if (_parent.telo.hitTest(_root.povN2)) {
skox = 0;
skoy = sko;
_parent._rotation = 90;
} else if (_parent.telo.hitTest(_root.povN3)) {
skox = 0;
skoy = sko;
_parent._rotation = 90;
} else if (_parent.telo.hitTest(_root.povV)) {
skox = 0;
skoy = -sko;
_parent._rotation = -90;
} else if (_parent.telo.hitTest(_root.povV2)) {
skox = 0;
skoy = -sko;
_parent._rotation = -90;
} else if (_parent.telo.hitTest(_root.povV3)) {
skox = 0;
skoy = -sko;
_parent._rotation = -90;
} else if (_parent.telo.hitTest(_root.povP)) {
skox = sko;
skoy = 0;
_parent._rotation = 0;
} else if (_parent.telo.hitTest(_root.povP2)) {
skox = sko;
skoy = 0;
_parent._rotation = 0;
} else if (_parent.telo.hitTest(_root.povP3)) {
skox = sko;
skoy = 0;
_parent._rotation = 0;
} else if (_parent.telo.hitTest(_root.povP4)) {
skox = sko;
skoy = 0;
_parent._rotation = 0;
} else if (_parent.telo.hitTest(_root.povL)) {
skox = -sko;
skoy = 0;
_parent._rotation = 180;
} else if (_parent.telo.hitTest(_root.zamok)) {
_root.giz = _root.giz - 1;
_root.vragi = _root.vragi - 1;
_root.attachMovie("napala", "napala" + _root.perNapala, _root.getNextHighestDepth());
_root["napala" + _root.perNapala]._x = 323.5;
_root["napala" + _root.perNapala]._y = 238;
_root.perNapala++;
_parent.removeMovieClip();
}
_parent._x = _parent._x + skox;
_parent._y = _parent._y + skoy;
}
}
Symbol 234 MovieClip [enemya] Frame 2
d = int(Math.random() * 5) + 3;
_root.gold = _root.gold + d;
Symbol 235 MovieClip [enemyaa] Frame 1
stop();
Instance of Symbol 232 MovieClip "vrag" in Symbol 235 MovieClip [enemyaa] Frame 1
onClipEvent (load) {
giz = 14;
sko = 2;
skox = sko;
skoy = 0;
tip = 1;
}
onClipEvent (enterFrame) {
if (_root.smert == 0) {
if (giz <= 0) {
_parent.nextFrame();
}
if (_parent.telo.hitTest(_root.povN)) {
skox = 0;
skoy = sko;
_parent._rotation = 90;
} else if (_parent.telo.hitTest(_root.povN2)) {
skox = 0;
skoy = sko;
_parent._rotation = 90;
} else if (_parent.telo.hitTest(_root.povN3)) {
skox = 0;
skoy = sko;
_parent._rotation = 90;
} else if (_parent.telo.hitTest(_root.povV)) {
skox = 0;
skoy = -sko;
_parent._rotation = -90;
} else if (_parent.telo.hitTest(_root.povV2)) {
skox = 0;
skoy = -sko;
_parent._rotation = -90;
} else if (_parent.telo.hitTest(_root.povV3)) {
skox = 0;
skoy = -sko;
_parent._rotation = -90;
} else if (_parent.telo.hitTest(_root.povP)) {
skox = sko;
skoy = 0;
_parent._rotation = 0;
} else if (_parent.telo.hitTest(_root.povP2)) {
skox = sko;
skoy = 0;
_parent._rotation = 0;
} else if (_parent.telo.hitTest(_root.povP3)) {
skox = sko;
skoy = 0;
_parent._rotation = 0;
} else if (_parent.telo.hitTest(_root.povP4)) {
skox = sko;
skoy = 0;
_parent._rotation = 0;
} else if (_parent.telo.hitTest(_root.povL)) {
skox = -sko;
skoy = 0;
_parent._rotation = 180;
} else if (_parent.telo.hitTest(_root.zamok)) {
_root.giz = _root.giz - 1;
_root.vragi = _root.vragi - 1;
_root.attachMovie("napala", "napala" + _root.perNapala, _root.getNextHighestDepth());
_root["napala" + _root.perNapala]._x = 323.5;
_root["napala" + _root.perNapala]._y = 238;
_root.perNapala++;
_parent.removeMovieClip();
}
_parent._x = _parent._x + skox;
_parent._y = _parent._y + skoy;
}
}
Symbol 235 MovieClip [enemyaa] Frame 2
d = int(Math.random() * 8) + 3;
_root.gold = _root.gold + d;
Symbol 245 MovieClip [enemyee] Frame 1
stop();
Instance of Symbol 244 MovieClip "vrag" in Symbol 245 MovieClip [enemyee] Frame 1
onClipEvent (load) {
giz = 80;
sko = 1.2;
skox = sko;
skoy = 0;
tip = 0;
}
onClipEvent (enterFrame) {
if (_root.smert == 0) {
if (giz <= 0) {
_parent.nextFrame();
}
if (_parent.telo.hitTest(_root.povN)) {
skox = 0;
skoy = sko;
_parent._rotation = 90;
} else if (_parent.telo.hitTest(_root.povN2)) {
skox = 0;
skoy = sko;
_parent._rotation = 90;
} else if (_parent.telo.hitTest(_root.povN3)) {
skox = 0;
skoy = sko;
_parent._rotation = 90;
} else if (_parent.telo.hitTest(_root.povV)) {
skox = 0;
skoy = -sko;
_parent._rotation = -90;
} else if (_parent.telo.hitTest(_root.povV2)) {
skox = 0;
skoy = -sko;
_parent._rotation = -90;
} else if (_parent.telo.hitTest(_root.povV3)) {
skox = 0;
skoy = -sko;
_parent._rotation = -90;
} else if (_parent.telo.hitTest(_root.povP)) {
skox = sko;
skoy = 0;
_parent._rotation = 0;
} else if (_parent.telo.hitTest(_root.povP2)) {
skox = sko;
skoy = 0;
_parent._rotation = 0;
} else if (_parent.telo.hitTest(_root.povP3)) {
skox = sko;
skoy = 0;
_parent._rotation = 0;
} else if (_parent.telo.hitTest(_root.povP4)) {
skox = sko;
skoy = 0;
_parent._rotation = 0;
} else if (_parent.telo.hitTest(_root.povL)) {
skox = -sko;
skoy = 0;
_parent._rotation = 180;
} else if (_parent.telo.hitTest(_root.zamok)) {
_root.giz = _root.giz - 4;
_root.vragi = _root.vragi - 1;
_root.attachMovie("napala", "napala" + _root.perNapala, _root.getNextHighestDepth());
_root["napala" + _root.perNapala]._x = 323.5;
_root["napala" + _root.perNapala]._y = 238;
_root.perNapala++;
_parent.removeMovieClip();
}
_parent._x = _parent._x + skox;
_parent._y = _parent._y + skoy;
}
}
Symbol 245 MovieClip [enemyee] Frame 2
d = int(Math.random() * 30) + 3;
_root.gold = _root.gold + d;
Symbol 246 MovieClip [enemye] Frame 1
stop();
Instance of Symbol 244 MovieClip "vrag" in Symbol 246 MovieClip [enemye] Frame 1
onClipEvent (load) {
giz = 50;
sko = 1.1;
skox = sko;
skoy = 0;
tip = 0;
}
onClipEvent (enterFrame) {
if (_root.smert == 0) {
if (giz <= 0) {
_parent.nextFrame();
}
if (_parent.telo.hitTest(_root.povN)) {
skox = 0;
skoy = sko;
_parent._rotation = 90;
} else if (_parent.telo.hitTest(_root.povN2)) {
skox = 0;
skoy = sko;
_parent._rotation = 90;
} else if (_parent.telo.hitTest(_root.povN3)) {
skox = 0;
skoy = sko;
_parent._rotation = 90;
} else if (_parent.telo.hitTest(_root.povV)) {
skox = 0;
skoy = -sko;
_parent._rotation = -90;
} else if (_parent.telo.hitTest(_root.povV2)) {
skox = 0;
skoy = -sko;
_parent._rotation = -90;
} else if (_parent.telo.hitTest(_root.povV3)) {
skox = 0;
skoy = -sko;
_parent._rotation = -90;
} else if (_parent.telo.hitTest(_root.povP)) {
skox = sko;
skoy = 0;
_parent._rotation = 0;
} else if (_parent.telo.hitTest(_root.povP2)) {
skox = sko;
skoy = 0;
_parent._rotation = 0;
} else if (_parent.telo.hitTest(_root.povP3)) {
skox = sko;
skoy = 0;
_parent._rotation = 0;
} else if (_parent.telo.hitTest(_root.povP4)) {
skox = sko;
skoy = 0;
_parent._rotation = 0;
} else if (_parent.telo.hitTest(_root.povL)) {
skox = -sko;
skoy = 0;
_parent._rotation = 180;
} else if (_parent.telo.hitTest(_root.zamok)) {
_root.giz = _root.giz - 4;
_root.vragi = _root.vragi - 1;
_root.attachMovie("napala", "napala" + _root.perNapala, _root.getNextHighestDepth());
_root["napala" + _root.perNapala]._x = 323.5;
_root["napala" + _root.perNapala]._y = 238;
_root.perNapala++;
_parent.removeMovieClip();
}
_parent._x = _parent._x + skox;
_parent._y = _parent._y + skoy;
}
}
Symbol 246 MovieClip [enemye] Frame 2
d = int(Math.random() * 25) + 5;
_root.gold = _root.gold + d;
Symbol 247 MovieClip [enemyeee] Frame 1
stop();
Instance of Symbol 244 MovieClip "vrag" in Symbol 247 MovieClip [enemyeee] Frame 1
onClipEvent (load) {
giz = 95;
sko = 1.5;
skox = sko;
skoy = 0;
tip = 0;
}
onClipEvent (enterFrame) {
if (_root.smert == 0) {
if (giz <= 0) {
_parent.nextFrame();
}
if (_parent.telo.hitTest(_root.povN)) {
skox = 0;
skoy = sko;
_parent._rotation = 90;
} else if (_parent.telo.hitTest(_root.povN2)) {
skox = 0;
skoy = sko;
_parent._rotation = 90;
} else if (_parent.telo.hitTest(_root.povN3)) {
skox = 0;
skoy = sko;
_parent._rotation = 90;
} else if (_parent.telo.hitTest(_root.povV)) {
skox = 0;
skoy = -sko;
_parent._rotation = -90;
} else if (_parent.telo.hitTest(_root.povV2)) {
skox = 0;
skoy = -sko;
_parent._rotation = -90;
} else if (_parent.telo.hitTest(_root.povV3)) {
skox = 0;
skoy = -sko;
_parent._rotation = -90;
} else if (_parent.telo.hitTest(_root.povP)) {
skox = sko;
skoy = 0;
_parent._rotation = 0;
} else if (_parent.telo.hitTest(_root.povP2)) {
skox = sko;
skoy = 0;
_parent._rotation = 0;
} else if (_parent.telo.hitTest(_root.povP3)) {
skox = sko;
skoy = 0;
_parent._rotation = 0;
} else if (_parent.telo.hitTest(_root.povP4)) {
skox = sko;
skoy = 0;
_parent._rotation = 0;
} else if (_parent.telo.hitTest(_root.povL)) {
skox = -sko;
skoy = 0;
_parent._rotation = 180;
} else if (_parent.telo.hitTest(_root.zamok)) {
_root.giz = _root.giz - 5;
_root.vragi = _root.vragi - 1;
_root.attachMovie("napala", "napala" + _root.perNapala, _root.getNextHighestDepth());
_root["napala" + _root.perNapala]._x = 323.5;
_root["napala" + _root.perNapala]._y = 238;
_root.perNapala++;
_parent.removeMovieClip();
}
_parent._x = _parent._x + skox;
_parent._y = _parent._y + skoy;
}
}
Symbol 247 MovieClip [enemyeee] Frame 2
d = int(Math.random() * 28) + 8;
_root.gold = _root.gold + d;
Symbol 252 MovieClip [enemyww] Frame 1
stop();
Instance of Symbol 251 MovieClip "vrag" in Symbol 252 MovieClip [enemyww] Frame 1
onClipEvent (load) {
giz = 36;
sko = 2.2;
skox = sko;
skoy = 0;
tip = 0;
}
onClipEvent (enterFrame) {
if (_root.smert == 0) {
if (giz <= 0) {
_parent.nextFrame();
}
if (_parent.telo.hitTest(_root.povN)) {
skox = 0;
skoy = sko;
_parent._rotation = 90;
} else if (_parent.telo.hitTest(_root.povN2)) {
skox = 0;
skoy = sko;
_parent._rotation = 90;
} else if (_parent.telo.hitTest(_root.povN3)) {
skox = 0;
skoy = sko;
_parent._rotation = 90;
} else if (_parent.telo.hitTest(_root.povV)) {
skox = 0;
skoy = -sko;
_parent._rotation = -90;
} else if (_parent.telo.hitTest(_root.povV2)) {
skox = 0;
skoy = -sko;
_parent._rotation = -90;
} else if (_parent.telo.hitTest(_root.povV3)) {
skox = 0;
skoy = -sko;
_parent._rotation = -90;
} else if (_parent.telo.hitTest(_root.povP)) {
skox = sko;
skoy = 0;
_parent._rotation = 0;
} else if (_parent.telo.hitTest(_root.povP2)) {
skox = sko;
skoy = 0;
_parent._rotation = 0;
} else if (_parent.telo.hitTest(_root.povP3)) {
skox = sko;
skoy = 0;
_parent._rotation = 0;
} else if (_parent.telo.hitTest(_root.povP4)) {
skox = sko;
skoy = 0;
_parent._rotation = 0;
} else if (_parent.telo.hitTest(_root.povL)) {
skox = -sko;
skoy = 0;
_parent._rotation = 180;
} else if (_parent.telo.hitTest(_root.zamok)) {
_root.giz = _root.giz - 1;
_root.vragi = _root.vragi - 1;
_root.attachMovie("napala", "napala" + _root.perNapala, _root.getNextHighestDepth());
_root["napala" + _root.perNapala]._x = 323.5;
_root["napala" + _root.perNapala]._y = 238;
_root.perNapala++;
_parent.removeMovieClip();
}
_parent._x = _parent._x + skox;
_parent._y = _parent._y + skoy;
}
}
Symbol 252 MovieClip [enemyww] Frame 2
d = int(Math.random() * 18) + 5;
_root.gold = _root.gold + d;
Symbol 253 MovieClip [enemyw] Frame 1
stop();
Instance of Symbol 251 MovieClip "vrag" in Symbol 253 MovieClip [enemyw] Frame 1
onClipEvent (load) {
giz = 28;
sko = 2.2;
skox = sko;
skoy = 0;
tip = 0;
}
onClipEvent (enterFrame) {
if (_root.smert == 0) {
if (giz <= 0) {
_parent.nextFrame();
}
if (_parent.telo.hitTest(_root.povN)) {
skox = 0;
skoy = sko;
_parent._rotation = 90;
} else if (_parent.telo.hitTest(_root.povN2)) {
skox = 0;
skoy = sko;
_parent._rotation = 90;
} else if (_parent.telo.hitTest(_root.povN3)) {
skox = 0;
skoy = sko;
_parent._rotation = 90;
} else if (_parent.telo.hitTest(_root.povV)) {
skox = 0;
skoy = -sko;
_parent._rotation = -90;
} else if (_parent.telo.hitTest(_root.povV2)) {
skox = 0;
skoy = -sko;
_parent._rotation = -90;
} else if (_parent.telo.hitTest(_root.povV3)) {
skox = 0;
skoy = -sko;
_parent._rotation = -90;
} else if (_parent.telo.hitTest(_root.povP)) {
skox = sko;
skoy = 0;
_parent._rotation = 0;
} else if (_parent.telo.hitTest(_root.povP2)) {
skox = sko;
skoy = 0;
_parent._rotation = 0;
} else if (_parent.telo.hitTest(_root.povP3)) {
skox = sko;
skoy = 0;
_parent._rotation = 0;
} else if (_parent.telo.hitTest(_root.povP4)) {
skox = sko;
skoy = 0;
_parent._rotation = 0;
} else if (_parent.telo.hitTest(_root.povL)) {
skox = -sko;
skoy = 0;
_parent._rotation = 180;
} else if (_parent.telo.hitTest(_root.zamok)) {
_root.giz = _root.giz - 1;
_root.vragi = _root.vragi - 1;
_root.attachMovie("napala", "napala" + _root.perNapala, _root.getNextHighestDepth());
_root["napala" + _root.perNapala]._x = 323.5;
_root["napala" + _root.perNapala]._y = 238;
_root.perNapala++;
_parent.removeMovieClip();
}
_parent._x = _parent._x + skox;
_parent._y = _parent._y + skoy;
}
}
Symbol 253 MovieClip [enemyw] Frame 2
d = int(Math.random() * 12) + 6;
_root.gold = _root.gold + d;
Symbol 254 MovieClip [enemywww] Frame 1
stop();
Instance of Symbol 251 MovieClip "vrag" in Symbol 254 MovieClip [enemywww] Frame 1
onClipEvent (load) {
giz = 35;
sko = 2.6;
skox = sko;
skoy = 0;
tip = 0;
}
onClipEvent (enterFrame) {
if (_root.smert == 0) {
if (giz <= 0) {
_parent.nextFrame();
}
if (_parent.telo.hitTest(_root.povN)) {
skox = 0;
skoy = sko;
_parent._rotation = 90;
} else if (_parent.telo.hitTest(_root.povN2)) {
skox = 0;
skoy = sko;
_parent._rotation = 90;
} else if (_parent.telo.hitTest(_root.povN3)) {
skox = 0;
skoy = sko;
_parent._rotation = 90;
} else if (_parent.telo.hitTest(_root.povV)) {
skox = 0;
skoy = -sko;
_parent._rotation = -90;
} else if (_parent.telo.hitTest(_root.povV2)) {
skox = 0;
skoy = -sko;
_parent._rotation = -90;
} else if (_parent.telo.hitTest(_root.povV3)) {
skox = 0;
skoy = -sko;
_parent._rotation = -90;
} else if (_parent.telo.hitTest(_root.povP)) {
skox = sko;
skoy = 0;
_parent._rotation = 0;
} else if (_parent.telo.hitTest(_root.povP2)) {
skox = sko;
skoy = 0;
_parent._rotation = 0;
} else if (_parent.telo.hitTest(_root.povP3)) {
skox = sko;
skoy = 0;
_parent._rotation = 0;
} else if (_parent.telo.hitTest(_root.povP4)) {
skox = sko;
skoy = 0;
_parent._rotation = 0;
} else if (_parent.telo.hitTest(_root.povL)) {
skox = -sko;
skoy = 0;
_parent._rotation = 180;
} else if (_parent.telo.hitTest(_root.zamok)) {
_root.giz = _root.giz - 1;
_root.vragi = _root.vragi - 1;
_root.attachMovie("napala", "napala" + _root.perNapala, _root.getNextHighestDepth());
_root["napala" + _root.perNapala]._x = 323.5;
_root["napala" + _root.perNapala]._y = 238;
_root.perNapala++;
_parent.removeMovieClip();
}
_parent._x = _parent._x + skox;
_parent._y = _parent._y + skoy;
}
}
Symbol 254 MovieClip [enemywww] Frame 2
d = int(Math.random() * 19) + 8;
_root.gold = _root.gold + d;
Symbol 257 MovieClip [enemyrr] Frame 1
stop();
Instance of Symbol 256 MovieClip "vrag" in Symbol 257 MovieClip [enemyrr] Frame 1
onClipEvent (load) {
giz = 200;
sko = 1.5;
skox = sko;
skoy = 0;
tip = 0;
}
onClipEvent (enterFrame) {
if (_root.smert == 0) {
if (giz <= 0) {
_parent.nextFrame();
}
if (_parent.telo.hitTest(_root.povN)) {
skox = 0;
skoy = sko;
_parent._rotation = 90;
} else if (_parent.telo.hitTest(_root.povN2)) {
skox = 0;
skoy = sko;
_parent._rotation = 90;
} else if (_parent.telo.hitTest(_root.povN3)) {
skox = 0;
skoy = sko;
_parent._rotation = 90;
} else if (_parent.telo.hitTest(_root.povV)) {
skox = 0;
skoy = -sko;
_parent._rotation = -90;
} else if (_parent.telo.hitTest(_root.povV2)) {
skox = 0;
skoy = -sko;
_parent._rotation = -90;
} else if (_parent.telo.hitTest(_root.povV3)) {
skox = 0;
skoy = -sko;
_parent._rotation = -90;
} else if (_parent.telo.hitTest(_root.povP)) {
skox = sko;
skoy = 0;
_parent._rotation = 0;
} else if (_parent.telo.hitTest(_root.povP2)) {
skox = sko;
skoy = 0;
_parent._rotation = 0;
} else if (_parent.telo.hitTest(_root.povP3)) {
skox = sko;
skoy = 0;
_parent._rotation = 0;
} else if (_parent.telo.hitTest(_root.povP4)) {
skox = sko;
skoy = 0;
_parent._rotation = 0;
} else if (_parent.telo.hitTest(_root.povL)) {
skox = -sko;
skoy = 0;
_parent._rotation = 180;
} else if (_parent.telo.hitTest(_root.zamok)) {
_root.giz = _root.giz - 5;
_root.vragi = _root.vragi - 1;
_root.attachMovie("napala", "napala" + _root.perNapala, _root.getNextHighestDepth());
_root["napala" + _root.perNapala]._x = 323.5;
_root["napala" + _root.perNapala]._y = 238;
_root.perNapala++;
_parent.removeMovieClip();
}
_parent._x = _parent._x + skox;
_parent._y = _parent._y + skoy;
}
}
Symbol 257 MovieClip [enemyrr] Frame 2
d = int(Math.random() * 30) + 8;
_root.gold = _root.gold + d;
Symbol 258 MovieClip [enemyr] Frame 1
stop();
Instance of Symbol 256 MovieClip "vrag" in Symbol 258 MovieClip [enemyr] Frame 1
onClipEvent (load) {
giz = 160;
sko = 1.8;
skox = sko;
skoy = 0;
tip = 0;
}
onClipEvent (enterFrame) {
if (_root.smert == 0) {
if (giz <= 0) {
_parent.nextFrame();
}
if (_parent.telo.hitTest(_root.povN)) {
skox = 0;
skoy = sko;
_parent._rotation = 90;
} else if (_parent.telo.hitTest(_root.povN2)) {
skox = 0;
skoy = sko;
_parent._rotation = 90;
} else if (_parent.telo.hitTest(_root.povN3)) {
skox = 0;
skoy = sko;
_parent._rotation = 90;
} else if (_parent.telo.hitTest(_root.povV)) {
skox = 0;
skoy = -sko;
_parent._rotation = -90;
} else if (_parent.telo.hitTest(_root.povV2)) {
skox = 0;
skoy = -sko;
_parent._rotation = -90;
} else if (_parent.telo.hitTest(_root.povV3)) {
skox = 0;
skoy = -sko;
_parent._rotation = -90;
} else if (_parent.telo.hitTest(_root.povP)) {
skox = sko;
skoy = 0;
_parent._rotation = 0;
} else if (_parent.telo.hitTest(_root.povP2)) {
skox = sko;
skoy = 0;
_parent._rotation = 0;
} else if (_parent.telo.hitTest(_root.povP3)) {
skox = sko;
skoy = 0;
_parent._rotation = 0;
} else if (_parent.telo.hitTest(_root.povP4)) {
skox = sko;
skoy = 0;
_parent._rotation = 0;
} else if (_parent.telo.hitTest(_root.povL)) {
skox = -sko;
skoy = 0;
_parent._rotation = 180;
} else if (_parent.telo.hitTest(_root.zamok)) {
_root.giz = _root.giz - 5;
_root.vragi = _root.vragi - 1;
_root.attachMovie("napala", "napala" + _root.perNapala, _root.getNextHighestDepth());
_root["napala" + _root.perNapala]._x = 323.5;
_root["napala" + _root.perNapala]._y = 238;
_root.perNapala++;
_parent.removeMovieClip();
}
_parent._x = _parent._x + skox;
_parent._y = _parent._y + skoy;
}
}
Symbol 258 MovieClip [enemyr] Frame 2
d = int(Math.random() * 30) + 8;
_root.gold = _root.gold + d;
Symbol 261 MovieClip [enemyt] Frame 1
stop();
Instance of Symbol 260 MovieClip "vrag" in Symbol 261 MovieClip [enemyt] Frame 1
onClipEvent (load) {
giz = 200;
sko = 2;
skox = sko;
skoy = 0;
tip = 0;
}
onClipEvent (enterFrame) {
if (_root.smert == 0) {
if (giz <= 0) {
_parent.nextFrame();
}
if (_parent.telo.hitTest(_root.povN)) {
skox = 0;
skoy = sko;
_parent._rotation = 90;
} else if (_parent.telo.hitTest(_root.povN2)) {
skox = 0;
skoy = sko;
_parent._rotation = 90;
} else if (_parent.telo.hitTest(_root.povN3)) {
skox = 0;
skoy = sko;
_parent._rotation = 90;
} else if (_parent.telo.hitTest(_root.povV)) {
skox = 0;
skoy = -sko;
_parent._rotation = -90;
} else if (_parent.telo.hitTest(_root.povV2)) {
skox = 0;
skoy = -sko;
_parent._rotation = -90;
} else if (_parent.telo.hitTest(_root.povV3)) {
skox = 0;
skoy = -sko;
_parent._rotation = -90;
} else if (_parent.telo.hitTest(_root.povP)) {
skox = sko;
skoy = 0;
_parent._rotation = 0;
} else if (_parent.telo.hitTest(_root.povP2)) {
skox = sko;
skoy = 0;
_parent._rotation = 0;
} else if (_parent.telo.hitTest(_root.povP3)) {
skox = sko;
skoy = 0;
_parent._rotation = 0;
} else if (_parent.telo.hitTest(_root.povP4)) {
skox = sko;
skoy = 0;
_parent._rotation = 0;
} else if (_parent.telo.hitTest(_root.povL)) {
skox = -sko;
skoy = 0;
_parent._rotation = 180;
} else if (_parent.telo.hitTest(_root.zamok)) {
_root.giz = _root.giz - 8;
_root.vragi = _root.vragi - 1;
_root.attachMovie("napala", "napala" + _root.perNapala, _root.getNextHighestDepth());
_root["napala" + _root.perNapala]._x = 323.5;
_root["napala" + _root.perNapala]._y = 238;
_root.perNapala++;
_parent.removeMovieClip();
}
_parent._x = _parent._x + skox;
_parent._y = _parent._y + skoy;
}
}
Symbol 261 MovieClip [enemyt] Frame 2
d = int(Math.random() * 40) + 18;
_root.gold = _root.gold + d;
Symbol 262 MovieClip [enemytt] Frame 1
stop();
Instance of Symbol 260 MovieClip "vrag" in Symbol 262 MovieClip [enemytt] Frame 1
onClipEvent (load) {
giz = 260;
sko = 2;
skox = sko;
skoy = 0;
tip = 0;
}
onClipEvent (enterFrame) {
if (_root.smert == 0) {
if (giz <= 0) {
_parent.nextFrame();
}
if (_parent.telo.hitTest(_root.povN)) {
skox = 0;
skoy = sko;
_parent._rotation = 90;
} else if (_parent.telo.hitTest(_root.povN2)) {
skox = 0;
skoy = sko;
_parent._rotation = 90;
} else if (_parent.telo.hitTest(_root.povN3)) {
skox = 0;
skoy = sko;
_parent._rotation = 90;
} else if (_parent.telo.hitTest(_root.povV)) {
skox = 0;
skoy = -sko;
_parent._rotation = -90;
} else if (_parent.telo.hitTest(_root.povV2)) {
skox = 0;
skoy = -sko;
_parent._rotation = -90;
} else if (_parent.telo.hitTest(_root.povV3)) {
skox = 0;
skoy = -sko;
_parent._rotation = -90;
} else if (_parent.telo.hitTest(_root.povP)) {
skox = sko;
skoy = 0;
_parent._rotation = 0;
} else if (_parent.telo.hitTest(_root.povP2)) {
skox = sko;
skoy = 0;
_parent._rotation = 0;
} else if (_parent.telo.hitTest(_root.povP3)) {
skox = sko;
skoy = 0;
_parent._rotation = 0;
} else if (_parent.telo.hitTest(_root.povP4)) {
skox = sko;
skoy = 0;
_parent._rotation = 0;
} else if (_parent.telo.hitTest(_root.povL)) {
skox = -sko;
skoy = 0;
_parent._rotation = 180;
} else if (_parent.telo.hitTest(_root.zamok)) {
_root.giz = _root.giz - 8;
_root.vragi = _root.vragi - 1;
_root.attachMovie("napala", "napala" + _root.perNapala, _root.getNextHighestDepth());
_root["napala" + _root.perNapala]._x = 323.5;
_root["napala" + _root.perNapala]._y = 238;
_root.perNapala++;
_parent.removeMovieClip();
}
_parent._x = _parent._x + skox;
_parent._y = _parent._y + skoy;
}
}
Symbol 262 MovieClip [enemytt] Frame 2
d = int(Math.random() * 40) + 18;
_root.gold = _root.gold + d;
Symbol 269 MovieClip [enemyy] Frame 1
stop();
Instance of Symbol 268 MovieClip "vrag" in Symbol 269 MovieClip [enemyy] Frame 1
onClipEvent (load) {
giz = 14;
sko = 1.6;
skox = sko;
skoy = 0;
tip = 0;
}
onClipEvent (enterFrame) {
if (_root.smert == 0) {
if (giz <= 0) {
_parent.nextFrame();
}
if (_parent.telo.hitTest(_root.povN)) {
skox = 0;
skoy = sko;
_parent._rotation = 90;
} else if (_parent.telo.hitTest(_root.povN2)) {
skox = 0;
skoy = sko;
_parent._rotation = 90;
} else if (_parent.telo.hitTest(_root.povN3)) {
skox = 0;
skoy = sko;
_parent._rotation = 90;
} else if (_parent.telo.hitTest(_root.povV)) {
skox = 0;
skoy = -sko;
_parent._rotation = -90;
} else if (_parent.telo.hitTest(_root.povV2)) {
skox = 0;
skoy = -sko;
_parent._rotation = -90;
} else if (_parent.telo.hitTest(_root.povV3)) {
skox = 0;
skoy = -sko;
_parent._rotation = -90;
} else if (_parent.telo.hitTest(_root.povP)) {
skox = sko;
skoy = 0;
_parent._rotation = 0;
} else if (_parent.telo.hitTest(_root.povP2)) {
skox = sko;
skoy = 0;
_parent._rotation = 0;
} else if (_parent.telo.hitTest(_root.povP3)) {
skox = sko;
skoy = 0;
_parent._rotation = 0;
} else if (_parent.telo.hitTest(_root.povP4)) {
skox = sko;
skoy = 0;
_parent._rotation = 0;
} else if (_parent.telo.hitTest(_root.povL)) {
skox = -sko;
skoy = 0;
_parent._rotation = 180;
} else if (_parent.telo.hitTest(_root.zamok)) {
_root.giz = _root.giz - 1;
_root.vragi = _root.vragi - 1;
_root.attachMovie("napala", "napala" + _root.perNapala, _root.getNextHighestDepth());
_root["napala" + _root.perNapala]._x = 323.5;
_root["napala" + _root.perNapala]._y = 238;
_root.perNapala++;
_parent.removeMovieClip();
}
_parent._x = _parent._x + skox;
_parent._y = _parent._y + skoy;
}
}
Symbol 269 MovieClip [enemyy] Frame 2
d = int(Math.random() * 8) + 3;
_root.gold = _root.gold + d;
Symbol 270 MovieClip [enemyyy] Frame 1
stop();
Instance of Symbol 268 MovieClip "vrag" in Symbol 270 MovieClip [enemyyy] Frame 1
onClipEvent (load) {
giz = 18;
sko = 2;
skox = sko;
skoy = 0;
tip = 0;
}
onClipEvent (enterFrame) {
if (_root.smert == 0) {
if (giz <= 0) {
_parent.nextFrame();
}
if (_parent.telo.hitTest(_root.povN)) {
skox = 0;
skoy = sko;
_parent._rotation = 90;
} else if (_parent.telo.hitTest(_root.povN2)) {
skox = 0;
skoy = sko;
_parent._rotation = 90;
} else if (_parent.telo.hitTest(_root.povN3)) {
skox = 0;
skoy = sko;
_parent._rotation = 90;
} else if (_parent.telo.hitTest(_root.povV)) {
skox = 0;
skoy = -sko;
_parent._rotation = -90;
} else if (_parent.telo.hitTest(_root.povV2)) {
skox = 0;
skoy = -sko;
_parent._rotation = -90;
} else if (_parent.telo.hitTest(_root.povV3)) {
skox = 0;
skoy = -sko;
_parent._rotation = -90;
} else if (_parent.telo.hitTest(_root.povP)) {
skox = sko;
skoy = 0;
_parent._rotation = 0;
} else if (_parent.telo.hitTest(_root.povP2)) {
skox = sko;
skoy = 0;
_parent._rotation = 0;
} else if (_parent.telo.hitTest(_root.povP3)) {
skox = sko;
skoy = 0;
_parent._rotation = 0;
} else if (_parent.telo.hitTest(_root.povP4)) {
skox = sko;
skoy = 0;
_parent._rotation = 0;
} else if (_parent.telo.hitTest(_root.povL)) {
skox = -sko;
skoy = 0;
_parent._rotation = 180;
} else if (_parent.telo.hitTest(_root.zamok)) {
_root.giz = _root.giz - 1;
_root.vragi = _root.vragi - 1;
_root.attachMovie("napala", "napala" + _root.perNapala, _root.getNextHighestDepth());
_root["napala" + _root.perNapala]._x = 323.5;
_root["napala" + _root.perNapala]._y = 238;
_root.perNapala++;
_parent.removeMovieClip();
}
_parent._x = _parent._x + skox;
_parent._y = _parent._y + skoy;
}
}
Symbol 270 MovieClip [enemyyy] Frame 2
d = int(Math.random() * 9) + 3;
_root.gold = _root.gold + d;
Symbol 271 MovieClip [enemy] Frame 1
stop();
Instance of Symbol 268 MovieClip "vrag" in Symbol 271 MovieClip [enemy] Frame 1
onClipEvent (load) {
giz = 8;
sko = 1.6;
skox = sko;
skoy = 0;
tip = 0;
}
onClipEvent (enterFrame) {
if (_root.smert == 0) {
if (giz <= 0) {
_parent.nextFrame();
}
if (_parent.telo.hitTest(_root.povN)) {
skox = 0;
skoy = sko;
_parent._rotation = 90;
} else if (_parent.telo.hitTest(_root.povN2)) {
skox = 0;
skoy = sko;
_parent._rotation = 90;
} else if (_parent.telo.hitTest(_root.povN3)) {
skox = 0;
skoy = sko;
_parent._rotation = 90;
} else if (_parent.telo.hitTest(_root.povV)) {
skox = 0;
skoy = -sko;
_parent._rotation = -90;
} else if (_parent.telo.hitTest(_root.povV2)) {
skox = 0;
skoy = -sko;
_parent._rotation = -90;
} else if (_parent.telo.hitTest(_root.povV3)) {
skox = 0;
skoy = -sko;
_parent._rotation = -90;
} else if (_parent.telo.hitTest(_root.povP)) {
skox = sko;
skoy = 0;
_parent._rotation = 0;
} else if (_parent.telo.hitTest(_root.povP2)) {
skox = sko;
skoy = 0;
_parent._rotation = 0;
} else if (_parent.telo.hitTest(_root.povP3)) {
skox = sko;
skoy = 0;
_parent._rotation = 0;
} else if (_parent.telo.hitTest(_root.povP4)) {
skox = sko;
skoy = 0;
_parent._rotation = 0;
} else if (_parent.telo.hitTest(_root.povL)) {
skox = -sko;
skoy = 0;
_parent._rotation = 180;
} else if (_parent.telo.hitTest(_root.zamok)) {
_root.giz = _root.giz - 1;
_root.vragi = _root.vragi - 1;
_root.attachMovie("napala", "napala" + _root.perNapala, _root.getNextHighestDepth());
_root["napala" + _root.perNapala]._x = 323.5;
_root["napala" + _root.perNapala]._y = 238;
_root.perNapala++;
_parent.removeMovieClip();
}
_parent._x = _parent._x + skox;
_parent._y = _parent._y + skoy;
}
}
Symbol 271 MovieClip [enemy] Frame 2
d = int(Math.random() * 5) + 3;
_root.gold = _root.gold + d;
Instance of Symbol 39 MovieClip in Symbol 273 MovieClip [strela] Frame 1
onClipEvent (load) {
dx = _root["enemy" + _parent.ima]._x;
dy = _root["enemy" + _parent.ima]._y;
sko = 5;
thrust = 1;
maxSpeed = 7;
ySpeed = 0;
xSpeed = 0;
dxx = dx - _parent._x;
dyy = dy - _parent._y;
ugol = Math.atan2(dxx, dyy);
vracenie = (ugol * 360) / -6.28318530717959;
_parent._rotation = vracenie;
}
onClipEvent (enterFrame) {
if (_parent.hitTest(dx, dy)) {
maxSpeed = 0;
_parent.removeMovieClip();
}
xSpeed = xSpeed + Math.sin(_parent._rotation * (Math.PI/180));
ySpeed = ySpeed + Math.cos(_parent._rotation * (Math.PI/180));
speed = Math.sqrt((xSpeed * xSpeed) + (ySpeed * ySpeed));
if (speed > maxSpeed) {
xSpeed = xSpeed * (maxSpeed / speed);
ySpeed = ySpeed * (maxSpeed / speed);
}
_parent._y = _parent._y + ySpeed;
_parent._x = _parent._x - xSpeed;
}
Instance of Symbol 39 MovieClip in Symbol 277 MovieClip [mon] Frame 1
onClipEvent (load) {
d = int(Math.random() * 5) + 3;
_root.gold = _root.gold + d;
_parent.removeMovieClip();
}
onClipEvent (mouseDown) {
if (this.hitTest(_root.kurs)) {
_root.gold = _root.gold + d;
_parent.removeMovieClip();
}
}
Symbol 279 MovieClip [gilza] Frame 15
this.removeMovieClip();
Symbol 282 MovieClip [napala] Frame 23
this.removeMovieClip();
Symbol 284 MovieClip [newwave] Frame 23
this.removeMovieClip();
Symbol 290 Button
on (release) {
i = 1;
while (i < (_root.basPer + 1)) {
_root["basna" + i].removeMovieClip();
i++;
}
j = 1;
while (j < 40) {
_root["enemy" + j].removeMovieClip();
j++;
}
_root.gotoAndStop("again");
this.removeMovieClip();
}
Symbol 295 Button
on (release) {
i = 1;
while (i < (_root.basPer + 1)) {
_root["basna" + i].removeMovieClip();
i++;
}
_root.nextFrame();
this.removeMovieClip();
}
Symbol 302 Button
on (release) {
this.removeMovieClip();
}
Symbol 314 MovieClip Frame 11
stop();
Symbol 317 MovieClip Frame 12
stop();
Symbol 318 MovieClip [sm] Frame 1
stop();
Symbol 327 Button
on (release) {
getURL ("http://towerdefenseheaven.com/?lf=mars-2180", "_blank");
}
Symbol 333 Button
on (release) {
_root.nextFrame();
}
Symbol 334 MovieClip Frame 1
stop();
Symbol 351 MovieClip Frame 184
_root.gotoAndStop("mem");
Symbol 357 Button
on (release) {
_root.news.stop();
stopAllSounds();
_root.gotoAndStop("tur1");
}
Symbol 361 Button
on (release) {
sav = SharedObject.getLocal("SharedObject");
_root.tur = sav.data.tur;
sav.flush();
if (_root.tur == 2) {
_root.news.stop();
stopAllSounds();
_root.gotoAndStop("tur2");
}
if (_root.tur == 3) {
_root.news.stop();
stopAllSounds();
_root.gotoAndStop("tur3");
}
}
Symbol 365 Button
on (release) {
_root.gotoAndStop("about");
}
Symbol 368 Button
on (release) {
getURL ("http://towerdefenseheaven.com/?lf=mars-2180", "_blank");
}
Symbol 370 MovieClip Frame 37
stop();
Symbol 371 Button
on (release) {
stopAllSounds();
_root.gotoAndStop("tur1");
}
Symbol 372 Button
on (release) {
sav = SharedObject.getLocal("SharedObject");
_root.tur = sav.data.tur;
sav.flush();
if (_root.tur == 2) {
stopAllSounds();
_root.gotoAndStop("tur2");
}
if (_root.tur == 3) {
stopAllSounds();
_root.gotoAndStop("tur3");
}
}
Symbol 382 MovieClip Frame 1
stop();
Symbol 384 MovieClip Frame 1
stop();
Instance of Symbol 39 MovieClip in Symbol 384 MovieClip Frame 1
onClipEvent (mouseDown) {
if ((_root.levelZamok == 1) & this.hitTest(_root.kurs)) {
_root.tablic.gotoAndStop("zamok");
}
if ((_root.levelZamok == 2) & this.hitTest(_root.kurs)) {
_root.tablic.gotoAndStop("zamok2");
}
if ((_root.levelZamok == 3) & this.hitTest(_root.kurs)) {
_root.tablic.gotoAndStop("zamok3");
}
}
Symbol 393 Button
on (release) {
if (((_root.smert == 0) & (_root.game == 0)) & (_root.vragi <= 0)) {
d = new Sound();
d.attachSound("newWale");
d.start(0, 0);
this.w1 = _root.volna;
_root.game = 1;
this.wave.gotoAndStop(1);
}
}
Symbol 399 MovieClip Frame 1
stop();
Instance of Symbol 39 MovieClip in Symbol 399 MovieClip Frame 2
onClipEvent (load) {
_parent.vrema = 10;
d = 10;
}
onClipEvent (enterFrame) {
if (_root.smert == 0) {
d = d - 0.025;
_parent.vrema = int(d);
if (d <= 0) {
d = new Sound();
d.attachSound("newWale");
d.start(0, 0);
_root.game = 1;
_parent._parent.w1 = _root.volna;
_parent.prevFrame();
}
}
}
Symbol 405 Button
on (release) {
if (_root._quality == "LOW") {
_root._quality = "HIGH";
} else if (_root._quality == "HIGH") {
_root._quality = "LOW";
}
}
Symbol 408 Button
on (release) {
if (_root.zzz.news.getVolume() == 100) {
_root.zzz.news.setVolume(0);
} else if (_root.zzz.news.getVolume() == 0) {
_root.zzz.news.setVolume(100);
}
}
Symbol 411 Button
on (release, keyPress "<Space>") {
if (_root.smert == 0) {
_root.smert = 1;
_root.sm.removeMovieClip();
_root.attachMovie("sm", "sm", _root.getNextHighestDepth());
_root.sm._x = 250;
_root.sm._y = 230;
_root.sm.gotoAndStop(2);
i = 1;
while (i <= 29) {
_root["enemy" + i].vrag.stop();
_root["enemy" + i].vrag.vrag2.stop();
i++;
}
} else if (_root.smert == 1) {
_root.smert = 0;
_root.sm.removeMovieClip();
_root.attachMovie("sm", "sm", _root.getNextHighestDepth());
_root.sm._x = 250;
_root.sm._y = 230;
_root.sm.gotoAndStop(3);
i = 1;
while (i <= 29) {
_root["enemy" + i].vrag.play();
_root["enemy" + i].vrag.vrag2.play();
i++;
}
}
}
Symbol 412 MovieClip Frame 1
stop();
Symbol 425 Button
on (release) {
i = 1;
while (i < (_root.basPer + 1)) {
_root["basna" + i].removeMovieClip();
i++;
}
j = 1;
while (j < 40) {
_root["enemy" + j].removeMovieClip();
j++;
}
_root.giz = 100;
_root.zzz.news.stop();
stopAllSounds();
_root.gotoAndStop("mem");
}
Instance of Symbol 39 MovieClip in Symbol 440 MovieClip Frame 1
onClipEvent (mouseDown) {
if (this.hitTest(_root.kurs)) {
_root.tablic.gotoAndStop(2);
}
}
Instance of Symbol 39 MovieClip in Symbol 440 MovieClip Frame 2
onClipEvent (mouseDown) {
if (this.hitTest(_root.kurs)) {
_root.tablic.gotoAndStop(3);
}
}
Instance of Symbol 39 MovieClip in Symbol 440 MovieClip Frame 3
onClipEvent (mouseDown) {
if (this.hitTest(_root.kurs)) {
_root.tablic.gotoAndStop(4);
}
}
Instance of Symbol 39 MovieClip in Symbol 440 MovieClip Frame 4
onClipEvent (mouseDown) {
if (this.hitTest(_root.kurs)) {
_root.tablic.gotoAndStop(5);
}
}
Instance of Symbol 39 MovieClip in Symbol 440 MovieClip Frame 5
onClipEvent (mouseDown) {
if (this.hitTest(_root.kurs)) {
_root.tablic.gotoAndStop(6);
}
}
Instance of Symbol 39 MovieClip in Symbol 440 MovieClip Frame 6
onClipEvent (mouseDown) {
if (this.hitTest(_root.kurs)) {
_root.tablic.gotoAndStop(7);
}
}
Instance of Symbol 39 MovieClip in Symbol 440 MovieClip Frame 7
onClipEvent (mouseDown) {
if (this.hitTest(_root.kurs)) {
_root.tablic.gotoAndStop(8);
}
}
Instance of Symbol 39 MovieClip in Symbol 440 MovieClip Frame 8
onClipEvent (mouseDown) {
if (this.hitTest(_root.kurs)) {
_root.tablic.gotoAndStop(9);
}
}
Instance of Symbol 39 MovieClip in Symbol 440 MovieClip Frame 9
onClipEvent (mouseDown) {
if (this.hitTest(_root.kurs)) {
_root.tablic.gotoAndStop(10);
}
}
Instance of Symbol 39 MovieClip in Symbol 440 MovieClip Frame 10
onClipEvent (mouseDown) {
if (this.hitTest(_root.kurs)) {
_root.tablic.gotoAndStop(11);
}
}
Symbol 499 Button
on (release) {
_root.gold = _root.gold + this.stoim;
i = 1;
while (i < (_root.basPer + 1)) {
_root["basna" + i].obvodka.gotoAndStop(1);
i++;
}
_root["basna" + this.ima].removeMovieClip();
_root.kolicBasd--;
_root.panelNiz.b1--;
gotoAndStop (1);
}
Symbol 504 Button
on (release) {
_root["basna" + this.ima].dan.ataka = _root["basna" + this.ima].dan.ataka + 1;
this.ataka = this.ataka + 1;
_root["basna" + this.ima].dan.stoim = _root["basna" + this.ima].dan.stoim + 10;
this.stoim = this.stoim + 10;
_root["basna" + this.ima].dan.xp = 0;
_root["basna" + this.ima].basna.lev.gotoAndStop(1);
this.knDal._visible = 0;
this.knSko._visible = 0;
this.knAta._visible = 0;
}
Symbol 506 Button
on (release) {
_root["basna" + this.ima].dan.radius = _root["basna" + this.ima].dan.radius + 20;
_root["basna" + this.ima].dan.stoim = _root["basna" + this.ima].dan.stoim + 10;
this.stoim = this.stoim + 10;
_root["basna" + this.ima].rad._xscale = _root["basna" + this.ima].rad._xscale + 20;
_root["basna" + this.ima].rad._yscale = _root["basna" + this.ima].rad._yscale + 20;
this.radius = this.radius + 20;
_root["basna" + this.ima].dan.xp = 0;
_root["basna" + this.ima].basna.lev.gotoAndStop(1);
this.knSko._visible = 0;
this.knAta._visible = 0;
this.knDal._visible = 0;
}
Symbol 507 Button
on (release) {
if (this.sko > 0.3) {
_root["basna" + this.ima].dan.sko = _root["basna" + this.ima].dan.sko - 0.1;
this.sko = this.sko - 0.1;
_root["basna" + this.ima].dan.skor = _root["basna" + this.ima].dan.skor - 4;
_root["basna" + this.ima].dan.xp = 0;
_root["basna" + this.ima].dan.stoim = _root["basna" + this.ima].dan.stoim + 10;
this.stoim = this.stoim + 10;
_root["basna" + this.ima].basna.lev.gotoAndStop(1);
this.knDal._visible = 0;
this.knAta._visible = 0;
this.knSko._visible = 0;
this.knSko._visible = 0;
} else {
this.knSko._visible = 0;
}
}
Symbol 510 Button
on (rollOver) {
stop();
}
on (rollOut) {
play();
}
on (release) {
if (((_root.gold2 >= 1) & (_root["basna" + _parent.ima]._currentframe != _root["basna" + _parent.ima]._totalframes)) & (_root["basna" + _parent.ima]._currentframe > 1)) {
_root["basna" + _parent.ima].dan.ataka = _root["basna" + _parent.ima].dan.ataka + 3;
_parent.ataka = _parent.ataka + 3;
_root["basna" + _parent.ima].kadr = _root["basna" + _parent.ima].kadr + 1;
_root["basna" + _parent.ima].gotoAndStop(1);
_root.gold2--;
if ((_root.gold2 >= 1) & (_root["basna" + _parent.ima].kadr < _root["basna" + _parent.ima]._totalframes)) {
} else {
this._visible = 0;
}
}
}
Symbol 517 Button
on (release) {
_root["basna" + this.ima].dan.ataka = _root["basna" + this.ima].dan.ataka + 2;
this.ataka = this.ataka + 2;
_root["basna" + this.ima].stoim = _root["basna" + this.ima].stoim * 1.2;
this.stoim = this.stoim * 1.2;
_root["basna" + this.ima].dan.xp = 0;
_root["basna" + this.ima].basna.lev.gotoAndStop(1);
this.knDal._visible = 0;
this.knSko._visible = 0;
this.knAta._visible = 0;
}
Symbol 518 Button
on (release) {
_root["basna" + this.ima].dan.radius = _root["basna" + this.ima].dan.radius + 20;
_root["basna" + this.ima].rad._xscale = _root["basna" + this.ima].rad._xscale + 20;
_root["basna" + this.ima].rad._yscale = _root["basna" + this.ima].rad._yscale + 20;
this.radius = this.radius + 20;
_root["basna" + this.ima].dan.xp = 0;
_root["basna" + this.ima].basna.lev.gotoAndStop(1);
this.knSko._visible = 0;
this.knAta._visible = 0;
this.knDal._visible = 0;
}
Symbol 519 Button
on (release) {
if (this.sko > 0.2) {
_root["basna" + this.ima].dan.sko = _root["basna" + this.ima].dan.sko - 0.1;
this.sko = this.sko - 0.1;
_root["basna" + this.ima].dan.skor = _root["basna" + this.ima].dan.skor - 6;
_root["basna" + this.ima].dan.xp = 0;
_root["basna" + this.ima].basna.lev.gotoAndStop(1);
this.knDal._visible = 0;
this.knAta._visible = 0;
this.knSko._visible = 0;
this.knSko._visible = 0;
} else {
this.knSko._visible = 0;
}
}
Symbol 526 Button
on (release) {
_root["basna" + this.ima].dan.ataka = _root["basna" + this.ima].dan.ataka + 3;
this.ataka = this.ataka + 3;
_root["basna" + this.ima].stoim = _root["basna" + this.ima].stoim * 1.2;
this.stoim = this.stoim * 1.2;
_root["basna" + this.ima].dan.xp = 0;
_root["basna" + this.ima].basna.lev.gotoAndStop(1);
this.knDal._visible = 0;
this.knSko._visible = 0;
this.knAta._visible = 0;
}
Symbol 528 Button
on (rollOver) {
stop();
}
on (rollOut) {
play();
}
on (release) {
if (((_root.gold2 >= 1) & (_root["basna" + _parent.ima]._currentframe != _root["basna" + _parent.ima]._totalframes)) & (_root["basna" + _parent.ima]._currentframe > 1)) {
_root["basna" + _parent.ima].dan.ataka = _root["basna" + _parent.ima].dan.ataka + 4;
_parent.ataka = _parent.ataka + 4;
_root["basna" + _parent.ima].kadr = _root["basna" + _parent.ima].kadr + 1;
_root["basna" + _parent.ima].gotoAndStop(1);
_root.gold2--;
if ((_root.gold2 >= 1) & (_root["basna" + _parent.ima].kadr < _root["basna" + _parent.ima]._totalframes)) {
} else {
this._visible = 0;
}
}
}
Symbol 535 Button
on (release) {
_root["basna" + this.ima].dan.ataka = _root["basna" + this.ima].dan.ataka + 1;
this.ataka = this.ataka + 1;
_root["basna" + this.ima].stoim = _root["basna" + this.ima].stoim * 1.2;
this.stoim = this.stoim * 1.2;
_root["basna" + this.ima].dan.xp = 0;
_root["basna" + this.ima].basna.lev.gotoAndStop(1);
this.knDal._visible = 0;
this.knSko._visible = 0;
this.knAta._visible = 0;
}
Symbol 536 Button
on (release) {
if (this.sko > 0.3) {
_root["basna" + this.ima].dan.sko = _root["basna" + this.ima].dan.sko - 0.1;
this.sko = this.sko - 0.1;
_root["basna" + this.ima].dan.skor = _root["basna" + this.ima].dan.skor - 6;
_root["basna" + this.ima].dan.xp = 0;
_root["basna" + this.ima].basna.lev.gotoAndStop(1);
this.knDal._visible = 0;
this.knAta._visible = 0;
this.knSko._visible = 0;
this.knSko._visible = 0;
} else {
this.knSko._visible = 0;
}
}
Symbol 543 Button
on (release) {
_root["basna" + this.ima].dan.ataka = _root["basna" + this.ima].dan.ataka + 5;
this.ataka = this.ataka + 5;
_root["basna" + this.ima].stoim = _root["basna" + this.ima].stoim * 1.2;
this.stoim = this.stoim * 1.2;
_root["basna" + this.ima].dan.xp = 0;
_root["basna" + this.ima].basna.lev.gotoAndStop(1);
this.knDal._visible = 0;
this.knSko._visible = 0;
this.knAta._visible = 0;
}
Symbol 551 Button
on (rollOver) {
stop();
}
on (rollOut) {
play();
}
on (release) {
if (((_root.gold2 >= 1) & (_root["basna" + _parent.ima]._currentframe != _root["basna" + _parent.ima]._totalframes)) & (_root["basna" + _parent.ima]._currentframe > 1)) {
_root["basna" + _parent.ima].dan.ataka = _root["basna" + _parent.ima].dan.ataka + 5;
_parent.ataka = _parent.ataka + 5;
_root["basna" + _parent.ima].kadr = _root["basna" + _parent.ima].kadr + 1;
_root["basna" + _parent.ima].gotoAndStop(1);
_root.gold2--;
if ((_root.gold2 >= 1) & (_root["basna" + _parent.ima].kadr < _root["basna" + _parent.ima]._totalframes)) {
} else {
this._visible = 0;
}
}
}
Symbol 558 Button
on (release) {
_root["basna" + this.ima].dan.ataka = _root["basna" + this.ima].dan.ataka + 4;
this.ataka = this.ataka + 4;
_root["basna" + this.ima].stoim = _root["basna" + this.ima].stoim * 1.2;
this.stoim = this.stoim * 1.2;
_root["basna" + this.ima].dan.xp = 0;
_root["basna" + this.ima].basna.lev.gotoAndStop(1);
this.knDal._visible = 0;
this.knSko._visible = 0;
this.knAta._visible = 0;
}
Symbol 566 Button
on (release) {
_root["basna" + this.ima].dan.ataka = _root["basna" + this.ima].dan.ataka + 7;
this.ataka = this.ataka + 7;
_root["basna" + this.ima].stoim = _root["basna" + this.ima].stoim * 1.2;
this.stoim = this.stoim * 1.2;
_root["basna" + this.ima].dan.xp = 0;
_root["basna" + this.ima].basna.lev.gotoAndStop(1);
this.knDal._visible = 0;
this.knSko._visible = 0;
this.knAta._visible = 0;
}
Symbol 573 Button
on (release) {
_root["basna" + this.ima].dan.ataka = _root["basna" + this.ima].dan.ataka + 10;
this.ataka = this.ataka + 10;
_root["basna" + this.ima].stoim = _root["basna" + this.ima].stoim * 1.2;
this.stoim = this.stoim * 1.2;
_root["basna" + this.ima].dan.xp = 0;
_root["basna" + this.ima].basna.lev.gotoAndStop(1);
this.knDal._visible = 0;
this.knSko._visible = 0;
this.knAta._visible = 0;
}
Symbol 575 Button
on (rollOver) {
stop();
}
on (rollOut) {
play();
}
on (release) {
if (((_root.gold2 >= 1) & (_root["basna" + _parent.ima]._currentframe != _root["basna" + _parent.ima]._totalframes)) & (_root["basna" + _parent.ima]._currentframe > 1)) {
_root["basna" + _parent.ima].dan.ataka = _root["basna" + _parent.ima].dan.ataka + 7;
_parent.ataka = _parent.ataka + 7;
_root["basna" + _parent.ima].kadr = _root["basna" + _parent.ima].kadr + 1;
_root["basna" + _parent.ima].gotoAndStop(1);
_root.gold2--;
if ((_root.gold2 >= 1) & (_root["basna" + _parent.ima].kadr < _root["basna" + _parent.ima]._totalframes)) {
} else {
this._visible = 0;
}
}
}
Symbol 581 Button
on (release) {
_root.gold = _root.gold + this.stoim;
i = 1;
while (i < (_root.basPer + 1)) {
_root["basna" + i].obvodka.gotoAndStop(1);
i++;
}
_root["basna" + this.ima].removeMovieClip();
gotoAndStop (1);
}
Symbol 584 Button
on (release) {
if ((_root.levelZamok == 1) & (_root.gold >= 200)) {
_root.zamokSd.zz.gotoAndStop(2);
_root.levelZamok++;
_root.kolicBas = _root.kolicBas + 4;
_root.kolicBasv = _root.kolicBasv + 4;
_root.panelNiz.b2 = "/ ";
_root.panelNiz.b2 = _root.panelNiz.b2 + _root.kolicBasv;
_root.gold = _root.gold - 200;
nextFrame();
}
}
Symbol 590 Button
on (release) {
if (_root.gold >= 100) {
_root.gold2 = _root.gold2 + 1;
_root.gold = _root.gold - 100;
}
}
Symbol 592 Button
on (release) {
if ((_root.levelZamok == 2) & (_root.gold >= 400)) {
_root.zamokSd.zz.gotoAndStop(3);
_root.levelZamok++;
_root.kolicBas = _root.kolicBas + 4;
_root.kolicBasv = _root.kolicBasv + 4;
_root.panelNiz.b2 = "/ ";
_root.panelNiz.b2 = _root.panelNiz.b2 + _root.kolicBasv;
_root.gold = _root.gold - 200;
nextFrame();
}
}
Symbol 594 MovieClip Frame 1
stop();
Symbol 594 MovieClip Frame 2
i = 1;
while (i < (_root.basPer + 1)) {
_root["basna" + i].obvodka.gotoAndStop(1);
i++;
}
Instance of Symbol 458 MovieClip in Symbol 594 MovieClip Frame 2
onClipEvent (mouseDown) {
if ((((_root.kolicBasd < _root.kolicBas) & (_root.smert == 0)) & this.hitTest(_root.kurs)) & (_root.gold >= 50)) {
if (_root.bas1.suc == null) {
_root.bas1.removeMovieClip();
_root.bas2.removeMovieClip();
_root.bas3.removeMovieClip();
_root.bas4.removeMovieClip();
_root.bas5.removeMovieClip();
_root.bas6.removeMovieClip();
_root.bas7.removeMovieClip();
_root.bas8.removeMovieClip();
_root.bas9.removeMovieClip();
_root.attachMovie("bas1", "bas1", _root.getNextHighestDepth());
_root.bas1._x = _root._xmouse;
_root.bas1._y = _root._ymouse;
}
if (_root.bas1.suc == 2) {
_root.bas1.removeMovieClip();
_root.bas2.removeMovieClip();
_root.bas3.removeMovieClip();
_root.bas4.removeMovieClip();
_root.bas5.removeMovieClip();
_root.bas6.removeMovieClip();
_root.bas7.removeMovieClip();
_root.bas8.removeMovieClip();
_root.bas9.removeMovieClip();
}
}
}
Symbol 594 MovieClip Frame 3
i = 1;
while (i < (_root.basPer + 1)) {
_root["basna" + i].obvodka.gotoAndStop(1);
i++;
}
Instance of Symbol 458 MovieClip in Symbol 594 MovieClip Frame 3
onClipEvent (mouseDown) {
if ((((_root.kolicBasd < _root.kolicBas) & (_root.smert == 0)) & this.hitTest(_root.kurs)) & (_root.gold >= 100)) {
if (_root.bas2.suc == null) {
_root.bas1.removeMovieClip();
_root.bas2.removeMovieClip();
_root.bas3.removeMovieClip();
_root.bas4.removeMovieClip();
_root.bas5.removeMovieClip();
_root.bas6.removeMovieClip();
_root.bas7.removeMovieClip();
_root.bas8.removeMovieClip();
_root.bas9.removeMovieClip();
_root.attachMovie("bas2", "bas2", _root.getNextHighestDepth());
_root.bas2._x = _root._xmouse;
_root.bas2._y = _root._ymouse;
}
if (_root.bas2.suc == 2) {
_root.bas1.removeMovieClip();
_root.bas2.removeMovieClip();
_root.bas3.removeMovieClip();
_root.bas4.removeMovieClip();
_root.bas5.removeMovieClip();
_root.bas6.removeMovieClip();
_root.bas7.removeMovieClip();
_root.bas8.removeMovieClip();
_root.bas9.removeMovieClip();
}
}
}
Symbol 594 MovieClip Frame 4
i = 1;
while (i < (_root.basPer + 1)) {
_root["basna" + i].obvodka.gotoAndStop(1);
i++;
}
Instance of Symbol 458 MovieClip in Symbol 594 MovieClip Frame 4
onClipEvent (mouseDown) {
if ((((_root.kolicBasd < _root.kolicBas) & (_root.smert == 0)) & this.hitTest(_root.kurs)) & (_root.gold >= 150)) {
if (_root.bas3.suc == null) {
_root.bas1.removeMovieClip();
_root.bas2.removeMovieClip();
_root.bas3.removeMovieClip();
_root.bas4.removeMovieClip();
_root.bas5.removeMovieClip();
_root.bas6.removeMovieClip();
_root.bas7.removeMovieClip();
_root.bas8.removeMovieClip();
_root.bas9.removeMovieClip();
_root.attachMovie("bas3", "bas3", _root.getNextHighestDepth());
_root.bas3._x = _root._xmouse;
_root.bas3._y = _root._ymouse;
}
if (_root.bas3.suc == 2) {
_root.bas1.removeMovieClip();
_root.bas2.removeMovieClip();
_root.bas3.removeMovieClip();
_root.bas4.removeMovieClip();
_root.bas5.removeMovieClip();
_root.bas6.removeMovieClip();
_root.bas7.removeMovieClip();
_root.bas8.removeMovieClip();
_root.bas9.removeMovieClip();
}
}
}
Symbol 594 MovieClip Frame 5
i = 1;
while (i < (_root.basPer + 1)) {
_root["basna" + i].obvodka.gotoAndStop(1);
i++;
}
Instance of Symbol 458 MovieClip in Symbol 594 MovieClip Frame 5
onClipEvent (mouseDown) {
if ((((_root.kolicBasd < _root.kolicBas) & (_root.smert == 0)) & this.hitTest(_root.kurs)) & (_root.gold >= 240)) {
if (_root.bas4.suc == null) {
_root.bas1.removeMovieClip();
_root.bas2.removeMovieClip();
_root.bas3.removeMovieClip();
_root.bas4.removeMovieClip();
_root.bas5.removeMovieClip();
_root.bas6.removeMovieClip();
_root.bas7.removeMovieClip();
_root.bas8.removeMovieClip();
_root.bas9.removeMovieClip();
_root.attachMovie("bas4", "bas4", _root.getNextHighestDepth());
_root.bas4._x = _root._xmouse;
_root.bas4._y = _root._ymouse;
}
if (_root.bas4.suc == 2) {
_root.bas1.removeMovieClip();
_root.bas2.removeMovieClip();
_root.bas3.removeMovieClip();
_root.bas4.removeMovieClip();
_root.bas5.removeMovieClip();
_root.bas6.removeMovieClip();
_root.bas7.removeMovieClip();
_root.bas8.removeMovieClip();
_root.bas9.removeMovieClip();
}
}
}
Symbol 594 MovieClip Frame 6
i = 1;
while (i < (_root.basPer + 1)) {
_root["basna" + i].obvodka.gotoAndStop(1);
i++;
}
Instance of Symbol 458 MovieClip in Symbol 594 MovieClip Frame 6
onClipEvent (mouseDown) {
if ((((_root.kolicBasd < _root.kolicBas) & (_root.smert == 0)) & this.hitTest(_root.kurs)) & (_root.gold >= 250)) {
if (_root.bas5.suc == null) {
_root.bas1.removeMovieClip();
_root.bas2.removeMovieClip();
_root.bas3.removeMovieClip();
_root.bas4.removeMovieClip();
_root.bas5.removeMovieClip();
_root.bas6.removeMovieClip();
_root.bas7.removeMovieClip();
_root.bas8.removeMovieClip();
_root.bas9.removeMovieClip();
_root.attachMovie("bas5", "bas5", _root.getNextHighestDepth());
_root.bas5._x = _root._xmouse;
_root.bas5._y = _root._ymouse;
}
if (_root.bas5.suc == 2) {
_root.bas1.removeMovieClip();
_root.bas2.removeMovieClip();
_root.bas3.removeMovieClip();
_root.bas4.removeMovieClip();
_root.bas5.removeMovieClip();
_root.bas6.removeMovieClip();
_root.bas7.removeMovieClip();
_root.bas8.removeMovieClip();
_root.bas9.removeMovieClip();
}
}
}
Symbol 594 MovieClip Frame 7
i = 1;
while (i < (_root.basPer + 1)) {
_root["basna" + i].obvodka.gotoAndStop(1);
i++;
}
Instance of Symbol 458 MovieClip in Symbol 594 MovieClip Frame 7
onClipEvent (mouseDown) {
if ((((_root.kolicBasd < _root.kolicBas) & (_root.smert == 0)) & this.hitTest(_root.kurs)) & (_root.gold >= 200)) {
if (_root.bas6.suc == null) {
_root.bas1.removeMovieClip();
_root.bas2.removeMovieClip();
_root.bas3.removeMovieClip();
_root.bas4.removeMovieClip();
_root.bas5.removeMovieClip();
_root.bas6.removeMovieClip();
_root.bas7.removeMovieClip();
_root.bas8.removeMovieClip();
_root.bas9.removeMovieClip();
_root.attachMovie("bas6", "bas6", _root.getNextHighestDepth());
_root.bas6._x = _root._xmouse;
_root.bas6._y = _root._ymouse;
}
if (_root.bas6.suc == 2) {
_root.bas1.removeMovieClip();
_root.bas2.removeMovieClip();
_root.bas3.removeMovieClip();
_root.bas4.removeMovieClip();
_root.bas5.removeMovieClip();
_root.bas6.removeMovieClip();
_root.bas7.removeMovieClip();
_root.bas8.removeMovieClip();
_root.bas9.removeMovieClip();
}
}
}
Symbol 594 MovieClip Frame 8
i = 1;
while (i < (_root.basPer + 1)) {
_root["basna" + i].obvodka.gotoAndStop(1);
i++;
}
Instance of Symbol 458 MovieClip in Symbol 594 MovieClip Frame 8
onClipEvent (mouseDown) {
if ((((_root.kolicBasd < _root.kolicBas) & (_root.smert == 0)) & this.hitTest(_root.kurs)) & (_root.gold >= 500)) {
if (_root.bas7.suc == null) {
_root.bas1.removeMovieClip();
_root.bas2.removeMovieClip();
_root.bas3.removeMovieClip();
_root.bas4.removeMovieClip();
_root.bas5.removeMovieClip();
_root.bas6.removeMovieClip();
_root.bas7.removeMovieClip();
_root.bas8.removeMovieClip();
_root.bas9.removeMovieClip();
_root.attachMovie("bas7", "bas7", _root.getNextHighestDepth());
_root.bas7._x = _root._xmouse;
_root.bas7._y = _root._ymouse;
}
if (_root.bas7.suc == 2) {
_root.bas1.removeMovieClip();
_root.bas2.removeMovieClip();
_root.bas3.removeMovieClip();
_root.bas4.removeMovieClip();
_root.bas5.removeMovieClip();
_root.bas6.removeMovieClip();
_root.bas7.removeMovieClip();
_root.bas8.removeMovieClip();
_root.bas9.removeMovieClip();
}
}
}
Symbol 594 MovieClip Frame 9
i = 1;
while (i < (_root.basPer + 1)) {
_root["basna" + i].obvodka.gotoAndStop(1);
i++;
}
Instance of Symbol 458 MovieClip in Symbol 594 MovieClip Frame 9
onClipEvent (mouseDown) {
if ((((_root.kolicBasd < _root.kolicBas) & (_root.smert == 0)) & this.hitTest(_root.kurs)) & (_root.gold >= 650)) {
if (_root.bas8.suc == null) {
_root.bas1.removeMovieClip();
_root.bas2.removeMovieClip();
_root.bas3.removeMovieClip();
_root.bas4.removeMovieClip();
_root.bas5.removeMovieClip();
_root.bas6.removeMovieClip();
_root.bas7.removeMovieClip();
_root.bas8.removeMovieClip();
_root.bas9.removeMovieClip();
_root.attachMovie("bas8", "bas8", _root.getNextHighestDepth());
_root.bas8._x = _root._xmouse;
_root.bas8._y = _root._ymouse;
}
if (_root.bas8.suc == 2) {
_root.bas1.removeMovieClip();
_root.bas2.removeMovieClip();
_root.bas3.removeMovieClip();
_root.bas4.removeMovieClip();
_root.bas5.removeMovieClip();
_root.bas6.removeMovieClip();
_root.bas7.removeMovieClip();
_root.bas8.removeMovieClip();
_root.bas9.removeMovieClip();
}
}
}
Symbol 594 MovieClip Frame 10
i = 1;
while (i < (_root.basPer + 1)) {
_root["basna" + i].obvodka.gotoAndStop(1);
i++;
}
Instance of Symbol 458 MovieClip in Symbol 594 MovieClip Frame 10
onClipEvent (mouseDown) {
if ((((_root.kolicBasd < _root.kolicBas) & (_root.smert == 0)) & this.hitTest(_root.kurs)) & (_root.gold >= 500)) {
if (_root.bas9.suc == null) {
_root.bas1.removeMovieClip();
_root.bas2.removeMovieClip();
_root.bas3.removeMovieClip();
_root.bas4.removeMovieClip();
_root.bas5.removeMovieClip();
_root.bas6.removeMovieClip();
_root.bas7.removeMovieClip();
_root.bas8.removeMovieClip();
_root.bas9.removeMovieClip();
_root.attachMovie("bas9", "bas9", _root.getNextHighestDepth());
_root.bas9._x = _root._xmouse;
_root.bas9._y = _root._ymouse;
}
if (_root.bas9.suc == 2) {
_root.bas1.removeMovieClip();
_root.bas2.removeMovieClip();
_root.bas3.removeMovieClip();
_root.bas4.removeMovieClip();
_root.bas5.removeMovieClip();
_root.bas6.removeMovieClip();
_root.bas7.removeMovieClip();
_root.bas8.removeMovieClip();
_root.bas9.removeMovieClip();
}
}
}
Symbol 594 MovieClip Frame 21
this.imat = 0;
Symbol 594 MovieClip Frame 22
this.imat = 0;
Symbol 594 MovieClip Frame 23
this.imat = 0;
Symbol 597 Button
on (release) {
if (_root.basPer >= 2) {
nextFrame();
}
}
Symbol 600 Button
on (release) {
_root.game = 0;
gotoAndStop (3);
}
Symbol 602 Button
on (release) {
nextFrame();
}
Symbol 603 MovieClip Frame 1
stop();
Instance of Symbol 598 MovieClip in Symbol 603 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.tablic._currentframe == 2) {
this._visible = 1;
} else {
this._visible = 0;
}
}
Instance of Symbol 598 MovieClip in Symbol 603 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.bas1.suc == 2) {
this._visible = 1;
} else {
this._visible = 0;
}
}
Symbol 603 MovieClip Frame 2
_root.game = 0;
Symbol 607 MovieClip Frame 18
stop();
Symbol 613 Button
on (release) {
i = 1;
while (i < (_root.basPer + 1)) {
_root["basna" + i].removeMovieClip();
i++;
}
j = 1;
while (j < 40) {
_root["enemy" + j].removeMovieClip();
j++;
}
_root.giz = 100;
_root.zzz.news.stop();
stopAllSounds();
_root.gotoAndStop("mem");
}
Symbol 619 Button
on (release) {
i = 1;
while (i < (_root.basPer + 1)) {
_root["basna" + i].removeMovieClip();
i++;
}
j = 1;
while (j < 40) {
_root["enemy" + j].removeMovieClip();
j++;
}
_root.giz = 100;
_root.zzz.news.stop();
stopAllSounds();
_root.gotoAndStop("mem");
}
Symbol 622 Button
on (release) {
_root.news.stop();
stopAllSounds();
_root.gotoAndStop("mem");
}