Frame 1
stop();
scorelalu = 0;
Instance of Symbol 4 MovieClip in Frame 1
onClipEvent (load) {
bytes = 0;
totalbytes = 0;
}
onClipEvent (enterFrame) {
bytes = Math.round(this._parent.getBytesLoaded() / 1024);
totalbytes = Math.round(this._parent.getBytesTotal() / 1024);
_xscale = Math.round((bytes / totalbytes) * 100);
_root.persenload = _xscale;
if (bytes >= totalbytes) {
_root.gotoAndStop(6);
}
}
Frame 2
stop();
Instance of Symbol 31 MovieClip in Frame 2
on (release) {
getURL ("http://www.flashgames247.com");
}
Frame 3
stop();
level = 1;
score = 0;
scorelevel = 0;
Instance of Symbol 31 MovieClip in Frame 3
on (release) {
getURL ("http://www.flashgames247.com");
}
Frame 4
stop();
fscommand ("allowscale", false);
fscommand ("Fullscreen", false);
fscommand ("showmenu", false);
Instance of Symbol 64 MovieClip "awan2" in Frame 4
onClipEvent (load) {
keluar = 0;
xlama = _x;
}
onClipEvent (enterFrame) {
if ((random(80) == 15) and (keluar == 0)) {
keluar = 1;
_y = (random(150) + 40);
}
if (keluar == 1) {
_x = (_x + 8);
if (_x > 400) {
keluar = 0;
_x = xlama;
}
}
}
Instance of Symbol 64 MovieClip "awan1" in Frame 4
onClipEvent (load) {
keluar = 0;
xlama = _x;
}
onClipEvent (enterFrame) {
if ((random(70) == 15) and (keluar == 0)) {
keluar = 1;
_y = (random(150) + 40);
}
if (keluar == 1) {
_x = (_x + 5);
if (_x > 400) {
keluar = 0;
_x = xlama;
}
}
}
Instance of Symbol 64 MovieClip "awan3" in Frame 4
onClipEvent (load) {
keluar = 0;
xlama = _x;
}
onClipEvent (enterFrame) {
if ((random(60) == 15) and (keluar == 0)) {
keluar = 1;
_y = (random(150) + 40);
}
if (keluar == 1) {
_x = (_x + 3);
if (_x > 400) {
keluar = 0;
_x = xlama;
}
}
}
Instance of Symbol 64 MovieClip "awan4" in Frame 4
onClipEvent (load) {
keluar = 0;
xlama = _x;
}
onClipEvent (enterFrame) {
if ((random(60) == 15) and (keluar == 0)) {
keluar = 1;
_y = (random(150) + 40);
}
if (keluar == 1) {
_x = (_x + 2);
if (_x > 400) {
keluar = 0;
_x = xlama;
}
}
}
Instance of Symbol 66 MovieClip "bukit1" in Frame 4
onClipEvent (load) {
keluar = 0;
xlama = _x;
}
onClipEvent (enterFrame) {
if ((random(70) == 15) and (keluar == 0)) {
keluar = 1;
}
if (keluar == 1) {
_x = (_x + 2);
if (_x > 600) {
keluar = 0;
_x = xlama;
}
}
}
Instance of Symbol 66 MovieClip "bukit2" in Frame 4
onClipEvent (load) {
keluar = 0;
xlama = _x;
}
onClipEvent (enterFrame) {
if ((random(70) == 15) and (keluar == 0)) {
keluar = 1;
}
if (keluar == 1) {
_x = (_x + 3);
if (_x > 600) {
keluar = 0;
_x = xlama;
}
}
}
Instance of Symbol 72 MovieClip "gedung2" in Frame 4
onClipEvent (load) {
keluar = 0;
xlama = _x;
}
onClipEvent (enterFrame) {
if ((random(70) == 15) and (keluar == 0)) {
keluar = 1;
}
if (keluar == 1) {
_x = (_x + 4);
if (_x > 500) {
keluar = 0;
_x = xlama;
}
}
}
Instance of Symbol 76 MovieClip "gedung1" in Frame 4
onClipEvent (load) {
keluar = 0;
xlama = _x;
}
onClipEvent (enterFrame) {
if ((random(70) == 15) and (keluar == 0)) {
keluar = 1;
}
if (keluar == 1) {
_x = (_x + 5);
if (_x > 500) {
keluar = 0;
_x = xlama;
}
}
}
Instance of Symbol 78 MovieClip "pohon2" in Frame 4
onClipEvent (load) {
keluar = 0;
xlama = _x;
}
onClipEvent (enterFrame) {
if ((random(70) == 15) and (keluar == 0)) {
keluar = 1;
}
if (keluar == 1) {
_x = (_x + 2);
if (_x > 400) {
keluar = 0;
_x = xlama;
}
}
}
Instance of Symbol 80 MovieClip "pohon1" in Frame 4
onClipEvent (load) {
keluar = 0;
xlama = _x;
}
onClipEvent (enterFrame) {
if ((random(70) == 15) and (keluar == 0)) {
keluar = 1;
}
if (keluar == 1) {
_x = (_x + 3);
if (_x > 400) {
keluar = 0;
_x = xlama;
}
}
}
Instance of Symbol 50 MovieClip "boing" in Frame 4
onClipEvent (load) {
keluar = 0;
xlama = _x;
give = 0;
}
onClipEvent (enterFrame) {
if ((random(600) == 15) and (keluar == 0)) {
keluar = 1;
give = 1;
_y = (random(150) + 40);
}
if (keluar == 1) {
_x = (_x + 2);
if (_x > 400) {
keluar = 0;
_x = xlama;
give = 0;
}
}
if (this.hitTest(_root.pesawat) and (give == 1)) {
_root.pesawat.life = 100;
give = 0;
}
}
Instance of Symbol 50 MovieClip "boing2" in Frame 4
onClipEvent (load) {
keluar = 0;
xlama = _x;
give = 0;
}
onClipEvent (enterFrame) {
if ((random(800) == 95) and (keluar == 0)) {
keluar = 1;
give = 1;
_y = (random(150) + 40);
}
if (keluar == 1) {
_x = (_x - 2);
if (_x < -20) {
keluar = 0;
_x = xlama;
give = 0;
}
}
if (this.hitTest(_root.pesawat) and (give == 1)) {
_root.pesawat.life = 100;
give = 0;
}
}
Instance of Symbol 119 MovieClip "pesawat" in Frame 4
onClipEvent (load) {
xlama = _x;
ylama = _y;
speed = 10;
gunkeluar = 0;
life = 100;
mati = 0;
}
onClipEvent (enterFrame) {
xlama = _x;
ylama = _y;
if (Key.isDown(38)) {
_y = (_y - speed);
}
if (Key.isDown(40)) {
_y = (_y + speed);
}
if (Key.isDown(39)) {
_x = (_x + speed);
}
if (Key.isDown(37)) {
_x = (_x - speed);
}
if (_x > 400) {
_x = xlama;
}
if (_x < 20) {
_x = xlama;
}
if (_y > 250) {
_y = ylama;
if (_root.bukit1._y > 257) {
_root.bukit1._y = _root.bukit1._y - 10;
}
if (_root.bukit2._y > 274) {
_root.bukit2._y = _root.bukit2._y - 10;
}
if (_root.gedung2._y > 233) {
_root.gedung2._y = _root.gedung2._y - 10;
}
if (_root.gedung1._y > 286) {
_root.gedung1._y = _root.gedung1._y - 10;
}
if (_root.pohon1._y > 268) {
_root.pohon1._y = _root.pohon1._y - 10;
}
if (_root.pohon2._y > 295) {
_root.pohon2._y = _root.pohon2._y - 10;
}
}
if (_y < 30) {
_y = ylama;
if (_root.bukit1._y < 522) {
_root.bukit1._y = _root.bukit1._y + 10;
}
if (_root.bukit2._y < 529) {
_root.bukit2._y = _root.bukit2._y + 10;
}
if (_root.gedung2._y < 467) {
_root.gedung2._y = _root.gedung2._y + 10;
}
if (_root.gedung1._y < 571) {
_root.gedung1._y = _root.gedung1._y + 10;
}
if (_root.pohon1._y < 533) {
_root.pohon1._y = _root.pohon1._y + 10;
}
if (_root.pohon2._y < 572) {
_root.pohon2._y = _root.pohon2._y + 10;
}
}
if ((Key.isDown(32) and (gunkeluar == 0)) and (mati == 0)) {
gunkeluar = 1;
_root.gun._x = _x - 10;
_root.gun._y = _y + 10;
_root.gun._visible = 1;
}
if ((life <= 0) and (_currentframe < 4)) {
_root.scorelalu = _root.score;
life = 1;
mati = 1;
this.gotoAndPlay(4);
}
if (_root.scorelevel >= (250 + (_root.level * 250))) {
_root.scorelevel = 0;
_root.gotoAndStop(5);
}
}
Instance of Symbol 121 MovieClip "gun" in Frame 4
onClipEvent (load) {
_visible = 0;
}
onClipEvent (enterFrame) {
if (_root.pesawat.gunkeluar == 0) {
_visible = 0;
} else {
_visible = 1;
}
_x = (_x - 25);
if (_x < 10) {
_root.pesawat.gunkeluar = 0;
_y = 400;
}
i = 1;
while (i <= 4) {
if (hitTest(_root["musuh" + i].musuh) and (_root["musuh" + i].musuh._currentframe == 1)) {
_root.score = _root.score + 25;
_root.scorelevel = _root.scorelevel + 25;
_root.pesawat.gunkeluar = 0;
_visible = 0;
_y = 400;
_root["musuh" + i].musuh.gotoAndPlay(2);
}
i++;
}
}
Instance of Symbol 124 MovieClip "musuh1" in Frame 4
onClipEvent (load) {
musuhkeluar = 0;
activegun = 0;
}
onClipEvent (enterFrame) {
if ((random(20) == 3) and (musuhkeluar == 0)) {
musuhkeluar = 1;
this.gotoAndPlay(2);
_y = (10 + random(250));
}
if (hitTest(_root.pesawat) and (this.musuh._currentframe == 1)) {
_root.pesawat.life = _root.pesawat.life - 5;
this.musuh.gotoAndPlay(2);
musuhkeluar = 0;
}
if (((musuhkeluar == 1) and (_root.gun1.gun1keluar == 0)) and (activegun == 1)) {
_root.gun1._x = this.musuh._x + 10;
_root.gun1._y = _y + 10;
_root.gun1.gun1keluar = 1;
}
}
Instance of Symbol 125 MovieClip "musuh2" in Frame 4
onClipEvent (load) {
musuhkeluar = 0;
activegun = 0;
}
onClipEvent (enterFrame) {
if ((random(20) == 5) and (musuhkeluar == 0)) {
musuhkeluar = 1;
this.gotoAndPlay(2);
_y = (30 + random(240));
}
if (hitTest(_root.pesawat) and (this.musuh._currentframe == 1)) {
_root.pesawat.life = _root.pesawat.life - 5;
this.musuh.gotoAndPlay(2);
musuhkeluar = 0;
}
if (((musuhkeluar == 1) and (_root.gun2.gun1keluar == 0)) and (activegun == 1)) {
_root.gun2._x = this.musuh._x + 10;
_root.gun2._y = _y + 10;
_root.gun2.gun1keluar = 1;
}
}
Instance of Symbol 126 MovieClip "musuh3" in Frame 4
onClipEvent (load) {
musuhkeluar = 0;
activegun = 0;
}
onClipEvent (enterFrame) {
if ((random(20) == 15) and (musuhkeluar == 0)) {
musuhkeluar = 1;
this.gotoAndPlay(2);
_y = (60 + random(150));
}
if (hitTest(_root.pesawat) and (this.musuh._currentframe == 1)) {
_root.pesawat.life = _root.pesawat.life - 5;
this.musuh.gotoAndPlay(2);
musuhkeluar = 0;
}
if (((musuhkeluar == 1) and (_root.gun3.gun1keluar == 0)) and (activegun == 1)) {
_root.gun3._x = this.musuh._x + 10;
_root.gun3._y = _y + 10;
_root.gun3.gun1keluar = 1;
}
}
Instance of Symbol 128 MovieClip "gun1" in Frame 4
onClipEvent (load) {
_visible = 0;
gun1keluar = 0;
}
onClipEvent (enterFrame) {
if (gun1keluar == 0) {
_visible = 0;
} else {
_visible = 1;
_x = (_x + (10 + (_root.level * 2)));
if (_x > 410) {
gun1keluar = 0;
_y = 400;
_x = 500;
}
if (hitTest(_root.pesawat)) {
gun1keluar = 0;
_y = 400;
_root.pesawat.life = _root.pesawat.life - 10;
}
}
}
Instance of Symbol 128 MovieClip "gun2" in Frame 4
onClipEvent (load) {
_visible = 0;
gun1keluar = 0;
}
onClipEvent (enterFrame) {
if (gun1keluar == 0) {
_visible = 0;
} else {
_visible = 1;
_x = (_x + (10 + (_root.level * 2)));
if (_x > 410) {
gun1keluar = 0;
_y = 400;
}
if (hitTest(_root.pesawat)) {
gun1keluar = 0;
_y = 400;
_x = 500;
_root.pesawat.life = _root.pesawat.life - 10;
}
}
}
Instance of Symbol 128 MovieClip "gun3" in Frame 4
onClipEvent (load) {
_visible = 0;
gun1keluar = 0;
}
onClipEvent (enterFrame) {
if (gun1keluar == 0) {
_visible = 0;
} else {
_visible = 1;
_x = (_x + (10 + (_root.level * 2)));
if (_x > 410) {
gun1keluar = 0;
_y = 400;
}
if (hitTest(_root.pesawat)) {
gun1keluar = 0;
_x = 500;
_y = 400;
_root.pesawat.life = _root.pesawat.life - 10;
}
}
}
Instance of Symbol 131 MovieClip "asap" in Frame 4
onClipEvent (load) {
_visible = 0;
}
onClipEvent (enterFrame) {
if ((_root.pesawat.life < 25) and (_root.pesawat.mati == 0)) {
_visible = 1;
_x = (_root.pesawat._x + 35);
_y = (_root.pesawat._y - 3);
} else {
_visible = 0;
}
}
Instance of Symbol 138 MovieClip in Frame 4
onClipEvent (enterFrame) {
if (_root.pesawat.life >= 0) {
_xscale = _root.pesawat.life;
}
}
Frame 5
stop();
Instance of Symbol 119 MovieClip "pesawat" in Frame 5
onClipEvent (load) {
xlama = _x;
ylama = _y;
speed = 10;
gunkeluar = 0;
life = 100;
mati = 0;
}
onClipEvent (enterFrame) {
xlama = _x;
ylama = _y;
if (Key.isDown(38)) {
_y = (_y - speed);
}
if (Key.isDown(40)) {
_y = (_y + speed);
}
if (Key.isDown(39)) {
_x = (_x + speed);
}
if (Key.isDown(37)) {
_x = (_x - speed);
}
if (_x > 400) {
_x = xlama;
}
if (_x < 20) {
_x = xlama;
}
if (_y > 250) {
_y = ylama;
if (_root.bukit1._y > 257) {
_root.bukit1._y = _root.bukit1._y - 10;
}
if (_root.bukit2._y > 274) {
_root.bukit2._y = _root.bukit2._y - 10;
}
if (_root.gedung2._y > 233) {
_root.gedung2._y = _root.gedung2._y - 10;
}
if (_root.gedung1._y > 286) {
_root.gedung1._y = _root.gedung1._y - 10;
}
if (_root.pohon1._y > 268) {
_root.pohon1._y = _root.pohon1._y - 10;
}
if (_root.pohon2._y > 295) {
_root.pohon2._y = _root.pohon2._y - 10;
}
}
if (_y < 30) {
_y = ylama;
if (_root.bukit1._y < 522) {
_root.bukit1._y = _root.bukit1._y + 10;
}
if (_root.bukit2._y < 529) {
_root.bukit2._y = _root.bukit2._y + 10;
}
if (_root.gedung2._y < 467) {
_root.gedung2._y = _root.gedung2._y + 10;
}
if (_root.gedung1._y < 571) {
_root.gedung1._y = _root.gedung1._y + 10;
}
if (_root.pohon1._y < 533) {
_root.pohon1._y = _root.pohon1._y + 10;
}
if (_root.pohon2._y < 572) {
_root.pohon2._y = _root.pohon2._y + 10;
}
}
if ((Key.isDown(32) and (gunkeluar == 0)) and (mati == 0)) {
gunkeluar = 1;
_root.gun._x = _x - 10;
_root.gun._y = _y + 10;
_root.gun._visible = 1;
}
if ((life <= 0) and (_currentframe < 4)) {
life = 1;
mati = 1;
this.gotoAndPlay(4);
}
}
Instance of Symbol 121 MovieClip "gun" in Frame 5
onClipEvent (load) {
_visible = 0;
}
onClipEvent (enterFrame) {
if (_root.pesawat.gunkeluar == 0) {
_visible = 0;
} else {
_visible = 1;
}
_x = (_x - 25);
if (_x < 10) {
_root.pesawat.gunkeluar = 0;
_y = 400;
}
if (hitTest(_root.musuh1.musuh) and (_root.musuh1.musuh._currentframe == 1)) {
_root.score = _root.score + 25;
_root.pesawat.gunkeluar = 0;
_visible = 0;
_y = 400;
_root.musuh1.musuh.gotoAndPlay(2);
}
if (hitTest(_root.alien)) {
_root.pesawat.gunkeluar = 0;
_visible = 0;
_y = 400;
_root.alien.energi = _root.alien.energi - 20;
}
}
Instance of Symbol 124 MovieClip "musuh1" in Frame 5
onClipEvent (load) {
musuhkeluar = 0;
activegun = 0;
}
onClipEvent (enterFrame) {
if ((random(80) == 3) and (musuhkeluar == 0)) {
musuhkeluar = 1;
this.gotoAndPlay(2);
_y = (10 + random(250));
}
if (hitTest(_root.pesawat) and (this.musuh._currentframe == 1)) {
_root.pesawat.life = _root.pesawat.life - 5;
this.musuh.gotoAndPlay(2);
musuhkeluar = 0;
}
if (((musuhkeluar == 1) and (_root.gun1.gun1keluar == 0)) and (activegun == 1)) {
_root.gun1._x = this.musuh._x + 10;
_root.gun1._y = _y + 10;
_root.gun1.gun1keluar = 1;
}
}
Instance of Symbol 128 MovieClip "gun1" in Frame 5
onClipEvent (load) {
_visible = 0;
gun1keluar = 0;
xa = _x;
}
onClipEvent (enterFrame) {
if (gun1keluar == 0) {
_visible = 0;
} else {
_visible = 1;
_x = (_x + 10);
if (_x > 410) {
gun1keluar = 0;
_y = 400;
_x = xa;
}
if (hitTest(_root.pesawat)) {
gun1keluar = 0;
_y = 400;
_root.pesawat.life = _root.pesawat.life - 10;
}
}
}
Instance of Symbol 164 MovieClip "alien" in Frame 5
onClipEvent (load) {
energi = 50 + (25 * _root.level);
xl = _x;
}
onClipEvent (enterFrame) {
if ((energi <= 0) and (_currentframe == 1)) {
gotoAndPlay (2);
}
if (_x < 100) {
_x = (_x + 5);
}
if ((random(10) == 5) and (_x < 20)) {
_x = (_x - (5 + random(20)));
}
if ((random(8) == 5) and (_y >= 50)) {
_y = (_y - (10 + random(10)));
}
if ((random(8) == 3) and (_y <= 250)) {
_y = (_y + (10 + random(10)));
}
if (((_root.aliengun.gunalien == 0) and (random(20 - _root.level) == 9)) and (energi > 0)) {
_root.aliengun.gunalien = 1;
_root.aliengun._y = _y;
_root.aliengun._x = _x + 20;
_root.aliengun.gotoAndPlay(2);
}
if (((_root.gun._y < (_y - 30)) and (_y < 250)) and (_root.pesawat.gunkeluar == 1)) {
_y = (_y + 10);
}
if (((_root.gun._y > (_y + 30)) and (_y > 150)) and (_root.pesawat.gunkeluar == 1)) {
_y = (_y - 10);
}
if ((_y < _root.pesawat._y) and (random(15) == _root.level)) {
_y = (_y + (10 + random(10)));
}
if ((_y > _root.pesawat._y) and (random(15) == (_root.level + 1))) {
_y = (_y - (10 + random(10)));
}
}
Instance of Symbol 166 MovieClip "aliengun" in Frame 5
onClipEvent (load) {
_visible = 0;
gunalien = 0;
xa = _x;
}
onClipEvent (enterFrame) {
if (gunalien == 0) {
_visible = 0;
} else {
_visible = 1;
_x = (_x + 30);
if (_x > 500) {
gunalien = 0;
_y = 400;
_x = xa;
}
if (hitTest(_root.pesawat)) {
gunalien = 0;
_y = 400;
_x = xa;
_root.pesawat.life = _root.pesawat.life - 30;
}
}
}
Instance of Symbol 170 MovieClip in Frame 5
onClipEvent (load) {
_visible = 0;
gotoAndStop (1);
}
onClipEvent (enterFrame) {
if ((_root.alien._currentframe == 20) and (_currentframe == 1)) {
_visible = 1;
gotoAndPlay (2);
}
}
Instance of Symbol 171 MovieClip in Frame 5
onClipEvent (enterFrame) {
if (_root.pesawat.life >= 0) {
_xscale = _root.pesawat.life;
}
}
Instance of Symbol 138 MovieClip "tenaga" in Frame 5
onClipEvent (enterFrame) {
if (_root.alien.energi >= 0) {
_xscale = _root.alien.energi;
} else {
_visible = 0;
}
}
Frame 6
stop();
Symbol 15 Button
on (release) {
gotoAndStop (3);
}
Symbol 22 Button
on (release) {
getURL ("http://www.flashgames247.com");
}
Symbol 26 Button
on (release) {
getURL ("http://www.flashgames247.com/pages/freegames.html", "_blank");
}
Symbol 36 Button
on (release) {
fscommand ("quit");
}
Symbol 38 Button
on (release) {
stopAllSounds();
gotoAndStop (4);
}
Symbol 68 MovieClip Frame 1
stop();
Symbol 70 MovieClip Frame 1
stop();
Symbol 74 MovieClip Frame 1
stop();
Symbol 119 MovieClip Frame 3
gotoAndPlay (1);
Symbol 119 MovieClip Frame 22
stop();
_root.gotoAndStop(3);
Symbol 123 MovieClip Frame 1
stop();
Symbol 123 MovieClip Frame 20
stop();
Symbol 124 MovieClip Frame 1
this.activegun = 0;
stop();
Symbol 124 MovieClip Frame 2
this.musuh.gotoAndStop(1);
Symbol 124 MovieClip Frame 12
this.activegun = 1;
Symbol 124 MovieClip Frame 37
this.activegun = 0;
_root.musuh1.musuhkeluar = 0;
this.gotoAndStop(1);
Symbol 125 MovieClip Frame 1
this.activegun == 0;
stop();
Symbol 125 MovieClip Frame 2
this.musuh.gotoAndStop(1);
Symbol 125 MovieClip Frame 10
this.activegun == 1;
Symbol 125 MovieClip Frame 37
this.activegun == 0;
_root.musuh2.musuhkeluar = 0;
this.gotoAndStop(1);
Symbol 126 MovieClip Frame 1
this.activegun == 0;
stop();
Symbol 126 MovieClip Frame 2
this.musuh.gotoAndStop(1);
Symbol 126 MovieClip Frame 11
this.activegun == 1;
Symbol 126 MovieClip Frame 37
this.activegun == 0;
_root.musuh3.musuhkeluar = 0;
this.gotoAndStop(1);
Symbol 134 Button
on (release) {
getURL ("http://www.flashgames247.com");
}
Symbol 136 Button
on (release) {
getURL ("http://www.flashgames247.com/pages/freegames.html", "_blank");
}
Symbol 163 MovieClip Frame 1
stop();
Symbol 164 MovieClip Frame 1
stop();
Instance of Symbol 163 MovieClip in Symbol 164 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_root.level);
}
Symbol 164 MovieClip Frame 20
stop();
Symbol 166 MovieClip Frame 1
stop();
Symbol 170 MovieClip Frame 30
stop();
_root.score = _root.score + (500 + (_root.level * 500));
_root.level = _root.level + 1;
stopAllSounds();
_root.gotoAndStop(4);
Symbol 199 MovieClip Frame 75
_root.gotoAndStop(2);