Frame 1
stop();
function __com_mochibot__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
mb = "__mochibot__";
mbc = "mochibot.com";
g = (_global ? (_global) : (_level0._root));
if (g[mb + swfid]) {
return(g[mb + swfid]);
}
s = System.security;
x = mc._root.getSWFVersion;
fv = (x ? (mc.getSWFVersion()) : ((_global ? 6 : 5)));
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == "localWithFile") {
return(null);
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=7&fv=") + fv) + "&v=") + escape(getVersion())) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "")) + (trk ? "&t=1" : "");
lv = ((fv > 6) ? (mc.getNextHighestDepth()) : ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv))));
g[mb + "level"] = lv;
if (fv == 5) {
res = "_level" + lv;
if (!eval (res)) {
loadMovieNum (u, lv);
}
} else {
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
}
return(res);
}
__com_mochibot__("07479abb", this, 10301, true);
Instance of Symbol 4 MovieClip "loader" in Frame 1
onClipEvent (load) {
total = _root.getBytesTotal();
_xscale = 0;
}
onClipEvent (enterFrame) {
loaded = _root.getBytesLoaded();
lebar = (100 * loaded) / total;
if (lebar > _xscale) {
_xscale = (_xscale+1);
}
if ((_xscale == 100) && (loaded == total)) {
_root.gotoAndStop("splash1");
}
}
Instance of Symbol 4 MovieClip in Frame 1
onClipEvent (load) {
spd = 10 + random(10);
spdy = 10 + random(10);
grav = 1;
go = 0;
}
onClipEvent (enterFrame) {
if (hittest(_root.loader)) {
go = 1;
}
if (go == 1) {
_rotation = (_rotation + ((0.5 + spd) + spdy));
_x = (_x + spd);
_y = (_y + (grav - spdy));
grav = grav * 1.1;
spd = spd * 0.9;
spdy = spdy * 0.9;
}
if (_y > 500) {
_visible = 0;
}
}
Instance of Symbol 4 MovieClip in Frame 1
onClipEvent (load) {
spd = 10 + random(10);
spdy = 10 + random(10);
grav = 1;
go = 0;
}
onClipEvent (enterFrame) {
if (hittest(_root.loader)) {
go = 1;
}
if (go == 1) {
_rotation = (_rotation + ((0.5 + spd) + spdy));
_x = (_x + spd);
_y = (_y + (grav - spdy));
grav = grav * 1.1;
spd = spd * 0.9;
spdy = spdy * 0.9;
}
if (_y > 500) {
_visible = 0;
}
}
Instance of Symbol 4 MovieClip in Frame 1
onClipEvent (load) {
spd = 10 + random(10);
spdy = 10 + random(10);
grav = 1;
go = 0;
}
onClipEvent (enterFrame) {
if (hittest(_root.loader)) {
go = 1;
}
if (go == 1) {
_rotation = (_rotation + ((0.5 + spd) + spdy));
_x = (_x + spd);
_y = (_y + (grav - spdy));
grav = grav * 1.1;
spd = spd * 0.9;
spdy = spdy * 0.9;
}
if (_y > 500) {
_visible = 0;
}
}
Instance of Symbol 4 MovieClip in Frame 1
onClipEvent (load) {
spd = 10 + random(10);
spdy = 10 + random(10);
grav = 1;
go = 0;
}
onClipEvent (enterFrame) {
if (hittest(_root.loader)) {
go = 1;
}
if (go == 1) {
_rotation = (_rotation + ((0.5 + spd) + spdy));
_x = (_x + spd);
_y = (_y + (grav - spdy));
grav = grav * 1.1;
spd = spd * 0.9;
spdy = spdy * 0.9;
}
if (_y > 500) {
_visible = 0;
}
}
Instance of Symbol 4 MovieClip in Frame 1
onClipEvent (load) {
spd = 10 + random(10);
spdy = 10 + random(10);
grav = 1;
go = 0;
}
onClipEvent (enterFrame) {
if (hittest(_root.loader)) {
go = 1;
}
if (go == 1) {
_rotation = (_rotation + ((0.5 + spd) + spdy));
_x = (_x + spd);
_y = (_y + (grav - spdy));
grav = grav * 1.1;
spd = spd * 0.9;
spdy = spdy * 0.9;
}
if (_y > 500) {
_visible = 0;
}
}
Instance of Symbol 4 MovieClip in Frame 1
onClipEvent (load) {
spd = 10 + random(10);
spdy = 10 + random(10);
grav = 1;
go = 0;
}
onClipEvent (enterFrame) {
if (hittest(_root.loader)) {
go = 1;
}
if (go == 1) {
_rotation = (_rotation + ((0.5 + spd) + spdy));
_x = (_x + spd);
_y = (_y + (grav - spdy));
grav = grav * 1.1;
spd = spd * 0.9;
spdy = spdy * 0.9;
}
if (_y > 500) {
_visible = 0;
}
}
Instance of Symbol 4 MovieClip in Frame 1
onClipEvent (load) {
spd = 10 + random(10);
spdy = 10 + random(10);
grav = 1;
go = 0;
}
onClipEvent (enterFrame) {
if (hittest(_root.loader)) {
go = 1;
}
if (go == 1) {
_rotation = (_rotation + ((0.5 + spd) + spdy));
_x = (_x + spd);
_y = (_y + (grav - spdy));
grav = grav * 1.1;
spd = spd * 0.9;
spdy = spdy * 0.9;
}
if (_y > 500) {
_visible = 0;
}
}
Instance of Symbol 4 MovieClip in Frame 1
onClipEvent (load) {
spd = 10 + random(10);
spdy = 10 + random(10);
grav = 1;
go = 0;
}
onClipEvent (enterFrame) {
if (hittest(_root.loader)) {
go = 1;
}
if (go == 1) {
_rotation = (_rotation + ((0.5 + spd) + spdy));
_x = (_x + spd);
_y = (_y + (grav - spdy));
grav = grav * 1.1;
spd = spd * 0.9;
spdy = spdy * 0.9;
}
if (_y > 500) {
_visible = 0;
}
}
Instance of Symbol 4 MovieClip in Frame 1
onClipEvent (load) {
spd = 10 + random(10);
spdy = 10 + random(10);
grav = 1;
go = 0;
}
onClipEvent (enterFrame) {
if (hittest(_root.loader)) {
go = 1;
}
if (go == 1) {
_rotation = (_rotation + ((0.5 + spd) + spdy));
_x = (_x + spd);
_y = (_y + (grav - spdy));
grav = grav * 1.1;
spd = spd * 0.9;
spdy = spdy * 0.9;
}
if (_y > 500) {
_visible = 0;
}
}
Instance of Symbol 4 MovieClip in Frame 1
onClipEvent (load) {
spd = 10 + random(10);
spdy = 10 + random(10);
grav = 1;
go = 0;
}
onClipEvent (enterFrame) {
if (hittest(_root.loader)) {
go = 1;
}
if (go == 1) {
_rotation = (_rotation + ((0.5 + spd) + spdy));
_x = (_x + spd);
_y = (_y + (grav - spdy));
grav = grav * 1.1;
spd = spd * 0.9;
spdy = spdy * 0.9;
}
if (_y > 500) {
_visible = 0;
}
}
Instance of Symbol 4 MovieClip in Frame 1
onClipEvent (load) {
spd = 10 + random(10);
spdy = 10 + random(10);
grav = 1;
go = 0;
}
onClipEvent (enterFrame) {
if (hittest(_root.loader)) {
go = 1;
}
if (go == 1) {
_rotation = (_rotation + ((0.5 + spd) + spdy));
_x = (_x + spd);
_y = (_y + (grav - spdy));
grav = grav * 1.1;
spd = spd * 0.9;
spdy = spdy * 0.9;
}
if (_y > 500) {
_visible = 0;
}
}
Instance of Symbol 4 MovieClip in Frame 1
onClipEvent (load) {
spd = 10 + random(10);
spdy = 10 + random(10);
grav = 1;
go = 0;
}
onClipEvent (enterFrame) {
if (hittest(_root.loader)) {
go = 1;
}
if (go == 1) {
_rotation = (_rotation + ((0.5 + spd) + spdy));
_x = (_x + spd);
_y = (_y + (grav - spdy));
grav = grav * 1.1;
spd = spd * 0.9;
spdy = spdy * 0.9;
}
if (_y > 500) {
_visible = 0;
}
}
Instance of Symbol 4 MovieClip in Frame 1
onClipEvent (load) {
spd = 10 + random(10);
spdy = 10 + random(10);
grav = 1;
go = 0;
}
onClipEvent (enterFrame) {
if (hittest(_root.loader)) {
go = 1;
}
if (go == 1) {
_rotation = (_rotation + ((0.5 + spd) + spdy));
_x = (_x + spd);
_y = (_y + (grav - spdy));
grav = grav * 1.1;
spd = spd * 0.9;
spdy = spdy * 0.9;
}
if (_y > 500) {
_visible = 0;
}
}
Instance of Symbol 4 MovieClip in Frame 1
onClipEvent (load) {
spd = 10 + random(10);
spdy = 10 + random(10);
grav = 1;
go = 0;
}
onClipEvent (enterFrame) {
if (hittest(_root.loader)) {
go = 1;
}
if (go == 1) {
_rotation = (_rotation + ((0.5 + spd) + spdy));
_x = (_x + spd);
_y = (_y + (grav - spdy));
grav = grav * 1.1;
spd = spd * 0.9;
spdy = spdy * 0.9;
}
if (_y > 500) {
_visible = 0;
}
}
Instance of Symbol 4 MovieClip in Frame 1
onClipEvent (load) {
spd = 10 + random(10);
spdy = 10 + random(10);
grav = 1;
go = 0;
}
onClipEvent (enterFrame) {
if (hittest(_root.loader)) {
go = 1;
}
if (go == 1) {
_rotation = (_rotation + ((0.5 + spd) + spdy));
_x = (_x + spd);
_y = (_y + (grav - spdy));
grav = grav * 1.1;
spd = spd * 0.9;
spdy = spdy * 0.9;
}
if (_y > 500) {
_visible = 0;
}
}
Instance of Symbol 4 MovieClip in Frame 1
onClipEvent (load) {
spd = 10 + random(10);
spdy = 10 + random(10);
grav = 1;
go = 0;
}
onClipEvent (enterFrame) {
if (hittest(_root.loader)) {
go = 1;
}
if (go == 1) {
_rotation = (_rotation + ((0.5 + spd) + spdy));
_x = (_x + spd);
_y = (_y + (grav - spdy));
grav = grav * 1.1;
spd = spd * 0.9;
spdy = spdy * 0.9;
}
if (_y > 500) {
_visible = 0;
}
}
Instance of Symbol 4 MovieClip in Frame 1
onClipEvent (load) {
spd = 10 + random(10);
spdy = 10 + random(10);
grav = 1;
go = 0;
}
onClipEvent (enterFrame) {
if (hittest(_root.loader)) {
go = 1;
}
if (go == 1) {
_rotation = (_rotation + ((0.5 + spd) + spdy));
_x = (_x + spd);
_y = (_y + (grav - spdy));
grav = grav * 1.1;
spd = spd * 0.9;
spdy = spdy * 0.9;
}
if (_y > 500) {
_visible = 0;
}
}
Instance of Symbol 4 MovieClip in Frame 1
onClipEvent (load) {
spd = 10 + random(10);
spdy = 10 + random(10);
grav = 1;
go = 0;
}
onClipEvent (enterFrame) {
if (hittest(_root.loader)) {
go = 1;
}
if (go == 1) {
_rotation = (_rotation + ((0.5 + spd) + spdy));
_x = (_x + spd);
_y = (_y + (grav - spdy));
grav = grav * 1.1;
spd = spd * 0.9;
spdy = spdy * 0.9;
}
if (_y > 500) {
_visible = 0;
}
}
Instance of Symbol 4 MovieClip in Frame 1
onClipEvent (load) {
spd = 10 + random(10);
spdy = 10 + random(10);
grav = 1;
go = 0;
}
onClipEvent (enterFrame) {
if (hittest(_root.loader)) {
go = 1;
}
if (go == 1) {
_rotation = (_rotation + ((0.5 + spd) + spdy));
_x = (_x + spd);
_y = (_y + (grav - spdy));
grav = grav * 1.1;
spd = spd * 0.9;
spdy = spdy * 0.9;
}
if (_y > 500) {
_visible = 0;
}
}
Instance of Symbol 4 MovieClip in Frame 1
onClipEvent (load) {
spd = 10 + random(10);
spdy = 10 + random(10);
grav = 1;
go = 0;
}
onClipEvent (enterFrame) {
if (hittest(_root.loader)) {
go = 1;
}
if (go == 1) {
_rotation = (_rotation + ((0.5 + spd) + spdy));
_x = (_x + spd);
_y = (_y + (grav - spdy));
grav = grav * 1.1;
spd = spd * 0.9;
spdy = spdy * 0.9;
}
if (_y > 500) {
_visible = 0;
}
}
Instance of Symbol 4 MovieClip in Frame 1
onClipEvent (load) {
spd = 10 + random(10);
spdy = 10 + random(10);
grav = 1;
go = 0;
}
onClipEvent (enterFrame) {
if (hittest(_root.loader)) {
go = 1;
}
if (go == 1) {
_rotation = (_rotation + ((0.5 + spd) + spdy));
_x = (_x + spd);
_y = (_y + (grav - spdy));
grav = grav * 1.1;
spd = spd * 0.9;
spdy = spdy * 0.9;
}
if (_y > 500) {
_visible = 0;
}
}
Frame 2
_root.playscren = 0;
vulcan = new Sound();
vulcan.attachSound("vulcan");
explodesml = new Sound();
explodesml.attachSound("explodesml");
explodebig = new Sound();
explodebig.attachSound("explodebig");
laser = new Sound();
laser.attachSound("laser");
roket = new Sound();
roket.attachSound("roket");
form = 1;
stop();
Frame 3
_root.playscren = 0;
lanjut = _currentframe;
stop();
Instance of Symbol 30 MovieClip in Frame 3
onClipEvent (load) {
start = _y;
_y = (_y+1);
}
onClipEvent (enterFrame) {
speed = (_root._ymouse - _y) / 5;
_y = (_y + speed);
if (_y < start) {
_y = start;
} else if (_y > (start + 150)) {
_y = (start + 150);
}
}
Frame 4
_root.playscren = 0;
Frame 5
_root.playscren = 0;
Frame 6
stop();
scr._visible = 1;
scr2._visible = 1;
playscren = 1;
pause = 0;
name = "garuda 1";
n = 0;
maxhp = 200;
form = 1;
nx = 0;
batas = 0;
from = "";
msg = "";
go = 0;
goraja = 1;
jmlraja = 5;
exp = 0;
expmax = 50;
level = 1;
power = 20;
tembak = 0;
spawn = 20;
spawntime = 20;
timeplay = 0;
msglist = newarray();
fromlist = newarray();
fromlist = ["<unknown>", "<unknown>", "<unknown>", "bird eye", "bird eye", "bird eye", "bird eye", "bird eye", "bird eye", "bird eye", ""];
msglist = ["congratulation soldier!!", "you have been selected to fly the most sophisticated fighter jet on this planet, garuda", ("from now on your nick name will be " + name) + ". oh yeah, and you can call me bird eye", "let me introduce the control of this plane", "to move the aircraft use the ASDW or directional buttons", "to fire use left mouse click, some weapon can be aimed using mouse", "the mission is to destroy the drones as many as you can", "the enemies that you destroyed give you experience points, more exp points you get the stronger garuda become", "now let's finish our training session", "now happy hunting and god speed.connection out", ""];
this.onMouseDown = function () {
gofire = 1;
};
this.onMouseUp = function () {
gofire = 0;
};
this.onEnterFrame = function () {
var _local1 = _root;
if (pause == 0) {
duplicateMovieClip ("api", "api" + jmlapi, 55 + jmlapi);
jmlapi++;
timeplay++;
spawntime--;
if ((jmlraja < 1) && (playscren == 1)) {
scr._visible = 0;
scr2._visible = 0;
delete this.onEnterFrame;
nextFrame();
}
}
if ((timeplay > batas) && (nx < 9)) {
nx = math.floor(batas / 100);
from = fromlist[nx];
msg = msglist[nx];
_local1.scr.msgvw.go = 1;
batas = batas + 100;
}
if (fir > 100) {
fir = 0;
}
if (jumlah > 150) {
jumlah = 0;
}
if (xpjml > 10) {
xpjml = 0;
}
if (jml > 50) {
jml = 0;
}
if (jmlapi > 20) {
jmlapi = 0;
}
if (((spawntime < 0) && (pause == 0)) && (timeplay > 1000)) {
go = 1;
if ((timeplay > 2000) && (goraja == 1)) {
i = 1;
while (i < 5) {
duplicateMovieClip ("0", "enemy" + jumlah, 500 + jumlah);
jumlah++;
i++;
}
from = "bird eye";
msg = "enemies aircraft detected, neutralize threats by any means ";
_local1.scr.msgvw.go = 1;
goraja = 0;
} else {
duplicateMovieClip ("1", "enemy" + jumlah, 500 + jumlah);
jumlah++;
}
spawntime = 20;
}
firerate = firerate + 0.5;
tembak = tembak + 0.2;
if (((gofire == 1) && (pause == 0)) && (_local1.plane.armor > 0)) {
vulcan.start();
if (form == 1) {
if (firerate > 1.5) {
jml++;
name = "blast" + jml;
duplicateMovieClip ("blast", name, jml);
_local1[name]._x = (_local1.plane._x + 2) - random(4);
_local1[name]._y = _local1.plane._y - 18;
firerate = 0;
}
} else if (form == 2) {
if (firerate > 1.5) {
i = 0;
while (i < 2) {
jml++;
name = "blast" + jml;
duplicateMovieClip ("blast", name, jml);
_local1[name]._x = (((_local1.plane._x - 10) + (i * 20)) + 2) - random(4);
_local1[name]._y = _local1.plane._y - 18;
i++;
}
firerate = 0;
}
} else if (form == 3) {
if (firerate > 1.5) {
i = 0;
while (i < 3) {
jml++;
name = "blast" + jml;
duplicateMovieClip ("blast", name, jml);
_local1[name]._x = (((_local1.plane._x - 10) + (i * 10)) + 2) - random(4);
_local1[name]._y = _local1.plane._y - 18;
i++;
}
firerate = 0;
}
} else if (form == 4) {
if (firerate > 1.5) {
i = 0;
while (i < 2) {
jml++;
name = "blast" + jml;
duplicateMovieClip ("blast", name, jml);
_local1[name]._x = (((_local1.plane._x - 10) + (i * 20)) + 2) - random(4);
_local1[name]._y = _local1.plane._y - 18;
i++;
}
firerate = 0;
}
jml++;
name = "blast" + jml;
duplicateMovieClip ("laser", name, jml);
_local1[name]._x = _local1.plane._x;
_local1[name]._y = _local1.plane._y - 18;
laser.start();
} else if (form == 5) {
if (firerate > 2) {
i = 0;
while (i < 2) {
jml++;
name = "blast" + jml;
duplicateMovieClip ("blast", name, jml);
_local1[name]._x = (((_local1.plane._x - 10) + (i * 20)) + 2) - random(4);
_local1[name]._y = _local1.plane._y - 18;
i++;
}
jml++;
name = "blast" + jml;
duplicateMovieClip ("blastx", name, jml);
_local1[name]._x = _local1.plane._x;
_local1[name]._y = _local1.plane._y;
_local1[name]._rotation = plane.turret._rotation;
_local1[name].speedy = Math.sin(((_local1[name]._rotation + random(5)) * Math.PI) / 180) * power;
_local1[name].speedx = Math.cos(((_local1[name]._rotation - random(5)) * Math.PI) / 180) * power;
firerate = 0;
}
jml++;
name = "blast" + jml;
duplicateMovieClip ("laser", name, jml);
_local1[name]._x = _local1.plane._x;
_local1[name]._y = _local1.plane._y - 18;
laser.start();
} else if (form == 6) {
if (firerate > 2) {
i = 0;
while (i < 2) {
jml++;
name = "blast" + jml;
duplicateMovieClip ("blast", name, jml);
_local1[name]._x = (((_local1.plane._x - 10) + (i * 20)) + 2) - random(4);
_local1[name]._y = _local1.plane._y - 18;
i++;
}
jml++;
name = "blast" + jml;
duplicateMovieClip ("blastx", name, jml);
_local1[name]._x = _local1.plane._x;
_local1[name]._y = _local1.plane._y;
_local1[name]._rotation = plane.turret._rotation;
_local1[name].speedy = Math.sin(((_local1[name]._rotation + random(5)) * Math.PI) / 180) * power;
_local1[name].speedx = Math.cos(((_local1[name]._rotation - random(5)) * Math.PI) / 180) * power;
firerate = 0;
}
jml++;
name = "blast" + jml;
duplicateMovieClip ("laser", name, jml);
_local1[name]._x = _local1.plane._x;
_local1[name]._y = _local1.plane._y - 18;
laser.start();
if (tembak > 3) {
roket.start();
jml++;
name = "blast" + jml;
duplicateMovieClip ("missile", name, jml);
_local1[name]._x = _local1.plane._x;
_local1[name]._y = _local1.plane._y + 10;
_local1[name].launch = 1;
tembak = 0;
}
} else if (form == 7) {
if (firerate > 2.5) {
i = 0;
while (i < 2) {
jml++;
name = "blast" + jml;
duplicateMovieClip ("blast", name, jml);
_local1[name]._x = (((_local1.plane._x - 10) + (i * 20)) + 2) - random(4);
_local1[name]._y = _local1.plane._y - 18;
i++;
}
jml++;
name = "blast" + jml;
duplicateMovieClip ("blastx", name, jml);
_local1[name]._x = _local1.plane._x;
_local1[name]._y = _local1.plane._y;
_local1[name]._rotation = plane.turret._rotation;
_local1[name].speedy = Math.sin(((_local1[name]._rotation + random(5)) * Math.PI) / 180) * power;
_local1[name].speedx = Math.cos(((_local1[name]._rotation - random(5)) * Math.PI) / 180) * power;
firerate = 0;
}
jml++;
name = "blast" + jml;
duplicateMovieClip ("laser", name, jml);
_local1[name]._x = _local1.plane._x;
_local1[name]._y = _local1.plane._y - 18;
laser.start();
if (tembak > 3) {
roket.start();
i = 0;
while (i < 2) {
jml++;
name = "blast" + jml;
duplicateMovieClip ("missilex", name, jml);
_local1[name]._x = (_local1.plane._x - 10) + (i * 20);
_local1[name]._y = _local1.plane._y;
_local1[name].launch = 1;
i++;
}
jml++;
name = "blast" + jml;
duplicateMovieClip ("missile", name, jml);
_local1[name]._x = _local1.plane._x;
_local1[name]._y = _local1.plane._y + 10;
_local1[name].launch = 1;
tembak = 0;
}
}
}
};
Instance of Symbol 27 MovieClip in Frame 6
onClipEvent (enterFrame) {
if (_root.pause == 0) {
play();
} else {
stop();
}
}
Instance of Symbol 73 MovieClip "evoscr" in Frame 6
onClipEvent (load) {
this.swapDepths(801);
}
onClipEvent (enterFrame) {
if (!(_root.playscren === 1)) {
removeMovieClip(this);
_visible = 0;
}
}
Instance of Symbol 96 MovieClip "scr2" in Frame 6
onClipEvent (load) {
this.swapDepths(800);
}
onClipEvent (enterFrame) {
if (!(_root.playscren === 1)) {
removeMovieClip(this);
_visible = 0;
}
}
Instance of Symbol 108 MovieClip "scr" in Frame 6
onClipEvent (load) {
this.swapDepths(804);
}
onClipEvent (enterFrame) {
if (!(_root.playscren === 1)) {
removeMovieClip(this);
_visible = 0;
}
}
Instance of Symbol 110 MovieClip "blast" in Frame 6
onClipEvent (load) {
_alpha = random(40);
speed = 20 + (math.random() * 1);
damage = 2 + (_root.level / 1.5);
}
onClipEvent (enterFrame) {
if (!(_root.playscren === 1)) {
removeMovieClip(this);
_visible = 0;
}
if (_root.pause == 0) {
if (_alpha < 100) {
_alpha = (_alpha + 10);
}
_y = (_y - speed);
}
if (_y < 0) {
removeMovieClip(this);
}
}
Instance of Symbol 112 MovieClip "laser" in Frame 6
onClipEvent (load) {
_x = (_x + (random(3) - 1));
damage = 5 + (_root.level / 3);
}
onClipEvent (enterFrame) {
if (!(_root.playscren === 1)) {
removeMovieClip(this);
_visible = 0;
}
if (_root.pause == 0) {
_alpha = (math.random() * 100);
_y = (_y - 35);
}
if (_y < 0) {
removeMovieClip(this);
}
}
Instance of Symbol 110 MovieClip "blastx" in Frame 6
onClipEvent (load) {
_alpha = random(40);
damage = 1 + (_root.level / 3);
}
onClipEvent (enterFrame) {
if (!(_root.playscren === 1)) {
removeMovieClip(this);
_visible = 0;
}
if (_root.pause == 0) {
if (_alpha < 100) {
_alpha = (_alpha + 10);
}
_x = (_x + speedx);
_y = (_y + speedy);
}
if ((((_y < 0) || (_y > 480)) || (_x < 0)) || (_x > 640)) {
removeMovieClip(this);
}
}
Instance of Symbol 150 MovieClip "0" in Frame 6
onClipEvent (load) {
_visible = 1;
raja = 1;
_x = random(640);
_y = (-20 - random(20));
speed = 1 + (math.random() * 2);
speedx = 2 - (math.random() * 4);
level = _root.level + random(10);
nama = "helicopter Lv. " + level;
armormax = 10 + level;
armor = armormax;
fire = math.random();
masuk = 0;
}
onClipEvent (enterFrame) {
if (!(_root.playscren === 1)) {
removeMovieClip(this);
_visible = 0;
}
if ((_root.pause == 0) && (_root.goraja == 0)) {
if (armor < 1) {
nextFrame();
} else {
if (_y > 40) {
masuk = 1;
}
fire = fire + 0.01;
_y = (_y + speed);
_x = (_x + speedx);
if ((_y > 250) || (_y < 30)) {
if (masuk == 1) {
speed = speed * -1;
}
}
if ((_x > 620) || (_x < 20)) {
speedx = speedx * -1;
}
if (fire > 1) {
_root.jumlah++;
name = "blasten" + _root.jumlah;
duplicateMovieClip ("_root.blasten", name, 100 + _root.jumlah);
_root[name]._x = _x;
_root[name]._y = _y;
_root[name].speedy = 3 + random(4);
_root[name].speedx = 4 - random(8);
fire = 0;
}
n = 0;
while (n < 50) {
name = "blast" + n;
if (hittest(_root[name])) {
bang = "explode" + _root.fir;
if (_root[name].damage < 10) {
duplicateMovieClip (_root.explodb, bang, _root.fir + 400);
_root.explodesml.start();
} else {
duplicateMovieClip (_root.explod, bang, _root.fir + 201);
_root.explodebig.start();
}
if (armor < _root[name].damage) {
armor = 0;
} else {
armor = armor - _root[name].damage;
}
_root.healthmusuh = (("armor :" + math.round(armor)) + " /") + armormax;
_root.scr.hape._xscale = (100 * armor) / armormax;
_root.namamusuh = nama;
_root.fir++;
_root[bang]._x = _root[name]._x;
_root[bang]._y = _root[name]._y;
removeMovieClip(_root[name]);
}
n++;
}
}
}
}
Instance of Symbol 151 MovieClip "explod" in Frame 6
onClipEvent (load) {
_alpha = (30 + random(70));
}
onClipEvent (enterFrame) {
if (!(_root.playscren === 1)) {
removeMovieClip(this);
_visible = 0;
}
}
Instance of Symbol 151 MovieClip "explodb" in Frame 6
onClipEvent (load) {
_alpha = (30 + random(70));
}
onClipEvent (enterFrame) {
if (!(_root.playscren === 1)) {
removeMovieClip(this);
_visible = 0;
}
}
Instance of Symbol 170 MovieClip "1" in Frame 6
onClipEvent (load) {
_visible = 1;
_x = (50 + random(500));
_y = (-20 - random(20));
speed = 1 + (math.random() * 4);
speedx = 2 - (math.random() * 4);
level = _root.level + random(10);
nama = "drone bot Lv. " + level;
armormax = math.ceil(level / 2);
armor = armormax;
fire = math.random();
}
onClipEvent (enterFrame) {
if (!(_root.playscren === 1)) {
removeMovieClip(this);
_visible = 0;
}
if ((_root.pause == 0) && (_root.go == 1)) {
if (armor < 1) {
nextFrame();
} else {
fire = fire + 0.01;
_y = (_y + speed);
_x = (_x + speedx);
if (((_y > 500) || (_x < -20)) || (_x > 660)) {
removeMovieClip(this);
}
if (fire > 1) {
_root.jumlah++;
name = "blasten" + _root.jumlah;
duplicateMovieClip ("_root.blasten", name, 100 + _root.jumlah);
_root[name]._x = _x;
_root[name]._y = _y;
_root[name].speedy = 3 + random(4);
_root[name].speedx = 4 - random(8);
fire = 0;
}
n = 0;
while (n < 50) {
name = "blast" + n;
if (hittest(_root[name])) {
bang = "explode" + _root.fir;
if (_root[name].damage < 10) {
duplicateMovieClip (_root.explodb, bang, _root.fir + 400);
_root.explodesml.start();
} else {
duplicateMovieClip (_root.explod, bang, _root.fir + 201);
_root.explodebig.start();
}
if (armor < _root[name].damage) {
armor = 0;
} else {
armor = armor - _root[name].damage;
}
_root.healthmusuh = (("armor :" + math.round(armor)) + " /") + armormax;
_root.scr.hape._xscale = (100 * armor) / armormax;
_root.namamusuh = nama;
_root.fir++;
_root[bang]._x = _root[name]._x;
_root[bang]._y = _root[name]._y;
removeMovieClip(_root[name]);
}
n++;
}
}
}
}
Instance of Symbol 177 MovieClip in Frame 6
onClipEvent (load) {
this.swapDepths(802);
}
onClipEvent (keyDown) {
if (key.isdown(32) && (_root.pause == 0)) {
pauseg = 1;
} else if (key.isdown(32) && (_root.pause == 1)) {
pauseg = 0;
}
}
onClipEvent (enterFrame) {
if (pauseg == 1) {
nextFrame();
} else {
prevFrame();
}
}
Instance of Symbol 180 MovieClip "expview" in Frame 6
onClipEvent (load) {
_alpha = 100;
}
onClipEvent (enterFrame) {
if (!(_root.playscren === 1)) {
removeMovieClip(this);
_visible = 0;
}
_y = (_y + 2);
_alpha = (_alpha-1);
if (_alpha < 1) {
removeMovieClip(this);
}
}
Instance of Symbol 182 MovieClip "api" in Frame 6
onClipEvent (load) {
_alpha = (_root.scr2.darah._xscale + (math.random() * (100 - _root.scr2.darah._xscale)));
spd = ((5 - random(11)) * (100 - _root.scr2.darah._xscale)) / 100;
spdy = 2 + ((math.random() * (100 - _root.scr2.darah._xscale)) / 10);
uk = _root.scr2.darah._xscale + (math.random() * (100 - _root.scr2.darah._xscale));
_xscale = uk;
_yscale = uk;
_x = _root.plane._x;
_y = (_root.plane._y + 18);
}
onClipEvent (enterFrame) {
if (!(_root.playscren === 1)) {
removeMovieClip(this);
_visible = 0;
}
if (_root.pause == 0) {
_y = (_y + spdy);
_x = (_x + spd);
spd = spd * 0.9;
_alpha = (_alpha - 8);
uk = uk - 5;
_xscale = uk;
_yscale = uk;
if ((_alpha < 0) || (uk < 0)) {
removeMovieClip(this);
_visible = 0;
}
}
}
Instance of Symbol 186 MovieClip "missile" in Frame 6
onClipEvent (load) {
power = 20;
_alpha = 0;
damage = 30 + (_root.level / 3);
targetx = random(640);
targety = -50;
_rotation = ((Math.atan2(targety - _y, targetx - _x) * 180) / Math.PI);
}
onClipEvent (enterFrame) {
if (!(_root.playscren === 1)) {
removeMovieClip(this);
_visible = 0;
}
if (_root.pause == 0) {
if (launch == 1) {
if (_alpha < 100) {
_alpha = (_alpha + 15);
}
_rotation = ((Math.atan2(targety - _y, targetx - _x) * 180) / Math.PI);
speedx = Math.cos(((_rotation - random(5)) * Math.PI) / 180) * power;
speedy = Math.sin(((_rotation + random(5)) * Math.PI) / 180) * power;
_x = (_x + speedx);
_y = (_y + speedy);
}
}
if (_y < -30) {
removeMovieClip(this);
}
}
Instance of Symbol 186 MovieClip "missilex" in Frame 6
onClipEvent (load) {
power = 20;
time = 3 + random(8);
_alpha = 0;
damage = 30;
targetx = random(640);
targety = -30;
_rotation = ((Math.atan2(targety - _y, targetx - _x) * 180) / Math.PI);
damage = 25 + (_root.level / 3);
}
onClipEvent (enterFrame) {
if (!(_root.playscren === 1)) {
removeMovieClip(this);
_visible = 0;
}
if (_root.pause == 0) {
if (launch == 1) {
if (time < 0) {
targetx = _root._xmouse;
}
if (_alpha < 100) {
_alpha = (_alpha + 15);
}
time--;
_rotation = ((Math.atan2(targety - _y, targetx - _x) * 180) / Math.PI);
speedx = Math.cos(((_rotation - random(5)) * Math.PI) / 180) * power;
speedy = Math.sin(((_rotation + random(5)) * Math.PI) / 180) * power;
_x = (_x + speedx);
_y = (_y + speedy);
}
}
if (_y < -10) {
removeMovieClip(this);
}
}
Instance of Symbol 197 MovieClip "plane" in Frame 6
onClipEvent (load) {
armor = _root.maxhp;
shield = _root.maxhp / 2;
}
onClipEvent (enterFrame) {
if (_root.pause == 0) {
_y = (_y + speedy);
_x = (_x + speed);
speed = speed * 0.9;
speedy = speedy * 0.9;
if (armor > 0) {
if (shield < (_root.maxhp / 2)) {
shield = shield + (0.0001 * _root.maxhp);
}
if (_x < 0) {
speed = speed + 2;
} else if (_x > 640) {
speed = speed - 2;
}
if (_y < 0) {
speedy = speedy + 2;
} else if (_y > 400) {
speedy = speedy - 2;
}
if (Key.isDown(65) || (key.isdown(37))) {
speed = speed - 1.5;
} else if (Key.isDown(68) || (key.isdown(39))) {
speed = speed + 1.5;
}
if (Key.isDown(87) || (key.isdown(38))) {
speedy = speedy - 1.5;
} else if (Key.isDown(83) || (key.isdown(40))) {
speedy = speedy + 1.5;
}
} else {
speedy = speedy + 1;
armor = 0;
if (ledak > 1) {
bang = "explode" + _root.fir;
duplicateMovieClip (_root.explod, bang, _root.fir + 201);
_root.fir++;
_root[bang]._x = (_x + 13) - random(26);
_root[bang]._y = (_y + 23) - random(46);
ledak = 0;
}
ledak = ledak + 0.2;
if (_y > 660) {
_root.scr2._visible = 0;
_root.scr._visible = 0;
_root.gotoAndStop("over");
}
}
}
}
Instance of Symbol 110 MovieClip "blasten" in Frame 6
onClipEvent (load) {
_alpha = random(40);
damage = 3;
}
onClipEvent (enterFrame) {
if (!(_root.playscren === 1)) {
removeMovieClip(this);
_visible = 0;
}
if (_root.pause == 0) {
if (hittest(_root.plane)) {
if (_root.plane.shield < damage) {
if (_root.plane.armor < damage) {
_root.plane.armor = 0;
} else {
_root.plane.armor = _root.plane.armor - (damage - _root.plane.shield);
}
_root.plane.shield = 0;
} else {
_root.plane.shield = _root.plane.shield - damage;
}
bang = "explode" + _root.fir;
duplicateMovieClip (_root.explodb, bang, _root.fir + 400);
_root.fir++;
_root[bang]._x = _x;
_root[bang]._y = _y;
_root.explodesml.start();
removeMovieClip(this);
}
_alpha = (_alpha + 5);
_x = (_x + speedx);
_y = (_y + speedy);
}
if ((((_y < 0) || (_y > 480)) || (_x < 0)) || (_x > 640)) {
removeMovieClip(this);
}
}
Frame 7
var MochiAd = {getVersion:function () {
return("2.3");
}, showPreGameAd:function (options) {
var _local1 = this;
var DEFAULTS = {clip:_root, ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:16747008, background:16777161, outline:13994812, ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}, ad_failed:function () {
trace("[MochAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_loaded:function (width, height) {
}};
options = MochiAd._parseOptions(options, DEFAULTS);
if ("5cc6f7dfb67f2f08341c831480f7c2a7".length == 0) {
options.ad_started();
options.ad_finished();
} else {
var clip = options.clip;
var ad_msec = 11000;
var ad_timeout = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!MochiAd.load(options)) {
options.ad_failed();
options.ad_finished();
} else {
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var wh = MochiAd._getRes(options);
var _local3 = wh[0];
var h = wh[1];
mc._x = _local3 * 0.5;
mc._y = h * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk._x = _local3 * -0.5;
chk._y = h * -0.5;
var bar = chk.createEmptyMovieClip("_mochiad_bar", 4);
bar._x = 10;
bar._y = h - 20;
var bar_color = options.color;
delete options.color;
var bar_background = options.background;
delete options.background;
var bar_outline = options.outline;
delete options.outline;
var backing = bar.createEmptyMovieClip("_outline", 1);
backing.beginFill(bar_background);
backing.moveTo(0, 0);
backing.lineTo(_local3 - 20, 0);
backing.lineTo(_local3 - 20, 10);
backing.lineTo(0, 10);
backing.lineTo(0, 0);
backing.endFill();
var _local2 = bar.createEmptyMovieClip("_inside", 2);
_local2.beginFill(bar_color);
_local2.moveTo(0, 0);
_local2.lineTo(_local3 - 20, 0);
_local2.lineTo(_local3 - 20, 10);
_local2.lineTo(0, 10);
_local2.lineTo(0, 0);
_local2.endFill();
_local2._xscale = 0;
var outline = bar.createEmptyMovieClip("_outline", 3);
outline.lineStyle(0, bar_outline, 100);
outline.moveTo(0, 0);
outline.lineTo(_local3 - 20, 0);
outline.lineTo(_local3 - 20, 10);
outline.lineTo(0, 10);
outline.lineTo(0, 0);
chk.ad_msec = ad_msec;
chk.ad_timeout = ad_timeout;
chk.started = getTimer();
chk.showing = false;
chk.last_pcnt = 0;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local1 = this;
var _local2 = 100 * (1 - ((getTimer() - _local1.fadeout_start) / _local1.fadeout_time));
if (_local2 > 0) {
_local1._parent._alpha = _local2;
} else {
var _local3 = _local1._parent._parent;
MochiAd.unload(_local3);
delete _local1.onEnterFrame;
}
};
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adjustProgress = function (msec) {
var _local1 = this.mc._mochiad_wait;
_local1.server_control = true;
_local1.started = getTimer();
_local1.ad_msec = msec;
};
chk.onEnterFrame = function () {
var _local1 = this;
var _clip = _local1._parent._parent;
var ad_clip = _local1._parent._mochiad_ctr;
var elapsed = (getTimer() - _local1.started);
var _local3 = false;
var clip_total = _clip.getBytesTotal();
var clip_loaded = _clip.getBytesLoaded();
var clip_pcnt = ((100 * clip_loaded) / clip_total);
var ad_pcnt = ((100 * elapsed) / chk.ad_msec);
var _inside = _local1._mochiad_bar._inside;
var _local2 = Math.min(100, Math.min(clip_pcnt || 0, ad_pcnt));
_local2 = Math.max(_local1.last_pcnt, _local2);
_local1.last_pcnt = _local2;
_inside._xscale = _local2;
if (!chk.showing) {
var total = ad_clip.getBytesTotal();
if ((total > 0) || (typeof(total) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (elapsed > chk.ad_timeout) {
options.ad_failed();
_local3 = true;
}
}
if (elapsed > chk.ad_msec) {
_local3 = true;
}
if (((clip_total > 0) && (clip_loaded >= clip_total)) && (_local3)) {
if (_local1.server_control) {
delete _local1.onEnterFrame;
} else {
_local1.fadeout_start = getTimer();
_local1.onEnterFrame = chk.fadeFunction;
}
}
};
}
}
}, showInterLevelAd:function (options) {
var _local1 = this;
var DEFAULTS = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showTimedAd", ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}, ad_failed:function () {
trace("[MochAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_loaded:function (width, height) {
}};
options = MochiAd._parseOptions(options, DEFAULTS);
var clip = options.clip;
var ad_msec = 11000;
var ad_timeout = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!MochiAd.load(options)) {
options.ad_failed();
options.ad_finished();
} else {
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var wh = MochiAd._getRes(options);
var w = wh[0];
var h = wh[1];
mc._x = w * 0.5;
mc._y = h * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_msec = ad_msec;
chk.ad_timeout = ad_timeout;
chk.started = getTimer();
chk.showing = false;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local1 = this;
var _local2 = 100 * (1 - ((getTimer() - _local1.fadeout_start) / _local1.fadeout_time));
if (_local2 > 0) {
_local1._parent._alpha = _local2;
} else {
var _local3 = _local1._parent._parent;
MochiAd.unload(_local3);
delete _local1.onEnterFrame;
}
};
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adjustProgress = function (msec) {
var _local1 = this.mc._mochiad_wait;
_local1.server_control = true;
_local1.started = getTimer();
_local1.ad_msec = msec - 250;
};
chk.onEnterFrame = function () {
var _local1 = this;
var ad_clip = _local1._parent._mochiad_ctr;
var elapsed = (getTimer() - _local1.started);
var _local2 = false;
if (!chk.showing) {
var _local3 = ad_clip.getBytesTotal();
if ((_local3 > 0) || (typeof(_local3) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (elapsed > chk.ad_timeout) {
options.ad_failed();
_local2 = true;
}
}
if (elapsed > chk.ad_msec) {
_local2 = true;
}
if (_local2) {
if (_local1.server_control) {
delete _local1.onEnterFrame;
} else {
_local1.fadeout_start = getTimer();
_local1.onEnterFrame = _local1.fadeFunction;
}
}
};
}
}, showTimedAd:function (options) {
trace("[MochiAd] DEPRECATED: showTimedAd was renamed to showInterLevelAd in 2.0");
MochiAd.showInterLevelAd(options);
}, showPreloaderAd:function (options) {
trace("[MochiAd] DEPRECATED: showPreloaderAd was renamed to showPreGameAd in 2.0");
MochiAd.showPreGameAd(options);
}, _allowDomains:function (server) {
var _local1 = server.split("/")[2].split(":")[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain("*");
System.security.allowDomain(_local1);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain("*");
System.security.allowInsecureDomain(_local1);
}
}
return(_local1);
}, _loadCommunicator:function (options) {
var _local2 = options;
var _local3 = arguments;
var DEFAULTS = {clip:_root, com_server:"http://x.mochiads.com/com/1/", method:"loadCommunicator", depth:10337, id:"_UNKNOWN_"};
_local2 = MochiAd._parseOptions(_local2, DEFAULTS);
_local2.swfv = _local2.clip.getSWFVersion() || 6;
_local2.mav = MochiAd.getVersion();
var clip = _local2.clip;
var clipname = ("_mochiad_com_" + _local2.id);
if (!MochiAd._isNetworkAvailable()) {
return(null);
}
if (clip[clipname]) {
return(clip[clipname].lc);
}
var server = (_local2.com_server + _local2.id);
MochiAd._allowDomains(server);
delete _local2.id;
delete _local2.com_server;
var depth = _local2.depth;
delete _local2.depth;
var mc = clip.createEmptyMovieClip(clipname, depth);
var lv = mc.createEmptyMovieClip("_mochiad_com", 1);
for (var k in _local2) {
lv[k] = _local2[k];
}
var lc = new LocalConnection();
var name = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
lc.mc = mc;
lc.name = name;
lc.allowDomain = function (d) {
return(true);
};
lc.allowInsecureDomain = lc.allowDomain;
lc.connect(name);
mc.lc = lc;
lv.lc = name;
lc._id = 0;
lc._queue = [];
lc.rpcResult = function (cb_arg) {
var cb = parseInt(cb_arg);
var _local2 = this._callbacks[cb];
if (!_local2) {
} else {
delete this._callbacks[cb];
var _local3 = [];
var _local1 = 2;
while (_local1 < _local2.length) {
_local3.push(_local2[_local1]);
_local1++;
}
_local1 = 1;
while (_local1 < arguments.length) {
_local3.push(arguments[_local1]);
_local1++;
}
var method = _local2[1];
var obj = _local2[0];
if (obj && (typeof(method) == "string")) {
method = obj[method];
}
if (method) {
method.apply(obj, _local3);
}
}
};
lc._didConnect = function (endpoint) {
this._endpoint = endpoint;
var _local3 = this._queue;
delete this._queue;
var ds = this.doSend;
var _local1 = 0;
while (_local1 < _local3.length) {
var _local2 = _local3[_local1];
ds.apply(this, _local2);
_local1++;
}
};
lc.doSend = function (args, cbobj, cbfn) {
var _local2 = arguments;
if (this._endpoint == null) {
var _local3 = [];
var _local1 = 0;
while (_local1 < _local2.length) {
_local3.push(_local2[_local1]);
_local1++;
}
this._queue.push(_local3);
} else {
this._id = this._id + 1;
var id = this._id;
if ((cbfn === undefined) || (cbfn === null)) {
cbfn = cbobj;
}
this._callbacks[id] = [cbobj, cbfn];
var slc = new LocalConnection();
var ss = slc.send(this._endpoint, "rpc", id, args);
}
};
lc._callbacks = {};
lc._callbacks[0] = [lc, "_didConnect"];
lv.st = getTimer();
lv.loadMovie(server + ".swf", "POST");
return(lc);
}, fetchHighScores:function (options, callbackObj, callbackMethod) {
var _local2 = options;
var _local1 = MochiAd._loadCommunicator({id:_local2.id});
if (!_local1) {
return(false);
}
var fncall = ["fetchHighScores", _local2];
_local1.doSend(["fetchHighScores", _local2], callbackObj, callbackMethod);
return(true);
}, sendHighScore:function (options, callbackObj, callbackMethod) {
var _local2 = options;
var _local1 = MochiAd._loadCommunicator({id:_local2.id});
if (!_local1) {
return(false);
}
var fncall = ["sendHighScore", _local2];
_local1.doSend(["sendHighScore", _local2], callbackObj, callbackMethod);
return(true);
}, load:function (options) {
var _local1 = options;
var DEFAULTS = {clip:_root, server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"};
_local1 = MochiAd._parseOptions(_local1, DEFAULTS);
_local1.swfv = _local1.clip.getSWFVersion() || 6;
_local1.mav = MochiAd.getVersion();
var clip = _local1.clip;
if (!MochiAd._isNetworkAvailable()) {
return(null);
}
if (clip._mochiad_loaded) {
return(null);
}
var depth = _local1.depth;
delete _local1.depth;
var mc = clip.createEmptyMovieClip("_mochiad", depth);
var wh = MochiAd._getRes(_local1);
_local1.res = (wh[0] + "x") + wh[1];
_local1.server = _local1.server + _local1.id;
delete _local1.id;
clip._mochiad_loaded = true;
var _local2 = mc.createEmptyMovieClip("_mochiad_ctr", 1);
for (var k in _local1) {
_local2[k] = _local1[k];
}
var server = _local2.server;
delete _local2.server;
var hostname = MochiAd._allowDomains(server);
mc.onEnterFrame = function () {
var _local1 = this;
if (_local1._mochiad_ctr._url != _local1._url) {
_local1.onEnterFrame = function () {
var _local1 = this;
if (!_local1._mochiad_ctr) {
delete _local1.onEnterFrame;
MochiAd.unload(_local1._parent);
}
};
}
};
var _local3 = new LocalConnection();
var name = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local3.mc = mc;
_local3.name = name;
_local3.hostname = hostname;
_local3.allowDomain = function (d) {
return(true);
};
_local3.allowInsecureDomain = _local3.allowDomain;
_local3.connect(name);
mc.lc = _local3;
_local2.lc = name;
_local2.st = getTimer();
_local2.loadMovie(server + ".swf", "POST");
return(mc);
}, unload:function (clip) {
var _local1 = clip;
if (typeof(_local1) == "undefined") {
_local1 = _root;
}
if (_local1.clip && (_local1.clip._mochiad)) {
_local1 = _local1.clip;
}
if (!_local1._mochiad) {
return(false);
}
_local1._mochiad.removeMovieClip();
delete _local1._mochiad_loaded;
delete _local1._mochiad;
return(true);
}, _isNetworkAvailable:function () {
if (System.security) {
var _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}, _getRes:function (options) {
var _local3 = options.clip.getBounds();
var _local2 = 0;
var _local1 = 0;
if (typeof(options.res) != "undefined") {
var xy = options.res.split("x");
_local2 = parseFloat(xy[0]);
_local1 = parseFloat(xy[1]);
} else {
_local2 = _local3.xMax - _local3.xMin;
_local1 = _local3.yMax - _local3.yMin;
}
if ((_local2 == 0) || (_local1 == 0)) {
_local2 = Stage.width;
_local1 = Stage.height;
}
return([_local2, _local1]);
}, _parseOptions:function (options, defaults) {
var _local3 = {};
for (var k in defaults) {
_local3[k] = defaults[k];
}
if (options) {
for (var k in options) {
_local3[k] = options[k];
}
}
if (_root.mochiad_options) {
var pairs = _root.mochiad_options.split("&");
var _local1 = 0;
while (_local1 < pairs.length) {
var _local2 = pairs[_local1].split("=");
_local3[unescape(_local2[0])] = unescape(_local2[1]);
_local1++;
}
}
if (_local3.id == "test") {
trace("[MochiAd] WARNING: Using the MochiAds test identifier, make sure to use the code from your dashboard, not this example!");
}
return(_local3);
}, _:null};
MochiAd.showTimedAd({id:"0e7c24bda8bdb752", res:"640x480"});
Frame 8
stop();
_root.playscren = 0;
lanjut = _currentframe;
Frame 9
stop();
scr._visible = 1;
scr2._visible = 1;
playscren = 1;
pause = 0;
name = "garuda 1";
n = 0;
nx = 0;
batas = 0;
from = "";
msg = "";
go = 0;
goraja = 1;
jmlraja = 5;
power = 20;
tembak = 0;
spawn = 20;
spawntime = 20;
timeplay = 0;
msglist = newarray();
fromlist = newarray();
fromlist = ["bird eye", "bird eye", "bird eye", "bird eye", "bird eye", "bird eye", ""];
msglist = ["we still don't know who's the one responsible for this attack", "now our priority is geeting our base back to operational", "your mission is to repel the second wave attack", "and then back to base for refueling and further misssion briefing", "good luck!!!", "-end of message-", ""];
this.onMouseDown = function () {
gofire = 1;
};
this.onMouseUp = function () {
gofire = 0;
};
this.onEnterFrame = function () {
var _local1 = _root;
if (pause == 0) {
duplicateMovieClip ("api", "api" + jmlapi, 55 + jmlapi);
jmlapi++;
timeplay++;
spawntime--;
if ((jmlraja < 1) && (playscren == 1)) {
scr._visible = 0;
scr2._visible = 0;
delete this.onEnterFrame;
nextFrame();
}
}
if ((timeplay > batas) && (nx < 5)) {
nx = math.floor(batas / 100);
from = fromlist[nx];
msg = msglist[nx];
_local1.scr.msgvw.go = 1;
batas = batas + 100;
}
if (fir > 100) {
fir = 0;
}
if (jumlah > 150) {
jumlah = 0;
}
if (xpjml > 10) {
xpjml = 0;
}
if (jml > 50) {
jml = 0;
}
if (jmlapi > 20) {
jmlapi = 0;
}
if (((spawntime < 0) && (pause == 0)) && (timeplay > 600)) {
go = 1;
if ((timeplay > 3000) && (goraja == 1)) {
i = 1;
while (i < 5) {
duplicateMovieClip ("2", "enemy" + jumlah, 500 + jumlah);
jumlah++;
i++;
}
from = "bird eye";
msg = "there's squadron of jet fighter watch out!! ";
_local1.scr.msgvw.go = 1;
goraja = 0;
} else {
duplicateMovieClip (random(2), "enemy" + jumlah, 500 + jumlah);
jumlah++;
}
spawntime = 30;
}
firerate = firerate + 0.5;
tembak = tembak + 0.2;
if (((gofire == 1) && (pause == 0)) && (_local1.plane.armor > 0)) {
vulcan.start();
if (form == 1) {
if (firerate > 1.5) {
jml++;
name = "blast" + jml;
duplicateMovieClip ("blast", name, jml);
_local1[name]._x = (_local1.plane._x + 2) - random(4);
_local1[name]._y = _local1.plane._y - 18;
firerate = 0;
}
} else if (form == 2) {
if (firerate > 1.5) {
i = 0;
while (i < 2) {
jml++;
name = "blast" + jml;
duplicateMovieClip ("blast", name, jml);
_local1[name]._x = (((_local1.plane._x - 10) + (i * 20)) + 2) - random(4);
_local1[name]._y = _local1.plane._y - 18;
i++;
}
firerate = 0;
}
} else if (form == 3) {
if (firerate > 1.5) {
i = 0;
while (i < 3) {
jml++;
name = "blast" + jml;
duplicateMovieClip ("blast", name, jml);
_local1[name]._x = (((_local1.plane._x - 10) + (i * 10)) + 2) - random(4);
_local1[name]._y = _local1.plane._y - 18;
i++;
}
firerate = 0;
}
} else if (form == 4) {
if (firerate > 1.5) {
i = 0;
while (i < 2) {
jml++;
name = "blast" + jml;
duplicateMovieClip ("blast", name, jml);
_local1[name]._x = (((_local1.plane._x - 10) + (i * 20)) + 2) - random(4);
_local1[name]._y = _local1.plane._y - 18;
i++;
}
firerate = 0;
}
jml++;
name = "blast" + jml;
duplicateMovieClip ("laser", name, jml);
_local1[name]._x = _local1.plane._x;
_local1[name]._y = _local1.plane._y - 18;
laser.start();
} else if (form == 5) {
if (firerate > 2) {
i = 0;
while (i < 2) {
jml++;
name = "blast" + jml;
duplicateMovieClip ("blast", name, jml);
_local1[name]._x = (((_local1.plane._x - 10) + (i * 20)) + 2) - random(4);
_local1[name]._y = _local1.plane._y - 18;
i++;
}
jml++;
name = "blast" + jml;
duplicateMovieClip ("blastx", name, jml);
_local1[name]._x = _local1.plane._x;
_local1[name]._y = _local1.plane._y;
_local1[name]._rotation = plane.turret._rotation;
_local1[name].speedy = Math.sin(((_local1[name]._rotation + random(5)) * Math.PI) / 180) * power;
_local1[name].speedx = Math.cos(((_local1[name]._rotation - random(5)) * Math.PI) / 180) * power;
firerate = 0;
}
jml++;
name = "blast" + jml;
duplicateMovieClip ("laser", name, jml);
_local1[name]._x = _local1.plane._x;
_local1[name]._y = _local1.plane._y - 18;
laser.start();
} else if (form == 6) {
if (firerate > 2) {
i = 0;
while (i < 2) {
jml++;
name = "blast" + jml;
duplicateMovieClip ("blast", name, jml);
_local1[name]._x = (((_local1.plane._x - 10) + (i * 20)) + 2) - random(4);
_local1[name]._y = _local1.plane._y - 18;
i++;
}
jml++;
name = "blast" + jml;
duplicateMovieClip ("blastx", name, jml);
_local1[name]._x = _local1.plane._x;
_local1[name]._y = _local1.plane._y;
_local1[name]._rotation = plane.turret._rotation;
_local1[name].speedy = Math.sin(((_local1[name]._rotation + random(5)) * Math.PI) / 180) * power;
_local1[name].speedx = Math.cos(((_local1[name]._rotation - random(5)) * Math.PI) / 180) * power;
firerate = 0;
}
jml++;
name = "blast" + jml;
duplicateMovieClip ("laser", name, jml);
_local1[name]._x = _local1.plane._x;
_local1[name]._y = _local1.plane._y - 18;
laser.start();
if (tembak > 3) {
roket.start();
jml++;
name = "blast" + jml;
duplicateMovieClip ("missile", name, jml);
_local1[name]._x = _local1.plane._x;
_local1[name]._y = _local1.plane._y + 10;
_local1[name].launch = 1;
tembak = 0;
}
} else if (form == 7) {
if (firerate > 2.5) {
i = 0;
while (i < 2) {
jml++;
name = "blast" + jml;
duplicateMovieClip ("blast", name, jml);
_local1[name]._x = (((_local1.plane._x - 10) + (i * 20)) + 2) - random(4);
_local1[name]._y = _local1.plane._y - 18;
i++;
}
jml++;
name = "blast" + jml;
duplicateMovieClip ("blastx", name, jml);
_local1[name]._x = _local1.plane._x;
_local1[name]._y = _local1.plane._y;
_local1[name]._rotation = plane.turret._rotation;
_local1[name].speedy = Math.sin(((_local1[name]._rotation + random(5)) * Math.PI) / 180) * power;
_local1[name].speedx = Math.cos(((_local1[name]._rotation - random(5)) * Math.PI) / 180) * power;
firerate = 0;
}
jml++;
name = "blast" + jml;
duplicateMovieClip ("laser", name, jml);
_local1[name]._x = _local1.plane._x;
_local1[name]._y = _local1.plane._y - 18;
laser.start();
if (tembak > 3) {
roket.start();
i = 0;
while (i < 2) {
jml++;
name = "blast" + jml;
duplicateMovieClip ("missilex", name, jml);
_local1[name]._x = (_local1.plane._x - 10) + (i * 20);
_local1[name]._y = _local1.plane._y;
_local1[name].launch = 1;
i++;
}
jml++;
name = "blast" + jml;
duplicateMovieClip ("missile", name, jml);
_local1[name]._x = _local1.plane._x;
_local1[name]._y = _local1.plane._y + 10;
_local1[name].launch = 1;
tembak = 0;
}
}
}
};
Instance of Symbol 73 MovieClip "evoscr" in Frame 9
onClipEvent (load) {
this.swapDepths(801);
}
onClipEvent (enterFrame) {
if (!(_root.playscren === 1)) {
removeMovieClip(this);
_visible = 0;
}
}
Instance of Symbol 96 MovieClip "scr2" in Frame 9
onClipEvent (load) {
this.swapDepths(800);
}
onClipEvent (enterFrame) {
if (!(_root.playscren === 1)) {
removeMovieClip(this);
_visible = 0;
}
}
Instance of Symbol 108 MovieClip "scr" in Frame 9
onClipEvent (load) {
this.swapDepths(804);
}
onClipEvent (enterFrame) {
if (!(_root.playscren === 1)) {
removeMovieClip(this);
_visible = 0;
}
}
Instance of Symbol 112 MovieClip "laser" in Frame 9
onClipEvent (load) {
_x = (_x + (random(3) - 1));
damage = 5 + (_root.level / 3);
}
onClipEvent (enterFrame) {
if (!(_root.playscren === 1)) {
removeMovieClip(this);
_visible = 0;
}
if (_root.pause == 0) {
_alpha = (math.random() * 100);
_y = (_y - 35);
}
if (_y < 0) {
removeMovieClip(this);
}
}
Instance of Symbol 150 MovieClip "0" in Frame 9
onClipEvent (load) {
_visible = 1;
_x = random(640);
_y = (-20 - random(20));
speed = 1 + (math.random() * 2);
speedx = 2 - (math.random() * 4);
level = _root.level + random(10);
nama = "helicopter Lv. " + level;
armormax = 10 + level;
armor = armormax;
fire = math.random();
}
onClipEvent (enterFrame) {
if (!(_root.playscren === 1)) {
removeMovieClip(this);
_visible = 0;
}
if ((_root.pause == 0) && (_root.go == 1)) {
if (armor < 1) {
nextFrame();
} else {
if (((_y > 500) || (_x < -20)) || (_x > 660)) {
removeMovieClip(this);
}
fire = fire + 0.01;
_y = (_y + speed);
_x = (_x + speedx);
if (fire > 1) {
_root.jumlah++;
name = "blasten" + _root.jumlah;
duplicateMovieClip ("_root.blasten", name, 100 + _root.jumlah);
_root[name]._x = _x;
_root[name]._y = _y;
_root[name].speedy = 3 + random(4);
_root[name].speedx = 4 - random(8);
fire = 0;
}
n = 0;
while (n < 50) {
name = "blast" + n;
if (hittest(_root[name])) {
bang = "explode" + _root.fir;
if (_root[name].damage < 10) {
duplicateMovieClip (_root.explodb, bang, _root.fir + 300);
_root.explodesml.start();
} else {
duplicateMovieClip (_root.explod, bang, _root.fir + 300);
_root.explodebig.start();
}
if (armor < _root[name].damage) {
armor = 0;
} else {
armor = armor - _root[name].damage;
}
_root.healthmusuh = (("armor :" + math.round(armor)) + " /") + armormax;
_root.scr.hape._xscale = (100 * armor) / armormax;
_root.namamusuh = nama;
_root.fir++;
_root[bang]._x = _root[name]._x;
_root[bang]._y = _root[name]._y;
removeMovieClip(_root[name]);
}
n++;
}
}
}
}
Instance of Symbol 151 MovieClip "explod" in Frame 9
onClipEvent (load) {
_alpha = (30 + random(70));
}
onClipEvent (enterFrame) {
if (!(_root.playscren === 1)) {
removeMovieClip(this);
_visible = 0;
}
}
Instance of Symbol 151 MovieClip "explodb" in Frame 9
onClipEvent (load) {
_alpha = (30 + random(70));
}
onClipEvent (enterFrame) {
if (!(_root.playscren === 1)) {
removeMovieClip(this);
_visible = 0;
}
}
Instance of Symbol 170 MovieClip "1" in Frame 9
onClipEvent (load) {
_visible = 1;
_x = (50 + random(500));
_y = (-20 - random(20));
speed = 1 + (math.random() * 4);
speedx = 2 - (math.random() * 4);
level = _root.level + random(10);
nama = "drone bot Lv. " + level;
armormax = math.ceil(level / 2);
armor = armormax;
fire = math.random();
}
onClipEvent (enterFrame) {
if (!(_root.playscren === 1)) {
removeMovieClip(this);
_visible = 0;
}
if ((_root.pause == 0) && (_root.go == 1)) {
if (armor < 1) {
nextFrame();
} else {
fire = fire + 0.01;
_y = (_y + speed);
_x = (_x + speedx);
if (((_y > 500) || (_x < -20)) || (_x > 660)) {
removeMovieClip(this);
}
if (fire > 1) {
_root.jumlah++;
name = "blasten" + _root.jumlah;
duplicateMovieClip ("_root.blasten", name, 100 + _root.jumlah);
_root[name]._x = _x;
_root[name]._y = _y;
_root[name].speedy = 3 + random(4);
_root[name].speedx = 4 - random(8);
fire = 0;
}
n = 0;
while (n < 50) {
name = "blast" + n;
if (hittest(_root[name])) {
bang = "explode" + _root.fir;
if (_root[name].damage < 10) {
duplicateMovieClip (_root.explodb, bang, _root.fir + 300);
_root.explodesml.start();
} else {
duplicateMovieClip (_root.explod, bang, _root.fir + 300);
_root.explodebig.start();
}
if (armor < _root[name].damage) {
armor = 0;
} else {
armor = armor - _root[name].damage;
}
_root.healthmusuh = (("armor :" + math.round(armor)) + " /") + armormax;
_root.scr.hape._xscale = (100 * armor) / armormax;
_root.namamusuh = nama;
_root.fir++;
_root[bang]._x = _root[name]._x;
_root[bang]._y = _root[name]._y;
removeMovieClip(_root[name]);
}
n++;
}
}
}
}
Instance of Symbol 177 MovieClip in Frame 9
onClipEvent (load) {
this.swapDepths(802);
}
onClipEvent (keyDown) {
if (key.isdown(32) && (_root.pause == 0)) {
pauseg = 1;
} else if (key.isdown(32) && (_root.pause == 1)) {
pauseg = 0;
}
}
onClipEvent (enterFrame) {
if (pauseg == 1) {
nextFrame();
} else {
prevFrame();
}
}
Instance of Symbol 203 MovieClip "2" in Frame 9
onClipEvent (load) {
_visible = 1;
raja = 1;
_x = random(640);
_y = (-30 - random(20));
speed = 5 + (math.random() * 3);
speedx = 2 - (math.random() * 4);
level = (_root.level + 10) + random(10);
nama = "JAV - 8B Lv. " + level;
armormax = 15 + level;
armor = armormax;
fire = math.random();
masuk = 0;
}
onClipEvent (enterFrame) {
if (!(_root.playscren === 1)) {
removeMovieClip(this);
_visible = 0;
}
if ((_root.pause == 0) && (_root.goraja == 0)) {
if (armor < 1) {
nextFrame();
} else {
if (((_y > 500) || (_x < -20)) || (_x > 660)) {
_x = random(640);
_y = (-20 - random(100));
speed = 5 + (math.random() * 3);
speedx = 2 - (math.random() * 4);
}
fire = fire + 0.05;
_y = (_y + speed);
_x = (_x + speedx);
if (fire > 1) {
_root.jumlah++;
name = "blasten" + _root.jumlah;
duplicateMovieClip (_root.missileen, name, 100 + _root.jumlah);
_root[name]._x = _x;
_root[name]._y = _y;
_root[name].launch = 1;
fire = 0;
}
n = 0;
while (n < 50) {
name = "blast" + n;
if (hittest(_root[name])) {
bang = "explode" + _root.fir;
if (_root[name].damage < 10) {
duplicateMovieClip (_root.explodb, bang, _root.fir + 300);
_root.explodesml.start();
} else {
duplicateMovieClip (_root.explod, bang, _root.fir + 300);
_root.explodebig.start();
}
if (armor < _root[name].damage) {
armor = 0;
} else {
armor = armor - _root[name].damage;
}
_root.healthmusuh = (("armor :" + math.round(armor)) + " /") + armormax;
_root.scr.hape._xscale = (100 * armor) / armormax;
_root.namamusuh = nama;
_root.fir++;
_root[bang]._x = _root[name]._x;
_root[bang]._y = _root[name]._y;
removeMovieClip(_root[name]);
}
n++;
}
}
}
}
Instance of Symbol 180 MovieClip "expview" in Frame 9
onClipEvent (load) {
_alpha = 100;
}
onClipEvent (enterFrame) {
if (!(_root.playscren === 1)) {
removeMovieClip(this);
_visible = 0;
}
_y = (_y + 2);
_alpha = (_alpha-1);
if (_alpha < 1) {
removeMovieClip(this);
}
}
Instance of Symbol 186 MovieClip "missile" in Frame 9
onClipEvent (load) {
power = 20;
_alpha = 0;
damage = 30 + (_root.level / 3);
targetx = random(640);
targety = -50;
_rotation = ((Math.atan2(targety - _y, targetx - _x) * 180) / Math.PI);
}
onClipEvent (enterFrame) {
if (!(_root.playscren === 1)) {
removeMovieClip(this);
_visible = 0;
}
if (_root.pause == 0) {
if (launch == 1) {
if (_alpha < 100) {
_alpha = (_alpha + 15);
}
_rotation = ((Math.atan2(targety - _y, targetx - _x) * 180) / Math.PI);
speedx = Math.cos(((_rotation - random(5)) * Math.PI) / 180) * power;
speedy = Math.sin(((_rotation + random(5)) * Math.PI) / 180) * power;
_x = (_x + speedx);
_y = (_y + speedy);
}
}
if (_y < -30) {
removeMovieClip(this);
}
}
Instance of Symbol 186 MovieClip "missilex" in Frame 9
onClipEvent (load) {
power = 20;
time = 3 + random(8);
_alpha = 0;
damage = 30;
targetx = random(640);
targety = -30;
_rotation = ((Math.atan2(targety - _y, targetx - _x) * 180) / Math.PI);
damage = 25 + (_root.level / 3);
}
onClipEvent (enterFrame) {
if (!(_root.playscren === 1)) {
removeMovieClip(this);
_visible = 0;
}
if (_root.pause == 0) {
if (launch == 1) {
if (time < 0) {
targetx = _root._xmouse;
}
if (_alpha < 100) {
_alpha = (_alpha + 15);
}
time--;
_rotation = ((Math.atan2(targety - _y, targetx - _x) * 180) / Math.PI);
speedx = Math.cos(((_rotation - random(5)) * Math.PI) / 180) * power;
speedy = Math.sin(((_rotation + random(5)) * Math.PI) / 180) * power;
_x = (_x + speedx);
_y = (_y + speedy);
}
}
if (_y < -10) {
removeMovieClip(this);
}
}
Instance of Symbol 110 MovieClip "blasten" in Frame 9
onClipEvent (load) {
_alpha = random(40);
damage = 3;
}
onClipEvent (enterFrame) {
if (!(_root.playscren === 1)) {
removeMovieClip(this);
_visible = 0;
}
if (_root.pause == 0) {
if (hittest(_root.plane)) {
if (_root.plane.shield < damage) {
if (_root.plane.armor < damage) {
_root.plane.armor = 0;
} else {
_root.plane.armor = _root.plane.armor - (damage - _root.plane.shield);
}
_root.plane.shield = 0;
} else {
_root.plane.shield = _root.plane.shield - damage;
}
bang = "explode" + _root.fir;
duplicateMovieClip (_root.explodb, bang, _root.fir + 400);
_root.fir++;
_root[bang]._x = _x;
_root[bang]._y = _y;
_root.explodesml.start();
removeMovieClip(this);
}
_alpha = (_alpha + 5);
_x = (_x + speedx);
_y = (_y + speedy);
}
if ((((_y < 0) || (_y > 480)) || (_x < 0)) || (_x > 640)) {
removeMovieClip(this);
}
}
Instance of Symbol 186 MovieClip "missileen" in Frame 9
onClipEvent (load) {
power = 10;
_alpha = 0;
damage = 15 + (_root.level / 3);
targetx = random(640);
targety = 500;
_rotation = ((Math.atan2(targety - _y, targetx - _x) * 180) / Math.PI);
}
onClipEvent (enterFrame) {
if (!(_root.playscren === 1)) {
removeMovieClip(this);
_visible = 0;
}
if (_root.pause == 0) {
if (launch == 1) {
if (_alpha < 100) {
_alpha = (_alpha + 15);
}
_rotation = ((Math.atan2(targety - _y, targetx - _x) * 180) / Math.PI);
speedx = Math.cos(((_rotation - random(5)) * Math.PI) / 180) * power;
speedy = Math.sin(((_rotation + random(5)) * Math.PI) / 180) * power;
_x = (_x + speedx);
_y = (_y + speedy);
if (hit.hittest(_root.plane)) {
if (_root.plane.shield < damage) {
if (_root.plane.armor < damage) {
_root.plane.armor = 0;
} else {
_root.plane.armor = _root.plane.armor - (damage - _root.plane.shield);
}
_root.plane.shield = 0;
} else {
_root.plane.shield = _root.plane.shield - damage;
}
bang = "explode" + _root.fir;
duplicateMovieClip (_root.explod, bang, _root.fir + 400);
_root.fir++;
_root[bang]._x = _x;
_root[bang]._y = _y;
_root.explodebig.start();
removeMovieClip(this);
}
n = 0;
while (n < 50) {
name = "blast" + n;
if (hit.hittest(_root[name])) {
bang = "explode" + _root.fir;
duplicateMovieClip (_root.explod, bang, _root.fir + 201);
_root.fir++;
_root[bang]._x = _root[name]._x;
_root[bang]._y = _root[name]._y;
_root.explodebig.start();
removeMovieClip(_root[name]);
removeMovieClip(this);
}
n++;
}
}
}
if (_y > 480) {
removeMovieClip(this);
}
}
Instance of Symbol 110 MovieClip "blast" in Frame 9
onClipEvent (load) {
_alpha = random(40);
speed = 20 + (math.random() * 1);
damage = 2 + (_root.level / 1.5);
}
onClipEvent (enterFrame) {
if (!(_root.playscren === 1)) {
removeMovieClip(this);
_visible = 0;
}
if (_root.pause == 0) {
if (_alpha < 100) {
_alpha = (_alpha + 10);
}
_y = (_y - speed);
}
if (_y < 0) {
removeMovieClip(this);
}
}
Instance of Symbol 110 MovieClip "blastx" in Frame 9
onClipEvent (load) {
_alpha = random(40);
damage = 1 + (_root.level / 3);
}
onClipEvent (enterFrame) {
if (!(_root.playscren === 1)) {
removeMovieClip(this);
_visible = 0;
}
if (_root.pause == 0) {
if (_alpha < 100) {
_alpha = (_alpha + 10);
}
_x = (_x + speedx);
_y = (_y + speedy);
}
if ((((_y < 0) || (_y > 480)) || (_x < 0)) || (_x > 640)) {
removeMovieClip(this);
}
}
Instance of Symbol 182 MovieClip "api" in Frame 9
onClipEvent (load) {
_alpha = (_root.scr2.darah._xscale + (math.random() * (100 - _root.scr2.darah._xscale)));
spd = ((5 - random(11)) * (100 - _root.scr2.darah._xscale)) / 100;
spdy = 2 + ((math.random() * (100 - _root.scr2.darah._xscale)) / 10);
uk = _root.scr2.darah._xscale + (math.random() * (100 - _root.scr2.darah._xscale));
_xscale = uk;
_yscale = uk;
_x = _root.plane._x;
_y = (_root.plane._y + 18);
}
onClipEvent (enterFrame) {
if (!(_root.playscren === 1)) {
removeMovieClip(this);
_visible = 0;
}
if (_root.pause == 0) {
_y = (_y + spdy);
_x = (_x + spd);
spd = spd * 0.9;
_alpha = (_alpha - 8);
uk = uk - 5;
_xscale = uk;
_yscale = uk;
if ((_alpha < 0) || (uk < 0)) {
removeMovieClip(this);
_visible = 0;
}
}
}
Instance of Symbol 197 MovieClip "plane" in Frame 9
onClipEvent (load) {
armor = _root.maxhp;
shield = _root.maxhp / 2;
}
onClipEvent (enterFrame) {
if (_root.pause == 0) {
_y = (_y + speedy);
_x = (_x + speed);
speed = speed * 0.9;
speedy = speedy * 0.9;
if (armor > 0) {
if (shield < (_root.maxhp / 2)) {
shield = shield + (0.0001 * _root.maxhp);
}
if (_x < 0) {
speed = speed + 2;
} else if (_x > 640) {
speed = speed - 2;
}
if (_y < 0) {
speedy = speedy + 2;
} else if (_y > 400) {
speedy = speedy - 2;
}
if (Key.isDown(65) || (key.isdown(37))) {
speed = speed - 1.5;
} else if (Key.isDown(68) || (key.isdown(39))) {
speed = speed + 1.5;
}
if (Key.isDown(87) || (key.isdown(38))) {
speedy = speedy - 1.5;
} else if (Key.isDown(83) || (key.isdown(40))) {
speedy = speedy + 1.5;
}
} else {
speedy = speedy + 1;
armor = 0;
if (ledak > 1) {
bang = "explode" + _root.fir;
duplicateMovieClip (_root.explod, bang, _root.fir + 201);
_root.fir++;
_root[bang]._x = (_x + 13) - random(26);
_root[bang]._y = (_y + 23) - random(46);
ledak = 0;
}
ledak = ledak + 0.2;
if (_y > 660) {
_root.scr2._visible = 0;
_root.scr._visible = 0;
_root.gotoAndStop("over");
}
}
}
}
Frame 10
var MochiAd = {getVersion:function () {
return("2.3");
}, showPreGameAd:function (options) {
var _local1 = this;
var DEFAULTS = {clip:_root, ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:16747008, background:16777161, outline:13994812, ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}, ad_failed:function () {
trace("[MochAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_loaded:function (width, height) {
}};
options = MochiAd._parseOptions(options, DEFAULTS);
if ("5cc6f7dfb67f2f08341c831480f7c2a7".length == 0) {
options.ad_started();
options.ad_finished();
} else {
var clip = options.clip;
var ad_msec = 11000;
var ad_timeout = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!MochiAd.load(options)) {
options.ad_failed();
options.ad_finished();
} else {
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var wh = MochiAd._getRes(options);
var _local3 = wh[0];
var h = wh[1];
mc._x = _local3 * 0.5;
mc._y = h * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk._x = _local3 * -0.5;
chk._y = h * -0.5;
var bar = chk.createEmptyMovieClip("_mochiad_bar", 4);
bar._x = 10;
bar._y = h - 20;
var bar_color = options.color;
delete options.color;
var bar_background = options.background;
delete options.background;
var bar_outline = options.outline;
delete options.outline;
var backing = bar.createEmptyMovieClip("_outline", 1);
backing.beginFill(bar_background);
backing.moveTo(0, 0);
backing.lineTo(_local3 - 20, 0);
backing.lineTo(_local3 - 20, 10);
backing.lineTo(0, 10);
backing.lineTo(0, 0);
backing.endFill();
var _local2 = bar.createEmptyMovieClip("_inside", 2);
_local2.beginFill(bar_color);
_local2.moveTo(0, 0);
_local2.lineTo(_local3 - 20, 0);
_local2.lineTo(_local3 - 20, 10);
_local2.lineTo(0, 10);
_local2.lineTo(0, 0);
_local2.endFill();
_local2._xscale = 0;
var outline = bar.createEmptyMovieClip("_outline", 3);
outline.lineStyle(0, bar_outline, 100);
outline.moveTo(0, 0);
outline.lineTo(_local3 - 20, 0);
outline.lineTo(_local3 - 20, 10);
outline.lineTo(0, 10);
outline.lineTo(0, 0);
chk.ad_msec = ad_msec;
chk.ad_timeout = ad_timeout;
chk.started = getTimer();
chk.showing = false;
chk.last_pcnt = 0;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local1 = this;
var _local2 = 100 * (1 - ((getTimer() - _local1.fadeout_start) / _local1.fadeout_time));
if (_local2 > 0) {
_local1._parent._alpha = _local2;
} else {
var _local3 = _local1._parent._parent;
MochiAd.unload(_local3);
delete _local1.onEnterFrame;
}
};
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adjustProgress = function (msec) {
var _local1 = this.mc._mochiad_wait;
_local1.server_control = true;
_local1.started = getTimer();
_local1.ad_msec = msec;
};
chk.onEnterFrame = function () {
var _local1 = this;
var _clip = _local1._parent._parent;
var ad_clip = _local1._parent._mochiad_ctr;
var elapsed = (getTimer() - _local1.started);
var _local3 = false;
var clip_total = _clip.getBytesTotal();
var clip_loaded = _clip.getBytesLoaded();
var clip_pcnt = ((100 * clip_loaded) / clip_total);
var ad_pcnt = ((100 * elapsed) / chk.ad_msec);
var _inside = _local1._mochiad_bar._inside;
var _local2 = Math.min(100, Math.min(clip_pcnt || 0, ad_pcnt));
_local2 = Math.max(_local1.last_pcnt, _local2);
_local1.last_pcnt = _local2;
_inside._xscale = _local2;
if (!chk.showing) {
var total = ad_clip.getBytesTotal();
if ((total > 0) || (typeof(total) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (elapsed > chk.ad_timeout) {
options.ad_failed();
_local3 = true;
}
}
if (elapsed > chk.ad_msec) {
_local3 = true;
}
if (((clip_total > 0) && (clip_loaded >= clip_total)) && (_local3)) {
if (_local1.server_control) {
delete _local1.onEnterFrame;
} else {
_local1.fadeout_start = getTimer();
_local1.onEnterFrame = chk.fadeFunction;
}
}
};
}
}
}, showInterLevelAd:function (options) {
var _local1 = this;
var DEFAULTS = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showTimedAd", ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}, ad_failed:function () {
trace("[MochAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_loaded:function (width, height) {
}};
options = MochiAd._parseOptions(options, DEFAULTS);
var clip = options.clip;
var ad_msec = 11000;
var ad_timeout = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!MochiAd.load(options)) {
options.ad_failed();
options.ad_finished();
} else {
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var wh = MochiAd._getRes(options);
var w = wh[0];
var h = wh[1];
mc._x = w * 0.5;
mc._y = h * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_msec = ad_msec;
chk.ad_timeout = ad_timeout;
chk.started = getTimer();
chk.showing = false;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local1 = this;
var _local2 = 100 * (1 - ((getTimer() - _local1.fadeout_start) / _local1.fadeout_time));
if (_local2 > 0) {
_local1._parent._alpha = _local2;
} else {
var _local3 = _local1._parent._parent;
MochiAd.unload(_local3);
delete _local1.onEnterFrame;
}
};
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adjustProgress = function (msec) {
var _local1 = this.mc._mochiad_wait;
_local1.server_control = true;
_local1.started = getTimer();
_local1.ad_msec = msec - 250;
};
chk.onEnterFrame = function () {
var _local1 = this;
var ad_clip = _local1._parent._mochiad_ctr;
var elapsed = (getTimer() - _local1.started);
var _local2 = false;
if (!chk.showing) {
var _local3 = ad_clip.getBytesTotal();
if ((_local3 > 0) || (typeof(_local3) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (elapsed > chk.ad_timeout) {
options.ad_failed();
_local2 = true;
}
}
if (elapsed > chk.ad_msec) {
_local2 = true;
}
if (_local2) {
if (_local1.server_control) {
delete _local1.onEnterFrame;
} else {
_local1.fadeout_start = getTimer();
_local1.onEnterFrame = _local1.fadeFunction;
}
}
};
}
}, showTimedAd:function (options) {
trace("[MochiAd] DEPRECATED: showTimedAd was renamed to showInterLevelAd in 2.0");
MochiAd.showInterLevelAd(options);
}, showPreloaderAd:function (options) {
trace("[MochiAd] DEPRECATED: showPreloaderAd was renamed to showPreGameAd in 2.0");
MochiAd.showPreGameAd(options);
}, _allowDomains:function (server) {
var _local1 = server.split("/")[2].split(":")[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain("*");
System.security.allowDomain(_local1);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain("*");
System.security.allowInsecureDomain(_local1);
}
}
return(_local1);
}, _loadCommunicator:function (options) {
var _local2 = options;
var _local3 = arguments;
var DEFAULTS = {clip:_root, com_server:"http://x.mochiads.com/com/1/", method:"loadCommunicator", depth:10337, id:"_UNKNOWN_"};
_local2 = MochiAd._parseOptions(_local2, DEFAULTS);
_local2.swfv = _local2.clip.getSWFVersion() || 6;
_local2.mav = MochiAd.getVersion();
var clip = _local2.clip;
var clipname = ("_mochiad_com_" + _local2.id);
if (!MochiAd._isNetworkAvailable()) {
return(null);
}
if (clip[clipname]) {
return(clip[clipname].lc);
}
var server = (_local2.com_server + _local2.id);
MochiAd._allowDomains(server);
delete _local2.id;
delete _local2.com_server;
var depth = _local2.depth;
delete _local2.depth;
var mc = clip.createEmptyMovieClip(clipname, depth);
var lv = mc.createEmptyMovieClip("_mochiad_com", 1);
for (var k in _local2) {
lv[k] = _local2[k];
}
var lc = new LocalConnection();
var name = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
lc.mc = mc;
lc.name = name;
lc.allowDomain = function (d) {
return(true);
};
lc.allowInsecureDomain = lc.allowDomain;
lc.connect(name);
mc.lc = lc;
lv.lc = name;
lc._id = 0;
lc._queue = [];
lc.rpcResult = function (cb_arg) {
var cb = parseInt(cb_arg);
var _local2 = this._callbacks[cb];
if (!_local2) {
} else {
delete this._callbacks[cb];
var _local3 = [];
var _local1 = 2;
while (_local1 < _local2.length) {
_local3.push(_local2[_local1]);
_local1++;
}
_local1 = 1;
while (_local1 < arguments.length) {
_local3.push(arguments[_local1]);
_local1++;
}
var method = _local2[1];
var obj = _local2[0];
if (obj && (typeof(method) == "string")) {
method = obj[method];
}
if (method) {
method.apply(obj, _local3);
}
}
};
lc._didConnect = function (endpoint) {
this._endpoint = endpoint;
var _local3 = this._queue;
delete this._queue;
var ds = this.doSend;
var _local1 = 0;
while (_local1 < _local3.length) {
var _local2 = _local3[_local1];
ds.apply(this, _local2);
_local1++;
}
};
lc.doSend = function (args, cbobj, cbfn) {
var _local2 = arguments;
if (this._endpoint == null) {
var _local3 = [];
var _local1 = 0;
while (_local1 < _local2.length) {
_local3.push(_local2[_local1]);
_local1++;
}
this._queue.push(_local3);
} else {
this._id = this._id + 1;
var id = this._id;
if ((cbfn === undefined) || (cbfn === null)) {
cbfn = cbobj;
}
this._callbacks[id] = [cbobj, cbfn];
var slc = new LocalConnection();
var ss = slc.send(this._endpoint, "rpc", id, args);
}
};
lc._callbacks = {};
lc._callbacks[0] = [lc, "_didConnect"];
lv.st = getTimer();
lv.loadMovie(server + ".swf", "POST");
return(lc);
}, fetchHighScores:function (options, callbackObj, callbackMethod) {
var _local2 = options;
var _local1 = MochiAd._loadCommunicator({id:_local2.id});
if (!_local1) {
return(false);
}
var fncall = ["fetchHighScores", _local2];
_local1.doSend(["fetchHighScores", _local2], callbackObj, callbackMethod);
return(true);
}, sendHighScore:function (options, callbackObj, callbackMethod) {
var _local2 = options;
var _local1 = MochiAd._loadCommunicator({id:_local2.id});
if (!_local1) {
return(false);
}
var fncall = ["sendHighScore", _local2];
_local1.doSend(["sendHighScore", _local2], callbackObj, callbackMethod);
return(true);
}, load:function (options) {
var _local1 = options;
var DEFAULTS = {clip:_root, server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"};
_local1 = MochiAd._parseOptions(_local1, DEFAULTS);
_local1.swfv = _local1.clip.getSWFVersion() || 6;
_local1.mav = MochiAd.getVersion();
var clip = _local1.clip;
if (!MochiAd._isNetworkAvailable()) {
return(null);
}
if (clip._mochiad_loaded) {
return(null);
}
var depth = _local1.depth;
delete _local1.depth;
var mc = clip.createEmptyMovieClip("_mochiad", depth);
var wh = MochiAd._getRes(_local1);
_local1.res = (wh[0] + "x") + wh[1];
_local1.server = _local1.server + _local1.id;
delete _local1.id;
clip._mochiad_loaded = true;
var _local2 = mc.createEmptyMovieClip("_mochiad_ctr", 1);
for (var k in _local1) {
_local2[k] = _local1[k];
}
var server = _local2.server;
delete _local2.server;
var hostname = MochiAd._allowDomains(server);
mc.onEnterFrame = function () {
var _local1 = this;
if (_local1._mochiad_ctr._url != _local1._url) {
_local1.onEnterFrame = function () {
var _local1 = this;
if (!_local1._mochiad_ctr) {
delete _local1.onEnterFrame;
MochiAd.unload(_local1._parent);
}
};
}
};
var _local3 = new LocalConnection();
var name = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local3.mc = mc;
_local3.name = name;
_local3.hostname = hostname;
_local3.allowDomain = function (d) {
return(true);
};
_local3.allowInsecureDomain = _local3.allowDomain;
_local3.connect(name);
mc.lc = _local3;
_local2.lc = name;
_local2.st = getTimer();
_local2.loadMovie(server + ".swf", "POST");
return(mc);
}, unload:function (clip) {
var _local1 = clip;
if (typeof(_local1) == "undefined") {
_local1 = _root;
}
if (_local1.clip && (_local1.clip._mochiad)) {
_local1 = _local1.clip;
}
if (!_local1._mochiad) {
return(false);
}
_local1._mochiad.removeMovieClip();
delete _local1._mochiad_loaded;
delete _local1._mochiad;
return(true);
}, _isNetworkAvailable:function () {
if (System.security) {
var _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}, _getRes:function (options) {
var _local3 = options.clip.getBounds();
var _local2 = 0;
var _local1 = 0;
if (typeof(options.res) != "undefined") {
var xy = options.res.split("x");
_local2 = parseFloat(xy[0]);
_local1 = parseFloat(xy[1]);
} else {
_local2 = _local3.xMax - _local3.xMin;
_local1 = _local3.yMax - _local3.yMin;
}
if ((_local2 == 0) || (_local1 == 0)) {
_local2 = Stage.width;
_local1 = Stage.height;
}
return([_local2, _local1]);
}, _parseOptions:function (options, defaults) {
var _local3 = {};
for (var k in defaults) {
_local3[k] = defaults[k];
}
if (options) {
for (var k in options) {
_local3[k] = options[k];
}
}
if (_root.mochiad_options) {
var pairs = _root.mochiad_options.split("&");
var _local1 = 0;
while (_local1 < pairs.length) {
var _local2 = pairs[_local1].split("=");
_local3[unescape(_local2[0])] = unescape(_local2[1]);
_local1++;
}
}
if (_local3.id == "test") {
trace("[MochiAd] WARNING: Using the MochiAds test identifier, make sure to use the code from your dashboard, not this example!");
}
return(_local3);
}, _:null};
MochiAd.showTimedAd({id:"0e7c24bda8bdb752", res:"640x480"});
Frame 11
_root.playscren = 0;
lanjut = _currentframe;
stop();
Frame 12
stop();
scr._visible = 1;
scr2._visible = 1;
playscren = 1;
pause = 0;
n = 0;
nx = 0;
batas = 0;
from = "";
msg = "";
go = 0;
goraja = 1;
jmlraja = 10;
power = 20;
tembak = 0;
spawn = 20;
spawntime = 20;
timeplay = 0;
msglist = newarray();
fromlist = newarray();
fromlist = ["bird eye", "bird eye", "bird eye", "bird eye", "bird eye", "bird eye", "bird eye", "bird eye", ""];
msglist = ["your mission is to destroy 10 enemy fleet along our coast line", "about the fighter jet how did they can reach here with out refueling?", "our radar didn't see any aircraft carrier", "it's feel like they are going on one trip attack", "they are gonna die whether the attack is succesfull or not", "what kind of soldier are they?", ""];
this.onMouseDown = function () {
gofire = 1;
};
this.onMouseUp = function () {
gofire = 0;
};
this.onEnterFrame = function () {
var _local1 = _root;
if (pause == 0) {
duplicateMovieClip ("api", "api" + jmlapi, 55 + jmlapi);
jmlapi++;
timeplay++;
spawntime--;
if ((jmlraja < 1) && (playscren == 1)) {
scr._visible = 0;
scr2._visible = 0;
delete this.onEnterFrame;
nextFrame();
}
}
if ((timeplay > batas) && (nx < 6)) {
nx = math.floor(batas / 100);
from = fromlist[nx];
msg = msglist[nx];
_local1.scr.msgvw.go = 1;
batas = batas + 100;
}
if (fir > 100) {
fir = 0;
}
if (jumlah > 150) {
jumlah = 0;
}
if (xpjml > 10) {
xpjml = 0;
}
if (jml > 50) {
jml = 0;
}
if (jmlapi > 20) {
jmlapi = 0;
}
if (((spawntime < 0) && (pause == 0)) && (timeplay > 400)) {
go = 1;
duplicateMovieClip (random(2), "enemy" + jumlah, 500 + jumlah);
jumlah++;
spawntime = 25;
}
firerate = firerate + 0.5;
tembak = tembak + 0.2;
if (((gofire == 1) && (pause == 0)) && (_local1.plane.armor > 0)) {
vulcan.start();
if (form == 1) {
if (firerate > 1.5) {
jml++;
name = "blast" + jml;
duplicateMovieClip ("blast", name, jml);
_local1[name]._x = (_local1.plane._x + 2) - random(4);
_local1[name]._y = _local1.plane._y - 18;
firerate = 0;
}
} else if (form == 2) {
if (firerate > 1.5) {
i = 0;
while (i < 2) {
jml++;
name = "blast" + jml;
duplicateMovieClip ("blast", name, jml);
_local1[name]._x = (((_local1.plane._x - 10) + (i * 20)) + 2) - random(4);
_local1[name]._y = _local1.plane._y - 18;
i++;
}
firerate = 0;
}
} else if (form == 3) {
if (firerate > 1.5) {
i = 0;
while (i < 3) {
jml++;
name = "blast" + jml;
duplicateMovieClip ("blast", name, jml);
_local1[name]._x = (((_local1.plane._x - 10) + (i * 10)) + 2) - random(4);
_local1[name]._y = _local1.plane._y - 18;
i++;
}
firerate = 0;
}
} else if (form == 4) {
if (firerate > 1.5) {
i = 0;
while (i < 2) {
jml++;
name = "blast" + jml;
duplicateMovieClip ("blast", name, jml);
_local1[name]._x = (((_local1.plane._x - 10) + (i * 20)) + 2) - random(4);
_local1[name]._y = _local1.plane._y - 18;
i++;
}
firerate = 0;
}
jml++;
name = "blast" + jml;
duplicateMovieClip ("laser", name, jml);
_local1[name]._x = _local1.plane._x;
_local1[name]._y = _local1.plane._y - 18;
laser.start();
} else if (form == 5) {
if (firerate > 2) {
i = 0;
while (i < 2) {
jml++;
name = "blast" + jml;
duplicateMovieClip ("blast", name, jml);
_local1[name]._x = (((_local1.plane._x - 10) + (i * 20)) + 2) - random(4);
_local1[name]._y = _local1.plane._y - 18;
i++;
}
jml++;
name = "blast" + jml;
duplicateMovieClip ("blastx", name, jml);
_local1[name]._x = _local1.plane._x;
_local1[name]._y = _local1.plane._y;
_local1[name]._rotation = plane.turret._rotation;
_local1[name].speedy = Math.sin(((_local1[name]._rotation + random(5)) * Math.PI) / 180) * power;
_local1[name].speedx = Math.cos(((_local1[name]._rotation - random(5)) * Math.PI) / 180) * power;
firerate = 0;
}
jml++;
name = "blast" + jml;
duplicateMovieClip ("laser", name, jml);
_local1[name]._x = _local1.plane._x;
_local1[name]._y = _local1.plane._y - 18;
laser.start();
} else if (form == 6) {
if (firerate > 2) {
i = 0;
while (i < 2) {
jml++;
name = "blast" + jml;
duplicateMovieClip ("blast", name, jml);
_local1[name]._x = (((_local1.plane._x - 10) + (i * 20)) + 2) - random(4);
_local1[name]._y = _local1.plane._y - 18;
i++;
}
jml++;
name = "blast" + jml;
duplicateMovieClip ("blastx", name, jml);
_local1[name]._x = _local1.plane._x;
_local1[name]._y = _local1.plane._y;
_local1[name]._rotation = plane.turret._rotation;
_local1[name].speedy = Math.sin(((_local1[name]._rotation + random(5)) * Math.PI) / 180) * power;
_local1[name].speedx = Math.cos(((_local1[name]._rotation - random(5)) * Math.PI) / 180) * power;
firerate = 0;
}
jml++;
name = "blast" + jml;
duplicateMovieClip ("laser", name, jml);
_local1[name]._x = _local1.plane._x;
_local1[name]._y = _local1.plane._y - 18;
laser.start();
if (tembak > 3) {
roket.start();
jml++;
name = "blast" + jml;
duplicateMovieClip ("missile", name, jml);
_local1[name]._x = _local1.plane._x;
_local1[name]._y = _local1.plane._y + 10;
_local1[name].launch = 1;
tembak = 0;
}
} else if (form == 7) {
if (firerate > 2.5) {
i = 0;
while (i < 2) {
jml++;
name = "blast" + jml;
duplicateMovieClip ("blast", name, jml);
_local1[name]._x = (((_local1.plane._x - 10) + (i * 20)) + 2) - random(4);
_local1[name]._y = _local1.plane._y - 18;
i++;
}
jml++;
name = "blast" + jml;
duplicateMovieClip ("blastx", name, jml);
_local1[name]._x = _local1.plane._x;
_local1[name]._y = _local1.plane._y;
_local1[name]._rotation = plane.turret._rotation;
_local1[name].speedy = Math.sin(((_local1[name]._rotation + random(5)) * Math.PI) / 180) * power;
_local1[name].speedx = Math.cos(((_local1[name]._rotation - random(5)) * Math.PI) / 180) * power;
firerate = 0;
}
jml++;
name = "blast" + jml;
duplicateMovieClip ("laser", name, jml);
_local1[name]._x = _local1.plane._x;
_local1[name]._y = _local1.plane._y - 18;
laser.start();
if (tembak > 3) {
roket.start();
i = 0;
while (i < 2) {
jml++;
name = "blast" + jml;
duplicateMovieClip ("missilex", name, jml);
_local1[name]._x = (_local1.plane._x - 10) + (i * 20);
_local1[name]._y = _local1.plane._y;
_local1[name].launch = 1;
i++;
}
jml++;
name = "blast" + jml;
duplicateMovieClip ("missile", name, jml);
_local1[name]._x = _local1.plane._x;
_local1[name]._y = _local1.plane._y + 10;
_local1[name].launch = 1;
tembak = 0;
}
}
}
};
Instance of Symbol 208 MovieClip in Frame 12
onClipEvent (enterFrame) {
if (_root.pause == 0) {
play();
} else {
stop();
}
}
Instance of Symbol 73 MovieClip "evoscr" in Frame 12
onClipEvent (load) {
this.swapDepths(801);
}
onClipEvent (enterFrame) {
if (!(_root.playscren === 1)) {
removeMovieClip(this);
_visible = 0;
}
}
Instance of Symbol 96 MovieClip "scr2" in Frame 12
onClipEvent (load) {
this.swapDepths(800);
}
onClipEvent (enterFrame) {
if (!(_root.playscren === 1)) {
removeMovieClip(this);
_visible = 0;
}
}
Instance of Symbol 108 MovieClip "scr" in Frame 12
onClipEvent (load) {
this.swapDepths(804);
}
onClipEvent (enterFrame) {
if (!(_root.playscren === 1)) {
removeMovieClip(this);
_visible = 0;
}
}
Instance of Symbol 112 MovieClip "laser" in Frame 12
onClipEvent (load) {
_x = (_x + (random(3) - 1));
damage = 5 + (_root.level / 3);
}
onClipEvent (enterFrame) {
if (!(_root.playscren === 1)) {
removeMovieClip(this);
_visible = 0;
}
if (_root.pause == 0) {
_alpha = (math.random() * 100);
_y = (_y - 35);
}
if (_y < 0) {
removeMovieClip(this);
}
}
Instance of Symbol 211 MovieClip in Frame 12
onClipEvent (load) {
_visible = 1;
_x = random(640);
_y = (-100 - random(100));
speed = 4;
raja = 1;
level = _root.level + random(10);
nama = "destroyer Lv. " + level;
armormax = 30 + (level * 10);
armor = armormax;
fire = math.random();
}
onClipEvent (enterFrame) {
if (!(_root.playscren === 1)) {
removeMovieClip(this);
_visible = 0;
}
if ((_root.pause == 0) && (_root.go == 1)) {
_y = (_y + speed);
if (_y > 800) {
gotoAndStop (1);
_x = random(640);
_y = (-100 - random(1000));
speed = 4 + (math.random() * 2);
level = _root.level + random(10);
nama = "destroyer Lv. " + level;
armormax = 30 + (level * 10);
armor = armormax;
}
if (armor < 1) {
armor = 0;
nextFrame();
} else {
if ((_y < 0) && (hittest(_root.pulau))) {
_x = random(640);
}
fire = fire + 0.05;
if ((fire > 1) && (_y > 50)) {
_root.jumlah++;
name = "blasten" + _root.jumlah;
duplicateMovieClip ("_root.blasten", name, 100 + _root.jumlah);
_root[name]._x = _x;
_root[name]._y = _y;
_root[name].speedy = 6 + random(4);
_root[name].speedx = 4 - random(8);
fire = 0;
_root.jumlah++;
name = "blasten" + _root.jumlah;
duplicateMovieClip (_root.missileen, name, 100 + _root.jumlah);
_root[name]._x = _x;
_root[name]._y = _y - 80;
_root[name].launch = 1;
fire = 0;
}
n = 0;
while (n < 50) {
name = "blast" + n;
if (hittest(_root[name])) {
bang = "explode" + _root.fir;
if (_root[name].damage < 10) {
duplicateMovieClip (_root.explodb, bang, _root.fir + 300);
_root.explodesml.start();
} else {
duplicateMovieClip (_root.explod, bang, _root.fir + 300);
_root.explodebig.start();
}
if (armor < _root[name].damage) {
armor = 0;
} else {
armor = armor - _root[name].damage;
}
_root.healthmusuh = (("armor :" + math.round(armor)) + " /") + armormax;
_root.scr.hape._xscale = (100 * armor) / armormax;
_root.namamusuh = nama;
_root.fir++;
_root[bang]._x = _root[name]._x;
_root[bang]._y = _root[name]._y;
removeMovieClip(_root[name]);
}
n++;
}
}
}
}
Instance of Symbol 150 MovieClip "0" in Frame 12
onClipEvent (load) {
_visible = 1;
_x = random(640);
_y = (-20 - random(20));
speed = 1 + (math.random() * 2);
speedx = 2 - (math.random() * 4);
level = _root.level + random(10);
nama = "helicopter Lv. " + level;
armormax = 10 + (level * 2);
armor = armormax;
fire = math.random();
}
onClipEvent (enterFrame) {
if (!(_root.playscren === 1)) {
removeMovieClip(this);
_visible = 0;
}
if ((_root.pause == 0) && (_root.go == 1)) {
if (armor < 1) {
nextFrame();
} else {
if (((_y > 500) || (_x < -20)) || (_x > 660)) {
removeMovieClip(this);
}
fire = fire + 0.05;
_y = (_y + speed);
_x = (_x + speedx);
if (fire > 1) {
_root.jumlah++;
name = "blasten" + _root.jumlah;
duplicateMovieClip ("_root.blasten", name, 100 + _root.jumlah);
_root[name]._x = _x;
_root[name]._y = _y;
_root[name].speedy = 4 + random(4);
_root[name].speedx = 4 - random(8);
fire = 0;
}
n = 0;
while (n < 50) {
name = "blast" + n;
if (hittest(_root[name])) {
bang = "explode" + _root.fir;
if (_root[name].damage < 10) {
duplicateMovieClip (_root.explodb, bang, _root.fir + 300);
_root.explodesml.start();
} else {
duplicateMovieClip (_root.explod, bang, _root.fir + 300);
_root.explodebig.start();
}
if (armor < _root[name].damage) {
armor = 0;
} else {
armor = armor - _root[name].damage;
}
_root.healthmusuh = (("armor :" + math.round(armor)) + " /") + armormax;
_root.scr.hape._xscale = (100 * armor) / armormax;
_root.namamusuh = nama;
_root.fir++;
_root[bang]._x = _root[name]._x;
_root[bang]._y = _root[name]._y;
removeMovieClip(_root[name]);
}
n++;
}
}
}
}
Instance of Symbol 151 MovieClip "explod" in Frame 12
onClipEvent (load) {
_alpha = (30 + random(70));
}
onClipEvent (enterFrame) {
if (!(_root.playscren === 1)) {
removeMovieClip(this);
_visible = 0;
}
}
Instance of Symbol 151 MovieClip "explodb" in Frame 12
onClipEvent (load) {
_alpha = (30 + random(70));
}
onClipEvent (enterFrame) {
if (!(_root.playscren === 1)) {
removeMovieClip(this);
_visible = 0;
}
}
Instance of Symbol 177 MovieClip in Frame 12
onClipEvent (load) {
this.swapDepths(802);
}
onClipEvent (keyDown) {
if (key.isdown(32) && (_root.pause == 0)) {
pauseg = 1;
} else if (key.isdown(32) && (_root.pause == 1)) {
pauseg = 0;
}
}
onClipEvent (enterFrame) {
if (pauseg == 1) {
nextFrame();
} else {
prevFrame();
}
}
Instance of Symbol 203 MovieClip "1" in Frame 12
onClipEvent (load) {
_visible = 1;
_x = random(640);
_y = (-30 - random(20));
speed = 5 + (math.random() * 3);
speedx = 2 - (math.random() * 4);
level = _root.level + random(10);
nama = "JAV - 8B Lv. " + level;
armormax = 8 + (level * 2);
armor = armormax;
fire = math.random();
masuk = 0;
}
onClipEvent (enterFrame) {
if (!(_root.playscren === 1)) {
removeMovieClip(this);
_visible = 0;
}
if ((_root.pause == 0) && (_root.go == 1)) {
if (armor < 1) {
nextFrame();
} else {
if (((_y > 500) || (_x < -20)) || (_x > 660)) {
removeMovieClip(this);
_visible = 0;
}
fire = fire + 0.07;
_y = (_y + speed);
_x = (_x + speedx);
if (fire > 1) {
_root.jumlah++;
name = "blasten" + _root.jumlah;
duplicateMovieClip (_root.missileen, name, 100 + _root.jumlah);
_root[name]._x = _x;
_root[name]._y = _y;
_root[name].launch = 1;
fire = 0;
}
n = 0;
while (n < 50) {
name = "blast" + n;
if (hittest(_root[name])) {
bang = "explode" + _root.fir;
if (_root[name].damage < 10) {
duplicateMovieClip (_root.explodb, bang, _root.fir + 300);
_root.explodesml.start();
} else {
duplicateMovieClip (_root.explod, bang, _root.fir + 300);
_root.explodebig.start();
}
if (armor < _root[name].damage) {
armor = 0;
} else {
armor = armor - _root[name].damage;
}
_root.healthmusuh = (("armor :" + math.round(armor)) + " /") + armormax;
_root.scr.hape._xscale = (100 * armor) / armormax;
_root.namamusuh = nama;
_root.fir++;
_root[bang]._x = _root[name]._x;
_root[bang]._y = _root[name]._y;
removeMovieClip(_root[name]);
}
n++;
}
}
}
}
Instance of Symbol 180 MovieClip "expview" in Frame 12
onClipEvent (load) {
_alpha = 100;
}
onClipEvent (enterFrame) {
if (!(_root.playscren === 1)) {
removeMovieClip(this);
_visible = 0;
}
_y = (_y + 2);
_alpha = (_alpha-1);
if (_alpha < 1) {
removeMovieClip(this);
}
}
Instance of Symbol 186 MovieClip "missile" in Frame 12
onClipEvent (load) {
power = 20;
_alpha = 0;
damage = 30 + (_root.level / 3);
targetx = random(640);
targety = -50;
_rotation = ((Math.atan2(targety - _y, targetx - _x) * 180) / Math.PI);
}
onClipEvent (enterFrame) {
if (!(_root.playscren === 1)) {
removeMovieClip(this);
_visible = 0;
}
if (_root.pause == 0) {
if (launch == 1) {
if (_alpha < 100) {
_alpha = (_alpha + 15);
}
_rotation = ((Math.atan2(targety - _y, targetx - _x) * 180) / Math.PI);
speedx = Math.cos(((_rotation - random(5)) * Math.PI) / 180) * power;
speedy = Math.sin(((_rotation + random(5)) * Math.PI) / 180) * power;
_x = (_x + speedx);
_y = (_y + speedy);
}
}
if (_y < -30) {
removeMovieClip(this);
}
}
Instance of Symbol 186 MovieClip "missilex" in Frame 12
onClipEvent (load) {
power = 20;
time = 3 + random(8);
_alpha = 0;
damage = 30;
targetx = random(640);
targety = -30;
_rotation = ((Math.atan2(targety - _y, targetx - _x) * 180) / Math.PI);
damage = 25 + (_root.level / 3);
}
onClipEvent (enterFrame) {
if (!(_root.playscren === 1)) {
removeMovieClip(this);
_visible = 0;
}
if (_root.pause == 0) {
if (launch == 1) {
if (time < 0) {
targetx = _root._xmouse;
}
if (_alpha < 100) {
_alpha = (_alpha + 15);
}
time--;
_rotation = ((Math.atan2(targety - _y, targetx - _x) * 180) / Math.PI);
speedx = Math.cos(((_rotation - random(5)) * Math.PI) / 180) * power;
speedy = Math.sin(((_rotation + random(5)) * Math.PI) / 180) * power;
_x = (_x + speedx);
_y = (_y + speedy);
}
}
if (_y < -10) {
removeMovieClip(this);
}
}
Instance of Symbol 110 MovieClip "blasten" in Frame 12
onClipEvent (load) {
_alpha = random(40);
damage = 3;
}
onClipEvent (enterFrame) {
if (!(_root.playscren === 1)) {
removeMovieClip(this);
_visible = 0;
}
if (_root.pause == 0) {
if (hittest(_root.plane)) {
if (_root.plane.shield < damage) {
if (_root.plane.armor < damage) {
_root.plane.armor = 0;
} else {
_root.plane.armor = _root.plane.armor - (damage - _root.plane.shield);
}
_root.plane.shield = 0;
} else {
_root.plane.shield = _root.plane.shield - damage;
}
bang = "explode" + _root.fir;
duplicateMovieClip (_root.explodb, bang, _root.fir + 400);
_root.fir++;
_root[bang]._x = _x;
_root[bang]._y = _y;
_root.explodesml.start();
removeMovieClip(this);
}
_alpha = (_alpha + 5);
_x = (_x + speedx);
_y = (_y + speedy);
}
if ((((_y < 0) || (_y > 480)) || (_x < 0)) || (_x > 640)) {
removeMovieClip(this);
}
}
Instance of Symbol 110 MovieClip "blast" in Frame 12
onClipEvent (load) {
_alpha = random(40);
speed = 20 + (math.random() * 1);
damage = 2 + (_root.level / 1.5);
}
onClipEvent (enterFrame) {
if (!(_root.playscren === 1)) {
removeMovieClip(this);
_visible = 0;
}
if (_root.pause == 0) {
if (_alpha < 100) {
_alpha = (_alpha + 10);
}
_y = (_y - speed);
}
if (_y < 0) {
removeMovieClip(this);
}
}
Instance of Symbol 110 MovieClip "blastx" in Frame 12
onClipEvent (load) {
_alpha = random(40);
damage = 1 + (_root.level / 3);
}
onClipEvent (enterFrame) {
if (!(_root.playscren === 1)) {
removeMovieClip(this);
_visible = 0;
}
if (_root.pause == 0) {
if (_alpha < 100) {
_alpha = (_alpha + 10);
}
_x = (_x + speedx);
_y = (_y + speedy);
}
if ((((_y < 0) || (_y > 480)) || (_x < 0)) || (_x > 640)) {
removeMovieClip(this);
}
}
Instance of Symbol 182 MovieClip "api" in Frame 12
onClipEvent (load) {
_alpha = (_root.scr2.darah._xscale + (math.random() * (100 - _root.scr2.darah._xscale)));
spd = ((5 - random(11)) * (100 - _root.scr2.darah._xscale)) / 100;
spdy = 2 + ((math.random() * (100 - _root.scr2.darah._xscale)) / 10);
uk = _root.scr2.darah._xscale + (math.random() * (100 - _root.scr2.darah._xscale));
_xscale = uk;
_yscale = uk;
_x = _root.plane._x;
_y = (_root.plane._y + 18);
}
onClipEvent (enterFrame) {
if (!(_root.playscren === 1)) {
removeMovieClip(this);
_visible = 0;
}
if (_root.pause == 0) {
_y = (_y + spdy);
_x = (_x + spd);
spd = spd * 0.9;
_alpha = (_alpha - 8);
uk = uk - 5;
_xscale = uk;
_yscale = uk;
if ((_alpha < 0) || (uk < 0)) {
removeMovieClip(this);
_visible = 0;
}
}
}
Instance of Symbol 197 MovieClip "plane" in Frame 12
onClipEvent (load) {
armor = _root.maxhp;
shield = _root.maxhp / 2;
}
onClipEvent (enterFrame) {
if (_root.pause == 0) {
_y = (_y + speedy);
_x = (_x + speed);
speed = speed * 0.9;
speedy = speedy * 0.9;
if (armor > 0) {
if (shield < (_root.maxhp / 2)) {
shield = shield + (0.0001 * _root.maxhp);
}
if (_x < 0) {
speed = speed + 2;
} else if (_x > 640) {
speed = speed - 2;
}
if (_y < 0) {
speedy = speedy + 2;
} else if (_y > 400) {
speedy = speedy - 2;
}
if (Key.isDown(65) || (key.isdown(37))) {
speed = speed - 1.5;
} else if (Key.isDown(68) || (key.isdown(39))) {
speed = speed + 1.5;
}
if (Key.isDown(87) || (key.isdown(38))) {
speedy = speedy - 1.5;
} else if (Key.isDown(83) || (key.isdown(40))) {
speedy = speedy + 1.5;
}
} else {
speedy = speedy + 1;
armor = 0;
if (ledak > 1) {
bang = "explode" + _root.fir;
duplicateMovieClip (_root.explod, bang, _root.fir + 201);
_root.fir++;
_root[bang]._x = (_x + 13) - random(26);
_root[bang]._y = (_y + 23) - random(46);
ledak = 0;
}
ledak = ledak + 0.2;
if (_y > 660) {
_root.scr2._visible = 0;
_root.scr._visible = 0;
_root.gotoAndStop("over");
}
}
}
}
Instance of Symbol 186 MovieClip "missileen" in Frame 12
onClipEvent (load) {
power = 10;
_alpha = 0;
damage = 15 + (_root.level / 3);
targetx = random(640);
targety = 500;
_rotation = ((Math.atan2(targety - _y, targetx - _x) * 180) / Math.PI);
}
onClipEvent (enterFrame) {
if (!(_root.playscren === 1)) {
removeMovieClip(this);
_visible = 0;
}
if (_root.pause == 0) {
if (launch == 1) {
if (_alpha < 100) {
_alpha = (_alpha + 15);
}
_rotation = ((Math.atan2(targety - _y, targetx - _x) * 180) / Math.PI);
speedx = Math.cos(((_rotation - random(5)) * Math.PI) / 180) * power;
speedy = Math.sin(((_rotation + random(5)) * Math.PI) / 180) * power;
_x = (_x + speedx);
_y = (_y + speedy);
if (hit.hittest(_root.plane)) {
if (_root.plane.shield < damage) {
if (_root.plane.armor < damage) {
_root.plane.armor = 0;
} else {
_root.plane.armor = _root.plane.armor - (damage - _root.plane.shield);
}
_root.plane.shield = 0;
} else {
_root.plane.shield = _root.plane.shield - damage;
}
bang = "explode" + _root.fir;
duplicateMovieClip (_root.explod, bang, _root.fir + 400);
_root.fir++;
_root[bang]._x = _x;
_root[bang]._y = _y;
_root.explodebig.start();
removeMovieClip(this);
}
n = 0;
while (n < 50) {
name = "blast" + n;
if (hit.hittest(_root[name])) {
bang = "explode" + _root.fir;
duplicateMovieClip (_root.explod, bang, _root.fir + 201);
_root.fir++;
_root[bang]._x = _root[name]._x;
_root[bang]._y = _root[name]._y;
_root.explodebig.start();
removeMovieClip(_root[name]);
removeMovieClip(this);
}
n++;
}
}
}
if (_y > 480) {
removeMovieClip(this);
}
}
Frame 13
var MochiAd = {getVersion:function () {
return("2.3");
}, showPreGameAd:function (options) {
var _local1 = this;
var DEFAULTS = {clip:_root, ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:16747008, background:16777161, outline:13994812, ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}, ad_failed:function () {
trace("[MochAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_loaded:function (width, height) {
}};
options = MochiAd._parseOptions(options, DEFAULTS);
if ("5cc6f7dfb67f2f08341c831480f7c2a7".length == 0) {
options.ad_started();
options.ad_finished();
} else {
var clip = options.clip;
var ad_msec = 11000;
var ad_timeout = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!MochiAd.load(options)) {
options.ad_failed();
options.ad_finished();
} else {
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var wh = MochiAd._getRes(options);
var _local3 = wh[0];
var h = wh[1];
mc._x = _local3 * 0.5;
mc._y = h * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk._x = _local3 * -0.5;
chk._y = h * -0.5;
var bar = chk.createEmptyMovieClip("_mochiad_bar", 4);
bar._x = 10;
bar._y = h - 20;
var bar_color = options.color;
delete options.color;
var bar_background = options.background;
delete options.background;
var bar_outline = options.outline;
delete options.outline;
var backing = bar.createEmptyMovieClip("_outline", 1);
backing.beginFill(bar_background);
backing.moveTo(0, 0);
backing.lineTo(_local3 - 20, 0);
backing.lineTo(_local3 - 20, 10);
backing.lineTo(0, 10);
backing.lineTo(0, 0);
backing.endFill();
var _local2 = bar.createEmptyMovieClip("_inside", 2);
_local2.beginFill(bar_color);
_local2.moveTo(0, 0);
_local2.lineTo(_local3 - 20, 0);
_local2.lineTo(_local3 - 20, 10);
_local2.lineTo(0, 10);
_local2.lineTo(0, 0);
_local2.endFill();
_local2._xscale = 0;
var outline = bar.createEmptyMovieClip("_outline", 3);
outline.lineStyle(0, bar_outline, 100);
outline.moveTo(0, 0);
outline.lineTo(_local3 - 20, 0);
outline.lineTo(_local3 - 20, 10);
outline.lineTo(0, 10);
outline.lineTo(0, 0);
chk.ad_msec = ad_msec;
chk.ad_timeout = ad_timeout;
chk.started = getTimer();
chk.showing = false;
chk.last_pcnt = 0;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local1 = this;
var _local2 = 100 * (1 - ((getTimer() - _local1.fadeout_start) / _local1.fadeout_time));
if (_local2 > 0) {
_local1._parent._alpha = _local2;
} else {
var _local3 = _local1._parent._parent;
MochiAd.unload(_local3);
delete _local1.onEnterFrame;
}
};
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adjustProgress = function (msec) {
var _local1 = this.mc._mochiad_wait;
_local1.server_control = true;
_local1.started = getTimer();
_local1.ad_msec = msec;
};
chk.onEnterFrame = function () {
var _local1 = this;
var _clip = _local1._parent._parent;
var ad_clip = _local1._parent._mochiad_ctr;
var elapsed = (getTimer() - _local1.started);
var _local3 = false;
var clip_total = _clip.getBytesTotal();
var clip_loaded = _clip.getBytesLoaded();
var clip_pcnt = ((100 * clip_loaded) / clip_total);
var ad_pcnt = ((100 * elapsed) / chk.ad_msec);
var _inside = _local1._mochiad_bar._inside;
var _local2 = Math.min(100, Math.min(clip_pcnt || 0, ad_pcnt));
_local2 = Math.max(_local1.last_pcnt, _local2);
_local1.last_pcnt = _local2;
_inside._xscale = _local2;
if (!chk.showing) {
var total = ad_clip.getBytesTotal();
if ((total > 0) || (typeof(total) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (elapsed > chk.ad_timeout) {
options.ad_failed();
_local3 = true;
}
}
if (elapsed > chk.ad_msec) {
_local3 = true;
}
if (((clip_total > 0) && (clip_loaded >= clip_total)) && (_local3)) {
if (_local1.server_control) {
delete _local1.onEnterFrame;
} else {
_local1.fadeout_start = getTimer();
_local1.onEnterFrame = chk.fadeFunction;
}
}
};
}
}
}, showInterLevelAd:function (options) {
var _local1 = this;
var DEFAULTS = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showTimedAd", ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}, ad_failed:function () {
trace("[MochAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_loaded:function (width, height) {
}};
options = MochiAd._parseOptions(options, DEFAULTS);
var clip = options.clip;
var ad_msec = 11000;
var ad_timeout = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!MochiAd.load(options)) {
options.ad_failed();
options.ad_finished();
} else {
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var wh = MochiAd._getRes(options);
var w = wh[0];
var h = wh[1];
mc._x = w * 0.5;
mc._y = h * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_msec = ad_msec;
chk.ad_timeout = ad_timeout;
chk.started = getTimer();
chk.showing = false;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local1 = this;
var _local2 = 100 * (1 - ((getTimer() - _local1.fadeout_start) / _local1.fadeout_time));
if (_local2 > 0) {
_local1._parent._alpha = _local2;
} else {
var _local3 = _local1._parent._parent;
MochiAd.unload(_local3);
delete _local1.onEnterFrame;
}
};
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adjustProgress = function (msec) {
var _local1 = this.mc._mochiad_wait;
_local1.server_control = true;
_local1.started = getTimer();
_local1.ad_msec = msec - 250;
};
chk.onEnterFrame = function () {
var _local1 = this;
var ad_clip = _local1._parent._mochiad_ctr;
var elapsed = (getTimer() - _local1.started);
var _local2 = false;
if (!chk.showing) {
var _local3 = ad_clip.getBytesTotal();
if ((_local3 > 0) || (typeof(_local3) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (elapsed > chk.ad_timeout) {
options.ad_failed();
_local2 = true;
}
}
if (elapsed > chk.ad_msec) {
_local2 = true;
}
if (_local2) {
if (_local1.server_control) {
delete _local1.onEnterFrame;
} else {
_local1.fadeout_start = getTimer();
_local1.onEnterFrame = _local1.fadeFunction;
}
}
};
}
}, showTimedAd:function (options) {
trace("[MochiAd] DEPRECATED: showTimedAd was renamed to showInterLevelAd in 2.0");
MochiAd.showInterLevelAd(options);
}, showPreloaderAd:function (options) {
trace("[MochiAd] DEPRECATED: showPreloaderAd was renamed to showPreGameAd in 2.0");
MochiAd.showPreGameAd(options);
}, _allowDomains:function (server) {
var _local1 = server.split("/")[2].split(":")[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain("*");
System.security.allowDomain(_local1);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain("*");
System.security.allowInsecureDomain(_local1);
}
}
return(_local1);
}, _loadCommunicator:function (options) {
var _local2 = options;
var _local3 = arguments;
var DEFAULTS = {clip:_root, com_server:"http://x.mochiads.com/com/1/", method:"loadCommunicator", depth:10337, id:"_UNKNOWN_"};
_local2 = MochiAd._parseOptions(_local2, DEFAULTS);
_local2.swfv = _local2.clip.getSWFVersion() || 6;
_local2.mav = MochiAd.getVersion();
var clip = _local2.clip;
var clipname = ("_mochiad_com_" + _local2.id);
if (!MochiAd._isNetworkAvailable()) {
return(null);
}
if (clip[clipname]) {
return(clip[clipname].lc);
}
var server = (_local2.com_server + _local2.id);
MochiAd._allowDomains(server);
delete _local2.id;
delete _local2.com_server;
var depth = _local2.depth;
delete _local2.depth;
var mc = clip.createEmptyMovieClip(clipname, depth);
var lv = mc.createEmptyMovieClip("_mochiad_com", 1);
for (var k in _local2) {
lv[k] = _local2[k];
}
var lc = new LocalConnection();
var name = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
lc.mc = mc;
lc.name = name;
lc.allowDomain = function (d) {
return(true);
};
lc.allowInsecureDomain = lc.allowDomain;
lc.connect(name);
mc.lc = lc;
lv.lc = name;
lc._id = 0;
lc._queue = [];
lc.rpcResult = function (cb_arg) {
var cb = parseInt(cb_arg);
var _local2 = this._callbacks[cb];
if (!_local2) {
} else {
delete this._callbacks[cb];
var _local3 = [];
var _local1 = 2;
while (_local1 < _local2.length) {
_local3.push(_local2[_local1]);
_local1++;
}
_local1 = 1;
while (_local1 < arguments.length) {
_local3.push(arguments[_local1]);
_local1++;
}
var method = _local2[1];
var obj = _local2[0];
if (obj && (typeof(method) == "string")) {
method = obj[method];
}
if (method) {
method.apply(obj, _local3);
}
}
};
lc._didConnect = function (endpoint) {
this._endpoint = endpoint;
var _local3 = this._queue;
delete this._queue;
var ds = this.doSend;
var _local1 = 0;
while (_local1 < _local3.length) {
var _local2 = _local3[_local1];
ds.apply(this, _local2);
_local1++;
}
};
lc.doSend = function (args, cbobj, cbfn) {
var _local2 = arguments;
if (this._endpoint == null) {
var _local3 = [];
var _local1 = 0;
while (_local1 < _local2.length) {
_local3.push(_local2[_local1]);
_local1++;
}
this._queue.push(_local3);
} else {
this._id = this._id + 1;
var id = this._id;
if ((cbfn === undefined) || (cbfn === null)) {
cbfn = cbobj;
}
this._callbacks[id] = [cbobj, cbfn];
var slc = new LocalConnection();
var ss = slc.send(this._endpoint, "rpc", id, args);
}
};
lc._callbacks = {};
lc._callbacks[0] = [lc, "_didConnect"];
lv.st = getTimer();
lv.loadMovie(server + ".swf", "POST");
return(lc);
}, fetchHighScores:function (options, callbackObj, callbackMethod) {
var _local2 = options;
var _local1 = MochiAd._loadCommunicator({id:_local2.id});
if (!_local1) {
return(false);
}
var fncall = ["fetchHighScores", _local2];
_local1.doSend(["fetchHighScores", _local2], callbackObj, callbackMethod);
return(true);
}, sendHighScore:function (options, callbackObj, callbackMethod) {
var _local2 = options;
var _local1 = MochiAd._loadCommunicator({id:_local2.id});
if (!_local1) {
return(false);
}
var fncall = ["sendHighScore", _local2];
_local1.doSend(["sendHighScore", _local2], callbackObj, callbackMethod);
return(true);
}, load:function (options) {
var _local1 = options;
var DEFAULTS = {clip:_root, server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"};
_local1 = MochiAd._parseOptions(_local1, DEFAULTS);
_local1.swfv = _local1.clip.getSWFVersion() || 6;
_local1.mav = MochiAd.getVersion();
var clip = _local1.clip;
if (!MochiAd._isNetworkAvailable()) {
return(null);
}
if (clip._mochiad_loaded) {
return(null);
}
var depth = _local1.depth;
delete _local1.depth;
var mc = clip.createEmptyMovieClip("_mochiad", depth);
var wh = MochiAd._getRes(_local1);
_local1.res = (wh[0] + "x") + wh[1];
_local1.server = _local1.server + _local1.id;
delete _local1.id;
clip._mochiad_loaded = true;
var _local2 = mc.createEmptyMovieClip("_mochiad_ctr", 1);
for (var k in _local1) {
_local2[k] = _local1[k];
}
var server = _local2.server;
delete _local2.server;
var hostname = MochiAd._allowDomains(server);
mc.onEnterFrame = function () {
var _local1 = this;
if (_local1._mochiad_ctr._url != _local1._url) {
_local1.onEnterFrame = function () {
var _local1 = this;
if (!_local1._mochiad_ctr) {
delete _local1.onEnterFrame;
MochiAd.unload(_local1._parent);
}
};
}
};
var _local3 = new LocalConnection();
var name = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local3.mc = mc;
_local3.name = name;
_local3.hostname = hostname;
_local3.allowDomain = function (d) {
return(true);
};
_local3.allowInsecureDomain = _local3.allowDomain;
_local3.connect(name);
mc.lc = _local3;
_local2.lc = name;
_local2.st = getTimer();
_local2.loadMovie(server + ".swf", "POST");
return(mc);
}, unload:function (clip) {
var _local1 = clip;
if (typeof(_local1) == "undefined") {
_local1 = _root;
}
if (_local1.clip && (_local1.clip._mochiad)) {
_local1 = _local1.clip;
}
if (!_local1._mochiad) {
return(false);
}
_local1._mochiad.removeMovieClip();
delete _local1._mochiad_loaded;
delete _local1._mochiad;
return(true);
}, _isNetworkAvailable:function () {
if (System.security) {
var _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}, _getRes:function (options) {
var _local3 = options.clip.getBounds();
var _local2 = 0;
var _local1 = 0;
if (typeof(options.res) != "undefined") {
var xy = options.res.split("x");
_local2 = parseFloat(xy[0]);
_local1 = parseFloat(xy[1]);
} else {
_local2 = _local3.xMax - _local3.xMin;
_local1 = _local3.yMax - _local3.yMin;
}
if ((_local2 == 0) || (_local1 == 0)) {
_local2 = Stage.width;
_local1 = Stage.height;
}
return([_local2, _local1]);
}, _parseOptions:function (options, defaults) {
var _local3 = {};
for (var k in defaults) {
_local3[k] = defaults[k];
}
if (options) {
for (var k in options) {
_local3[k] = options[k];
}
}
if (_root.mochiad_options) {
var pairs = _root.mochiad_options.split("&");
var _local1 = 0;
while (_local1 < pairs.length) {
var _local2 = pairs[_local1].split("=");
_local3[unescape(_local2[0])] = unescape(_local2[1]);
_local1++;
}
}
if (_local3.id == "test") {
trace("[MochiAd] WARNING: Using the MochiAds test identifier, make sure to use the code from your dashboard, not this example!");
}
return(_local3);
}, _:null};
MochiAd.showTimedAd({id:"0e7c24bda8bdb752", res:"640x480"});
Frame 14
_root.playscren = 0;
lanjut = _currentframe;
stop();
Instance of Symbol 73 MovieClip "evoscr" in Frame 15
onClipEvent (load) {
this.swapDepths(801);
}
onClipEvent (enterFrame) {
if (!(_root.playscren === 1)) {
removeMovieClip(this);
_visible = 0;
}
}
Instance of Symbol 96 MovieClip "scr2" in Frame 15
onClipEvent (load) {
this.swapDepths(800);
}
onClipEvent (enterFrame) {
if (!(_root.playscren === 1)) {
removeMovieClip(this);
_visible = 0;
}
}
Instance of Symbol 108 MovieClip "scr" in Frame 15
onClipEvent (load) {
this.swapDepths(804);
}
onClipEvent (enterFrame) {
if (!(_root.playscren === 1)) {
removeMovieClip(this);
_visible = 0;
}
}
Frame 17
stop();
scr._visible = 1;
scr2._visible = 1;
playscren = 1;
pause = 0;
n = 0;
nx = 0;
batas = 0;
from = "";
msg = "";
go = 0;
goraja = 1;
jmlraja = 5;
power = 20;
tembak = 0;
spawn = 20;
spawntime = 20;
timeplay = 0;
msglist = newarray();
fromlist = newarray();
fromlist = ["bird eye", "bird eye", "bird eye", "bird eye", "bird eye", ""];
msglist = ["we have confirmed that their special unit have joined the battle", "they seems to move directly at you", "and destroy our supplies along their way", "your mission is to stop them!!", "the secondary mission is to take out the B-2 bombers ", ""];
this.onMouseDown = function () {
gofire = 1;
};
this.onMouseUp = function () {
gofire = 0;
};
this.onEnterFrame = function () {
var _local1 = _root;
if (pause == 0) {
duplicateMovieClip ("api", "api" + jmlapi, 55 + jmlapi);
jmlapi++;
timeplay++;
spawntime--;
if ((jmlraja < 1) && (playscren == 1)) {
scr._visible = 0;
scr2._visible = 0;
delete this.onEnterFrame;
nextFrame();
}
}
if ((timeplay > batas) && (nx < 4)) {
nx = math.floor(batas / 100);
from = fromlist[nx];
msg = msglist[nx];
_local1.scr.msgvw.go = 1;
batas = batas + 100;
}
if (fir > 100) {
fir = 0;
}
if (jumlah > 150) {
jumlah = 0;
}
if (xpjml > 10) {
xpjml = 0;
}
if (jml > 50) {
jml = 0;
}
if (jmlapi > 20) {
jmlapi = 0;
}
if (((spawntime < 0) && (pause == 0)) && (timeplay > 400)) {
go = 1;
if ((timeplay > 2200) && (goraja == 1)) {
i = 1;
while (i < 5) {
duplicateMovieClip ("3", "enemy" + jumlah, 500 + jumlah);
jumlah++;
i++;
}
from = "bird eye";
msg = "here's their special units watch out!! ";
_local1.scr.msgvw.go = 1;
goraja = 0;
} else {
duplicateMovieClip (random(3), "enemy" + jumlah, 500 + jumlah);
jumlah++;
}
spawntime = 25;
}
firerate = firerate + 0.5;
tembak = tembak + 0.2;
if (((gofire == 1) && (pause == 0)) && (_local1.plane.armor > 0)) {
vulcan.start();
if (form == 1) {
if (firerate > 1.5) {
jml++;
name = "blast" + jml;
duplicateMovieClip ("blast", name, jml);
_local1[name]._x = (_local1.plane._x + 2) - random(4);
_local1[name]._y = _local1.plane._y - 18;
firerate = 0;
}
} else if (form == 2) {
if (firerate > 1.5) {
i = 0;
while (i < 2) {
jml++;
name = "blast" + jml;
duplicateMovieClip ("blast", name, jml);
_local1[name]._x = (((_local1.plane._x - 10) + (i * 20)) + 2) - random(4);
_local1[name]._y = _local1.plane._y - 18;
i++;
}
firerate = 0;
}
} else if (form == 3) {
if (firerate > 1.5) {
i = 0;
while (i < 3) {
jml++;
name = "blast" + jml;
duplicateMovieClip ("blast", name, jml);
_local1[name]._x = (((_local1.plane._x - 10) + (i * 10)) + 2) - random(4);
_local1[name]._y = _local1.plane._y - 18;
i++;
}
firerate = 0;
}
} else if (form == 4) {
if (firerate > 1.5) {
i = 0;
while (i < 2) {
jml++;
name = "blast" + jml;
duplicateMovieClip ("blast", name, jml);
_local1[name]._x = (((_local1.plane._x - 10) + (i * 20)) + 2) - random(4);
_local1[name]._y = _local1.plane._y - 18;
i++;
}
firerate = 0;
}
jml++;
name = "blast" + jml;
duplicateMovieClip ("laser", name, jml);
_local1[name]._x = _local1.plane._x;
_local1[name]._y = _local1.plane._y - 18;
laser.start();
} else if (form == 5) {
if (firerate > 2) {
i = 0;
while (i < 2) {
jml++;
name = "blast" + jml;
duplicateMovieClip ("blast", name, jml);
_local1[name]._x = (((_local1.plane._x - 10) + (i * 20)) + 2) - random(4);
_local1[name]._y = _local1.plane._y - 18;
i++;
}
jml++;
name = "blast" + jml;
duplicateMovieClip ("blastx", name, jml);
_local1[name]._x = _local1.plane._x;
_local1[name]._y = _local1.plane._y;
_local1[name]._rotation = plane.turret._rotation;
_local1[name].speedy = Math.sin(((_local1[name]._rotation + random(5)) * Math.PI) / 180) * power;
_local1[name].speedx = Math.cos(((_local1[name]._rotation - random(5)) * Math.PI) / 180) * power;
firerate = 0;
}
jml++;
name = "blast" + jml;
duplicateMovieClip ("laser", name, jml);
_local1[name]._x = _local1.plane._x;
_local1[name]._y = _local1.plane._y - 18;
laser.start();
} else if (form == 6) {
if (firerate > 2) {
i = 0;
while (i < 2) {
jml++;
name = "blast" + jml;
duplicateMovieClip ("blast", name, jml);
_local1[name]._x = (((_local1.plane._x - 10) + (i * 20)) + 2) - random(4);
_local1[name]._y = _local1.plane._y - 18;
i++;
}
jml++;
name = "blast" + jml;
duplicateMovieClip ("blastx", name, jml);
_local1[name]._x = _local1.plane._x;
_local1[name]._y = _local1.plane._y;
_local1[name]._rotation = plane.turret._rotation;
_local1[name].speedy = Math.sin(((_local1[name]._rotation + random(5)) * Math.PI) / 180) * power;
_local1[name].speedx = Math.cos(((_local1[name]._rotation - random(5)) * Math.PI) / 180) * power;
firerate = 0;
}
jml++;
name = "blast" + jml;
duplicateMovieClip ("laser", name, jml);
_local1[name]._x = _local1.plane._x;
_local1[name]._y = _local1.plane._y - 18;
laser.start();
if (tembak > 3) {
roket.start();
jml++;
name = "blast" + jml;
duplicateMovieClip ("missile", name, jml);
_local1[name]._x = _local1.plane._x;
_local1[name]._y = _local1.plane._y + 10;
_local1[name].launch = 1;
tembak = 0;
}
} else if (form == 7) {
if (firerate > 2.5) {
i = 0;
while (i < 2) {
jml++;
name = "blast" + jml;
duplicateMovieClip ("blast", name, jml);
_local1[name]._x = (((_local1.plane._x - 10) + (i * 20)) + 2) - random(4);
_local1[name]._y = _local1.plane._y - 18;
i++;
}
jml++;
name = "blast" + jml;
duplicateMovieClip ("blastx", name, jml);
_local1[name]._x = _local1.plane._x;
_local1[name]._y = _local1.plane._y;
_local1[name]._rotation = plane.turret._rotation;
_local1[name].speedy = Math.sin(((_local1[name]._rotation + random(5)) * Math.PI) / 180) * power;
_local1[name].speedx = Math.cos(((_local1[name]._rotation - random(5)) * Math.PI) / 180) * power;
firerate = 0;
}
jml++;
name = "blast" + jml;
duplicateMovieClip ("laser", name, jml);
_local1[name]._x = _local1.plane._x;
_local1[name]._y = _local1.plane._y - 18;
laser.start();
if (tembak > 3) {
roket.start();
i = 0;
while (i < 2) {
jml++;
name = "blast" + jml;
duplicateMovieClip ("missilex", name, jml);
_local1[name]._x = (_local1.plane._x - 10) + (i * 20);
_local1[name]._y = _local1.plane._y;
_local1[name].launch = 1;
i++;
}
jml++;
name = "blast" + jml;
duplicateMovieClip ("missile", name, jml);
_local1[name]._x = _local1.plane._x;
_local1[name]._y = _local1.plane._y + 10;
_local1[name].launch = 1;
tembak = 0;
}
}
}
};
Instance of Symbol 217 MovieClip in Frame 17
onClipEvent (enterFrame) {
if (_root.pause == 0) {
play();
} else {
stop();
}
}
Instance of Symbol 73 MovieClip "evoscr" in Frame 17
onClipEvent (load) {
this.swapDepths(801);
}
onClipEvent (enterFrame) {
if (!(_root.playscren === 1)) {
removeMovieClip(this);
_visible = 0;
}
}
Instance of Symbol 96 MovieClip "scr2" in Frame 17
onClipEvent (load) {
this.swapDepths(800);
}
onClipEvent (enterFrame) {
if (!(_root.playscren === 1)) {
removeMovieClip(this);
_visible = 0;
}
}
Instance of Symbol 108 MovieClip "scr" in Frame 17
onClipEvent (load) {
this.swapDepths(804);
}
onClipEvent (enterFrame) {
if (!(_root.playscren === 1)) {
removeMovieClip(this);
_visible = 0;
}
}
Instance of Symbol 112 MovieClip "laser" in Frame 17
onClipEvent (load) {
_x = (_x + (random(3) - 1));
damage = 5 + (_root.level / 3);
}
onClipEvent (enterFrame) {
if (!(_root.playscren === 1)) {
removeMovieClip(this);
_visible = 0;
}
if (_root.pause == 0) {
_alpha = (math.random() * 100);
_y = (_y - 35);
}
if (_y < 0) {
removeMovieClip(this);
}
}
Instance of Symbol 150 MovieClip "0" in Frame 17
onClipEvent (load) {
_visible = 1;
_x = random(640);
_y = (-20 - random(20));
speed = 1 + (math.random() * 2);
speedx = 2 - (math.random() * 4);
level = _root.level + random(10);
nama = "helicopter Lv. " + level;
armormax = 10 + (level * 4);
armor = armormax;
fire = math.random();
}
onClipEvent (enterFrame) {
if (!(_root.playscren === 1)) {
removeMovieClip(this);
_visible = 0;
}
if ((_root.pause == 0) && (_root.go == 1)) {
if (armor < 1) {
nextFrame();
} else {
if (((_y > 500) || (_x < -20)) || (_x > 660)) {
removeMovieClip(this);
}
fire = fire + 0.07;
_y = (_y + speed);
_x = (_x + speedx);
if (fire > 1) {
_root.jumlah++;
name = "blasten" + _root.jumlah;
duplicateMovieClip ("_root.blasten", name, 100 + _root.jumlah);
_root[name]._x = _x;
_root[name]._y = _y;
_root[name].speedy = 5 + random(4);
_root[name].speedx = 4 - random(8);
fire = 0;
}
n = 0;
while (n < 50) {
name = "blast" + n;
if (hittest(_root[name])) {
bang = "explode" + _root.fir;
if (_root[name].damage < 10) {
duplicateMovieClip (_root.explodb, bang, _root.fir + 300);
_root.explodesml.start();
} else {
duplicateMovieClip (_root.explod, bang, _root.fir + 300);
_root.explodebig.start();
}
if (armor < _root[name].damage) {
armor = 0;
} else {
armor = armor - _root[name].damage;
}
_root.healthmusuh = (("armor :" + math.round(armor)) + " /") + armormax;
_root.scr.hape._xscale = (100 * armor) / armormax;
_root.namamusuh = nama;
_root.fir++;
_root[bang]._x = _root[name]._x;
_root[bang]._y = _root[name]._y;
removeMovieClip(_root[name]);
}
n++;
}
}
}
}
Instance of Symbol 151 MovieClip "explod" in Frame 17
onClipEvent (load) {
_alpha = (30 + random(70));
}
onClipEvent (enterFrame) {
if (!(_root.playscren === 1)) {
removeMovieClip(this);
_visible = 0;
}
}
Instance of Symbol 151 MovieClip "explodb" in Frame 17
onClipEvent (load) {
_alpha = (30 + random(70));
}
onClipEvent (enterFrame) {
if (!(_root.playscren === 1)) {
removeMovieClip(this);
_visible = 0;
}
}
Instance of Symbol 177 MovieClip in Frame 17
onClipEvent (load) {
this.swapDepths(802);
}
onClipEvent (keyDown) {
if (key.isdown(32) && (_root.pause == 0)) {
pauseg = 1;
} else if (key.isdown(32) && (_root.pause == 1)) {
pauseg = 0;
}
}
onClipEvent (enterFrame) {
if (pauseg == 1) {
nextFrame();
} else {
prevFrame();
}
}
Instance of Symbol 203 MovieClip "1" in Frame 17
onClipEvent (load) {
_visible = 1;
_x = random(640);
_y = (-30 - random(20));
speed = 5 + (math.random() * 3);
speedx = 2 - (math.random() * 4);
level = _root.level + random(10);
nama = "JAV - 8B Lv. " + level;
armormax = 15 + (level * 3);
armor = armormax;
fire = math.random();
masuk = 0;
}
onClipEvent (enterFrame) {
if (!(_root.playscren === 1)) {
removeMovieClip(this);
_visible = 0;
}
if ((_root.pause == 0) && (_root.go == 1)) {
if (armor < 1) {
nextFrame();
} else {
if (((_y > 500) || (_x < -20)) || (_x > 660)) {
removeMovieClip(this);
_visible = 0;
}
fire = fire + 0.07;
_y = (_y + speed);
_x = (_x + speedx);
if (fire > 1) {
_root.jumlah++;
name = "blasten" + _root.jumlah;
duplicateMovieClip (_root.missileen, name, 100 + _root.jumlah);
_root[name]._x = _x;
_root[name]._y = _y;
_root[name].launch = 1;
fire = 0;
}
n = 0;
while (n < 50) {
name = "blast" + n;
if (hittest(_root[name])) {
bang = "explode" + _root.fir;
if (_root[name].damage < 10) {
duplicateMovieClip (_root.explodb, bang, _root.fir + 300);
_root.explodesml.start();
} else {
duplicateMovieClip (_root.explod, bang, _root.fir + 300);
_root.explodebig.start();
}
if (armor < _root[name].damage) {
armor = 0;
} else {
armor = armor - _root[name].damage;
}
_root.healthmusuh = (("armor :" + math.round(armor)) + " /") + armormax;
_root.scr.hape._xscale = (100 * armor) / armormax;
_root.namamusuh = nama;
_root.fir++;
_root[bang]._x = _root[name]._x;
_root[bang]._y = _root[name]._y;
removeMovieClip(_root[name]);
}
n++;
}
}
}
}
Instance of Symbol 220 MovieClip in Frame 17
onClipEvent (load) {
_x = random(640);
_y = (-100 - random(200));
}
onClipEvent (enterFrame) {
if (_root.pause == 0) {
_y = (_y + 4);
}
if (_y > 800) {
_x = random(640);
_y = (-100 - random(200));
}
}
Instance of Symbol 180 MovieClip "expview" in Frame 17
onClipEvent (load) {
_alpha = 100;
}
onClipEvent (enterFrame) {
if (!(_root.playscren === 1)) {
removeMovieClip(this);
_visible = 0;
}
_y = (_y + 2);
_alpha = (_alpha-1);
if (_alpha < 1) {
removeMovieClip(this);
}
}
Instance of Symbol 222 MovieClip "3" in Frame 17
onClipEvent (load) {
_visible = 1;
raja = 1;
_x = random(640);
_y = (-30 - random(20));
speed = 5 + (math.random() * 3);
speedx = 2 - (math.random() * 4);
level = (_root.level + 10) + random(10);
nama = "F-22A Lv. " + level;
armormax = 25 + (level * 3);
armor = armormax;
fire = math.random();
}
onClipEvent (enterFrame) {
if (!(_root.playscren === 1)) {
removeMovieClip(this);
_visible = 0;
}
if ((_root.pause == 0) && (_root.goraja == 0)) {
if (armor < 1) {
nextFrame();
} else {
if (((_y > 500) || (_x < -20)) || (_x > 660)) {
_x = random(640);
_y = (-20 - random(100));
speed = 5 + (math.random() * 3);
speedx = 2 - (math.random() * 4);
}
fire = fire + 0.08;
_y = (_y + speed);
_x = (_x + speedx);
if (fire > 1) {
_root.jumlah++;
name = "blasten" + _root.jumlah;
duplicateMovieClip (_root.missileen, name, 100 + _root.jumlah);
_root[name]._x = _x;
_root[name]._y = _y;
_root[name].launch = 1;
fire = 0;
}
n = 0;
while (n < 50) {
name = "blast" + n;
if (hittest(_root[name])) {
bang = "explode" + _root.fir;
if (_root[name].damage < 10) {
duplicateMovieClip (_root.explodb, bang, _root.fir + 300);
_root.explodesml.start();
} else {
duplicateMovieClip (_root.explod, bang, _root.fir + 300);
_root.explodebig.start();
}
if (armor < _root[name].damage) {
armor = 0;
} else {
armor = armor - _root[name].damage;
}
_root.healthmusuh = (("armor :" + math.round(armor)) + " /") + armormax;
_root.scr.hape._xscale = (100 * armor) / armormax;
_root.namamusuh = nama;
_root.fir++;
_root[bang]._x = _root[name]._x;
_root[bang]._y = _root[name]._y;
removeMovieClip(_root[name]);
}
n++;
}
}
}
}
Instance of Symbol 224 MovieClip "2" in Frame 17
onClipEvent (load) {
_visible = 1;
_x = random(640);
_y = (-20 - random(20));
speed = 1 + (math.random() * 3);
speedx = 2 - (math.random() * 4);
level = _root.level + random(10);
nama = "B-2 Bomber Lv. " + level;
armormax = 10 + (level * 15);
armor = armormax;
fire = math.random();
}
onClipEvent (enterFrame) {
if (!(_root.playscren === 1)) {
removeMovieClip(this);
_visible = 0;
}
if ((_root.pause == 0) && (_root.go == 1)) {
if (armor < 1) {
nextFrame();
} else {
if (((_y > 500) || (_x < -60)) || (_x > 700)) {
removeMovieClip(this);
}
fire = fire + 0.01;
_y = (_y + speed);
_x = (_x + speedx);
n = 0;
while (n < 50) {
name = "blast" + n;
if (hittest(_root[name])) {
bang = "explode" + _root.fir;
if (_root[name].damage < 10) {
duplicateMovieClip (_root.explodb, bang, _root.fir + 300);
_root.explodesml.start();
} else {
duplicateMovieClip (_root.explod, bang, _root.fir + 300);
_root.explodebig.start();
}
if (armor < _root[name].damage) {
armor = 0;
} else {
armor = armor - _root[name].damage;
}
_root.healthmusuh = (("armor :" + math.round(armor)) + " /") + armormax;
_root.scr.hape._xscale = (100 * armor) / armormax;
_root.namamusuh = nama;
_root.fir++;
_root[bang]._x = _root[name]._x;
_root[bang]._y = _root[name]._y;
removeMovieClip(_root[name]);
}
n++;
}
}
}
}
Instance of Symbol 186 MovieClip "missile" in Frame 17
onClipEvent (load) {
power = 20;
_alpha = 0;
damage = 30 + (_root.level / 3);
targetx = random(640);
targety = -50;
_rotation = ((Math.atan2(targety - _y, targetx - _x) * 180) / Math.PI);
}
onClipEvent (enterFrame) {
if (!(_root.playscren === 1)) {
removeMovieClip(this);
_visible = 0;
}
if (_root.pause == 0) {
if (launch == 1) {
if (_alpha < 100) {
_alpha = (_alpha + 15);
}
_rotation = ((Math.atan2(targety - _y, targetx - _x) * 180) / Math.PI);
speedx = Math.cos(((_rotation - random(5)) * Math.PI) / 180) * power;
speedy = Math.sin(((_rotation + random(5)) * Math.PI) / 180) * power;
_x = (_x + speedx);
_y = (_y + speedy);
}
}
if (_y < -30) {
removeMovieClip(this);
}
}
Instance of Symbol 186 MovieClip "missilex" in Frame 17
onClipEvent (load) {
power = 20;
time = 3 + random(8);
_alpha = 0;
damage = 30;
targetx = random(640);
targety = -30;
_rotation = ((Math.atan2(targety - _y, targetx - _x) * 180) / Math.PI);
damage = 25 + (_root.level / 3);
}
onClipEvent (enterFrame) {
if (!(_root.playscren === 1)) {
removeMovieClip(this);
_visible = 0;
}
if (_root.pause == 0) {
if (launch == 1) {
if (time < 0) {
targetx = _root._xmouse;
}
if (_alpha < 100) {
_alpha = (_alpha + 15);
}
time--;
_rotation = ((Math.atan2(targety - _y, targetx - _x) * 180) / Math.PI);
speedx = Math.cos(((_rotation - random(5)) * Math.PI) / 180) * power;
speedy = Math.sin(((_rotation + random(5)) * Math.PI) / 180) * power;
_x = (_x + speedx);
_y = (_y + speedy);
}
}
if (_y < -10) {
removeMovieClip(this);
}
}
Instance of Symbol 110 MovieClip "blasten" in Frame 17
onClipEvent (load) {
_alpha = random(40);
damage = 3;
}
onClipEvent (enterFrame) {
if (!(_root.playscren === 1)) {
removeMovieClip(this);
_visible = 0;
}
if (_root.pause == 0) {
if (hittest(_root.plane)) {
if (_root.plane.shield < damage) {
if (_root.plane.armor < damage) {
_root.plane.armor = 0;
} else {
_root.plane.armor = _root.plane.armor - (damage - _root.plane.shield);
}
_root.plane.shield = 0;
} else {
_root.plane.shield = _root.plane.shield - damage;
}
bang = "explode" + _root.fir;
duplicateMovieClip (_root.explodb, bang, _root.fir + 400);
_root.fir++;
_root[bang]._x = _x;
_root[bang]._y = _y;
_root.explodesml.start();
removeMovieClip(this);
}
_alpha = (_alpha + 5);
_x = (_x + speedx);
_y = (_y + speedy);
}
if ((((_y < 0) || (_y > 480)) || (_x < 0)) || (_x > 640)) {
removeMovieClip(this);
}
}
Instance of Symbol 110 MovieClip "blast" in Frame 17
onClipEvent (load) {
_alpha = random(40);
speed = 20 + (math.random() * 1);
damage = 2 + (_root.level / 1.5);
}
onClipEvent (enterFrame) {
if (!(_root.playscren === 1)) {
removeMovieClip(this);
_visible = 0;
}
if (_root.pause == 0) {
if (_alpha < 100) {
_alpha = (_alpha + 10);
}
_y = (_y - speed);
}
if (_y < 0) {
removeMovieClip(this);
}
}
Instance of Symbol 110 MovieClip "blastx" in Frame 17
onClipEvent (load) {
_alpha = random(40);
damage = 1 + (_root.level / 3);
}
onClipEvent (enterFrame) {
if (!(_root.playscren === 1)) {
removeMovieClip(this);
_visible = 0;
}
if (_root.pause == 0) {
if (_alpha < 100) {
_alpha = (_alpha + 10);
}
_x = (_x + speedx);
_y = (_y + speedy);
}
if ((((_y < 0) || (_y > 480)) || (_x < 0)) || (_x > 640)) {
removeMovieClip(this);
}
}
Instance of Symbol 182 MovieClip "api" in Frame 17
onClipEvent (load) {
_alpha = (_root.scr2.darah._xscale + (math.random() * (100 - _root.scr2.darah._xscale)));
spd = ((5 - random(11)) * (100 - _root.scr2.darah._xscale)) / 100;
spdy = 2 + ((math.random() * (100 - _root.scr2.darah._xscale)) / 10);
uk = _root.scr2.darah._xscale + (math.random() * (100 - _root.scr2.darah._xscale));
_xscale = uk;
_yscale = uk;
_x = _root.plane._x;
_y = (_root.plane._y + 18);
}
onClipEvent (enterFrame) {
if (!(_root.playscren === 1)) {
removeMovieClip(this);
_visible = 0;
}
if (_root.pause == 0) {
_y = (_y + spdy);
_x = (_x + spd);
spd = spd * 0.9;
_alpha = (_alpha - 8);
uk = uk - 5;
_xscale = uk;
_yscale = uk;
if ((_alpha < 0) || (uk < 0)) {
removeMovieClip(this);
_visible = 0;
}
}
}
Instance of Symbol 197 MovieClip "plane" in Frame 17
onClipEvent (load) {
armor = _root.maxhp;
shield = _root.maxhp / 2;
}
onClipEvent (enterFrame) {
if (_root.pause == 0) {
_y = (_y + speedy);
_x = (_x + speed);
speed = speed * 0.9;
speedy = speedy * 0.9;
if (armor > 0) {
if (shield < (_root.maxhp / 2)) {
shield = shield + (0.0001 * _root.maxhp);
}
if (_x < 0) {
speed = speed + 2;
} else if (_x > 640) {
speed = speed - 2;
}
if (_y < 0) {
speedy = speedy + 2;
} else if (_y > 400) {
speedy = speedy - 2;
}
if (Key.isDown(65) || (key.isdown(37))) {
speed = speed - 1.5;
} else if (Key.isDown(68) || (key.isdown(39))) {
speed = speed + 1.5;
}
if (Key.isDown(87) || (key.isdown(38))) {
speedy = speedy - 1.5;
} else if (Key.isDown(83) || (key.isdown(40))) {
speedy = speedy + 1.5;
}
} else {
speedy = speedy + 1;
armor = 0;
if (ledak > 1) {
bang = "explode" + _root.fir;
duplicateMovieClip (_root.explod, bang, _root.fir + 201);
_root.fir++;
_root[bang]._x = (_x + 13) - random(26);
_root[bang]._y = (_y + 23) - random(46);
ledak = 0;
}
ledak = ledak + 0.2;
if (_y > 660) {
_root.scr2._visible = 0;
_root.scr._visible = 0;
_root.gotoAndStop("over");
}
}
}
}
Instance of Symbol 186 MovieClip "missileen" in Frame 17
onClipEvent (load) {
power = 10;
_alpha = 0;
damage = 15 + (_root.level / 3);
targetx = random(640);
targety = 500;
_rotation = ((Math.atan2(targety - _y, targetx - _x) * 180) / Math.PI);
}
onClipEvent (enterFrame) {
if (!(_root.playscren === 1)) {
removeMovieClip(this);
_visible = 0;
}
if (_root.pause == 0) {
if (launch == 1) {
if (_alpha < 100) {
_alpha = (_alpha + 15);
}
_rotation = ((Math.atan2(targety - _y, targetx - _x) * 180) / Math.PI);
speedx = Math.cos(((_rotation - random(5)) * Math.PI) / 180) * power;
speedy = Math.sin(((_rotation + random(5)) * Math.PI) / 180) * power;
_x = (_x + speedx);
_y = (_y + speedy);
if (hit.hittest(_root.plane)) {
if (_root.plane.shield < damage) {
if (_root.plane.armor < damage) {
_root.plane.armor = 0;
} else {
_root.plane.armor = _root.plane.armor - (damage - _root.plane.shield);
}
_root.plane.shield = 0;
} else {
_root.plane.shield = _root.plane.shield - damage;
}
bang = "explode" + _root.fir;
duplicateMovieClip (_root.explod, bang, _root.fir + 400);
_root.fir++;
_root[bang]._x = _x;
_root[bang]._y = _y;
_root.explodebig.start();
removeMovieClip(this);
}
n = 0;
while (n < 50) {
name = "blast" + n;
if (hit.hittest(_root[name])) {
bang = "explode" + _root.fir;
duplicateMovieClip (_root.explod, bang, _root.fir + 201);
_root.fir++;
_root[bang]._x = _root[name]._x;
_root[bang]._y = _root[name]._y;
_root.explodebig.start();
removeMovieClip(_root[name]);
removeMovieClip(this);
}
n++;
}
}
}
if (_y > 480) {
removeMovieClip(this);
}
}
Frame 18
var MochiAd = {getVersion:function () {
return("2.3");
}, showPreGameAd:function (options) {
var _local1 = this;
var DEFAULTS = {clip:_root, ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:16747008, background:16777161, outline:13994812, ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}, ad_failed:function () {
trace("[MochAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_loaded:function (width, height) {
}};
options = MochiAd._parseOptions(options, DEFAULTS);
if ("5cc6f7dfb67f2f08341c831480f7c2a7".length == 0) {
options.ad_started();
options.ad_finished();
} else {
var clip = options.clip;
var ad_msec = 11000;
var ad_timeout = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!MochiAd.load(options)) {
options.ad_failed();
options.ad_finished();
} else {
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var wh = MochiAd._getRes(options);
var _local3 = wh[0];
var h = wh[1];
mc._x = _local3 * 0.5;
mc._y = h * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk._x = _local3 * -0.5;
chk._y = h * -0.5;
var bar = chk.createEmptyMovieClip("_mochiad_bar", 4);
bar._x = 10;
bar._y = h - 20;
var bar_color = options.color;
delete options.color;
var bar_background = options.background;
delete options.background;
var bar_outline = options.outline;
delete options.outline;
var backing = bar.createEmptyMovieClip("_outline", 1);
backing.beginFill(bar_background);
backing.moveTo(0, 0);
backing.lineTo(_local3 - 20, 0);
backing.lineTo(_local3 - 20, 10);
backing.lineTo(0, 10);
backing.lineTo(0, 0);
backing.endFill();
var _local2 = bar.createEmptyMovieClip("_inside", 2);
_local2.beginFill(bar_color);
_local2.moveTo(0, 0);
_local2.lineTo(_local3 - 20, 0);
_local2.lineTo(_local3 - 20, 10);
_local2.lineTo(0, 10);
_local2.lineTo(0, 0);
_local2.endFill();
_local2._xscale = 0;
var outline = bar.createEmptyMovieClip("_outline", 3);
outline.lineStyle(0, bar_outline, 100);
outline.moveTo(0, 0);
outline.lineTo(_local3 - 20, 0);
outline.lineTo(_local3 - 20, 10);
outline.lineTo(0, 10);
outline.lineTo(0, 0);
chk.ad_msec = ad_msec;
chk.ad_timeout = ad_timeout;
chk.started = getTimer();
chk.showing = false;
chk.last_pcnt = 0;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local1 = this;
var _local2 = 100 * (1 - ((getTimer() - _local1.fadeout_start) / _local1.fadeout_time));
if (_local2 > 0) {
_local1._parent._alpha = _local2;
} else {
var _local3 = _local1._parent._parent;
MochiAd.unload(_local3);
delete _local1.onEnterFrame;
}
};
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adjustProgress = function (msec) {
var _local1 = this.mc._mochiad_wait;
_local1.server_control = true;
_local1.started = getTimer();
_local1.ad_msec = msec;
};
chk.onEnterFrame = function () {
var _local1 = this;
var _clip = _local1._parent._parent;
var ad_clip = _local1._parent._mochiad_ctr;
var elapsed = (getTimer() - _local1.started);
var _local3 = false;
var clip_total = _clip.getBytesTotal();
var clip_loaded = _clip.getBytesLoaded();
var clip_pcnt = ((100 * clip_loaded) / clip_total);
var ad_pcnt = ((100 * elapsed) / chk.ad_msec);
var _inside = _local1._mochiad_bar._inside;
var _local2 = Math.min(100, Math.min(clip_pcnt || 0, ad_pcnt));
_local2 = Math.max(_local1.last_pcnt, _local2);
_local1.last_pcnt = _local2;
_inside._xscale = _local2;
if (!chk.showing) {
var total = ad_clip.getBytesTotal();
if ((total > 0) || (typeof(total) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (elapsed > chk.ad_timeout) {
options.ad_failed();
_local3 = true;
}
}
if (elapsed > chk.ad_msec) {
_local3 = true;
}
if (((clip_total > 0) && (clip_loaded >= clip_total)) && (_local3)) {
if (_local1.server_control) {
delete _local1.onEnterFrame;
} else {
_local1.fadeout_start = getTimer();
_local1.onEnterFrame = chk.fadeFunction;
}
}
};
}
}
}, showInterLevelAd:function (options) {
var _local1 = this;
var DEFAULTS = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showTimedAd", ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}, ad_failed:function () {
trace("[MochAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_loaded:function (width, height) {
}};
options = MochiAd._parseOptions(options, DEFAULTS);
var clip = options.clip;
var ad_msec = 11000;
var ad_timeout = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!MochiAd.load(options)) {
options.ad_failed();
options.ad_finished();
} else {
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var wh = MochiAd._getRes(options);
var w = wh[0];
var h = wh[1];
mc._x = w * 0.5;
mc._y = h * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_msec = ad_msec;
chk.ad_timeout = ad_timeout;
chk.started = getTimer();
chk.showing = false;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local1 = this;
var _local2 = 100 * (1 - ((getTimer() - _local1.fadeout_start) / _local1.fadeout_time));
if (_local2 > 0) {
_local1._parent._alpha = _local2;
} else {
var _local3 = _local1._parent._parent;
MochiAd.unload(_local3);
delete _local1.onEnterFrame;
}
};
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adjustProgress = function (msec) {
var _local1 = this.mc._mochiad_wait;
_local1.server_control = true;
_local1.started = getTimer();
_local1.ad_msec = msec - 250;
};
chk.onEnterFrame = function () {
var _local1 = this;
var ad_clip = _local1._parent._mochiad_ctr;
var elapsed = (getTimer() - _local1.started);
var _local2 = false;
if (!chk.showing) {
var _local3 = ad_clip.getBytesTotal();
if ((_local3 > 0) || (typeof(_local3) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (elapsed > chk.ad_timeout) {
options.ad_failed();
_local2 = true;
}
}
if (elapsed > chk.ad_msec) {
_local2 = true;
}
if (_local2) {
if (_local1.server_control) {
delete _local1.onEnterFrame;
} else {
_local1.fadeout_start = getTimer();
_local1.onEnterFrame = _local1.fadeFunction;
}
}
};
}
}, showTimedAd:function (options) {
trace("[MochiAd] DEPRECATED: showTimedAd was renamed to showInterLevelAd in 2.0");
MochiAd.showInterLevelAd(options);
}, showPreloaderAd:function (options) {
trace("[MochiAd] DEPRECATED: showPreloaderAd was renamed to showPreGameAd in 2.0");
MochiAd.showPreGameAd(options);
}, _allowDomains:function (server) {
var _local1 = server.split("/")[2].split(":")[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain("*");
System.security.allowDomain(_local1);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain("*");
System.security.allowInsecureDomain(_local1);
}
}
return(_local1);
}, _loadCommunicator:function (options) {
var _local2 = options;
var _local3 = arguments;
var DEFAULTS = {clip:_root, com_server:"http://x.mochiads.com/com/1/", method:"loadCommunicator", depth:10337, id:"_UNKNOWN_"};
_local2 = MochiAd._parseOptions(_local2, DEFAULTS);
_local2.swfv = _local2.clip.getSWFVersion() || 6;
_local2.mav = MochiAd.getVersion();
var clip = _local2.clip;
var clipname = ("_mochiad_com_" + _local2.id);
if (!MochiAd._isNetworkAvailable()) {
return(null);
}
if (clip[clipname]) {
return(clip[clipname].lc);
}
var server = (_local2.com_server + _local2.id);
MochiAd._allowDomains(server);
delete _local2.id;
delete _local2.com_server;
var depth = _local2.depth;
delete _local2.depth;
var mc = clip.createEmptyMovieClip(clipname, depth);
var lv = mc.createEmptyMovieClip("_mochiad_com", 1);
for (var k in _local2) {
lv[k] = _local2[k];
}
var lc = new LocalConnection();
var name = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
lc.mc = mc;
lc.name = name;
lc.allowDomain = function (d) {
return(true);
};
lc.allowInsecureDomain = lc.allowDomain;
lc.connect(name);
mc.lc = lc;
lv.lc = name;
lc._id = 0;
lc._queue = [];
lc.rpcResult = function (cb_arg) {
var cb = parseInt(cb_arg);
var _local2 = this._callbacks[cb];
if (!_local2) {
} else {
delete this._callbacks[cb];
var _local3 = [];
var _local1 = 2;
while (_local1 < _local2.length) {
_local3.push(_local2[_local1]);
_local1++;
}
_local1 = 1;
while (_local1 < arguments.length) {
_local3.push(arguments[_local1]);
_local1++;
}
var method = _local2[1];
var obj = _local2[0];
if (obj && (typeof(method) == "string")) {
method = obj[method];
}
if (method) {
method.apply(obj, _local3);
}
}
};
lc._didConnect = function (endpoint) {
this._endpoint = endpoint;
var _local3 = this._queue;
delete this._queue;
var ds = this.doSend;
var _local1 = 0;
while (_local1 < _local3.length) {
var _local2 = _local3[_local1];
ds.apply(this, _local2);
_local1++;
}
};
lc.doSend = function (args, cbobj, cbfn) {
var _local2 = arguments;
if (this._endpoint == null) {
var _local3 = [];
var _local1 = 0;
while (_local1 < _local2.length) {
_local3.push(_local2[_local1]);
_local1++;
}
this._queue.push(_local3);
} else {
this._id = this._id + 1;
var id = this._id;
if ((cbfn === undefined) || (cbfn === null)) {
cbfn = cbobj;
}
this._callbacks[id] = [cbobj, cbfn];
var slc = new LocalConnection();
var ss = slc.send(this._endpoint, "rpc", id, args);
}
};
lc._callbacks = {};
lc._callbacks[0] = [lc, "_didConnect"];
lv.st = getTimer();
lv.loadMovie(server + ".swf", "POST");
return(lc);
}, fetchHighScores:function (options, callbackObj, callbackMethod) {
var _local2 = options;
var _local1 = MochiAd._loadCommunicator({id:_local2.id});
if (!_local1) {
return(false);
}
var fncall = ["fetchHighScores", _local2];
_local1.doSend(["fetchHighScores", _local2], callbackObj, callbackMethod);
return(true);
}, sendHighScore:function (options, callbackObj, callbackMethod) {
var _local2 = options;
var _local1 = MochiAd._loadCommunicator({id:_local2.id});
if (!_local1) {
return(false);
}
var fncall = ["sendHighScore", _local2];
_local1.doSend(["sendHighScore", _local2], callbackObj, callbackMethod);
return(true);
}, load:function (options) {
var _local1 = options;
var DEFAULTS = {clip:_root, server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"};
_local1 = MochiAd._parseOptions(_local1, DEFAULTS);
_local1.swfv = _local1.clip.getSWFVersion() || 6;
_local1.mav = MochiAd.getVersion();
var clip = _local1.clip;
if (!MochiAd._isNetworkAvailable()) {
return(null);
}
if (clip._mochiad_loaded) {
return(null);
}
var depth = _local1.depth;
delete _local1.depth;
var mc = clip.createEmptyMovieClip("_mochiad", depth);
var wh = MochiAd._getRes(_local1);
_local1.res = (wh[0] + "x") + wh[1];
_local1.server = _local1.server + _local1.id;
delete _local1.id;
clip._mochiad_loaded = true;
var _local2 = mc.createEmptyMovieClip("_mochiad_ctr", 1);
for (var k in _local1) {
_local2[k] = _local1[k];
}
var server = _local2.server;
delete _local2.server;
var hostname = MochiAd._allowDomains(server);
mc.onEnterFrame = function () {
var _local1 = this;
if (_local1._mochiad_ctr._url != _local1._url) {
_local1.onEnterFrame = function () {
var _local1 = this;
if (!_local1._mochiad_ctr) {
delete _local1.onEnterFrame;
MochiAd.unload(_local1._parent);
}
};
}
};
var _local3 = new LocalConnection();
var name = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local3.mc = mc;
_local3.name = name;
_local3.hostname = hostname;
_local3.allowDomain = function (d) {
return(true);
};
_local3.allowInsecureDomain = _local3.allowDomain;
_local3.connect(name);
mc.lc = _local3;
_local2.lc = name;
_local2.st = getTimer();
_local2.loadMovie(server + ".swf", "POST");
return(mc);
}, unload:function (clip) {
var _local1 = clip;
if (typeof(_local1) == "undefined") {
_local1 = _root;
}
if (_local1.clip && (_local1.clip._mochiad)) {
_local1 = _local1.clip;
}
if (!_local1._mochiad) {
return(false);
}
_local1._mochiad.removeMovieClip();
delete _local1._mochiad_loaded;
delete _local1._mochiad;
return(true);
}, _isNetworkAvailable:function () {
if (System.security) {
var _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}, _getRes:function (options) {
var _local3 = options.clip.getBounds();
var _local2 = 0;
var _local1 = 0;
if (typeof(options.res) != "undefined") {
var xy = options.res.split("x");
_local2 = parseFloat(xy[0]);
_local1 = parseFloat(xy[1]);
} else {
_local2 = _local3.xMax - _local3.xMin;
_local1 = _local3.yMax - _local3.yMin;
}
if ((_local2 == 0) || (_local1 == 0)) {
_local2 = Stage.width;
_local1 = Stage.height;
}
return([_local2, _local1]);
}, _parseOptions:function (options, defaults) {
var _local3 = {};
for (var k in defaults) {
_local3[k] = defaults[k];
}
if (options) {
for (var k in options) {
_local3[k] = options[k];
}
}
if (_root.mochiad_options) {
var pairs = _root.mochiad_options.split("&");
var _local1 = 0;
while (_local1 < pairs.length) {
var _local2 = pairs[_local1].split("=");
_local3[unescape(_local2[0])] = unescape(_local2[1]);
_local1++;
}
}
if (_local3.id == "test") {
trace("[MochiAd] WARNING: Using the MochiAds test identifier, make sure to use the code from your dashboard, not this example!");
}
return(_local3);
}, _:null};
MochiAd.showTimedAd({id:"0e7c24bda8bdb752", res:"640x480"});
Frame 19
_root.playscren = 0;
lanjut = _currentframe;
stop();
Instance of Symbol 73 MovieClip "evoscr" in Frame 19
onClipEvent (load) {
this.swapDepths(801);
}
onClipEvent (enterFrame) {
if (!(_root.playscren === 1)) {
removeMovieClip(this);
_visible = 0;
}
}
Instance of Symbol 96 MovieClip "scr2" in Frame 19
onClipEvent (load) {
this.swapDepths(800);
}
onClipEvent (enterFrame) {
if (!(_root.playscren === 1)) {
removeMovieClip(this);
_visible = 0;
}
}
Instance of Symbol 108 MovieClip "scr" in Frame 19
onClipEvent (load) {
this.swapDepths(804);
}
onClipEvent (enterFrame) {
if (!(_root.playscren === 1)) {
removeMovieClip(this);
_visible = 0;
}
}
Frame 20
stop();
scr._visible = 1;
scr2._visible = 1;
playscren = 1;
pause = 0;
n = 0;
nx = 0;
batas = 0;
from = "";
msg = "";
go = 0;
goraja = 1;
jmlraja = 5;
power = 20;
tembak = 0;
spawn = 20;
spawntime = 20;
timeplay = 0;
msglist = newarray();
fromlist = newarray();
fromlist = ["bird eye", "bird eye", "bird eye", "bird eye", "bird eye", ""];
msglist = ["their leader is escaping", "it seems his army won't let us go near him ", "even thought they are losing", "stop him from escaping!!", "good luck!! ", ""];
this.onMouseDown = function () {
gofire = 1;
};
this.onMouseUp = function () {
gofire = 0;
};
this.onEnterFrame = function () {
var _local1 = _root;
if (pause == 0) {
duplicateMovieClip ("api", "api" + jmlapi, 55 + jmlapi);
jmlapi++;
timeplay++;
spawntime--;
if ((jmlraja < 1) && (playscren == 1)) {
scr._visible = 0;
scr2._visible = 0;
delete this.onEnterFrame;
nextFrame();
}
}
if ((timeplay > batas) && (nx < 4)) {
nx = math.floor(batas / 100);
from = fromlist[nx];
msg = msglist[nx];
_local1.scr.msgvw.go = 1;
batas = batas + 100;
}
if (fir > 100) {
fir = 0;
}
if (jumlah > 150) {
jumlah = 0;
}
if (xpjml > 10) {
xpjml = 0;
}
if (jml > 50) {
jml = 0;
}
if (jmlapi > 20) {
jmlapi = 0;
}
if (((spawntime < 0) && (pause == 0)) && (timeplay > 400)) {
go = 1;
if ((timeplay > 2500) && (goraja == 1)) {
i = 1;
while (i < 5) {
duplicateMovieClip ("5", "enemy" + jumlah, 500 + jumlah);
jumlah++;
i++;
}
from = "bird eye";
msg = "it's their aces!! watch out!!";
_local1.scr.msgvw.go = 1;
goraja = 0;
} else {
duplicateMovieClip (random(4), "enemy" + jumlah, 500 + jumlah);
jumlah++;
}
spawntime = 23;
}
firerate = firerate + 0.5;
tembak = tembak + 0.2;
if (((gofire == 1) && (pause == 0)) && (_local1.plane.armor > 0)) {
vulcan.start();
if (form == 1) {
if (firerate > 1.5) {
jml++;
name = "blast" + jml;
duplicateMovieClip ("blast", name, jml);
_local1[name]._x = (_local1.plane._x + 2) - random(4);
_local1[name]._y = _local1.plane._y - 18;
firerate = 0;
}
} else if (form == 2) {
if (firerate > 1.5) {
i = 0;
while (i < 2) {
jml++;
name = "blast" + jml;
duplicateMovieClip ("blast", name, jml);
_local1[name]._x = (((_local1.plane._x - 10) + (i * 20)) + 2) - random(4);
_local1[name]._y = _local1.plane._y - 18;
i++;
}
firerate = 0;
}
} else if (form == 3) {
if (firerate > 1.5) {
i = 0;
while (i < 3) {
jml++;
name = "blast" + jml;
duplicateMovieClip ("blast", name, jml);
_local1[name]._x = (((_local1.plane._x - 10) + (i * 10)) + 2) - random(4);
_local1[name]._y = _local1.plane._y - 18;
i++;
}
firerate = 0;
}
} else if (form == 4) {
if (firerate > 1.5) {
i = 0;
while (i < 2) {
jml++;
name = "blast" + jml;
duplicateMovieClip ("blast", name, jml);
_local1[name]._x = (((_local1.plane._x - 10) + (i * 20)) + 2) - random(4);
_local1[name]._y = _local1.plane._y - 18;
i++;
}
firerate = 0;
}
jml++;
name = "blast" + jml;
duplicateMovieClip ("laser", name, jml);
_local1[name]._x = _local1.plane._x;
_local1[name]._y = _local1.plane._y - 18;
laser.start();
} else if (form == 5) {
if (firerate > 2) {
i = 0;
while (i < 2) {
jml++;
name = "blast" + jml;
duplicateMovieClip ("blast", name, jml);
_local1[name]._x = (((_local1.plane._x - 10) + (i * 20)) + 2) - random(4);
_local1[name]._y = _local1.plane._y - 18;
i++;
}
jml++;
name = "blast" + jml;
duplicateMovieClip ("blastx", name, jml);
_local1[name]._x = _local1.plane._x;
_local1[name]._y = _local1.plane._y;
_local1[name]._rotation = plane.turret._rotation;
_local1[name].speedy = Math.sin(((_local1[name]._rotation + random(5)) * Math.PI) / 180) * power;
_local1[name].speedx = Math.cos(((_local1[name]._rotation - random(5)) * Math.PI) / 180) * power;
firerate = 0;
}
jml++;
name = "blast" + jml;
duplicateMovieClip ("laser", name, jml);
_local1[name]._x = _local1.plane._x;
_local1[name]._y = _local1.plane._y - 18;
laser.start();
} else if (form == 6) {
if (firerate > 2) {
i = 0;
while (i < 2) {
jml++;
name = "blast" + jml;
duplicateMovieClip ("blast", name, jml);
_local1[name]._x = (((_local1.plane._x - 10) + (i * 20)) + 2) - random(4);
_local1[name]._y = _local1.plane._y - 18;
i++;
}
jml++;
name = "blast" + jml;
duplicateMovieClip ("blastx", name, jml);
_local1[name]._x = _local1.plane._x;
_local1[name]._y = _local1.plane._y;
_local1[name]._rotation = plane.turret._rotation;
_local1[name].speedy = Math.sin(((_local1[name]._rotation + random(5)) * Math.PI) / 180) * power;
_local1[name].speedx = Math.cos(((_local1[name]._rotation - random(5)) * Math.PI) / 180) * power;
firerate = 0;
}
jml++;
name = "blast" + jml;
duplicateMovieClip ("laser", name, jml);
_local1[name]._x = _local1.plane._x;
_local1[name]._y = _local1.plane._y - 18;
laser.start();
if (tembak > 3) {
roket.start();
jml++;
name = "blast" + jml;
duplicateMovieClip ("missile", name, jml);
_local1[name]._x = _local1.plane._x;
_local1[name]._y = _local1.plane._y + 10;
_local1[name].launch = 1;
tembak = 0;
}
} else if (form == 7) {
if (firerate > 2.5) {
i = 0;
while (i < 2) {
jml++;
name = "blast" + jml;
duplicateMovieClip ("blast", name, jml);
_local1[name]._x = (((_local1.plane._x - 10) + (i * 20)) + 2) - random(4);
_local1[name]._y = _local1.plane._y - 18;
i++;
}
jml++;
name = "blast" + jml;
duplicateMovieClip ("blastx", name, jml);
_local1[name]._x = _local1.plane._x;
_local1[name]._y = _local1.plane._y;
_local1[name]._rotation = plane.turret._rotation;
_local1[name].speedy = Math.sin(((_local1[name]._rotation + random(5)) * Math.PI) / 180) * power;
_local1[name].speedx = Math.cos(((_local1[name]._rotation - random(5)) * Math.PI) / 180) * power;
firerate = 0;
}
jml++;
name = "blast" + jml;
duplicateMovieClip ("laser", name, jml);
_local1[name]._x = _local1.plane._x;
_local1[name]._y = _local1.plane._y - 18;
laser.start();
if (tembak > 3) {
roket.start();
i = 0;
while (i < 2) {
jml++;
name = "blast" + jml;
duplicateMovieClip ("missilex", name, jml);
_local1[name]._x = (_local1.plane._x - 10) + (i * 20);
_local1[name]._y = _local1.plane._y;
_local1[name].launch = 1;
i++;
}
jml++;
name = "blast" + jml;
duplicateMovieClip ("missile", name, jml);
_local1[name]._x = _local1.plane._x;
_local1[name]._y = _local1.plane._y + 10;
_local1[name].launch = 1;
tembak = 0;
}
}
}
};
Instance of Symbol 112 MovieClip "laser" in Frame 20
onClipEvent (load) {
_x = (_x + (random(3) - 1));
damage = 5 + (_root.level / 3);
}
onClipEvent (enterFrame) {
if (!(_root.playscren === 1)) {
removeMovieClip(this);
_visible = 0;
}
if (_root.pause == 0) {
_alpha = (math.random() * 100);
_y = (_y - 35);
}
if (_y < 0) {
removeMovieClip(this);
}
}
Instance of Symbol 150 MovieClip "0" in Frame 20
onClipEvent (load) {
_visible = 1;
_x = random(640);
_y = (-20 - random(20));
speed = 3 + (math.random() * 4);
speedx = 2 - (math.random() * 4);
level = _root.level + random(10);
nama = "helicopter Lv. " + level;
armormax = 10 + (level * 4);
armor = armormax;
fire = math.random();
}
onClipEvent (enterFrame) {
if (!(_root.playscren === 1)) {
removeMovieClip(this);
_visible = 0;
}
if ((_root.pause == 0) && (_root.go == 1)) {
if (armor < 1) {
nextFrame();
} else {
if (((_y > 500) || (_x < -20)) || (_x > 660)) {
removeMovieClip(this);
}
fire = fire + 0.07;
_y = (_y + speed);
_x = (_x + speedx);
if (fire > 1) {
_root.jumlah++;
name = "blasten" + _root.jumlah;
duplicateMovieClip ("_root.blasten", name, 100 + _root.jumlah);
_root[name]._x = _x;
_root[name]._y = _y;
_root[name].speedy = 5 + random(4);
_root[name].speedx = 4 - random(8);
fire = 0;
}
n = 0;
while (n < 50) {
name = "blast" + n;
if (hittest(_root[name])) {
bang = "explode" + _root.fir;
if (_root[name].damage < 10) {
duplicateMovieClip (_root.explodb, bang, _root.fir + 300);
_root.explodesml.start();
} else {
duplicateMovieClip (_root.explod, bang, _root.fir + 300);
_root.explodebig.start();
}
if (armor < _root[name].damage) {
armor = 0;
} else {
armor = armor - _root[name].damage;
}
_root.healthmusuh = (("armor :" + math.round(armor)) + " /") + armormax;
_root.scr.hape._xscale = (100 * armor) / armormax;
_root.namamusuh = nama;
_root.fir++;
_root[bang]._x = _root[name]._x;
_root[bang]._y = _root[name]._y;
removeMovieClip(_root[name]);
}
n++;
}
}
}
}
Instance of Symbol 151 MovieClip "explod" in Frame 20
onClipEvent (load) {
_alpha = (30 + random(70));
}
onClipEvent (enterFrame) {
if (!(_root.playscren === 1)) {
removeMovieClip(this);
_visible = 0;
}
}
Instance of Symbol 151 MovieClip "explodb" in Frame 20
onClipEvent (load) {
_alpha = (30 + random(70));
}
onClipEvent (enterFrame) {
if (!(_root.playscren === 1)) {
removeMovieClip(this);
_visible = 0;
}
}
Instance of Symbol 177 MovieClip in Frame 20
onClipEvent (load) {
this.swapDepths(802);
}
onClipEvent (keyDown) {
if (key.isdown(32) && (_root.pause == 0)) {
pauseg = 1;
} else if (key.isdown(32) && (_root.pause == 1)) {
pauseg = 0;
}
}
onClipEvent (enterFrame) {
if (pauseg == 1) {
nextFrame();
} else {
prevFrame();
}
}
Instance of Symbol 203 MovieClip "1" in Frame 20
onClipEvent (load) {
_visible = 1;
_x = random(640);
_y = (-30 - random(20));
speed = 5 + (math.random() * 3);
speedx = 2 - (math.random() * 4);
level = _root.level + random(10);
nama = "JAV - 8B Lv. " + level;
armormax = 15 + (level * 3);
armor = armormax;
fire = math.random();
masuk = 0;
}
onClipEvent (enterFrame) {
if (!(_root.playscren === 1)) {
removeMovieClip(this);
_visible = 0;
}
if ((_root.pause == 0) && (_root.go == 1)) {
if (armor < 1) {
nextFrame();
} else {
if (((_y > 500) || (_x < -20)) || (_x > 660)) {
removeMovieClip(this);
_visible = 0;
}
fire = fire + 0.07;
_y = (_y + speed);
_x = (_x + speedx);
if (fire > 1) {
_root.jumlah++;
name = "blasten" + _root.jumlah;
duplicateMovieClip (_root.missileen, name, 100 + _root.jumlah);
_root[name]._x = _x;
_root[name]._y = _y;
_root[name].launch = 1;
fire = 0;
}
n = 0;
while (n < 50) {
name = "blast" + n;
if (hittest(_root[name])) {
bang = "explode" + _root.fir;
if (_root[name].damage < 10) {
duplicateMovieClip (_root.explodb, bang, _root.fir + 300);
_root.explodesml.start();
} else {
duplicateMovieClip (_root.explod, bang, _root.fir + 300);
_root.explodebig.start();
}
if (armor < _root[name].damage) {
armor = 0;
} else {
armor = armor - _root[name].damage;
}
_root.healthmusuh = (("armor :" + math.round(armor)) + " /") + armormax;
_root.scr.hape._xscale = (100 * armor) / armormax;
_root.namamusuh = nama;
_root.fir++;
_root[bang]._x = _root[name]._x;
_root[bang]._y = _root[name]._y;
removeMovieClip(_root[name]);
}
n++;
}
}
}
}
Instance of Symbol 180 MovieClip "expview" in Frame 20
onClipEvent (load) {
_alpha = 100;
}
onClipEvent (enterFrame) {
if (!(_root.playscren === 1)) {
removeMovieClip(this);
_visible = 0;
}
_y = (_y + 2);
_alpha = (_alpha-1);
if (_alpha < 1) {
removeMovieClip(this);
}
}
Instance of Symbol 222 MovieClip "3" in Frame 20
onClipEvent (load) {
_visible = 1;
_x = random(640);
_y = (-30 - random(20));
speed = 5 + (math.random() * 3);
speedx = 2 - (math.random() * 4);
level = (_root.level + 10) + random(10);
nama = "F-22A Lv. " + level;
armormax = 25 + (level * 3);
armor = armormax;
fire = math.random();
}
onClipEvent (enterFrame) {
if (!(_root.playscren === 1)) {
removeMovieClip(this);
_visible = 0;
}
if ((_root.pause == 0) && (_root.go == 1)) {
if (armor < 1) {
nextFrame();
} else {
if (((_y > 500) || (_x < -20)) || (_x > 660)) {
removeMovieClip(this);
_visible = 0;
}
fire = fire + 0.08;
_y = (_y + speed);
_x = (_x + speedx);
if (fire > 1) {
_root.jumlah++;
name = "blasten" + _root.jumlah;
duplicateMovieClip (_root.missileen, name, 100 + _root.jumlah);
_root[name]._x = _x;
_root[name]._y = _y;
_root[name].launch = 1;
fire = 0;
}
n = 0;
while (n < 50) {
name = "blast" + n;
if (hittest(_root[name])) {
bang = "explode" + _root.fir;
if (_root[name].damage < 10) {
duplicateMovieClip (_root.explodb, bang, _root.fir + 300);
_root.explodesml.start();
} else {
duplicateMovieClip (_root.explod, bang, _root.fir + 300);
_root.explodebig.start();
}
if (armor < _root[name].damage) {
armor = 0;
} else {
armor = armor - _root[name].damage;
}
_root.healthmusuh = (("armor :" + math.round(armor)) + " /") + armormax;
_root.scr.hape._xscale = (100 * armor) / armormax;
_root.namamusuh = nama;
_root.fir++;
_root[bang]._x = _root[name]._x;
_root[bang]._y = _root[name]._y;
removeMovieClip(_root[name]);
}
n++;
}
}
}
}
Instance of Symbol 224 MovieClip "2" in Frame 20
onClipEvent (load) {
_visible = 1;
_x = random(640);
_y = (-20 - random(20));
speed = 1 + (math.random() * 3);
speedx = 2 - (math.random() * 4);
level = _root.level + random(10);
nama = "B-2 Bomber Lv. " + level;
armormax = 10 + (level * 15);
armor = armormax;
fire = math.random();
}
onClipEvent (enterFrame) {
if (!(_root.playscren === 1)) {
removeMovieClip(this);
_visible = 0;
}
if ((_root.pause == 0) && (_root.go == 1)) {
if (armor < 1) {
nextFrame();
} else {
if (((_y > 500) || (_x < -60)) || (_x > 700)) {
removeMovieClip(this);
}
fire = fire + 0.01;
_y = (_y + speed);
_x = (_x + speedx);
n = 0;
while (n < 50) {
name = "blast" + n;
if (hittest(_root[name])) {
bang = "explode" + _root.fir;
if (_root[name].damage < 10) {
duplicateMovieClip (_root.explodb, bang, _root.fir + 300);
_root.explodesml.start();
} else {
duplicateMovieClip (_root.explod, bang, _root.fir + 300);
_root.explodebig.start();
}
if (armor < _root[name].damage) {
armor = 0;
} else {
armor = armor - _root[name].damage;
}
_root.healthmusuh = (("armor :" + math.round(armor)) + " /") + armormax;
_root.scr.hape._xscale = (100 * armor) / armormax;
_root.namamusuh = nama;
_root.fir++;
_root[bang]._x = _root[name]._x;
_root[bang]._y = _root[name]._y;
removeMovieClip(_root[name]);
}
n++;
}
}
}
}
Instance of Symbol 228 MovieClip "4" in Frame 20
onClipEvent (load) {
_visible = 1;
raja = 1;
_x = random(640);
_y = (-30 - random(20));
speed = 7 + (math.random() * 3);
speedx = 2 - (math.random() * 4);
level = (_root.level + 10) + random(10);
nama = "SU-30MKI Lv. " + level;
armormax = 60 + (level * 4);
armor = armormax;
fire = math.random();
}
onClipEvent (enterFrame) {
if (!(_root.playscren === 1)) {
removeMovieClip(this);
_visible = 0;
}
if ((_root.pause == 0) && (_root.go == 1)) {
if (armor < 1) {
nextFrame();
} else {
if (((_y > 500) || (_x < -20)) || (_x > 660)) {
removeMovieClip(this);
_visible = 0;
}
fire = fire + 0.08;
_y = (_y + speed);
_x = (_x + speedx);
if (fire > 1) {
_root.jumlah++;
name = "blasten" + _root.jumlah;
duplicateMovieClip (_root.missileen, name, 100 + _root.jumlah);
_root[name]._x = _x;
_root[name]._y = _y;
_root[name].launch = 1;
fire = 0;
}
n = 0;
while (n < 50) {
name = "blast" + n;
if (hittest(_root[name])) {
bang = "explode" + _root.fir;
if (_root[name].damage < 10) {
duplicateMovieClip (_root.explodb, bang, _root.fir + 300);
_root.explodesml.start();
} else {
duplicateMovieClip (_root.explod, bang, _root.fir + 300);
_root.explodebig.start();
}
if (armor < _root[name].damage) {
armor = 0;
} else {
armor = armor - _root[name].damage;
}
_root.healthmusuh = (("armor :" + math.round(armor)) + " /") + armormax;
_root.scr.hape._xscale = (100 * armor) / armormax;
_root.namamusuh = nama;
_root.fir++;
_root[bang]._x = _root[name]._x;
_root[bang]._y = _root[name]._y;
removeMovieClip(_root[name]);
}
n++;
}
}
}
}
Instance of Symbol 230 MovieClip "5" in Frame 20
onClipEvent (load) {
_visible = 1;
raja = 1;
_x = random(640);
_y = (-30 - random(20));
speed = 9 + (math.random() * 3);
speedx = 2 - (math.random() * 4);
level = (_root.level + 10) + random(10);
nama = "SU-30MKI Lv. " + level;
armormax = 60 + (level * 10);
armor = armormax;
fire = math.random();
}
onClipEvent (enterFrame) {
if (!(_root.playscren === 1)) {
removeMovieClip(this);
_visible = 0;
}
if ((_root.pause == 0) && (_root.goraja == 0)) {
if (armor < 1) {
nextFrame();
} else {
if (((_y > 500) || (_x < -20)) || (_x > 660)) {
_x = random(640);
_y = (-20 - random(100));
speed = 9 + (math.random() * 3);
speedx = 2 - (math.random() * 4);
}
fire = fire + 0.08;
_y = (_y + speed);
_x = (_x + speedx);
if (fire > 1) {
_root.jumlah++;
name = "blasten" + _root.jumlah;
duplicateMovieClip (_root.missileen, name, 100 + _root.jumlah);
_root[name]._x = _x;
_root[name]._y = _y;
_root[name].launch = 1;
fire = 0;
}
n = 0;
while (n < 50) {
name = "blast" + n;
if (hittest(_root[name])) {
bang = "explode" + _root.fir;
if (_root[name].damage < 10) {
duplicateMovieClip (_root.explodb, bang, _root.fir + 300);
_root.explodesml.start();
} else {
duplicateMovieClip (_root.explod, bang, _root.fir + 300);
_root.explodebig.start();
}
if (armor < _root[name].damage) {
armor = 0;
} else {
armor = armor - _root[name].damage;
}
_root.healthmusuh = (("armor :" + math.round(armor)) + " /") + armormax;
_root.scr.hape._xscale = (100 * armor) / armormax;
_root.namamusuh = nama;
_root.fir++;
_root[bang]._x = _root[name]._x;
_root[bang]._y = _root[name]._y;
removeMovieClip(_root[name]);
}
n++;
}
}
}
}
Instance of Symbol 186 MovieClip "missile" in Frame 20
onClipEvent (load) {
power = 20;
_alpha = 0;
damage = 30 + (_root.level / 3);
targetx = random(640);
targety = -50;
_rotation = ((Math.atan2(targety - _y, targetx - _x) * 180) / Math.PI);
}
onClipEvent (enterFrame) {
if (!(_root.playscren === 1)) {
removeMovieClip(this);
_visible = 0;
}
if (_root.pause == 0) {
if (launch == 1) {
if (_alpha < 100) {
_alpha = (_alpha + 15);
}
_rotation = ((Math.atan2(targety - _y, targetx - _x) * 180) / Math.PI);
speedx = Math.cos(((_rotation - random(5)) * Math.PI) / 180) * power;
speedy = Math.sin(((_rotation + random(5)) * Math.PI) / 180) * power;
_x = (_x + speedx);
_y = (_y + speedy);
}
}
if (_y < -30) {
removeMovieClip(this);
}
}
Instance of Symbol 186 MovieClip "missilex" in Frame 20
onClipEvent (load) {
power = 20;
time = 3 + random(8);
_alpha = 0;
damage = 30;
targetx = random(640);
targety = -30;
_rotation = ((Math.atan2(targety - _y, targetx - _x) * 180) / Math.PI);
damage = 25 + (_root.level / 3);
}
onClipEvent (enterFrame) {
if (!(_root.playscren === 1)) {
removeMovieClip(this);
_visible = 0;
}
if (_root.pause == 0) {
if (launch == 1) {
if (time < 0) {
targetx = _root._xmouse;
}
if (_alpha < 100) {
_alpha = (_alpha + 15);
}
time--;
_rotation = ((Math.atan2(targety - _y, targetx - _x) * 180) / Math.PI);
speedx = Math.cos(((_rotation - random(5)) * Math.PI) / 180) * power;
speedy = Math.sin(((_rotation + random(5)) * Math.PI) / 180) * power;
_x = (_x + speedx);
_y = (_y + speedy);
}
}
if (_y < -10) {
removeMovieClip(this);
}
}
Instance of Symbol 110 MovieClip "blasten" in Frame 20
onClipEvent (load) {
_alpha = random(40);
damage = 3;
}
onClipEvent (enterFrame) {
if (!(_root.playscren === 1)) {
removeMovieClip(this);
_visible = 0;
}
if (_root.pause == 0) {
if (hittest(_root.plane)) {
if (_root.plane.shield < damage) {
if (_root.plane.armor < damage) {
_root.plane.armor = 0;
} else {
_root.plane.armor = _root.plane.armor - (damage - _root.plane.shield);
}
_root.plane.shield = 0;
} else {
_root.plane.shield = _root.plane.shield - damage;
}
bang = "explode" + _root.fir;
duplicateMovieClip (_root.explodb, bang, _root.fir + 400);
_root.fir++;
_root[bang]._x = _x;
_root[bang]._y = _y;
_root.explodesml.start();
removeMovieClip(this);
}
_alpha = (_alpha + 5);
_x = (_x + speedx);
_y = (_y + speedy);
}
if ((((_y < 0) || (_y > 480)) || (_x < 0)) || (_x > 640)) {
removeMovieClip(this);
}
}
Instance of Symbol 110 MovieClip "blast" in Frame 20
onClipEvent (load) {
_alpha = random(40);
speed = 20 + (math.random() * 1);
damage = 2 + (_root.level / 1.5);
}
onClipEvent (enterFrame) {
if (!(_root.playscren === 1)) {
removeMovieClip(this);
_visible = 0;
}
if (_root.pause == 0) {
if (_alpha < 100) {
_alpha = (_alpha + 10);
}
_y = (_y - speed);
}
if (_y < 0) {
removeMovieClip(this);
}
}
Instance of Symbol 110 MovieClip "blastx" in Frame 20
onClipEvent (load) {
_alpha = random(40);
damage = 1 + (_root.level / 3);
}
onClipEvent (enterFrame) {
if (!(_root.playscren === 1)) {
removeMovieClip(this);
_visible = 0;
}
if (_root.pause == 0) {
if (_alpha < 100) {
_alpha = (_alpha + 10);
}
_x = (_x + speedx);
_y = (_y + speedy);
}
if ((((_y < 0) || (_y > 480)) || (_x < 0)) || (_x > 640)) {
removeMovieClip(this);
}
}
Instance of Symbol 182 MovieClip "api" in Frame 20
onClipEvent (load) {
_alpha = (_root.scr2.darah._xscale + (math.random() * (100 - _root.scr2.darah._xscale)));
spd = ((5 - random(11)) * (100 - _root.scr2.darah._xscale)) / 100;
spdy = 2 + ((math.random() * (100 - _root.scr2.darah._xscale)) / 10);
uk = _root.scr2.darah._xscale + (math.random() * (100 - _root.scr2.darah._xscale));
_xscale = uk;
_yscale = uk;
_x = _root.plane._x;
_y = (_root.plane._y + 18);
}
onClipEvent (enterFrame) {
if (!(_root.playscren === 1)) {
removeMovieClip(this);
_visible = 0;
}
if (_root.pause == 0) {
_y = (_y + spdy);
_x = (_x + spd);
spd = spd * 0.9;
_alpha = (_alpha - 8);
uk = uk - 5;
_xscale = uk;
_yscale = uk;
if ((_alpha < 0) || (uk < 0)) {
removeMovieClip(this);
_visible = 0;
}
}
}
Instance of Symbol 197 MovieClip "plane" in Frame 20
onClipEvent (load) {
armor = _root.maxhp;
shield = _root.maxhp / 2;
}
onClipEvent (enterFrame) {
if (_root.pause == 0) {
_y = (_y + speedy);
_x = (_x + speed);
speed = speed * 0.9;
speedy = speedy * 0.9;
if (armor > 0) {
if (shield < (_root.maxhp / 2)) {
shield = shield + (0.0001 * _root.maxhp);
}
if (_x < 0) {
speed = speed + 2;
} else if (_x > 640) {
speed = speed - 2;
}
if (_y < 0) {
speedy = speedy + 2;
} else if (_y > 400) {
speedy = speedy - 2;
}
if (Key.isDown(65) || (key.isdown(37))) {
speed = speed - 1.5;
} else if (Key.isDown(68) || (key.isdown(39))) {
speed = speed + 1.5;
}
if (Key.isDown(87) || (key.isdown(38))) {
speedy = speedy - 1.5;
} else if (Key.isDown(83) || (key.isdown(40))) {
speedy = speedy + 1.5;
}
} else {
speedy = speedy + 1;
armor = 0;
if (ledak > 1) {
bang = "explode" + _root.fir;
duplicateMovieClip (_root.explod, bang, _root.fir + 201);
_root.fir++;
_root[bang]._x = (_x + 13) - random(26);
_root[bang]._y = (_y + 23) - random(46);
ledak = 0;
}
ledak = ledak + 0.2;
if (_y > 660) {
_root.scr2._visible = 0;
_root.scr._visible = 0;
_root.gotoAndStop("over");
}
}
}
}
Instance of Symbol 186 MovieClip "missileen" in Frame 20
onClipEvent (load) {
power = 10;
_alpha = 0;
damage = 15 + (_root.level / 3);
targetx = random(640);
targety = 500;
_rotation = ((Math.atan2(targety - _y, targetx - _x) * 180) / Math.PI);
}
onClipEvent (enterFrame) {
if (!(_root.playscren === 1)) {
removeMovieClip(this);
_visible = 0;
}
if (_root.pause == 0) {
if (launch == 1) {
if (_alpha < 100) {
_alpha = (_alpha + 15);
}
_rotation = ((Math.atan2(targety - _y, targetx - _x) * 180) / Math.PI);
speedx = Math.cos(((_rotation - random(5)) * Math.PI) / 180) * power;
speedy = Math.sin(((_rotation + random(5)) * Math.PI) / 180) * power;
_x = (_x + speedx);
_y = (_y + speedy);
if (hit.hittest(_root.plane)) {
if (_root.plane.shield < damage) {
if (_root.plane.armor < damage) {
_root.plane.armor = 0;
} else {
_root.plane.armor = _root.plane.armor - (damage - _root.plane.shield);
}
_root.plane.shield = 0;
} else {
_root.plane.shield = _root.plane.shield - damage;
}
bang = "explode" + _root.fir;
duplicateMovieClip (_root.explod, bang, _root.fir + 400);
_root.fir++;
_root[bang]._x = _x;
_root[bang]._y = _y;
_root.explodebig.start();
removeMovieClip(this);
}
n = 0;
while (n < 50) {
name = "blast" + n;
if (hit.hittest(_root[name])) {
bang = "explode" + _root.fir;
duplicateMovieClip (_root.explod, bang, _root.fir + 201);
_root.fir++;
_root[bang]._x = _root[name]._x;
_root[bang]._y = _root[name]._y;
_root.explodebig.start();
removeMovieClip(_root[name]);
removeMovieClip(this);
}
n++;
}
}
}
if (_y > 480) {
removeMovieClip(this);
}
}
Frame 21
stop();
scr._visible = 1;
scr2._visible = 1;
playscren = 1;
pause = 0;
n = 0;
nx = 0;
batas = 0;
from = "";
msg = "";
go = 0;
goraja = 1;
jmlraja = 1;
power = 20;
tembak = 0;
spawn = 20;
spawntime = 20;
timeplay = 0;
msglist = newarray();
fromlist = newarray();
fromlist = ["bird eye", "bird eye", "bird eye", ""];
msglist = ["oh no!! he's already on air", "chase him and take him down ", "good luck!! ", ""];
this.onMouseDown = function () {
gofire = 1;
};
this.onMouseUp = function () {
gofire = 0;
};
this.onEnterFrame = function () {
var _local1 = _root;
if (pause == 0) {
duplicateMovieClip ("api", "api" + jmlapi, 55 + jmlapi);
jmlapi++;
timeplay++;
spawntime--;
if ((jmlraja < 1) && (playscren == 1)) {
scr._visible = 0;
scr2._visible = 0;
delete this.onEnterFrame;
nextFrame();
}
}
if ((timeplay > batas) && (nx < 2)) {
nx = math.floor(batas / 100);
from = fromlist[nx];
msg = msglist[nx];
_local1.scr.msgvw.go = 1;
batas = batas + 100;
}
if (fir > 100) {
fir = 0;
}
if (jumlah > 150) {
jumlah = 0;
}
if (xpjml > 10) {
xpjml = 0;
}
if (jml > 50) {
jml = 0;
}
if (jmlapi > 20) {
jmlapi = 0;
}
if (((spawntime < 0) && (pause == 0)) && (timeplay > 400)) {
go = 1;
duplicateMovieClip (random(5), "enemy" + jumlah, 500 + jumlah);
jumlah++;
spawntime = 22;
}
firerate = firerate + 0.5;
tembak = tembak + 0.2;
if (((gofire == 1) && (pause == 0)) && (_local1.plane.armor > 0)) {
vulcan.start();
if (form == 1) {
if (firerate > 1.5) {
jml++;
name = "blast" + jml;
duplicateMovieClip ("blast", name, jml);
_local1[name]._x = (_local1.plane._x + 2) - random(4);
_local1[name]._y = _local1.plane._y - 18;
firerate = 0;
}
} else if (form == 2) {
if (firerate > 1.5) {
i = 0;
while (i < 2) {
jml++;
name = "blast" + jml;
duplicateMovieClip ("blast", name, jml);
_local1[name]._x = (((_local1.plane._x - 10) + (i * 20)) + 2) - random(4);
_local1[name]._y = _local1.plane._y - 18;
i++;
}
firerate = 0;
}
} else if (form == 3) {
if (firerate > 1.5) {
i = 0;
while (i < 3) {
jml++;
name = "blast" + jml;
duplicateMovieClip ("blast", name, jml);
_local1[name]._x = (((_local1.plane._x - 10) + (i * 10)) + 2) - random(4);
_local1[name]._y = _local1.plane._y - 18;
i++;
}
firerate = 0;
}
} else if (form == 4) {
if (firerate > 1.5) {
i = 0;
while (i < 2) {
jml++;
name = "blast" + jml;
duplicateMovieClip ("blast", name, jml);
_local1[name]._x = (((_local1.plane._x - 10) + (i * 20)) + 2) - random(4);
_local1[name]._y = _local1.plane._y - 18;
i++;
}
firerate = 0;
}
jml++;
name = "blast" + jml;
duplicateMovieClip ("laser", name, jml);
_local1[name]._x = _local1.plane._x;
_local1[name]._y = _local1.plane._y - 18;
laser.start();
} else if (form == 5) {
if (firerate > 2) {
i = 0;
while (i < 2) {
jml++;
name = "blast" + jml;
duplicateMovieClip ("blast", name, jml);
_local1[name]._x = (((_local1.plane._x - 10) + (i * 20)) + 2) - random(4);
_local1[name]._y = _local1.plane._y - 18;
i++;
}
jml++;
name = "blast" + jml;
duplicateMovieClip ("blastx", name, jml);
_local1[name]._x = _local1.plane._x;
_local1[name]._y = _local1.plane._y;
_local1[name]._rotation = plane.turret._rotation;
_local1[name].speedy = Math.sin(((_local1[name]._rotation + random(5)) * Math.PI) / 180) * power;
_local1[name].speedx = Math.cos(((_local1[name]._rotation - random(5)) * Math.PI) / 180) * power;
firerate = 0;
}
jml++;
name = "blast" + jml;
duplicateMovieClip ("laser", name, jml);
_local1[name]._x = _local1.plane._x;
_local1[name]._y = _local1.plane._y - 18;
laser.start();
} else if (form == 6) {
if (firerate > 2) {
i = 0;
while (i < 2) {
jml++;
name = "blast" + jml;
duplicateMovieClip ("blast", name, jml);
_local1[name]._x = (((_local1.plane._x - 10) + (i * 20)) + 2) - random(4);
_local1[name]._y = _local1.plane._y - 18;
i++;
}
jml++;
name = "blast" + jml;
duplicateMovieClip ("blastx", name, jml);
_local1[name]._x = _local1.plane._x;
_local1[name]._y = _local1.plane._y;
_local1[name]._rotation = plane.turret._rotation;
_local1[name].speedy = Math.sin(((_local1[name]._rotation + random(5)) * Math.PI) / 180) * power;
_local1[name].speedx = Math.cos(((_local1[name]._rotation - random(5)) * Math.PI) / 180) * power;
firerate = 0;
}
jml++;
name = "blast" + jml;
duplicateMovieClip ("laser", name, jml);
_local1[name]._x = _local1.plane._x;
_local1[name]._y = _local1.plane._y - 18;
laser.start();
if (tembak > 3) {
roket.start();
jml++;
name = "blast" + jml;
duplicateMovieClip ("missile", name, jml);
_local1[name]._x = _local1.plane._x;
_local1[name]._y = _local1.plane._y + 10;
_local1[name].launch = 1;
tembak = 0;
}
} else if (form == 7) {
if (firerate > 2.5) {
i = 0;
while (i < 2) {
jml++;
name = "blast" + jml;
duplicateMovieClip ("blast", name, jml);
_local1[name]._x = (((_local1.plane._x - 10) + (i * 20)) + 2) - random(4);
_local1[name]._y = _local1.plane._y - 18;
i++;
}
jml++;
name = "blast" + jml;
duplicateMovieClip ("blastx", name, jml);
_local1[name]._x = _local1.plane._x;
_local1[name]._y = _local1.plane._y;
_local1[name]._rotation = plane.turret._rotation;
_local1[name].speedy = Math.sin(((_local1[name]._rotation + random(5)) * Math.PI) / 180) * power;
_local1[name].speedx = Math.cos(((_local1[name]._rotation - random(5)) * Math.PI) / 180) * power;
firerate = 0;
}
jml++;
name = "blast" + jml;
duplicateMovieClip ("laser", name, jml);
_local1[name]._x = _local1.plane._x;
_local1[name]._y = _local1.plane._y - 18;
laser.start();
if (tembak > 3) {
roket.start();
i = 0;
while (i < 2) {
jml++;
name = "blast" + jml;
duplicateMovieClip ("missilex", name, jml);
_local1[name]._x = (_local1.plane._x - 10) + (i * 20);
_local1[name]._y = _local1.plane._y;
_local1[name].launch = 1;
i++;
}
jml++;
name = "blast" + jml;
duplicateMovieClip ("missile", name, jml);
_local1[name]._x = _local1.plane._x;
_local1[name]._y = _local1.plane._y + 10;
_local1[name].launch = 1;
tembak = 0;
}
}
}
};
Instance of Symbol 27 MovieClip in Frame 21
onClipEvent (enterFrame) {
if (_root.pause == 0) {
play();
} else {
stop();
}
}
Instance of Symbol 232 MovieClip in Frame 21
onClipEvent (load) {
petir = new Sound();
petir.attachSound("petir");
}
onClipEvent (enterFrame) {
if (_root.pause == 0) {
tim--;
_alpha = (_alpha - 5);
}
if (tim < 0) {
petir.start();
_alpha = (50 + (5 * random(10)));
tim = 50 + random(50);
}
}
Instance of Symbol 73 MovieClip "evoscr" in Frame 21
onClipEvent (load) {
this.swapDepths(801);
}
onClipEvent (enterFrame) {
if (!(_root.playscren === 1)) {
removeMovieClip(this);
_visible = 0;
}
}
Instance of Symbol 96 MovieClip "scr2" in Frame 21
onClipEvent (load) {
this.swapDepths(800);
}
onClipEvent (enterFrame) {
if (!(_root.playscren === 1)) {
removeMovieClip(this);
_visible = 0;
}
}
Instance of Symbol 108 MovieClip "scr" in Frame 21
onClipEvent (load) {
this.swapDepths(804);
}
onClipEvent (enterFrame) {
if (!(_root.playscren === 1)) {
removeMovieClip(this);
_visible = 0;
}
}
Instance of Symbol 228 MovieClip "4" in Frame 21
onClipEvent (load) {
_visible = 1;
_x = random(640);
_y = (-30 - random(20));
speed = 7 + (math.random() * 3);
speedx = 2 - (math.random() * 4);
level = (_root.level + 10) + random(10);
nama = "SU-30MKI Lv. " + level;
armormax = 60 + (level * 4);
armor = armormax;
fire = math.random();
}
onClipEvent (enterFrame) {
if (!(_root.playscren === 1)) {
removeMovieClip(this);
_visible = 0;
}
if ((_root.pause == 0) && (_root.go == 1)) {
if (armor < 1) {
nextFrame();
} else {
if (((_y > 500) || (_x < -20)) || (_x > 660)) {
removeMovieClip(this);
_visible = 0;
}
fire = fire + 0.08;
_y = (_y + speed);
_x = (_x + speedx);
if (fire > 1) {
_root.jumlah++;
name = "blasten" + _root.jumlah;
duplicateMovieClip (_root.missileen, name, 100 + _root.jumlah);
_root[name]._x = _x;
_root[name]._y = _y;
_root[name].launch = 1;
fire = 0;
}
n = 0;
while (n < 50) {
name = "blast" + n;
if (hittest(_root[name])) {
bang = "explode" + _root.fir;
if (_root[name].damage < 10) {
duplicateMovieClip (_root.explodb, bang, _root.fir + 300);
_root.explodesml.start();
} else {
duplicateMovieClip (_root.explod, bang, _root.fir + 300);
_root.explodebig.start();
}
if (armor < _root[name].damage) {
armor = 0;
} else {
armor = armor - _root[name].damage;
}
_root.healthmusuh = (("armor :" + math.round(armor)) + " /") + armormax;
_root.scr.hape._xscale = (100 * armor) / armormax;
_root.namamusuh = nama;
_root.fir++;
_root[bang]._x = _root[name]._x;
_root[bang]._y = _root[name]._y;
removeMovieClip(_root[name]);
}
n++;
}
}
}
}
Instance of Symbol 230 MovieClip "5" in Frame 21
onClipEvent (load) {
_visible = 1;
_x = random(640);
_y = (-30 - random(20));
speed = 9 + (math.random() * 3);
speedx = 2 - (math.random() * 4);
level = (_root.level + 10) + random(10);
nama = "SU-30MKI Lv. " + level;
armormax = 60 + (level * 10);
armor = armormax;
fire = math.random();
}
onClipEvent (enterFrame) {
if (!(_root.playscren === 1)) {
removeMovieClip(this);
_visible = 0;
}
if ((_root.pause == 0) && (_root.go == 1)) {
if (armor < 1) {
nextFrame();
} else {
if (((_y > 500) || (_x < -20)) || (_x > 660)) {
_x = random(640);
_y = (-20 - random(100));
speed = 9 + (math.random() * 3);
speedx = 2 - (math.random() * 4);
}
fire = fire + 0.08;
_y = (_y + speed);
_x = (_x + speedx);
if (fire > 1) {
_root.jumlah++;
name = "blasten" + _root.jumlah;
duplicateMovieClip (_root.missileen, name, 100 + _root.jumlah);
_root[name]._x = _x;
_root[name]._y = _y;
_root[name].launch = 1;
fire = 0;
}
n = 0;
while (n < 50) {
name = "blast" + n;
if (hittest(_root[name])) {
bang = "explode" + _root.fir;
if (_root[name].damage < 10) {
duplicateMovieClip (_root.explodb, bang, _root.fir + 300);
_root.explodesml.start();
} else {
duplicateMovieClip (_root.explod, bang, _root.fir + 300);
_root.explodebig.start();
}
if (armor < _root[name].damage) {
armor = 0;
} else {
armor = armor - _root[name].damage;
}
_root.healthmusuh = (("armor :" + math.round(armor)) + " /") + armormax;
_root.scr.hape._xscale = (100 * armor) / armormax;
_root.namamusuh = nama;
_root.fir++;
_root[bang]._x = _root[name]._x;
_root[bang]._y = _root[name]._y;
removeMovieClip(_root[name]);
}
n++;
}
}
}
}
Instance of Symbol 234 MovieClip in Frame 21
onClipEvent (load) {
_visible = 1;
_x = random(640);
_y = (-60 - random(20));
speed = 3;
speedx = 2;
level = (_root.level + 20) + random(10);
nama = "boeing 747 Lv. " + level;
armormax = 10000 + (level * 50);
armor = armormax;
fire = math.random();
}
onClipEvent (enterFrame) {
if (!(_root.playscren === 1)) {
removeMovieClip(this);
_visible = 0;
}
if ((_root.pause == 0) && (_root.go == 1)) {
_y = (_y + (speed - dec));
if (armor < 1) {
speed = -15;
if (_y < -100) {
_root.nextFrame();
}
} else {
if (_y > 400) {
dec = dec + 10;
speed = -3;
}
if (_y < -300) {
speed = 3;
}
if ((_x < -60) || (_x > 700)) {
speedx = speedx * -1;
}
fire = fire + 0.01;
_x = (_x + speedx);
dec = dec * 0.9;
n = 0;
while (n < 50) {
name = "blast" + n;
if (hittest(_root[name])) {
bang = "explode" + _root.fir;
if (_root[name].damage < 10) {
duplicateMovieClip (_root.explodb, bang, _root.fir + 300);
_root.explodesml.start();
} else {
duplicateMovieClip (_root.explod, bang, _root.fir + 300);
_root.explodebig.start();
}
if (armor < _root[name].damage) {
armor = 0;
} else {
armor = armor - _root[name].damage;
}
_root.healthmusuh = (("armor :" + math.round(armor)) + " /") + armormax;
_root.scr.hape._xscale = (100 * armor) / armormax;
_root.namamusuh = nama;
_root.fir++;
_root[bang]._x = _root[name]._x;
_root[bang]._y = _root[name]._y;
removeMovieClip(_root[name]);
}
n++;
}
}
}
}
Frame 22
_root.playscren = 0;
lanjut = _currentframe;
Frame 23
stop();
scr._visible = 1;
scr2._visible = 1;
playscren = 1;
pause = 0;
n = 0;
nx = 0;
batas = 0;
from = "";
msg = "";
go = 0;
goraja = 1;
jmlraja = 1;
power = 20;
tembak = 0;
spawn = 20;
spawntime = 20;
timeplay = 0;
msglist = newarray();
fromlist = newarray();
fromlist = ["bird eye", "bird eye", "bird eye", "bird eye", "bird eye", ""];
msglist = ["he's fighting back", "looks like there's some sort of weapon ", "mounted on his plane", " your mission is destroy his plane!!", "good luck!! ", ""];
this.onMouseDown = function () {
gofire = 1;
};
this.onMouseUp = function () {
gofire = 0;
};
this.onEnterFrame = function () {
var _local1 = _root;
if (pause == 0) {
duplicateMovieClip ("api", "api" + jmlapi, 55 + jmlapi);
jmlapi++;
timeplay++;
spawntime--;
if ((jmlraja < 1) && (playscren == 1)) {
scr._visible = 0;
scr2._visible = 0;
delete this.onEnterFrame;
nextFrame();
}
}
if ((timeplay > batas) && (nx < 4)) {
nx = math.floor(batas / 100);
from = fromlist[nx];
msg = msglist[nx];
_local1.scr.msgvw.go = 1;
batas = batas + 100;
}
if (fir > 100) {
fir = 0;
}
if (jumlah > 150) {
jumlah = 0;
}
if (xpjml > 10) {
xpjml = 0;
}
if (jml > 50) {
jml = 0;
}
if (jmlapi > 20) {
jmlapi = 0;
}
if (((spawntime < 0) && (pause == 0)) && (timeplay > 400)) {
go = 1;
duplicateMovieClip (random(5), "enemy" + jumlah, 500 + jumlah);
jumlah++;
spawntime = 22;
}
firerate = firerate + 0.5;
tembak = tembak + 0.2;
if (((gofire == 1) && (pause == 0)) && (_local1.plane.armor > 0)) {
vulcan.start();
if (form == 1) {
if (firerate > 1.5) {
jml++;
name = "blast" + jml;
duplicateMovieClip ("blast", name, jml);
_local1[name]._x = (_local1.plane._x + 2) - random(4);
_local1[name]._y = _local1.plane._y - 18;
firerate = 0;
}
} else if (form == 2) {
if (firerate > 1.5) {
i = 0;
while (i < 2) {
jml++;
name = "blast" + jml;
duplicateMovieClip ("blast", name, jml);
_local1[name]._x = (((_local1.plane._x - 10) + (i * 20)) + 2) - random(4);
_local1[name]._y = _local1.plane._y - 18;
i++;
}
firerate = 0;
}
} else if (form == 3) {
if (firerate > 1.5) {
i = 0;
while (i < 3) {
jml++;
name = "blast" + jml;
duplicateMovieClip ("blast", name, jml);
_local1[name]._x = (((_local1.plane._x - 10) + (i * 10)) + 2) - random(4);
_local1[name]._y = _local1.plane._y - 18;
i++;
}
firerate = 0;
}
} else if (form == 4) {
if (firerate > 1.5) {
i = 0;
while (i < 2) {
jml++;
name = "blast" + jml;
duplicateMovieClip ("blast", name, jml);
_local1[name]._x = (((_local1.plane._x - 10) + (i * 20)) + 2) - random(4);
_local1[name]._y = _local1.plane._y - 18;
i++;
}
firerate = 0;
}
jml++;
name = "blast" + jml;
duplicateMovieClip ("laser", name, jml);
_local1[name]._x = _local1.plane._x;
_local1[name]._y = _local1.plane._y - 18;
laser.start();
} else if (form == 5) {
if (firerate > 2) {
i = 0;
while (i < 2) {
jml++;
name = "blast" + jml;
duplicateMovieClip ("blast", name, jml);
_local1[name]._x = (((_local1.plane._x - 10) + (i * 20)) + 2) - random(4);
_local1[name]._y = _local1.plane._y - 18;
i++;
}
jml++;
name = "blast" + jml;
duplicateMovieClip ("blastx", name, jml);
_local1[name]._x = _local1.plane._x;
_local1[name]._y = _local1.plane._y;
_local1[name]._rotation = plane.turret._rotation;
_local1[name].speedy = Math.sin(((_local1[name]._rotation + random(5)) * Math.PI) / 180) * power;
_local1[name].speedx = Math.cos(((_local1[name]._rotation - random(5)) * Math.PI) / 180) * power;
firerate = 0;
}
jml++;
name = "blast" + jml;
duplicateMovieClip ("laser", name, jml);
_local1[name]._x = _local1.plane._x;
_local1[name]._y = _local1.plane._y - 18;
laser.start();
} else if (form == 6) {
if (firerate > 2) {
i = 0;
while (i < 2) {
jml++;
name = "blast" + jml;
duplicateMovieClip ("blast", name, jml);
_local1[name]._x = (((_local1.plane._x - 10) + (i * 20)) + 2) - random(4);
_local1[name]._y = _local1.plane._y - 18;
i++;
}
jml++;
name = "blast" + jml;
duplicateMovieClip ("blastx", name, jml);
_local1[name]._x = _local1.plane._x;
_local1[name]._y = _local1.plane._y;
_local1[name]._rotation = plane.turret._rotation;
_local1[name].speedy = Math.sin(((_local1[name]._rotation + random(5)) * Math.PI) / 180) * power;
_local1[name].speedx = Math.cos(((_local1[name]._rotation - random(5)) * Math.PI) / 180) * power;
firerate = 0;
}
jml++;
name = "blast" + jml;
duplicateMovieClip ("laser", name, jml);
_local1[name]._x = _local1.plane._x;
_local1[name]._y = _local1.plane._y - 18;
laser.start();
if (tembak > 3) {
roket.start();
jml++;
name = "blast" + jml;
duplicateMovieClip ("missile", name, jml);
_local1[name]._x = _local1.plane._x;
_local1[name]._y = _local1.plane._y + 10;
_local1[name].launch = 1;
tembak = 0;
}
} else if (form == 7) {
if (firerate > 2.5) {
i = 0;
while (i < 2) {
jml++;
name = "blast" + jml;
duplicateMovieClip ("blast", name, jml);
_local1[name]._x = (((_local1.plane._x - 10) + (i * 20)) + 2) - random(4);
_local1[name]._y = _local1.plane._y - 18;
i++;
}
jml++;
name = "blast" + jml;
duplicateMovieClip ("blastx", name, jml);
_local1[name]._x = _local1.plane._x;
_local1[name]._y = _local1.plane._y;
_local1[name]._rotation = plane.turret._rotation;
_local1[name].speedy = Math.sin(((_local1[name]._rotation + random(5)) * Math.PI) / 180) * power;
_local1[name].speedx = Math.cos(((_local1[name]._rotation - random(5)) * Math.PI) / 180) * power;
firerate = 0;
}
jml++;
name = "blast" + jml;
duplicateMovieClip ("laser", name, jml);
_local1[name]._x = _local1.plane._x;
_local1[name]._y = _local1.plane._y - 18;
laser.start();
if (tembak > 3) {
roket.start();
i = 0;
while (i < 2) {
jml++;
name = "blast" + jml;
duplicateMovieClip ("missilex", name, jml);
_local1[name]._x = (_local1.plane._x - 10) + (i * 20);
_local1[name]._y = _local1.plane._y;
_local1[name].launch = 1;
i++;
}
jml++;
name = "blast" + jml;
duplicateMovieClip ("missile", name, jml);
_local1[name]._x = _local1.plane._x;
_local1[name]._y = _local1.plane._y + 10;
_local1[name].launch = 1;
tembak = 0;
}
}
}
};
Instance of Symbol 73 MovieClip "evoscr" in Frame 23
onClipEvent (load) {
this.swapDepths(801);
}
onClipEvent (enterFrame) {
if (!(_root.playscren === 1)) {
removeMovieClip(this);
_visible = 0;
}
}
Instance of Symbol 96 MovieClip "scr2" in Frame 23
onClipEvent (load) {
this.swapDepths(800);
}
onClipEvent (enterFrame) {
if (!(_root.playscren === 1)) {
removeMovieClip(this);
_visible = 0;
}
}
Instance of Symbol 108 MovieClip "scr" in Frame 23
onClipEvent (load) {
this.swapDepths(804);
}
onClipEvent (enterFrame) {
if (!(_root.playscren === 1)) {
removeMovieClip(this);
_visible = 0;
}
}
Instance of Symbol 112 MovieClip "laser" in Frame 23
onClipEvent (load) {
_x = (_x + (random(3) - 1));
damage = 5 + (_root.level / 3);
}
onClipEvent (enterFrame) {
if (!(_root.playscren === 1)) {
removeMovieClip(this);
_visible = 0;
}
if (_root.pause == 0) {
_alpha = (math.random() * 100);
_y = (_y - 35);
}
if (_y < 0) {
removeMovieClip(this);
}
}
Instance of Symbol 186 MovieClip "missile" in Frame 23
onClipEvent (load) {
power = 20;
_alpha = 0;
damage = 30 + (_root.level / 3);
targetx = random(640);
targety = -50;
_rotation = ((Math.atan2(targety - _y, targetx - _x) * 180) / Math.PI);
}
onClipEvent (enterFrame) {
if (!(_root.playscren === 1)) {
removeMovieClip(this);
_visible = 0;
}
if (_root.pause == 0) {
if (launch == 1) {
if (_alpha < 100) {
_alpha = (_alpha + 15);
}
_rotation = ((Math.atan2(targety - _y, targetx - _x) * 180) / Math.PI);
speedx = Math.cos(((_rotation - random(5)) * Math.PI) / 180) * power;
speedy = Math.sin(((_rotation + random(5)) * Math.PI) / 180) * power;
_x = (_x + speedx);
_y = (_y + speedy);
}
}
if (_y < -30) {
removeMovieClip(this);
}
}
Instance of Symbol 186 MovieClip "missilex" in Frame 23
onClipEvent (load) {
power = 20;
time = 3 + random(8);
_alpha = 0;
damage = 30;
targetx = random(640);
targety = -30;
_rotation = ((Math.atan2(targety - _y, targetx - _x) * 180) / Math.PI);
damage = 25 + (_root.level / 3);
}
onClipEvent (enterFrame) {
if (!(_root.playscren === 1)) {
removeMovieClip(this);
_visible = 0;
}
if (_root.pause == 0) {
if (launch == 1) {
if (time < 0) {
targetx = _root._xmouse;
}
if (_alpha < 100) {
_alpha = (_alpha + 15);
}
time--;
_rotation = ((Math.atan2(targety - _y, targetx - _x) * 180) / Math.PI);
speedx = Math.cos(((_rotation - random(5)) * Math.PI) / 180) * power;
speedy = Math.sin(((_rotation + random(5)) * Math.PI) / 180) * power;
_x = (_x + speedx);
_y = (_y + speedy);
}
}
if (_y < -10) {
removeMovieClip(this);
}
}
Instance of Symbol 150 MovieClip "0" in Frame 23
onClipEvent (load) {
_visible = 1;
_x = random(640);
_y = (-20 - random(20));
speed = 3 + (math.random() * 4);
speedx = 2 - (math.random() * 4);
level = _root.level + random(10);
nama = "helicopter Lv. " + level;
armormax = 10 + (level * 4);
armor = armormax;
fire = math.random();
}
onClipEvent (enterFrame) {
if (!(_root.playscren === 1)) {
removeMovieClip(this);
_visible = 0;
}
if ((_root.pause == 0) && (_root.go == 1)) {
if (armor < 1) {
nextFrame();
} else {
if (((_y > 500) || (_x < -20)) || (_x > 660)) {
removeMovieClip(this);
}
fire = fire + 0.07;
_y = (_y + speed);
_x = (_x + speedx);
if (fire > 1) {
_root.jumlah++;
name = "blasten" + _root.jumlah;
duplicateMovieClip ("_root.blasten", name, 100 + _root.jumlah);
_root[name]._x = _x;
_root[name]._y = _y;
_root[name].speedy = 5 + random(4);
_root[name].speedx = 4 - random(8);
fire = 0;
}
n = 0;
while (n < 50) {
name = "blast" + n;
if (hittest(_root[name])) {
bang = "explode" + _root.fir;
if (_root[name].damage < 10) {
duplicateMovieClip (_root.explodb, bang, _root.fir + 300);
_root.explodesml.start();
} else {
duplicateMovieClip (_root.explod, bang, _root.fir + 300);
_root.explodebig.start();
}
if (armor < _root[name].damage) {
armor = 0;
} else {
armor = armor - _root[name].damage;
}
_root.healthmusuh = (("armor :" + math.round(armor)) + " /") + armormax;
_root.scr.hape._xscale = (100 * armor) / armormax;
_root.namamusuh = nama;
_root.fir++;
_root[bang]._x = _root[name]._x;
_root[bang]._y = _root[name]._y;
removeMovieClip(_root[name]);
}
n++;
}
}
}
}
Instance of Symbol 151 MovieClip "explod" in Frame 23
onClipEvent (load) {
_alpha = (30 + random(70));
}
onClipEvent (enterFrame) {
if (!(_root.playscren === 1)) {
removeMovieClip(this);
_visible = 0;
}
}
Instance of Symbol 151 MovieClip "explodb" in Frame 23
onClipEvent (load) {
_alpha = (30 + random(70));
}
onClipEvent (enterFrame) {
if (!(_root.playscren === 1)) {
removeMovieClip(this);
_visible = 0;
}
}
Instance of Symbol 177 MovieClip in Frame 23
onClipEvent (load) {
this.swapDepths(802);
}
onClipEvent (keyDown) {
if (key.isdown(32) && (_root.pause == 0)) {
pauseg = 1;
} else if (key.isdown(32) && (_root.pause == 1)) {
pauseg = 0;
}
}
onClipEvent (enterFrame) {
if (pauseg == 1) {
nextFrame();
} else {
prevFrame();
}
}
Instance of Symbol 203 MovieClip "1" in Frame 23
onClipEvent (load) {
_visible = 1;
_x = random(640);
_y = (-30 - random(20));
speed = 5 + (math.random() * 3);
speedx = 2 - (math.random() * 4);
level = _root.level + random(10);
nama = "JAV - 8B Lv. " + level;
armormax = 15 + (level * 3);
armor = armormax;
fire = math.random();
masuk = 0;
}
onClipEvent (enterFrame) {
if (!(_root.playscren === 1)) {
removeMovieClip(this);
_visible = 0;
}
if ((_root.pause == 0) && (_root.go == 1)) {
if (armor < 1) {
nextFrame();
} else {
if (((_y > 500) || (_x < -20)) || (_x > 660)) {
removeMovieClip(this);
_visible = 0;
}
fire = fire + 0.07;
_y = (_y + speed);
_x = (_x + speedx);
if (fire > 1) {
_root.jumlah++;
name = "blasten" + _root.jumlah;
duplicateMovieClip (_root.missileen, name, 100 + _root.jumlah);
_root[name]._x = _x;
_root[name]._y = _y;
_root[name].launch = 1;
fire = 0;
}
n = 0;
while (n < 50) {
name = "blast" + n;
if (hittest(_root[name])) {
bang = "explode" + _root.fir;
if (_root[name].damage < 10) {
duplicateMovieClip (_root.explodb, bang, _root.fir + 300);
_root.explodesml.start();
} else {
duplicateMovieClip (_root.explod, bang, _root.fir + 300);
_root.explodebig.start();
}
if (armor < _root[name].damage) {
armor = 0;
} else {
armor = armor - _root[name].damage;
}
_root.healthmusuh = (("armor :" + math.round(armor)) + " /") + armormax;
_root.scr.hape._xscale = (100 * armor) / armormax;
_root.namamusuh = nama;
_root.fir++;
_root[bang]._x = _root[name]._x;
_root[bang]._y = _root[name]._y;
removeMovieClip(_root[name]);
}
n++;
}
}
}
}
Instance of Symbol 180 MovieClip "expview" in Frame 23
onClipEvent (load) {
_alpha = 100;
}
onClipEvent (enterFrame) {
if (!(_root.playscren === 1)) {
removeMovieClip(this);
_visible = 0;
}
_y = (_y + 2);
_alpha = (_alpha-1);
if (_alpha < 1) {
removeMovieClip(this);
}
}
Instance of Symbol 222 MovieClip "3" in Frame 23
onClipEvent (load) {
_visible = 1;
_x = random(640);
_y = (-30 - random(20));
speed = 5 + (math.random() * 3);
speedx = 2 - (math.random() * 4);
level = (_root.level + 10) + random(10);
nama = "F-22A Lv. " + level;
armormax = 25 + (level * 3);
armor = armormax;
fire = math.random();
}
onClipEvent (enterFrame) {
if (!(_root.playscren === 1)) {
removeMovieClip(this);
_visible = 0;
}
if ((_root.pause == 0) && (_root.go == 1)) {
if (armor < 1) {
nextFrame();
} else {
if (((_y > 500) || (_x < -20)) || (_x > 660)) {
removeMovieClip(this);
_visible = 0;
}
fire = fire + 0.08;
_y = (_y + speed);
_x = (_x + speedx);
if (fire > 1) {
_root.jumlah++;
name = "blasten" + _root.jumlah;
duplicateMovieClip (_root.missileen, name, 100 + _root.jumlah);
_root[name]._x = _x;
_root[name]._y = _y;
_root[name].launch = 1;
fire = 0;
}
n = 0;
while (n < 50) {
name = "blast" + n;
if (hittest(_root[name])) {
bang = "explode" + _root.fir;
if (_root[name].damage < 10) {
duplicateMovieClip (_root.explodb, bang, _root.fir + 300);
_root.explodesml.start();
} else {
duplicateMovieClip (_root.explod, bang, _root.fir + 300);
_root.explodebig.start();
}
if (armor < _root[name].damage) {
armor = 0;
} else {
armor = armor - _root[name].damage;
}
_root.healthmusuh = (("armor :" + math.round(armor)) + " /") + armormax;
_root.scr.hape._xscale = (100 * armor) / armormax;
_root.namamusuh = nama;
_root.fir++;
_root[bang]._x = _root[name]._x;
_root[bang]._y = _root[name]._y;
removeMovieClip(_root[name]);
}
n++;
}
}
}
}
Instance of Symbol 224 MovieClip "2" in Frame 23
onClipEvent (load) {
_visible = 1;
_x = random(640);
_y = (-20 - random(20));
speed = 1 + (math.random() * 3);
speedx = 2 - (math.random() * 4);
level = _root.level + random(10);
nama = "B-2 Bomber Lv. " + level;
armormax = 10 + (level * 15);
armor = armormax;
fire = math.random();
}
onClipEvent (enterFrame) {
if (!(_root.playscren === 1)) {
removeMovieClip(this);
_visible = 0;
}
if ((_root.pause == 0) && (_root.go == 1)) {
if (armor < 1) {
nextFrame();
} else {
if (((_y > 500) || (_x < -60)) || (_x > 700)) {
removeMovieClip(this);
}
fire = fire + 0.01;
_y = (_y + speed);
_x = (_x + speedx);
n = 0;
while (n < 50) {
name = "blast" + n;
if (hittest(_root[name])) {
bang = "explode" + _root.fir;
if (_root[name].damage < 10) {
duplicateMovieClip (_root.explodb, bang, _root.fir + 300);
_root.explodesml.start();
} else {
duplicateMovieClip (_root.explod, bang, _root.fir + 300);
_root.explodebig.start();
}
if (armor < _root[name].damage) {
armor = 0;
} else {
armor = armor - _root[name].damage;
}
_root.healthmusuh = (("armor :" + math.round(armor)) + " /") + armormax;
_root.scr.hape._xscale = (100 * armor) / armormax;
_root.namamusuh = nama;
_root.fir++;
_root[bang]._x = _root[name]._x;
_root[bang]._y = _root[name]._y;
removeMovieClip(_root[name]);
}
n++;
}
}
}
}
Instance of Symbol 228 MovieClip "4" in Frame 23
onClipEvent (load) {
_visible = 1;
_x = random(640);
_y = (-30 - random(20));
speed = 7 + (math.random() * 3);
speedx = 2 - (math.random() * 4);
level = (_root.level + 10) + random(10);
nama = "SU-30MKI Lv. " + level;
armormax = 60 + (level * 4);
armor = armormax;
fire = math.random();
}
onClipEvent (enterFrame) {
if (!(_root.playscren === 1)) {
removeMovieClip(this);
_visible = 0;
}
if ((_root.pause == 0) && (_root.go == 1)) {
if (armor < 1) {
nextFrame();
} else {
if (((_y > 500) || (_x < -20)) || (_x > 660)) {
removeMovieClip(this);
_visible = 0;
}
fire = fire + 0.08;
_y = (_y + speed);
_x = (_x + speedx);
if (fire > 1) {
_root.jumlah++;
name = "blasten" + _root.jumlah;
duplicateMovieClip (_root.missileen, name, 100 + _root.jumlah);
_root[name]._x = _x;
_root[name]._y = _y;
_root[name].launch = 1;
fire = 0;
}
n = 0;
while (n < 50) {
name = "blast" + n;
if (hittest(_root[name])) {
bang = "explode" + _root.fir;
if (_root[name].damage < 10) {
duplicateMovieClip (_root.explodb, bang, _root.fir + 300);
_root.explodesml.start();
} else {
duplicateMovieClip (_root.explod, bang, _root.fir + 300);
_root.explodebig.start();
}
if (armor < _root[name].damage) {
armor = 0;
} else {
armor = armor - _root[name].damage;
}
_root.healthmusuh = (("armor :" + math.round(armor)) + " /") + armormax;
_root.scr.hape._xscale = (100 * armor) / armormax;
_root.namamusuh = nama;
_root.fir++;
_root[bang]._x = _root[name]._x;
_root[bang]._y = _root[name]._y;
removeMovieClip(_root[name]);
}
n++;
}
}
}
}
Instance of Symbol 230 MovieClip "5" in Frame 23
onClipEvent (load) {
_visible = 1;
_x = random(640);
_y = (-30 - random(20));
speed = 9 + (math.random() * 3);
speedx = 2 - (math.random() * 4);
level = (_root.level + 10) + random(10);
nama = "SU-30MKI Lv. " + level;
armormax = 60 + (level * 10);
armor = armormax;
fire = math.random();
}
onClipEvent (enterFrame) {
if (!(_root.playscren === 1)) {
removeMovieClip(this);
_visible = 0;
}
if ((_root.pause == 0) && (_root.go == 1)) {
if (armor < 1) {
nextFrame();
} else {
if (((_y > 500) || (_x < -20)) || (_x > 660)) {
_x = random(640);
_y = (-20 - random(100));
speed = 9 + (math.random() * 3);
speedx = 2 - (math.random() * 4);
}
fire = fire + 0.08;
_y = (_y + speed);
_x = (_x + speedx);
if (fire > 1) {
_root.jumlah++;
name = "blasten" + _root.jumlah;
duplicateMovieClip (_root.missileen, name, 100 + _root.jumlah);
_root[name]._x = _x;
_root[name]._y = _y;
_root[name].launch = 1;
fire = 0;
}
n = 0;
while (n < 50) {
name = "blast" + n;
if (hittest(_root[name])) {
bang = "explode" + _root.fir;
if (_root[name].damage < 10) {
duplicateMovieClip (_root.explodb, bang, _root.fir + 300);
_root.explodesml.start();
} else {
duplicateMovieClip (_root.explod, bang, _root.fir + 300);
_root.explodebig.start();
}
if (armor < _root[name].damage) {
armor = 0;
} else {
armor = armor - _root[name].damage;
}
_root.healthmusuh = (("armor :" + math.round(armor)) + " /") + armormax;
_root.scr.hape._xscale = (100 * armor) / armormax;
_root.namamusuh = nama;
_root.fir++;
_root[bang]._x = _root[name]._x;
_root[bang]._y = _root[name]._y;
removeMovieClip(_root[name]);
}
n++;
}
}
}
}
Instance of Symbol 244 MovieClip in Frame 23
onClipEvent (load) {
_visible = 1;
_x = random(640);
_y = (-100 - random(20));
speed = 3;
speedx = 2;
level = (_root.level + 20) + random(10);
nama = "boeing 747 Lv. " + level;
armormax = 10000 + (level * 50);
armor = armormax;
fire = math.random();
}
onClipEvent (enterFrame) {
if (!(_root.playscren === 1)) {
removeMovieClip(this);
_visible = 0;
}
if ((_root.pause == 0) && (_root.go == 1)) {
_y = (_y + (speed - dec));
if (armor < 1) {
if (ledak > 1) {
bang = "explode" + _root.fir;
duplicateMovieClip (_root.explod, bang, _root.fir + 201);
_root.fir++;
_root[bang]._x = (_x + 13) - random(26);
_root[bang]._y = (_y + 23) - random(46);
ledak = 0;
}
ledak = ledak + 0.2;
speed = -15;
if (_y < -100) {
_root.nextFrame();
}
} else {
if (_y > 150) {
dec = dec + 5;
speed = -3;
}
if (_y < -30) {
speed = 3;
}
if ((_x < -60) || (_x > 700)) {
speedx = speedx * -1;
}
fire = fire + 0.01;
_x = (_x + speedx);
dec = dec * 0.9;
n = 0;
while (n < 50) {
name = "blast" + n;
if (hit.hittest(_root[name])) {
bang = "explode" + _root.fir;
if (_root[name].damage < 10) {
duplicateMovieClip (_root.explodb, bang, _root.fir + 300);
_root.explodesml.start();
} else {
duplicateMovieClip (_root.explod, bang, _root.fir + 300);
_root.explodebig.start();
}
if (armor < _root[name].damage) {
armor = 0;
} else {
armor = armor - _root[name].damage;
}
_root.healthmusuh = (("armor :" + math.round(armor)) + " /") + armormax;
_root.scr.hape._xscale = (100 * armor) / armormax;
_root.namamusuh = nama;
_root.fir++;
_root[bang]._x = _root[name]._x;
_root[bang]._y = _root[name]._y;
removeMovieClip(_root[name]);
}
n++;
}
}
}
}
Instance of Symbol 110 MovieClip "blasten" in Frame 23
onClipEvent (load) {
_alpha = random(40);
damage = 3;
}
onClipEvent (enterFrame) {
if (!(_root.playscren === 1)) {
removeMovieClip(this);
_visible = 0;
}
if (_root.pause == 0) {
if (hittest(_root.plane)) {
if (_root.plane.shield < damage) {
if (_root.plane.armor < damage) {
_root.plane.armor = 0;
} else {
_root.plane.armor = _root.plane.armor - (damage - _root.plane.shield);
}
_root.plane.shield = 0;
} else {
_root.plane.shield = _root.plane.shield - damage;
}
bang = "explode" + _root.fir;
duplicateMovieClip (_root.explodb, bang, _root.fir + 400);
_root.fir++;
_root[bang]._x = _x;
_root[bang]._y = _y;
_root.explodesml.start();
removeMovieClip(this);
}
_alpha = (_alpha + 5);
_x = (_x + speedx);
_y = (_y + speedy);
}
if ((((_y < 0) || (_y > 480)) || (_x < 0)) || (_x > 640)) {
removeMovieClip(this);
}
}
Instance of Symbol 110 MovieClip "blast" in Frame 23
onClipEvent (load) {
_alpha = random(40);
speed = 20 + (math.random() * 1);
damage = 2 + (_root.level / 1.5);
}
onClipEvent (enterFrame) {
if (!(_root.playscren === 1)) {
removeMovieClip(this);
_visible = 0;
}
if (_root.pause == 0) {
if (_alpha < 100) {
_alpha = (_alpha + 10);
}
_y = (_y - speed);
}
if (_y < 0) {
removeMovieClip(this);
}
}
Instance of Symbol 110 MovieClip "blastx" in Frame 23
onClipEvent (load) {
_alpha = random(40);
damage = 1 + (_root.level / 3);
}
onClipEvent (enterFrame) {
if (!(_root.playscren === 1)) {
removeMovieClip(this);
_visible = 0;
}
if (_root.pause == 0) {
if (_alpha < 100) {
_alpha = (_alpha + 10);
}
_x = (_x + speedx);
_y = (_y + speedy);
}
if ((((_y < 0) || (_y > 480)) || (_x < 0)) || (_x > 640)) {
removeMovieClip(this);
}
}
Instance of Symbol 182 MovieClip "api" in Frame 23
onClipEvent (load) {
_alpha = (_root.scr2.darah._xscale + (math.random() * (100 - _root.scr2.darah._xscale)));
spd = ((5 - random(11)) * (100 - _root.scr2.darah._xscale)) / 100;
spdy = 2 + ((math.random() * (100 - _root.scr2.darah._xscale)) / 10);
uk = _root.scr2.darah._xscale + (math.random() * (100 - _root.scr2.darah._xscale));
_xscale = uk;
_yscale = uk;
_x = _root.plane._x;
_y = (_root.plane._y + 18);
}
onClipEvent (enterFrame) {
if (!(_root.playscren === 1)) {
removeMovieClip(this);
_visible = 0;
}
if (_root.pause == 0) {
_y = (_y + spdy);
_x = (_x + spd);
spd = spd * 0.9;
_alpha = (_alpha - 8);
uk = uk - 5;
_xscale = uk;
_yscale = uk;
if ((_alpha < 0) || (uk < 0)) {
removeMovieClip(this);
_visible = 0;
}
}
}
Instance of Symbol 197 MovieClip "plane" in Frame 23
onClipEvent (load) {
armor = _root.maxhp;
shield = _root.maxhp / 2;
}
onClipEvent (enterFrame) {
if (_root.pause == 0) {
_y = (_y + speedy);
_x = (_x + speed);
speed = speed * 0.9;
speedy = speedy * 0.9;
if (armor > 0) {
if (shield < (_root.maxhp / 2)) {
shield = shield + (0.0001 * _root.maxhp);
}
if (_x < 0) {
speed = speed + 2;
} else if (_x > 640) {
speed = speed - 2;
}
if (_y < 0) {
speedy = speedy + 2;
} else if (_y > 400) {
speedy = speedy - 2;
}
if (Key.isDown(65) || (key.isdown(37))) {
speed = speed - 1.5;
} else if (Key.isDown(68) || (key.isdown(39))) {
speed = speed + 1.5;
}
if (Key.isDown(87) || (key.isdown(38))) {
speedy = speedy - 1.5;
} else if (Key.isDown(83) || (key.isdown(40))) {
speedy = speedy + 1.5;
}
} else {
speedy = speedy + 1;
armor = 0;
if (ledak > 1) {
bang = "explode" + _root.fir;
duplicateMovieClip (_root.explod, bang, _root.fir + 201);
_root.fir++;
_root[bang]._x = (_x + 13) - random(26);
_root[bang]._y = (_y + 23) - random(46);
ledak = 0;
}
ledak = ledak + 0.2;
if (_y > 660) {
_root.scr2._visible = 0;
_root.scr._visible = 0;
_root.gotoAndStop("over");
}
}
}
}
Instance of Symbol 186 MovieClip "missileen" in Frame 23
onClipEvent (load) {
power = 10;
_alpha = 0;
damage = 15 + (_root.level / 3);
targetx = random(640);
targety = 500;
_rotation = ((Math.atan2(targety - _y, targetx - _x) * 180) / Math.PI);
}
onClipEvent (enterFrame) {
if (!(_root.playscren === 1)) {
removeMovieClip(this);
_visible = 0;
}
if (_root.pause == 0) {
if (launch == 1) {
if (_alpha < 100) {
_alpha = (_alpha + 15);
}
_rotation = ((Math.atan2(targety - _y, targetx - _x) * 180) / Math.PI);
speedx = Math.cos(((_rotation - random(5)) * Math.PI) / 180) * power;
speedy = Math.sin(((_rotation + random(5)) * Math.PI) / 180) * power;
_x = (_x + speedx);
_y = (_y + speedy);
if (hit.hittest(_root.plane)) {
if (_root.plane.shield < damage) {
if (_root.plane.armor < damage) {
_root.plane.armor = 0;
} else {
_root.plane.armor = _root.plane.armor - (damage - _root.plane.shield);
}
_root.plane.shield = 0;
} else {
_root.plane.shield = _root.plane.shield - damage;
}
bang = "explode" + _root.fir;
duplicateMovieClip (_root.explod, bang, _root.fir + 400);
_root.fir++;
_root[bang]._x = _x;
_root[bang]._y = _y;
_root.explodebig.start();
removeMovieClip(this);
}
n = 0;
while (n < 50) {
name = "blast" + n;
if (hit.hittest(_root[name])) {
bang = "explode" + _root.fir;
duplicateMovieClip (_root.explod, bang, _root.fir + 201);
_root.fir++;
_root[bang]._x = _root[name]._x;
_root[bang]._y = _root[name]._y;
_root.explodebig.start();
removeMovieClip(_root[name]);
removeMovieClip(this);
}
n++;
}
}
}
if (_y > 480) {
removeMovieClip(this);
}
}
Frame 24
_root.playscren = 0;
Frame 25
stop();
_root.playscren = 0;
Frame 26
stop();
_root.playscren = 0;
Frame 40
stop();
var MochiAd = {getVersion:function () {
return("2.3");
}, showPreGameAd:function (options) {
var _local1 = this;
var DEFAULTS = {clip:_root, ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:16747008, background:16777161, outline:13994812, ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}, ad_failed:function () {
trace("[MochAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_loaded:function (width, height) {
}};
options = MochiAd._parseOptions(options, DEFAULTS);
if ("5cc6f7dfb67f2f08341c831480f7c2a7".length == 0) {
options.ad_started();
options.ad_finished();
} else {
var clip = options.clip;
var ad_msec = 11000;
var ad_timeout = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!MochiAd.load(options)) {
options.ad_failed();
options.ad_finished();
} else {
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var wh = MochiAd._getRes(options);
var _local3 = wh[0];
var h = wh[1];
mc._x = _local3 * 0.5;
mc._y = h * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk._x = _local3 * -0.5;
chk._y = h * -0.5;
var bar = chk.createEmptyMovieClip("_mochiad_bar", 4);
bar._x = 10;
bar._y = h - 20;
var bar_color = options.color;
delete options.color;
var bar_background = options.background;
delete options.background;
var bar_outline = options.outline;
delete options.outline;
var backing = bar.createEmptyMovieClip("_outline", 1);
backing.beginFill(bar_background);
backing.moveTo(0, 0);
backing.lineTo(_local3 - 20, 0);
backing.lineTo(_local3 - 20, 10);
backing.lineTo(0, 10);
backing.lineTo(0, 0);
backing.endFill();
var _local2 = bar.createEmptyMovieClip("_inside", 2);
_local2.beginFill(bar_color);
_local2.moveTo(0, 0);
_local2.lineTo(_local3 - 20, 0);
_local2.lineTo(_local3 - 20, 10);
_local2.lineTo(0, 10);
_local2.lineTo(0, 0);
_local2.endFill();
_local2._xscale = 0;
var outline = bar.createEmptyMovieClip("_outline", 3);
outline.lineStyle(0, bar_outline, 100);
outline.moveTo(0, 0);
outline.lineTo(_local3 - 20, 0);
outline.lineTo(_local3 - 20, 10);
outline.lineTo(0, 10);
outline.lineTo(0, 0);
chk.ad_msec = ad_msec;
chk.ad_timeout = ad_timeout;
chk.started = getTimer();
chk.showing = false;
chk.last_pcnt = 0;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local1 = this;
var _local2 = 100 * (1 - ((getTimer() - _local1.fadeout_start) / _local1.fadeout_time));
if (_local2 > 0) {
_local1._parent._alpha = _local2;
} else {
var _local3 = _local1._parent._parent;
MochiAd.unload(_local3);
delete _local1.onEnterFrame;
}
};
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adjustProgress = function (msec) {
var _local1 = this.mc._mochiad_wait;
_local1.server_control = true;
_local1.started = getTimer();
_local1.ad_msec = msec;
};
chk.onEnterFrame = function () {
var _local1 = this;
var _clip = _local1._parent._parent;
var ad_clip = _local1._parent._mochiad_ctr;
var elapsed = (getTimer() - _local1.started);
var _local3 = false;
var clip_total = _clip.getBytesTotal();
var clip_loaded = _clip.getBytesLoaded();
var clip_pcnt = ((100 * clip_loaded) / clip_total);
var ad_pcnt = ((100 * elapsed) / chk.ad_msec);
var _inside = _local1._mochiad_bar._inside;
var _local2 = Math.min(100, Math.min(clip_pcnt || 0, ad_pcnt));
_local2 = Math.max(_local1.last_pcnt, _local2);
_local1.last_pcnt = _local2;
_inside._xscale = _local2;
if (!chk.showing) {
var total = ad_clip.getBytesTotal();
if ((total > 0) || (typeof(total) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (elapsed > chk.ad_timeout) {
options.ad_failed();
_local3 = true;
}
}
if (elapsed > chk.ad_msec) {
_local3 = true;
}
if (((clip_total > 0) && (clip_loaded >= clip_total)) && (_local3)) {
if (_local1.server_control) {
delete _local1.onEnterFrame;
} else {
_local1.fadeout_start = getTimer();
_local1.onEnterFrame = chk.fadeFunction;
}
}
};
}
}
}, showInterLevelAd:function (options) {
var _local1 = this;
var DEFAULTS = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showTimedAd", ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}, ad_failed:function () {
trace("[MochAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_loaded:function (width, height) {
}};
options = MochiAd._parseOptions(options, DEFAULTS);
var clip = options.clip;
var ad_msec = 11000;
var ad_timeout = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!MochiAd.load(options)) {
options.ad_failed();
options.ad_finished();
} else {
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var wh = MochiAd._getRes(options);
var w = wh[0];
var h = wh[1];
mc._x = w * 0.5;
mc._y = h * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_msec = ad_msec;
chk.ad_timeout = ad_timeout;
chk.started = getTimer();
chk.showing = false;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local1 = this;
var _local2 = 100 * (1 - ((getTimer() - _local1.fadeout_start) / _local1.fadeout_time));
if (_local2 > 0) {
_local1._parent._alpha = _local2;
} else {
var _local3 = _local1._parent._parent;
MochiAd.unload(_local3);
delete _local1.onEnterFrame;
}
};
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adjustProgress = function (msec) {
var _local1 = this.mc._mochiad_wait;
_local1.server_control = true;
_local1.started = getTimer();
_local1.ad_msec = msec - 250;
};
chk.onEnterFrame = function () {
var _local1 = this;
var ad_clip = _local1._parent._mochiad_ctr;
var elapsed = (getTimer() - _local1.started);
var _local2 = false;
if (!chk.showing) {
var _local3 = ad_clip.getBytesTotal();
if ((_local3 > 0) || (typeof(_local3) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (elapsed > chk.ad_timeout) {
options.ad_failed();
_local2 = true;
}
}
if (elapsed > chk.ad_msec) {
_local2 = true;
}
if (_local2) {
if (_local1.server_control) {
delete _local1.onEnterFrame;
} else {
_local1.fadeout_start = getTimer();
_local1.onEnterFrame = _local1.fadeFunction;
}
}
};
}
}, showTimedAd:function (options) {
trace("[MochiAd] DEPRECATED: showTimedAd was renamed to showInterLevelAd in 2.0");
MochiAd.showInterLevelAd(options);
}, showPreloaderAd:function (options) {
trace("[MochiAd] DEPRECATED: showPreloaderAd was renamed to showPreGameAd in 2.0");
MochiAd.showPreGameAd(options);
}, _allowDomains:function (server) {
var _local1 = server.split("/")[2].split(":")[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain("*");
System.security.allowDomain(_local1);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain("*");
System.security.allowInsecureDomain(_local1);
}
}
return(_local1);
}, _loadCommunicator:function (options) {
var _local2 = options;
var _local3 = arguments;
var DEFAULTS = {clip:_root, com_server:"http://x.mochiads.com/com/1/", method:"loadCommunicator", depth:10337, id:"_UNKNOWN_"};
_local2 = MochiAd._parseOptions(_local2, DEFAULTS);
_local2.swfv = _local2.clip.getSWFVersion() || 6;
_local2.mav = MochiAd.getVersion();
var clip = _local2.clip;
var clipname = ("_mochiad_com_" + _local2.id);
if (!MochiAd._isNetworkAvailable()) {
return(null);
}
if (clip[clipname]) {
return(clip[clipname].lc);
}
var server = (_local2.com_server + _local2.id);
MochiAd._allowDomains(server);
delete _local2.id;
delete _local2.com_server;
var depth = _local2.depth;
delete _local2.depth;
var mc = clip.createEmptyMovieClip(clipname, depth);
var lv = mc.createEmptyMovieClip("_mochiad_com", 1);
for (var k in _local2) {
lv[k] = _local2[k];
}
var lc = new LocalConnection();
var name = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
lc.mc = mc;
lc.name = name;
lc.allowDomain = function (d) {
return(true);
};
lc.allowInsecureDomain = lc.allowDomain;
lc.connect(name);
mc.lc = lc;
lv.lc = name;
lc._id = 0;
lc._queue = [];
lc.rpcResult = function (cb_arg) {
var cb = parseInt(cb_arg);
var _local2 = this._callbacks[cb];
if (!_local2) {
} else {
delete this._callbacks[cb];
var _local3 = [];
var _local1 = 2;
while (_local1 < _local2.length) {
_local3.push(_local2[_local1]);
_local1++;
}
_local1 = 1;
while (_local1 < arguments.length) {
_local3.push(arguments[_local1]);
_local1++;
}
var method = _local2[1];
var obj = _local2[0];
if (obj && (typeof(method) == "string")) {
method = obj[method];
}
if (method) {
method.apply(obj, _local3);
}
}
};
lc._didConnect = function (endpoint) {
this._endpoint = endpoint;
var _local3 = this._queue;
delete this._queue;
var ds = this.doSend;
var _local1 = 0;
while (_local1 < _local3.length) {
var _local2 = _local3[_local1];
ds.apply(this, _local2);
_local1++;
}
};
lc.doSend = function (args, cbobj, cbfn) {
var _local2 = arguments;
if (this._endpoint == null) {
var _local3 = [];
var _local1 = 0;
while (_local1 < _local2.length) {
_local3.push(_local2[_local1]);
_local1++;
}
this._queue.push(_local3);
} else {
this._id = this._id + 1;
var id = this._id;
if ((cbfn === undefined) || (cbfn === null)) {
cbfn = cbobj;
}
this._callbacks[id] = [cbobj, cbfn];
var slc = new LocalConnection();
var ss = slc.send(this._endpoint, "rpc", id, args);
}
};
lc._callbacks = {};
lc._callbacks[0] = [lc, "_didConnect"];
lv.st = getTimer();
lv.loadMovie(server + ".swf", "POST");
return(lc);
}, fetchHighScores:function (options, callbackObj, callbackMethod) {
var _local2 = options;
var _local1 = MochiAd._loadCommunicator({id:_local2.id});
if (!_local1) {
return(false);
}
var fncall = ["fetchHighScores", _local2];
_local1.doSend(["fetchHighScores", _local2], callbackObj, callbackMethod);
return(true);
}, sendHighScore:function (options, callbackObj, callbackMethod) {
var _local2 = options;
var _local1 = MochiAd._loadCommunicator({id:_local2.id});
if (!_local1) {
return(false);
}
var fncall = ["sendHighScore", _local2];
_local1.doSend(["sendHighScore", _local2], callbackObj, callbackMethod);
return(true);
}, load:function (options) {
var _local1 = options;
var DEFAULTS = {clip:_root, server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"};
_local1 = MochiAd._parseOptions(_local1, DEFAULTS);
_local1.swfv = _local1.clip.getSWFVersion() || 6;
_local1.mav = MochiAd.getVersion();
var clip = _local1.clip;
if (!MochiAd._isNetworkAvailable()) {
return(null);
}
if (clip._mochiad_loaded) {
return(null);
}
var depth = _local1.depth;
delete _local1.depth;
var mc = clip.createEmptyMovieClip("_mochiad", depth);
var wh = MochiAd._getRes(_local1);
_local1.res = (wh[0] + "x") + wh[1];
_local1.server = _local1.server + _local1.id;
delete _local1.id;
clip._mochiad_loaded = true;
var _local2 = mc.createEmptyMovieClip("_mochiad_ctr", 1);
for (var k in _local1) {
_local2[k] = _local1[k];
}
var server = _local2.server;
delete _local2.server;
var hostname = MochiAd._allowDomains(server);
mc.onEnterFrame = function () {
var _local1 = this;
if (_local1._mochiad_ctr._url != _local1._url) {
_local1.onEnterFrame = function () {
var _local1 = this;
if (!_local1._mochiad_ctr) {
delete _local1.onEnterFrame;
MochiAd.unload(_local1._parent);
}
};
}
};
var _local3 = new LocalConnection();
var name = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local3.mc = mc;
_local3.name = name;
_local3.hostname = hostname;
_local3.allowDomain = function (d) {
return(true);
};
_local3.allowInsecureDomain = _local3.allowDomain;
_local3.connect(name);
mc.lc = _local3;
_local2.lc = name;
_local2.st = getTimer();
_local2.loadMovie(server + ".swf", "POST");
return(mc);
}, unload:function (clip) {
var _local1 = clip;
if (typeof(_local1) == "undefined") {
_local1 = _root;
}
if (_local1.clip && (_local1.clip._mochiad)) {
_local1 = _local1.clip;
}
if (!_local1._mochiad) {
return(false);
}
_local1._mochiad.removeMovieClip();
delete _local1._mochiad_loaded;
delete _local1._mochiad;
return(true);
}, _isNetworkAvailable:function () {
if (System.security) {
var _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}, _getRes:function (options) {
var _local3 = options.clip.getBounds();
var _local2 = 0;
var _local1 = 0;
if (typeof(options.res) != "undefined") {
var xy = options.res.split("x");
_local2 = parseFloat(xy[0]);
_local1 = parseFloat(xy[1]);
} else {
_local2 = _local3.xMax - _local3.xMin;
_local1 = _local3.yMax - _local3.yMin;
}
if ((_local2 == 0) || (_local1 == 0)) {
_local2 = Stage.width;
_local1 = Stage.height;
}
return([_local2, _local1]);
}, _parseOptions:function (options, defaults) {
var _local3 = {};
for (var k in defaults) {
_local3[k] = defaults[k];
}
if (options) {
for (var k in options) {
_local3[k] = options[k];
}
}
if (_root.mochiad_options) {
var pairs = _root.mochiad_options.split("&");
var _local1 = 0;
while (_local1 < pairs.length) {
var _local2 = pairs[_local1].split("=");
_local3[unescape(_local2[0])] = unescape(_local2[1]);
_local1++;
}
}
if (_local3.id == "test") {
trace("[MochiAd] WARNING: Using the MochiAds test identifier, make sure to use the code from your dashboard, not this example!");
}
return(_local3);
}, _:null};
MochiAd.showPreloaderAd({id:"0e7c24bda8bdb752", res:"640x480"});
Frame 50
_root.gotoAndPlay(2);
Symbol 17 MovieClip Frame 118
_root.nextFrame();
Symbol 22 Button
on (release) {
nextFrame();
}
Symbol 27 MovieClip Frame 64
gotoAndPlay (1);
Symbol 33 Button
on (release) {
gotoAndStop ("option");
}
Symbol 36 Button
on (release) {
gotoAndStop ("credit");
}
Symbol 47 Button
on (release) {
getURL ("http://www.yougame.com", "_top");
}
Symbol 52 Button
on (release) {
getURL ("http://www.yougame.com", "_top");
}
Symbol 53 Button
on (release) {
gotoAndStop ("play");
}
Symbol 54 Button
on (release) {
_quality = "HIGH";
}
Symbol 56 Button
on (release) {
_quality = "MEDIUM";
}
Symbol 58 Button
on (release) {
_quality = "LOW";
}
Symbol 61 Button
on (release) {
gotoAndPlay ("mainmenu");
}
Symbol 73 MovieClip Frame 1
stop();
Symbol 94 MovieClip Frame 1
if (!(_root.form === 1)) {
page = "f" + _root.form;
gotoAndStop(page);
} else {
stop();
_root.form = 1;
}
Symbol 94 MovieClip Frame 9
stop();
Symbol 94 MovieClip Frame 13
stop();
Symbol 94 MovieClip Frame 17
stop();
Symbol 94 MovieClip Frame 22
stop();
Symbol 94 MovieClip Frame 27
stop();
Symbol 94 MovieClip Frame 31
stop();
Instance of Symbol 76 MovieClip "darah" in Symbol 96 MovieClip Frame 1
onClipEvent (load) {
_root.lvlvw = "level " + _root.level;
_root.expvw = (("exp: " + math.floor(_root.exp)) + " /") + math.ceil(_root.expmax);
}
onClipEvent (enterFrame) {
_xscale = ((100 * _root.plane.armor) / _root.maxhp);
if (_root.exp > _root.expmax) {
_root.level++;
_root.lvlvw = "level " + _root.level;
_root.maxhp++;
_root.plane.armor++;
_root.exp = _root.exp - _root.expmax;
_root.expmax = _root.expmax * 1.3;
}
if ((_root.level > (_root.form * 4)) && (_root.form < 7)) {
if (_root.form == 1) {
_root.from = "garuda";
_root.msg = "garuda evolution: dual vulcans";
} else if (_root.form == 2) {
_root.from = "garuda";
_root.msg = "garuda evolution: triple vulcans";
} else if (_root.form == 3) {
_root.from = "garuda";
_root.msg = "garuda evolution: vulcan -> laser cannon [improved damage]";
} else if (_root.form == 4) {
_root.from = "garuda";
_root.msg = "garuda evolution: turret [aim turret with mouse]";
} else if (_root.form == 5) {
_root.from = "garuda";
_root.msg = "garuda evolution: missile launcher [fire random missiles]";
} else if (_root.form == 6) {
_root.from = "garuda";
_root.msg = "garuda evolution: dual guided missile launcher [guide missiles with mouse]";
}
_root.scr.msgvw.go = 1;
_root.evoscr.play();
_root.plane.play();
}
_root.expvw = (("exp: " + math.floor(_root.exp)) + " /") + math.ceil(_root.expmax);
_parent.expbar._xscale = (100 * _root.exp) / _root.expmax;
}
Instance of Symbol 76 MovieClip in Symbol 96 MovieClip Frame 1
onClipEvent (enterFrame) {
_xscale = ((200 * _root.plane.shield) / _root.maxhp);
}
Symbol 107 MovieClip Frame 37
go = 0;
Instance of Symbol 100 MovieClip "hape" in Symbol 108 MovieClip Frame 1
onClipEvent (load) {
_xscale = 0;
}
Instance of Symbol 107 MovieClip "msgvw" in Symbol 108 MovieClip Frame 1
onClipEvent (enterFrame) {
if (go == 1) {
nextFrame();
} else {
prevFrame();
}
}
Symbol 150 MovieClip Frame 1
stop();
Instance of Symbol 115 MovieClip in Symbol 150 MovieClip Frame 1
onClipEvent (enterFrame) {
_rotation = (_rotation + 5);
}
Symbol 150 MovieClip Frame 19
_root.exp = _root.exp + (level * 5);
name = "expview" + _root.expjml;
duplicateMovieClip ("_root.expview", name, 820 + _root.expjml);
_root.expjml++;
_root[name].xp = "exp+ " + (level * 5);
_root[name]._x = 588;
_root[name]._y = 71;
if (raja == 1) {
_root.jmlraja--;
}
removeMovieClip(this);
stop();
Symbol 151 MovieClip Frame 18
removeMovieClip(this);
stop();
Symbol 170 MovieClip Frame 1
stop();
Instance of Symbol 115 MovieClip in Symbol 170 MovieClip Frame 1
onClipEvent (enterFrame) {
_rotation = (_rotation + 5);
}
Symbol 170 MovieClip Frame 19
_root.exp = _root.exp + level;
name = "expview" + _root.expjml;
duplicateMovieClip ("_root.expview", name, 820 + _root.expjml);
_root.expjml++;
_root[name].xp = "exp+ " + level;
_root[name]._x = 588;
_root[name]._y = 71;
removeMovieClip(this);
stop();
Symbol 177 MovieClip Frame 1
stop();
_root.pause = 0;
Symbol 177 MovieClip Frame 2
_root.pause = 1;
Symbol 177 MovieClip Frame 11
stop();
Instance of Symbol 176 MovieClip in Symbol 177 MovieClip Frame 11
onClipEvent (load) {
start = _x;
}
onClipEvent (enterFrame) {
_x = (start + random(640));
}
Instance of Symbol 176 MovieClip in Symbol 177 MovieClip Frame 11
onClipEvent (load) {
start = _x;
}
onClipEvent (enterFrame) {
_x = (start + random(640));
}
Instance of Symbol 185 MovieClip in Symbol 186 MovieClip Frame 1
onClipEvent (enterFrame) {
_xscale = (50 + random(50));
_alpha = (30 + random(70));
}
Instance of Symbol 194 MovieClip in Symbol 196 MovieClip Frame 1
onClipEvent (load) {
_visible = 0;
}
onClipEvent (enterFrame) {
if ((_root.gofire == 1) && (_root.pause == 0)) {
gotoAndStop(random(7));
_alpha = (50 + random(50));
_visible = 1;
} else {
_visible = 0;
}
}
Symbol 197 MovieClip Frame 1
if (!(form === 1)) {
page = "f" + _root.form;
gotoAndStop(page);
} else {
_root.form = 1;
stop();
}
Instance of Symbol 194 MovieClip in Symbol 197 MovieClip Frame 1
onClipEvent (load) {
_visible = 0;
}
onClipEvent (enterFrame) {
if (((_root.gofire == 1) && (_root.pause == 0)) && (_parent.armor > 0)) {
gotoAndStop(random(7));
_alpha = (50 + random(50));
_visible = 1;
} else {
_visible = 0;
}
}
Symbol 197 MovieClip Frame 2
_root.form = 0;
_root.scr2.dummy.play();
Symbol 197 MovieClip Frame 9
stop();
_root.form = 2;
Instance of Symbol 194 MovieClip in Symbol 197 MovieClip Frame 9
onClipEvent (load) {
_visible = 0;
}
onClipEvent (enterFrame) {
if (((_root.gofire == 1) && (_root.pause == 0)) && (_parent.armor > 0)) {
gotoAndStop(random(7));
_alpha = (50 + random(50));
_visible = 1;
} else {
_visible = 0;
}
}
Instance of Symbol 194 MovieClip in Symbol 197 MovieClip Frame 9
onClipEvent (load) {
_visible = 0;
}
onClipEvent (enterFrame) {
if (((_root.gofire == 1) && (_root.pause == 0)) && (_parent.armor > 0)) {
gotoAndStop(random(7));
_alpha = (50 + random(50));
_visible = 1;
} else {
_visible = 0;
}
}
Symbol 197 MovieClip Frame 10
_root.form = 0;
_root.scr2.dummy.play();
Symbol 197 MovieClip Frame 13
stop();
_root.form = 3;
Instance of Symbol 194 MovieClip in Symbol 197 MovieClip Frame 13
onClipEvent (load) {
_visible = 0;
}
onClipEvent (enterFrame) {
if (((_root.gofire == 1) && (_root.pause == 0)) && (_parent.armor > 0)) {
gotoAndStop(random(7));
_alpha = (50 + random(50));
_visible = 1;
} else {
_visible = 0;
}
}
Instance of Symbol 194 MovieClip in Symbol 197 MovieClip Frame 13
onClipEvent (load) {
_visible = 0;
}
onClipEvent (enterFrame) {
if (((_root.gofire == 1) && (_root.pause == 0)) && (_parent.armor > 0)) {
gotoAndStop(random(7));
_alpha = (50 + random(50));
_visible = 1;
} else {
_visible = 0;
}
}
Instance of Symbol 194 MovieClip in Symbol 197 MovieClip Frame 13
onClipEvent (load) {
_visible = 0;
}
onClipEvent (enterFrame) {
if (((_root.gofire == 1) && (_root.pause == 0)) && (_parent.armor > 0)) {
gotoAndStop(random(7));
_alpha = (50 + random(50));
_visible = 1;
} else {
_visible = 0;
}
}
Symbol 197 MovieClip Frame 14
_root.form = 0;
_root.scr2.dummy.play();
Symbol 197 MovieClip Frame 17
stop();
_root.form = 4;
Instance of Symbol 194 MovieClip in Symbol 197 MovieClip Frame 17
onClipEvent (load) {
_visible = 0;
}
onClipEvent (enterFrame) {
if (((_root.gofire == 1) && (_root.pause == 0)) && (_parent.armor > 0)) {
gotoAndStop(random(7));
_alpha = (50 + random(50));
_visible = 1;
} else {
_visible = 0;
}
}
Instance of Symbol 194 MovieClip in Symbol 197 MovieClip Frame 17
onClipEvent (load) {
_visible = 0;
}
onClipEvent (enterFrame) {
if (((_root.gofire == 1) && (_root.pause == 0)) && (_parent.armor > 0)) {
gotoAndStop(random(7));
_alpha = (50 + random(50));
_visible = 1;
} else {
_visible = 0;
}
}
Instance of Symbol 194 MovieClip in Symbol 197 MovieClip Frame 17
onClipEvent (load) {
_visible = 0;
}
onClipEvent (enterFrame) {
if (((_root.gofire == 1) && (_root.pause == 0)) && (_parent.armor > 0)) {
gotoAndStop(random(7));
_alpha = (10 + random(30));
_visible = 1;
} else {
_visible = 0;
}
}
Symbol 197 MovieClip Frame 18
_root.form = 0;
_root.scr2.dummy.play();
Instance of Symbol 194 MovieClip in Symbol 197 MovieClip Frame 18
onClipEvent (load) {
_visible = 0;
}
onClipEvent (enterFrame) {
if ((_root.gofire == 1) && (_root.pause == 0)) {
gotoAndStop(random(7));
_alpha = (50 + random(50));
_visible = 1;
} else {
_visible = 0;
}
}
Symbol 197 MovieClip Frame 22
stop();
_root.form = 5;
Instance of Symbol 194 MovieClip in Symbol 197 MovieClip Frame 22
onClipEvent (load) {
_visible = 0;
}
onClipEvent (enterFrame) {
if (((_root.gofire == 1) && (_root.pause == 0)) && (_parent.armor > 0)) {
gotoAndStop(random(7));
_alpha = (50 + random(50));
_visible = 1;
} else {
_visible = 0;
}
}
Instance of Symbol 194 MovieClip in Symbol 197 MovieClip Frame 22
onClipEvent (load) {
_visible = 0;
}
onClipEvent (enterFrame) {
if (((_root.gofire == 1) && (_root.pause == 0)) && (_parent.armor > 0)) {
gotoAndStop(random(7));
_alpha = (50 + random(50));
_visible = 1;
} else {
_visible = 0;
}
}
Instance of Symbol 194 MovieClip in Symbol 197 MovieClip Frame 22
onClipEvent (load) {
_visible = 0;
}
onClipEvent (enterFrame) {
if (((_root.gofire == 1) && (_root.pause == 0)) && (_parent.armor > 0)) {
gotoAndStop(random(7));
_alpha = (10 + random(30));
_visible = 1;
} else {
_visible = 0;
}
}
Instance of Symbol 196 MovieClip "turret" in Symbol 197 MovieClip Frame 22
onClipEvent (enterFrame) {
_rotation = ((Math.atan2(_root._ymouse - _parent._y, _root._xmouse - _parent._x) * 180) / Math.PI);
}
Symbol 197 MovieClip Frame 23
_root.form = 0;
_root.scr2.dummy.play();
Symbol 197 MovieClip Frame 27
stop();
_root.form = 6;
Instance of Symbol 194 MovieClip in Symbol 197 MovieClip Frame 27
onClipEvent (load) {
_visible = 0;
}
onClipEvent (enterFrame) {
if (((_root.gofire == 1) && (_root.pause == 0)) && (_parent.armor > 0)) {
gotoAndStop(random(7));
_alpha = (50 + random(50));
_visible = 1;
} else {
_visible = 0;
}
}
Instance of Symbol 194 MovieClip in Symbol 197 MovieClip Frame 27
onClipEvent (load) {
_visible = 0;
}
onClipEvent (enterFrame) {
if (((_root.gofire == 1) && (_root.pause == 0)) && (_parent.armor > 0)) {
gotoAndStop(random(7));
_alpha = (50 + random(50));
_visible = 1;
} else {
_visible = 0;
}
}
Instance of Symbol 194 MovieClip in Symbol 197 MovieClip Frame 27
onClipEvent (load) {
_visible = 0;
}
onClipEvent (enterFrame) {
if (((_root.gofire == 1) && (_root.pause == 0)) && (_parent.armor > 0)) {
gotoAndStop(random(7));
_alpha = (10 + random(30));
_visible = 1;
} else {
_visible = 0;
}
}
Symbol 197 MovieClip Frame 28
_root.form = 0;
_root.scr2.dummy.play();
Symbol 197 MovieClip Frame 31
stop();
_root.form = 7;
Instance of Symbol 194 MovieClip in Symbol 197 MovieClip Frame 31
onClipEvent (load) {
_visible = 0;
}
onClipEvent (enterFrame) {
if (((_root.gofire == 1) && (_root.pause == 0)) && (_parent.armor > 0)) {
gotoAndStop(random(7));
_alpha = (50 + random(50));
_visible = 1;
} else {
_visible = 0;
}
}
Instance of Symbol 194 MovieClip in Symbol 197 MovieClip Frame 31
onClipEvent (load) {
_visible = 0;
}
onClipEvent (enterFrame) {
if (((_root.gofire == 1) && (_root.pause == 0)) && (_parent.armor > 0)) {
gotoAndStop(random(7));
_alpha = (50 + random(50));
_visible = 1;
} else {
_visible = 0;
}
}
Instance of Symbol 194 MovieClip in Symbol 197 MovieClip Frame 31
onClipEvent (load) {
_visible = 0;
}
onClipEvent (enterFrame) {
if (((_root.gofire == 1) && (_root.pause == 0)) && (_parent.armor > 0)) {
gotoAndStop(random(7));
_alpha = (10 + random(30));
_visible = 1;
} else {
_visible = 0;
}
}
Symbol 203 MovieClip Frame 1
stop();
Symbol 203 MovieClip Frame 19
_root.exp = _root.exp + (level * 9);
name = "expview" + _root.expjml;
duplicateMovieClip ("_root.expview", name, 820 + _root.expjml);
_root.expjml++;
_root[name].xp = "exp+ " + (level * 9);
_root[name]._x = 588;
_root[name]._y = 71;
if (raja == 1) {
_root.jmlraja--;
}
removeMovieClip(this);
stop();
Symbol 208 MovieClip Frame 118
gotoAndPlay (1);
Symbol 211 MovieClip Frame 1
stop();
Symbol 211 MovieClip Frame 2
_root.exp = _root.exp + (level * 25);
name = "expview" + _root.expjml;
duplicateMovieClip ("_root.expview", name, 820 + _root.expjml);
_root.expjml++;
_root[name].xp = "exp+ " + (level * 25);
_root[name]._x = 588;
_root[name]._y = 71;
if (raja == 1) {
_root.jmlraja--;
}
_root.info = "bird eye";
_root.msg = _root.jmlraja + " destroyers remaining";
_root.scr.msgvw.go = 1;
removeMovieClip(this);
stop();
Instance of Symbol 151 MovieClip "explod" in Symbol 211 MovieClip Frame 2
onClipEvent (load) {
_alpha = (30 + random(70));
}
onClipEvent (enterFrame) {
if (!(_root.playscren === 1)) {
removeMovieClip(this);
_visible = 0;
}
}
Instance of Symbol 151 MovieClip "explodb" in Symbol 211 MovieClip Frame 2
onClipEvent (load) {
_alpha = (30 + random(70));
}
onClipEvent (enterFrame) {
if (!(_root.playscren === 1)) {
removeMovieClip(this);
_visible = 0;
}
}
Instance of Symbol 151 MovieClip "explodb" in Symbol 211 MovieClip Frame 2
onClipEvent (load) {
_alpha = (30 + random(70));
}
onClipEvent (enterFrame) {
if (!(_root.playscren === 1)) {
removeMovieClip(this);
_visible = 0;
}
}
Instance of Symbol 151 MovieClip "explodb" in Symbol 211 MovieClip Frame 2
onClipEvent (load) {
_alpha = (30 + random(70));
}
onClipEvent (enterFrame) {
if (!(_root.playscren === 1)) {
removeMovieClip(this);
_visible = 0;
}
}
Instance of Symbol 151 MovieClip "explod" in Symbol 211 MovieClip Frame 2
onClipEvent (load) {
_alpha = (30 + random(70));
}
onClipEvent (enterFrame) {
if (!(_root.playscren === 1)) {
removeMovieClip(this);
_visible = 0;
}
}
Symbol 217 MovieClip Frame 118
gotoAndPlay (1);
Symbol 222 MovieClip Frame 1
stop();
Symbol 222 MovieClip Frame 19
_root.exp = _root.exp + (level * 23);
name = "expview" + _root.expjml;
duplicateMovieClip ("_root.expview", name, 820 + _root.expjml);
_root.expjml++;
_root[name].xp = "exp+ " + (level * 23);
_root[name]._x = 588;
_root[name]._y = 71;
if (raja == 1) {
_root.jmlraja--;
}
removeMovieClip(this);
stop();
Symbol 224 MovieClip Frame 1
stop();
Symbol 224 MovieClip Frame 19
_root.exp = _root.exp + (level * 23);
name = "expview" + _root.expjml;
duplicateMovieClip ("_root.expview", name, 820 + _root.expjml);
_root.expjml++;
_root[name].xp = "exp+ " + (level * 23);
_root[name]._x = 588;
_root[name]._y = 71;
if (raja == 1) {
_root.jmlraja--;
}
removeMovieClip(this);
stop();
Symbol 228 MovieClip Frame 1
stop();
Symbol 228 MovieClip Frame 19
_root.exp = _root.exp + (level * 45);
name = "expview" + _root.expjml;
duplicateMovieClip ("_root.expview", name, 820 + _root.expjml);
_root.expjml++;
_root[name].xp = "exp+ " + (level * 45);
_root[name]._x = 588;
_root[name]._y = 71;
if (raja == 1) {
_root.jmlraja--;
}
removeMovieClip(this);
stop();
Symbol 230 MovieClip Frame 1
stop();
Symbol 230 MovieClip Frame 19
_root.exp = _root.exp + (level * 54);
name = "expview" + _root.expjml;
duplicateMovieClip ("_root.expview", name, 820 + _root.expjml);
_root.expjml++;
_root[name].xp = "exp+ " + (level * 54);
_root[name]._x = 588;
_root[name]._y = 71;
if (raja == 1) {
_root.jmlraja--;
}
removeMovieClip(this);
stop();
Symbol 243 MovieClip Frame 118
fire = 1;
Symbol 243 MovieClip Frame 132
fire = 0;
Symbol 244 MovieClip Frame 1
stop();
Instance of Symbol 243 MovieClip in Symbol 244 MovieClip Frame 1
onClipEvent (load) {
damage = 5;
}
onClipEvent (enterFrame) {
if (!(_root.playscren === 1)) {
removeMovieClip(this);
_visible = 0;
}
if ((_root.pause == 0) && (_root.go == 1)) {
play();
if (hittest(_root.plane) && (fire == 1)) {
if (_root.plane.shield < damage) {
armor--;
_root.plane.armor = _root.plane.armor - (damage - _root.plane.shield);
_root.plane.shield = 0;
} else {
_root.plane.shield = _root.plane.shield - damage;
}
bang = "explode" + _root.fir;
duplicateMovieClip (_root.explod, bang, _root.fir + 400);
_root.fir++;
_root[bang]._x = _root.plane._x + (30 - random(60));
_root[bang]._y = _root.plane._y + (40 - random(80));
_root.explodesml.start();
removeMovieClip(this);
}
} else {
stop();
}
if ((((_y < 0) || (_y > 480)) || (_x < 0)) || (_x > 640)) {
removeMovieClip(this);
}
}
Symbol 249 Button
on (release) {
gotoAndStop ("intro");
}
Symbol 253 Button
on (release) {
gotoAndStop(lanjut);
}
Symbol 277 MovieClip Frame 1
Symbol 277 MovieClip Frame 198
_root.gotoAndStop("splash2");