Frame 1
iStatus = 0;
setProperty("pBar", _xscale , 0);
Frame 2
iBytesTotal = _root.getBytesTotal();
iBytesLoaded = _root.getBytesLoaded();
iBytes = (iBytesLoaded / iBytesTotal) * 100;
setProperty("pBar", _xscale , iBytes);
sStatus = iBytes add "%";
Frame 3
if (iBytes < 100) {
gotoAndPlay (2);
} else {
sStatus = "COMPLETE";
gotoAndPlay (4);
}
Frame 4
sStatus = "COMPLETE";
Frame 515
stop();
Frame 579
stop();
function konverzija(string) {
broj = 0;
i = 0;
while (i <= (string.length - 1)) {
u = string.charAt(i);
switch (u) {
case "1" :
poz = 1 * Math.pow(10, string.length - (1 + i));
broj = broj + poz;
break;
case "2" :
poz = 2 * Math.pow(10, string.length - (1 + i));
broj = broj + poz;
break;
case "3" :
poz = 3 * Math.pow(10, string.length - (1 + i));
broj = broj + poz;
break;
case "4" :
poz = 4 * Math.pow(10, string.length - (1 + i));
broj = broj + poz;
break;
case "5" :
poz = 5 * Math.pow(10, string.length - (1 + i));
broj = broj + poz;
break;
case "6" :
poz = 6 * Math.pow(10, string.length - (1 + i));
broj = broj + poz;
break;
case "7" :
poz = 7 * Math.pow(10, string.length - (1 + i));
broj = broj + poz;
break;
case "8" :
poz = 8 * Math.pow(10, string.length - (1 + i));
broj = broj + poz;
break;
case "9" :
poz = 9 * Math.pow(10, string.length - (1 + i));
broj = broj + poz;
break;
case "0" :
poz = 0 * Math.pow(10, string.length - (1 + i));
broj = broj + poz;
}
i++;
}
return(broj);
}
Instance of Symbol 178 MovieClip "pilot_meni" in Frame 579
onClipEvent (enterFrame) {
_root.Loops = _global.br_loopa;
_root.Pilot = "/" + (_global.pilot * 3);
}
Instance of Symbol 178 MovieClip "pilot_meni" in Frame 579
onClipEvent (enterFrame) {
_root.Loops = _global.br_loopa;
_root.Pilot = "/" + (_global.pilot * 3);
}
Frame 664
stop();
Frame 665
function konverzija(string) {
broj = 0;
i = 0;
while (i <= (string.length - 1)) {
u = string.charAt(i);
switch (u) {
case "1" :
poz = 1 * Math.pow(10, string.length - (1 + i));
broj = broj + poz;
break;
case "2" :
poz = 2 * Math.pow(10, string.length - (1 + i));
broj = broj + poz;
break;
case "3" :
poz = 3 * Math.pow(10, string.length - (1 + i));
broj = broj + poz;
break;
case "4" :
poz = 4 * Math.pow(10, string.length - (1 + i));
broj = broj + poz;
break;
case "5" :
poz = 5 * Math.pow(10, string.length - (1 + i));
broj = broj + poz;
break;
case "6" :
poz = 6 * Math.pow(10, string.length - (1 + i));
broj = broj + poz;
break;
case "7" :
poz = 7 * Math.pow(10, string.length - (1 + i));
broj = broj + poz;
break;
case "8" :
poz = 8 * Math.pow(10, string.length - (1 + i));
broj = broj + poz;
break;
case "9" :
poz = 9 * Math.pow(10, string.length - (1 + i));
broj = broj + poz;
break;
case "0" :
poz = 0 * Math.pow(10, string.length - (1 + i));
broj = broj + poz;
}
i++;
}
return(broj);
}
function kretanje_uspravno(i, k_x, k_y, flag, f) {
if (_root["au" + i]) {
if ((flag == 0) && (_root["au" + i]._y <= k_y)) {
_root["au" + i]._y = _root["au" + i]._y + 7;
_root["au" + i]._x = k_x - 50;
}
if ((flag == 0) && (_root["au" + i]._y > k_y)) {
flag = 1;
}
if (flag == 1) {
f = f + 0.1;
x = Math.cos(f) * 50;
y = Math.sin(f) * 50;
if (_root["au" + i]._x > k_x) {
_root["au" + i]._rotation = Math.cos(f) * 90;
} else {
_root["au" + i]._rotation = ((-Math.cos(f)) * 90) + 180;
}
_root["au" + i]._x = k_x + y;
_root["au" + i]._y = k_y + x;
}
if ((flag == 1) && (_root["au" + i]._x > (k_x + 49))) {
flag = 2;
}
if (flag == 2) {
_root["au" + i]._rotation = 0;
_root["au" + i]._y = _root["au" + i]._y - 7;
_root["au" + i]._x = k_x + 50;
if (_root["au" + i]._y < -10) {
_root["au" + i].play();
}
}
_global["niz_uspravno" + i] = [k_x, k_y, flag, f];
}
if (((!_root.boss1) && (_global.unistenih_au == 3)) && (!_global.poginuo)) {
_root.osvezi_au();
}
}
function osvezi_au() {
_global.unistenih_au = 0;
k_x = random(300) + 100;
k_y = random(300) + 100;
i = 1;
while (i < 4) {
duplicateMovieClip (_root.au, "au" + i, 100 + i);
_root["au" + i]._rotation = 180;
_root["au" + i].gotoAndStop(1);
_root["au" + i]._y = -70 - (50 * i);
_global["niz_uspravno" + i] = [k_x, k_y, 0, -215.05];
i++;
}
}
function kretanje_8(i, k_x, k_y, flag, f) {
if (_root["av" + i]) {
if ((flag == 0) && (_root["av" + i]._x >= k_x)) {
_root["av" + i]._x = _root["av" + i]._x - 7;
_root["av" + i]._y = k_y - 50;
}
if ((flag == 0) && (_root["av" + i]._x < k_x)) {
flag = 1;
}
if (flag == 1) {
f = f + 0.17;
x = Math.cos(f) * 50;
y = Math.sin(f) * 50;
if (_root["av" + i]._x > k_x) {
_root["av" + i]._rotation = Math.cos(f) * 90;
} else {
_root["av" + i]._rotation = ((-Math.cos(f)) * 90) + 180;
}
_root["av" + i]._x = k_x + y;
_root["av" + i]._y = k_y + x;
}
if ((flag == 1) && (_root["av" + i]._y < (k_y - 49))) {
flag = 2;
}
if (flag == 2) {
_root["av" + i]._x = _root["av" + i]._x - 7;
_root["av" + i]._y = k_y - 50;
if (_root["av" + i]._x < -10) {
_root["av" + i].play();
}
}
_global["niz_8" + i] = [k_x, k_y, flag, f];
}
if (((!_root.boss1) && (_global.unistenih_av == 3)) && (!_global.poginuo)) {
_root.osvezi_8();
}
}
function osvezi_8() {
_global.unistenih_av = 0;
k_x = random(200) + 150;
k_y = 100 + random(400);
i = 1;
while (i < 4) {
duplicateMovieClip (_root.av, "av" + i, 200 + i);
_root["av" + i]._rotation = -90;
_root["av" + i].gotoAndStop(1);
_root["av" + i]._x = 550 + (50 * i);
_global["niz_8" + i] = [k_x, k_y, 0, 59.83];
i++;
}
}
function kretanje_atg_l(i, k_x, k_y, flag, f) {
if (_root["atg_l" + i]) {
if ((flag == 0) && (_root["atg_l" + i]._y <= k_y)) {
_root["atg_l" + i]._y = _root["atg_l" + i]._y + 7;
_root["atg_l" + i]._x = k_x - 100;
}
if ((flag == 0) && (_root["atg_l" + i]._y > k_y)) {
flag = 1;
}
if (flag == 1) {
f = f + 0.07;
x = Math.cos(f) * 100;
y = Math.sin(f) * 100;
if (_root["atg_l" + i]._x < k_x) {
_root["atg_l" + i]._x = k_x + y;
_root["atg_l" + i]._y = k_y + x;
_root["atg_l" + i]._rotation = ((-Math.cos(f)) * 90) + 180;
} else {
_root["atg_l" + i]._rotation = (Math.cos(f) * -90) + 180;
_root["atg_l" + i]._x = k_x + y;
_root["atg_l" + i]._y = (k_y + 200) - x;
}
}
if ((flag == 1) && (_root["atg_l" + i]._x > (k_x + 99))) {
flag = 2;
}
if (flag == 2) {
_root["atg_l" + i]._rotation = 180;
_root["atg_l" + i]._y = _root["atg_l" + i]._y + 7;
_root["atg_l" + i]._x = k_x + 100;
if (_root["atg_l" + i]._y > 510) {
_root["atg_l" + i].play();
}
}
_global["niz_atg_l" + i] = [k_x, k_y, flag, f];
}
if (((!_root.boss1) && (_global.unistenih_atg_l == 3)) && (!_global.poginuo)) {
_root.osvezi_atg_l();
}
}
function osvezi_atg_l() {
_global.unistenih_atg_l = 0;
k_x = random(250) + 100;
k_y = random(300) + 100;
i = 1;
while (i < 4) {
duplicateMovieClip (_root.atg, "atg_l" + i, 300 + i);
_root["atg_l" + i]._rotation = 180;
_root["atg_l" + i].gotoAndStop(1);
_root["atg_l" + i]._y = -70 - (50 * i);
_global["niz_atg_l" + i] = [k_x, k_y, 0, -215.15];
i++;
}
}
function detektovanje_sudara_aliena() {
k = 1;
while (k < 10) {
objekat = _global.al_niz[k];
if (_root[objekat]) {
if (Math.abs(_root[objekat]._y - _root.ja._y) < 50) {
if (_root[objekat].hitTest(_root.ja)) {
if ((_root.ja._currentframe == 1) && (_root[objekat]._currentframe == 1)) {
_root.unisti_aliena(objekat, "mali");
fire.start();
_root.skindanje_hitpoena("avion", "hit_poen");
_global.points = _global.points + 30;
}
}
if (_root[objekat].hitTest(_root.ja)) {
if ((_root.ja._currentframe == 2) && (_root[objekat]._currentframe == 1)) {
_root.unisti_aliena(objekat, "mali");
fire.start();
_global.points = _global.points + 30;
_root.skindanje_hitpoena("avion", "stit");
}
}
}
}
k++;
}
}
function unisti_aliena(objekat, tip, sredstvo) {
if (!(tip === "mali")) {
} else {
_root[objekat].play();
}
}
function skindanje_hitpoena(sredstvo, sa) {
switch (sa) {
case "hit_poen" :
switch (sredstvo) {
case "avion" :
_global.moji_hitpoeni = _global.moji_hitpoeni - 5;
break;
case "metak" :
_global.moji_hitpoeni = _global.moji_hitpoeni - 1;
break;
case "sr_metak" :
_global.moji_hitpoeni = _global.moji_hitpoeni - 2;
break;
case "boss_metak" :
_global.moji_hitpoeni = _global.moji_hitpoeni - 5;
}
return;
case "stit" :
switch (sredstvo) {
case "avion" :
_global.moj_stit = _global.moj_stit - 5;
_root.postavljanje_stita();
return;
case "metak" :
_global.moj_stit = _global.moj_stit - 1;
_root.postavljanje_stita();
return;
case "sr_metak" :
_global.moj_stit = _global.moj_stit - 2;
_root.postavljanje_stita();
return;
case "boss_metak" :
_global.moj_stit = _global.moj_stit - 5;
_root.postavljanje_stita();
}
}
}
function postavljanje_stita() {
if (_global.moj_stit > 0) {
_root.ja.gotoAndStop(2);
} else {
_root.ja.play();
}
}
function kretanjeMetaka() {
k = 1;
while (k < (_global.br_metkova + 1)) {
_root["m" + k]._y = _root["m" + k]._y - 18;
if (_root["m" + k]._y < 60) {
_root.unisti_metak(k);
}
k++;
}
}
function space_dilej() {
_global.brojac_space++;
if (_global.brojac_space == 4) {
_global.space = 24;
_global.brojac_space = 0;
}
}
function unisti_metak(br) {
_root["m" + br]._x = _root["m" + _global.br_metkova]._x;
_root["m" + br]._y = _root["m" + _global.br_metkova]._y;
removeMovieClip(_root["m" + _global.br_metkova]);
_global.br_metkova--;
}
function space() {
if (((_global.spaceset == 1) && (_global.space == 24)) && (_global.keyCont)) {
_global.br_metkova++;
duplicateMovieClip (_root.m, "m" + _global.br_metkova, _global.m_depth);
if (_global.m_depth == 900) {
_global.m_depth = 500;
} else {
_global.m_depth++;
}
_root["m" + _global.br_metkova]._x = _root.ja._x;
_root["m" + _global.br_metkova]._y = _root.ja._y;
moj_strelk.start();
_global.space = 0;
_global.spaceset = 0;
}
}
function stisnut_space() {
if (Key.isDown(32)) {
_global.spaceset = 1;
}
}
function provera_pogotka() {
r = 1;
while (r < 10) {
k = 1;
while (k < (_global.br_metkova + 1)) {
objekat = _global.al_niz[r];
if ((Math.abs(_root[objekat]._y - _root["m" + k]._y) < 30) && (Math.abs(_root[objekat]._x - _root["m" + k]._x) < 30)) {
if (_root[objekat]._currentframe == 1) {
_root.unisti_metak(k);
_root[objekat].play();
fire.start();
_global.points = _global.points + 30;
}
}
k++;
}
r++;
}
if (_root.boss1) {
k = 1;
while (k < (_global.br_metkova + 1)) {
if (Math.abs(_root.boss1._y - _root["m" + k]._y) < 100) {
if (_root.boss1._currentframe == 1) {
if (_root["m" + k].hitTest(_root.boss1)) {
_root.unisti_metak(k);
_global.boss1_hitpoeni--;
}
}
}
k++;
}
}
}
function alien_trazenje() {
_global.snap_random--;
if (_global.snap_random == 0) {
i = random(_global.al_niz_br.length);
br = _global.al_niz_br[i];
objekat = _global.al_niz[br];
_root.alien_racunaj(br, objekat);
_global.ispaljenih_al_m++;
_global.al_niz_br.splice(i, 1);
_global.snap_random = _global.pucanje;
}
}
function alien_gadjanje(br) {
if (_global["ispaljivanje" + br] == true) {
i = 5;
while (i > 0) {
_root["al_m" + br]._y = _root["al_m" + br]._y + _global["nap_y" + br];
_root["al_m" + br]._x = _root["al_m" + br]._x + _global["nap_x" + br];
i--;
}
if (_root["al_m" + br]._x > 500) {
removeMovieClip(_root["al_m" + br]);
}
if (_root["al_m" + br]._x < -100) {
removeMovieClip(_root["al_m" + br]);
}
if (_root["al_m" + br]._y > 600) {
removeMovieClip(_root["al_m" + br]);
}
if (_root["al_m" + br]._y < -100) {
removeMovieClip(_root["al_m" + br]);
}
}
}
function alien_racunaj(br, objekat) {
duplicateMovieClip (_root.al_m, "al_m" + br, 400 + br);
_root["al_m" + br]._x = _root[objekat]._x;
_root["al_m" + br]._y = _root[objekat]._y;
x_razlika = _root.ja._x - _root["al_m" + br]._x;
y_razlika = _root.ja._y - _root["al_m" + br]._y;
y_br_koraka = Math.abs(y_razlika * 0.5);
x_br_koraka = Math.abs(x_razlika * 0.5);
srednji_br_koraka = Math.round((x_br_koraka + y_br_koraka) / 2);
_global["nap_x" + br] = x_razlika / srednji_br_koraka;
_global["nap_y" + br] = y_razlika / srednji_br_koraka;
if ((((_root[objekat]._x > 20) && (_root[objekat]._x < 400)) && (_root[objekat]._y < 400)) && (_root[objekat]._y > 20)) {
_root["al_m" + br]._alpha = 100;
_global["ispaljivanje" + br] = true;
} else {
_root["al_m" + br]._alpha = 0;
}
}
function alien_pogodak(br) {
if (Math.abs(_root["al_m" + br]._y - _root.ja._y) < 30) {
if (Math.abs(_root["al_m" + br]._x - _root.ja._x) < 30) {
if (_root.ja._currentframe == 1) {
if (_root["al_m" + br]._alpha == 100) {
_root.skindanje_hitpoena("metak", "hit_poen");
removeMovieClip(_root["al_m" + br]);
thumph.start();
}
}
if (_root.ja._currentframe == 2) {
if (_root["al_m" + br]._alpha == 100) {
_root.skindanje_hitpoena("metak", "stit");
removeMovieClip(_root["al_m" + br]);
thumph.start();
}
}
}
}
}
function detektovanje_sudara_bombe(sr_bomba) {
k = 1;
while (k < 10) {
objekat = _global.al_niz[k];
if (_root[objekat]) {
if (Math.abs(_root[objekat]._y - _root.bomba1._y) < 50) {
if (_root.bomba1._currentframe == 1) {
if (_root[objekat].hitTest(_root.bomba1)) {
_root.bomba1.play();
explode.start();
}
}
}
if (_root.bomba1._currentframe > 4) {
_global.bomba_ispaljena = false;
if (_root[objekat].hitTest(_root.bomba1)) {
_root[objekat].play();
fire.start();
_global.points = _global.points + 30;
}
}
}
k++;
}
if (_root.srednji) {
if (Math.abs(_root.srednji._y - _root.bomba1._y) < 100) {
if (_root.srednji._currentframe == 32) {
if (_root.bomba1._currentframe == 1) {
if (_root.srednji.hitTest(_root.bomba1)) {
_global.bomba_ispaljena = false;
_root.bomba1.play();
explode.start();
}
}
if (_root.bomba1._currentframe > 4) {
if (sr_bomba) {
if (_root.srednji.hitTest(_root.bomba1)) {
_global.srednji_hitpoen = _global.srednji_hitpoen - 6;
_global.sr_bomba = false;
}
}
}
}
}
}
if (_root.boss1) {
if (Math.abs(_root.boss1._y - _root.bomba1._y) < 150) {
if (_root.boss1._currentframe == 1) {
if (_root.bomba1._currentframe == 1) {
if (_root.boss1.hitTest(_root.bomba1)) {
_global.bomba_ispaljena = false;
_root.bomba1.play();
explode.start();
}
}
if (_root.bomba1._currentframe > 4) {
if (_global.boss1_bomba) {
if (_root.boss1.hitTest(_root.bomba1)) {
_global.boss1_hitpoeni = _global.boss1_hitpoeni - 6;
_global.boss1_bomba = false;
}
}
}
}
}
}
}
function kretanje_bombe() {
_root.bomba1._y = _root.bomba1._y - 18;
_root.bomba1._alpha = 100;
if (_root.bomba1._y < 100) {
_global.bomba_ispaljena = false;
_root.bomba1.play();
explode.start();
}
}
function kretanje_beama() {
_root.beam1._y = _root.beam1._y - 24;
_root.beam1._alpha = 100;
if (_root.beam1._y < 0) {
_global.beam_ispaljen = false;
removeMovieClip(_root.beam1);
}
}
function ispaljivanje_bombe(b) {
if (b == 65) {
duplicateMovieClip (_root.bombaOBJ, "bomba1", 1202);
_root.bomba1._x = _root.ja._x;
_root.bomba1._y = _root.ja._y;
_root.bomba1._alpha = 100;
_global.sr_bomba = true;
_global.boss1_bomba = true;
_global.bomba_ispaljena = true;
}
if (b == 66) {
duplicateMovieClip (_root.beamOBJ, "beam1", 1101);
_root.beam1._alpha = 0;
_root.beam1._x = _root.ja._x;
_root.beam1._y = _root.ja._y;
_global.sr_beam = true;
_global.boss_beam = true;
_global.beam_ispaljen = true;
strelk1.start();
}
}
function detektovanje_sudara_beama(sr_beam) {
k = 1;
while (k < 10) {
objekat = _global.al_niz[k];
if (_root[objekat]) {
if (Math.abs(_root[objekat]._y - _root.beam1._y) < 50) {
if (_root[objekat].hitTest(_root.beam1)) {
_root[objekat].play();
_global.points = _global.points + 30;
fire.start();
}
}
}
k++;
}
if (_root.srednji && (sr_beam)) {
if (Math.abs(_root.srednji._y - _root.beam1._y) < 50) {
if (_root.srednji._currentframe == 32) {
if (_root.beam1.hitTest(_root.srednji)) {
_global.sr_beam = false;
_global.srednji_hitpoen = _global.srednji_hitpoen - 3;
}
}
}
}
if (_root.boss1 && (_global.boss_beam)) {
if (Math.abs(_root.boss1._y - _root.beam1._y) < 100) {
if (_root.boss1._currentframe == 1) {
if (_root.beam1.hitTest(_root.boss1)) {
_global.boss_beam = false;
_global.boss1_hitpoeni = _global.boss1_hitpoeni - 3;
}
}
}
}
}
function set_glava() {
_root.glava1.Top = "top:" + _global.tops;
_root.glava1.Ime = _global.Ime;
if (_global.moji_hitpoeni < 0) {
_global.lives--;
if (_global.lives > 0) {
_global.moji_hitpoeni = 75;
_root.ja.gotoAndPlay(14);
} else {
_global.victory = false;
_global.teleport = true;
_root.ja.gotoAndPlay(14);
}
}
if (_root.boss1) {
if (_global.boss1_hitpoeni < 0) {
_root.boss1.play();
} else {
_root.glava1.boss1_hitbar1._alpha = 100;
boss1_stanje = (_global.boss1_hitpoeni * 100) / 60;
_root.glava1.boss1_hitbar1.pokrivac_bosshita1._x = _root.glava1.boss1_hitbar1.boss1_hit1._x + boss1_stanje;
}
}
if (_global.moj_stit < 0) {
_global.moj_stit = 0;
}
_root.glava1.beam = _global.beama_u_sarzeru;
_root.glava1.stit = _global.moj_stit;
stanje = (_global.moji_hitpoeni * 100) / 75;
_root.glava1.moj_hitbar.pokrivac_mog_hita._x = _root.glava1.moj_hitbar.moj_hit._x + stanje;
_root.glava1.bomba = _global.bombi_u_sarzeru;
_root.glava1.points = "rezultat: " + _global.points;
_root.glava1.ja = _global.lives;
}
function kretanje_srednjeg(flag) {
if (flag == 1) {
_root.srednji._y = _root.srednji._y - 1;
}
if ((flag == 1) && (_root.srednji._y < 400)) {
flag = 2;
_root.srednji.play();
}
if (flag == 2) {
_root.srednji._y = _root.srednji._y - 1;
_root.srednji._x = _root.srednji._x - 1;
}
if ((flag == 2) && (_root.srednji._y < 350)) {
flag = 3;
}
if (flag == 3) {
_root.srednji._y = _root.srednji._y - 1;
}
if ((flag == 3) && (_root.srednji._y < 150)) {
flag = 4;
}
if (flag == 4) {
_root.srednji._y = _root.srednji._y - 1;
_root.srednji._x = _root.srednji._x + 1;
}
if (_root.srednji._y < -20) {
removeMovieClip(_root.srednji);
_global.srednji_timer = 60;
flag = 1;
}
if (_root.srednji._x < -40) {
removeMovieClip(_root.srednji);
_global.srednji_timer = 60;
flag = 1;
}
if (_global.srednji_hitpoen < 0) {
if (_root.srednji._currentframe == 32) {
_global.srednji_hitpoen = 0;
_global.points = _global.points + 1000;
_root.srednji.play();
fire.start();
_global.srednji_timer = 60;
flag = 1;
}
}
_global.srednji_flag = flag;
k = 1;
while (k < (_global.br_metkova + 1)) {
if (Math.abs(_root["m" + k]._y - _root.srednji._y) < 50) {
if (_root.srednji._currentframe == 32) {
if (_root["m" + k].hitTest(_root.srednji)) {
_root.unisti_metak(k);
_global.srednji_hitpoen--;
}
}
}
k++;
}
if (Math.abs(_root.ja._y - _root.srednji._y) < 50) {
if (_root.srednji._currentframe == 32) {
if (_root.ja.hitTest(_root.srednji)) {
if (_root.ja._currentframe == 1) {
_root.skindanje_hitpoena("avion", "hit_poen");
}
if (_root.ja._currentframe == 2) {
_root.skindanje_hitpoena("avion", "stit");
}
if (!_global.hitTest_sr) {
_global.hitTest_sr = true;
_global.srednji_hitpoen = _global.srednji_hitpoen - 5;
}
} else {
_global.hitTest_sr = false;
}
}
}
}
function pucanje_srednjeg(sr_p_timer) {
if ((_root.srednji._currentframe == 32) && (!_global.poginuo)) {
sr_p_timer--;
}
if (sr_p_timer == 0) {
sr_p_timer = 36;
i = 1;
while (i < 4) {
removeMovieClip(_root["sr_alm" + i]);
duplicateMovieClip (_root.al_m, "sr_alm" + i, 330 + i);
_root["sr_alm" + i]._y = _root.srednji._y;
_root["sr_alm" + i]._x = _root.srednji._x;
i++;
}
x_razlika = _root.ja._x - _root.sr_alm1._x;
y_razlika = _root.ja._y - _root.sr_alm1._y;
y_br_koraka = Math.abs(y_razlika * 0.5);
x_br_koraka = Math.abs(x_razlika * 0.5);
srednji_br_koraka = Math.round((x_br_koraka + y_br_koraka) / 2);
_global.nap_xsr1 = x_razlika / srednji_br_koraka;
_global.nap_ysr1 = y_razlika / srednji_br_koraka;
k = 2;
while (k < 4) {
_global["nap_ysr" + k] = _global.nap_ysr1 * (k / 3);
_global["nap_xsr" + k] = _global.nap_xsr1 * (k / 1.5);
k++;
}
}
t = 1;
while (t < 4) {
if (_root["sr_alm" + t]) {
_root["sr_alm" + t]._y = _root["sr_alm" + t]._y + (_global["nap_ysr" + t] * 4);
_root["sr_alm" + t]._x = _root["sr_alm" + t]._x + (_global["nap_xsr" + t] * 4);
if (Math.abs(_root["sr_alm" + t]._y - _root.ja._y) < 50) {
if (_root["sr_alm" + t].hitTest(_root.ja)) {
if (_root.ja._currentframe == 1) {
_root.skindanje_hitpoena("sr_metak", "hit_poen");
removeMovieClip(_root["sr_alm" + t]);
thumph.start();
}
if (_root.ja._currentframe == 2) {
_root.skindanje_hitpoena("sr_metak", "stit");
removeMovieClip(_root["sr_alm" + t]);
thumph.start();
}
}
}
}
t++;
}
_global.sr_p_timer = sr_p_timer;
}
function boss() {
_global.brojac--;
if (_global.brojac == 0) {
cilj_x = 100 + random(300);
cilj_y = 50 + random(200);
_global.brojac = 14;
nap_x = (cilj_x - _root.boss1._x) / 100;
nap_y = (cilj_y - _root.boss1._y) / 100;
}
i = 1;
while (i < 6) {
_root.boss1._y = _root.boss1._y + nap_y;
_root.boss1._x = _root.boss1._x + nap_x;
i++;
}
}
function boss_cilj() {
_global.bos_pucanje_timer--;
if (_global.bos_pucanje_timer == 0) {
_global.f = _global.f * -1;
_global.bos_pucanje_timer = 3;
_global.boss_m++;
if (_global.boss_m == 10) {
_global.boss_m = 1;
}
duplicateMovieClip (_root.al_m, "boss_m" + _global.boss_m, 2660 + _global.boss_m);
_root["boss_m" + _global.boss_m]._y = _root.boss1._y + 65;
_root["boss_m" + _global.boss_m]._x = _root.boss1._x + (25 * _global.f);
x_razlika = _root.ja._x - _root["boss_m" + _global.boss_m]._x;
y_razlika = _root.ja._y - _root["boss_m" + _global.boss_m]._y;
y_br_koraka = Math.abs(y_razlika * 0.5);
x_br_koraka = Math.abs(x_razlika * 0.5);
srednji_br_koraka = Math.round((x_br_koraka + y_br_koraka) / 2);
_global["nap_x_boss_m" + _global.boss_m] = x_razlika / srednji_br_koraka;
_global["nap_y_boss_m" + _global.boss_m] = y_razlika / srednji_br_koraka;
}
}
function boss_m_kretanje() {
i = 1;
while (i < 12) {
_root["boss_m" + i]._y = _root["boss_m" + i]._y + (_global["nap_y_boss_m" + i] * 5);
_root["boss_m" + i]._x = _root["boss_m" + i]._x + (_global["nap_x_boss_m" + i] * 5);
if (Math.abs(_root["boss_m" + i]._y - _root.ja._y) < 50) {
if (_root["boss_m" + i].hitTest(_root.ja)) {
if (_root.ja._currentframe == 1) {
fire.start();
_root.skindanje_hitpoena("boss_metak", "hit_poen");
removeMovieClip(_root["boss_m" + i]);
}
if (_root.ja._currentframe == 2) {
fire.start();
_root.skindanje_hitpoena("boss_metak", "stit");
removeMovieClip(_root["boss_m" + i]);
}
}
}
i++;
}
}
function kretanje_oblaka() {
_root.t1._y = _root.t1._y + 10;
_root.t2._y = _root.t2._y + 10;
_root.t3._y = _root.t3._y + 10;
if (_root.t1._y > 500) {
_root.t1._y = _root.t3._y - 395;
e = 1;
while (e < 4) {
_root.t1["rif" + e]._y = random(400);
_root.t1["rif" + e]._x = random(300);
e++;
}
}
if (_root.t2._y > 500) {
_root.t2._y = _root.t1._y - 395;
e = 1;
while (e < 4) {
_root.t2["rif" + e]._y = random(400);
_root.t2["rif" + e]._x = random(300);
e++;
}
}
if (_root.t3._y > 500) {
_root.t3._y = _root.t2._y - 395;
e = 1;
while (e < 4) {
_root.t3["rif" + e]._y = random(300);
_root.t3["rif" + e]._x = random(400);
e++;
}
}
}
_global.lives = 3;
_global.pocetak = 50;
_global.moji_hitpoeni = 75;
_global.poginuo = false;
_global.keyCont = true;
_global.flag_life = 0;
_global.bombi_u_sarzeru = 1;
_global.beama_u_sarzeru = 1;
strelk1 = new Sound();
strelk1.attachSound("STRELK");
strelk1.setVolume(10);
moj_strelk = new Sound();
moj_strelk.attachSound("strelk2");
moj_strelk.setVolume(20);
thumph = new Sound();
thumph.attachSound("thumphi");
thumph.setVolume(100);
fire = new Sound();
fire.attachSound("fire2");
fire.setVolume(20);
explode = new Sound();
explode.attachSound("explode3");
explode.setVolume(10);
_root.bazaKraj1.swapDepths(2551);
_root.baza.swapDepths(2550);
_root.teleportT.swapDepths(998);
_root.ja.swapDepths(999);
_root.glava1.swapDepths(2549);
_root.pripravise1.swapDepths(2548);
_global.pauza = 0;
_global.unpauza = 0;
_global.loop = true;
_global.boss1_hitpoeni = 60;
_global.bos_pucanje_timer = 52;
_global.f = 1;
_global.boss_m = 1;
_global.brojac = 28;
_global.srednji_flag = 1;
_global.srednji_timer = 250;
_global.sr_p_timer = 60;
_global.unistenih_au = 0;
_global.unistenih_av = 0;
_global.unistenih_atg_l = 0;
_global.br_teleporta = 6;
_root.osvezi_8();
_root.osvezi_atg_l();
_root.osvezi_au();
_global.br_metkova = 1;
_global.m_depth = 500;
_global.brojac_space = 0;
_global.snap_random = 10;
_global.pucanje = 28;
_global.ispaljenih_al_m = 0;
_global.teleport = false;
_global.al_niz_br = [1, 2, 3, 4, 5, 6, 7, 8, 9];
_global.al_niz = ["x", "av1", "av2", "av3", "au1", "au2", "au3", "atg_l1", "atg_l2", "atg_l3"];
stop();
Instance of Symbol 239 MovieClip "ja" in Frame 665
onClipEvent (load) {
_global.keyCont = true;
leva_i = 20;
desna_i = 380;
gornja_i = 40;
donja_i = 480;
}
onClipEvent (enterFrame) {
if (_global.keyCont) {
if (Key.isDown(38) && (_root.ja._y > gornja_i)) {
_root.ja._y = _root.ja._y - 14;
}
if (Key.isDown(40) && (_root.ja._y < donja_i)) {
_root.ja._y = _root.ja._y + 14;
}
if (Key.isDown(37) && (_root.ja._x > leva_i)) {
_root.ja._x = _root.ja._x - 14;
}
if (Key.isDown(39) && (_root.ja._x < desna_i)) {
_root.ja._x = _root.ja._x + 14;
}
}
}
Instance of Symbol 313 MovieClip "script" in Frame 665
onClipEvent (enterFrame) {
if (_global.pocetak > 0) {
_global.pocetak--;
} else {
_global.pocetak = 0;
}
if ((_global.flag_life == 0) && (_global.points > 60000)) {
_global.flag_life = 1;
_global.lives++;
}
if (_root.ja._currentframe == 1) {
if (_global.moj_stit > 0) {
_root.ja.gotoAndStop(2);
}
}
if (_root.ja._currentframe == 2) {
if (_global.moj_stit <= 0) {
_root.ja.gotoAndStop(1);
}
}
if (!_global.teleport) {
_global.boss_timer--;
if (_global.boss_timer == 0) {
duplicateMovieClip (_root.bo, "boss1", 222);
}
if (!(((_root.boss1 && (_global.unistenih_au > 2)) && (_global.unistenih_atg_l > 2)) && (_global.unistenih_av > 2))) {
if (_global.pocetak == 0) {
i = 1;
while (i < 4) {
_root.kretanje_uspravno(i, _global["niz_uspravno" + i][0], _global["niz_uspravno" + i][1], _global["niz_uspravno" + i][2], _global["niz_uspravno" + i][3]);
_root.kretanje_8(i, _global["niz_8" + i][0], _global["niz_8" + i][1], _global["niz_8" + i][2], _global["niz_8" + i][3]);
_root.kretanje_atg_l(i, _global["niz_atg_l" + i][0], _global["niz_atg_l" + i][1], _global["niz_atg_l" + i][2], _global["niz_atg_l" + i][3]);
i++;
}
}
if (!_global.poginuo) {
d = 1;
while (d <= _global.al_niz_br.length) {
_root.alien_trazenje();
d++;
}
}
} else {
if (_root.boss1._currentframe == 1) {
_root.boss();
if (!_global.poginuo) {
_root.boss_cilj();
}
}
_root.boss_m_kretanje();
}
d = 1;
while (d <= 10) {
if (_root["al_m" + d]) {
_root.alien_gadjanje(d);
_root.alien_pogodak(d);
}
d++;
}
_root.detektovanje_sudara_aliena();
_root.provera_pogotka();
_root.set_glava();
_root.kretanjeMetaka();
_root.stisnut_space();
_root.space();
_root.space_dilej();
if (_global.ispaljenih_al_m == 9) {
_global.al_niz_br = [1, 2, 3, 4, 5, 6, 7, 8, 9];
_global.ispaljenih_al_m = 0;
}
if (_root.bomba1) {
_root.detektovanje_sudara_bombe(_global.sr_bomba);
}
if (_root.beam1) {
_root.detektovanje_sudara_beama(_global.sr_beam);
}
if (_global.bomba_ispaljena) {
_root.kretanje_bombe();
} else if (((Key.isDown(65) && (!_root.bomba1)) && (_global.bombi_u_sarzeru > 0)) && (_global.keyCont)) {
_global.bombi_u_sarzeru--;
_root.ispaljivanje_bombe(65);
}
if (_global.beam_ispaljen) {
_root.kretanje_beama();
} else if (((Key.isDown(83) && (!_root.beam1)) && (_global.beama_u_sarzeru > 0)) && (_global.keyCont)) {
_global.beama_u_sarzeru--;
_root.ispaljivanje_bombe(66);
}
if ((((Key.isDown(68) && ((_root.ja._currentframe == 1) or (_root.ja._currentframe == 2))) && (_global.loop)) && (_global.br_loopa > 0)) && (_global.keyCont)) {
_global.br_loopa--;
_global.loop = false;
_root.ja.gotoAndPlay(41);
}
if (!Key.isDown(68)) {
_global.loop = true;
}
if ((_global.br_teleporta > 0) && (!_global.poginuo)) {
_root.teleportT._y = _root.teleportT._y + 10;
if (Math.abs(_root.teleportT._y - _root.ja._y) < 50) {
if (_root.teleportT._currentframe == 1) {
if (_root.teleportT.hitTest(_root.ja)) {
_root.baza._y = 250;
_root.baza._x = 200;
_root.baza.Teleport = _global.br_teleporta;
_root.baza.Kredit = _global.kredit;
_root.baza.Poeni = _global.points;
_root.baza.bomba = _global.bombi_u_sarzeru;
_root.baza.beam = _global.beama_u_sarzeru;
_root.baza.hitpoeni = _global.moji_hitpoeni;
_root.baza.stit = _global.moj_stit;
_root.teleportT.gotoAndStop(2);
_global.teleport = true;
}
}
}
if (_root.teleportT._y > 3000) {
_root.teleportT.gotoAndStop(1);
_root.teleportT._y = -4000;
_root.teleportT._x = 70 + random(300);
_global.br_teleporta--;
}
}
if (_global.br_teleporta == 1) {
_global.boss_timer = 80;
}
_root.pucanje_srednjeg(_global.sr_p_timer);
_global.srednji_timer--;
if (((_global.srednji_timer == 0) && (!_root.srednji)) && (!_root.boss1)) {
duplicateMovieClip (_root.srednji1, "srednji", 51);
_global.srednji_hitpoen = 15;
_root.srednji._y = 540;
_root.srednji._x = random(200) + 150;
}
if (_root.srednji) {
_root.kretanje_srednjeg(_global.srednji_flag);
}
if (!_global.poginuo) {
_root.kretanje_oblaka();
}
}
if (Key.isDown(80) && (_global.unpauza == 0)) {
if (_global.pauza == 1) {
_global.keyCont = true;
_global.pauza = 0;
_global.teleport = false;
} else if (_global.pauza == 0) {
_global.teleport = true;
_global.keyCont = false;
_global.pauza = 1;
}
_global.unpauza = 1;
}
if (!Key.isDown(80)) {
_global.unpauza = 0;
}
}
Frame 666
if (!_global.victory) {
_root.script.unloadMovie();
_root.m.unloadMovie();
stop();
_root.ja.unloadMovie();
_root.defeat._y = 250;
_root.defeat._x = 200;
_root.defeat.swapDepths(13000);
_root.defeat.Rezultat = _global.points;
_root.defeat.play();
_root.glava1.unloadMovie();
_root.pripravise1.unloadMovie();
}
_root.glava1.unloadMovie();
_root.pripravise1.unloadMovie();
_root.script.unloadMovie();
_root.m.unloadMovie();
_root.ja.unloadMovie();
i = 1;
while (i < 100) {
removeMovieClip(_root["m" + i]);
removeMovieClip(_root["atg_l" + i]);
removeMovieClip(_root["av" + i]);
removeMovieClip(_root["au" + i]);
removeMovieClip(_root["sr_alm" + i]);
removeMovieClip(_root["al_m" + i]);
removeMovieClip(_root["boss_m" + i]);
i++;
}
removeMovieClip(_root.boss1);
removeMovieClip(_root.srednji);
Frame 667
stop();
gotoAndStop (668);
Frame 668
play();
Frame 707
gotoAndPlay (668);
Symbol 32 MovieClip Frame 472
stop();
Symbol 40 MovieClip Frame 2
stop();
Symbol 43 Button
on (release) {
gotoAndPlay (579);
}
Symbol 51 Button
on (release) {
gotoAndPlay (516);
}
Symbol 63 Button
on (release) {
getURL ("http://www.games-area.com", "_blank");
}
Symbol 73 Button
on (release) {
Set("_root:quality", "low");
toggleHighQuality();
gotoAndPlay (516);
}
Symbol 85 Button
on (release) {
gotoAndStop (515);
}
Symbol 106 Button
on (release) {
if (_global.points >= 30000) {
_global.points = _global.points - 30000;
_global.kredit = _global.kredit + 2000;
Kredit = _global.kredit;
Poeni = _global.points;
_global.UKredit = _global.UKredit + 2000;
}
}
Symbol 108 Button
on (release) {
if ((_global.kredit >= 150) && (_global.moji_hitpoeni < 75)) {
_global.kredit = _global.kredit - 150;
_global.moji_hitpoeni = 75;
hitpoeni = 75;
Kredit = _global.kredit;
_global.kupHit = _global.kupHit + 150;
}
}
Symbol 109 Button
on (release) {
if ((_global.kredit >= 150) && (_global.moj_stit < 50)) {
_global.kredit = _global.kredit - 150;
_global.moj_stit = 50;
stit = 50;
Kredit = _global.kredit;
_global.kupStit = _global.kupStit + 150;
}
}
Symbol 115 Button
on (release) {
if (_global.Kredit >= 750) {
_global.Kredit = _global.Kredit - 750;
_global.beama_u_sarzeru = _global.beama_u_sarzeru + 5;
beam = _global.beama_u_sarzeru;
Kredit = _global.Kredit;
_global.kupBeama = _global.kupBeama + 750;
}
}
Symbol 116 Button
on (release) {
if (_global.kredit >= 150) {
_global.kredit = _global.kredit - 150;
_global.bombi_u_sarzeru = _global.bombi_u_sarzeru + 1;
bomba = _global.bombi_u_sarzeru;
Kredit = _global.kredit;
_global.kupBombi = _global.kupBombi + 150;
}
}
Symbol 120 Button
on (release) {
if (_global.beama_u_sarzeru >= 5) {
_global.Kredit = _global.Kredit + 750;
_global.beama_u_sarzeru = _global.beama_u_sarzeru - 5;
beam = _global.beama_u_sarzeru;
Kredit = _global.Kredit;
_global.kupBeama = _global.kupBeama - 750;
}
}
Symbol 121 Button
on (release) {
if (_global.bombi_u_sarzeru >= 1) {
_global.kredit = _global.kredit + 150;
_global.bombi_u_sarzeru = _global.bombi_u_sarzeru - 1;
bomba = _global.bombi_u_sarzeru;
Kredit = _global.kredit;
_global.kupBombi = _global.kupBombi - 150;
}
}
Symbol 122 Button
on (release) {
_root.pilot_meni._x = 200;
_root.pilot_meni._y = 250;
}
Symbol 123 Button
on (release) {
if (_global.kredit >= 150) {
if (_global.pilot == 1) {
if (_global.br_loopa < 3) {
_global.br_loopa++;
_global.kredit = _global.kredit - 150;
_global.kupPilot = _global.kupPilot + 150;
}
}
if (_global.pilot == 2) {
if (_global.br_loopa < 6) {
_global.br_loopa++;
_global.kredit = _global.kredit - 150;
_global.kupPilot = _global.kupPilot + 150;
}
}
}
Poeni = _global.points;
Kredit = _global.kredit;
Nivo = _global.Nivo;
Zivoti = _global.lives;
Teleport = _global.br_teleporta;
hitpoeni = _global.moji_hitpoeni;
stit = _global.moj_stit;
beam = _global.beama_u_sarzeru;
bomba = _global.bombi_u_sarzeru;
Loops = _global.br_loopa;
}
Symbol 124 Button
on (release) {
if (_global.br_loopa > 0) {
_global.br_loopa--;
_global.kredit = _global.kredit + 150;
_global.kupPilot = _global.kupPilot - 150;
}
Poeni = _global.points;
Kredit = _global.kredit;
Nivo = _global.Nivo;
Zivoti = _global.lives;
Teleport = _global.br_teleporta;
hitpoeni = _global.moji_hitpoeni;
stit = _global.moj_stit;
beam = _global.beama_u_sarzeru;
bomba = _global.bombi_u_sarzeru;
Loops = _global.br_loopa;
}
Symbol 133 Button
on (release) {
getURL ("http://www.games-area.com/enter.php", "_blank");
}
Symbol 148 Button
on (release) {
gotoAndPlay (580);
}
Symbol 154 Button
on (release) {
if (_global.pilot == 1) {
PilotSelect = "YOU ALREDY HAVE THIS PILOT - 3 LOOPS PER LEVEL!";
}
if (_global.pilot == 0) {
if (_global.kredit >= 3000) {
PilotSelect = "YOUR PILOT CAN DO 3 LOOPS PER LEVEL!";
_global.kredit = _global.kredit - 3000;
_global.pilot = 1;
_global.kupPilot = _global.kupPilot + 3000;
} else {
PilotSelect = "YOU DON'T HAVE ENOUGH CREDIT!";
}
}
if (_global.pilot == 2) {
PilotSelect = "YOUR PILOT CAN DO 3 LOOPS PER LEVEL!";
_global.kredit = _global.kredit + 3000;
_global.pilot = 1;
_global.kupPilot = _global.kupPilot - 3000;
}
}
Symbol 157 Button
on (release) {
if (_global.pilot == 2) {
PilotSelect = "YOU ALREDY HAVE THIS PILOT - 6 LOOPS PER LEVEL!";
}
if (_global.pilot == 1) {
if (_global.kredit >= 3000) {
PilotSelect = "YOUR PILOT CAN DO 6 LOOPS PER LEVEL!";
_global.kredit = _global.kredit - 3000;
_global.pilot = 2;
_global.kupPilot = _global.kupPilot + 3000;
} else {
PilotSelect = "YOU DON'T HAVE ENOUGH CREDIT!";
}
}
if (_global.pilot == 0) {
if (_global.kredit >= 6000) {
PilotSelect = "YOUR PILOT CAN DO 6 LOOPS PER LEVEL!";
_global.kredit = _global.kredit - 6000;
_global.pilot = 2;
_global.kupPilot = _global.kupPilot + 6000;
} else {
PilotSelect = "YOU DON'T HAVE ENOUGH CREDIT!";
}
}
}
Symbol 165 Button
on (release) {
if (_global.pilot == 1) {
PilotSelect = "YOUR PILOT CAN'T DO LOOPS!";
_global.kredit = _global.kredit + 3000;
_global.pilot = 0;
_global.kupPilot = _global.kupPilot - 3000;
}
if (_global.pilot == 2) {
PilotSelect = "YOUR PILOT CAN'T DO LOOPS!";
_global.kredit = _global.kredit + 6000;
_global.pilot = 0;
_global.kupPilot = _global.kupPilot - 6000;
}
if (_global.pilot == 0) {
PilotSelect = "YOUR PILOT CAN'T DO LOOPS!";
}
}
Symbol 168 MovieClip Frame 1
stop();
Symbol 168 MovieClip Frame 2
stop();
Symbol 172 MovieClip Frame 1
stop();
Symbol 172 MovieClip Frame 2
stop();
Symbol 173 Button
on (release) {
this._x = -400;
_parent.Poeni = _global.points;
_parent.Kredit = _global.kredit;
_parent.Nivo = _global.Nivo;
_parent.Zivoti = _global.lives;
_parent.Teleport = _global.br_teleporta;
_parent.hitpoeni = _global.moji_hitpoeni;
_parent.stit = _global.moj_stit;
_parent.beam = _global.beama_u_sarzeru;
_parent.bomba = _global.bombi_u_sarzeru;
_parent.Loops = _global.br_loopa;
}
Symbol 178 MovieClip Frame 1
stop();
Instance of Symbol 168 MovieClip "p3" in Symbol 178 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_global.kredit >= 6000) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 172 MovieClip "p2" in Symbol 178 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_global.kredit >= 3000) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Symbol 186 Button
on (release) {
gotoAndPlay (665);
}
Symbol 197 MovieClip Frame 1
stop();
Symbol 197 MovieClip Frame 3
myColor = new Color(this);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:"0", ga:"100", gb:"0", ba:"100", bb:"0", aa:"100", ab:"100"};
myColor.setTransform(myColorTransform);
Symbol 197 MovieClip Frame 6
_global.unistenih_au++;
removeMovieClip(this);
Symbol 201 MovieClip Frame 1
stop();
Symbol 201 MovieClip Frame 3
myColor = new Color(this);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:"0", ga:"100", gb:"0", ba:"100", bb:"0", aa:"100", ab:"100"};
myColor.setTransform(myColorTransform);
Symbol 201 MovieClip Frame 6
_global.unistenih_av++;
removeMovieClip(this);
Symbol 205 MovieClip Frame 1
stop();
Symbol 205 MovieClip Frame 3
myColor = new Color(this);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:"0", ga:"100", gb:"0", ba:"100", bb:"0", aa:"100", ab:"100"};
myColor.setTransform(myColorTransform);
Symbol 205 MovieClip Frame 6
_global.unistenih_atg_l++;
removeMovieClip(this);
Symbol 239 MovieClip Frame 1
stop();
Symbol 239 MovieClip Frame 2
stop();
Symbol 239 MovieClip Frame 13
gotoAndStop (1);
Symbol 239 MovieClip Frame 14
_global.poginuo = true;
Symbol 239 MovieClip Frame 19
_root.ja.swapDepths(50);
Symbol 239 MovieClip Frame 23
if (_global.victory == false) {
_global.teleport = true;
_root.ja.swapDepths(50);
_global.keyCont = false;
_root.play();
}
_global.keyCont = false;
Symbol 239 MovieClip Frame 24
stop();
_root.ja._y = 300;
_root.ja._x = 200;
_root.pripravise1.gotoAndPlay(2);
Symbol 239 MovieClip Frame 27
_global.keyCont = true;
_root.ja.swapDepths(999);
Symbol 239 MovieClip Frame 40
if (_global.moj_stit > 0) {
_root.ja.gotoAndStop(2);
} else {
_root.ja.gotoAndStop(1);
}
Symbol 239 MovieClip Frame 41
_root.ja.swapDepths(50);
Symbol 239 MovieClip Frame 57
_root.ja.swapDepths(999);
if (_global.moj_stit > 0) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
Symbol 241 MovieClip Frame 1
stop();
Symbol 241 MovieClip Frame 2
stop();
Symbol 248 MovieClip Frame 1
stop();
Symbol 248 MovieClip Frame 14
removeMovieClip(this);
Symbol 251 MovieClip Frame 6
stop();
Symbol 251 MovieClip Frame 7
_global.beam_ispaljen = false;
removeMovieClip(this);
Symbol 252 Button
on (release) {
Set("_root:quality", "low");
toggleHighQuality();
gotoAndPlay (2);
}
Symbol 254 Button
on (release) {
Set("_root:quality", "high");
toggleHighQuality();
gotoAndPlay (1);
}
Symbol 255 MovieClip Frame 1
((undefined <= b) > "c") || (0(false));
if (_root:quality == "low") {
gotoAndStop (2);
}
stop();
Symbol 255 MovieClip Frame 2
((undefined <= b) > "c") || (0(false));
if (_root:quality == "high") {
gotoAndStop (1);
}
stop();
Symbol 277 MovieClip Frame 1
stop();
Symbol 283 MovieClip Frame 1
stop();
Symbol 283 MovieClip Frame 32
stop();
_root.srednji.swapDepths(2540);
Symbol 283 MovieClip Frame 35
myColor = new Color(this);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:"0", ga:"100", gb:"0", ba:"100", bb:"0", aa:"100", ab:"100"};
myColor.setTransform(myColorTransform);
Symbol 283 MovieClip Frame 39
_global.srednji_timer = 560;
_global.srednji_flag = 1;
removeMovieClip(this);
Symbol 289 MovieClip Frame 1
stop();
Symbol 289 MovieClip Frame 2
stop();
Symbol 311 MovieClip Frame 1
stop();
Symbol 311 MovieClip Frame 2
_global.keyCont = false;
_root.ja._y = _root.ja._y - 20;
_root.boss1.swapDepths(3);
_global.points = _global.points + 2500;
_global.Nivo++;
Symbol 311 MovieClip Frame 3
_root.ja._y = _root.ja._y - 20;
fire.start();
Symbol 311 MovieClip Frame 4
_root.ja._y = _root.ja._y - 20;
Symbol 311 MovieClip Frame 5
_root.ja._y = _root.ja._y - 20;
fire.start();
Symbol 311 MovieClip Frame 6
_root.ja._y = _root.ja._y - 20;
fire.start();
Symbol 311 MovieClip Frame 7
_root.ja._y = _root.ja._y - 20;
Symbol 311 MovieClip Frame 8
_root.ja._y = _root.ja._y - 20;
Symbol 311 MovieClip Frame 9
_root.ja._y = _root.ja._y - 20;
Symbol 311 MovieClip Frame 10
_root.ja._y = _root.ja._y - 20;
Symbol 311 MovieClip Frame 11
_root.ja._y = _root.ja._y - 20;
Symbol 311 MovieClip Frame 12
_root.ja._y = _root.ja._y - 20;
fire.start();
Symbol 311 MovieClip Frame 13
_root.ja._y = _root.ja._y - 20;
Symbol 311 MovieClip Frame 14
_root.ja._y = _root.ja._y - 20;
Symbol 311 MovieClip Frame 15
_root.ja._y = _root.ja._y - 20;
Symbol 311 MovieClip Frame 16
_root.ja._y = _root.ja._y - 20;
Symbol 311 MovieClip Frame 17
_root.ja._y = _root.ja._y - 20;
fire.start();
Symbol 311 MovieClip Frame 18
_global.keyCont = false;
_root.ja._y = _root.ja._y - 20;
this._y = this._y + 10;
fire.start();
Symbol 311 MovieClip Frame 19
_root.ja._y = _root.ja._y - 20;
this._y = this._y + 10;
fire.start();
Symbol 311 MovieClip Frame 20
_root.ja._y = _root.ja._y - 20;
this._y = this._y + 10;
Symbol 311 MovieClip Frame 21
_root.ja._y = _root.ja._y - 20;
this._y = this._y + 10;
fire.start();
Symbol 311 MovieClip Frame 22
_root.ja._y = _root.ja._y - 20;
this._y = this._y + 10;
fire.start();
Symbol 311 MovieClip Frame 23
_root.ja._y = _root.ja._y - 20;
this._y = this._y + 10;
Symbol 311 MovieClip Frame 24
_root.ja._y = _root.ja._y - 20;
this._y = this._y + 10;
Symbol 311 MovieClip Frame 25
_root.ja._y = _root.ja._y - 20;
this._y = this._y + 10;
fire.start();
Symbol 311 MovieClip Frame 26
_root.ja._y = _root.ja._y - 20;
this._y = this._y + 10;
Symbol 311 MovieClip Frame 27
_root.ja._y = _root.ja._y - 20;
this._y = this._y + 10;
Symbol 311 MovieClip Frame 28
_root.ja._y = _root.ja._y - 20;
this._y = this._y + 10;
Symbol 311 MovieClip Frame 29
_root.ja._y = _root.ja._y - 20;
this._y = this._y + 10;
Symbol 311 MovieClip Frame 30
_root.ja._y = _root.ja._y - 20;
this._y = this._y + 10;
fire.start();
Symbol 311 MovieClip Frame 31
_root.ja._y = _root.ja._y - 20;
this._y = this._y + 10;
Symbol 311 MovieClip Frame 32
_root.ja._y = _root.ja._y - 20;
this._y = this._y + 10;
if (_global.points > 20000) {
_global.points = _global.points + 3000;
}
Symbol 311 MovieClip Frame 33
_global.teleport = true;
_root.bazaKraj1._y = 0;
_root.bazaKraj1._x = 245.5;
_root.bazaKraj1.Kredit = _global.kredit;
_root.bazaKraj1.Poeni = _global.points;
_root.bazaKraj1.bomba = _global.bombi_u_sarzeru;
_root.bazaKraj1.beam = _global.beama_u_sarzeru;
_root.bazaKraj1.hitpoeni = _global.moji_hitpoeni;
_root.bazaKraj1.stit = _global.moj_stit;
_root.bazaKraj1.Teleport = _global.br_teleporta;
_root.bazaKraj1.Nivo = _global.Nivo;
_root.bazaKraj1.Zivoti = _global.lives;
removeMovieClip(this);
_root.ja._y = _root.ja._y - 20;
Symbol 325 Button
on (release) {
if (_global.points >= 30000) {
_global.points = _global.points - 30000;
_global.kredit = _global.kredit + 2000;
Kredit = _global.kredit;
Poeni = _global.points;
_global.UKredit = _global.UKredit + 2000;
}
}
Symbol 326 Button
on (release) {
_root.Comment = "";
var Ime = _global.Ime;
var Pass = _global.Pass;
var Mob = _global.Mob;
var Poeni;
var Bomba;
var Beam;
var Stit;
var Nivo;
var Kredit;
var SMS;
loadVariablesNum ((((("LoadSMS.php?Ime=" + Ime) + "&Mob=") + Mob) + "&Pass=") + Pass, 0);
gotoAndPlay (2);
}
Symbol 327 Button
on (release) {
if ((_global.kredit >= 150) && (_global.moji_hitpoeni < 75)) {
_global.kredit = _global.kredit - 150;
_global.moji_hitpoeni = 75;
hitpoeni = 75;
Kredit = _global.kredit;
_global.kupHit = _global.kupHit + 150;
}
}
Symbol 328 Button
on (release) {
if ((_global.kredit >= 150) && (_global.moj_stit < 50)) {
_global.kredit = _global.kredit - 150;
_global.moj_stit = 50;
stit = 50;
Kredit = _global.kredit;
_global.kupStit = _global.kupStit + 150;
}
}
Symbol 329 Button
on (release) {
if (_global.Kredit >= 750) {
_global.Kredit = _global.Kredit - 750;
_global.beama_u_sarzeru = _global.beama_u_sarzeru + 5;
beam = _global.beama_u_sarzeru;
Kredit = _global.Kredit;
_global.kupBeama = _global.kupBeama + 750;
}
}
Symbol 330 Button
on (release) {
if (_global.kredit >= 150) {
_global.kredit = _global.kredit - 150;
_global.bombi_u_sarzeru = _global.bombi_u_sarzeru + 1;
bomba = _global.bombi_u_sarzeru;
Kredit = _global.kredit;
_global.kupBombi = _global.kupBombi + 150;
}
}
Symbol 331 Button
on (release) {
if (_global.beama_u_sarzeru >= 5) {
_global.Kredit = _global.Kredit + 750;
_global.beama_u_sarzeru = _global.beama_u_sarzeru - 5;
beam = _global.beama_u_sarzeru;
Kredit = _global.Kredit;
_global.kupBeama = _global.kupBeama - 750;
}
}
Symbol 332 Button
on (release) {
if (_global.bombi_u_sarzeru >= 1) {
_global.kredit = _global.kredit + 150;
_global.bombi_u_sarzeru = _global.bombi_u_sarzeru - 1;
bomba = _global.bombi_u_sarzeru;
Kredit = _global.kredit;
_global.kupBombi = _global.kupBombi - 150;
}
}
Symbol 334 Button
on (release) {
pilot_meni._x = 6;
pilot_meni._y = 0;
}
Symbol 335 Button
on (release) {
if (_global.kredit >= 150) {
if (_global.pilot == 1) {
if (_global.br_loopa < 3) {
_global.br_loopa++;
_global.kredit = _global.kredit - 150;
_global.kupPilot = _global.kupPilot + 150;
}
}
if (_global.pilot == 2) {
if (_global.br_loopa < 6) {
_global.br_loopa++;
_global.kredit = _global.kredit - 150;
_global.kupPilot = _global.kupPilot + 150;
}
}
}
Poeni = _global.points;
Kredit = _global.kredit;
Nivo = _global.Nivo;
Zivoti = _global.lives;
Teleport = _global.br_teleporta;
hitpoeni = _global.moji_hitpoeni;
stit = _global.moj_stit;
beam = _global.beama_u_sarzeru;
bomba = _global.bombi_u_sarzeru;
Loops = _global.br_loopa;
}
Symbol 338 Button
on (release) {
loadVariablesNum ((((("UpdateSMS.php?Ime=" + _global.Ime) + "&Pass=") + _global.Pass) + "&Mob=") + _global.Mob, 0);
loadVariablesNum ((((((((((((((((((((("Update.php?Ime=" + _global.Ime) + "&Pass=") + _global.Pass) + "&Mob=") + _global.Mob) + "&Poeni=") + _global.points) + "&Bomba=") + _global.bombi_u_sarzeru) + "&Beam=") + _global.beama_u_sarzeru) + "&Stit=") + _global.moj_stit) + "&Nivo=") + _global.Nivo) + "&Kredit=") + _global.kredit) + "&Loops=") + _global.br_loopa) + "&Pilot=") + _global.pilot, 0);
_root.baza._x = -800;
_global.teleport = false;
_global.keyCont = true;
}
Symbol 342 Button
on (release) {
if (_global.pilot == 1) {
PilotSelect = "YOUR PILOT CAN'T DO LOOPS!";
_global.kredit = _global.kredit + 3000;
_global.pilot = 0;
_global.kupPilot = _global.kupPilot - 3000;
}
if (_global.pilot == 2) {
PilotSelect = "YOUR PILOT CAN'T DO LOOPS!";
_global.kredit = _global.kredit + 6000;
_global.pilot = 0;
_global.kupPilot = _global.kupPilot - 6000;
}
}
Symbol 344 Button
on (release) {
this._x = -400;
_parent.Poeni = _global.points;
_parent.Kredit = _global.kredit;
_parent.Nivo = _global.Nivo;
_parent.Zivoti = _global.lives;
_parent.Teleport = _global.br_teleporta;
_parent.hitpoeni = _global.moji_hitpoeni;
_parent.stit = _global.moj_stit;
_parent.beam = _global.beama_u_sarzeru;
_parent.bomba = _global.bombi_u_sarzeru;
_parent.Loops = _global.br_loopa;
}
Symbol 346 MovieClip Frame 1
stop();
Instance of Symbol 168 MovieClip "p3" in Symbol 346 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_global.kredit >= 6000) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 172 MovieClip "p2" in Symbol 346 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_global.kredit >= 3000) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Symbol 347 MovieClip Frame 1
Poeni = _global.points;
Kredit = _global.kredit;
Nivo = _global.Nivo;
Zivoti = _global.lives;
Teleport = _global.br_teleporta;
hitpoeni = _global.moji_hitpoeni;
stit = _global.moj_stit;
beam = _global.beama_u_sarzeru;
bomba = _global.bombi_u_sarzeru;
stop();
Instance of Symbol 346 MovieClip "pilot_meni" in Symbol 347 MovieClip Frame 1
onClipEvent (enterFrame) {
_parent.Loops = _global.br_loopa;
_parent.Pilot = "/" + (_global.pilot * 3);
}
Symbol 347 MovieClip Frame 3
if (_root.Comment ne "") {
gotoAndPlay (4);
} else {
gotoAndPlay (2);
}
Symbol 347 MovieClip Frame 8
_global.SMS = _global.SMS + _root.konverzija(_root.SMS);
_global.uSMS = _global.uSMS + _global.SMS;
Symbol 347 MovieClip Frame 14
Poeni = _global.points;
_global.kredit = _global.kredit + (_global.SMS * 3000);
_global.SMS = 0;
_root.SMS = 0;
Nivo = _global.Nivo;
Zivoti = _global.lives;
Teleport = _global.br_teleporta;
hitpoeni = _global.moji_hitpoeni;
stit = _global.moj_stit;
beam = _global.beama_u_sarzeru;
bomba = _global.bombi_u_sarzeru;
Kredit = _global.kredit;
Symbol 347 MovieClip Frame 22
loadVariablesNum ((((("UpdateSMS.php?Ime=" + _global.Ime) + "&Pass=") + _global.Pass) + "&Mob=") + _global.Mob, 0);
Symbol 347 MovieClip Frame 39
gotoAndStop (1);
Symbol 360 Button
on (release) {
if (_global.points >= 15000) {
_global.points = _global.points - 15000;
_global.kredit = _global.kredit + 2000;
Kredit = _global.kredit;
Poeni = _global.points;
_global.UKredit = _global.UKredit + 2000;
}
}
Symbol 361 Button
on (release) {
Comment = "";
var Ime = _global.Ime;
var Pass = _global.Pass;
var Mob = _global.Mob;
var Poeni;
var Bomba;
var Beam;
var Stit;
var Nivo;
var SMS;
loadVariablesNum ((((("LoadSMS.php?Ime=" + Ime) + "&Mob=") + Mob) + "&Pass=") + Pass, 0);
gotoAndPlay (2);
}
Symbol 362 Button
on (release) {
if (_global.kredit >= 150) {
_global.kredit = _global.kredit - 150;
_global.moji_hitpoeni = 75;
hitpoeni = 75;
Kredit = _global.kredit;
_global.kupHit = _global.kupHit + 150;
}
}
Symbol 363 Button
on (release) {
if (_global.kredit >= 150) {
_global.kredit = _global.kredit - 150;
_global.moj_stit = 50;
stit = 50;
Kredit = _global.kredit;
_global.kupStit = _global.kupStit + 150;
}
}
Symbol 364 Button
on (release) {
if (_global.kredit >= 150) {
_global.kredit = _global.kredit - 150;
_global.bombi_u_sarzeru = _global.bombi_u_sarzeru + 1;
bomba = _global.bombi_u_sarzeru;
Kredit = _global.kredit;
_global.kupBombi = _global.kupBombi + 150;
}
}
Symbol 365 Button
on (release) {
if (_global.beama_u_sarzeru >= 5) {
_global.Kredit = _global.Kredit + 750;
_global.beama_u_sarzeru = _global.beama_u_sarzeru - 5;
beam = _global.beama_u_sarzeru;
Kredit = _global.Kredit;
_global.kupBeama = _global.kupBeama - 750;
}
}
Symbol 376 Button
on (release) {
if (_global.points >= 30000) {
_global.points = _global.points - 30000;
_global.kredit = _global.kredit + 2000;
Kredit = _global.kredit;
Poeni = _global.points;
}
}
Symbol 377 Button
on (release) {
_root.Comment = "";
var Ime = _global.Ime;
var Pass = _global.Pass;
var Mob = _global.Mob;
var Poeni;
var Bomba;
var Beam;
var Stit;
var Nivo;
var Kredit;
var SMS;
loadVariablesNum ((((("Load.php?Ime=" + Ime) + "&Mob=") + Mob) + "&Pass=") + Pass, 0);
gotoAndPlay (2);
}
Symbol 378 Button
on (release) {
if ((_global.kredit >= 150) && (_global.moji_hitpoeni < 75)) {
_global.kredit = _global.kredit - 150;
_global.moji_hitpoeni = 75;
hitpoeni = 75;
Kredit = _global.kredit;
}
}
Symbol 379 Button
on (release) {
if ((_global.kredit >= 150) && (_global.moj_stit < 50)) {
_global.kredit = _global.kredit - 150;
_global.moj_stit = 50;
stit = 50;
Kredit = _global.kredit;
}
}
Symbol 380 Button
on (release) {
if (_global.Kredit >= 750) {
_global.Kredit = _global.Kredit - 750;
_global.beama_u_sarzeru = _global.beama_u_sarzeru + 5;
beam = _global.beama_u_sarzeru;
Kredit = _global.Kredit;
}
}
Symbol 381 Button
on (release) {
if (_global.kredit >= 150) {
_global.kredit = _global.kredit - 150;
_global.bombi_u_sarzeru = _global.bombi_u_sarzeru + 1;
bomba = _global.bombi_u_sarzeru;
Kredit = _global.kredit;
}
}
Symbol 382 Button
on (release) {
if (_global.beama_u_sarzeru >= 5) {
_global.Kredit = _global.Kredit + 750;
_global.beama_u_sarzeru = _global.beama_u_sarzeru - 5;
beam = _global.beama_u_sarzeru;
Kredit = _global.Kredit;
}
}
Symbol 383 Button
on (release) {
if (_global.bombi_u_sarzeru >= 1) {
_global.kredit = _global.kredit + 150;
_global.bombi_u_sarzeru = _global.bombi_u_sarzeru - 1;
bomba = _global.bombi_u_sarzeru;
Kredit = _global.kredit;
}
}
Symbol 384 Button
on (release) {
_root.glava.unloadMovie();
_root.script.unloadMovie();
_root.ja2.unloadMovie();
_root.m.unloadMovie();
_root.bombaOBJ.unloadMovie();
_root.beamOBJ.unloadMovie();
_root.play();
_root.bazaKraj2.unloadMovie();
}
Symbol 385 Button
on (release) {
pilot_meni._x = pilot_meni._x + 500;
}
Symbol 392 Button
on (release) {
this._x = -500;
_parent.Poeni = _global.points;
_parent.Kredit = _global.kredit;
_parent.Nivo = _global.Nivo;
_parent.Zivoti = _global.lives;
_parent.Teleport = _global.br_teleporta;
_parent.hitpoeni = _global.moji_hitpoeni;
_parent.stit = _global.moj_stit;
_parent.beam = _global.beama_u_sarzeru;
_parent.bomba = _global.bombi_u_sarzeru;
_parent.Loops = _global.br_loopa;
}
Symbol 394 MovieClip Frame 1
stop();
Instance of Symbol 168 MovieClip "p3" in Symbol 394 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_global.kredit >= 6000) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 172 MovieClip "p2" in Symbol 394 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_global.kredit >= 3000) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Symbol 395 MovieClip Frame 1
stop();
Poeni = _global.points;
Kredit = _global.kredit;
Nivo = _global.Nivo;
Zivoti = _global.lives;
Teleport = _global.br_teleporta;
hitpoeni = _global.moji_hitpoeni;
stit = _global.moj_stit;
beam = _global.beama_u_sarzeru;
bomba = _global.bombi_u_sarzeru;
stop();
Instance of Symbol 394 MovieClip "pilot_meni" in Symbol 395 MovieClip Frame 1
onClipEvent (enterFrame) {
_parent.Loops = _global.br_loopa;
_parent.Pilot = "/" + (_global.pilot * 3);
}
Symbol 395 MovieClip Frame 2
if (_root.Comment ne "") {
gotoAndPlay (4);
} else {
gotoAndPlay (2);
}
Symbol 395 MovieClip Frame 3
if (_root.Comment ne "") {
gotoAndPlay (4);
} else {
gotoAndPlay (2);
}
Symbol 395 MovieClip Frame 8
_global.SMS = _global.SMS + _root.konverzija(_root.SMS);
_global.uSMS = _global.uSMS + _global.SMS;
Symbol 395 MovieClip Frame 14
Poeni = _global.points;
_global.kredit = _global.kredit + (_global.SMS * 3000);
_global.SMS = 0;
_root.SMS = 0;
Nivo = _global.Nivo;
Zivoti = _global.lives;
Teleport = _global.br_teleporta;
hitpoeni = _global.moji_hitpoeni;
stit = _global.moj_stit;
beam = _global.beama_u_sarzeru;
bomba = _global.bombi_u_sarzeru;
Kredit = _global.kredit;
Symbol 395 MovieClip Frame 22
loadVariablesNum ((((("UpdateSMS.php?Ime=" + _global.Ime) + "&Pass=") + _global.Pass) + "&Mob=") + _global.Mob, 0);
Symbol 395 MovieClip Frame 39
gotoAndStop (1);
Symbol 398 MovieClip Frame 1
stop();
Symbol 398 MovieClip Frame 20
if (((_global.unistenih_au == 3) && (_global.unistenih_av == 3)) && (_global.unistenih_atg_l == 3)) {
play();
} else {
gotoAndPlay (15);
}
Symbol 398 MovieClip Frame 46
_root.ja._y = 300;
_root.ja._x = 200;
_root.ja.gotoAndPlay(25);
_global.keyCont = true;
Symbol 398 MovieClip Frame 65
_global.poginuo = false;
Symbol 404 Button
on (release) {
_root.unloadMovie();
getURL ("http://www.games-area.com");
}
Symbol 411 MovieClip Frame 2
_root.OK = "";
_root.Mesto = "";
Symbol 411 MovieClip Frame 87
if (_root.OK eq "ok") {
play();
} else {
gotoAndPlay (80);
}
Symbol 411 MovieClip Frame 95
if (_root.Mesto ne "") {
_root.defeat.pozicija = _root.Mesto;
stop();
} else {
gotoAndPlay (80);
}
Symbol 418 Button
on (release) {
gotoAndStop (2);
}
Symbol 420 Button
on (release) {
gotoAndStop (1);
}
Symbol 421 MovieClip Frame 1
stop();
Symbol 421 MovieClip Frame 2
stop();
Symbol 422 Button
on (release) {
gotoAndStop (708);
}
Symbol 423 Button
on (release) {
gotoAndStop (708);
}