Frame 1
fscommand ("trapallkeys", 1);
fscommand ("allowscale", 0);
stage.showMenu = false;
duplicateMovieClip ("fr", "frame", 80010);
Frame 2
if (rt.op > 0) {
stop();
} else {
gotoAndPlay (15);
}
Frame 7
movieclip.prototype.createkr = function (tipe, x, y, ys) {
if (!tipe) {
if (!r.enran.length) {
r.enran = r.enarray.copy();
r.enran.randomize();
}
var tipe = r.enran.pop();
r.attachmovie("knite" + tipe, "knite" + r.ed, r.ed);
var it = r["knite" + r.ed];
it._x = 650;
if (tipe == 2) {
it._y = 160 + random(120);
} else {
it._y = 120 + random(180);
}
} else {
r.attachmovie("knite" + tipe, "knite" + r.ed, r.ed);
var it = r["knite" + r.ed];
it._x = x;
it._y = y;
it.ys = ys;
}
r.enemy.push(it);
r.enemytoerase.push(it);
r.ed++;
};
movieclip.prototype.cekhit = function () {
var i = 0;
while (i < r.enemy.length) {
if (this.hittest(r.enemy[i].a)) {
r.enemy[i].gotoAndPlay("exp");
r.bul.removeValue(this);
this.removeMovieClip();
}
i++;
}
};
movieclip.prototype.ceklimits = function () {
if (this.nx < r.xmin) {
this.nx = r.xmin;
}
if (this.nx > r.xmax) {
this.nx = r.xmax;
}
if (this.ny < r.ymin) {
this.ny = r.ymin;
}
if (this.ny > r.ymax) {
this.ny = r.ymax;
}
};
Movieclip.prototype.rad = function (qdeg) {
return(qdeg * (Math.PI/180));
};
Movieclip.prototype.deg = function (qrad) {
return(qrad * 57.2957795130823);
};
Movieclip.prototype.findang = function (dx, dy) {
return(deg(math.atan2(dy, dx)));
};
Math.easeInQuad = function (t, b, c, d) {
return(((c * ((t = t / d))) * t) + b);
};
Array.prototype.copy = Array.prototype.slice;
Array.prototype.randomize = function () {
return(this.sort(function (a, b) {
return(((Math.floor(Math.random() * 2) == 0) ? 1 : -1));
}));
};
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++;
}
};
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});
};
Movieclip.prototype.fadescreen = function (speed) {
if (!speed) {
var speed = 5;
}
_root.createemptymovieclip("dark", 1000001);
var d = _root.dark;
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 - speed;
if (_alpha <= 0) {
removeMovieClip("");
stop();
}
};
}
};
Frame 15
call("pro");
stopAllSounds();
fadescreen();
_global.r = this;
_global.p = this.ace;
r.attachmovie("blur", "blur", 8800);
r.blur._x = 0;
r.blur._y = 400;
bgspeed = -8;
xmin = 60;
xmax = 400;
ymin = 75;
ymax = 350;
energymax = 100;
energy = energymax;
energyless = 20;
r.cheat1 = 0;
ang = 0;
nil = 10;
shotdelay = 5;
noshot = -1;
autofire = 0;
r.udahk = 0;
espeed = -7;
espeedmax = -10;
r.level = 150;
r.lev = r.level;
enemy = [];
enemytoerase = [];
r.ed = 1000;
r.b = 2000;
bul = [];
edelay = 40;
edelaymin = 28;
d = edelay;
enarray = [1, 1, 1, 1, 1, 2];
enran = [1, 1, 1, 1, 1, 1];
totalenemy = 60;
r.meter = 2100;
r.meternow = 0;
itemarray = [1, 2, 3, 4];
itemran = [];
blurdelay = 40;
r.createEmptyMovieClip("sfx", 60001);
allsfx = ["zbul", "zexp", "zgot"];
var i = 0;
while (i < allsfx.length) {
r[allsfx[i]] = new sound(sfx);
r[allsfx[i]].attachsound(allsfx[i]);
i++;
}
r.createEmptyMovieClip("sfx2", 60002);
r.zloop = new sound(sfx2);
r.zloop.attachsound("zloop");
r.zloop.start(0, 99999);
onenterframe = function () {
if (r.totalenemy > 0) {
d--;
if (!d) {
d = edelay;
createkr();
r.totalenemy--;
if (!r.totalenemy) {
d = 100;
}
}
} else {
d--;
if (d < 0) {
if ((!r.enemy.length) and (!r.udahk)) {
r.attachmovie("krypto", "krypto", r.ed);
r.krypto._x = 700;
r.krypto._y = 200;
r.ed++;
r.udahk = 1;
}
}
}
r.meternow++;
if (r.meternow > r.meter) {
r.meternow = r.meter;
}
if (r.noshot == 0) {
r.shootingani = 1;
r.gunh = r.gunh - r.gunless;
r.zshoot.start();
r.attachmovie("bullet", "bullet" + r.b, r.b);
var bl = r["bullet" + r.b];
bl._x = p._x + 58;
bl._y = p._y - 2;
if (!r.jump) {
bl.ypos = p._y;
}
r.bul.push(bl);
r.zbul.start();
r.b++;
}
if (r.noshot < 1) {
r.noshot--;
}
if (r.autofire) {
if (r.noshot < -3) {
r.noshot = 0;
}
}
r.lev--;
if (!r.lev) {
r.lev = r.level;
if (r.espeed > r.espeedmax) {
r.espeed = r.espeed - 0.2;
}
if (r.edelay > r.edelaymin) {
r.edelay--;
}
}
};
stop();
Frame 16
fadescreen();
delete onenterframe;
r.blur.removeMovieClip();
r.krypto.removeMovieClip();
var i = 0;
while (i < r.bul.length) {
r.bul[i].removeMovieClip();
i++;
}
var i = 0;
while (i < r.enemytoerase.length) {
r.enemytoerase[i].removeMovieClip();
i++;
}
stop();
Frame 22
call("end");
stop();
Symbol 1 MovieClip [fadeout] Frame 1
vol = r.zloop.getVolume();
vs = 2;
if (vol <= 0) {
stop();
}
Symbol 1 MovieClip [fadeout] Frame 2
vol = vol - vs;
r.zloop.setVolume(vol);
Symbol 1 MovieClip [fadeout] Frame 3
if (vol > 0) {
prevFrame();
play();
} else {
r.zloop.stop();
removeMovieClip("");
stop();
}
Symbol 8 MovieClip Frame 1
gotoAndStop(1 + random(_totalframes));
Symbol 12 MovieClip Frame 7
stop();
Symbol 16 MovieClip [knite1] Frame 1
ro = 5 + random(10);
xs = r.espeed - (random(20) / 10);
y = _y;
ra = 30 + random(20);
dif = 0.1 + (random(10) / 200);
c = random(100);
onenterframe = function () {
a._rotation = a._rotation - ro;
_x = (_x + xs);
_y = (y + (math.sin((c++) * dif) * ra));
if (_x < -30) {
gotoAndPlay (7);
}
};
stop();
Symbol 16 MovieClip [knite1] Frame 2
r.enemy.removevalue(this);
r.ang = r.ang + r.nil;
r.zgot.start();
ro = 50;
bx = _x;
by = _y;
t = 0;
dur = math.floor(math.abs((_x - p._x) / 20));
onenterframe = function () {
t++;
cx = p._x - bx;
cy = p._y - by;
_x = Math.easeInQuad(t, bx, cx, dur);
_y = Math.easeInQuad(t, by, cy, dur);
a._rotation = a._rotation - ro;
dx = _x - p._x;
dy = _y - p._y;
if (t == dur) {
this.removeMovieClip();
}
};
stop();
Symbol 16 MovieClip [knite1] Frame 7
if (!r.cheat1) {
r.energy = r.energy - r.energyless;
}
r.bar.barfr.gotoAndPlay(1);
r.enemy.removevalue(this);
_x = 0;
d = 30;
onenterframe = function () {
d--;
if (!d) {
this.removeMovieClip();
}
};
stop();
Symbol 18 MovieClip [bullet] Frame 1
xs = 25;
onenterframe = function () {
_x = (_x + xs);
cekhit();
if (_x > 594) {
r.bul.removevalue(this);
this.removeMovieClip();
}
};
stop();
Symbol 24 MovieClip Frame 1
gotoAndStop(1 + random(_totalframes));
Symbol 25 MovieClip [pc] Frame 1
ska = 60 + random(40);
_xscale = ska;
_yscale = ska;
_rotation = random(360);
ro = 10 + random(50);
if (random(100) > 50) {
ro = -ro;
}
ys = 10;
d = 10;
a._y = a._y + random(10);
div = 0.9 + (random(10) / 100);
xs = 1 + random(5);
d = 20 + random(20);
onenterframe = function () {
a._rotation = a._rotation + ro;
a._y = a._y + ys;
_x = (_x + xs);
ys = ys * div;
d--;
if (d < 10) {
_alpha = (_alpha - 10);
if (!d) {
this.removeMovieClip();
}
}
};
stop();
Symbol 30 MovieClip Frame 1
stop();
Symbol 31 MovieClip [blur] Frame 1
d = 5;
ed = 100;
onenterframe = function () {
d--;
if (!d) {
d = r.blurdelay + random(30);
if (!r.itemran.length) {
r.itemran = r.itemarray.copy();
r.itemran.randomize();
}
r.item = r.itemran.pop();
this.attachmovie("bblur", "bblur" + ed, ed);
this["bblur" + ed]._x = 600;
this["bblur" + ed]._y = 0;
this["bblur" + ed].no = r.item;
ed++;
}
};
stop();
Symbol 40 MovieClip Frame 1
gotoAndStop(_parent.no);
Symbol 41 MovieClip [bblur] Frame 1
onenterframe = function () {
_x = (_x + (2 * r.bgspeed));
if (_x < (-_width)) {
this.removeMovieClip();
}
};
stop();
Symbol 44 MovieClip [knite2] Frame 1
ro = 15;
xs = 1.5 * r.espeed;
ra = 30 + random(20);
dif = 0.1 + (random(10) / 200);
c = random(100);
onenterframe = function () {
a._rotation = a._rotation - ro;
_x = (_x + xs);
if (_x < -30) {
gotoAndPlay (7);
}
};
stop();
Symbol 44 MovieClip [knite2] Frame 2
r.enemy.removevalue(this);
r.ang = r.ang + (3 * r.nil);
r.zexp.start();
ed = 100;
var i = 0;
while (i < 15) {
this.attachmovie("pc", "pc" + ed, ed);
ed++;
i++;
}
d = 40;
createkr(3, _x, _y, -2);
createkr(3, _x, _y, 2);
onenterframe = function () {
d--;
if (!d) {
this.removeMovieClip();
}
};
stop();
Symbol 44 MovieClip [knite2] Frame 7
if (!r.cheat1) {
r.energy = r.energy - r.energyless;
}
r.bar.barfr.gotoAndPlay(1);
r.enemy.removevalue(this);
_x = 0;
d = 30;
onenterframe = function () {
d--;
if (!d) {
this.removeMovieClip();
}
};
stop();
Symbol 45 MovieClip [knite3] Frame 1
ro = 5 + random(10);
xs = (-1.5 * r.espeed) + (random(40) / 10);
y = _y;
ra = 30 + random(20);
dif = 0.1 + (random(10) / 200);
c = random(100);
onenterframe = function () {
a._rotation = a._rotation - ro;
_x = (_x + xs);
if (xs > r.espeed) {
xs = xs - 1;
}
_y = (y + (math.sin((c++) * dif) * ra));
y = y + ys;
ys = ys * 0.98;
if (_x < -30) {
gotoAndPlay (7);
}
};
stop();
Symbol 45 MovieClip [knite3] Frame 2
r.enemy.removevalue(this);
r.ang = r.ang + r.nil;
r.zgot.start();
ro = 50;
bx = _x;
by = _y;
t = 0;
dur = math.floor(math.abs((_x - p._x) / 20));
onenterframe = function () {
t++;
cx = p._x - bx;
cy = p._y - by;
_x = Math.easeInQuad(t, bx, cx, dur);
_y = Math.easeInQuad(t, by, cy, dur);
a._rotation = a._rotation - ro;
dx = _x - p._x;
dy = _y - p._y;
if (t == dur) {
this.removeMovieClip();
}
};
stop();
Symbol 45 MovieClip [knite3] Frame 7
if (!r.cheat1) {
r.energy = r.energy - r.energyless;
}
r.bar.barfr.gotoAndPlay(1);
r.enemy.removevalue(this);
_x = 0;
d = 30;
onenterframe = function () {
d--;
if (!d) {
this.removeMovieClip();
}
};
stop();
Symbol 46 MovieClip [knite4] Frame 1
ro = 2 + random(6);
ska = 70 + random(40);
_xscale = ska;
_yscale = ska;
xs = r.espeed - (random(20) / 10);
y = _y;
ra = 30 + random(20);
dif = 0.1 + (random(10) / 200);
c = random(100);
_rotation = (_rotation - random(360));
onenterframe = function () {
_rotation = (_rotation - ro);
_x = r.krypto._x;
_y = r.krypto._y;
};
stop();
Symbol 46 MovieClip [knite4] Frame 2
r.enemy.removevalue(this);
r.ang = r.ang + r.nil;
r.zgot.start();
ro = 50;
bx = _x;
by = _y;
t = 0;
dur = math.floor(math.abs((_x - p._x) / 20));
onenterframe = function () {
t++;
cx = p._x - bx;
cy = p._y - by;
_x = Math.easeInQuad(t, bx, cx, dur);
_y = Math.easeInQuad(t, by, cy, dur);
a._rotation = a._rotation - ro;
if (a._y < 0) {
a._y = a._y + 4;
b._y = b._y + 4;
}
dx = _x - p._x;
dy = _y - p._y;
if (t == dur) {
this.removeMovieClip();
}
};
stop();
Symbol 49 MovieClip Frame 20
stop();
Symbol 53 MovieClip Frame 40
gotoAndPlay (1);
Symbol 80 MovieClip Frame 17
gotoAndPlay (1);
Symbol 85 MovieClip Frame 28
gotoAndPlay (1);
Symbol 99 MovieClip Frame 30
stop();
Symbol 100 MovieClip [krypto] Frame 1
var i = 0;
while (i < 12) {
createkr(4, _x, _y, 0);
i++;
}
onenterframe = function () {
_x = (_x + r.bgspeed);
r.bgspeed = r.bgspeed + 0.15;
if (r.bgspeed > 0) {
r.bgspeed = 0;
}
if (r.xmax > 200) {
r.xmax = r.xmax - 5;
}
if (!r.enemy.length) {
gotoAndPlay (2);
}
};
stop();
Symbol 100 MovieClip [krypto] Frame 2
d = 60;
xs = -1;
onenterframe = function () {
d--;
if (d < 50) {
_x = (_x + xs);
xs = xs * 1.1;
if (xs < -3) {
xs = -3;
}
}
if (!d) {
r.gotoAndPlay("win");
}
};
stop();
Symbol 104 MovieClip Frame 1
duplicateMovieClip ("pic", "pic2", 2);
wid = pic._width;
pic2._x = wid;
startx = _x;
onenterframe = function () {
nx = _x + r.bgspeed;
if (nx < (startx - wid)) {
nx = nx + wid;
}
if (nx > startx) {
nx = nx - wid;
}
_x = nx;
};
Symbol 133 MovieClip Frame 1
stop();
Symbol 134 MovieClip Frame 1
framerange = 20;
mid = 21;
dyrange = 10;
dymin = -dyrange;
dymax = dyrange;
a.gotoAndStop(mid);
onenterframe = function () {
dy = p._y - r.oldy;
if (dy < dymin) {
dy = dymin;
} else if (dy > dymax) {
dy = dymax;
}
fra = mid - math.floor((dy / dyrange) * framerange);
a.gotoAndStop(fra);
};
Symbol 139 MovieClip Frame 1
stop();
Symbol 142 MovieClip Frame 1
stop();
Symbol 143 MovieClip Frame 1
onenterframe = function () {
x = 1 + math.floor((r.energy / r.energymax) * 100);
bar.gotoAndStop(x);
if (r.energy <= 0) {
bar.gotoAndStop(1);
delete onenterframe;
play();
}
};
stop();
Symbol 143 MovieClip Frame 15
r.gotoAndPlay("end");
stop();
Symbol 149 MovieClip Frame 1
onenterframe = function () {
a.a._x = (r.meternow / r.meter) * 165;
};
Symbol 150 MovieClip Frame 1
onenterframe = function () {
if (Key.isDown(65)) {
if (Key.isDown(67)) {
if (!r.cheat1) {
r.cheat1 = 1;
r.zbonus.start();
barcolor = new color(r.bar);
barcolor.setbrightness(50);
}
}
}
};
stop();
Symbol 152 MovieClip Frame 1
space = 10;
div = 1.4;
r.hit = 0;
r.jump = 0;
r.oldy = p._y;
delete onmouseup;
onenterframe = function () {
nx = r._xmouse;
ny = r._ymouse;
ceklimits();
r.oldx = p._x;
r.oldy = p._y;
p._x = nx + ((p._x - nx) / div);
p._y = ny + ((p._y - ny) / div);
};
onmousedown = function () {
r.autofire = 1;
r.noshot = 0;
};
onmouseup = function () {
r.autofire = 0;
r.noshot = 1;
};
stop();
Symbol 161 Button
on (release) {
var fakeVar = new Date().getTime();
loadMovieNum ("tracker.swf?" + fakeVar, 220000);
gotoAndPlay (15);
}
Symbol 170 Button
on (release) {
rt.gotoAndPlay("menu");
}