Frame 1
System.security.allowDomain("*");
fscommand ("allowscale", "false");
fscommand ("showmenu", "false");
_quality = "LOW";
var MochiAd = {getVersion:function () {
return("2.1");
}, showPreGameAd:function (options) {
var _local1 = this;
var DEFAULTS = {clip:_root, ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:16747008, background:16777161, outline:13994812, ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}};
options = MochiAd._parseOptions(options, DEFAULTS);
var clip = options.clip;
var ad_msec = 11000;
var ad_timeout = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!MochiAd.load(options)) {
options.ad_finished();
} else {
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var wh = MochiAd._getRes(options);
var _local3 = wh[0];
var h = wh[1];
mc._x = _local3 * 0.5;
mc._y = h * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk._x = _local3 * -0.5;
chk._y = h * -0.5;
var bar = chk.createEmptyMovieClip("_mochiad_bar", 4);
bar._x = 10;
bar._y = h - 20;
var bar_color = options.color;
delete options.color;
var bar_background = options.background;
delete options.background;
var bar_outline = options.outline;
delete options.outline;
var backing = bar.createEmptyMovieClip("_outline", 1);
backing.beginFill(bar_background);
backing.moveTo(0, 0);
backing.lineTo(_local3 - 20, 0);
backing.lineTo(_local3 - 20, 10);
backing.lineTo(0, 10);
backing.lineTo(0, 0);
backing.endFill();
var _local2 = bar.createEmptyMovieClip("_inside", 2);
_local2.beginFill(bar_color);
_local2.moveTo(0, 0);
_local2.lineTo(_local3 - 20, 0);
_local2.lineTo(_local3 - 20, 10);
_local2.lineTo(0, 10);
_local2.lineTo(0, 0);
_local2.endFill();
_local2._xscale = 0;
var outline = bar.createEmptyMovieClip("_outline", 3);
outline.lineStyle(0, bar_outline, 100);
outline.moveTo(0, 0);
outline.lineTo(_local3 - 20, 0);
outline.lineTo(_local3 - 20, 10);
outline.lineTo(0, 10);
outline.lineTo(0, 0);
chk.ad_msec = ad_msec;
chk.ad_timeout = ad_timeout;
chk.started = getTimer();
chk.showing = false;
chk.last_pcnt = 0;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local1 = this;
var _local2 = 100 * (1 - ((getTimer() - _local1.fadeout_start) / _local1.fadeout_time));
if (_local2 > 0) {
_local1._parent._alpha = _local2;
} else {
var _local3 = _local1._parent._parent;
MochiAd.unload(_local3);
delete _local1.onEnterFrame;
}
};
mc.lc.adLoaded = function (width, height) {
};
mc.lc.adjustProgress = function (msec) {
var _local1 = this.mc._mochiad_wait;
_local1.server_control = true;
_local1.started = getTimer();
_local1.ad_msec = msec;
};
chk.onEnterFrame = function () {
var _local1 = this;
var _clip = _local1._parent._parent;
var ad_clip = _local1._parent._mochiad_ctr;
var elapsed = (getTimer() - _local1.started);
var _local3 = false;
var clip_total = _clip.getBytesTotal();
var clip_loaded = _clip.getBytesLoaded();
var clip_pcnt = ((100 * clip_loaded) / clip_total);
var ad_pcnt = ((100 * elapsed) / chk.ad_msec);
var _inside = _local1._mochiad_bar._inside;
var _local2 = Math.min(100, Math.min(clip_pcnt || 0, ad_pcnt));
_local2 = Math.max(_local1.last_pcnt, _local2);
_local1.last_pcnt = _local2;
_inside._xscale = _local2;
if (!chk.showing) {
var total = ad_clip.getBytesTotal();
if ((total > 0) || (typeof(total) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (elapsed > chk.ad_timeout) {
_local3 = true;
}
}
if (elapsed > chk.ad_msec) {
_local3 = true;
}
if (((clip_total > 0) && (clip_loaded >= clip_total)) && (_local3)) {
if (_local1.server_control) {
delete _local1.onEnterFrame;
} else {
_local1.fadeout_start = getTimer();
_local1.onEnterFrame = chk.fadeFunction;
}
}
};
}
}, showInterLevelAd:function (options) {
var _local1 = this;
var DEFAULTS = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showTimedAd", ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}};
options = MochiAd._parseOptions(options, DEFAULTS);
var clip = options.clip;
var ad_msec = 11000;
var ad_timeout = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!MochiAd.load(options)) {
options.ad_finished();
} else {
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var wh = MochiAd._getRes(options);
var w = wh[0];
var h = wh[1];
mc._x = w * 0.5;
mc._y = h * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_msec = ad_msec;
chk.ad_timeout = ad_timeout;
chk.started = getTimer();
chk.showing = false;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local1 = this;
var _local2 = 100 * (1 - ((getTimer() - _local1.fadeout_start) / _local1.fadeout_time));
if (_local2 > 0) {
_local1._parent._alpha = _local2;
} else {
var _local3 = _local1._parent._parent;
MochiAd.unload(_local3);
delete _local1.onEnterFrame;
}
};
mc.lc.adLoaded = function (width, height) {
};
mc.lc.adjustProgress = function (msec) {
var _local1 = this.mc._mochiad_wait;
_local1.server_control = true;
_local1.started = getTimer();
_local1.ad_msec = msec - 250;
};
chk.onEnterFrame = function () {
var _local1 = this;
var ad_clip = _local1._parent._mochiad_ctr;
var elapsed = (getTimer() - _local1.started);
var _local2 = false;
if (!chk.showing) {
var _local3 = ad_clip.getBytesTotal();
if ((_local3 > 0) || (typeof(_local3) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (elapsed > chk.ad_timeout) {
_local2 = true;
}
}
if (elapsed > chk.ad_msec) {
_local2 = true;
}
if (_local2) {
if (_local1.server_control) {
delete _local1.onEnterFrame;
} else {
_local1.fadeout_start = getTimer();
_local1.onEnterFrame = _local1.fadeFunction;
}
}
};
}
}, showTimedAd:function (options) {
MochiAd.showInterLevelAd(options);
}, showPreloaderAd:function (options) {
MochiAd.showPreGameAd(options);
}, _allowDomains:function (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);
}, _loadCommunicator:function (options) {
var _local2 = options;
var _local3 = arguments;
var DEFAULTS = {clip:_root, com_server:"http://x.mochiads.com/com/1/", method:"loadCommunicator", depth:10337, id:"_UNKNOWN_"};
_local2 = MochiAd._parseOptions(_local2, DEFAULTS);
_local2.swfv = _local2.clip.getSWFVersion() || 6;
_local2.mav = MochiAd.getVersion();
var clip = _local2.clip;
var clipname = ("_mochiad_com_" + _local2.id);
if (!MochiAd._isNetworkAvailable()) {
return(null);
}
if (clip[clipname]) {
return(clip[clipname].lc);
}
var server = (_local2.com_server + _local2.id);
MochiAd._allowDomains(server);
delete _local2.id;
delete _local2.com_server;
var depth = _local2.depth;
delete _local2.depth;
var mc = clip.createEmptyMovieClip(clipname, depth);
var lv = mc.createEmptyMovieClip("_mochiad_com", 1);
for (var k in _local2) {
lv[k] = _local2[k];
}
var lc = new LocalConnection();
var name = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
lc.mc = mc;
lc.name = name;
lc.allowDomain = function (d) {
return(true);
};
lc.allowInsecureDomain = lc.allowDomain;
lc.connect(name);
mc.lc = lc;
lv.lc = name;
lc._id = 0;
lc._queue = [];
lc.rpcResult = function (cb_arg) {
var cb = parseInt(cb_arg);
var _local2 = this._callbacks[cb];
if (!_local2) {
} else {
delete this._callbacks[cb];
var _local3 = [];
var _local1 = 2;
while (_local1 < _local2.length) {
_local3.push(_local2[_local1]);
_local1++;
}
_local1 = 1;
while (_local1 < arguments.length) {
_local3.push(arguments[_local1]);
_local1++;
}
var method = _local2[1];
var obj = _local2[0];
if (obj && (typeof(method) == "string")) {
method = obj[method];
}
if (method) {
method.apply(obj, _local3);
}
}
};
lc._didConnect = function (endpoint) {
this._endpoint = endpoint;
var _local3 = this._queue;
delete this._queue;
var ds = this.doSend;
var _local1 = 0;
while (_local1 < _local3.length) {
var _local2 = _local3[_local1];
ds.apply(this, _local2);
_local1++;
}
};
lc.doSend = function (args, cbobj, cbfn) {
var _local2 = arguments;
if (this._endpoint == null) {
var _local3 = [];
var _local1 = 0;
while (_local1 < _local2.length) {
_local3.push(_local2[_local1]);
_local1++;
}
this._queue.push(_local3);
} else {
this._id = this._id + 1;
var id = this._id;
if ((cbfn === undefined) || (cbfn === null)) {
cbfn = cbobj;
}
this._callbacks[id] = [cbobj, cbfn];
var slc = new LocalConnection();
var ss = slc.send(this._endpoint, "rpc", id, args);
}
};
lc._callbacks = {};
lc._callbacks[0] = [lc, "_didConnect"];
lv.st = getTimer();
lv.loadMovie(server + ".swf", "POST");
return(lc);
}, fetchHighScores:function (options, callbackObj, callbackMethod) {
var _local2 = options;
var _local1 = MochiAd._loadCommunicator({id:_local2.id});
if (!_local1) {
return(false);
}
var fncall = ["fetchHighScores", _local2];
_local1.doSend(["fetchHighScores", _local2], callbackObj, callbackMethod);
return(true);
}, sendHighScore:function (options, callbackObj, callbackMethod) {
var _local2 = options;
var _local1 = MochiAd._loadCommunicator({id:_local2.id});
if (!_local1) {
return(false);
}
var fncall = ["sendHighScore", _local2];
_local1.doSend(["sendHighScore", _local2], callbackObj, callbackMethod);
return(true);
}, load:function (options) {
var _local1 = options;
var DEFAULTS = {clip:_root, server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"};
_local1 = MochiAd._parseOptions(_local1, DEFAULTS);
_local1.swfv = _local1.clip.getSWFVersion() || 6;
_local1.mav = MochiAd.getVersion();
var clip = _local1.clip;
if (!MochiAd._isNetworkAvailable()) {
return(null);
}
if (clip._mochiad_loaded) {
return(null);
}
var depth = _local1.depth;
delete _local1.depth;
var mc = clip.createEmptyMovieClip("_mochiad", depth);
var wh = MochiAd._getRes(_local1);
_local1.res = (wh[0] + "x") + wh[1];
_local1.server = _local1.server + _local1.id;
delete _local1.id;
clip._mochiad_loaded = true;
var _local2 = mc.createEmptyMovieClip("_mochiad_ctr", 1);
for (var k in _local1) {
_local2[k] = _local1[k];
}
var server = _local2.server;
delete _local2.server;
var hostname = MochiAd._allowDomains(server);
mc.onEnterFrame = function () {
var _local1 = this;
if (_local1._mochiad_ctr._url != _local1._url) {
_local1.onEnterFrame = function () {
var _local1 = this;
if (!_local1._mochiad_ctr) {
delete _local1.onEnterFrame;
MochiAd.unload(_local1._parent);
}
};
}
};
var _local3 = new LocalConnection();
var name = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local3.mc = mc;
_local3.name = name;
_local3.hostname = hostname;
_local3.allowDomain = function (d) {
return(true);
};
_local3.allowInsecureDomain = _local3.allowDomain;
_local3.connect(name);
mc.lc = _local3;
_local2.lc = name;
_local2.st = getTimer();
_local2.loadMovie(server + ".swf", "POST");
return(mc);
}, unload:function (clip) {
var _local1 = clip;
if (typeof(_local1) == "undefined") {
_local1 = _root;
}
if (_local1.clip && (_local1.clip._mochiad)) {
_local1 = _local1.clip;
}
if (!_local1._mochiad) {
return(false);
}
_local1._mochiad.removeMovieClip();
delete _local1._mochiad_loaded;
delete _local1._mochiad;
return(true);
}, _isNetworkAvailable:function () {
if (System.security) {
var _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}, _getRes:function (options) {
var _local3 = options.clip.getBounds();
var _local2 = 0;
var _local1 = 0;
if (typeof(options.res) != "undefined") {
var xy = options.res.split("x");
_local2 = parseFloat(xy[0]);
_local1 = parseFloat(xy[1]);
} else {
_local2 = _local3.xMax - _local3.xMin;
_local1 = _local3.yMax - _local3.yMin;
}
if ((_local2 == 0) || (_local1 == 0)) {
_local2 = Stage.width;
_local1 = Stage.height;
}
return([_local2, _local1]);
}, _parseOptions:function (options, defaults) {
var _local3 = {};
for (var k in defaults) {
_local3[k] = defaults[k];
}
if (options) {
for (var k in options) {
_local3[k] = options[k];
}
}
if (_root.mochiad_options) {
var pairs = _root.mochiad_options.split("&");
var _local1 = 0;
while (_local1 < pairs.length) {
var _local2 = pairs[_local1].split("=");
_local3[unescape(_local2[0])] = unescape(_local2[1]);
_local1++;
}
}
return(_local3);
}, _:null};
MochiAd.showPreGameAd({id:"1d41cfe22c7b8ac7", res:"400x420"});
stop();
Instance of Symbol 104 MovieClip in Frame 1
/* no clip actions */
Frame 2
function sendScore() {
var _local1 = _root;
now = new Date();
_local1.username = _local1.nick;
_local1.score = _local1.ss;
_local1.game_id = 4;
_local1.chs = ((_local1.score * now.getUTCHours()) * now.getUTCDate()) + (now.getUTCFullYear() * 77);
loadVariablesNum ("http://scores.funny-games.biz/scores.php", 0, "POST");
}
function smazanipromennych() {
var _local1 = _root;
delete gamelevel;
delete up;
delete left;
delete sirka;
delete vyska;
delete polohahrace;
delete pocetpriser;
delete zlatazbyva;
delete a;
delete b;
delete c;
delete cc;
delete jmeno;
delete kroknahoru;
delete krokdolu;
delete krokdoleva;
delete krokdoprava;
delete poloha;
delete volame;
delete volamedalsi;
delete hrachori;
delete mrtvaprisera;
delete cislomrtve;
delete cislo;
delete startcislo;
delete novecislo;
delete nazevvybuchu;
i = 1;
while (i < 401) {
_local1["kostka" + i].removeMovieClip();
delete _local1["prisera" + i];
delete _local1["smer" + i];
delete _local1["m" + i];
delete _local1["nehybatpriserou" + i];
delete _local1[("m" + i) + "p"];
delete _local1["aktuall" + i];
delete _local1["aktualp" + i];
delete _local1["aktuald" + i];
delete _local1["aktualh" + i];
delete _local1["predtimvolnol" + i];
delete _local1["predtimvolnop" + i];
delete _local1["predtimvolnod" + i];
delete _local1["predtimvolnoh" + i];
delete _local1["volnol" + i];
delete _local1["volnop" + i];
delete _local1["volnod" + i];
delete _local1["volnoh" + i];
delete _local1["smerl" + i];
delete _local1["smerp" + i];
delete _local1["smerd" + i];
delete _local1["smerh" + i];
delete _local1["nahoda" + i];
i++;
}
}
function vychod() {
_root.kostka40.gotoAndStop(5);
_root.kostka40.zed.gotoAndPlay(2);
}
function zabitiprisery() {
var _local1 = _root;
cislo = cislo + 1;
startcislo = cislo;
_local1[("m" + cislo) + "p"] = mrtvaprisera + 1;
cislo = cislo + 1;
_local1[("m" + cislo) + "p"] = mrtvaprisera - 1;
cislo = cislo + 1;
_local1[("m" + cislo) + "p"] = mrtvaprisera + 20;
cislo = cislo + 1;
_local1[("m" + cislo) + "p"] = mrtvaprisera - 20;
cislo = cislo + 1;
_local1[("m" + cislo) + "p"] = mrtvaprisera + 21;
cislo = cislo + 1;
_local1[("m" + cislo) + "p"] = mrtvaprisera - 21;
cislo = cislo + 1;
_local1[("m" + cislo) + "p"] = mrtvaprisera + 19;
cislo = cislo + 1;
_local1[("m" + cislo) + "p"] = mrtvaprisera - 19;
_local1.sounds.gotoAndPlay(14);
_local1["kostka" + mrtvaprisera].gotoAndStop(11);
i = startcislo;
while (i < (startcislo + 9)) {
nazevvybuchu = _local1[("m" + i) + "p"];
if (_local1["kostka" + nazevvybuchu]._currentframe != 5) {
if (_local1["kostka" + nazevvybuchu]._currentframe == 6) {
gameover();
}
if (_local1["kostka" + nazevvybuchu]._currentframe == 7) {
cc = 1;
while (cc < (pocetpriser + 1)) {
if (_local1["prisera" + cc] == nazevvybuchu) {
cislomrtve = cc;
}
cc++;
}
cc = cislomrtve;
while (cc < pocetpriser) {
novecislo = cc + 1;
_local1["prisera" + cc] = _local1["prisera" + novecislo];
cc++;
}
_local1["prisera" + pocetpriser] = "";
ss = ss + 2;
pocetpriser = pocetpriser - 1;
}
_local1["kostka" + nazevvybuchu].gotoAndStop(4);
}
i++;
}
i = 1;
while (i < (pocetpriser + 1)) {
if (_local1["prisera" + i] == mrtvaprisera) {
cislomrtve = i;
}
i++;
}
i = cislomrtve;
while (i < pocetpriser) {
novecislo = i + 1;
_local1["prisera" + i] = _local1["prisera" + novecislo];
i++;
}
_local1["prisera" + pocetpriser] = "";
ss = ss + 2;
pocetpriser = pocetpriser - 1;
}
function gameover() {
var _local1 = _root;
ss = ss - 50;
if (ss < 0) {
ss = 0;
}
hrachori = 1;
m1 = polohahrace + 1;
m2 = polohahrace - 1;
m3 = polohahrace + 20;
m4 = polohahrace - 20;
m5 = polohahrace + 21;
m6 = polohahrace - 21;
m7 = polohahrace + 19;
m8 = polohahrace - 19;
_local1.sounds.gotoAndPlay(10);
_local1["kostka" + polohahrace].gotoAndStop(11);
if (_local1["kostka" + m1]._currentframe != 5) {
_local1["kostka" + m1].gotoAndStop(11);
}
if (_local1["kostka" + m2]._currentframe != 5) {
_local1["kostka" + m2].gotoAndStop(11);
}
if (_local1["kostka" + m3]._currentframe != 5) {
_local1["kostka" + m3].gotoAndStop(11);
}
if (_local1["kostka" + m4]._currentframe != 5) {
_local1["kostka" + m4].gotoAndStop(11);
}
if (_local1["kostka" + m5]._currentframe != 5) {
_local1["kostka" + m5].gotoAndStop(11);
}
if (_local1["kostka" + m6]._currentframe != 5) {
_local1["kostka" + m6].gotoAndStop(11);
}
if (_local1["kostka" + m7]._currentframe != 5) {
_local1["kostka" + m7].gotoAndStop(11);
}
if (_local1["kostka" + m8]._currentframe != 5) {
_local1["kostka" + m8].gotoAndStop(11);
}
}
function pohyb() {
var _local1 = _root;
if (left == 1) {
if (_local1.krokdoleva < 3) {
_local1.krokdoleva = _local1.krokdoleva + 1;
} else {
_local1.krokdoleva = 1;
}
poloha = -1;
zjisteniprekazky();
}
if (left == 2) {
if (_local1.krokdoprava < 3) {
_local1.krokdoprava = _local1.krokdoprava + 1;
} else {
_local1.krokdoprava = 1;
}
poloha = 1;
zjisteniprekazky();
}
if (up == 1) {
if (_local1.kroknahoru < 3) {
_local1.kroknahoru = _local1.kroknahoru + 1;
} else {
_local1.kroknahoru = 1;
}
poloha = -20;
zjisteniprekazky();
}
if (up == 2) {
if (_local1.krokdolu < 3) {
_local1.krokdolu = _local1.krokdolu + 1;
} else {
_local1.krokdolu = 1;
}
poloha = 20;
zjisteniprekazky();
}
}
function zjisteniprekazky() {
var _local1 = _root;
volame = polohahrace + poloha;
volamedalsi = polohahrace + (poloha * 2);
if ((volame == 40) and (zlatazbyva < 1)) {
_local1.gotoAndStop(8);
}
if ((_local1["kostka" + volame]._currentframe < 3) and (volame > 20)) {
if (_local1["kostka" + volame]._currentframe == 1) {
_local1.sounds.gotoAndPlay(8);
}
_local1["kostka" + polohahrace].gotoAndStop(2);
_local1["kostka" + volame].gotoAndStop(6);
polohahrace = polohahrace + poloha;
} else if (_local1["kostka" + volame]._currentframe == 3) {
if ((_local1["kostka" + volamedalsi]._currentframe == 2) and (up == 0)) {
_local1.sounds.gotoAndPlay(18);
_local1["kostka" + polohahrace].gotoAndStop(2);
_local1["kostka" + volame].gotoAndStop(6);
_local1["kostka" + volamedalsi].gotoAndStop(3);
polohahrace = polohahrace + poloha;
}
} else if (_local1["kostka" + volame]._currentframe == 4) {
_local1.sounds.gotoAndPlay(4);
_local1["kostka" + polohahrace].gotoAndStop(2);
_local1["kostka" + volame].gotoAndStop(6);
polohahrace = polohahrace + poloha;
ss = ss + 5;
if (zlatazbyva > 0) {
zlatazbyva = zlatazbyva - 1;
if (zlatazbyva == 0) {
vychod();
}
}
} else if (_local1["kostka" + volame]._currentframe == 7) {
gameover();
} else if (_local1["kostka" + volame]._currentframe == 8) {
_local1.sounds.gotoAndPlay(6);
_local1["kostka" + polohahrace].gotoAndStop(2);
_local1["kostka" + volame].gotoAndStop(6);
polohahrace = polohahrace + poloha;
dynamitu = dynamitu + 1;
} else if (_local1["kostka" + volame]._currentframe == 9) {
_local1["kostka" + _local1.polohahrace].gotoAndStop(10);
} else if (_local1["kostka" + volame]._currentframe == 11) {
_local1["kostka" + _local1.polohahrace].gotoAndStop(10);
}
}
function zjistenijmena() {
a = _name.charAt(6);
b = _name.charAt(7);
c = _name.charAt(8);
if (c == "") {
if (b == "") {
c = a;
a = 0;
b = 0;
} else {
c = b;
b = a;
a = 0;
}
}
a = Number(a);
b = Number(b);
c = Number(c);
jmeno = ((a * 100) + (b * 10)) + c;
}
own = 0;
stop();
Frame 4
level2 = level;
while (level2 > 10) {
level2 = level2 - 10;
}
levelcode = ((((level * 139).toString(25) + "z") + ((ss + 54) * 73).toString(22)) + "y") + (lives * 43).toString(24);
stop();
Frame 5
move = 20;
pocetkosteksirka = 20;
pocetkostekvyska = 20;
celkemkostek = pocetkosteksirka * pocetkostekvyska;
sirka = pocetkosteksirka - 1;
vyska = pocetkostekvyska - 1;
i = celkemkostek;
while (i > 0) {
if (sirka < 0) {
sirka = pocetkosteksirka - 1;
vyska = vyska - 1;
}
_root.attachMovie("kostka", "kostka" + i, i);
_root["kostka" + i]._x = sirka * move;
_root["kostka" + i]._y = vyska * move;
sirka = sirka - 1;
i--;
}
i = 1;
while (i < 401) {
_root["kostka" + i].gotoAndStop(_root.gamelevel.charAt(400 - i));
if (_root.gamelevel.charAt(400 - i) eq "6") {
_root.polohahrace = i;
}
if (_root.gamelevel.charAt(400 - i) eq "7") {
_root.pocetpriser = _root.pocetpriser + 1;
_root["prisera" + _root.pocetpriser] = i;
}
i++;
}
i = 1;
while (i <= _root.pocetpriser) {
_root["smer" + i] = random(4) + 1;
i++;
}
stop();
Instance of Symbol 213 MovieClip in Frame 5
onClipEvent (enterFrame) {
_root.gametime = _root.gametime - 1;
if ((_root.gametime == 1) and (_root.hrachori != 1)) {
_root.gameover();
}
if (_root.gametime == 50) {
_root.sounds.gotoAndPlay(16);
}
if (_root.gametime < 1) {
_root.gametime = 0;
}
if (_root["kostka" + _root.polohahrace].plamen._currentframe == 15) {
_root.gotoAndStop(6);
}
i = 1;
while (i <= _root.pocetpriser) {
if (_root["kostka" + _root["prisera" + i]]._currentframe == 7) {
_root["aktuall" + i] = _root["prisera" + i] - 1;
_root["aktualh" + i] = _root["prisera" + i] - 20;
_root["aktuald" + i] = _root["prisera" + i] + 20;
_root["aktualp" + i] = _root["prisera" + i] + 1;
_root["predtimvolnol" + i] = _root["volnol" + i];
_root["predtimvolnoh" + i] = _root["volnoh" + i];
_root["predtimvolnop" + i] = _root["volnop" + i];
_root["predtimvolnod" + i] = _root["volnod" + i];
_root["volnol" + i] = 0;
_root["volnoh" + i] = 0;
_root["volnop" + i] = 0;
_root["volnod" + i] = 0;
if ((_root["kostka" + _root["aktuall" + i]]._currentframe == 2) or (_root["kostka" + _root["aktuall" + i]]._currentframe == 6)) {
_root["volnol" + i] = 1;
}
if ((_root["kostka" + _root["aktualh" + i]]._currentframe == 2) or (_root["kostka" + _root["aktualh" + i]]._currentframe == 6)) {
_root["volnoh" + i] = 1;
}
if ((_root["kostka" + _root["aktualp" + i]]._currentframe == 2) or (_root["kostka" + _root["aktualp" + i]]._currentframe == 6)) {
_root["volnop" + i] = 1;
}
if ((_root["kostka" + _root["aktuald" + i]]._currentframe == 2) or (_root["kostka" + _root["aktuald" + i]]._currentframe == 6)) {
_root["volnod" + i] = 1;
}
_root["smerl" + i] = 0;
_root["smerp" + i] = 0;
_root["smerd" + i] = 0;
_root["smerh" + i] = 0;
if (((_root["volnol" + i] == 1) and (_root["predtimvolnol" + i] == 0)) and (_root["smer" + i] != 3)) {
if (random(2) == 1) {
_root["smerl" + i] = 1;
}
}
if (((_root["volnop" + i] == 1) and (_root["predtimvolnop" + i] == 0)) and (_root["smer" + i] != 1)) {
if (random(2) == 1) {
_root["smerp" + i] = 1;
}
}
if (((_root["volnod" + i] == 1) and (_root["predtimvolnod" + i] == 0)) and (_root["smer" + i] != 2)) {
if (random(2) == 1) {
_root["smerd" + i] = 1;
}
}
if (((_root["volnoh" + i] == 1) and (_root["predtimvolnoh" + i] == 0)) and (_root["smer" + i] != 4)) {
if (random(2) == 1) {
_root["smerh" + i] = 1;
}
}
if ((_root["smerl" + i] == 1) and (_root["smerp" + i] == 1)) {
_root["nahoda" + i] = random(2);
if (_root["nahoda" + i] == 0) {
_root["smer" + i] = 1;
}
if (_root["nahoda" + i] == 1) {
_root["smer" + i] = 3;
}
} else if ((_root["smerh" + i] == 1) and (_root["smerd" + i] == 1)) {
_root["nahoda" + i] = random(2);
if (_root["nahoda" + i] == 0) {
_root["smer" + i] = 2;
}
if (_root["nahoda" + i] == 1) {
_root["smer" + i] = 4;
}
} else if (_root["smerl" + i] == 1) {
_root["smer" + i] = 1;
} else if (_root["smerh" + i] == 1) {
_root["smer" + i] = 2;
} else if (_root["smerp" + i] == 1) {
_root["smer" + i] = 3;
} else if (_root["smerd" + i] == 1) {
_root["smer" + i] = 4;
}
if (_root["smer" + i] == 1) {
if ((_root["kostka" + _root["aktuall" + i]]._currentframe == 2) or (_root["kostka" + _root["aktuall" + i]]._currentframe == 6)) {
if (_root["kostka" + _root["aktuall" + i]]._currentframe == 2) {
_root["kostka" + _root["prisera" + i]].gotoAndStop(2);
_root["kostka" + _root["aktuall" + i]].gotoAndStop(7);
_root["kostka" + _root["aktuall" + i]].permonik.gotoAndStop(4);
_root["prisera" + i] = _root["aktuall" + i];
}
if (_root["kostka" + _root["aktuall" + i]]._currentframe == 6) {
_root.gameover();
}
} else {
_root["smer" + i] = _root["smer" + i] + 1;
if (_root["smer" + i] > 4) {
_root["smer" + i] = 1;
}
}
} else if (_root["smer" + i] == 2) {
if ((_root["kostka" + _root["aktualh" + i]]._currentframe == 2) or (_root["kostka" + _root["aktualh" + i]]._currentframe == 6)) {
if (_root["kostka" + _root["aktualh" + i]]._currentframe == 2) {
_root["kostka" + _root["prisera" + i]].gotoAndStop(2);
_root["kostka" + _root["aktualh" + i]].gotoAndStop(7);
_root["kostka" + _root["aktualh" + i]].permonik.gotoAndStop(2);
_root["prisera" + i] = _root["aktualh" + i];
}
if (_root["kostka" + _root["aktualh" + i]]._currentframe == 6) {
_root.gameover();
}
} else {
_root["smer" + i] = _root["smer" + i] + 1;
if (_root["smer" + i] > 4) {
_root["smer" + i] = 1;
}
}
} else if (_root["smer" + i] == 3) {
if ((_root["kostka" + _root["aktualp" + i]]._currentframe == 2) or (_root["kostka" + _root["aktualp" + i]]._currentframe == 6)) {
if (_root["kostka" + _root["aktualp" + i]]._currentframe == 2) {
_root["kostka" + _root["prisera" + i]].gotoAndStop(2);
_root["kostka" + _root["aktualp" + i]].gotoAndStop(7);
_root["kostka" + _root["aktualp" + i]].permonik.gotoAndStop(3);
_root["prisera" + i] = _root["aktualp" + i];
}
if (_root["kostka" + _root["aktualp" + i]]._currentframe == 6) {
_root.gameover();
}
} else {
_root["smer" + i] = _root["smer" + i] + 1;
if (_root["smer" + i] > 4) {
_root["smer" + i] = 1;
}
}
} else if (_root["smer" + i] == 4) {
if ((_root["kostka" + _root["aktuald" + i]]._currentframe == 2) or (_root["kostka" + _root["aktuald" + i]]._currentframe == 6)) {
if (_root["kostka" + _root["aktuald" + i]]._currentframe == 2) {
_root["kostka" + _root["prisera" + i]].gotoAndStop(2);
_root["kostka" + _root["aktuald" + i]].gotoAndStop(7);
_root["kostka" + _root["aktuald" + i]].permonik.gotoAndStop(1);
_root["prisera" + i] = _root["aktuald" + i];
}
if (_root["kostka" + _root["aktuald" + i]]._currentframe == 6) {
_root.gameover();
}
} else {
_root["smer" + i] = _root["smer" + i] + 1;
if (_root["smer" + i] > 4) {
_root["smer" + i] = 1;
}
}
}
}
i++;
}
if (_root.hrachori != 1) {
if (Key.isDown(32) and (_root.dynamitu > 0)) {
if (_root["kostka" + _root.polohahrace].hrac._currentframe < 4) {
zavolat = _root.polohahrace + 20;
} else if (_root["kostka" + _root.polohahrace].hrac._currentframe < 7) {
zavolat = _root.polohahrace - 20;
} else if (_root["kostka" + _root.polohahrace].hrac._currentframe < 10) {
zavolat = _root.polohahrace - 1;
} else {
zavolat = _root.polohahrace + 1;
}
if (_root["kostka" + zavolat]._currentframe == 2) {
_root["kostka" + zavolat].gotoAndStop(12);
_root.dynamitu = _root.dynamitu - 1;
}
}
if (Key.isDown(37)) {
_root.left = 1;
_root.up = 0;
_root.pohyb();
} else if (Key.isDown(39)) {
_root.left = 2;
_root.up = 0;
_root.pohyb();
} else if (Key.isDown(38)) {
_root.up = 1;
_root.left = 0;
_root.pohyb();
} else if (Key.isDown(40)) {
_root.up = 2;
_root.left = 0;
_root.pohyb();
} else {
_root.up = 0;
_root.left = 0;
}
}
}
Frame 6
lives = lives - 1;
dynamitu = 0;
smazanipromennych();
if (lives > 0) {
if (own == 0) {
gotoAndStop (4);
} else {
gotoAndStop (23);
}
} else {
gotoAndStop (7);
}
Frame 8
if ((level / 5) == Math.round(level / 5)) {
lives = lives + 1;
bonuslife.gotoAndStop(2);
}
if ((level / 10) == Math.round(level / 10)) {
_root.gotoAndStop(10);
}
level = level + 1;
bonus = Math.round(gametime / 10);
delete gametime;
ss = ss + bonus;
ss = ss + 100;
smazanipromennych();
Frame 20
getURL ((("http://scores.funny-games.biz/show.php?game_id=4&difficulty=" + _root.diff) + "&highlight=") + _root.id, "_blank");
gotoAndStop (2);
Frame 25
diff = 5;
own = 1;
Symbol 5 MovieClip Frame 1
stop();
Symbol 8 MovieClip Frame 2
if (_root["kostka" + _parent.nazevdolni]._currentframe == 2) {
pada = pada + 1;
_root["kostka" + _parent.nazevdolni].gotoAndStop(3);
_root["kostka" + _parent.nazevdolni].vozik.pada = pada;
_root["kostka" + _parent.jmeno].gotoAndStop(2);
} else if ((_root["kostka" + _parent.nazevdolni]._currentframe == 6) and (pada > 0)) {
_root.gameover();
} else if ((_root["kostka" + _parent.nazevdolni]._currentframe == 7) and (pada > 0)) {
_root.mrtvaprisera = _parent.nazevdolni;
_root.zabitiprisery();
} else {
if (pada > 0) {
_root.sounds.gotoAndPlay(12);
}
pada = 0;
gotoAndPlay (1);
}
Symbol 11 MovieClip Frame 2
if (_root["kostka" + _parent.nazevdolni]._currentframe == 2) {
pada = pada + 1;
_root["kostka" + _parent.nazevdolni].gotoAndStop(4);
_root["kostka" + _parent.nazevdolni].zlt.pada = pada;
_root["kostka" + _parent.jmeno].gotoAndStop(2);
} else if ((_root["kostka" + _parent.nazevdolni]._currentframe == 6) and (pada > 0)) {
_root.gameover();
} else if ((_root["kostka" + _parent.nazevdolni]._currentframe == 7) and (pada > 0)) {
_root.mrtvaprisera = _parent.nazevdolni;
_root.zabitiprisery();
} else {
if (pada > 0) {
_root.sounds.gotoAndPlay(12);
}
pada = 0;
kostkahorni = _parent.nazevdolni - 40;
vlevo = _parent.jmeno - 1;
vpravo = _parent.jmeno + 1;
vlevodole = _parent.nazevdolni - 1;
vpravodole = _parent.nazevdolni + 1;
if (_root["kostka" + _parent.nazevdolni]._currentframe == 4) {
if ((_root["kostka" + vlevo]._currentframe == 2) and (_root["kostka" + vlevodole]._currentframe == 2)) {
_root["kostka" + vlevo].gotoAndStop(4);
_root["kostka" + _parent.jmeno].gotoAndStop(2);
pada = 1;
_root["kostka" + vlevodole].zlt.pada = pada;
} else if ((_root["kostka" + vpravo]._currentframe == 2) and (_root["kostka" + vpravodole]._currentframe == 2)) {
_root["kostka" + vpravo].gotoAndStop(4);
_root["kostka" + _parent.jmeno].gotoAndStop(2);
pada = 1;
_root["kostka" + vpravodole].zlt.pada = pada;
}
}
}
Symbol 17 MovieClip Frame 1
stop();
Symbol 17 MovieClip Frame 4
gotoAndPlay (2);
Symbol 47 MovieClip Frame 1
stop();
Symbol 50 MovieClip Frame 2
if (_root["kostka" + _parent.nazevdolni]._currentframe == 2) {
pada = pada + 1;
_root["kostka" + _parent.nazevdolni].gotoAndStop(8);
_root["kostka" + _parent.nazevdolni].dyn.pada = pada;
_root["kostka" + _parent.jmeno].gotoAndStop(2);
} else if ((_root["kostka" + _parent.nazevdolni]._currentframe == 6) and (pada > 0)) {
_root.gameover();
} else if ((_root["kostka" + _parent.nazevdolni]._currentframe == 7) and (pada > 0)) {
_root.mrtvaprisera = _parent.nazevdolni;
_root.zabitiprisery();
} else {
pada = 0;
gotoAndPlay (1);
}
Symbol 57 MovieClip Frame 1
if (_root["kostka" + _parent.nazevhorni]._currentframe == 9) {
} else {
gotoAndPlay (3);
}
Symbol 57 MovieClip Frame 2
if (_root["kostka" + _parent.nazevhorni]._currentframe == 9) {
gotoAndPlay (1);
} else {
gotoAndPlay (3);
}
if (random(7) == 1) {
smer = random(4);
if (smer == 0) {
volame = _parent.jmeno - 1;
}
if (smer == 1) {
volame = _parent.jmeno + 1;
}
if (smer == 2) {
volame = _parent.jmeno + 20;
}
if (smer == 3) {
volame = _parent.jmeno - 20;
}
if ((_root["kostka" + volame]._currentframe == 2) and (volame > 40)) {
_root["kostka" + volame].gotoAndStop(9);
}
if (_root["kostka" + volame]._currentframe == 6) {
_root["kostka" + _root.polohahrace].gotoAndStop(10);
}
if (_root["kostka" + volame]._currentframe == 7) {
_root["kostka" + volame].gotoAndStop(13);
}
if (_root["kostka" + volame]._currentframe == 8) {
_root["kostka" + volame].gotoAndStop(12);
}
}
Symbol 57 MovieClip Frame 3
if (_root["kostka" + _parent.nazevhorni]._currentframe == 9) {
gotoAndPlay (1);
}
Symbol 57 MovieClip Frame 5
if (_root["kostka" + _parent.nazevhorni]._currentframe == 9) {
gotoAndPlay (1);
} else {
gotoAndPlay (3);
}
if (random(7) == 1) {
smer = random(4);
if (smer == 0) {
volame = _parent.jmeno - 1;
}
if (smer == 1) {
volame = _parent.jmeno + 1;
}
if (smer == 2) {
volame = _parent.jmeno + 20;
}
if (smer == 3) {
volame = _parent.jmeno - 20;
}
if ((_root["kostka" + volame]._currentframe == 2) and (volame > 40)) {
_root["kostka" + volame].gotoAndStop(9);
}
if (_root["kostka" + volame]._currentframe == 6) {
_root["kostka" + _root.polohahrace].gotoAndStop(10);
}
if (_root["kostka" + volame]._currentframe == 7) {
_root["kostka" + volame].gotoAndStop(13);
}
if (_root["kostka" + volame]._currentframe == 8) {
_root["kostka" + volame].gotoAndStop(12);
}
}
Symbol 65 MovieClip Frame 12
_root.gameover();
Symbol 76 MovieClip Frame 2
if (smervybuchu == 1) {
smervybuchu = 0;
pravavlna = _parent.jmeno + 1;
if ((_root["kostka" + pravavlna]._currentframe == 2) or (_root["kostka" + pravavlna]._currentframe == 11)) {
_root["kostka" + pravavlna].gotoAndStop(11);
_root["kostka" + pravavlna].plamen.gotoAndPlay(1);
_root["kostka" + pravavlna].plamen.smervybuchu = 1;
}
if (_root["kostka" + pravavlna]._currentframe == 6) {
_root["kostka" + _root.polohahrace].gotoAndStop(10);
}
if ((_root["kostka" + pravavlna]._currentframe == 8) or (_root["kostka" + pravavlna]._currentframe == 12)) {
_root["kostka" + pravavlna].gotoAndStop(12);
_root["kostka" + pravavlna].bum.gotoAndStop(1);
_root["kostka" + pravavlna].bum.dd.gotoAndStop(8);
}
if (_root["kostka" + pravavlna]._currentframe == 7) {
_root["kostka" + pravavlna].gotoAndStop(13);
}
}
if (smervybuchu == 2) {
smervybuchu = 0;
levavlna = _parent.jmeno - 1;
if ((_root["kostka" + levavlna]._currentframe == 2) or (_root["kostka" + levavlna]._currentframe == 11)) {
_root["kostka" + levavlna].gotoAndStop(11);
_root["kostka" + levavlna].plamen.gotoAndPlay(1);
_root["kostka" + levavlna].plamen.smervybuchu = 2;
}
if (_root["kostka" + levavlna]._currentframe == 6) {
_root["kostka" + _root.polohahrace].gotoAndStop(10);
}
if ((_root["kostka" + levavlna]._currentframe == 8) or (_root["kostka" + levavlna]._currentframe == 12)) {
_root["kostka" + levavlna].gotoAndStop(12);
_root["kostka" + levavlna].bum.gotoAndStop(1);
_root["kostka" + levavlna].bum.dd.gotoAndStop(8);
}
if (_root["kostka" + levavlna]._currentframe == 7) {
_root["kostka" + levavlna].gotoAndStop(13);
}
}
if (smervybuchu == 3) {
smervybuchu = 0;
hornivlna = _parent.jmeno - 20;
if ((_root["kostka" + hornivlna]._currentframe == 2) or (_root["kostka" + hornivlna]._currentframe == 11)) {
_root["kostka" + hornivlna].gotoAndStop(11);
_root["kostka" + hornivlna].plamen.gotoAndPlay(1);
_root["kostka" + hornivlna].plamen.smervybuchu = 3;
}
if (_root["kostka" + hornivlna]._currentframe == 6) {
_root["kostka" + _root.polohahrace].gotoAndStop(10);
}
if ((_root["kostka" + hornivlna]._currentframe == 8) or (_root["kostka" + hornivlna]._currentframe == 12)) {
_root["kostka" + hornivlna].gotoAndStop(12);
_root["kostka" + hornivlna].bum.gotoAndStop(1);
_root["kostka" + hornivlna].bum.dd.gotoAndStop(8);
}
if (_root["kostka" + hornivlna]._currentframe == 7) {
_root["kostka" + hornivlna].gotoAndStop(13);
}
}
if (smervybuchu == 4) {
smervybuchu = 0;
dolnivlna = _parent.jmeno + 20;
if ((_root["kostka" + dolnivlna]._currentframe == 2) or (_root["kostka" + dolnivlna]._currentframe == 11)) {
_root["kostka" + dolnivlna].gotoAndStop(11);
_root["kostka" + dolnivlna].plamen.gotoAndPlay(1);
_root["kostka" + dolnivlna].plamen.smervybuchu = 4;
}
if (_root["kostka" + dolnivlna]._currentframe == 6) {
_root["kostka" + _root.polohahrace].gotoAndStop(10);
}
if ((_root["kostka" + dolnivlna]._currentframe == 8) or (_root["kostka" + dolnivlna]._currentframe == 12)) {
_root["kostka" + dolnivlna].gotoAndStop(12);
_root["kostka" + dolnivlna].bum.gotoAndStop(1);
_root["kostka" + dolnivlna].bum.dd.gotoAndStop(8);
}
if (_root["kostka" + dolnivlna]._currentframe == 7) {
_root["kostka" + dolnivlna].gotoAndStop(13);
}
}
Symbol 76 MovieClip Frame 16
_parent.gotoAndStop(2);
Symbol 83 MovieClip Frame 8
_root.sounds.gotoAndPlay(2);
detonace = _parent._parent.jmeno;
pravavlna = detonace + 1;
levavlna = detonace - 1;
hornivlna = detonace - 20;
dolnivlna = detonace + 20;
if ((_root["kostka" + pravavlna]._currentframe == 2) or (_root["kostka" + pravavlna]._currentframe == 11)) {
_root["kostka" + pravavlna].gotoAndStop(11);
_root["kostka" + pravavlna].plamen.gotoAndPlay(1);
_root["kostka" + pravavlna].plamen.smervybuchu = 1;
}
if (_root["kostka" + pravavlna]._currentframe == 6) {
_root["kostka" + _root.polohahrace].gotoAndStop(10);
}
if ((_root["kostka" + pravavlna]._currentframe == 8) or (_root["kostka" + pravavlna]._currentframe == 12)) {
_root["kostka" + pravavlna].gotoAndStop(12);
_root["kostka" + pravavlna].bum.gotoAndStop(1);
_root["kostka" + pravavlna].bum.dd.gotoAndStop(8);
}
if (_root["kostka" + pravavlna]._currentframe == 7) {
_root["kostka" + pravavlna].gotoAndStop(13);
}
if ((_root["kostka" + levavlna]._currentframe == 2) or (_root["kostka" + levavlna]._currentframe == 11)) {
_root["kostka" + levavlna].gotoAndStop(11);
_root["kostka" + levavlna].plamen.gotoAndPlay(1);
_root["kostka" + levavlna].plamen.smervybuchu = 2;
}
if (_root["kostka" + levavlna]._currentframe == 6) {
_root["kostka" + _root.polohahrace].gotoAndStop(10);
}
if ((_root["kostka" + levavlna]._currentframe == 8) or (_root["kostka" + levavlna]._currentframe == 12)) {
_root["kostka" + levavlna].gotoAndStop(12);
_root["kostka" + levavlna].bum.gotoAndStop(1);
_root["kostka" + levavlna].bum.dd.gotoAndStop(8);
}
if (_root["kostka" + levavlna]._currentframe == 7) {
_root["kostka" + levavlna].gotoAndStop(13);
}
if ((_root["kostka" + hornivlna]._currentframe == 2) or (_root["kostka" + hornivlna]._currentframe == 11)) {
_root["kostka" + hornivlna].gotoAndStop(11);
_root["kostka" + hornivlna].plamen.gotoAndPlay(1);
_root["kostka" + hornivlna].plamen.smervybuchu = 3;
}
if (_root["kostka" + hornivlna]._currentframe == 6) {
_root["kostka" + _root.polohahrace].gotoAndStop(10);
}
if ((_root["kostka" + hornivlna]._currentframe == 8) or (_root["kostka" + hornivlna]._currentframe == 12)) {
_root["kostka" + hornivlna].gotoAndStop(12);
_root["kostka" + hornivlna].bum.gotoAndStop(1);
_root["kostka" + hornivlna].bum.dd.gotoAndStop(8);
}
if (_root["kostka" + hornivlna]._currentframe == 7) {
_root["kostka" + hornivlna].gotoAndStop(13);
}
if ((_root["kostka" + dolnivlna]._currentframe == 2) or (_root["kostka" + dolnivlna]._currentframe == 11)) {
_root["kostka" + dolnivlna].gotoAndStop(11);
_root["kostka" + dolnivlna].plamen.gotoAndPlay(1);
_root["kostka" + dolnivlna].plamen.smervybuchu = 4;
}
if (_root["kostka" + dolnivlna]._currentframe == 6) {
_root["kostka" + _root.polohahrace].gotoAndStop(10);
}
if ((_root["kostka" + dolnivlna]._currentframe == 8) or (_root["kostka" + dolnivlna]._currentframe == 12)) {
_root["kostka" + dolnivlna].gotoAndStop(12);
_root["kostka" + dolnivlna].bum.gotoAndStop(1);
_root["kostka" + dolnivlna].bum.dd.gotoAndStop(8);
}
if (_root["kostka" + dolnivlna]._currentframe == 7) {
_root["kostka" + dolnivlna].gotoAndStop(13);
}
_root["kostka" + detonace].gotoAndStop(11);
Symbol 84 MovieClip Frame 2
if (_root["kostka" + _parent.nazevdolni]._currentframe == 2) {
pada = pada + 1;
caspada = caspada + 1;
_root["kostka" + _parent.nazevdolni].gotoAndStop(12);
_root["kostka" + _parent.nazevdolni].bum.dd.gotoAndPlay(caspada + 1);
_root["kostka" + _parent.nazevdolni].bum.pada = pada;
_root["kostka" + _parent.nazevdolni].bum.caspada = caspada;
_root["kostka" + _parent.jmeno].gotoAndStop(2);
} else if ((_root["kostka" + _parent.nazevdolni]._currentframe == 6) and (pada > 0)) {
_root.gameover();
} else if ((_root["kostka" + _parent.nazevdolni]._currentframe == 7) and (pada > 0)) {
_root.mrtvaprisera = _parent.nazevdolni;
_root.zabitiprisery();
pada = 0;
}
Symbol 89 MovieClip Frame 12
_root.mrtvaprisera = _parent.jmeno;
_root.zabitiprisery();
Symbol 90 MovieClip [kostka] Frame 1
a = _name.charAt(6);
b = _name.charAt(7);
c = _name.charAt(8);
if (c == "") {
if (b == "") {
c = a;
a = 0;
b = 0;
} else {
c = b;
b = a;
a = 0;
}
}
a = Number(a);
b = Number(b);
c = Number(c);
jmeno = ((a * 100) + (b * 10)) + c;
nazevhornikostky = jmeno - 20;
if ((_root["kostka" + nazevhornikostky]._currentframe != 1) and (_root["kostka" + nazevhornikostky]._currentframe != 5)) {
hlina.gotoAndStop(2);
}
Symbol 90 MovieClip [kostka] Frame 3
_root.zjistenijmena();
nazevdolni = jmeno + 20;
Symbol 90 MovieClip [kostka] Frame 4
_root.zjistenijmena();
nazevdolni = jmeno + 20;
Symbol 90 MovieClip [kostka] Frame 6
if (_root.hrachori == 1) {
gotoAndStop (10);
}
if (_root.up == 2) {
hrac.gotoAndStop(_root.krokdolu);
} else if (_root.up == 1) {
hrac.gotoAndStop(_root.kroknahoru + 3);
} else if (_root.left == 1) {
hrac.gotoAndStop(_root.krokdoleva + 6);
} else if (_root.left == 2) {
hrac.gotoAndStop(_root.krokdoprava + 9);
} else {
hrac.gotoAndStop(1);
}
Symbol 90 MovieClip [kostka] Frame 8
_root.zjistenijmena();
nazevdolni = jmeno + 20;
Symbol 90 MovieClip [kostka] Frame 9
_root.zjistenijmena();
nazevhorni = jmeno - 20;
Symbol 90 MovieClip [kostka] Frame 10
_root.hrachori = 1;
Symbol 90 MovieClip [kostka] Frame 11
_root.zjistenijmena();
Symbol 90 MovieClip [kostka] Frame 12
_root.zjistenijmena();
nazevdolni = jmeno + 20;
Symbol 90 MovieClip [kostka] Frame 13
_root.zjistenijmena();
Symbol 104 MovieClip Frame 1
stop();
Symbol 109 Button
on (release) {
gotoAndStop (9);
own = 0;
}
Symbol 112 Button
on (release) {
getURL ("http://scores.funny-games.biz/show.php?game_id=4&difficulty=1", "_blank");
}
Symbol 115 Button
on (release) {
gotoAndStop (3);
}
Symbol 118 Button
on (release) {
own = 0;
gotoAndStop (2);
}
Symbol 123 Button
on (release) {
i = 0;
while (i < _root.levelcode.length) {
if (_root.levelcode.charAt(i) eq "z") {
leveldelka = i;
c = 0;
while (c < leveldelka) {
levelkod = levelkod + ("" + _root.levelcode.charAt(c));
c++;
}
}
if (_root.levelcode.charAt(i) eq "y") {
scoredelka = i;
c = leveldelka + 1;
while (c < scoredelka) {
scorekod = scorekod + ("" + _root.levelcode.charAt(c));
c++;
}
c = scoredelka + 1;
while (c < _root.levelcode.length) {
liveskod = liveskod + ("" + _root.levelcode.charAt(c));
c++;
}
}
i++;
}
_root.level = parseInt(levelkod, 25) / 139;
_root.ss = (parseInt(scorekod, 22) / 73) - 54;
_root.lives = parseInt(liveskod, 24) / 43;
delete levelkod;
delete liveskod;
delete scorekod;
if (((_root.lives > 0) and (_root.ss > -1)) and (_root.level > 0)) {
if (((_root.lives == Math.round(_root.lives)) and (_root.ss == Math.round(_root.ss))) and (_root.level == Math.round(_root.level))) {
_root.dynamitu = 0;
_root.gotoAndStop(4);
} else {
chybny.gotoAndPlay(1);
}
} else {
chybny.gotoAndPlay(1);
}
}
Symbol 127 MovieClip Frame 15
stop();
Symbol 128 MovieClip Frame 1
stop();
Symbol 128 MovieClip Frame 2
chybny.gotoAndStop(15);
Symbol 131 Button
on (release) {
getURL ("http://exclusive.funny-games.biz/goldmine-editor.html", "_blank");
}
Symbol 134 Button
on (release) {
gotoAndStop (25);
}
Symbol 137 Button
on (release) {
getURL ("http://www.funny-games.biz/main.html", "_blank");
}
Symbol 143 Button
on (release) {
getURL ("http://www.funny-games.biz/main.html", "_blank");
}
Symbol 178 MovieClip Frame 2
_quality = "HIGH";
Symbol 178 MovieClip Frame 40
_quality = "LOW";
stop();
Symbol 182 Button
on (release) {
gotoAndStop (2);
}
Symbol 186 MovieClip Frame 1
stop();
Symbol 186 MovieClip Frame 4
gotoAndStop (1);
Symbol 189 Button
on (release) {
help.nextFrame();
}
Symbol 198 Button
on (release, keyPress "<Enter>") {
_root.gotoAndStop(5);
}
Symbol 199 MovieClip Frame 1
_root.gamelevel = "";
if (_root.own == 0) {
loadVariables (((("http://exclusive.funny-games.biz/goldmine/mine0" + Math.floor((9 + _root.level) / 10)) + "/level") + _root.level2) + ".dat", _root);
} else {
loadVariables (("http://exclusive.funny-games.biz/goldmine/user/level" + _root.ownnumber) + ".dat", _root, "POST");
}
Symbol 199 MovieClip Frame 3
if (_root.gamelevel.length == 400) {
gotoAndStop (4);
} else {
gotoAndPlay (2);
}
Symbol 230 Button
on (release) {
gameover();
}
Symbol 240 MovieClip Frame 1
stop();
Symbol 240 MovieClip Frame 3
gotoAndPlay (1);
Symbol 240 MovieClip Frame 5
gotoAndPlay (1);
Symbol 240 MovieClip Frame 7
gotoAndPlay (1);
Symbol 240 MovieClip Frame 9
gotoAndPlay (1);
Symbol 240 MovieClip Frame 11
gotoAndPlay (1);
Symbol 240 MovieClip Frame 13
gotoAndPlay (1);
Symbol 240 MovieClip Frame 15
gotoAndPlay (1);
Symbol 240 MovieClip Frame 17
gotoAndPlay (1);
Symbol 240 MovieClip Frame 19
gotoAndPlay (1);
Symbol 246 Button
on (release) {
gotoAndStop (11);
}
Symbol 254 Button
on (release, keyPress "<Enter>") {
if (_root.own == 0) {
gotoAndStop (4);
} else {
gotoAndStop (25);
}
}
Symbol 256 MovieClip Frame 1
stop();
Symbol 259 Button
on (release) {
ss = 0;
lives = 5;
level = 1;
dynamitu = 0;
_root.diff = 1;
gotoAndStop (4);
}
Symbol 262 Button
on (release) {
ss = 0;
lives = 5;
level = 11;
dynamitu = 0;
_root.diff = 2;
gotoAndStop (4);
}
Symbol 265 Button
on (release) {
ss = 0;
lives = 5;
level = 21;
dynamitu = 0;
_root.diff = 3;
gotoAndStop (4);
}
Symbol 268 Button
on (release) {
ss = 0;
lives = 5;
level = 31;
_root.diff = 4;
dynamitu = 0;
gotoAndStop (4);
}
Symbol 271 Button
on (release) {
_root.sendScore();
gotoAndPlay (12);
}
Symbol 278 Button
on (release) {
gotoAndStop (25);
}
Symbol 281 Button
on (release) {
ss = 0;
lives = 5;
level = 1;
dynamitu = 0;
_root.diff = 5;
gotoAndStop (23);
}
Symbol 284 Button
on (release) {
gotoAndStop (2);
}