Frame 1
_quality = "BEST";
Frame 2
if (getBytesLoaded() >= getBytesTotal()) {
gotoAndStop (4);
stop();
} else {
ProgressBar._xscale = int((getBytesLoaded() / getBytesTotal()) * 100);
_percents = int((getBytesLoaded() / getBytesTotal()) * 100) + "%";
}
Frame 3
gotoAndPlay (2);
Frame 4
function EmptyArrayNet() {
var i = 1;
while (i <= FieldSizeX) {
var j = 1;
while (j <= FieldSizeY) {
SetArrayNetValue(i, j, 9999);
j++;
}
i++;
}
}
function GetArrayNetValue(pNetX, pNetY) {
return(ArrayNet[pNetX + ((pNetY - 1) * FieldSizeX)]);
}
function SetArrayNetValue(pNetX, pNetY, pValue) {
ArrayNet[pNetX + ((pNetY - 1) * FieldSizeX)] = pValue;
}
function ConvNetPosToPosX(pNetX) {
return(OtstupX + (pNetX * GemSize));
}
function ConvNetPosToPosY(pNetY) {
return(OtstupY + (pNetY * GemSize));
}
function ConvPosToNetPosX(pPosX) {
return(Math.round((pPosX - OtstupX) / GemSize));
}
function ConvPosToNetPosY(pPosY) {
return(Math.round((pPosY - OtstupY) / GemSize));
}
function AddGemByColor(p_PosX, p_PosY, p_Color, p_Type, p_Name, p_Layer) {
if (p_Type == 1) {
if (p_Color == 1) {
duplicateMovieClip ("GemRed", p_Name, p_Layer);
}
if (p_Color == 2) {
duplicateMovieClip ("GemGreen", p_Name, p_Layer);
}
if (p_Color == 3) {
duplicateMovieClip ("GemBlue", p_Name, p_Layer);
}
if (p_Color == 4) {
duplicateMovieClip ("GemPurple", p_Name, p_Layer);
}
if (p_Color == 5) {
duplicateMovieClip ("GemCyan", p_Name, p_Layer);
}
if (p_Color == 6) {
duplicateMovieClip ("GemYellow", p_Name, p_Layer);
}
if (p_Color == 9) {
duplicateMovieClip ("GemGray", p_Name, p_Layer);
}
}
if (p_Type == 2) {
if (p_Color == 1) {
duplicateMovieClip ("BombRed", p_Name, p_Layer);
}
if (p_Color == 2) {
duplicateMovieClip ("BombGreen", p_Name, p_Layer);
}
if (p_Color == 3) {
duplicateMovieClip ("BombBlue", p_Name, p_Layer);
}
if (p_Color == 4) {
duplicateMovieClip ("BombPurple", p_Name, p_Layer);
}
if (p_Color == 5) {
duplicateMovieClip ("BombCyan", p_Name, p_Layer);
}
if (p_Color == 6) {
duplicateMovieClip ("BombYellow", p_Name, p_Layer);
}
}
if (p_Type == 3) {
duplicateMovieClip ("BombSosed", p_Name, p_Layer);
}
if (p_Type == 4) {
duplicateMovieClip ("BombHorizontal", p_Name, p_Layer);
p_Color = 9999;
}
if (p_Type == 5) {
duplicateMovieClip ("BombVertical", p_Name, p_Layer);
p_Color = 9999;
}
if (p_Type == 6) {
duplicateMovieClip ("BombFreeze", p_Name, p_Layer);
p_Color = 9999;
}
if (p_Type == 7) {
duplicateMovieClip ("BombRandom", p_Name, p_Layer);
p_Color = 9999;
}
this[p_Name]._x = p_PosX;
this[p_Name]._y = p_PosY;
this[p_Name]._Color = p_Color;
this[p_Name]._Type = p_Type;
}
function AddGem(p_NetPosX, p_NetPosY, p_Color, p_Type) {
var Index = 9999;
if (!FirstLoadGems) {
var i = 1;
while (i <= NumGems) {
if (!this["Gem" + i]._visible) {
Index = i;
}
i++;
}
}
if (Index == 9999) {
NumGems++;
Index = NumGems;
} else {
this["Gem" + i]._visible = false;
removeMovieClip("Gem" + Index);
}
if (p_Type == 1) {
if (p_Color == 1) {
duplicateMovieClip ("GemRed", "Gem" + Index, Index);
}
if (p_Color == 2) {
duplicateMovieClip ("GemGreen", "Gem" + Index, Index);
}
if (p_Color == 3) {
duplicateMovieClip ("GemBlue", "Gem" + Index, Index);
}
if (p_Color == 4) {
duplicateMovieClip ("GemPurple", "Gem" + Index, Index);
}
if (p_Color == 5) {
duplicateMovieClip ("GemCyan", "Gem" + Index, Index);
}
if (p_Color == 6) {
duplicateMovieClip ("GemYellow", "Gem" + Index, Index);
}
if (p_Color == 9) {
duplicateMovieClip ("GemGray", "Gem" + Index, Index);
}
}
if (p_Type == 2) {
if (p_Color == 1) {
duplicateMovieClip ("BombRed", "Gem" + Index, Index);
}
if (p_Color == 2) {
duplicateMovieClip ("BombGreen", "Gem" + Index, Index);
}
if (p_Color == 3) {
duplicateMovieClip ("BombBlue", "Gem" + Index, Index);
}
if (p_Color == 4) {
duplicateMovieClip ("BombPurple", "Gem" + Index, Index);
}
if (p_Color == 5) {
duplicateMovieClip ("BombCyan", "Gem" + Index, Index);
}
if (p_Color == 6) {
duplicateMovieClip ("BombYellow", "Gem" + Index, Index);
}
}
if (p_Type == 3) {
duplicateMovieClip ("BombSosed", "Gem" + Index, Index);
p_Color = 9999;
}
if (p_Type == 4) {
duplicateMovieClip ("BombHorizontal", "Gem" + Index, Index);
p_Color = 9999;
}
if (p_Type == 5) {
duplicateMovieClip ("BombVertical", "Gem" + Index, Index);
p_Color = 9999;
}
if (p_Type == 6) {
duplicateMovieClip ("BombFreeze", "Gem" + Index, Index);
p_Color = 9999;
}
if (p_Type == 7) {
duplicateMovieClip ("BombRandom", "Gem" + Index, Index);
p_Color = 9999;
}
if ((p_Type >= 2) && (p_Type <= 7)) {
BombIndex.push(Index);
}
if ((p_Type == 1) && (p_Color == 9)) {
GrayIndex.push(Index);
}
var objGem = this["Gem" + Index];
objGem._y = ConvNetPosToPosY(p_NetPosY);
objGem._x = ConvNetPosToPosX(p_NetPosX);
objGem._NetPosX = p_NetPosX;
objGem._NetPosY = p_NetPosY;
objGem._Color = p_Color;
objGem._Type = p_Type;
objGem._Number = Index;
SetArrayNetValue(p_NetPosX, p_NetPosY, Index);
}
function SetRandomLevel() {
BombIndex.splice(0);
GrayIndex.splice(0);
NumGemsToFinish = 30 + (_root.CurPuzzleLevel * 5);
CalculateMaxColors();
CalculateMaxBottomGemsTime();
CalculateStartHeight();
CalculateNumGemsToFinish();
var i = 1;
while (i <= NumGems) {
removeMovieClip("Gem" + i);
i++;
}
FirstLoadGems = true;
ClearBottomGems();
GamePlayMode = "ModeWaitForClick";
NumGems = 0;
EmptyArrayNet();
var i = 1;
while (i <= FieldSizeX) {
var j = StartHeight;
while (j <= FieldSizeY) {
RandomType = 1;
if (random(200) == 1) {
RandomType = 2;
}
RandomColor = random(MaxNumColors);
AddGem(i, j, RandomColor + 1, RandomType);
j++;
}
i++;
}
FirstLoadGems = false;
GameOverTimer = 0;
LevelCompleteTimer = 0;
NumDeadGems = 0;
BonusTextTimer = 0;
}
function LoadLevel(pLevelNumber) {
BombIndex.splice(0);
GrayIndex.splice(0);
NumGemsToFinish = 30 + (_root.CurPuzzleLevel * 5);
CalculateMaxColors();
CalculateMaxBottomGemsTime();
CalculateStartHeight();
var i = 1;
while (i <= NumGems) {
removeMovieClip("Gem" + i);
i++;
}
FirstLoadGems = true;
ClearBottomGems();
GamePlayMode = "ModeWaitForClick";
NumGems = 0;
EmptyArrayNet();
LevelNet = this["LevelNet" + pLevelNumber];
var i = 1;
while (i <= FieldSizeX) {
var j = 1;
while (j <= FieldSizeY) {
if (LevelNet[(i - 1) + ((j - 1) * FieldSizeX)] != 0) {
var g_Color = LevelNet[(i - 1) + ((j - 1) * FieldSizeX)];
var g_Type = 1;
while (g_Color >= 10) {
g_Color = g_Color - 10;
g_Type++;
}
AddGem(i, j, g_Color, g_Type);
}
j++;
}
i++;
}
FirstLoadGems = false;
GameOverTimer = 0;
LevelCompleteTimer = 0;
CalculateNumberGemsOnField();
BonusTextTimer = 0;
}
function OnMouseUp() {
if (DialogMode) {
return(undefined);
}
if (IsGamePaused) {
return(undefined);
}
if (GamePlayMode != "ModeWaitForClick") {
return(undefined);
}
if ((((_root._xmouse > 270) && (_root._xmouse < 630)) && (_root._ymouse > 440)) && (_root._ymouse < 470)) {
MaxBottomGemsTime = 1;
}
MouseNetPosX = ConvPosToNetPosX(_root._xmouse);
MouseNetPosY = ConvPosToNetPosY(_root._ymouse);
if ((((MouseNetPosX > FieldSizeX) || (MouseNetPosY > FieldSizeY)) || (MouseNetPosX < 1)) || (MouseNetPosY < 1)) {
return(undefined);
}
var NetValue = GetArrayNetValue(MouseNetPosX, MouseNetPosY);
if (NetValue == 9999) {
return(undefined);
}
if (this["Gem" + NetValue]._Color == 9) {
return(undefined);
}
if (this["Gem" + NetValue]._Type == 1) {
CheckToDeleteCloseGems(MouseNetPosX, MouseNetPosY);
RealDeleteCloseGems();
}
if ((this["Gem" + NetValue]._Type >= 2) && (this["Gem" + NetValue]._Type <= 7)) {
FindBombTarget(NetValue);
}
FindFallingGems();
}
function UpdateTimer() {
if (IsGamePaused) {
return(undefined);
}
delete myDate;
myDate = new Date();
CurrentTime = myDate.getTime();
ElapsedTime = CurrentTime - LastTime;
LastTime = CurrentTime;
if (!DialogMode) {
if (!Registered) {
Time = Time - ElapsedTime;
}
if (FreezeTimer > 0) {
FreezeTimer = FreezeTimer - ElapsedTime;
}
if (GameOverTimer > 0) {
GameOverTimer = GameOverTimer + ElapsedTime;
}
if (LevelCompleteTimer > 0) {
LevelCompleteTimer = LevelCompleteTimer + ElapsedTime;
}
}
if (Time <= 0) {
CalculateMaxNagTime();
}
}
function DeleteGem(pN) {
var objGem = this["Gem" + pN];
if ((objGem._Type >= 2) && (objGem._Type <= 7)) {
DeleteBomb(objGem._Number);
}
if ((objGem._Type == 1) && (objGem._Color == 9)) {
DeleteGray(objGem._Number);
}
if ((objGem._Type >= 2) && (objGem._Type <= 3)) {
AddExplodeBomb(objGem._Number);
} else {
AddExplode(objGem._Number);
}
SetArrayNetValue(objGem._NetPosX, objGem._NetPosY, 9999);
objGem._visible = false;
NumGemsToFinish--;
NumDeadGems++;
Score = Score + 30;
}
function CalculateMaxNagTime() {
if (GameType == "PuzzleType") {
MaxNagTime = 100000 - ((CurPuzzleLevel - 1) * 100);
if (MaxNagTime < 2000) {
MaxNagTime = 2000;
}
Time = MaxNagTime;
}
if (GameType == "TournamentType") {
MaxNagTime = 100000 - ((CurPuzzleLevel - 1) * 100);
if (MaxNagTime < 2000) {
MaxNagTime = 2000;
}
Time = MaxNagTime;
}
if (GameType == "EndlessType") {
MaxNagTime = MaxNagTime - 500;
if (MaxNagTime < 10000) {
MaxNagTime = 10000;
}
Time = MaxNagTime;
}
}
function UpdateGame() {
if (IsGamePaused) {
return(undefined);
}
CurScore = CurScore + ElapsedTime;
if (CurScore > Score) {
CurScore = Score;
}
if (GameOverTimer > 1000) {
ShowGameOver();
}
if (LevelCompleteTimer > 1000) {
if (GamePlayMode == "ModeWaitForClick") {
ShowWindowLevelComplete();
}
}
UpdateExplodes();
UpdateExplodesBomb();
UpdateEndlessMode();
UpdatePuzzleMode();
UpdateTournamentMode();
UpdateBonusText();
UpdateBottomGemsAlphaTimer();
if (GamePlayMode == "ModeMovingUp") {
UpdateMovingUpGems();
}
if (GamePlayMode == "ModeFalling") {
UpdateArrayFalling();
}
if (GamePlayMode == "ModeOffsetRightToLeft") {
UpdateMovingRightToLeft();
}
if ((OldMouseX != _root._xmouse) || (OldMouseY != _root._ymouse)) {
SelectPotentialGems();
OldMouseX = _root._xmouse;
OldMouseY = _root._ymouse;
}
if (EnableEscSkipLevel == 1) {
if (Key.isDown(27) || (Key.isDown(39))) {
CurPuzzleLevel++;
if (CurPuzzleLevel > TotalNumLevels) {
CurPuzzleLevel = 1;
}
LoadLevel(CurPuzzleLevel);
TimerTypeTime = CalculateMaxNumPopitok();
return(undefined);
}
}
}
function DeleteBomb(p_Number) {
var i = 0;
while (i < BombIndex.length) {
if (BombIndex[i] == p_Number) {
BombIndex.splice(i, 1);
}
i++;
}
}
function DeleteGray(p_Number) {
var i = 0;
while (i < GrayIndex.length) {
if (GrayIndex[i] == p_Number) {
GrayIndex.splice(i, 1);
}
i++;
}
}
function UpdateBottomGems() {
if (FreezeTimer <= 0) {
BottomGemsTimer = BottomGemsTimer - ElapsedTime;
}
if (BottomGemsTimer < 0) {
BottomGemsTimer = MaxBottomGemsTime;
if (_root.SoundOn) {
SoundAddBottomGem.start();
}
AddNextBottomGem();
if (GamePlayMode == "ModeWaitForClick") {
CheckBottomGemFull();
}
}
}
function CheckBottomGemFull() {
if (NumBottomGems >= FieldSizeX) {
CalculateMaxBottomGemsTime();
GamePlayMode = "ModeMovingUp";
var i = 1;
while (i <= FieldSizeX) {
var j = 1;
while (j <= FieldSizeY) {
if (GetArrayNetValue(i, j) != 9999) {
if (this["Gem" + GetArrayNetValue(i, j)]._NetPosY == 1) {
GameOverTimer++;
}
this["Gem" + GetArrayNetValue(i, j)]._NetPosY--;
SetArrayNetValue(i, j - 1, this["Gem" + GetArrayNetValue(i, j)]._Number);
}
j++;
}
i++;
}
if (_root.SoundOn) {
SoundLineUp.start();
}
}
}
function AddNextBottomGem() {
if (NumBottomGems >= FieldSizeX) {
return(undefined);
}
NumBottomGems++;
var random_color = (1 + random(MaxNumColors));
var random_type = 1;
if (random(150) == 2) {
random_type = 2;
}
if (random(150) == 2) {
random_type = 3;
}
if (random(150) == 2) {
random_type = 4;
}
if (random(150) == 2) {
random_type = 5;
}
if (random(350) == 2) {
random_type = 6;
}
if (random(50) == 2) {
random_type = 7;
}
AddGemByColor(OtstupX + (NumBottomGems * GemSize), (OtstupY + ((FieldSizeY + 1) * GemSize)) + 7, random_color, random_type, "BottomGem" + NumBottomGems, 200 + NumBottomGems);
}
function ClearBottomGems() {
var i = 1;
while (i <= NumBottomGems) {
removeMovieClip("BottomGem" + i);
i++;
}
NumBottomGems = 0;
}
function UpdateMovingUpGems() {
if (GameOverTimer > 0) {
return(undefined);
}
var bStop = false;
var bHaveVisibleGems = false;
var i = 1;
while (i <= NumGems) {
var objGem = this["Gem" + i];
if (objGem._visible) {
bHaveVisibleGems = true;
objGem._y = objGem._y - FallingSpeed;
if ((objGem._y - ConvNetPosToPosY(objGem._NetPosY)) < (FallingSpeed * 1)) {
bStop = true;
}
}
i++;
}
if (bStop || (!bHaveVisibleGems)) {
var i = 1;
while (i <= FieldSizeX) {
var j = 1;
while (j <= FieldSizeY) {
if (GetArrayNetValue(i, j) != 9999) {
this["Gem" + GetArrayNetValue(i, j)]._y = ConvNetPosToPosY(this["Gem" + GetArrayNetValue(i, j)]._NetPosY);
}
j++;
}
i++;
}
var i = 1;
while (i <= FieldSizeX) {
AddGem(i, FieldSizeY, this["BottomGem" + i]._Color, this["BottomGem" + i]._Type);
i++;
}
ClearBottomGems();
GamePlayMode = "ModeWaitForClick";
SelectPotentialGems();
}
}
function CalculateNumberGemsOnField() {
NumGemsOnField = 0;
var i = 1;
while (i <= FieldSizeX) {
var j = 1;
while (j <= FieldSizeY) {
if (GetArrayNetValue(i, j) != 9999) {
NumGemsOnField++;
}
j++;
}
i++;
}
NumGemsOnField = NumGemsOnField - BombIndex.length;
NumGemsOnField = NumGemsOnField - GrayIndex.length;
return(NumGemsOnField);
}
function CheckPossibleLevelSteps() {
var result = false;
var i = 1;
while (i <= FieldSizeX) {
var j = 1;
while (j <= FieldSizeY) {
if (GetArrayNetValue(i, j) != 9999) {
if (this["Gem" + GetArrayNetValue(i, j)]._Color != 9) {
CheckToDeleteCloseGems(i, j);
if (ArrayProsmotren.length >= 6) {
return(true);
}
}
}
j++;
}
i++;
}
return(false);
}
function UpdateEndlessMode() {
if (_root.GameType != "EndlessType") {
return(undefined);
}
UpdateBottomGems();
Text1.text = NumDeadGems;
}
function UpdatePuzzleMode() {
if (_root.GameType != "PuzzleType") {
return(undefined);
}
if (NextStepCheck) {
NextStepCheck = false;
CalculateNumberGemsOnField();
if (NumGemsOnField == 0) {
LevelCompleteTimer = LevelCompleteTimer + 1;
return(undefined);
}
if (GamePlayMode == "ModeWaitForClick") {
if (!CheckPossibleLevelSteps()) {
if (BombIndex.length == 0) {
GameOverTimer++;
}
}
}
}
Text1.text = NumGemsOnField;
}
function UpdateTournamentMode() {
if (_root.GameType != "TournamentType") {
return(undefined);
}
UpdateBottomGems();
if (NumGemsToFinish <= 0) {
LevelCompleteTimer = LevelCompleteTimer + 1;
NumGemsToFinish = 0;
}
Text1.text = NumGemsToFinish;
}
function CalculateMaxBottomGemsTime() {
if (_root.GameType == "TournamentType") {
MaxBottomGemsTime = 330 - (_root.CurPuzzleLevel * 2);
MaxBottomGemsTime = MaxBottomGemsTime - ((HardLevel - 1) * 30);
}
if (_root.GameType == "EndlessType") {
MaxBottomGemsTime = 330 - ((HardLevel - 1) * 50);
}
if (MaxBottomGemsTime < 80) {
MaxBottomGemsTime = 80;
}
}
function CalculateMaxColors() {
if (_root.GameType == "EndlessType") {
MaxNumColors = 4;
if (HardLevel == 3) {
MaxNumColors++;
}
}
if (_root.GameType == "TournamentType") {
MaxNumColors = 2;
if (HardLevel == 3) {
MaxNumColors++;
}
if (CurPuzzleLevel > 3) {
MaxNumColors++;
}
if (CurPuzzleLevel > 10) {
MaxNumColors++;
}
if (CurPuzzleLevel > 30) {
MaxNumColors++;
}
}
}
function CalculateStartHeight() {
if (_root.GameType == "EndlessType") {
StartHeight = 6 - ((HardLevel - 1) * 1);
}
if (_root.GameType == "TournamentType") {
StartHeight = 10 - (HardLevel - 1);
if (CurPuzzleLevel > 5) {
StartHeight--;
}
if (CurPuzzleLevel > 10) {
StartHeight--;
}
if (CurPuzzleLevel > 15) {
StartHeight--;
}
if (CurPuzzleLevel > 20) {
StartHeight--;
}
if (CurPuzzleLevel > 25) {
StartHeight--;
}
if (CurPuzzleLevel > 30) {
StartHeight--;
}
if (CurPuzzleLevel > 35) {
StartHeight--;
}
if (CurPuzzleLevel > 40) {
StartHeight--;
}
if (CurPuzzleLevel <= 3) {
StartHeight = 12;
}
}
}
function CalculateNumGemsToFinish() {
_root.NumGemsToFinish = 50 + (_root.CurPuzzleLevel * 5);
}
function UpdateBottomGemsAlphaTimer() {
MaxBottomGemsAlphaTimer = 600;
BottomGemsAlphaTimer = BottomGemsAlphaTimer - ElapsedTime;
if (BottomGemsAlphaTimer < 0) {
BottomGemsAlphaTimer = MaxBottomGemsAlphaTimer;
}
if ((((_root._xmouse > 270) && (_root._xmouse < 630)) && (_root._ymouse > 440)) && (_root._ymouse < 470)) {
if (BottomGemsAlphaTimer > (MaxBottomGemsAlphaTimer / 2)) {
BottomGemsAlpha = 40 + (BottomGemsAlphaTimer / 10);
} else {
BottomGemsAlpha = 40 + ((MaxBottomGemsAlphaTimer - BottomGemsAlphaTimer) / 10);
}
} else {
BottomGemsAlpha = BottomGemsAlpha + (ElapsedTime / 80);
if (BottomGemsAlpha > 100) {
BottomGemsAlpha = 100;
}
}
var i = 1;
while (i <= NumBottomGems) {
this["BottomGem" + i]._alpha = BottomGemsAlpha;
i++;
}
}
function CalculateLength(x1, y1, x2, y2) {
return(Math.sqrt(((x1 - x2) * (x1 - x2)) + ((y1 - y2) * (y1 - y2))));
}
function CalculateLengthSqr(x1, y1, x2, y2) {
return(((x1 - x2) * (x1 - x2)) + ((y1 - y2) * (y1 - y2)));
}
function CheckToDeleteCloseGems(pStartX, pStartY) {
ArrayPomechen.splice(0);
ArrayProsmotren.splice(0);
AddToPomechenArray(pStartX, pStartY);
while (ArrayPomechen.length > 0) {
ProsmotretLast();
}
}
function RealDeleteCloseGems() {
if (ArrayProsmotren.length < 6) {
return(undefined);
}
if (_root.SoundOn) {
SoundBrickClick.start();
}
CheckBonusSet();
var i = 0;
while (i < (ArrayProsmotren.length / 2)) {
var index = GetArrayNetValue(ArrayProsmotren[i * 2], ArrayProsmotren[(i * 2) + 1]);
DeleteGem(index);
i++;
}
}
function AddToPomechenArray(pX, pY) {
ArrayPomechen.push(pX);
ArrayPomechen.push(pY);
}
function AddToProsmotrenArray(pX, pY) {
ArrayProsmotren.push(pX);
ArrayProsmotren.push(pY);
}
function ErasePomechenArray() {
while (ArrayPomechen.length > 0) {
ArrayPomechen.pop();
}
}
function EraseProsmotrenArray() {
while (ArrayProsmotren.length > 0) {
ArrayProsmotren.pop();
}
}
function IsProsmotrenOrPomechen(pX, pY) {
var i;
i = 0;
while (i < (ArrayProsmotren.length / 2)) {
if ((ArrayProsmotren[i * 2] == pX) && (ArrayProsmotren[(i * 2) + 1] == pY)) {
return(1);
}
i++;
}
i = 0;
while (i < (ArrayPomechen.length / 2)) {
if ((ArrayPomechen[i * 2] == pX) && (ArrayPomechen[(i * 2) + 1] == pY)) {
return(1);
}
i++;
}
return(0);
}
function ProsmotretLast() {
var StartX = ArrayPomechen[ArrayPomechen.length - 2];
var StartY = ArrayPomechen[ArrayPomechen.length - 1];
var StartIndex = GetArrayNetValue(StartX, StartY);
var StartColor = this["Gem" + StartIndex]._Color;
AddToProsmotrenArray(StartX, StartY);
ArrayPomechen.pop();
ArrayPomechen.pop();
var SosedIndex;
if (StartX > 1) {
SosedIndex = GetArrayNetValue(StartX - 1, StartY);
}
if (StartX > 1) {
if (SosedIndex != 9999) {
if (this["Gem" + SosedIndex]._Color == StartColor) {
if (IsProsmotrenOrPomechen(StartX - 1, StartY) == 0) {
AddToPomechenArray(StartX - 1, StartY);
}
}
}
}
if (StartX < FieldSizeX) {
SosedIndex = GetArrayNetValue(StartX + 1, StartY);
}
if (StartX < FieldSizeX) {
if (SosedIndex != 9999) {
if (this["Gem" + SosedIndex]._Color == StartColor) {
if (IsProsmotrenOrPomechen(StartX + 1, StartY) == 0) {
AddToPomechenArray(StartX + 1, StartY);
}
}
}
}
if (StartY > 1) {
SosedIndex = GetArrayNetValue(StartX, StartY - 1);
}
if (StartY > 1) {
if (SosedIndex != 9999) {
if (this["Gem" + SosedIndex]._Color == StartColor) {
if (IsProsmotrenOrPomechen(StartX, StartY - 1) == 0) {
AddToPomechenArray(StartX, StartY - 1);
}
}
}
}
if (StartY < FieldSizeY) {
SosedIndex = GetArrayNetValue(StartX, StartY + 1);
}
if (StartY < FieldSizeY) {
if (SosedIndex != 9999) {
if (this["Gem" + SosedIndex]._Color == StartColor) {
if (IsProsmotrenOrPomechen(StartX, StartY + 1) == 0) {
AddToPomechenArray(StartX, StartY + 1);
}
}
}
}
}
function FindBombTarget(p_NetValue) {
var BombColor = this["Gem" + p_NetValue]._Color;
if (this["Gem" + p_NetValue]._Type == 2) {
if (_root.SoundOn) {
SoundBombExplode.start();
}
var i = 1;
while (i <= FieldSizeX) {
var j = 1;
while (j <= FieldSizeY) {
if (this["Gem" + GetArrayNetValue(i, j)]._Color == BombColor) {
DeleteGem(GetArrayNetValue(i, j));
}
j++;
}
i++;
}
}
if (this["Gem" + p_NetValue]._Type == 3) {
if (_root.SoundOn) {
SoundBombExplode.start();
}
var x_min = (this["Gem" + p_NetValue]._NetPosX - 2);
var x_max = (this["Gem" + p_NetValue]._NetPosX + 2);
var y_min = (this["Gem" + p_NetValue]._NetPosY - 2);
var y_max = (this["Gem" + p_NetValue]._NetPosY + 2);
if (x_min < 1) {
x_min = 1;
}
if (x_max > FieldSizeX) {
x_max = FieldSizeX;
}
if (y_min < 1) {
y_min = 1;
}
if (y_max > FieldSizeY) {
y_max = FieldSizeY;
}
var i = x_min;
while (i <= x_max) {
var j = y_min;
while (j <= y_max) {
if (GetArrayNetValue(i, j) != 9999) {
DeleteGem(GetArrayNetValue(i, j));
}
j++;
}
i++;
}
}
if (this["Gem" + p_NetValue]._Type == 4) {
if (_root.SoundOn) {
SoundBombExplode.start();
}
var j = this["Gem" + p_NetValue]._NetPosY;
var i = 1;
while (i <= FieldSizeX) {
if (GetArrayNetValue(i, j) != 9999) {
DeleteGem(GetArrayNetValue(i, j));
}
i++;
}
}
if (this["Gem" + p_NetValue]._Type == 5) {
if (_root.SoundOn) {
SoundBombExplode.start();
}
var i = this["Gem" + p_NetValue]._NetPosX;
var j = 1;
while (j <= FieldSizeY) {
if (GetArrayNetValue(i, j) != 9999) {
DeleteGem(GetArrayNetValue(i, j));
}
j++;
}
}
if (this["Gem" + p_NetValue]._Type == 6) {
if (_root.SoundOn) {
SoundBombExplode.start();
}
DeleteGem(this["Gem" + p_NetValue]._Number);
FreezeTimer = MaxFreezeTimer;
}
if (this["Gem" + p_NetValue]._Type == 7) {
if (_root.SoundOn) {
SoundBombExplode.start();
}
DeleteGem(this["Gem" + p_NetValue]._Number);
var i = 1;
while (i <= FieldSizeX) {
var j = 1;
while (j <= FieldSizeY) {
if (GetArrayNetValue(i, j) != 9999) {
if (random(10) == 2) {
DeleteGem(GetArrayNetValue(i, j));
}
}
j++;
}
i++;
}
}
}
function SelectPotentialGems() {
var i = 1;
while (i <= NumGems) {
this["Gem" + i]._alpha = 100;
i++;
}
MouseNetPosX = ConvPosToNetPosX(_root._xmouse);
MouseNetPosY = ConvPosToNetPosY(_root._ymouse);
if (NumGems < 3) {
return(undefined);
}
if ((((MouseNetPosX <= FieldSizeX) || (MouseNetPosY <= FieldSizeY)) || (MouseNetPosX >= 1)) || (MouseNetPosY >= 1)) {
CheckToDeleteCloseGems(MouseNetPosX, MouseNetPosY);
if ((ArrayProsmotren.length / 2) >= 3) {
var i = 0;
while (i < (ArrayProsmotren.length / 2)) {
var index = GetArrayNetValue(ArrayProsmotren[i * 2], ArrayProsmotren[(i * 2) + 1]);
this["Gem" + index]._alpha = 60;
i++;
}
}
}
}
function FindFallingGems() {
ArrayFalling.splice(0);
var i = 1;
while (i <= FieldSizeX) {
var j = 1;
while (j < FieldSizeY) {
var Index = GetArrayNetValue(i, j);
if (Index != 9999) {
var objGem = this["Gem" + Index];
if (GetArrayNetValue(objGem._NetPosX, objGem._NetPosY + 1) == 9999) {
ArrayFalling.push(objGem._Number);
SetArrayNetValue(objGem._NetPosX, objGem._NetPosY, 9999);
NetY = objGem._NetPosY - 1;
while ((NetY > 0) && (GetArrayNetValue(objGem._NetPosX, NetY) != 9999)) {
ArrayFalling.push(GetArrayNetValue(objGem._NetPosX, NetY));
SetArrayNetValue(objGem._NetPosX, NetY, 9999);
NetY--;
}
}
}
j++;
}
i++;
}
GamePlayMode = "ModeFalling";
}
function UpdateArrayFalling() {
var i = 0;
while (i < ArrayFalling.length) {
var objGem = this["Gem" + ArrayFalling[i]];
objGem._y = objGem._y + FallingSpeed;
objGem._NetPosY = ConvPosToNetPosY(objGem._y);
if ((objGem._NetPosY == (NetPosY - 1)) || (GetArrayNetValue(objGem._NetPosX, objGem._NetPosY + 1) != 9999)) {
if (objGem._y > (ConvNetPosToPosY(objGem._NetPosY) - (FallingSpeed * 1))) {
SetArrayNetValue(objGem._NetPosX, objGem._NetPosY, objGem._Number);
objGem._y = ConvNetPosToPosY(objGem._NetPosY);
ArrayFalling.splice(i, 1);
i--;
}
}
i++;
}
if (ArrayFalling.length == 0) {
GamePlayMode = "ModeWaitForClick";
CheckOffsetRightToLeft();
if (GamePlayMode == "ModeWaitForClick") {
NextStepCheck = true;
}
}
}
function CheckOffsetRightToLeft() {
var result = false;
var bGotGem = false;
var FoundFirstGem = false;
var last_j;
RightCorner = 9999;
LeftCorner = 9999;
var Ind = 1;
while ((Ind <= FieldSizeX) && (RightCorner == 9999)) {
bGotGem = false;
var j = 1;
while (j <= FieldSizeY) {
if (GetArrayNetValue(Ind, j) != 9999) {
bGotGem = true;
last_j = j;
}
j++;
}
if (FoundFirstGem) {
if (!bGotGem) {
LeftCorner = Ind;
}
}
if (bGotGem) {
FoundFirstGem = true;
if (LeftCorner != 9999) {
RightCorner = Ind;
RightInd = GetArrayNetValue(Ind, last_j);
}
}
Ind++;
}
if (RightCorner != 9999) {
if (FirstCheck) {
if (_root.SoundOn) {
SoundOffsetMoving.start();
}
}
FirstCheck = false;
GamePlayMode = "ModeOffsetRightToLeft";
ArrayOfssetRightToLeft.splice(0);
var i = RightCorner;
while (i <= FieldSizeX) {
var j = 1;
while (j <= FieldSizeY) {
if (GetArrayNetValue(i, j) != 9999) {
ArrayOfssetRightToLeft.push(GetArrayNetValue(i, j));
SetArrayNetValue(i, j, 9999);
}
j++;
}
i++;
}
result = true;
}
return(result);
}
function UpdateMovingRightToLeft() {
var bStop = false;
var i = 0;
while (i < ArrayOfssetRightToLeft.length) {
this["Gem" + ArrayOfssetRightToLeft[i]]._x = this["Gem" + ArrayOfssetRightToLeft[i]]._x - FallingSpeed;
i++;
}
if (this["Gem" + RightInd]._NetPosX == RightCorner) {
if (Math.abs(this["Gem" + RightInd]._x - ConvNetPosToPosX(LeftCorner)) < FallingSpeed) {
bStop = true;
}
}
if (bStop) {
var i = 0;
while (i < ArrayOfssetRightToLeft.length) {
this["Gem" + ArrayOfssetRightToLeft[i]]._NetPosX = ConvPosToNetPosX(this["Gem" + ArrayOfssetRightToLeft[i]]._x);
this["Gem" + ArrayOfssetRightToLeft[i]]._x = ConvNetPosToPosX(this["Gem" + ArrayOfssetRightToLeft[i]]._NetPosX);
SetArrayNetValue(this["Gem" + ArrayOfssetRightToLeft[i]]._NetPosX, this["Gem" + ArrayOfssetRightToLeft[i]]._NetPosY, this["Gem" + ArrayOfssetRightToLeft[i]]._Number);
i++;
}
GamePlayMode = "ModeWaitForClick";
CheckOffsetRightToLeft();
if (GamePlayMode == "ModeWaitForClick") {
NextStepCheck = true;
FirstCheck = true;
}
}
}
function ShowBuyNowWindow(pType) {
if (_root.SoundOn) {
SoundClickButton.start();
}
_root.BuyNowType = pType;
_root.DialogMode = true;
_root.WindowBuyMe1.Text1.text = " ";
if (BuyNowType == 1) {
_root.WindowBuyMe1.Text1.text = "\n\nThis option is available only in the registered offline version";
}
if (BuyNowType == 2) {
_root.WindowBuyMe1.Text1.text = "Download offline version and get: \n- the possibility to play the game at any time you want.\n- Improved graphics and sound.";
}
if (BuyNowType == 3) {
_root.WindowBuyMe1.Text1.text = "\nDo you want to play more levels ? Download and register offline version !";
}
_root.WindowBuyMe1.Text2.text = _root.WindowBuyMe1.Text1.text;
_root.WindowBuyMe1._visible = true;
_root.WindowBuyMe1.GotoAndPlay(1);
}
function ShowMainMenu() {
_root.DialogMode = true;
_root.WindowMainMenu1._visible = true;
_root.WindowMainMenu1.GotoAndPlay(1);
}
function ShowWindowLevelComplete() {
if (_root.SoundOn) {
_root.SoundLevelComplete.start();
}
_root.DialogMode = true;
_root.WindowLevelComplete1._visible = true;
_root.WindowLevelComplete1.GotoAndPlay(1);
}
function ShowGameOver() {
if (_root.SoundOn) {
_root.SoundGameOver.start();
}
_root.DialogMode = true;
_root.WindowGameOver1._visible = true;
_root.WindowGameOver1.GotoAndPlay(1);
}
function ShowGameMenu() {
_root.DialogMode = true;
_root.WindowGameMenu1._visible = true;
_root.WindowGameMenu1.GotoAndPlay(1);
}
function ShowBuyMeLast() {
_root.DialogMode = true;
_root.WindowBuyMeLast1._visible = true;
_root.WindowBuyMeLast1.GotoAndPlay(1);
}
function ShowHelp1() {
_root.DialogMode = true;
_root.WindowHelp1._visible = true;
_root.WindowHelp1.GotoAndPlay(1);
}
function ShowHelp2() {
_root.DialogMode = true;
_root.WindowHelp21._visible = true;
_root.WindowHelp21.GotoAndPlay(1);
}
function ShowHelp3() {
_root.DialogMode = true;
_root.WindowHelp31._visible = true;
_root.WindowHelp31.GotoAndPlay(1);
}
function ShowNewGameMenu() {
_root.DialogMode = true;
_root.WindowNewGame1._visible = true;
_root.WindowNewGame1.GotoAndPlay(1);
}
function ShowAreYouSureWindow(p_Mode) {
_root.DialogMode = true;
_root.WindowAreYouSure1._visible = true;
_root.WindowAreYouSure1.GotoAndPlay(1);
_root.AYSmode = p_Mode;
}
function PlayAreaOn() {
_root.ButtonAbort._visible = true;
if (!IsGamePaused) {
_root.ButtonPause._visible = true;
_root.ButtonResume._visible = false;
}
if (IsGamePaused) {
_root.ButtonResume._visible = true;
_root.ButtonPause._visible = false;
}
_root.ButtonRestart._visible = true;
_root.Sound_radio._visible = true;
_root.Text1._visible = true;
}
function PlayAreaOff() {
_root.ButtonAbort._visible = false;
_root.ButtonPause._visible = false;
_root.ButtonResume._visible = false;
_root.ButtonRestart._visible = false;
_root.Sound_radio._visible = false;
}
function AddExplode(p_GemNumber) {
var Index = 9999;
var i = 1;
while (i <= NumExplodes) {
if (!this["ExplodeGem" + i]._visible) {
Index = i;
}
i++;
}
if (Index == 9999) {
NumExplodes++;
Index = NumExplodes;
} else {
this["ExplodeGem" + i]._visible = false;
removeMovieClip("ExplodeGem" + Index);
}
AddGemByColor(this["Gem" + p_GemNumber]._x, this["Gem" + p_GemNumber]._y, this["Gem" + p_GemNumber]._Color, this["Gem" + p_GemNumber]._Type, "ExplodeGem" + Index, 500 + Index);
}
function UpdateExplodes() {
var i = 1;
while (i <= NumExplodes) {
if (this["ExplodeGem" + i]._visible) {
this["ExplodeGem" + i]._rotation = this["ExplodeGem" + i]._rotation + 20;
this["ExplodeGem" + i]._alpha = this["ExplodeGem" + i]._alpha - 8;
this["ExplodeGem" + i]._xscale = this["ExplodeGem" + i]._xscale - 8;
this["ExplodeGem" + i]._yscale = this["ExplodeGem" + i]._yscale - 8;
if (this["ExplodeGem" + i]._alpha < 1) {
this["ExplodeGem" + i]._visible = false;
}
}
i++;
}
}
function AddExplodeBomb(p_GemNumber) {
var Index = 9999;
var i = 1;
while (i <= NumExplodesBomb) {
if (!this["ExplodeBomb" + i]._visible) {
Index = i;
}
i++;
}
if (Index == 9999) {
NumExplodesBomb++;
Index = NumExplodesBomb;
} else {
this["ExplodeBomb" + i]._visible = false;
removeMovieClip("ExplodeBomb" + Index);
}
AddGemByColor(this["Gem" + p_GemNumber]._x, this["Gem" + p_GemNumber]._y, this["Gem" + p_GemNumber]._Color, this["Gem" + p_GemNumber]._Type, "ExplodeBomb" + Index, 700 + Index);
this["ExplodeBomb" + Index].GotoAndPlay(2);
}
function UpdateExplodesBomb() {
var i = 1;
while (i <= NumExplodesBomb) {
if (this["ExplodeBomb" + i]._visible) {
}
i++;
}
}
function UpdateBonusText() {
if (BonusTextTimer > 0) {
BonusTextTimer = BonusTextTimer - 3;
BonusText1._visible = true;
BonusText2._visible = true;
BonusText3._visible = true;
BonusText4._visible = true;
BonusText1._y = BonusText1._y - 2;
if (BonusTextTimer < 50) {
BonusText1._alpha = BonusText1._alpha - 4;
}
if (BonusText1._alpha < 0) {
BonusText1._alpha = 0;
}
} else {
BonusText1._visible = false;
BonusText2._visible = false;
BonusText3._visible = false;
BonusText4._visible = false;
}
}
function SetBonustText(pText, pTextBonus, p_PosX, p_PosY) {
BonusTextTimer = 100;
BonusText1.text = pText;
BonusText2.text = pText;
BonusText3.text = pTextBonus;
BonusText4.text = pTextBonus;
BonusText1._x = p_PosX;
BonusText1._y = p_PosY;
BonusText2._x = BonusText1._x;
BonusText2._y = BonusText1._y;
BonusText1._alpha = 100;
}
function CheckBonusSet() {
if ((ArrayProsmotren.length / 2) < 8) {
return(undefined);
}
var middle_x = 0;
var middle_y = 0;
var i = 0;
while (i < (ArrayProsmotren.length / 2)) {
middle_x = middle_x + ConvNetPosToPosX(ArrayProsmotren[i * 2]);
middle_y = middle_y + ConvNetPosToPosY(ArrayProsmotren[(i * 2) + 1]);
i++;
}
middle_x = middle_x / (ArrayProsmotren.length / 2);
middle_y = middle_y / (ArrayProsmotren.length / 2);
SetBonustText("+" + (((ArrayProsmotren.length / 2) - 7) * 500), "SUPER BONUS", middle_x - 70, middle_y - 50);
Score = Score + (((ArrayProsmotren.length / 2) - 8) * 500);
}
movieClip.prototype.Color;
movieClip.prototype.NetPosX;
movieClip.prototype.NetPosY;
movieClip.prototype.MoveX;
movieClip.prototype.MoveY;
movieClip.prototype.MoveXnormalized;
movieClip.prototype.MoveYnormalized;
movieClip.prototype.Number;
movieClip.prototype.Type;
var NumGems = 0;
var RealNumBubbles = 0;
var GemSize = 30;
var FieldSizeX = 12;
var FieldSizeY = 14;
var OtstupX = 255;
var OtstupY = -3;
ArrayNet = new array((FieldSizeX * FieldSizeY) * 2);
var GamePlayMode = "ModeWaitForClick";
var MovingBubbleNumber = 9999;
ArrayProsmotren = new Array();
ArrayPomechen = new Array();
ArrayPath = new Array();
ArrayFalling = new Array();
BombIndex = new Array();
GrayIndex = new Array();
AvailableColorsIndex = new Array();
AvailableColors = new Array();
ArrayBubblesChangeColor = new Array();
ArrayOfssetRightToLeft = new Array();
var FallingSpeed = 10;
var CurArrayPath = 0;
var DialogMode = false;
var BuyNowType = 1;
var BombExplodeRadius = 1;
var Score = 0;
var CurScore = 0;
var LastScore = 0;
var GameType = "PuzzleType";
var MaxNumColors = 4;
var HardLevel = 1;
var CurPuzzleLevel = 1;
var EnableEscSkipLevel = 0;
var OffsetInc = 1;
var ShowPathTimer = 0;
var SoundOn = true;
var MaxBottomGemsTime = 200;
var BottomGemsTimer = MaxBottomGemsTime;
var NumBottomGems = 0;
var StartHeight = 9;
var MaxFreezeTimer = 4000;
var FreezeTimer = 0;
var NumGemsOnField = 1;
var NextStepCheck = false;
var FirstLoadGems = true;
var NumGemsToFinish = 10;
var IsGamePaused = false;
var GameOverTimer = 0;
var LevelCompleteTimer = 0;
var AYSmode = 1;
var NumDeadGems = 1;
var OldMouseX = _root._xmouse;
var OldMouseY = _root._ymouse;
var BottomGemsAlpha = 100;
var BottomGemsAlphaTimer = 1000;
duplicateMovieClip (WindowNewGame, "WindowNewGame1", 1001);
WindowNewGame1.GotoAndStop(1);
WindowNewGame1.Radio1.GotoAndStop(3);
WindowNewGame._visible = false;
WindowNewGame1._visible = false;
duplicateMovieClip (WindowBuyNow, "WindowBuyNow1", 1002);
WindowBuyNow._visible = false;
WindowBuyNow1._visible = false;
duplicateMovieClip (WindowHelp, "WindowHelp1", 1003);
WindowHelp._visible = false;
WindowHelp1._visible = false;
duplicateMovieClip (WindowHelp2, "WindowHelp21", 1004);
WindowHelp2._visible = false;
WindowHelp21._visible = false;
duplicateMovieClip (WindowHelp3, "WindowHelp31", 1005);
WindowHelp3._visible = false;
WindowHelp31._visible = false;
duplicateMovieClip (WindowBuyMeLast, "WindowBuyMeLast1", 1006);
WindowBuyMeLast._visible = false;
WindowBuyMeLast1._visible = false;
duplicateMovieClip (WindowMainMenu, "WindowMainMenu1", 1007);
WindowMainMenu._visible = false;
WindowMainMenu1._visible = false;
duplicateMovieClip (WindowGameMenu, "WindowGameMenu1", 1009);
WindowGameMenu._visible = false;
WindowGameMenu1._visible = false;
duplicateMovieClip (WindowBuyMe, "WindowBuyMe1", 1010);
WindowBuyMe._visible = false;
WindowBuyMe1._visible = false;
duplicateMovieClip (WindowLevelComplete, "WindowLevelComplete1", 1011);
WindowLevelComplete._visible = false;
WindowLevelComplete1._visible = false;
duplicateMovieClip (WindowGameOver, "WindowGameOver1", 1012);
WindowGameOver._visible = false;
WindowGameOver1._visible = false;
duplicateMovieClip (WindowAreYouSure, "WindowAreYouSure1", 1013);
WindowAreYouSure._visible = false;
WindowAreYouSure1._visible = false;
duplicateMovieClip (Paused, "Paused1", 999);
Paused._visible = false;
Paused1._visible = false;
SoundClickButton = new Sound();
SoundClickButton.attachSound("s_clickbutton");
SoundAddBottomGem = new Sound();
SoundAddBottomGem.attachSound("s_addbottomgem");
SoundBrickClick = new Sound();
SoundBrickClick.attachSound("s_brickclick");
SoundOffsetMoving = new Sound();
SoundOffsetMoving.attachSound("s_offsetmoving");
SoundLineUp = new Sound();
SoundLineUp.attachSound("s_lineup");
SoundGameOver = new Sound();
SoundGameOver.attachSound("s_gameover");
SoundLevelComplete = new Sound();
SoundLevelComplete.attachSound("s_levelcomplete");
SoundBombExplode = new Sound();
SoundBombExplode.attachSound("s_bombexplode");
fscommand ("showmenu", false);
_root.ButtonResume._visible = false;
duplicateMovieClip (BonusText, "BonusText1", 800);
_root.BonusText._visible = false;
myDate = new Date();
var CurrentTime = myDate.getTime();
var ElapsedTime = (CurrentTime - LastTime);
var LastTime = CurrentTime;
var MaxNagTime = 100000;
var Time = MaxNagTime;
var LinkBuyNow = "http://www.gameglade.com/downloads/qbricksetup.exe";
var LinkMoreGames = "http://gameglade.com";
var Registered = false;
someListener = new Object();
someListener.onMouseUp = function () {
OnMouseUp();
};
Mouse.addListener(someListener);
var RightInd = 0;
var RightCorner = 9999;
var LeftCorner = 9999;
var FirstCheck = true;
var NumExplodes = 0;
var NumExplodesBomb = 0;
var TotalNumLevels = 28;
LevelNet1 = new array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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2, 0, 0, 2, 0, 0, 3, 0, 0, 3, 0, 5, 2, 0, 0, 6, 0, 0, 3, 0, 0, 21, 0, 5, 3, 0, 0, 6, 0, 0, 2, 0, 0, 5, 0, 3, 2, 9, 9, 6, 9, 9, 2, 9, 9, 5, 9, 9, 2, 9, 9, 2, 9, 9, 2, 9, 9, 5, 9, 9, 2, 9, 9, 2, 9, 9, 1, 9, 9, 5, 9, 9, 1, 9, 9, 1, 9, 9, 1, 9, 9, 6, 9, 9, 1, 9, 9, 2, 9, 9, 1, 9, 9, 6, 9, 9);
BonusText1._visible = false;
BonusText2._visible = false;
BonusTextTimer = 0;
_root.Paused._visible = false;
GemRed._visible = false;
GemGreen._visible = false;
GemBlue._visible = false;
GemPurple._visible = false;
GemCyan._visible = false;
GemYellow._visible = false;
GemGray._visible = false;
BombRed._visible = false;
BombGreen._visible = false;
BombBlue._visible = false;
BombPurple._visible = false;
BombCyan._visible = false;
BombYellow._visible = false;
BombSosed._visible = false;
BombHorizontal._visible = false;
BombVertical._visible = false;
BombFreeze._visible = false;
BombRandom._visible = false;
SetRandomLevel();
ShowMainMenu();
PlayAreaOff();
_root.onEnterFrame = function () {
if (!DialogMode) {
UpdateGame();
}
UpdateTimer();
};
Instance of Symbol 103 MovieClip "Sound_radio" in Frame 4
on (rollOver) {
if (_root.Sound_radio._currentframe == 1) {
_root.Sound_radio.GotoAndStop(2);
}
if (_root.Sound_radio._currentframe == 3) {
_root.Sound_radio.GotoAndStop(4);
}
}
on (rollOut) {
if (_root.Sound_radio._currentframe == 2) {
_root.Sound_radio.GotoAndStop(1);
}
if (_root.Sound_radio._currentframe == 4) {
_root.Sound_radio.GotoAndStop(3);
}
}
on (release) {
if (_root.SoundOn) {
_root.SoundOn = false;
} else {
_root.SoundOn = true;
}
if (_root.SoundOn) {
_root.SoundClickButton.start();
}
if (_root.Sound_radio._currentframe == 2) {
_root.Sound_radio.GotoAndStop(4);
} else if (_root.Sound_radio._currentframe == 1) {
_root.Sound_radio.GotoAndStop(3);
} else if (_root.Sound_radio._currentframe == 4) {
_root.Sound_radio.GotoAndStop(2);
} else if (_root.Sound_radio._currentframe == 3) {
_root.Sound_radio.GotoAndStop(1);
}
}
Symbol 59 MovieClip Frame 11
stop();
Symbol 60 MovieClip Frame 1
stop();
Symbol 60 MovieClip Frame 2
stop();
Symbol 63 MovieClip Frame 1
stop();
Symbol 63 MovieClip Frame 2
stop();
Symbol 66 MovieClip Frame 1
stop();
Symbol 66 MovieClip Frame 2
stop();
Symbol 69 MovieClip Frame 1
stop();
Symbol 69 MovieClip Frame 2
stop();
Symbol 75 MovieClip Frame 1
stop();
Symbol 75 MovieClip Frame 2
stop();
Symbol 84 MovieClip Frame 1
stop();
Symbol 84 MovieClip Frame 2
stop();
Symbol 87 MovieClip Frame 1
stop();
Symbol 87 MovieClip Frame 2
stop();
Symbol 103 MovieClip Frame 1
stop();
Symbol 103 MovieClip Frame 2
stop();
Symbol 103 MovieClip Frame 3
stop();
Symbol 103 MovieClip Frame 4
stop();
Symbol 118 Button
on (release) {
if (_root.DialogMode) {
return(undefined);
}
if (_root.SoundOn) {
_root.SoundClickButton.start();
}
_root.ShowAreYouSureWindow(2);
}
Symbol 125 Button
on (release) {
if (_root.DialogMode) {
return(undefined);
}
if (_root.SoundOn) {
_root.SoundClickButton.start();
}
_root.IsGamePaused = false;
_root.ButtonPause._visible = true;
_root.ButtonResume._visible = false;
_root.Paused1._visible = false;
}
Symbol 132 Button
on (release) {
if (_root.DialogMode) {
return(undefined);
}
if (_root.SoundOn) {
_root.SoundClickButton.start();
}
_root.IsGamePaused = true;
_root.ButtonPause._visible = false;
_root.ButtonResume._visible = true;
_root.Paused1._visible = true;
}
Symbol 143 Button
on (release) {
if (_root.DialogMode) {
return(undefined);
}
if (_root.SoundOn) {
_root.SoundClickButton.start();
}
_root.ShowAreYouSureWindow(1);
}
Symbol 161 Button
on (release) {
if (_root.SoundOn) {
_root.SoundClickButton.start();
}
_root.LastScore = _root.Score;
_root.CurPuzzleLevel++;
if (_root.GameType == "PuzzleType") {
if (_root.CurPuzzleLevel > _root.TotalNumLevels) {
_root.CurPuzzleLevel = 1;
}
}
if (_root.GameType == "PuzzleType") {
_root.LoadLevel(_root.CurPuzzleLevel);
}
if (_root.GameType == "TournamentType") {
_root.SetRandomLevel();
}
if (_root.GameType == "EndlessType") {
_root.SetRandomLevel();
}
_root.WindowLevelComplete1._visible = false;
_root.DialogMode = false;
if (_root.GameType == "PuzzleType") {
if (!_root.Registered) {
if (_root.CurPuzzleLevel > 5) {
_root.ShowBuyNowWindow(3);
}
}
}
if (_root.GameType == "TournamentType") {
if (!_root.Registered) {
if (_root.CurPuzzleLevel > 15) {
_root.ShowBuyNowWindow(3);
}
}
}
}
Symbol 171 Button
on (release) {
if (_root.SoundOn) {
_root.SoundClickButton.start();
}
_root.ShowMainMenu();
_root.WindowGameOver1._visible = false;
_root.PlayAreaOff();
}
Symbol 172 Button
on (release) {
if (_root.SoundOn) {
_root.SoundClickButton.start();
}
_root.DialogMode = false;
_root.WindowGameOver1._visible = false;
_root.Score = _root.LastScore;
_root.CurScore = _root.Score;
if ((_root.GameType == "TournamentType") || (_root.GameType == "EndlessType")) {
_root.SetRandomLevel();
}
if (_root.GameType == "PuzzleType") {
_root.LoadLevel(_root.CurPuzzleLevel);
}
}
Symbol 201 Button
on (release) {
if (_root.WindowBuyMe1._visible) {
return(undefined);
}
_root.LastScore = 0;
_root.CurScore = 0;
_root.Score = 0;
if (_root.SoundOn) {
_root.SoundClickButton.start();
}
_root.WindowNewGame1._visible = false;
_root.DialogMode = false;
_root.CurPuzzleLevel = 1;
_root.GameType = "TournamentType";
_root.GameTypeText1.text = "TOURNAMENT";
_root.PlayAreaOn();
_root.SetRandomLevel();
}
Symbol 208 Button
on (release) {
if (_root.WindowBuyMe1._visible) {
return(undefined);
}
if (_root.SoundOn) {
_root.SoundClickButton.start();
}
_root.WindowNewGame1._visible = false;
_root.ShowMainMenu();
}
Symbol 215 Button
on (release) {
if (_root.WindowBuyMe1._visible) {
return(undefined);
}
_root.LastScore = 0;
_root.CurScore = 0;
_root.Score = 0;
if (_root.SoundOn) {
_root.SoundClickButton.start();
}
_root.WindowNewGame1._visible = false;
_root.DialogMode = false;
_root.GameType = "PuzzleType";
_root.GameTypeText1.text = "PUZZLE";
_root.CurPuzzleLevel = 1;
_root.PlayAreaOn();
_root.LoadLevel(_root.CurPuzzleLevel);
}
Symbol 222 Button
on (release) {
if (_root.WindowBuyMe1._visible) {
return(undefined);
}
_root.LastScore = 0;
_root.CurScore = 0;
_root.Score = 0;
_root.MaxNagTime = 40000;
if (_root.SoundOn) {
_root.SoundClickButton.start();
}
_root.WindowNewGame1._visible = false;
_root.DialogMode = false;
_root.GameType = "EndlessType";
_root.GameTypeText1.text = "ENDLESS";
_root.PlayAreaOn();
_root.SetRandomLevel();
}
Symbol 228 MovieClip Frame 1
stop();
Symbol 228 MovieClip Frame 2
stop();
Symbol 228 MovieClip Frame 3
stop();
Symbol 228 MovieClip Frame 4
stop();
Instance of Symbol 228 MovieClip "Radio1" in Symbol 229 MovieClip Frame 1
on (rollOver) {
if (_root.WindowNewGame1.Radio1._currentframe == 1) {
gotoAndStop (2);
}
if (_root.WindowNewGame1.Radio1._currentframe == 3) {
gotoAndStop (4);
}
}
on (rollOut) {
if (_root.WindowNewGame1.Radio1._currentframe == 2) {
gotoAndStop (1);
}
if (_root.WindowNewGame1.Radio1._currentframe == 4) {
gotoAndStop (3);
}
}
on (press) {
if (_root.HardLevel == 1) {
return(undefined);
}
if ((_root.WindowNewGame1.Radio1._currentframe == 1) || (_root.WindowNewGame1.Radio1._currentframe == 3)) {
return(undefined);
}
_root.HardLevel = 1;
if (_root.WindowNewGame1.Radio1._currentframe == 2) {
gotoAndStop (3);
}
if (_root.WindowNewGame1.Radio1._currentframe == 4) {
gotoAndStop (1);
}
_root.WindowNewGame1.Radio2.GotoAndStop(1);
_root.WindowNewGame1.Radio3.GotoAndStop(1);
}
Instance of Symbol 228 MovieClip "Radio2" in Symbol 229 MovieClip Frame 1
on (rollOver) {
if (_root.WindowNewGame1.Radio2._currentframe == 1) {
gotoAndStop (2);
}
if (_root.WindowNewGame1.Radio2._currentframe == 3) {
gotoAndStop (4);
}
}
on (rollOut) {
if (_root.WindowNewGame1.Radio2._currentframe == 2) {
gotoAndStop (1);
}
if (_root.WindowNewGame1.Radio2._currentframe == 4) {
gotoAndStop (3);
}
}
on (press) {
if (!_root.Registered) {
_root.ShowBuyNowWindow(1);
} else {
if (_root.HardLevel == 2) {
return(undefined);
}
if ((_root.WindowNewGame1.Radio2._currentframe == 1) || (_root.WindowNewGame1.Radio2._currentframe == 3)) {
return(undefined);
}
_root.HardLevel = 2;
if (_root.WindowNewGame1.Radio2._currentframe == 2) {
gotoAndStop (3);
}
if (_root.WindowNewGame1.Radio2._currentframe == 4) {
gotoAndStop (1);
}
_root.WindowNewGame1.Radio1.GotoAndStop(1);
_root.WindowNewGame1.Radio3.GotoAndStop(1);
}
}
Instance of Symbol 228 MovieClip "Radio3" in Symbol 229 MovieClip Frame 1
on (rollOver) {
if (_root.WindowNewGame1.Radio3._currentframe == 1) {
gotoAndStop (2);
}
if (_root.WindowNewGame1.Radio3._currentframe == 3) {
gotoAndStop (4);
}
}
on (rollOut) {
if (_root.WindowNewGame1.Radio3._currentframe == 2) {
gotoAndStop (1);
}
if (_root.WindowNewGame1.Radio3._currentframe == 4) {
gotoAndStop (3);
}
}
on (press) {
if (!_root.Registered) {
_root.ShowBuyNowWindow(1);
} else {
if (_root.HardLevel == 3) {
return(undefined);
}
if ((_root.WindowNewGame1.Radio3._currentframe == 1) || (_root.WindowNewGame1.Radio3._currentframe == 3)) {
return(undefined);
}
_root.HardLevel = 3;
if (_root.WindowNewGame1.Radio3._currentframe == 2) {
gotoAndStop (3);
}
if (_root.WindowNewGame1.Radio3._currentframe == 4) {
gotoAndStop (1);
}
_root.WindowNewGame1.Radio1.GotoAndStop(1);
_root.WindowNewGame1.Radio2.GotoAndStop(1);
}
}
Symbol 236 Button
on (release) {
if (_root.SoundOn) {
_root.SoundClickButton.start();
}
_root.WindowBuyMe1._visible = false;
if (_root.BuyNowType == 2) {
_root.DialogMode = false;
}
if (_root.BuyNowType == 3) {
_root.ShowMainMenu();
}
}
Symbol 243 Button
on (release) {
if (_root.SoundOn) {
_root.SoundClickButton.start();
}
getURL (_root.LinkBuyNow, "_blank");
_root.WindowBuyMe1._visible = false;
if (_root.BuyNowType == 2) {
_root.DialogMode = false;
_root.IsGamePaused = true;
_root.ButtonPause._visible = false;
_root.ButtonResume._visible = true;
_root.Paused1._visible = true;
}
if (_root.BuyNowType == 3) {
_root.ShowMainMenu();
}
}
Symbol 253 Button
on (release) {
if (_root.SoundOn) {
_root.SoundClickButton.start();
}
_root.WindowAreYouSure1._visible = false;
_root.DialogMode = false;
}
Symbol 260 Button
on (release) {
if (_root.SoundOn) {
_root.SoundClickButton.start();
}
_root.Paused._visible = false;
_root.WindowAreYouSure1._visible = false;
if (_root.AYSmode == 1) {
if ((_root.GameType == "EndlessType") || (_root.GameType == "TournamentType")) {
_root.Score = 0;
_root.CurPuzzleLevel = 1;
_root.NumDeadGems = 0;
_root.SetRandomLevel();
_root.TimerTypeTime = _root.CalculateTimerTypeMaxTime();
}
if (_root.GameType == "PuzzleType") {
_root.Score = _root.LastScore;
_root.LoadLevel(_root.CurPuzzleLevel);
_root.TimerTypeTime = _root.CalculateMaxNumPopitok();
}
_root.CurScore = _root.Score;
_root.IsGamePaused = false;
_root.PlayAreaOn();
_root.DialogMode = false;
}
if (_root.AYSmode == 2) {
_root.ShowMainMenu();
_root.PlayAreaOff();
_root.IsGamePaused = false;
}
_root.Paused1._visible = false;
}
Symbol 279 Button
on (release) {
if (_root.SoundOn) {
_root.SoundClickButton.start();
}
_root.WindowHelp1._visible = false;
_root.ShowHelp2();
}
Symbol 285 Button
on (release) {
if (_root.SoundOn) {
_root.SoundClickButton.start();
}
_root.WindowHelp1._visible = false;
_root.ShowMainMenu();
}
Symbol 291 Button
on (release) {
if (_root.SoundOn) {
_root.SoundClickButton.start();
}
_root.WindowHelp21._visible = false;
_root.ShowHelp3();
}
Symbol 298 Button
on (release) {
if (_root.SoundOn) {
_root.SoundClickButton.start();
}
_root.WindowHelp21._visible = false;
_root.ShowHelp1();
}
Symbol 300 Button
on (release) {
if (_root.SoundOn) {
_root.SoundClickButton.start();
}
_root.WindowHelp21._visible = false;
_root.ShowMainMenu();
}
Symbol 305 Button
on (release) {
if (_root.SoundOn) {
_root.SoundClickButton.start();
}
_root.WindowHelp31._visible = false;
_root.ShowHelp2();
}
Symbol 318 Button
on (release) {
if (_root.SoundOn) {
_root.SoundClickButton.start();
}
_root.WindowHelp31._visible = false;
_root.ShowMainMenu();
}
Symbol 345 Button
on (release) {
if (_root.SoundOn) {
_root.SoundClickButton.start();
}
_root.WindowMainMenu1._visible = false;
_root.ShowNewGameMenu();
}
Symbol 352 Button
on (release) {
if (_root.SoundOn) {
_root.SoundClickButton.start();
}
_root.WindowMainMenu1._visible = false;
_root.ShowHelp1();
}
Symbol 359 Button
on (release) {
if (_root.SoundOn) {
_root.SoundClickButton.start();
}
getURL (_root.LinkMoreGames, "_blank");
}
Symbol 366 Button
on (release) {
if (_root.SoundOn) {
_root.SoundClickButton.start();
}
_root.WindowMainMenu1._visible = false;
fscommand ("quit");
fscommand ("close");
}
Symbol 367 Button
on (release) {
if (_root.SoundOn) {
_root.SoundClickButton.start();
}
getURL (_root.LinkBuyNow, "_blank");
}