Frame 1
function round2(num) {
return(Math.round(num * 100) / 100);
}
copyright = "Copyright (c) 2005-2006 by Enkord Ltd.";
hint1_0 = "Click on groups of three or more same pieces|to collapse them";
hint1_1 = "When you collapse pieces close to stone|blocks those blocks will be destroyed|as well";
hint1_2 = "Destroy all stone blocks to complete this|level";
hint3_0 = "This is a bomb egg! Click on group of pieces|that includes this egg and it will explode|nearby pieces and blocks. Now you will get|bomb eggs for collapsing groups of 5 pieces|or more";
hint4_0 = "To complete this level you have to break all|wooden boxes. To do so collapse|pieces over box to break it";
hint9_0 = "This is a key! Make a match with it to remove|locks from the same pieces";
hint10_0 = "To complete this level you have to collapse as|many pieces as possible before time runs out";
hint11_0 = "Now you can use dynamite eggs.|To get dynamite egg collapse 7 pieces or more";
hint12_0 = "Now you can use slime eggs.|Slime egg will spawn two green waste| projectiles that destroy everything|on the way. To create slime egg|later collapse 9 pieces or more";
hint13_0 = "This is lightning egg. When you collapse it you will|unleash lightning bolt that will eliminate whole|column or pieces and blocks. To get lightning egg later|collapse 10 pieces or more";
hint14_0 = "This is lava egg. When you collapse it|you will unleash pieces of lava to all directions.|To get lightning egg later collapse 11 pieces or more";
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 = "JURASSIC REALM FULL";
menu_txt2 = "<b><p></p> - fullscreen gameplay<p></p> - over 150 levels and 2 modes<p></p> - uncover hidden dinosaurs</b>";
menu_txt3 = "JURASSIC REALM WEB";
menu_txt4 = "<b>Prehistoric adventures in the <p></p>land of ancient dinosaurs</b>";
sound_txt = "sound";
music_txt = "music";
hints_txt = "Hints";
scr = "Your score:";
nam = "Your name here";
submit = "submit";
loading = "loading";
level = "LEVEL";
nmoves = "NO MOVES";
congratualations = "CONGRATULATIONS!";
complete_txt1 = "<b>You have completed the web<p></p>version of the game BUT...<p></p>the adventure is not over yet!</b>";
complete_txt2 = "<b>Are you clever enough to find the legendary <p></p>Tyrannosaurus Rex? Download your FREE<p></p>trial of the full version and find out!<br><br> - Enhanced graphics and<p></p> special effects<p></p> - Over 150 mysterious levels<p></p> - 19 dinosaurs to uncover<p></p> - 2 play modes<p></p> - Huge map available for exploration<p></p> - Fullscreen gameplay<p></p> - And many more!</b>";
complete_txt3 = "Replay the web version on higher";
complete_txt4 = "difficulty to get higher score";
complete_txt5 = "JURASSIC REALM";
complete_txt6 = "full version";
game_over = "GAME OVER";
try_full_version = "TRY FULL VERSION";
pause1_txt1 = "<b>FULL version features 19 hidden dinosaurs <p></p>that can be uncovered while <p></p>playing the game</b>";
pause2_txt1 = "<b>FULL version has lots of wonderful <p></p>places to explore</b>";
pause3_txt1 = "<b>FULL version has huge map available for <p></p>your exploration with number <p></p>of roads and pathways to travel</b>";
pause4_txt1 = "<b>FULL version features over 150 mysterious level <p></p>to play in 2 different game modes as well as <p></p>pack of hidden bonus levels</b>";
pause5_txt1 = "<b>FULL version has loads of different bricks, <p></p>layouts, power-ups, dinosaurs, levels, <p></p>and more!</b>";
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);
}
}
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/jurassicrealm/download/?from=webversion";
} else {
greatgames._visible = false;
greatgames_btn.enabled = false;
game_logo_mc._x = 110;
not_our_site = true;
}
if (orderURL == undefined) {
orderURL = rootURL + "games/jurassicrealm/order/?from=webversion";
}
if (hiscoreURL == undefined) {
hiscoreURL = rootURL + (not_our_site ? "games/jurassicrealm/online/hiscore-nolinks.php" : "games/jurassicrealm/online/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 mouseInRect = ((((x > 0) && (x < 480)) && (y > 0)) && (y < 360));
if (mouseInRect) {
Mouse.hide();
}
cursor.gotoAndPlay("arrow");
Frame 4
_quality = "high";
playMusic("menumusic");
txt11 = menu_txt1;
txt21 = menu_txt2;
txt31 = menu_txt3;
txt41 = menu_txt4;
snd = sound_txt;
msc = music_txt;
hnt = hints_txt;
Frame 5
updateTitle();
_root.bg.gotoAndStop("space1");
play();
Frame 6
updateTitle();
gotoAndPlay ("titlerepeat");
Frame 7
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);
};
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 = 300000 /* 0x0493E0 */;
disableBonuses = ["bomb", "dynamite", "gun1", "lighting", "gun2"];
enabledColors = [0, 1, 2, 3];
task = ["block"];
levelHints = [1000, 3000, 6000];
doHint0 = function () {
hintItems = new Array();
hintItems[0] = new Array();
hintItems[0].nm = "condition";
hintItems[0][0] = new Object();
hintItems[0][0].i = 8;
hintItems[0][0].j = 3;
hintItems[0][0].itsColor = 1;
hintItems[0][1] = new Object();
hintItems[0][1].i = 8;
hintItems[0][1].j = 4;
hintItems[0][1].itsColor = 1;
hintItems[0][2] = new Object();
hintItems[0][2].i = 9;
hintItems[0][2].j = 4;
hintItems[0][2].itsColor = 1;
hintItems[1] = new Object();
hintItems[1].nm = "circle";
hintItems[1].i = 8;
hintItems[1].j = 3;
hintItems[2] = new Object();
hintItems[2].nm = "circle";
hintItems[2].i = 8;
hintItems[2].j = 4;
hintItems[3] = new Object();
hintItems[3].nm = "circle";
hintItems[3].i = 9;
hintItems[3].j = 4;
hintItems[4] = new Object();
hintItems[4].nm = "textBlock";
hintItems[4].x = 80;
hintItems[4].y = 155;
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 = 5;
hintItems[0][0].j = 9;
hintItems[0][0].itsColor = 2;
hintItems[0][1] = new Object();
hintItems[0][1].i = 6;
hintItems[0][1].j = 9;
hintItems[0][1].itsColor = 0;
hintItems[1] = new Object();
hintItems[1].nm = "arrows";
hintItems[1].i1 = 5;
hintItems[1].i2 = 6;
hintItems[1].j1 = 9;
hintItems[1].j2 = 9;
hintItems[2] = new Object();
hintItems[2].nm = "textBlock";
hintItems[2].x = 60;
hintItems[2].y = 215;
hintItems[2].textBlock = hint1_1;
hintItems[3] = new Object();
hintItems[3].nm = "circle";
hintItems[3].i = 5;
hintItems[3].j = 9;
};
doHint2 = function () {
hintItems = new Array();
hintItems[0] = new Object();
hintItems[0].nm = "textBlock";
hintItems[0].x = 60;
hintItems[0].y = 160;
hintItems[0].textBlock = hint1_2;
};
discriptionc = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.itsColor = 2;
_local1.block = "kirpich13-16-conerl";
_local1.lock = true;
return(_local1);
};
discriptionA = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "kirpich13";
_local1.lock = true;
return(_local1);
};
discriptionB = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "kirpich14";
_local1.lock = true;
return(_local1);
};
discriptionC = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "kirpich13-16-conerr";
_local1.lock = true;
return(_local1);
};
Line1 = "................. ";
Line2 = "................. ";
Line3 = "................. ";
Line4 = "....???312???.... ";
Line5 = "...????2112???... ";
Line6 = "..??????23?????.. ";
Line7 = "..?????????????.. ";
Line8 = "..?????????????.. ";
Line9 = "..???22cAC11???.. ";
Line10 = "..??22cABAC11??.. ";
Line11 = "...?2cABBBAC1?... ";
Line12 = "................. ";
Line13 = ".................";
Field = (((((((((((Line1 + Line2) + Line3) + Line4) + Line5) + Line6) + Line7) + Line8) + Line9) + Line10) + Line11) + Line12) + Line13;
Line1 = "................. ";
Line2 = "................. ";
Line3 = "................. ";
Line4 = "....000000000.... ";
Line5 = "...00000000000... ";
Line6 = "..0000000000000.. ";
Line7 = "..0000000000000.. ";
Line8 = "..0000000000000.. ";
Line9 = "..0000000000000.. ";
Line10 = "..0000000000000.. ";
Line11 = "...00000000000... ";
Line12 = "................. ";
Line13 = ".................";
Fills = (((((((((((Line1 + Line2) + Line3) + Line4) + Line5) + Line6) + Line7) + Line8) + Line9) + Line10) + Line11) + Line12) + Line13;
};
doLevel2 = function () {
timeInterval = 300000 /* 0x0493E0 */;
disableBonuses = ["bomb", "dynamite", "gun1", "lighting", "gun2"];
enabledColors = [0, 4, 2, 7];
task = ["block"];
levelHints = [];
discriptionb = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "green-body01";
return(_local1);
};
discriptionj = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "green-corner01r";
return(_local1);
};
discriptionk = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "green-corner01l";
return(_local1);
};
discriptionh = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "green-head01";
return(_local1);
};
discriptioni = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "green-head02";
return(_local1);
};
discriptiony = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "green-horns01";
return(_local1);
};
discriptionl = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "green-leg03";
return(_local1);
};
discriptiong = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "green-tail";
return(_local1);
};
discriptionK = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "stones-sq2";
return(_local1);
};
discriptionL = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "stones-sq1";
return(_local1);
};
discriptionM = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "stones-corner2r";
return(_local1);
};
discriptionN = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "stones-corner2l";
return(_local1);
};
Line1 = "................. ";
Line2 = "................. ";
Line3 = ".......???....... ";
Line4 = "......?????...... ";
Line5 = "......?????...... ";
Line6 = ".....???????..... ";
Line7 = "....????yy???.... ";
Line8 = "....???kbbj??.... ";
Line9 = "...??hibbbbg??... ";
Line10 = "..?????l??l????.. ";
Line11 = "..??NKLKKKKLM??.. ";
Line12 = "................. ";
Line13 = ".................";
Field = (((((((((((Line1 + Line2) + Line3) + Line4) + Line5) + Line6) + Line7) + Line8) + Line9) + Line10) + Line11) + Line12) + Line13;
Line1 = "................. ";
Line2 = "................. ";
Line3 = ".......000....... ";
Line4 = "......00000...... ";
Line5 = "......00000...... ";
Line6 = ".....0000000..... ";
Line7 = "....000000000.... ";
Line8 = "....000000000.... ";
Line9 = "...00000000000... ";
Line10 = "..0000000000000.. ";
Line11 = "..0000000000000.. ";
Line12 = "................. ";
Line13 = ".................";
Fills = (((((((((((Line1 + Line2) + Line3) + Line4) + Line5) + Line6) + Line7) + Line8) + Line9) + Line10) + Line11) + Line12) + Line13;
};
doLevel3 = function () {
timeInterval = 300000 /* 0x0493E0 */;
disableBonuses = ["dynamite", "gun1", "lighting", "gun2"];
enabledColors = [0, 9, 4, 7];
task = ["block"];
levelHints = [1000];
doHint0 = function () {
hintItems = new Array();
hintItems[0] = new Array();
hintItems[0].nm = "condition";
hintItems[0][0] = new Object();
hintItems[0][0].i = 8;
hintItems[0][0].j = 6;
hintItems[0][0].itsColor = 4;
hintItems[1] = new Object();
hintItems[1].nm = "circle";
hintItems[1].i = 8;
hintItems[1].j = 6;
hintItems[2] = new Object();
hintItems[2].nm = "textBlock";
hintItems[2].x = 80;
hintItems[2].y = 215;
hintItems[2].textBlock = hint3_0;
};
discriptionb = function () {
var _local1 = new Object();
_local1.itsColor = 4;
_local1.bonus = "bomb";
_local1.block = false;
return(_local1);
};
discriptionj = function () {
var _local1 = new Object();
_local1.itsColor = 4;
_local1.bonus = false;
_local1.block = false;
return(_local1);
};
discriptiona = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "kirpich04-08-empty";
return(_local1);
};
discriptionr = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "kirpich04-08-conerl";
return(_local1);
};
discriptionf = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "kirpich04-08-conerld";
return(_local1);
};
discriptiond = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "kirpich04-08-conerrd";
return(_local1);
};
discriptione = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "kirpich04-08-conerr";
return(_local1);
};
Line1 = "................. ";
Line2 = "................. ";
Line3 = "......?????...... ";
Line4 = ".....???????..... ";
Line5 = "....??raaae??.... ";
Line6 = "...???aaaaa???... ";
Line7 = "..?????jbj?????.. ";
Line8 = "...???aaaaa???... ";
Line9 = "....??faaad??.... ";
Line10 = ".....???????..... ";
Line11 = "......?????...... ";
Line12 = "................. ";
Line13 = ".................";
Field = (((((((((((Line1 + Line2) + Line3) + Line4) + Line5) + Line6) + Line7) + Line8) + Line9) + Line10) + Line11) + Line12) + Line13;
Line1 = "................. ";
Line2 = "................. ";
Line3 = "......00000...... ";
Line4 = ".....0000000..... ";
Line5 = "....000000000.... ";
Line6 = "...00000000000... ";
Line7 = "..0000000000000.. ";
Line8 = "...00000000000... ";
Line9 = "....000000000.... ";
Line10 = ".....0000000..... ";
Line11 = "......00000...... ";
Line12 = "................. ";
Line13 = ".................";
Fills = (((((((((((Line1 + Line2) + Line3) + Line4) + Line5) + Line6) + Line7) + Line8) + Line9) + Line10) + Line11) + Line12) + Line13;
};
doLevel4 = function () {
timeInterval = 300000 /* 0x0493E0 */;
enabledColors = [0, 4, 6, 7];
disableBonuses = ["dynamite", "gun1", "lighting", "gun2"];
task = ["cell"];
levelHints = [1000];
doHint0 = function () {
hintItems = new Array();
hintItems[0] = new Array();
hintItems[0].nm = "condition";
hintItems[0][0] = new Object();
hintItems[0][0].i = 8;
hintItems[0][0].j = 8;
hintItems[0][0].itsColor = 1;
hintItems[1] = new Object();
hintItems[1].nm = "circle";
hintItems[1].i = 8;
hintItems[1].j = 8;
hintItems[2] = new Object();
hintItems[2].nm = "textBlock";
hintItems[2].x = 80;
hintItems[2].y = 185;
hintItems[2].textBlock = hint4_0;
};
Line1 = "................. ";
Line2 = "................. ";
Line3 = "...?.........?... ";
Line4 = "..???.......???.. ";
Line5 = "..?????...?????.. ";
Line6 = "..?????????????.. ";
Line7 = "...???????????... ";
Line8 = "....????11???.... ";
Line9 = ".....???1???..... ";
Line10 = "......?????...... ";
Line11 = ".......???....... ";
Line12 = "................. ";
Line13 = ".................";
Field = (((((((((((Line1 + Line2) + Line3) + Line4) + Line5) + Line6) + Line7) + Line8) + Line9) + Line10) + Line11) + Line12) + Line13;
Line1 = "................. ";
Line2 = "................. ";
Line3 = "...0.........0... ";
Line4 = "..000.......000.. ";
Line5 = "..00000...00000.. ";
Line6 = "..0001000001000.. ";
Line7 = "...00010001000... ";
Line8 = "....000000000.... ";
Line9 = ".....0001000..... ";
Line10 = "......00000...... ";
Line11 = ".......000....... ";
Line12 = "................. ";
Line13 = ".................";
Fills = (((((((((((Line1 + Line2) + Line3) + Line4) + Line5) + Line6) + Line7) + Line8) + Line9) + Line10) + Line11) + Line12) + Line13;
};
doLevel5 = function () {
timeInterval = 300000 /* 0x0493E0 */;
enabledColors = [0, 2, 4, 6];
disableBonuses = ["dynamite", "gun1", "lighting", "gun2"];
task = ["cell"];
levelHints = [];
Line1 = "................. ";
Line2 = "................. ";
Line3 = ".....???????..... ";
Line4 = "....?????????.... ";
Line5 = "....?????????.... ";
Line6 = ".....???????..... ";
Line7 = "................. ";
Line8 = "................. ";
Line9 = "................. ";
Line10 = "................. ";
Line11 = "................. ";
Line12 = "................. ";
Line13 = ".................";
Field = (((((((((((Line1 + Line2) + Line3) + Line4) + Line5) + Line6) + Line7) + Line8) + Line9) + Line10) + Line11) + Line12) + Line13;
Line1 = "................. ";
Line2 = "................. ";
Line3 = ".....0000000..... ";
Line4 = "....000000000.... ";
Line5 = "....000000000.... ";
Line6 = ".....0000000..... ";
Line7 = ".......010....... ";
Line8 = ".......111....... ";
Line9 = "......11111...... ";
Line10 = ".....1111111..... ";
Line11 = "...01111111110... ";
Line12 = "................. ";
Line13 = ".................";
Fills = (((((((((((Line1 + Line2) + Line3) + Line4) + Line5) + Line6) + Line7) + Line8) + Line9) + Line10) + Line11) + Line12) + Line13;
};
doLevel6 = function () {
timeInterval = 300000 /* 0x0493E0 */;
enabledColors = [0, 4, 1, 9];
disableBonuses = ["dynamite", "gun1", "lighting", "gun2"];
task = ["cell"];
levelHints = [];
Line1 = "................. ";
Line2 = "................. ";
Line3 = ".....0000000..... ";
Line4 = "....000000000.... ";
Line5 = "....000000000.... ";
Line6 = "....000000000.... ";
Line7 = ".....0000000..... ";
Line8 = "......00000...... ";
Line9 = "......00000...... ";
Line10 = ".....0000000..... ";
Line11 = "....000000000.... ";
Line12 = "................. ";
Line13 = ".................";
Field = (((((((((((Line1 + Line2) + Line3) + Line4) + Line5) + Line6) + Line7) + Line8) + Line9) + Line10) + Line11) + Line12) + Line13;
Line1 = "................. ";
Line2 = "................. ";
Line3 = ".....0000000..... ";
Line4 = "....000111000.... ";
Line5 = "....001111100.... ";
Line6 = "....001111100.... ";
Line7 = ".....0011100..... ";
Line8 = "......00100...... ";
Line9 = "......00100...... ";
Line10 = ".....0011100..... ";
Line11 = "....000000000.... ";
Line12 = "................. ";
Line13 = ".................";
Fills = (((((((((((Line1 + Line2) + Line3) + Line4) + Line5) + Line6) + Line7) + Line8) + Line9) + Line10) + Line11) + Line12) + Line13;
};
doLevel7 = function () {
timeInterval = 300000 /* 0x0493E0 */;
enabledColors = [0, 4, 6, 3];
disableBonuses = ["dynamite", "gun1", "lighting", "gun2"];
task = ["block"];
levelHints = [1000];
doHint0 = function () {
hintItems = new Array();
hintItems[0] = new Array();
hintItems[0].nm = "condition";
hintItems[0][0] = new Object();
hintItems[0][0].i = 7;
hintItems[0][0].j = 3;
hintItems[0][0].itsColor = 4;
hintItems[1] = new Object();
hintItems[1].nm = "circle";
hintItems[1].i = 7;
hintItems[1].j = 3;
hintItems[2] = new Object();
hintItems[2].nm = "circle";
hintItems[2].i = 6;
hintItems[2].j = 6;
hintItems[3] = new Object();
hintItems[3].nm = "circle";
hintItems[3].i = 11;
hintItems[3].j = 6;
hintItems[4] = new Object();
hintItems[4].nm = "textBlock";
hintItems[4].x = 100;
hintItems[4].y = 120;
hintItems[4].textBlock = hint9_0;
};
discriptionz = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "kirpich14";
return(_local1);
};
discriptionx = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "kirpich15";
return(_local1);
};
discriptionc = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "kirpich16";
return(_local1);
};
discriptionq = function () {
var _local1 = new Object();
_local1.itsColor = 4;
_local1.bonus = "key";
_local1.block = false;
return(_local1);
};
discriptionQ = function () {
var _local1 = new Object();
_local1.itsColor = 4;
_local1.bonus = "lock";
_local1.block = false;
return(_local1);
};
Line1 = "................. ";
Line2 = "......000..0..... ";
Line3 = ".....00000000.... ";
Line4 = "....000q440000... ";
Line5 = "....0000000000... ";
Line6 = ".....00000000.... ";
Line7 = "......Q....Q..... ";
Line8 = "................. ";
Line9 = "................. ";
Line10 = "................. ";
Line11 = "....xzxcxzcxzc... ";
Line12 = "....zxc..cz...... ";
Line13 = ".................";
Field = (((((((((((Line1 + Line2) + Line3) + Line4) + Line5) + Line6) + Line7) + Line8) + Line9) + Line10) + Line11) + Line12) + Line13;
Line1 = "................. ";
Line2 = "......000..0..... ";
Line3 = ".....00000000.... ";
Line4 = "....0000000000... ";
Line5 = "....0000000000... ";
Line6 = ".....00000000.... ";
Line7 = "......0....0..... ";
Line8 = "......000000..... ";
Line9 = "......000000..... ";
Line10 = ".....00000000.... ";
Line11 = "....0000000000... ";
Line12 = "....000..00...... ";
Line13 = ".................";
Fills = (((((((((((Line1 + Line2) + Line3) + Line4) + Line5) + Line6) + Line7) + Line8) + Line9) + Line10) + Line11) + Line12) + Line13;
};
doLevel8 = function () {
timeInterval = 300000 /* 0x0493E0 */;
enabledColors = [0, 2, 6, 4];
disableBonuses = ["dynamite", "gun1", "lighting", "gun2"];
task = ["cell"];
levelHints = [];
Line1 = "................. ";
Line2 = "................. ";
Line3 = ".....0000000..... ";
Line4 = "....000000000.... ";
Line5 = "...00000000000... ";
Line6 = "..0000000000000.. ";
Line7 = "..0000000000000.. ";
Line8 = "..0000000000000.. ";
Line9 = "...00000000000... ";
Line10 = "....000000000.... ";
Line11 = ".....0000000..... ";
Line12 = "................. ";
Line13 = ".................";
Field = (((((((((((Line1 + Line2) + Line3) + Line4) + Line5) + Line6) + Line7) + Line8) + Line9) + Line10) + Line11) + Line12) + Line13;
Line1 = "................. ";
Line2 = "................. ";
Line3 = ".....0000000..... ";
Line4 = "....000000000.... ";
Line5 = "...00000000000... ";
Line6 = "..0001110000000.. ";
Line7 = "..0011111000010.. ";
Line8 = "..0011111000100.. ";
Line9 = "...01111111110... ";
Line10 = "....001111100.... ";
Line11 = ".....0000000..... ";
Line12 = "................ ";
Line13 = ".................";
Fills = (((((((((((Line1 + Line2) + Line3) + Line4) + Line5) + Line6) + Line7) + Line8) + Line9) + Line10) + Line11) + Line12) + Line13;
};
doLevel9 = function () {
timeInterval = 600000 /* 0x0927C0 */;
enabledColors = [0, 1, 6, 7, 2, 5];
disableBonuses = ["dynamite", "gun1", "lighting", "gun2"];
task = ["jewel", 300];
levelHints = [1000];
doHint0 = function () {
hintItems = new Array();
hintItems[0] = new Object();
hintItems[0].nm = "textBlock";
hintItems[0].x = 50;
hintItems[0].y = 160;
hintItems[0].textBlock = hint10_0;
};
Line1 = "................. ";
Line2 = "................. ";
Line3 = "........?........ ";
Line4 = "...?.?.??.?...... ";
Line5 = "..??.???????.?... ";
Line6 = "..?????????????.. ";
Line7 = "..?????????????.. ";
Line8 = "..?????????????.. ";
Line9 = "..?????????????.. ";
Line10 = "..?????????????.. ";
Line11 = "..?????????????.. ";
Line12 = "................. ";
Line13 = ".................";
Field = (((((((((((Line1 + Line2) + Line3) + Line4) + Line5) + Line6) + Line7) + Line8) + Line9) + Line10) + Line11) + Line12) + Line13;
Line1 = "................. ";
Line2 = "................. ";
Line3 = "........0........ ";
Line4 = "...0.0.00.0...... ";
Line5 = "..00.0000000.0... ";
Line6 = "..0000000000000.. ";
Line7 = "..0000000000000.. ";
Line8 = "..0000000000000.. ";
Line9 = "..0000000000000.. ";
Line10 = "..0000000000000.. ";
Line11 = "..0000000000000.. ";
Line12 = "................. ";
Line13 = ".................";
Fills = (((((((((((Line1 + Line2) + Line3) + Line4) + Line5) + Line6) + Line7) + Line8) + Line9) + Line10) + Line11) + Line12) + Line13;
};
doLevel10 = function () {
timeInterval = 400000 /* 0x061A80 */;
enabledColors = [0, 1, 2, 4, 7];
disableBonuses = ["gun1", "lighting", "gun2"];
task = ["block"];
levelHints = [1000];
doHint0 = function () {
hintItems = new Array();
hintItems[0] = new Array();
hintItems[0].nm = "condition";
hintItems[0][0] = new Object();
hintItems[0][0].i = 8;
hintItems[0][0].j = 5;
hintItems[0][0].itsColor = 4;
hintItems[1] = new Object();
hintItems[1].nm = "circle";
hintItems[1].i = 8;
hintItems[1].j = 5;
hintItems[2] = new Object();
hintItems[2].nm = "textBlock";
hintItems[2].x = 80;
hintItems[2].y = 185;
hintItems[2].textBlock = hint11_0;
};
discriptiond = function () {
var _local1 = new Object();
_local1.itsColor = 4;
_local1.bonus = "dynamite";
_local1.block = false;
return(_local1);
};
discriptionb = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "stones-sq2";
return(_local1);
};
discriptionn = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "stones-sq3";
return(_local1);
};
discriptionv = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "stones-sq1";
return(_local1);
};
discriptionl = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "lava-sq2";
return(_local1);
};
discriptionk = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "lava-sq1";
return(_local1);
};
discriptionj = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "lava-sq3";
return(_local1);
};
Line1 = "................. ";
Line2 = "................. ";
Line3 = "..0000000000000.. ";
Line4 = "..0000000000000.. ";
Line5 = "..0000000000000.. ";
Line6 = "..00d004d400d00.. ";
Line7 = "..bvvbbbvbvbvb... ";
Line8 = "..nbvbnvnvnnbn... ";
Line9 = "...lkkljkljlklk.. ";
Line10 = "...ljlkl..lkjlj.. ";
Line11 = "....kll....lkj... ";
Line12 = "................. ";
Line13 = ".................";
Field = (((((((((((Line1 + Line2) + Line3) + Line4) + Line5) + Line6) + Line7) + Line8) + Line9) + Line10) + Line11) + Line12) + Line13;
Line1 = "................. ";
Line2 = "................. ";
Line3 = "..0000000000000.. ";
Line4 = "..0000000000000.. ";
Line5 = "..0000000000000.. ";
Line6 = "..0000000000000.. ";
Line7 = "..000000000000... ";
Line8 = "..000000000000... ";
Line9 = "...000000000000.. ";
Line10 = "...00000..00000.. ";
Line11 = "....000....000... ";
Line12 = "................. ";
Line13 = ".................";
Fills = (((((((((((Line1 + Line2) + Line3) + Line4) + Line5) + Line6) + Line7) + Line8) + Line9) + Line10) + Line11) + Line12) + Line13;
};
doLevel11 = function () {
timeInterval = 500000 /* 0x07A120 */;
enabledColors = [0, 1, 9, 6, 7];
disableBonuses = ["lighting", "gun2"];
task = ["cell"];
levelHints = [1000];
doHint0 = function () {
hintItems = new Array();
hintItems[0] = new Array();
hintItems[0].nm = "condition";
hintItems[0][0] = new Object();
hintItems[0][0].i = 8;
hintItems[0][0].j = 6;
hintItems[0][0].itsColor = 6;
hintItems[1] = new Object();
hintItems[1].nm = "circle";
hintItems[1].i = 8;
hintItems[1].j = 6;
hintItems[2] = new Object();
hintItems[2].nm = "textBlock";
hintItems[2].x = 80;
hintItems[2].y = 215;
hintItems[2].textBlock = hint12_0;
};
discriptionh = function () {
var _local1 = new Object();
_local1.itsColor = 6;
_local1.block = false;
_local1.bonus = "gun1";
return(_local1);
};
discriptionj = function () {
var _local1 = new Object();
_local1.itsColor = 6;
_local1.bonus = false;
_local1.block = false;
return(_local1);
};
Line1 = "................. ";
Line2 = "................. ";
Line3 = "...00000000000... ";
Line4 = "..0000000000000.. ";
Line5 = "..00h0000000000.. ";
Line6 = "..000000j000000.. ";
Line7 = "..000000h000000.. ";
Line8 = "..000000j000000.. ";
Line9 = "..0000000000h00.. ";
Line10 = "..0000000000000.. ";
Line11 = "...00000000000... ";
Line12 = "................. ";
Line13 = ".................";
Field = (((((((((((Line1 + Line2) + Line3) + Line4) + Line5) + Line6) + Line7) + Line8) + Line9) + Line10) + Line11) + Line12) + Line13;
Line1 = "................. ";
Line2 = "................. ";
Line3 = "...00000200000... ";
Line4 = "..0000002000000.. ";
Line5 = "..0000022200000.. ";
Line6 = "..0200022200020.. ";
Line7 = "..0220022200220.. ";
Line8 = "..0022022202200.. ";
Line9 = "..0022222222200.. ";
Line10 = "..0002222222000.. ";
Line11 = "...00002220000... ";
Line12 = "................. ";
Line13 = ".................";
Fills = (((((((((((Line1 + Line2) + Line3) + Line4) + Line5) + Line6) + Line7) + Line8) + Line9) + Line10) + Line11) + Line12) + Line13;
};
doLevel12 = function () {
timeInterval = 400000 /* 0x061A80 */;
enabledColors = [0, 1, 4, 6, 7];
disableBonuses = ["gun2"];
task = ["block"];
levelHints = [1000];
doHint0 = function () {
hintItems = new Array();
hintItems[0] = new Array();
hintItems[0].nm = "condition";
hintItems[0][0] = new Object();
hintItems[0][0].i = 8;
hintItems[0][0].j = 3;
hintItems[0][0].itsColor = 4;
hintItems[1] = new Object();
hintItems[1].nm = "circle";
hintItems[1].i = 8;
hintItems[1].j = 3;
hintItems[2] = new Object();
hintItems[2].nm = "textBlock";
hintItems[2].x = 40;
hintItems[2].y = 135;
hintItems[2].textBlock = hint13_0;
};
discriptionb = function () {
var _local1 = new Object();
_local1.block = "green-body01";
_local1.bonus = false;
_local1.lock = true;
return(_local1);
};
discriptionj = function () {
var _local1 = new Object();
_local1.block = "green-corner01r";
_local1.bonus = false;
_local1.lock = true;
return(_local1);
};
discriptionk = function () {
var _local1 = new Object();
_local1.block = "green-corner01ld";
_local1.bonus = false;
_local1.lock = true;
return(_local1);
};
discriptionh = function () {
var _local1 = new Object();
_local1.block = "green-head01";
_local1.bonus = false;
_local1.lock = true;
return(_local1);
};
discriptiony = function () {
var _local1 = new Object();
_local1.block = "green-horns01";
_local1.bonus = false;
_local1.lock = true;
return(_local1);
};
discriptionl = function () {
var _local1 = new Object();
_local1.block = "green-leg03";
_local1.bonus = false;
_local1.lock = true;
return(_local1);
};
discriptiong = function () {
var _local1 = new Object();
_local1.block = "green-tail";
_local1.bonus = false;
_local1.lock = true;
return(_local1);
};
discriptionB = function () {
var _local1 = new Object();
_local1.block = "kirpich13";
_local1.bonus = false;
_local1.lock = true;
return(_local1);
};
discriptionV = function () {
var _local1 = new Object();
_local1.block = "kirpich13-16-conerl";
_local1.bonus = false;
_local1.lock = true;
return(_local1);
};
discriptionN = function () {
var _local1 = new Object();
_local1.block = "kirpich13-16-conerr";
_local1.bonus = false;
_local1.lock = true;
return(_local1);
};
discriptionZ = function () {
var _local1 = new Object();
_local1.block = "kirpich14";
_local1.bonus = false;
_local1.lock = true;
return(_local1);
};
discriptionX = function () {
var _local1 = new Object();
_local1.block = "kirpich16";
_local1.bonus = false;
_local1.lock = true;
return(_local1);
};
discriptionL = function () {
var _local1 = new Object();
_local1.itsColor = 4;
_local1.block = false;
_local1.bonus = "flash";
return(_local1);
};
Line1 = "................. ";
Line2 = "................. ";
Line3 = "...00000440000... ";
Line4 = "..000004L400000.. ";
Line5 = "..00000yyyy0000.. ";
Line6 = "..000hbbbbbj000.. ";
Line7 = "..0000kbbbbbg00.. ";
Line8 = "..00000l00l0000.. ";
Line9 = "..000LVBBBBNL00.. ";
Line10 = "..000VBZBXBBN00.. ";
Line11 = "...0VBZBBZBXBN... ";
Line12 = "................. ";
Line13 = ".................";
Field = (((((((((((Line1 + Line2) + Line3) + Line4) + Line5) + Line6) + Line7) + Line8) + Line9) + Line10) + Line11) + Line12) + Line13;
Line1 = "................. ";
Line2 = "................. ";
Line3 = "...00000000000... ";
Line4 = "..0000000000000.. ";
Line5 = "..0000000000000.. ";
Line6 = "..0000000000000.. ";
Line7 = "..0000000000000.. ";
Line8 = "..0000000000000.. ";
Line9 = "..0000000000000.. ";
Line10 = "..0000000000000.. ";
Line11 = "...00000000000... ";
Line12 = "................. ";
Line13 = ".................";
Fills = (((((((((((Line1 + Line2) + Line3) + Line4) + Line5) + Line6) + Line7) + Line8) + Line9) + Line10) + Line11) + Line12) + Line13;
};
doLevel13 = function () {
timeInterval = 500000 /* 0x07A120 */;
enabledColors = [0, 9, 2, 6, 7];
disableBonuses = [];
task = ["cell"];
levelHints = [1000];
doHint0 = function () {
hintItems = new Array();
hintItems[0] = new Array();
hintItems[0].nm = "condition";
hintItems[0][0] = new Object();
hintItems[0][0].i = 8;
hintItems[0][0].j = 9;
hintItems[0][0].itsColor = 1;
hintItems[1] = new Object();
hintItems[1].nm = "circle";
hintItems[1].i = 8;
hintItems[1].j = 9;
hintItems[2] = new Object();
hintItems[2].nm = "textBlock";
hintItems[2].x = 80;
hintItems[2].y = 215;
hintItems[2].textBlock = hint14_0;
};
discriptionl = function () {
var _local1 = new Object();
_local1.itsColor = 1;
_local1.block = false;
_local1.bonus = "gun2";
return(_local1);
};
Line1 = "................. ";
Line2 = "................. ";
Line3 = ".......000....... ";
Line4 = "......00000...... ";
Line5 = ".....0000000..... ";
Line6 = "....000000000.... ";
Line7 = "...00000000000... ";
Line8 = "...00000000000... ";
Line9 = "..0000000000000.. ";
Line10 = "..000001l100000.. ";
Line11 = ".......000....... ";
Line12 = "................. ";
Line13 = ".................";
Field = (((((((((((Line1 + Line2) + Line3) + Line4) + Line5) + Line6) + Line7) + Line8) + Line9) + Line10) + Line11) + Line12) + Line13;
Line1 = "................. ";
Line2 = "................. ";
Line3 = ".......010....... ";
Line4 = "......00200...... ";
Line5 = ".....0022200..... ";
Line6 = "....002222200.... ";
Line7 = "...00222222200... ";
Line8 = "...02222222220... ";
Line9 = "..0022222222200.. ";
Line10 = "..1222222222221.. ";
Line11 = ".......000....... ";
Line12 = "................. ";
Line13 = ".................";
Fills = (((((((((((Line1 + Line2) + Line3) + Line4) + Line5) + Line6) + Line7) + Line8) + Line9) + Line10) + Line11) + Line12) + Line13;
};
var numberOfLevel = 1;
var levelsNumber = 13;
var numofPause = 1;
var thisObj = this;
var elementSize = 32;
(SCORE_BREAK_IRON = 4);
(SCORE_BREAK_WOOD = 3);
(SCORE_EXPLODE_BOMB = 5);
(SCORE_EXPLODE_DYNAMITE = 6);
(SCORE_SHOOT_CANNON_HORIZONTAL = 12);
(SCORE_SHOOT_CANNON_VERTICAL = 15);
(SCORE_SHOOT_CANNON_TOTAL = 25);
(SCORE_USE_KEY = 10);
(SCORE_EXPLODE_BLOCK = 2);
(gameClass = function (level) {
this.numberOfLevel = level;
this.lastHintNumber = 0;
this.hintTime = 500;
this.points = 0;
this.paused = false;
this.hintOn = false;
this.uptimer = 0;
this.finished = false;
this.rezult = false;
this.finishedTimer = 0;
this.noMovesTimer = 0;
this.doNothingTimer = 0;
this.changeInterval = 0;
this.started = false;
});
gameClass.prototype.begin = function () {
_root.doLevel0();
_root["doLevel" + this.numberOfLevel]();
if (numberOfGame > 0) {
disableBonuses = [];
}
if (numberOfGame == 1) {
enabledColors = [0, 1, 2, 4, 6];
}
if (numberOfGame == 2) {
enabledColors = [0, 1, 2, 4, 6, 7];
}
if (numberOfGame == 3) {
enabledColors = [0, 1, 2, 4, 6, 7, 3];
}
if (numberOfGame == 4) {
enabledColors = [0, 1, 2, 3, 4, 5, 6, 7];
}
if (numberOfGame == 5) {
enabledColors = [0, 1, 2, 3, 4, 5, 6, 7, 8];
}
if (numberOfGame > 5) {
enabledColors = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9];
}
this.gameField = new gameFieldClass(Fills, Field, enabledColors, disableBonuses, task);
this.gameField.build();
progr.taskicon.gotoAndPlay(task[0]);
};
gameClass.prototype.beginPlay = function () {
this.started = true;
_root.levelNum.gotoAndPlay("del");
this.timer = new timerClass();
};
gameClass.prototype.update = function () {
this.uptimer++;
var _local3 = this.gameField;
if (this.uptimer == 3) {
if (_local3.removeGameItems()) {
if (this.doNothingTimer < 100) {
this.doNothingTimer = 0;
} else if (!this.paused) {
this.doNothingTimer++;
}
} else if (!this.paused) {
this.doNothingTimer++;
}
_local3.removeCells();
this.uptimer = 0;
if (_local3.WillExplose.length && (!this.paused)) {
_local3.ExploseCells();
}
if (!this.throughOut) {
_local3.formateAddGameItems();
_local3.makeNew();
}
if (_local3.WeaponItems.length) {
_local3.weaponsmoving = true;
} else {
_local3.weaponsmoving = false;
_local3.clearWillRemoves();
}
if (_local3.noMoves() && (!_local3.MoveItems.length)) {
if (!this.noMovesTimer) {
_local3.hintArrowsItem.gotoAndPlay("del");
this.doNothingTimer = 0;
}
this.noMovesTimer++;
} else {
this.noMovesTimer = 0;
}
}
if ((this.noMovesTimer > 50) && (this.noMovesTimer < 80)) {
_local3.shake();
_root.nomoves.gotoAndPlay("simple");
}
if (this.noMovesTimer == 80) {
_local3.changeJewels();
this.noMovesTimer = 0;
}
if (!this.paused) {
_local3.sortGameItems();
_local3.motion();
}
if (_root.hintsEnabled) {
if (((this.timer.getTotalTime() >= levelHints[this.lastHintNumber]) && (levelHints[this.lastHintNumber] != undefined)) && (!this.finished)) {
_root["doHint" + this.lastHintNumber]();
this.lastHintNumber++;
if (numberOfLevel == 1) {
var _local4 = _local3.putHint1(hintItems);
} else {
var _local4 = _local3.putHint(hintItems);
}
if (_local4) {
this.hintOn = true;
this.paused = true;
this.timer.setPauseInterval(this.hintTime);
this.timer.stopIt();
}
}
}
if (_local3.isFinish() && (!this.finished)) {
this.finished = true;
this.rezult = true;
_root.playSound("levelup");
_root.win._visible = true;
_local3.makeItDisable();
}
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.paused = this.timer.isPause() || (this.timer.isPauseInterval());
if ((!this.paused) && (!this.finished)) {
clock.updateClock(this.timer.getTotalTime(), timeInterval);
}
if (this.doNothingTimer == 100) {
_local3.giveHint = true;
_local3.blickCells();
}
if (this.doNothingTimer >= 140) {
this.doNothingTimer = 0;
_local3.hintArrowsItem.gotoAndPlay("del");
}
};
gameClass.prototype.finish = function (rezult) {
_root.playMusic("menumusic");
Mouse.hide();
cursor._visible = true;
if (rezult) {
_root.score = _root.score + this.points;
if (_root.numberOfLevel < _root.levelsNumber) {
_root.numberOfLevel++;
_root.gotoAndPlay("levelpause" + _root.numofPause);
} else {
_root.gotoAndPlay("complete");
}
if (_root.numofPause == _root.NofPause) {
_root.numofPause = 0;
}
_root.numofPause++;
} 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, myDisableBonuses, myTask) {
this.SFields = mySFields;
this.SFills = mySFills;
this.enabledColors = myEnabledColors;
this.disableBomb = false;
this.disableGun1 = false;
this.disableGun2 = false;
this.disableDynamite = false;
this.disableFlash = false;
if (myDisableBonuses.length != undefined) {
var _local2 = 0;
while (_local2 <= (myDisableBonuses.length - 1)) {
switch (myDisableBonuses[_local2]) {
case "bomb" :
this.disableBomb = true;
break;
case "gun1" :
this.disableGun1 = true;
break;
case "gun2" :
this.disableGun2 = true;
break;
case "lighting" :
this.disableFlash = true;
break;
case "dynamite" :
this.disableDynamite = true;
}
_local2++;
}
}
this.task = myTask;
this.Field = new Array();
this.Fills = new Array();
this.graph = new Array();
this.Types = new Array();
this.GameItems = new Array();
this.WillExplose = 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.graphToRemove = new Array();
this.ActiveGraph = new Array();
this.selectItem = null;
this.widthOfWindow = 460;
this.heightOfWindow = 380;
this.numberOfItems = 0;
this.numberOfCircles = 0;
this.flamesNumber = 0;
this.cellsNumber = 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.giveHint = false;
this.numHA = 0;
this.hintArrowsItem = null;
};
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.Specials[i] = new Array();
this.RemovedGuns[i] = new Array();
this.AddGameItems[i] = 0;
this.FallingItems[i] = new Array();
this.FallingInField[i] = 0;
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)) {
this.setCorners(i, j);
j++;
}
i++;
}
var i = (this.Field[0].length - 2);
while (i >= 0) {
var j = (this.Field.length - 2);
while (j >= 0) {
if (this.Field[j][i] != ".") {
thisObj.bg.createEmptyMovieClip("elementOfGF" + this.cellsNumber, thisObj.bg.getNextHighestDepth());
myitem = eval ("bg.elementOfGF" + this.cellsNumber);
myitem._x = this.getX(j);
myitem._y = this.getY(i);
this.cellsNumber++;
elementOfGF = new elementOfGameFieldClass();
if (this.Field[j][i] > 0) {
this.fillsTotal++;
}
elementOfGF.setIt(j, i, myitem, this.Field[j][i], this);
if (this.Cells[j] == undefined) {
this.Cells[j] = new Array();
}
this.Cells[j][i] = elementOfGF;
}
j--;
}
i--;
}
var j = (this.Field[0].length - 2);
while (j >= 0) {
var i = (this.Field.length - 2);
while (i >= 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);
}
}
i--;
}
j--;
}
var j = (this.Field[0].length - 2);
while (j >= 0) {
var i = (this.Field.length - 2);
while (i >= 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);
}
}
i--;
}
j--;
}
};
gameFieldClass.prototype.setItemBorder = function (ii, jj, dir, rot) {
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);
if (rot) {
myitem._rotation = myitem._rotation + rot;
}
};
gameFieldClass.prototype.setBorders = function (i, j) {
var _local4;
if (((this.Field[i][j] == ".") && (this.Field[i + 1][j] != ".")) && (this.Field[i + 1][j] != undefined)) {
this.setItemBorder(i + 1, j, "border-left");
}
if (((this.Field[i][j] == ".") && (this.Field[i][j + 1] != ".")) && (this.Field[i][j + 1] != undefined)) {
this.setItemBorder(i, j + 1, "border-up");
}
if (((this.Field[i][j] != ".") && (this.Field[i + 1][j] == ".")) && (this.Field[i][j] != undefined)) {
this.setItemBorder(i + 1, j, "border-right");
}
if (((this.Field[i][j] != ".") && (this.Field[i][j + 1] == ".")) && (this.Field[i][j] != undefined)) {
this.setItemBorder(i, j + 1, "border-bottom");
}
};
gameFieldClass.prototype.setCorners = function (i, j) {
var _local4 = false;
var _local6 = false;
var _local5 = false;
var _local7 = false;
if (this.Field[i][j] == ".") {
if (this.Field[i + 1][j] != ".") {
_local4 = true;
}
if (this.Field[i - 1][j] != ".") {
_local6 = true;
}
if (this.Field[i][j + 1] != ".") {
_local7 = true;
}
if (this.Field[i][j - 1] != ".") {
_local5 = true;
}
if (_local6 && (_local5)) {
this.setItemBorder(i, j, "cornerrightdown", 180);
}
if (_local4 && (_local5)) {
this.setItemBorder(i + 1, j, "cornerleftdown", 180);
}
if (_local6 && (_local7)) {
this.setItemBorder(i, j + 1, "cornerrightup", 180);
}
if (_local4 && (_local7)) {
this.setItemBorder(i + 1, j + 1, "cornerleftup", 180);
}
}
if (this.Field[i][j] != ".") {
if (this.Field[i + 1][j] == ".") {
_local4 = true;
}
if (this.Field[i - 1][j] == ".") {
_local6 = true;
}
if (this.Field[i][j + 1] == ".") {
_local7 = true;
}
if (this.Field[i][j - 1] == ".") {
_local5 = true;
}
if (_local6 && (_local5)) {
this.setItemBorder(i, j, "cornerleftup", 0);
}
if (_local4 && (_local5)) {
this.setItemBorder(i + 1, j, "cornerrightup", 0);
}
if (_local6 && (_local7)) {
this.setItemBorder(i, j + 1, "cornerleftdown", 0);
}
if (_local4 && (_local7)) {
this.setItemBorder(i + 1, j + 1, "cornerrightdown", 0);
}
}
};
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");
}
}
if (this.Field[i][j] != ".") {
remnant = ((i + j) % 2) + 1;
this.setItemBorder(i, j, "cell" + remnant);
}
};
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 "jewel" :
if (this.jewelsRemoved < this.task[1]) {
_local2 = false;
}
progr.update(this.jewelsRemoved, this.task[1]);
}
return(_local2);
};
gameFieldClass.prototype.mayRemove = function (i, j, putHint) {
var _local6 = false;
var _local2 = this.Cells;
var _local5 = _local2[i][j].jewel.itsColor;
if ((_local2[i + 1][j].jewel.itsColor == _local5) && (((_local2[i + 1][j - 1].jewel.itsColor == _local5) || (_local2[i + 1][j + 1].jewel.itsColor == _local5)) || (_local2[i + 2][j].jewel.itsColor == _local5))) {
_local6 = true;
}
if ((_local2[i][j + 1].jewel.itsColor == _local5) && (((_local2[i + 1][j + 1].jewel.itsColor == _local5) || (_local2[i][j + 2].jewel.itsColor == _local5)) || (_local2[i + 1][j].jewel.itsColor == _local5))) {
_local6 = true;
}
if (_local6 && (this.giveHint)) {
this.giveHint = false;
this.hintArrowsItem = this.putHintCircle(i, j);
}
return(_local6);
};
gameFieldClass.prototype.noMoves = function () {
var _local5 = false;
var _local4 = 0;
var _local3 = 0;
var _local7 = this.Field;
var _local6 = this.Cells;
var _local8 = this.Field.length;
var _local2;
do {
_local4++;
_local3 = 0;
filength = _local7[_local4].length;
do {
_local3++;
_local2 = _local6[_local4][_local3];
if (((_local2 && (_local2.jewel.itsColor)) && (!_local2.jewel.itsBlock)) && (!_local2.jewel.lock)) {
_local5 = this.mayRemove(_local4, _local3);
}
} while ((_local3 < filength) && (!_local5));
} while ((_local4 < _local8) && (!_local5));
return(!_local5);
};
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.makeItDisable = function () {
var _local3 = this.Field.length - 1;
while (_local3 >= 0) {
var _local2 = this.Field[_local3].length - 1;
while (_local2 >= 0) {
if (this.Cells[_local3][_local2]) {
this.Cells[_local3][_local2].isSelected(false);
}
_local2--;
}
_local3--;
}
};
gameFieldClass.prototype.blickCells = function () {
if (((-this.fillsRemoved) + this.fillsTotal) < 10) {
var _local3 = this.Field.length - 1;
while (_local3 >= 0) {
var _local2 = this.Field[_local3].length - 1;
while (_local2 >= 0) {
if (this.Cells[_local3][_local2].fill) {
this.Cells[_local3][_local2].blick();
}
_local2--;
}
_local3--;
}
}
};
gameFieldClass.prototype.ExploseCells = function () {
var _local2 = 0;
do {
this.WillExplose[_local2] = this.WillExplose[_local2].removeContent();
if (!this.WillExplose[_local2]) {
this.WillExplose.splice(_local2, 1);
} else {
_local2++;
}
} while (_local2 < this.WillExplose.length);
};
gameFieldClass.prototype.removeGraph = function (i, j) {
var _local4 = this.graphToRemove;
var _local2 = 1;
var _local6 = _local4.length;
var _local5 = this.Cells;
var _local8 = _local5[_local4[1].i][_local4[1].j].jewel.itsColor;
do {
var _local3 = _local5[_local4[_local2].i][_local4[_local2].j];
if (_local2 < (_local6 - 1)) {
_local3.setNextCell(_local5[_local4[_local2 + 1].i][_local4[_local2 + 1].j]);
}
if (_local2 > 1) {
_local3.setPrevCell(_local5[_local4[_local2 - 1].i][_local4[_local2 - 1].j]);
}
_local3.isSelected(false);
_local3.jewel.willRemove = true;
_local3.jewel.corelationEnable = false;
_local3.jewel.lock = true;
_local2++;
} while (_local2 < _local6);
_local3 = _local5[_local4[1].i][_local4[1].j];
this.WillExplose.push(_local3);
_local3.willExplose = true;
var _local7 = false;
if ((_local4.N >= 5) && (!this.disableBomb)) {
_local7 = "bomb";
}
if ((_local4.N >= 7) && (!this.disableDynamite)) {
_local7 = "dynamite";
}
if ((_local4.N >= 9) && (!this.disableGun1)) {
_local7 = "gun1";
}
if ((_local4.N >= 10) && (!this.disableFlash)) {
_local7 = "flash";
}
if ((_local4.N >= 11) && (!this.disableGun2)) {
_local7 = "gun2";
}
if (_local7) {
this.setJewelBonus(_local7, _local4[1].i, _local8);
}
this.giveBonus(_local4.N, i, j);
};
gameFieldClass.prototype.pressCell = function (cell) {
var _local3 = cell.i;
var _local2 = cell.j;
this.graphToRemove = this.buildGraph(_local3, _local2);
if (this.graphToRemove.length > 3) {
this.removeGraph(_local3, _local2);
}
};
gameFieldClass.prototype.activateCell = function (cell) {
var _local7 = cell.i;
var _local6 = cell.j;
if (cell.inActiveGraph) {
return(undefined);
}
if (game.paused) {
return(undefined);
}
var _local2 = 1;
var _local3 = this.ActiveGraph;
if (_local3.length) {
do {
var _local4 = this.Cells[_local3[_local2].i][_local3[_local2].j];
_local4.inActiveGraph = false;
_local2++;
} while (_local2 < _local3.length);
}
_local3 = this.buildGraph(_local7, _local6);
_local2 = 1;
do {
var _local4 = this.Cells[_local3[_local2].i][_local3[_local2].j];
_local4.jewel.activate();
_local4.inActiveGraph = true;
_local2++;
} while (_local2 < _local3.length);
this.ActiveGraph = _local3;
};
gameFieldClass.prototype.buildGraph = function (i, j) {
var _local6 = 1;
while (_local6 < (this.Field.length - 1)) {
var _local5 = 1;
while (_local5 < (this.Field[_local6].length - 1)) {
var _local4 = new Object();
_local4.c = this.Cells[_local6][_local5].jewel.itsColor;
_local4.b = this.Cells[_local6][_local5].jewel.blockType;
_local4.ingraph = false;
this.graph[_local6][_local5] = _local4;
_local5++;
}
_local6++;
}
var _local7 = new Array();
_local6 = 1;
var _local5 = 1;
var _local10 = 1;
var _local3;
var _local2;
var _local4 = new Object();
_local4.i = i;
_local4.j = j;
_local4.n = 0;
_local7[1] = _local4;
this.graph[i][j].ingraph = true;
if (this.Cells[i][j].jewel.corelationEnable) {
do {
_local3 = _local7[_local5].i;
_local2 = _local7[_local5].j;
if (!this.graph[_local3][_local2].b) {
if (this.Cells[_local3 + 1][_local2].jewel.corelationEnable && (!this.graph[_local3 + 1][_local2].ingraph)) {
if ((this.graph[_local3 + 1][_local2].c == this.graph[i][j].c) || (this.graph[_local3 + 1][_local2].b)) {
_local6++;
_local4 = new Object();
_local4.i = _local3 + 1;
_local4.j = _local2;
_local4.n = _local5;
_local7[_local6] = _local4;
this.graph[_local3 + 1][_local2].ingraph = true;
}
}
if (this.Cells[_local3][_local2 + 1].jewel.corelationEnable && (!this.graph[_local3][_local2 + 1].ingraph)) {
if ((this.graph[_local3][_local2 + 1].c == this.graph[i][j].c) || (this.graph[_local3][_local2 + 1].b)) {
_local6++;
_local4 = new Object();
_local4.i = _local3;
_local4.j = _local2 + 1;
_local4.n = _local5;
_local7[_local6] = _local4;
this.graph[_local3][_local2 + 1].ingraph = true;
}
}
if (this.Cells[_local3][_local2 - 1].jewel.corelationEnable && (!this.graph[_local3][_local2 - 1].ingraph)) {
if ((this.graph[_local3][_local2 - 1].c == this.graph[i][j].c) || (this.graph[_local3][_local2 - 1].b)) {
_local6++;
_local4 = new Object();
_local4.i = _local3;
_local4.j = _local2 - 1;
_local4.n = _local5;
_local7[_local6] = _local4;
this.graph[_local3][_local2 - 1].ingraph = true;
}
}
if (this.Cells[_local3 - 1][_local2].jewel.corelationEnable && (!this.graph[_local3 - 1][_local2].ingraph)) {
if ((this.graph[_local3 - 1][_local2].c == this.graph[i][j].c) || (this.graph[_local3 - 1][_local2].b)) {
_local6++;
_local4 = new Object();
_local4.i = _local3 - 1;
_local4.j = _local2;
_local4.n = _local5;
_local7[_local6] = _local4;
this.graph[_local3 - 1][_local2].ingraph = true;
}
}
_local10++;
}
_local5++;
} while (_local5 <= (_local7.length - 1));
}
_local7.N = _local10 - 1;
if ((_local10 - 1) < 3) {
_local7 = [];
}
return(_local7);
};
gameFieldClass.prototype.removeHint = function (hint) {
var _local2 = 0;
while (_local2 <= (this.hintItems.length - 1)) {
this.hintItems[_local2].gotoAndPlay("del");
_local2++;
}
};
gameFieldClass.prototype.putHint1 = function (hint) {
var _local3;
this.hintItems = new Array();
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 "arrows" :
if (this.hintItems.condition) {
_local3 = this.putHintArrows(_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 = new Array();
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 "arrows" :
_local3 = this.putHintArrows(_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;
do {
var _local2 = new Object();
_local2 = condition[_local3];
if (this.Cells[_local2.i][_local2.j].jewel.itsColor != _local2.itsColor) {
_local4 = false;
}
_local3++;
} while (_local4 && (_local3 < _local5));
return(_local4);
};
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.putHintArrows = function (i1, j1, i2, j2) {
var myitem;
this.numHA++;
thisObj.bonuses.attachMovie("hint-arrows", "hintarrows" + this.numHA, thisObj.bonuses.getNextHighestDepth());
myitem = eval ("bonuses.hintarrows" + this.numHA);
if (i1 != i2) {
myitem._rotation = 90;
myitem._x = ((this.getX(i1) + this.getX(i2)) / 2) + (elementSize / 2);
} else {
myitem._x = this.getX(i1) + (elementSize / 2);
}
if (j1 != j2) {
myitem._y = ((this.getY(j1) + this.getY(j2)) / 2) + (elementSize / 2);
} else {
myitem._y = this.getY(j1) + (elementSize / 2);
}
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;
}
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);
};
gameFieldClass.prototype.setJewelBonus = function (nm, i, color) {
var _local2 = new Object();
_local2.nm = nm;
_local2.i = i;
_local2.c = color;
this.Specials[i].push(_local2);
};
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 _local13;
var _local10;
var _local6;
var _local11;
var _local7;
var _local5;
var _local9;
var _local16;
var _local4;
var _local12 = this.AddGameItems;
var _local8 = this.Specials;
var _local15 = this.Field;
var _local3 = this.FallingItems;
var _local14 = _local15.length - 2;
var _local2 = 1;
while (_local2 <= _local14) {
_local13 = _local12[_local2];
_local10 = _local8[_local2].length;
_local4 = 0;
do {
if (!_local3[_local2][_local4].falling) {
_local3[_local2].splice(_local4, 1);
} else {
_local4++;
}
} while (_local4 < _local3[_local2].length);
_local4 = 1;
while (_local4 <= _local13) {
_local12[_local2]--;
if (_local10) {
_local10--;
_local6 = this.addGameItem(_local8[_local2][0].c, _local8[_local2][0].nm, false);
_local8[_local2].splice(0, 1);
} else {
_local6 = this.addGameItem("?", false, false);
}
_local11 = this.getX(_local2) + (elementSize / 2);
_local7 = this.getY(1) + (elementSize * ((0.5 - _local4) - 2));
filength = _local3[_local2].length;
if (filength) {
_local5 = _local3[_local2][filength - 1].getY();
_local9 = this.getJ(_local5);
if (_local9 < 0) {
_local7 = _local5 - elementSize;
} else {
_local7 = _local5 - (elementSize * (_local9 + 2));
}
}
_local6.setXY(_local11, _local7);
_local3[_local2][_local3[_local2].length] = _local6;
_local4++;
}
_local2++;
}
};
gameFieldClass.prototype.addGameItemWhenChange = function (i, j) {
var _local2 = this.addGameItem("?", false, false);
var _local5 = this.getX(i) + (elementSize / 2);
var _local4 = this.getY(1) + (elementSize * ((0.5 + j) - 15));
_local2.setXY(_local5, _local4);
this.FallingItems[i][this.FallingItems[i].length] = _local2;
};
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.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 _local3;
var _local7;
var _local8;
var _local12;
var _local9;
var _local11;
var _local4 = this.GameItems;
var _local6 = this.Cells;
do {
if (_local4[_local2].removed) {
_local5 = true;
_local3 = _local4[_local2];
_local7 = this.setFreeUps(_local3.i, _local3.j);
_local6[_local3.i][_local3.j].setFree();
if (!_local3.throughOut) {
this.jewelsRemoved++;
}
delete _local4[_local2];
_local4.splice(_local2, 1);
_local2--;
}
_local2++;
} while (_local2 < _local4.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) || (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.removeCells = function () {
var _local3 = this.RemovedCells;
var _local5 = _local3.length;
var _local2 = 0;
var _local4 = 0;
do {
_local4++;
if (!_local3[_local2].willExplose) {
_local3[_local2].removeContent();
_local3.splice(_local2, 1);
} else {
_local2++;
}
} while (_local4 < _local5);
};
gameFieldClass.prototype.prepareForRemoving = function (cell) {
if (((!cell.willExplose) && (!cell.explosed)) && (cell.jewel.bonusType != "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) {
var _local3;
var _local4 = this.Cells;
_local3 = _local4[i - 1][j - 1];
this.prepareForRemoving(_local3);
_local3 = _local4[i - 1][j];
this.prepareForRemoving(_local3);
_local3 = _local4[i - 1][j + 1];
this.prepareForRemoving(_local3);
_local3 = _local4[i][j - 1];
this.prepareForRemoving(_local3);
_local3 = _local4[i][j + 1];
this.prepareForRemoving(_local3);
_local3 = _local4[i + 1][j - 1];
this.prepareForRemoving(_local3);
_local3 = _local4[i + 1][j];
this.prepareForRemoving(_local3);
_local3 = _local4[i + 1][j + 1];
this.prepareForRemoving(_local3);
_root.playSound("explosionbig");
this.giveBonus(SCORE_EXPLODE_BOMB, i, j);
};
gameFieldClass.prototype.explosionofDynamite = function (i, j) {
var myItem;
var cell;
var Cells = this.Cells;
cell = Cells[i - 2][j];
this.prepareForRemoving(cell);
cell = Cells[i - 1][j];
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 + 1][j];
this.prepareForRemoving(cell);
cell = Cells[i + 2][j];
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("explosionbig");
this.giveBonus(SCORE_EXPLODE_DYNAMITE, i, j);
};
gameFieldClass.prototype.removeFlame = function () {
this.flamesNumber--;
};
gameFieldClass.prototype.explosionofGun = function (i, j, level, myGun) {
var WeaponItem;
var myitem;
var Cells = this.Cells;
if (this.WeaponItems.length > 0) {
var N = (this.WeaponItems[this.WeaponItems.length - 1].getNofTarget() + 1);
} else {
N = 0;
}
if (level) {
thisObj.bonuses.createEmptyMovieClip("WeaponItem" + N, thisObj.bonuses.getNextHighestDepth());
myitem = eval ("bonuses.WeaponItem" + N);
myitem._x = this.getX(i) + (elementSize / 2);
myitem._y = this.getY(j) + (elementSize / 2);
myitem._rotation = 180;
WeaponItem = new weaponClass();
WeaponItem.setIt(myitem, i, j, N, "left", level, this);
this.WeaponItems.push(WeaponItem);
N++;
thisObj.bonuses.createEmptyMovieClip("WeaponItem" + N, thisObj.bonuses.getNextHighestDepth());
myitem = eval ("bonuses.WeaponItem" + N);
myitem._x = this.getX(i) + (elementSize / 2);
myitem._y = this.getY(j) + (elementSize / 2);
myitem._rotation = 0;
WeaponItem = new weaponClass();
WeaponItem.setIt(myitem, i, j, N, "right", level, this);
this.WeaponItems.push(WeaponItem);
N++;
}
if (level == 2) {
thisObj.bonuses.createEmptyMovieClip("WeaponItem" + N, thisObj.bonuses.getNextHighestDepth());
myitem = eval ("bonuses.WeaponItem" + N);
myitem._x = this.getX(i) + (elementSize / 2);
myitem._y = this.getY(j) + (elementSize / 2);
myitem._rotation = -90;
WeaponItem = new weaponClass();
WeaponItem.setIt(myitem, i, j, N, "up", level, this);
this.WeaponItems.push(WeaponItem);
N++;
thisObj.bonuses.createEmptyMovieClip("WeaponItem" + N, thisObj.bonuses.getNextHighestDepth());
myitem = eval ("bonuses.WeaponItem" + N);
myitem._x = this.getX(i) + (elementSize / 2);
myitem._y = this.getY(j) + (elementSize / 2);
myitem._rotation = 90;
WeaponItem = new weaponClass();
WeaponItem.setIt(myitem, i, j, N, "down", level, this);
this.WeaponItems.push(WeaponItem);
var cell;
var k = (j - 1);
while (k) {
cell = Cells[i][k];
cell.jewel.willRemove = true;
cell.jewel.lock = true;
k--;
}
}
switch (level) {
case 1 :
this.giveBonus(SCORE_SHOOT_CANNON_HORIZONTAL, i, j);
_root.playSound("greenegg");
return;
case 2 :
this.giveBonus(SCORE_SHOOT_CANNON_TOTAL, i, j);
_root.playSound("eggblast");
}
};
gameFieldClass.prototype.explosionofFlash = function (i, j) {
var myItem;
var cell;
var Cells = this.Cells;
var clength = Cells[i].length;
var k = 1;
while (k < clength) {
cell = Cells[i][k];
this.prepareForRemoving(cell);
k++;
}
this.flamesNumber++;
thisObj.bonuses.attachMovie("lighting", "flame" + this.flamesNumber, thisObj.bonuses.getNextHighestDepth());
myItem = eval ("bonuses.flame" + this.flamesNumber);
myItem._x = this.getX(i) + (elementSize / 2);
myItem._y = 10;
_root.playSound("lighting");
this.giveBonus(SCORE_SHOOT_CANNON_VERTICAL, i, j);
};
gameFieldClass.prototype.openLocks = function (color, i0, j0) {
var Unlocks = new Array();
var k = 0;
var N;
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;
var WeaponItem;
var myitem;
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);
WeaponItem = new fallingKeyClass();
WeaponItem.setIt(i0, j0, i, j, myitem, N, this);
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) {
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();
};
gameFieldClass.prototype.sortGameItems = function () {
var _local17 = this.GameItems.length;
var _local7;
var _local11 = -1000;
var _local9 = -1;
this.MoveItems = new Array();
var _local8 = new Array();
var _local5 = this.Cells;
var _local16 = this.MoveItems;
var _local18 = this.GameItems;
var _local15 = _local5.length - 1;
var _local6 = _local5[1].length - 1;
var _local13 = [];
var _local19 = [];
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.block)) && (!cell.jewel.willRemove)) && (!cell.empty)) {
cell.jewel.ins = true;
} else {
cell = _local5[_local3 - 1][_local2 - 1];
if (((cell && (!cell.jewel.blockType)) && (!cell.jewel.willRemove)) && (!cell.empty)) {
cell.jewel.ins = true;
} else {
cell = _local5[_local3 + 1][_local2 - 1];
if (((cell && (!cell.jewel.blockType)) && (!cell.jewel.willRemove)) && (!cell.empty)) {
cell.jewel.ins = true;
}
}
}
}
_local2--;
}
}
_local3--;
}
var _local4 = 0;
while (_local4 < _local17) {
_local7 = _local18[_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) {
_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) {
_local16[_local16.length] = _local8[_local9];
_local13[_local9] = -1000;
}
_local11 = -1000;
_local9 = -1;
_local14++;
}
if ((!_local16.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) {
var GameItem;
var myitem;
var color;
var NofItem;
var N = (this.GameItems[this.GameItems.length - 1].getNofTarget() + 1);
thisObj.jewels.createEmptyMovieClip("GameItem" + N, thisObj.jewels.getNextHighestDepth());
myitem = eval ("jewels.GameItem" + N);
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, false, N, this);
this.GameItems.push(GameItem);
return(GameItem);
};
gameFieldClass.prototype.inField = function (i0, j0) {
var _local2 = false;
var _local3 = this.Field;
if ((_local3[i0][j0] != ".") && (_local3[i0][j0] != undefined)) {
_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.fallTimer = 0;
this.fallSpeed = 8;
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.explosed = 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, lock, N, myGF) {
var _local4;
var _local3;
var _local6;
this.gameField = myGF;
this.itsTarget = mc;
if (!blockType) {
if (color != "?") {
this.itsColor = color;
} else {
this.itsColor = this.gameField.enabledColors[_global.Math.round(_global.Math.random() * (this.gameField.colorsNumber - 1)) + 1];
}
}
this.bonusType = bonusType;
this.blockType = blockType;
if (lock) {
this.lock = lock;
this.block = lock;
}
if (this.bonusType) {
switch (this.bonusType) {
case "lock" :
this.lock = true;
this.corelationEnable = false;
_local3 = 0;
_local4 = 1;
break;
case "key" :
this.lock = true;
this.block = true;
_local3 = 0;
_local4 = 1;
}
if (!this.lock) {
_local3 = 1;
_local4 = 0;
}
this.itsTarget.attachMovie(this.bonusType, "bonus", _local4);
this.itsTarget.bonus._x = 0;
this.itsTarget.bonus._y = 0;
}
if (this.blockType) {
_local6 = 0;
_local3 = 1;
this.itsTarget.attachMovie(this.blockType, "block", _local6);
this.itsTarget.block._x = 0;
this.itsTarget.block._y = 0;
} else {
this.itsTarget.attachMovie("jewel" + this.itsColor, "jewel", _local3);
this.itsTarget.jewel._x = 0;
this.itsTarget.jewel._y = 0;
}
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.activate = function (itsselection) {
this.itsTarget.jewel.activate();
};
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 (_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++;
break;
case "right" :
_local7[_local5 + 1][_local4 + 1].located++;
break;
case "left" :
_local7[_local5 - 1][_local4 + 1].located++;
}
switch (this.dir) {
case "down" :
_local7[this.i][this.j + 1].located--;
break;
case "right" :
_local7[this.i + 1][this.j + 1].located--;
break;
case "left" :
_local7[this.i - 1][this.j + 1].located--;
}
}
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.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.shake = function () {
if ((!this.lock) && (!this.blockType)) {
var _local4 = (1 - _global.Math.random()) * 5;
var _local3 = (1 - _global.Math.random()) * 5;
this.itsTarget._x = this.X + _local4;
this.itsTarget._y = this.Y + _local3;
}
};
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.willRemove = false;
this.corelationEnable = false;
this.itsTarget.jewel.active = false;
this.itsTarget.jewel.gotoAndPlay("del");
if (this.bonusType) {
this.itsTarget.bonus.gotoAndPlay("del");
}
if (this.blockType) {
this.gameField.blocksRemoved++;
game.addPoints(SCORE_EXPLODE_BLOCK);
this.itsTarget.block.gotoAndPlay("del");
var _local4 = _global.Math.round(_global.Math.random() * 2) + 1;
_root.playSound("stone" + _local4);
}
if ((!this.blockType) && (!this.bonusType)) {
var _local4 = _global.Math.round(_global.Math.random() * 3) + 1;
_root.playSound("glass" + _local4);
}
}
};
gameItemClass.prototype.unlock = function () {
this.itsTarget.bonus.gotoAndPlay("del");
this.bonusType = false;
this.explosed = false;
this.removed = false;
this.lock = false;
this.corelationEnable = true;
};
gameItemClass.prototype.explosion = function () {
if (!this.explosed) {
this.explosed = true;
this.lock = false;
this.block = false;
switch (this.bonusType) {
case false :
this.remove();
break;
case "bomb" :
this.gameField.explosionofBomb(this.i, this.j);
this.remove();
break;
case "dynamite" :
this.gameField.explosionofDynamite(this.i, this.j);
this.remove();
break;
case "flash" :
this.gameField.explosionofFlash(this.i, this.j);
this.remove();
break;
case "gun1" :
this.gameField.explosionofGun(this.i, this.j, 1, this);
this.remove();
break;
case "gun2" :
this.gameField.explosionofGun(this.i, this.j, 2, this);
this.remove();
break;
case "key" :
this.lock = false;
this.block = false;
this.gameField.giveBonus(SCORE_USE_KEY, this.i, this.j);
_root.playSound("reload");
this.gameField.openLocks(this.itsColor, this.i, this.j);
this.remove();
}
}
};
elementOfGameFieldClass = function () {
this.itsTarget = new MovieClip();
this.i = 0;
this.j = 0;
this.jewel = null;
this.gameField = null;
this.explosed = false;
this.empty = true;
this.fill = 0;
this.located = 0;
this.nextCell = null;
this.prevCell = null;
this.willExplose = false;
this.throughOut = false;
};
elementOfGameFieldClass.prototype.setIt = function (i, j, mc, myFill, myGF) {
var remnant;
var myItem;
this.itsTarget = mc;
this.gameField = myGF;
this.itsTarget.attachMovie("but", "but", 3);
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", 2);
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 - 1);
myItem = eval ((this.itsTarget._name + ".fill") + i);
myItem._x = 0;
myItem._y = 0;
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;
var _local3 = this.itsTarget._x + (elementSize / 2);
var _local2 = this.itsTarget._y + (elementSize / 2);
this.jewel.setXY(_local3, _local2);
if ((this.jewel.blockType || (!this.jewel.corelationEnable)) || (game.finished)) {
this.isSelected(false);
}
};
elementOfGameFieldClass.prototype.isSelected = function (flag) {
this.itsTarget.but.enabled = flag;
this.activity = flag;
};
elementOfGameFieldClass.prototype.setFree = function () {
this.isSelected(false);
this.select(false);
this.jewel = null;
this.empty = true;
};
elementOfGameFieldClass.prototype.setNextCell = function (cell) {
this.nextCell = cell;
};
elementOfGameFieldClass.prototype.setPrevCell = function (cell) {
this.prevCell = cell;
};
elementOfGameFieldClass.prototype.removeContent = function () {
var graphitem = null;
if ((!this.empty) && (!this.explosed)) {
this.explosed = true;
if (this.willExplose) {
this.nextCell.willExplose = true;
}
this.willExplose = false;
this.jewel.explosion();
this.prevCell.nextCell = this.nextCell;
this.nextCell.prevCell = this.prevCell;
if (this.fill) {
var fill = eval ((("bg." + this.itsTarget._name) + ".fill") + this.fill);
fill.gotoAndPlay("del");
var sndplus = (Math.round(Math.random()) + 1);
var snd;
switch (this.fill) {
case 1 :
snd = "wood" + sndplus;
game.addPoints(SCORE_BREAK_WOOD);
break;
case 2 :
snd = "iron" + sndplus;
game.addPoints(SCORE_BREAK_IRON);
}
_root.playSound(snd);
this.fill--;
if (!this.fill) {
this.gameField.fillsRemoved++;
}
}
this.itsTarget.sBorder._visible = false;
var graphitem = this.nextCell;
this.nextCell = null;
this.prevCell = null;
}
return(graphitem);
};
elementOfGameFieldClass.prototype.activate = function (itsselection) {
if (itsselection) {
this.gameField.activateCell(this);
}
};
elementOfGameFieldClass.prototype.blick = function () {
if (this.fill == 1) {
this.itsTarget.fill1.gotoAndPlay("blick");
} else {
this.itsTarget.fill2.gotoAndPlay("blick");
}
};
elementOfGameFieldClass.prototype.select = function (itsselection) {
if (!_root.levelNum.stay) {
game.beginPlay();
}
if ((!game.timer.isPauseInterval()) && (game.hintOn)) {
game.hintOn = false;
game.gameField.removeHint();
game.timer.continueIt();
game.paused = false;
}
if (!game.paused) {
if (this.itsTarget.sBorder._visible != itsselection) {
this.itsTarget.sBorder._visible = itsselection;
if (itsselection) {
this.gameField.pressCell(this);
}
}
}
};
elementOfGameFieldClass.prototype.unselect = function (itsselection) {
this.itsTarget.sBorder._visible = false;
};
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, level, myGF) {
this.i = i;
this.j = j;
this.i0 = i;
this.j0 = j;
this.gameField = myGF;
this.itsTarget = mc;
this.itsTarget.attachMovie("fireball" + level, "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()) {
var _local2 = this.gameField.Cells[this.i][this.j];
if (((!_local2.willExplose) && (!_local2.explosed)) && (_local2.jewel.bonusType != "lock")) {
this.gameField.remove(this.i, this.j);
}
}
if ((((this.i < 1) || (this.i > 14)) || (this.j < 1)) || (this.j > 14)) {
this.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);
};
fallingKeyClass = function () {
this.j = 0;
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) {
this.i = i0;
this.j = j0;
this.jlast = jlast;
this.ilast = ilast;
this.tSpeed = (this.fallSpeed * (this.ilast - this.i)) / (this.jlast - this.j);
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;
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);
if (this.j >= this.jlast) {
this.remove();
}
};
fallingKeyClass.prototype.remove = function () {
this.itsTarget.key.gotoAndPlay("del");
this.removed = true;
this.gameField.openLock(this.ilast, this.jlast);
};
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.removed = true;
this.itsTarget.removeMovieClip();
};
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");
map.setActive(numberOfLevel, levelsNumber);
sc = scr;
Frame 9
updateMouse();
play();
Frame 10
updateMouse();
gotoAndPlay ("maprepeat");
Frame 11
_quality = "low";
game = new gameClass(numberOfLevel);
game.begin();
cursor.gotoAndStop("arrow");
Pause._visible = false;
win._visible = false;
over._visible = false;
nomoves.gotoAndStop("no");
levelNum.gotoAndPlay("simple");
plusStars = "";
var i = 1;
while (i <= numberOfGame) {
levelNum.mctxt["star" + i]._visible = true;
i++;
}
var i = (numberOfGame + 1);
while (i <= 5) {
levelNum.mctxt["star" + i]._visible = false;
i++;
}
levelNum.mctxt.txt = ((level + " ") + numberOfLevel) + plusStars;
playMusic("gamemusic");
Instance of Symbol 524 MovieClip "bg" in Frame 11
onClipEvent (keyDown) {
if (Key.getCode() == 32) {
_parent.game.setPause();
}
}
Instance of Symbol 524 MovieClip "bonuses" in Frame 11
/* no clip actions */
Frame 12
updateMouse();
if (game.started) {
game.update();
}
Frame 13
updateMouse();
gotoAndPlay ("level");
Frame 14
_quality = "high";
_root.bg.gotoAndStop("space1");
play();
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;
Frame 15
updateMouse();
Frame 16
nameinput.onSetFocus = function (oldFocus) {
if (this.text == "Your name here") {
this.text = "";
}
};
updateMouse();
gotoAndPlay ("completerepeat");
Frame 17
_quality = "high";
sc = scr;
sub = submit;
playername = nam;
congr = congratualations;
txt13 = complete_txt2;
Frame 18
_quality = "high";
updateMouse();
_root.bg.gotoAndStop("space2");
play();
Frame 19
nameinput.onSetFocus = function (oldFocus) {
if (this.text == "Your name here") {
this.text = "";
}
};
updateMouse();
gotoAndPlay ("gameoverrepeat");
Frame 20
hint1_0 = "Click on groups of three or more same pieces|to collapse them";
hint1_1 = "When you collapse pieces close to stone|blocks those blocks will be destroyed|as well";
hint1_2 = "Destroy all stone blocks to complete this|level";
hint3_0 = "This is a bomb egg! Click on group of pieces|that includes this egg and it will explode|nearby pieces and blocks. Now you will get|bomb eggs for collapsing groups of 5 pieces|or more";
hint4_0 = "To complete this level you have to break all|wooden boxes. To do so collapse|pieces over box to break it";
hint9_0 = "This is a key! Make a match with it to remove|locks from the same pieces";
hint10_0 = "To complete this level you have to collapse as|many pieces as possible before time runs out";
hint11_0 = "Now you can use dynamite eggs.|To get dynamite egg collapse 7 pieces or more";
hint12_0 = "Now you can use slime eggs.|Slime egg will spawn two green waste| projectiles that destroy everything|on the way. To create slime egg|later collapse 9 pieces or more";
hint13_0 = "This is lightning egg. When you collapse it you will|unleash lightning bolt that will eliminate whole|column or pieces and blocks. To get lightning egg later|collapse 10 pieces or more";
hint14_0 = "This is lava egg. When you collapse it|you will unleash pieces of lava to all directions.|To get lightning egg later collapse 11 pieces or more";
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 = "JURASSIC REALM FULL";
menu_txt2 = "<b><p></p> - fullscreen gameplay<p></p> - over 150 levels and 2 modes<p></p> - uncover hidden dinosaurs</b>";
menu_txt3 = "JURASSIC REALM WEB";
menu_txt4 = "<b>Prehistoric adventures in the <p></p>land of ancient dinosaurs</b>";
sound_txt = "sound";
music_txt = "music";
hints_txt = "Hints";
scr = "Your score:";
nam = "Your name here";
submit = "submit";
loading = "loading";
level = "LEVEL";
nmoves = "NO MOVES";
congratualations = "CONGRATULATIONS!";
complete_txt1 = "<b>You have completed the web<p></p>version of the game BUT...<p></p>the adventure is not over yet!</b>";
complete_txt2 = "<b>Are you clever enough to find the legendary <p></p>Tyrannosaurus Rex? Download your FREE<p></p>trial of the full version and find out!<br><br> - Enhanced graphics and<p></p> special effects<p></p> - Over 150 mysterious levels<p></p> - 19 dinosaurs to uncover<p></p> - 2 play modes<p></p> - Huge map available for exploration<p></p> - Fullscreen gameplay<p></p> - And many more!</b>";
complete_txt3 = "Replay the web version on higher";
complete_txt4 = "difficulty to get higher score";
complete_txt5 = "JURASSIC REALM";
complete_txt6 = "full version";
game_over = "GAME OVER";
try_full_version = "TRY FULL VERSION";
pause1_txt1 = "<b>FULL version features 19 hidden dinosaurs <p></p>that can be uncovered while <p></p>playing the game</b>";
pause2_txt1 = "<b>FULL version has lots of wonderful <p></p>places to explore</b>";
pause3_txt1 = "<b>FULL version has huge map available for <p></p>your exploration with number <p></p>of roads and pathways to travel</b>";
pause4_txt1 = "<b>FULL version features over 150 mysterious level <p></p>to play in 2 different game modes as well as <p></p>pack of hidden bonus levels</b>";
pause5_txt1 = "<b>FULL version has loads of different bricks, <p></p>layouts, power-ups, dinosaurs, levels, <p></p>and more!</b>";
_quality = "high";
try_full = try_full_version;
txt1pause = complete_txt2;
p1_txt2 = pause1_txt1;
Frame 21
_quality = "high";
updateMouse();
Frame 22
gotoAndPlay ("levelpause1repeat");
Frame 23
_quality = "high";
try_full = try_full_version;
txt1pause = complete_txt2;
p2_txt2 = pause2_txt1;
Frame 24
_quality = "high";
updateMouse();
play();
Frame 25
gotoAndPlay ("levelpause2repeat");
Frame 26
_quality = "high";
try_full6 = try_full_version;
txt1pause = complete_txt2;
p3_txt2 = pause3_txt1;
Frame 27
_quality = "high";
updateMouse();
play();
Frame 28
gotoAndPlay ("levelpause3repeat");
Frame 29
_quality = "high";
try_full = try_full_version;
txt1pause = complete_txt2;
p4_txt2 = pause4_txt1;
Frame 30
_quality = "high";
updateMouse();
play();
Frame 31
gotoAndPlay ("levelpause4repeat");
Frame 32
_quality = "high";
try_full = try_full_version;
txt1pause = complete_txt2;
p5_txt2 = pause5_txt1;
Frame 33
_quality = "high";
updateMouse();
play();
Frame 34
gotoAndPlay ("levelpause5repeat");
Symbol 20 MovieClip Frame 1
stop();
Symbol 20 MovieClip Frame 2
play();
Symbol 22 Button
on (rollOver) {
cursor.gotoAndPlay("hand");
greatgames.gotoAndPlay("zoom");
_root.playSound("select");
}
on (rollOut) {
cursor.gotoAndPlay("arrow");
}
on (release) {
_root.playSound("click");
getURL (_root.moreGamesURL, "_blank");
}
Symbol 25 MovieClip Frame 1
stop();
Symbol 25 MovieClip Frame 2
stop();
Symbol 27 Button
on (rollOver) {
cursor.gotoAndPlay("hand");
}
on (rollOut) {
cursor.gotoAndPlay("arrow");
}
on (release) {
if ((_root.soundEnabled = !_root.soundEnabled)) {
signsound.gotoAndPlay("on");
} else {
signsound.gotoAndPlay("off");
}
}
Symbol 32 MovieClip Frame 1
stop();
Symbol 32 MovieClip Frame 2
stop();
Symbol 33 Button
on (rollOver) {
cursor.gotoAndPlay("hand");
}
on (rollOut) {
cursor.gotoAndPlay("arrow");
}
on (release) {
if ((_root.musicEnabled = !_root.musicEnabled)) {
playMusic("menumusic");
signmusic.gotoAndPlay("on");
} else {
stopAllSounds();
signmusic.gotoAndPlay("off");
}
}
Symbol 36 MovieClip Frame 1
stop();
Symbol 36 MovieClip Frame 2
stop();
Symbol 37 Button
on (rollOver) {
cursor.gotoAndPlay("hand");
}
on (rollOut) {
cursor.gotoAndPlay("arrow");
}
on (release) {
if ((_root.hintsEnabled = !_root.hintsEnabled)) {
hintsMC.gotoAndPlay("on");
} else {
hintsMC.gotoAndPlay("off");
}
}
Symbol 45 MovieClip Frame 1
stop();
txt = _root.fdl_button;
Symbol 45 MovieClip Frame 2
stop();
Symbol 46 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 50 MovieClip Frame 1
stop();
txt = _root.pn_button;
Symbol 50 MovieClip Frame 2
stop();
Symbol 51 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 83 MovieClip Frame 1
stop();
Symbol 83 MovieClip Frame 5
play();
Symbol 83 MovieClip Frame 6
stop();
Symbol 83 MovieClip Frame 7
play();
Symbol 83 MovieClip Frame 8
stop();
Symbol 83 MovieClip Frame 9
play();
Symbol 83 MovieClip Frame 10
stop();
Symbol 83 MovieClip Frame 11
play();
Symbol 83 MovieClip Frame 12
stop();
Symbol 83 MovieClip Frame 13
play();
Symbol 83 MovieClip Frame 14
stop();
Symbol 83 MovieClip Frame 15
play();
Symbol 83 MovieClip Frame 16
stop();
Symbol 83 MovieClip Frame 17
play();
Symbol 83 MovieClip Frame 18
stop();
Symbol 83 MovieClip Frame 19
play();
Symbol 83 MovieClip Frame 20
stop();
Symbol 83 MovieClip Frame 21
play();
Symbol 83 MovieClip Frame 22
stop();
Symbol 83 MovieClip Frame 23
play();
Symbol 83 MovieClip Frame 24
stop();
Symbol 83 MovieClip Frame 25
play();
Symbol 83 MovieClip Frame 26
stop();
Symbol 83 MovieClip Frame 27
play();
Symbol 83 MovieClip Frame 28
stop();
Symbol 83 MovieClip Frame 29
play();
Symbol 83 MovieClip Frame 30
stop();
Symbol 83 MovieClip Frame 31
play();
Symbol 83 MovieClip Frame 32
stop();
Symbol 83 MovieClip Frame 33
play();
Symbol 83 MovieClip Frame 34
stop();
Symbol 83 MovieClip Frame 35
play();
Symbol 83 MovieClip Frame 36
stop();
Symbol 83 MovieClip Frame 37
play();
Symbol 83 MovieClip Frame 38
stop();
Symbol 83 MovieClip Frame 39
play();
Symbol 83 MovieClip Frame 40
stop();
Symbol 83 MovieClip Frame 41
play();
Symbol 83 MovieClip Frame 42
stop();
Symbol 83 MovieClip Frame 45
play();
Symbol 83 MovieClip Frame 46
stop();
Symbol 83 MovieClip Frame 47
play();
Symbol 83 MovieClip Frame 48
stop();
Symbol 83 MovieClip Frame 49
play();
Symbol 83 MovieClip Frame 50
stop();
Symbol 83 MovieClip Frame 51
play();
Symbol 83 MovieClip Frame 52
stop();
Symbol 83 MovieClip Frame 53
play();
Symbol 83 MovieClip Frame 54
stop();
Symbol 83 MovieClip Frame 55
play();
Symbol 83 MovieClip Frame 58
stop();
Symbol 83 MovieClip Frame 59
play();
Symbol 83 MovieClip Frame 62
stop();
Symbol 88 MovieClip Frame 1
stop();
Symbol 88 MovieClip Frame 2
play();
Symbol 100 MovieClip Frame 14
stop();
Symbol 103 MovieClip Frame 10
stop();
Symbol 104 MovieClip [jewel3] Frame 1
stop();
activate = function () {
mov.play();
};
Symbol 104 MovieClip [jewel3] Frame 21
gotoAndPlay (1);
Symbol 104 MovieClip [jewel3] Frame 22
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 104 MovieClip [jewel3] 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 > 7) {
piece._alpha = piece._alpha - 25;
}
i++;
}
Symbol 104 MovieClip [jewel3] Frame 24
if (piece._alpha > 0) {
gotoAndPlay ("next");
} else {
this.removeMovieClip();
}
Symbol 116 MovieClip [jewel4] Frame 1
stop();
activate = function () {
mov.play();
};
Symbol 116 MovieClip [jewel4] Frame 21
gotoAndPlay (1);
Symbol 116 MovieClip [jewel4] Frame 22
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 116 MovieClip [jewel4] 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 > 7) {
piece._alpha = piece._alpha - 25;
}
i++;
}
Symbol 116 MovieClip [jewel4] Frame 24
if (piece._alpha > 0) {
gotoAndPlay ("next");
} else {
this.removeMovieClip();
}
Symbol 128 MovieClip [jewel5] Frame 1
stop();
activate = function () {
mov.play();
};
Symbol 128 MovieClip [jewel5] Frame 21
gotoAndPlay (1);
Symbol 128 MovieClip [jewel5] Frame 22
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 128 MovieClip [jewel5] 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 > 7) {
piece._alpha = piece._alpha - 25;
}
i++;
}
Symbol 128 MovieClip [jewel5] Frame 24
if (piece._alpha > 0) {
gotoAndPlay ("next");
} else {
this.removeMovieClip();
}
Symbol 140 MovieClip [jewel6] Frame 1
stop();
activate = function () {
mov.play();
};
Symbol 140 MovieClip [jewel6] Frame 21
gotoAndPlay (1);
Symbol 140 MovieClip [jewel6] Frame 22
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 140 MovieClip [jewel6] 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 > 7) {
piece._alpha = piece._alpha - 25;
}
i++;
}
Symbol 140 MovieClip [jewel6] Frame 24
if (piece._alpha > 0) {
gotoAndPlay ("next");
} else {
this.removeMovieClip();
}
Symbol 152 MovieClip [jewel7] Frame 1
stop();
activate = function () {
mov.play();
};
Symbol 152 MovieClip [jewel7] Frame 21
gotoAndPlay (1);
Symbol 152 MovieClip [jewel7] Frame 22
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 152 MovieClip [jewel7] 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 > 7) {
piece._alpha = piece._alpha - 25;
}
i++;
}
Symbol 152 MovieClip [jewel7] Frame 24
if (piece._alpha > 0) {
gotoAndPlay ("next");
} else {
this.removeMovieClip();
}
Symbol 164 MovieClip [jewel8] Frame 1
stop();
activate = function () {
mov.play();
};
Symbol 164 MovieClip [jewel8] Frame 21
gotoAndPlay (1);
Symbol 164 MovieClip [jewel8] Frame 22
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 164 MovieClip [jewel8] 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 > 7) {
piece._alpha = piece._alpha - 25;
}
i++;
}
Symbol 164 MovieClip [jewel8] Frame 24
if (piece._alpha > 0) {
gotoAndPlay ("next");
} else {
this.removeMovieClip();
}
Symbol 176 MovieClip [jewel1] Frame 1
stop();
activate = function () {
mov.play();
};
Symbol 176 MovieClip [jewel1] Frame 21
gotoAndPlay (1);
Symbol 176 MovieClip [jewel1] Frame 22
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 176 MovieClip [jewel1] 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 > 7) {
piece._alpha = piece._alpha - 25;
}
i++;
}
Symbol 176 MovieClip [jewel1] Frame 24
if (piece._alpha > 0) {
gotoAndPlay ("next");
} else {
this.removeMovieClip();
}
Symbol 188 MovieClip [jewel2] Frame 1
stop();
activate = function () {
mov.play();
};
Symbol 188 MovieClip [jewel2] Frame 21
gotoAndPlay (1);
Symbol 188 MovieClip [jewel2] Frame 22
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 188 MovieClip [jewel2] 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 > 7) {
piece._alpha = piece._alpha - 25;
}
i++;
}
Symbol 188 MovieClip [jewel2] Frame 24
if (piece._alpha > 0) {
gotoAndPlay ("next");
} else {
this.removeMovieClip();
}
Symbol 226 MovieClip [but] Frame 1
thisObj = this;
onPress = function () {
itstarget.select(true);
};
onRollOver = function () {
itstarget.activate(true);
};
onReleaseOutside = function () {
itstarget.unselect();
};
onRelease = function () {
itstarget.activate(false);
itstarget.unselect();
};
stop();
Symbol 235 MovieClip [bomb] Frame 1
stop();
Symbol 235 MovieClip [bomb] Frame 2
NShards = 10;
i = 1;
while (i <= NShards) {
shard = eval ("shard" + i);
shard._rotation = Math.random() * 360;
i++;
}
Symbol 235 MovieClip [bomb] Frame 16
removeMovieClip(this);
Symbol 238 MovieClip [dynamite] Frame 1
stop();
Symbol 238 MovieClip [dynamite] Frame 2
NShards = 10;
i = 1;
while (i <= NShards) {
shard = eval ("shard" + i);
shard._rotation = Math.random() * 360;
i++;
}
Symbol 238 MovieClip [dynamite] Frame 16
removeMovieClip(this);
Symbol 241 MovieClip [gun1] Frame 1
stop();
Symbol 241 MovieClip [gun1] Frame 2
NShards = 10;
i = 1;
while (i <= NShards) {
shard = eval ("shard" + i);
shard._rotation = Math.random() * 360;
i++;
}
Symbol 241 MovieClip [gun1] Frame 15
removeMovieClip(this);
Symbol 245 MovieClip [flame] Frame 11
this.removeMovieClip();
Symbol 248 MovieClip [fireball1] Frame 1
stop();
Symbol 248 MovieClip [fireball1] Frame 2
_parent.removeMovieClip();
Symbol 251 MovieClip [gun2] Frame 1
stop();
Symbol 251 MovieClip [gun2] Frame 2
NShards = 10;
i = 1;
while (i <= NShards) {
shard = eval ("shard" + i);
shard._rotation = Math.random() * 360;
i++;
}
Symbol 251 MovieClip [gun2] Frame 15
removeMovieClip(this);
Symbol 263 MovieClip [kirpich04-08-conerl] Frame 1
stop();
Symbol 263 MovieClip [kirpich04-08-conerl] Frame 2
NPieces = 13;
vxmax = 8;
vymax = 7;
counter = 0;
ay = 0.1;
vx = new Array();
vy = new Array();
i = 1;
while (i <= NPieces) {
nm = eval ("piece" + i);
scale = 1 - (Math.random() / 2);
nm._width = scale * nm._width;
nm._height = scale * nm._height;
vx[i] = (0.5 - Math.random()) * vxmax;
vy[i] = (-Math.random()) * vymax;
i++;
}
Symbol 263 MovieClip [kirpich04-08-conerl] Frame 3
counter++;
i = 1;
while (i <= NPieces) {
piece = eval ("piece" + i);
piece._x = piece._x + vx[i];
piece._y = (piece._y + vy[i]) + ((ay * counter) * counter);
vy[i] = vy[i] + ay;
if (counter > 14) {
piece._alpha = piece._alpha - 25;
}
i++;
}
Symbol 263 MovieClip [kirpich04-08-conerl] Frame 4
if (piece._alpha > 0) {
gotoAndPlay ("next");
} else {
this.removeMovieClip();
}
Symbol 270 MovieClip [fill2] Frame 1
stop();
Symbol 270 MovieClip [fill2] Frame 2
NPieces = 5;
vxmax = 8;
vymax = 7;
counter = 0;
ay = 0.12;
vx = new Array();
vy = new Array();
i = 1;
while (i <= NPieces) {
nm = eval ("piece" + i);
scale = 1 - (Math.random() / 2);
nm._width = scale * nm._width;
nm._height = scale * nm._height;
vx[i] = (0.5 - Math.random()) * vxmax;
vy[i] = (-Math.random()) * vymax;
i++;
}
Symbol 270 MovieClip [fill2] Frame 3
counter++;
i = 1;
while (i <= NPieces) {
piece = eval ("piece" + i);
piece._x = piece._x + vx[i];
piece._y = (piece._y + vy[i]) + ((ay * counter) * counter);
vy[i] = vy[i] + ay;
if (counter > 10) {
piece._alpha = piece._alpha - 25;
}
i++;
}
Symbol 270 MovieClip [fill2] Frame 4
if (piece._alpha > 0) {
gotoAndPlay ("next");
} else {
this.removeMovieClip();
}
Symbol 283 MovieClip [fill1] Frame 1
stop();
Symbol 283 MovieClip [fill1] Frame 2
NPieces = 5;
vxmax = 8;
vymax = 7;
counter = 0;
ay = 0.1;
vx = new Array();
vy = new Array();
i = 1;
while (i <= NPieces) {
nm = eval ("piece" + i);
scale = 1 - (Math.random() / 2);
nm._width = scale * nm._width;
nm._height = scale * nm._height;
vx[i] = (0.5 - Math.random()) * vxmax;
vy[i] = (-Math.random()) * vymax;
i++;
}
Symbol 283 MovieClip [fill1] Frame 3
counter++;
i = 1;
while (i <= NPieces) {
piece = eval ("piece" + i);
piece._x = piece._x + vx[i];
piece._y = (piece._y + vy[i]) + ((ay * counter) * counter);
vy[i] = vy[i] + ay;
if (counter > 14) {
piece._alpha = piece._alpha - 25;
}
i++;
}
Symbol 283 MovieClip [fill1] Frame 4
if (piece._alpha > 0) {
gotoAndPlay ("next");
} else {
this.removeMovieClip();
}
Symbol 286 MovieClip [key] Frame 1
stop();
Symbol 286 MovieClip [key] Frame 6
removeMovieClip(this);
stop();
Symbol 292 MovieClip [lock] Frame 1
stop();
Symbol 292 MovieClip [lock] Frame 9
stop();
removeMovieClip(this);
Symbol 295 MovieClip [keyglow] Frame 1
stop();
Symbol 295 MovieClip [keyglow] Frame 2
removeMovieClip(this);
stop();
Symbol 303 MovieClip Frame 1
var reload = 60;
var reloadupgraded = 30;
var respawn = 120;
stop();
Symbol 303 MovieClip Frame 2
stop();
Symbol 303 MovieClip Frame 3
stop();
Symbol 303 MovieClip Frame 4
play();
Symbol 303 MovieClip Frame 5
gotoAndStop ("arrow");
Symbol 303 MovieClip Frame 6
play();
Symbol 303 MovieClip Frame 7
gotoAndStop ("arrow");
Symbol 303 MovieClip Frame 8
play();
Symbol 303 MovieClip Frame 9
gotoAndStop ("arrow");
Symbol 303 MovieClip Frame 10
play();
Symbol 303 MovieClip Frame 11
gotoAndStop ("arrow");
Symbol 303 MovieClip Frame 12
play();
Symbol 303 MovieClip Frame 13
gotoAndStop ("arrow");
Symbol 303 MovieClip Frame 14
stop();
Symbol 307 MovieClip [hint-circle] Frame 1
circle._alpha = 0;
onEnterFrame = function () {
circle._alpha = circle._alpha + 10;
};
Symbol 307 MovieClip [hint-circle] Frame 11
delete onEnterFrame;
stop();
Symbol 307 MovieClip [hint-circle] Frame 31
removeMovieClip(this);
Symbol 310 MovieClip [hint-arrows] Frame 11
if (!del) {
stop();
i = 0;
onEnterFrame = function () {
i++;
if (del && (i > 1)) {
delete onEnterFrame;
gotoAndPlay ("del");
}
};
}
Symbol 310 MovieClip [hint-arrows] Frame 31
this.removeMovieClip();
Symbol 314 MovieClip [hint-text] Frame 1
bg._alpha = 0;
mctxt._alpha = 0;
onEnterFrame = function () {
bg._alpha = bg._alpha + 10;
mctxt._alpha = mctxt._alpha + 10;
};
Symbol 314 MovieClip [hint-text] Frame 11
delete onEnterFrame;
stop();
Symbol 314 MovieClip [hint-text] Frame 12
onEnterFrame = function () {
bg._alpha = bg._alpha - 10;
mctxt._alpha = mctxt._alpha - 10;
};
Symbol 314 MovieClip [hint-text] Frame 21
delete onEnterFrame;
removeMovieClip(this);
Symbol 317 MovieClip [flash] Frame 1
stop();
Symbol 317 MovieClip [flash] Frame 2
NShards = 10;
i = 1;
while (i <= NShards) {
shard = eval ("shard" + i);
shard._rotation = Math.random() * 360;
i++;
}
Symbol 317 MovieClip [flash] Frame 16
removeMovieClip(this);
Symbol 320 MovieClip [fireball2] Frame 1
stop();
Symbol 320 MovieClip [fireball2] Frame 2
_parent.removeMovieClip();
Symbol 329 MovieClip [lighting] Frame 17
this.removeMovieClip();
Symbol 335 MovieClip [green-corner01r] Frame 1
stop();
Symbol 335 MovieClip [green-corner01r] Frame 2
NPieces = 13;
vxmax = 8;
vymax = 7;
counter = 0;
ay = 0.1;
vx = new Array();
vy = new Array();
i = 1;
while (i <= NPieces) {
nm = eval ("piece" + i);
scale = 1 - (Math.random() / 2);
nm._width = scale * nm._width;
nm._height = scale * nm._height;
vx[i] = (0.5 - Math.random()) * vxmax;
vy[i] = (-Math.random()) * vymax;
i++;
}
Symbol 335 MovieClip [green-corner01r] Frame 3
counter++;
i = 1;
while (i <= NPieces) {
piece = eval ("piece" + i);
piece._x = piece._x + vx[i];
piece._y = (piece._y + vy[i]) + ((ay * counter) * counter);
vy[i] = vy[i] + ay;
if (counter > 14) {
piece._alpha = piece._alpha - 25;
}
i++;
}
Symbol 335 MovieClip [green-corner01r] Frame 4
if (piece._alpha > 0) {
gotoAndPlay ("next");
} else {
this.removeMovieClip();
}
Symbol 338 MovieClip [green-corner02] Frame 1
stop();
Symbol 338 MovieClip [green-corner02] Frame 2
NPieces = 13;
vxmax = 8;
vymax = 7;
counter = 0;
ay = 0.1;
vx = new Array();
vy = new Array();
i = 1;
while (i <= NPieces) {
nm = eval ("piece" + i);
scale = 1 - (Math.random() / 2);
nm._width = scale * nm._width;
nm._height = scale * nm._height;
vx[i] = (0.5 - Math.random()) * vxmax;
vy[i] = (-Math.random()) * vymax;
i++;
}
Symbol 338 MovieClip [green-corner02] Frame 3
counter++;
i = 1;
while (i <= NPieces) {
piece = eval ("piece" + i);
piece._x = piece._x + vx[i];
piece._y = (piece._y + vy[i]) + ((ay * counter) * counter);
vy[i] = vy[i] + ay;
if (counter > 14) {
piece._alpha = piece._alpha - 25;
}
i++;
}
Symbol 338 MovieClip [green-corner02] Frame 4
if (piece._alpha > 0) {
gotoAndPlay ("next");
} else {
this.removeMovieClip();
}
Symbol 341 MovieClip [green-head02] Frame 1
stop();
Symbol 341 MovieClip [green-head02] Frame 2
NPieces = 13;
vxmax = 8;
vymax = 7;
counter = 0;
ay = 0.1;
vx = new Array();
vy = new Array();
i = 1;
while (i <= NPieces) {
nm = eval ("piece" + i);
scale = 1 - (Math.random() / 2);
nm._width = scale * nm._width;
nm._height = scale * nm._height;
vx[i] = (0.5 - Math.random()) * vxmax;
vy[i] = (-Math.random()) * vymax;
i++;
}
Symbol 341 MovieClip [green-head02] Frame 3
counter++;
i = 1;
while (i <= NPieces) {
piece = eval ("piece" + i);
piece._x = piece._x + vx[i];
piece._y = (piece._y + vy[i]) + ((ay * counter) * counter);
vy[i] = vy[i] + ay;
if (counter > 14) {
piece._alpha = piece._alpha - 25;
}
i++;
}
Symbol 341 MovieClip [green-head02] Frame 4
if (piece._alpha > 0) {
gotoAndPlay ("next");
} else {
this.removeMovieClip();
}
Symbol 344 MovieClip [green-horns01] Frame 1
stop();
Symbol 344 MovieClip [green-horns01] Frame 2
NPieces = 13;
vxmax = 8;
vymax = 7;
counter = 0;
ay = 0.1;
vx = new Array();
vy = new Array();
i = 1;
while (i <= NPieces) {
nm = eval ("piece" + i);
scale = 1 - (Math.random() / 2);
nm._width = scale * nm._width;
nm._height = scale * nm._height;
vx[i] = (0.5 - Math.random()) * vxmax;
vy[i] = (-Math.random()) * vymax;
i++;
}
Symbol 344 MovieClip [green-horns01] Frame 3
counter++;
i = 1;
while (i <= NPieces) {
piece = eval ("piece" + i);
piece._x = piece._x + vx[i];
piece._y = (piece._y + vy[i]) + ((ay * counter) * counter);
vy[i] = vy[i] + ay;
if (counter > 14) {
piece._alpha = piece._alpha - 25;
}
i++;
}
Symbol 344 MovieClip [green-horns01] Frame 4
if (piece._alpha > 0) {
gotoAndPlay ("next");
} else {
this.removeMovieClip();
}
Symbol 347 MovieClip [green-leg01] Frame 1
stop();
Symbol 347 MovieClip [green-leg01] Frame 2
NPieces = 13;
vxmax = 8;
vymax = 7;
counter = 0;
ay = 0.1;
vx = new Array();
vy = new Array();
i = 1;
while (i <= NPieces) {
nm = eval ("piece" + i);
scale = 1 - (Math.random() / 2);
nm._width = scale * nm._width;
nm._height = scale * nm._height;
vx[i] = (0.5 - Math.random()) * vxmax;
vy[i] = (-Math.random()) * vymax;
i++;
}
Symbol 347 MovieClip [green-leg01] Frame 3
counter++;
i = 1;
while (i <= NPieces) {
piece = eval ("piece" + i);
piece._x = piece._x + vx[i];
piece._y = (piece._y + vy[i]) + ((ay * counter) * counter);
vy[i] = vy[i] + ay;
if (counter > 14) {
piece._alpha = piece._alpha - 25;
}
i++;
}
Symbol 347 MovieClip [green-leg01] Frame 4
if (piece._alpha > 0) {
gotoAndPlay ("next");
} else {
this.removeMovieClip();
}
Symbol 350 MovieClip [green-leg02] Frame 1
stop();
Symbol 350 MovieClip [green-leg02] Frame 2
NPieces = 13;
vxmax = 8;
vymax = 7;
counter = 0;
ay = 0.1;
vx = new Array();
vy = new Array();
i = 1;
while (i <= NPieces) {
nm = eval ("piece" + i);
scale = 1 - (Math.random() / 2);
nm._width = scale * nm._width;
nm._height = scale * nm._height;
vx[i] = (0.5 - Math.random()) * vxmax;
vy[i] = (-Math.random()) * vymax;
i++;
}
Symbol 350 MovieClip [green-leg02] Frame 3
counter++;
i = 1;
while (i <= NPieces) {
piece = eval ("piece" + i);
piece._x = piece._x + vx[i];
piece._y = (piece._y + vy[i]) + ((ay * counter) * counter);
vy[i] = vy[i] + ay;
if (counter > 14) {
piece._alpha = piece._alpha - 25;
}
i++;
}
Symbol 350 MovieClip [green-leg02] Frame 4
if (piece._alpha > 0) {
gotoAndPlay ("next");
} else {
this.removeMovieClip();
}
Symbol 353 MovieClip [green-leg03] Frame 1
stop();
Symbol 353 MovieClip [green-leg03] Frame 2
NPieces = 13;
vxmax = 8;
vymax = 7;
counter = 0;
ay = 0.1;
vx = new Array();
vy = new Array();
i = 1;
while (i <= NPieces) {
nm = eval ("piece" + i);
scale = 1 - (Math.random() / 2);
nm._width = scale * nm._width;
nm._height = scale * nm._height;
vx[i] = (0.5 - Math.random()) * vxmax;
vy[i] = (-Math.random()) * vymax;
i++;
}
Symbol 353 MovieClip [green-leg03] Frame 3
counter++;
i = 1;
while (i <= NPieces) {
piece = eval ("piece" + i);
piece._x = piece._x + vx[i];
piece._y = (piece._y + vy[i]) + ((ay * counter) * counter);
vy[i] = vy[i] + ay;
if (counter > 14) {
piece._alpha = piece._alpha - 25;
}
i++;
}
Symbol 353 MovieClip [green-leg03] Frame 4
if (piece._alpha > 0) {
gotoAndPlay ("next");
} else {
this.removeMovieClip();
}
Symbol 356 MovieClip [green-tail] Frame 1
stop();
Symbol 356 MovieClip [green-tail] Frame 2
NPieces = 13;
vxmax = 8;
vymax = 7;
counter = 0;
ay = 0.1;
vx = new Array();
vy = new Array();
i = 1;
while (i <= NPieces) {
nm = eval ("piece" + i);
scale = 1 - (Math.random() / 2);
nm._width = scale * nm._width;
nm._height = scale * nm._height;
vx[i] = (0.5 - Math.random()) * vxmax;
vy[i] = (-Math.random()) * vymax;
i++;
}
Symbol 356 MovieClip [green-tail] Frame 3
counter++;
i = 1;
while (i <= NPieces) {
piece = eval ("piece" + i);
piece._x = piece._x + vx[i];
piece._y = (piece._y + vy[i]) + ((ay * counter) * counter);
vy[i] = vy[i] + ay;
if (counter > 14) {
piece._alpha = piece._alpha - 25;
}
i++;
}
Symbol 356 MovieClip [green-tail] Frame 4
if (piece._alpha > 0) {
gotoAndPlay ("next");
} else {
this.removeMovieClip();
}
Symbol 359 MovieClip [green-body01] Frame 1
stop();
Symbol 359 MovieClip [green-body01] Frame 2
NPieces = 13;
vxmax = 8;
vymax = 7;
counter = 0;
ay = 0.1;
vx = new Array();
vy = new Array();
i = 1;
while (i <= NPieces) {
nm = eval ("piece" + i);
scale = 1 - (Math.random() / 2);
nm._width = scale * nm._width;
nm._height = scale * nm._height;
vx[i] = (0.5 - Math.random()) * vxmax;
vy[i] = (-Math.random()) * vymax;
i++;
}
Symbol 359 MovieClip [green-body01] Frame 3
counter++;
i = 1;
while (i <= NPieces) {
piece = eval ("piece" + i);
piece._x = piece._x + vx[i];
piece._y = (piece._y + vy[i]) + ((ay * counter) * counter);
vy[i] = vy[i] + ay;
if (counter > 14) {
piece._alpha = piece._alpha - 25;
}
i++;
}
Symbol 359 MovieClip [green-body01] Frame 4
if (piece._alpha > 0) {
gotoAndPlay ("next");
} else {
this.removeMovieClip();
}
Symbol 371 MovieClip [kirpich13] Frame 1
stop();
Symbol 371 MovieClip [kirpich13] Frame 2
NPieces = 13;
vxmax = 8;
vymax = 7;
counter = 0;
ay = 0.1;
vx = new Array();
vy = new Array();
i = 1;
while (i <= NPieces) {
nm = eval ("piece" + i);
scale = 1 - (Math.random() / 2);
nm._width = scale * nm._width;
nm._height = scale * nm._height;
vx[i] = (0.5 - Math.random()) * vxmax;
vy[i] = (-Math.random()) * vymax;
i++;
}
Symbol 371 MovieClip [kirpich13] Frame 3
counter++;
i = 1;
while (i <= NPieces) {
piece = eval ("piece" + i);
piece._x = piece._x + vx[i];
piece._y = (piece._y + vy[i]) + ((ay * counter) * counter);
vy[i] = vy[i] + ay;
if (counter > 14) {
piece._alpha = piece._alpha - 25;
}
i++;
}
Symbol 371 MovieClip [kirpich13] Frame 4
if (piece._alpha > 0) {
gotoAndPlay ("next");
} else {
this.removeMovieClip();
}
Symbol 374 MovieClip [kirpich13-16-conerl] Frame 1
stop();
Symbol 374 MovieClip [kirpich13-16-conerl] Frame 2
NPieces = 13;
vxmax = 8;
vymax = 7;
counter = 0;
ay = 0.1;
vx = new Array();
vy = new Array();
i = 1;
while (i <= NPieces) {
nm = eval ("piece" + i);
scale = 1 - (Math.random() / 2);
nm._width = scale * nm._width;
nm._height = scale * nm._height;
vx[i] = (0.5 - Math.random()) * vxmax;
vy[i] = (-Math.random()) * vymax;
i++;
}
Symbol 374 MovieClip [kirpich13-16-conerl] Frame 3
counter++;
i = 1;
while (i <= NPieces) {
piece = eval ("piece" + i);
piece._x = piece._x + vx[i];
piece._y = (piece._y + vy[i]) + ((ay * counter) * counter);
vy[i] = vy[i] + ay;
if (counter > 14) {
piece._alpha = piece._alpha - 25;
}
i++;
}
Symbol 374 MovieClip [kirpich13-16-conerl] Frame 4
if (piece._alpha > 0) {
gotoAndPlay ("next");
} else {
this.removeMovieClip();
}
Symbol 377 MovieClip [kirpich14] Frame 1
stop();
Symbol 377 MovieClip [kirpich14] Frame 2
NPieces = 13;
vxmax = 8;
vymax = 7;
counter = 0;
ay = 0.1;
vx = new Array();
vy = new Array();
i = 1;
while (i <= NPieces) {
nm = eval ("piece" + i);
scale = 1 - (Math.random() / 2);
nm._width = scale * nm._width;
nm._height = scale * nm._height;
vx[i] = (0.5 - Math.random()) * vxmax;
vy[i] = (-Math.random()) * vymax;
i++;
}
Symbol 377 MovieClip [kirpich14] Frame 3
counter++;
i = 1;
while (i <= NPieces) {
piece = eval ("piece" + i);
piece._x = piece._x + vx[i];
piece._y = (piece._y + vy[i]) + ((ay * counter) * counter);
vy[i] = vy[i] + ay;
if (counter > 14) {
piece._alpha = piece._alpha - 25;
}
i++;
}
Symbol 377 MovieClip [kirpich14] Frame 4
if (piece._alpha > 0) {
gotoAndPlay ("next");
} else {
this.removeMovieClip();
}
Symbol 380 MovieClip [kirpich15] Frame 1
stop();
Symbol 380 MovieClip [kirpich15] Frame 2
NPieces = 13;
vxmax = 8;
vymax = 7;
counter = 0;
ay = 0.1;
vx = new Array();
vy = new Array();
i = 1;
while (i <= NPieces) {
nm = eval ("piece" + i);
scale = 1 - (Math.random() / 2);
nm._width = scale * nm._width;
nm._height = scale * nm._height;
vx[i] = (0.5 - Math.random()) * vxmax;
vy[i] = (-Math.random()) * vymax;
i++;
}
Symbol 380 MovieClip [kirpich15] Frame 3
counter++;
i = 1;
while (i <= NPieces) {
piece = eval ("piece" + i);
piece._x = piece._x + vx[i];
piece._y = (piece._y + vy[i]) + ((ay * counter) * counter);
vy[i] = vy[i] + ay;
if (counter > 14) {
piece._alpha = piece._alpha - 25;
}
i++;
}
Symbol 380 MovieClip [kirpich15] Frame 4
if (piece._alpha > 0) {
gotoAndPlay ("next");
} else {
this.removeMovieClip();
}
Symbol 383 MovieClip [kirpich16] Frame 1
stop();
Symbol 383 MovieClip [kirpich16] Frame 2
NPieces = 13;
vxmax = 8;
vymax = 7;
counter = 0;
ay = 0.1;
vx = new Array();
vy = new Array();
i = 1;
while (i <= NPieces) {
nm = eval ("piece" + i);
scale = 1 - (Math.random() / 2);
nm._width = scale * nm._width;
nm._height = scale * nm._height;
vx[i] = (0.5 - Math.random()) * vxmax;
vy[i] = (-Math.random()) * vymax;
i++;
}
Symbol 383 MovieClip [kirpich16] Frame 3
counter++;
i = 1;
while (i <= NPieces) {
piece = eval ("piece" + i);
piece._x = piece._x + vx[i];
piece._y = (piece._y + vy[i]) + ((ay * counter) * counter);
vy[i] = vy[i] + ay;
if (counter > 14) {
piece._alpha = piece._alpha - 25;
}
i++;
}
Symbol 383 MovieClip [kirpich16] Frame 4
if (piece._alpha > 0) {
gotoAndPlay ("next");
} else {
this.removeMovieClip();
}
Symbol 389 MovieClip [lava-sq1] Frame 1
stop();
Symbol 389 MovieClip [lava-sq1] Frame 2
NPieces = 13;
vxmax = 8;
vymax = 7;
counter = 0;
ay = 0.1;
vx = new Array();
vy = new Array();
i = 1;
while (i <= NPieces) {
nm = eval ("piece" + i);
scale = 1 - (Math.random() / 2);
nm._width = scale * nm._width;
nm._height = scale * nm._height;
vx[i] = (0.5 - Math.random()) * vxmax;
vy[i] = (-Math.random()) * vymax;
i++;
}
Symbol 389 MovieClip [lava-sq1] Frame 3
counter++;
i = 1;
while (i <= NPieces) {
piece = eval ("piece" + i);
piece._x = piece._x + vx[i];
piece._y = (piece._y + vy[i]) + ((ay * counter) * counter);
vy[i] = vy[i] + ay;
if (counter > 14) {
piece._alpha = piece._alpha - 25;
}
i++;
}
Symbol 389 MovieClip [lava-sq1] Frame 4
if (piece._alpha > 0) {
gotoAndPlay ("next");
} else {
this.removeMovieClip();
}
Symbol 392 MovieClip [lava-sq2] Frame 1
stop();
Symbol 392 MovieClip [lava-sq2] Frame 2
NPieces = 13;
vxmax = 8;
vymax = 7;
counter = 0;
ay = 0.1;
vx = new Array();
vy = new Array();
i = 1;
while (i <= NPieces) {
nm = eval ("piece" + i);
scale = 1 - (Math.random() / 2);
nm._width = scale * nm._width;
nm._height = scale * nm._height;
vx[i] = (0.5 - Math.random()) * vxmax;
vy[i] = (-Math.random()) * vymax;
i++;
}
Symbol 392 MovieClip [lava-sq2] Frame 3
counter++;
i = 1;
while (i <= NPieces) {
piece = eval ("piece" + i);
piece._x = piece._x + vx[i];
piece._y = (piece._y + vy[i]) + ((ay * counter) * counter);
vy[i] = vy[i] + ay;
if (counter > 14) {
piece._alpha = piece._alpha - 25;
}
i++;
}
Symbol 392 MovieClip [lava-sq2] Frame 4
if (piece._alpha > 0) {
gotoAndPlay ("next");
} else {
this.removeMovieClip();
}
Symbol 395 MovieClip [lava-sq3] Frame 1
stop();
Symbol 395 MovieClip [lava-sq3] Frame 2
NPieces = 13;
vxmax = 8;
vymax = 7;
counter = 0;
ay = 0.1;
vx = new Array();
vy = new Array();
i = 1;
while (i <= NPieces) {
nm = eval ("piece" + i);
scale = 1 - (Math.random() / 2);
nm._width = scale * nm._width;
nm._height = scale * nm._height;
vx[i] = (0.5 - Math.random()) * vxmax;
vy[i] = (-Math.random()) * vymax;
i++;
}
Symbol 395 MovieClip [lava-sq3] Frame 3
counter++;
i = 1;
while (i <= NPieces) {
piece = eval ("piece" + i);
piece._x = piece._x + vx[i];
piece._y = (piece._y + vy[i]) + ((ay * counter) * counter);
vy[i] = vy[i] + ay;
if (counter > 14) {
piece._alpha = piece._alpha - 25;
}
i++;
}
Symbol 395 MovieClip [lava-sq3] Frame 4
if (piece._alpha > 0) {
gotoAndPlay ("next");
} else {
this.removeMovieClip();
}
Symbol 398 MovieClip [lava-sq4] Frame 1
stop();
Symbol 398 MovieClip [lava-sq4] Frame 2
NPieces = 13;
vxmax = 8;
vymax = 7;
counter = 0;
ay = 0.1;
vx = new Array();
vy = new Array();
i = 1;
while (i <= NPieces) {
nm = eval ("piece" + i);
scale = 1 - (Math.random() / 2);
nm._width = scale * nm._width;
nm._height = scale * nm._height;
vx[i] = (0.5 - Math.random()) * vxmax;
vy[i] = (-Math.random()) * vymax;
i++;
}
Symbol 398 MovieClip [lava-sq4] Frame 3
counter++;
i = 1;
while (i <= NPieces) {
piece = eval ("piece" + i);
piece._x = piece._x + vx[i];
piece._y = (piece._y + vy[i]) + ((ay * counter) * counter);
vy[i] = vy[i] + ay;
if (counter > 14) {
piece._alpha = piece._alpha - 25;
}
i++;
}
Symbol 398 MovieClip [lava-sq4] Frame 4
if (piece._alpha > 0) {
gotoAndPlay ("next");
} else {
this.removeMovieClip();
}
Symbol 404 MovieClip [stones-corner1r] Frame 1
stop();
Symbol 404 MovieClip [stones-corner1r] Frame 2
NPieces = 13;
vxmax = 8;
vymax = 7;
counter = 0;
ay = 0.1;
vx = new Array();
vy = new Array();
i = 1;
while (i <= NPieces) {
nm = eval ("piece" + i);
scale = 1 - (Math.random() / 2);
nm._width = scale * nm._width;
nm._height = scale * nm._height;
vx[i] = (0.5 - Math.random()) * vxmax;
vy[i] = (-Math.random()) * vymax;
i++;
}
Symbol 404 MovieClip [stones-corner1r] Frame 3
counter++;
i = 1;
while (i <= NPieces) {
piece = eval ("piece" + i);
piece._x = piece._x + vx[i];
piece._y = (piece._y + vy[i]) + ((ay * counter) * counter);
vy[i] = vy[i] + ay;
if (counter > 14) {
piece._alpha = piece._alpha - 25;
}
i++;
}
Symbol 404 MovieClip [stones-corner1r] Frame 4
if (piece._alpha > 0) {
gotoAndPlay ("next");
} else {
this.removeMovieClip();
}
Symbol 407 MovieClip [stones-corner2r] Frame 1
stop();
Symbol 407 MovieClip [stones-corner2r] Frame 2
NPieces = 13;
vxmax = 8;
vymax = 7;
counter = 0;
ay = 0.1;
vx = new Array();
vy = new Array();
i = 1;
while (i <= NPieces) {
nm = eval ("piece" + i);
scale = 1 - (Math.random() / 2);
nm._width = scale * nm._width;
nm._height = scale * nm._height;
vx[i] = (0.5 - Math.random()) * vxmax;
vy[i] = (-Math.random()) * vymax;
i++;
}
Symbol 407 MovieClip [stones-corner2r] Frame 3
counter++;
i = 1;
while (i <= NPieces) {
piece = eval ("piece" + i);
piece._x = piece._x + vx[i];
piece._y = (piece._y + vy[i]) + ((ay * counter) * counter);
vy[i] = vy[i] + ay;
if (counter > 14) {
piece._alpha = piece._alpha - 25;
}
i++;
}
Symbol 407 MovieClip [stones-corner2r] Frame 4
if (piece._alpha > 0) {
gotoAndPlay ("next");
} else {
this.removeMovieClip();
}
Symbol 410 MovieClip [stones-corner3r] Frame 1
stop();
Symbol 410 MovieClip [stones-corner3r] Frame 2
NPieces = 13;
vxmax = 8;
vymax = 7;
counter = 0;
ay = 0.1;
vx = new Array();
vy = new Array();
i = 1;
while (i <= NPieces) {
nm = eval ("piece" + i);
scale = 1 - (Math.random() / 2);
nm._width = scale * nm._width;
nm._height = scale * nm._height;
vx[i] = (0.5 - Math.random()) * vxmax;
vy[i] = (-Math.random()) * vymax;
i++;
}
Symbol 410 MovieClip [stones-corner3r] Frame 3
counter++;
i = 1;
while (i <= NPieces) {
piece = eval ("piece" + i);
piece._x = piece._x + vx[i];
piece._y = (piece._y + vy[i]) + ((ay * counter) * counter);
vy[i] = vy[i] + ay;
if (counter > 14) {
piece._alpha = piece._alpha - 25;
}
i++;
}
Symbol 410 MovieClip [stones-corner3r] Frame 4
if (piece._alpha > 0) {
gotoAndPlay ("next");
} else {
this.removeMovieClip();
}
Symbol 413 MovieClip [stones-sq1] Frame 1
stop();
Symbol 413 MovieClip [stones-sq1] Frame 2
NPieces = 13;
vxmax = 8;
vymax = 7;
counter = 0;
ay = 0.1;
vx = new Array();
vy = new Array();
i = 1;
while (i <= NPieces) {
nm = eval ("piece" + i);
scale = 1 - (Math.random() / 2);
nm._width = scale * nm._width;
nm._height = scale * nm._height;
vx[i] = (0.5 - Math.random()) * vxmax;
vy[i] = (-Math.random()) * vymax;
i++;
}
Symbol 413 MovieClip [stones-sq1] Frame 3
counter++;
i = 1;
while (i <= NPieces) {
piece = eval ("piece" + i);
piece._x = piece._x + vx[i];
piece._y = (piece._y + vy[i]) + ((ay * counter) * counter);
vy[i] = vy[i] + ay;
if (counter > 14) {
piece._alpha = piece._alpha - 25;
}
i++;
}
Symbol 413 MovieClip [stones-sq1] Frame 4
if (piece._alpha > 0) {
gotoAndPlay ("next");
} else {
this.removeMovieClip();
}
Symbol 416 MovieClip [stones-sq2] Frame 1
stop();
Symbol 416 MovieClip [stones-sq2] Frame 2
NPieces = 13;
vxmax = 8;
vymax = 7;
counter = 0;
ay = 0.1;
vx = new Array();
vy = new Array();
i = 1;
while (i <= NPieces) {
nm = eval ("piece" + i);
scale = 1 - (Math.random() / 2);
nm._width = scale * nm._width;
nm._height = scale * nm._height;
vx[i] = (0.5 - Math.random()) * vxmax;
vy[i] = (-Math.random()) * vymax;
i++;
}
Symbol 416 MovieClip [stones-sq2] Frame 3
counter++;
i = 1;
while (i <= NPieces) {
piece = eval ("piece" + i);
piece._x = piece._x + vx[i];
piece._y = (piece._y + vy[i]) + ((ay * counter) * counter);
vy[i] = vy[i] + ay;
if (counter > 14) {
piece._alpha = piece._alpha - 25;
}
i++;
}
Symbol 416 MovieClip [stones-sq2] Frame 4
if (piece._alpha > 0) {
gotoAndPlay ("next");
} else {
this.removeMovieClip();
}
Symbol 419 MovieClip [stones-sq3] Frame 1
stop();
Symbol 419 MovieClip [stones-sq3] Frame 2
NPieces = 13;
vxmax = 8;
vymax = 7;
counter = 0;
ay = 0.1;
vx = new Array();
vy = new Array();
i = 1;
while (i <= NPieces) {
nm = eval ("piece" + i);
scale = 1 - (Math.random() / 2);
nm._width = scale * nm._width;
nm._height = scale * nm._height;
vx[i] = (0.5 - Math.random()) * vxmax;
vy[i] = (-Math.random()) * vymax;
i++;
}
Symbol 419 MovieClip [stones-sq3] Frame 3
counter++;
i = 1;
while (i <= NPieces) {
piece = eval ("piece" + i);
piece._x = piece._x + vx[i];
piece._y = (piece._y + vy[i]) + ((ay * counter) * counter);
vy[i] = vy[i] + ay;
if (counter > 14) {
piece._alpha = piece._alpha - 25;
}
i++;
}
Symbol 419 MovieClip [stones-sq3] Frame 4
if (piece._alpha > 0) {
gotoAndPlay ("next");
} else {
this.removeMovieClip();
}
Symbol 431 MovieClip [jewel9] Frame 1
stop();
activate = function () {
mov.play();
};
Symbol 431 MovieClip [jewel9] Frame 21
gotoAndPlay (1);
Symbol 431 MovieClip [jewel9] Frame 22
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 431 MovieClip [jewel9] 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 > 7) {
piece._alpha = piece._alpha - 25;
}
i++;
}
Symbol 431 MovieClip [jewel9] Frame 24
if (piece._alpha > 0) {
gotoAndPlay ("next");
} else {
this.removeMovieClip();
}
Symbol 433 MovieClip [stones-corner1l] Frame 1
stop();
Symbol 433 MovieClip [stones-corner1l] Frame 2
NPieces = 13;
vxmax = 8;
vymax = 7;
counter = 0;
ay = 0.1;
vx = new Array();
vy = new Array();
i = 1;
while (i <= NPieces) {
nm = eval ("piece" + i);
scale = 1 - (Math.random() / 2);
nm._width = scale * nm._width;
nm._height = scale * nm._height;
vx[i] = (0.5 - Math.random()) * vxmax;
vy[i] = (-Math.random()) * vymax;
i++;
}
Symbol 433 MovieClip [stones-corner1l] Frame 3
counter++;
i = 1;
while (i <= NPieces) {
piece = eval ("piece" + i);
piece._x = piece._x + vx[i];
piece._y = (piece._y + vy[i]) + ((ay * counter) * counter);
vy[i] = vy[i] + ay;
if (counter > 14) {
piece._alpha = piece._alpha - 25;
}
i++;
}
Symbol 433 MovieClip [stones-corner1l] Frame 4
if (piece._alpha > 0) {
gotoAndPlay ("next");
} else {
this.removeMovieClip();
}
Symbol 435 MovieClip [kirpich13-16-conerrd] Frame 1
stop();
Symbol 435 MovieClip [kirpich13-16-conerrd] Frame 2
NPieces = 13;
vxmax = 8;
vymax = 7;
counter = 0;
ay = 0.1;
vx = new Array();
vy = new Array();
i = 1;
while (i <= NPieces) {
nm = eval ("piece" + i);
scale = 1 - (Math.random() / 2);
nm._width = scale * nm._width;
nm._height = scale * nm._height;
vx[i] = (0.5 - Math.random()) * vxmax;
vy[i] = (-Math.random()) * vymax;
i++;
}
Symbol 435 MovieClip [kirpich13-16-conerrd] Frame 3
counter++;
i = 1;
while (i <= NPieces) {
piece = eval ("piece" + i);
piece._x = piece._x + vx[i];
piece._y = (piece._y + vy[i]) + ((ay * counter) * counter);
vy[i] = vy[i] + ay;
if (counter > 14) {
piece._alpha = piece._alpha - 25;
}
i++;
}
Symbol 435 MovieClip [kirpich13-16-conerrd] Frame 4
if (piece._alpha > 0) {
gotoAndPlay ("next");
} else {
this.removeMovieClip();
}
Symbol 437 MovieClip [kirpich13-16-conerr] Frame 1
stop();
Symbol 437 MovieClip [kirpich13-16-conerr] Frame 2
NPieces = 13;
vxmax = 8;
vymax = 7;
counter = 0;
ay = 0.1;
vx = new Array();
vy = new Array();
i = 1;
while (i <= NPieces) {
nm = eval ("piece" + i);
scale = 1 - (Math.random() / 2);
nm._width = scale * nm._width;
nm._height = scale * nm._height;
vx[i] = (0.5 - Math.random()) * vxmax;
vy[i] = (-Math.random()) * vymax;
i++;
}
Symbol 437 MovieClip [kirpich13-16-conerr] Frame 3
counter++;
i = 1;
while (i <= NPieces) {
piece = eval ("piece" + i);
piece._x = piece._x + vx[i];
piece._y = (piece._y + vy[i]) + ((ay * counter) * counter);
vy[i] = vy[i] + ay;
if (counter > 14) {
piece._alpha = piece._alpha - 25;
}
i++;
}
Symbol 437 MovieClip [kirpich13-16-conerr] Frame 4
if (piece._alpha > 0) {
gotoAndPlay ("next");
} else {
this.removeMovieClip();
}
Symbol 439 MovieClip [kirpich13-16-conerld] Frame 1
stop();
Symbol 439 MovieClip [kirpich13-16-conerld] Frame 2
NPieces = 13;
vxmax = 8;
vymax = 7;
counter = 0;
ay = 0.1;
vx = new Array();
vy = new Array();
i = 1;
while (i <= NPieces) {
nm = eval ("piece" + i);
scale = 1 - (Math.random() / 2);
nm._width = scale * nm._width;
nm._height = scale * nm._height;
vx[i] = (0.5 - Math.random()) * vxmax;
vy[i] = (-Math.random()) * vymax;
i++;
}
Symbol 439 MovieClip [kirpich13-16-conerld] Frame 3
counter++;
i = 1;
while (i <= NPieces) {
piece = eval ("piece" + i);
piece._x = piece._x + vx[i];
piece._y = (piece._y + vy[i]) + ((ay * counter) * counter);
vy[i] = vy[i] + ay;
if (counter > 14) {
piece._alpha = piece._alpha - 25;
}
i++;
}
Symbol 439 MovieClip [kirpich13-16-conerld] Frame 4
if (piece._alpha > 0) {
gotoAndPlay ("next");
} else {
this.removeMovieClip();
}
Symbol 441 MovieClip [kirpich04-08-conerr] Frame 1
stop();
Symbol 441 MovieClip [kirpich04-08-conerr] Frame 2
NPieces = 13;
vxmax = 8;
vymax = 7;
counter = 0;
ay = 0.1;
vx = new Array();
vy = new Array();
i = 1;
while (i <= NPieces) {
nm = eval ("piece" + i);
scale = 1 - (Math.random() / 2);
nm._width = scale * nm._width;
nm._height = scale * nm._height;
vx[i] = (0.5 - Math.random()) * vxmax;
vy[i] = (-Math.random()) * vymax;
i++;
}
Symbol 441 MovieClip [kirpich04-08-conerr] Frame 3
counter++;
i = 1;
while (i <= NPieces) {
piece = eval ("piece" + i);
piece._x = piece._x + vx[i];
piece._y = (piece._y + vy[i]) + ((ay * counter) * counter);
vy[i] = vy[i] + ay;
if (counter > 14) {
piece._alpha = piece._alpha - 25;
}
i++;
}
Symbol 441 MovieClip [kirpich04-08-conerr] Frame 4
if (piece._alpha > 0) {
gotoAndPlay ("next");
} else {
this.removeMovieClip();
}
Symbol 443 MovieClip [green-corner01l] Frame 1
stop();
Symbol 443 MovieClip [green-corner01l] Frame 2
NPieces = 13;
vxmax = 8;
vymax = 7;
counter = 0;
ay = 0.1;
vx = new Array();
vy = new Array();
i = 1;
while (i <= NPieces) {
nm = eval ("piece" + i);
scale = 1 - (Math.random() / 2);
nm._width = scale * nm._width;
nm._height = scale * nm._height;
vx[i] = (0.5 - Math.random()) * vxmax;
vy[i] = (-Math.random()) * vymax;
i++;
}
Symbol 443 MovieClip [green-corner01l] Frame 3
counter++;
i = 1;
while (i <= NPieces) {
piece = eval ("piece" + i);
piece._x = piece._x + vx[i];
piece._y = (piece._y + vy[i]) + ((ay * counter) * counter);
vy[i] = vy[i] + ay;
if (counter > 14) {
piece._alpha = piece._alpha - 25;
}
i++;
}
Symbol 443 MovieClip [green-corner01l] Frame 4
if (piece._alpha > 0) {
gotoAndPlay ("next");
} else {
this.removeMovieClip();
}
Symbol 446 MovieClip [green-head01] Frame 1
stop();
Symbol 446 MovieClip [green-head01] Frame 2
NPieces = 13;
vxmax = 8;
vymax = 7;
counter = 0;
ay = 0.1;
vx = new Array();
vy = new Array();
i = 1;
while (i <= NPieces) {
nm = eval ("piece" + i);
scale = 1 - (Math.random() / 2);
nm._width = scale * nm._width;
nm._height = scale * nm._height;
vx[i] = (0.5 - Math.random()) * vxmax;
vy[i] = (-Math.random()) * vymax;
i++;
}
Symbol 446 MovieClip [green-head01] Frame 3
counter++;
i = 1;
while (i <= NPieces) {
piece = eval ("piece" + i);
piece._x = piece._x + vx[i];
piece._y = (piece._y + vy[i]) + ((ay * counter) * counter);
vy[i] = vy[i] + ay;
if (counter > 14) {
piece._alpha = piece._alpha - 25;
}
i++;
}
Symbol 446 MovieClip [green-head01] Frame 4
if (piece._alpha > 0) {
gotoAndPlay ("next");
} else {
this.removeMovieClip();
}
Symbol 448 MovieClip [stones-corner2l] Frame 1
stop();
Symbol 448 MovieClip [stones-corner2l] Frame 2
NPieces = 13;
vxmax = 8;
vymax = 7;
counter = 0;
ay = 0.1;
vx = new Array();
vy = new Array();
i = 1;
while (i <= NPieces) {
nm = eval ("piece" + i);
scale = 1 - (Math.random() / 2);
nm._width = scale * nm._width;
nm._height = scale * nm._height;
vx[i] = (0.5 - Math.random()) * vxmax;
vy[i] = (-Math.random()) * vymax;
i++;
}
Symbol 448 MovieClip [stones-corner2l] Frame 3
counter++;
i = 1;
while (i <= NPieces) {
piece = eval ("piece" + i);
piece._x = piece._x + vx[i];
piece._y = (piece._y + vy[i]) + ((ay * counter) * counter);
vy[i] = vy[i] + ay;
if (counter > 14) {
piece._alpha = piece._alpha - 25;
}
i++;
}
Symbol 448 MovieClip [stones-corner2l] Frame 4
if (piece._alpha > 0) {
gotoAndPlay ("next");
} else {
this.removeMovieClip();
}
Symbol 450 MovieClip [stones-corner3l] Frame 1
stop();
Symbol 450 MovieClip [stones-corner3l] Frame 2
NPieces = 13;
vxmax = 8;
vymax = 7;
counter = 0;
ay = 0.1;
vx = new Array();
vy = new Array();
i = 1;
while (i <= NPieces) {
nm = eval ("piece" + i);
scale = 1 - (Math.random() / 2);
nm._width = scale * nm._width;
nm._height = scale * nm._height;
vx[i] = (0.5 - Math.random()) * vxmax;
vy[i] = (-Math.random()) * vymax;
i++;
}
Symbol 450 MovieClip [stones-corner3l] Frame 3
counter++;
i = 1;
while (i <= NPieces) {
piece = eval ("piece" + i);
piece._x = piece._x + vx[i];
piece._y = (piece._y + vy[i]) + ((ay * counter) * counter);
vy[i] = vy[i] + ay;
if (counter > 14) {
piece._alpha = piece._alpha - 25;
}
i++;
}
Symbol 450 MovieClip [stones-corner3l] Frame 4
if (piece._alpha > 0) {
gotoAndPlay ("next");
} else {
this.removeMovieClip();
}
Symbol 452 MovieClip [kirpich04-08-conerld] Frame 1
stop();
Symbol 452 MovieClip [kirpich04-08-conerld] Frame 2
NPieces = 13;
vxmax = 8;
vymax = 7;
counter = 0;
ay = 0.1;
vx = new Array();
vy = new Array();
i = 1;
while (i <= NPieces) {
nm = eval ("piece" + i);
scale = 1 - (Math.random() / 2);
nm._width = scale * nm._width;
nm._height = scale * nm._height;
vx[i] = (0.5 - Math.random()) * vxmax;
vy[i] = (-Math.random()) * vymax;
i++;
}
Symbol 452 MovieClip [kirpich04-08-conerld] Frame 3
counter++;
i = 1;
while (i <= NPieces) {
piece = eval ("piece" + i);
piece._x = piece._x + vx[i];
piece._y = (piece._y + vy[i]) + ((ay * counter) * counter);
vy[i] = vy[i] + ay;
if (counter > 14) {
piece._alpha = piece._alpha - 25;
}
i++;
}
Symbol 452 MovieClip [kirpich04-08-conerld] Frame 4
if (piece._alpha > 0) {
gotoAndPlay ("next");
} else {
this.removeMovieClip();
}
Symbol 454 MovieClip [kirpich04-08-conerrd] Frame 1
stop();
Symbol 454 MovieClip [kirpich04-08-conerrd] Frame 2
NPieces = 13;
vxmax = 8;
vymax = 7;
counter = 0;
ay = 0.1;
vx = new Array();
vy = new Array();
i = 1;
while (i <= NPieces) {
nm = eval ("piece" + i);
scale = 1 - (Math.random() / 2);
nm._width = scale * nm._width;
nm._height = scale * nm._height;
vx[i] = (0.5 - Math.random()) * vxmax;
vy[i] = (-Math.random()) * vymax;
i++;
}
Symbol 454 MovieClip [kirpich04-08-conerrd] Frame 3
counter++;
i = 1;
while (i <= NPieces) {
piece = eval ("piece" + i);
piece._x = piece._x + vx[i];
piece._y = (piece._y + vy[i]) + ((ay * counter) * counter);
vy[i] = vy[i] + ay;
if (counter > 14) {
piece._alpha = piece._alpha - 25;
}
i++;
}
Symbol 454 MovieClip [kirpich04-08-conerrd] Frame 4
if (piece._alpha > 0) {
gotoAndPlay ("next");
} else {
this.removeMovieClip();
}
Symbol 457 MovieClip [kirpich04-08-empty] Frame 1
stop();
Symbol 457 MovieClip [kirpich04-08-empty] Frame 2
NPieces = 13;
vxmax = 8;
vymax = 7;
counter = 0;
ay = 0.1;
vx = new Array();
vy = new Array();
i = 1;
while (i <= NPieces) {
nm = eval ("piece" + i);
scale = 1 - (Math.random() / 2);
nm._width = scale * nm._width;
nm._height = scale * nm._height;
vx[i] = (0.5 - Math.random()) * vxmax;
vy[i] = (-Math.random()) * vymax;
i++;
}
Symbol 457 MovieClip [kirpich04-08-empty] Frame 3
counter++;
i = 1;
while (i <= NPieces) {
piece = eval ("piece" + i);
piece._x = piece._x + vx[i];
piece._y = (piece._y + vy[i]) + ((ay * counter) * counter);
vy[i] = vy[i] + ay;
if (counter > 14) {
piece._alpha = piece._alpha - 25;
}
i++;
}
Symbol 457 MovieClip [kirpich04-08-empty] Frame 4
if (piece._alpha > 0) {
gotoAndPlay ("next");
} else {
this.removeMovieClip();
}
Symbol 492 MovieClip [green-corner01ld] Frame 1
stop();
Symbol 492 MovieClip [green-corner01ld] Frame 2
NPieces = 13;
vxmax = 8;
vymax = 7;
counter = 0;
ay = 0.1;
vx = new Array();
vy = new Array();
i = 1;
while (i <= NPieces) {
nm = eval ("piece" + i);
scale = 1 - (Math.random() / 2);
nm._width = scale * nm._width;
nm._height = scale * nm._height;
vx[i] = (0.5 - Math.random()) * vxmax;
vy[i] = (-Math.random()) * vymax;
i++;
}
Symbol 492 MovieClip [green-corner01ld] Frame 3
counter++;
i = 1;
while (i <= NPieces) {
piece = eval ("piece" + i);
piece._x = piece._x + vx[i];
piece._y = (piece._y + vy[i]) + ((ay * counter) * counter);
vy[i] = vy[i] + ay;
if (counter > 14) {
piece._alpha = piece._alpha - 25;
}
i++;
}
Symbol 492 MovieClip [green-corner01ld] Frame 4
if (piece._alpha > 0) {
gotoAndPlay ("next");
} else {
this.removeMovieClip();
}
Symbol 504 MovieClip Frame 1
stop();
Symbol 504 MovieClip Frame 2
stop();
Symbol 507 MovieClip Frame 1
stop();
Symbol 507 MovieClip Frame 2
stop();
Symbol 510 MovieClip Frame 1
stop();
Symbol 510 MovieClip Frame 2
stop();
Symbol 514 MovieClip Frame 1
maxSpheres = 2;
thisObj = this;
var Current = new Array();
setActive = function (N, max) {
Current = new Array();
var i = 1;
while (i < N) {
myitem = eval ("level" + i);
myitem.gotoAndStop("simple");
myitem._visible = true;
myitem.completed._visible = true;
var j = 1;
while (j <= maxSpheres) {
myitem = eval (("sphere" + i) + j);
myitem._visible = true;
j++;
}
i++;
}
var j = 1;
while (j <= maxSpheres) {
myitem = eval (("sphere" + i) + j);
myitem._visible = true;
myitem._alpha = 0;
if (myitem != undefined) {
Current.push(myitem);
}
j++;
}
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;
var j = 1;
while (j <= maxSpheres) {
myitem = eval (("sphere" + i) + j);
myitem._visible = false;
j++;
}
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);
}
};
}
};
Symbol 520 MovieClip Frame 1
stop();
txt = _root.p_button;
Symbol 520 MovieClip Frame 2
stop();
Symbol 523 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 528 MovieClip Frame 1
txt = _root.completed;
Symbol 531 MovieClip Frame 1
txt = _root.gameover;
Symbol 535 MovieClip Frame 1
txt1 = _root.paused1;
txt2 = _root.paused2;
Symbol 541 MovieClip Frame 1
yMask = mask._y;
heightMask = mask._height;
updateClock = function (t, totalT) {
mask._y = yMask + ((heightMask * t) / totalT);
};
Symbol 547 MovieClip Frame 1
Symbol 548 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 548 MovieClip Frame 21
delete onEnterFrame;
stop();
i = 0;
onEnterFrame = function () {
i++;
if ((i == 80) && (!this.stay)) {
play();
_parent.game.beginPlay();
this.stay = true;
}
};
Symbol 548 MovieClip Frame 22
onEnterFrame = function () {
bg._alpha = bg._alpha - 10;
mctxt._alpha = mctxt._alpha - 10;
};
this.stay = true;
Symbol 548 MovieClip Frame 35
delete onEnterFrame;
stop();
Symbol 551 MovieClip Frame 1
bg._alpha = 0;
mctxt._alpha = 0;
this.stay = false;
mctxt.txt = _root.nmoves;
onEnterFrame = function () {
bg._alpha = bg._alpha + 5;
mctxt._alpha = mctxt._alpha + 5;
};
Symbol 551 MovieClip Frame 21
delete onEnterFrame;
stop();
i = 0;
onEnterFrame = function () {
i++;
if ((i == 50) && (!this.stay)) {
play();
this.stay = true;
}
};
Symbol 551 MovieClip Frame 22
onEnterFrame = function () {
bg._alpha = bg._alpha - 10;
mctxt._alpha = mctxt._alpha - 10;
};
this.stay = true;
Symbol 551 MovieClip Frame 35
delete onEnterFrame;
stop();
Symbol 551 MovieClip Frame 36
stop();
Symbol 567 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 572 MovieClip Frame 1
stop();
txt = _root.gfv_button;
Symbol 572 MovieClip Frame 2
stop();
Symbol 576 MovieClip Frame 1
stop();
txt = _root.pa_button;
Symbol 576 MovieClip Frame 2
stop();
Symbol 577 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 578 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 591 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.gotoAndPlay("map");
}
on (releaseOutside) {
_root.cursor.gotoAndPlay("arrow");
}
Symbol 598 MovieClip Frame 1
stop();
txt = _root.c_button;
Symbol 598 MovieClip Frame 2
stop();
Symbol 599 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("map");
}
on (releaseOutside) {
_root.cursor.gotoAndPlay("arrow");
}