Frame 1
stop();
fscommand ("allowscale", false);
fscommand ("Fullscreen", false);
fscommand ("showmenu", false);
fscommand ("trapallkeys", true);
Instance of Symbol 17 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("cover");
}
}
Frame 2
stop();
stopAllSounds();
bgsound = new Sound();
bgsound.attachSound("music");
bgsound.setVolume(50);
bgsound.start(0, 999999);
Instance of Symbol 108 MovieClip in Frame 7
onClipEvent (load) {
jumlahsenjata = 0;
energi = 100;
kedalamanSenjata = 100;
kekuatansenjata = 20;
mati = 0;
xt = _x;
yt = _y;
kecepatan = 5;
pergeseran = 10;
loadingsenjata = 0;
waktuloading = 0;
loadingmisil = 0;
waktuloadingmisil = 0;
gantimisil = 0;
wkgt = 0;
}
onClipEvent (enterFrame) {
if (Key.isDown(37) and (xt > 380)) {
xt = xt - pergeseran;
if (_rotation > -15) {
_rotation = (_rotation-1);
}
} else if (Key.isDown(39) and (xt < 580)) {
xt = xt + pergeseran;
if (_rotation < 15) {
_rotation = (_rotation+1);
}
} else if (Key.isDown(38) and (yt > 140)) {
yt = yt - pergeseran;
} else if (Key.isDown(40) and (yt < 280)) {
yt = yt + pergeseran;
} else if (_rotation != 0) {
if (_rotation < 0) {
_rotation = (_rotation+1);
}
if (_rotation > 0) {
_rotation = (_rotation-1);
}
}
if (_currentframe <= 2) {
_x = (_x + ((xt - _x) / kecepatan));
_y = (_y + ((yt - _y) / kecepatan));
}
}
Frame 23
stop();
fscommand ("trapallkeys", true);
aktif = 1;
level = 1;
score = 0;
pergeseranlangit = 0.1;
pergeseranbg1 = 0.3;
pergeseranbg2 = 0.5;
pergeseranbg3 = 1;
kedalamansenjatabg = 5000;
jumlahsenjatabg = 0;
nyawa = 3;
misilmode = 1;
jumlahmisil1 = 10;
jumlahmisil2 = 12;
jumlahmisil3 = 5;
Instance of Symbol 115 MovieClip in Frame 23
onClipEvent (load) {
keluar = 1;
xlama = _x;
_x = random(500);
_y = (random(250) + 50);
}
onClipEvent (enterFrame) {
if ((random(60) == 15) && (keluar == 0)) {
keluar = 1;
_y = (random(350) + 50);
}
if (keluar == 1) {
_x = (_x - 2);
if (_x < -50) {
keluar = 0;
_x = xlama;
}
}
}
Instance of Symbol 115 MovieClip in Frame 23
onClipEvent (load) {
keluar = 1;
xlama = _x;
_x = random(500);
_y = (random(250) + 50);
}
onClipEvent (enterFrame) {
if ((random(60) == 15) && (keluar == 0)) {
keluar = 1;
_y = (random(350) + 50);
}
if (keluar == 1) {
_x = (_x - 3);
if (_x < -50) {
keluar = 0;
_x = xlama;
}
}
}
Instance of Symbol 115 MovieClip in Frame 23
onClipEvent (load) {
keluar = 1;
xlama = _x;
_x = random(500);
_y = (random(250) + 50);
}
onClipEvent (enterFrame) {
if ((random(60) == 15) && (keluar == 0)) {
keluar = 1;
_y = (random(350) + 50);
}
if (keluar == 1) {
_x = (_x - 1);
if (_x < -50) {
keluar = 0;
_x = xlama;
}
}
}
Instance of Symbol 118 MovieClip in Frame 23
onClipEvent (load) {
_x = 0;
pergeseran = _root.pergeseranbg1;
}
onClipEvent (enterFrame) {
if (_root.aktif == 1) {
_x = (_x - pergeseran);
if (_x < -600) {
_x = 0;
}
}
}
Instance of Symbol 121 MovieClip in Frame 23
onClipEvent (load) {
_x = 0;
pergeseran = _root.pergeseranbg2;
}
onClipEvent (enterFrame) {
if (_root.aktif == 1) {
_x = (_x - pergeseran);
if (_x < -600) {
_x = 0;
}
}
}
Instance of Symbol 228 MovieClip "bg1" in Frame 23
onClipEvent (load) {
_x = 0;
pergeseran = _root.pergeseranbg3;
gotoAndStop(random(20) + ((_root.level - 1) * 20));
}
onClipEvent (enterFrame) {
if (_root.aktif == 1) {
_x = (_x - pergeseran);
if (_x < -600) {
_x = 600;
gotoAndStop(random(20) + ((_root.level - 1) * 20));
}
}
}
Instance of Symbol 228 MovieClip "bg2" in Frame 23
onClipEvent (load) {
_x = 600;
pergeseran = _root.pergeseranbg3;
gotoAndStop(random(20) + ((_root.level - 1) * 20));
}
onClipEvent (enterFrame) {
if (_root.aktif == 1) {
_x = (_x - pergeseran);
if (_x < -600) {
_x = 600;
gotoAndStop(random(20) + ((_root.level - 1) * 20));
}
}
}
Instance of Symbol 234 MovieClip "musuh1" in Frame 23
onClipEvent (load) {
keluar = 0;
energi = 100;
kekuatansenjata = 3;
jumlahsenjata = 0;
kedalamansenjata = 250;
loadingsenjata = 0;
waktuloading = 0;
}
onClipEvent (enterFrame) {
if ((((keluar == 0) and (random(200 - (_root.level * 10)) == 10)) and (_root.aktif == 1)) and ((_root.level < 3) or (_root.level > 7))) {
keluar = 1;
energi = 100;
play();
}
if (_root.aktif == 1) {
if (((loadingsenjata == 0) and (musuh._currentframe == 1)) and (random(20 - _root.level) == 3)) {
musuh.fire.play();
loadingsenjata = 1;
jumlahsenjata++;
duplicateMovieClip (_root.lasermusuh1, "laserm1" + jumlahsenjata, kedalamansenjata + jumlahsenjata);
if (jumlahsenjata > 15) {
jumlahsenjata = 0;
}
}
if ((musuh.sensor.hitTest(_root.heli.sensor) and (_root.heli._currentframe == 2)) and (musuh._currentframe == 1)) {
_root.heli.play();
stop();
musuh.play();
}
if (loadingsenjata == 1) {
waktuloading++;
if (waktuloading > 4) {
waktuloading = 0;
loadingsenjata = 0;
}
}
if ((energi <= 0) and (musuh._currentframe == 1)) {
stop();
musuh.play();
}
} else if (_root.aktif == 2) {
_root.aktif = 1;
play();
} else {
stop();
}
}
Instance of Symbol 238 MovieClip "musuh2" in Frame 23
onClipEvent (load) {
keluar = 0;
energi = 100;
kekuatansenjata = 5;
jumlahsenjata = 0;
kedalamansenjata = 300;
loadingsenjata = 0;
waktuloading = 0;
}
onClipEvent (enterFrame) {
if (((keluar == 0) and (random(200 - (_root.level * 10)) == 7)) and (_root.aktif == 1)) {
keluar = 1;
energi = 100;
play();
}
if (_root.aktif == 1) {
if (((((loadingsenjata == 0) and (musuh._currentframe == 1)) and (random(20 - _root.level) == 3)) and (_root.level > 1)) and (_root.level < 4)) {
musuh.fire.play();
loadingsenjata = 1;
jumlahsenjata++;
duplicateMovieClip (_root.lasermusuh2, "laserm2" + jumlahsenjata, kedalamansenjata + jumlahsenjata);
if (jumlahsenjata > 15) {
jumlahsenjata = 0;
}
}
if ((musuh.sensor.hitTest(_root.heli.sensor) and (_root.heli._currentframe == 2)) and (musuh._currentframe == 1)) {
_root.heli.play();
stop();
musuh.play();
}
if (loadingsenjata == 1) {
waktuloading++;
if (waktuloading > 4) {
waktuloading = 0;
loadingsenjata = 0;
}
}
if ((energi <= 0) and (musuh._currentframe == 1)) {
stop();
musuh.play();
}
} else if (_root.aktif == 2) {
_root.aktif = 1;
play();
} else {
stop();
}
}
Instance of Symbol 242 MovieClip "musuh3" in Frame 23
onClipEvent (load) {
keluar = 0;
energi = 100;
kekuatansenjata = 4;
jumlahsenjata = 0;
kedalamansenjata = 350;
loadingsenjata = 0;
waktuloading = 0;
}
onClipEvent (enterFrame) {
if (((((keluar == 0) and (random(200 - (_root.level * 10)) == 14)) and (_root.aktif == 1)) and (_root.level > 3)) and (_root.level < 7)) {
keluar = 1;
energi = 100;
play();
}
if (_root.aktif == 1) {
if (((loadingsenjata == 0) and (musuh._currentframe == 1)) and (random(20 - _root.level) == 3)) {
musuh.fire.play();
loadingsenjata = 1;
jumlahsenjata++;
duplicateMovieClip (_root.lasermusuh3, "laserm3" + jumlahsenjata, kedalamansenjata + jumlahsenjata);
if (jumlahsenjata > 15) {
jumlahsenjata = 0;
}
}
if ((musuh.sensor.hitTest(_root.heli.sensor) and (_root.heli._currentframe == 2)) and (musuh._currentframe == 1)) {
_root.heli.play();
stop();
musuh.play();
}
if (loadingsenjata == 1) {
waktuloading++;
if (waktuloading > 4) {
waktuloading = 0;
loadingsenjata = 0;
}
}
if ((energi <= 0) and (musuh._currentframe == 1)) {
stop();
musuh.play();
}
} else if (_root.aktif == 2) {
_root.aktif = 1;
play();
} else {
stop();
}
}
Instance of Symbol 246 MovieClip "musuh4" in Frame 23
onClipEvent (load) {
keluar = 0;
energi = 100;
kekuatansenjata = 10;
jumlahsenjata = 0;
kedalamansenjata = 450;
loadingsenjata = 0;
waktuloading = 0;
}
onClipEvent (enterFrame) {
if (((((keluar == 0) and (random(200 - (_root.level * 10)) == 14)) and (_root.aktif == 1)) and (_root.level > 5)) and (_root.level < 9)) {
keluar = 1;
energi = 100;
play();
}
if (_root.aktif == 1) {
if (((loadingsenjata == 0) and (musuh._currentframe == 1)) and (random(20 - _root.level) == 3)) {
musuh.fire.play();
loadingsenjata = 1;
jumlahsenjata++;
duplicateMovieClip (_root.lasermusuh4, "laserm4" + jumlahsenjata, kedalamansenjata + jumlahsenjata);
if (jumlahsenjata > 15) {
jumlahsenjata = 0;
}
}
if ((musuh.sensor.hitTest(_root.heli.sensor) and (_root.heli._currentframe == 2)) and (musuh._currentframe == 1)) {
_root.heli.play();
stop();
musuh.play();
}
if (loadingsenjata == 1) {
waktuloading++;
if (waktuloading > 4) {
waktuloading = 0;
loadingsenjata = 0;
}
}
if ((energi <= 0) and (musuh._currentframe == 1)) {
stop();
musuh.play();
}
} else if (_root.aktif == 2) {
_root.aktif = 1;
play();
} else {
stop();
}
}
Instance of Symbol 247 MovieClip "musuh5" in Frame 23
onClipEvent (load) {
keluar = 0;
energi = 100;
kekuatansenjata = 15;
jumlahsenjata = 0;
kedalamansenjata = 550;
loadingsenjata = 0;
waktuloading = 0;
}
onClipEvent (enterFrame) {
if (((((keluar == 0) and (random(200 - (_root.level * 10)) == 14)) and (_root.aktif == 1)) and (_root.level > 7)) and (_root.level < 11)) {
keluar = 1;
energi = 100;
play();
}
if (_root.aktif == 1) {
if (((loadingsenjata == 0) and (musuh._currentframe == 1)) and (random(20 - _root.level) == 3)) {
musuh.fire.play();
loadingsenjata = 1;
jumlahsenjata++;
duplicateMovieClip (_root.lasermusuh5, "laserm5" + jumlahsenjata, kedalamansenjata + jumlahsenjata);
if (jumlahsenjata > 15) {
jumlahsenjata = 0;
}
}
if ((musuh.sensor.hitTest(_root.heli.sensor) and (_root.heli._currentframe == 2)) and (musuh._currentframe == 1)) {
_root.heli.play();
stop();
musuh.play();
}
if (loadingsenjata == 1) {
waktuloading++;
if (waktuloading > 4) {
waktuloading = 0;
loadingsenjata = 0;
}
}
if ((energi <= 0) and (musuh._currentframe == 1)) {
stop();
musuh.play();
}
} else if (_root.aktif == 2) {
_root.aktif = 1;
play();
} else {
stop();
}
}
Instance of Symbol 250 MovieClip "musuh6" in Frame 23
onClipEvent (load) {
keluar = 0;
menembak = 0;
kekekuatansenjata = 0;
loadingsenjata = 0;
waktuloading = 0;
kecepatan = 10 + _root.level;
kedalamansenjata = 500;
xa = _x;
_ya = _y;
energi = 200;
}
onClipEvent (enterFrame) {
if (((keluar == 0) and (_root.level > 7)) and (random(100 - (_root.level * 5)) == 4)) {
keluar = 1;
_y = ((_root.heli._y - random(30)) + random(30));
}
if (keluar == 1) {
_visible = 1;
_x = (_x - kecepatan);
if (_x < -50) {
_x = xa;
_y = ya;
keluar = 0;
}
if (((loadingsenjata == 0) and (_currentframe == 1)) and (random(20 - _root.level) == 3)) {
loadingsenjata = 1;
jumlahsenjata++;
duplicateMovieClip (_root.misilmusuh1, "misilm1" + jumlahsenjata, kedalamansenjata + jumlahsenjata);
if (jumlahsenjata > 15) {
jumlahsenjata = 0;
}
}
if ((sensor.hitTest(_root.heli.sensor) and (_root.heli._currentframe == 2)) and (musuh._currentframe == 1)) {
_root.heli.play();
play();
}
if ((energi <= 0) and (_currentframe == 1)) {
play();
}
} else {
_visible = 0;
_x = xa;
_y = ya;
}
if (_currentframe > 40) {
keluar == 0;
_x = xa;
_y = ya;
gotoAndStop (1);
}
if (loadingsenjata == 1) {
waktuloading++;
if (waktuloading > 5) {
waktuloading = 0;
loadingsenjata = 0;
}
}
}
Instance of Symbol 108 MovieClip "heli" in Frame 23
onClipEvent (load) {
jumlahsenjata = 0;
energi = 100;
kedalamanSenjata = 100;
kekuatansenjata = 20;
mati = 0;
xt = _x;
yt = _y;
kecepatan = 5;
pergeseran = 10;
loadingsenjata = 0;
waktuloading = 0;
loadingmisil = 0;
waktuloadingmisil = 0;
gantimisil = 0;
wkgt = 0;
}
onClipEvent (enterFrame) {
if (_root.aktif == 1) {
if (Key.isDown(38) and (yt > 50)) {
yt = yt - pergeseran;
}
if (Key.isDown(40) and (yt < 350)) {
yt = yt + pergeseran;
}
if (Key.isDown(37) and (xt > 0)) {
xt = xt - pergeseran;
if (_rotation > -15) {
_rotation = (_rotation-1);
}
}
if (Key.isDown(39) and (xt < 500)) {
xt = xt + pergeseran;
if (_rotation < 15) {
_rotation = (_rotation+1);
}
}
if (Key.isDown(68) and (gantimisil == 0)) {
gantimisil = 1;
_root.misilmode++;
if (_root.misilmode > 3) {
_root.misilmode = 1;
}
}
if (_currentframe <= 2) {
_x = (_x + ((xt - _x) / kecepatan));
_y = (_y + ((yt - _y) / kecepatan));
if (Key.isDown(65)) {
if (loadingsenjata == 0) {
fire.play();
loadingsenjata = 1;
jumlahsenjata++;
duplicateMovieClip (_root.laser, "laser" + jumlahsenjata, kedalamanSenjata + jumlahsenjata);
if (jumlahsenjata > 15) {
jumlahsenjata = 0;
}
}
}
if (Key.isDown(83)) {
if (_root.misilmode == 1) {
if ((loadingmisil == 0) and (_root.jumlahmisil1 > 0)) {
loadingmisil = 1;
jumlahsenjata++;
_root.jumlahmisil1--;
duplicateMovieClip (_root.misil1, "misil1" + jumlahsenjata, kedalamanSenjata + jumlahsenjata);
if (jumlahsenjata > 15) {
jumlahsenjata = 0;
}
}
}
if (_root.misilmode == 2) {
if ((loadingmisil == 0) and (_root.jumlahmisil2 > 2)) {
loadingmisil = 1;
jumlahsenjata++;
_root.jumlahmisil2 = _root.jumlahmisil2 - 3;
duplicateMovieClip (_root.misil2, "misil2" + jumlahsenjata, kedalamanSenjata + jumlahsenjata);
if (jumlahsenjata > 15) {
jumlahsenjata = 0;
}
}
}
if (_root.misilmode == 3) {
if ((loadingmisil == 0) and (_root.jumlahmisil3 > 0)) {
loadingmisil = 1;
jumlahsenjata++;
_root.jumlahmisil3--;
duplicateMovieClip (_root.misil3, "misil3" + jumlahsenjata, kedalamanSenjata + jumlahsenjata);
if (jumlahsenjata > 15) {
jumlahsenjata = 0;
}
}
}
}
if (energi <= 0) {
energi = 0;
play();
}
}
if (loadingsenjata == 1) {
waktuloading++;
if (waktuloading > 4) {
waktuloading = 0;
loadingsenjata = 0;
}
}
if (loadingmisil == 1) {
waktuloadingmisil++;
if (waktuloadingmisil > 10) {
waktuloadingmisil = 0;
loadingmisil = 0;
}
}
if (gantimisil == 1) {
wkgt++;
if (wkgt > 10) {
wkgt = 0;
gantimisil = 0;
}
}
}
}
onClipEvent (keyUp) {
if (_rotation != 0) {
if (_rotation < 0) {
_rotation = (_rotation+1);
}
if (_rotation > 0) {
_rotation = (_rotation-1);
}
}
}
Instance of Symbol 255 MovieClip in Frame 23
onClipEvent (load) {
_x = _root.heli._x;
_xscale = (_root.heli._y - 100);
if (_xscale < 0) {
_xscale = 0;
}
if (_xscale > 100) {
_xscale = 100;
}
_yscale = _xscale;
}
onClipEvent (enterFrame) {
_x = _root.heli._x;
_xscale = (_root.heli._y - 100);
if (_xscale < 0) {
_xscale = 0;
}
if (_xscale > 100) {
_xscale = 100;
}
_yscale = _xscale;
}
Instance of Symbol 277 MovieClip "bonus" in Frame 23
onClipEvent (load) {
keluar = 0;
xa = _x;
ya = _y;
jenisbonus = 0;
acakbonus = 0;
}
onClipEvent (enterFrame) {
if ((keluar == 0) and (random(300) == 33)) {
keluar = 1;
_x = (200 + random(300));
acakbonus = random(15);
if ((acakbonus > 1) and (acakbonus < 5)) {
jenisbonus = 1;
} else if ((acakbonus > 4) and (acakbonus < 8)) {
jenisbonus = 2;
} else if ((acakbonus > 7) and (acakbonus < 11)) {
jenisbonus = 3;
} else if ((acakbonus > 10) and (acakbonus < 13)) {
jenisbonus = 4;
} else if (random(10) == 3) {
jenisbonus = 5;
} else {
jenisbonus = 1;
}
}
if (keluar == 1) {
_x = (_x-1);
_y = (_y + 2);
if (_y > 375) {
keluar = 0;
}
if (sensor.hitTest(_root.heli.sensor) and (_currentframe == 1)) {
gotoAndStop(jenisbonus + 1);
}
} else {
gotoAndStop (1);
_x = xa;
_y = ya;
}
}
Instance of Symbol 280 MovieClip "laser" in Frame 23
onClipEvent (load) {
_x = (_root.heli._x + 20);
_y = (_root.heli._y + 5);
gerak = 0;
}
onClipEvent (enterFrame) {
if (_name != "laser") {
if (gerak == 0) {
_x = (_x + 15);
if (_x > 600) {
removeMovieClip(this);
}
}
if (hitTest(_root.musuh1.musuh.sensor) and (_currentframe == 1)) {
gerak = 1;
play();
_root.musuh1.energi = _root.musuh1.energi - _root.heli.kekuatansenjata;
}
if (hitTest(_root.musuh2.musuh.sensor) and (_currentframe == 1)) {
gerak = 1;
play();
_root.musuh2.energi = _root.musuh2.energi - _root.heli.kekuatansenjata;
}
if (hitTest(_root.musuh3.musuh.sensor) and (_currentframe == 1)) {
gerak = 1;
play();
_root.musuh3.energi = _root.musuh3.energi - _root.heli.kekuatansenjata;
}
if (hitTest(_root.musuh4.musuh.sensor) and (_currentframe == 1)) {
gerak = 1;
play();
_root.musuh4.energi = _root.musuh4.energi - _root.heli.kekuatansenjata;
}
if (hitTest(_root.musuh5.musuh.sensor) and (_currentframe == 1)) {
gerak = 1;
play();
_root.musuh5.energi = _root.musuh5.energi - _root.heli.kekuatansenjata;
}
if (hitTest(_root.bg1.ob1.sensor) and (_currentframe == 1)) {
gerak = 1;
play();
_root.bg1.ob1.energi = _root.bg1.ob1.energi - _root.heli.kekuatansenjata;
}
if (hitTest(_root.bg1.ob2.sensor) and (_currentframe == 1)) {
gerak = 1;
play();
_root.bg1.ob2.energi = _root.bg1.ob2.energi - _root.heli.kekuatansenjata;
}
if (hitTest(_root.bg1.ob3.sensor) and (_currentframe == 1)) {
gerak = 1;
play();
_root.bg1.ob3.energi = _root.bg1.ob3.energi - _root.heli.kekuatansenjata;
}
if (hitTest(_root.bg1.ob4.sensor) and (_currentframe == 1)) {
gerak = 1;
play();
_root.bg1.ob4.energi = _root.bg1.ob4.energi - _root.heli.kekuatansenjata;
}
if (hitTest(_root.bg2.ob1.sensor) and (_currentframe == 1)) {
gerak = 1;
play();
_root.bg2.ob1.energi = _root.bg2.ob1.energi - _root.heli.kekuatansenjata;
}
if (hitTest(_root.bg2.ob2.sensor) and (_currentframe == 1)) {
gerak = 1;
play();
_root.bg2.ob2.energi = _root.bg2.ob2.energi - _root.heli.kekuatansenjata;
}
if (hitTest(_root.bg2.ob3.sensor) and (_currentframe == 1)) {
gerak = 1;
play();
_root.bg2.ob3.energi = _root.bg2.ob3.energi - _root.heli.kekuatansenjata;
}
if (hitTest(_root.bg2.ob4.sensor) and (_currentframe == 1)) {
gerak = 1;
play();
_root.bg2.ob4.energi = _root.bg2.ob4.energi - _root.heli.kekuatansenjata;
}
} else {
_x = 100;
_y = -100;
}
}
Instance of Symbol 280 MovieClip "lasermusuh1" in Frame 23
onClipEvent (load) {
_x = (_root.musuh1.musuh._x - 5);
_y = (_root.musuh1.musuh._y + 5);
gerak = 0;
}
onClipEvent (enterFrame) {
if (_name != "lasermusuh1") {
if (gerak == 0) {
_x = (_x - 15);
if (_x < 0) {
removeMovieClip(this);
}
}
if (hitTest(_root.heli.sensor) and (_currentframe == 1)) {
gerak = 1;
_root.heli.energi = _root.heli.energi - _root.musuh1.kekuatansenjata;
play();
}
if (_currentframe == 8) {
removeMovieClip(this);
}
} else {
_x = 100;
_y = -100;
}
}
Instance of Symbol 280 MovieClip "lasermusuh2" in Frame 23
onClipEvent (load) {
_x = (_root.musuh2.musuh._x - 5);
_y = (_root.musuh2.musuh._y + 5);
gerak = 0;
}
onClipEvent (enterFrame) {
if (_name != "lasermusuh2") {
if (gerak == 0) {
_x = (_x - 15);
if (_x < 0) {
removeMovieClip(this);
}
}
if (hitTest(_root.heli.sensor) and (_currentframe == 1)) {
gerak = 1;
_root.heli.energi = _root.heli.energi - _root.musuh2.kekuatansenjata;
play();
}
if (_currentframe == 8) {
removeMovieClip(this);
}
} else {
_x = 100;
_y = -100;
}
}
Instance of Symbol 280 MovieClip "lasermusuh3" in Frame 23
onClipEvent (load) {
_x = (_root.musuh3.musuh._x - 5);
_y = (_root.musuh3.musuh._y + 5);
gerak = 0;
}
onClipEvent (enterFrame) {
if (_name != "lasermusuh3") {
if (gerak == 0) {
_x = (_x - 15);
if (_x < 0) {
removeMovieClip(this);
}
}
if (hitTest(_root.heli.sensor) and (_currentframe == 1)) {
gerak = 1;
_root.heli.energi = _root.heli.energi - _root.musuh3.kekuatansenjata;
play();
}
if (_currentframe == 8) {
removeMovieClip(this);
}
} else {
_x = 100;
_y = -100;
}
}
Instance of Symbol 283 MovieClip "laserbg1" in Frame 23
onClipEvent (load) {
kec = 10;
gerak = 0;
if (_root.bg1.musuh1.menembak == 1) {
_rotation = _root.bg1.musuh1._rotation;
kekuatan = _root.bg1.musuh1.kekuatansenjata;
if (_root.bg1.musuh1._xscale < 0) {
rads = (_root.bg1.musuh1._rotation * 3.141593) / 180;
} else {
rads = ((_root.bg1.musuh1._rotation + 180) * 3.141593) / 180;
}
_root.bg1.musuh1.menembak = 0;
_x = ((_root.bg1.musuh1._x + (40 * Math.cos(rads))) + _root.bg1._x);
_y = ((_root.bg1.musuh1._y + (40 * Math.sin(rads))) + _root.bg1._y);
}
if (_root.bg2.musuh1.menembak == 1) {
_rotation = _root.bg1.musuh1._rotation;
kekuatan = _root.bg2.musuh1.kekuatansenjata;
if (_root.bg2.musuh1._xscale < 0) {
rads = (_root.bg2.musuh1._rotation * 3.141593) / 180;
} else {
rads = ((_root.bg2.musuh1._rotation + 180) * 3.141593) / 180;
}
_root.bg2.musuh1.menembak = 0;
_x = ((_root.bg2.musuh1._x + (40 * Math.cos(rads))) + _root.bg2._x);
_y = ((_root.bg2.musuh1._y + (40 * Math.sin(rads))) + _root.bg2._y);
}
xfactor = Math.cos(rads);
yfactor = Math.sin(rads);
lvx = kec * xfactor;
lvy = kec * yfactor;
}
onClipEvent (enterFrame) {
if (_name != "laserbg1") {
if (gerak == 0) {
_x = (_x + lvx);
_y = (_y + lvy);
if ((((_x > 600) || (_x < 0)) || (_y < 0)) || (_y > 400)) {
removeMovieClip(this);
}
}
if (hitTest(_root.heli.sensor) and (_currentframe == 1)) {
gerak = 1;
_root.heli.energi = _root.heli.energi - kekuatan;
play();
}
if (_currentframe == 8) {
removeMovieClip(this);
}
} else {
_x = 100;
_y = -100;
}
}
Instance of Symbol 283 MovieClip "laserbg2" in Frame 23
onClipEvent (load) {
kec = 5;
gerak = 0;
if (_root.bg1.musuh2.menembak == 1) {
_rotation = _root.bg1.musuh2._rotation;
kekuatan = _root.bg1.musuh2.kekuatansenjata;
if (_root.bg1.musuh2._xscale < 0) {
rads = (_root.bg1.musuh2._rotation * 3.141593) / 180;
} else {
rads = ((_root.bg1.musuh2._rotation + 180) * 3.141593) / 180;
}
_root.bg1.musuh2.menembak = 0;
_x = ((_root.bg1.musuh2._x + (40 * Math.cos(rads))) + _root.bg1._x);
_y = ((_root.bg1.musuh2._y + (40 * Math.sin(rads))) + _root.bg1._y);
}
if (_root.bg2.musuh2.menembak == 1) {
_rotation = _root.bg1.musuh2._rotation;
kekuatan = _root.bg2.musuh2.kekuatansenjata;
if (_root.bg2.musuh2._xscale < 0) {
rads = (_root.bg2.musuh2._rotation * 3.141593) / 180;
} else {
rads = ((_root.bg2.musuh2._rotation + 180) * 3.141593) / 180;
}
_root.bg2.musuh2.menembak = 0;
_x = ((_root.bg2.musuh2._x + (40 * Math.cos(rads))) + _root.bg2._x);
_y = ((_root.bg2.musuh2._y + (40 * Math.sin(rads))) + _root.bg2._y);
}
xfactor = Math.cos(rads);
yfactor = Math.sin(rads);
lvx = kec * xfactor;
lvy = kec * yfactor;
}
onClipEvent (enterFrame) {
if (_name != "laserbg2") {
if (gerak == 0) {
_x = (_x + lvx);
_y = (_y + lvy);
if ((((_x > 600) || (_x < 0)) || (_y < 0)) || (_y > 400)) {
removeMovieClip(this);
}
}
if (hitTest(_root.heli.sensor) and (_currentframe == 1)) {
gerak = 1;
_root.heli.energi = _root.heli.energi - kekuatan;
play();
}
if (_currentframe == 8) {
removeMovieClip(this);
}
} else {
_x = 100;
_y = -100;
}
}
Instance of Symbol 283 MovieClip "laserbg3" in Frame 23
onClipEvent (load) {
kec = 10;
gerak = 0;
if (_root.bg1.musuh3.menembak == 1) {
_rotation = _root.bg1.musuh3._rotation;
kekuatan = _root.bg1.musuh3.kekuatansenjata;
if (_root.bg1.musuh3._xscale < 0) {
rads = (_root.bg1.musuh3._rotation * 3.141593) / 180;
} else {
rads = ((_root.bg1.musuh3._rotation + 180) * 3.141593) / 180;
}
_root.bg1.musuh3.menembak = 0;
_x = ((_root.bg1.musuh3._x + (40 * Math.cos(rads))) + _root.bg1._x);
_y = ((_root.bg1.musuh3._y + (40 * Math.sin(rads))) + _root.bg1._y);
}
if (_root.bg2.musuh3.menembak == 1) {
_rotation = _root.bg1.musuh3._rotation;
kekuatan = _root.bg2.musuh3.kekuatansenjata;
if (_root.bg2.musuh3._xscale < 0) {
rads = (_root.bg2.musuh3._rotation * 3.141593) / 180;
} else {
rads = ((_root.bg2.musuh3._rotation + 180) * 3.141593) / 180;
}
_root.bg2.musuh3.menembak = 0;
_x = ((_root.bg2.musuh3._x + (40 * Math.cos(rads))) + _root.bg2._x);
_y = ((_root.bg2.musuh3._y + (40 * Math.sin(rads))) + _root.bg2._y);
}
xfactor = Math.cos(rads);
yfactor = Math.sin(rads);
lvx = kec * xfactor;
lvy = kec * yfactor;
}
onClipEvent (enterFrame) {
if (_name != "laserbg3") {
if (gerak == 0) {
_x = (_x + lvx);
_y = (_y + lvy);
if ((((_x > 600) || (_x < 0)) || (_y < 0)) || (_y > 400)) {
removeMovieClip(this);
}
}
if (hitTest(_root.heli.sensor) and (_currentframe == 1)) {
gerak = 1;
_root.heli.energi = _root.heli.energi - kekuatan;
play();
}
if (_currentframe == 8) {
removeMovieClip(this);
}
} else {
_x = 100;
_y = -100;
}
}
Instance of Symbol 280 MovieClip "lasermusuh4" in Frame 23
onClipEvent (load) {
_x = (_root.musuh4.musuh._x - 5);
_y = (_root.musuh4.musuh._y + 5);
gerak = 0;
}
onClipEvent (enterFrame) {
if (_name != "lasermusuh4") {
if (gerak == 0) {
_x = (_x - 15);
if (_x < 0) {
removeMovieClip(this);
}
}
if (hitTest(_root.heli.sensor) and (_currentframe == 1)) {
gerak = 1;
_root.heli.energi = _root.heli.energi - _root.musuh4.kekuatansenjata;
play();
}
if (_currentframe == 8) {
removeMovieClip(this);
}
} else {
_x = 100;
_y = -100;
}
}
Instance of Symbol 280 MovieClip "lasermusuh5" in Frame 23
onClipEvent (load) {
_x = (_root.musuh5.musuh._x - 5);
_y = (_root.musuh5.musuh._y + 5);
gerak = 0;
}
onClipEvent (enterFrame) {
if (_name != "lasermusuh5") {
if (gerak == 0) {
_x = (_x - 20);
if (_x < 0) {
removeMovieClip(this);
}
}
if (hitTest(_root.heli.sensor) and (_currentframe == 1)) {
gerak = 1;
_root.heli.energi = _root.heli.energi - _root.musuh5.kekuatansenjata;
play();
}
if (_currentframe == 8) {
removeMovieClip(this);
}
} else {
_x = 100;
_y = -100;
}
}
Instance of Symbol 286 MovieClip "misil1" in Frame 23
onClipEvent (load) {
_x = _root.heli._x;
_y = (_root.heli._y + 10);
gerak = 0;
}
onClipEvent (enterFrame) {
if (_name != "misil1") {
if (gerak == 0) {
gotoAndPlay (1);
gerak = 1;
}
if (misil.sensor.hitTest(_root.musuh1.musuh.sensor) and (misil._currentframe == 1)) {
stop();
gerak = 2;
misil.play();
_root.musuh1.energi = _root.musuh1.energi - 500;
}
if (misil.sensor.hitTest(_root.musuh2.musuh.sensor) and (misil._currentframe == 1)) {
stop();
gerak = 2;
misil.play();
_root.musuh2.energi = _root.musuh2.energi - 500;
}
if (misil.sensor.hitTest(_root.musuh3.musuh.sensor) and (misil._currentframe == 1)) {
stop();
gerak = 2;
misil.play();
_root.musuh3.energi = _root.musuh3.energi - 500;
}
if (misil.sensor.hitTest(_root.musuh4.musuh.sensor) and (misil._currentframe == 1)) {
stop();
gerak = 2;
misil.play();
_root.musuh4.energi = _root.musuh4.energi - 500;
}
if (misil.sensor.hitTest(_root.musuh5.musuh.sensor) and (misil._currentframe == 1)) {
stop();
gerak = 2;
misil.play();
_root.musuh5.energi = _root.musuh5.energi - 500;
}
if (misil.sensor.hitTest(_root.musuh6.sensor) and (misil._currentframe == 1)) {
stop();
gerak = 2;
misil.play();
_root.musuh6.energi = _root.musuh6.energi - 500;
}
if (misil.sensor.hitTest(_root.bg1.ob1.sensor) and (misil._currentframe == 1)) {
stop();
gerak = 2;
misil.play();
_root.bg1.ob1.energi = _root.bg1.ob1.energi - 500;
}
if (misil.sensor.hitTest(_root.bg1.ob2.sensor) and (misil._currentframe == 1)) {
stop();
gerak = 2;
misil.play();
_root.bg1.ob2.energi = _root.bg1.ob2.energi - 500;
}
if (misil.sensor.hitTest(_root.bg1.ob3.sensor) and (misil._currentframe == 1)) {
stop();
gerak = 2;
misil.play();
_root.bg1.ob3.energi = _root.bg1.ob3.energi - 500;
}
if (misil.sensor.hitTest(_root.bg1.ob4.sensor) and (misil._currentframe == 1)) {
stop();
gerak = 2;
misil.play();
_root.bg1.ob4.energi = _root.bg1.ob4.energi - 500;
}
if (misil.sensor.hitTest(_root.bg2.ob1.sensor) and (misil._currentframe == 1)) {
stop();
gerak = 2;
misil.play();
_root.bg2.ob1.energi = _root.bg2.ob1.energi - 500;
}
if (misil.sensor.hitTest(_root.bg2.ob2.sensor) and (misil._currentframe == 1)) {
stop();
gerak = 2;
misil.play();
_root.bg2.ob2.energi = _root.bg2.ob2.energi - 500;
}
if (misil.sensor.hitTest(_root.bg2.ob3.sensor) and (misil._currentframe == 1)) {
stop();
gerak = 2;
misil.play();
_root.bg2.ob3.energi = _root.bg2.ob3.energi - 500;
}
if (misil.sensor.hitTest(_root.bg2.ob4.sensor) and (misil._currentframe == 1)) {
stop();
gerak = 2;
misil.play();
_root.bg2.ob4.energi = _root.bg2.ob4.energi - 500;
}
} else {
_x = 100;
_y = -100;
}
}
Instance of Symbol 289 MovieClip "misil2" in Frame 23
onClipEvent (load) {
_x = _root.heli._x;
_y = (_root.heli._y + 10);
gerak = 0;
}
onClipEvent (enterFrame) {
if (_name != "misil2") {
if (gerak == 0) {
gotoAndPlay (2);
gerak = 1;
}
if (misil.sensor.hitTest(_root.musuh1.musuh.sensor) and (misil._currentframe == 1)) {
gerak = 2;
misil.play();
_root.musuh1.energi = _root.musuh1.energi - 500;
}
if (misil.sensor.hitTest(_root.musuh2.musuh.sensor) and (misil._currentframe == 1)) {
gerak = 2;
misil.play();
_root.musuh2.energi = _root.musuh2.energi - 500;
}
if (misil.sensor.hitTest(_root.musuh3.musuh.sensor) and (misil._currentframe == 1)) {
gerak = 2;
misil.play();
_root.musuh3.energi = _root.musuh3.energi - 500;
}
if (misil.sensor.hitTest(_root.musuh4.musuh.sensor) and (misil._currentframe == 1)) {
gerak = 2;
misil.play();
_root.musuh4.energi = _root.musuh4.energi - 500;
}
if (misil.sensor.hitTest(_root.musuh5.musuh.sensor) and (misil._currentframe == 1)) {
gerak = 2;
misil.play();
_root.musuh5.energi = _root.musuh5.energi - 500;
}
if (misil.sensor.hitTest(_root.bg1.ob1.sensor) and (misil._currentframe == 1)) {
gerak = 2;
misil.play();
_root.bg1.ob1.energi = _root.bg1.ob1.energi - 500;
}
if (misil.sensor.hitTest(_root.bg1.ob2.sensor) and (misil._currentframe == 1)) {
gerak = 2;
misil.play();
_root.bg1.ob2.energi = _root.bg1.ob2.energi - 500;
}
if (misil.sensor.hitTest(_root.bg1.ob3.sensor) and (misil._currentframe == 1)) {
gerak = 2;
misil.play();
_root.bg1.ob3.energi = _root.bg1.ob3.energi - 500;
}
if (misil.sensor.hitTest(_root.bg1.ob4.sensor) and (misil._currentframe == 1)) {
gerak = 2;
misil.play();
_root.bg1.ob4.energi = _root.bg1.ob4.energi - 500;
}
if (misil.sensor.hitTest(_root.bg2.ob1.sensor) and (misil._currentframe == 1)) {
gerak = 2;
misil.play();
_root.bg2.ob1.energi = _root.bg2.ob1.energi - 500;
}
if (misil.sensor.hitTest(_root.bg2.ob2.sensor) and (misil._currentframe == 1)) {
gerak = 2;
misil.play();
_root.bg2.ob2.energi = _root.bg2.ob2.energi - 500;
}
if (misil.sensor.hitTest(_root.bg2.ob3.sensor) and (misil._currentframe == 1)) {
gerak = 2;
misil.play();
_root.bg2.ob3.energi = _root.bg2.ob3.energi - 500;
}
if (misil.sensor.hitTest(_root.bg2.ob4.sensor) and (misil._currentframe == 1)) {
gerak = 2;
misil.play();
_root.bg2.ob4.energi = _root.bg2.ob4.energi - 500;
}
if (misil2.sensor.hitTest(_root.musuh1.musuh.sensor) and (misil2._currentframe == 1)) {
gerak = 2;
misil2.play();
_root.musuh1.energi = _root.musuh1.energi - 500;
}
if (misil2.sensor.hitTest(_root.musuh2.musuh.sensor) and (misil2._currentframe == 1)) {
gerak = 2;
misil2.play();
_root.musuh2.energi = _root.musuh2.energi - 500;
}
if (misil2.sensor.hitTest(_root.musuh3.musuh.sensor) and (misil2._currentframe == 1)) {
gerak = 2;
misil2.play();
_root.musuh3.energi = _root.musuh3.energi - 500;
}
if (misil2.sensor.hitTest(_root.musuh4.musuh.sensor) and (misil2._currentframe == 1)) {
gerak = 2;
misil2.play();
_root.musuh4.energi = _root.musuh4.energi - 500;
}
if (misil2.sensor.hitTest(_root.musuh5.musuh.sensor) and (misil2._currentframe == 1)) {
gerak = 2;
misil2.play();
_root.musuh5.energi = _root.musuh5.energi - 500;
}
if (misil2.sensor.hitTest(_root.bg1.ob1.sensor) and (misil2._currentframe == 1)) {
gerak = 2;
misil2.play();
_root.bg1.ob1.energi = _root.bg1.ob1.energi - 500;
}
if (misil2.sensor.hitTest(_root.bg1.ob2.sensor) and (misil2._currentframe == 1)) {
gerak = 2;
misil2.play();
_root.bg1.ob2.energi = _root.bg1.ob2.energi - 500;
}
if (misil2.sensor.hitTest(_root.bg1.ob3.sensor) and (misil2._currentframe == 1)) {
gerak = 2;
misil2.play();
_root.bg1.ob3.energi = _root.bg1.ob3.energi - 500;
}
if (misil2.sensor.hitTest(_root.bg1.ob4.sensor) and (misil2._currentframe == 1)) {
gerak = 2;
misil2.play();
_root.bg1.ob4.energi = _root.bg1.ob4.energi - 500;
}
if (misil2.sensor.hitTest(_root.bg2.ob1.sensor) and (misil2._currentframe == 1)) {
gerak = 2;
misil2.play();
_root.bg2.ob1.energi = _root.bg2.ob1.energi - 500;
}
if (misil2.sensor.hitTest(_root.bg2.ob2.sensor) and (misil2._currentframe == 1)) {
gerak = 2;
misil2.play();
_root.bg2.ob2.energi = _root.bg2.ob2.energi - 500;
}
if (misil2.sensor.hitTest(_root.bg2.ob3.sensor) and (misil2._currentframe == 1)) {
gerak = 2;
misil2.play();
_root.bg2.ob3.energi = _root.bg2.ob3.energi - 500;
}
if (misil2.sensor.hitTest(_root.bg2.ob4.sensor) and (misil2._currentframe == 1)) {
gerak = 2;
misil2.play();
_root.bg2.ob4.energi = _root.bg2.ob4.energi - 500;
}
if (misil3.sensor.hitTest(_root.musuh1.musuh.sensor) and (misil3._currentframe == 1)) {
gerak = 2;
misil3.play();
_root.musuh1.energi = _root.musuh1.energi - 500;
}
if (misil3.sensor.hitTest(_root.musuh2.musuh.sensor) and (misil3._currentframe == 1)) {
gerak = 2;
misil3.play();
_root.musuh2.energi = _root.musuh2.energi - 500;
}
if (misil3.sensor.hitTest(_root.musuh3.musuh.sensor) and (misil3._currentframe == 1)) {
gerak = 2;
misil3.play();
_root.musuh3.energi = _root.musuh3.energi - 500;
}
if (misil3.sensor.hitTest(_root.musuh4.musuh.sensor) and (misil3._currentframe == 1)) {
gerak = 2;
misil3.play();
_root.musuh4.energi = _root.musuh4.energi - 500;
}
if (misil3.sensor.hitTest(_root.musuh5.musuh.sensor) and (misil3._currentframe == 1)) {
gerak = 2;
misil3.play();
_root.musuh5.energi = _root.musuh5.energi - 500;
}
if (misil3.sensor.hitTest(_root.bg1.ob1.sensor) and (misil3._currentframe == 1)) {
gerak = 2;
misil3.play();
_root.bg1.ob1.energi = _root.bg1.ob1.energi - 500;
}
if (misil3.sensor.hitTest(_root.bg1.ob2.sensor) and (misil3._currentframe == 1)) {
gerak = 2;
misil3.play();
_root.bg1.ob2.energi = _root.bg1.ob2.energi - 500;
}
if (misil3.sensor.hitTest(_root.bg1.ob3.sensor) and (misil3._currentframe == 1)) {
gerak = 2;
misil3.play();
_root.bg1.ob3.energi = _root.bg1.ob3.energi - 500;
}
if (misil3.sensor.hitTest(_root.bg1.ob4.sensor) and (misil3._currentframe == 1)) {
gerak = 2;
misil3.play();
_root.bg1.ob4.energi = _root.bg1.ob4.energi - 500;
}
if (misil3.sensor.hitTest(_root.bg2.ob1.sensor) and (misil3._currentframe == 1)) {
gerak = 2;
misil3.play();
_root.bg2.ob1.energi = _root.bg2.ob1.energi - 500;
}
if (misil3.sensor.hitTest(_root.bg2.ob2.sensor) and (misil3._currentframe == 1)) {
gerak = 2;
misil3.play();
_root.bg2.ob2.energi = _root.bg2.ob2.energi - 500;
}
if (misil3.sensor.hitTest(_root.bg2.ob3.sensor) and (misil3._currentframe == 1)) {
gerak = 2;
misil3.play();
_root.bg2.ob3.energi = _root.bg2.ob3.energi - 500;
}
if (misil3.sensor.hitTest(_root.bg2.ob4.sensor) and (misil3._currentframe == 1)) {
gerak = 2;
misil3.play();
_root.bg2.ob4.energi = _root.bg2.ob4.energi - 500;
}
} else {
_x = 100;
_y = -100;
}
}
Instance of Symbol 292 MovieClip "misil3" in Frame 23
onClipEvent (load) {
_x = _root.heli._x;
_y = (_root.heli._y + 10);
gerak = 0;
}
onClipEvent (enterFrame) {
if (_name != "misil3") {
if (gerak == 0) {
gotoAndPlay (2);
gerak = 1;
}
if (misil.sensor.hitTest(_root.musuh1.musuh.sensor) and (misil._currentframe == 1)) {
stop();
gerak = 2;
misil.play();
_root.musuh1.energi = _root.musuh1.energi - 500;
}
if (misil.sensor.hitTest(_root.musuh2.musuh.sensor) and (misil._currentframe == 1)) {
stop();
gerak = 2;
misil.play();
_root.musuh2.energi = _root.musuh2.energi - 500;
}
if (misil.sensor.hitTest(_root.musuh3.musuh.sensor) and (misil._currentframe == 1)) {
stop();
gerak = 2;
misil.play();
_root.musuh3.energi = _root.musuh3.energi - 500;
}
if (misil.sensor.hitTest(_root.musuh4.musuh.sensor) and (misil._currentframe == 1)) {
stop();
gerak = 2;
misil.play();
_root.musuh4.energi = _root.musuh4.energi - 500;
}
if (misil.sensor.hitTest(_root.musuh5.musuh.sensor) and (misil._currentframe == 1)) {
stop();
gerak = 2;
misil.play();
_root.musuh5.energi = _root.musuh5.energi - 500;
}
if (misil.sensor.hitTest(_root.bg1.ob1.sensor) and (misil._currentframe == 1)) {
stop();
gerak = 2;
misil.play();
_root.bg1.ob1.energi = _root.bg1.ob1.energi - 500;
}
if (misil.sensor.hitTest(_root.bg1.ob2.sensor) and (misil._currentframe == 1)) {
stop();
gerak = 2;
misil.play();
_root.bg1.ob2.energi = _root.bg1.ob2.energi - 500;
}
if (misil.sensor.hitTest(_root.bg1.ob3.sensor) and (misil._currentframe == 1)) {
stop();
gerak = 2;
misil.play();
_root.bg1.ob3.energi = _root.bg1.ob3.energi - 500;
}
if (misil.sensor.hitTest(_root.bg1.ob4.sensor) and (misil._currentframe == 1)) {
stop();
gerak = 2;
misil.play();
_root.bg1.ob4.energi = _root.bg1.ob4.energi - 500;
}
if (misil.sensor.hitTest(_root.bg2.ob1.sensor) and (misil._currentframe == 1)) {
stop();
gerak = 2;
misil.play();
_root.bg2.ob1.energi = _root.bg2.ob1.energi - 500;
}
if (misil.sensor.hitTest(_root.bg2.ob2.sensor) and (misil._currentframe == 1)) {
stop();
gerak = 2;
misil.play();
_root.bg2.ob2.energi = _root.bg2.ob2.energi - 500;
}
if (misil.sensor.hitTest(_root.bg2.ob3.sensor) and (misil._currentframe == 1)) {
stop();
gerak = 2;
misil.play();
_root.bg2.ob3.energi = _root.bg2.ob3.energi - 500;
}
if (misil.sensor.hitTest(_root.bg2.ob4.sensor) and (misil._currentframe == 1)) {
stop();
gerak = 2;
misil.play();
_root.bg2.ob4.energi = _root.bg2.ob4.energi - 500;
}
if (misil.sensor.hitTest(_root.tanah) and (misil._currentframe == 1)) {
stop();
gerak = 2;
misil.play();
}
} else {
_x = 100;
_y = -100;
}
}
Instance of Symbol 286 MovieClip "misilmusuh1" in Frame 23
onClipEvent (load) {
_x = _root.musuh6._x;
_y = (_root.musuh6._y + 10);
gerak = 0;
}
onClipEvent (enterFrame) {
if (_name != "misilmusuh1") {
if (gerak == 0) {
gotoAndPlay (1);
gerak = 1;
}
if (misil.sensor.hitTest(_root.heli.sensor) and (misil._currentframe == 1)) {
stop();
gerak = 2;
misil.play();
_root.heli.energi = _root.heli.energi - 500;
}
} else {
_x = 100;
_y = -100;
}
}
Instance of Symbol 293 MovieClip in Frame 23
onClipEvent (load) {
xa = _x;
ya = _y;
gerak = 0;
keluar = 0;
stop();
}
onClipEvent (enterFrame) {
if (((keluar == 0) and (_root.level > 7)) and (random(50) == 45)) {
keluar = 1;
gerak = 0;
gotoAndPlay (2);
}
if (misil.sensor.hitTest(_root.heli.sensor) and (misil._currentframe == 1)) {
stop();
gerak = 2;
_root.heli.energi = _root.heli.energi - 500;
keluar = 0;
_x = xa;
_y = ya;
}
if (_currentframe == 75) {
keluar = 0;
_x = xa;
_y = ya;
}
}
Instance of Symbol 315 MovieClip "statuslevel" in Frame 23
onClipEvent (enterFrame) {
if ((_root.score > 1500) and (_root.level == 1)) {
_root.level = 2;
play();
}
if ((_root.score > 4500) and (_root.level == 2)) {
_root.level = 3;
play();
}
if ((_root.score > 7500) and (_root.level == 3)) {
_root.level = 4;
play();
}
if ((_root.score > 10000) and (_root.level == 4)) {
_root.level = 5;
play();
}
if ((_root.score > 15000) and (_root.level == 5)) {
_root.level = 6;
play();
}
if ((_root.score > 20000) and (_root.level == 6)) {
_root.level = 7;
play();
}
if ((_root.score > 25000) and (_root.level == 7)) {
_root.level = 8;
play();
}
if ((_root.score > 35000) and (_root.level == 8)) {
_root.level = 9;
play();
}
if ((_root.score > 42000) and (_root.level == 9)) {
_root.level = 10;
play();
}
if ((_root.score > 50000) and (_root.level == 10)) {
_root.level = 11;
_root.gotoAndPlay("menang");
}
}
Instance of Symbol 319 MovieClip in Frame 23
onClipEvent (enterFrame) {
gotoAndStop(_root.misilmode + 1);
}
Frame 27
stop();
Symbol 11 MovieClip Frame 35
stop();
Symbol 25 Button
on (release) {
gotoAndPlay ("restart");
}
Symbol 30 Button
on (press) {
_root.gotoAndStop("instruksi");
}
Symbol 36 MovieClip Frame 12
stop();
Symbol 37 Button
on (release) {
getURL ("http://www.dailyfreegames.com", "_blank");
}
Symbol 39 Button
on (release) {
getURL ("http://www.dailyfreegames.com/free-games.html", "_blank");
}
Symbol 43 Button
on (release) {
gotoAndStop ("cover");
}
Symbol 57 MovieClip Frame 52
_parent.play();
Symbol 67 MovieClip Frame 1
stop();
Symbol 108 MovieClip Frame 1
stop();
Symbol 108 MovieClip Frame 2
stop();
Instance of Symbol 65 MovieClip "asap" in Symbol 108 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_root.heli.energi < 30) {
_visible = 1;
} else {
_visible = 0;
}
}
Symbol 108 MovieClip Frame 36
_root.nyawa--;
energi = 100;
if (_root.nyawa < 0) {
stop();
_root.gameover.play();
}
Instance of Symbol 133 MovieClip in Symbol 134 MovieClip Frame 1
onClipEvent (load) {
_xscale = _parent._parent.energi;
}
onClipEvent (enterFrame) {
if (_parent._parent.energi <= 0) {
_xscale = 0;
} else if (_parent._parent.energi >= 100) {
_xscale = 100;
} else {
_xscale = _parent._parent.energi;
}
}
Symbol 139 MovieClip Frame 1
stop();
Instance of Symbol 134 MovieClip in Symbol 139 MovieClip Frame 1
onClipEvent (enterFrame) {
_rotation = (-_parent._rotation);
}
Symbol 139 MovieClip Frame 39
stop();
_root.score = _root.score + 75;
Symbol 152 MovieClip Frame 1
stop();
Instance of Symbol 134 MovieClip in Symbol 152 MovieClip Frame 1
onClipEvent (enterFrame) {
_rotation = (-_parent._rotation);
}
Symbol 152 MovieClip Frame 39
stop();
_root.score = _root.score + 50;
Symbol 157 MovieClip Frame 1
stop();
Instance of Symbol 134 MovieClip in Symbol 157 MovieClip Frame 1
onClipEvent (enterFrame) {
_rotation = (-_parent._rotation);
}
Symbol 157 MovieClip Frame 39
stop();
_root.score = _root.score + 125;
Symbol 162 MovieClip Frame 1
stop();
Instance of Symbol 134 MovieClip in Symbol 162 MovieClip Frame 1
onClipEvent (enterFrame) {
_rotation = (-_parent._rotation);
}
Symbol 162 MovieClip Frame 39
stop();
_root.score = _root.score + 250;
Symbol 165 MovieClip Frame 1
stop();
Instance of Symbol 134 MovieClip in Symbol 165 MovieClip Frame 1
onClipEvent (enterFrame) {
_rotation = (-_parent._rotation);
}
Symbol 165 MovieClip Frame 42
stop();
_root.score = _root.score + 200;
Symbol 173 MovieClip Frame 1
stop();
Instance of Symbol 134 MovieClip in Symbol 173 MovieClip Frame 1
onClipEvent (enterFrame) {
_rotation = (-_parent._rotation);
}
Symbol 173 MovieClip Frame 45
stop();
_root.score = _root.score + 150;
Symbol 176 MovieClip Frame 1
stop();
Instance of Symbol 134 MovieClip in Symbol 176 MovieClip Frame 1
onClipEvent (enterFrame) {
_rotation = (-_parent._rotation);
}
Symbol 176 MovieClip Frame 42
stop();
_root.score = _root.score + 150;
Symbol 179 MovieClip Frame 1
stop();
Instance of Symbol 134 MovieClip in Symbol 179 MovieClip Frame 1
onClipEvent (enterFrame) {
_rotation = (-_parent._rotation);
}
Symbol 179 MovieClip Frame 45
stop();
_root.score = _root.score + 200;
Symbol 187 MovieClip Frame 1
stop();
Instance of Symbol 134 MovieClip in Symbol 187 MovieClip Frame 1
onClipEvent (enterFrame) {
_rotation = (-_parent._rotation);
}
Symbol 187 MovieClip Frame 45
stop();
_root.score = _root.score + 200;
Symbol 191 MovieClip Frame 1
stop();
Instance of Symbol 134 MovieClip in Symbol 191 MovieClip Frame 1
onClipEvent (enterFrame) {
_rotation = (-_parent._rotation);
}
Symbol 191 MovieClip Frame 82
stop();
_root.score = _root.score + 200;
Symbol 194 MovieClip Frame 1
stop();
Instance of Symbol 134 MovieClip in Symbol 194 MovieClip Frame 1
onClipEvent (enterFrame) {
_rotation = (-_parent._rotation);
}
Symbol 194 MovieClip Frame 42
stop();
_root.score = _root.score + 250;
Symbol 197 MovieClip Frame 1
stop();
Instance of Symbol 134 MovieClip in Symbol 197 MovieClip Frame 1
onClipEvent (enterFrame) {
_rotation = (-_parent._rotation);
}
Symbol 197 MovieClip Frame 39
stop();
_root.score = _root.score + 150;
Symbol 200 MovieClip Frame 1
stop();
Instance of Symbol 134 MovieClip in Symbol 200 MovieClip Frame 1
onClipEvent (enterFrame) {
_rotation = (-_parent._rotation);
}
Symbol 200 MovieClip Frame 42
stop();
_root.score = _root.score + 250;
Symbol 209 MovieClip Frame 1
stop();
Symbol 209 MovieClip Frame 131
gotoAndStop (1);
Symbol 212 MovieClip Frame 1
stop();
Instance of Symbol 134 MovieClip in Symbol 212 MovieClip Frame 1
onClipEvent (enterFrame) {
_rotation = (-_parent._rotation);
}
Symbol 212 MovieClip Frame 42
stop();
_root.score = _root.score + 150;
Symbol 218 MovieClip Frame 1
stop();
Instance of Symbol 134 MovieClip in Symbol 218 MovieClip Frame 1
onClipEvent (enterFrame) {
_rotation = (-_parent._rotation);
}
Symbol 218 MovieClip Frame 53
stop();
_root.score = _root.score + 250;
Symbol 223 MovieClip Frame 1
stop();
Instance of Symbol 134 MovieClip in Symbol 223 MovieClip Frame 1
onClipEvent (enterFrame) {
_rotation = (-_parent._rotation);
}
Symbol 223 MovieClip Frame 85
stop();
_root.score = _root.score + 200;
Symbol 224 MovieClip Frame 1
stop();
Symbol 224 MovieClip Frame 87
gotoAndStop (1);
Symbol 225 MovieClip Frame 1
stop();
Symbol 225 MovieClip Frame 112
gotoAndStop (1);
Symbol 226 MovieClip Frame 1
stop();
Symbol 226 MovieClip Frame 135
gotoAndStop (1);
Symbol 227 MovieClip Frame 1
stop();
Symbol 227 MovieClip Frame 131
gotoAndStop (1);
Symbol 228 MovieClip Frame 1
stop();
Instance of Symbol 139 MovieClip "ob1" in Symbol 228 MovieClip Frame 7
onClipEvent (load) {
energi = 100;
}
onClipEvent (enterFrame) {
if ((energi <= 0) and (_currentframe == 1)) {
play();
}
}
Instance of Symbol 141 MovieClip "musuh1" in Symbol 228 MovieClip Frame 7
onClipEvent (load) {
skala = _xscale;
kekuatansenjata = 3;
jumlahsenjata = 0;
loadingsenjata = 0;
waktuloading = 0;
menembak = 0;
}
onClipEvent (enterFrame) {
dx = -(_root.heli._x - _x);
dy = -((_root.heli._y - _y) + 20);
radians = Math.atan(dy / dx);
if (dx > 0) {
_xscale = skala;
_rotation = ((radians * 180) / 3.141593);
} else {
_xscale = (-skala);
_rotation = ((radians * 180) / 3.141593);
}
if (_root.aktif == 1) {
if (_parent.ob1._currentframe == 1) {
_visible = 1;
if ((loadingsenjata == 0) and (random(20 - _root.level) == 3)) {
fire.play();
loadingsenjata = 1;
_root.jumlahsenjatabg++;
menembak = 1;
duplicateMovieClip (_root.laserbg1, "laserbg" + jumlahsenjata, _root.kedalamansenjatabg + _root.jumlahsenjatabg);
if (_root.jumlahsenjatabg > 20) {
_root.jumlahsenjatabg = 0;
}
}
if (loadingsenjata == 1) {
waktuloading++;
if (waktuloading > 10) {
waktuloading = 0;
loadingsenjata = 0;
}
}
if ((energi <= 0) and (musuh._currentframe == 1)) {
play();
}
} else {
_visible = 0;
}
}
}
Instance of Symbol 139 MovieClip "ob1" in Symbol 228 MovieClip Frame 10
onClipEvent (load) {
energi = 100;
}
onClipEvent (enterFrame) {
if ((energi <= 0) and (_currentframe == 1)) {
play();
}
}
Instance of Symbol 141 MovieClip "musuh1" in Symbol 228 MovieClip Frame 10
onClipEvent (load) {
skala = _xscale;
kekuatansenjata = 3;
jumlahsenjata = 0;
loadingsenjata = 0;
waktuloading = 0;
menembak = 0;
}
onClipEvent (enterFrame) {
dx = -(_root.heli._x - _x);
dy = -((_root.heli._y - _y) + 20);
radians = Math.atan(dy / dx);
if (dx > 0) {
_xscale = skala;
_rotation = ((radians * 180) / 3.141593);
} else {
_xscale = (-skala);
_rotation = ((radians * 180) / 3.141593);
}
if (_root.aktif == 1) {
if (_parent.ob1._currentframe == 1) {
_visible = 1;
if ((loadingsenjata == 0) and (random(20 - _root.level) == 3)) {
fire.play();
loadingsenjata = 1;
_root.jumlahsenjatabg++;
menembak = 1;
duplicateMovieClip (_root.laserbg1, "laserbg" + jumlahsenjata, _root.kedalamansenjatabg + _root.jumlahsenjatabg);
if (_root.jumlahsenjatabg > 20) {
_root.jumlahsenjatabg = 0;
}
}
if (loadingsenjata == 1) {
waktuloading++;
if (waktuloading > 10) {
waktuloading = 0;
loadingsenjata = 0;
}
}
if ((energi <= 0) and (musuh._currentframe == 1)) {
play();
}
} else {
_visible = 0;
}
}
}
Instance of Symbol 152 MovieClip "ob1" in Symbol 228 MovieClip Frame 11
onClipEvent (load) {
energi = 100;
}
onClipEvent (enterFrame) {
if ((energi <= 0) and (_currentframe == 1)) {
play();
}
}
Instance of Symbol 141 MovieClip "musuh1" in Symbol 228 MovieClip Frame 11
onClipEvent (load) {
skala = _xscale;
kekuatansenjata = 3;
jumlahsenjata = 0;
loadingsenjata = 0;
waktuloading = 0;
menembak = 0;
}
onClipEvent (enterFrame) {
dx = -(_root.heli._x - _x);
dy = -(_root.heli._y - _y);
radians = Math.atan(dy / dx);
if (dx > 0) {
_xscale = skala;
_rotation = ((radians * 180) / 3.141593);
} else {
_xscale = (-skala);
_rotation = ((radians * 180) / 3.141593);
}
if (_root.aktif == 1) {
if (_parent.ob1._currentframe == 1) {
_visible = 1;
if ((loadingsenjata == 0) and (random(20 - _root.level) == 3)) {
fire.play();
loadingsenjata = 1;
_root.jumlahsenjatabg++;
menembak = 1;
duplicateMovieClip (_root.laserbg1, "laserbg" + jumlahsenjata, _root.kedalamansenjatabg + _root.jumlahsenjatabg);
if (_root.jumlahsenjatabg > 20) {
_root.jumlahsenjatabg = 0;
}
}
if (loadingsenjata == 1) {
waktuloading++;
if (waktuloading > 10) {
waktuloading = 0;
loadingsenjata = 0;
}
}
if ((energi <= 0) and (musuh._currentframe == 1)) {
play();
}
} else {
_visible = 0;
}
}
}
Instance of Symbol 139 MovieClip "ob2" in Symbol 228 MovieClip Frame 13
onClipEvent (load) {
energi = 100;
}
onClipEvent (enterFrame) {
if ((energi <= 0) and (_currentframe == 1)) {
play();
}
}
Instance of Symbol 141 MovieClip "musuh2" in Symbol 228 MovieClip Frame 13
onClipEvent (load) {
skala = _xscale;
kekuatansenjata = 3;
jumlahsenjata = 0;
loadingsenjata = 0;
waktuloading = 0;
menembak = 0;
}
onClipEvent (enterFrame) {
dx = -(_root.heli._x - _x);
dy = -((_root.heli._y - _y) + 20);
radians = Math.atan(dy / dx);
if (dx > 0) {
_xscale = skala;
_rotation = ((radians * 180) / 3.141593);
} else {
_xscale = (-skala);
_rotation = ((radians * 180) / 3.141593);
}
if (_root.aktif == 1) {
if (_parent.ob2._currentframe == 1) {
_visible = 1;
if ((loadingsenjata == 0) and (random(20 - _root.level) == 3)) {
fire.play();
loadingsenjata = 1;
_root.jumlahsenjatabg++;
menembak = 1;
duplicateMovieClip (_root.laserbg2, "laserbg" + jumlahsenjata, _root.kedalamansenjatabg + _root.jumlahsenjatabg);
if (_root.jumlahsenjatabg > 20) {
_root.jumlahsenjatabg = 0;
}
}
if (loadingsenjata == 1) {
waktuloading++;
if (waktuloading > 10) {
waktuloading = 0;
loadingsenjata = 0;
}
}
if ((energi <= 0) and (musuh._currentframe == 1)) {
play();
}
} else {
_visible = 0;
}
}
}
Instance of Symbol 157 MovieClip "ob1" in Symbol 228 MovieClip Frame 16
onClipEvent (load) {
energi = 200;
}
onClipEvent (enterFrame) {
if ((energi <= 0) and (_currentframe == 1)) {
play();
}
}
Instance of Symbol 141 MovieClip "musuh1" in Symbol 228 MovieClip Frame 16
onClipEvent (load) {
skala = _xscale;
kekuatansenjata = 5;
jumlahsenjata = 0;
loadingsenjata = 0;
waktuloading = 0;
menembak = 0;
}
onClipEvent (enterFrame) {
dx = -(_root.heli._x - _x);
dy = -((_root.heli._y - _y) + 20);
radians = Math.atan(dy / dx);
if (dx > 0) {
_xscale = skala;
_rotation = ((radians * 180) / 3.141593);
} else {
_xscale = (-skala);
_rotation = ((radians * 180) / 3.141593);
}
if (_root.aktif == 1) {
if (_parent.ob1._currentframe == 1) {
_visible = 1;
if ((loadingsenjata == 0) and (random(20 - _root.level) == 3)) {
fire.play();
loadingsenjata = 1;
_root.jumlahsenjatabg++;
menembak = 1;
duplicateMovieClip (_root.laserbg1, "laserbg" + jumlahsenjata, _root.kedalamansenjatabg + _root.jumlahsenjatabg);
if (_root.jumlahsenjatabg > 20) {
_root.jumlahsenjatabg = 0;
}
}
if (loadingsenjata == 1) {
waktuloading++;
if (waktuloading > 10) {
waktuloading = 0;
loadingsenjata = 0;
}
}
if ((energi <= 0) and (musuh._currentframe == 1)) {
play();
}
} else {
_visible = 0;
}
}
}
Instance of Symbol 157 MovieClip "ob1" in Symbol 228 MovieClip Frame 18
onClipEvent (load) {
energi = 100;
}
onClipEvent (enterFrame) {
if ((energi <= 0) and (_currentframe == 1)) {
play();
}
}
Instance of Symbol 159 MovieClip "musuh3" in Symbol 228 MovieClip Frame 21
onClipEvent (load) {
skala = _xscale;
kekuatansenjata = 10;
jumlahsenjata = 0;
loadingsenjata = 0;
waktuloading = 0;
menembak = 0;
}
onClipEvent (enterFrame) {
dx = -(_root.heli._x - _x);
dy = -(_root.heli._y - _y);
radians = Math.atan(dy / dx);
if (dx > 0) {
_xscale = skala;
_rotation = ((radians * 180) / 3.141593);
} else {
_xscale = (-skala);
_rotation = ((radians * 180) / 3.141593);
}
if (_rotation > 40) {
_rotation = 40;
}
if (_rotation < 0) {
_rotation = 0;
}
if (_root.aktif == 1) {
if (_parent.ob3._currentframe == 1) {
_visible = 1;
if (((loadingsenjata == 0) and (random(20 - _root.level) == 3)) and (_rotation < 80)) {
fire.play();
loadingsenjata = 1;
_root.jumlahsenjatabg++;
menembak = 1;
duplicateMovieClip (_root.laserbg3, "laserbg3" + jumlahsenjata, _root.kedalamansenjatabg + _root.jumlahsenjatabg);
if (_root.jumlahsenjatabg > 20) {
_root.jumlahsenjatabg = 0;
}
}
if (loadingsenjata == 1) {
waktuloading++;
if (waktuloading > 10) {
waktuloading = 0;
loadingsenjata = 0;
}
}
if ((energi <= 0) and (musuh._currentframe == 1)) {
play();
}
} else {
_visible = 0;
}
}
}
Instance of Symbol 162 MovieClip "ob3" in Symbol 228 MovieClip Frame 21
onClipEvent (load) {
energi = 200;
}
onClipEvent (enterFrame) {
if ((energi <= 0) and (_currentframe == 1)) {
play();
}
}
Instance of Symbol 152 MovieClip "ob1" in Symbol 228 MovieClip Frame 22
onClipEvent (load) {
energi = 100;
}
onClipEvent (enterFrame) {
if ((energi <= 0) and (_currentframe == 1)) {
play();
}
}
Instance of Symbol 141 MovieClip "musuh1" in Symbol 228 MovieClip Frame 22
onClipEvent (load) {
skala = _xscale;
kekuatansenjata = 3;
jumlahsenjata = 0;
loadingsenjata = 0;
waktuloading = 0;
menembak = 0;
}
onClipEvent (enterFrame) {
dx = -(_root.heli._x - _x);
dy = -(_root.heli._y - _y);
radians = Math.atan(dy / dx);
if (dx > 0) {
_xscale = skala;
_rotation = ((radians * 180) / 3.141593);
} else {
_xscale = (-skala);
_rotation = ((radians * 180) / 3.141593);
}
if (_root.aktif == 1) {
if (_parent.ob1._currentframe == 1) {
_visible = 1;
if ((loadingsenjata == 0) and (random(20 - _root.level) == 3)) {
fire.play();
loadingsenjata = 1;
_root.jumlahsenjatabg++;
menembak = 1;
duplicateMovieClip (_root.laserbg1, "laserbg" + jumlahsenjata, _root.kedalamansenjatabg + _root.jumlahsenjatabg);
if (_root.jumlahsenjatabg > 20) {
_root.jumlahsenjatabg = 0;
}
}
if (loadingsenjata == 1) {
waktuloading++;
if (waktuloading > 10) {
waktuloading = 0;
loadingsenjata = 0;
}
}
if ((energi <= 0) and (musuh._currentframe == 1)) {
play();
}
} else {
_visible = 0;
}
}
}
Instance of Symbol 165 MovieClip "ob3" in Symbol 228 MovieClip Frame 23
onClipEvent (load) {
energi = 200;
}
onClipEvent (enterFrame) {
if ((energi <= 0) and (_currentframe == 1)) {
play();
}
}
Instance of Symbol 165 MovieClip "ob3" in Symbol 228 MovieClip Frame 26
onClipEvent (load) {
energi = 150;
}
onClipEvent (enterFrame) {
if ((energi <= 0) and (_currentframe == 1)) {
play();
}
}
Instance of Symbol 165 MovieClip "ob3" in Symbol 228 MovieClip Frame 27
onClipEvent (load) {
energi = 200;
}
onClipEvent (enterFrame) {
if ((energi <= 0) and (_currentframe == 1)) {
play();
}
}
Instance of Symbol 162 MovieClip "ob3" in Symbol 228 MovieClip Frame 29
onClipEvent (load) {
energi = 200;
}
onClipEvent (enterFrame) {
if ((energi <= 0) and (_currentframe == 1)) {
play();
}
}
Instance of Symbol 139 MovieClip "ob1" in Symbol 228 MovieClip Frame 29
onClipEvent (load) {
energi = 100;
}
onClipEvent (enterFrame) {
if ((energi <= 0) and (_currentframe == 1)) {
play();
}
}
Instance of Symbol 141 MovieClip "musuh1" in Symbol 228 MovieClip Frame 29
onClipEvent (load) {
skala = _xscale;
kekuatansenjata = 3;
jumlahsenjata = 0;
loadingsenjata = 0;
waktuloading = 0;
menembak = 0;
}
onClipEvent (enterFrame) {
dx = -(_root.heli._x - _x);
dy = -((_root.heli._y - _y) + 20);
radians = Math.atan(dy / dx);
if (dx > 0) {
_xscale = skala;
_rotation = ((radians * 180) / 3.141593);
} else {
_xscale = (-skala);
_rotation = ((radians * 180) / 3.141593);
}
if (_root.aktif == 1) {
if (_parent.ob1._currentframe == 1) {
_visible = 1;
if ((loadingsenjata == 0) and (random(20 - _root.level) == 3)) {
fire.play();
loadingsenjata = 1;
_root.jumlahsenjatabg++;
menembak = 1;
duplicateMovieClip (_root.laserbg1, "laserbg" + jumlahsenjata, _root.kedalamansenjatabg + _root.jumlahsenjatabg);
if (_root.jumlahsenjatabg > 20) {
_root.jumlahsenjatabg = 0;
}
}
if (loadingsenjata == 1) {
waktuloading++;
if (waktuloading > 10) {
waktuloading = 0;
loadingsenjata = 0;
}
}
if ((energi <= 0) and (musuh._currentframe == 1)) {
play();
}
} else {
_visible = 0;
}
}
}
Instance of Symbol 173 MovieClip "ob4" in Symbol 228 MovieClip Frame 31
onClipEvent (load) {
energi = 150;
}
onClipEvent (enterFrame) {
if ((energi <= 0) and (_currentframe == 1)) {
play();
}
}
Instance of Symbol 159 MovieClip "musuh3" in Symbol 228 MovieClip Frame 33
onClipEvent (load) {
skala = _xscale;
kekuatansenjata = 10;
jumlahsenjata = 0;
loadingsenjata = 0;
waktuloading = 0;
menembak = 0;
}
onClipEvent (enterFrame) {
dx = -(_root.heli._x - _x);
dy = -(_root.heli._y - _y);
radians = Math.atan(dy / dx);
if (dx > 0) {
_xscale = skala;
_rotation = ((radians * 180) / 3.141593);
} else {
_xscale = (-skala);
_rotation = ((radians * 180) / 3.141593);
}
if (_rotation > 40) {
_rotation = 40;
}
if (_rotation < 0) {
_rotation = 0;
}
if (_root.aktif == 1) {
if (_parent.ob3._currentframe == 1) {
_visible = 1;
if (((loadingsenjata == 0) and (random(20 - _root.level) == 3)) and (_rotation < 80)) {
fire.play();
loadingsenjata = 1;
_root.jumlahsenjatabg++;
menembak = 1;
duplicateMovieClip (_root.laserbg3, "laserbg3" + jumlahsenjata, _root.kedalamansenjatabg + _root.jumlahsenjatabg);
if (_root.jumlahsenjatabg > 20) {
_root.jumlahsenjatabg = 0;
}
}
if (loadingsenjata == 1) {
waktuloading++;
if (waktuloading > 10) {
waktuloading = 0;
loadingsenjata = 0;
}
}
if ((energi <= 0) and (musuh._currentframe == 1)) {
play();
}
} else {
_visible = 0;
}
}
}
Instance of Symbol 162 MovieClip "ob3" in Symbol 228 MovieClip Frame 33
onClipEvent (load) {
energi = 200;
}
onClipEvent (enterFrame) {
if ((energi <= 0) and (_currentframe == 1)) {
play();
}
}
Instance of Symbol 139 MovieClip "ob1" in Symbol 228 MovieClip Frame 37
onClipEvent (load) {
energi = 100;
}
onClipEvent (enterFrame) {
if ((energi <= 0) and (_currentframe == 1)) {
play();
}
}
Instance of Symbol 141 MovieClip "musuh1" in Symbol 228 MovieClip Frame 37
onClipEvent (load) {
skala = _xscale;
kekuatansenjata = 3;
jumlahsenjata = 0;
loadingsenjata = 0;
waktuloading = 0;
menembak = 0;
}
onClipEvent (enterFrame) {
dx = -(_root.heli._x - _x);
dy = -((_root.heli._y - _y) + 20);
radians = Math.atan(dy / dx);
if (dx > 0) {
_xscale = skala;
_rotation = ((radians * 180) / 3.141593);
} else {
_xscale = (-skala);
_rotation = ((radians * 180) / 3.141593);
}
if (_root.aktif == 1) {
if (_parent.ob1._currentframe == 1) {
_visible = 1;
if ((loadingsenjata == 0) and (random(20 - _root.level) == 3)) {
fire.play();
loadingsenjata = 1;
_root.jumlahsenjatabg++;
menembak = 1;
duplicateMovieClip (_root.laserbg1, "laserbg" + jumlahsenjata, _root.kedalamansenjatabg + _root.jumlahsenjatabg);
if (_root.jumlahsenjatabg > 20) {
_root.jumlahsenjatabg = 0;
}
}
if (loadingsenjata == 1) {
waktuloading++;
if (waktuloading > 10) {
waktuloading = 0;
loadingsenjata = 0;
}
}
if ((energi <= 0) and (musuh._currentframe == 1)) {
play();
}
} else {
_visible = 0;
}
}
}
Instance of Symbol 165 MovieClip "ob3" in Symbol 228 MovieClip Frame 37
onClipEvent (load) {
energi = 200;
}
onClipEvent (enterFrame) {
if ((energi <= 0) and (_currentframe == 1)) {
play();
}
}
Instance of Symbol 157 MovieClip "ob1" in Symbol 228 MovieClip Frame 39
onClipEvent (load) {
energi = 100;
}
onClipEvent (enterFrame) {
if ((energi <= 0) and (_currentframe == 1)) {
play();
}
}
Instance of Symbol 141 MovieClip "musuh1" in Symbol 228 MovieClip Frame 39
onClipEvent (load) {
skala = _xscale;
kekuatansenjata = 5;
jumlahsenjata = 0;
loadingsenjata = 0;
waktuloading = 0;
menembak = 0;
}
onClipEvent (enterFrame) {
dx = -(_root.heli._x - _x);
dy = -((_root.heli._y - _y) + 20);
radians = Math.atan(dy / dx);
if (dx > 0) {
_xscale = skala;
_rotation = ((radians * 180) / 3.141593);
} else {
_xscale = (-skala);
_rotation = ((radians * 180) / 3.141593);
}
if (_root.aktif == 1) {
if (_parent.ob1._currentframe == 1) {
_visible = 1;
if ((loadingsenjata == 0) and (random(20 - _root.level) == 3)) {
fire.play();
loadingsenjata = 1;
_root.jumlahsenjatabg++;
menembak = 1;
duplicateMovieClip (_root.laserbg1, "laserbg" + jumlahsenjata, _root.kedalamansenjatabg + _root.jumlahsenjatabg);
if (_root.jumlahsenjatabg > 20) {
_root.jumlahsenjatabg = 0;
}
}
if (loadingsenjata == 1) {
waktuloading++;
if (waktuloading > 10) {
waktuloading = 0;
loadingsenjata = 0;
}
}
if ((energi <= 0) and (musuh._currentframe == 1)) {
play();
}
} else {
_visible = 0;
}
}
}
Instance of Symbol 139 MovieClip "ob1" in Symbol 228 MovieClip Frame 41
onClipEvent (load) {
energi = 100;
}
onClipEvent (enterFrame) {
if ((energi <= 0) and (_currentframe == 1)) {
play();
}
}
Instance of Symbol 141 MovieClip "musuh1" in Symbol 228 MovieClip Frame 41
onClipEvent (load) {
skala = _xscale;
kekuatansenjata = 3;
jumlahsenjata = 0;
loadingsenjata = 0;
waktuloading = 0;
menembak = 0;
}
onClipEvent (enterFrame) {
dx = -(_root.heli._x - _x);
dy = -((_root.heli._y - _y) + 20);
radians = Math.atan(dy / dx);
if (dx > 0) {
_xscale = skala;
_rotation = ((radians * 180) / 3.141593);
} else {
_xscale = (-skala);
_rotation = ((radians * 180) / 3.141593);
}
if (_root.aktif == 1) {
if (_parent.ob1._currentframe == 1) {
_visible = 1;
if ((loadingsenjata == 0) and (random(20 - _root.level) == 3)) {
fire.play();
loadingsenjata = 1;
_root.jumlahsenjatabg++;
menembak = 1;
duplicateMovieClip (_root.laserbg1, "laserbg" + jumlahsenjata, _root.kedalamansenjatabg + _root.jumlahsenjatabg);
if (_root.jumlahsenjatabg > 20) {
_root.jumlahsenjatabg = 0;
}
}
if (loadingsenjata == 1) {
waktuloading++;
if (waktuloading > 10) {
waktuloading = 0;
loadingsenjata = 0;
}
}
if ((energi <= 0) and (musuh._currentframe == 1)) {
play();
}
} else {
_visible = 0;
}
}
}
Instance of Symbol 176 MovieClip "ob4" in Symbol 228 MovieClip Frame 41
onClipEvent (load) {
energi = 150;
}
onClipEvent (enterFrame) {
if ((energi <= 0) and (_currentframe == 1)) {
play();
}
}
Instance of Symbol 159 MovieClip "musuh3" in Symbol 228 MovieClip Frame 43
onClipEvent (load) {
skala = _xscale;
kekuatansenjata = 150;
jumlahsenjata = 0;
loadingsenjata = 0;
waktuloading = 0;
menembak = 0;
}
onClipEvent (enterFrame) {
dx = -(_root.heli._x - _x);
dy = -(_root.heli._y - _y);
radians = Math.atan(dy / dx);
if (dx > 0) {
_xscale = skala;
_rotation = ((radians * 180) / 3.141593);
} else {
_xscale = (-skala);
_rotation = ((radians * 180) / 3.141593);
}
if (_rotation > 40) {
_rotation = 40;
}
if (_rotation < 0) {
_rotation = 0;
}
if (_root.aktif == 1) {
if (_parent.ob3._currentframe == 1) {
_visible = 1;
if (((loadingsenjata == 0) and (random(20 - _root.level) == 3)) and (_rotation < 80)) {
fire.play();
loadingsenjata = 1;
_root.jumlahsenjatabg++;
menembak = 1;
duplicateMovieClip (_root.laserbg3, "laserbg3" + jumlahsenjata, _root.kedalamansenjatabg + _root.jumlahsenjatabg);
if (_root.jumlahsenjatabg > 20) {
_root.jumlahsenjatabg = 0;
}
}
if (loadingsenjata == 1) {
waktuloading++;
if (waktuloading > 10) {
waktuloading = 0;
loadingsenjata = 0;
}
}
if ((energi <= 0) and (musuh._currentframe == 1)) {
play();
}
} else {
_visible = 0;
}
}
}
Instance of Symbol 179 MovieClip "ob3" in Symbol 228 MovieClip Frame 43
onClipEvent (load) {
energi = 300;
}
onClipEvent (enterFrame) {
if ((energi <= 0) and (_currentframe == 1)) {
play();
}
}
Instance of Symbol 152 MovieClip "ob1" in Symbol 228 MovieClip Frame 45
onClipEvent (load) {
energi = 100;
}
onClipEvent (enterFrame) {
if ((energi <= 0) and (_currentframe == 1)) {
play();
}
}
Instance of Symbol 141 MovieClip "musuh1" in Symbol 228 MovieClip Frame 45
onClipEvent (load) {
skala = _xscale;
kekuatansenjata = 3;
jumlahsenjata = 0;
loadingsenjata = 0;
waktuloading = 0;
menembak = 0;
}
onClipEvent (enterFrame) {
dx = -(_root.heli._x - _x);
dy = -(_root.heli._y - _y);
radians = Math.atan(dy / dx);
if (dx > 0) {
_xscale = skala;
_rotation = ((radians * 180) / 3.141593);
} else {
_xscale = (-skala);
_rotation = ((radians * 180) / 3.141593);
}
if (_root.aktif == 1) {
if (_parent.ob1._currentframe == 1) {
_visible = 1;
if ((loadingsenjata == 0) and (random(20 - _root.level) == 3)) {
fire.play();
loadingsenjata = 1;
_root.jumlahsenjatabg++;
menembak = 1;
duplicateMovieClip (_root.laserbg1, "laserbg" + jumlahsenjata, _root.kedalamansenjatabg + _root.jumlahsenjatabg);
if (_root.jumlahsenjatabg > 20) {
_root.jumlahsenjatabg = 0;
}
}
if (loadingsenjata == 1) {
waktuloading++;
if (waktuloading > 10) {
waktuloading = 0;
loadingsenjata = 0;
}
}
if ((energi <= 0) and (musuh._currentframe == 1)) {
play();
}
} else {
_visible = 0;
}
}
}
Instance of Symbol 173 MovieClip "ob4" in Symbol 228 MovieClip Frame 47
onClipEvent (load) {
energi = 150;
}
onClipEvent (enterFrame) {
if ((energi <= 0) and (_currentframe == 1)) {
play();
}
}
Instance of Symbol 139 MovieClip "ob1" in Symbol 228 MovieClip Frame 55
onClipEvent (load) {
energi = 100;
}
onClipEvent (enterFrame) {
if ((energi <= 0) and (_currentframe == 1)) {
play();
}
}
Instance of Symbol 141 MovieClip "musuh1" in Symbol 228 MovieClip Frame 55
onClipEvent (load) {
skala = _xscale;
kekuatansenjata = 3;
jumlahsenjata = 0;
loadingsenjata = 0;
waktuloading = 0;
menembak = 0;
}
onClipEvent (enterFrame) {
dx = -(_root.heli._x - _x);
dy = -((_root.heli._y - _y) + 20);
radians = Math.atan(dy / dx);
if (dx > 0) {
_xscale = skala;
_rotation = ((radians * 180) / 3.141593);
} else {
_xscale = (-skala);
_rotation = ((radians * 180) / 3.141593);
}
if (_root.aktif == 1) {
if (_parent.ob1._currentframe == 1) {
_visible = 1;
if ((loadingsenjata == 0) and (random(20 - _root.level) == 3)) {
fire.play();
loadingsenjata = 1;
_root.jumlahsenjatabg++;
menembak = 1;
duplicateMovieClip (_root.laserbg1, "laserbg" + jumlahsenjata, _root.kedalamansenjatabg + _root.jumlahsenjatabg);
if (_root.jumlahsenjatabg > 20) {
_root.jumlahsenjatabg = 0;
}
}
if (loadingsenjata == 1) {
waktuloading++;
if (waktuloading > 10) {
waktuloading = 0;
loadingsenjata = 0;
}
}
if ((energi <= 0) and (musuh._currentframe == 1)) {
play();
}
} else {
_visible = 0;
}
}
}
Instance of Symbol 159 MovieClip "musuh3" in Symbol 228 MovieClip Frame 57
onClipEvent (load) {
skala = _xscale;
kekuatansenjata = 150;
jumlahsenjata = 0;
loadingsenjata = 0;
waktuloading = 0;
menembak = 0;
}
onClipEvent (enterFrame) {
dx = -(_root.heli._x - _x);
dy = -(_root.heli._y - _y);
radians = Math.atan(dy / dx);
if (dx > 0) {
_xscale = skala;
_rotation = ((radians * 180) / 3.141593);
} else {
_xscale = (-skala);
_rotation = ((radians * 180) / 3.141593);
}
if (_rotation > 40) {
_rotation = 40;
}
if (_rotation < 0) {
_rotation = 0;
}
if (_root.aktif == 1) {
if (_parent.ob3._currentframe == 1) {
_visible = 1;
if (((loadingsenjata == 0) and (random(20 - _root.level) == 3)) and (_rotation < 80)) {
fire.play();
loadingsenjata = 1;
_root.jumlahsenjatabg++;
menembak = 1;
duplicateMovieClip (_root.laserbg3, "laserbg3" + jumlahsenjata, _root.kedalamansenjatabg + _root.jumlahsenjatabg);
if (_root.jumlahsenjatabg > 20) {
_root.jumlahsenjatabg = 0;
}
}
if (loadingsenjata == 1) {
waktuloading++;
if (waktuloading > 10) {
waktuloading = 0;
loadingsenjata = 0;
}
}
if ((energi <= 0) and (musuh._currentframe == 1)) {
play();
}
} else {
_visible = 0;
}
}
}
Instance of Symbol 179 MovieClip "ob3" in Symbol 228 MovieClip Frame 57
onClipEvent (load) {
energi = 300;
}
onClipEvent (enterFrame) {
if ((energi <= 0) and (_currentframe == 1)) {
play();
}
}
Instance of Symbol 159 MovieClip "musuh2" in Symbol 228 MovieClip Frame 57
onClipEvent (load) {
skala = _xscale;
kekuatansenjata = 10;
jumlahsenjata = 0;
loadingsenjata = 0;
waktuloading = 0;
menembak = 0;
}
onClipEvent (enterFrame) {
dx = -(_root.heli._x - _x);
dy = -(_root.heli._y - _y);
radians = Math.atan(dy / dx);
if (dx > 0) {
_xscale = skala;
_rotation = ((radians * 180) / 3.141593);
} else {
_xscale = (-skala);
_rotation = ((radians * 180) / 3.141593);
}
if (_rotation > 40) {
_rotation = 40;
}
if (_rotation < 0) {
_rotation = 0;
}
if (_root.aktif == 1) {
if (_parent.ob2._currentframe == 1) {
_visible = 1;
if (((loadingsenjata == 0) and (random(20 - _root.level) == 3)) and (_rotation < 80)) {
fire.play();
loadingsenjata = 1;
_root.jumlahsenjatabg++;
menembak = 1;
duplicateMovieClip (_root.laserbg2, "laserbg2" + jumlahsenjata, _root.kedalamansenjatabg + _root.jumlahsenjatabg);
if (_root.jumlahsenjatabg > 20) {
_root.jumlahsenjatabg = 0;
}
}
if (loadingsenjata == 1) {
waktuloading++;
if (waktuloading > 10) {
waktuloading = 0;
loadingsenjata = 0;
}
}
if ((energi <= 0) and (musuh._currentframe == 1)) {
play();
}
} else {
_visible = 0;
}
}
}
Instance of Symbol 165 MovieClip "ob2" in Symbol 228 MovieClip Frame 57
onClipEvent (load) {
energi = 200;
}
onClipEvent (enterFrame) {
if ((energi <= 0) and (_currentframe == 1)) {
play();
}
}
Instance of Symbol 157 MovieClip "ob1" in Symbol 228 MovieClip Frame 59
onClipEvent (load) {
energi = 200;
}
onClipEvent (enterFrame) {
if ((energi <= 0) and (_currentframe == 1)) {
play();
}
}
Instance of Symbol 141 MovieClip "musuh1" in Symbol 228 MovieClip Frame 59
onClipEvent (load) {
skala = _xscale;
kekuatansenjata = 5;
jumlahsenjata = 0;
loadingsenjata = 0;
waktuloading = 0;
menembak = 0;
}
onClipEvent (enterFrame) {
dx = -(_root.heli._x - _x);
dy = -((_root.heli._y - _y) + 20);
radians = Math.atan(dy / dx);
if (dx > 0) {
_xscale = skala;
_rotation = ((radians * 180) / 3.141593);
} else {
_xscale = (-skala);
_rotation = ((radians * 180) / 3.141593);
}
if (_root.aktif == 1) {
if (_parent.ob1._currentframe == 1) {
_visible = 1;
if ((loadingsenjata == 0) and (random(20 - _root.level) == 3)) {
fire.play();
loadingsenjata = 1;
_root.jumlahsenjatabg++;
menembak = 1;
duplicateMovieClip (_root.laserbg1, "laserbg" + jumlahsenjata, _root.kedalamansenjatabg + _root.jumlahsenjatabg);
if (_root.jumlahsenjatabg > 20) {
_root.jumlahsenjatabg = 0;
}
}
if (loadingsenjata == 1) {
waktuloading++;
if (waktuloading > 10) {
waktuloading = 0;
loadingsenjata = 0;
}
}
if ((energi <= 0) and (musuh._currentframe == 1)) {
play();
}
} else {
_visible = 0;
}
}
}
Instance of Symbol 159 MovieClip "musuh2" in Symbol 228 MovieClip Frame 59
onClipEvent (load) {
skala = _xscale;
kekuatansenjata = 10;
jumlahsenjata = 0;
loadingsenjata = 0;
waktuloading = 0;
menembak = 0;
}
onClipEvent (enterFrame) {
dx = -(_root.heli._x - _x);
dy = -(_root.heli._y - _y);
radians = Math.atan(dy / dx);
if (dx > 0) {
_xscale = skala;
_rotation = ((radians * 180) / 3.141593);
} else {
_xscale = (-skala);
_rotation = ((radians * 180) / 3.141593);
}
if (_rotation > 40) {
_rotation = 40;
}
if (_rotation < 0) {
_rotation = 0;
}
if (_root.aktif == 1) {
if (_parent.ob2._currentframe == 1) {
_visible = 1;
if (((loadingsenjata == 0) and (random(20 - _root.level) == 3)) and (_rotation < 80)) {
fire.play();
loadingsenjata = 1;
_root.jumlahsenjatabg++;
menembak = 1;
duplicateMovieClip (_root.laserbg2, "laserbg2" + jumlahsenjata, _root.kedalamansenjatabg + _root.jumlahsenjatabg);
if (_root.jumlahsenjatabg > 20) {
_root.jumlahsenjatabg = 0;
}
}
if (loadingsenjata == 1) {
waktuloading++;
if (waktuloading > 10) {
waktuloading = 0;
loadingsenjata = 0;
}
}
if ((energi <= 0) and (musuh._currentframe == 1)) {
play();
}
} else {
_visible = 0;
}
}
}
Instance of Symbol 165 MovieClip "ob2" in Symbol 228 MovieClip Frame 59
onClipEvent (load) {
energi = 200;
}
onClipEvent (enterFrame) {
if ((energi <= 0) and (_currentframe == 1)) {
play();
}
}
Instance of Symbol 159 MovieClip "musuh2" in Symbol 228 MovieClip Frame 66
onClipEvent (load) {
skala = _xscale;
kekuatansenjata = 10;
jumlahsenjata = 0;
loadingsenjata = 0;
waktuloading = 0;
menembak = 0;
}
onClipEvent (enterFrame) {
dx = -(_root.heli._x - _x);
dy = -(_root.heli._y - _y);
radians = Math.atan(dy / dx);
if (dx > 0) {
_xscale = skala;
_rotation = ((radians * 180) / 3.141593);
} else {
_xscale = (-skala);
_rotation = ((radians * 180) / 3.141593);
}
if (_rotation > 40) {
_rotation = 40;
}
if (_rotation < 0) {
_rotation = 0;
}
if (_root.aktif == 1) {
if (_parent.ob2._currentframe == 1) {
_visible = 1;
if (((loadingsenjata == 0) and (random(20 - _root.level) == 3)) and (_rotation < 80)) {
fire.play();
loadingsenjata = 1;
_root.jumlahsenjatabg++;
menembak = 1;
duplicateMovieClip (_root.laserbg2, "laserbg2" + jumlahsenjata, _root.kedalamansenjatabg + _root.jumlahsenjatabg);
if (_root.jumlahsenjatabg > 20) {
_root.jumlahsenjatabg = 0;
}
}
if (loadingsenjata == 1) {
waktuloading++;
if (waktuloading > 10) {
waktuloading = 0;
loadingsenjata = 0;
}
}
if ((energi <= 0) and (musuh._currentframe == 1)) {
play();
}
} else {
_visible = 0;
}
}
}
Instance of Symbol 159 MovieClip "musuh3" in Symbol 228 MovieClip Frame 66
onClipEvent (load) {
skala = _xscale;
kekuatansenjata = 150;
jumlahsenjata = 0;
loadingsenjata = 0;
waktuloading = 0;
menembak = 0;
}
onClipEvent (enterFrame) {
dx = -(_root.heli._x - _x);
dy = -(_root.heli._y - _y);
radians = Math.atan(dy / dx);
if (dx > 0) {
_xscale = skala;
_rotation = ((radians * 180) / 3.141593);
} else {
_xscale = (-skala);
_rotation = ((radians * 180) / 3.141593);
}
if (_rotation > 40) {
_rotation = 40;
}
if (_rotation < 0) {
_rotation = 0;
}
if (_root.aktif == 1) {
if (_parent.ob2._currentframe == 1) {
_visible = 1;
if (((loadingsenjata == 0) and (random(20 - _root.level) == 3)) and (_rotation < 80)) {
fire.play();
loadingsenjata = 1;
_root.jumlahsenjatabg++;
menembak = 1;
duplicateMovieClip (_root.laserbg3, "laserbg3" + jumlahsenjata, _root.kedalamansenjatabg + _root.jumlahsenjatabg);
if (_root.jumlahsenjatabg > 20) {
_root.jumlahsenjatabg = 0;
}
}
if (loadingsenjata == 1) {
waktuloading++;
if (waktuloading > 10) {
waktuloading = 0;
loadingsenjata = 0;
}
}
if ((energi <= 0) and (musuh._currentframe == 1)) {
play();
}
} else {
_visible = 0;
}
}
}
Instance of Symbol 187 MovieClip "ob2" in Symbol 228 MovieClip Frame 66
onClipEvent (load) {
energi = 200;
}
onClipEvent (enterFrame) {
if ((energi <= 0) and (_currentframe == 1)) {
play();
}
}
Instance of Symbol 159 MovieClip "musuh2" in Symbol 228 MovieClip Frame 70
onClipEvent (load) {
skala = _xscale;
kekuatansenjata = 10;
jumlahsenjata = 0;
loadingsenjata = 0;
waktuloading = 0;
menembak = 0;
}
onClipEvent (enterFrame) {
dx = -(_root.heli._x - _x);
dy = -(_root.heli._y - _y);
radians = Math.atan(dy / dx);
if (dx > 0) {
_xscale = skala;
_rotation = ((radians * 180) / 3.141593);
} else {
_xscale = (-skala);
_rotation = ((radians * 180) / 3.141593);
}
if (_rotation > 40) {
_rotation = 40;
}
if (_rotation < 0) {
_rotation = 0;
}
if (_root.aktif == 1) {
if (_parent.ob2._currentframe == 1) {
_visible = 1;
if (((loadingsenjata == 0) and (random(20 - _root.level) == 3)) and (_rotation < 80)) {
fire.play();
loadingsenjata = 1;
_root.jumlahsenjatabg++;
menembak = 1;
duplicateMovieClip (_root.laserbg2, "laserbg2" + jumlahsenjata, _root.kedalamansenjatabg + _root.jumlahsenjatabg);
if (_root.jumlahsenjatabg > 20) {
_root.jumlahsenjatabg = 0;
}
}
if (loadingsenjata == 1) {
waktuloading++;
if (waktuloading > 10) {
waktuloading = 0;
loadingsenjata = 0;
}
}
if ((energi <= 0) and (musuh._currentframe == 1)) {
play();
}
} else {
_visible = 0;
}
}
}
Instance of Symbol 191 MovieClip "ob2" in Symbol 228 MovieClip Frame 70
onClipEvent (load) {
energi = 500;
}
onClipEvent (enterFrame) {
if ((energi <= 0) and (_currentframe == 1)) {
play();
}
}
Instance of Symbol 187 MovieClip "ob2" in Symbol 228 MovieClip Frame 72
onClipEvent (load) {
energi = 200;
}
onClipEvent (enterFrame) {
if ((energi <= 0) and (_currentframe == 1)) {
play();
}
}
Instance of Symbol 152 MovieClip "ob1" in Symbol 228 MovieClip Frame 81
onClipEvent (load) {
energi = 100;
}
onClipEvent (enterFrame) {
if ((energi <= 0) and (_currentframe == 1)) {
play();
}
}
Instance of Symbol 141 MovieClip "musuh1" in Symbol 228 MovieClip Frame 81
onClipEvent (load) {
skala = _xscale;
kekuatansenjata = 3;
jumlahsenjata = 0;
loadingsenjata = 0;
waktuloading = 0;
menembak = 0;
}
onClipEvent (enterFrame) {
dx = -(_root.heli._x - _x);
dy = -(_root.heli._y - _y);
radians = Math.atan(dy / dx);
if (dx > 0) {
_xscale = skala;
_rotation = ((radians * 180) / 3.141593);
} else {
_xscale = (-skala);
_rotation = ((radians * 180) / 3.141593);
}
if (_root.aktif == 1) {
if (_parent.ob1._currentframe == 1) {
_visible = 1;
if ((loadingsenjata == 0) and (random(20 - _root.level) == 3)) {
fire.play();
loadingsenjata = 1;
_root.jumlahsenjatabg++;
menembak = 1;
duplicateMovieClip (_root.laserbg1, "laserbg" + jumlahsenjata, _root.kedalamansenjatabg + _root.jumlahsenjatabg);
if (_root.jumlahsenjatabg > 20) {
_root.jumlahsenjatabg = 0;
}
}
if (loadingsenjata == 1) {
waktuloading++;
if (waktuloading > 10) {
waktuloading = 0;
loadingsenjata = 0;
}
}
if ((energi <= 0) and (musuh._currentframe == 1)) {
play();
}
} else {
_visible = 0;
}
}
}
Instance of Symbol 159 MovieClip "musuh3" in Symbol 228 MovieClip Frame 83
onClipEvent (load) {
skala = _xscale;
kekuatansenjata = 10;
jumlahsenjata = 0;
loadingsenjata = 0;
waktuloading = 0;
menembak = 0;
}
onClipEvent (enterFrame) {
dx = -(_root.heli._x - _x);
dy = -(_root.heli._y - _y);
radians = Math.atan(dy / dx);
if (dx > 0) {
_xscale = skala;
_rotation = ((radians * 180) / 3.141593);
} else {
_xscale = (-skala);
_rotation = ((radians * 180) / 3.141593);
}
if (_rotation > 40) {
_rotation = 40;
}
if (_rotation < 0) {
_rotation = 0;
}
if (_root.aktif == 1) {
if (_parent.ob3._currentframe == 1) {
_visible = 1;
if (((loadingsenjata == 0) and (random(20 - _root.level) == 3)) and (_rotation < 80)) {
fire.play();
loadingsenjata = 1;
_root.jumlahsenjatabg++;
menembak = 1;
duplicateMovieClip (_root.laserbg3, "laserbg3" + jumlahsenjata, _root.kedalamansenjatabg + _root.jumlahsenjatabg);
if (_root.jumlahsenjatabg > 20) {
_root.jumlahsenjatabg = 0;
}
}
if (loadingsenjata == 1) {
waktuloading++;
if (waktuloading > 10) {
waktuloading = 0;
loadingsenjata = 0;
}
}
if ((energi <= 0) and (musuh._currentframe == 1)) {
play();
}
} else {
_visible = 0;
}
}
}
Instance of Symbol 194 MovieClip "ob3" in Symbol 228 MovieClip Frame 83
onClipEvent (load) {
energi = 100;
}
onClipEvent (enterFrame) {
if ((energi <= 0) and (_currentframe == 1)) {
play();
}
}
Instance of Symbol 139 MovieClip "ob1" in Symbol 228 MovieClip Frame 83
onClipEvent (load) {
energi = 100;
}
onClipEvent (enterFrame) {
if ((energi <= 0) and (_currentframe == 1)) {
play();
}
}
Instance of Symbol 141 MovieClip "musuh1" in Symbol 228 MovieClip Frame 83
onClipEvent (load) {
skala = _xscale;
kekuatansenjata = 3;
jumlahsenjata = 0;
loadingsenjata = 0;
waktuloading = 0;
menembak = 0;
}
onClipEvent (enterFrame) {
dx = -(_root.heli._x - _x);
dy = -((_root.heli._y - _y) + 20);
radians = Math.atan(dy / dx);
if (dx > 0) {
_xscale = skala;
_rotation = ((radians * 180) / 3.141593);
} else {
_xscale = (-skala);
_rotation = ((radians * 180) / 3.141593);
}
if (_root.aktif == 1) {
if (_parent.ob1._currentframe == 1) {
_visible = 1;
if ((loadingsenjata == 0) and (random(20 - _root.level) == 3)) {
fire.play();
loadingsenjata = 1;
_root.jumlahsenjatabg++;
menembak = 1;
duplicateMovieClip (_root.laserbg1, "laserbg" + jumlahsenjata, _root.kedalamansenjatabg + _root.jumlahsenjatabg);
if (_root.jumlahsenjatabg > 20) {
_root.jumlahsenjatabg = 0;
}
}
if (loadingsenjata == 1) {
waktuloading++;
if (waktuloading > 10) {
waktuloading = 0;
loadingsenjata = 0;
}
}
if ((energi <= 0) and (musuh._currentframe == 1)) {
play();
}
} else {
_visible = 0;
}
}
}
Instance of Symbol 162 MovieClip "ob3" in Symbol 228 MovieClip Frame 85
onClipEvent (load) {
energi = 200;
}
onClipEvent (enterFrame) {
if ((energi <= 0) and (_currentframe == 1)) {
play();
}
}
Instance of Symbol 197 MovieClip "ob4" in Symbol 228 MovieClip Frame 85
onClipEvent (load) {
energi = 150;
}
onClipEvent (enterFrame) {
if ((energi <= 0) and (_currentframe == 1)) {
play();
}
}
Instance of Symbol 157 MovieClip "ob1" in Symbol 228 MovieClip Frame 91
onClipEvent (load) {
energi = 200;
}
onClipEvent (enterFrame) {
if ((energi <= 0) and (_currentframe == 1)) {
play();
}
}
Instance of Symbol 141 MovieClip "musuh1" in Symbol 228 MovieClip Frame 91
onClipEvent (load) {
skala = _xscale;
kekuatansenjata = 5;
jumlahsenjata = 0;
loadingsenjata = 0;
waktuloading = 0;
menembak = 0;
}
onClipEvent (enterFrame) {
dx = -(_root.heli._x - _x);
dy = -((_root.heli._y - _y) + 20);
radians = Math.atan(dy / dx);
if (dx > 0) {
_xscale = skala;
_rotation = ((radians * 180) / 3.141593);
} else {
_xscale = (-skala);
_rotation = ((radians * 180) / 3.141593);
}
if (_root.aktif == 1) {
if (_parent.ob1._currentframe == 1) {
_visible = 1;
if ((loadingsenjata == 0) and (random(20 - _root.level) == 3)) {
fire.play();
loadingsenjata = 1;
_root.jumlahsenjatabg++;
menembak = 1;
duplicateMovieClip (_root.laserbg1, "laserbg" + jumlahsenjata, _root.kedalamansenjatabg + _root.jumlahsenjatabg);
if (_root.jumlahsenjatabg > 20) {
_root.jumlahsenjatabg = 0;
}
}
if (loadingsenjata == 1) {
waktuloading++;
if (waktuloading > 10) {
waktuloading = 0;
loadingsenjata = 0;
}
}
if ((energi <= 0) and (musuh._currentframe == 1)) {
play();
}
} else {
_visible = 0;
}
}
}
Instance of Symbol 159 MovieClip "musuh3" in Symbol 228 MovieClip Frame 91
onClipEvent (load) {
skala = _xscale;
kekuatansenjata = 10;
jumlahsenjata = 0;
loadingsenjata = 0;
waktuloading = 0;
menembak = 0;
}
onClipEvent (enterFrame) {
dx = -(_root.heli._x - _x);
dy = -(_root.heli._y - _y);
radians = Math.atan(dy / dx);
if (dx > 0) {
_xscale = skala;
_rotation = ((radians * 180) / 3.141593);
} else {
_xscale = (-skala);
_rotation = ((radians * 180) / 3.141593);
}
if (_rotation > 40) {
_rotation = 40;
}
if (_rotation < 0) {
_rotation = 0;
}
if (_root.aktif == 1) {
if (_parent.ob3._currentframe == 1) {
_visible = 1;
if (((loadingsenjata == 0) and (random(20 - _root.level) == 3)) and (_rotation < 80)) {
fire.play();
loadingsenjata = 1;
_root.jumlahsenjatabg++;
menembak = 1;
duplicateMovieClip (_root.laserbg3, "laserbg3" + jumlahsenjata, _root.kedalamansenjatabg + _root.jumlahsenjatabg);
if (_root.jumlahsenjatabg > 20) {
_root.jumlahsenjatabg = 0;
}
}
if (loadingsenjata == 1) {
waktuloading++;
if (waktuloading > 10) {
waktuloading = 0;
loadingsenjata = 0;
}
}
if ((energi <= 0) and (musuh._currentframe == 1)) {
play();
}
} else {
_visible = 0;
}
}
}
Instance of Symbol 194 MovieClip "ob3" in Symbol 228 MovieClip Frame 91
onClipEvent (load) {
energi = 100;
}
onClipEvent (enterFrame) {
if ((energi <= 0) and (_currentframe == 1)) {
play();
}
}
Instance of Symbol 200 MovieClip "ob2" in Symbol 228 MovieClip Frame 95
onClipEvent (load) {
energi = 200;
}
onClipEvent (enterFrame) {
if ((energi <= 0) and (_currentframe == 1)) {
play();
}
}
Instance of Symbol 209 MovieClip in Symbol 228 MovieClip Frame 95
onClipEvent (enterFrame) {
if (((_parent.ob2._currentframe == 1) and (random(30 - _root.level) == 13)) and (_currentframe == 1)) {
play();
}
if (misil1.sensor.hitTest(_root.heli) and (_root.heli._currentframe == 2)) {
_root.heli.energi = _root.heli.energi - 1000;
misil1._visible = 0;
}
if (misil2.sensor.hitTest(_root.heli) and (_root.heli._currentframe == 2)) {
_root.heli.energi = _root.heli.energi - 1000;
misil2._visible = 0;
}
if (misil3.sensor.hitTest(_root.heli) and (_root.heli._currentframe == 2)) {
_root.heli.energi = _root.heli.energi - 1000;
misil3._visible = 0;
}
}
Instance of Symbol 200 MovieClip "ob2" in Symbol 228 MovieClip Frame 97
onClipEvent (load) {
energi = 200;
}
onClipEvent (enterFrame) {
if ((energi <= 0) and (_currentframe == 1)) {
play();
}
}
Instance of Symbol 209 MovieClip in Symbol 228 MovieClip Frame 97
onClipEvent (enterFrame) {
if (((_parent.ob2._currentframe == 1) and (random(30 - _root.level) == 13)) and (_currentframe == 1)) {
play();
}
if (misil1.sensor.hitTest(_root.heli) and (_root.heli._currentframe == 2)) {
_root.heli.energi = _root.heli.energi - 1000;
misil1._visible = 0;
}
if (misil2.sensor.hitTest(_root.heli) and (_root.heli._currentframe == 2)) {
_root.heli.energi = _root.heli.energi - 1000;
misil2._visible = 0;
}
if (misil3.sensor.hitTest(_root.heli) and (_root.heli._currentframe == 2)) {
_root.heli.energi = _root.heli.energi - 1000;
misil3._visible = 0;
}
}
Instance of Symbol 200 MovieClip "ob3" in Symbol 228 MovieClip Frame 97
onClipEvent (load) {
energi = 200;
}
onClipEvent (enterFrame) {
if ((energi <= 0) and (_currentframe == 1)) {
play();
}
}
Instance of Symbol 209 MovieClip in Symbol 228 MovieClip Frame 97
onClipEvent (enterFrame) {
if (((_parent.ob3._currentframe == 1) and (random(30 - _root.level) == 13)) and (_currentframe == 1)) {
play();
}
if (misil1.sensor.hitTest(_root.heli) and (_root.heli._currentframe == 2)) {
_root.heli.energi = _root.heli.energi - 1000;
misil1._visible = 0;
}
if (misil2.sensor.hitTest(_root.heli) and (_root.heli._currentframe == 2)) {
_root.heli.energi = _root.heli.energi - 1000;
misil2._visible = 0;
}
if (misil3.sensor.hitTest(_root.heli) and (_root.heli._currentframe == 2)) {
_root.heli.energi = _root.heli.energi - 1000;
misil3._visible = 0;
}
}
Instance of Symbol 200 MovieClip "ob1" in Symbol 228 MovieClip Frame 97
onClipEvent (load) {
energi = 200;
}
onClipEvent (enterFrame) {
if ((energi <= 0) and (_currentframe == 1)) {
play();
}
}
Instance of Symbol 209 MovieClip in Symbol 228 MovieClip Frame 97
onClipEvent (enterFrame) {
if (((_parent.ob1._currentframe == 1) and (random(30 - _root.level) == 13)) and (_currentframe == 1)) {
play();
}
if (misil1.sensor.hitTest(_root.heli) and (_root.heli._currentframe == 2)) {
_root.heli.energi = _root.heli.energi - 1000;
misil1._visible = 0;
}
if (misil2.sensor.hitTest(_root.heli) and (_root.heli._currentframe == 2)) {
_root.heli.energi = _root.heli.energi - 1000;
misil2._visible = 0;
}
if (misil3.sensor.hitTest(_root.heli) and (_root.heli._currentframe == 2)) {
_root.heli.energi = _root.heli.energi - 1000;
misil3._visible = 0;
}
}
Instance of Symbol 139 MovieClip "ob2" in Symbol 228 MovieClip Frame 101
onClipEvent (load) {
energi = 100;
}
onClipEvent (enterFrame) {
if ((energi <= 0) and (_currentframe == 1)) {
play();
}
}
Instance of Symbol 141 MovieClip "musuh2" in Symbol 228 MovieClip Frame 101
onClipEvent (load) {
skala = _xscale;
kekuatansenjata = 3;
jumlahsenjata = 0;
loadingsenjata = 0;
waktuloading = 0;
menembak = 0;
}
onClipEvent (enterFrame) {
dx = -(_root.heli._x - _x);
dy = -((_root.heli._y - _y) + 20);
radians = Math.atan(dy / dx);
if (dx > 0) {
_xscale = skala;
_rotation = ((radians * 180) / 3.141593);
} else {
_xscale = (-skala);
_rotation = ((radians * 180) / 3.141593);
}
if (_root.aktif == 1) {
if (_parent.ob2._currentframe == 1) {
_visible = 1;
if ((loadingsenjata == 0) and (random(20 - _root.level) == 3)) {
fire.play();
loadingsenjata = 1;
_root.jumlahsenjatabg++;
menembak = 1;
duplicateMovieClip (_root.laserbg2, "laserbg" + jumlahsenjata, _root.kedalamansenjatabg + _root.jumlahsenjatabg);
if (_root.jumlahsenjatabg > 20) {
_root.jumlahsenjatabg = 0;
}
}
if (loadingsenjata == 1) {
waktuloading++;
if (waktuloading > 10) {
waktuloading = 0;
loadingsenjata = 0;
}
}
if ((energi <= 0) and (musuh._currentframe == 1)) {
play();
}
} else {
_visible = 0;
}
}
}
Instance of Symbol 212 MovieClip "ob4" in Symbol 228 MovieClip Frame 103
onClipEvent (load) {
energi = 350;
}
onClipEvent (enterFrame) {
if ((energi <= 0) and (_currentframe == 1)) {
play();
}
}
Instance of Symbol 212 MovieClip "ob4" in Symbol 228 MovieClip Frame 105
onClipEvent (load) {
energi = 350;
}
onClipEvent (enterFrame) {
if ((energi <= 0) and (_currentframe == 1)) {
play();
}
}
Instance of Symbol 200 MovieClip "ob2" in Symbol 228 MovieClip Frame 107
onClipEvent (load) {
energi = 200;
}
onClipEvent (enterFrame) {
if ((energi <= 0) and (_currentframe == 1)) {
play();
}
}
Instance of Symbol 209 MovieClip in Symbol 228 MovieClip Frame 107
onClipEvent (enterFrame) {
if (((_parent.ob2._currentframe == 1) and (random(30 - _root.level) == 13)) and (_currentframe == 1)) {
play();
}
if (misil1.sensor.hitTest(_root.heli) and (_root.heli._currentframe == 2)) {
_root.heli.energi = _root.heli.energi - 1000;
misil1._visible = 0;
}
if (misil2.sensor.hitTest(_root.heli) and (_root.heli._currentframe == 2)) {
_root.heli.energi = _root.heli.energi - 1000;
misil2._visible = 0;
}
if (misil3.sensor.hitTest(_root.heli) and (_root.heli._currentframe == 2)) {
_root.heli.energi = _root.heli.energi - 1000;
misil3._visible = 0;
}
}
Instance of Symbol 157 MovieClip "ob1" in Symbol 228 MovieClip Frame 113
onClipEvent (load) {
energi = 200;
}
onClipEvent (enterFrame) {
if ((energi <= 0) and (_currentframe == 1)) {
play();
}
}
Instance of Symbol 141 MovieClip "musuh1" in Symbol 228 MovieClip Frame 113
onClipEvent (load) {
skala = _xscale;
kekuatansenjata = 5;
jumlahsenjata = 0;
loadingsenjata = 0;
waktuloading = 0;
menembak = 0;
}
onClipEvent (enterFrame) {
dx = -(_root.heli._x - _x);
dy = -((_root.heli._y - _y) + 20);
radians = Math.atan(dy / dx);
if (dx > 0) {
_xscale = skala;
_rotation = ((radians * 180) / 3.141593);
} else {
_xscale = (-skala);
_rotation = ((radians * 180) / 3.141593);
}
if (_root.aktif == 1) {
if (_parent.ob1._currentframe == 1) {
_visible = 1;
if ((loadingsenjata == 0) and (random(20 - _root.level) == 3)) {
fire.play();
loadingsenjata = 1;
_root.jumlahsenjatabg++;
menembak = 1;
duplicateMovieClip (_root.laserbg1, "laserbg" + jumlahsenjata, _root.kedalamansenjatabg + _root.jumlahsenjatabg);
if (_root.jumlahsenjatabg > 20) {
_root.jumlahsenjatabg = 0;
}
}
if (loadingsenjata == 1) {
waktuloading++;
if (waktuloading > 10) {
waktuloading = 0;
loadingsenjata = 0;
}
}
if ((energi <= 0) and (musuh._currentframe == 1)) {
play();
}
} else {
_visible = 0;
}
}
}
Instance of Symbol 212 MovieClip "ob4" in Symbol 228 MovieClip Frame 118
onClipEvent (load) {
energi = 350;
}
onClipEvent (enterFrame) {
if ((energi <= 0) and (_currentframe == 1)) {
play();
}
}
Instance of Symbol 218 MovieClip "ob2" in Symbol 228 MovieClip Frame 121
onClipEvent (load) {
energi = 900;
}
onClipEvent (enterFrame) {
if ((energi <= 0) and (_currentframe == 1)) {
play();
}
}
Instance of Symbol 200 MovieClip "ob2" in Symbol 228 MovieClip Frame 123
onClipEvent (load) {
energi = 200;
}
onClipEvent (enterFrame) {
if ((energi <= 0) and (_currentframe == 1)) {
play();
}
}
Instance of Symbol 209 MovieClip in Symbol 228 MovieClip Frame 123
onClipEvent (enterFrame) {
if (((_parent.ob2._currentframe == 1) and (random(30 - _root.level) == 13)) and (_currentframe == 1)) {
play();
}
if (misil1.sensor.hitTest(_root.heli) and (_root.heli._currentframe == 2)) {
_root.heli.energi = _root.heli.energi - 1000;
misil1._visible = 0;
}
if (misil2.sensor.hitTest(_root.heli) and (_root.heli._currentframe == 2)) {
_root.heli.energi = _root.heli.energi - 1000;
misil2._visible = 0;
}
if (misil3.sensor.hitTest(_root.heli) and (_root.heli._currentframe == 2)) {
_root.heli.energi = _root.heli.energi - 1000;
misil3._visible = 0;
}
}
Instance of Symbol 200 MovieClip "ob3" in Symbol 228 MovieClip Frame 123
onClipEvent (load) {
energi = 200;
}
onClipEvent (enterFrame) {
if ((energi <= 0) and (_currentframe == 1)) {
play();
}
}
Instance of Symbol 209 MovieClip in Symbol 228 MovieClip Frame 123
onClipEvent (enterFrame) {
if (((_parent.ob3._currentframe == 1) and (random(30 - _root.level) == 13)) and (_currentframe == 1)) {
play();
}
if (misil1.sensor.hitTest(_root.heli) and (_root.heli._currentframe == 2)) {
_root.heli.energi = _root.heli.energi - 1000;
misil1._visible = 0;
}
if (misil2.sensor.hitTest(_root.heli) and (_root.heli._currentframe == 2)) {
_root.heli.energi = _root.heli.energi - 1000;
misil2._visible = 0;
}
if (misil3.sensor.hitTest(_root.heli) and (_root.heli._currentframe == 2)) {
_root.heli.energi = _root.heli.energi - 1000;
misil3._visible = 0;
}
}
Instance of Symbol 200 MovieClip "ob1" in Symbol 228 MovieClip Frame 123
onClipEvent (load) {
energi = 200;
}
onClipEvent (enterFrame) {
if ((energi <= 0) and (_currentframe == 1)) {
play();
}
}
Instance of Symbol 209 MovieClip in Symbol 228 MovieClip Frame 123
onClipEvent (enterFrame) {
if (((_parent.ob1._currentframe == 1) and (random(30 - _root.level) == 13)) and (_currentframe == 1)) {
play();
}
if (misil1.sensor.hitTest(_root.heli) and (_root.heli._currentframe == 2)) {
_root.heli.energi = _root.heli.energi - 1000;
misil1._visible = 0;
}
if (misil2.sensor.hitTest(_root.heli) and (_root.heli._currentframe == 2)) {
_root.heli.energi = _root.heli.energi - 1000;
misil2._visible = 0;
}
if (misil3.sensor.hitTest(_root.heli) and (_root.heli._currentframe == 2)) {
_root.heli.energi = _root.heli.energi - 1000;
misil3._visible = 0;
}
}
Instance of Symbol 212 MovieClip "ob4" in Symbol 228 MovieClip Frame 130
onClipEvent (load) {
energi = 350;
}
onClipEvent (enterFrame) {
if ((energi <= 0) and (_currentframe == 1)) {
play();
}
}
Instance of Symbol 200 MovieClip "ob2" in Symbol 228 MovieClip Frame 130
onClipEvent (load) {
energi = 200;
}
onClipEvent (enterFrame) {
if ((energi <= 0) and (_currentframe == 1)) {
play();
}
}
Instance of Symbol 209 MovieClip in Symbol 228 MovieClip Frame 130
onClipEvent (enterFrame) {
if (((_parent.ob2._currentframe == 1) and (random(30 - _root.level) == 13)) and (_currentframe == 1)) {
play();
}
if (misil1.sensor.hitTest(_root.heli) and (_root.heli._currentframe == 2)) {
_root.heli.energi = _root.heli.energi - 1000;
misil1._visible = 0;
}
if (misil2.sensor.hitTest(_root.heli) and (_root.heli._currentframe == 2)) {
_root.heli.energi = _root.heli.energi - 1000;
misil2._visible = 0;
}
if (misil3.sensor.hitTest(_root.heli) and (_root.heli._currentframe == 2)) {
_root.heli.energi = _root.heli.energi - 1000;
misil3._visible = 0;
}
}
Instance of Symbol 157 MovieClip "ob1" in Symbol 228 MovieClip Frame 132
onClipEvent (load) {
energi = 200;
}
onClipEvent (enterFrame) {
if ((energi <= 0) and (_currentframe == 1)) {
play();
}
}
Instance of Symbol 141 MovieClip "musuh1" in Symbol 228 MovieClip Frame 132
onClipEvent (load) {
skala = _xscale;
kekuatansenjata = 5;
jumlahsenjata = 0;
loadingsenjata = 0;
waktuloading = 0;
menembak = 0;
}
onClipEvent (enterFrame) {
dx = -(_root.heli._x - _x);
dy = -((_root.heli._y - _y) + 20);
radians = Math.atan(dy / dx);
if (dx > 0) {
_xscale = skala;
_rotation = ((radians * 180) / 3.141593);
} else {
_xscale = (-skala);
_rotation = ((radians * 180) / 3.141593);
}
if (_root.aktif == 1) {
if (_parent.ob1._currentframe == 1) {
_visible = 1;
if ((loadingsenjata == 0) and (random(20 - _root.level) == 3)) {
fire.play();
loadingsenjata = 1;
_root.jumlahsenjatabg++;
menembak = 1;
duplicateMovieClip (_root.laserbg1, "laserbg" + jumlahsenjata, _root.kedalamansenjatabg + _root.jumlahsenjatabg);
if (_root.jumlahsenjatabg > 20) {
_root.jumlahsenjatabg = 0;
}
}
if (loadingsenjata == 1) {
waktuloading++;
if (waktuloading > 10) {
waktuloading = 0;
loadingsenjata = 0;
}
}
if ((energi <= 0) and (musuh._currentframe == 1)) {
play();
}
} else {
_visible = 0;
}
}
}
Instance of Symbol 159 MovieClip "musuh3" in Symbol 228 MovieClip Frame 132
onClipEvent (load) {
skala = _xscale;
kekuatansenjata = 10;
jumlahsenjata = 0;
loadingsenjata = 0;
waktuloading = 0;
menembak = 0;
}
onClipEvent (enterFrame) {
dx = -(_root.heli._x - _x);
dy = -(_root.heli._y - _y);
radians = Math.atan(dy / dx);
if (dx > 0) {
_xscale = skala;
_rotation = ((radians * 180) / 3.141593);
} else {
_xscale = (-skala);
_rotation = ((radians * 180) / 3.141593);
}
if (_rotation > 40) {
_rotation = 40;
}
if (_rotation < 0) {
_rotation = 0;
}
if (_root.aktif == 1) {
if (_parent.ob3._currentframe == 1) {
_visible = 1;
if (((loadingsenjata == 0) and (random(20 - _root.level) == 3)) and (_rotation < 80)) {
fire.play();
loadingsenjata = 1;
_root.jumlahsenjatabg++;
menembak = 1;
duplicateMovieClip (_root.laserbg3, "laserbg3" + jumlahsenjata, _root.kedalamansenjatabg + _root.jumlahsenjatabg);
if (_root.jumlahsenjatabg > 20) {
_root.jumlahsenjatabg = 0;
}
}
if (loadingsenjata == 1) {
waktuloading++;
if (waktuloading > 10) {
waktuloading = 0;
loadingsenjata = 0;
}
}
if ((energi <= 0) and (musuh._currentframe == 1)) {
play();
}
} else {
_visible = 0;
}
}
}
Instance of Symbol 194 MovieClip "ob3" in Symbol 228 MovieClip Frame 132
onClipEvent (load) {
energi = 100;
}
onClipEvent (enterFrame) {
if ((energi <= 0) and (_currentframe == 1)) {
play();
}
}
Instance of Symbol 159 MovieClip "musuh3" in Symbol 228 MovieClip Frame 134
onClipEvent (load) {
skala = _xscale;
kekuatansenjata = 150;
jumlahsenjata = 0;
loadingsenjata = 0;
waktuloading = 0;
menembak = 0;
}
onClipEvent (enterFrame) {
dx = -(_root.heli._x - _x);
dy = -(_root.heli._y - _y);
radians = Math.atan(dy / dx);
if (dx > 0) {
_xscale = skala;
_rotation = ((radians * 180) / 3.141593);
} else {
_xscale = (-skala);
_rotation = ((radians * 180) / 3.141593);
}
if (_rotation > 40) {
_rotation = 40;
}
if (_rotation < 0) {
_rotation = 0;
}
if (_root.aktif == 1) {
if (_parent.ob3._currentframe == 1) {
_visible = 1;
if (((loadingsenjata == 0) and (random(20 - _root.level) == 3)) and (_rotation < 80)) {
fire.play();
loadingsenjata = 1;
_root.jumlahsenjatabg++;
menembak = 1;
duplicateMovieClip (_root.laserbg3, "laserbg3" + jumlahsenjata, _root.kedalamansenjatabg + _root.jumlahsenjatabg);
if (_root.jumlahsenjatabg > 20) {
_root.jumlahsenjatabg = 0;
}
}
if (loadingsenjata == 1) {
waktuloading++;
if (waktuloading > 10) {
waktuloading = 0;
loadingsenjata = 0;
}
}
if ((energi <= 0) and (musuh._currentframe == 1)) {
play();
}
} else {
_visible = 0;
}
}
}
Instance of Symbol 179 MovieClip "ob3" in Symbol 228 MovieClip Frame 134
onClipEvent (load) {
energi = 300;
}
onClipEvent (enterFrame) {
if ((energi <= 0) and (_currentframe == 1)) {
play();
}
}
Instance of Symbol 200 MovieClip "ob2" in Symbol 228 MovieClip Frame 134
onClipEvent (load) {
energi = 200;
}
onClipEvent (enterFrame) {
if ((energi <= 0) and (_currentframe == 1)) {
play();
}
}
Instance of Symbol 209 MovieClip in Symbol 228 MovieClip Frame 134
onClipEvent (enterFrame) {
if (((_parent.ob2._currentframe == 1) and (random(30 - _root.level) == 13)) and (_currentframe == 1)) {
play();
}
if (misil1.sensor.hitTest(_root.heli) and (_root.heli._currentframe == 2)) {
_root.heli.energi = _root.heli.energi - 1000;
misil1._visible = 0;
}
if (misil2.sensor.hitTest(_root.heli) and (_root.heli._currentframe == 2)) {
_root.heli.energi = _root.heli.energi - 1000;
misil2._visible = 0;
}
if (misil3.sensor.hitTest(_root.heli) and (_root.heli._currentframe == 2)) {
_root.heli.energi = _root.heli.energi - 1000;
misil3._visible = 0;
}
}
Instance of Symbol 139 MovieClip "ob2" in Symbol 228 MovieClip Frame 135
onClipEvent (load) {
energi = 100;
}
onClipEvent (enterFrame) {
if ((energi <= 0) and (_currentframe == 1)) {
play();
}
}
Instance of Symbol 212 MovieClip "ob4" in Symbol 228 MovieClip Frame 137
onClipEvent (load) {
energi = 350;
}
onClipEvent (enterFrame) {
if ((energi <= 0) and (_currentframe == 1)) {
play();
}
}
Instance of Symbol 159 MovieClip "musuh3" in Symbol 228 MovieClip Frame 137
onClipEvent (load) {
skala = _xscale;
kekuatansenjata = 10;
jumlahsenjata = 0;
loadingsenjata = 0;
waktuloading = 0;
menembak = 0;
}
onClipEvent (enterFrame) {
dx = -(_root.heli._x - _x);
dy = -(_root.heli._y - _y);
radians = Math.atan(dy / dx);
if (dx > 0) {
_xscale = skala;
_rotation = ((radians * 180) / 3.141593);
} else {
_xscale = (-skala);
_rotation = ((radians * 180) / 3.141593);
}
if (_rotation > 40) {
_rotation = 40;
}
if (_rotation < 0) {
_rotation = 0;
}
if (_root.aktif == 1) {
if (_parent.ob3._currentframe == 1) {
_visible = 1;
if (((loadingsenjata == 0) and (random(20 - _root.level) == 3)) and (_rotation < 80)) {
fire.play();
loadingsenjata = 1;
_root.jumlahsenjatabg++;
menembak = 1;
duplicateMovieClip (_root.laserbg3, "laserbg3" + jumlahsenjata, _root.kedalamansenjatabg + _root.jumlahsenjatabg);
if (_root.jumlahsenjatabg > 20) {
_root.jumlahsenjatabg = 0;
}
}
if (loadingsenjata == 1) {
waktuloading++;
if (waktuloading > 10) {
waktuloading = 0;
loadingsenjata = 0;
}
}
if ((energi <= 0) and (musuh._currentframe == 1)) {
play();
}
} else {
_visible = 0;
}
}
}
Instance of Symbol 162 MovieClip "ob3" in Symbol 228 MovieClip Frame 137
onClipEvent (load) {
energi = 200;
}
onClipEvent (enterFrame) {
if ((energi <= 0) and (_currentframe == 1)) {
play();
}
}
Instance of Symbol 212 MovieClip "ob1" in Symbol 228 MovieClip Frame 137
onClipEvent (load) {
energi = 350;
}
onClipEvent (enterFrame) {
if ((energi <= 0) and (_currentframe == 1)) {
play();
}
}
Instance of Symbol 139 MovieClip "ob2" in Symbol 228 MovieClip Frame 138
onClipEvent (load) {
energi = 100;
}
onClipEvent (enterFrame) {
if ((energi <= 0) and (_currentframe == 1)) {
play();
}
}
Instance of Symbol 141 MovieClip "musuh2" in Symbol 228 MovieClip Frame 138
onClipEvent (load) {
skala = _xscale;
kekuatansenjata = 3;
jumlahsenjata = 0;
loadingsenjata = 0;
waktuloading = 0;
menembak = 0;
}
onClipEvent (enterFrame) {
dx = -(_root.heli._x - _x);
dy = -((_root.heli._y - _y) + 20);
radians = Math.atan(dy / dx);
if (dx > 0) {
_xscale = skala;
_rotation = ((radians * 180) / 3.141593);
} else {
_xscale = (-skala);
_rotation = ((radians * 180) / 3.141593);
}
if (_root.aktif == 1) {
if (_parent.ob2._currentframe == 1) {
_visible = 1;
if ((loadingsenjata == 0) and (random(20 - _root.level) == 3)) {
fire.play();
loadingsenjata = 1;
_root.jumlahsenjatabg++;
menembak = 1;
duplicateMovieClip (_root.laserbg2, "laserbg" + jumlahsenjata, _root.kedalamansenjatabg + _root.jumlahsenjatabg);
if (_root.jumlahsenjatabg > 20) {
_root.jumlahsenjatabg = 0;
}
}
if (loadingsenjata == 1) {
waktuloading++;
if (waktuloading > 10) {
waktuloading = 0;
loadingsenjata = 0;
}
}
if ((energi <= 0) and (musuh._currentframe == 1)) {
play();
}
} else {
_visible = 0;
}
}
}
Instance of Symbol 159 MovieClip "musuh3" in Symbol 228 MovieClip Frame 138
onClipEvent (load) {
skala = _xscale;
kekuatansenjata = 10;
jumlahsenjata = 0;
loadingsenjata = 0;
waktuloading = 0;
menembak = 0;
}
onClipEvent (enterFrame) {
dx = -(_root.heli._x - _x);
dy = -(_root.heli._y - _y);
radians = Math.atan(dy / dx);
if (dx > 0) {
_xscale = skala;
_rotation = ((radians * 180) / 3.141593);
} else {
_xscale = (-skala);
_rotation = ((radians * 180) / 3.141593);
}
if (_rotation > 40) {
_rotation = 40;
}
if (_rotation < 0) {
_rotation = 0;
}
if (_root.aktif == 1) {
if (_parent.ob3._currentframe == 1) {
_visible = 1;
if (((loadingsenjata == 0) and (random(20 - _root.level) == 3)) and (_rotation < 80)) {
fire.play();
loadingsenjata = 1;
_root.jumlahsenjatabg++;
menembak = 1;
duplicateMovieClip (_root.laserbg3, "laserbg3" + jumlahsenjata, _root.kedalamansenjatabg + _root.jumlahsenjatabg);
if (_root.jumlahsenjatabg > 20) {
_root.jumlahsenjatabg = 0;
}
}
if (loadingsenjata == 1) {
waktuloading++;
if (waktuloading > 10) {
waktuloading = 0;
loadingsenjata = 0;
}
}
if ((energi <= 0) and (musuh._currentframe == 1)) {
play();
}
} else {
_visible = 0;
}
}
}
Instance of Symbol 162 MovieClip "ob3" in Symbol 228 MovieClip Frame 138
onClipEvent (load) {
energi = 200;
}
onClipEvent (enterFrame) {
if ((energi <= 0) and (_currentframe == 1)) {
play();
}
}
Instance of Symbol 200 MovieClip "ob2" in Symbol 228 MovieClip Frame 140
onClipEvent (load) {
energi = 200;
}
onClipEvent (enterFrame) {
if ((energi <= 0) and (_currentframe == 1)) {
play();
}
}
Instance of Symbol 209 MovieClip in Symbol 228 MovieClip Frame 140
onClipEvent (enterFrame) {
if (((_parent.ob2._currentframe == 1) and (random(30 - _root.level) == 13)) and (_currentframe == 1)) {
play();
}
if (misil1.sensor.hitTest(_root.heli) and (_root.heli._currentframe == 2)) {
_root.heli.energi = _root.heli.energi - 1000;
misil1._visible = 0;
}
if (misil2.sensor.hitTest(_root.heli) and (_root.heli._currentframe == 2)) {
_root.heli.energi = _root.heli.energi - 1000;
misil2._visible = 0;
}
if (misil3.sensor.hitTest(_root.heli) and (_root.heli._currentframe == 2)) {
_root.heli.energi = _root.heli.energi - 1000;
misil3._visible = 0;
}
}
Instance of Symbol 152 MovieClip "ob1" in Symbol 228 MovieClip Frame 140
onClipEvent (load) {
energi = 100;
}
onClipEvent (enterFrame) {
if ((energi <= 0) and (_currentframe == 1)) {
play();
}
}
Instance of Symbol 141 MovieClip "musuh1" in Symbol 228 MovieClip Frame 140
onClipEvent (load) {
skala = _xscale;
kekuatansenjata = 3;
jumlahsenjata = 0;
loadingsenjata = 0;
waktuloading = 0;
menembak = 0;
}
onClipEvent (enterFrame) {
dx = -(_root.heli._x - _x);
dy = -(_root.heli._y - _y);
radians = Math.atan(dy / dx);
if (dx > 0) {
_xscale = skala;
_rotation = ((radians * 180) / 3.141593);
} else {
_xscale = (-skala);
_rotation = ((radians * 180) / 3.141593);
}
if (_root.aktif == 1) {
if (_parent.ob1._currentframe == 1) {
_visible = 1;
if ((loadingsenjata == 0) and (random(20 - _root.level) == 3)) {
fire.play();
loadingsenjata = 1;
_root.jumlahsenjatabg++;
menembak = 1;
duplicateMovieClip (_root.laserbg1, "laserbg" + jumlahsenjata, _root.kedalamansenjatabg + _root.jumlahsenjatabg);
if (_root.jumlahsenjatabg > 20) {
_root.jumlahsenjatabg = 0;
}
}
if (loadingsenjata == 1) {
waktuloading++;
if (waktuloading > 10) {
waktuloading = 0;
loadingsenjata = 0;
}
}
if ((energi <= 0) and (musuh._currentframe == 1)) {
play();
}
} else {
_visible = 0;
}
}
}
Instance of Symbol 159 MovieClip "musuh2" in Symbol 228 MovieClip Frame 146
onClipEvent (load) {
skala = _xscale;
kekuatansenjata = 10;
jumlahsenjata = 0;
loadingsenjata = 0;
waktuloading = 0;
menembak = 0;
}
onClipEvent (enterFrame) {
dx = -(_root.heli._x - _x);
dy = -(_root.heli._y - _y);
radians = Math.atan(dy / dx);
if (dx > 0) {
_xscale = skala;
_rotation = ((radians * 180) / 3.141593);
} else {
_xscale = (-skala);
_rotation = ((radians * 180) / 3.141593);
}
if (_rotation > 40) {
_rotation = 40;
}
if (_rotation < 0) {
_rotation = 0;
}
if (_root.aktif == 1) {
if (_parent.ob2._currentframe == 1) {
_visible = 1;
if (((loadingsenjata == 0) and (random(20 - _root.level) == 3)) and (_rotation < 80)) {
fire.play();
loadingsenjata = 1;
_root.jumlahsenjatabg++;
menembak = 1;
duplicateMovieClip (_root.laserbg2, "laserbg2" + jumlahsenjata, _root.kedalamansenjatabg + _root.jumlahsenjatabg);
if (_root.jumlahsenjatabg > 20) {
_root.jumlahsenjatabg = 0;
}
}
if (loadingsenjata == 1) {
waktuloading++;
if (waktuloading > 10) {
waktuloading = 0;
loadingsenjata = 0;
}
}
if ((energi <= 0) and (musuh._currentframe == 1)) {
play();
}
} else {
_visible = 0;
}
}
}
Instance of Symbol 159 MovieClip "musuh3" in Symbol 228 MovieClip Frame 146
onClipEvent (load) {
skala = _xscale;
kekuatansenjata = 150;
jumlahsenjata = 0;
loadingsenjata = 0;
waktuloading = 0;
menembak = 0;
}
onClipEvent (enterFrame) {
dx = -(_root.heli._x - _x);
dy = -(_root.heli._y - _y);
radians = Math.atan(dy / dx);
if (dx > 0) {
_xscale = skala;
_rotation = ((radians * 180) / 3.141593);
} else {
_xscale = (-skala);
_rotation = ((radians * 180) / 3.141593);
}
if (_rotation > 40) {
_rotation = 40;
}
if (_rotation < 0) {
_rotation = 0;
}
if (_root.aktif == 1) {
if (_parent.ob2._currentframe == 1) {
_visible = 1;
if (((loadingsenjata == 0) and (random(20 - _root.level) == 3)) and (_rotation < 80)) {
fire.play();
loadingsenjata = 1;
_root.jumlahsenjatabg++;
menembak = 1;
duplicateMovieClip (_root.laserbg3, "laserbg3" + jumlahsenjata, _root.kedalamansenjatabg + _root.jumlahsenjatabg);
if (_root.jumlahsenjatabg > 20) {
_root.jumlahsenjatabg = 0;
}
}
if (loadingsenjata == 1) {
waktuloading++;
if (waktuloading > 10) {
waktuloading = 0;
loadingsenjata = 0;
}
}
if ((energi <= 0) and (musuh._currentframe == 1)) {
play();
}
} else {
_visible = 0;
}
}
}
Instance of Symbol 187 MovieClip "ob2" in Symbol 228 MovieClip Frame 146
onClipEvent (load) {
energi = 200;
}
onClipEvent (enterFrame) {
if ((energi <= 0) and (_currentframe == 1)) {
play();
}
}
Instance of Symbol 191 MovieClip "ob2" in Symbol 228 MovieClip Frame 148
onClipEvent (load) {
energi = 500;
}
onClipEvent (enterFrame) {
if ((energi <= 0) and (_currentframe == 1)) {
play();
}
}
Instance of Symbol 209 MovieClip in Symbol 228 MovieClip Frame 150
onClipEvent (enterFrame) {
if (((_parent.ob2._currentframe == 1) and (random(30 - _root.level) == 13)) and (_currentframe == 1)) {
play();
}
if (misil1.sensor.hitTest(_root.heli) and (_root.heli._currentframe == 2)) {
_root.heli.energi = _root.heli.energi - 1000;
misil1._visible = 0;
}
if (misil2.sensor.hitTest(_root.heli) and (_root.heli._currentframe == 2)) {
_root.heli.energi = _root.heli.energi - 1000;
misil2._visible = 0;
}
if (misil3.sensor.hitTest(_root.heli) and (_root.heli._currentframe == 2)) {
_root.heli.energi = _root.heli.energi - 1000;
misil3._visible = 0;
}
}
Instance of Symbol 223 MovieClip "ob2" in Symbol 228 MovieClip Frame 150
onClipEvent (load) {
energi = 1500;
}
onClipEvent (enterFrame) {
if ((energi <= 0) and (_currentframe == 1)) {
play();
}
}
Instance of Symbol 224 MovieClip in Symbol 228 MovieClip Frame 151
onClipEvent (enterFrame) {
if ((random(50 - _root.level) == 13) and (_currentframe == 1)) {
play();
}
if (misil1.sensor.hitTest(_root.heli) and (_root.heli._currentframe == 2)) {
_root.heli.energi = _root.heli.energi - 1000;
misil1._visible = 0;
}
if (misil2.sensor.hitTest(_root.heli) and (_root.heli._currentframe == 2)) {
_root.heli.energi = _root.heli.energi - 1000;
misil2._visible = 0;
}
if (misil3.sensor.hitTest(_root.heli) and (_root.heli._currentframe == 2)) {
_root.heli.energi = _root.heli.energi - 1000;
misil3._visible = 0;
}
}
Instance of Symbol 225 MovieClip in Symbol 228 MovieClip Frame 154
onClipEvent (enterFrame) {
if ((random(50 - _root.level) == 13) and (_currentframe == 1)) {
play();
}
if (misil1.sensor.hitTest(_root.heli) and (_root.heli._currentframe == 2)) {
_root.heli.energi = _root.heli.energi - 1000;
misil1._visible = 0;
}
if (misil2.sensor.hitTest(_root.heli) and (_root.heli._currentframe == 2)) {
_root.heli.energi = _root.heli.energi - 1000;
misil2._visible = 0;
}
if (misil3.sensor.hitTest(_root.heli) and (_root.heli._currentframe == 2)) {
_root.heli.energi = _root.heli.energi - 1000;
misil3._visible = 0;
}
}
Instance of Symbol 226 MovieClip in Symbol 228 MovieClip Frame 157
onClipEvent (enterFrame) {
if ((random(50 - _root.level) == 13) and (_currentframe == 1)) {
play();
}
if (misil1.sensor.hitTest(_root.heli) and (_root.heli._currentframe == 2)) {
_root.heli.energi = _root.heli.energi - 1000;
misil1._visible = 0;
}
if (misil2.sensor.hitTest(_root.heli) and (_root.heli._currentframe == 2)) {
_root.heli.energi = _root.heli.energi - 1000;
misil2._visible = 0;
}
if (misil3.sensor.hitTest(_root.heli) and (_root.heli._currentframe == 2)) {
_root.heli.energi = _root.heli.energi - 1000;
misil3._visible = 0;
}
}
Instance of Symbol 227 MovieClip in Symbol 228 MovieClip Frame 160
onClipEvent (enterFrame) {
if ((random(50 - _root.level) == 13) and (_currentframe == 1)) {
play();
}
if (misil1.sensor.hitTest(_root.heli) and (_root.heli._currentframe == 2)) {
_root.heli.energi = _root.heli.energi - 1000;
misil1._visible = 0;
}
if (misil2.sensor.hitTest(_root.heli) and (_root.heli._currentframe == 2)) {
_root.heli.energi = _root.heli.energi - 1000;
misil2._visible = 0;
}
if (misil3.sensor.hitTest(_root.heli) and (_root.heli._currentframe == 2)) {
_root.heli.energi = _root.heli.energi - 1000;
misil3._visible = 0;
}
}
Instance of Symbol 159 MovieClip "musuh2" in Symbol 228 MovieClip Frame 162
onClipEvent (load) {
skala = _xscale;
kekuatansenjata = 10;
jumlahsenjata = 0;
loadingsenjata = 0;
waktuloading = 0;
menembak = 0;
}
onClipEvent (enterFrame) {
dx = -(_root.heli._x - _x);
dy = -(_root.heli._y - _y);
radians = Math.atan(dy / dx);
if (dx > 0) {
_xscale = skala;
_rotation = ((radians * 180) / 3.141593);
} else {
_xscale = (-skala);
_rotation = ((radians * 180) / 3.141593);
}
if (_rotation > 40) {
_rotation = 40;
}
if (_rotation < 0) {
_rotation = 0;
}
if (_root.aktif == 1) {
if (_parent.ob2._currentframe == 1) {
_visible = 1;
if (((loadingsenjata == 0) and (random(20 - _root.level) == 3)) and (_rotation < 80)) {
fire.play();
loadingsenjata = 1;
_root.jumlahsenjatabg++;
menembak = 1;
duplicateMovieClip (_root.laserbg2, "laserbg2" + jumlahsenjata, _root.kedalamansenjatabg + _root.jumlahsenjatabg);
if (_root.jumlahsenjatabg > 20) {
_root.jumlahsenjatabg = 0;
}
}
if (loadingsenjata == 1) {
waktuloading++;
if (waktuloading > 10) {
waktuloading = 0;
loadingsenjata = 0;
}
}
if ((energi <= 0) and (musuh._currentframe == 1)) {
play();
}
} else {
_visible = 0;
}
}
}
Instance of Symbol 159 MovieClip "musuh3" in Symbol 228 MovieClip Frame 162
onClipEvent (load) {
skala = _xscale;
kekuatansenjata = 150;
jumlahsenjata = 0;
loadingsenjata = 0;
waktuloading = 0;
menembak = 0;
}
onClipEvent (enterFrame) {
dx = -(_root.heli._x - _x);
dy = -(_root.heli._y - _y);
radians = Math.atan(dy / dx);
if (dx > 0) {
_xscale = skala;
_rotation = ((radians * 180) / 3.141593);
} else {
_xscale = (-skala);
_rotation = ((radians * 180) / 3.141593);
}
if (_rotation > 40) {
_rotation = 40;
}
if (_rotation < 0) {
_rotation = 0;
}
if (_root.aktif == 1) {
if (_parent.ob2._currentframe == 1) {
_visible = 1;
if (((loadingsenjata == 0) and (random(20 - _root.level) == 3)) and (_rotation < 80)) {
fire.play();
loadingsenjata = 1;
_root.jumlahsenjatabg++;
menembak = 1;
duplicateMovieClip (_root.laserbg3, "laserbg3" + jumlahsenjata, _root.kedalamansenjatabg + _root.jumlahsenjatabg);
if (_root.jumlahsenjatabg > 20) {
_root.jumlahsenjatabg = 0;
}
}
if (loadingsenjata == 1) {
waktuloading++;
if (waktuloading > 10) {
waktuloading = 0;
loadingsenjata = 0;
}
}
if ((energi <= 0) and (musuh._currentframe == 1)) {
play();
}
} else {
_visible = 0;
}
}
}
Instance of Symbol 209 MovieClip in Symbol 228 MovieClip Frame 162
onClipEvent (enterFrame) {
if (((_parent.ob2._currentframe == 1) and (random(30 - _root.level) == 13)) and (_currentframe == 1)) {
play();
}
if (misil1.sensor.hitTest(_root.heli) and (_root.heli._currentframe == 2)) {
_root.heli.energi = _root.heli.energi - 1000;
misil1._visible = 0;
}
if (misil2.sensor.hitTest(_root.heli) and (_root.heli._currentframe == 2)) {
_root.heli.energi = _root.heli.energi - 1000;
misil2._visible = 0;
}
if (misil3.sensor.hitTest(_root.heli) and (_root.heli._currentframe == 2)) {
_root.heli.energi = _root.heli.energi - 1000;
misil3._visible = 0;
}
}
Instance of Symbol 223 MovieClip "ob2" in Symbol 228 MovieClip Frame 162
onClipEvent (load) {
energi = 1500;
}
onClipEvent (enterFrame) {
if ((energi <= 0) and (_currentframe == 1)) {
play();
}
}
Instance of Symbol 187 MovieClip "ob2" in Symbol 228 MovieClip Frame 164
onClipEvent (load) {
energi = 200;
}
onClipEvent (enterFrame) {
if ((energi <= 0) and (_currentframe == 1)) {
play();
}
}
Instance of Symbol 191 MovieClip "ob2" in Symbol 228 MovieClip Frame 166
onClipEvent (load) {
energi = 500;
}
onClipEvent (enterFrame) {
if ((energi <= 0) and (_currentframe == 1)) {
play();
}
}
Instance of Symbol 225 MovieClip in Symbol 228 MovieClip Frame 168
onClipEvent (enterFrame) {
if ((random(50 - _root.level) == 13) and (_currentframe == 1)) {
play();
}
if (misil1.sensor.hitTest(_root.heli) and (_root.heli._currentframe == 2)) {
_root.heli.energi = _root.heli.energi - 1000;
misil1._visible = 0;
}
if (misil2.sensor.hitTest(_root.heli) and (_root.heli._currentframe == 2)) {
_root.heli.energi = _root.heli.energi - 1000;
misil2._visible = 0;
}
if (misil3.sensor.hitTest(_root.heli) and (_root.heli._currentframe == 2)) {
_root.heli.energi = _root.heli.energi - 1000;
misil3._visible = 0;
}
}
Instance of Symbol 226 MovieClip in Symbol 228 MovieClip Frame 171
onClipEvent (enterFrame) {
if ((random(50 - _root.level) == 13) and (_currentframe == 1)) {
play();
}
if (misil1.sensor.hitTest(_root.heli) and (_root.heli._currentframe == 2)) {
_root.heli.energi = _root.heli.energi - 1000;
misil1._visible = 0;
}
if (misil2.sensor.hitTest(_root.heli) and (_root.heli._currentframe == 2)) {
_root.heli.energi = _root.heli.energi - 1000;
misil2._visible = 0;
}
if (misil3.sensor.hitTest(_root.heli) and (_root.heli._currentframe == 2)) {
_root.heli.energi = _root.heli.energi - 1000;
misil3._visible = 0;
}
}
Instance of Symbol 227 MovieClip in Symbol 228 MovieClip Frame 174
onClipEvent (enterFrame) {
if ((random(50 - _root.level) == 13) and (_currentframe == 1)) {
play();
}
if (misil1.sensor.hitTest(_root.heli) and (_root.heli._currentframe == 2)) {
_root.heli.energi = _root.heli.energi - 1000;
misil1._visible = 0;
}
if (misil2.sensor.hitTest(_root.heli) and (_root.heli._currentframe == 2)) {
_root.heli.energi = _root.heli.energi - 1000;
misil2._visible = 0;
}
if (misil3.sensor.hitTest(_root.heli) and (_root.heli._currentframe == 2)) {
_root.heli.energi = _root.heli.energi - 1000;
misil3._visible = 0;
}
}
Instance of Symbol 159 MovieClip "musuh2" in Symbol 228 MovieClip Frame 176
onClipEvent (load) {
skala = _xscale;
kekuatansenjata = 10;
jumlahsenjata = 0;
loadingsenjata = 0;
waktuloading = 0;
menembak = 0;
}
onClipEvent (enterFrame) {
dx = -(_root.heli._x - _x);
dy = -(_root.heli._y - _y);
radians = Math.atan(dy / dx);
if (dx > 0) {
_xscale = skala;
_rotation = ((radians * 180) / 3.141593);
} else {
_xscale = (-skala);
_rotation = ((radians * 180) / 3.141593);
}
if (_rotation > 40) {
_rotation = 40;
}
if (_rotation < 0) {
_rotation = 0;
}
if (_root.aktif == 1) {
if (_parent.ob2._currentframe == 1) {
_visible = 1;
if (((loadingsenjata == 0) and (random(20 - _root.level) == 3)) and (_rotation < 80)) {
fire.play();
loadingsenjata = 1;
_root.jumlahsenjatabg++;
menembak = 1;
duplicateMovieClip (_root.laserbg2, "laserbg2" + jumlahsenjata, _root.kedalamansenjatabg + _root.jumlahsenjatabg);
if (_root.jumlahsenjatabg > 20) {
_root.jumlahsenjatabg = 0;
}
}
if (loadingsenjata == 1) {
waktuloading++;
if (waktuloading > 10) {
waktuloading = 0;
loadingsenjata = 0;
}
}
if ((energi <= 0) and (musuh._currentframe == 1)) {
play();
}
} else {
_visible = 0;
}
}
}
Instance of Symbol 159 MovieClip "musuh3" in Symbol 228 MovieClip Frame 176
onClipEvent (load) {
skala = _xscale;
kekuatansenjata = 150;
jumlahsenjata = 0;
loadingsenjata = 0;
waktuloading = 0;
menembak = 0;
}
onClipEvent (enterFrame) {
dx = -(_root.heli._x - _x);
dy = -(_root.heli._y - _y);
radians = Math.atan(dy / dx);
if (dx > 0) {
_xscale = skala;
_rotation = ((radians * 180) / 3.141593);
} else {
_xscale = (-skala);
_rotation = ((radians * 180) / 3.141593);
}
if (_rotation > 40) {
_rotation = 40;
}
if (_rotation < 0) {
_rotation = 0;
}
if (_root.aktif == 1) {
if (_parent.ob2._currentframe == 1) {
_visible = 1;
if (((loadingsenjata == 0) and (random(20 - _root.level) == 3)) and (_rotation < 80)) {
fire.play();
loadingsenjata = 1;
_root.jumlahsenjatabg++;
menembak = 1;
duplicateMovieClip (_root.laserbg3, "laserbg3" + jumlahsenjata, _root.kedalamansenjatabg + _root.jumlahsenjatabg);
if (_root.jumlahsenjatabg > 20) {
_root.jumlahsenjatabg = 0;
}
}
if (loadingsenjata == 1) {
waktuloading++;
if (waktuloading > 10) {
waktuloading = 0;
loadingsenjata = 0;
}
}
if ((energi <= 0) and (musuh._currentframe == 1)) {
play();
}
} else {
_visible = 0;
}
}
}
Instance of Symbol 209 MovieClip in Symbol 228 MovieClip Frame 176
onClipEvent (enterFrame) {
if (((_parent.ob2._currentframe == 1) and (random(30 - _root.level) == 13)) and (_currentframe == 1)) {
play();
}
if (misil1.sensor.hitTest(_root.heli) and (_root.heli._currentframe == 2)) {
_root.heli.energi = _root.heli.energi - 1000;
misil1._visible = 0;
}
if (misil2.sensor.hitTest(_root.heli) and (_root.heli._currentframe == 2)) {
_root.heli.energi = _root.heli.energi - 1000;
misil2._visible = 0;
}
if (misil3.sensor.hitTest(_root.heli) and (_root.heli._currentframe == 2)) {
_root.heli.energi = _root.heli.energi - 1000;
misil3._visible = 0;
}
}
Instance of Symbol 223 MovieClip "ob2" in Symbol 228 MovieClip Frame 176
onClipEvent (load) {
energi = 1500;
}
onClipEvent (enterFrame) {
if ((energi <= 0) and (_currentframe == 1)) {
play();
}
}
Instance of Symbol 191 MovieClip "ob2" in Symbol 228 MovieClip Frame 179
onClipEvent (load) {
energi = 500;
}
onClipEvent (enterFrame) {
if ((energi <= 0) and (_currentframe == 1)) {
play();
}
}
Instance of Symbol 226 MovieClip in Symbol 228 MovieClip Frame 179
onClipEvent (enterFrame) {
if ((random(50 - _root.level) == 13) and (_currentframe == 1)) {
play();
}
if (misil1.sensor.hitTest(_root.heli) and (_root.heli._currentframe == 2)) {
_root.heli.energi = _root.heli.energi - 1000;
misil1._visible = 0;
}
if (misil2.sensor.hitTest(_root.heli) and (_root.heli._currentframe == 2)) {
_root.heli.energi = _root.heli.energi - 1000;
misil2._visible = 0;
}
if (misil3.sensor.hitTest(_root.heli) and (_root.heli._currentframe == 2)) {
_root.heli.energi = _root.heli.energi - 1000;
misil3._visible = 0;
}
}
Instance of Symbol 209 MovieClip in Symbol 228 MovieClip Frame 181
onClipEvent (enterFrame) {
if (((_parent.ob2._currentframe == 1) and (random(30 - _root.level) == 13)) and (_currentframe == 1)) {
play();
}
if (misil1.sensor.hitTest(_root.heli) and (_root.heli._currentframe == 2)) {
_root.heli.energi = _root.heli.energi - 1000;
misil1._visible = 0;
}
if (misil2.sensor.hitTest(_root.heli) and (_root.heli._currentframe == 2)) {
_root.heli.energi = _root.heli.energi - 1000;
misil2._visible = 0;
}
if (misil3.sensor.hitTest(_root.heli) and (_root.heli._currentframe == 2)) {
_root.heli.energi = _root.heli.energi - 1000;
misil3._visible = 0;
}
}
Instance of Symbol 223 MovieClip "ob2" in Symbol 228 MovieClip Frame 181
onClipEvent (load) {
energi = 1500;
}
onClipEvent (enterFrame) {
if ((energi <= 0) and (_currentframe == 1)) {
play();
}
}
Instance of Symbol 225 MovieClip in Symbol 228 MovieClip Frame 183
onClipEvent (enterFrame) {
if ((random(50 - _root.level) == 13) and (_currentframe == 1)) {
play();
}
if (misil1.sensor.hitTest(_root.heli) and (_root.heli._currentframe == 2)) {
_root.heli.energi = _root.heli.energi - 1000;
misil1._visible = 0;
}
if (misil2.sensor.hitTest(_root.heli) and (_root.heli._currentframe == 2)) {
_root.heli.energi = _root.heli.energi - 1000;
misil2._visible = 0;
}
if (misil3.sensor.hitTest(_root.heli) and (_root.heli._currentframe == 2)) {
_root.heli.energi = _root.heli.energi - 1000;
misil3._visible = 0;
}
}
Instance of Symbol 226 MovieClip in Symbol 228 MovieClip Frame 186
onClipEvent (enterFrame) {
if ((random(50 - _root.level) == 13) and (_currentframe == 1)) {
play();
}
if (misil1.sensor.hitTest(_root.heli) and (_root.heli._currentframe == 2)) {
_root.heli.energi = _root.heli.energi - 1000;
misil1._visible = 0;
}
if (misil2.sensor.hitTest(_root.heli) and (_root.heli._currentframe == 2)) {
_root.heli.energi = _root.heli.energi - 1000;
misil2._visible = 0;
}
if (misil3.sensor.hitTest(_root.heli) and (_root.heli._currentframe == 2)) {
_root.heli.energi = _root.heli.energi - 1000;
misil3._visible = 0;
}
}
Instance of Symbol 227 MovieClip in Symbol 228 MovieClip Frame 189
onClipEvent (enterFrame) {
if ((random(50 - _root.level) == 13) and (_currentframe == 1)) {
play();
}
if (misil1.sensor.hitTest(_root.heli) and (_root.heli._currentframe == 2)) {
_root.heli.energi = _root.heli.energi - 1000;
misil1._visible = 0;
}
if (misil2.sensor.hitTest(_root.heli) and (_root.heli._currentframe == 2)) {
_root.heli.energi = _root.heli.energi - 1000;
misil2._visible = 0;
}
if (misil3.sensor.hitTest(_root.heli) and (_root.heli._currentframe == 2)) {
_root.heli.energi = _root.heli.energi - 1000;
misil3._visible = 0;
}
}
Instance of Symbol 159 MovieClip "musuh2" in Symbol 228 MovieClip Frame 191
onClipEvent (load) {
skala = _xscale;
kekuatansenjata = 10;
jumlahsenjata = 0;
loadingsenjata = 0;
waktuloading = 0;
menembak = 0;
}
onClipEvent (enterFrame) {
dx = -(_root.heli._x - _x);
dy = -(_root.heli._y - _y);
radians = Math.atan(dy / dx);
if (dx > 0) {
_xscale = skala;
_rotation = ((radians * 180) / 3.141593);
} else {
_xscale = (-skala);
_rotation = ((radians * 180) / 3.141593);
}
if (_rotation > 40) {
_rotation = 40;
}
if (_rotation < 0) {
_rotation = 0;
}
if (_root.aktif == 1) {
if (_parent.ob2._currentframe == 1) {
_visible = 1;
if (((loadingsenjata == 0) and (random(20 - _root.level) == 3)) and (_rotation < 80)) {
fire.play();
loadingsenjata = 1;
_root.jumlahsenjatabg++;
menembak = 1;
duplicateMovieClip (_root.laserbg2, "laserbg2" + jumlahsenjata, _root.kedalamansenjatabg + _root.jumlahsenjatabg);
if (_root.jumlahsenjatabg > 20) {
_root.jumlahsenjatabg = 0;
}
}
if (loadingsenjata == 1) {
waktuloading++;
if (waktuloading > 10) {
waktuloading = 0;
loadingsenjata = 0;
}
}
if ((energi <= 0) and (musuh._currentframe == 1)) {
play();
}
} else {
_visible = 0;
}
}
}
Instance of Symbol 159 MovieClip "musuh3" in Symbol 228 MovieClip Frame 191
onClipEvent (load) {
skala = _xscale;
kekuatansenjata = 150;
jumlahsenjata = 0;
loadingsenjata = 0;
waktuloading = 0;
menembak = 0;
}
onClipEvent (enterFrame) {
dx = -(_root.heli._x - _x);
dy = -(_root.heli._y - _y);
radians = Math.atan(dy / dx);
if (dx > 0) {
_xscale = skala;
_rotation = ((radians * 180) / 3.141593);
} else {
_xscale = (-skala);
_rotation = ((radians * 180) / 3.141593);
}
if (_rotation > 40) {
_rotation = 40;
}
if (_rotation < 0) {
_rotation = 0;
}
if (_root.aktif == 1) {
if (_parent.ob2._currentframe == 1) {
_visible = 1;
if (((loadingsenjata == 0) and (random(20 - _root.level) == 3)) and (_rotation < 80)) {
fire.play();
loadingsenjata = 1;
_root.jumlahsenjatabg++;
menembak = 1;
duplicateMovieClip (_root.laserbg3, "laserbg3" + jumlahsenjata, _root.kedalamansenjatabg + _root.jumlahsenjatabg);
if (_root.jumlahsenjatabg > 20) {
_root.jumlahsenjatabg = 0;
}
}
if (loadingsenjata == 1) {
waktuloading++;
if (waktuloading > 10) {
waktuloading = 0;
loadingsenjata = 0;
}
}
if ((energi <= 0) and (musuh._currentframe == 1)) {
play();
}
} else {
_visible = 0;
}
}
}
Instance of Symbol 209 MovieClip in Symbol 228 MovieClip Frame 191
onClipEvent (enterFrame) {
if (((_parent.ob2._currentframe == 1) and (random(30 - _root.level) == 13)) and (_currentframe == 1)) {
play();
}
if (misil1.sensor.hitTest(_root.heli) and (_root.heli._currentframe == 2)) {
_root.heli.energi = _root.heli.energi - 1000;
misil1._visible = 0;
}
if (misil2.sensor.hitTest(_root.heli) and (_root.heli._currentframe == 2)) {
_root.heli.energi = _root.heli.energi - 1000;
misil2._visible = 0;
}
if (misil3.sensor.hitTest(_root.heli) and (_root.heli._currentframe == 2)) {
_root.heli.energi = _root.heli.energi - 1000;
misil3._visible = 0;
}
}
Instance of Symbol 223 MovieClip "ob2" in Symbol 228 MovieClip Frame 191
onClipEvent (load) {
energi = 1500;
}
onClipEvent (enterFrame) {
if ((energi <= 0) and (_currentframe == 1)) {
play();
}
}
Instance of Symbol 225 MovieClip in Symbol 228 MovieClip Frame 193
onClipEvent (enterFrame) {
if ((random(50 - _root.level) == 13) and (_currentframe == 1)) {
play();
}
if (misil1.sensor.hitTest(_root.heli) and (_root.heli._currentframe == 2)) {
_root.heli.energi = _root.heli.energi - 1000;
misil1._visible = 0;
}
if (misil2.sensor.hitTest(_root.heli) and (_root.heli._currentframe == 2)) {
_root.heli.energi = _root.heli.energi - 1000;
misil2._visible = 0;
}
if (misil3.sensor.hitTest(_root.heli) and (_root.heli._currentframe == 2)) {
_root.heli.energi = _root.heli.energi - 1000;
misil3._visible = 0;
}
}
Instance of Symbol 226 MovieClip in Symbol 228 MovieClip Frame 196
onClipEvent (enterFrame) {
if ((random(50 - _root.level) == 13) and (_currentframe == 1)) {
play();
}
if (misil1.sensor.hitTest(_root.heli) and (_root.heli._currentframe == 2)) {
_root.heli.energi = _root.heli.energi - 1000;
misil1._visible = 0;
}
if (misil2.sensor.hitTest(_root.heli) and (_root.heli._currentframe == 2)) {
_root.heli.energi = _root.heli.energi - 1000;
misil2._visible = 0;
}
if (misil3.sensor.hitTest(_root.heli) and (_root.heli._currentframe == 2)) {
_root.heli.energi = _root.heli.energi - 1000;
misil3._visible = 0;
}
}
Instance of Symbol 227 MovieClip in Symbol 228 MovieClip Frame 199
onClipEvent (enterFrame) {
if ((random(50 - _root.level) == 13) and (_currentframe == 1)) {
play();
}
if (misil1.sensor.hitTest(_root.heli) and (_root.heli._currentframe == 2)) {
_root.heli.energi = _root.heli.energi - 1000;
misil1._visible = 0;
}
if (misil2.sensor.hitTest(_root.heli) and (_root.heli._currentframe == 2)) {
_root.heli.energi = _root.heli.energi - 1000;
misil2._visible = 0;
}
if (misil3.sensor.hitTest(_root.heli) and (_root.heli._currentframe == 2)) {
_root.heli.energi = _root.heli.energi - 1000;
misil3._visible = 0;
}
}
Instance of Symbol 159 MovieClip "musuh2" in Symbol 228 MovieClip Frame 201
onClipEvent (load) {
skala = _xscale;
kekuatansenjata = 10;
jumlahsenjata = 0;
loadingsenjata = 0;
waktuloading = 0;
menembak = 0;
}
onClipEvent (enterFrame) {
dx = -(_root.heli._x - _x);
dy = -(_root.heli._y - _y);
radians = Math.atan(dy / dx);
if (dx > 0) {
_xscale = skala;
_rotation = ((radians * 180) / 3.141593);
} else {
_xscale = (-skala);
_rotation = ((radians * 180) / 3.141593);
}
if (_rotation > 40) {
_rotation = 40;
}
if (_rotation < 0) {
_rotation = 0;
}
if (_root.aktif == 1) {
if (_parent.ob2._currentframe == 1) {
_visible = 1;
if (((loadingsenjata == 0) and (random(20 - _root.level) == 3)) and (_rotation < 80)) {
fire.play();
loadingsenjata = 1;
_root.jumlahsenjatabg++;
menembak = 1;
duplicateMovieClip (_root.laserbg2, "laserbg2" + jumlahsenjata, _root.kedalamansenjatabg + _root.jumlahsenjatabg);
if (_root.jumlahsenjatabg > 20) {
_root.jumlahsenjatabg = 0;
}
}
if (loadingsenjata == 1) {
waktuloading++;
if (waktuloading > 10) {
waktuloading = 0;
loadingsenjata = 0;
}
}
if ((energi <= 0) and (musuh._currentframe == 1)) {
play();
}
} else {
_visible = 0;
}
}
}
Instance of Symbol 159 MovieClip "musuh3" in Symbol 228 MovieClip Frame 201
onClipEvent (load) {
skala = _xscale;
kekuatansenjata = 150;
jumlahsenjata = 0;
loadingsenjata = 0;
waktuloading = 0;
menembak = 0;
}
onClipEvent (enterFrame) {
dx = -(_root.heli._x - _x);
dy = -(_root.heli._y - _y);
radians = Math.atan(dy / dx);
if (dx > 0) {
_xscale = skala;
_rotation = ((radians * 180) / 3.141593);
} else {
_xscale = (-skala);
_rotation = ((radians * 180) / 3.141593);
}
if (_rotation > 40) {
_rotation = 40;
}
if (_rotation < 0) {
_rotation = 0;
}
if (_root.aktif == 1) {
if (_parent.ob2._currentframe == 1) {
_visible = 1;
if (((loadingsenjata == 0) and (random(20 - _root.level) == 3)) and (_rotation < 80)) {
fire.play();
loadingsenjata = 1;
_root.jumlahsenjatabg++;
menembak = 1;
duplicateMovieClip (_root.laserbg3, "laserbg3" + jumlahsenjata, _root.kedalamansenjatabg + _root.jumlahsenjatabg);
if (_root.jumlahsenjatabg > 20) {
_root.jumlahsenjatabg = 0;
}
}
if (loadingsenjata == 1) {
waktuloading++;
if (waktuloading > 10) {
waktuloading = 0;
loadingsenjata = 0;
}
}
if ((energi <= 0) and (musuh._currentframe == 1)) {
play();
}
} else {
_visible = 0;
}
}
}
Instance of Symbol 209 MovieClip in Symbol 228 MovieClip Frame 201
onClipEvent (enterFrame) {
if (((_parent.ob2._currentframe == 1) and (random(30 - _root.level) == 13)) and (_currentframe == 1)) {
play();
}
if (misil1.sensor.hitTest(_root.heli) and (_root.heli._currentframe == 2)) {
_root.heli.energi = _root.heli.energi - 1000;
misil1._visible = 0;
}
if (misil2.sensor.hitTest(_root.heli) and (_root.heli._currentframe == 2)) {
_root.heli.energi = _root.heli.energi - 1000;
misil2._visible = 0;
}
if (misil3.sensor.hitTest(_root.heli) and (_root.heli._currentframe == 2)) {
_root.heli.energi = _root.heli.energi - 1000;
misil3._visible = 0;
}
}
Instance of Symbol 223 MovieClip "ob2" in Symbol 228 MovieClip Frame 201
onClipEvent (load) {
energi = 1500;
}
onClipEvent (enterFrame) {
if ((energi <= 0) and (_currentframe == 1)) {
play();
}
}
Instance of Symbol 133 MovieClip in Symbol 232 MovieClip Frame 1
onClipEvent (load) {
_xscale = _parent._parent._parent.energi;
}
onClipEvent (enterFrame) {
if (_parent._parent._parent.energi <= 0) {
_xscale = 0;
} else {
_xscale = _parent._parent._parent.energi;
}
}
Symbol 233 MovieClip Frame 1
stop();
Instance of Symbol 232 MovieClip in Symbol 233 MovieClip Frame 1
onClipEvent (enterFrame) {
_rotation = (-_parent._rotation);
}
Symbol 233 MovieClip Frame 36
_root.score = _root.score + 100;
_parent.gotoAndStop(1);
Symbol 234 MovieClip Frame 1
stop();
keluar = 0;
Symbol 234 MovieClip Frame 76
if (random(3) == 2) {
gotoAndPlay ("g1");
} else if (random(3) == 1) {
gotoAndPlay ("g2");
} else {
play();
}
Symbol 234 MovieClip Frame 203
gotoAndStop (1);
Symbol 234 MovieClip Frame 315
gotoAndStop (1);
Symbol 234 MovieClip Frame 515
gotoAndStop (1);
Symbol 237 MovieClip Frame 1
stop();
Instance of Symbol 232 MovieClip in Symbol 237 MovieClip Frame 1
onClipEvent (enterFrame) {
_rotation = (-_parent._rotation);
}
Symbol 237 MovieClip Frame 35
_root.score = _root.score + 150;
_parent.gotoAndStop(1);
Symbol 238 MovieClip Frame 1
stop();
keluar = 0;
Symbol 238 MovieClip Frame 76
if (random(3) == 2) {
gotoAndPlay ("g1");
} else if (random(3) == 1) {
gotoAndPlay ("g2");
} else {
play();
}
Symbol 238 MovieClip Frame 203
gotoAndStop (1);
Symbol 238 MovieClip Frame 315
gotoAndStop (1);
Symbol 238 MovieClip Frame 515
gotoAndStop (1);
Symbol 241 MovieClip Frame 1
stop();
Instance of Symbol 232 MovieClip in Symbol 241 MovieClip Frame 1
onClipEvent (enterFrame) {
_rotation = (-_parent._rotation);
}
Symbol 241 MovieClip Frame 36
_root.score = _root.score + 75;
_parent.gotoAndStop(1);
Symbol 242 MovieClip Frame 1
stop();
keluar = 0;
Symbol 242 MovieClip Frame 76
if (random(3) == 2) {
gotoAndPlay ("g1");
} else if (random(3) == 1) {
gotoAndPlay ("g2");
} else {
play();
}
Symbol 242 MovieClip Frame 203
gotoAndStop (1);
Symbol 242 MovieClip Frame 315
gotoAndStop (1);
Symbol 242 MovieClip Frame 515
gotoAndStop (1);
Symbol 245 MovieClip Frame 1
stop();
Instance of Symbol 232 MovieClip in Symbol 245 MovieClip Frame 1
onClipEvent (enterFrame) {
_rotation = (-_parent._rotation);
}
Symbol 245 MovieClip Frame 44
_root.score = _root.score + 300;
_parent.gotoAndStop(1);
Symbol 246 MovieClip Frame 1
stop();
keluar = 0;
Symbol 246 MovieClip Frame 76
if (random(3) == 2) {
gotoAndPlay ("g1");
} else if (random(3) == 1) {
gotoAndPlay ("g2");
} else {
play();
}
Symbol 246 MovieClip Frame 203
gotoAndStop (1);
Symbol 246 MovieClip Frame 315
gotoAndStop (1);
Symbol 246 MovieClip Frame 515
gotoAndStop (1);
Symbol 247 MovieClip Frame 1
stop();
keluar = 0;
Symbol 247 MovieClip Frame 76
if (random(3) == 2) {
gotoAndPlay ("g1");
} else if (random(3) == 1) {
gotoAndPlay ("g2");
} else {
play();
}
Symbol 247 MovieClip Frame 203
gotoAndStop (1);
Symbol 247 MovieClip Frame 315
gotoAndStop (1);
Symbol 247 MovieClip Frame 515
gotoAndStop (1);
Symbol 250 MovieClip Frame 1
stop();
Symbol 250 MovieClip Frame 41
_root.score = _root.score + 500;
Instance of Symbol 254 MovieClip in Symbol 255 MovieClip Frame 1
onClipEvent (load) {
_visible = 0;
}
onClipEvent (enterFrame) {
if (_root.heli._y > 320) {
_visible = 1;
} else {
_visible = 0;
}
}
Symbol 259 MovieClip Frame 21
_root.jumlahmisil1 = _root.jumlahmisil1 + (5 + random(5));
_root.bonus.keluar = 0;
_root.bonus._x = _root.bonus.xa;
_root.bonus._y = _root.bonus.ya;
Symbol 265 MovieClip Frame 21
_root.jumlahmisil2 = _root.jumlahmisil2 + (9 + random(5));
_root.bonus.keluar = 0;
_root.bonus._x = _root.bonus.xa;
_root.bonus._y = _root.bonus.ya;
Symbol 270 MovieClip Frame 21
_root.jumlahmisil3 = _root.jumlahmisil3 + (5 + random(5));
_root.bonus.keluar = 0;
_root.bonus._x = _root.bonus.xa;
_root.bonus._y = _root.bonus.ya;
Instance of Symbol 65 MovieClip "asap" in Symbol 273 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.heli.energi < 30) {
_visible = 1;
} else {
_visible = 0;
}
}
Symbol 274 MovieClip Frame 21
_root.heli.energi = 100;
_root.bonus.keluar = 0;
_root.bonus._x = _root.bonus.xa;
_root.bonus._y = _root.bonus.ya;
Instance of Symbol 65 MovieClip "asap" in Symbol 275 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.heli.energi < 30) {
_visible = 1;
} else {
_visible = 0;
}
}
Symbol 276 MovieClip Frame 21
_root.nyawa++;
_root.bonus.keluar = 0;
_root.bonus._x = _root.bonus.xa;
_root.bonus._y = _root.bonus.ya;
Symbol 277 MovieClip Frame 1
stop();
Symbol 280 MovieClip Frame 1
stop();
Symbol 280 MovieClip Frame 8
removeMovieClip(this);
Symbol 283 MovieClip Frame 1
stop();
Symbol 283 MovieClip Frame 8
removeMovieClip(this);
Symbol 285 MovieClip Frame 1
stop();
Symbol 285 MovieClip Frame 36
stop();
removeMovieClip(this);
Symbol 286 MovieClip Frame 53
removeMovieClip(this);
Symbol 288 MovieClip Frame 1
stop();
Symbol 288 MovieClip Frame 28
stop();
removeMovieClip(this);
Symbol 289 MovieClip Frame 1
stop();
Symbol 289 MovieClip Frame 53
removeMovieClip(this);
Symbol 291 MovieClip Frame 1
stop();
Symbol 291 MovieClip Frame 43
stop();
removeMovieClip(this);
Symbol 292 MovieClip Frame 1
stop();
Symbol 292 MovieClip Frame 53
removeMovieClip(this);
Symbol 293 MovieClip Frame 75
stop();
Instance of Symbol 133 MovieClip in Symbol 300 MovieClip Frame 1
onClipEvent (load) {
_xscale = _root.heli.energi;
}
onClipEvent (enterFrame) {
if (_root.heli.energi <= 0) {
_xscale = 0;
} else {
_xscale = _root.heli.energi;
}
}
Symbol 309 Button
on (release) {
_root.gotoAndPlay("restart");
}
Symbol 310 MovieClip Frame 1
stop();
Symbol 310 MovieClip Frame 30
stop();
Symbol 315 MovieClip Frame 61
stop();
Symbol 319 MovieClip Frame 1
stop();
Symbol 341 MovieClip Frame 321
stop();