Frame 1
fscommand ("trapallkeys", 1);
fscommand ("allowscale", 0);
stage.showMenu = false;
duplicateMovieClip ("fr", "frame", 100001);
Frame 3
var loadAmount = _totalframes;
if (_framesloaded == loadAmount) {
gotoAndPlay (15);
} else {
loaded = Math.round(getBytesLoaded() / 1024);
total = Math.round(getBytesTotal() / 1024);
percent = Math.round((loaded / total) * 100);
Set("/:oxy", percent);
prevFrame();
play();
}
Frame 15
call("fadescreen");
stop();
Frame 21
stopAllSounds();
call("fadescreen");
stop();
Frame 29
call("fadescreen");
stop();
Frame 34
score = 0;
lives = 3;
energy = 100;
if (/:player == 1) {
allarm = [2];
mapno = 1;
} else {
allarm = [7];
mapno = 4;
}
armindex = 0;
gotoAndPlay (54);
Frame 41
reset();
score = 0;
energy = 100;
if (/:player != 1) {
allarm = [7];
} else {
allarm = [2];
}
armindex = 0;
gotoAndPlay (54);
Frame 48
reset();
energy = 100;
if (/:player != 1) {
mapno = 3;
} else {
mapno = 2;
}
removeMovieClip("mapnow");
gotoAndPlay (54);
Frame 54
stopAllSounds();
call("fadescreen");
lx1 = [];
lx2 = [];
ly1 = [];
ly2 = [];
ox1 = [];
ox2 = [];
oy1 = [];
oy2 = [];
alle = [];
alletipe = [];
arm = allarm[armindex];
apower = [0, 10, 10, 0, 20, 20, 20, 10];
espeed = [0, 1, 2, 0, 3, 0, 6, 3, 0, 0];
eenergy = [0, 120, 10, 10, 10, 30, 50, 300, 0, 500];
edamage = [0, 5, 5, 0, 5, 5, 5, 10, 5, 10];
emissiledamage = 7;
emissilespeed = 12;
ebulletdamage = 5;
ebulletspeed = 10;
bullet1speed = 10;
bullet1power = 10;
multipower = 10;
multispeed = 10;
flyenemy = "efly" + /:mapno;
flyenemydelay = 500;
attachmovie("map" + /:mapno, "mapnow", 120);
mapnow._x = 0;
mapnow._y = 0;
gotoAndPlay (60);
MovieClip.prototype.rectangle = function (x, y, w, h) {
var c = _root.createEmptyMovieClip("c", 10154);
c.lineStyle(1, 43520, 100);
c.beginFill(13421568, 100);
c.moveTo(x, y);
c.lineTo(x + w, y);
c.lineTo(x + w, y + h);
c.lineTo(x, y + h);
c.endFill();
};
movieclip.prototype.kneel = function (a) {
if (a) {
Set("/:kneel", 1);
Set("/:phei", /:pheikneel);
gp.gotoAndStop("kneel" + /:hd);
} else {
Set("/:kneel", 0);
Set("/:phei", /:pheistand);
}
};
movieclip.prototype.reset = function () {
_root._x = 0;
_root._y = 0;
var i = 0;
while (i < /:still.length) {
_root[/:still[i]]._x = /:stillxpos[i];
_root[/:still[i]]._y = /:stillypos[i];
i++;
}
var i = 0;
while (i < /:allb.length) {
var it = /:allb.pop();
_root[it].removeMovieClip();
i++;
}
};
movieclip.prototype.enemyshoot = function (n, x, y) {
_root.attachMovie(n, "b" + /:b, /:b);
/:allb.push("b" + /:b);
var it = _root["b" + /:b];
it._x = x;
it._y = y;
/:b++;
if (/:b >= 2000) {
Set("/:b", 1000);
}
};
movieclip.prototype.playershoot = function (n, x, y, xs) {
_root.attachMovie(n, "b" + /:b, /:b);
/:allb.push("b" + /:b);
var it = _root["b" + /:b];
it._x = x;
it._y = y;
it.xs = xs;
/:b++;
if (/:b >= 2000) {
Set("/:b", 1000);
}
};
movieclip.prototype.initobj = function () {
/:ox1.push(math.floor(this._x + this.z._x));
/:ox2.push(math.floor((this._x + this.z._x) + this.z._width));
/:oy1.push(math.floor(this._y + this.z._y));
/:oy2.push(math.floor((this._y + this.z._y) + this.z._height));
var i = (/:ox1.length - 1);
while (i > 0) {
var temp1 = /:ox1[i];
var temp2 = /:ox1[i - 1];
if (temp1 < temp2) {
/:ox1[i] = temp2;
/:ox1[i - 1] = temp1;
var temp = /:ox2[i];
/:ox2[i] = /:ox2[i - 1];
/:ox2[i - 1] = temp;
var temp = /:oy1[i];
/:oy1[i] = /:oy1[i - 1];
/:oy1[i - 1] = temp;
var temp = /:oy2[i];
/:oy2[i] = /:oy2[i - 1];
/:oy2[i - 1] = temp;
} else {
return;
}
i--;
}
};
movieclip.prototype.initland = function (yspace) {
/:lx1.push(math.floor(this._x));
/:lx2.push(math.floor(this._x + this._width));
/:ly1.push(math.floor(this._y + yspace));
/:ly2.push(math.floor((this._y + yspace) + this._height));
var i = (/:lx1.length - 1);
while (i > 0) {
var temp1 = /:lx1[i];
var temp2 = /:lx1[i - 1];
if (temp1 < temp2) {
/:lx1[i] = temp2;
/:lx1[i - 1] = temp1;
var temp = /:lx2[i];
/:lx2[i] = /:lx2[i - 1];
/:lx2[i - 1] = temp;
var temp = /:ly1[i];
/:ly1[i] = /:ly1[i - 1];
/:ly1[i - 1] = temp;
var temp = /:ly2[i];
/:ly2[i] = /:ly2[i - 1];
/:ly2[i - 1] = temp;
} else {
return;
}
i--;
}
};
movieclip.prototype.initenemy = function () {
Set("/:enemyname", /:enemyname + 1);
this._name = "e" + /:enemyname;
/:alle.push(this._name);
/:alletipe.push(this.tipe);
this._visible = 0;
this.energy = /:eenergy[this.tipe];
};
movieclip.prototype.initenemy2 = function () {
if (this.xmin == undefined) {
var tem = findlimits(this._x, this._y);
this.xmin = tem.xmin + this.wid;
this.xmax = tem.xmax - this.wid;
}
delete this.onenterframe;
this.onenterframe = function () {
if (math.abs(gp._x - this._x) < 500) {
this._visible = 1;
this.gotoAndPlay(3);
}
};
this._visible = 0;
this.gotoAndStop("s");
};
movieclip.prototype.findlimits = function (x, y) {
var spot = 999;
var i = 0;
while (i < /:lx2.length) {
if (((x < /:lx2[i]) and (x > /:lx1[i])) and (math.abs(y - /:ly1[i]) < 5)) {
var spot = i;
var tmin = /:lx1[i];
var tmax = /:lx2[i];
break;
}
i++;
}
if (spot != 999) {
if (((spot - 1) >= 0) and ((spot + 1) < /:lx2.length)) {
if ((/:lx2[spot - 1] > tmin) and (/:ly1[spot - 1] < y)) {
tmin = /:lx2[spot - 1];
}
if ((/:lx1[spot + 1] < tmax) and (/:ly1[spot + 1] < y)) {
tmax = /:lx1[spot + 1];
}
}
} else {
var i = 0;
while (i < /:ox1.length) {
if (((x < /:ox2[i]) and (x > /:ox1[i])) and (math.abs(y - /:oy1[i]) < 10)) {
var spot = i;
var tmin = /:ox1[i];
var tmax = /:ox2[i];
break;
}
i++;
}
}
return({xmin:tmin, xmax:tmax});
};
movieclip.prototype.updatestat = function () {
if (/:energy > 0) {
_root.stat.energybar.bar._xscale = /:energy;
} else {
_root.stat.energybar.bar._xscale = 1;
_root.gotoAndPlay("end");
}
};
movieclip.prototype.updatearm = function () {
_root.stat.arm.gotoAndStop(/:arm);
};
movieclip.prototype.cekhit = function (x, y, w, h) {
var res = 0;
if (!/:inv) {
if (math.abs(x - gp._x) < (w + /:pwid)) {
if ((((y - gp._y) > 0) and ((y - gp._y) < h)) or (((gp._y - y) > 0) and ((gp._y - y) < /:phei))) {
res = 1;
}
}
}
return(res);
};
movieclip.prototype.cekboxcoll = function (ex, ey, ew, eh, sx, sy, sw, sh) {
var res = 0;
if (math.abs(ex - sx) < (ew + sw)) {
if ((((ey - sy) > 0) and ((ey - sy) < eh)) or (((sy - ey) > 0) and ((sy - ey) < sh))) {
res = 1;
}
}
return(res);
};
movieclip.prototype.cekweaponcollbox = function (sx, sy, sw, sh, power, point) {
var i = 0;
while (i < /:alle.length) {
var it = /:map[/:alle[i]];
if (it._visible) {
if (cekboxcoll(it._x, it._y, it.wid, it.hei, sx, sy, sw, sh)) {
Set("/:score", /:score + point);
it.energy = it.energy - power;
Set("/:score", /:score + (power * 10));
it.attachMovie("blinkenemy", "blink", 1001);
_root.zkena2.start();
}
}
i++;
}
};
movieclip.prototype.cekweaponcollpoint = function (x, y, power, point) {
var i = 0;
while (i < /:alle.length) {
var it = /:map[/:alle[i]];
if (it._visible) {
if (cekInBox(x, y, it._x - it.wid, it._x + it.wid, it._y - it.hei, it._y)) {
Set("/:score", /:score + point);
it.energy = it.energy - power;
Set("/:score", /:score + (power * 10));
it.attachMovie("blinkenemy", "blink", 1001);
}
}
i++;
}
};
movieclip.prototype.wander = function () {
this.nx = this._x + this.xs;
if (this.nx > this.xmax) {
this.nx = this.xmax;
this.xs = -math.abs(this.xs);
this.a._xscale = -100;
} else if (this.nx < this.xmin) {
this.nx = this.xmin;
this.xs = math.abs(this.xs);
this.a._xscale = 100;
}
this._x = this.nx;
};
movieclip.prototype.shiftbg = function (xs) {
gbg.nx = gbg.pic._x + xs;
if (gbg.nx < (gbg.startx - gbg.wid)) {
gbg.nx = gbg.nx + gbg.wid;
}
if (gbg.nx > gbg.startx) {
gbg.nx = gbg.nx - gbg.wid;
}
gbg.pic._x = gbg.nx;
};
movieclip.prototype.cekInBox = function (x, y, bx1, bx2, by1, by2) {
var res = 0;
if (x > bx1) {
if (x < bx2) {
if (y > by1) {
if (y < by2) {
res = 1;
}
}
}
}
return(res);
};
movieclip.prototype.cekwall = function (x, y1, y2) {
var res = 0;
var i = 0;
while (i < /:lx1.length) {
var p1 = cekInBox(x, y1, /:lx1[i], /:lx2[i], /:ly1[i], /:ly2[i]);
var p2 = cekInBox(x, y2, /:lx1[i], /:lx2[i], /:ly1[i], /:ly2[i]);
if ((p1 + p2) > 0) {
res = 1;
break;
}
i++;
}
return(res);
};
movieclip.prototype.cekbelow = function (x, y) {
var tem = [];
var i = 0;
while (i < /:lx2.length) {
if ((x < /:lx2[i]) and (x > /:lx1[i])) {
tem.push(/:ly1[i]);
}
i++;
}
var i = 0;
while (i < /:ox2.length) {
if ((x < /:ox2[i]) and (x > /:ox1[i])) {
tem.push(/:oy1[i]);
}
i++;
}
if (tem.length > 0) {
tem.numsort();
var res = 600;
var i = 0;
while (i < tem.length) {
var y2 = tem[i];
if (y2 >= y) {
res = y2;
break;
}
i++;
}
return(res);
}
return(600);
};
movieclip.prototype.move = function (xs) {
Set("/:x", gp._x);
Set("/:xs", xs);
var nx = (/:x + xs);
var nx1 = (nx - /:pwid);
var nx2 = (nx + /:pwid);
var ny1 = (/:y - /:phei);
var ny2 = /:y;
if (xs > 0) {
Set("/:hd", 1);
if (!cekwall(nx2, ny1, ny2)) {
if (nx > /:midx) {
Set("/:xscrol", /:xscrol + xs);
if (/:xscrol < /:xscrolmax) {
Set("/:screenmin", /:screenmin + xs);
Set("/:screenmax", /:screenmax + xs);
Set("/:midx", /:midx + xs);
shiftbg(-1);
} else {
Set("/:xscrol", /:xscrolmax);
Set("/:xscrolmin", /:xscrolmax);
if (nx > /:screenmax) {
nx = /:screenmax;
}
}
}
} else {
nx = /:x;
}
} else if (xs < 0) {
Set("/:hd", 2);
if (!cekwall(nx1, ny1, ny2)) {
if (nx < /:midx) {
Set("/:xscrol", /:xscrol + xs);
if (/:xscrol > /:xscrolmin) {
Set("/:screenmin", /:screenmin + xs);
Set("/:screenmax", /:screenmax + xs);
Set("/:midx", /:midx + xs);
shiftbg(1);
} else {
Set("/:xscrol", /:xscrolmin);
if (nx < /:screenmin) {
nx = /:screenmin;
}
}
}
} else {
nx = /:x;
}
}
_root._x = -/:xscrol;
var i = 0;
while (i < /:still.length) {
_root[/:still[i]]._x = /:stillxpos[i] + /:xscrol;
i++;
}
gp._x = nx;
Set("/:x", nx);
};
movieclip.prototype.cekland = function () {
Set("/:yland1", cekbelow(/:x1, /:y));
Set("/:yland2", cekbelow(/:x2, /:y));
if ((/:y != /:yland1) and (/:y != /:yland2)) {
Set("/:vy", /:vy + (/:grav / 10));
var ny = (/:y + (/:vy / 10));
if (ny > /:yland1) {
var ny = /:yland1;
} else if (ny > /:yland2) {
var ny = /:yland2;
}
if (ny < /:midy) {
Set("/:yscrol", /:midy - ny);
_root._y = /:yscrol / 2;
var i = 0;
while (i < /:still.length) {
_root[/:still[i]]._y = /:stillypos[i] - (/:yscrol / 2);
i++;
}
}
} else {
Set("/:jump", 0);
Set("/:vy", 0);
}
gp._x = nx;
gp._y = ny;
};
Color.prototype.setBrightness = function (value) {
this.setTransform({ra:100, rb:0, ga:100, gb:0, ba:100, bb:0});
var trans = this.getTransform();
var percent = (Math.abs(value) / 100);
var brightnessColor = ((value > 0) ? 255 : 0);
with (trans) {
ra = ra - (ra * percent);
ga = ga - (ga * percent);
ba = ba - (ba * percent);
rb = rb + ((brightnessColor - rb) * percent);
gb = gb + ((brightnessColor - gb) * percent);
bb = bb + ((brightnessColor - bb) * percent);
}
this.setTransform(trans);
};
Color.prototype.resetcolor = function () {
this.setTransform({ra:100, rb:0, ga:100, gb:0, ba:100, bb:0});
};
Array.prototype.removeElement = function (i) {
if (i == null) {
i = 0;
}
var r = this[i];
var j = i;
while (j < (this.length - 1)) {
this[j] = this[j + 1];
j++;
}
this.pop();
return(r);
};
Array.prototype.removeValue = function (a) {
var i = 0;
while (i < this.length) {
if (a == this[i]) {
this.removeElement(i);
}
i++;
}
};
Array.prototype.numSort = function (d) {
this.ascend = function (a, b) {
return(a > b);
};
this.descend = function (a, b) {
return(a < b);
};
if (d == true) {
this.sort(this.descend);
} else {
this.sort(this.ascend);
}
};
Math.easeInOutQuart = function (t, b, c, d) {
if (((t = t / (d / 2))) < 1) {
return((((((c / 2) * t) * t) * t) * t) + b);
}
return((((-c) / 2) * ((((((t = t - 2)) * t) * t) * t) - 2)) + b);
};
Frame 60
mapname = "mapnow";
var map = this[mapname];
map._x = 0;
map._y = 0;
map._xscale = 100;
map._yscale = 100;
tnow = 0;
pwid = 12;
pheistand = 75;
pheikneel = 40;
phei = pheistand;
runspeed = 8;
screenwid = 432;
screenmin = 50;
screenmax = screenwid - 50;
hd = 1;
xs = 0;
jump = 0;
kneel = 0;
midx = 200;
midy = 250;
grav = 400;
jumpforce = -280;
hitinvdelay = 100;
canpress = 1;
inv = 0;
invhit = 10;
hit = 0;
vy = 0;
attachmovie("stat", "stat", 125);
stat._x = 215;
stat._y = 10;
Set("/:yland1", ly1[0]);
Set("/:yland2", ly1[0]);
if (player != 1) {
attachmovie("razor", "p", 150);
} else {
attachmovie("fury", "p", 150);
}
_global.gp = _root.p;
_global.gbg = _root.bg;
gp._x = midx;
gp._y = /:yland1;
x = p._x;
y = p._y;
allb = [];
b = 1000;
xscrol = 0;
xscrolmin = 0;
xscrolmax = (lx2[lx2.length - 1] - screenwid) - 40;
still = ["stat", "bg", "frame"];
stillxpos = [];
stillypos = [];
var i = 0;
while (i < /:still.length) {
/:stillxpos[i] = _root[/:still[i]]._x;
/:stillypos[i] = _root[/:still[i]]._y;
i++;
}
_root.createEmptyMovieClip("sfx", 90001);
allsfx = ["zglaser", "zplatform", "zmagnet", "zmulti", "zclaw", "zchange", "zgotit", "zenemydie1", "zbam", "zblast", "zexplosion", "zexplosion2", "zgun", "zloop", "zkena1", "zkena2", "zlaser", "zlaser2", "zlaser3", "zmissile", "zphaser", "zsword"];
var i = 0;
while (i < allsfx.length) {
_root[allsfx[i]] = new sound(sfx);
_root[allsfx[i]].attachsound(allsfx[i]);
i++;
}
zloop.start(0, 10000);
stop();
Frame 66
if ((/:y != /:yland1) and (/:y != /:yland2)) {
if (/:yland1 < /:yland2) {
gp._y = /:yland1;
} else {
gp._y = /:yland2;
}
}
Frame 72
gp.gotoAndStop("die" + /:hd);
Frame 81
/:lives--;
if (/:lives > 0) {
gotoAndPlay (41);
} else {
_root.attachMovie("popgameover", "popgameover", 7001);
_root.drag.gotoAndStop("s");
stop();
}
Frame 90
reset();
removeMovieClip(gp);
removeMovieClip("stat");
removeMovieClip("mapnow");
call("fadescreen");
stop();
Frame 96
call("win");
stop();
Frame 104
createemptymovieclip("coverscr", 99999);
var d = this.coverscr;
with (d) {
lineStyle(1, 0, 100);
beginfill(0, 100);
moveto(-5000, -5000);
lineto(5000, -5000);
lineto(5000, 5000);
lineto(-5000, 5000);
endfill();
d.onEnterFrame = function () {
_alpha = _alpha - 8;
if (_alpha <= 0) {
this.removeMovieClip();
}
};
}
Symbol 1 MovieClip [blinkenemy] Frame 1
d = 3;
b = 100;
c = new color(_parent);
c.setBrightness(b);
Symbol 1 MovieClip [blinkenemy] Frame 2
d = d - 1;
b = b - 30;
c.setBrightness(b);
Symbol 1 MovieClip [blinkenemy] Frame 3
if (d) {
prevFrame();
play();
} else {
c.resetcolor();
this.removeMovieClip();
}
Symbol 2 MovieClip [blink] Frame 1
d = /:invhit;
c = new color(gp);
c.setBrightness(50);
if (/:inv < /:invhit) {
Set("/:inv", /:invhit);
}
Symbol 2 MovieClip [blink] Frame 2
d = d - 1;
if (d == 6) {
c.resetcolor();
}
if (gp._visible) {
gp._visible = 0;
} else {
gp._visible = 1;
}
Symbol 2 MovieClip [blink] Frame 3
if (d) {
prevFrame();
play();
} else {
gp._visible = 1;
this.removeMovieClip();
}
Symbol 10 MovieClip Frame 9
_parent._parent.removeMovieClip();
stop();
Symbol 11 MovieClip Frame 1
stop();
Symbol 12 MovieClip [bullet1] Frame 1
onenterframe = function () {
_x = (_x + xs);
var i = 0;
while (i < /:alle.length) {
var it = /:map[/:alle[i]];
if (it._visible) {
if (cekInBox(_x, _y, it._x - it.wid, it._x + it.wid, it._y - it.hei, it._y)) {
Set("/:score", /:score + point);
it.energy = it.energy - /:bullet1power;
Set("/:score", /:score + (/:bullet1power * 10));
/:allb.removevalue(_name);
it.attachMovie("blinkenemy", "blink", 1001);
_root.zkena2.start();
this.removeMovieClip();
}
}
i++;
}
d = d + 1;
if (((d > 30) or (_x > (/:screenmax + 50))) or (_x < (/:screenmin - 50))) {
/:allb.removevalue(_name);
this.removeMovieClip();
}
};
Symbol 20 MovieClip Frame 1
stop();
Symbol 21 MovieClip [emissile] Frame 1
xs = -/:emissilespeed;
stop();
onenterframe = function () {
_x = (_x + xs);
if (((!/:inv) and (!kena)) and (math.abs(_x - gp._x) < 50)) {
if (cekInBox(_x, _y, /:x1 - 20, /:x2 + 20, /:y1, /:y)) {
Set("/:hit", /:emissiledamage);
Set("/:hitpos", gp._x + 1);
kena = 1;
_x = gp._x;
xs = 0;
b.gotoAndStop(2);
/:allb.removevalue(_name);
gotoAndPlay (5);
}
}
if (math.abs(_x - gp._x) > 500) {
/:allb.removevalue(_name);
this.removeMovieClip();
}
};
Symbol 21 MovieClip [emissile] Frame 10
this.removeMovieClip();
stop();
Symbol 25 MovieClip Frame 1
stop();
Symbol 26 MovieClip [ebullet] Frame 1
xs = -/:ebulletspeed;
stop();
onenterframe = function () {
_x = (_x + xs);
if (((!/:inv) and (!kena)) and (math.abs(_x - gp._x) < 50)) {
if (cekInBox(_x, _y, /:x1, /:x2, /:y1, /:y)) {
Set("/:hit", /:ebulletdamage);
if (xs > 0) {
Set("/:hitpos", gp._x - 1);
} else {
Set("/:hitpos", gp._x + 1);
}
kena = 1;
_x = gp._x;
b.gotoAndStop(2);
/:allb.removevalue(_name);
gotoAndPlay (6);
}
}
if (math.abs(_x - gp._x) > 500) {
/:alle.removevalue(_name);
this.removeMovieClip();
}
};
Symbol 26 MovieClip [ebullet] Frame 13
this.removeMovieClip();
stop();
Symbol 49 MovieClip Frame 1
stop();
Symbol 54 Button
on (release) {
_root.gotoAndPlay("sponsor");
this.removeMovieClip();
}
Symbol 61 MovieClip [popgameover] Frame 1
Set("/:canpress", 0);
_x = (/:screenmin + (0.5 * (/:screenmax - /:screenmin)));
_y = (150 - (/:yscrol / 2));
_xscale = 10;
_yscale = 10;
accel = 0.6;
convert = 0.8;
targ = 100;
onenterframe = function () {
xs = (xs * accel) + ((targ - _xscale) * convert);
_xscale = (_xscale + xs);
_yscale = (_yscale + xs);
};
stop();
Symbol 66 MovieClip Frame 16
gotoAndPlay (1);
Symbol 77 MovieClip Frame 17
stop();
Symbol 78 MovieClip [efly1] Frame 1
tipe = 4;
wid = 15;
hei = 60;
if (gp._x > (/:midx - 10)) {
_x = (/:screenmin - 100);
xs = /:espeed[tipe] + (0.1 * random(20));
} else {
_x = (/:screenmax + 100);
xs = -(/:espeed[tipe] + (0.1 * random(20)));
_xscale = -100;
}
_y = (gp._y - 26);
initenemy();
Symbol 78 MovieClip [efly1] Frame 2
initenemy2();
Symbol 78 MovieClip [efly1] Frame 3
delete onenterframe;
_visible = 1;
onenterframe = function () {
_x = (_x + xs);
if (cekhit(_x, _y, wid, hei - 35)) {
Set("/:hit", /:edamage[tipe]);
Set("/:hitpos", _x);
}
if (energy <= 0) {
gotoAndPlay (5);
}
if (math.abs(gp._x - _x) > 500) {
removeMovieClip("");
gotoAndPlay (2);
}
};
stop();
Symbol 78 MovieClip [efly1] Frame 5
delete onenterframe;
/:alle.removevalue(_name);
_root.zenemydie1.start();
a.gotoAndStop("die");
Symbol 78 MovieClip [efly1] Frame 25
a._visible = 0;
Symbol 78 MovieClip [efly1] Frame 26
a._visible = 1;
Symbol 78 MovieClip [efly1] Frame 27
a._visible = 0;
Symbol 78 MovieClip [efly1] Frame 28
a._visible = 1;
Symbol 78 MovieClip [efly1] Frame 29
stop();
Symbol 84 MovieClip [multibullet] Frame 1
if (xs < 0) {
_xscale = -100;
}
onenterframe = function () {
_x = (_x + xs);
var i = 0;
while (i < /:alle.length) {
var it = /:map[/:alle[i]];
if (it._visible) {
if (cekInBox(_x, _y, it._x - it.wid, it._x + it.wid, it._y - it.hei, it._y)) {
it.energy = it.energy - /:multipower;
Set("/:score", /:score + (/:multipower * 10));
/:allb.removevalue(_name);
it.attachMovie("blinkenemy", "blink", 1001);
_root.zkena2.start();
this.removeMovieClip();
}
}
i++;
}
d = d + 1;
if (((d > 30) or (_x > (/:screenmax + 80))) or (_x < (/:screenmin - 80))) {
/:allb.removevalue(_name);
this.removeMovieClip();
}
};
stop();
Symbol 93 MovieClip [efly3] Frame 1
tipe = 4;
wid = 15;
hei = 50;
if (gp._x > (/:midx - 10)) {
_x = (/:screenmin - 100);
xs = /:espeed[tipe] + (0.1 * random(20));
} else {
_x = (/:screenmax + 100);
xs = -(/:espeed[tipe] + (0.1 * random(20)));
_xscale = -100;
}
_y = (gp._y - 26);
initenemy();
Symbol 93 MovieClip [efly3] Frame 2
initenemy2();
Symbol 93 MovieClip [efly3] Frame 3
delete onenterframe;
_visible = 1;
onenterframe = function () {
_x = (_x + xs);
if (cekhit(_x, _y, wid, hei - 25)) {
Set("/:hit", /:edamage[tipe]);
Set("/:hitpos", _x);
}
if (energy <= 0) {
gotoAndPlay (5);
}
if (math.abs(gp._x - _x) > 500) {
removeMovieClip("");
gotoAndPlay (2);
}
};
stop();
Symbol 93 MovieClip [efly3] Frame 5
delete onenterframe;
/:alle.removevalue(_name);
_root.zenemydie1.start();
a.gotoAndStop("die");
Symbol 93 MovieClip [efly3] Frame 25
a._visible = 0;
Symbol 93 MovieClip [efly3] Frame 26
a._visible = 1;
Symbol 93 MovieClip [efly3] Frame 27
a._visible = 0;
Symbol 93 MovieClip [efly3] Frame 28
a._visible = 1;
Symbol 93 MovieClip [efly3] Frame 29
stop();
Symbol 96 MovieClip Frame 16
gotoAndPlay (1);
Symbol 99 MovieClip [efly2] Frame 1
tipe = 4;
wid = 15;
hei = 60;
if (gp._x > (/:midx - 10)) {
_x = (/:screenmin - 100);
xs = /:espeed[tipe] + (0.1 * random(20));
} else {
_x = (/:screenmax + 100);
xs = -(/:espeed[tipe] + (0.1 * random(20)));
_xscale = -100;
}
_y = (gp._y - 26);
initenemy();
Symbol 99 MovieClip [efly2] Frame 2
initenemy2();
Symbol 99 MovieClip [efly2] Frame 3
delete onenterframe;
_visible = 1;
onenterframe = function () {
_x = (_x + xs);
if (cekhit(_x, _y, wid, hei - 35)) {
Set("/:hit", /:edamage[tipe]);
Set("/:hitpos", _x);
}
if (energy <= 0) {
gotoAndPlay (5);
}
if (math.abs(gp._x - _x) > 500) {
removeMovieClip("");
gotoAndPlay (2);
}
};
stop();
Symbol 99 MovieClip [efly2] Frame 5
delete onenterframe;
/:alle.removevalue(_name);
_root.zenemydie1.start();
a.gotoAndStop("die");
Symbol 99 MovieClip [efly2] Frame 25
a._visible = 0;
Symbol 99 MovieClip [efly2] Frame 26
a._visible = 1;
Symbol 99 MovieClip [efly2] Frame 27
a._visible = 0;
Symbol 99 MovieClip [efly2] Frame 28
a._visible = 1;
Symbol 99 MovieClip [efly2] Frame 29
stop();
Symbol 102 MovieClip Frame 16
gotoAndPlay (1);
Symbol 105 MovieClip [efly4] Frame 1
tipe = 4;
wid = 15;
hei = 60;
if (gp._x > (/:midx - 10)) {
_x = (/:screenmin - 100);
xs = /:espeed[tipe] + (0.1 * random(20));
} else {
_x = (/:screenmax + 100);
xs = -(/:espeed[tipe] + (0.1 * random(20)));
_xscale = -100;
}
_y = (gp._y - 26);
initenemy();
Symbol 105 MovieClip [efly4] Frame 2
initenemy2();
Symbol 105 MovieClip [efly4] Frame 3
delete onenterframe;
_visible = 1;
onenterframe = function () {
_x = (_x + xs);
if (cekhit(_x, _y, wid, hei - 35)) {
Set("/:hit", /:edamage[tipe]);
Set("/:hitpos", _x);
}
if (energy <= 0) {
gotoAndPlay (5);
}
if (math.abs(gp._x - _x) > 500) {
removeMovieClip("");
gotoAndPlay (2);
}
};
stop();
Symbol 105 MovieClip [efly4] Frame 5
delete onenterframe;
/:alle.removevalue(_name);
_root.zenemydie1.start();
a.gotoAndStop("die");
Symbol 105 MovieClip [efly4] Frame 25
a._visible = 0;
Symbol 105 MovieClip [efly4] Frame 26
a._visible = 1;
Symbol 105 MovieClip [efly4] Frame 27
a._visible = 0;
Symbol 105 MovieClip [efly4] Frame 28
a._visible = 1;
Symbol 105 MovieClip [efly4] Frame 29
stop();
Symbol 122 MovieClip Frame 11
gotoAndPlay (1);
Symbol 135 MovieClip Frame 7
gotoAndPlay (1);
Symbol 157 MovieClip Frame 1
gotoAndStop(/:arm);
onenterframe = function () {
gotoAndStop(/:arm);
};
Symbol 163 MovieClip Frame 21
gotoAndPlay (1);
Symbol 164 MovieClip Frame 10
stop();
Symbol 165 MovieClip Frame 1
stop();
Symbol 167 MovieClip Frame 3
stop();
Symbol 168 MovieClip Frame 3
stop();
Symbol 171 MovieClip Frame 6
stop();
Symbol 172 MovieClip Frame 4
stop();
Symbol 174 MovieClip Frame 4
stop();
Symbol 175 MovieClip Frame 19
stop();
Symbol 176 MovieClip Frame 3
stop();
Symbol 177 MovieClip Frame 3
stop();
Symbol 184 MovieClip Frame 6
stop();
Symbol 185 MovieClip Frame 4
stop();
Symbol 186 MovieClip Frame 4
stop();
Symbol 190 MovieClip Frame 4
stop();
Symbol 191 MovieClip Frame 1
stop();
Symbol 195 MovieClip Frame 9
stop();
Symbol 196 MovieClip Frame 1
stop();
Symbol 225 MovieClip Frame 21
gotoAndPlay (1);
Symbol 226 MovieClip Frame 10
stop();
Symbol 227 MovieClip Frame 1
stop();
Symbol 229 MovieClip Frame 3
stop();
Symbol 230 MovieClip Frame 3
stop();
Symbol 231 MovieClip Frame 4
stop();
Symbol 233 MovieClip Frame 4
stop();
Symbol 234 MovieClip Frame 19
stop();
Symbol 235 MovieClip Frame 3
stop();
Symbol 236 MovieClip Frame 3
stop();
Symbol 237 MovieClip Frame 4
stop();
Symbol 238 MovieClip Frame 4
stop();
Symbol 239 MovieClip Frame 1
stop();
Symbol 241 MovieClip Frame 1
stop();
Symbol 252 MovieClip Frame 1
initobj();
Symbol 257 MovieClip Frame 1
initobj();
Symbol 263 MovieClip Frame 1
_parent.stop();
d = _name;
Symbol 263 MovieClip Frame 2
d = d - 1;
Symbol 263 MovieClip Frame 3
if (d) {
prevFrame();
play();
} else {
_parent.play();
stop();
}
Symbol 264 MovieClip Frame 8
gotoAndPlay (1);
Symbol 276 MovieClip Frame 1
stop();
Symbol 277 MovieClip Frame 1
n = Number(substring(_name, 2, 2));
a.gotoAndStop(n);
onenterframe = function () {
if (math.abs(_x - gp._x) < 40) {
if (cekhit(_x, _y, 25, 40)) {
Set("/:armindex", /:allarm.length);
/:allarm.push(n);
Set("/:arm", n);
updatearm();
_root.zgotit.start();
gotoAndPlay (2);
}
}
};
stop();
Symbol 277 MovieClip Frame 2
delete onenterframe;
Symbol 277 MovieClip Frame 14
stop();
Symbol 279 MovieClip Frame 1
tipe = 3;
wid = 25;
hei = 60;
initenemy();
Symbol 279 MovieClip Frame 2
initenemy2();
Symbol 279 MovieClip Frame 3
delete onenterframe;
shotdelay = 60;
d = 0;
_visible = 1;
onenterframe = function () {
d = d - 1;
if (d < 0) {
enemyshoot("emissile", _x - 30, _y - 35);
_root.zmissile.start();
d = shotdelay;
}
if (energy <= 0) {
gotoAndPlay (5);
}
if (math.abs(gp._x - _x) > 500) {
gotoAndPlay (2);
}
};
stop();
Symbol 279 MovieClip Frame 5
delete onenterframe;
/:alle.removevalue(_name);
_root.zexplosion.start();
Symbol 279 MovieClip Frame 26
stop();
Symbol 282 MovieClip Frame 1
if (!udah) {
udah = 1;
gotoAndPlay((substring(_name, 2, 1)) * 3);
}
Symbol 282 MovieClip Frame 13
gotoAndPlay (1);
Symbol 287 MovieClip Frame 15
stop();
Symbol 288 MovieClip Frame 1
stop();
Symbol 289 MovieClip Frame 1
tipe = 2;
wid = 20;
hei = 60;
initenemy();
Symbol 289 MovieClip Frame 2
initenemy2();
Symbol 289 MovieClip Frame 3
xs = /:espeed[tipe] + (0.1 * random(20));
delete onenterframe;
_visible = 1;
onenterframe = function () {
wander();
if (cekhit(_x, _y, wid, hei)) {
Set("/:hit", /:edamage[tipe]);
Set("/:hitpos", _x);
}
if (energy <= 0) {
gotoAndPlay (5);
}
if (math.abs(gp._x - _x) > 500) {
gotoAndPlay (2);
}
};
stop();
Symbol 289 MovieClip Frame 5
delete onenterframe;
/:alle.removevalue(_name);
_root.zenemydie1.start();
a.gotoAndStop("die");
Symbol 289 MovieClip Frame 25
a._visible = 0;
Symbol 289 MovieClip Frame 26
a._visible = 1;
Symbol 289 MovieClip Frame 27
a._visible = 0;
Symbol 289 MovieClip Frame 28
a._visible = 1;
Symbol 289 MovieClip Frame 29
stop();
Symbol 295 MovieClip Frame 20
stop();
Symbol 296 MovieClip Frame 21
stop();
Symbol 297 MovieClip Frame 1
stop();
Symbol 298 MovieClip Frame 1
tipe = 1;
wid = 30;
hei = 100;
initenemy();
Symbol 298 MovieClip Frame 2
initenemy2();
Symbol 298 MovieClip Frame 3
delete onenterframe;
_visible = 1;
xs = /:espeed[tipe];
closedis = 180;
onenterframe = function () {
if (cekhit(_x, _y, wid, hei)) {
Set("/:hit", /:edamage[tipe]);
Set("/:hitpos", _x);
}
dis = math.abs(gp._x - _x);
if (att > 0) {
att = att - 1;
if (gp._x > _x) {
xs = /:espeed[tipe];
xspace = 40;
a._xscale = 100;
} else {
xs = -/:espeed[tipe];
xspace = -40;
a._xscale = -100;
}
if (att == 12) {
if (cekhit(_x + xspace, _y - 20, 60, 30)) {
Set("/:hit", 3 * /:edamage[tipe]);
Set("/:hitpos", _x);
}
}
if (!att) {
a.gotoAndStop(1);
d = 30;
}
} else {
wander();
if (d) {
d = d - 1;
}
if ((!d) and (dis < closedis)) {
att = 20;
a.gotoAndStop(2);
}
}
if (energy <= 0) {
gotoAndPlay (5);
}
if (dis > 500) {
gotoAndPlay (2);
}
};
stop();
Symbol 298 MovieClip Frame 5
delete onenterframe;
/:alle.removevalue(_name);
a.gotoAndStop("die");
Symbol 298 MovieClip Frame 37
a._visible = 0;
Symbol 298 MovieClip Frame 38
a._visible = 1;
Symbol 298 MovieClip Frame 39
a._visible = 0;
Symbol 298 MovieClip Frame 40
a._visible = 1;
Symbol 298 MovieClip Frame 41
stop();
Symbol 299 MovieClip Frame 1
initland(4);
Symbol 302 MovieClip Frame 1
onenterframe = function () {
_alpha = random(100);
};
Symbol 306 MovieClip Frame 1
gotoAndStop(/:player);
Symbol 309 MovieClip Frame 17
stop();
Symbol 311 MovieClip Frame 1
stop();
Symbol 311 MovieClip Frame 2
_root.zplatform.start();
Symbol 311 MovieClip Frame 70
_root.gotoAndPlay("next");
stop();
Symbol 312 MovieClip Frame 1
onenterframe = function () {
if (math.abs(gp._x - this._x) < 450) {
gotoAndPlay (3);
}
};
gotoAndStop (4);
Symbol 312 MovieClip Frame 3
delete onenterframe;
onenterframe = function () {
if (math.abs(gp._x - _x) < 8) {
a.gotoAndPlay(2);
gp._visible = 0;
Set("/:canpress", 0);
delete onenterframe;
}
};
stop();
Symbol 312 MovieClip Frame 4
stop();
Symbol 320 MovieClip Frame 1
initobj();
Symbol 323 MovieClip Frame 1
initobj();
Symbol 326 MovieClip Frame 1
if (!udah) {
udah = 1;
gotoAndPlay((substring(_name, 2, 1)) * 3);
}
Symbol 326 MovieClip Frame 13
gotoAndPlay (1);
Symbol 334 MovieClip Frame 1
stop();
Symbol 335 MovieClip Frame 1
tipe = 2;
wid = 20;
hei = 35;
initenemy();
Symbol 335 MovieClip Frame 2
initenemy2();
Symbol 335 MovieClip Frame 3
xs = /:espeed[tipe] + (0.1 * random(20));
delete onenterframe;
_visible = 1;
onenterframe = function () {
wander();
if (cekhit(_x, _y, wid, hei)) {
Set("/:hit", /:edamage[tipe]);
Set("/:hitpos", _x);
}
if (energy <= 0) {
gotoAndPlay (5);
}
if (math.abs(gp._x - _x) > 500) {
gotoAndPlay (2);
}
};
stop();
Symbol 335 MovieClip Frame 5
delete onenterframe;
/:alle.removevalue(_name);
_root.zenemydie1.start();
a.gotoAndStop("die");
Symbol 335 MovieClip Frame 25
a._visible = 0;
Symbol 335 MovieClip Frame 26
a._visible = 1;
Symbol 335 MovieClip Frame 27
a._visible = 0;
Symbol 335 MovieClip Frame 28
a._visible = 1;
Symbol 335 MovieClip Frame 29
stop();
Symbol 342 MovieClip Frame 20
stop();
Symbol 343 MovieClip Frame 23
stop();
Symbol 344 MovieClip Frame 1
stop();
Symbol 345 MovieClip Frame 1
tipe = 1;
wid = 30;
hei = 144;
initenemy();
Symbol 345 MovieClip Frame 2
initenemy2();
Symbol 345 MovieClip Frame 3
delete onenterframe;
_visible = 1;
xs = /:espeed[tipe];
closedis = 180;
onenterframe = function () {
if (cekhit(_x, _y, wid, hei)) {
Set("/:hit", /:edamage[tipe]);
Set("/:hitpos", _x);
}
dis = math.abs(gp._x - _x);
if (att > 0) {
att = att - 1;
if (gp._x > _x) {
xs = /:espeed[tipe];
xspace = 40;
a._xscale = 100;
} else {
xs = -/:espeed[tipe];
xspace = -40;
a._xscale = -100;
}
if (att == 12) {
if (cekhit(_x + xspace, _y - 20, 50, 30)) {
Set("/:hit", 3 * /:edamage[tipe]);
Set("/:hitpos", _x);
}
}
if (!att) {
a.gotoAndStop(1);
d = 30;
}
} else {
wander();
if (d) {
d = d - 1;
}
if ((!d) and (dis < closedis)) {
att = 20;
a.gotoAndStop(2);
}
}
if (energy <= 0) {
gotoAndPlay (5);
}
if (dis > 500) {
gotoAndPlay (2);
}
};
stop();
Symbol 345 MovieClip Frame 5
delete onenterframe;
/:alle.removevalue(_name);
a.gotoAndStop("die");
Symbol 345 MovieClip Frame 37
a._visible = 0;
Symbol 345 MovieClip Frame 38
a._visible = 1;
Symbol 345 MovieClip Frame 39
a._visible = 0;
Symbol 345 MovieClip Frame 40
a._visible = 1;
Symbol 345 MovieClip Frame 41
stop();
Symbol 350 MovieClip Frame 1
tipe = 3;
wid = 15;
hei = 35;
initenemy();
Symbol 350 MovieClip Frame 2
initenemy2();
Symbol 350 MovieClip Frame 3
delete onenterframe;
shotdelay = 60;
d = 0;
_visible = 1;
onenterframe = function () {
d = d - 1;
if (d < 0) {
enemyshoot("ebullet", _x - 12, _y - 17);
_root.zbullet.start();
d = shotdelay;
}
if (energy <= 0) {
gotoAndPlay (5);
}
if (math.abs(gp._x - _x) > 500) {
gotoAndPlay (2);
}
};
stop();
Symbol 350 MovieClip Frame 5
delete onenterframe;
/:alle.removevalue(_name);
_root.zexplosion.start();
Symbol 350 MovieClip Frame 26
stop();
Symbol 355 MovieClip Frame 1
stop();
Symbol 356 MovieClip Frame 1
tipe = 5;
wid = 20;
hei = 40;
yland = _y;
jumpspeed = -150;
initenemy();
Symbol 356 MovieClip Frame 2
initenemy2();
Symbol 356 MovieClip Frame 3
delete onenterframe;
_visible = 1;
vy = jumpspeed;
onenterframe = function () {
vy = vy + 5;
var ny = (_y + (vy / 10));
if ((vy > 0) and (!udah)) {
udah = 1;
a.gotoAndPlay(2);
}
if (ny > yland) {
var ny = yland;
vy = jumpspeed;
udah = 0;
}
_y = ny;
if (cekhit(_x, _y, wid, hei)) {
Set("/:hit", /:edamage[tipe]);
Set("/:hitpos", _x);
}
if (energy <= 0) {
gotoAndPlay (5);
}
if (math.abs(gp._x - _x) > 500) {
gotoAndPlay (2);
}
};
stop();
Symbol 356 MovieClip Frame 5
delete onenterframe;
/:alle.removevalue(_name);
_root.zenemydie1.start();
a.gotoAndStop("die");
Symbol 356 MovieClip Frame 25
a._visible = 0;
Symbol 356 MovieClip Frame 26
a._visible = 1;
Symbol 356 MovieClip Frame 27
a._visible = 0;
Symbol 356 MovieClip Frame 28
a._visible = 1;
Symbol 356 MovieClip Frame 29
stop();
Symbol 368 MovieClip Frame 12
d = 10 + random(20);
Symbol 368 MovieClip Frame 13
d--;
Symbol 368 MovieClip Frame 14
if (d) {
prevFrame();
play();
}
Symbol 368 MovieClip Frame 25
d = 20 + random(40);
Symbol 368 MovieClip Frame 26
d--;
Symbol 368 MovieClip Frame 27
if (d) {
prevFrame();
play();
}
Symbol 370 MovieClip Frame 1
if (!udah) {
udah = 1;
gotoAndPlay(random(40));
}
Symbol 378 MovieClip Frame 37
stop();
Symbol 379 MovieClip Frame 1
stop();
Symbol 380 MovieClip Frame 1
tipe = 7;
wid = 30;
hei = 80;
xstart = _x;
range = 280;
att = 1;
_x = (_x + 200);
initenemy();
Symbol 380 MovieClip Frame 2
onenterframe = function () {
if (/:xscrolmin == /:xscrolmax) {
gotoAndPlay (3);
}
};
gotoAndStop (20);
Symbol 380 MovieClip Frame 3
delete onenterframe;
_visible = 1;
onenterframe = function () {
if (att) {
a.gotoAndStop(2);
a._xscale = 100;
_x = (_x - (2.5 * /:espeed[tipe]));
if (_x < (xstart - range)) {
_x = (xstart - range);
att = 0;
}
if (cekhit(_x, _y, wid + 10, hei)) {
Set("/:hit", 3 * /:edamage[tipe]);
Set("/:hitpos", _x);
}
} else {
a.gotoAndStop(1);
a._xscale = -100;
_x = (_x + /:espeed[tipe]);
if (_x > xstart) {
_x = xstart;
att = 1;
}
if (cekhit(_x, _y, wid, hei)) {
Set("/:hit", /:edamage[tipe]);
Set("/:hitpos", _x);
}
}
if (energy <= 0) {
gotoAndPlay (6);
}
};
stop();
Symbol 380 MovieClip Frame 6
delete onenterframe;
/:alle.removevalue(_name);
a.gotoAndStop("die");
Symbol 380 MovieClip Frame 15
a._visible = 0;
Symbol 380 MovieClip Frame 16
a._visible = 1;
Symbol 380 MovieClip Frame 17
a._visible = 0;
Symbol 380 MovieClip Frame 18
a._visible = 1;
Symbol 380 MovieClip Frame 19
_root.gotoAndPlay("win");
Symbol 380 MovieClip Frame 20
stop();
Symbol 381 MovieClip Frame 1
initland(0);
Symbol 387 MovieClip Frame 1
initobj();
Symbol 390 MovieClip Frame 1
initobj();
Symbol 397 MovieClip Frame 1
stop();
Symbol 398 MovieClip Frame 1
tipe = 2;
wid = 30;
hei = 40;
initenemy();
Symbol 398 MovieClip Frame 2
initenemy2();
Symbol 398 MovieClip Frame 3
xs = /:espeed[tipe] + (0.1 * random(20));
delete onenterframe;
_visible = 1;
onenterframe = function () {
wander();
if (cekhit(_x, _y, wid, hei)) {
Set("/:hit", /:edamage[tipe]);
Set("/:hitpos", _x);
}
if (energy <= 0) {
gotoAndPlay (5);
}
if (math.abs(gp._x - _x) > 500) {
gotoAndPlay (2);
}
};
stop();
Symbol 398 MovieClip Frame 5
delete onenterframe;
/:alle.removevalue(_name);
_root.zenemydie1.start();
a.gotoAndStop("die");
Symbol 398 MovieClip Frame 25
a._visible = 0;
Symbol 398 MovieClip Frame 26
a._visible = 1;
Symbol 398 MovieClip Frame 27
a._visible = 0;
Symbol 398 MovieClip Frame 28
a._visible = 1;
Symbol 398 MovieClip Frame 29
stop();
Symbol 400 MovieClip Frame 1
tipe = 3;
wid = 25;
hei = 60;
initenemy();
Symbol 400 MovieClip Frame 2
initenemy2();
Symbol 400 MovieClip Frame 3
delete onenterframe;
shotdelay = 60;
d = 0;
_visible = 1;
onenterframe = function () {
d = d - 1;
if (d < 0) {
enemyshoot("emissile", _x - 35, _y - 20);
_root.zmissile.start();
d = shotdelay;
}
if (energy <= 0) {
gotoAndPlay (5);
}
if (math.abs(gp._x - _x) > 500) {
gotoAndPlay (2);
}
};
stop();
Symbol 400 MovieClip Frame 5
delete onenterframe;
/:alle.removevalue(_name);
_root.zexplosion.start();
Symbol 400 MovieClip Frame 26
stop();
Symbol 407 MovieClip Frame 20
stop();
Symbol 409 MovieClip Frame 11
stop();
Symbol 410 MovieClip Frame 1
stop();
Symbol 411 MovieClip Frame 1
tipe = 1;
wid = 30;
hei = 100;
initenemy();
Symbol 411 MovieClip Frame 2
initenemy2();
Symbol 411 MovieClip Frame 3
delete onenterframe;
_visible = 1;
xs = /:espeed[tipe];
closedis = 180;
onenterframe = function () {
if (cekhit(_x, _y, wid, hei)) {
Set("/:hit", /:edamage[tipe]);
Set("/:hitpos", _x);
}
dis = math.abs(gp._x - _x);
if (att > 0) {
att = att - 1;
if (gp._x > _x) {
xs = /:espeed[tipe];
xspace = 40;
a._xscale = 100;
} else {
xs = -/:espeed[tipe];
xspace = -40;
a._xscale = -100;
}
if (att == 12) {
if (cekhit(_x + xspace, _y - 20, 60, 30)) {
Set("/:hit", 3 * /:edamage[tipe]);
Set("/:hitpos", _x);
}
}
if (!att) {
a.gotoAndStop(1);
d = 30;
}
} else {
wander();
if (d) {
d = d - 1;
}
if ((!d) and (dis < closedis)) {
att = 20;
a.gotoAndStop(2);
}
}
if (energy <= 0) {
gotoAndPlay (5);
}
if (dis > 500) {
gotoAndPlay (2);
}
};
stop();
Symbol 411 MovieClip Frame 5
delete onenterframe;
/:alle.removevalue(_name);
a.gotoAndStop("die");
Symbol 411 MovieClip Frame 37
a._visible = 0;
Symbol 411 MovieClip Frame 38
a._visible = 1;
Symbol 411 MovieClip Frame 39
a._visible = 0;
Symbol 411 MovieClip Frame 40
a._visible = 1;
Symbol 411 MovieClip Frame 41
stop();
Symbol 417 MovieClip Frame 1
stop();
Symbol 417 MovieClip Frame 6
stop();
Symbol 417 MovieClip Frame 11
gotoAndStop (1);
Symbol 418 MovieClip Frame 1
tipe = 8;
wid = 20;
hei = 210;
Symbol 418 MovieClip Frame 2
initenemy2();
Symbol 418 MovieClip Frame 3
delete onenterframe;
_visible = 1;
off = 0;
onenterframe = function () {
d = d - 1;
if (d < 0) {
d = 30;
if (!off) {
a.gotoAndPlay("off");
off = 1;
} else {
a.gotoAndPlay("on");
off = 0;
}
}
if (!off) {
if (cekhit(_x, _y, wid, hei)) {
Set("/:hit", /:edamage[tipe]);
Set("/:hitpos", _x);
}
}
if (math.abs(gp._x - _x) > 500) {
gotoAndPlay (2);
}
};
stop();
Symbol 418 MovieClip Frame 5
stop();
Symbol 419 MovieClip Frame 1
initland(0);
Symbol 449 MovieClip Frame 16
gotoAndPlay (14);
Symbol 449 MovieClip Frame 23
_root.zglaser.start(0, 2);
stop();
Symbol 449 MovieClip Frame 33
gotoAndPlay (1);
Symbol 450 MovieClip Frame 15
stop();
Symbol 451 MovieClip Frame 1
stop();
Symbol 451 MovieClip Frame 2
stop();
Symbol 452 MovieClip Frame 1
tipe = 9;
wid = 15;
hei = 80;
startx = _x;
initenemy();
Symbol 452 MovieClip Frame 2
onenterframe = function () {
if (/:xscrolmin == /:xscrolmax) {
gotoAndPlay (3);
}
};
stop();
Symbol 452 MovieClip Frame 3
delete onenterframe;
delay = 120;
d = delay;
_visible = 1;
onenterframe = function () {
if (cekhit(_x, _y, wid, hei)) {
Set("/:hit", /:edamage[1]);
Set("/:hitpos", _x);
}
d = d - 1;
if ((gp._x - _x) > 0) {
a._xscale = 100;
} else {
a._xscale = -100;
}
if (d == 50) {
var targetx = ((startx + random(20)) - random(40));
var targety = 260;
cx = _x - targetx;
bx = targetx;
cy = _y - targety;
by = targety;
t = 50;
de = 50;
}
if (d == (delay - 2)) {
var targetx = ((startx + random(20)) - random(40));
var targety = 220;
cx = _x - targetx;
bx = targetx;
cy = _y - targety;
by = targety;
t = 50;
de = 50;
}
if (t) {
t--;
_x = Math.easeInOutQuart(t, bx, cx, de);
_y = Math.easeInOutQuart(t, by, cy, de);
}
if (d == 30) {
a.a.gotoAndPlay("attack");
} else if ((d < 25) and (d > 0)) {
if (cekhit(_x - 500, _y, 1000, 30)) {
Set("/:hit", /:edamage[tipe]);
Set("/:hitpos", _x);
}
} else if (d == 0) {
a.a.gotoAndPlay("end");
d = delay;
}
if (energy <= 0) {
a.gotoAndPlay("die");
gotoAndPlay (5);
}
if (math.abs(gp._x - _x) > 500) {
gotoAndPlay (2);
}
};
stop();
Symbol 452 MovieClip Frame 5
delete onenterframe;
/:alle.removevalue(_name);
_root.zexplosion.start();
onenterframe = function () {
vy = vy + 1;
_y = (_y + vy);
};
Symbol 452 MovieClip Frame 12
_root.gotoAndPlay("win");
Symbol 452 MovieClip Frame 13
stop();
Symbol 465 MovieClip Frame 21
gotoAndPlay (1);
Symbol 466 MovieClip Frame 10
stop();
Symbol 467 MovieClip Frame 1
stop();
Symbol 468 MovieClip Frame 1
tipe = 2;
wid = 20;
hei = 60;
initenemy();
Symbol 468 MovieClip Frame 2
initenemy2();
Symbol 468 MovieClip Frame 3
xs = 0.5 * /:espeed[tipe];
delete onenterframe;
_visible = 1;
onenterframe = function () {
wander();
if (cekhit(_x, _y, wid, hei)) {
Set("/:hit", /:edamage[tipe]);
Set("/:hitpos", _x);
}
if (energy <= 0) {
gotoAndPlay (5);
}
if (math.abs(gp._x - _x) > 500) {
gotoAndPlay (2);
}
};
stop();
Symbol 468 MovieClip Frame 5
delete onenterframe;
/:alle.removevalue(_name);
_root.zenemydie1.start();
a.gotoAndStop("die");
Symbol 468 MovieClip Frame 25
a._visible = 0;
Symbol 468 MovieClip Frame 26
a._visible = 1;
Symbol 468 MovieClip Frame 27
a._visible = 0;
Symbol 468 MovieClip Frame 28
a._visible = 1;
Symbol 468 MovieClip Frame 29
stop();
Symbol 475 MovieClip Frame 20
stop();
Symbol 476 MovieClip Frame 16
stop();
Symbol 477 MovieClip Frame 1
stop();
Symbol 478 MovieClip Frame 1
tipe = 1;
wid = 30;
hei = 100;
initenemy();
Symbol 478 MovieClip Frame 2
initenemy2();
Symbol 478 MovieClip Frame 3
delete onenterframe;
_visible = 1;
xs = /:espeed[tipe];
closedis = 180;
onenterframe = function () {
if (cekhit(_x, _y, wid, hei)) {
Set("/:hit", /:edamage[tipe]);
Set("/:hitpos", _x);
}
dis = math.abs(gp._x - _x);
if (att > 0) {
att = att - 1;
if (gp._x > _x) {
xs = /:espeed[tipe];
xspace = 50;
a._xscale = 100;
} else {
xs = -/:espeed[tipe];
xspace = -50;
a._xscale = -100;
}
if (att == 12) {
if (cekhit(_x + xspace, _y - 20, 60, 30)) {
Set("/:hit", 3 * /:edamage[tipe]);
Set("/:hitpos", _x);
}
}
if (!att) {
a.gotoAndStop(1);
d = 30;
}
} else {
wander();
if (d) {
d = d - 1;
}
if ((!d) and (dis < closedis)) {
att = 20;
a.gotoAndStop(2);
}
}
if (energy <= 0) {
gotoAndPlay (5);
}
if (dis > 500) {
gotoAndPlay (2);
}
};
stop();
Symbol 478 MovieClip Frame 5
delete onenterframe;
/:alle.removevalue(_name);
a.gotoAndStop("die");
Symbol 478 MovieClip Frame 37
a._visible = 0;
Symbol 478 MovieClip Frame 38
a._visible = 1;
Symbol 478 MovieClip Frame 39
a._visible = 0;
Symbol 478 MovieClip Frame 40
a._visible = 1;
Symbol 478 MovieClip Frame 41
stop();
Symbol 482 MovieClip Frame 1
tipe = 6;
wid = 20;
hei = 30;
Symbol 482 MovieClip Frame 2
initenemy2();
Symbol 482 MovieClip Frame 3
xs = /:espeed[tipe];
delete onenterframe;
onenterframe = function () {
wander();
a._rotation = a._rotation + (5 * xs);
if (cekhit(_x, _y - 15, wid, hei)) {
Set("/:hit", /:edamage[tipe]);
Set("/:hitpos", _x);
}
if (math.abs(gp._x - _x) > 500) {
gotoAndPlay (2);
}
};
stop();
Symbol 482 MovieClip Frame 5
stop();
Symbol 483 MovieClip Frame 1
tipe = 6;
wid = 20;
hei = 30;
Symbol 483 MovieClip Frame 2
initenemy2();
Symbol 483 MovieClip Frame 3
xs = /:espeed[tipe];
delete onenterframe;
onenterframe = function () {
wander();
a._rotation = a._rotation + (5 * xs);
if (cekhit(_x, _y - 45, wid, hei)) {
Set("/:hit", /:edamage[tipe]);
Set("/:hitpos", _x);
}
if (math.abs(gp._x - _x) > 500) {
gotoAndPlay (2);
}
};
stop();
Symbol 483 MovieClip Frame 5
stop();
Symbol 486 MovieClip Frame 1
initobj();
Symbol 487 MovieClip Frame 1
initland(0);
Symbol 496 MovieClip Frame 1
gotoAndStop(/:arm);
Symbol 512 MovieClip [stat] Frame 1
gotoAndStop(/:mapno);
Symbol 516 Button
on (release) {
gotoAndPlay (21);
}
Symbol 524 Button
on (release) {
Set("/:player", 1);
gotoAndPlay (29);
}
Symbol 525 Button
on (release) {
Set("/:player", 2);
gotoAndPlay (29);
}
Symbol 533 Button
on (release) {
gotoAndPlay (34);
}
Symbol 551 MovieClip Frame 1
gotoAndStop(/:mapno);
Symbol 552 MovieClip Frame 2
duplicateMovieClip ("bg", "bg2", 2);
bg2._x = bg._width;
stop();
Symbol 553 MovieClip Frame 3
wid = pic._width / 2;
startx = pic._x;
stop();
Symbol 554 MovieClip Frame 1
d = /:flyenemydelay + random(100);
Symbol 554 MovieClip Frame 2
d = d - 1;
Symbol 554 MovieClip Frame 3
if (d) {
prevFrame();
play();
} else {
if ((/:y == /:yland1) or (/:y == /:yland2)) {
_root.map.attachMovie(/:flyenemy, /:flyenemy, /:fl);
/:fl++;
if (/:fl > 6100) {
Set("/:fl", 6000);
}
}
gotoAndPlay (1);
}
Symbol 556 Button
on (keyPress "c") {
if (/:allarm.length > 1) {
/:armindex++;
if (/:armindex >= /:allarm.length) {
Set("/:armindex", 0);
}
Set("/:arm", /:allarm[/:armindex]);
_root.zchange.start();
updatearm();
}
}
on (keyPress "C") {
if (/:allarm.length > 1) {
/:armindex++;
if (/:armindex >= /:allarm.length) {
Set("/:armindex", 0);
}
Set("/:arm", /:allarm[/:armindex]);
_root.zchange.start();
updatearm();
}
}
Symbol 557 MovieClip Frame 2
Set("/:y", gp._y);
Set("/:x1", /:x - /:pwid);
Set("/:x2", /:x + /:pwid);
Set("/:y1", /:y - /:phei);
Set("/:xs", 0);
if (/:canpress) {
if (Key.isDown(32)) {
if (((!/:jump) and (/:y == /:yland1)) or (/:y == /:yland2)) {
attac = 1;
}
} else {
if (Key.isDown(38)) {
if ((/:y == /:yland1) or (/:y == /:yland2)) {
Set("/:vy", /:jumpforce);
Set("/:jump", 1);
/:y--;
kneel(0);
gp.gotoAndStop("jump" + /:hd);
}
} else if (Key.isDown(40)) {
if ((!/:kneel) and ((/:y == /:yland1) or (/:y == /:yland2))) {
kneel(1);
}
}
if (Key.isDown(37)) {
if (!/:kneel) {
move(-/:runspeed);
}
} else if (Key.isDown(39)) {
if (!/:kneel) {
move(/:runspeed);
}
}
}
}
cekland();
if (/:jump) {
gp.gotoAndStop("jump" + /:hd);
} else if (/:kneel) {
if (!Key.isDown(40)) {
kneel(0);
}
} else if (/:xs != 0) {
gp.gotoAndStop("run" + /:hd);
} else if (/:xs == 0) {
gp.gotoAndStop("stand" + /:hd);
}
Symbol 557 MovieClip Frame 3
if (/:inv > 0) {
/:inv--;
}
if (gp._y > 450) {
_root.gotoandplay("end2");
gotoAndStop (22);
} else if (/:hit > 0) {
gotoAndPlay (7);
} else if (attac) {
attac = 0;
gotoAndPlay (14);
} else {
prevFrame();
play();
}
Symbol 557 MovieClip Frame 7
Set("/:energy", /:energy - /:hit);
kneel(0);
Set("/:bouncing", 10);
Set("/:bouncexs", /:runspeed * 2);
if (/:hitpos > /:x) {
Set("/:bouncexs", -/:bouncexs);
}
Set("/:vy", -300);
/:y--;
gp._y = /:y;
oldhd = /:hd;
_root.attachmovie("blink", "blink", 9001);
gp.gotoAndStop("bounce" + /:hd);
_root.zkena2.start();
updatestat();
Symbol 557 MovieClip Frame 8
/:bouncing--;
Set("/:bouncexs", /:bouncexs * 0.9);
move(/:bouncexs);
cekland();
Symbol 557 MovieClip Frame 9
if (/:bouncing > 0) {
prevFrame();
play();
} else {
Set("/:hit", 0);
Set("/:hd", oldhd);
gotoAndPlay (2);
}
Symbol 557 MovieClip Frame 14
Set("/:canswitch", 0);
if (/:kneel) {
var ykneel = 30;
var k = "k";
} else {
var ykneel = 0;
var k = "";
}
if (/:arm == 1) {
_root.zgun.start();
if (/:hd == 1) {
playershoot("bullet1", (gp._x + 70) + (0.5 * ykneel), (gp._y - 50) + (0.5 * ykneel), /:bullet1speed);
gp.gotoAndStop((k + "gun") + /:hd);
} else {
playershoot("bullet1", (gp._x - 70) - (0.5 * ykneel), (gp._y - 50) + (0.5 * ykneel), -/:bullet1speed);
gp.gotoAndStop((k + "gun") + /:hd);
}
Set("/:att", 2);
} else if (/:arm == 2) {
Set("/:att", 3);
_root.zsword.start();
gp.gotoAndStop((k + "sword") + /:hd);
} else if (/:arm == 3) {
_root.zmulti.start();
if (/:hd == 1) {
playershoot("multibullet", (gp._x + 50) + (0.5 * ykneel), (gp._y - 65) + (0.7 * ykneel), /:multispeed);
playershoot("multibullet", (gp._x + 50) + (0.5 * ykneel), (gp._y - 55) + (0.7 * ykneel), /:multispeed);
gp.gotoAndStop((k + "multi") + /:hd);
} else {
playershoot("multibullet", (gp._x - 50) - (0.5 * ykneel), (gp._y - 65) + (0.7 * ykneel), -/:multispeed);
playershoot("multibullet", (gp._x - 50) - (0.5 * ykneel), (gp._y - 55) + (0.7 * ykneel), -/:multispeed);
gp.gotoAndStop((k + "multi") + /:hd);
}
Set("/:att", 3);
} else if (/:arm == 4) {
Set("/:att", 3);
_root.zlaser2.start();
gp.gotoAndStop((k + "light") + /:hd);
} else if (/:arm == 5) {
Set("/:att", 10);
_root.zclaw.start();
gp.gotoAndStop((k + "claw") + /:hd);
} else if (/:arm == 6) {
Set("/:att", 10);
_root.zmagnet.start(0, 4);
gp.gotoAndStop((k + "magnet") + /:hd);
} else if (/:arm == 7) {
Set("/:att", 3);
_root.zsword.start();
gp.gotoAndStop((k + "ax") + /:hd);
}
Symbol 557 MovieClip Frame 15
/:att--;
if (/:att == 2) {
if (((/:arm == 2) or (/:arm == 4)) or (/:arm == 7)) {
sy = (gp._y - 30) + (0.5 * ykneel);
if (/:arm == 4) {
sw = 60;
} else {
sw = 50;
}
sh = 30;
if (/:hd == 1) {
sx = gp._x + 65;
} else {
sx = gp._x - 65;
}
cekweaponcollbox(sx, sy, sw, sh, /:apower[/:arm], /:point);
}
} else if (/:att == 5) {
if (/:arm == 5) {
sy = (gp._y - 30) + (0.5 * ykneel);
sh = 30;
if (/:hd == 1) {
sw = 0.5 * (math.abs(/:screenmax - gp._x) + 50);
sx = gp._x + sw;
} else {
sw = 0.5 * (math.abs(gp._x - /:screenmin) + 50);
sx = gp._x - sw;
}
cekweaponcollbox(sx, sy, sw, sh, /:apower[/:arm], /:point);
}
} else if (/:att == 7) {
if (/:arm == 6) {
sy = (gp._y - 30) + (0.7 * ykneel);
sw = 70;
sh = 45;
if (/:hd == 1) {
sx = (gp._x + 85) + (0.5 * ykneel);
} else {
sx = (gp._x - 85) - (0.5 * ykneel);
}
cekweaponcollbox(sx, sy, sw, sh, /:apower[/:arm], /:point);
}
}
Symbol 557 MovieClip Frame 16
if (/:hit > 0) {
Set("/:canswitch", 1);
gotoAndPlay (7);
} else if (/:att > 0) {
prevFrame();
play();
} else {
Set("/:canswitch", 1);
if (/:kneel) {
kneel(1);
}
gotoAndPlay (2);
}
Symbol 557 MovieClip Frame 22
stop();
Symbol 567 Button
on (release) {
getURL ("http://www.xevoz.com", "_blank");
}
Symbol 569 Button
on (release) {
_root.gotoAndPlay("choose");
}
Symbol 574 MovieClip Frame 1
if (/:player > 1) {
gotoAndStop (2);
} else {
stop();
}
Symbol 583 Button
on (release) {
_root.gotoAndPlay("choose");
}