Frame 1
stop();
_root.onEnterFrame = function () {
total_bytes = _root.getBytesTotal();
loaded_bytes = _root.getBytesLoaded();
remaining_bytes = total_bytes - loaded_bytes;
percent_done = int((loaded_bytes / total_bytes) * 100);
loaderDisplay1 = ("Percent Loaded: " + percent_done) + "%";
loaderDisplay2 = (("KB Loaded: " + Math.round(loaded_bytes / 1000)) + "/") + Math.round(total_bytes / 1000);
tellTarget (_root.loaderbar) {
_xscale = (_xscale + ((-(_xscale - percent_done)) / 4));
};
if (percent_done >= 99) {
playButton._visible = true;
} else {
playButton._visible = false;
}
};
Instance of Symbol 21 MovieClip in Frame 1
on (release) {
getURL ("http://www.armorgames.com");
}
Frame 31
remaining_bytes = 0;
Instance of Symbol 80 MovieClip in Frame 198
on (release) {
getURL ("http://www.gamesofgondor.com");
}
Frame 232
stop();
Instance of Symbol 80 MovieClip in Frame 232
on (release) {
getURL ("http://www.ArmorGames.com");
}
Frame 233
play();
Instance of Symbol 80 MovieClip in Frame 247
on (release) {
getURL ("http://www.gamesofgondor.com");
}
Frame 248
Stage.showMenu = false;
_root.vapen = 1;
_quality = "LOW";
_root.as = 16;
_root.damage = 1;
_root.teller = 0;
_root.sekunder = 0;
_root.minutter = 1;
_root.makshealth = 9;
_root.bd = 1400;
_root.kuler = 200;
_root.kuler2 = 1000;
_root.skrik = 1;
_root.basehealth = 10;
_root.dual = 0;
_root.begynn = 0;
_root.score = 100;
_root.sigjen = 40;
_root.sorry = 0;
_root.buy = 0;
_root.run = 1;
_root.weapon = 1;
_root.dmgcost = 200;
_root.mg = 0;
_root.laser = 0;
_root.mgspeed = 0;
_root.batteri == 100;
_root.laseready = 1;
_root.totalenemies = 5 + _root.minutter;
_root.valides = 0;
_root.vert60 = 1;
_root.artyteller = 1;
_root.arty = 1;
Frame 278
if (_root.run == 1) {
tellTarget (_root.bakgrunn.sky1) {
_x = (_x + 1);
if (_x >= 1500) {
_x = -400;
}
};
tellTarget (_root.bakgrunn.sky2) {
_x = (_x + 2);
if (_x >= 1500) {
_x = -400;
}
};
tellTarget (_root.bakgrunn.sky3) {
_x = (_x + 3);
if (_x >= 1500) {
_x = -500;
}
};
}
if (_root.sorry == 1) {
gotoAndPlay (280);
}
if (_root.begynn == 0) {
_root.begynn = 1;
i = 0;
while (i < _root.as) {
test = "_root.bakgrunn.fiende" + i;
tellTarget (test) {
_root.lollipop1x = _xscale;
_root.lollipop1y = _yscale;
_x = (Math.round(Math.random() * 500) - 700);
_y = (Math.round(Math.random() * 150) + 450);
health = _root.minutter;
gotoAndPlay (1);
dead = 0;
fart = Math.round(Math.random() * 5) + 2;
};
i++;
}
i = 0;
while (i < 4) {
roflolal = "_root.bakgrunn.tanks" + i;
tellTarget (roflolal) {
_root.lollipop2x = _xscale;
_root.lollipop2y = _yscale;
_x = (Math.round(Math.random() * 500) - 700);
_y = (Math.round(Math.random() * 150) + 450);
health = 5 + (_root.minutter * 5);
gotoAndPlay (1);
dead = 0;
fart = Math.round(Math.random() * 2) + 1;
};
i++;
}
i = 0;
while (i < 4) {
jada = "_root.bakgrunn.srobo" + i;
tellTarget (jada) {
_root.lollipop3x = _xscale;
_root.lollipop3y = _yscale;
_x = (Math.round(Math.random() * 500) - 700);
_y = (Math.round(Math.random() * 150) + 450);
health = 1 + (_root.minutter * 2);
health2 = health;
starth = 5 + (_root.minutter * 5);
gotoAndPlay (1);
dead = 0;
fart = Math.round(Math.random() * 2) + 1;
};
i++;
}
i = 0;
while (i < 10) {
jara = "_root.bakgrunn.heli" + i;
tellTarget (jara) {
_root.lollipop4x = _xscale;
_root.lollipop4y = _yscale;
_x = (Math.round(Math.random() * 500) - 700);
_y = (Math.round(Math.random() * 150) + 450);
health = 1;
health2 = health;
gotoAndPlay (1);
dead = 0;
fart = Math.round(Math.random() * 10) + 10;
};
i++;
}
}
_root.antallsoldater = 5 + _root.minutter;
if (_root.antallsoldater >= 15) {
_root.antallsoldater = 15;
}
if (_root.run == 1) {
teller = teller + 1;
if (teller == 24) {
teller = 1;
_root.sekunder = _root.sekunder + 1;
}
if (_root.sekunder == 61) {
if (_root.basehealth <= _root.makshealth) {
_root.basehealth = _root.basehealth + 1;
}
_root.sekunder = 0;
minutter = minutter + 1;
}
if (_root.sekunder == 60) {
if (_root.minutter == 1) {
_root.totalenemies = 7;
}
if (_root.minutter == 2) {
_root.totalenemies = 8;
}
if (_root.minutter == 3) {
_root.totalenemies = 9;
}
if (_root.minutter == 4) {
_root.totalenemies = 11;
}
if (_root.minutter == 5) {
_root.totalenemies = 13;
}
if (_root.minutter == 6) {
_root.totalenemies = 15;
}
if (_root.minutter == 7) {
_root.totalenemies = 17;
}
if (_root.minutter == 8) {
_root.totalenemies = 18;
}
if (_root.minutter == 9) {
_root.totalenemies = 20;
}
if (_root.minutter == 10) {
_root.totalenemies = 21;
}
if (_root.minutter == 11) {
_root.totalenemies = 22;
}
if (_root.minutter == 12) {
_root.totalenemies = 23;
}
if (_root.minutter == 13) {
_root.totalenemies = 23;
}
if (_root.minutter == 14) {
_root.totalenemies = 23;
}
if (_root.minutter == 15) {
_root.totalenemies = 24;
}
if (_root.minutter == 16) {
_root.totalenemies = 26;
}
if (_root.minutter == 17) {
_root.totalenemies = 27;
}
if (_root.minutter == 18) {
_root.totalenemies = 28;
}
if (_root.minutter == 19) {
_root.totalenemies = 29;
}
if (_root.minutter == 20) {
_root.totalenemies = 30;
}
if (_root.minutter == 21) {
_root.totalenemies = 31;
}
if (_root.minutter == 22) {
_root.totalenemies = 32;
}
if (_root.minutter == 23) {
_root.totalenemies = 33;
}
if (_root.minutter == 24) {
_root.totalenemies = 34;
}
if (_root.minutter >= 25) {
_root.totalenemies = 34;
}
_root.kuler = _root.kuler + 4;
i = 0;
while (i < _root.antallsoldater) {
test = "_root.bakgrunn.fiende" + i;
tellTarget (test) {
health = _root.minutter;
if (dead == 1) {
_xscale = _root.lollipop1x;
_yscale = _root.lollipop1y;
_x = (Math.round(Math.random() * 500) - 700);
_y = (Math.round(Math.random() * 150) + 450);
health = _root.minutter;
gotoAndPlay (1);
dead = 0;
fart = Math.round(Math.random() * 5) + 2;
}
};
i++;
}
i = 0;
while (i < 4) {
roflolal = "_root.bakgrunn.tanks" + i;
tellTarget (roflolal) {
health = 5 + (_root.minutter * 5);
if (dead == 1) {
_xscale = _root.lollipop2x;
_yscale = _root.lollipop2y;
_x = (Math.round(Math.random() * 500) - 700);
_y = (Math.round(Math.random() * 150) + 450);
health = 5 + (_root.minutter * 5);
gotoAndPlay (1);
dead = 0;
fart = Math.round(Math.random() * 2) + 1;
}
};
i++;
}
i = 0;
while (i < 4) {
jada = "_root.bakgrunn.srobo" + i;
tellTarget (jada) {
health = 1 + (_root.minutter * 2);
if (dead == 1) {
_xscale = _root.lollipop3x;
_yscale = _root.lollipop3y;
_x = (Math.round(Math.random() * 500) - 700);
_y = (Math.round(Math.random() * 150) + 450);
health = 1 + (_root.minutter * 2);
health2 = health;
starth = 5 + (_root.minutter * 5);
gotoAndPlay (1);
dead = 0;
fart = Math.round(Math.random() * 2) + 1;
}
};
i++;
}
i = 0;
while (i < 10) {
jasa = "_root.bakgrunn.heli" + i;
tellTarget (jasa) {
if (dead == 1) {
_xscale = _root.lollipop4x;
_yscale = _root.lollipop4y;
_x = (Math.round(Math.random() * 500) - 700);
_y = (Math.round(Math.random() * 150) + 450);
health = 1;
health2 = health;
gotoAndPlay (1);
dead = 0;
fart = Math.round(Math.random() * 10) + 10;
}
};
i++;
}
}
_root.sigjen = 60 - sekunder;
_root.bhcost = minutter * 25;
if (_root.weapon != 1) {
tellTarget (_root.gun1) {
gotoAndPlay (25);
};
tellTarget (_root.gun2) {
gotoAndPlay (25);
};
}
if (_root.weapon != 2) {
tellTarget (_root.gatling) {
gotoAndPlay (25);
};
}
}
if (_root.totalenemies <= 0) {
_root.sekunder = 57;
_root.totalenemies = 1;
}
if (_root.run == 1) {
if (ok != 0) {
i = 0;
while (i < _root.antallsoldater) {
test = "_root.bakgrunn.fiende" + i;
tellTarget (test) {
if (dead != 1) {
_x = (_x + fart);
if (_x >= _root.bd) {
dead = 1;
gotoAndPlay (28);
_root.basehealth = _root.basehealth - 1;
tellTarget (_root.rodt) {
gotoAndPlay (2);
};
_root.totalenemies = _root.totalenemies - 1;
}
}
};
i++;
}
if (_root.minutter > 14) {
cola = _root.minutter - 14;
if (cola > 10) {
cola = 10;
}
i = 0;
while (i < cola) {
test = "_root.bakgrunn.heli" + i;
tellTarget (test) {
if (dead != 1) {
_x = (_x + fart);
if (_x >= _root.bd) {
dead = 1;
gotoAndPlay (71);
_root.basehealth = _root.basehealth - 1;
tellTarget (_root.rodt) {
gotoAndPlay (2);
};
_root.totalenemies = _root.totalenemies - 1;
}
}
};
i++;
}
}
if (_root.minutter > 9) {
binladen = _root.minutter - 9;
if (binladen > 4) {
binladen = 4;
}
i = 0;
while (i < binladen) {
hallamuhalla = "_root.bakgrunn.srobo" + i;
tellTarget (hallamuhalla) {
if (dead != 1) {
_x = (_x + 5);
if (_x >= _root.bd) {
dead = 1;
gotoAndPlay (42);
_root.basehealth = _root.basehealth - 1;
tellTarget (_root.rodt) {
gotoAndPlay (2);
};
_root.totalenemies = _root.totalenemies - 1;
}
}
};
i++;
}
}
if (_root.basehealth <= 0) {
_root.basehealth = 0;
_root.sorry = 1;
}
if (sorry == 1) {
tellTarget (_root.bakgrunn.base) {
gotoAndPlay (9);
};
ok = 0;
}
}
if (_root.basehealth >= 10) {
tellTarget (_root.bakgrunn.base) {
gotoAndPlay (1);
};
}
if (_root.basehealth == 9) {
tellTarget (_root.bakgrunn.base) {
gotoAndPlay (2);
};
}
if (_root.basehealth == 8) {
tellTarget (_root.bakgrunn.base) {
gotoAndPlay (2);
};
}
if (_root.basehealth == 7) {
tellTarget (_root.bakgrunn.base) {
gotoAndPlay (2);
};
}
if (_root.basehealth == 6) {
tellTarget (_root.bakgrunn.base) {
gotoAndPlay (3);
};
}
if (_root.basehealth == 5) {
tellTarget (_root.bakgrunn.base) {
gotoAndPlay (4);
};
}
if (_root.basehealth == 4) {
tellTarget (_root.bakgrunn.base) {
gotoAndPlay (5);
};
}
if (_root.basehealth == 3) {
tellTarget (_root.bakgrunn.base) {
gotoAndPlay (6);
};
}
if (_root.basehealth == 2) {
tellTarget (_root.bakgrunn.base) {
gotoAndPlay (7);
};
}
if (_root.basehealth == 1) {
tellTarget (_root.bakgrunn.base) {
gotoAndPlay (8);
};
}
if (_root.basehealth == 0) {
tellTarget (_root.bakgrunn.base) {
gotoAndPlay (9);
};
}
if (_root.minutter > 4) {
hussein = _root.minutter - 4;
if (hussein > 4) {
hussein = 4;
}
i = 0;
while (i < hussein) {
yeahright = "_root.bakgrunn.tanks" + i;
tellTarget (yeahright) {
if (dead != 1) {
_x = (_x + 2);
if (_x >= (_root.bd - 100)) {
dead = 1;
gotoAndPlay (16);
_root.basehealth = _root.basehealth - 1;
tellTarget (_root.rodt) {
gotoAndPlay (2);
};
_root.totalenemies = _root.totalenemies - 1;
}
}
};
i++;
}
}
}
if (_root.laser == 0) {
tellTarget (_root.laser1) {
gotoAndPlay (35);
};
tellTarget (_root.laser2) {
gotoAndPlay (35);
};
}
if (_root.laser == 1) {
tellTarget (_root.laser1) {
};
tellTarget (_root.laser2) {
gotoAndPlay (35);
};
}
if (_root.laser == 2) {
tellTarget (_root.laser1) {
};
tellTarget (_root.laser2) {
};
}
Instance of Symbol 110 MovieClip in Frame 278
on (press) {
if (_root.weapon == 1) {
if (_root.run == 1) {
if (_root.kuler >= 1) {
i = 0;
while (i < 10) {
testomfg = "_root.bakgrunn.heli" + i;
tellTarget (testomfg) {
if (hitTest(_root.sikte.treff) == true) {
if (_root.dual == 0) {
health = health - _root.damage;
}
if (_root.dual == 1) {
health = health - (_root.damage * 2);
}
if (dead != 1) {
tellTarget (_root.ttreff) {
gotoAndPlay (2);
_root.score = _root.score + 10;
};
if (health <= 0) {
_root.score = _root.score + 50;
gotoAndPlay (2);
dead = 1;
_root.totalenemies = _root.totalenemies - 1;
}
}
}
};
i++;
}
}
} else if (_root.run == 1) {
tellTarget (_root.gun1) {
gotoAndPlay (11);
};
tellTarget (_root.gun2) {
gotoAndPlay (11);
};
}
}
}
on (press) {
if (_root.weapon == 1) {
if (_root.run == 1) {
if (_root.kuler >= 1) {
i = 0;
while (i < _root.as) {
test = "_root.bakgrunn.fiende" + i;
tellTarget (test) {
if (hitTest(_root.sikte.treff) == true) {
tellTarget (_root.blodes) {
gotoAndPlay (1);
_x = 400;
_y = 200;
};
if (_root.dual == 0) {
health = health - _root.damage;
}
if (_root.dual == 1) {
health = health - (_root.damage * 2);
}
if (dead != 1) {
lal = (health / _root.minutter) * 100;
tellTarget (barensaren) {
_xscale = _parent.lal;
if (_xscale <= 1) {
_xscale = 1;
}
};
tellTarget (_root.skriket) {
gotoAndPlay (20);
_root.score = _root.score + _root.damage;
};
if (health <= 0) {
_root.score = _root.score + (_root.damage * 3);
tellTarget (_root.skriket) {
gotoAndPlay(Math.round(Math.random() * 14) + 1);
};
gotoAndPlay (2);
dead = 1;
_root.totalenemies = _root.totalenemies - 1;
}
}
}
};
i++;
}
}
} else if (_root.run == 1) {
tellTarget (_root.gun1) {
gotoAndPlay (11);
};
tellTarget (_root.gun2) {
gotoAndPlay (11);
};
}
}
}
on (press) {
if (_root.weapon == 1) {
if (_root.run == 1) {
if (_root.kuler >= 1) {
if (_root.vapen == 1) {
_root.vapen = 2;
_root.kuler = _root.kuler - 1;
tellTarget (_root.gun1) {
gotoAndPlay (2);
};
tellTarget (_root.sikte) {
gotoAndPlay (2);
};
if (_root.dual == 1) {
} else {
return(true);
}
}
if (_root.vapen == 2) {
_root.vapen = 1;
_root.kuler = _root.kuler - 1;
tellTarget (_root.gun2) {
gotoAndPlay (2);
};
tellTarget (_root.sikte) {
gotoAndPlay (2);
};
}
} else {
tellTarget (_root.gun1) {
gotoAndPlay (11);
};
tellTarget (_root.gun2) {
gotoAndPlay (11);
};
}
}
}
}
on (keyPress "<Space>") {
if (_root.buy == 0) {
_root.buy = 1;
tellTarget (_root.buyscreen) {
gotoAndPlay (2);
};
return(true);
}
if (_root.buy == 1) {
_root.buy = 0;
tellTarget (_root.buyscreen) {
gotoAndPlay (11);
};
}
}
on (press) {
if (_root.weapon == 1) {
if (_root.run == 1) {
if (_root.kuler >= 1) {
i = 0;
while (i < 4) {
vor = "_root.bakgrunn.tanks" + i;
tellTarget (vor) {
if (hitTest(_root.sikte.treff) == true) {
if (dead != 1) {
lal3 = (health / (5 + (_root.minutter * 5))) * 100;
tellTarget (tankshealth) {
_xscale = _parent.lal3;
if (_xscale <= 1) {
_xscale = 1;
}
};
tellTarget (_root.ttreff) {
gotoAndPlay (2);
};
}
_root.score = _root.score + _root.damage;
if (_root.dual == 0) {
health = health - _root.damage;
}
if (_root.dual == 1) {
health = health - (_root.damage * 2);
}
if (dead != 1) {
if (health < 0) {
_root.score = _root.score + (_root.damage * 3);
gotoAndPlay (2);
dead = 1;
_root.totalenemies = _root.totalenemies - 1;
}
}
}
};
i++;
}
}
}
}
}
on (press) {
if (_root.buy != 1) {
if (_root.weapon == 2) {
if (_root.run == 1) {
if (_root.kuler2 >= 1) {
tellTarget (_root.gatling) {
gotoAndPlay (2);
};
} else {
tellTarget (_root.gatling) {
gotoAndPlay (6);
};
}
}
}
}
}
on (dragOver) {
if (_root.buy != 1) {
if (_root.weapon == 2) {
if (_root.run == 1) {
if (_root.kuler2 >= 1) {
tellTarget (_root.gatling) {
gotoAndPlay (2);
};
} else {
tellTarget (_root.gatling) {
gotoAndPlay (6);
};
}
}
}
}
}
on (release) {
if (_root.buy != 1) {
if (_root.run == 1) {
if (_root.weapon == 2) {
tellTarget (_root.gatling) {
gotoAndPlay (1);
};
}
}
}
}
on (releaseOutside) {
if (_root.buy != 1) {
if (_root.run == 1) {
if (_root.weapon == 2) {
tellTarget (_root.gatling) {
gotoAndPlay (1);
};
}
}
}
}
on (keyPress "1") {
_root.weapon = 1;
tellTarget (_root.gun1) {
gotoAndStop (1);
};
tellTarget (_root.gun2) {
gotoAndStop (1);
};
}
on (keyPress "2") {
if (_root.mg == 1) {
_root.weapon = 2;
tellTarget (_root.gatling) {
gotoAndStop (1);
};
}
}
on (press) {
if (_root.weapon == 1) {
if (_root.run == 1) {
if (_root.kuler >= 1) {
i = 0;
while (i < 4) {
voren = "_root.bakgrunn.srobo" + i;
tellTarget (voren) {
if (hitTest(_root.sikte.treff) == true) {
if (dead != 1) {
lal2 = (health / (1 + (_root.minutter * 2))) * 45;
tellTarget (robohb) {
_xscale = _parent.lal2;
if (_xscale <= 1) {
_xscale = 1;
}
};
tellTarget (_root.ttreff) {
gotoAndPlay (2);
};
}
_root.score = _root.score + _root.damage;
if (_root.dual == 0) {
health = health - _root.damage;
}
if (_root.dual == 1) {
health = health - (_root.damage * 2);
}
if (dead != 1) {
if (health < 0) {
_root.score = _root.score + (_root.damage * 3);
gotoAndPlay (2);
dead = 1;
_root.totalenemies = _root.totalenemies - 1;
}
}
}
};
i++;
}
}
}
}
}
on (keyPress "l") {
if (_root.laseready == 1) {
if (_root.laser == 1) {
tellTarget (_root.laser1) {
gotoAndPlay (2);
};
}
if (_root.laser == 2) {
tellTarget (_root.laser1) {
gotoAndPlay (2);
};
tellTarget (_root.laser2) {
gotoAndPlay (2);
};
}
}
}
Instance of Symbol 330 MovieClip "bakgrunn" in Frame 278
on (press) {
if (_root.weapon == 1) {
if (_root.run == 1) {
if (_root.kuler >= 1) {
i = 0;
while (i < 10) {
testomfg = "_root.bakgrunn.heli" + i;
tellTarget (testomfg) {
if (hitTest(_root.sikte.treff) == true) {
if (_root.dual == 0) {
health = health - _root.damage;
}
if (_root.dual == 1) {
health = health - (_root.damage * 2);
}
if (dead != 1) {
_y = (_y - 4);
_x = (_x - 4);
tellTarget (_root.ttreff) {
gotoAndPlay (2);
_root.score = _root.score + 10;
};
if (health <= 0) {
_root.score = _root.score + 50;
gotoAndPlay (2);
dead = 1;
_root.totalenemies = _root.totalenemies - 1;
}
}
}
};
i++;
}
}
} else if (_root.run == 1) {
tellTarget (_root.gun1) {
gotoAndPlay (11);
};
tellTarget (_root.gun2) {
gotoAndPlay (11);
};
}
}
}
on (press) {
if (_root.weapon == 1) {
if (_root.run == 1) {
if (_root.kuler >= 1) {
i = 0;
while (i < _root.as) {
test = "_root.bakgrunn.fiende" + i;
tellTarget (test) {
if (hitTest(_root.sikte.treff) == true) {
if (_root.dual == 0) {
health = health - _root.damage;
}
if (_root.dual == 1) {
health = health - (_root.damage * 2);
}
if (dead != 1) {
_y = (_y - 4);
_x = (_x - 4);
tellTarget (_root.blodes) {
gotoAndPlay (1);
_x = (Math.round(Math.random() * 20) + 390);
_y = 200;
};
lal = (health / _root.minutter) * 100;
tellTarget (barensaren) {
_xscale = _parent.lal;
if (_xscale <= 1) {
_xscale = 1;
}
};
tellTarget (_root.skriket) {
gotoAndPlay (20);
_root.score = _root.score + _root.damage;
};
if (health <= 0) {
_root.score = _root.score + (_root.damage * 3);
tellTarget (_root.skriket) {
gotoAndPlay(Math.round(Math.random() * 14) + 1);
};
gotoAndPlay (2);
dead = 1;
_root.totalenemies = _root.totalenemies - 1;
}
}
}
};
i++;
}
}
} else if (_root.run == 1) {
tellTarget (_root.gun1) {
gotoAndPlay (11);
};
tellTarget (_root.gun2) {
gotoAndPlay (11);
};
}
}
}
onClipEvent (mouseMove) {
if (_root.buy == 0) {
_x = (_root._xmouse - (_root._xmouse * 2.5));
_y = (_root._ymouse - (_root._ymouse * 2.5));
Mouse.hide();
} else {
Mouse.show();
}
}
on (press) {
if (_root.weapon == 1) {
if (_root.run == 1) {
if (_root.kuler >= 1) {
if (_root.vapen == 1) {
_root.vapen = 2;
_root.kuler = _root.kuler - 1;
tellTarget (_root.gun1) {
gotoAndPlay (2);
};
tellTarget (_root.sikte) {
gotoAndPlay (2);
};
if (_root.dual == 1) {
} else {
return(true);
}
}
if (_root.vapen == 2) {
_root.vapen = 1;
_root.kuler = _root.kuler - 1;
tellTarget (_root.gun2) {
gotoAndPlay (2);
};
tellTarget (_root.sikte) {
gotoAndPlay (2);
};
}
} else {
tellTarget (_root.gun1) {
gotoAndPlay (11);
};
tellTarget (_root.gun2) {
gotoAndPlay (11);
};
}
}
}
}
on (keyPress "<Space>") {
if (_root.buy == 0) {
_root.buy = 1;
tellTarget (_root.buyscreen) {
gotoAndPlay (2);
};
return(true);
}
if (_root.buy == 1) {
_root.buy = 0;
tellTarget (_root.buyscreen) {
gotoAndPlay (11);
};
}
}
on (press) {
if (_root.weapon == 1) {
if (_root.run == 1) {
if (_root.kuler >= 1) {
i = 0;
while (i < 4) {
vor = "_root.bakgrunn.tanks" + i;
tellTarget (vor) {
if (hitTest(_root.sikte.treff) == true) {
if (dead != 1) {
lal3 = (health / (5 + (_root.minutter * 5))) * 100;
tellTarget (tankshealth) {
_xscale = _parent.lal3;
if (_xscale <= 1) {
_xscale = 1;
}
};
tellTarget (_root.ttreff) {
gotoAndPlay (2);
};
}
_root.score = _root.score + _root.damage;
if (_root.dual == 0) {
health = health - _root.damage;
}
if (_root.dual == 1) {
health = health - (_root.damage * 2);
}
if (dead != 1) {
_y = (_y - 2);
_x = (_x - 2);
if (health < 0) {
_root.score = _root.score + (_root.damage * 3);
gotoAndPlay (2);
dead = 1;
_root.totalenemies = _root.totalenemies - 1;
}
}
}
};
i++;
}
}
}
}
}
on (press) {
if (_root.buy != 1) {
if (_root.weapon == 2) {
if (_root.run == 1) {
if (_root.kuler2 >= 1) {
tellTarget (_root.gatling) {
gotoAndPlay (2);
};
} else {
tellTarget (_root.gatling) {
gotoAndPlay (6);
};
}
}
}
}
}
on (dragOver) {
if (_root.buy != 1) {
if (_root.weapon == 2) {
if (_root.run == 1) {
if (_root.kuler2 >= 1) {
tellTarget (_root.gatling) {
gotoAndPlay (2);
};
} else {
tellTarget (_root.gatling) {
gotoAndPlay (6);
};
}
}
}
}
}
on (release) {
if (_root.buy != 1) {
if (_root.run == 1) {
if (_root.weapon == 2) {
tellTarget (_root.gatling) {
gotoAndPlay (1);
};
}
}
}
}
on (releaseOutside) {
if (_root.buy != 1) {
if (_root.run == 1) {
if (_root.weapon == 2) {
tellTarget (_root.gatling) {
gotoAndPlay (1);
};
}
}
}
}
on (keyPress "1") {
_root.weapon = 1;
tellTarget (_root.gun1) {
gotoAndStop (1);
};
tellTarget (_root.gun2) {
gotoAndStop (1);
};
}
on (keyPress "2") {
if (_root.mg == 1) {
_root.weapon = 2;
tellTarget (_root.gatling) {
gotoAndStop (1);
};
}
}
on (press) {
if (_root.weapon == 1) {
if (_root.run == 1) {
if (_root.kuler >= 1) {
i = 0;
while (i < 4) {
voren = "_root.bakgrunn.srobo" + i;
tellTarget (voren) {
if (hitTest(_root.sikte.treff) == true) {
if (dead != 1) {
lal2 = (health / (1 + (_root.minutter * 2))) * 45;
tellTarget (robohb) {
_xscale = _parent.lal2;
if (_xscale <= 1) {
_xscale = 1;
}
};
tellTarget (_root.ttreff) {
gotoAndPlay (2);
};
}
_root.score = _root.score + _root.damage;
if (_root.dual == 0) {
health = health - _root.damage;
}
if (_root.dual == 1) {
health = health - (_root.damage * 2);
}
if (dead != 1) {
_y = (_y - 4);
_x = (_x - 4);
if (health < 0) {
_root.score = _root.score + (_root.damage * 3);
gotoAndPlay (2);
dead = 1;
_root.totalenemies = _root.totalenemies - 1;
}
}
}
};
i++;
}
}
}
}
}
on (keyPress "l") {
if (_root.laseready == 1) {
if (_root.laser == 1) {
tellTarget (_root.laser1) {
gotoAndPlay (2);
};
}
if (_root.laser == 2) {
tellTarget (_root.laser1) {
gotoAndPlay (2);
};
tellTarget (_root.laser2) {
gotoAndPlay (2);
};
}
}
}
Instance of Symbol 394 MovieClip in Frame 278
onClipEvent (mouseMove) {
if (_root.buy != 1) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
Instance of Symbol 464 MovieClip "earlystart" in Frame 278
on (keyPress "<Right>") {
if (_root.totalenemies <= 0) {
_root.totalenemies = 1;
_root.sekunder = 57;
}
}
Frame 279
gotoAndPlay (278);
Frame 302
gotoAndPlay (303);
Instance of Symbol 110 MovieClip in Frame 302
on (press) {
if (_root.kuler >= 1) {
i = 0;
while (i < _root.as) {
test = "_root.bakgrunn.fiende" + i;
tellTarget (test) {
if (hitTest(_root.sikte.treff) == true) {
tellTarget (_root.skriket) {
gotoAndPlay (20);
};
health = health - _root.damage;
if (dead != 1) {
if (health <= 0) {
tellTarget (_root.skriket) {
gotoAndPlay(Math.round(Math.random() * 14) + 1);
};
gotoAndPlay (2);
dead = 1;
}
}
}
};
i++;
}
} else {
tellTarget (_root.gun1) {
gotoAndPlay (11);
};
tellTarget (_root.gun2) {
gotoAndPlay (11);
};
}
}
on (press) {
if (_root.kuler >= 1) {
if (_root.vapen == 1) {
_root.vapen = 2;
_root.kuler = _root.kuler - 1;
tellTarget (_root.gun1) {
gotoAndPlay (2);
};
tellTarget (_root.sikte) {
gotoAndPlay (2);
};
if (_root.dual == 1) {
} else {
return(true);
}
}
if (_root.vapen == 2) {
_root.vapen = 1;
_root.kuler = _root.kuler - 1;
tellTarget (_root.gun2) {
gotoAndPlay (2);
};
tellTarget (_root.sikte) {
gotoAndPlay (2);
};
}
} else {
tellTarget (_root.gun1) {
gotoAndPlay (11);
};
tellTarget (_root.gun2) {
gotoAndPlay (11);
};
}
}
Instance of Symbol 330 MovieClip "bakgrunn" in Frame 302
on (press) {
if (_root.kuler >= 1) {
i = 0;
while (i < _root.as) {
test = "_root.bakgrunn.fiende" + i;
tellTarget (test) {
if (hitTest(_root.sikte.treff) == true) {
tellTarget (_root.skriket) {
gotoAndPlay (20);
};
if (_root.dual == 0) {
health = health - _root.damage;
}
if (_root.dual == 1) {
health = health - (_root.damage * 2);
}
if (dead != 1) {
if (health <= 0) {
tellTarget (_root.skriket) {
gotoAndPlay(Math.round(Math.random() * 14) + 1);
};
gotoAndPlay (2);
dead = 1;
}
}
}
};
i++;
}
} else {
tellTarget (_root.gun1) {
gotoAndPlay (11);
};
tellTarget (_root.gun2) {
gotoAndPlay (11);
};
}
}
onClipEvent (mouseMove) {
_x = (_root._xmouse - (_root._xmouse * 2.5));
_y = (_root._ymouse - (_root._ymouse * 2.5));
Mouse.hide();
}
on (press) {
if (_root.kuler >= 1) {
if (_root.vapen == 1) {
_root.vapen = 2;
_root.kuler = _root.kuler - 1;
tellTarget (_root.gun1) {
gotoAndPlay (2);
};
tellTarget (_root.sikte) {
gotoAndPlay (2);
};
if (_root.dual == 1) {
} else {
return(true);
}
}
if (_root.vapen == 2) {
_root.vapen = 1;
_root.kuler = _root.kuler - 1;
tellTarget (_root.gun2) {
gotoAndPlay (2);
};
tellTarget (_root.sikte) {
gotoAndPlay (2);
};
}
} else {
tellTarget (_root.gun1) {
gotoAndPlay (11);
};
tellTarget (_root.gun2) {
gotoAndPlay (11);
};
}
}
Instance of Symbol 394 MovieClip in Frame 302
onClipEvent (mouseMove) {
_x = _root._xmouse;
_y = _root._ymouse;
}
Symbol 6 MovieClip Frame 5
stop();
Symbol 10 MovieClip Frame 5
stop();
Symbol 11 Button
on (release) {
play();
}
Symbol 67 Button
on (release) {
_root.play();
}
Symbol 68 MovieClip Frame 143
_root.play();
stop();
Symbol 83 MovieClip Frame 5
stop();
Symbol 85 MovieClip Frame 5
stop();
Symbol 86 Button
on (release) {
_root.instructions.active = false;
_root.credits.active = true;
}
Symbol 87 Button
on (release) {
_root.instructions.active = true;
_root.credits.active = false;
}
Symbol 88 Button
on (release) {
_root.nextframe();
_root.play();
}
Symbol 92 Button
on (release) {
getURL ("http://www.ArmorGames.com");
}
Symbol 101 Button
on (release) {
active = false;
}
Symbol 102 MovieClip Frame 1
_alpha = 0;
this.onEnterFrame = function () {
if (active) {
_visible = true;
_alpha = (_alpha + ((-(_alpha - 100)) / 4));
} else {
if (Math.round(_alpha) < 1) {
_visible = false;
}
_alpha = (_alpha + ((-(_alpha - 0)) / 4));
}
};
Symbol 106 MovieClip Frame 1
_alpha = 0;
this.onEnterFrame = function () {
if (active) {
_visible = true;
_alpha = (_alpha + ((-(_alpha - 100)) / 4));
} else {
if (Math.round(_alpha) < 1) {
_visible = false;
}
_alpha = (_alpha + ((-(_alpha - 0)) / 4));
}
};
Symbol 143 MovieClip Frame 1
if (_root.basehealth >= 10) {
stop();
}
Symbol 143 MovieClip Frame 2
if (_root.basehealth >= 7) {
stop();
}
Symbol 143 MovieClip Frame 3
if (_root.basehealth >= 6) {
stop();
}
Symbol 143 MovieClip Frame 4
if (_root.basehealth >= 5) {
stop();
}
Symbol 143 MovieClip Frame 5
if (_root.basehealth >= 4) {
stop();
}
Symbol 143 MovieClip Frame 6
if (_root.basehealth >= 3) {
stop();
}
Symbol 143 MovieClip Frame 7
if (_root.basehealth >= 2) {
stop();
}
Symbol 143 MovieClip Frame 8
if (_root.basehealth >= 1) {
stop();
}
Symbol 143 MovieClip Frame 30
Symbol 143 MovieClip Frame 31
stop();
Symbol 158 MovieClip Frame 1
if (_parent.dead == 1) {
stop();
}
Symbol 181 MovieClip Frame 1
stop();
Instance of Symbol 158 MovieClip in Symbol 181 MovieClip Frame 1
on (press) {
if (_root.weapon == 1) {
if (_root.run == 1) {
if (_root.kuler >= 1) {
tellTarget (_root.bakgrunn.blodes) {
gotoAndPlay (1);
_x = _root.sikte._x;
_y = _root.sikte._y;
};
if (_root.dual == 0) {
health = health - _root.damage;
}
if (_root.dual == 1) {
health = health - (_root.damage * 2);
}
if (dead != 1) {
lal = (health / _root.minutter) * 100;
tellTarget (barensaren) {
_xscale = _parent.lal;
if (_xscale <= 1) {
_xscale = 1;
}
};
tellTarget (_root.skriket) {
gotoAndPlay (20);
_root.score = _root.score + _root.damage;
};
if (health <= 0) {
_root.score = _root.score + (_root.damage * 3);
tellTarget (_root.skriket) {
gotoAndPlay(Math.round(Math.random() * 14) + 1);
};
gotoAndPlay (2);
dead = 1;
_root.totalenemies = _root.totalenemies - 1;
}
} else if (_root.run == 1) {
tellTarget (_root.gun1) {
gotoAndPlay (11);
};
tellTarget (_root.gun2) {
gotoAndPlay (11);
};
}
}
}
}
}
Symbol 181 MovieClip Frame 16
stop();
Symbol 181 MovieClip Frame 17
tellTarget (_root.rodt) {
gotoAndPlay (2);
};
Symbol 181 MovieClip Frame 29
stop();
Symbol 208 MovieClip Frame 1
stop();
Symbol 208 MovieClip Frame 11
stop();
Symbol 208 MovieClip Frame 16
stop();
Symbol 237 MovieClip Frame 1
if (_parent.dead == 1) {
stop();
}
Symbol 259 MovieClip Frame 1
stop();
Instance of Symbol 237 MovieClip "robo1" in Symbol 259 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 239 MovieClip "robohb" in Symbol 259 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.health < 0) {
_xscale = 0;
}
}
Symbol 259 MovieClip Frame 42
stop();
Symbol 329 MovieClip Frame 1
stop();
Symbol 329 MovieClip Frame 71
stop();
Instance of Symbol 208 MovieClip "tanks0" in Symbol 330 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 208 MovieClip "tanks1" in Symbol 330 MovieClip Frame 1
/* no clip actions */
Symbol 338 MovieClip Frame 1
stop();
Symbol 338 MovieClip Frame 10
gotoAndPlay (1);
Symbol 338 MovieClip Frame 20
gotoAndPlay (1);
Symbol 338 MovieClip Frame 25
if (_root.weapon != 1) {
stop();
}
Symbol 344 MovieClip Frame 11
stop();
Symbol 354 MovieClip Frame 1
stop();
Symbol 354 MovieClip Frame 3
if (_root.weapon == 2) {
if (_root.run == 1) {
if (_root.kuler2 >= 1) {
i = 0;
while (i < _root.as) {
test = "_root.bakgrunn.fiende" + i;
tellTarget (test) {
if (hitTest(_root.sikte.treff) == true) {
tellTarget (_root.blodes) {
gotoAndPlay (1);
_x = (Math.round(Math.random() * 20) + 390);
_y = 200;
};
health = health - _root.damage;
if (dead != 1) {
lal = (health / _root.minutter) * 100;
tellTarget (barensaren) {
_xscale = _parent.lal;
if (_xscale <= 1) {
_xscale = 1;
}
};
tellTarget (_root.skriket) {
gotoAndPlay (20);
_root.score = _root.score + _root.damage;
};
if (health <= 0) {
_root.score = _root.score + (_root.damage * 3);
tellTarget (_root.skriket) {
gotoAndPlay(Math.round(Math.random() * 14) + 1);
};
gotoAndPlay (2);
dead = 1;
_root.totalenemies = _root.totalenemies - 1;
}
}
}
};
i++;
}
}
}
}
if (_root.weapon == 2) {
if (_root.kuler2 >= 1) {
tellTarget (_root.sikte) {
gotoAndPlay (2);
};
_root.kuler2 = _root.kuler2 - 1;
tellTarget (_root.sikte) {
gotoAndPlay (2);
};
}
}
if (_root.weapon == 2) {
if (_root.run == 1) {
if (_root.kuler2 >= 1) {
i = 0;
while (i < 4) {
muhammed = "_root.bakgrunn.tanks" + i;
tellTarget (muhammed) {
if (hitTest(_root.sikte.treff) == true) {
if (dead != 1) {
lal3 = (health / (5 + (_root.minutter * 5))) * 100;
tellTarget (tankshealth) {
_xscale = _parent.lal3;
if (_xscale <= 1) {
_xscale = 1;
}
};
tellTarget (_root.ttreff) {
gotoAndPlay (2);
};
}
_root.score = _root.score + _root.damage;
if (dead != 1) {
health = health - _root.damage;
if (health <= 0) {
_root.score = _root.score + (_root.damage * 3);
gotoAndPlay (2);
dead = 1;
_root.totalenemies = _root.totalenemies - 1;
}
}
}
};
i++;
}
}
}
}
if (_root.weapon == 2) {
if (_root.run == 1) {
if (_root.kuler2 >= 1) {
i = 0;
while (i < 4) {
fuk = "_root.bakgrunn.srobo" + i;
tellTarget (fuk) {
if (hitTest(_root.sikte.treff) == true) {
if (dead != 1) {
lal2 = (health / (1 + (_root.minutter * 2))) * 45;
tellTarget (robohb) {
_xscale = _parent.lal2;
if (_xscale <= 1) {
_xscale = 1;
}
};
tellTarget (_root.ttreff) {
gotoAndPlay (2);
};
}
_root.score = _root.score + _root.damage;
if (dead != 1) {
health = health - _root.damage;
if (health < 0) {
_root.score = _root.score + (_root.damage * 3);
gotoAndPlay (2);
dead = 1;
_root.totalenemies = _root.totalenemies - 1;
}
}
}
};
i++;
}
}
}
}
if (_root.weapon == 2) {
if (_root.run == 1) {
if (_root.kuler >= 1) {
i = 0;
while (i < 10) {
testomfg = "_root.bakgrunn.heli" + i;
tellTarget (testomfg) {
if (hitTest(_root.sikte.treff) == true) {
health = health - _root.damage;
if (dead != 1) {
tellTarget (_root.ttreff) {
gotoAndPlay (2);
_root.score = _root.score + 10;
};
if (health <= 0) {
_root.score = _root.score + 50;
gotoAndPlay (2);
dead = 1;
_root.totalenemies = _root.totalenemies - 1;
}
}
}
};
i++;
}
}
}
}
Symbol 354 MovieClip Frame 4
if (_root.mgspeed == 1) {
if (_root.kuler2 >= 1) {
gotoAndPlay (2);
} else {
gotoAndPlay (6);
}
}
Symbol 354 MovieClip Frame 5
if (_root.kuler2 >= 1) {
gotoAndPlay (2);
} else {
gotoAndPlay (6);
}
Symbol 354 MovieClip Frame 20
gotoAndPlay (6);
Symbol 354 MovieClip Frame 25
stop();
Symbol 387 MovieClip Frame 1
stop();
_root.laseready = 1;
Symbol 387 MovieClip Frame 2
_root.laseready = 0;
Symbol 387 MovieClip Frame 20
if (_root.run == 1) {
if (_root.batteri >= 1) {
i = 0;
while (i < _root.as) {
test = "_root.bakgrunn.fiende" + i;
tellTarget (test) {
if (hitTest(this.laserhit) == true) {
tellTarget (_root.bakgrunn.blodes) {
gotoAndPlay (1);
_x = _root.sikte._x;
_y = _root.sikte._y;
};
health = health - (5 + _root.damage);
if (dead != 1) {
lal = (health / _root.minutter) * 100;
tellTarget (barensaren) {
_xscale = _parent.lal;
if (_xscale <= 1) {
_xscale = 1;
}
};
tellTarget (_root.skriket) {
gotoAndPlay (20);
_root.score = _root.score + _root.damage;
};
if (health <= 0) {
_root.score = _root.score + (_root.damage * 3);
tellTarget (_root.skriket) {
gotoAndPlay(Math.round(Math.random() * 14) + 1);
};
gotoAndPlay (2);
dead = 1;
_root.totalenemies = _root.totalenemies - 1;
}
}
}
};
i++;
}
}
}
if (_root.batteri >= 1) {
tellTarget (_root.sikte) {
gotoAndPlay (2);
};
_root.batteri = _root.batteri - 1;
tellTarget (_root.sikte) {
gotoAndPlay (2);
};
}
if (_root.run == 1) {
if (_root.batteri >= 1) {
i = 0;
while (i < 4) {
test = "_root.bakgrunn.tanks" + i;
tellTarget (test) {
if (hitTest(this.laserhit) == true) {
if (dead != 1) {
lal3 = (health / (5 + (_root.minutter * 5))) * 100;
tellTarget (tankshealth) {
_xscale = _parent.lal3;
if (_xscale <= 1) {
_xscale = 1;
}
};
tellTarget (_root.ttreff) {
gotoAndPlay (2);
};
}
_root.score = _root.score + _root.damage;
if (dead != 1) {
health = health - (5 + _root.damage);
if (health <= 0) {
_root.score = _root.score + (_root.damage * 3);
gotoAndPlay (2);
dead = 1;
_root.totalenemies = _root.totalenemies - 1;
}
}
}
};
i++;
}
}
}
if (_root.run == 1) {
if (_root.batteri >= 1) {
i = 0;
while (i < 4) {
test = "_root.bakgrunn.srobo" + i;
tellTarget (test) {
if (hitTest(this.laserhit) == true) {
if (dead != 1) {
lal2 = (health / (1 + (_root.minutter * 2))) * 45;
tellTarget (robohb) {
_xscale = _parent.lal2;
if (_xscale <= 1) {
_xscale = 1;
}
};
tellTarget (_root.ttreff) {
gotoAndPlay (2);
};
}
_root.score = _root.score + _root.damage;
if (dead != 1) {
health = health - (5 + _root.damage);
if (health <= 0) {
_root.score = _root.score + (_root.damage * 3);
gotoAndPlay (2);
dead = 1;
_root.totalenemies = _root.totalenemies - 1;
}
}
}
};
i++;
}
}
}
Symbol 387 MovieClip Frame 21
if (_root.run == 1) {
if (_root.batteri >= 1) {
i = 0;
while (i < _root.as) {
test = "_root.bakgrunn.fiende" + i;
tellTarget (test) {
if (hitTest(this.laserhit) == true) {
tellTarget (_root.bakgrunn.blodes) {
gotoAndPlay (1);
_x = _root.sikte._x;
_y = _root.sikte._y;
};
health = health - (5 + _root.damage);
if (dead != 1) {
lal = (health / _root.minutter) * 100;
tellTarget (barensaren) {
_xscale = _parent.lal;
if (_xscale <= 1) {
_xscale = 1;
}
};
tellTarget (_root.skriket) {
gotoAndPlay (20);
_root.score = _root.score + _root.damage;
};
if (health <= 0) {
_root.score = _root.score + (_root.damage * 3);
tellTarget (_root.skriket) {
gotoAndPlay(Math.round(Math.random() * 14) + 1);
};
gotoAndPlay (2);
dead = 1;
_root.totalenemies = _root.totalenemies - 1;
}
}
}
};
i++;
}
}
}
if (_root.batteri >= 1) {
tellTarget (_root.sikte) {
gotoAndPlay (2);
};
_root.batteri = _root.batteri - 1;
tellTarget (_root.sikte) {
gotoAndPlay (2);
};
}
if (_root.run == 1) {
if (_root.batteri >= 1) {
i = 0;
while (i < 4) {
test = "_root.bakgrunn.tanks" + i;
tellTarget (test) {
if (hitTest(this.laserhit) == true) {
if (dead != 1) {
lal3 = (health / (5 + (_root.minutter * 5))) * 100;
tellTarget (tankshealth) {
_xscale = _parent.lal3;
if (_xscale <= 1) {
_xscale = 1;
}
};
tellTarget (_root.ttreff) {
gotoAndPlay (2);
};
}
_root.score = _root.score + _root.damage;
if (dead != 1) {
health = health - (5 + _root.damage);
if (health <= 0) {
_root.score = _root.score + (_root.damage * 3);
gotoAndPlay (2);
dead = 1;
_root.totalenemies = _root.totalenemies - 1;
}
}
}
};
i++;
}
}
}
if (_root.run == 1) {
if (_root.batteri >= 1) {
i = 0;
while (i < 4) {
test = "_root.bakgrunn.srobo" + i;
tellTarget (test) {
if (hitTest(this.laserhit) == true) {
if (dead != 1) {
lal2 = (health / (1 + (_root.minutter * 2))) * 45;
tellTarget (robohb) {
_xscale = _parent.lal2;
if (_xscale <= 1) {
_xscale = 1;
}
};
tellTarget (_root.ttreff) {
gotoAndPlay (2);
};
}
_root.score = _root.score + _root.damage;
if (dead != 1) {
health = health - (5 + _root.damage);
if (health <= 0) {
_root.score = _root.score + (_root.damage * 3);
gotoAndPlay (2);
dead = 1;
_root.totalenemies = _root.totalenemies - 1;
}
}
}
};
i++;
}
}
}
Symbol 387 MovieClip Frame 22
if (_root.run == 1) {
if (_root.batteri >= 1) {
i = 0;
while (i < _root.as) {
test = "_root.bakgrunn.fiende" + i;
tellTarget (test) {
if (hitTest(this.laserhit) == true) {
tellTarget (_root.bakgrunn.blodes) {
gotoAndPlay (1);
_x = _root.sikte._x;
_y = _root.sikte._y;
};
health = health - (5 + _root.damage);
if (dead != 1) {
lal = (health / _root.minutter) * 100;
tellTarget (barensaren) {
_xscale = _parent.lal;
if (_xscale <= 1) {
_xscale = 1;
}
};
tellTarget (_root.skriket) {
gotoAndPlay (20);
_root.score = _root.score + _root.damage;
};
if (health <= 0) {
_root.score = _root.score + (_root.damage * 3);
tellTarget (_root.skriket) {
gotoAndPlay(Math.round(Math.random() * 14) + 1);
};
gotoAndPlay (2);
dead = 1;
_root.totalenemies = _root.totalenemies - 1;
}
}
}
};
i++;
}
}
}
if (_root.batteri >= 1) {
tellTarget (_root.sikte) {
gotoAndPlay (2);
};
_root.batteri = _root.batteri - 1;
tellTarget (_root.sikte) {
gotoAndPlay (2);
};
}
if (_root.run == 1) {
if (_root.batteri >= 1) {
i = 0;
while (i < 4) {
test = "_root.bakgrunn.tanks" + i;
tellTarget (test) {
if (hitTest(this.laserhit) == true) {
if (dead != 1) {
lal3 = (health / (5 + (_root.minutter * 5))) * 100;
tellTarget (tankshealth) {
_xscale = _parent.lal3;
if (_xscale <= 1) {
_xscale = 1;
}
};
tellTarget (_root.ttreff) {
gotoAndPlay (2);
};
}
_root.score = _root.score + _root.damage;
if (dead != 1) {
health = health - (5 + _root.damage);
if (health <= 0) {
_root.score = _root.score + (_root.damage * 3);
gotoAndPlay (2);
dead = 1;
_root.totalenemies = _root.totalenemies - 1;
}
}
}
};
i++;
}
}
}
if (_root.run == 1) {
if (_root.batteri >= 1) {
i = 0;
while (i < 4) {
test = "_root.bakgrunn.srobo" + i;
tellTarget (test) {
if (hitTest(this.laserhit) == true) {
if (dead != 1) {
lal2 = (health / (1 + (_root.minutter * 2))) * 45;
tellTarget (robohb) {
_xscale = _parent.lal2;
if (_xscale <= 1) {
_xscale = 1;
}
};
tellTarget (_root.ttreff) {
gotoAndPlay (2);
};
}
_root.score = _root.score + _root.damage;
if (dead != 1) {
health = health - (5 + _root.damage);
if (health <= 0) {
_root.score = _root.score + (_root.damage * 3);
gotoAndPlay (2);
dead = 1;
_root.totalenemies = _root.totalenemies - 1;
}
}
}
};
i++;
}
}
}
Symbol 387 MovieClip Frame 23
if (_root.run == 1) {
if (_root.batteri >= 1) {
i = 0;
while (i < _root.as) {
test = "_root.bakgrunn.fiende" + i;
tellTarget (test) {
if (hitTest(this.laserhit) == true) {
tellTarget (_root.bakgrunn.blodes) {
gotoAndPlay (1);
_x = _root.sikte._x;
_y = _root.sikte._y;
};
health = health - (5 + _root.damage);
if (dead != 1) {
lal = (health / _root.minutter) * 100;
tellTarget (barensaren) {
_xscale = _parent.lal;
if (_xscale <= 1) {
_xscale = 1;
}
};
tellTarget (_root.skriket) {
gotoAndPlay (20);
_root.score = _root.score + _root.damage;
};
if (health <= 0) {
_root.score = _root.score + (_root.damage * 3);
tellTarget (_root.skriket) {
gotoAndPlay(Math.round(Math.random() * 14) + 1);
};
gotoAndPlay (2);
dead = 1;
_root.totalenemies = _root.totalenemies - 1;
}
}
}
};
i++;
}
}
}
if (_root.batteri >= 1) {
tellTarget (_root.sikte) {
gotoAndPlay (2);
};
_root.batteri = _root.batteri - 1;
tellTarget (_root.sikte) {
gotoAndPlay (2);
};
}
if (_root.run == 1) {
if (_root.batteri >= 1) {
i = 0;
while (i < 4) {
test = "_root.bakgrunn.tanks" + i;
tellTarget (test) {
if (hitTest(this.laserhit) == true) {
if (dead != 1) {
lal3 = (health / (5 + (_root.minutter * 5))) * 100;
tellTarget (tankshealth) {
_xscale = _parent.lal3;
if (_xscale <= 1) {
_xscale = 1;
}
};
tellTarget (_root.ttreff) {
gotoAndPlay (2);
};
}
_root.score = _root.score + _root.damage;
if (dead != 1) {
health = health - (5 + _root.damage);
if (health <= 0) {
_root.score = _root.score + (_root.damage * 3);
gotoAndPlay (2);
dead = 1;
_root.totalenemies = _root.totalenemies - 1;
}
}
}
};
i++;
}
}
}
if (_root.run == 1) {
if (_root.batteri >= 1) {
i = 0;
while (i < 4) {
test = "_root.bakgrunn.srobo" + i;
tellTarget (test) {
if (hitTest(this.laserhit) == true) {
if (dead != 1) {
lal2 = (health / (1 + (_root.minutter * 2))) * 45;
tellTarget (robohb) {
_xscale = _parent.lal2;
if (_xscale <= 1) {
_xscale = 1;
}
};
tellTarget (_root.ttreff) {
gotoAndPlay (2);
};
}
_root.score = _root.score + _root.damage;
if (dead != 1) {
health = health - (5 + _root.damage);
if (health <= 0) {
_root.score = _root.score + (_root.damage * 3);
gotoAndPlay (2);
dead = 1;
_root.totalenemies = _root.totalenemies - 1;
}
}
}
};
i++;
}
}
}
Symbol 387 MovieClip Frame 24
if (_root.run == 1) {
if (_root.batteri >= 1) {
i = 0;
while (i < _root.as) {
test = "_root.bakgrunn.fiende" + i;
tellTarget (test) {
if (hitTest(this.laserhit) == true) {
tellTarget (_root.bakgrunn.blodes) {
gotoAndPlay (1);
_x = _root.sikte._x;
_y = _root.sikte._y;
};
health = health - (5 + _root.damage);
if (dead != 1) {
lal = (health / _root.minutter) * 100;
tellTarget (barensaren) {
_xscale = _parent.lal;
if (_xscale <= 1) {
_xscale = 1;
}
};
tellTarget (_root.skriket) {
gotoAndPlay (20);
_root.score = _root.score + _root.damage;
};
if (health <= 0) {
_root.score = _root.score + (_root.damage * 3);
tellTarget (_root.skriket) {
gotoAndPlay(Math.round(Math.random() * 14) + 1);
};
gotoAndPlay (2);
dead = 1;
_root.totalenemies = _root.totalenemies - 1;
}
}
}
};
i++;
}
}
}
if (_root.batteri >= 1) {
tellTarget (_root.sikte) {
gotoAndPlay (2);
};
_root.batteri = _root.batteri - 1;
tellTarget (_root.sikte) {
gotoAndPlay (2);
};
}
if (_root.run == 1) {
if (_root.batteri >= 1) {
i = 0;
while (i < 4) {
test = "_root.bakgrunn.tanks" + i;
tellTarget (test) {
if (hitTest(this.laserhit) == true) {
if (dead != 1) {
lal3 = (health / (5 + (_root.minutter * 5))) * 100;
tellTarget (tankshealth) {
_xscale = _parent.lal3;
if (_xscale <= 1) {
_xscale = 1;
}
};
tellTarget (_root.ttreff) {
gotoAndPlay (2);
};
}
_root.score = _root.score + _root.damage;
if (dead != 1) {
health = health - (5 + _root.damage);
if (health <= 0) {
_root.score = _root.score + (_root.damage * 3);
gotoAndPlay (2);
dead = 1;
_root.totalenemies = _root.totalenemies - 1;
}
}
}
};
i++;
}
}
}
if (_root.run == 1) {
if (_root.batteri >= 1) {
i = 0;
while (i < 4) {
test = "_root.bakgrunn.srobo" + i;
tellTarget (test) {
if (hitTest(this.laserhit) == true) {
if (dead != 1) {
lal2 = (health / (1 + (_root.minutter * 2))) * 45;
tellTarget (robohb) {
_xscale = _parent.lal2;
if (_xscale <= 1) {
_xscale = 1;
}
};
tellTarget (_root.ttreff) {
gotoAndPlay (2);
};
}
_root.score = _root.score + _root.damage;
if (dead != 1) {
health = health - (5 + _root.damage);
if (health <= 0) {
_root.score = _root.score + (_root.damage * 3);
gotoAndPlay (2);
dead = 1;
_root.totalenemies = _root.totalenemies - 1;
}
}
}
};
i++;
}
}
}
Symbol 387 MovieClip Frame 25
if (_root.run == 1) {
if (_root.batteri >= 1) {
i = 0;
while (i < _root.as) {
test = "_root.bakgrunn.fiende" + i;
tellTarget (test) {
if (hitTest(this.laserhit) == true) {
tellTarget (_root.bakgrunn.blodes) {
gotoAndPlay (1);
_x = _root.sikte._x;
_y = _root.sikte._y;
};
health = health - (5 + _root.damage);
if (dead != 1) {
lal = (health / _root.minutter) * 100;
tellTarget (barensaren) {
_xscale = _parent.lal;
if (_xscale <= 1) {
_xscale = 1;
}
};
tellTarget (_root.skriket) {
gotoAndPlay (20);
_root.score = _root.score + _root.damage;
};
if (health <= 0) {
_root.score = _root.score + (_root.damage * 3);
tellTarget (_root.skriket) {
gotoAndPlay(Math.round(Math.random() * 14) + 1);
};
gotoAndPlay (2);
dead = 1;
_root.totalenemies = _root.totalenemies - 1;
}
}
}
};
i++;
}
}
}
if (_root.batteri >= 1) {
tellTarget (_root.sikte) {
gotoAndPlay (2);
};
_root.batteri = _root.batteri - 1;
tellTarget (_root.sikte) {
gotoAndPlay (2);
};
}
if (_root.run == 1) {
if (_root.batteri >= 1) {
i = 0;
while (i < 4) {
test = "_root.bakgrunn.tanks" + i;
tellTarget (test) {
if (hitTest(this.laserhit) == true) {
if (dead != 1) {
lal3 = (health / (5 + (_root.minutter * 5))) * 100;
tellTarget (tankshealth) {
_xscale = _parent.lal3;
if (_xscale <= 1) {
_xscale = 1;
}
};
tellTarget (_root.ttreff) {
gotoAndPlay (2);
};
}
_root.score = _root.score + _root.damage;
if (dead != 1) {
health = health - (5 + _root.damage);
if (health <= 0) {
_root.score = _root.score + (_root.damage * 3);
gotoAndPlay (2);
dead = 1;
_root.totalenemies = _root.totalenemies - 1;
}
}
}
};
i++;
}
}
}
if (_root.run == 1) {
if (_root.batteri >= 1) {
i = 0;
while (i < 4) {
test = "_root.bakgrunn.srobo" + i;
tellTarget (test) {
if (hitTest(this.laserhit) == true) {
if (dead != 1) {
lal2 = (health / (1 + (_root.minutter * 2))) * 45;
tellTarget (robohb) {
_xscale = _parent.lal2;
if (_xscale <= 1) {
_xscale = 1;
}
};
tellTarget (_root.ttreff) {
gotoAndPlay (2);
};
}
_root.score = _root.score + _root.damage;
if (dead != 1) {
health = health - (5 + _root.damage);
if (health <= 0) {
_root.score = _root.score + (_root.damage * 3);
gotoAndPlay (2);
dead = 1;
_root.totalenemies = _root.totalenemies - 1;
}
}
}
};
i++;
}
}
}
Symbol 387 MovieClip Frame 26
if (_root.run == 1) {
if (_root.batteri >= 1) {
i = 0;
while (i < _root.as) {
test = "_root.bakgrunn.fiende" + i;
tellTarget (test) {
if (hitTest(this.laserhit) == true) {
tellTarget (_root.bakgrunn.blodes) {
gotoAndPlay (1);
_x = _root.sikte._x;
_y = _root.sikte._y;
};
health = health - (5 + _root.damage);
if (dead != 1) {
lal = (health / _root.minutter) * 100;
tellTarget (barensaren) {
_xscale = _parent.lal;
if (_xscale <= 1) {
_xscale = 1;
}
};
tellTarget (_root.skriket) {
gotoAndPlay (20);
_root.score = _root.score + _root.damage;
};
if (health <= 0) {
_root.score = _root.score + (_root.damage * 3);
tellTarget (_root.skriket) {
gotoAndPlay(Math.round(Math.random() * 14) + 1);
};
gotoAndPlay (2);
dead = 1;
_root.totalenemies = _root.totalenemies - 1;
}
}
}
};
i++;
}
}
}
if (_root.batteri >= 1) {
tellTarget (_root.sikte) {
gotoAndPlay (2);
};
_root.batteri = _root.batteri - 1;
tellTarget (_root.sikte) {
gotoAndPlay (2);
};
}
if (_root.run == 1) {
if (_root.batteri >= 1) {
i = 0;
while (i < 4) {
test = "_root.bakgrunn.tanks" + i;
tellTarget (test) {
if (hitTest(this.laserhit) == true) {
if (dead != 1) {
lal3 = (health / (5 + (_root.minutter * 5))) * 100;
tellTarget (tankshealth) {
_xscale = _parent.lal3;
if (_xscale <= 1) {
_xscale = 1;
}
};
tellTarget (_root.ttreff) {
gotoAndPlay (2);
};
}
_root.score = _root.score + _root.damage;
if (dead != 1) {
health = health - (5 + _root.damage);
if (health <= 0) {
_root.score = _root.score + (_root.damage * 3);
gotoAndPlay (2);
dead = 1;
_root.totalenemies = _root.totalenemies - 1;
}
}
}
};
i++;
}
}
}
if (_root.run == 1) {
if (_root.batteri >= 1) {
i = 0;
while (i < 4) {
test = "_root.bakgrunn.srobo" + i;
tellTarget (test) {
if (hitTest(this.laserhit) == true) {
if (dead != 1) {
lal2 = (health / (1 + (_root.minutter * 2))) * 45;
tellTarget (robohb) {
_xscale = _parent.lal2;
if (_xscale <= 1) {
_xscale = 1;
}
};
tellTarget (_root.ttreff) {
gotoAndPlay (2);
};
}
_root.score = _root.score + _root.damage;
if (dead != 1) {
health = health - (5 + _root.damage);
if (health <= 0) {
_root.score = _root.score + (_root.damage * 3);
gotoAndPlay (2);
dead = 1;
_root.totalenemies = _root.totalenemies - 1;
}
}
}
};
i++;
}
}
}
Symbol 387 MovieClip Frame 27
if (_root.run == 1) {
if (_root.batteri >= 1) {
i = 0;
while (i < _root.as) {
test = "_root.bakgrunn.fiende" + i;
tellTarget (test) {
if (hitTest(this.laserhit) == true) {
tellTarget (_root.bakgrunn.blodes) {
gotoAndPlay (1);
_x = _root.sikte._x;
_y = _root.sikte._y;
};
health = health - (5 + _root.damage);
if (dead != 1) {
lal = (health / _root.minutter) * 100;
tellTarget (barensaren) {
_xscale = _parent.lal;
if (_xscale <= 1) {
_xscale = 1;
}
};
tellTarget (_root.skriket) {
gotoAndPlay (20);
_root.score = _root.score + _root.damage;
};
if (health <= 0) {
_root.score = _root.score + (_root.damage * 3);
tellTarget (_root.skriket) {
gotoAndPlay(Math.round(Math.random() * 14) + 1);
};
gotoAndPlay (2);
dead = 1;
_root.totalenemies = _root.totalenemies - 1;
}
}
}
};
i++;
}
}
}
if (_root.batteri >= 1) {
tellTarget (_root.sikte) {
gotoAndPlay (2);
};
_root.batteri = _root.batteri - 1;
tellTarget (_root.sikte) {
gotoAndPlay (2);
};
}
if (_root.run == 1) {
if (_root.batteri >= 1) {
i = 0;
while (i < 4) {
test = "_root.bakgrunn.tanks" + i;
tellTarget (test) {
if (hitTest(this.laserhit) == true) {
if (dead != 1) {
lal3 = (health / (5 + (_root.minutter * 5))) * 100;
tellTarget (tankshealth) {
_xscale = _parent.lal3;
if (_xscale <= 1) {
_xscale = 1;
}
};
tellTarget (_root.ttreff) {
gotoAndPlay (2);
};
}
_root.score = _root.score + _root.damage;
if (dead != 1) {
health = health - (5 + _root.damage);
if (health <= 0) {
_root.score = _root.score + (_root.damage * 3);
gotoAndPlay (2);
dead = 1;
_root.totalenemies = _root.totalenemies - 1;
}
}
}
};
i++;
}
}
}
if (_root.run == 1) {
if (_root.batteri >= 1) {
i = 0;
while (i < 4) {
test = "_root.bakgrunn.srobo" + i;
tellTarget (test) {
if (hitTest(this.laserhit) == true) {
if (dead != 1) {
lal2 = (health / (1 + (_root.minutter * 2))) * 45;
tellTarget (robohb) {
_xscale = _parent.lal2;
if (_xscale <= 1) {
_xscale = 1;
}
};
tellTarget (_root.ttreff) {
gotoAndPlay (2);
};
}
_root.score = _root.score + _root.damage;
if (dead != 1) {
health = health - (5 + _root.damage);
if (health <= 0) {
_root.score = _root.score + (_root.damage * 3);
gotoAndPlay (2);
dead = 1;
_root.totalenemies = _root.totalenemies - 1;
}
}
}
};
i++;
}
}
}
Symbol 387 MovieClip Frame 28
if (_root.run == 1) {
if (_root.batteri >= 1) {
i = 0;
while (i < _root.as) {
test = "_root.bakgrunn.fiende" + i;
tellTarget (test) {
if (hitTest(this.laserhit) == true) {
tellTarget (_root.bakgrunn.blodes) {
gotoAndPlay (1);
_x = _root.sikte._x;
_y = _root.sikte._y;
};
health = health - (5 + _root.damage);
if (dead != 1) {
lal = (health / _root.minutter) * 100;
tellTarget (barensaren) {
_xscale = _parent.lal;
if (_xscale <= 1) {
_xscale = 1;
}
};
tellTarget (_root.skriket) {
gotoAndPlay (20);
_root.score = _root.score + _root.damage;
};
if (health <= 0) {
_root.score = _root.score + (_root.damage * 3);
tellTarget (_root.skriket) {
gotoAndPlay(Math.round(Math.random() * 14) + 1);
};
gotoAndPlay (2);
dead = 1;
_root.totalenemies = _root.totalenemies - 1;
}
}
}
};
i++;
}
}
}
if (_root.batteri >= 1) {
tellTarget (_root.sikte) {
gotoAndPlay (2);
};
_root.batteri = _root.batteri - 1;
tellTarget (_root.sikte) {
gotoAndPlay (2);
};
}
if (_root.run == 1) {
if (_root.batteri >= 1) {
i = 0;
while (i < 4) {
test = "_root.bakgrunn.tanks" + i;
tellTarget (test) {
if (hitTest(this.laserhit) == true) {
if (dead != 1) {
lal3 = (health / (5 + (_root.minutter * 5))) * 100;
tellTarget (tankshealth) {
_xscale = _parent.lal3;
if (_xscale <= 1) {
_xscale = 1;
}
};
tellTarget (_root.ttreff) {
gotoAndPlay (2);
};
}
_root.score = _root.score + _root.damage;
if (dead != 1) {
health = health - (5 + _root.damage);
if (health <= 0) {
_root.score = _root.score + (_root.damage * 3);
gotoAndPlay (2);
dead = 1;
_root.totalenemies = _root.totalenemies - 1;
}
}
}
};
i++;
}
}
}
if (_root.run == 1) {
if (_root.batteri >= 1) {
i = 0;
while (i < 4) {
test = "_root.bakgrunn.srobo" + i;
tellTarget (test) {
if (hitTest(this.laserhit) == true) {
if (dead != 1) {
lal2 = (health / (1 + (_root.minutter * 2))) * 45;
tellTarget (robohb) {
_xscale = _parent.lal2;
if (_xscale <= 1) {
_xscale = 1;
}
};
tellTarget (_root.ttreff) {
gotoAndPlay (2);
};
}
_root.score = _root.score + _root.damage;
if (dead != 1) {
health = health - (5 + _root.damage);
if (health <= 0) {
_root.score = _root.score + (_root.damage * 3);
gotoAndPlay (2);
dead = 1;
_root.totalenemies = _root.totalenemies - 1;
}
}
}
};
i++;
}
}
}
Symbol 387 MovieClip Frame 29
if (_root.run == 1) {
if (_root.batteri >= 1) {
i = 0;
while (i < _root.as) {
test = "_root.bakgrunn.fiende" + i;
tellTarget (test) {
if (hitTest(this.laserhit) == true) {
tellTarget (_root.bakgrunn.blodes) {
gotoAndPlay (1);
_x = _root.sikte._x;
_y = _root.sikte._y;
};
health = health - (5 + _root.damage);
if (dead != 1) {
lal = (health / _root.minutter) * 100;
tellTarget (barensaren) {
_xscale = _parent.lal;
if (_xscale <= 1) {
_xscale = 1;
}
};
tellTarget (_root.skriket) {
gotoAndPlay (20);
_root.score = _root.score + _root.damage;
};
if (health <= 0) {
_root.score = _root.score + (_root.damage * 3);
tellTarget (_root.skriket) {
gotoAndPlay(Math.round(Math.random() * 14) + 1);
};
gotoAndPlay (2);
dead = 1;
_root.totalenemies = _root.totalenemies - 1;
}
}
}
};
i++;
}
}
}
if (_root.batteri >= 1) {
tellTarget (_root.sikte) {
gotoAndPlay (2);
};
_root.batteri = _root.batteri - 1;
tellTarget (_root.sikte) {
gotoAndPlay (2);
};
}
if (_root.run == 1) {
if (_root.batteri >= 1) {
i = 0;
while (i < 4) {
test = "_root.bakgrunn.tanks" + i;
tellTarget (test) {
if (hitTest(this.laserhit) == true) {
if (dead != 1) {
lal3 = (health / (5 + (_root.minutter * 5))) * 100;
tellTarget (tankshealth) {
_xscale = _parent.lal3;
if (_xscale <= 1) {
_xscale = 1;
}
};
tellTarget (_root.ttreff) {
gotoAndPlay (2);
};
}
_root.score = _root.score + _root.damage;
if (dead != 1) {
health = health - (5 + _root.damage);
if (health <= 0) {
_root.score = _root.score + (_root.damage * 3);
gotoAndPlay (2);
dead = 1;
_root.totalenemies = _root.totalenemies - 1;
}
}
}
};
i++;
}
}
}
if (_root.run == 1) {
if (_root.batteri >= 1) {
i = 0;
while (i < 4) {
test = "_root.bakgrunn.srobo" + i;
tellTarget (test) {
if (hitTest(this.laserhit) == true) {
if (dead != 1) {
lal2 = (health / (1 + (_root.minutter * 2))) * 45;
tellTarget (robohb) {
_xscale = _parent.lal2;
if (_xscale <= 1) {
_xscale = 1;
}
};
tellTarget (_root.ttreff) {
gotoAndPlay (2);
};
}
_root.score = _root.score + _root.damage;
if (dead != 1) {
health = health - (5 + _root.damage);
if (health <= 0) {
_root.score = _root.score + (_root.damage * 3);
gotoAndPlay (2);
dead = 1;
_root.totalenemies = _root.totalenemies - 1;
}
}
}
};
i++;
}
}
}
Symbol 387 MovieClip Frame 30
if (_root.run == 1) {
if (_root.batteri >= 1) {
i = 0;
while (i < _root.as) {
test = "_root.bakgrunn.fiende" + i;
tellTarget (test) {
if (hitTest(this.laserhit) == true) {
tellTarget (_root.bakgrunn.blodes) {
gotoAndPlay (1);
_x = _root.sikte._x;
_y = _root.sikte._y;
};
health = health - (5 + _root.damage);
if (dead != 1) {
lal = (health / _root.minutter) * 100;
tellTarget (barensaren) {
_xscale = _parent.lal;
if (_xscale <= 1) {
_xscale = 1;
}
};
tellTarget (_root.skriket) {
gotoAndPlay (20);
_root.score = _root.score + _root.damage;
};
if (health <= 0) {
_root.score = _root.score + (_root.damage * 3);
tellTarget (_root.skriket) {
gotoAndPlay(Math.round(Math.random() * 14) + 1);
};
gotoAndPlay (2);
dead = 1;
_root.totalenemies = _root.totalenemies - 1;
}
}
}
};
i++;
}
}
}
if (_root.batteri >= 1) {
tellTarget (_root.sikte) {
gotoAndPlay (2);
};
_root.batteri = _root.batteri - 1;
tellTarget (_root.sikte) {
gotoAndPlay (2);
};
}
if (_root.run == 1) {
if (_root.batteri >= 1) {
i = 0;
while (i < 4) {
test = "_root.bakgrunn.tanks" + i;
tellTarget (test) {
if (hitTest(this.laserhit) == true) {
if (dead != 1) {
lal3 = (health / (5 + (_root.minutter * 5))) * 100;
tellTarget (tankshealth) {
_xscale = _parent.lal3;
if (_xscale <= 1) {
_xscale = 1;
}
};
tellTarget (_root.ttreff) {
gotoAndPlay (2);
};
}
_root.score = _root.score + _root.damage;
if (dead != 1) {
health = health - (5 + _root.damage);
if (health <= 0) {
_root.score = _root.score + (_root.damage * 3);
gotoAndPlay (2);
dead = 1;
_root.totalenemies = _root.totalenemies - 1;
}
}
}
};
i++;
}
}
}
if (_root.run == 1) {
if (_root.batteri >= 1) {
i = 0;
while (i < 4) {
test = "_root.bakgrunn.srobo" + i;
tellTarget (test) {
if (hitTest(this.laserhit) == true) {
if (dead != 1) {
lal2 = (health / (1 + (_root.minutter * 2))) * 45;
tellTarget (robohb) {
_xscale = _parent.lal2;
if (_xscale <= 1) {
_xscale = 1;
}
};
tellTarget (_root.ttreff) {
gotoAndPlay (2);
};
}
_root.score = _root.score + _root.damage;
if (dead != 1) {
health = health - (5 + _root.damage);
if (health <= 0) {
_root.score = _root.score + (_root.damage * 3);
gotoAndPlay (2);
dead = 1;
_root.totalenemies = _root.totalenemies - 1;
}
}
}
};
i++;
}
}
}
Symbol 387 MovieClip Frame 34
gotoAndPlay (1);
Symbol 387 MovieClip Frame 35
stop();
Symbol 405 MovieClip Frame 1
stop();
Symbol 427 MovieClip Frame 1
stop();
Symbol 427 MovieClip Frame 2
stop();
Symbol 427 MovieClip Frame 3
stop();
Symbol 427 MovieClip Frame 4
stop();
Symbol 427 MovieClip Frame 5
stop();
Symbol 427 MovieClip Frame 6
stop();
Symbol 427 MovieClip Frame 7
stop();
Symbol 427 MovieClip Frame 8
stop();
Symbol 427 MovieClip Frame 9
stop();
Symbol 427 MovieClip Frame 10
stop();
Symbol 427 MovieClip Frame 11
stop();
Symbol 427 MovieClip Frame 12
stop();
Symbol 427 MovieClip Frame 13
stop();
Symbol 427 MovieClip Frame 14
stop();
Symbol 427 MovieClip Frame 20
stop();
Symbol 430 Button
on (press) {
tellTarget (_root.buttonsounds) {
gotoAndPlay (2);
};
}
Symbol 431 Button
on (press) {
if (_root.dual == 0) {
if (_root.score >= 600) {
_root.score = _root.score - 600;
tellTarget (_root.buttonsounds2) {
gotoAndPlay (2);
};
_root.dual = 1;
} else {
tellTarget (_root.buttonsounds) {
gotoAndPlay (2);
};
}
} else {
tellTarget (_root.buttonsounds) {
gotoAndPlay (2);
};
}
}
Symbol 432 Button
on (press) {
if (_root.score >= 100) {
_root.score = _root.score - 100;
tellTarget (_root.buttonsounds2) {
gotoAndPlay (2);
};
_root.kuler = _root.kuler + 100;
} else {
tellTarget (_root.buttonsounds) {
gotoAndPlay (2);
};
}
}
Symbol 433 Button
on (press) {
if (_root.score >= 1000) {
if (_root.mg != 1) {
_root.score = _root.score - 1000;
tellTarget (_root.buttonsounds2) {
gotoAndPlay (2);
};
_root.mg = 1;
}
} else {
tellTarget (_root.buttonsounds) {
gotoAndPlay (2);
};
}
}
Symbol 434 Button
on (press) {
if (_root.score >= 7000) {
if (_root.mgspeed == 0) {
_root.score = _root.score - 7000;
tellTarget (_root.buttonsounds2) {
gotoAndPlay (2);
};
_root.mgspeed = 1;
gotoAndPlay (2);
} else {
tellTarget (_root.buttonsounds) {
gotoAndPlay (2);
};
}
} else {
tellTarget (_root.buttonsounds) {
gotoAndPlay (2);
};
}
}
Symbol 435 Button
on (press) {
if (_root.score >= 100) {
_root.score = _root.score - 100;
tellTarget (_root.buttonsounds2) {
gotoAndPlay (2);
};
_root.kuler2 = _root.kuler2 + 100;
} else {
tellTarget (_root.buttonsounds) {
gotoAndPlay (2);
};
}
}
Symbol 436 Button
on (press) {
if (_root.score >= 25000) {
if (_root.laser == 0) {
_root.score = _root.score - 25000;
tellTarget (_root.buttonsounds2) {
gotoAndPlay (2);
};
_root.laser = 1;
}
} else {
tellTarget (_root.buttonsounds) {
gotoAndPlay (2);
};
}
}
Symbol 437 Button
on (press) {
if (_root.score >= 50000) {
if (_root.laser == 1) {
_root.score = _root.score - 50000;
tellTarget (_root.buttonsounds2) {
gotoAndPlay (2);
};
_root.laser = 2;
} else {
tellTarget (_root.buttonsounds) {
gotoAndPlay (2);
};
}
} else {
tellTarget (_root.buttonsounds) {
gotoAndPlay (2);
};
}
}
Symbol 438 Button
on (press) {
if (_root.basehealth <= _root.makshealth) {
if (_root.score >= _root.bhcost) {
_root.score = _root.score - _root.bhcost;
tellTarget (_root.buttonsounds2) {
gotoAndPlay (2);
};
_root.basehealth = _root.basehealth + 1;
} else {
tellTarget (_root.buttonsounds) {
gotoAndPlay (2);
};
}
} else {
tellTarget (_root.buttonsounds) {
gotoAndPlay (2);
};
}
}
Symbol 439 Button
on (press) {
if (_root.score >= _root.dmgcost) {
_root.score = _root.score - _root.dmgcost;
tellTarget (_root.buttonsounds2) {
gotoAndPlay (2);
};
_root.damage = _root.damage + 1;
_root.dmgcost = _root.dmgcost * 4;
} else {
tellTarget (_root.buttonsounds) {
gotoAndPlay (2);
};
}
}
Symbol 440 Button
on (press) {
if (_root.score >= 10000) {
if (_root.laser >= 1) {
_root.score = _root.score - 10000;
tellTarget (_root.buttonsounds2) {
gotoAndPlay (2);
};
_root.batteri = _root.batteri + 10;
} else {
tellTarget (_root.buttonsounds) {
gotoAndPlay (2);
};
}
} else {
tellTarget (_root.buttonsounds) {
gotoAndPlay (2);
};
}
}
Symbol 455 MovieClip Frame 1
stop();
Symbol 455 MovieClip Frame 10
stop();
_root.run = 0;
Symbol 455 MovieClip Frame 20
_root.run = 1;
Symbol 458 MovieClip Frame 1
stop();
Symbol 460 MovieClip Frame 1
stop();
Symbol 464 MovieClip Frame 1
stop();
Symbol 466 MovieClip Frame 1
stop();
Symbol 468 MovieClip Frame 1
stop();