Frame 1
copyright = "Copyright (c) 2005-2006 by Enkord Ltd.";
taskHint1 = "Left-click a shape within the panel to grab it. Now you can move that shape with your mouse";
taskHint2 = "You can break wooden and iron cells by destroying overlapping pieces.";
taskHint3 = "You can break boxes and blocks by destroying nearby pieces.";
backHint = "Left-click on the panel to put shape back";
putHint = "Use the left mouse button to match a shape with identical pieces to destroy them.";
rotationHint = "Use mouse wheel or space to rotate a shape";
specialHint = "*SPECIAL* shape will match with any pieces.";
bonusHint = "Some items can help you on your quest.";
hintTakeShape = "Take any shape|that you want|(use left mouse button)";
hintPutShape = "Place the shape|over peices of|the same type";
hintPutBack = "You cannot use|this shape now.| Place it back and|take another one";
hintRotateShape = "To place a shape|you may have to rotate it|(use mouse wheel or space)";
hintSpecialShape = "A burning shape can be|placed over pieces|of any type. Try placing|this shape over|different pieces";
hintBonusInField = "You can place shapes| over bonus pieces|(bonus piece can|be matched with|pieces of any type)";
hintBonus = "A bonus shape will|help you to complete|b level faster.|Try to place a bonus|over any piece|on the board";
levelTargetCommon = "To complete this level you have to:";
levelTargetJewel = "collect all pieces";
levelTargetCell = "break all background tiles";
levelTargetBlock = "break all blocks";
preStory = "Your dream of a lifetime was to become an astrologer. So, you took a long trip to reach the edge of the world, a place where the ancient Zodiac Tower holds sacred knowledge and wisdom. You must walk all the way up to the top of the tower and will solve many puzzles in order to gain the necessary skills.";
completed = "LEVEL COMPLETE";
paused1 = "Game paused...";
paused2 = "Press P to continue";
gameover = "Time up! GAME OVER...";
hurryUpTxt = "Hurry Up!";
p_button = "Play";
pn_button = "PLAY NOW";
pa_button = "Play again";
c_button = "Continue";
figure_button = "Shapes";
cl_button = "Close";
fdl_button = "Free download";
gfv_button = "Get full version";
menu_txt1 = "Zodiac Tower FULL";
menu_txt2 = "<b><p></p> - fullscreen gameplay<p></p> - over 100 levels and 2 play modes<p></p> - build your own zodiac ship</b>";
menu_txt3 = "Zodiac Tower WEB";
menu_txt4 = "<b>Wander through ancient Zodiac<p></p>Tower and solve puzzles</b>";
sound_txt = "sound";
music_txt = "music";
hints_txt = "Hints";
scr = "Your score:";
nam = "Your name here";
submit = "submit";
loading = "loading";
level = "LEVEL";
demo_txt = "Demonstration";
congratualations = "CONGRATULATIONS!";
complete_txt1 = "<b>You have completed web version <p></p>of the game BUT...<p></p>Adventure is not over yet!</b>";
complete_txt2 = "<b>Are you clever enough to reach the top of<p></p>mysterious Zodiac Tower? Download your FREE trial<p></p>of full version and find out!<br><br> - Enhanced graphics and effects<p></p> - Over 100 mysterious levels<p></p> - Build your own zodiac ship<p></p> - 2 game modes<p></p> - Huge zodiac tower 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 = "ZODIAC TOWER";
complete_txt6 = "full version";
game_over = "GAME OVER";
try_full_version = "TRY FULL VERSION";
pause1_txt1 = "<b>FULL version features 12 hidden parts of<p></p>ancient mechanism that can be uncovered<p></p>in order to build secret Zodiac Ship</b>";
pause2_txt1 = "<b>FULL version has a lot of wonderful<p></p>places to explore</b>";
pause3_txt1 = "<b>FULL version has huge mysterious tower available<p></p>for your exploration with number of rooms<p></p>and stairs</b>";
pause4_txt1 = "<b>FULL version features over 100 mysterious levels<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, shapes, levels, and more!</b>";
var plLoaded = false;
var plLoadState = (int((this.getBytesLoaded() / this.getBytesTotal()) * 100) + "%");
ld = loading;
fscommand ("showmenu", false);
fscommand ("allowscale", false);
fscommand ("wmode", "opaque");
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/zodiactower/download/";
}
if (orderURL == undefined) {
orderURL = rootURL + "product.php?action=order&product=zodiactower&from=webversion";
}
if (hiscoreURL == undefined) {
hiscoreURL = rootURL + "games/zodiactower/web/hiscore.php";
}
var _r;
var paused = false;
var curscreen = "none";
var curweapon = 0;
aimsrc.duplicateMovieClip("cursor", 15000);
var mouseState = false;
var prevMouseState = false;
var gameInit = true;
var score = 0;
var musicEnabled = true;
var soundEnabled = true;
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
function AIClass() {
this.Order = ["delay", "delay"];
this.turnDelay = 20;
this.shape = null;
this.timer = 0;
this.purpose = {X:0, Y:0, flag:false};
this.pointer = _root.attachMovie("AIpointer", "demoCursor", _root.getNextHighestDepth);
this.pointer._x = 240;
this.pointer._y = 180;
this.pointer.gotoAndStop("simple");
this.pointer._alpha = 70;
this.pointerVelocity = 5;
this.actionContinue = false;
this.rotation = 0;
this.tOfMotion = 0;
this.motionX0 = 0;
this.motionY0 = 0;
_root.hintPanel.hintText = _root.taskHintText;
}
cursor.gotoAndStop("hand");
story = preStory;
stop();
bg.gotoAndStop("bat");
bg.onPress = function () {
bg.onPress = null;
cursor.gotoAndStop("arrow");
gotoAndPlay ("map");
_root.playSound("click");
bg.onEnterFrame = null;
};
bg.onEnterFrame = function () {
updateMouse();
};
makeDisable = true;
specialFrequency = 0.15;
easyShapeFrequency = 0.15;
easyShapeFrequencyIncrement = 0;
bonusFrequency = 0.15;
demo = false;
shapeMaxLevel = 4;
discription0 = function () {
var _local1 = new Object();
_local1.itsColor = "?";
_local1.bonus = false;
_local1.block = false;
return(_local1);
};
discription1 = function () {
var _local1 = new Object();
_local1.itsColor = 1;
_local1.bonus = false;
_local1.block = false;
return(_local1);
};
discription2 = function () {
var _local1 = new Object();
_local1.itsColor = 2;
_local1.bonus = false;
_local1.block = false;
return(_local1);
};
discription3 = function () {
var _local1 = new Object();
_local1.itsColor = 3;
_local1.bonus = false;
_local1.block = false;
return(_local1);
};
discription4 = function () {
var _local1 = new Object();
_local1.itsColor = 4;
_local1.bonus = false;
_local1.block = false;
return(_local1);
};
discription5 = function () {
var _local1 = new Object();
_local1.itsColor = 5;
_local1.bonus = false;
_local1.block = false;
return(_local1);
};
discription6 = function () {
var _local1 = new Object();
_local1.itsColor = 6;
_local1.bonus = false;
_local1.block = false;
return(_local1);
};
discription7 = function () {
var _local1 = new Object();
_local1.itsColor = 7;
_local1.bonus = false;
_local1.block = false;
return(_local1);
};
discription8 = function () {
var _local1 = new Object();
_local1.itsColor = 8;
_local1.bonus = false;
_local1.block = false;
return(_local1);
};
discription9 = function () {
var _local1 = new Object();
_local1.itsColor = 9;
_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 = 100000 /* 0x0186A0 */;
BonusesEnable = [];
enabledColors = [0, 3, 10];
task = ["jewel", 300];
levelHints = [];
makeDisable = true;
specialFrequency = 0;
easyShapeFrequencyIncrement = 0;
demo = true;
shapeMaxLevel = 4;
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 = "......000000000.. ";
Line4 = ".....00000000000. ";
Line5 = ".....00000000000. ";
Line6 = ".....00000000000. ";
Line7 = ".....00000000000. ";
Line8 = ".....00000000000. ";
Line9 = "......000000000.. ";
Line10 = "................. ";
Line11 = "................. ";
Line12 = "................. ";
Line13 = ".................";
Fills = (((((((((((Line1 + Line2) + Line3) + Line4) + Line5) + Line6) + Line7) + Line8) + Line9) + Line10) + Line11) + Line12) + Line13;
};
doLevel2 = function () {
timeInterval = 960000 /* 0x0EA600 */;
BonusesEnable = [];
enabledColors = [0, 1, 7, 11, 5];
task = ["jewel", 300];
levelHints = [];
makeDisable = true;
easyShapeFrequencyIncrement = 0.07;
demo = false;
hintEnabled = 1;
shapeMaxLevel = 3;
Line1 = "................. ";
Line2 = "................. ";
Line3 = "................. ";
Line4 = "................. ";
Line5 = ".........77...... ";
Line6 = "........7117..... ";
Line7 = ".......171177.... ";
Line8 = "........1777..... ";
Line9 = "........1177..... ";
Line10 = "................. ";
Line11 = "................. ";
Line12 = "................. ";
Line13 = ".................";
Field = (((((((((((Line1 + Line2) + Line3) + Line4) + Line5) + Line6) + Line7) + Line8) + Line9) + Line10) + Line11) + Line12) + Line13;
Line1 = "................. ";
Line2 = "................. ";
Line3 = "................. ";
Line4 = "................. ";
Line5 = ".........00...... ";
Line6 = "........0000..... ";
Line7 = ".......000000.... ";
Line8 = "........0000..... ";
Line9 = "........0000..... ";
Line10 = "................. ";
Line11 = "................. ";
Line12 = "................. ";
Line13 = ".................";
Fills = (((((((((((Line1 + Line2) + Line3) + Line4) + Line5) + Line6) + Line7) + Line8) + Line9) + Line10) + Line11) + Line12) + Line13;
};
doLevel3 = function () {
timeInterval = 960000 /* 0x0EA600 */;
BonusesEnable = ["coin"];
enabledColors = [0, 1, 4, 7, 10];
task = ["jewel"];
levelHints = [];
specialFrequency = 0.15;
makeDisable = true;
easyShapeFrequencyIncrement = 0.03;
hintEnabled = 2;
shapeMaxLevel = 3;
discriptionc = function () {
var _local1 = new Object();
_local1.bonus = "coin";
_local1.block = false;
_local1.lock = false;
return(_local1);
};
Line1 = "................. ";
Line2 = "................. ";
Line3 = "................. ";
Line4 = ".......c1111c.... ";
Line5 = ".......144411c... ";
Line6 = ".......14..411... ";
Line7 = ".......14...41... ";
Line8 = ".......14...41... ";
Line9 = ".......14..411... ";
Line10 = ".......144411c... ";
Line11 = ".......c1111c.... ";
Line12 = "................. ";
Line13 = ".................";
Field = (((((((((((Line1 + Line2) + Line3) + Line4) + Line5) + Line6) + Line7) + Line8) + Line9) + Line10) + Line11) + Line12) + Line13;
Line1 = "................. ";
Line2 = "................. ";
Line3 = "................. ";
Line4 = ".......000000.... ";
Line5 = ".......0000000... ";
Line6 = ".......00..000... ";
Line7 = ".......00...00... ";
Line8 = ".......00...00... ";
Line9 = ".......00..000... ";
Line10 = ".......0000000... ";
Line11 = ".......000000.... ";
Line12 = "................. ";
Line13 = ".................";
Fills = (((((((((((Line1 + Line2) + Line3) + Line4) + Line5) + Line6) + Line7) + Line8) + Line9) + Line10) + Line11) + Line12) + Line13;
};
doLevel4 = function () {
timeInterval = 100000 /* 0x0186A0 */;
BonusesEnable = [];
enabledColors = [0, 2, 5];
task = ["cell"];
levelHints = [];
makeDisable = false;
easyShapeFrequencyIncrement = 0;
demo = true;
hintEnabled = false;
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 = "......1111.1111.. ";
Line4 = ".....11111111111. ";
Line5 = ".....11111111111. ";
Line6 = "......111111111.. ";
Line7 = ".......1111111... ";
Line8 = "........11111.... ";
Line9 = ".........111..... ";
Line10 = "................. ";
Line11 = "................. ";
Line12 = "................. ";
Line13 = ".................";
Fills = (((((((((((Line1 + Line2) + Line3) + Line4) + Line5) + Line6) + Line7) + Line8) + Line9) + Line10) + Line11) + Line12) + Line13;
};
doLevel5 = function () {
timeInterval = 1000000 /* 0x0F4240 */;
BonusesEnable = ["coin"];
enabledColors = [0, 5, 12, 2, 8];
task = ["cell"];
makeDisable = false;
easyShapeFrequencyIncrement = 0;
shapeMaxLevel = 3;
demo = false;
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 = "................ ";
Line4 = "......00011000.. ";
Line5 = "......0.1111.0.. ";
Line6 = "......01011010.. ";
Line7 = "......111..111.. ";
Line8 = "......111..111.. ";
Line9 = "......01011010.. ";
Line10 = "......0.1111.0.. ";
Line11 = "......00011000.. ";
Line12 = "................ ";
Line13 = "................";
Fills = (((((((((((Line1 + Line2) + Line3) + Line4) + Line5) + Line6) + Line7) + Line8) + Line9) + Line10) + Line11) + Line12) + Line13;
};
doLevel6 = function () {
timeInterval = 1000000 /* 0x0F4240 */;
enabledColors = [0, 1, 6, 12, 9];
BonusesEnable = ["coin", "bomb"];
task = ["cell"];
makeDisable = false;
easyShapeFrequencyIncrement = 0;
shapeMaxLevel = 3;
discriptionc = function () {
var _local1 = new Object();
_local1.bonus = "coin";
_local1.block = false;
_local1.lock = false;
return(_local1);
};
Line1 = "................. ";
Line2 = "................. ";
Line3 = "..........c...... ";
Line4 = "................. ";
Line5 = ".....1.........1. ";
Line6 = ".......1.....1... ";
Line7 = "................. ";
Line8 = ".........1.1..... ";
Line9 = "................. ";
Line10 = "................. ";
Line11 = "................. ";
Line12 = "................. ";
Line13 = ".................";
Field = (((((((((((Line1 + Line2) + Line3) + Line4) + Line5) + Line6) + Line7) + Line8) + Line9) + Line10) + Line11) + Line12) + Line13;
Line1 = "................. ";
Line2 = "................. ";
Line3 = "........10001.... ";
Line4 = "........11011.... ";
Line5 = ".....000.111.000. ";
Line6 = ".....2000.1.0002. ";
Line7 = ".......000.000... ";
Line8 = ".......2000002... ";
Line9 = ".........000..... ";
Line10 = ".........202..... ";
Line11 = "................. ";
Line12 = "................. ";
Line13 = ".................";
Fills = (((((((((((Line1 + Line2) + Line3) + Line4) + Line5) + Line6) + Line7) + Line8) + Line9) + Line10) + Line11) + Line12) + Line13;
};
doLevel7 = function () {
timeInterval = 100000 /* 0x0186A0 */;
BonusesEnable = ["bomb", "dynamite", "flash", "fillcolor", "magnet", "chainflash"];
enabledColors = [0, 4, 10];
task = ["block"];
levelHints = [];
makeDisable = false;
easyShapeFrequencyIncrement = 0;
demo = true;
discriptiona = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "perforacuya4";
_local1.lock = true;
return(_local1);
};
discriptionb = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "runes01_2";
_local1.lock = false;
return(_local1);
};
discriptionc = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "runes01_3";
_local1.lock = false;
return(_local1);
};
discriptionC = function () {
var _local1 = new Object();
_local1.bonus = "coin";
_local1.block = false;
_local1.lock = false;
return(_local1);
};
Line1 = "................. ";
Line2 = "................. ";
Line3 = "......abcbabcba.. ";
Line4 = ".....a000000000a. ";
Line5 = ".....b000bcb000b. ";
Line6 = ".....c000cac000c. ";
Line7 = ".....b000bcb000b. ";
Line8 = ".....a000000000a. ";
Line9 = "......abcbabcba.. ";
Line10 = "................. ";
Line11 = "................. ";
Line12 = "................. ";
Line13 = ".................";
Field = (((((((((((Line1 + Line2) + Line3) + Line4) + Line5) + Line6) + Line7) + Line8) + Line9) + Line10) + Line11) + Line12) + Line13;
Line1 = "................. ";
Line2 = "................. ";
Line3 = "......000000000.. ";
Line4 = ".....00000000000. ";
Line5 = ".....00000000000. ";
Line6 = ".....00000000000. ";
Line7 = ".....00000000000. ";
Line8 = ".....00000000000. ";
Line9 = "......000000000.. ";
Line10 = "................. ";
Line11 = "................. ";
Line12 = "................. ";
Line13 = ".................";
Fills = (((((((((((Line1 + Line2) + Line3) + Line4) + Line5) + Line6) + Line7) + Line8) + Line9) + Line10) + Line11) + Line12) + Line13;
};
doLevel8 = function () {
timeInterval = 800000 /* 0x0C3500 */;
enabledColors = [0, 1, 7, 11, 4];
BonusesEnable = ["coin"];
task = ["block"];
makeDisable = false;
easyShapeFrequencyIncrement = 0;
demo = false;
shapeMaxLevel = 3;
discriptiona = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "runes07";
_local1.lock = true;
return(_local1);
};
discriptionb = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "runes08";
_local1.lock = true;
return(_local1);
};
discriptionc = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "runes05b";
_local1.lock = true;
return(_local1);
};
discriptionC = function () {
var _local1 = new Object();
_local1.bonus = "coin";
_local1.block = false;
_local1.lock = false;
return(_local1);
};
Line1 = "................. ";
Line2 = "................. ";
Line3 = "................. ";
Line4 = "................. ";
Line5 = "................. ";
Line6 = "................. ";
Line7 = ".......bcacbac... ";
Line8 = "................. ";
Line9 = "................. ";
Line10 = "................. ";
Line11 = ".......a.c.a.b... ";
Line12 = "........b...c.... ";
Line13 = ".................";
Field = (((((((((((Line1 + Line2) + Line3) + Line4) + Line5) + Line6) + Line7) + Line8) + Line9) + Line10) + Line11) + Line12) + Line13;
Line1 = "................. ";
Line2 = "........0...0.... ";
Line3 = ".......000.000... ";
Line4 = "......000000000.. ";
Line5 = ".....000.000.000. ";
Line6 = "......000.0.000.. ";
Line7 = ".......0000000... ";
Line8 = "......000.0.000.. ";
Line9 = ".....000.000.000. ";
Line10 = "......000000000.. ";
Line11 = ".......000.000... ";
Line12 = "........0...0.... ";
Line13 = ".................";
Fills = (((((((((((Line1 + Line2) + Line3) + Line4) + Line5) + Line6) + Line7) + Line8) + Line9) + Line10) + Line11) + Line12) + Line13;
};
doLevel9 = function () {
timeInterval = 280000 /* 0x0445C0 */;
enabledColors = [0, 3, 4, 9, 10];
BonusesEnable = ["coin", "dynamite"];
task = ["cell"];
makeDisable = false;
easyShapeFrequencyIncrement = 0;
shapeMaxLevel = 4;
discriptionc = function () {
var _local1 = new Object();
_local1.bonus = "coin";
_local1.block = false;
_local1.lock = false;
return(_local1);
};
discriptiond = function () {
var _local1 = new Object();
_local1.bonus = "dynamite";
_local1.block = false;
_local1.lock = false;
return(_local1);
};
Line1 = "................. ";
Line2 = "................. ";
Line3 = ".......d..c..d... ";
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 = "......000000000.. ";
Line4 = ".......0.....0... ";
Line5 = "........0...0.... ";
Line6 = ".........0.0..... ";
Line7 = "........00000.... ";
Line8 = ".......0001000... ";
Line9 = "......221101122.. ";
Line10 = "........01110.... ";
Line11 = ".........000..... ";
Line12 = "................. ";
Line13 = ".................";
Fills = (((((((((((Line1 + Line2) + Line3) + Line4) + Line5) + Line6) + Line7) + Line8) + Line9) + Line10) + Line11) + Line12) + Line13;
};
doLevel10 = function () {
timeInterval = 340000 /* 0x053020 */;
enabledColors = [0, 4, 9, 10, 3];
BonusesEnable = ["coin"];
task = ["block"];
makeDisable = false;
easyShapeFrequencyIncrement = 0;
discriptiona = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "home11_2";
_local1.lock = true;
return(_local1);
};
discriptionb = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "home11_3";
_local1.lock = true;
return(_local1);
};
discriptionc = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "home10a";
_local1.lock = true;
return(_local1);
};
discriptiond = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "home11";
_local1.lock = true;
return(_local1);
};
discriptionw = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "kolona2_1";
_local1.lock = true;
return(_local1);
};
discriptionq = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "kolona1_1";
_local1.lock = true;
return(_local1);
};
discriptione = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "kolona3_1";
_local1.lock = true;
return(_local1);
};
discriptionC = function () {
var _local1 = new Object();
_local1.bonus = "coin";
_local1.block = false;
_local1.lock = false;
return(_local1);
};
Line1 = "................. ";
Line2 = "................. ";
Line3 = "......???...???.. ";
Line4 = "......??????????. ";
Line5 = ".......????????.. ";
Line6 = "........aaabcc... ";
Line7 = ".........aaab.... ";
Line8 = ".........q..q.... ";
Line9 = ".........w..w.... ";
Line10 = "........Ce..e.C.. ";
Line11 = ".........ddddddd. ";
Line12 = "................. ";
Line13 = ".................";
Field = (((((((((((Line1 + Line2) + Line3) + Line4) + Line5) + Line6) + Line7) + Line8) + Line9) + Line10) + Line11) + Line12) + Line13;
Line1 = "................. ";
Line2 = "................. ";
Line3 = "......000...000.. ";
Line4 = "......0000000000. ";
Line5 = ".......00000000.. ";
Line6 = "........000000... ";
Line7 = ".........0000.... ";
Line8 = ".........0000.... ";
Line9 = "........000000... ";
Line10 = "........0000000.. ";
Line11 = ".........0000000. ";
Line12 = "................. ";
Line13 = ".................";
Fills = (((((((((((Line1 + Line2) + Line3) + Line4) + Line5) + Line6) + Line7) + Line8) + Line9) + Line10) + Line11) + Line12) + Line13;
};
doLevel11 = function () {
timeInterval = 280000 /* 0x0445C0 */;
enabledColors = [0, 5, 12, 2, 7];
BonusesEnable = ["bomb", "coin"];
task = ["block"];
makeDisable = false;
easyShapeFrequencyIncrement = 0;
discriptiona = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "perforacuya1";
_local1.lock = true;
return(_local1);
};
discriptionb = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "perforacuya1";
_local1.lock = true;
return(_local1);
};
discriptionc = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "perforacuya2l";
_local1.lock = true;
return(_local1);
};
discriptiond = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "perforacuya2r";
_local1.lock = true;
return(_local1);
};
discriptione = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "perforacuya2rd";
_local1.lock = true;
return(_local1);
};
discriptionf = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "perforacuya2ld";
_local1.lock = true;
return(_local1);
};
discriptionl = function () {
var _local1 = new Object();
_local1.itsColor = 12;
_local1.bonus = false;
_local1.block = false;
return(_local1);
};
discriptionC = function () {
var _local1 = new Object();
_local1.bonus = "coin";
_local1.block = false;
_local1.lock = false;
return(_local1);
};
Line1 = "................. ";
Line2 = "................. ";
Line3 = ".....llllllllll.. ";
Line4 = ".....l555555555.. ";
Line5 = ".....l5caaaadll.. ";
Line6 = ".....l5b5555b5l.. ";
Line7 = ".....l5b5lClb5l.. ";
Line8 = ".....l5b5Cl5b5l.. ";
Line9 = ".....l5b5555b5l.. ";
Line10 = ".....l5faaaae5l.. ";
Line11 = ".....l55555555l.. ";
Line12 = ".....llllllllll.. ";
Line13 = ".................";
Field = (((((((((((Line1 + Line2) + Line3) + Line4) + Line5) + Line6) + Line7) + Line8) + Line9) + Line10) + Line11) + Line12) + Line13;
Line1 = "................. ";
Line2 = "................. ";
Line3 = ".....0000000000.. ";
Line4 = ".....0000000000.. ";
Line5 = ".....0000000000.. ";
Line6 = ".....0000000000.. ";
Line7 = ".....0000000000.. ";
Line8 = ".....0000000000.. ";
Line9 = ".....0000000000.. ";
Line10 = ".....0000000000.. ";
Line11 = ".....0000000000.. ";
Line12 = ".....0000000000.. ";
Line13 = ".................";
Fills = (((((((((((Line1 + Line2) + Line3) + Line4) + Line5) + Line6) + Line7) + Line8) + Line9) + Line10) + Line11) + Line12) + Line13;
};
doLevel12 = function () {
timeInterval = 320000 /* 0x04E200 */;
enabledColors = [0, 3, 12, 5, 8];
BonusesEnable = ["bomb", "coin"];
task = ["block"];
makeDisable = false;
easyShapeFrequencyIncrement = 0;
bonusFrequency = 0.3;
discriptiona = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "home11_6";
_local1.lock = false;
return(_local1);
};
discriptionb = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "home11_5";
_local1.lock = false;
return(_local1);
};
discriptionc = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "home11_5conerr";
_local1.lock = false;
return(_local1);
};
discriptiond = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "home11_5conerl";
_local1.lock = false;
return(_local1);
};
discriptione = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "home11_2";
_local1.lock = false;
return(_local1);
};
discriptionf = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "home11_3";
_local1.lock = false;
return(_local1);
};
discriptiong = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "home10a";
_local1.lock = false;
return(_local1);
};
discriptionh = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "home11";
_local1.lock = false;
return(_local1);
};
discriptionw = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "home11_4r";
_local1.lock = false;
return(_local1);
};
discriptionq = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "home11_4l";
_local1.lock = false;
return(_local1);
};
discriptionz = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "home11_4ld";
_local1.lock = false;
return(_local1);
};
discriptions = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "home11_4rd";
_local1.lock = false;
return(_local1);
};
discriptionC = function () {
var _local1 = new Object();
_local1.bonus = "coin";
_local1.block = false;
_local1.lock = false;
return(_local1);
};
Line1 = "................. ";
Line2 = "................. ";
Line3 = ".....?????C????.. ";
Line4 = ".....??dbbbbc??.. ";
Line5 = ".....?dbbbbbbc?.. ";
Line6 = ".....??eeefgg??.. ";
Line7 = ".....??eqwfgg??.. ";
Line8 = ".....??ezsggg??.. ";
Line9 = ".....??eefggg??.. ";
Line10 = ".....?hhhhhhhh?.. ";
Line11 = ".....??????????.. ";
Line12 = "................. ";
Line13 = ".................";
Field = (((((((((((Line1 + Line2) + Line3) + Line4) + Line5) + Line6) + Line7) + Line8) + Line9) + Line10) + Line11) + Line12) + Line13;
Line1 = "................. ";
Line2 = "................. ";
Line3 = ".....0000000000.. ";
Line4 = ".....0000000000.. ";
Line5 = ".....0000000000.. ";
Line6 = ".....0000000000.. ";
Line7 = ".....0000000000.. ";
Line8 = ".....0000000000.. ";
Line9 = ".....0000000000.. ";
Line10 = ".....0000000000.. ";
Line11 = ".....0000000000.. ";
Line12 = "................. ";
Line13 = ".................";
Fills = (((((((((((Line1 + Line2) + Line3) + Line4) + Line5) + Line6) + Line7) + Line8) + Line9) + Line10) + Line11) + Line12) + Line13;
};
doLevel13 = function () {
timeInterval = 220000 /* 0x035B60 */;
enabledColors = [0, 1, 10, 6, 9];
BonusesEnable = ["dynamite", "coin"];
task = ["cell"];
makeDisable = false;
easyShapeFrequencyIncrement = 0;
bonusFrequency = 0.15;
discriptiond = function () {
var _local1 = new Object();
_local1.bonus = "dynamite";
_local1.block = false;
_local1.lock = false;
return(_local1);
};
discriptionc = function () {
var _local1 = new Object();
_local1.bonus = "coin";
_local1.block = false;
_local1.lock = false;
return(_local1);
};
Line1 = "................. ";
Line2 = ".........????.... ";
Line3 = ".........?.????.. ";
Line4 = "........???..???. ";
Line5 = "........???...cc. ";
Line6 = ".......?????..... ";
Line7 = "......???d???.... ";
Line8 = ".....?????????... ";
Line9 = ".....??d?d?d??... ";
Line10 = ".....?????????... ";
Line11 = "......???d???.... ";
Line12 = ".......?????..... ";
Line13 = ".................";
Field = (((((((((((Line1 + Line2) + Line3) + Line4) + Line5) + Line6) + Line7) + Line8) + Line9) + Line10) + Line11) + Line12) + Line13;
Line1 = "................. ";
Line2 = ".........1000.... ";
Line3 = ".........1.0000.. ";
Line4 = "........111..000. ";
Line5 = "........111...00. ";
Line6 = ".......11211..... ";
Line7 = "......1111111.... ";
Line8 = ".....111121111... ";
Line9 = ".....111212111... ";
Line10 = ".....111121111... ";
Line11 = "......1111111.... ";
Line12 = ".......11111..... ";
Line13 = ".................";
Fills = (((((((((((Line1 + Line2) + Line3) + Line4) + Line5) + Line6) + Line7) + Line8) + Line9) + Line10) + Line11) + Line12) + Line13;
};
doLevel14 = function () {
timeInterval = 250000 /* 0x03D090 */;
enabledColors = [0, 1, 5, 8];
BonusesEnable = ["magnet", "coin"];
task = ["jewel"];
makeDisable = true;
easyShapeFrequencyIncrement = 0.09;
discriptionm = function () {
var _local1 = new Object();
_local1.bonus = "magnet";
_local1.itsColor = 8;
_local1.block = false;
_local1.lock = false;
return(_local1);
};
Line1 = "................. ";
Line2 = ".........8888.... ";
Line3 = "........888m88... ";
Line4 = ".........8888.... ";
Line5 = ".....55...88..... ";
Line6 = ".....555..1...... ";
Line7 = "......55..1..555. ";
Line8 = "........51..5555. ";
Line9 = ".........1.5555.. ";
Line10 = ".........1555.... ";
Line11 = "........1........ ";
Line12 = "........1........ ";
Line13 = ".................";
Field = (((((((((((Line1 + Line2) + Line3) + Line4) + Line5) + Line6) + Line7) + Line8) + Line9) + Line10) + Line11) + Line12) + Line13;
Line1 = "................. ";
Line2 = ".........0000.... ";
Line3 = "........000000... ";
Line4 = ".........0000.... ";
Line5 = ".....00...00..... ";
Line6 = ".....000..0...... ";
Line7 = "......00..0..000. ";
Line8 = "........00..0000. ";
Line9 = ".........0.0000.. ";
Line10 = ".........0000.... ";
Line11 = "........0........ ";
Line12 = "........0........ ";
Line13 = ".................";
Fills = (((((((((((Line1 + Line2) + Line3) + Line4) + Line5) + Line6) + Line7) + Line8) + Line9) + Line10) + Line11) + Line12) + Line13;
};
doLevel15 = function () {
timeInterval = 220000 /* 0x035B60 */;
enabledColors = [0, 9, 10, 2, 5];
BonusesEnable = ["flash", "coin"];
task = ["block"];
makeDisable = false;
easyShapeFrequencyIncrement = 0;
bonusFrequency = 0.3;
discriptiona = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "runes05b";
_local1.lock = true;
return(_local1);
};
discriptionb = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "runes03a";
_local1.lock = true;
return(_local1);
};
discriptionc = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "runes04a";
_local1.lock = true;
return(_local1);
};
discriptionB = function () {
var _local1 = new Object();
_local1.bonus = "bomb";
_local1.block = false;
_local1.lock = false;
return(_local1);
};
discriptionD = function () {
var _local1 = new Object();
_local1.bonus = "dynamite";
_local1.block = false;
_local1.lock = false;
return(_local1);
};
Line1 = "................. ";
Line2 = "................. ";
Line3 = ".....9999999999.. ";
Line4 = ".....9???bcaaa9.. ";
Line5 = ".....9?B??abDb9.. ";
Line6 = ".....9??B??abc9.. ";
Line7 = ".....9c??B??ab9.. ";
Line8 = ".....9ab??B??b9.. ";
Line9 = ".....9cba??B??9.. ";
Line10 = ".....9cDab??B?9.. ";
Line11 = ".....9cbabc???9.. ";
Line12 = ".....9999999999.. ";
Line13 = ".................";
Field = (((((((((((Line1 + Line2) + Line3) + Line4) + Line5) + Line6) + Line7) + Line8) + Line9) + Line10) + Line11) + Line12) + Line13;
Line1 = "................. ";
Line2 = "................. ";
Line3 = ".....0000000000.. ";
Line4 = ".....0000000000.. ";
Line5 = ".....0000000000.. ";
Line6 = ".....0000000000.. ";
Line7 = ".....0000000000.. ";
Line8 = ".....0000000000.. ";
Line9 = ".....0000000000.. ";
Line10 = ".....0000000000.. ";
Line11 = ".....0000000000.. ";
Line12 = ".....0000000000.. ";
Line13 = ".................";
Fills = (((((((((((Line1 + Line2) + Line3) + Line4) + Line5) + Line6) + Line7) + Line8) + Line9) + Line10) + Line11) + Line12) + Line13;
};
doLevel16 = function () {
timeInterval = 220000 /* 0x035B60 */;
enabledColors = [0, 5, 11, 2, 9];
BonusesEnable = ["chainflash", "coin"];
task = ["block"];
makeDisable = false;
easyShapeFrequencyIncrement = 0;
discriptiona = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "teleskop1";
_local1.lock = false;
return(_local1);
};
discriptionb = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "teleskop2";
_local1.lock = false;
return(_local1);
};
discriptionc = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "teleskop3";
_local1.lock = false;
return(_local1);
};
discriptiond = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "teleskop4";
_local1.lock = false;
return(_local1);
};
discriptione = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "teleskop5";
_local1.lock = false;
return(_local1);
};
discriptionf = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "teleskop6";
_local1.lock = false;
return(_local1);
};
discriptiong = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "teleskop7";
_local1.lock = false;
return(_local1);
};
discriptionh = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "teleskop8";
_local1.lock = false;
return(_local1);
};
discriptioni = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "teleskop9";
_local1.lock = false;
return(_local1);
};
discriptionj = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "teleskop10";
_local1.lock = false;
return(_local1);
};
discriptionk = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "teleskop11";
_local1.lock = false;
return(_local1);
};
discriptionl = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "teleskop12";
_local1.lock = false;
return(_local1);
};
discriptionm = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "teleskop13";
_local1.lock = false;
return(_local1);
};
discriptionn = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "teleskop14";
_local1.lock = false;
return(_local1);
};
discriptiono = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "teleskop15";
_local1.lock = false;
return(_local1);
};
discriptionP = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "teleskop16r";
_local1.lock = false;
return(_local1);
};
discriptionp = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "teleskop16l";
_local1.lock = false;
return(_local1);
};
discriptionq = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "teleskop17";
_local1.lock = false;
return(_local1);
};
discriptionr = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "teleskop18l";
_local1.lock = false;
return(_local1);
};
discriptions = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "teleskop18r";
_local1.lock = false;
return(_local1);
};
discriptiont = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "teleskop19d";
_local1.lock = false;
return(_local1);
};
discriptionu = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "teleskop19u";
_local1.lock = false;
return(_local1);
};
discriptionv = function () {
var _local1 = new Object();
_local1.bonus = false;
_local1.block = "teleskop20";
_local1.lock = false;
return(_local1);
};
Line1 = "................. ";
Line2 = "................. ";
Line3 = ".....??????????.. ";
Line4 = ".....abcdefhijk.. ";
Line5 = ".....??n???n???.. ";
Line6 = ".....?pmolomP??.. ";
Line7 = ".....????u?????.. ";
Line8 = ".......??v??..... ";
Line9 = ".......??v??..... ";
Line10 = ".......??t??..... ";
Line11 = "......??rqs??.... ";
Line12 = "......???????.... ";
Line13 = ".................";
Field = (((((((((((Line1 + Line2) + Line3) + Line4) + Line5) + Line6) + Line7) + Line8) + Line9) + Line10) + Line11) + Line12) + Line13;
Line1 = "................. ";
Line2 = "................. ";
Line3 = ".....0000000000.. ";
Line4 = ".....0000000000.. ";
Line5 = ".....0000000000.. ";
Line6 = ".....0000000000.. ";
Line7 = ".....0000000000.. ";
Line8 = ".......00000..... ";
Line9 = ".......00000..... ";
Line10 = ".......00000..... ";
Line11 = "......0000000.... ";
Line12 = "......0000000.... ";
Line13 = ".................";
Fills = (((((((((((Line1 + Line2) + Line3) + Line4) + Line5) + Line6) + Line7) + Line8) + Line9) + Line10) + Line11) + Line12) + Line13;
};
doLevel17 = function () {
timeInterval = 200000 /* 0x030D40 */;
enabledColors = [0, 5, 12, 3, 7];
BonusesEnable = ["fillcolor", "dynamite", "flash", "magnet", "coin"];
task = ["cell"];
makeDisable = false;
discriptionf = function () {
var _local1 = new Object();
_local1.bonus = "flash";
_local1.block = false;
_local1.lock = false;
return(_local1);
};
discriptionc = function () {
var _local1 = new Object();
_local1.bonus = "coin";
_local1.block = false;
_local1.lock = false;
return(_local1);
};
Line1 = "................. ";
Line2 = "................. ";
Line3 = ".....c...f.f...c. ";
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 = ".....00000000000. ";
Line4 = ".....011.212.110. ";
Line5 = ".....011.222.110. ";
Line6 = ".....00002120000. ";
Line7 = ".....0.110.011.0. ";
Line8 = ".....0.110.011.0. ";
Line9 = ".....00002120000. ";
Line10 = ".....000.212.000. ";
Line11 = ".....000.212.000. ";
Line12 = ".....00000000000. ";
Line13 = ".................";
Fills = (((((((((((Line1 + Line2) + Line3) + Line4) + Line5) + Line6) + Line7) + Line8) + Line9) + Line10) + Line11) + Line12) + Line13;
};
var numberOfLevel = 1;
var levelsNumber = 17;
var levelsDemo = 0;
var numofPause = 1;
var thisObj = this;
var elementSize = 32;
SCORE_BREAK_IRON = 4;
SCORE_BREAK_WOOD = 3;
SCORE_EXPLODE_BOMB = 15;
SCORE_EXPLODE_DYNAMITE = 15;
SCORE_SHOOT_CANNON_HORIZONTAL = 15;
SCORE_SHOOT_CANNON_VERTICAL = 15;
SCORE_CHAIN_FLASH = 15;
SCORE_SHOOT_CANNON_TOTAL = 20;
SCORE_ATTRACTION_CENTER = 20;
SCORE_FILL_WITH_COLOR = 20;
SCORE_COIN = 100;
SCORE_USE_KEY = 10;
SCORE_EXPLODE_BLOCK = 2;
CHANGE_JEWELS_TIME = 10;
NUMBER_OF_CHAINS = 5;
CHAINS_LENGTH = 10;
gameClass = function (level) {
this.numberOfLevel = level;
this.lastHintNumber = 0;
this.hintTime = 1500;
this.points = 0;
this.paused = false;
this.hintOn = false;
this.uptimer = 0;
this.finished = false;
this.finishedDemo = false;
this.rezult = false;
this.finishedTimer = 0;
this.noMovesTimer = 0;
this.doNothingTimer = 0;
this.giveHintPause = 80;
this.changeInterval = 0;
this.started = false;
this.hurryFlag = false;
};
gameClass.prototype.begin = function () {
_root.doLevel0();
_root["doLevel" + this.numberOfLevel]();
if (demo) {
levelsDemo++;
this.AI = new AIClass();
}
if (numberOfGame > 0) {
BonusesEnable = ["fillcolor", "dynamite", "flash", "magnet", "coin", "bomb", "chainflash"];
easyShapeFrequency = 0;
bonusFrequency = 0.15;
}
if ((numberOfGame < 2) && (this.numberOfLevel != 14)) {
enabledColors.splice(3, 2);
}
if ((numberOfGame == 2) && (this.numberOfLevel != 14)) {
enabledColors.splice(4, 1);
}
if (numberOfGame > 3) {
specialFrequency = 0;
}
if (numberOfGame > 4) {
BonusesEnable = [];
}
this.gameField = new gameFieldClass(Fills, Field, enabledColors, disableBonuses, task);
this.gameField.build();
progr.taskicon.gotoAndPlay(task[0]);
this.shapePanel = new shapePanelClass(easyShapeFrequencyIncrement, specialFrequency, shapeMaxLevel, easyShapeFrequency, bonusFrequency);
if (hintEnabled && (!demo)) {
this.giveHintPause = 8;
}
progr.update(0, 100);
if (demo) {
progr._visible = false;
} else {
progr._visible = true;
}
};
gameClass.prototype.beginPlay = function () {
this.started = true;
if (!demo) {
figure_but.enabled = true;
play_b.gotoAndStop("simple");
levelNum.gotoAndPlay("simple");
}
this.timer = new timerClass();
};
gameClass.prototype.restart = function () {
if (!this.finished) {
return(undefined);
}
this.timer = new timerClass();
this.finished = false;
this.AI.restart();
};
gameClass.prototype.update = function () {
this.uptimer++;
var _local3 = this.gameField;
if (this.uptimer == 3) {
if (_local3.removeGameItems()) {
if (this.doNothingTimer < this.giveHintPause) {
this.doNothingTimer = 0;
} else if (!this.paused) {
this.doNothingTimer++;
}
} else if (!this.paused) {
this.doNothingTimer++;
}
_local3.removeCells();
this.uptimer = 0;
if (((!this.throughOut) && (!makeDisable)) && (!this.finished)) {
_local3.formateAddGameItems();
_local3.makeNew();
}
if (_local3.WeaponItems.length) {
_local3.weaponsmoving = true;
} else {
_local3.weaponsmoving = false;
_local3.clearWillRemoves();
}
}
if (this.shapePanel.currentShapeCopy) {
this.noMovesTimer++;
} else {
this.noMovesTimer = 0;
}
if (this.noMovesTimer == 100) {
_local3.giveHint = true;
if ((!demo) && (!hintEnabled)) {
_local3.noMoves(this.shapePanel.currentShapeCopy);
}
this.noMovesTimer = 0;
}
if ((!this.paused) && (!this.finished)) {
_local3.sortGameItems();
_local3.motion();
this.shapePanel.update();
}
if ((demo && (!this.paused)) && (!this.finished)) {
this.AI.update();
}
if ((_local3.isFinish() && (!this.finished)) && (!demo)) {
this.finished = true;
this.rezult = true;
_local3.turnHurryUp(false);
_root.playSound("levelup");
_root.win._visible = true;
this.shapePanel.removeShapes();
_local3.hintItem.removeMovieClip();
_local3.removeField();
_root.figure_but.enabled = false;
_root.play_b.gotoAndStop("disable");
}
if (this.finished && (!demo)) {
this.finishedTimer++;
if (this.finishedTimer == 50) {
this.finish(this.rezult);
}
}
if ((this.timer.getTotalTime() >= timeInterval) && (!this.finished)) {
this.shapePanel.removeShapes();
_local3.hintItem.removeMovieClip();
_local3.turnHurryUp(false);
_local3.removeField();
this.finished = true;
if (!demo) {
_root.figure_but.enabled = false;
_root.play_b.gotoAndStop("disable");
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.timer.getTotalTime() > ((2 * timeInterval) / 3)) && (!this.hurryFlag)) && (!demo)) {
hurryup.gotoAndPlay("simple");
this.hurryFlag = true;
this.gameField.turnHurryUp(true);
}
}
if (this.doNothingTimer == this.giveHintPause) {
_local3.blickCells();
_local3.blickBlocks();
}
if (this.doNothingTimer >= (this.giveHintPause + 20)) {
this.doNothingTimer = 0;
}
};
gameClass.prototype.finish = function (rezult) {
_root.playMusic("menumusic");
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;
_root.figure_but.enabled = true;
}
} else {
this.timer.stopIt();
thisObj.Pause._visible = true;
_root.figure_but.enabled = false;
}
};
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.jewelsTotal = 0;
this.jewelsRemoved = 0;
this.giveHint = false;
this.numHA = 0;
this.hintItem = null;
this.hintArrowsItem = null;
this.sqrRadiusAffect = 5.29;
this.hurryupIntervalId = 0;
};
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.restart = function () {
this.numberOfItems = 0;
this.numberOfCircles = 0;
this.flamesNumber = 0;
this.cellsNumber = 0;
this.blocksRemoved = 0;
this.blocksTotal = 0;
this.fillsTotal = 0;
this.fillsRemoved = 0;
this.jewelsTotal = 0;
this.jewelsRemoved = 0;
this.cellsNumber = 0;
this.numberOfItems = 0;
this.GameItems = [];
this.AddGameItems = new Array();
this.FallingItems = new Array();
this.FallingInField = new Array();
this.RemovedCells = new Array();
this.build();
};
gameFieldClass.prototype.removeField = function () {
hintPanel.gotoAndPlay("off");
var _local5 = this.GameItems;
var _local3;
var _local4 = 0;
do {
_local3 = _local5[_local4];
if ((_local3.free || (_local3.removed)) || (_local3.newOne)) {
_local3.itsTarget.removeMovieClip();
_local5.splice(_local4, 1);
} else {
_local4++;
}
} while (_local4 < _local5.length);
for (_local4 in this.Bonuses) {
this.Bonuses[_local4].remove();
}
this.Bonuses = [];
this.MoveItems = [];
borders.i = 0;
borders.j = 0;
borders.jmax = this.Field[0].length - 1;
borders.imax = this.Field.length - 1;
borders.itsTarget = this;
borders.itemsCounter = 0;
borders.onEnterFrame = function () {
borders.j++;
if (borders.j == (borders.jmax + 10)) {
delete borders.onEnterFrame;
if (game.finishedDemo) {
_root.gotoAndPlay("demoPause");
} else if (demo) {
borders.itsTarget.restart();
}
}
if (borders.j >= borders.jmax) {
return(undefined);
}
borders.itsTarget.removeBorderItems(borders.itemsCounter, borders.jmax * 3);
borders.itemsCounter = borders.itemsCounter + (borders.jmax * 3);
var _local3;
var _local2 = 0;
while (_local2 < borders.imax) {
if (borders.itsTarget.Field[_local2][borders.j] != ".") {
_local3 = borders.itsTarget.Cells[_local2][borders.j];
_local3.jewel.itsTarget.removeMovieClip();
_local3.itsTarget.removeMovieClip();
}
_local2++;
}
};
};
gameFieldClass.prototype.build = function () {
hintPanel.gotoAndPlay("on");
this.Field = this.translator(this.SFields);
this.Fills = this.translator(this.SFills);
var _local3 = 0;
while (_local3 < (this.Field.length - 1)) {
this.graph[_local3] = new Array();
this.Specials[_local3] = new Array();
this.RemovedGuns[_local3] = new Array();
this.AddGameItems[_local3] = 0;
this.FallingItems[_local3] = new Array();
this.FallingInField[_local3] = 0;
var _local4 = 0;
while (_local4 < (this.Field[_local3].length - 1)) {
this.RemovedGuns[_local3][_local4] = false;
this.graph[_local3][_local4] = new Object();
_local4++;
}
_local3++;
}
borders.i = 0;
borders.jmax = this.Field[0].length - 1;
borders.imax = this.Field.length - 1;
borders.j = borders.jmax;
borders.itsTarget = this;
borders.onEnterFrame = function () {
borders.j--;
if (borders.j == -10) {
delete borders.onEnterFrame;
if (_root.demo) {
_root.game.restart();
} else {
borders.itsTarget.setFlyAways();
}
_root.game.beginPlay();
}
if (borders.j < 0) {
return(undefined);
}
var _local2 = 0;
while (_local2 < borders.imax) {
if (borders.itsTarget.Field[_local2][borders.j] != ".") {
borders.itsTarget.setCells(_local2, borders.j);
borders.itsTarget.setBGItems(_local2, borders.j);
}
if (borders.itsTarget.Fills[_local2][borders.j] != ".") {
borders.itsTarget.setFixedJewels(_local2, borders.j);
borders.itsTarget.setJewels(_local2, borders.j);
}
borders.itsTarget.setCorners(_local2, borders.j);
borders.itsTarget.setBorders(_local2, borders.j);
borders.itsTarget.setOthers(_local2, borders.j);
_local2++;
}
};
};
gameFieldClass.prototype.removeBorderItems = function (firstItemNumber, N) {
var i = firstItemNumber;
while (i <= (firstItemNumber + N)) {
var myitem = eval ("borders.item" + i);
myitem.gotoAndPlay("off");
i++;
}
};
gameFieldClass.prototype.setItemBorder = function (ii, jj, dir, n, rot) {
this.numberOfItems++;
borders.attachMovie(dir, "item" + this.numberOfItems, (n * 1000) + this.numberOfItems);
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", 2);
}
if (((this.Field[i][j] == ".") && (this.Field[i][j + 1] != ".")) && (this.Field[i][j + 1] != undefined)) {
this.setItemBorder(i, j + 1, "border-up", 2);
}
if (((this.Field[i][j] != ".") && (this.Field[i + 1][j] == ".")) && (this.Field[i][j] != undefined)) {
this.setItemBorder(i + 1, j, "border-right", 2);
}
if (((this.Field[i][j] != ".") && (this.Field[i][j + 1] == ".")) && (this.Field[i][j] != undefined)) {
this.setItemBorder(i, j + 1, "border-bottom", 2);
}
};
gameFieldClass.prototype.setBGItems = function (i, j) {
var GameItem;
var myitem;
var elementOfGF;
var NofItem;
var Parameters;
var dep = (1500 + this.cellsNumber);
borders.createEmptyMovieClip("elementOfGF" + this.cellsNumber, dep);
myitem = eval ("borders.elementOfGF" + this.cellsNumber);
myitem._x = this.getX(i);
myitem._y = this.getY(j);
this.cellsNumber++;
this.jewelsTotal++;
elementOfGF = new elementOfGameFieldClass();
if (this.Field[i][j] > 0) {
this.fillsTotal++;
}
elementOfGF.setIt(i, j, myitem, this.Field[i][j], this);
if (this.Cells[i] == undefined) {
this.Cells[i] = new Array();
}
this.Cells[i][j] = elementOfGF;
};
gameFieldClass.prototype.setFixedJewels = function (i, j) {
var GameItem;
var myitem;
var elementOfGF;
var NofItem;
var Parameters;
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);
}
};
gameFieldClass.prototype.setJewels = function (i, j) {
var GameItem;
var myitem;
var elementOfGF;
var NofItem;
var Parameters;
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);
}
};
gameFieldClass.prototype.setCorners = function (i, j) {
var _local4 = false;
var _local6 = false;
var _local5 = false;
var _local7 = false;
var _local8 = false;
var _local10 = false;
var _local9 = false;
var _local11 = 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 (this.Field[i - 1][j - 1] == ".") {
_local11 = true;
}
if (this.Field[i + 1][j - 1] == ".") {
_local9 = true;
}
if (this.Field[i - 1][j + 1] == ".") {
_local10 = true;
}
if (this.Field[i + 1][j + 1] == ".") {
_local8 = true;
}
if ((_local6 && (_local5)) && (_local11)) {
this.setItemBorder(i, j, "cornerleftup", 3, 0);
}
if ((_local4 && (_local5)) && (_local9)) {
this.setItemBorder(i + 1, j, "cornerrightup", 3, 0);
}
if ((_local6 && (_local7)) && (_local10)) {
this.setItemBorder(i, j + 1, "cornerleftdown", 3, 0);
}
if ((_local4 && (_local7)) && (_local8)) {
this.setItemBorder(i + 1, j + 1, "cornerrightdown", 3, 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] != ".") && (this.Field[i + 1][j])) {
_local5++;
_local2 = _local2 + "right";
}
if ((this.Field[i - 1][j] != ".") && (this.Field[i - 1][j])) {
_local5++;
_local2 = _local2 + "left";
}
if ((this.Field[i][j + 1] != ".") && (this.Field[i][j + 1])) {
_local5++;
_local2 = _local2 + "down";
}
if ((this.Field[i][j - 1] != ".") && (this.Field[i][j - 1])) {
_local5++;
_local2 = _local2 + "up";
}
switch (_local5) {
case 2 :
this.setItemBorder(i, j, "deco" + _local2, 4);
break;
case 3 :
this.setItemBorder(i, j, "deco" + _local2, 4);
break;
case 4 :
this.setItemBorder(i, j, "deco2", 4);
}
}
};
gameFieldClass.prototype.setCells = function (i, j) {
if (this.Field[i][j] != ".") {
remnant = ((i + j) % 2) + 1;
this.setItemBorder(i, j, "cell" + remnant, 1);
}
};
gameFieldClass.prototype.setFlyAways = function () {
var _local5;
var _local7;
var _local9;
var _local10;
var _local8 = 0;
var _local4;
_root.playSound("fallingstar1");
var _local6 = 0;
while (_local6 < (this.Field.length - 1)) {
var _local3 = 0;
while (_local3 < (this.Field[_local6].length - 1)) {
if (this.Field[_local6][_local3] != ".") {
_local5 = this.Cells[_local6][_local3];
_local4 = false;
if (_local5.fill) {
_local4 = "fill" + _local5.fill;
}
if (_local5.jewel.blockType) {
_local4 = _local5.jewel.blockType;
}
if (this.task[0] == "jewel") {
_local4 = "jewel" + _local5.jewel.itsColor;
}
if (_local4) {
_local7 = bonuses.attachMovie("flyAway", "flyAway" + _local8, bonuses.getNextHighestDepth());
_local7._x = this.getX(_local6);
_local7._y = this.getY(_local3);
_local7.attachMovie(_local4, "Target", 0);
_local7.setPurpose(113, 10);
_local8++;
}
}
_local3++;
}
_local6++;
}
};
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.jewelsTotal) {
_local2 = false;
}
progr.update(this.jewelsRemoved, this.jewelsTotal);
}
return(_local2);
};
gameFieldClass.prototype.turnHurryUp = function (flag) {
function hurryUp() {
_root.playSound("hurryup");
}
if ((!this.hurryupIntervalId) && (flag)) {
var _local3 = setInterval(hurryUp, 2000);
this.hurryupIntervalId = _local3;
}
if (this.hurryupIntervalId && (!flag)) {
clearInterval(this.hurryupIntervalId);
this.hurryupIntervalId = 0;
}
};
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 (shape) {
var _local4 = false;
var _local11 = 0;
var _local5 = 0;
var _local12 = 0;
var _local17 = this.Field;
var _local14 = this.Cells;
var _local16 = this.Field.length;
var _local15;
var _local10 = [];
var _local3 = {flag:false, X:0, Y:0, k:0};
var _local13 = _local17[1].length;
var _local9 = [];
var _local6 = false;
var _local8;
var _local7;
do {
_local11++;
_local5 = 0;
_local8 = this.getX(_local11);
do {
_local5++;
_local15 = _local14[_local11][_local5];
_local7 = this.getY(_local5);
_local12 = 0;
if (demo || (hintEnabled)) {
_local4 = false;
}
_local6 = false;
do {
if (!_local4) {
if ((shape.getWidth() == 1) || (shape.getWidth() == 3)) {
shape._x = _local8 + (elementSize / 2);
} else {
shape._x = _local8;
}
if ((shape.getHeight() == 1) || (shape.getHeight() == 3)) {
shape._y = _local7 + (elementSize / 2);
} else {
shape._y = _local7;
}
_local10 = this.buildGraph(shape);
_local4 = _local10.length;
}
if ((_local4 && (!_local6)) && ((this.giveHint || (demo)) || (hintEnabled))) {
this.giveHint = false;
_local6 = true;
_local3 = new Object();
_local3.X = shape._x;
_local3.Y = shape._y;
_local3.k = _local12;
_local9[_local9.length] = _local3;
}
shape.rotateSimple();
_local12++;
} while (_local12 < 4);
} while (_local5 < _local13);
} while (_local11 < _local16);
if (_local9.length) {
_local11 = Math.round(Math.random() * (_local9.length - 1));
_local3 = _local9[_local11];
_local3.flag = true;
shape._x = _local3.X;
shape._y = _local3.Y;
_local12 = 0;
while (_local12 < _local3.k) {
shape.rotateSimple();
_local12++;
}
_local10 = this.buildGraph(shape);
this.activateShape(shape, true);
_local3.Rotation = shape.Rotation;
if (_local3.k) {
game.shapePanel.giveHint("toRotateShape");
} else {
game.shapePanel.giveHint("playField");
}
delete _local3.k;
} else {
game.shapePanel.giveHint("toPutBack");
}
return(_local3);
};
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.removeGraph = function (i, j) {
var _local4 = this.graphToRemove;
var _local2 = 1;
var _local6 = _local4.length;
var _local5 = this.Cells;
var _local7 = _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;
this.giveBonus(_local4.N, i, j);
};
gameFieldClass.prototype.activateShape = function (shape, blick) {
if (game.paused) {
return(undefined);
}
var _local2 = 0;
var _local7 = this.ActiveGraph;
var _local3 = this.buildGraph(shape);
var _local6 = this.Cells;
var _local5 = _local3.length == _local7.length;
if (!_local3.length) {
this.ActiveGraph = [];
return(undefined);
}
if (_local5) {
do {
if (_local3[_local2] != _local7[_local2]) {
_local5 = false;
}
_local2++;
} while (_local5 && (_local2 < _local3.length));
}
if (!_local5) {
_local2 = 0;
do {
var _local4 = _local6[_local3[_local2].i][_local3[_local2].j];
_local4.inActiveGraph = false;
_local2++;
} while (_local2 < _local3.length);
_local2 = 0;
do {
_local4 = _local6[_local3[_local2].i][_local3[_local2].j];
if (blick) {
_local4.jewel.blick();
} else {
_local4.jewel.activate();
}
_local4.inActiveGraph = true;
_local2++;
} while (_local2 < _local3.length);
this.ActiveGraph = _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.blickBlocks = function () {
if (((-this.blocksRemoved) + this.blocksTotal) < 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].jewel.blockType) {
this.Cells[_local3][_local2].jewel.blick();
}
_local2--;
}
_local3--;
}
}
};
gameFieldClass.prototype.buildGraph = function (shape) {
var _local5 = 0;
var _local16;
var _local2;
var _local12;
var _local11;
var _local4 = true;
var _local7 = [];
var _local8 = shape.getMatrix();
var _local14 = _local8.length;
var _local10 = _local8[0].length;
var _local13 = this.Cells;
var _local15;
_local12 = this.getI(shape._x - (((_local14 - 1) / 2) * elementSize));
_local11 = this.getJ(shape._y - (((_local10 - 1) / 2) * elementSize));
var _local6 = 0;
_local5 = 0;
while (_local5 < _local14) {
var _local3 = 0;
while (_local3 < _local10) {
_local2 = _local13[_local12 + _local5][_local11 + _local3];
if (_local8[_local5][_local3]) {
if (!_local2) {
_local4 = false;
}
if (_local2.jewel.blockType) {
_local4 = false;
}
if (!_local2.jewel) {
_local4 = false;
}
_local7[_local7.length] = _local2;
_local2 = _local2.jewel;
} else {
_local2 = null;
}
if ((!_local6) && (_local2.itsColor)) {
_local6 = _local2.itsColor;
}
if ((((_local2.itsColor != _local6) && (!_local2.bonusType)) && (_local2)) && (!shape.isSpecial)) {
_local4 = false;
}
_local3++;
}
_local5++;
}
if (!_local4) {
_local7 = [];
} else {
return(_local7);
}
};
gameFieldClass.prototype.putShape = function (shape) {
var _local6 = 0;
var _local3 = this.buildGraph(shape);
var _local10 = _local3.length;
var _local7 = this.Cells;
var _local2;
var _local5;
var _local4;
var _local9;
var _local8;
if (_local10) {
_local9 = _local3[0].i;
_local8 = _local3[0].j;
}
if (_local10 && (!shape.bonusType)) {
for (_local6 in _local3) {
this.prepareForRemoving(_local3[_local6]);
_local5 = _local3[_local6].i;
_local4 = _local3[_local6].j;
_local2 = _local7[_local5 + 1][_local4];
if (_local2.jewel.blockType) {
this.prepareForRemoving(_local2);
}
_local2 = _local7[_local5][_local4 + 1];
if (_local2.jewel.blockType) {
this.prepareForRemoving(_local2);
}
_local2 = _local7[_local5 - 1][_local4];
if (_local2.jewel.blockType) {
this.prepareForRemoving(_local2);
}
_local2 = _local7[_local5][_local4 - 1];
if (_local2.jewel.blockType) {
this.prepareForRemoving(_local2);
}
}
}
if (_local10 && (shape.bonusType)) {
_local9 = _local3[0].i;
_local8 = _local3[0].j;
if (_local3[0].jewel.bonusType) {
_local10 = false;
} else {
switch (shape.bonusType) {
case "killone" :
this.prepareForRemoving(_local3[0]);
break;
case "bomb" :
this.explosionofBomb(_local9, _local8);
this.prepareForRemoving(_local3[0]);
break;
case "dynamite" :
this.explosionofDynamite(_local9, _local8);
this.prepareForRemoving(_local3[0]);
break;
case "flash" :
this.explosionofFlash(_local9, _local8);
break;
case "fillcolor" :
this.fillWithColor(_local9, _local8);
break;
case "magnet" :
this.setAttractionCenter(_local9, _local8);
break;
case "chainflash" :
this.set\u0421hainFlash(_local9, _local8);
}
}
}
if (_local10) {
this.giveBonus(shape.level * shape.level, _local9, _local8);
}
return(_local10);
};
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) {
GameItem = this.addGameItem("?", false, false);
x = this.getX(i) + (elementSize / 2);
y = this.getY(1) + (elementSize * ((0.5 + j) - 15));
GameItem.setXY(x, y);
this.FallingItems[i][this.FallingItems[i].length] = GameItem;
};
gameFieldClass.prototype.upDot = function (i, j) {
var _local3 = j;
var _local7 = true;
var _local4 = this.Cells;
var _local2;
if ((j > 0) && (j < this.Field[i].length)) {
do {
_local3--;
_local2 = _local4[i][_local3];
} while (_local2 && (!(_local2.jewel.block && (!_local2.jewel.willRemove))));
}
return(_local3);
};
gameFieldClass.prototype.fullColumnUp = function (i, j) {
var _local2 = j;
var _local4 = true;
var _local7 = this.Cells;
var _local5 = this.Field;
if (j > 0) {
do {
_local2--;
} while (_local5[i][_local2] != ".");
}
if (_local2 > 0) {
do {
_local2--;
if (_local5[i][_local2] != ".") {
_local4 = false;
}
} while (_local2 > 0);
}
_local2 = 0;
while (_local2 <= j) {
if (_local7[i][_local2].jewel.block) {
_local4 = false;
}
_local2++;
}
return(_local4);
};
gameFieldClass.prototype.setFreeUps = function (I, J) {
var _local3 = true;
var _local4;
var _local8;
var _local2;
var _local9;
var _local6 = this.Cells;
_local4 = this.upDot(I, J);
_local2 = J;
while (_local2 > _local4) {
if (_local6[I][_local2].jewel.willRemove) {
_local3 = false;
}
if (_local6[I][_local4].jewel.willRemove) {
_local3 = false;
}
_local2--;
}
_local8 = I;
return(_local3);
};
gameFieldClass.prototype.removeGameItems = function () {
var _local2 = 0;
var _local10;
var _local5 = false;
var _local4;
var _local7;
var _local8;
var _local12;
var _local9;
var _local11;
var _local3 = this.GameItems;
var _local6 = this.Cells;
do {
if (_local3[_local2].removed) {
_local5 = true;
_local4 = _local3[_local2];
_local7 = this.setFreeUps(_local4.i, _local4.j);
_local6[_local4.i][_local4.j].setFree();
this.jewelsRemoved++;
delete _local3[_local2];
_local3.splice(_local2, 1);
_local2--;
}
_local2++;
} while (_local2 < _local3.length);
return(_local5);
};
gameFieldClass.prototype.formateAddGameItems = function () {
var _local6 = [];
var _local3;
var _local4;
var _local7 = this.AddGameItems;
var _local8 = this.Field;
var _local10 = this.Cells;
var _local9 = this.FallingInField;
var _local11 = this.FallingItems;
var _local12 = this.Field.length - 1;
var _local5;
var _local2 = 1;
while (_local2 < _local12) {
_local7[_local2] = 0;
_local3 = 0;
_local5 = _local8[_local2].length - 1;
do {
_local3++;
_local4 = _local8[_local2][_local3];
} while ((_local3 < _local5) && (_local4 == "."));
_local6[_local2] = 0;
_local4 = _local10[_local2][_local3];
if (((_local3 < _local5) && (_local4.empty)) && ((!_local4.located) || (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("explosion");
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("bonusdynamite");
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["set\u0421hainFlash"] = function (i, j) {
var myItem;
var cell;
var Cells = this.Cells;
var clength = Cells.length;
cell = Cells[i][j];
this.prepareForRemoving(cell);
cell = Cells[i + 1][j];
this.prepareForRemoving(cell);
cell = Cells[i - 1][j];
this.prepareForRemoving(cell);
cell = Cells[i][j + 1];
this.prepareForRemoving(cell);
cell = Cells[i][j - 1];
this.prepareForRemoving(cell);
this.flamesNumber++;
thisObj.bonuses.attachMovie("chainlighting", "flame" + this.flamesNumber, thisObj.bonuses.getNextHighestDepth());
myItem = eval ("bonuses.flame" + this.flamesNumber);
thisObj.bonuses.attachMovie("glowing", "glowing" + this.flamesNumber, thisObj.bonuses.getNextHighestDepth());
var myGlowing = eval ("bonuses.glowing" + this.flamesNumber);
myItem.glowing = myGlowing;
var jFirst = 1;
var iFirst = (clength - i);
myItem.height0 = myItem._height;
var ri = Math.sqrt(((i - iFirst) * (i - iFirst)) + ((j - jFirst) * (j - jFirst)));
var K = ((ri * elementSize) / myItem.height0);
myItem._yscale = K * 100;
myItem._xscale = K * 100;
myItem._x = this.getX(iFirst) + (0.5 * elementSize);
myItem._y = this.getY(jFirst) + (0.5 * elementSize);
myItem._rotation = ((-Math.atan((i - iFirst) / (j - jFirst))) * 180) / Math.PI;
myItem.i = i;
myItem.j = j;
myItem.count = 0;
myItem.Nflash = 0;
myItem.glowing._x = this.getX(i) + (0.5 * elementSize);
myItem.glowing._y = this.getY(j) + (0.5 * elementSize);
myItem.glowing._yscale = K * 100;
myItem.glowing._xscale = K * 100;
var turnOn = true;
_root.playSound("bonuschain");
this.giveBonus(SCORE_CHAIN_FLASH, i, j);
myItem.onEnterFrame = function () {
this.count++;
if (this.count == 10) {
this.count = 0;
turnOn = game.gameField.newFlashOf\u0421hain(this);
if (!turnOn) {
delete this.onEnterFrame;
this.glowing.removeMovieClip();
this.removeMovieClip();
} else {
_root.playSound("bonuschain");
}
}
};
};
gameFieldClass.prototype["newFlashOf\u0421hain"] = function (flash) {
var _local10 = true;
var _local8;
var _local7;
var _local5;
var _local4;
var _local9 = this.Cells;
var _local3;
var _local6 = 0;
flash.Nflash++;
if (flash.Nflash >= NUMBER_OF_CHAINS) {
return(false);
}
do {
_local6++;
_local8 = Math.round(Math.random() * CHAINS_LENGTH);
_local7 = Math.round(Math.random() * CHAINS_LENGTH);
_local5 = (flash.i - Math.round(CHAINS_LENGTH / 2)) + _local8;
_local4 = (flash.j - Math.round(CHAINS_LENGTH / 2)) + _local7;
_local3 = _local9[_local5][_local4];
} while (((_local3.empty || (!_local3)) || (_local3.jewel.blockType)) && (_local6 < 100));
if (_local6 < 100) {
flash._yscale = 100;
flash._xscale = 100;
var _local12 = Math.sqrt(((_local5 - flash.i) * (_local5 - flash.i)) + ((_local4 - flash.j) * (_local4 - flash.j)));
var _local11 = (_local12 * elementSize) / flash.height0;
flash._yscale = _local11 * 100;
flash.glowing._yscale = _local11 * 100;
flash._x = this.getX(flash.i) + (elementSize / 2);
flash._y = this.getY(flash.j) + (elementSize / 2);
flash._rotation = ((-Math.atan((_local5 - flash.i) / (_local4 - flash.j))) * 180) / Math.PI;
if (flash.j > _local4) {
flash._rotation = flash._rotation + 180;
}
flash.glowing._x = this.getX(_local5) + (0.5 * elementSize);
flash.glowing._y = this.getY(_local4) + (0.5 * elementSize);
flash.i = _local5;
flash.j = _local4;
this.prepareForRemoving(_local3);
_local3 = _local9[_local5 + 1][_local4];
this.prepareForRemoving(_local3);
_local3 = _local9[_local5 - 1][_local4];
this.prepareForRemoving(_local3);
_local3 = _local9[_local5][_local4 + 1];
this.prepareForRemoving(_local3);
_local3 = _local9[_local5][_local4 - 1];
this.prepareForRemoving(_local3);
} else {
_local10 = false;
}
return(_local10);
};
gameFieldClass.prototype.fillWithColor = function (i, j) {
var _local11;
var _local3;
var _local8 = this.Cells;
var _local10 = _local8.length - 1;
var _local7;
var _local4;
var _local9 = _local8[i][j].jewel.itsColor;
I = _local10;
while (I >= 1) {
_local4 = _local8[I].length - 1;
if ((!isNaN(_local4)) && (_local4)) {
J = _local4;
while (J >= 1) {
_local3 = _local8[I][J];
_local7 = ((I - i) * (I - i)) + ((J - j) * (J - j));
if (((_local7 <= this.sqrRadiusAffect) && (!_local3.empty)) && (_local3)) {
_local3.jewel.changeColor(_local9);
}
J--;
}
}
I--;
}
this.giveBonus(SCORE_FILL_WITH_COLOR, i, j);
_root.playSound("bonusbrush");
};
gameFieldClass.prototype.setAttractionCenter = function (i, j) {
var _local12;
var _local5;
var _local8 = this.Cells;
var _local10 = _local8.length - 1;
var _local7;
var _local6;
var _local9 = _local8[i][j].jewel.itsColor;
I = _local10;
while (I >= 1) {
_local6 = _local8[I].length - 1;
if ((!isNaN(_local6)) && (_local6)) {
J = _local6;
while (J >= 1) {
_local5 = _local8[I][J];
_local7 = ((I - i) * (I - i)) + ((J - j) * (J - j));
if ((_local7 <= this.sqrRadiusAffect) && (_local5.jewel.itsColor == _local9)) {
_local5.jewel.setAttraction(i, j);
}
J--;
}
}
I--;
}
if (!bonuses[("explosion" + i) + j]) {
var _local11 = bonuses.attachMovie("explosion", ("explosion" + i) + j, bonuses.getNextHighestDepth());
} else {
var _local11 = bonuses[("explosion" + i) + j];
}
_local11.count = 0;
_local11._x = this.getX(i) + (elementSize / 2);
_local11._y = this.getY(j) + (elementSize / 2);
_local11.onEnterFrame = function () {
this.count++;
if (this.count > 20) {
delete this.onEnterFrame;
this.gotoAndPlay("play");
_root.playSound("explosion");
}
};
this.giveBonus(SCORE_ATTRACTION_CENTER, i, j);
_root.playSound("bonusmagnet");
};
gameFieldClass.prototype.takeCoin = function (i, j) {
this.giveBonus(SCORE_COIN, i, j - 1);
if (!bonuses[("stars" + i) + j]) {
var _local4 = bonuses.attachMovie("stars_up", ("stars" + i) + j, bonuses.getNextHighestDepth());
} else {
var _local4 = bonuses[("stars" + i) + j];
}
_local4._x = this.getX(i) + (elementSize / 2);
_local4._y = this.getY(j) + (elementSize / 2);
};
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);
if (!N) {
N = 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.located)) && (_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) && (!makeDisable)) {
_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) && (!makeDisable)) {
_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)) + 0.25));
};
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)) - 0.25)));
};
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;
this.itsTarget.bonus.inField = true;
} else 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 () {
this.itsTarget.jewel.activate();
};
gameItemClass.prototype.blick = function () {
if (this.blockType) {
this.itsTarget.block.activate1();
} else if (this.bonusType) {
this.itsTarget.bonus.activate1();
} else {
this.itsTarget.jewel.activate1();
}
};
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.setAttraction = function (i, j) {
if (!this.itsColor) {
return(undefined);
}
this.lock = true;
this.itsTarget.jewel.count = 0;
this.itsTarget.jewel.speedX = ((i - this.i) * elementSize) / CHANGE_JEWELS_TIME;
this.itsTarget.jewel.speedY = ((j - this.j) * elementSize) / CHANGE_JEWELS_TIME;
this.itsTarget.jewel.targetObject = this;
this.itsTarget.jewel.onEnterFrame = function () {
this.count++;
if (this.count <= 10) {
this._rotation = this._rotation + (360 / CHANGE_JEWELS_TIME);
} else if (this.count <= 20) {
this._x = this._x + this.speedX;
this._y = this._y + this.speedY;
} else {
delete this.onEnterFrame;
game.gameField.put(this.targetObject, this.targetObject.i, this.targetObject.j, false);
this.targetObject.del();
}
};
};
gameItemClass.prototype.changeColor = function (newColor) {
if (!this.itsColor) {
return(undefined);
}
this.itsColor = newColor;
this.itsTarget.jewel.onEnterFrame = function () {
this._alpha = this._alpha - (100 / (CHANGE_JEWELS_TIME * 1.5));
this._xscale = this._xscale + (100 / (CHANGE_JEWELS_TIME * 1.5));
this._yscale = this._yscale + (100 / (CHANGE_JEWELS_TIME * 1.5));
if (this._alpha <= 0) {
delete this.onEnterFrame;
this.removeMovieClip();
}
};
this.itsTarget.jewel._name = "oldJewel";
this.itsTarget.attachMovie("jewel" + this.itsColor, "jewel", this.itsTarget.getNextHighestDepth());
this.itsTarget.jewel._alpha = 0;
this.itsTarget.jewel.onEnterFrame = function () {
this._alpha = this._alpha + (100 / (CHANGE_JEWELS_TIME * 1.5));
if (this._alpha >= 100) {
this._alpha = 100;
delete this.onEnterFrame;
}
};
};
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();
break;
case "coin" :
this.gameField.takeCoin(this.i, this.j);
_root.playSound("bonuscash");
this.remove();
break;
case "fillcolor" :
this.gameField.fillWithColor(this.i, this.j);
this.remove();
break;
case "magnet" :
this.gameField.setAttractionCenter(this.i, this.j);
this.remove();
break;
case "chainflash" :
this.gameField.set\u0421hainFlash(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.lock)) {
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 ((("borders." + 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 ((!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;
};
shapePanelClass = function (easyShapeFrequencyIncrement, specialFrequency, shapeMaxLevel, easyShapeFrequency, bonusFrequency) {
this.gameField = game.gameField;
this.Shapes = new Array();
this.Fill = new Array();
this.newShape = null;
this.currentShape = null;
this.currentShapeCopy = null;
this.iTimer = 0;
this.shapeSpawnPause = 60;
this.spawnTimer = this.shapeSpawnPause;
this.shapeHeatingPower = 0.9;
this.shapeHeatingPause = 100;
this.giveNewEnable = true;
this.rotateEnable = true;
this.easyShapeFrequency = easyShapeFrequency;
this.easyShapeFrequencyIncrement = easyShapeFrequencyIncrement;
this.easyShapeFrequencyMax = 0.8;
this.easyShapeLevel = 2;
this.bonusFrequency = bonusFrequency;
this.bonusEnable = BonusesEnable.length;
this.specialFrequency = specialFrequency;
this.specialFrequencyIncrement = 0;
this.ShapeLevels = [10, 1, 2, 4, 10, 13];
this.shapeMaxLevel = shapeMaxLevel;
this.takeShapeTime = 5;
this.takeShapeTimer = 0;
this.X0 = 56;
this.Y0 = -20;
this.cellSize = 24;
this.fillLength = 15;
this.currentFillLength = 0;
this.rotationTime = 4;
this.rotateTimer = 0;
this.FallingN = 0;
this.lineTarget = null;
this.currentI = 0;
this.currentJ = 0;
this.rightX = 120;
this.dh = 0.5;
this.dy = this.dh * this.cellSize;
this.giveHintPause = 40;
this.giveHintTimer = 0;
this.lastShapeNumber = 0;
};
shapePanelClass.prototype.update = function () {
this.spawnTimer++;
var _local7 = 0;
var _local3 = this.Shapes;
var _local4 = this.newShape;
if (this.currentShape) {
_local7 = this.currentShape.getHeight() + 1;
}
this.giveNewEnable = (((this.currentFillLength + _local7) - Math.floor(this.Shapes.length / 2)) + 1) < (this.fillLength - 3);
this.rotateEnable = ((this.currentFillLength + _local7) - Math.floor(this.Shapes.length / 2)) < this.fillLength;
if (this.giveNewEnable) {
play_b.gotoAndStop("simple");
if (!demo) {
_root.figure_but.enabled = true;
}
} else {
play_b.gotoAndStop("disable");
_root.figure_but.enabled = false;
if (!demo) {
_root.cursor.gotoAndStop("arrow");
}
}
if (_local4) {
if (((_local4.getJ() + this.currentFillLength) + 1) < this.fillLength) {
var _local5 = _local4.getJ() + 1;
}
if (((_local5 + this.currentFillLength) + 1) < this.fillLength) {
if (((this.rotateTimer == 0) && (_local4.rotationEnabled)) && ((_local4.rotationPurpose != _local4.Rotation) || (_local5 <= 1))) {
_local4.rotate(this.rotationTime);
}
this.rotateTimer++;
var _local9 = _local4.getHeight();
var _local10 = (this.getY(_local5 - 1, _local3.length) + this.cellSize) - (((_local9 - 1) / 2) * this.cellSize);
_local4._y = _local10;
_local4.setJ(_local5);
if (this.rotateTimer == this.rotationTime) {
this.rotateTimer = 0;
}
} else {
if (_local4.rotationEnabled) {
_local4.setRotation(_local4.rotationPurpose);
delete _local4.rotationPurpose;
delete _local4.rotationEnabled;
}
_root.playSound("figureplacing");
var _local9 = _local4.getHeight();
_local3.push(_local4);
this.renewShapes();
var _local10 = this.getY(_local4.getJ(), this.newShape.N) - (((_local9 - 1) / 2) * this.cellSize);
_local4._y = _local10;
_local4._y = _local4._y + (this.cellSize - this.dy);
this.currentFillLength = this.currentFillLength + (_local9 + 1);
this.newShape = null;
this.rotateTimer = 0;
if (!demo) {
this.turnShapes(0, true);
}
}
} else if (((this.spawnTimer >= this.shapeSpawnPause) && (this.giveNewEnable)) && (!this.FallingN)) {
this.giveNewShape();
}
if (((!this.newShape) && (!this.FallingN)) && (!this.giveNewEnable)) {
this.iTimer++;
}
if (this.iTimer == this.shapeHeatingPause) {
this.iTimer = 0;
for (var _local6 in _local3) {
_local3[_local6].changeTemperature((-this.shapeHeatingPower) * 0.5);
}
if (_local3[0].changeTemperature(this.shapeHeatingPower * 1.5) && (_local3.length)) {
this.FallingN = 1;
var _local9 = _local3[0].getHeight();
this.currentFillLength = this.currentFillLength - (_local9 + 1);
var _local8 = _local3[0];
_local3.splice(0, 1);
if (!_local8.isSpecial) {
_root.playSound("figurebreak");
} else {
_root.playSound("lavafigurebreak");
}
_local8.shardIt();
this.renewShapes();
this.turnShapes(0, false);
this.spawnTimer = 0;
}
}
if (this.FallingN) {
this.fallHigherShapes();
}
for (var _local6 in _local3) {
if (!_local3[_local6].releaseEnable) {
this.takeShapeTimer++;
if (this.takeShapeTimer == this.takeShapeTime) {
_local3[_local6].releaseEnable = true;
}
}
}
if (this.currentShape) {
this.followCurrentShape();
this.gameField.activateShape(this.currentShape, false);
if ((this.takeShapeTimer == this.takeShapeTime) && (!this.currentShape.releaseEnable)) {
this.currentShape.releaseEnable = true;
this.takeShapeTimer = 0;
}
if (!this.currentShape.releaseEnable) {
this.takeShapeTimer++;
}
}
this.giveHintTimer++;
if (((!demo) && (hintEnabled)) && (this.giveHintTimer == this.giveHintPause)) {
this.giveHint("toTakeShape");
this.giveHintTimer = 0;
}
};
shapePanelClass.prototype.renewShapes = function () {
var _local3 = this.Shapes;
var _local2 = 0;
while (_local2 < this.Shapes.length) {
_local3[_local2].N = _local2;
_local3[_local2]._name = "shape" + _local2;
_local2++;
}
};
shapePanelClass.prototype.giveNewShape = function () {
if (((this.newShape || (!this.giveNewEnable)) || (this.spawnTimer <= 5)) || (this.FallingN)) {
return(undefined);
}
this.spawnTimer = 0;
var _local7 = Math.random();
if ((_local7 < this.bonusFrequency) && (this.bonusEnable)) {
var _local5 = Math.round(Math.random() * (BonusesEnable.length - 1));
var _local8 = BonusesEnable[_local5];
} else {
var _local8 = "shape";
if (this.shapeMaxLevel == 4) {
var _local6 = this.Shapes.length;
var _local9 = false;
var _local3 = 0;
do {
_local9 = this.Shapes[_local3].level == 4;
_local3++;
} while ((_local3 < _local6) && (!_local9));
if (!_local9) {
shapeMaxL = 4;
} else {
shapeMaxL = 3;
}
} else {
shapeMaxL = this.shapeMaxLevel;
}
var _local5 = Math.round(Math.random() * (this.ShapeLevels[shapeMaxL] - 1)) + 1;
_local7 = Math.random();
if (_local7 < this.easyShapeFrequency) {
_local5 = Math.round(Math.random() * (this.ShapeLevels[this.easyShapeLevel] - 1)) + 1;
}
var _local3 = 0;
var _local6 = this.Shapes.length;
var _local9 = false;
do {
_local9 = this.Shapes[_local3].level == 1;
_local3++;
} while ((_local3 < _local6) && (!_local9));
if ((((this.lastShapeNumber != 1) && (makeDisable)) && (!_local9)) && ((!this.currentShape) || (this.currentShape.level - 1))) {
_local5 = 1;
}
_local7 = Math.random();
if ((_local7 < this.specialFrequency) && (_local5 > 1)) {
_local8 = "special_" + _local8;
}
_local8 = _local8 + _local5;
}
this.lastShapeNumber = _local5;
var _local5 = this.Shapes.length;
shapes.attachMovie(_local8, "newShape", shapes.getNextHighestDepth());
var _local2 = shapes.newShape;
_local2._x = this.X0;
_local2._y = this.Y0;
var _local3 = 3;
var _local9 = false;
var _local4;
_local4 = Math.round(Math.random() * 3);
if (_local3 > _local4) {
do {
_local3--;
_local2.rotateSimple();
} while (_local3 > _local4);
}
if (_local2.getHeight() > _local2.getWidth()) {
_local2.rotateSimple();
_local4--;
}
_local2.rotationPurpose = _local4 - 1;
if (_local2.rotationPurpose < 0) {
_local2.rotationPurpose = _local2.rotationPurpose + 4;
}
if (_local2.rotationPurpose > 3) {
_local2.rotationPurpose = _local2.rotationPurpose - 4;
}
if (this.currentFillLength < ((this.fillLength / 2) + 3)) {
_local2.rotationEnabled = true;
}
this.rotationTime = Math.floor(((this.fillLength - this.currentFillLength) - 1) / 2);
this.newShape = _local2;
_local2.setControlClass(this);
this.currentShape.setDepthTo(mx.managers.DepthManager.kTop);
};
shapePanelClass.prototype.takeShape = function (shape) {
if ((game.paused || (this.FallingN)) || (this.newShape)) {
shape.stopAt(shape._x, shape._y);
return(false);
}
this.currentShape = shape;
this.currentShape._alpha = 70;
this.currentShapeCopy = shape.duplicateMovieClip("shapeCopy", shapes.getNextHighestDepth());
this.currentShapeCopy._visible = false;
this.currentShapeCopy.setRotation(this.currentShape.Rotation);
this.takeShapeTimer = 0;
this.Shapes.splice(shape.N, 1);
shape._name = "currentShape";
if (this.Shapes.length) {
this.currentShape.setDepthTo(mx.managers.DepthManager.kTop);
}
shapes.attachMovie("line", "line", 20);
this.lineTarget = shapes.line;
this.lineTarget._x = this.X0;
this.lineTarget._y = shape._y;
this.FallingN = shape.N + 1;
this.renewShapes();
this.turnShapes(0, false);
var _local6 = shape.getHeight();
this.currentFillLength = this.currentFillLength - (_local6 + 1);
this.removeHint();
if ((!_root.levelNum.stay) && (!demo)) {
_root.levelNum.gotoAndPlay("del");
}
if (hintEnabled && (!demo)) {
this.gameField.noMoves(this.currentShapeCopy);
}
if (shape.bonusType == "coin") {
var _local5 = this.gameField.getI(shape._x);
var _local4 = this.gameField.getJ(shape._y);
this.gameField.takeCoin(_local5, _local4);
this.followCurrentShape();
this.putShape(shape);
} else {
_root.playSound("figurepickingup");
}
return(true);
};
shapePanelClass.prototype.putShape = function (shape) {
var _local9 = false;
var _local4;
var _local6 = shape.getHeight();
if ((this.FallingN && (!demo)) && (shape.bonusType != "coin")) {
return(false);
}
if ((((shape._x < this.rightX) && (shape._x > 0)) && (this.rotateEnable)) && (!this.newShape)) {
if (this.FallingN && (shape.bonusType != "coin")) {
return(false);
}
if (shape.bonusType == "killone") {
if (this.currentI == this.Shapes.length) {
return(undefined);
}
_local4 = this.Shapes[this.currentI];
_local6 = _local4.getHeight();
this.currentFillLength = this.currentFillLength - (_local6 + 1);
this.FallingN = this.currentI + 1;
_local4.die();
this.Shapes.splice(this.currentI, 1);
shape.die();
shape.stopAt(shape._x, shape._y);
} else if (shape.bonusType == "coin") {
_local9 = true;
_root.playSound("bonuscash");
shape.die();
shape.stopAt(shape._x, shape._y);
} else {
var _local10 = this.getY(this.currentJ - 1, this.currentI + 1) - (((_local6 - 1) / 2) * this.cellSize);
var _local7;
this.currentFillLength = this.currentFillLength + (_local6 + 1);
shape.stopAt(this.X0, _local10);
shape.setJ(this.currentJ - 1);
this.Shapes.splice(this.currentI, 0, shape);
shape._alpha = 100;
_local7 = (this.currentJ - _local6) - 2;
var _local8 = this.Shapes.length;
var _local3 = this.currentI + 1;
while (_local3 < _local8) {
_local4 = this.Shapes[_local3];
if (_local4) {
_local6 = _local4.getHeight();
_local4.setJ(_local7);
_local4._y = this.getY(_local7, _local3 + 1) - ((this.cellSize * (_local6 - 1)) / 2);
_local7 = _local7 - (_local6 + 1);
}
_local3++;
}
}
_local9 = true;
} else if (this.gameField.putShape(shape)) {
shape.die();
shape.stopAt(shape._x, shape._y);
_local9 = true;
this.spawnTimer = 0;
if ((this.gameField.task[0] == "jewel") && (this.easyShapeFrequency < this.easyShapeFrequencyMax)) {
this.easyShapeFrequency = this.easyShapeFrequency + this.easyShapeFrequencyIncrement;
}
}
if (_local9) {
this.renewShapes();
this.currentShape = null;
this.currentShapeCopy.removeMovieClip();
this.currentShapeCopy = null;
this.lineTarget.removeMovieClip();
this.lineTarget = null;
this.currentI = 0;
this.currentJ = 0;
this.takeShapeTimer = 0;
this.removeHint();
this.giveHint("toTakeShape");
}
return(_local9);
};
shapePanelClass.prototype.followCurrentShape = function () {
var _local6 = this.currentShape._y;
var _local2 = 0;
var _local4 = this.fillLength - 2;
var _local5 = this.Shapes;
var _local7 = _local5.length;
var _local3 = this.getY(_local5[_local2].getJ(), _local2);
if (_local6 < _local3) {
if (_local2 < (_local5.length - 1)) {
do {
_local2++;
_local4 = _local5[_local2].getJ();
_local3 = this.getY(_local4, _local2);
} while ((_local6 < _local3) && (_local2 < (_local7 - 1)));
}
if ((_local6 < _local3) && (!this.newShape)) {
_local4 = (_local5[_local2].getJ() - _local5[_local2].getHeight()) - 1;
_local2 = _local7;
}
if ((_local6 < _local3) && (this.newShape)) {
_local2 = _local7 - 1;
_local4 = (_local5[_local2 - 1].getJ() - _local5[_local2 - 1].getHeight()) - 1;
}
}
this.currentI = _local2;
this.currentJ = _local4 + 1;
_local3 = this.getY(_local4 + 1, _local2);
this.lineTarget._y = _local3 + (this.dy / 2);
if (((((this.currentShape._x < this.rightX) && (this.currentShape._x > 0)) && (this.rotateEnable)) && (this.currentShape.bonusType != "killone")) && (!demo)) {
this.lineTarget._visible = true;
} else {
this.lineTarget._visible = false;
}
};
shapePanelClass.prototype.fallHigherShapes = function () {
var _local3;
var _local8;
var _local6 = this.Shapes;
var _local7 = _local6.length;
var _local4 = this.FallingN - 1;
while (_local4 < _local7) {
_local3 = _local6[_local4];
_local3.increaseJ(1);
_local3._y = _local3._y + this.cellSize;
_local4++;
}
_local8 = _local6[this.FallingN - 2];
_local3 = _local6[this.FallingN - 1];
var _local9 = _local8.getJ();
var _local10 = _local8.getHeight();
var _local11 = _local3.getJ();
if (!_local8) {
_local9 = this.fillLength - 1;
_local10 = 0;
}
var _local5 = (_local9 - _local10) - 1;
if (_local5 <= _local11) {
_local5 = _local11;
_local4 = this.FallingN - 1;
while (_local4 < _local7) {
_local3 = _local6[_local4];
h = _local3.getHeight();
_local3.setJ(_local5);
_local3._y = this.getY(_local5, _local4 + 1) - ((this.cellSize * (h - 1)) / 2);
_local5 = _local5 - (h + 1);
_local4++;
}
_root.playSound("figureplacing");
this.FallingN = 0;
this.turnShapes(0, true);
}
};
shapePanelClass.prototype.turnShapes = function (I, flag) {
if (demo) {
return(undefined);
}
var _local3 = this.Shapes;
var _local4 = _local3.length;
var _local2 = I;
while (_local2 < _local4) {
item = _local3[_local2];
if (item != this.newShape) {
if (!flag) {
item.turnOff();
} else {
item.turnOn();
}
}
_local2++;
}
};
shapePanelClass.prototype.removeCurrentShape = function () {
this.currentShape.die();
this.currentShape.stopAt(shape._x, shape._y);
this.spawnTimer = 0;
this.renewShapes();
this.currentShape = null;
this.currentShapeCopy.removeMovieClip();
this.currentShapeCopy = null;
this.lineTarget.removeMovieClip();
this.lineTarget = null;
this.currentI = 0;
this.currentJ = 0;
this.Fill = new Array();
this.iTimer = 0;
this.spawnTimer = 0;
this.currentFillLength = 0;
};
shapePanelClass.prototype.removeShapes = function () {
if (this.newShape) {
this.newShape.disappear();
this.newShape = null;
}
if (this.currentShape) {
this.currentShape.disappear();
this.currentShape = null;
}
for (var _local2 in this.Shapes) {
this.Shapes[_local2].disappear();
}
this.Shapes = [];
};
shapePanelClass.prototype.giveHint = function (kindOfHint) {
if (demo || (!hintEnabled)) {
return(undefined);
}
if (this.gameField.hintItem) {
if (this.currentShape) {
this.gameField.activateShape(this.currentShapeCopy, true);
}
return(undefined);
}
var _local4;
if (hintEnabled == 1) {
switch (kindOfHint) {
case "toTakeShape" :
if (!this.Shapes.length) {
return(undefined);
}
var _local6 = (this.gameField.hintItem = bonuses.attachMovie("hintMC", "hintMC", bonuses.getNextHighestDepth()));
_local6._x = this.Shapes[0]._x + (this.Shapes[0]._width / 2);
_local6._y = this.Shapes[0]._y - (elementSize / 2);
_local6.putTextBlock(hintTakeShape);
_local6.putArrow(false);
break;
case "playField" :
_local6 = (this.gameField.hintItem = bonuses.attachMovie("hintMC", "hintMC", bonuses.getNextHighestDepth()));
_local6._x = this.gameField.ActiveGraph[0].jewel.X - (elementSize / 2);
_local6._y = this.gameField.ActiveGraph[0].jewel.Y - (elementSize / 2);
_local4 = hintPutShape;
if (this.currentShape.isSpecial) {
_local4 = hintSpecialShape;
}
if (this.currentShape.isBonus) {
_local4 = hintBonus;
}
_local6.putTextBlock(_local4);
_local6.putArrow(true);
break;
case "toPutBack" :
_local6 = (this.gameField.hintItem = bonuses.attachMovie("hintMC", "hintMC", bonuses.getNextHighestDepth()));
_local6._x = shapes._x + 120;
_local6._y = 20;
_local6.putTextBlock(hintPutBack);
_local6.putArrow(false);
break;
case "toRotateShape" :
_local6 = (this.gameField.hintItem = bonuses.attachMovie("hintMC", "hintMC", bonuses.getNextHighestDepth()));
_local6._x = this.gameField.ActiveGraph[0].jewel.X - (elementSize / 2);
_local6._y = this.gameField.ActiveGraph[0].jewel.Y - (elementSize / 2);
_local6.putTextBlock(hintRotateShape);
_local6.putArrow(true);
}
} else {
if (((kindOfHint == "playField") || (kindOfHint == "toRotateShape")) && (this.currentShape.isSpecial)) {
var _local2 = 0;
var _local8 = this.gameField.ActiveGraph[_local2].jewel.itsColor;
var _local5 = this.gameField.ActiveGraph.length;
var _local3 = true;
do {
_local2++;
_local3 = this.gameField.ActiveGraph[_local2].jewel.itsColor == _local8;
} while ((_local2 < (_local5 - 1)) && (_local3));
if (!_local3) {
var _local6 = (this.gameField.hintItem = bonuses.attachMovie("hintMC", "hintMC", bonuses.getNextHighestDepth()));
_local6._x = this.gameField.ActiveGraph[0].jewel.X - (elementSize / 2);
_local6._y = this.gameField.ActiveGraph[0].jewel.Y - (elementSize / 2);
_local4 = hintSpecialShape;
_local6.putTextBlock(_local4);
_local6.putArrow(true);
}
}
if (((kindOfHint == "playField") || (kindOfHint == "toRotateShape")) && (!this.currentShape.isSpecial)) {
var _local2 = 0;
var _local8 = this.gameField.ActiveGraph[_local2].jewel.itsColor;
var _local5 = this.gameField.ActiveGraph.length;
var _local3 = false;
do {
_local2++;
_local3 = this.gameField.ActiveGraph[_local2].jewel.bonusType;
} while ((_local2 < (_local5 - 1)) && (!_local3));
if (_local3) {
var _local6 = (this.gameField.hintItem = bonuses.attachMovie("hintMC", "hintMC", bonuses.getNextHighestDepth()));
_local6._x = this.gameField.ActiveGraph[0].jewel.X - (elementSize / 2);
_local6._y = this.gameField.ActiveGraph[0].jewel.Y - (elementSize / 2);
_local4 = hintBonusInField;
_local6.putTextBlock(_local4);
_local6.putArrow(true);
}
}
}
};
shapePanelClass.prototype.removeHint = function () {
this.gameField.hintItem.removeMovieClip();
this.gameField.hintItem = null;
this.giveHintTimer = 0;
};
shapePanelClass.prototype.getY = function (j, i) {
return((this.Y0 + (this.cellSize * j)) + ((this.cellSize - this.dy) * i));
};
AIClass.prototype.formateNewOrder = function () {
if (!this.shape) {
this.Order.push("setShapePurpose");
this.Order.push("setPurpose");
this.Order.push("takeShape");
} else {
this.Order.push("setPurpose");
this.Order.push("putShape");
}
};
AIClass.prototype.delay = function () {
return(true);
};
AIClass.prototype.setShapePurpose = function () {
var _local2 = true;
this.purpose.X = game.shapePanel.X0;
if (levelsDemo == 1) {
var _local3 = Math.round(Math.random() * (game.shapePanel.Shapes.length - 1));
} else {
var _local3 = 0;
}
this.purpose.Y = game.shapePanel.Shapes[_local3]._y;
if (!game.shapePanel.Shapes.length) {
_local2 = false;
}
return(_local2);
};
AIClass.prototype.setPurpose = function () {
if (this.actionContinue) {
return(false);
}
this.pointer.gotoAndStop("simple");
var _local3 = this.purpose.X - this.pointer._x;
var _local2 = this.purpose.Y - this.pointer._y;
var _local4 = Math.sqrt((_local3 * _local3) + (_local2 * _local2));
this.velocityX = (this.pointerVelocity * _local3) / _local4;
this.velocityY = (this.pointerVelocity * _local2) / _local4;
this.tOfMotion = 0;
this.motionX0 = this.pointer._x;
this.motionY0 = this.pointer._y;
this.actionContinue = "followPurpose";
return(true);
};
AIClass.prototype.followPurpose = function () {
this.tOfMotion++;
this.pointer._x = this.motionX0 + (this.tOfMotion * this.velocityX);
this.pointer._y = this.motionY0 + (this.tOfMotion * this.velocityY);
if (this.shape) {
this.shape._x = this.pointer._x;
this.shape._y = this.pointer._y;
}
dx = this.purpose.X - this.pointer._x;
dy = this.purpose.Y - this.pointer._y;
if (((((this.velocityX / dx) < 0) && (dx)) || (((this.velocityY / dy) < 0) && (dy))) || ((!dx) && (!dy))) {
flag = true;
this.pointer._x = this.purpose.X;
this.pointer._y = this.purpose.Y;
if (this.shape) {
this.shape._x = this.pointer._x;
this.shape._y = this.pointer._y;
}
this.actionContinue = false;
}
};
AIClass.prototype.takeShape = function () {
var _local2 = 0;
var _local4;
var _local3 = false;
if (this.shape) {
var _local5 = this.shape.Rotation - this.purpose.Rotation;
var _local6 = _local5 / Math.abs(_local5);
if (((_local6 > 0) && (Math.abs(_local5) <= 2)) || ((_local6 < 0) && (Math.abs(_local5) >= 2))) {
this.shape.rotate(6, true);
} else {
this.shape.rotate(6, false);
}
this.pointer.gotoAndStop("rotate");
if (this.shape.Rotation != this.purpose.Rotation) {
if (rotateHintText != "") {
hintPanel.hintText = rotateHintText;
}
} else {
_local3 = true;
if (takeShapeHintText != "") {
hintPanel.hintText = takeShapeHintText;
}
if (this.shape.isSpecial) {
hintPanel.hintText = specialHint;
}
if (this.shape.bonusType) {
hintPanel.hintText = bonusHint;
}
}
} else {
do {
_local4 = game.shapePanel.Shapes[_local2];
if ((_local4._y - ((_local4.getHeight() * game.shapePanel.cellSize) / 2)) < this.pointer._y) {
_local3 = true;
}
_local2++;
} while ((!_local3) && (_local2 < game.shapePanel.Shapes.length));
if (!_local3) {
this.Order = [];
return(false);
}
this.shape = game.shapePanel.Shapes[_local2 - 1];
if (!this.shape) {
this.shape = game.shapePanel.Shapes[0];
}
_local3 = game.shapePanel.takeShape(this.shape);
if (_local3) {
this.shape._x = this.pointer._x;
this.shape._y = this.pointer._y;
this.purpose = game.gameField.noMoves(game.shapePanel.currentShapeCopy);
this.rotation = 0;
this.pointer.gotoAndStop("click");
if (!this.purpose.flag) {
this.Order[1] = "putShape";
if (backHintText != "") {
hintPanel.hintText = backHintText;
}
} else if (this.shape.Rotation != this.purpose.Rotation) {
_local3 = false;
if (rotateHintText != "") {
hintPanel.hintText = rotateHintText;
}
} else {
if (takeShapeHintText != "") {
hintPanel.hintText = takeShapeHintText;
}
if (this.shape.isSpecial) {
hintPanel.hintText = specialHint;
}
if (this.shape.bonusType) {
hintPanel.hintText = bonusHint;
}
}
} else {
this.shape = null;
}
}
return(_local3);
};
AIClass.prototype.putShape = function () {
var _local2 = game.shapePanel.putShape(this.shape);
if (!_local2) {
this.shape.rotate(2, false);
this.pointer.gotoAndStop("rotate");
if (rotateHintText != "") {
hintPanel.hintText = rotateHintText;
}
this.rotation++;
} else {
this.shape = null;
this.pointer.gotoAndStop("click");
hintPanel.hintText = taskHintText;
}
return(_local2);
};
AIClass.prototype.nextTurn = function () {
if (this.actionContinue) {
return(undefined);
}
var _local2 = this.Order[0];
if (!_local2) {
this.formateNewOrder();
} else if (this[_local2]()) {
this.Order.splice(0, 1);
}
};
AIClass.prototype.update = function () {
if (this.actionContinue) {
this[this.actionContinue]();
}
this.timer++;
if (this.timer == this.turnDelay) {
this.nextTurn();
this.timer = 0;
}
};
AIClass.prototype.restart = function () {
this.actionContinue = false;
this.Order = [];
game.shapePanel.removeCurrentShape();
this.shape = null;
this.timer = 0;
this.pointer.gotoAndStop("simple");
};
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 - levelsDemo, levelsNumber - levelsDemo);
sc = scr;
Frame 9
updateMouse();
play();
Frame 10
updateMouse();
gotoAndPlay ("maprepeat");
Frame 11
_quality = "low";
game = new gameClass(numberOfLevel);
figure_but.enabled = false;
play_b.gotoAndStop("disable");
hurryup.gotoAndStop("out");
levelNum.gotoAndStop("out");
if (!levelsDemo) {
takeShapeHintText = putHint;
rotateHintText = rotationHint;
backHintText = backHint;
} else {
takeShapeHintText = "";
rotateHintText = "";
backHintText = "";
}
switch (levelsDemo) {
case 0 :
taskHintText = taskHint1;
break;
case 1 :
taskHintText = taskHint2;
break;
case 2 :
taskHintText = taskHint3;
}
game.begin();
if (hintEnabled && (!hintsEnabled)) {
hintEnabled = false;
}
if (demo && (!hintsEnabled)) {
_root.numberOfLevel++;
_root.demoCursor.removeMovieClip();
delete game;
gotoAndPlay ("demoPause");
} else if (demo) {
demoTitle._visible = true;
play_b._visible = false;
close_but._visible = true;
close_but.enabled = true;
close_b._visible = true;
hintPanel._visible = true;
game.beginPlay();
bg.gotoAndStop("bat");
} else {
playMusic("gamemusic");
demoTitle._visible = false;
bg.gotoAndStop("simple");
play_b._visible = true;
close_but._visible = false;
close_but.enabled = false;
close_b._visible = false;
hintPanel._visible = false;
plusStars = "";
var i = 1;
while (i <= numberOfGame) {
plusStars = plusStars + "*";
i++;
}
N = numberOfLevel - levelsDemo;
levelNum.mctxt.txt = ((level + " ") + N) + plusStars;
levelNum.mctxt.txt1 = levelTargetCommon;
hurryup.mctxt.txt = hurryUpTxt;
switch (task[0]) {
case "jewel" :
levelTarget = levelTargetJewel;
break;
case "cell" :
levelTarget = levelTargetCell;
break;
case "block" :
levelTarget = levelTargetBlock;
}
levelNum.mctxt.txt2 = levelTarget;
}
cursor.gotoAndStop("arrow");
Pause._visible = false;
win._visible = false;
over._visible = false;
_root.playSound("dooropen");
Instance of Symbol 858 MovieClip "bg" in Frame 11
onClipEvent (keyDown) {
if (Key.getCode() == 80) {
_parent.game.setPause();
}
}
Instance of Symbol 858 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");
_root.playSound("gamecomplete");
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";
_root.playSound("gameover");
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
taskHint1 = "Left-click a shape within the panel to grab it. Now you can move that shape with your mouse";
taskHint2 = "You can break wooden and iron cells by destroying overlapping pieces.";
taskHint3 = "You can break boxes and blocks by destroying nearby pieces.";
backHint = "Left-click on the panel to put shape back";
putHint = "Use the left mouse button to match a shape with identical pieces to destroy them.";
rotationHint = "Use mouse wheel or space to rotate a shape";
specialHint = "*SPECIAL* shape will match with any pieces.";
bonusHint = "Some items can help you on your quest.";
hintTakeShape = "Take any shape|that you want|(use left mouse button)";
hintPutShape = "Place the shape|over peices of|the same type";
hintPutBack = "You cannot use|this shape now.| Place it back and|take another one";
hintRotateShape = "To place a shape|you may have to rotate it|(use mouse wheel or space)";
hintSpecialShape = "A burning shape can be|placed over pieces|of any type. Try placing|this shape over|different pieces";
hintBonusInField = "You can place shapes| over bonus pieces|(bonus piece can|be matched with|pieces of any type)";
hintBonus = "A bonus shape will|help you to complete|b level faster.|Try to place a bonus|over any piece|on the board";
levelTargetCommon = "To complete this level you have to:";
levelTargetJewel = "collect all pieces";
levelTargetCell = "break all background tiles";
levelTargetBlock = "break all blocks";
preStory = "Your dream of a lifetime was to become an astrologer. So, you took a long trip to reach the edge of the world, a place where the ancient Zodiac Tower holds sacred knowledge and wisdom. You must walk all the way up to the top of the tower and will solve many puzzles in order to gain the necessary skills.";
completed = "LEVEL COMPLETE";
paused1 = "Game paused...";
paused2 = "Press P to continue";
gameover = "Time up! GAME OVER...";
hurryUpTxt = "Hurry Up!";
p_button = "Play";
pn_button = "PLAY NOW";
pa_button = "Play again";
c_button = "Continue";
figure_button = "Shapes";
cl_button = "Close";
fdl_button = "Free download";
gfv_button = "Get full version";
menu_txt1 = "Zodiac Tower FULL";
menu_txt2 = "<b><p></p> - fullscreen gameplay<p></p> - over 100 levels and 2 play modes<p></p> - build your own zodiac ship</b>";
menu_txt3 = "Zodiac Tower WEB";
menu_txt4 = "<b>Wander through ancient Zodiac<p></p>Tower and solve puzzles</b>";
sound_txt = "sound";
music_txt = "music";
hints_txt = "Hints";
scr = "Your score:";
nam = "Your name here";
submit = "submit";
loading = "loading";
level = "LEVEL";
demo_txt = "Demonstration";
congratualations = "CONGRATULATIONS!";
complete_txt1 = "<b>You have completed web version <p></p>of the game BUT...<p></p>Adventure is not over yet!</b>";
complete_txt2 = "<b>Are you clever enough to reach the top of<p></p>mysterious Zodiac Tower? Download your FREE trial<p></p>of full version and find out!<br><br> - Enhanced graphics and effects<p></p> - Over 100 mysterious levels<p></p> - Build your own zodiac ship<p></p> - 2 game modes<p></p> - Huge zodiac tower 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 = "ZODIAC TOWER";
complete_txt6 = "full version";
game_over = "GAME OVER";
try_full_version = "TRY FULL VERSION";
pause1_txt1 = "<b>FULL version features 12 hidden parts of<p></p>ancient mechanism that can be uncovered<p></p>in order to build secret Zodiac Ship</b>";
pause2_txt1 = "<b>FULL version has a lot of wonderful<p></p>places to explore</b>";
pause3_txt1 = "<b>FULL version has huge mysterious tower available<p></p>for your exploration with number of rooms<p></p>and stairs</b>";
pause4_txt1 = "<b>FULL version features over 100 mysterious levels<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, shapes, levels, 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");
Frame 35
gotoAndPlay ("game");
Symbol 1 MovieClip [flyAway] Frame 1
#initclip 39
Object.registerClass("flyAway", flyAwayClass);
#endinitclip
Symbol 1008 MovieClip [__Packages.flyAwayClass] Frame 0
class flyAwayClass extends MovieClip
{
var onEnterFrame, _x, _y, _xscale, _yscale, removeMovieClip;
function flyAwayClass () {
super();
inclination = Math.random() * 360;
velocityRnd = (1 - (Math.random() / 2)) * velocityAmplitude;
onEnterFrame = fly;
}
function fly() {
var _local3 = purposeX - _x;
var _local2 = purposeY - _y;
var _local4 = (Math.atan(_local2 / _local3) * 180) / Math.PI;
if ((_local2 < 0) && (_local3 < 0)) {
_local4 = _local4 + 180;
}
if ((_local2 >= 0) && (_local3 < 0)) {
_local4 = _local4 + 180;
}
if ((Math.abs(_local3) <= (velocityAmplitude * 2)) && (Math.abs(_local2) <= (velocityAmplitude * 2))) {
die();
return(undefined);
}
var _local6 = velocity * Math.cos((_local4 * Math.PI) / 180);
var _local5 = velocity * Math.sin((_local4 * Math.PI) / 180);
_x = _x + _local6;
_y = _y + _local5;
_local6 = velocityRnd * Math.cos((inclination * Math.PI) / 180);
_local5 = velocityRnd * Math.sin((inclination * Math.PI) / 180);
_x = _x + _local6;
_y = _y + _local5;
if (velocityRnd > 0) {
velocityRnd = velocityRnd - dV;
} else {
velocityRnd = 0;
}
if (velocity < velocityAmplitude) {
velocity = velocity + dV;
}
if (_xscale > minScale) {
_xscale = _xscale - (Math.random() * scaleDecrementAmplitude);
} else {
die();
return(undefined);
}
if (_yscale > minScale) {
_yscale = _yscale - (Math.random() * scaleDecrementAmplitude);
} else {
die();
}
}
function setPurpose(X, Y) {
purposeX = X;
purposeY = Y;
}
function die() {
onEnterFrame = null;
(removeMovieClip());// not popped
}
var purposeX = 0;
var purposeY = 0;
var velocity = 0;
var velocityRnd = 0;
var dV = 0.2;
var velocityAmplitude = 8;
var inclination = 0;
var inclinationIncrement = 5;
var minScale = 10;
var scaleDecrementAmplitude = 2.5;
}
Symbol 1009 MovieClip [__Packages.shapeClass] Frame 0
class shapeClass extends MovieClip
{
var _parent, itsTarget, but, stopDrag, _x, _y, _rotation, onEnterFrame, shardsId, shards, _name, _visible, getNextHighestDepth, attachMovie;
function shapeClass () {
super();
listener.onMouseWheel = wheelHandler;
listener.onKeyDown = keyHandler;
listener.addProperty("itsTarget", null, null);
}
function pressHandler() {
var _local2 = _parent;
if (!_local2.releaseEnable) {
return(undefined);
}
if (!_local2.isActive) {
_local2.startDrag(true, 0, 0, 480, 360);
_local2.isActive = true;
if (_local2.ControlClass.takeShape(_local2)) {
_local2.listener.itsTarget = _local2;
Mouse.addListener(_local2.listener);
Key.addListener(_local2.listener);
_local2.releaseEnable = false;
}
} else {
if (_local2.ControlClass.putShape(_local2)) {
Mouse.removeListener(_local2.listener);
}
Key.removeListener(_local2.listener);
_local2.releaseEnable = false;
}
}
function wheelHandler(delta) {
if (delta > 0) {
itsTarget.rotate(6, false);
} else {
itsTarget.rotate(6, true);
}
}
function keyHandler() {
if (Key.isDown(32)) {
itsTarget.rotate(6, false);
}
}
function turnOn() {
but.onPress = pressHandler;
but.onRelease = pressHandler;
isActive = false;
}
function turnOff() {
but.onRelease = null;
but.onPress = null;
}
function stopAt(x, y) {
stopDrag();
setXY(x, y);
isActive = false;
listener.onMouseWheel = null;
}
function setXY(x, y) {
_x = x;
_y = y;
}
function rotate(T, dir, simple) {
rotationTime = T;
if (rotateTimer && (!simple)) {
return(undefined);
}
if (!dir) {
if (Rotation == LEFT) {
Rotation = UP;
} else {
Rotation++;
}
rotationDirectionFactor = -1;
} else {
if (Rotation == UP) {
Rotation = LEFT;
} else {
Rotation--;
}
rotationDirectionFactor = 1;
}
_rotation = _rotation + ((rotationDirectionFactor * 90) / rotationTime);
rotateTimer = 1;
var _local4 = [];
var _local5 = Matrix.length;
var _local6 = Matrix[0].length;
if (rotationDirectionFactor > 0) {
var _local3 = 0;
while (_local3 < _local6) {
_local4[_local3] = [];
var _local2 = 0;
while (_local2 < _local5) {
_local4[_local3][_local2] = Matrix[_local2][(_local6 - _local3) - 1];
_local2++;
}
_local3++;
}
} else {
var _local3 = 0;
while (_local3 < _local6) {
_local4[_local3] = [];
var _local2 = 0;
while (_local2 < _local5) {
_local4[_local3][_local2] = Matrix[(_local5 - _local2) - 1][_local3];
_local2++;
}
_local3++;
}
}
Matrix = _local4;
onEnterFrame = function () {
this.rotateTimer++;
if (this.rotateTimer <= this.rotationTime) {
this._rotation = this._rotation + ((90 / this.rotationTime) * this.rotationDirectionFactor);
} else {
delete this.onEnterFrame;
this.rotateTimer = 0;
}
};
}
function rotateSimple() {
if (Rotation == UP) {
Rotation = LEFT;
} else {
Rotation--;
}
_rotation = _rotation + 90;
var _local4 = [];
var _local6 = Matrix.length;
var _local5 = Matrix[0].length;
var _local3 = 0;
while (_local3 < _local5) {
_local4[_local3] = [];
var _local2 = 0;
while (_local2 < _local6) {
_local4[_local3][_local2] = Matrix[_local2][(_local5 - _local3) - 1];
_local2++;
}
_local3++;
}
Matrix = _local4;
}
function setRotation(rot) {
if (Rotation != rot) {
do {
rotateSimple();
} while (Rotation != rot);
}
_rotation = (-rot) * 90;
if (rotateTimer) {
rotateTimer = 0;
delete onEnterFrame;
}
}
function shardIt() {
if (burningIntervalID) {
clearInterval(burningIntervalID);
burningIntervalID = 0;
}
if (shardsId) {
shards = new shardClass(shardsId, this);
} else {
disappear();
return(undefined);
}
_name = _name + "dying";
but.onRelease = null;
but.onPress = null;
_visible = false;
counter = 10;
onEnterFrame = function () {
if (this.counter > 0) {
this.shards.update();
} else {
this.shards.remove();
this.removeMovieClip();
}
this.counter--;
};
}
function disappear() {
if (burningIntervalID) {
clearInterval(burningIntervalID);
burningIntervalID = 0;
}
_name = _name + "dying";
but.onRelease = null;
but.onPress = null;
onEnterFrame = function () {
if (this._alpha > 0) {
this._alpha = this._alpha - this.alphaDecrement;
this._xscale = this._xscale + this.scaleDecrement;
this._yscale = this._yscale + this.scaleDecrement;
} else {
this.removeMovieClip();
}
};
}
function die() {
disappear();
}
function setJ(j) {
J = j;
}
function increaseJ(dj) {
J = J + dj;
}
function getJ() {
return(J);
}
function getHeight() {
return(Matrix[0].length);
}
function getWidth() {
return(Matrix.length);
}
function getMatrix() {
return(Matrix);
}
function setMatrix(matrix_mc) {
Matrix = matrix_mc;
Vektor = getVektor();
}
function getVektor() {
var _local7 = [];
var _local6 = Matrix.length;
var _local5 = Matrix[0].length;
var _local3 = {X:0, Y:0};
var _local4 = 0;
while (_local4 < _local6) {
var _local2 = 0;
while (_local2 < _local5) {
if (Matrix[_local4][_local2]) {
_local3 = new Object();
_local3.X = ((_local4 - (_local6 / 2)) + 0.5) * cellSize;
_local3.Y = ((_local2 - (_local5 / 2)) + 0.5) * cellSize;
_local7.push(_local3);
}
_local2++;
}
_local4++;
}
return(_local7);
}
function changeTemperature(dT) {
temperature = temperature + dT;
var _local2 = temperatureMax - temperature;
if (_local2 < 0) {
temperature = temperatureMax;
_local2 = 0;
if (burningIntervalID) {
clearInterval(burningIntervalID);
burningIntervalID = 0;
}
}
if ((temperature > (temperatureMax / 3)) && (!isBubble)) {
isBubble = true;
onEnterFrame = toBubble;
if (!burningIntervalID) {
burning();
var _local3 = setInterval(burning, 3000);
burningIntervalID = _local3;
}
}
if ((temperature <= (temperatureMax / 3)) && (isBubble)) {
isBubble = false;
onEnterFrame = null;
if (burningIntervalID) {
clearInterval(burningIntervalID);
burningIntervalID = 0;
}
}
if (temperature < 0) {
temperature = 0;
}
return(!_local2);
}
function setControlClass(cclass) {
ControlClass = cclass;
}
function burning() {
_root.playSound("figureburning");
}
function toBubble() {
var _local8;
var _local3;
var _local7;
var _local5;
var _local4;
var _local6 = Vektor.length;
var _local2 = 0;
do {
_local4 = Vektor[_local2];
_local8 = Math.random();
if (_local8 < (temperature / ((temperatureMax * 2) * _local6))) {
_local3 = getNextHighestDepth();
_local7 = Math.round(Math.random() * (bubblesTypesNumber - 1)) + 1;
_local5 = attachMovie("bubble" + _local7, "bubble" + _local3, _local3);
_local5._x = _local4.X;
_local5._y = _local4.Y;
}
_local2++;
} while (_local2 < _local6);
}
var Matrix = [];
var Vektor = [];
var isSpecial = false;
var level = 0;
static var UP = 0;
static var RIGHT = 1;
static var DOWN = 2;
static var LEFT = 3;
var cellSize = 24;
var isActive = false;
var X0 = 0;
var Y0 = 0;
var dragRadius = 10;
var releaseEnable = true;
var bonusType = false;
var J = 0;
var Rotation = UP;
var temperature = 0;
var temperatureMax = 0;
var ControlClass = null;
var rotateTimer = 0;
var rotationTime = 2;
var rotationDirectionFactor = 1;
var listener = {};
var alphaDecrement = 4;
var scaleDecrement = 2;
var bubblesNumberMax = 10;
var isBubble = false;
static var bubblesTypesNumber = 3;
var burningIntervalID = 0;
var counter = 0;
}
Symbol 1010 MovieClip [__Packages.shardClass] Frame 0
class shardClass
{
var Source, itsTarget;
function shardClass (texture, target, nOfShards, lTime) {
var _local2;
var _local4;
Source = texture;
itsTarget = target;
if (nOfShards) {
numberOfShards = nOfShards;
}
if (lTime) {
lifeTime = lTime;
startDisappear = lifeTime - timeOfDisappear;
}
itsTarget.Shards = [];
var _local3 = 1;
while (_local3 <= numberOfShards) {
_local2 = itsTarget._parent.attachMovie(Source, (itsTarget._name + "shard") + _local3, itsTarget._parent.getNextHighestDepth());
_local4 = 1 - (Math.random() / 2);
_local2._width = _local4 * _local2._width;
_local2._height = _local4 * _local2._height;
_local2.vx = (0.5 - Math.random()) * maxVelocityX;
_local2.vy = (-Math.random()) * maxVelocityY;
_local2._x = itsTarget._x;
_local2._y = itsTarget._y;
itsTarget.Shards[_local3] = _local2;
_local3++;
}
}
function update() {
counter++;
var _local2;
var _local3 = 1;
while (_local3 <= numberOfShards) {
_local2 = itsTarget.Shards[_local3];
_local2._x = _local2._x + _local2.vx;
_local2._y = (_local2._y + _local2.vy) + ((accelerationY * counter) * counter);
_local2.vy = _local2.vy + accelerationY;
if (counter > startDisappear) {
_local2._alpha = _local2._alpha - (100 / timeOfDisappear);
}
_local3++;
}
if (counter >= lifeTime) {
remove();
}
}
function remove() {
var _local3;
var _local2 = 1;
while (_local2 <= numberOfShards) {
_local3 = itsTarget.Shards[_local2];
_local3.removeMovieClip();
_local2++;
}
}
var numberOfShards = 13;
var maxVelocityX = 8;
var maxVelocityY = 7;
var accelerationY = 0.11;
var lifeTime = 18;
var counter = 0;
var startDisappear = 10;
var timeOfDisappear = 8;
}
Symbol 1011 MovieClip [__Packages.dynamite] Frame 0
class dynamite extends shapeClass
{
var temperatureMax, isSpecial, bonusType, setMatrix, rotateSimple, setRotation, level, burningIntervalID, _name, but, gotoAndPlay;
function dynamite () {
super();
temperatureMax = 5;
isSpecial = false;
bonusType = "dynamite";
setMatrix([[1]]);
rotateSimple = null;
setRotation = null;
level = 1;
}
function rotate() {
}
function die() {
if (burningIntervalID) {
clearInterval(burningIntervalID);
burningIntervalID = 0;
}
_name = _name + "dying";
but.onRelease = null;
but.onPress = null;
(gotoAndPlay("del"));// not popped
}
}
Symbol 1012 MovieClip [__Packages.flash] Frame 0
class flash extends shapeClass
{
var temperatureMax, isSpecial, bonusType, setMatrix, rotateSimple, setRotation, level, burningIntervalID, _name, but, gotoAndPlay;
function flash () {
super();
temperatureMax = 5;
isSpecial = false;
bonusType = "flash";
setMatrix([[1]]);
rotateSimple = null;
setRotation = null;
level = 1;
}
function rotate() {
}
function die() {
if (burningIntervalID) {
clearInterval(burningIntervalID);
burningIntervalID = 0;
}
_name = _name + "dying";
but.onRelease = null;
but.onPress = null;
(gotoAndPlay("del"));// not popped
}
}
Symbol 1013 MovieClip [__Packages.shape1] Frame 0
class shape1 extends shapeClass
{
var level, temperatureMax, isSpecial, shardsId, setMatrix, rotate, rotateSimple, setRotation;
function shape1 () {
super();
level = 1;
temperatureMax = 2 + level;
isSpecial = false;
shardsId = "shape shard";
setMatrix([[1]]);
rotate = null;
rotateSimple = null;
setRotation = null;
}
}
Symbol 1014 MovieClip [__Packages.shape3] Frame 0
class shape3 extends shapeClass
{
var level, temperatureMax, isSpecial, shardsId, setMatrix;
function shape3 () {
super();
level = 3;
temperatureMax = 2 + level;
isSpecial = false;
shardsId = "shape shard";
setMatrix([[1, 1], [0, 1]]);
}
}
Symbol 1015 MovieClip [__Packages.shape10] Frame 0
class shape10 extends shapeClass
{
var level, temperatureMax, shardsId, isSpecial, setMatrix;
function shape10 () {
super();
level = 4;
temperatureMax = 2 + level;
shardsId = "shape shard";
isSpecial = false;
setMatrix([[0, 1, 0], [1, 1, 1]]);
}
}
Symbol 1016 MovieClip [__Packages.shape5] Frame 0
class shape5 extends shapeClass
{
var level, temperatureMax, isSpecial, shardsId, setMatrix;
function shape5 () {
super();
level = 4;
temperatureMax = 2 + level;
isSpecial = false;
shardsId = "shape shard";
setMatrix([[1, 1, 0], [0, 1, 1]]);
}
}
Symbol 1017 MovieClip [__Packages.shape6] Frame 0
class shape6 extends shapeClass
{
var level, temperatureMax, isSpecial, shardsId, setMatrix;
function shape6 () {
super();
level = 4;
temperatureMax = 2 + level;
isSpecial = false;
shardsId = "shape shard";
setMatrix([[0, 1, 1], [1, 1, 0]]);
}
}
Symbol 1018 MovieClip [__Packages.shape7] Frame 0
class shape7 extends shapeClass
{
var level, temperatureMax, isSpecial, shardsId, setMatrix;
function shape7 () {
super();
level = 4;
temperatureMax = 2 + level;
isSpecial = false;
shardsId = "shape shard";
setMatrix([[1, 1], [1, 0], [1, 0]]);
}
}
Symbol 1019 MovieClip [__Packages.shape8] Frame 0
class shape8 extends shapeClass
{
var level, temperatureMax, isSpecial, shardsId, setMatrix;
function shape8 () {
super();
level = 4;
temperatureMax = 2 + level;
isSpecial = false;
shardsId = "shape shard";
setMatrix([[1, 1], [0, 1], [0, 1]]);
}
}
Symbol 1020 MovieClip [__Packages.shape2] Frame 0
class shape2 extends shapeClass
{
var level, temperatureMax, isSpecial, shardsId, setMatrix, Matrix;
function shape2 () {
super();
level = 2;
temperatureMax = 2 + level;
isSpecial = false;
shardsId = "shape shard";
setMatrix((Matrix = [[1, 1]]));
}
}
Symbol 1021 MovieClip [__Packages.shape9] Frame 0
class shape9 extends shapeClass
{
var level, temperatureMax, shardsId, isSpecial, setMatrix;
function shape9 () {
super();
level = 4;
temperatureMax = 2 + level;
shardsId = "shape shard";
isSpecial = false;
setMatrix([[1, 1], [1, 1]]);
}
}
Symbol 1022 MovieClip [__Packages.shape4] Frame 0
class shape4 extends shapeClass
{
var level, temperatureMax, isSpecial, shardsId, setMatrix;
function shape4 () {
super();
level = 3;
temperatureMax = 2 + level;
isSpecial = false;
shardsId = "shape shard";
setMatrix([[1], [1], [1]]);
}
}
Symbol 1023 MovieClip [__Packages.special_shape3] Frame 0
class special_shape3 extends shapeClass
{
var temperatureMax, isSpecial, level, shardsId, setMatrix;
function special_shape3 () {
super();
temperatureMax = 15;
isSpecial = true;
level = 3;
shardsId = "special_shape shard";
setMatrix([[1, 1], [0, 1]]);
}
}
Symbol 1024 MovieClip [__Packages.special_shape10] Frame 0
class special_shape10 extends shapeClass
{
var temperatureMax, isSpecial, level, shardsId, setMatrix;
function special_shape10 () {
super();
temperatureMax = 15;
isSpecial = true;
level = 4;
shardsId = "special_shape shard";
setMatrix([[0, 1, 0], [1, 1, 1]]);
}
}
Symbol 1025 MovieClip [__Packages.special_shape5] Frame 0
class special_shape5 extends shapeClass
{
var temperatureMax, isSpecial, level, shardsId, setMatrix;
function special_shape5 () {
super();
temperatureMax = 15;
isSpecial = true;
level = 4;
shardsId = "special_shape shard";
setMatrix([[1, 1, 0], [0, 1, 1]]);
}
}
Symbol 1026 MovieClip [__Packages.special_shape6] Frame 0
class special_shape6 extends shapeClass
{
var temperatureMax, isSpecial, level, shardsId, setMatrix;
function special_shape6 () {
super();
temperatureMax = 15;
isSpecial = true;
level = 4;
shardsId = "special_shape shard";
setMatrix([[0, 1, 1], [1, 1, 0]]);
}
}
Symbol 1027 MovieClip [__Packages.special_shape7] Frame 0
class special_shape7 extends shapeClass
{
var temperatureMax, isSpecial, level, shardsId, setMatrix;
function special_shape7 () {
super();
temperatureMax = 15;
isSpecial = true;
level = 4;
shardsId = "special_shape shard";
setMatrix([[1, 1], [1, 0], [1, 0]]);
}
}
Symbol 1028 MovieClip [__Packages.special_shape8] Frame 0
class special_shape8 extends shapeClass
{
var temperatureMax, isSpecial, level, shardsId, setMatrix;
function special_shape8 () {
super();
temperatureMax = 15;
isSpecial = true;
level = 4;
shardsId = "special_shape shard";
setMatrix([[1, 1], [0, 1], [0, 1]]);
}
}
Symbol 1029 MovieClip [__Packages.special_shape2] Frame 0
class special_shape2 extends shapeClass
{
var temperatureMax, isSpecial, level, shardsId, setMatrix;
function special_shape2 () {
super();
temperatureMax = 15;
isSpecial = true;
level = 2;
shardsId = "special_shape shard";
setMatrix([[1, 1]]);
}
}
Symbol 1030 MovieClip [__Packages.special_shape9] Frame 0
class special_shape9 extends shapeClass
{
var temperatureMax, isSpecial, level, shardsId, setMatrix;
function special_shape9 () {
super();
temperatureMax = 15;
isSpecial = true;
level = 4;
shardsId = "special_shape shard";
setMatrix([[1, 1], [1, 1]]);
}
}
Symbol 1031 MovieClip [__Packages.special_shape4] Frame 0
class special_shape4 extends shapeClass
{
var temperatureMax, isSpecial, level, shardsId, setMatrix;
function special_shape4 () {
super();
temperatureMax = 15;
isSpecial = true;
level = 3;
shardsId = "special_shape shard";
setMatrix([[1], [1], [1]]);
}
}
Symbol 1032 MovieClip [__Packages.fillcolor] Frame 0
class fillcolor extends shapeClass
{
var temperatureMax, isSpecial, bonusType, setMatrix, rotate, rotateSimple, setRotation, level, burningIntervalID, _name, but, gotoAndPlay;
function fillcolor () {
super();
temperatureMax = 5;
isSpecial = false;
bonusType = "fillcolor";
setMatrix([[1]]);
rotate = null;
rotateSimple = null;
setRotation = null;
level = 1;
}
function die() {
if (burningIntervalID) {
clearInterval(burningIntervalID);
burningIntervalID = 0;
}
_name = _name + "dying";
but.onRelease = null;
but.onPress = null;
(gotoAndPlay("del"));// not popped
}
}
Symbol 1033 MovieClip [__Packages.magnet] Frame 0
class magnet extends shapeClass
{
var temperatureMax, isSpecial, bonusType, setMatrix, rotate, rotateSimple, setRotation, level, burningIntervalID, _name, but, gotoAndPlay;
function magnet () {
super();
temperatureMax = 5;
isSpecial = false;
bonusType = "magnet";
setMatrix([[1]]);
rotate = null;
rotateSimple = null;
setRotation = null;
level = 1;
}
function die() {
if (burningIntervalID) {
clearInterval(burningIntervalID);
burningIntervalID = 0;
}
_name = _name + "dying";
but.onRelease = null;
but.onPress = null;
(gotoAndPlay("del"));// not popped
}
}
Symbol 1034 MovieClip [__Packages.chainflash] Frame 0
class chainflash extends shapeClass
{
var temperatureMax, isSpecial, bonusType, setMatrix, rotate, rotateSimple, setRotation, level, burningIntervalID, _name, but, gotoAndPlay;
function chainflash () {
super();
temperatureMax = 5;
isSpecial = false;
bonusType = "chainflash";
setMatrix([[1]]);
rotate = null;
rotateSimple = null;
setRotation = null;
level = 1;
}
function die() {
if (burningIntervalID) {
clearInterval(burningIntervalID);
burningIntervalID = 0;
}
_name = _name + "dying";
but.onRelease = null;
but.onPress = null;
(gotoAndPlay("del"));// not popped
}
}
Symbol 1035 MovieClip [__Packages.bubbleClass] Frame 0
class bubbleClass extends MovieClip
{
var onEnterFrame, _x, _y, _alpha, _xscale, _yscale, removeMovieClip;
function bubbleClass () {
super();
velocityX = velocityMax * (0.5 - Math.random());
velocityY = velocityMax * (0.5 - Math.random());
onEnterFrame = update;
}
function update() {
_x = _x + velocityX;
_y = _y + velocityY;
_alpha = _alpha - alphaDecrement;
_xscale = _xscale + scaleIncrement;
_yscale = _yscale + scaleIncrement;
if (_alpha < 0) {
removeMovieClip();
}
}
var velocityMax = 1.5;
var velocityX = 0;
var velocityY = 0;
var scaleIncrement = 1;
var alphaDecrement = 1;
}
Symbol 1036 MovieClip [__Packages.hintClass] Frame 0
class hintClass extends MovieClip
{
var my_fmt, attachMovie, getNextHighestDepth, _y, _x;
function hintClass () {
super();
my_fmt = new TextFormat();
my_fmt.font = txtFont;
my_fmt.size = txtSize;
my_fmt.color = txtColor;
my_fmt.align = "center";
}
function putTextLine(textLine, n) {
var _local5;
attachMovie("hint-text", "hinttext" + n, getNextHighestDepth());
_local5 = this["hinttext" + n];
var _local11 = txtBlockY0;
_local5._x = txtBlockX0;
_local5._y = _local11 + (n * _local5.bg._height);
var _local9 = 3;
var _local7 = -3;
var _local4 = _local9;
var _local2 = 0;
while (_local2 < textLine.length) {
_local5.mctxt.createTextField("t" + _local2, _local2 + 1, _local4, _local7, symbolWidth * 2, symbolHeight);
_local4 = _local4 + symbolWidth;
var _local3 = _local5.mctxt["t" + _local2];
_local3.text = textLine.substr(_local2, 1);
_local3.setTextFormat(my_fmt);
_local3.selectable = false;
_local2++;
}
var _local8 = new Object();
_local8.item = _local5;
_local8.wdth = (_local4 - _local9) + (3 * symbolWidth);
return(_local8);
}
function putTextBlock(textBlock) {
var _local2 = 0;
var _local6 = 0;
var _local5 = 0;
var _local8;
var _local9;
var _local11;
var _local3 = 0;
var _local4;
var _local10;
do {
_local9 = textBlock.substr(_local2, 1);
if (_local9 == "|") {
_local8 = textBlock.substr(_local6, _local2 - _local6);
_local4 = putTextLine(_local8, _local5);
_local5++;
if (_local4.wdth > _local3) {
_local3 = _local4.wdth;
}
_local6 = _local2 + 1;
}
_local2++;
} while (_local2 < textBlock.length);
_local8 = textBlock.substr(_local6, _local2 - _local6);
_local4 = putTextLine(_local8, _local5);
if (_local4.wdth > _local3) {
_local3 = _local4.wdth;
}
_local2 = 0;
while (_local2 <= _local5) {
_local10 = this["hinttext" + _local2];
_local10.bg._width = _local3;
_local2++;
}
txtBlockWidth = _local3;
txtBlockHeight = _local5 * symbolHeight;
}
function putArrow(dir) {
var _local2;
_local2 = attachMovie("hint-arrows", "hintarrows", getNextHighestDepth());
if (dir) {
_local2._x = txtBlockWidth - _local2._width;
_local2._y = _local2._y - _local2._height;
_y = _y + _local2._height;
_x = _x - txtBlockWidth;
} else {
_local2._x = 0;
_local2._xscale = -100;
_x = _x + _local2._width;
}
return(_local2);
}
var txtFont = "Arial";
var txtSize = 12;
var txtColor = 16777215;
var symbolHeight = 20;
var symbolWidth = 7;
var txtBlockX0 = 0;
var txtBlockY0 = 0;
var txtBlockWidth = 0;
var txtBlockHeight = 0;
}
Symbol 1037 MovieClip [__Packages.coin] Frame 0
class coin extends shapeClass
{
var temperatureMax, isSpecial, bonusType, setMatrix, rotateSimple, setRotation, level, burningIntervalID, _name, but, gotoAndPlay;
function coin () {
super();
temperatureMax = 5;
isSpecial = false;
bonusType = "coin";
setMatrix([[1]]);
rotateSimple = null;
setRotation = null;
level = 1;
}
function rotate() {
}
function die() {
if (burningIntervalID) {
clearInterval(burningIntervalID);
burningIntervalID = 0;
}
_name = _name + "dying";
but.onRelease = null;
but.onPress = null;
(gotoAndPlay("del"));// not popped
}
}
Symbol 1038 MovieClip [__Packages.bomb] Frame 0
class bomb extends shapeClass
{
var temperatureMax, isSpecial, bonusType, setMatrix, rotateSimple, setRotation, level, burningIntervalID, _name, but, gotoAndPlay;
function bomb () {
super();
temperatureMax = 5;
isSpecial = false;
bonusType = "bomb";
setMatrix([[1]]);
rotateSimple = null;
setRotation = null;
level = 1;
}
function rotate() {
}
function die() {
if (burningIntervalID) {
clearInterval(burningIntervalID);
burningIntervalID = 0;
}
_name = _name + "dying";
but.onRelease = null;
but.onPress = null;
(gotoAndPlay("del"));// not popped
}
}
Symbol 1039 MovieClip [__Packages.mx.managers.DepthManager] Frame 0
class mx.managers.DepthManager
{
var _childCounter, createClassObject, createObject, _parent, swapDepths, _topmost, getDepth;
function DepthManager () {
MovieClip.prototype.createClassChildAtDepth = createClassChildAtDepth;
MovieClip.prototype.createChildAtDepth = createChildAtDepth;
MovieClip.prototype.setDepthTo = setDepthTo;
MovieClip.prototype.setDepthAbove = setDepthAbove;
MovieClip.prototype.setDepthBelow = setDepthBelow;
MovieClip.prototype.findNextAvailableDepth = findNextAvailableDepth;
MovieClip.prototype.shuffleDepths = shuffleDepths;
MovieClip.prototype.getDepthByFlag = getDepthByFlag;
MovieClip.prototype.buildDepthTable = buildDepthTable;
}
static function sortFunction(a, b) {
if (a.getDepth() > b.getDepth()) {
return(1);
}
return(-1);
}
static function test(depth) {
if (depth == reservedDepth) {
return(false);
}
return(true);
}
static function createClassObjectAtDepth(className, depthSpace, initObj) {
var _local1;
switch (depthSpace) {
case kCursor :
_local1 = holder.createClassChildAtDepth(className, kTopmost, initObj);
break;
case kTooltip :
_local1 = holder.createClassChildAtDepth(className, kTop, initObj);
break;
}
return(_local1);
}
static function createObjectAtDepth(linkageName, depthSpace, initObj) {
var _local1;
switch (depthSpace) {
case kCursor :
_local1 = holder.createChildAtDepth(linkageName, kTopmost, initObj);
break;
case kTooltip :
_local1 = holder.createChildAtDepth(linkageName, kTop, initObj);
break;
}
return(_local1);
}
function createClassChildAtDepth(className, depthFlag, initObj) {
if (_childCounter == undefined) {
_childCounter = 0;
}
var _local3 = buildDepthTable();
var _local2 = getDepthByFlag(depthFlag, _local3);
var _local5 = "down";
if (depthFlag == kBottom) {
_local5 = "up";
}
var _local6;
if (_local3[_local2] != undefined) {
_local6 = _local2;
_local2 = findNextAvailableDepth(_local2, _local3, _local5);
}
var _local4 = createClassObject(className, "depthChild" + (_childCounter++), _local2, initObj);
if (_local6 != undefined) {
_local3[_local2] = _local4;
shuffleDepths(_local4, _local6, _local3, _local5);
}
if (depthFlag == kTopmost) {
_local4._topmost = true;
}
return(_local4);
}
function createChildAtDepth(linkageName, depthFlag, initObj) {
if (_childCounter == undefined) {
_childCounter = 0;
}
var _local3 = buildDepthTable();
var _local2 = getDepthByFlag(depthFlag, _local3);
var _local5 = "down";
if (depthFlag == kBottom) {
_local5 = "up";
}
var _local6;
if (_local3[_local2] != undefined) {
_local6 = _local2;
_local2 = findNextAvailableDepth(_local2, _local3, _local5);
}
var _local4 = createObject(linkageName, "depthChild" + (_childCounter++), _local2, initObj);
if (_local6 != undefined) {
_local3[_local2] = _local4;
shuffleDepths(_local4, _local6, _local3, _local5);
}
if (depthFlag == kTopmost) {
_local4._topmost = true;
}
return(_local4);
}
function setDepthTo(depthFlag) {
var _local2 = _parent.buildDepthTable();
var _local3 = _parent.getDepthByFlag(depthFlag, _local2);
if (_local2[_local3] != undefined) {
shuffleDepths(MovieClip(this), _local3, _local2, undefined);
} else {
swapDepths(_local3);
}
if (depthFlag == kTopmost) {
_topmost = true;
} else {
delete _topmost;
}
}
function setDepthAbove(targetInstance) {
if (targetInstance._parent != _parent) {
return(undefined);
}
var _local2 = targetInstance.getDepth() + 1;
var _local3 = _parent.buildDepthTable();
if ((_local3[_local2] != undefined) && (getDepth() < _local2)) {
_local2 = _local2 - 1;
}
if (_local2 > highestDepth) {
_local2 = highestDepth;
}
if (_local2 == highestDepth) {
_parent.shuffleDepths(this, _local2, _local3, "down");
} else if (_local3[_local2] != undefined) {
_parent.shuffleDepths(this, _local2, _local3, undefined);
} else {
swapDepths(_local2);
}
}
function setDepthBelow(targetInstance) {
if (targetInstance._parent != _parent) {
return(undefined);
}
var _local6 = targetInstance.getDepth() - 1;
var _local3 = _parent.buildDepthTable();
if ((_local3[_local6] != undefined) && (getDepth() > _local6)) {
_local6 = _local6 + 1;
}
var _local4 = lowestDepth + numberOfAuthortimeLayers;
var _local5;
for (_local5 in _local3) {
var _local2 = _local3[_local5];
if (_local2._parent != undefined) {
_local4 = Math.min(_local4, _local2.getDepth());
}
}
if (_local6 < _local4) {
_local6 = _local4;
}
if (_local6 == _local4) {
_parent.shuffleDepths(this, _local6, _local3, "up");
} else if (_local3[_local6] != undefined) {
_parent.shuffleDepths(this, _local6, _local3, undefined);
} else {
swapDepths(_local6);
}
}
function findNextAvailableDepth(targetDepth, depthTable, direction) {
var _local5 = lowestDepth + numberOfAuthortimeLayers;
if (targetDepth < _local5) {
targetDepth = _local5;
}
if (depthTable[targetDepth] == undefined) {
return(targetDepth);
}
var _local1 = targetDepth;
var _local2 = targetDepth;
if (direction == "down") {
while (depthTable[_local2] != undefined) {
_local2--;
}
return(_local2);
}
while (depthTable[_local1] != undefined) {
_local1++;
}
return(_local1);
}
function shuffleDepths(subject, targetDepth, depthTable, direction) {
var _local9 = lowestDepth + numberOfAuthortimeLayers;
var _local8 = _local9;
var _local5;
for (_local5 in depthTable) {
var _local7 = depthTable[_local5];
if (_local7._parent != undefined) {
_local9 = Math.min(_local9, _local7.getDepth());
}
}
if (direction == undefined) {
if (subject.getDepth() > targetDepth) {
direction = "up";
} else {
direction = "down";
}
}
var _local1 = new Array();
for (_local5 in depthTable) {
var _local7 = depthTable[_local5];
if (_local7._parent != undefined) {
_local1.push(_local7);
}
}
_local1.sort(sortFunction);
if (direction == "up") {
var _local3;
var _local11;
do {
if (_local1.length <= 0) {
break;
}
_local3 = _local1.pop();
} while (_local3 != subject);
do {
if (_local1.length <= 0) {
break;
}
_local11 = subject.getDepth();
_local3 = _local1.pop();
var _local4 = _local3.getDepth();
if (_local11 > (_local4 + 1)) {
if (_local4 >= 0) {
subject.swapDepths(_local4 + 1);
} else if ((_local11 > _local8) && (_local4 < _local8)) {
subject.swapDepths(_local8);
}
}
subject.swapDepths(_local3);
} while (_local4 != targetDepth);
} else if (direction == "down") {
var _local3;
do {
if (_local1.length <= 0) {
break;
}
_local3 = _local1.shift();
} while (_local3 != subject);
do {
if (_local1.length <= 0) {
break;
}
var _local11 = _local3.getDepth();
_local3 = _local1.shift();
var _local4 = _local3.getDepth();
if ((_local11 < (_local4 - 1)) && (_local4 > 0)) {
subject.swapDepths(_local4 - 1);
}
subject.swapDepths(_local3);
} while (_local4 != targetDepth);
}
}
function getDepthByFlag(depthFlag, depthTable) {
var _local2 = 0;
if ((depthFlag == kTop) || (depthFlag == kNotopmost)) {
var _local5 = 0;
var _local7 = false;
var _local8;
for (_local8 in depthTable) {
var _local9 = depthTable[_local8];
var _local3 = typeof(_local9);
if ((_local3 == "movieclip") || ((_local3 == "object") && (_local9.__getTextFormat != undefined))) {
if (_local9.getDepth() <= highestDepth) {
if (!_local9._topmost) {
_local2 = Math.max(_local2, _local9.getDepth());
} else if (!_local7) {
_local5 = _local9.getDepth();
_local7 = true;
} else {
_local5 = Math.min(_local5, _local9.getDepth());
}
}
}
}
_local2 = _local2 + 20;
if (_local7) {
if (_local2 >= _local5) {
_local2 = _local5 - 1;
}
}
} else if (depthFlag == kBottom) {
for (var _local8 in depthTable) {
var _local9 = depthTable[_local8];
var _local3 = typeof(_local9);
if ((_local3 == "movieclip") || ((_local3 == "object") && (_local9.__getTextFormat != undefined))) {
if (_local9.getDepth() <= highestDepth) {
_local2 = Math.min(_local2, _local9.getDepth());
}
}
}
_local2 = _local2 - 20;
} else if (depthFlag == kTopmost) {
for (var _local8 in depthTable) {
var _local9 = depthTable[_local8];
var _local3 = typeof(_local9);
if ((_local3 == "movieclip") || ((_local3 == "object") && (_local9.__getTextFormat != undefined))) {
if (_local9.getDepth() <= highestDepth) {
_local2 = Math.max(_local2, _local9.getDepth());
}
}
}
_local2 = _local2 + 100;
}
if (_local2 >= highestDepth) {
_local2 = highestDepth;
}
var _local6 = lowestDepth + numberOfAuthortimeLayers;
for (var _local9 in depthTable) {
var _local4 = depthTable[_local9];
if (_local4._parent != undefined) {
_local6 = Math.min(_local6, _local4.getDepth());
}
}
if (_local2 <= _local6) {
_local2 = _local6;
}
return(_local2);
}
function buildDepthTable(Void) {
var _local5 = new Array();
var _local4;
for (_local4 in this) {
var _local2 = this[_local4];
var _local3 = typeof(_local2);
if ((_local3 == "movieclip") || ((_local3 == "object") && (_local2.__getTextFormat != undefined))) {
if (_local2._parent == this) {
_local5[_local2.getDepth()] = _local2;
}
}
}
return(_local5);
}
static var reservedDepth = 1048575;
static var highestDepth = 1048574;
static var lowestDepth = -16383;
static var numberOfAuthortimeLayers = 383;
static var kCursor = 101;
static var kTooltip = 102;
static var kTop = 201;
static var kBottom = 202;
static var kTopmost = 203;
static var kNotopmost = 204;
static var holder = _root.createEmptyMovieClip("reserved", reservedDepth);
static var __depthManager = new mx.managers.DepthManager();
}
Symbol 1040 MovieClip [__Packages.mx.core.UIObject] Frame 0
class mx.core.UIObject extends MovieClip
{
var _width, _height, _x, _y, _parent, _minHeight, _minWidth, _visible, dispatchEvent, _xscale, _yscale, methodTable, onEnterFrame, tfList, __width, __height, moveTo, lineTo, createTextField, attachMovie, buildDepthTable, findNextAvailableDepth, idNames, childrenCreated, _name, createAccessibilityImplementation, _endInit, validateNow, hasOwnProperty, initProperties, stylecache, className, ignoreClassStyleDeclaration, _tf, fontFamily, fontSize, color, marginLeft, marginRight, fontStyle, fontWeight, textAlign, textIndent, textDecoration, embedFonts, styleName, enabled;
function UIObject () {
super();
constructObject();
}
function get width() {
return(_width);
}
function get height() {
return(_height);
}
function get left() {
return(_x);
}
function get x() {
return(_x);
}
function get top() {
return(_y);
}
function get y() {
return(_y);
}
function get right() {
return(_parent.width - (_x + width));
}
function get bottom() {
return(_parent.height - (_y + height));
}
function getMinHeight(Void) {
return(_minHeight);
}
function setMinHeight(h) {
_minHeight = h;
}
function get minHeight() {
return(getMinHeight());
}
function set minHeight(h) {
setMinHeight(h);
//return(minHeight);
}
function getMinWidth(Void) {
return(_minWidth);
}
function setMinWidth(w) {
_minWidth = w;
}
function get minWidth() {
return(getMinWidth());
}
function set minWidth(w) {
setMinWidth(w);
//return(minWidth);
}
function setVisible(x, noEvent) {
if (x != _visible) {
_visible = x;
if (noEvent != true) {
dispatchEvent({type:(x ? "reveal" : "hide")});
}
}
}
function get visible() {
return(_visible);
}
function set visible(x) {
setVisible(x, false);
//return(visible);
}
function get scaleX() {
return(_xscale);
}
function set scaleX(x) {
_xscale = x;
//return(scaleX);
}
function get scaleY() {
return(_yscale);
}
function set scaleY(y) {
_yscale = y;
//return(scaleY);
}
function doLater(obj, fn) {
if (methodTable == undefined) {
methodTable = new Array();
}
methodTable.push({obj:obj, fn:fn});
onEnterFrame = doLaterDispatcher;
}
function doLaterDispatcher(Void) {
delete onEnterFrame;
if (invalidateFlag) {
redraw();
}
var _local3 = methodTable;
methodTable = new Array();
if (_local3.length > 0) {
var _local2;
while (_local2 = _local3.shift() , _local2 != undefined) {
_local2.obj[_local2.fn]();
}
}
}
function cancelAllDoLaters(Void) {
delete onEnterFrame;
methodTable = new Array();
}
function invalidate(Void) {
invalidateFlag = true;
onEnterFrame = doLaterDispatcher;
}
function invalidateStyle(Void) {
invalidate();
}
function redraw(bAlways) {
if (invalidateFlag || (bAlways)) {
invalidateFlag = false;
var _local2;
for (_local2 in tfList) {
tfList[_local2].draw();
}
draw();
dispatchEvent({type:"draw"});
}
}
function draw(Void) {
}
function move(x, y, noEvent) {
var _local3 = _x;
var _local2 = _y;
_x = x;
_y = y;
if (noEvent != true) {
dispatchEvent({type:"move", oldX:_local3, oldY:_local2});
}
}
function setSize(w, h, noEvent) {
var _local3 = __width;
var _local2 = __height;
__width = w;
__height = h;
size();
if (noEvent != true) {
dispatchEvent({type:"resize", oldWidth:_local3, oldHeight:_local2});
}
}
function size(Void) {
_width = __width;
_height = __height;
}
function drawRect(x1, y1, x2, y2) {
moveTo(x1, y1);
lineTo(x2, y1);
lineTo(x2, y2);
lineTo(x1, y2);
lineTo(x1, y1);
}
function createLabel(name, depth, text) {
createTextField(name, depth, 0, 0, 0, 0);
var _local2 = this[name];
_local2._color = textColorList;
_local2._visible = false;
_local2.__text = text;
if (tfList == undefined) {
tfList = new Object();
}
tfList[name] = _local2;
_local2.invalidateStyle();
invalidate();
_local2.styleName = this;
return(_local2);
}
function createObject(linkageName, id, depth, initobj) {
return(attachMovie(linkageName, id, depth, initobj));
}
function createClassObject(className, id, depth, initobj) {
var _local3 = className.symbolName == undefined;
if (_local3) {
Object.registerClass(className.symbolOwner.symbolName, className);
}
var _local4 = mx.core.UIObject(createObject(className.symbolOwner.symbolName, id, depth, initobj));
if (_local3) {
Object.registerClass(className.symbolOwner.symbolName, className.symbolOwner);
}
return(_local4);
}
function createEmptyObject(id, depth) {
return(createClassObject(mx.core.UIObject, id, depth));
}
function destroyObject(id) {
var _local2 = this[id];
if (_local2.getDepth() < 0) {
var _local4 = buildDepthTable();
var _local5 = findNextAvailableDepth(0, _local4, "up");
var _local3 = _local5;
_local2.swapDepths(_local3);
}
_local2.removeMovieClip();
delete this[id];
}
function getSkinIDName(tag) {
return(idNames[tag]);
}
function setSkin(tag, linkageName, initObj) {
if (_global.skinRegistry[linkageName] == undefined) {
mx.skins.SkinElement.registerElement(linkageName, mx.skins.SkinElement);
}
return(createObject(linkageName, getSkinIDName(tag), tag, initObj));
}
function createSkin(tag) {
var _local2 = getSkinIDName(tag);
createEmptyObject(_local2, tag);
return(this[_local2]);
}
function createChildren(Void) {
}
function _createChildren(Void) {
createChildren();
childrenCreated = true;
}
function constructObject(Void) {
if (_name == undefined) {
return(undefined);
}
init();
_createChildren();
createAccessibilityImplementation();
_endInit();
if (validateNow) {
redraw(true);
} else {
invalidate();
}
}
function initFromClipParameters(Void) {
var _local4 = false;
var _local2;
for (_local2 in clipParameters) {
if (hasOwnProperty(_local2)) {
_local4 = true;
this["def_" + _local2] = this[_local2];
delete this[_local2];
}
}
if (_local4) {
for (_local2 in clipParameters) {
var _local3 = this["def_" + _local2];
if (_local3 != undefined) {
this[_local2] = _local3;
}
}
}
}
function init(Void) {
__width = _width;
__height = _height;
if (initProperties == undefined) {
initFromClipParameters();
} else {
initProperties();
}
if (_global.cascadingStyles == true) {
stylecache = new Object();
}
}
function getClassStyleDeclaration(Void) {
var _local4 = this;
var _local3 = className;
while (_local3 != undefined) {
if (ignoreClassStyleDeclaration[_local3] == undefined) {
if (_global.styles[_local3] != undefined) {
return(_global.styles[_local3]);
}
}
_local4 = _local4.__proto__;
_local3 = _local4.className;
}
}
function setColor(color) {
}
function __getTextFormat(tf, bAll) {
var _local8 = stylecache.tf;
if (_local8 != undefined) {
var _local3;
for (_local3 in mx.styles.StyleManager.TextFormatStyleProps) {
if (bAll || (mx.styles.StyleManager.TextFormatStyleProps[_local3])) {
if (tf[_local3] == undefined) {
tf[_local3] = _local8[_local3];
}
}
}
return(false);
}
var _local6 = false;
for (var _local3 in mx.styles.StyleManager.TextFormatStyleProps) {
if (bAll || (mx.styles.StyleManager.TextFormatStyleProps[_local3])) {
if (tf[_local3] == undefined) {
var _local5 = _tf[_local3];
if (_local5 != undefined) {
tf[_local3] = _local5;
} else if ((_local3 == "font") && (fontFamily != undefined)) {
tf[_local3] = fontFamily;
} else if ((_local3 == "size") && (fontSize != undefined)) {
tf[_local3] = fontSize;
} else if ((_local3 == "color") && (color != undefined)) {
tf[_local3] = color;
} else if ((_local3 == "leftMargin") && (marginLeft != undefined)) {
tf[_local3] = marginLeft;
} else if ((_local3 == "rightMargin") && (marginRight != undefined)) {
tf[_local3] = marginRight;
} else if ((_local3 == "italic") && (fontStyle != undefined)) {
tf[_local3] = fontStyle == _local3;
} else if ((_local3 == "bold") && (fontWeight != undefined)) {
tf[_local3] = fontWeight == _local3;
} else if ((_local3 == "align") && (textAlign != undefined)) {
tf[_local3] = textAlign;
} else if ((_local3 == "indent") && (textIndent != undefined)) {
tf[_local3] = textIndent;
} else if ((_local3 == "underline") && (textDecoration != undefined)) {
tf[_local3] = textDecoration == _local3;
} else if ((_local3 == "embedFonts") && (embedFonts != undefined)) {
tf[_local3] = embedFonts;
} else {
_local6 = true;
}
}
}
}
if (_local6) {
var _local9 = styleName;
if (_local9 != undefined) {
if (typeof(_local9) != "string") {
_local6 = _local9.__getTextFormat(tf, true, this);
} else if (_global.styles[_local9] != undefined) {
_local6 = _global.styles[_local9].__getTextFormat(tf, true, this);
}
}
}
if (_local6) {
var _local10 = getClassStyleDeclaration();
if (_local10 != undefined) {
_local6 = _local10.__getTextFormat(tf, true, this);
}
}
if (_local6) {
if (_global.cascadingStyles) {
if (_parent != undefined) {
_local6 = _parent.__getTextFormat(tf, false);
}
}
}
if (_local6) {
_local6 = _global.style.__getTextFormat(tf, true, this);
}
return(_local6);
}
function _getTextFormat(Void) {
var _local2 = stylecache.tf;
if (_local2 != undefined) {
return(_local2);
}
_local2 = new TextFormat();
__getTextFormat(_local2, true);
stylecache.tf = _local2;
if (enabled == false) {
var _local3 = getStyle("disabledColor");
_local2.color = _local3;
}
return(_local2);
}
function getStyleName(Void) {
var _local2 = styleName;
if (_local2 != undefined) {
if (typeof(_local2) != "string") {
return(_local2.getStyleName());
}
return(_local2);
}
if (_parent != undefined) {
return(_parent.getStyleName());
}
return(undefined);
}
function getStyle(styleProp) {
var _local3;
_global.getStyleCounter++;
if (this[styleProp] != undefined) {
return(this[styleProp]);
}
var _local6 = styleName;
if (_local6 != undefined) {
if (typeof(_local6) != "string") {
_local3 = _local6.getStyle(styleProp);
} else {
var _local7 = _global.styles[_local6];
_local3 = _local7.getStyle(styleProp);
}
}
if (_local3 != undefined) {
return(_local3);
}
var _local7 = getClassStyleDeclaration();
if (_local7 != undefined) {
_local3 = _local7[styleProp];
}
if (_local3 != undefined) {
return(_local3);
}
if (_global.cascadingStyles) {
if (mx.styles.StyleManager.isInheritingStyle(styleProp) || (mx.styles.StyleManager.isColorStyle(styleProp))) {
var _local5 = stylecache;
if (_local5 != undefined) {
if (_local5[styleProp] != undefined) {
return(_local5[styleProp]);
}
}
if (_parent != undefined) {
_local3 = _parent.getStyle(styleProp);
} else {
_local3 = _global.style[styleProp];
}
if (_local5 != undefined) {
_local5[styleProp] = _local3;
}
return(_local3);
}
}
if (_local3 == undefined) {
_local3 = _global.style[styleProp];
}
return(_local3);
}
static function mergeClipParameters(o, p) {
for (var _local3 in p) {
o[_local3] = p[_local3];
}
return(true);
}
static var symbolName = "UIObject";
static var symbolOwner = mx.core.UIObject;
static var version = "2.0.0.360";
static var textColorList = {color:1, disabledColor:1};
var invalidateFlag = false;
var lineWidth = 1;
var lineColor = 0;
var tabEnabled = false;
var clipParameters = {visible:1, minHeight:1, minWidth:1, maxHeight:1, maxWidth:1, preferredHeight:1, preferredWidth:1};
}
Symbol 1041 MovieClip [__Packages.mx.skins.SkinElement] Frame 0
class mx.skins.SkinElement extends MovieClip
{
var _visible, _x, _y, _width, _height;
function SkinElement () {
super();
}
static function registerElement(name, className) {
Object.registerClass(name, ((className == undefined) ? (mx.skins.SkinElement) : (className)));
_global.skinRegistry[name] = true;
}
function __set__visible(visible) {
_visible = visible;
}
function move(x, y) {
_x = x;
_y = y;
}
function setSize(w, h) {
_width = w;
_height = h;
}
}
Symbol 1042 MovieClip [__Packages.mx.styles.CSSTextStyles] Frame 0
class mx.styles.CSSTextStyles
{
function CSSTextStyles () {
}
static function addTextStyles(o, bColor) {
o.addProperty("textAlign", function () {
return(this._tf.align);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.align = x;
});
o.addProperty("fontWeight", function () {
return(((this._tf.bold != undefined) ? ((this._tf.bold ? "bold" : "none")) : undefined));
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.bold = x == "bold";
});
if (bColor) {
o.addProperty("color", function () {
return(this._tf.color);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.color = x;
});
}
o.addProperty("fontFamily", function () {
return(this._tf.font);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.font = x;
});
o.addProperty("textIndent", function () {
return(this._tf.indent);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.indent = x;
});
o.addProperty("fontStyle", function () {
return(((this._tf.italic != undefined) ? ((this._tf.italic ? "italic" : "none")) : undefined));
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.italic = x == "italic";
});
o.addProperty("marginLeft", function () {
return(this._tf.leftMargin);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.leftMargin = x;
});
o.addProperty("marginRight", function () {
return(this._tf.rightMargin);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.rightMargin = x;
});
o.addProperty("fontSize", function () {
return(this._tf.size);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.size = x;
});
o.addProperty("textDecoration", function () {
return(((this._tf.underline != undefined) ? ((this._tf.underline ? "underline" : "none")) : undefined));
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.underline = x == "underline";
});
o.addProperty("embedFonts", function () {
return(this._tf.embedFonts);
}, function (x) {
if (this._tf == undefined) {
this._tf = new TextFormat();
}
this._tf.embedFonts = x;
});
}
}
Symbol 1043 MovieClip [__Packages.mx.styles.CSSStyleDeclaration] Frame 0
class mx.styles.CSSStyleDeclaration
{
var _tf;
function CSSStyleDeclaration () {
}
function __getTextFormat(tf, bAll) {
var _local5 = false;
if (_tf != undefined) {
var _local2;
for (_local2 in mx.styles.StyleManager.TextFormatStyleProps) {
if (bAll || (mx.styles.StyleManager.TextFormatStyleProps[_local2])) {
if (tf[_local2] == undefined) {
var _local3 = _tf[_local2];
if (_local3 != undefined) {
tf[_local2] = _local3;
} else {
_local5 = true;
}
}
}
}
} else {
_local5 = true;
}
return(_local5);
}
function getStyle(styleProp) {
var _local2 = this[styleProp];
var _local3 = mx.styles.StyleManager.getColorName(_local2);
return(((_local3 == undefined) ? (_local2) : (_local3)));
}
static function classConstruct() {
mx.styles.CSSTextStyles.addTextStyles(mx.styles.CSSStyleDeclaration.prototype, true);
return(true);
}
static var classConstructed = classConstruct();
static var CSSTextStylesDependency = mx.styles.CSSTextStyles;
}
Symbol 1044 MovieClip [__Packages.mx.styles.StyleManager] Frame 0
class mx.styles.StyleManager
{
function StyleManager () {
}
static function registerInheritingStyle(styleName) {
inheritingStyles[styleName] = true;
}
static function isInheritingStyle(styleName) {
return(inheritingStyles[styleName] == true);
}
static function registerColorStyle(styleName) {
colorStyles[styleName] = true;
}
static function isColorStyle(styleName) {
return(colorStyles[styleName] == true);
}
static function registerColorName(colorName, colorValue) {
colorNames[colorName] = colorValue;
}
static function isColorName(colorName) {
return(colorNames[colorName] != undefined);
}
static function getColorName(colorName) {
return(colorNames[colorName]);
}
static var inheritingStyles = {color:true, direction:true, fontFamily:true, fontSize:true, fontStyle:true, fontWeight:true, textAlign:true, textIndent:true};
static var colorStyles = {barColor:true, trackColor:true, borderColor:true, buttonColor:true, color:true, dateHeaderColor:true, dateRollOverColor:true, disabledColor:true, fillColor:true, highlightColor:true, scrollTrackColor:true, selectedDateColor:true, shadowColor:true, strokeColor:true, symbolBackgroundColor:true, symbolBackgroundDisabledColor:true, symbolBackgroundPressedColor:true, symbolColor:true, symbolDisabledColor:true, themeColor:true, todayIndicatorColor:true, shadowCapColor:true, borderCapColor:true, focusColor:true};
static var colorNames = {black:0, white:16777215, red:16711680, green:65280, blue:255, magenta:16711935, yellow:16776960, cyan:65535, haloGreen:8453965, haloBlue:2881013, haloOrange:16761344};
static var TextFormatStyleProps = {font:true, size:true, color:true, leftMargin:false, rightMargin:false, italic:true, bold:true, align:true, indent:true, underline:false, embedFonts:false};
static var TextStyleMap = {textAlign:true, fontWeight:true, color:true, fontFamily:true, textIndent:true, fontStyle:true, lineHeight:true, marginLeft:true, marginRight:true, fontSize:true, textDecoration:true, embedFonts:true};
}
Symbol 1045 MovieClip [__Packages.setLayersClass] Frame 0
class setLayersClass extends Object
{
var itsTarget;
function setLayersClass () {
super();
Layers = arguments;
Mouse.addListener(listener);
listener.itsTarget = this;
listener.onMouseWheel = wheelHandler;
}
function wheelHandler(delta, manage) {
var _local3 = itsTarget;
if (manage == "button") {
_local3 = this;
}
var _local7 = delta / Math.abs(delta);
var _local4 = _local3.Layers.length;
var _local6;
var _local5;
var _local9 = _local3.velocityMax * _local7;
var _local8 = _local3.velocityMax;
if ((_local3.currentScrollPosition + _local9) < _local3.boundYMin) {
return(undefined);
}
if ((_local3.currentScrollPosition + _local9) > _local3.boundYMax) {
return(undefined);
}
_local3.currentScrollPosition = _local3.currentScrollPosition + _local9;
if (_local3.currentScrollPosition <= _local3.boundYMin) {
_local3.downScrollEnabled = false;
} else {
_local3.downScrollEnabled = true;
}
if ((_local3.currentScrollPosition + _local9) > _local3.boundYMax) {
_local3.upScrollEnabled = false;
} else {
_local3.upScrollEnabled = true;
}
var _local2 = 0;
while (_local2 < _local4) {
_local5 = _local3.Layers[_local2];
_local6 = (_local4 - _local2) / _local4;
_local5._y = _local5._y + Math.round((_local8 * _local7) * _local6);
_local2++;
}
}
function setCurrrentHeight(dHeight) {
var _local2 = velocityMax;
velocityMax = dHeight;
wheelHandler(1, "button");
velocityMax = _local2;
}
function setVelocity(velocity) {
velocityMax = velocity;
}
function getVelocity() {
return(velocityMax);
}
function setBounds(minY, maxY) {
boundYMin = minY;
boundYMax = maxY;
}
var velocityMax = 30;
var listener = {};
var Layers = [];
var boundYMin = 0;
var boundYMax = 360;
var currentScrollPosition = 0;
var downScrollEnabled = false;
var upScrollEnabled = true;
}
Symbol 26 MovieClip Frame 1
stop();
Symbol 26 MovieClip Frame 2
play();
Symbol 28 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 31 MovieClip Frame 1
stop();
Symbol 31 MovieClip Frame 2
stop();
Symbol 33 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 37 MovieClip Frame 1
stop();
Symbol 37 MovieClip Frame 2
stop();
Symbol 38 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 41 MovieClip Frame 1
stop();
Symbol 41 MovieClip Frame 2
stop();
Symbol 42 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 52 MovieClip Frame 1
stop();
txt = _root.fdl_button;
txt1 = _root.fdl_button;
Symbol 52 MovieClip Frame 2
stop();
Symbol 53 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");
_root.getURL(_root.downloadURL, "_blank");
}
on (releaseOutside) {
_root.cursor.gotoAndPlay("arrow");
}
Symbol 60 MovieClip Frame 1
stop();
txt = _root.pn_button;
txt1 = _root.pn_button;
Symbol 60 MovieClip Frame 2
stop();
Symbol 61 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 100 MovieClip Frame 1
stop();
Symbol 100 MovieClip Frame 3
play();
Symbol 100 MovieClip Frame 4
stop();
Symbol 100 MovieClip Frame 5
play();
Symbol 100 MovieClip Frame 6
stop();
Symbol 100 MovieClip Frame 9
play();
Symbol 100 MovieClip Frame 10
stop();
Symbol 100 MovieClip Frame 11
play();
Symbol 100 MovieClip Frame 12
stop();
Symbol 100 MovieClip Frame 13
play();
Symbol 100 MovieClip Frame 14
stop();
Symbol 100 MovieClip Frame 15
play();
Symbol 100 MovieClip Frame 16
stop();
Symbol 100 MovieClip Frame 17
play();
Symbol 100 MovieClip Frame 18
stop();
Symbol 100 MovieClip Frame 19
play();
Symbol 100 MovieClip Frame 20
stop();
Symbol 100 MovieClip Frame 21
play();
Symbol 100 MovieClip Frame 22
stop();
Symbol 100 MovieClip Frame 23
play();
Symbol 100 MovieClip Frame 24
stop();
Symbol 100 MovieClip Frame 25
play();
Symbol 100 MovieClip Frame 26
stop();
Symbol 100 MovieClip Frame 27
play();
Symbol 100 MovieClip Frame 28
stop();
Symbol 100 MovieClip Frame 29
play();
Symbol 100 MovieClip Frame 30
stop();
Symbol 100 MovieClip Frame 31
play();
Symbol 100 MovieClip Frame 32
stop();
Symbol 100 MovieClip Frame 33
play();
Symbol 100 MovieClip Frame 34
stop();
Symbol 100 MovieClip Frame 37
play();
Symbol 100 MovieClip Frame 38
stop();
Symbol 100 MovieClip Frame 39
play();
Symbol 100 MovieClip Frame 40
stop();
Symbol 100 MovieClip Frame 41
play();
Symbol 100 MovieClip Frame 42
stop();
Symbol 100 MovieClip Frame 45
play();
Symbol 100 MovieClip Frame 46
stop();
Symbol 100 MovieClip Frame 47
play();
Symbol 100 MovieClip Frame 48
stop();
Symbol 100 MovieClip Frame 49
play();
Symbol 100 MovieClip Frame 50
stop();
Symbol 100 MovieClip Frame 51
play();
Symbol 100 MovieClip Frame 52
stop();
Symbol 100 MovieClip Frame 53
play();
Symbol 100 MovieClip Frame 54
stop();
Symbol 100 MovieClip Frame 55
play();
Symbol 100 MovieClip Frame 56
stop();
Symbol 100 MovieClip Frame 57
play();
Symbol 100 MovieClip Frame 58
stop();
Symbol 100 MovieClip Frame 59
play();
Symbol 100 MovieClip Frame 60
stop();
Symbol 100 MovieClip Frame 61
play();
Symbol 100 MovieClip Frame 62
stop();
Symbol 100 MovieClip Frame 63
play();
Symbol 100 MovieClip Frame 64
stop();
Symbol 100 MovieClip Frame 65
play();
Symbol 100 MovieClip Frame 66
stop();
Symbol 100 MovieClip Frame 67
play();
Symbol 100 MovieClip Frame 68
stop();
Symbol 100 MovieClip Frame 69
play();
Symbol 100 MovieClip Frame 70
stop();
Symbol 100 MovieClip Frame 71
play();
Symbol 100 MovieClip Frame 72
stop();
Symbol 100 MovieClip Frame 73
play();
Symbol 100 MovieClip Frame 74
stop();
Symbol 100 MovieClip Frame 75
play();
Symbol 100 MovieClip Frame 76
stop();
Symbol 100 MovieClip Frame 77
play();
Symbol 100 MovieClip Frame 80
stop();
Symbol 100 MovieClip Frame 81
play();
Symbol 100 MovieClip Frame 84
stop();
Symbol 103 MovieClip Frame 1
stop();
Symbol 103 MovieClip Frame 2
play();
Symbol 107 MovieClip Frame 1
stop();
Symbol 107 MovieClip Frame 2
play();
Symbol 119 MovieClip Frame 14
stop();
Symbol 122 MovieClip Frame 10
stop();
Symbol 123 MovieClip [jewel3] Frame 1
stop();
activate = function () {
mov.gotoAndPlay("play");
};
activate1 = function () {
blick.gotoAndPlay("play");
};
Symbol 123 MovieClip [jewel3] Frame 2
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 123 MovieClip [jewel3] Frame 3
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 - 10;
}
i++;
}
Symbol 123 MovieClip [jewel3] Frame 4
if (piece._alpha > 0) {
gotoAndPlay ("next");
} else {
this.removeMovieClip();
}
Symbol 135 MovieClip [jewel4] Frame 1
stop();
activate = function () {
mov.gotoAndPlay("play");
};
activate1 = function () {
blick.gotoAndPlay("play");
};
Symbol 135 MovieClip [jewel4] Frame 2
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 135 MovieClip [jewel4] Frame 3
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 - 10;
}
i++;
}
Symbol 135 MovieClip [jewel4] Frame 4
if (piece._alpha > 0) {
gotoAndPlay ("next");
} else {
this.removeMovieClip();
}
Symbol 147 MovieClip [jewel5] Frame 1
stop();
activate = function () {
mov.gotoAndPlay("play");
};
activate1 = function () {
blick.gotoAndPlay("play");
};
Symbol 147 MovieClip [jewel5] Frame 2
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 147 MovieClip [jewel5] Frame 3
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 - 10;
}
i++;
}
Symbol 147 MovieClip [jewel5] Frame 4
if (piece._alpha > 0) {
gotoAndPlay ("next");
} else {
this.removeMovieClip();
}
Symbol 159 MovieClip [jewel6] Frame 1
stop();
activate = function () {
mov.gotoAndPlay("play");
};
activate1 = function () {
blick.gotoAndPlay("play");
};
Symbol 159 MovieClip [jewel6] Frame 2
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 159 MovieClip [jewel6] Frame 3
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 - 10;
}
i++;
}
Symbol 159 MovieClip [jewel6] Frame 4
if (piece._alpha > 0) {
gotoAndPlay ("next");
} else {
this.removeMovieClip();
}
Symbol 171 MovieClip [jewel7] Frame 1
stop();
activate = function () {
mov.gotoAndPlay("play");
};
activate1 = function () {
blick.gotoAndPlay("play");
};
Symbol 171 MovieClip [jewel7] Frame 2
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 171 MovieClip [jewel7] Frame 3
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 - 10;
}
i++;
}
Symbol 171 MovieClip [jewel7] Frame 4
if (piece._alpha > 0) {
gotoAndPlay ("next");
} else {
this.removeMovieClip();
}
Symbol 183 MovieClip [jewel8] Frame 1
stop();
activate = function () {
mov.gotoAndPlay("play");
};
activate1 = function () {
blick.gotoAndPlay("play");
};
Symbol 183 MovieClip [jewel8] Frame 2
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 183 MovieClip [jewel8] Frame 3
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 - 10;
}
i++;
}
Symbol 183 MovieClip [jewel8] Frame 4
if (piece._alpha > 0) {
gotoAndPlay ("next");
} else {
this.removeMovieClip();
}
Symbol 195 MovieClip [jewel1] Frame 1
stop();
activate = function () {
mov.gotoAndPlay("play");
};
activate1 = function () {
blick.gotoAndPlay("play");
};
Symbol 195 MovieClip [jewel1] Frame 2
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 195 MovieClip [jewel1] Frame 3
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 - 10;
}
i++;
}
Symbol 195 MovieClip [jewel1] Frame 4
if (piece._alpha > 0) {
gotoAndPlay ("next");
} else {
this.removeMovieClip();
}
Symbol 207 MovieClip [jewel2] Frame 1
stop();
activate = function () {
mov.gotoAndPlay("play");
};
activate1 = function () {
blick.gotoAndPlay("play");
};
Symbol 207 MovieClip [jewel2] Frame 2
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 207 MovieClip [jewel2] Frame 3
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 - 10;
}
i++;
}
Symbol 207 MovieClip [jewel2] Frame 4
if (piece._alpha > 0) {
gotoAndPlay ("next");
} else {
this.removeMovieClip();
}
Symbol 210 MovieClip [border-bottom] Frame 1
stop();
Symbol 210 MovieClip [border-bottom] Frame 2
removeMovieClip(this);
Symbol 213 MovieClip [decoleftup] Frame 1
stop();
Symbol 213 MovieClip [decoleftup] Frame 2
removeMovieClip(this);
Symbol 215 MovieClip [border-right] Frame 1
stop();
Symbol 215 MovieClip [border-right] Frame 2
removeMovieClip(this);
Symbol 218 MovieClip [cell1] Frame 1
play();
Symbol 218 MovieClip [cell1] Frame 10
stop();
Symbol 218 MovieClip [cell1] Frame 11
play();
Symbol 218 MovieClip [cell1] Frame 22
this.removeMovieClip();
Symbol 219 MovieClip [cell2] Frame 1
play();
Symbol 219 MovieClip [cell2] Frame 10
stop();
Symbol 219 MovieClip [cell2] Frame 11
play();
Symbol 219 MovieClip [cell2] Frame 22
this.removeMovieClip();
Symbol 221 MovieClip [decorightup] Frame 1
stop();
Symbol 221 MovieClip [decorightup] Frame 2
removeMovieClip(this);
Symbol 223 MovieClip [decoleftdown] Frame 1
stop();
Symbol 223 MovieClip [decoleftdown] Frame 2
removeMovieClip(this);
Symbol 225 MovieClip [decorightdown] Frame 1
stop();
Symbol 225 MovieClip [decorightdown] Frame 2
removeMovieClip(this);
Symbol 228 MovieClip [deco2] Frame 1
stop();
Symbol 228 MovieClip [deco2] Frame 2
removeMovieClip(this);
Symbol 230 MovieClip [border-left] Frame 1
stop();
Symbol 230 MovieClip [border-left] Frame 2
removeMovieClip(this);
Symbol 232 MovieClip [border-up] Frame 1
stop();
Symbol 232 MovieClip [border-up] Frame 2
removeMovieClip(this);
Symbol 235 MovieClip [cornerleftup] Frame 1
stop();
Symbol 235 MovieClip [cornerleftup] Frame 2
removeMovieClip(this);
Symbol 237 MovieClip [cornerrightup] Frame 1
stop();
Symbol 237 MovieClip [cornerrightup] Frame 2
removeMovieClip(this);
Symbol 239 MovieClip [cornerleftdown] Frame 1
stop();
Symbol 239 MovieClip [cornerleftdown] Frame 2
removeMovieClip(this);
Symbol 241 MovieClip [cornerrightdown] Frame 1
stop();
Symbol 241 MovieClip [cornerrightdown] Frame 2
removeMovieClip(this);
Symbol 243 MovieClip [but] Frame 1
Symbol 247 MovieClip Frame 1
dr = 2;
dscale = 1;
Symbol 247 MovieClip Frame 2
left._rotation = left._rotation + dr;
right._rotation = right._rotation - dr;
xscale = (left._xscale = left._xscale - dscale);
left._yscale = left._yscale - dscale;
right._xscale = right._xscale - dscale;
right._yscale = right._yscale - dscale;
if ((xscale < 10) || (xscale > 100)) {
dscale = -dscale;
}
Symbol 247 MovieClip Frame 3
gotoAndPlay ("continue");
Symbol 247 MovieClip Frame 4
stop();
Symbol 255 MovieClip Frame 1
stop();
Symbol 255 MovieClip Frame 2
play();
Symbol 259 MovieClip [bomb] Frame 1
#initclip 69
Object.registerClass("bomb", bomb);
#endinitclip
stop();
activate1 = function () {
blick.gotoAndPlay("play");
};
var elementSize = 32;
toStar = function (flag) {
if (flag) {
star.onEnterFrame = function () {
var _local1 = Math.random() * Math.random();
if (_local1 < 0.0015) {
star._x = (Math.random() - 0.5) * elementSize;
star._y = (Math.random() - 0.5) * elementSize;
star.gotoAndPlay("play");
}
};
} else {
star.onEnterFrame = null;
}
};
toLight = function (flag) {
if (flag) {
light.gotoAndPlay("play");
} else {
light.gotoAndStop("off");
}
};
toLight(!inField);
toStar(inField);
Symbol 259 MovieClip [bomb] Frame 2
NShards = 10;
i = 1;
while (i <= NShards) {
shard = eval ("shard" + i);
shard._rotation = Math.random() * 360;
i++;
}
Symbol 259 MovieClip [bomb] Frame 16
removeMovieClip(this);
Symbol 262 MovieClip [dynamite] Frame 1
#initclip 40
Object.registerClass("dynamite", dynamite);
#endinitclip
stop();
activate1 = function () {
blick.gotoAndPlay("play");
};
var elementSize = 32;
toStar = function (flag) {
if (flag) {
star.onEnterFrame = function () {
var _local1 = Math.random() * Math.random();
if (_local1 < 0.0015) {
star._x = (Math.random() - 0.5) * elementSize;
star._y = (Math.random() - 0.5) * elementSize;
star.gotoAndPlay("play");
}
};
} else {
star.onEnterFrame = null;
}
};
toLight = function (flag) {
if (flag) {
light.gotoAndPlay("play");
} else {
light.gotoAndStop("off");
}
};
toLight(!inField);
toStar(inField);
Symbol 262 MovieClip [dynamite] Frame 2
NShards = 10;
i = 1;
while (i <= NShards) {
shard = eval ("shard" + i);
shard._rotation = Math.random() * 360;
i++;
}
Symbol 262 MovieClip [dynamite] Frame 16
removeMovieClip(this);
Symbol 266 MovieClip [flame] Frame 11
this.removeMovieClip();
Symbol 274 MovieClip Frame 1
var reload = 60;
var reloadupgraded = 30;
var respawn = 120;
stop();
Symbol 274 MovieClip Frame 2
stop();
Symbol 274 MovieClip Frame 3
stop();
Symbol 274 MovieClip Frame 4
play();
Symbol 274 MovieClip Frame 5
gotoAndStop ("arrow");
Symbol 274 MovieClip Frame 6
play();
Symbol 274 MovieClip Frame 7
gotoAndStop ("arrow");
Symbol 274 MovieClip Frame 8
play();
Symbol 274 MovieClip Frame 9
gotoAndStop ("arrow");
Symbol 274 MovieClip Frame 10
play();
Symbol 274 MovieClip Frame 11
gotoAndStop ("arrow");
Symbol 274 MovieClip Frame 12
play();
Symbol 274 MovieClip Frame 13
gotoAndStop ("arrow");
Symbol 274 MovieClip Frame 14
stop();
Symbol 277 MovieClip Frame 11
if (!del) {
stop();
i = 0;
onEnterFrame = function () {
i++;
if (del && (i > 1)) {
delete onEnterFrame;
gotoAndPlay ("del");
}
};
}
Symbol 277 MovieClip Frame 31
this.removeMovieClip();
Symbol 282 MovieClip [hint-text] Frame 1
bg._alpha = 0;
mctxt._alpha = 0;
onEnterFrame = function () {
bg._alpha = bg._alpha + 10;
mctxt._alpha = mctxt._alpha + 10;
};
Symbol 282 MovieClip [hint-text] Frame 11
delete onEnterFrame;
stop();
Symbol 282 MovieClip [hint-text] Frame 12
onEnterFrame = function () {
bg._alpha = bg._alpha - 10;
mctxt._alpha = mctxt._alpha - 10;
};
Symbol 282 MovieClip [hint-text] Frame 21
delete onEnterFrame;
removeMovieClip(this);
Symbol 285 MovieClip [flash] Frame 1
#initclip 41
Object.registerClass("flash", flash);
#endinitclip
stop();
activate1 = function () {
blick.gotoAndPlay("play");
};
var elementSize = 32;
toStar = function (flag) {
if (flag) {
star.onEnterFrame = function () {
var _local1 = Math.random() * Math.random();
if (_local1 < 0.0015) {
star._x = (Math.random() - 0.5) * elementSize;
star._y = (Math.random() - 0.5) * elementSize;
star.gotoAndPlay("play");
}
};
} else {
star.onEnterFrame = null;
}
};
toLight = function (flag) {
if (flag) {
light.gotoAndPlay("play");
} else {
light.gotoAndStop("off");
}
};
toLight(!inField);
toStar(inField);
Symbol 285 MovieClip [flash] Frame 2
NShards = 10;
i = 1;
while (i <= NShards) {
shard = eval ("shard" + i);
shard._rotation = Math.random() * 360;
i++;
}
Symbol 285 MovieClip [flash] Frame 16
removeMovieClip(this);
Symbol 294 MovieClip [lighting] Frame 17
this.removeMovieClip();
Symbol 306 MovieClip [jewel9] Frame 1
stop();
activate = function () {
mov.gotoAndPlay("play");
};
activate1 = function () {
blick.gotoAndPlay("play");
};
Symbol 306 MovieClip [jewel9] Frame 2
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 306 MovieClip [jewel9] Frame 3
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 - 10;
}
i++;
}
Symbol 306 MovieClip [jewel9] Frame 4
if (piece._alpha > 0) {
gotoAndPlay ("next");
} else {
this.removeMovieClip();
}
Symbol 342 MovieClip [shape1] Frame 1
#initclip 42
Object.registerClass("shape1", shape1);
#endinitclip
Symbol 345 MovieClip [shape3] Frame 1
#initclip 43
Object.registerClass("shape3", shape3);
#endinitclip
Symbol 348 MovieClip [shape10] Frame 1
#initclip 44
Object.registerClass("shape10", shape10);
#endinitclip
Symbol 351 MovieClip [shape5] Frame 1
#initclip 45
Object.registerClass("shape5", shape5);
#endinitclip
Symbol 354 MovieClip [shape6] Frame 1
#initclip 46
Object.registerClass("shape6", shape6);
#endinitclip
Symbol 357 MovieClip [shape7] Frame 1
#initclip 47
Object.registerClass("shape7", shape7);
#endinitclip
Symbol 360 MovieClip [shape8] Frame 1
#initclip 48
Object.registerClass("shape8", shape8);
#endinitclip
stop();
Symbol 363 MovieClip [shape2] Frame 1
#initclip 49
Object.registerClass("shape2", shape2);
#endinitclip
Symbol 366 MovieClip [shape9] Frame 1
#initclip 50
Object.registerClass("shape9", shape9);
#endinitclip
Symbol 369 MovieClip [shape4] Frame 1
#initclip 51
Object.registerClass("shape4", shape4);
#endinitclip
Symbol 373 MovieClip [blick] Frame 1
dr = 2;
dscale = 1;
Symbol 373 MovieClip [blick] Frame 2
left._rotation = left._rotation + dr;
right._rotation = right._rotation - dr;
left._xscale = left._xscale - dscale;
left._yscale = left._yscale - dscale;
right._xscale = right._xscale - dscale;
right._yscale = right._yscale - dscale;
if ((left._xscale < 10) || (left._xscale > 100)) {
dscale = -dscale;
}
Symbol 373 MovieClip [blick] Frame 3
gotoAndPlay (2);
Symbol 376 MovieClip [special_shape3] Frame 1
#initclip 52
Object.registerClass("special_shape3", special_shape3);
#endinitclip
Symbol 379 MovieClip [special_shape10] Frame 1
#initclip 53
Object.registerClass("special_shape10", special_shape10);
#endinitclip
Symbol 382 MovieClip [special_shape5] Frame 1
#initclip 54
Object.registerClass("special_shape5", special_shape5);
#endinitclip
Symbol 385 MovieClip [special_shape6] Frame 1
#initclip 55
Object.registerClass("special_shape6", special_shape6);
#endinitclip
Symbol 388 MovieClip [special_shape7] Frame 1
#initclip 56
Object.registerClass("special_shape7", special_shape7);
#endinitclip
Symbol 391 MovieClip [special_shape8] Frame 1
#initclip 57
Object.registerClass("special_shape8", special_shape8);
#endinitclip
Symbol 394 MovieClip [special_shape2] Frame 1
#initclip 58
Object.registerClass("special_shape2", special_shape2);
#endinitclip
Symbol 397 MovieClip [special_shape9] Frame 1
#initclip 59
Object.registerClass("special_shape9", special_shape9);
#endinitclip
Symbol 400 MovieClip [special_shape4] Frame 1
#initclip 60
Object.registerClass("special_shape4", special_shape4);
#endinitclip
Symbol 415 MovieClip [fillcolor] Frame 1
#initclip 61
Object.registerClass("fillcolor", fillcolor);
#endinitclip
stop();
activate1 = function () {
blick.gotoAndPlay("play");
};
var elementSize = 32;
toStar = function (flag) {
if (flag) {
star.onEnterFrame = function () {
var _local1 = Math.random() * Math.random();
if (_local1 < 0.0015) {
star._x = (Math.random() - 0.5) * elementSize;
star._y = (Math.random() - 0.5) * elementSize;
star.gotoAndPlay("play");
}
};
} else {
star.onEnterFrame = null;
}
};
toLight = function (flag) {
if (flag) {
light.gotoAndPlay("play");
} else {
light.gotoAndStop("off");
}
};
toLight(!inField);
toStar(inField);
Symbol 415 MovieClip [fillcolor] Frame 2
NPieces = 10;
vxmax = 10;
vymax = 10;
counter = 0;
ay = 0;
vx = new Array();
vy = new Array();
i = 1;
while (i <= NPieces) {
nm = eval ("piece" + i);
scale = 0.5 - (Math.random() / 2);
nm._width = scale * nm._width;
nm._height = scale * nm._height;
vx[i] = (0.5 - Math.random()) * vxmax;
vy[i] = (0.5 - Math.random()) * vymax;
i++;
}
Symbol 415 MovieClip [fillcolor] 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;
piece._rotation = piece._rotation + 10;
if (counter > 14) {
piece._alpha = piece._alpha - 10;
}
i++;
}
Symbol 415 MovieClip [fillcolor] Frame 4
if (piece._alpha > 0) {
gotoAndPlay ("next");
} else {
this.removeMovieClip();
}
Symbol 418 MovieClip [magnet] Frame 1
#initclip 62
Object.registerClass("magnet", magnet);
#endinitclip
stop();
activate1 = function () {
blick.gotoAndPlay("play");
};
var elementSize = 32;
toStar = function (flag) {
if (flag) {
star.onEnterFrame = function () {
var _local1 = Math.random() * Math.random();
if (_local1 < 0.0015) {
star._x = (Math.random() - 0.5) * elementSize;
star._y = (Math.random() - 0.5) * elementSize;
star.gotoAndPlay("play");
}
};
} else {
star.onEnterFrame = null;
}
};
toLight = function (flag) {
if (flag) {
light.gotoAndPlay("play");
} else {
light.gotoAndStop("off");
}
};
toLight(!inField);
toStar(inField);
Symbol 418 MovieClip [magnet] Frame 2
NShards = 10;
i = 1;
while (i <= NShards) {
shard = eval ("shard" + i);
shard._rotation = Math.random() * 360;
i++;
}
Symbol 418 MovieClip [magnet] Frame 16
removeMovieClip(this);
Symbol 421 MovieClip [chainflash] Frame 1
#initclip 63
Object.registerClass("chainflash", chainflash);
#endinitclip
stop();
activate1 = function () {
blick.gotoAndPlay("play");
};
var elementSize = 32;
toStar = function (flag) {
if (flag) {
star.onEnterFrame = function () {
var _local1 = Math.random() * Math.random();
if (_local1 < 0.0015) {
star._x = (Math.random() - 0.5) * elementSize;
star._y = (Math.random() - 0.5) * elementSize;
star.gotoAndPlay("play");
}
};
} else {
star.onEnterFrame = null;
}
};
toLight = function (flag) {
if (flag) {
light.gotoAndPlay("play");
} else {
light.gotoAndStop("off");
}
};
toLight(!inField);
toStar(inField);
Symbol 421 MovieClip [chainflash] Frame 2
NShards = 10;
i = 1;
while (i <= NShards) {
shard = eval ("shard" + i);
shard._rotation = Math.random() * 360;
i++;
}
Symbol 421 MovieClip [chainflash] Frame 16
removeMovieClip(this);
Symbol 439 MovieClip [bubble3] Frame 1
#initclip 64
Object.registerClass("bubble3", bubbleClass);
#endinitclip
Symbol 442 MovieClip [bubble1] Frame 1
#initclip 65
Object.registerClass("bubble1", bubbleClass);
#endinitclip
Symbol 445 MovieClip [bubble2] Frame 1
#initclip 66
Object.registerClass("bubble2", bubbleClass);
#endinitclip
Symbol 452 MovieClip [fill2] Frame 10
stop();
Symbol 452 MovieClip [fill2] Frame 20
removeMovieClip(this);
Symbol 452 MovieClip [fill2] Frame 21
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 452 MovieClip [fill2] Frame 22
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 [fill2] Frame 23
if (piece._alpha > 0) {
gotoAndPlay ("next");
} else {
this.removeMovieClip();
}
Symbol 452 MovieClip [fill2] Frame 40
gotoAndStop ("simple");
Symbol 459 MovieClip [fill1] Frame 10
stop();
Symbol 459 MovieClip [fill1] Frame 19
removeMovieClip(this);
Symbol 459 MovieClip [fill1] Frame 20
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 459 MovieClip [fill1] Frame 21
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 459 MovieClip [fill1] Frame 22
if (piece._alpha > 0) {
gotoAndPlay ("next");
} else {
this.removeMovieClip();
}
Symbol 459 MovieClip [fill1] Frame 39
gotoAndStop ("simple");
Symbol 462 MovieClip [decorightleftdown] Frame 1
stop();
Symbol 462 MovieClip [decorightleftdown] Frame 2
removeMovieClip(this);
Symbol 464 MovieClip [decoleftdownup] Frame 1
stop();
Symbol 464 MovieClip [decoleftdownup] Frame 2
removeMovieClip(this);
Symbol 466 MovieClip [decorightleftup] Frame 1
stop();
Symbol 466 MovieClip [decorightleftup] Frame 2
removeMovieClip(this);
Symbol 468 MovieClip [decorightdownup] Frame 1
stop();
Symbol 468 MovieClip [decorightdownup] Frame 2
removeMovieClip(this);
Symbol 480 MovieClip [jewel10] Frame 1
stop();
activate = function () {
mov.gotoAndPlay("play");
};
activate1 = function () {
blick.gotoAndPlay("play");
};
Symbol 480 MovieClip [jewel10] Frame 2
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 480 MovieClip [jewel10] Frame 3
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 - 10;
}
i++;
}
Symbol 480 MovieClip [jewel10] Frame 4
if (piece._alpha > 0) {
gotoAndPlay ("next");
} else {
this.removeMovieClip();
}
Symbol 492 MovieClip [jewel11] Frame 1
stop();
activate = function () {
mov.gotoAndPlay("play");
};
activate1 = function () {
blick.gotoAndPlay("play");
};
Symbol 492 MovieClip [jewel11] Frame 2
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 492 MovieClip [jewel11] Frame 3
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 - 10;
}
i++;
}
Symbol 492 MovieClip [jewel11] Frame 4
if (piece._alpha > 0) {
gotoAndPlay ("next");
} else {
this.removeMovieClip();
}
Symbol 502 MovieClip [jewel12] Frame 1
stop();
activate = function () {
mov.gotoAndPlay("play");
};
activate1 = function () {
blick.gotoAndPlay("play");
};
Symbol 502 MovieClip [jewel12] Frame 2
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 502 MovieClip [jewel12] Frame 3
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 - 10;
}
i++;
}
Symbol 502 MovieClip [jewel12] Frame 4
if (piece._alpha > 0) {
gotoAndPlay ("next");
} else {
this.removeMovieClip();
}
Symbol 514 MovieClip [home10a] Frame 1
stop();
activate1 = function () {
blick.gotoAndPlay("play");
};
Symbol 514 MovieClip [home10a] 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 514 MovieClip [home10a] 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 514 MovieClip [home10a] Frame 4
if (piece._alpha > 0) {
gotoAndPlay ("next");
} else {
this.removeMovieClip();
}
Symbol 526 MovieClip [home11] Frame 1
stop();
activate1 = function () {
blick.gotoAndPlay("play");
};
Symbol 526 MovieClip [home11] 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 526 MovieClip [home11] 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 526 MovieClip [home11] Frame 4
if (piece._alpha > 0) {
gotoAndPlay ("next");
} else {
this.removeMovieClip();
}
Symbol 529 MovieClip [home11_2] Frame 1
stop();
activate1 = function () {
blick.gotoAndPlay("play");
};
Symbol 529 MovieClip [home11_2] 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 529 MovieClip [home11_2] 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 529 MovieClip [home11_2] Frame 4
if (piece._alpha > 0) {
gotoAndPlay ("next");
} else {
this.removeMovieClip();
}
Symbol 532 MovieClip [home11_3] Frame 1
stop();
activate1 = function () {
blick.gotoAndPlay("play");
};
Symbol 532 MovieClip [home11_3] 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 532 MovieClip [home11_3] 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 532 MovieClip [home11_3] Frame 4
if (piece._alpha > 0) {
gotoAndPlay ("next");
} else {
this.removeMovieClip();
}
Symbol 544 MovieClip [home11_4r] Frame 1
stop();
activate1 = function () {
blick.gotoAndPlay("play");
};
Symbol 544 MovieClip [home11_4r] 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 544 MovieClip [home11_4r] 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 544 MovieClip [home11_4r] Frame 4
if (piece._alpha > 0) {
gotoAndPlay ("next");
} else {
this.removeMovieClip();
}
Symbol 556 MovieClip [home11_5] Frame 1
stop();
activate1 = function () {
blick.gotoAndPlay("play");
};
Symbol 556 MovieClip [home11_5] 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 556 MovieClip [home11_5] 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 556 MovieClip [home11_5] Frame 4
if (piece._alpha > 0) {
gotoAndPlay ("next");
} else {
this.removeMovieClip();
}
Symbol 559 MovieClip [home11_5conerr] Frame 1
stop();
activate1 = function () {
blick.gotoAndPlay("play");
};
Symbol 559 MovieClip [home11_5conerr] 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 559 MovieClip [home11_5conerr] 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 559 MovieClip [home11_5conerr] Frame 4
if (piece._alpha > 0) {
gotoAndPlay ("next");
} else {
this.removeMovieClip();
}
Symbol 562 MovieClip [home11_6] Frame 1
stop();
activate1 = function () {
blick.gotoAndPlay("play");
};
Symbol 562 MovieClip [home11_6] 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 562 MovieClip [home11_6] 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 562 MovieClip [home11_6] Frame 4
if (piece._alpha > 0) {
gotoAndPlay ("next");
} else {
this.removeMovieClip();
}
Symbol 568 MovieClip [kolona2_1] Frame 1
stop();
activate1 = function () {
blick.gotoAndPlay("play");
};
Symbol 568 MovieClip [kolona2_1] 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 568 MovieClip [kolona2_1] 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 568 MovieClip [kolona2_1] Frame 4
if (piece._alpha > 0) {
gotoAndPlay ("next");
} else {
this.removeMovieClip();
}
Symbol 571 MovieClip [kolona3_1] Frame 1
stop();
activate1 = function () {
blick.gotoAndPlay("play");
};
Symbol 571 MovieClip [kolona3_1] 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 571 MovieClip [kolona3_1] 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 571 MovieClip [kolona3_1] Frame 4
if (piece._alpha > 0) {
gotoAndPlay ("next");
} else {
this.removeMovieClip();
}
Symbol 583 MovieClip [perforacuya1] Frame 1
stop();
activate1 = function () {
blick.gotoAndPlay("play");
};
Symbol 583 MovieClip [perforacuya1] 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 583 MovieClip [perforacuya1] 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 583 MovieClip [perforacuya1] Frame 4
if (piece._alpha > 0) {
gotoAndPlay ("next");
} else {
this.removeMovieClip();
}
Symbol 586 MovieClip [perforacuya2l] Frame 1
stop();
activate1 = function () {
blick.gotoAndPlay("play");
};
Symbol 586 MovieClip [perforacuya2l] 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 586 MovieClip [perforacuya2l] 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 586 MovieClip [perforacuya2l] Frame 4
if (piece._alpha > 0) {
gotoAndPlay ("next");
} else {
this.removeMovieClip();
}
Symbol 596 MovieClip [runes03a] Frame 1
stop();
activate1 = function () {
blick.gotoAndPlay("play");
};
Symbol 596 MovieClip [runes03a] 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 596 MovieClip [runes03a] 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 596 MovieClip [runes03a] Frame 4
if (piece._alpha > 0) {
gotoAndPlay ("next");
} else {
this.removeMovieClip();
}
Symbol 599 MovieClip [runes04a] Frame 1
stop();
activate1 = function () {
blick.gotoAndPlay("play");
};
Symbol 599 MovieClip [runes04a] 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 599 MovieClip [runes04a] 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 599 MovieClip [runes04a] Frame 4
if (piece._alpha > 0) {
gotoAndPlay ("next");
} else {
this.removeMovieClip();
}
Symbol 602 MovieClip [runes05b] Frame 1
stop();
activate1 = function () {
blick.gotoAndPlay("play");
};
Symbol 602 MovieClip [runes05b] 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 602 MovieClip [runes05b] 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 602 MovieClip [runes05b] Frame 4
if (piece._alpha > 0) {
gotoAndPlay ("next");
} else {
this.removeMovieClip();
}
Symbol 605 MovieClip [runes07] Frame 1
stop();
activate1 = function () {
blick.gotoAndPlay("play");
};
Symbol 605 MovieClip [runes07] 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 605 MovieClip [runes07] 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 605 MovieClip [runes07] Frame 4
if (piece._alpha > 0) {
gotoAndPlay ("next");
} else {
this.removeMovieClip();
}
Symbol 608 MovieClip [runes08] Frame 1
stop();
activate1 = function () {
blick.gotoAndPlay("play");
};
Symbol 608 MovieClip [runes08] 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 608 MovieClip [runes08] 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 608 MovieClip [runes08] Frame 4
if (piece._alpha > 0) {
gotoAndPlay ("next");
} else {
this.removeMovieClip();
}
Symbol 610 MovieClip [perforacuya2ld] Frame 1
stop();
activate1 = function () {
blick.gotoAndPlay("play");
};
Symbol 610 MovieClip [perforacuya2ld] 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 610 MovieClip [perforacuya2ld] 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 610 MovieClip [perforacuya2ld] Frame 4
if (piece._alpha > 0) {
gotoAndPlay ("next");
} else {
this.removeMovieClip();
}
Symbol 612 MovieClip [perforacuya2r] Frame 1
stop();
activate1 = function () {
blick.gotoAndPlay("play");
};
Symbol 612 MovieClip [perforacuya2r] 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 612 MovieClip [perforacuya2r] 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 612 MovieClip [perforacuya2r] Frame 4
if (piece._alpha > 0) {
gotoAndPlay ("next");
} else {
this.removeMovieClip();
}
Symbol 614 MovieClip [perforacuya2rd] Frame 1
stop();
activate1 = function () {
blick.gotoAndPlay("play");
};
Symbol 614 MovieClip [perforacuya2rd] 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 614 MovieClip [perforacuya2rd] 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 614 MovieClip [perforacuya2rd] Frame 4
if (piece._alpha > 0) {
gotoAndPlay ("next");
} else {
this.removeMovieClip();
}
Symbol 616 MovieClip [home11_5conerl] Frame 1
stop();
activate1 = function () {
blick.gotoAndPlay("play");
};
Symbol 616 MovieClip [home11_5conerl] 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 616 MovieClip [home11_5conerl] 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 616 MovieClip [home11_5conerl] Frame 4
if (piece._alpha > 0) {
gotoAndPlay ("next");
} else {
this.removeMovieClip();
}
Symbol 618 MovieClip [home11_4l] Frame 1
stop();
activate1 = function () {
blick.gotoAndPlay("play");
};
Symbol 618 MovieClip [home11_4l] 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 618 MovieClip [home11_4l] 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 618 MovieClip [home11_4l] Frame 4
if (piece._alpha > 0) {
gotoAndPlay ("next");
} else {
this.removeMovieClip();
}
Symbol 620 MovieClip [home11_4ld] Frame 1
stop();
activate1 = function () {
blick.gotoAndPlay("play");
};
Symbol 620 MovieClip [home11_4ld] 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 620 MovieClip [home11_4ld] 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 620 MovieClip [home11_4ld] Frame 4
if (piece._alpha > 0) {
gotoAndPlay ("next");
} else {
this.removeMovieClip();
}
Symbol 622 MovieClip [home11_4rd] Frame 1
stop();
activate1 = function () {
blick.gotoAndPlay("play");
};
Symbol 622 MovieClip [home11_4rd] 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 622 MovieClip [home11_4rd] 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 622 MovieClip [home11_4rd] Frame 4
if (piece._alpha > 0) {
gotoAndPlay ("next");
} else {
this.removeMovieClip();
}
Symbol 625 MovieClip [kolona1_1] Frame 1
stop();
activate1 = function () {
blick.gotoAndPlay("play");
};
Symbol 625 MovieClip [kolona1_1] 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 625 MovieClip [kolona1_1] 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 625 MovieClip [kolona1_1] Frame 4
if (piece._alpha > 0) {
gotoAndPlay ("next");
} else {
this.removeMovieClip();
}
Symbol 633 MovieClip [teleskop1] Frame 1
stop();
activate1 = function () {
blick.gotoAndPlay("play");
};
Symbol 633 MovieClip [teleskop1] 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 633 MovieClip [teleskop1] 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 633 MovieClip [teleskop1] Frame 4
if (piece._alpha > 0) {
gotoAndPlay ("next");
} else {
this.removeMovieClip();
}
Symbol 636 MovieClip [teleskop2] Frame 1
stop();
activate1 = function () {
blick.gotoAndPlay("play");
};
Symbol 636 MovieClip [teleskop2] 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 636 MovieClip [teleskop2] 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 636 MovieClip [teleskop2] Frame 4
if (piece._alpha > 0) {
gotoAndPlay ("next");
} else {
this.removeMovieClip();
}
Symbol 639 MovieClip [teleskop3] Frame 1
stop();
activate1 = function () {
blick.gotoAndPlay("play");
};
Symbol 639 MovieClip [teleskop3] 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 639 MovieClip [teleskop3] 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 639 MovieClip [teleskop3] Frame 4
if (piece._alpha > 0) {
gotoAndPlay ("next");
} else {
this.removeMovieClip();
}
Symbol 642 MovieClip [teleskop4] Frame 1
stop();
activate1 = function () {
blick.gotoAndPlay("play");
};
Symbol 642 MovieClip [teleskop4] 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 642 MovieClip [teleskop4] 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 642 MovieClip [teleskop4] Frame 4
if (piece._alpha > 0) {
gotoAndPlay ("next");
} else {
this.removeMovieClip();
}
Symbol 643 MovieClip [teleskop5] Frame 1
stop();
activate1 = function () {
blick.gotoAndPlay("play");
};
Symbol 643 MovieClip [teleskop5] 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 643 MovieClip [teleskop5] 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 643 MovieClip [teleskop5] Frame 4
if (piece._alpha > 0) {
gotoAndPlay ("next");
} else {
this.removeMovieClip();
}
Symbol 646 MovieClip [teleskop6] Frame 1
stop();
activate1 = function () {
blick.gotoAndPlay("play");
};
Symbol 646 MovieClip [teleskop6] 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 646 MovieClip [teleskop6] 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 646 MovieClip [teleskop6] Frame 4
if (piece._alpha > 0) {
gotoAndPlay ("next");
} else {
this.removeMovieClip();
}
Symbol 649 MovieClip [teleskop7] Frame 1
stop();
activate1 = function () {
blick.gotoAndPlay("play");
};
Symbol 649 MovieClip [teleskop7] 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 649 MovieClip [teleskop7] 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 649 MovieClip [teleskop7] Frame 4
if (piece._alpha > 0) {
gotoAndPlay ("next");
} else {
this.removeMovieClip();
}
Symbol 652 MovieClip [teleskop8] Frame 1
stop();
activate1 = function () {
blick.gotoAndPlay("play");
};
Symbol 652 MovieClip [teleskop8] 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 652 MovieClip [teleskop8] 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 652 MovieClip [teleskop8] Frame 4
if (piece._alpha > 0) {
gotoAndPlay ("next");
} else {
this.removeMovieClip();
}
Symbol 655 MovieClip [teleskop9] Frame 1
stop();
activate1 = function () {
blick.gotoAndPlay("play");
};
Symbol 655 MovieClip [teleskop9] 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 655 MovieClip [teleskop9] 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 655 MovieClip [teleskop9] Frame 4
if (piece._alpha > 0) {
gotoAndPlay ("next");
} else {
this.removeMovieClip();
}
Symbol 658 MovieClip [teleskop10] Frame 1
stop();
activate1 = function () {
blick.gotoAndPlay("play");
};
Symbol 658 MovieClip [teleskop10] 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 658 MovieClip [teleskop10] 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 658 MovieClip [teleskop10] Frame 4
if (piece._alpha > 0) {
gotoAndPlay ("next");
} else {
this.removeMovieClip();
}
Symbol 661 MovieClip [teleskop11] Frame 1
stop();
activate1 = function () {
blick.gotoAndPlay("play");
};
Symbol 661 MovieClip [teleskop11] 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 661 MovieClip [teleskop11] 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 661 MovieClip [teleskop11] Frame 4
if (piece._alpha > 0) {
gotoAndPlay ("next");
} else {
this.removeMovieClip();
}
Symbol 664 MovieClip [teleskop12] Frame 1
stop();
activate1 = function () {
blick.gotoAndPlay("play");
};
Symbol 664 MovieClip [teleskop12] 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 664 MovieClip [teleskop12] 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 664 MovieClip [teleskop12] Frame 4
if (piece._alpha > 0) {
gotoAndPlay ("next");
} else {
this.removeMovieClip();
}
Symbol 667 MovieClip [teleskop13] Frame 1
stop();
activate1 = function () {
blick.gotoAndPlay("play");
};
Symbol 667 MovieClip [teleskop13] 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 667 MovieClip [teleskop13] 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 667 MovieClip [teleskop13] Frame 4
if (piece._alpha > 0) {
gotoAndPlay ("next");
} else {
this.removeMovieClip();
}
Symbol 670 MovieClip [teleskop14] Frame 1
stop();
activate1 = function () {
blick.gotoAndPlay("play");
};
Symbol 670 MovieClip [teleskop14] 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 670 MovieClip [teleskop14] 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 670 MovieClip [teleskop14] Frame 4
if (piece._alpha > 0) {
gotoAndPlay ("next");
} else {
this.removeMovieClip();
}
Symbol 673 MovieClip [teleskop15] Frame 1
stop();
activate1 = function () {
blick.gotoAndPlay("play");
};
Symbol 673 MovieClip [teleskop15] 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 673 MovieClip [teleskop15] 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 673 MovieClip [teleskop15] Frame 4
if (piece._alpha > 0) {
gotoAndPlay ("next");
} else {
this.removeMovieClip();
}
Symbol 676 MovieClip [teleskop16r] Frame 1
stop();
activate1 = function () {
blick.gotoAndPlay("play");
};
Symbol 676 MovieClip [teleskop16r] 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 676 MovieClip [teleskop16r] 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 676 MovieClip [teleskop16r] Frame 4
if (piece._alpha > 0) {
gotoAndPlay ("next");
} else {
this.removeMovieClip();
}
Symbol 679 MovieClip [teleskop17] Frame 1
stop();
activate1 = function () {
blick.gotoAndPlay("play");
};
Symbol 679 MovieClip [teleskop17] 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 679 MovieClip [teleskop17] 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 679 MovieClip [teleskop17] Frame 4
if (piece._alpha > 0) {
gotoAndPlay ("next");
} else {
this.removeMovieClip();
}
Symbol 682 MovieClip [teleskop18l] Frame 1
stop();
activate1 = function () {
blick.gotoAndPlay("play");
};
Symbol 682 MovieClip [teleskop18l] 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 682 MovieClip [teleskop18l] 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 682 MovieClip [teleskop18l] Frame 4
if (piece._alpha > 0) {
gotoAndPlay ("next");
} else {
this.removeMovieClip();
}
Symbol 685 MovieClip [teleskop19d] Frame 1
stop();
activate1 = function () {
blick.gotoAndPlay("play");
};
Symbol 685 MovieClip [teleskop19d] 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 685 MovieClip [teleskop19d] 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 685 MovieClip [teleskop19d] Frame 4
if (piece._alpha > 0) {
gotoAndPlay ("next");
} else {
this.removeMovieClip();
}
Symbol 688 MovieClip [teleskop20] Frame 1
stop();
activate1 = function () {
blick.gotoAndPlay("play");
};
Symbol 688 MovieClip [teleskop20] 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 688 MovieClip [teleskop20] 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 688 MovieClip [teleskop20] Frame 4
if (piece._alpha > 0) {
gotoAndPlay ("next");
} else {
this.removeMovieClip();
}
Symbol 690 MovieClip [teleskop19u] Frame 1
stop();
activate1 = function () {
blick.gotoAndPlay("play");
};
Symbol 690 MovieClip [teleskop19u] 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 690 MovieClip [teleskop19u] 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 690 MovieClip [teleskop19u] Frame 4
if (piece._alpha > 0) {
gotoAndPlay ("next");
} else {
this.removeMovieClip();
}
Symbol 692 MovieClip [teleskop18r] Frame 1
stop();
activate1 = function () {
blick.gotoAndPlay("play");
};
Symbol 692 MovieClip [teleskop18r] 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 692 MovieClip [teleskop18r] 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 692 MovieClip [teleskop18r] Frame 4
if (piece._alpha > 0) {
gotoAndPlay ("next");
} else {
this.removeMovieClip();
}
Symbol 694 MovieClip [teleskop16l] Frame 1
stop();
activate1 = function () {
blick.gotoAndPlay("play");
};
Symbol 694 MovieClip [teleskop16l] 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 694 MovieClip [teleskop16l] 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 694 MovieClip [teleskop16l] Frame 4
if (piece._alpha > 0) {
gotoAndPlay ("next");
} else {
this.removeMovieClip();
}
Symbol 697 MovieClip [runes01_2] Frame 1
stop();
activate1 = function () {
blick.gotoAndPlay("play");
};
Symbol 697 MovieClip [runes01_2] 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 697 MovieClip [runes01_2] 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 697 MovieClip [runes01_2] Frame 4
if (piece._alpha > 0) {
gotoAndPlay ("next");
} else {
this.removeMovieClip();
}
Symbol 700 MovieClip [runes01_3] Frame 1
stop();
activate1 = function () {
blick.gotoAndPlay("play");
};
Symbol 700 MovieClip [runes01_3] 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 700 MovieClip [runes01_3] 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 700 MovieClip [runes01_3] Frame 4
if (piece._alpha > 0) {
gotoAndPlay ("next");
} else {
this.removeMovieClip();
}
Symbol 703 MovieClip [perforacuya4] Frame 1
stop();
activate1 = function () {
blick.gotoAndPlay("play");
};
Symbol 703 MovieClip [perforacuya4] 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 703 MovieClip [perforacuya4] 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 703 MovieClip [perforacuya4] Frame 4
if (piece._alpha > 0) {
gotoAndPlay ("next");
} else {
this.removeMovieClip();
}
Symbol 710 MovieClip [AIpointer] Frame 1
stop();
Symbol 710 MovieClip [AIpointer] Frame 2
stop();
Symbol 710 MovieClip [AIpointer] Frame 3
stop();
Symbol 715 MovieClip [hintMC] Frame 1
#initclip 67
Object.registerClass("hintMC", hintClass);
#endinitclip
Symbol 718 MovieClip [coin] Frame 1
#initclip 68
Object.registerClass("coin", coin);
#endinitclip
stop();
activate1 = function () {
blick.gotoAndPlay("play");
};
var elementSize = 32;
toStar = function (flag) {
if (flag) {
star.onEnterFrame = function () {
var _local1 = Math.random() * Math.random();
if (_local1 < 0.0015) {
star._x = (Math.random() - 0.5) * elementSize;
star._y = (Math.random() - 0.5) * elementSize;
star.gotoAndPlay("play");
}
};
} else {
star.onEnterFrame = null;
}
};
toLight = function (flag) {
if (flag) {
light.gotoAndPlay("play");
} else {
light.gotoAndStop("off");
}
};
toLight(!inField);
toStar(inField);
Symbol 718 MovieClip [coin] Frame 2
this.removeMovieClip();
NPieces = 9;
vxmax = 12;
vymax = 7;
counter = 0;
aymax = -0.1;
ay = new Array();
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] = 0;
ay[i] = (1 - (Math.random() / 2)) * aymax;
i++;
}
Symbol 718 MovieClip [coin] 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[i] * counter) * counter);
vy[i] = vy[i] + ay[i];
piece._rotation = piece._rotation + 10;
if (counter > 10) {
piece._alpha = piece._alpha - 10;
}
i++;
}
Symbol 718 MovieClip [coin] Frame 4
this.removeMovieClip();
Symbol 719 MovieClip [explosion] Frame 1
stop();
Symbol 719 MovieClip [explosion] Frame 2
NShards = 10;
i = 1;
while (i <= NShards) {
shard = eval ("shard" + i);
shard._rotation = Math.random() * 360;
i++;
}
Symbol 719 MovieClip [explosion] Frame 16
removeMovieClip(this);
Symbol 720 MovieClip [stars_up] Frame 1
NPieces = 9;
vxmax = 12;
vymax = 7;
counter = 0;
aymax = -0.1;
ay = new Array();
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] = 0;
ay[i] = (1 - (Math.random() / 2)) * aymax;
i++;
}
Symbol 720 MovieClip [stars_up] Frame 2
counter++;
i = 1;
while (i <= NPieces) {
piece = eval ("piece" + i);
piece._x = piece._x + vx[i];
piece._y = (piece._y + vy[i]) + ((ay[i] * counter) * counter);
vy[i] = vy[i] + ay[i];
piece._rotation = piece._rotation + 10;
if (counter > 10) {
piece._alpha = piece._alpha - 10;
}
i++;
}
Symbol 720 MovieClip [stars_up] Frame 3
if (piece._alpha > 0) {
gotoAndPlay ("next");
} else {
this.removeMovieClip();
}
Symbol 725 MovieClip Frame 1
this._rotation = this._rotation + 1;
Symbol 726 MovieClip Frame 1
stop();
Symbol 726 MovieClip Frame 2
stop();
Symbol 735 MovieClip Frame 1
clouds._x = (-clouds._width) / 2;
clouds.x0 = clouds._x;
v = 0.2;
Symbol 735 MovieClip Frame 2
clouds._x = clouds._x + v;
if (clouds._x >= 0) {
clouds._x = clouds._x - (clouds._width / 2);
}
Symbol 735 MovieClip Frame 3
clouds._x = clouds._x + v;
if (clouds._x >= 0) {
clouds._x = clouds._x - (clouds._width / 2);
}
gotoAndPlay (2);
Symbol 760 MovieClip Frame 1
stop();
Symbol 760 MovieClip Frame 2
stop();
yellow._alpha = 0;
question._alpha = 0;
dalpha = 10;
onEnterFrame = function () {
dark._alpha = dark._alpha - dalpha;
yellow._alpha = yellow._alpha + dalpha;
question._alpha = question._alpha + dalpha;
if (dark._alpha <= 0) {
delete onEnterFrame;
_root.playSound("newlevelunlocked");
}
};
Symbol 760 MovieClip Frame 3
stop();
Symbol 765 MovieClip Frame 1
stop();
Symbol 765 MovieClip Frame 2
stop();
yellow._alpha = 0;
question._alpha = 0;
dalpha = 10;
onEnterFrame = function () {
dark._alpha = dark._alpha - dalpha;
yellow._alpha = yellow._alpha + dalpha;
question._alpha = question._alpha + dalpha;
if (dark._alpha <= 0) {
delete onEnterFrame;
}
};
Symbol 765 MovieClip Frame 3
stop();
Symbol 770 MovieClip Frame 1
stop();
Symbol 770 MovieClip Frame 2
stop();
yellow._alpha = 0;
question._alpha = 0;
dalpha = 10;
onEnterFrame = function () {
dark._alpha = dark._alpha - dalpha;
yellow._alpha = yellow._alpha + dalpha;
question._alpha = question._alpha + dalpha;
if (dark._alpha <= 0) {
delete onEnterFrame;
_root.playSound("newlevelunlocked");
}
};
Symbol 770 MovieClip Frame 3
stop();
Symbol 775 MovieClip Frame 1
stop();
Symbol 775 MovieClip Frame 2
stop();
yellow._alpha = 0;
question._alpha = 0;
dalpha = 10;
onEnterFrame = function () {
dark._alpha = dark._alpha - dalpha;
yellow._alpha = yellow._alpha + dalpha;
question._alpha = question._alpha + dalpha;
if (dark._alpha <= 0) {
delete onEnterFrame;
_root.playSound("newlevelunlocked");
}
};
Symbol 775 MovieClip Frame 3
stop();
Symbol 780 MovieClip Frame 1
stop();
Symbol 780 MovieClip Frame 2
stop();
yellow._alpha = 0;
question._alpha = 0;
dalpha = 10;
onEnterFrame = function () {
dark._alpha = dark._alpha - dalpha;
yellow._alpha = yellow._alpha + dalpha;
question._alpha = question._alpha + dalpha;
if (dark._alpha <= 0) {
delete onEnterFrame;
_root.playSound("newlevelunlocked");
}
};
Symbol 780 MovieClip Frame 3
stop();
Symbol 785 MovieClip Frame 1
stop();
Symbol 785 MovieClip Frame 2
stop();
yellow._alpha = 0;
question._alpha = 0;
dalpha = 10;
onEnterFrame = function () {
dark._alpha = dark._alpha - dalpha;
yellow._alpha = yellow._alpha + dalpha;
question._alpha = question._alpha + dalpha;
if (dark._alpha <= 0) {
delete onEnterFrame;
_root.playSound("newlevelunlocked");
}
};
Symbol 785 MovieClip Frame 3
stop();
Symbol 790 MovieClip Frame 1
stop();
Symbol 790 MovieClip Frame 2
stop();
yellow._alpha = 0;
question._alpha = 0;
dalpha = 10;
onEnterFrame = function () {
dark._alpha = dark._alpha - dalpha;
yellow._alpha = yellow._alpha + dalpha;
question._alpha = question._alpha + dalpha;
if (dark._alpha <= 0) {
delete onEnterFrame;
_root.playSound("newlevelunlocked");
}
};
Symbol 790 MovieClip Frame 3
stop();
Symbol 795 MovieClip Frame 1
stop();
Symbol 795 MovieClip Frame 2
stop();
yellow._alpha = 0;
question._alpha = 0;
dalpha = 10;
onEnterFrame = function () {
dark._alpha = dark._alpha - dalpha;
yellow._alpha = yellow._alpha + dalpha;
question._alpha = question._alpha + dalpha;
if (dark._alpha <= 0) {
delete onEnterFrame;
_root.playSound("newlevelunlocked");
}
};
Symbol 795 MovieClip Frame 3
stop();
Symbol 800 MovieClip Frame 1
stop();
Symbol 800 MovieClip Frame 2
stop();
yellow._alpha = 0;
question._alpha = 0;
dalpha = 10;
onEnterFrame = function () {
dark._alpha = dark._alpha - dalpha;
yellow._alpha = yellow._alpha + dalpha;
question._alpha = question._alpha + dalpha;
if (dark._alpha <= 0) {
delete onEnterFrame;
_root.playSound("newlevelunlocked");
}
};
Symbol 800 MovieClip Frame 3
stop();
Symbol 805 MovieClip Frame 1
stop();
Symbol 805 MovieClip Frame 2
stop();
yellow._alpha = 0;
question._alpha = 0;
dalpha = 10;
onEnterFrame = function () {
dark._alpha = dark._alpha - dalpha;
yellow._alpha = yellow._alpha + dalpha;
question._alpha = question._alpha + dalpha;
if (dark._alpha <= 0) {
delete onEnterFrame;
_root.playSound("newlevelunlocked");
}
};
Symbol 805 MovieClip Frame 3
stop();
Symbol 810 MovieClip Frame 1
stop();
Symbol 810 MovieClip Frame 2
stop();
yellow._alpha = 0;
question._alpha = 0;
dalpha = 10;
onEnterFrame = function () {
dark._alpha = dark._alpha - dalpha;
yellow._alpha = yellow._alpha + dalpha;
question._alpha = question._alpha + dalpha;
if (dark._alpha <= 0) {
delete onEnterFrame;
_root.playSound("newlevelunlocked");
}
};
Symbol 810 MovieClip Frame 3
stop();
Symbol 815 MovieClip Frame 1
stop();
Symbol 815 MovieClip Frame 2
stop();
yellow._alpha = 0;
question._alpha = 0;
dalpha = 10;
onEnterFrame = function () {
dark._alpha = dark._alpha - dalpha;
yellow._alpha = yellow._alpha + dalpha;
question._alpha = question._alpha + dalpha;
if (dark._alpha <= 0) {
delete onEnterFrame;
_root.playSound("newlevelunlocked");
}
};
Symbol 815 MovieClip Frame 3
stop();
Symbol 820 MovieClip Frame 1
stop();
Symbol 820 MovieClip Frame 2
stop();
yellow._alpha = 0;
question._alpha = 0;
dalpha = 10;
onEnterFrame = function () {
dark._alpha = dark._alpha - dalpha;
yellow._alpha = yellow._alpha + dalpha;
question._alpha = question._alpha + dalpha;
if (dark._alpha <= 0) {
delete onEnterFrame;
_root.playSound("newlevelunlocked");
}
};
Symbol 820 MovieClip Frame 3
stop();
Symbol 825 MovieClip Frame 1
stop();
Symbol 825 MovieClip Frame 2
stop();
yellow._alpha = 0;
question._alpha = 0;
dalpha = 10;
onEnterFrame = function () {
dark._alpha = dark._alpha - dalpha;
yellow._alpha = yellow._alpha + dalpha;
question._alpha = question._alpha + dalpha;
if (dark._alpha <= 0) {
delete onEnterFrame;
_root.playSound("newlevelunlocked");
}
};
Symbol 825 MovieClip Frame 3
stop();
Symbol 830 MovieClip Frame 1
stop();
Symbol 830 MovieClip Frame 2
stop();
yellow._alpha = 0;
question._alpha = 0;
dalpha = 10;
onEnterFrame = function () {
dark._alpha = dark._alpha - dalpha;
yellow._alpha = yellow._alpha + dalpha;
question._alpha = question._alpha + dalpha;
if (dark._alpha <= 0) {
delete onEnterFrame;
_root.playSound("newlevelunlocked");
}
};
Symbol 830 MovieClip Frame 3
stop();
Symbol 838 MovieClip Frame 1
play();
Symbol 838 MovieClip Frame 8
gotoAndPlay ("simple");
Symbol 838 MovieClip Frame 9
stop();
Symbol 838 MovieClip Frame 10
stop();
Symbol 838 MovieClip Frame 11
stop();
Symbol 839 Button
on (rollOver) {
up_b.gotoAndStop("active");
_root.cursor.gotoAndPlay("hand");
_root.playSound("select");
}
on (rollOut) {
_root.cursor.gotoAndPlay("arrow");
if (Layers.upScrollEnabled) {
up_b.gotoAndStop("simple");
} else {
up_b.gotoAndStop("close");
}
}
on (release) {
_root.playSound("click");
Layers.wheelHandler(1, "button");
if (!Layers.upScrollEnabled) {
_root.cursor.gotoAndStop("arrow");
}
}
on (releaseOutside) {
_root.cursor.gotoAndStop("arrow");
}
Symbol 840 Button
on (rollOver) {
down_b.gotoAndStop("active");
_root.cursor.gotoAndStop("hand");
_root.playSound("select");
}
on (rollOut) {
_root.cursor.gotoAndStop("arrow");
if (Layers.downScrollEnabled) {
down_b.gotoAndStop("simple");
} else {
down_b.gotoAndStop("off");
}
}
on (release) {
_root.playSound("click");
Layers.wheelHandler(-1, "button");
if (!Layers.downScrollEnabled) {
_root.cursor.gotoAndStop("arrow");
}
}
on (releaseOutside) {
_root.cursor.gotoAndStop("arrow");
}
Symbol 841 MovieClip Frame 1
var Layers = new setLayersClass(tower, layer2, layer3, layer4, layer5, layer6, clouds);
Layers.setBounds(0, tower._height / 2);
numberOfLevel = _root.numberOfLevel - _root.levelsDemo;
var i = 1;
while (i < numberOfLevel) {
tower["room" + i].gotoAndStop("simple");
tower["room" + i].enabled = false;
i++;
}
currentRoom = tower["room" + numberOfLevel];
currentRoom.gotoAndStop("light");
currentRoom.onRelease = function () {
_root.gotoAndPlay("game");
};
currentRoom.onRollOver = function () {
_root.cursor.gotoAndPlay("hand");
_root.playSound("select");
};
currentRoom.onRollOut = function () {
_root.cursor.gotoAndPlay("arrow");
};
currentRoom.onReleaseOutside = function () {
_root.cursor.gotoAndPlay("arrow");
};
down_b.gotoAndStop("off");
db.enabled = false;
var icounter = 0;
scrollPause = 10;
Layers.setCurrrentHeight(0);
var y = (this.tower._height - this.tower["room" + numberOfLevel]._y);
Layers.setCurrrentHeight(y - 240);
onEnterFrame = function () {
if (Layers.downScrollEnabled) {
if (!db.enabled) {
down_b.gotoAndStop("simple");
db.enabled = true;
}
} else {
down_b.gotoAndStop("off");
db.enabled = false;
}
if (Layers.upScrollEnabled) {
if (!ub.enabled) {
up_b.gotoAndStop("simple");
ub.enabled = true;
}
} else {
up_b.gotoAndStop("close");
ub.enabled = false;
}
if (_root._ymouse > 350) {
icounter++;
if (icounter == scrollPause) {
Layers.wheelHandler(-1, "button");
icounter = 0;
}
}
if (_root._ymouse < 10) {
icounter++;
if (icounter == scrollPause) {
Layers.wheelHandler(1, "button");
icounter = 0;
}
}
if (((!_root._ymouse) > 350) && ((!_root._ymouse) < 10)) {
icounter = 0;
}
};
Symbol 844 MovieClip Frame 1
stop();
txt = _root.p_button;
txt1 = _root.p_button;
Symbol 844 MovieClip Frame 2
stop();
Symbol 848 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) {
cursor.gotoAndPlay("arrow");
_root.playSound("click");
_root.gotoAndPlay("game");
}
on (releaseOutside) {
_root.cursor.gotoAndPlay("arrow");
}
Symbol 857 MovieClip Frame 1
Symbol 857 MovieClip Frame 10
stop();
Symbol 857 MovieClip Frame 20
stop();
Symbol 862 MovieClip Frame 1
txt = _root.demo_txt;
txt1 = _root.demo_txt;
Symbol 874 MovieClip Frame 1
stop();
Symbol 874 MovieClip Frame 2
stop();
Symbol 874 MovieClip Frame 3
stop();
Symbol 876 MovieClip Frame 1
widthMask = mask._width;
xMask = mask._x - widthMask;
mask._x = xMask;
txt = "0%";
currentValue = 0;
update = function (t, totalT) {
mask._x = xMask + ((widthMask * t) / totalT);
txt = Math.floor((t / totalT) * 100) + "%";
if (currentValue != t) {
currentValue = t;
stars();
}
};
stars = function () {
star1.play();
i = 0;
onEnterFrame = function () {
i++;
if (i == 10) {
star2.play();
delete onEnterFrame;
}
};
};
Symbol 883 MovieClip Frame 1
txt = _root.gameover;
Symbol 887 MovieClip Frame 1
txt1 = _root.paused1;
txt2 = _root.paused2;
Symbol 890 MovieClip Frame 1
txt = _root.completed;
Symbol 898 MovieClip Frame 1
bg._alpha = 0;
mctxt._alpha = 0;
this.stay = false;
i = 0;
setPause = function () {
i++;
if (i == 60) {
onEnterFrame = begin;
play();
}
};
begin = function () {
bg._alpha = bg._alpha + 5;
mctxt._alpha = mctxt._alpha + 5;
};
onEnterFrame = setPause;
stop();
Symbol 898 MovieClip Frame 21
delete onEnterFrame;
stop();
i = 0;
onEnterFrame = function () {
i++;
if ((i == 100) && (!this.stay)) {
delete onEnterFrame;
play();
this.stay = true;
}
};
Symbol 898 MovieClip Frame 22
onEnterFrame = function () {
bg._alpha = bg._alpha - 10;
mctxt._alpha = mctxt._alpha - 10;
};
this.stay = true;
Symbol 898 MovieClip Frame 35
delete onEnterFrame;
stop();
Symbol 907 MovieClip Frame 1
stop();
txt = _root.figure_button;
txt1 = _root.figure_button;
Symbol 907 MovieClip Frame 2
stop();
Symbol 907 MovieClip Frame 3
stop();
Symbol 908 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.game.shapePanel.giveNewShape();
}
on (releaseOutside) {
_root.cursor.gotoAndPlay("arrow");
}
Symbol 913 MovieClip Frame 1
stop();
txt = _root.p_button;
txt1 = _root.p_button;
Symbol 913 MovieClip Frame 2
stop();
Symbol 914 Button
on (rollOver) {
close_b.gotoAndStop("active");
_root.cursor.gotoAndPlay("hand");
_root.playSound("select");
}
on (rollOut) {
close_b.gotoAndStop("simple");
_root.cursor.gotoAndPlay("arrow");
}
on (release) {
_root.playSound("click");
_root.numberOfLevel++;
_root.demoCursor.removeMovieClip();
_root.close_but.enabled = false;
game.shapePanel.removeShapes();
game.finished = true;
game.finishedDemo = true;
game.gameField.removeField();
}
on (releaseOutside) {
_root.cursor.gotoAndPlay("arrow");
}
Symbol 918 MovieClip Frame 1
xMask = mask._x;
widthMask = mask._width;
updateClock = function (t, totalT) {
mask._x = xMask - ((widthMask * t) / totalT);
};
Symbol 922 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 922 MovieClip Frame 21
delete onEnterFrame;
stop();
i = 0;
onEnterFrame = function () {
i++;
if ((i == 80) && (!this.stay)) {
play();
this.stay = true;
}
};
Symbol 922 MovieClip Frame 22
onEnterFrame = function () {
bg._alpha = bg._alpha - 10;
mctxt._alpha = mctxt._alpha - 10;
};
this.stay = true;
Symbol 922 MovieClip Frame 35
delete onEnterFrame;
stop();
Symbol 937 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 943 MovieClip Frame 1
stop();
txt = _root.gfv_button;
txt1 = _root.gfv_button;
Symbol 943 MovieClip Frame 2
stop();
Symbol 946 MovieClip Frame 1
stop();
txt = _root.fdl_button;
txt1 = _root.fdl_button;
Symbol 946 MovieClip Frame 2
stop();
Symbol 949 MovieClip Frame 1
stop();
txt = _root.pa_button;
txt1 = _root.pa_button;
Symbol 949 MovieClip Frame 2
stop();
Symbol 950 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.levelsDemo = 0;
_root.numberOfLevel = 1;
_root.gotoAndPlay("map");
_root.hintsEnabled = false;
}
on (releaseOutside) {
_root.cursor.gotoAndPlay("arrow");
}
Symbol 951 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, "_blank");
}
on (releaseOutside) {
_root.cursor.gotoAndPlay("arrow");
}
Symbol 962 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.levelsDemo = 0;
_root.numberOfGame = 0;
_root.gotoAndPlay("map");
}
on (releaseOutside) {
_root.cursor.gotoAndPlay("arrow");
}
Symbol 968 MovieClip Frame 1
stop();
txt = _root.c_button;
txt1 = _root.c_button;
Symbol 968 MovieClip Frame 2
stop();
Symbol 969 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");
}