Frame 1
function __com_mochibot__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
var pv;
mb = "__mochibot__";
mbc = "mochibot.com";
g = (_global ? (_global) : (_level0._root));
if (g[mb + swfid]) {
return(g[mb + swfid]);
}
s = System.security;
x = mc._root.getSWFVersion;
fv = (x ? (mc.getSWFVersion()) : ((_global ? 6 : 5)));
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == "localWithFile") {
return(null);
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
pv = ((fv == 5) ? (getVersion()) : (System.capabilities.version));
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=8&fv=") + fv) + "&v=") + escape(pv)) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "")) + (trk ? "&t=1" : "");
lv = ((fv > 6) ? (mc.getNextHighestDepth()) : ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv))));
g[mb + "level"] = lv;
if (fv == 5) {
res = "_level" + lv;
if (!eval (res)) {
loadMovieNum (u, lv);
}
} else {
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
}
return(res);
}
var CPMStarContentSpotID = "882Q93519745";
System.security.allowDomain("server.cpmstar.com");
adBox.loadMovie("http://server.cpmstar.com/adviewas2.swf?contentspotid=" + CPMStarContentSpotID);
stop();
var loaddd = 0;
_root.createEmptyMovieClip("ciarka", 10);
ciarka.beginFill(0, 0);
ciarka.lineStyle(2, 0, 100);
ciarka.moveTo(0, 0);
ciarka.lineTo(0, 15);
ciarka.lineTo(250, 15);
ciarka.lineTo(250, 0);
ciarka.endFill();
_root.createEmptyMovieClip("slider", 9);
slider.beginFill(0, 100);
slider.moveTo(0, 0);
slider.lineTo(0, 15);
slider.lineTo(250, 15);
slider.lineTo(250, 0);
slider.endFill();
onEnterFrame = function () {
if (currentdomain != -1) {
closed._visible = false;
var _local2 = _root.getBytesTotal();
var _local3 = _root.getBytesLoaded();
slider._x = (Stage.width / 2) - 125;
slider._y = Stage.height - 80;
ciarka._x = (Stage.width / 2) - 125;
ciarka._y = Stage.height - 80;
if (_local3 == _local2) {
if (loaddd == 0) {
loaddd = loaddd + 1;
}
if (loaddd == 1) {
_root.playbutto._x = 233;
removeMovieClip(_root.slider);
removeMovieClip(_root.ciarka);
removeMovieClip(_root.loadingscreen);
}
} else {
slider._xscale = (_local3 / _local2) * 100;
}
}
};
currUrlD = _url.toLowerCase();
currentdomain = currUrlD.indexOf("");
__com_mochibot__("253b5f4e", this, 10301, true);
Frame 3
stop();
removeMovieClip(adBox);
var zvuBig = new Sound();
stopAllSounds();
zvuBig.onSoundComplete = function () {
zvuBig.start(0, 99);
};
zvuBig.attachSound("bigsky");
zvuBig.start(0, 99);
onEnterFrame = function () {
if (Key.isDown(16)) {
_root.gotoAndPlay(5);
}
};
Frame 4
stop();
_root._x = 0;
i = 1;
while (i <= 25) {
removeMovieClip(_root["vojak" + i]);
removeMovieClip(_root["zojak" + i]);
i++;
}
onEnterFrame = function () {
};
onMouseMove = function () {
};
Frame 5
function cenovkovanie() {
if ((((((((((((((((((((((((((kurzor.hitTest(panel.sendchainb) or kurzor.hitTest(panel.tunelb)) or kurzor.hitTest(panel.tunnelerb)) or kurzor.hitTest(panel.chainb)) or kurzor.hitTest(panel.chainconstructionb)) or kurzor.hitTest(panel.newunitb)) or kurzor.hitTest(panel.newbarrierb)) or kurzor.hitTest(panel.vojak1b)) or kurzor.hitTest(panel.vojak2b)) or kurzor.hitTest(panel.vojak3b)) or kurzor.hitTest(panel.vojak4b)) or kurzor.hitTest(panel.vojak5b)) or kurzor.hitTest(panel.vojak6b)) or kurzor.hitTest(panel.vojak7b)) or kurzor.hitTest(panel.vojak8b)) or kurzor.hitTest(panel.vojak9b)) or kurzor.hitTest(panel.vojak10b)) or kurzor.hitTest(panel.vojak11b)) or kurzor.hitTest(panel.vojak12b)) or kurzor.hitTest(panel.vojak13b)) or kurzor.hitTest(panel.vojak14b)) or kurzor.hitTest(panel.vojak15b)) or kurzor.hitTest(panel.vojak16b)) or kurzor.hitTest(panel.vojak17b)) or kurzor.hitTest(panel.vojak18b)) or kurzor.hitTest(panel.vojak19b)) or kurzor.hitTest(panel.vojak20b)) {
cenovka._visible = true;
} else {
cenovka._visible = false;
}
if (kurzor.hitTest(panel.newunitb)) {
cenovka.gotoAndPlay(1);
cenovka.cena = NewUnitCen;
cenovka.power = 0;
}
if (kurzor.hitTest(panel.newbarrierb)) {
cenovka.gotoAndPlay(1);
cenovka.cena = NewBarrierCen;
cenovka.power = 0;
}
if (kurzor.hitTest(panel.tunelb)) {
cenovka.gotoAndPlay(6);
cenovka.cena = CenTunel;
cenovka.power = 0;
}
if (kurzor.hitTest(panel.tunnelerb)) {
cenovka.gotoAndPlay(4);
cenovka.cena = CenTunneler;
cenovka.power = TunNep;
}
if (kurzor.hitTest(panel.chainconstructionb)) {
cenovka.gotoAndPlay(6);
cenovka.cena = CenChainConstruction;
cenovka.power = 0;
}
if (kurzor.hitTest(panel.chainb)) {
cenovka.gotoAndPlay(5);
cenovka.cena = CenChain;
cenovka.power = 0;
}
if (kurzor.hitTest(panel.sendchainb)) {
cenovka.gotoAndPlay(2);
}
p = 1;
while (p <= 17) {
if (kurzor.hitTest(_root.panel[("vojak" + p) + "b"])) {
cenovka.gotoAndPlay(3);
cenovka.cena = _root["CenVojak" + p];
cenovka.power = _root["ZivVojak" + p];
}
p++;
}
}
function tazenie() {
if ((((veza._currentframe > TazFrZ) and (veza._currentframe < TazFrK)) and (zakladna.zivot <= 100)) and (pauza == false)) {
zakladna.zivot = zakladna.zivot + TazJedn;
}
if (zakladna.zivot >= 100) {
zakladna.zivot = 100;
}
}
function dostupnost() {
if (jebarriera == true) {
}
if (chain._currentframe > 1) {
panel.chainbutton._alpha = 30;
panel.chainb._alpha = 30;
} else {
panel.chainbutton._alpha = 100;
panel.chainb._alpha = 100;
}
if (zakladna.zivot > NewBarrierCen) {
panel.newbarrierbutton._alpha = 100;
panel.newbarrierb._alpha = 100;
} else {
panel.newbarrierbutton._alpha = 30;
panel.newbarrierb._alpha = 30;
}
if (zakladna.zivot > NewUnitCen) {
panel.newunitbutton._alpha = 100;
panel.newunitb._alpha = 100;
} else {
panel.newunitbutton._alpha = 30;
panel.newunitb._alpha = 30;
}
if (newbarrier == PocetDruhovBarier) {
panel.newbarrierbutton._y = -530;
panel.newbarrierb._y = -530;
}
if (newunit == PocetDruhovUnitov) {
panel.newunitbutton._y = -530;
panel.newunitb._y = -530;
}
i = 1;
while (i <= maxpocet) {
if (zakladna.zivot > _root["CenVojak" + i]) {
_root.panel[("vojak" + i) + "button"]._alpha = 100;
_root.panel[("vojak" + i) + "b"]._alpha = 100;
} else {
_root.panel[("vojak" + i) + "button"]._alpha = 20;
_root.panel[("vojak" + i) + "b"]._alpha = 20;
}
i++;
}
if (zakladna.zivot > CenTunel) {
_root.panel.tunelbutton._alpha = 100;
_root.panel.tunelb._alpha = 100;
} else {
_root.panel.tunelbutton._alpha = 20;
_root.panel.tunelb._alpha = 20;
}
if ((zakladna.zivot > CenTunneler) and (tunel._currentframe == 1034)) {
_root.panel.tunnelerbutton._alpha = 100;
_root.panel.tunnelerb._alpha = 100;
} else {
_root.panel.tunnelerbutton._alpha = 20;
_root.panel.tunnelerb._alpha = 20;
}
if (tunel._currentframe == 3) {
panel.tunelbutton._alpha = 20;
panel.tunelb._alpha = 20;
}
if (tunel._currentframe == 1034) {
_root.panel.tunelbutton._y = -60;
_root.panel.tunelb._y = -60;
panel.tunnelerbutton._visible = true;
panel.tunnelerb._visible = true;
panel.tunnelerb._y = 42;
}
if ((zakladna.zivot > CenChainConstruction) and (chainconstruction._currentframe < 75)) {
_root.panel.chainconstructionbutton._alpha = 100;
_root.panel.chainconstructionb._alpha = 100;
} else {
_root.panel.chainconstructionbutton._alpha = 20;
_root.panel.chainconstructionb._alpha = 20;
}
if ((zakladna.zivot > CenChain) and (chainconstruction._currentframe > 73)) {
if (chain._currentframe == 1) {
_root.panel.chainbutton._alpha = 100;
_root.panel.chainb._alpha = 100;
}
} else {
_root.panel.chainbutton._alpha = 20;
_root.panel.chainb._alpha = 20;
}
if (chainconstruction._currentframe > 73) {
_root.panel.chainconstructionbutton._y = -60;
_root.panel.chainconstructionb._y = -60;
_root.panel.sendchainbutton._visible = true;
_root.panel.sendchainb._visible = true;
_root.panel.sendchainb._y = 67;
_root.panel.chainbutton._visible = true;
_root.panel.chainb._visible = true;
_root.panel.chainb._y = 67;
}
if (newunit > 0) {
panel.vojak1button._visible = true;
panel.vojak1b._visible = true;
panel.vojak1b._y = -10;
}
if (newunit > 1) {
panel.vojak2button._visible = true;
panel.vojak2b._visible = true;
panel.vojak2b._y = -10;
}
if (newunit > 2) {
panel.vojak3button._visible = true;
panel.vojak3b._visible = true;
panel.vojak3b._y = -10;
}
if (newunit > 3) {
panel.vojak4button._visible = true;
panel.vojak4b._visible = true;
panel.vojak4b._y = -10;
}
if (newunit > 4) {
panel.vojak10button._visible = true;
panel.vojak10b._visible = true;
panel.vojak10b._y = -10;
}
if (newunit > 5) {
panel.vojak12button._visible = true;
panel.vojak12b._visible = true;
panel.vojak12b._y = -10;
}
if (newunit > 6) {
panel.vojak13button._visible = true;
panel.vojak13b._visible = true;
panel.vojak13b._y = -10;
}
if (newunit > 7) {
panel.vojak14button._visible = true;
panel.vojak14b._visible = true;
panel.vojak14b._y = -10;
}
if (newunit > 8) {
panel.vojak15button._visible = true;
panel.vojak15b._visible = true;
panel.vojak15b._y = -10;
}
if (newunit > 9) {
panel.vojak16button._visible = true;
panel.vojak16b._visible = true;
panel.vojak16b._y = -10;
}
if (newbarrier > 0) {
panel.vojak5button._visible = true;
panel.vojak5b._visible = true;
panel.vojak5b._y = 16;
}
if (newbarrier > 1) {
panel.vojak6button._visible = true;
panel.vojak6b._visible = true;
panel.vojak6b._y = 16;
}
if (newbarrier > 2) {
panel.vojak7button._visible = true;
panel.vojak7b._visible = true;
panel.vojak7b._y = 16;
}
if (newbarrier > 3) {
panel.vojak8button._visible = true;
panel.vojak8b._visible = true;
panel.vojak8b._y = 16;
}
if (newbarrier > 4) {
panel.vojak9button._visible = true;
panel.vojak9b._visible = true;
panel.vojak9b._y = 16;
}
if (newbarrier > 5) {
panel.vojak11button._visible = true;
panel.vojak11b._visible = true;
panel.vojak11b._y = 16;
}
}
function loading() {
if (((timer._currentframe > 1) or (panel.newunitbutton._currentframe > 1)) or (panel.newbarrierbutton._currentframe > 1)) {
panel._alpha = 30;
} else {
panel._alpha = 100;
}
}
function zivotzakladnanep() {
zivotbar._xscale = zakladnanep.zivot;
if ((((zivotbar._xscale < 100) and (zeza._currentframe > 70)) and (zeza._currentframe < 75)) and (pauza == false)) {
zakladnanep.zivot = zakladnanep.zivot + TazenieNepZakladne;
}
}
function strelba() {
if ((strelba1._currentframe > 15) and (strelba1._currentframe < 81)) {
if (kurzor.hitTest(panel) or (kurzor._y > 255)) {
krosser._alpha = 0;
} else {
krosser._alpha = 100;
}
krosser._y = _ymouse;
krosser._x = _xmouse;
} else {
krosser._y = -500;
}
if (((kurzor.hitTest(strelba1) and (kurzor._currentframe == 2)) and (down < 4)) and (strelba1._alpha == 100)) {
strelba1._alpha = 0;
attachMovie("bum", "bumst", 3100);
bumst._x = kurzor._x;
bumst._y = kurzor._y;
}
t = 1;
while (t <= maxpocet) {
if (((_root["vojak" + t]._currentframe == 169) and (strelba1._currentframe == 74)) and (strelba1._alpha == 100)) {
strelba1._alpha = 0;
attachMovie("bum", "bumv", 3102);
bumv._x = 224;
bumv._y = 180;
}
t++;
}
if ((strelba1._alpha == 100) and (strelba1._currentframe == 81)) {
attachMovie("bum", "bumst2", 3101);
bumst2._x = 124;
bumst2._y = 227;
zakladna.zivot = zakladna.zivot - StrelbaZiv;
}
if (strelba1._currentframe == 2) {
strelba1._alpha = 100;
}
}
function tunnelerovanie() {
if ((tunneler._currentframe == 119) and (tunneler._alpha == 100)) {
zakladnanep.zivot = zakladnanep.zivot - TunNep;
}
if ((tunneler._currentframe == 105) and (podzbar._currentframe == 16)) {
tunneler._alpha = 0;
attachMovie("bum", "bumpz", 3124);
bumpz._x = 655;
bumpz._y = 342;
}
if (tunneler._currentframe == 90) {
vysledokrandompodzbar = random(randompodzbar);
}
if (tunneler._currentframe == 91) {
if (vysledokrandompodzbar == 1) {
podzbar.gotoAndPlay(2);
}
}
}
function padanie() {
t = 1;
while (t <= maxpocet) {
if (_root["vojak" + t]._y == YgenChain) {
_root["vojak" + t]._x = _root["vojak" + t]._x + 0.5;
}
if (((_root["vojak" + t]._y >= YgenChain) and (_root["vojak" + t]._y < (Ygen - 10))) and (_root["vojak" + t]._x > XChain)) {
_root["vojak" + t]._y = _root["vojak" + t]._y + 13;
_root["vojak" + t]._rotation = _root["vojak" + t]._rotation + 1.5;
} else {
_root["vojak" + t]._rotation = 0;
}
t++;
}
t = 1;
while (t <= maxpocet) {
if ((chain._currentframe == 96) and _root["zojak" + t].hitTest(chain)) {
attachMovie("bum", "bumk" + t, 3450 + t);
_root["bumk" + t]._rotation = random(180);
_root["bumk" + t]._x = _root["zojak" + t]._x;
_root["bumk" + t]._y = _root["zojak" + t]._y;
_root["zojakziv" + t] = 0;
removeMovieClip(_root["zojak" + t]);
}
t++;
}
}
function pohyb() {
t = 1;
while (t <= maxpocet) {
_root["vojak" + t]._x = _root["vojak" + t]._x + _root["vojakryc" + t];
_root["zojak" + t]._x = _root["zojak" + t]._x - _root["zojakryc" + t];
if (((_root["vojakryc" + t] == 0.5) and (_root["vojak" + t]._x > _root["vojakbar" + t])) and (_root["vojakryc" + t] > 0)) {
_root["vojakryc" + t] = 0;
_root["vojak" + t].gotoAndPlay(76);
}
if (_root["vojak" + t]._x > XDrv) {
if (drvic._currentframe == 1) {
drvic.gotoAndPlay(2);
}
}
t++;
}
}
function strety() {
if (exploziazakladnenep._currentframe == 5) {
victory.gotoAndPlay(2);
}
if (exploziazakladnenep._currentframe == 70) {
fadeout.gotoAndPlay(2);
}
if (exploziazakladne._currentframe == 70) {
fadeout.gotoAndPlay(2);
}
if (fadeout._currentframe == 125) {
i = 1;
while (i <= maxpocet) {
removeMovieClip(_root["vojak" + i]);
removeMovieClip(_root["zojak" + i]);
i++;
}
fade.gotoAndPlay(2);
stopAllSounds();
_root.gotoAndPlay(4);
}
if ((zakladnanep.zivot <= 0) and (exploziazakladnenep._currentframe == 1)) {
zakladnanep._y = -500;
lana._y = -500;
drvic._y = -500;
strelba1._y = -800;
trajektoria._y = -800;
zivotbar._y = -500;
ramik._visible = false;
tunneler._y = -800;
exploziazakladnenep.gotoAndPlay(2);
}
if ((zakladna.zivot <= 0) and (exploziazakladne._currentframe == 1)) {
zakladna._y = -500;
timer._y = -500;
chainconstruction._y = -500;
chain._y = -500;
chain.stop();
panel._y = -500;
strelba1._y = -800;
trajektoria._y = -800;
tunneler._y = -800;
exploziazakladne.gotoAndPlay(2);
}
t = 1;
while (t <= maxpocet) {
if ((_root["vojak" + t].hitTest(drvic) and (drvic._currentframe > 3)) and (drvic._currentframe < 7)) {
attachMovie("bum", "bumd" + t, 1800 + t);
_root["bumd" + t]._rotation = random(180);
_root["bumd" + t]._x = _root["vojak" + t]._x;
_root["bumd" + t]._y = _root["vojak" + t]._y;
_root["vojakziv" + t] = 0;
removeMovieClip(_root["vojak" + t]);
}
if (_root["vojak" + t].hitTest(zakladnanep) and (_root["vojak" + t]._alpha == 100)) {
zakladna.zivot = zakladna.zivot + Math.round(_root["vojakzivpre" + t] / DelVynosZaklNep);
attachMovie("vynos", "vynoss" + t, 2930 + t);
_root["vynoss" + t].medzivrstva.vynieslo = Math.round(_root["vojakzivpre" + t] / DelVynosZaklNep);
_root["vynoss" + t]._x = _root["vojak" + t]._x;
_root["vynoss" + t]._y = 250;
attachMovie("bum", "bum" + t, 1500 + t);
zakladna.zivot++;
_root["bum" + t]._rotation = random(180);
_root["bum" + t]._x = _root["vojak" + t]._x;
_root["bum" + t]._y = _root["vojak" + t]._y;
_root["vojak" + t]._alpha = 0;
removeMovieClip(_root["vojak" + t]);
zakladnanep.zivot = zakladnanep.zivot - _root["vojakziv" + t];
}
if (_root["zojak" + t].hitTest(zakladna) and (_root["zojak" + t]._alpha == 100)) {
attachMovie("bum", "buum" + t, 1500 + t);
_root["buum" + t]._rotation = random(180);
_root["buum" + t]._x = _root["zojak" + t]._x;
_root["buum" + t]._y = _root["zojak" + t]._y;
_root["zojak" + t]._alpha = 0;
removeMovieClip(_root["zojak" + t]);
zakladna.zivot = zakladna.zivot - _root["zojakziv" + t];
}
d = 1;
while (d <= maxpocet) {
if ((_root["vojak" + t].hitTest(_root["zojak" + d]) and (_root["vojakziv" + t] > 0)) and (_root["zojakziv" + d] > 0)) {
if (_root["vojak" + t]._y > YgenChain) {
_root["vojakziv" + t] = _root["vojakziv" + t] - _root["zojakziv" + d];
_root["zojakziv" + d] = _root["zojakziv" + d] - (_root["vojakziv" + t] + _root["zojakziv" + d]);
_root["vojak" + t].zivot = _root["vojakziv" + t];
_root["zojak" + d].zivot = _root["zojakziv" + d];
}
if (_root["vojakziv" + t] <= 0) {
if (_root["vojakbar" + t] == XBar) {
jebariera = 0;
}
attachMovie("bum", "bumm" + t, 1800 + t);
_root["bumm" + t]._rotation = random(180);
_root["bumm" + t]._x = _root["vojak" + t]._x;
_root["bumm" + t]._y = _root["vojak" + t]._y;
_root["vojakziv" + t] = 0;
removeMovieClip(_root["vojak" + t]);
}
if (_root["zojakziv" + d] <= 0) {
if (_root["vojakbar" + t] != XBar) {
zakladna.zivot = zakladna.zivot + Math.round(_root["zojakzivpre" + d] / DelVynos);
attachMovie("vynos", "vynos" + d, 1900 + d);
_root["vynos" + d].medzivrstva.vynieslo = Math.round(_root["zojakzivpre" + d] / DelVynos);
_root["vynos" + d]._x = _root["zojak" + d]._x;
_root["vynos" + d]._y = 250;
}
if (_root["vojakbar" + t] == XBar) {
zakladna.zivot = zakladna.zivot + Math.round(_root["zojakzivpre" + d] / DelVynosBar);
attachMovie("vynos", "vynosb" + d, 1940 + d);
_root["vynosb" + d].medzivrstva.vynieslo = Math.round(_root["zojakzivpre" + d] / DelVynosBar);
_root["vynosb" + d]._x = _root["zojak" + d]._x;
_root["vynosb" + d]._y = 250;
}
attachMovie("bum", "bumz" + d, 1700 + d);
_root["bumz" + d]._rotation = random(180);
_root["bumz" + d]._x = _root["zojak" + d]._x;
_root["bumz" + d]._y = _root["zojak" + d]._y;
_root["zojakziv" + d] = 0;
removeMovieClip(_root["zojak" + d]);
}
}
d++;
}
t++;
}
}
function pocitac() {
okamih++;
if (okamih == 24) {
sekunda++;
okamih = 0;
}
if (sekunda == 30) {
polminuta++;
trace(polminuta);
sekunda = 0;
}
if ((((((((((((((sekunda == 2) or (sekunda == 4)) or (sekunda == 6)) or (sekunda == 8)) or (sekunda == 10)) or (sekunda == 12)) or (sekunda == 14)) or (sekunda == 16)) or (sekunda == 18)) or (sekunda == 20)) or (sekunda == 22)) or (sekunda == 24)) or (sekunda == 26)) or (sekunda == 28)) {
kazdadruhasekunda = true;
} else {
kazdadruhasekunda = false;
}
if (polminuta == 0) {
VojNo = 0;
TazenieNepZakladne = 0.5;
}
if (polminuta == 1) {
VojNo = 1;
castost = 120;
}
if (polminuta == 2) {
VojNo = 1;
customzivot = -1;
castost = 150;
}
if (polminuta == 3) {
VojNo = 0;
}
if (polminuta == 4) {
VojNo = 2;
customrychlost = 1;
customzivot = 0;
castost = 70;
}
if (polminuta == 5) {
VojNo = 0;
}
if (polminuta == 6) {
customrychlost = 0;
VojNo = 1;
castost = 90;
}
if (polminuta == 7) {
VojNo = 0;
}
if (polminuta == 8) {
VojNo = 2;
customzivot = -1;
castost = 50;
}
if (polminuta == 9) {
VojNo = 3;
castost = 200;
}
if (polminuta == 10) {
VojNo = 0;
}
if (polminuta == 11) {
VojNo = 2;
customrychlost = 1;
customzivot = -1;
castost = 50;
}
if (polminuta == 12) {
VojNo = 0;
TazJedn = 3;
strelba1.gotoAndPlay(2);
trajektoria.gotoAndPlay(2);
trajektoriatutorial.gotoAndPlay(2);
}
if (polminuta == 13) {
if (kazdadruhasekunda == true) {
VojNo = 3;
castost = 80;
} else {
VojNo = 2;
customzivot = -1;
castost = 80;
}
}
if (polminuta == 14) {
VojNo = 2;
customzivot = -1;
castost = 30;
}
if (polminuta == 15) {
VojNo = 0;
}
if (polminuta == 16) {
VojNo = 10;
customzivot = 1;
customrychlost = 1;
castost = 350;
}
if (polminuta == 17) {
VojNo = 0;
}
if (polminuta == 18) {
if (kazdadruhasekunda == true) {
VojNo = 10;
castost = 150;
customrychlost = 0;
} else {
VojNo = 4;
customzivot = -1;
castost = 130;
}
}
if (polminuta == 19) {
TazenieNepZakladne = 0.8;
VojNo = 0;
}
if (polminuta == 20) {
VojNo = 0;
customzivot = 0;
customrychlost = 0;
}
if (polminuta == 21) {
VojNo = 0;
}
if (polminuta == 22) {
VojNo = 12;
castost = 180;
}
if (polminuta == 23) {
VojNo = 0;
}
if (polminuta == 24) {
VojNo = 2;
castost = 30;
customrychlost = 2;
customzivot = -1;
}
if (polminuta == 25) {
VojNo = 0;
}
if (polminuta == 26) {
VojNo = 0;
}
if (polminuta == 27) {
VojNo = 13;
castost = 200;
customzivot = -1;
}
if (polminuta == 28) {
VojNo = 0;
}
if (polminuta == 29) {
if (kazdadruhasekunda == true) {
VojNo = 13;
customzivot = -1;
castost = 150;
} else {
VojNo = 12;
customzivot = -1;
castost = 130;
}
}
if (polminuta == 30) {
VojNo = 0;
}
if (polminuta == 31) {
TazenieNepZakladne = 1.5;
TazJedn = 4;
VojNo = 14;
castost = 50;
customrychlost = 1;
customzivot = -1;
}
if (polminuta == 32) {
VojNo = 0;
}
if (polminuta == 33) {
VojNo = 15;
customzivot = -2;
customrychlost = 0;
castost = 180;
}
if (polminuta == 34) {
VojNo = 0;
}
if (polminuta == 35) {
customzivot = 0;
customrychlost = 0;
if (kazdadruhasekunda == true) {
VojNo = 14;
castost = 350;
} else {
VojNo = 15;
castost = 350;
}
}
if (polminuta == 37) {
VojNo = 0;
}
if (polminuta == 38) {
VojNo = 13;
customzivot = 0;
customrychlost = 0;
castost = 280;
}
if (polminuta == 40) {
VojNo = 0;
}
if (polminuta == 41) {
VojNo = 15;
customzivot = 0;
customrychlost = 0;
castost = 300;
}
if (polminuta == 42) {
VojNo = 14;
customzivot = -3;
customrychlost = 1;
castost = 80;
}
if (polminuta == 43) {
polminuta = 35;
}
casovac++;
if (casovac == 1) {
randomuj = random(castost) + minimalnycasnavojaka;
}
if ((casovac >= randomuj) and (zakladnanep._y > 0)) {
z++;
attachMovie("zojak" + VojNo, "zojak" + z, 2000 + z);
_root["zojak" + z]._x = zakladnanep._x;
_root["zojak" + z]._y = Ygen;
_root["zojakryc" + z] = _root["RycVojak" + VojNo] + customrychlost;
_root["zojakziv" + z] = _root["ZivVojak" + VojNo] + customzivot;
_root["zojakzivpre" + z] = _root["ZivVojak" + VojNo];
_root["zojak" + z].zivot = _root["ZivVojak" + VojNo] + customzivot;
casovac = 0;
}
}
function cheats() {
if (Key.isDown(17)) {
if (Key.isDown(33)) {
zakladna.zivot++;
}
if (Key.isDown(34)) {
zakladna.zivot--;
}
if (Key.isDown(36)) {
zakladnanep.zivot++;
}
if (Key.isDown(35)) {
zakladnanep.zivot--;
}
}
}
stop();
var zvuHu = new Sound();
stopAllSounds();
zvuHu.onSoundComplete = function () {
zvuHu.start(0, 99);
};
zvuHu.attachSound("hudbazvuk");
zvuHu.start(0, 99);
pauza = false;
n = 0;
m = 0;
z = 0;
b = 0;
k = 0;
jebariera = 0;
down = 0;
okamih = 0;
sekunda = 0;
polminuta = 0;
casovac = 0;
ManL = -40;
ManP = 200;
RycObr = 5;
customrychlost = 0;
customzivot = 0;
newunit = 1;
newbarrier = 1;
zakladnanep.zivot = 70;
zakladna.zivot = 5;
maxpocet = 26;
castost = 250;
minimalnycasnavojaka = 25;
randompodzbar = 3;
Ygen = 300;
YgenChain = 247;
TazFrZ = 50;
TazFrK = 52;
TazJedn = 1;
XBar = 194;
XDrv = 350;
XChain = 390;
VojNo = 1;
DelVynos = 2;
DelVynosBar = 4;
DelVynosZaklNep = 1.3;
TazenieNepZakladne = 0.4;
CenTunel = 35;
CenTunneler = 4;
TunNep = 5;
CenChainConstruction = 15;
CenChain = 0;
StrelbaZiv = 2;
NewUnitCen = 4;
NewBarrierCen = 4;
PocetDruhovBarier = 6;
PocetDruhovUnitov = 10;
RycVojak1 = 1;
ZivVojak1 = 2;
CenVojak1 = 2;
RycVojak2 = 2.7;
ZivVojak2 = 2;
CenVojak2 = 2;
RycVojak3 = 0.75;
ZivVojak3 = 5;
CenVojak3 = 3;
RycVojak4 = 2.1;
ZivVojak4 = 4;
CenVojak4 = 4;
RycVojak5 = 0.5;
ZivVojak5 = 12;
CenVojak5 = 5;
RycVojak6 = 0.5;
ZivVojak6 = 19;
CenVojak6 = 8;
RycVojak7 = 0.5;
ZivVojak7 = 32;
CenVojak7 = 12;
RycVojak8 = 0.5;
ZivVojak8 = 39;
CenVojak8 = 18;
RycVojak9 = 0.5;
ZivVojak9 = 41;
CenVojak9 = 19;
RycVojak10 = 0.7;
ZivVojak10 = 8;
CenVojak10 = 6;
RycVojak11 = 0.5;
ZivVojak11 = 90;
CenVojak11 = 29;
RycVojak12 = 1.7;
ZivVojak12 = 6;
CenVojak12 = 4;
RycVojak13 = 0.85;
ZivVojak13 = 11;
CenVojak13 = 7;
RycVojak14 = 4.5;
ZivVojak14 = 4;
CenVojak14 = 5;
RycVojak15 = 1.5;
ZivVojak15 = 17;
CenVojak15 = 10;
RycVojak16 = 1.3;
ZivVojak16 = 42;
CenVojak16 = 17;
_root._x = (-_xmouse) / 6;
vtaky1._x = _xmouse / 11;
vtaky2._x = (_xmouse / 11) + 450;
kopce._x = (_xmouse / 9) + 350;
nebo._x = (((-_xmouse) / 7) * -1) + 320;
panel._x = ((_xmouse / 4) * -1) + 130;
fade._x = ((-_xmouse) / 7) * -1;
i = 1;
while (i <= maxpocet) {
_root.panel[("vojak" + i) + "button"]._visible = false;
_root.panel[("vojak" + i) + "b"]._visible = false;
_root.panel[("vojak" + i) + "b"]._y = -500;
i++;
}
panel.sendchainb._visible = false;
panel.sendchainbutton._visible = false;
panel.sendchainb._y = -500;
panel.chainb._visible = false;
panel.chainbutton._visible = false;
panel.chainb._y = -500;
panel.tunnelerb._visible = false;
panel.tunnelerbutton._visible = false;
panel.tunnelerb._y = -500;
onEnterFrame = function () {
dostupnost();
strety();
if (pauza == false) {
padanie();
pocitac();
pohyb();
}
strelba();
loading();
tunnelerovanie();
tazenie();
cenovkovanie();
cheats();
zivotzakladnanep();
if (kurzor._currentframe == 2) {
down++;
}
if (kurzor._currentframe == 1) {
down = 0;
}
if (n >= maxpocet) {
n = 1;
}
if (m >= maxpocet) {
m = 1;
}
if (z >= maxpocet) {
z = 1;
}
kurzor._x = _xmouse;
kurzor._y = _ymouse;
cenovka._x = _xmouse;
cenovka._y = _ymouse;
};
onMouseMove = function () {
if (_root.currentframe != 5) {
_root._x = (-_xmouse) / 4;
vtaky1._x = _xmouse / 11;
vtaky2._x = (_xmouse / 11) + 450;
kopce._x = (_xmouse / 7) + 350;
nebo._x = (((-_xmouse) / 5) * -1) + 320;
fade._x = ((-_xmouse) / 5) * -1;
panel._x = ((_xmouse / 4) * -1) + 130;
}
};
panel.vojak1b.onRelease = function () {
if ((zakladna.zivot > CenVojak1) and (panel._alpha == 100)) {
timer.gotoAndPlay(2);
zakladna.zivot = zakladna.zivot - CenVojak1;
n++;
attachMovie("vojak1", "vojak" + n, 1000 + n);
_root["vojak" + n]._x = zakladna._x;
_root["vojak" + n]._y = Ygen;
if (panel.sendchainbutton._currentframe == 4) {
_root["vojak" + n]._y = YgenChain;
}
panel.sendchainbutton.gotoAndPlay(1);
_root["vojakziv" + n] = ZivVojak1;
_root["vojakzivpre" + n] = ZivVojak1;
_root["vojak" + n].zivot = ZivVojak1;
_root["vojakryc" + n] = RycVojak1;
}
};
panel.vojak2b.onRelease = function () {
if ((zakladna.zivot > CenVojak2) and (panel._alpha == 100)) {
timer.gotoAndPlay(2);
zakladna.zivot = zakladna.zivot - CenVojak2;
n++;
attachMovie("vojak2", "vojak" + n, 1000 + n);
_root["vojak" + n]._x = zakladna._x;
_root["vojak" + n]._y = Ygen;
if (panel.sendchainbutton._currentframe == 4) {
_root["vojak" + n]._y = YgenChain;
}
panel.sendchainbutton.gotoAndPlay(1);
_root["vojakziv" + n] = ZivVojak2;
_root["vojakzivpre" + n] = ZivVojak2;
_root["vojak" + n].zivot = ZivVojak2;
_root["vojakryc" + n] = RycVojak2;
}
};
panel.vojak3b.onRelease = function () {
if ((zakladna.zivot > CenVojak3) and (panel._alpha == 100)) {
timer.gotoAndPlay(2);
zakladna.zivot = zakladna.zivot - CenVojak3;
n++;
attachMovie("vojak3", "vojak" + n, 1000 + n);
_root["vojak" + n]._x = zakladna._x;
_root["vojak" + n]._y = Ygen;
if (panel.sendchainbutton._currentframe == 4) {
_root["vojak" + n]._y = YgenChain;
}
panel.sendchainbutton.gotoAndPlay(1);
_root["vojakziv" + n] = ZivVojak3;
_root["vojakzivpre" + n] = ZivVojak3;
_root["vojak" + n].zivot = ZivVojak3;
_root["vojakryc" + n] = RycVojak3;
}
};
panel.vojak4b.onRelease = function () {
if ((zakladna.zivot > CenVojak4) and (panel._alpha == 100)) {
timer.gotoAndPlay(2);
zakladna.zivot = zakladna.zivot - CenVojak4;
n++;
attachMovie("vojak4", "vojak" + n, 1000 + n);
_root["vojak" + n]._x = zakladna._x;
_root["vojak" + n]._y = Ygen;
if (panel.sendchainbutton._currentframe == 4) {
_root["vojak" + n]._y = YgenChain;
}
panel.sendchainbutton.gotoAndPlay(1);
_root["vojakziv" + n] = ZivVojak4;
_root["vojakzivpre" + n] = ZivVojak4;
_root["vojak" + n].zivot = ZivVojak4;
_root["vojakryc" + n] = RycVojak4;
}
};
panel.vojak10b.onRelease = function () {
if ((zakladna.zivot > CenVojak10) and (panel._alpha == 100)) {
timer.gotoAndPlay(2);
zakladna.zivot = zakladna.zivot - CenVojak10;
n++;
attachMovie("vojak10", "vojak" + n, 1000 + n);
_root["vojak" + n]._x = zakladna._x;
_root["vojak" + n]._y = Ygen;
if (panel.sendchainbutton._currentframe == 4) {
_root["vojak" + n]._y = YgenChain;
}
panel.sendchainbutton.gotoAndPlay(1);
_root["vojakziv" + n] = ZivVojak10;
_root["vojakzivpre" + n] = ZivVojak10;
_root["vojak" + n].zivot = ZivVojak10;
_root["vojakryc" + n] = RycVojak10;
}
};
panel.vojak11b.onRelease = function () {
if ((zakladna.zivot > CenVojak11) and (panel._alpha == 100)) {
timer.gotoAndPlay(2);
zakladna.zivot = zakladna.zivot - CenVojak11;
n++;
attachMovie("vojak11", "vojak" + n, 1000 + n);
_root["vojak" + n]._x = zakladna._x;
_root["vojak" + n]._y = Ygen;
if (panel.sendchainbutton._currentframe == 4) {
_root["vojak" + n]._y = YgenChain;
}
panel.sendchainbutton.gotoAndPlay(1);
_root["vojakziv" + n] = ZivVojak11;
_root["vojakzivpre" + n] = ZivVojak11;
_root["vojak" + n].zivot = ZivVojak11;
_root["vojakryc" + n] = RycVojak11;
}
};
panel.vojak12b.onRelease = function () {
if ((zakladna.zivot > CenVojak12) and (panel._alpha == 100)) {
timer.gotoAndPlay(2);
zakladna.zivot = zakladna.zivot - CenVojak12;
n++;
attachMovie("vojak12", "vojak" + n, 1000 + n);
_root["vojak" + n]._x = zakladna._x;
_root["vojak" + n]._y = Ygen;
if (panel.sendchainbutton._currentframe == 4) {
_root["vojak" + n]._y = YgenChain;
}
panel.sendchainbutton.gotoAndPlay(1);
_root["vojakziv" + n] = ZivVojak12;
_root["vojakzivpre" + n] = ZivVojak12;
_root["vojak" + n].zivot = ZivVojak12;
_root["vojakryc" + n] = RycVojak12;
}
};
panel.vojak13b.onRelease = function () {
if ((zakladna.zivot > CenVojak13) and (panel._alpha == 100)) {
timer.gotoAndPlay(2);
zakladna.zivot = zakladna.zivot - CenVojak13;
n++;
attachMovie("vojak13", "vojak" + n, 1000 + n);
_root["vojak" + n]._x = zakladna._x;
_root["vojak" + n]._y = Ygen;
if (panel.sendchainbutton._currentframe == 4) {
_root["vojak" + n]._y = YgenChain;
}
panel.sendchainbutton.gotoAndPlay(1);
_root["vojakziv" + n] = ZivVojak13;
_root["vojakzivpre" + n] = ZivVojak13;
_root["vojak" + n].zivot = ZivVojak13;
_root["vojakryc" + n] = RycVojak13;
}
};
panel.vojak14b.onRelease = function () {
if ((zakladna.zivot > CenVojak14) and (panel._alpha == 100)) {
timer.gotoAndPlay(2);
zakladna.zivot = zakladna.zivot - CenVojak14;
n++;
attachMovie("vojak14", "vojak" + n, 1000 + n);
_root["vojak" + n]._x = zakladna._x;
_root["vojak" + n]._y = Ygen;
if (panel.sendchainbutton._currentframe == 4) {
_root["vojak" + n]._y = YgenChain;
}
panel.sendchainbutton.gotoAndPlay(1);
_root["vojakziv" + n] = ZivVojak14;
_root["vojakzivpre" + n] = ZivVojak14;
_root["vojak" + n].zivot = ZivVojak14;
_root["vojakryc" + n] = RycVojak14;
}
};
panel.vojak15b.onRelease = function () {
if ((zakladna.zivot > CenVojak15) and (panel._alpha == 100)) {
timer.gotoAndPlay(2);
zakladna.zivot = zakladna.zivot - CenVojak15;
n++;
attachMovie("vojak15", "vojak" + n, 1000 + n);
_root["vojak" + n]._x = zakladna._x;
_root["vojak" + n]._y = Ygen;
if (panel.sendchainbutton._currentframe == 4) {
_root["vojak" + n]._y = YgenChain;
}
panel.sendchainbutton.gotoAndPlay(1);
_root["vojakziv" + n] = ZivVojak15;
_root["vojakzivpre" + n] = ZivVojak15;
_root["vojak" + n].zivot = ZivVojak15;
_root["vojakryc" + n] = RycVojak15;
}
};
panel.vojak16b.onRelease = function () {
if ((zakladna.zivot > CenVojak16) and (panel._alpha == 100)) {
timer.gotoAndPlay(2);
zakladna.zivot = zakladna.zivot - CenVojak16;
n++;
attachMovie("vojak16", "vojak" + n, 1000 + n);
_root["vojak" + n]._x = zakladna._x;
_root["vojak" + n]._y = Ygen;
if (panel.sendchainbutton._currentframe == 4) {
_root["vojak" + n]._y = YgenChain;
}
panel.sendchainbutton.gotoAndPlay(1);
_root["vojakziv" + n] = ZivVojak16;
_root["vojakzivpre" + n] = ZivVojak16;
_root["vojak" + n].zivot = ZivVojak16;
_root["vojakryc" + n] = RycVojak16;
}
};
panel.vojak5b.onRelease = function () {
if (((zakladna.zivot > CenVojak5) and (panel._alpha == 100)) and (panel.vojak5button._alpha == 100)) {
timer.gotoAndPlay(2);
zakladna.zivot = zakladna.zivot - CenVojak5;
n++;
t = 1;
while (t <= maxpocet) {
if ((_root["vojakbar" + t] == XBar) and (_root["vojak" + t]._y > 50)) {
attachMovie("bum", "bumdtt" + t, 2950 + n);
_root["bumdtt" + t]._x = _root["vojak" + t]._x;
_root["bumdtt" + t]._y = _root["vojak" + t]._y;
_root["vojakziv" + t] = 0;
removeMovieClip(_root["vojak" + t]);
}
t++;
}
attachMovie("vojak5", "vojak" + n, 1000 + n);
_root["vojak" + n]._x = zakladna._x;
_root["vojak" + n]._y = Ygen;
_root["vojakziv" + n] = ZivVojak5;
_root["vojak" + n].zivot = ZivVojak5;
_root["vojakryc" + n] = RycVojak5;
_root["vojakbar" + n] = XBar;
jebariera = m;
}
};
panel.vojak6b.onRelease = function () {
if (((zakladna.zivot > CenVojak6) and (panel._alpha == 100)) and (panel.vojak6button._alpha == 100)) {
timer.gotoAndPlay(2);
zakladna.zivot = zakladna.zivot - CenVojak6;
n++;
t = 1;
while (t <= maxpocet) {
if ((_root["vojakbar" + t] == XBar) and (_root["vojak" + t]._y > 50)) {
attachMovie("bum", "bumdtt" + t, 2950 + n);
_root["bumdtt" + t]._x = _root["vojak" + t]._x;
_root["bumdtt" + t]._y = _root["vojak" + t]._y;
_root["vojakziv" + t] = 0;
removeMovieClip(_root["vojak" + t]);
}
t++;
}
attachMovie("vojak6", "vojak" + n, 1000 + n);
_root["vojak" + n]._x = zakladna._x;
_root["vojak" + n]._y = Ygen;
_root["vojakziv" + n] = ZivVojak6;
_root["vojak" + n].zivot = ZivVojak6;
_root["vojakryc" + n] = RycVojak6;
_root["vojakbar" + n] = XBar;
jebariera = m;
}
};
panel.vojak7b.onRelease = function () {
if (((zakladna.zivot > CenVojak7) and (panel._alpha == 100)) and (panel.vojak7button._alpha == 100)) {
timer.gotoAndPlay(2);
zakladna.zivot = zakladna.zivot - CenVojak7;
n++;
t = 1;
while (t <= maxpocet) {
if ((_root["vojakbar" + t] == XBar) and (_root["vojak" + t]._y > 50)) {
attachMovie("bum", "bumdtt" + t, 2950 + n);
_root["bumdtt" + t]._x = _root["vojak" + t]._x;
_root["bumdtt" + t]._y = _root["vojak" + t]._y;
_root["vojakziv" + t] = 0;
removeMovieClip(_root["vojak" + t]);
}
t++;
}
attachMovie("vojak7", "vojak" + n, 1000 + n);
_root["vojak" + n]._x = zakladna._x;
_root["vojak" + n]._y = Ygen;
_root["vojakziv" + n] = ZivVojak7;
_root["vojak" + n].zivot = ZivVojak7;
_root["vojakryc" + n] = RycVojak7;
_root["vojakbar" + n] = XBar;
jebariera = m;
}
};
panel.vojak8b.onRelease = function () {
if (((zakladna.zivot > CenVojak8) and (panel._alpha == 100)) and (panel.vojak8button._alpha == 100)) {
timer.gotoAndPlay(2);
zakladna.zivot = zakladna.zivot - CenVojak8;
n++;
t = 1;
while (t <= maxpocet) {
if ((_root["vojakbar" + t] == XBar) and (_root["vojak" + t]._y > 50)) {
attachMovie("bum", "bumdtt" + t, 2790 + n);
_root["bumdtt" + t]._x = _root["vojak" + t]._x;
_root["bumdtt" + t]._y = _root["vojak" + t]._y;
_root["vojakziv" + t] = 0;
removeMovieClip(_root["vojak" + t]);
}
t++;
}
attachMovie("vojak8", "vojak" + n, 1000 + n);
_root["vojak" + n]._x = zakladna._x;
_root["vojak" + n]._y = Ygen;
_root["vojakziv" + n] = ZivVojak8;
_root["vojak" + n].zivot = ZivVojak8;
_root["vojakryc" + n] = RycVojak8;
_root["vojakbar" + n] = XBar;
jebariera = m;
}
};
panel.vojak9b.onRelease = function () {
if (((zakladna.zivot > CenVojak9) and (panel._alpha == 100)) and (panel.vojak9button._alpha == 100)) {
timer.gotoAndPlay(2);
zakladna.zivot = zakladna.zivot - CenVojak9;
n++;
t = 1;
while (t <= maxpocet) {
if ((_root["vojakbar" + t] == XBar) and (_root["vojak" + t]._y > 50)) {
attachMovie("bum", "bumdtt" + t, 2790 + n);
_root["bumdtt" + t]._x = _root["vojak" + t]._x;
_root["bumdtt" + t]._y = _root["vojak" + t]._y;
_root["vojakziv" + t] = 0;
removeMovieClip(_root["vojak" + t]);
}
t++;
}
attachMovie("vojak9", "vojak" + n, 1000 + n);
_root["vojak" + n]._x = zakladna._x;
_root["vojak" + n]._y = Ygen;
_root["vojakziv" + n] = ZivVojak9;
_root["vojak" + n].zivot = ZivVojak9;
_root["vojakryc" + n] = RycVojak9;
_root["vojakbar" + n] = XBar;
jebariera = m;
}
};
panel.vojak11b.onRelease = function () {
if (((zakladna.zivot > CenVojak11) and (panel._alpha == 100)) and (panel.vojak11button._alpha == 100)) {
timer.gotoAndPlay(2);
zakladna.zivot = zakladna.zivot - CenVojak11;
n++;
t = 1;
while (t <= maxpocet) {
if ((_root["vojakbar" + t] == XBar) and (_root["vojak" + t]._y > 50)) {
attachMovie("bum", "bumdtt" + t, 2790 + n);
_root["bumdtt" + t]._x = _root["vojak" + t]._x;
_root["bumdtt" + t]._y = _root["vojak" + t]._y;
_root["vojakziv" + t] = 0;
removeMovieClip(_root["vojak" + t]);
}
t++;
}
attachMovie("vojak11", "vojak" + n, 1000 + n);
_root["vojak" + n]._x = zakladna._x;
_root["vojak" + n]._y = Ygen;
_root["vojakziv" + n] = ZivVojak11;
_root["vojak" + n].zivot = ZivVojak11;
_root["vojakryc" + n] = RycVojak11;
_root["vojakbar" + n] = XBar;
jebariera = m;
}
};
panel.tunelb.onRelease = function () {
if ((((zakladna.zivot > CenTunel) and (panel._alpha == 100)) and (panel.tunelbutton._alpha == 100)) and (tunel._currentframe == 1)) {
timer.gotoAndPlay(2);
tunel.gotoAndPlay(2);
zakladna.zivot = zakladna.zivot - CenTunel;
panel.tunelbutton._alpha = 30;
}
};
panel.tunnelerb.onRelease = function () {
if ((((zakladna.zivot > CenTunneler) and (tunel._currentframe > 1033)) and (tunneler._currentframe == 1)) and (panel._alpha == 100)) {
timer.gotoAndPlay(2);
tunneler._alpha = 100;
zakladna.zivot = zakladna.zivot - CenTunneler;
tunneler.gotoAndPlay(2);
}
};
panel.chainconstructionb.onRelease = function () {
if ((((zakladna.zivot > CenChainConstruction) and (panel._alpha == 100)) and (panel.chainconstructionbutton._alpha == 100)) and (chainconstruction._currentframe == 1)) {
timer.gotoAndPlay(2);
chainconstruction.gotoAndPlay(2);
zakladna.zivot = zakladna.zivot - CenChainConstruction;
panel.chainconstructionbutton._alpha = 30;
}
};
panel.chainb.onRelease = function () {
if (((((chainconstruction._currentframe == 75) and (zakladna.zivot > CenChain)) and (panel._alpha == 100)) and (panel.chainbutton._alpha == 100)) and (chain._currentframe == 1)) {
timer.gotoAndPlay(2);
chain.gotoAndPlay(2);
zakladna.zivot = zakladna.zivot - CenChain;
}
};
panel.sendchainb.onRelease = function () {
if ((chainconstruction._currentframe == 75) and (panel._alpha == 100)) {
panel.sendchainbutton.nextFrame();
panel.sendchainbutton.play();
}
};
panel.newunitb.onRelease = function () {
if (((zakladna.zivot > NewUnitCen) and (panel._alpha == 100)) and (panel.newunitbutton._alpha == 100)) {
panel.newunitbutton.gotoAndPlay(2);
zakladna.zivot = zakladna.zivot - NewUnitCen;
}
};
panel.newbarrierb.onRelease = function () {
if (((zakladna.zivot > NewBarrierCen) and (panel._alpha == 100)) and (panel.newbarrierbutton._alpha == 100)) {
panel.newbarrierbutton.gotoAndPlay(2);
zakladna.zivot = zakladna.zivot - NewBarrierCen;
}
};
onMouseDown = function () {
kurzor.gotoAndPlay(2);
};
onMouseUp = function () {
kurzor.gotoAndPlay(1);
};
Symbol 102 MovieClip [bum] Frame 52
stop();
Symbol 139 MovieClip [vynos] Frame 45
stop();
Symbol 174 MovieClip [vojak11] Frame 75
gotoAndPlay (1);
Symbol 174 MovieClip [vojak11] Frame 105
stop();
Symbol 180 MovieClip [vojak9] Frame 75
gotoAndPlay (1);
Symbol 180 MovieClip [vojak9] Frame 169
stop();
Symbol 187 MovieClip [vojak8] Frame 75
gotoAndPlay (1);
Symbol 187 MovieClip [vojak8] Frame 128
stop();
Symbol 190 MovieClip [vojak7] Frame 75
gotoAndPlay (1);
Symbol 190 MovieClip [vojak7] Frame 79
stop();
Symbol 193 MovieClip [vojak6] Frame 75
gotoAndPlay (1);
Symbol 193 MovieClip [vojak6] Frame 79
stop();
Symbol 196 MovieClip [vojak5] Frame 75
gotoAndPlay (1);
Symbol 196 MovieClip [vojak5] Frame 79
stop();
Symbol 206 Button
on (release) {
getURL ("http://www.fastgames.com", "_blank");
}
Symbol 208 Button
on (release) {
_root.gotoAndPlay(4);
}
Symbol 210 Button
on (release) {
_root.pauza = true;
_root.pauzak._y = 0;
_root.strelba1.stop();
_root.trajektoria.stop();
_root.chain.stop();
_root.chainconstruction.stop();
_root.sendchain.stop();
_root.tunel.stop();
_root.tunneler.stop();
_root.timer.stop();
_root.veza.stop();
_root.zeza.stop();
_root.drvic.stop();
_root.podzbar.stop();
}
Symbol 230 MovieClip Frame 1
function func_ACTION_1(p_Choice) {
if (p_Choice < 15) {
play();
} else {
gotoAndPlay ("frm_FLUFF");
}
}
function func_ACTION_2(p_Choice) {
if (p_Choice < 50) {
gotoAndStop (1);
} else {
this._parent.gotoAndPlay("frm_BIRD_FLY");
}
}
function func_RANDOMIZE(p_MaxNum, p_FuncNum) {
v_BirdChoice = random(p_MaxNum);
v_FunctionCall = "func_ACTION_" + p_FuncNum;
eval (v_FunctionCall)(v_BirdChoice);
}
stop();
func_RANDOMIZE(this._parent.v_FluffChance, 1);
Symbol 230 MovieClip Frame 34
stop();
func_RANDOMIZE(this._parent.v_FlyAwayChance, 2);
Symbol 230 MovieClip Frame 52
stop();
func_RANDOMIZE(this._parent.v_FluffChance, 1);
Symbol 237 MovieClip Frame 1
function func_BIRD_TOUCH() {
gotoAndPlay ("frm_BIRD_FLY");
}
stop();
v_FluffChance = 17;
v_FlyAwayChance = 51;
v_FlyBackChance = 55;
BIRD.onRollOver = function () {
func_BIRD_TOUCH();
};
Symbol 237 MovieClip Frame 80
function func_FLY_IN() {
v_BirdChoice = random(v_FlyBackChance);
if (v_BirdChoice > 50) {
clearInterval(v_BirdThinking);
gotoAndPlay ("frm_BIRD_FLY_IN");
}
}
stop();
v_BirdThinking = setInterval(func_FLY_IN, 5000);
Symbol 237 MovieClip Frame 151
stop();
BIRD.gotoAndPlay("frm_FLUFF_NOW");
BIRD.onRollOver = function () {
func_BIRD_TOUCH();
};
Symbol 242 MovieClip Frame 12
_parent.play();
stop();
Symbol 246 MovieClip Frame 10
stop();
Symbol 248 Button
on (release) {
getURL ("http://www.fastgames.com/", "_blank");
}
Symbol 249 MovieClip Frame 2
stop();
Symbol 249 MovieClip Frame 7
stop();
Symbol 258 MovieClip Frame 15
stop();
Symbol 264 Button
on (release) {
_root.gotoAndStop(3);
}
Symbol 268 MovieClip Frame 1
stop();
Symbol 270 MovieClip Frame 165
gotoAndPlay (205);
Symbol 270 MovieClip Frame 356
gotoAndPlay (360);
Symbol 270 MovieClip Frame 409
gotoAndPlay (403);
Symbol 277 MovieClip Frame 43
stop();
Symbol 279 MovieClip Frame 82
stop();
Symbol 281 Button
on (release) {
getURL ("http://www.fastgames.com", "_blank");
}
Symbol 286 MovieClip Frame 389
_root.fade.gotoAndPlay(1);
_root.gotoAndPlay(4);
Symbol 287 MovieClip Frame 51
stop();
Symbol 300 Button
on (release) {
_root.gotoAndPlay(5);
}
Symbol 313 MovieClip Frame 1
stop();
Symbol 313 MovieClip Frame 75
stop();
Symbol 321 MovieClip Frame 1
stop();
Symbol 321 MovieClip Frame 2
stop();
Symbol 328 MovieClip Frame 1
stop();
Symbol 332 MovieClip Frame 1
stop();
Symbol 338 MovieClip Frame 1
stop();
Symbol 338 MovieClip Frame 400
gotoAndPlay (2);
Symbol 347 MovieClip Frame 1
stop();
Symbol 347 MovieClip Frame 1034
stop();
Symbol 351 MovieClip Frame 1
stop();
Symbol 358 MovieClip Frame 1
stop();
Symbol 358 MovieClip Frame 400
gotoAndPlay (2);
Symbol 361 MovieClip Frame 1
stop();
Symbol 365 MovieClip Frame 1
stop();
Symbol 368 MovieClip Frame 1
stop();
Symbol 368 MovieClip Frame 100
stop();
Symbol 385 MovieClip Frame 31
gotoAndPlay (2);
Symbol 388 MovieClip Frame 2
stop();
Symbol 388 MovieClip Frame 4
stop();
Symbol 391 MovieClip Frame 1
stop();
Symbol 391 MovieClip Frame 132
_root.newbarrier++;
_root.NewBarrierCen = Math.round(_root.NewBarrierCen * 1.3);
Symbol 393 MovieClip Frame 1
stop();
Symbol 393 MovieClip Frame 132
_root.newunit++;
_root.NewUnitCen = Math.round(_root.NewUnitCen * 1.4);
Symbol 395 MovieClip Frame 1
stop();
Symbol 412 MovieClip Frame 1
stop();
Symbol 412 MovieClip Frame 2
stop();
Symbol 412 MovieClip Frame 3
stop();
Symbol 412 MovieClip Frame 4
stop();
Symbol 412 MovieClip Frame 5
stop();
Symbol 412 MovieClip Frame 6
stop();
Symbol 416 MovieClip Frame 1
stop();
Symbol 416 MovieClip Frame 122
stop();
Symbol 419 MovieClip Frame 1
stop();
Symbol 426 MovieClip Frame 468
stop();
Symbol 429 Button
on (release) {
_root.pauzak._y = -700;
_root.pauza = false;
if (_root.strelba1._currentframe > 1) {
_root.strelba1.play();
}
if (_root.trajektoria._currentframe > 1) {
_root.trajektoria.play();
}
if (_root.chain._currentframe > 1) {
_root.chain.play();
}
if ((_root.chainconstruction._currentframe > 1) and (_root.chainconstruction._currentframe < _root.chainconstruction._totalframes)) {
_root.chainconstruction.play();
}
if (_root.sendchain._currentframe > 1) {
_root.sendchain.play();
}
if ((_root.tunel._currentframe > 1) and (_root.tunel._currentframe < _root.tunel._totalframes)) {
_root.tunel.play();
}
if (_root.tunneler._currentframe > 1) {
_root.tunneler.play();
}
if (_root.timer._currentframe > 1) {
_root.timer.play();
}
if (_root.veza._currentframe > 1) {
_root.veza.play();
}
if (_root.zeza._currentframe > 1) {
_root.zeza.play();
}
if (_root.drvic._currentframe > 1) {
_root.drvic.play();
}
if (_root.podzbar._currentframe > 1) {
_root.podzbar.stop();
}
}
Symbol 431 MovieClip Frame 51
stop();
Symbol 432 MovieClip Frame 1
stop();
Symbol 432 MovieClip Frame 127
stop();