Frame 1
function __com_mochibot__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
var pv;
mb = "__mochibot__";
mbc = "mochibot.com";
g = (_global ? (_global) : (_level0._root));
if (g[mb + swfid]) {
return(g[mb + swfid]);
}
s = System.security;
x = mc._root.getSWFVersion;
fv = (x ? (mc.getSWFVersion()) : ((_global ? 6 : 5)));
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == "localWithFile") {
return(null);
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
pv = ((fv == 5) ? (getVersion()) : (System.capabilities.version));
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=8&fv=") + fv) + "&v=") + escape(pv)) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "")) + (trk ? "&t=1" : "");
lv = ((fv > 6) ? (mc.getNextHighestDepth()) : ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv))));
g[mb + "level"] = lv;
if (fv == 5) {
res = "_level" + lv;
if (!eval (res)) {
loadMovieNum (u, lv);
}
} else {
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
}
return(res);
}
__com_mochibot__("73d54f05", this, 10301, true);
mochi.as2.MochiServices.connect("ba00d2515db85453");
domain_parts = _url.split("://");
real_domain = domain_parts[1].split("/");
_root.allow = true;
var CPMStarContentSpotID = "2670QF38640AC";
System.security.allowDomain("server.cpmstar.com");
trace("========================>" + real_domain[0]);
if (((real_domain[0].indexOf("playhub.com") != -1) || (real_domain[0].indexOf("kaisergames.com") != -1)) || (real_domain[0].indexOf("littlebigplay.com") != -1)) {
_root.allow = false;
} else {
_root.allow = true;
adBox.loadMovie("http://server.cpmstar.com/adviewas2.swf?contentspotid=" + CPMStarContentSpotID);
}
zobraz = 0;
stop();
var lastRotation = 0;
this.onEnterFrame = function () {
zobraz++;
var _local5 = _root.getBytesLoaded();
var _local4 = _root.getBytesTotal();
var _local2 = (_local5 / _local4) * 100;
var _local3 = Math.round(_local2);
preloader.percent.text = _local3.toString();
lastRotation = lastRotation + (((_local2 * 3.6) - lastRotation) / 10);
preloader.animal._rotation = lastRotation;
if (_local3 >= 100) {
preloader._visible = false;
if (zobraz >= 200) {
buttonStart.gotoAndStop(2);
}
}
};
Frame 242
function plesk() {
_root.pleskClip.gotoAndPlay(2);
}
function anim_re(hlavni, podmov, pocet) {
hlavni = hlavni.substr(1);
podmov = podmov.substr(1);
if (_root[hlavni][podmov]._currentframe == 1) {
_root[hlavni][podmov].gotoAndStop(pocet);
} else {
_root[hlavni][podmov].prevFrame();
}
}
function anim_fw(hlavni, podmov, pocet) {
hlavni = hlavni.substr(1);
podmov = podmov.substr(1);
if (this[hlavni][podmov]._currentframe == pocet) {
this[hlavni][podmov].gotoAndStop(1);
} else {
this[hlavni][podmov].nextFrame();
}
}
function toRad(cislo) {
nuhel = (Math.PI * cislo) / 180;
return(nuhel);
}
function toDeg(cislo) {
nuhel = (180 * cislo) / Math.PI;
return(nuhel);
}
function delka(dx, dy) {
vel = Math.sqrt((dx * dx) + (dy * dy));
return(vel);
}
function uhel(dx, dy, delka) {
uhel_rad = Math.acos(dx / delka);
uhel_pom = _root.toDeg(uhel_rad);
if (dy <= 0) {
uhel_rig = uhel_pom;
} else {
uhel_rig = 360 - uhel_pom;
}
return(uhel_rig);
}
function uhel_kor(uhel) {
if (uhel > 360) {
uhel = uhel - 360;
}
if (uhel < 0) {
uhel = uhel + 360;
}
return(uhel);
}
function nova_x(uhel, delka) {
uhel_pom = _root.toRad(uhel) * -1;
n = delka * Math.cos(uhel_pom);
return(n);
}
function nova_y(uhel, delka) {
uhel_pom = _root.toRad(uhel) * -1;
n = delka * Math.sin(uhel_pom);
return(n);
}
function mark(cis) {
if (cis < 0) {
ma = -1;
} else {
ma = 1;
}
return(ma);
}
compJahodak = true;
compMalinak = true;
cisloLevelu = 1;
hudba = true;
totalScore = 0;
hlasitost = 100;
hra = 0;
zvire.zvireTyp = 0;
zvire2.zvireTyp = 3;
zvireT = 0;
zvireT2 = 3;
kolo = 1;
jump = true;
comp = true;
malina = 0;
jahoda = 0;
stopAll = false;
_root.s = new Sound();
s.setVolume(hlasitost);
if (zvukje == false) {
hlas.gotoAndStop(2);
}
doAction = 0;
dAction = 0;
if (dAction == 0) {
cisloH1 = "comp";
cisloH2 = "player";
}
if (dAction == 1) {
cisloH1 = "player 1";
cisloH2 = "player 2";
}
Frame 243
onEnterFrame = function () {
if (dAction == 2) {
p1l._visible = false;
p1r._visible = false;
}
if (dAction == 1) {
p1l._visible = true;
p1r._visible = true;
}
if (doAction == 1) {
gotoAndPlay (246);
doAction = 0;
}
if (doAction == 2) {
gotoAndPlay (244);
doAction = 0;
}
};
stop();
Frame 244
function plesk() {
_root.pleskClip.gotoAndPlay(2);
}
function anim_re(hlavni, podmov, pocet) {
hlavni = hlavni.substr(1);
podmov = podmov.substr(1);
if (_root[hlavni][podmov]._currentframe == 1) {
_root[hlavni][podmov].gotoAndStop(pocet);
} else {
_root[hlavni][podmov].prevFrame();
}
}
function anim_fw(hlavni, podmov, pocet) {
hlavni = hlavni.substr(1);
podmov = podmov.substr(1);
if (this[hlavni][podmov]._currentframe == pocet) {
this[hlavni][podmov].gotoAndStop(1);
} else {
this[hlavni][podmov].nextFrame();
}
}
function toRad(cislo) {
nuhel = (Math.PI * cislo) / 180;
return(nuhel);
}
function toDeg(cislo) {
nuhel = (180 * cislo) / Math.PI;
return(nuhel);
}
function delka(dx, dy) {
vel = Math.sqrt((dx * dx) + (dy * dy));
return(vel);
}
function uhel(dx, dy, delka) {
uhel_rad = Math.acos(dx / delka);
uhel_pom = _root.toDeg(uhel_rad);
if (dy <= 0) {
uhel_rig = uhel_pom;
} else {
uhel_rig = 360 - uhel_pom;
}
return(uhel_rig);
}
function uhel_kor(uhel) {
if (uhel > 360) {
uhel = uhel - 360;
}
if (uhel < 0) {
uhel = uhel + 360;
}
return(uhel);
}
function nova_x(uhel, delka) {
uhel_pom = _root.toRad(uhel) * -1;
n = delka * Math.cos(uhel_pom);
return(n);
}
function nova_y(uhel, delka) {
uhel_pom = _root.toRad(uhel) * -1;
n = delka * Math.sin(uhel_pom);
return(n);
}
function mark(cis) {
if (cis < 0) {
ma = -1;
} else {
ma = 1;
}
return(ma);
}
function ulozeni_skore() {
if (_root.username.length > 0) {
o = new Object();
o.username = _root.username;
o.idhry = _root.idhry;
o.score = malina;
score = malina;
o.umisteni = "";
loadVariables ("hry_nacti.php", "", "POST");
gameover.umisteni = umisteni;
loadVariables ("hry_uloz.php", "", "POST");
} else {
o = new Object();
o.umisteni = "";
}
}
function changeScore(player, typ) {
if (typ == 1) {
points = scoreLostBall;
if (player == 2) {
malina_life.nextFrame();
}
if (player == 1) {
jahoda_life.nextFrame();
}
} else {
points = scoreHit;
}
if (player == 1) {
malina = malina + points;
nz = nz + points;
}
if (player == 2) {
jahoda = jahoda + points;
}
}
compJahodak = true;
compMalinak = false;
victory = false;
victory2 = false;
zivot = 5;
zivotJ = 5;
zivotM = 5;
menicko = false;
handicap = false;
konechry = false;
dalsikolo = false;
nextLevel = false;
hlasitost = 100;
konec2 = false;
compB = 0;
nz = 0;
if (zvukje == false) {
hlas.gotoAndStop(2);
}
if (kolo == 1) {
jahoda_life.gotoAndStop(5);
}
if (kolo == 2) {
jahoda_life.gotoAndStop(5);
}
if (kolo == 3) {
jahoda_life.gotoAndStop(4);
}
if (kolo == 4) {
jahoda_life.gotoAndStop(4);
}
if (kolo == 5) {
jahoda_life.gotoAndStop(3);
}
if (kolo == 6) {
jahoda_life.gotoAndStop(3);
}
if (kolo == 7) {
jahoda_life.gotoAndStop(2);
}
if (kolo == 8) {
jahoda_life.gotoAndStop(2);
}
if (kolo == 9) {
jahoda_life.gotoAndStop(1);
}
if (kolo == 10) {
jahoda_life.gotoAndStop(1);
}
jahodak.jump.zvireTyp = _root.zvireT;
jahodak.wait.zvireTyp = _root.zvireT;
jahodak.walk.zvireTyp = _root.zvireT;
malinak.jump.zvireTyp = _root.zvireT2;
malinak.wait.zvireTyp = _root.zvireT2;
malinak.walk.zvireTyp = _root.zvireT2;
jump = true;
comp = true;
malina = 0;
jahoda = 0;
stopAll = false;
scoreLostBall = 3;
scoreHit = 1;
stopStep = true;
returnToMenu = false;
if (_root.username.length > 0) {
o = new Object();
o.username = _root.username;
o.idhry = _root.idhry;
loadVariables ("hry_set.php", "", "POST");
}
Instance of Symbol 376 MovieClip "ball" in Frame 244
onClipEvent (load) {
bounds = new Object();
bounds.left = 0;
bounds.right = 600;
bounds.top = _height / 2;
bounds.bottom = 500;
speed = new Object();
speed.x = 0;
speed.y = 0;
ball = new Object();
ball.x = _x;
ball.y = _y;
ball.h = _height;
ball.w = _width;
radius = ((ball.h + ball.w) / 2) / 2;
alfa = 0;
_alpha = alfa;
mizik = "in";
reset = false;
friction = 0.99;
grav = 0.08;
poz_x = (poz_y = (old_poz_x = (old_poz_y = 0)));
pole_x = (pole_y = 0);
kontr = 1;
ccc = 0;
x_sig = 1;
y_sig = 1;
rotace = 0;
d_alfa = 0;
sit_h = 300;
max_h = 300;
hit_ground = 0;
hit_net = 0;
hit_top = 0;
hit_jahoda = 0;
hit_malina = 0;
hit_body = 0;
bod_jahoda = "";
bod_malina = "";
move = false;
zpozdeni = false;
count = 0;
pom = random(2) + 1;
_y = 500;
if (pom == 1) {
_x = 480;
} else {
_x = 120.8;
}
}
onClipEvent (enterFrame) {
if (!_root.stopAll) {
old_poz_x = _x;
old_poz_y = _y;
if (move) {
_x = (_x + speed.x);
_y = (_y + speed.y);
}
speed.x = speed.x * friction;
speed.y = speed.y * friction;
rotace = rotace * 0.99;
if ((speed.x < 0) and (speed.x > -1)) {
speed.x = -1;
}
if ((speed.x > 0) and (speed.x < 1)) {
speed.x = 1;
}
_rotation = rotace;
if (speed.y > 0) {
speed.y = speed.y * (1 + grav);
} else if (speed.y == 0) {
speed.y = 1;
} else if (speed.y < 0) {
speed.y = speed.y * (1 - grav);
}
if (((speed.y < 2) && (speed.y > -2)) && (_y < (bounds.bottom - 2))) {
speed.y = 2;
}
if ((speed.y == 2) && (_y > (bounds.bottom - 3))) {
speed.y = 0;
_y = bounds.bottom;
}
poz_x = _x;
poz_y = _y;
t_speed_x = speed.x;
t_speed_y = speed.y;
t_x = _x;
t_y = _y;
iterations = 0;
while ((t_y < 170) and (iterations < 50)) {
t_x = t_x + t_speed_x;
t_y = t_y + t_speed_y;
t_speed_x = t_speed_x * friction;
t_speed_y = t_speed_y * friction;
if (t_speed_y > 0) {
t_speed_y = t_speed_y * (1 + grav);
} else {
t_speed_y = t_speed_y * (1 - grav);
}
if (t_x < (ball.w / 2)) {
t_speed_x = t_speed_x * -1;
}
iterations++;
}
if ((mizik != "in") and (mizik != "out")) {
if ((_parent.mfield.hitTest(_x, _y, true) or _parent.jfield.hitTest(_x, _y, true)) and (kontr == 1)) {
kontr = 0;
move = true;
mic_dx = poz_x - old_poz_x;
mic_dy = poz_y - old_poz_y;
loop = 0;
while (loop < 20) {
tx = old_poz_x + ((mic_dx / 20) * loop);
ty = old_poz_y + ((mic_dy / 20) * loop);
if (_parent.mfield.hitTest(tx, ty, true)) {
poz_x = tx;
poz_y = ty;
break;
}
if (_parent.jfield.hitTest(tx, ty, true)) {
poz_x = tx;
pox_y = ty;
break;
}
loop++;
}
_x = poz_x;
_y = poz_y;
mic_dx = poz_x - old_poz_x;
mic_dy = poz_y - old_poz_y;
if (mic_dy == 0) {
mic_dy = 7;
}
mic_vel = _root.delka(mic_dx, mic_dy);
mic_alfa = _root.uhel(mic_dx, mic_dy, mic_vel);
if (_parent.mfield.hitTest(_x, _y, true)) {
hit_malina++;
hit_jahoda = 0;
dop_dx = poz_x - _parent.mfield._x;
dop_dy = poz_y - _parent.mfield._y;
dop_vel = _root.delka(dop_dx, dop_dy);
dop_alfa = _root.uhel(dop_dx, dop_dy, dop_vel);
dop_alfa_ko = _root.uhel_kor(dop_alfa + 180);
_root.changeScore(1, 2);
}
if (_parent.jfield.hitTest(_x, _y, true)) {
hit_jahoda++;
hit_malina = 0;
dop_dx = poz_x - _parent.jfield._x;
dop_dy = poz_y - _parent.jfield._y;
dop_vel = _root.delka(dop_dx, dop_dy);
dop_alfa = _root.uhel(dop_dx, dop_dy, dop_vel);
dop_alfa_ko = _root.uhel_kor(dop_alfa + 180);
_root.changeScore(2, 2);
}
if (((mic_alfa > 0) and (mic_alfa < 180)) or (dop_dy > 0)) {
hit_body = 1;
mizik = "out";
reset_x = _x;
}
d_alfa = dop_alfa_ko - mic_alfa;
n_alfa = dop_alfa + d_alfa;
if (n_alfa < 90) {
n_alfa = 90 - ((90 - n_alfa) * 0.7);
} else {
n_alfa = ((n_alfa - 90) * 0.7) + 90;
}
rotace = (d_alfa * 100) + random(90);
nx = _root.nova_x(n_alfa, dop_vel) + poz_x;
ny = _root.nova_y(n_alfa, dop_vel) + poz_y;
_x = nx;
_y = ny;
old_poz_x = poz_x;
old_poz_y = poz_y;
poz_x = _x;
poz_y = _y;
x_sig = _root.mark(nx - dop_dx);
y_sig = _root.mark(ny - dop_dy);
snx = _root.nova_x(n_alfa, 20);
sny = _root.nova_y(n_alfa, 20);
speed.x = snx * x_sig;
speed.y = sny * y_sig;
_root.plesk();
}
if (kontr == 0) {
ccc++;
if (ccc == 8) {
ccc = 0;
kontr = 1;
}
}
sit_l = (bounds.right / 2) - radius;
sit_r = (bounds.right / 2) + radius;
if (_x < (bounds.left + radius)) {
speed.x = speed.x * -1;
_x = (bounds.left + radius);
rotace = rotace * -1;
_root.plesk();
} else if (_x > (bounds.right - radius)) {
speed.x = speed.x * -1;
_x = (bounds.right - radius);
rotace = rotace * -1;
_root.plesk();
} else if (_y < ((bounds.top + radius) - 200)) {
speed.y = speed.y * -1;
_y = (bounds.top + radius);
rotace = rotace * -1;
_root.plesk();
} else if (_y > (bounds.bottom - radius)) {
speed.y = speed.y * -1;
_y = (bounds.bottom - radius);
rotace = rotace * -1;
hit_ground = 1;
mizik = "out";
reset_x = _x;
_root.plesk();
} else if (((poz_x > sit_l) and (old_poz_x <= sit_l)) and ((poz_y + (ball.h / 2)) > max_h)) {
speed.x = speed.x * -1;
_x = ((bounds.right / 2) - radius);
_root.plesk();
} else if (((poz_x < sit_r) and (old_poz_x >= sit_r)) and ((poz_y + (ball.h / 2)) > max_h)) {
speed.x = speed.x * -1;
_x = ((bounds.right / 2) + radius);
_root.plesk();
} else if (((poz_x > ((bounds.right / 2) - radius)) and (poz_x < ((bounds.right / 2) + radius))) and (poz_y > (max_h - radius))) {
speed.y = speed.y * -1;
_y = (max_h - radius);
_root.plesk();
}
if ((hit_jahoda > 3) or (hit_malina > 3)) {
_root.buch._x = _x;
_root.buch.play();
mizik = "out";
reset_x = _x;
}
}
if (mizik == "in") {
if (alfa < 100) {
alfa = alfa + 10;
_alpha = alfa;
}
if (alfa == 100) {
mizik = "nic";
}
}
if (mizik == "out") {
if (alfa > 0) {
alfa = alfa - 20;
_alpha = alfa;
}
if (alfa == 0) {
mizik = "nic";
reset = true;
}
}
if (reset) {
reset = false;
zpozdeni = true;
_root.jump = false;
speed.x = 0;
speed.y = 0;
move = false;
rotace = 0;
_rotation = rotace;
_y = 100;
_x = reset_x;
if (((hit_jahoda > 3) and (hit_ground == 0)) and (hit_net == 0)) {
_root.buch._x = _x;
_root.buch.play();
_x = 480;
_root.changeScore(1, 1);
} else if (((hit_malina > 3) and (hit_ground == 0)) and (hit_net == 0)) {
_x = 120.8;
_root.changeScore(2, 1);
} else if ((((hit_ground == 1) and (hit_jahoda > 0)) and (_x < (bounds.right / 2))) or (((hit_ground == 1) and (hit_malina > 0)) and (_x < (bounds.right / 2)))) {
_root.buch._x = _x;
_root.buch.play();
_x = 480;
_root.changeScore(1, 1);
} else if ((((hit_ground == 1) and (hit_malina > 0)) and (_x > (bounds.right / 2))) or (((hit_ground == 1) and (hit_jahoda > 0)) and (_x > (bounds.right / 2)))) {
_root.buch._x = _x;
_root.buch.play();
_x = 120.8;
_root.changeScore(2, 1);
} else if ((((hit_net == 1) and (hit_jahoda > 0)) and (_x < (bounds.right / 2))) or ((((hit_net == 1) and (hit_malina > 0)) and (hit_jahoda == 0)) and (_x < (bounds.right / 2)))) {
_x = 480;
_root.changeScore(1, 1);
} else if ((((hit_net == 1) and (hit_malina > 0)) and (_x > (bounds.right / 2))) or ((((hit_net == 1) and (hit_jahoda > 0)) and (hit_malina == 0)) and (_x > (bounds.right / 2)))) {
_x = 120.8;
_root.changeScore(2, 1);
} else if ((hit_top == 1) and (hit_jahoda > 0)) {
_x = 480;
_root.changeScore(1, 1);
} else if ((hit_top == 1) and (hit_malina > 0)) {
_x = 120.8;
_root.changeScore(2, 1);
} else if ((hit_body == 1) and (_x < (bounds.right / 2))) {
_x = 480;
_root.changeScore(1, 1);
} else if ((hit_body == 1) and (_x > (bounds.right / 2))) {
_x = 120.8;
_root.changeScore(2, 1);
} else {
trace("random...");
pom = random(2) + 1;
if (pom == 1) {
_x = 480;
} else {
_x = 120.8;
}
}
hit_ground = 0;
hit_net = 0;
hit_top = 0;
hit_jahoda = 0;
hit_malina = 0;
hit_body = 0;
}
if (zpozdeni) {
if ((!_parent.jahodak.horni) and (!_parent.malinak.horni)) {
count++;
}
if (count == 25) {
mizik = "in";
_y = 400;
count = 0;
zpozdeni = false;
_root.jump = true;
}
}
poz_x = _x;
poz_y = _y;
}
}
Instance of Symbol 387 MovieClip "jahodak" in Frame 244
onClipEvent (load) {
prava = false;
leva = false;
horni = false;
dist = 30;
posun = 6;
plocha_x = 600;
plocha_y = 600;
old_speed = -25;
wait_t = 250;
speed = old_speed;
friction = 0.98;
poc_y = 500;
waiting = false;
wait_c = 0;
if (amMalinak) {
mkRight = 39;
mkLeft = 37;
mkUp = 38;
} else {
mkRight = 68;
mkLeft = 65;
mkUp = 87;
}
}
onClipEvent (enterFrame) {
if (wait_c == wait_t) {
waiting = true;
} else {
wait_c++;
waiting = false;
}
if (horni) {
if ((walk._visible == true) or (wait._visible == true)) {
walk._visible = false;
jump._visible = true;
wait._visible = false;
}
_root.anim_fw(_target, ".jump", 25);
this._y = this._y + speed;
speed = speed * friction;
if (speed > 0) {
speed = speed * 1.3;
} else if (Math.round(speed) == 0) {
speed = 1;
} else if (speed < 0) {
speed = speed * 0.7;
}
if (_y > poc_y) {
_y = poc_y;
speed = old_speed;
horni = false;
}
if (amMalinak) {
if (prava and (_x < (plocha_x - dist))) {
_x = (_x + posun);
}
if (leva and (_x > ((plocha_x / 2) + dist))) {
_x = (_x - posun);
}
} else {
if (prava and (_x < ((plocha_x / 2) - dist))) {
_x = (_x + posun);
}
if (leva and (_x > dist)) {
_x = (_x - posun);
}
}
} else if (waiting) {
if ((walk._visible == true) or (jump._visible == true)) {
walk._visible = false;
jump._visible = false;
wait._visible = true;
}
_root.anim_fw(_target, ".wait", 9);
} else {
if ((jump._visible == true) or (wait._visible == true)) {
walk._visible = true;
jump._visible = false;
wait._visible = false;
}
if (amMalinak) {
if (prava and (_x < (plocha_x - dist))) {
_x = (_x + posun);
_root.anim_re(_target, ".walk", 12);
}
if (leva and (_x > ((plocha_x / 2) + dist))) {
_x = (_x - posun);
_root.anim_fw(_target, ".walk", 12);
}
} else {
if (prava and (_x < ((plocha_x / 2) - dist))) {
_x = (_x + posun);
_root.anim_fw(_target, ".walk", 12);
}
if (leva and (_x > dist)) {
_x = (_x - posun);
_root.anim_re(_target, ".walk", 12);
}
}
}
if (amMalinak) {
_parent.mfield._x = _x;
_parent.mfield._y = _y;
} else {
_parent.jfield._x = _x;
_parent.jfield._y = _y;
}
}
onClipEvent (keyDown) {
if (!_root.stopAll) {
if (((Key.isDown(39) and (!_root.compMalinak)) and amMalinak) or ((Key.isDown(68) and (!_root.compJahodak)) and amJahodak)) {
prava = true;
wait_c = 0;
}
if (((Key.isDown(37) and (!_root.compMalinak)) and amMalinak) or ((Key.isDown(65) and (!_root.compJahodak)) and amJahodak)) {
leva = true;
wait_c = 0;
}
if (((Key.isDown(38) and (!_root.compMalinak)) and amMalinak) or ((Key.isDown(87) and (!_root.compJahodak)) and amJahodak)) {
horni = true;
wait_c = 0;
}
}
}
onClipEvent (keyUp) {
if (!_root.stopAll) {
if (((Key.isDown(39) and (!_root.compMalinak)) and amMalinak) or ((Key.isDown(68) and (!_root.compJahodak)) and amJahodak)) {
prava = true;
} else {
prava = false;
if (_root.stopStep) {
walk.gotoAndStop(1);
}
}
if (((Key.isDown(37) and (!_root.compMalinak)) and amMalinak) or ((Key.isDown(65) and (!_root.compJahodak)) and amJahodak)) {
leva = true;
} else {
leva = false;
if (_root.stopStep) {
walk.gotoAndStop(1);
}
}
}
}
Instance of Symbol 388 MovieClip "malinak" in Frame 244
onClipEvent (load) {
prava = false;
leva = false;
horni = false;
dist = 30;
posun = 6;
plocha_x = 600;
plocha_y = 600;
old_speed = -25;
wait_t = 250;
speed = old_speed;
friction = 0.98;
poc_y = 500;
waiting = false;
wait_c = 0;
if (amMalinak) {
mkRight = 39;
mkLeft = 37;
mkUp = 38;
} else {
mkRight = 68;
mkLeft = 65;
mkUp = 87;
}
}
onClipEvent (enterFrame) {
if (wait_c == wait_t) {
waiting = true;
} else {
wait_c++;
waiting = false;
}
if (horni) {
if ((walk._visible == true) or (wait._visible == true)) {
walk._visible = false;
jump._visible = true;
wait._visible = false;
}
_root.anim_fw(_target, ".jump", 25);
this._y = this._y + speed;
speed = speed * friction;
if (speed > 0) {
speed = speed * 1.3;
} else if (Math.round(speed) == 0) {
speed = 1;
} else if (speed < 0) {
speed = speed * 0.7;
}
if (_y > poc_y) {
_y = poc_y;
speed = old_speed;
horni = false;
}
if (amMalinak) {
if (prava and (_x < (plocha_x - dist))) {
_x = (_x + posun);
}
if (leva and (_x > ((plocha_x / 2) + dist))) {
_x = (_x - posun);
}
} else {
if (prava and (_x < ((plocha_x / 2) - dist))) {
_x = (_x + posun);
}
if (leva and (_x > dist)) {
_x = (_x - posun);
}
}
} else if (waiting) {
if ((walk._visible == true) or (jump._visible == true)) {
walk._visible = false;
jump._visible = false;
wait._visible = true;
}
_root.anim_fw(_target, ".wait", 9);
} else {
if ((jump._visible == true) or (wait._visible == true)) {
walk._visible = true;
jump._visible = false;
wait._visible = false;
}
if (amMalinak) {
if (prava and (_x < (plocha_x - dist))) {
_x = (_x + posun);
_root.anim_re(_target, ".walk", 12);
}
if (leva and (_x > ((plocha_x / 2) + dist))) {
_x = (_x - posun);
_root.anim_fw(_target, ".walk", 12);
}
} else {
if (prava and (_x < ((plocha_x / 2) - dist))) {
_x = (_x + posun);
_root.anim_fw(_target, ".walk", 12);
}
if (leva and (_x > dist)) {
_x = (_x - posun);
_root.anim_re(_target, ".walk", 12);
}
}
}
if (amMalinak) {
_parent.mfield._x = _x;
_parent.mfield._y = _y;
} else {
_parent.jfield._x = _x;
_parent.jfield._y = _y;
}
}
onClipEvent (keyDown) {
if (!_root.stopAll) {
if (((Key.isDown(39) and (!_root.compMalinak)) and amMalinak) or ((Key.isDown(68) and (!_root.compJahodak)) and amJahodak)) {
prava = true;
wait_c = 0;
}
if (((Key.isDown(37) and (!_root.compMalinak)) and amMalinak) or ((Key.isDown(65) and (!_root.compJahodak)) and amJahodak)) {
leva = true;
wait_c = 0;
}
if (((Key.isDown(38) and (!_root.compMalinak)) and amMalinak) or ((Key.isDown(87) and (!_root.compJahodak)) and amJahodak)) {
horni = true;
wait_c = 0;
}
}
}
onClipEvent (keyUp) {
if (!_root.stopAll) {
if (((Key.isDown(39) and (!_root.compMalinak)) and amMalinak) or ((Key.isDown(68) and (!_root.compJahodak)) and amJahodak)) {
prava = true;
} else {
prava = false;
if (_root.stopStep) {
walk.gotoAndStop(1);
}
}
if (((Key.isDown(37) and (!_root.compMalinak)) and amMalinak) or ((Key.isDown(65) and (!_root.compJahodak)) and amJahodak)) {
leva = true;
} else {
leva = false;
if (_root.stopStep) {
walk.gotoAndStop(1);
}
}
}
}
Instance of Symbol 402 MovieClip "cml" in Frame 244
onClipEvent (load) {
podani = true;
setPlayer = 1;
}
onClipEvent (enterFrame) {
if (!_root.stopAll) {
targ_x = _parent.ball.t_x;
normalaction = true;
if (setPlayer == 1) {
player = _root.jahodak;
myfield = _parent.ball._x < 300;
myball = targ_x < 300;
odpS = 15;
} else {
player = _root.malinak;
myfield = _parent.ball._x > 300;
myball = targ_x > 300;
odpS = 25;
}
saveLeva = player.leva;
savePrava = player.prava;
if (_parent.ball.zpozdeni or (_parent.ball._alpha < 100)) {
normalaction = false;
}
if ((((_parent.ball._y > 300) and myfield) and (!_parent.ball.move)) and normalaction) {
normalaction = false;
if (!naSel) {
odpal_x = ((((Math.round(Math.random()) * 40) - odpS) + _parent.ball._x) + Math.round(Math.random() * 10)) - 5;
naSel = true;
waitcount = 0;
} else if (Math.round(odpal_x / 6) == Math.round(player._x / 6)) {
player.leva = false;
player.prava = false;
waitcount++;
if (waitcount == 10) {
naSel = false;
player.horni = true;
player.wait_c = 0;
}
} else {
player.leva = odpal_x < player._x;
player.prava = odpal_x > player._x;
player.wait_c = 0;
}
}
if (Math.abs(_parent.ball.speed.x) < 2) {
bDist = 10;
} else if (Math.abs(_parent.ball.speed.x) > 15) {
bDist = _parent.ball.speed.x;
} else {
bDist = 5;
}
if (setPlayer == 2) {
bDist = bDist * -1;
}
if (_root.handicap and (!myfield)) {
normalaction = false;
}
if (normalaction) {
if (((targ_x - bDist) < (player._x - 6)) and myball) {
player.leva = true;
player.wait_c = 0;
} else {
player.leva = false;
}
if (((targ_x - bDist) > (player._x + 6)) and myball) {
player.prava = true;
player.wait_c = 0;
} else {
player.prava = false;
}
if ((_parent.ball._y > 300) and myfield) {
player.horni = true;
player.wait_c = 0;
}
}
if (_root.stopStep) {
if ((saveLeva and (!player.leva)) or (savePrava and (!player.prava))) {
player.walk.gotoAndStop(1);
}
}
}
}
Frame 245
onEnterFrame = function () {
if (victory == true) {
gotoAndStop (250);
}
if (nextLevel == true) {
gotoAndStop (249);
}
if (nz >= 20) {
novyZivotM._x = 300 + random(220);
nz = 0;
}
if (_root.mfield.hitTest(novyZivotM)) {
novyZivotM.gotoAndPlay(21);
}
if ((((_root.buch._x > _root.malinak._x) and (_root.buch._x > 300)) and (_root.buch._currentframe > 1)) and (_root.buch._currentframe < 10)) {
if (malinak._x > 330) {
malinak._x = malinak._x - 10;
} else {
malinak._x = 330;
}
_root.divak.gotoAndStop(4);
}
if ((((_root.buch._x < _root.malinak._x) and (_root.buch._x > 300)) and (_root.buch._currentframe > 1)) and (_root.buch._currentframe < 10)) {
if (malinak._x < 570) {
malinak._x = malinak._x + 10;
} else {
malinak._x = 570;
}
_root.divak.gotoAndStop(4);
}
if ((((_root.buch._x > _root.jahodak._x) and (_root.buch._x < 300)) and (_root.buch._currentframe > 1)) and (_root.buch._currentframe < 10)) {
if (jahodak._x > 30) {
jahodak._x = jahodak._x - 10;
} else {
jahodak._x = 30;
}
_root.divak.gotoAndStop(3);
}
if ((((_root.buch._x < _root.jahodak._x) and (_root.buch._x < 300)) and (_root.buch._currentframe > 1)) and (_root.buch._currentframe < 10)) {
if (jahodak._x < 270) {
jahodak._x = jahodak._x + 10;
} else {
jahodak._x = 270;
}
_root.divak.gotoAndStop(3);
}
if (konec2 == true) {
gotoAndStop (248);
}
if (malina_life._currentframe == 6) {
_root.stopAll = true;
stmivacka.play();
}
if ((jahoda_life._currentframe == 6) and (kolo < 10)) {
dalsikolo = true;
stmivacka.play();
}
if ((ball._x < 300) and (_root.divak._currentframe < 3)) {
divak.gotoAndStop(2);
}
if ((ball._x > 300) and (_root.divak._currentframe < 3)) {
divak.gotoAndStop(1);
}
if (returnToMenu) {
gotoAndPlay (242);
returnToMenu = false;
}
if (clearGoTo) {
gotoAndPlay (244);
_root.stopAll = false;
gameover.gotoAndStop(1);
malina_life.gotoAndStop(1);
clearGoTo = false;
}
stinM._x = malinak._x;
stinJ._x = jahodak._x;
stinG._x = ball._x;
stinG._alpha = ball._alpha - (ball._y / 5);
stinG._xscale = (500 - ball._y) / 2;
};
stop();
Frame 246
function plesk() {
_root.pleskClip.gotoAndPlay(2);
}
function anim_re(hlavni, podmov, pocet) {
hlavni = hlavni.substr(1);
podmov = podmov.substr(1);
if (_root[hlavni][podmov]._currentframe == 1) {
_root[hlavni][podmov].gotoAndStop(pocet);
} else {
_root[hlavni][podmov].prevFrame();
}
}
function anim_fw(hlavni, podmov, pocet) {
hlavni = hlavni.substr(1);
podmov = podmov.substr(1);
if (this[hlavni][podmov]._currentframe == pocet) {
this[hlavni][podmov].gotoAndStop(1);
} else {
this[hlavni][podmov].nextFrame();
}
}
function toRad(cislo) {
nuhel = (Math.PI * cislo) / 180;
return(nuhel);
}
function toDeg(cislo) {
nuhel = (180 * cislo) / Math.PI;
return(nuhel);
}
function delka(dx, dy) {
vel = Math.sqrt((dx * dx) + (dy * dy));
return(vel);
}
function uhel(dx, dy, delka) {
uhel_rad = Math.acos(dx / delka);
uhel_pom = _root.toDeg(uhel_rad);
if (dy <= 0) {
uhel_rig = uhel_pom;
} else {
uhel_rig = 360 - uhel_pom;
}
return(uhel_rig);
}
function uhel_kor(uhel) {
if (uhel > 360) {
uhel = uhel - 360;
}
if (uhel < 0) {
uhel = uhel + 360;
}
return(uhel);
}
function nova_x(uhel, delka) {
uhel_pom = _root.toRad(uhel) * -1;
n = delka * Math.cos(uhel_pom);
return(n);
}
function nova_y(uhel, delka) {
uhel_pom = _root.toRad(uhel) * -1;
n = delka * Math.sin(uhel_pom);
return(n);
}
function mark(cis) {
if (cis < 0) {
ma = -1;
} else {
ma = 1;
}
return(ma);
}
function ulozeni_skore() {
if (_root.username.length > 0) {
o = new Object();
o.username = _root.username;
o.idhry = _root.idhry;
o.score = malina;
score = malina;
o.umisteni = "";
loadVariables ("hry_nacti.php", "", "POST");
gameover.umisteni = umisteni;
loadVariables ("hry_uloz.php", "", "POST");
} else {
o = new Object();
o.umisteni = "";
}
}
function changeScore(player, typ) {
if (typ == 1) {
points = scoreLostBall;
if (player == 2) {
malina_life.nextFrame();
}
if (player == 1) {
jahoda_life.nextFrame();
}
} else {
points = scoreHit;
}
if (player == 1) {
malina = malina + points;
nz = nz + points;
}
if (player == 2) {
jahoda = jahoda + points;
nzj = nzj + points;
}
}
compJahodak = false;
compMalinak = false;
handicap = false;
zivot = 5;
zivotJ = 5;
vitez = false;
kdoVitez = 0;
menicko = false;
konechry = false;
hlasitost = 100;
konec2 = false;
compB = 0;
nz = 0;
nzj = 0;
jahodak.jump.zvireTyp = _root.zvireT;
jahodak.wait.zvireTyp = _root.zvireT;
jahodak.walk.zvireTyp = _root.zvireT;
malinak.jump.zvireTyp = _root.zvireT2;
malinak.wait.zvireTyp = _root.zvireT2;
malinak.walk.zvireTyp = _root.zvireT2;
jump = true;
comp = true;
malina = 0;
jahoda = 0;
stopAll = false;
scoreLostBall = 3;
scoreHit = 1;
stopStep = true;
returnToMenu = false;
if (zvukje == false) {
hlas.gotoAndStop(2);
}
if (_root.username.length > 0) {
o = new Object();
o.username = _root.username;
o.idhry = _root.idhry;
loadVariables ("hry_set.php", "", "POST");
}
Instance of Symbol 376 MovieClip "ball" in Frame 246
onClipEvent (load) {
bounds = new Object();
bounds.left = 0;
bounds.right = 600;
bounds.top = _height / 2;
bounds.bottom = 500;
speed = new Object();
speed.x = 0;
speed.y = 0;
ball = new Object();
ball.x = _x;
ball.y = _y;
ball.h = _height;
ball.w = _width;
radius = ((ball.h + ball.w) / 2) / 2;
alfa = 0;
_alpha = alfa;
mizik = "in";
reset = false;
friction = 0.99;
grav = 0.08;
poz_x = (poz_y = (old_poz_x = (old_poz_y = 0)));
pole_x = (pole_y = 0);
kontr = 1;
ccc = 0;
x_sig = 1;
y_sig = 1;
rotace = 0;
d_alfa = 0;
sit_h = 300;
max_h = 300;
hit_ground = 0;
hit_net = 0;
hit_top = 0;
hit_jahoda = 0;
hit_malina = 0;
hit_body = 0;
bod_jahoda = "";
bod_malina = "";
move = false;
zpozdeni = false;
count = 0;
pom = random(2) + 1;
_y = 500;
if (pom == 1) {
_x = 480;
} else {
_x = 120.8;
}
}
onClipEvent (enterFrame) {
if (!_root.stopAll) {
old_poz_x = _x;
old_poz_y = _y;
if (move) {
_x = (_x + speed.x);
_y = (_y + speed.y);
}
speed.x = speed.x * friction;
speed.y = speed.y * friction;
rotace = rotace * 0.99;
if ((speed.x < 0) and (speed.x > -1)) {
speed.x = -1;
}
if ((speed.x > 0) and (speed.x < 1)) {
speed.x = 1;
}
_rotation = rotace;
if (speed.y > 0) {
speed.y = speed.y * (1 + grav);
} else if (speed.y == 0) {
speed.y = 1;
} else if (speed.y < 0) {
speed.y = speed.y * (1 - grav);
}
if (((speed.y < 2) && (speed.y > -2)) && (_y < (bounds.bottom - 2))) {
speed.y = 2;
}
if ((speed.y == 2) && (_y > (bounds.bottom - 3))) {
speed.y = 0;
_y = bounds.bottom;
}
poz_x = _x;
poz_y = _y;
t_speed_x = speed.x;
t_speed_y = speed.y;
t_x = _x;
t_y = _y;
iterations = 0;
while ((t_y < 170) and (iterations < 50)) {
t_x = t_x + t_speed_x;
t_y = t_y + t_speed_y;
t_speed_x = t_speed_x * friction;
t_speed_y = t_speed_y * friction;
if (t_speed_y > 0) {
t_speed_y = t_speed_y * (1 + grav);
} else {
t_speed_y = t_speed_y * (1 - grav);
}
if (t_x < (ball.w / 2)) {
t_speed_x = t_speed_x * -1;
}
iterations++;
}
if ((mizik != "in") and (mizik != "out")) {
if ((_parent.mfield.hitTest(_x, _y, true) or _parent.jfield.hitTest(_x, _y, true)) and (kontr == 1)) {
kontr = 0;
move = true;
mic_dx = poz_x - old_poz_x;
mic_dy = poz_y - old_poz_y;
loop = 0;
while (loop < 20) {
tx = old_poz_x + ((mic_dx / 20) * loop);
ty = old_poz_y + ((mic_dy / 20) * loop);
if (_parent.mfield.hitTest(tx, ty, true)) {
poz_x = tx;
poz_y = ty;
break;
}
if (_parent.jfield.hitTest(tx, ty, true)) {
poz_x = tx;
pox_y = ty;
break;
}
loop++;
}
_x = poz_x;
_y = poz_y;
mic_dx = poz_x - old_poz_x;
mic_dy = poz_y - old_poz_y;
if (mic_dy == 0) {
mic_dy = 7;
}
mic_vel = _root.delka(mic_dx, mic_dy);
mic_alfa = _root.uhel(mic_dx, mic_dy, mic_vel);
if (_parent.mfield.hitTest(_x, _y, true)) {
hit_malina++;
hit_jahoda = 0;
dop_dx = poz_x - _parent.mfield._x;
dop_dy = poz_y - _parent.mfield._y;
dop_vel = _root.delka(dop_dx, dop_dy);
dop_alfa = _root.uhel(dop_dx, dop_dy, dop_vel);
dop_alfa_ko = _root.uhel_kor(dop_alfa + 180);
_root.changeScore(1, 2);
}
if (_parent.jfield.hitTest(_x, _y, true)) {
hit_jahoda++;
hit_malina = 0;
dop_dx = poz_x - _parent.jfield._x;
dop_dy = poz_y - _parent.jfield._y;
dop_vel = _root.delka(dop_dx, dop_dy);
dop_alfa = _root.uhel(dop_dx, dop_dy, dop_vel);
dop_alfa_ko = _root.uhel_kor(dop_alfa + 180);
_root.changeScore(2, 2);
}
if (((mic_alfa > 0) and (mic_alfa < 180)) or (dop_dy > 0)) {
hit_body = 1;
mizik = "out";
reset_x = _x;
}
d_alfa = dop_alfa_ko - mic_alfa;
n_alfa = dop_alfa + d_alfa;
if (n_alfa < 90) {
n_alfa = 90 - ((90 - n_alfa) * 0.7);
} else {
n_alfa = ((n_alfa - 90) * 0.7) + 90;
}
rotace = (d_alfa * 100) + random(90);
nx = _root.nova_x(n_alfa, dop_vel) + poz_x;
ny = _root.nova_y(n_alfa, dop_vel) + poz_y;
_x = nx;
_y = ny;
old_poz_x = poz_x;
old_poz_y = poz_y;
poz_x = _x;
poz_y = _y;
x_sig = _root.mark(nx - dop_dx);
y_sig = _root.mark(ny - dop_dy);
snx = _root.nova_x(n_alfa, 20);
sny = _root.nova_y(n_alfa, 20);
speed.x = snx * x_sig;
speed.y = sny * y_sig;
_root.plesk();
}
if (kontr == 0) {
ccc++;
if (ccc == 8) {
ccc = 0;
kontr = 1;
}
}
sit_l = (bounds.right / 2) - radius;
sit_r = (bounds.right / 2) + radius;
if (_x < (bounds.left + radius)) {
speed.x = speed.x * -1;
_x = (bounds.left + radius);
rotace = rotace * -1;
_root.plesk();
} else if (_x > (bounds.right - radius)) {
speed.x = speed.x * -1;
_x = (bounds.right - radius);
rotace = rotace * -1;
_root.plesk();
} else if (_y < ((bounds.top + radius) - 200)) {
speed.y = speed.y * -1;
_y = (bounds.top + radius);
rotace = rotace * -1;
_root.plesk();
} else if (_y > (bounds.bottom - radius)) {
speed.y = speed.y * -1;
_y = (bounds.bottom - radius);
rotace = rotace * -1;
hit_ground = 1;
mizik = "out";
reset_x = _x;
_root.plesk();
} else if (((poz_x > sit_l) and (old_poz_x <= sit_l)) and ((poz_y + (ball.h / 2)) > max_h)) {
speed.x = speed.x * -1;
_x = ((bounds.right / 2) - radius);
_root.plesk();
} else if (((poz_x < sit_r) and (old_poz_x >= sit_r)) and ((poz_y + (ball.h / 2)) > max_h)) {
speed.x = speed.x * -1;
_x = ((bounds.right / 2) + radius);
_root.plesk();
} else if (((poz_x > ((bounds.right / 2) - radius)) and (poz_x < ((bounds.right / 2) + radius))) and (poz_y > (max_h - radius))) {
speed.y = speed.y * -1;
_y = (max_h - radius);
_root.plesk();
}
if ((hit_jahoda > 3) or (hit_malina > 3)) {
_root.buch._x = _x;
_root.buch.play();
mizik = "out";
reset_x = _x;
}
}
if (mizik == "in") {
if (alfa < 100) {
alfa = alfa + 10;
_alpha = alfa;
}
if (alfa == 100) {
mizik = "nic";
}
}
if (mizik == "out") {
if (alfa > 0) {
alfa = alfa - 20;
_alpha = alfa;
}
if (alfa == 0) {
mizik = "nic";
reset = true;
}
}
if (reset) {
reset = false;
zpozdeni = true;
_root.jump = false;
speed.x = 0;
speed.y = 0;
move = false;
rotace = 0;
_rotation = rotace;
_y = 100;
_x = reset_x;
if (((hit_jahoda > 3) and (hit_ground == 0)) and (hit_net == 0)) {
_root.buch._x = _x;
_root.buch.play();
_x = 480;
_root.changeScore(1, 1);
} else if (((hit_malina > 3) and (hit_ground == 0)) and (hit_net == 0)) {
_x = 120.8;
_root.changeScore(2, 1);
} else if ((((hit_ground == 1) and (hit_jahoda > 0)) and (_x < (bounds.right / 2))) or (((hit_ground == 1) and (hit_malina > 0)) and (_x < (bounds.right / 2)))) {
_root.buch._x = _x;
_root.buch.play();
_x = 480;
_root.changeScore(1, 1);
} else if ((((hit_ground == 1) and (hit_malina > 0)) and (_x > (bounds.right / 2))) or (((hit_ground == 1) and (hit_jahoda > 0)) and (_x > (bounds.right / 2)))) {
_root.buch._x = _x;
_root.buch.play();
_x = 120.8;
_root.changeScore(2, 1);
} else if ((((hit_net == 1) and (hit_jahoda > 0)) and (_x < (bounds.right / 2))) or ((((hit_net == 1) and (hit_malina > 0)) and (hit_jahoda == 0)) and (_x < (bounds.right / 2)))) {
_x = 480;
_root.changeScore(1, 1);
} else if ((((hit_net == 1) and (hit_malina > 0)) and (_x > (bounds.right / 2))) or ((((hit_net == 1) and (hit_jahoda > 0)) and (hit_malina == 0)) and (_x > (bounds.right / 2)))) {
_x = 120.8;
_root.changeScore(2, 1);
} else if ((hit_top == 1) and (hit_jahoda > 0)) {
_x = 480;
_root.changeScore(1, 1);
} else if ((hit_top == 1) and (hit_malina > 0)) {
_x = 120.8;
_root.changeScore(2, 1);
} else if ((hit_body == 1) and (_x < (bounds.right / 2))) {
_x = 480;
_root.changeScore(1, 1);
} else if ((hit_body == 1) and (_x > (bounds.right / 2))) {
_x = 120.8;
_root.changeScore(2, 1);
} else {
trace("random...");
pom = random(2) + 1;
if (pom == 1) {
_x = 480;
} else {
_x = 120.8;
}
}
hit_ground = 0;
hit_net = 0;
hit_top = 0;
hit_jahoda = 0;
hit_malina = 0;
hit_body = 0;
}
if (zpozdeni) {
if ((!_parent.jahodak.horni) and (!_parent.malinak.horni)) {
count++;
}
if (count == 25) {
mizik = "in";
_y = 400;
count = 0;
zpozdeni = false;
_root.jump = true;
}
}
poz_x = _x;
poz_y = _y;
}
}
Instance of Symbol 387 MovieClip "jahodak" in Frame 246
onClipEvent (load) {
prava = false;
leva = false;
horni = false;
dist = 30;
posun = 6;
plocha_x = 600;
plocha_y = 600;
old_speed = -25;
wait_t = 250;
speed = old_speed;
friction = 0.98;
poc_y = 500;
waiting = false;
wait_c = 0;
if (amMalinak) {
mkRight = 39;
mkLeft = 37;
mkUp = 38;
} else {
mkRight = 68;
mkLeft = 65;
mkUp = 87;
}
}
onClipEvent (enterFrame) {
if (wait_c == wait_t) {
waiting = true;
} else {
wait_c++;
waiting = false;
}
if (horni) {
if ((walk._visible == true) or (wait._visible == true)) {
walk._visible = false;
jump._visible = true;
wait._visible = false;
}
_root.anim_fw(_target, ".jump", 25);
this._y = this._y + speed;
speed = speed * friction;
if (speed > 0) {
speed = speed * 1.3;
} else if (Math.round(speed) == 0) {
speed = 1;
} else if (speed < 0) {
speed = speed * 0.7;
}
if (_y > poc_y) {
_y = poc_y;
speed = old_speed;
horni = false;
}
if (amMalinak) {
if (prava and (_x < (plocha_x - dist))) {
_x = (_x + posun);
}
if (leva and (_x > ((plocha_x / 2) + dist))) {
_x = (_x - posun);
}
} else {
if (prava and (_x < ((plocha_x / 2) - dist))) {
_x = (_x + posun);
}
if (leva and (_x > dist)) {
_x = (_x - posun);
}
}
} else if (waiting) {
if ((walk._visible == true) or (jump._visible == true)) {
walk._visible = false;
jump._visible = false;
wait._visible = true;
}
_root.anim_fw(_target, ".wait", 9);
} else {
if ((jump._visible == true) or (wait._visible == true)) {
walk._visible = true;
jump._visible = false;
wait._visible = false;
}
if (amMalinak) {
if (prava and (_x < (plocha_x - dist))) {
_x = (_x + posun);
_root.anim_re(_target, ".walk", 12);
}
if (leva and (_x > ((plocha_x / 2) + dist))) {
_x = (_x - posun);
_root.anim_fw(_target, ".walk", 12);
}
} else {
if (prava and (_x < ((plocha_x / 2) - dist))) {
_x = (_x + posun);
_root.anim_fw(_target, ".walk", 12);
}
if (leva and (_x > dist)) {
_x = (_x - posun);
_root.anim_re(_target, ".walk", 12);
}
}
}
if (amMalinak) {
_parent.mfield._x = _x;
_parent.mfield._y = _y;
} else {
_parent.jfield._x = _x;
_parent.jfield._y = _y;
}
}
onClipEvent (keyDown) {
if (!_root.stopAll) {
if (((Key.isDown(39) and (!_root.compMalinak)) and amMalinak) or ((Key.isDown(68) and (!_root.compJahodak)) and amJahodak)) {
prava = true;
wait_c = 0;
}
if (((Key.isDown(37) and (!_root.compMalinak)) and amMalinak) or ((Key.isDown(65) and (!_root.compJahodak)) and amJahodak)) {
leva = true;
wait_c = 0;
}
if (((Key.isDown(38) and (!_root.compMalinak)) and amMalinak) or ((Key.isDown(87) and (!_root.compJahodak)) and amJahodak)) {
horni = true;
wait_c = 0;
}
}
}
onClipEvent (keyUp) {
if (!_root.stopAll) {
if (((Key.isDown(39) and (!_root.compMalinak)) and amMalinak) or ((Key.isDown(68) and (!_root.compJahodak)) and amJahodak)) {
prava = true;
} else {
prava = false;
if (_root.stopStep) {
walk.gotoAndStop(1);
}
}
if (((Key.isDown(37) and (!_root.compMalinak)) and amMalinak) or ((Key.isDown(65) and (!_root.compJahodak)) and amJahodak)) {
leva = true;
} else {
leva = false;
if (_root.stopStep) {
walk.gotoAndStop(1);
}
}
}
}
Instance of Symbol 388 MovieClip "malinak" in Frame 246
onClipEvent (load) {
prava = false;
leva = false;
horni = false;
dist = 30;
posun = 6;
plocha_x = 600;
plocha_y = 600;
old_speed = -25;
wait_t = 250;
speed = old_speed;
friction = 0.98;
poc_y = 500;
waiting = false;
wait_c = 0;
if (amMalinak) {
mkRight = 39;
mkLeft = 37;
mkUp = 38;
} else {
mkRight = 68;
mkLeft = 65;
mkUp = 87;
}
}
onClipEvent (enterFrame) {
if (wait_c == wait_t) {
waiting = true;
} else {
wait_c++;
waiting = false;
}
if (horni) {
if ((walk._visible == true) or (wait._visible == true)) {
walk._visible = false;
jump._visible = true;
wait._visible = false;
}
_root.anim_fw(_target, ".jump", 25);
this._y = this._y + speed;
speed = speed * friction;
if (speed > 0) {
speed = speed * 1.3;
} else if (Math.round(speed) == 0) {
speed = 1;
} else if (speed < 0) {
speed = speed * 0.7;
}
if (_y > poc_y) {
_y = poc_y;
speed = old_speed;
horni = false;
}
if (amMalinak) {
if (prava and (_x < (plocha_x - dist))) {
_x = (_x + posun);
}
if (leva and (_x > ((plocha_x / 2) + dist))) {
_x = (_x - posun);
}
} else {
if (prava and (_x < ((plocha_x / 2) - dist))) {
_x = (_x + posun);
}
if (leva and (_x > dist)) {
_x = (_x - posun);
}
}
} else if (waiting) {
if ((walk._visible == true) or (jump._visible == true)) {
walk._visible = false;
jump._visible = false;
wait._visible = true;
}
_root.anim_fw(_target, ".wait", 9);
} else {
if ((jump._visible == true) or (wait._visible == true)) {
walk._visible = true;
jump._visible = false;
wait._visible = false;
}
if (amMalinak) {
if (prava and (_x < (plocha_x - dist))) {
_x = (_x + posun);
_root.anim_re(_target, ".walk", 12);
}
if (leva and (_x > ((plocha_x / 2) + dist))) {
_x = (_x - posun);
_root.anim_fw(_target, ".walk", 12);
}
} else {
if (prava and (_x < ((plocha_x / 2) - dist))) {
_x = (_x + posun);
_root.anim_fw(_target, ".walk", 12);
}
if (leva and (_x > dist)) {
_x = (_x - posun);
_root.anim_re(_target, ".walk", 12);
}
}
}
if (amMalinak) {
_parent.mfield._x = _x;
_parent.mfield._y = _y;
} else {
_parent.jfield._x = _x;
_parent.jfield._y = _y;
}
}
onClipEvent (keyDown) {
if (!_root.stopAll) {
if (((Key.isDown(39) and (!_root.compMalinak)) and amMalinak) or ((Key.isDown(68) and (!_root.compJahodak)) and amJahodak)) {
prava = true;
wait_c = 0;
}
if (((Key.isDown(37) and (!_root.compMalinak)) and amMalinak) or ((Key.isDown(65) and (!_root.compJahodak)) and amJahodak)) {
leva = true;
wait_c = 0;
}
if (((Key.isDown(38) and (!_root.compMalinak)) and amMalinak) or ((Key.isDown(87) and (!_root.compJahodak)) and amJahodak)) {
horni = true;
wait_c = 0;
}
}
}
onClipEvent (keyUp) {
if (!_root.stopAll) {
if (((Key.isDown(39) and (!_root.compMalinak)) and amMalinak) or ((Key.isDown(68) and (!_root.compJahodak)) and amJahodak)) {
prava = true;
} else {
prava = false;
if (_root.stopStep) {
walk.gotoAndStop(1);
}
}
if (((Key.isDown(37) and (!_root.compMalinak)) and amMalinak) or ((Key.isDown(65) and (!_root.compJahodak)) and amJahodak)) {
leva = true;
} else {
leva = false;
if (_root.stopStep) {
walk.gotoAndStop(1);
}
}
}
}
Frame 247
onEnterFrame = function () {
if (malina_life._currentframe == 6) {
KdoVitez = 1;
stmivacka.play();
}
if (jahoda_life._currentframe == 6) {
KdoVitez = 2;
stmivacka.play();
}
if (vitez) {
gotoAndStop (251);
vitez = false;
}
if (nz >= 20) {
novyZivotM._x = 300 + random(220);
nz = 0;
}
if (_root.mfield.hitTest(novyZivotM)) {
novyZivotM.gotoAndPlay(21);
}
if (nzj >= 20) {
novyZivotJ._x = 20 + random(220);
nzj = 0;
}
if (_root.mfield.hitTest(novyZivotM) and (novyZivotM._x > 300)) {
novyZivotM.gotoAndPlay(21);
}
if (_root.jfield.hitTest(novyZivotJ) and (novyZivotJ._x < 300)) {
novyZivotJ.gotoAndPlay(21);
}
if ((((_root.buch._x > _root.malinak._x) and (_root.buch._x > 300)) and (_root.buch._currentframe > 1)) and (_root.buch._currentframe < 10)) {
if (malinak._x > 330) {
malinak._x = malinak._x - 10;
} else {
malinak._x = 330;
}
_root.divak.gotoAndStop(4);
}
if ((((_root.buch._x < _root.malinak._x) and (_root.buch._x > 300)) and (_root.buch._currentframe > 1)) and (_root.buch._currentframe < 10)) {
if (malinak._x < 570) {
malinak._x = malinak._x + 10;
} else {
malinak._x = 570;
}
_root.divak.gotoAndStop(4);
}
if ((((_root.buch._x > _root.jahodak._x) and (_root.buch._x < 300)) and (_root.buch._currentframe > 1)) and (_root.buch._currentframe < 10)) {
if (jahodak._x > 30) {
jahodak._x = jahodak._x - 10;
} else {
jahodak._x = 30;
}
_root.divak.gotoAndStop(3);
}
if ((((_root.buch._x < _root.jahodak._x) and (_root.buch._x < 300)) and (_root.buch._currentframe > 1)) and (_root.buch._currentframe < 10)) {
if (jahodak._x < 270) {
jahodak._x = jahodak._x + 10;
} else {
jahodak._x = 270;
}
_root.divak.gotoAndStop(3);
}
if ((ball._x < 300) and (_root.divak._currentframe < 3)) {
divak.gotoAndStop(2);
}
if ((ball._x > 300) and (_root.divak._currentframe < 3)) {
divak.gotoAndStop(1);
}
if (returnToMenu) {
gotoAndPlay (242);
returnToMenu = false;
}
if (clearGoTo) {
gotoAndPlay (246);
_root.stopAll = false;
gameover.gotoAndStop(1);
malina_life.gotoAndStop(1);
clearGoTo = false;
}
stinM._x = malinak._x;
stinJ._x = jahodak._x;
stinG._x = ball._x;
stinG._alpha = ball._alpha - (ball._y / 5);
stinG._xscale = (500 - ball._y) / 2;
};
stop();
Frame 248
konec2 = false;
cisloLevelu = 1;
zvire.zvireTyp = _root.zvireT2;
_root.totalScore = _root.totalScore + _root.malina;
_root.ng._alpha = 50;
_root.ss._alpha = 50;
_root.mg._alpha = 50;
if (zvukje == false) {
hlas.gotoAndStop(2);
}
stop();
Frame 249
nextLevel = false;
dalsikolo = false;
victory = false;
bonus = kolo * 50;
lifeBonus = zivotM * 20;
if (zvukje == false) {
hlas.gotoAndStop(2);
}
_root.totalScore = _root.totalScore + (_root.malina + (bonus + lifeBonus));
cisloL = "ROUND " + _root.cisloLevelu;
_root.kolo++;
_root.cisloLevelu++;
_root.zvireT++;
zvire.zvireTyp = _root.zvireT;
_root.ng._alpha = 50;
_root.ss._alpha = 50;
_root.mg._alpha = 50;
if (_root.allow == true) {
adBox.loadMovie("http://server.cpmstar.com/adviewas2.swf?contentspotid=" + CPMStarContentSpotID);
}
stop();
Frame 250
konec2 = false;
nextLevel = false;
dalsikolo = false;
victory = false;
zvire.zvireTyp = _root.zvireT2;
bonus = kolo * 50;
lifeBonus = zivotM * 20;
if (zvukje == false) {
hlas.gotoAndStop(2);
}
_root.totalScore = _root.totalScore + (_root.malina + (bonus + lifeBonus));
_root.ng._alpha = 50;
_root.ss._alpha = 50;
_root.mg._alpha = 50;
_root.kolo = 0;
_root.cisloLevelu = 0;
stop();
Frame 251
if (KdoVitez == 2) {
zvire.zvireTyp = _root.zvireT2;
} else {
zvire.zvireTyp = _root.zvireT;
}
_root.ng._alpha = 50;
_root.ss._alpha = 50;
_root.mg._alpha = 50;
if (zvukje == false) {
hlas.gotoAndStop(2);
}
stop();
Symbol 27 Button
on (release) {
_root.play();
}
on (rollOver) {
menickoR.gotoAndStop(2);
}
on (rollOut) {
menickoR.gotoAndStop(1);
}
Symbol 30 MovieClip Frame 10
stop();
Symbol 31 MovieClip Frame 1
stop();
Symbol 32 MovieClip Frame 1
stop();
Symbol 73 Button
on (release) {
getURL (" http://www.kongregate.com/?gamereferral=madpet-volleybomb", "_blank");
}
Symbol 83 Button
on (release) {
getURL (" http://www.kongregate.com/?gamereferral=madpet-volleybomb", "_blank");
}
Symbol 492 MovieClip [__Packages.mochi.as2.MochiSync] Frame 0
class mochi.as2.MochiSync
{
var _syncContainer;
function MochiSync () {
_syncContainer = {};
}
function getProp(name) {
return(_syncContainer[name]);
}
function setProp(name, value) {
if (_syncContainer[name] == value) {
return(undefined);
}
_syncContainer[name] = value;
mochi.as2.MochiServices.send("sync_propUpdate", {name:name, value:value});
}
function triggerEvent(eventType, args) {
switch (eventType) {
case SYNC_REQUEST :
mochi.as2.MochiServices.send("sync_syncronize", _syncContainer);
break;
case SYNC_PROPERTY :
_syncContainer[args.name] = args.value;
}
}
static var SYNC_REQUEST = "SyncRequest";
static var SYNC_PROPERTY = "UpdateProperty";
}
Symbol 493 MovieClip [__Packages.mochi.as2.MochiServices] Frame 0
class mochi.as2.MochiServices
{
static var _id, _container, _clip, _sendChannelName, __get__comChannelName, onError, _listenChannel, _sendChannel;
function MochiServices () {
}
static function get id() {
return(_id);
}
static function get clip() {
return(_container);
}
static function get childClip() {
return(_clip);
}
static function getVersion() {
return("3.8 as2");
}
static function allowDomains(server) {
var _local1 = server.split("/")[2].split(":")[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain("*");
System.security.allowDomain(_local1);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain("*");
System.security.allowInsecureDomain(_local1);
}
}
return(_local1);
}
static function get isNetworkAvailable() {
if (System.security) {
var _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}
static function set comChannelName(val) {
if (val != undefined) {
if (val.length > 3) {
_sendChannelName = val + "_fromgame";
initComChannels();
}
}
//return(__get__comChannelName());
}
static function get connected() {
return(_connected);
}
static function connect(id, clip, onError) {
warnID(id, false);
if ((!_connected) && (_clip == undefined)) {
trace("MochiServices Connecting...");
_connecting = true;
init(id, clip);
}
if (onError != undefined) {
mochi.as2.MochiServices.onError = onError;
} else if (mochi.as2.MochiServices.onError == undefined) {
mochi.as2.MochiServices.onError = function (errorCode) {
trace(errorCode);
};
}
}
static function disconnect() {
if (_connected || (_connecting)) {
_connecting = (_connected = false);
flush(true);
if (_clip != undefined) {
_clip.removeMovieClip();
delete _clip;
}
_listenChannel.close();
}
}
static function init(id, clip) {
_id = id;
if (clip != undefined) {
_container = clip;
} else {
_container = _root;
}
loadCommunicator(id, _container);
}
static function loadCommunicator(id, clip) {
var _local6 = "_mochiservices_com_" + id;
var _local5 = new MovieClipLoader();
var _local3 = {};
if (_clip != null) {
return(_clip);
}
if (!isNetworkAvailable) {
return(null);
}
if (urlOptions().servURL) {
_servURL = urlOptions().servURL;
}
var _local4 = _servURL + _services;
if (urlOptions().servicesURL) {
_local4 = urlOptions().servicesURL;
}
allowDomains(_local4);
_clip = clip.createEmptyMovieClip(_local6, 10336, false);
_listenChannelName = _listenChannelName + ((Math.floor(new Date().getTime()) + "_") + Math.floor(Math.random() * 99999));
listen();
if (_local3.waitInterval != null) {
clearInterval(_local3.waitInterval);
}
_local3.onLoadError = loadError;
_local3.onLoadStart = function (target_mc) {
this.isLoading = true;
};
_local3.onLoadComplete = function (target_mc) {
target_mc.MochiServices = mochi.as2.MochiServices;
};
_local3.startTime = getTimer();
_local3.wait = function () {
if ((getTimer() - this.startTime) > 10000) {
if (!this.isLoading) {
mochi.as2.MochiServices.disconnect();
mochi.as2.MochiServices.onError.apply(null, ["IOError"]);
}
clearInterval(this.waitInterval);
}
};
_local3.waitInterval = setInterval(_local3, "wait", 1000);
_local5.addListener(_local3);
_local5.loadClip((((((_local4 + "?listenLC=") + _listenChannelName) + "&mochiad_options=") + escape(_root.mochiad_options)) + "&api_version=") + getVersion(), _clip);
_sendChannel = new LocalConnection();
_sendChannel._queue = [];
return(_clip);
}
static function loadError(target_mc, errorCode, httpStatus) {
trace("MochiServices could not load.");
disconnect();
onError.apply(null, [errorCode]);
}
static function onStatus(infoObject) {
if (!(infoObject.level === "error")) {
} else {
_connected = false;
_listenChannel.connect(_listenChannelName);
}
}
static function listen() {
_listenChannel = new LocalConnection();
_listenChannel.handshake = function (args) {
mochi.as2.MochiServices.__set__comChannelName(args.newChannel);
};
_listenChannel.allowDomain = function (d) {
return(true);
};
_listenChannel.allowInsecureDomain = _listenChannel.allowDomain;
_listenChannel._nextcallbackID = 0;
_listenChannel._callbacks = {};
_listenChannel.connect(_listenChannelName);
trace("Waiting for MochiAds services to connect...");
}
static function initComChannels() {
if (!_connected) {
_sendChannel.onStatus = function (infoObject) {
mochi.as2.MochiServices.onStatus(infoObject);
};
_sendChannel.send(_sendChannelName, "onReceive", {methodName:"handshakeDone"});
_sendChannel.send(_sendChannelName, "onReceive", {methodName:"registerGame", id:_id, version:getVersion()});
_listenChannel.onStatus = function (infoObject) {
mochi.as2.MochiServices.onStatus(infoObject);
};
_listenChannel.onReceive = function (pkg) {
var _local5 = pkg.callbackID;
var _local4 = this._callbacks[_local5];
if (!_local4) {
return(undefined);
}
var _local2 = _local4.callbackMethod;
var _local3 = _local4.callbackObject;
if (_local3 && (typeof(_local2) == "string")) {
_local2 = _local3[_local2];
}
if (_local2 != undefined) {
_local2.apply(_local3, pkg.args);
}
delete this._callbacks[_local5];
};
_listenChannel.onEvent = function (pkg) {
switch (pkg.target) {
case "events" :
mochi.as2.MochiEvents.triggerEvent(pkg.event, pkg.args);
break;
case "coins" :
mochi.as2.MochiSocial.triggerEvent(pkg.event, pkg.args);
break;
case "sync" :
mochi.as2.MochiServices.servicesSync.triggerEvent(pkg.event, pkg.args);
}
};
_listenChannel.onError = function () {
mochi.as2.MochiServices.onError.apply(null, ["IOError"]);
};
trace("[SERVICES_API] connected!");
_connecting = false;
_connected = true;
while (_sendChannel._queue.length > 0) {
_sendChannel.send(_sendChannelName, "onReceive", _sendChannel._queue.shift());
}
}
}
static function updateCopy(args) {
send("coins_updateCopy", args, null, null);
}
static function flush(error) {
var _local1;
var _local2;
while (_sendChannel._queue.length > 0) {
_local1 = _sendChannel._queue.shift();
if (_local1.callbackID != null) {
_local2 = _listenChannel._callbacks[_local1.callbackID];
}
delete _listenChannel._callbacks[_local1.callbackID];
if (error) {
handleError(_local1.args, _local2.callbackObject, _local2.callbackMethod);
}
}
}
static function handleError(args, callbackObject, callbackMethod) {
if (args != null) {
if (args.onError != null) {
args.onError.apply(null, ["NotConnected"]);
}
if ((args.options != null) && (args.options.onError != null)) {
args.options.onError.apply(null, ["NotConnected"]);
}
}
if (callbackMethod != null) {
args = {};
args.error = true;
args.errorCode = "NotConnected";
if ((callbackObject != null) && (typeof(callbackMethod) == "string")) {
callbackObject[callbackMethod](args);
} else if (callbackMethod != null) {
callbackMethod.apply(args);
}
}
}
static function send(methodName, args, callbackObject, callbackMethod) {
if (_connected) {
_sendChannel.send(_sendChannelName, "onReceive", {methodName:methodName, args:args, callbackID:_listenChannel._nextcallbackID});
} else {
if ((_clip == undefined) || (!_connecting)) {
trace("Error: MochiServices not connected. Please call MochiServices.connect(). Function: " + methodName);
handleError(args, callbackObject, callbackMethod);
flush(true);
return(undefined);
}
_sendChannel._queue.push({methodName:methodName, args:args, callbackID:_listenChannel._nextcallbackID});
}
_listenChannel._callbacks[_listenChannel._nextcallbackID] = {callbackObject:callbackObject, callbackMethod:callbackMethod};
_listenChannel._nextcallbackID++;
}
static function urlOptions() {
var _local5 = {};
var _local6;
if (_root._url.indexOf("mochiad_options") != -1) {
var _local2 = (_root._url.indexOf("mochiad_options") + "mochiad_options".length) + 1;
_local6 = _root._url.substr(_local2, _root._url.length);
} else if (_root.mochiad_options) {
_local6 = _root.mochiad_options;
}
if (_local6) {
var _local4 = _root.mochiad_options.split("&");
var _local2 = 0;
while (_local2 < _local4.length) {
var _local3 = _local4[_local2].split("=");
_local5[unescape(_local3[0])] = unescape(_local3[1]);
_local2++;
}
}
return(_local5);
}
static function warnID(bid, leaderboard) {
bid = bid.toLowerCase();
if (bid.length != 16) {
trace(("WARNING: " + (leaderboard ? "board" : "game")) + " ID is not the appropriate length");
return(undefined);
}
if (bid == "1e113c7239048b3f") {
if (leaderboard) {
trace("WARNING: Using testing board ID");
} else {
trace("WARNING: Using testing board ID as game ID");
}
return(undefined);
}
if (bid == "84993a1de4031cd8") {
if (leaderboard) {
trace("WARNING: Using testing game ID as board ID");
} else {
trace("WARNING: Using testing game ID");
}
return(undefined);
}
var _local1 = 0;
while (_local1 < bid.length) {
switch (bid.charAt(_local1)) {
case "0" :
case "1" :
case "2" :
case "3" :
case "4" :
case "5" :
case "6" :
case "7" :
case "8" :
case "9" :
case "a" :
case "b" :
case "c" :
case "d" :
case "e" :
case "f" :
break;
default :
trace("WARNING: Board ID contains illegal characters: " + bid);
return(undefined);
}
_local1++;
}
}
static function addLinkEvent(url, burl, btn, onClick) {
var timeout = 1500;
var t0 = getTimer();
var _local2 = new Object();
_local2.mav = getVersion();
_local2.swfv = btn.getSWFVersion() || 6;
_local2.swfurl = btn._url;
_local2.fv = System.capabilities.version;
_local2.os = System.capabilities.os;
_local2.lang = System.capabilities.language;
_local2.scres = (System.capabilities.screenResolutionX + "x") + System.capabilities.screenResolutionY;
var s = "?";
var _local3 = 0;
for (var _local6 in _local2) {
if (_local3 != 0) {
s = s + "&";
}
_local3++;
s = ((s + _local6) + "=") + escape(_local2[_local6]);
}
if (!(netupAttempted || (_connected))) {
var ping = btn.createEmptyMovieClip("ping", 777);
var _local7 = btn.createEmptyMovieClip("nettest", 778);
netupAttempted = true;
ping.loadMovie("http://x.mochiads.com/linkping.swf?t=" + getTimer());
_local7.onEnterFrame = function () {
if ((ping._totalframes > 0) && (ping._totalframes == ping._framesloaded)) {
delete this.onEnterFrame;
} else if ((getTimer() - t0) > timeout) {
delete this.onEnterFrame;
mochi.as2.MochiServices.netup = false;
}
};
}
var _local4 = btn.createEmptyMovieClip("clk", 1001);
_local4._alpha = 0;
_local4.beginFill(1044735);
_local4.moveTo(0, 0);
_local4.lineTo(0, btn._height);
_local4.lineTo(btn._width, btn._height);
_local4.lineTo(btn._width, 0);
_local4.lineTo(0, 0);
_local4.endFill();
_local4.onRelease = function () {
if (mochi.as2.MochiServices.netup) {
getURL (url + s, "_blank");
} else {
getURL (burl, "_blank");
}
if (onClick != undefined) {
onClick();
}
};
}
static function setContainer(clip) {
}
static function stayOnTop(clip) {
}
static var _servURL = "http://www.mochiads.com/static/lib/services/";
static var _services = "services.swf";
static var _mochiLC = "MochiLC.swf";
static var _listenChannelName = "__ms_";
static var _connecting = false;
static var _connected = false;
static var netup = true;
static var netupAttempted = false;
static var servicesSync = new mochi.as2.MochiSync();
}
Symbol 494 MovieClip [__Packages.mochi.as2.MochiEventDispatcher] Frame 0
class mochi.as2.MochiEventDispatcher
{
var eventTable;
function MochiEventDispatcher () {
eventTable = {};
}
function buildDelegate(thisObject, thatObject) {
var _local2 = {thisObject:thisObject, thatObject:thatObject};
if (thatObject != undefined) {
var funct = ((typeof(thatObject) == "string") ? (thisObject[thatObject]) : (thatObject));
_local2.delegate = function (args) {
funct.call(thisObject, args);
};
} else {
_local2.delegate = thisObject;
}
return(_local2);
}
function compareDelegate(d_A, d_B) {
if ((d_A.thisObject != d_B.thisObject) || (d_A.thatObject != d_B.thatObject)) {
return(false);
}
return(true);
}
function addEventListener(event, thisObject, thatObject) {
removeEventListener(event, thisObject, thatObject);
eventTable[event].push(buildDelegate(thisObject, thatObject));
}
function removeEventListener(event, thisObject, thatObject) {
var _local3 = buildDelegate(thisObject, thatObject);
if (eventTable[event] == undefined) {
eventTable[event] = [];
return(undefined);
}
for (var _local4 in eventTable[event]) {
if (!compareDelegate(eventTable[event][_local4], _local3)) {
continue;
}
eventTable[event].splice(Number(_local4), 1);
}
}
function triggerEvent(event, args) {
if (eventTable[event] == undefined) {
return(undefined);
}
for (var _local4 in eventTable[event]) {
eventTable[event][_local4].delegate(args);
}
}
}
Symbol 495 MovieClip [__Packages.mochi.as2.MochiEvents] Frame 0
class mochi.as2.MochiEvents
{
function MochiEvents () {
}
static function getVersion() {
return(mochi.as2.MochiServices.getVersion());
}
static function startSession(achievementID) {
mochi.as2.MochiServices.send("events_beginSession", {achievementID:achievementID}, null, null);
}
static function setNotifications(clip, style) {
var _local2 = {};
for (var _local3 in style) {
_local2[_local3] = style[_local3];
}
_local2.clip = clip;
mochi.as2.MochiServices.send("events_setNotifications", _local2, null, null);
}
static function addEventListener(eventType, thisObject, thatObject) {
_dispatcher.addEventListener(eventType, thisObject, thatObject);
}
static function triggerEvent(eventType, args) {
_dispatcher.triggerEvent(eventType, args);
}
static function removeEventListener(eventType, thisObject, thatObject) {
_dispatcher.removeEventListener(eventType, thisObject, thatObject);
}
static function startPlay(tag) {
if (tag == undefined) {
tag = "gameplay";
}
mochi.as2.MochiServices.send("events_setRoundID", {tag:String(tag)}, null, null);
}
static function endPlay() {
mochi.as2.MochiServices.send("events_clearRoundID", null, null, null);
}
static function trackEvent(tag, value) {
mochi.as2.MochiServices.send("events_trackEvent", {tag:tag, value:value}, null, null);
}
static var ACHIEVEMENT_RECEIVED = "AchievementReceived";
static var ALIGN_TOP_LEFT = "ALIGN_TL";
static var ALIGN_TOP = "ALIGN_T";
static var ALIGN_TOP_RIGHT = "ALIGN_TR";
static var ALIGN_LEFT = "ALIGN_L";
static var ALIGN_CENTER = "ALIGN_C";
static var ALIGN_RIGHT = "ALIGN_R";
static var ALIGN_BOTTOM_LEFT = "ALIGN_BL";
static var ALIGN_BOTTOM = "ALIGN_B";
static var ALIGN_BOTTOM_RIGHT = "ALIGN_BR";
static var FORMAT_SHORT = "ShortForm";
static var FORMAT_LONG = "LongForm";
static var _dispatcher = new mochi.as2.MochiEventDispatcher();
}
Symbol 496 MovieClip [__Packages.mochi.as2.MochiSocial] Frame 0
class mochi.as2.MochiSocial
{
function MochiSocial () {
}
static function getVersion() {
return(mochi.as2.MochiServices.getVersion());
}
static function showLoginWidget(options) {
mochi.as2.MochiServices.setContainer();
mochi.as2.MochiServices.stayOnTop();
mochi.as2.MochiServices.send("coins_showLoginWidget", {options:options});
}
static function hideLoginWidget() {
mochi.as2.MochiServices.send("coins_hideLoginWidget");
}
static function requestLogin() {
mochi.as2.MochiServices.send("coins_requestLogin");
}
static function getUserInfo() {
mochi.as2.MochiServices.send("coins_getUserInfo");
}
static function saveUserProperties(properties) {
mochi.as2.MochiServices.send("coins_saveUserProperties", properties);
}
static function addEventListener(eventType, delegate) {
_dispatcher.addEventListener(eventType, delegate);
}
static function triggerEvent(eventType, args) {
_dispatcher.triggerEvent(eventType, args);
}
static function removeEventListener(eventType, delegate) {
_dispatcher.removeEventListener(eventType, delegate);
}
static var LOGGED_IN = "LoggedIn";
static var LOGGED_OUT = "LoggedOut";
static var LOGIN_SHOW = "LoginShow";
static var LOGIN_HIDE = "LoginHide";
static var LOGIN_SHOWN = "LoginShown";
static var PROFILE_SHOW = "ProfileShow";
static var PROFILE_HIDE = "ProfileHide";
static var PROPERTIES_SAVED = "PropertySaved";
static var WIDGET_LOADED = "WidgetLoaded";
static var USER_INFO = "UserInfo";
static var ERROR = "Error";
static var IO_ERROR = "IOError";
static var NO_USER = "NoUser";
static var PROPERTIES_SIZE = "PropertiesSize";
static var _dispatcher = new mochi.as2.MochiEventDispatcher();
}
Symbol 497 MovieClip [__Packages.mochi.as2.MochiScores] Frame 0
class mochi.as2.MochiScores
{
static var boardID, onClose, onError;
function MochiScores () {
}
static function setBoardID(boardID) {
mochi.as2.MochiServices.warnID(boardID, true);
mochi.as2.MochiScores.boardID = boardID;
mochi.as2.MochiServices.send("scores_setBoardID", {boardID:boardID});
}
static function showLeaderboard(options) {
options.clip = mochi.as2.MochiServices.clip;
if ((options.clip != mochi.as2.MochiServices.__get__clip()) || (mochi.as2.MochiServices.__get__childClip()._target == undefined)) {
mochi.as2.MochiServices.disconnect();
trace("WARNING! This application is attempting to connect to MochiServices inside a showLeaderboard call!");
trace("make sure MochiServices.connect is called as early in the application runtime as possible.");
mochi.as2.MochiServices.connect(mochi.as2.MochiServices.__get__id(), options.clip);
}
delete options.clip;
if (options.name != null) {
if (typeof(options.name) == "object") {
if (options.name.text != undefined) {
options.name = options.name.text;
}
}
}
if (options.score != null) {
if (options.score instanceof TextField) {
if (options.score.text != undefined) {
options.score = options.score.text;
}
} else if (options.score instanceof mochi.as2.MochiDigits) {
options.score = options.score.value;
}
var _local1 = Number(options.score);
if (isNaN(_local1)) {
trace(("ERROR: Submitted score '" + options.score) + "' will be rejected, score is 'Not a Number'");
} else if ((_local1 == Number.NEGATIVE_INFINITY) || (_local1 == Number.POSITIVE_INFINITY)) {
trace(("ERROR: Submitted score '" + options.score) + "' will be rejected, score is an infinite");
} else {
if (Math.floor(_local1) != _local1) {
trace(("WARNING: Submitted score '" + options.score) + "' will be truncated");
}
options.score = _local1;
}
}
if (options.onDisplay != null) {
options.onDisplay();
} else {
mochi.as2.MochiServices.__get__clip().stop();
}
if (options.onClose != null) {
onClose = options.onClose;
} else {
onClose = function () {
};
}
if (options.onError != null) {
onError = options.onError;
} else {
onError = onClose;
}
if (options.boardID == null) {
if (boardID != null) {
options.boardID = boardID;
}
}
mochi.as2.MochiServices.warnID(options.boardID, true);
trace("[MochiScores] NOTE: Security Sandbox Violation errors below are normal");
mochi.as2.MochiServices.send("scores_showLeaderboard", {options:options}, null, doClose);
}
static function closeLeaderboard() {
mochi.as2.MochiServices.send("scores_closeLeaderboard");
}
static function getPlayerInfo(callbackObj, callbackMethod) {
mochi.as2.MochiServices.send("scores_getPlayerInfo", null, callbackObj, callbackMethod);
}
static function submit(score, name, callbackObj, callbackMethod) {
score = Number(score);
if (isNaN(score)) {
trace(("ERROR: Submitted score '" + String(score)) + "' will be rejected, score is 'Not a Number'");
} else if ((score == Number.NEGATIVE_INFINITY) || (score == Number.POSITIVE_INFINITY)) {
trace(("ERROR: Submitted score '" + String(score)) + "' will be rejected, score is an infinite");
} else {
if (Math.floor(score) != score) {
trace(("WARNING: Submitted score '" + String(score)) + "' will be truncated");
}
score = Number(score);
}
mochi.as2.MochiServices.send("scores_submit", {score:score, name:name}, callbackObj, callbackMethod);
}
static function requestList(callbackObj, callbackMethod) {
mochi.as2.MochiServices.send("scores_requestList", null, callbackObj, callbackMethod);
}
static function scoresArrayToObjects(scores) {
var _local5 = {};
var _local1;
var _local4;
var _local2;
var _local6;
for (var _local8 in scores) {
if (typeof(scores[_local8]) == "object") {
if ((scores[_local8].cols != null) && (scores[_local8].rows != null)) {
_local5[_local8] = [];
_local2 = scores[_local8];
_local4 = 0;
while (_local4 < _local2.rows.length) {
_local6 = {};
_local1 = 0;
while (_local1 < _local2.cols.length) {
_local6[_local2.cols[_local1]] = _local2.rows[_local4][_local1];
_local1++;
}
_local5[_local8].push(_local6);
_local4++;
}
} else {
_local5[_local8] = {};
for (var _local7 in scores[_local8]) {
_local5[_local8][_local7] = scores[_local8][_local7];
}
}
} else {
_local5[_local8] = scores[_local8];
}
}
return(_local5);
}
static function doClose(args) {
if (args.error == true) {
if (args.errorCode == undefined) {
args.errorCode = "IOError";
}
onError.apply(null, [args.errorCode]);
} else {
onClose.apply();
}
}
}
Symbol 498 MovieClip [__Packages.mochi.as2.MochiDigits] Frame 0
class mochi.as2.MochiDigits
{
var Encoder, Fragment, Sibling;
function MochiDigits (digit, index) {
Encoder = 0;
setValue(digit, index);
}
function get value() {
return(Number(toString()));
}
function set value(v) {
setValue(v);
//return(value);
}
function addValue(v) {
value = value + v;
}
function setValue(digit, index) {
var _local3 = digit.toString();
if ((index == undefined) || (isNaN(index))) {
index = 0;
}
Fragment = _local3.charCodeAt(index++) ^ Encoder;
if (index < _local3.length) {
Sibling = new mochi.as2.MochiDigits(digit, index);
} else {
Sibling = null;
}
reencode();
}
function reencode() {
var _local2 = int(2147483647 * Math.random());
Fragment = Fragment ^ (_local2 ^ Encoder);
Encoder = _local2;
}
function toString() {
var _local2 = String.fromCharCode(Fragment ^ Encoder);
return(((Sibling != null) ? (_local2.concat(Sibling.toString())) : (_local2)));
}
}
Symbol 87 Button
on (release) {
getURL ("http://kongregate.com/", "_blank");
}
Symbol 97 Button
on (release) {
_root.stmivackahra.play();
}
on (rollOver) {
_root.menickoR.gotoAndStop(2);
}
on (rollOut) {
_root.menickoR.gotoAndStop(1);
}
Symbol 98 Button
on (release) {
_root.instrukce.play();
}
on (rollOver) {
_root.menickoR.gotoAndStop(3);
}
on (rollOut) {
_root.menickoR.gotoAndStop(1);
}
Symbol 99 Button
on (rollOver) {
_root.menickoR.gotoAndStop(4);
}
on (rollOut) {
_root.menickoR.gotoAndStop(1);
}
on (release) {
getURL (" http://www.kongregate.com/?gamereferral=madpet-volleybomb", "_blank");
}
Symbol 100 Button
on (release) {
_root.credits.play();
}
on (rollOver) {
_root.menickoR.gotoAndStop(5);
}
on (rollOut) {
_root.menickoR.gotoAndStop(1);
}
Symbol 101 Button
on (release) {
nextFrame();
}
on (rollOver) {
_root.menickoR.gotoAndStop(6);
}
on (rollOut) {
_root.menickoR.gotoAndStop(1);
}
Symbol 104 Button
on (release) {
_root.zvire.zvireTyp = 0;
_root.zvireT = 0;
_root.zvire.play();
prevFrame();
}
on (rollOver) {
_root.menickoR.gotoAndStop(6);
}
on (rollOut) {
_root.menickoR.gotoAndStop(1);
}
Symbol 106 MovieClip Frame 1
_root.dAction = 2;
_root.cisloH1 = "comp";
_root.cisloH2 = "player";
stop();
Symbol 106 MovieClip Frame 2
_root.dAction = 1;
_root.cisloH1 = "player1";
_root.cisloH2 = "player2";
stop();
Symbol 116 Button
on (press) {
if (zvire.zvireTyp > 0) {
zvire.zvireTyp--;
_root.zvireT--;
zvire.play();
} else {
zvire.zvireTyp = 9;
_root.zvireT = 9;
zvire.play();
}
}
Symbol 117 Button
on (press) {
if (zvire.zvireTyp < 9) {
zvire.zvireTyp++;
_root.zvireT++;
zvire.play();
} else {
zvire.zvireTyp = 0;
_root.zvireT = 0;
zvire.play();
}
}
Symbol 157 MovieClip Frame 1
var typy = ["prase", "zajic", "pes", "liska", "zaba", "krtek", "kocka", "mys", "jezek", "veverka"];
var castiTela = ["uchoP", "uchoL", "telo", "ocas", "pusa", "nosT", "nosB", "kuze"];
var i = 0;
while (i < castiTela.length) {
this[castiTela[i]].onEnterFrame = function () {
this.gotoAndStop(this._parent.typy[zvireTyp]);
};
i++;
}
stop();
Symbol 158 MovieClip Frame 1
var typy = ["prase", "zajic", "pes", "liska", "zaba", "krtek", "kocka", "mys", "jezek", "veverka"];
var castiTela = ["uchoP", "uchoL", "telo", "ocas", "pusa", "nosT", "nosB", "kuze"];
var i = 0;
while (i < castiTela.length) {
this[castiTela[i]].onEnterFrame = function () {
this.gotoAndStop(this._parent.typy[zvireTyp]);
};
i++;
}
stop();
Symbol 159 Button
on (press) {
if (zvire2.zvireTyp > 0) {
zvire2.zvireTyp--;
_root.zvireT2--;
zvire2.play();
} else {
zvire2.zvireTyp = 9;
_root.zvireT2 = 9;
zvire2.play();
}
}
Symbol 160 Button
on (press) {
if (zvire2.zvireTyp < 9) {
zvire2.zvireTyp++;
_root.zvireT2++;
zvire2.play();
} else {
zvire2.zvireTyp = 0;
_root.zvireT2 = 0;
zvire2.play();
}
}
Symbol 181 Button
on (release) {
play();
}
Symbol 182 MovieClip Frame 1
stop();
Symbol 182 MovieClip Frame 30
stop();
Symbol 185 MovieClip Frame 1
var typy = ["prase", "zajic", "pes", "liska", "zaba", "krtek", "kocka", "mys", "jezek", "veverka"];
var castiTela = ["uchoP", "uchoL", "telo", "ocas", "pusa", "nosT", "nosB", "kuze"];
var i = 0;
while (i < castiTela.length) {
this[castiTela[i]].onEnterFrame = function () {
this.gotoAndStop(this._parent.typy[zvireTyp]);
};
i++;
}
Symbol 186 Button
on (release) {
_root.credits.gotoAndStop(1);
}
Symbol 211 MovieClip Frame 1
stop();
Symbol 211 MovieClip Frame 2
zvire.zvireTyp = 0;
Symbol 211 MovieClip Frame 134
zvire.zvireTyp++;
gotoAndPlay (20);
Symbol 216 Button
on (release) {
_root.hlas.gotoAndStop(2);
}
Symbol 218 Button
on (release) {
_root.hlas.gotoAndPlay(1);
}
Symbol 219 MovieClip Frame 1
var s = new Sound();
s.setVolume(_root.hlasitost);
_root.zvukje = true;
stop();
Instance of Symbol 215 MovieClip in Symbol 219 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndPlay(5);
}
Instance of Symbol 215 MovieClip in Symbol 219 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndPlay(10);
}
Symbol 219 MovieClip Frame 2
var s = new Sound();
s.setVolume(0);
_root.zvukje = false;
stop();
Symbol 225 MovieClip Frame 51
stop();
Symbol 225 MovieClip Frame 102
_parent.clearGoTo = true;
Symbol 227 MovieClip Frame 1
stop();
Symbol 227 MovieClip Frame 30
_root.doAction = _root.dAction;
Symbol 238 MovieClip Frame 1
if (_root.noc == 1) {
gotoAndStop (2);
} else {
stop();
}
Symbol 283 MovieClip Frame 25
stop();
Symbol 284 MovieClip Frame 25
stop();
Symbol 288 MovieClip Frame 1
stop();
Symbol 288 MovieClip Frame 2
gotoAndStop (1);
Symbol 288 MovieClip Frame 3
gotoAndStop (1);
Symbol 288 MovieClip Frame 4
gotoAndStop (1);
Symbol 341 MovieClip Frame 1
smich.gotoAndStop(random(4) + 2);
Symbol 341 MovieClip Frame 73
_parent.gotoAndStop(1);
Symbol 374 MovieClip Frame 1
smich.gotoAndStop(random(4) + 2);
Symbol 374 MovieClip Frame 65
_parent.gotoAndStop(2);
Symbol 375 MovieClip Frame 1
pes.play();
_root.smich.gotoAndStop(1);
stop();
Symbol 375 MovieClip Frame 2
pes2.play();
_root.smich.gotoAndStop(1);
stop();
Symbol 378 MovieClip Frame 1
gotoAndStop (9);
Symbol 378 MovieClip Frame 9
stop();
Symbol 380 MovieClip Frame 1
var typy = ["prase", "zajic", "pes", "liska", "zaba", "krtek", "kocka", "mys", "jezek", "veverka"];
var castiTela = ["uchoP", "uchoL", "telo", "ocas", "pusa", "nosT", "nosB", "kuze"];
var i = 0;
while (i < castiTela.length) {
this[castiTela[i]].onEnterFrame = function () {
this.gotoAndStop(this._parent.typy[zvireTyp]);
};
i++;
}
Symbol 385 MovieClip Frame 1
var typy = ["prase", "zajic", "pes", "liska", "zaba", "krtek", "kocka", "mys", "jezek", "veverka"];
var castiTela = ["uchoP", "uchoL", "telo", "ocas", "pusa", "nosT", "nosB", "kuze"];
var i = 0;
while (i < castiTela.length) {
this[castiTela[i]].onEnterFrame = function () {
this.gotoAndStop(this._parent.typy[zvireTyp]);
};
i++;
}
Symbol 386 MovieClip Frame 1
var typy = ["prase", "zajic", "pes", "liska", "zaba", "krtek", "kocka", "mys", "jezek", "veverka"];
var castiTela = ["uchoP", "uchoL", "telo", "ocas", "pusa", "nosT", "nosB", "kuze"];
var i = 0;
while (i < castiTela.length) {
this[castiTela[i]].onEnterFrame = function () {
this.gotoAndStop(this._parent.typy[zvireTyp]);
};
i++;
}
Symbol 387 MovieClip Frame 1
amJahodak = true;
Instance of Symbol 380 MovieClip "walk" in Symbol 387 MovieClip Frame 1
onClipEvent (load) {
_visible = true;
gotoAndStop (1);
}
Instance of Symbol 385 MovieClip "jump" in Symbol 387 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
gotoAndStop (1);
}
Instance of Symbol 386 MovieClip "wait" in Symbol 387 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
gotoAndStop (1);
}
Symbol 388 MovieClip Frame 1
amMalinak = true;
Instance of Symbol 380 MovieClip "walk" in Symbol 388 MovieClip Frame 1
onClipEvent (load) {
_visible = true;
gotoAndStop (1);
}
Instance of Symbol 385 MovieClip "jump" in Symbol 388 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
gotoAndStop (1);
}
Instance of Symbol 386 MovieClip "wait" in Symbol 388 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
gotoAndStop (1);
}
Symbol 394 MovieClip Frame 1
stop();
Symbol 394 MovieClip Frame 2
if (_root.buch._x > 300) {
_root.malina_life.srdce.play();
} else {
_root.jahoda_life.srdce.play();
}
Symbol 394 MovieClip Frame 67
_root.smich.gotoAndStop(1);
Symbol 414 MovieClip Frame 21
stop();
Symbol 415 MovieClip Frame 1
_root.zivotM = 5;
stop();
Symbol 415 MovieClip Frame 2
_root.zivotM = 4;
Symbol 415 MovieClip Frame 3
_root.zivotM = 3;
Symbol 415 MovieClip Frame 4
_root.zivotM = 2;
Symbol 415 MovieClip Frame 5
_root.zivotM = 1;
Symbol 415 MovieClip Frame 6
_root.zivotM = 0;
_root.konechry = true;
Symbol 419 MovieClip Frame 20
gotoAndPlay (1);
Symbol 419 MovieClip Frame 66
_root.malina_life.prevFrame();
_root.novyZivotM._x = 700;
Symbol 420 MovieClip Frame 1
stop();
Symbol 420 MovieClip Frame 2
_root.zivotJ = 4;
Symbol 420 MovieClip Frame 3
_root.zivotJ = 3;
Symbol 420 MovieClip Frame 4
_root.zivotJ = 2;
Symbol 420 MovieClip Frame 5
_root.zivotJ = 1;
Symbol 420 MovieClip Frame 6
_root.vitez = 2;
_root.zivotJ = 0;
if (_root.kolo == 10) {
_root.victory2 = true;
_root.stmivacka.play();
} else {
_root.dalsikolo = true;
_root.stmivacka.play();
}
Symbol 432 Button
on (release) {
_root.odstmivacka.play();
}
Symbol 441 MovieClip Frame 1
stop();
Symbol 441 MovieClip Frame 30
_root.returnToMenu = true;
Symbol 442 MovieClip Frame 1
stop();
Symbol 442 MovieClip Frame 2
stop();
Symbol 443 Button
on (release) {
_root.stmivacka.play();
menicko = true;
}
Symbol 448 MovieClip Frame 1
stop();
Symbol 448 MovieClip Frame 30
if (_root.victory2 == true) {
_root.victory = true;
}
if (_root.konechry == true) {
_root.konec2 = true;
}
if (_root.dalsikolo == true) {
_root.nextLevel = true;
}
if (_root.menicko == true) {
_root.returnToMenu = true;
}
if (_root.KdoVitez == 1) {
_root.vitez = true;
}
if (_root.KdoVitez == 2) {
_root.vitez = true;
}
Symbol 455 MovieClip Frame 1
stop();
Symbol 455 MovieClip Frame 2
_root.zivotJ = 4;
Symbol 455 MovieClip Frame 3
_root.zivotJ = 3;
Symbol 455 MovieClip Frame 4
_root.zivotJ = 2;
Symbol 455 MovieClip Frame 5
_root.zivotJ = 1;
Symbol 455 MovieClip Frame 6
_root.zivotJ = 0;
Symbol 456 MovieClip Frame 1
stop();
Symbol 456 MovieClip Frame 2
_root.zivotJ = 4;
Symbol 456 MovieClip Frame 3
_root.zivotJ = 3;
Symbol 456 MovieClip Frame 4
_root.zivotJ = 2;
Symbol 456 MovieClip Frame 5
_root.zivotJ = 1;
Symbol 456 MovieClip Frame 6
_root.zivotJ = 0;
Symbol 457 MovieClip Frame 20
gotoAndPlay (1);
Symbol 457 MovieClip Frame 66
_root.jahoda_life.prevFrame();
_root.novyZivotJ._x = -100;
Symbol 459 Button
on (release) {
_root.odstmivacka.play();
}
on (rollOver) {
_root.ng._alpha = 100;
}
on (rollOut) {
_root.ng._alpha = 50;
}
Symbol 460 Button
on (rollOver) {
_root.ss._alpha = 100;
}
on (rollOut) {
_root.ss._alpha = 50;
}
on (release) {
trace("totalScore" + totalScore);
var o = {n:[5, 1, 10, 14, 11, 9, 10, 7, 1, 10, 2, 1, 5, 8, 5, 13], f:function (i, s) {
if (s.length == 16) {
return(s);
}
return(this.f(i + 1, s + this.n[i].toString(16)));
}};
var boardID = o.f(0, "");
mochi.as2.MochiScores.showLeaderboard({boardID:"58614efa9c7fec12", score:totalScore});
}
Symbol 465 Button
on (rollOver) {
_root.mg._alpha = 100;
}
on (rollOut) {
_root.mg._alpha = 50;
}
on (release) {
getURL (" http://www.kongregate.com/?gamereferral=madpet-volleybomb", "_blank");
}
Symbol 470 MovieClip Frame 51
stop();
Symbol 470 MovieClip Frame 102
_root.kolo = 1;
_root.zvireT = 0;
_root.totalScore = 0;
_parent.clearGoTo = true;
Symbol 486 Button
on (rollOver) {
_root.ss._alpha = 100;
}
on (rollOut) {
_root.ss._alpha = 50;
}
on (release) {
var o = {n:[5, 8, 6, 1, 4, 14, 15, 10, 9, 12, 7, 15, 14, 12, 1, 2], f:function (i, s) {
if (s.length == 16) {
return(s);
}
return(this.f(i + 1, s + this.n[i].toString(16)));
}};
var boardID = o.f(0, "ba00d2515db85453");
mochi.as2.MochiScores.showLeaderboard({boardID:boardID, score:totalScore});
}