Frame 1
function round2(num) {
return(Math.round(num * 100) / 100);
}
copyright = "Copyright (c) 2005-2006 by Enkord Ltd.";
hint1_0 = "Make column or row of three|or more pieces of the same type";
hint1_1 = "To break blocks make a match near it";
hint1_2 = "Now break all blocks to complete level!";
hint3_0 = "This is a bonus!|To activate bonus make|a match near it";
hint4_0 = "To break glass make|a match over it";
hint6_0 = "This piece locked! You can not move it!";
hint7_0 = "This is a key! Make a match with key|to remove locks of the same type!";
completed = "LEVEL COMPLETE";
paused1 = "Game paused...";
paused2 = "Press space to continue";
gameover = "Time up! GAME OVER...";
p_button = "Play";
pn_button = "Play now";
pa_button = "Play again";
c_button = "Continue";
fdl_button = "Free download";
gfv_button = "Get full version";
menu_txt1 = "CLAYSIDE FULL";
menu_txt2 = "<b><p></p> - fullscreen gameplay<p></p> - over 100 levels and 2 modes<p></p> - uncover hidden Relics</b>";
menu_txt3 = "CLAYSIDE WEB";
menu_txt4 = "<b>Underwater adventures in <p></p>long-lost mysterios Atlantis</b>";
sound_txt = "sound";
music_txt = "music";
hints_txt = "Hints";
scr = "Your score:";
nam = "Your name here";
submit = "submit";
loading = "loading";
level = "LEVEL";
congratualations = "CONGRATULATIONS!";
complete_txt1 = "<b>You have completed web version <p></p>of the game BUT...<p></p>Adventure is not over yet!</b>";
complete_txt2 = "<b>Are you skilful enough to pass through the city<p></p>of Clayside and all its districts and outskirts? Download your FREE trial of <p></p>full version and find out!<p></p> - Enchances graphics and special effects<p></p> - Over 150 spectacular levels<p></p> - Over 35 reliable powerups<p></p> - Additional bonus levels<p></p> - Exciting twists to conventional matching game interfaces<p></p> - Full screen gameplay<p></p> - Unlimited playtime";
complete_txt3 = "Replay the web version on higher";
complete_txt4 = "difficulty to get higher score";
complete_txt5 = "CLAYSIDE";
complete_txt6 = "full version";
game_over = "GAME OVER";
try_full_version = "TRY FULL VERSION";
pause1_txt1 = "Full version offers the best possibilities to develop the house of your dreams<p></p>- Much more bonuses and powerups: Magnets, Rockets, Lightnings, Bombs, Fire Walls, etc...<p></p> - Different first-rate amenities for your house";
pause2_txt1 = "Full version offers you:<p></p> - Many various outskirts and districts for passing through<p></p>- New enthralling puzzles<p></p> - Art and music which pull you into the exciting setting";
stop();
_focusrect = false;
Stage.showMenu = false;
Stage.width = 480;
Stage.height = 360;
Stage.scaleMode = "noScale";
preload_logo_mc.onPress = function () {
getURL (rootURL, "_blank");
};
percent_mc._xscale = 0;
var to = _root.getBytesTotal();
var prevLo = 0;
total_txt.text = round2(to / 1024).toString() + " KB";
ii = setInterval(function () {
var _local2 = _root.getBytesLoaded();
var _local4 = round2((_local2 - prevLo) / 64);
speed_txt.text = _local4.toString() + " Kb/s";
loaded_txt.text = Math.round(_local2 / 1024).toString() + " KB";
var _local3 = Math.round((_local2 / to) * 100);
percent_txt.text = _local3 + " %";
percent_mc._xscale = _local3;
prevLo = _local2;
if (_local2 == to) {
clearInterval(ii);
gotoAndPlay ("load");
}
}, 500);
Frame 2
if (this.getBytesLoaded() < this.getBytesTotal()) {
gotoAndPlay ("load");
}
Frame 3
function adjustScore(value) {
_root.score = _root.score + value;
if (_root.score < 0) {
_root.score = 0;
}
}
function togglePause() {
if (paused) {
message.gotoAndPlay("unpaused");
} else {
message.gotoAndPlay("paused");
}
togglePauseSilent();
}
function togglePauseSilent() {
paused = !paused;
}
function getEncodedValue(v, key) {
var _local1 = (v ^ key).toString();
var _local4 = new Array();
_local4.push(key);
var _local2 = new Array();
i = 0;
while (i < _local1.length) {
_local2.push(_local1.charCodeAt(i) ^ key);
i++;
}
_local4.push(_local2.length ^ key);
_local4 = _local4.concat(_local2);
return(_local4.join(","));
}
function getScoreEncoded() {
var _local5 = random(16777215);
var _local4 = random(16777215);
while (_local4 == _local5) {
_local4 = random(16777215);
}
var _local3 = random(16777215);
while ((_local3 == _local5) || (_local3 == _local4)) {
_local3 = random(16777215);
}
var _local2 = random(16777215);
while (((_local2 == _local5) || (_local2 == _local4)) || (_local2 == _local3)) {
_local2 = random(16777215);
}
var _local6 = _root.numberOfLevel + (_root.levelsNumber * _root.numberOfGame);
return(new Array(getEncodedValue(_root.score, _local5), getEncodedValue(_local6, _local4), getEncodedValue(_root.score, _local3), getEncodedValue(_local6, _local2)));
}
function updateMouse() {
var _local3 = _root._xmouse;
var _local2 = _root._ymouse;
var _local4 = (((_local3 > 0) && (_local3 < 480)) && (_local2 > 0)) && (_local2 < 360);
if (_local4 != mouseInRect) {
if ((mouseInRect = _local4)) {
Mouse.hide();
cursor._visible = true;
} else {
Mouse.show();
cursor._visible = false;
}
}
cursor._x = _local3;
cursor._y = _local2;
}
function updateTitle() {
updateMouse();
}
function putText(txt1, txt2) {
do {
ch = txt2.substr(i, 1);
if (ch == "|") {
str = txt2.substr(ilast, i - ilast);
txt1 = (txt1 + " ") + str;
ilast = i + 1;
}
i++;
} while (i < textBlock.length);
str = txt2.substr(ilast, i - ilast);
txt1 = (txt1 + " ") + str;
trace(txt1);
}
function upgradeNumberToName(num) {
switch (num) {
case 1 :
return("armor");
case 2 :
return("bulletspeed");
case 3 :
return("clipsize");
case 4 :
return("experience");
case 5 :
return("explosion");
case 6 :
return("reload");
case 7 :
return("repair");
case 8 :
return("shipspeed");
case 9 :
return("shotspeed");
}
}
function buildingNumberToName(num) {
switch (Number(num)) {
case 1 :
return("airport");
case 2 :
return("starport");
case 3 :
return("support1");
case 4 :
return("support2");
case 5 :
return("support3");
case 6 :
return("ship");
case 7 :
return("squadron");
case 8 :
return("powerplant");
case 9 :
return("mine");
}
}
function playSound(snd) {
if (_root.soundEnabled) {
_root.sound.gotoAndPlay(snd);
}
}
function playMusic(snd) {
if (_root.musicEnabled) {
stopAllSounds();
_root.sound.gotoAndPlay(snd);
}
}
bonusFrequency = 0.08;
Bonuses = ["bomb", "dynamite", "fireworks", "shuffle", "lightning", "magnet", "firewall", "any", "atom bomb", "TNT", "super magnet"];
newBonus = "";
EnableBonuses = [];
discription0 = function () {
var _local1 = new Object();
_local1.itsColor = "?";
_local1.bonus = false;
_local1.block = false;
return(_local1);
};
discription1 = function () {
var _local1 = new Object();
_local1.itsColor = 1;
_local1.bonus = false;
_local1.block = false;
return(_local1);
};
discription2 = function () {
var _local1 = new Object();
_local1.itsColor = 2;
_local1.bonus = false;
_local1.block = false;
return(_local1);
};
discription3 = function () {
var _local1 = new Object();
_local1.itsColor = 3;
_local1.bonus = false;
_local1.block = false;
return(_local1);
};
discription4 = function () {
var _local1 = new Object();
_local1.itsColor = 4;
_local1.bonus = false;
_local1.block = false;
return(_local1);
};
discription5 = function () {
var _local1 = new Object();
_local1.itsColor = 5;
_local1.bonus = false;
_local1.block = false;
return(_local1);
};
discription6 = function () {
var _local1 = new Object();
_local1.itsColor = 6;
_local1.bonus = false;
_local1.block = false;
return(_local1);
};
discription7 = function () {
var _local1 = new Object();
_local1.itsColor = 7;
_local1.bonus = false;
_local1.block = false;
return(_local1);
};
discription8 = function () {
var _local1 = new Object();
_local1.itsColor = 8;
_local1.bonus = false;
_local1.block = false;
return(_local1);
};
discription9 = function () {
var _local1 = new Object();
_local1.itsColor = 8;
_local1.bonus = false;
_local1.block = false;
return(_local1);
};
doLevel0 = function () {
Line1 = "00000000000000000 ";
Line2 = "00000000000000000 ";
Line3 = "00000000000000000 ";
Line4 = "00000000000000000 ";
Line5 = "00000000000000000 ";
Line6 = "00000000000000000 ";
Line7 = "00000000000000000 ";
Line8 = "00000000000000000 ";
Line9 = "00000000000000000 ";
Line10 = "00000000000000000 ";
Line11 = "00000000000000000 ";
Line12 = "00000000000000000 ";
Line13 = "00000000000000000";
Fills = (((((((((((Line1 + Line2) + Line3) + Line4) + Line5) + Line6) + Line7) + Line8) + Line9) + Line10) + Line11) + Line12) + Line13;
};
doLevel1 = function () {
timeInterval = 1260000 /* 0x1339E0 */;
EnableBonuses = [];
enabledColors = [0, 1, 2, 4, 6, 7];
bgColor = "bg1";
task = ["block"];
bonusFrequency = 0.08;
levelHints = [3000, 7000, 10000];
doHint0 = function () {
hintItems = new Array();
hintItems[0] = new Array();
hintItems[0].nm = "condition";
hintItems[0][0] = new Object();
hintItems[0][0].i = 5;
hintItems[0][0].j = 4;
hintItems[0][0].itsColor = 1;
hintItems[0][1] = new Object();
hintItems[0][1].i = 8;
hintItems[0][1].j = 4;
hintItems[0][1].itsColor = 2;
hintItems[0][2] = new Object();
hintItems[0][2].i = 8;
hintItems[0][2].j = 3;
hintItems[0][2].itsColor = 1;
hintItems[0][3] = new Object();
hintItems[0][3].i = 8;
hintItems[0][3].j = 5;
hintItems[0][3].itsColor = 1;
hintItems[1] = new Object();
hintItems[1].nm = "circle";
hintItems[1].i = 5;
hintItems[1].j = 4;
hintItems[2] = new Object();
hintItems[2].nm = "circle";
hintItems[2].i = 8;
hintItems[2].j = 4;
hintItems[3] = new Object();
hintItems[3].nm = "arrows";
hintItems[3].i1 = 5;
hintItems[3].i2 = 8;
hintItems[3].j1 = 4;
hintItems[3].j2 = 4;
hintItems[4] = new Object();
hintItems[4].nm = "textBlock";
hintItems[4].x = 220;
hintItems[4].y = 165;
hintItems[4].textBlock = hint1_0;
};
doHint1 = function () {
hintItems = new Array();
hintItems[0] = new Array();
hintItems[0].nm = "condition";
hintItems[0][0] = new Object();
hintItems[0][0].i = 10;
hintItems[0][0].j = 7;
hintItems[0][0].itsColor = 2;
hintItems[0][1] = new Object();
hintItems[0][1].i = 6;
hintItems[0][1].j = 7;
hintItems[0][1].itsColor = 7;
hintItems[0][2] = new Object();
hintItems[0][2].i = 6;
hintItems[0][2].j = 6;
hintItems[0][2].itsColor = 2;
hintItems[0][3] = new Object();
hintItems[0][3].i = 6;
hintItems[0][3].j = 8;
hintItems[0][3].itsColor = 2;
hintItems[1] = new Object();
hintItems[1].nm = "circle";
hintItems[1].i = 6;
hintItems[1].j = 7;
hintItems[2] = new Object();
hintItems[2].nm = "circle";
hintItems[2].i = 10;
hintItems[2].j = 7;
hintItems[3] = new Object();
hintItems[3].nm = "arrows";
hintItems[3].i1 = 10;
hintItems[3].i2 = 6;
hintItems[3].j1 = 7;
hintItems[3].j2 = 7;
hintItems[4] = new Object();
hintItems[4].nm = "textBlock";
hintItems[4].x = 170;
hintItems[4].y = 250;
hintItems[4].textBlock = hint1_1;
};
doHint2 = function () {
hintItems = new Array();
hintItems[0] = new Object();
hintItems[0].nm = "textBlock";
hintItems[0].x = 100;
hintItems[0].y = 170;
hintItems[0].textBlock = hint1_2;
};
discriptionz = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "orange";
_local1.lock = true;
return(_local1);
};
discriptionx = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "orange-1";
_local1.lock = true;
return(_local1);
};
discriptionc = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "orange-2";
_local1.lock = true;
return(_local1);
};
discriptionv = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "orange-3";
_local1.lock = true;
return(_local1);
};
discription1 = function () {
var _local1 = new Object();
_local1.itsColor = 1;
_local1.bonus = false;
_local1.block = false;
return(_local1);
};
discription2 = function () {
var _local1 = new Object();
_local1.itsColor = 2;
_local1.bonus = false;
_local1.block = false;
return(_local1);
};
discription7 = function () {
var _local1 = new Object();
_local1.itsColor = 7;
_local1.bonus = false;
_local1.block = false;
return(_local1);
};
Line1 = "................. ";
Line2 = "................. ";
Line3 = ".......000....... ";
Line4 = "......00100...... ";
Line5 = ".....1002000..... ";
Line6 = "....v0001000v.... ";
Line7 = "....xv20000xc.... ";
Line8 = "....z0700020v.... ";
Line9 = ".....0200000..... ";
Line10 = "......00c00...... ";
Line11 = ".......vxz....... ";
Line12 = "................. ";
Line13 = ".................";
Field = (((((((((((Line1 + Line2) + Line3) + Line4) + Line5) + Line6) + Line7) + Line8) + Line9) + Line10) + Line11) + Line12) + Line13;
Line1 = "................. ";
Line2 = "................. ";
Line3 = ".......000....... ";
Line4 = "......00000...... ";
Line5 = ".....0000000..... ";
Line6 = "....000000000.... ";
Line7 = "....000000000.... ";
Line8 = "....000000000.... ";
Line9 = ".....0000000..... ";
Line10 = "......00000...... ";
Line11 = ".......000....... ";
Line12 = "................. ";
Line13 = ".................";
Fills = (((((((((((Line1 + Line2) + Line3) + Line4) + Line5) + Line6) + Line7) + Line8) + Line9) + Line10) + Line11) + Line12) + Line13;
};
doLevel2 = function () {
timeInterval = 240000 /* 0x03A980 */;
EnableBonuses = [];
enabledColors = [0, 2, 4, 6, 7, 8];
task = ["block"];
newBonus = "bomb";
bonusFrequency = 0.08;
levelHints = [];
bgColor = "bg1";
discription1 = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "bird1";
_local1.lock = true;
return(_local1);
};
discription2 = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "bird2-1";
_local1.lock = true;
return(_local1);
};
discription3 = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "bird2-2";
_local1.lock = true;
return(_local1);
};
discription4 = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "bird2-3";
_local1.lock = true;
return(_local1);
};
discription5 = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "bird3-1";
_local1.lock = true;
return(_local1);
};
discription6 = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "bird3-2";
_local1.lock = true;
return(_local1);
};
discription7 = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "bird3-3";
_local1.lock = true;
return(_local1);
};
discription8 = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "car_01";
_local1.lock = true;
return(_local1);
};
Line1 = "................. ";
Line2 = "................. ";
Line3 = "......00000...... ";
Line4 = "......00000...... ";
Line5 = "....000080000.... ";
Line6 = "....000818000.... ";
Line7 = "....008234800.... ";
Line8 = "....000567000.... ";
Line9 = "....000080000.... ";
Line10 = "......00000...... ";
Line11 = "......00000...... ";
Line12 = "................. ";
Line13 = ".................";
Field = (((((((((((Line1 + Line2) + Line3) + Line4) + Line5) + Line6) + Line7) + Line8) + Line9) + Line10) + Line11) + Line12) + Line13;
Line1 = "................. ";
Line2 = "................. ";
Line3 = "......00000...... ";
Line4 = "......00000...... ";
Line5 = "....000000000.... ";
Line6 = "....000000000.... ";
Line7 = "....000000000.... ";
Line8 = "....000000000.... ";
Line9 = "....000000000.... ";
Line10 = "......00000...... ";
Line11 = "......00000...... ";
Line12 = "................. ";
Line13 = ".................";
Fills = (((((((((((Line1 + Line2) + Line3) + Line4) + Line5) + Line6) + Line7) + Line8) + Line9) + Line10) + Line11) + Line12) + Line13;
};
doLevel3 = function () {
timeInterval = 240000 /* 0x03A980 */;
EnableBonuses = ["bomb"];
enabledColors = [0, 2, 3, 5, 7, 8];
task = ["block"];
bonusFrequency = 0.08;
newBonus = "";
bgColor = "bg1";
levelHints = [3000];
doHint0 = function () {
hintItems = new Array();
hintItems[0] = new Array();
hintItems[0].nm = "condition";
hintItems[0][0] = new Object();
hintItems[0][0].i = 10;
hintItems[0][0].j = 1;
hintItems[0][0].itsColor = 3;
hintItems[0][1] = new Object();
hintItems[0][1].i = 9;
hintItems[0][1].j = 4;
hintItems[0][1].itsColor = 3;
hintItems[0][2] = new Object();
hintItems[0][2].i = 8;
hintItems[0][2].j = 4;
hintItems[0][2].itsColor = 3;
hintItems[1] = new Object();
hintItems[1].nm = "circle";
hintItems[1].i = 10;
hintItems[1].j = 1;
hintItems[2] = new Object();
hintItems[2].nm = "circle";
hintItems[2].i = 10;
hintItems[2].j = 4;
hintItems[3] = new Object();
hintItems[3].nm = "arrows";
hintItems[3].i1 = 10;
hintItems[3].i2 = 10;
hintItems[3].j1 = 1;
hintItems[3].j2 = 4;
hintItems[4] = new Object();
hintItems[4].nm = "textBlock";
hintItems[4].x = 85;
hintItems[4].y = 40;
hintItems[4].textBlock = hint3_0;
hintItems[5] = new Object();
hintItems[5].nm = "circle";
hintItems[5].i = 8;
hintItems[5].j = 5;
};
discriptionA = function () {
var _local1 = new Object();
_local1.itsColor = 3;
_local1.bonus = false;
_local1.block = false;
_local1.lock = false;
return(_local1);
};
discriptionb = function () {
var _local1 = new Object();
_local1.bonus = "bomb";
_local1.block = false;
return(_local1);
};
discriptionq = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "blue";
_local1.lock = true;
return(_local1);
};
discriptionw = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "blue-1";
_local1.lock = true;
return(_local1);
};
discriptione = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "blue-2";
_local1.lock = true;
return(_local1);
};
discriptionr = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "blue-3";
_local1.lock = true;
return(_local1);
};
discriptiont = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "blue-dark";
_local1.lock = true;
return(_local1);
};
discriptiony = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "blue-dark-1";
_local1.lock = true;
return(_local1);
};
discriptionu = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "blue-dark-2";
_local1.lock = true;
return(_local1);
};
discriptioni = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "blue-dark-3";
_local1.lock = true;
return(_local1);
};
discriptiona = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "green";
_local1.lock = true;
return(_local1);
};
discriptions = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "green-1";
_local1.lock = true;
return(_local1);
};
discriptiond = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "green-2";
_local1.lock = true;
return(_local1);
};
discriptionf = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "green-3";
_local1.lock = true;
return(_local1);
};
discriptiong = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "mag-blue";
_local1.lock = true;
return(_local1);
};
discriptionh = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "mag-blue-1";
_local1.lock = true;
return(_local1);
};
discriptionj = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "mag-blue-2";
_local1.lock = true;
return(_local1);
};
discriptionk = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "mag-blue-3";
_local1.lock = true;
return(_local1);
};
discriptionz = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "magenta";
_local1.lock = true;
return(_local1);
};
discriptionx = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "magenta-1";
_local1.lock = true;
return(_local1);
};
discriptionc = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "magenta-2";
_local1.lock = true;
return(_local1);
};
discriptionv = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "magenta-3";
_local1.lock = true;
return(_local1);
};
discription5 = function () {
var _local1 = new Object();
_local1.itsColor = 5;
_local1.bonus = false;
_local1.block = false;
return(_local1);
};
Line1 = "................. ";
Line2 = ".......000A...... ";
Line3 = "......00000...... ";
Line4 = "......000000..... ";
Line5 = ".......0AA5000... ";
Line6 = "....qwiyb00000... ";
Line7 = "....etufd0000.... ";
Line8 = "....uydfkhb00.... ";
Line9 = ".....sajhczr00... ";
Line10 = "......jgvzwe..... ";
Line11 = ".......czew...... ";
Line12 = "........qr....... ";
Line13 = ".................";
Field = (((((((((((Line1 + Line2) + Line3) + Line4) + Line5) + Line6) + Line7) + Line8) + Line9) + Line10) + Line11) + Line12) + Line13;
Line1 = "................. ";
Line2 = ".......0000...... ";
Line3 = "......00000...... ";
Line4 = "......000000..... ";
Line5 = ".......0000000... ";
Line6 = "....0000000000... ";
Line7 = "....000000000.... ";
Line8 = "....000000000.... ";
Line9 = ".....000000000... ";
Line10 = "......000000..... ";
Line11 = ".......0000...... ";
Line12 = "........00....... ";
Line13 = ".................";
Fills = (((((((((((Line1 + Line2) + Line3) + Line4) + Line5) + Line6) + Line7) + Line8) + Line9) + Line10) + Line11) + Line12) + Line13;
};
doLevel4 = function () {
timeInterval = 240000 /* 0x03A980 */;
EnableBonuses = ["any", "bomb"];
enabledColors = [0, 1, 3, 5, 7, 8];
task = ["cell"];
bonusFrequency = 0.08;
newBonus = "dynamite";
bgColor = "bg1";
levelHints = [3000];
doHint0 = function () {
hintItems = new Array();
hintItems[0] = new Array();
hintItems[0].nm = "condition";
hintItems[0][0] = new Object();
hintItems[0][0].i = 10;
hintItems[0][0].j = 7;
hintItems[0][0].itsColor = 7;
hintItems[0][1] = new Object();
hintItems[0][1].i = 9;
hintItems[0][1].j = 4;
hintItems[0][1].itsColor = 7;
hintItems[0][2] = new Object();
hintItems[0][2].i = 8;
hintItems[0][2].j = 4;
hintItems[0][2].itsColor = 7;
hintItems[1] = new Object();
hintItems[1].nm = "circle";
hintItems[1].i = 10;
hintItems[1].j = 7;
hintItems[2] = new Object();
hintItems[2].nm = "circle";
hintItems[2].i = 10;
hintItems[2].j = 4;
hintItems[3] = new Object();
hintItems[3].nm = "arrows";
hintItems[3].i1 = 10;
hintItems[3].i2 = 10;
hintItems[3].j1 = 7;
hintItems[3].j2 = 4;
hintItems[4] = new Object();
hintItems[4].nm = "textBlock";
hintItems[4].x = 120;
hintItems[4].y = 155;
hintItems[4].textBlock = hint4_0;
};
discription7 = function () {
var _local1 = new Object();
_local1.itsColor = 7;
_local1.bonus = false;
_local1.block = false;
return(_local1);
};
Line1 = "................. ";
Line2 = "................. ";
Line3 = "......00000...... ";
Line4 = "....000000000.... ";
Line5 = "...0000077000... ";
Line6 = "..0000000000000.. ";
Line7 = "..0000000000000.. ";
Line8 = "..0000000070000.. ";
Line9 = "..0000000000000.. ";
Line10 = "..00000...00000.. ";
Line11 = "...000.....000... ";
Line12 = "................. ";
Line13 = ".................";
Field = (((((((((((Line1 + Line2) + Line3) + Line4) + Line5) + Line6) + Line7) + Line8) + Line9) + Line10) + Line11) + Line12) + Line13;
Line1 = "................. ";
Line2 = "................. ";
Line3 = "......00000...... ";
Line4 = "....000010000.... ";
Line5 = "...00001110000... ";
Line6 = "..0000001000000.. ";
Line7 = "..0000000000000.. ";
Line8 = "..0010000000100.. ";
Line9 = "..0111000001110.. ";
Line10 = "..00100...00100.. ";
Line11 = "...000.....000... ";
Line12 = "................. ";
Line13 = ".................";
Fills = (((((((((((Line1 + Line2) + Line3) + Line4) + Line5) + Line6) + Line7) + Line8) + Line9) + Line10) + Line11) + Line12) + Line13;
};
doLevel5 = function () {
timeInterval = 240000 /* 0x03A980 */;
EnableBonuses = ["any", "bomb", "dynamite"];
enabledColors = [0, 2, 4, 6, 7, 9];
task = ["blockcell"];
newBonus = "firewall";
bonusFrequency = 0.08;
levelHints = [];
bgColor = "bg1";
discriptionq = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "mag-blue";
_local1.lock = true;
return(_local1);
};
discriptionw = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "mag-blue-1";
_local1.lock = true;
return(_local1);
};
discriptione = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "mag-blue-2";
_local1.lock = true;
return(_local1);
};
discriptionr = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "mag-blue-3";
_local1.lock = true;
return(_local1);
};
Line1 = "................. ";
Line2 = ".00.............. ";
Line3 = ".00000........... ";
Line4 = ".000000000....... ";
Line5 = ".reqw0000000..... ";
Line6 = ".000erqqe000000.. ";
Line7 = "..000000we00000.. ";
Line8 = "..000000ew00000.. ";
Line9 = ".000qweqq00000... ";
Line10 = ".eqwe0000000..... ";
Line11 = ".00000000000..... ";
Line12 = ".0000............ ";
Line13 = ".................";
Field = (((((((((((Line1 + Line2) + Line3) + Line4) + Line5) + Line6) + Line7) + Line8) + Line9) + Line10) + Line11) + Line12) + Line13;
Line1 = "................. ";
Line2 = ".00.............. ";
Line3 = ".00000........... ";
Line4 = ".000000000....... ";
Line5 = ".00000000000..... ";
Line6 = ".11100000000000.. ";
Line7 = "..1111110000000.. ";
Line8 = "..1111110000000.. ";
Line9 = ".1110000000000... ";
Line10 = ".00000000000..... ";
Line11 = ".00000000000..... ";
Line12 = ".0000............ ";
Line13 = ".................";
Fills = (((((((((((Line1 + Line2) + Line3) + Line4) + Line5) + Line6) + Line7) + Line8) + Line9) + Line10) + Line11) + Line12) + Line13;
};
doLevel6 = function () {
timeInterval = 240000 /* 0x03A980 */;
EnableBonuses = ["any", "bomb", "dynamite", "firewall"];
enabledColors = [0, 2, 4, 6, 7, 5];
task = ["blockcell"];
bonusFrequency = 0.08;
newBonus = "magnet";
bgColor = "bg1";
levelHints = [3000];
doHint0 = function () {
hintItems = new Array();
hintItems[0] = new Array();
hintItems[0].nm = "condition";
hintItems[0][0] = new Object();
hintItems[0][0].i = 6;
hintItems[0][0].j = 3;
hintItems[0][0].itsColor = 2;
hintItems[0][1] = new Object();
hintItems[0][1].i = 9;
hintItems[0][1].j = 4;
hintItems[0][1].itsColor = 2;
hintItems[0][2] = new Object();
hintItems[0][2].i = 9;
hintItems[0][2].j = 5;
hintItems[0][2].itsColor = 2;
hintItems[1] = new Object();
hintItems[1].nm = "circle";
hintItems[1].i = 6;
hintItems[1].j = 3;
hintItems[2] = new Object();
hintItems[2].nm = "circle";
hintItems[2].i = 9;
hintItems[2].j = 3;
hintItems[3] = new Object();
hintItems[3].nm = "arrows";
hintItems[3].i1 = 6;
hintItems[3].i2 = 9;
hintItems[3].j1 = 3;
hintItems[3].j2 = 3;
hintItems[4] = new Object();
hintItems[4].nm = "textBlock";
hintItems[4].x = 170;
hintItems[4].y = 165;
hintItems[4].textBlock = hint6_0;
hintItems[5] = new Object();
hintItems[5].nm = "circle";
hintItems[5].i = 9;
hintItems[5].j = 4;
};
discriptionz = function () {
var _local1 = new Object();
_local1.itsColor = 2;
_local1.bonus = "unmove";
_local1.block = false;
return(_local1);
};
discriptionx = function () {
var _local1 = new Object();
_local1.itsColor = 2;
_local1.bonus = false;
_local1.block = false;
return(_local1);
};
discription1 = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "blue-dark";
_local1.lock = true;
return(_local1);
};
discriptionq = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "blue-dark-1";
_local1.lock = true;
return(_local1);
};
discriptionw = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "blue-dark-2";
_local1.lock = true;
return(_local1);
};
discriptione = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "blue-dark-3";
_local1.lock = true;
return(_local1);
};
discription2 = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "white";
_local1.lock = true;
return(_local1);
};
discription3 = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "blue";
_local1.lock = true;
return(_local1);
};
discriptionr = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "blue-1";
_local1.lock = true;
return(_local1);
};
discriptiont = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "blue-2";
_local1.lock = true;
return(_local1);
};
discriptiony = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "blue-3";
_local1.lock = true;
return(_local1);
};
discription4 = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "blue-dark-conerlu";
_local1.lock = true;
return(_local1);
};
discription5 = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "orange-conerld";
_local1.lock = true;
return(_local1);
};
discription6 = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "white-conerlu";
_local1.lock = true;
return(_local1);
};
discription7 = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "red";
_local1.lock = true;
return(_local1);
};
discriptiona = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "orange";
_local1.lock = true;
return(_local1);
};
discriptions = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "orange-1";
_local1.lock = true;
return(_local1);
};
discriptiond = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "orange-2";
_local1.lock = true;
return(_local1);
};
discriptionf = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "orange-3";
_local1.lock = true;
return(_local1);
};
Line1 = "................. ";
Line2 = "................. ";
Line3 = "........00....... ";
Line4 = ".....0x0000...... ";
Line5 = ".0x000000z00..... ";
Line6 = ".00000070x0000... ";
Line7 = ".00xz4ew1qe000... ";
Line8 = ".00062222wqz000.. ";
Line9 = ".5sffsfasfdsa00.. ";
Line10 = "..5fdsaasdfsf00.. ";
Line11 = "............000.. ";
Line12 = "................. ";
Line13 = ".................";
Field = (((((((((((Line1 + Line2) + Line3) + Line4) + Line5) + Line6) + Line7) + Line8) + Line9) + Line10) + Line11) + Line12) + Line13;
Line1 = "................. ";
Line2 = "................. ";
Line3 = "........00....... ";
Line4 = ".....000000...... ";
Line5 = ".00000000000..... ";
Line6 = ".0000000000000... ";
Line7 = ".0000000000000... ";
Line8 = ".00000000000000.. ";
Line9 = ".000000000000000. ";
Line10 = "..1000000000011.. ";
Line11 = ".11111111111111.. ";
Line12 = "................. ";
Line13 = ".................";
Fills = (((((((((((Line1 + Line2) + Line3) + Line4) + Line5) + Line6) + Line7) + Line8) + Line9) + Line10) + Line11) + Line12) + Line13;
};
doLevel7 = function () {
timeInterval = 240000 /* 0x03A980 */;
EnableBonuses = ["any", "bomb", "dynamite", "firewall", "magnet"];
enabledColors = [0, 1, 2, 4, 7, 5];
task = ["block"];
bonusFrequency = 0.08;
newBonus = "fireworks";
bgColor = "bg1";
levelHints = [3000];
doHint0 = function () {
hintItems = new Array();
hintItems[0] = new Array();
hintItems[0].nm = "condition";
hintItems[0][0] = new Object();
hintItems[0][0].i = 6;
hintItems[0][0].j = 4;
hintItems[0][0].itsColor = 1;
hintItems[0][1] = new Object();
hintItems[0][1].i = 3;
hintItems[0][1].j = 3;
hintItems[0][1].itsColor = 1;
hintItems[0][2] = new Object();
hintItems[0][2].i = 3;
hintItems[0][2].j = 2;
hintItems[0][2].itsColor = 1;
hintItems[1] = new Object();
hintItems[1].nm = "circle";
hintItems[1].i = 6;
hintItems[1].j = 4;
hintItems[2] = new Object();
hintItems[2].nm = "circle";
hintItems[2].i = 3;
hintItems[2].j = 4;
hintItems[3] = new Object();
hintItems[3].nm = "arrows";
hintItems[3].i1 = 6;
hintItems[3].i2 = 3;
hintItems[3].j1 = 4;
hintItems[3].j2 = 4;
hintItems[4] = new Object();
hintItems[4].nm = "textBlock";
hintItems[4].x = 90;
hintItems[4].y = 55;
hintItems[4].textBlock = hint7_0;
hintItems[5] = new Object();
hintItems[5].nm = "circle";
hintItems[5].i = 3;
hintItems[5].j = 2;
};
discriptionr = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "blue-dark";
_local1.lock = true;
return(_local1);
};
discriptionq = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "blue-dark-1";
_local1.lock = true;
return(_local1);
};
discriptionw = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "blue-dark-2";
_local1.lock = true;
return(_local1);
};
discriptione = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "blue-dark-3";
_local1.lock = true;
return(_local1);
};
discriptiona = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "blue";
_local1.lock = true;
return(_local1);
};
discriptions = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "blue-1";
_local1.lock = true;
return(_local1);
};
discriptiond = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "blue-2";
_local1.lock = true;
return(_local1);
};
discriptionf = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "blue-3";
_local1.lock = true;
return(_local1);
};
discriptionz = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "mag-blue";
_local1.lock = true;
return(_local1);
};
discriptionx = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "mag-blue-1";
_local1.lock = true;
return(_local1);
};
discriptionc = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "mag-blue-2";
_local1.lock = true;
return(_local1);
};
discriptionv = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "mag-blue-3";
_local1.lock = true;
return(_local1);
};
discriptionM = function () {
var _local1 = new Object();
_local1.itsColor = 2;
_local1.bonus = false;
_local1.block = false;
return(_local1);
};
discription3 = function () {
var _local1 = new Object();
_local1.itsColor = 2;
_local1.bonus = "key";
_local1.block = false;
return(_local1);
};
discriptionQ = function () {
var _local1 = new Object();
_local1.itsColor = 2;
_local1.bonus = "lock";
_local1.block = false;
return(_local1);
};
discription2 = function () {
var _local1 = new Object();
_local1.itsColor = 4;
_local1.bonus = "key";
_local1.block = false;
return(_local1);
};
discriptionW = function () {
var _local1 = new Object();
_local1.itsColor = 4;
_local1.bonus = "lock";
_local1.block = false;
return(_local1);
};
discriptionN = function () {
var _local1 = new Object();
_local1.itsColor = 1;
_local1.bonus = false;
_local1.block = false;
return(_local1);
};
discription1 = function () {
var _local1 = new Object();
_local1.itsColor = 1;
_local1.bonus = "key";
_local1.block = false;
return(_local1);
};
discriptionE = function () {
var _local1 = new Object();
_local1.itsColor = 1;
_local1.bonus = "lock";
_local1.block = false;
return(_local1);
};
Line1 = "................. ";
Line2 = "....000.0M0...... ";
Line3 = "...1000200M3..... ";
Line4 = "..0N000000000.... ";
Line5 = "..0000N000000.... ";
Line6 = "..00000000000.... ";
Line7 = "..EEE.WWW.QQQ.... ";
Line8 = "................. ";
Line9 = "................. ";
Line10 = "..qaszxaserzx.... ";
Line11 = "..wedfcvdfrwc.... ";
Line12 = "................. ";
Line13 = ".................";
Field = (((((((((((Line1 + Line2) + Line3) + Line4) + Line5) + Line6) + Line7) + Line8) + Line9) + Line10) + Line11) + Line12) + Line13;
Line1 = "................. ";
Line2 = "....000.000...... ";
Line3 = "...000000000..... ";
Line4 = "..00000000000.... ";
Line5 = "..00000000000.... ";
Line6 = "..00000000000.... ";
Line7 = "..000.000.000.... ";
Line8 = "..00000000000.... ";
Line9 = "..00000000000.... ";
Line10 = "..00000000000.... ";
Line11 = "..00000000000.... ";
Line12 = "................. ";
Line13 = ".................";
Fills = (((((((((((Line1 + Line2) + Line3) + Line4) + Line5) + Line6) + Line7) + Line8) + Line9) + Line10) + Line11) + Line12) + Line13;
};
doLevel8 = function () {
timeInterval = 360000 /* 0x057E40 */;
EnableBonuses = ["any", "bomb", "dynamite", "firewall", "magnet", "fireworks"];
enabledColors = [0, 2, 4, 6, 7, 3];
bgColor = "bg2";
task = ["blockcell"];
newBonus = "shuffle";
bonusFrequency = 0.08;
levelHints = [];
discriptionb = function () {
var _local1 = new Object();
_local1.itsColor = 3;
_local1.bonus = "key";
_local1.block = false;
return(_local1);
};
discriptionB = function () {
var _local1 = new Object();
_local1.itsColor = 3;
_local1.bonus = "lock";
_local1.block = false;
return(_local1);
};
discription1 = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "black";
_local1.lock = true;
return(_local1);
};
discriptionz = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "black-conerrd";
_local1.lock = true;
return(_local1);
};
discription2 = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "black-1";
_local1.lock = true;
return(_local1);
};
discription3 = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "black-2";
_local1.lock = true;
return(_local1);
};
discription4 = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "black-3";
_local1.lock = true;
return(_local1);
};
discription5 = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "yellow";
_local1.lock = true;
return(_local1);
};
discription9 = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "white";
_local1.lock = true;
return(_local1);
};
discription6 = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "white-1";
_local1.lock = true;
return(_local1);
};
discription7 = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "white-2";
_local1.lock = true;
return(_local1);
};
discription8 = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "white-3";
_local1.lock = true;
return(_local1);
};
discriptionq = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "orange";
_local1.lock = true;
return(_local1);
};
discriptionw = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "red";
_local1.lock = true;
return(_local1);
};
discriptione = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "red-1";
_local1.lock = true;
return(_local1);
};
discriptionr = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "red-1";
_local1.lock = true;
return(_local1);
};
discriptiont = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "red-1";
_local1.lock = true;
return(_local1);
};
discriptiony = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "white-conerru";
_local1.lock = true;
return(_local1);
};
discriptionu = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "white-conerrd";
_local1.lock = true;
return(_local1);
};
discriptioni = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "white-conerld";
_local1.lock = true;
return(_local1);
};
discriptiono = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "orange-conerrd";
_local1.lock = true;
return(_local1);
};
discriptionp = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "orange-conerlu";
_local1.lock = true;
return(_local1);
};
discriptiona = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "red-conerru";
_local1.lock = true;
return(_local1);
};
Line1 = "................. ";
Line2 = "...00000q00000... ";
Line3 = "..000009860000... ";
Line4 = ".0y00008670y00... ";
Line5 = ".09y000uqi07y00.. ";
Line6 = ".086y09867889y0.. ";
Line7 = ".0789y97867..o0.. ";
Line8 = ".00qq.BBB.i.ob00. ";
Line9 = ".0tre.a.q.re0000. ";
Line10 = ".00p25...53z0000. ";
Line11 = "..0q432132z00.... ";
Line12 = "...0000000000.... ";
Line13 = ".................";
Field = (((((((((((Line1 + Line2) + Line3) + Line4) + Line5) + Line6) + Line7) + Line8) + Line9) + Line10) + Line11) + Line12) + Line13;
Line1 = "................. ";
Line2 = "...00000000000... ";
Line3 = "..000000000000... ";
Line4 = ".0000000000000... ";
Line5 = ".00000000000000.. ";
Line6 = ".00000000000000.. ";
Line7 = ".0000000000..00.. ";
Line8 = ".0000.000.0.0000. ";
Line9 = ".0000.0.0.000000. ";
Line10 = ".00000...0000000. ";
Line11 = "..00000000000.... ";
Line12 = "...0000000000.... ";
Line13 = ".................";
Fills = (((((((((((Line1 + Line2) + Line3) + Line4) + Line5) + Line6) + Line7) + Line8) + Line9) + Line10) + Line11) + Line12) + Line13;
};
doLevel9 = function () {
timeInterval = 1260000 /* 0x1339E0 */;
EnableBonuses = ["any", "bomb", "dynamite", "firewall", "magnet", "fireworks", "shuffle"];
enabledColors = [0, 2, 4, 6, 7, 3, 1];
task = ["blockcell"];
bonusFrequency = 0.08;
newBonus = "lightning";
bgColor = "bg2";
discription1 = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "teaport1-1";
_local1.lock = false;
return(_local1);
};
discription2 = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "teaport1-2";
_local1.lock = false;
return(_local1);
};
discription3 = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "teaport1-3";
_local1.lock = false;
return(_local1);
};
discription4 = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "teaport2-1";
_local1.lock = false;
return(_local1);
};
discription5 = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "teaport2-2";
_local1.lock = false;
return(_local1);
};
discription6 = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "teaport2-3";
_local1.lock = false;
return(_local1);
};
discription7 = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "teaport3-1";
_local1.lock = false;
return(_local1);
};
discription8 = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "teaport3-2";
_local1.lock = false;
return(_local1);
};
discription9 = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "teaport3-3";
_local1.lock = false;
return(_local1);
};
discriptione = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "teaport1-1r";
_local1.lock = false;
return(_local1);
};
discriptionw = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "teaport1-2r";
_local1.lock = false;
return(_local1);
};
discriptionq = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "teaport1-3r";
_local1.lock = false;
return(_local1);
};
discriptiond = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "teaport2-1r";
_local1.lock = false;
return(_local1);
};
discriptions = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "teaport2-2r";
_local1.lock = false;
return(_local1);
};
discriptiona = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "teaport2-3r";
_local1.lock = false;
return(_local1);
};
discriptionc = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "teaport3-1r";
_local1.lock = false;
return(_local1);
};
discriptionx = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "teaport3-2r";
_local1.lock = false;
return(_local1);
};
discriptionz = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "teaport3-3r";
_local1.lock = false;
return(_local1);
};
discriptionI = function () {
var _local1 = new Object();
_local1.itsColor = 2;
_local1.bonus = "key";
_local1.block = false;
return(_local1);
};
discriptioni = function () {
var _local1 = new Object();
_local1.itsColor = 2;
_local1.bonus = "lock";
_local1.block = false;
return(_local1);
};
discriptionU = function () {
var _local1 = new Object();
_local1.itsColor = 4;
_local1.bonus = "key";
_local1.block = false;
return(_local1);
};
discriptionu = function () {
var _local1 = new Object();
_local1.itsColor = 4;
_local1.bonus = "lock";
_local1.block = false;
return(_local1);
};
discriptionY = function () {
var _local1 = new Object();
_local1.itsColor = 3;
_local1.bonus = "key";
_local1.block = false;
return(_local1);
};
discriptiony = function () {
var _local1 = new Object();
_local1.itsColor = 3;
_local1.bonus = "lock";
_local1.block = false;
return(_local1);
};
Line1 = "................. ";
Line2 = ".....00000....... ";
Line3 = "....00000000..... ";
Line4 = "...0000000000.... ";
Line5 = "..0000U000Y00.... ";
Line6 = "..0001230qwe00... ";
Line7 = "..000456Iasd00... ";
Line8 = "..uuu7890zxcyy... ";
Line9 = "....uuiiiiiyy.... ";
Line10 = "................. ";
Line11 = "................. ";
Line12 = "................. ";
Line13 = ".................";
Field = (((((((((((Line1 + Line2) + Line3) + Line4) + Line5) + Line6) + Line7) + Line8) + Line9) + Line10) + Line11) + Line12) + Line13;
Line1 = "................. ";
Line2 = ".....00000....... ";
Line3 = "....00000000..... ";
Line4 = "...0000000000.... ";
Line5 = "..00000000000.... ";
Line6 = "..000000000000... ";
Line7 = "..000000000000... ";
Line8 = "..000000000000... ";
Line9 = "..110000000001... ";
Line10 = "...11111111111... ";
Line11 = "....1111..111.... ";
Line12 = "................. ";
Line13 = ".................";
Fills = (((((((((((Line1 + Line2) + Line3) + Line4) + Line5) + Line6) + Line7) + Line8) + Line9) + Line10) + Line11) + Line12) + Line13;
};
doLevel10 = function () {
timeInterval = 1260000 /* 0x1339E0 */;
EnableBonuses = ["any", "bomb", "dynamite", "firewall", "magnet", "fireworks", "shuffle", "lightning"];
enabledColors = [0, 2, 4, 6, 7, 3, 1];
task = ["blockcell"];
bonusFrequency = 0.08;
newBonus = "";
bgColor = "bg2";
discription1 = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "yellow";
_local1.lock = false;
return(_local1);
};
discription2 = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "yellow-1";
_local1.lock = false;
return(_local1);
};
discription3 = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "yellow-2";
_local1.lock = false;
return(_local1);
};
discription4 = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "yellow-3";
_local1.lock = false;
return(_local1);
};
discription5 = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "orange";
_local1.lock = false;
return(_local1);
};
discription6 = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "orange-1";
_local1.lock = false;
return(_local1);
};
discription7 = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "orange-2";
_local1.lock = false;
return(_local1);
};
discription8 = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "orange-3";
_local1.lock = false;
return(_local1);
};
discriptionI = function () {
var _local1 = new Object();
_local1.itsColor = 2;
_local1.bonus = "key";
_local1.block = false;
return(_local1);
};
discriptioni = function () {
var _local1 = new Object();
_local1.itsColor = 2;
_local1.bonus = "lock";
_local1.block = false;
return(_local1);
};
discriptionU = function () {
var _local1 = new Object();
_local1.itsColor = 4;
_local1.bonus = "key";
_local1.block = false;
return(_local1);
};
discriptionu = function () {
var _local1 = new Object();
_local1.itsColor = 4;
_local1.bonus = "lock";
_local1.block = false;
return(_local1);
};
discriptionY = function () {
var _local1 = new Object();
_local1.itsColor = 1;
_local1.bonus = "key";
_local1.block = false;
return(_local1);
};
discriptiony = function () {
var _local1 = new Object();
_local1.itsColor = 1;
_local1.bonus = "lock";
_local1.block = false;
return(_local1);
};
Line1 = "................. ";
Line2 = "........00....... ";
Line3 = ".....000000...... ";
Line4 = "...0006780000.... ";
Line5 = "..00005U500000... ";
Line6 = "..000087600000... ";
Line7 = "..0000000000000.. ";
Line8 = "...00000000uuuu.. ";
Line9 = "....ii0000uu213.. ";
Line10 = ".....ii00uu1234.. ";
Line11 = "......i00u3134I.. ";
Line12 = "......i..u2323... ";
Line13 = ".................";
Field = (((((((((((Line1 + Line2) + Line3) + Line4) + Line5) + Line6) + Line7) + Line8) + Line9) + Line10) + Line11) + Line12) + Line13;
Line1 = "................. ";
Line2 = "........00....... ";
Line3 = ".....000000...... ";
Line4 = "...0000000000.... ";
Line5 = "..11100000000.... ";
Line6 = "..111100000000... ";
Line7 = "..1111111110000.. ";
Line8 = "...111111111100.. ";
Line9 = "....00111111000.. ";
Line10 = "...220011110000.. ";
Line11 = "..2222011100000.. ";
Line12 = "..22220..10000... ";
Line13 = ".................";
Fills = (((((((((((Line1 + Line2) + Line3) + Line4) + Line5) + Line6) + Line7) + Line8) + Line9) + Line10) + Line11) + Line12) + Line13;
};
doLevel11 = function () {
timeInterval = 1260000 /* 0x1339E0 */;
EnableBonuses = ["any", "bomb", "dynamite", "firewall", "magnet", "fireworks", "shuffle", "lightning"];
enabledColors = [0, 2, 4, 6, 7, 3];
task = ["block"];
bonusFrequency = 0.08;
bgColor = "bg2";
newBonus = "";
discription1 = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "white";
_local1.lock = true;
return(_local1);
};
discriptionz = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "white-1";
_local1.lock = true;
return(_local1);
};
discriptionx = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "white-2";
_local1.lock = true;
return(_local1);
};
discriptionc = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "white-3";
_local1.lock = true;
return(_local1);
};
discription2 = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "white-conerru";
_local1.lock = true;
return(_local1);
};
discription3 = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "white-conerlu";
_local1.lock = true;
return(_local1);
};
discription4 = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "white-conerld";
_local1.lock = true;
return(_local1);
};
discription5 = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "black-conerrd";
_local1.lock = true;
return(_local1);
};
discription6 = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "white-coner-30ru";
_local1.lock = true;
return(_local1);
};
discription7 = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "white-coner-30ul";
_local1.lock = true;
return(_local1);
};
discription8 = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "white-coner-30ld";
_local1.lock = true;
return(_local1);
};
discription9 = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "white-coner-30dr";
_local1.lock = true;
return(_local1);
};
discriptionq = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "white-coner-30lu";
_local1.lock = true;
return(_local1);
};
discriptionw = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "white-coner-30rd";
_local1.lock = true;
return(_local1);
};
discriptione = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "white-coner-30dl";
_local1.lock = true;
return(_local1);
};
discriptionr = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "white-coner-30ur";
_local1.lock = true;
return(_local1);
};
discriptiont = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "white-05l";
_local1.lock = true;
return(_local1);
};
discriptionu = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "white-05d";
_local1.lock = true;
return(_local1);
};
discriptioni = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "white-05r";
_local1.lock = true;
return(_local1);
};
discriptiono = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "white-05u";
_local1.lock = true;
return(_local1);
};
discriptiona = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "black-coner-60ru";
_local1.lock = true;
return(_local1);
};
discriptions = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "black-coner-60lu";
_local1.lock = true;
return(_local1);
};
discriptiond = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "black-coner-60rd";
_local1.lock = true;
return(_local1);
};
discriptionf = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "black-coner-60ld";
_local1.lock = true;
return(_local1);
};
discriptiong = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "black-coner-60ul";
_local1.lock = true;
return(_local1);
};
discriptionh = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "black-coner-60dr";
_local1.lock = true;
return(_local1);
};
discriptionj = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "black-coner-60dl";
_local1.lock = true;
return(_local1);
};
discriptionk = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "black-coner-60ur";
_local1.lock = true;
return(_local1);
};
discriptionP = function () {
var _local1 = new Object();
_local1.itsColor = 2;
_local1.bonus = "key";
_local1.block = false;
return(_local1);
};
discriptionp = function () {
var _local1 = new Object();
_local1.itsColor = 2;
_local1.bonus = "lock";
_local1.block = false;
return(_local1);
};
discriptionm = function () {
var _local1 = new Object();
_local1.itsColor = 4;
_local1.bonus = "fireworks";
_local1.block = false;
return(_local1);
};
Line1 = "................. ";
Line2 = ".....mmmmm....... ";
Line3 = ".....ppppp....... ";
Line4 = "...000000000..... ";
Line5 = ".000007ur0000.... ";
Line6 = ".00003zsa2000.... ";
Line7 = ".0P0qxcfdx6000... ";
Line8 = ".000iskc1zt0000.. ";
Line9 = ".0008fhxsaw0000.. ";
Line10 = "..0004z1f50000... ";
Line11 = "..0000eo90000.... ";
Line12 = "...000000000..... ";
Line13 = ".................";
Field = (((((((((((Line1 + Line2) + Line3) + Line4) + Line5) + Line6) + Line7) + Line8) + Line9) + Line10) + Line11) + Line12) + Line13;
Line1 = "................. ";
Line2 = ".....00000....... ";
Line3 = ".....00000....... ";
Line4 = "...000000000..... ";
Line5 = ".000000000000.... ";
Line6 = ".000000000000.... ";
Line7 = ".0000000000000... ";
Line8 = ".00000000000000.. ";
Line9 = ".00000000000000.. ";
Line10 = "..000000000000... ";
Line11 = "..00000000000.... ";
Line12 = "...000000000..... ";
Line13 = ".................";
Fills = (((((((((((Line1 + Line2) + Line3) + Line4) + Line5) + Line6) + Line7) + Line8) + Line9) + Line10) + Line11) + Line12) + Line13;
};
doLevel12 = function () {
timeInterval = 1260000 /* 0x1339E0 */;
EnableBonuses = ["any", "bomb", "dynamite", "firewall", "magnet", "fireworks", "shuffle", "lightning"];
enabledColors = [0, 2, 4, 6, 7, 9, 1];
task = ["blockcell"];
bonusFrequency = 0.08;
bgColor = "bg2";
discriptioni = function () {
var _local1 = new Object();
_local1.bonus = "lightning";
_local1.block = false;
return(_local1);
};
discriptionq = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "car_01";
_local1.lock = true;
return(_local1);
};
discriptionw = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "car_02";
_local1.lock = true;
return(_local1);
};
discriptione = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "car_03";
_local1.lock = true;
return(_local1);
};
discriptionr = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "car_04";
_local1.lock = true;
return(_local1);
};
discriptiont = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "car_05";
_local1.lock = true;
return(_local1);
};
discriptiony = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "car_06";
_local1.lock = true;
return(_local1);
};
discriptiona = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "black";
_local1.lock = true;
return(_local1);
};
discriptions = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "black-1";
_local1.lock = true;
return(_local1);
};
discriptiond = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "black-2";
_local1.lock = true;
return(_local1);
};
discriptionf = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "black-3";
_local1.lock = true;
return(_local1);
};
discriptiong = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "orange";
_local1.lock = true;
return(_local1);
};
discriptionh = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "orange-1";
_local1.lock = true;
return(_local1);
};
discriptionj = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "orange-2";
_local1.lock = true;
return(_local1);
};
discriptionk = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "orange-3";
_local1.lock = true;
return(_local1);
};
discriptionz = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "car_01r";
_local1.lock = true;
return(_local1);
};
discriptionx = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "car_02r";
_local1.lock = true;
return(_local1);
};
discriptionc = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "car_03r";
_local1.lock = true;
return(_local1);
};
discriptionv = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "car_04r";
_local1.lock = true;
return(_local1);
};
discriptionb = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "car_05r";
_local1.lock = true;
return(_local1);
};
discriptionn = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "car_06r";
_local1.lock = true;
return(_local1);
};
discriptionu = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "magenta";
_local1.lock = true;
return(_local1);
};
Line1 = "................. ";
Line2 = ".........00...... ";
Line3 = ".......000000.... ";
Line4 = ".....000000000... ";
Line5 = "...00000000000... ";
Line6 = ".000000000000000. ";
Line7 = ".000000000000000. ";
Line8 = ".0000000uuu00000. ";
Line9 = ".000we00uuux0000. ";
Line10 = ".00rty00nbbbv00.. ";
Line11 = ".fdssdfasddaff... ";
Line12 = ".ghikhgighjih.... ";
Line13 = ".................";
Field = (((((((((((Line1 + Line2) + Line3) + Line4) + Line5) + Line6) + Line7) + Line8) + Line9) + Line10) + Line11) + Line12) + Line13;
Line1 = "................. ";
Line2 = ".........11...... ";
Line3 = ".......111111.... ";
Line4 = ".....111111111... ";
Line5 = "...11111111111... ";
Line6 = ".111111111111111. ";
Line7 = ".111110000001111. ";
Line8 = ".000000000000000. ";
Line9 = ".000000000000000. ";
Line10 = ".00000000000000.. ";
Line11 = ".0000000000000... ";
Line12 = ".000000000000.... ";
Line13 = ".................";
Fills = (((((((((((Line1 + Line2) + Line3) + Line4) + Line5) + Line6) + Line7) + Line8) + Line9) + Line10) + Line11) + Line12) + Line13;
};
doLevel13 = function () {
timeInterval = 1260000 /* 0x1339E0 */;
EnableBonuses = ["any", "shuffle", "magnet", "lightning", "fireworks", "dynamite", "bomb", "firewall"];
enabledColors = [0, 2, 4, 6, 7, 9, 1];
task = ["block"];
bonusFrequency = 0.08;
bgColor = "bg2";
discription1 = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "car_01";
_local1.lock = true;
return(_local1);
};
discription2 = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "kran_02";
_local1.lock = true;
return(_local1);
};
discription3 = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "kran_03";
_local1.lock = true;
return(_local1);
};
discription4 = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "kran_04";
_local1.lock = true;
return(_local1);
};
discription5 = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "kran_05";
_local1.lock = true;
return(_local1);
};
discription6 = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "kran_06";
_local1.lock = true;
return(_local1);
};
discription7 = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "kran_07";
_local1.lock = true;
return(_local1);
};
discription8 = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "kran_08";
_local1.lock = true;
return(_local1);
};
discriptionq = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "blue";
_local1.lock = true;
return(_local1);
};
discriptionQ = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "blue-conerlu";
_local1.lock = true;
return(_local1);
};
discriptionE = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "blue-conerru";
_local1.lock = true;
return(_local1);
};
discriptionw = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "blue-1";
_local1.lock = true;
return(_local1);
};
discriptione = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "blue-2";
_local1.lock = true;
return(_local1);
};
discriptionr = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "blue-3";
_local1.lock = true;
return(_local1);
};
discriptiona = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "blue-dark";
_local1.lock = true;
return(_local1);
};
discriptions = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "blue-dark-1";
_local1.lock = true;
return(_local1);
};
discriptiond = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "blue-dark-2";
_local1.lock = true;
return(_local1);
};
discriptionf = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "blue-dark-3";
_local1.lock = true;
return(_local1);
};
discriptionz = function () {
var _local1 = new Object();
_local1.bonus = "dynamite";
_local1.block = false;
_local1.lock = false;
return(_local1);
};
discriptionX = function () {
var _local1 = new Object();
_local1.bonus = "firewall";
_local1.block = false;
_local1.lock = true;
return(_local1);
};
discriptionx = function () {
var _local1 = new Object();
_local1.bonus = "firewall";
_local1.block = false;
_local1.lock = false;
return(_local1);
};
discriptionc = function () {
var _local1 = new Object();
_local1.bonus = "firewall";
_local1.block = false;
_local1.lock = false;
return(_local1);
};
discriptionL = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "kran_05h";
_local1.lock = true;
return(_local1);
};
Line1 = "................. ";
Line2 = "..zcLLLLLL.0000.. ";
Line3 = "..5........0000.. ";
Line4 = "..z........0000.. ";
Line5 = "..5........0000.. ";
Line6 = "..z........0000.. ";
Line7 = "..5..QEQEQ.0000.. ";
Line8 = "..z..qewrw.awrs.. ";
Line9 = "..5..rwqwr.esfw.. ";
Line10 = "..z..rewqw.drwd.. ";
Line11 = "..5........rfsw.. ";
Line12 = "..zewxrqxeXaewa.. ";
Line13 = ".................";
Field = (((((((((((Line1 + Line2) + Line3) + Line4) + Line5) + Line6) + Line7) + Line8) + Line9) + Line10) + Line11) + Line12) + Line13;
Line1 = "................. ";
Line2 = "..00000000.0000.. ";
Line3 = "..0..00000.0000.. ";
Line4 = "..0..00000.0000.. ";
Line5 = "..0..00000.0000.. ";
Line6 = "..0..00000.0000.. ";
Line7 = "..0..00000.0000.. ";
Line8 = "..0..00000.0000.. ";
Line9 = "..0..00000.0000.. ";
Line10 = "..0..00000.0000.. ";
Line11 = "..0........0000.. ";
Line12 = "..0000000000000.. ";
Line13 = ".................";
Fills = (((((((((((Line1 + Line2) + Line3) + Line4) + Line5) + Line6) + Line7) + Line8) + Line9) + Line10) + Line11) + Line12) + Line13;
};
doLevel14 = function () {
timeInterval = 1260000 /* 0x1339E0 */;
EnableBonuses = ["any", "bomb", "dynamite", "firewall", "magnet", "fireworks", "shuffle", "lightning"];
enabledColors = [0, 2, 4, 6, 7, 8, 1];
task = ["block"];
bonusFrequency = 0.08;
bgColor = "bg2";
discription5 = function () {
var _local1 = new Object();
_local1.bonus = "dynamite";
_local1.block = false;
return(_local1);
};
discription9 = function () {
var _local1 = new Object();
_local1.bonus = "bomb";
_local1.block = false;
return(_local1);
};
discription1 = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "blue-dark";
_local1.lock = true;
return(_local1);
};
discription2 = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "blue-dark-conerru";
_local1.lock = true;
return(_local1);
};
discription3 = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "blue-dark-conerlu";
_local1.lock = true;
return(_local1);
};
discription4 = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "blue-dark-conerld";
_local1.lock = true;
return(_local1);
};
discription6 = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "red-triangler";
_local1.lock = true;
return(_local1);
};
discription7 = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "white";
_local1.lock = true;
return(_local1);
};
discription8 = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "black-conerru";
_local1.lock = true;
return(_local1);
};
discriptionq = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "white-conerru";
_local1.lock = true;
return(_local1);
};
discriptionw = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "white-conerrd";
_local1.lock = true;
return(_local1);
};
discriptione = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "white-coner-30lu";
_local1.lock = true;
return(_local1);
};
discriptionr = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "white-coner-60lu";
_local1.lock = true;
return(_local1);
};
Line1 = "................. ";
Line2 = "....000000000.... ";
Line3 = "....000311200.... ";
Line4 = "...000e741120.... ";
Line5 = "...000r7711100... ";
Line6 = "...00098741100... ";
Line7 = "....0e7777q100... ";
Line8 = ".....r7777w100... ";
Line9 = "......77775100... ";
Line10 = "......677w110.... ";
Line11 = "......77w711..... ";
Line12 = "........7711..... ";
Line13 = ".................";
Field = (((((((((((Line1 + Line2) + Line3) + Line4) + Line5) + Line6) + Line7) + Line8) + Line9) + Line10) + Line11) + Line12) + Line13;
Line1 = "................. ";
Line2 = "....000000000.... ";
Line3 = "....000000000.... ";
Line4 = "...0000000000.... ";
Line5 = "...00000000000... ";
Line6 = "...00000000000... ";
Line7 = "....0000000000... ";
Line8 = ".....000000000... ";
Line9 = "......00000000... ";
Line10 = "......0000000.... ";
Line11 = "......000000..... ";
Line12 = "........0000..... ";
Line13 = ".................";
Fills = (((((((((((Line1 + Line2) + Line3) + Line4) + Line5) + Line6) + Line7) + Line8) + Line9) + Line10) + Line11) + Line12) + Line13;
};
doLevel15 = function () {
timeInterval = 1260000 /* 0x1339E0 */;
EnableBonuses = ["any", "bomb", "dynamite", "firewall", "magnet", "fireworks", "shuffle", "lightning"];
enabledColors = [0, 2, 4, 5, 8, 9];
bgColor = "bg3";
bonusFrequency = 0.08;
task = ["block"];
discriptionw = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "black-conerlu";
_local1.lock = true;
return(_local1);
};
discriptionq = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "black-conerru";
_local1.lock = true;
return(_local1);
};
discriptione = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "black-conerld";
_local1.lock = true;
return(_local1);
};
discriptionr = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "black-conerrd";
_local1.lock = true;
return(_local1);
};
discription1 = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "magenta";
_local1.lock = true;
return(_local1);
};
discription7 = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "magenta-1";
_local1.lock = true;
return(_local1);
};
discription8 = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "magenta-2";
_local1.lock = true;
return(_local1);
};
discription9 = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "magenta-3";
_local1.lock = true;
return(_local1);
};
discription2 = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "magenta-conerlu";
_local1.lock = true;
return(_local1);
};
discription3 = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "blue";
_local1.lock = true;
return(_local1);
};
discription4 = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "blue-conerru";
_local1.lock = true;
return(_local1);
};
discription5 = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "white-conerru";
_local1.lock = true;
return(_local1);
};
discription6 = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "red";
_local1.lock = true;
return(_local1);
};
discriptionz = function () {
var _local1 = new Object();
_local1.itsColor = "?";
_local1.bonus = "unmove";
_local1.block = false;
return(_local1);
};
Line1 = "................. ";
Line2 = "................. ";
Line3 = "..00000000000.... ";
Line4 = ".0000000000000... ";
Line5 = ".00002334000000.. ";
Line6 = ".00198333400000.. ";
Line7 = ".zz69.7981715zz.. ";
Line8 = "...91wq17.wq1.... ";
Line9 = ".....er...er..... ";
Line10 = "................. ";
Line11 = "................. ";
Line12 = "................. ";
Line13 = ".................";
Field = (((((((((((Line1 + Line2) + Line3) + Line4) + Line5) + Line6) + Line7) + Line8) + Line9) + Line10) + Line11) + Line12) + Line13;
Line1 = "................. ";
Line2 = "................. ";
Line3 = "..00000000000.... ";
Line4 = ".0000000000000... ";
Line5 = ".00000000000000.. ";
Line6 = ".00000000000000.. ";
Line7 = ".0000.000000000.. ";
Line8 = "...000000.000.... ";
Line9 = "..0000000000000.. ";
Line10 = "....0000000000... ";
Line11 = "....000000000.... ";
Line12 = "................. ";
Line13 = ".................";
Fills = (((((((((((Line1 + Line2) + Line3) + Line4) + Line5) + Line6) + Line7) + Line8) + Line9) + Line10) + Line11) + Line12) + Line13;
};
doLevel16 = function () {
timeInterval = 1260000 /* 0x1339E0 */;
EnableBonuses = ["any", "bomb", "dynamite", "firewall", "magnet", "fireworks", "shuffle", "lightning"];
enabledColors = [0, 2, 4, 3, 8, 5];
task = ["cell"];
bonusFrequency = 0.08;
bgColor = "bg3";
discriptionz = function () {
var _local1 = new Object();
_local1.itsColor = "?";
_local1.bonus = "unmove";
_local1.block = false;
return(_local1);
};
discriptionq = function () {
var _local1 = new Object();
_local1.itsColor = 2;
_local1.bonus = "key";
_local1.block = false;
return(_local1);
};
discriptionQ = function () {
var _local1 = new Object();
_local1.itsColor = 2;
_local1.bonus = "lock";
_local1.block = false;
return(_local1);
};
discriptionw = function () {
var _local1 = new Object();
_local1.itsColor = 3;
_local1.bonus = "key";
_local1.block = false;
return(_local1);
};
discriptionW = function () {
var _local1 = new Object();
_local1.itsColor = 3;
_local1.bonus = "lock";
_local1.block = false;
return(_local1);
};
discriptione = function () {
var _local1 = new Object();
_local1.itsColor = 4;
_local1.bonus = "key";
_local1.block = false;
return(_local1);
};
discriptionE = function () {
var _local1 = new Object();
_local1.itsColor = 4;
_local1.bonus = "lock";
_local1.block = false;
return(_local1);
};
Line1 = "................. ";
Line2 = "..q00000000000w.. ";
Line3 = "....zzz0000zzz... ";
Line4 = "......z0000z..... ";
Line5 = "......zzzzzz..... ";
Line6 = "................. ";
Line7 = "..............e.. ";
Line8 = "................. ";
Line9 = "....Q..W..E...... ";
Line10 = "................. ";
Line11 = "................. ";
Line12 = "................. ";
Line13 = ".................";
Field = (((((((((((Line1 + Line2) + Line3) + Line4) + Line5) + Line6) + Line7) + Line8) + Line9) + Line10) + Line11) + Line12) + Line13;
Line1 = "................. ";
Line2 = "..0000000000000.. ";
Line3 = "....0000000000... ";
Line4 = "...0000000000.... ";
Line5 = "....0000000000... ";
Line6 = "....000000000.... ";
Line7 = "...000000000000.. ";
Line8 = "...000000000..... ";
Line9 = "....0..0..0...... ";
Line10 = "...111111111..... ";
Line11 = "..11111.11111.... ";
Line12 = "..11111111111.... ";
Line13 = ".................";
Fills = (((((((((((Line1 + Line2) + Line3) + Line4) + Line5) + Line6) + Line7) + Line8) + Line9) + Line10) + Line11) + Line12) + Line13;
};
doLevel17 = function () {
timeInterval = 1260000 /* 0x1339E0 */;
EnableBonuses = ["any", "bomb", "dynamite", "firewall", "magnet", "fireworks", "shuffle", "lightning"];
enabledColors = [0, 2, 4, 6, 7, 8];
task = ["block"];
bonusFrequency = 0.08;
bgColor = "bg3";
discriptionz = function () {
var _local1 = new Object();
_local1.bonus = "firewall";
_local1.block = false;
return(_local1);
};
discriptionx = function () {
var _local1 = new Object();
_local1.bonus = "magnet";
_local1.block = false;
return(_local1);
};
discription1 = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "green";
_local1.lock = true;
return(_local1);
};
discriptionq = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "green-1";
_local1.lock = true;
return(_local1);
};
discriptionw = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "green-2";
_local1.lock = true;
return(_local1);
};
discriptione = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "green-3";
_local1.lock = true;
return(_local1);
};
discriptiona = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "mag-blue";
_local1.lock = true;
return(_local1);
};
discriptions = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "mag-blue-1";
_local1.lock = true;
return(_local1);
};
discriptiond = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "mag-blue-2";
_local1.lock = true;
return(_local1);
};
discriptionf = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "mag-blue-3";
_local1.lock = true;
return(_local1);
};
discription2 = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "green-conerru";
_local1.lock = true;
return(_local1);
};
Line1 = "................. ";
Line2 = ".0000000000...... ";
Line3 = ".00000000000..... ";
Line4 = ".e1w.200000000... ";
Line5 = ".fdsa1w200000000. ";
Line6 = ".ew..fds1w200000. ";
Line7 = ".wq.1w1ea.f2z000. ";
Line8 = ".as.fxx1..e1w000. ";
Line9 = "....q..a...q.12w. ";
Line10 = "...........sas1.. ";
Line11 = "................. ";
Line12 = ".w..e............ ";
Line13 = ".................";
Field = (((((((((((Line1 + Line2) + Line3) + Line4) + Line5) + Line6) + Line7) + Line8) + Line9) + Line10) + Line11) + Line12) + Line13;
Line1 = "................. ";
Line2 = ".0000000000...... ";
Line3 = ".00000000000..... ";
Line4 = ".000.000000000... ";
Line5 = ".000000000000000. ";
Line6 = ".000000000000000. ";
Line7 = ".00000000.000000. ";
Line8 = ".000000000000000. ";
Line9 = ".0000..00000.000. ";
Line10 = ".0000..000000000. ";
Line11 = ".0000....000000.. ";
Line12 = ".0000............ ";
Line13 = ".................";
Fills = (((((((((((Line1 + Line2) + Line3) + Line4) + Line5) + Line6) + Line7) + Line8) + Line9) + Line10) + Line11) + Line12) + Line13;
};
doLevel18 = function () {
timeInterval = 1260000 /* 0x1339E0 */;
EnableBonuses = ["any", "bomb", "dynamite", "firewall", "magnet", "fireworks", "shuffle", "lightning"];
enabledColors = [0, 2, 4, 6, 7, 9, 1];
task = ["cell"];
bonusFrequency = 0.08;
bgColor = "bg3";
Line1 = "................. ";
Line2 = "................. ";
Line3 = "......00000...... ";
Line4 = "..0000000000..... ";
Line5 = "..000000000000... ";
Line6 = "..0000.0000000... ";
Line7 = "..00000.000000... ";
Line8 = "...00000000000... ";
Line9 = "....000000..00... ";
Line10 = "....0000000000... ";
Line11 = "...00000000000... ";
Line12 = "..000000000000... ";
Line13 = ".................";
Field = (((((((((((Line1 + Line2) + Line3) + Line4) + Line5) + Line6) + Line7) + Line8) + Line9) + Line10) + Line11) + Line12) + Line13;
Line1 = "................. ";
Line2 = "................. ";
Line3 = "......00000...... ";
Line4 = "..0000022200..... ";
Line5 = "..022222220000... ";
Line6 = "..0222.2221110... ";
Line7 = "..00222.211110... ";
Line8 = "...00122211110... ";
Line9 = "....012221..10... ";
Line10 = "....0112211110... ";
Line11 = "...00111111110... ";
Line12 = "..000000000000... ";
Line13 = ".................";
Fills = (((((((((((Line1 + Line2) + Line3) + Line4) + Line5) + Line6) + Line7) + Line8) + Line9) + Line10) + Line11) + Line12) + Line13;
};
doLevel19 = function () {
timeInterval = 1260000 /* 0x1339E0 */;
EnableBonuses = ["any", "bomb", "dynamite", "firewall", "magnet", "fireworks", "shuffle", "lightning"];
enabledColors = [0, 2, 4, 6, 7, 8];
task = ["block"];
bonusFrequency = 0.08;
bgColor = "bg3";
discriptionz = function () {
var _local1 = new Object();
_local1.itsColor = 4;
_local1.bonus = "unmove";
_local1.block = false;
return(_local1);
};
discriptiona = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "orange";
_local1.lock = true;
return(_local1);
};
discriptionb = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "orange-1";
_local1.lock = true;
return(_local1);
};
discriptionc = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "orange-2";
_local1.lock = true;
return(_local1);
};
discription1 = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "orange-conerlu";
_local1.lock = true;
return(_local1);
};
discription2 = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "orange-conerru";
_local1.lock = true;
return(_local1);
};
discription3 = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "orange-conerrd";
_local1.lock = true;
return(_local1);
};
discription4 = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "orange-conerld";
_local1.lock = true;
return(_local1);
};
discriptionq = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "yellow";
_local1.lock = true;
return(_local1);
};
discriptionw = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "yellow-1";
_local1.lock = true;
return(_local1);
};
discriptione = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "yellow-2";
_local1.lock = true;
return(_local1);
};
discriptionr = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "yellow-conerru";
_local1.lock = true;
return(_local1);
};
discriptiont = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "yellow-conerrd";
_local1.lock = true;
return(_local1);
};
discriptiony = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "yellow-conerld";
_local1.lock = true;
return(_local1);
};
discriptionu = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "yellow-conerlu";
_local1.lock = true;
return(_local1);
};
discriptions = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "blue";
_local1.lock = true;
return(_local1);
};
discriptiond = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "blue-1";
_local1.lock = true;
return(_local1);
};
discriptionf = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "blue-2";
_local1.lock = true;
return(_local1);
};
discriptiong = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "blue-conerru";
_local1.lock = true;
return(_local1);
};
discriptionh = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "blue-conerrd";
_local1.lock = true;
return(_local1);
};
discriptionj = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "blue-conerld";
_local1.lock = true;
return(_local1);
};
discriptionk = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "blue-conerlu";
_local1.lock = true;
return(_local1);
};
Line1 = "................. ";
Line2 = ".0g000k00uewqr0.. ";
Line3 = ".0s000f00q...q0.. ";
Line4 = ".0d000d00wqwew0.. ";
Line5 = ".zjsdfhzzt...yz.. ";
Line6 = ".......12........ ";
Line7 = "....2..ab..1..... ";
Line8 = "....b..ab..c..... ";
Line9 = "....b..bc..b..... ";
Line10 = "....a.1ab2.c..... ";
Line11 = "....cabcbaca..... ";
Line12 = "......4ac3....... ";
Line13 = ".................";
Field = (((((((((((Line1 + Line2) + Line3) + Line4) + Line5) + Line6) + Line7) + Line8) + Line9) + Line10) + Line11) + Line12) + Line13;
Line1 = "................. ";
Line2 = ".00000000000000.. ";
Line3 = ".00000000000000.. ";
Line4 = ".00000000000000.. ";
Line5 = ".00000000000000.. ";
Line6 = ".00000000000000.. ";
Line7 = ".00000000000000.. ";
Line8 = ".00000000000000.. ";
Line9 = ".00000000000000.. ";
Line10 = ".00000000000000.. ";
Line11 = ".00000000000000.. ";
Line12 = ".00000000000000.. ";
Line13 = ".................";
Fills = (((((((((((Line1 + Line2) + Line3) + Line4) + Line5) + Line6) + Line7) + Line8) + Line9) + Line10) + Line11) + Line12) + Line13;
};
doLevel20 = function () {
timeInterval = 1260000 /* 0x1339E0 */;
EnableBonuses = ["any", "bomb", "dynamite", "firewall", "magnet", "fireworks", "shuffle", "lightning"];
enabledColors = [0, 2, 4, 6, 7, 9, 1];
task = ["cell"];
bonusFrequency = 0.08;
bgColor = "bg3";
discriptionZ = function () {
var _local1 = new Object();
_local1.itsColor = 2;
_local1.bonus = "key";
_local1.block = false;
return(_local1);
};
discriptionz = function () {
var _local1 = new Object();
_local1.itsColor = 2;
_local1.bonus = "lock";
_local1.block = false;
return(_local1);
};
discriptionX = function () {
var _local1 = new Object();
_local1.itsColor = 4;
_local1.bonus = "key";
_local1.block = false;
return(_local1);
};
discriptionx = function () {
var _local1 = new Object();
_local1.itsColor = 4;
_local1.bonus = "lock";
_local1.block = false;
return(_local1);
};
discriptionb = function () {
var _local1 = new Object();
_local1.bonus = "bomb";
_local1.block = false;
return(_local1);
};
Line1 = "................. ";
Line2 = ".....X0000Z...... ";
Line3 = "....00000000..... ";
Line4 = "....00000000..... ";
Line5 = "..zzzzz..xxxxx... ";
Line6 = "................. ";
Line7 = "................. ";
Line8 = "................. ";
Line9 = ".......b......... ";
Line10 = "................. ";
Line11 = "................. ";
Line12 = "................. ";
Line13 = ".................";
Field = (((((((((((Line1 + Line2) + Line3) + Line4) + Line5) + Line6) + Line7) + Line8) + Line9) + Line10) + Line11) + Line12) + Line13;
Line1 = "................. ";
Line2 = ".....000000...... ";
Line3 = "....00000000..... ";
Line4 = "....00000000..... ";
Line5 = "..11000..00011... ";
Line6 = "..1110....0111... ";
Line7 = "..11111..11111... ";
Line8 = "..11111111111.... ";
Line9 = "...111111111..... ";
Line10 = ".....111111...... ";
Line11 = ".....111111...... ";
Line12 = "......1111....... ";
Line13 = ".................";
Fills = (((((((((((Line1 + Line2) + Line3) + Line4) + Line5) + Line6) + Line7) + Line8) + Line9) + Line10) + Line11) + Line12) + Line13;
};
doLevel21 = function () {
timeInterval = 1260000 /* 0x1339E0 */;
EnableBonuses = ["any", "bomb", "dynamite", "firewall", "magnet", "fireworks", "shuffle", "lightning"];
enabledColors = [0, 2, 4, 8, 3, 9, 1];
task = ["block"];
bonusFrequency = 0.08;
bgColor = "bg3";
discriptionp = function () {
var _local1 = new Object();
_local1.itsColor = "?";
_local1.bonus = "unmove";
_local1.block = false;
return(_local1);
};
discriptiona = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "green";
_local1.lock = true;
return(_local1);
};
discriptions = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "green-1";
_local1.lock = true;
return(_local1);
};
discriptiond = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "green-2";
_local1.lock = true;
return(_local1);
};
discriptionf = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "green-3";
_local1.lock = true;
return(_local1);
};
discriptionz = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "black";
_local1.lock = true;
return(_local1);
};
discriptionx = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "black-1";
_local1.lock = true;
return(_local1);
};
discriptionc = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "black-2";
_local1.lock = true;
return(_local1);
};
discriptionv = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "black-3";
_local1.lock = true;
return(_local1);
};
discriptionh = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "black";
_local1.lock = true;
return(_local1);
};
discriptionj = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "black-1";
_local1.lock = true;
return(_local1);
};
discriptionk = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "black-2";
_local1.lock = true;
return(_local1);
};
discriptionl = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "black-3";
_local1.lock = true;
return(_local1);
};
discriptionq = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "eg_1";
_local1.lock = true;
return(_local1);
};
discriptionw = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "eg_2";
_local1.lock = true;
return(_local1);
};
discriptione = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "eg_3";
_local1.lock = true;
return(_local1);
};
discriptionr = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "eg_1r";
_local1.lock = true;
return(_local1);
};
discriptiont = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "eg_2r";
_local1.lock = true;
return(_local1);
};
discriptiony = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "eg_3r";
_local1.lock = true;
return(_local1);
};
Line1 = "................. ";
Line2 = "......00...0..... ";
Line3 = "...0.0000r.0..... ";
Line4 = "...00000ytx00.... ";
Line5 = "..000000aavzxc... ";
Line6 = "..ppppppjklhkv... ";
Line7 = ".............jc.. ";
Line8 = ".q.....r..q...xc. ";
Line9 = ".we...yt..we..zx. ";
Line10 = ".asdsaadafdasfd.. ";
Line11 = "..asdfasfa.dfd... ";
Line12 = "....s.d.s..f..... ";
Line13 = ".................";
Field = (((((((((((Line1 + Line2) + Line3) + Line4) + Line5) + Line6) + Line7) + Line8) + Line9) + Line10) + Line11) + Line12) + Line13;
Line1 = "................. ";
Line2 = "......00...0..... ";
Line3 = "...0.00000.0..... ";
Line4 = "...0000000000.... ";
Line5 = "..000000000000... ";
Line6 = "..000000000000... ";
Line7 = "..0000000000000.. ";
Line8 = ".000000000000000. ";
Line9 = ".000000000000000. ";
Line10 = ".00000000000000.. ";
Line11 = "..00000000.000... ";
Line12 = "....0.0.0..0..... ";
Line13 = ".................";
Fills = (((((((((((Line1 + Line2) + Line3) + Line4) + Line5) + Line6) + Line7) + Line8) + Line9) + Line10) + Line11) + Line12) + Line13;
};
doLevelDemoShuffle = function () {
trace("doDemoShuffle");
timeInterval = 1000000 /* 0x0F4240 */;
EnableBonuses = ["any", "bombBig", "dynamiteBig", "firewallBig", "magnetBig", "fireworksBig", "shuffleBig", "lightningBig"];
enabledColors = [0, 2, 4, 6, 7, 9];
task = ["jewel", 1000000];
bonusFrequency = 0.2;
levelHints = [];
bgColor = "bg1";
discriptions = function () {
var _local1 = new Object();
_local1.bonus = "bombBig";
_local1.block = false;
return(_local1);
};
discription2 = function () {
var _local1 = new Object();
_local1.itsColor = 2;
_local1.bonus = false;
_local1.block = false;
return(_local1);
};
Line1 = "................. ";
Line2 = "................. ";
Line3 = "................. ";
Line4 = "................. ";
Line5 = ".......000....... ";
Line6 = "......00000...... ";
Line7 = ".....0000000..... ";
Line8 = ".....0000s00..... ";
Line9 = ".....0000000..... ";
Line10 = "......00000...... ";
Line11 = ".......000....... ";
Line12 = "................. ";
Line13 = ".................";
Field = (((((((((((Line1 + Line2) + Line3) + Line4) + Line5) + Line6) + Line7) + Line8) + Line9) + Line10) + Line11) + Line12) + Line13;
Line1 = "................. ";
Line2 = "................. ";
Line3 = "................. ";
Line4 = "................. ";
Line5 = ".......000....... ";
Line6 = "......00000...... ";
Line7 = ".....0000000..... ";
Line8 = ".....0000000..... ";
Line9 = ".....0000000..... ";
Line10 = "......00000...... ";
Line11 = ".......000....... ";
Line12 = "................. ";
Line13 = ".................";
Fills = (((((((((((Line1 + Line2) + Line3) + Line4) + Line5) + Line6) + Line7) + Line8) + Line9) + Line10) + Line11) + Line12) + Line13;
};
doLevelDemoShuffle2 = function () {
trace("doDemoShuffle");
timeInterval = 1000000 /* 0x0F4240 */;
enabledColors = [0, 2, 4, 6, 7, 9];
task = ["jewel", 1000000];
levelHints = [];
bgColor = "bg1";
discriptions = function () {
var _local1 = new Object();
_local1.bonus = "dynamite";
_local1.block = false;
return(_local1);
};
discription2 = function () {
var _local1 = new Object();
_local1.itsColor = 2;
_local1.bonus = false;
_local1.block = false;
return(_local1);
};
Line1 = "....... ";
Line2 = ".00000. ";
Line3 = ".02220. ";
Line4 = ".00s00. ";
Line5 = ".00000. ";
Line6 = ".00000. ";
Line7 = ".......";
Field = (((((Line1 + Line2) + Line3) + Line4) + Line5) + Line6) + Line7;
Line1 = "....... ";
Line2 = ".00000. ";
Line3 = ".00000. ";
Line4 = ".00000. ";
Line5 = ".00000. ";
Line6 = ".00000. ";
Line7 = ".......";
Fills = (((((Line1 + Line2) + Line3) + Line4) + Line5) + Line6) + Line7;
};
var rootURL = "http://www.enkord.com/";
var downloadPromotedURL = "http://www.enkord.com/pages.php?s0=contacts";
if (moreGamesURL == undefined) {
moreGamesURL = rootURL;
}
if (downloadURL == undefined) {
downloadURL = rootURL + "games/clayside/download/";
} else {
greatgames._visible = false;
greatgames_btn.enabled = false;
game_logo_mc._x = 110;
not_our_site = true;
}
if (orderURL == undefined) {
orderURL = rootURL + "product.php?action=order&product=clayside&from=webversion";
}
if (hiscoreURL == undefined) {
hiscoreURL = rootURL + "games/clayside/web/hiscore.php";
}
var _r;
var paused = false;
var curscreen = "none";
var curweapon = 0;
aimsrc.duplicateMovieClip("cursor", 15000);
var mouseState = false;
var prevMouseState = false;
var gameInit = true;
var score = 0;
var musicEnabled = ((music_trig != undefined) ? false : true);
var soundEnabled = ((sound_trig != undefined) ? false : true);
signsound.gotoAndPlay((soundEnabled ? "on" : "off"));
signmusic.gotoAndPlay((musicEnabled ? "on" : "off"));
var hintsEnabled = true;
var NofPause = 5;
var numberOfGame = 0;
var numberOfMap = 0;
var numberOfLevel = 1;
var levelsNumber = 21;
var MapsLevels = [0, 7, 7, 7];
var mapsNumber = (MapsLevels.length - 1);
var AdvertPauses = [3, 3, 3, 2, 2, 2, 1];
var mouseInRect = ((((x > 0) && (x < 480)) && (y > 0)) && (y < 360));
if (mouseInRect) {
Mouse.hide();
}
cursor.gotoAndPlay("arrow");
Frame 4
_quality = "high";
playMusic("menumusic");
firstmenu.txt11 = menu_txt1;
firstmenu.txt21 = menu_txt2;
firstmenu.txt31 = menu_txt3;
firstmenu.txt41 = menu_txt4;
firstmenu.snd = sound_txt;
firstmenu.msc = music_txt;
firstmenu.hnt = hints_txt;
firstmenu.play_b.txt = pn_button;
firstmenu.free_b.txt = fdl_button;
firstmenu.play_b.txt_shadow = pn_button;
firstmenu.free_b.txt_shadow = fdl_button;
Frame 5
updateTitle();
play();
Frame 6
updateTitle();
gotoAndPlay ("titlerepeat");
Frame 7
globalmap._alpha = 0;
var NofPause = 4;
var numofPause = 1;
var thisObj = this;
var elementSize = 32;
newBonus = "";
CHANGE_JEWELS_TIME = 12;
var makeShards = new makeShardsClass();
Array.prototype.addArray = function (addedArray) {
var _local3 = addedArray.length;
var _local4 = this.length;
var _local2 = 0;
while (_local2 < _local3) {
this[_local4 + _local2] = addedArray[_local2];
_local2++;
}
};
gameClass = function (level) {
this.numberOfLevel = level;
this.lastHintNumber = 0;
this.hintTime = 1500;
this.points = 0;
this.paused = false;
this.hintOn = false;
this.uptimer = 0;
this.finished = false;
this.rezult = true;
this.finishedTimer = 0;
this.noMovesTimer = 0;
this.doNothingTimer = 0;
this.giveHintPause = 40;
this.changeInterval = 0;
this.started = false;
};
gameClass.prototype.begin = function () {
_root.doLevel0();
_root["doLevel" + this.numberOfLevel]();
if (numberOfGame > 0) {
EnableBonuses = ["any", "bomb", "dynamite", "firewall", "magnet", "fireworks", "shuffle", "lightning"];
newBonus = "";
}
if (numberOfLevel == 11) {
EnableBonuses = ["any", "bomb", "dynamite", "firewall", "magnet", "shuffle", "lightning"];
}
if (numberOfGame == 1) {
enabledColors = [0, 1, 2, 4, 6, 7, 3];
}
if (numberOfGame == 2) {
enabledColors = [0, 1, 2, 4, 6, 7, 3, 5];
}
if (numberOfGame == 3) {
enabledColors = [0, 1, 2, 4, 6, 7, 3, 5, 8];
}
if (numberOfGame > 3) {
enabledColors = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9];
}
this.gameField = new gameFieldClass(Fills, Field, enabledColors, task);
this.gameField.build();
progr.taskicon.gotoAndPlay(task[0]);
};
gameClass.prototype.beginPlay = function () {
this.gameField.showTask();
this.started = true;
_root.levelNum.gotoAndPlay("del");
this.timer = new timerClass();
_root.playSound("start_level");
};
gameClass.prototype.update = function () {
this.uptimer++;
if (this.uptimer == 4) {
this.uptimer = 0;
if (this.gameField.removeGameItems()) {
if (this.doNothingTimer < this.giveHintPause) {
this.doNothingTimer = 0;
} else if (!this.paused) {
this.doNothingTimer++;
}
} else if (!this.paused) {
this.doNothingTimer++;
}
this.gameField.removeCells();
this.gameField.test();
this.gameField.setSpecial();
this.gameField.giveSpecial();
if (!this.throughOut) {
this.gameField.formateAddGameItems();
this.gameField.makeNew();
}
if (this.gameField.WeaponItems.length) {
this.gameField.weaponsmoving = true;
} else {
this.gameField.weaponsmoving = false;
this.gameField.clearWillRemoves();
}
if (!this.gameField.MovieTape.length) {
this.gameField.setMovieTape();
}
}
if (!this.paused) {
this.gameField.sortGameItems();
this.gameField.motion();
if (this.gameField.movieTapeDirection && (!auto)) {
this.gameField.moveMovieTape();
}
}
if (_root.hintsEnabled) {
if ((((this.timer.getTotalTime() >= levelHints[this.lastHintNumber]) && (levelHints[this.lastHintNumber] != undefined)) && (!this.finished)) && (!this.gameField.giveHint)) {
_root["doHint" + this.lastHintNumber]();
this.lastHintNumber++;
if (numberOfLevel == 1) {
var _local3 = this.gameField.putHint1(hintItems);
} else {
var _local3 = this.gameField.putHint(hintItems);
}
if (_local3) {
this.gameField.giveHint = true;
this.hintOn = true;
this.paused = true;
this.timer.setPauseInterval(this.hintTime);
this.timer.stopIt();
}
}
}
if (this.gameField.isFinish() && (!this.finished)) {
this.finished = true;
this.rezult = true;
_root.playSound("level_complete");
_root.win._visible = true;
}
if (this.finished) {
this.finishedTimer++;
if (this.finishedTimer == 150) {
this.finish(this.rezult);
}
}
if ((this.timer.getTotalTime() >= timeInterval) && (!this.finished)) {
this.finished = true;
this.rezult = false;
_root.over._visible = true;
this.playSound("level_up");
}
this.paused = this.timer.isPause() || (this.timer.isPauseInterval());
if ((!this.paused) && (!this.finished)) {
clock.updateClock(this.timer.getTotalTime(), timeInterval);
}
if (((this.doNothingTimer == this.giveHintPause) && (!this.gameField.giveHint)) && (!auto)) {
this.gameField.giveHint = true;
if ((this.gameField.noMoves() && (!this.noMovesTimer)) && (!this.gameField.MoveItems.length)) {
this.noMovesTimer = 1;
}
}
if (this.noMovesTimer) {
this.noMovesTimer++;
}
if ((this.noMovesTimer > 30) && (this.noMovesTimer < 45)) {
this.gameField.shake();
}
if (this.noMovesTimer == 45) {
this.gameField.changeJewels();
this.noMovesTimer = 0;
}
if (((!(this.doNothingTimer % 15)) && (this.doNothingTimer)) && (!this.uptimer)) {
this.gameField.blickItemsRemain();
}
if (this.doNothingTimer >= (this.giveHintPause + 10)) {
this.gameField.giveHint = false;
this.doNothingTimer = 0;
this.gameField.removeHint();
}
};
gameClass.prototype.finish = function (rezult) {
_root.playMusic("menumusic");
trace("finish");
Mouse.hide();
cursor._visible = true;
if (rezult) {
_root.score = _root.score + this.points;
_root.numberOfLevel++;
var _local3 = 0;
var _local4 = 0;
do {
_local4 = _local4 + _root.AdvertPauses[_local3];
_local3++;
} while ((_local4 < (_root.numberOfLevel - 1)) && (_local3 < _root.AdvertPauses.length));
if (((_local4 == (_root.numberOfLevel - 1)) || (_local4 < _root.numberOfLevel)) || (_root.numberOfGame)) {
_root.gotoAndPlay("levelpause" + _root.numofPause);
if (_root.numofPause == _root.NofPause) {
_root.numofPause = 0;
}
_root.numofPause++;
} else {
_root.gotoAndPlay("levelpause");
}
} else {
_root.gotoAndPlay("gameover");
}
};
gameClass.prototype.addPoints = function (somePoints) {
this.points = this.points + (somePoints * (numberOfGame + 1));
};
gameClass.prototype.setPause = function (somePoints) {
if (this.paused) {
if (!this.hintOn) {
this.timer.continueIt();
thisObj.Pause._visible = false;
}
} else {
this.timer.stopIt();
thisObj.Pause._visible = true;
}
};
gameFieldClass = function (mySFields, mySFills, myEnabledColors, myTask) {
this.SFields = mySFields;
this.SFills = mySFills;
this.enabledColors = myEnabledColors;
this.task = myTask;
this.Field = new Array();
this.Fills = new Array();
this.graph = new Array();
this.Types = new Array();
this.GameItems = new Array();
this.MoveItems = new Array();
this.AddGameItems = new Array();
this.AddGameItemsRes = new Array();
this.FallingItems = new Array();
this.FallingInField = new Array();
this.WeaponItems = new Array();
this.hintItems = new Array();
this.Specials = new Array();
this.Bonuses = new Array();
this.Cells = new Array();
this.RemovedCells = new Array();
this.RemovedGuns = new Array();
this.Weapons = new Array();
this.MovieTape = new Array();
this.Answers = new Array();
this.movieTapeDirection = null;
this.selectItem = null;
this.widthOfWindow = 460;
this.heightOfWindow = 380;
this.numberOfItems = 0;
this.numberOfCircles = 0;
this.flamesNumber = 0;
this.cellsNumber = 0;
this.changing = false;
this.changingdir = false;
this.changeCounter = 0;
this.changeTime = 4;
this.weaponsmoving = false;
this.colorsNumber = this.enabledColors.length - 1;
this.blocksRemoved = 0;
this.blocksTotal = 0;
this.fillsTotal = 0;
this.fillsRemoved = 0;
this.jewelsRemoved = 0;
this.chainNum = 0;
this.giveHint = false;
this.numHA = 0;
this.hintArrowsItem = null;
this.throughOut = false;
this.sqrRadiusAffect = 5.29;
this.fireworksItemsNumber = 5;
this.backMovieTape = false;
};
gameFieldClass.prototype.translator = function (S) {
var _local3 = new Array();
_local3[0] = new Array();
var _local2 = 0;
var _local5 = 0;
var _local1 = 0;
do {
s0 = S.substr(_local1, 1);
if (s0 == " ") {
_local2 = 0;
_local5++;
_local1++;
s0 = S.substr(_local1, 1);
}
if (_local3[_local2] == undefined) {
_local3[_local2] = new Array();
}
_local3[_local2][_local5] = s0;
_local2++;
_local1++;
} while (_local1 < S.length);
return(_local3);
};
gameFieldClass.prototype.build = function () {
var GameItem;
var myitem;
var elementOfGF;
var NofItem;
var Parameters;
this.Field = this.translator(this.SFields);
this.Fills = this.translator(this.SFills);
var i = 0;
while (i < (this.Field.length - 1)) {
this.graph[i] = new Array();
this.RemovedGuns[i] = new Array();
var j = 0;
while (j < (this.Field[i].length - 1)) {
this.RemovedGuns[i][j] = false;
this.graph[i][j] = new Object();
j++;
}
i++;
}
var i = 0;
while (i < (this.Field.length - 1)) {
var j = 0;
while (j < (this.Field[i].length - 1)) {
this.setOthers(i, j);
j++;
}
i++;
}
var i = 0;
while (i < (this.Field.length - 1)) {
var j = 0;
while (j < (this.Field[i].length - 1)) {
this.setBorders(i, j);
j++;
}
i++;
}
var i = 0;
while (i < (this.Field.length - 1)) {
var j = 0;
while (j < (this.Field[i].length - 1)) {
if (this.Field[i][j] != ".") {
thisObj.bg.createEmptyMovieClip("elementOfGF" + this.cellsNumber, thisObj.bg.getNextHighestDepth());
myitem = eval ("bg.elementOfGF" + this.cellsNumber);
myitem._x = this.getX(i) + (elementSize / 2);
myitem._y = this.getY(j) + (elementSize / 2);
this.cellsNumber++;
elementOfGF = new elementOfGameFieldClass();
if (this.Field[i][j] > 0) {
this.fillsTotal++;
}
elementOfGF.setIt(i, j, myitem, this.Field[i][j], this);
if (this.Cells[i] == undefined) {
this.Cells[i] = new Array();
}
this.Cells[i][j] = elementOfGF;
}
j++;
}
i++;
}
var i = 0;
while (i < (this.Field.length - 1)) {
this.AddGameItems[i] = 0;
this.FallingInField[i] = 0;
this.FallingItems[i] = new Array();
var j = (this.Field[i].length - 1);
while (j >= 0) {
if (this.Fills[i][j] != ".") {
if (this.Fills[i][j] != "?") {
Parameters = _root["discription" + this.Fills[i][j]]();
} else {
Parameters = _root.discription0();
}
var color = Parameters.itsColor;
if (color != "?") {
NofItem = this.GameItems.length;
thisObj.jewels.createEmptyMovieClip("GameItem" + NofItem, thisObj.jewels.getNextHighestDepth());
myitem = eval ("jewels.GameItem" + NofItem);
GameItem = new gameItemClass();
if (Parameters.block) {
this.blocksTotal++;
}
GameItem.setIt(myitem, color, Parameters.bonus, Parameters.block, Parameters.lock, NofItem, this);
this.Cells[i][j].put(GameItem);
delete Parameters;
this.GameItems.push(GameItem);
}
}
j--;
}
i++;
}
var i = 0;
while (i < (this.Field.length - 1)) {
var j = (this.Field[i].length - 1);
while (j >= 0) {
if (this.Fills[i][j] != ".") {
if (this.Fills[i][j] != "?") {
Parameters = _root["discription" + this.Fills[i][j]]();
} else {
Parameters = _root.discription0();
}
var color = Parameters.itsColor;
if (color == "?") {
NofItem = this.GameItems.length;
thisObj.jewels.createEmptyMovieClip("GameItem" + NofItem, thisObj.jewels.getNextHighestDepth());
myitem = eval ("jewels.GameItem" + NofItem);
GameItem = new gameItemClass();
if (Parameters.block) {
this.blocksTotal++;
}
var k = 0;
do {
var color = Parameters.itsColor;
k++;
if (k > 10) {
color = this.enabledColors[k - 10];
}
GameItem.setIt(myitem, color, Parameters.bonus, Parameters.block, Parameters.lock, NofItem, this);
this.Cells[i][j].put(GameItem);
} while (this.testCell(i, j));
delete Parameters;
this.GameItems.push(GameItem);
}
}
j--;
}
i++;
}
};
gameFieldClass.prototype.setItemBorder = function (ii, jj, dir) {
this.numberOfItems++;
borders.attachMovie(dir, "item" + this.numberOfItems, borders.getNextHighestDepth());
var myitem = eval ("borders.item" + this.numberOfItems);
myitem._x = this.getX(ii);
myitem._y = this.getY(jj);
return(myitem);
};
gameFieldClass.prototype.setBorders = function (i, j) {
var _local5;
if (((this.Field[i][j] == ".") && (this.Field[i + 1][j] != ".")) && (this.Field[i + 1][j] != undefined)) {
var _local4 = this.setItemBorder(i + 1, j, "border-left");
_local4.gotoAndStop(bgColor);
}
if (((this.Field[i][j] == ".") && (this.Field[i][j + 1] != ".")) && (this.Field[i][j + 1] != undefined)) {
var _local4 = this.setItemBorder(i, j + 1, "border-up");
_local4.gotoAndStop(bgColor);
}
if (((this.Field[i][j] != ".") && (this.Field[i + 1][j] == ".")) && (this.Field[i][j] != undefined)) {
var _local4 = this.setItemBorder(i + 1, j, "border-right");
_local4.gotoAndStop(bgColor);
}
if (((this.Field[i][j] != ".") && (this.Field[i][j + 1] == ".")) && (this.Field[i][j] != undefined)) {
var _local4 = this.setItemBorder(i, j + 1, "border-bottom");
_local4.gotoAndStop(bgColor);
}
};
gameFieldClass.prototype.setOthers = function (i, j) {
var _local2;
var _local5;
_local2 = "";
_local5 = 0;
if (this.Field[i][j] == ".") {
if (this.Field[i + 1][j] != ".") {
_local5++;
_local2 = _local2 + "right";
}
if (this.Field[i - 1][j] != ".") {
_local5++;
_local2 = _local2 + "left";
}
if (this.Field[i][j + 1] != ".") {
_local5++;
_local2 = _local2 + "down";
}
if (this.Field[i][j - 1] != ".") {
_local5++;
_local2 = _local2 + "up";
}
switch (_local5) {
case 2 :
this.setItemBorder(i, j, "deco" + _local2);
break;
case 3 :
this.setItemBorder(i, j, "deco2");
break;
case 4 :
this.setItemBorder(i, j, "deco2");
}
}
};
gameFieldClass.prototype.showTask = function () {
var _local4;
var _local6;
var _local9;
var _local10;
var _local8 = 0;
var _local3;
var _local5 = 0;
while (_local5 < (this.Field.length - 1)) {
var _local2 = 0;
while (_local2 < (this.Field[_local5].length - 1)) {
if (this.Field[_local5][_local2] != ".") {
_local4 = this.Cells[_local5][_local2];
_local3 = false;
var _local7 = elementSize / 2;
if (_local4.fill) {
_local3 = "fill" + _local4.fill;
}
if (_local4.jewel.blockType) {
_local3 = _local4.jewel.blockType;
}
if (this.task[0] == "jewel") {
_local3 = "jewel" + _local4.jewel.itsColor;
}
if (_local3) {
_local6 = bonuses.attachMovie("flyAwayCopy", "flyAway" + _local8, bonuses.getNextHighestDepth());
_local6._x = this.getX(_local5) + _local7;
_local6._y = this.getY(_local2) + _local7;
_local6.attachMovie(_local3, "Target", 0);
_local6.setPurpose(113, 10);
_local8++;
}
}
_local2++;
}
_local5++;
}
};
gameFieldClass.prototype.isFinish = function () {
var _local2 = true;
switch (this.task[0]) {
case "block" :
if (this.blocksRemoved < this.blocksTotal) {
_local2 = false;
}
progr.update(this.blocksRemoved, this.blocksTotal);
break;
case "cell" :
if (this.fillsRemoved < this.fillsTotal) {
_local2 = false;
}
progr.update(this.fillsRemoved, this.fillsTotal);
break;
case "blockcell" :
if ((this.fillsRemoved < this.fillsTotal) || (this.blocksRemoved < this.blocksTotal)) {
_local2 = false;
}
progr.update(this.fillsRemoved + this.blocksRemoved, this.fillsTotal + this.blocksTotal);
break;
case "jewel" :
if (this.jewelsRemoved < this.task[1]) {
_local2 = false;
}
progr.update(this.jewelsRemoved, this.task[1]);
}
return(_local2);
};
gameFieldClass.prototype.mayChange = function (i, j) {
var _local11 = false;
var _local8 = this.Cells;
var _local12 = _local8[i][j].jewel.itsColor;
var _local4;
var _local3 = [];
var _local7 = [];
var _local2 = 1;
this.selectItem = _local8[i][j];
this.movieTapeDirection = "horisontal";
this.setMovieTape();
var _local5 = this.MovieTape;
var _local6 = _local5.length;
do {
_local4 = _local5[_local2];
this.moveMovieTape(_local4.X, _local4.Y, true);
_local3 = this.stopMovieTape(true);
if (_local3.length) {
_local7.addArray(_local3);
}
_local2++;
} while (_local2 < _local6);
_local2 = 1;
this.clearMovieTape();
this.movieTapeDirection = "vertical";
this.selectItem = _local8[i][j];
this.setMovieTape();
_local5 = this.MovieTape;
_local6 = _local5.length;
do {
_local4 = _local5[_local2];
this.moveMovieTape(_local4.X, _local4.Y, true);
_local3 = this.stopMovieTape(true);
if (_local3.length) {
_local7.addArray(_local3);
}
_local2++;
} while (_local2 < _local6);
this.clearMovieTape();
return(_local7);
};
gameFieldClass.prototype.blickItemsRemain = function () {
var _local2 = (((-this.fillsRemoved) + this.fillsTotal) + (-this.blocksRemoved)) + this.blocksTotal;
if ((!this.blocksTotal) && (!this.fillsTotal)) {
return(undefined);
}
if (_local2 < 10) {
this.showTask();
}
};
gameFieldClass.prototype.noMoves = function (task) {
var _local21 = false;
if (this.movieTapeDirection) {
return(undefined);
}
var _local7 = 0;
var _local3 = 0;
var _local19 = this.Field;
var _local6 = this.Cells;
var _local12 = _local19[0].length;
var _local16 = _local19.length;
var _local2;
var _local4 = [];
var _local5 = [];
_local19 = this.Field;
_local16 = _local19.length - 1;
_local12 = _local19[0].length - 1;
do {
_local7++;
_local3 = 0;
do {
_local3++;
_local2 = _local6[_local7][_local3].jewel;
if (_local2.itsColor && (!_local2.lock)) {
_local5 = this.mayChange(_local7, _local3);
if (_local5.length) {
_local4.addArray(_local5);
}
}
} while (((!_local4.length) || (task == "auto")) && (_local3 < _local12));
} while (((!_local4.length) || (task == "auto")) && (_local7 < _local16));
var _local18 = _local4.length;
var _local13;
var _local15;
var _local11;
var _local8;
var _local10;
var _local9;
_local7 = 0;
while (_local7 < _local18) {
_local13 = _local4[_local7].Items;
_local15 = _local4[_local7].XYData;
iilength = _local13.length;
_local3 = 0;
while (_local3 < iilength) {
_local2 = _local13[_local3];
itemData = _local15[_local3];
if (_local2.blockType && (!_local11)) {
_local11 = _local7;
}
if (_local6[itemData.i][itemData.j].fill && (!_local8)) {
_local8 = _local7;
}
if ((_local2.bonusType == "key") && (!_local10)) {
_local10 = _local7;
}
if ((((_local2.bonusType && (_local2.bonusType != "key")) && (_local2.bonusType != "lock")) && (_local2.bonusType != "unmove")) && (!_local9)) {
trace("bonus");
_local9 = _local7;
}
_local3++;
}
_local7++;
}
var _local17;
if (_local8 != undefined) {
_local17 = _local8;
}
if (_local11 != undefined) {
_local17 = _local11;
}
if (_local9 != undefined) {
_local17 = _local9;
}
if (_local10 != undefined) {
_local17 = _local10;
}
if ((_local17 == undefined) && (_local18)) {
_local17 = Math.round(Math.random() * (_local18 - 1));
}
if ((_local17 != undefined) && (task != "auto")) {
if (!BirdHints[_local4.hintName]) {
bird.gotoAndStop(_local4.hintName);
}
this.removeHint();
this.hintItems = [];
var _local20 = _local4[_local17];
_local2 = this.putHintCircle(_local20.i1, _local20.j1);
this.hintItems.push(_local2);
_local2 = this.putHintCircle(_local20.i2, _local20.j2);
this.hintItems.push(_local2);
_local2 = this.putHintArrow(_local20.i1, _local20.j1, _local20.i2, _local20.j2);
this.hintItems.push(_local2);
}
_local7 = 1;
while (_local7 < _local16) {
_local3 = 1;
while (_local3 < _local12) {
delete _local6[_local7][_local3].jewel.noMovesIndicator;
_local3++;
}
_local7++;
}
if ((_local17 != undefined) && (task == "auto")) {
var _local20 = _local4[_local17];
return(_local20);
}
return(!_local4.length);
};
gameFieldClass.prototype.shake = function () {
var _local3 = this.Field.length - 1;
while (_local3 >= 0) {
var _local2 = this.Field[_local3].length - 1;
while (_local2 >= 0) {
this.Cells[_local3][_local2].isSelected(false);
this.Cells[_local3][_local2].jewel.shake();
_local2--;
}
_local3--;
}
};
gameFieldClass.prototype.changeJewels = function (item) {
var _local3 = this.Field.length - 1;
while (_local3 >= 0) {
this.FallingItems[_local3] = [];
var _local2 = this.Field[_local3].length - 1;
while (_local2 >= 0) {
N = 0;
if (this.Cells[_local3][_local2].jewel.setThroughOut()) {
this.Cells[_local3][_local2].isSelected(true);
this.Cells[_local3][_local2].throughOut = true;
}
_local2--;
}
_local3--;
}
this.throughOut = true;
};
gameFieldClass.prototype.setSelect = function (cell, dir) {
if (this.movieTapeDirection) {
return(undefined);
}
this.movieTapeDirection = dir;
this.selectItem = cell;
this.MovieTape = [];
};
gameFieldClass.prototype.setMovieTape = function () {
function fillMovieTape() {
do {
myitem = Cells[i][j];
if ((((myitem && (!myitem.empty)) && (!myitem.jewel.removed)) && (!myitem.jewel.blockType)) && (!myitem.jewel.lock)) {
MovieTape.push(myitem.jewel);
myitem.jewel.lock = true;
myitem.jewel.corelationEnable = false;
} else {
flag = false;
}
i = i + di;
j = j + dj;
} while (flag);
}
var MovieTape = this.MovieTape;
var Cells = this.Cells;
var di = 0;
var dj = 0;
if (this.movieTapeDirection == "horisontal") {
di = 1;
} else {
dj = 1;
}
var i = this.selectItem.i;
var j = this.selectItem.j;
var myitem;
var flag = true;
fillMovieTape();
MovieTape.rightBound = this.getX(i - di);
MovieTape.downBound = this.getY(j - dj);
flag = true;
di = -di;
dj = -dj;
i = this.selectItem.i + di;
j = this.selectItem.j + dj;
if (MovieTape.length) {
fillMovieTape();
}
if (MovieTape.length < 2) {
this.clearMovieTape();
return(undefined);
}
if (bg.gradient) {
bg.gradient.removeMovieClip();
}
var _local2 = bg.attachMovie("gradient", "gradient", bg.getNextHighestDepth());
MovieTape.leftBound = this.getX(i - (2 * di));
MovieTape.upBound = this.getY(j - (2 * dj));
if (this.movieTapeDirection == "horisontal") {
_local2._width = MovieTape.rightBound - MovieTape.leftBound;
_local2._x = MovieTape.leftBound + (_local2._width / 2);
_local2._y = MovieTape.upBound + (elementSize / 2);
MovieTape.leftBound = MovieTape.leftBound + (elementSize / 2);
MovieTape.rightBound = MovieTape.rightBound - (elementSize / 2);
} else {
_local2._width = MovieTape.downBound - MovieTape.upBound;
_local2._rotation = 90;
_local2._x = MovieTape.leftBound + (elementSize / 2);
_local2._y = MovieTape.upBound + (_local2._height / 2);
MovieTape.upBound = MovieTape.upBound + (elementSize / 2);
MovieTape.downBound = MovieTape.downBound - (elementSize / 2);
}
};
gameFieldClass.prototype.clearMovieTape = function () {
var _local3 = this.MovieTape;
var _local2;
this.movieTapeDirection = false;
this.backMovieTape = false;
_local3.clonItem.itsTarget.removeMovieClip();
delete _local3.clonItem;
var _local7;
var _local6;
var _local5 = this.Cells;
for (var _local4 in _local3) {
_local2 = _local3[_local4];
_local2.itsTarget._x = _local2.X;
_local2.itsTarget._y = _local2.Y;
_local2.itsTarget._yscale = 100;
_local2.itsTarget._xscale = 100;
if ((!_local2.bonusType) || (_local2.bonusType == "any")) {
_local2.corelationEnable = true;
}
_local2.lock = false;
}
this.selectItem = null;
if ((_local3.length >= 2) && (bg.gradient._currentframe > 1)) {
bg.gradient.gotoAndPlay("remove");
} else {
bg.gradient.removeMovieClip();
}
this.MovieTape = [];
};
gameFieldClass.prototype.moveMovieTape = function (X, Y, isTest) {
var _local7 = 0;
var _local6 = 0;
var _local2 = this.MovieTape;
var _local14 = this.Cells;
var _local3 = _local2[0];
var _local5;
if (!X) {
X = jewels._xmouse;
}
if (!Y) {
Y = jewels._ymouse;
}
if (!this.backMovieTape) {
if (this.movieTapeDirection == "horisontal") {
_local7 = X - _local3.itsTarget._x;
if (Math.abs(_local7) > (_local2.rightBound - _local2.leftBound)) {
do {
_local7 = _local7 - ((_local7 / Math.abs(_local7)) * ((_local2.rightBound - _local2.leftBound) + elementSize));
} while (Math.abs(_local7) > (_local2.rightBound - _local2.leftBound));
}
} else {
_local6 = Y - _local3.itsTarget._y;
if (Math.abs(_local6) > (_local2.downBound - _local2.upBound)) {
do {
_local6 = _local6 - ((_local6 / Math.abs(_local6)) * ((_local2.downBound - _local2.upBound) + elementSize));
} while (Math.abs(_local6) > (_local2.downBound - _local2.upBound));
}
}
} else {
dx1 = _local3.X - _local3.itsTarget._x;
dy1 = _local3.Y - _local3.itsTarget._y;
dx2 = ((_local2.rightBound - _local2.leftBound) + elementSize) - Math.abs(dx1);
if (dx2 < Math.abs(dx1)) {
_local7 = ((-dx2) * dx1) / Math.abs(dx1);
} else {
_local7 = dx1;
}
dy2 = ((_local2.downBound - _local2.upBound) + elementSize) - Math.abs(dy1);
if (dy2 < Math.abs(dy1)) {
_local6 = ((-dy2) * dy1) / Math.abs(dy1);
} else {
_local6 = dy1;
}
if (_local7 && (Math.abs(_local7) > _local3.backVelocity)) {
_local7 = (_local7 / Math.abs(_local7)) * _local3.backVelocity;
}
if (_local6 && (Math.abs(_local6) > _local3.backVelocity)) {
_local6 = (_local6 / Math.abs(_local6)) * _local3.backVelocity;
}
if ((Math.abs(_local7) < _local3.backVelocity) && (Math.abs(_local6) < _local3.backVelocity)) {
this.clearMovieTape();
return(undefined);
}
}
var _local16 = 0;
var _local19 = _local2.length;
if (_local2.clonItem) {
_local3 = _local2.clonItem.itsTarget;
_local3._y = _local3._y + _local6;
_local3._x = _local3._x + _local7;
if ((((_local3._x < (_local2.leftBound - elementSize)) || (_local3._x > (_local2.rightBound + elementSize))) || (_local3._y < (_local2.upBound - elementSize))) || (_local3._y > (_local2.downBound + elementSize))) {
_local3.removeMovieClip();
delete _local2.clonItem;
_local2.clonItem = null;
}
}
var _local4;
var _local11;
var _local10;
do {
_local4 = 100;
_local5 = _local2[_local16];
_local3 = _local2[_local16].itsTarget;
_local10 = (_local3._y = _local3._y + _local6);
_local11 = (_local3._x = _local3._x + _local7);
if ((_local3._x < _local2.leftBound) && (this.movieTapeDirection == "horisontal")) {
if (_local7 < 0) {
_local3._x = _local3._x + ((_local2.rightBound - _local2.leftBound) + elementSize);
}
if (_local11 >= (_local2.leftBound - elementSize)) {
if (_local7 < 0) {
_local2.clonItem.itsTarget.removeMovieClip();
delete _local2.clonItem;
_local2.clonItem = this.addGameItem(_local5.itsColor, _local5.blockType, _local5.bonusType, false, "clon");
_local2.clonItem.itsTarget.swapDepths(0);
_local3.swapDepths(1);
_local2.clonItem.setXY(_local11, _local10);
_local4 = ((_local3._x - _local2.rightBound) / elementSize) * 100;
} else {
_local4 = ((_local2.leftBound - _local3._x) / elementSize) * 100;
}
}
}
if ((_local3._x > _local2.rightBound) && (this.movieTapeDirection == "horisontal")) {
if (_local7 > 0) {
_local3._x = _local3._x - ((_local2.rightBound - _local2.leftBound) + elementSize);
}
if (_local11 <= (_local2.rightBound + elementSize)) {
if (_local7 > 0) {
_local2.clonItem.itsTarget.removeMovieClip();
delete _local2.clonItem;
_local2.clonItem = this.addGameItem(_local5.itsColor, _local5.blockType, _local5.bonusType, false, "clon");
_local2.clonItem.itsTarget.swapDepths(0);
_local3.swapDepths(1);
_local2.clonItem.setXY(_local11, _local10);
_local4 = ((_local2.leftBound - _local3._x) / elementSize) * 100;
} else {
_local4 = ((_local3._x - _local2.rightBound) / elementSize) * 100;
}
}
}
if ((_local3._y < _local2.upBound) && (this.movieTapeDirection == "vertical")) {
if (_local6 < 0) {
_local3._y = _local3._y + ((_local2.downBound - _local2.upBound) + elementSize);
}
if (_local10 >= (_local2.upBound - elementSize)) {
if (_local6 < 0) {
_local2.clonItem.itsTarget.removeMovieClip();
delete _local2.clonItem;
_local2.clonItem = this.addGameItem(_local5.itsColor, _local5.blockType, _local5.bonusType, false, "clon");
_local2.clonItem.itsTarget.swapDepths(0);
_local3.swapDepths(1);
_local2.clonItem.setXY(_local11, _local10);
_local4 = ((_local3._y - _local2.downBound) / elementSize) * 100;
} else {
_local4 = ((_local2.upBound - _local3._y) / elementSize) * 100;
}
}
}
if ((_local3._y > _local2.downBound) && (this.movieTapeDirection == "vertical")) {
if (_local6 > 0) {
_local3._y = _local3._y - ((_local2.downBound - _local2.upBound) + elementSize);
}
if (_local10 <= (_local2.downBound + elementSize)) {
if (_local6 > 0) {
_local2.clonItem.itsTarget.removeMovieClip();
delete _local2.clonItem;
_local2.clonItem = this.addGameItem(_local5.itsColor, _local5.blockType, _local5.bonusType, false, "clon");
_local2.clonItem.itsTarget.swapDepths(0);
_local3.swapDepths(1);
_local2.clonItem.setXY(_local11, _local10);
_local4 = ((_local2.upBound - _local3._y) / elementSize) * 100;
} else {
_local4 = ((_local3._y - _local2.downBound) / elementSize) * 100;
}
}
}
if (_local4 < 100) {
_local3._yscale = 100 - _local4;
_local3._xscale = 100 - _local4;
_local2.clonItem.itsTarget._yscale = _local4;
_local2.clonItem.itsTarget._xscale = _local4;
} else {
_local3._yscale = 100;
_local3._xscale = 100;
}
_local16++;
} while (_local16 < _local19);
if (!isTest) {
var _local12 = this.stopMovieTape();
var _local13;
var _local18 = true;
for (_local16 in _local12) {
if (_local12[_local16] != this.Answers[_local16]) {
_local18 = false;
}
}
if ((!_local18) || (!_local12)) {
this.Answers = [];
}
if (_local12 && (!_local18)) {
for (_local16 in _local12) {
this.Answers[_local16] = _local12[_local16];
}
var _local17;
for (_local17 in _local12) {
_local13 = _local12[_local17];
_local16 = this.getI(_local13.itsTarget._x);
var _local15 = this.getJ(_local13.itsTarget._y);
var _local8 = this.buildBlockH(_local16, _local15, _local13.itsColor);
var _local9 = this.buildBlockV(_local16, _local15, _local13.itsColor);
if (_local8.length > 3) {
k = 2;
while (k < _local8.length) {
_local14[_local8[k].i][_local8[k].j].jewel.blick();
k++;
}
}
if (_local9.length > 3) {
k = 2;
while (k < _local9.length) {
_local14[_local9[k].i][_local9[k].j].jewel.blick();
k++;
}
}
_local13.blick();
}
}
}
};
gameFieldClass.prototype.stopMovieTape = function (single) {
var _local18 = false;
var _local6 = this.MovieTape;
var _local15 = _local6.length;
var _local2;
var _local13;
var _local4;
var _local3;
var _local14 = 0;
var _local7 = this.Cells;
var _local19 = [];
var _local12 = 0;
var _local11 = 0;
var _local23 = this.getI(_local6.leftBound);
var _local26 = this.getI(_local6.rightBound);
var _local24 = this.getJ(_local6.upBound);
var _local22 = this.getJ(_local6.downBound);
do {
_local2 = _local6[_local14];
if (_local2.itsTarget._yscale < 50) {
_local2 = _local6.clonItem;
}
_local4 = this.getI(_local2.itsTarget._x);
_local3 = this.getJ(_local2.itsTarget._y);
if (_local4 < _local23) {
_local12 = 1;
}
if (_local4 > _local26) {
_local12 = -1;
}
if (_local3 < _local24) {
_local11 = 1;
}
if (_local3 > _local22) {
_local11 = -1;
}
_local14++;
} while (_local14 < _local15);
_local14 = 0;
do {
_local2 = _local6[_local14];
if (_local2.itsTarget._yscale < 50) {
_local2 = _local6.clonItem;
}
_local4 = this.getI(_local2.itsTarget._x);
_local3 = this.getJ(_local2.itsTarget._y);
_local7[_local4 + _local12][_local3 + _local11].jewel = _local2;
if ((!_local2.bonusType) || (_local2.bonusType == "any")) {
_local2.corelationEnable = true;
}
_local14++;
} while (_local14 < _local15);
_local14 = 0;
if (!single) {
do {
_local2 = _local6[_local14];
if (_local2.itsTarget._yscale < 50) {
_local2 = _local6.clonItem;
}
_local4 = this.getI(_local2.itsTarget._x);
_local3 = this.getJ(_local2.itsTarget._y);
_local18 = false;
_local18 = this.testCell(_local4 + _local12, _local3 + _local11);
if (_local18) {
_local19.push(_local2);
}
_local14++;
} while (_local14 < _local15);
} else {
_local2 = _local6[_local14];
if (_local2.itsTarget._yscale < 50) {
_local2 = _local6.clonItem;
}
_local4 = this.getI(_local2.itsTarget._x);
_local3 = this.getJ(_local2.itsTarget._y);
_local18 = this.testCell(_local4 + _local12, _local3 + _local11);
if (_local18) {
var _local10 = this.buildBlockH(_local4 + _local12, _local3 + _local11, _local2.itsColor);
var _local21 = this.buildBlockV(_local4 + _local12, _local3 + _local11, _local2.itsColor);
var _local5 = new Object();
_local5.i1 = _local2.i;
_local5.j1 = _local2.j;
_local5.i2 = _local4 + _local12;
_local5.j2 = _local3 + _local11;
if (!_local2.noMovesIndicator) {
_local5.XYData = [{i:_local4 + _local12, j:_local3 + _local11}];
_local5.Items = [_local2];
} else {
_local5.XYData = [];
_local5.Items = [];
}
if (_local10.length > 3) {
var _local16 = 2;
while (_local16 < _local10.length) {
var _local8 = _local7[_local10[_local16].i][_local10[_local16].j].jewel;
if (!_local8.noMovesIndicator) {
_local4 = this.getI(_local8.itsTarget._x);
_local3 = this.getJ(_local8.itsTarget._y);
_local5.XYData.push({i:_local4, j:_local3});
_local5.Items.push(_local8);
_local8.noMovesIndicator = true;
}
_local16++;
}
}
if (_local21.length > 3) {
var _local16 = 2;
while (_local16 < _local21.length) {
var _local8 = _local7[_local10[_local16].i][_local10[_local16].j].jewel;
if (!_local8.noMovesIndicator) {
_local4 = this.getI(_local8.itsTarget._x);
_local3 = this.getJ(_local8.itsTarget._y);
_local5.XYData.push({i:_local4, j:_local3});
_local5.Items.push(_local8);
_local8.noMovesIndicator = true;
}
_local16++;
}
}
var _local25 = _local5.XYData.length;
var _local16 = 0;
while (_local16 < _local25) {
var _local17 = _local5.XYData[_local16];
_local4 = _local17.i;
_local3 = _local17.j;
var _local9 = _local7[_local4 + 1][_local3].jewel;
if ((_local9.blockType || (_local9.bonusType)) && (!_local9.noMovesIndicator)) {
_local5.Items.push(_local9);
}
_local9 = _local7[_local4 - 1][_local3].jewel;
if ((_local9.blockType || (_local9.bonusType)) && (!_local9.noMovesIndicator)) {
_local5.Items.push(_local9);
}
_local9 = _local7[_local4][_local3 + 1].jewel;
if ((_local9.blockType || (_local9.bonusType)) && (!_local9.noMovesIndicator)) {
_local5.Items.push(_local9);
}
_local9 = _local7[_local4][_local3 - 1].jewel;
if ((_local9.blockType || (_local9.bonusType)) && (!_local9.noMovesIndicator)) {
_local5.Items.push(_local9);
}
_local16++;
}
_local25 = _local5.Items.length;
_local16 = 0;
while (_local16 < _local25) {
_local16++;
}
_local19.push(_local5);
}
}
_local14 = 0;
do {
_local13 = _local6[_local14];
_local4 = this.getI(_local13.X);
_local3 = this.getJ(_local13.Y);
_local7[_local4][_local3].jewel = _local13;
_local13.corelationEnable = false;
_local14++;
} while (_local14 < _local15);
if (!_local19.length) {
_local19 = null;
}
return(_local19);
};
gameFieldClass.prototype.setBackMovieTape = function () {
var _local16 = false;
var _local5 = this.MovieTape;
var _local10 = _local5.length;
var _local3;
var _local7;
var _local6;
var _local4 = 0;
var _local15 = this.Cells;
if (this.stopMovieTape()) {
var _local9 = 0;
var _local8 = 0;
var _local12 = this.getI(_local5.leftBound);
var _local14 = this.getI(_local5.rightBound);
var _local13 = this.getJ(_local5.upBound);
var _local11 = this.getJ(_local5.downBound);
do {
_local3 = _local5[_local4];
if (_local3.itsTarget._yscale < 50) {
_local3 = _local5.clonItem;
}
_local7 = this.getI(_local3.itsTarget._x);
_local6 = this.getJ(_local3.itsTarget._y);
if (_local7 < _local12) {
_local9 = 1;
}
if (_local7 > _local14) {
_local9 = -1;
}
if (_local6 < _local13) {
_local8 = 1;
}
if (_local6 > _local11) {
_local8 = -1;
}
_local4++;
} while (_local4 < _local10);
_local4 = 0;
do {
_local3 = _local5[_local4];
if (_local3.itsTarget._yscale < 50) {
_local3.itsTarget._x = _local5.clonItem.itsTarget._x;
_local3.itsTarget._y = _local5.clonItem.itsTarget._y;
}
_local7 = this.getI(_local3.itsTarget._x);
_local6 = this.getJ(_local3.itsTarget._y);
_local3.lock = false;
_local15[_local7 + _local9][_local6 + _local8].put(_local3);
_local4++;
} while (_local4 < _local10);
this.clearMovieTape();
} else {
this.backMovieTape = true;
_root.playSound("line_moves_back");
}
};
gameFieldClass.prototype.unselect = function () {
this.selectItem = null;
};
gameFieldClass.prototype.testCell = function (i, j, itsColor) {
var _local6 = false;
var _local2 = this.Cells;
if (!itsColor) {
itsColor = _local2[i][j].jewel.itsColor;
}
if (_local2[i][j].jewel.bonusType == "any") {
itsColor = _local2[i - 2][j].jewel.itsColor;
}
if (_local2[i - 2][j].jewel.getColor(itsColor) && (_local2[i - 1][j].jewel.getColor(itsColor))) {
_local6 = true;
}
if (_local2[i][j].jewel.bonusType == "any") {
itsColor = _local2[i + 1][j].jewel.itsColor;
}
if (_local2[i + 1][j].jewel.getColor(itsColor) && (_local2[i - 1][j].jewel.getColor(itsColor))) {
_local6 = true;
}
if (_local2[i][j].jewel.bonusType == "any") {
itsColor = _local2[i + 2][j].jewel.itsColor;
}
if (_local2[i + 2][j].jewel.getColor(itsColor) && (_local2[i + 1][j].jewel.getColor(itsColor))) {
_local6 = true;
}
if (_local2[i][j].jewel.bonusType == "any") {
itsColor = _local2[i][j - 2].jewel.itsColor;
}
if (_local2[i][j - 2].jewel.getColor(itsColor) && (_local2[i][j - 1].jewel.getColor(itsColor))) {
_local6 = true;
}
if (_local2[i][j].jewel.bonusType == "any") {
itsColor = _local2[i][j + 1].jewel.itsColor;
}
if (_local2[i][j + 1].jewel.getColor(itsColor) && (_local2[i][j - 1].jewel.getColor(itsColor))) {
_local6 = true;
}
if (_local2[i][j].jewel.bonusType == "any") {
itsColor = _local2[i][j + 2].jewel.itsColor;
}
if (_local2[i][j + 2].jewel.getColor(itsColor) && (_local2[i][j + 1].jewel.getColor(itsColor))) {
_local6 = true;
}
if (_local6) {
this.chainNum = 0;
}
return(_local6);
};
gameFieldClass.prototype.buildBlockH = function (i, j, color) {
if (!this.Cells[i][j].jewel.itsColor) {
return(undefined);
}
var _local6 = new Array();
var _local3 = 1;
var _local7 = 1;
var _local5;
var _local4;
var _local2 = new Object();
_local2.i = i;
_local2.j = j;
_local2.n = 0;
_local6[1] = _local2;
var Cells = this.Cells;
this.graph[i][j].ingraphH = true;
var _local8;
if (color) {
_local8 = color;
} else {
_local8 = this.graph[i][j].c;
}
if (_local8 == "any") {
_local8 = this.graph[i + 1][j].c;
}
if (Cells[i][j].jewel.corelationEnable || (color)) {
do {
_local5 = _local6[_local7].i;
_local4 = _local6[_local7].j;
if (Cells[_local5 + 1][_local4].jewel.getColor(_local8) && (!this.graph[_local5 + 1][_local4].ingraphH)) {
_local3++;
_local2 = new Object();
_local2.i = _local5 + 1;
_local2.j = _local4;
_local2.n = _local7;
_local6[_local3] = _local2;
this.graph[_local5 + 1][_local4].ingraphH = true;
}
if (Cells[_local5 - 1][_local4].jewel.getColor(_local8) && (!this.graph[_local5 - 1][_local4].ingraphH)) {
_local3++;
_local2 = new Object();
_local2.i = _local5 - 1;
_local2.j = _local4;
_local2.n = _local7;
_local6[_local3] = _local2;
this.graph[_local5 - 1][_local4].ingraphH = true;
}
_local7++;
} while (_local7 <= (_local6.length - 1));
}
if (_local7 <= 3) {
_local3 = 1;
while (_local3 <= _local7) {
this.graph[_local6[_local3].i][_local6[_local3].j].ingraphH = false;
_local3++;
}
}
return(_local6);
};
gameFieldClass.prototype.buildBlockV = function (i, j, color) {
if (!this.Cells[i][j].jewel.itsColor) {
return(undefined);
}
var _local6 = new Array();
var _local3 = 1;
var _local7 = 1;
var _local5;
var _local4;
var _local2 = new Object();
_local2.i = i;
_local2.j = j;
_local2.n = 0;
_local6[1] = _local2;
var Cells = this.Cells;
this.graph[i][j].ingraphV = true;
var _local8;
if (color) {
_local8 = color;
} else {
_local8 = this.graph[i][j].c;
}
if (_local8 == "any") {
_local8 = this.graph[i][j + 1].c;
}
if (Cells[i][j].jewel.corelationEnable || (color)) {
do {
_local5 = _local6[_local7].i;
_local4 = _local6[_local7].j;
if (Cells[_local5][_local4 + 1].jewel.getColor(_local8) && (!this.graph[_local5][_local4 + 1].ingraphV)) {
_local3++;
_local2 = new Object();
_local2.i = _local5;
_local2.j = _local4 + 1;
_local2.n = _local7;
_local6[_local3] = _local2;
this.graph[_local5][_local4 + 1].ingraphV = true;
}
if (Cells[_local5][_local4 - 1].jewel.getColor(_local8) && (!this.graph[_local5][_local4 - 1].ingraphV)) {
_local3++;
_local2 = new Object();
_local2.i = _local5;
_local2.j = _local4 - 1;
_local2.n = _local7;
_local6[_local3] = _local2;
this.graph[_local5][_local4 - 1].ingraphV = true;
}
_local7++;
} while (_local7 <= (_local6.length - 1));
}
if (_local7 <= 3) {
_local3 = 1;
while (_local3 <= _local7) {
this.graph[_local6[_local3].i][_local6[_local3].j].ingraphV = false;
_local3++;
}
}
return(_local6);
};
gameFieldClass.prototype.testOnBlock = function (i, j) {
var _local5 = false;
var _local4 = this.graph;
if (_local4[i + 1][j].ingraphH || (_local4[i + 1][j].ingraphV)) {
_local5 = true;
}
if (_local4[i - 1][j].ingraphH || (_local4[i - 1][j].ingraphV)) {
_local5 = true;
}
if (_local4[i][j + 1].ingraphH || (_local4[i][j + 1].ingraphV)) {
_local5 = true;
}
if (_local4[i][j - 1].ingraphH || (_local4[i][j - 1].ingraphV)) {
_local5 = true;
}
if ((!this.Cells[i][j].jewel.blockType) && (!this.Cells[i][j].jewel.bonusType)) {
_local5 = false;
}
if ((((this.Cells[i][j].jewel.bonusType == "any") || (this.Cells[i][j].jewel.bonusType == "key")) || (this.Cells[i][j].jewel.bonusType == "lock")) || (this.Cells[i][j].jewel.bonusType == "unmove")) {
_local5 = false;
}
return(_local5);
};
gameFieldClass.prototype.test = function () {
var _local6 = this.Cells;
var _local4;
var _local5 = this.graph;
var _local9 = this.Field;
var _local8 = _local9.length - 1;
var _local7 = _local9[0].length - 1;
var _local3 = 1;
while (_local3 < _local8) {
var _local2 = 1;
while (_local2 < _local7) {
_local4 = new Object();
_local4.c = _local6[_local3][_local2].jewel.itsColor;
_local4.ingraphH = false;
_local4.ingraphV = false;
_local4.H = [];
_local4.V = [];
_local5[_local3][_local2] = _local4;
_local2++;
}
_local3++;
}
_local3 = 1;
while (_local3 < _local8) {
var _local2 = 1;
while (_local2 < _local7) {
_local4 = _local5[_local3][_local2];
if ((_local9[_local3][_local2] != ".") && (!_local6[_local3][_local2].jewel.removed)) {
if (!_local4.ingraphH) {
_local4.H = this.buildBlockH(_local3, _local2);
if (_local4.H.length <= 3) {
_local4.ingraphH = false;
}
}
if (!_local4.ingraphV) {
_local4.V = this.buildBlockV(_local3, _local2);
if (_local4.V.length <= 3) {
_local4.ingraphV = false;
}
}
}
_local2++;
}
_local3++;
}
_local3 = 1;
while (_local3 < _local8) {
var _local2 = 1;
while (_local2 < _local7) {
if ((_local5[_local3][_local2].ingraphH or _local5[_local3][_local2].ingraphV) or this.testOnBlock(_local3, _local2)) {
_local6[_local3][_local2].jewel.corelationEnable = false;
_local6[_local3][_local2].jewel.lock = true;
}
_local2++;
}
_local3++;
}
_local3 = 1;
while (_local3 < _local8) {
var _local2 = 1;
while (_local2 < _local7) {
if ((_local5[_local3][_local2].ingraphH or _local5[_local3][_local2].ingraphV) or this.testOnBlock(_local3, _local2)) {
_local6[_local3][_local2].removeContent();
}
_local2++;
}
_local3++;
}
};
gameFieldClass.prototype.removeHint = function () {
var _local2 = 0;
while (_local2 <= (this.hintItems.length - 1)) {
this.hintItems[_local2].gotoAndPlay("del");
_local2++;
}
this.hintItems = [];
};
gameFieldClass.prototype.putHint1 = function (hint) {
var _local3;
this.hintItems.condition = true;
i = 0;
while (i <= (hint.length - 1)) {
var _local2 = new Object();
_local2 = hint[i];
switch (_local2.nm) {
case "textBlock" :
this.putTextBlock(_local2.x, _local2.y, _local2.textBlock);
break;
case "circle" :
if (this.hintItems.condition) {
_local3 = this.putHintCircle(_local2.i, _local2.j);
this.hintItems.push(_local3);
}
break;
case "circle1" :
if (this.hintItems.condition) {
_local3 = this.putHintCircle1(_local2.i, _local2.j);
this.hintItems.push(_local3);
}
break;
case "arrows" :
if (this.hintItems.condition) {
_local3 = this.putHintArrow(_local2.i1, _local2.j1, _local2.i2, _local2.j2);
this.hintItems.push(_local3);
}
break;
case "condition" :
this.hintItems.condition = this.hintCondition(_local2);
}
i++;
}
return(true);
};
gameFieldClass.prototype.putHint = function (hint) {
var _local3;
this.hintItems.condition = true;
i = 0;
while (i <= (hint.length - 1)) {
var _local2 = new Object();
_local2 = hint[i];
if (this.hintItems.condition) {
switch (_local2.nm) {
case "textBlock" :
this.putTextBlock(_local2.x, _local2.y, _local2.textBlock);
break;
case "circle" :
_local3 = this.putHintCircle(_local2.i, _local2.j);
this.hintItems.push(_local3);
break;
case "circle1" :
if (this.hintItems.condition) {
_local3 = this.putHintCircle1(_local2.i, _local2.j);
this.hintItems.push(_local3);
}
break;
case "arrows" :
_local3 = this.putHintArrow(_local2.i1, _local2.j1, _local2.i2, _local2.j2);
this.hintItems.push(_local3);
break;
case "condition" :
this.hintItems.condition = this.hintCondition(_local2);
}
}
i++;
}
return(this.hintItems.condition);
};
gameFieldClass.prototype.hintCondition = function (condition) {
var _local5 = condition.length;
var _local3 = 0;
var _local4 = true;
var _local6 = this.Cells;
do {
var _local2 = new Object();
_local2 = condition[_local3];
if (_local6[_local2.i][_local2.j].jewel.itsColor != _local2.itsColor) {
_local4 = false;
}
_local3++;
} while (_local4 && (_local3 < _local5));
return(_local4);
};
gameFieldClass.prototype.putHintCircle1 = function (i, j) {
var myitem;
this.numberOfCircles++;
thisObj.bonuses.attachMovie("hintcircle", "hintcircle" + this.numberOfCircles, thisObj.bonuses.getNextHighestDepth());
myitem = eval ("bonuses.hintcircle" + this.numberOfCircles);
myitem._x = this.getX(i) + (elementSize / 2);
myitem._y = this.getY(j) + (elementSize / 2);
return(myitem);
};
gameFieldClass.prototype.putHintCircle = function (i, j) {
var myitem;
this.numberOfCircles++;
thisObj.bonuses.attachMovie("hint-circle", "hintcircle" + this.numberOfCircles, thisObj.bonuses.getNextHighestDepth());
myitem = eval ("bonuses.hintcircle" + this.numberOfCircles);
myitem._x = this.getX(i) + (elementSize / 2);
myitem._y = this.getY(j) + (elementSize / 2);
return(myitem);
};
gameFieldClass.prototype.putHintArrow = function (i1, j1, i2, j2) {
var myitem;
this.numHA++;
var rotation;
var L;
var s = "";
if (i1 > i2) {
s = "h";
rotation = 180;
L = i1 - i2;
}
if (i1 < i2) {
s = "h";
rotation = 0;
L = i2 - i1;
}
if (j1 > j2) {
rotation = 180;
L = j1 - j2;
}
if (j1 < j2) {
rotation = 0;
L = j2 - j1;
}
thisObj.bonuses.attachMovie("hintarrow" + s, "hintarrow" + this.numHA, thisObj.bonuses.getNextHighestDepth());
myitem = eval ("bonuses.hintarrow" + this.numHA);
myitem._x = this.getX(i1) + (elementSize / 2);
myitem._y = this.getY(j1) + (elementSize / 2);
myitem._rotation = rotation;
myitem.L = (L - 1.5) * elementSize;
myitem.onEnterFrame = function () {
this.setLength(this.L);
};
return(myitem);
};
gameFieldClass.prototype.putTextLine = function (x, y, textLine, n) {
var myitem;
thisObj.bonuses.attachMovie("hint-text", "hinttext" + n, thisObj.bonuses.getNextHighestDepth());
myitem = eval ("bonuses.hinttext" + n);
myitem._x = x;
myitem._y = y + (n * myitem.bg._height);
var width = 7;
var height = 20;
var x0 = 3;
var y0 = -3;
var x = x0;
var my_fmt = new TextFormat();
my_fmt.font = "Times New Roman";
my_fmt.size = 14;
my_fmt.color = 16777215 /* 0xFFFFFF */;
my_fmt.align = "center";
var i = 0;
while (i < textLine.length) {
myitem.mctxt.createTextField("t" + i, i + 1, x, y0, width * 2, height);
x = x + width;
var t1 = eval ((("bonuses." + myitem._name) + ".mctxt.t") + i);
t1.text = textLine.substr(i, 1);
t1.setTextFormat(my_fmt);
t1.selectable = false;
i++;
}
var rezult = new Object();
rezult.item = myitem;
rezult.wdth = (x - x0) + (3 * width);
return(rezult);
};
gameFieldClass.prototype.putTextBlock = function (x, y, textBlock) {
var i = 0;
var ilast = 0;
var numberOfLine = 0;
var str;
var ch;
var item;
var maxLineWidth = 0;
do {
ch = textBlock.substr(i, 1);
if (ch == "|") {
str = textBlock.substr(ilast, i - ilast);
lineitem = this.putTextLine(x, y, str, numberOfLine);
this.hintItems.push(lineitem.item);
numberOfLine++;
if (lineitem.wdth > maxLineWidth) {
maxLineWidth = lineitem.wdth;
}
ilast = i + 1;
}
i++;
} while (i < textBlock.length);
str = textBlock.substr(ilast, i - ilast);
lineitem = this.putTextLine(x, y, str, numberOfLine);
this.hintItems.push(lineitem.item);
if (lineitem.wdth > maxLineWidth) {
maxLineWidth = lineitem.wdth;
}
i = 0;
while (i <= numberOfLine) {
myitem = eval ("bonuses.hinttext" + i);
myitem.bg._width = maxLineWidth;
i++;
}
this.hintItems.push(item);
};
gameFieldClass.prototype.giveBonus = function (sum, i, j) {
var bonusItem;
var myitem;
if (this.Bonuses.length > 0) {
var N = (this.Bonuses[this.Bonuses.length - 1].getNofTarget() + 1);
} else {
var N = 0;
}
if (this.chainNum <= 3) {
var Source = ("s" + sum);
game.addPoints(sum);
thisObj.bonuses.createEmptyMovieClip("bonusItem" + N, thisObj.bonuses.getNextHighestDepth());
myitem = eval ("bonuses.bonusItem" + N);
myitem._x = this.getX(i) + (elementSize / 4);
myitem._y = this.getY(j) + (elementSize / 4);
myitem.attachMovie("plus", "plus", 0);
var S = sum.toString();
var ch;
var i = 0;
while (i < S.length) {
ch = S.substr(i, 1);
myitem.attachMovie("mc" + ch, "mc" + i, i + 1);
myitem["mc" + i]._x = (i + 1) * 15;
i++;
}
bonusItem = new pointsPlusClass();
bonusItem.setIt(i, j, myitem, N, this);
this.Bonuses.push(bonusItem);
} else {
var numOfChain = (this.chainNum - 2);
var Source = ("chain" + numOfChain);
game.addPoints(sum * numOfChain);
if (numOfChain < 5) {
var snd = (Math.round(Math.random()) + 1);
_root.playSound("wow" + snd);
} else {
_root.playSound("fanfare");
}
if (numOfChain >= 10) {
this.chainNum = 0;
}
var bonus = bonuses.attachMovie(Source, ("chainbonus" + i) + j, bonuses.getNextHighestDepth());
bonus._x = this.getX(i) + (elementSize / 4);
bonus._y = this.getY(j) + (elementSize / 4);
bonus.counter = 0;
bonus.onEnterFrame = function () {
this.counter++;
if (this.counter >= 5) {
this._xscale = this._xscale + 20;
this._yscale = this._yscale + 20;
this._y = this._y - 10;
this._alpha = this._alpha - 20;
if (this._alpha <= 0) {
this.removeMovieClip();
}
}
};
}
};
gameFieldClass.prototype.setJewelBonus = function (nm, i, j, color, dir) {
var _local2 = new Object();
_local2.nm = nm;
_local2.i = i;
_local2.j = j;
_local2.c = color;
if (!this.Cells[i][j]) {
this.Cells[i][j].located = 1;
}
if (dir != undefined) {
_local2.dir = dir;
}
this.Specials.push(_local2);
};
gameFieldClass.prototype.setAny = function (i, j, upgraded) {
var _local6 = "any";
var _local5 = this.addGameItem(color, _local6, false);
var _local7 = this.addColumnNumber(i, j);
this.AddGameItems[_local7]--;
this.Cells[i][j].put(_local5);
if (((!this.fullColumn(i, j)) || (!this.fullColumnLeft(i, j - 1))) || (!this.fullColumnRight(i, j + 1))) {
_local5.free = true;
}
_root.playSound("bonus_appears");
};
gameFieldClass.prototype.setMagnet = function (i, j, upgraded) {
var _local5 = "magnet";
if (upgraded) {
_local5 = _local5 + "Big";
}
var _local6 = this.addGameItem(color, _local5, false);
var _local7 = this.addColumnNumber(i, j);
this.AddGameItems[_local7]--;
this.Cells[i][j].put(_local6);
if (((!this.fullColumn(i, j)) || (!this.fullColumnLeft(i, j - 1))) || (!this.fullColumnRight(i, j + 1))) {
_local6.free = true;
}
_root.playSound("bonus_appears");
};
gameFieldClass.prototype.setDynamite = function (i, j, upgraded) {
var _local5 = "dynamite";
if (upgraded) {
_local5 = _local5 + "Big";
}
var _local6 = this.addGameItem(color, _local5, false);
var _local7 = this.addColumnNumber(i, j);
this.AddGameItems[_local7]--;
this.Cells[i][j].put(_local6);
if (((!this.fullColumn(i, j)) || (!this.fullColumnLeft(i, j - 1))) || (!this.fullColumnRight(i, j + 1))) {
_local6.free = true;
}
_root.playSound("bonus_appears");
};
gameFieldClass.prototype.setBomb = function (i, j, upgraded) {
var _local5 = "bomb";
if (upgraded) {
_local5 = _local5 + "Big";
}
var _local6 = this.addGameItem(color, _local5, false);
var _local7 = this.addColumnNumber(i, j);
this.AddGameItems[_local7]--;
this.Cells[i][j].put(_local6);
if (((!this.fullColumn(i, j)) || (!this.fullColumnLeft(i, j - 1))) || (!this.fullColumnRight(i, j + 1))) {
_local6.free = true;
}
_root.playSound("bonus_appears");
};
gameFieldClass.prototype.setShuffle = function (i, j, upgraded) {
var _local5 = "shuffle";
if (upgraded) {
_local5 = _local5 + "Big";
}
var _local6 = this.addGameItem(color, _local5, false);
var _local7 = this.addColumnNumber(i, j);
this.AddGameItems[_local7]--;
this.Cells[i][j].put(_local6);
if (((!this.fullColumn(i, j)) || (!this.fullColumnLeft(i, j - 1))) || (!this.fullColumnRight(i, j + 1))) {
_local6.free = true;
}
_root.playSound("bonus_appears");
};
gameFieldClass.prototype.setfireworks = function (i, j, upgraded) {
var _local5 = "fireworks";
if (upgraded) {
_local5 = _local5 + "Big";
}
var _local6 = this.addGameItem(color, _local5, false);
var _local7 = this.addColumnNumber(i, j);
this.AddGameItems[_local7]--;
this.Cells[i][j].put(_local6);
if (((!this.fullColumn(i, j)) || (!this.fullColumnLeft(i, j - 1))) || (!this.fullColumnRight(i, j + 1))) {
_local6.free = true;
}
_root.playSound("bonus_appears");
};
gameFieldClass.prototype.setlightning = function (i, j, upgraded) {
var _local5 = "lightning";
if (upgraded) {
_local5 = _local5 + "Big";
}
var _local6 = this.addGameItem(color, _local5, false);
var _local7 = this.addColumnNumber(i, j);
this.AddGameItems[_local7]--;
this.Cells[i][j].put(_local6);
if (((!this.fullColumn(i, j)) || (!this.fullColumnLeft(i, j - 1))) || (!this.fullColumnRight(i, j + 1))) {
_local6.free = true;
}
_root.playSound("bonus_appears");
};
gameFieldClass.prototype.setGun = function (i, j, upgraded) {
var _local5 = "firewall";
if (upgraded) {
_local5 = _local5 + "Big";
}
var _local6 = this.addGameItem(color, _local5, false);
var _local7 = this.addColumnNumber(i, j);
this.AddGameItems[_local7]--;
this.Cells[i][j].put(_local6);
if (((!this.fullColumn(i, j)) || (!this.fullColumnLeft(i, j - 1))) || (!this.fullColumnRight(i, j + 1))) {
_local6.free = true;
}
_root.playSound("bonus_appears");
};
gameFieldClass.prototype.setSpecial = function () {
var _local6 = this.Specials;
var _local5 = this.Cells;
var _local7 = _local6.length;
var _local4 = 0;
while (_local4 <= (_local7 - 1)) {
var _local2 = new Object();
_local2 = _local6[_local4];
var _local3 = _local5[_local2.i][_local2.j].jewel.bonusType;
if (_local3) {
_local3 = _local3.substr(0, 3);
}
if (((_local3 != "gun") && (!_local5[_local2.i][_local2.j].located)) && (_local5[_local2.i][_local2.j].empty)) {
switch (_local2.nm) {
case "bomb" :
this.setBomb(_local2.i, _local2.j);
break;
case "bombBig" :
this.setBomb(_local2.i, _local2.j, true);
break;
case "shuffle" :
this.setShuffle(_local2.i, _local2.j);
break;
case "shuffleBig" :
this.setShuffle(_local2.i, _local2.j, true);
break;
case "fireworks" :
this.setfireworks(_local2.i, _local2.j);
break;
case "fireworksBig" :
this.setfireworks(_local2.i, _local2.j, true);
break;
case "any" :
this.setAny(_local2.i, _local2.j);
break;
case "magnet" :
this.setMagnet(_local2.i, _local2.j);
break;
case "magnetBig" :
this.setMagnet(_local2.i, _local2.j, true);
break;
case "dynamite" :
this.setDynamite(_local2.i, _local2.j);
break;
case "dynamiteBig" :
this.setDynamite(_local2.i, _local2.j, true);
break;
case "lightning" :
this.setlightning(_local2.i, _local2.j);
break;
case "lightningBig" :
this.setlightning(_local2.i, _local2.j, true);
break;
case "firewall" :
this.setGun(_local2.i, _local2.j);
break;
case "firewallBig" :
this.setGun(_local2.i, _local2.j, true);
}
} else {
_local5[_local2.i][_local2.j].located = 0;
}
_local4++;
}
this.Specials = new Array();
};
gameFieldClass.prototype.giveSpecial = function () {
var _local3 = 0;
var _local7 = 0;
var _local11 = this.GameItems;
var _local12 = _local11.length;
do {
if (_local11[_local3].bonusType) {
_local7++;
}
_local3++;
} while (_local3 < _local12);
var _local16;
var _local15 = false;
var _local14 = this.Field;
var _local4 = this.graph;
var _local13 = this.Field.length - 1;
var _local10 = this.Field[0].length - 1;
var _local9;
var _local8;
_local3 = 1;
while (_local3 < _local13) {
var _local2 = 1;
while (_local2 < _local10) {
if ((_local4[_local3][_local2].H.length > 3) or (_local4[_local3][_local2].V.length > 3)) {
_local9 = Math.random();
if (((_local9 <= bonusFrequency) || (auto && (!_local7))) && ((!auto) || (_local7 < 2))) {
_local7++;
var _local6 = bonuses.attachMovie("bonusapply", ("bonusapply" + _local3) + _local2, bonuses.getNextHighestDepth());
_local6._x = this.getX(_local3) + (elementSize / 2);
_local6._y = this.getY(_local2) + (elementSize / 2);
_local8 = Math.round(Math.random() * (EnableBonuses.length - 1));
this.setJewelBonus(EnableBonuses[_local8], _local3, _local2);
} else {
var _local5 = 0;
if (_local4[_local3][_local2].H.length > 3) {
_local5 = _local5 + (_local4[_local3][_local2].H.length - 1);
}
if (_local4[_local3][_local2].V.length > 3) {
_local5 = _local5 + (_local4[_local3][_local2].V.length - 1);
}
this.giveBonus(_local5, _local3, _local2 + 1);
this.chainNum++;
}
}
_local2++;
}
_local3++;
}
};
gameFieldClass.prototype.motion = function () {
var _local2 = 0;
var _local3 = this.MoveItems;
var _local4 = _local3.length - 1;
do {
_local3[_local2].motion();
_local2++;
} while (_local2 <= _local4);
_local2 = 0;
if (this.weaponsmoving) {
do {
if (!this.WeaponItems[_local2].removed) {
this.WeaponItems[_local2].motion();
_local2++;
} else {
delete this.WeaponItems[_local2];
this.WeaponItems.splice(_local2, 1);
}
} while (_local2 <= (this.WeaponItems.length - 1));
}
_local2 = 0;
do {
if (!this.Bonuses[_local2].removed) {
this.Bonuses[_local2].motion();
_local2++;
} else {
delete this.Bonuses[_local2];
this.Bonuses.splice(_local2, 1);
}
} while (_local2 <= (this.Bonuses.length - 1));
};
gameFieldClass.prototype.makeNew = function () {
var _local11;
var _local14;
var _local8;
var _local9;
var _local6;
var _local5;
var _local7;
var _local15;
var _local4;
var _local10 = this.AddGameItems;
var _local13 = this.Field;
var _local3 = this.FallingItems;
var _local12 = _local13.length - 2;
var _local2 = 1;
while (_local2 <= _local12) {
_local11 = _local10[_local2];
_local4 = 0;
do {
if (!_local3[_local2][_local4].falling) {
_local3[_local2].splice(_local4, 1);
} else {
_local4++;
}
} while (_local4 < _local3[_local2].length);
_local4 = 1;
while (_local4 <= _local11) {
_local10[_local2]--;
_local8 = this.addGameItem("?", false, false);
_local9 = this.getX(_local2) + (elementSize / 2);
_local6 = this.getY(1) + (elementSize * ((0.5 - _local4) - 2));
filength = _local3[_local2].length;
if (filength) {
_local5 = _local3[_local2][filength - 1].getY();
_local7 = this.getJ(_local5);
if (_local7 < 0) {
_local6 = _local5 - elementSize;
} else {
_local6 = _local5 - (elementSize * (_local7 + 2));
}
}
_local8.setXY(_local9, _local6);
_local3[_local2][_local3[_local2].length] = _local8;
_local4++;
}
_local2++;
}
};
gameFieldClass.prototype.addGameItemWhenChange = function (i, j) {
GameItem = this.addGameItem("?", false, false);
x = this.getX(i) + (elementSize / 2);
y = this.getY(1) + (elementSize * ((0.5 + j) - 15));
GameItem.setXY(x, y);
this.FallingItems[i][this.FallingItems[i].length] = GameItem;
};
gameFieldClass.prototype.upDot = function (i, j) {
var _local3 = j;
var _local7 = true;
var _local4 = this.Cells;
var _local2;
if ((j > 0) && (j < this.Field[i].length)) {
do {
_local3--;
_local2 = _local4[i][_local3];
} while (_local2 && (!(_local2.jewel.block && (!_local2.jewel.willRemove))));
}
return(_local3);
};
gameFieldClass.prototype.fullColumnUp = function (i, j) {
var _local2 = j;
var _local4 = true;
var _local7 = this.Cells;
var _local5 = this.Field;
if (j > 0) {
do {
_local2--;
} while (_local5[i][_local2] != ".");
}
if (_local2 > 0) {
do {
_local2--;
if (_local5[i][_local2] != ".") {
_local4 = false;
}
} while (_local2 > 0);
}
_local2 = 0;
while (_local2 <= j) {
if (_local7[i][_local2].jewel.block) {
_local4 = false;
}
_local2++;
}
return(_local4);
};
gameFieldClass.prototype.addColumnNumber = function (i, j0) {
var _local2 = 0;
var _local7;
var _local11 = j0;
var _local4 = j0;
var _local9 = true;
var _local8 = true;
var _local5 = this.Field;
var _local6 = this.Cells;
_local4 = this.upDot(i, _local4) + 1;
do {
if (_local8) {
if (((_local5[i + _local2][_local4 - _local2] != undefined) && (_local5[i + _local2][_local4 - _local2] != ".")) && ((!_local6[i + _local2][_local4 - _local2].jewel.lock) || (_local6[i + _local2][_local4 - _local2].jewel.bonusType == "lock"))) {
if (this.fullColumnUp(i + _local2, _local4 - _local2)) {
_local7 = i + _local2;
}
} else {
_local8 = false;
}
}
if (_local9) {
if (((_local5[i - _local2][_local4 - _local2] != undefined) && (_local5[i - _local2][_local4 - _local2] != ".")) && ((!_local6[i - _local2][_local4 - _local2].jewel.lock) || (_local6[i - _local2][_local4 - _local2].jewel.bonusType == "lock"))) {
if (this.fullColumnUp(i - _local2, _local4 - _local2)) {
_local7 = i - _local2;
}
} else {
_local9 = false;
}
}
_local2++;
} while ((_local7 == undefined) and (_local2 <= _local5.length));
return(_local7);
};
gameFieldClass.prototype.clearWillRemoves = function () {
var _local2 = 0;
var _local3 = this.GameItems;
var _local4 = _local3.length;
do {
if (_local3[_local2].willRemove) {
_local3[_local2].willRemove = false;
}
_local2++;
} while (_local2 < _local4);
};
gameFieldClass.prototype.putDisables = function () {
var _local8;
var _local17 = this.Field;
var _local5 = this.Cells;
var _local16 = this.Field.length - 1;
var _local13 = this.Field[0].length - 1;
var _local12 = this.GameItems;
var _local15 = _local12.length;
var _local4 = 1;
while (_local4 < _local16) {
var _local3 = 1;
while (_local3 < _local13) {
_local8 = _local5[_local4][_local3];
if (((!_local8.empty) && (!_local8.jewel.blockType)) && (!_local8.jewel.lock)) {
_local5[_local4][_local3].isSelected(true);
}
_local3++;
}
_local4++;
}
_local4 = 0;
do {
if (_local12[_local4].removed || (_local12[_local4].willRemove)) {
var _local6 = _local12[_local4];
var _local14 = true;
var _local10 = this.upDot(_local6.i, _local6.j);
var _local3 = _local6.j;
while (_local3 > _local10) {
var _local11 = _local5[_local6.i][_local3];
_local11.isSelected(false);
_local3--;
}
var _local2 = _local6.i;
if (_local10 > 1) {
do {
var _local9 = this.addColumnNumber(_local2, _local10 + 1);
if (_local9 > _local2) {
_local2++;
}
if (_local9 < _local2) {
_local2--;
}
var _local7 = _local3;
_local10 = this.upDot(_local2, _local7);
_local3 = _local7;
while (_local3 > _local10) {
_local5[_local2][_local3].isSelected(false);
_local3--;
}
} while (_local3 > 1);
}
}
_local4++;
} while (_local4 < _local15);
};
gameFieldClass.prototype.setFreeUps = function (I, J) {
var _local3 = true;
var _local4;
var _local8;
var _local2;
var _local9;
var _local6 = this.Cells;
_local4 = this.upDot(I, J);
_local2 = J;
while (_local2 > _local4) {
if (_local6[I][_local2].jewel.willRemove) {
_local3 = false;
}
if (_local6[I][_local4].jewel.willRemove) {
_local3 = false;
}
_local2--;
}
_local8 = I;
return(_local3);
};
gameFieldClass.prototype.removeGameItems = function () {
var _local2 = 0;
var _local10;
var _local5 = false;
var _local4;
var _local7;
var _local8;
var _local12;
var _local9;
var _local11;
var _local3 = this.GameItems;
var _local6 = this.Cells;
do {
if (_local3[_local2].removed) {
_local5 = true;
_local4 = _local3[_local2];
_local7 = this.setFreeUps(_local4.i, _local4.j);
_local6[_local4.i][_local4.j].setFree();
this.jewelsRemoved++;
delete _local3[_local2];
_local3.splice(_local2, 1);
_local2--;
}
_local2++;
} while (_local2 < _local3.length);
return(_local5);
};
gameFieldClass.prototype.formateAddGameItems = function () {
var _local6 = [];
var _local3;
var _local4;
var _local7 = this.AddGameItems;
var _local8 = this.Field;
var _local10 = this.Cells;
var _local9 = this.FallingInField;
var _local11 = this.FallingItems;
var _local12 = this.Field.length - 1;
var _local5;
var _local2 = 1;
while (_local2 < _local12) {
_local7[_local2] = 0;
_local3 = 0;
_local5 = _local8[_local2].length - 1;
do {
_local3++;
_local4 = _local8[_local2][_local3];
} while ((_local3 < _local5) && (_local4 == "."));
_local6[_local2] = 0;
_local4 = _local10[_local2][_local3];
if (((_local3 < _local5) && (_local4.empty)) && ((!_local4.located) || (this.throughOut))) {
do {
_local6[_local2]++;
_local3++;
_local4 = _local10[_local2][_local3];
} while (((_local3 < _local5) && (_local4.empty)) && ((!_local4.located) || (this.throughOut)));
}
if (_local9[_local2] < 0) {
_local9[_local2] = 0;
}
_local7[_local2] = (_local6[_local2] - _local11[_local2].length) - _local9[_local2];
if (_local7[_local2] < 0) {
_local7[_local2] = 0;
}
_local2++;
}
};
gameFieldClass.prototype.put = function (jewel, i, j, flag) {
if (flag) {
this.Cells[i][j].put(jewel);
} else {
this.Cells[jewel.i][jewel.j].setFree();
}
};
gameFieldClass.prototype.remove = function (i, j) {
this.Cells[i][j].removeContent();
};
gameFieldClass.prototype.removeWithBlocks = function (i, j) {
this.Cells[i][j].removeContent();
if (this.Cells[i + 1][j].jewel.blockType) {
this.Cells[i + 1][j].removeContent();
}
if (this.Cells[i - 1][j].jewel.blockType) {
this.Cells[i - 1][j].removeContent();
}
if (this.Cells[i][j + 1].jewel.blockType) {
this.Cells[i][j + 1].removeContent();
}
if (this.Cells[i][j - 1].jewel.blockType) {
this.Cells[i][j - 1].removeContent();
}
};
gameFieldClass.prototype.removeCells = function () {
var _local2 = this.RemovedCells;
var _local4 = _local2.length - 1;
var _local3 = 0;
do {
_local2[0].removeContent();
_local2.splice(0, 1);
_local3++;
} while (_local3 <= _local4);
};
gameFieldClass.prototype.prepareForRemoving = function (cell) {
if ((cell.jewel.corelationEnable && ((!cell.jewel.bonusType) || (cell.jewel.bonusType == "unmove"))) || (cell.jewel.bonusType && (!cell.jewel.lock))) {
this.RemovedCells.push(cell);
cell.jewel.willRemove = true;
cell.jewel.lock = true;
cell.jewel.corelationEnable = false;
cell.isSelected(false);
}
};
gameFieldClass.prototype.explosionofBomb = function (i, j, upgraded) {
var _local3;
var _local6 = this.Cells;
_local3 = _local6[i - 1][j - 1];
this.prepareForRemoving(_local3);
_local3 = _local6[i - 1][j];
this.prepareForRemoving(_local3);
_local3 = _local6[i - 1][j + 1];
this.prepareForRemoving(_local3);
_local3 = _local6[i][j - 1];
this.prepareForRemoving(_local3);
_local3 = _local6[i][j + 1];
this.prepareForRemoving(_local3);
_local3 = _local6[i + 1][j - 1];
this.prepareForRemoving(_local3);
_local3 = _local6[i + 1][j];
this.prepareForRemoving(_local3);
_local3 = _local6[i + 1][j + 1];
this.prepareForRemoving(_local3);
if (upgraded) {
_local3 = _local6[i - 2][j - 2];
this.prepareForRemoving(_local3);
_local3 = _local6[i - 2][j - 1];
this.prepareForRemoving(_local3);
_local3 = _local6[i - 2][j];
this.prepareForRemoving(_local3);
_local3 = _local6[i - 2][j + 1];
this.prepareForRemoving(_local3);
_local3 = _local6[i - 2][j + 2];
this.prepareForRemoving(_local3);
_local3 = _local6[i + 2][j - 2];
this.prepareForRemoving(_local3);
_local3 = _local6[i + 2][j - 1];
this.prepareForRemoving(_local3);
_local3 = _local6[i + 2][j];
this.prepareForRemoving(_local3);
_local3 = _local6[i + 2][j + 1];
this.prepareForRemoving(_local3);
_local3 = _local6[i + 2][j + 2];
this.prepareForRemoving(_local3);
_local3 = _local6[i - 1][j - 2];
this.prepareForRemoving(_local3);
_local3 = _local6[i][j - 2];
this.prepareForRemoving(_local3);
_local3 = _local6[i + 1][j - 2];
this.prepareForRemoving(_local3);
_local3 = _local6[i - 1][j + 2];
this.prepareForRemoving(_local3);
_local3 = _local6[i][j + 2];
this.prepareForRemoving(_local3);
_local3 = _local6[i + 1][j + 2];
this.prepareForRemoving(_local3);
}
_root.playSound("bonus_bomb");
if (!bonuses[("explosion" + i) + j]) {
var _local7 = bonuses.attachMovie("explosion", ("explosion" + i) + j, bonuses.getNextHighestDepth());
} else {
var _local7 = bonuses[("explosion" + i) + j];
}
_local7._x = this.getX(i) + (elementSize / 2);
_local7._y = this.getY(j) + (elementSize / 2);
_local7.gotoAndPlay("del");
};
gameFieldClass.prototype.explosionofDynamite = function (i, j, upgraded) {
var myItem;
var cell;
var Cells = this.Cells;
cell = Cells[i - 3][j];
this.prepareForRemoving(cell);
cell = Cells[i - 2][j];
this.prepareForRemoving(cell);
cell = Cells[i - 1][j];
this.prepareForRemoving(cell);
cell = Cells[i][j - 3];
this.prepareForRemoving(cell);
cell = Cells[i][j - 2];
this.prepareForRemoving(cell);
cell = Cells[i][j - 1];
this.prepareForRemoving(cell);
cell = Cells[i][j + 1];
this.prepareForRemoving(cell);
cell = Cells[i][j + 2];
this.prepareForRemoving(cell);
cell = Cells[i][j + 3];
this.prepareForRemoving(cell);
cell = Cells[i + 1][j];
this.prepareForRemoving(cell);
cell = Cells[i + 2][j];
this.prepareForRemoving(cell);
cell = Cells[i + 3][j];
this.prepareForRemoving(cell);
if (upgraded) {
cell = Cells[i + 4][j];
this.prepareForRemoving(cell);
cell = Cells[i - 4][j];
this.prepareForRemoving(cell);
cell = Cells[i][j + 4];
this.prepareForRemoving(cell);
cell = Cells[i][j - 4];
this.prepareForRemoving(cell);
}
this.flamesNumber++;
thisObj.bonuses.attachMovie("flame", "flame" + this.flamesNumber, thisObj.bonuses.getNextHighestDepth());
myItem = eval ("bonuses.flame" + this.flamesNumber);
myItem._rotation = 0;
myItem._x = this.getX(i) + (elementSize / 2);
myItem._y = this.getY(j) + (elementSize / 2);
this.flamesNumber++;
thisObj.bonuses.attachMovie("flame", "flame" + this.flamesNumber, thisObj.bonuses.getNextHighestDepth());
myItem = eval ("bonuses.flame" + this.flamesNumber);
myItem._rotation = 90;
myItem._x = this.getX(i) + (elementSize / 2);
myItem._y = this.getY(j) + (elementSize / 2);
this.flamesNumber++;
thisObj.bonuses.attachMovie("flame", "flame" + this.flamesNumber, thisObj.bonuses.getNextHighestDepth());
myItem = eval ("bonuses.flame" + this.flamesNumber);
myItem._rotation = 180;
myItem._x = this.getX(i) + (elementSize / 2);
myItem._y = this.getY(j) + (elementSize / 2);
this.flamesNumber++;
thisObj.bonuses.attachMovie("flame", "flame" + this.flamesNumber, thisObj.bonuses.getNextHighestDepth());
myItem = eval ("bonuses.flame" + this.flamesNumber);
myItem._rotation = 270;
myItem._x = this.getX(i) + (elementSize / 2);
myItem._y = this.getY(j) + (elementSize / 2);
_root.playSound("bonus_dynamite");
explose = bonuses.attachMovie("explosionOfDynamite", ("explosionOfDynamite" + i) + j, bonuses.getNextHighestDepth());
explose._x = this.getX(i) + (elementSize / 2);
explose._y = this.getY(j) + (elementSize / 2);
explose.gotoAndPlay("del");
};
gameFieldClass.prototype.removeFlame = function () {
this.flamesNumber--;
};
gameFieldClass.prototype.explosionofGun = function (i, j, upgraded) {
var myitem;
myitem = bonuses.createEmptyMovieClip(("bonus" + i) + j, bonuses.getNextHighestDepth());
myitem.counter = 0;
myitem.di = 0;
myitem.i = i;
myitem.j = j;
if (upgraded) {
var firelength = 7;
} else {
var firelength = 5;
}
myitem.onEnterFrame = function () {
this.counter++;
if (this.counter == 2) {
this.counter = 0;
myitem.di++;
var _local2 = this.i + this.di;
if (game.gameField.inField(_local2, this.j)) {
var _local3 = bonuses.attachMovie("fire", ("firewall" + _local2) + j, bonuses.getNextHighestDepth());
_local3._x = game.gameField.getX(_local2);
_local3._y = game.gameField.getY(this.j) + (((0.5 - Math.random()) * elementSize) / 2);
var _local4 = game.gameField.Cells[_local2][this.j];
game.gameField.prepareForRemoving(_local4);
}
_local2 = this.i - this.di;
if (game.gameField.inField(_local2, this.j)) {
var _local3 = bonuses.attachMovie("fire", ("firewall" + _local2) + this.j, bonuses.getNextHighestDepth());
_local3._x = game.gameField.getX(_local2);
_local3._y = game.gameField.getY(this.j) + (((0.5 - Math.random()) * elementSize) / 2);
var _local4 = game.gameField.Cells[_local2][this.j];
game.gameField.prepareForRemoving(_local4);
}
if (this.di == firelength) {
this.removeMovieClip();
}
}
};
if (!bonuses[("explosion" + i) + j]) {
var _local6 = bonuses.attachMovie("explosion", ("explosion" + i) + j, bonuses.getNextHighestDepth());
} else {
var _local6 = bonuses[("explosion" + i) + j];
}
_local6._x = this.getX(i) + (elementSize / 2);
_local6._y = this.getY(j) + (elementSize / 2);
_local6.gotoAndPlay("del");
_root.playSound("bonus_firewall");
};
gameFieldClass.prototype.lightningIt = function (item) {
var _local5 = this.getI(item.getX());
var _local4 = this.getJ(item.getY());
if ((item.lightningItI != _local5) || (item.lightningItJ != _local4)) {
item.lightningItI = _local5;
item.lightningItJ = _local4;
var _local6 = this.Cells[_local5][_local4];
if (!_local6.empty) {
this.prepareForRemoving(_local6);
} else {
_local6.removeContent("cell");
}
this.flamesNumber++;
myItem = bonuses.attachMovie("lighting", "flame" + this.flamesNumber, thisObj.bonuses.getNextHighestDepth());
myItem._x = this.getX(_local5) + (elementSize / 2);
myItem._y = this.getY(_local4) + (elementSize / 2);
_root.playSound("bonus_lightning");
}
};
gameFieldClass.prototype.explosionoflightning = function (i, j, upgraded) {
var _local11 = this.Field.length - 2;
var _local10 = this.Field[0].length - 2;
var _local8;
var _local9;
var _local3;
var _local12 = [];
var _local2 = 0;
if (bonuses["rocket" + _local2]) {
do {
_local2++;
} while (bonuses["rocket" + _local2]);
}
_local3 = bonuses.attachMovie("lightningEffect", "rocket" + _local2, bonuses.getNextHighestDepth());
_local3._x = this.getX(i) + (elementSize / 2);
_local3._y = this.getY(j) + (elementSize / 2);
if (!upgraded) {
var _local7 = 5;
} else {
var _local7 = 8;
}
_local8 = i + ((Math.random() - 0.5) * _local7);
_local9 = j + ((Math.random() - 0.5) * _local7);
_local3.setPurpose(this.getX(_local8), this.getY(_local9));
_local3.setApplyFunction(this.lightningIt, this);
_local3.lightningItI = i;
_local3.lightningItJ = j;
if (!bonuses[("glowing" + i) + j]) {
var _local6 = bonuses.attachMovie("glowing", ("glowing" + i) + j, bonuses.getNextHighestDepth());
} else {
var _local6 = bonuses[("glowing" + i) + j];
}
_local6._x = this.getX(i) + (elementSize / 2);
_local6._y = this.getY(j) + (elementSize / 2);
_local6.gotoAndPlay("del");
};
gameFieldClass.prototype.explosionofRocket = function (x, y) {
var _local4 = this.getI(x);
var _local3 = this.getJ(y);
var _local5 = this.Cells[_local4][_local3];
if (!_local5.empty) {
this.prepareForRemoving(_local5);
} else {
_local5.removeContent("cell");
}
if (!bonuses[("explosion" + _local4) + _local3]) {
var _local6 = bonuses.attachMovie("explosionOfRocket", ("explosion" + _local4) + _local3, bonuses.getNextHighestDepth());
} else {
var _local6 = bonuses[("explosion" + _local4) + _local3];
}
_local6.gotoAndPlay("del");
_local6._x = x;
_local6._y = y;
_root.playSound("bonus_bomb");
};
gameFieldClass.prototype.explosionoffireworks = function (i, j, upgraded) {
var _local12 = this.Field.length - 2;
var _local8 = this.Field[0].length - 2;
var _local6;
var _local7;
var _local3;
var _local14 = [];
var _local5 = 0;
var _local13 = bonuses.attachMovie("greenmctrans", ("bonus" + i) + j, bonuses.getNextHighestDepth());
_local13._x = this.getX(i) + (elementSize / 2);
_local13._y = this.getY(j) + (elementSize / 2);
if (bonuses["rocket" + _local5]) {
do {
_local5++;
} while (bonuses["rocket" + _local5]);
}
if (!upgraded) {
var _local9 = this.fireworksItemsNumber;
} else {
var _local9 = this.fireworksItemsNumber + 5;
}
var _local4 = _local5;
while (_local4 < (_local5 + _local9)) {
_local3 = bonuses.attachMovie("homingMissile", "rocket" + _local4, bonuses.getNextHighestDepth());
_local3._x = this.getX(i) + (elementSize / 2);
_local3._y = this.getY(j) + (elementSize / 2);
_local6 = Math.round(Math.random() * _local12) + 1;
_local7 = Math.round(Math.random() * _local8) + 1;
_local3.setPurpose(this.getX(_local6), this.getY(_local7));
_local3.setApplyFunction(this.explosionofRocket, this);
_local4++;
}
_root.playSound("bonus_fireworks");
};
gameFieldClass.prototype.clonForShuffle = function (cell, cellCenter, cellTarget) {
var _local4 = "jewel" + cell.jewel.itsColor;
if (cell.jewel.bonusType) {
_local4 = cell.jewel.bonusType;
}
var _local7 = ("jewel" + cell.i) + cell.j;
var _local3 = bonuses.attachMovie(_local4, _local7, bonuses.getNextHighestDepth());
cell.jewel.lock = true;
cell.jewel.corelationEnable = false;
var _local10 = new Color(cell.jewel.itsTarget);
_local10.setRGB(16777215);
cell.jewel.itsTarget.alphaDecrement = 100 / (2 * CHANGE_JEWELS_TIME);
cell.jewel.itsTarget.onEnterFrame = function () {
this._alpha = this._alpha - this.alphaDecrement;
if (this._alpha <= this.alphaDecrement) {
this._alpha = 0;
delete this.onEnterFrame;
}
};
_local3._x = cell.jewel.X;
_local3._y = cell.jewel.Y;
_local3.count = 0;
_local3.speedX = ((-(cellCenter.i - cell.i)) * elementSize) / CHANGE_JEWELS_TIME;
_local3.speedY = ((-(cellCenter.j - cell.j)) * elementSize) / CHANGE_JEWELS_TIME;
_local3.targetObject = cell.jewel;
_local3.targetCell2 = cellTarget;
_local3.targetCell1 = cellCenter;
_local3.onEnterFrame = function () {
this.count++;
this._x = this._x + this.speedX;
this._y = this._y + this.speedY;
if (this.count < CHANGE_JEWELS_TIME) {
var _local2 = this.count * 10;
} else {
var _local2 = ((2 * CHANGE_JEWELS_TIME) - this.count) * 10;
}
var _local5 = new Color(this);
var _local3 = -_local2;
var _local4 = {ra:"100", rb:_local2, ga:"100", gb:_local3, ba:"100", bb:_local3, aa:"100", ab:"0"};
_local5.setTransform(_local4);
if (this.count == CHANGE_JEWELS_TIME) {
this.speedX = (((this.targetCell2.i - (2 * this.targetObject.i)) + this.targetCell1.i) * elementSize) / CHANGE_JEWELS_TIME;
this.speedY = (((this.targetCell2.j - (2 * this.targetObject.j)) + this.targetCell1.j) * elementSize) / CHANGE_JEWELS_TIME;
}
if (this.count == (2 * CHANGE_JEWELS_TIME)) {
delete this.onEnterFrame;
this.targetObject.lock = false;
this.targetObject.corelationEnable = true;
_local5 = new Color(this.targetObject.itsTarget);
_local4 = {ra:"100", rb:"0", ga:"100", gb:"0", ba:"100", bb:"0", aa:"100", ab:"0"};
_local5.setTransform(_local4);
this.targetCell2.put(this.targetObject);
this.removeMovieClip();
}
};
};
gameFieldClass.prototype.explosionofShuffle = function (i, j, upgraded) {
var _local3;
var _local6;
var _local12 = this.Cells;
var _local15 = _local12.length - 1;
var _local11;
var _local7;
var _local17 = _local12[i][j].jewel.itsColor;
var _local14 = _local12[i][j];
var _local5 = [];
var _local2;
var _local4;
if (!upgraded) {
var _local13 = this.sqrRadiusAffect;
} else {
var _local13 = this.sqrRadiusAffect + 4;
}
_local2 = _local15;
while (_local2 >= 1) {
_local7 = _local12[_local2].length - 1;
if ((!isNaN(_local7)) && (_local7)) {
_local4 = _local7;
while (_local4 >= 1) {
_local3 = _local12[_local2][_local4];
_local11 = ((_local2 - i) * (_local2 - i)) + ((_local4 - j) * (_local4 - j));
if (_local11 <= _local13) {
if (((_local3 && (!_local3.empty)) && (!_local3.jewel.blockType)) && (!_local3.jewel.lock)) {
_local5.push(_local3);
}
}
_local4--;
}
}
_local2--;
}
var _local10 = _local5.length;
_local2 = 0;
while (_local2 < _local10) {
_local3 = _local5[_local2];
do {
_local4 = Math.round(Math.random() * (_local10 - 1));
_local6 = _local5[_local4];
} while (_local6.busy);
_local6.busy = true;
this.clonForShuffle(_local3, _local14, _local6);
_local2++;
}
_local2 = 0;
while (_local2 < _local10) {
_local3 = _local5[_local2];
delete _local3.busy;
_local2++;
}
var _local16 = bonuses.attachMovie("star2", ("star" + i) + j, bonuses.getNextHighestDepth());
_local16._x = this.getX(i) + (elementSize / 2);
_local16._y = this.getY(j) + (elementSize / 2);
this.playSound("bonus_shuffle");
};
gameFieldClass.prototype.setAttractionCenter = function (i, j, upgraded) {
var _local12;
var _local4;
var _local6 = this.Cells;
var _local10 = _local6.length - 1;
var _local5;
var _local3;
var _local8 = false;
if (!upgraded) {
var _local9 = this.sqrRadiusAffect;
} else {
var _local9 = this.sqrRadiusAffect + 4;
}
do {
var _local7 = enabledColors[Math.round(Math.random() * (enabledColors.length - 2)) + 1];
I = _local10;
while (I >= 1) {
_local3 = _local6[I].length - 1;
if ((!isNaN(_local3)) && (_local3)) {
J = _local3;
while (J >= 1) {
_local4 = _local6[I][J];
_local5 = ((I - i) * (I - i)) + ((J - j) * (J - j));
if ((_local5 <= _local9) && (_local4.jewel.itsColor == _local7)) {
_local8 = _local4.jewel.setAttraction(i, j);
}
J--;
}
}
I--;
}
} while (!_local8);
var _local11 = bonuses.attachMovie("bluemctrans", ("star" + i) + j, bonuses.getNextHighestDepth());
_local11._x = this.getX(i) + (elementSize / 2);
_local11._y = this.getY(j) + (elementSize / 2);
_local11.count = 0;
_local11._x = this.getX(i) + (elementSize / 2);
_local11._y = this.getY(j) + (elementSize / 2);
_local11.i = i;
_local11.j = j;
_local11.parentTarget = this;
_local11.onEnterFrame = function () {
this.count++;
if (this.count == (2 * CHANGE_JEWELS_TIME)) {
delete this.onEnterFrame;
this.parentTarget.Cells[this.i][this.j].jewel.remove();
if (!bonuses[("explosion" + i) + j]) {
this.gotoAndPlay("del");
}
}
};
_root.playSound("bonus_magnet");
};
gameFieldClass.prototype.openLocks = function (color, i0, j0) {
var Unlocks = new Array();
var k = 0;
var N;
var keyTarget;
var WeaponItem;
var myitem;
var i = 1;
while (i < (this.Field.length - 1)) {
var j = 1;
while (j < (this.Field[i].length - 1)) {
if (this.Field[i][j] != ".") {
if ((this.Cells[i][j].jewel.itsColor == color) && (this.Cells[i][j].jewel.bonusType == "lock")) {
k++;
this.Cells[i][j].jewel.lock = false;
Unlocks[k] = new Object();
Unlocks[k].n = 0;
Unlocks[k].i = i;
Unlocks[k].j = j;
if (this.WeaponItems.length > 0) {
var N = (this.WeaponItems[this.WeaponItems.length - 1].getNofTarget() + 1);
} else {
N = 0;
}
thisObj.bonuses.createEmptyMovieClip("WeaponItem" + N, thisObj.bonuses.getNextHighestDepth());
myitem = eval ("bonuses.WeaponItem" + N);
myitem._x = this.getX(i0) + (elementSize / 2);
myitem._y = this.getY(j0) + (elementSize / 2);
keyTarget = bonuses.attachMovie("key", ("key" + i0) + j0, bonuses.getNextHighestDepth());
keyTarget._x = this.getX(i0) + (elementSize / 2);
keyTarget._y = this.getY(j0) + (elementSize / 2);
WeaponItem = new fallingKeyClass();
WeaponItem.setIt(i0, j0, i, j, myitem, N, this, keyTarget);
this.WeaponItems.push(WeaponItem);
}
}
j++;
}
i++;
}
var i = 1;
while (i < (this.Field.length - 1)) {
var j = 1;
while (j < (this.Field[i].length - 1)) {
if ((this.Field[i][j] != ".") && (this.Cells[i][j].empty)) {
N = this.addColumnNumber(i, j);
k = 1;
while (k <= (Unlocks.length - 1)) {
if ((j > Unlocks[k].j) && (N == Unlocks[k].i)) {
Unlocks[k].n++;
}
k++;
}
}
j++;
}
i++;
}
k = 1;
while (k <= (Unlocks.length - 1)) {
this.AddGameItemsRes[Unlocks[k].i] = Unlocks[k].n;
this.Cells[Unlocks[k].i][Unlocks[k].j].jewel.lock = true;
k++;
}
};
gameFieldClass.prototype.openLock = function (i, j, keyTarget) {
var _local6 = 0;
this.Cells[i][j].jewel.unlock();
this.Cells[i][j].isSelected(true);
var _local5 = this.upDot(i, j);
var _local2 = j;
while (_local2 > _local5) {
this.Cells[i][_local2].jewel.free = true;
_local2--;
}
this.sortGameItems();
keyTarget.removeMovieClip();
};
gameFieldClass.prototype.sortGameItems = function () {
var _local16 = this.GameItems.length;
var _local7;
var _local11 = -1000;
var _local9 = -1;
this.MoveItems = new Array();
var _local8 = new Array();
var _local5 = this.Cells;
var MoveItems = this.MoveItems;
var GameItems = this.GameItems;
var _local15 = _local5.length - 1;
var _local6 = _local5[1].length - 1;
var _local13 = [];
var _local17 = [];
var _local10;
var _local3;
var _local2;
_local3 = 1;
while (_local3 <= _local15) {
_local6 = _local5[_local3].length - 1;
if ((!isNaN(_local6)) && (_local6)) {
_local2 = 1;
while (_local2 <= _local6) {
_local5[_local3][_local2].jewel.ins = false;
_local2++;
}
}
_local3++;
}
_local3 = _local15;
while (_local3 >= 1) {
_local6 = _local5[_local3].length - 1;
if ((!isNaN(_local6)) && (_local6)) {
_local2 = _local6;
while (_local2 >= 1) {
cell = _local5[_local3][_local2];
if (cell.empty || (cell.jewel.ins)) {
cell = _local5[_local3][_local2 - 1];
if ((cell && (!cell.jewel.lock)) && (!cell.empty)) {
cell.jewel.ins = true;
} else {
cell = _local5[_local3 - 1][_local2 - 1];
if ((cell && (!cell.jewel.lock)) && (!cell.empty)) {
cell.jewel.ins = true;
} else {
cell = _local5[_local3 + 1][_local2 - 1];
if ((cell && (!cell.jewel.lock)) && (!cell.empty)) {
cell.jewel.ins = true;
}
}
}
}
_local2--;
}
}
_local3--;
}
var _local4 = 0;
while (_local4 < _local16) {
_local7 = GameItems[_local4];
_local3 = _local7.i;
_local2 = _local7.j;
if (((!_local7.removed) && (!_local7.willRemove)) && (_local7.free || (_local7.ins))) {
_local8[_local8.length] = _local7;
}
_local4++;
}
if (this.throughOut) {
_local4 = 0;
do {
_local7 = _local8[_local4];
if (((_local7.blockType || (_local7.bonusType == "lock")) || (_local7.bonusType == "key")) || (_local7.bonusType == "unmove")) {
_local8.splice(_local4, 1);
} else {
_local4++;
}
} while (_local4 < _local8.length);
}
var _local12 = _local8.length;
_local4 = 0;
while (_local4 < _local12) {
_local13[_local4] = _local8[_local4].Y;
_local4++;
}
var _local14 = 0;
while (_local14 < _local12) {
_local4 = 0;
while (_local4 < _local12) {
_local10 = _local13[_local4];
if (_local10 > _local11) {
_local11 = _local10;
_local9 = _local4;
}
_local4++;
}
if (_local9 >= 0) {
MoveItems[MoveItems.length] = _local8[_local9];
_local13[_local9] = -1000;
}
_local11 = -1000;
_local9 = -1;
_local14++;
}
if ((!MoveItems.length) && (this.throughOut)) {
this.throughOut = false;
_local3 = 1;
while (_local3 <= _local15) {
_local6 = _local5[_local3].length - 1;
if ((!isNaN(_local6)) && (_local6)) {
_local2 = 1;
while (_local2 <= _local6) {
_local5[_local3][_local2].throughOut = false;
_local2++;
}
}
_local3++;
}
}
};
gameFieldClass.prototype.addGameItem = function (myColor, bonus, block, lock, Source) {
var GameItem;
var myitem;
var color;
var NofItem;
if (!Source) {
var N = (this.GameItems[this.GameItems.length - 1].getNofTarget() + 1);
var sourceName = ("GameItem" + N);
} else {
var sourceName = Source;
var N = 0;
}
thisObj.jewels.createEmptyMovieClip(sourceName, thisObj.jewels.getNextHighestDepth());
myitem = eval ("jewels." + sourceName);
GameItem = new gameItemClass();
if (myColor == "?") {
color = this.enabledColors[_global.Math.round(_global.Math.random() * (this.colorsNumber - 1)) + 1];
} else {
color = myColor;
}
GameItem.setIt(myitem, color, bonus, block, lock, N, this);
if (!Source) {
this.GameItems.push(GameItem);
} else {
GameItem.itsTarget._visible = true;
}
return(GameItem);
};
gameFieldClass.prototype.removeGameItem = function (item) {
};
gameFieldClass.prototype.setPause = function () {
};
gameFieldClass.prototype.inField = function (i0, j0) {
var _local2 = false;
if (this.Cells[i0][j0]) {
_local2 = true;
}
return(_local2);
};
gameFieldClass.prototype.fullColumn = function (number, j0) {
var _local4 = 0;
var _local3 = j0;
var _local7 = this.Field;
var _local5 = this.Cells;
var _local2 = _local5[number][_local3 + 1];
if (_local2 && (!_local2.jewel.lock)) {
do {
_local3++;
_local2 = _local5[number][_local3];
if (_local2.empty && (!_local2.located)) {
_local4++;
}
} while (_local2 && (!_local2.jewel.lock));
}
return(_local4);
};
gameFieldClass.prototype.fullDownColumn = function (number, j0) {
var _local4 = 0;
var _local3 = j0;
var _local7 = this.Field;
var _local5 = this.Cells;
var _local2 = _local5[number][_local3 + 1];
flength = _local7[number].length;
do {
_local3++;
_local2 = _local5[number][_local3];
if ((_local2.empty && (_local2.throughOut)) && (_local2)) {
_local4++;
}
} while (_local3 < flength);
return(_local4);
};
gameFieldClass.prototype.fullRightColumn = function (i, j) {
var _local2 = true;
var _local8 = this.Field;
var _local6 = this.Cells;
var _local7 = _local6[i][j];
if (!_local7) {
_local2 = false;
}
if (_local7.jewel.lock) {
_local2 = false;
}
var _local3 = _local6[i + 1][j];
if ((_local3 && (!_local3.jewel.lock)) && (!_local3.empty)) {
_local2 = false;
}
if ((_local3.located || (_local6[i + 1][j + 1].located)) || (_local6[i + 1][j - 1].located)) {
_local2 = false;
}
if (this.fullColumnUp(i + 1, j + 1)) {
_local2 = false;
}
if (!this.fullColumn(i + 1, j)) {
_local2 = false;
}
return(_local2);
};
gameFieldClass.prototype.fullLeftColumn = function (i, j) {
var _local2 = true;
var _local8 = this.Field;
var _local6 = this.Cells;
var _local7 = _local6[i][j];
if (!_local7) {
_local2 = false;
}
if (_local7.jewel.lock) {
_local2 = false;
}
var _local5 = _local6[i - 1][j];
if ((_local5 && (!_local5.jewel.lock)) && (!_local5.empty)) {
_local2 = false;
}
if ((_local5.located || (_local6[i - 1][j + 1].located)) || (_local6[i - 1][j - 1].located)) {
_local2 = false;
}
if (this.fullColumnUp(i - 1, j + 1)) {
_local2 = false;
}
if (!this.fullColumn(i - 1, j)) {
_local2 = false;
}
return(_local2);
};
gameFieldClass.prototype.getI = function (x) {
return(_global.Math.floor(((x - (this.widthOfWindow / 2)) / elementSize) + (this.Field.length / 2)));
};
gameFieldClass.prototype.getJ = function (y) {
return(_global.Math.floor(((y - (this.heightOfWindow / 2)) / elementSize) + (this.Field[0].length / 2)));
};
gameFieldClass.prototype.firstJ = function (i) {
var _local4 = this.Cells[i];
var _local3 = _local4.length - 1;
var _local2 = 0;
if (_local3 && (!isNaN(_local3))) {
do {
_local2++;
} while ((!_local4[_local2]) && (_local2 < _local3));
}
return(_local2);
};
gameFieldClass.prototype.lastJ = function (i) {
var _local3 = this.Cells[i];
var _local4 = _local3.length - 1;
var _local2 = _local4;
if (_local4 && (!isNaN(_local4))) {
do {
_local2--;
} while ((!_local3[_local2]) && (_local2 > 0));
}
return(_local2);
};
gameFieldClass.prototype.getX = function (i) {
return((this.widthOfWindow / 2) + (elementSize * (i - (this.Field.length / 2))));
};
gameFieldClass.prototype.getY = function (j) {
return((this.heightOfWindow / 2) + (elementSize * (j - (this.Field[0].length / 2))));
};
gameItemClass = function () {
this.itsTarget = new MovieClip();
this.itsColor = 0;
this.changeSpeed = 0;
this.changeTimer = 0;
this.fallTimer = 0;
this.fallSpeed = 8;
this.backVelocity = elementSize / 2;
this.gameField = null;
this.i = 0;
this.j = 0;
this.X = 0;
this.Y = 0;
this.purposeI = 0;
this.purposeJ = 0;
this.removed = false;
this.free = true;
this.NofTarget = 0;
this.falling = true;
this.bonusType = false;
this.blockType = false;
this.lock = false;
this.block = false;
this.dropSound = false;
this.corelationEnable = true;
this.dir = "";
this.throughOut = false;
this.willRemove = false;
this.newOne = true;
};
gameItemClass.prototype.setIt = function (mc, color, bonusType, blockType, block, N, myGF) {
var _local3;
var _local2;
var _local4;
this.gameField = myGF;
this.itsTarget = mc;
if (color != "?") {
this.itsColor = color;
} else {
this.itsColor = this.gameField.enabledColors[Math.round(Math.random() * (this.gameField.colorsNumber - 1)) + 1];
}
this.bonusType = bonusType;
this.blockType = blockType;
this.block = block;
this.lock = block;
if (this.blockType || (this.bonusType && (((this.bonusType != "lock") && (this.bonusType != "key")) && (this.bonusType != "unmove")))) {
this.itsColor = 0;
}
if (this.bonusType) {
if (((this.bonusType != "any") && (this.bonusType != "key")) && (this.bonusType != "unmove")) {
this.corelationEnable = false;
}
switch (this.bonusType) {
case "lock" :
this.lock = true;
this.block = true;
this.corelationEnable = false;
_local2 = 0;
_local3 = 1;
break;
case "key" :
this.lock = true;
this.block = true;
_local2 = 0;
_local3 = 1;
break;
case "unmove" :
this.lock = true;
this.block = true;
_local2 = 0;
_local3 = 1;
}
if (!this.lock) {
_local2 = 1;
_local3 = 0;
}
if (this.bonusType == "any") {
this.itsColor = "any";
}
this.itsTarget.attachMovie(this.bonusType, "bonus", _local3);
this.itsTarget.bonus._x = 0;
this.itsTarget.bonus._y = 0;
}
if (this.blockType) {
_local4 = 0;
_local2 = 1;
this.itsTarget.attachMovie(this.blockType, "block", _local4);
this.itsTarget.block._x = 0;
this.itsTarget.block._y = 0;
this.itsTarget.block.itsTarget = this;
this.itsTarget.block.counter = 0;
this.itsTarget.block.onPress = function () {
this.onEnterFrame = function () {
this.counter++;
this.itsTarget.shake(true);
if (this.counter >= 10) {
delete this.onEnterFrame;
this.counter = 0;
this.itsTarget.setXY(this.itsTarget.X, this.itsTarget.Y);
}
};
};
}
if (this.itsColor) {
this.itsTarget.attachMovie("jewel" + this.itsColor, "jewel", _local2);
this.itsTarget.jewel._x = 0;
this.itsTarget.jewel._y = 0;
}
this.itsTarget._visible = false;
this.changeSpeed = elementSize / this.gameField.changeTime;
this.NofTarget = N;
};
gameItemClass.prototype.setXY = function (x, y) {
this.itsTarget._x = x;
this.itsTarget._y = y;
this.X = x;
this.Y = y;
this.i = this.gameField.getI(this.X);
this.j = this.gameField.getJ(this.Y);
};
gameItemClass.prototype.getX = function () {
return(this.X);
};
gameItemClass.prototype.getY = function () {
return(this.Y);
};
gameItemClass.prototype.getNofTarget = function () {
return(this.NofTarget);
};
gameItemClass.prototype.getColor = function (color) {
if (!this.corelationEnable) {
return(false);
}
if (this.bonusType == "any") {
return(true);
}
if (this.blockType) {
return(false);
}
if (this.itsColor == color) {
return(true);
}
return(false);
};
gameItemClass.prototype.select = function (itsselection) {
};
gameItemClass.prototype.activate = function (itsselection) {
this.itsTarget.jewel.active = itsselection;
};
gameItemClass.prototype.setFalling = function (itsfalling) {
this.falling = itsfalling;
if (this.gameField.fullColumnUp(this.i, this.j) && (!this.newOne)) {
if (itsfalling && (!this.throughOut)) {
this.gameField.FallingInField[this.i]++;
}
}
if (!itsfalling) {
this.gameField.FallingInField[this.i]--;
}
};
gameItemClass.prototype.motion = function () {
var _local4;
var _local5;
var _local6 = "";
var _local3 = this.gameField;
var _local7 = _local3.Cells;
_local4 = _local3.getJ(this.Y - (elementSize / 2));
_local5 = _local3.getI(this.X);
var _local10 = ((this.X - _local3.getX(_local5)) - (elementSize / 2)) == 0;
var _local9 = ((this.Y - _local3.getY(_local4)) - (elementSize / 2)) == 0;
var _local8 = _local10 && (_local9);
if (!_local8) {
_local6 = this.dir;
}
if ((_local3.inField(_local5, _local4 + 1) || (_local3.inField(_local5, _local4))) && (!this.itsTarget._visible)) {
this.itsTarget._visible = true;
}
if (_local8 && (_local3.inField(_local5, _local4))) {
if (!_local3.throughOut) {
if (_local3.fullColumn(_local5, _local4)) {
_local6 = "down";
} else if (!this.blockType) {
if (_local3.fullRightColumn(_local5, _local4)) {
_local6 = "right";
} else if (_local3.fullLeftColumn(_local5, _local4)) {
_local6 = "left";
}
}
} else if (_local3.fullDownColumn(_local5, _local4)) {
_local6 = "down";
}
if (!this.block) {
switch (_local6) {
case "down" :
_local7[_local5][_local4 + 1].located = 1;
break;
case "right" :
_local7[_local5 + 1][_local4 + 1].located = 1;
break;
case "left" :
_local7[_local5 - 1][_local4 + 1].located = 1;
}
switch (this.dir) {
case "down" :
_local7[this.i][this.j + 1].located = 0;
break;
case "right" :
_local7[this.i + 1][this.j + 1].located = 0;
break;
case "left" :
_local7[this.i - 1][this.j + 1].located = 0;
}
}
if ((_local6 == "left") || (_local6 == "right")) {
if (_local3.fullColumnUp(_local5, _local4)) {
_local3.FallingInField[_local5]--;
}
}
this.i = _local5;
this.j = _local4;
}
if (((_local6 != "") && (!this.lock)) || (this.throughOut)) {
if (!this.falling) {
this.setFalling(true);
_local3.put(this, _local5, _local4, false);
}
} else if (this.falling) {
_local3.put(this, _local5, _local4, true);
if (this.dropSound) {
_root.playSound("glassdrop");
this.dropSound = false;
}
}
if (this.falling) {
this.fallTimer++;
} else {
this.fallTimer = 0;
}
if (this.fallTimer >= 1) {
switch (_local6) {
case "right" :
this.X = this.X + this.fallSpeed;
break;
case "left" :
this.X = this.X - this.fallSpeed;
}
this.Y = this.Y + this.fallSpeed;
this.itsTarget._x = this.X;
this.itsTarget._y = this.Y;
}
this.dir = _local6;
if (_local4 > _local3.Field[_local5].length) {
this.j = _local4;
this.del();
}
};
gameItemClass.prototype.setThroughOut = function () {
if ((((this.bonusType != "lock") && (this.bonusType != "key")) && (this.bonusType != "unmove")) && (!this.blockType)) {
this.throughOut = true;
this.free = true;
this.itsTarget._x = this.X;
this.itsTarget._y = this.Y;
this.gameField.addGameItemWhenChange(this.i, this.j);
}
return(this.throughOut);
};
gameItemClass.prototype.setAttraction = function (i, j) {
if ((!this.itsColor) || (!this.corelationEnable)) {
return(false);
}
this.lock = true;
this.corelationEnable = false;
var _local4 = new Color(this.itsTarget);
_local4.setRGB(16777215);
var _local3 = "jewel" + this.itsColor;
var _local2 = ("jewel" + this.i) + this.j;
var itsCopy = bonuses.attachMovie(_local3, _local2, bonuses.getNextHighestDepth());
_local4 = new Color(itsCopy);
_local4.setRGB(16777215);
itsCopy._x = this.X;
itsCopy._y = this.Y;
this.itsTarget.jewel.itsCopy = itsCopy;
this.itsTarget.jewel.count = 0;
this.itsTarget.jewel.speedX = ((i - this.i) * elementSize) / (2 * CHANGE_JEWELS_TIME);
this.itsTarget.jewel.speedY = ((j - this.j) * elementSize) / (2 * CHANGE_JEWELS_TIME);
this.itsTarget.jewel.targetObject = this;
this.itsTarget.jewel.dX = 10;
this.itsTarget.jewel.alphaDecrement = 100 / CHANGE_JEWELS_TIME;
this.itsTarget.jewel.onEnterFrame = function () {
this.count++;
if (this.count > CHANGE_JEWELS_TIME) {
this.itsCopy._alpha = this.itsCopy._alpha - this.alphaDecrement;
this._alpha = this._alpha - this.alphaDecrement;
}
if (this.count <= (2 * CHANGE_JEWELS_TIME)) {
this._x = this._x + this.speedX;
this._y = this._y + this.speedY;
this.itsCopy._x = this.targetObject.X + ((0.5 - Math.random()) * this.dX);
this.itsCopy._y = this.targetObject.Y + ((0.5 - Math.random()) * this.dX);
} else {
delete this.onEnterFrame;
this.itsCopy.removeMovieClip();
game.gameField.removeWithBlocks(this.targetObject.i, this.targetObject.j);
}
};
return(true);
};
gameItemClass.prototype.shake = function (flag) {
if (((!this.lock) && (!this.blockType)) || (flag)) {
var _local3 = (1 - Math.random()) * 5;
var _local2 = (1 - Math.random()) * 5;
this.itsTarget._x = this.X + _local3;
this.itsTarget._y = this.Y + _local2;
}
};
gameItemClass.prototype.blick = function () {
this.itsTarget.jewel.gotoAndPlay("blick");
};
gameItemClass.prototype.del = function () {
this.removed = true;
this.itsTarget.jewel.removeMovieClip();
this.itsTarget.bonus.removeMovieClip();
};
gameItemClass.prototype.remove = function () {
if (!this.removed) {
this.removed = true;
this.lock = true;
this.corelationEnable = false;
this.itsTarget.jewel.active = false;
this.itsTarget.removeMovieClip();
var _local3;
if (this.bonusType) {
if (this.bonusType == "any") {
_local3 = this.bonusType;
} else {
return(undefined);
}
}
if ((!this.blockType) && (!this.bonusType)) {
_local3 = "jewel" + this.itsColor;
var _local5 = Math.round(Math.random() * 3) + 1;
_root.playSound("piece" + _local5);
}
if (this.blockType) {
this.gameField.blocksRemoved++;
var _local5 = Math.round(Math.random() * 2) + 1;
_root.playSound("stone" + _local5);
_local3 = this.blockType;
var _local4 = bonuses.attachMovie("shardsmc", ("shardsmc" + this.i) + this.j, bonuses.getNextHighestDepth());
var _local6 = makeShards.setShards(_local3, _local4, 5);
_local4.shardItDown(_local6);
} else {
var _local4 = bonuses.attachMovie(_local3, ("shardsmc" + this.i) + this.j, bonuses.getNextHighestDepth());
_local4.onEnterFrame = function () {
this.gotoAndPlay("del");
delete this.onEnterFrame;
};
}
_local4._x = this.X;
_local4._y = this.Y;
}
};
gameItemClass.prototype.unlock = function () {
this.itsTarget.bonus.gotoAndPlay("del");
this.bonusType = false;
this.removed = false;
this.lock = false;
this.block = false;
this.corelationEnable = true;
_root.playSound("unlock");
};
gameItemClass.prototype.explosion = function () {
switch (this.bonusType) {
case false :
this.remove();
break;
case "any" :
this.remove();
this.playSound("bonus_rainbowball");
break;
case "shuffle" :
this.remove();
this.gameField.explosionofShuffle(this.i, this.j);
break;
case "shuffleBig" :
this.remove();
this.gameField.explosionofShuffle(this.i, this.j, true);
break;
case "fireworks" :
this.remove();
this.gameField.explosionoffireworks(this.i, this.j);
break;
case "fireworksBig" :
this.remove();
this.gameField.explosionoffireworks(this.i, this.j, true);
break;
case "bomb" :
this.gameField.explosionofBomb(this.i, this.j);
this.remove();
break;
case "bombBig" :
this.gameField.explosionofBomb(this.i, this.j, true);
this.remove();
break;
case "dynamite" :
this.gameField.explosionofDynamite(this.i, this.j);
this.remove();
break;
case "dynamiteBig" :
this.gameField.explosionofDynamite(this.i, this.j, true);
this.remove();
break;
case "firewall" :
this.remove();
this.gameField.explosionofGun(this.i, this.j);
break;
case "firewallBig" :
this.remove();
this.gameField.explosionofGun(this.i, this.j, true);
break;
case "lightning" :
this.remove();
this.gameField.explosionoflightning(this.i, this.j);
break;
case "lightningBig" :
this.remove();
this.gameField.explosionoflightning(this.i, this.j, true);
break;
case "magnet" :
this.itsTarget.removeMovieClip();
this.corelationEnable = false;
this.lock = true;
this.gameField.setAttractionCenter(this.i, this.j);
break;
case "magnetBig" :
this.itsTarget.removeMovieClip();
this.corelationEnable = false;
this.lock = true;
this.gameField.setAttractionCenter(this.i, this.j, true);
break;
case "key" :
this.lock = true;
this.block = true;
_root.playSound("unlock");
this.gameField.openLocks(this.itsColor, this.i, this.j);
this.remove();
break;
case "unmove" :
_root.playSound("unlock");
this.remove();
}
};
elementOfGameFieldClass = function () {
this.itsTarget = new MovieClip();
this.i = 0;
this.j = 0;
this.located = 0;
this.jewel = null;
this.gameField = null;
this.explosed = false;
this.empty = true;
this.fill = 0;
this.blickMC = null;
};
elementOfGameFieldClass.prototype.setIt = function (i, j, mc, myFill, myGF) {
var remnant;
var myItem;
this.itsTarget = mc;
this.gameField = myGF;
this.itsTarget.attachMovie("but", "but", 0);
this.blickMC = bonuses.attachMovie("jewel_blick", ("jewel_blick" + i) + j, bonuses.getNextHighestDepth());
this.blickMC._x = this.itsTarget._x;
this.blickMC._y = this.itsTarget._y;
this.itsTarget.but._x = 0;
this.itsTarget.but._y = 0;
this.itsTarget.but.enabled = false;
this.i = i;
this.j = j;
this.activity = false;
this.itsTarget.but.itstarget = this;
this.itsTarget.attachMovie("selectionborder", "sBorder", 3);
this.itsTarget.sBorder._x = 0;
this.itsTarget.sBorder._y = 0;
this.itsTarget.sBorder._visible = false;
this.empty = true;
this.fill = Number(myFill);
var i = 1;
while (i <= this.fill) {
this.itsTarget.attachMovie("fill" + i, "fill" + i, i);
myItem = eval ((this.itsTarget._name + ".fill") + i);
i++;
}
};
elementOfGameFieldClass.prototype.put = function (myJewel) {
this.empty = false;
this.explosed = false;
this.isSelected(true);
this.jewel = myJewel;
this.jewel.changeTimer = 0;
this.jewel.free = false;
this.jewel.setFalling(false);
this.jewel.newOne = false;
this.jewel.itsTarget._visible = true;
this.jewel.itsTarget._alpha = 100;
this.located = 0;
var _local3 = this.itsTarget._x;
var _local2 = this.itsTarget._y;
this.jewel.setXY(_local3, _local2);
if (this.jewel.blockType || (this.jewel.lock)) {
this.isSelected(false);
}
};
elementOfGameFieldClass.prototype.isSelected = function (flag) {
this.itsTarget.but.enabled = flag;
this.activity = flag;
};
elementOfGameFieldClass.prototype.blick = function () {
this.blickMC.gotoAndPlay("play");
};
elementOfGameFieldClass.prototype.setFree = function () {
this.isSelected(false);
this.select(false);
this.jewel = null;
this.empty = true;
};
elementOfGameFieldClass.prototype.removeContent = function (purpose) {
if (((!this.empty) || (purpose == "cell")) && (!this.explosed)) {
if (!this.empty) {
this.explosed = true;
this.jewel.explosion();
this.isSelected(false);
}
if (this.fill) {
var fill = eval ((("bg." + this.itsTarget._name) + ".fill") + this.fill);
fill.removeMovieClip();
Source = "fillgr" + this.fill;
var shardsmc = bonuses.attachMovie("shardsmc", (("shardsfill" + this.fill) + this.i) + this.j, bonuses.getNextHighestDepth());
var Shards = makeShards.setShards(Source, shardsmc, 5);
shardsmc.shardItDown(Shards);
shardsmc._x = this.itsTarget._x;
shardsmc._y = this.itsTarget._y;
var sndplus = (Math.round(Math.random()) + 1);
var snd;
switch (this.fill) {
case 1 :
snd = "weak_glass" + sndplus;
break;
case 2 :
snd = "strong_glass" + sndplus;
}
_root.playSound(snd);
this.fill--;
if (!this.fill) {
this.gameField.fillsRemoved++;
}
}
}
};
elementOfGameFieldClass.prototype.select = function (itsselection) {
if ((!_root.levelNum.stay) && (_root.levelNum)) {
game.beginPlay();
}
if ((!game.timer.isPauseInterval()) && (game.hintOn)) {
game.hintOn = false;
game.gameField.removeHint();
game.timer.continueIt();
game.paused = false;
}
if (!game.paused) {
}
};
elementOfGameFieldClass.prototype.unselect = function (itsselection) {
this.itsTarget.sBorder._visible = false;
};
elementOfGameFieldClass.prototype.tryMove = function (dX, dY) {
var _local4;
if (auto) {
return(undefined);
}
if (Math.abs(dX) > Math.abs(dY)) {
dir = "horisontal";
} else {
dir = "vertical";
}
if ((!game.timer.isPauseInterval()) && (game.hintOn)) {
game.hintOn = false;
game.gameField.removeHint();
game.timer.continueIt();
game.paused = false;
}
if (!game.paused) {
this.gameField.setSelect(this, dir);
}
};
elementOfGameFieldClass.prototype.activate = function (itsselection) {
this.jewel.activate(itsselection);
};
weaponClass = function () {
this.i = 0;
this.j = 0;
this.i0 = 0;
this.j0 = 0;
this.dir = "";
this.Speed = 8;
this.timeofLife = 13;
this.lifeTimer = 0;
this.gameField = null;
this.itsTarget = null;
this.gun = null;
this.removed = false;
};
weaponClass.prototype.setIt = function (mc, i, j, N, dir, myGun, myGF) {
this.i = i;
this.j = j;
this.i0 = i;
this.j0 = j;
this.gun = myGun;
this.gameField = myGF;
this.iGun = this.gameField.getI(this.gun.getX());
this.jGun = this.gameField.getJ(this.gun.getY());
this.itsTarget = mc;
this.itsTarget.attachMovie("fireball", "ball", 0);
this.itsTarget.ball._x = 0;
this.itsTarget.ball._y = 0;
this.NofTarget = N;
this.dir = dir;
};
weaponClass.prototype.remove = function () {
this.itsTarget.ball.gotoAndPlay("del");
this.removed = true;
};
weaponClass.prototype.motion = function (dir) {
this.lifeTimer++;
if (this.lifeTimer >= this.gameField.changeTime) {
var _local3 = 0;
}
dj = 0;
switch (this.dir) {
case "left" :
this.itsTarget._x = this.itsTarget._x - this.Speed;
var _local3 = -1;
break;
case "right" :
this.itsTarget._x = this.itsTarget._x + this.Speed;
_local3 = 1;
break;
case "up" :
this.itsTarget._y = this.itsTarget._y - this.Speed;
dj = -1;
break;
case "down" :
this.itsTarget._y = this.itsTarget._y + this.Speed;
dj = 1;
}
if (this.nextElementOfGameField()) {
this.gameField.remove(this.i, this.j);
this.gameField.Cells[this.i + _local3][this.j + dj].jewel.willRemove = true;
this.gameField.Cells[this.i + (2 * _local3)][this.j + (2 * dj)].jewel.willRemove = true;
}
if ((((this.i < 1) || (this.i > 14)) || (this.j < 1)) || (this.j > 14)) {
this.remove();
var i = this.gameField.getI(this.gun.getX());
var j = this.gameField.getJ(this.gun.getY());
this.gameField.removeContant(i, j);
this.gameField.RemovedGuns[this.iGun][this.jGun] = false;
_root.playSound("explosionbig");
this.gun.remove();
}
};
weaponClass.prototype.nextElementOfGameField = function () {
var _local2 = false;
this.i = this.gameField.getI(this.itsTarget._x);
this.j = this.gameField.getJ(this.itsTarget._y);
if ((this.i != this.i0) or (this.j != this.j0)) {
_local2 = true;
}
this.i0 = this.i;
this.j0 = this.j;
return(_local2);
};
weaponClass.prototype.getNofTarget = function () {
return(this.NofTarget);
};
AIClass = function () {
this.currentAction = "";
this.moveTapeVelocity = 5;
this.velocitySign = 1;
this.currentPauseTime = 0;
this.pauseTime = 100;
this.X = 0;
this.Y = 0;
this.lastX = 0;
this.lastY = 0;
this.progressType = "";
this.setNewPause();
};
AIClass.prototype.setNewMovieTapeMotion = function () {
this.motionData = game.gameField.noMoves("auto");
var _local2 = game.gameField.Cells[this.motionData.i1][this.motionData.j1];
this.X = game.gameField.getX(this.motionData.i1) + (elementSize / 2);
this.Y = game.gameField.getY(this.motionData.j1) + (elementSize / 2);
this.lastX = game.gameField.getX(this.motionData.i2) + (elementSize / 2);
this.lastY = game.gameField.getY(this.motionData.j2) + (elementSize / 2);
if (this.motionData.i1 != this.motionData.i2) {
var _local3 = "horisontal";
this.velocitySign = (this.motionData.i2 - this.motionData.i1) / Math.abs(this.motionData.i2 - this.motionData.i1);
} else {
var _local3 = "vertical";
this.velocitySign = (this.motionData.j2 - this.motionData.j1) / Math.abs(this.motionData.j2 - this.motionData.j1);
}
game.gameField.setSelect(_local2, _local3);
this.progressType = "moveMovieTapeProgress";
};
AIClass.prototype.setNewPause = function () {
this.currentPauseTime = 0;
this.progressType = "pauseProgress";
};
AIClass.prototype.pauseProgress = function () {
this.currentPauseTime++;
if (this.currentPauseTime == this.pauseTime) {
this.setNewMovieTapeMotion();
}
};
AIClass.prototype.moveMovieTapeProgress = function () {
var _local3 = this.X;
var _local2 = this.Y;
if (this.motionData.i1 != this.motionData.i2) {
_local3 = this.X + (this.moveTapeVelocity * this.velocitySign);
} else {
_local2 = this.Y + (this.moveTapeVelocity * this.velocitySign);
}
if ((((_local3 - this.lastX) * this.velocitySign) > 0) || (((_local2 - this.lastY) * this.velocitySign) > 0)) {
game.gameField.setBackMovieTape();
this.setNewPause();
} else {
this.X = _local3;
this.Y = _local2;
game.gameField.moveMovieTape(this.X, this.Y);
}
if (isNaN(this.X) || (isNaN(this.Y))) {
game.gameField.setBackMovieTape();
this.setNewPause();
}
};
AIClass.prototype.update = function () {
this[this.progressType]();
};
fallingKeyClass = function () {
this.i = 0;
this.j = 0;
this.keyTarget = null;
this.jlast = 0;
this.ilast = 0;
this.fallSpeed = 8;
this.itsTarget = null;
this.gameField = null;
this.NofTarget = 0;
this.removed = false;
};
fallingKeyClass.prototype.setIt = function (i0, j0, ilast, jlast, mc, N, myGF, keyTarget) {
this.i = i0;
this.j = j0;
this.i0 = i0;
this.j0 = j0;
this.jlast = jlast;
this.ilast = ilast;
this.keyTarget = keyTarget;
if (this.jlast <= this.j) {
this.fallSpeed = -this.fallSpeed;
}
if (this.jlast - this.j) {
this.tSpeed = (this.fallSpeed * (this.ilast - this.i)) / (this.jlast - this.j);
} else {
this.tSpeed = (-this.fallSpeed) * (this.ilast - this.i);
this.fallSpeed = 0;
}
this.itsTarget = mc;
this.gameField = myGF;
this.itsTarget.attachMovie("keyglow", "key", 0);
this.itsTarget.key._x = 0;
this.itsTarget.key._y = 0;
this.itsTarget._rotation = ((Math.atan(this.fallSpeed / this.tSpeed) * 180) / Math.PI) - 90;
if (this.ilast >= this.i) {
this.itsTarget._rotation = this.itsTarget._rotation + 180;
}
this.NofTarget = N;
};
fallingKeyClass.prototype.motion = function () {
this.itsTarget._y = this.itsTarget._y + this.fallSpeed;
this.itsTarget._x = this.itsTarget._x + this.tSpeed;
this.j = this.gameField.getJ(this.itsTarget._y);
this.i = this.gameField.getI(this.itsTarget._x);
if ((this.j == this.jlast) && (this.i == this.ilast)) {
this.remove();
}
};
fallingKeyClass.prototype.remove = function () {
this.itsTarget.key.gotoAndPlay("del");
this.removed = true;
this.gameField.openLock(this.ilast, this.jlast, this.keyTarget);
};
fallingKeyClass.prototype.getNofTarget = function () {
return(this.NofTarget);
};
pointsPlusClass = function () {
this.j = 0;
this.j0 = 0;
this.i = 0;
this.upSpeed = 4;
this.itsTarget = null;
this.gameField = null;
this.NofTarget = 0;
this.removed = false;
};
pointsPlusClass.prototype.setIt = function (i, j, mc, N, myGF) {
this.i = i;
this.j = j;
this.j0 = j;
this.itsTarget = mc;
this.gameField = myGF;
this.itsTarget._alpha = 100;
this.NofTarget = N;
};
pointsPlusClass.prototype.motion = function () {
this.itsTarget._y = this.itsTarget._y - this.upSpeed;
this.j = this.gameField.getJ(this.itsTarget._y);
if ((this.j0 - this.j) >= 2) {
this.itsTarget._alpha = this.itsTarget._alpha - 20;
}
if ((this.j0 - this.j) >= 3) {
this.remove();
}
};
pointsPlusClass.prototype.remove = function () {
this.itsTarget.bonus.gotoAndPlay("del");
this.removed = true;
};
pointsPlusClass.prototype.getNofTarget = function () {
return(this.NofTarget);
};
timerClass = function () {
this.playingTime = 0;
this.playingTime0 = getTimer();
this.startPauseTime = 0;
this.finishPauseTime = 0;
this.totalPause = 0;
this.interval = 0;
};
timerClass.prototype.getTotalTime = function () {
this.playingTime = getTimer();
if (!this.isPause()) {
var _local2 = (this.playingTime - this.playingTime0) - this.totalPause;
} else {
var _local2 = (this.startPauseTime - this.playingTime0) - this.totalPause;
}
return(_local2);
};
timerClass.prototype.stopIt = function () {
this.startPauseTime = getTimer();
};
timerClass.prototype.continueIt = function () {
this.finishPauseTime = getTimer();
var _local2 = this.finishPauseTime - this.startPauseTime;
this.totalPause = this.totalPause + _local2;
};
timerClass.prototype.isPause = function () {
return(this.finishPauseTime < this.startPauseTime);
};
timerClass.prototype.isPauseInterval = function () {
return(this.interval);
};
timerClass.prototype.setPauseInterval = function (interval) {
finishPauseInterval = function () {
if (obj.interval) {
clearInterval(obj.interval);
obj.interval = 0;
}
};
if (this.interval) {
clearInterval(this.interval);
this.interval = 0;
}
var _local2 = setInterval(finishPauseInterval, interval);
obj = this;
this.interval = _local2;
};
Frame 8
_quality = "high";
cursor.gotoAndStop("arrow");
trace("global");
globalmap._alpha = 100;
play_b.txt = p_button;
play_b._visible = true;
play_but._visible = true;
submitmc._visible = false;
globalmap.disableAll(false);
var counter = 0;
var i = 0;
do {
i++;
counter = counter + MapsLevels[i];
} while (numberOfLevel > counter);
if (numberOfMap == i) {
gotoAndPlay ("map");
} else if (i > 3) {
globalmap.setActive(numberOfMap + 1, mapsNumber);
timeToFinish();
} else {
_root.playSound("location_changing");
numberOfMap = i;
levelOfMap = 0;
globalmap.setActive(numberOfMap, mapsNumber);
}
window.gotoAndStop("off");
timeToFinish = function () {
play_b._visible = false;
play_but._visible = false;
submitmc._visible = true;
globalmap["kubok" + numberOfGame].gotoAndPlay("on");
globalmap.replay._visible = true;
globalmap.replay.enabled = true;
globalmap.disableAll(true);
globalmap.txtMC.gotoAndStop("congr");
};
replay = function () {
_root.numberOfGame++;
_root.hintsEnabled = false;
_root.numberOfLevel = 1;
_root.numberOfMap = 0;
_root.cursor.gotoAndStop("arrow");
_root.playSound("click");
gotoAndPlay ("mapGlobal");
};
Frame 9
updateMouse();
play();
Frame 10
updateMouse();
gotoAndPlay ("mapGlobalrepeat");
Frame 11
_quality = "high";
cursor.gotoAndStop("arrow");
window.gotoAndStop("off");
firstTime = true;
levelOfMap++;
map._alpha = 0;
map.gotoAndStop("map" + numberOfMap);
sc = scr;
play_b.txt = p_button;
var N = (numberOfLevel - 1);
if (!numberOfGame) {
_root["doLevel" + N]();
} else {
EnableBonuses = ["any", "bomb", "dynamite", "firewall", "magnet", "fireworks", "shuffle", "lightning"];
}
Frame 12
updateMouse();
if (firstTime) {
map._alpha = 100;
firstTime = false;
map.setActive(levelOfMap, MapsLevels[numberOfMap]);
}
play();
Frame 13
updateMouse();
gotoAndPlay ("maprepeat");
Frame 14
updateMouse();
_quality = "low";
Mouse.show();
cursor._visible = false;
auto = false;
game = new gameClass(numberOfLevel);
game.begin();
Pause._visible = false;
win._visible = false;
over._visible = false;
levelNum.gotoAndStop = "simple";
plusStars = "";
var i = 1;
while (i <= numberOfGame) {
plusStars = plusStars + "*";
i++;
}
levelNum.mctxt.txt = ((((level + " ") + numberOfMap) + "-") + levelOfMap) + plusStars;
playMusic("gamemusic");
objects.gotoAndStop("level" + numberOfLevel);
ground.gotoAndStop(bgColor);
Instance of Symbol 1133 MovieClip "bg" in Frame 14
onClipEvent (keyDown) {
if (Key.getCode() == 32) {
_parent.game.setPause();
}
if (Key.getCode() == 70) {
_parent.game.finished = true;
}
}
Frame 15
if (game.started) {
game.update();
}
Frame 16
gotoAndPlay ("level");
Frame 17
_quality = "high";
_root.bg.gotoAndStop("space1");
play();
_root.playSound("game_complete");
sc = scr;
sub = submit;
playername = nam;
congr = congratualations;
txt12 = complete_txt1;
txt22 = complete_txt2;
txt32 = complete_txt3;
txt42 = complete_txt4;
txt52 = complete_txt5;
txt62 = complete_txt6;
play_b.txt = pa_button;
free_b.txt = fdl_button;
full_b.txt = gfv_button;
Frame 18
updateMouse();
Frame 19
nameinput.onSetFocus = function (oldFocus) {
if (this.text == "Your name here") {
this.text = "";
}
};
updateMouse();
gotoAndPlay ("completerepeat");
Frame 20
_quality = "high";
this.playSound("game_over");
ground.gotoAndStop("bg1");
sc = scr;
sub = submit;
playername = nam;
congr = congratualations;
txt13 = complete_txt2;
play_b.txt = pa_button;
free_b.txt = fdl_button;
full_b.txt = gfv_button;
Frame 21
_quality = "high";
updateMouse();
_root.bg.gotoAndStop("space2");
play();
Frame 22
nameinput.onSetFocus = function (oldFocus) {
if (this.text == "Your name here") {
this.text = "";
}
};
updateMouse();
gotoAndPlay ("gameoverrepeat");
Frame 23
function setBlendHouseAnimation() {
trace("setBlendHouseAnimation");
blendHouse.addAnimationToStack("m1", "blending", null);
blendHouse.addAnimationToStack("m2", "blending", null);
blendHouse.addAnimationToStack("m3", "blending", null);
blendHouse.addAnimationToStack("m4", "blending", null);
blendHouse.addAnimationToStack("m5", "blending", null);
blendHouse.addAnimationToStack("m6", "blending", null);
blendHouse.addAnimationToStack("m7", "blending", null);
blendHouse.addAnimationToStack("m8", "blending", null);
blendHouse.addAnimationToStack("m9", "blending", null);
blendHouse.addAnimationToStack("m10", "blending", null);
blendHouse.addAnimationToStack("m11", "blending", null);
blendHouse.addAnimationToStack("m12", "blending", null);
blendHouse.addAnimationToStack("m13", "blending", null);
blendHouse.addAnimationToStack("m14", "blending", null);
}
function setUnBlendHouseAnimation() {
blendHouse.addAnimationToStack("m14", "unblending", null);
blendHouse.addAnimationToStack("m13", "unblending", null);
blendHouse.addAnimationToStack("m12", "unblending", null);
blendHouse.addAnimationToStack("m11", "unblending", null);
blendHouse.addAnimationToStack("m10", "unblending", null);
blendHouse.addAnimationToStack("m9", "unblending", null);
blendHouse.addAnimationToStack("m8", "unblending", null);
blendHouse.addAnimationToStack("m7", "unblending", null);
blendHouse.addAnimationToStack("m6", "unblending", null);
blendHouse.addAnimationToStack("m5", "unblending", null);
blendHouse.addAnimationToStack("m4", "unblending", null);
blendHouse.addAnimationToStack("m3", "unblending", null);
blendHouse.addAnimationToStack("m2", "unblending", null);
blendHouse.addAnimationToStack("m1", "unblending", null);
}
hint1_0 = "Make column or row of three|or more pieces of the same type";
hint1_1 = "To break blocks make a match near it";
hint1_2 = "Now break all blocks to complete level!";
hint3_0 = "This is a bonus!|To activate bonus make|a match near it";
hint4_0 = "To break glass make|a match over it";
hint6_0 = "This piece locked! You can not move it!";
hint7_0 = "This is a key! Make a match with key|to remove locks of the same type!";
completed = "LEVEL COMPLETE";
paused1 = "Game paused...";
paused2 = "Press space to continue";
gameover = "Time up! GAME OVER...";
p_button = "Play";
pn_button = "Play now";
pa_button = "Play again";
c_button = "Continue";
fdl_button = "Free download";
gfv_button = "Get full version";
menu_txt1 = "CLAYSIDE FULL";
menu_txt2 = "<b><p></p> - fullscreen gameplay<p></p> - over 100 levels and 2 modes<p></p> - uncover hidden Relics</b>";
menu_txt3 = "CLAYSIDE WEB";
menu_txt4 = "<b>Underwater adventures in <p></p>long-lost mysterios Atlantis</b>";
sound_txt = "sound";
music_txt = "music";
hints_txt = "Hints";
scr = "Your score:";
nam = "Your name here";
submit = "submit";
loading = "loading";
level = "LEVEL";
congratualations = "CONGRATULATIONS!";
complete_txt1 = "<b>You have completed web version <p></p>of the game BUT...<p></p>Adventure is not over yet!</b>";
complete_txt2 = "<b>Are you skilful enough to pass through the city<p></p>of Clayside and all its districts and outskirts? Download your FREE trial of <p></p>full version and find out!<p></p> - Enchances graphics and special effects<p></p> - Over 150 spectacular levels<p></p> - Over 35 reliable powerups<p></p> - Additional bonus levels<p></p> - Exciting twists to conventional matching game interfaces<p></p> - Full screen gameplay<p></p> - Unlimited playtime";
complete_txt3 = "Replay the web version on higher";
complete_txt4 = "difficulty to get higher score";
complete_txt5 = "CLAYSIDE";
complete_txt6 = "full version";
game_over = "GAME OVER";
try_full_version = "TRY FULL VERSION";
pause1_txt1 = "Full version offers the best possibilities to develop the house of your dreams<p></p>- Much more bonuses and powerups: Magnets, Rockets, Lightnings, Bombs, Fire Walls, etc...<p></p> - Different first-rate amenities for your house";
pause2_txt1 = "Full version offers you:<p></p> - Many various outskirts and districts for passing through<p></p>- New enthralling puzzles<p></p> - Art and music which pull you into the exciting setting";
_quality = "high";
ground.gotoAndStop("bg1");
try_full = try_full_version;
txt1pause = complete_txt2;
p1_txt2 = pause1_txt1;
play_b.txt = c_button;
free_b.txt = fdl_button;
full_b.txt = gfv_button;
animationCounter = 0;
setBlendHouseAnimation();
Frame 24
updateMouse();
animationCounter++;
if (animationCounter == 320) {
blendHouse.blick._visible = true;
blendHouse.blick.play();
setUnBlendHouseAnimation();
}
if (animationCounter == 325) {
blendHouse.setVisibleToAll(false);
blendHouse.blick._visible = true;
}
if (animationCounter == 326) {
animationCounter = 0;
setBlendHouseAnimation();
}
Frame 25
gotoAndPlay ("levelpause2repeat");
Frame 26
_quality = "high";
try_full = try_full_version;
txt1pause = complete_txt2;
p2_txt2 = pause2_txt1;
ground.gotoAndStop("bg1");
play_b.txt = c_button;
free_b.txt = fdl_button;
full_b.txt = gfv_button;
updateMouse();
auto = true;
game = new gameClass("DemoShuffle");
game.begin();
game.beginPlay();
AI = new AIClass();
Instance of Symbol 1133 MovieClip "bg" in Frame 26
onClipEvent (keyDown) {
if (Key.getCode() == 32) {
_parent.game.setPause();
}
}
Frame 27
_quality = "high";
updateMouse();
if (game.started) {
AI.update();
game.update();
}
Frame 28
gotoAndPlay ("levelpause1repeat");
Frame 29
_quality = "high";
ground.gotoAndStop("bg1");
try_full6 = try_full_version;
txt1pause = complete_txt2;
p3_txt2 = pause3_txt1;
play_b.txt = c_button;
free_b.txt = fdl_button;
full_b.txt = gfv_button;
Frame 30
_quality = "high";
updateMouse();
play();
Frame 31
gotoAndPlay ("levelpause3repeat");
Frame 32
_quality = "high";
try_full = try_full_version;
txt1pause = complete_txt2;
p1_txt2 = pause2_txt1;
play_b.txt = c_button;
free_b.txt = fdl_button;
full_b.txt = gfv_button;
ground.gotoAndStop("bg1");
Frame 33
_quality = "high";
updateMouse();
play();
Frame 34
gotoAndPlay ("levelpause4repeat");
Frame 35
_root.gotoAndPlay("mapGlobal");
Frame 36
_quality = "high";
updateMouse();
play();
Frame 37
gotoAndPlay ("levelpause5repeat");
Symbol 1 MovieClip [shardsmc] Frame 1
#initclip 10
Object.registerClass("shardsmc", shardClass);
#endinitclip
Symbol 2 MovieClip [flyAwayCopy] Frame 1
#initclip 8
Object.registerClass("flyAwayCopy", flyAwayCopyClass);
#endinitclip
Symbol 3 MovieClip [lightningEffect] Frame 1
#initclip 9
Object.registerClass("lightningEffect", flashEffectClass);
#endinitclip
Symbol 1419 MovieClip [__Packages.flyAwayCopyClass] Frame 0
class flyAwayCopyClass extends MovieClip
{
var onEnterFrame, _alpha, _x, _y, removeMovieClip;
function flyAwayCopyClass () {
super();
onEnterFrame = fly;
var _local3 = new Color(this);
_alpha = 0;
_local3.setRGB(myColor);
}
function fly() {
_x = _x + velocityX;
_y = _y + velocityY;
_alpha = _alpha + alphaDecrement;
if (_alpha >= 80) {
velocityY = velocityYValue;
velocityX = velocityXValue;
_alpha = 80;
alphaDecrement = (-alphaDecrement) / 3;
}
if (_alpha <= 0) {
die();
return(undefined);
}
}
function setVelocity(vx, vy) {
velocityXValue = vx;
velocityYValue = vy;
}
function setColor(col) {
myColor = col;
}
function die() {
onEnterFrame = null;
removeMovieClip();
}
var velocityX = 0;
var velocityY = 0;
var velocityXValue = 0;
var velocityYValue = -2;
var alphaDecrement = 15;
var myColor = 16777215;
}
Symbol 1420 MovieClip [__Packages.homingMissileClass] Frame 0
class homingMissileClass extends MovieClip
{
var _x, _y, _rotation, onEnterFrame, removeMovieClip;
function homingMissileClass () {
super();
var _local3 = (Math.random() * 2) * Math.PI;
velocity = new Object({x:0, y:0, _value:0});
velocity._value = (1 - (Math.random() / 2)) * velocityAmplitude;
velocity.x = velocity._value * Math.cos(_local3);
velocity.y = velocity._value * Math.sin(_local3);
}
function fly() {
lifeTimer++;
var _local3 = purposeX - _x;
var _local2 = purposeY - _y;
if (((Math.abs(_local3) <= (velocityAmplitude * 2)) && (Math.abs(_local2) <= (velocityAmplitude * 2))) || (lifeTime == lifeTimer)) {
die();
return(undefined);
}
var _local5 = (_local3 * _local3) + (_local2 * _local2);
var _local4 = Math.sqrt(_local5) / addVelocityValue;
_local3 = _local3 / _local4;
_local2 = _local2 / _local4;
velocity.x = velocity.x + _local3;
velocity.y = velocity.y + _local2;
_local5 = (velocity.x * velocity.x) + (velocity.y * velocity.y);
_local4 = Math.sqrt(_local5) / velocity._value;
velocity.x = velocity.x / _local4;
velocity.y = velocity.y / _local4;
_x = _x + velocity.x;
_y = _y + velocity.y;
var _local6 = -Math.atan(velocity.x / velocity.y);
if (velocity.y >= 0) {
_local6 = _local6 + Math.PI;
}
_rotation = (_local6 * 180) / Math.PI;
}
function setApplyFunction(funct, obj) {
applyFunction = funct;
applyFunctionObj = obj;
}
function setPurpose(X, Y) {
purposeX = X;
purposeY = Y;
onEnterFrame = fly;
}
function getX() {
return(_x);
}
function getY() {
return(_y);
}
function die() {
applyFunctionArgums = [];
applyFunctionArgums.push(_x);
applyFunctionArgums.push(_y);
applyFunction.apply(applyFunctionObj, applyFunctionArgums);
onEnterFrame = null;
removeMovieClip();
}
var purposeX = 0;
var purposeY = 0;
var velocity = null;
var velocityRnd = 0;
var velocityAmplitude = 8;
var addVelocityValue = 0.7;
var lifeTimer = 0;
var lifeTime = 100;
var applyFunction = null;
var applyFunctionArgums = [];
var applyFunctionObj = null;
}
Symbol 1421 MovieClip [__Packages.flashEffectClass] Frame 0
class flashEffectClass extends homingMissileClass
{
var lifeTime, applyFunctionArgums, applyFunction, applyFunctionObj, onEnterFrame, removeMovieClip;
function flashEffectClass () {
super();
lifeTime = 20 + Math.round(Math.random() * 30);
}
function fly() {
super.fly();
applyFunctionArgums = [];
applyFunctionArgums.push(this);
applyFunction.apply(applyFunctionObj, applyFunctionArgums);
}
function die() {
onEnterFrame = null;
removeMovieClip();
}
}
Symbol 1422 MovieClip [__Packages.shardClass] Frame 0
class shardClass extends MovieClip
{
var onEnterFrame, removeMovieClip;
function shardClass () {
super();
}
function shardItDown(shardsArray, lTime) {
var _local3;
if (lTime) {
lifeTime = lTime;
startDisappear = lifeTime - timeOfDisappear;
}
Shards = new Array();
Shards = shardsArray;
var _local4 = Shards.length;
var _local2 = 0;
while (_local2 < _local4) {
_local3 = Shards[_local2];
_local3.vx = (0.5 - Math.random()) * maxVelocityX;
_local3.vy = (-Math.random()) * maxVelocityY;
_local3.rotationIncrement = Math.random() * rotationIncrementMax;
_local2++;
}
onEnterFrame = update;
}
function update() {
counter++;
var _local2;
var _local4 = Shards.length;
var _local3 = 0;
while (_local3 < _local4) {
_local2 = Shards[_local3];
_local2._x = _local2._x + _local2.vx;
_local2._rotation = _local2._rotation + _local2.rotationIncrement;
_local2._y = (_local2._y + _local2.vy) + ((accelerationY * counter) * counter);
_local2.vy = _local2.vy + accelerationY;
if (counter > startDisappear) {
_local2._alpha = _local2._alpha - (100 / timeOfDisappear);
}
_local3++;
}
if (counter >= lifeTime) {
remove();
}
}
function remove() {
var _local3;
var _local4 = Shards.length;
var _local2 = 0;
while (_local2 < _local4) {
_local3 = Shards[_local2];
_local3.removeMovieClip();
_local2++;
}
removeMovieClip();
}
var Shards = [];
var maxVelocityX = 8;
var maxVelocityY = 7;
var accelerationY = 0.12;
var rotationIncrementMax = 15;
var lifeTime = 18;
var counter = 0;
var startDisappear = 10;
var timeOfDisappear = 8;
}
Symbol 1423 MovieClip [__Packages.makeShardsClass] Frame 0
class makeShardsClass
{
function makeShardsClass () {
}
function setShard(Source, Name, Target, DataArray, X, Y) {
if (!X) {
X = 0;
}
if (!Y) {
Y = 0;
}
var _local6 = Target.createEmptyMovieClip(Name, Target.getNextHighestDepth());
_local6._x = X;
_local6._y = Y;
var _local9 = _local6.attachMovie(Source, "texturemc", 0);
var _local3 = _local6.createEmptyMovieClip("maskmc", 1);
var _local5 = DataArray.length;
var _local2;
_local3.beginFill(0, 100);
_local2 = DataArray[0];
_local3.moveTo(_local2.X, _local2.Y);
var _local1 = 1;
while (_local1 < _local5) {
_local2 = DataArray[_local1];
_local3.lineTo(_local2.X, _local2.Y);
_local1++;
}
_local2 = DataArray[0];
_local3.lineTo(_local2.X, _local2.Y);
_local3.endFill();
_local9.setMask(_local3);
return(_local6);
}
function setShards(Source, Target, Number, X, Y) {
if (!X) {
X = 0;
}
if (!Y) {
Y = 0;
}
var _local10 = ((360 / Number) * Math.PI) / 180;
var _local4;
var _local2;
var _local3 = 0;
var _local6;
var _local7 = [];
var _local5 = 0;
while (_local5 < Number) {
_local4 = [];
_local2 = new Object();
_local2.X = radius * Math.cos(_local3);
_local2.Y = radius * Math.sin(_local3);
_local4.push(_local2);
_local3 = _local3 + _local10;
_local2 = new Object();
_local2.X = radius * Math.cos(_local3);
_local2.Y = radius * Math.sin(_local3);
_local4.push(_local2);
_local2 = new Object();
_local2.X = 0;
_local2.Y = 0;
_local4.push(_local2);
_local6 = setShard(Source, "shard" + _local5, Target, _local4, X, Y);
_local7.push(_local6);
_local5++;
}
return(_local7);
}
function setRadiusVektorValue(Value) {
radius = Value;
}
function setshardName(Name) {
shardName = Name;
}
function getshardName() {
return(shardName);
}
var radius = 100;
var shardName = "shard";
}
Symbol 1424 MovieClip [__Packages.blendHouseClass] Frame 0
class blendHouseClass extends MovieClip
{
var _parent, _visible, _alpha, onEnterFrame;
function blendHouseClass () {
super();
AnimationStack = [];
setVisibleToAll(false);
mx.events.EventDispatcher.initialize(this);
initListener();
}
function setAnimationStack(stack) {
AnimationStack = stack;
setNextProcess();
}
function addAnimationToStack(targetstr, animationProcessStr, arg) {
var _local2 = this[targetstr];
var _local3 = this[animationProcessStr];
var _local4 = new Object({target:_local2, animationProcess:_local3, arg:arg});
AnimationStack.push(_local4);
if (AnimationStack.length == 1) {
setNextProcess();
}
}
function setVisibleToAll(flag) {
for (var _local3 in this) {
if (typeof(this[_local3]) == "movieclip") {
this[_local3]._visible = flag;
}
}
}
function blending() {
var _local3 = this;
_local3.blendHouse = _parent;
_visible = true;
_alpha = 0;
onEnterFrame = function () {
var _local2 = 100 / this.blendHouse.pauseInFrames;
this._alpha = this._alpha + _local2;
if (this._alpha >= 100) {
this._alpha = 100;
delete this.onEnterFrame;
this.blendHouse.dispatchEvent({type:"onAnimationComplete", target:this});
}
};
}
function unblending() {
var _local3 = this;
_local3.blendHouse = _parent;
onEnterFrame = function () {
var _local2 = -100 / this.blendHouse.pauseInFrames;
this._alpha = this._alpha + _local2;
if (this._alpha <= 0) {
this._alpha = 0;
this._visible = false;
delete this.onEnterFrame;
this.blendHouse.dispatchEvent({type:"onAnimationComplete", target:this});
}
};
}
function setNextProcess() {
var _local2 = AnimationStack[0];
_local2.animationProcess.apply(_local2.target, _local2.arg);
var _local3 = this;
_local3.addEventListener("onAnimationComplete", _local3.animationObjectEventsListener);
}
function initListener() {
var blendHouse = this;
blendHouse.animationObjectEventsListener = new Object();
blendHouse.animationObjectEventsListener.onAnimationComplete = function (oEvent) {
blendHouse.AnimationStack.splice(0, 1);
if (blendHouse.AnimationStack.length) {
blendHouse.setNextProcess();
}
};
}
var pauseInFrames = 10;
var AnimationStack = [];
var animationObjectEventsListener = new Object();
}
Symbol 1425 MovieClip [__Packages.mx.events.EventDispatcher] Frame 0
class mx.events.EventDispatcher
{
function EventDispatcher () {
}
static function _removeEventListener(queue, event, handler) {
if (queue != undefined) {
var _local4 = queue.length;
var _local1;
_local1 = 0;
while (_local1 < _local4) {
var _local2 = queue[_local1];
if (_local2 == handler) {
queue.splice(_local1, 1);
return(undefined);
}
_local1++;
}
}
}
static function initialize(object) {
if (_fEventDispatcher == undefined) {
_fEventDispatcher = new mx.events.EventDispatcher();
}
object.addEventListener = _fEventDispatcher.addEventListener;
object.removeEventListener = _fEventDispatcher.removeEventListener;
object.dispatchEvent = _fEventDispatcher.dispatchEvent;
object.dispatchQueue = _fEventDispatcher.dispatchQueue;
}
function dispatchQueue(queueObj, eventObj) {
var _local7 = "__q_" + eventObj.type;
var _local4 = queueObj[_local7];
if (_local4 != undefined) {
var _local5;
for (_local5 in _local4) {
var _local1 = _local4[_local5];
var _local3 = typeof(_local1);
if ((_local3 == "object") || (_local3 == "movieclip")) {
if (_local1.handleEvent != undefined) {
_local1.handleEvent(eventObj);
}
if (_local1[eventObj.type] != undefined) {
if (exceptions[eventObj.type] == undefined) {
_local1[eventObj.type](eventObj);
}
}
} else {
_local1.apply(queueObj, [eventObj]);
}
}
}
}
function dispatchEvent(eventObj) {
if (eventObj.target == undefined) {
eventObj.target = this;
}
this[eventObj.type + "Handler"](eventObj);
dispatchQueue(this, eventObj);
}
function addEventListener(event, handler) {
var _local3 = "__q_" + event;
if (this[_local3] == undefined) {
this[_local3] = new Array();
}
_global.ASSetPropFlags(this, _local3, 1);
_removeEventListener(this[_local3], event, handler);
this[_local3].push(handler);
}
function removeEventListener(event, handler) {
var _local2 = "__q_" + event;
_removeEventListener(this[_local2], event, handler);
}
static var _fEventDispatcher = undefined;
static var exceptions = {move:1, draw:1, load:1};
}
Symbol 37 MovieClip Frame 1
stop();
Symbol 37 MovieClip Frame 2
stop();
Symbol 37 MovieClip Frame 3
stop();
Symbol 37 MovieClip Frame 4
stop();
Symbol 53 MovieClip Frame 1
stop();
Symbol 53 MovieClip Frame 2
stop();
Symbol 55 Button
on (rollOver) {
play_b.gotoAndStop("active");
_root.cursor.gotoAndPlay("hand");
_root.playSound("select");
}
on (rollOut) {
play_b.gotoAndStop("simple");
_root.cursor.gotoAndPlay("arrow");
}
on (release) {
_root.cursor.gotoAndPlay("arrow");
_root.playSound("click");
_root.counter = 0;
_root.gotoAndPlay("play");
}
on (releaseOutside) {
_root.cursor.gotoAndPlay("arrow");
}
Symbol 56 Button
on (rollOver) {
free_b.gotoAndStop("active");
_root.cursor.gotoAndPlay("hand");
_root.playSound("select");
}
on (rollOut) {
free_b.gotoAndStop("simple");
_root.cursor.gotoAndPlay("arrow");
}
on (release) {
_root.playSound("click");
getURL (_root.downloadURL, ((_root.downloadTarget != undefined) ? (_root.downloadTarget) : "_blank"));
}
on (releaseOutside) {
_root.cursor.gotoAndPlay("arrow");
}
Symbol 66 Button
on (rollOver) {
_root.cursor.gotoAndPlay("hand");
_root.playSound("select");
}
on (rollOut) {
_root.cursor.gotoAndPlay("arrow");
}
on (release) {
_root.playSound("click");
getURL (_root.moreGamesURL, "_blank");
}
Symbol 70 MovieClip Frame 1
stop();
Symbol 70 MovieClip Frame 2
play();
Symbol 74 MovieClip Frame 1
stop();
Symbol 74 MovieClip Frame 2
stop();
Symbol 76 Button
on (rollOver) {
_root.cursor.gotoAndPlay("hand");
}
on (rollOut) {
_root.cursor.gotoAndPlay("arrow");
}
on (release) {
if ((_root.soundEnabled = !_root.soundEnabled)) {
signsound.gotoAndPlay("on");
} else {
signsound.gotoAndPlay("off");
}
}
Symbol 80 MovieClip Frame 1
stop();
Symbol 80 MovieClip Frame 2
stop();
Symbol 81 Button
on (rollOver) {
_root.cursor.gotoAndPlay("hand");
}
on (rollOut) {
_root.cursor.gotoAndPlay("arrow");
}
on (release) {
if ((_root.musicEnabled = !_root.musicEnabled)) {
playMusic("menumusic");
signmusic.gotoAndPlay("on");
} else {
stopAllSounds();
signmusic.gotoAndPlay("off");
}
}
Symbol 84 MovieClip Frame 1
stop();
Symbol 84 MovieClip Frame 2
stop();
Symbol 85 Button
on (rollOver) {
_root.cursor.gotoAndPlay("hand");
}
on (rollOut) {
_root.cursor.gotoAndPlay("arrow");
}
on (release) {
if ((_root.hintsEnabled = !_root.hintsEnabled)) {
hintsMC.gotoAndPlay("on");
} else {
hintsMC.gotoAndPlay("off");
}
}
Symbol 90 MovieClip Frame 1
dscale = 10;
away = function () {
onEnterFrame = function () {
this._xscale = this._xscale + dscale;
this._yscale = this._yscale + dscale;
this._alpha = this._alpha - dscale;
if (this._alpha <= 0) {
this._visible = false;
onEnterFrame = null;
_root.gotoAndPlay("play");
}
};
};
Symbol 131 MovieClip Frame 1
stop();
Symbol 131 MovieClip Frame 5
play();
Symbol 131 MovieClip Frame 6
stop();
Symbol 131 MovieClip Frame 7
play();
Symbol 131 MovieClip Frame 8
stop();
Symbol 131 MovieClip Frame 9
play();
Symbol 131 MovieClip Frame 10
stop();
Symbol 131 MovieClip Frame 11
play();
Symbol 131 MovieClip Frame 12
stop();
Symbol 131 MovieClip Frame 13
play();
Symbol 131 MovieClip Frame 14
stop();
Symbol 131 MovieClip Frame 15
play();
Symbol 131 MovieClip Frame 16
stop();
Symbol 131 MovieClip Frame 17
play();
Symbol 131 MovieClip Frame 18
stop();
Symbol 131 MovieClip Frame 19
play();
Symbol 131 MovieClip Frame 20
stop();
Symbol 131 MovieClip Frame 21
play();
Symbol 131 MovieClip Frame 22
stop();
Symbol 131 MovieClip Frame 23
play();
Symbol 131 MovieClip Frame 24
stop();
Symbol 131 MovieClip Frame 25
play();
Symbol 131 MovieClip Frame 26
stop();
Symbol 131 MovieClip Frame 27
play();
Symbol 131 MovieClip Frame 28
stop();
Symbol 131 MovieClip Frame 29
play();
Symbol 131 MovieClip Frame 30
stop();
Symbol 131 MovieClip Frame 31
play();
Symbol 131 MovieClip Frame 32
stop();
Symbol 131 MovieClip Frame 33
play();
Symbol 131 MovieClip Frame 34
stop();
Symbol 131 MovieClip Frame 35
play();
Symbol 131 MovieClip Frame 36
stop();
Symbol 131 MovieClip Frame 37
play();
Symbol 131 MovieClip Frame 38
stop();
Symbol 131 MovieClip Frame 39
play();
Symbol 131 MovieClip Frame 40
stop();
Symbol 131 MovieClip Frame 41
play();
Symbol 131 MovieClip Frame 42
stop();
Symbol 131 MovieClip Frame 45
play();
Symbol 131 MovieClip Frame 46
stop();
Symbol 131 MovieClip Frame 47
play();
Symbol 131 MovieClip Frame 48
stop();
Symbol 131 MovieClip Frame 49
play();
Symbol 131 MovieClip Frame 50
stop();
Symbol 131 MovieClip Frame 51
play();
Symbol 131 MovieClip Frame 52
stop();
Symbol 131 MovieClip Frame 53
play();
Symbol 131 MovieClip Frame 54
stop();
Symbol 131 MovieClip Frame 55
play();
Symbol 131 MovieClip Frame 56
stop();
Symbol 131 MovieClip Frame 57
play();
Symbol 131 MovieClip Frame 58
stop();
Symbol 131 MovieClip Frame 59
play();
Symbol 131 MovieClip Frame 60
stop();
Symbol 131 MovieClip Frame 61
play();
Symbol 131 MovieClip Frame 62
stop();
Symbol 131 MovieClip Frame 63
play();
Symbol 131 MovieClip Frame 64
stop();
Symbol 131 MovieClip Frame 65
play();
Symbol 131 MovieClip Frame 66
stop();
Symbol 131 MovieClip Frame 67
play();
Symbol 131 MovieClip Frame 68
stop();
Symbol 131 MovieClip Frame 69
play();
Symbol 131 MovieClip Frame 70
stop();
Symbol 131 MovieClip Frame 71
play();
Symbol 131 MovieClip Frame 72
stop();
Symbol 131 MovieClip Frame 73
play();
Symbol 131 MovieClip Frame 74
stop();
Symbol 131 MovieClip Frame 75
play();
Symbol 131 MovieClip Frame 76
stop();
Symbol 131 MovieClip Frame 77
play();
Symbol 131 MovieClip Frame 78
stop();
Symbol 131 MovieClip Frame 79
play();
Symbol 131 MovieClip Frame 80
stop();
Symbol 131 MovieClip Frame 81
play();
Symbol 131 MovieClip Frame 82
stop();
Symbol 131 MovieClip Frame 83
play();
Symbol 131 MovieClip Frame 84
stop();
Symbol 131 MovieClip Frame 110
play();
Symbol 131 MovieClip Frame 113
stop();
Symbol 131 MovieClip Frame 114
play();
Symbol 131 MovieClip Frame 117
stop();
Symbol 145 MovieClip Frame 14
stop();
Symbol 148 MovieClip Frame 10
stop();
Symbol 149 MovieClip [jewel3] Frame 1
stop();
Symbol 149 MovieClip [jewel3] Frame 2
blur.gotoAndPlay(1);
Symbol 149 MovieClip [jewel3] Frame 31
gotoAndStop (1);
Symbol 149 MovieClip [jewel3] Frame 32
NPieces = 3;
NShards = 4;
vmax = 10;
counter = 0;
vx = new Array();
vy = new Array();
i = 1;
while (i <= NPieces) {
vx[i] = (0.5 - Math.random()) * vmax;
vy[i] = (0.5 - Math.random()) * vmax;
i++;
}
i = 1;
while (i <= NShards) {
shard = eval ("shard" + i);
shard._rotation = Math.random() * 360;
i++;
}
bum.gotoAndPlay(1);
Symbol 149 MovieClip [jewel3] Frame 33
counter++;
i = 1;
while (i <= NPieces) {
piece = eval ("piece" + i);
piece._x = piece._x + vx[i];
piece._y = piece._y + vy[i];
if (counter > 7) {
piece._alpha = piece._alpha - 25;
}
i++;
}
Symbol 149 MovieClip [jewel3] Frame 34
if (piece._alpha > 0) {
gotoAndPlay ("next");
} else {
this.removeMovieClip();
}
Symbol 160 MovieClip [jewel4] Frame 1
stop();
Symbol 160 MovieClip [jewel4] Frame 2
blur.gotoAndPlay(1);
Symbol 160 MovieClip [jewel4] Frame 31
gotoAndStop (1);
Symbol 160 MovieClip [jewel4] Frame 32
NPieces = 3;
NShards = 4;
vmax = 10;
counter = 0;
vx = new Array();
vy = new Array();
i = 1;
while (i <= NPieces) {
vx[i] = (0.5 - Math.random()) * vmax;
vy[i] = (0.5 - Math.random()) * vmax;
i++;
}
i = 1;
while (i <= NShards) {
shard = eval ("shard" + i);
shard._rotation = Math.random() * 360;
i++;
}
bum.gotoAndPlay(1);
Symbol 160 MovieClip [jewel4] Frame 33
counter++;
i = 1;
while (i <= NPieces) {
piece = eval ("piece" + i);
piece._x = piece._x + vx[i];
piece._y = piece._y + vy[i];
if (counter > 7) {
piece._alpha = piece._alpha - 25;
}
i++;
}
Symbol 160 MovieClip [jewel4] Frame 34
if (piece._alpha > 0) {
gotoAndPlay ("next");
} else {
this.removeMovieClip();
}
Symbol 170 MovieClip [jewel5] Frame 1
stop();
Symbol 170 MovieClip [jewel5] Frame 2
blur.gotoAndPlay(1);
Symbol 170 MovieClip [jewel5] Frame 31
gotoAndStop (1);
Symbol 170 MovieClip [jewel5] Frame 32
NPieces = 3;
NShards = 4;
vmax = 10;
counter = 0;
vx = new Array();
vy = new Array();
i = 1;
while (i <= NPieces) {
vx[i] = (0.5 - Math.random()) * vmax;
vy[i] = (0.5 - Math.random()) * vmax;
i++;
}
i = 1;
while (i <= NShards) {
shard = eval ("shard" + i);
shard._rotation = Math.random() * 360;
i++;
}
bum.gotoAndPlay(1);
Symbol 170 MovieClip [jewel5] Frame 33
counter++;
i = 1;
while (i <= NPieces) {
piece = eval ("piece" + i);
piece._x = piece._x + vx[i];
piece._y = piece._y + vy[i];
if (counter > 7) {
piece._alpha = piece._alpha - 25;
}
i++;
}
Symbol 170 MovieClip [jewel5] Frame 34
if (piece._alpha > 0) {
gotoAndPlay ("next");
} else {
this.removeMovieClip();
}
Symbol 180 MovieClip [jewel6] Frame 1
stop();
Symbol 180 MovieClip [jewel6] Frame 2
blur.gotoAndPlay(1);
Symbol 180 MovieClip [jewel6] Frame 31
gotoAndStop (1);
Symbol 180 MovieClip [jewel6] Frame 32
NPieces = 3;
NShards = 4;
vmax = 10;
counter = 0;
vx = new Array();
vy = new Array();
i = 1;
while (i <= NPieces) {
vx[i] = (0.5 - Math.random()) * vmax;
vy[i] = (0.5 - Math.random()) * vmax;
i++;
}
i = 1;
while (i <= NShards) {
shard = eval ("shard" + i);
shard._rotation = Math.random() * 360;
i++;
}
bum.gotoAndPlay(1);
Symbol 180 MovieClip [jewel6] Frame 33
counter++;
i = 1;
while (i <= NPieces) {
piece = eval ("piece" + i);
piece._x = piece._x + vx[i];
piece._y = piece._y + vy[i];
if (counter > 7) {
piece._alpha = piece._alpha - 25;
}
i++;
}
Symbol 180 MovieClip [jewel6] Frame 34
if (piece._alpha > 0) {
gotoAndPlay ("next");
} else {
this.removeMovieClip();
}
Symbol 190 MovieClip [jewel7] Frame 1
stop();
Symbol 190 MovieClip [jewel7] Frame 2
blur.gotoAndPlay(1);
Symbol 190 MovieClip [jewel7] Frame 31
gotoAndStop (1);
Symbol 190 MovieClip [jewel7] Frame 32
NPieces = 3;
NShards = 4;
vmax = 10;
counter = 0;
vx = new Array();
vy = new Array();
i = 1;
while (i <= NPieces) {
vx[i] = (0.5 - Math.random()) * vmax;
vy[i] = (0.5 - Math.random()) * vmax;
i++;
}
i = 1;
while (i <= NShards) {
shard = eval ("shard" + i);
shard._rotation = Math.random() * 360;
i++;
}
bum.gotoAndPlay(1);
Symbol 190 MovieClip [jewel7] Frame 33
counter++;
i = 1;
while (i <= NPieces) {
piece = eval ("piece" + i);
piece._x = piece._x + vx[i];
piece._y = piece._y + vy[i];
if (counter > 7) {
piece._alpha = piece._alpha - 25;
}
i++;
}
Symbol 190 MovieClip [jewel7] Frame 34
if (piece._alpha > 0) {
gotoAndPlay ("next");
} else {
this.removeMovieClip();
}
Symbol 201 MovieClip [jewel8] Frame 1
stop();
Symbol 201 MovieClip [jewel8] Frame 2
blur.gotoAndPlay(1);
Symbol 201 MovieClip [jewel8] Frame 31
gotoAndStop (1);
Symbol 201 MovieClip [jewel8] Frame 32
NPieces = 3;
NShards = 4;
vmax = 10;
counter = 0;
vx = new Array();
vy = new Array();
i = 1;
while (i <= NPieces) {
vx[i] = (0.5 - Math.random()) * vmax;
vy[i] = (0.5 - Math.random()) * vmax;
i++;
}
i = 1;
while (i <= NShards) {
shard = eval ("shard" + i);
shard._rotation = Math.random() * 360;
i++;
}
bum.gotoAndPlay(1);
Symbol 201 MovieClip [jewel8] Frame 33
counter++;
i = 1;
while (i <= NPieces) {
piece = eval ("piece" + i);
piece._x = piece._x + vx[i];
piece._y = piece._y + vy[i];
if (counter > 7) {
piece._alpha = piece._alpha - 25;
}
i++;
}
Symbol 201 MovieClip [jewel8] Frame 34
if (piece._alpha > 0) {
gotoAndPlay ("next");
} else {
this.removeMovieClip();
}
Symbol 211 MovieClip [jewel1] Frame 1
stop();
Symbol 211 MovieClip [jewel1] Frame 2
blur.gotoAndPlay(1);
Symbol 211 MovieClip [jewel1] Frame 31
gotoAndStop (1);
Symbol 211 MovieClip [jewel1] Frame 32
NPieces = 3;
NShards = 4;
vmax = 10;
counter = 0;
vx = new Array();
vy = new Array();
i = 1;
while (i <= NPieces) {
vx[i] = (0.5 - Math.random()) * vmax;
vy[i] = (0.5 - Math.random()) * vmax;
i++;
}
i = 1;
while (i <= NShards) {
shard = eval ("shard" + i);
shard._rotation = Math.random() * 360;
i++;
}
bum.gotoAndPlay(1);
Symbol 211 MovieClip [jewel1] Frame 33
counter++;
i = 1;
while (i <= NPieces) {
piece = eval ("piece" + i);
piece._x = piece._x + vx[i];
piece._y = piece._y + vy[i];
if (counter > 7) {
piece._alpha = piece._alpha - 25;
}
i++;
}
Symbol 211 MovieClip [jewel1] Frame 34
if (piece._alpha > 0) {
gotoAndPlay ("next");
} else {
this.removeMovieClip();
}
Symbol 221 MovieClip [jewel2] Frame 1
stop();
Symbol 221 MovieClip [jewel2] Frame 2
blur.gotoAndPlay(1);
Symbol 221 MovieClip [jewel2] Frame 31
gotoAndStop (1);
Symbol 221 MovieClip [jewel2] Frame 32
NPieces = 3;
NShards = 4;
vmax = 10;
counter = 0;
vx = new Array();
vy = new Array();
i = 1;
while (i <= NPieces) {
vx[i] = (0.5 - Math.random()) * vmax;
vy[i] = (0.5 - Math.random()) * vmax;
i++;
}
i = 1;
while (i <= NShards) {
shard = eval ("shard" + i);
shard._rotation = Math.random() * 360;
i++;
}
bum.gotoAndPlay(1);
Symbol 221 MovieClip [jewel2] Frame 33
counter++;
i = 1;
while (i <= NPieces) {
piece = eval ("piece" + i);
piece._x = piece._x + vx[i];
piece._y = piece._y + vy[i];
if (counter > 7) {
piece._alpha = piece._alpha - 25;
}
i++;
}
Symbol 221 MovieClip [jewel2] Frame 34
if (piece._alpha > 0) {
gotoAndPlay ("next");
} else {
this.removeMovieClip();
}
Symbol 230 MovieClip [border-bottom] Frame 1
stop();
Symbol 230 MovieClip [border-bottom] Frame 2
stop();
Symbol 230 MovieClip [border-bottom] Frame 3
stop();
Symbol 230 MovieClip [border-bottom] Frame 4
stop();
Symbol 235 MovieClip [border-right] Frame 1
stop();
Symbol 235 MovieClip [border-right] Frame 2
stop();
Symbol 235 MovieClip [border-right] Frame 3
stop();
Symbol 235 MovieClip [border-right] Frame 4
stop();
Symbol 240 MovieClip [border-left] Frame 1
stop();
Symbol 240 MovieClip [border-left] Frame 2
stop();
Symbol 240 MovieClip [border-left] Frame 3
stop();
Symbol 240 MovieClip [border-left] Frame 4
stop();
Symbol 245 MovieClip [border-up] Frame 1
stop();
Symbol 245 MovieClip [border-up] Frame 2
stop();
Symbol 245 MovieClip [border-up] Frame 3
stop();
Symbol 245 MovieClip [border-up] Frame 4
stop();
Symbol 250 MovieClip [jewel_blick] Frame 1
stop();
Symbol 250 MovieClip [jewel_blick] Frame 2
play();
Symbol 251 MovieClip [but] Frame 1
thisObj = this;
actionTrue = false;
onPress = function () {
X0 = _root._xmouse;
Y0 = _root._ymouse;
counter = 0;
onEnterFrame = function () {
counter++;
X = _root._xmouse;
Y = _root._ymouse;
dX = X - X0;
dY = Y - Y0;
if ((Math.abs(dY) > 5) || ((Math.abs(dX) > 5) && (counter > 5))) {
itstarget.tryMove(dX, dY);
actionTrue = true;
delete onEnterFrame;
}
};
};
onRollOver = function () {
};
onRollOut = function () {
};
onReleaseOutside = function () {
delete onEnterFrame;
if (actionTrue) {
actionTrue = false;
_root.game.gameField.setBackMovieTape();
}
};
onRelease = function () {
delete onEnterFrame;
if (actionTrue) {
actionTrue = false;
_root.game.gameField.setBackMovieTape();
}
};
activate = function () {
blick.gotoAndPlay("play");
};
Symbol 258 MovieClip Frame 1
dr = 0.5;
dscale = 0.2;
left._xscale = 80;
left._yscale = 80;
right._xscale = 80;
right._yscale = 80;
Symbol 258 MovieClip Frame 2
left._rotation = left._rotation + dr;
right._rotation = right._rotation - dr;
xscale = (left._xscale = left._xscale - dscale);
left._yscale = left._yscale - dscale;
right._xscale = right._xscale - dscale;
right._yscale = right._yscale - dscale;
if ((xscale < 80) || (xscale > 100)) {
dscale = -dscale;
}
Symbol 258 MovieClip Frame 3
gotoAndPlay ("continue");
Symbol 258 MovieClip Frame 4
stop();
Symbol 265 MovieClip [bomb] Frame 1
stop();
Symbol 265 MovieClip [bomb] Frame 2
NShards = 10;
i = 1;
while (i <= NShards) {
shard = eval ("shard" + i);
shard._rotation = Math.random() * 360;
i++;
}
NPieces = 10;
vmax = 15;
counter = 0;
vx = new Array();
vy = new Array();
Pieces = new Array();
i = 1;
while (i <= NPieces) {
piece = this.attachMovie("starcolored1", "piece" + i, this.getNextHighestDepth());
i++;
}
i = 1;
while (i <= NPieces) {
piece = eval ("piece" + i);
Pieces.push(piece);
scale = (0.75 - (Math.random() / 4)) * 100;
piece._xscale = scale;
piece._yscale = scale;
vx[i] = (0.5 - Math.random()) * vmax;
vy[i] = (0.5 - Math.random()) * vmax;
i++;
}
this.onEnterFrame = function () {
counter++;
i = 1;
while (i <= NPieces) {
piece = eval ("piece" + i);
piece._x = piece._x + vx[i];
piece._y = piece._y + vy[i];
if (counter > 9) {
piece._alpha = piece._alpha - 20;
}
i++;
}
if (piece._alpha > 0) {
gotoAndPlay ("next");
} else {
this.removeMovieClip();
}
};
Symbol 265 MovieClip [bomb] Frame 16
stop();
Symbol 269 MovieClip [dynamite] Frame 1
stop();
Symbol 269 MovieClip [dynamite] Frame 2
NShards = 10;
i = 1;
while (i <= NShards) {
shard = eval ("shard" + i);
shard._rotation = Math.random() * 360;
i++;
}
Symbol 269 MovieClip [dynamite] Frame 16
removeMovieClip(this);
Symbol 273 MovieClip [firewall] Frame 1
stop();
Symbol 273 MovieClip [firewall] Frame 2
NShards = 10;
i = 1;
while (i <= NShards) {
shard = eval ("shard" + i);
shard._rotation = Math.random() * 360;
i++;
}
Symbol 273 MovieClip [firewall] Frame 15
stop();
Symbol 277 MovieClip [flame] Frame 16
this.removeMovieClip();
Symbol 281 MovieClip [fill2] Frame 1
stop();
Symbol 281 MovieClip [fill2] Frame 2
NPieces = 3;
vmax = 10;
vx = new Array();
vy = new Array();
i = 1;
while (i <= NPieces) {
vx[i] = (0.5 - Math.random()) * vmax;
vy[i] = (0.5 - Math.random()) * vmax;
i++;
}
Symbol 281 MovieClip [fill2] Frame 3
i = 1;
while (i <= NPieces) {
piece = eval ("piece" + i);
piece._x = piece._x + vx[i];
piece._y = piece._y + vy[i];
piece._alpha = piece._alpha - 5;
i++;
}
Symbol 281 MovieClip [fill2] Frame 4
if (piece._alpha > 0) {
gotoAndPlay ("next");
} else {
this.removeMovieClip();
}
Symbol 285 MovieClip [fill1] Frame 1
stop();
Symbol 285 MovieClip [fill1] Frame 2
vmax = 10;
vx = new Array();
vy = new Array();
NPieces = Shards.length;
i = 0;
while (i < NPieces) {
vx[i] = (0.5 - Math.random()) * vmax;
vy[i] = (0.5 - Math.random()) * vmax;
i++;
}
Symbol 285 MovieClip [fill1] Frame 3
i = 0;
while (i < NPieces) {
piece = Shards[i];
piece._x = piece._x + vx[i];
piece._y = piece._y + vy[i];
piece._alpha = piece._alpha - 5;
i++;
}
Symbol 285 MovieClip [fill1] Frame 4
if (piece._alpha > 0) {
gotoAndPlay ("next");
} else {
this.removeMovieClip();
}
Symbol 294 MovieClip Frame 30
Symbol 294 MovieClip Frame 89
gotoAndPlay ("play");
Symbol 295 MovieClip [key] Frame 1
stop();
Symbol 295 MovieClip [key] Frame 2
stop();
Symbol 295 MovieClip [key] Frame 6
removeMovieClip(this);
stop();
Symbol 302 MovieClip [lock] Frame 1
stop();
Symbol 302 MovieClip [lock] Frame 9
stop();
removeMovieClip(this);
Symbol 305 MovieClip [keyglow] Frame 1
stop();
Symbol 305 MovieClip [keyglow] Frame 2
removeMovieClip(this);
stop();
Symbol 308 MovieClip [chain2] Frame 1
stop();
Symbol 308 MovieClip [chain2] Frame 2
removeMovieClip(this);
stop();
Symbol 311 MovieClip [chain3] Frame 1
stop();
Symbol 311 MovieClip [chain3] Frame 2
removeMovieClip(this);
stop();
Symbol 314 MovieClip [chain4] Frame 1
stop();
Symbol 314 MovieClip [chain4] Frame 2
removeMovieClip(this);
stop();
Symbol 317 MovieClip [chain5] Frame 1
stop();
Symbol 317 MovieClip [chain5] Frame 2
removeMovieClip(this);
stop();
Symbol 320 MovieClip [chain6] Frame 1
stop();
Symbol 320 MovieClip [chain6] Frame 2
removeMovieClip(this);
stop();
Symbol 323 MovieClip [chain7] Frame 1
stop();
Symbol 323 MovieClip [chain7] Frame 2
removeMovieClip(this);
stop();
Symbol 326 MovieClip [chain8] Frame 1
stop();
Symbol 326 MovieClip [chain8] Frame 2
removeMovieClip(this);
stop();
Symbol 329 MovieClip [chain9] Frame 1
stop();
Symbol 329 MovieClip [chain9] Frame 2
removeMovieClip(this);
stop();
Symbol 332 MovieClip [chain10] Frame 1
stop();
Symbol 332 MovieClip [chain10] Frame 2
removeMovieClip(this);
stop();
Symbol 340 MovieClip Frame 1
var reload = 60;
var reloadupgraded = 30;
var respawn = 120;
stop();
Symbol 340 MovieClip Frame 2
stop();
Symbol 340 MovieClip Frame 3
stop();
Symbol 340 MovieClip Frame 4
play();
Symbol 340 MovieClip Frame 5
gotoAndStop ("arrow");
Symbol 340 MovieClip Frame 6
play();
Symbol 340 MovieClip Frame 7
gotoAndStop ("arrow");
Symbol 340 MovieClip Frame 8
play();
Symbol 340 MovieClip Frame 9
gotoAndStop ("arrow");
Symbol 340 MovieClip Frame 10
play();
Symbol 340 MovieClip Frame 11
gotoAndStop ("arrow");
Symbol 340 MovieClip Frame 12
play();
Symbol 340 MovieClip Frame 13
gotoAndStop ("arrow");
Symbol 340 MovieClip Frame 14
stop();
Symbol 343 MovieClip [hint-circle] Frame 1
function update() {
_alpha = (_alpha + alphaDecrement);
if (_alpha >= 100) {
delete onEnterFrame;
}
}
dL = 10;
H = part2._height;
alphaDecrement = 10;
_alpha = 0;
onEnterFrame = update;
stop();
Symbol 343 MovieClip [hint-circle] Frame 2
stop();
alphaDecrement = 10;
onEnterFrame = function () {
_alpha = (_alpha - alphaDecrement);
if (_alpha <= 0) {
delete onEnterFrame;
this.removeMovieClip();
}
};
Symbol 343 MovieClip [hint-circle] Frame 3
circle._alpha = 0;
onEnterFrame = function () {
circle._alpha = circle._alpha + 10;
};
Symbol 343 MovieClip [hint-circle] Frame 11
delete onEnterFrame;
stop();
Symbol 343 MovieClip [hint-circle] Frame 31
removeMovieClip(this);
Symbol 346 MovieClip [hint-arrows] Frame 11
if (!del) {
stop();
i = 0;
onEnterFrame = function () {
i++;
if (del && (i > 1)) {
delete onEnterFrame;
gotoAndPlay ("del");
}
};
}
Symbol 346 MovieClip [hint-arrows] Frame 31
this.removeMovieClip();
Symbol 350 MovieClip [hint-text] Frame 1
bg._alpha = 0;
mctxt._alpha = 0;
onEnterFrame = function () {
bg._alpha = bg._alpha + 10;
mctxt._alpha = mctxt._alpha + 10;
};
Symbol 350 MovieClip [hint-text] Frame 11
delete onEnterFrame;
stop();
Symbol 350 MovieClip [hint-text] Frame 12
onEnterFrame = function () {
bg._alpha = bg._alpha - 10;
mctxt._alpha = mctxt._alpha - 10;
};
Symbol 350 MovieClip [hint-text] Frame 21
delete onEnterFrame;
removeMovieClip(this);
Symbol 353 MovieClip [homingMissile] Frame 1
#initclip 11
Object.registerClass("homingMissile", homingMissileClass);
#endinitclip
Symbol 354 MovieClip [explosion] Frame 1
stop();
Symbol 354 MovieClip [explosion] Frame 2
NShards = 10;
i = 1;
while (i <= NShards) {
shard = eval ("shard" + i);
shard._rotation = Math.random() * 360;
i++;
}
play();
NPieces = 20;
vmax = 15;
counter = 0;
vx = new Array();
vy = new Array();
Pieces = new Array();
i = 1;
while (i <= NPieces) {
n = Math.round(Math.random()) + 1;
piece = this.attachMovie("starcolored" + n, "piece" + i, this.getNextHighestDepth());
i++;
}
i = 1;
while (i <= NPieces) {
piece = eval ("piece" + i);
Pieces.push(piece);
scale = Math.random() * 50;
piece._xscale = scale;
piece._yscale = scale;
vx[i] = (0.5 - Math.random()) * vmax;
vy[i] = (0.5 - Math.random()) * vmax;
i++;
}
this.onEnterFrame = function () {
counter++;
i = 1;
while (i <= NPieces) {
piece = eval ("piece" + i);
piece._x = piece._x + vx[i];
piece._y = piece._y + vy[i];
if (counter > 9) {
piece._alpha = piece._alpha - 20;
}
i++;
}
if (piece._alpha > 0) {
gotoAndPlay ("next");
} else {
this.removeMovieClip();
}
};
Symbol 354 MovieClip [explosion] Frame 16
stop();
Symbol 358 MovieClip [shuffle] Frame 1
stop();
Symbol 358 MovieClip [shuffle] Frame 2
NShards = 10;
i = 1;
while (i <= NShards) {
shard = eval ("shard" + i);
shard._rotation = Math.random() * 360;
i++;
}
Symbol 358 MovieClip [shuffle] Frame 16
removeMovieClip(this);
Symbol 362 MovieClip [fireworks] Frame 1
stop();
Symbol 362 MovieClip [fireworks] Frame 2
NShards = 10;
i = 1;
while (i <= NShards) {
shard = eval ("shard" + i);
shard._rotation = Math.random() * 360;
i++;
}
Symbol 362 MovieClip [fireworks] Frame 16
removeMovieClip(this);
Symbol 366 MovieClip [fire] Frame 15
removeMovieClip(this);
Symbol 380 MovieClip [lighting] Frame 9
this.removeMovieClip();
Symbol 384 MovieClip [lightning] Frame 1
stop();
Symbol 384 MovieClip [lightning] Frame 2
NShards = 10;
i = 1;
while (i <= NShards) {
shard = eval ("shard" + i);
shard._rotation = Math.random() * 360;
i++;
}
Symbol 384 MovieClip [lightning] Frame 16
removeMovieClip(this);
Symbol 394 MovieClip [jewel9] Frame 1
stop();
Symbol 394 MovieClip [jewel9] Frame 2
blur.gotoAndPlay(1);
Symbol 394 MovieClip [jewel9] Frame 31
gotoAndStop (1);
Symbol 394 MovieClip [jewel9] Frame 32
NPieces = 3;
NShards = 4;
vmax = 10;
counter = 0;
vx = new Array();
vy = new Array();
i = 1;
while (i <= NPieces) {
vx[i] = (0.5 - Math.random()) * vmax;
vy[i] = (0.5 - Math.random()) * vmax;
i++;
}
i = 1;
while (i <= NShards) {
shard = eval ("shard" + i);
shard._rotation = Math.random() * 360;
i++;
}
bum.gotoAndPlay(1);
Symbol 394 MovieClip [jewel9] Frame 33
counter++;
i = 1;
while (i <= NPieces) {
piece = eval ("piece" + i);
piece._x = piece._x + vx[i];
piece._y = piece._y + vy[i];
if (counter > 7) {
piece._alpha = piece._alpha - 25;
}
i++;
}
Symbol 394 MovieClip [jewel9] Frame 34
if (piece._alpha > 0) {
gotoAndPlay ("next");
} else {
this.removeMovieClip();
}
Symbol 397 MovieClip [any] Frame 1
stop();
if (active) {
play();
}
Symbol 397 MovieClip [any] Frame 21
gotoAndPlay (1);
Symbol 397 MovieClip [any] Frame 22
NPieces = 10;
vmax = 15;
counter = 0;
vx = new Array();
vy = new Array();
Pieces = new Array();
i = 1;
while (i <= NPieces) {
n = Math.round((Math.random() * 4) + 1);
piece = this.attachMovie("starcolored" + n, "piece" + i, this.getNextHighestDepth());
i++;
}
i = 1;
while (i <= NPieces) {
piece = eval ("piece" + i);
Pieces.push(piece);
scale = (0.75 - (Math.random() / 4)) * 100;
piece._xscale = scale;
piece._yscale = scale;
vx[i] = (0.5 - Math.random()) * vmax;
vy[i] = (0.5 - Math.random()) * vmax;
i++;
}
bum.gotoAndPlay(1);
Symbol 397 MovieClip [any] Frame 23
counter++;
i = 1;
while (i <= NPieces) {
piece = eval ("piece" + i);
piece._x = piece._x + vx[i];
piece._y = piece._y + vy[i];
if (counter > 9) {
piece._alpha = piece._alpha - 20;
}
i++;
}
Symbol 397 MovieClip [any] Frame 24
if (piece._alpha > 0) {
gotoAndPlay ("next");
} else {
this.removeMovieClip();
}
Symbol 403 MovieClip [magnet] Frame 1
stop();
Symbol 403 MovieClip [magnet] Frame 2
NShards = 10;
i = 1;
while (i <= NShards) {
shard = eval ("shard" + i);
shard._rotation = Math.random() * 360;
i++;
}
Symbol 403 MovieClip [magnet] Frame 16
removeMovieClip(this);
Symbol 716 MovieClip [hintarrow] Frame 1
function setLength(L) {
onEnterFrame = update;
if (L < 0) {
part2._y = 5;
part3._y = 14.5;
return(undefined);
}
Length = L;
part2._height = Length - 10;
part3._y = (part2._y + Length) - 15;
}
function update() {
_alpha = (_alpha + alphaDecrement);
if (_alpha >= 100) {
delete onEnterFrame;
}
}
dL = 10;
H = part2._height;
alphaDecrement = 10;
_alpha = 0;
stop();
Symbol 716 MovieClip [hintarrow] Frame 2
stop();
alphaDecrement = 10;
onEnterFrame = function () {
_alpha = (_alpha - alphaDecrement);
if (_alpha <= 0) {
delete onEnterFrame;
this.removeMovieClip();
}
};
Symbol 719 MovieClip [hintarrowh] Frame 1
function setLength(L) {
onEnterFrame = update;
if (L < 0) {
part2._x = 5;
part3._x = 14.5;
return(undefined);
}
Length = L;
part2._width = Length - 10;
part3._x = (part2._x + Length) - 15;
}
function update() {
_alpha = (_alpha + alphaDecrement);
if (_alpha >= 100) {
delete onEnterFrame;
}
}
_alpha = 0;
dL = 10;
alphaDecrement = 5;
stop();
Symbol 719 MovieClip [hintarrowh] Frame 2
stop();
alphaDecrement = 5;
onEnterFrame = function () {
_alpha = (_alpha - alphaDecrement);
if (_alpha <= 0) {
delete onEnterFrame;
this.removeMovieClip();
}
};
Symbol 723 MovieClip [star2] Frame 30
this.removeMovieClip();
Symbol 725 MovieClip [glowing] Frame 1
stop();
Symbol 725 MovieClip [glowing] Frame 2
play();
Symbol 725 MovieClip [glowing] Frame 9
this.removeMovieClip();
Symbol 742 MovieClip [whitemc] Frame 20
stop();
removeMovieClip(this);
Symbol 743 MovieClip [bonusapply] Frame 1
NPieces = 10;
vmax = 12;
counter = 0;
vx = new Array();
vy = new Array();
Pieces = new Array();
i = 1;
while (i <= NPieces) {
piece = this.attachMovie("star10", "piece" + i, this.getNextHighestDepth());
my_color = new Color(piece);
myColorTransform = new Object();
rb = Math.random() * 250;
gb = Math.random() * 250;
bb = Math.random() * 250;
myColorTransform = {ra:"60", rb:rb, ga:"60", gb:gb, ba:"60", bb:bb, aa:"100", ab:"0"};
my_color.setTransform(myColorTransform);
i++;
}
i = 1;
while (i <= NPieces) {
piece = eval ("piece" + i);
Pieces.push(piece);
scale = (0.75 - (Math.random() / 2)) * 100;
piece._xscale = scale;
piece._yscale = scale;
vx[i] = (0.5 - Math.random()) * vmax;
vy[i] = (0.5 - Math.random()) * vmax;
i++;
}
Symbol 743 MovieClip [bonusapply] Frame 2
counter++;
i = 1;
while (i <= NPieces) {
piece = eval ("piece" + i);
piece._x = piece._x + vx[i];
piece._y = piece._y + vy[i];
if (counter > 8) {
piece._alpha = piece._alpha - 10;
}
i++;
}
Symbol 743 MovieClip [bonusapply] Frame 3
if (piece._alpha > 0) {
gotoAndPlay ("next");
} else {
this.removeMovieClip();
}
Symbol 749 MovieClip [star3mctrans] Frame 10
gotoAndPlay ("play");
Symbol 749 MovieClip [star3mctrans] Frame 17
this.removeMovieClip();
stop();
Symbol 759 MovieClip [gradient] Frame 10
stop();
Symbol 759 MovieClip [gradient] Frame 11
play();
Symbol 759 MovieClip [gradient] Frame 20
this.removeMovieClip();
stop();
Symbol 762 MovieClip [bluemctrans] Frame 30
stop();
Symbol 762 MovieClip [bluemctrans] Frame 31
this.removeMovieClip();
stop();
Symbol 765 MovieClip [greenmctrans] Frame 21
this.removeMovieClip();
stop();
Symbol 799 MovieClip [explosionOfDynamite] Frame 1
stop();
Symbol 799 MovieClip [explosionOfDynamite] Frame 2
NShards = 10;
i = 1;
while (i <= NShards) {
shard = eval ("shard" + i);
shard._rotation = Math.random() * 360;
i++;
}
play();
NPieces = 10;
vmax = 15;
counter = 0;
vx = new Array();
vy = new Array();
Pieces = new Array();
i = 1;
while (i <= NPieces) {
piece = this.attachMovie("fire", "piece" + i, this.getNextHighestDepth());
i++;
}
i = 1;
while (i <= NPieces) {
piece = eval ("piece" + i);
Pieces.push(piece);
scale = (0.75 - (Math.random() / 4)) * 100;
piece._xscale = scale;
piece._yscale = scale;
vx[i] = (0.5 - Math.random()) * vmax;
vy[i] = (0.5 - Math.random()) * vmax;
i++;
}
this.onEnterFrame = function () {
counter++;
i = 1;
while (i <= NPieces) {
piece = eval ("piece" + i);
piece._x = piece._x + vx[i];
piece._y = piece._y + vy[i];
if (counter > 9) {
piece._alpha = piece._alpha - 20;
}
i++;
}
if (piece._alpha > 0) {
gotoAndPlay ("next");
} else {
this.removeMovieClip();
}
};
Symbol 799 MovieClip [explosionOfDynamite] Frame 16
stop();
Symbol 800 MovieClip [explosionOfRocket] Frame 1
stop();
Symbol 800 MovieClip [explosionOfRocket] Frame 2
NShards = 10;
i = 1;
while (i <= NShards) {
shard = eval ("shard" + i);
shard._rotation = Math.random() * 360;
i++;
}
play();
NPieces = 20;
vmax = 15;
counter = 0;
vx = new Array();
vy = new Array();
Pieces = new Array();
i = 1;
while (i <= NPieces) {
n = Math.round(Math.random()) + 1;
piece = this.attachMovie("starcolored" + n, "piece" + i, this.getNextHighestDepth());
i++;
}
i = 1;
while (i <= NPieces) {
piece = eval ("piece" + i);
Pieces.push(piece);
scale = Math.random() * 50;
piece._xscale = scale;
piece._yscale = scale;
vx[i] = (0.5 - Math.random()) * vmax;
vy[i] = (0.5 - Math.random()) * vmax;
i++;
}
this.onEnterFrame = function () {
counter++;
i = 1;
while (i <= NPieces) {
piece = eval ("piece" + i);
piece._x = piece._x + vx[i];
piece._y = piece._y + vy[i];
if (counter > 9) {
piece._alpha = piece._alpha - 20;
}
i++;
}
if (piece._alpha > 0) {
gotoAndPlay ("next");
} else {
this.removeMovieClip();
}
};
Symbol 800 MovieClip [explosionOfRocket] Frame 16
stop();
Symbol 940 MovieClip [hintcircle] Frame 1
dscale = 10;
Symbol 940 MovieClip [hintcircle] Frame 2
this._rotation = this._rotation + 5;
this._xscale = this._xscale + dscale;
this._yscale = this._yscale + dscale;
this._alpha = this._alpha - dscale;
if (this._alpha <= 0) {
dscale = -dscale;
this._alpha = 0;
this._xscale = 200;
this._yscale = 200;
}
if (this._alpha >= 100) {
dscale = -dscale;
this._alpha = 100;
this._xscale = 100;
this._yscale = 100;
}
Symbol 940 MovieClip [hintcircle] Frame 3
gotoAndPlay (2);
Symbol 940 MovieClip [hintcircle] Frame 4
this._alpha = this._alpha - 10;
if (this._alpha <= 0) {
this.removeMovieClip();
}
Symbol 940 MovieClip [hintcircle] Frame 5
gotoAndPlay ("del");
Symbol 943 MovieClip [bombBig] Frame 1
stop();
Symbol 943 MovieClip [bombBig] Frame 2
NShards = 10;
i = 1;
while (i <= NShards) {
shard = eval ("shard" + i);
shard._rotation = Math.random() * 360;
i++;
}
NPieces = 10;
vmax = 15;
counter = 0;
vx = new Array();
vy = new Array();
Pieces = new Array();
i = 1;
while (i <= NPieces) {
piece = this.attachMovie("starcolored1", "piece" + i, this.getNextHighestDepth());
i++;
}
i = 1;
while (i <= NPieces) {
piece = eval ("piece" + i);
Pieces.push(piece);
scale = (0.75 - (Math.random() / 4)) * 100;
piece._xscale = scale;
piece._yscale = scale;
vx[i] = (0.5 - Math.random()) * vmax;
vy[i] = (0.5 - Math.random()) * vmax;
i++;
}
this.onEnterFrame = function () {
counter++;
i = 1;
while (i <= NPieces) {
piece = eval ("piece" + i);
piece._x = piece._x + vx[i];
piece._y = piece._y + vy[i];
if (counter > 9) {
piece._alpha = piece._alpha - 20;
}
i++;
}
if (piece._alpha > 0) {
gotoAndPlay ("next");
} else {
this.removeMovieClip();
}
};
Symbol 943 MovieClip [bombBig] Frame 16
stop();
Symbol 946 MovieClip [dynamiteBig] Frame 1
stop();
Symbol 946 MovieClip [dynamiteBig] Frame 2
NShards = 10;
i = 1;
while (i <= NShards) {
shard = eval ("shard" + i);
shard._rotation = Math.random() * 360;
i++;
}
Symbol 946 MovieClip [dynamiteBig] Frame 16
removeMovieClip(this);
Symbol 949 MovieClip [firewallBig] Frame 1
stop();
Symbol 949 MovieClip [firewallBig] Frame 2
NShards = 10;
i = 1;
while (i <= NShards) {
shard = eval ("shard" + i);
shard._rotation = Math.random() * 360;
i++;
}
Symbol 949 MovieClip [firewallBig] Frame 15
stop();
Symbol 952 MovieClip [lightningBig] Frame 1
stop();
Symbol 952 MovieClip [lightningBig] Frame 2
NShards = 10;
i = 1;
while (i <= NShards) {
shard = eval ("shard" + i);
shard._rotation = Math.random() * 360;
i++;
}
Symbol 952 MovieClip [lightningBig] Frame 16
removeMovieClip(this);
Symbol 955 MovieClip [fireworksBig] Frame 1
stop();
Symbol 955 MovieClip [fireworksBig] Frame 2
NShards = 10;
i = 1;
while (i <= NShards) {
shard = eval ("shard" + i);
shard._rotation = Math.random() * 360;
i++;
}
Symbol 955 MovieClip [fireworksBig] Frame 16
removeMovieClip(this);
Symbol 958 MovieClip [magnetBig] Frame 1
stop();
Symbol 958 MovieClip [magnetBig] Frame 2
NShards = 10;
i = 1;
while (i <= NShards) {
shard = eval ("shard" + i);
shard._rotation = Math.random() * 360;
i++;
}
Symbol 958 MovieClip [magnetBig] Frame 16
removeMovieClip(this);
Symbol 961 MovieClip [shuffleBig] Frame 1
stop();
Symbol 961 MovieClip [shuffleBig] Frame 2
NShards = 10;
i = 1;
while (i <= NShards) {
shard = eval ("shard" + i);
shard._rotation = Math.random() * 360;
i++;
}
Symbol 961 MovieClip [shuffleBig] Frame 16
removeMovieClip(this);
Symbol 965 Button
on (rollOver) {
_root.cursor.gotoAndStop("hand");
_root.playSound("select");
_root.window.gotoAndStop("download");
}
on (rollOut) {
_root.window.gotoAndStop("off");
}
on (release) {
_root.playSound("click");
getURL (_root.downloadURL, ((_root.downloadTarget != undefined) ? (_root.downloadTarget) : "_blank"));
}
on (releaseOutside) {
_root.cursor.gotoAndPlay("arrow");
}
Symbol 968 Button
on (rollOut) {
_root.window.gotoAndStop("off");
}
on (releaseOutside) {
_root.window.gotoAndStop("off");
_root.cursor.gotoAndPlay("arrow");
}
Symbol 971 Button
on (rollOut) {
_root.window.gotoAndStop("off");
}
on (releaseOutside) {
_root.window.gotoAndStop("off");
_root.cursor.gotoAndPlay("arrow");
}
Symbol 974 Button
on (rollOut) {
_root.window.gotoAndStop("off");
}
on (releaseOutside) {
_root.window.gotoAndStop("off");
_root.cursor.gotoAndPlay("arrow");
}
Symbol 979 Button
on (rollOver) {
_root.cursor.gotoAndStop("hand");
_root.playSound("select");
_root.window.gotoAndStop("download");
}
on (rollOut) {
_root.window.gotoAndStop("off");
}
on (release) {
_root.playSound("click");
getURL (_root.downloadURL, ((_root.downloadTarget != undefined) ? (_root.downloadTarget) : "_blank"));
}
on (releaseOutside) {
_root.cursor.gotoAndPlay("arrow");
}
Symbol 984 Button
on (rollOver) {
_root.cursor.gotoAndStop("hand");
_root.playSound("select");
_root.window.gotoAndStop("download");
}
on (rollOut) {
_root.window.gotoAndStop("off");
}
on (release) {
_root.playSound("click");
getURL (_root.downloadURL, ((_root.downloadTarget != undefined) ? (_root.downloadTarget) : "_blank"));
}
on (releaseOutside) {
_root.cursor.gotoAndPlay("arrow");
}
Symbol 988 MovieClip Frame 1
stop();
Symbol 992 MovieClip Frame 1
stop();
Symbol 995 MovieClip Frame 1
stop();
Symbol 998 MovieClip Frame 1
dr = 1;
Symbol 998 MovieClip Frame 2
_rotation = (_rotation + dr);
Symbol 998 MovieClip Frame 3
gotoAndPlay (2);
Symbol 1028 MovieClip Frame 1
dscale = 10;
_xscale = 0;
_yscale = 0;
_alpha = 0;
Symbol 1028 MovieClip Frame 2
_xscale = (_xscale + dscale);
_yscale = (_yscale + dscale);
_alpha = (_alpha + (dscale / 2));
if ((_xscale >= 200) || (_xscale <= 0)) {
dscale = -dscale;
}
Symbol 1028 MovieClip Frame 3
gotoAndPlay (2);
Symbol 1033 MovieClip Frame 1
stop();
Symbol 1033 MovieClip Frame 2
stop();
Symbol 1033 MovieClip Frame 3
stop();
Symbol 1041 MovieClip Frame 1
stop();
Symbol 1041 MovieClip Frame 10
stop();
Symbol 1045 Button
on (rollOver) {
_root.cursor.gotoAndStop("hand");
_root.playSound("select");
txtMC.gotoAndStop("replay");
}
on (rollOut) {
_root.cursor.gotoAndStop("arrow");
txtMC.gotoAndStop("congr");
}
on (releaseOutside) {
_root.cursor.gotoAndStop("arrow");
txtMC.gotoAndStop("congr");
}
Symbol 1052 MovieClip Frame 1
stop();
Symbol 1052 MovieClip Frame 2
stop();
txt = "Congratulations! You have completed web game";
Symbol 1052 MovieClip Frame 3
stop();
txt = "Click to replay the game at higher difficulty";
Symbol 1053 MovieClip Frame 1
function construct() {
_visible = true;
}
function closedRollOver() {
_root.cursor.gotoAndStop("hand");
_root.playSound("select");
_root.window.gotoAndStop("close");
}
function playRollOver() {
_root.cursor.gotoAndStop("hand");
_root.playSound("select");
_root.window.gotoAndStop("play");
}
function playRelease() {
_root.cursor.gotoAndPlay("arrow");
_root.playSound("click");
_root.counter = 0;
_root.gotoAndPlay("map");
_root.window.gotoAndStop("off");
}
stop();
replay._visible = false;
maxSpheres = 0;
thisObj = this;
var Current = new Array();
setActive = function (N, max) {
Current = new Array();
var i = 1;
while (i < N) {
myitem = eval ("map" + i);
myitem.gotoAndStop("simple");
myitem.completed._visible = true;
myitem = eval ("mapLocation" + i);
myitem._visible = false;
i++;
}
myitem = eval ("map" + N);
myitem.gotoAndStop("active");
myitem._alpha = 0;
myitem.completed._visible = false;
if (myitem != undefined) {
Current.push(myitem);
}
if ((!thisObj.myInterval) && (Current.length)) {
var interval = setInterval(startBlending, 1000, 0);
thisObj.myInterval = interval;
}
myitem = eval ("mapLocation" + N);
myitem._visible = true;
myitem.onRollOver = playRollOver;
myitem.onRelease = playRelease;
myitem = eval ("mapLocationClip" + N);
myitem.gotoAndPlay("play");
var i = (N + 1);
while (i <= max) {
myitem = eval ("map" + i);
myitem.gotoAndStop("closed");
myitem = eval ("mapLocation" + i);
myitem._visible = true;
myitem.onRollOver = closedRollOver;
myitem.onRelease = null;
i++;
}
var nm;
var Bonuses = _root.Bonuses;
var blength = Bonuses.length;
var i = 0;
while (i < blength) {
nm = Bonuses[i];
this[nm].iconmc.gotoAndStop(nm);
this[nm].bonus_name = nm;
i++;
}
var EnableBonuses = _root.EnableBonuses;
var eblength = EnableBonuses.length;
var i = 0;
while (i < eblength) {
this[EnableBonuses[i]].gotoAndStop("Active");
i++;
}
var i = 0;
while (i < _root.numberOfGame) {
this["kubok" + i].gotoAndStop("show");
i++;
}
};
startBlending = function (i) {
if (thisObj.myInterval) {
clearInterval(thisObj.myInterval);
thisObj.myInterval = 0;
}
var nm = thisObj.Current[i];
if (i < thisObj.Current.length) {
_root.playSound("hit");
thisObj.onEnterFrame = function () {
if (nm._alpha < 100) {
nm._alpha = nm._alpha + 10;
} else {
delete thisObj.onEnterFrame;
thisObj.startBlending(i + 1);
}
};
}
};
replay.onPress = function () {
replay._visible = false;
replay.enabled = false;
txtMC.gotoAndStop("select");
_root.replay();
};
disableAll = function (flag) {
var i = 1;
while (i <= 6) {
myitem = eval ("mapLocation" + i);
myitem.enabled = !flag;
i++;
}
};
Symbol 1062 Button
on (rollOver) {
_root.cursor.gotoAndPlay("hand");
}
on (rollOut) {
_root.cursor.gotoAndPlay("arrow");
}
on (release) {
_root._r = _root.getScoreEncoded();
var name = _root.playername;
var d1;
var d2;
var d3;
var d4;
d1 = _root._r[0].toString();
d2 = _root._r[1].toString();
d3 = _root._r[2].toString();
d4 = _root._r[3].toString();
getURL (_root.hiscoreURL, "_blank", "POST");
}
Symbol 1065 Button
on (rollOver) {
play_b.gotoAndStop("active");
_root.cursor.gotoAndStop("hand");
_root.playSound("select");
}
on (rollOut) {
play_b.gotoAndStop("simple");
}
on (release) {
_root.cursor.gotoAndStop("arrow");
_root.playSound("click");
_root.counter = 0;
_root.gotoAndPlay("map");
_root.window.gotoAndStop("off");
}
on (releaseOutside) {
_root.cursor.gotoAndStop("arrow");
}
Symbol 1078 MovieClip Frame 1
stop();
followMouse = function () {
onEnterFrame = function () {
this._x = _parent._xmouse + 20;
this._y = _parent._ymouse + 20;
if ((this._x + this._width) > 480) {
this._x = 480 - this._width;
}
if ((this._y + this._height) > 360) {
this._y = 360 - this._height;
}
};
};
followMouse();
Symbol 1078 MovieClip Frame 2
stop();
followMouse();
Symbol 1078 MovieClip Frame 3
stop();
followMouse();
Symbol 1078 MovieClip Frame 4
stop();
onEnterFrame = null;
Symbol 1081 MovieClip Frame 1
stop();
Symbol 1081 MovieClip Frame 2
stop();
Symbol 1097 MovieClip Frame 1
stop();
Symbol 1097 MovieClip Frame 2
stop();
Symbol 1097 MovieClip Frame 3
stop();
Symbol 1097 MovieClip Frame 4
stop();
Symbol 1097 MovieClip Frame 5
stop();
Symbol 1097 MovieClip Frame 6
stop();
Symbol 1097 MovieClip Frame 7
stop();
Symbol 1097 MovieClip Frame 8
stop();
Symbol 1097 MovieClip Frame 9
stop();
Symbol 1097 MovieClip Frame 10
stop();
Symbol 1100 MovieClip Frame 1
stop();
Symbol 1100 MovieClip Frame 2
stop();
Symbol 1100 MovieClip Frame 3
stop();
Symbol 1100 MovieClip Frame 4
stop();
Symbol 1100 MovieClip Frame 5
stop();
Symbol 1100 MovieClip Frame 6
stop();
Symbol 1100 MovieClip Frame 7
stop();
Symbol 1100 MovieClip Frame 8
stop();
Symbol 1100 MovieClip Frame 9
stop();
Symbol 1100 MovieClip Frame 10
stop();
Symbol 1105 MovieClip Frame 1
stop();
this.onRollOver = function () {
_root.cursor.gotoAndStop("hand");
_root.playSound("select");
_root.window.gotoAndStop(this._name);
};
Symbol 1105 MovieClip Frame 2
Symbol 1105 MovieClip Frame 15
stop();
this.onRollOver = function () {
_root.cursor.gotoAndStop("hand");
_root.playSound("select");
_root.window.gotoAndStop(this._name + "unlocked");
};
Symbol 1110 MovieClip Frame 1
maxSpheres = 0;
thisObj = this;
var Current = new Array();
setActive = function (N, max) {
trace(N);
trace(max);
Current = new Array();
var i = 1;
while (i < N) {
myitem = eval ("level" + i);
myitem.gotoAndStop("simple");
myitem._visible = true;
myitem.completed._visible = true;
i++;
}
myitem = eval ("level" + N);
myitem.gotoAndStop("active");
myitem._visible = true;
myitem._alpha = 0;
myitem.completed._visible = false;
if (myitem != undefined) {
Current.push(myitem);
}
if ((!thisObj.myInterval) && (Current.length)) {
var interval = setInterval(startBlending, 1000, 0);
thisObj.myInterval = interval;
}
var i = (N + 1);
while (i <= max) {
myitem = eval ("level" + i);
myitem._visible = false;
i++;
}
var nm;
var Bonuses = _root.Bonuses;
var blength = Bonuses.length;
var i = 0;
while (i < blength) {
nm = Bonuses[i];
this[nm].iconmc.gotoAndStop(nm);
this[nm].lockmc.gotoAndStop(nm);
this[nm].bonus_name = nm;
i++;
}
var EnableBonuses = _root.EnableBonuses;
var eblength = EnableBonuses.length;
var i = 0;
while (i < eblength) {
this[EnableBonuses[i]].gotoAndStop("active");
i++;
}
if (_root.newBonus != "") {
_root.playSound("new_bonus_enabled");
this[_root.newBonus].gotoAndPlay("activate");
}
};
startBlending = function (i) {
if (thisObj.myInterval) {
clearInterval(thisObj.myInterval);
thisObj.myInterval = 0;
}
var nm = thisObj.Current[i];
if (i < thisObj.Current.length) {
_root.playSound("new_level_enabled");
thisObj.onEnterFrame = function () {
if (nm._alpha < 100) {
nm._alpha = nm._alpha + 10;
} else {
delete thisObj.onEnterFrame;
thisObj.startBlending(i + 1);
}
};
}
};
stop();
Instance of Symbol 1105 MovieClip "bomb" in Symbol 1110 MovieClip Frame 1
on (rollOut) {
_root.cursor.gotoAndPlay("arrow");
_root.window.gotoAndStop("off");
}
Instance of Symbol 1105 MovieClip "dynamite" in Symbol 1110 MovieClip Frame 1
on (rollOut) {
_root.cursor.gotoAndPlay("arrow");
_root.window.gotoAndStop("off");
}
Instance of Symbol 1105 MovieClip "firewall" in Symbol 1110 MovieClip Frame 1
on (rollOut) {
_root.cursor.gotoAndPlay("arrow");
_root.window.gotoAndStop("off");
}
Instance of Symbol 1105 MovieClip "magnet" in Symbol 1110 MovieClip Frame 1
on (rollOut) {
_root.cursor.gotoAndPlay("arrow");
_root.window.gotoAndStop("off");
}
Instance of Symbol 1105 MovieClip "fireworks" in Symbol 1110 MovieClip Frame 1
on (rollOut) {
_root.cursor.gotoAndPlay("arrow");
_root.window.gotoAndStop("off");
}
Instance of Symbol 1105 MovieClip "shuffle" in Symbol 1110 MovieClip Frame 1
on (rollOut) {
_root.cursor.gotoAndPlay("arrow");
_root.window.gotoAndStop("off");
}
Instance of Symbol 1105 MovieClip "lightning" in Symbol 1110 MovieClip Frame 1
on (rollOut) {
_root.cursor.gotoAndPlay("arrow");
_root.window.gotoAndStop("off");
}
Instance of Symbol 1105 MovieClip "atom bomb" in Symbol 1110 MovieClip Frame 1
on (rollOut) {
_root.cursor.gotoAndPlay("arrow");
_root.window.gotoAndStop("off");
}
on (release) {
_root.playSound("click");
getURL (_root.downloadURL, ((_root.downloadTarget != undefined) ? (_root.downloadTarget) : "_blank"));
}
on (releaseOutside) {
_root.cursor.gotoAndPlay("arrow");
}
Instance of Symbol 1105 MovieClip "TNT" in Symbol 1110 MovieClip Frame 1
on (rollOut) {
_root.cursor.gotoAndPlay("arrow");
_root.window.gotoAndStop("off");
}
on (release) {
_root.playSound("click");
getURL (_root.downloadURL, ((_root.downloadTarget != undefined) ? (_root.downloadTarget) : "_blank"));
}
on (releaseOutside) {
_root.cursor.gotoAndPlay("arrow");
}
Instance of Symbol 1105 MovieClip "super magnet" in Symbol 1110 MovieClip Frame 1
on (rollOut) {
_root.cursor.gotoAndPlay("arrow");
_root.window.gotoAndStop("off");
}
on (release) {
_root.playSound("click");
getURL (_root.downloadURL, ((_root.downloadTarget != undefined) ? (_root.downloadTarget) : "_blank"));
}
on (releaseOutside) {
_root.cursor.gotoAndPlay("arrow");
}
Symbol 1110 MovieClip Frame 2
stop();
Symbol 1110 MovieClip Frame 3
stop();
Symbol 1111 Button
on (rollOver) {
play_b.gotoAndStop("active");
_root.cursor.gotoAndPlay("hand");
_root.playSound("select");
}
on (rollOut) {
play_b.gotoAndStop("simple");
_root.cursor.gotoAndPlay("arrow");
}
on (release) {
if (map.myInterval) {
clearInterval(map.myInterval);
map.myInterval = 0;
}
delete map.onEnterFrame;
cursor.gotoAndPlay("arrow");
_root.playSound("click");
_root.gotoAndPlay("game");
}
on (releaseOutside) {
_root.cursor.gotoAndPlay("arrow");
}
Symbol 1132 MovieClip Frame 1
stop();
followMouse = function () {
onEnterFrame = function () {
this._x = (_parent._xmouse - this._width) + 20;
this._y = _parent._ymouse + 20;
};
};
followMouseUp = function () {
onEnterFrame = function () {
this._x = (_parent._xmouse - this._width) + 20;
this._y = _parent._ymouse - this._height;
};
};
followMouse();
Symbol 1132 MovieClip Frame 2
stop();
followMouse();
Symbol 1132 MovieClip Frame 3
stop();
followMouse();
Symbol 1132 MovieClip Frame 4
stop();
followMouse();
Symbol 1132 MovieClip Frame 5
stop();
followMouse();
Symbol 1132 MovieClip Frame 6
stop();
followMouse();
Symbol 1132 MovieClip Frame 7
stop();
followMouse();
Symbol 1132 MovieClip Frame 8
stop();
followMouse();
Symbol 1132 MovieClip Frame 9
stop();
followMouseUp();
Symbol 1132 MovieClip Frame 10
stop();
followMouseUp();
Symbol 1132 MovieClip Frame 11
stop();
followMouse = function () {
onEnterFrame = function () {
this._x = (_parent._xmouse - this._width) + 20;
this._y = _parent._ymouse + 20;
};
};
followMouseUp = function () {
onEnterFrame = function () {
this._x = (_parent._xmouse - this._width) + 20;
this._y = _parent._ymouse - this._height;
};
};
followMouse();
Symbol 1132 MovieClip Frame 12
stop();
followMouse();
Symbol 1132 MovieClip Frame 13
stop();
followMouse();
Symbol 1132 MovieClip Frame 14
stop();
followMouse();
Symbol 1132 MovieClip Frame 15
stop();
followMouse();
Symbol 1132 MovieClip Frame 16
stop();
followMouse();
Symbol 1132 MovieClip Frame 17
stop();
followMouse();
Symbol 1132 MovieClip Frame 18
onEnterFrame = null;
stop();
Symbol 1269 MovieClip Frame 1
stop();
Symbol 1269 MovieClip Frame 2
stop();
Symbol 1269 MovieClip Frame 3
stop();
Symbol 1269 MovieClip Frame 4
stop();
Symbol 1269 MovieClip Frame 5
stop();
Symbol 1269 MovieClip Frame 6
stop();
Symbol 1269 MovieClip Frame 7
stop();
Symbol 1269 MovieClip Frame 8
stop();
Symbol 1269 MovieClip Frame 9
stop();
Symbol 1269 MovieClip Frame 10
stop();
Symbol 1269 MovieClip Frame 11
stop();
Symbol 1269 MovieClip Frame 12
stop();
Symbol 1269 MovieClip Frame 13
stop();
Symbol 1269 MovieClip Frame 14
stop();
Symbol 1269 MovieClip Frame 15
stop();
Symbol 1269 MovieClip Frame 16
stop();
Symbol 1269 MovieClip Frame 17
stop();
Symbol 1269 MovieClip Frame 18
stop();
Symbol 1269 MovieClip Frame 19
stop();
Symbol 1269 MovieClip Frame 20
stop();
Symbol 1269 MovieClip Frame 21
stop();
Symbol 1269 MovieClip Frame 22
stop();
Symbol 1299 MovieClip Frame 1
yMask = mask._y;
heightMask = mask._height;
updateClock = function (t, totalT) {
mask._y = yMask + ((heightMask * t) / totalT);
};
Symbol 1303 MovieClip Frame 1
txt = _root.completed;
Symbol 1306 MovieClip Frame 1
txt = _root.gameover;
Symbol 1310 MovieClip Frame 1
txt1 = _root.paused1;
txt2 = _root.paused2;
Symbol 1314 MovieClip Frame 1
bg._alpha = 0;
mctxt._alpha = 0;
this.stay = false;
onEnterFrame = function () {
bg._alpha = bg._alpha + 5;
mctxt._alpha = mctxt._alpha + 5;
};
Symbol 1314 MovieClip Frame 21
delete onEnterFrame;
stop();
i = 0;
onEnterFrame = function () {
i++;
if ((i == 80) && (!this.stay)) {
play();
_parent.game.beginPlay();
this.stay = true;
}
};
Symbol 1314 MovieClip Frame 22
onEnterFrame = function () {
bg._alpha = bg._alpha - 10;
mctxt._alpha = mctxt._alpha - 10;
};
this.stay = true;
Symbol 1314 MovieClip Frame 35
delete onEnterFrame;
stop();
Symbol 1326 Button
on (rollOver) {
play_b.gotoAndStop("active");
_root.cursor.gotoAndPlay("hand");
_root.playSound("select");
}
on (rollOut) {
play_b.gotoAndStop("simple");
_root.cursor.gotoAndPlay("arrow");
}
on (release) {
_root.playSound("click");
_root.numberOfGame++;
_root.numberOfLevel = 1;
_root.gotoAndPlay("map");
_root.hintsEnabled = false;
}
on (releaseOutside) {
_root.cursor.gotoAndPlay("arrow");
}
Symbol 1327 Button
on (rollOver) {
full_b.gotoAndStop("active");
_root.cursor.gotoAndPlay("hand");
_root.playSound("select");
}
on (rollOut) {
full_b.gotoAndStop("simple");
_root.cursor.gotoAndPlay("arrow");
}
on (release) {
_root.playSound("click");
getURL (_root.orderURL, ((_root.orderTarget != undefined) ? (_root.orderTarget) : "_blank"));
}
on (releaseOutside) {
_root.cursor.gotoAndPlay("arrow");
}
Symbol 1338 Button
on (rollOver) {
play_b.gotoAndStop("active");
_root.cursor.gotoAndPlay("hand");
_root.playSound("select");
}
on (rollOut) {
play_b.gotoAndStop("simple");
_root.cursor.gotoAndPlay("arrow");
}
on (release) {
_root.playSound("click");
_root.numberOfLevel = 1;
_root.numberOfGame = 0;
_root.numberOfMap = 0;
_root.gotoAndPlay("play");
}
on (releaseOutside) {
_root.cursor.gotoAndPlay("arrow");
}
Symbol 1391 MovieClip Frame 1
stop();
Symbol 1392 MovieClip [blendhouse] Frame 1
#initclip 12
Object.registerClass("blendhouse", blendHouseClass);
#endinitclip
Symbol 1396 Button
on (rollOver) {
play_b.gotoAndStop("active");
_root.cursor.gotoAndPlay("hand");
_root.playSound("select");
}
on (rollOut) {
play_b.gotoAndStop("simple");
_root.cursor.gotoAndPlay("arrow");
}
on (release) {
_root.playSound("click");
_root.gotoAndPlay("mapGlobal");
}
on (releaseOutside) {
_root.cursor.gotoAndPlay("arrow");
}
Symbol 1404 MovieClip Frame 5
stop();
v = -1;
X = picture._x;
Xlast = X - 123;
counter = 100;
onEnterFrame = function () {
counter++;
if (counter >= 100) {
X = X + v;
picture._x = Math.round(X);
if (((X <= Xlast) && (v < 0)) || ((X >= Xlast) && (v > 0))) {
counter = 0;
v = -v;
picture._x = Xlast + v;
X = picture._x;
Xlast = Xlast + ((123 * v) / Math.abs(v));
}
}
};