Frame 1
taknie = 1;
loaded = _root.getBytesLoaded();
total = _root.getBytesTotal();
if (getBytesLoaded(_root) >= getBytesTotal(_root)) {
gotoAndPlay (3);
taknie = 1;
}
show = Math.floor((loaded / total) * 100) + "%";
Frame 2
gotoAndPlay (1);
Frame 3
stop();
Frame 4
stop();
Frame 5
stop();
Frame 6
if (taknie == 1) {
shot = new Sound();
shot.attachSound("reload");
reload = new Sound();
reload.attachSound("shot");
hit = new Sound();
hit.attachSound("hit");
miss = new Sound();
miss.attachSound("miss");
hit_man = new Sound();
hit_man.attachSound("hit_man");
jet_down = new Sound();
jet_down.attachSound("jet_down");
jet_in = new Sound();
jet_in.attachSound("jet_in");
}
kula_jest = 1;
level = 1;
row = 0;
pkt = 0;
kule = 0;
pokaz = 0;
bonus_on = 0;
time = 300;
targets = 4;
wind = random(10) - 5;
samolot_speed = 15;
stop();
Instance of Symbol 138 MovieClip in Frame 6
onClipEvent (load) {
co = 2;
}
Instance of Symbol 139 MovieClip in Frame 6
onClipEvent (load) {
co = 4;
}
Instance of Symbol 140 MovieClip in Frame 6
onClipEvent (load) {
co = 3;
}
Instance of Symbol 141 MovieClip in Frame 6
onClipEvent (load) {
co = 5;
}
Instance of Symbol 142 MovieClip in Frame 6
onClipEvent (load) {
co = 2;
}
Instance of Symbol 144 MovieClip "dzialo" in Frame 6
onClipEvent (mouseMove) {
stopien = Math.atan2(_root._ymouse - _y, _root._xmouse - _x) / (Math.PI/180);
if (stopien < 0) {
_rotation = (stopien + 90);
}
}
Frame 7
time = 300;
targets = 5;
wind = random(8) - 4;
samolot_speed = 18;
pokaz = 0;
bonus_on = 0;
stop();
Instance of Symbol 140 MovieClip in Frame 7
onClipEvent (load) {
co = 3;
}
Instance of Symbol 139 MovieClip in Frame 7
onClipEvent (load) {
co = 4;
}
Instance of Symbol 142 MovieClip in Frame 7
onClipEvent (load) {
co = 2;
}
Instance of Symbol 171 MovieClip in Frame 7
onClipEvent (load) {
co = 6;
}
Frame 8
time = 300;
targets = 5;
wind = random(8) - 4;
samolot_speed = 21;
pokaz = 0;
bonus_on = 0;
stop();
Instance of Symbol 141 MovieClip in Frame 8
onClipEvent (load) {
co = 5;
}
Instance of Symbol 177 MovieClip in Frame 8
onClipEvent (load) {
co = 6;
}
Instance of Symbol 178 MovieClip in Frame 8
onClipEvent (load) {
co = 5;
}
Instance of Symbol 177 MovieClip in Frame 8
onClipEvent (load) {
co = 6;
}
Frame 9
time = 300;
targets = 5;
wind = random(8) - 4;
samolot_speed = 24;
pokaz = 0;
bonus_on = 0;
stop();
Instance of Symbol 138 MovieClip in Frame 9
onClipEvent (load) {
co = 2;
}
Instance of Symbol 140 MovieClip in Frame 9
onClipEvent (load) {
co = 3;
}
Instance of Symbol 142 MovieClip in Frame 9
onClipEvent (load) {
co = 2;
}
Instance of Symbol 171 MovieClip in Frame 9
onClipEvent (load) {
co = 6;
}
Instance of Symbol 139 MovieClip in Frame 9
onClipEvent (load) {
co = 4;
}
Instance of Symbol 171 MovieClip in Frame 9
onClipEvent (load) {
co = 6;
}
Frame 10
time = 300;
targets = 5;
wind = random(8) - 4;
samolot_speed = 27;
pokaz = 0;
bonus_on = 0;
stop();
Instance of Symbol 178 MovieClip in Frame 10
onClipEvent (load) {
co = 5;
}
Instance of Symbol 139 MovieClip in Frame 10
onClipEvent (load) {
co = 4;
}
Instance of Symbol 138 MovieClip in Frame 10
onClipEvent (load) {
co = 2;
}
Frame 11
time = 350;
targets = 6;
wind = random(8) - 4;
samolot_speed = 27;
pokaz = 0;
bonus_on = 0;
stop();
Instance of Symbol 188 MovieClip in Frame 11
onClipEvent (load) {
co = 3;
}
Instance of Symbol 138 MovieClip in Frame 11
onClipEvent (load) {
co = 2;
}
Instance of Symbol 189 MovieClip in Frame 11
onClipEvent (load) {
co = 4;
}
Instance of Symbol 171 MovieClip in Frame 11
onClipEvent (load) {
co = 6;
}
Frame 15
stop();
a = time * level;
b = (15 - kule) * 10;
pkt2 = (pkt + a) + b;
if (level == 6) {
gotoAndPlay (17);
}
Frame 16
stop();
Frame 17
stop();
Symbol 15 MovieClip [kula] Frame 1
new_x = _x;
new_y = _y;
stop();
Symbol 15 MovieClip [kula] Frame 2
time = time + 0.25;
_x = ((((Math.cos(angle) * speed) * time) + (((0.5 * oxygen) * time) * time)) + start_x);
_y = (((((-Math.sin(angle)) * speed) * time) + (((0.5 * gravity) * time) * time)) + start_y);
if ((((700 < _x) || (_x < 0)) || (_y < -100)) || (300 < _y)) {
gotoAndPlay (5);
_root.row = 0;
_root.kula_jest = 1;
}
Symbol 15 MovieClip [kula] Frame 3
gotoAndPlay (2);
Symbol 15 MovieClip [kula] Frame 11
_x = new_x;
_y = new_y;
_root.reload.start();
Symbol 16 MovieClip [kula] Frame 1
new_x = _x;
new_y = _y;
stop();
Symbol 16 MovieClip [kula] Frame 2
time = time + 0.25;
_x = ((((Math.cos(angle) * speed) * time) + (((0.5 * oxygen) * time) * time)) + start_x);
_y = (((((-Math.sin(angle)) * speed) * time) + (((0.5 * gravity) * time) * time)) + start_y);
if ((((700 < _x) || (_x < 0)) || (_y < -100)) || (300 < _y)) {
gotoAndPlay (5);
_root.row = 0;
_root.kula_jest = 1;
}
Symbol 16 MovieClip [kula] Frame 3
gotoAndPlay (2);
Symbol 16 MovieClip [kula] Frame 11
_x = new_x;
_y = new_y;
_root.reload.start();
Symbol 32 MovieClip Frame 5
stop();
Symbol 40 MovieClip Frame 1
if (random(20) == 1) {
gotoAndPlay (3);
}
Symbol 40 MovieClip Frame 2
gotoAndPlay (1);
Symbol 40 MovieClip Frame 17
gotoAndPlay (3);
Symbol 42 MovieClip Frame 1
_parent.test();
Symbol 42 MovieClip Frame 2
gotoAndPlay (1);
Symbol 42 MovieClip Frame 13
stop();
Symbol 51 Button
on (release) {
gotoAndStop (6);
}
Symbol 53 Button
on (release) {
gotoAndPlay (4);
}
Symbol 55 Button
on (release) {
gotoAndPlay (5);
}
Symbol 71 MovieClip Frame 1
stop();
Symbol 77 MovieClip Frame 5
stop();
Symbol 79 Button
on (release) {
getURL ("mailto:konrad@v-lo.krakow.pl");
}
Symbol 81 Button
on (release) {
gotoAndPlay (3);
}
Symbol 85 Button
on (release) {
_quality = "BEST";
}
Symbol 87 Button
on (release) {
_quality = "LOW";
}
Symbol 89 Button
on (release) {
_quality = "MEDIUM";
}
Symbol 93 Button
on (release) {
if (taknie == 1) {
taknie = 0;
mess = "turn on";
} else {
taknie = 1;
mess = "turn off";
}
}
Symbol 101 MovieClip Frame 1
if (this.hitTest(_root.kula) && (_root.kula_jest == 0)) {
_root.kula_jest = 1;
_root.kula.gotoAndPlay(4);
_root.row = 0;
_root.miss.start();
}
Symbol 101 MovieClip Frame 2
gotoAndPlay (1);
Symbol 102 MovieClip Frame 1
if (this.hitTest(_root.kula) && (_root.kula_jest == 0)) {
_root.kula_jest = 1;
_root.kula.gotoAndPlay(4);
_root.row = 0;
_root.miss.start();
}
Symbol 102 MovieClip Frame 2
gotoAndPlay (1);
Symbol 114 MovieClip Frame 1
a = _root.dzialo._x - _root._xmouse;
b = _root.dzialo._y - _root._ymouse;
speed = Math.floor(Math.sqrt((a * a) + (b * b)) / 2);
if (speed < 40) {
speed = 40;
}
if (140 < speed) {
speed = 140;
}
angle = Math.floor((-_root.dzialo._rotation) + 90);
_root.time--;
if (_root.targets == 0) {
if (_root.bonus_on == 0) {
_root.gotoAndPlay("next");
} else {
_root.time++;
_root.kula_jest = 0;
}
} else if ((0 >= _root.time) && (_root.kula_jest == 1)) {
_root.case = "Czas ci siê skoñczy³ !!";
_root.gotoAndPlay("end");
}
if ((_root.pokaz == 0) && (_root.bonus_on == 0)) {
_root.bonus.what = "Runda " + _root.level;
_root.bonus.ile = "";
_root.bonus.gotoAndPlay(2);
}
Symbol 119 MovieClip Frame 1
_parent.test();
Symbol 119 MovieClip Frame 2
gotoAndPlay (1);
Symbol 119 MovieClip Frame 13
stop();
Symbol 123 MovieClip Frame 1
_parent.test();
Symbol 123 MovieClip Frame 2
gotoAndPlay (1);
Symbol 123 MovieClip Frame 3
tellTarget (_root.bonus) {
what = "civil building!!";
ile = "-50";
gotoAndPlay (2);
};
Symbol 123 MovieClip Frame 13
stop();
Symbol 128 MovieClip Frame 1
_parent.test();
Symbol 128 MovieClip Frame 2
gotoAndPlay (1);
Symbol 128 MovieClip Frame 13
stop();
Symbol 137 MovieClip Frame 1
_parent.test();
Symbol 137 MovieClip Frame 2
gotoAndPlay (1);
Symbol 137 MovieClip Frame 3
tellTarget (_root.bonus) {
what = "additional target!!";
ile = "+50";
gotoAndPlay (2);
};
Symbol 137 MovieClip Frame 9
stop();
Symbol 138 MovieClip Frame 1
function test() {
if (this.hitTest(_root.kula) && (_root.kula_jest == 0)) {
cel.gotoAndPlay(3);
_root.kula.gotoAndPlay(4);
_root.kula_jest = 1;
_root.row++;
if ((co == 4) || (co == 6)) {
_root.targets++;
_root.row--;
}
if (co == 4) {
_root.row = 0;
}
_root.targets--;
if (co == 6) {
_root.hit_man.start();
} else {
_root.hit.start();
}
if (1 < _root.row) {
tellTarget (_root.bonus) {
if (_root.row < 5) {
what = _root.row + " trafienia z rzêdu";
ile = "+" + ((_root.row - 1) * 50);
} else {
if (_root.level != 6) {
what = "perfect !!";
} else {
what = _root.row + " hits in a row!!";
}
ile = "+" + ((_root.row - 1) * 50);
}
gotoAndPlay (2);
};
}
}
}
gotoAndStop(co);
Symbol 139 MovieClip Frame 1
function test() {
if (this.hitTest(_root.kula) && (_root.kula_jest == 0)) {
cel.gotoAndPlay(3);
_root.kula.gotoAndPlay(4);
_root.kula_jest = 1;
_root.row++;
if ((co == 4) || (co == 6)) {
_root.targets++;
_root.row--;
}
if (co == 4) {
_root.row = 0;
}
_root.targets--;
if (co == 6) {
_root.hit_man.start();
} else {
_root.hit.start();
}
if (1 < _root.row) {
tellTarget (_root.bonus) {
if (_root.row < 5) {
what = _root.row + " trafienia z rzêdu";
ile = "+" + ((_root.row - 1) * 50);
} else {
if (_root.level != 6) {
what = "perfect !!";
} else {
what = _root.row + " hits in a row!!";
}
ile = "+" + ((_root.row - 1) * 50);
}
gotoAndPlay (2);
};
}
}
}
gotoAndStop(co);
Symbol 140 MovieClip Frame 1
function test() {
if (this.hitTest(_root.kula) && (_root.kula_jest == 0)) {
cel.gotoAndPlay(3);
_root.kula.gotoAndPlay(4);
_root.kula_jest = 1;
_root.row++;
if ((co == 4) || (co == 6)) {
_root.targets++;
_root.row--;
}
if (co == 4) {
_root.row = 0;
}
_root.targets--;
if (co == 6) {
_root.hit_man.start();
} else {
_root.hit.start();
}
if (1 < _root.row) {
tellTarget (_root.bonus) {
if (_root.row < 5) {
what = _root.row + " trafienia z rzêdu";
ile = "+" + ((_root.row - 1) * 50);
} else {
if (_root.level != 6) {
what = "perfect !!";
} else {
what = _root.row + " hits in a row!!";
}
ile = "+" + ((_root.row - 1) * 50);
}
gotoAndPlay (2);
};
}
}
}
gotoAndStop(co);
Symbol 141 MovieClip Frame 1
function test() {
if (this.hitTest(_root.kula) && (_root.kula_jest == 0)) {
cel.gotoAndPlay(3);
_root.kula.gotoAndPlay(4);
_root.kula_jest = 1;
_root.row++;
if ((co == 4) || (co == 6)) {
_root.targets++;
_root.row--;
}
if (co == 4) {
_root.row = 0;
}
_root.targets--;
if (co == 6) {
_root.hit_man.start();
} else {
_root.hit.start();
}
if (1 < _root.row) {
tellTarget (_root.bonus) {
if (_root.row < 5) {
what = _root.row + " trafienia z rzêdu";
ile = "+" + ((_root.row - 1) * 50);
} else {
if (_root.level != 6) {
what = "perfect !!";
} else {
what = _root.row + " hits in a row!!";
}
ile = "+" + ((_root.row - 1) * 50);
}
gotoAndPlay (2);
};
}
}
}
gotoAndStop(co);
Symbol 142 MovieClip Frame 1
function test() {
if (this.hitTest(_root.kula) && (_root.kula_jest == 0)) {
cel.gotoAndPlay(3);
_root.kula.gotoAndPlay(4);
_root.kula_jest = 1;
_root.row++;
if ((co == 4) || (co == 6)) {
_root.targets++;
_root.row--;
}
if (co == 4) {
_root.row = 0;
}
_root.targets--;
if (co == 6) {
_root.hit_man.start();
} else {
_root.hit.start();
}
if (1 < _root.row) {
tellTarget (_root.bonus) {
if (_root.row < 5) {
what = _root.row + " trafienia z rzêdu";
ile = "+" + ((_root.row - 1) * 50);
} else {
if (_root.level != 6) {
what = "perfect !!";
} else {
what = _root.row + " hits in a row!!";
}
ile = "+" + ((_root.row - 1) * 50);
}
gotoAndPlay (2);
};
}
}
}
gotoAndStop(co);
Symbol 146 MovieClip Frame 1
if ((hitTest(_root.kula) && (_root.kula_jest == 0)) && (_root.targets != 0)) {
_root.case = "Sabota¿ ?!";
_root.hit.start();
_root.gotoAndPlay("end");
}
Symbol 147 Button
on (keyPress "<Space>") {
if (kula_jest == 1) {
kule++;
shot.start();
kula_jest = 0;
tellTarget (kula) {
start_x = _root.dzialo._x;
start_y = _root.dzialo._y;
angle = (((-_root.dzialo._rotation) + 90) / 180) * Math.PI;
a = _root.dzialo._x - _root._xmouse;
b = _root.dzialo._y - _root._ymouse;
speed = Math.sqrt((a * a) + (b * b)) / 2;
if (speed < 40) {
speed = 40;
}
if (140 < speed) {
speed = 140;
}
gravity = 10;
oxygen = _root.wind;
time = 0;
gotoAndPlay (2);
};
}
}
Symbol 151 MovieClip Frame 1
a = _parent.what;
b = _parent.ile;
Symbol 152 MovieClip Frame 1
a = _parent.what;
b = _parent.ile;
Symbol 153 MovieClip Frame 1
what = 0;
ile = 0;
stop();
_visible = 0;
Symbol 153 MovieClip Frame 2
_visible = 1;
_root.pkt = _root.pkt + int(ile);
_root.bonus_on = 1;
Symbol 153 MovieClip Frame 26
_root.bonus_on = 0;
_root.pokaz = 1;
Symbol 159 MovieClip Frame 1
czekaj = 0;
hited = 0;
_parent._x = 700 + _parent._width;
_parent._y = 100;
_parent._visible = 0;
_parent.gotoAndPlay(1);
Symbol 159 MovieClip Frame 2
if (czekaj < 250) {
czekaj++;
if (czekaj == 248) {
_root.jet_in.start();
}
} else {
if (hited == 1) {
_parent._y = _parent._y + 4;
}
_parent._x = _parent._x - _root.samolot_speed;
_parent._visible = 1;
if (_parent._x < (-_parent._width)) {
gotoAndPlay (1);
}
if (((hited == 0) && (_parent.hitTest(_root.kula))) && (_root.kula_jest == 0)) {
_root.kula.gotoAndPlay(4);
_root.kula_jest = 1;
_root.jet_down.start();
_parent.gotoAndStop(16);
_root.bonus.ile = "+100";
_root.bonus.what = "The jet is down!!";
_root.bonus.gotoAndPlay(2);
hited = 1;
}
}
Symbol 159 MovieClip Frame 3
gotoAndPlay (2);
Symbol 167 MovieClip Frame 15
gotoAndPlay (1);
Symbol 167 MovieClip Frame 16
stop();
Symbol 171 MovieClip Frame 1
function test() {
if (this.hitTest(_root.kula) && (_root.kula_jest == 0)) {
cel.gotoAndPlay(3);
_root.kula.gotoAndPlay(4);
_root.kula_jest = 1;
_root.row++;
if ((co == 4) || (co == 6)) {
_root.targets++;
_root.row--;
}
if (co == 4) {
_root.row = 0;
}
_root.targets--;
if (co == 6) {
_root.hit_man.start();
} else {
_root.hit.start();
}
if (1 < _root.row) {
tellTarget (_root.bonus) {
if (_root.row < 5) {
what = _root.row + " trafienia z rzêdu";
ile = "+" + ((_root.row - 1) * 50);
} else {
if (_root.level != 6) {
what = "perfect !!";
} else {
what = _root.row + " hits in a row!!";
}
ile = "+" + ((_root.row - 1) * 50);
}
gotoAndPlay (2);
};
}
}
}
gotoAndStop(co);
Symbol 177 MovieClip Frame 1
function test() {
if (this.hitTest(_root.kula) && (_root.kula_jest == 0)) {
cel.gotoAndPlay(3);
_root.kula.gotoAndPlay(4);
_root.kula_jest = 1;
_root.row++;
if ((co == 4) || (co == 6)) {
_root.targets++;
_root.row--;
}
if (co == 4) {
_root.row = 0;
}
_root.targets--;
if (co == 6) {
_root.hit_man.start();
} else {
_root.hit.start();
}
if (1 < _root.row) {
tellTarget (_root.bonus) {
if (_root.row < 5) {
what = _root.row + " trafienia z rzêdu";
ile = "+" + ((_root.row - 1) * 50);
} else {
if (_root.level != 6) {
what = "perfect !!";
} else {
what = _root.row + " hits in a row!!";
}
ile = "+" + ((_root.row - 1) * 50);
}
gotoAndPlay (2);
};
}
}
}
gotoAndStop(co);
Symbol 178 MovieClip Frame 1
function test() {
if (this.hitTest(_root.kula) && (_root.kula_jest == 0)) {
cel.gotoAndPlay(3);
_root.kula.gotoAndPlay(4);
_root.kula_jest = 1;
_root.row++;
if ((co == 4) || (co == 6)) {
_root.targets++;
_root.row--;
}
if (co == 4) {
_root.row = 0;
}
_root.targets--;
if (co == 6) {
_root.hit_man.start();
} else {
_root.hit.start();
}
if (1 < _root.row) {
tellTarget (_root.bonus) {
if (_root.row < 5) {
what = _root.row + " trafienia z rzêdu";
ile = "+" + ((_root.row - 1) * 50);
} else {
if (_root.level != 6) {
what = "perfect !!";
} else {
what = _root.row + " hits in a row!!";
}
ile = "+" + ((_root.row - 1) * 50);
}
gotoAndPlay (2);
};
}
}
}
gotoAndStop(co);
Symbol 188 MovieClip Frame 1
function test() {
if (this.hitTest(_root.kula) && (_root.kula_jest == 0)) {
cel.gotoAndPlay(3);
_root.kula.gotoAndPlay(4);
_root.kula_jest = 1;
_root.row++;
if ((co == 4) || (co == 6)) {
_root.targets++;
_root.row--;
}
if (co == 4) {
_root.row = 0;
}
_root.targets--;
if (co == 6) {
_root.hit_man.start();
} else {
_root.hit.start();
}
if (1 < _root.row) {
tellTarget (_root.bonus) {
if (_root.row < 5) {
what = _root.row + " trafienia z rzêdu";
ile = "+" + ((_root.row - 1) * 50);
} else {
if (_root.level != 6) {
what = "perfect !!";
} else {
what = _root.row + " hits in a row!!";
}
ile = "+" + ((_root.row - 1) * 50);
}
gotoAndPlay (2);
};
}
}
}
gotoAndStop(co);
Symbol 189 MovieClip Frame 1
function test() {
if (this.hitTest(_root.kula) && (_root.kula_jest == 0)) {
cel.gotoAndPlay(3);
_root.kula.gotoAndPlay(4);
_root.kula_jest = 1;
_root.row++;
if ((co == 4) || (co == 6)) {
_root.targets++;
_root.row--;
}
if (co == 4) {
_root.row = 0;
}
_root.targets--;
if (co == 6) {
_root.hit_man.start();
} else {
_root.hit.start();
}
if (1 < _root.row) {
tellTarget (_root.bonus) {
if (_root.row < 5) {
what = _root.row + " trafienia z rzêdu";
ile = "+" + ((_root.row - 1) * 50);
} else {
if (_root.level != 6) {
what = "perfect !!";
} else {
what = _root.row + " hits in a row!!";
}
ile = "+" + ((_root.row - 1) * 50);
}
gotoAndPlay (2);
};
}
}
}
gotoAndStop(co);
Symbol 199 Button
on (release) {
level++;
kula_jest = 1;
row = 0;
kule = 0;
gotoAndStop(level +5);
time = 100;
targets = 1;
pkt = pkt + (a + b);
}
Symbol 210 Button
on (release) {
gotoAndPlay (3);
}