Frame 1
fscommand ("allowscale", false);
fscommand ("showmenu", false);
stopAllSounds();
_root.bytesLoaded = _root.getBytesLoaded();
_root.bytesTotal = _root.getBytesTotal();
_root.percentLoaded = Math.round(100 * (_root.bytesLoaded / _root.bytesTotal));
_root.bar.freloaderbar.gotoAndStop(percentLoaded);
Frame 2
if (_root.percentLoaded == 100) {
gotoAndPlay (3);
} else {
gotoAndPlay (1);
}
Frame 3
stop();
Instance of Symbol 73 MovieClip in Frame 3
onClipEvent (enterFrame) {
this.swapDepths(1000);
}
Frame 4
fscommand ("allowscale", false);
fscommand ("showmenu", false);
stop();
statSound = 0;
Instance of Symbol 73 MovieClip in Frame 4
onClipEvent (enterFrame) {
this.swapDepths(1000);
}
Frame 5
function loadData() {
Cookies = SharedObject.getLocal("hgscore", "/");
hgList = new Array();
hgList = Cookies.data.myList;
highscore.htmlText = "";
if (hgList == null) {
hgList = new Array({user:"pla", point:0}, {user:"pla", point:0}, {user:"pla", point:0}, {user:"pla", point:0}, {user:"pla", point:0});
Cookies.data.myList = hgList;
Cookies.flush();
} else {
var _local1 = 0;
while (_local1 < 5) {
if (hgList[_local1].user != null) {
highscore.htmlText = highscore.htmlText + (((((_local1 + 1) + " ") + hgList[_local1].user) + " ") + hgList[_local1].point);
}
_local1++;
}
}
}
stop();
_root.sound1._visible = 0;
bg.stop();
bg = new Sound();
bg.attachSound("bg");
if (_root.statSound == 0) {
bg.start(0, 10000000000);
_root.sound.gotoAndStop("play");
_root.sound1.gotoAndStop("play");
} else if (_root.statSound == 1) {
bg.stop();
_root.sound.gotoAndStop("stop");
_root.sound1.gotoAndStop("stop");
}
suaraLaser = new Sound();
suaraLaser.attachSound("hit");
suaraLaser1 = new Sound();
suaraLaser1.attachSound("hit1");
bong = new Sound();
bong.attachSound("bong");
burn = new Sound();
burn.attachSound("burn");
bonusSound = new Sound();
bonusSound.attachSound("bonusSound");
over = new Sound();
over.attachSound("blind");
api = new Sound();
api.attachSound("api");
win = new Sound();
win.attachSound("win");
sehat = 100;
score = 0;
stat = 0;
stat1 = 0;
stat2 = 0;
kesempatan = 3;
laserLevel = 1;
auto = 0;
shipLow = 0;
gunPower = 0;
sp = 0;
iden = 0;
loadData();
Frame 6
_root.sound1._visible = 0;
Frame 7
_root.sound1._visible = 0;
Frame 8
_root.sound1._visible = 0;
Frame 9
_root.sound1._visible = 0;
Frame 10
_root.sound1._visible = 0;
Frame 11
_root.sound1._visible = 0;
Frame 12
_root.sound1._visible = 0;
Frame 13
_root.sound1._visible = 0;
Frame 14
loadData();
_root.sound1._visible = 0;
Frame 15
_root.sound1._visible = 0;
Frame 21
function rekamData(nama, score) {
Cookies = SharedObject.getLocal("hgscore", "/");
hgList = new Array();
if (Cookies.data.myList != null) {
hgList = Cookies.data.myList;
}
hgList.push({point:_root.score, user:nama});
hgList.sortOn("point", Array.NUMERIC | Array.DESCENDING);
Cookies.data.myList = hgList;
Cookies.flush();
}
function loadData() {
Cookies = SharedObject.getLocal("hgscore", "/");
hgList = new Array();
hgList = Cookies.data.myList;
highscore.htmlText = "";
if (hgList == null) {
hgList = new Array({user:"pla", point:0}, {user:"pla", point:0}, {user:"pla", point:0}, {user:"pla", point:0}, {user:"pla", point:0});
Cookies.data.myList = hgList;
Cookies.flush();
} else {
var _local1 = 0;
while (_local1 < 5) {
if (hgList[_local1].user != null) {
highscore.htmlText = highscore.htmlText + (((((_local1 + 1) + " ") + hgList[_local1].user) + " ") + hgList[_local1].point);
}
_local1++;
}
}
}
if (_root.sound1._currentframe == 1) {
_root.over.start();
_root.api.start(0, 1000);
} else {
_root.over.stop();
_root.api.stop();
}
_root.sound1._visible = 0;
stop();
Selection.setFocus("nama");
loadData();
Frame 22
_root.api.stop;
stop();
_root.sound1._visible = 0;
Instance of Symbol 283 MovieClip in Frame 22
onClipEvent (load) {
keluar = 0;
xlama = _x;
}
onClipEvent (enterFrame) {
if (((random(70) == 15) and (keluar == 0)) and (_root.pesawat.time1 >= 6)) {
keluar = 1;
_y = (random(150) + 40);
}
if (keluar == 1) {
_x = (_x - 7);
if (_x < -100) {
keluar = 0;
_x = xlama;
}
}
}
Instance of Symbol 285 MovieClip in Frame 22
onClipEvent (load) {
keluar = 0;
xlama = _x;
}
onClipEvent (enterFrame) {
if (((random(70) == 15) and (keluar == 0)) and (_root.pesawat.time1 >= 6)) {
keluar = 1;
_y = (random(150) + 40);
}
if (keluar == 1) {
_x = (_x - 7);
if (_x < -150) {
keluar = 0;
_x = xlama;
}
}
}
Instance of Symbol 287 MovieClip in Frame 22
onClipEvent (load) {
keluar = 0;
xlama = _x;
}
onClipEvent (enterFrame) {
if (((random(70) == 15) and (keluar == 0)) and (_root.pesawat.time1 >= 6)) {
keluar = 1;
_y = (random(150) + 40);
}
if (keluar == 1) {
_x = (_x - 7);
if (_x < -100) {
keluar = 0;
_x = xlama;
}
}
}
Instance of Symbol 289 MovieClip in Frame 22
onClipEvent (load) {
keluar = 0;
xlama = _x;
}
onClipEvent (enterFrame) {
if (((random(70) == 15) and (keluar == 0)) and (_root.pesawat.time1 >= 6)) {
keluar = 1;
_y = (random(150) + 40);
}
if (keluar == 1) {
_x = (_x - 7);
if (_x < -100) {
keluar = 0;
_x = xlama;
}
}
}
Frame 23
stop();
_root.sound1._visible = 1;
iden = 1;
jumlahSenjataMusuh = 0;
armor = "Laser";
armor1 = "Empty";
jenisSenjata = 1;
kecepatanSenjata = 100;
level = 1;
bonus = "Empty";
kedalamanSenjataMusuh = 200;
_root.onEnterFrame = function () {
if ((_root.bTime._currentframe == 1) and ((((((_root.jenisSenjata == 2) or (_root.jenisSenjata == 3)) or (_root.jenisSenjata == 4)) or (_root.jenisSenjata == 5)) or (_root.jenisSenjata == 6)) or (_root.jenisSenjata == 7))) {
_root.jenisSenjata = 1;
_root.armor = "Laser";
_root.perisai._x == 100;
_root.perisai._y == 550;
}
if ((((_root.bTime1._currentframe == 1) and (_root.bTime2._currentframe == 1)) and (_root.bTime3._currentframe == 1)) and (_root.bTime4._currentframe == 1)) {
_root.bonus = "Empty";
}
if (_root.health.life._xscale < 0) {
_root.pesawat.gotoAndStop("2");
_root.sehat = _root.sehat - 5;
unloadMovie ("api");
}
if (((_root.kesempatan > 0) and (_root.health.life._xscale < 0)) and (_root.pesawat.ledakan._currentframe == 4)) {
_root.pesawat.gotoAndStop(1);
_root.health.life._xscale = _root.health.life._xscale + 60;
_root.bonus = "Shield";
_root.bTime1.gotoAndPlay("lima");
_root.perisai._visible = 1;
_root.perisai._x = _root.pesawat._x;
_root.perisai._y = _root.pesawat._y;
} else if (((_root.kesempatan == 0) and (_root.health.life._xscale < 0)) and (_root.pesawat.ledakan._currentframe == 4)) {
gotoAndStop ("gameOver");
}
if (_root.jenisSenjata == 3) {
_root.pesawat.energi = 100;
}
if ((_root.pesawat.time == 0) and (_root.kesempatan > 0)) {
_root.gotoAndStop("stage2");
}
};
Instance of Symbol 311 MovieClip "rock2" in Frame 23
onClipEvent (load) {
xawal = 700;
kecepatan = 7;
keluar = 0;
_visible = 0;
}
onClipEvent (enterFrame) {
if (((((random(30) == 5) and (keluar == 0)) and (_root.rock1.keluar == 0)) and (_root.rock.keluar == 0)) and (_root.pesawat.time1 >= 6)) {
keluar = 1;
_visible = 1;
}
if (keluar == 1) {
_x = (_x - kecepatan);
if (_x < -200) {
_x = xawal;
keluar = 0;
_visible = 0;
}
}
}
Instance of Symbol 313 MovieClip "rock" in Frame 23
onClipEvent (load) {
xawal = 700;
kecepatan = 7;
keluar = 0;
_visible = 0;
}
onClipEvent (enterFrame) {
if (((((random(30) == 5) and (keluar == 0)) and (_root.rock1.keluar == 0)) and (_root.rock2.keluar == 0)) and (_root.pesawat.time1 >= 6)) {
keluar = 1;
_visible = 1;
}
if (keluar == 1) {
_x = (_x - kecepatan);
if (_x < -200) {
_x = xawal;
keluar = 0;
_visible = 0;
}
}
}
Instance of Symbol 315 MovieClip "rock1" in Frame 23
onClipEvent (load) {
xawal = 700;
kecepatan = 7;
keluar = 0;
_visible = 0;
}
onClipEvent (enterFrame) {
if (((((random(30) == 5) and (keluar == 0)) and (_root.rock.keluar == 0)) and (_root.rock2.keluar == 0)) and (_root.pesawat.time1 >= 6)) {
keluar = 1;
_visible = 1;
}
if (keluar == 1) {
_x = (_x - kecepatan);
if (_x < -300) {
_x = xawal;
keluar = 0;
_visible = 0;
}
}
}
Instance of Symbol 285 MovieClip in Frame 23
onClipEvent (load) {
keluar = 0;
xlama = _x;
}
onClipEvent (enterFrame) {
if (((random(70) == 15) and (keluar == 0)) and (_root.pesawat.time1 >= 6)) {
keluar = 1;
_y = (random(150) + 40);
}
if (keluar == 1) {
_x = (_x - 7);
if (_x < -150) {
keluar = 0;
_x = xlama;
}
}
}
Instance of Symbol 321 MovieClip "nuke" in Frame 23
onClipEvent (load) {
keluar = 0;
xlama = _x;
}
onClipEvent (enterFrame) {
if ((((((((random(900) == 47) and (keluar == 0)) and (_root.machine.keluar == 0)) and (_root.ball.keluar == 0)) and (_root.fire.keluar == 0)) and (_root.ice.keluar == 0)) and (_root.andromeda.keluar == 0)) and (_root.pesawat.time1 >= 6)) {
keluar = 1;
_y = (random(250) + 40);
}
if (keluar == 1) {
_x = (_x - 7);
if (_x < -100) {
keluar = 0;
_x = xlama;
}
}
if (hitTest(_root.pesawat) && (_root.pesawat._currentframe == 1)) {
if (_root.sound1._currentframe == 1) {
_root.bonusSound.start();
} else {
_root.bonusSound.stop();
}
keluar = 0;
_x = xlama;
_root.armor = "Nuke";
if (_root.jenisSenjata < 8) {
_root.jenisSenjata = 2;
}
_root.bTime.gotoAndPlay("lima");
_root.pesawat.energi = 100;
}
}
Instance of Symbol 328 MovieClip "shield" in Frame 23
onClipEvent (load) {
keluar = 0;
xlama = _x;
}
onClipEvent (enterFrame) {
if ((((((random(900) == 47) and (keluar == 0)) and (_root.point.keluar == 0)) and (_root.aid.keluar == 0)) and (_root.speed.keluar == 0)) and (_root.pesawat.time1 >= 6)) {
keluar = 1;
_y = (random(250) + 40);
}
if (keluar == 1) {
_x = (_x - 7);
if (_x < -100) {
keluar = 0;
_x = xlama;
}
}
if (hitTest(_root.pesawat) && (_root.pesawat._currentframe == 1)) {
_root.bonus = "Shield";
if (_root.sound1._currentframe == 1) {
_root.bonusSound.start();
} else {
_root.bonusSound.stop();
}
keluar = 0;
_x = xlama;
_root.bTime1.gotoAndPlay("lima");
_root.bTime2.gotoAndStop("nol");
_root.bTime3.gotoAndStop("nol");
_root.bTime4.gotoAndStop("nol");
_root.perisai._visible = 1;
_root.perisai._x = _root.pesawat._x;
_root.perisai._y = _root.pesawat._y;
}
}
Instance of Symbol 330 MovieClip "machine" in Frame 23
onClipEvent (load) {
keluar = 0;
xlama = _x;
}
onClipEvent (enterFrame) {
if ((((((((random(900) == 47) and (keluar == 0)) and (_root.nuke.keluar == 0)) and (_root.ball.keluar == 0)) and (_root.fire.keluar == 0)) and (_root.ice.keluar == 0)) and (_root.andromeda.keluar == 0)) and (_root.pesawat.time1 >= 6)) {
keluar = 1;
_y = (random(250) + 40);
}
if (keluar == 1) {
_x = (_x - 7);
if (_x < -100) {
keluar = 0;
_x = xlama;
}
}
if (hitTest(_root.pesawat) && (_root.pesawat._currentframe == 1)) {
if (_root.sound1._currentframe == 1) {
_root.bonusSound.start();
} else {
_root.bonusSound.stop();
}
keluar = 0;
_x = xlama;
_root.armor = "Machine Gun";
if (_root.jenisSenjata < 8) {
_root.jenisSenjata = 3;
}
_root.bTime.gotoAndPlay("lima");
_root.pesawat.energi = 100;
}
}
Instance of Symbol 332 MovieClip "ball" in Frame 23
onClipEvent (load) {
keluar = 0;
xlama = _x;
}
onClipEvent (enterFrame) {
if ((((((((random(900) == 47) and (keluar == 0)) and (_root.machine.keluar == 0)) and (_root.nuke.keluar == 0)) and (_root.fire.keluar == 0)) and (_root.ice.keluar == 0)) and (_root.andromeda.keluar == 0)) and (_root.pesawat.time1 >= 6)) {
keluar = 1;
_y = (random(250) + 40);
}
if (keluar == 1) {
_x = (_x - 7);
if (_x < -100) {
keluar = 0;
_x = xlama;
}
}
if (hitTest(_root.pesawat) && (_root.pesawat._currentframe == 1)) {
if (_root.sound1._currentframe == 1) {
_root.bonusSound.start();
} else {
_root.bonusSound.stop();
}
keluar = 0;
_x = xlama;
_root.armor = "Ball Laser";
if (_root.jenisSenjata < 8) {
_root.jenisSenjata = 4;
}
_root.bTime.gotoAndPlay("lima");
_root.pesawat.energi = 100;
}
}
Instance of Symbol 334 MovieClip "fire" in Frame 23
onClipEvent (load) {
keluar = 0;
xlama = _x;
}
onClipEvent (enterFrame) {
if ((((((((random(900) == 47) and (keluar == 0)) and (_root.machine.keluar == 0)) and (_root.ball.keluar == 0)) and (_root.nuke.keluar == 0)) and (_root.ice.keluar == 0)) and (_root.andromeda.keluar == 0)) and (_root.pesawat.time1 >= 6)) {
keluar = 1;
_y = (random(250) + 40);
}
if (keluar == 1) {
_x = (_x - 7);
if (_x < -100) {
keluar = 0;
_x = xlama;
}
}
if (hitTest(_root.pesawat) && (_root.pesawat._currentframe == 1)) {
if (_root.sound1._currentframe == 1) {
_root.bonusSound.start();
} else {
_root.bonusSound.stop();
}
keluar = 0;
_x = xlama;
_root.armor = "Fire Laser";
if (_root.jenisSenjata < 8) {
_root.jenisSenjata = 5;
}
_root.bTime.gotoAndPlay("lima");
_root.pesawat.energi = 100;
}
}
Instance of Symbol 336 MovieClip "ice" in Frame 23
onClipEvent (load) {
keluar = 0;
xlama = _x;
}
onClipEvent (enterFrame) {
if ((((((((random(900) == 47) and (keluar == 0)) and (_root.machine.keluar == 0)) and (_root.ball.keluar == 0)) and (_root.fire.keluar == 0)) and (_root.nuke.keluar == 0)) and (_root.andromeda.keluar == 0)) and (_root.pesawat.time1 >= 6)) {
keluar = 1;
_y = (random(250) + 40);
}
if (keluar == 1) {
_x = (_x - 7);
if (_x < -100) {
keluar = 0;
_x = xlama;
}
}
if (hitTest(_root.pesawat) && (_root.pesawat._currentframe == 1)) {
if (_root.sound1._currentframe == 1) {
_root.bonusSound.start();
} else {
_root.bonusSound.stop();
}
keluar = 0;
_x = xlama;
_root.armor = "Ice Laser";
if (_root.jenisSenjata < 8) {
_root.jenisSenjata = 6;
}
_root.bTime.gotoAndPlay("lima");
_root.pesawat.energi = 100;
}
}
Instance of Symbol 338 MovieClip "andromeda" in Frame 23
onClipEvent (load) {
keluar = 0;
xlama = _x;
}
onClipEvent (enterFrame) {
if ((((((((random(900) == 47) and (keluar == 0)) and (_root.machine.keluar == 0)) and (_root.ball.keluar == 0)) and (_root.fire.keluar == 0)) and (_root.ice.keluar == 0)) and (_root.nuke.keluar == 0)) and (_root.pesawat.time1 >= 6)) {
keluar = 1;
_y = (random(250) + 40);
}
if (keluar == 1) {
_x = (_x - 7);
if (_x < -100) {
keluar = 0;
_x = xlama;
}
}
if (hitTest(_root.pesawat) && (_root.pesawat._currentframe == 1)) {
if (_root.sound1._currentframe == 1) {
_root.bonusSound.start();
} else {
_root.bonusSound.stop();
}
keluar = 0;
_x = xlama;
_root.armor = "Andromeda";
if (_root.jenisSenjata < 8) {
_root.jenisSenjata = 7;
}
_root.bTime.gotoAndPlay("lima");
_root.pesawat.energi = 100;
}
}
Instance of Symbol 340 MovieClip "speed" in Frame 23
onClipEvent (load) {
keluar = 0;
xlama = _x;
}
onClipEvent (enterFrame) {
if ((((((random(900) == 47) and (keluar == 0)) and (_root.point.keluar == 0)) and (_root.aid.keluar == 0)) and (_root.shield.keluar == 0)) and (_root.pesawat.time1 >= 6)) {
keluar = 1;
_y = (random(250) + 40);
}
if (keluar == 1) {
_x = (_x - 7);
if (_x < -100) {
keluar = 0;
_x = xlama;
}
}
if ((((hitTest(_root.pesawat) && (_root.pesawat._currentframe == 1)) and (_root.point.keluar == 0)) and (_root.aid.keluar == 0)) and (_root.shield.keluar == 0)) {
if (_root.sound1._currentframe == 1) {
_root.bonusSound.start();
} else {
_root.bonusSound.stop();
}
keluar = 0;
_x = xlama;
_root.bonus = "Speed";
_root.bTime2.gotoAndPlay("lima");
_root.bTime1.gotoAndStop("nol");
_root.bTime3.gotoAndStop("nol");
_root.bTime4.gotoAndStop("nol");
}
}
Instance of Symbol 342 MovieClip "aid" in Frame 23
onClipEvent (load) {
keluar = 0;
xlama = _x;
}
onClipEvent (enterFrame) {
if ((((((random(900) == 47) and (keluar == 0)) and (_root.point.keluar == 0)) and (_root.speed.keluar == 0)) and (_root.shield.keluar == 0)) and (_root.pesawat.time1 >= 6)) {
keluar = 1;
_y = (random(250) + 40);
}
if (keluar == 1) {
_x = (_x - 7);
if (_x < -100) {
keluar = 0;
_x = xlama;
}
}
if (hitTest(_root.pesawat) && (_root.pesawat._currentframe == 1)) {
if (_root.sound1._currentframe == 1) {
_root.bonusSound.start();
} else {
_root.bonusSound.stop();
}
keluar = 0;
if (_root.sehat <= 100) {
_root.sehat = _root.sehat + 1;
} else if (_root.sehat > 100) {
_root.sehat = 100;
}
if (_root.health.life._xscale < 100) {
_root.health.life._xscale = _root.health.life._xscale + 12;
}
_x = xlama;
_root.bonus = "repair";
_root.bTime4.gotoAndPlay("lima");
_root.bTime1.gotoAndStop("nol");
_root.bTime2.gotoAndStop("nol");
_root.bTime3.gotoAndStop("nol");
_root.pesawat.energi = 100;
}
}
Instance of Symbol 343 MovieClip "point" in Frame 23
onClipEvent (load) {
keluar = 0;
xlama = _x;
}
onClipEvent (enterFrame) {
if ((((((random(900) == 47) and (keluar == 0)) and (_root.speed.keluar == 0)) and (_root.aid.keluar == 0)) and (_root.shield.keluar == 0)) and (_root.pesawat.time1 >= 6)) {
keluar = 1;
_y = (random(250) + 40);
}
if (keluar == 1) {
_x = (_x - 7);
if (_x < -100) {
keluar = 0;
_x = xlama;
}
}
if (hitTest(_root.pesawat) && (_root.pesawat._currentframe == 1)) {
if (_root.sound1._currentframe == 1) {
_root.bonusSound.start();
} else {
_root.bonusSound.stop();
}
keluar = 0;
_x = xlama;
_root.bonus = "2xPoint";
_root.bTime3.gotoAndPlay("lima");
_root.bTime1.gotoAndStop("nol");
_root.bTime2.gotoAndStop("nol");
_root.bTime4.gotoAndStop("nol");
}
}
Instance of Symbol 355 MovieClip "pesawat" in Frame 23
onClipEvent (load) {
xlama = _x;
ylama = _y;
speed = 10;
energi = 100;
life = 100;
mati = 0;
time1 = 0;
times1 = 0;
time = 150;
times = 0;
time2 = 11;
times2 = 0;
jumlahSenjata = 0;
kedalamanSenjata = 100;
}
onClipEvent (enterFrame) {
times = times + 1;
times1 = times1 + 1;
times2 = times2 + 1;
if (times1 >= 12) {
times1 = 0;
time1 = time1 + 1;
}
if ((times >= 15) and (time1 > 6)) {
times = 0;
time = time - 1;
}
if (((times2 >= 15) and (time1 > 6)) and (time <= 10)) {
times2 = 0;
time2 = time2 - 1;
_root.akhir._x = 300;
_root.akhir._y = 150;
}
energi++;
if (energi >= 100) {
energi = 100;
}
xlama = _x;
ylama = _y;
if (Key.isDown(38) and (this._y > 40)) {
_y = (_y - speed);
}
if (Key.isDown(40) and (this._y < 300)) {
_y = (_y + speed);
}
if (Key.isDown(39)) {
_x = (_x + speed);
}
if (Key.isDown(37)) {
_x = (_x - speed);
}
if (_x > 500) {
_x = xlama;
}
if (_x < 50) {
_x = xlama;
}
if (Key.isDown(32)) {
if ((energi >= (5 + (2 * _root.jenisSenjata))) && (_currentframe == 1)) {
if (_root.sound1._currentframe == 1) {
_root.suaraLaser.start();
} else {
_root.suaraLaser.stop();
}
energi = energi - (5 + (2 * _root.jenisSenjata));
jumlahSenjata++;
duplicateMovieClip (_root.laser, "laser" + jumlahSenjata, kedalamanSenjata++);
if (kedalamanSenjata > 200) {
kedalamanSenjata = 100;
jumlahSenjata = 0;
}
}
}
}
Instance of Symbol 360 MovieClip "pesawatMusuh" in Frame 23
onClipEvent (load) {
keluar = 0;
xlama = _x;
}
onClipEvent (enterFrame) {
if (((random(30) == 15) and (keluar == 0)) and (_root.pesawat.time1 >= 6)) {
keluar = 1;
give = 1;
_y = (random(200) + 40);
}
if (keluar == 1) {
if ((_root.bTime2._currentframe == 1) or (_root.bTime2._currentframe == 120)) {
_x = (_x - (10 + random(10)));
} else {
_x = (_x - 7);
}
if ((random(45 - (_root.level * 2)) == 3) or ((random(10) == 2) and (_root.pesawat._x > this._x))) {
arah = 1;
}
if ((random(45 - (_root.level * 2)) == 4) or ((random(10) == 5) and (_root.pesawat._x < this._x))) {
arah = 2;
}
if (random(40) == 4) {
arah = 0;
}
if (arah == 1) {
_y = (_y + 3);
} else if (arah == 2) {
_y = (_y - 3);
}
}
if (_x < -150) {
keluar = 0;
_root.score--;
_x = xlama;
}
if (((_currentframe == 1) && (random(10) == 4)) && (this._x < 600)) {
if (_root.sound1._currentframe == 1) {
_root.suaraLaser1.start();
} else {
_root.suaraLaser1.stop();
}
_root.jumlahSenjataMusuh++;
if (_root.jumlahSenjataMusuh > 100) {
_root.jumlahSenjataMusuh = 0;
}
duplicateMovieClip (_root.gunMusuh, "gunMusuh" + _root.jumlahSenjataMusuh, _root.kedalamanSenjataMusuh++);
_root["gunMusuh" + _root.jumlahSenjataMusuh]._x = _x + 10;
_root["gunMusuh" + _root.jumlahSenjataMusuh]._y = _y + 20;
}
if (hitTest(_root.pesawat) and (this._currentframe == 1)) {
_root.health.life._xscale = _root.health.life._xscale - 10;
if (_root.sehat > 0) {
_root.sehat = _root.sehat - 2;
} else {
_root.sehat = 0;
}
_root.tembak._x = _root.pesawat._x;
_root.tembak._y = _root.pesawat._y;
this.gotoAndStop(2);
if (_root.sound1._currentframe == 1) {
_root.burn.start();
} else {
_root.burn.stop();
}
} else if (hitTest(_root.perisai)) {
if (_root.sound1._currentframe == 1) {
_root.burn.start();
} else {
_root.burn.stop();
}
this.gotoAndStop(2);
}
if (this.ledakan._currentframe == 4) {
keluar = 0;
_x = xlama;
this.gotoAndStop(1);
removeMovieClip(this);
}
}
Instance of Symbol 363 MovieClip "api" in Frame 23
onClipEvent (load) {
_visible = 0;
}
onClipEvent (enterFrame) {
if (_root.health.life._xscale < 40) {
_visible = 1;
_x = _root.pesawat._x;
_y = (_root.pesawat._y + 20);
} else {
_visible = 0;
}
}
Instance of Symbol 367 MovieClip "gunMusuh" in Frame 23
onClipEvent (enterFrame) {
if (_name != "gunMusuh") {
_x = (_x - 25);
if (_x < -100) {
removeMovieClip(this);
}
if (hitTest(_root.pesawat) && (_root.pesawat._currentframe == 1)) {
_root.health.life._xscale = _root.health.life._xscale - 7;
removeMovieClip(this);
_root.tembak._x = _root.pesawat._x;
_root.tembak._y = _root.pesawat._y;
if (_root.sound1._currentframe == 1) {
_root.bong.start();
} else {
_root.bong.stop();
}
if (_root.sehat > 0) {
_root.sehat = _root.sehat - 1;
} else if (_root.sehat < 0) {
_root.sehat = 0;
}
} else if (hitTest(_root.perisai)) {
removeMovieClip(this);
}
}
}
Instance of Symbol 380 MovieClip "laser" in Frame 23
onClipEvent (load) {
_x = (_root.pesawat._x + 35);
_y = (_root.pesawat._y + 6);
jenis.gotoAndStop(_root.jenisSenjata);
}
onClipEvent (enterFrame) {
if (_name != "laser") {
_x = (_x + _root.kecepatanSenjata);
if (_x > 650) {
removeMovieClip(this);
}
if ((hitTest(_root.pesawatMusuh) and (_root.pesawatMusuh._currentframe == 1)) and (_root.pesawatMusuh._x < 600)) {
_root.pesawatMusuh.gotoAndStop(2);
if (_root.sound1._currentframe == 1) {
_root.burn.start();
} else {
_root.burn.stop();
}
if ((_root.bTime3._currentframe == 1) or (_root.bTime3._currentframe == 120)) {
_root.score = _root.score + 10;
} else {
_root.score = _root.score + 30;
}
removeMovieClip(this);
}
if ((hitTest(_root.pesawatMusuh1) and (_root.pesawatMusuh1._currentframe == 1)) and (_root.pesawatMusuh1._x < 600)) {
_root.pesawatMusuh1.gotoAndStop(2);
if (_root.sound1._currentframe == 1) {
_root.burn.start();
} else {
_root.burn.stop();
}
if ((_root.bTime3._currentframe == 1) or (_root.bTime3._currentframe == 120)) {
_root.score = _root.score + 10;
} else {
_root.score = _root.score + 20;
}
removeMovieClip(this);
}
} else {
_y = 500;
}
}
Instance of Symbol 381 MovieClip "pesawatMusuh1" in Frame 23
onClipEvent (load) {
keluar = 0;
xlama = _x;
}
onClipEvent (enterFrame) {
if (((random(30) == 15) and (keluar == 0)) and (_root.pesawat.time1 >= 6)) {
keluar = 1;
give = 1;
_y = (random(250) + 40);
}
if (keluar == 1) {
if ((_root.bTime2._currentframe == 1) or (_root.bTime2._currentframe == 120)) {
_x = (_x - (10 + random(10)));
} else {
_x = (_x - 7);
}
if ((random(45 - (_root.level * 2)) == 3) or ((random(10) == 2) and (_root.pesawat._x > this._x))) {
arah = 1;
}
if ((random(45 - (_root.level * 2)) == 4) or ((random(10) == 5) and (_root.pesawat._x < this._x))) {
arah = 2;
}
if (random(40) == 4) {
arah = 0;
}
if (arah == 1) {
_y = (_y + 3);
} else if (arah == 2) {
_y = (_y - 3);
}
}
if (_x < -150) {
keluar = 0;
_root.score--;
_x = xlama;
}
if (((_currentframe == 1) && (random(10) == 4)) && (this._x < 600)) {
if (_root.sound1._currentframe == 1) {
_root.suaraLaser1.start();
} else {
_root.suaraLaser1.stop();
}
_root.jumlahSenjataMusuh++;
if (_root.jumlahSenjataMusuh > 100) {
_root.jumlahSenjataMusuh = 0;
}
duplicateMovieClip (_root.gunMusuh, "gunMusuh" + _root.jumlahSenjataMusuh, _root.kedalamanSenjataMusuh++);
_root["gunMusuh" + _root.jumlahSenjataMusuh]._x = _x + 10;
_root["gunMusuh" + _root.jumlahSenjataMusuh]._y = _y + 20;
}
if (hitTest(_root.pesawat) and (this._currentframe == 1)) {
_root.health.life._xscale = _root.health.life._xscale - 10;
if (_root.sehat > 0) {
_root.sehat = _root.sehat - 2;
} else {
_root.sehat = 0;
}
_root.tembak._x = _root.pesawat._x;
_root.tembak._y = _root.pesawat._y;
if (_root.sound1._currentframe == 1) {
_root.burn.start();
} else {
_root.burn.stop();
}
this.gotoAndStop(2);
} else if (hitTest(_root.perisai)) {
this.gotoAndStop(2);
if (_root.sound1._currentframe == 1) {
_root.burn.start();
} else {
_root.burn.stop();
}
}
if (this.ledakan._currentframe == 4) {
keluar = 0;
_x = xlama;
this.gotoAndStop(1);
removeMovieClip(this);
}
}
Instance of Symbol 327 MovieClip "perisai" in Frame 23
onClipEvent (load) {
_visible = 1;
_y = 550;
_x = 100;
}
onClipEvent (enterFrame) {
if ((_root.bTime1._currentframe == 1) or (_root.bTime1._currentframe == 120)) {
_visible = 1;
_y = 550;
_x = 100;
} else {
_visible = 1;
_x = _root.pesawat._x;
_y = (_root.pesawat._y + 20);
}
}
Instance of Symbol 416 MovieClip in Frame 23
onClipEvent (enterFrame) {
_xscale = _root.pesawat.energi;
}
Frame 24
_root.health._visible = 0;
_root.sound1._visible = 0;
_root.api.stop;
if (_root.sound1._currentframe == 1) {
_root.win.start();
} else {
_root.win.stop();
}
Instance of Symbol 441 MovieClip "arus" in Frame 24
onClipEvent (load) {
xawal = 700;
kecepatan = 7;
keluar = 0;
_visible = 0;
}
onClipEvent (enterFrame) {
if ((((((random(30) == 5) and (keluar == 0)) and (_root.arus1.keluar == 0)) and (_root.arus2.keluar == 0)) and (_root.arus3.keluar == 0)) and (_root.pesawat.time1 >= 6)) {
keluar = 1;
_visible = 1;
}
if (keluar == 1) {
_x = (_x - kecepatan);
if (_x < -200) {
_x = xawal;
keluar = 0;
_visible = 0;
}
}
}
Instance of Symbol 443 MovieClip "arus1" in Frame 24
onClipEvent (load) {
xawal = 700;
kecepatan = 7;
keluar = 0;
_visible = 0;
}
onClipEvent (enterFrame) {
if ((((((random(30) == 5) and (keluar == 0)) and (_root.arus.keluar == 0)) and (_root.arus2.keluar == 0)) and (_root.arus3.keluar == 0)) and (_root.pesawat.time1 >= 6)) {
keluar = 1;
_visible = 1;
}
if (keluar == 1) {
_x = (_x - kecepatan);
if (_x < -200) {
_x = xawal;
keluar = 0;
_visible = 0;
}
}
}
Instance of Symbol 445 MovieClip "arus2" in Frame 24
onClipEvent (load) {
xawal = 700;
kecepatan = 7;
keluar = 0;
_visible = 0;
}
onClipEvent (enterFrame) {
if ((((((random(30) == 5) and (keluar == 0)) and (_root.arus1.keluar == 0)) and (_root.arus.keluar == 0)) and (_root.arus3.keluar == 0)) and (_root.pesawat.time1 >= 6)) {
keluar = 1;
_visible = 1;
}
if (keluar == 1) {
_x = (_x - kecepatan);
if (_x < -200) {
_x = xawal;
keluar = 0;
_visible = 0;
}
}
}
Instance of Symbol 447 MovieClip "arus3" in Frame 24
onClipEvent (load) {
xawal = 700;
kecepatan = 7;
keluar = 0;
_visible = 0;
}
onClipEvent (enterFrame) {
if ((((((random(30) == 5) and (keluar == 0)) and (_root.arus1.keluar == 0)) and (_root.arus2.keluar == 0)) and (_root.arus.keluar == 0)) and (_root.pesawat.time1 >= 6)) {
keluar = 1;
_visible = 1;
}
if (keluar == 1) {
_x = (_x - kecepatan);
if (_x < -200) {
_x = xawal;
keluar = 0;
_visible = 0;
}
}
}
Instance of Symbol 449 MovieClip in Frame 24
onClipEvent (load) {
keluar = 0;
xlama = _x;
}
onClipEvent (enterFrame) {
if (((random(70) == 15) and (keluar == 0)) and (_root.pesawat.time1 >= 6)) {
keluar = 1;
_y = (random(150) + 40);
}
if (keluar == 1) {
_x = (_x - 7);
if (_x < -100) {
keluar = 0;
_x = xlama;
}
}
}
Instance of Symbol 451 MovieClip in Frame 24
onClipEvent (load) {
keluar = 0;
xlama = _x;
}
onClipEvent (enterFrame) {
if (((random(70) == 15) and (keluar == 0)) and (_root.pesawat.time1 >= 6)) {
keluar = 1;
_y = (random(150) + 40);
}
if (keluar == 1) {
_x = (_x - 7);
if (_x < -100) {
keluar = 0;
_x = xlama;
}
}
}
Instance of Symbol 453 MovieClip in Frame 24
onClipEvent (load) {
keluar = 0;
xlama = _x;
}
onClipEvent (enterFrame) {
if (((random(70) == 15) and (keluar == 0)) and (_root.pesawat.time1 >= 6)) {
keluar = 1;
_y = (random(150) + 40);
}
if (keluar == 1) {
_x = (_x - 7);
if (_x < -100) {
keluar = 0;
_x = xlama;
}
}
}
Instance of Symbol 455 MovieClip in Frame 24
onClipEvent (load) {
keluar = 0;
xlama = _x;
}
onClipEvent (enterFrame) {
if (((random(70) == 15) and (keluar == 0)) and (_root.pesawat.time1 >= 6)) {
keluar = 1;
_y = (random(150) + 40);
}
if (keluar == 1) {
_x = (_x - 7);
if (_x < -100) {
keluar = 0;
_x = xlama;
}
}
}
Frame 25
_root.health._visible = 0;
_root.sound1._visible = 0;
if (_root.stat2 == 1) {
repair1._visible = 0;
repair2._visible = 0;
repair3._visible = 0;
}
Frame 26
_root.health._visible = 0;
_root.sound1._visible = 0;
if (_root.stat1 == 1) {
lLevel._visible = 0;
} else if (_root.stat1 == 2) {
autobot._visible = 0;
} else if (_root.stat1 == 3) {
low._visible = 0;
} else if (_root.stat1 == 4) {
power._visible = 0;
}
Frame 27
_root.health._visible = 0;
_root.sound1._visible = 0;
if (_root.stat == 1) {
wmachine._visible = 0;
wnuke._visible = 0;
wball._visible = 0;
wfire._visible = 0;
wice._visible = 0;
wandro._visible = 0;
}
Frame 28
stop();
iden = 2;
_root.sound1._visible = 1;
_root.health._visible = 1;
jumlahSenjataMusuh = 0;
armor = "Laser";
armor1 = "Empty";
jenisSenjata = 1;
kecepatanSenjata = 100;
level = 1;
bonus = "Empty";
kedalamanSenjataMusuh = 200;
_root.onEnterFrame = function () {
if ((_root.bTime._currentframe == 1) and ((((((_root.jenisSenjata == 2) or (_root.jenisSenjata == 3)) or (_root.jenisSenjata == 4)) or (_root.jenisSenjata == 5)) or (_root.jenisSenjata == 6)) or (_root.jenisSenjata == 7))) {
_root.jenisSenjata = 1;
_root.armor = "Laser";
_root.perisai._x == 100;
_root.perisai._y == 550;
}
if ((((_root.bTime1._currentframe == 1) and (_root.bTime2._currentframe == 1)) and (_root.bTime3._currentframe == 1)) and (_root.bTime4._currentframe == 1)) {
_root.bonus = "Empty";
}
if (_root.health.life._xscale < 0) {
_root.pesawat.gotoAndStop("2");
_root.sehat = _root.sehat - 5;
unloadMovie ("api");
}
if (Key.isDown(16)) {
if (sp == 0) {
_root.jenisSenjata = 1;
} else if (sp == 1) {
if (_root.jenisSenjata < 8) {
_root.jenisSenjata = 3;
}
} else if (sp == 2) {
if (_root.jenisSenjata < 8) {
_root.jenisSenjata = 2;
}
} else if (sp == 3) {
if (_root.jenisSenjata < 8) {
_root.jenisSenjata = 4;
}
} else if (sp == 4) {
if (_root.jenisSenjata < 8) {
_root.jenisSenjata = 5;
}
} else if (sp == 5) {
if (_root.jenisSenjata < 8) {
_root.jenisSenjata = 6;
}
} else if (sp == 6) {
if (_root.jenisSenjata < 8) {
_root.jenisSenjata = 7;
}
}
}
if ((_root.health.life._xscale < 100) and (_root.auto == 1)) {
_root.health.life._xscale = _root.health.life._xscale + 0.05;
}
if (((_root.kesempatan > 0) and (_root.health.life._xscale < 0)) and (_root.pesawat.ledakan._currentframe == 4)) {
_root.pesawat.gotoAndStop(1);
_root.health.life._xscale = _root.health.life._xscale + 60;
_root.bonus = "Shield";
_root.bTime1.gotoAndPlay("lima");
_root.perisai._visible = 1;
_root.perisai._x = _root.pesawat._x;
_root.perisai._y = _root.pesawat._y;
} else if (((_root.kesempatan == 0) and (_root.health.life._xscale < 0)) and (_root.pesawat.ledakan._currentframe == 4)) {
gotoAndStop ("gameOver");
_root.auto = 0;
_root.shipLow = 0;
_root.gunPower = 0;
_root.sp = 0;
_root.stat = 0;
_root.stat1 = 0;
_root.stat2 = 0;
}
if ((_root.gunPower == 1) and (_root.pesawat.energi < 15)) {
_root.pesawat.energi = 15;
}
if (_root.jenisSenjata == 3) {
_root.pesawat.energi = 100;
}
if ((_root.pesawat.time == 0) and (_root.kesempatan > 0)) {
_root.gotoAndStop("stage3");
_root.auto = 0;
_root.shipLow = 0;
_root.gunPower = 0;
_root.sp = 0;
_root.stat = 0;
_root.stat1 = 0;
_root.stat2 = 0;
}
};
Instance of Symbol 441 MovieClip "arus" in Frame 28
onClipEvent (load) {
xawal = 700;
kecepatan = 7;
keluar = 0;
_visible = 0;
}
onClipEvent (enterFrame) {
if ((((((random(30) == 5) and (keluar == 0)) and (_root.arus1.keluar == 0)) and (_root.arus2.keluar == 0)) and (_root.arus3.keluar == 0)) and (_root.pesawat.time1 >= 6)) {
keluar = 1;
_visible = 1;
}
if (keluar == 1) {
_x = (_x - kecepatan);
if (_x < -200) {
_x = xawal;
keluar = 0;
_visible = 0;
}
}
}
Instance of Symbol 443 MovieClip "arus1" in Frame 28
onClipEvent (load) {
xawal = 700;
kecepatan = 7;
keluar = 0;
_visible = 0;
}
onClipEvent (enterFrame) {
if ((((((random(30) == 5) and (keluar == 0)) and (_root.arus.keluar == 0)) and (_root.arus2.keluar == 0)) and (_root.arus3.keluar == 0)) and (_root.pesawat.time1 >= 6)) {
keluar = 1;
_visible = 1;
}
if (keluar == 1) {
_x = (_x - kecepatan);
if (_x < -200) {
_x = xawal;
keluar = 0;
_visible = 0;
}
}
}
Instance of Symbol 445 MovieClip "arus2" in Frame 28
onClipEvent (load) {
xawal = 700;
kecepatan = 7;
keluar = 0;
_visible = 0;
}
onClipEvent (enterFrame) {
if ((((((random(30) == 5) and (keluar == 0)) and (_root.arus1.keluar == 0)) and (_root.arus.keluar == 0)) and (_root.arus3.keluar == 0)) and (_root.pesawat.time1 >= 6)) {
keluar = 1;
_visible = 1;
}
if (keluar == 1) {
_x = (_x - kecepatan);
if (_x < -200) {
_x = xawal;
keluar = 0;
_visible = 0;
}
}
}
Instance of Symbol 447 MovieClip "arus3" in Frame 28
onClipEvent (load) {
xawal = 700;
kecepatan = 7;
keluar = 0;
_visible = 0;
}
onClipEvent (enterFrame) {
if ((((((random(30) == 5) and (keluar == 0)) and (_root.arus1.keluar == 0)) and (_root.arus2.keluar == 0)) and (_root.arus.keluar == 0)) and (_root.pesawat.time1 >= 6)) {
keluar = 1;
_visible = 1;
}
if (keluar == 1) {
_x = (_x - kecepatan);
if (_x < -200) {
_x = xawal;
keluar = 0;
_visible = 0;
}
}
}
Instance of Symbol 449 MovieClip in Frame 28
onClipEvent (load) {
keluar = 0;
xlama = _x;
}
onClipEvent (enterFrame) {
if (((random(70) == 15) and (keluar == 0)) and (_root.pesawat.time1 >= 6)) {
keluar = 1;
_y = (random(150) + 40);
}
if (keluar == 1) {
_x = (_x - 7);
if (_x < -100) {
keluar = 0;
_x = xlama;
}
}
}
Instance of Symbol 451 MovieClip in Frame 28
onClipEvent (load) {
keluar = 0;
xlama = _x;
}
onClipEvent (enterFrame) {
if (((random(70) == 15) and (keluar == 0)) and (_root.pesawat.time1 >= 6)) {
keluar = 1;
_y = (random(150) + 40);
}
if (keluar == 1) {
_x = (_x - 7);
if (_x < -100) {
keluar = 0;
_x = xlama;
}
}
}
Instance of Symbol 453 MovieClip in Frame 28
onClipEvent (load) {
keluar = 0;
xlama = _x;
}
onClipEvent (enterFrame) {
if (((random(70) == 15) and (keluar == 0)) and (_root.pesawat.time1 >= 6)) {
keluar = 1;
_y = (random(150) + 40);
}
if (keluar == 1) {
_x = (_x - 7);
if (_x < -100) {
keluar = 0;
_x = xlama;
}
}
}
Instance of Symbol 455 MovieClip in Frame 28
onClipEvent (load) {
keluar = 0;
xlama = _x;
}
onClipEvent (enterFrame) {
if (((random(70) == 15) and (keluar == 0)) and (_root.pesawat.time1 >= 6)) {
keluar = 1;
_y = (random(150) + 40);
}
if (keluar == 1) {
_x = (_x - 7);
if (_x < -150) {
keluar = 0;
_x = xlama;
}
}
}
Instance of Symbol 321 MovieClip "nuke" in Frame 28
onClipEvent (load) {
keluar = 0;
xlama = _x;
}
onClipEvent (enterFrame) {
if ((((((((random(900) == 47) and (keluar == 0)) and (_root.machine.keluar == 0)) and (_root.ball.keluar == 0)) and (_root.fire.keluar == 0)) and (_root.ice.keluar == 0)) and (_root.andromeda.keluar == 0)) and (_root.pesawat.time1 >= 6)) {
keluar = 1;
_y = (random(250) + 40);
}
if (keluar == 1) {
_x = (_x - 7);
if (_x < -100) {
keluar = 0;
_x = xlama;
}
}
if (hitTest(_root.pesawat) && (_root.pesawat._currentframe == 1)) {
if (_root.sound1._currentframe == 1) {
_root.bonusSound.start();
} else {
_root.bonusSound.stop();
}
keluar = 0;
_x = xlama;
_root.armor = "Nuke";
if (_root.jenisSenjata < 8) {
_root.jenisSenjata = 2;
}
_root.bTime.gotoAndPlay("lima");
_root.pesawat.energi = 100;
}
}
Instance of Symbol 328 MovieClip "shield" in Frame 28
onClipEvent (load) {
keluar = 0;
xlama = _x;
}
onClipEvent (enterFrame) {
if ((((((random(900) == 47) and (keluar == 0)) and (_root.point.keluar == 0)) and (_root.aid.keluar == 0)) and (_root.speed.keluar == 0)) and (_root.pesawat.time1 >= 6)) {
keluar = 1;
_y = (random(250) + 40);
}
if (keluar == 1) {
_x = (_x - 7);
if (_x < -100) {
keluar = 0;
_x = xlama;
}
}
if (hitTest(_root.pesawat) && (_root.pesawat._currentframe == 1)) {
if (_root.sound1._currentframe == 1) {
_root.bonusSound.start();
} else {
_root.bonusSound.stop();
}
_root.bonus = "Shield";
keluar = 0;
_x = xlama;
_root.bTime1.gotoAndPlay("lima");
_root.bTime2.gotoAndStop("nol");
_root.bTime3.gotoAndStop("nol");
_root.bTime4.gotoAndStop("nol");
_root.perisai._visible = 1;
_root.perisai._x = _root.pesawat._x;
_root.perisai._y = _root.pesawat._y;
}
}
Instance of Symbol 330 MovieClip "machine" in Frame 28
onClipEvent (load) {
keluar = 0;
xlama = _x;
}
onClipEvent (enterFrame) {
if ((((((((random(900) == 47) and (keluar == 0)) and (_root.nuke.keluar == 0)) and (_root.ball.keluar == 0)) and (_root.fire.keluar == 0)) and (_root.ice.keluar == 0)) and (_root.andromeda.keluar == 0)) and (_root.pesawat.time1 >= 6)) {
keluar = 1;
_y = (random(250) + 40);
}
if (keluar == 1) {
_x = (_x - 7);
if (_x < -100) {
keluar = 0;
_x = xlama;
}
}
if (hitTest(_root.pesawat) && (_root.pesawat._currentframe == 1)) {
if (_root.sound1._currentframe == 1) {
_root.bonusSound.start();
} else {
_root.bonusSound.stop();
}
keluar = 0;
_x = xlama;
_root.armor = "Machine Gun";
if (_root.jenisSenjata < 8) {
_root.jenisSenjata = 3;
}
_root.bTime.gotoAndPlay("lima");
_root.pesawat.energi = 100;
}
}
Instance of Symbol 332 MovieClip "ball" in Frame 28
onClipEvent (load) {
keluar = 0;
xlama = _x;
}
onClipEvent (enterFrame) {
if ((((((((random(900) == 47) and (keluar == 0)) and (_root.machine.keluar == 0)) and (_root.nuke.keluar == 0)) and (_root.fire.keluar == 0)) and (_root.ice.keluar == 0)) and (_root.andromeda.keluar == 0)) and (_root.pesawat.time1 >= 6)) {
keluar = 1;
_y = (random(250) + 40);
}
if (keluar == 1) {
_x = (_x - 7);
if (_x < -100) {
keluar = 0;
_x = xlama;
}
}
if (hitTest(_root.pesawat) && (_root.pesawat._currentframe == 1)) {
if (_root.sound1._currentframe == 1) {
_root.bonusSound.start();
} else {
_root.bonusSound.stop();
}
keluar = 0;
_x = xlama;
_root.armor = "Ball Laser";
if (_root.jenisSenjata < 8) {
_root.jenisSenjata = 4;
}
_root.bTime.gotoAndPlay("lima");
_root.pesawat.energi = 100;
}
}
Instance of Symbol 334 MovieClip "fire" in Frame 28
onClipEvent (load) {
keluar = 0;
xlama = _x;
}
onClipEvent (enterFrame) {
if ((((((((random(900) == 47) and (keluar == 0)) and (_root.machine.keluar == 0)) and (_root.ball.keluar == 0)) and (_root.nuke.keluar == 0)) and (_root.ice.keluar == 0)) and (_root.andromeda.keluar == 0)) and (_root.pesawat.time1 >= 6)) {
keluar = 1;
_y = (random(250) + 40);
}
if (keluar == 1) {
_x = (_x - 7);
if (_x < -100) {
keluar = 0;
_x = xlama;
}
}
if (hitTest(_root.pesawat) && (_root.pesawat._currentframe == 1)) {
if (_root.sound1._currentframe == 1) {
_root.bonusSound.start();
} else {
_root.bonusSound.stop();
}
keluar = 0;
_x = xlama;
_root.armor = "Fire Laser";
if (_root.jenisSenjata < 8) {
_root.jenisSenjata = 5;
}
_root.bTime.gotoAndPlay("lima");
_root.pesawat.energi = 100;
}
}
Instance of Symbol 336 MovieClip "ice" in Frame 28
onClipEvent (load) {
keluar = 0;
xlama = _x;
}
onClipEvent (enterFrame) {
if ((((((((random(900) == 47) and (keluar == 0)) and (_root.machine.keluar == 0)) and (_root.ball.keluar == 0)) and (_root.fire.keluar == 0)) and (_root.nuke.keluar == 0)) and (_root.andromeda.keluar == 0)) and (_root.pesawat.time1 >= 6)) {
keluar = 1;
_y = (random(250) + 40);
}
if (keluar == 1) {
_x = (_x - 7);
if (_x < -100) {
keluar = 0;
_x = xlama;
}
}
if (hitTest(_root.pesawat) && (_root.pesawat._currentframe == 1)) {
if (_root.sound1._currentframe == 1) {
_root.bonusSound.start();
} else {
_root.bonusSound.stop();
}
keluar = 0;
_x = xlama;
_root.armor = "Ice Laser";
if (_root.jenisSenjata < 8) {
_root.jenisSenjata = 6;
}
_root.bTime.gotoAndPlay("lima");
_root.pesawat.energi = 100;
}
}
Instance of Symbol 338 MovieClip "andromeda" in Frame 28
onClipEvent (load) {
keluar = 0;
xlama = _x;
}
onClipEvent (enterFrame) {
if ((((((((random(900) == 47) and (keluar == 0)) and (_root.machine.keluar == 0)) and (_root.ball.keluar == 0)) and (_root.fire.keluar == 0)) and (_root.ice.keluar == 0)) and (_root.nuke.keluar == 0)) and (_root.pesawat.time1 >= 6)) {
keluar = 1;
_y = (random(250) + 40);
}
if (keluar == 1) {
_x = (_x - 7);
if (_x < -100) {
keluar = 0;
_x = xlama;
}
}
if (hitTest(_root.pesawat) && (_root.pesawat._currentframe == 1)) {
if (_root.sound1._currentframe == 1) {
_root.bonusSound.start();
} else {
_root.bonusSound.stop();
}
keluar = 0;
_x = xlama;
_root.armor = "Andromeda";
if (_root.jenisSenjata < 8) {
_root.jenisSenjata = 7;
}
_root.bTime.gotoAndPlay("lima");
_root.pesawat.energi = 100;
}
}
Instance of Symbol 340 MovieClip "speed" in Frame 28
onClipEvent (load) {
keluar = 0;
xlama = _x;
}
onClipEvent (enterFrame) {
if ((((((random(900) == 47) and (keluar == 0)) and (_root.point.keluar == 0)) and (_root.aid.keluar == 0)) and (_root.shield.keluar == 0)) and (_root.pesawat.time1 >= 6)) {
keluar = 1;
_y = (random(250) + 40);
}
if (keluar == 1) {
_x = (_x - 7);
if (_x < -100) {
keluar = 0;
_x = xlama;
}
}
if ((((hitTest(_root.pesawat) && (_root.pesawat._currentframe == 1)) and (_root.point.keluar == 0)) and (_root.aid.keluar == 0)) and (_root.shield.keluar == 0)) {
if (_root.sound1._currentframe == 1) {
_root.bonusSound.start();
} else {
_root.bonusSound.stop();
}
keluar = 0;
_x = xlama;
_root.bonus = "Speed";
_root.bTime2.gotoAndPlay("lima");
_root.bTime1.gotoAndStop("nol");
_root.bTime3.gotoAndStop("nol");
_root.bTime4.gotoAndStop("nol");
}
}
Instance of Symbol 342 MovieClip "aid" in Frame 28
onClipEvent (load) {
keluar = 0;
xlama = _x;
}
onClipEvent (enterFrame) {
if ((((((random(900) == 47) and (keluar == 0)) and (_root.point.keluar == 0)) and (_root.speed.keluar == 0)) and (_root.shield.keluar == 0)) and (_root.pesawat.time1 >= 6)) {
keluar = 1;
_y = (random(250) + 40);
}
if (keluar == 1) {
_x = (_x - 7);
if (_x < -100) {
keluar = 0;
_x = xlama;
}
}
if (hitTest(_root.pesawat) && (_root.pesawat._currentframe == 1)) {
if (_root.sound1._currentframe == 1) {
_root.bonusSound.start();
} else {
_root.bonusSound.stop();
}
if (_root.sehat <= 100) {
_root.sehat = _root.sehat + 1;
} else if (_root.sehat > 100) {
_root.sehat = 100;
}
keluar = 0;
if (_root.health.life._xscale < 100) {
_root.health.life._xscale = _root.health.life._xscale + 12;
}
_x = xlama;
_root.bonus = "repair";
_root.bTime4.gotoAndPlay("lima");
_root.bTime1.gotoAndStop("nol");
_root.bTime2.gotoAndStop("nol");
_root.bTime3.gotoAndStop("nol");
_root.pesawat.energi = 100;
}
}
Instance of Symbol 343 MovieClip "point" in Frame 28
onClipEvent (load) {
keluar = 0;
xlama = _x;
}
onClipEvent (enterFrame) {
if ((((((random(900) == 47) and (keluar == 0)) and (_root.speed.keluar == 0)) and (_root.aid.keluar == 0)) and (_root.shield.keluar == 0)) and (_root.pesawat.time1 >= 6)) {
keluar = 1;
_y = (random(250) + 40);
}
if (keluar == 1) {
_x = (_x - 7);
if (_x < -100) {
keluar = 0;
_x = xlama;
}
}
if (hitTest(_root.pesawat) && (_root.pesawat._currentframe == 1)) {
if (_root.sound1._currentframe == 1) {
_root.bonusSound.start();
} else {
_root.bonusSound.stop();
}
keluar = 0;
_x = xlama;
_root.bonus = "2xPoint";
_root.bTime3.gotoAndPlay("lima");
_root.bTime1.gotoAndStop("nol");
_root.bTime2.gotoAndStop("nol");
_root.bTime4.gotoAndStop("nol");
}
}
Instance of Symbol 355 MovieClip "pesawat" in Frame 28
onClipEvent (load) {
xlama = _x;
ylama = _y;
speed = 10;
energi = 100;
life = 100;
mati = 0;
time1 = 0;
times1 = 0;
time = 150;
times = 0;
time2 = 11;
times2 = 0;
jumlahSenjata = 0;
kedalamanSenjata = 100;
}
onClipEvent (enterFrame) {
times = times + 1;
times1 = times1 + 1;
times2 = times2 + 1;
if (times1 >= 12) {
times1 = 0;
time1 = time1 + 1;
}
if ((times >= 15) and (time1 > 6)) {
times = 0;
time = time - 1;
}
if (((times2 >= 15) and (time1 > 6)) and (time <= 10)) {
times2 = 0;
time2 = time2 - 1;
_root.akhir._x = 300;
_root.akhir._y = 150;
}
energi++;
if (energi >= 100) {
energi = 100;
}
xlama = _x;
ylama = _y;
if (Key.isDown(38) and (this._y > 40)) {
_y = (_y - speed);
}
if (Key.isDown(40) and (this._y < 300)) {
_y = (_y + speed);
}
if (Key.isDown(39)) {
_x = (_x + speed);
}
if (Key.isDown(37)) {
_x = (_x - speed);
}
if (_x > 500) {
_x = xlama;
}
if (_x < 50) {
_x = xlama;
}
if (Key.isDown(32)) {
if ((energi >= (5 + (2 * _root.jenisSenjata))) && (_currentframe == 1)) {
if (_root.sound1._currentframe == 1) {
_root.suaraLaser.start();
} else {
_root.suaraLaser.stop();
}
energi = energi - (5 + (2 * _root.jenisSenjata));
jumlahSenjata++;
duplicateMovieClip (_root.laser, "laser" + jumlahSenjata, kedalamanSenjata++);
if (kedalamanSenjata > 200) {
kedalamanSenjata = 100;
jumlahSenjata = 0;
}
}
}
}
Instance of Symbol 363 MovieClip "api" in Frame 28
onClipEvent (load) {
_visible = 0;
}
onClipEvent (enterFrame) {
if (_root.health.life._xscale < 40) {
_visible = 1;
_x = _root.pesawat._x;
_y = (_root.pesawat._y + 20);
} else {
_visible = 0;
}
}
Instance of Symbol 559 MovieClip "gunMusuh" in Frame 28
onClipEvent (enterFrame) {
if (_name != "gunMusuh") {
_x = (_x - 25);
if (_x < -100) {
removeMovieClip(this);
}
if (hitTest(_root.pesawat) && (_root.pesawat._currentframe == 1)) {
if (shipLow >= 1) {
_root.health.life._xscale = _root.health.life._xscale - 7;
if (_root.sehat > 0) {
_root.sehat = _root.sehat - 1;
} else if (_root.sehat < 0) {
_root.sehat = 0;
}
} else if (shipLow <= 0) {
_root.health.life._xscale = _root.health.life._xscale - 10;
if (_root.sehat > 0) {
_root.sehat = _root.sehat - 1;
} else {
_root.sehat = 0;
}
}
removeMovieClip(this);
_root.tembak._x = _root.pesawat._x;
_root.tembak._y = _root.pesawat._y;
if (_root.sound1._currentframe == 1) {
_root.bong.start();
} else {
_root.bong.stop();
}
} else if (hitTest(_root.perisai)) {
removeMovieClip(this);
}
}
}
Instance of Symbol 380 MovieClip "laser" in Frame 28
onClipEvent (load) {
_x = (_root.pesawat._x + 35);
_y = (_root.pesawat._y + 6);
jenis.gotoAndStop(_root.jenisSenjata);
}
onClipEvent (enterFrame) {
if (_name != "laser") {
_x = (_x + _root.kecepatanSenjata);
if (_x > 650) {
removeMovieClip(this);
}
if ((hitTest(_root.pesawatMusuh) and (_root.pesawatMusuh._currentframe == 1)) and (_root.pesawatMusuh._x < 600)) {
_root.tembak1._x = _root.pesawatMusuh._x;
_root.tembak1._y = _root.pesawatMusuh._y;
if (_root.sound1._currentframe == 1) {
_root.bong.start();
} else {
_root.bong.stop();
}
if (_root.laserLevel >= 2) {
_root.enem1.xlife._xscale = _root.enem1.xlife._xscale - 50;
} else if (_root.laserLevel < 2) {
_root.enem1.xlife._xscale = _root.enem1.xlife._xscale - 30;
}
if (_root.enem1.xlife._xscale < 0) {
_root.pesawatMusuh.gotoAndStop(2);
if (_root.sound1._currentframe == 1) {
_root.burn.start();
} else {
_root.burn.stop();
}
}
removeMovieClip(this);
}
if ((hitTest(_root.pesawatMusuh1) and (_root.pesawatMusuh1._currentframe == 1)) and (_root.pesawatMusuh1._x < 600)) {
_root.tembak1._x = _root.pesawatMusuh1._x;
_root.tembak1._y = _root.pesawatMusuh1._y;
if (_root.sound1._currentframe == 1) {
_root.bong.start();
} else {
_root.bong.stop();
}
if (_root.laserLevel >= 2) {
_root.enem.xlife._xscale = _root.enem.xlife._xscale - 50;
} else if (_root.laserLevel < 2) {
_root.enem.xlife._xscale = _root.enem.xlife._xscale - 30;
}
if (_root.enem.xlife._xscale < 0) {
_root.pesawatMusuh1.gotoAndStop(2);
if (_root.sound1._currentframe == 1) {
_root.burn.start();
} else {
_root.burn.stop();
}
}
removeMovieClip(this);
}
} else {
_y = 500;
}
}
Instance of Symbol 327 MovieClip "perisai" in Frame 28
onClipEvent (load) {
_visible = 1;
_y = 550;
_x = 100;
}
onClipEvent (enterFrame) {
if ((_root.bTime1._currentframe == 1) or (_root.bTime1._currentframe == 120)) {
_visible = 1;
_y = 550;
_x = 100;
} else {
_visible = 1;
_x = _root.pesawat._x;
_y = (_root.pesawat._y + 20);
}
}
Instance of Symbol 564 MovieClip "pesawatMusuh1" in Frame 28
onClipEvent (load) {
keluar = 0;
xlama = _x;
}
onClipEvent (enterFrame) {
if (((random(25) == 15) and (keluar == 0)) and (_root.pesawat.time1 >= 6)) {
keluar = 1;
give = 1;
_y = (random(250) + 40);
}
if (keluar == 1) {
if ((_root.bTime2._currentframe == 1) or (_root.bTime2._currentframe == 120)) {
_x = (_x - (10 + random(10)));
} else {
_x = (_x - 7);
}
if ((random(45 - (_root.level * 2)) == 3) or ((random(10) == 2) and (_root.pesawat._x > this._x))) {
arah = 1;
}
if ((random(45 - (_root.level * 2)) == 4) or ((random(10) == 5) and (_root.pesawat._x < this._x))) {
arah = 2;
}
if (random(40) == 4) {
arah = 0;
}
if (arah == 1) {
_y = (_y + 4);
} else if (arah == 2) {
_y = (_y - 4);
}
}
if (_x < -150) {
keluar = 0;
_root.score--;
_x = xlama;
}
if (((_currentframe == 1) && (random(8) == 4)) && (this._x < 600)) {
if (_root.sound1._currentframe == 1) {
_root.suaraLaser1.start();
} else {
_root.suaraLaser1.stop();
}
_root.jumlahSenjataMusuh++;
if (_root.jumlahSenjataMusuh > 100) {
_root.jumlahSenjataMusuh = 0;
}
duplicateMovieClip (_root.gunMusuh, "gunMusuh" + _root.jumlahSenjataMusuh, _root.kedalamanSenjataMusuh++);
_root["gunMusuh" + _root.jumlahSenjataMusuh]._x = _x + 10;
_root["gunMusuh" + _root.jumlahSenjataMusuh]._y = _y + 20;
}
if (hitTest(_root.pesawat) and (this._currentframe == 1)) {
_root.health.life._xscale = _root.health.life._xscale - 20;
if (_root.sehat > 0) {
_root.sehat = _root.sehat - 2;
} else {
_root.sehat = 0;
}
_root.tembak._x = _root.pesawat._x;
_root.tembak._y = _root.pesawat._y;
this.gotoAndStop(2);
if (_root.sound1._currentframe == 1) {
_root.burn.start();
} else {
_root.burn.stop();
}
} else if (hitTest(_root.perisai)) {
this.gotoAndStop(2);
if (_root.sound1._currentframe == 1) {
_root.burn.start();
} else {
_root.burn.stop();
}
}
if (this.ledakan._currentframe == 4) {
keluar = 0;
_x = xlama;
if ((_root.bTime3._currentframe == 1) or (_root.bTime3._currentframe == 120)) {
_root.score = _root.score + 10;
} else {
_root.score = _root.score + 20;
}
this.gotoAndStop(1);
removeMovieClip(this);
}
}
Instance of Symbol 567 MovieClip "enem" in Frame 28
onClipEvent (enterFrame) {
if (this.xlife._xscale >= 0) {
_x = (_root.pesawatMusuh1._x - 20);
_y = (_root.pesawatMusuh1._y - 20);
} else {
_x = 650;
_y = 150;
}
if (_root.enem._x > 600) {
if ((this.xlife._xscale < 0) and (this.xlife._xscale < 100)) {
_root.enem.xlife._xscale = 100;
} else if ((this.xlife._xscale >= 0) and (this.xlife._xscale < 100)) {
_root.enem.xlife._xscale = 100;
}
}
}
Instance of Symbol 564 MovieClip "pesawatMusuh" in Frame 28
onClipEvent (load) {
keluar = 0;
xlama = _x;
}
onClipEvent (enterFrame) {
if (((random(25) == 15) and (keluar == 0)) and (_root.pesawat.time1 >= 6)) {
keluar = 1;
give = 1;
_y = (random(250) + 40);
}
if (keluar == 1) {
if ((_root.bTime2._currentframe == 1) or (_root.bTime2._currentframe == 120)) {
_x = (_x - (10 + random(10)));
} else {
_x = (_x - 7);
}
if ((random(45 - (_root.level * 2)) == 3) or ((random(10) == 2) and (_root.pesawat._x > this._x))) {
arah = 1;
}
if ((random(45 - (_root.level * 2)) == 4) or ((random(10) == 5) and (_root.pesawat._x < this._x))) {
arah = 2;
}
if (random(40) == 4) {
arah = 0;
}
if (arah == 1) {
_y = (_y + 4);
} else if (arah == 2) {
_y = (_y - 4);
}
}
if (_x < -150) {
keluar = 0;
_root.score--;
_x = xlama;
}
if (((_currentframe == 1) && (random(8) == 4)) && (this._x < 600)) {
if (_root.sound1._currentframe == 1) {
_root.suaraLaser1.start();
} else {
_root.suaraLaser1.stop();
}
_root.jumlahSenjataMusuh++;
if (_root.jumlahSenjataMusuh > 100) {
_root.jumlahSenjataMusuh = 0;
}
duplicateMovieClip (_root.gunMusuh, "gunMusuh" + _root.jumlahSenjataMusuh, _root.kedalamanSenjataMusuh++);
_root["gunMusuh" + _root.jumlahSenjataMusuh]._x = _x + 10;
_root["gunMusuh" + _root.jumlahSenjataMusuh]._y = _y + 20;
}
if (hitTest(_root.pesawat) and (this._currentframe == 1)) {
_root.health.life._xscale = _root.health.life._xscale - 20;
if (_root.sehat > 0) {
_root.sehat = _root.sehat - 2;
} else {
_root.sehat = 0;
}
_root.tembak._x = _root.pesawat._x;
_root.tembak._y = _root.pesawat._y;
this.gotoAndStop(2);
if (_root.sound1._currentframe == 1) {
_root.burn.start();
} else {
_root.burn.stop();
}
} else if (hitTest(_root.perisai)) {
this.gotoAndStop(2);
if (_root.sound1._currentframe == 1) {
_root.burn.start();
} else {
_root.burn.stop();
}
}
if (this.ledakan._currentframe == 4) {
keluar = 0;
_x = xlama;
if ((_root.bTime3._currentframe == 1) or (_root.bTime3._currentframe == 120)) {
_root.score = _root.score + 10;
} else {
_root.score = _root.score + 20;
}
this.gotoAndStop(1);
removeMovieClip(this);
}
}
Instance of Symbol 567 MovieClip "enem1" in Frame 28
onClipEvent (enterFrame) {
if (this.xlife._xscale >= 0) {
_x = (_root.pesawatMusuh._x - 20);
_y = (_root.pesawatMusuh._y - 20);
} else {
_x = 650;
_y = 150;
}
if (_root.enem1._x > 600) {
if ((this.xlife._xscale < 0) and (this.xlife._xscale < 100)) {
_root.enem1.xlife._xscale = 100;
} else if ((this.xlife._xscale >= 0) and (this.xlife._xscale < 100)) {
_root.enem1.xlife._xscale = 100;
}
}
}
Instance of Symbol 416 MovieClip in Frame 28
onClipEvent (enterFrame) {
_xscale = _root.pesawat.energi;
}
Frame 29
_root.health._visible = 0;
_root.sound1._visible = 0;
_root.api.stop;
if (_root.sound1._currentframe == 1) {
_root.win.start();
} else {
_root.win.stop();
}
Instance of Symbol 585 MovieClip in Frame 29
onClipEvent (load) {
keluar = 0;
xlama = _x;
}
onClipEvent (enterFrame) {
if (((random(70) == 15) and (keluar == 0)) and (_root.pesawat.time1 >= 6)) {
keluar = 1;
_y = (random(150) + 40);
}
if (keluar == 1) {
_x = (_x - 7);
if (_x < -100) {
keluar = 0;
_x = xlama;
}
}
}
Instance of Symbol 587 MovieClip in Frame 29
onClipEvent (load) {
keluar = 0;
xlama = _x;
}
onClipEvent (enterFrame) {
if (((random(70) == 15) and (keluar == 0)) and (_root.pesawat.time1 >= 6)) {
keluar = 1;
_y = (random(150) + 40);
}
if (keluar == 1) {
_x = (_x - 7);
if (_x < -100) {
keluar = 0;
_x = xlama;
}
}
}
Instance of Symbol 589 MovieClip in Frame 29
onClipEvent (load) {
keluar = 0;
xlama = _x;
}
onClipEvent (enterFrame) {
if (((random(70) == 15) and (keluar == 0)) and (_root.pesawat.time1 >= 6)) {
keluar = 1;
_y = (random(150) + 40);
}
if (keluar == 1) {
_x = (_x - 7);
if (_x < -100) {
keluar = 0;
_x = xlama;
}
}
}
Instance of Symbol 591 MovieClip in Frame 29
onClipEvent (load) {
keluar = 0;
xlama = _x;
}
onClipEvent (enterFrame) {
if (((random(70) == 15) and (keluar == 0)) and (_root.pesawat.time1 >= 6)) {
keluar = 1;
_y = (random(150) + 40);
}
if (keluar == 1) {
_x = (_x - 7);
if (_x < -150) {
keluar = 0;
_x = xlama;
}
}
}
Frame 30
_root.health._visible = 0;
_root.sound1._visible = 0;
if (_root.stat2 == 1) {
repair1._visible = 0;
repair2._visible = 0;
repair3._visible = 0;
}
Frame 31
_root.health._visible = 0;
_root.sound1._visible = 0;
if (_root.stat1 == 1) {
lLevel._visible = 0;
} else if (_root.stat1 == 2) {
autobot._visible = 0;
} else if (_root.stat1 == 3) {
low._visible = 0;
} else if (_root.stat1 == 4) {
power._visible = 0;
}
Frame 32
_root.health._visible = 0;
_root.sound1._visible = 0;
if (_root.stat == 1) {
wmachine._visible = 0;
wnuke._visible = 0;
wball._visible = 0;
wfire._visible = 0;
wice._visible = 0;
wandro._visible = 0;
}
Frame 33
stop();
iden = 3;
_root.sound1._visible = 1;
_root.health._visible = 1;
jumlahSenjataMusuh = 0;
armor = "Laser";
armor1 = "Empty";
jenisSenjata = 1;
kecepatanSenjata = 100;
level = 1;
bonus = "Empty";
kedalamanSenjataMusuh = 200;
_root.onEnterFrame = function () {
if ((_root.bTime._currentframe == 1) and ((((((_root.jenisSenjata == 2) or (_root.jenisSenjata == 3)) or (_root.jenisSenjata == 4)) or (_root.jenisSenjata == 5)) or (_root.jenisSenjata == 6)) or (_root.jenisSenjata == 7))) {
_root.jenisSenjata = 1;
_root.armor = "Laser";
_root.perisai._x == 100;
_root.perisai._y == 550;
}
if ((((_root.bTime1._currentframe == 1) and (_root.bTime2._currentframe == 1)) and (_root.bTime3._currentframe == 1)) and (_root.bTime4._currentframe == 1)) {
_root.bonus = "Empty";
}
if (_root.health.life._xscale < 0) {
_root.pesawat.gotoAndStop("2");
_root.sehat = _root.sehat - 5;
unloadMovie ("api");
}
if (Key.isDown(16)) {
if (sp == 0) {
_root.jenisSenjata = 1;
} else if (sp == 1) {
if (_root.jenisSenjata < 8) {
_root.jenisSenjata = 3;
}
} else if (sp == 2) {
if (_root.jenisSenjata < 8) {
_root.jenisSenjata = 2;
}
} else if (sp == 3) {
if (_root.jenisSenjata < 8) {
_root.jenisSenjata = 4;
}
} else if (sp == 4) {
if (_root.jenisSenjata < 8) {
_root.jenisSenjata = 5;
}
} else if (sp == 5) {
if (_root.jenisSenjata < 8) {
_root.jenisSenjata = 6;
}
} else if (sp == 6) {
if (_root.jenisSenjata < 8) {
_root.jenisSenjata = 7;
}
}
}
if ((_root.health.life._xscale < 100) and (_root.auto == 1)) {
_root.health.life._xscale = _root.health.life._xscale + 0.05;
}
if (((_root.kesempatan > 0) and (_root.health.life._xscale < 0)) and (_root.pesawat.ledakan._currentframe == 4)) {
_root.pesawat.gotoAndStop(1);
_root.health.life._xscale = _root.health.life._xscale + 60;
_root.bonus = "Shield";
_root.bTime1.gotoAndPlay("lima");
_root.perisai._visible = 1;
_root.perisai._x = _root.pesawat._x;
_root.perisai._y = _root.pesawat._y;
} else if (((_root.kesempatan == 0) and (_root.health.life._xscale < 0)) and (_root.pesawat.ledakan._currentframe == 4)) {
gotoAndStop ("gameOver");
_root.auto = 0;
_root.shipLow = 0;
_root.gunPower = 0;
_root.sp = 0;
_root.stat = 0;
_root.stat1 = 0;
_root.stat2 = 0;
}
if ((_root.gunPower == 1) and (_root.pesawat.energi < 15)) {
_root.pesawat.energi = 15;
}
if (_root.jenisSenjata == 3) {
_root.pesawat.energi = 100;
}
if ((_root.pesawat.time == 0) and (_root.kesempatan > 0)) {
_root.gotoAndStop("stage4");
_root.auto = 0;
_root.shipLow = 0;
_root.gunPower = 0;
_root.sp = 0;
_root.stat = 0;
_root.stat1 = 0;
_root.stat2 = 0;
}
};
Instance of Symbol 621 MovieClip "rock3" in Frame 33
onClipEvent (load) {
xawal = 700;
kecepatan = 7;
keluar = 0;
_visible = 0;
}
onClipEvent (enterFrame) {
if (((((random(30) == 5) and (keluar == 0)) and (_root.rock4.keluar == 0)) and (_root.rock5.keluar == 0)) and (_root.pesawat.time1 >= 6)) {
keluar = 1;
_visible = 1;
}
if (keluar == 1) {
_x = (_x - kecepatan);
if (_x < -200) {
_x = xawal;
keluar = 0;
_visible = 0;
}
}
}
Instance of Symbol 623 MovieClip "rock4" in Frame 33
onClipEvent (load) {
xawal = 700;
kecepatan = 7;
keluar = 0;
_visible = 0;
}
onClipEvent (enterFrame) {
if (((((random(30) == 5) and (keluar == 0)) and (_root.rock5.keluar == 0)) and (_root.rock3.keluar == 0)) and (_root.pesawat.time1 >= 6)) {
keluar = 1;
_visible = 1;
}
if (keluar == 1) {
_x = (_x - kecepatan);
if (_x < -300) {
_x = xawal;
keluar = 0;
_visible = 0;
}
}
}
Instance of Symbol 625 MovieClip "rock5" in Frame 33
onClipEvent (load) {
xawal = 700;
kecepatan = 7;
keluar = 0;
_visible = 0;
}
onClipEvent (enterFrame) {
if (((((random(30) == 5) and (keluar == 0)) and (_root.rock4.keluar == 0)) and (_root.rock3.keluar == 0)) and (_root.pesawat.time1 >= 6)) {
keluar = 1;
_visible = 1;
}
if (keluar == 1) {
_x = (_x - kecepatan);
if (_x < -200) {
_x = xawal;
keluar = 0;
_visible = 0;
}
}
}
Instance of Symbol 585 MovieClip in Frame 33
onClipEvent (load) {
keluar = 0;
xlama = _x;
}
onClipEvent (enterFrame) {
if (((random(70) == 15) and (keluar == 0)) and (_root.pesawat.time1 >= 6)) {
keluar = 1;
_y = (random(150) + 40);
}
if (keluar == 1) {
_x = (_x - 7);
if (_x < -100) {
keluar = 0;
_x = xlama;
}
}
}
Instance of Symbol 587 MovieClip in Frame 33
onClipEvent (load) {
keluar = 0;
xlama = _x;
}
onClipEvent (enterFrame) {
if (((random(70) == 15) and (keluar == 0)) and (_root.pesawat.time1 >= 6)) {
keluar = 1;
_y = (random(150) + 40);
}
if (keluar == 1) {
_x = (_x - 7);
if (_x < -100) {
keluar = 0;
_x = xlama;
}
}
}
Instance of Symbol 589 MovieClip in Frame 33
onClipEvent (load) {
keluar = 0;
xlama = _x;
}
onClipEvent (enterFrame) {
if (((random(70) == 15) and (keluar == 0)) and (_root.pesawat.time1 >= 6)) {
keluar = 1;
_y = (random(150) + 40);
}
if (keluar == 1) {
_x = (_x - 7);
if (_x < -100) {
keluar = 0;
_x = xlama;
}
}
}
Instance of Symbol 591 MovieClip in Frame 33
onClipEvent (load) {
keluar = 0;
xlama = _x;
}
onClipEvent (enterFrame) {
if (((random(70) == 15) and (keluar == 0)) and (_root.pesawat.time1 >= 6)) {
keluar = 1;
_y = (random(150) + 40);
}
if (keluar == 1) {
_x = (_x - 7);
if (_x < -150) {
keluar = 0;
_x = xlama;
}
}
}
Instance of Symbol 321 MovieClip "nuke" in Frame 33
onClipEvent (load) {
keluar = 0;
xlama = _x;
}
onClipEvent (enterFrame) {
if ((((((((random(900) == 47) and (keluar == 0)) and (_root.machine.keluar == 0)) and (_root.ball.keluar == 0)) and (_root.fire.keluar == 0)) and (_root.ice.keluar == 0)) and (_root.andromeda.keluar == 0)) and (_root.pesawat.time1 >= 6)) {
keluar = 1;
_y = (random(250) + 40);
}
if (keluar == 1) {
_x = (_x - 7);
if (_x < -100) {
keluar = 0;
_x = xlama;
}
}
if (hitTest(_root.pesawat) && (_root.pesawat._currentframe == 1)) {
if (_root.sound1._currentframe == 1) {
_root.bonusSound.start();
} else {
_root.bonusSound.stop();
}
keluar = 0;
_x = xlama;
_root.armor = "Nuke";
if (_root.jenisSenjata < 8) {
_root.jenisSenjata = 2;
}
_root.bTime.gotoAndPlay("lima");
_root.pesawat.energi = 100;
}
}
Instance of Symbol 328 MovieClip "shield" in Frame 33
onClipEvent (load) {
keluar = 0;
xlama = _x;
}
onClipEvent (enterFrame) {
if ((((((random(900) == 47) and (keluar == 0)) and (_root.point.keluar == 0)) and (_root.aid.keluar == 0)) and (_root.speed.keluar == 0)) and (_root.pesawat.time1 >= 6)) {
keluar = 1;
_y = (random(250) + 40);
}
if (keluar == 1) {
_x = (_x - 7);
if (_x < -100) {
keluar = 0;
_x = xlama;
}
}
if (hitTest(_root.pesawat) && (_root.pesawat._currentframe == 1)) {
if (_root.sound1._currentframe == 1) {
_root.bonusSound.start();
} else {
_root.bonusSound.stop();
}
_root.bonus = "Shield";
keluar = 0;
_x = xlama;
_root.bTime1.gotoAndPlay("lima");
_root.bTime2.gotoAndStop("nol");
_root.bTime3.gotoAndStop("nol");
_root.bTime4.gotoAndStop("nol");
_root.perisai._visible = 1;
_root.perisai._x = _root.pesawat._x;
_root.perisai._y = _root.pesawat._y;
}
}
Instance of Symbol 330 MovieClip "machine" in Frame 33
onClipEvent (load) {
keluar = 0;
xlama = _x;
}
onClipEvent (enterFrame) {
if ((((((((random(900) == 47) and (keluar == 0)) and (_root.nuke.keluar == 0)) and (_root.ball.keluar == 0)) and (_root.fire.keluar == 0)) and (_root.ice.keluar == 0)) and (_root.andromeda.keluar == 0)) and (_root.pesawat.time1 >= 6)) {
keluar = 1;
_y = (random(250) + 40);
}
if (keluar == 1) {
_x = (_x - 7);
if (_x < -100) {
keluar = 0;
_x = xlama;
}
}
if (hitTest(_root.pesawat) && (_root.pesawat._currentframe == 1)) {
if (_root.sound1._currentframe == 1) {
_root.bonusSound.start();
} else {
_root.bonusSound.stop();
}
keluar = 0;
_x = xlama;
_root.armor = "Machine Gun";
if (_root.jenisSenjata < 8) {
_root.jenisSenjata = 3;
}
_root.bTime.gotoAndPlay("lima");
_root.pesawat.energi = 100;
}
}
Instance of Symbol 332 MovieClip "ball" in Frame 33
onClipEvent (load) {
keluar = 0;
xlama = _x;
}
onClipEvent (enterFrame) {
if ((((((((random(900) == 47) and (keluar == 0)) and (_root.machine.keluar == 0)) and (_root.nuke.keluar == 0)) and (_root.fire.keluar == 0)) and (_root.ice.keluar == 0)) and (_root.andromeda.keluar == 0)) and (_root.pesawat.time1 >= 6)) {
keluar = 1;
_y = (random(250) + 40);
}
if (keluar == 1) {
_x = (_x - 7);
if (_x < -100) {
keluar = 0;
_x = xlama;
}
}
if (hitTest(_root.pesawat) && (_root.pesawat._currentframe == 1)) {
if (_root.sound1._currentframe == 1) {
_root.bonusSound.start();
} else {
_root.bonusSound.stop();
}
keluar = 0;
_x = xlama;
_root.armor = "Ball Laser";
if (_root.jenisSenjata < 8) {
_root.jenisSenjata = 4;
}
_root.bTime.gotoAndPlay("lima");
_root.pesawat.energi = 100;
}
}
Instance of Symbol 334 MovieClip "fire" in Frame 33
onClipEvent (load) {
keluar = 0;
xlama = _x;
}
onClipEvent (enterFrame) {
if ((((((((random(900) == 47) and (keluar == 0)) and (_root.machine.keluar == 0)) and (_root.ball.keluar == 0)) and (_root.nuke.keluar == 0)) and (_root.ice.keluar == 0)) and (_root.andromeda.keluar == 0)) and (_root.pesawat.time1 >= 6)) {
keluar = 1;
_y = (random(250) + 40);
}
if (keluar == 1) {
_x = (_x - 7);
if (_x < -100) {
keluar = 0;
_x = xlama;
}
}
if (hitTest(_root.pesawat) && (_root.pesawat._currentframe == 1)) {
if (_root.sound1._currentframe == 1) {
_root.bonusSound.start();
} else {
_root.bonusSound.stop();
}
keluar = 0;
_x = xlama;
_root.armor = "Fire Laser";
if (_root.jenisSenjata < 8) {
_root.jenisSenjata = 5;
}
_root.bTime.gotoAndPlay("lima");
_root.pesawat.energi = 100;
}
}
Instance of Symbol 336 MovieClip "ice" in Frame 33
onClipEvent (load) {
keluar = 0;
xlama = _x;
}
onClipEvent (enterFrame) {
if ((((((((random(900) == 47) and (keluar == 0)) and (_root.machine.keluar == 0)) and (_root.ball.keluar == 0)) and (_root.fire.keluar == 0)) and (_root.nuke.keluar == 0)) and (_root.andromeda.keluar == 0)) and (_root.pesawat.time1 >= 6)) {
keluar = 1;
_y = (random(250) + 40);
}
if (keluar == 1) {
_x = (_x - 7);
if (_x < -100) {
keluar = 0;
_x = xlama;
}
}
if (hitTest(_root.pesawat) && (_root.pesawat._currentframe == 1)) {
if (_root.sound1._currentframe == 1) {
_root.bonusSound.start();
} else {
_root.bonusSound.stop();
}
keluar = 0;
_x = xlama;
_root.armor = "Ice Laser";
if (_root.jenisSenjata < 8) {
_root.jenisSenjata = 6;
}
_root.bTime.gotoAndPlay("lima");
_root.pesawat.energi = 100;
}
}
Instance of Symbol 338 MovieClip "andromeda" in Frame 33
onClipEvent (load) {
keluar = 0;
xlama = _x;
}
onClipEvent (enterFrame) {
if ((((((((random(900) == 47) and (keluar == 0)) and (_root.machine.keluar == 0)) and (_root.ball.keluar == 0)) and (_root.fire.keluar == 0)) and (_root.ice.keluar == 0)) and (_root.nuke.keluar == 0)) and (_root.pesawat.time1 >= 6)) {
keluar = 1;
_y = (random(250) + 40);
}
if (keluar == 1) {
_x = (_x - 7);
if (_x < -100) {
keluar = 0;
_x = xlama;
}
}
if (hitTest(_root.pesawat) && (_root.pesawat._currentframe == 1)) {
if (_root.sound1._currentframe == 1) {
_root.bonusSound.start();
} else {
_root.bonusSound.stop();
}
keluar = 0;
_x = xlama;
_root.armor = "Andromeda";
if (_root.jenisSenjata < 8) {
_root.jenisSenjata = 7;
}
_root.bTime.gotoAndPlay("lima");
_root.pesawat.energi = 100;
}
}
Instance of Symbol 340 MovieClip "speed" in Frame 33
onClipEvent (load) {
keluar = 0;
xlama = _x;
}
onClipEvent (enterFrame) {
if ((((((random(900) == 47) and (keluar == 0)) and (_root.point.keluar == 0)) and (_root.aid.keluar == 0)) and (_root.shield.keluar == 0)) and (_root.pesawat.time1 >= 6)) {
keluar = 1;
_y = (random(250) + 40);
}
if (keluar == 1) {
_x = (_x - 7);
if (_x < -100) {
keluar = 0;
_x = xlama;
}
}
if ((((hitTest(_root.pesawat) && (_root.pesawat._currentframe == 1)) and (_root.point.keluar == 0)) and (_root.aid.keluar == 0)) and (_root.shield.keluar == 0)) {
if (_root.sound1._currentframe == 1) {
_root.bonusSound.start();
} else {
_root.bonusSound.stop();
}
keluar = 0;
_x = xlama;
_root.bonus = "Speed";
_root.bTime2.gotoAndPlay("lima");
_root.bTime1.gotoAndStop("nol");
_root.bTime3.gotoAndStop("nol");
_root.bTime4.gotoAndStop("nol");
}
}
Instance of Symbol 342 MovieClip "aid" in Frame 33
onClipEvent (load) {
keluar = 0;
xlama = _x;
}
onClipEvent (enterFrame) {
if ((((((random(900) == 47) and (keluar == 0)) and (_root.point.keluar == 0)) and (_root.speed.keluar == 0)) and (_root.shield.keluar == 0)) and (_root.pesawat.time1 >= 6)) {
keluar = 1;
_y = (random(250) + 40);
}
if (keluar == 1) {
_x = (_x - 7);
if (_x < -100) {
keluar = 0;
_x = xlama;
}
}
if (hitTest(_root.pesawat) && (_root.pesawat._currentframe == 1)) {
if (_root.sound1._currentframe == 1) {
_root.bonusSound.start();
} else {
_root.bonusSound.stop();
}
if (_root.sehat <= 100) {
_root.sehat = _root.sehat + 1;
} else if (_root.sehat > 100) {
_root.sehat = 100;
}
keluar = 0;
if (_root.health.life._xscale < 100) {
_root.health.life._xscale = _root.health.life._xscale + 12;
}
_x = xlama;
_root.bonus = "repair";
_root.bTime4.gotoAndPlay("lima");
_root.bTime1.gotoAndStop("nol");
_root.bTime2.gotoAndStop("nol");
_root.bTime3.gotoAndStop("nol");
_root.pesawat.energi = 100;
}
}
Instance of Symbol 343 MovieClip "point" in Frame 33
onClipEvent (load) {
keluar = 0;
xlama = _x;
}
onClipEvent (enterFrame) {
if ((((((random(900) == 47) and (keluar == 0)) and (_root.speed.keluar == 0)) and (_root.aid.keluar == 0)) and (_root.shield.keluar == 0)) and (_root.pesawat.time1 >= 6)) {
keluar = 1;
_y = (random(250) + 40);
}
if (keluar == 1) {
_x = (_x - 7);
if (_x < -100) {
keluar = 0;
_x = xlama;
}
}
if (hitTest(_root.pesawat) && (_root.pesawat._currentframe == 1)) {
if (_root.sound1._currentframe == 1) {
_root.bonusSound.start();
} else {
_root.bonusSound.stop();
}
keluar = 0;
_x = xlama;
_root.bonus = "2xPoint";
_root.bTime3.gotoAndPlay("lima");
_root.bTime1.gotoAndStop("nol");
_root.bTime2.gotoAndStop("nol");
_root.bTime4.gotoAndStop("nol");
}
}
Instance of Symbol 355 MovieClip "pesawat" in Frame 33
onClipEvent (load) {
xlama = _x;
ylama = _y;
speed = 10;
energi = 100;
life = 100;
mati = 0;
time1 = 0;
times1 = 0;
time = 150;
times = 0;
time2 = 11;
times2 = 0;
jumlahSenjata = 0;
kedalamanSenjata = 100;
}
onClipEvent (enterFrame) {
times = times + 1;
times1 = times1 + 1;
times2 = times2 + 1;
if (times1 >= 12) {
times1 = 0;
time1 = time1 + 1;
}
if ((times >= 15) and (time1 > 6)) {
times = 0;
time = time - 1;
}
if (((times2 >= 15) and (time1 > 6)) and (time <= 10)) {
times2 = 0;
time2 = time2 - 1;
_root.akhir._x = 300;
_root.akhir._y = 150;
}
energi++;
if (energi >= 100) {
energi = 100;
}
xlama = _x;
ylama = _y;
if (Key.isDown(38) and (this._y > 40)) {
_y = (_y - speed);
}
if (Key.isDown(40) and (this._y < 300)) {
_y = (_y + speed);
}
if (Key.isDown(39)) {
_x = (_x + speed);
}
if (Key.isDown(37)) {
_x = (_x - speed);
}
if (_x > 500) {
_x = xlama;
}
if (_x < 50) {
_x = xlama;
}
if (Key.isDown(32)) {
if ((energi >= (5 + (2 * _root.jenisSenjata))) && (_currentframe == 1)) {
if (_root.sound1._currentframe == 1) {
_root.suaraLaser.start();
} else {
_root.suaraLaser.stop();
}
energi = energi - (5 + (2 * _root.jenisSenjata));
jumlahSenjata++;
duplicateMovieClip (_root.laser, "laser" + jumlahSenjata, kedalamanSenjata++);
if (kedalamanSenjata > 200) {
kedalamanSenjata = 100;
jumlahSenjata = 0;
}
}
}
}
Instance of Symbol 363 MovieClip "api" in Frame 33
onClipEvent (load) {
_visible = 0;
}
onClipEvent (enterFrame) {
if (_root.health.life._xscale < 40) {
_visible = 1;
_x = _root.pesawat._x;
_y = (_root.pesawat._y + 20);
} else {
_visible = 0;
}
}
Instance of Symbol 628 MovieClip "gunMusuh" in Frame 33
onClipEvent (enterFrame) {
if (_name != "gunMusuh") {
_x = (_x - 25);
if (_x < -100) {
removeMovieClip(this);
}
if (hitTest(_root.pesawat) && (_root.pesawat._currentframe == 1)) {
if (shipLow >= 1) {
_root.health.life._xscale = _root.health.life._xscale - 10;
if (_root.sehat > 0) {
_root.sehat = _root.sehat - 1;
} else if (_root.sehat < 0) {
_root.sehat = 0;
}
} else if (shipLow <= 0) {
_root.health.life._xscale = _root.health.life._xscale - 15;
if (_root.sehat > 0) {
_root.sehat = _root.sehat - 1;
} else {
_root.sehat = 0;
}
}
removeMovieClip(this);
_root.tembak._x = _root.pesawat._x;
_root.tembak._y = _root.pesawat._y;
if (_root.sound1._currentframe == 1) {
_root.bong.start();
} else {
_root.bong.stop();
}
} else if (hitTest(_root.perisai)) {
removeMovieClip(this);
}
}
}
Instance of Symbol 380 MovieClip "laser" in Frame 33
onClipEvent (load) {
_x = (_root.pesawat._x + 35);
_y = (_root.pesawat._y + 6);
jenis.gotoAndStop(_root.jenisSenjata);
}
onClipEvent (enterFrame) {
if (_name != "laser") {
_x = (_x + _root.kecepatanSenjata);
if (_x > 650) {
removeMovieClip(this);
}
if ((hitTest(_root.pesawatMusuh) and (_root.pesawatMusuh._currentframe == 1)) and (_root.pesawatMusuh._x < 600)) {
_root.tembak1._x = _root.pesawatMusuh._x;
_root.tembak1._y = _root.pesawatMusuh._y;
if (_root.sound1._currentframe == 1) {
_root.bong.start();
} else {
_root.bong.stop();
}
if (_root.laserLevel >= 3) {
_root.enem1.xlife._xscale = _root.enem1.xlife._xscale - 40;
} else if (_root.laserLevel < 3) {
_root.enem1.xlife._xscale = _root.enem1.xlife._xscale - 20;
}
if (_root.enem1.xlife._xscale < 0) {
_root.pesawatMusuh.gotoAndStop(2);
if (_root.sound1._currentframe == 1) {
_root.burn.start();
} else {
_root.burn.stop();
}
}
removeMovieClip(this);
}
if ((hitTest(_root.pesawatMusuh1) and (_root.pesawatMusuh1._currentframe == 1)) and (_root.pesawatMusuh1._x < 600)) {
_root.tembak1._x = _root.pesawatMusuh1._x;
_root.tembak1._y = _root.pesawatMusuh1._y;
if (_root.sound1._currentframe == 1) {
_root.bong.start();
} else {
_root.bong.stop();
}
if (_root.laserLevel >= 3) {
_root.enem.xlife._xscale = _root.enem.xlife._xscale - 40;
} else if (_root.laserLevel < 3) {
_root.enem.xlife._xscale = _root.enem.xlife._xscale - 20;
}
if (_root.enem.xlife._xscale < 0) {
_root.pesawatMusuh1.gotoAndStop(2);
if (_root.sound1._currentframe == 1) {
_root.burn.start();
} else {
_root.burn.stop();
}
}
removeMovieClip(this);
}
} else {
_y = 500;
}
}
Instance of Symbol 327 MovieClip "perisai" in Frame 33
onClipEvent (load) {
_visible = 1;
_y = 550;
_x = 100;
}
onClipEvent (enterFrame) {
if ((_root.bTime1._currentframe == 1) or (_root.bTime1._currentframe == 120)) {
_visible = 1;
_y = 550;
_x = 100;
} else {
_visible = 1;
_x = _root.pesawat._x;
_y = (_root.pesawat._y + 20);
}
}
Instance of Symbol 632 MovieClip "pesawatMusuh1" in Frame 33
onClipEvent (load) {
keluar = 0;
xlama = _x;
}
onClipEvent (enterFrame) {
if (((random(20) == 15) and (keluar == 0)) and (_root.pesawat.time1 >= 6)) {
keluar = 1;
give = 1;
_y = (random(250) + 40);
}
if (keluar == 1) {
if ((_root.bTime2._currentframe == 1) or (_root.bTime2._currentframe == 120)) {
_x = (_x - (10 + random(10)));
} else {
_x = (_x - 7);
}
if ((random(45 - (_root.level * 2)) == 3) or ((random(10) == 2) and (_root.pesawat._x > this._x))) {
arah = 1;
}
if ((random(45 - (_root.level * 2)) == 4) or ((random(10) == 5) and (_root.pesawat._x < this._x))) {
arah = 2;
}
if (random(40) == 4) {
arah = 0;
}
if (arah == 1) {
_y = (_y + 3);
} else if (arah == 2) {
_y = (_y - 3);
}
}
if (_x < -150) {
keluar = 0;
_root.score--;
_x = xlama;
}
if (((_currentframe == 1) && (random(7) == 4)) && (this._x < 600)) {
if (_root.sound1._currentframe == 1) {
_root.suaraLaser1.start();
} else {
_root.suaraLaser1.stop();
}
_root.jumlahSenjataMusuh++;
if (_root.jumlahSenjataMusuh > 100) {
_root.jumlahSenjataMusuh = 0;
}
duplicateMovieClip (_root.gunMusuh, "gunMusuh" + _root.jumlahSenjataMusuh, _root.kedalamanSenjataMusuh++);
_root["gunMusuh" + _root.jumlahSenjataMusuh]._x = _x + 10;
_root["gunMusuh" + _root.jumlahSenjataMusuh]._y = _y - 20;
}
if (hitTest(_root.pesawat) and (this._currentframe == 1)) {
_root.health.life._xscale = _root.health.life._xscale - 30;
if (_root.sehat > 0) {
_root.sehat = _root.sehat - 2;
} else {
_root.sehat = 0;
}
_root.tembak._x = _root.pesawat._x;
_root.tembak._y = _root.pesawat._y;
this.gotoAndStop(2);
if (_root.sound1._currentframe == 1) {
_root.burn.start();
} else {
_root.burn.stop();
}
} else if (hitTest(_root.perisai)) {
this.gotoAndStop(2);
if (_root.sound1._currentframe == 1) {
_root.burn.start();
} else {
_root.burn.stop();
}
}
if (this.ledakan._currentframe == 4) {
keluar = 0;
_x = xlama;
if ((_root.bTime3._currentframe == 1) or (_root.bTime3._currentframe == 120)) {
_root.score = _root.score + 10;
} else {
_root.score = _root.score + 20;
}
this.gotoAndStop(1);
removeMovieClip(this);
}
}
Instance of Symbol 567 MovieClip "enem" in Frame 33
onClipEvent (enterFrame) {
if (this.xlife._xscale >= 0) {
_x = (_root.pesawatMusuh1._x - 40);
_y = (_root.pesawatMusuh1._y - 40);
} else {
_x = 650;
_y = 150;
}
if (_root.enem._x > 600) {
if ((this.xlife._xscale < 0) and (this.xlife._xscale < 100)) {
_root.enem.xlife._xscale = 100;
} else if ((this.xlife._xscale >= 0) and (this.xlife._xscale < 100)) {
_root.enem.xlife._xscale = 100;
}
}
}
Instance of Symbol 632 MovieClip "pesawatMusuh" in Frame 33
onClipEvent (load) {
keluar = 0;
xlama = _x;
}
onClipEvent (enterFrame) {
if (((random(20) == 15) and (keluar == 0)) and (_root.pesawat.time1 >= 6)) {
keluar = 1;
give = 1;
_y = (random(250) + 40);
}
if (keluar == 1) {
if ((_root.bTime2._currentframe == 1) or (_root.bTime2._currentframe == 120)) {
_x = (_x - (10 + random(10)));
} else {
_x = (_x - 7);
}
if ((random(45 - (_root.level * 2)) == 3) or ((random(10) == 2) and (_root.pesawat._x > this._x))) {
arah = 1;
}
if ((random(45 - (_root.level * 2)) == 4) or ((random(10) == 5) and (_root.pesawat._x < this._x))) {
arah = 2;
}
if (random(40) == 4) {
arah = 0;
}
if (arah == 1) {
_y = (_y + 3);
} else if (arah == 2) {
_y = (_y - 3);
}
}
if (_x < -150) {
keluar = 0;
_root.score--;
_x = xlama;
}
if (((_currentframe == 1) && (random(7) == 4)) && (this._x < 600)) {
if (_root.sound1._currentframe == 1) {
_root.suaraLaser1.start();
} else {
_root.suaraLaser1.stop();
}
_root.jumlahSenjataMusuh++;
if (_root.jumlahSenjataMusuh > 100) {
_root.jumlahSenjataMusuh = 0;
}
duplicateMovieClip (_root.gunMusuh, "gunMusuh" + _root.jumlahSenjataMusuh, _root.kedalamanSenjataMusuh++);
_root["gunMusuh" + _root.jumlahSenjataMusuh]._x = _x + 10;
_root["gunMusuh" + _root.jumlahSenjataMusuh]._y = _y - 20;
}
if (hitTest(_root.pesawat) and (this._currentframe == 1)) {
_root.health.life._xscale = _root.health.life._xscale - 30;
if (_root.sehat > 0) {
_root.sehat = _root.sehat - 2;
} else {
_root.sehat = 0;
}
_root.tembak._x = _root.pesawat._x;
_root.tembak._y = _root.pesawat._y;
this.gotoAndStop(2);
if (_root.sound1._currentframe == 1) {
_root.burn.start();
} else {
_root.burn.stop();
}
} else if (hitTest(_root.perisai)) {
this.gotoAndStop(2);
if (_root.sound1._currentframe == 1) {
_root.burn.start();
} else {
_root.burn.stop();
}
}
if (this.ledakan._currentframe == 4) {
keluar = 0;
_x = xlama;
if ((_root.bTime3._currentframe == 1) or (_root.bTime3._currentframe == 120)) {
_root.score = _root.score + 10;
} else {
_root.score = _root.score + 20;
}
this.gotoAndStop(1);
removeMovieClip(this);
}
}
Instance of Symbol 567 MovieClip "enem1" in Frame 33
onClipEvent (enterFrame) {
if (this.xlife._xscale >= 0) {
_x = (_root.pesawatMusuh._x - 40);
_y = (_root.pesawatMusuh._y - 40);
} else {
_x = 650;
_y = 150;
}
if (_root.enem1._x > 600) {
if ((this.xlife._xscale < 0) and (this.xlife._xscale < 100)) {
_root.enem1.xlife._xscale = 100;
} else if ((this.xlife._xscale >= 0) and (this.xlife._xscale < 100)) {
_root.enem1.xlife._xscale = 100;
}
}
}
Instance of Symbol 416 MovieClip in Frame 33
onClipEvent (enterFrame) {
_xscale = _root.pesawat.energi;
}
Frame 34
_root.health._visible = 0;
_root.sound1._visible = 0;
_root.api.stop;
if (_root.sound1._currentframe == 1) {
_root.win.start();
} else {
_root.win.stop();
}
Instance of Symbol 647 MovieClip in Frame 34
onClipEvent (load) {
keluar = 0;
xlama = _x;
}
onClipEvent (enterFrame) {
if (((random(70) == 15) and (keluar == 0)) and (_root.pesawat.time1 >= 6)) {
keluar = 1;
_y = (random(150) + 40);
}
if (keluar == 1) {
_x = (_x - 7);
if (_x < -150) {
keluar = 0;
_x = xlama;
}
}
}
Instance of Symbol 649 MovieClip in Frame 34
onClipEvent (load) {
keluar = 0;
xlama = _x;
}
onClipEvent (enterFrame) {
if (((random(70) == 15) and (keluar == 0)) and (_root.pesawat.time1 >= 6)) {
keluar = 1;
_y = (random(150) + 40);
}
if (keluar == 1) {
_x = (_x - 7);
if (_x < -150) {
keluar = 0;
_x = xlama;
}
}
}
Instance of Symbol 651 MovieClip in Frame 34
onClipEvent (load) {
keluar = 0;
xlama = _x;
}
onClipEvent (enterFrame) {
if (((random(70) == 15) and (keluar == 0)) and (_root.pesawat.time1 >= 6)) {
keluar = 1;
_y = (random(150) + 40);
}
if (keluar == 1) {
_x = (_x - 7);
if (_x < -150) {
keluar = 0;
_x = xlama;
}
}
}
Instance of Symbol 653 MovieClip in Frame 34
onClipEvent (load) {
keluar = 0;
xlama = _x;
}
onClipEvent (enterFrame) {
if (((random(70) == 15) and (keluar == 0)) and (_root.pesawat.time1 >= 6)) {
keluar = 1;
_y = (random(150) + 40);
}
if (keluar == 1) {
_x = (_x - 7);
if (_x < -150) {
keluar = 0;
_x = xlama;
}
}
}
Frame 35
_root.health._visible = 0;
_root.sound1._visible = 0;
if (_root.stat2 == 1) {
repair1._visible = 0;
repair2._visible = 0;
repair3._visible = 0;
}
Frame 36
_root.health._visible = 0;
_root.sound1._visible = 0;
if (_root.stat1 == 1) {
lLevel._visible = 0;
} else if (_root.stat1 == 2) {
autobot._visible = 0;
} else if (_root.stat1 == 3) {
low._visible = 0;
} else if (_root.stat1 == 4) {
power._visible = 0;
}
Frame 37
_root.health._visible = 0;
_root.sound1._visible = 0;
if (_root.stat == 1) {
wmachine._visible = 0;
wnuke._visible = 0;
wball._visible = 0;
wfire._visible = 0;
wice._visible = 0;
wandro._visible = 0;
}
Frame 38
stop();
iden = 4;
_root.sound1._visible = 1;
_root.health._visible = 1;
jumlahSenjataMusuh = 0;
armor = "Laser";
armor1 = "Empty";
jenisSenjata = 1;
kecepatanSenjata = 100;
level = 1;
bonus = "Empty";
kedalamanSenjataMusuh = 200;
_root.onEnterFrame = function () {
if ((_root.bTime._currentframe == 1) and ((((((_root.jenisSenjata == 2) or (_root.jenisSenjata == 3)) or (_root.jenisSenjata == 4)) or (_root.jenisSenjata == 5)) or (_root.jenisSenjata == 6)) or (_root.jenisSenjata == 7))) {
_root.jenisSenjata = 1;
_root.armor = "Laser";
_root.perisai._x == 100;
_root.perisai._y == 550;
}
if ((((_root.bTime1._currentframe == 1) and (_root.bTime2._currentframe == 1)) and (_root.bTime3._currentframe == 1)) and (_root.bTime4._currentframe == 1)) {
_root.bonus = "Empty";
}
if (_root.health.life._xscale < 0) {
_root.pesawat.gotoAndStop("2");
_root.sehat = _root.sehat - 5;
unloadMovie ("api");
}
if (Key.isDown(16)) {
if (sp == 0) {
_root.jenisSenjata = 1;
} else if (sp == 1) {
if (_root.jenisSenjata < 8) {
_root.jenisSenjata = 3;
}
} else if (sp == 2) {
if (_root.jenisSenjata < 8) {
_root.jenisSenjata = 2;
}
} else if (sp == 3) {
if (_root.jenisSenjata < 8) {
_root.jenisSenjata = 4;
}
} else if (sp == 4) {
if (_root.jenisSenjata < 8) {
_root.jenisSenjata = 5;
}
} else if (sp == 5) {
if (_root.jenisSenjata < 8) {
_root.jenisSenjata = 6;
}
} else if (sp == 6) {
if (_root.jenisSenjata < 8) {
_root.jenisSenjata = 7;
}
}
}
if ((_root.health.life._xscale < 100) and (_root.auto == 1)) {
_root.health.life._xscale = _root.health.life._xscale + 0.05;
}
if (((_root.kesempatan > 0) and (_root.health.life._xscale < 0)) and (_root.pesawat.ledakan._currentframe == 4)) {
_root.pesawat.gotoAndStop(1);
_root.health.life._xscale = _root.health.life._xscale + 60;
_root.bonus = "Shield";
_root.bTime1.gotoAndPlay("lima");
_root.perisai._visible = 1;
_root.perisai._x = _root.pesawat._x;
_root.perisai._y = _root.pesawat._y;
} else if (((_root.kesempatan == 0) and (_root.health.life._xscale < 0)) and (_root.pesawat.ledakan._currentframe == 4)) {
gotoAndStop ("gameOver");
_root.auto = 0;
_root.shipLow = 0;
_root.gunPower = 0;
_root.sp = 0;
_root.stat = 0;
_root.stat1 = 0;
_root.stat2 = 0;
}
if ((_root.gunPower == 1) and (_root.pesawat.energi < 15)) {
_root.pesawat.energi = 15;
}
if (_root.jenisSenjata == 3) {
_root.pesawat.energi = 100;
}
if ((_root.pesawat.time == 0) and (_root.kesempatan > 0)) {
_root.gotoAndStop("stage5");
_root.auto = 0;
_root.shipLow = 0;
_root.gunPower = 0;
_root.sp = 0;
_root.stat = 0;
_root.stat1 = 0;
_root.stat2 = 0;
}
};
Instance of Symbol 647 MovieClip in Frame 38
onClipEvent (load) {
keluar = 0;
xlama = _x;
}
onClipEvent (enterFrame) {
if (((random(70) == 15) and (keluar == 0)) and (_root.pesawat.time1 >= 6)) {
keluar = 1;
_y = (random(150) + 40);
}
if (keluar == 1) {
_x = (_x - 7);
if (_x < -150) {
keluar = 0;
_x = xlama;
}
}
}
Instance of Symbol 649 MovieClip in Frame 38
onClipEvent (load) {
keluar = 0;
xlama = _x;
}
onClipEvent (enterFrame) {
if (((random(70) == 15) and (keluar == 0)) and (_root.pesawat.time1 >= 6)) {
keluar = 1;
_y = (random(150) + 40);
}
if (keluar == 1) {
_x = (_x - 7);
if (_x < -150) {
keluar = 0;
_x = xlama;
}
}
}
Instance of Symbol 651 MovieClip in Frame 38
onClipEvent (load) {
keluar = 0;
xlama = _x;
}
onClipEvent (enterFrame) {
if (((random(70) == 15) and (keluar == 0)) and (_root.pesawat.time1 >= 6)) {
keluar = 1;
_y = (random(150) + 40);
}
if (keluar == 1) {
_x = (_x - 7);
if (_x < -150) {
keluar = 0;
_x = xlama;
}
}
}
Instance of Symbol 653 MovieClip in Frame 38
onClipEvent (load) {
keluar = 0;
xlama = _x;
}
onClipEvent (enterFrame) {
if (((random(70) == 15) and (keluar == 0)) and (_root.pesawat.time1 >= 6)) {
keluar = 1;
_y = (random(150) + 40);
}
if (keluar == 1) {
_x = (_x - 7);
if (_x < -150) {
keluar = 0;
_x = xlama;
}
}
}
Instance of Symbol 321 MovieClip "nuke" in Frame 38
onClipEvent (load) {
keluar = 0;
xlama = _x;
}
onClipEvent (enterFrame) {
if ((((((((random(900) == 47) and (keluar == 0)) and (_root.machine.keluar == 0)) and (_root.ball.keluar == 0)) and (_root.fire.keluar == 0)) and (_root.ice.keluar == 0)) and (_root.andromeda.keluar == 0)) and (_root.pesawat.time1 >= 6)) {
keluar = 1;
_y = (random(250) + 40);
}
if (keluar == 1) {
_x = (_x - 7);
if (_x < -100) {
keluar = 0;
_x = xlama;
}
}
if (hitTest(_root.pesawat) && (_root.pesawat._currentframe == 1)) {
if (_root.sound1._currentframe == 1) {
_root.bonusSound.start();
} else {
_root.bonusSound.stop();
}
keluar = 0;
_x = xlama;
_root.armor = "Nuke";
if (_root.jenisSenjata < 8) {
_root.jenisSenjata = 2;
}
_root.bTime.gotoAndPlay("lima");
_root.pesawat.energi = 100;
}
}
Instance of Symbol 328 MovieClip "shield" in Frame 38
onClipEvent (load) {
keluar = 0;
xlama = _x;
}
onClipEvent (enterFrame) {
if ((((((random(900) == 47) and (keluar == 0)) and (_root.point.keluar == 0)) and (_root.aid.keluar == 0)) and (_root.speed.keluar == 0)) and (_root.pesawat.time1 >= 6)) {
keluar = 1;
_y = (random(250) + 40);
}
if (keluar == 1) {
_x = (_x - 7);
if (_x < -100) {
keluar = 0;
_x = xlama;
}
}
if (hitTest(_root.pesawat) && (_root.pesawat._currentframe == 1)) {
if (_root.sound1._currentframe == 1) {
_root.bonusSound.start();
} else {
_root.bonusSound.stop();
}
_root.bonus = "Shield";
keluar = 0;
_x = xlama;
_root.bTime1.gotoAndPlay("lima");
_root.bTime2.gotoAndStop("nol");
_root.bTime3.gotoAndStop("nol");
_root.bTime4.gotoAndStop("nol");
_root.perisai._visible = 1;
_root.perisai._x = _root.pesawat._x;
_root.perisai._y = _root.pesawat._y;
}
}
Instance of Symbol 330 MovieClip "machine" in Frame 38
onClipEvent (load) {
keluar = 0;
xlama = _x;
}
onClipEvent (enterFrame) {
if ((((((((random(900) == 47) and (keluar == 0)) and (_root.nuke.keluar == 0)) and (_root.ball.keluar == 0)) and (_root.fire.keluar == 0)) and (_root.ice.keluar == 0)) and (_root.andromeda.keluar == 0)) and (_root.pesawat.time1 >= 6)) {
keluar = 1;
_y = (random(250) + 40);
}
if (keluar == 1) {
_x = (_x - 7);
if (_x < -100) {
keluar = 0;
_x = xlama;
}
}
if (hitTest(_root.pesawat) && (_root.pesawat._currentframe == 1)) {
if (_root.sound1._currentframe == 1) {
_root.bonusSound.start();
} else {
_root.bonusSound.stop();
}
keluar = 0;
_x = xlama;
_root.armor = "Machine Gun";
if (_root.jenisSenjata < 8) {
_root.jenisSenjata = 3;
}
_root.bTime.gotoAndPlay("lima");
_root.pesawat.energi = 100;
}
}
Instance of Symbol 332 MovieClip "ball" in Frame 38
onClipEvent (load) {
keluar = 0;
xlama = _x;
}
onClipEvent (enterFrame) {
if ((((((((random(900) == 47) and (keluar == 0)) and (_root.machine.keluar == 0)) and (_root.nuke.keluar == 0)) and (_root.fire.keluar == 0)) and (_root.ice.keluar == 0)) and (_root.andromeda.keluar == 0)) and (_root.pesawat.time1 >= 6)) {
keluar = 1;
_y = (random(250) + 40);
}
if (keluar == 1) {
_x = (_x - 7);
if (_x < -100) {
keluar = 0;
_x = xlama;
}
}
if (hitTest(_root.pesawat) && (_root.pesawat._currentframe == 1)) {
if (_root.sound1._currentframe == 1) {
_root.bonusSound.start();
} else {
_root.bonusSound.stop();
}
keluar = 0;
_x = xlama;
_root.armor = "Ball Laser";
if (_root.jenisSenjata < 8) {
_root.jenisSenjata = 4;
}
_root.bTime.gotoAndPlay("lima");
_root.pesawat.energi = 100;
}
}
Instance of Symbol 334 MovieClip "fire" in Frame 38
onClipEvent (load) {
keluar = 0;
xlama = _x;
}
onClipEvent (enterFrame) {
if ((((((((random(900) == 47) and (keluar == 0)) and (_root.machine.keluar == 0)) and (_root.ball.keluar == 0)) and (_root.nuke.keluar == 0)) and (_root.ice.keluar == 0)) and (_root.andromeda.keluar == 0)) and (_root.pesawat.time1 >= 6)) {
keluar = 1;
_y = (random(250) + 40);
}
if (keluar == 1) {
_x = (_x - 7);
if (_x < -100) {
keluar = 0;
_x = xlama;
}
}
if (hitTest(_root.pesawat) && (_root.pesawat._currentframe == 1)) {
if (_root.sound1._currentframe == 1) {
_root.bonusSound.start();
} else {
_root.bonusSound.stop();
}
keluar = 0;
_x = xlama;
_root.armor = "Fire Laser";
if (_root.jenisSenjata < 8) {
_root.jenisSenjata = 5;
}
_root.bTime.gotoAndPlay("lima");
_root.pesawat.energi = 100;
}
}
Instance of Symbol 336 MovieClip "ice" in Frame 38
onClipEvent (load) {
keluar = 0;
xlama = _x;
}
onClipEvent (enterFrame) {
if ((((((((random(900) == 47) and (keluar == 0)) and (_root.machine.keluar == 0)) and (_root.ball.keluar == 0)) and (_root.fire.keluar == 0)) and (_root.nuke.keluar == 0)) and (_root.andromeda.keluar == 0)) and (_root.pesawat.time1 >= 6)) {
keluar = 1;
_y = (random(250) + 40);
}
if (keluar == 1) {
_x = (_x - 7);
if (_x < -100) {
keluar = 0;
_x = xlama;
}
}
if (hitTest(_root.pesawat) && (_root.pesawat._currentframe == 1)) {
if (_root.sound1._currentframe == 1) {
_root.bonusSound.start();
} else {
_root.bonusSound.stop();
}
keluar = 0;
_x = xlama;
_root.armor = "Ice Laser";
if (_root.jenisSenjata < 8) {
_root.jenisSenjata = 6;
}
_root.bTime.gotoAndPlay("lima");
_root.pesawat.energi = 100;
}
}
Instance of Symbol 338 MovieClip "andromeda" in Frame 38
onClipEvent (load) {
keluar = 0;
xlama = _x;
}
onClipEvent (enterFrame) {
if ((((((((random(900) == 47) and (keluar == 0)) and (_root.machine.keluar == 0)) and (_root.ball.keluar == 0)) and (_root.fire.keluar == 0)) and (_root.ice.keluar == 0)) and (_root.nuke.keluar == 0)) and (_root.pesawat.time1 >= 6)) {
keluar = 1;
_y = (random(250) + 40);
}
if (keluar == 1) {
_x = (_x - 7);
if (_x < -100) {
keluar = 0;
_x = xlama;
}
}
if (hitTest(_root.pesawat) && (_root.pesawat._currentframe == 1)) {
if (_root.sound1._currentframe == 1) {
_root.bonusSound.start();
} else {
_root.bonusSound.stop();
}
keluar = 0;
_x = xlama;
_root.armor = "Andromeda";
if (_root.jenisSenjata < 8) {
_root.jenisSenjata = 7;
}
_root.bTime.gotoAndPlay("lima");
_root.pesawat.energi = 100;
}
}
Instance of Symbol 340 MovieClip "speed" in Frame 38
onClipEvent (load) {
keluar = 0;
xlama = _x;
}
onClipEvent (enterFrame) {
if ((((((random(900) == 47) and (keluar == 0)) and (_root.point.keluar == 0)) and (_root.aid.keluar == 0)) and (_root.shield.keluar == 0)) and (_root.pesawat.time1 >= 6)) {
keluar = 1;
_y = (random(250) + 40);
}
if (keluar == 1) {
_x = (_x - 7);
if (_x < -100) {
keluar = 0;
_x = xlama;
}
}
if ((((hitTest(_root.pesawat) && (_root.pesawat._currentframe == 1)) and (_root.point.keluar == 0)) and (_root.aid.keluar == 0)) and (_root.shield.keluar == 0)) {
if (_root.sound1._currentframe == 1) {
_root.bonusSound.start();
} else {
_root.bonusSound.stop();
}
keluar = 0;
_x = xlama;
_root.bonus = "Speed";
_root.bTime2.gotoAndPlay("lima");
_root.bTime1.gotoAndStop("nol");
_root.bTime3.gotoAndStop("nol");
_root.bTime4.gotoAndStop("nol");
}
}
Instance of Symbol 342 MovieClip "aid" in Frame 38
onClipEvent (load) {
keluar = 0;
xlama = _x;
}
onClipEvent (enterFrame) {
if ((((((random(900) == 47) and (keluar == 0)) and (_root.point.keluar == 0)) and (_root.speed.keluar == 0)) and (_root.shield.keluar == 0)) and (_root.pesawat.time1 >= 6)) {
keluar = 1;
_y = (random(250) + 40);
}
if (keluar == 1) {
_x = (_x - 7);
if (_x < -100) {
keluar = 0;
_x = xlama;
}
}
if (hitTest(_root.pesawat) && (_root.pesawat._currentframe == 1)) {
if (_root.sound1._currentframe == 1) {
_root.bonusSound.start();
} else {
_root.bonusSound.stop();
}
if (_root.sehat <= 100) {
_root.sehat = _root.sehat + 1;
} else if (_root.sehat > 100) {
_root.sehat = 100;
}
keluar = 0;
if (_root.health.life._xscale < 100) {
_root.health.life._xscale = _root.health.life._xscale + 12;
}
_x = xlama;
_root.bonus = "repair";
_root.bTime4.gotoAndPlay("lima");
_root.bTime1.gotoAndStop("nol");
_root.bTime2.gotoAndStop("nol");
_root.bTime3.gotoAndStop("nol");
_root.pesawat.energi = 100;
}
}
Instance of Symbol 343 MovieClip "point" in Frame 38
onClipEvent (load) {
keluar = 0;
xlama = _x;
}
onClipEvent (enterFrame) {
if ((((((random(900) == 47) and (keluar == 0)) and (_root.speed.keluar == 0)) and (_root.aid.keluar == 0)) and (_root.shield.keluar == 0)) and (_root.pesawat.time1 >= 6)) {
keluar = 1;
_y = (random(250) + 40);
}
if (keluar == 1) {
_x = (_x - 7);
if (_x < -100) {
keluar = 0;
_x = xlama;
}
}
if (hitTest(_root.pesawat) && (_root.pesawat._currentframe == 1)) {
if (_root.sound1._currentframe == 1) {
_root.bonusSound.start();
} else {
_root.bonusSound.stop();
}
keluar = 0;
_x = xlama;
_root.bonus = "2xPoint";
_root.bTime3.gotoAndPlay("lima");
_root.bTime1.gotoAndStop("nol");
_root.bTime2.gotoAndStop("nol");
_root.bTime4.gotoAndStop("nol");
}
}
Instance of Symbol 355 MovieClip "pesawat" in Frame 38
onClipEvent (load) {
xlama = _x;
ylama = _y;
speed = 10;
energi = 100;
life = 100;
mati = 0;
time1 = 0;
times1 = 0;
time = 150;
times = 0;
time2 = 11;
times2 = 0;
jumlahSenjata = 0;
kedalamanSenjata = 100;
}
onClipEvent (enterFrame) {
times = times + 1;
times1 = times1 + 1;
times2 = times2 + 1;
if (times1 >= 12) {
times1 = 0;
time1 = time1 + 1;
}
if ((times >= 15) and (time1 > 6)) {
times = 0;
time = time - 1;
}
if (((times2 >= 15) and (time1 > 6)) and (time <= 10)) {
times2 = 0;
time2 = time2 - 1;
_root.akhir._x = 300;
_root.akhir._y = 150;
}
energi++;
if (energi >= 100) {
energi = 100;
}
xlama = _x;
ylama = _y;
if (Key.isDown(38) and (this._y > 40)) {
_y = (_y - speed);
}
if (Key.isDown(40) and (this._y < 300)) {
_y = (_y + speed);
}
if (Key.isDown(39)) {
_x = (_x + speed);
}
if (Key.isDown(37)) {
_x = (_x - speed);
}
if (_x > 500) {
_x = xlama;
}
if (_x < 50) {
_x = xlama;
}
if (Key.isDown(32)) {
if ((energi >= (5 + (2 * _root.jenisSenjata))) && (_currentframe == 1)) {
if (_root.sound1._currentframe == 1) {
_root.suaraLaser.start();
} else {
_root.suaraLaser.stop();
}
energi = energi - (5 + (2 * _root.jenisSenjata));
jumlahSenjata++;
duplicateMovieClip (_root.laser, "laser" + jumlahSenjata, kedalamanSenjata++);
if (kedalamanSenjata > 200) {
kedalamanSenjata = 100;
jumlahSenjata = 0;
}
}
}
}
Instance of Symbol 363 MovieClip "api" in Frame 38
onClipEvent (load) {
_visible = 0;
}
onClipEvent (enterFrame) {
if (_root.health.life._xscale < 40) {
_visible = 1;
_x = _root.pesawat._x;
_y = (_root.pesawat._y + 20);
} else {
_visible = 0;
}
}
Instance of Symbol 685 MovieClip "gunMusuh" in Frame 38
onClipEvent (enterFrame) {
if (_name != "gunMusuh") {
_x = (_x - 25);
if (_x < -100) {
removeMovieClip(this);
}
if (hitTest(_root.pesawat) && (_root.pesawat._currentframe == 1)) {
if (shipLow >= 1) {
_root.health.life._xscale = _root.health.life._xscale - 15;
if (_root.sehat > 0) {
_root.sehat = _root.sehat - 1;
} else if (_root.sehat < 0) {
_root.sehat = 0;
}
} else if (shipLow <= 0) {
_root.health.life._xscale = _root.health.life._xscale - 20;
if (_root.sehat > 0) {
_root.sehat = _root.sehat - 1;
} else {
_root.sehat = 0;
}
}
removeMovieClip(this);
_root.tembak._x = _root.pesawat._x;
_root.tembak._y = _root.pesawat._y;
if (_root.sound1._currentframe == 1) {
_root.bong.start();
} else {
_root.bong.stop();
}
} else if (hitTest(_root.perisai)) {
removeMovieClip(this);
}
}
}
Instance of Symbol 380 MovieClip "laser" in Frame 38
onClipEvent (load) {
_x = (_root.pesawat._x + 35);
_y = (_root.pesawat._y + 6);
jenis.gotoAndStop(_root.jenisSenjata);
}
onClipEvent (enterFrame) {
if (_name != "laser") {
_x = (_x + _root.kecepatanSenjata);
if (_x > 650) {
removeMovieClip(this);
}
if ((hitTest(_root.pesawatMusuh) and (_root.pesawatMusuh._currentframe == 1)) and (_root.pesawatMusuh._x < 600)) {
_root.tembak1._x = _root.pesawatMusuh._x;
_root.tembak1._y = _root.pesawatMusuh._y;
if (_root.sound1._currentframe == 1) {
_root.bong.start();
} else {
_root.bong.stop();
}
if (_root.laserLevel >= 4) {
_root.enem1.xlife._xscale = _root.enem1.xlife._xscale - 35;
} else if (_root.laserLevel < 4) {
_root.enem1.xlife._xscale = _root.enem1.xlife._xscale - 15;
}
if (_root.enem1.xlife._xscale < 0) {
_root.pesawatMusuh.gotoAndStop(2);
if (_root.sound1._currentframe == 1) {
_root.burn.start();
} else {
_root.burn.stop();
}
}
removeMovieClip(this);
}
if ((hitTest(_root.pesawatMusuh1) and (_root.pesawatMusuh1._currentframe == 1)) and (_root.pesawatMusuh1._x < 600)) {
_root.tembak1._x = _root.pesawatMusuh1._x;
_root.tembak1._y = _root.pesawatMusuh1._y;
if (_root.sound1._currentframe == 1) {
_root.bong.start();
} else {
_root.bong.stop();
}
if (_root.laserLevel >= 4) {
_root.enem.xlife._xscale = _root.enem.xlife._xscale - 35;
} else if (_root.laserLevel < 4) {
_root.enem.xlife._xscale = _root.enem.xlife._xscale - 15;
}
if (_root.enem.xlife._xscale < 0) {
_root.pesawatMusuh1.gotoAndStop(2);
if (_root.sound1._currentframe == 1) {
_root.burn.start();
} else {
_root.burn.stop();
}
}
removeMovieClip(this);
}
} else {
_y = 500;
}
}
Instance of Symbol 327 MovieClip "perisai" in Frame 38
onClipEvent (load) {
_visible = 1;
_y = 550;
_x = 100;
}
onClipEvent (enterFrame) {
if ((_root.bTime1._currentframe == 1) or (_root.bTime1._currentframe == 120)) {
_visible = 1;
_y = 550;
_x = 100;
} else {
_visible = 1;
_x = _root.pesawat._x;
_y = (_root.pesawat._y + 20);
}
}
Instance of Symbol 691 MovieClip "pesawatMusuh1" in Frame 38
onClipEvent (load) {
keluar = 0;
xlama = _x;
}
onClipEvent (enterFrame) {
if (((random(18) == 15) and (keluar == 0)) and (_root.pesawat.time1 >= 6)) {
keluar = 1;
give = 1;
_y = (random(250) + 40);
}
if (keluar == 1) {
if ((_root.bTime2._currentframe == 1) or (_root.bTime2._currentframe == 120)) {
_x = (_x - (10 + random(10)));
} else {
_x = (_x - 7);
}
if ((random(45 - (_root.level * 2)) == 3) or ((random(10) == 2) and (_root.pesawat._x > this._x))) {
arah = 1;
}
if ((random(45 - (_root.level * 2)) == 4) or ((random(10) == 5) and (_root.pesawat._x < this._x))) {
arah = 2;
}
if (random(40) == 4) {
arah = 0;
}
if (arah == 1) {
_y = (_y + 2.5);
} else if (arah == 2) {
_y = (_y - 2.5);
}
}
if (_x < -150) {
keluar = 0;
_root.score--;
_x = xlama;
}
if (((_currentframe == 1) && (random(6) == 4)) && (this._x < 600)) {
if (_root.sound1._currentframe == 1) {
_root.suaraLaser1.start();
} else {
_root.suaraLaser1.stop();
}
_root.jumlahSenjataMusuh++;
if (_root.jumlahSenjataMusuh > 100) {
_root.jumlahSenjataMusuh = 0;
}
duplicateMovieClip (_root.gunMusuh, "gunMusuh" + _root.jumlahSenjataMusuh, _root.kedalamanSenjataMusuh++);
_root["gunMusuh" + _root.jumlahSenjataMusuh]._x = _x + 10;
_root["gunMusuh" + _root.jumlahSenjataMusuh]._y = _y + 50;
}
if (hitTest(_root.pesawat) and (this._currentframe == 1)) {
_root.health.life._xscale = _root.health.life._xscale - 40;
if (_root.sehat > 0) {
_root.sehat = _root.sehat - 2;
} else {
_root.sehat = 0;
}
_root.tembak._x = _root.pesawat._x - 40;
_root.tembak._y = _root.pesawat._y;
this.gotoAndStop(2);
if (_root.sound1._currentframe == 1) {
_root.burn.start();
} else {
_root.burn.stop();
}
} else if (hitTest(_root.perisai)) {
this.gotoAndStop(2);
if (_root.sound1._currentframe == 1) {
_root.burn.start();
} else {
_root.burn.stop();
}
}
if (this.ledakan._currentframe == 4) {
keluar = 0;
_x = xlama;
if ((_root.bTime3._currentframe == 1) or (_root.bTime3._currentframe == 120)) {
_root.score = _root.score + 10;
} else {
_root.score = _root.score + 20;
}
this.gotoAndStop(1);
removeMovieClip(this);
}
}
Instance of Symbol 567 MovieClip "enem" in Frame 38
onClipEvent (enterFrame) {
if (this.xlife._xscale >= 0) {
_x = (_root.pesawatMusuh1._x - 80);
_y = (_root.pesawatMusuh1._y - 35);
} else {
_x = 650;
_y = 150;
}
if (_root.enem._x > 600) {
if ((this.xlife._xscale < 0) and (this.xlife._xscale < 100)) {
_root.enem.xlife._xscale = 100;
} else if ((this.xlife._xscale >= 0) and (this.xlife._xscale < 100)) {
_root.enem.xlife._xscale = 100;
}
}
}
Instance of Symbol 691 MovieClip "pesawatMusuh" in Frame 38
onClipEvent (load) {
keluar = 0;
xlama = _x;
}
onClipEvent (enterFrame) {
if (((random(18) == 15) and (keluar == 0)) and (_root.pesawat.time1 >= 6)) {
keluar = 1;
give = 1;
_y = (random(250) + 40);
}
if (keluar == 1) {
if ((_root.bTime2._currentframe == 1) or (_root.bTime2._currentframe == 120)) {
_x = (_x - (10 + random(10)));
} else {
_x = (_x - 7);
}
if ((random(45 - (_root.level * 2)) == 3) or ((random(10) == 2) and (_root.pesawat._x > this._x))) {
arah = 1;
}
if ((random(45 - (_root.level * 2)) == 4) or ((random(10) == 5) and (_root.pesawat._x < this._x))) {
arah = 2;
}
if (random(40) == 4) {
arah = 0;
}
if (arah == 1) {
_y = (_y + 2.5);
} else if (arah == 2) {
_y = (_y - 2.5);
}
}
if (_x < -150) {
keluar = 0;
_root.score--;
_x = xlama;
}
if (((_currentframe == 1) && (random(6) == 4)) && (this._x < 600)) {
if (_root.sound1._currentframe == 1) {
_root.suaraLaser1.start();
} else {
_root.suaraLaser1.stop();
}
_root.jumlahSenjataMusuh++;
if (_root.jumlahSenjataMusuh > 100) {
_root.jumlahSenjataMusuh = 0;
}
duplicateMovieClip (_root.gunMusuh, "gunMusuh" + _root.jumlahSenjataMusuh, _root.kedalamanSenjataMusuh++);
_root["gunMusuh" + _root.jumlahSenjataMusuh]._x = _x + 10;
_root["gunMusuh" + _root.jumlahSenjataMusuh]._y = _y + 50;
}
if (hitTest(_root.pesawat) and (this._currentframe == 1)) {
_root.health.life._xscale = _root.health.life._xscale - 40;
if (_root.sehat > 0) {
_root.sehat = _root.sehat - 2;
} else {
_root.sehat = 0;
}
_root.tembak._x = _root.pesawat._x - 40;
_root.tembak._y = _root.pesawat._y;
if (_root.sound1._currentframe == 1) {
_root.burn.start();
} else {
_root.burn.stop();
}
this.gotoAndStop(2);
} else if (hitTest(_root.perisai)) {
this.gotoAndStop(2);
if (_root.sound1._currentframe == 1) {
_root.burn.start();
} else {
_root.burn.stop();
}
}
if (this.ledakan._currentframe == 4) {
keluar = 0;
_x = xlama;
if ((_root.bTime3._currentframe == 1) or (_root.bTime3._currentframe == 120)) {
_root.score = _root.score + 10;
} else {
_root.score = _root.score + 20;
}
this.gotoAndStop(1);
removeMovieClip(this);
}
}
Instance of Symbol 567 MovieClip "enem1" in Frame 38
onClipEvent (enterFrame) {
if (this.xlife._xscale >= 0) {
_x = (_root.pesawatMusuh._x - 80);
_y = (_root.pesawatMusuh._y - 35);
} else {
_x = 650;
_y = 150;
}
if (_root.enem1._x > 600) {
if ((this.xlife._xscale < 0) and (this.xlife._xscale < 100)) {
_root.enem1.xlife._xscale = 100;
} else if ((this.xlife._xscale >= 0) and (this.xlife._xscale < 100)) {
_root.enem1.xlife._xscale = 100;
}
}
}
Instance of Symbol 416 MovieClip in Frame 38
onClipEvent (enterFrame) {
_xscale = _root.pesawat.energi;
}
Frame 39
_root.health._visible = 0;
_root.sound1._visible = 0;
_root.api.stop;
if (_root.sound1._currentframe == 1) {
_root.win.start();
} else {
_root.win.stop();
}
Instance of Symbol 706 MovieClip in Frame 39
onClipEvent (load) {
keluar = 0;
xlama = _x;
}
onClipEvent (enterFrame) {
if (((random(70) == 15) and (keluar == 0)) and (_root.pesawat.time1 >= 6)) {
keluar = 1;
_y = (random(150) + 40);
}
if (keluar == 1) {
_x = (_x - 7);
if (_x < -150) {
keluar = 0;
_x = xlama;
}
}
}
Instance of Symbol 708 MovieClip in Frame 39
onClipEvent (load) {
keluar = 0;
xlama = _x;
}
onClipEvent (enterFrame) {
if (((random(70) == 15) and (keluar == 0)) and (_root.pesawat.time1 >= 6)) {
keluar = 1;
_y = (random(150) + 40);
}
if (keluar == 1) {
_x = (_x - 7);
if (_x < -150) {
keluar = 0;
_x = xlama;
}
}
}
Instance of Symbol 710 MovieClip in Frame 39
onClipEvent (load) {
keluar = 0;
xlama = _x;
}
onClipEvent (enterFrame) {
if (((random(70) == 15) and (keluar == 0)) and (_root.pesawat.time1 >= 6)) {
keluar = 1;
_y = (random(150) + 40);
}
if (keluar == 1) {
_x = (_x - 7);
if (_x < -150) {
keluar = 0;
_x = xlama;
}
}
}
Instance of Symbol 712 MovieClip in Frame 39
onClipEvent (load) {
keluar = 0;
xlama = _x;
}
onClipEvent (enterFrame) {
if (((random(70) == 15) and (keluar == 0)) and (_root.pesawat.time1 >= 6)) {
keluar = 1;
_y = (random(150) + 40);
}
if (keluar == 1) {
_x = (_x - 7);
if (_x < -150) {
keluar = 0;
_x = xlama;
}
}
}
Frame 40
_root.health._visible = 0;
_root.sound1._visible = 0;
_root.win.start();
if (_root.stat2 == 1) {
repair1._visible = 0;
repair2._visible = 0;
repair3._visible = 0;
}
Frame 41
_root.health._visible = 0;
_root.sound1._visible = 0;
if (_root.stat1 == 1) {
lLevel._visible = 0;
} else if (_root.stat1 == 2) {
autobot._visible = 0;
} else if (_root.stat1 == 3) {
low._visible = 0;
} else if (_root.stat1 == 4) {
power._visible = 0;
}
Frame 42
_root.health._visible = 0;
_root.sound1._visible = 0;
if (_root.stat == 1) {
wmachine._visible = 0;
wnuke._visible = 0;
wball._visible = 0;
wfire._visible = 0;
wice._visible = 0;
wandro._visible = 0;
}
Frame 43
stop();
iden = 5;
_root.sound1._visible = 1;
_root.health._visible = 1;
jumlahSenjataMusuh = 0;
armor = "Laser";
armor1 = "Empty";
jenisSenjata = 1;
kecepatanSenjata = 100;
level = 1;
bonus = "Empty";
kedalamanSenjataMusuh = 200;
_root.onEnterFrame = function () {
if ((_root.bTime._currentframe == 1) and ((((((_root.jenisSenjata == 2) or (_root.jenisSenjata == 3)) or (_root.jenisSenjata == 4)) or (_root.jenisSenjata == 5)) or (_root.jenisSenjata == 6)) or (_root.jenisSenjata == 7))) {
_root.jenisSenjata = 1;
_root.armor = "Laser";
_root.perisai._x == 100;
_root.perisai._y == 550;
}
if ((((_root.bTime1._currentframe == 1) and (_root.bTime2._currentframe == 1)) and (_root.bTime3._currentframe == 1)) and (_root.bTime4._currentframe == 1)) {
_root.bonus = "Empty";
}
if (_root.health.life._xscale < 0) {
_root.pesawat.gotoAndStop("2");
_root.sehat = _root.sehat - 5;
unloadMovie ("api");
}
if (Key.isDown(16)) {
if (sp == 0) {
_root.jenisSenjata = 1;
} else if (sp == 1) {
if (_root.jenisSenjata < 8) {
_root.jenisSenjata = 3;
}
} else if (sp == 2) {
if (_root.jenisSenjata < 8) {
_root.jenisSenjata = 2;
}
} else if (sp == 3) {
if (_root.jenisSenjata < 8) {
_root.jenisSenjata = 4;
}
} else if (sp == 4) {
if (_root.jenisSenjata < 8) {
_root.jenisSenjata = 5;
}
} else if (sp == 5) {
if (_root.jenisSenjata < 8) {
_root.jenisSenjata = 6;
}
} else if (sp == 6) {
if (_root.jenisSenjata < 8) {
_root.jenisSenjata = 7;
}
}
}
if ((_root.health.life._xscale < 100) and (_root.auto == 1)) {
_root.health.life._xscale = _root.health.life._xscale + 0.05;
}
if (((_root.kesempatan > 0) and (_root.health.life._xscale < 0)) and (_root.pesawat.ledakan._currentframe == 4)) {
_root.pesawat.gotoAndStop(1);
_root.health.life._xscale = _root.health.life._xscale + 60;
_root.bonus = "Shield";
_root.bTime1.gotoAndPlay("lima");
_root.perisai._visible = 1;
_root.perisai._x = _root.pesawat._x;
_root.perisai._y = _root.pesawat._y;
} else if (((_root.kesempatan == 0) and (_root.health.life._xscale < 0)) and (_root.pesawat.ledakan._currentframe == 4)) {
gotoAndStop ("gameOver");
_root.auto = 0;
_root.shipLow = 0;
_root.gunPower = 0;
_root.sp = 0;
_root.stat = 0;
_root.stat1 = 0;
_root.stat2 = 0;
}
if ((_root.gunPower == 1) and (_root.pesawat.energi < 15)) {
_root.pesawat.energi = 15;
}
if (_root.jenisSenjata == 3) {
_root.pesawat.energi = 100;
}
if ((_root.pesawat.time == 0) and (_root.kesempatan > 0)) {
_root.gotoAndStop("finish");
_root.auto = 0;
_root.shipLow = 0;
_root.gunPower = 0;
_root.sp = 0;
_root.stat = 0;
_root.stat1 = 0;
_root.stat2 = 0;
}
};
Instance of Symbol 743 MovieClip "bangunan" in Frame 43
onClipEvent (load) {
xawal = 700;
kecepatan = 7;
keluar = 0;
_visible = 0;
}
onClipEvent (enterFrame) {
if (((((random(30) == 5) and (keluar == 0)) and (_root.bangunan3.keluar == 0)) and (_root.bangunan2.keluar == 0)) and (_root.pesawat.time1 >= 6)) {
keluar = 1;
_visible = 1;
}
if (keluar == 1) {
_x = (_x - kecepatan);
if (_x < -300) {
_x = xawal;
keluar = 0;
_visible = 0;
}
}
}
Instance of Symbol 745 MovieClip "bangunan2" in Frame 43
onClipEvent (load) {
xawal = 700;
kecepatan = 7;
keluar = 0;
_visible = 0;
}
onClipEvent (enterFrame) {
if (((((random(30) == 5) and (keluar == 0)) and (_root.bangunan.keluar == 0)) and (_root.bangunan3.keluar == 0)) and (_root.pesawat.time1 >= 6)) {
keluar = 1;
_visible = 1;
}
if (keluar == 1) {
_x = (_x - kecepatan);
if (_x < -300) {
_x = xawal;
keluar = 0;
_visible = 0;
}
}
}
Instance of Symbol 747 MovieClip "bangunan3" in Frame 43
onClipEvent (load) {
xawal = 700;
kecepatan = 7;
keluar = 0;
_visible = 0;
}
onClipEvent (enterFrame) {
if (((((random(30) == 5) and (keluar == 0)) and (_root.bangunan.keluar == 0)) and (_root.bangunan2.keluar == 0)) and (_root.pesawat.time1 >= 6)) {
keluar = 1;
_visible = 1;
}
if (keluar == 1) {
_x = (_x - kecepatan);
if (_x < -300) {
_x = xawal;
keluar = 0;
_visible = 0;
}
}
}
Instance of Symbol 706 MovieClip in Frame 43
onClipEvent (load) {
keluar = 0;
xlama = _x;
}
onClipEvent (enterFrame) {
if (((random(70) == 15) and (keluar == 0)) and (_root.pesawat.time1 >= 6)) {
keluar = 1;
_y = (random(150) + 40);
}
if (keluar == 1) {
_x = (_x - 7);
if (_x < -150) {
keluar = 0;
_x = xlama;
}
}
}
Instance of Symbol 708 MovieClip in Frame 43
onClipEvent (load) {
keluar = 0;
xlama = _x;
}
onClipEvent (enterFrame) {
if (((random(70) == 15) and (keluar == 0)) and (_root.pesawat.time1 >= 6)) {
keluar = 1;
_y = (random(150) + 40);
}
if (keluar == 1) {
_x = (_x - 7);
if (_x < -150) {
keluar = 0;
_x = xlama;
}
}
}
Instance of Symbol 710 MovieClip in Frame 43
onClipEvent (load) {
keluar = 0;
xlama = _x;
}
onClipEvent (enterFrame) {
if (((random(70) == 15) and (keluar == 0)) and (_root.pesawat.time1 >= 6)) {
keluar = 1;
_y = (random(150) + 40);
}
if (keluar == 1) {
_x = (_x - 7);
if (_x < -150) {
keluar = 0;
_x = xlama;
}
}
}
Instance of Symbol 712 MovieClip in Frame 43
onClipEvent (load) {
keluar = 0;
xlama = _x;
}
onClipEvent (enterFrame) {
if (((random(70) == 15) and (keluar == 0)) and (_root.pesawat.time1 >= 6)) {
keluar = 1;
_y = (random(150) + 40);
}
if (keluar == 1) {
_x = (_x - 7);
if (_x < -150) {
keluar = 0;
_x = xlama;
}
}
}
Instance of Symbol 321 MovieClip "nuke" in Frame 43
onClipEvent (load) {
keluar = 0;
xlama = _x;
}
onClipEvent (enterFrame) {
if ((((((((random(900) == 47) and (keluar == 0)) and (_root.machine.keluar == 0)) and (_root.ball.keluar == 0)) and (_root.fire.keluar == 0)) and (_root.ice.keluar == 0)) and (_root.andromeda.keluar == 0)) and (_root.pesawat.time1 >= 6)) {
keluar = 1;
_y = (random(250) + 40);
}
if (keluar == 1) {
_x = (_x - 7);
if (_x < -100) {
keluar = 0;
_x = xlama;
}
}
if (hitTest(_root.pesawat) && (_root.pesawat._currentframe == 1)) {
if (_root.sound1._currentframe == 1) {
_root.bonusSound.start();
} else {
_root.bonusSound.stop();
}
keluar = 0;
_x = xlama;
_root.armor = "Nuke";
if (_root.jenisSenjata < 8) {
_root.jenisSenjata = 2;
}
_root.bTime.gotoAndPlay("lima");
_root.pesawat.energi = 100;
}
}
Instance of Symbol 328 MovieClip "shield" in Frame 43
onClipEvent (load) {
keluar = 0;
xlama = _x;
}
onClipEvent (enterFrame) {
if ((((((random(900) == 47) and (keluar == 0)) and (_root.point.keluar == 0)) and (_root.aid.keluar == 0)) and (_root.speed.keluar == 0)) and (_root.pesawat.time1 >= 6)) {
keluar = 1;
_y = (random(250) + 40);
}
if (keluar == 1) {
_x = (_x - 7);
if (_x < -100) {
keluar = 0;
_x = xlama;
}
}
if (hitTest(_root.pesawat) && (_root.pesawat._currentframe == 1)) {
if (_root.sound1._currentframe == 1) {
_root.bonusSound.start();
} else {
_root.bonusSound.stop();
}
_root.bonus = "Shield";
keluar = 0;
_x = xlama;
_root.bTime1.gotoAndPlay("lima");
_root.bTime2.gotoAndStop("nol");
_root.bTime3.gotoAndStop("nol");
_root.bTime4.gotoAndStop("nol");
_root.perisai._visible = 1;
_root.perisai._x = _root.pesawat._x;
_root.perisai._y = _root.pesawat._y;
}
}
Instance of Symbol 330 MovieClip "machine" in Frame 43
onClipEvent (load) {
keluar = 0;
xlama = _x;
}
onClipEvent (enterFrame) {
if ((((((((random(900) == 47) and (keluar == 0)) and (_root.nuke.keluar == 0)) and (_root.ball.keluar == 0)) and (_root.fire.keluar == 0)) and (_root.ice.keluar == 0)) and (_root.andromeda.keluar == 0)) and (_root.pesawat.time1 >= 6)) {
keluar = 1;
_y = (random(250) + 40);
}
if (keluar == 1) {
_x = (_x - 7);
if (_x < -100) {
keluar = 0;
_x = xlama;
}
}
if (hitTest(_root.pesawat) && (_root.pesawat._currentframe == 1)) {
if (_root.sound1._currentframe == 1) {
_root.bonusSound.start();
} else {
_root.bonusSound.stop();
}
keluar = 0;
_x = xlama;
_root.armor = "Machine Gun";
if (_root.jenisSenjata < 8) {
_root.jenisSenjata = 3;
}
_root.bTime.gotoAndPlay("lima");
_root.pesawat.energi = 100;
}
}
Instance of Symbol 332 MovieClip "ball" in Frame 43
onClipEvent (load) {
keluar = 0;
xlama = _x;
}
onClipEvent (enterFrame) {
if ((((((((random(900) == 47) and (keluar == 0)) and (_root.machine.keluar == 0)) and (_root.nuke.keluar == 0)) and (_root.fire.keluar == 0)) and (_root.ice.keluar == 0)) and (_root.andromeda.keluar == 0)) and (_root.pesawat.time1 >= 6)) {
keluar = 1;
_y = (random(250) + 40);
}
if (keluar == 1) {
_x = (_x - 7);
if (_x < -100) {
keluar = 0;
_x = xlama;
}
}
if (hitTest(_root.pesawat) && (_root.pesawat._currentframe == 1)) {
if (_root.sound1._currentframe == 1) {
_root.bonusSound.start();
} else {
_root.bonusSound.stop();
}
keluar = 0;
_x = xlama;
_root.armor = "Ball Laser";
if (_root.jenisSenjata < 8) {
_root.jenisSenjata = 4;
}
_root.bTime.gotoAndPlay("lima");
_root.pesawat.energi = 100;
}
}
Instance of Symbol 334 MovieClip "fire" in Frame 43
onClipEvent (load) {
keluar = 0;
xlama = _x;
}
onClipEvent (enterFrame) {
if ((((((((random(900) == 47) and (keluar == 0)) and (_root.machine.keluar == 0)) and (_root.ball.keluar == 0)) and (_root.nuke.keluar == 0)) and (_root.ice.keluar == 0)) and (_root.andromeda.keluar == 0)) and (_root.pesawat.time1 >= 6)) {
keluar = 1;
_y = (random(250) + 40);
}
if (keluar == 1) {
_x = (_x - 7);
if (_x < -100) {
keluar = 0;
_x = xlama;
}
}
if (hitTest(_root.pesawat) && (_root.pesawat._currentframe == 1)) {
if (_root.sound1._currentframe == 1) {
_root.bonusSound.start();
} else {
_root.bonusSound.stop();
}
keluar = 0;
_x = xlama;
_root.armor = "Fire Laser";
if (_root.jenisSenjata < 8) {
_root.jenisSenjata = 5;
}
_root.bTime.gotoAndPlay("lima");
_root.pesawat.energi = 100;
}
}
Instance of Symbol 336 MovieClip "ice" in Frame 43
onClipEvent (load) {
keluar = 0;
xlama = _x;
}
onClipEvent (enterFrame) {
if ((((((((random(900) == 47) and (keluar == 0)) and (_root.machine.keluar == 0)) and (_root.ball.keluar == 0)) and (_root.fire.keluar == 0)) and (_root.nuke.keluar == 0)) and (_root.andromeda.keluar == 0)) and (_root.pesawat.time1 >= 6)) {
keluar = 1;
_y = (random(250) + 40);
}
if (keluar == 1) {
_x = (_x - 7);
if (_x < -100) {
keluar = 0;
_x = xlama;
}
}
if (hitTest(_root.pesawat) && (_root.pesawat._currentframe == 1)) {
if (_root.sound1._currentframe == 1) {
_root.bonusSound.start();
} else {
_root.bonusSound.stop();
}
keluar = 0;
_x = xlama;
_root.armor = "Ice Laser";
if (_root.jenisSenjata < 8) {
_root.jenisSenjata = 6;
}
_root.bTime.gotoAndPlay("lima");
_root.pesawat.energi = 100;
}
}
Instance of Symbol 338 MovieClip "andromeda" in Frame 43
onClipEvent (load) {
keluar = 0;
xlama = _x;
}
onClipEvent (enterFrame) {
if ((((((((random(900) == 47) and (keluar == 0)) and (_root.machine.keluar == 0)) and (_root.ball.keluar == 0)) and (_root.fire.keluar == 0)) and (_root.ice.keluar == 0)) and (_root.nuke.keluar == 0)) and (_root.pesawat.time1 >= 6)) {
keluar = 1;
_y = (random(250) + 40);
}
if (keluar == 1) {
_x = (_x - 7);
if (_x < -100) {
keluar = 0;
_x = xlama;
}
}
if (hitTest(_root.pesawat) && (_root.pesawat._currentframe == 1)) {
if (_root.sound1._currentframe == 1) {
_root.bonusSound.start();
} else {
_root.bonusSound.stop();
}
keluar = 0;
_x = xlama;
_root.armor = "Andromeda";
if (_root.jenisSenjata < 8) {
_root.jenisSenjata = 7;
}
_root.bTime.gotoAndPlay("lima");
_root.pesawat.energi = 100;
}
}
Instance of Symbol 340 MovieClip "speed" in Frame 43
onClipEvent (load) {
keluar = 0;
xlama = _x;
}
onClipEvent (enterFrame) {
if ((((((random(900) == 47) and (keluar == 0)) and (_root.point.keluar == 0)) and (_root.aid.keluar == 0)) and (_root.shield.keluar == 0)) and (_root.pesawat.time1 >= 6)) {
keluar = 1;
_y = (random(250) + 40);
}
if (keluar == 1) {
_x = (_x - 7);
if (_x < -100) {
keluar = 0;
_x = xlama;
}
}
if ((((hitTest(_root.pesawat) && (_root.pesawat._currentframe == 1)) and (_root.point.keluar == 0)) and (_root.aid.keluar == 0)) and (_root.shield.keluar == 0)) {
if (_root.sound1._currentframe == 1) {
_root.bonusSound.start();
} else {
_root.bonusSound.stop();
}
keluar = 0;
_x = xlama;
_root.bonus = "Speed";
_root.bTime2.gotoAndPlay("lima");
_root.bTime1.gotoAndStop("nol");
_root.bTime3.gotoAndStop("nol");
_root.bTime4.gotoAndStop("nol");
}
}
Instance of Symbol 342 MovieClip "aid" in Frame 43
onClipEvent (load) {
keluar = 0;
xlama = _x;
}
onClipEvent (enterFrame) {
if ((((((random(900) == 47) and (keluar == 0)) and (_root.point.keluar == 0)) and (_root.speed.keluar == 0)) and (_root.shield.keluar == 0)) and (_root.pesawat.time1 >= 6)) {
keluar = 1;
_y = (random(250) + 40);
}
if (keluar == 1) {
_x = (_x - 7);
if (_x < -100) {
keluar = 0;
_x = xlama;
}
}
if (hitTest(_root.pesawat) && (_root.pesawat._currentframe == 1)) {
if (_root.sound1._currentframe == 1) {
_root.bonusSound.start();
} else {
_root.bonusSound.stop();
}
if (_root.sehat <= 100) {
_root.sehat = _root.sehat + 1;
} else if (_root.sehat > 100) {
_root.sehat = 100;
}
keluar = 0;
if (_root.health.life._xscale < 100) {
_root.health.life._xscale = _root.health.life._xscale + 12;
}
_x = xlama;
_root.bonus = "repair";
_root.bTime4.gotoAndPlay("lima");
_root.bTime1.gotoAndStop("nol");
_root.bTime2.gotoAndStop("nol");
_root.bTime3.gotoAndStop("nol");
_root.pesawat.energi = 100;
}
}
Instance of Symbol 343 MovieClip "point" in Frame 43
onClipEvent (load) {
keluar = 0;
xlama = _x;
}
onClipEvent (enterFrame) {
if ((((((random(900) == 47) and (keluar == 0)) and (_root.speed.keluar == 0)) and (_root.aid.keluar == 0)) and (_root.shield.keluar == 0)) and (_root.pesawat.time1 >= 6)) {
keluar = 1;
_y = (random(250) + 40);
}
if (keluar == 1) {
_x = (_x - 7);
if (_x < -100) {
keluar = 0;
_x = xlama;
}
}
if (hitTest(_root.pesawat) && (_root.pesawat._currentframe == 1)) {
if (_root.sound1._currentframe == 1) {
_root.bonusSound.start();
} else {
_root.bonusSound.stop();
}
keluar = 0;
_x = xlama;
_root.bonus = "2xPoint";
_root.bTime3.gotoAndPlay("lima");
_root.bTime1.gotoAndStop("nol");
_root.bTime2.gotoAndStop("nol");
_root.bTime4.gotoAndStop("nol");
}
}
Instance of Symbol 355 MovieClip "pesawat" in Frame 43
onClipEvent (load) {
xlama = _x;
ylama = _y;
speed = 10;
energi = 100;
life = 100;
mati = 0;
time1 = 0;
times1 = 0;
time = 150;
times = 0;
time2 = 11;
times2 = 0;
jumlahSenjata = 0;
kedalamanSenjata = 100;
}
onClipEvent (enterFrame) {
times = times + 1;
times1 = times1 + 1;
times2 = times2 + 1;
if (times1 >= 12) {
times1 = 0;
time1 = time1 + 1;
}
if ((times >= 15) and (time1 > 6)) {
times = 0;
time = time - 1;
}
if (((times2 >= 15) and (time1 > 6)) and (time <= 10)) {
times2 = 0;
time2 = time2 - 1;
_root.akhir._x = 300;
_root.akhir._y = 150;
}
energi++;
if (energi >= 100) {
energi = 100;
}
xlama = _x;
ylama = _y;
if (Key.isDown(38) and (this._y > 40)) {
_y = (_y - speed);
}
if (Key.isDown(40) and (this._y < 300)) {
_y = (_y + speed);
}
if (Key.isDown(39)) {
_x = (_x + speed);
}
if (Key.isDown(37)) {
_x = (_x - speed);
}
if (_x > 500) {
_x = xlama;
}
if (_x < 50) {
_x = xlama;
}
if (Key.isDown(32)) {
if ((energi >= (5 + (2 * _root.jenisSenjata))) && (_currentframe == 1)) {
if (_root.sound1._currentframe == 1) {
_root.suaraLaser.start();
} else {
_root.suaraLaser.stop();
}
energi = energi - (5 + (2 * _root.jenisSenjata));
jumlahSenjata++;
duplicateMovieClip (_root.laser, "laser" + jumlahSenjata, kedalamanSenjata++);
if (kedalamanSenjata > 200) {
kedalamanSenjata = 100;
jumlahSenjata = 0;
}
}
}
}
Instance of Symbol 363 MovieClip "api" in Frame 43
onClipEvent (load) {
_visible = 0;
}
onClipEvent (enterFrame) {
if (_root.health.life._xscale < 40) {
_visible = 1;
_x = _root.pesawat._x;
_y = (_root.pesawat._y + 20);
} else {
_visible = 0;
}
}
Instance of Symbol 750 MovieClip "gunMusuh" in Frame 43
onClipEvent (enterFrame) {
if (_name != "gunMusuh") {
_x = (_x - 25);
if (_x < -100) {
removeMovieClip(this);
}
if (hitTest(_root.pesawat) && (_root.pesawat._currentframe == 1)) {
if (shipLow >= 1) {
_root.health.life._xscale = _root.health.life._xscale - 20;
if (_root.sehat > 0) {
_root.sehat = _root.sehat - 1;
} else if (_root.sehat < 0) {
_root.sehat = 0;
}
} else if (shipLow <= 0) {
_root.health.life._xscale = _root.health.life._xscale - 35;
if (_root.sehat > 0) {
_root.sehat = _root.sehat - 1;
} else {
_root.sehat = 0;
}
}
removeMovieClip(this);
_root.tembak._x = _root.pesawat._x;
_root.tembak._y = _root.pesawat._y;
if (_root.sound1._currentframe == 1) {
_root.bong.start();
} else {
_root.bong.stop();
}
} else if (hitTest(_root.perisai)) {
removeMovieClip(this);
}
}
}
Instance of Symbol 380 MovieClip "laser" in Frame 43
onClipEvent (load) {
_x = (_root.pesawat._x + 35);
_y = (_root.pesawat._y + 6);
jenis.gotoAndStop(_root.jenisSenjata);
}
onClipEvent (enterFrame) {
if (_name != "laser") {
_x = (_x + _root.kecepatanSenjata);
if (_x > 650) {
removeMovieClip(this);
}
if ((hitTest(_root.pesawatMusuh1) and (_root.pesawatMusuh1._currentframe == 1)) and (_root.pesawatMusuh1._x < 600)) {
_root.tembak1._x = _root.pesawatMusuh1._x;
_root.tembak1._y = _root.pesawatMusuh1._y;
if (_root.sound1._currentframe == 1) {
_root.bong.start();
} else {
_root.bong.stop();
}
if (_root.laserLevel >= 5) {
_root.enem.xlife._xscale = _root.enem.xlife._xscale - 15;
} else if (_root.laserLevel < 5) {
_root.enem.xlife._xscale = _root.enem.xlife._xscale - 10;
}
if (_root.enem.xlife._xscale < 0) {
_root.pesawatMusuh1.gotoAndStop(2);
if (_root.sound1._currentframe == 1) {
_root.burn.start();
} else {
_root.burn.stop();
}
}
removeMovieClip(this);
}
} else {
_y = 500;
}
}
Instance of Symbol 327 MovieClip "perisai" in Frame 43
onClipEvent (load) {
_visible = 1;
_y = 550;
_x = 100;
}
onClipEvent (enterFrame) {
if ((_root.bTime1._currentframe == 1) or (_root.bTime1._currentframe == 120)) {
_visible = 1;
_y = 550;
_x = 100;
} else {
_visible = 1;
_x = _root.pesawat._x;
_y = (_root.pesawat._y + 20);
}
}
Instance of Symbol 754 MovieClip "pesawatMusuh1" in Frame 43
onClipEvent (load) {
keluar = 0;
xlama = _x;
}
onClipEvent (enterFrame) {
if (((random(17) == 15) and (keluar == 0)) and (_root.pesawat.time1 >= 6)) {
keluar = 1;
give = 1;
_y = (random(250) + 40);
}
if (keluar == 1) {
if ((_root.bTime2._currentframe == 1) or (_root.bTime2._currentframe == 120)) {
_x = (_x - (10 + random(5)));
} else {
_x = (_x - 7);
}
if ((random(45 - (_root.level * 2)) == 3) or ((random(10) == 2) and (_root.pesawat._x > this._x))) {
arah = 1;
}
if ((random(45 - (_root.level * 2)) == 4) or ((random(10) == 5) and (_root.pesawat._x < this._x))) {
arah = 2;
}
if (random(40) == 4) {
arah = 0;
}
if (arah == 1) {
_y = (_y + 2);
} else if (arah == 2) {
_y = (_y - 2);
}
}
if (_x < -150) {
keluar = 0;
_root.score--;
_x = xlama;
}
if (((_currentframe == 1) && (random(6) == 4)) && (this._x < 600)) {
if (_root.sound1._currentframe == 1) {
_root.suaraLaser1.start();
} else {
_root.suaraLaser1.stop();
}
_root.jumlahSenjataMusuh++;
if (_root.jumlahSenjataMusuh > 100) {
_root.jumlahSenjataMusuh = 0;
}
duplicateMovieClip (_root.gunMusuh, "gunMusuh" + _root.jumlahSenjataMusuh, _root.kedalamanSenjataMusuh++);
_root["gunMusuh" + _root.jumlahSenjataMusuh]._x = _x + 10;
_root["gunMusuh" + _root.jumlahSenjataMusuh]._y = _y + 50;
}
if (hitTest(_root.pesawat) and (this._currentframe == 1)) {
_root.health.life._xscale = _root.health.life._xscale - 50;
if (_root.sehat > 0) {
_root.sehat = _root.sehat - 2;
} else {
_root.sehat = 0;
}
_root.tembak._x = _root.pesawat._x - 40;
_root.tembak._y = _root.pesawat._y;
_root.tembak1._x = _root.pesawatMusuh1._x;
_root.tembak1._y = _root.pesawatMusuh1._y;
if (_root.sound1._currentframe == 1) {
_root.burn.start();
} else {
_root.burn.stop();
}
this.gotoAndStop(2);
} else if (hitTest(_root.perisai)) {
this.gotoAndStop(2);
if (_root.sound1._currentframe == 1) {
_root.burn.start();
} else {
_root.burn.stop();
}
}
if (this.ledakan._currentframe == 4) {
keluar = 0;
_x = xlama;
if ((_root.bTime3._currentframe == 1) or (_root.bTime3._currentframe == 120)) {
_root.score = _root.score + 10;
} else {
_root.score = _root.score + 20;
}
this.gotoAndStop(1);
removeMovieClip(this);
}
}
Instance of Symbol 567 MovieClip "enem" in Frame 43
onClipEvent (enterFrame) {
if (this.xlife._xscale >= 0) {
_x = (_root.pesawatMusuh1._x - 80);
_y = (_root.pesawatMusuh1._y - 35);
} else {
_x = 650;
_y = 150;
}
if (_root.enem._x > 600) {
if ((this.xlife._xscale < 0) and (this.xlife._xscale < 100)) {
_root.enem.xlife._xscale = 100;
} else if ((this.xlife._xscale >= 0) and (this.xlife._xscale < 100)) {
_root.enem.xlife._xscale = 100;
}
}
}
Instance of Symbol 416 MovieClip in Frame 43
onClipEvent (enterFrame) {
_xscale = _root.pesawat.energi;
}
Frame 44
function rekamData(nama, score) {
Cookies = SharedObject.getLocal("hgscore", "/");
hgList = new Array();
if (Cookies.data.myList != null) {
hgList = Cookies.data.myList;
}
hgList.push({point:_root.score, user:nama});
hgList.sortOn("point", Array.NUMERIC | Array.DESCENDING);
Cookies.data.myList = hgList;
Cookies.flush();
}
function loadData() {
Cookies = SharedObject.getLocal("hgscore", "/");
hgList = new Array();
hgList = Cookies.data.myList;
highscore.htmlText = "";
if (hgList == null) {
hgList = new Array({user:"pla", point:0}, {user:"pla", point:0}, {user:"pla", point:0}, {user:"pla", point:0}, {user:"pla", point:0});
Cookies.data.myList = hgList;
Cookies.flush();
} else {
var _local1 = 0;
while (_local1 < 5) {
if (hgList[_local1].user != null) {
highscore.htmlText = highscore.htmlText + (((((_local1 + 1) + " ") + hgList[_local1].user) + " ") + hgList[_local1].point);
}
_local1++;
}
}
}
Selection.setFocus("nama");
_root.sound1._visible = 0;
_root.win.start();
stop();
loadData();
Symbol 17 Button
on (release) {
removeMovieClip(this);
}
Symbol 26 Button
on (release) {
removeMovieClip(this);
_root.gotoAndStop("main");
}
Symbol 29 Button
on (release) {
removeMovieClip(this);
}
Symbol 32 Button
on (release) {
removeMovieClip(this);
if (_root.score <= 0) {
_root.gotoAndStop("main");
} else if (_root.score > 0) {
_root.gotoAndStop("gameOver");
Selection.setFocus("nama");
}
}
Symbol 37 Button
on (release) {
getURL ("http://www.freshnewgames.com", "_blank");
}
Symbol 69 Button
on (release) {
play();
}
Symbol 71 MovieClip Frame 1
stop();
Symbol 71 MovieClip Frame 74
_root.play();
stop();
Symbol 111 MovieClip Frame 335
_root.play();
Symbol 115 Button
on (release) {
gotoAndPlay ("main");
}
Symbol 123 Button
on (release) {
gotoAndStop ("stage1");
}
Symbol 126 Button
on (release) {
gotoAndStop ("help");
}
Symbol 129 Button
on (release) {
gotoAndStop ("high");
}
Symbol 132 Button
on (release) {
getURL ("http://www.freshnewgames.com", "_blank");
}
Symbol 135 Button
on (release) {
gotoAndStop ("credit");
}
Symbol 166 MovieClip Frame 33
gotoAndPlay (2);
Symbol 168 Button
on (release) {
_root.sound.gotoAndStop("stop");
_root.sound1.gotoAndStop("stop");
_root.statSound = 1;
_root.bg.stop();
}
Symbol 170 Button
on (release) {
_root.sound.gotoAndStop("play");
_root.sound1.gotoAndStop("play");
_root.statSound = 0;
_root.bg.start(0, 100000000000);
}
Symbol 171 MovieClip Frame 1
stop();
Symbol 171 MovieClip Frame 2
stop();
Symbol 175 Button
on (release) {
getURL ("http://www.freshnewgames.com/webmaster_games.html", "_blank");
}
Symbol 190 Button
on (release) {
gotoAndStop ("main");
}
Symbol 194 Button
on (release) {
gotoAndStop ("gamePlay");
}
Symbol 197 Button
on (release) {
gotoAndStop ("point");
}
Symbol 200 Button
on (release) {
gotoAndStop ("bonus");
}
Symbol 203 Button
on (release) {
gotoAndStop ("control");
}
Symbol 206 Button
on (release) {
gotoAndStop ("shop");
}
Symbol 209 Button
on (release) {
gotoAndStop ("stra");
}
Symbol 215 Button
on (release) {
gotoAndStop ("help");
}
Symbol 271 Button
on (release) {
attachMovie("ru3", "ru3", 100, {x:0, y:0});
}
Symbol 274 Button
on (release) {
rekamData(nama.text, nilai.text);
loadData();
gotoAndStop ("high");
}
Symbol 277 Button
on (release) {
_root.api.stop("api");
if (_root.iden == 1) {
gotoAndStop ("stage1");
_root.score = 0;
_root.kesempatan = 1;
_root.health.life._xscale = 100;
_root.sehat = 50;
} else if (_root.iden == 2) {
gotoAndStop ("stage2");
_root.score = 0;
_root.kesempatan = 1;
_root.health.life._xscale = 100;
_root.sehat = 50;
} else if (_root.iden == 3) {
gotoAndStop ("stage3");
_root.score = 0;
_root.kesempatan = 1;
_root.health.life._xscale = 100;
_root.sehat = 50;
} else if (_root.iden == 4) {
gotoAndStop ("stage4");
_root.score = 0;
_root.kesempatan = 1;
_root.health.life._xscale = 100;
_root.sehat = 50;
} else if (_root.iden == 5) {
gotoAndStop ("stage5");
_root.score = 0;
_root.kesempatan = 1;
_root.health.life._xscale = 100;
_root.sehat = 50;
} else {
gotoAndStop ("stage1");
_root.score = 0;
_root.kesempatan = 1;
_root.health.life._xscale = 100;
_root.sehat = 50;
}
}
Symbol 304 Button
on (release) {
attachMovie("ru", "ru", 100, {x:0, y:0});
}
Symbol 308 Button
on (release) {
gotoAndStop ("play1");
}
Symbol 354 MovieClip Frame 4
stop();
Symbol 355 MovieClip Frame 1
stop();
Symbol 355 MovieClip Frame 2
_root.kesempatan = _root.kesempatan - 1;
Symbol 360 MovieClip Frame 1
stop();
Symbol 381 MovieClip Frame 1
stop();
Symbol 383 MovieClip Frame 19
Symbol 383 MovieClip Frame 20
this._x = 450;
this._y = 450;
Symbol 410 MovieClip Frame 1
stop();
Symbol 420 MovieClip Frame 1
stop();
Symbol 429 MovieClip Frame 80
unloadMovie (this);
Symbol 465 Button
on (release) {
gotoAndStop ("play2");
}
Symbol 474 Button
on (release) {
gotoAndStop ("shop1");
}
Symbol 480 Button
on (release) {
gotoAndStop ("stage2");
}
Symbol 490 Button
on (release) {
gotoAndStop ("shop1");
}
Symbol 493 Button
on (release) {
gotoAndStop ("upgrade");
}
Symbol 496 Button
on (release) {
gotoAndStop ("purchase");
}
Symbol 501 Button
on (release) {
if (((_root.kesempatan < 3) or (_root.health.life._xscale < 100)) and (_root.score >= 200)) {
_root.kesempatan = 3;
_root.stat2 = 1;
_root.score = _root.score - 200;
_root.sehat = 100;
_root.health.life._xscale = 100;
repair1._visible = 0;
repair2._visible = 0;
repair3._visible = 0;
} else if ((_root.kesempatan == 3) and (_root.health.life._xscale == 100)) {
attachMovie("ru2", "ru2", 100, {x:0, y:0});
} else {
attachMovie("ru1", "ru1", 100, {x:0, y:0});
}
}
Symbol 506 Button
on (release) {
if (((_root.kesempatan <= 3) or (_root.health.life._xscale < 100)) and (_root.score >= 150)) {
_root.stat2 = 1;
if (_root.kesempatan == 3) {
_root.kesempatan = 3;
} else {
_root.kesempatan = _root.kesempatan + 1;
}
_root.score = _root.score - 150;
_root.sehat = _root.sehat + 25;
if (_root.sehat >= 100) {
_root.sehat = 100;
}
if (_root.health.life._xscale >= 100) {
_root.health.life._xscale = 100;
} else {
_root.health.life._xscale = _root.health.life._xscale + 50;
}
repair1._visible = 0;
repair2._visible = 0;
repair3._visible = 0;
} else if ((_root.kesempatan == 3) and (_root.health.life._xscale == 100)) {
attachMovie("ru2", "ru2", 100, {x:0, y:0});
} else {
attachMovie("ru1", "ru1", 100, {x:0, y:0});
}
}
Symbol 511 Button
on (release) {
if (((_root.kesempatan < 3) or (_root.health.life._xscale < 100)) and (_root.score >= 50)) {
_root.stat2 = 1;
_root.score = _root.score - 50;
_root.sehat = _root.sehat + 5;
if (_root.sehat >= 100) {
_root.sehat = 100;
}
if (_root.health.life._xscale >= 100) {
_root.health.life._xscale = 100;
} else {
_root.health.life._xscale = _root.health.life._xscale + 40;
}
repair1._visible = 0;
repair2._visible = 0;
repair3._visible = 0;
} else if ((_root.kesempatan == 3) and (_root.health.life._xscale == 100)) {
attachMovie("ru2", "ru2", 100, {x:0, y:0});
} else {
attachMovie("ru1", "ru1", 100, {x:0, y:0});
}
}
Symbol 516 Button
on (release) {
gotoAndStop ("shop1");
}
Symbol 517 Button
on (release) {
gotoAndStop ("upgrade");
}
Symbol 520 Button
on (release) {
if (_root.score >= 200) {
_root.laserLevel++;
_root.stat1 = 1;
_root.score = _root.score - 200;
lLevel._visible = 0;
} else {
attachMovie("ru1", "ru1", 100, {x:0, y:0});
}
}
Symbol 525 Button
on (release) {
if (_root.score >= 250) {
_root.auto = 1;
_root.stat1 = 2;
_root.score = _root.score - 250;
autobot._visible = 0;
} else {
attachMovie("ru1", "ru1", 100, {x:0, y:0});
}
}
Symbol 530 Button
on (release) {
if (_root.score >= 300) {
_root.shipLow = 1;
_root.stat1 = 3;
_root.score = _root.score - 300;
low._visible = 0;
} else {
attachMovie("ru1", "ru1", 100, {x:0, y:0});
}
}
Symbol 535 Button
on (release) {
if (_root.score >= 220) {
_root.gunPower = 1;
_root.stat1 = 4;
_root.score = _root.score - 220;
power._visible = 0;
} else {
attachMovie("ru1", "ru1", 100, {x:0, y:0});
}
}
Symbol 538 Button
on (release) {
gotoAndStop ("purchase");
}
Symbol 541 Button
on (release) {
if (_root.score >= 350) {
_root.sp = 1;
_root.stat = 1;
_root.score = _root.score - 350;
wmachine._visible = 0;
wnuke._visible = 0;
wball._visible = 0;
wfire._visible = 0;
wice._visible = 0;
wandro._visible = 0;
} else {
attachMovie("ru1", "ru1", 100, {x:0, y:0});
}
}
Symbol 544 Button
on (release) {
if (_root.score >= 350) {
_root.sp = 2;
_root.stat = 1;
_root.score = _root.score - 350;
wmachine._visible = 0;
wnuke._visible = 0;
wball._visible = 0;
wfire._visible = 0;
wice._visible = 0;
wandro._visible = 0;
} else {
attachMovie("ru1", "ru1", 100, {x:0, y:0});
}
}
Symbol 547 Button
on (release) {
if (_root.score >= 350) {
_root.sp = 3;
_root.stat = 1;
_root.score = _root.score - 350;
wmachine._visible = 0;
wnuke._visible = 0;
wball._visible = 0;
wfire._visible = 0;
wice._visible = 0;
wandro._visible = 0;
} else {
attachMovie("ru1", "ru1", 100, {x:0, y:0});
}
}
Symbol 550 Button
on (release) {
if (_root.score >= 350) {
_root.sp = 4;
_root.stat = 1;
_root.score = _root.score - 350;
wmachine._visible = 0;
wnuke._visible = 0;
wball._visible = 0;
wfire._visible = 0;
wice._visible = 0;
wandro._visible = 0;
} else {
attachMovie("ru1", "ru1", 100, {x:0, y:0});
}
}
Symbol 553 Button
on (release) {
if (_root.score >= 350) {
_root.sp = 5;
_root.stat = 1;
_root.score = _root.score - 350;
wmachine._visible = 0;
wnuke._visible = 0;
wball._visible = 0;
wfire._visible = 0;
wice._visible = 0;
wandro._visible = 0;
} else {
attachMovie("ru1", "ru1", 100, {x:0, y:0});
}
}
Symbol 556 Button
on (release) {
if (_root.score >= 350) {
_root.sp = 6;
_root.stat = 1;
_root.score = _root.score - 350;
wmachine._visible = 0;
wnuke._visible = 0;
wball._visible = 0;
wfire._visible = 0;
wice._visible = 0;
wandro._visible = 0;
} else {
attachMovie("ru1", "ru1", 100, {x:0, y:0});
}
}
Symbol 564 MovieClip Frame 1
stop();
Symbol 570 MovieClip Frame 35
gotoAndPlay (1);
this._x = 498;
this._y = 483;
Symbol 599 Button
on (release) {
gotoAndStop ("play3");
}
Symbol 602 Button
on (release) {
gotoAndStop ("shop2");
}
Symbol 606 Button
on (release) {
gotoAndStop ("stage3");
}
Symbol 611 Button
on (release) {
gotoAndStop ("shop2");
}
Symbol 612 Button
on (release) {
gotoAndStop ("upgrade1");
}
Symbol 613 Button
on (release) {
gotoAndStop ("purchase1");
}
Symbol 616 Button
on (release) {
gotoAndStop ("shop2");
}
Symbol 617 Button
on (release) {
gotoAndStop ("upgrade1");
}
Symbol 619 Button
on (release) {
gotoAndStop ("purchase1");
}
Symbol 632 MovieClip Frame 1
stop();
Symbol 661 Button
on (release) {
gotoAndStop ("play4");
}
Symbol 664 Button
on (release) {
gotoAndStop ("shop3");
}
Symbol 668 Button
on (release) {
gotoAndStop ("stage4");
}
Symbol 673 Button
on (release) {
gotoAndStop ("shop3");
}
Symbol 674 Button
on (release) {
gotoAndStop ("upgrade2");
}
Symbol 675 Button
on (release) {
gotoAndStop ("purchase2");
}
Symbol 677 Button
on (release) {
if (((_root.kesempatan < 3) or (_root.health.life._xscale < 100)) and (_root.score >= 200)) {
_root.kesempatan = 3;
_root.stat2 = 1;
_root.score = _root.score - 200;
_root.sehat = 100;
_root.health.life._xscale = 100;
repair1._visible = 0;
repair2._visible = 0;
repair3._visible = 0;
} else if ((_root.kesempatan == 3) and (_root.health.life._xscale == 100)) {
attachMovie("ru2", "ru2", 100, {x:0, y:0});
} else {
attachMovie("ru1", "ru1", 100, {x:0, y:0});
}
}
Symbol 679 Button
on (release) {
gotoAndStop ("shop3");
}
Symbol 680 Button
on (release) {
gotoAndStop ("upgrade2");
}
Symbol 682 Button
on (release) {
gotoAndStop ("purchase2");
}
Symbol 691 MovieClip Frame 1
stop();
Symbol 719 Button
on (release) {
gotoAndStop ("play5");
}
Symbol 722 Button
on (release) {
gotoAndStop ("shop4");
}
Symbol 728 Button
on (release) {
gotoAndStop ("stage5");
}
Symbol 733 Button
on (release) {
gotoAndStop ("shop4");
}
Symbol 734 Button
on (release) {
gotoAndStop ("upgrade3");
}
Symbol 735 Button
on (release) {
gotoAndStop ("purchase3");
}
Symbol 738 Button
on (release) {
gotoAndStop ("shop4");
}
Symbol 739 Button
on (release) {
gotoAndStop ("upgrade3");
}
Symbol 741 Button
on (release) {
gotoAndStop ("purchase3");
}
Symbol 754 MovieClip Frame 1
stop();