Frame 1
stop();
Instance of Symbol 34 MovieClip in Frame 1
onClipEvent (load) {
b = _root.getBytesTotal();
_root.preload_bar._xscale = 0.1;
}
onClipEvent (enterFrame) {
l = _root.getBytesLoaded();
p = (l / b) * 100;
text = Math.floor(p);
_root.preload_bar._xscale = Number(text);
text = text + "%";
if (l >= b) {
_root.gotoAndStop("init");
}
}
Instance of Symbol 40 MovieClip "fps" in Frame 1
onClipEvent (load) {
_visible = false;
frameStart = 0;
}
onClipEvent (enterFrame) {
_root.fps.text = Math.floor(1000 / (getTimer() - frameStart));
frameStart = getTimer();
}
Frame 2
function bitOR(a, b) {
var _local1 = (a & 1) | (b & 1);
var _local2 = (a >>> 1) | (b >>> 1);
return((_local2 << 1) | _local1);
}
function bitXOR(a, b) {
var _local1 = (a & 1) ^ (b & 1);
var _local2 = (a >>> 1) ^ (b >>> 1);
return((_local2 << 1) | _local1);
}
function bitAND(a, b) {
var _local1 = (a & 1) & (b & 1);
var _local2 = (a >>> 1) & (b >>> 1);
return((_local2 << 1) | _local1);
}
function addme(x, y) {
var _local1 = (x & 65535) + (y & 65535);
var _local2 = ((x >> 16) + (y >> 16)) + (_local1 >> 16);
return((_local2 << 16) | (_local1 & 65535));
}
function rhex(num) {
var _local1 = num;
str = "";
j = 0;
while (j <= 3) {
str = str + (hex_chr.charAt((_local1 >> ((j * 8) + 4)) & 15) + hex_chr.charAt((_local1 >> (j * 8)) & 15));
j++;
}
return(str);
}
function str2blks_MD5(str) {
var _local1 = str;
nblk = ((_local1.length + 8) >> 6) + 1;
blks = new Array(nblk * 16);
i = 0;
while (i < (nblk * 16)) {
blks[i] = 0;
i++;
}
i = 0;
while (i < _local1.length) {
blks[i >> 2] = blks[i >> 2] | (_local1.charCodeAt(i) << ((((_local1.length * 8) + i) % 4) * 8));
i++;
}
blks[i >> 2] = blks[i >> 2] | (128 << ((((_local1.length * 8) + i) % 4) * 8));
var _local2 = _local1.length * 8;
blks[(nblk * 16) - 2] = _local2 & 255;
blks[(nblk * 16) - 2] = blks[(nblk * 16) - 2] | (((_local2 >>> 8) & 255) << 8);
blks[(nblk * 16) - 2] = blks[(nblk * 16) - 2] | (((_local2 >>> 16) & 255) << 16);
blks[(nblk * 16) - 2] = blks[(nblk * 16) - 2] | (((_local2 >>> 24) & 255) << 24);
return(blks);
}
function rol(num, cnt) {
return((num << cnt) | (num >>> (32 - cnt)));
}
function cmn(q, a, b, x, s, t) {
return(addme(rol(addme(addme(a, q), addme(x, t)), s), b));
}
function ff(a, b, c, d, x, s, t) {
var _local1 = b;
return(cmn(bitOR(bitAND(_local1, c), bitAND(~_local1, d)), a, _local1, x, s, t));
}
function gg(a, b, c, d, x, s, t) {
return(cmn(bitOR(bitAND(b, d), bitAND(c, ~d)), a, b, x, s, t));
}
function hh(a, b, c, d, x, s, t) {
return(cmn(bitXOR(bitXOR(b, c), d), a, b, x, s, t));
}
function ii(a, b, c, d, x, s, t) {
return(cmn(bitXOR(c, bitOR(b, ~d)), a, b, x, s, t));
}
function calcMD5(str) {
x = str2blks_MD5(str);
a = 1732584193 /* 0x67452301 */;
b = -271733879;
c = -1732584194;
d = 271733878 /* 0x10325476 */;
var _local1;
i = 0;
while (i < x.length) {
olda = a;
oldb = b;
oldc = c;
oldd = d;
_local1 = 0;
a = ff(a, b, c, d, x[i + 0], 7, -680876936);
d = ff(d, a, b, c, x[i + 1], 12, -389564586);
c = ff(c, d, a, b, x[i + 2], 17, 606105819);
b = ff(b, c, d, a, x[i + 3], 22, -1044525330);
a = ff(a, b, c, d, x[i + 4], 7, -176418897);
d = ff(d, a, b, c, x[i + 5], 12, 1200080426);
c = ff(c, d, a, b, x[i + 6], 17, -1473231341);
b = ff(b, c, d, a, x[i + 7], 22, -45705983);
a = ff(a, b, c, d, x[i + 8], 7, 1770035416);
d = ff(d, a, b, c, x[i + 9], 12, -1958414417);
c = ff(c, d, a, b, x[i + 10], 17, -42063);
b = ff(b, c, d, a, x[i + 11], 22, -1990404162);
a = ff(a, b, c, d, x[i + 12], 7, 1804603682);
d = ff(d, a, b, c, x[i + 13], 12, -40341101);
c = ff(c, d, a, b, x[i + 14], 17, -1502002290);
b = ff(b, c, d, a, x[i + 15], 22, 1236535329);
a = gg(a, b, c, d, x[i + 1], 5, -165796510);
d = gg(d, a, b, c, x[i + 6], 9, -1069501632);
c = gg(c, d, a, b, x[i + 11], 14, 643717713);
b = gg(b, c, d, a, x[i + 0], 20, -373897302);
a = gg(a, b, c, d, x[i + 5], 5, -701558691);
d = gg(d, a, b, c, x[i + 10], 9, 38016083);
c = gg(c, d, a, b, x[i + 15], 14, -660478335);
b = gg(b, c, d, a, x[i + 4], 20, -405537848);
a = gg(a, b, c, d, x[i + 9], 5, 568446438);
d = gg(d, a, b, c, x[i + 14], 9, -1019803690);
c = gg(c, d, a, b, x[i + 3], 14, -187363961);
b = gg(b, c, d, a, x[i + 8], 20, 1163531501);
a = gg(a, b, c, d, x[i + 13], 5, -1444681467);
d = gg(d, a, b, c, x[i + 2], 9, -51403784);
c = gg(c, d, a, b, x[i + 7], 14, 1735328473);
b = gg(b, c, d, a, x[i + 12], 20, -1926607734);
a = hh(a, b, c, d, x[i + 5], 4, -378558);
d = hh(d, a, b, c, x[i + 8], 11, -2022574463);
c = hh(c, d, a, b, x[i + 11], 16, 1839030562);
b = hh(b, c, d, a, x[i + 14], 23, -35309556);
a = hh(a, b, c, d, x[i + 1], 4, -1530992060);
d = hh(d, a, b, c, x[i + 4], 11, 1272893353);
c = hh(c, d, a, b, x[i + 7], 16, -155497632);
b = hh(b, c, d, a, x[i + 10], 23, -1094730640);
a = hh(a, b, c, d, x[i + 13], 4, 681279174);
d = hh(d, a, b, c, x[i + 0], 11, -358537222);
c = hh(c, d, a, b, x[i + 3], 16, -722521979);
b = hh(b, c, d, a, x[i + 6], 23, 76029189);
a = hh(a, b, c, d, x[i + 9], 4, -640364487);
d = hh(d, a, b, c, x[i + 12], 11, -421815835);
c = hh(c, d, a, b, x[i + 15], 16, 530742520);
b = hh(b, c, d, a, x[i + 2], 23, -995338651);
a = ii(a, b, c, d, x[i + 0], 6, -198630844);
d = ii(d, a, b, c, x[i + 7], 10, 1126891415);
c = ii(c, d, a, b, x[i + 14], 15, -1416354905);
b = ii(b, c, d, a, x[i + 5], 21, -57434055);
a = ii(a, b, c, d, x[i + 12], 6, 1700485571);
d = ii(d, a, b, c, x[i + 3], 10, -1894986606);
c = ii(c, d, a, b, x[i + 10], 15, -1051523);
b = ii(b, c, d, a, x[i + 1], 21, -2054922799);
a = ii(a, b, c, d, x[i + 8], 6, 1873313359);
d = ii(d, a, b, c, x[i + 15], 10, -30611744);
c = ii(c, d, a, b, x[i + 6], 15, -1560198380);
b = ii(b, c, d, a, x[i + 13], 21, 1309151649);
a = ii(a, b, c, d, x[i + 4], 6, -145523070);
d = ii(d, a, b, c, x[i + 11], 10, -1120210379);
c = ii(c, d, a, b, x[i + 2], 15, 718787259);
b = ii(b, c, d, a, x[i + 9], 21, -343485551);
a = addme(a, olda);
b = addme(b, oldb);
c = addme(c, oldc);
d = addme(d, oldd);
i = i + 16;
}
return(((rhex(a) + rhex(b)) + rhex(c)) + rhex(d));
}
function myRandom_i(start, end) {
return(start + Math.floor(Math.random() * ((end + 1) - start)));
}
function myRandom_d(start, end) {
return(start + (Math.random() * (end - start)));
}
function init() {
scores = 0;
spoints = 0;
level = 1;
initBoard();
hideParentTiles();
ignoreSound = 0;
ignoreFX = 0;
slides._x = 444;
slides._y = 88;
}
function initLevel() {
mostLaunched = 0;
mostLaunchedTmp = 0;
fuseBurned = 0;
fuseBurnedTmp = 0;
ignoreUser = 0;
hideParentTiles();
clearMovies();
initRockets();
initFire();
launch = startLaunch + level;
moveTiles = 1;
fireTiles = 0;
burned = 0;
uptime = 0;
fallingTile = 1;
setTimer(MaxLevelTime);
}
function mainProcess() {
if (fireTiles) {
ignoreUser = 1;
_root.babulya.gotoAndPlay(2);
_root.rubilnik.gotoAndPlay(2);
processFireTiles();
} else if (version == 2) {
processMoveTopTiles();
}
if (moveTiles) {
if (version == 1) {
processMoveTiles();
} else if (version == 2) {
processMoveTiles2();
}
}
if ((version == 1) || (uptime)) {
launchTimer();
}
if (version == 2) {
tailHandler();
}
}
function setTimer(ltime) {
if ((version == 1) || (uptime)) {
launchTime = ltime;
var _local2 = Math.floor(launchTime / 60);
var _local1 = launchTime % 60;
_local1 = ((_local1 < 10) ? ("0" add _local1) : (_local1));
timer = (_local2 + ":") + _local1;
var _local3 = new Date();
lastTime = _local3.getTime();
} else {
timer = "Infinite";
}
}
function launchTimer() {
var _local3 = _root;
var now = new Date();
var diff = (Math.floor(now.getTime() / 1000) - Math.floor(lastTime / 1000));
launchTime = launchTime - diff;
var min = Math.floor(launchTime / 60);
var _local1 = launchTime % 60;
_local1 = ((_local1 < 10) ? ("0" add _local1) : (_local1));
timer = (min + ":") + _local1;
if (diff && (version == 2)) {
if (scores > 0) {
scores = scores - upTimePoints;
}
var _local2 = "points_" add indent;
duplicateMovieClip ("points", _local2, indent++);
_local3[_local2]._y = _local3.timeval._y;
_local3[_local2]._x = _local3.timeval._x + 40;
_local3[_local2].text.number = -upTimePoints;
}
lastTime = now.getTime();
if (launchTime < 1) {
timer = "0:00";
gotoAndStop ("gameover");
}
}
function clearMovies() {
var _local3 = _root;
var _local2;
var _local1;
_local2 = 1;
while (_local2 <= maxVert) {
if (typeof(_local3["rocket_" + _local2]) != "undefined") {
removeMovieClip("rocket_" + _local2);
}
if (typeof(_local3["fire_" + _local2]) != "undefined") {
removeMovieClip("fire_" + _local2);
}
_local1 = 1;
while (_local1 <= maxHoriz) {
if (typeof(_local3[("tile_" + _local2) + _local1]) != "undefined") {
removeMovieClip(("tile_" + _local2) + _local1);
}
_local1++;
}
_local2++;
}
_local1 = 1;
while (_local1 <= maxHoriz) {
if (typeof(_local3["tile_0" + _local1]) != "undefined") {
removeMovieClip("tile_0" + _local1);
}
_local1++;
}
}
function hideMovies() {
var _local3 = _root;
var _local2;
var _local1;
_local2 = 1;
while (_local2 <= maxVert) {
if (typeof(_local3["rocket_" + _local2]) != "undefined") {
_local3["rocket_" + _local2]._visible = false;
}
if (typeof(_local3["fire_" + _local2]) != "undefined") {
_local3["fire_" + _local2]._visible = false;
}
_local1 = 1;
while (_local1 <= maxHoriz) {
if (typeof(_local3[("tile_" + _local2) + _local1]) != "undefined") {
_local3[("tile_" + _local2) + _local1]._visible = false;
}
_local1++;
}
_local2++;
}
_local1 = 1;
while (_local1 <= maxHoriz) {
if (typeof(_local3["tile_0" + _local1]) != "undefined") {
_local3["tile_0" + _local1]._visible = false;
}
_local1++;
}
}
function showMovies() {
var _local3 = _root;
var _local2;
var _local1;
_local2 = 1;
while (_local2 <= maxVert) {
if (typeof(_local3["rocket_" + _local2]) != "undefined") {
_local3["rocket_" + _local2]._visible = true;
}
if (typeof(_local3["fire_" + _local2]) != "undefined") {
_local3["fire_" + _local2]._visible = true;
}
_local1 = 1;
while (_local1 <= maxHoriz) {
if (typeof(_local3[("tile_" + _local2) + _local1]) != "undefined") {
_local3[("tile_" + _local2) + _local1]._visible = true;
}
_local1++;
}
_local2++;
}
_local1 = 1;
while (_local1 <= maxHoriz) {
if (typeof(_local3["tile_0" + _local1]) != "undefined") {
_local3["tile_0" + _local1]._visible = true;
}
_local1++;
}
}
function initBoard() {
var _local3 = 0;
var _local1 = 0;
var _local2;
var width = Math.floor(_root.bl1._width);
var height = Math.floor(_root.bl1._height);
var startX = Math.floor((775 - (maxHoriz * width)) / 2);
var y = Math.floor((645 - (maxVert * height)) / 2);
while ((_local3++) < maxVert) {
_local2 = startX;
_local1 = 0;
Coords[_local3 - 1] = new Array(maxHoriz);
while ((_local1++) < maxHoriz) {
Coords[_local3 - 1][_local1 - 1] = new Array(_local2, y);
_local2 = _local2 + height;
}
y = y + width;
}
}
function hideParentTiles() {
var _local2 = _root;
var i;
var _local1;
_local1 = 1;
while (_local1 <= 4) {
_local2["bl" + _local1]._visible = false;
_local2["bl" + _local1].gotoAndStop(1);
_local1++;
}
_local2.rocket._visible = false;
_local2.fire._visible = false;
_local2.points._visible = false;
if (version != 2) {
_local2.btn_more_tiles._visible = false;
}
}
function initRockets() {
var j;
j = 1;
while (j <= maxVert) {
var rocket = ("rocket_" + j);
if (typeof(_root[rocket]) == "undefined") {
duplicateMovieClip ("rocket", rocket, indent++);
eval (rocket + ".body").gotoAndStop("normal");
_root[rocket].gotoAndPlay("start");
_root[rocket].num = j;
_root[rocket].fired = 0;
_root[rocket]._x = Coords[j - 1][maxHoriz - 1][0] + 240;
_root[rocket]._y = Coords[j - 1][maxHoriz - 1][1] - 2;
}
j++;
}
}
function initFire() {
var _local3 = _root;
var _local1;
_local1 = 1;
while (_local1 <= maxVert) {
var _local2 = "fire_" + _local1;
if (typeof(_local3[_local2]) == "undefined") {
duplicateMovieClip ("fire", _local2, indent++);
_local3[_local2]._x = Coords[_local1 - 1][0][0] - 25;
_local3[_local2]._y = Coords[_local1 - 1][0][1] + 10;
}
_local1++;
}
}
function processMoveTiles() {
var _local1 = _root;
var _local3;
var _local2;
var tile;
var enaugh = 1;
_local2 = 1;
while (_local2 <= maxHoriz) {
_local3 = 1;
while (_local3 < maxVert) {
if ((typeof(_local1[("tile_" + _local3) + _local2]) != "undefined") && (typeof(_local1[("tile_" + (_local3 + 1)) + _local2]) == "undefined")) {
enaugh = 0;
_local1[("tile_" + _local3) + _local2].fallDown = 1;
}
_local3++;
}
_local2++;
}
_local2 = 1;
while (_local2 <= maxHoriz) {
_local3 = 1;
while (_local3 < maxVert) {
tile = ("tile_" + _local3) + _local2;
if ((typeof(_local1[tile]) != "undefined") && (_local1[tile].fallDown)) {
_local1[tile].fallDown = 0;
_local1[tile]._x = Coords[_local3][_local2 - 1][0];
_local1[tile]._y = Coords[_local3][_local2 - 1][1];
_local1[tile].i = _local3 + 1;
_local1[tile].j = _local2;
_local1[tile]._name = ("tile_" + (_local3 + 1)) + _local2;
}
_local3++;
}
_local2++;
}
_local2 = 1;
while (_local2 <= maxHoriz) {
var num = ((indent % 10) ? (myRandom_i(2, 3)) : (myRandom_i(1, 4)));
var parent = ("bl" + num);
var child = ("tile_1" + _local2);
if (typeof(_local1[child]) == "undefined") {
enaugh = 0;
duplicateMovieClip (parent, child, indent++);
var fr = myRandom_i(0, (Math.floor(_local1[child]._totalframes / 2) / 3) - 1);
_local1[child].gotoAndStop((fr * 3) + 1);
_local1[child]._x = Coords[0][_local2 - 1][0];
_local1[child]._y = Coords[0][_local2 - 1][1];
_local1[child]._alpha = 100;
_local1[child].colored = 0;
_local1[child].fallDown = 0;
_local1[child].i = 1;
_local1[child].j = _local2;
_local1[child].num = num;
fr = ((fr < 1) ? ((Math.floor(_local1[child]._totalframes / 2) / 3) - 1) : (fr - 1));
_local1[child].bits = bitMask[num - 1][fr];
}
_local2++;
}
if (enaugh) {
moveTiles = 0;
if (!fireTiles) {
drawTiles();
}
if (!launch) {
var min = Math.floor((MaxLevelTime - launchTime) / 60);
var sec = ((MaxLevelTime - launchTime) % 60);
freeTime = ((min * 60) + sec) * _local1.timeBonus;
sec = ((sec < 10) ? ("0" add sec) : (sec));
gameTime = (min + ":") + sec;
gotoAndStop ("nextLevel");
}
}
}
function processMoveTiles2() {
var _local1 = _root;
var _local3;
var _local2;
var k;
var tile;
var enaugh = 1;
var columnFill = 0;
var columns = 0;
_local2 = 1;
while (_local2 <= maxHoriz) {
columns = 1;
_local3 = 1;
while (_local3 < maxVert) {
if (typeof(_local1[("tile_" + _local3) + _local2]) != "undefined") {
if (typeof(_local1[("tile_" + (_local3 + 1)) + _local2]) == "undefined") {
enaugh = 0;
_local1[("tile_" + _local3) + _local2].fallDown = 1;
}
columns++;
}
_local3++;
}
if (columns > columnFill) {
columnFill = columns;
}
_local2++;
}
_local2 = 1;
while (_local2 <= maxHoriz) {
_local3 = 1;
while (_local3 < maxVert) {
tile = ("tile_" + _local3) + _local2;
if ((typeof(_local1[tile]) != "undefined") && (_local1[tile].fallDown)) {
_local1[tile].fallDown = 0;
_local1[tile]._x = Coords[_local3][_local2 - 1][0];
_local1[tile]._y = Coords[_local3][_local2 - 1][1];
_local1[tile].i = _local3 + 1;
_local1[tile].j = _local2;
_local1[tile]._name = ("tile_" + (_local3 + 1)) + _local2;
}
_local3++;
}
_local2++;
}
_local2 = 1;
while (_local2 <= maxHoriz) {
var num = ((indent % 10) ? (myRandom_i(2, 3)) : (myRandom_i(1, 4)));
var parent = ("bl" + num);
var child = ("tile_1" + _local2);
var topChild = ("tile_0" + _local2);
if (typeof(_local1[topChild]) == "undefined") {
enaugh = 0;
duplicateMovieClip (parent, topChild, indent++);
var fr = myRandom_i(0, (Math.floor(_local1[topChild]._totalframes / 2) / 3) - 1);
_local1[topChild].gotoAndStop((fr * 3) + 1);
_local1[topChild]._x = Coords[0][_local2 - 1][0];
_local1[topChild]._y = Coords[0][_local2 - 1][1] - 40;
_local1[topChild]._alpha = 20;
_local1[topChild].colored = 0;
_local1[topChild].fallDown = 0;
_local1[topChild].i = 0;
_local1[topChild].j = _local2;
_local1[topChild].num = num;
fr = ((fr < 1) ? ((Math.floor(_local1[topChild]._totalframes / 2) / 3) - 1) : (fr - 1));
_local1[topChild].bits = bitMask[num - 1][fr];
}
if ((typeof(_local1[child]) == "undefined") && (burned < (maxHoriz * startRows[(level - 1) % startRows.length]))) {
enaugh = 0;
_local1[topChild].i = 1;
_local1[topChild]._alpha = 100;
_local1[topChild]._y = Coords[0][_local2 - 1][1];
_local1[topChild]._name = "tile_1" + _local2;
burned++;
}
if (columnFill == maxVert) {
fireTiles = 1;
if (!uptime) {
uptime = 1;
setTimer(ridTime);
}
} else {
uptime = 0;
setTimer(0);
}
_local2++;
}
if (enaugh) {
moveTiles = 0;
if (!fireTiles) {
drawTiles();
}
if (!launch) {
clearMovies();
gameTime = "Infinite";
gotoAndStop ("nextLevel");
}
}
}
function processMoveTopTiles() {
var _local2 = _root;
var _local1;
_local1 = "tile_0" + fallingTile;
if (typeof(_local2[_local1]) != "undefined") {
if (_local2[_local1]._y >= Coords[0][fallingTile - 1][1]) {
if (!ignoreFX) {
droppedSound.start();
}
_local2[_local1].i = 1;
_local2[_local1]._alpha = 100;
_local2[_local1]._name = "tile_1" + fallingTile;
moveTiles = 1;
fallingTile = ((fallingTile >= maxHoriz) ? 1 : (fallingTile + 1));
} else {
_local2[_local1]._y = _local2[_local1]._y + speedArray[(level - 1) % speedArray.length];
_local2[_local1]._alpha = _local2[_local1]._alpha + 2;
}
}
}
function processFireTiles() {
var out = 1;
var i;
i = 0;
while (i < Tiles.length) {
if (fireTiles <= Tiles[i].length) {
if ((_root[Tiles[i][fireTiles - 1]].bits & RFLAG) && (_root[Tiles[i][fireTiles - 1]].j == maxHoriz)) {
ignoreUser = 1;
var rocket = ("rocket_" + _root[Tiles[i][fireTiles - 1]].i);
eval (rocket + ".body").gotoAndStop("fired");
eval (rocket).gotoAndPlay("go");
_root[rocket].fired = 1;
launch--;
if (launch < 0) {
launch = 0;
}
mostLaunchedTmp++;
scores = scores + rocketScores;
var child = ("points_" add indent);
duplicateMovieClip ("points", child, indent++);
_root[child]._y = _root[rocket]._y + 20;
_root[child]._x = _root[rocket]._x + 15;
_root[child].text.number = rocketScores;
}
colorFire(Tiles[i][fireTiles - 1]);
}
if (fireTiles <= Tiles[i].length) {
out = 0;
}
i++;
}
fireTiles++;
if (out) {
fireTiles = 0;
ignoreUser = 0;
var j;
var p = 1;
i = 0;
while (i < Tiles.length) {
j = 0;
while (j < Tiles[i].length) {
if (typeof(_root[Tiles[i][j]]) != "undefined") {
var child = ("points_" add indent);
duplicateMovieClip ("points", child, indent++);
_root[child]._y = _root[Tiles[i][j]]._y + 20;
_root[child]._x = _root[Tiles[i][j]]._x + 15;
_root[child].text.number = p * tileScores;
removeMovieClip(Tiles[i][j]);
fuseBurnedTmp++;
scores = scores + (tileScores * (p++));
}
j++;
}
i++;
}
if (mostLaunchedTmp > mostLaunched) {
mostLaunched = mostLaunchedTmp;
}
mostLaunchedTmp = 0;
if (fuseBurnedTmp > fuseBurned) {
fuseBurned = fuseBurnedTmp;
}
fuseBurnedTmp = 0;
moveTiles = 1;
if ((version == 2) && (Tiles[0].length)) {
burned = (maxHoriz * startRows[(level - 1) % startRows.length]) - maxHoriz;
uptime = 0;
setTimer(0);
Tiles = new Array();
}
}
}
function drawTiles() {
var _local3 = _root;
var _local1;
var _local2;
Tiles = new Array();
tileIndex = 0;
_local1 = 1;
while (_local1 <= maxVert) {
_local2 = 1;
while (_local2 <= maxHoriz) {
_local3[("tile_" + _local1) + _local2].colored = 0;
_local2++;
}
_local1++;
}
_local1 = 1;
while (_local1 <= maxVert) {
colorer(_local1, 1, 0);
_local1++;
}
_local1 = 1;
while (_local1 <= maxVert) {
colorer(_local1, maxHoriz, 0);
_local1++;
}
if (Tiles.length) {
_local1 = 0;
while (_local1 < Tiles.length) {
addFireTiles(_local1, _local3[Tiles[_local1][0]].i, _local3[Tiles[_local1][0]].j);
_local1++;
}
fireTiles = 1;
if (!ignoreFX) {
fireSound.start();
}
}
_local1 = 1;
while (_local1 <= maxVert) {
_local2 = 1;
while (_local2 <= maxHoriz) {
if (!_local3[("tile_" + _local1) + _local2].colored) {
colorWhite(("tile_" + _local1) + _local2);
}
_local2++;
}
_local1++;
}
}
function colorer(i, j, startTile) {
var _local1 = _root;
var _local2 = j;
if ((((i > 0) && (i <= maxVert)) && (_local2 > 0)) && (_local2 <= maxHoriz)) {
var _local3 = ("tile_" + i) + _local2;
var left = (("tile_" + i) + (_local2 - 1));
var up = (("tile_" + (i - 1)) + _local2);
var right = (("tile_" + i) + (_local2 + 1));
var down = (("tile_" + (i + 1)) + _local2);
var leftDefined = Boolean(typeof(_local1[left]) != "undefined");
var leftRight = (leftDefined ? (Boolean(_local1[left].bits & RFLAG)) : false);
var leftColored = (leftDefined ? (_local1[left].colored) : false);
var upDefined = Boolean(typeof(_local1[up]) != "undefined");
var upDown = (upDefined ? (Boolean(_local1[up].bits & DFLAG)) : false);
var upColored = (upDefined ? (_local1[up].colored) : false);
var rightDefined = Boolean(typeof(_local1[right]) != "undefined");
var rightLeft = (rightDefined ? (Boolean(_local1[right].bits & LFLAG)) : false);
var rightColored = (rightDefined ? (_local1[right].colored) : false);
var downDefined = Boolean(typeof(_local1[down]) != "undefined");
var downUp = (downDefined ? (Boolean(_local1[down].bits & UFLAG)) : false);
var downColored = (downDefined ? (_local1[down].colored) : false);
var currLeftFire = Boolean((_local2 == 1) && (_local1[_local3].bits & LFLAG));
var currRightFire = Boolean((_local2 == maxHoriz) && (_local1[_local3].bits & RFLAG));
var currLeft = Boolean((_local1[_local3].bits & LFLAG) && (leftRight));
var currUp = Boolean((_local1[_local3].bits & UFLAG) && (upDown));
var currRight = Boolean((_local1[_local3].bits & RFLAG) && (rightLeft));
var currDown = Boolean((_local1[_local3].bits & DFLAG) && (downUp));
var currColored = _local1[_local3].colored;
if (currLeftFire) {
colorYellow(_local3);
if (currRight && (rightColored != 1)) {
colorYellow(right);
colorer(i, _local2 + 1, _local3);
}
if (currDown && (downColored != 1)) {
colorYellow(down);
colorer(i + 1, _local2, _local3);
}
if (currUp && (upColored != 1)) {
colorYellow(up);
colorer(i - 1, _local2, _local3);
}
} else if (currRightFire) {
if (_local1[startTile].j == 1) {
Tiles.push(new Array());
colorLight(tileIndex++, startTile);
colorYellow(_local3);
return;
}
if (currColored != 1) {
colorRed(_local3);
}
if (currLeft && (!leftColored)) {
colorRed(left);
colorer(i, _local2 - 1, _local3);
}
if (currDown && (!downColored)) {
colorRed(down);
colorer(i + 1, _local2, _local3);
}
if (currUp && (!upColored)) {
colorRed(up);
colorer(i - 1, _local2, _local3);
}
} else if (currColored) {
if ((((!currRight) && (!currLeft)) && (!currUp)) && (!currDown)) {
colorWhite(_local3);
} else {
if (currRight && (!rightColored)) {
((currColored == 1) ? (colorYellow(right)) : (colorRed(right)));
colorer(i, _local2 + 1, startTile);
}
if (currLeft && (!leftColored)) {
((currColored == 1) ? (colorYellow(left)) : (colorRed(left)));
colorer(i, _local2 - 1, startTile);
}
if (currDown && (!downColored)) {
((currColored == 1) ? (colorYellow(down)) : (colorRed(down)));
colorer(i + 1, _local2, startTile);
}
if (currUp && (!upColored)) {
((currColored == 1) ? (colorYellow(up)) : (colorRed(up)));
colorer(i - 1, _local2, startTile);
}
}
}
}
}
function colorWhite(tile) {
_root[tile].colored = 0;
var _local2 = new Color(tile);
var _local1 = _local2.getTransform();
_local1.ra = 100;
_local1.ga = 100;
_local1.ba = 100;
_local2.setTransform(_local1);
}
function colorYellow(tile) {
_root[tile].colored = 1;
var _local2 = new Color(tile);
var _local1 = _local2.getTransform();
_local1.ra = 50;
_local1.ga = 130;
_local1.ba = 130;
_local2.setTransform(_local1);
}
function colorRed(tile) {
_root[tile].colored = 2;
var _local2 = new Color(tile);
var _local1 = _local2.getTransform();
_local1.ra = 130;
_local1.ga = 130;
_local1.ba = 50;
_local2.setTransform(_local1);
}
function colorLight(indx, tile) {
var _local3 = tile;
_root[_local3].colored = 3;
Tiles[indx].push(_local3);
var _local2 = new Color(_local3);
var _local1 = _local2.getTransform();
_local1.ra = 150;
_local1.ga = 150;
_local1.ba = 150;
_local2.setTransform(_local1);
}
function colorFire(tile) {
var _local2 = new Color(tile);
var _local1 = _local2.getTransform();
_local1.ra = 255;
_local1.ga = 255;
_local1.ba = 155;
_local2.setTransform(_local1);
}
function colorRocket(rocket, color_kind) {
var _local3 = color_kind;
var _local1 = new Array(4);
_local1[0] = new Array(50, 50, 100);
_local1[1] = new Array(100, 50, 50);
_local1[2] = new Array(50, 100, 50);
_local1[3] = new Array(100, 100, 50);
_root[rocket].colored = _local3;
var cRocket = new Color(rocket);
var _local2 = cRocket.getTransform();
_local2.ra = _local1[_local3][0];
_local2.ga = _local1[_local3][1];
_local2.ba = _local1[_local3][2];
cRocket.setTransform(_local2);
_local3 = _local3--;
}
function addFireTiles(indx, i, j) {
var _local1 = _root;
var _local2 = j;
var _local3 = i;
var curr = (("tile_" + _local3) + _local2);
var left = (("tile_" + _local3) + (_local2 - 1));
var up = (("tile_" + (_local3 - 1)) + _local2);
var right = (("tile_" + _local3) + (_local2 + 1));
var down = (("tile_" + (_local3 + 1)) + _local2);
var leftDefined = Boolean(typeof(_local1[left]) != "undefined");
var leftRight = (leftDefined ? (Boolean(_local1[left].bits & RFLAG)) : false);
var leftColored = (leftDefined ? (Boolean(_local1[left].colored == 3)) : false);
var upDefined = Boolean(typeof(_local1[up]) != "undefined");
var upDown = (upDefined ? (Boolean(_local1[up].bits & DFLAG)) : false);
var upColored = (upDefined ? (Boolean(_local1[up].colored == 3)) : false);
var rightDefined = Boolean(typeof(_local1[right]) != "undefined");
var rightLeft = (rightDefined ? (Boolean(_local1[right].bits & LFLAG)) : false);
var rightColored = (rightDefined ? (Boolean(_local1[right].colored == 3)) : false);
var downDefined = Boolean(typeof(_local1[down]) != "undefined");
var downUp = (downDefined ? (Boolean(_local1[down].bits & UFLAG)) : false);
var downColored = (downDefined ? (Boolean(_local1[down].colored == 3)) : false);
var currLeftFire = Boolean((_local2 == 1) && (_local1[curr].bits & LFLAG));
var currRightFire = Boolean((_local2 == maxHoriz) && (_local1[curr].bits & RFLAG));
var currLeft = Boolean((_local1[curr].bits & LFLAG) && (leftRight));
var currUp = Boolean((_local1[curr].bits & UFLAG) && (upDown));
var currRight = Boolean((_local1[curr].bits & RFLAG) && (rightLeft));
var currDown = Boolean((_local1[curr].bits & DFLAG) && (downUp));
var currColored = Boolean(_local1[curr].colored == 3);
if (currRight && (!rightColored)) {
colorLight(indx, right);
addFireTiles(indx, _local3, _local2 + 1);
}
if (currLeft && (!leftColored)) {
colorLight(indx, left);
addFireTiles(indx, _local3, _local2 - 1);
}
if (currDown && (!downColored)) {
colorLight(indx, down);
addFireTiles(indx, _local3 + 1, _local2);
}
if (currUp && (!upColored)) {
colorLight(indx, up);
addFireTiles(indx, _local3 - 1, _local2);
}
}
function tailHandler() {
var _local1 = _root;
if (typeof(_local1.tail) != "undefined") {
if (_local1.tail._alpha >= 30) {
_local1.tail._alpha = _local1.tail._alpha - 30;
} else {
removeMovieClip("tail");
}
}
}
function sendScores() {
var _local1 = spoints_tpl.text;
var _local3 = ((scores add _local1) add internalKeyword) add externalKeyword;
var hash = calcMD5(_local3);
var _local2 = (((((((_root.serverUrl add "&cacheKiller=") add escape(getTimer())) add "&points=") add escape(scores)) add "&spoints=") add escape(_local1)) add "&hash=") add escape(hash);
_root.loadVariables(_local2, "_root");
}
var hex_chr = "0123456789abcdef";
var Version = 1;
var jackPot = 50000;
var jackPotScores = new Array(25, 25, 25, 25, 30, 30, 30, 35, 35, 35, 50, 50, 75, 100, 150, 250, 500);
var spinTime = 5;
var sndKid = new Array("kid1", "kid2", "kid3", "kid4", "kid5", "kid6", "kid7", "kid8");
var sndLevelUp = new Array("level_up", "level_up2");
var sndStart = "start";
var sndGame = "game";
var sndRotate = "rotate";
var sndFire = "start_fire";
var sndGameOver = "game_over";
var sndNewGame = "new_game";
var sndPause = "pause";
var sndDropped = "dropped";
var sndKidEnd = "kid_end";
var sndJackPot = "jackpot";
var sndSpin = "spin";
var pointsPerSpoints = 200;
var maxHoriz = 6;
var maxVert = 9;
var startLaunch = 9;
var rocketScores = 100;
var tileScores = 10;
var countDownTime = 10;
var maxLevelTime = 120;
var ridTime = 5;
var upTimePoints = 5;
var speedArray = new Array(0.5, 0.75, 1, 1.5, 2, 2.25, 2.5, 2.75, 3);
var startRows = new Array(3, 4, 5, 6, 7, 8, 9);
var timeBonus = 25;
var kidsBonus = 500;
var pipeBonus = 50;
if (pauseUrl == undefined) {
pauseUrl = "banner_casino.swf";
}
if (pauseClickUrl == undefined) {
pauseClickUrl = "http://www.splashspot.com/search/results_banner.php?aff_id=EZ12&searchterm=casino";
}
if (scoresUrl == undefined) {
scoresUrl = "http://itpremium.com/";
}
if (serverUrl == undefined) {
serverUrl = "http://192.168.1.34/vadim/jezball/server.php?a=1";
}
if (bannerUrl == undefined) {
bannerUrl = "banner_casino.swf";
}
if (externalKeyword == undefined) {
externalKeyword = "keyword";
}
var internalKeyword = "keyword";
moreGamesUrl = "http://www.doublegames.com/?fr=balloonparkon";
var downloadURL = "http://www.doublegames.com/downloads.html?fr=balloonparkon";
var buyURL = "http://www.doublegames.com/order.html?fr=balloonparkon";
var indent;
var fireTiles;
var moveTiles;
var tileIndex;
var levelType;
var scores;
var spoints;
var launch;
var level;
var lastTime;
var launchTime;
var timer;
var difficulty;
var ignoreSound;
var mostLaunched;
var mostLaunchedTmp;
var fuseBurned;
var fuseBurnedTmp;
var lastRank;
var burned;
var fallingTile;
var uptime;
var levelUpSounds;
var kidStartSounds;
var kidSoundsCount;
var ignoreFX;
var currentSound;
var ignoreUser;
var view_btn = true;
var kidsQuantity;
var freeTime;
var totalBonus;
var LFLAG = 8;
var UFLAG = 4;
var RFLAG = 2;
var DFLAG = 1;
var bitMask = new Array(4);
bitMask[0] = new Array(15, 15);
bitMask[1] = new Array(9, 12, 6, 3);
bitMask[2] = new Array(10, 5);
bitMask[3] = new Array(11, 13, 14, 7);
var Tiles = new Array();
var Coords = new Array(maxVert);
var currentSound = new Array();
var startSound = new Sound();
startSound.attachSound(sndStart);
var bgSound = new Sound();
bgSound.attachSound(sndGame);
var rotateSound = new Sound();
rotateSound.attachSound(sndRotate);
var fireSound = new Sound();
fireSound.attachSound(sndFire);
var gameOverSound = new Sound();
gameOverSound.attachSound(sndGameOver);
var newGameSound = new Sound();
newGameSound.attachSound(sndNewGame);
var pauseSound = new Sound();
pauseSound.attachSound(sndPause);
var droppedSound = new Sound();
droppedSound.attachSound(sndDropped);
var kidEndSound = new Sound();
kidEndSound.attachSound(sndKidEnd);
var jackPotSound = new Sound();
jackPotSound.attachSound(sndJackpot);
var spinSound = new Sound();
spinSound.attachSound(sndSpin);
levelUpSounds = new Array(sndLevelUp.length);
var i = 0;
while (i < 2) {
levelUpSounds[i] = new Sound();
levelUpSounds[i].attachSound(sndLevelUp[i]);
i++;
}
kidStartSounds = new Array(sndKid.length);
kidSoundsCount = 0;
var i = 0;
while (i < sndKid.length) {
kidStartSounds[i] = new Sound();
kidStartSounds[i].attachSound(sndKid[i]);
i++;
}
stop();
Instance of Symbol 94 MovieClip in Frame 2
on (release) {
_root.gotoAndPlay("start");
}
Instance of Symbol 101 MovieClip in Frame 2
on (rollOver) {
_root.attachMovie("_hint", "_hint", _root.getNextHighestDepth());
_root._hint._x = _root._xmouse;
_root._hint._y = _root._ymouse - 30;
_root._hint.gotoAndPlay(1);
}
on (rollOut) {
if (_root._hint != undefined) {
_root._hint.removeMovieClip();
}
}
Instance of Symbol 114 MovieClip in Frame 2
on (release) {
_root.gotoAndStop("info");
}
Instance of Symbol 139 MovieClip in Frame 4
onClipEvent (load) {
var scroller = this._parent.inst_scr;
}
onClipEvent (enterFrame) {
if (mouse_down && (!this.scroller.scroller.dragging)) {
this.scroller.field.scroll = this.scroller.field.scroll - 1;
this.scroller.setPos(this.scroller.field.scroll);
}
}
Instance of Symbol 145 MovieClip in Frame 4
onClipEvent (load) {
var scroller = this._parent.inst_scr;
}
onClipEvent (enterFrame) {
if (mouse_down && (!this.scroller.scroller.dragging)) {
this.scroller.field.scroll = this.scroller.field.scroll + 1;
this.scroller.setPos(this.scroller.field.scroll);
}
}
Instance of Symbol 153 MovieClip "inst_scr" in Frame 4
onClipEvent (load) {
field = this._parent.instructions;
}
Frame 7
init();
Instance of Symbol 190 MovieClip in Frame 7
onClipEvent (load) {
var cTile = new Color(this);
var tTile = cTile.getTransform();
tTile.ra = 50;
tTile.ga = 130;
tTile.ba = 130;
cTile.setTransform(tTile);
}
Instance of Symbol 192 MovieClip in Frame 7
onClipEvent (load) {
var cTile = new Color(this);
var tTile = cTile.getTransform();
tTile.ra = 50;
tTile.ga = 130;
tTile.ba = 130;
cTile.setTransform(tTile);
}
Instance of Symbol 194 MovieClip in Frame 7
onClipEvent (load) {
var cTile = new Color(this);
var tTile = cTile.getTransform();
tTile.ra = 50;
tTile.ga = 130;
tTile.ba = 130;
cTile.setTransform(tTile);
}
Instance of Symbol 190 MovieClip in Frame 7
onClipEvent (load) {
var cTile = new Color(this);
var tTile = cTile.getTransform();
tTile.ra = 50;
tTile.ga = 130;
tTile.ba = 130;
cTile.setTransform(tTile);
}
Instance of Symbol 194 MovieClip in Frame 7
onClipEvent (load) {
var cTile = new Color(this);
var tTile = cTile.getTransform();
tTile.ra = 50;
tTile.ga = 130;
tTile.ba = 130;
cTile.setTransform(tTile);
}
Instance of Symbol 192 MovieClip in Frame 7
onClipEvent (load) {
var cTile = new Color(this);
var tTile = cTile.getTransform();
tTile.ra = 50;
tTile.ga = 130;
tTile.ba = 130;
cTile.setTransform(tTile);
}
Instance of Symbol 192 MovieClip in Frame 7
onClipEvent (load) {
var cTile = new Color(this);
var tTile = cTile.getTransform();
tTile.ra = 50;
tTile.ga = 130;
tTile.ba = 130;
cTile.setTransform(tTile);
}
Instance of Symbol 192 MovieClip in Frame 7
onClipEvent (load) {
var cTile = new Color(this);
var tTile = cTile.getTransform();
tTile.ra = 50;
tTile.ga = 130;
tTile.ba = 130;
cTile.setTransform(tTile);
}
Instance of Symbol 192 MovieClip in Frame 7
onClipEvent (load) {
var cTile = new Color(this);
var tTile = cTile.getTransform();
tTile.ra = 50;
tTile.ga = 130;
tTile.ba = 130;
cTile.setTransform(tTile);
}
Instance of Symbol 192 MovieClip in Frame 7
onClipEvent (load) {
var cTile = new Color(this);
var tTile = cTile.getTransform();
tTile.ra = 50;
tTile.ga = 130;
tTile.ba = 130;
cTile.setTransform(tTile);
}
Instance of Symbol 192 MovieClip in Frame 7
onClipEvent (load) {
var cTile = new Color(this);
var tTile = cTile.getTransform();
tTile.ra = 50;
tTile.ga = 130;
tTile.ba = 130;
cTile.setTransform(tTile);
}
Instance of Symbol 192 MovieClip in Frame 7
onClipEvent (load) {
var cTile = new Color(this);
var tTile = cTile.getTransform();
tTile.ra = 50;
tTile.ga = 130;
tTile.ba = 130;
cTile.setTransform(tTile);
}
Instance of Symbol 196 MovieClip in Frame 7
onClipEvent (load) {
var cTile = new Color(this);
var tTile = cTile.getTransform();
tTile.ra = 50;
tTile.ga = 130;
tTile.ba = 130;
cTile.setTransform(tTile);
}
Instance of Symbol 190 MovieClip in Frame 7
onClipEvent (load) {
var cTile = new Color(this);
var tTile = cTile.getTransform();
tTile.ra = 130;
tTile.ga = 130;
tTile.ba = 50;
cTile.setTransform(tTile);
}
Instance of Symbol 190 MovieClip in Frame 7
onClipEvent (load) {
var cTile = new Color(this);
var tTile = cTile.getTransform();
tTile.ra = 130;
tTile.ga = 130;
tTile.ba = 50;
cTile.setTransform(tTile);
}
Instance of Symbol 190 MovieClip in Frame 7
onClipEvent (load) {
var cTile = new Color(this);
var tTile = cTile.getTransform();
tTile.ra = 130;
tTile.ga = 130;
tTile.ba = 50;
cTile.setTransform(tTile);
}
Instance of Symbol 190 MovieClip in Frame 7
onClipEvent (load) {
var cTile = new Color(this);
var tTile = cTile.getTransform();
tTile.ra = 130;
tTile.ga = 130;
tTile.ba = 50;
cTile.setTransform(tTile);
}
Instance of Symbol 190 MovieClip in Frame 7
onClipEvent (load) {
var cTile = new Color(this);
var tTile = cTile.getTransform();
tTile.ra = 130;
tTile.ga = 130;
tTile.ba = 50;
cTile.setTransform(tTile);
}
Instance of Symbol 190 MovieClip in Frame 7
onClipEvent (load) {
var cTile = new Color(this);
var tTile = cTile.getTransform();
tTile.ra = 130;
tTile.ga = 130;
tTile.ba = 50;
cTile.setTransform(tTile);
}
Instance of Symbol 190 MovieClip in Frame 7
onClipEvent (load) {
var cTile = new Color(this);
var tTile = cTile.getTransform();
tTile.ra = 130;
tTile.ga = 130;
tTile.ba = 50;
cTile.setTransform(tTile);
}
Instance of Symbol 190 MovieClip in Frame 7
onClipEvent (load) {
var cTile = new Color(this);
var tTile = cTile.getTransform();
tTile.ra = 130;
tTile.ga = 130;
tTile.ba = 50;
cTile.setTransform(tTile);
}
Instance of Symbol 190 MovieClip in Frame 7
onClipEvent (load) {
var cTile = new Color(this);
var tTile = cTile.getTransform();
tTile.ra = 130;
tTile.ga = 130;
tTile.ba = 50;
cTile.setTransform(tTile);
}
Frame 8
initLevel();
Frame 13
btn_more_tiles._visible = false;
mainProcess();
Frame 14
gotoAndPlay ("main");
Frame 15
gameOver_wnd.game_over_txt.text = ("Your score is " + _root.scores) + "!";
gameOver_wnd.swapDepths(9999);
Instance of Symbol 297 MovieClip "gameOver_wnd" in Frame 15
onClipEvent (load) {
_visible = true;
}
Instance of Symbol 322 MovieClip "level_up_wnd" in Frame 16
onClipEvent (load) {
this.gameTime.text = (((_root.gameTime + " * ") + _root.timeBonus) + " = ") + _root.freeTime;
this.mostLaunched.text = (((_root.mostLaunched + " * ") + _root.kidsBonus) + " = ") + (_root.mostLaunched * _root.kidsBonus);
this.fuseBurned.text = (((_root.fuseBurned + " * ") + _root.pipeBonus) + " = ") + (_root.fuseBurned * _root.pipeBonus);
this.totalBonus.text = (_root.freeTime + (_root.mostLaunched * _root.kidsBonus)) + (_root.fuseBurned * _root.pipeBonus);
_root.totalBonus = Number(this.totalBonus.text);
_visible = true;
this.swapDepths(9999);
}
Frame 17
loadMovie (pauseUrl, "_root.banner");
Instance of Symbol 346 MovieClip "new_gamer_wnd" in Frame 18
onClipEvent (load) {
_visible = true;
this.swapDepths(1006);
}
Symbol 14 MovieClip [_hint] Frame 7
stop();
Symbol 17 MovieClip Frame 1
stop();
Symbol 20 MovieClip Frame 1
stop();
Symbol 21 MovieClip [kid] Frame 1
gotoAndStop(random(3) + 2);
Symbol 21 MovieClip [kid] Frame 2
stop();
Symbol 21 MovieClip [kid] Frame 3
stop();
Symbol 46 MovieClip Frame 1
stop();
Symbol 49 MovieClip Frame 1
stop();
Symbol 51 MovieClip Frame 1
stop();
Symbol 55 MovieClip Frame 1
stop();
Symbol 58 MovieClip Frame 1
stop();
Symbol 59 MovieClip Frame 1
stop();
Symbol 64 Button
on (release) {
getURL (_root.buyURL, _blank);
}
Symbol 66 MovieClip Frame 1
stop();
Symbol 68 Button
on (release) {
getURL (_root.downloadURL, _blank);
}
Symbol 70 MovieClip Frame 1
stop();
Symbol 76 MovieClip Frame 1
stop();
Symbol 81 MovieClip Frame 1
stop();
Symbol 85 MovieClip Frame 1
stop();
Symbol 90 Button
on (release) {
getURL (_root.moreGamesUrl, _blank);
}
Symbol 94 MovieClip Frame 1
stop();
Symbol 97 MovieClip Frame 1
stop();
Symbol 101 MovieClip Frame 1
stop();
Symbol 105 Button
on (release) {
getURL (_root.moreGamesUrl, _blank);
}
Symbol 107 MovieClip Frame 1
stop();
Symbol 110 MovieClip Frame 1
stop();
Symbol 114 MovieClip Frame 1
stop();
Symbol 138 Button
on (press) {
_root.playSound("snd_click");
mouse_down = true;
}
on (release, releaseOutside) {
mouse_down = false;
}
Symbol 144 Button
on (press) {
_root.playSound("snd_click");
mouse_down = true;
}
on (release, releaseOutside) {
mouse_down = false;
}
Symbol 151 Button
on (press) {
dragging = true;
}
on (release, releaseOutside) {
dragging = false;
}
Symbol 153 MovieClip Frame 1
function drag() {
if ((_ymouse > line._y) && (_ymouse < (line._y + line._height))) {
scroller._y = _ymouse;
var _local1 = (_ymouse - line._y) / line._height;
field.scroll = int(_local1 * field.maxscroll);
if (field.scroll >= field.maxscroll) {
field.scroll = field.maxscroll;
}
} else if (_ymouse <= line._y) {
setPos(1);
} else if (_ymouse >= (line._y + line._height)) {
setPos(field.maxscroll);
}
}
function setPos(num) {
var _local2 = num;
var _local1 = ((((_local2 == 1) ? 0 : (_local2)) * line._height) / field.maxscroll) + line._y;
scroller._y = _local1;
field.scroll = _local2;
}
function init() {
if (field.scroll == field.maxscroll) {
scroller._visible = false;
} else {
scroller._visible = true;
}
}
Instance of Symbol 152 MovieClip "scroller" in Symbol 153 MovieClip Frame 1
onClipEvent (mouseMove) {
if (dragging) {
this._parent.drag();
updateAfterEvent(mouseMove);
}
}
Symbol 167 Button
on (release) {
_root.settings.data.hiScoreNames[_root.num] = _root["hiScores_str_" add _root.num].name_txt.text;
_root.gotoAndStop("init");
}
Symbol 200 MovieClip Frame 1
stop();
Symbol 200 MovieClip Frame 40
stop();
Symbol 206 MovieClip Frame 1
stop();
Symbol 206 MovieClip Frame 40
stop();
Symbol 210 Button
on (press) {
if (_root.ignoreUser == 1) {
return(undefined);
}
if (!_root.ignoreFX) {
_root.rotateSound.start();
}
if (_root.version == 2) {
return(undefined);
}
if ((_currentframe - 1) % 3) {
return(undefined);
}
if (Key.isDown(32)) {
var go = ((_currentframe < 2) ? (Math.floor(_totalframes / 2) + 2) : ((_totalframes - _currentframe) + 2));
var offset = (((((_currentframe - 1) / 3) + 2) >= _root.bitMask[num - 1].length) ? ((((_currentframe - 1) / 3) + 2) - _root.bitMask[num - 1].length) : (((_currentframe - 1) / 3) + 2));
bits = _root.bitMask[num - 1][offset];
gotoAndPlay(go);
} else {
bits = _root.bitMask[num - 1][(_currentframe - 1) / 3];
gotoAndPlay(_currentframe + 1);
}
if (i && (j)) {
_root.drawTiles();
}
}
on (release) {
if (_root.ignoreUser == 1) {
return(undefined);
}
if (_root.version == 1) {
return(undefined);
}
if ((_currentframe - 1) % 3) {
return(undefined);
}
if (dragginTile) {
dragginTile = 0;
return(undefined);
}
if (Key.isDown(32)) {
var go = ((_currentframe < 2) ? (Math.floor(_totalframes / 2) + 2) : ((_totalframes - _currentframe) + 2));
var offset = (((((_currentframe - 1) / 3) + 2) >= _root.bitMask[num - 1].length) ? ((((_currentframe - 1) / 3) + 2) - _root.bitMask[num - 1].length) : (((_currentframe - 1) / 3) + 2));
bits = _root.bitMask[num - 1][offset];
gotoAndPlay(go);
} else {
bits = _root.bitMask[num - 1][(_currentframe - 1) / 3];
gotoAndPlay(_currentframe + 1);
}
if (i && (j)) {
_root.drawTiles();
}
}
on (dragOut) {
if (_root.ignoreUser == 1) {
return(undefined);
}
if (((_root.version == 1) || (!i)) || (!j)) {
return(undefined);
}
dragginTile = 1;
if ((_root._xmouse > _root.Coords[i - 1][j][0]) && (j < _root.maxHoriz)) {
if (typeof(_root[("tile_" + i) + (j + 1)]) == "undefined") {
duplicateMovieClip ("_root." + _name, "tail", _root.indent++);
_root.tail.gotoAndStop(_currentframe);
_root.tail._alpha = 30;
j++;
_x = _root.Coords[i - 1][j - 1][0];
_y = _root.Coords[i - 1][j - 1][1];
_name = (("tile_" + i) + j);
}
}
if ((_root._xmouse < _root.Coords[i - 1][j - 1][0]) && (j > 1)) {
if (typeof(_root[("tile_" + i) + (j - 1)]) == "undefined") {
duplicateMovieClip ("_root." + _name, "tail", _root.indent++);
_root.tail.gotoAndStop(_currentframe);
_root.tail._alpha = 30;
j--;
_x = _root.Coords[i - 1][j - 1][0];
_y = _root.Coords[i - 1][j - 1][1];
_name = (("tile_" + i) + j);
}
}
_root.moveTiles = 1;
}
on (releaseOutside) {
dragginTile = 0;
}
Symbol 211 MovieClip Frame 1
stop();
Symbol 211 MovieClip Frame 4
stop();
Symbol 211 MovieClip Frame 7
stop();
Symbol 211 MovieClip Frame 10
stop();
Symbol 211 MovieClip Frame 13
gotoAndStop (1);
Symbol 211 MovieClip Frame 16
gotoAndStop (10);
Symbol 211 MovieClip Frame 19
gotoAndStop (7);
Symbol 211 MovieClip Frame 22
gotoAndStop (4);
Symbol 211 MovieClip Frame 25
gotoAndStop (1);
Symbol 213 MovieClip Frame 1
stop();
Symbol 213 MovieClip Frame 4
stop();
Symbol 213 MovieClip Frame 7
gotoAndStop (1);
Symbol 213 MovieClip Frame 10
gotoAndStop (4);
Symbol 213 MovieClip Frame 13
gotoAndStop (1);
Symbol 215 MovieClip Frame 1
stop();
Symbol 215 MovieClip Frame 4
stop();
Symbol 215 MovieClip Frame 7
stop();
Symbol 215 MovieClip Frame 10
stop();
Symbol 215 MovieClip Frame 13
gotoAndStop (1);
Symbol 215 MovieClip Frame 16
gotoAndStop (10);
Symbol 215 MovieClip Frame 19
gotoAndStop (7);
Symbol 215 MovieClip Frame 22
gotoAndStop (4);
Symbol 215 MovieClip Frame 25
gotoAndStop (1);
Symbol 217 MovieClip Frame 1
stop();
Symbol 217 MovieClip Frame 4
gotoAndStop (1);
Symbol 217 MovieClip Frame 7
gotoAndStop (1);
Symbol 238 MovieClip Frame 1
stop();
Symbol 238 MovieClip Frame 2
if (!_root.ignoreFX) {
_root.kidStartSounds[(_root.kidSoundsCount++) % _root.kidStartSounds.length].start();
}
Symbol 238 MovieClip Frame 14
kids.kid.gotoAndStop(2);
Symbol 238 MovieClip Frame 20
_root.ignoreUser = 0;
Symbol 238 MovieClip Frame 33
if (!_root.ignoreFX) {
_root.kidEndSound.start();
}
Symbol 241 MovieClip Frame 20
this.removeMovieClip();
Symbol 244 MovieClip Frame 20
this.removeMovieClip();
Symbol 253 Button
on (release) {
_root.gotoAndStop("newGame");
}
Symbol 259 Button
on (rollOver) {
_root.attachMovie("_hint", "_hint", 11111);
_root._hint._x = _root._xmouse + 45;
_root._hint._y = _root._ymouse - 15;
_root._hint.gotoAndPlay(1);
}
on (rollOut) {
if (_root._hint != undefined) {
_root._hint.removeMovieClip();
}
}
Symbol 265 Button
on (release) {
if (_root.ignoreFX) {
_root.ignoreFX = 0;
this.gotoAndStop("on");
} else {
_root.ignoreFX = 1;
this.gotoAndStop("off");
}
}
Symbol 267 MovieClip Frame 1
stop();
Symbol 270 Button
on (rollOver) {
_root.attachMovie("_hint", "_hint", 11111);
_root._hint._x = _root._xmouse + 50;
_root._hint._y = _root._ymouse - 15;
_root._hint.gotoAndPlay(1);
}
on (rollOut) {
if (_root._hint != undefined) {
_root._hint.removeMovieClip();
}
}
Symbol 272 MovieClip Frame 1
stop();
Instance of Symbol 267 MovieClip in Symbol 273 MovieClip Frame 1
onClipEvent (load) {
if (_root.ignoreFX == 1) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 272 MovieClip in Symbol 273 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(2);
}
Symbol 296 Button
on (release) {
_root.gotoAndStop("init");
_root.clearMovies();
_root.gameOver_wnd._visible = false;
}
Symbol 318 Button
on (release) {
stopAllSounds();
_root.clearMovies();
_root.level++;
if (_root.level <= 3) {
_root.gotoAndPlay("level");
_root.scores = _root.scores + _root.totalBonus;
trace("_root.totalBonus=" + _root.totalBonus);
_root.scores.text = Number(_root.scores.text) + _root.totalBonus;
} else {
_root.gotoAndStop("gameOver");
}
_root.level_up_wnd._visible = false;
}
Symbol 333 Button
on (release) {
_root.clearMovies();
_root.gotoAndPlay("init");
stopAllSounds();
_root.new_gamer_wnd._visible = false;
}
Symbol 344 Button
on (release) {
var now = new Date();
_root.lastTime = now.getTime();
_root.gotoAndPlay("main");
_root.hideParentTiles();
_root.new_gamer_wnd._visible = false;
}