Frame 2
_root.tempSnd = new Sound(_root);
_root.ligin = true;
Frame 3
stopAllSounds();
Frame 4
loop = new Sound(_root);
loop.attachSound("__loop");
loop.onSoundComplete = function () {
this.start();
};
loop.start(0, 10000000000000);
stop();
Frame 5
function game() {
gotoAndStop (28);
}
function _game(f) {
gotoAndStop(f +27);
}
function instr() {
gotoAndStop (25);
}
function starting() {
gotoAndStop (5);
}
function win() {
gotoAndStop (5);
}
function hof(f) {
gotoAndStop(f +4);
}
function monster_f(i) {
_root.gra.attachMovie("monster" + i, "monster", 5001, {_x:100 + random(200), _y:375});
}
_root.my_so = SharedObject.getLocal("savedText", "/");
_root.funct = [];
funct.push(function () {
_root.gra.attachMovie("arielka", "syrena", 50, {_x:100 + random(200), _y:100 + random(100)});
});
funct.push(function () {
_root.gra.attachMovie("konik", "konik", 53, {_x:100 + random(200), _y:100 + random(100)});
});
funct.push(function () {
_root.gra.attachMovie("krab", "krab", 251, {_x:100 + random(300), _y:450});
});
funct.push(function () {
_root.gra.attachMovie("malza", "malz", 49, {_x:421, _y:350});
});
funct.push(function () {
_root.gra.attachMovie("mama", "mama", 52, {_x:100 + random(200), _y:120 + random(100)});
});
funct.push(function () {
_root.gra.attachMovie("meduza", "med", 55, {_x:100 + random(200), _y:100 + random(100)});
});
funct.push(function () {
_root.gra.attachMovie("pila", "pila", 6001, {_x:100 + random(200), _y:100 + random(100)});
});
funct.push(function () {
_root.gra.attachMovie("slimak", "slim", 51, {_x:100 + random(300), _y:455});
});
funct.push(function () {
_root.gra.attachMovie("szkielet", "szkiel", 54, {_x:100 + random(200), _y:150 + random(100)});
});
funct.push(function () {
_root.gra.attachMovie("wiel", "wielo", 56, {_x:100 + random(200), _y:380});
});
if (_root.my_so.data.savedGame != undefined) {
gotoAndStop (7);
}
nextFrame();
Frame 6
stop();
Frame 7
stop();
Frame 11
stop();
Frame 25
gotoAndStop(_root.instrFrame +24);
Frame 26
stop();
Frame 27
stop();
Frame 28
_root.copy = function (arr1, arr2) {
var i;
i = 0;
while (i < arr2.length) {
arr1[i] = arr2[i];
i++;
}
};
if (_root.playSavedGame) {
_root.hofOK = my_so.data[_root.Sgame].hofOK;
_root.znalezione = [];
copy(_root.znalezione, my_so.data[_root.Sgame].znalezione);
_root.stworki = [];
copy(_root.stworki, my_so.data[_root.Sgame].stworki);
_root.level = my_so.data[_root.Sgame].level;
_root.pkts = my_so.data[_root.Sgame].pkts;
if (_root.level == 11) {
_game(8);
} else {
_game(4);
}
} else {
_game(2);
}
Frame 29
_root.znalezione = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
_root.stworki = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
_root.level = 1;
_root.pkts = 0;
_root._game(4);
Frame 31
_root.stwor = [];
suma = 0;
i = 0;
while (i < 10) {
suma = suma + znalezione[i];
i++;
}
if (suma <= 3) {
i = 0;
while (i < 10) {
if (znalezione[i] == 0) {
} else {
_root.stwor.push(_root.funct[i]);
}
i++;
}
_root._game(6);
} else {
play();
}
Frame 32
_root.stwor = [];
i = 1;
while (i < 11) {
if (znalezione[i - 1] == 0) {
} else {
b = this["b" + i];
b.off = 1;
b.i = i;
b.gotoAndStop(2);
b.kol = new Color(b);
b.rgb = b.kol.getTransform();
b.onRollOver = (b.onDragOver = function () {
this.kol.setTransform({gb:"90"});
});
b.onRollOut = (b.onDragOut = function () {
this.kol.setTransform(this.rgb);
});
b.onRelease = function () {
if (this.off && (_root.stwor.length < 3)) {
this.off = 0;
this.gotoAndStop(3);
_root.stwor.push(_root.funct[this.i - 1]);
} else if (!this.off) {
this.off = 1;
this.gotoAndStop(2);
_root.stwor.remEl(_root.funct[this.i - 1]);
}
};
}
i++;
}
stop();
Frame 33
for (i in stwor) {
stwor[i]();
}
stop();
Frame 34
if (_root.level == 11) {
if (_root.hofOK) {
_game(9);
} else {
nextFrame();
}
} else {
_root.level++;
i = random(_root.stworki.length);
_root.znalezione[_root.stworki[i] - 1] = 1;
b = this["b" + _root.stworki[i]];
b._y = b._y + 220;
b.nextFrame();
op = this["op" + _root.stworki[i]];
op._y = op._y + 420;
_root.stworki.splice(i, 1);
}
if (_root.Sgame == undefined) {
this.sbutton._x = -1000;
this.sabutton._x = 275;
}
stop();
Frame 35
git = 0;
if (_root.hofOK) {
nextFrame();
}
i = 0;
while (i <= 1) {
b = this["tank" + i];
b.i = i;
b.kol = new Color(b);
b.rgb = b.kol.getTransform();
b.onRollOver = (b.onDragOver = function () {
this.kol.setTransform({gb:"90"});
});
b.onRollOut = (b.onDragOut = function () {
this.kol.setTransform(this.rgb);
});
b.onRelease = function () {
this.gotoAndStop(2);
this._parent["tank" + ((this.i + 1) % 2)].gotoAndStop(1);
_root.tank = this.i + 1;
_root.git = 1;
};
i++;
}
_root.scr = _root.pkts;
_root.my_so.data[_root.Sgame].hofOK = (_root.hofOK = 1);
stop();
Instance of Symbol 698 MovieClip in Frame 35
//component parameters
onClipEvent (initialize) {
scr = "_root.scr";
}
Frame 36
git = 0;
i = 0;
while (i <= 1) {
b = this["tank" + i];
b.i = i;
b.kol = new Color(b);
b.rgb = b.kol.getTransform();
b.onRollOver = (b.onDragOver = function () {
this.kol.setTransform({gb:"90"});
});
b.onRollOut = (b.onDragOut = function () {
this.kol.setTransform(this.rgb);
});
b.onRelease = function () {
this.gotoAndStop(2);
this._parent["tank" + ((this.i + 1) % 2)].gotoAndStop(1);
_root.tank = this.i + 1;
_root.git = 1;
};
i++;
}
stop();
Frame 37
stop();
Frame 38
_root.scr = _root.pkts;
_root.r = 0;
stop();
Instance of Symbol 698 MovieClip in Frame 38
//component parameters
onClipEvent (initialize) {
scr = "_root.scr";
}
Symbol 8 MovieClip [starP] Frame 1
this.createEmptyMovieClip("onEF", 1);
g_food.push(this);
this.power = "star";
onEF.onEnterFrame = function () {
if (root.pause) {
return(undefined);
}
pr = this._parent;
pr._y = pr._y + 2;
if (pr._y > 430) {
this.onEnterFrame = function () {
if (root.pause) {
return(undefined);
}
pr._alpha = pr._alpha - 20;
if (pr._alpha < 20) {
re_el(g_food, pr);
}
};
}
};
this.hitArea = this.hit;
this.hit._visible = 0;
this.onPress = play;
stop();
Symbol 8 MovieClip [starP] Frame 2
re_el(g_food, this, 1);
Symbol 8 MovieClip [starP] Frame 6
this.removeMovieClip();
Symbol 24 MovieClip Frame 1
stop();
Symbol 25 MovieClip Frame 1
stop();
Symbol 25 MovieClip Frame 4
stop();
Symbol 26 MovieClip [skalar] Frame 1
#initclip 1
skal = function () {
};
skal.prototype = new MovieClip();
skal.prototype.die = function () {
_root.ded.start();
fish_arr.remEl(this);
if (fish_arr.length == 0) {
this._parent.noFish();
}
this._rotation = ((this.strony._currentframe < 3) ? 150 : 210);
this.strony.rybka.h.stop();
this.onEF.col.setTransform({ra:"20", ga:"25", ba:"100", rb:"0", gb:"120", bb:"125"});
this.onEF.onEnterFrame = function () {
if (root.pause) {
return(undefined);
}
var pr = this._parent;
pr._y = pr._y + 2;
if (pr._y > 450) {
this.onEnterFrame = function () {
if (root.pause) {
return(undefined);
}
pr._alpha = pr._alpha - 5;
if (pr._alpha <= 0) {
pr.swapDepths(705);
pr.removeMovieClip();
}
};
}
};
};
skal.prototype.rzucaj = function () {
root.attachMovie("diament", "m" + mon_ind, 4000 + (mon_ind++), {_x:this._x, _y:this._y + 20});
if (monInd > 400) {
mon_ind = mon_ind % 400;
}
};
skal.prototype.init = function () {
_root.breathe.start();
this.strony.rybka.stop();
fish_arr.push(this);
this.onPress = null;
this.useHandCursor = false;
this.rzutny = 150;
this.strony.rybka.gotoAndPlay(random(15));
this.createEmptyMovieClip("onEF", 1);
this.onEF.col = new Color(this);
this.onEF.rgbT = this.onEF.col.getTransform();
this.onEF.eatTime = 50;
this.onEF.dir = [-1, 0];
this.onEF.rzut = random(80);
this.onEF.onEnterFrame = function () {
if (root.pause) {
return(undefined);
}
var pr = this._parent;
if (pr.hungry) {
if ((this.dieTime--) > 200) {
} else if (this.dieTime > 0) {
this.col.setTransform({ra:"25", rb:"0", ga:"25", gb:"190", ba:"25", bb:"0"});
} else {
pr.die();
}
} else {
this.col.setTransform(this.rgbT);
}
if (pr.hungry && (s_food.length > 0)) {
var i;
var pyho = pr.strony.rybka.pysk;
var celi;
var cel;
var d = 1000;
var pt = {x:pyho._x, y:pyho._y};
var dx;
var dy;
var ABS;
i = 0;
while (i < s_food.length) {
ABS = Math.sqrt(((s_food[i]._x - pr._x) * (s_food[i]._x - pr._x)) + ((s_food[i]._y - pr._y) * (s_food[i]._y - pr._y)));
if (ABS < d) {
d = ABS;
celi = i;
}
i++;
}
cel = s_food[celi];
pyho._parent.localToGlobal(pt);
dx = (cel._x - pt.x) + 35;
dy = cel._y - pt.y;
var ratio = (dy / dx);
var Adx = Math.abs(dx);
var Ady = Math.abs(dy);
if ((Adx > pr._width) || (this.dir[0] == 0)) {
if (Ady < 5) {
this.dir = [sg(dx), 0];
} else if (Math.abs(ratio) < 1) {
this.dir = [0.9 * sg(dx), sg(dy) / 2];
} else {
this.dir = [0.75 * sg(dx), 0.75 * sg(dy)];
}
} else if ((Adx < 15) && (Ady < 15)) {
this.dir = ((Adx > Ady) ? ([sg(dx), Math.abs(ratio) * sg(dy)]) : ([sg(dx) / Math.abs(ratio), sg(dy)]));
}
this.v = ((this.dieTime > 200) ? 4 : (((this.dieTime > 100) ? 5 : 6)));
if (pyho.hitTest(cel._x + 35, cel._y)) {
pr.strony.rybka.play();
pr.hungry = 0;
fish_arr.remEl(cel);
this.kilIv = setInterval(function (th, c) {
re_el(s_food, c);
clearInterval(th.kilIv);
}, 300, this, cel);
this.eatTime = 240;
}
} else {
if ((random(20) < 1) || (this.dir == undefined)) {
this.dir = dirs[random(11)];
this.v = random(4) + 2;
}
if (random(3) < 1) {
this.v = random(4) + 2;
}
this.eatTime--;
if ((this.eatTime < 0) && (!pr.hungry)) {
pr.hungry = 1;
this.dieTime = 350;
}
}
var d0 = this.dir[0];
var d1 = this.dir[1];
var v = this.v;
if ((sg(d0) == 1) && (pr.strony._currentframe != 4)) {
pr.strony.play();
} else if ((sg(d0) == -1) && (pr.strony._currentframe != 1)) {
pr.strony.play();
} else if (d0 == 0) {
pr.strony.rybka.ogon.gotoAndPlay(1);
}
var nx = (pr._x + (d0 * v));
var ny = (pr._y + (d1 * v));
if ((nx <= 425) && (nx >= 45)) {
pr._x = nx;
} else if (pr.hungry && (nx > 425)) {
this.dir[0] = -1;
} else if (pr.hungry && (nx < 45)) {
this.dir[0] = 1;
}
if ((ny <= 415) && (ny >= 100)) {
pr._y = ny;
}
if ((((this.rzut = this.rzut + (1 + random(2)))) % pr.rzutny) == 0) {
pr.rzucaj();
}
if (pr._parent.monster) {
if (pr.hitTest(pr._parent.monster.head)) {
pr.die();
}
}
};
};
Object.registerClass("skalar", skal);
#endinitclip
stop();
Symbol 34 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 48 MovieClip Frame 140
stop();
Symbol 87 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 90 MovieClip Frame 1
_root.stop();
stop();
Symbol 90 MovieClip Frame 2
stop();
Symbol 143 MovieClip Frame 1
stop();
Symbol 160 MovieClip Frame 295
this.tempSnd = new Sound(this);
this.onEnterFrame = function () {
this.v = this.v - 15;
if (this.v < 0) {
this.stopAllSounds();
this.tempSnd.setVolume(100);
this.onEnterFrame = null;
} else {
this.tempSnd.setVolume(this.v);
}
};
Symbol 160 MovieClip Frame 355
this.tempSnd = new Sound(this);
this.onEnterFrame = function () {
this.v = this.v - 15;
if (this.v < 0) {
this.stopAllSounds();
this.tempSnd.setVolume(100);
this.onEnterFrame = null;
} else {
this.tempSnd.setVolume(this.v);
}
};
Symbol 160 MovieClip Frame 505
stop();
_parent.play();
Symbol 171 Button
on (press) {
play();
}
Symbol 175 MovieClip Frame 1
this._visible = _root.ligin == undefined;
this.onPress = function () {
getURL ("http://www.netstupidity.com");
};
Symbol 186 Button
on (press) {
_root.instrFrame = 2;
_root.instr();
}
Symbol 191 Button
on (press) {
_root.playSavedGame = false;
_root.game();
}
Symbol 192 Button
on (press) {
_root.instrFrame = 3;
_root.instr();
}
Symbol 200 Button
on (press) {
this.Sgames._x = 275;
}
Symbol 202 MovieClip Frame 1
this.onPress = null;
this.useHandCursor = 0;
this._alpha = 0;
Symbol 206 Button
on (press) {
_x = -350;
}
Symbol 213 MovieClip Frame 1
stop();
Symbol 213 MovieClip Frame 2
stop();
Symbol 214 MovieClip Frame 1
but0.gra = 0;
but0.graN = "1";
but0.gotoAndStop(2);
but0.onPress = function () {
_root.playSavedGame = true;
_root.Sgame = "g" + this.gra;
_root.game();
};
i = 1;
while (i < _root.my_so.data.savedGame) {
this["but" + i].gotoAndStop(2);
this["but" + i].gra = i;
this["but" + i].graN = i + 1;
this["but" + i].onPress = function () {
_root.playSavedGame = true;
_root.Sgame = "g" + this.gra;
_root.game();
};
i++;
}
Symbol 232 MovieClip Frame 1
stop();
Symbol 232 MovieClip Frame 2
stop();
Symbol 233 MovieClip [arielka] Frame 1
if (this.onEF == undefined) {
this.swapDepths(49);
this._name = "syrena";
this.createEmptyMovieClip("onEF", 1).onEnterFrame = function () {
if (root.pause) {
return(undefined);
}
var pr = this._parent;
if ((random(20) < 1) || (this.dir == undefined)) {
this.dir = dirs[random(11)];
this.v = random(4) + 2;
}
if (random(3) < 1) {
this.v = random(4) + 2;
}
var d0 = this.dir[0];
var d1 = this.dir[1];
var v = this.v;
if ((sg(d0) == 1) && (pr.strony._currentframe != 2)) {
pr.strony.play();
} else if ((sg(d0) == -1) && (pr.strony._currentframe != 1)) {
pr.strony.play();
}
var nx = (pr._x + (d0 * v));
var ny = (pr._y + (d1 * v));
if ((nx <= 435) && (nx >= 45)) {
pr._x = nx;
}
if ((ny <= 375) && (ny >= 120)) {
pr._y = ny;
}
this.i = this.i + (1 + random(2));
if (this.i > 600) {
this.i = 0;
pr._parent.attachMovie("nuta", "nuta", 4495, {_x:pr._x, _y:pr._y - 80});
}
};
}
Symbol 234 MovieClip Frame 1
stop();
Symbol 234 MovieClip Frame 4
stop();
Symbol 235 MovieClip [gupik] Frame 1
#initclip 2
Array.prototype.remEl = function (el) {
var i = 0;
while (i < this.length) {
if (this[i] == el) {
this.splice(i, 1);
}
i++;
}
};
_root.global_sound = new Sound();
_root.breathe = new Sound(_root);
_root.breathe.attachSound("__breath");
_root.promo = new Sound(_root);
_root.promo.attachSound("__promo");
_root.mon = new Sound(_root);
_root.mon.attachSound("__money");
_root.tr = new Sound(_root);
_root.tr.attachSound("__traktor");
_root.ded = new Sound(_root);
_root.ded.attachSound("__deaAl");
_global.re_el = function (arr, el, zostaw) {
var i = 0;
while (i < arr.length) {
if (arr[i] == el) {
arr.splice(i, 1);
if (zostaw) {
return(undefined);
}
el.swapDepths(705);
el.removeMovieClip();
return(undefined);
}
i++;
}
};
_global.dirs = [[-1, -0.6], [1, -0.6], [-1, -0.3], [1, -0.3], [-1, 0], [0, 0], [1, 0], [-1, 0.3], [1, 0.3], [-1, 0.6], [1, 0.6]];
_global.sg = function (x) {
return(((x > 0) ? 1 : (((x < 0) ? -1 : 0))));
};
_global.sl_food = [];
_global.fish_arr = [];
gup = function () {
};
gup.prototype = new MovieClip();
gup.prototype.die = function () {
_root.ded.start();
fish_arr.remEl(this);
this.strony.rybka.stop();
trace("nima rybek ? " + (fish_arr.length == 0));
if (fish_arr.length == 0) {
this._parent.noFish();
}
this.strony.rybka.glowa.oko.play();
this._rotation = ((this.strony._currentframe < 3) ? 150 : 210);
this.onEF.col.setTransform({ra:"20", ga:"25", ba:"100", rb:"0", gb:"120", bb:"125"});
re_el(s_food, this, 1);
this.onEF.onEnterFrame = function () {
if (root.pause) {
return(undefined);
}
var pr = this._parent;
pr.strony.rybka.ogon.gotoAndStop(55);
pr._y = pr._y + 2;
if (pr._y > 450) {
this.onEnterFrame = function () {
if (root.pause) {
return(undefined);
}
pr._alpha = pr._alpha - 5;
if (pr._alpha <= 0) {
pr.swapDepths(705);
pr.removeMovieClip();
}
};
}
};
};
gup.prototype.rzucaj = function () {
if (this.rozmiar == 2) {
root.attachMovie("moneta_sr", "m" + mon_ind, 4000 + (mon_ind++), {_x:this._x, _y:this._y + 5});
} else if (this.rozmiar == 3) {
root.attachMovie("moneta_zl", "m" + mon_ind, 4000 + (mon_ind++), {_x:this._x, _y:this._y + 15});
} else if (this.rozmiar == 4) {
root.attachMovie("diament", "m" + mon_ind, 4000 + (mon_ind++), {_x:this._x, _y:this._y + 15});
} else if (this.rozmiar == 5) {
root.attachMovie("gwiazdka", "s" + star_ind, 4500 + star_ind, {_x:this._x, _y:this._y + 15});
k_food.push(root["s" + star_ind]);
star_ind++;
if (starInd > 400) {
star_ind = star_ind % 400;
}
}
if (monInd > 400) {
mon_ind = mon_ind % 400;
}
};
gup.prototype.promote = function (star) {
this.promIv = setInterval(function (th, st) {
th.promo(st);
clearInterval(th.promIv);
}, 225, this, star);
};
gup.prototype.promo = function (star) {
if (star) {
if (this.rozmiar < 3) {
this.die();
} else if (this.rozmiar == 3) {
_root.promo.start();
this.strony.rybka.widly._visible = 1;
this.rozmiar = 5;
}
this.hungry = 0;
return(undefined);
}
if (this.rozmiar < 3) {
this._parent.onPromo(this.rozmiar);
}
re_el(s_food, this, 1);
if (this.rozmiar < 3) {
this.strony.swapDepths(2);
this.strony.removeMovieClip();
this.attachMovie("rybka" + this.rozmiar, "strony", 2);
if (this.rozmiar == 2) {
this.strony.rybka.glowa.hat._visible = 0;
this.strony.rybka.widly._visible = 0;
}
} else if (this.rozmiar == 3) {
trace(this.strony.rybka.glowa.hat);
this.strony.rybka.glowa.hat._visible = 1;
}
_root.promo.start();
this.rozmiar++;
};
gup.prototype.init = function () {
_root.breathe.start();
s_food.push(this);
fish_arr.push(this);
this.gupik = true;
this.onPress = null;
this.useHandCursor = false;
this.rzutny = 175;
this.rozmiar = 1;
this.gotoAndPlay(random(15));
this.createEmptyMovieClip("onEF", 1);
this.onEF.col = new Color(this);
this.onEF.rgbT = this.onEF.col.getTransform();
this.onEF.eatTime = 50;
this.onEF.dir = [-1, 0];
this.onEF.pkt = 0;
this.onEF.rzut = random(80);
this.onEF.onEnterFrame = function () {
if (root.pause) {
return(undefined);
}
var pr = this._parent;
if (pr.hungry) {
if ((--this.dieTime) > 200) {
} else if (this.dieTime == 200) {
this.pkt = this.pkt - 0.5;
} else if (this.dieTime > 0) {
if (pr.rozmiar == 4) {
this.col.setTransform({ra:"25", rb:"0", ga:"25", gb:"190", ba:"25", bb:"0"});
} else {
this.col.setTransform({ra:"25", rb:"0", ga:"25", gb:"190", ba:"25", bb:"0"});
}
} else {
pr.die();
}
} else {
this.col.setTransform(this.rgbT);
}
if (pr.hungry && (g_food.length > 0)) {
var i;
var pyho = pr.strony.rybka.glowa.pysk;
var celi;
var cel;
var d = 1000;
var pt = {x:pyho._x, y:pyho._y};
var dx;
var dy;
var ABS;
i = 0;
while (i < g_food.length) {
ABS = Math.abs(g_food[i]._x - pr._x);
if ((ABS < d) && (g_food[i]._x != undefined)) {
d = ABS;
celi = i;
}
i++;
}
cel = g_food[celi];
pyho._parent.localToGlobal(pt);
dx = (cel._x - pt.x) + 35;
dy = cel._y - pt.y;
var ratio = (dy / dx);
var Adx = Math.abs(dx);
var Ady = Math.abs(dy);
if ((Adx > (pr._width / 2)) || (this.dir[0] == 0)) {
if (Ady < 5) {
this.dir = [sg(dx), 0];
} else if (Math.abs(ratio) < 1) {
this.dir = [0.9 * sg(dx), sg(dy) / 2];
} else {
this.dir = [0.75 * sg(dx), 0.75 * sg(dy)];
}
} else if ((Adx < 15) && (Ady < 15)) {
this.dir = ((Adx > Ady) ? ([sg(dx), Math.abs(ratio) * sg(dy)]) : ([sg(dx) / Math.abs(ratio), sg(dy)]));
}
this.v = ((this.dieTime > 200) ? 4 : (((this.dieTime > 100) ? 5 : 6)));
if (pyho.hitTest(cel._x + 35, cel._y)) {
pr.strony.rybka.glowa.play();
if (cel.power == "star") {
this.pkt++;
pr.promote(1);
this.eatTime = 30;
} else {
pr.hungry = 0;
this.pkt = this.pkt + (cel.power || 1);
if ((this.pkt > 40) && (pr.rozmiar == 3)) {
pr.promote();
} else if ((this.pkt >= 6) && (pr.rozmiar == 2)) {
pr.promote();
} else if ((this.pkt >= 3) && (pr.rozmiar == 1)) {
pr.promote();
}
this.eatTime = int(150 * (cel.power || 1));
}
re_el(g_food, cel);
}
} else {
if ((random(20) < 1) || (this.dir == undefined)) {
this.dir = dirs[random(11)];
this.v = random(4) + 2;
}
if (random(3) < 1) {
this.v = random(4) + 2;
}
this.eatTime--;
if ((this.eatTime < 0) && (!pr.hungry)) {
pr.hungry = 1;
this.dieTime = 350;
}
}
if ((((this.rzut = this.rzut + (1 + random(2)))) % pr.rzutny) == 0) {
pr.rzucaj();
}
if (pr._parent.monster) {
if (((pr.rozmiar < 3) && (pr._parent.wielo.ile < 10)) && (pr._parent.wielo)) {
var i;
var pyho = pr.strony.rybka.glowa.pysk;
var cel;
var pt = {x:pyho._x, y:pyho._y};
var dx;
var dy;
var ABS;
cel = pr._parent.wielo;
pyho._parent.localToGlobal(pt);
dx = (cel._x - pt.x) + 35;
dy = cel._y - pt.y;
var ratio = (dy / dx);
var Adx = Math.abs(dx);
var Ady = Math.abs(dy);
if ((Adx > pr._width) || (this.dir[0] == 0)) {
if (Ady < 5) {
this.dir = [sg(dx), 0];
} else if (Math.abs(ratio) < 1) {
this.dir = [0.9 * sg(dx), sg(dy) / 2];
} else {
this.dir = [0.75 * sg(dx), 0.75 * sg(dy)];
}
} else if ((Adx < 15) && (Ady < 15)) {
this.dir = ((Adx > Ady) ? ([sg(dx), Math.abs(ratio) * sg(dy)]) : ([sg(dx) / Math.abs(ratio), sg(dy)]));
}
this.v = 6;
if (pyho.hitTest(cel._x + 35, cel._y)) {
cel.pysk();
cel.ile++;
cel.gup.push(pr);
this.onEF = this.onEnterFrame;
pr._y = -500;
pr._visible = 0;
delete this.onEnterFrame;
}
}
if (pr.hitTest(pr._parent.monster.head)) {
pr.die();
}
}
var d0 = this.dir[0];
var d1 = this.dir[1];
var v = this.v;
if ((sg(d0) == 1) && (pr.strony._currentframe != 4)) {
pr.strony.play();
} else if ((sg(d0) == -1) && (pr.strony._currentframe != 1)) {
pr.strony.play();
} else if (d0 == 0) {
pr.strony.rybka.ogon.gotoAndPlay(1);
}
var nx = (pr._x + (d0 * v));
var ny = (pr._y + (d1 * v));
if ((nx <= 445) && (nx >= 25)) {
pr._x = nx;
} else if (pr.hungry && (nx > 445)) {
this.dir[0] = -1;
} else if (pr.hungry && (nx < 25)) {
this.dir[0] = 1;
}
if ((ny <= 425) && (ny >= 75)) {
pr._y = ny;
}
};
};
Object.registerClass("gupik", gup);
#endinitclip
stop();
Symbol 243 MovieClip Frame 1
stop();
Symbol 243 MovieClip Frame 7
gotoAndPlay (2);
Symbol 247 MovieClip Frame 1
stop();
Symbol 247 MovieClip Frame 2
stop();
Symbol 248 MovieClip [krab] Frame 1
#initclip 11
kr = function () {
this.init();
};
kr.prototype = new MovieClip();
kr.prototype.init = function () {
this.swapDepths(8002);
this.createEmptyMovieClip("onEF", 1);
this.onEF.dir = -1;
this.onEF.onEnterFrame = function () {
var cel;
var pr = this._parent;
if (root.pause) {
pr.strony.krab.stop();
return(undefined);
}
pr.strony.krab.play();
if (pr._parent.monster) {
var cel = pr._parent.monster;
var dx = (cel._x - pr._x);
this.dir = (((dx < 10) && (dx > -10)) ? 0 : (sg(dx)));
this.v = 5;
if (pr.hitTest(cel)) {
pr.strony.krab.glowa.play();
cel.nrg = cel.nrg - 0.2;
} else {
pr.strony.krab.glowa.gotoAndStop(1);
}
} else {
pr.strony.krab.glowa.gotoAndStop(1);
if ((random(20) < 1) || (this.dir == undefined)) {
this.dir = random(3) - 1;
this.v = random(4) + 2;
}
if (random(3) < 1) {
this.v = random(4) + 2;
}
}
var n;
var d0 = this.dir;
var v = this.v;
if ((sg(d0) == 1) && (pr.strony._currentframe != 2)) {
pr.strony.play();
} else if ((sg(d0) == -1) && (pr.strony._currentframe != 1)) {
pr.strony.play();
} else if (d0 == 0) {
pr.strony.krab.stop();
}
var nx = (pr._x + (d0 * v));
if ((nx <= 435) && (nx >= 40)) {
pr._x = nx;
}
};
};
Object.registerClass("krab", kr);
#endinitclip
stop();
Symbol 254 MovieClip Frame 1
stop();
Symbol 254 MovieClip Frame 2
stop();
Symbol 255 MovieClip [lazik] Frame 1
#initclip 3
_global.laz_arr = [];
laz = function () {
this.init();
};
laz.prototype = new MovieClip();
laz.prototype.die = function () {
root.ded.start();
fish_arr.remEl(this);
if (fish_arr.length == 0) {
this._parent.noFish();
}
this.onEF.onEnterFrame = function () {
if (root.pause) {
return(undefined);
}
pr = this._parent;
pr._alpha = pr._alpha - 5;
if (pr._alpha <= 0) {
pr.swapDepths(705);
pr.removeMovieClip();
}
};
};
laz.prototype.rzucaj = function () {
_root.tr.start();
root.attachMovie("diament", "m" + mon_ind, 4000 + (mon_ind++), {_x:this._x, _y:this._y - 10, up:true});
if (monInd > 400) {
mon_ind = mon_ind % 400;
}
};
laz.prototype.init = function () {
_root.tr.start();
this._y = 405;
fish_arr.push(this);
laz_arr.push(this);
this.createEmptyMovieClip("onEF", 1);
this.onEF.col = new Color(this);
this.onEF.rgbT = this.onEF.col.getTransform();
this.onEF.eatTime = 40;
this.onEF.dir = -1;
this.onEF.onEnterFrame = function () {
if (root.pause) {
return(undefined);
}
var cel;
var pr = this._parent;
if (pr.hungry) {
if ((this.dieTime--) > 200) {
} else if (this.dieTime > 0) {
this.col.setTransform({ra:"25", rb:"0", ga:"25", gb:"190", ba:"25", bb:"0"});
} else {
pr.die();
}
} else {
this.col.setTransform(this.rgbT);
}
if (pr.hungry && (k_food.length > 0)) {
var i;
var celi;
var d = 1000;
var dx;
i = 0;
while (i < k_food.length) {
if (k_food[i].mamGo && (k_food[i].mamGo != this)) {
} else {
dx = Math.abs(k_food[i]._x - pr._x);
if (dx < d) {
d = dx;
celi = i;
}
}
i++;
}
cel = k_food[celi];
cel.mamGo = this;
dx = cel._x - pr._x;
this.dir = (((dx < 10) && (dx > -10)) ? 0 : (sg(dx)));
this.v = ((this.dieTime > 200) ? 3 : (((this.dieTime > 100) ? 3.5 : 4)));
if (pr.hitTest(cel._x + 35, cel._y, 1)) {
pr.hungry = 0;
pr.rzucaj();
re_el(k_food, cel);
this.eatTime = 50;
this.dieTime = 500;
}
} else {
if ((random(20) < 1) || (this.dir == undefined)) {
this.dir = random(3) - 1;
this.v = random(2) + 2;
}
if (random(3) < 1) {
this.v = random(2) + 2;
}
if ((this.eatTime < 0) && (!pr.hungry)) {
pr.hungry = 1;
this.dieTime = 500;
}
}
this.eatTime--;
var n;
var d0 = this.dir;
var v = this.v;
if ((sg(d0) == 1) && (pr.strony._currentframe != 2)) {
pr.strony.play();
} else if ((sg(d0) == -1) && (pr.strony._currentframe != 1)) {
pr.strony.play();
}
var nx = (pr._x + (d0 * v));
if ((nx <= 425) && (nx >= 50)) {
pr._x = nx;
}
};
};
Object.registerClass("lazik", laz);
#endinitclip
stop();
Symbol 258 MovieClip Frame 1
stop();
Symbol 260 MovieClip Frame 1
stop();
Symbol 260 MovieClip Frame 3
stop();
Symbol 261 MovieClip [mama] Frame 1
#initclip 4
mama = function () {
this.init();
};
mama.prototype = new MovieClip();
mama.prototype.rzucaj = function () {
this.strony.mama.m.gotoAndPlay(19);
var mc = root.attachMovie("gupik", "g" + root.fish_ind, 1000 + (root.fish_ind++), {_x:this._x + (((this.strony._currentframe == 1) ? -1 : 1) * 15), _y:this._y + 30});
s_food.push(mc);
mc.init();
if (root.fish_ind > 2900) {
root.fish_ind = 1;
}
};
mama.prototype.init = function () {
this.swapDepths(52);
this.rzutny = 500;
this.createEmptyMovieClip("onEF", 1);
this.onEF.dir = [-1, 0];
this.onEF.rzut = random(80);
this.onEF.onEnterFrame = function () {
if (root.pause) {
return(undefined);
}
var pr = this._parent;
if ((random(20) < 1) || (this.dir == undefined)) {
this.dir = dirs[random(11)];
this.v = random(4) + 2;
}
if (random(3) < 1) {
this.v = random(4) + 2;
}
var d0 = this.dir[0];
var d1 = this.dir[1];
var v = this.v;
if ((sg(d0) == 1) && (pr.strony._currentframe != 3)) {
pr.strony.play();
} else if ((sg(d0) == -1) && (pr.strony._currentframe != 1)) {
pr.strony.play();
}
var nx = (pr._x + (d0 * v));
var ny = (pr._y + (d1 * v));
if ((nx <= 420) && (nx >= 75)) {
pr._x = nx;
}
if ((ny <= 320) && (ny >= 95)) {
pr._y = ny;
}
if ((((this.rzut = this.rzut + (1 + random(3)))) % pr.rzutny) == 0) {
pr.rzucaj();
}
};
};
Object.registerClass("mama", mama);
#endinitclip
Symbol 270 MovieClip Frame 1
stop();
Symbol 270 MovieClip Frame 3
stop();
Symbol 271 MovieClip [meduza] Frame 1
#initclip 5
md = function () {
this.init();
};
md.prototype = new MovieClip();
md.prototype.init = function () {
this.swapDepths(55);
this.createEmptyMovieClip("onEF", 1);
this.onEF.dir = -1;
this.onEF.onEnterFrame = function () {
var cel;
var pr = this._parent;
if (root.pause) {
return(undefined);
}
if (sl_food.length > 0) {
var i;
var celi;
var cel;
var d = 1000;
var dx;
var dy;
var ABS;
i = 0;
while (i < sl_food.length) {
ABS = Math.abs(sl_food[i]._x - pr._x);
if ((ABS < d) && (sl_food[i]._y < 400)) {
d = ABS;
celi = i;
}
i++;
}
cel = sl_food[celi];
dx = cel._x - pr._x;
dy = (cel._y - pr._y) + 10;
var ratio = (dy / dx);
var Adx = Math.abs(dx);
var Ady = Math.abs(dy);
if ((Adx > 3) || (Ady > 3)) {
if (Ady < 5) {
this.dir = [sg(dx), 0];
} else if (Math.abs(ratio) < 1) {
this.dir = [0.9 * sg(dx), sg(dy) / 2];
} else {
this.dir = [0.75 * sg(dx), 0.75 * sg(dy)];
}
} else {
this.dir = ((Adx > Ady) ? ([sg(dx), Math.abs(ratio) * sg(dy)]) : ([sg(dx) / Math.abs(ratio), sg(dy)]));
}
this.v = 5.5;
if (pr.hitTest(cel._x + 35, cel._y, 1)) {
cel.onPress();
}
} else {
if ((random(20) < 1) || (this.dir == undefined)) {
this.dir = dirs[random(11)];
this.v = random(4) + 2;
}
if (random(3) < 1) {
this.v = random(4) + 2;
}
}
var d0 = this.dir[0];
var d1 = this.dir[1];
var v = this.v;
if ((sg(d0) == 1) && (pr.strony._currentframe != 3)) {
pr.strony.play();
} else if ((sg(d0) == -1) && (pr.strony._currentframe != 1)) {
pr.strony.play();
}
var nx = (pr._x + (d0 * v));
var ny = (pr._y + (d1 * v));
if ((nx <= 430) && (nx >= 50)) {
pr._x = nx;
}
if ((ny <= 400) && (ny >= 90)) {
pr._y = ny;
}
};
};
Object.registerClass("meduza", md);
#endinitclip
stop();
Symbol 282 MovieClip [monster1] Frame 1
if (onEF == undefined) {
this._name = "monster";
nrg = 20;
this.dx = 1;
this.swapDepths(5001);
this.createEmptyMovieClip("onEF", 1).onEnterFrame = function () {
if (root.pause) {
return(undefined);
}
pr = this._parent;
pr._xscale = pr.dx * 100;
var nx = (pr._x + (pr.dx * 3));
var ny = (pr._y + (pr.dy * 3));
if ((nx <= 420) && (nx >= 70)) {
pr._x = nx;
}
if ((ny <= 395) && (ny >= 120)) {
pr._y = ny;
}
if (random(9) == 4) {
pr.dx = (random(2) ? 1 : -1);
pr.dy = (random(2) ? 1 : -1);
}
if (pr.nrg < 0) {
pr._parent.attachMovie("diament", "dm", 5006 + pr._parent.sh_ind, {_x:nx, _y:ny - 30});
pr._parent.sh_ind = 0;
pr.removeMovieClip();
}
};
}
Symbol 290 MovieClip Frame 1
this.doP = 1;
Symbol 291 MovieClip Frame 1
stop();
Symbol 291 MovieClip Frame 4
stop();
Symbol 293 MovieClip [pila] Frame 1
#initclip 6
pila = function () {
this.init();
};
pila.prototype = new MovieClip();
pila.prototype.init = function () {
this.swapDepths(6001);
this.createEmptyMovieClip("onEF", 1);
this.onEF.dir = [-1, 0];
this.onEF.onEnterFrame = function () {
if (root.pause) {
return(undefined);
}
var pr = this._parent;
if (pr._parent.monster) {
var cel = pr._parent.monster;
var dx = (cel._x - pr._x);
var dy = (((cel._y - pr._y) + random(200)) - 100);
var ratio = (dy / dx);
var Adx = Math.abs(dx);
var Ady = Math.abs(dy);
if ((Adx > (pr._width / 2)) || (this.dir[0] == 0)) {
if (Ady < 5) {
this.dir = [sg(dx), 0];
} else if (Math.abs(ratio) < 1) {
this.dir = [0.9 * sg(dx), sg(dy) / 2];
} else {
this.dir = [0.75 * sg(dx), 0.75 * sg(dy)];
}
} else if ((Adx < 15) && (Ady < 15)) {
this.dir = ((Adx > Ady) ? ([sg(dx), Math.abs(ratio) * sg(dy)]) : ([sg(dx) / Math.abs(ratio), sg(dy)]));
}
this.v = 5;
if (cel.hitTest(pr._x + 35, pr._y, 1)) {
pr.strony.rybka.play();
cel.nrg = cel.nrg - 0.2;
}
} else {
if ((random(20) < 1) || (this.dir == undefined)) {
this.dir = dirs[random(11)];
this.v = random(4) + 2;
}
if (random(3) < 1) {
this.v = random(4) + 2;
}
}
var d0 = this.dir[0];
var d1 = this.dir[1];
var v = this.v;
if ((sg(d0) == 1) && (pr.strony.rybka._currentframe != 4)) {
pr.strony.rybka.play();
} else if ((sg(d0) == -1) && (pr.strony.rybka._currentframe != 1)) {
pr.strony.rybka.play();
}
var nx = (pr._x + (d0 * v));
var ny = (pr._y + (d1 * v));
if ((nx <= 420) && (nx >= 60)) {
pr._x = nx;
}
if ((ny <= 405) && (ny >= 95)) {
pr._y = ny;
}
};
};
Object.registerClass("pila", pila);
#endinitclip
stop();
Symbol 302 MovieClip Frame 11
gotoAndPlay (2);
Symbol 307 MovieClip Frame 1
stop();
Symbol 307 MovieClip Frame 3
stop();
Symbol 309 MovieClip [slimak] Frame 1
#initclip 7
sl = function () {
this.init();
};
sl.prototype = new MovieClip();
sl.prototype.init = function () {
this.swapDepths(8005);
this.createEmptyMovieClip("onEF", 1);
this.onEF.dir = -1;
this.onEF.onEnterFrame = function () {
var cel;
var pr = this._parent;
if (root.pause) {
pr.strony.slimak.stop();
pr.strony.slimak.leb.stop();
return(undefined);
}
pr.strony.slimak.play();
pr.strony.slimak.leb.play();
if (pr._parent.monster) {
pr.gotoAndStop(2);
return(undefined);
}
pr.gotoAndStop(1);
if (sl_food.length > 0) {
var i;
var celi;
var d = 1000;
var dx;
i = 0;
while (i < sl_food.length) {
dx = Math.abs(sl_food[i]._x - pr._x);
if (dx < d) {
d = dx;
celi = i;
}
i++;
}
cel = sl_food[celi];
dx = cel._x - pr._x;
this.dir = (((dx < 10) && (dx > -10)) ? 0 : (sg(dx)));
if (this.dir == 0) {
pr.strony.slimak.leb.gotoAndStop(1);
}
this.v = 3;
if (pr.hitTest(cel._x + 35, cel._y, 1)) {
cel.onPress();
}
} else {
if ((random(20) < 1) || (this.dir == undefined)) {
this.dir = random(3) - 1;
this.v = random(2) + 2;
}
if (random(3) < 1) {
this.v = random(2) + 2;
}
}
this.eatTime--;
var n;
var d0 = this.dir;
var v = this.v;
if ((sg(d0) == 1) && (pr.strony._currentframe != 3)) {
pr.strony.play();
} else if ((sg(d0) == -1) && (pr.strony._currentframe != 1)) {
pr.strony.play();
} else if (d0 == 0) {
pr.strony.slimak.gotoAndStop(1);
}
var nx = (pr._x + (d0 * v));
if ((nx <= 445) && (nx >= 30)) {
pr._x = nx;
} else {
pr.strony.slimak.stop();
}
};
};
Object.registerClass("slimak", sl);
#endinitclip
stop();
Symbol 309 MovieClip [slimak] Frame 2
stop();
Symbol 316 MovieClip Frame 1
stop();
Symbol 316 MovieClip Frame 3
stop();
Symbol 317 MovieClip [szkielet] Frame 1
#initclip 8
szk = function () {
this.init();
};
szk.prototype = new MovieClip();
szk.prototype.rzucaj = function () {
root.attachMovie("moneta_zl", "m" + mon_ind, 4000 + (mon_ind++), {_x:this._x, _y:this._y + 15});
if (monInd > 400) {
mon_ind = mon_ind % 400;
}
};
szk.prototype.init = function () {
this.swapDepths(54);
this.rzutny = 300;
this.createEmptyMovieClip("onEF", 1);
this.onEF.dir = [-1, 0];
this.onEF.rzut = random(80);
this.onEF.onEnterFrame = function () {
if (root.pause) {
return(undefined);
}
var pr = this._parent;
if ((random(20) < 1) || (this.dir == undefined)) {
this.dir = dirs[random(11)];
this.v = random(4) + 2;
}
if (random(3) < 1) {
this.v = random(4) + 2;
}
var d0 = this.dir[0];
var d1 = this.dir[1];
var v = this.v;
if ((sg(d0) == 1) && (pr.strony._currentframe != 3)) {
pr.strony.play();
} else if ((sg(d0) == -1) && (pr.strony._currentframe != 1)) {
pr.strony.play();
}
var nx = (pr._x + (d0 * v));
var ny = (pr._y + (d1 * v));
if ((nx <= 440) && (nx >= 45)) {
pr._x = nx;
}
if ((ny <= 390) && (ny >= 100)) {
pr._y = ny;
}
if ((((this.rzut = this.rzut + (1 + random(2)))) % pr.rzutny) == 0) {
pr.rzucaj();
}
};
};
Object.registerClass("szkielet", szk);
#endinitclip
Symbol 319 MovieClip [karma1] Frame 1
this.createEmptyMovieClip("onEF", 1);
g_food.push(this);
onEF.onEnterFrame = function () {
if (root.pause) {
return(undefined);
}
pr = this._parent;
pr._y = pr._y + 2;
if (pr._y > 430) {
this.onEnterFrame = function () {
if (root.pause) {
return(undefined);
}
pr._alpha = pr._alpha - 20;
if (pr._alpha < 20) {
re_el(g_food, pr);
}
};
}
};
Symbol 325 MovieClip Frame 1
stop();
Symbol 334 MovieClip [rybka1] Frame 1
stop();
Symbol 334 MovieClip [rybka1] Frame 4
stop();
Symbol 340 MovieClip Frame 1
stop();
Symbol 343 MovieClip Frame 1
stop();
Symbol 343 MovieClip Frame 2
hat.gotoAndPlay(2);
Symbol 356 MovieClip [rybka2] Frame 1
stop();
Symbol 356 MovieClip [rybka2] Frame 4
stop();
Symbol 358 MovieClip [diament] Frame 1
createEmptyMovieClip("onEF", 1);
this.hitArea = this.hitMC;
this.hitMC._visible = 0;
sl_food.push(this);
onEF.onEnterFrame = function () {
if (root.pause) {
return(undefined);
}
var pr = this._parent;
if (pr.up) {
pr._y = pr._y + ((100 - pr._y) / 4);
if (pr._y < 102) {
pr.up = 0;
}
} else {
pr._y = pr._y + 2.5;
if (pr._y > 450) {
this.onEnterFrame = function () {
if (root.pause) {
return(undefined);
}
pr._alpha = pr._alpha - 5;
if (pr._alpha < 10) {
re_el(sl_food, pr);
}
};
}
}
};
this.onPress = function () {
_root.mon.start();
root.money = root.money + 200;
re_el(sl_food, this);
};
Symbol 360 MovieClip [gwiazdka] Frame 1
if (onEF == undefined) {
this.hitArea = this.hitMC;
this.hitMC._visible = 0;
createEmptyMovieClip("onEF", 1).onEnterFrame = function () {
if (root.pause) {
return(undefined);
}
var pr = this._parent;
pr._y = pr._y + 2.5;
if (pr._y > 450) {
this.onEnterFrame = function () {
if (root.pause) {
return(undefined);
}
pr._alpha = pr._alpha - 10;
if (pr._alpha < 30) {
re_el(k_food, pr, 1);
}
if (pr._alpha < 10) {
pr.removeMovieClip();
}
};
}
};
this.onPress = function () {
_root.mon.start();
root.money = root.money + 40;
re_el(k_food, this);
};
}
Symbol 365 MovieClip [moneta_sr] Frame 1
if (onEF == undefined) {
createEmptyMovieClip("onEF", 1);
this.hitArea = this.hitMC;
this.hitMC._visible = 0;
sl_food.push(this);
onEF.onEnterFrame = function () {
if (root.pause) {
return(undefined);
}
var pr = this._parent;
pr._y = pr._y + 2.5;
if (pr._y > 450) {
this.onEnterFrame = function () {
if (root.pause) {
return(undefined);
}
pr._alpha = pr._alpha - 5;
if (pr._alpha < 10) {
re_el(sl_food, pr);
}
};
}
};
this.onPress = function () {
_root.mon.start();
root.money = root.money + 15;
re_el(sl_food, this);
};
}
Symbol 369 MovieClip [moneta_zl] Frame 1
if (onEF == undefined) {
createEmptyMovieClip("onEF", 1);
this.hitArea = this.hitMC;
this.hitMC._visible = 0;
sl_food.push(this);
onEF.onEnterFrame = function () {
if (root.pause) {
return(undefined);
}
var pr = this._parent;
pr._y = pr._y + 2.5;
if (pr._y > 450) {
this.onEnterFrame = function () {
if (root.pause) {
return(undefined);
}
pr._alpha = pr._alpha - 5;
if (pr._alpha < 10) {
re_el(sl_food, pr);
}
};
}
};
this.onPress = function () {
_root.mon.start();
root.money = root.money + 25;
re_el(sl_food, this);
};
}
Symbol 382 MovieClip Frame 1
stop();
Symbol 382 MovieClip Frame 3
stop();
Symbol 383 MovieClip [konik] Frame 1
#initclip 9
konik = function () {
this.init();
};
konik.prototype = new MovieClip();
konik.prototype.rzucaj = function () {
this.timer = 15;
var gf = root.karm.g_food_ind;
root.attachMovie("karma2", "k" + gf, 100 + gf, {_x:this._x + (((this.strony._currentframe == 1) ? -1 : 1) * 20), _y:this._y - 5});
root.karm.g_food_ind++;
if (root.karm.g_food_ind >= 50) {
root.karm.g_food_ind = 0;
}
};
konik.prototype.init = function () {
this.swapDepths(53);
this.rzutny = 300;
this.createEmptyMovieClip("onEF", 1);
this.onEF.dir = [-1, 0];
this.onEF.rzut = random(80);
this.onEF.onEnterFrame = function () {
if (root.pause) {
return(undefined);
}
var pr = this._parent;
if ((random(20) < 1) || (this.dir == undefined)) {
this.dir = dirs[random(11)];
this.v = random(4) + 2;
}
if ((pr.timer--) > 0) {
this.dir = [0, 0];
}
if (random(3) < 1) {
this.v = random(4) + 2;
}
var d0 = this.dir[0];
var d1 = this.dir[1];
var v = this.v;
if ((sg(d0) == 1) && (pr.strony._currentframe != 3)) {
pr.strony.play();
} else if ((sg(d0) == -1) && (pr.strony._currentframe != 1)) {
pr.strony.play();
}
var nx = (pr._x + (d0 * v));
var ny = (pr._y + (d1 * v));
if ((nx <= 410) && (nx >= 70)) {
pr._x = nx;
}
if ((ny <= 300) && (ny >= 115)) {
pr._y = ny;
}
if ((((this.rzut = this.rzut + (1 + random(3)))) % pr.rzutny) == 0) {
pr.rzucaj();
}
};
};
Object.registerClass("konik", konik);
#endinitclip
Symbol 385 MovieClip [karma2] Frame 1
this.createEmptyMovieClip("onEF", 1);
g_food.push(this);
this.power = 1.3;
onEF.onEnterFrame = function () {
if (root.pause) {
return(undefined);
}
pr = this._parent;
pr._y = pr._y + 2;
if (pr._y > 430) {
this.onEnterFrame = function () {
if (root.pause) {
return(undefined);
}
pr._alpha = pr._alpha - 20;
if (pr._alpha < 20) {
re_el(g_food, pr);
}
};
}
};
Symbol 396 MovieClip [malza] Frame 1
this.doP = 1;
Symbol 396 MovieClip [malza] Frame 45
this.jajo._visible = true;
Symbol 396 MovieClip [malza] Frame 70
jajo.onPress = function () {
this._parent._parent.money = this._parent._parent.money + 200;
delete this.onPress;
this._visible = 0;
this._parent.gotoAndPlay(500 + random(700));
};
Symbol 396 MovieClip [malza] Frame 252
if ((jajo._visible = 0)) {
gotoAndPlay (440);
}
delete this.jajo.onPress;
Symbol 396 MovieClip [malza] Frame 374
gotoAndPlay(_currentframe + random(1000));
Symbol 400 MovieClip Frame 16
gotoAndPlay (1);
Symbol 401 MovieClip Frame 1
stop();
Symbol 401 MovieClip Frame 3
stop();
Symbol 402 MovieClip [wiel] Frame 1
#initclip 10
wiel = function () {
this.init();
};
wiel.prototype = new MovieClip();
wiel.prototype.pysk = function () {
this.strony.ryba.gotoAndPlay(17);
};
wiel.prototype.init = function () {
this.gup = [];
this.ile = 0;
this.swapDepths(56);
this.rzutny = 300;
this.createEmptyMovieClip("onEF", 1);
this.onEF.dir = [-1, 0];
this.onEF.rzut = random(80);
this.onEF.onEnterFrame = function () {
var pr = this._parent;
if (root.pause) {
pr.strony.ryba.stop();
return(undefined);
}
pr.strony.ryba.play();
if ((random(20) < 1) || (this.dir == undefined)) {
this.dir = random(3) - 1;
this.v = random(4) + 2;
}
if (random(3) < 1) {
this.v = random(4) + 2;
}
var n;
var d0 = this.dir;
var v = this.v;
if ((sg(d0) == 1) && (pr.strony._currentframe != 3)) {
pr.strony.play();
} else if ((sg(d0) == -1) && (pr.strony._currentframe != 1)) {
pr.strony.play();
}
var nx = (pr._x + (d0 * v));
if ((nx <= 425) && (nx >= 55)) {
pr._x = nx;
}
if ((!pr._parent.monster) && (pr.ile > 0)) {
pr.pysk();
var gup = pr.gup[--pr.ile];
gup._x = pr._x;
gup._y = pr._y;
gup._visible = 1;
gup.onEF.onEnterFrame = gup.onEF.onEF;
delete gup.onEF.onEF;
pr.gup.pop();
}
};
};
Object.registerClass("wiel", wiel);
#endinitclip
Symbol 404 MovieClip [karma3] Frame 1
this.createEmptyMovieClip("onEF", 1);
g_food.push(this);
this.power = 1.6;
onEF.onEnterFrame = function () {
if (root.pause) {
return(undefined);
}
pr = this._parent;
pr._y = pr._y + 2;
if (pr._y > 430) {
this.onEnterFrame = function () {
if (root.pause) {
return(undefined);
}
pr._alpha = pr._alpha - 20;
if (pr._alpha < 20) {
re_el(g_food, pr);
}
};
}
};
Symbol 415 MovieClip [monster2] Frame 1
if (onEF == undefined) {
this._name = "monster";
nrg = 20;
this.swapDepths(5001);
this.dx = 1;
this.createEmptyMovieClip("onEF", 1).onEnterFrame = function () {
if (root.pause) {
return(undefined);
}
pr = this._parent;
pr._xscale = pr.dx * 100;
var nx = (pr._x + (pr.dx * 3));
var ny = (pr._y + (pr.dy * 3));
if ((nx <= 420) && (nx >= 70)) {
pr._x = nx;
}
if ((ny <= 395) && (ny >= 120)) {
pr._y = ny;
}
if (random(9) == 4) {
pr.dx = (random(2) ? 1 : -1);
pr.dy = (random(2) ? 1 : -1);
}
if (pr.nrg < 0) {
pr._parent.attachMovie("diament", "dm", 5006 + pr._parent.sh_ind, {_x:nx, _y:ny - 30});
pr._parent.sh_ind = 0;
pr.removeMovieClip();
}
};
}
Symbol 420 MovieClip [shot] Frame 1
this.doP = 1;
Symbol 420 MovieClip [shot] Frame 9
this.removeMovieClip();
Symbol 422 MovieClip [nuta] Frame 1
this.createEmptyMovieClip("onEF", 1);
onEF.onEnterFrame = function () {
if (root.pause) {
return(undefined);
}
var pr = this._parent;
pr._y = pr._y - 3;
if (pr._y < 70) {
pr.removeMovieClip();
}
if (((pr._y > 157) && (pr._y < 161)) || ((pr._y > 97) && (pr._y < 101))) {
var pr_pr = pr._parent;
for (var i in pr_pr) {
if (pr_pr[i].gupik) {
pr_pr[i].rzucaj();
}
}
}
};
Symbol 441 Button
on (press) {
nextFrame();
}
Symbol 456 Button
on (press) {
prevFrame();
}
Symbol 466 MovieClip Frame 1
stop();
Symbol 466 MovieClip Frame 2
stop();
Symbol 466 MovieClip Frame 3
stop();
Symbol 471 MovieClip Frame 1
stop();
Symbol 471 MovieClip Frame 2
stop();
Symbol 471 MovieClip Frame 3
stop();
Symbol 474 MovieClip Frame 1
stop();
Symbol 474 MovieClip Frame 2
stop();
Symbol 474 MovieClip Frame 3
stop();
Symbol 477 MovieClip Frame 1
stop();
Symbol 477 MovieClip Frame 2
stop();
Symbol 477 MovieClip Frame 3
stop();
Symbol 480 MovieClip Frame 1
stop();
Symbol 480 MovieClip Frame 2
stop();
Symbol 480 MovieClip Frame 3
stop();
Symbol 483 MovieClip Frame 1
stop();
Symbol 483 MovieClip Frame 2
stop();
Symbol 483 MovieClip Frame 3
stop();
Symbol 486 MovieClip Frame 1
stop();
Symbol 486 MovieClip Frame 2
stop();
Symbol 486 MovieClip Frame 3
stop();
Symbol 489 MovieClip Frame 1
stop();
Symbol 489 MovieClip Frame 2
stop();
Symbol 489 MovieClip Frame 3
stop();
Symbol 492 MovieClip Frame 1
stop();
Symbol 492 MovieClip Frame 2
stop();
Symbol 492 MovieClip Frame 3
stop();
Symbol 495 MovieClip Frame 1
stop();
Symbol 495 MovieClip Frame 2
stop();
Symbol 495 MovieClip Frame 3
stop();
Symbol 498 MovieClip Frame 1
stop();
Symbol 498 MovieClip Frame 2
stop();
Symbol 498 MovieClip Frame 3
stop();
Symbol 501 Button
on (press) {
if (_root.stwor.length == 3) {
_root.play();
}
}
Symbol 504 MovieClip Frame 1
Key.addListener(this);
k = 0;
p = 1;
c = 1;
ch = "";
this.onKeyDown = function () {
ch = String.fromCharCode(Key.getAscii()).toLowerCase();
if (k == 0) {
if (ch == tip1[0]) {
c = 1;
k = 1;
}
if (ch == tip2[0]) {
c = 2;
k = 1;
}
if ((ch == tip3[0]) && (Key.isDown(16))) {
c = 3;
k = 1;
}
} else {
var cot = this["tip" + c];
if (ch == cot[k]) {
if ((c == 3) && (!Key.isDown(16))) {
k = 0;
return(undefined);
}
k++;
if (k == cot.length) {
switch (c) {
case 1 :
this._parent._parent.onPromo(p);
p++;
break;
case 2 :
this._parent._parent.money = this._parent._parent.money + 10000;
break;
case 3 :
getURL ("http://power.imbryk.prv.pl/?from=redneckPets", "_blank");
}
k = 0;
}
} else {
k = 0;
}
}
};
Instance of Symbol 504 MovieClip in Symbol 505 MovieClip Frame 1
onClipEvent (load) {
this.tip1 = "rybki".split("");
this.tip2 = "kaska".split("");
this.tip3 = "imbryk".split("");
}
Symbol 511 MovieClip Frame 1
stop();
Symbol 511 MovieClip Frame 2
stop();
Symbol 523 MovieClip Frame 1
this.mc._visible = 0;
this.hitArea = this.mc;
this.useHandCursor = 0;
this.swapDepths(100000);
this.onPress = function () {
};
Symbol 535 MovieClip Frame 1
this.ceny = [150, 500, 2000, 3000, 5000, 750, 3000, 5000, 7500, 10000, 10000];
this.txt.text = this.ceny[Math.min(9, _root.level - 1)];
stop();
Symbol 535 MovieClip Frame 2
stop();
Symbol 535 MovieClip Frame 3
stop();
Symbol 537 MovieClip Frame 1
stop();
Symbol 543 MovieClip Frame 1
stop();
Symbol 543 MovieClip Frame 2
stop();
Symbol 543 MovieClip Frame 11
this._y = this._y - 100;
Symbol 545 MovieClip Frame 1
stop();
Symbol 546 MovieClip Frame 1
stop();
Symbol 546 MovieClip Frame 9
this._y = this._y - 100;
Symbol 551 MovieClip Frame 1
stop();
Symbol 556 MovieClip Frame 1
stop();
Symbol 556 MovieClip Frame 2
stop();
Symbol 562 MovieClip Frame 1
stop();
Symbol 564 Button
on (press) {
_x = -350;
_parent.helpikJest = false;
_parent.pausaF();
}
Symbol 565 MovieClip Frame 1
this.swapDepths(100000);
Symbol 566 MovieClip Frame 1
if (((_root.level > 5) && (_root.level < 11)) || (_root.tank == 2)) {
this.tank.gotoAndStop(2);
}
_global.g_food = [];
_global.s_food = [];
_global.k_food = [];
_global.sl_food = [];
_global.fish_arr = [];
_global.laz_arr = [];
_global.root = this;
_global.mon_ind = 0;
this.fish_ind = 2;
this.money = 200;
this.power = 1;
this.karm.g_food_ind = 0;
this.karm.maxF = 1;
this.karm.q = 1;
this.karm.onPress = function () {
var pr = this._parent;
if (pr.pausa) {
return(undefined);
}
if (pr.monster) {
var x = pr._xmouse;
var y = pr._ymouse;
var mn = pr.monster;
pr.attachMovie("shot", sh + pr.sh_ind, 5005 + (pr.sh_ind++), {_x:x, _y:y});
if (mn.hitTest(x + 35, y, 1)) {
mn.nrg = mn.nrg - pr.power;
}
if ((x > mn._x) && (x < (mn._x + 50))) {
mn.dx = -1;
}
if ((x < mn._x) && (x > (mn._x - 50))) {
mn.dx = 1;
}
if ((y > mn._y) && (y < (mn._y + 100))) {
mn.dy = -1;
}
if ((y < mn._y) && (y > (mn._y - 100))) {
mn.dy = 1;
}
} else {
if (g_food.length >= this.maxF) {
return(undefined);
}
if (pr.money < 5) {
pr.nima.play();
return(undefined);
}
var gf = this.g_food_ind;
if (pr.dajStarP) {
pr.attachMovie("starP", "k" + gf, 100 + gf, {_x:_xmouse, _y:_ymouse});
pr.dajstarP = 0;
} else {
pr.attachMovie("karma" + this.q, "k" + gf, 100 + gf, {_x:_xmouse, _y:_ymouse});
}
this.g_food_ind++;
if (this.g_food_ind >= 50) {
this.g_food_ind = 0;
}
pr.money = pr.money - 5;
}
};
this.karm.useHandCursor = false;
this.pausaF = function () {
if (this.pause) {
this.pausaMC._y = -600;
this.pause = 0;
for (var i in this) {
var thi = this[i];
if (thi.doP) {
thi.play();
}
}
this.pauseTime = getTimer() - this.pauseStart;
_root.startTime = _root.startTime + this.pauseTime;
} else {
this.pauseStart = getTimer();
this.pausaMC._y = 0;
this.pause = 1;
for (var i in this) {
var thi = this[i];
if (thi.doP) {
thi.stop();
}
}
}
};
this.menuL = 0;
this.menuG = 50;
this.menuX = 24;
this.menuY = 25;
this.onPromo = function (x) {
var l = _root.level;
if ((menuL == 0) && (x == 1)) {
menuL++;
fishBut._y = menuY;
} else if ((menuL == 1) && (x == 2)) {
menuL++;
if (l == 1) {
eggBut._x = menuX + menuG;
eggBut._y = menuY;
} else if (l == 2) {
foodBut._y = menuY;
} else if (l < 6) {
foodBut._y = (food2But._y = (skalBut._y = menuY));
} else if (l == 6) {
foodBut._y = (starBut._y = (eggBut._y = menuY));
eggBut._x = menuX + (3 * menuG);
} else if ((l < 11) || (_root.tank == 2)) {
foodBut._y = (starBut._y = (lazBut._y = menuY));
} else if (_root.tank == 1) {
foodBut._y = (food2But._y = (skalBut._y = menuY));
}
} else if ((menuL == 2) && (x == 3)) {
if (l == 2) {
food2But._y = (eggBut._y = menuY);
eggBut._x = menuX + (3 * menuG);
} else if ((l > 2) && (l != 6)) {
gunBut._y = (eggBut._y = menuY);
eggBut._x = menuX + (5 * menuG);
}
}
};
if (_root.level > 1) {
this.createEmptyMovieClip("mon_onEF", 2).onEnterFrame = function () {
if (root.pause) {
return(undefined);
}
this.i = this.i + (1 + Math.floor(random(4) / 3));
if (this.i > 3000) {
this.i = 0;
_root.monster_f(((((_root.level > 5) && (_root.level < 11)) || (_root.tank == 2)) ? 2 : 1));
}
};
}
this.mon_onEF.i = 2000;
this.noFish = function () {
if (_root.level == 1) {
_root._game(10);
} else if (_root.level < 11) {
_root._game(11);
} else {
_root._game(7);
}
};
attachMovie("gupik", "g0", 1000, {_x:50 + random(350), _y:100 + random(150)});
attachMovie("gupik", "g1", 1001, {_x:50 + random(350), _y:100 + random(150)});
g0.init();
g1.init();
_root.startTime = getTimer();
mo1.onPress = function () {
_root.monster_f(1);
};
mo2.onPress = function () {
_root.monster_f(2);
};
stop();
Instance of Symbol 516 MovieClip "fishBut" in Symbol 566 MovieClip Frame 1
on (press) {
pr = this._parent;
if (pr.money < 100) {
pr.nima.play();
return(undefined);
}
pr.money = pr.money - 100;
var mc = pr.attachMovie("gupik", "g" + pr.fish_ind, 1000 + (pr.fish_ind++), {_x:50 + random(350), _y:35, _rotation:-25});
if (pr.fish_ind > 2900) {
pr.fish_ind = 1;
}
mc.createEmptyMovieClip("onEF", 1).onEnterFrame = function () {
if (root.pause) {
return(undefined);
}
var pr = this._parent;
pr._x = pr._x - 2;
pr._y = pr._y + 5;
if (pr._y > 75) {
delete this.onEnterFrame;
pr._rotation = 0;
pr.init();
}
};
}
Instance of Symbol 519 MovieClip "starBut" in Symbol 566 MovieClip Frame 1
on (press) {
pr = this._parent;
if (pr.money < 250) {
pr.nima.play();
return(undefined);
}
pr.dajStarP = 1;
pr.money = pr.money - 250;
}
Instance of Symbol 526 MovieClip "skalBut" in Symbol 566 MovieClip Frame 1
on (press) {
pr = this._parent;
if (pr.money < 1000) {
pr.nima.play();
return(undefined);
}
pr.onPromo(3);
pr.money = pr.money - 1000;
var mc = pr.attachMovie("skalar", "g" + pr.fish_ind, 1000 + (pr.fish_ind++), {_x:100 + random(250), _y:35, _rotation:-25});
if (pr.fish_ind > 2900) {
pr.fish_ind = 1;
}
mc.createEmptyMovieClip("onEF", 1).onEnterFrame = function () {
if (root.pause) {
return(undefined);
}
var pr = this._parent;
pr._x = pr._x - 2;
pr._y = pr._y + 5;
if (pr._y > 100) {
delete this.onEnterFrame;
pr._rotation = 0;
pr.init();
}
};
}
Instance of Symbol 529 MovieClip "lazBut" in Symbol 566 MovieClip Frame 1
on (press) {
pr = this._parent;
if (pr.money < 750) {
pr.nima.play();
return(undefined);
}
pr.money = pr.money - 750;
pr.onPromo(3);
var mc = pr.attachMovie("lazik", "g" + pr.fish_ind, 1000 + (pr.fish_ind++), {_x:50 + random(350), _y:330});
if (pr.fish_ind > 2900) {
pr.fish_ind = 1;
}
}
Instance of Symbol 535 MovieClip "eggBut" in Symbol 566 MovieClip Frame 1
on (press) {
pr = this._parent;
this.cena = this.ceny[_root.level - 1];
if (pr.money < this.cena) {
pr.nima.play();
return(undefined);
}
pr.money = pr.money - this.cena;
if (this._currentframe < 3) {
this.nextFrame();
} else {
_root.gameTime = getTimer() - _root.startTime;
_root.pkts = _root.pkts + pr.money;
_root._game(7);
}
}
Instance of Symbol 543 MovieClip "foodBut" in Symbol 566 MovieClip Frame 1
on (press) {
pr = this._parent;
if (_currentframe == 1) {
if (pr.money < 200) {
pr.nima.play();
return(undefined);
}
nextFrame();
pr.money = pr.money - 200;
pr.karm.q++;
pr.food2But.food.nextFrame();
if (_root.level == 2) {
pr.onPromo(3);
}
} else if (_root.level < 6) {
if (pr.money < 200) {
pr.nima.play();
return(undefined);
}
nextFrame();
pr.money = pr.money - 200;
pr.karm.q++;
this._y = this._y - 100;
pr.food2But.food.nextFrame();
} else if (_currentframe == 2) {
if (pr.money < 200) {
pr.nima.play();
return(undefined);
}
nextFrame();
pr.money = pr.money - 200;
pr.karm.q++;
this.txt.text = this._currentframe - 1;
} else {
if (pr.money < 300) {
pr.nima.play();
return(undefined);
}
nextFrame();
pr.money = pr.money - 300;
pr.karm.maxF++;
this.txt.text = this._currentframe - 1;
}
}
Instance of Symbol 546 MovieClip "food2But" in Symbol 566 MovieClip Frame 1
on (press) {
pr = this._parent;
if (pr.money < 300) {
pr.nima.play();
return(undefined);
}
nextFrame();
pr.money = pr.money - 300;
pr.karm.maxF++;
this.txt.text = this._currentframe + 1;
}
Instance of Symbol 551 MovieClip "gunBut" in Symbol 566 MovieClip Frame 1
on (press) {
pr = this._parent;
if (pr.money < 1000) {
pr.nima.play();
return(undefined);
}
pr.money = pr.money - 1000;
pr.power = pr.power + 0.3;
this.txt.text = Number(this.txt.text) + 1;
if (this.txt.text == 10) {
this._y = this._y - 100;
}
}
Instance of Symbol 553 MovieClip "p" in Symbol 566 MovieClip Frame 1
on (press) {
pr = this._parent;
if (!pr.helpikJest) {
pr.pausaF();
}
}
Instance of Symbol 556 MovieClip "mtB" in Symbol 566 MovieClip Frame 1
onClipEvent (load) {
if (_root.global_sound.getVolume() == 0) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
on (press) {
var snd = _root.global_sound;
if (snd.getVolume() == 0) {
snd.setVolume(100);
this.gotoAndStop(1);
} else {
snd.setVolume(0);
this.gotoAndStop(2);
}
}
Instance of Symbol 562 MovieClip "helpik" in Symbol 566 MovieClip Frame 1
on (press) {
pr = this._parent;
if (!pr.helpikJest) {
pr.helpikJest = true;
if (!pr.pause) {
pr.pausaF();
}
pr.helpikTab._x = 240;
}
}
Symbol 598 Button
on (press) {
_root.my_so.data[_root.Sgame].znalezione = [];
_root.copy(_root.my_so.data[_root.Sgame].znalezione, _root.znalezione);
_root.my_so.data[_root.Sgame].stworki = [];
_root.copy(_root.my_so.data[_root.Sgame].stworki, _root.stworki);
_root.my_so.data[_root.Sgame].level = _root.level;
_root.my_so.data[_root.Sgame].pkts = _root.pkts;
_root.my_so.data[_root.Sgame].hofOK = _root.hofOK;
_root.my_so.flush();
}
Symbol 604 Button
on (press) {
this.SAgame._x = 275;
}
Symbol 609 Button
on (press) {
if (_root.level == 11) {
_root._game(8);
} else {
_root._game(4);
}
}
Symbol 610 MovieClip Frame 1
but0.gotoAndStop(2);
but0.gra = 0;
but0.graN = 1;
but0.onPress = function () {
_root.Sgame = "g" + this.gra;
_root.my_so.data.savedGame = Math.max(_root.my_so.data.savedGame, this.gra + 1);
_root.my_so.data[_root.Sgame] = {};
_root.my_so.data[_root.Sgame].znalezione = [];
_root.copy(_root.my_so.data[_root.Sgame].znalezione, _root.znalezione);
_root.my_so.data[_root.Sgame].stworki = [];
_root.copy(_root.my_so.data[_root.Sgame].stworki, _root.stworki);
_root.my_so.data[_root.Sgame].level = _root.level;
_root.my_so.data[_root.Sgame].pkts = _root.pkts;
_root.my_so.data[_root.Sgame].hofOK = _root.hofOK;
_root.my_so.flush();
this.graN = this.gra + 1;
this._parent._x = -300;
};
i = 1;
while (i <= Math.min(5, _root.my_so.data.savedGame)) {
this["but" + i].gotoAndStop(2);
this["but" + i].gra = i;
this["but" + i].graN = i + 1;
this["but" + i].onPress = but0.onPress;
if (i == _root.my_so.data.savedGame) {
this["but" + i].graN = "";
}
i++;
}
if (_root.my_so.data.savedGame == undefined) {
but0.graN = "";
}
Symbol 615 Button
on (press) {
_root.my_so.data.znalezione = undefined;
_root.starting();
}
Symbol 621 MovieClip Frame 1
stop();
Symbol 621 MovieClip Frame 2
stop();
Symbol 624 MovieClip Frame 1
stop();
Symbol 624 MovieClip Frame 2
stop();
Symbol 639 Button
on (press) {
this.gotoAndStop("weekly");
}
Symbol 640 Button
on (press) {
this.gotoAndStop("daily");
}
Symbol 641 Button
on (press) {
this.gotoAndStop("hourly");
}
Symbol 644 Button
on (press) {
this.gotoAndStop("monthly");
}
Symbol 649 Button
on (press) {
this.gotoAndStop("daily");
}
Symbol 652 MovieClip Frame 1
this._parent.tp = 2592000 /* 0x278D00 */;
this._parent.tc = 0;
this._parent.reload();
stop();
Symbol 652 MovieClip Frame 2
this._parent.tp = 604800 /* 0x093A80 */;
this._parent.tc = 0;
this._parent.reload();
Symbol 652 MovieClip Frame 3
this._parent.tp = 86400 /* 0x015180 */;
this._parent.tc = 0;
this._parent.reload();
Symbol 652 MovieClip Frame 4
this._parent.tp = 3600;
this._parent.tc = 0;
this._parent.reload();
Symbol 659 Button
on (press) {
this.tc--;
this.reload();
}
Symbol 664 Button
on (press) {
this.tc = ((this.tc < 0) ? (this.tc + 1) : 0);
this.reload();
}
Symbol 667 Button
on (press) {
if (this.submitted == false) {
this.loadVariables((((this.__url + "hof_put.php?id=") + this.gid) + "&s=") + this.sc);
}
}
Symbol 671 Button
on (press) {
this._parent.l = 10;
this._parent.reload();
this.gotoAndStop(2);
}
Symbol 674 Button
on (press) {
this._parent.l = 100;
this._parent.reload();
this.gotoAndStop(1);
}
Symbol 675 MovieClip Frame 1
stop();
Symbol 688 MovieClip Frame 1
stop();
Symbol 688 MovieClip Frame 18
stop();
Symbol 692 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 691 MovieClip "m" in Symbol 692 MovieClip Frame 1
on (press) {
this.startDrag();
}
on (release, releaseOutside) {
this.stopDrag();
this._parent.reset();
}
Symbol 697 MovieClip Frame 1
this._visible = _root.ligin == undefined;
this.onPress = function () {
getURL ("http://www.netstupidity.com");
};
Symbol 698 MovieClip Frame 1
this.submitted = false;
Symbol 698 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 705 Button
on (press) {
if (_root.git) {
_root._game(5);
}
}
Symbol 723 Button
on (press) {
_root.starting();
}