Frame 1
function GetVar(N) {
if (_root[N] != undefined) {
return(_root[N]);
}
if (_global[N] != undefined) {
return(_global[N]);
}
return("0");
}
function Loading() {
if (GetVar("alawar_f") == "true") {
NagTime = 0;
}
if (GetVar("link") != "0") {
DownloadLink = GetVar("link");
} else {
_root.DownloadLink.value = DownloadURL;
}
var _local5 = String(_root.GetVar("alawar_f"));
var _local4 = String(_root.GetVar("close_f"));
if (_local4 != "0") {
var _local3 = {};
_local3.y = 210;
_local3.x = 55;
_local3.width = 130;
_local3.funct = "FExit";
_local3.text = "Exit";
menu_buttons.splice(menu_buttons.length - 1, 0, _local3);
}
if (_local5 == "true") {
var _local2 = menu_buttons.length - 1;
while (_local2 > 2) {
menu_buttons[_local2].y = menu_buttons[_local2 - 1].y;
_local2--;
}
menu_buttons[2].y = -1000;
}
GlobalTime = getTimer();
_root.onEnterFrame = LoadGame;
}
function LoadGame() {
var _local2 = 1000;
Load = _root.getBytesLoaded();
Total = _root.getBytesTotal();
var _local4 = getTimer() - GlobalTime;
if (Load >= ((Total * _local4) / _local2)) {
Load = (Total * _local4) / _local2;
}
var _local3 = (100 * Load) / Total;
KB.text = ((TextLoading.value + " (") + Math.floor(_local3)) + "%)";
loadline._xscale = _local3;
if (Total <= Load) {
delete _root.onEnterFrame;
_root.gotoAndStop(3);
}
}
stop();
var DownloadURL = "http://www.alawar.com/download/AroundtheWorldin80Days.exe";
stop();
Stage.scaleMode = "noScale";
Stage.showMenu = false;
this._lockroot = true;
if (!Path) {
Path = _url.split("/").slice(0, -1).join("/") + "/";
}
levXML = "levelXML";
artXML = "artifactsXML";
dialXML = "DialogsXML";
texXML = "textXML";
artifactsXML = "<Artefacts><Artefact xArt=\"38\" yArt=\"140\" xMask=\"30\" yMask=\"132\"><element x=\"15\" y=\"1\" width=\"99\" height=\"75\" widthSmall=\"45\" heightSmall=\"34\"/><element x=\"4\" y=\"56\" width=\"92\" height=\"61\" widthSmall=\"45\" heightSmall=\"30\"/></Artefact><Artefact xArt=\"35\" yArt=\"135\" xMask=\"29\" yMask=\"127\"><element x=\"5\" y=\"11\" width=\"48\" height=\"82\" widthSmall=\"26\" heightSmall=\"45\"/><element x=\"30\" y=\"15\" width=\"64\" height=\"92\" widthSmall=\"31\" heightSmall=\"45\"/><element x=\"64\" y=\"37\" width=\"54\" height=\"70\" widthSmall=\"34\" heightSmall=\"45\"/></Artefact><Artefact xArt=\"32\" yArt=\"139\" xMask=\"25\" yMask=\"133\"><element x=\"10\" y=\"3\" width=\"73\" height=\"59\" widthSmall=\"45\" heightSmall=\"36\"/><element x=\"30\" y=\"12\" width=\"67\" height=\"83\" widthSmall=\"36\" heightSmall=\"45\"/><element x=\"47\" y=\"46\" width=\"63\" height=\"68\" widthSmall=\"41\" heightSmall=\"45\"/></Artefact><Artefact xArt=\"35\" yArt=\"140\" xMask=\"31\" yMask=\"128\"><element x=\"1\" y=\"6\" width=\"114\" height=\"75\" widthSmall=\"45\" heightSmall=\"29\"/><element x=\"19\" y=\"45\" width=\"99\" height=\"52\" widthSmall=\"45\" heightSmall=\"24\"/><element x=\"26\" y=\"70\" width=\"92\" height=\"40\" widthSmall=\"45\" heightSmall=\"20\"/></Artefact><Artefact xArt=\"37\" yArt=\"141\" xMask=\"27\" yMask=\"136\"><element x=\"9\" y=\"3\" width=\"38\" height=\"47\" widthSmall=\"36\" heightSmall=\"45\"/><element x=\"9\" y=\"39\" width=\"34\" height=\"49\" widthSmall=\"31\" heightSmall=\"45\"/><element x=\"35\" y=\"1\" width=\"59\" height=\"44\" widthSmall=\"45\" heightSmall=\"33\"/><element x=\"32\" y=\"24\" width=\"65\" height=\"66\" widthSmall=\"44\" heightSmall=\"45\"/><element x=\"44\" y=\"61\" width=\"28\" height=\"30\" widthSmall=\"29\" heightSmall=\"31\"/><element x=\"65\" y=\"30\" width=\"34\" height=\"50\" widthSmall=\"30\" heightSmall=\"45\"/><element x=\"60\" y=\"75\" width=\"46\" height=\"41\" widthSmall=\"45\" heightSmall=\"40\"/></Artefact><Artefact xArt=\"34\" yArt=\"141\" xMask=\"27\" yMask=\"137\"><element x=\"8\" y=\"5\" width=\"56\" height=\"54\" widthSmall=\"45\" heightSmall=\"43\"/><element x=\"20\" y=\"31\" width=\"42\" height=\"54\" widthSmall=\"35\" heightSmall=\"45\"/><element x=\"54\" y=\"2\" width=\"38\" height=\"52\" widthSmall=\"33\" heightSmall=\"45\"/><element x=\"54\" y=\"31\" width=\"45\" height=\"53\" widthSmall=\"38\" heightSmall=\"45\"/><element x=\"65\" y=\"73\" width=\"39\" height=\"41\" widthSmall=\"40\" heightSmall=\"42\"/></Artefact><Artefact xArt=\"36\" yArt=\"141\" xMask=\"28\" yMask=\"132\"><element x=\"5\" y=\"17\" width=\"65\" height=\"51\" widthSmall=\"45\" heightSmall=\"35\"/><element x=\"9\" y=\"13\" width=\"78\" height=\"69\" widthSmall=\"45\" heightSmall=\"39\"/><element x=\"33\" y=\"51\" width=\"81\" height=\"51\" widthSmall=\"44\" heightSmall=\"28\"/></Artefact><Artefact/><Artefact xArt=\"38\" yArt=\"141\" xMask=\"30\" yMask=\"135\"><element x=\"4\" y=\"0\" width=\"107\" height=\"48\" widthSmall=\"45\" heightSmall=\"20\"/><element x=\"48\" y=\"35\" width=\"22\" height=\"45\" widthSmall=\"22\" heightSmall=\"45\"/><element x=\"37\" y=\"68\" width=\"43\" height=\"49\" widthSmall=\"39\" heightSmall=\"45\"/></Artefact><Artefact xArt=\"37\" yArt=\"141\" xMask=\"29\" yMask=\"133\"><element x=\"1\" y=\"0\" width=\"111\" height=\"50\" widthSmall=\"45\" heightSmall=\"20\"/><element x=\"0\" y=\"31\" width=\"113\" height=\"52\" widthSmall=\"45\" heightSmall=\"21\"/><element x=\"0\" y=\"67\" width=\"111\" height=\"51\" widthSmall=\"45\" heightSmall=\"21\"/></Artefact><Artefact xArt=\"36\" yArt=\"138\" xMask=\"26\" yMask=\"130\"><element x=\"0\" y=\"19\" width=\"44\" height=\"71\" widthSmall=\"28\" heightSmall=\"45\"/><element x=\"27\" y=\"18\" width=\"56\" height=\"91\" widthSmall=\"28\" heightSmall=\"45\"/><element x=\"65\" y=\"26\" width=\"53\" height=\"65\" widthSmall=\"36\" heightSmall=\"45\"/></Artefact><Artefact xArt=\"37\" yArt=\"138\" xMask=\"30\" yMask=\"130\"><element x=\"8\" y=\"4\" width=\"64\" height=\"65\" widthSmall=\"44\" heightSmall=\"45\"/><element x=\"24\" y=\"48\" width=\"45\" height=\"67\" widthSmall=\"30\" heightSmall=\"45\"/><element x=\"54\" y=\"4\" width=\"56\" height=\"66\" widthSmall=\"38\" heightSmall=\"45\"/><element x=\"48\" y=\"48\" width=\"47\" height=\"67\" widthSmall=\"31\" heightSmall=\"45\"/></Artefact><Artefact xArt=\"35\" yArt=\"139\" xMask=\"29\" yMask=\"130\"><element x=\"23\" y=\"0\" width=\"73\" height=\"52\" widthSmall=\"45\" heightSmall=\"32\"/><element x=\"34\" y=\"31\" width=\"44\" height=\"53\" widthSmall=\"37\" heightSmall=\"45\"/><element x=\"22\" y=\"78\" width=\"75\" height=\"40\" widthSmall=\"45\" heightSmall=\"24\"/></Artefact><Artefact xArt=\"36\" yArt=\"139\" xMask=\"31\" yMask=\"134\"><element x=\"20\" y=\"2\" width=\"50\" height=\"64\" widthSmall=\"35\" heightSmall=\"45\"/><element x=\"20\" y=\"49\" width=\"45\" height=\"69\" widthSmall=\"29\" heightSmall=\"45\"/><element x=\"49\" y=\"1\" width=\"49\" height=\"70\" widthSmall=\"31\" heightSmall=\"45\"/><element x=\"49\" y=\"49\" width=\"47\" height=\"69\" widthSmall=\"30\" heightSmall=\"45\"/></Artefact><Artefact xArt=\"35\" yArt=\"139\" xMask=\"25\" yMask=\"130\"><element x=\"4\" y=\"5\" width=\"62\" height=\"54\" widthSmall=\"45\" heightSmall=\"39\"/><element x=\"4\" y=\"47\" width=\"59\" height=\"66\" widthSmall=\"40\" heightSmall=\"45\"/><element x=\"54\" y=\"5\" width=\"60\" height=\"65\" widthSmall=\"41\" heightSmall=\"45\"/><element x=\"51\" y=\"50\" width=\"63\" height=\"63\" widthSmall=\"45\" heightSmall=\"45\"/></Artefact><Artefact xArt=\"35\" yArt=\"141\" xMask=\"28\" yMask=\"134\"><element x=\"3\" y=\"29\" width=\"40\" height=\"33\" widthSmall=\"41\" heightSmall=\"34\"/><element x=\"30\" y=\"33\" width=\"47\" height=\"46\" widthSmall=\"45\" heightSmall=\"44\"/><element x=\"55\" y=\"32\" width=\"60\" height=\"64\" widthSmall=\"42\" heightSmall=\"45\"/></Artefact><Artefact xArt=\"37\" yArt=\"139\" xMask=\"29\" yMask=\"132\"><element x=\"3\" y=\"3\" width=\"62\" height=\"60\" widthSmall=\"45\" heightSmall=\"43\"/><element x=\"3\" y=\"56\" width=\"62\" height=\"60\" widthSmall=\"45\" heightSmall=\"43\"/><element x=\"58\" y=\"3\" width=\"54\" height=\"61\" widthSmall=\"39\" heightSmall=\"45\"/><element x=\"58\" y=\"57\" width=\"54\" height=\"59\" widthSmall=\"41\" heightSmall=\"45\"/></Artefact></Artefacts>";
DialogsXML = "<?xml version=\"1.0\"?><Dialogs><Dialog name=\"Dlg_11\"><Avatars><Avatar name=\"Pasp\" texture=\"AvatarPasp\" orient=\"ToRight\"><Position x=\"100\" y=\"150\"/></Avatar><Avatar name=\"Fogg\" texture=\"AvatarFogg\" orient=\"ToLeft\"><Position x=\"700\" y=\"450\"/></Avatar></Avatars><Actions><Phrase avatar=\"No\" text=\"EnglandIntroText1\"/><Move avatar=\"Pasp\"/><Phrase avatar=\"Pasp\" text=\"EnglandPaspText1\"/><Move avatar=\"Fogg\"/><Phrase avatar=\"Fogg\" text=\"EnglandFoggText1\"/><Phrase avatar=\"Pasp\" text=\"EnglandPaspText2\"/><Phrase avatar=\"Fogg\" text=\"EnglandFoggText2\"/><Phrase avatar=\"Pasp\" text=\"EnglandPaspText3\"/><Phrase avatar=\"Fogg\" text=\"EnglandFoggText3\"/><Phrase avatar=\"Pasp\" text=\"EnglandPaspText4\"/><Phrase avatar=\"Fogg\" text=\"EnglandFoggText4\"/><Phrase avatar=\"Pasp\" text=\"EnglandPaspText5\"/><Move avatar=\"Fogg\"/><Phrase avatar=\"Pasp\" text=\"EnglandPaspText6\"/><Move avatar=\"Pasp\"/></Actions></Dialog><Dialog name=\"Dlg_12\"><Avatars><Avatar name=\"Pasp\" texture=\"AvatarPasp\" orient=\"ToRight\"><Position x=\"100\" y=\"150\"/></Avatar><Avatar name=\"Fogg\" texture=\"AvatarFogg\" orient=\"ToLeft\"><Position x=\"700\" y=\"450\"/></Avatar></Avatars><Actions><Move avatar=\"Pasp\"/><Phrase avatar=\"Fogg\" text=\"EnglandFoggText5\"/><Phrase avatar=\"Pasp\" text=\"EnglandPaspText7\"/><Phrase avatar=\"Fogg\" text=\"EnglandFoggText6\"/><Phrase avatar=\"Pasp\" text=\"EnglandPaspText8\"/><Phrase avatar=\"Fogg\" text=\"EnglandFoggText7\"/><Phrase avatar=\"Pasp\" text=\"EnglandPaspText9\"/><Phrase avatar=\"Fogg\" text=\"EnglandFoggText8\"/><Move avatar=\"Pasp\"/><Move avatar=\"Fogg\"/></Actions></Dialog><Dialog name=\"Dlg_21\"><Avatars><Avatar name=\"Pasp\" texture=\"AvatarPasp\" orient=\"ToRight\"><Position x=\"100\" y=\"150\"/></Avatar><Avatar name=\"Fogg\" texture=\"AvatarFogg\" orient=\"ToLeft\"><Position x=\"700\" y=\"450\"/></Avatar><Avatar name=\"Fix\" texture=\"AvatarFix\" orient=\"ToRight\"><Position x=\"700\" y=\"450\"/></Avatar><Avatar name=\"Pred\" texture=\"AvatarPred\" orient=\"ToLeft\"><Position x=\"100\" y=\"150\"/></Avatar><Avatar name=\"Capt\" texture=\"AvatarCapt\" orient=\"ToRight\"><Position x=\"100\" y=\"450\"/></Avatar></Avatars><Actions><Phrase avatar=\"No\" text=\"FranceIntroText1\"/><Move avatar=\"Pred\"/><Move avatar=\"Fix\"/><Phrase avatar=\"Fix\" text=\"FranceFixText1\"/><Phrase avatar=\"Pred\" text=\"FrancePredText1\"/><Phrase avatar=\"Fix\" text=\"FranceFixText2\"/><Phrase avatar=\"Pred\" text=\"FrancePredText2\"/><Phrase avatar=\"Fix\" text=\"FranceFixText3\"/><Phrase avatar=\"Pred\" text=\"FrancePredText3\"/><Phrase avatar=\"Fix\" text=\"FranceFixText4\"/><Phrase avatar=\"Pred\" text=\"FrancePredText4\"/><Phrase avatar=\"Fix\" text=\"FranceFixText5\"/><Phrase avatar=\"Pred\" text=\"FrancePredText5\"/><Phrase avatar=\"Fix\" text=\"FranceFixText6\"/><Phrase avatar=\"Pred\" text=\"FrancePredText6\"/><Phrase avatar=\"Fix\" text=\"FranceFixText7\"/><Move avatar=\"Pred\"/><Move avatar=\"Fix\"/><Phrase avatar=\"No\" text=\"FranceIntroText2\"/><Move avatar=\"Pasp\"/><Move avatar=\"Fogg\"/><Phrase avatar=\"Pasp\" text=\"FrancePaspText1\"/><Phrase avatar=\"Fogg\" text=\"FranceFoggText1\"/><Move avatar=\"Capt\"/><Phrase avatar=\"Capt\" text=\"FranceCaptText1\"/><Phrase avatar=\"Fogg\" text=\"FranceFoggText2\"/><Phrase avatar=\"Capt\" text=\"FranceCaptText2\"/><Phrase avatar=\"Fogg\" text=\"FranceFoggText3\"/><Phrase avatar=\"Capt\" text=\"FranceCaptText3\"/><Phrase avatar=\"Pasp\" text=\"FrancePaspText2\"/><Phrase avatar=\"Fogg\" text=\"FranceFoggText4\"/><Move avatar=\"Capt\"/><Move avatar=\"Pasp\"/><Move avatar=\"Fogg\"/></Actions></Dialog><Dialog name=\"Dlg_22\"><Avatars><Avatar name=\"Pasp\" texture=\"AvatarPasp\" orient=\"ToRight\"><Position x=\"100\" y=\"150\"/></Avatar><Avatar name=\"Fogg\" texture=\"AvatarFogg\" orient=\"ToLeft\"><Position x=\"700\" y=\"450\"/></Avatar><Avatar name=\"Capt\" texture=\"AvatarCapt\" orient=\"ToRight\"><Position x=\"100\" y=\"450\"/></Avatar></Avatars><Actions><Move avatar=\"Pasp\"/><Move avatar=\"Fogg\"/><Move avatar=\"Capt\"/><Phrase avatar=\"Capt\" text=\"FranceCaptText4\"/><Phrase avatar=\"Capt\" text=\"FranceCaptText5\"/><Phrase avatar=\"Pasp\" text=\"FrancePaspText3\"/><Phrase avatar=\"Fogg\" text=\"FranceFoggText5\"/><Phrase avatar=\"Pasp\" text=\"FrancePaspText4\"/><Phrase avatar=\"Fogg\" text=\"FranceFoggText6\"/><Move avatar=\"Pasp\"/><Move avatar=\"Fogg\"/><Move avatar=\"Capt\"/></Actions></Dialog></Dialogs>";
levelXML = "<?xml version=\"1.0\" ?><Levels><country><Level name=\"level_1.1\" time=\"650\" chips=\"0123\" b_inc4=\"0.015\" b_inc5=\"0.015\" b_inc6=\"0.02\" bonusLevel=\"false\"><Line>1111111100</Line><Line>1111111110</Line><Line>111A111111</Line><Line>1111111111</Line><Line>111111A111</Line><Line>0111111111</Line><Line>0011111111</Line></Level><Level name=\"level_1.2\" time=\"650\" chips=\"0123\" b_inc4=\"0.055\" b_inc5=\"0.075\" b_inc6=\"0.085\" bonusLevel=\"false\"><Line>010010010</Line><Line>110111011</Line><Line>1101A1011</Line><Line>111111111</Line><Line>111111111</Line><Line>111111111</Line><Line>111111111</Line><Line>11A111A11</Line><Line>111111111</Line></Level><Level name=\"level_1.3\" time=\"650\" chips=\"0123\" b_inc4=\"0.055\" b_inc5=\"0.075\" b_inc6=\"0.085\" bonusLevel=\"false\"><Line>00000100000</Line><Line>00011111000</Line><Line>001111A1100</Line><Line>01111111110</Line><Line>01111111110</Line><Line>11A11111111</Line><Line>01111111A10</Line><Line>01111111110</Line><Line>00111111100</Line><Line>00011111000</Line><Line>00000100000</Line></Level><Level name=\"level_1.4\" time=\"650\" chips=\"0123\" b_inc4=\"0.055\" b_inc5=\"0.075\" b_inc6=\"0.085\" bonusLevel=\"false\"><Line>1100000000</Line><Line>1100000000</Line><Line>11A1000000</Line><Line>1111000000</Line><Line>1111A10000</Line><Line>1111110000</Line><Line>111111S100</Line><Line>1111111100</Line><Line>11111111A1</Line><Line>1111111111</Line></Level><Level name=\"level_1.5\" time=\"650\" chips=\"0123\" b_inc4=\"0.055\" b_inc5=\"0.075\" b_inc6=\"0.085\" bonusLevel=\"false\"><Line>10101010101</Line><Line>11111111111</Line><Line>11A1A1A1A11</Line><Line>111A1A1A111</Line><Line>11111111111</Line><Line>11111111111</Line><Line>11111111111</Line></Level><Level name=\"level_1.6\" time=\"650\" chips=\"0123\" b_inc4=\"0.055\" b_inc5=\"0.075\" b_inc6=\"0.085\" bonusLevel=\"false\"><Line>10000100001</Line><Line>11001110011</Line><Line>11111111111</Line><Line>11A11111111</Line><Line>111111111A1</Line><Line>11111A11111</Line><Line>1A111111111</Line><Line>01111111A10</Line><Line>01111111110</Line><Line>00111111100</Line><Line>00011111000</Line></Level><Level name=\"level_1.7\" time=\"650\" chips=\"0123\" b_inc4=\"0.055\" b_inc5=\"0.075\" b_inc6=\"0.085\" bonusLevel=\"false\"><Line>11111111111</Line><Line>1A111110001</Line><Line>11111110001</Line><Line>11111110001</Line><Line>1111A11000A</Line><Line>11111110001</Line><Line>11111110001</Line><Line>11111110001</Line><Line>111111S1111</Line><Line>11111111111</Line><Line>11111111111</Line></Level><Level name=\"level_1.8\" time=\"650\" chips=\"0123\" b_inc4=\"0.055\" b_inc5=\"0.075\" b_inc6=\"0.085\" bonusLevel=\"true\"><Line>111111111</Line><Line>111111111</Line><Line>111111111</Line><Line>111111111</Line><Line>111111111</Line><Line>111111111</Line><Line>111111111</Line><Line>111111111</Line><Line>111111111</Line></Level></country><country><Level name=\"level_2.1\" time=\"550\" chips=\"01234\" b_inc4=\"0.055\" b_inc5=\"0.075\" b_inc6=\"0.085\" bonusLevel=\"false\"><Line>01100000110</Line><Line>1A1100011A1</Line><Line>11111011111</Line><Line>11111A11111</Line><Line>11111111111</Line><Line>11111111111</Line><Line>01111-11110</Line><Line>00111111100</Line><Line>00111111100</Line><Line>00011111000</Line><Line>00000100000</Line></Level><Level name=\"level_2.2\" time=\"550\" chips=\"01234\" b_inc4=\"0.055\" b_inc5=\"0.075\" b_inc6=\"0.085\" bonusLevel=\"false\"><Line>00001111111</Line><Line>10001111111</Line><Line>11001111A11</Line><Line>11--1111111</Line><Line>11111A11111</Line><Line>1111111--11</Line><Line>11A11110011</Line><Line>11111110001</Line><Line>11111110000</Line></Level><Level name=\"level_2.3\" time=\"550\" chips=\"01234\" b_inc4=\"0.055\" b_inc5=\"0.075\" b_inc6=\"0.085\" bonusLevel=\"false\"><Line>01A101A1000</Line><Line>01110111000</Line><Line>0111011100A</Line><Line>01110111001</Line><Line>11-1-1-1111</Line><Line>1111+111111</Line><Line>11111111111</Line><Line>11111111110</Line><Line>01111111100</Line></Level><Level name=\"level_2.4\" time=\"550\" chips=\"01234\" b_inc4=\"0.055\" b_inc5=\"0.075\" b_inc6=\"0.085\" bonusLevel=\"false\"><Line>000011111</Line><Line>0001111A1</Line><Line>001111111</Line><Line>01111A1-1</Line><Line>111111111</Line><Line>111A11111</Line><Line>111111111</Line><Line>1A1111110</Line><Line>111111100</Line><Line>1-1111000</Line><Line>111110000</Line></Level><Level name=\"level_2.5\" time=\"550\" chips=\"01234\" b_inc4=\"0.055\" b_inc5=\"0.075\" b_inc6=\"0.085\" bonusLevel=\"false\"><Line>00000000111</Line><Line>00000111111</Line><Line>00111111111</Line><Line>00111111111</Line><Line>11111111111</Line><Line>1A111A111A1</Line><Line>11111111+++</Line><Line>00111111111</Line><Line>00111111111</Line><Line>00000111111</Line><Line>00000000111</Line></Level><Level name=\"level_2.6\" time=\"550\" chips=\"01234\" b_inc4=\"0.055\" b_inc5=\"0.075\" b_inc6=\"0.085\" bonusLevel=\"false\"><Line>1A00ASA00A1</Line><Line>11111111111</Line><Line>11111111111</Line><Line>11111111111</Line><Line>11111111111</Line><Line>11111111111</Line><Line>11110001111</Line><Line>11110001111</Line><Line>11110001111</Line><Line>11110001111</Line><Line>11110001111</Line></Level><Level name=\"level_2.7\" time=\"550\" chips=\"01234\" b_inc4=\"0.055\" b_inc5=\"0.075\" b_inc6=\"0.085\" bonusLevel=\"false\"><Line>00110001100</Line><Line>01111011110</Line><Line>11A11111A11</Line><Line>11111111111</Line><Line>01111+11110</Line><Line>00111+11100</Line><Line>01111+11110</Line><Line>1111A1A1111</Line><Line>11111111111</Line><Line>01111011110</Line><Line>00110001100</Line></Level><Level name=\"level_2.8\" time=\"550\" chips=\"01234\" b_inc4=\"0.055\" b_inc5=\"0.075\" b_inc6=\"0.085\" bonusLevel=\"false\"><Line>1111111111A</Line><Line>1111A111111</Line><Line>11111110011</Line><Line>11111110001</Line><Line>11111110001</Line><Line>1A111110001</Line><Line>+++11110001</Line><Line>11111-11001</Line><Line>11111111111</Line><Line>01111111111</Line><Line>00111111111</Line></Level><Level name=\"level_2.9\" time=\"650\" chips=\"01234\" b_inc4=\"0.055\" b_inc5=\"0.075\" b_inc6=\"0.085\" bonusLevel=\"false\"><Line>0000AA0000</Line><Line>0000--0000</Line><Line>0000110000</Line><Line>0001111000</Line><Line>0001111000</Line><Line>0001111000</Line><Line>0011111100</Line><Line>1111111111</Line><Line>A11111111A</Line><Line>+11111111+</Line><Line>1010110101</Line></Level><Level name=\"level_2.10\" time=\"650\" chips=\"01234\" b_inc4=\"0.055\" b_inc5=\"0.075\" b_inc6=\"0.085\" bonusLevel=\"true\"><Line>00000000001</Line><Line>00000000011</Line><Line>00000000111</Line><Line>00000001111</Line><Line>00000011111</Line><Line>00000111111</Line><Line>00001111111</Line><Line>00011111111</Line><Line>00111111111</Line><Line>01111111111</Line><Line>11111111111</Line></Level></country></Levels>";
textXML = "<?xml version=\"1.0\" encoding=\"utf-8\"?><TextResources><menu_buttons><button text=\"Help\" x=\"55\" y=\"60\" width=\"130\" funct=\"FHelp\"/><button text=\"Sound On\" x=\"55\" y=\"90\" width=\"130\" funct=\"FSound\"/><button text=\"Download\" x=\"55\" y=\"120\" width=\"130\" funct=\"FDownload\"/><button text=\"New Game\" x=\"55\" y=\"150\" width=\"130\" funct=\"FNew\"/><button text=\"Resume\" x=\"55\" y=\"180\" width=\"130\" funct=\"FResume\"/><button text=\"Sound Off\" x=\"55\" y=\"90\" width=\"130\" funct=\"FSound\"/></menu_buttons><string id=\"DownloadLink\" value=\"http://www.playrix.com/\"/><string id=\"NagTime\" value=\"2\"/><string id=\"SaveMode\" value=\"true\"/><string id=\"Local\" value=\"en\"/><string id=\"TextLoading\" value=\"Loading\"/><string id=\"TextOK\" value=\"OK\"/><string id=\"TextMenu\" value=\"Menu\"/><string id=\"TextMap\" value=\"Map\"/><string id=\"TextPlay\" value=\"Play\"/><string id=\"TextClickContinue\" value=\"Click to continue\"/><string id=\"TextSkip\" value=\"Skip dialogue\"/><string id=\"TextContinue\" value=\"Continue\"/><string id=\"TextRestart\" value=\"Restart\"/><string id=\"TextStart\" value=\"Start\"/><string id=\"TextStatistics\" value=\"Statistics\"/><string id=\"TextTiles\" value=\"Tiles\"/><string id=\"TextMatches\" value=\"Matches\"/><string id=\"TextPieces\" value=\"Pieces\"/><string id=\"TextChain\" value=\"Max chain\"/><string id=\"TextTime\" value=\"Your time\"/><string id=\"TextTimeBonus\" value=\"Time bonus\"/><string id=\"TextHowToPlay\" value=\"How to play\"/><string id=\"TextScore\" value=\"Score\"/><string id=\"TextDownload\" value=\"Download\"/><string id=\"TextDay\" value =\"Day\"/><string id=\"TextCountry1\" value=\"England\"/><string id=\"TextCountry2\" value=\"France\"/><string id=\"TextCountry3\" value=\"Egypt\"/><string id=\"TextCountry4\" value=\"India\"/><string id=\"TextCountry5\" value=\"China\"/><string id=\"TextCountry6\" value=\"Japan\"/><string id=\"TextCountry7\" value=\"USA\"/><string id=\"TextNoMoreMoves\" value=\"No more moves!\"/><string id=\"TextHarryUp\" value=\"Harry Up! Time is out!\"/><string id=\"TextLevelComplete\" value=\"Level complete!\"/><string id=\"TextOutOfTime\" value=\"Out of time!\"/><string id=\"TextYouLoseLife\" value=\"You lose a life!\"/><string id=\"TextGameOver\" value=\"Game over!\"/><string id=\"TextHelp\" value=\"Help\"/><string id=\"TextUseBonuses\" value=\"Use bonuses\"/><string id=\"TextHelpHead\" page1=\"Gameplay (1/3)\" page2=\"Bonuses (2/3)\" page3=\"Bonus Level (3/3)\"/><text id=\"Bonus0Charged\"><string text=\"Hammer #BonusCharged#% charged\"/></text><text id=\"Bonus1Charged\"><string text=\"Hammer is ready!\"/><string text=\"Power-up upgrade:\"/><string text=\"Tesla's Hammer #BonusCharged#% charged\"/></text><text id=\"Bonus2Charged\"><string text=\"Tesla's Hammer is ready!\"/><string text=\"Power-up upgrade:\"/><string text=\"Bomb #BonusCharged#% charged\"/></text><text id=\"Bonus3Charged\"><string text=\"Bomb is ready!\"/><string text=\"Power-up upgrade:\"/><string text=\"Fireball #BonusCharged#% charged\"/></text><text id=\"Bonus4Charged\"><string text=\"Fireball is ready!\"/></text><text id=\"EnglandIntroText1\"><string text=\"October, 2 1872. London.|On the very day when this inconceivable wager was made, Phileas Fogg hired a new servant instead of the luckless youth he had dismissed for bringing him shaving water at eighty-four degrees Fahrenheit instead of eighty-six.\"/><string text=\"The new servant, Jean Passepartout, an honest fellow with a pleasant face and ruddy cheeks, was a true Parisian of Paris, living in London for five years now. At this moment he is alone in Mr. Fogg's house, inspecting it carefully and repeating to himself: "That's good, that'll do".\"/></text><text id=\"EnglandPaspText1\"><string text=\"This is just what I wanted! Ah, we shall get on together, Mr. Fogg and I! What a domestic and regular gentleman! A man who neither travels nor stays from home overnight. This is the kind of master I have been dreaming of my whole life!\"/></text><text id=\"EnglandFoggText1\"><string text=\"Passepartout! Where are you?\"/></text><text id=\"EnglandPaspText2\"><string text=\"I have not been expecting you sooner than midnight and it is only ten to eight.\"/></text><text id=\"EnglandFoggText2\"><string text=\"I know it. We start for Dover in ten minutes. We are going round the world.\"/></text><text id=\"EnglandPaspText3\"><string text=\"Round the world!\"/></text><text id=\"EnglandFoggText3\"><string text=\"In eighty days, so we haven't a moment to lose.\"/></text><text id=\"EnglandPaspText4\"><string text=\"But the trunks?\"/></text><text id=\"EnglandFoggText4\"><string text=\"We'll have no trunks. Put my personal note-book in a carpet-bag. We'll buy the rest on the way. Make haste!\"/></text><text id=\"EnglandPaspText5\"><string text=\"Certainly, Mr. Fogg!\"/></text><text id=\"EnglandPaspText6\"><string text=\"That's good, that is! And I, who wanted to remain quiet!.. Oh, I do not feel right about this journey. But it is time to prepare the carpet-bag. And where is Mr. Fogg's note-book?\"/></text><text id=\"EnglandFoggText5\"><string text=\"First-class tickets have been purchased; the train leaves in an hour. You have forgotten nothing, Passepartout?\"/></text><text id=\"EnglandPaspText7\"><string text=\"Nothing, monsieur. It is all in this carpet-bag. We can leave for Paris.\"/></text><text id=\"EnglandFoggText6\"><string text=\"There is one more thing left.\"/></text><text id=\"EnglandPaspText8\"><string text=\"There is nothing I could forget! And your personal note-book is in the carpet-bag.\"/></text><text id=\"EnglandFoggText7\"><string text=\"It concerns my wager. I gave the word of a gentleman that I will bring a unique stamp from every country. Thus it will be possible to judge whether I have accomplished the journey agreed upon.\"/></text><text id=\"EnglandPaspText9\"><string text=\"But any stamp can be purchased in London! Is it worth going at all?\"/></text><text id=\"EnglandFoggText8\"><string text=\"The wager is a matter of honour. There's still some time left before the train leaves. We need to hurry and get an English stamp!\"/></text><text id=\"FranceIntroText1\"><string text=\"October, 9 1872. England.|Leaving London Phileas Fogg could not suspect what a lively sensation his departure would create. The news of the fantastic bet spread through the Reform Club, and afforded an exciting topic of conversation to its members. From the club it soon got into the papers throughout England. Some admired Phileas Fogg, although without much trust in the success of his venture, some openly condemned Andrew Stuart for having accepted a wager which betrayed the mental aberration of its proposer. Concerned with the excessive public attention to himself, the bet and to Phileas Fogg, the Chairman of the Reform Club decides to turn to an old friend of his \u2013- detective Fix.\"/></text><text id=\"FranceFixText1\"><string text=\"Glad to see you, Mr. Stuart!\"/></text><text id=\"FrancePredText1\"><string text=\"Welcome, Fix! Let's get to business right away. I have called you because I need a man with experience for a delicate favor.\"/></text><text id=\"FranceFixText2\"><string text=\"I'd be glad to be of service!\"/></text><text id=\"FrancePredText2\"><string text=\"Wonderful! The essence of the matter is as follows: an arrogant and self-confident gentleman has recently made a foolish bet with me. I think, you may have heard - all of London has been talking about it.\"/></text><text id=\"FranceFixText3\"><string text=\"Around the world in eighty days! This venture has made a great deal of noise. Thousands of bets have been made but there aren't many of Fogg's backers left.\"/></text><text id=\"FrancePredText3\"><string text=\"All the sensation around the wager is getting on my nerves. It also causes irreparable damage to my reputation. Just like most sensible Englishmen I do not believe in Fogg's success. Therefore I must not lose. Do you understand me, Fix?\"/></text><text id=\"FranceFixText4\"><string text=\"Not quite, Mr. Stuart...\"/></text><text id=\"FrancePredText4\"><string text=\"I am asking you to follow Fogg and report on all of his movements.\"/></text><text id=\"FranceFixText5\"><string text=\"This is not difficult...\"/></text><text id=\"FrancePredText5\"><string text=\"I hope so. I am certain that Fogg will not finish his journey on time, but\u2026 if by any chance you will be presented with an opportunity \u2026 a possibility to cause a little delay in Mr. Fogg's journey, make it a bit longer...\"/></text><text id=\"FranceFixText6\"><string text=\"Not causing any suspicions?\"/></text><text id=\"FrancePredText6\"><string text=\"I am glad you understood me, dear Fix!\"/><string text=\"Your efforts will be generously rewarded. Of course provided there is a result.\"/></text><text id=\"FranceFixText7\"><string text=\"I will do everything that is in my power. Be confident, you will win the wager!\"/></text><text id=\"FranceIntroText2\"><string text=\"October, 9 1872. France.|In the meantime our respectable gentleman and his servant safely reached the capital of France, Paris. Having just gotten off the train, they are hurrying to the port to embark upon the Magnolia, a steamer departing for Egypt later today. Nothing shall stand in the way of Mr. Phileas Fogg...\"/></text><text id=\"FrancePaspText1\"><string text=\"Oh, Paris \u2013 I have not been to Paris for five years! And this is where I grew up, Mr. Fogg. I would be happy to show you around the places that are so dear to me. We'll call on my auntie and...\"/></text><text id=\"FranceFoggText1\"><string text=\"Passepartout, the most precious thing in our journey is time! We can not waste any at all. Besides, we've almost reached the port. Ah, and here is the captain of the Magnolia.\"/></text><text id=\"FranceCaptText1\"><string text=\"Monsieurs, how can I help you?\"/></text><text id=\"FranceFoggText2\"><string text=\"We would like to reach Egypt on your ship.\"/></text><text id=\"FranceCaptText2\"><string text=\"I'm afraid this is impossible, monsieur. The ship has been seriously damaged in a storm and needs repair. The soonest we can leave is 2 weeks from now.\"/></text><text id=\"FranceFoggText3\"><string text=\"But I can't wait that long! Isn't there anything that can be done?\"/></text><text id=\"FranceCaptText3\"><string text=\"The repair of the ship, monsieur, is not an easy task. Besides, many of the parts did not survive and need to be replaced completely. And if you do not mind me asking, why the rush, monsieur? You are in Paris \u2013 relax and enjoy your time here.\"/></text><text id=\"FrancePaspText2\"><string text=\"Yes, Mr. Fogg, this is an excellent occasion to visit my...\"/></text><text id=\"FranceFoggText4\"><string text=\"Passepartout! We'd better think about how to help get the Magnolia repaired. We must get to Egypt as soon as possible!\"/></text><text id=\"FranceCaptText4\"><string text=\"Monsieurs, thank you for your help in the repair of the ship! Without your assistance it would have taken us forever to accomplish this serious task.\"/></text><text id=\"FranceCaptText5\"><string text=\"Now the Magnolia is ready for departure to Egypt, monsieurs. We can set sail immediately.\"/></text><text id=\"FrancePaspText3\"><string text=\"Well, Mr. Fogg, now we can continue our journey. Goodbye, France! Goodbye, Paris!\"/></text><text id=\"FranceFoggText5\"><string text=\"Do not say goodbye just yet, Passepartout. We still have one more thing to do before we leave.\"/></text><text id=\"FrancePaspText4\"><string text=\"Oh, Mr. Fogg, so we will get a chance to take a walk around Paris?\"/></text><text id=\"FranceFoggText6\"><string text=\"Passepartout, you, I am sure, have forgotten about the proof which we are to bring from every country on our route. Before leaving for Egypt we must get a stamp from Paris.\"/></text><text id=\"Dnevnik1\"><string text=\"This is the day I hired a new servant, a Frenchman by the name Passepartout. The news of the journey around the world came as a shock to him, yet he started packing without a word. This is the manner a servant should be. It appears that this time I may have found the right man. We are not taking much luggage. A proper gentleman travels around the world with a light carpet-bag.\"/></text><text id=\"Dnevnik2\"><string text=\"The most important thing that Passepartout packed is my personal note-book. These notes will become documented evidence of my journey. Perhaps one day, many years from now, I will read them to my children.\"/></text><text id=\"Dnevnik3\"><string text=\"I had an argument with Mr. Stuart, chairman of the Reform Club, about whether it is possible to travel around the world in 80 days. He got so agitated trying to prove me wrong that bet his post of the chairman!\"/></text><text id=\"Dnevnik4\"><string text=\"Quite honestly it seems like Mr. Stuart is not the only one who thinks I am doomed to failure. Well, gentleman, you will soon see who is right...\"/></text><text id=\"Dnevnik5\"><string text=\"This wager has already been referred to as fantastic and inconceivable. I wonder what they will say when I win.\"/></text><text id=\"Dnevnik6\"><string text=\"My opinion is that there is nothing fantastic about this bet. All there is here is superb calculation and passion that characterize a true Englishman.\"/></text><text id=\"Dnevnik7\"><string text=\"Do I feel strongly about the success of this enterprise? By all means! A true Englishman will not start a new venture unless he is at least 50 per cent sure of the favourable outcome. We are departing for Paris today!\"/></text><text id=\"Dnevnik8\"><string text=\"Here we are in Paris. We were finally able to get to the port, yet there was no ship we could embark upon to continue to Egypt. We are thus faced with the first impediments in our journey. The steamer Magnolia we were to board here has gotten into a serious storm. I have made a decision to help with the repair of the ship whatever the costs.\"/></text><text id=\"Dnevnik9\"><string text=\"The additional expenditures to replace the damaged parts promise to be quite substantial, yet the game is worth the candle. Passepartout will help me.\"/></text><text id=\"Dnevnik10\"><string text=\"I do not like to compliment the servants but it appears that this new one is indeed a stroke of luck. However, time will tell...\"/></text><text id=\"Dnevnik11\"><string text=\"According to Passepartout, Paris is the most beautiful city. The Eiffel Tower, the Champs-Elysees, and Passepartout's auntie's house of course - all these are of great interest by all means. However we cannot devote any time to sight-seeing. \"/></text><text id=\"Dnevnik12\"><string text=\"Our goal is to get the Magnolia repaired as soon as possible. We have absolutely no time to spare!\"/></text><text id=\"Dnevnik13\"><string text=\"I am positive I will win the bet. The calculation is accurate, I simply could not err.\"/></text><text id=\"Dnevnik14\"><string text=\"Sometimes I feel that anxiety is trying to take over me. My reputation and wellbeing are at stake after all.\"/></text><text id=\"Dnevnik15\"><string text=\"The repairs of the ship are going well. It should be sea-worthy shortly.\"/></text><text id=\"Dnevnik16\"><string text=\"I had a word with the engineer of the Magnolia. A generous reward convinced him that we may be able to gain some time on the way to Egypt.\"/></text><text id=\"Dnevnik17\"><string text=\"All done! The vessel has been repaired and is ready to set sail. We start for Egypt in an hour. We must hurry to get a stamp! Before the Magnolia departs I must find myself proof of my stay in this country...\"/></text><text id=\"ArtDesc0\"><string text=\"Mr. Fogg's Note-book||Mr. Fogg will use his note-book to record interesting facts and details about the journey around the world.\"/></text><text id=\"ArtDesc1\"><string text=\"Mr. Fogg's Savings||One cannot travel without the necessary means. Money will help us solve many problems that may arise during the long trip.\"/></text><text id=\"ArtDesc2\"><string text=\"Compass||One will never get lost with this accurate compass. It will always show us the right direction.\"/></text><text id=\"ArtDesc3\"><string text=\"Mr. Fogg's Globe||Mr. Fogg's globe shows our route as well as our location day by day.\"/></text><text id=\"ArtDesc4\"><string text=\"Mr. Fogg's Pocket Watch||When one only has 80 days to make the tour around the world, time is most precious. We must always know how much is left.\"/></text><text id=\"ArtDesc5\"><string text=\"Mysterious Flask||This is Mr. Fogg's personalized flask that he always has with him. The contents thereof remain a mystery.\"/></text><text id=\"ArtDesc6\"><string text=\"Compact Binoculars||A set of binoculars is an important tool that allows taking a closer look at something in the distance. We will definitely have a lot to see during our trip.\"/></text><text id=\"ArtDesc8\"><string text=\"Heavy Anchor||A ship cannot stop without an anchor. It will be carried away by the wind and the current.\"/></text><text id=\"ArtDesc9\"><string text=\"Porthole||It can be chilly and windy at sea. Keep all the portholes in your cabin closed or an illness is inevitable.\"/></text><text id=\"ArtDesc10\"><string text=\"Mariner's Compass||The captain must always keep an eye on the mariner's compass, thus ensuring the safe navigation of his ship.\"/></text><text id=\"ArtDesc11\"><string text=\"Ship's Bell||A ship's bell is used to sound the time on board ship and is also practical in foggy weather.\"/></text><text id=\"ArtDesc12\"><string text=\"Extremely Precise Sand Glass||Without a sand glass the crew will not be able to watch the time and remain on course.\"/></text><text id=\"ArtDesc13\"><string text=\"Bright Lantern||At night the deck should be lit brightly or it may be very dangerous to go upon.\"/></text><text id=\"ArtDesc14\"><string text=\"Lifebuoy||A lifebuoy is used to rescue a person fallen overboard. Hopefully, there will not be a need to use it on this voyage.\"/></text><text id=\"ArtDesc15\"><string text=\"Marine Telescope||The captain uses the telescope to sight the coastline and passing vessels. Without one, the ship is blind.\"/></text><text id=\"ArtDesc16\"><string text=\"Wheel||Can there be a ship without a wheel? It is absolutely impossible to navigate the vessel without it.\"/></text><text id=\"msg_0\"><string text=\"Form matches of three in-a-row by swapping adjacent tiles. For example, these flashing tiles can be swapped.\"/></text><text id=\"msg_1\"><string text=\"Drive this piece to the bottom of the game field by getting rid of tiles under it and you will see it added to the item outline on the left.\"/></text><text id=\"msg_2\"><string text=\"Tiles can only be swapped if it results in matching three in a row.\"/></text><text id=\"msg_3\"><string text=\"Finish the level by dropping all the item pieces to the bottom of the game field.\"/></text><text id=\"msg_4\"><string text=\"This is your carpet-bag. By clicking on it you can view all the items you have been able to collect in this country and read Mr. Fogg's note-book.\"/></text><text id=\"msg_5\"><string text=\"By clicking the eye you can pause the game and enjoy beautiful views of the land you are in.\"/></text><text id=\"msg_6\"><string text=\"This is a timer. It shows how much time you have left to complete the level.\"/></text><text id=\"msg_7\"><string text=\"This is a time bonus. Drive it down to the bottom of the game field to collect it and freeze the timer.\"/></text><text id=\"msg_8\"><string text=\"By matching four tiles or more you recharge and upgrade the power-ups that will help you free the way for the item pieces. Charge the power-up to 100% to be able to use it.\"/></text><text id=\"msg_9\"><string text=\"A charged power-up can be upgraded by continuing to match four tiles or more. The Hammer will be upgraded when the meter is full.\"/></text><text id=\"msg_10\"><string text=\"The Hammer power-up is ready! You can use it to get rid of an inconvenient tile on the game field. To do that click on the Hammer and point to the tile you want to smash.\"/></text><text id=\"msg_11\"><string text=\"You have upgraded the Hammer to Tesla's Hammer. It can be used to destroy all tiles of a certain type present on the game field.\"/></text><text id=\"msg_12\"><string text=\"You have charged the Bomb power-up. It can be used to destroy a cluster of tiles in a certain area of the game field.\"/></text><text id=\"msg_13\"><string text=\"You have charged the Fireball power-up. It will help you clear the way for the item pieces in multiple directions.\"/></text><text id=\"msg_14\"><string text=\"Make matches of three or more tiles to open the stamp that is hidden under the game field.\"/></text><text id=\"msg_15\"><string text=\"A locked tile. To break the lock bring the other matching tiles to the locked one.\"/></text><text id=\"msg_16\"><string text=\"A double-locked tile. You will need to break the lock twice.\"/></text><text id=\"msg_17\"><string text=\"You have revealed a part of the stamp. Continue to play and open the rest of it step by step.\"/></text><text id=\"HelpText11\"><string text=\"Swap adjacent|tiles to make|matches of|three or more.\"/></text><text id=\"HelpText13\"><string text=\"Drive all the item pieces to|the bottom of the game|field by getting rid of|tiles underneath them.\"/></text><text id=\"HelpText12\"><string text=\"The clock|shows how|much time|you have left|to complete|the level.\"/></text><text id=\"HelpText21\"><string text=\"By matching four tiles or more you recharge|and upgrade the power-ups that will help|you free the way for the item pieces.\"/></text><text id=\"HelpText22\"><string text=\"To collect these bonuses free them|through the bottom of the game field.\"/></text><text id=\"HelpText31\"><string text=\"Make matches of three or|more tiles to open the|stamp under the game field.\"/></text><text id=\"HelpText32\"><string text=\"The level is completed,|when the entire stamp is open.\"/></text><text id=\"TextNag\"><string text=\"- Adventure game with outstanding| storyline, beautiful animation| and challenging puzzles.||- Extremely addictive gameplay| with 81+ levels.||- High-quality colorful| graphics and soundtrack.||- Bonus animated screensaver.||- Marvelous adaptation of the| Jules Verne Victorian travelogue.||- Book a trip. It will be first class!\"/></text><text id=\"TextGameOverNag\"><string text=\"Unfortunately you were not\"/><string text=\"able to collect all the items\"/><string text=\"to continue your journey.\"/></text><text id =\"TextCompleteNag\"><string text=\"You have completed the part|of the journey offered|by the online version of|Around the World in 80 Days.|To continue, please try|the full version of the game\"/></text><text id=\"MapMarkaTip11\"><string text=\"Stamp acquired| in England.\"/></text><text id=\"MapMarkaTip12\"><string text=\"Stamp acquired| in France.\"/></text><text id=\"MapMarkaTip13\"><string text=\"Stamp acquired| in Egypt.\"/></text><text id=\"MapMarkaTip14\"><string text=\"Stamp acquired| in India.\"/></text><text id=\"MapMarkaTip15\"><string text=\"Stamp acquired| in China.\"/></text><text id=\"MapMarkaTip16\"><string text=\"Stamp acquired| in Japan.\"/></text><text id=\"MapMarkaTip17\"><string text=\"Stamp acquired| in the USA.\"/></text><text id=\"MapMarkaTip21\"><string text=\"Collect a stamp| in England.\"/></text><text id=\"MapMarkaTip22\"><string text=\"Collect a stamp| in France.\"/></text><text id=\"MapMarkaTip23\"><string text=\"Collect a stamp| in Egypt.\"/></text><text id=\"MapMarkaTip24\"><string text=\"Collect a stamp| in India.\"/></text><text id=\"MapMarkaTip25\"><string text=\"Collect a stamp| in China.\"/></text><text id=\"MapMarkaTip26\"><string text=\"Collect a stamp| in Japan.\"/></text><text id=\"MapMarkaTip27\"><string text=\"Collect a stamp| in the USA.\"/></text><text id=\"BonusTip1\"><string font=\"BonusHint\" text=\"Select a tile to smash.\"/></text><text id=\"BonusTip2\"><string font=\"BonusHint\" text=\"Point to a type of tiles|on the game field that you|would like to destroy.\"/></text><text id=\"BonusTip3\"><string font=\"BonusHint\" text=\"Point to an area on the|game field that you would|like to blast.\"/></text><text id=\"BonusTip4\"><string font=\"BonusHint\" text=\"Select a tile to hit with|a fireball and clear lines|in all directions.\"/></text><text id=\"IntroText1\"><string text=\"This amazing story started in London on one of the cloudy days in the autumn of 1872.|Phileas Fogg, a true Englishman, was a member of the Reform Club and this was where this affair began. Many of the most honourable members gathered in the great saloon of the club that day. The conversation turned to an article in The Daily Telegraph, stating that it was now possible to travel around the world in 80 days...\"/></text><text id=\"IntroText2\"><string text=\"All unanimously agreed that it was in fact impossible. All except Mr. Phileas Fogg... His bold statement created a lively sensation. When Fogg was prompted to prove his claim by action, Mr. Stuart, the chairman of the club, made a wager with him. The stake was inconceivable. If Phileas Fogg is able to accomplish the journey around the world in 80 days he will get Mr. Stuart's post.|The adventures begin...\"/></text></TextResources>";
if (GetVar("bypass") == "true") {
KB._y = (loadbar._y = (loadline._y = 5000));
}
var VersionPl = String($version).split(" ")[1].split(",")[0];
if ((VersionPl > 6) || (VersionPl < 3)) {
var XMLLoader = new LoadGameXML(this, artXML, dialXML, levXML, texXML, Loading);
}
Frame 2
this.gotoAndStop(1);
Frame 3
function TextShow(Inside, Str, l, W, H, C, WT, HT, format, SC, EC) {
function Attach(STR) {
if (att) {
Inside.TEXT.attachMovie(STR + l, U, Inside.TEXT.getNextHighestDepth());
} else {
Inside.TEXT.createEmptyMovieClip(U, Inside.TEXT.getNextHighestDepth());
AttachLetter(Inside.TEXT[U], STR);
}
var _local1 = Inside.TEXT[U];
_local1._x = X;
_local1._y = Y;
if (Inside.TEXT[U]._width != undefined) {
wid = Inside.TEXT[U]._width;
X = X + (wid + W);
Len++;
}
}
function AttachLetter(InS, Str) {
InS.createTextField("TEXT", InS.getNextHighestDepth(), 0, -10, 0, 0);
InS.TEXT.multiline = true;
InS.TEXT.embedFonts = l == "GameFont";
InS.TEXT.autoSize = "left";
InS.TEXT.selectable = false;
var format = new TextFormat();
format.font = l;
format.size = WT;
format.bold = true;
format.color = HT;
format.align = "left";
format.leftMargin = 0;
format.rightMargin = 0;
InS.TEXT.text = Str;
InS.TEXT.setTextFormat(format);
if (InS.TEXT._width < 5) {
format.font = "GameFont";
InS.TEXT.embedFonts = true;
InS.TEXT.text = Str;
InS.TEXT.setTextFormat(format);
}
if (l == "gradient") {
var Wi = InS.TEXT._width;
var He = InS.TEXT._height;
InS.createEmptyMovieClip("s", 100);
with (InS.s) {
colors = [SC, EC];
alphas = [100, 100];
ratios = [0, 255];
lineStyle(1, 0);
matrix = {matrixType:"box", x:0, y:0, w:Wi, h:He, r:(Math.PI/4)};
beginGradientFill("linear", colors, alphas, ratios, matrix);
moveTo(0, 0);
lineTo(0, He);
lineTo(Wi, He);
lineTo(Wi, 0);
lineTo(0, 0);
endFill();
}
InS.s._y = InS.s._y - 10;
InS.s.setMask(InS.TEXT);
}
}
if ((l == undefined) || (l == "0")) {
l = "GameFont";
W = -4;
H = 15;
C = 1;
WT = 16;
HT = 7353626 /* 0x70351A */;
}
W = W - 0.5;
if ((format == undefined) || (format == 0)) {
format = 1000;
}
Letter = 0;
var Lines = 0;
var Len = 0;
Str = Str.split("'").join("'");
Str = Str.split(""").join("\"");
var X = 0;
var Y = 0;
var L = 0;
var wid = 0;
var mc = Inside.attachMovie(Str.substr(0, 1) + l, "AAA", Inside.getNextHighestDepth(), {_x:-1000});
var att = (mc._name != undefined);
mc.removeMovieClip();
Inside.TEXT.removeMovieClip();
Inside.TEXT.removeTextField();
Inside.createEmptyMovieClip("TEXT", Inside.getNextHighestDepth());
var i = 0;
while (i < Str.length) {
var j = Str.substr(i, 1);
if (j == "|") {
if (Len > Letter) {
Letter = Len;
}
Len = 0;
if (C == 1) {
X = X / 2;
var k = 0;
while (k < Str.length) {
Inside.TEXT[(("t" + k) + "y") + L]._x = Inside.TEXT[(("t" + k) + "y") + L]._x - X;
k++;
}
} else if (C == 2) {
var k = 0;
while (k < Str.length) {
Inside.TEXT[(("t" + k) + "y") + L]._x = Inside.TEXT[(("t" + k) + "y") + L]._x - X;
k++;
}
}
L++;
X = 0;
if ((H == 0) || (H == undefined)) {
H == 12;
}
Y = Y + H;
} else {
var U = ((("t" + i) + "y") + L);
if (j == " ") {
if (X > format) {
Str = (Str.substr(0, i - 1) + "|") + Str.substr(i + 1, Str.length);
i = i - 2;
} else if (Inside.TEXT.t0y0._width > 0) {
X = X + ((Inside.TEXT.t0y0._width * 3) / 4);
Len++;
}
} else {
Attach(String(j));
}
}
i++;
}
if (C == 1) {
X = X / 2;
var k = 0;
while (k < Str.length) {
Inside.TEXT[(("t" + k) + "y") + L]._x = Inside.TEXT[(("t" + k) + "y") + L]._x - X;
k++;
}
} else if (C == 2) {
var k = 0;
while (k < Str.length) {
Inside.TEXT[(("t" + k) + "y") + L]._x = Inside.TEXT[(("t" + k) + "y") + L]._x - X;
k++;
}
}
if (Len > Letter) {
Letter = Len;
}
return(L);
}
function ConvertText(hint) {
Lines = 0;
var _local4 = "";
var _local2 = 0;
var _local1 = 0;
while (_local1 < hint.length) {
var _local3 = hint.substr(_local1, 1);
if (_local3 == "|") {
if (_local2 > Letter) {
Letter = _local2;
}
_local2 = 0;
_local4 = _local4 + newline;
Lines++;
} else {
_local4 = _local4 + _local3;
_local2++;
}
_local1++;
}
if (_local2 > Letter) {
Letter = _local2;
}
return(_local4);
}
function CallHint() {
clearInterval(hinting);
hinting = setInterval(function () {
FunctionHelp();
clearInterval(hinting);
}, 3000);
}
function InitRound() {
Matches = (Tiles = (MaxChain = (Chain = (Pieces = (BonusTime = 0)))));
if (SaveMode.value != "false") {
Saving.SaveInfo();
}
notBlock = false;
ClearAll(_root, 1, 1);
RoundCountry = getCountry(NRound);
RoundSity = getLevel(NRound);
BonusLevel = map[RoundCountry][RoundSity].bonus == "true";
_root.createEmptyMovieClip("GlobalGame", 10);
gamef = GlobalGame.createEmptyMovieClip("gamef", 20);
game = GlobalGame.createEmptyMovieClip("game", 30);
fly = GlobalGame.createEmptyMovieClip("fly", 40);
flyart = GlobalGame.createEmptyMovieClip("flyart", 50);
sumka3d = GlobalGame.createEmptyMovieClip("sumka3d", 11);
fffon = GlobalGame.attachMovie("gamefield_ramka", "fffon", 9);
if (NRound == 0) {
sumka3d._x = 70;
}
sumka_3d = new Suc(sumka3d);
sumka_3d.InitPress();
game._x = (fly._x = (gamef._x = 141));
game._y = (fly._y = (gamef._y = 20));
SomeMove = false;
gamefon = GlobalGame.attachMovie("gamefon", "gamefon", 10, {_alpha:0});
SCORE = new Score(gamefon.score, score);
fon = GlobalGame.attachMovie("fon", "fon", 5);
fon.Init("c" + RoundCountry);
fon.Time = (fon.LevelTime = map[RoundCountry][RoundSity].time * 1000);
GenerateMatrix(RoundCountry, RoundSity);
DrawGameFon();
DrawGameField();
switch (NRound) {
case 0 :
InitDialog(0);
break;
case 7 :
InitDialog(1);
break;
case 8 :
InitDialog(2);
break;
case 17 :
InitDialog(3);
break;
default :
StartRound();
}
}
function StartingHint() {
notBlock = true;
switch (NRound) {
case 0 :
StartHint(0);
break;
case 1 :
StartHint(4);
break;
case 2 :
StartHint(5);
break;
case 3 :
StartHint(6);
break;
case 7 :
StartHint(14);
break;
case 8 :
StartHint(15);
break;
case 10 :
StartHint(16);
}
if (NRound) {
HintArr[2] = 0;
}
}
function StartRound() {
levelstart_s.start(SoundOn);
ShowMovingText(_root["TextCountry" + int(RoundCountry + 1)].value, (TextDay.value + " ") + int(NRound + 1), MyDelegate.create(gamefon, gamefon.EYEUnpressed, [500]));
}
function InitSound() {
function AddSound(NameA, MC) {
for (var _local4 in NameA) {
_root[NameA[_local4]] = new GameSound(NameA[_local4], MC);
}
}
_root.createEmptyMovieClip("SoundsClip", 58);
var _local3 = ["AddArtefact_s", "ArtefactCollect_s", "bomb_s", "match1_s", "match2_s", "match3_s", "match4_s", "match5_s", "match6_s", "ButtonClick_s", "Click_s", "ChipToSun_s", "Hummer_s", "lazer_s", "LevelComplete_s", "levelstart_s", "Listing_s", "MegaCross_s", "panelslide_s", "stats_s", "TipWindow_s", "bonus_s", "go_s", "no_s", "sunadd_s", "unlock_s", "watch_s", "mmm_s"];
AddSound(_local3, _root.SoundsClip);
match1_s.setVolume(60);
}
function GenerateMatrix(country, sity) {
Matrix = new Array();
var _local3 = new Array();
var _local4 = map[country][sity];
SunInc4 = Number(_local4.SunInc4);
SunInc5 = Number(_local4.SunInc5);
SunInc6 = Number(_local4.SunInc6);
var _local5 = 1;
var _local2 = 0;
while (_local2 < _local4.length) {
j = 0;
while (j < _local4[_local2].length) {
do {
var done = true;
var _local1 = FindRandomTile();
if (((_local2 > 1) && ((Matrix[_local2 - 1][j] == _local1) || (Matrix[_local2 - 1][j].substr(5, 10) == _local1))) && ((Matrix[_local2 - 2][j] == _local1) || (Matrix[_local2 - 2][j].substr(5, 10) == _local1))) {
done = false;
}
if (((j > 1) && ((_local3[j - 1] == _local1) || (_local3[j - 1].substr(5, 10) == _local1))) && ((_local3[j - 2] == _local1) || (_local3[j - 2].substr(5, 10) == _local1))) {
done = false;
}
} while (!done);
switch (_local4[_local2][j]) {
case "1" :
_local3[j] = _local1;
break;
case "-" :
_local1 = "lock1" + _local1;
break;
case "+" :
case "*" :
_local1 = "lock2" + _local1;
break;
case "S" :
case "T" :
_local1 = "watch";
_local4[_local2][j] = "1";
break;
case "A" :
_local1 = (_local5 + "a") + NRound;
_local5++;
break;
default :
_local1 = "0";
}
_local3[j] = _local1;
j++;
}
Matrix[_local2] = _local3;
_local3 = new Array();
_local2++;
}
}
function DrawGameFon() {
var _local7 = int((11 - Matrix.length) / 2) * Size;
var _local8 = int((11 - Matrix[0].length) / 2) * Size;
var _local15 = gamef.attachMovie("levelfon", "gamefff", 2);
var _local13 = gamef.createEmptyMovieClip("gameff", 3);
var _local12 = gamef.createEmptyMovieClip("gamef_f", 1);
_local12._alpha = 50;
var _local2 = 0;
while (_local2 < 11) {
var _local1 = 0;
while (_local1 < 11) {
if ((Matrix[_local2][_local1] != "0") && (Matrix[_local2][_local1] != undefined)) {
_local12.attachMovie("black", ("b" + _local2) + _local1, GetDepth(_local2, _local1), {_x:(_local8 + (_local1 * Size)) + 10, _y:(_local7 + (_local2 * Size)) + 10, _width:Size, _height:Size});
var _local4 = _local13.attachMovie("bonus_level_fon_fon", ("gf" + _local2) + _local1, GetDepth(_local2, _local1));
_local4._x = _local8 + (_local1 * Size);
_local4._y = _local7 + (_local2 * Size);
_local4._width = Size;
_local4._height = Size;
var _local5 = true;
var _local3;
if ((Matrix[_local2 - 1][_local1] == "0") || (Matrix[_local2 - 1][_local1] == undefined)) {
if (_local5) {
_local3 = gamef.createEmptyMovieClip(("borderclip" + _local2) + _local1, GetDepth(_local2, _local1) + 1);
_local3._x = _local4._x;
_local3._y = _local4._y;
_local5 = false;
}
var _local6 = _local3.attachMovie("border", "u", 0);
_local6._y = _local6._y - 3;
if ((Matrix[_local2][_local1 - 1] == "0") || (Matrix[_local2][_local1 - 1] == undefined)) {
_local6._x = _local6._x - 6;
_local6._width = _local6._width + 6;
}
if ((Matrix[_local2][_local1 + 1] == "0") || (Matrix[_local2][_local1 + 1] == undefined)) {
_local6._width = _local6._width + 6;
}
}
if ((Matrix[_local2 + 1][_local1] == "0") || (Matrix[_local2 + 1][_local1] == undefined)) {
if (_local5) {
_local3 = gamef.createEmptyMovieClip(("borderclip" + _local2) + _local1, GetDepth(_local2, _local1) + 1);
_local3._x = _local4._x;
_local3._y = _local4._y;
_local5 = false;
}
var _local6 = _local3.attachMovie("border", "d", 1, {_x:Size, _y:Size, _rotation:180});
_local6._y = _local6._y + 3;
if ((Matrix[_local2][_local1 + 1] == "0") || (Matrix[_local2][_local1 + 1] == undefined)) {
_local6._x = _local6._x + 6;
_local6._width = _local6._width + 6;
}
if ((Matrix[_local2][_local1 - 1] == "0") || (Matrix[_local2][_local1 - 1] == undefined)) {
_local6._width = _local6._width + 6;
}
}
if ((Matrix[_local2][_local1 - 1] == "0") || (Matrix[_local2][_local1 - 1] == undefined)) {
if (_local5) {
_local3 = gamef.createEmptyMovieClip(("borderclip" + _local2) + _local1, GetDepth(_local2, _local1) + 1);
_local3._x = _local4._x;
_local3._y = _local4._y;
_local5 = false;
}
var _local6 = _local3.attachMovie("border", "l", 2, {_x:0, _y:Size, _rotation:-90});
_local6._x = _local6._x - 3;
}
if ((Matrix[_local2][_local1 + 1] == "0") || (Matrix[_local2][_local1 + 1] == undefined)) {
if (_local5) {
_local3 = gamef.createEmptyMovieClip(("borderclip" + _local2) + _local1, GetDepth(_local2, _local1) + 1);
_local3._x = _local4._x;
_local3._y = _local4._y;
_local5 = false;
}
var _local6 = _local3.attachMovie("border", "r", 3, {_x:Size, _y:0, _rotation:90});
_local6._x = _local6._x + 3;
}
}
_local1++;
}
_local2++;
}
GlobalX = _local8;
GlobalY = _local7;
_local15.setMask(_local13);
if (BonusLevel) {
var _local16 = gamef.attachMovie(("c" + RoundCountry) + "bonusfon", "bonusfon", 4, {_x:-1, _y:0});
var _local14 = gamef.createEmptyMovieClip("bonus_fon_mask", 5);
_local16.setMask(_local14);
}
}
function AttachLock(mc, T) {
mc.lock = T;
mc.l.removeMovieClip();
if (T != "") {
mc.attachMovie(T, "l", 100);
}
}
function DrawGameField() {
var _local2 = 0;
while (_local2 < 11) {
var _local1 = 0;
while (_local1 < 11) {
if (Matrix[_local2][_local1] != "0") {
if (Matrix[_local2][_local1].substr(0, 4) == "lock") {
var _local4 = Matrix[_local2][_local1].substr(0, 5);
var _local3 = game.attachMovie(Matrix[_local2][_local1].substr(5, 100), FindName(_local2, _local1), GetDepth(_local2, _local1));
AttachLock(_local3, _local4);
} else {
var _local3 = game.attachMovie(Matrix[_local2][_local1], FindName(_local2, _local1), GetDepth(_local2, _local1));
}
_local3._x = GlobalX + (_local1 * Size);
_local3._y = GlobalY + (_local2 * Size);
}
_local1++;
}
_local2++;
}
}
function FindRandomTile() {
var _local2 = random(map[RoundCountry][RoundSity].chips.length);
var _local1 = "slide" + Number(Number(map[RoundCountry][RoundSity].chips[_local2]) + 1);
return(_local1);
}
function FindI(Name) {
var _local4;
var _local1 = Name.indexOf("Y");
var _local3 = (Name.indexOf("X") - _local1) - 1;
_local4 = Number(Name.substr(_local1 + 1, _local3));
return(_local4);
}
function FindJ(Name) {
var _local2;
var _local1 = Name.indexOf("X");
_local2 = Number(Name.substr(_local1 + 1, 2));
return(_local2);
}
function GetDepth(i, j) {
return((3 * (((2 * i) * Matrix[0].length) + j)) + 500);
}
function FindName(i, j) {
return((("sY" + i) + "X") + j);
}
function RemoveTiles(n1, n2) {
var _local3 = game[n2];
var _local2 = game[n1];
clearInterval(_local3.moving);
clearInterval(_local2.moving);
_local3._x = (FindJ(n1) * Size) + GlobalX;
_local3._y = (FindI(n1) * Size) + GlobalY;
_local2._x = (FindJ(n2) * Size) + GlobalX;
_local2._y = (FindI(n2) * Size) + GlobalY;
_local3.Stop();
_local2.Stop();
_local3.active = false;
_local2.active = false;
Blink = "";
Release();
_local2._name = n2;
_local3._name = n1;
var _local10 = Matrix[FindI(n1)][FindJ(n1)];
Matrix[FindI(n1)][FindJ(n1)] = Matrix[FindI(n2)][FindJ(n2)];
Matrix[FindI(n2)][FindJ(n2)] = _local10;
_local3.swapDepths(_local2);
if (!FindChain()) {
_root.no_s.start(_root.SoundOn);
StartHint(2);
_local2._name = n1;
_local3._name = n2;
_local10 = Matrix[FindI(n1)][FindJ(n1)];
Matrix[FindI(n1)][FindJ(n1)] = Matrix[FindI(n2)][FindJ(n2)];
Matrix[FindI(n2)][FindJ(n2)] = _local10;
_local3.swapDepths(_local2);
var _local9 = _local3._x;
var _local7 = _local2._x;
var _local8 = _local3._y;
var _local6 = _local2._y;
_local3.Move(_local9, _local8, _local7, _local6, SwapTime);
_local2.Move(_local7, _local6, _local9, _local8, SwapTime);
notBlock = true;
} else {
Matches++;
clearInterval(Falling);
Falling = setInterval(FallDown, FallPauseTime);
}
}
function Release() {
Mouse.removeListener(oMouse);
}
function Dragging(str) {
var _local3 = _root._xmouse;
var _local2 = _root._ymouse;
if ((Math.abs(xmouse - _local3) > Step) || (Math.abs(ymouse - _local2) > Step)) {
Mouse.removeListener(oMouse);
if (notBlock) {
DragSlide(xmouse, _local3, ymouse, _local2, str);
}
}
}
function DragSlide(x, x1, y, y1, slide) {
notBlock = false;
var _local16 = game[slide];
var _local2 = 0;
var _local1 = 0;
if ((x > (x1 + Step)) && (Math.abs(x - x1) >= Math.abs(y - y1))) {
_local1 = -1;
} else if (((x + Step) < x1) && (Math.abs(x - x1) >= Math.abs(y - y1))) {
_local1 = 1;
} else if (((y + Step) < y1) && (Math.abs(x - x1) < Math.abs(y - y1))) {
_local2 = 1;
} else if ((y > (y1 + Step)) && (Math.abs(x - x1) < Math.abs(y - y1))) {
_local2 = -1;
}
if (((_local2 * _local2) + (_local1 * _local1)) == 0) {
notBlock = true;
} else {
var _local13 = FindI(slide);
var _local9 = FindJ(slide);
var _local10 = _local13 + _local2;
var _local6 = _local9 + _local1;
var _local14 = FindName(_local10, _local6);
var _local3 = game[_local14];
if ((_local3 != undefined) && (_local3.lock == "")) {
Blink = _local14;
x1 = (_local9 * Size) + GlobalX;
var _local11 = (_local6 * Size) + GlobalX;
y1 = (_local13 * Size) + GlobalY;
var _local7 = (_local10 * Size) + GlobalY;
_local16.Move(x1, y1, _local11, _local7, SwapTime, RemoveTiles);
_local3.Move(_local11, _local7, x1, y1, SwapTime);
_local3.Play();
} else {
Blink = slide;
notBlock = true;
}
}
}
function OverMove() {
if (notBlock && (this.lock == "")) {
if (Blink != this) {
this.StartShine();
}
}
}
function OutMove() {
if (notBlock && (this.lock == "")) {
this.StopShine();
}
}
function CheckClick(name) {
Release();
if (Blink == "") {
return(true);
}
notBlock = false;
var _local4 = FindI(name);
var _local2 = FindJ(name);
var _local6 = Blink;
var _local3 = FindI(_local6);
var _local1 = FindJ(_local6);
if (((_local4 == _local3) && (Math.abs(_local2 - _local1) == 1)) || ((_local2 == _local1) && (Math.abs(_local4 - _local3) == 1))) {
var _local9 = (_local2 * Size) + GlobalX;
var _local7 = (_local1 * Size) + GlobalX;
var _local8 = (_local4 * Size) + GlobalY;
var _local5 = (_local3 * Size) + GlobalY;
game[name].Move(_local9, _local8, _local7, _local5, SwapTime, RemoveTiles);
game[Blink].Move(_local7, _local5, _local9, _local8, SwapTime);
} else {
if (((_local4 - _local3) == 0) && ((_local2 - _local1) == 0)) {
notBlock = true;
return(true);
}
notBlock = true;
game[Blink].Stop();
return(true);
}
}
function Press() {
Mouse.removeListener(oMouse);
if (notBlock && (this.lock == "")) {
Click_s.start(SoundOn);
FromHint();
this.Play();
if (Blink == this._name) {
Blink = "";
this.Stop();
} else if (CheckClick(this._name)) {
Blink = this._name;
}
xmouse = _root._xmouse;
ymouse = _root._ymouse;
var temp = this._name;
oMouse = {};
oMouse.onMouseMove = function () {
Dragging(temp);
};
Mouse.addListener(oMouse);
}
StartTimer();
}
function ShowScore(i, j, n) {
var _local4 = ((j * Size) / n) + GlobalX;
var _local3 = ((i * Size) / n) + GlobalY;
var _local1 = fly.createEmptyMovieClip((("sc" + i) + j) + getTimer(), fly.getD());
_local1._x = _local4 + (Size / 2);
_local1._y = _local3;
_local1.createEmptyMovieClip("o1", 1);
_local1.createEmptyMovieClip("o2", 0);
_local1.o2._x = 2;
_local1.o2._y = 2;
TextShow(_local1.o1, "+" + String(n * 5), "GameFont", 0, 0, 1, 12, TextYellowLight);
TextShow(_local1.o2, "+" + String(n * 5), "GameFont", 0, 0, 1, 12, TextBlack);
_local1.t = getTimer();
_local1.y = _local3;
_local1.onEnterFrame = BlowScores;
SCORE.Add(n * 5);
}
function BlowScores() {
var _local3 = 1000;
var _local2 = (getTimer() - this.t) / _local3;
if (_local2 >= 1) {
this.removeMovieClip();
}
this._y = this.y - (50 * _local2);
this._alpha = 100 - ((100 * _local2) * _local2);
}
function FindChain(chk, P) {
function FindBlow() {
var _local4 = 0;
while (_local4 < Matrix.length) {
var _local3 = 0;
while (_local3 < Matrix[0].length) {
if (game[FindName(_local4, _local3) + "A"] != undefined) {
var _local1 = game[FindName(_local4, _local3) + "A"];
var _local5 = 0;
var _local6 = 0;
ChipToSun_s.start((SoundOn && (_local1.length > 3)) && ((ChipToSun_s.position == 0) || (ChipToSun_s.position == ChipToSun_s.duration)));
var _local2 = 0;
while (_local2 < _local1.length) {
i1 = Number(_local1[_local2].i);
j1 = Number(_local1[_local2].j);
_local5 = _local5 + i1;
_local6 = _local6 + j1;
if (_local1.length < 4) {
Blow(i1, j1);
} else {
var _local7 = ((_local1.length > 6) ? 6 : (_local1.length));
Blow(i1, j1, int(Chain + 10));
}
_local2++;
}
ShowScore(_local5, _local6, _local1.length);
delete game[FindName(_local4, _local3) + "A"];
}
_local3++;
}
_local4++;
}
}
function FindMatch(i, j, M) {
function ClearM(i, j, M) {
Matrix1[i][j] = "no";
var _local1 = new Array("i", "j");
_local1.i = i;
_local1.j = j;
M.push(_local1);
}
var _local4 = Matrix[i][j];
if (_local4.substr(0, 4) == "lock") {
_local4 = _local4.substr(5, 10);
} else {
_local4 = Matrix[i][j].substr(0, 6);
}
if (_local4.substr(0, 1) == "s") {
if (((Matrix[i - 1][j].substr(0, 6) == _local4) || (Matrix[i - 1][j].substr(5, 10) == _local4)) && ((Matrix[i + 1][j].substr(0, 6) == _local4) || (Matrix[i + 1][j].substr(5, 10) == _local4))) {
if (Matrix1[i - 1][j] != "no") {
ClearM(i - 1, j, M);
FindMatch(i - 1, j, M);
}
if (Matrix1[i][j] != "no") {
ClearM(i, j, M);
FindMatch(i, j, M);
}
if (Matrix1[i + 1][j] != "no") {
ClearM(i + 1, j, M);
FindMatch(i + 1, j, M);
}
done = true;
}
if (((Matrix[i + 2][j].substr(0, 6) == _local4) || (Matrix[i + 2][j].substr(5, 10) == _local4)) && ((Matrix[i + 1][j].substr(0, 6) == _local4) || (Matrix[i + 1][j].substr(5, 10) == _local4))) {
if (Matrix1[i + 2][j] != "no") {
ClearM(i + 2, j, M);
FindMatch(i + 2, j, M);
}
if (Matrix1[i][j] != "no") {
ClearM(i, j, M);
FindMatch(i, j, M);
}
if (Matrix1[i + 1][j] != "no") {
ClearM(i + 1, j, M);
FindMatch(i + 1, j, M);
}
done = true;
}
if (((Matrix[i - 2][j].substr(0, 6) == _local4) || (Matrix[i - 2][j].substr(5, 10) == _local4)) && ((Matrix[i - 1][j].substr(0, 6) == _local4) || (Matrix[i - 1][j].substr(5, 10) == _local4))) {
if (Matrix1[i - 2][j] != "no") {
ClearM(i - 2, j, M);
FindMatch(i - 2, j, M);
}
if (Matrix1[i][j] != "no") {
ClearM(i, j, M);
FindMatch(i, j, M);
}
if (Matrix1[i - 1][j] != "no") {
ClearM(i - 1, j, M);
FindMatch(i - 1, j, M);
}
done = true;
}
if (((Matrix[i][j + 2].substr(0, 6) == _local4) || (Matrix[i][j + 2].substr(5, 10) == _local4)) && ((Matrix[i][j + 1].substr(0, 6) == _local4) || (Matrix[i][j + 1].substr(5, 10) == _local4))) {
if (Matrix1[i][j + 2] != "no") {
ClearM(i, j + 2, M);
FindMatch(i, j + 2, M);
}
if (Matrix1[i][j] != "no") {
ClearM(i, j, M);
FindMatch(i, j, M);
}
if (Matrix1[i][j + 1] != "no") {
ClearM(i, j + 1, M);
FindMatch(i, j + 1, M);
}
done = true;
}
if (((Matrix[i][j - 1].substr(0, 6) == _local4) || (Matrix[i][j - 1].substr(5, 10) == _local4)) && ((Matrix[i][j + 1].substr(0, 6) == _local4) || (Matrix[i][j + 1].substr(5, 10) == _local4))) {
if (Matrix1[i][j - 1] != "no") {
ClearM(i, j - 1, M);
FindMatch(i, j - 1, M);
}
if (Matrix1[i][j] != "no") {
ClearM(i, j, M);
FindMatch(i, j, M);
}
if (Matrix1[i][j + 1] != "no") {
ClearM(i, j + 1, M);
FindMatch(i, j + 1, M);
}
done = true;
}
if (((Matrix[i][j - 2].substr(0, 6) == _local4) || (Matrix[i][j - 2].substr(5, 10) == _local4)) && ((Matrix[i][j - 1].substr(0, 6) == _local4) || (Matrix[i][j - 1].substr(5, 10) == _local4))) {
if (Matrix1[i][j - 2] != "no") {
ClearM(i, j - 2, M);
FindMatch(i, j - 2, M);
}
if (Matrix1[i][j] != "no") {
ClearM(i, j, M);
FindMatch(i, j, M);
}
if (Matrix1[i][j - 1] != "no") {
ClearM(i, j - 1, M);
FindMatch(i, j - 1, M);
}
done = true;
}
}
return(done);
}
var done = false;
Matrix1 = new Array();
var _local6 = 0;
while (_local6 < Matrix.length) {
var _local10 = new Array();
var _local5 = 0;
while (_local5 < Matrix[_local6].length) {
_local10[_local5] = 0;
_local5++;
}
Matrix1[_local6] = _local10;
_local6++;
}
if (P == undefined) {
_local6 = 0;
while (_local6 < Matrix.length) {
var _local5 = 0;
while (_local5 < Matrix[_local6].length) {
if (Matrix1[_local6][_local5] != "no") {
game[FindName(_local6, _local5) + "A"] = new Array();
done = FindMatch(_local6, _local5, game[FindName(_local6, _local5) + "A"]);
if (game[FindName(_local6, _local5) + "A"].length < 3) {
delete game[FindName(_local6, _local5) + "A"];
}
}
_local5++;
}
_local6++;
}
if (done && (chk != "no")) {
FindBlow();
}
if ((!done) && (chk == 1)) {
var _local5 = 0;
while (_local5 < Matrix[0].length) {
var _local4 = Matrix.length - 1;
while (Matrix[_local4][_local5] == "0") {
_local4--;
}
if (Matrix[_local4][_local5].substr(1, 1) == "a") {
done = true;
}
_local5++;
}
}
} else {
var _local8 = 0;
while (_local8 < P.length) {
_local6 = P[_local8].i;
var _local5 = P[_local8].j;
if (Matrix1[_local6][_local5] != "no") {
game[FindName(_local6, _local5) + "A"] = new Array();
done = FindMatch(_local6, _local5, game[FindName(_local6, _local5) + "A"]);
delete game[FindName(_local6, _local5) + "A"];
if (done) {
return(done);
}
}
_local8++;
}
}
return(done);
}
function BlowingF(t) {
_root[("match" + t) + "_s"].start(SoundOn);
clearInterval(blowingscore);
}
function Blow(i, j, l, c) {
if (!c) {
var _local7 = Chain + 1;
if (_local7 > 6) {
_local7 = 6;
}
clearInterval(blowingscore);
blowingscore = setInterval(BlowingF, 10, _local7);
}
var _local8 = false;
notBlock = false;
if (BonusLevel && (!gamef.bonus_fon_mask[("b" + i) + j])) {
_root.IHelp = i;
_root.JHelp = j;
StartHint(17);
gamef.gameff[("gf" + i) + j].gotoAndPlay(2);
gamef.bonus_fon_mask.attachMovie("bonus_level_fon", ("b" + i) + j, GetDepth(i, j), {_x:GlobalX + (j * Size), _y:GlobalY + (i * Size)});
CheckEndBonus();
}
if (Matrix[i][j].substr(0, 1) == "s") {
_local8 = true;
var _local5 = FindName(i, j);
var _local4 = Matrix[i][j];
game[_local5].DeleteFly(_local5);
game[_local5].Delete(_local5);
game[_local5].Remove();
Matrix[i][j] = "no";
Tiles++;
} else if (Matrix[i][j].substr(0, 4) == "lock") {
_local8 = true;
var _local5 = FindName(i, j);
var _local4 = Matrix[i][j].substr(0, 5);
_local4 = ((_local4 == "lock2") ? "lock1" : "");
_root.unlock_s.start(_root.SoundOn);
AttachLock(game[_local5], _local4);
game[_local5].DeleteFly(_local5);
clearInterval(game[_local5].moving);
Matrix[i][j] = _local4 + Matrix[i][j].substr(5, 100);
_local4 = "lock1";
}
if (_local8) {
if ((l != 0) || (_local4.substr(0, 1) == "l")) {
var _local11 = fly.getD();
var _local6 = fly.attachMovie(_local4, _local5, _local11);
var _local15 = (_local6._x = (j * Size) + GlobalX);
var _local14 = (_local6._y = (i * Size) + GlobalY);
}
if ((l == undefined) || ((_local4.substr(0, 1) == "l") && (l == 0))) {
var _local15 = (_local6._x = (j * Size) + GlobalX);
var _local14 = (_local6._y = (i * Size) + GlobalY);
var _local12 = _local15 + ((random(3) - 1) * 10);
var _local10 = _local14 + 100;
var _local13 = 1 - (random(2) * 2);
_local6.Move(_local15, _local14, _local12, _local10, FallTime * 2, _local6.DeleteFly, 100, 10, _local13);
} else if (l > 0) {
_local6._name = _local6._name + getTimer();
_local6.MoveToBonus(l - 10);
} else {
var _local6 = fly.attachMovie(_local4 + "e", _local5, GetDepth(i, j));
var _local15 = (_local6._x = (j * Size) + GlobalX);
var _local14 = (_local6._y = (i * Size) + GlobalY);
}
_local6.onPress = (_local6.onRelease = (_local6.onReleaseOutside = null));
}
}
function Skok(Name) {
var _local7 = FindI(Name);
var _local8 = FindJ(Name);
var _local1 = game[Name];
var _local4 = _local1.falldistance;
var _local2 = _local1._x;
var _local3 = _local1._y;
if (_local4 <= 30) {
var _local5 = (Size * _local7) + GlobalY;
_local1.Move(_local2, _local3, _local2, _local5, SkokTime + random(50));
} else {
var _local5 = _local3 - (_local4 / 10);
_local1.Move(_local2, _local3, _local2, _local5, SkokTime + random(50), Skok);
}
}
function FallDown() {
Chain++;
notBlock = false;
clearInterval(Falling);
var _local1 = 0;
while (_local1 < Matrix[0].length) {
FallColomn(_local1);
_local1++;
}
Falling = setInterval(function () {
if (FindChain(1)) {
FallDown();
notBlock = false;
} else {
if (Chain > MaxChain) {
MaxChain = Chain;
}
Chain = 0;
notBlock = true;
FindNextMove();
if (NRound == 3) {
StartHint(7);
} else if (NRound == 0) {
StartHint(1);
} else if (gamefon.bonus._currentframe > 1) {
StartHint(9);
}
clearInterval(Falling);
}
}, FallTime + 100);
}
function FallingSlide(i, j, chk) {
var _local1 = i;
while (true) {
_local1++;
if (((Matrix[_local1][j] != "no") && (Matrix[_local1][j] != "0")) || (Matrix[_local1][j] == undefined)) {
_local1--;
while (Matrix[_local1][j] == "0") {
_local1--;
}
break;
}
}
var _local6 = GetDepth(_local1, j);
var _local3 = game[FindName(i, j)];
var _local5 = FindName(_local1, j);
if (chk == undefined) {
Matrix[_local1][j] = Matrix[i][j];
Matrix[i][j] = "no";
}
_local3._name = _local5;
_local3.swapDepths(_local6);
_local3.Move(_local3._x, _local3._y, _local3._x, (Size * _local1) + GlobalY, FallTime, Skok);
}
function FallColomn(j) {
var _local7 = 0;
var _local6 = Matrix.length - 1;
while ((Matrix[_local6][j] == "0") && (_local6 > 0)) {
_local6--;
}
if (Matrix[_local6][j].substr(1, 1) == "a") {
_local7++;
var _local14 = game[FindName(_local6, j)];
var _local15 = _local14.bonus.substr(0, 1) - 1;
var _local9 = flyart.attachMovie(Matrix[_local6][j], "a" + Matrix[_local6][j], GetDepth(_local15 + 12, j), {_x:_local14._x + 141, _y:_local14._y + 13});
_local9.bonus = _local14.bonus;
_local9._width = _local14._width - 3;
_local9._height = _local14._height - 3;
if (_local9.bonus == "watch") {
_local9._y = _local9._y + 7;
_local9._width = _local9._width + 3;
_local9._height = _local9._height + 3;
} else {
Pieces++;
}
_local9.a._x = _local14.a._x;
_local9.a._y = _local14.a._y;
_local9.MoveToArt();
AddArtefact_s.start(SoundOn);
_local14.Delete(FindName(_local6, j));
Matrix[_local6][j] = "no";
if (CheckEnd(1)) {
GetBlack(0, _root, 99);
}
StartHint(3);
_local6--;
}
while (_local6 >= 0) {
game[FindName(_local6, j)].StopShine();
if (Matrix[_local6][j] == "no") {
_local7++;
} else if (_local7 && (Matrix[_local6][j] != "0")) {
FallingSlide(_local6, j);
}
_local6--;
}
_local7 = 0;
_local6 = 0;
while (_local6 < Matrix.length) {
if (Matrix[_local6][j] == "no") {
_local7++;
}
_local6++;
}
_local6 = 0;
while (Matrix[_local6][j] == "0") {
_local6++;
}
var _local4 = _local7 - 1;
while (_local4 >= 0) {
var _local3 = Matrix.length - 1;
while (Matrix[_local3][j] != "no") {
_local3--;
}
var _local8 = GetDepth(_local3, j);
var _local5 = FindRandomTile();
Matrix[_local3][j] = _local5;
var _local10 = game.attachMovie(_local5, FindName(_local3, j), _local8, {_x:(Size * j) + GlobalX, _y:((-Size) * ((_local7 - _local4) - _local6)) + GlobalY, _alpha:0});
FallingSlide(_local3, j, "f");
_local4--;
}
}
function fff() {
trace(("---" + getTimer()) + "---");
var _local2 = 0;
while (_local2 < Matrix.length) {
var _local3 = "";
var _local1 = 0;
while (_local1 < Matrix[0].length) {
_local3 = _local3 + (" " + Matrix[_local2][_local1].substr(Matrix[_local2][_local1].length - 1, 1));
_local1++;
}
trace(_local3);
_local2++;
}
}
function InitSpline() {
var _local4 = arguments[0];
var _local3 = arguments[1];
var _local2 = 1;
while (_local2 < (arguments.length / 2)) {
_local4.addKey(arguments[_local2 * 2]);
_local3.addKey(arguments[(_local2 * 2) + 1]);
_local2++;
}
_local4.Calculate();
_local3.Calculate();
}
function CheckEnd(c) {
var _local3 = true;
var _local2 = 0;
while (_local2 < Matrix.length) {
var _local1 = 0;
while (_local1 < Matrix[0].length) {
if ((Matrix[_local2][_local1].substr(1, 1) == "a") && (Matrix[_local2][_local1].substr(0, 1) != "w")) {
_local3 = false;
break;
}
_local1++;
}
_local2++;
}
if (_local3 && (!c)) {
clearInterval(ending);
ending = setInterval(EndRound, 50);
}
if (c) {
return(_local3);
}
}
function CheckEndBonus() {
var _local3 = true;
var _local2 = 0;
while (_local2 < Matrix.length) {
var _local1 = 0;
while (_local1 < Matrix[0].length) {
if ((!gamef.bonus_fon_mask[("b" + _local2) + _local1]) && (Matrix[_local2][_local1] != "0")) {
_local3 = false;
break;
}
_local1++;
}
_local2++;
}
if (_local3) {
clearInterval(ending);
ending = setInterval(EndRound, 50);
}
}
function GetBlack(N, MC, D) {
if (MC == undefined) {
MC = _root;
}
if (D == undefined) {
D = MC.getNextHighestDepth();
}
MC.bl.removeMovieClip();
MC.attachMovie("black", "bl", D, {_width:520, _height:390, _alpha:N, useHandCursor:false, onPress:null});
}
function EndRound() {
if (sumkaclip || (mapclip)) {
clearInterval(ending);
}
if (notBlock && (!SomeMove)) {
BonusTime = SCORE.score;
ShowMovingText(TextLevelComplete.value, "", null, 100);
FromHint();
gamefon.bonus.EndBlow(100000);
notBlock = false;
fon.ChangeTime(5000);
fon.StartEnd();
GetBlack(0, _root, 99);
LevelComplete_s.start(SoundOn);
watch_s.start(SoundOn, 0, 999);
clearInterval(ending);
if (!BonusLevel) {
ClearAll(game, 1, 1);
ClearAll(gamef, 1, 1);
}
}
}
function ClearAll(mc, M, I, III) {
for (var _local5 in mc) {
if ((((typeof(mc[_local5]) == "movieclip") && (String(mc).split(".").length < String(mc[_local5]).split(".").length)) && (_local5 != "FonMaskMain")) && (_local5 != "SoundsClip")) {
ClearAll(mc[_local5], M, I);
if (M) {
mc[_local5].Remove();
}
}
if (I) {
clearInterval(mc[_local5]);
}
}
if ((M && (!III)) && (mc != _root)) {
mc.Remove();
}
}
function InitMap(c) {
notBlock = false;
if (c) {
ClearAll(_root, 1, 1);
RoundSity = -1;
}
mapclip.removeMovieClip();
sumkaclip.removeMovieClip();
_root.attachMovie("map", "mapclip", MAP_DEPTH);
}
function CompleteArt(N) {
notBlock = false;
if (!BonusLevel) {
s4a.removeMovieClip();
_root.createEmptyMovieClip("s4a", 87);
var _local3 = new ArtComplete(s4a, N);
ArtefactCollect_s.start(SoundOn);
} else {
ClearAll(_root, 0, 1);
game.onEnterFrame = function () {
this._alpha = this._alpha - 0.5;
if (this._alpha < 1) {
delete this.onEnterFrame;
ClearAll(_root, 1, 1);
NRound++;
InitMap();
mapclip.Rise(RoundCountry);
}
};
}
}
function InitSumka(c) {
notBlock = false;
mapclip.removeMovieClip();
sumkaclip.removeMovieClip();
if (NRound < 18) {
_root.attachMovie("sumka", "sumkaclip", SUMKA_DEPTH);
if (!c) {
sumkaclip.MovePanels(1);
}
}
}
function getCountry(L) {
if (L == undefined) {
L == _root.NRound;
}
if (L > 17) {
return(2);
}
var _local2 = 0;
var _local3 = 0;
while (true) {
_local3 = _local3 + _root.map[_local2].length;
if (_local3 <= L) {
_local2++;
} else {
break;
}
}
return(_local2);
}
function getLevel(L) {
if (L == undefined) {
L == _root.NRound;
}
if (L > 17) {
return(0);
}
var _local2 = 0;
var _local3 = 0;
while (true) {
_local3 = _local3 + _root.map[_local2].length;
if (_local3 <= L) {
_local2++;
} else {
break;
}
}
_local2 = (map[_local2].length - _local3) + L;
return(_local2);
}
function getRound(C, L) {
var _local3 = 0;
var _local2 = 0;
while (_local2 < C) {
_local3 = _local3 + _root.map[_local2].length;
_local2++;
}
return(_local3 + L);
}
function InitDialog(N) {
ClearAll(dialog, 1, 1);
_root.attachMovie("dialog", "dialog", dialog_depth);
dialog.Init(N);
}
function UnMoveSuc() {
sumkaclip.removeMovieClip();
sumka_3d.MoveSuc(1);
}
function StopTimer() {
FromHint();
fon.Stop();
}
function StartTimer() {
FindNextMove();
fon.Start();
}
function EatArt(mc) {
sumka_3d.EatArt(mc);
}
function FunctionNew() {
Life = 0;
GameOver();
}
function FunctionResume() {
notBlock = true;
StartTimer();
menu.removeMovieClip();
bl.removeMovieClip();
}
function MenuPress() {
if ((notBlock && (!MoveArt)) && (!SomeMove)) {
notBlock = false;
StopTimer();
GetBlack(20, _root, 99);
var _local2 = _root.createEmptyMovieClip("menu", 101);
var _local3 = new GameMenu(_local2);
}
}
function ShowStats() {
if (!_root.text_move) {
clearInterval(_root.showing_stats);
FromHint();
notBlock = false;
score = SCORE.score;
LevelTime = fon.LevelTime * fon.StopedTime;
var _local2 = _root.createEmptyMovieClip("stats", 202);
var _local3 = new GameStats(_local2);
}
}
function FunctionSound() {
var _local1 = 0;
while (_local1 < (menu_buttons.length - 1)) {
if (menu_buttons[_local1].funct == "FSound") {
break;
}
_local1++;
}
var _local2 = menu_buttons[menu_buttons.length - 1].text;
menu_buttons[menu_buttons.length - 1].text = menu_buttons[_local1].text;
menu_buttons[_local1].text = _local2;
menu["b" + _local1].InitText(_local2, "0", 0, 0, 0, 0, 0, 0, -2);
SoundOn = !SoundOn;
}
function Remove() {
clearInterval(this.moving);
this.swapDepths(999999);
this.removeMovieClip();
}
function ShowLight(i1, j1, i2, j2) {
clearInterval(showing_tip);
_root.TipWindow_s.start(_root.SoundOn);
var _local3;
var _local2;
if (i1 == i2) {
_local3 = i1;
_local2 = Math.min(j2, j1);
game.attachMovie("light_ramka", "FLASH", 657, {_x:(_local2 * Size) + GlobalX, _y:(_local3 * Size) + GlobalY});
} else {
_local2 = j1;
_local3 = Math.min(i2, i1);
game.attachMovie("light_ramka", "FLASH", 657, {_x:((_local2 + 1) * Size) + GlobalX, _y:(_local3 * Size) + GlobalY, _rotation:90});
}
}
function FromHint() {
clearInterval(hinting);
clearInterval(showing_tip);
notBlock = true;
game.FLASH.removeMovieClip();
Hint.Delete();
}
function FindStop(s1, s2) {
var _local13 = Matrix.length;
var _local8 = Matrix[0].length;
if (s1 == undefined) {
s1 = random(_local13);
s2 = random(_local8);
}
var _local4 = false;
var _local7 = 0;
while (_local7 < _local13) {
var _local3 = 0;
while (_local3 < _local8) {
var _local2 = (_local7 + s1) % _local13;
var _local1 = (_local3 + s2) % _local8;
if (((Matrix[_local2][_local1] != "0") && (Matrix[_local2][_local1] != undefined)) && (Matrix[_local2][_local1].substr(0, 1) == "s")) {
var _local5 = Matrix[_local2][_local1];
var _local6 = Matrix[_local2 + 1][_local1];
if ((game[FindName(_local2, _local1)].lock == "") && (game[FindName(_local2 + 1, _local1)].lock == "")) {
Matrix[_local2][_local1] = _local6;
Matrix[_local2 + 1][_local1] = _local5;
_local4 = FindChain(0, [{i:_local2, j:_local1}, {i:_local2 + 1, j:_local1}]);
Matrix[_local2][_local1] = _local5;
Matrix[_local2 + 1][_local1] = _local6;
if (_local4) {
return({i1:_local2, j1:_local1, i2:_local2 + 1, j2:_local1});
}
}
_local5 = Matrix[_local2][_local1];
_local6 = Matrix[_local2][_local1 + 1];
if ((game[FindName(_local2, _local1)].lock == "") && (game[FindName(_local2, _local1 + 1)].lock == "")) {
Matrix[_local2][_local1] = _local6;
Matrix[_local2][_local1 + 1] = _local5;
_local4 = FindChain(0, [{i:_local2, j:_local1}, {i:_local2, j:_local1 + 1}]);
Matrix[_local2][_local1] = _local5;
Matrix[_local2][_local1 + 1] = _local6;
if (_local4) {
return({i1:_local2, j1:_local1, i2:_local2, j2:_local1 + 1});
}
}
}
_local3++;
}
_local7++;
}
return(0);
}
function FindNextMove() {
if ((game && (notBlock)) && (!bl)) {
var _local2 = FindStop();
if (_local2) {
clearInterval(showing_tip);
showing_tip = setInterval(MyDelegate.create(this, ShowLight, [_local2.i1, _local2.j1, _local2.i2, _local2.j2]), 8000);
} else {
GameOver(1);
}
}
}
function StartHint(N) {
if ((!hint_panel) && (HintArr[N] || ((N == 2) && (NRound == 0)))) {
FromHint();
hinting = setInterval(ShowHint, 100, N);
}
}
function ShowHint(msg) {
if ((notBlock && (!stats)) && (!SomeMove)) {
clearInterval(hinting);
if (HintArr[msg] || ((msg == 2) && (NRound == 0))) {
StopTimer();
HintArr[msg] = 0;
Hint.Delete();
Hint = new GameHint(_root, msg, TextShow);
}
}
}
function GetDayString(c) {
var _local2 = Math.max(0, _root.NRound);
var _local3 = 1;
if (c) {
_local3 = 2;
}
return((((_root["TextCountry" + int(_root.getCountry(_local2) + 1)].value + " - ") + _root.TextDay.value) + " ") + int(_local2 + _local3));
}
function ShowMovingText(T1, T2, F, A) {
ClearAll(text_move, 1, 1);
var _local5 = _root.createEmptyMovieClip("text_move", 551);
GetBlack(0, _local5, 0);
var _local2 = _local5.createEmptyMovieClip("M1", 1);
var _local3 = _local5.createEmptyMovieClip("M2", 2);
_local2.createEmptyMovieClip("M1", 1);
_local2.createEmptyMovieClip("M2", 0);
_local3.createEmptyMovieClip("M1", 1);
_local3.createEmptyMovieClip("M2", 0);
_local2.M2._x = (_local3.M2._x = (_local2.M2._y = (_local3.M2._y = 3)));
_local2._x = -300;
_local3._x = 800;
_local2._y = 180;
_local3._y = 220;
if ((T1 != _root["TextCountry" + int(_root.getCountry(_root.NRound) + 1)].value) && (T1 != _root.TextLevelComplete.value)) {
TextShow(_local2.M1, T1, "GameFont", 0, 0, 1, 24, _root.TextWhite);
TextShow(_local2.M2, T1, "GameFont", 0, 0, 1, 24, _root.TextBlack);
} else {
_local2.M1.createEmptyMovieClip("M", 0);
if (_root.Local.value == "en") {
LoadHGood(_local2.M1.M, T1);
} else {
LoadHBad(_local2, T1);
}
}
TextShow(_local3.M1, T2, "GameFont", 0, 0, 1, 24, _root.TextWhite);
TextShow(_local3.M2, T2, "GameFont", 0, 0, 1, 24, _root.TextBlack);
clearInterval(moving_text);
var _local6 = new Spline(-400, -200, -100, -40, -20, -10, -5, 0, 5, 10, 20, 40, 100, 200, 400);
moving_text = setInterval(MovingText, 0, getTimer(), _local2, _local3, _local6, F, A);
}
function LoadHGood(M, T) {
if (T == _root["TextCountry" + int(_root.getCountry(_root.NRound) + 1)].value) {
M.attachMovie("c" + _root.getCountry(_root.NRound), "T", 0);
} else {
M.attachMovie("lc", "T", 0);
M._y = M._y + 50;
}
M._x = M._x - (M._width / 2);
M._y = M._y - M._height;
}
function LoadHBad(M, T) {
TextShow(M.M1, T, "GameFont", 0, 0, 1, 24, _root.TextWhite);
TextShow(M.M2, T, "GameFont", 0, 0, 1, 24, _root.TextBlack);
}
function MovingText(T, M1, M2, SP, F, A) {
var _local5 = 3000;
var _local3 = 280;
var _local7 = 50;
var _local6 = getTimer();
var _local1 = (_local6 - T) / _local5;
if (_local1 >= 1) {
clearInterval(moving_text);
ClearAll(text_move, 1, 1);
F();
} else {
var _local2 = 10;
if (A != undefined) {
_local2 = int(A) + 1;
}
text_move.bl._alpha = (400 - Math.abs(SP.getPoint(_local1))) / _local2;
M1._x = SP.getPoint(_local1) + _local3;
M2._x = SP.getPoint(1 - _local1) + _local3;
}
}
function InitBook() {
_root.Dnevnik = new Array();
Dnevnik.push({r:0, t:"notec0", p:0, c:0, s:1});
Dnevnik.push({r:1, t:Dnevnik1, p:1, c:0, s:1, d:1});
Dnevnik.push({r:2, t:Dnevnik2, p:2, c:0, s:1});
Dnevnik.push({r:3, t:Dnevnik3, p:3, c:0, s:1});
Dnevnik.push({r:4, t:Dnevnik4, p:4, c:0, s:1});
Dnevnik.push({r:5, t:Dnevnik5, p:5, c:0, s:1});
Dnevnik.push({r:6, t:Dnevnik6, p:6, c:0, s:1});
Dnevnik.push({r:7, t:Dnevnik7, p:7, c:0, s:1});
Dnevnik.push({r:8, t:"notec1", p:8, c:1, s:1});
Dnevnik.push({r:9, t:Dnevnik8, p:9, c:1, s:1, d:1});
Dnevnik.push({r:10, t:Dnevnik9, p:10, c:1, s:1});
Dnevnik.push({r:11, t:Dnevnik10, p:11, c:1, s:1});
Dnevnik.push({r:12, t:Dnevnik11, p:12, c:1, s:1});
Dnevnik.push({r:13, t:Dnevnik12, p:13, c:1, s:1});
Dnevnik.push({r:14, t:Dnevnik13, p:14, c:1, s:1, d:{p:1, t:Dnevnik14}});
Dnevnik.push({r:15, t:Dnevnik14, p:14, c:1, s:1, d:{p:2, t:Dnevnik13}});
Dnevnik.push({r:16, t:Dnevnik15, p:15, c:1, s:1, d:{p:1, t:Dnevnik16}});
Dnevnik.push({r:17, t:Dnevnik16, p:15, c:1, s:1, d:{p:2, t:Dnevnik15}});
Dnevnik.push({r:18, t:Dnevnik17, p:16, c:1, s:1});
}
function GameOver(c) {
if ((!(sumkaclip || (mapclip))) || (NRound > 17)) {
if (c) {
if (gamefon.bonus._currentframe > 1) {
ShowMovingText(TextNoMoreMoves.value, TextUseBonuses.value, null, 20);
} else {
ShowMovingText(TextNoMoreMoves.value, TextYouLoseLife.value, GameOver, 20);
}
} else {
Life--;
score = SCORE.score;
if (Life < 1) {
Nag(MyDelegate.create(_root, InitMap, [1]), 1);
NRound = (score = 0);
RoundSity = -1;
Life = 3;
InitBook();
} else {
InitMap(1);
}
}
}
}
function FunctionHelp(c) {
_root.attachMovie("help", "help", HELP_DEPTH);
if (c) {
help.setFon(c);
}
}
function FunctionExit() {
var _local2 = _root.GetVar("close_f");
getURL (("JavaScript:" + _local2) + "()");
}
function FunctionDownload() {
getURL (_root.DownloadLink.value, "_blank");
if (_root.GetVar("dload_f") != "0") {
getURL (("javascript:" + _root.GetVar("dload_f")) + "();", "_blank");
}
}
function Nag(F, c) {
notBlock = false;
var _local9 = int(NagTime.value);
var _local7 = 7807488 /* 0x772200 */;
if (c || ((NagTime.value != "0") && (((NRound + 1) % _local9) == 0))) {
var _local5 = _root.attachMovie("nag", "nag", NAG_DEPTH);
var _local2 = _local5.createEmptyMovieClip("txt1", 0);
if (c) {
_local2._x = 180;
_local2._y = 150;
var _local6 = TextGameOverNag;
if (NRound > 17) {
_local2._y = _local2._y - 30;
_local6 = TextCompleteNag;
}
TextShow(_local2, (((_local6 + "|||") + TextScore.value) + ":||") + score, "GameFont", -4, 16, 1, 16, _local7);
} else {
_local2._x = 60;
_local2._y = 115;
TextShow(_local2, TextNag, "GameFont", -4, 13, 0, 14, _local7);
}
var _local3 = _local5.attachMovie("button", "b1", 1);
if (NagTime.value != "0") {
var _local4 = _local5.attachMovie("button", "b2", 2);
_local4._x = 180;
_local4._y = 330;
_local4.InitText(TextDownload.value);
_local4.InitFunction(FunctionDownload);
}
_local3._x = 80;
_local3._y = 330;
if (c) {
_local3.InitText(TextRestart.value);
} else {
_local3.InitText(TextPlay.value);
}
_local3.InitFunction(MyDelegate.create(_root, FromNag, [F]));
if (NagTime == 0) {
_local3._x = _local3._x + 55;
_local4._x = _local4._x + 1000;
}
} else {
F();
}
}
function FromNag(F) {
F();
nag.removeMovieClip();
}
stop();
this._lockroot = true;
MovieClip.prototype.getD = getNextHighestDepth;
MovieClip.prototype.Remove = Remove;
FonMaskMain.removeMovieClip();
_root.attachMovie("black", "FonMaskMain", 945, {_width:520, _height:390});
_root.setMask(FonMaskMain);
fscommand ("trapallkeys", true);
Stage.scaleMode = "noScale";
Stage.showMenu = false;
var TextYellow = 16763904;
var TextWhite = 16777215;
var TextBlack = 0;
var TextGreen = 39168;
var TextYellowLight = 16777113;
var SoundOn = true;
var Size = 31;
var GlobalX = 0;
var GlobalY = 0;
var Matrix = new Array();
var SwapTime = 200;
var FallTime = 400;
var SkokTime = 100;
var FallPauseTime = 300;
var Blink = "";
var Step = 10;
var notBlock = true;
var RoundCountry = 0;
var RoundSity = -1;
var NRound = 0;
var SunInc4 = 0;
var SunInc5 = 0;
var SunInc6 = 0;
var SCORE;
var score = 0;
var Matches = 0;
var Tiles = 0;
var MaxChain = 0;
var Chain = 0;
var Pieces = 0;
var BonusTime = 0;
var BonusLevel = false;
var gamefon;
var gamef;
var game;
var fly;
var flyart;
var sumka3d;
var sumka_3d;
var SUMKA_DEPTH = 101;
var HELP_DEPTH = 103;
var MAP_DEPTH = 102;
var dialog_depth = 110;
var NAG_DEPTH = 111;
var Life = 3;
var HintArr = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1];
var BonusArr = [1, 1, 1, 1, 1];
if (SaveMode.value != "false") {
var LoadArray = new Array("NRound", "score", "Life", "SoundOn", "HintArr");
var Saving = new SaveGame(this, LoadArray, "AW80D");
Saving.LoadInfo();
if (HintArr[5] == undefined) {
HintArr = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1];
var hz4to = new GameIntro();
} else {
InitMap();
}
} else {
var hz4to = new GameIntro();
}
if (!SoundOn) {
FunctionSound();
SoundOn = false;
}
InitBook();
oKey = {};
oKey.onKeyDown = function () {
if (Key.getCode() == 67) {
if (Key.isDown(38)) {
EndRound();
}
if (Key.isDown(40)) {
fon.ChangeTime(5000);
}
if (Key.isDown(39)) {
gamefon.AddBonus(0.5);
}
}
if (Key.isDown(9)) {
} else if (Key.isDown(13)) {
} else if (Key.isDown(17)) {
}
};
Key.addListener(oKey);
InitSound();
Symbol 2 MovieClip [fon] Frame 1
#initclip 26
Object.registerClass("fon", FonDayNight);
#endinitclip
Symbol 6 MovieClip [poly] Frame 1
stop();
Symbol 1161 MovieClip [__Packages.LoadGameXML] Frame 0
class LoadGameXML
{
var MCRoot, Loading, DIALxml, ARTxml, LEVELxml, TEXTxml;
function LoadGameXML (MCRoot, artPath, dialPath, levelPath, textPath, Loading) {
this.MCRoot = MCRoot;
this.Loading = Loading;
DIALxml = new XML(_root[dialPath]);
LoadDIALXML(DIALxml);
ARTxml = new XML(_root[artPath]);
LoadARTXML(ARTxml);
LEVELxml = new XML(_root[levelPath]);
initcountXML(LEVELxml);
TEXTxml = new XML(_root[textPath]);
initTEXTXML(TEXTxml);
}
function initcountXML(ThisXML) {
var _local11 = ThisXML.firstChild;
if (_local11 != undefined) {
MCRoot.loadbar._visible = true;
MCRoot.map = new Array();
var _local10 = _local11.childNodes;
var _local7 = 0;
while (_local7 < _local10.length) {
var _local9 = new Array();
_local9.name = _local10[_local7].attributes.name;
_local9.Art = _local10[_local7].attributes.Art;
_local9.description = _local10[_local7].attributes.description;
var _local4 = _local10[_local7].childNodes;
var _local2 = 0;
while (_local2 < _local4.length) {
var _local3 = new Array();
_local3.name = _local4[_local2].attributes.name;
_local3.description = _local4[_local2].attributes.description;
_local3.time = _local4[_local2].attributes.time;
_local3.SunInc4 = _local4[_local2].attributes.b_inc4;
_local3.SunInc5 = _local4[_local2].attributes.b_inc5;
_local3.SunInc6 = _local4[_local2].attributes.b_inc6;
_local3.chips = _local4[_local2].attributes.chips.toString().split("");
_local3.art = _local4[_local2].attributes.artefact_begin;
_local3.bonus = _local4[_local2].attributes.bonusLevel;
var _local6 = _local4[_local2].childNodes;
var _local5 = 0;
while (_local5 < _local6.length) {
var _local8 = _local6[_local5].firstChild.toString().split("");
_local3[_local5] = _local8;
_local5++;
}
_local9[_local2] = _local3;
_local2++;
}
MCRoot.map[_local7] = _local9;
_local7++;
}
if (!(--XMLCount)) {
Loading();
}
} else {
MCRoot.KB.text = "Unable init the game";
}
}
function LoadDIALXML(ThisXML) {
MCRoot.DIALOGS = new Array();
var _local12 = ThisXML.firstChild;
if (_local12 != undefined) {
var _local10 = _local12.childNodes;
var _local11 = 0;
var _local6 = 0;
while (_local6 < _local10.length) {
var _local8 = {};
_local8.name = _local10[_local6].attributes.name;
_local8.start = _local11;
var _local3 = _local10[_local6].firstChild.childNodes;
var _local9 = [];
var _local2 = 0;
while (_local2 < _local3.length) {
var _local4 = {};
_local4.name = _local3[_local2].attributes.name;
_local4.x = _local3[_local2].firstChild.attributes.x;
_local4.y = _local3[_local2].firstChild.attributes.y;
_local9.push(_local4);
_local2++;
}
_local8.ava = _local9;
_local3 = _local10[_local6].lastChild.childNodes;
var _local7 = [];
_local2 = 0;
while (_local2 < _local3.length) {
if (_local3[_local2].nodeName == "Phrase") {
var _local5 = {};
_local5.name = _local3[_local2].attributes.avatar;
_local5.text = _local3[_local2].attributes.text;
_local5.delay = int(_local3[_local2].attributes.delay);
_local7.push(_local5);
} else if (_local3[_local2].nodeName == "Move") {
var _local5 = {};
_local5.name = _local3[_local2].attributes.avatar;
_local7.push(_local5);
}
_local2++;
}
_local8.act = _local7;
MCRoot.DIALOGS[_local6] = _local8;
_local6++;
}
if (!(--XMLCount)) {
Loading();
}
} else {
MCRoot.KB.text = "Unable init the game";
}
}
function LoadARTXML(ThisXML) {
MCRoot.ART = new Array();
var _local8 = ThisXML.firstChild;
if (_local8 != undefined) {
var _local7 = _local8.childNodes;
var _local5 = 0;
while (_local5 < _local7.length) {
var _local6 = new Array();
var _local4 = _local7[_local5].childNodes;
var _local2 = 0;
while (_local2 < _local4.length) {
var _local3 = {};
_local3.x = 0.65 * Number(_local4[_local2].attributes.x);
_local3.y = -8 - (0.65 * Number(_local4[_local2].attributes.y));
_local3.W = 0.65 * Number(_local4[_local2].attributes.width);
_local3.H = 0.65 * Number(_local4[_local2].attributes.height);
_local6[_local2] = _local3;
_local2++;
}
_local6.xArt = 0.65 * Number(_local7[_local5].attributes.xArt);
_local6.yArt = (0.65 * Number(_local7[_local5].attributes.yArt)) + 134;
_local6.xMask = 0.65 * Number(_local7[_local5].attributes.xMask);
_local6.yMask = (0.65 * Number(_local7[_local5].attributes.yMask)) + 132;
MCRoot.ART[_local5] = _local6;
_local5++;
}
if (!(--XMLCount)) {
Loading();
}
} else {
MCRoot.KB.text = "Unable init the game";
}
}
function initTEXTXML(ThisXML) {
MCRoot.Dialogs = new Array();
var _local13 = ThisXML.firstChild;
if (_local13 != undefined) {
var _local4 = _local13.childNodes;
var _local3 = 0;
while (_local3 < _local4.length) {
if (_local4[_local3].nodeName == "text") {
var _local9 = "";
var _local12 = _local4[_local3].attributes.id;
var _local10 = _local4[_local3].childNodes;
var _local7 = 0;
while (_local7 < _local10.length) {
_local9 = _local9 + (_local10[_local7].attributes.text + "|");
_local7++;
}
_local9 = _local9.substr(0, -1);
MCRoot[_local12] = _local9;
} else if (_local4[_local3].nodeName == "string") {
var _local8 = (MCRoot[_local4[_local3].attributes.id] = {});
for (var _local12 in _local4[_local3].attributes) {
_local8[_local12] = _local4[_local3].attributes[_local12];
}
} else if (_local4[_local3].nodeName == "menu_buttons") {
MCRoot.menu_buttons = new Array();
var _local6 = _local4[_local3].childNodes;
var _local5 = 0;
while (_local5 < _local6.length) {
var _local8 = {};
for (var _local12 in _local6[_local5].attributes) {
_local8[_local12] = _local6[_local5].attributes[_local12];
}
MCRoot.menu_buttons.push(_local8);
_local5++;
}
} else if (_local4[_local3].nodeName == "logo") {
var _local8 = {};
for (var _local12 in _local4[_local3].attributes) {
_local8[_local12] = _local4[_local3].attributes[_local12];
}
var _local11 = _root.logos.createEmptyMovieClip(_local8.name, _root.logos.getNextHighestDepth());
_local11._x = _local8.x;
_local11._y = _local8.y;
_local11.loadMovie(_local8.path);
}
_local3++;
}
if (!(--XMLCount)) {
Loading();
}
} else {
MCRoot.KB.text = "Unable init the game";
}
}
var XMLCount = 4;
}
Symbol 1162 MovieClip [__Packages.FonDayNight] Frame 0
class FonDayNight extends MovieClip
{
var createEmptyMovieClip, fon, StopedTime, moving;
function FonDayNight () {
super();
}
function Init(STR) {
createEmptyMovieClip("fon", 0);
fon._x = -36;
fon._y = -12;
fon.createEmptyMovieClip("clouds", 70);
fon.attachMovie(STR + "day", "fon1", 60);
StopTime = getTimer();
fon.clouds.onEnterFrame = MyDelegate.create(this, DrawClouds);
BeginTime = getTimer();
Draw();
}
function StartEnd() {
_root.gamefon.ice._visible = false;
EndCondition = true;
StopedTime = GetTime();
StopTime = (StopBonusTimeStop = (StopBonusTime = 0));
clearInterval(moving);
moving = setInterval(MyDelegate.create(this, Draw), 50);
}
function Start() {
if (StopTime > 0) {
if ((getTimer() > StopBonusTime) && (StopBonusTimeStop == 0)) {
BeginTime = BeginTime + (getTimer() - StopTime);
StopTime = 0;
clearInterval(moving);
moving = setInterval(MyDelegate.create(this, Draw), 50);
} else if (StopBonusTimeStop) {
StopBonusTime = StopBonusTime + (getTimer() - StopBonusTimeStop);
StopBonusTimeStop = 0;
}
}
}
function Stop() {
if (StopTime == 0) {
StopTime = getTimer();
clearInterval(moving);
}
if (StopBonusTime) {
StopBonusTimeStop = getTimer();
}
}
function GetTime() {
var _local2 = getTimer() - BeginTime;
var _local3 = _local2;
return((_local3 / Time) + StartTime);
}
function Draw() {
var _local3 = GetTime();
if (_local3 < 0) {
_local3 = 0;
}
if ((_local3 > 0.999) || (PrevTime > _local3)) {
_root.watch_s.stop();
if (_local3 >= 1) {
_local3 = 0.999;
}
Stop();
_root.GetBlack(0, _root, 99);
if (EndCondition || ((!_root.BonusLevel) && (_root.CheckEnd(1)))) {
if (EndCondition) {
clearInterval(_root.showing_stats);
_root.showing_stats = setInterval(_root.ShowStats, 50);
}
} else {
StopedTime = 1;
if (_root.Life > 1) {
_root.ShowMovingText(_root.TextOutOfTime.value, _root.TextYouLoseLife.value, null, 20);
} else {
_root.ShowMovingText(_root.TextOutOfTime.value, _root.TextGameOver.value, null, 20);
}
clearInterval(_root.showing_stats);
_root.showing_stats = setInterval(_root.ShowStats, 50);
}
}
if (EndCondition && (_local3 != 0.999)) {
_root.SCORE.score = _root.SCORE.score + 10;
_root.SCORE.ShowScore();
}
PrevTime = _local3;
_root.gamefon.ShowTime(_local3);
}
function DrawClouds() {
if ((((getTimer() > StopBonusTime) && (_root.notBlock)) && (StopBonusTime)) && (StopBonusTimeStop == 0)) {
Start();
_root.gamefon.ice._visible = false;
StopBonusTime = 0;
}
}
function ChangeTime(TimeNew) {
var _local2 = getTimer() - BeginTime;
var _local3 = _local2 / TimeNew;
StartTime = PrevTime - _local3;
Time = TimeNew;
PrevTime = 0;
}
function StartIce(time) {
Stop();
StopBonusTime = getTimer() + time;
_root.gamefon.ice._visible = true;
}
var PrevTime = 0;
var LevelTime = 0;
var Time = 600000;
var NCloud = 5;
var EndCondition = false;
var StartTime = 0;
var BeginTime = 0;
var StopTime = 0;
var StopBonusTime = 0;
var StopBonusTimeStop = 0;
}
Symbol 1163 MovieClip [__Packages.MyDelegate] Frame 0
class MyDelegate extends Object
{
function MyDelegate () {
super();
}
static function create(obj, func, arg) {
var _local2 = function () {
var _local3 = arguments.callee.target;
var _local2 = arguments.callee.func;
var _local4 = arguments.callee.arg;
return(_local2.apply(_local3, _local4));
};
_local2.target = obj;
_local2.func = func;
_local2.arg = arg;
return(_local2);
}
}
Symbol 1164 MovieClip [__Packages.GameBonus] Frame 0
class GameBonus extends MovieClip
{
var _name, gotoAndStop, sss, M, fon, GlobalX, GlobalY, Size, line, gotoAndPlay, cube, onEnterFrame, createEmptyMovieClip, getNextHighestDepth, oM, _y, _x, MC, moving, set_sound, hitTest;
function GameBonus () {
super();
if (_name.length > 4) {
_root.gamefon.circle._visible = false;
gotoAndStop("b0");
sss.onPress = MyDelegate.create(this, UseBonus, [1]);
M = _root.Matrix;
fon = _root.gamef;
GlobalX = _root.GlobalX;
GlobalY = _root.GlobalY;
Size = _root.Size;
}
}
function GO(b) {
if (lastb > b) {
line._y = 30;
N++;
_root.bonus_s.start(_root.SoundOn);
if (N <= MaxBonus) {
gotoAndPlay("b" + N);
_root.StartHint(9 + N);
_root.gamefon.circle._visible = true;
} else {
N = MaxBonus;
}
} else if (N == 0) {
line._y = 28 - (b * 56);
cube._y = 28 - (b * 56);
_root.gamefon.circle._visible = false;
}
lastb = b;
}
function use() {
sss.swapDepths(999);
sss.removeMovieClip();
line.swapDepths(999);
line.removeMovieClip();
onEnterFrame = Moving;
if (_root.BonusArr[N]) {
_root.BonusArr[N] = 0;
var _local4 = createEmptyMovieClip("hint_C", getNextHighestDepth());
var _local3 = createEmptyMovieClip("hint_C", getNextHighestDepth());
_root.TextShow(_local3, _root["BonusTip" + N], "GameFont", -4, 12, 0, 12, _root.TextWhite);
_root.TextShow(_local4, _root["BonusTip" + N], "GameFont", -4, 12, 0, 12, _root.TextBlack);
_local3._x = -20;
_local3._y = 30;
_local4._x = -18;
_local4._y = 32;
}
oM = {};
oM.onMouseDown = MyDelegate.create(this, BlowBonus);
Mouse.addListener(oM);
}
function UseBonus(c) {
if (using) {
if (c) {
_root.Click_s.start(_root.SoundOn);
}
_root.bl.removeMovieClip();
using = false;
_root.notBlock = true;
if (N == 0) {
gotoAndStop("b" + N);
_root.gamefon.circle._visible = false;
} else {
_root.gamefon.circle._visible = true;
gotoAndPlay("b" + N);
}
Mouse.removeListener(oM);
Mouse.removeListener(_root.flyart.bonus.oM);
_root.flyart.bonus.removeMovieClip();
} else if (_root.notBlock && (N > 0)) {
if (c) {
_root.Click_s.start(_root.SoundOn);
}
_root.FromHint();
_root.gamefon.circle._visible = false;
_root.game[_root.Blink].Stop();
_root.notBlock = false;
using = true;
gotoAndStop("use");
var _local3 = _root.flyart.attachMovie("bonus", "bonus", 0, {_x:_x + 23, _y:_y + 23});
_local3.gotoAndStop("b" + N);
_local3.N = N;
_local3.use();
}
}
function Moving2() {
_root.flyart.bonus._x = _root._xmouse + 23;
_root.flyart.bonus._y = _root._ymouse + 23;
}
function Moving() {
Moving2();
var _local6 = _root.game;
var _local7 = _root.FindName;
var _local5;
var _local4 = 0;
while (_local4 < M.length) {
var _local3 = 0;
while (_local3 < M[0].length) {
MC = _local6[_local7(_local4, _local3)];
_local5 = MC;
if (MC.m != undefined) {
_local5 = MC.m;
}
if (_local5.hitTest(_root._xmouse, _root._ymouse, false)) {
if (MC != lastslide) {
ClearBonusField();
SetBonusField(_local4, _local3);
lastslide = MC;
}
}
_local3++;
}
_local4++;
}
if ((lastslide != null) && (!lastslide.hitTest(_root._xmouse, _root._ymouse, false))) {
lastslide = null;
ClearBonusField();
}
}
function FindName(i, j) {
return((("fsY" + i) + "X") + j);
}
function ClearBonusField() {
_root.mmm_s.stop();
var _local5 = 0;
while (_local5 < M.length) {
var _local4 = 0;
while (_local4 < M[0].length) {
fon[FindName(_local5, _local4)].removeMovieClip();
var _local3 = _root.game[_root.FindName(_local5, _local4)];
_local3._x = _local3.GetX();
_local3._y = _local3.GetY();
delete _local3.onEnterFrame;
_local4++;
}
_local5++;
}
}
function SetBonusField(i, j) {
_root.mmm_s.start(_root.SoundOn, 0, 999);
if (N == 1) {
var _local10 = GlobalX + (j * Size);
var _local9 = GlobalY + (i * Size);
fon.attachMovie("fonshine", FindName(i, j), fon.getNextHighestDepth(), {_x:_local10 - 1, _y:_local9 - 1});
var _local8 = _root.game[_root.FindName(i, j)];
_local8.onEnterFrame = function () {
this._x = this.GetX() + (1 * ((Math.random() * 2) - 1));
this._y = this.GetY() + (1 * ((Math.random() * 2) - 1));
};
} else if (N == 3) {
var _local4 = Math.max(0, i - 2);
while (_local4 <= Math.min(M.length - 1, i + 2)) {
var _local3 = Math.max(0, j - 2);
while (_local3 <= Math.min(M[0].length - 1, j + 2)) {
if ((M[_local4][_local3] != "0") && ((Math.abs(i - _local4) + Math.abs(j - _local3)) < 3)) {
var _local10 = GlobalX + (_local3 * Size);
var _local9 = GlobalY + (_local4 * Size);
fon.attachMovie("fonshine", FindName(_local4, _local3), fon.getNextHighestDepth(), {_x:_local10 - 1, _y:_local9 - 1});
var _local8 = _root.game[_root.FindName(_local4, _local3)];
_local8.onEnterFrame = function () {
this._x = this.GetX() + (1 * ((Math.random() * 2) - 1));
this._y = this.GetY() + (1 * ((Math.random() * 2) - 1));
};
}
_local3++;
}
_local4++;
}
} else if (N == 2) {
var _local7 = M[i][j];
if (_local7.substr(0, 1) == "l") {
_local7 = _local7.substr(5, 10);
}
var _local4 = 0;
while (_local4 < M.length) {
var _local3 = 0;
while (_local3 < M[0].length) {
if ((M[_local4][_local3] == _local7) || (M[_local4][_local3].substr(5, 10) == _local7)) {
var _local10 = GlobalX + (_local3 * Size);
var _local9 = GlobalY + (_local4 * Size);
fon.attachMovie("fonshine", FindName(_local4, _local3), fon.getNextHighestDepth(), {_x:_local10 - 1, _y:_local9 - 1});
var _local8 = _root.game[_root.FindName(_local4, _local3)];
_local8.onEnterFrame = function () {
this._x = this.GetX() + (1 * ((Math.random() * 2) - 1));
this._y = this.GetY() + (1 * ((Math.random() * 2) - 1));
};
}
_local3++;
}
_local4++;
}
} else if (N == 4) {
var _local10 = GlobalX + (j * Size);
var _local9 = GlobalY + (i * Size);
fon.attachMovie("fonshine", FindName(i, j), fon.getNextHighestDepth(), {_x:_local10 - 1, _y:_local9 - 1});
var _local8 = _root.game[_root.FindName(i, j)];
_local8.onEnterFrame = function () {
this._x = this.GetX() + (1 * ((Math.random() * 2) - 1));
this._y = this.GetY() + (1 * ((Math.random() * 2) - 1));
};
FillBonus(i, j, 0, 1);
FillBonus(i, j, 0, -1);
FillBonus(i, j, 1, 1);
FillBonus(i, j, 1, -1);
FillBonus(i, j, -1, 1);
FillBonus(i, j, -1, 0);
FillBonus(i, j, 1, 0);
FillBonus(i, j, -1, -1);
}
}
function FillBonus(x, y, is, js) {
var _local4 = x + is;
var _local3 = y + js;
if ((M[_local4][_local3] != "0") && (M[_local4][_local3] != undefined)) {
x = GlobalX + (_local3 * Size);
y = GlobalY + (_local4 * Size);
fon.attachMovie("fonshine", FindName(_local4, _local3), fon.getNextHighestDepth(), {_x:x - 1, _y:y - 1});
var _local5 = _root.game[_root.FindName(_local4, _local3)];
_local5.onEnterFrame = function () {
this._x = this.GetX() + (1 * ((Math.random() * 2) - 1));
this._y = this.GetY() + (1 * ((Math.random() * 2) - 1));
};
FillBonus(_local4, _local3, is, js);
}
}
function bblow(i, j) {
if (fon[FindName(i, j)] != undefined) {
_root.Blow(i, j, 0, 1);
fon[FindName(i, j)].removeMovieClip();
}
}
function BlowFillBonus(i, j, c) {
clearInterval(moving);
if (c != 11) {
bblow(i + c, j + c, 0);
bblow(i - c, j + c, 0);
bblow(i + c, j - c, 0);
bblow(i - c, j - c, 0);
bblow(i, j + c, 0);
bblow(i, j - c, 0);
bblow(i + c, j, 0);
bblow(i - c, j, 0);
c++;
moving = setInterval(MyDelegate.create(this, BlowFillBonus, [i, j, c]), 200);
} else {
EndBlow(0);
}
}
function BlowBonus() {
var _local9 = _root.FindI;
var _local8 = _root.FindJ;
var _local7 = lastslide._name;
if (_local7 != undefined) {
var _local6 = _local9(_local7);
var _local5 = _local8(_local7);
if ((N == 1) && (lastslide.m == undefined)) {
_root.flyart.bonus._visible = false;
_root.mmm_s.stop();
_root.GetBlack(0, _root, 99);
clearInterval(set_sound);
set_sound = setInterval(MyDelegate.create(this, SetSound, ["Hummer_s", 1]), 5);
_root.Blow(_local6, _local5, 0, 1);
Mouse.removeListener(oM);
ClearBonusField();
EndBlow(500, 1);
} else if ((N == 2) && (lastslide.m == undefined)) {
_root.flyart.bonus._visible = false;
_root.mmm_s.stop();
_root.GetBlack(0, _root, 99);
var _local10 = new GameEnergy(_root.fly, EndBlow);
_local10.BeginLight(_local6, _local5);
Mouse.removeListener(oM);
onEnterFrame = Moving2;
ClearBonusField();
} else if (N == 3) {
_root.flyart.bonus._visible = false;
_root.mmm_s.stop();
_root.GetBlack(0, _root, 99);
clearInterval(set_sound);
set_sound = setInterval(MyDelegate.create(this, SetSound, ["bomb_s", 1]), 5);
var _local4 = Math.max(0, _local6 - 2);
while (_local4 <= Math.min(M.length - 1, _local6 + 2)) {
var _local3 = Math.max(0, _local5 - 2);
while (_local3 <= Math.min(M[0].length - 1, _local5 + 2)) {
if ((M[_local4][_local3] != "0") && ((Math.abs(_local6 - _local4) + Math.abs(_local5 - _local3)) < 3)) {
_root.Blow(_local4, _local3, 0, 1);
}
_local3++;
}
_local4++;
}
EndBlow(500, 1);
} else if (N == 4) {
_root.mmm_s.stop();
_root.flyart.bonus._visible = false;
_root.GetBlack(0, _root, 99);
clearInterval(set_sound);
set_sound = setInterval(MyDelegate.create(this, SetSound, ["MegaCross_s"]), 5);
Mouse.removeListener(oM);
onEnterFrame = Moving2;
fon[FindName(_local6, _local5)].removeMovieClip();
_root.Blow(_local6, _local5, 0, 1);
BlowFillBonus(_local6, _local5, 1);
}
} else if (!hitTest(_root._xmouse, _root._ymouse)) {
Mouse.removeListener(oM);
ClearBonusField();
_root.gamefon.bonus.UseBonus();
}
}
function EndBlow(time, c) {
Mouse.removeListener(oM);
ClearBonusField();
_root.Falling = setInterval(_root.FallDown, time);
_root.Blink = "";
if (!c) {
_root.gamefon.Reset();
}
_root.notBlock = false;
}
function SetSound(N, c) {
clearInterval(set_sound);
_root[N].start(_root.SoundOn);
if (c) {
_root.gamefon.Reset();
}
}
var using = false;
var lastslide = null;
var lastb = 0;
var MaxBonus = 4;
var N = 0;
}
Symbol 1165 MovieClip [__Packages.GameEnergy] Frame 0
class GameEnergy
{
var MC, M, B, EndFunction, A, moving;
function GameEnergy (MC, EndF) {
this.MC = MC;
M = _root.Matrix;
B = _root.Blow;
EndFunction = EndF;
}
function BeginLight(i1, j1) {
A = new Array();
var _local3 = M[i1][j1];
if (_local3.substr(0, 1) == "l") {
_local3 = _local3.substr(5, 10);
}
var _local2 = {};
var _local9 = 0;
while (_local9 < M.length) {
var _local8 = 0;
while (_local8 < M[0].length) {
if (((M[_local9][_local8] == _local3) || (M[_local9][_local8].substr(5, 10) == _local3)) && (!((_local9 == i1) && (_local8 == j1)))) {
_local2 = {i:_local9, j:_local8};
A.push(_local2);
}
_local8++;
}
_local9++;
}
var _local7 = A.length;
var _local4 = 0;
_local9 = 0;
while (_local9 < _local7) {
_local4 = random(_local7);
_local2 = A[_local9];
A[_local9] = A[_local4];
A[_local4] = _local2;
_local9++;
}
_local2 = {i:i1, j:j1};
A.unshift(_local2);
DoLight(0);
}
function DoLight(t) {
_root.lazer_s.start(_root.SoundOn);
clearInterval(moving);
var _local11 = _root.GlobalX;
var _local10 = _root.GlobalY;
var _local3 = _root.Size;
var _local6 = A[t++];
B(_local6.i, _local6.j, 0, 1);
if (t == A.length) {
EndFunction(500);
} else {
var _local12 = A[t];
var _local5 = (_local6.j * _local3) + _local11;
var _local4 = (_local6.i * _local3) + _local10;
var _local8 = (_local12.j * _local3) + _local11;
var _local7 = (_local12.i * _local3) + _local10;
var _local13 = Math.atan2(_local7 - _local4, _local8 - _local5);
MC.attachMovie("energy", "en" + t, MC.getD(), {_x:_local5 + (_local3 / 2), _y:_local4 + (_local3 / 2), _rotation:(_local13 * 180) / Math.PI, _xscale:0.33 * Math.sqrt(((_local8 - _local5) * (_local8 - _local5)) + ((_local7 - _local4) * (_local7 - _local4)))});
moving = setInterval(MyDelegate.create(this, DoLight, [t]), 200);
}
}
}
Symbol 1166 MovieClip [__Packages.GameFon] Frame 0
class GameFon extends MovieClip
{
var CSPR, CSPG, bonus, left, circle, clock, Arrow, Arrows, ice, menu, right, score, eye, time, moving, ramka;
function GameFon () {
super();
CSPR = new Spline(0, 42, 85, 127, 170, 212, 255, 255, 255, 255);
CSPG = new Spline(255, 255, 255, 255, 255, 255, 255, 170, 85, 0);
bonus = left.bonus;
circle = left.circle;
clock = left.clock;
Arrow = left.Arrow;
Arrows = left.Arrows;
ice = left.ice;
menu = right.menub;
ice._visible = false;
score = left.score;
eye = right.eye;
_root.TextShow(left.life, String(_root.Life), "d", -4, 20, 1, 14, _root.TextYellowLight);
eye.onPress = MyDelegate.create(this, EYEPress);
menu.onLoad = function () {
this.InitText(_root.TextMenu.value);
this.InitFunction(_root.MenuPress);
};
var _local4 = circle.createEmptyMovieClip("mask", 0);
_local4._x = circle._width / 2;
_local4._y = circle._height / 2;
circle.circle.setMask(_local4);
_root.gamefon._alpha = (_root.sumka3d._alpha = (_root.flyart._alpha = (_root.game._alpha = (_root.gamef._alpha = 0))));
InitArt();
bonus.sss.onRollOver = MyDelegate.create(this, BonusOver);
bonus.sss.onRollOut = (bonus.sss.onReleaseOutside = MyDelegate.create(this, BonusOut));
left.head.createEmptyMovieClip("d", 0);
if (_root.Local.value == "en") {
LoadHGood();
} else {
LoadHBad();
}
}
function LoadHGood() {
var _local5 = ("c" + _root.getCountry(_root.NRound)) + "s";
var _local3 = left.head;
_local3.d.attachMovie(_local5, "T", 0);
var _local4 = _local3.createEmptyMovieClip("b", 1);
_local4._x = _local3.d._width;
_root.TextShow(_local4, String(int(_root.NRound + 1)), "d", 0, 20, 0);
_local3._y = _local3._y - 4;
_local3._x = _local3._x - (_local3._width / 2);
}
function LoadHBad() {
_root.TextShow(left.head, _root.GetDayString(), "GameFont", -4, 20, 1, 12, _root.TextYellowLight);
}
function AddBonus(l) {
var _local3 = 0;
if (bonus.N == 0) {
_local3 = _root.SunInc4;
} else if (bonus.N == 3) {
_local3 = _root.SunInc6;
} else {
_local3 = _root.SunInc5;
}
if (l == 999) {
_local3 = 0;
} else if (l > 2) {
_local3 = _local3 * 0.1;
} else if (l > 1) {
_local3 = _local3 * 0.3;
} else if (l > 0) {
_local3 = _local3 * 0.6;
}
if (_root.HintArr[8] && (_root.NRound > 0)) {
_root.StartHint(8);
} else if (((_root.NRound > 0) && (bonus._currentframe > 1)) && (!_root.HintArr[10])) {
_root.StartHint(9);
}
bonuscircle = (((bonuscircle + _local3) >= 1) ? 0 : (bonuscircle + _local3));
if (bonus.N < 4) {
var _local5 = int(bonuscircle * 12);
var _local6 = ((_local5 * Math.PI) / 6) - (Math.PI/2);
DrawSector(circle.mask, 0, 0, circle._width / 2, -1.5707963267949, _local6);
bonus.GO(bonuscircle);
}
}
function ShowTime(time) {
this.time = time;
var _local2 = ((Math.PI*2) * time) - (Math.PI/2);
DrawSector(clock.shadow, 0, 0, 36, -1.5707963267949, _local2);
Arrow._rotation = (_local2 * 180) / Math.PI;
Arrows._rotation = (((75.398223686155 * time) - (Math.PI/2)) * 180) / Math.PI;
}
function DrawSector(mc, x, y, radius, angle, endAngle) {
mc.clear();
mc.lineStyle(0, 0, 0);
var _local18 = "0x";
var _local11 = CSPR.getPoint(time).toString(16);
if (_local11.length == 1) {
_local11 = "0" + _local11;
} else if (_local11.length == 3) {
_local11 = "FF";
}
_local18 = _local18 + _local11;
_local11 = CSPG.getPoint(time).toString(16);
if (_local11.length == 1) {
_local11 = "0" + _local11;
} else if (_local11.length == 3) {
_local11 = "FF";
}
_local18 = _local18 + (_local11 + "00");
mc.beginFill(_local18, 70);
var _local5;
var _local10 = endAngle - angle;
while (_local10 < 0) {
_local10 = _local10 + (Math.PI*2);
}
var _local17 = Math.ceil(_local10 / (Math.PI/4));
var _local21 = (-_local10) / _local17;
var _local12 = (-_local21) / 2;
var _local15 = Math.cos(_local12);
var _local20 = Math.cos(angle) * radius;
var _local19 = Math.sin(angle) * radius;
mc.moveTo(_local20 + x, _local19 + y);
var _local4 = 0;
while (_local4 < _local17) {
angle = angle + (_local12 * 2);
_local5 = angle - _local12;
var _local9 = x + (Math.cos(angle) * radius);
var _local7 = y + (Math.sin(angle) * radius);
var _local8 = x + (Math.cos(_local5) * (radius / _local15));
var _local6 = y + (Math.sin(_local5) * (radius / _local15));
mc.curveTo(_local8, _local6, _local9, _local7);
_local4++;
}
mc.lineTo(x, y);
mc.lineTo(_local20 + x, _local19 + y);
mc.endFill();
}
function EYEPress(c) {
if (c || ((_root.notBlock && (!_root.MoveArt)) && (!_root.SomeMove))) {
_root.fon.Stop();
clearInterval(moving);
if (!c) {
_root.ButtonClick_s.start(_root.SoundOn);
var _local3 = _root.attachMovie("black", "bl", 534, {_width:520, _height:390, _alpha:0});
_local3.useHandCursor = false;
_local3.onPress = null;
}
moving = setInterval(MyDelegate.create(this, Dissapear, [getTimer(), 100, 0, c]), 0);
}
}
function LoadGO(MC) {
MC.attachMovie("GO", "T", 0);
MC._alpha = 0;
MC._x = MC._x - ((MC.T._width / 2) - 100);
MC.onEnterFrame = function () {
this._alpha = this._alpha + 2;
if (this._alpha > 99) {
_root.StartingHint();
this.removeMovieClip();
}
};
}
function EYEUnpressed(c) {
clearInterval(moving);
if (c == 500) {
var _local3 = _root.fly.createEmptyMovieClip("fly_go", 56);
_local3._x = 70;
_local3._y = 100;
_root.go_s.start(_root.SoundOn);
if (_root.Local.value == "en") {
LoadGO(_local3);
} else {
_root.StartingHint();
}
}
_root.game.swapDepths(30);
moving = setInterval(MyDelegate.create(this, Dissapear, [getTimer(), 0, 100, c]), 0);
_root.bl.onPress = null;
}
function InitArt() {
if (_root.BonusLevel) {
left.attachMovie("mark" + _root.getCountry(_root.NRound), "arts", left.getNextHighestDepth(), {_x:_root.ART[0].xMask, _y:_root.ART[0].yMask + 5, _width:80, _height:80});
} else {
var _local3 = _root.NRound;
var _local4 = _root.ART[_local3].xMask;
var _local5 = _root.ART[_local3].yMask;
left.attachMovie("substra" + _local3, "arts", left.getNextHighestDepth(), {_x:_local4, _y:_local5});
}
EYEPress(1);
}
function Reset() {
bonus.N = 0;
bonus.lastb = 0;
bonus.UseBonus();
bonuscircle = 0;
AddBonus(999);
}
function Dissapear(T, a1, a2, TT) {
if (TT == undefined) {
TT = 1000;
}
var _local3 = (getTimer() - T) / TT;
if (_local3 >= 1) {
_local3 = 1;
if (a1 == 100) {
_root.game.swapDepths(2);
if (!_root.dialog) {
_root.bl.onPress = MyDelegate.create(this, EYEUnpressed);
}
} else {
_root.bl.removeMovieClip();
if (TT != 500) {
_root.fon.Start();
}
}
clearInterval(moving);
}
if (TT != 1) {
_root.gamefon._alpha = (_root.sumka3d._alpha = (_root.flyart._alpha = (_root.game._alpha = (_root.gamef._alpha = a1 + ((a2 - a1) * _local3)))));
} else {
_root.gamefon._alpha = (_root.sumka3d._alpha = (_root.flyart._alpha = (_root.game._alpha = (_root.gamef._alpha = 0))));
}
_root.flyart._x = (left._x = (-a2) - ((a1 - a2) * _local3));
right._x = (520 + a2) + ((a1 - a2) * _local3);
if (_root.NRound) {
_root.sumka3d._x = right._x - 520;
}
}
function BonusOver() {
if (!_root.flyart.bonus) {
ramka.removeMovieClip();
ramka = _root.createEmptyMovieClip("ramka", _root.getNextHighestDepth());
ramka._x = _root._xmouse;
ramka._y = _root._ymouse;
ramka.createEmptyMovieClip("t", 1);
ramka.attachMovie("ramka_tip", "r", 0);
var _local3 = _root[("Bonus" + bonus.N) + "Charged"].split("#BonusCharged#").join(String(int(bonus.lastb * 100)));
_root.TextShow(ramka.t, _local3, "GameFont", -4, 12, 1, 12, _root.TextYellowLight);
ramka.r._height = ramka.t._height + 10;
ramka.r._width = ramka.t._width + 10;
ramka.t._x = (ramka.t._width / 2) + 10;
ramka.t._y = ((-ramka.t._height) / 2) + 5;
ramka.r._x = (ramka.t._x - 2) - (ramka.t._width / 2);
ramka.r._y = ramka.t._y - 13;
ramka.r._alpha = 50;
ramka.onEnterFrame = function () {
this._x = _root._xmouse;
this._y = _root._ymouse;
};
}
}
function BonusOut() {
ramka.removeMovieClip();
}
var stopped = 0;
var bonuscircle = 0;
}
Symbol 1167 MovieClip [__Packages.Spline] Frame 0
class Spline
{
var keys;
function Spline () {
keys = new Array();
if (arguments.length > 0) {
InitSpline(arguments);
}
}
function GetKeys() {
return(keys);
}
function addKey(key) {
var _local2 = new Array(2);
_local2[0] = key;
_local2[1] = key;
keys.push(_local2);
}
function getFrame(i, t) {
return(SplineInterpolation(keys[i][0], keys[i + 1][0], keys[i][1], keys[i + 1][1], t));
}
function getGradient(i, t) {
return(GetGradient(keys[i][0], keys[i + 1][0], keys[i][1], keys[i + 1][1], t));
}
function getPoint(t) {
var _local3 = 1 / getSectors();
var _local2 = Math.floor(t / _local3);
if (_local2 >= getSectors()) {
return(keys[keys.length - 1][0]);
}
var _local4 = (t - (_local2 * _local3)) / _local3;
return(getFrame(_local2, _local4));
}
function getGlobalGradient(t) {
var _local3 = 1 / getSectors();
var _local2 = Math.floor(t / _local3);
if (_local2 >= getSectors()) {
return(keys[keys.length - 1][0]);
}
var _local4 = (t - (_local2 * _local3)) / _local3;
return(getGradient(_local2, _local4));
}
function getSectors() {
return(keys.length - 1);
}
function Calculate(cycled) {
if (cycled) {
keys.push(keys[0]);
}
var _local3;
var _local5;
var _local4;
if (cycled) {
_local3 = keys[0][0] - keys[keys.length - 2][0];
_local5 = keys[1][0] - keys[0][0];
_local4 = _local5 - _local3;
keys[0][1] = _local3 + (0.5 * _local4);
keys[keys.length - 1][1] = keys[0][1];
} else if (keys.length > 1) {
keys[0][1] = keys[1][0] - keys[0][0];
keys[keys.length - 1][1] = keys[keys.length - 1][0] - keys[keys.length - 2][0];
}
var _local2 = 1;
while (_local2 < (keys.length - 1)) {
_local3 = keys[_local2][0] - keys[_local2 - 1][0];
_local5 = keys[_local2 + 1][0] - keys[_local2][0];
_local4 = _local5 - _local3;
keys[_local2][1] = _local3 + (0.5 * _local4);
_local2++;
}
}
function SplineInterpolation(x1, x2, r1, r2, t) {
var _local1 = t * t;
var _local2 = _local1 * t;
var _local4 = (((x1 * (((2 * _local2) - (3 * _local1)) + 1)) + (r1 * ((_local2 - (2 * _local1)) + t))) + (x2 * ((-2 * _local2) + (3 * _local1)))) + (r2 * (_local2 - _local1));
return(_local4);
}
function GetGradient(x1, x2, r1, r2, t) {
var _local2 = t * t;
var _local3 = ((((6 * x1) * (_local2 - t)) + (r1 * (((3 * _local2) - (4 * t)) + 1))) + ((6 * x2) * (t - _local2))) + (r2 * ((3 * _local2) - (2 * t)));
return(_local3);
}
function InitSpline(A) {
var _local2 = 0;
while (_local2 < A.length) {
addKey(A[_local2]);
_local2++;
}
Calculate();
}
}
Symbol 1168 MovieClip [__Packages.TileClass] Frame 0
class TileClass extends MovieClip
{
var root, FindI, FindJ, FindName, gotoAndStop, tabEnabled, useHandCursor, onPress, onRollOver, onRollOut, onRelease, onReleaseOutside, moving, _alpha, _x, _y, _name, gotoAndPlay, s, attachMovie, getNextHighestDepth, spX, spY, removeMovieClip, _xscale, _yscale, _rotation;
function TileClass () {
super();
root = _root.game;
FindI = _root.FindI;
FindJ = _root.FindJ;
FindName = _root.FindName;
gotoAndStop(1);
tabEnabled = false;
useHandCursor = false;
onPress = MyDelegate.create(this, _root.Press);
onRollOver = MyDelegate.create(this, _root.OverMove);
onRollOut = MyDelegate.create(this, _root.OutMove);
onRelease = MyDelegate.create(this, _root.Release);
onReleaseOutside = MyDelegate.create(this, _root.Release);
}
function Move(x1, y1, x2, y2, TT, F, a1, a2, r) {
clearInterval(moving);
var _local2 = getTimer();
if (F == undefined) {
F = null;
}
if (a1 == undefined) {
a1 = _alpha;
}
if (a2 == undefined) {
a2 = 100;
}
if (r == undefined) {
r = 0;
}
falldistance = Math.abs(y2 - y1);
moving = setInterval(MyDelegate.create(this, Moving, [x1, y1, x2, y2, _local2, TT, F, a1, a2, r]), 0);
}
function Moving(x1, y1, x2, y2, T, TT, F, a1, a2, r) {
var _local3 = getTimer();
if (_local3 >= (T + TT)) {
clearInterval(moving);
_x = x2;
_y = y2;
_alpha = a2;
var _local9 = _name;
var _local7 = _root.Blink;
F(_local9, _local7);
} else {
var _local11 = x1 + (((x2 - x1) * (_local3 - T)) / TT);
var _local10 = y1 + (((y2 - y1) * (_local3 - T)) / TT);
var _local8 = a1 + (((a2 - a1) * (_local3 - T)) / TT);
var _local4 = int(1 + ((23 * (_local3 - T)) / TT));
_local4 = ((r < 0) ? (25 - _local4) : (_local4 * r));
_x = _local11;
_y = _local10;
_alpha = _local8;
gotoAndStop(_local4);
}
}
function Play() {
gotoAndPlay(1);
active = true;
}
function Stop() {
gotoAndStop(1);
active = false;
StopShine();
}
function StartShine() {
s.removeMovieClip();
attachMovie("shine", "s", getNextHighestDepth());
}
function StopShine() {
}
function Delete(MC) {
clearInterval(_root.game[MC].moving);
_root.game[MC].removeMovieClip();
}
function DeleteFly(MC) {
clearInterval(_root.fly[MC].moving);
_root.fly[MC].removeMovieClip();
}
function MoveToBonus(bonus) {
var _local5 = _x;
var _local4 = _y;
var _local3 = -81.5;
var _local2 = 314.5;
var _local7 = (((-_local3) + _local5) * 1.1) + _local3;
var _local6 = (((-_local2) + _local4) * 1.1) + _local2;
spX = new Spline(_local5, _local7, _local3);
spY = new Spline(_local4, _local6, _local2);
var _local8 = 700 + random(300);
var _local9 = random(2);
moving = setInterval(MyDelegate.create(this, MoveToPosition, [bonus, _local3, _local2, getTimer(), _local8, _local9]), 0);
}
function MoveToPosition(bonus, EndX, EndY, Time, snd, r) {
var _local4 = getTimer();
if ((_local4 - Time) >= snd) {
_root.SomeMove = false;
clearInterval(moving);
_x = EndX;
_y = EndY;
delete spX;
delete spY;
_root.sunadd_s.start(_root.SoundOn && ((_root.sunadd_s.position == 0) || (_root.sunadd_s.position == _root.sunadd_s.duration)));
_root.gamefon.AddBonus(bonus);
removeMovieClip();
} else {
_root.SomeMove = true;
var _local3 = (_local4 - Time) / snd;
_xscale = (_yscale = 100 + (-40 * _local3));
var _local5 = ((r == 1) ? (int(24 * _local3)) : (24 - int(24 * _local3)));
gotoAndStop(_local5);
_rotation = (90 * (1 - (2 * r))) * _local3;
_x = spX.getPoint(_local3);
_y = spY.getPoint(_local3);
}
}
function GetX() {
return((FindJ(_name) * _root.Size) + _root.GlobalX);
}
function GetY() {
return((FindI(_name) * _root.Size) + _root.GlobalY);
}
var active = false;
var lock = "";
var falldistance = 0;
}
Symbol 1169 MovieClip [__Packages.GameMap] Frame 0
class GameMap extends MovieClip
{
var PrintS, window, createEmptyMovieClip, getNextHighestDepth, bl, clock, upmap, g, downmap, mark, moving, moving1, lr, rr, candle, dialog, ramka;
function GameMap () {
super();
PrintS = _root.TextShow;
InitMap();
}
function InitMap() {
window._alpha = 0;
createEmptyMovieClip("mark", getNextHighestDepth());
bl.onPress = null;
bl.useHandCursor = false;
country = _root.getCountry(_root.NRound);
InitWindow();
FindSmallMarkPosition();
clock.onEnterFrame = Clock;
upmap.text.createEmptyMovieClip("d", 0);
g.g.createEmptyMovieClip("g", 0);
if (_root.Local.value == "en") {
LoadHGood();
} else {
LoadHBad();
}
}
function LoadHGood() {
var _local6 = ("c" + Math.min(1, country)) + "b";
var _local3 = upmap.text;
_local3.d.attachMovie(_local6, "d", 0);
var _local5 = _local3.createEmptyMovieClip("b", 1);
_local5._x = _local3.d._width;
_root.TextShow(_local5, String(int(_root.NRound + 1)), "d", 0, 20, 0);
_local3._y = _local3._y - 3;
_local3._x = _local3._x - (_local3._width / 2);
var _local4 = g.g.g.attachMovie("globe_en", "r", 0);
if (country == 0) {
_local4.c0._alpha = 100;
_local4.c1._alpha = 0;
} else {
_local4.c1._alpha = 100;
_local4.c0._alpha = 0;
}
InitCountryNames();
}
function LoadHBad() {
InitCountryNames();
_root.TextShow(upmap.text, _root.GetDayString(), "GameFont", -2, 20, 1, 16, _root.TextYellow);
}
function Rise(N) {
MoveMark(1, downmap["mark" + N]);
}
function AttachSmall(i) {
var _local2 = downmap.attachMovie("mark" + i, "mark" + i, downmap.getNextHighestDepth(), {_x:112 + (i * 43), _y:343, _xscale:22, _yscale:22});
_local2.i = i;
_local2.onPress = MyDelegate.create(this, MoveMark, [1, _local2]);
_local2.onRollOver = MyDelegate.create(this, OverClip, [_local2, i]);
_local2.onRollOut = (_local2.releaseOutside = MyDelegate.create(this, OutClip, [_local2, i]));
return(_local2);
}
function FindSmallMarkPosition(N) {
if (N == undefined) {
var _local2 = 0;
while (_local2 < country) {
AttachSmall(_local2);
_local2++;
}
while (_local2 < 7) {
var _local3 = downmap.attachMovie("quest_m", "mark" + _local2, downmap.getNextHighestDepth(), {_x:122 + (_local2 * 43), _y:345});
_local3.useHandCursor = false;
_local3.onRollOver = MyDelegate.create(this, OverClip, [_local3, _local2]);
_local3.onRollOut = (_local3.releaseOutside = MyDelegate.create(this, OutClip, [_local3, _local2]));
_local2++;
}
} else {
return(112 + (N * 43));
}
}
function InitCountryNames() {
var _local5 = ["Russia", _root.TextCountry1.value, _root.TextCountry2.value, _root.TextCountry3.value, _root.TextCountry4.value, _root.TextCountry5.value, _root.TextCountry6.value, _root.TextCountry7.value];
var _local3 = 1;
while (_local3 < _local5.length) {
var _local4 = g.g["c" + _local3].createEmptyMovieClip("c", 0);
_local4._x = _local4._x - 3;
_local4._y = _local4._y - 5;
PrintS(_local4, _local5[_local3], "GameFont", -4, 12, 0, 14, _root.TextWhite);
if (_local3 <= country) {
_local4.onPress = MyDelegate.create(this, MoveMark, [1, downmap["mark" + int(_local3 - 1)]]);
}
_local3++;
}
}
function MoveMark(l, mc) {
if (notBlock) {
_root.Listing_s.start(_root.SoundOn);
if (l == 1) {
nmark = mc.i;
var _local7 = mc._x;
var _local5 = 61;
var _local6 = mc._y;
var _local4 = 117;
var _local11 = 0;
var _local10 = 100;
var _local9 = 22;
var _local8 = 100;
mark.m.removeMovieClip();
mark.attachMovie(mc._name, "m", 0);
mark._x = mc._x;
mark._y = mc._y;
mark._xscale = mc._xscale;
mark._yscale = mc._yscale;
mc.removeMovieClip();
window["m" + nmark]._xscale = 130;
window["m" + nmark]._yscale = 130;
window.swapDepths(g);
InitArts(nmark);
} else {
var _local7 = mark._x;
var _local5 = FindSmallMarkPosition(nmark);
var _local6 = mark._y;
var _local4 = 343;
var _local11 = 100;
var _local10 = 0;
var _local9 = 100;
var _local8 = 22;
}
window.fon.gotoAndStop(nmark + 1);
clearInterval(moving);
clearInterval(moving1);
OutClip();
moving = setInterval(MyDelegate.create(this, Moving, [getTimer(), l, _local7, _local6, _local5, _local4, _local11, _local10, _local9, _local8, mark]), 0);
}
}
function Moving(T, l, x1, y1, x2, y2, a1, a2, s1, s2, mc) {
var _local2 = getTimer();
if (_local2 >= (T + MT)) {
if (l == 0) {
window["m" + nmark]._xscale = 100;
window["m" + nmark]._yscale = 100;
mc = AttachSmall(nmark);
mark.m.removeMovieClip();
nmark = -1;
g.swapDepths(window);
}
mc._x = x2;
mc._y = y2;
mc._xscale = s2;
mc._yscale = s2;
downmap._y = a2;
lr._height = 224 + a2;
rr._height = 224 + a2;
bl._alpha = a2 / 2;
window._alpha = a2;
clearInterval(moving);
notBlock = true;
} else {
notBlock = false;
mc._x = x1 + (((x2 - x1) * (_local2 - T)) / MT);
mc._y = y1 + (((y2 - y1) * (_local2 - T)) / MT);
mc._xscale = s1 + (((s2 - s1) * (_local2 - T)) / MT);
mc._yscale = s1 + (((s2 - s1) * (_local2 - T)) / MT);
downmap._y = a1 + (((a2 - a1) * (_local2 - T)) / MT);
lr._height = (224 + a1) + (((a2 - a1) * (_local2 - T)) / MT);
rr._height = (224 + a1) + (((a2 - a1) * (_local2 - T)) / MT);
bl._alpha = (a1 + (((a2 - a1) * (_local2 - T)) / MT)) / 2;
window._alpha = a1 + (((a2 - a1) * (_local2 - T)) / MT);
}
}
function InitArts(c) {
PrintS(window.head, _root["TextCountry" + int(c + 1)].value, "GameFont", -2, 12, 1, 16, _root.TextYellow);
var _local10 = _root.map[c].length - 1;
var _local11 = 205;
var _local8 = 145;
var _local3 = window.arts;
_root.ClearAll(_local3, 1, 0, 1);
if (c == 0) {
InitOver(_local3.attachMovie("fulla1", "a1", 10, {_x:15, _y:20, _width:50, _height:50}));
InitOver(_local3.attachMovie("fulla2", "a2", 11, {_x:75, _y:20, _width:50, _height:50}));
InitOver(_local3.attachMovie("fulla3", "a3", 12, {_x:135, _y:20, _width:50, _height:50}));
InitOver(_local3.attachMovie("fulla4", "a4", 13, {_x:15, _y:85, _width:50, _height:50}));
InitOver(_local3.attachMovie("fulla5", "a5", 14, {_x:75, _y:85, _width:50, _height:50}));
InitOver(_local3.attachMovie("fulla6", "a6", 15, {_x:135, _y:85, _width:50, _height:50}));
} else {
InitOver(_local3.attachMovie("fulla8", "a8", 10, {_x:15, _y:0, _width:50, _height:50}));
InitOver(_local3.attachMovie("fulla9", "a9", 11, {_x:75, _y:0, _width:50, _height:50}));
InitOver(_local3.attachMovie("fulla10", "a10", 12, {_x:135, _y:0, _width:50, _height:50}));
InitOver(_local3.attachMovie("fulla11", "a11", 13, {_x:15, _y:51, _width:50, _height:50}));
InitOver(_local3.attachMovie("fulla12", "a12", 14, {_x:75, _y:51, _width:50, _height:50}));
InitOver(_local3.attachMovie("fulla13", "a13", 15, {_x:135, _y:51, _width:50, _height:50}));
InitOver(_local3.attachMovie("fulla14", "a14", 16, {_x:15, _y:103, _width:50, _height:50}));
InitOver(_local3.attachMovie("fulla15", "a15", 17, {_x:75, _y:103, _width:50, _height:50}));
InitOver(_local3.attachMovie("fulla16", "a16", 18, {_x:135, _y:103, _width:50, _height:50}));
}
}
function InitOver(MC) {
MC.onRollOver = MyDelegate.create(this, ArtOver, [MC]);
var _local4 = MC._parent;
_local4.attachMovie("smallart_sum", "S", MC.getDepth() - 10, {_x:MC._x, _y:MC._y, _width:50, _height:50});
MC.onRollOut = function () {
_root.mapclip.dialog.removeMovieClip();
};
MC.useHandCursor = false;
}
function InitWindow() {
window.fon.gotoAndStop(1);
window.ok.onLoad = function () {
this.InitText(_root.TextOK.value);
this.InitFunction(MyDelegate.create(this._parent._parent, this._parent._parent.MoveMark, [0]));
};
downmap.b2.onLoad = function () {
if (_root.NRound > 17) {
_root.Life = 0;
this.InitFunction(_root.GameOver);
} else if (_root.NRound > 0) {
this.InitFunction(_root.InitSumka);
} else {
this.InitFunction(_root.InitRound);
}
this.InitText(_root.TextPlay.value);
};
downmap.b1.onLoad = function () {
if (_root.NagTime == 0) {
this.InitFunction(_root.FunctionHelp);
this.InitText(_root.TextHelp.value);
} else {
this.InitFunction(_root.FunctionDownload);
this.InitText(_root.TextDownload.value);
}
};
for (var _local3 in candle) {
candle[_local3].gotoAndPlay(random(70));
}
}
function Clock() {
var _local3 = this;
var _local4 = new Date();
var _local2 = _local4.getMinutes();
var _local6 = _local4.getHours();
var _local5 = _local4.getSeconds();
_local3.s._rotation = ((_local5 / 60) * 360) - 90;
_local2 = _local2 + (_local5 / 60);
_local3.m._rotation = ((_local2 / 60) * 360) - 90;
_local3.h._rotation = (((_local6 + (_local2 / 60)) / 12) * 360) - 90;
}
function ArtOver(mc) {
if (notBlock) {
_root.Click_s.start(_root.SoundOn);
mc.gotoAndPlay(2);
dialog.removeMovieClip();
dialog = createEmptyMovieClip("dialog", 31);
var _local3 = dialog.attachMovie("dialog_ramka", "r", 0);
var _local4 = dialog.createEmptyMovieClip("p", 1);
ShowSay(_local3, _local4, _root["ArtDesc" + mc._name.substr(1, 2)]);
_local4._x = (_local3._width / 2) - 15;
_local4._y = (_local3._height - _local4._height) / 2;
dialog._x = ((window._x + mc._x) + window.arts._x) - _local3._width;
dialog._y = (((window._y + mc._y) + window.arts._y) - _local3._height) + 40;
}
}
function ShowSay(r, p, msg) {
var _local3 = 40;
Saying(p, msg);
var _local4 = Math.max(p._height + 20, 2 * _local3);
var _local5 = Math.max(p._width + 20, 2 * _local3);
r.LU._x = 0;
r.LU._y = 0;
r.LD._x = 0;
r.LD._y = _local4;
r.RU._x = _local5;
r.RU._y = 0;
r.RD._x = _local5;
r.RD._y = _local4;
r.BU._x = _local3;
r.BU._y = 0;
r.BU._width = _local5 - (_local3 * 2);
r.BD._x = _local3;
r.BD._y = _local4;
r.BD._width = _local5 - (_local3 * 2);
r.BL._x = 0;
r.BL._y = _local3;
r.BL._height = _local4 - (_local3 * 2);
r.BR._x = _local5;
r.BR._y = _local3;
r.BR._height = _local4 - (_local3 * 2);
r.C._x = _local3;
r.C._y = _local3;
r.C._width = _local5 - (_local3 * 2);
r.C._height = _local4 - (_local3 * 2);
}
function Saying(MC, arttext) {
var _local8 = 200;
var _local10 = arttext.split("|")[0];
arttext = arttext.split("|")[2];
MC.createTextField("TEXT", MC.getNextHighestDepth(), 0, 0, 0, 0);
MC.TEXT._y = 20;
MC.createTextField("TEXTh", MC.getNextHighestDepth(), 0, 0, 0, 0);
MC.TEXT.multiline = true;
MC.TEXT.embedFonts = true;
MC.TEXT.autoSize = "center";
MC.TEXT.selectable = false;
MC.TEXTh.multiline = true;
MC.TEXTh.embedFonts = true;
MC.TEXTh.autoSize = "center";
MC.TEXTh.selectable = false;
var _local6 = new TextFormat();
_local6.font = "GameFont";
_local6.size = 12;
_local6.leading = 0;
_local6.bold = true;
_local6.color = _root.TextYellowLight;
_local6.align = "center";
_local6.leftMargin = 0;
_local6.rightMargin = 0;
var _local4 = arttext.split(" ");
var _local5 = "";
var _local2 = 0;
while (_local2 < _local4.length) {
var _local7 = (_local5 + " ") + _local4[_local2];
MC.TEXT.text = _local7;
MC.TEXT.setTextFormat(_local6);
if (MC.TEXT._width > _local8) {
_local5 = _local5 + (newline + _local4[_local2]);
} else {
_local5 = _local5 + (" " + _local4[_local2]);
}
_local2++;
}
MC.TEXT.text = _local5;
MC.TEXT.setTextFormat(_local6);
_local6.color = _root.TextGreen;
MC.TEXTh.text = _local10;
MC.TEXTh.setTextFormat(_local6);
}
function ShowRamka(x, y, text) {
clearInterval(moving1);
ramka.removeMovieClip();
ramka = createEmptyMovieClip("ramka", getNextHighestDepth());
ramka.createEmptyMovieClip("t", 1);
ramka.attachMovie("ramka_tip", "r", 0);
_root.TextShow(ramka.t, text, "GameFont", -4, 14, 1, 14, _root.TextYellow);
ramka.t._x = x;
ramka.t._y = y;
ramka.r._x = (x - (ramka.t._width / 2)) - 10;
ramka.r._y = y - (ramka.t._height / 2);
ramka.r._height = ramka.t._height + 10;
ramka.r._width = ramka.t._width + 20;
ramka.r._alpha = 50;
}
function OverClip(mc, i) {
clearInterval(moving1);
ramka.removeMovieClip();
var _local3 = 2;
if (i < country) {
_local3 = 1;
}
moving1 = setInterval(MyDelegate.create(this, ShowRamka, [mc._x + 21, mc._y - 50, _root[("MapMarkaTip" + _local3) + int(i + 1)]]), 1300);
}
function OutClip(mc, i) {
ramka.removeMovieClip();
clearInterval(moving1);
}
var country = 0;
var nmark = -1;
var MT = 1000;
var notBlock = true;
}
Symbol 1170 MovieClip [__Packages.GameSum] Frame 0
class GameSum extends MovieClip
{
var e, book, down, b1, b2, up, left, right, moving, _parent, dialog, createEmptyMovieClip, attachMovie, Dnevnik, notebook;
function GameSum () {
super();
InitSum();
_root.GetBlack(0, e, 0);
}
function InitSum() {
book._x = 260;
book._y = 70;
var _local4 = 150;
var _local3 = 240;
countrycurr = _root.getCountry(_root.NRound);
if (_root.NRound || (_root.fon.EndCondition)) {
InitBook(_local4, _local3);
}
InitArtLine();
down.b.onLoad = function () {
this.InitFunction(this._parent._parent.InitRound);
this.InitText(_root.TextPlay.value);
};
b1.onLoad = function () {
this.InitFunction(this._parent.FunctionDownload);
this.InitText(_root.TextDownload.value);
};
b2.onLoad = function () {
this.InitFunction(this._parent.InitMap);
this.InitText(_root.TextMap.value);
};
up.text.createEmptyMovieClip("d", 0);
if (_root.Local.value == "en") {
LoadHGood();
} else {
LoadHBad();
}
}
function LoadHGood() {
var _local6 = ("c" + countrycurr) + "b";
var _local3 = up.text;
_local3.d.attachMovie(_local6, "T", 0);
var _local4 = _local3.createEmptyMovieClip("b", 1);
_local4._x = _local3.d._width;
var _local5 = (_root.fon.EndCondition ? (_root.NRound + 2) : (_root.NRound + 1));
_root.TextShow(_local4, String(_local5), "d", 0, 20, 0);
_local3._y = _local3._y - 3;
_local3._x = _local3._x - (_local3._width / 2);
}
function LoadHBad() {
_root.TextShow(up.text, _root.GetDayString(_root.fon.EndCondition), "GameFont", -2, 20, 1, 16, _root.TextYellow);
}
function InitArtLine() {
artn = _root.map[countrycurr].length - 1;
if (!countrycurr) {
artn--;
}
var _local11 = _root.getLevel(_root.NRound);
var _local5 = Math.ceil(artn / 2);
var _local10 = 15;
var _local9 = 40;
var _local3 = 0;
while (_local3 < artn) {
var _local4 = left["art" + _local3];
var _local6 = 0;
if (_local3 >= _local5) {
var _local7 = artn - _local5;
var _local8 = (arthM - (_local7 * 47)) / (_local7 - 1);
_local4 = right.attachMovie("smallart_sum", "art" + _local3, _local3, {_x:_local10, _y:(int(_local3 - _local5) * (_local8 + 47)) + _local9});
_local4 = right["art" + _local3];
_local4.scale = 100;
_local4.attachMovie("quest_m", "a", 0, {_x:33, _y:7, _xscale:-100});
_local6 = 1;
} else {
var _local8 = (arthM - (_local5 * 47)) / (_local5 - 1);
_local4 = left.attachMovie("smallart_sum", "art" + _local3, _local3, {_x:_local10, _y:(int(_local3) * (_local8 + 47)) + _local9});
_local4 = left["art" + _local3];
_local4.scale = -100;
_local4.attachMovie("quest_m", "a", 0, {_x:14, _y:7, _xscale:100});
}
if ((_local3 < _local11) && (countrycurr || (_local3 < (_local11 - 1)))) {
GetFunction(_local4, _local3, _local6);
}
_local3++;
}
}
function GetFunction(mc, i, c) {
if (!countrycurr) {
i++;
}
mc.onRollOver = MyDelegate.create(this, ArtOver, [mc]);
mc.onRollOut = (mc.onReleaseOutside = function () {
this._parent._parent.dialog.removeMovieClip();
});
mc.NA = _root.getRound(countrycurr, i);
var _local3 = mc.attachMovie("fulla" + mc.NA, "a", 0, {_x:2, _y:2});
_local3._width = 42;
_local3._height = 42;
if (c) {
_local3._xscale = -56;
_local3._x = _local3._x + _local3._width;
}
}
function MovePanels(N, F) {
notBlock = false;
var _local7 = [up, down, left, right];
var _local6 = [];
var _local4 = [];
var _local5 = [];
var _local3 = [];
if (N == 1) {
_local6 = [up._x, down._x, -left._width, 520 + right._width];
_local4 = [up._x, down._x, 0, 520];
_local5 = [-up._height, 390, left._y, right._y];
_local3 = [0, 390 - down._height, left._y, right._y];
} else {
_local4 = [up._x, down._x, -left._width, 520 + right._width];
_local6 = [up._x, down._x, 0, 520];
_local3 = [-up._height, 390, left._y, right._y];
_local5 = [0, 390 - down._height, left._y, right._y];
}
_root.panelslide_s.start(_root.SoundOn);
clearInterval(moving);
moving = setInterval(MyDelegate.create(this, Moving, [_local7, _local6, _local4, _local5, _local3, getTimer(), F]), 0);
}
function Moving(N, X1, X2, Y1, Y2, T, F) {
var _local5 = (getTimer() - T) / 1000;
if (_local5 >= 1) {
_local5 = 1;
clearInterval(moving);
notBlock = true;
F();
if (_root.fon.EndCondition) {
if (_root.NRound) {
AppearMC(_root.NRound);
}
_root.fon.EndCondition = false;
_root.NRound++;
if (_root.NRound == 18) {
_root.NRound = 0;
}
}
}
var _local3 = 0;
while (_local3 < N.length) {
N[_local3]._x = X1[_local3] + ((X2[_local3] - X1[_local3]) * _local5);
N[_local3]._y = Y1[_local3] + ((Y2[_local3] - Y1[_local3]) * _local5);
_local3++;
}
}
function FunctionDownload() {
if (_parent.notBlock && (_parent.notebook.notOpening)) {
_root.FunctionDownload();
}
}
function InitMap() {
if (_parent.notBlock && (_parent.notebook.notOpening)) {
_parent.MovePanels(0, _root.InitMap);
}
}
function InitRound() {
var _local3 = _parent._parent;
if (_local3.notBlock) {
_root.ClearAll(_local3.notebook, 0, 1, 1);
if (_root.RoundSity != _root.getLevel(_root.NRound)) {
_local3.MovePanels(0, _root.InitRound);
} else {
_local3.MovePanels(0, _root.UnMoveSuc);
}
}
}
function ArtOver(mc) {
if (notBlock) {
_root.Click_s.start(_root.SoundOn);
dialog.removeMovieClip();
dialog = createEmptyMovieClip("dialog", 1);
dialog._x = mc._x + mc._parent._x;
dialog._y = mc._y + mc._parent._y;
var _local3 = dialog.attachMovie("dialog_ramka", "r", 0);
var _local5 = dialog.createEmptyMovieClip("p", 1);
ShowSay(_local3, _local5, _root["ArtDesc" + mc.NA]);
_local3._x = (-_local3._width) / 2;
_local3._y = 50 - _local3._height;
_local5._x = _local5._x - ((mc.scale / 100) * 70);
_local3._x = _local3._x - ((mc.scale / 100) * 55);
if (mc.scale < 0) {
_local3._xscale = mc.scale;
_local3._x = _local3._x + _local3._width;
} else {
_local5._x = _local5._x - 30;
_local3._x = _local3._x - 30;
}
_local5._y = _local3._y + ((_local3._height - _local5._height) / 2);
dialog._x = dialog._x - (((mc.scale / 100) * _local3._width) / 2);
}
}
function Saying(MC, arttext) {
var _local8 = 300;
var _local10 = arttext.split("|")[0];
arttext = arttext.split("|")[2];
MC.createTextField("TEXT", MC.getNextHighestDepth(), 0, 0, 0, 0);
MC.TEXT._y = 20;
MC.createTextField("TEXTh", MC.getNextHighestDepth(), 0, 0, 0, 0);
MC.TEXT.multiline = true;
MC.TEXT.embedFonts = true;
MC.TEXT.autoSize = "center";
MC.TEXT.selectable = false;
MC.TEXTh.multiline = true;
MC.TEXTh.embedFonts = true;
MC.TEXTh.autoSize = "center";
MC.TEXTh.selectable = false;
var _local6 = new TextFormat();
_local6.font = "GameFont";
_local6.size = 12;
_local6.leading = 0;
_local6.bold = true;
_local6.color = _root.TextYellowLight;
_local6.align = "center";
_local6.leftMargin = 0;
_local6.rightMargin = 0;
var _local4 = arttext.split(" ");
var _local5 = "";
var _local2 = 0;
while (_local2 < _local4.length) {
var _local7 = (_local5 + " ") + _local4[_local2];
MC.TEXT.text = _local7;
MC.TEXT.setTextFormat(_local6);
if (MC.TEXT._width > _local8) {
_local5 = _local5 + (newline + _local4[_local2]);
} else {
_local5 = _local5 + (" " + _local4[_local2]);
}
_local2++;
}
MC.TEXT.text = _local5;
MC.TEXT.setTextFormat(_local6);
_local6.color = _root.TextGreen;
MC.TEXTh.text = _local10;
MC.TEXTh.setTextFormat(_local6);
}
function ShowSay(r, p, msg) {
var _local3 = 40;
Saying(p, msg);
var _local4 = Math.max(p._height + 20, 2 * _local3);
var _local5 = Math.max(p._width + 20, 2 * _local3);
r.LU._x = 0;
r.LU._y = 0;
r.LD._x = 0;
r.LD._y = _local4;
r.RU._x = _local5;
r.RU._y = 0;
r.RD._x = _local5;
r.RD._y = _local4;
r.BU._x = _local3;
r.BU._y = 0;
r.BU._width = _local5 - (_local3 * 2);
r.BD._x = _local3;
r.BD._y = _local4;
r.BD._width = _local5 - (_local3 * 2);
r.BL._x = 0;
r.BL._y = _local3;
r.BL._height = _local4 - (_local3 * 2);
r.BR._x = _local5;
r.BR._y = _local3;
r.BR._height = _local4 - (_local3 * 2);
r.C._x = _local3;
r.C._y = _local3;
r.C._width = _local5 - (_local3 * 2);
r.C._height = _local4 - (_local3 * 2);
}
function AppearMC(Nu) {
notBlock = false;
var _local10 = Math.ceil(artn / 2);
var _local3 = _root.getLevel(Nu);
if (!countrycurr) {
_local3--;
}
var _local4 = attachMovie("fulla" + Nu, "ArtToPosition", 10);
var _local8 = (_local4._x = (520 - _local4._width) / 2);
var _local6 = (_local4._y = (390 - _local4._height) / 2);
if (_local3 < _local10) {
left["art" + _local3].a.removeMovieClip();
var _local7 = left["art" + _local3]._x + left._x;
var _local5 = left["art" + _local3]._y + left._y;
var _local9 = 0;
} else {
var _local9 = 1;
_local4._xscale = -100;
_local4._x = _local4._x + 83;
right["art" + _local3].a.removeMovieClip();
var _local7 = (right["art" + _local3]._x + right._x) - 83;
var _local5 = right["art" + _local3]._y + right._y;
}
clearInterval(moving);
moving = setInterval(MyDelegate.create(this, MoveArt, [_local4, _local8, _local6, _local7, _local5, _local3, getTimer(), _local9]), 0);
}
function MoveArt(MC, x1, y1, x2, y2, N, T, s) {
var _local8 = 2000;
var _local3 = (getTimer() - T) / _local8;
if (_local3 >= 1) {
clearInterval(moving);
notBlock = true;
MC.removeMovieClip();
if (N < Math.ceil(artn / 2)) {
GetFunction(left["art" + N], N, s);
} else {
GetFunction(right["art" + N], N, s);
}
} else if (_local3 >= 0.5) {
MC._x = x1 + (((x2 - x1) * (_local3 - 0.5)) * 2);
MC._y = y1 + (((y2 - y1) * (_local3 - 0.5)) * 2);
MC._width = (MC._height = 83 + ((-41 * (_local3 - 0.5)) * 2));
} else {
MC._alpha = (100 * _local3) * 2;
MC._xscale = (MC._yscale = 200 - MC._alpha);
var _local5 = (MC._width - 75) / 2;
MC._x = x1 - _local5;
MC._y = y1 - _local5;
}
}
function InitBook(W, H) {
Dnevnik = _root.Dnevnik;
var _local4 = Dnevnik;
var _local7 = book.attachMovie("arrow_sumka", "LA", 101);
var _local6 = book.attachMovie("arrow_sumka", "RA", 102);
_local7._y = (_local6._y = H - (_local6._height / 2));
_local7._x = (-W) + (_local7._width / 2);
_local6._x = W - (_local6._width / 2);
_local6._xscale = -100;
_local6.onRelease = MyDelegate.create(this, RightNote);
_local7.onRelease = MyDelegate.create(this, LeftNote);
var _local5 = _root.NRound;
var _local3 = _local5;
while (_local3 >= 0) {
_local4[_local3].s = 0;
_local3--;
}
if (_root.fon.EndCondition) {
_local5++;
}
maxpage = _local5;
currpage = maxpage;
while ((_local4[currpage].p % 2) != 0) {
currpage--;
}
var _local8 = {};
_local8.p1 = {value:_local4[currpage].t, s:_local4[currpage].s, d:_local4[currpage].d};
_local4[currpage].s = 0;
if (_local4[maxpage].p > _local4[currpage].p) {
_local8.p2 = {value:_local4[maxpage].t, s:_local4[maxpage].s, d:_local4[maxpage].d};
_local4[maxpage].s = 0;
} else {
_local8.p2 = {value:"", s:0};
}
notebook = new Notebook(book, W, H, _local8, 1);
CheckArrows();
UnCheckArrows();
}
function RightNote() {
if (notBlock && (notebook.notOpening)) {
var _local2 = Dnevnik;
var _local4 = {};
var _local3 = currpage;
if ((_local2[_local3 + 1].p == _local2[_local3].p) && ((_local3 + 1) <= maxpage)) {
_local3++;
}
_local4.p1 = {value:_local2[_local3].t, s:_local2[_local3].s, d:_local2[_local3].d};
_local2[_local3].s = 0;
var _local5 = _local3;
_local3 = _local5 + 1;
if (_local2[_local3].p == _local2[_local5].p) {
_local3++;
}
if ((_local2[_local3 + 1].p == _local2[_local3].p) && ((_local3 + 1) <= maxpage)) {
_local3++;
}
if (_local2[_local3].p <= _local2[maxpage].p) {
_local4.p2 = {value:_local2[_local3].t, s:_local2[_local3].s, d:_local2[_local3].d};
_local2[_local3].s = 0;
} else {
_local4.p2 = {value:"", s:0};
}
_local5 = _local3;
_local3 = _local5 + 1;
if (_local2[_local3].p == _local2[_local5].p) {
_local3++;
}
if ((_local2[_local3 + 1].p == _local2[_local3].p) && ((_local3 + 1) <= maxpage)) {
_local3++;
}
if (_local2[_local3].p <= _local2[maxpage].p) {
_local4.p3 = {value:_local2[_local3].t, s:_local2[_local3].s, d:_local2[_local3].d};
_local2[_local3].s = 0;
} else {
_local4.p3 = {value:"", s:0};
}
_local5 = _local3;
_local3 = _local5 + 1;
if (_local2[_local3].p == _local2[_local5].p) {
_local3++;
}
if ((_local2[_local3 + 1].p == _local2[_local3].p) && ((_local3 + 1) <= maxpage)) {
_local3++;
}
if ((_local2[_local3].p > _local2[currpage].p) && (_local2[_local3].p <= _local2[maxpage].p)) {
_local4.p4 = {value:_local2[_local3].t, s:_local2[_local3].s, d:_local2[_local3].d};
_local2[_local3].s = 0;
} else {
_local4.p4 = {value:"", s:0};
}
_local3 = currpage + 1;
while ((_local2[_local3].p % 2) != 0) {
_local3++;
}
if ((_local2[_local3].p > _local2[currpage].p) && (_local2[_local3].p <= _local2[maxpage].p)) {
currpage = _local3;
}
notebook.Open(_local4, 1);
CheckArrows();
}
}
function LeftNote() {
if (notBlock && (notebook.notOpening)) {
var _local2 = Dnevnik;
var _local5 = {};
var _local4 = currpage;
if ((_local2[_local4 + 1].p == _local2[_local4].p) && ((_local4 + 1) <= maxpage)) {
_local4++;
}
_local5.p2 = {value:_local2[_local4].t, s:_local2[_local4].s, d:_local2[_local4].d};
_local2[_local4].s = 0;
_local4 = _local4 + 1;
if (_local2[_local4].p == _local2[currpage].p) {
_local4++;
}
if ((_local2[_local4 + 1].p == _local2[_local4].p) && ((_local4 + 1) <= maxpage)) {
_local4++;
}
if (_local2[_local4].p <= _local2[maxpage].p) {
_local5.p4 = {value:_local2[_local4].t, s:_local2[_local4].s, d:_local2[_local4].d};
_local2[_local4].s = 0;
} else {
_local5.p4 = {value:"", s:0};
}
var _local3 = currpage;
_local4 = _local3 - 1;
if (_local2[_local4].p == _local2[_local3].p) {
_local4--;
}
_local5.p3 = {value:_local2[_local4].t, s:_local2[_local4].s, d:_local2[_local4].d};
_local2[_local4].s = 0;
_local3 = _local4 - 1;
if (_local2[_local4].p == _local2[_local3].p) {
_local3--;
}
_local5.p1 = {value:_local2[_local3].t, s:_local2[_local3].s, d:_local2[_local3].d};
_local2[_local3].s = 0;
notebook.Open(_local5, 0);
if (currpage != _local3) {
currpage = _local3;
}
CheckArrows();
}
}
function CheckArrows() {
_root.Listing_s.start(_root.SoundOn);
book.RA._visible = false;
book.LA._visible = false;
}
function UnCheckArrows() {
var _local2 = Dnevnik;
if ((_local2[currpage].p + 1) >= _local2[maxpage].p) {
} else {
book.RA._visible = true;
}
if (_local2[currpage].p < 1) {
} else {
book.LA._visible = true;
}
countrycurr = Dnevnik[currpage].c;
}
var artn = 7;
var arthM = 290;
var countrycurr = 0;
var notBlock = false;
var currpage = 0;
var maxpage = 0;
}
Symbol 1171 MovieClip [__Packages.Notebook] Frame 0
class Notebook
{
var MC, W, H, Msx, Msy, Mlx, Mly, Mx, My, xd, yd, x1, y1, BookTexts, moving;
function Notebook (MC, w, h, BookTexts, l) {
this.MC = MC;
Init(w, h);
if (l) {
InitB();
}
InitPages(BookTexts);
}
function Init(w, h) {
W = w;
H = h;
MC.attachMovie("p1", "p1", 0, {_x:-W});
MC.attachMovie("p4", "p4", 10);
MC.attachMovie("p3", "p3", 40, {_x:W});
MC.attachMovie("p2", "p2", 20);
MC.attachMovie("l", "l", 30, {_x:W, _y:H});
MC.p2.l._width = (MC.p3.l._width = 1);
MC.p2.l._height = (MC.p3.l._height = 1);
MC.l.l._x = (MC.l.ll._x = (-W) * 2.5);
MC.l.l._y = (MC.l.ll._y = (MC.b._y = (MC.w._y = (-H) * 1.5)));
MC.l.l._width = (MC.l.ll._width = W * 2.5);
MC.l.l._height = (MC.l.ll._height = H * 3);
MC.p3.setMask(MC.l.l);
MC.p2.setMask(MC.l.ll);
MC.w.setMask(MC.p3.l);
MC.b.setMask(MC.p2.l);
}
function Initt(c) {
MC.w.removeMovieClip();
MC.b.removeMovieClip();
MC.attachMovie("whiteline", "w", 41);
MC.attachMovie("blackline", "b", 21);
MC.w.setMask(MC.p3.l);
MC.b.setMask(MC.p2.l);
MC.p2.l._width = (MC.p3.l._width = W);
MC.p2.l._height = (MC.p3.l._height = H);
MC.b._height = (MC.w._height = H * 3);
if (c == "d") {
MC.p2._x = 0;
MC.p3._x = W;
MC.l._x = W;
MC.l._rotation = 0;
MC.b._x = -1000;
Msx = 0;
Msy = H;
Mlx = 0;
Mly = 0;
Mx = W;
My = H;
} else if (c == "u") {
MC.p2._x = 0;
MC.p3._x = W;
MC.l._x = W;
MC.l._rotation = 0;
Msx = 0;
Msy = 0;
Mlx = 0;
Mly = H;
Mx = W;
My = 0;
} else if (c == "U") {
MC.p3._x = -2 * W;
MC.p2._x = -W;
MC.l._x = -W;
MC.l._rotation = 180;
Msx = 0;
Msy = 0;
Mlx = 0;
Mly = H;
Mx = -W;
My = 0;
} else if (c == "D") {
MC.p3._x = -2 * W;
MC.p2._x = -W;
MC.l._x = -W;
MC.l._rotation = 180;
MC.b._x = -1000;
Msx = 0;
Msy = H;
Mlx = 0;
Mly = 0;
Mx = -W;
My = H;
}
xd = Mx;
yd = My;
x1 = Mx;
y1 = My;
}
function D(x1, x2, y1, y2) {
return(Math.sqrt(Math.pow(x1 - x2, 2) + Math.pow(y1 - y2, 2)));
}
function Calll(c, x, y) {
if (x == undefined) {
x1 = MC[c]._x;
y1 = MC[c]._y;
} else {
x1 = x;
y1 = y;
}
var _local5 = D(x1, Msx, y1, Msy);
if (_local5 > W) {
x1 = Msx + (((x1 - Msx) * W) / _local5);
y1 = Msy + (((y1 - Msy) * W) / _local5);
}
_local5 = D(x1, Mlx, y1, Mly);
var _local3 = D(W, 0, H, 0);
if (_local5 > _local3) {
x1 = Mlx + (((x1 - Mlx) * _local3) / _local5);
y1 = Mly + (((y1 - Mly) * _local3) / _local5);
}
var _local7 = Mx;
var _local6 = My;
var _local9 = (x1 + _local7) / 2;
var _local8 = (y1 + _local6) / 2;
MC.l._x = (MC.b._x = (MC.w._x = _local9));
MC.l._y = (MC.b._y = (MC.w._y = _local8));
var _local2 = Math.atan2(_local6 - y1, _local7 - x1);
if (c == "d") {
MC.p3._x = x1 + (H * Math.sin(2 * _local2));
MC.p3._y = y1 - (H * Math.cos(2 * _local2));
} else if (c == "u") {
MC.p3._x = x1;
MC.p3._y = y1;
} else if (c == "U") {
if (_local2 == 0) {
_local2 = Math.PI;
}
MC.p3._x = x1 - (W * Math.cos(2 * _local2));
MC.p3._y = y1 - (W * Math.sin(2 * _local2));
} else if (c == "D") {
if (_local2 == 0) {
_local2 = Math.PI;
}
MC.p3._x = x1 + (_local3 * Math.sin((2 * _local2) - Math.atan(W / H)));
MC.p3._y = y1 - (_local3 * Math.cos((2 * _local2) - Math.atan(W / H)));
}
_local2 = _local2 * 57.2957795130823;
MC.l._rotation = (MC.b._rotation = (MC.w._rotation = _local2));
MC.p3._rotation = 2 * _local2;
}
function InitPages(BookTexts) {
for (var _local3 in BookTexts) {
MC[_local3].TEXT.removeMovieClip();
MC[_local3].TEXT1.removeMovieClip();
MC[_local3].TEXT2.removeMovieClip();
if (BookTexts[_local3].value.length < 10) {
AttachArt(MC[_local3], BookTexts[_local3].value);
} else {
AttachText(MC[_local3], BookTexts[_local3].value, BookTexts[_local3].s, BookTexts[_local3].d);
}
}
}
function Open(BookTexts, dir) {
this.BookTexts = BookTexts;
InitPages(BookTexts);
var _local2 = new Spline();
_local2.addKey(H);
_local2.addKey(H * 0.75);
_local2.addKey(H);
_local2.Calculate();
var _local3 = getTimer();
var _local4 = 1000;
if (dir) {
Initt("d");
} else {
Initt("D");
}
notOpening = false;
MC.onEnterFrame = MyDelegate.create(this, Move, [_local3, _local4, _local2, dir]);
}
function Move(T, TT, MS, dir) {
var _local3 = getTimer();
var _local2 = 1;
if (_local3 >= (T + TT)) {
_local2 = 1;
delete MC.onEnterFrame;
ResetImage();
} else {
_local2 = (_local3 - T) / TT;
}
if (dir) {
Calll("d", W - ((2 * W) * _local2), MS.getPoint(_local2));
} else {
Calll("D", (-W) + ((2 * W) * _local2), MS.getPoint(_local2));
}
}
function ResetImage() {
MC._parent.UnCheckArrows();
notOpening = true;
MC.p2.l._width = (MC.p3.l._width = 1);
MC.p2.l._height = (MC.p3.l._height = 1);
MC.w.removeMovieClip();
MC.b.removeMovieClip();
}
function InitB() {
MC.attachMovie("d", "d", 50, {_x:W, _y:H, x:W, y:H});
MC.attachMovie("d", "u", 51, {_x:W, _y:0, x:W, y:0});
MC.attachMovie("d", "D", 52, {_x:-W, _y:H, x:-W, y:H});
MC.attachMovie("d", "U", 53, {_x:-W, _y:0, x:-W, y:0});
}
function AttachText(MC, Text, show, pa) {
TypeText(MC, Text, show, pa);
}
function AttachArt(MC, Str) {
MC.createEmptyMovieClip("TEXT", 0);
MC.TEXT.a.removeMovieClip();
var _local2 = MC.TEXT.attachMovie(Str, "a", 0);
}
function TypeText(MC, arttext, show, pa) {
var _local8 = 5;
MC.TEXT1.removeMovieClip();
MC.TEXT2.removeMovieClip();
var _local3 = 0;
if (pa.p == 2) {
var _local6 = MC.createEmptyMovieClip("TEXT1", MC.getNextHighestDepth());
_local3 = _local3 + (TypeText2(_local6, pa.t, 0, pa) + 10);
_local6 = MC.createEmptyMovieClip("TEXT2", MC.getNextHighestDepth());
_local6._y = _local3;
_local3 = _local3 + TypeText2(_local6, arttext, show, pa);
} else if (pa.p == 1) {
var _local6 = MC.createEmptyMovieClip("TEXT1", MC.getNextHighestDepth());
_local3 = _local3 + TypeText2(_local6, arttext, show);
_local6 = MC.createEmptyMovieClip("TEXT2", MC.getNextHighestDepth());
_local6._alpha = 0;
_local6._y = _local3;
_local3 = _local3 + TypeText2(_local6, pa.t, 0, pa);
} else {
var _local6 = MC.createEmptyMovieClip("TEXT1", MC.getNextHighestDepth());
_local3 = _local3 + TypeText2(_local6, arttext, show, pa);
}
}
function TypeText2(MC, arttext, show, pa) {
var _local9 = 0;
arttext = arttext.split("|").join(newline);
var _local8 = W - 32;
MC._y = MC._y + 20;
MC._x = 10;
MC.createTextField("TEXT", MC.getNextHighestDepth(), 7, 0, 0, 0);
if (typeof(pa) == "number") {
_local8 = _local8 + 20;
MC._x = 0;
MC._y = MC._y + pa;
}
MC.TEXT.multiline = true;
MC.TEXT.embedFonts = true;
MC.TEXT.autoSize = "left";
MC.TEXT.selectable = false;
var _local7 = new TextFormat();
_local7.font = "GameFont";
_local7.size = 10;
_local7.leading = 0;
_local7.bold = true;
_local7.color = 7811857 /* 0x773311 */;
_local7.align = "left";
_local7.leftMargin = 0;
_local7.rightMargin = 0;
var _local4 = arttext.split(" ");
var _local5 = "";
MC.TEXT._visible = false;
var _local2 = 0;
while (_local2 < _local4.length) {
var _local6 = (_local5 + " ") + _local4[_local2];
MC.TEXT.text = _local6;
MC.TEXT.setTextFormat(_local7);
if (MC.TEXT._width > _local8) {
_local5 = _local5 + (newline + _local4[_local2]);
} else {
_local5 = _local5 + (" " + _local4[_local2]);
}
_local2++;
}
MC.TEXT.text = _local5;
MC.TEXT.setTextFormat(_local7);
MC.TEXT._visible = true;
_local9 = MC._height;
if (show) {
notOpening = false;
MC.TEXT.text = "";
clearInterval(moving);
var _local10 = 0;
var _local11 = 8000;
moving = setInterval(MyDelegate.create(this, TypeTextSlow, [getTimer(), MC.TEXT, _local5, _local7, _local11]), _local10);
}
return(_local9);
}
function TypeTextSlow(T, MC, Text, format, Time) {
var _local2 = (getTimer() - T) / Time;
notOpening = false;
if (_local2 >= 1) {
_local2 = 1;
clearInterval(moving);
notOpening = true;
}
var _local3 = Text.substr(0, int(_local2 * Text.length));
MC.text = _local3;
MC.setTextFormat(format);
}
var notOpening = true;
}
Symbol 1172 MovieClip [__Packages.GameDialog] Frame 0
class GameDialog extends MovieClip
{
var _x, _y, r, OM, bl, createEmptyMovieClip, skip, Pers, ACT, attachMovie, saying, phrase, moving, aving, removeMovieClip;
function GameDialog () {
super();
_x = 0;
_y = 0;
r._visible = false;
r.swapDepths(100);
OM = MyDelegate.create(this, Action);
bl.onPress = OM;
_root.GetBlack(20, this, 0);
createEmptyMovieClip("skip", 1);
var _local4 = createEmptyMovieClip("cccc", 2);
_local4._x = 260;
_local4._y = 370;
SAY(_local4, _root.TextClickContinue.value, "GameFont", -3, 12, 1, 16, 16764040);
skip._x = 80;
skip._y = 5;
SAY(skip, _root.TextSkip.value, "GameFont", -3, 12, 1, 16, 16764040);
skip.onPress = MyDelegate.create(this, EndDialog);
}
function Init(N) {
Pers = _root.DIALOGS[N].ava;
ACT = _root.DIALOGS[N].act;
var _local3 = 0;
while (_local3 < Pers.length) {
var _local4 = attachMovie("dialogramka", Pers[_local3].name, _local3 + 10);
_local4.pers.attachMovie(Pers[_local3].name, "a", 0);
_local4._x = Pers[_local3].x * 0.65;
_local4._y = 390 - (Pers[_local3].y * 0.65);
_local4._alpha = 0;
if (_local4._x < 260) {
_local4._xscale = -100;
}
_local3++;
}
Action(0);
}
function Say(N1, msg) {
clearInterval(saying);
r._xscale = 100;
ShowSay(_root[msg]);
r._y = 195 - (r._height / 2);
r._x = (260 - (r._width / 2)) + 15;
r.RD.d1._alpha = 100;
r.RD.d2._alpha = 0;
if (N1 != "No") {
r._y = (this[N1]._y - (r._height / 2)) - 20;
r._x = ((this[N1]._x - r._width) + 10) - ((50 * this[N1]._xscale) / 100);
} else {
r.RD.d1._alpha = 0;
r.RD.d2._alpha = 100;
}
r._visible = true;
phrase._x = (r._x + (r._width / 2)) - 15;
phrase._y = r._y + ((r._height - phrase._height) / 2);
if (this[N1]._xscale < 0) {
r._xscale = -100;
r._x = r._x + ((2 * r._width) - 30);
phrase._x = phrase._x + r._width;
}
}
function ShowSay(msg) {
var _local3 = 40;
_root.Click_s.start(_root.SoundOn);
phrase.removeMovieClip();
createEmptyMovieClip("phrase", 101);
SAY(phrase, msg);
var _local4 = Math.max(phrase._height + 20, 2 * _local3);
var _local5 = Math.max(phrase._width + 20, 2 * _local3);
r.LU._x = 0;
r.LU._y = 0;
r.LD._x = 0;
r.LD._y = _local4;
r.RU._x = _local5;
r.RU._y = 0;
r.RD._x = _local5;
r.RD._y = _local4;
r.BU._x = _local3;
r.BU._y = 0;
r.BU._width = _local5 - (_local3 * 2);
r.BD._x = _local3;
r.BD._y = _local4;
r.BD._width = _local5 - (_local3 * 2);
r.BL._x = 0;
r.BL._y = _local3;
r.BL._height = _local4 - (_local3 * 2);
r.BR._x = _local5;
r.BR._y = _local3;
r.BR._height = _local4 - (_local3 * 2);
r.C._x = _local3;
r.C._y = _local3;
r.C._width = _local5 - (_local3 * 2);
r.C._height = _local4 - (_local3 * 2);
}
function Action(N) {
if (N == undefined) {
N = diacount + 1;
}
clearInterval(saying);
clearInterval(moving);
r._visible = (phrase._visible = false);
diacount = N;
var _local4 = ACT[N].name;
var _local5 = ACT[N - 1].name;
var _local8 = ACT[N].text != undefined;
var _local7 = SayTime;
var _local6 = Math.min(this[_local5]._alpha, AlphaMin);
if (_local8) {
bl.onPress = OM;
_local7 = _local7 + (_root[ACT[N].text].split(" ").length * 1000);
if ((_local5 == _local4) && (ACT[N - 1].text != undefined)) {
Say(_local4, ACT[N].text);
} else {
clearInterval(saying);
saying = setInterval(MyDelegate.create(this, Say, [_local4, ACT[N].text]), SayTime);
Avatar(_local5, _local4, _local6, 100);
}
} else {
bl.onPress = null;
if (this[_local4]._alpha > 50) {
_local5 = ((_local4 == _local5) ? "" : (_local5));
Avatar(_local4, _local5, 0, _local6);
} else {
Avatar(_local4, _local5, AlphaMin, _local6);
}
}
clearInterval(moving);
if ((N + 1) != ACT.length) {
moving = setInterval(MyDelegate.create(this, Action, [N + 1]), _local7);
} else {
EndDialog();
bl.onPress = null;
}
}
function EndDialog() {
clearInterval(saying);
clearInterval(aving);
clearInterval(moving);
_root.ClearAll(this, 1, 1, 1);
_root.StartRound();
removeMovieClip();
}
function Avatar(N1, N2, a1, a2) {
clearInterval(aving);
aving = setInterval(MyDelegate.create(this, Aving, [getTimer(), N1, N2, this[N1]._alpha, this[N2]._alpha, a1, a2]), 0);
}
function Aving(T, N1, N2, a1, a2, aa1, aa2) {
var _local2 = (getTimer() - T) / SayTime;
if (_local2 >= 1) {
_local2 = 1;
clearInterval(aving);
}
this[N1]._alpha = a1 + ((aa1 - a1) * _local2);
this[N2]._alpha = a2 + ((aa2 - a2) * _local2);
}
function SAY(MC, arttext) {
var _local8 = 300;
arttext = arttext.split("|").join(newline);
MC.createTextField("TEXT", MC.getNextHighestDepth(), 0, 0, 0, 0);
MC.TEXT.multiline = true;
MC.TEXT.embedFonts = true;
MC.TEXT.autoSize = "center";
MC.TEXT.selectable = false;
var _local7 = new TextFormat();
_local7.font = "GameFont";
_local7.size = 12;
_local7.leading = 0;
_local7.bold = true;
_local7.color = _root.TextYellowLight;
_local7.align = "center";
_local7.leftMargin = 0;
_local7.rightMargin = 0;
var _local4 = arttext.split(" ");
var _local5 = "";
MC.TEXT._visible = false;
var _local2 = 0;
while (_local2 < _local4.length) {
var _local6 = (_local5 + " ") + _local4[_local2];
MC.TEXT.text = _local6;
MC.TEXT.setTextFormat(_local7);
if (MC.TEXT._width > _local8) {
_local5 = _local5 + (newline + _local4[_local2]);
} else {
_local5 = _local5 + (" " + _local4[_local2]);
}
_local2++;
}
MC.TEXT.text = _local5;
MC.TEXT.setTextFormat(_local7);
MC.TEXT._visible = true;
}
var diacount = 0;
var SayTime = 200;
var AlphaMin = 60;
}
Symbol 1173 MovieClip [__Packages.ArtClass] Frame 0
class ArtClass extends MovieClip
{
var _name, Size, root, FindI, FindJ, FindName, tabEnabled, useHandCursor, onPress, onRollOver, onRollOut, onRelease, onReleaseOutside, moving, _alpha, _x, _y, gotoAndStop, s, t, ob, _parent, _width, shadow, a, m, duplicateMovieClip, spX, spY, sspX, sspY, _xscale, _yscale, removeMovieClip;
function ArtClass () {
super();
if (_name.substr(0, 1) == "s") {
Size = _root.Size;
root = _root.game;
FindI = _root.FindI;
FindJ = _root.FindJ;
FindName = _root.FindName;
tabEnabled = false;
useHandCursor = false;
onPress = MyDelegate.create(this, _root.Press);
onRollOver = MyDelegate.create(this, _root.OverMove);
onRollOut = MyDelegate.create(this, _root.OutMove);
onRelease = MyDelegate.create(this, _root.Release);
onReleaseOutside = MyDelegate.create(this, _root.Release);
var _local4 = _root.Matrix[FindI(_name)][FindJ(_name)];
bonus = _local4;
Draw(_local4);
}
}
function Move(x1, y1, x2, y2, TT, F, a1, a2, r) {
clearInterval(moving);
var _local2 = getTimer();
if (F == undefined) {
F = null;
}
if (a1 == undefined) {
a1 = _alpha;
}
if (a2 == undefined) {
a2 = 100;
}
if (r == undefined) {
r = 0;
}
falldistance = Math.abs(y2 - y1);
moving = setInterval(MyDelegate.create(this, Moving, [x1, y1, x2, y2, _local2, TT, F, a1, a2, r]), 0);
}
function Moving(x1, y1, x2, y2, T, TT, F, a1, a2, r) {
var _local3 = getTimer();
if (_local3 >= (T + TT)) {
clearInterval(moving);
_x = x2;
_y = y2;
_alpha = a2;
var _local9 = _name;
var _local7 = _root.Blink;
F(_local9, _local7);
} else {
var _local11 = x1 + (((x2 - x1) * (_local3 - T)) / TT);
var _local10 = y1 + (((y2 - y1) * (_local3 - T)) / TT);
var _local8 = a1 + (((a2 - a1) * (_local3 - T)) / TT);
var _local4 = int(1 + ((23 * (_local3 - T)) / TT));
_local4 = ((r < 0) ? (25 - _local4) : (_local4 * r));
_x = _local11;
_y = _local10;
_alpha = _local8;
gotoAndStop(_local4);
}
}
function Play() {
active = true;
StopShine();
}
function Stop() {
active = false;
StopShine();
}
function StartShine() {
s.removeMovieClip();
}
function StopShine() {
s.removeMovieClip();
}
function Delete(MC) {
clearInterval(_root.game[MC].moving);
_root.game[MC].removeMovieClip();
}
function DeleteFly(MC) {
clearInterval(_root.fly[MC].moving);
_root.fly[MC].removeMovieClip();
}
function Draw(what) {
var _local4 = what.substr(0, 1) - 1;
var _local3 = _root.ART[_root.NRound][_local4];
FillArt(this, what, _local3.W / 2, _local3.H / 2, Size + 10);
}
function FillArt(Name, slide, X, Y, W) {
if (bonus != "watch") {
var _local4 = Name.a.duplicateMovieClip("mc_b", Name.getNextHighestDepth());
var _local2 = Name.a.attachMovie("art", "art0", Name.a.getNextHighestDepth());
_local2.b.attachMovie(slide, "n", 1);
_local2.gotoAndPlay(Math.round(Math.random() * 55));
var _local7 = new Color(_local4);
_local7.setRGB(0);
_local7 = new Color(_local2);
_local7.setRGB(16776960);
Name.attachMovie("black", "m", Name.getNextHighestDepth(), {_x:-5, _y:-5, _width:W, _height:W});
var _local8 = Name.m.duplicateMovieClip("m_b", Name.getNextHighestDepth());
Name.a.setMask(Name.m);
_local4.setMask(_local8);
Name.a.swapDepths(Name.getNextHighestDepth());
_local2 = Name.a;
t = Math.max(X * 2, Y * 2);
t = Size / t;
_local4._xscale = (_local2._xscale = t * 100);
_local4._yscale = (_local2._yscale = t * 100);
_local2._x = _local2._x + (((Size / 2) - X) + (X - (X * t)));
_local2._y = _local2._y - (((83 - (Size / 2)) - Y) - (((-Y) + 83) - (((-Y) + 83) * t)));
_local4._x = _local2._x;
_local4._y = _local2._y;
_local4._alpha = 40;
_local4.ob = {inter:random(4000), period:4000 + random(3000), sx:_local2._x, sy:_local2._y};
_local4.onEnterFrame = Drig;
}
}
function Drig() {
var _local5 = -4;
var _local2 = ob;
var _local4 = _parent.a;
var _local3 = (getTimer() - _local2.inter) % _local2.period;
if ((_local3 > 3000) && (_local3 < 3500)) {
_local4._x = _local2.sx + (((_local5 * (_local3 - 3000)) / 500) / 2);
_local4._y = _local2.sy + ((_local5 * (_local3 - 3000)) / 500);
} else if ((_local3 > 3500) && (_local3 < 4000)) {
_local4._x = _local2.sx - (((_local5 * (_local3 - 4000)) / 500) / 2);
_local4._y = _local2.sy - ((_local5 * (_local3 - 4000)) / 500);
} else {
_local4._x = _local2.sx;
_local4._y = _local2.sy;
}
}
function MoveToArt() {
var _local6 = bonus;
if (bonus == "watch") {
_width = (shadow._height = (_width = (shadow._height = 30)));
a._x = (a._y = 0);
var _local11 = 40;
var _local19 = 60;
} else {
var _local11 = _root.ART[_root.NRound][Number(_local6.substr(0, 1)) - 1].x + _root.ART[_root.NRound].xArt;
var _local19 = _root.ART[_root.NRound][Number(_local6.substr(0, 1)) - 1].y + _root.ART[_root.NRound].yArt;
}
m.removeMovieClip();
a.art0.removeMovieClip();
duplicateMovieClip("as" + _local6, _root.flyart.getNextHighestDepth());
shadow = _root.flyart["as" + _local6];
shadow.a.art0.removeMovieClip();
shadow.swapDepths(this);
shadow._alpha = 50;
var _local22 = new Color(shadow);
_local22.setRGB(0);
var _local8 = _x;
var _local13 = _y;
var _local15 = _x;
var _local14 = _y + 30;
var a = ((100 * Math.random()) - 70);
var _local16 = 7;
var _local7 = 2;
var _local24 = _x - a;
var _local23 = _y + a;
var _local10 = _local11;
var _local9 = _local19;
var a = ((100 * Math.random()) - 100);
var _local18 = 300 - a;
var _local17 = 200 + a;
var _local12 = _local11 - (20 * Math.random());
var _local20 = _local19 - (50 * Math.random());
spX = new Spline(_local8, _local15, _local18, _local12, _local10);
spY = new Spline(_local13, _local14, _local17, _local20, _local9);
sspX = new Spline(_local8, _local15 + _local7, _local18 + _local16, _local12 + _local7, _local10);
sspY = new Spline(_local13, _local14 + _local7, _local17 + _local16, _local20 + _local7, _local9);
var _local5 = 30;
var _local4 = 0;
while (_local4 < _local5) {
var _local3 = _parent.attachMovie("star", "shleif" + _local4, _parent.getNextHighestDepth());
_local3._xscale = (_local3._yscale = 10 + random(90));
_local3._x = (_x + random(15)) + 15;
_local3._y = (_y + random(15)) + 15;
_local3.onEnterFrame = MyDelegate.create(this, SHL, [_local3]);
_local4++;
}
var _local21 = 3100;
clearInterval(moving);
moving = setInterval(MyDelegate.create(this, MoveArtToPosition, [_local6, _local10, _local9, getTimer(), _local8, _local21, a._x, a._y, _xscale]), 0);
}
function MoveArtToPosition(Name, EndX, EndY, Time, x2, snd, XX, YY, SC) {
var _local8 = false;
var _local4 = getTimer();
if ((_local4 - Time) >= snd) {
_local8 = true;
} else {
_root.SomeMove = true;
var _local5 = (_local4 - Time) / snd;
if (bonus != "watch") {
var _local11 = SC + ((100 - SC) * _local5);
_xscale = (shadow._xscale = (_yscale = (shadow._yscale = _local11)));
}
_x = spX.getPoint(_local5);
_y = spY.getPoint(_local5);
shadow._x = sspX.getPoint(_local5);
shadow._y = sspY.getPoint(_local5);
a._x = XX - ((XX * (_local4 - Time)) / snd);
a._y = YY - ((YY * (_local4 - Time)) / snd);
shadow.a._x = XX - ((XX * (_local4 - Time)) / snd);
shadow.a._y = YY - ((YY * (_local4 - Time)) / snd);
}
if (_local8) {
_root.SomeMove = false;
clearInterval(moving);
_x = EndX;
_y = EndY;
delete spX;
delete spY;
delete sspX;
delete sspY;
_root.CheckEnd();
shadow.removeMovieClip();
var _local3 = 0;
while (_local3 < 50) {
_parent["shleif" + _local3].removeMovieClip();
_local3++;
}
if (bonus == "watch") {
_root.fon.StartIce(30000);
removeMovieClip();
}
}
}
function SHL(mc) {
if (mc._xscale < 1) {
mc._xscale = (mc._yscale = 100);
mc._x = (_x + random(15)) + 15;
mc._y = (_y + random(15)) + (0.4 * _yscale);
} else {
mc._xscale = mc._xscale - 3;
mc._yscale = mc._yscale - 3;
}
}
var active = false;
var art = true;
var lock = "";
var bonus = "";
var falldistance = 0;
}
Symbol 1174 MovieClip [__Packages.GameHelp] Frame 0
class GameHelp extends MovieClip
{
var left, right, bl, blusk, _x, _width, _y, _height, button, header, gotoAndStop, help13, _parent;
function GameHelp () {
super();
InitPanel();
left.onPress = MyDelegate.create(this, Left);
right.onPress = MyDelegate.create(this, Right);
blusk.useHandCursor = (bl.useHandCursor = false);
bl.onPress = (blusk.onPress = null);
_x = (520 - _width) / 2;
_y = (390 - _height) / 2;
bl._x = -_x;
bl._y = -_y;
bl._width = 520;
bl._height = 390;
button.onLoad = function () {
this.InitText(_root.TextOK.value, "0", 0, 0, 0, 0, 0, -1, 0);
this.InitFunction(this._parent.Exit);
};
header.createEmptyMovieClip("M", 0);
if (_root.Local.value == "en") {
LoadHGood();
} else {
LoadHBad();
}
}
function LoadHGood() {
header.M.attachMovie("htp", "T", 0);
header._x = header._x - (header._width / 2);
header._y = header._y - 4;
}
function LoadHBad() {
_root.TextShow(header, _root.TextHowToPlay.value, "GameFont", 0, 0, 1, 20, _root.TextYellow);
}
function setFon(c) {
bl._alpha = c;
}
function InitPanel() {
gotoAndStop(position);
var _local3 = 1;
while (_local3 < 4) {
_root.TextShow(this["txt" + _local3], _root[("HelpText" + position) + _local3], "GameFont", -4, 12, 1, 10, _root.TextYellow);
_local3++;
}
_root.TextShow(help13, _root.TextHelpHead["page" + position], "GameFont", -3, 0, 1, 16, _root.TextYellow);
if (position == 2) {
_local3 = 1;
while (_local3 < 5) {
this["b" + _local3].gotoAndStop("b" + _local3);
this["b" + _local3].onEnterFrame = function () {
this.gotoAndStop(this._currentframe + 1);
};
_local3++;
}
}
}
function Left() {
if (position == 1) {
position = 3;
} else {
position--;
}
InitPanel();
}
function Right() {
if (position == 3) {
position = 1;
} else {
position++;
}
InitPanel();
}
function Exit() {
_parent.removeMovieClip();
}
var position = 1;
}
Symbol 1175 MovieClip [__Packages.GameButton] Frame 0
class GameButton extends MovieClip
{
var txt, gotoAndStop, _xscale, _yscale;
function GameButton () {
super();
InitButton(this);
_root.TextShow(txt, T);
gotoAndStop("n");
ResizeText();
}
function ResizeText() {
txtwx = 10000 / _xscale;
txtwy = 10000 / _yscale;
txt._xscale = txtwx;
txt._yscale = txtwy;
}
function InitFunction(F) {
this.F = F;
}
function InitText(T, l, W, H, C, WT, HT, x, y) {
ResizeText();
this.T = T;
_root.TextShow(txt, T, l, W, H, C, WT, HT);
if (x != undefined) {
txt._x = txt._x + x;
}
if (y != undefined) {
txt._y = txt._y + y;
}
txt._y = txt._y + 2;
}
function InitButton(B) {
B.onRollOver = function () {
this.gotoAndStop("a");
};
B.onRollOut = function () {
this.gotoAndStop("n");
};
B.onReleaseOutside = function () {
this.gotoAndStop("n");
this.txt._xscale = this.txtwx;
this.txt._yscale = this.txtwy;
};
B.onPress = function () {
_root.ButtonClick_s.start(_root.SoundOn);
this.gotoAndStop("p");
this.txt._xscale = this.txtwx * 0.95;
this.txt._yscale = this.txtwy * 0.95;
};
B.onRelease = function () {
this.gotoAndStop("a");
this.txt._xscale = this.txtwx;
this.txt._yscale = this.txtwy;
this.F();
};
}
var T = "O";
var F = null;
var txtwx = 100;
var txtwy = 100;
}
Symbol 1176 MovieClip [__Packages.Score] Frame 0
class Score
{
var ScoreText, scoring;
function Score (ScoreText, sc) {
this.ScoreText = ScoreText;
score = sc;
AddScore = 0;
ShowScore();
}
function ScoreAddScore(chk) {
var _local2 = 5;
if (chk == "y") {
_local2 = 20;
}
if (AddScore > 0) {
score = score + _local2;
AddScore = AddScore - _local2;
ShowScore();
} else {
clearInterval(scoring);
AddScore = 0;
}
}
function ShowScore() {
_root.TextShow(ScoreText, String(score), "d", -1, 20, 1, 16, _root.TextYellowLight);
}
function Add(Score1, chk) {
if (!_root.stats) {
AddScore = AddScore + Score1;
var _local3 = 10;
if (AddScore < 30) {
_local3 = 200;
} else if (AddScore < 100) {
_local3 = 20;
} else if (AddScore > 300) {
chk = "y";
}
clearInterval(scoring);
scoring = setInterval(MyDelegate.create(this, ScoreAddScore, [chk]), _local3);
}
}
var score = 0;
var AddScore = 0;
}
Symbol 1177 MovieClip [__Packages.GameHint] Frame 0
class GameHint extends Object
{
var MCRoot, hint, TextShow, windowMain, window, hinttext, button, cursor, moving;
function GameHint (MCRoot, hint, TextShow) {
super();
_root.TipWindow_s.start(_root.SoundOn);
this.MCRoot = MCRoot;
this.hint = hint;
this.TextShow = TextShow;
windowMain = MCRoot.createEmptyMovieClip("hint_panel", 451);
windowMain._alpha = 0;
window = windowMain.createEmptyMovieClip("window", 1);
window.attachMovie("panel2", "window", 1);
hinttext = windowMain.createEmptyMovieClip("hinttext", 2);
button = windowMain.attachMovie("button", "button", 3);
button.InitText(_root.TextOK.value, "GameFont", 4, 14, 1, 20, "0x773311", 4, -2);
button.InitFunction(_root.FromHint);
button._width = 50;
button._height = 25;
cursor = MCRoot.attachMovie("hintcursor", "hintcursor", 450);
cursor._visible = false;
window.window.onMouseDown = MyDelegate.create(this, StartDrag);
window.window.onRelease = (window.window.onReleaseOutside = MyDelegate.create(this, StopDrag));
window.window.useHandCursor = false;
var _local5 = _root.TextYellowLight;
switch (hint) {
case 0 :
var _local8 = MCRoot.FindStop(0, 0);
MCRoot.ShowLight(_local8.i1, _local8.j1, _local8.i2, _local8.j2);
Y = ((Math.max(_local8.i1, _local8.i2) + 3) * MCRoot.Size) + MCRoot.GlobalY;
X = 0;
TextShow(hinttext, MCRoot["msg_" + hint], "GameFont", -4, 15, 1, 12, _local5, 200);
break;
case 1 :
FindSlide(["2a"], 1);
Y = 0;
X = 100;
TextShow(hinttext, MCRoot["msg_" + hint], "GameFont", -4, 15, 1, 12, _local5, 200);
break;
case 2 :
_local8 = MCRoot.FindStop(0, 0);
MCRoot.ShowLight(_local8.i1, _local8.j1, _local8.i2, _local8.j2);
Y = ((Math.max(_local8.i1, _local8.i2) + 3) * MCRoot.Size) + MCRoot.GlobalY;
X = 0;
TextShow(hinttext, MCRoot["msg_" + hint], "GameFont", -4, 15, 1, 12, _local5, 200);
break;
case 3 :
FindSlide(["1a", "2a"], 1);
Y = 20;
X = 100;
TextShow(hinttext, MCRoot["msg_" + hint], "GameFont", -4, 15, 1, 12, _local5, 200);
break;
case 4 :
GoHints(330, 290);
Y = 200;
TextShow(hinttext, MCRoot["msg_" + hint], "GameFont", -4, 15, 1, 12, _local5, 200);
break;
case 5 :
GoHints(310, 40, 180);
Y = 170;
TextShow(hinttext, MCRoot["msg_" + hint], "GameFont", -4, 15, 1, 12, _local5, 200);
break;
case 6 :
GoHints(-10, 80, 125);
Y = 100;
TextShow(hinttext, MCRoot["msg_" + hint], "GameFont", -4, 15, 1, 12, _local5, 200);
break;
case 7 :
FindSlide(["watch"], 1);
Y = 10;
X = 70;
TextShow(hinttext, MCRoot["msg_" + hint], "GameFont", -4, 15, 1, 12, _local5, 200);
break;
case 8 :
GoHints(-35, 265, 45);
Y = 100;
TextShow(hinttext, MCRoot["msg_" + hint], "GameFont", -4, 15, 1, 12, _local5, 200);
break;
case 9 :
GoHints(-35, 265, 45);
Y = 100;
TextShow(hinttext, MCRoot["msg_" + hint], "GameFont", -4, 15, 1, 12, _local5, 200);
break;
case 10 :
GoHints(-35, 265, 45);
Y = 100;
TextShow(hinttext, MCRoot["msg_" + hint], "GameFont", -4, 15, 1, 12, _local5, 200);
break;
case 11 :
GoHints(-35, 265, 45);
Y = 100;
TextShow(hinttext, MCRoot["msg_" + hint], "GameFont", -4, 15, 1, 12, _local5, 200);
break;
case 12 :
GoHints(-35, 265, 45);
Y = 100;
TextShow(hinttext, MCRoot["msg_" + hint], "GameFont", -4, 15, 1, 12, _local5, 200);
break;
case 13 :
GoHints(-35, 265, 45);
Y = 100;
TextShow(hinttext, MCRoot["msg_" + hint], "GameFont", -4, 15, 1, 12, _local5, 200);
break;
case 14 :
_local8 = MCRoot.FindStop(3, 3);
MCRoot.ShowLight(_local8.i1, _local8.j1, _local8.i2, _local8.j2);
Y = ((Math.max(_local8.i1, _local8.i2) + 3) * MCRoot.Size) + MCRoot.GlobalY;
X = 0;
TextShow(hinttext, MCRoot["msg_" + hint], "GameFont", -4, 15, 1, 12, _local5, 200);
break;
case 15 :
FindSlide(["lock1"]);
Y = 10;
X = 70;
TextShow(hinttext, MCRoot["msg_" + hint], "GameFont", -4, 15, 1, 12, _local5, 200);
break;
case 16 :
FindSlide(["lock2"]);
Y = 10;
X = 70;
TextShow(hinttext, MCRoot["msg_" + hint], "GameFont", -4, 15, 1, 12, _local5, 200);
break;
case 17 :
Y = ((_root.IHelp * _root.Size) + _root.GlobalY) - 25;
GoHints(((_root.JHelp * _root.Size) + _root.GlobalX) + 30, Y, 45);
Y = Y + 90;
if (Y > 250) {
Y = 30;
}
TextShow(hinttext, MCRoot["msg_" + hint], "GameFont", -4, 15, 1, 12, _local5, 200);
}
window._height = hinttext._height + 60;
window._width = hinttext._width + 40;
button._x = window._x + ((window._width - button._width) / 2);
button._y = ((window._y + window._height) - button._height) - 5;
WindowGoto(X, Y);
if (window.hitTest(MCRoot.FLASH)) {
Y = Y + (2 * MCRoot.Size);
}
if (window.hitTest(MCRoot.FLASH)) {
X = 520 - window._width;
}
if ((window._y + window._height) > 390) {
Y = 100;
}
WindowGoto(X, Y);
var _local10 = 800;
var _local9 = getTimer();
MCRoot.notBlock = false;
clearInterval(moving);
moving = setInterval(MyDelegate.create(this, HintAppear, [_local9, _local10]), 0);
}
function GoHints(x, y, r, i, j) {
if (i == undefined) {
cursor._visible = true;
cursor._x = x + MCRoot.game._x;
cursor._y = y + MCRoot.game._y;
cursor._rotation = r;
} else {
cursor._visible = true;
cursor.removeMovieClip();
cursor = MCRoot.createEmptyMovieClip("hintcursor", 450);
cursor._x = ((MCRoot.GlobalX + (j * MCRoot.Size)) + 6) + MCRoot.game._x;
cursor._y = MCRoot.game._y;
while (MCRoot.Matrix[i][j]) {
var _local3 = cursor.attachMovie("hintcursor", "h" + i, i, {_y:(MCRoot.GlobalY + (MCRoot.Size * i)) + 20, _xscale:70, _yscale:70});
_local3.gotoAndPlay((i * 2) + 1);
i++;
}
}
}
function HintAppear(T, TT) {
var _local2 = getTimer();
if (_local2 >= (T + TT)) {
MCRoot.notBlock = true;
clearInterval(moving);
windowMain._alpha = 100;
} else {
windowMain._alpha = (100 * (_local2 - T)) / TT;
}
}
function Delete() {
clearInterval(moving);
windowMain.removeMovieClip();
cursor.removeMovieClip();
}
function StartDrag() {
if (window.hitTest(_root._xmouse, _root._ymouse)) {
if (!button.hitTest(_root._xmouse, _root._ymouse)) {
delete window.onEnterFrame;
window.onEnterFrame = MyDelegate.create(this, Dragging, [window._x - _root._xmouse, window._y - _root._ymouse]);
}
} else {
_root.FromHint();
}
}
function Dragging(x, y) {
WindowGoto(_root._xmouse + x, _root._ymouse + y);
}
function StopDrag() {
delete window.onEnterFrame;
}
function WindowGoto(x, y) {
window._x = x;
window._y = y;
hinttext._x = (window._width / 2) + x;
hinttext._y = 30 + y;
button._x = window._x + ((window._width - button._width) / 2);
button._y = ((window._y + window._height) - button._height) - 10;
}
function FindSlide(Name, c) {
var _local4 = MCRoot.Matrix;
var _local6 = 0;
while (_local6 < _local4.length) {
var _local5 = 0;
while (_local5 < _local4[0].length) {
var _local2 = 0;
while (_local2 < Name.length) {
if (_local4[_local6][_local5].substr(0, Name[_local2].length) == Name[_local2]) {
if (c) {
GoHints(0, 0, 0, _local6, _local5);
} else {
GoHints(MCRoot.GlobalX + (_local5 * MCRoot.Size), MCRoot.GlobalY + (MCRoot.Size * (_local6 - 1)), 0);
}
return({i:_local6, j:_local5});
}
_local2++;
}
_local5++;
}
_local6++;
}
Delete();
}
var X = 190;
var Y = 280;
}
Symbol 1178 MovieClip [__Packages.ArtComplete] Frame 0
class ArtComplete
{
var MC, N, ART, AR, moving;
function ArtComplete (MC, N) {
this.MC = MC;
this.N = N;
ART = _root.ART;
InitArt();
MoveArt();
}
function InitArt() {
_root.gamefon.left.arts.removeMovieClip();
_root.flyart.removeMovieClip();
MC.attachMovie("fulla" + N, "f", 0);
MC._x = ART[N].xArt;
MC._y = ART[N].yArt;
AR = new Array(ART[N].length + 1);
var _local3 = 1;
while (_local3 <= ART[N].length) {
var _local4 = MC.attachMovie((_local3 + "a") + N, "a" + _local3, _local3 + 200, {_x:ART[N][_local3 - 1].x - 1, _y:ART[N][_local3 - 1].y - 1});
ARTc[_local3] = new Color(_local4);
ARTr[_local3] = ARTc[_local3].getTransform();
_local3++;
}
var _local5 = _root.createEmptyMovieClip("nadp", 96);
_local5.attachMovie("black", "bl", 0, {_width:520, _height:100, _y:-12, _x:-260, _alpha:60});
_local5._x = 260;
_local5._y = 320;
_local5.createEmptyMovieClip("t1", 1);
_local5.createEmptyMovieClip("t2", 2);
_local5.t2._y = 30;
_local5.t1._y = 5;
var _local6 = _local5.attachMovie("line_for_art", "lfa", 3, {_y:-14, _x:-5, _width:555});
_local6.bl._x = -300;
_local6.bl._width = 600;
_local5.attachMovie("line_for_art", "lfa", 4, {_y:15});
_root.TextShow(_local5.t2, _root["ArtDesc" + N].split("|")[2], "GameFont", -4, 14, 1, 12, _root.TextYellow, 350);
_root.TextShow(_local5.t1, _root["ArtDesc" + N].split("|")[0], "GameFont", -4, 14, 1, 12, _root.TextGreen);
}
function ShineArt() {
var _local2 = 1;
while (_local2 <= ART[N].length) {
clearInterval(AR[_local2]);
AR[_local2] = setInterval(MyDelegate.create(this, Move, [_local2]), (500 * _local2) + random(300));
_local2++;
}
}
function Move(i) {
clearInterval(AR[i]);
AR[i] = setInterval(MyDelegate.create(this, Moving, [i, 1, getTimer()]), 0);
}
function Moving(i, c, T) {
var _local6 = getTimer();
if (_local6 >= (T + TT)) {
clearInterval(AR[i]);
if (c == 1) {
AR[i] = setInterval(MyDelegate.create(this, Moving, [i, -1, _local6]), 0);
} else {
MC["a" + i].removeMovieClip();
if (i == (AR.length - 1)) {
_root.EatArt(MC);
}
}
} else {
var _local4 = (_local6 - T) / TT;
if (c == -1) {
_local4 = 1 - _local4;
}
var _local7 = MC["a" + i];
T = CopyO(ARTr[i]);
T.rb = T.rb + (100 * _local4);
T.gb = T.gb + (100 * _local4);
T.ra = (T.ga = (T.ba = T.ra + (_local4 * 20)));
ARTc[i].setTransform(T);
if (c == 1) {
_local7._alpha = (_local4 * 20) + 80;
} else {
_local7._alpha = _local4 * 100;
}
}
updateAfterEvent();
}
function MoveArt() {
clearInterval(moving);
moving = setInterval(MyDelegate.create(this, MoveToCenter, [getTimer(), MC._x, MC._y]), 0);
}
function MoveToCenter(T, x1, y1) {
var _local4 = 1000;
var _local3 = (getTimer() - T) / _local4;
if (_local3 >= 1) {
_local3 = 1;
clearInterval(moving);
ShineArt();
}
MC._x = x1 + ((230 - x1) * _local3);
MC._y = y1 + ((185 - y1) * _local3);
if (_root.NRound == 0) {
_root.sumka3d._x = 50 - (50 * _local3);
}
}
function CopyO(o1) {
var _local2 = {};
for (var _local3 in o1) {
_local2[_local3] = o1[_local3];
}
return(_local2);
}
var ARTr = [];
var ARTc = [];
var TT = 1500;
}
Symbol 1179 MovieClip [__Packages.GameStats] Frame 0
class GameStats extends Object
{
var stats, head, left, right, SA, nexty, scoring;
function GameStats (stats) {
super();
_root.ClearAll(_root, 0, 1);
this.stats = stats;
var _local6 = stats.attachMovie("panel1", "stats", 0);
stats._x = (520 - stats._width) / 2;
stats._y = 50;
head = stats.createEmptyMovieClip("head", 99);
head._x = _local6._width / 2;
head._y = 25;
left = new Array();
right = new Array();
SA = new Array();
SA.push({L:_root.TextTiles.value, R:_root.Tiles});
SA.push({L:_root.TextMatches.value, R:_root.Matches});
SA.push({L:_root.TextChain.value, R:_root.MaxChain});
if (_root.Pieces > 0) {
SA.push({L:_root.TextPieces.value, R:_root.Pieces});
}
if (_root.BonusTime > 0) {
SA.push({L:_root.TextTimeBonus.value, R:_root.score - _root.BonusTime});
}
var _local9 = int(_root.LevelTime / 1000);
if (_local9 < 60) {
var _local11 = "0:";
var _local10 = _local9;
} else {
var _local11 = int(_local9 / 60) + ":";
var _local10 = _local9 % 60;
}
if (_local10 < 10) {
var _local11 = _local11 + ("0" + _local10);
} else {
var _local11 = _local11 + _local10;
}
SA.push({L:_root.TextTime.value, R:_local11});
SA.push({L:_root.TextScore.value, R:_root.score});
_root.SCORE.ShowScore(_root.score);
var _local4 = 0;
while (_local4 < SA.length) {
left[_local4] = stats.createEmptyMovieClip("l" + _local4, 10 + (_local4 * 2));
right[_local4] = stats.createEmptyMovieClip("r" + _local4, 11 + (_local4 * 2));
left[_local4]._x = 40;
right[_local4]._x = _local6._width - 40;
left[_local4]._y = (right[_local4]._y = (nexty = 80 + (_local4 * 20)));
_local4++;
}
var _local7 = stats.attachMovie("button", "OKB", 122);
_local7._width = 140;
_local7._height = 40;
nexty = nexty + 20;
_local7._y = nexty;
_local7._x = (stats._width - _local7._width) / 2;
_local7.InitText(_root.TextContinue.value, "GameFont", -3, 0, 1, 16, 7353626, 0, 0);
_local7.InitFunction(MyDelegate.create(this, OkPress));
if (_root.NagTime.value != "0") {
var _local8 = stats.attachMovie("button", "DB", 121);
_local8._width = 110;
_local8._height = 40;
nexty = nexty + 35;
_local8._y = nexty;
_local8._x = (stats._width - _local8._width) / 2;
_local8.InitText(_root.TextDownload.value, "GameFont", -4, 0, 1, 14, 7353626, 0, 1);
_local8.InitFunction(_root.FunctionDownload);
}
_local6._height = nexty + 65;
head._y = 0.0798722044728434 * _local6._height;
clearInterval(scoring);
head.createEmptyMovieClip("M", 0);
scoring = setInterval(MyDelegate.create(this, GetScoreString, [0]), 0);
if (_root.Local.value == "en") {
LoadHGood();
} else {
LoadHBad();
}
}
function LoadHGood() {
head.M.attachMovie("stats_text", "T", 0);
head._x = head._x - (head._width / 2);
head._y = head._y - 4;
}
function LoadHBad() {
_root.TextShow(head, _root.TextStatistics.value, "GameFont", -4, 18, 1, 19, _root.TextYellowLight);
}
function OkPress() {
if (_root.fon.EndCondition) {
_root.Nag(MyDelegate.create(_root, _root.CompleteArt, [_root.NRound]));
} else {
_root.GameOver();
}
clearInterval(scoring);
stats.removeMovieClip();
}
function GetScoreString(i) {
_root.stats_s.stop();
_root.stats_s.start(_root.SoundOn);
clearInterval(scoring);
_root.TextShow(left[i], String(SA[i].L), "GameFont", -4, 20, 0, 13, _root.TextYellow);
_root.TextShow(right[i], String(SA[i].R), "GameFont", -4, 20, 2, 12, _root.TextYellowLight);
i++;
if (i != SA.length) {
scoring = setInterval(MyDelegate.create(this, GetScoreString, [i]), 350);
}
}
}
Symbol 1180 MovieClip [__Packages.GameIntro] Frame 0
class GameIntro
{
var intro, book, cont, OM, notebook;
function GameIntro () {
intro = _root.createEmptyMovieClip("intro", 13);
book = intro.createEmptyMovieClip("book", 1);
book._x = 260;
book._y = 85;
var _local4 = 150;
var _local3 = 240;
InitBook(_local4, _local3);
cont = intro.createEmptyMovieClip("cont", 2);
cont._x = 260;
cont._y = 355;
_root.TextShow(cont, _root.TextClickContinue.value, "GameFont", -4, 0, 1, 16, _root.TextYellowLight);
OM = {};
OM.onMouseDown = MyDelegate.create(this, Press);
Mouse.addListener(OM);
}
function Press() {
if (notebook.notOpening) {
position++;
switch (position) {
case 1 :
Open1();
break;
case 2 :
Remove();
}
}
}
function Remove() {
Mouse.removeListener(OM);
_root.ClearAll(intro, 1, 1);
_root.InitMap();
}
function InitBook(W, H) {
var _local3 = {};
_local3.p1 = {value:"intro1", s:0, d:1};
_local3.p2 = {value:_root.IntroText1, s:0, d:-10};
notebook = new Notebook(book, W, H, _local3, 1);
}
function Open1() {
var _local3 = {};
_local3.p1 = {value:"intro1", s:0, d:1};
_local3.p2 = {value:_root.IntroText1, s:0, d:-10};
_local3.p3 = {value:"intro2", s:0, d:1};
_local3.p4 = {value:_root.IntroText2, s:0, d:1};
notebook.Open(_local3, 1);
_root.Listing_s.start(_root.SoundOn);
}
function Open2() {
var _local3 = {};
_local3.p1 = {value:"intro2", s:0, d:1};
_local3.p2 = {value:_root.IntroText2, s:0, d:1};
_local3.p3 = {value:"intro3", s:0, d:1};
_local3.p4 = {value:_root.IntroText3, s:0, d:1};
notebook.Open(_local3, 1);
}
function Open3() {
var _local3 = {};
_local3.p1 = {value:"intro3", s:0, d:1};
_local3.p2 = {value:_root.IntroText3, s:0, d:1};
_local3.p3 = {value:"intro4", s:0, d:1};
_local3.p4 = {value:_root.IntroText4, s:0, d:1};
notebook.Open(_local3, 1);
}
var position = 0;
}
Symbol 1181 MovieClip [__Packages.GameMenu] Frame 0
class GameMenu extends MovieClip
{
var head;
function GameMenu (menu) {
super();
var _local6 = _root.menu_buttons;
var _local8 = menu.attachMovie("panel1", "menu", 0);
menu._x = (520 - menu._width) / 2;
menu._y = 50;
var _local4 = 0;
while (_local4 < (_local6.length - 1)) {
var _local5 = menu.attachMovie("button", "b" + _local4, _local4 + 1);
_local5._x = _local6[_local4].x;
_local5._y = _local6[_local4].y;
_local5._width = _local6[_local4].width;
_local5.InitFunction(_root["Function" + _local6[_local4].funct.substr(1, 100)]);
_local5.InitText(_local6[_local4].text);
_local4++;
}
_local4--;
_local8._height = _local5._y + 70;
head = menu.createEmptyMovieClip("head", 99);
head._x = _local8._width / 2;
if (_local5._y > 160) {
head._y = 20;
} else {
head._y = 16;
}
head.createEmptyMovieClip("M", 0);
if (_root.Local.value == "en") {
LoadHGood();
} else {
LoadHBad();
}
}
function LoadHGood() {
head.M.attachMovie("menu_text", "T", 0);
head._x = head._x - (head._width / 2);
head._y = head._y - 4;
}
function LoadHBad() {
_root.TextShow(head, _root.TextMenu.value, "GameFont", 2, 18, 1, 20, _root.TextYellow);
}
}
Symbol 1182 MovieClip [__Packages.GameSound] Frame 0
class GameSound extends Sound
{
function GameSound (s, MC) {
super(MC);
super.attachSound(s);
}
function start(SoundOn, s, l) {
if (SoundOn) {
super.start(s, l);
}
}
function stop() {
super.stop();
}
}
Symbol 1183 MovieClip [__Packages.SaveGame] Frame 0
class SaveGame
{
var DataMC, DataArr, SO;
function SaveGame (MC, AR, Name) {
DataMC = MC;
DataArr = AR;
SO = SharedObject.getLocal(Name);
}
function LoadInfo() {
for (var _local3 in DataArr) {
var _local2 = SO.data[DataArr[_local3]];
if (_local2 == undefined) {
DataMC[DataArr[_local3]] = 0;
if (DataArr[_local3] == "Life") {
DataMC[DataArr[_local3]] = 3;
} else if (DataArr[_local3] == "SoundOn") {
DataMC[DataArr[_local3]] = true;
} else if (DataArr[_local3].substr(0, 1) == "h") {
DataMC[DataArr[_local3]] = true;
}
} else {
DataMC[DataArr[_local3]] = SO.data[DataArr[_local3]];
}
}
}
function SaveInfo() {
for (var _local2 in DataArr) {
SO.data[DataArr[_local2]] = DataMC[DataArr[_local2]];
}
SO.flush();
}
}
Symbol 1184 MovieClip [__Packages.Suc] Frame 0
class Suc
{
var suc, v, vv, f, ft, ve, vve, l, m, s, x, y, ax, ay, az, axxsp, moving, sca, scay;
function Suc (MC) {
suc = MC.createEmptyMovieClip("suc", 0);
suc._x = 260;
suc._y = 250;
suc.createEmptyMovieClip("a", 2);
suc.createEmptyMovieClip("art", 1);
suc.createEmptyMovieClip("b", 0);
v = [0, 0, 0, -6.429, 4.579, 2.999, 6.429, 4.579, 2.999, 7.036, -0.627, 3.666, -7.036, -0.627, 3.666, -6.344, -1.821, 2.757, 6.344, -1.821, 2.757, -5.049, 7.352, 0.355, 5.049, 7.352, 0.355, -5.049, 8.127, 0.355, 5.049, 8.127, 0.355, 5.049, 8.127, 0, 5.049, 7.352, 0, 6.429, 4.579, 0, 7.036, -0.627, 0, 6.344, -1.821, 0, 5.049, 4.579, 2.999, 6.344, -1.821, 3.666, -5.049, 8.127, 0, -5.049, 7.352, 0, -6.429, 4.579, 0, -7.036, -0.627, 0, -6.344, -1.821, 0, -5.049, 10.028, 0.355, 5.049, 10.028, 0.355, 5.049, 10.028, 0, -5.049, 10.028, 0];
vv = [0, 0, 0, -1.756, 10.028, 0, 1.758, 10.028, 0, -1.756, 10.028, 0.355, 1.758, 10.028, 0.355, -1.356, 9.623, 0, 1.332, 9.623, 0, -1.356, 9.623, 0.355, 1.332, 9.623, 0.355, -1.756, 8.127, 0, -1.356, 8.127, 0, 1.332, 8.127, 0, 1.758, 8.127, 0, -1.756, 8.127, 0.355, -1.356, 8.127, 0.355, 1.332, 8.127, 0.355, 1.758, 8.127, 0.355];
f = [13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 4, 5, 6, 7, 8, 9, 10, 11, 12, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 1, 2, 3, 64, 65, 66];
ft = ["l1", "r2", "r3", "r4", "l1", "l2", "l3", "l4", "f2", "f3", "f4", "up", "down", "back", "l1", "l1", "l1", "l1", "l1", "l1", "f1", "f1"];
ve = new Array(v.length / 3);
var _local2 = 0;
while (_local2 < (v.length / 3)) {
var _local3 = new Array(4);
_local3[1] = v[_local2 * 3] * 20.226;
_local3[2] = v[(_local2 * 3) + 1] * 20.226;
_local3[3] = v[(_local2 * 3) + 2] * 20.226;
ve[_local2] = _local3;
_local2++;
}
vve = new Array(vv.length / 3);
_local2 = 0;
while (_local2 < (vv.length / 3)) {
var _local3 = new Array(4);
_local3[1] = vv[_local2 * 3] * 20.226;
_local3[2] = vv[(_local2 * 3) + 1] * 20.226;
_local3[3] = vv[(_local2 * 3) + 2] * 20.226;
vve[_local2] = _local3;
_local2++;
}
v = new Array();
v = [0, 0, 0, ve[23][1], ve[23][2], ve[23][3] - 1, ve[24][1], ve[24][2], ve[24][3] - 1, ve[7][1], ve[7][2], ve[7][3] - 1, ve[1][1], ve[7][2], ve[7][3], ve[2][1], ve[8][2], ve[8][3], ve[1][1], ve[1][2] - 2, ve[1][3], ve[4][1] + 1, ve[1][2], ve[1][3] - 1, ve[3][1] - 1, ve[2][2], ve[2][3] - 1, ve[4][1] + 1, ve[4][2], ve[4][3], ve[4][1] + 1, ve[4][2], ve[4][3], ve[3][1] - 1, ve[3][2] + 1, ve[3][3], ve[4][1], ve[5][2] - 0, ve[5][3] - 0, ve[10][1], ve[10][2], ve[10][3], ve[11][1], ve[11][2], ve[11][3], ve[8][1], ve[8][2], ve[8][3], ve[8][1], ve[8][2], ve[2][3], ve[12][1], ve[12][2], ve[12][3], ve[2][1], ve[2][2], ve[2][3], ve[2][1], ve[2][2], ve[3][3], ve[13][1], ve[13][2], ve[13][3], ve[3][1] - 2, ve[3][2], ve[3][3], ve[3][1] - 2, ve[3][2], ve[3][3], ve[14][1] - 2, ve[14][2], ve[14][3], ve[6][1] - 2, ve[6][2], ve[3][3], ve[18][1], ve[18][2], ve[18][3], ve[9][1], ve[9][2], ve[9][3], ve[19][1], ve[19][2], ve[19][3], ve[19][1], ve[19][2], ve[19][3], ve[19][1], ve[19][2], ve[1][3], ve[20][1], ve[20][2], ve[20][3], ve[20][1], ve[20][2], ve[20][3], ve[20][1], ve[20][2], ve[4][3] + 1, ve[21][1] + 2, ve[21][2], ve[21][3], ve[21][1] + 2, ve[21][2], ve[21][3], ve[4][1] + 2, ve[4][2], ve[4][3] + 1, ve[22][1] + 2, ve[22][2], ve[22][3], ve[18][1], ve[18][2], ve[18][3], ve[11][1], ve[11][2], ve[11][3], ve[9][1], ve[9][2], ve[9][3], ve[5][1] + 1, ve[5][2] + 1, ve[5][3] + 1, ve[6][1] - 3, ve[6][2] + 1, ve[6][3] + 1, ve[22][1] + 1, ve[22][2] + 1, ve[22][3] - 4, ve[3][1] - 2, ve[11][2], ve[11][3], ve[4][1] + 3, ve[18][2], ve[18][3], ve[3][1], ve[15][2] + 3, ve[15][3], vve[1][1], vve[1][2], vve[1][3], vve[2][1], vve[2][2], vve[2][3], vve[3][1], vve[3][2], vve[3][3], vve[6][1], vve[6][2], vve[6][3], vve[8][1], vve[8][2], vve[8][3], vve[11][1], vve[11][2], vve[11][3], vve[1][1], vve[1][2], vve[1][3], vve[3][1], vve[3][2], vve[3][3], vve[9][1], vve[9][2], vve[9][3], vve[7][1], vve[7][2], vve[7][3], vve[5][1], vve[5][2], vve[5][3], vve[14][1], vve[14][2], vve[14][3], vve[4][1], vve[4][2], vve[4][3], vve[2][1], vve[2][2], vve[2][3], vve[16][1], vve[16][2], vve[16][3], vve[7][1], vve[7][2], vve[7][3], vve[8][1], vve[8][2], vve[8][3], vve[5][1], vve[5][2], vve[5][3], ve[25][1], ve[25][2], ve[25][3], ve[26][1], ve[26][2], ve[26][3], ve[12][1], ve[12][2], ve[12][3], 0, 0, 0];
l = new geom.Figure3D(suc.a, v, f, ft);
m = new geom.Figure3D(suc.b, v, f, ft);
DRAW();
suc._x = startx;
suc._y = starty;
suc._xscale = (suc._yscale = 20);
}
function KeyMove() {
OK.onKeyDown = MyDelegate.create(this, KeyControl);
Key.addListener(OK);
}
function KeyControl() {
if (Key.getAscii() == 100) {
forward = !forward;
MoveSuc(forward);
}
if (Key.getAscii() == 99) {
trace((((ax0 + " ") + ay0) + " ") + az0);
}
if (Key.isDown(37)) {
ay0 = ay0 - 1;
}
if (Key.isDown(39)) {
ay0 = ay0 + 1;
}
if (Key.isDown(36)) {
az0 = az0 - 1;
}
if (Key.isDown(35)) {
az0 = az0 + 1;
}
if (Key.isDown(38)) {
ax0 = ax0 + 1;
}
if (Key.isDown(40)) {
ax0 = ax0 - 1;
}
if (Key.isDown(16)) {
axx = axx + 1;
}
if (Key.isDown(17)) {
axx = axx - 1;
}
if (Key.isDown(33)) {
suc._xscale = suc._xscale + 5;
suc._yscale = suc._yscale + 5;
}
if (Key.isDown(34)) {
suc._xscale = suc._xscale - 5;
suc._yscale = suc._yscale - 5;
}
DRAW();
}
function SWAP() {
if ((suc.a.back13._visible == true) && (vis)) {
vis = false;
suc.a.swapDepths(suc.b);
}
if ((suc.a.back13._visible == false) && (!vis)) {
vis = true;
suc.a.swapDepths(suc.b);
}
}
function DRAW() {
ax0 = ax0 % 200;
ay0 = ay0 % 200;
az0 = az0 % 200;
l.Draw(((ax0 + axx) * Math.PI) / 100, (ay0 * Math.PI) / 100, (az0 * Math.PI) / 100);
m.Draw((((-ax0) + axx) * Math.PI) / 100, ((ay0 * Math.PI) / 100) + Math.PI, (az0 * Math.PI) / 100);
SWAP();
}
function InitPress() {
suc.onPress = MyDelegate.create(this, Pressed);
}
function Pressed() {
if (_root.notBlock) {
MoveSuc(false);
}
}
function MoveSuc(fwd) {
if (canclick) {
if (!fwd) {
_root.StopTimer();
suc._parent.swapDepths(60);
}
_root.notBlock = false;
s = new Spline(20, 40, 60, 80, 120, 300);
x = new Spline(startx, 300, 260);
y = new Spline(starty, 290, 250, 270, 300, 305, 400);
ax = new Spline(100, 110, 90, 100, 110, 125, 125);
ay = new Spline(-15, -5, 0, 5, -5, 0);
az = new Spline(0, 5, -5, 5, -5, 0);
axxsp = new Spline(0, 0, 0, 10, 25);
canclick = false;
clearInterval(moving);
var _local3 = getTimer();
var _local4 = 2500;
_root.panelslide_s.start(_root.SoundOn);
moving = setInterval(MyDelegate.create(this, Move, [_local3, _local4, fwd]), 10);
}
}
function EatArt(mc) {
s = new Spline(20, 35, 40, 65, 65, 65, 80, 100, 120, 300);
x = new Spline(startx, 330, 300, 260, 260, 260, 260, 260, 260, 260);
y = new Spline(starty, 290, 250, 270, 270, 270, 300, 320, 340, 400);
ax = new Spline(100, 110, 90, 100, 100, 100, 90, 110, 120, 125);
ay = new Spline(-15, -5, 0, -10, -10, -10, -8, -4, -2, 0);
az = new Spline(0, 5, -5, 0, 0, 0, 0, 10, 0, 0);
axxsp = new Spline(0, 0, 0, 30, 30, 20, 0, 5, 10, 30);
sca = new Spline(100, 90, 80, 70, 70, 70, 70, 0, 0, 0);
var _local2 = mc._y;
scay = new Spline(_local2, _local2 - 20, _local2 - 40, _local2 - 60, _local2 - 50, _local2 - 15, _local2 + 15, _local2 + 15, _local2 + 15, _local2 + 15);
canclick = false;
clearInterval(moving);
var _local3 = getTimer();
var _local4 = 5000;
moving = setInterval(MyDelegate.create(this, Move, [_local3, _local4, 0, mc]), 10);
}
function Move(T, TT, fwd, mc) {
var _local4 = getTimer();
if (_local4 >= (T + TT)) {
clearInterval(moving);
t = 1;
canclick = true;
_root.notBlock = true;
if (!fwd) {
_root.sumkaclip.removeMovieClip();
_root.InitSumka();
} else {
suc._parent.swapDepths(11);
_root.StartTimer();
}
} else {
var t = ((_local4 - T) / TT);
}
if (fwd) {
t = 1 - t;
}
if (((axxsp.getPoint(t) > 30) && (suc.art.a == undefined)) && (mc != undefined)) {
suc.art._x = (mc._x - suc._x) / (suc._xscale / 100);
suc.art._y = (mc._y - suc._y) / (suc._yscale / 100);
suc.art.attachMovie("fulla" + _root.NRound, "a", 0);
mc.removeMovieClip();
}
if ((suc.art.a != undefined) && (scay.getPoint(t) >= scay.getPoint(1))) {
suc.art.a.removeMovieClip();
}
suc._xscale = (suc._yscale = s.getPoint(t));
suc._x = x.getPoint(t);
suc._y = y.getPoint(t);
ax0 = ax.getPoint(t);
ay0 = ay.getPoint(t);
az0 = az.getPoint(t);
axx = axxsp.getPoint(t);
mc._xscale = (mc._yscale = sca.getPoint(t));
mc._y = scay.getPoint(t);
suc.art.a._xscale = (suc.art.a._yscale = (100 / suc._xscale) * sca.getPoint(t));
suc.art._y = (scay.getPoint(t) - suc._y) / (suc._yscale / 100);
_root.nadp._alpha = (1 - t) * 100;
DRAW();
}
function Destroy() {
clearInterval(moving);
Key.removeListener(OK);
suc.removeMovieClip();
}
var OK = {};
var forward = true;
var canclick = true;
var axx = 0;
var ax0 = 100;
var ay0 = -15;
var az0 = 0;
var vis = true;
var startx = 485;
var starty = 380;
}
Symbol 1185 MovieClip [__Packages.geom.Figure3D] Frame 0
class geom.Figure3D
{
var vertex, facet, textures, This, xe, ye, ze, rx, ry, xi, yi, zi, fa, fb, fc, facetc;
function Figure3D (mc, V, F, T, S) {
vertex = V;
facet = F;
textures = T;
This = mc;
Init();
Scale = S != true;
}
function Init() {
xd = 0;
yd = 0;
zd = 0;
xe = new Array();
ye = new Array();
ze = new Array();
rx = new Array();
ry = new Array();
xi = new Array();
yi = new Array();
zi = new Array();
var _local2 = 0;
while (_local2 < (vertex.length / 3)) {
xi[_local2] = vertex[_local2 * 3];
yi[_local2] = vertex[(_local2 * 3) + 1];
zi[_local2] = vertex[(_local2 * 3) + 2];
_local2++;
}
fa = new Array();
fb = new Array();
fc = new Array();
facetc = new Array(facet.length);
_local2 = 0;
while (_local2 < (facet.length / 3)) {
fa[_local2] = facet[_local2 * 3];
fb[_local2] = facet[(_local2 * 3) + 1];
fc[_local2] = facet[(_local2 * 3) + 2];
var _local4 = textures[_local2] + _local2;
This[_local4].removeMovieClip();
This.attachMovie("poly", _local4, _local2);
var _local3 = This[_local4].p.attachMovie(textures[_local2], "p", 10);
var _local5 = {};
_local5.x = (_local3._width + _local3.getBounds().xMin) / 100;
_local5.y = (_local3._height + _local3.getBounds().yMin) / 100;
facetc[_local2] = _local5;
This[_local4]._visible = 0;
_local2++;
}
}
function Rotate(ax, ay, az) {
var _local5 = new Array();
var _local4 = new Array();
var _local3 = new Array();
var _local9 = Math.sin(ax);
var _local11 = Math.cos(ax);
var _local7 = Math.sin(ay);
var _local10 = Math.cos(ay);
var _local6 = Math.sin(az);
var _local8 = Math.cos(az);
var _local2 = 0;
while (_local2 < (vertex.length / 3)) {
_local4[_local2] = (yi[_local2] * _local11) - (zi[_local2] * _local9);
_local3[_local2] = (yi[_local2] * _local9) + (zi[_local2] * _local11);
_local5[_local2] = (xi[_local2] * _local10) + (_local3[_local2] * _local7);
ze[_local2] = (_local3[_local2] * _local10) - (xi[_local2] * _local7);
xe[_local2] = (_local5[_local2] * _local8) - (_local4[_local2] * _local6);
ye[_local2] = (_local5[_local2] * _local6) + (_local4[_local2] * _local8);
_local2++;
}
Focus();
}
function Draw(ax, ay, az) {
Rotate(ax, ay, az);
var sort = new Array();
var i = 0;
while (i < (facet.length / 3)) {
var xx = rx[fa[i]];
var yy = ry[fa[i]];
var nm = (textures[i] + i);
var dx = (xx - rx[fb[i]]);
var dy = (yy - ry[fb[i]]);
var dx1 = (xx - rx[fc[i]]);
var dy1 = (yy - ry[fc[i]]);
var a2 = (1024 + (kP * Math.atan2(dy1, dx1)));
var a1 = ((3072 - (kP * Math.atan2(dy, dx))) + a2);
var f = int(4095 & (a1 + 1));
var P = This[nm].p.p;
var lx = Math.sqrt((dx * dx) + (dy * dy));
var ly = Math.sqrt((dx1 * dx1) + (dy1 * dy1));
if (Scale) {
lx = lx / facetc[i].x;
ly = ly / facetc[i].y;
}
if (f < 2049) {
with (This[nm]) {
_x = xx;
_y = yy;
_rotation = 0.087890625 * a2;
gotoAndStop(f);
P._x = -0.5;
P._y = -0.5;
P._yscale = ly + 1;
P._xscale = lx + 1;
_visible = 1;
}
} else {
This[nm]._visible = 0;
}
sort.push({z:(ze[fa[i]] + ze[fb[i]]) + ze[fc[i]], f:nm});
i++;
}
sort.sortOn("z", 18);
var i = 0;
while (i < ((facet.length / 3) - 5)) {
This[sort[i].f].swapDepths(i);
i++;
}
}
function Focus() {
var _local2 = 0;
while (_local2 < (vertex.length / 3)) {
var _local3 = 1;
rx[_local2] = (xe[_local2] + xd) * _local3;
ry[_local2] = (ye[_local2] + yd) * _local3;
_local2++;
}
}
var kP = 651.898646904403;
var Foc = 10000;
var K = 10;
var xd = 0;
var yd = 0;
var zd = 0;
var Scale = false;
}
Symbol 40 MovieClip [button] Frame 1
#initclip 98
Object.registerClass("button", GameButton);
#endinitclip
Symbol 166 MovieClip [bonus] Frame 1
#initclip 27
Object.registerClass("bonus", GameBonus);
#endinitclip
stop();
Symbol 166 MovieClip [bonus] Frame 22
gotoAndPlay ("b1");
Symbol 166 MovieClip [bonus] Frame 43
gotoAndPlay ("b3");
Symbol 166 MovieClip [bonus] Frame 64
gotoAndPlay ("b2");
Symbol 166 MovieClip [bonus] Frame 85
gotoAndPlay ("b4");
Symbol 174 MovieClip [gamefon] Frame 1
#initclip 28
Object.registerClass("gamefon", GameFon);
#endinitclip
Symbol 201 MovieClip [slide1] Frame 1
#initclip 29
Object.registerClass("slide1", TileClass);
#endinitclip
Symbol 226 MovieClip [slide2] Frame 1
#initclip 30
Object.registerClass("slide2", TileClass);
#endinitclip
Symbol 251 MovieClip [slide3] Frame 1
#initclip 31
Object.registerClass("slide3", TileClass);
#endinitclip
Symbol 276 MovieClip [slide4] Frame 1
#initclip 32
Object.registerClass("slide4", TileClass);
#endinitclip
Symbol 301 MovieClip [slide5] Frame 1
#initclip 33
Object.registerClass("slide5", TileClass);
#endinitclip
Symbol 304 MovieClip [shine] Frame 10
stop();
this.removeMovieClip();
Symbol 356 MovieClip [map] Frame 1
#initclip 34
Object.registerClass("map", GameMap);
#endinitclip
Symbol 369 MovieClip [lock1] Frame 1
#initclip 35
Object.registerClass("lock1", TileClass);
#endinitclip
Symbol 372 MovieClip [lock2] Frame 1
#initclip 36
Object.registerClass("lock2", TileClass);
#endinitclip
Symbol 405 MovieClip Frame 20
stop();
this._parent.removeMovieClip();
Symbol 439 MovieClip Frame 20
stop();
this._parent.removeMovieClip();
Symbol 473 MovieClip Frame 20
stop();
this._parent.removeMovieClip();
Symbol 507 MovieClip Frame 20
stop();
this._parent.removeMovieClip();
Symbol 541 MovieClip Frame 20
stop();
this._parent.removeMovieClip();
Symbol 558 MovieClip [sumka] Frame 1
#initclip 37
Object.registerClass("sumka", GameSum);
#endinitclip
Symbol 607 MovieClip [energy] Frame 7
stop();
this.removeMovieClip();
Symbol 646 MovieClip [dialog] Frame 1
#initclip 38
Object.registerClass("dialog", GameDialog);
#endinitclip
Symbol 670 MovieClip [watch] Frame 1
#initclip 39
Object.registerClass("watch", ArtClass);
#endinitclip
Symbol 674 MovieClip [bonus_level_fon] Frame 25
stop();
Symbol 691 MovieClip [1a0] Frame 1
#initclip 40
Object.registerClass("1a0", ArtClass);
#endinitclip
Symbol 695 MovieClip [2a0] Frame 1
#initclip 41
Object.registerClass("2a0", ArtClass);
#endinitclip
Symbol 702 MovieClip [3a1] Frame 1
#initclip 42
Object.registerClass("3a1", ArtClass);
#endinitclip
Symbol 706 MovieClip [2a1] Frame 1
#initclip 43
Object.registerClass("2a1", ArtClass);
#endinitclip
Symbol 710 MovieClip [1a1] Frame 1
#initclip 44
Object.registerClass("1a1", ArtClass);
#endinitclip
Symbol 720 MovieClip [3a2] Frame 1
#initclip 45
Object.registerClass("3a2", ArtClass);
#endinitclip
Symbol 724 MovieClip [2a2] Frame 1
#initclip 46
Object.registerClass("2a2", ArtClass);
#endinitclip
Symbol 728 MovieClip [1a2] Frame 1
#initclip 47
Object.registerClass("1a2", ArtClass);
#endinitclip
Symbol 738 MovieClip [3a3] Frame 1
#initclip 48
Object.registerClass("3a3", ArtClass);
#endinitclip
Symbol 742 MovieClip [2a3] Frame 1
#initclip 49
Object.registerClass("2a3", ArtClass);
#endinitclip
Symbol 746 MovieClip [1a3] Frame 1
#initclip 50
Object.registerClass("1a3", ArtClass);
#endinitclip
Symbol 756 MovieClip [7a4] Frame 1
#initclip 51
Object.registerClass("7a4", ArtClass);
#endinitclip
Symbol 760 MovieClip [6a4] Frame 1
#initclip 52
Object.registerClass("6a4", ArtClass);
#endinitclip
Symbol 764 MovieClip [5a4] Frame 1
#initclip 53
Object.registerClass("5a4", ArtClass);
#endinitclip
Symbol 768 MovieClip [4a4] Frame 1
#initclip 54
Object.registerClass("4a4", ArtClass);
#endinitclip
Symbol 772 MovieClip [3a4] Frame 1
#initclip 55
Object.registerClass("3a4", ArtClass);
#endinitclip
Symbol 776 MovieClip [2a4] Frame 1
#initclip 56
Object.registerClass("2a4", ArtClass);
#endinitclip
Symbol 780 MovieClip [1a4] Frame 1
#initclip 57
Object.registerClass("1a4", ArtClass);
#endinitclip
Symbol 790 MovieClip [5a5] Frame 1
#initclip 58
Object.registerClass("5a5", ArtClass);
#endinitclip
Symbol 794 MovieClip [4a5] Frame 1
#initclip 59
Object.registerClass("4a5", ArtClass);
#endinitclip
Symbol 798 MovieClip [3a5] Frame 1
#initclip 60
Object.registerClass("3a5", ArtClass);
#endinitclip
Symbol 802 MovieClip [2a5] Frame 1
#initclip 61
Object.registerClass("2a5", ArtClass);
#endinitclip
Symbol 806 MovieClip [1a5] Frame 1
#initclip 62
Object.registerClass("1a5", ArtClass);
#endinitclip
Symbol 816 MovieClip [3a6] Frame 1
#initclip 63
Object.registerClass("3a6", ArtClass);
#endinitclip
Symbol 820 MovieClip [2a6] Frame 1
#initclip 64
Object.registerClass("2a6", ArtClass);
#endinitclip
Symbol 824 MovieClip [1a6] Frame 1
#initclip 65
Object.registerClass("1a6", ArtClass);
#endinitclip
Symbol 834 MovieClip [3a8] Frame 1
#initclip 66
Object.registerClass("3a8", ArtClass);
#endinitclip
Symbol 838 MovieClip [2a8] Frame 1
#initclip 67
Object.registerClass("2a8", ArtClass);
#endinitclip
Symbol 842 MovieClip [1a8] Frame 1
#initclip 68
Object.registerClass("1a8", ArtClass);
#endinitclip
Symbol 852 MovieClip [3a9] Frame 1
#initclip 69
Object.registerClass("3a9", ArtClass);
#endinitclip
Symbol 856 MovieClip [2a9] Frame 1
#initclip 70
Object.registerClass("2a9", ArtClass);
#endinitclip
Symbol 860 MovieClip [1a9] Frame 1
#initclip 71
Object.registerClass("1a9", ArtClass);
#endinitclip
Symbol 870 MovieClip [3a10] Frame 1
#initclip 72
Object.registerClass("3a10", ArtClass);
#endinitclip
Symbol 874 MovieClip [2a10] Frame 1
#initclip 73
Object.registerClass("2a10", ArtClass);
#endinitclip
Symbol 878 MovieClip [1a10] Frame 1
#initclip 74
Object.registerClass("1a10", ArtClass);
#endinitclip
Symbol 888 MovieClip [4a11] Frame 1
#initclip 75
Object.registerClass("4a11", ArtClass);
#endinitclip
Symbol 892 MovieClip [3a11] Frame 1
#initclip 76
Object.registerClass("3a11", ArtClass);
#endinitclip
Symbol 896 MovieClip [2a11] Frame 1
#initclip 77
Object.registerClass("2a11", ArtClass);
#endinitclip
Symbol 900 MovieClip [1a11] Frame 1
#initclip 78
Object.registerClass("1a11", ArtClass);
#endinitclip
Symbol 913 MovieClip [3a12] Frame 1
#initclip 79
Object.registerClass("3a12", ArtClass);
#endinitclip
Symbol 917 MovieClip [2a12] Frame 1
#initclip 80
Object.registerClass("2a12", ArtClass);
#endinitclip
Symbol 921 MovieClip [1a12] Frame 1
#initclip 81
Object.registerClass("1a12", ArtClass);
#endinitclip
Symbol 928 MovieClip [4a13] Frame 1
#initclip 82
Object.registerClass("4a13", ArtClass);
#endinitclip
Symbol 932 MovieClip [3a13] Frame 1
#initclip 83
Object.registerClass("3a13", ArtClass);
#endinitclip
Symbol 936 MovieClip [2a13] Frame 1
#initclip 84
Object.registerClass("2a13", ArtClass);
#endinitclip
Symbol 940 MovieClip [1a13] Frame 1
#initclip 85
Object.registerClass("1a13", ArtClass);
#endinitclip
Symbol 950 MovieClip [4a14] Frame 1
#initclip 86
Object.registerClass("4a14", ArtClass);
#endinitclip
Symbol 954 MovieClip [3a14] Frame 1
#initclip 87
Object.registerClass("3a14", ArtClass);
#endinitclip
Symbol 958 MovieClip [2a14] Frame 1
#initclip 88
Object.registerClass("2a14", ArtClass);
#endinitclip
Symbol 962 MovieClip [1a14] Frame 1
#initclip 89
Object.registerClass("1a14", ArtClass);
#endinitclip
Symbol 972 MovieClip [3a15] Frame 1
#initclip 90
Object.registerClass("3a15", ArtClass);
#endinitclip
Symbol 976 MovieClip [2a15] Frame 1
#initclip 91
Object.registerClass("2a15", ArtClass);
#endinitclip
Symbol 980 MovieClip [1a15] Frame 1
#initclip 92
Object.registerClass("1a15", ArtClass);
#endinitclip
Symbol 990 MovieClip [4a16] Frame 1
#initclip 93
Object.registerClass("4a16", ArtClass);
#endinitclip
Symbol 994 MovieClip [3a16] Frame 1
#initclip 94
Object.registerClass("3a16", ArtClass);
#endinitclip
Symbol 998 MovieClip [2a16] Frame 1
#initclip 95
Object.registerClass("2a16", ArtClass);
#endinitclip
Symbol 1002 MovieClip [1a16] Frame 1
#initclip 96
Object.registerClass("1a16", ArtClass);
#endinitclip
Symbol 1014 MovieClip [light_ramka] Frame 1
function MoveStar() {
this._rotation = this._rotation + 10;
var _local2 = (getTimer() - this.s) % (600 * s);
if (_local2 < 0) {
_local2 = 0;
}
if (_local2 < (200 * s)) {
this._y = 0;
this._x = ((W * _local2) / 200) / s;
} else if (_local2 < (300 * s)) {
this._x = W;
this._y = ((H * (_local2 - (200 * s))) / 100) / s;
} else if (_local2 < (500 * s)) {
this._y = H;
this._x = W - (((W * (_local2 - (300 * s))) / 200) / s);
} else {
this._x = 0;
this._y = H - (((H * (_local2 - (500 * s))) / 100) / s);
}
}
stop();
var N = 40;
var W = (_root.Size * 2);
var H = _root.Size;
var s = 2;
var i = 0;
while (i < N) {
var n = st.duplicateMovieClip("s" + i, i);
n.s = (i * 15) * s;
n.onEnterFrame = MoveStar;
n._xscale = (n._yscale = 50 + random(50));
i++;
}
st._alpha = 0;
Symbol 1036 MovieClip [help] Frame 1
#initclip 97
Object.registerClass("help", GameHelp);
#endinitclip
Symbol 1064 MovieClip Frame 1
stop();
Symbol 1078 MovieClip [bonus_level_fon_fon] Frame 1
stop();
Symbol 1078 MovieClip [bonus_level_fon_fon] Frame 12
stop();
this.removeMovieClip();