Frame 1
function playSound(soundID) {
if (rootMain.isSound_bool) {
var _local1 = new Sound();
_local1.attachSound(soundID);
_local1.start();
}
}
function downloadFullVersion() {
if (rootMain.gameVersion_int == ARCADE_LINES) {
getURL (FULLVERSION_ARCADELINES_URL, "_blank");
} else if (rootMain.gameVersion_int == ALLES_MURMEL) {
getURL (FULLVERSION_ALLESMURMEL_URL, "_blank");
} else if (rootMain.gameVersion_int == MIND_YOUR_MARBLES) {
getURL (FULLVERSION_MINDYOURMARBLES_URL, "_blank");
} else {
getURL (FULLVERSION_ARCADELINES_URL, "_blank");
}
}
function startFirstGame() {
rootMain.game_object = new GameObject(game_mc);
rootMain.game_object.startGame();
if (rootMain.isFirstTime_bool) {
rootMain.isFirstTime_bool = false;
rootMain.saveSettingsData();
rootMain.isPaused_bool = true;
game_mc.helpScreen_mc.gotoAndStop("page_1");
}
}
function startNewGame() {
rootMain.game_object.endGame();
rootMain.game_object = new GameObject(game_mc);
rootMain.game_object.startGame();
}
function showGameOver() {
rootMain.isPaused_bool = true;
game_mc.tipAlert_mc.gotoAndStop("hide");
game_mc.tipScreen_mc.gotoAndStop("hide");
game_mc.helpScreen_mc.gotoAndStop("hide");
game_mc.gameOver_mc.gotoAndPlay("show");
}
function getText(line_int) {
return(rootMain.gameText_string[line_int]);
}
function saveSettingsData() {
var _local1 = SharedObject.getLocal("lobstersoft_alines_" + rootMain.gameVersion_int, "/");
_local1.data.tip = String(_root.isTipsEnabled_bool);
_local1.data.first = String(_root.isFirstTime_bool);
_local1.flush(20);
}
function loadSettingsData() {
var _local1 = SharedObject.getLocal("lobstersoft_alines_" + rootMain.gameVersion_int, "/");
if ((_local1.data.tip == undefined) || (_local1.data.tip == "true")) {
rootMain.isTipsEnabled_bool = true;
} else {
rootMain.isTipsEnabled_bool = false;
}
if ((_local1.data.first == undefined) || (_local1.data.first == "true")) {
rootMain.isFirstTime_bool = true;
} else {
rootMain.isFirstTime_bool = false;
}
}
function checkSiteIsValid() {
var _local2 = true;
var _local1 = new Array();
_local1[0] = "lobstersoft.com";
_local1[1] = "lobstersoft.de";
_local1[2] = "devlabs.com";
var protocol = _url.substr(0, _url.indexOf(":"));
if (protocol == "http") {
var doubleSlash = _url.indexOf("//");
var _local3 = _url.substr(doubleSlash + 2, (_url.indexOf("/", doubleSlash + 2) - doubleSlash) - 2);
_local3 = _local3.toUpperCase();
if (_local3.indexOf("WWW.") != -1) {
siteName_string = _local3.substr(_local3.indexOf("WWW.") + 4, _local3.length);
index = 0;
while (index < _local1.length) {
if (siteName_string.indexOf(_local1[index].toUpperCase()) != -1) {
_local2 = false;
}
index++;
}
}
}
if (_local2) {
rootMain.getUrl(REDIRECT_INVALID_SITE_URL, "_blank");
rootMain.messages_mc.gotoAndStop("invalidsite");
stop();
}
}
function searchReplace(the_string, search_string, replace_string) {
var _local2 = the_string;
if (search_string == replace_string) {
return(_local2);
}
var found = 0;
var _local1 = _local2.indexOf(search_string);
while (_local1 >= 0) {
found++;
var _local3 = _local2.substr(0, _local1);
var end_string = _local2.substr(_local1 + search_string.length);
_local2 = (_local3 + replace_string) + end_string;
_local1 = _local2.indexOf(search_string, _local1 + replace_string.length);
}
return(_local2);
}
function getAdvertURL() {
if (rootMain.sideAdType_int == ARCADE_LINES) {
downloadURL = ARCADE_LINES_AD_URL;
} else if (rootMain.sideAdType_int == ALLES_MURMEL) {
downloadURL = ALLES_MURMEL_AD_URL;
} else if (rootMain.sideAdType_int == MIND_YOUR_MARBLES) {
downloadURL = MIND_YOUR_MARBLES_AD_URL;
}
return(downloadURL);
}
function loadText() {
switch (rootMain.gameVersion_int) {
case ARCADE_LINES :
rootMain.gameName_string = ARCADE_LINES_NAME;
break;
case ALLES_MURMEL :
rootMain.gameName_string = ALLES_MURMEL_NAME;
break;
case MIND_YOUR_MARBLES :
rootMain.gameName_string = MIND_YOUR_MARBLES_NAME;
}
if (rootMain.languageVersion_int == ENGLISH) {
rootMain.gameText_string[0] = "Lobstersoft Games";
rootMain.gameText_string[1] = "www.lobstersoft.com";
rootMain.gameText_string[2] = "Loading [Game Name]...";
rootMain.gameText_string[3] = "Enhanced deluxe version includes:";
rootMain.gameText_string[4] = "New Special Game Pieces";
rootMain.gameText_string[5] = "4 Dazzling Full-Screen Graphic Skins";
rootMain.gameText_string[6] = "One-Click Internet Highscores";
rootMain.gameText_string[7] = "8 Captivating Game Modes";
rootMain.gameText_string[8] = "Countless Detailed Statistics";
rootMain.gameText_string[9] = "Automatic \"Save Game\" Feature";
rootMain.gameText_string[10] = "Play Offline Anytime You Want!";
rootMain.gameText_string[11] = "Download [Game Name] Deluxe while you play online!";
rootMain.gameText_string[12] = "Download while you play";
rootMain.gameText_string[13] = "Just play the web version";
rootMain.gameText_string[14] = "Do not show this hint again";
rootMain.gameText_string[15] = "Joker";
rootMain.gameText_string[16] = "The joker fits into every row just as if it had the same color as the other pieces in the row. It counts to your score just as normal pieces would. You cannot build a row of jokers only.";
rootMain.gameText_string[17] = "Multi-Colored Pieces";
rootMain.gameText_string[18] = "These game pieces fit in every row which contains one of its two colors, e.g. the green and yellow colored stone will fit in green rows as well as in yellow rows. These game pieces count towards your score just as normal pieces would.";
rootMain.gameText_string[19] = "Dynamite Bar";
rootMain.gameText_string[20] = "Just like the Joker, the Dynamite Bar can be used as any color to build a row. However, when it is dissolved, it blows up all balls on the board that have the same color as the last dissolved row! You only get the score for the row you dissolved, but the dynamite bar is still great when the board gets stuffed.";
rootMain.gameText_string[21] = "Invalid Move...";
rootMain.gameText_string[22] = "The move you just attempted is not possible. Game pieces can be moved for unlimited distances vertically and horizontally, but not diagonally, and there must be a free path from their origin to their destination.";
rootMain.gameText_string[23] = "Well done!";
rootMain.gameText_string[24] = "You have just scored a combo by building 2 rows with 2 or less moves. This is why your score for the last move was doubled. Build another row with your next move to get the score for this row tripled!";
rootMain.gameText_string[25] = "Did you know?";
rootMain.gameText_string[26] = "There are two ways to move game pieces: You can either click once on the piece itself and then again on the destination field (this is what you are currently doing). Or you can press the mouse button on the piece, keep it pressed and drag it to its destination.\r\nIf you haven't done so already, you should give it a try. Many people find the second way to be much easier.";
rootMain.gameText_string[27] = "How to Play [Game Name]";
rootMain.gameText_string[28] = "Welcome to [Game Name]!";
rootMain.gameText_string[29] = "Welcome! This tutorial will show you how to play [Game Name] in five easy steps.\n\n[Game Name] is played on a 9x9-squared board, which is filled with colored game pieces.\n\nYour goal is to align five or more pieces of the same color into horizontal, vertical or diagonal rows. The rows will disappear and your score will increase.";
rootMain.gameText_string[30] = "How to Move Game Pieces";
rootMain.gameText_string[31] = "Moving game pieces is very easy:\n\n1. Click on the piece you would like to move, and keep the mouse button pressed down.\n\n2. Drag it to the destination field while still keeping the mouse button pressed.\n\n3. Release the mouse button and watch the piece slide over the board.";
rootMain.gameText_string[32] = "You can move game pieces to any field on the board, as long as there is a free path to their destination. Note that you can even let them slide around corners with a single move as shown on the right picture.";
rootMain.gameText_string[33] = "Game pieces can be moved vertically and horizontally, but not diagonally! The movement shown on the left would therefore not be valid since there is no free path.";
rootMain.gameText_string[34] = "Apart from the regular marbles, you will encounter many game pieces which add more variety to the game.\n\nMost of them, like the paint bucket or the dynamite bar, help you dissolve marbles more quickly. Use them wisely to maximize your score!";
rootMain.gameText_string[35] = "Build several lines in consecutive turns to get the Combo bonus!\n\nThe first line scores as usual, the second is doubled, the third is tripled and so on. The combo ends when you make a move that does not complete a row of five same-colored pieces.";
rootMain.gameText_string[36] = "Whenever a new special game piece comes up, you will see this cloud with a question sign beside the board. Be sure to click on it to get some more information about the new game piece.";
rootMain.gameText_string[37] = "That's it for the basics, but there are quite a few tricks and advanced tactics you can use to get higher scores and to keep the board clean.";
rootMain.gameText_string[38] = "We wish you endless hours of mind-bending fun with [Game Name]!";
rootMain.gameText_string[39] = "Page 1 of 5";
rootMain.gameText_string[40] = "Page 2 of 5";
rootMain.gameText_string[41] = "Page 3 of 5";
rootMain.gameText_string[42] = "Page 4 of 5";
rootMain.gameText_string[43] = "Page 5 of 5";
rootMain.gameText_string[44] = "Next";
rootMain.gameText_string[45] = "Go Back";
rootMain.gameText_string[46] = "Start the Game!";
rootMain.gameText_string[47] = "Highest-scoring move:";
rootMain.gameText_string[48] = "You scored xxx points";
rootMain.gameText_string[49] = "points";
rootMain.gameText_string[50] = "New\nGame";
} else if (rootMain.languageVersion_int == GERMAN) {
rootMain.gameText_string[0] = "Lobstersoft Spiele";
rootMain.gameText_string[1] = "www.lobstersoft.de";
rootMain.gameText_string[2] = "Lade [Game Name] hereunter...";
rootMain.gameText_string[3] = "Die erweiterte Deluxe-Version enth\u00E4lt:";
rootMain.gameText_string[4] = "Zahlreiche neue Spielsteine";
rootMain.gameText_string[5] = "4 brilliante Vollbild-Grafiksets";
rootMain.gameText_string[6] = "Internationale Internet-Highscores";
rootMain.gameText_string[7] = "8 abwechlsungsreiche Spielstufen";
rootMain.gameText_string[8] = "Speicherfunktion f\u00FCr aktuellen Spielstand";
rootMain.gameText_string[9] = "Viele aufschlussreiche Statistiken";
rootMain.gameText_string[10] = "Spielen Sie [Game Name] jederzeit offline!";
rootMain.gameText_string[11] = "Laden Sie sich die [Game Name] Deluxe Version herunter w\u00E4hrend Sie online spielen!";
rootMain.gameText_string[12] = "Herunterladen und gleichzeitig spielen";
rootMain.gameText_string[13] = "Nur online spielen";
rootMain.gameText_string[14] = "Diesen Hinweis nicht wieder anzeigen";
rootMain.gameText_string[15] = "Joker";
rootMain.gameText_string[16] = "Der Joker kann in jede Reihe gesetzt werden, er z\u00E4hlt bei der Punktevergabe wie ein ganz normaler Spielstein.";
rootMain.gameText_string[17] = "Zweifarbige Steine";
rootMain.gameText_string[18] = "Diese gekachelten Steine passen jeweils in gleichfarbige Reihen der Farben, die sie selbst enthalten. Der gr\u00FCn-gelbe Stein etwa kann in gelben und in gr\u00FCnen Linien aufgel\u00F6st werden. Zweifarbige Steine z\u00E4hlen bei der Punktevergabe wie ganz normale Steine.";
rootMain.gameText_string[19] = "Dynamitstange";
rootMain.gameText_string[20] = "Wird die Dynamitstange aufgel\u00F6st, so l\u00F6sen sich alle Steine der gleichen Farbe auf dem gesamten Spielbrett auf. Jedoch werden nur die Punkte der Reihe dem Punktestand gutgeschrieben, die sonstigen aufgel\u00F6sten Steine bringen keine Punkte. Die Dynamitstange kann ein Spiel retten, falls das Spielbrett sehr voll ist und man es dringend leeren muss. ";
rootMain.gameText_string[21] = "Ung\u00FCltiger Zug...";
rootMain.gameText_string[22] = "Der soeben von Ihnen versuchte Zug ist leider nicht m\u00F6glich. Um einen Ball zu bewegen, muss zwischen dem Ursprungsfeld und dem Zielfeld ein freier Weg vorhanden sein. Hierbei kann er sich horizontal und vertikal, nicht aber diagonal bewegen.\r\n\r\n Mit anderen Worten: B\u00E4lle k\u00F6nnen nicht springen.";
rootMain.gameText_string[23] = "Gut gemacht!";
rootMain.gameText_string[24] = "Sie haben soeben eine sogenannte 'Combo' erzielt, wodurch sich Ihre Punkte f\u00FCr den letzten Zug verdoppelt haben. Dies passiert immer dann, wenn Sie in mehreren aufeinanderfolgenden Z\u00FCgen Reihen von 5 oder mehr gleichfarbigen Kugeln bilden. Bilden Sie im n\u00E4chsten Zug eine weitere Reihe, werden Ihre Punkte f\u00FCr diese Reihe verdreifacht!";
rootMain.gameText_string[25] = "Wussten Sie schon...";
rootMain.gameText_string[26] = "Es gibt 2 Wege, einen Ball zu bewegen: \r\nSie k\u00F6nnen auf den Ball selbst und dann ein zweites mal auf das Zielfeld klicken (diese Technik scheinen Sie gerade zu verwenden). Alternativ k\u00F6nnen Sie jedoch auch bei gedr\u00FCcktem Mausknopf den Ball zu seinem Zielfeld ziehen.\r\n Falls Sie dies nicht schon getan haben, sollten Sie dies auch mal ausprobieren - Viele Leute finden die zweite Technik leichter und Schonender f\u00FCr den Zeigefinger.";
rootMain.gameText_string[27] = "[Game Name] Schnellstartanleitung";
rootMain.gameText_string[28] = "Willkommen bei [Game Name]!";
rootMain.gameText_string[29] = "Mit dieser kurzen Anleitung lernen Sie in f\u00FCnf einfachen Schritten die grundlegenden Spielregeln.\n\n[Game Name] wird auf einem Spielfeld mit neun mal neun Feldern gespielt, das mit farbigen Spielsteinen angef\u00FCllt ist.\n\nIhr Ziel ist es, horizontale, vertikale oder diagonale Reihen aus f\u00FCnf oder mehr gleichfarbigen Spielsteinen zu bilden. Diese l\u00F6sen sich auf und erh\u00F6hen Ihren Punktestand.";
rootMain.gameText_string[30] = "Bewegen von Spielsteinen";
rootMain.gameText_string[31] = "Das Bewegen von Spielsteinen ist denkbar einfach:\n\n1. Klicken Sie auf den zu bewegenden Spielstein und halten Sie den Mausknopf gedr\u00FCckt.\n\n2. Ziehen Sie den Mauszeiger auf das Zielfeld und halten Sie dabei weiterhin den Knopf gedr\u00FCckt.\n\n3. Lassen Sie jetzt den Mausknopf los. Der Spielstein bewegt sich nun zu seinem Ziel.";
rootMain.gameText_string[32] = "Sie k\u00F6nnen Spielsteine auf jedes Feld auf dem Spielbrett bewegen, solange ein freier Weg zum Zielfeld existiert. Spielsteine k\u00F6nnen sogar mit einem einzigen Zug um Ecken herum bewegt werden, wie auf dem rechten Bild zu sehen ist.";
rootMain.gameText_string[33] = "Aber Vorsicht: Spielsteine k\u00F6nnen zwar vertikal und horizontal, nicht aber diagonal bewegt werden. Der links gezeigte Zug w\u00E4re nicht g\u00FCltig, da kein freier Weg zum Zielfeld besteht.";
rootMain.gameText_string[34] = "Im Laufe des Spiels werden Sie auf zahlreiche Sondersteine sto\u00DFen, die mehr Abwechslung ins Spiel bringen. Die meisten davon, zum Beispiel der Farbeimer oder die Dynamitstange, helfen Ihnen beim Aufl\u00F6sen von Spielsteinen. Setzen Sie diese klug ein, um m\u00F6glichst viele Punkte zu erreichen!";
rootMain.gameText_string[35] = "Komplettieren Sie mehrere Reihen in aufeinanderfolgenden Spielz\u00FCgen, um den sogenannten 'Combo'-Bonus zu erzielen.\n\nDie erste Reihe wird einfach, die zweite doppelt, die dritte dreifach gez\u00E4hlt, und so weiter... Eine Combo endet, wenn Sie einen Zug machen, der keine Reihe mit 5 gleichfarbigen Steinen bildet.";
rootMain.gameText_string[36] = "Immer wenn ein neuer Sonderstein ins Spiel kommt, erscheint eine Wolke mit einem Fragezeichen neben dem Spielfeld.\n\nKlicken Sie darauf, um weitere Informationen zum neuen Sonderstein zu erhalten.";
rootMain.gameText_string[37] = "Das waren schon die grundlegenden Regeln, es gibt jedoch einige Tricks und Strategien, mit denen Sie mehr Punkte erzielen und das Spielfeld leeren k\u00F6nnen.";
rootMain.gameText_string[38] = "Wir w\u00FCnschen Ihnen viele vergn\u00FCgliche Stunden mit [Game Name]!";
rootMain.gameText_string[39] = "Seite 1 von 5";
rootMain.gameText_string[40] = "Seite 2 von 5";
rootMain.gameText_string[41] = "Seite 3 von 5";
rootMain.gameText_string[42] = "Seite 4 von 5";
rootMain.gameText_string[43] = "Seite 5 von 5";
rootMain.gameText_string[44] = "Weiter";
rootMain.gameText_string[45] = "Zur\u00FCck";
rootMain.gameText_string[46] = "Spiel Starten!";
rootMain.gameText_string[47] = "Bester Zug:";
rootMain.gameText_string[48] = "Sie haben xxx Punkte erzielt";
rootMain.gameText_string[49] = "Punkte";
rootMain.gameText_string[50] = "Neues\nSpiel";
}
index = 0;
while (index < rootMain.gameText_string.length) {
rootMain.gameText_string[index] = rootMain.searchReplace(rootMain.gameText_string[index], "[Game Name]", rootMain.gameName_string);
index++;
}
}
fscommand ("showmenu", "false");
_global.rootMain = this;
_global.ARCADE_LINES = 1;
_global.ALLES_MURMEL = 2;
_global.MIND_YOUR_MARBLES = 3;
_global.ARCADE_LINES_NAME = "Arcade Lines";
_global.ALLES_MURMEL_NAME = "Alles Murmel";
_global.MIND_YOUR_MARBLES_NAME = "Mind your Marbles";
_global.FULLVERSION_MINDYOURMARBLES_URL = "http://www.puzzlegems.com/MindYourMarbles/";
_global.FULLVERSION_ARCADELINES_URL = "http://www.puzzlegems.com/MindYourMarbles/";
_global.FULLVERSION_ALLESMURMEL_URL = "http://www.puzzlegems.com/MindYourMarbles/";
_global.ARCADE_LINES_AD_URL = "http://www.five-plus.com/downloads/alines/ArcadeLinesAd.swf";
_global.ALLES_MURMEL_AD_URL = "http://www.five-plus.com/downloads/alines/AllesMurmelAd.swf";
_global.MIND_YOUR_MARBLES_AD_URL = "http://www.five-plus.com/downloads/alines/MindMarblesAd.swf";
_global.REDIRECT_INVALID_SITE_URL = "http://www.puzzlegems.com";
_global.GAMEBOARD_SIZE = 9;
_global.SQUARE_SPACING = 36;
_global.NUMBER_OF_BALLS_ON_START = 5;
_global.STARTSTEPSTONEXTBALLINCREASE = 25;
_global.NUMBER_OF_DIFFERENT_BALLS = 12;
_global.NEXT_BALL_START_NUMBER = 3;
_global.NEXT_BALL_SPACING = 40;
_global.NEXT_BALL_START_XPOS = 376;
_global.NEXT_BALL_START_YPOS = 36;
_global.BALL_XOFFSET = 0.5;
_global.BALL_YOFFSET = 0.5;
_global.MAX_NEXTBALLS = 9;
_global.MAX_NEXTBALLS_SHOWN = 7;
_global.BALL_BOARD_SPACING = 36;
_global.BALL_BOARD_START = 19;
_global.SQUARE_DEPTH_START = 100;
_global.BALL_DEPTH_START = 200;
_global.SELECT_DEPTH = 200000 /* 0x030D40 */;
_global.MOVE_SPEED = 18;
_global.MINIMUM_BALLS_IN_LINE = 5;
_global.ENGLISH = 1;
_global.GERMAN = 2;
_global.HORIZONTAL_LINE = 1;
_global.VERTICAL_LINE = 2;
_global.TOPLEFT_DIAGONAL_LINE = 3;
_global.BOTTOMLEFT_DIAGONAL_LINE = 4;
_global.YELLOW_BALL = 1;
_global.BLACK_BALL = 2;
_global.RED_BALL = 3;
_global.BLUE_BALL = 4;
_global.GREEN_BALL = 5;
_global.ORANGE_BALL = 6;
_global.WHITE_BALL = 7;
_global.JOKER_BALL = 8;
_global.BLUEWHITE_BALL = 9;
_global.REDORANGE_BALL = 10;
_global.YELLOWGREEN_BALL = 11;
_global.DYNAMITE_BALL = 12;
_global.DYNAMITE_PROBABILITY = 30;
_global.TWOCOLOR_BALL_PROBABILITY = 40;
_global.JOKER_BALL_PROBABILITY = 120;
_global.NORMAL_BALL_PROBABILITY = 285;
_global.JOKER_TIP = "joker";
_global.TWOCOLOR_TIP = "twocolor";
_global.DYNAMITE_TIP = "dynamite";
_global.INVALID_TIP = "invalid";
_global.COMBO_TIP = "combo";
_global.DRAGDROP_TIP = "dragdrop";
var game_object;
var checkSite_bool = false;
var languageVersion_int = ((lang == undefined) ? (ENGLISH) : (Number(lang)));
var gameVersion_int = ((game == undefined) ? (ARCADE_LINES) : (Number(game)));
var sideAdType_int = ((ad == undefined) ? (ARCADE_LINES) : (Number(ad)));
languageVersion_int = 1;
gameVersion_int = 3;
sideAdType_int = 0;
var gameName_string;
var isSound_bool = true;
var isPaused_bool = false;
var isTipsEnabled_bool = true;
var isFirstTime_bool = true;
var gameText_string = new Array();
if (checkSite_bool) {
rootMain.checkSiteIsValid();
}
rootMain.loadText();
Frame 2
stop();
loadingscreen_mc.lobstersoftHeadingShown = rootMain.getText(0);
loadingscreen_mc.lobstersoftLinkShown = rootMain.getText(1);
loadingscreen_mc.loadingTextShown = rootMain.getText(2);
Frame 3
function AStarObject() {
var _local3 = this;
_local3.final = null;
_local3.table = new Array();
_local3.pathSum_string = "";
var _local2 = 1100;
while (_local2 <= 1900) {
_local3.table[_local2] = 1;
_local3.table[_local2 + 10] = 1;
_local2 = _local2 + 100;
}
var _local1 = 0;
while (_local1 <= 10) {
_local3.table[1000 + _local1] = 1;
_local3.table[2000 + _local1] = 1;
_local1++;
}
_local3.timeTaken_int = -1;
}
function GameObject(gameClip) {
var _local1 = this;
_local1.gameScreen_mc = gameClip;
_local1.select_object = new SelectObject(gameClip.gameBoard_mc.attachMovie("Select", "select_mc", SELECT_DEPTH));
_local1.nextBalls_object = new Array();
_local1.newBallsOnBoard_object = new Array();
_local1.board_object = new Array();
_local1.squares_object = new Array();
_local1.ballProbabilities_object = new Array();
_local1.ballProbabilitySum_int = 0;
_local1.nextBallIndex_int;
_local1.currentMoves_int = 0;
_local1.stepstoNextBallIncrease = _global.STARTSTEPSTONEXTBALLINCREASE;
_local1.nextStepstoNextBallIncrease = _global.STARTSTEPSTONEXTBALLINCREASE - 1;
_local1.currentBallsPerTurn = _global.NEXT_BALL_START_NUMBER;
_local1.nextTurnNewBalls = _global.NEXT_BALL_START_NUMBER;
_local1.highestScoringMove_int = 0;
_local1.currentTipNumber_int = 0;
_local1.ballNumber_int = 0;
_local1.ballCounter_int = 0;
_local1.dragDropMovesMade_int = 0;
_local1.tipShownCount = 0;
_local1.removedBalls_int = 0;
_local1.totalBallsToRemove_int = 0;
_local1.isTipAlertShown = false;
_local1.comboCounter_int = 0;
_local1.isSelectable_bool = true;
_local1.currentDepth_int = 0;
_local1.currentTip_string;
_local1.astar_object = new AStarObject();
_local1.lines_object;
_local1.currentLineIndex;
_local1.ballTypeSetForLine_int;
_local1.currentBallIndex = 0;
_local1.explosionNumber = 0;
_local1.queuedSelectedBall_object = null;
_local1.gameScore_int = 0;
var _local3;
var _local2;
_local3 = 0;
while (_local3 < GAMEBOARD_SIZE) {
_local1.board_object.push(new Array());
_local2 = 0;
while (_local2 < GAMEBOARD_SIZE) {
_local1.board_object[_local3][_local2] = null;
_local2++;
}
_local3++;
}
}
function BallObject(ballType, ballClip) {
var _local1 = this;
_local1.type_int = ballType;
_local1.clip_mc = ballClip;
_local1.xPos_int;
_local1.yPos_int;
_local1.isInLine_bool = false;
_local1.score_int = 0;
_local1.combo_int = 0;
}
function SquareObject(squareClip) {
this.clip_mc = squareClip;
this.pathSum_string = "notset";
}
function SelectObject(selectClip) {
var _local1 = this;
_local1.isSelected_bool = false;
_local1.clip_mc = selectClip;
_local1.clip_mc._alpha = 40;
_local1.ball_object = null;
_local1.xPos_int = -1;
_local1.yPos_int = -1;
}
function LineObject() {
var _local1 = this;
_local1.ballClipName;
_local1.coloredType_int = 0;
_local1.type_int = 0;
_local1.lineSize_int = 0;
_local1.score_int = 0;
_local1.isDynamite_bool = false;
_local1.balls_object = new Array();
}
function BallProbObject(type_int, prob_int) {
this.ballType_int = type_int;
this.probability_int = prob_int;
}
AStarObject.prototype.addNode = function (xPos, yPos) {
var _local1 = (((xPos + 1) * 100) + 1000) + (yPos + 1);
this.table[_local1] = 1;
};
AStarObject.prototype.removeNode = function (xPos, yPos) {
var _local1 = (((xPos + 1) * 100) + 1000) + (yPos + 1);
this.table[_local1] = 0;
};
AStarObject.prototype.search = function (startpoint, endpoint) {
var _local3 = this;
var inittime = getTimer();
var points = new Array();
var sb = 0;
var st = 1;
var n;
var c;
var _local1;
var _local2;
var i;
var v;
var index = new Array();
for (v in _local3.table) {
index[v] = _local3.table[v];
}
points[sb] = startpoint;
while (sb != st) {
n = points[sb];
_local2 = n - 1;
if (!index[_local2]) {
index[_local2] = n;
points[st] = _local2;
if (_local2 == endpoint) {
_local3.final = new Array();
_local3.final[0] = _local2;
c = 1;
_local1 = _local2;
while (index[_local1] != startpoint) {
_local1 = index[_local1];
_local3.final[c] = _local1;
c++;
}
_local3.final.reverse();
_local3.timeTaken_int = getTimer() - inittime;
return(true);
}
st++;
}
_local2 = n + 1;
if (!index[_local2]) {
index[_local2] = n;
points[st] = _local2;
if (_local2 == endpoint) {
_local3.final = new Array();
_local3.final[0] = _local2;
c = 1;
_local1 = _local2;
while (index[_local1] != startpoint) {
_local1 = index[_local1];
_local3.final[c] = _local1;
c++;
}
_local3.final.reverse();
_local3.timeTaken_int = getTimer() - inittime;
return(true);
}
st++;
}
_local2 = n + 100;
if (!index[_local2]) {
index[_local2] = n;
points[st] = _local2;
if (_local2 == endpoint) {
_local3.final = new Array();
_local3.final[0] = _local2;
c = 1;
_local1 = _local2;
while (index[_local1] != startpoint) {
_local1 = index[_local1];
_local3.final[c] = _local1;
c++;
}
_local3.final.reverse();
_local3.timeTaken_int = getTimer() - inittime;
return(true);
}
st++;
}
_local2 = n - 100;
if (!index[_local2]) {
index[_local2] = n;
points[st] = _local2;
if (_local2 == endpoint) {
_local3.final = new Array();
_local3.final[0] = _local2;
c = 1;
_local1 = _local2;
while (index[_local1] != startpoint) {
_local1 = index[_local1];
_local3.final[c] = _local1;
c++;
}
_local3.final.reverse();
_local3.timeTaken_int = getTimer() - inittime;
return(true);
}
st++;
}
sb++;
}
_local3.timeTaken_int = -1;
return(false);
};
GameObject.prototype.startGame = function () {
var _local1 = this;
game_object.initGame();
_local1.setStartNextBalls();
if (_local1.setBallsOnBoard(true)) {
_local1.showTipAlert();
}
_local1.setNextBalls();
};
GameObject.prototype.endGame = function () {
var _local1 = this;
removeMovieClip(_local1.select_object.clip_mc);
index = 0;
while (index < _local1.nextBalls_object.length) {
if (_local1.nextBalls_object[index] != null) {
removeMovieClip(_local1.nextBalls_object[index].clip_mc);
}
index++;
}
xIndex = 0;
while (xIndex < GAMEBOARD_SIZE) {
yIndex = 0;
while (yIndex < GAMEBOARD_SIZE) {
if (_local1.board_object[xIndex][yIndex] != null) {
removeMovieClip(_local1.board_object[xIndex][yIndex].clip_mc);
_local1.board_object[xIndex][yIndex] = null;
}
yIndex++;
}
xIndex++;
}
xSquareNumber_int = 0;
while (xSquareNumber_int < GAMEBOARD_SIZE) {
ySquareNumber_int = 0;
while (ySquareNumber_int < GAMEBOARD_SIZE) {
removeMovieClip(_local1.squares_object[xSquareNumber_int][ySquareNumber_int].clip_mc);
_local1.squares_object[xSquareNumber_int][ySquareNumber_int] = null;
ySquareNumber_int++;
}
xSquareNumber_int++;
}
};
GameObject.prototype.initGame = function () {
var _local1 = this;
rootMain.isPaused_bool = false;
_local1.gameScreen_mc.gameScore_mc.setScore(0);
_local1.setBallProbabilities();
_local1.currentDepth_int = SQUARE_DEPTH_START;
_local1.renderSquares();
_local1.currentDepth_int = BALL_DEPTH_START;
};
GameObject.prototype.renderSquares = function () {
var _local1 = this;
var _local2 = 0;
var xSquareNumber_int;
var _local3;
xSquareNumber_int = 0;
while (xSquareNumber_int < GAMEBOARD_SIZE) {
_local1.squares_object.push(new Array());
_local3 = 0;
while (_local3 < GAMEBOARD_SIZE) {
_local1.gameScreen_mc.gameBoard_mc.attachMovie("Square", "square_" + _local2, ++_local1.currentDepth_int);
_local1.gameScreen_mc.gameBoard_mc["square_" + _local2]._x = xSquareNumber_int * SQUARE_SPACING;
_local1.gameScreen_mc.gameBoard_mc["square_" + _local2]._y = _local3 * SQUARE_SPACING;
_local1.squares_object[xSquareNumber_int][_local3] = new SquareObject(_local1.gameScreen_mc.gameBoard_mc["square_" + _local2]);
_local2++;
_local3++;
}
xSquareNumber_int++;
}
};
GameObject.prototype.setStartNextBalls = function () {
var _local2 = this;
var _local1;
var _local3;
_local1 = 0;
while (_local1 < NUMBER_OF_BALLS_ON_START) {
_local3 = _local2.getBallType();
_local2.nextBalls_object[_local1] = _local2.createNextBall(_local3, _local1);
_local2.nextBalls_object[_local1].clip_mc.gotoAndStop("hide");
_local2.ballNumber_int++;
_local1++;
}
_local2.nextBalls_object[_local1] = null;
};
GameObject.prototype.setNextBalls = function () {
var _local2 = this;
var index;
var _local3 = _local2.nextTurnNewBalls;
if (_local2.getNumberOfEmptyBoardSpaces() <= (_local2.getTotalBoardSpaces() / 10)) {
if (_local3 > 2) {
_local3 = _local3 - 2;
} else {
_local3--;
}
} else if ((_local3 > 2) && (_local2.getNumberOfEmptyBoardSpaces() <= ((_local2.getTotalBoardSpaces() / 10) * 4))) {
_local3--;
}
_local3 = Math.min(_local3, MAX_NEXTBALLS);
var ballType;
var _local1;
_local1 = 0;
while (_local1 < _local3) {
ballType = _local2.getBallType();
_local2.nextBalls_object[_local1] = _local2.createNextBall(ballType, _local1);
if (_local1 < MAX_NEXTBALLS_SHOWN) {
_local2.nextBalls_object[_local1].clip_mc.gotoAndStop("nextball");
} else {
_local2.nextBalls_object[_local1].clip_mc.gotoAndStop("hide");
}
_local2.ballNumber_int++;
_local1++;
}
_local2.nextBalls_object[_local1] = null;
};
GameObject.prototype.getBallType = function () {
var _local2 = this;
var _local3;
var startAgain_bool = true;
var rand_int;
while (startAgain_bool) {
startAgain_bool = false;
rand_int = Math.ceil(Math.random() * _local2.ballProbabilitySum_int);
var _local1 = 0;
_local3 = _local2.ballProbabilities_object[0];
while (rand_int > _local2.ballProbabilities_object[_local1].probability_int) {
_local1++;
_local3 = _local2.ballProbabilities_object[_local1];
}
if (!_local2.isBallAllowed(_local3)) {
startAgain_bool = true;
}
}
return(_local3.ballType_int);
};
GameObject.prototype.isBallAllowed = function (ballProb_object) {
var _local1 = ballProb_object;
if (this.currentMoves_int < 10) {
if (((((_local1.ballType_int == DYNAMITE_BALL) || (_local1.ballType_int == YELLOWGREEN_BALL)) || (_local1.ballType_int == REDORANGE_BALL)) || (_local1.ballType_int == BLUEWHITE_BALL)) || (_local1.ballType_int == JOKER_BALL)) {
return(false);
}
return(true);
}
return(true);
};
GameObject.prototype.setBallProbabilities = function () {
var _local1 = this;
_local1.ballProbabilities_object[0] = new BallProbObject(DYNAMITE_BALL, DYNAMITE_PROBABILITY);
_local1.ballProbabilities_object[1] = new BallProbObject(BLUEWHITE_BALL, _local1.ballProbabilities_object[0].probability_int + TWOCOLOR_BALL_PROBABILITY);
_local1.ballProbabilities_object[2] = new BallProbObject(REDORANGE_BALL, _local1.ballProbabilities_object[1].probability_int + TWOCOLOR_BALL_PROBABILITY);
_local1.ballProbabilities_object[3] = new BallProbObject(YELLOWGREEN_BALL, _local1.ballProbabilities_object[2].probability_int + TWOCOLOR_BALL_PROBABILITY);
_local1.ballProbabilities_object[4] = new BallProbObject(JOKER_BALL, _local1.ballProbabilities_object[3].probability_int + JOKER_BALL_PROBABILITY);
_local1.ballProbabilities_object[5] = new BallProbObject(YELLOW_BALL, _local1.ballProbabilities_object[4].probability_int + NORMAL_BALL_PROBABILITY);
_local1.ballProbabilities_object[6] = new BallProbObject(BLACK_BALL, _local1.ballProbabilities_object[5].probability_int + NORMAL_BALL_PROBABILITY);
_local1.ballProbabilities_object[7] = new BallProbObject(RED_BALL, _local1.ballProbabilities_object[6].probability_int + NORMAL_BALL_PROBABILITY);
_local1.ballProbabilities_object[8] = new BallProbObject(BLUE_BALL, _local1.ballProbabilities_object[7].probability_int + NORMAL_BALL_PROBABILITY);
_local1.ballProbabilities_object[9] = new BallProbObject(GREEN_BALL, _local1.ballProbabilities_object[8].probability_int + NORMAL_BALL_PROBABILITY);
_local1.ballProbabilities_object[10] = new BallProbObject(ORANGE_BALL, _local1.ballProbabilities_object[9].probability_int + NORMAL_BALL_PROBABILITY);
_local1.ballProbabilities_object[11] = new BallProbObject(WHITE_BALL, _local1.ballProbabilities_object[10].probability_int + NORMAL_BALL_PROBABILITY);
_local1.ballProbabilitySum_int = _local1.ballProbabilities_object[11].probability_int;
};
GameObject.prototype.createNextBall = function (ballType, ballIndex) {
this.gameScreen_mc.gameBoard_mc.attachMovie("Ball" + ballType, "ball_" + this.ballNumber_int, ++this.currentDepth_int);
var ballClip = this.gameScreen_mc.gameBoard_mc["ball_" + this.ballNumber_int];
with (ballClip) {
_x = NEXT_BALL_START_XPOS;
_y = NEXT_BALL_START_YPOS + (ballIndex * NEXT_BALL_SPACING);
}
return(new BallObject(ballType, ballClip));
};
GameObject.prototype.setBallsOnBoard = function (isStart_bool) {
var _local1 = this;
var _local3;
var _local2;
_local1.newBallsOnBoard_object = new Array();
_local1.nextBallIndex_int = 0;
var ball_object;
var showTip_bool = false;
if (!isStart_bool) {
rootMain.playSound("plop");
}
var lastNewBallIndex_int = (_local1.getNumberOfEmptyBoardSpaces() - 1);
while (_local1.nextBalls_object[_local1.nextBallIndex_int] != null) {
ball_object = _local1.nextBalls_object[_local1.nextBallIndex_int];
ball_object.clip_mc.gotoAndStop("hide");
randomIndex = 0;
do {
if (randomIndex > 2) {
xIndex = _local3;
while (xIndex < GAMEBOARD_SIZE) {
yIndex = _local2;
while (yIndex < GAMEBOARD_SIZE) {
if (_local1.board_object[xIndex][yIndex] != null) {
_local3 = xIndex;
_local2 = yIndex;
break;
}
yIndex++;
}
xIndex++;
}
if (_local1.board_object[_local3][_local2] == null) {
break;
}
randomIndex = 0;
}
_local3 = Math.floor(Math.random() * GAMEBOARD_SIZE);
_local2 = Math.floor(Math.random() * GAMEBOARD_SIZE);
randomIndex++;
} while (_local1.board_object[_local3][_local2] != null);
_local1.setBoardBallPosition(ball_object, _local3, _local2);
if (isStart_bool) {
ball_object.clip_mc.gotoAndStop("static");
} else {
ball_object.clip_mc.gotoAndPlay("show");
}
_local1.board_object[_local3][_local2] = _local1.nextBalls_object[_local1.nextBallIndex_int];
_local1.newBallsOnBoard_object[_local1.nextBallIndex_int] = _local1.nextBalls_object[_local1.nextBallIndex_int];
_local1.astar_object.addNode(_local3, _local2);
_local1.ballCounter_int++;
_local1.nextBallIndex_int++;
if (ball_object.type_int == DYNAMITE_BALL) {
_local1.currentTip_string = DYNAMITE_TIP;
showTip_bool = true;
} else if (ball_object.type_int == JOKER_BALL) {
_local1.currentTip_string = JOKER_TIP;
showTip_bool = true;
} else if (((ball_object.type_int == BLUEWHITE_BALL) || (ball_object.type_int == REDORANGE_BALL)) || (ball_object.type_int == YELLOWGREEN_BALL)) {
_local1.currentTip_string = TWOCOLOR_TIP;
showTip_bool = true;
}
if (_local1.nextBallIndex_int > lastNewBallIndex_int) {
var index = (lastNewBallIndex_int + 1);
while (_local1.nextBalls_object[index] != null) {
removeMovieClip(_local1.nextBalls_object[index].clip_mc);
_local1.nextBalls_object[index] = null;
index++;
}
return(showTip_bool);
}
}
return(showTip_bool);
};
GameObject.prototype.setBoardBallPosition = function (ball_object, xIndex, yIndex) {
with (ball_object.clip_mc) {
_x = (BALL_BOARD_START + (xIndex * BALL_BOARD_SPACING)) - BALL_XOFFSET;
_y = (BALL_BOARD_START + (yIndex * BALL_BOARD_SPACING)) - BALL_YOFFSET;
}
ball_object.xPos_int = xIndex;
ball_object.yPos_int = yIndex;
};
GameObject.prototype.getNumberOfEmptyBoardSpaces = function () {
return(this.getTotalBoardSpaces() - this.ballCounter_int);
};
GameObject.prototype.getTotalBoardSpaces = function () {
return(GAMEBOARD_SIZE * GAMEBOARD_SIZE);
};
GameObject.prototype.buildPath = function (isRemovePath_bool) {
var _local1 = this;
var _local2;
var _local3;
var yPos_int;
_local1.astar_object.pathSum_string = "";
_local2 = 0;
while (_local2 < _local1.astar_object.final.length) {
point = _local1.astar_object.final[_local2];
_local3 = int((point - 1000) / 100);
yPos_int = (point - (_local3 * 100)) - 1000;
if (isRemovePath_bool) {
_local1.squares_object[_local3 - 1][yPos_int - 1].clip_mc.gotoAndStop("empty");
} else {
_local1.astar_object.pathSum_string = _local1.astar_object.pathSum_string + (point + " ");
_local1.squares_object[_local3 - 1][yPos_int - 1].clip_mc.gotoAndStop("highlight");
}
_local2++;
}
};
GameObject.prototype.setBoardSelectOrMove = function (xMousePos, yMousePos, isMouseUp_bool) {
var _local1 = this;
var _local3 = Math.floor(xMousePos / SQUARE_SPACING);
var _local2 = Math.floor(yMousePos / SQUARE_SPACING);
if (((_local3 >= 0) && (_local3 < GAMEBOARD_SIZE)) && ((_local2 >= 0) && (_local2 < GAMEBOARD_SIZE))) {
if ((isMouseUp_bool && (_local1.select_object.isSelected_bool)) && ((_local1.select_object.xPos_int == _local3) && (_local1.select_object.yPos_int == _local2))) {
} else {
var ball_object = _local1.board_object[_local3][_local2];
if (ball_object != null) {
if (_local1.isSelectable_bool) {
_local1.select_object.setPosition(_local3, _local2, ball_object);
} else if (!isMouseUp_bool) {
_local1.queuedSelectedBall_object = ball_object;
}
} else if (_local1.select_object.isSelected_bool) {
if (_local1.select_object.isSelected_bool && (ball_object == null)) {
if ((_local1.select_object.xPos_int != _local3) || (_local1.select_object.yPos_int != _local2)) {
var point = ((((_local3 + 1) * 100) + 1000) + (_local2 + 1));
var startpoint = ((((_local1.select_object.xPos_int + 1) * 100) + 1000) + (_local1.select_object.yPos_int + 1));
_local1.buildPath(true);
if (_local1.astar_object.search(startpoint, point)) {
if (isMouseUp_bool) {
_local1.dragDropMovesMade_int++;
}
_local1.moveBall();
} else {
rootMain.playSound("error");
_local1.currentTip_string = INVALID_TIP;
_local1.showTipAlert();
}
}
}
}
}
}
};
GameObject.prototype.setShortestPath = function (xMousePos, yMousePos, onDemand_bool) {
var _local1 = this;
var _local3 = Math.floor(xMousePos / SQUARE_SPACING);
var _local2 = Math.floor(yMousePos / SQUARE_SPACING);
if (((_local3 >= 0) && (_local3 < GAMEBOARD_SIZE)) && ((_local2 >= 0) && (_local2 < GAMEBOARD_SIZE))) {
var square_object = _local1.squares_object[_local3][_local2];
if (_local1.select_object.isSelected_bool && (onDemand_bool || (square_object.pathSum_string != _local1.astar_object.pathSum_string))) {
var point = ((((_local3 + 1) * 100) + 1000) + (_local2 + 1));
var startpoint = ((((_local1.select_object.xPos_int + 1) * 100) + 1000) + (_local1.select_object.yPos_int + 1));
_local1.buildPath(true);
if (_local1.astar_object.search(startpoint, point)) {
_local1.buildPath(false);
_local1.squares_object[_local3][_local2].pathSum_string = _local1.astar_object.pathSum_string;
}
}
}
};
GameObject.prototype.getBallObjectFromName = function (ballClip_string) {
var _local3 = this;
var _local2;
var _local1;
_local2 = 0;
while (_local2 < GAMEBOARD_SIZE) {
_local1 = 0;
while (_local1 < GAMEBOARD_SIZE) {
if (_local3.board_object[_local2][_local1].clip_mc._name == ballClip_string) {
return(_local3.board_object[_local2][_local1]);
}
_local1++;
}
_local2++;
}
return(null);
};
GameObject.prototype.moveBall = function () {
var _local1 = this;
_local1.checkToHideTipAlert();
_local1.queuedSelectedBall_object = null;
_local1.isSelectable_bool = false;
_local1.board_object[_local1.select_object.ball_object.xPos_int][_local1.select_object.ball_object.yPos_int] = null;
_local1.astar_object.removeNode(_local1.select_object.ball_object.xPos_int, _local1.select_object.ball_object.yPos_int);
_local1.select_object.ball_object.setPath(_local1.astar_object.final);
_local1.board_object[_local1.select_object.ball_object.xPos_int][_local1.select_object.ball_object.yPos_int] = _local1.select_object.ball_object;
_local1.astar_object.addNode(_local1.select_object.ball_object.xPos_int, _local1.select_object.ball_object.yPos_int);
_local1.select_object.deselect();
_local1.select_object.ball_object.clip_mc.gotoAndPlay("startmove");
};
GameObject.prototype.moveComplete = function (ballClip_string) {
var _local1 = this;
_local1.currentMoves_int++;
trace("steps:" + _local1.stepstoNextBallIncrease);
if (!(--_local1.stepstoNextBallIncrease)) {
trace("stepstoNextBallIncrease == 0!");
_local1.nextTurnNewBalls = _local1.currentBallsPerTurn + 1;
trace("new balls next time:" + _local1.nextTurnNewBalls);
if (!(--_local1.nextStepstoNextBallIncrease)) {
_local1.nextStepstoNextBallIncrease = _global.STARTSTEPSTONEXTBALLINCREASE;
_local1.stepstoNextBallIncrease = _global.STARTSTEPSTONEXTBALLINCREASE;
_local1.currentBallsPerTurn++;
} else {
_local1.stepstoNextBallIncrease = _local1.nextStepstoNextBallIncrease;
trace("Setting stepstoNextBallIncrease to " + _local1.stepstoNextBallIncrease);
}
} else {
trace("resetting next turn new balls");
_local1.nextTurnNewBalls = _local1.currentBallsPerTurn;
}
if (((_local1.currentMoves_int % 10) == 0) && (_local1.dragDropMovesMade_int == 0)) {
_local1.currentTip_string = DRAGDROP_TIP;
_local1.showTipAlert();
}
_local1.currentLineIndex = 0;
var _local2 = _local1.select_object.ball_object;
_local1.lines_object = new Array();
_local1.lines_object.push(new LineObject());
if (!_local1.checkForLines(_local2, false)) {
if (_local1.setBallsOnBoard(false)) {
_local1.showTipAlert();
}
_local1.setNextBalls();
} else {
_local1.removeBalls(_local2);
if (_local1.ballCounter_int == 0) {
if (_local1.setBallsOnBoard(false)) {
_local1.showTipAlert();
}
_local1.setNextBalls();
}
}
};
GameObject.prototype.removeBalls = function (ball_object) {
var _local1 = this;
var _local2;
var ballIndex;
var _local3;
var xIndex;
var yIndex;
var isDynamite_bool = false;
var explodeBall_bool = new Array();
var baseScore_int;
var scoreIndex;
var numberOfBallsToCheck_int = 0;
var numberOfBallsIndex_int = 0;
var moveScore_int = 0;
_local1.removedBalls_int = 0;
_local1.totalBallsToRemove_int = 0;
rootMain.playSound("plop_away");
prevComboCounter_int = _local1.comboCounter_int;
var isCheckNewBalls_bool = false;
if (ball_object == null) {
numberOfBallsToCheck_int = _local1.newBallsOnBoard_object.length;
isCheckNewBalls_bool = true;
} else {
numberOfBallsToCheck_int = 1;
}
while (numberOfBallsIndex_int < numberOfBallsToCheck_int) {
if (isCheckNewBalls_bool) {
ball_object = _local1.newBallsOnBoard_object[numberOfBallsIndex_int];
if (!ball_object.isInLine_bool) {
numberOfBallsIndex_int++;
continue;
}
}
_local3 = 0;
while (_local3 < _local1.currentLineIndex) {
if (_local1.lines_object[_local3].lineSize_int >= MINIMUM_BALLS_IN_LINE) {
if (_local1.lines_object[_local3].ballClipName == ball_object.clip_mc._name) {
ballIndex = 0;
while (ballIndex < _local1.lines_object[_local3].lineSize_int) {
_local2 = _local1.lines_object[_local3].balls_object[ballIndex];
if (ball_object.clip_mc._name == _local2.clip_mc._name) {
baseScore_int = 3;
if ((_local1.lines_object[_local3].type_int == TOPLEFT_DIAGONAL_LINE) || (_local1.lines_object[_local3].type_int == BOTTOMLEFT_DIAGONAL_LINE)) {
lineScore_int = _local1.lines_object[_local3].lineSize_int + 1;
} else {
lineScore_int = _local1.lines_object[_local3].lineSize_int;
}
scoreIndex = 2;
while (scoreIndex < ((lineScore_int - MINIMUM_BALLS_IN_LINE) + 2)) {
baseScore_int = baseScore_int + scoreIndex;
scoreIndex++;
}
ball_object.score_int = ball_object.score_int + baseScore_int;
_local1.comboCounter_int++;
}
if (_local1.lines_object[_local3].isDynamite_bool) {
isDynamite_bool = true;
if ((_local2.type_int >= YELLOW_BALL) && (_local2.type_int <= WHITE_BALL)) {
explodeBall_bool[_local2.type_int] = true;
}
}
if (_local1.board_object[_local2.xPos_int][_local2.yPos_int] != null) {
_local1.astar_object.removeNode(_local2.xPos_int, _local2.yPos_int);
_local1.board_object[_local2.xPos_int][_local2.yPos_int] = null;
_local1.ballCounter_int--;
_local1.totalBallsToRemove_int++;
_local2.clip_mc.gotoAndPlay("dissolve");
}
ballIndex++;
}
}
}
_local3++;
}
moveScore_int = moveScore_int + _local1.showScore(ball_object);
numberOfBallsIndex_int++;
}
if (_local1.comboCounter_int >= 2) {
rootMain.playSound("combo");
if ((_local1.comboCounter_int >= 2) && (prevComboCounter_int <= 1)) {
_local1.currentTip_string = COMBO_TIP;
_local1.showTipAlert();
}
}
if (isDynamite_bool) {
var ballType_int;
rootMain.playSound("explode");
xIndex = 0;
while (xIndex < GAMEBOARD_SIZE) {
yIndex = 0;
while (yIndex < GAMEBOARD_SIZE) {
if (_local1.board_object[xIndex][yIndex] != null) {
if (explodeBall_bool[_local1.board_object[xIndex][yIndex].type_int]) {
_local1.explodeBall(xIndex, yIndex);
}
}
yIndex++;
}
xIndex++;
}
}
if (moveScore_int > _local1.highestScoringMove_int) {
_local1.highestScoringMove_int = moveScore_int;
}
};
GameObject.prototype.showScore = function (ball_object) {
var score_int;
if (rootMain.gameVersion_int == MIND_YOUR_MARBLES) {
ball_object.score_int = ball_object.score_int * 10;
}
var depth_int = (++this.currentDepth_int);
this.gameScreen_mc.gameBoard_mc.attachMovie("ScoreAlert", "scorealert" + depth_int, depth_int);
with (this.gameScreen_mc.gameBoard_mc["scorealert" + depth_int]) {
_x = BALL_BOARD_START + (ball_object.xPos_int * BALL_BOARD_SPACING);
_y = BALL_BOARD_START + (ball_object.yPos_int * BALL_BOARD_SPACING);
if (this.comboCounter_int >= 2) {
score_mc.scoreShown1 = (ball_object.score_int + "x") + this.comboCounter_int;
score_mc.scoreShown2 = (ball_object.score_int + "x") + this.comboCounter_int;
score_int = ball_object.score_int * this.comboCounter_int;
} else {
score_mc.scoreShown1 = ball_object.score_int;
score_mc.scoreShown2 = ball_object.score_int;
score_int = ball_object.score_int;
}
}
depth_int = ++this.currentDepth_int;
this.gameScreen_mc.gameBoard_mc.attachMovie("ParticleAnimation", "particle" + depth_int, depth_int);
with (this.gameScreen_mc.gameBoard_mc["particle" + depth_int]) {
_x = BALL_BOARD_START + (ball_object.xPos_int * BALL_BOARD_SPACING);
_y = BALL_BOARD_START + (ball_object.yPos_int * BALL_BOARD_SPACING);
}
this.gameScore_int = this.gameScore_int + (ball_object.score_int * this.comboCounter_int);
this.gameScreen_mc.gameScore_mc.setScore(this.gameScore_int);
return(score_int);
};
GameObject.prototype.explodeBall = function (xIndex, yIndex) {
this.astar_object.removeNode(xIndex, yIndex);
removeMovieClip(this.board_object[xIndex][yIndex].clip_mc);
this.board_object[xIndex][yIndex] = null;
this.ballCounter_int--;
this.totalBallsToRemove_int++;
this.gameScreen_mc.gameBoard_mc.attachMovie("Explosion", "explosion" + this.explosionNumber, ++this.currentDepth_int);
with (this.gameScreen_mc.gameBoard_mc["explosion" + this.explosionNumber]) {
_x = BALL_BOARD_START + (xIndex * BALL_BOARD_SPACING);
_y = BALL_BOARD_START + (yIndex * BALL_BOARD_SPACING);
}
this.explosionNumber++;
};
GameObject.prototype.duplicateLineCheck = function (ball_object, lineType_int) {
var _local3 = this;
var isLineDuplicate_bool = false;
var _local2;
var _local1;
_local2 = 0;
while (_local2 < _local3.lines_object.length) {
if (_local3.lines_object[_local2].type_int == lineType_int) {
_local1 = 0;
while (_local1 < _local3.lines_object[_local2].lineSize_int) {
if (ball_object.clip_mc._name == _local3.lines_object[_local2].balls_object[_local1].clip_mc._name) {
isLineDuplicate_bool = true;
break;
}
_local1++;
}
}
_local2++;
}
return(isLineDuplicate_bool);
};
GameObject.prototype.checkNewBallInLine = function (line_object, ball_object) {
var _local1 = line_object;
var _local3 = ball_object;
var _local2 = false;
ballIndex = 0;
while (ballIndex < _local1.balls_object.length) {
if (_local3.clip_mc._name == _local1.balls_object[ballIndex].clip_mc._name) {
_local2 = true;
}
ballIndex++;
}
return(_local2);
};
GameObject.prototype.checkForLines = function (ball_object, isNewBalls_bool) {
var _local1 = this;
var isLineDuplicate_bool;
var isCancelledLine_bool;
var _local2;
var _local3;
if (ball_object == null) {
return(false);
}
isLineDuplicate_bool = false;
if (isNewBalls_bool && (_local1.lines_object.length > 1)) {
isLineDuplicate_bool = _local1.duplicateLineCheck(ball_object, HORIZONTAL_LINE);
}
if (!isLineDuplicate_bool) {
_local1.currentBallIndex = 0;
_local1.ballTypeSetForLine_int = 0;
_local3 = ball_object.yPos_int;
var next_int = 0;
_local2 = 0;
while (_local2 < GAMEBOARD_SIZE) {
if (!_local1.checkBallInLine(_local1.board_object[_local2][_local3])) {
if (_local1.currentBallIndex >= MINIMUM_BALLS_IN_LINE) {
break;
}
if ((next_int + MINIMUM_BALLS_IN_LINE) < GAMEBOARD_SIZE) {
next_int++;
_local2 = next_int;
_local1.currentBallIndex = 0;
_local1.ballTypeSetForLine_int = 0;
} else {
break;
}
} else {
_local2++;
}
}
if ((_local1.currentBallIndex >= MINIMUM_BALLS_IN_LINE) && ((_local1.lines_object[_local1.currentLineIndex].coloredType_int >= YELLOW_BALL) && (_local1.lines_object[_local1.currentLineIndex].coloredType_int <= WHITE_BALL))) {
isCancelledLine_bool = false;
if (isNewBalls_bool) {
if (!_local1.checkNewBallInLine(_local1.lines_object[_local1.currentLineIndex], ball_object)) {
_local1.lines_object[_local1.currentLineIndex] = new LineObject();
isCancelledLine_bool = true;
}
}
if (!isCancelledLine_bool) {
_local1.board_object[ball_object.xPos_int][ball_object.yPos_int].isInLine_bool = true;
_local1.lines_object[_local1.currentLineIndex].ballClipName = ball_object.clip_mc._name;
_local1.lines_object[_local1.currentLineIndex].type_int = HORIZONTAL_LINE;
_local1.lines_object[_local1.currentLineIndex].lineSize_int = _local1.currentBallIndex;
_local1.lines_object.push(new LineObject());
_local1.currentLineIndex++;
}
}
}
isLineDuplicate_bool = false;
if (isNewBalls_bool && (_local1.lines_object.length > 1)) {
isLineDuplicate_bool = _local1.duplicateLineCheck(ball_object, VERTICAL_LINE);
}
if (!isLineDuplicate_bool) {
_local1.currentBallIndex = 0;
_local1.ballTypeSetForLine_int = 0;
_local2 = ball_object.xPos_int;
next_int = 0;
_local3 = 0;
while (_local3 < GAMEBOARD_SIZE) {
if (!_local1.checkBallInLine(_local1.board_object[_local2][_local3])) {
if (_local1.currentBallIndex >= MINIMUM_BALLS_IN_LINE) {
break;
}
if ((next_int + MINIMUM_BALLS_IN_LINE) < GAMEBOARD_SIZE) {
next_int++;
_local3 = next_int;
_local1.currentBallIndex = 0;
_local1.ballTypeSetForLine_int = 0;
} else {
break;
}
} else {
_local3++;
}
}
if ((_local1.currentBallIndex >= MINIMUM_BALLS_IN_LINE) && ((_local1.lines_object[_local1.currentLineIndex].coloredType_int >= YELLOW_BALL) && (_local1.lines_object[_local1.currentLineIndex].coloredType_int <= WHITE_BALL))) {
isCancelledLine_bool = false;
if (isNewBalls_bool) {
if (!_local1.checkNewBallInLine(_local1.lines_object[_local1.currentLineIndex], ball_object)) {
_local1.lines_object[_local1.currentLineIndex] = new LineObject();
isCancelledLine_bool = true;
}
}
if (!isCancelledLine_bool) {
_local1.board_object[ball_object.xPos_int][ball_object.yPos_int].isInLine_bool = true;
_local1.lines_object[_local1.currentLineIndex].ballClipName = ball_object.clip_mc._name;
_local1.lines_object[_local1.currentLineIndex].type_int = VERTICAL_LINE;
_local1.lines_object[_local1.currentLineIndex].lineSize_int = _local1.currentBallIndex;
_local1.lines_object.push(new LineObject());
_local1.currentLineIndex++;
}
}
}
isLineDuplicate_bool = false;
if (isNewBalls_bool && (_local1.lines_object.length > 1)) {
isLineDuplicate_bool = _local1.duplicateLineCheck(ball_object, TOPLEFT_DIAGONAL_LINE);
}
if (!isLineDuplicate_bool) {
var xStart_int;
var yStart_int;
var xEnd_int;
var yEnd_int;
_local1.currentBallIndex = 0;
_local1.ballTypeSetForLine_int = 0;
_local2 = ball_object.xPos_int;
_local3 = ball_object.yPos_int;
var diff_int = Math.abs(_local2 - _local3);
if (_local2 >= _local3) {
xStart_int = diff_int;
xEnd_int = GAMEBOARD_SIZE - 1;
yStart_int = 0;
yEnd_int = xEnd_int - diff_int;
} else {
yStart_int = diff_int;
yEnd_int = GAMEBOARD_SIZE - 1;
xStart_int = 0;
xEnd_int = yEnd_int - diff_int;
}
_local3 = yStart_int;
_local2 = xStart_int;
nextX_int = xStart_int;
nextY_int = yStart_int;
while (_local2 <= xEnd_int) {
if (!_local1.checkBallInLine(_local1.board_object[_local2][_local3])) {
if (_local1.currentBallIndex >= MINIMUM_BALLS_IN_LINE) {
break;
}
if ((nextY_int + MINIMUM_BALLS_IN_LINE) < GAMEBOARD_SIZE) {
nextX_int++;
nextY_int++;
_local2 = nextX_int;
_local3 = nextY_int;
_local1.currentBallIndex = 0;
_local1.ballTypeSetForLine_int = 0;
} else {
break;
}
} else {
_local2++;
_local3++;
}
}
if ((_local1.currentBallIndex >= MINIMUM_BALLS_IN_LINE) && ((_local1.lines_object[_local1.currentLineIndex].coloredType_int >= YELLOW_BALL) && (_local1.lines_object[_local1.currentLineIndex].coloredType_int <= WHITE_BALL))) {
isCancelledLine_bool = false;
if (isNewBalls_bool) {
if (!_local1.checkNewBallInLine(_local1.lines_object[_local1.currentLineIndex], ball_object)) {
_local1.lines_object[_local1.currentLineIndex] = new LineObject();
isCancelledLine_bool = true;
}
}
if (!isCancelledLine_bool) {
_local1.board_object[ball_object.xPos_int][ball_object.yPos_int].isInLine_bool = true;
_local1.lines_object[_local1.currentLineIndex].ballClipName = ball_object.clip_mc._name;
_local1.lines_object[_local1.currentLineIndex].type_int = TOPLEFT_DIAGONAL_LINE;
_local1.lines_object[_local1.currentLineIndex].lineSize_int = _local1.currentBallIndex;
_local1.lines_object.push(new LineObject());
_local1.currentLineIndex++;
}
}
}
isLineDuplicate_bool = false;
if (isNewBalls_bool && (_local1.lines_object.length > 1)) {
isLineDuplicate_bool = _local1.duplicateLineCheck(ball_object, BOTTOMLEFT_DIAGONAL_LINE);
}
if (!isLineDuplicate_bool) {
_local1.currentBallIndex = 0;
_local1.ballTypeSetForLine_int = 0;
_local2 = ball_object.xPos_int;
_local3 = ball_object.yPos_int;
xStart_int = _local2 - ((GAMEBOARD_SIZE - 1) - _local3);
yStart_int = _local3 + ((GAMEBOARD_SIZE - 1) - _local3);
if (xStart_int < 0) {
yStart_int = yStart_int - Math.abs(xStart_int);
xStart_int = 0;
}
xEnd_int = _local2 + ((GAMEBOARD_SIZE - 1) - _local2);
yEnd_int = _local3 - ((GAMEBOARD_SIZE - 1) - _local2);
if (yEnd_int < 0) {
xEnd_int = xEnd_int - Math.abs(yEnd_int);
yEnd_int = 0;
}
_local3 = yStart_int;
_local2 = xStart_int;
nextX_int = xStart_int;
nextY_int = yStart_int;
while (_local2 <= xEnd_int) {
if (!_local1.checkBallInLine(_local1.board_object[_local2][_local3])) {
if (_local1.currentBallIndex >= MINIMUM_BALLS_IN_LINE) {
break;
}
if ((nextX_int + MINIMUM_BALLS_IN_LINE) < GAMEBOARD_SIZE) {
nextX_int++;
nextY_int--;
_local2 = nextX_int;
_local3 = nextY_int;
_local1.currentBallIndex = 0;
_local1.ballTypeSetForLine_int = 0;
} else {
break;
}
} else {
_local2++;
_local3--;
}
}
if ((_local1.currentBallIndex >= MINIMUM_BALLS_IN_LINE) && ((_local1.lines_object[_local1.currentLineIndex].coloredType_int >= YELLOW_BALL) && (_local1.lines_object[_local1.currentLineIndex].coloredType_int <= WHITE_BALL))) {
isCancelledLine_bool = false;
if (isNewBalls_bool) {
if (!_local1.checkNewBallInLine(_local1.lines_object[_local1.currentLineIndex], ball_object)) {
_local1.lines_object[_local1.currentLineIndex] = new LineObject();
isCancelledLine_bool = true;
}
}
if (!isCancelledLine_bool) {
_local1.board_object[ball_object.xPos_int][ball_object.yPos_int].isInLine_bool = true;
_local1.lines_object[_local1.currentLineIndex].ballClipName = ball_object.clip_mc._name;
_local1.lines_object[_local1.currentLineIndex].lineSize_int = _local1.currentBallIndex;
_local1.lines_object[_local1.currentLineIndex].type_int = BOTTOMLEFT_DIAGONAL_LINE;
_local1.lines_object.push(new LineObject());
_local1.currentLineIndex++;
}
}
}
return(_local1.currentLineIndex > 0);
};
GameObject.prototype.checkBallInLine = function (ball_object) {
var _local1 = this;
var _local2;
var _local3 = false;
if ((ball_object != undefined) && (ball_object != null)) {
_local2 = ball_object.type_int;
if (_local2 == JOKER_BALL) {
_local3 = true;
} else if (_local2 == DYNAMITE_BALL) {
_local3 = true;
} else if (_local1.ballTypeSetForLine_int != 0) {
if (_local1.ballTypeSetForLine_int == _local2) {
_local3 = true;
} else if ((_local1.ballTypeSetForLine_int >= YELLOW_BALL) && (_local1.ballTypeSetForLine_int <= WHITE_BALL)) {
if ((_local2 == YELLOWGREEN_BALL) && ((_local1.ballTypeSetForLine_int == YELLOW_BALL) || (_local1.ballTypeSetForLine_int == GREEN_BALL))) {
_local3 = true;
} else if ((_local2 == BLUEWHITE_BALL) && ((_local1.ballTypeSetForLine_int == BLUE_BALL) || (_local1.ballTypeSetForLine_int == WHITE_BALL))) {
_local3 = true;
} else if ((_local2 == REDORANGE_BALL) && ((_local1.ballTypeSetForLine_int == RED_BALL) || (_local1.ballTypeSetForLine_int == ORANGE_BALL))) {
_local3 = true;
}
} else if ((_local1.ballTypeSetForLine_int >= BLUEWHITE_BALL) && (_local1.ballTypeSetForLine_int <= YELLOWGREEN_BALL)) {
if ((_local1.ballTypeSetForLine_int == YELLOWGREEN_BALL) && ((_local2 == YELLOW_BALL) || (_local2 == GREEN_BALL))) {
_local1.ballTypeSetForLine_int = _local2;
_local3 = true;
} else if ((_local1.ballTypeSetForLine_int == BLUEWHITE_BALL) && ((_local2 == BLUE_BALL) || (_local2 == WHITE_BALL))) {
_local1.ballTypeSetForLine_int = _local2;
_local3 = true;
} else if ((_local1.ballTypeSetForLine_int == REDORANGE_BALL) && ((_local2 == RED_BALL) || (_local2 == ORANGE_BALL))) {
_local1.ballTypeSetForLine_int = _local2;
_local3 = true;
}
}
} else {
_local1.ballTypeSetForLine_int = _local2;
_local3 = true;
}
}
if (_local3) {
_local1.lines_object[_local1.currentLineIndex].balls_object[_local1.currentBallIndex] = ball_object;
if (ball_object.type_int == DYNAMITE_BALL) {
_local1.lines_object[_local1.currentLineIndex].isDynamite_bool = true;
}
if ((ball_object.type_int >= YELLOW_BALL) && (ball_object.type_int <= WHITE_BALL)) {
_local1.lines_object[_local1.currentLineIndex].coloredType_int = ball_object.type_int;
}
_local1.currentBallIndex++;
if (_local1.currentBallIndex < GAMEBOARD_SIZE) {
_local1.lines_object[_local1.currentLineIndex].balls_object[_local1.currentBallIndex] = null;
}
return(true);
}
if ((_local1.currentBallIndex < MINIMUM_BALLS_IN_LINE) || (!((_local1.lines_object[_local1.currentLineIndex].coloredType_int >= YELLOW_BALL) && (_local1.lines_object[_local1.currentLineIndex].coloredType_int <= WHITE_BALL)))) {
_local1.lines_object[_local1.currentLineIndex].isDynamite_bool = false;
_local1.lines_object[_local1.currentLineIndex].coloredType_int = 0;
_local1.currentBallIndex = 0;
}
return(false);
};
GameObject.prototype.newBallsComplete = function (ballClip_string) {
var _local1 = this;
_local1.nextBallIndex_int--;
if (_local1.nextBallIndex_int == 0) {
_local1.comboCounter_int = 0;
var _local3 = false;
var _local2;
_local1.lines_object = new Array();
_local1.lines_object.push(new LineObject());
_local2 = 0;
while (_local2 < _local1.newBallsOnBoard_object.length) {
if (_local1.checkForLines(_local1.newBallsOnBoard_object[_local2], true)) {
_local3 = true;
}
_local2++;
}
if (_local3) {
_local1.removeBalls(null);
} else if (_local1.isGameOver()) {
rootMain.showGameOver();
} else {
_local1.isSelectable_bool = true;
}
_local1.setQueuedBall();
}
};
GameObject.prototype.isGameOver = function () {
if (this.getNumberOfEmptyBoardSpaces() <= 0) {
return(true);
}
return(false);
};
GameObject.prototype.setQueuedBall = function () {
var _local1 = this;
if (_local1.board_object[_local1.queuedSelectedBall_object.xPos_int][_local1.queuedSelectedBall_object.yPos_int] != null) {
_local1.select_object.setPosition(_local1.queuedSelectedBall_object.xPos_int, _local1.queuedSelectedBall_object.yPos_int, _local1.queuedSelectedBall_object);
_local1.setShortestPath(_local1.gameScreen_mc.gameBoard_mc._xmouse, _local1.gameScreen_mc.gameBoard_mc._ymouse, true);
} else {
_local1.queuedSelectedBall_object = null;
_local1.select_object.deselect();
}
};
GameObject.prototype.removeComplete = function () {
var _local1 = this;
_local1.removedBalls_int++;
if (_local1.removedBalls_int >= _local1.totalBallsToRemove_int) {
_local1.setQueuedBall();
_local1.isSelectable_bool = true;
}
};
GameObject.prototype.showTipAlert = function () {
var _local1 = this;
if (rootMain.isTipsEnabled_bool) {
_local1.tipShownCount = 0;
_local1.gameScreen_mc.tipAlert_mc.gotoAndPlay("show");
_local1.isTipAlertShown = true;
}
};
GameObject.prototype.checkToHideTipAlert = function () {
var _local1 = this;
if (rootMain.isTipsEnabled_bool) {
if (_local1.isTipAlertShown) {
_local1.tipShownCount++;
if (_local1.tipShownCount > 2) {
_local1.gameScreen_mc.tipAlert_mc.gotoAndStop("hide");
}
}
}
};
BallObject.prototype.setPath = function (points_int) {
var _local1;
var _local2;
var _local3;
var old_xPos_int = this.xPos_int;
var old_yPos_int = this.yPos_int;
this.clip_mc.path_int = new Array();
_local1 = 0;
while (_local1 < points_int.length) {
point = points_int[_local1];
_local2 = int((point - 1000) / 100);
_local3 = (point - (_local2 * 100)) - 1000;
this.clip_mc.path_int.push(new Array());
_local2--;
_local3--;
this.clip_mc.path_int[_local1][0] = _local2 - old_xPos_int;
this.clip_mc.path_int[_local1][1] = _local3 - old_yPos_int;
old_xPos_int = _local2;
old_yPos_int = _local3;
_local1++;
}
this.xPos_int = _local2;
this.yPos_int = _local3;
};
SelectObject.prototype.setPosition = function (xPos, yPos, ball) {
var _local1 = this;
_local1.isSelected_bool = true;
_local1.xPos_int = xPos;
_local1.yPos_int = yPos;
_local1.ball_object = ball;
_local1.clip_mc._x = (BALL_BOARD_START + (xPos * BALL_BOARD_SPACING)) - BALL_XOFFSET;
_local1.clip_mc._y = (BALL_BOARD_START + (yPos * BALL_BOARD_SPACING)) - BALL_YOFFSET;
_local1.clip_mc.gotoAndPlay("show");
};
SelectObject.prototype.deselect = function () {
var _local1 = this;
_local1.clip_mc.gotoAndStop("hide");
_local1.isSelected_bool = false;
_local1.xPos_int = -1;
_local1.yPos_int = -1;
};
rootMain.loadSettingsData();
Frame 4
rootMain.startFirstGame();
Symbol 6 MovieClip [Select] Frame 1
stop();
Symbol 6 MovieClip [Select] Frame 50
gotoAndPlay ("show");
Symbol 17 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 20 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(background_mc, "background");
Symbol 23 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(background_mc, "backgroundDisabled");
Symbol 25 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(background_mc, "backgroundDisabled");
Symbol 28 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(check_mc, "foregroundDisabled");
Symbol 31 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(check_mc, "check");
Symbol 32 MovieClip [fcb_states] Frame 1
stop();
Symbol 32 MovieClip [fcb_states] Frame 2
stop();
Symbol 32 MovieClip [fcb_states] Frame 3
stop();
Symbol 32 MovieClip [fcb_states] Frame 4
stop();
Symbol 32 MovieClip [fcb_states] Frame 5
stop();
Symbol 32 MovieClip [fcb_states] Frame 6
stop();
Symbol 35 MovieClip [FLabelSymbol] Frame 1
#initclip 2
_global.FLabelClass = function () {
var _local1 = this;
if (_local1.hostComponent == undefined) {
_local1.hostComponent = ((_local1._parent.controller == undefined) ? (_local1._parent) : (_local1._parent.controller));
}
if (_local1.customTextStyle == undefined) {
if (_local1.hostComponent.textStyle == undefined) {
_local1.hostComponent.textStyle = new TextFormat();
}
_local1.textStyle = _local1.hostComponent.textStyle;
_local1.enable = true;
}
};
FLabelClass.prototype = new MovieClip();
Object.registerClass("FLabelSymbol", FLabelClass);
FLabelClass.prototype.setLabel = function (label) {
var _local1 = this;
var _local2 = _local1.hostComponent.styleTable.embedFonts.value;
if (_local2 != undefined) {
_local1.labelField.embedFonts = _local2;
}
_local1.labelField.setNewTextFormat(_local1.textStyle);
_local1.labelField.text = label;
_local1.labelField._height = _local1.labelField.textHeight + 2;
};
FLabelClass.prototype.setSize = function (width) {
this.labelField._width = width;
};
FLabelClass.prototype.setEnabled = function (enable) {
var _local2 = this;
var _local3 = enable;
_local2.enable = _local3;
var _local1 = _local2.hostComponent.styleTable[(_local3 ? "textColor" : "textDisabled")].value;
if (_local1 == undefined) {
_local1 = (_local3 ? 0 : 8947848);
}
_local2.setColor(_local1);
};
FLabelClass.prototype.getLabel = function () {
return(this.labelField.text);
};
FLabelClass.prototype.setColor = function (col) {
this.labelField.textColor = col;
};
#endinitclip
Symbol 36 MovieClip [FUIComponentSymbol] Frame 1
#initclip 1
function FUIComponentClass() {
this.init();
}
FUIComponentClass.prototype = new MovieClip();
FUIComponentClass.prototype.init = function () {
var _local1 = this;
var _local3 = _global;
_local1.enable = true;
_local1.focused = false;
_local1.useHandCursor = false;
_local1._accImpl = new Object();
_local1._accImpl.stub = true;
_local1.styleTable = new Array();
if (_local3.globalStyleFormat == undefined) {
_local3.globalStyleFormat = new FStyleFormat();
globalStyleFormat.isGlobal = true;
_local3._focusControl = new Object();
_local3._focusControl.onSetFocus = function (oldFocus, newFocus) {
oldFocus.myOnKillFocus();
newFocus.myOnSetFocus();
};
Selection.addListener(_local3._focusControl);
}
if (_local1._name != undefined) {
_local1._focusrect = false;
_local1.tabEnabled = true;
_local1.focusEnabled = true;
_local1.tabChildren = false;
_local1.tabFocused = true;
if (_local1.hostStyle == undefined) {
globalStyleFormat.addListener(_local1);
} else {
_local1.styleTable = _local1.hostStyle;
}
_local1.deadPreview._visible = false;
_local1.deadPreview._width = (_local1.deadPreview._height = 1);
_local1.methodTable = new Object();
_local1.keyListener = new Object();
_local1.keyListener.controller = _local1;
_local1.keyListener.onKeyDown = function () {
this.controller.myOnKeyDown();
};
_local1.keyListener.onKeyUp = function () {
this.controller.myOnKeyUp();
};
for (var _local2 in _local1.styleFormat_prm) {
_local1.setStyleProperty(_local2, _local1.styleFormat_prm[_local2]);
}
}
};
FUIComponentClass.prototype.setEnabled = function (enabledFlag) {
var _local1 = this;
_local1.enable = ((arguments.length > 0) ? (enabledFlag) : true);
_local1.tabEnabled = (_local1.focusEnabled = enabledFlag);
if ((!_local1.enable) && (_local1.focused)) {
Selection.setFocus(undefined);
}
};
FUIComponentClass.prototype.getEnabled = function () {
return(this.enable);
};
FUIComponentClass.prototype.setSize = function (w, h) {
var _local1 = this;
_local1.width = w;
_local1.height = h;
_local1.focusRect.removeMovieClip();
};
FUIComponentClass.prototype.setChangeHandler = function (chng, obj) {
var _local1 = this;
_local1.handlerObj = ((obj == undefined) ? (_local1._parent) : (obj));
_local1.changeHandler = chng;
};
FUIComponentClass.prototype.invalidate = function (methodName) {
var _local1 = this;
_local1.methodTable[methodName] = true;
_local1.onEnterFrame = _local1.cleanUI;
};
FUIComponentClass.prototype.cleanUI = function () {
var _local1 = this;
if (_local1.methodTable.setSize) {
_local1.setSize(_local1.width, _local1.height);
} else {
_local1.cleanUINotSize();
}
_local1.methodTable = new Object();
delete _local1.onEnterFrame;
};
FUIComponentClass.prototype.cleanUINotSize = function () {
var _local1 = this;
for (var _local2 in _local1.methodTable) {
_local1[_local2]();
}
};
FUIComponentClass.prototype.drawRect = function (x, y, w, h) {
var _local1 = this;
var _local2 = y;
var _local3 = x;
var inner = _local1.styleTable.focusRectInner.value;
var outer = _local1.styleTable.focusRectOuter.value;
if (inner == undefined) {
inner = 16777215 /* 0xFFFFFF */;
}
if (outer == undefined) {
outer = 0;
}
_local1.createEmptyMovieClip("focusRect", 1000);
_local1.focusRect.controller = _local1;
_local1.focusRect.lineStyle(1, outer);
_local1.focusRect.moveTo(_local3, _local2);
_local1.focusRect.lineTo(_local3 + w, _local2);
_local1.focusRect.lineTo(_local3 + w, _local2 + h);
_local1.focusRect.lineTo(_local3, _local2 + h);
_local1.focusRect.lineTo(_local3, _local2);
_local1.focusRect.lineStyle(1, inner);
_local1.focusRect.moveTo(_local3 + 1, _local2 + 1);
_local1.focusRect.lineTo((_local3 + w) - 1, _local2 + 1);
_local1.focusRect.lineTo((_local3 + w) - 1, (_local2 + h) - 1);
_local1.focusRect.lineTo(_local3 + 1, (_local2 + h) - 1);
_local1.focusRect.lineTo(_local3 + 1, _local2 + 1);
};
FUIComponentClass.prototype.pressFocus = function () {
var _local1 = this;
_local1.tabFocused = false;
_local1.focusRect.removeMovieClip();
Selection.setFocus(_local1);
};
FUIComponentClass.prototype.drawFocusRect = function () {
var _local1 = this;
_local1.drawRect(-2, -2, _local1.width + 4, _local1.height + 4);
};
FUIComponentClass.prototype.myOnSetFocus = function () {
var _local1 = this;
_local1.focused = true;
Key.addListener(_local1.keyListener);
if (_local1.tabFocused) {
_local1.drawFocusRect();
}
};
FUIComponentClass.prototype.myOnKillFocus = function () {
var _local1 = this;
_local1.tabFocused = true;
_local1.focused = false;
_local1.focusRect.removeMovieClip();
Key.removeListener(_local1.keyListener);
};
FUIComponentClass.prototype.executeCallBack = function () {
var _local1 = this;
_local1.handlerObj[_local1.changeHandler](_local1);
};
FUIComponentClass.prototype.updateStyleProperty = function (styleFormat, propName) {
this.setStyleProperty(propName, styleFormat[propName], styleFormat.isGlobal);
};
FUIComponentClass.prototype.setStyleProperty = function (propName, value, isGlobal) {
var _local1 = this;
var _local2 = propName;
if (value == "") {
} else {
var tmpValue = parseInt(value);
if (!isNaN(tmpValue)) {
value = tmpValue;
}
var global = ((arguments.length > 2) ? (isGlobal) : false);
if (_local1.styleTable[_local2] == undefined) {
_local1.styleTable[_local2] = new Object();
_local1.styleTable[_local2].useGlobal = true;
}
if (_local1.styleTable[_local2].useGlobal || (!global)) {
_local1.styleTable[_local2].value = value;
if (_local1.setCustomStyleProperty(_local2, value)) {
} else if (_local2 == "embedFonts") {
_local1.invalidate("setSize");
} else if (_local2.subString(0, 4) == "text") {
if (_local1.textStyle == undefined) {
_local1.textStyle = new TextFormat();
}
var textProp = _local2.subString(4, _local2.length);
_local1.textStyle[textProp] = value;
_local1.invalidate("setSize");
} else {
for (var j in _local1.styleTable[_local2].coloredMCs) {
var _local3 = new Color(_local1.styleTable[_local2].coloredMCs[j]);
if (_local1.styleTable[_local2].value == undefined) {
var myTObj = {ra:"100", rb:"0", ga:"100", gb:"0", ba:"100", bb:"0", aa:"100", ab:"0"};
_local3.setTransform(myTObj);
} else {
_local3.setRGB(value);
}
}
}
_local1.styleTable[_local2].useGlobal = global;
}
}
};
FUIComponentClass.prototype.registerSkinElement = function (skinMCRef, propName) {
var _local1 = this;
var _local2 = propName;
if (_local1.styleTable[_local2] == undefined) {
_local1.styleTable[_local2] = new Object();
_local1.styleTable[_local2].useGlobal = true;
}
if (_local1.styleTable[_local2].coloredMCs == undefined) {
_local1.styleTable[_local2].coloredMCs = new Object();
}
_local1.styleTable[_local2].coloredMCs[skinMCRef] = skinMCRef;
if (_local1.styleTable[_local2].value != undefined) {
var _local3 = new Color(skinMCRef);
_local3.setRGB(_local1.styleTable[_local2].value);
}
};
_global.FStyleFormat = function () {
var _local1 = arguments;
var _local2 = this;
_local2.nonStyles = {listeners:true, isGlobal:true, isAStyle:true, addListener:true, removeListener:true, nonStyles:true, applyChanges:true};
_local2.listeners = new Object();
_local2.isGlobal = false;
if (_local1.length > 0) {
for (var _local3 in _local1[0]) {
_local2[_local3] = _local1[0][_local3];
}
}
};
_global.FStyleFormat.prototype = new Object();
FStyleFormat.prototype.addListener = function () {
var _local1 = this;
var _local2 = 0;
while (_local2 < arguments.length) {
var _local3 = arguments[_local2];
_local1.listeners[arguments[_local2]] = _local3;
for (var i in _local1) {
if (_local1.isAStyle(i)) {
_local3.updateStyleProperty(_local1, i.toString());
}
}
_local2++;
}
};
FStyleFormat.prototype.removeListener = function (component) {
var _local1 = this;
var _local2 = component;
_local1.listeners[_local2] = undefined;
for (var prop in _local1) {
if (_local1.isAStyle(prop)) {
if (_local2.styleTable[prop].useGlobal == _local1.isGlobal) {
_local2.styleTable[prop].useGlobal = true;
var _local3 = (_local1.isGlobal ? undefined : (globalStyleFormat[prop]));
_local2.setStyleProperty(prop, _local3, true);
}
}
}
};
FStyleFormat.prototype.applyChanges = function () {
var _local1 = this;
var _local2 = arguments;
var count = 0;
for (var i in _local1.listeners) {
var _local3 = _local1.listeners[i];
if (_local2.length > 0) {
var j = 0;
while (j < _local2.length) {
if (_local1.isAStyle(_local2[j])) {
_local3.updateStyleProperty(_local1, _local2[j]);
}
j++;
}
} else {
for (var j in _local1) {
if (_local1.isAStyle(j)) {
_local3.updateStyleProperty(_local1, j.toString());
}
}
}
}
};
FStyleFormat.prototype.isAStyle = function (name) {
return((this.nonStyles[name] ? false : true));
};
#endinitclip
Symbol 40 MovieClip [Select_new] Frame 1
stop();
Symbol 40 MovieClip [Select_new] Frame 80
gotoAndPlay ("show");
Symbol 45 MovieClip [ScoreAlert] Frame 45
removeMovieClip(this);
Symbol 48 MovieClip [FBoundingBoxSymbol] Frame 1
var component = _parent;
component.registerSkinElement(boundingBox, "background");
stop();
Symbol 48 MovieClip [FBoundingBoxSymbol] Frame 2
component.registerSkinElement(boundingBox2, "backgroundDisabled");
stop();
Symbol 51 MovieClip [FCheckBoxSymbol] Frame 1
#initclip 3
function FCheckBoxClass() {
this.init();
}
FCheckBoxClass.prototype = new FUIComponentClass();
Object.registerClass("FCheckBoxSymbol", FCheckBoxClass);
FCheckBoxClass.prototype.init = function () {
var _local1 = this;
super.setSize(_local1._width, _local1._height);
_local1.boundingBox_mc.unloadMovie();
_local1.attachMovie("fcb_hitArea", "fcb_hitArea_mc", 1);
_local1.attachMovie("fcb_states", "fcb_states_mc", 2);
_local1.attachMovie("FLabelSymbol", "fLabel_mc", 3);
super.init();
_local1.setChangeHandler(_local1.changeHandler);
_local1._xscale = 100;
_local1._yscale = 100;
_local1.setSize(_local1.width, _local1.height);
if (_local1.initialValue == undefined) {
_local1.setCheckState(false);
} else {
_local1.setCheckState(_local1.initialValue);
}
if (_local1.label != undefined) {
_local1.setLabel(_local1.label);
}
_local1.ROLE_SYSTEM_CHECKBUTTON = 44;
_local1.STATE_SYSTEM_CHECKED = 16;
_local1.EVENT_OBJECT_STATECHANGE = 32778;
_local1.EVENT_OBJECT_NAMECHANGE = 32780;
_local1._accImpl.master = _local1;
_local1._accImpl.stub = false;
_local1._accImpl.get_accRole = _local1.get_accRole;
_local1._accImpl.get_accName = _local1.get_accName;
_local1._accImpl.get_accState = _local1.get_accState;
_local1._accImpl.get_accDefaultAction = _local1.get_accDefaultAction;
_local1._accImpl.accDoDefaultAction = _local1.accDoDefaultAction;
};
FCheckBoxClass.prototype.setLabelPlacement = function (pos) {
var _local1 = this;
var _local3 = pos;
_local1.setLabel(_local1.getLabel());
_local1.txtFormat(_local3);
var halfLabelH = (_local1.fLabel_mc._height / 2);
var halfFrameH = (_local1.fcb_states_mc._height / 2);
var vertCenter = (halfFrameH - halfLabelH);
var checkWidth = _local1.fcb_states_mc._width;
var frame = _local1.fcb_states_mc;
var label = _local1.fLabel_mc;
var _local2 = 0;
if (frame._width > _local1.width) {
_local2 = 0;
} else {
_local2 = _local1.width - frame._width;
}
_local1.fLabel_mc.setSize(_local2);
if ((_local3 == "right") || (_local3 == undefined)) {
_local1.labelPlacement = "right";
_local1.fcb_states_mc._x = 0;
_local1.fLabel_mc._x = checkWidth;
_local1.txtFormat("left");
} else if (_local3 == "left") {
_local1.labelPlacement = "left";
_local1.fLabel_mc._x = 0;
_local1.fcb_states_mc._x = _local1.width - checkWidth;
_local1.txtFormat("right");
}
_local1.fLabel_mc._y = vertCenter;
_local1.fcb_hitArea_mc._y = vertCenter;
};
FCheckBoxClass.prototype.txtFormat = function (pos) {
var _local1 = this;
var _local2 = _local1.textStyle;
var _local3 = _local1.styleTable;
_local2.align = ((_local3.textAlign.value == undefined) ? ((_local2.align = pos)) : undefined);
_local2.leftMargin = ((_local3.textLeftMargin.value == undefined) ? ((_local2.leftMargin = 0)) : undefined);
_local2.rightMargin = ((_local3.textRightMargin.value == undefined) ? ((_local2.rightMargin = 0)) : undefined);
if (_local1.flabel_mc._height > _local1.height) {
super.setSize(_local1.width, _local1.flabel_mc._height);
} else {
super.setSize(_local1.width, _local1.height);
}
_local1.fLabel_mc.labelField.setTextFormat(_local1.textStyle);
_local1.setEnabled(_local1.enable);
};
FCheckBoxClass.prototype.setHitArea = function (w, h) {
var _local2 = this;
var _local1 = _local2.fcb_hitArea_mc;
_local2.hitArea = _local1;
if (_local2.fcb_states_mc._width > w) {
_local1._width = _local2.fcb_states_mc._width;
} else {
_local1._width = w;
}
_local1._visible = false;
if (arguments.length > 1) {
_local1._height = h;
}
};
FCheckBoxClass.prototype.setSize = function (w) {
var _local1 = this;
_local1.setLabel(_local1.getLabel());
_local1.setLabelPlacement(_local1.labelPlacement);
if (_local1.fcb_states_mc._height < _local1.flabel_mc.labelField._height) {
super.setSize(w, _local1.flabel_mc.labelField._height);
}
_local1.setHitArea(_local1.width, _local1.height);
_local1.setLabelPlacement(_local1.labelPlacement);
};
FCheckBoxClass.prototype.drawFocusRect = function () {
var _local1 = this;
_local1.drawRect(-2, -2, _local1._width + 6, _local1._height - 1);
};
FCheckBoxClass.prototype.onPress = function () {
var _local2 = this;
_local2.pressFocus();
_root.focusRect.removeMovieClip();
var _local1 = _local2.fcb_states_mc;
if (_local2.getValue()) {
_local1.gotoAndStop("checkedPress");
} else {
_local1.gotoAndStop("press");
}
};
FCheckBoxClass.prototype.onRelease = function () {
var _local1 = this;
_local1.fcb_states_mc.gotoAndStop("up");
_local1.setValue(!_local1.checked);
};
FCheckBoxClass.prototype.onReleaseOutside = function () {
var _local1 = this.fcb_states_mc;
if (this.getValue()) {
_local1.gotoAndStop("checkedEnabled");
} else {
_local1.gotoAndStop("up");
}
};
FCheckBoxClass.prototype.onDragOut = function () {
var _local1 = this.fcb_states_mc;
if (this.getValue()) {
_local1.gotoAndStop("checkedEnabled");
} else {
_local1.gotoAndStop("up");
}
};
FCheckBoxClass.prototype.onDragOver = function () {
var _local1 = this.fcb_states_mc;
if (this.getValue()) {
_local1.gotoAndStop("checkedPress");
} else {
_local1.gotoAndStop("press");
}
};
FCheckBoxClass.prototype.setValue = function (checkedValue) {
var _local1 = this;
var _local2 = checkedValue;
if (_local2 || (_local2 == undefined)) {
_local1.setCheckState(_local2);
} else if (_local2 == false) {
_local1.setCheckState(_local2);
}
_local1.executeCallBack();
if (Accessibility.isActive()) {
Accessibility.sendEvent(_local1, 0, _local1.EVENT_OBJECT_STATECHANGE, true);
}
};
FCheckBoxClass.prototype.setCheckState = function (checkedValue) {
var _local1 = this;
var _local3 = checkedValue;
var _local2 = _local1.fcb_states_mc;
if (_local1.enable) {
_local1.flabel_mc.setEnabled(true);
if (_local3 || (_local3 == undefined)) {
_local2.gotoAndStop("checkedEnabled");
_local1.enabled = true;
_local1.checked = true;
} else {
_local2.gotoAndStop("up");
_local1.enabled = true;
_local1.checked = false;
}
} else {
_local1.flabel_mc.setEnabled(false);
if (_local3 || (_local3 == undefined)) {
_local2.gotoAndStop("checkedDisabled");
_local1.enabled = false;
_local1.checked = true;
} else {
_local2.gotoAndStop("uncheckedDisabled");
_local1.enabled = false;
_local1.checked = false;
_local1.focusRect.removeMovieClip();
}
}
};
FCheckBoxClass.prototype.getValue = function () {
return(this.checked);
};
FCheckBoxClass.prototype.setEnabled = function (enable) {
var _local1 = this;
if ((enable == true) || (enable == undefined)) {
_local1.enable = true;
Super.setEnabled(true);
} else {
_local1.enable = false;
Super.setEnabled(false);
}
_local1.setCheckState(_local1.checked);
};
FCheckBoxClass.prototype.getEnabled = function () {
return(this.enable);
};
FCheckBoxClass.prototype.setLabel = function (label) {
var _local1 = this;
_local1.fLabel_mc.setLabel(label);
_local1.txtFormat();
if (Accessibility.isActive()) {
Accessibility.sendEvent(_local1, 0, _local1.EVENT_OBJECT_NAMECHANGE);
}
};
FCheckBoxClass.prototype.getLabel = function () {
return(this.fLabel_mc.labelField.text);
};
FCheckBoxClass.prototype.setTextColor = function (color) {
this.fLabel_mc.labelField.textColor = color;
};
FCheckBoxClass.prototype.myOnKeyDown = function () {
var _local1 = this;
if (((Key.getCode() == 32) && (_local1.pressOnce == undefined)) && (_local1.enabled == true)) {
_local1.setValue(!_local1.getValue());
_local1.pressOnce = true;
}
};
FCheckBoxClass.prototype.myOnKeyUp = function () {
if (Key.getCode() == 32) {
this.pressOnce = undefined;
}
};
FCheckBoxClass.prototype.get_accRole = function (childId) {
return(this.master.ROLE_SYSTEM_CHECKBUTTON);
};
FCheckBoxClass.prototype.get_accName = function (childId) {
return(this.master.getLabel());
};
FCheckBoxClass.prototype.get_accState = function (childId) {
if (this.master.getValue()) {
return(this.master.STATE_SYSTEM_CHECKED);
}
return(0);
};
FCheckBoxClass.prototype.get_accDefaultAction = function (childId) {
if (this.master.getValue()) {
return("UnCheck");
}
return("Check");
};
FCheckBoxClass.prototype.accDoDefaultAction = function (childId) {
this.master.setValue(!this.master.getValue());
};
#endinitclip
boundingBox_mc._visible = false;
deadPreview._visible = false;
Symbol 62 MovieClip Frame 1
stop();
Symbol 78 MovieClip Frame 1
preloader_mc.onEnterFrame = function () {
var _local1 = _root;
if (_local1._framesloaded >= _local1._totalframes) {
_local1.gotoAndStop("initgame");
} else {
this._xscale = math.round((_local1.getBytesLoaded() / _local1.getBytesTotal()) * 100);
}
};
Symbol 84 MovieClip Frame 1
stop();
Symbol 89 MovieClip [Square] Frame 1
stop();
Symbol 96 MovieClip [Ball1] Frame 1
stop();
Symbol 96 MovieClip [Ball1] Frame 4
var pathIndex = 0;
var xDirection_int;
var yDirection_int;
var movedPixels_int = 0;
Symbol 96 MovieClip [Ball1] Frame 5
xDirection_int = this.path_int[pathIndex][0];
yDirection_int = this.path_int[pathIndex][1];
if (xDirection_int > 0) {
this._x = this._x + MOVE_SPEED;
} else if (xDirection_int < 0) {
this._x = this._x - MOVE_SPEED;
} else if (yDirection_int > 0) {
this._y = this._y + MOVE_SPEED;
} else if (yDirection_int < 0) {
this._y = this._y - MOVE_SPEED;
}
movedPixels_int = movedPixels_int + MOVE_SPEED;
Symbol 96 MovieClip [Ball1] Frame 6
if (movedPixels_int >= BALL_BOARD_SPACING) {
movedPixels_int = 0;
pathIndex++;
}
if (pathIndex > this.path_int.length) {
gotoAndStop ("static");
rootMain.game_object.moveComplete(this._name);
} else {
gotoAndPlay ("move");
}
Symbol 96 MovieClip [Ball1] Frame 10
play();
Symbol 96 MovieClip [Ball1] Frame 26
stop();
rootMain.game_object.newBallsComplete(this._name);
Symbol 96 MovieClip [Ball1] Frame 43
stop();
removeMovieClip(this);
rootMain.game_object.removeComplete();
Symbol 103 MovieClip [Ball2] Frame 1
stop();
Symbol 103 MovieClip [Ball2] Frame 4
var pathIndex = 0;
var xDirection_int;
var yDirection_int;
var movedPixels_int = 0;
Symbol 103 MovieClip [Ball2] Frame 5
xDirection_int = this.path_int[pathIndex][0];
yDirection_int = this.path_int[pathIndex][1];
if (xDirection_int > 0) {
this._x = this._x + MOVE_SPEED;
} else if (xDirection_int < 0) {
this._x = this._x - MOVE_SPEED;
} else if (yDirection_int > 0) {
this._y = this._y + MOVE_SPEED;
} else if (yDirection_int < 0) {
this._y = this._y - MOVE_SPEED;
}
movedPixels_int = movedPixels_int + MOVE_SPEED;
Symbol 103 MovieClip [Ball2] Frame 6
if (movedPixels_int >= BALL_BOARD_SPACING) {
movedPixels_int = 0;
pathIndex++;
}
if (pathIndex > this.path_int.length) {
gotoAndStop ("static");
rootMain.game_object.moveComplete(this._name);
} else {
gotoAndPlay ("move");
}
Symbol 103 MovieClip [Ball2] Frame 10
play();
Symbol 103 MovieClip [Ball2] Frame 26
stop();
rootMain.game_object.newBallsComplete(this._name);
Symbol 103 MovieClip [Ball2] Frame 43
stop();
removeMovieClip(this);
rootMain.game_object.removeComplete();
Symbol 110 MovieClip [Ball3] Frame 1
stop();
Symbol 110 MovieClip [Ball3] Frame 4
var pathIndex = 0;
var xDirection_int;
var yDirection_int;
var movedPixels_int = 0;
Symbol 110 MovieClip [Ball3] Frame 5
xDirection_int = this.path_int[pathIndex][0];
yDirection_int = this.path_int[pathIndex][1];
if (xDirection_int > 0) {
this._x = this._x + MOVE_SPEED;
} else if (xDirection_int < 0) {
this._x = this._x - MOVE_SPEED;
} else if (yDirection_int > 0) {
this._y = this._y + MOVE_SPEED;
} else if (yDirection_int < 0) {
this._y = this._y - MOVE_SPEED;
}
movedPixels_int = movedPixels_int + MOVE_SPEED;
Symbol 110 MovieClip [Ball3] Frame 6
if (movedPixels_int >= BALL_BOARD_SPACING) {
movedPixels_int = 0;
pathIndex++;
}
if (pathIndex > this.path_int.length) {
gotoAndStop ("static");
rootMain.game_object.moveComplete(this._name);
} else {
gotoAndPlay ("move");
}
Symbol 110 MovieClip [Ball3] Frame 10
play();
Symbol 110 MovieClip [Ball3] Frame 26
stop();
rootMain.game_object.newBallsComplete(this._name);
Symbol 110 MovieClip [Ball3] Frame 43
stop();
removeMovieClip(this);
rootMain.game_object.removeComplete();
Symbol 117 MovieClip [Ball4] Frame 1
stop();
Symbol 117 MovieClip [Ball4] Frame 4
var pathIndex = 0;
var xDirection_int;
var yDirection_int;
var movedPixels_int = 0;
Symbol 117 MovieClip [Ball4] Frame 5
xDirection_int = this.path_int[pathIndex][0];
yDirection_int = this.path_int[pathIndex][1];
if (xDirection_int > 0) {
this._x = this._x + MOVE_SPEED;
} else if (xDirection_int < 0) {
this._x = this._x - MOVE_SPEED;
} else if (yDirection_int > 0) {
this._y = this._y + MOVE_SPEED;
} else if (yDirection_int < 0) {
this._y = this._y - MOVE_SPEED;
}
movedPixels_int = movedPixels_int + MOVE_SPEED;
Symbol 117 MovieClip [Ball4] Frame 6
if (movedPixels_int >= BALL_BOARD_SPACING) {
movedPixels_int = 0;
pathIndex++;
}
if (pathIndex > this.path_int.length) {
gotoAndStop ("static");
rootMain.game_object.moveComplete(this._name);
} else {
gotoAndPlay ("move");
}
Symbol 117 MovieClip [Ball4] Frame 10
play();
Symbol 117 MovieClip [Ball4] Frame 26
stop();
rootMain.game_object.newBallsComplete(this._name);
Symbol 117 MovieClip [Ball4] Frame 43
stop();
removeMovieClip(this);
rootMain.game_object.removeComplete();
Symbol 124 MovieClip [Ball5] Frame 1
stop();
Symbol 124 MovieClip [Ball5] Frame 4
var pathIndex = 0;
var xDirection_int;
var yDirection_int;
var movedPixels_int = 0;
Symbol 124 MovieClip [Ball5] Frame 5
xDirection_int = this.path_int[pathIndex][0];
yDirection_int = this.path_int[pathIndex][1];
if (xDirection_int > 0) {
this._x = this._x + MOVE_SPEED;
} else if (xDirection_int < 0) {
this._x = this._x - MOVE_SPEED;
} else if (yDirection_int > 0) {
this._y = this._y + MOVE_SPEED;
} else if (yDirection_int < 0) {
this._y = this._y - MOVE_SPEED;
}
movedPixels_int = movedPixels_int + MOVE_SPEED;
Symbol 124 MovieClip [Ball5] Frame 6
if (movedPixels_int >= BALL_BOARD_SPACING) {
movedPixels_int = 0;
pathIndex++;
}
if (pathIndex > this.path_int.length) {
gotoAndStop ("static");
rootMain.game_object.moveComplete(this._name);
} else {
gotoAndPlay ("move");
}
Symbol 124 MovieClip [Ball5] Frame 10
play();
Symbol 124 MovieClip [Ball5] Frame 26
stop();
rootMain.game_object.newBallsComplete(this._name);
Symbol 124 MovieClip [Ball5] Frame 43
stop();
removeMovieClip(this);
rootMain.game_object.removeComplete();
Symbol 131 MovieClip [Ball6] Frame 1
stop();
Symbol 131 MovieClip [Ball6] Frame 4
var pathIndex = 0;
var xDirection_int;
var yDirection_int;
var movedPixels_int = 0;
Symbol 131 MovieClip [Ball6] Frame 5
xDirection_int = this.path_int[pathIndex][0];
yDirection_int = this.path_int[pathIndex][1];
if (xDirection_int > 0) {
this._x = this._x + MOVE_SPEED;
} else if (xDirection_int < 0) {
this._x = this._x - MOVE_SPEED;
} else if (yDirection_int > 0) {
this._y = this._y + MOVE_SPEED;
} else if (yDirection_int < 0) {
this._y = this._y - MOVE_SPEED;
}
movedPixels_int = movedPixels_int + MOVE_SPEED;
Symbol 131 MovieClip [Ball6] Frame 6
if (movedPixels_int >= BALL_BOARD_SPACING) {
movedPixels_int = 0;
pathIndex++;
}
if (pathIndex > this.path_int.length) {
gotoAndStop ("static");
rootMain.game_object.moveComplete(this._name);
} else {
gotoAndPlay ("move");
}
Symbol 131 MovieClip [Ball6] Frame 10
play();
Symbol 131 MovieClip [Ball6] Frame 26
stop();
rootMain.game_object.newBallsComplete(this._name);
Symbol 131 MovieClip [Ball6] Frame 43
stop();
removeMovieClip(this);
rootMain.game_object.removeComplete();
Symbol 138 MovieClip [Ball7] Frame 1
stop();
Symbol 138 MovieClip [Ball7] Frame 4
var pathIndex = 0;
var xDirection_int;
var yDirection_int;
var movedPixels_int = 0;
Symbol 138 MovieClip [Ball7] Frame 5
xDirection_int = this.path_int[pathIndex][0];
yDirection_int = this.path_int[pathIndex][1];
if (xDirection_int > 0) {
this._x = this._x + MOVE_SPEED;
} else if (xDirection_int < 0) {
this._x = this._x - MOVE_SPEED;
} else if (yDirection_int > 0) {
this._y = this._y + MOVE_SPEED;
} else if (yDirection_int < 0) {
this._y = this._y - MOVE_SPEED;
}
movedPixels_int = movedPixels_int + MOVE_SPEED;
Symbol 138 MovieClip [Ball7] Frame 6
if (movedPixels_int >= BALL_BOARD_SPACING) {
movedPixels_int = 0;
pathIndex++;
}
if (pathIndex > this.path_int.length) {
gotoAndStop ("static");
rootMain.game_object.moveComplete(this._name);
} else {
gotoAndPlay ("move");
}
Symbol 138 MovieClip [Ball7] Frame 10
play();
Symbol 138 MovieClip [Ball7] Frame 26
stop();
rootMain.game_object.newBallsComplete(this._name);
Symbol 138 MovieClip [Ball7] Frame 43
stop();
removeMovieClip(this);
rootMain.game_object.removeComplete();
Symbol 142 MovieClip [Ball8] Frame 1
stop();
Symbol 142 MovieClip [Ball8] Frame 4
var pathIndex = 0;
var xDirection_int;
var yDirection_int;
var movedPixels_int = 0;
Symbol 142 MovieClip [Ball8] Frame 5
xDirection_int = this.path_int[pathIndex][0];
yDirection_int = this.path_int[pathIndex][1];
if (xDirection_int > 0) {
this._x = this._x + MOVE_SPEED;
} else if (xDirection_int < 0) {
this._x = this._x - MOVE_SPEED;
} else if (yDirection_int > 0) {
this._y = this._y + MOVE_SPEED;
} else if (yDirection_int < 0) {
this._y = this._y - MOVE_SPEED;
}
movedPixels_int = movedPixels_int + MOVE_SPEED;
Symbol 142 MovieClip [Ball8] Frame 6
if (movedPixels_int >= BALL_BOARD_SPACING) {
movedPixels_int = 0;
pathIndex++;
}
if (pathIndex > this.path_int.length) {
gotoAndStop ("static");
rootMain.game_object.moveComplete(this._name);
} else {
gotoAndPlay ("move");
}
Symbol 142 MovieClip [Ball8] Frame 10
play();
Symbol 142 MovieClip [Ball8] Frame 26
stop();
rootMain.game_object.newBallsComplete(this._name);
Symbol 142 MovieClip [Ball8] Frame 43
stop();
removeMovieClip(this);
rootMain.game_object.removeComplete();
Symbol 149 MovieClip [Ball9] Frame 1
stop();
Symbol 149 MovieClip [Ball9] Frame 4
var pathIndex = 0;
var xDirection_int;
var yDirection_int;
var movedPixels_int = 0;
Symbol 149 MovieClip [Ball9] Frame 5
xDirection_int = this.path_int[pathIndex][0];
yDirection_int = this.path_int[pathIndex][1];
if (xDirection_int > 0) {
this._x = this._x + MOVE_SPEED;
} else if (xDirection_int < 0) {
this._x = this._x - MOVE_SPEED;
} else if (yDirection_int > 0) {
this._y = this._y + MOVE_SPEED;
} else if (yDirection_int < 0) {
this._y = this._y - MOVE_SPEED;
}
movedPixels_int = movedPixels_int + MOVE_SPEED;
Symbol 149 MovieClip [Ball9] Frame 6
if (movedPixels_int >= BALL_BOARD_SPACING) {
movedPixels_int = 0;
pathIndex++;
}
if (pathIndex > this.path_int.length) {
gotoAndStop ("static");
rootMain.game_object.moveComplete(this._name);
} else {
gotoAndPlay ("move");
}
Symbol 149 MovieClip [Ball9] Frame 10
play();
Symbol 149 MovieClip [Ball9] Frame 26
stop();
rootMain.game_object.newBallsComplete(this._name);
Symbol 149 MovieClip [Ball9] Frame 43
stop();
removeMovieClip(this);
rootMain.game_object.removeComplete();
Symbol 153 MovieClip [Ball10] Frame 1
stop();
Symbol 153 MovieClip [Ball10] Frame 4
var pathIndex = 0;
var xDirection_int;
var yDirection_int;
var movedPixels_int = 0;
Symbol 153 MovieClip [Ball10] Frame 5
xDirection_int = this.path_int[pathIndex][0];
yDirection_int = this.path_int[pathIndex][1];
if (xDirection_int > 0) {
this._x = this._x + MOVE_SPEED;
} else if (xDirection_int < 0) {
this._x = this._x - MOVE_SPEED;
} else if (yDirection_int > 0) {
this._y = this._y + MOVE_SPEED;
} else if (yDirection_int < 0) {
this._y = this._y - MOVE_SPEED;
}
movedPixels_int = movedPixels_int + MOVE_SPEED;
Symbol 153 MovieClip [Ball10] Frame 6
if (movedPixels_int >= BALL_BOARD_SPACING) {
movedPixels_int = 0;
pathIndex++;
}
if (pathIndex > this.path_int.length) {
gotoAndStop ("static");
rootMain.game_object.moveComplete(this._name);
} else {
gotoAndPlay ("move");
}
Symbol 153 MovieClip [Ball10] Frame 10
play();
Symbol 153 MovieClip [Ball10] Frame 26
stop();
rootMain.game_object.newBallsComplete(this._name);
Symbol 153 MovieClip [Ball10] Frame 43
stop();
removeMovieClip(this);
rootMain.game_object.removeComplete();
Symbol 160 MovieClip [Ball11] Frame 1
stop();
Symbol 160 MovieClip [Ball11] Frame 4
var pathIndex = 0;
var xDirection_int;
var yDirection_int;
var movedPixels_int = 0;
Symbol 160 MovieClip [Ball11] Frame 5
xDirection_int = this.path_int[pathIndex][0];
yDirection_int = this.path_int[pathIndex][1];
if (xDirection_int > 0) {
this._x = this._x + MOVE_SPEED;
} else if (xDirection_int < 0) {
this._x = this._x - MOVE_SPEED;
} else if (yDirection_int > 0) {
this._y = this._y + MOVE_SPEED;
} else if (yDirection_int < 0) {
this._y = this._y - MOVE_SPEED;
}
movedPixels_int = movedPixels_int + MOVE_SPEED;
Symbol 160 MovieClip [Ball11] Frame 6
if (movedPixels_int >= BALL_BOARD_SPACING) {
movedPixels_int = 0;
pathIndex++;
}
if (pathIndex > this.path_int.length) {
gotoAndStop ("static");
rootMain.game_object.moveComplete(this._name);
} else {
gotoAndPlay ("move");
}
Symbol 160 MovieClip [Ball11] Frame 10
play();
Symbol 160 MovieClip [Ball11] Frame 26
stop();
rootMain.game_object.newBallsComplete(this._name);
Symbol 160 MovieClip [Ball11] Frame 43
stop();
removeMovieClip(this);
rootMain.game_object.removeComplete();
Symbol 163 MovieClip [Ball12] Frame 1
stop();
Symbol 163 MovieClip [Ball12] Frame 4
var pathIndex = 0;
var xDirection_int;
var yDirection_int;
var movedPixels_int = 0;
Symbol 163 MovieClip [Ball12] Frame 5
xDirection_int = this.path_int[pathIndex][0];
yDirection_int = this.path_int[pathIndex][1];
if (xDirection_int > 0) {
this._x = this._x + MOVE_SPEED;
} else if (xDirection_int < 0) {
this._x = this._x - MOVE_SPEED;
} else if (yDirection_int > 0) {
this._y = this._y + MOVE_SPEED;
} else if (yDirection_int < 0) {
this._y = this._y - MOVE_SPEED;
}
movedPixels_int = movedPixels_int + MOVE_SPEED;
Symbol 163 MovieClip [Ball12] Frame 6
if (movedPixels_int >= BALL_BOARD_SPACING) {
movedPixels_int = 0;
pathIndex++;
}
if (pathIndex > this.path_int.length) {
gotoAndStop ("static");
rootMain.game_object.moveComplete(this._name);
} else {
gotoAndPlay ("move");
}
Symbol 163 MovieClip [Ball12] Frame 10
play();
Symbol 163 MovieClip [Ball12] Frame 26
stop();
rootMain.game_object.newBallsComplete(this._name);
Symbol 163 MovieClip [Ball12] Frame 43
stop();
removeMovieClip(this);
rootMain.game_object.removeComplete();
Symbol 192 MovieClip [Explosion] Frame 16
removeMovieClip(this);
rootMain.game_object.removeComplete();
Symbol 195 MovieClip [ParticleAnimation] Frame 24
removeMovieClip(this);
Symbol 204 MovieClip Frame 1
stop();
if (rootMain.gameVersion_int == ALLES_MURMEL) {
gotoAndStop ("allesmurmel");
} else if (rootMain.gameVersion_int == MIND_YOUR_MARBLES) {
gotoAndStop ("mindyourmarbles");
}
Symbol 218 MovieClip Frame 1
stop();
nag1HeadingShown = rootMain.getText(3);
nag1Point1Shown = rootMain.getText(4);
nag1Point2Shown = rootMain.getText(6);
nag1Point3Shown = rootMain.getText(7);
nag1Point4Shown = rootMain.getText(8);
nag1Point5Shown = rootMain.getText(5);
nag1Point6Shown = rootMain.getText(9);
nag1Point7Shown = rootMain.getText(10);
nag1FooterShown = rootMain.getText(11);
nag1DownloadButtonShown = rootMain.getText(12);
nag1PlayButtonShown = rootMain.getText(13);
downloadPlay_btn.onRelease = function () {
rootMain.downloadFullVersion();
rootMain.gotoAndStop("startgame");
};
playWeb_btn.onRelease = function () {
rootMain.gotoAndStop("startgame");
};
Symbol 225 MovieClip Frame 1
stop();
Symbol 232 MovieClip Frame 1
stop();
if (rootMain.gameVersion_int == ALLES_MURMEL) {
gotoAndStop ("allesmurmel");
} else if (rootMain.gameVersion_int == MIND_YOUR_MARBLES) {
gotoAndStop ("mindyourmarbles");
}
Symbol 237 MovieClip Frame 1
stop();
if (rootMain.languageVersion_int == GERMAN) {
gotoAndStop ("german");
}
Symbol 242 MovieClip Frame 1
stop();
if (rootMain.languageVersion_int == GERMAN) {
gotoAndStop ("german");
}
Symbol 244 MovieClip Frame 1
newGameTextShown = rootMain.getText(50);
Symbol 249 MovieClip Frame 1
stop();
if (rootMain.sideAdType_int != 0) {
loadMovie (rootMain.getAdvertURL(), this);
}
Symbol 251 MovieClip Frame 1
function setScore(score_int) {
this.gameScoreShown = score_int;
}
Symbol 252 MovieClip Frame 1
stop();
onMouseDown = function () {
if (!rootMain.isPaused_bool) {
rootMain.game_object.setBoardSelectOrMove(_xmouse, _ymouse, false);
}
};
onMouseMove = function () {
if (!rootMain.isPaused_bool) {
rootMain.game_object.setShortestPath(_xmouse, _ymouse, false);
}
};
onMouseUp = function () {
if (!rootMain.isPaused_bool) {
rootMain.game_object.setBoardSelectOrMove(_xmouse, _ymouse, true);
}
};
Symbol 257 MovieClip Frame 1
stop();
Symbol 257 MovieClip Frame 2
highestScoringMoveShown = (((rootMain.getText(47) + " ") + rootMain.game_object.highestScoringMove_int) + " ") + rootMain.getText(49);
finalScoreShown = rootMain.searchReplace(rootMain.getText(48), "xxx", rootMain.game_object.gameScore_int);
Symbol 257 MovieClip Frame 75
gotoAndStop ("hide");
_parent.newGameAdvert_mc.gotoAndStop("show");
Symbol 272 MovieClip Frame 1
stop();
Symbol 272 MovieClip Frame 2
nag1HeadingShown = rootMain.getText(3);
nag1Point1Shown = rootMain.getText(4);
nag1Point2Shown = rootMain.getText(6);
nag1Point3Shown = rootMain.getText(7);
nag1Point4Shown = rootMain.getText(8);
nag1Point5Shown = rootMain.getText(5);
nag1Point6Shown = rootMain.getText(9);
nag1Point7Shown = rootMain.getText(10);
nag1FooterShown = rootMain.getText(11);
nag1DownloadButtonShown = rootMain.getText(12);
nag1PlayButtonShown = rootMain.getText(13);
play_btn.onRelease = function () {
rootMain.startNewGame();
gotoAndStop ("hide");
};
downloadplay_btn.onRelease = function () {
rootMain.downloadFullVersion();
rootMain.startNewGame();
gotoAndStop ("hide");
};
Symbol 275 MovieClip Frame 1
stop();
Symbol 275 MovieClip Frame 2
tip_btn.onRelease = function () {
if (!_root.isPaused_bool) {
stop();
_root.isPaused_bool = true;
rootMain.game_object.isTipAlertShown = false;
_parent.tipScreen_mc.gotoAndStop("tip_" + rootMain.game_object.currentTip_string);
}
};
Symbol 275 MovieClip Frame 80
stop();
Symbol 305 MovieClip Frame 1
this.onPress = function () {
pressing = true;
i = 1;
while (i <= 3) {
buttonColor = new Color(eval ("piece" + i).colorchip);
buttonColor.setRGB(3355443);
lowColor = new Color(eval ("piece" + i).bottomhilite);
lowColorTransform = new Object();
lowColorTransform = {ra:"0", rb:"200", ga:"0", gb:"200", ba:"0", bb:"200", aa:"100", ab:"0"};
lowColor.setTransform(lowColorTransform);
i++;
}
};
this.onRelease = function () {
var _local1 = _parent;
pressing = false;
if (type == "next") {
_local1.nextFrame();
} else if ((type == "start") || (type == "close")) {
_local1.resumeGame();
} else if (type == "back") {
_local1.prevFrame();
}
};
this.onReleaseOutside = function () {
pressing = false;
};
this.onEnterFrame = function () {
if (pressing != true) {
i = 1;
while (i <= 3) {
buttonColor = new Color(eval ("piece" + i).colorchip);
buttonColor.setRGB(rgb);
lowColor = new Color(eval ("piece" + i).bottomhilite);
lowColorTransform = new Object();
lowColorTransform = {ra:"0", rb:hc1, ga:"0", gb:hc2, ba:"0", bb:hc3, aa:"100", ab:"0"};
lowColor.setTransform(lowColorTransform);
i++;
}
}
};
with (piece2) {
_width = _parent.wide;
piece1._x = _x - (_width / 2);
piece3._x = _x + (_width / 2);
_parent.midshadow._width = _width;
_parent.leftshadow._x = _x - (_width / 2);
_parent.rightshadow._x = _x + (_width / 2);
}
label1.autoSize = "center";
Symbol 316 MovieClip Frame 25
stop();
Symbol 317 MovieClip Frame 47
click1_mc.gotoAndPlay(1);
Symbol 317 MovieClip Frame 85
click2_mc.gotoAndPlay(1);
Symbol 344 MovieClip Frame 1
stop();
Symbol 344 MovieClip Frame 2
function resumeGame() {
rootMain.isPaused_bool = false;
gotoAndStop ("hide");
}
helpHeadingShown = rootMain.getText(27);
next_btn.label = rootMain.getText(44);
pageNumberShown = rootMain.getText(39);
page1HeadingShown = rootMain.getText(28);
page1TextShown = rootMain.getText(29);
close_btn.onRelease = function () {
resumeGame();
};
Instance of Symbol 305 MovieClip "next_btn" in Symbol 344 MovieClip Frame 2
//component parameters
onClipEvent (initialize) {
label = "Next";
type = "next";
wide = 72;
c1 = 163;
c3 = 224;
hc1 = 163;
hc2 = 191;
hc3 = 224;
baseMode = false;
widthMode = true;
rgb = 10731488 /* 0xA3BFE0 */;
rb = 255;
gb = 255;
bb = 255;
hilitergb = 10731488 /* 0xA3BFE0 */;
c2 = 191;
}
Symbol 344 MovieClip Frame 3
next_btn.label = rootMain.getText(44);
back_btn.label = rootMain.getText(45);
pageNumberShown = rootMain.getText(40);
page2HeadingShown = rootMain.getText(30);
page2TextShown = rootMain.getText(31);
Instance of Symbol 305 MovieClip "back_btn" in Symbol 344 MovieClip Frame 3
//component parameters
onClipEvent (initialize) {
label = "Back";
type = "back";
wide = 72;
c1 = 163;
c3 = 224;
hc1 = 163;
hc2 = 191;
hc3 = 224;
baseMode = false;
widthMode = true;
rgb = 10731488 /* 0xA3BFE0 */;
rb = 255;
gb = 255;
bb = 255;
hilitergb = 10731488 /* 0xA3BFE0 */;
c2 = 191;
}
Symbol 344 MovieClip Frame 4
next_btn.label = rootMain.getText(44);
back_btn.label = rootMain.getText(45);
pageNumberShown = rootMain.getText(41);
page3TextShown1 = rootMain.getText(32);
page3TextShown2 = rootMain.getText(33);
Symbol 344 MovieClip Frame 5
next_btn.label = rootMain.getText(44);
back_btn.label = rootMain.getText(45);
pageNumberShown = rootMain.getText(42);
page4TextShown1 = rootMain.getText(34);
page4TextShown2 = rootMain.getText(35);
Symbol 344 MovieClip Frame 6
start_btn.label = rootMain.getText(46);
back_btn.label = rootMain.getText(45);
pageNumberShown = rootMain.getText(43);
page5TextShown1 = rootMain.getText(36);
page5TextShown2 = rootMain.getText(37);
page5TextShown3 = rootMain.getText(38);
Instance of Symbol 305 MovieClip "start_btn" in Symbol 344 MovieClip Frame 6
//component parameters
onClipEvent (initialize) {
label = "Start";
type = "start";
wide = 72;
c1 = 163;
c3 = 224;
hc1 = 163;
hc2 = 191;
hc3 = 224;
baseMode = false;
widthMode = true;
rgb = 10731488 /* 0xA3BFE0 */;
rb = 255;
gb = 255;
bb = 255;
hilitergb = 10731488 /* 0xA3BFE0 */;
c2 = 191;
}
Symbol 361 MovieClip Frame 1
function resumeGame() {
_parent.tipAlert_mc.gotoAndStop("hide");
rootMain.isPaused_bool = false;
tipHeadingShown = "";
tipTextShown = "";
gotoAndStop ("hide");
}
function onCheck(component) {
rootMain.isTipsEnabled_bool = !component.getValue();
rootMain.saveSettingsData();
}
stop();
Symbol 361 MovieClip Frame 2
disableTips_chk.setLabel(rootMain.getText(14));
tipHeadingShown = rootMain.getText(15);
tipTextShown = rootMain.getText(16);
Instance of Symbol 305 MovieClip "close_btn" in Symbol 361 MovieClip Frame 2
//component parameters
onClipEvent (initialize) {
label = "Close";
type = "close";
wide = 72;
c1 = 163;
c3 = 224;
hc1 = 163;
hc2 = 191;
hc3 = 224;
baseMode = false;
widthMode = true;
rgb = 10731488 /* 0xA3BFE0 */;
rb = 255;
gb = 255;
bb = 255;
hilitergb = 10731488 /* 0xA3BFE0 */;
c2 = 191;
}
Instance of Symbol 51 MovieClip [FCheckBoxSymbol] "disableTips_chk" in Symbol 361 MovieClip Frame 2
//component parameters
onClipEvent (initialize) {
label = "";
initialValue = false;
labelPlacement = "right";
changeHandler = "onCheck";
}
Symbol 361 MovieClip Frame 3
disableTips_chk.setLabel(rootMain.getText(14));
tipHeadingShown = rootMain.getText(17);
tipTextShown = rootMain.getText(18);
Symbol 361 MovieClip Frame 4
disableTips_chk.setLabel(rootMain.getText(14));
tipHeadingShown = rootMain.getText(19);
tipTextShown = rootMain.getText(20);
Symbol 361 MovieClip Frame 5
disableTips_chk.setLabel(rootMain.getText(14));
tipHeadingShown = rootMain.getText(23);
tipTextShown = rootMain.getText(24);
Symbol 361 MovieClip Frame 6
disableTips_chk.setLabel(rootMain.getText(14));
tipHeadingShown = rootMain.getText(21);
tipTextShown = rootMain.getText(22);
Symbol 361 MovieClip Frame 7
disableTips_chk.setLabel(rootMain.getText(14));
tipHeadingShown = rootMain.getText(25);
tipTextShown = rootMain.getText(26);
Symbol 362 MovieClip Frame 1
newGame_btn.onRelease = function () {
if (!rootMain.isPaused_bool) {
rootMain.showGameOver();
}
};
sound_btn.onRelease = function () {
if (rootMain.isSound_bool) {
rootMain.isSound_bool = false;
soundState_mc.gotoAndStop("off");
} else {
rootMain.isSound_bool = true;
soundState_mc.gotoAndStop("on");
}
};
help_btn.onRelease = function () {
if (!rootMain.isPaused_bool) {
rootMain.isPaused_bool = true;
helpScreen_mc.gotoAndStop("page_1");
}
};