Frame 2
function game() {
gotoAndPlay (3);
}
stop();
Frame 3
function gl() {
return(8 - _root.liv._currentframe);
}
function sl(l) {
_root.liv.gotoAndStop(8 - l);
}
_root.addProperty("lives", gl, sl);
Frame 5
_root.scr = 0;
_root.addProperty("pkt", function () {
return(_root.scr);
}, function (x) {
var duzo = ((_root.scr % 1000) > 500);
_root.scr = x;
if (duzo && ((_root.scr % 1000) < 500)) {
_root.lives++;
}
});
_root.lives = 7;
gotoAndPlay (12);
Frame 12
fscommand ("allowscale", false);
this.onEnterFrame = function () {
_root.oEF.broadcastMessage("onEF");
};
this.onKeyUp = function () {
if (Key.getCode() == 80) {
if (_root.pause) {
_root.ps.broadcastMessage("play");
this.onEnterFrame = this.onEnterF;
_root.pause = 0;
} else {
_root.ps.broadcastMessage("stop");
this.onEnterF = this.onEnterFrame;
delete this.onEnterFrame;
_root.pause = 1;
}
} else if (Key.getCode() == 77) {
if (_root.mute) {
glb_snd.setVolume(100);
_root.mute = 0;
} else {
glb_snd.setVolume(0);
_root.mute = 1;
}
}
};
Key.addListener(this);
this.onMouseMove = function () {
Mouse.show();
cursorHide = getTimer();
this.hideCursor = function () {
if ((getTimer() - cursorHide) > 5000) {
Mouse.hide();
}
};
};
_root.createEmptyMovieClip("snds", -17);
_root.shot_sound = new Sound(_root.snds);
_root.shot_sound.attachSound("shot");
_root.mgn_sound = new Sound(_root.snds);
_root.mgn_sound.attachSound("magnum");
glb_snd = new Sound(_root);
MovieClip.prototype.del = function () {
for (all in this) {
this[all].splice(0, this[all].length);
delete this[all];
this[all].del();
}
this.swapDepths(554455);
this.removeMovieClip();
};
_root.level = 1;
gra.plat.moveXOK = 1;
gra.plat.moveYOK = 0;
gra.tab = " iiiiiiiiiiiiiiiiiiiiiii ----------------iiiii----S -- ___ S| -----------------------++++----++++-------- t t------- -- -- --iii -- |w --- M -- ___ wwww wwww t __F------- _ --- S- _ ----S -- ___-|wWWWW - -W WW WwwwwWWWWwwwwWW W -- -S R --- -- t t -|wwwwwWWWW/S\\WwWWwwW/S\\WwwwwwwwwwwwwwwwWWWWW/#\\WWwWWWW/##### # # ### ########|##########U#########U################################ _ _ _ _ ";
gra.tabE = "56756667567567567567567676756745151546489999000345345234232123243455434545643453452343453222500000000000000";
stop();
Frame 13
for (all in _root.oEF._listeners) {
_root.oEF.removeListener(_root.oEF._listeners[all]);
}
for (all in _root.ps._listeners) {
_root.ps.removeListener(_root.ps._listeners[all]);
}
Frame 15
_root.level = 4;
gra.plat.moveXOK = 1;
gra.plat.moveYOK = 0;
gra.tab = "| ii iii| iiii --S- S--- -##- S---- --- __ __ iiiii __-S----|############## ###S -#######tt####### F -- T -S - t ##### S-#### T ##########|iiiiiiiiiiiiii#####iii####iiiiiiiiiiiiii ##### #######################iiii######## iiiiii#############| __ _ _ _ _";
gra.tabE = "56756667567567567567567676756745151546489999000345345234232123243423211213412323222212225426234566236234662225000000000000000";
stop();
Frame 16
for (all in _root.oEF._listeners) {
_root.oEF.removeListener(_root.oEF._listeners[all]);
}
for (all in _root.ps._listeners) {
_root.ps.removeListener(_root.ps._listeners[all]);
}
Frame 18
_root.level = 3;
gra.plat.moveXOK = 0;
gra.plat.moveYOK = 1;
gra.tab = " |-------| ___| __ | __|---- | --- |--- ___|______ | X___|_XXXX__|XX*XXXX|___XXXX| T XXX|R--X___| XXXX_ |t __X__| XXX | ---XXX|XX---SX|XX __XX|_X__ XX| X __X| X __ X|tXX X|XXXX-XX|-X*XXXX|---XXXX| ---X--| XXXX__|-*XXX |T--X__ |-- __| XXX _|_______| XXX |S-XXXXt| ---XXX| ---|t-- XXX| -----|--S- F|__XXXXX|_______| __|----R X| -- T X| - ---|-- -|t-----X|---T X| -- __|--M ___| --t |---- --| --- |X -- |X --|#######";
gra.tabE = "5675666";
stop();
Frame 19
for (all in _root.oEF._listeners) {
_root.oEF.removeListener(_root.oEF._listeners[all]);
}
for (all in _root.ps._listeners) {
_root.ps.removeListener(_root.ps._listeners[all]);
}
Frame 21
gra.plat.moveXOK = 0;
gra.plat.moveYOK = 0;
gra.tab = "#######";
(gra);// not popped
stop();
"tabE"[undefined] = undefined;
Frame 22
for (all in _root.oEF._listeners) {
_root.oEF.removeListener(_root.oEF._listeners[all]);
}
for (all in _root.ps._listeners) {
_root.ps.removeListener(_root.ps._listeners[all]);
}
Frame 24
stop();
Instance of Symbol 495 MovieClip in Frame 24
//component parameters
onClipEvent (initialize) {
scr = "_root.pkt";
}
Frame 27
stop();
Instance of Symbol 495 MovieClip in Frame 27
//component parameters
onClipEvent (initialize) {
scr = "_root.pkt";
}
Symbol 7 MovieClip [kula3] Frame 1
#initclip 1
k3 = function () {
this.init();
};
k3.prototype = new MovieClip();
k3.prototype.init = function () {
this.stop();
this.vy = 0;
this.onEF = function () {
var pr = this._parent._parent;
var pkt = {x:this._x, y:this._y};
var en = pr.hero.box;
this._parent.localToGlobal(pkt);
if (en.hitTest(pkt.x, pkt.y, 1)) {
en._parent.hit();
_root.oEF.removeListener(this);
delete this.onEF;
this.removeMovieClip();
}
if (pkt.y > 520) {
_root.oEF.removeListener(this);
delete this.onEF;
this.removeMovieClip();
}
this.vy = this.vy + 0.5;
this._x = this._x + this.vx;
this._y = this._y + this.vy;
};
_root.oEF.addListener(this);
};
Object.registerClass("kula3", k3);
#endinitclip
stop();
Symbol 7 MovieClip [kula3] Frame 4
Symbol 10 MovieClip Frame 1
_rotation = (random(4) * 90);
Symbol 21 MovieClip Frame 1
Stage.scaleMode = "noScale";
fscommand ("trapallkeys", true);
Stage.showMenu = false;
this.uu = _root._url;
var a = _root._url.split("/");
var i = 0;
while (i < a.length) {
if (a[i] == "files") {
_root.gid = a[i + 1];
}
i++;
}
if ((a[2] == "www.netstupidity.com") || (a[2] == "netstupidity.com")) {
_root.ligin = 1;
}
_root.__url = "http://www.netstupidity.com/games/hof/";
_root.loadVariables((_root.__url + "hof_bsc.php?id=") + _root.gid);
_root.prc = 0;
this.onEnterFrame = function () {
var ld = _root.getBytesLoaded();
var tt = _root.getBytesTotal();
var pr = ((100 * ld) / tt);
this.pasek._xscale = pr;
var b = Math.round(pr / 20);
if (pr >= 100) {
this.onEnterFrame = null;
this._parent.play();
}
};
Symbol 35 MovieClip Frame 140
stop();
Symbol 74 MovieClip Frame 1
this.t = getTimer();
this.tm = 0;
this.onEnterFrame = function () {
if (_root._framesloaded < 2) {
this.t = getTimer();
return(undefined);
}
this.tm = this.tm + (getTimer() - this.t);
var tt = Math.round(this.tm / 33);
if (tt < 1) {
this.stop();
} else {
this.t = getTimer();
if (tt >= 145) {
this.onEnterFrame = null;
this.gotoAndStop(145);
_root.play();
} else {
this.gotoAndStop(tt);
}
}
};
stop();
Symbol 77 MovieClip Frame 1
_root.stop();
stop();
Symbol 77 MovieClip Frame 2
stop();
Symbol 90 Button
on (press) {
_root.fader.play();
}
Symbol 96 MovieClip Frame 1
this._visible = _root.ligin == undefined;
this.onPress = function () {
getURL ("http://www.netstupidity.com");
};
Symbol 98 MovieClip Frame 1
stop();
Symbol 98 MovieClip Frame 2
stop();
this._alpha = 0;
_root.ss = new Sound(_root);
this.onEnterFrame = function () {
this._alpha = this._alpha + 5;
_root.ss.setVolume(100 - this._alpha);
if (this._alpha > 90) {
this.onEnterFrame = null;
stopAllSounds();
_root.ss.setVolume(100);
_root.game();
}
};
Symbol 116 MovieClip Frame 1
this._visible = 0;
Symbol 117 MovieClip [ruch] Frame 1
this.onEF = function () {
var hero = this._parent._parent._parent._parent.hero;
if (this.hitTest(hero.legs)) {
hero._x = hero._x + ((this._currentframe < 40) ? 5.5 : -5.5);
}
};
_root.oEF.addListener(this);
_root.ps.addListener(this);
Symbol 124 MovieClip [Vbig] Frame 1
this.onEF = function () {
var hero = this._parent._parent._parent._parent.hero;
if (this.hitTest(hero._x, hero._y)) {
hero.water._visible = 0;
}
while (this.hitTest(hero._x, hero._y)) {
hero._y--;
}
};
_root.oEF.addListener(this);
Symbol 125 MovieClip [ruchG3] Frame 1
_root.ps.addListener(this);
Symbol 133 MovieClip [most] Frame 1
this.cnt = 5;
this.onEF = function () {
var pr = this._parent._parent._parent;
(hero = pr._parent.hero);
(dx = (hero._x - this._parent._x) - pr._x);
(dy = this._y - hero._y);
if ((dx > 80) || (this.cnt < 0)) {
_root.oEF.removeListener(this);
pr.attachMovie("wyb", "wyb", this._parent.getDepth() + 79999, {_x:this._parent._x, _y:this._y + 5});
this.removeMovieClip();
}
if (hero.hitTest(this) || (dx > 30)) {
this.cntDown = 1;
}
if (this.cntDown) {
this.cnt--;
}
};
_root.oEF.addListener(this);
Symbol 143 MovieClip Frame 1
_root.ps.addListener(this);
Symbol 149 MovieClip Frame 1
_rotation = (random(3) * 90);
Symbol 164 MovieClip Frame 1
_rotation = (random(4) * 90);
Symbol 198 MovieClip Frame 1
_root.ps.addListener(this);
Symbol 199 MovieClip [bg] Frame 1
#initclip 15
_bg = function () {
this.init();
};
_bg.prototype = new MovieClip();
_bg.prototype.init = function () {
_root.oEF.addListener(this);
this.runs = true;
this.box = this.box.getBounds(this);
this.onEF = function () {
var pr = this._parent._parent;
var plat = pr.plat;
var pkt = {x:this._x + pr._x, y:this._y + pr._y};
if (this.runs && (!plat.hitTest(pkt.x, pkt.y, 1))) {
if (random(3) == 2) {
this.vx = this.vx * -1;
} else {
this.runs = !((this.falls = true));
this.vy = -13;
this.a = 1.8;
this.typ.gotoAndStop(1);
}
}
if (this.falls) {
this.typ.gotoAndStop(1);
((this.vy < 20) ? ((this.vy = this.vy + this.a)) : ((this.vy = 20)));
this._y = this._y + this.vy;
pkt.y = this._y + pr._y;
if (plat.hitTest(pkt.x, pkt.y, 1) && (this.vy > 0)) {
this.runs = !((this.falls = false));
this.typ.play();
}
while (plat.hitTest(pkt.x, pkt.y, 1) && (plat.hitTest(pkt.x, pkt.y - 2, 1))) {
this._y--;
pkt.y = this._y + pr._y;
}
}
this._xscale = ((this.vx < 0) ? 100 : (((this.vx > 0) ? -100 : (this._xscale))));
var nx = (this._x + (this.vx * 7));
this._x = nx;
if (pkt.y > 500) {
this.swapDepths(99999);
_root.oEF.removeListener(this);
this.removeMovieClip();
}
};
};
_bg.prototype.hit = function () {
_root.oEF.removeListener(this);
this.swapDepths(99999);
this._parent._parent.attachMovie("blysk", "b", this.getDepth(), {_x:this._x, _y:this._y});
_root.pkt = _root.pkt + 10;
this.removeMovieClip();
};
Object.registerClass("bg", _bg);
#endinitclip
stop();
Symbol 203 MovieClip [flm] Frame 1
#initclip 12
_root.k2_cnt = 0;
_bonF = function () {
this.init();
};
_bonF.prototype = new MovieClip();
_bonF.prototype.init = function () {
_root.oEF.addListener(this);
this.box = this.box.getBounds(this);
this.onEF = function () {
var pr = this._parent._parent;
var x0 = (this._x + pr._x);
var y0 = (this._y + pr._y);
if ((x0 < -50) || (y0 > 560)) {
_root.oEF.removeListener(this);
this.removeMovieClip();
}
};
};
_bonF.prototype.hit = function () {
_root.oEF.removeListener(this);
this.swapDepths(99999);
this._parent._parent.attachMovie("bonus", "bonus", 67676, {_x:this._x, _y:this._y + 50, bon:"F"});
_root.pkt = _root.pkt + 5;
this.removeMovieClip();
};
Object.registerClass("flm", _bonF);
#endinitclip
Symbol 204 MovieClip [mchn] Frame 1
#initclip 3
_root.k2_cnt = 0;
_bonM = function () {
this.init();
};
_bonM.prototype = new MovieClip();
_bonM.prototype.init = function () {
_root.oEF.addListener(this);
this.box = this.box.getBounds(this);
this.onEF = function () {
var pr = this._parent._parent;
var x0 = (this._x + pr._x);
var y0 = (this._y + pr._y);
if ((x0 < -50) || (y0 > 560)) {
_root.oEF.removeListener(this);
this.removeMovieClip();
}
};
};
_bonM.prototype.hit = function () {
_root.oEF.removeListener(this);
this.swapDepths(99999);
this._parent._parent.attachMovie("bonus", "bonus", 67676, {_x:this._x, _y:this._y + 50, bon:"M"});
_root.pkt = _root.pkt + 5;
this.removeMovieClip();
};
Object.registerClass("mchn", _bonM);
#endinitclip
Symbol 205 MovieClip [rr] Frame 1
#initclip 4
_root.k2_cnt = 0;
_bonR = function () {
this.init();
};
_bonR.prototype = new MovieClip();
_bonR.prototype.init = function () {
_root.oEF.addListener(this);
this.box = this.box.getBounds(this);
this.onEF = function () {
var pr = this._parent._parent;
var x0 = (this._x + pr._x);
var y0 = (this._y + pr._y);
if ((x0 < -50) || (y0 > 560)) {
_root.oEF.removeListener(this);
this.removeMovieClip();
}
};
};
_bonR.prototype.hit = function () {
_root.oEF.removeListener(this);
this.swapDepths(99999);
this._parent._parent.attachMovie("bonus", "bonus", 67676, {_x:this._x, _y:this._y + 50, bon:"R"});
_root.pkt = _root.pkt + 5;
this.removeMovieClip();
};
Object.registerClass("rr", _bonR);
#endinitclip
Symbol 212 MovieClip [bonus] Frame 1
#initclip 5
_bn = function () {
this.init();
};
_bn.prototype = new MovieClip();
_bn.prototype.init = function () {
this.txt = ((this.bon == "R") ? "S" : (this.bon));
_root.oEF.addListener(this);
this.falls = 1;
this.vy = -30;
this.a = 1.8;
this.onEF = function () {
var pr = this._parent;
var plat = pr.plat;
var pkt = {x:this._x + pr._x, y:this._y + pr._y};
if (this.falls) {
((this.vy < 20) ? ((this.vy = this.vy + this.a)) : ((this.vy = 20)));
this._y = this._y + this.vy;
pkt.y = this._y + pr._y;
if (plat.hitTest(pkt.x, pkt.y, 1) && (this.vy > 0)) {
this.falls = false;
}
while (plat.hitTest(pkt.x, pkt.y, 1) && (plat.hitTest(pkt.x, pkt.y - 2, 1))) {
this._y--;
pkt.y = this._y + pr._y;
}
}
var nx = (this._x + (this.vx * 7));
this._x = nx;
if ((pkt.y > 500) || (pkt.x < -50)) {
_root.oEF.removeListener(this);
this.removeMovieClip();
}
};
};
_bn.prototype.bonus = function () {
_root.oEF.removeListener(this);
var hero = this._parent._parent.hero;
switch (this.bon) {
case "M" :
hero.m = 6;
hero.kula = "kula";
break;
case "F" :
hero.m = 0;
hero.kula = "kulaF";
break;
case "R" :
hero.m = 0;
hero.kula = "kulaS";
}
this.removeMovieClip();
};
Object.registerClass("bonus", _bn);
#endinitclip
stop();
Symbol 217 MovieClip [bos1] Frame 1
this._parent.attachMovie("bos1Gun", "bg1", this.getDepth() + 1, {_x:this._x - 55, _y:this._y + 340});
this._parent.attachMovie("bos1Gun", "bg2", this.getDepth() + 2, {_x:this._x - 55, _y:this._y + 170});
this._parent.attachMovie("bos1knefel", "bkn", this.getDepth() + 3, {_x:this._x - 155, _y:this._y + 245});
Symbol 223 MovieClip Frame 1
stop();
Symbol 224 MovieClip [bos1Gun] Frame 1
#initclip 6
_gunB = function () {
this.init0();
};
_gunB.prototype = new MovieClip();
_gunB.prototype.init0 = function () {
_root.oEF.addListener(this);
this.strt = 50;
this.onEF = function () {
this.strt--;
if (this.strt < 0) {
this.init();
}
};
};
_gunB.prototype.init = function () {
this.nrg = 20;
this.do_ = random(80);
this.box = this.box.getBounds(this);
this.onEF = function () {
var pr = this._parent._parent;
var dm = (this.do_ % 24);
if ((this._x + pr._x) > 580) {
return(undefined);
}
if ((dm == 20) || (dm == 21)) {
this.lufka.play();
this.do_++;
} else if (dm > 21) {
this.do_++;
} else if (dm == 0) {
pr.attachMovie("kula3", "kk" + _root.k_cnt, 1000 + (_root.k_cnt++), {_x:this._x - 40, _y:this._y, vx:(-random(5)) - 7});
_root.k_cnt = _root.k_cnt % 50;
this.do_++;
} else {
this.do_ = this.do_ + (1 + random(2));
}
};
};
_gunB.prototype.hit = function () {
this.nrg--;
if (this.nrg < 0) {
_root.oEF.removeListener(this);
this._parent._parent.attachMovie("boom", "b", this.getDepth(), {_x:this._x - 75, _y:this._y - 75, _xscale:150, _yscale:150});
_root.pkt = _root.pkt + 50;
this.removeMovieClip();
}
};
Object.registerClass("bos1Gun", _gunB);
#endinitclip
Symbol 267 MovieClip [Boom] Frame 25
stop();
removeMovieClip(this);
Symbol 269 MovieClip [bos1knefel] Frame 1
#initclip 7
knef = function () {
this.init();
};
knef.prototype = new MovieClip();
knef.prototype.init = function () {
this.nrg = 25;
this.box = this.box.getBounds(this);
this.stop();
};
knef.prototype.hit = function () {
this.nrg--;
if (this.nrg < 0) {
this._parent.bg1.nrg = (this._parent.bg2.nrg = 0);
this._parent.bg1.hit();
this._parent.bg2.hit();
this._parent._parent.attachMovie("blysk", "b", this.getDepth(), {_x:this._x, _y:this._y + 130, _xscale:150, _yscale:150});
_root.pkt = _root.pkt + 50;
this.play();
}
};
Object.registerClass("bos1knefel", knef);
#endinitclip
stop();
Symbol 269 MovieClip [bos1knefel] Frame 2
delete this.box;
Symbol 269 MovieClip [bos1knefel] Frame 10
this._parent._parent._parent.hero.onEF = function () {
var pr = this._parent;
var plat = pr.plat.plat;
this.pkt = {x:this._x, y:this._y};
pr.localToGlobal(this.pkt);
if (this.runs && (!plat.hitTest(this._x, this._y, 1))) {
this.fvx = 0.6 * ((this._xscale < 0) ? 1 : -1);
this.runs = !((this.falls = true));
this.vy = 9;
this.a = 1.8;
this.fallFromJump = 0;
this.y0 = this._y;
}
if (this.falls) {
if (!this.fallFromJump) {
this._xscale = ((this.vx < 0) ? 100 : (((this.vx > 0) ? -100 : (this._xscale))));
this.gotoAndStop(5);
if (this._y > (this.y0 + 77)) {
this.vx = this.vx * 0.75;
} else {
this.vx = this.fvx;
}
} else {
this.vx = this.vx * 0.9;
}
((this.vy < 23) ? ((this.vy = this.vy + this.a)) : ((this.vy = 23)));
this._y = this._y + this.vy;
if (plat.hitTest(this._x, this._y, 1)) {
if (this.fallFromJump) {
this._y = this._y + 200;
this.onEF = function () {
this._y = this._y + 5;
if (this._y > 800) {
_root.heroK = this.kula;
_root.heroM = this.m;
this._parent._parent.play();
}
};
} else {
this.runs = !((this.fallFromJump = (this.falls = false)));
}
}
while (plat.hitTest(this._x, this._y, 1) && (plat.hitTest(this._x, this._y - 1, 1))) {
this.pkt.y--;
this._y--;
}
} else if (this.runs) {
this.vx = 1;
this._xscale = -100;
this.gotoAndStop(2);
this.gun_dir((U ? "k_up" : ((D ? "k_dw" : (((C || ((--this.Ctimer) > 0)) ? "k_fw" : "k"))))));
} else if (this.jumps) {
this.gotoAndStop(4);
this._y = this._y + this.vy;
this.vy = this.vy + this.a;
this.fallFromJump = 1;
if (this.vy > 0) {
this.falls = !((this.jumps = false));
}
}
var nx = (this._x + (this.vx * 9));
this._x = nx;
if ((this._x > 480) && (this.vx > 0)) {
this.vy = -25;
this.vx = 0;
this.a = 2.7;
this.runs = !((this.jumps = true));
}
};
Symbol 269 MovieClip [bos1knefel] Frame 16
stop();
Symbol 277 MovieClip [bos4] Frame 1
#initclip 8
_bos4 = function () {
this.init();
};
_bos4.prototype = new MovieClip();
_bos4.prototype.init = function () {
this.nrg = 30;
this.box = this.box.getBounds(this);
this.stop();
};
_bos4.prototype.hit = function () {
this.nrg--;
if (this.nrg < 0) {
this.gotoAndPlay(30);
_root.pkt = _root.pkt + 100;
}
};
Object.registerClass("bos4", _bos4);
#endinitclip
stop();
Symbol 277 MovieClip [bos4] Frame 26
gotoAndStop (1);
Symbol 277 MovieClip [bos4] Frame 30
delete this._parent._parent._parent.plat.onEF;
Symbol 277 MovieClip [bos4] Frame 40
this._parent._parent._parent.hero.swapDepths(this._parent._parent._parent.plat);
this._parent._parent._parent.hero.onEF = function () {
var pr = this._parent;
var plat = pr.plat.plat;
this.pkt = {x:this._x, y:this._y};
pr.localToGlobal(this.pkt);
if (this.runs && (!plat.hitTest(this._x, this._y, 1))) {
this.fvx = 0.6 * ((this._xscale < 0) ? 1 : -1);
this.runs = !((this.falls = true));
this.vy = 9;
this.a = 1.8;
this.fallFromJump = 0;
this.y0 = this._y;
}
if (this.falls) {
if (!this.fallFromJump) {
this._xscale = ((this.vx < 0) ? 100 : (((this.vx > 0) ? -100 : (this._xscale))));
this.gotoAndStop(5);
if (this._y > (this.y0 + 77)) {
this.vx = this.vx * 0.75;
} else {
this.vx = this.fvx;
}
} else {
this.vx = this.vx * 0.9;
}
((this.vy < 23) ? ((this.vy = this.vy + this.a)) : ((this.vy = 23)));
this._y = this._y + this.vy;
if (plat.hitTest(this._x, this._y, 1)) {
this.runs = !((this.fallFromJump = (this.falls = false)));
}
while (plat.hitTest(this._x, this._y, 1) && (plat.hitTest(this._x, this._y - 1, 1))) {
this.pkt.y--;
this._y--;
}
} else if (this.runs) {
this.vx = 1;
this._xscale = -100;
this.gotoAndStop(2);
this.gun_dir((U ? "k_up" : ((D ? "k_dw" : (((C || ((--this.Ctimer) > 0)) ? "k_fw" : "k"))))));
} else if (this.jumps) {
this.gotoAndStop(4);
this._y = this._y + this.vy;
this.vy = this.vy + this.a;
this.fallFromJump = 1;
if (this.vy > 0) {
this.falls = !((this.jumps = false));
}
}
var nx = (this._x + (this.vx * 9));
this._x = nx;
if (this._x > 585) {
_root.heroK = this.kula;
_root.heroM = this.m;
this._parent._parent.play();
}
};
Symbol 277 MovieClip [bos4] Frame 50
stop();
Symbol 279 MovieClip [eHead] Frame 1
#initclip 9
_hd = function () {
this.init();
};
_hd.prototype = new MovieClip();
_hd.prototype.init = function () {
this.nrg = 35;
this.box = this.box.getBounds(this);
_root.ps.addListener(this);
};
_hd.prototype.hit = function () {
this.nrg--;
if (this.nrg < 0) {
this.gotoAndPlay(60);
_root.pkt = _root.pkt + 200;
}
};
Object.registerClass("eHead", _hd);
#endinitclip
Symbol 279 MovieClip [eHead] Frame 4
this._parent._parent.attachMovie("kula4", "kk" + _root.k_cnt, 1000 + (_root.k_cnt++), {_x:this._x, _y:this._y, vx:3 + random(3)});
this._parent._parent.attachMovie("kula4", "kk" + _root.k_cnt, 1000 + (_root.k_cnt++), {_x:this._x, _y:this._y, vx:random(3) - 1});
this._parent._parent.attachMovie("kula4", "kk" + _root.k_cnt, 1000 + (_root.k_cnt++), {_x:this._x, _y:this._y, vx:-3 - random(3)});
_root.k_cnt = _root.k_cnt % 50;
Symbol 279 MovieClip [eHead] Frame 16
gotoAndPlay(_currentframe + random(25));
Symbol 279 MovieClip [eHead] Frame 55
gotoAndPlay (1);
Symbol 279 MovieClip [eHead] Frame 56
gotoAndPlay (1);
Symbol 279 MovieClip [eHead] Frame 57
gotoAndPlay (1);
Symbol 279 MovieClip [eHead] Frame 72
this._parent._parent._parent.hero.onEF = function () {
var pr = this._parent;
var plat = pr.plat.plat;
this.pkt = {x:this._x, y:this._y};
pr.localToGlobal(this.pkt);
if (this.falls) {
if (!this.fallFromJump) {
this._xscale = ((this.vx < 0) ? 100 : (((this.vx > 0) ? -100 : (this._xscale))));
this.gotoAndStop(5);
if (this._y > (this.y0 + 77)) {
this.vx = this.vx * 0.75;
} else {
this.vx = this.fvx;
}
} else {
this.vx = this.vx * 0.9;
}
((this.vy < 23) ? ((this.vy = this.vy + this.a)) : ((this.vy = 23)));
this._y = this._y + this.vy;
if (plat.hitTest(this._x, this._y, 1)) {
this.runs = !((this.fallFromJump = (this.falls = false)));
}
while (plat.hitTest(this._x, this._y, 1) && (plat.hitTest(this._x, this._y - 1, 1))) {
this.pkt.y--;
this._y--;
}
} else if (this.runs) {
this.vx = -0.8;
this._xscale = 100;
this.gotoAndStop(2);
this.gun_dir((U ? "k_up" : ((D ? "k_dw" : (((C || ((--this.Ctimer) > 0)) ? "k_fw" : "k"))))));
} else if (this.jumps) {
this.gotoAndStop(4);
this._y = this._y + this.vy;
this.vy = this.vy + this.a;
this.fallFromJump = 1;
if (this.vy > 0) {
this.falls = !((this.jumps = false));
}
}
var nx = (this._x + (this.vx * 9));
this._x = nx;
if (this._x < -45) {
_root.heroK = this.kula;
_root.heroM = this.m;
this._parent._parent.play();
}
};
Symbol 279 MovieClip [eHead] Frame 85
stop();
Symbol 280 MovieClip [eHand] Frame 1
#initclip 10
_eh = function () {
this.init();
};
_eh.prototype = new MovieClip();
_eh.prototype.init = function () {
this.nrg = 25;
this.box = this.box.getBounds(this);
_root.ehands = 0;
};
_eh.prototype.hit = function () {
this.nrg--;
if (this.nrg < 0) {
_root.pkt = _root.pkt + 100;
this.l.l.l.play();
if (_root.ehands < 1) {
_root.ehands++;
} else {
this._parent.attachMovie("eHead", "glowa", this.getDepth(), {_x:270, _y:210});
delete _root.ehands;
}
this.removeMovieClip();
}
};
Object.registerClass("eHand", _eh);
#endinitclip
stop();
Symbol 287 MovieClip Frame 1
stop();
Symbol 287 MovieClip Frame 2
stop();
Symbol 288 MovieClip [gun] Frame 1
#initclip 11
_root.k2_cnt = 0;
_gun = function () {
this.init();
};
_gun.prototype = new MovieClip();
_gun.prototype.init = function () {
_root.oEF.addListener(this);
this.nrg = 7;
this.shots = false;
this.closed = false;
this.do_ = random(80);
this.onEF = function () {
var pr = this._parent._parent;
var hero = pr._parent.hero;
var x0 = (this._x + pr._x);
var y0 = ((this._y + pr._y) + 27);
this.do_++;
if (this.shots && ((this.do_ % 4) == 0)) {
var dr;
var dx = (hero._x - x0);
var dy = ((hero._y - y0) - 48);
var d = Math.abs(dx / dy);
var r = ((d < 0.25) ? 90 : (((d < 0.666666666666667) ? 67.5 : (((d < 1.5) ? 45 : (((d < 4) ? 22.5 : 0)))))));
if (dx < 0) {
r = 180 - r;
}
if (dy < 0) {
r = -r;
}
if (this.go) {
this.dz._rotation = r;
this.go = 0;
}
dr = this.dz._rotation - r;
while (dr > 180) {
dr = dr - 360;
}
while (dr < -180) {
dr = dr + 360;
}
if (dr != 0) {
this.dz._rotation = this.dz._rotation + (((dr < 0) ? 1 : -1) * 5.625);
} else if ((this.do_ % 28) == 0) {
pr.attachMovie("kula2", "kk" + _root.k_cnt, 1000 + (_root.k_cnt++), {_x:this._x, _y:this._y + 27, r:r});
_root.k_cnt = _root.k_cnt % 50;
}
if ((x0 < 20) || (y0 > 460)) {
this.shots = !((this.closed = true));
this.dz.gotoAndStop(1);
this.dz._rotation = 0;
this.box = undefined;
return(undefined);
}
} else if (!this.closed) {
if (((y0 > 20) && (x0 < 540)) && (!this.shots)) {
this.dz.gotoAndStop(2);
this.go = (this.shots = true);
this.box = this.box.getBounds(this);
return(undefined);
}
} else if ((x0 < -50) || (y0 > 530)) {
_root.oEF.removeListener(this);
this.removeMovieClip();
}
};
};
_gun.prototype.hit = function () {
this.nrg--;
if (this.nrg < 0) {
_root.oEF.removeListener(this);
this.swapDepths(99999);
this._parent._parent.attachMovie("Boom", "b", this.getDepth(), {_x:this._x - 75, _y:this._y - 50, _xscale:150, _yscale:150});
_root.pkt = _root.pkt + 35;
this.removeMovieClip();
}
};
Object.registerClass("gun", _gun);
#endinitclip
Symbol 306 MovieClip Frame 1
_root.ps.addListener(this);
Symbol 310 MovieClip Frame 1
_root.ps.addListener(this);
Symbol 311 MovieClip Frame 1
_root.ps.addListener(this);
Symbol 321 MovieClip Frame 1
_root.ps.addListener(this);
Symbol 325 MovieClip Frame 1
_root.ps.addListener(this);
Symbol 332 MovieClip Frame 1
_root.ps.addListener(this);
Symbol 340 MovieClip Frame 1
_root.ps.addListener(this);
Symbol 340 MovieClip Frame 14
stop();
Symbol 341 MovieClip [hero] Frame 1
#initclip 2
_root.oEF = {};
ASBroadcaster.initialize(_root.oEF);
_root.ps = {};
ASBroadcaster.initialize(_root.ps);
Object.prototype.remEl = function (arr) {
var i = 0;
while (i < arr.length) {
if (arr[i] == this) {
arr.splice(i, 1);
_root.oEF.removeListener(this);
this.removeMovieClip();
return(undefined);
}
i++;
}
};
_hero = function () {
};
_hero.prototype = new MovieClip();
_hero.prototype.hit = function () {
if (this.immo) {
return(undefined);
}
this.gotoAndStop(6);
this.kaput = (this.falls = !((this.runs = (this.jumps = false))));
};
_hero.prototype.nextLive = function () {
this.LiveCnt = 0;
_root.lives--;
this.onEF = function () {
this.LiveCnt++;
if (this.LiveCnt > 40) {
if (_root.lives > 0) {
_root.heroK = undefined;
_root.heroM = undefined;
this.immo = 75;
this._x = 50;
if (_root.level != 3) {
this._y = 30;
} else {
this._y = 200;
}
this.scrollPlat = false;
delete this.onEF;
this.gotoAndStop(4);
this.runs = (this.falls = (this.kaput = !((this.jumps = true))));
this.vy = 0;
this.init();
} else {
this._parent._parent.gotoAndPlay("kaput");
}
}
};
};
_hero.prototype.szczel = function (D, L, R, U) {
var sOK = this.shotOK;
if (sOK && (!this.kaput)) {
var pl = this._parent.plat;
var len = this.shArr.length;
if (len > ((this.kula == "kulaS") ? 1 : 7)) {
return(undefined);
}
this.shotOK = 0;
pl.attachMovie(this.kula, "k" + this.shCount, 50 + this.shCount, {_x:(this._x - pl._x) + ((this._xscale > 0) ? -15 : 15), _y:((this._y - pl._y) - 60) + ((D && (R || (L))) ? 20 : 0), d:this.toShotDir, arr:this.shArr, mach:this.m});
this.shArr.push(pl["k" + this.shCount]);
this.shCount++;
this.shCount = this.shCount % 10;
return(undefined);
}
};
_hero.prototype.init = function () {
_root.oEF.addListener(this);
this.onKeyDown = function () {
if (_root.pause) {
return(undefined);
}
if ((Key.getCode() == 32) && (this._y < 525)) {
var U = Key.isDown(38);
var D = Key.isDown(40);
var r = this.runs;
var jOK2 = this.jumpOK2;
if (((r && (D)) && (!this._parent.plat.plat.hitTest(this._x, this._y + 27, 1))) && (jOK2)) {
this.fallFromJump = 0;
this.falls = !((this.jumpOK2 = (this.runs = 0)));
this.fvx = 0;
this._y = this._y + 10;
this.vy = 13;
this.a = 1.8;
return(undefined);
}
if (!r) {
this.jumpOK2 = false;
} else if (((this.jumpOK && (jOK2)) && (!D)) && (!U)) {
this.y0 = this._y;
this.vy = -25;
this.a = 2.7;
this.jumpOK = (this.runs = !((this.jumps = true)));
}
}
};
this.onKeyUp = function () {
if (_root.pause) {
return(undefined);
}
if (!Key.isDown(32)) {
this.jumpOK2 = true;
}
if (!Key.isDown(17)) {
this.shotOK = true;
}
};
Key.addListener(this);
this.kula = ((_root.heroK == undefined) ? "kula" : (_root.heroK));
this.m = ((_root.heroM == undefined) ? 0 : (_root.heroM));
this.shArr = [];
this.shCount = 0;
this.jumpOK2 = (this.jumpOK = (this.shotOK = 1));
if (this.runs == undefined) {
this.runs = 1;
}
this.korps = ["k", "k_up", "k_fw", "k_dw"];
this.gun_dir = function (arg) {
for (var i in this.korps) {
var k = this.korps[i];
if (k == arg) {
this[k]._visible = 1;
} else {
this[k]._visible = 0;
}
}
};
this.onEF = function () {
if (this.immo) {
this.immo--;
this._visible = !this._visible;
if (this.immo == 0) {
this._visible = 1;
}
}
if ((this._y > 540) || ((this._y > 510) && (_root.level > 1))) {
this._y = this._y + 200;
this.nextLive();
}
if (this.m && (!this.shotOK)) {
this.m--;
if (this.m < 2) {
this.m = 6;
this.shotOK = 1;
}
}
var pr = this._parent;
var plat = pr.plat.plat;
var L = Key.isDown(37);
var R = Key.isDown(39);
var U = Key.isDown(38);
var D = Key.isDown(40);
var C = Key.isDown(17);
if (C) {
this.Ctimer = 5;
}
if (pr.plat.enemy.hitTest(this._x, this._y - ((this._currentframe == 3) ? 27 : 54), 1) && (!this.kaput)) {
this.hit();
}
if (this.hitTest(pr.plat.bonus)) {
pr.plat.bonus.bonus();
}
this.pkt = {x:this._x, y:this._y};
pr.localToGlobal(this.pkt);
this.vx = ((R && (L)) ? 0 : ((L ? -1 : ((R ? 1 : 0)))));
this.toShotDir = [U, R, D, L, this.jumps, this.fallFromJump, this._xscale];
if (C) {
this.szczel(D, L, R, U);
}
if (this.runs && (!plat.hitTest(this._x, this._y, 1))) {
this.fvx = 0.6 * ((this._xscale < 0) ? 1 : -1);
this.runs = !((this.falls = true));
this.vy = 9;
this.a = 1.8;
this.fallFromJump = 0;
this.y0 = this._y;
}
if (this.falls) {
if (this.kaput) {
this.vx = (0.8 * this._xscale) / 100;
} else if (!this.fallFromJump) {
this._xscale = ((this.vx < 0) ? 100 : (((this.vx > 0) ? -100 : (this._xscale))));
this.gotoAndStop(5);
if (this._y > (this.y0 + 77)) {
this.vx = this.vx * 0.75;
} else {
this.vx = this.fvx;
}
} else {
this.vx = this.vx * 0.9;
}
((this.vy < 23) ? ((this.vy = this.vy + this.a)) : ((this.vy = 23)));
this._y = this._y + this.vy;
if (plat.hitTest(this._x, this._y, 1)) {
if (this.kaput) {
delete this.onEF;
this.nextLive();
} else {
this.runs = !((this.fallFromJump = (this.falls = false)));
this.jumpIv = setInterval(function (th) {
th.jumpOK = 1;
clearInterval(th.jumpIv);
}, 20, this);
}
}
while (plat.hitTest(this._x, this._y, 1) && (plat.hitTest(this._x, this._y - 1, 1))) {
this.pkt.y--;
this._y--;
}
} else if (this.runs) {
this.scrollPlat = true;
this._xscale = ((this.vx < 0) ? 100 : (((this.vx > 0) ? -100 : (this._xscale))));
if (this.vx != 0) {
this.gotoAndStop(2);
this.gun_dir((U ? "k_up" : ((D ? "k_dw" : (((C || ((--this.Ctimer) > 0)) ? "k_fw" : "k"))))));
} else if (D) {
this.gotoAndStop(3);
} else {
this.gotoAndStop(1);
if (U) {
this.k._visible = !((this.k_up._visible = 1));
} else {
this.k._visible = !((this.k_up._visible = 0));
}
}
} else if (this.jumps) {
this.vx = this.vx * 0.9;
this.gotoAndStop(4);
this._y = this._y + this.vy;
this.vy = this.vy + this.a;
this.fallFromJump = 1;
if (this.vy > 0) {
this.falls = !((this.jumps = false));
}
}
var d;
var nx = (this._x + (this.vx * 9));
var dPl = (pr.plat._x + pr.plat.plat._width);
if ((nx > 20) && (nx < 540)) {
this._x = nx;
}
if (((((d = this._x - 310)) > 0) && (dPl > 560)) && (pr.plat.moveXOK)) {
pr.plat._x = pr.plat._x - d;
this._x = this._x - d;
}
if (((((d = this._y - 240)) < 0) && (pr.plat.moveYOK)) && (this.scrollPlat)) {
pr.plat._y = pr.plat._y - d;
this._y = this._y - d;
}
};
};
Object.registerClass("hero", _hero);
#endinitclip
stop();
Symbol 341 MovieClip [hero] Frame 2
stop();
Symbol 344 MovieClip Frame 1
stop();
Symbol 344 MovieClip Frame 2
stop();
Symbol 346 MovieClip [kula] Frame 1
#initclip 19
sh = function () {
this.init();
};
sh.prototype = new MovieClip();
sh.prototype.init = function () {
this.stop();
if (this.mach != 0) {
this.kk.gotoAndStop(2);
}
var dr = this.d;
var U = dr[0];
var R = dr[1];
var D = dr[2];
var L = dr[3];
var J = (dr[4] || (dr[5]));
var dir = (-int(dr[6] / 100));
var v = [];
if (J) {
if (D) {
v = (L ? ([-0.8, 0.7]) : ((R ? ([0.8, 0.7]) : ([0, 1]))));
this._y = this._y + 10;
this._x = this._x - (dir * 10);
} else if (U) {
v = (L ? ([-0.8, -0.7]) : ((R ? ([0.8, -0.7]) : ([0, -1]))));
this._y = this._y - 10;
this._x = this._x - (dir * 10);
} else {
v = (L ? ([-1, 0]) : ((R ? ([1, 0]) : ([dir, 0]))));
}
} else if (D) {
v = (L ? ([-0.8, 0.7]) : ((R ? ([0.8, 0.7]) : ([dir, 0]))));
this._y = this._y + ((L || (R)) ? 10 : 40);
this._x = this._x + (dir * 40);
} else if (U) {
v = (L ? ([-0.8, -0.7]) : ((R ? ([0.8, -0.7]) : ([0, -1]))));
this._y = this._y - 20;
this._x = this._x - (dir * ((L || (R)) ? -25 : 10));
} else {
v = [dir, 0];
}
this.vx = v[0];
this.vy = v[1];
_root.shot_sound.start(1);
this.onEF = function () {
this._x = this._x + (this.vx * 20);
this._y = this._y + (this.vy * 20);
var pkt = {x:this._x, y:this._y};
var en = this._parent.enemy;
var i;
var dx;
var dy;
var e;
var w;
this._parent.localToGlobal(pkt);
if (en.hitTest(pkt.x, pkt.y, 1)) {
for (i in en) {
e = en[i];
dx = this._x - e._x;
dy = this._y - e._y;
if ((dx <= e.box.xMax) && (dx >= e.box.xMin)) {
if ((dy <= e.box.yMax) && (dy > e.box.yMin)) {
e.hit();
this.play();
}
}
}
}
if ((((pkt.x < -10) || (pkt.x > 640)) || (pkt.y < -50)) || (pkt.y > 520)) {
this.remEl(this.arr);
}
};
_root.oEF.addListener(this);
};
Object.registerClass("kula", sh);
#endinitclip
stop();
Symbol 346 MovieClip [kula] Frame 2
delete this.onEF;
Symbol 346 MovieClip [kula] Frame 4
stop();
this.remEl(this.arr);
Symbol 348 MovieClip [kula2] Frame 1
#initclip 18
k2 = function () {
this.init();
};
k2.prototype = new MovieClip();
k2.prototype.init = function () {
this.stop();
this.vx = Math.cos((this.r * Math.PI) / 180);
this.vy = Math.sin((this.r * Math.PI) / 180);
_root.mgn_sound.start(0.2);
this.onEF = function () {
var pr = this._parent._parent;
var pkt = {x:this._x, y:this._y};
var en = pr.hero.box;
this._parent.localToGlobal(pkt);
if (en.hitTest(pkt.x, pkt.y, 1)) {
en._parent.hit();
_root.oEF.removeListener(this);
delete this.onEF;
this.removeMovieClip();
}
if ((((pkt.x < -10) || (pkt.x > 640)) || (pkt.y < -10)) || (pkt.y > 520)) {
_root.oEF.removeListener(this);
delete this.onEF;
this.removeMovieClip();
}
this._x = this._x + (this.vx * 10);
this._y = this._y + (this.vy * 10);
};
_root.oEF.addListener(this);
};
Object.registerClass("kula2", k2);
#endinitclip
stop();
Symbol 348 MovieClip [kula2] Frame 4
Symbol 352 MovieClip Frame 1
_root.ps.addListener(this);
Symbol 353 MovieClip [kula4] Frame 1
#initclip 20
k4 = function () {
this.init();
};
k4.prototype = new MovieClip();
k4.prototype.init = function () {
this.stop();
this.vy = 2;
this.onEF = function () {
var pr = this._parent._parent;
var pkt = {x:this._x, y:this._y};
var en = pr.hero.box;
this._parent.localToGlobal(pkt);
if (en.hitTest(pkt.x, pkt.y, 1)) {
en._parent.hit();
_root.oEF.removeListener(this);
delete this.onEF;
this.removeMovieClip();
}
if (pkt.y > 520) {
_root.oEF.removeListener(this);
delete this.onEF;
this.removeMovieClip();
}
this.vy = this.vy + 0.2;
this._x = this._x + this.vx;
this._y = this._y + this.vy;
};
_root.oEF.addListener(this);
this.oo.gotoAndPlay(random(16));
};
Object.registerClass("kula4", k4);
#endinitclip
stop();
Symbol 356 MovieClip Frame 1
stop();
Symbol 356 MovieClip Frame 2
delete this._parent.onEF;
Symbol 356 MovieClip Frame 4
stop();
this._parent.remEl(this._parent.arr);
Symbol 357 MovieClip [kulaF] Frame 1
#initclip 16
shF = function () {
this.init();
};
shF.prototype = new MovieClip();
shF.prototype.init = function () {
this.stop();
_root.ps.addListener(this);
var dr = this.d;
var U = dr[0];
var R = dr[1];
var D = dr[2];
var L = dr[3];
var J = (dr[4] || (dr[5]));
var dir = (-int(dr[6] / 100));
var v = [];
if (J) {
if (D) {
v = (L ? ([-0.8, 0.7]) : ((R ? ([0.8, 0.7]) : ([0, 1]))));
this._y = this._y + 10;
this._x = this._x - (dir * 10);
} else if (U) {
v = (L ? ([-0.8, -0.7]) : ((R ? ([0.8, -0.7]) : ([0, -1]))));
this._y = this._y - 10;
this._x = this._x - (dir * 10);
} else {
v = (L ? ([-1, 0]) : ((R ? ([1, 0]) : ([dir, 0]))));
}
} else if (D) {
v = (L ? ([-0.8, 0.7]) : ((R ? ([0.8, 0.7]) : ([dir, 0]))));
this._y = this._y + ((L || (R)) ? 10 : 40);
this._x = this._x + (dir * 40);
} else if (U) {
v = (L ? ([-0.8, -0.7]) : ((R ? ([0.8, -0.7]) : ([0, -1]))));
this._y = this._y - 20;
this._x = this._x - (dir * ((L || (R)) ? -25 : 10));
} else {
v = [dir, 0];
}
this.vx = v[0];
this.vy = v[1];
_root.shot_sound.start(1);
this.onEF = function () {
this._x = this._x + (this.vx * 20);
this._y = this._y + (this.vy * 20);
var pkt1 = {x:this._x, y:this._y};
var pkt2 = {x:this._x, y:this._y + 20};
var pkt3 = {x:this._x, y:this._y - 20};
var en = this._parent.enemy;
var i;
var dx;
var dy;
var e;
var w;
this._parent.localToGlobal(pkt1);
this._parent.localToGlobal(pkt2);
this._parent.localToGlobal(pkt3);
if ((en.hitTest(pkt1.x, pkt.y1, 1) || (en.hitTest(pkt2.x, pkt.y2, 1))) || (en.hitTest(pkt3.x, pkt3.y, 1))) {
for (i in en) {
e = en[i];
dx = this._x - e._x;
dy = this._y - e._y;
if ((dx <= e.box.xMax) && (dx >= e.box.xMin)) {
if (((dy - 25) <= e.box.yMax) && ((dy + 25) > e.box.yMin)) {
e.hit();
this.stop();
this.sk.play();
}
}
}
}
if ((((pkt1.x < -50) || (pkt1.x > 640)) || (pkt1.y < -10)) || (pkt1.y > 520)) {
this.remEl(this.arr);
}
};
_root.oEF.addListener(this);
};
Object.registerClass("kulaF", shF);
#endinitclip
play();
Symbol 360 MovieClip [kulaS] Frame 1
#initclip 17
shS = function () {
this.init();
};
shS.prototype = new MovieClip();
shS.prototype.init = function () {
this.stop();
var dr = this.d;
var U = dr[0];
var R = dr[1];
var D = dr[2];
var L = dr[3];
var J = (dr[4] || (dr[5]));
var dir = (-int(dr[6] / 100));
var v = [];
if (J) {
if (D) {
v = (L ? ([-0.8, 0.7]) : ((R ? ([0.8, 0.7]) : ([0, 1]))));
this._y = this._y + 10;
this._x = this._x - (dir * 10);
} else if (U) {
v = (L ? ([-0.8, -0.7]) : ((R ? ([0.8, -0.7]) : ([0, -1]))));
this._y = this._y - 10;
this._x = this._x - (dir * 10);
} else {
v = (L ? ([-1, 0]) : ((R ? ([1, 0]) : ([dir, 0]))));
}
} else if (D) {
v = (L ? ([-0.8, 0.7]) : ((R ? ([0.8, 0.7]) : ([dir, 0]))));
this._y = this._y + ((L || (R)) ? 10 : 40);
this._x = this._x + (dir * 40);
} else if (U) {
v = (L ? ([-0.8, -0.7]) : ((R ? ([0.8, -0.7]) : ([0, -1]))));
this._y = this._y - 20;
this._x = this._x - (dir * ((L || (R)) ? -25 : 10));
} else {
v = [dir, 0];
}
if ((this.vx == undefined) && (this.vy == undefined)) {
this.vx = v[0];
this.vy = v[1];
}
_root.shot_sound.stop();
_root.shot_sound.start(1);
_root.shot_sound.start(0.9);
if (this.dup == undefined) {
var Mt = Math;
var a = Mt.atan2(v[1], v[0]);
var a1 = (a + 0.4);
var a2 = (a - 0.4);
var a3 = (a + 0.2);
var a4 = (a - 0.2);
var vx1 = Mt.cos(a1);
var vy1 = Mt.sin(a1);
var vx2 = Mt.cos(a2);
var vy2 = Mt.sin(a2);
(vx3 = Mt.cos(a3));
(vy3 = Mt.sin(a3));
(vx4 = Mt.cos(a4));
(vy4 = Mt.sin(a4));
this.duplicateMovieClip(this._name + "x1", (100 * this.getDepth()) + 1, {rem:true, vx:vx1, vy:vy1, dup:true});
this.duplicateMovieClip(this._name + "x2", (100 * this.getDepth()) + 2, {rem:true, vx:vx2, vy:vy2, dup:true});
this.duplicateMovieClip(this._name + "x3", (100 * this.getDepth()) + 3, {rem:true, vx:vx3, vy:vy3, dup:true});
this.duplicateMovieClip(this._name + "x4", (100 * this.getDepth()) + 4, {rem:true, vx:vx4, vy:vy4, dup:true});
}
this.onEF = function () {
this._x = this._x + (this.vx * 20);
this._y = this._y + (this.vy * 20);
var pkt = {x:this._x, y:this._y};
var en = this._parent.enemy;
var i;
var dx;
var dy;
var e;
var w;
this._parent.localToGlobal(pkt);
if (en.hitTest(pkt.x, pkt.y, 1)) {
for (i in en) {
e = en[i];
dx = this._x - e._x;
dy = this._y - e._y;
if ((dx <= e.box.xMax) && (dx >= e.box.xMin)) {
if ((dy <= e.box.yMax) && (dy > e.box.yMin)) {
e.hit();
this.play();
}
}
}
}
if ((((pkt.x < -50) || (pkt.x > 640)) || (pkt.y < -10)) || (pkt.y > 520)) {
if (this.rem) {
this.removeMovieClip();
} else {
this.remEl(this.arr);
}
}
};
_root.oEF.addListener(this);
};
Object.registerClass("kulaS", shS);
#endinitclip
stop();
Symbol 360 MovieClip [kulaS] Frame 2
delete this.onEF;
Symbol 360 MovieClip [kulaS] Frame 4
stop();
if (this.rem) {
this.removeMovieClip();
} else {
this.remEl(this.arr);
}
Symbol 361 MovieClip [mgun] Frame 1
#initclip 13
_root.k2_cnt = 0;
_mgun = function () {
this.init();
};
_mgun.prototype = new MovieClip();
_mgun.prototype.init = function () {
_root.oEF.addListener(this);
this.nrg = 7;
this.shots = false;
this.closed = false;
this.do_ = random(80);
this.onEF = function () {
var pr = this._parent._parent;
var hero = pr._parent.hero;
var x0 = (this._x + pr._x);
var y0 = ((this._y + pr._y) + 27);
this.do_++;
if (this.shots && ((this.do_ % 4) == 0)) {
var dr;
var dx = (hero._x - x0);
var dy = ((hero._y - y0) - 48);
var d = Math.abs(dx / dy);
var r = ((d < 0.25) ? 90 : (((d < 0.666666666666667) ? 67.5 : (((d < 1.5) ? 45 : (((d < 4) ? 22.5 : 0)))))));
if (dx < 0) {
r = 180 - r;
}
if (dy < 0) {
r = -r;
}
if (this.go) {
this.dz._rotation = r;
this.go = 0;
}
dr = this.dz._rotation - r;
while (dr > 180) {
dr = dr - 360;
}
while (dr < -180) {
dr = dr + 360;
}
if (dr != 0) {
this.dz._rotation = this.dz._rotation + (((dr < 0) ? 1 : -1) * 5.625);
} else if ((((this.do_ % 52) == 44) || ((this.do_ % 52) == 48)) || ((this.do_ % 52) == 0)) {
pr.attachMovie("kula2", "kk" + _root.k_cnt, 1000 + (_root.k_cnt++), {_x:this._x, _y:this._y + 27, r:r});
_root.k_cnt = _root.k_cnt % 50;
}
if ((x0 < 20) || (y0 > 460)) {
this.shots = !((this.closed = true));
this.dz.gotoAndStop(1);
this.dz._rotation = 0;
this.box = undefined;
return(undefined);
}
} else if (!this.closed) {
if (((y0 > 20) && (x0 < 540)) && (!this.shots)) {
this.dz.gotoAndStop(2);
this.go = (this.shots = true);
this.box = this.box.getBounds(this);
return(undefined);
}
} else if ((x0 < -50) || (y0 > 530)) {
_root.oEF.removeListener(this);
this.removeMovieClip();
}
};
};
_mgun.prototype.hit = function () {
this.nrg--;
if (this.nrg < 0) {
_root.oEF.removeListener(this);
this.swapDepths(99999);
this._parent._parent.attachMovie("Boom", "b", this.getDepth(), {_x:this._x - 75, _y:this._y - 50, _xscale:150, _yscale:150});
_root.pkt = _root.pkt + 40;
this.removeMovieClip();
}
};
Object.registerClass("mgun", _mgun);
#endinitclip
Symbol 374 MovieClip Frame 1
stop();
Symbol 374 MovieClip Frame 2
stop();
Symbol 374 MovieClip Frame 3
stop();
Symbol 374 MovieClip Frame 4
stop();
Symbol 375 MovieClip [snp] Frame 1
#initclip 14
_root.k2_cnt = 0;
_snp = function () {
this.init();
};
_snp.prototype = new MovieClip();
_snp.prototype.init = function () {
_root.oEF.addListener(this);
this.shots = false;
this.closed = false;
this.do_ = 20 + random(20);
this.onEF = function () {
var pr = this._parent._parent;
var hero = pr._parent.hero;
var x0 = (this._x + pr._x);
var y0 = ((this._y + pr._y) + 20);
this.do_++;
if (this.shots && ((this.do_ % 4) == 0)) {
var dr;
var dx = (hero._x - x0);
var dy = ((hero._y - y0) - 48);
var d = Math.abs(dx / dy);
var rot = (15 * Math.round((Math.atan2(dy, dx) * 180) / 47.1238898038469));
var r = (((rot <= 150) && (rot >= 30)) ? 2 : ((((rot <= -75) && (rot >= -105)) ? 4 : ((((rot < -15) && (rot > -165)) ? 3 : 1)))));
if (dx < 0) {
this._xscale = 100;
if ((rot < 120) && (rot >= 90)) {
rot = 120;
}
} else if (dx > 0) {
this._xscale = -100;
if ((rot > 60) && (rot <= 90)) {
rot = 60;
}
}
this.snp.gotoAndStop(r);
if ((this.do_ % 28) == 0) {
pr.attachMovie("kula2", "kk" + _root.k_cnt, 1000 + (_root.k_cnt++), {_x:this._x + (((this._xscale < 0) ? 1 : -1) * (((r == 1) || (r == 3)) ? 20 : (((r == 2) ? 25 : 10)))), _y:this._y + ((r == 3) ? -5 : (((r == 4) ? -15 : (((r == 2) ? 45 : 18))))), r:rot});
_root.k_cnt = _root.k_cnt % 50;
}
if ((x0 < 5) || (y0 > 485)) {
this.shots = !((this.closed = true));
this.box = undefined;
return(undefined);
}
} else if (!this.closed) {
if (((y0 > 20) && (x0 < 555)) && (!this.shots)) {
this.shots = true;
this.box = this.box.getBounds(this);
return(undefined);
}
} else if ((x0 < -50) || (y0 > 530)) {
_root.oEF.removeListener(this);
this.removeMovieClip();
}
};
};
_snp.prototype.hit = function () {
_root.oEF.removeListener(this);
this.swapDepths(99999);
this._parent._parent.attachMovie("blysk", "b", this.getDepth(), {_x:this._x, _y:this._y + 130, _xscale:150, _yscale:150});
_root.pkt = _root.pkt + 25;
this.removeMovieClip();
};
Object.registerClass("snp", _snp);
#endinitclip
Symbol 378 MovieClip [blysk] Frame 4
stop();
this.removeMovieClip();
Symbol 379 MovieClip [wyb] Frame 1
_root.ps.addListener(this);
Symbol 379 MovieClip [wyb] Frame 26
this.removeMovieClip();
Symbol 386 MovieClip Frame 1
pole.splice(0);
platA.splice(0);
tloA.splice(0);
gunA.splice(0);
pole = tab.split("|");
for (i in pole) {
pole[i] = pole[i].split("");
}
platA = [];
tloA = [];
gunA = [];
i = 0;
while (i < pole.length) {
platA[i] = [];
tloA[i] = [];
gunA[i] = [];
j = 0;
while (j < pole[i].length) {
var p = pole[i][j];
platA[i][j] = (((p == "S") || (p == "-")) ? "sm2" : (((p == "#") ? "big" : (((p == "_") ? "sm1" : (((p == "=") ? "sm3" : (((p == "*") ? "ruch" : ((((p == "/") || (p == "\\")) ? "vBig" : (((p == "+") ? "most" : (((p == "U") ? "upper" : undefined)))))))))))))));
switch (p) {
case " " :
tloA[i][j] = ((tloA[i - 1][j] == undefined) ? undefined : "nic");
break;
case "T" :
tloA[i][j] = ((tloA[i - 1][j] == undefined) ? undefined : "nic");
gunA[i][j] = "gun";
break;
case "t" :
tloA[i][j] = ((tloA[i - 1][j] == undefined) ? undefined : "nic");
gunA[i][j] = "mgun";
break;
case "i" :
tloA[i][j] = "tree";
break;
case "-" :
tloA[i][j] = "up";
break;
case "*" :
tloA[i][j] = "ruchG";
break;
case "_" :
tloA[i][j] = ((tloA[i - 1][j] == undefined) ? "mid0" : "mid1");
break;
case "R" :
tloA[i][j] = "nic";
gunA[i][j] = "rr";
break;
case "F" :
tloA[i][j] = "nic";
gunA[i][j] = "flm";
break;
case "M" :
tloA[i][j] = "nic";
gunA[i][j] = "mchn";
break;
case "S" :
tloA[i][j] = "up";
gunA[i][j] = "snp";
break;
case "=" :
tloA[i][j] = "upmid";
break;
case "#" :
tloA[i][j] = "down";
break;
case "\\" :
tloA[i][j] = "down";
break;
case "/" :
tloA[i][j] = "down";
break;
case "W" :
tloA[i][j] = "wat1";
break;
case "w" :
tloA[i][j] = "wat2";
}
j++;
}
i++;
}
poleE = tabE.split("");
plat.initPL = function (j) {
var G = this.tlo;
var pl = this.plat;
var en = this.enemy;
var l = platA.length;
var k = (Math.max(-1, l - 7) * 80);
(lin = ((pl["lin" + (j % 9)] == undefined) ? (pl.createEmptyMovieClip("lin" + (j % 9), j % 9)) : (pl["lin" + (j % 9)])));
(linG = ((G["lin" + (j % 9)] == undefined) ? (G.createEmptyMovieClip("lin" + (j % 9), j % 9)) : (G["lin" + (j % 9)])));
if (j == (platA[0].length - 2)) {
this.enemy.attachMovie("bos" + _root.level, "bos", 9999 + this.enCnt, {_x:720 - this._x});
}
linG._x = (lin._x = 80 * j);
var i = 0;
while (i < l) {
lin.attachMovie(platA[i][j], "el" + i, i, {_y:((i * 80) + 50) - k, _visible:((platA[i][j] != "most") ? false : true)});
linG.attachMovie(tloA[i][j] + _root.level, "el" + i, i, {_y:((i * 80) + 50) - k});
i++;
}
};
plat.initGun = function (x, y) {
var i;
var g;
var l = gunA.length;
var k = (Math.max(-1, l - 7) * 80);
if (y == undefined) {
i = 0;
while (i < l) {
g = gunA[i][x];
if (g != undefined) {
this.enemy.attachMovie(g, "en" + this.enCnt, this.enCnt++, {_y:((i * 80) + ((g == "snp") ? -28 : 50)) - k, _x:(80 * x) + 40});
}
i++;
}
} else if (x == undefined) {
y = 34 - y;
i = 0;
while (i <= 7) {
g = gunA[y][7 - i];
if (g != undefined) {
this.enemy.attachMovie(g, "en" + this.enCnt, this.enCnt++, {_y:((y * 80) + ((g == "snp") ? -28 : 50)) - k, _x:(80 * (7 - i)) + 40});
}
i++;
}
}
};
plat.enCnt = 0;
plat.initEn = function (j, l) {
var en = this.enemy;
var i = random(6);
if ((poleE[j] != 0) && (random(Math.min(5, poleE[j])) == 0)) {
en.attachMovie("bg", "en" + this.enCnt, this.enCnt++, {_y:((i * 80) + 50) - this._y, _x:80 * j, vx:l});
}
};
plat.remPL = function (j) {
var p = this.plat["lin" + (j % 9)];
var t = this.tlo["lin" + (j % 9)];
var i;
for (i in p) {
p[i].unloadMovie();
}
for (i in t) {
t[i].unloadMovie();
}
};
j = 0;
while (j < 8) {
plat.initPL(j);
plat.initGun(undefined, j - 1);
j++;
}
plat.T = 0;
plat.onEF = function () {
var x = int(this._x / 80);
var n = (int(this.x / 80) != x);
var y = int(this._y / 80);
var ny = (int(this.y / 80) != y);
if ((getTimer() - this.T) > (1000 + random(1000))) {
this.initEn(8 - x, -1);
this.initEn(-x, 1);
this.T = getTimer();
}
if (n) {
this.initGun(7 - x, undefined);
this.initPL(7 - x);
this.remPL(-1 - x);
}
this.x = this._x;
this.y = this._y;
};
_root.oEF.addListener(plat);
hero.init();
Symbol 400 MovieClip Frame 1
stop();
Symbol 402 MovieClip Frame 1
pole.splice(0);
platA.splice(0);
tloA.splice(0);
gunA.splice(0);
pole = tab.split("|");
for (i in pole) {
pole[i] = pole[i].split("");
}
platA = [];
tloA = [];
gunA = [];
i = 0;
while (i < pole.length) {
platA[i] = [];
tloA[i] = [];
gunA[i] = [];
j = 0;
while (j < pole[i].length) {
var p = pole[i][j];
platA[i][j] = (((p == "S") || (p == "-")) ? "sm2" : (((p == "#") ? "big" : (((p == "_") ? "sm1" : (((p == "=") ? "sm3" : (((p == "*") ? "ruch" : ((((p == "/") || (p == "\\")) ? "vBig" : (((p == "+") ? "most" : (((p == "U") ? "upper" : undefined)))))))))))))));
switch (p) {
case " " :
tloA[i][j] = ((tloA[i - 1][j] == undefined) ? undefined : "nic");
break;
case "T" :
tloA[i][j] = ((tloA[i - 1][j] == undefined) ? undefined : "nic");
gunA[i][j] = "gun";
break;
case "t" :
tloA[i][j] = ((tloA[i - 1][j] == undefined) ? undefined : "nic");
gunA[i][j] = "mgun";
break;
case "i" :
tloA[i][j] = "tree";
break;
case "-" :
tloA[i][j] = "up";
break;
case "*" :
tloA[i][j] = "ruchG";
break;
case "_" :
tloA[i][j] = ((tloA[i - 1][j] == undefined) ? "mid0" : "mid1");
break;
case "R" :
tloA[i][j] = "nic";
gunA[i][j] = "rr";
break;
case "F" :
tloA[i][j] = "nic";
gunA[i][j] = "flm";
break;
case "M" :
tloA[i][j] = "nic";
gunA[i][j] = "mchn";
break;
case "S" :
tloA[i][j] = "up";
gunA[i][j] = "snp";
break;
case "=" :
tloA[i][j] = "upmid";
break;
case "#" :
tloA[i][j] = "down";
break;
case "\\" :
tloA[i][j] = "down";
break;
case "/" :
tloA[i][j] = "down";
break;
case "W" :
tloA[i][j] = "wat1";
break;
case "w" :
tloA[i][j] = "wat2";
}
j++;
}
i++;
}
poleE = tabE.split("");
plat.initPL = function (j) {
var G = this.tlo;
var pl = this.plat;
var en = this.enemy;
var l = platA.length;
var k = (Math.max(-1, l - 7) * 80);
(lin = ((pl["lin" + (j % 9)] == undefined) ? (pl.createEmptyMovieClip("lin" + (j % 9), j % 9)) : (pl["lin" + (j % 9)])));
(linG = ((G["lin" + (j % 9)] == undefined) ? (G.createEmptyMovieClip("lin" + (j % 9), j % 9)) : (G["lin" + (j % 9)])));
if (j == (platA[4].length - 2)) {
en.attachMovie("bos" + _root.level, "bos", 9999 + this.enCnt, {_x:575 - this._x, _y:312});
}
if (j == platA[4].length) {
this.onEF = function () {
if ((getTimer() - this.T) > (1000 + random(1000))) {
en.bos.gotoAndPlay(2);
en.attachMovie("bg", "en" + this.enCnt, this.enCnt++, {_y:450 - this._y, _x:80 * (j - 1), vx:-1});
this.T = getTimer();
}
};
}
linG._x = (lin._x = 80 * j);
var i = 0;
while (i < l) {
lin.attachMovie(platA[i][j], "el" + i, i, {_y:((i * 80) + 50) - k, _visible:((platA[i][j] != "most") ? false : true)});
linG.attachMovie(tloA[i][j] + _root.level, "el" + i, i, {_y:((i * 80) + 50) - k});
i++;
}
};
plat.initGun = function (x, y) {
var i;
var g;
var l = gunA.length;
var k = (Math.max(-1, l - 7) * 80);
if (y == undefined) {
i = 0;
while (i < l) {
g = gunA[i][x];
if (g != undefined) {
this.enemy.attachMovie(g, "en" + this.enCnt, this.enCnt++, {_y:((i * 80) + ((g == "snp") ? -28 : 50)) - k, _x:(80 * x) + 40});
}
i++;
}
} else if (x == undefined) {
y = 34 - y;
i = 0;
while (i <= 7) {
g = gunA[y][7 - i];
if (g != undefined) {
this.enemy.attachMovie(g, "en" + this.enCnt, this.enCnt++, {_y:((y * 80) + ((g == "snp") ? -28 : 50)) - k, _x:(80 * (7 - i)) + 40});
}
i++;
}
}
};
plat.enCnt = 0;
plat.initEn = function (j, l) {
var en = this.enemy;
var i = random(6);
if ((poleE[j] != 0) && (random(Math.min(5, poleE[j])) == 0)) {
en.attachMovie("bg", "en" + this.enCnt, this.enCnt++, {_y:((i * 80) + 50) - this._y, _x:80 * j, vx:l});
}
};
plat.remPL = function (j) {
var p = this.plat["lin" + (j % 9)];
var t = this.tlo["lin" + (j % 9)];
var i;
for (i in p) {
p[i].unloadMovie();
}
for (i in t) {
t[i].unloadMovie();
}
};
j = 0;
while (j < 8) {
plat.initPL(j);
plat.initGun(undefined, j - 1);
j++;
}
plat.T = 0;
plat.onEF = function () {
var x = int(this._x / 80);
var n = (int(this.x / 80) != x);
var y = int(this._y / 80);
var ny = (int(this.y / 80) != y);
if ((getTimer() - this.T) > (1000 + random(1000))) {
this.initEn(8 - x, -1);
this.initEn(-x, 1);
this.T = getTimer();
}
if (n) {
this.initGun(7 - x, undefined);
this.initPL(7 - x);
this.remPL(-1 - x);
}
this.x = this._x;
this.y = this._y;
};
_root.oEF.addListener(plat);
hero.init();
Symbol 404 MovieClip Frame 1
pole.splice(0);
platA.splice(0);
tloA.splice(0);
gunA.splice(0);
pole = tab.split("|");
for (i in pole) {
pole[i] = pole[i].split("");
}
platA = [];
tloA = [];
gunA = [];
i = 0;
while (i < pole.length) {
platA[i] = [];
tloA[i] = [];
gunA[i] = [];
j = 0;
while (j < pole[i].length) {
var p = pole[i][j];
platA[i][j] = (((p == "S") || (p == "-")) ? "sm2" : (((p == "#") ? "big" : (((p == "_") ? "sm1" : (((p == "=") ? "sm3" : (((p == "*") ? "ruch" : ((((p == "/") || (p == "\\")) ? "vBig" : (((p == "+") ? "most" : (((p == "U") ? "upper" : undefined)))))))))))))));
switch (p) {
case " " :
tloA[i][j] = ((tloA[i - 1][j] == undefined) ? undefined : "nic");
break;
case "T" :
tloA[i][j] = ((tloA[i - 1][j] == undefined) ? undefined : "nic");
gunA[i][j] = "gun";
break;
case "t" :
tloA[i][j] = ((tloA[i - 1][j] == undefined) ? undefined : "nic");
gunA[i][j] = "mgun";
break;
case "i" :
tloA[i][j] = "tree";
break;
case "-" :
tloA[i][j] = "up";
break;
case "*" :
tloA[i][j] = "ruchG";
break;
case "_" :
tloA[i][j] = (((tloA[i - 1][j] == "ruchG") || (tloA[i - 1][j] == undefined)) ? "mid0" : "mid1");
break;
case "R" :
tloA[i][j] = "nic";
gunA[i][j] = "rr";
break;
case "F" :
tloA[i][j] = "nic";
gunA[i][j] = "flm";
break;
case "M" :
tloA[i][j] = "nic";
gunA[i][j] = "mchn";
break;
case "S" :
tloA[i][j] = "up";
gunA[i][j] = "snp";
break;
case "=" :
tloA[i][j] = "upmid";
break;
case "#" :
tloA[i][j] = "down";
break;
case "\\" :
tloA[i][j] = "down";
break;
case "/" :
tloA[i][j] = "down";
break;
case "W" :
tloA[i][j] = "wat1";
break;
case "w" :
tloA[i][j] = "wat2";
}
j++;
}
i++;
}
poleE = tabE.split("");
plat.initPL = function (j) {
var G = this.tlo;
var pl = this.plat;
var en = this.enemy;
var l = platA.length;
var k = (Math.max(0, l - 6) * 80);
(lin = ((pl["lin" + (j % 9)] == undefined) ? (pl.createEmptyMovieClip("lin" + (j % 9), (l - j) - 1)) : (pl["lin" + (j % 9)])));
(linG = ((G["lin" + (j % 9)] == undefined) ? (G.createEmptyMovieClip("lin" + (j % 9), (l - j) - 1)) : (G["lin" + (j % 9)])));
linG._y = (lin._y = 450 - (80 * j));
linG.swapDepths((l - j) - 1);
lin.swapDepths((l - j) - 1);
j = (l - j) - 1;
var i = 0;
while (i < 7) {
lin.attachMovie(platA[j][i], "el" + i, i, {_x:i * 80, _visible:0});
linG.attachMovie(tloA[j][i] + _root.level, "el" + i, i, {_x:i * 80});
i++;
}
};
plat.initGun = function (x, y) {
var i;
var g;
var l = gunA.length;
var k = (Math.max(0, l - 6) * 80);
if (x == undefined) {
y = 51 - y;
i = 0;
while (i <= 7) {
g = gunA[y][7 - i];
if (g != undefined) {
this.enemy.attachMovie(g, "en" + this.enCnt, this.enCnt++, {_y:((y * 80) + ((g == "snp") ? -28 : 50)) - k, _x:(80 * (7 - i)) + 40});
}
i++;
}
}
};
plat.enCnt = 0;
plat.initEn = function (j, l) {
var en = this.enemy;
var e = 0;
for (i in en) {
if (typeof(en[i]) == "movieclip") {
e++;
}
}
if (e > 3) {
return(undefined);
}
var i = random(6);
if ((poleE[j] != 0) && (random(Math.min(5, poleE[j])) == 0)) {
en.attachMovie("bg", "en" + this.enCnt, this.enCnt++, {_y:((i * 80) + 50) - this._y, _x:80 * j, vx:l});
}
};
plat.remPL = function (j) {
var p = this.plat["lin" + (j % 9)];
var t = this.tlo["lin" + (j % 9)];
var i;
for (i in p) {
p[i].unloadMovie();
}
for (i in t) {
t[i].unloadMovie();
}
};
j = 0;
while (j < 8) {
plat.initPL(j);
j++;
}
plat.T = 0;
plat.onEF = function () {
var x = int(this._x / 80);
var n = (int(this.x / 80) != x);
var y = int(this._y / 80);
var ny = (int(this.y / 80) != y);
if ((getTimer() - this.T) > (1000 + random(1000))) {
this.initEn(8 - x, -1);
this.initEn(-x, 1);
this.T = getTimer();
}
if (ny) {
this.initPL(y + 7);
this.initGun(undefined, y);
this.remPL(y - 1);
}
this.x = this._x;
this.y = this._y;
if (this._y > 4475) {
this.onEF = function () {
var e = 0;
var i;
var hero = this._parent.hero;
for (i in this.enemy) {
if (typeof(this.enemy[i]) == "movieclip") {
e++;
}
}
if (hero._y < 245) {
if (this.skoczyl == undefined) {
this.skoczyl = true;
} else if (e == 0) {
_root.heroXS = hero._xscale;
_root.heroX = hero._x;
_root.heroY = hero._y;
_root.heroK = hero.kula;
_root.heroM = hero.m;
this._parent._parent.play();
}
}
};
}
};
_root.oEF.addListener(plat);
hero.init();
Symbol 408 MovieClip Frame 1
stop();
Symbol 408 MovieClip Frame 24
this._parent.swapDepths(987654);
this._parent.removeMovieClip();
stop();
Symbol 409 MovieClip Frame 1
stop();
Symbol 409 MovieClip Frame 7
this._parent._parent.l0.play();
stop();
Symbol 412 MovieClip Frame 1
stop();
Symbol 412 MovieClip Frame 7
this._parent.l0.play();
stop();
Symbol 414 MovieClip Frame 1
this.v = 2;
this.d = 1;
this._parent.plat.enemy.attachMovie("eHand", "lapka", 3, {l:this});
this.onEF = function () {
var en = this._parent.plat.enemy;
var pkt = {x:0, y:0};
var l = this.l;
var ll = l.l;
this.v = this.v + (-0.5 + (random(11) / 10));
this.v = Math.max(1.5, Math.min(4, this.v));
this._rotation = this._rotation + (this.d * this.v);
if ((this.d == 1) && (this._rotation > 50)) {
this.d = -1;
} else if ((this.d == -1) && (this._rotation < -45)) {
this.d = 1;
}
l._rotation = l._rotation + ((this._rotation - l._rotation) / 3);
ll._rotation = ll._rotation + ((l._rotation - ll._rotation) / 3);
pkt.x = ll._x;
pkt.y = ll._y + 20;
l.localToGlobal(pkt);
en.lapka._x = pkt.x;
en.lapka._y = (((pkt.x > 150) && (pkt.x < 210)) ? (pkt.y) : (((pkt.x < 100) ? (pkt.y - 40) : (pkt.y - 20))));
};
_root.oEF.addListener(this);
Symbol 416 MovieClip Frame 1
stop();
Symbol 416 MovieClip Frame 7
this._parent.l0.play();
stop();
Symbol 418 MovieClip Frame 1
this.v = 2;
this.d = 1;
this._parent.plat.enemy.attachMovie("eHand", "lapka2", 4, {l:this});
this.onEF = function () {
var en = this._parent.plat.enemy;
var pkt = {x:0, y:0};
var l = this.l;
var ll = l.l;
this.v = this.v + (-0.5 + (random(11) / 10));
this.v = Math.max(1.5, Math.min(4, this.v));
this._rotation = this._rotation + (this.d * this.v);
if ((this.d == 1) && (this._rotation > 50)) {
this.d = -1;
} else if ((this.d == -1) && (this._rotation < -45)) {
this.d = 1;
}
l._rotation = l._rotation + ((this._rotation - l._rotation) / 3);
ll._rotation = ll._rotation + ((l._rotation - ll._rotation) / 3);
pkt.x = ll._x;
pkt.y = ll._y;
l.localToGlobal(pkt);
en.lapka2._x = pkt.x;
en.lapka2._y = (((pkt.x > 330) && (pkt.x < 390)) ? (pkt.y) : (((pkt.x > 450) ? (pkt.y - 40) : (pkt.y - 20))));
};
_root.oEF.addListener(this);
Symbol 422 MovieClip Frame 1
pole.splice(0);
platA.splice(0);
tloA.splice(0);
gunA.splice(0);
this.hero._x = _root.heroX;
this.hero._y = _root.heroY;
this.hero._xscale = _root.heroXS;
pole = tab.split("|");
for (i in pole) {
pole[i] = pole[i].split("");
}
platA = [];
tloA = [];
i = 0;
while (i < pole.length) {
platA[i] = [];
tloA[i] = [];
gunA[i] = [];
j = 0;
while (j < pole[i].length) {
var p = pole[i][j];
platA[i][j] = "big";
tloA[i][j] = "down";
j++;
}
i++;
}
plat.initPL = function (j) {
var G = this.tlo;
var pl = this.plat;
var en = this.enemy;
var l = platA.length;
var k = (Math.max(0, l - 6) * 80);
(lin = ((pl["lin" + (j % 9)] == undefined) ? (pl.createEmptyMovieClip("lin" + (j % 9), (l - j) - 1)) : (pl["lin" + (j % 9)])));
(linG = ((G["lin" + (j % 9)] == undefined) ? (G.createEmptyMovieClip("lin" + (j % 9), (l - j) - 1)) : (G["lin" + (j % 9)])));
linG._y = (lin._y = 420 - (80 * j));
linG.swapDepths((l - j) - 1);
lin.swapDepths((l - j) - 1);
j = (l - j) - 1;
var i = 0;
while (i < 7) {
lin.attachMovie(platA[j][i], "el" + i, i, {_x:i * 80, _visible:0});
linG.attachMovie(tloA[j][i] + _root.level, "el" + i, i, {_x:i * 80});
i++;
}
};
j = 0;
while (j < 8) {
plat.initPL(j);
j++;
}
plat.T = 0;
hero.init();
hero.gotoAndStop(4);
hero.runs = (hero.falls = (hero.kaput = !((hero.jumps = true))));
hero.vy = 5;
hero.a = 1.8;
Symbol 436 Button
on (press) {
this.gotoAndStop("weekly");
}
Symbol 437 Button
on (press) {
this.gotoAndStop("daily");
}
Symbol 438 Button
on (press) {
this.gotoAndStop("hourly");
}
Symbol 441 Button
on (press) {
this.gotoAndStop("monthly");
}
Symbol 446 Button
on (press) {
this.gotoAndStop("daily");
}
Symbol 449 MovieClip Frame 1
this._parent.tp = 2592000 /* 0x278D00 */;
this._parent.tc = 0;
this._parent.reload();
stop();
Symbol 449 MovieClip Frame 2
this._parent.tp = 604800 /* 0x093A80 */;
this._parent.tc = 0;
this._parent.reload();
Symbol 449 MovieClip Frame 3
this._parent.tp = 86400 /* 0x015180 */;
this._parent.tc = 0;
this._parent.reload();
Symbol 449 MovieClip Frame 4
this._parent.tp = 3600;
this._parent.tc = 0;
this._parent.reload();
Symbol 456 Button
on (press) {
this.tc--;
this.reload();
}
Symbol 461 Button
on (press) {
this.tc = ((this.tc < 0) ? (this.tc + 1) : 0);
this.reload();
}
Symbol 464 Button
on (press) {
if (this.submitted == false) {
this.loadVariables((((this.__url + "hof_put.php?id=") + this.gid) + "&s=") + this.sc);
}
}
Symbol 468 Button
on (press) {
this._parent.l = 10;
this._parent.reload();
this.gotoAndStop(2);
}
Symbol 471 Button
on (press) {
this._parent.l = 100;
this._parent.reload();
this.gotoAndStop(1);
}
Symbol 472 MovieClip Frame 1
stop();
Symbol 485 MovieClip Frame 1
stop();
Symbol 485 MovieClip Frame 18
stop();
Symbol 489 MovieClip Frame 1
function reset() {
this.m._x = this.s._x;
this.m._y = this.s._y;
}
function scroll(p) {
this._parent.rolki.f1.scroll = (this._parent.rolki.f2.scroll = (this._parent.rolki.f3.scroll = (this._parent.rolki.f4.scroll = int((this.mx * p) / 100))));
}
this.onEnterFrame = function () {
this.s._y = ((this.m._y > 5) ? (((this.m._y < 202) ? (this.m._y) : 202)) : 5);
this.mx = this._parent.rolki.f1.maxscroll;
scroll((100 * (this.s._y - 5)) / 197);
};
Instance of Symbol 488 MovieClip "m" in Symbol 489 MovieClip Frame 1
on (press) {
this.startDrag();
}
on (release, releaseOutside) {
this.stopDrag();
this._parent.reset();
}
Symbol 494 MovieClip Frame 1
this._visible = _root.ligin == undefined;
this.onPress = function () {
getURL ("http://www.netstupidity.com");
};
Symbol 495 MovieClip Frame 1
this.submitted = false;
Symbol 495 MovieClip Frame 2
function reload() {
if (this.rolki._currentframe > 1) {
this.rolki.gotoAndPlay(18);
}
var te = ((-this.tc) * this.tp);
var tb = ((-(this.tc - 1)) * this.tp);
this.loadVariables((((((((((this.__url + "hof_get.php?id=") + this.gid) + "&n=") + this.l) + "&tb=") + tb) + "&te=") + te) + "&s=") + this.sc);
}
this.uu = _root._url;
this.gid = _root.gid;
this.__url = _root.__url;
this.l = 10;
this.sc = eval (this.scr);
if (int(this.sc) > int(_root.bsc)) {
_root.bsc = this.sc;
}
this.onData = function () {
if (this.r == 1) {
this.rolki.gotoAndPlay(2);
clearInterval(this._itr);
return(undefined);
}
if (this.r == "3") {
this.submitted = true;
reload();
}
if (this.r == "2") {
getURL ("javascript:if(confirm('To submit Your score You have to be logged into netstupidity.com site. Do You wish to log in now?')) window.open('http://www.netstupidity.com/login.php'); void(0);");
}
};
stop();
Symbol 502 Button
on (press) {
stopAllSounds();
gotoAndStop (2);
}