Frame 1
if (getBytesLoaded() >= getBytesTotal()) {
_quality = "BEST";
gotoAndStop (3);
stop();
} else {
ProgressBar._xscale = int((getBytesLoaded() / getBytesTotal()) * 100);
ProgressBar._x = 164 + (((ProgressBar._xscale / 100) * 312) / 2);
}
Frame 2
gotoAndPlay (1);
Frame 3
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 * BubbleSize));
}
function ConvNetPosToPosY(pNetY) {
return(OtstupY + (pNetY * BubbleSize));
}
function ConvPosToNetPosX(pPosX) {
return(Math.round((pPosX - OtstupX) / BubbleSize));
}
function ConvPosToNetPosY(pPosY) {
return(Math.round((pPosY - OtstupY) / BubbleSize));
}
function ConvPosToNetPosXplusOffset(pPosX, pNetY) {
var x1 = pPosX;
if ((pNetY - ((pNetY / 2) * 2)) == 0) {
x1 = x1 - (BubbleSize / 2);
}
return(ConvPosToNetPosX(x1));
}
function ConvNetPosToPosXplusOffset(pNetPosX, pNetY) {
var res = ConvNetPosToPosX(pNetPosX);
if ((Math.floor(pNetY / 2) * 2) != pNetY) {
res = res + (BubbleSize / 2);
}
return(res);
}
function ChangeOffsetIncValue() {
if (OffsetInc == 0) {
OffsetInc = 1;
} else {
OffsetInc = 0;
}
}
function GetRealNumBubbles() {
RealNumBubbles = 0;
var i = 1;
while (i <= NumBubbles) {
if (this["Bubble" + i]._visible) {
if (!this["Bubble" + i]._Falling) {
RealNumBubbles++;
}
}
i++;
}
}
function ClearBubbleArray() {
var i = 1;
while (i <= NumBubbles) {
this["Bubble" + i]._visible = false;
removeMovieClip("Bubble" + Index);
i++;
}
NumBubbles = 0;
}
function AddBubbleScore(pN) {
if (this["Bubble" + pN]._IsPoints) {
Score = Score + 200;
} else {
Score = Score + 40;
}
}
function DeleteBubble(pN) {
var objBubble = this["Bubble" + pN];
SetArrayNetValue(objBubble._NetPosX, objBubble._NetPosY, 9999);
objBubble._visible = false;
SetExplodeBubble(objBubble._x, objBubble._y);
DeleteFromArrayBubblesChangeColor(objBubble._Number);
if (objBubble._IsHighLight) {
ShowPathTimer = ShowPathTimer + 15000;
}
}
function SetBubbleByColor(pColor, pName, pLayer, pX, pY) {
removeMovieClip(pName);
if (pColor == 0) {
duplicateMovieClip (BubbleRed, pName, pLayer);
}
if (pColor == 1) {
duplicateMovieClip (BubbleGreen, pName, pLayer);
}
if (pColor == 2) {
duplicateMovieClip (BubbleBlue, pName, pLayer);
}
if (pColor == 3) {
duplicateMovieClip (BubbleYellow, pName, pLayer);
}
if (pColor == 4) {
duplicateMovieClip (BubblePurple, pName, pLayer);
}
if (pColor == 5) {
duplicateMovieClip (BubbleCyan, pName, pLayer);
}
if (pColor == 6) {
duplicateMovieClip (BubbleOrange, pName, pLayer);
}
if (pColor == 7) {
duplicateMovieClip (BubblePink, pName, pLayer);
}
if (pColor == 8) {
duplicateMovieClip (BubbleGrey, pName, pLayer);
}
this[pName]._x = pX;
this[pName]._y = pY;
this[pName]._Color = pColor;
}
function AddBubbleEx(pColor, pNetPosX, pNetPosY) {
var BubblePrefix = "Bubble";
var rand_value = random(20);
if ((rand_value >= 0) && (rand_value <= 13)) {
BubblePrefix = "Bubble";
}
if ((rand_value >= 14) && (rand_value <= 15)) {
BubblePrefix = "Bomb";
}
if ((rand_value >= 16) && (rand_value <= 17)) {
BubblePrefix = "Points";
}
if ((rand_value >= 18) && (rand_value <= 18)) {
BubblePrefix = "BubbleColor";
}
if ((rand_value >= 19) && (rand_value <= 19)) {
BubblePrefix = "Hs";
}
var Index = 9999;
var i = 1;
while (i <= NumBubbles) {
if (!this["Bubble" + i]._visible) {
Index = i;
}
i++;
}
if (Index == 9999) {
NumBubbles++;
Index = NumBubbles;
} else {
this["Bubble" + i]._visible = false;
removeMovieClip("Bubble" + Index);
}
if ((rand_value >= 18) && (rand_value <= 18)) {
duplicateMovieClip (BubblePrefix, "Bubble" + Index, Index);
if (pColor == 0) {
this["Bubble" + Index].GotoAndPlay(1);
}
if (pColor == 1) {
this["Bubble" + Index].GotoAndPlay(4);
}
if (pColor == 2) {
this["Bubble" + Index].GotoAndPlay(7);
}
if (pColor == 3) {
this["Bubble" + Index].GotoAndPlay(10);
}
if (pColor == 4) {
this["Bubble" + Index].GotoAndPlay(13);
}
if (pColor == 5) {
this["Bubble" + Index].GotoAndPlay(16);
}
if (pColor == 6) {
this["Bubble" + Index].GotoAndPlay(19);
}
if (pColor == 7) {
this["Bubble" + Index].GotoAndPlay(22);
}
if (pColor == 8) {
this["Bubble" + Index].GotoAndPlay(25);
}
AddToArrayBubblesChangeColor(Index);
}
if (((rand_value >= 0) && (rand_value <= 17)) || ((rand_value >= 19) && (rand_value <= 19))) {
if (pColor == 0) {
duplicateMovieClip (BubblePrefix + "Red", "Bubble" + Index, Index);
}
if (pColor == 1) {
duplicateMovieClip (BubblePrefix + "Green", "Bubble" + Index, Index);
}
if (pColor == 2) {
duplicateMovieClip (BubblePrefix + "Blue", "Bubble" + Index, Index);
}
if (pColor == 3) {
duplicateMovieClip (BubblePrefix + "Yellow", "Bubble" + Index, Index);
}
if (pColor == 4) {
duplicateMovieClip (BubblePrefix + "Purple", "Bubble" + Index, Index);
}
if (pColor == 5) {
duplicateMovieClip (BubblePrefix + "Cyan", "Bubble" + Index, Index);
}
if (pColor == 6) {
duplicateMovieClip (BubblePrefix + "Orange", "Bubble" + Index, Index);
}
if (pColor == 7) {
duplicateMovieClip (BubblePrefix + "Pink", "Bubble" + Index, Index);
}
if (pColor == 8) {
duplicateMovieClip (BubblePrefix + "Grey", "Bubble" + Index, Index);
}
}
var objBubble = this["Bubble" + Index];
objBubble._y = ConvNetPosToPosY(pNetPosY);
objBubble._x = ConvNetPosToPosXplusOffset(pNetPosX, pNetPosY);
objBubble._NetPosX = pNetPosX;
objBubble._NetPosY = pNetPosY;
objBubble._MoveX = 0;
objBubble._MoveY = 0;
objBubble._Color = pColor;
objBubble._Number = Index;
objBubble._Falling = false;
objBubble._IsBomb = false;
objBubble._IsPoints = false;
objBubble._IsHighLight = false;
if (BubblePrefix == "Bomb") {
objBubble._IsBomb = true;
}
if (BubblePrefix == "Points") {
objBubble._IsPoints = true;
}
if (BubblePrefix == "Hs") {
objBubble._IsHighLight = true;
}
SetArrayNetValue(objBubble._NetPosX, objBubble._NetPosY, objBubble._Number);
}
function AddBubble(pColor, pNetPosX, pNetPosY) {
var Index = 9999;
var i = 1;
while (i <= NumBubbles) {
if (!this["Bubble" + i]._visible) {
Index = i;
}
i++;
}
if (Index == 9999) {
NumBubbles++;
Index = NumBubbles;
} else {
this["Bubble" + i]._visible = false;
removeMovieClip("Bubble" + Index);
}
if (pColor == 0) {
duplicateMovieClip (BubbleRed, "Bubble" + Index, Index);
}
if (pColor == 1) {
duplicateMovieClip (BubbleGreen, "Bubble" + Index, Index);
}
if (pColor == 2) {
duplicateMovieClip (BubbleBlue, "Bubble" + Index, Index);
}
if (pColor == 3) {
duplicateMovieClip (BubbleYellow, "Bubble" + Index, Index);
}
if (pColor == 4) {
duplicateMovieClip (BubblePurple, "Bubble" + Index, Index);
}
if (pColor == 5) {
duplicateMovieClip (BubbleCyan, "Bubble" + Index, Index);
}
if (pColor == 6) {
duplicateMovieClip (BubbleOrange, "Bubble" + Index, Index);
}
if (pColor == 7) {
duplicateMovieClip (BubblePink, "Bubble" + Index, Index);
}
if (pColor == 8) {
duplicateMovieClip (BubbleGrey, "Bubble" + Index, Index);
}
if (pColor == 20) {
duplicateMovieClip (BombRed, "Bubble" + Index, Index);
}
if (pColor == 21) {
duplicateMovieClip (BombGreen, "Bubble" + Index, Index);
}
if (pColor == 22) {
duplicateMovieClip (BombBlue, "Bubble" + Index, Index);
}
if (pColor == 23) {
duplicateMovieClip (BombYellow, "Bubble" + Index, Index);
}
if (pColor == 24) {
duplicateMovieClip (BombPurple, "Bubble" + Index, Index);
}
if (pColor == 25) {
duplicateMovieClip (BombCyan, "Bubble" + Index, Index);
}
if (pColor == 26) {
duplicateMovieClip (BombOrange, "Bubble" + Index, Index);
}
if (pColor == 27) {
duplicateMovieClip (BombPink, "Bubble" + Index, Index);
}
if (pColor == 28) {
duplicateMovieClip (BombGrey, "Bubble" + Index, Index);
}
if (pColor == 40) {
duplicateMovieClip (PointsRed, "Bubble" + Index, Index);
}
if (pColor == 41) {
duplicateMovieClip (PointsGreen, "Bubble" + Index, Index);
}
if (pColor == 42) {
duplicateMovieClip (PointsBlue, "Bubble" + Index, Index);
}
if (pColor == 43) {
duplicateMovieClip (PointsYellow, "Bubble" + Index, Index);
}
if (pColor == 44) {
duplicateMovieClip (PointsPurple, "Bubble" + Index, Index);
}
if (pColor == 45) {
duplicateMovieClip (PointsCyan, "Bubble" + Index, Index);
}
if (pColor == 46) {
duplicateMovieClip (PointsOrange, "Bubble" + Index, Index);
}
if (pColor == 47) {
duplicateMovieClip (PointsPink, "Bubble" + Index, Index);
}
if (pColor == 48) {
duplicateMovieClip (PointsGrey, "Bubble" + Index, Index);
}
if (pColor == 80) {
duplicateMovieClip (HsRed, "Bubble" + Index, Index);
}
if (pColor == 81) {
duplicateMovieClip (HsGreen, "Bubble" + Index, Index);
}
if (pColor == 82) {
duplicateMovieClip (HsBlue, "Bubble" + Index, Index);
}
if (pColor == 83) {
duplicateMovieClip (HsYellow, "Bubble" + Index, Index);
}
if (pColor == 84) {
duplicateMovieClip (HsPurple, "Bubble" + Index, Index);
}
if (pColor == 85) {
duplicateMovieClip (HsCyan, "Bubble" + Index, Index);
}
if (pColor == 86) {
duplicateMovieClip (HsOrange, "Bubble" + Index, Index);
}
if (pColor == 87) {
duplicateMovieClip (HsPink, "Bubble" + Index, Index);
}
if (pColor == 88) {
duplicateMovieClip (HsGrey, "Bubble" + Index, Index);
}
if ((pColor >= 60) && (pColor <= 79)) {
duplicateMovieClip (BubbleColor, "Bubble" + Index, Index);
AddToArrayBubblesChangeColor(Index);
}
if (pColor == 60) {
this["Bubble" + Index].GotoAndPlay(1);
}
if (pColor == 61) {
this["Bubble" + Index].GotoAndPlay(4);
}
if (pColor == 62) {
this["Bubble" + Index].GotoAndPlay(7);
}
if (pColor == 63) {
this["Bubble" + Index].GotoAndPlay(10);
}
if (pColor == 64) {
this["Bubble" + Index].GotoAndPlay(13);
}
if (pColor == 65) {
this["Bubble" + Index].GotoAndPlay(16);
}
if (pColor == 66) {
this["Bubble" + Index].GotoAndPlay(19);
}
if (pColor == 67) {
this["Bubble" + Index].GotoAndPlay(22);
}
if (pColor == 68) {
this["Bubble" + Index].GotoAndPlay(25);
}
var objBubble = this["Bubble" + Index];
objBubble._y = ConvNetPosToPosY(pNetPosY);
objBubble._x = ConvNetPosToPosXplusOffset(pNetPosX, pNetPosY);
objBubble._NetPosX = pNetPosX;
objBubble._NetPosY = pNetPosY;
objBubble._MoveX = 0;
objBubble._MoveY = 0;
objBubble._Color = pColor;
objBubble._Number = Index;
objBubble._Falling = false;
objBubble._IsBomb = false;
objBubble._IsPoints = false;
objBubble._IsHighLight = false;
if ((pColor >= 20) && (pColor < 39)) {
objBubble._IsBomb = true;
}
if ((pColor >= 40) && (pColor < 59)) {
objBubble._IsPoints = true;
}
if ((pColor >= 80) && (pColor < 100)) {
objBubble._IsHighLight = true;
}
while (objBubble._Color >= 20) {
objBubble._Color = objBubble._Color - 20;
}
SetArrayNetValue(objBubble._NetPosX, objBubble._NetPosY, objBubble._Number);
return(Index);
}
function SetRandomLevel() {
NumGoodShoots = 0;
ArrayBubblesChangeColor.splice(0);
EmptyArrayNet();
ClearBubbleArray();
b = false;
var i = 1;
while (i <= FieldSizeX) {
var j = 1;
while (j <= 4) {
RandomColor = random(8);
AddBubbleEx(RandomColor, i, j);
j++;
}
i++;
}
GamePlayMode = "ModeWaitForClick";
MovingBubbleNumber = 9999;
RandomColor = random(8);
SetBubbleByColor(RandomColor, "MovingBubble", 300, (OtstupX + ((FieldSizeX / 2) * BubbleSize)) + (BubbleSize / 2), (OtstupY + (FieldSizeY * BubbleSize)) + (BubbleSize * 0.75));
NumPopitok = CalculateMaxNumPopitok();
ArrayFalling.splice(0);
InitExplodeBubbles();
SetNextBubble();
GetNumBubblesOnField();
if (TimeOrStepType == "StepType") {
UpdateTrubaStep();
}
if (TimeOrStepType == "TimeType") {
UpdateTrubaTime();
}
ShowPathTimer = 0;
}
function LoadLevel(pLevelNumber) {
NumGoodShoots = 0;
ArrayBubblesChangeColor.splice(0);
LevelNet = this["LevelNet" + pLevelNumber];
EmptyArrayNet();
ClearBubbleArray();
var i = 1;
while (i <= FieldSizeX) {
var j = 1;
while (j <= FieldSizeY) {
if (LevelNet[(i - 1) + ((j - 1) * FieldSizeX)] != 0) {
AddBubble(LevelNet[(i - 1) + ((j - 1) * FieldSizeX)] - 1, i, j);
}
j++;
}
i++;
}
GamePlayMode = "ModeWaitForClick";
MovingBubbleNumber = 9999;
NumPopitok = CalculateMaxNumPopitok();
ArrayFalling.splice(0);
InitExplodeBubbles();
GetNumBubblesOnField();
SetNextBubble();
SetBubbleByColor(this.NextBubble._Color, "MovingBubble", 300, (OtstupX + ((FieldSizeX / 2) * BubbleSize)) + (BubbleSize / 2), (OtstupY + (FieldSizeY * BubbleSize)) + (BubbleSize * 0.75));
SetNextBubble();
UpdateTrubaStep();
ShowPathTimer = 0;
if (!Registered) {
if (pLevelNumber > 6) {
ShowBuyNowWindow(3);
}
}
}
function OnMouseUp() {
if (DialogMode) {
return(undefined);
}
if (GamePlayMode != "ModeWaitForClick") {
return(undefined);
}
if (ArrayPath.length == 0) {
return(undefined);
}
var i = 1;
while (i < 50) {
this["PathBubble" + i]._visible = false;
i++;
}
this.PathBubbleHit._visible = false;
CurArrayPath = 0;
GamePlayMode = "ModeMoveBubble";
if (_root.SoundOn) {
SoundFire.start();
}
}
function UpdateMoving() {
this.MovingBubble._x = ArrayPath[CurArrayPath];
this.MovingBubble._y = ArrayPath[CurArrayPath + 1];
this.MovingBubble._NetPosY = ConvPosToNetPosY(this.MovingBubble._y);
this.MovingBubble._NetPosX = ConvPosToNetPosXplusOffset(this.MovingBubble._x, this.MovingBubble._NetPosY);
CurArrayPath = CurArrayPath + 2;
if (CurArrayPath > (ArrayPath.length + 1)) {
CheckToDeleteCloseBubbles(this.MovingBubble._NetPosX, this.MovingBubble._NetPosY);
RealDeleteCloseBubbles();
if ((ArrayProsmotren.length / 2) < 3) {
if (_root.SoundOn) {
SoundStopBubble.start();
}
}
GetRealNumBubbles();
wStartSvProcess();
if ((TimeOrStepType == "StepType") || (TimeOrStepType == "PuzzleType")) {
if (FailedPopitka) {
NumPopitok--;
}
}
if (NumPopitok == 0) {
SetModeMoveBublesOneLineDown();
NumPopitok = CalculateMaxNumPopitok();
} else {
GamePlayMode = "ModeWaitForClick";
}
if (this.MovingBubble._NetPosY == FieldSizeY) {
if (GetArrayNetValue(this.MovingBubble._NetPosX, this.MovingBubble._NetPosY) != 9999) {
ShowGameOver();
return(undefined);
}
}
SetBubbleByColor(this.NextBubble._Color, "MovingBubble", 300, (OtstupX + ((FieldSizeX / 2) * BubbleSize)) + (BubbleSize / 2), (OtstupY + (FieldSizeY * BubbleSize)) + (BubbleSize * 0.75));
OldNumAvailableColors = AvailableColors.length;
SetNextBubble();
ArrayPath.splice(0);
GetNumBubblesOnField();
UpdateTrubaStep();
} else if (CurArrayPath > (ArrayPath.length - 1)) {
this.MovingBubble._MoveX = 0;
this.MovingBubble._MoveY = 0;
ind = AddBubble(this.MovingBubble._Color, this.MovingBubble._NetPosX, this.MovingBubble._NetPosY);
this["Bubble" + ind].BubbleGrown.GotoAndStop(7);
}
}
function CalculateMovePath() {
var objMovingBubble = this.MovingBubble;
var SavedPosX = objMovingBubble._x;
var SavedPosY = objMovingBubble._y;
var minDistance = 9999;
var minBubbleIndex = 9999;
var curDistance;
var curBubbleIndex;
var minEmptyDistance = 9999;
var curEmptyDistance;
var minX = 12;
var minY = 12;
ArrayPath.splice(0);
while ((minDistance > (BubbleSize - 2)) && (objMovingBubble._y > (OtstupY + BubbleSize))) {
objMovingBubble._x = objMovingBubble._x + objMovingBubble._MoveX;
objMovingBubble._y = objMovingBubble._y + objMovingBubble._MoveY;
objMovingBubble._NetPosY = ConvPosToNetPosY(objMovingBubble._y);
objMovingBubble._NetPosX = ConvPosToNetPosXplusOffset(objMovingBubble._x, objMovingBubble._NetPosY);
if (objMovingBubble._x < (OtstupX + (BubbleSize * 1))) {
objMovingBubble._x = OtstupX + (BubbleSize * 1);
objMovingBubble._MoveX = objMovingBubble._MoveX * -1;
} else if (objMovingBubble._x > ((OtstupX + (FieldSizeX * BubbleSize)) + (BubbleSize / 2))) {
objMovingBubble._x = (OtstupX + (FieldSizeX * BubbleSize)) + (BubbleSize / 2);
objMovingBubble._MoveX = objMovingBubble._MoveX * -1;
}
ArrayPath.push(objMovingBubble._x);
ArrayPath.push(objMovingBubble._y);
StartNetX = objMovingBubble._NetPosX - 1;
StartNetY = objMovingBubble._NetPosY - 1;
FinishNetX = objMovingBubble._NetPosX + 1;
FinishNetY = objMovingBubble._NetPosY + 1;
if (StartNetX < 1) {
StartNetX = 1;
} else if (FinishNetX > FieldSizeX) {
FinishNetX = FieldSizeX;
}
if (StartNetY < 1) {
StartNetY = 1;
} else if (FinishNetY > FieldSizeY) {
FinishNetY = FieldSizeY;
}
var nX = StartNetX;
while (nX <= FinishNetX) {
var nY = StartNetY;
while (nY <= FinishNetY) {
curBubbleIndex = GetArrayNetValue(nX, nY);
if (curBubbleIndex != 9999) {
curDistance = CalculateLength(objMovingBubble._x, objMovingBubble._y, this["Bubble" + curBubbleIndex]._x, this["Bubble" + curBubbleIndex]._y);
if (curDistance < minDistance) {
minDistance = curDistance;
minBubbleIndex = curBubbleIndex;
}
}
nY++;
}
nX++;
}
}
var minEmptyDistance = 9999;
var curEmptyDistance;
var minX = 12;
var minY = 12;
var nX = StartNetX;
while (nX <= FinishNetX) {
var nY = StartNetY;
while (nY <= FinishNetY) {
if (GetArrayNetValue(nX, nY) == 9999) {
var y1 = ConvNetPosToPosY(nY);
var x1 = ConvNetPosToPosXplusOffset(nX, nY);
curEmptyDistance = CalculateLength(objMovingBubble._x, objMovingBubble._y, x1, y1);
if (curEmptyDistance < minEmptyDistance) {
minEmptyDistance = curEmptyDistance;
minX = nX;
minY = nY;
}
}
nY++;
}
nX++;
}
var y1 = ConvNetPosToPosY(minY);
var x1 = ConvNetPosToPosXplusOffset(minX, minY);
ArrayPath.push(x1);
ArrayPath.push(y1);
var i = 0;
while (i < 2) {
SmoothArrayPath(1);
SmoothArrayPath(3);
SmoothArrayPath(5);
i++;
}
objMovingBubble._x = SavedPosX;
objMovingBubble._y = SavedPosY;
}
function SmoothArrayPath(pO) {
if (ArrayPath.length < (pO + 5)) {
return(undefined);
}
ArrayPath[(ArrayPath.length - pO) - 3] = (ArrayPath[(ArrayPath.length - pO) - 1] + ArrayPath[(ArrayPath.length - pO) - 5]) / 2;
ArrayPath[(ArrayPath.length - pO) - 2] = (ArrayPath[ArrayPath.length - pO] + ArrayPath[(ArrayPath.length - pO) - 4]) / 2;
}
function DrawPath() {
if (ShowPathTimer <= 0) {
return(undefined);
}
NumPathBubles = 0;
if (ArrayPath.length < 3) {
return(undefined);
}
var i = 2;
while (i < (ArrayPath.length - 1)) {
var objBubble = this["PathBubble" + (i / 2)];
NumPathBubles++;
objBubble._x = ArrayPath[i];
objBubble._y = ArrayPath[i + 1];
objBubble._visible = true;
i = i + 2;
}
this.PathBubbleHit._x = ArrayPath[i - 2];
this.PathBubbleHit._y = ArrayPath[(i + 1) - 2];
this.PathBubbleHit._visible = true;
this["PathBubble" + NumPathBubles]._visible = false;
this[("PathBubble" + NumPathBubles) - 1]._visible = false;
}
function UpdateArrayFalling() {
SomebodyFalling = false;
var i = 0;
while (i < ArrayFalling.length) {
SomebodyFalling = true;
var objFallingBubble = this["Bubble" + ArrayFalling[i]];
if (objFallingBubble._alpha > 5) {
objFallingBubble._alpha = objFallingBubble._alpha - 5;
}
objFallingBubble._y = objFallingBubble._y + 10;
if (objFallingBubble._alpha <= 5) {
ArrayFalling.splice(i, 1);
i--;
objFallingBubble._visible = false;
DeleteFromArrayBubblesChangeColor(objFallingBubble._Number);
}
i++;
}
}
function SetModeMoveBublesOneLineDown() {
if (_root.SoundOn) {
SoundLineDown.start();
}
ArrayPath.splice(0);
EmptyArrayNet();
GamePlayMode = "ModeMoveBublesOneLineDown";
var i = 1;
while (i <= NumBubbles) {
var objBubble = this["Bubble" + i];
if (objBubble._visible) {
objBubble._NetPosY++;
SetArrayNetValue(objBubble._NetPosX, objBubble._NetPosY, i);
}
i++;
}
ChangeOffsetIncValue();
}
function CheckBombExplode() {
var i = 0;
while (i < BombIndex.length) {
var StartX = (this["Bubble" + BombIndex[i]]._NetPosX - BombExplodeRadius);
var StartY = (this["Bubble" + BombIndex[i]]._NetPosY - BombExplodeRadius);
var EndX = (this["Bubble" + BombIndex[i]]._NetPosX + BombExplodeRadius);
var EndY = (this["Bubble" + BombIndex[i]]._NetPosY + BombExplodeRadius);
if (StartX < 1) {
StartX = 1;
}
if (StartY < 1) {
StartY = 1;
}
if (EndX > FieldSizeX) {
EndX = FieldSizeX;
}
if (EndY > FieldSizeY) {
EndY = FieldSizeY;
}
var j1 = StartX;
while (j1 <= EndX) {
var j2 = StartY;
while (j2 <= EndY) {
if (GetArrayNetValue(j1, j2) != 9999) {
DeleteBubble(GetArrayNetValue(j1, j2));
}
j2++;
}
j1++;
}
AddBubbleScore(GetArrayNetValue(j1, j2));
if (_root.SoundOn) {
SoundBombExplode.start();
}
i++;
}
if (BombIndex.length > 0) {
GetRealNumBubbles();
wStartSvProcess();
BombIndex.splice(0);
}
}
function SetNextBubble() {
if ((TimeOrStepType == "TimeType") || (TimeOrStepType == "StepType")) {
var RandomColor = random(8);
SetBubbleByColor(RandomColor, "NextBubble", 301, 175, 265);
}
if (TimeOrStepType == "PuzzleType") {
CalculateArrayAvailableColors();
if (AvailableColors.length) {
SetBubbleByColor(GetRandomAvailableColor(), "NextBubble", 301, 175, 265);
}
}
}
function CalculateArrayAvailableColors() {
AvailableColorsIndex.splice(0);
var i = 0;
while (i < MaxNumColors) {
AvailableColorsIndex.push(9999);
i++;
}
var i1 = 1;
while (i1 <= FieldSizeX) {
var i2 = 1;
while (i2 <= FieldSizeY) {
var j = GetArrayNetValue(i1, i2);
if (j != 9999) {
if (this["Bubble" + j]._Color != 8) {
AvailableColorsIndex[this["Bubble" + j]._Color] = 1;
}
}
i2++;
}
i1++;
}
AvailableColors.splice(0);
i = 0;
while (i < MaxNumColors) {
if (AvailableColorsIndex[i] == 1) {
AvailableColors.push(i);
}
i++;
}
}
function GetRandomAvailableColor() {
return(AvailableColors[random(AvailableColors.length)]);
}
function CalculateTimerTypeMaxTime() {
TimerTypeMaxTime = 25000;
if (HardLevel == 1) {
TimerTypeMaxTime = 25000;
}
if (HardLevel == 2) {
TimerTypeMaxTime = 20000;
}
if (HardLevel == 3) {
TimerTypeMaxTime = 15000;
}
return(TimerTypeMaxTime);
}
function CalculateMaxNumPopitok() {
MaxNumPopitok = 8;
if (HardLevel == 1) {
MaxNumPopitok = 8;
}
if (HardLevel == 2) {
MaxNumPopitok = 7;
}
if (HardLevel == 3) {
MaxNumPopitok = 6;
}
return(MaxNumPopitok);
}
function GetNumBubblesOnField() {
NumBubblesOnField = 0;
var i1 = 1;
while (i1 <= FieldSizeX) {
var i2 = 1;
while (i2 <= FieldSizeY) {
var j = GetArrayNetValue(i1, i2);
if (j != 9999) {
if (this["Bubble" + j]._Color != 8) {
NumBubblesOnField++;
}
}
i2++;
}
i1++;
}
return(NumBubblesOnField);
}
function UpdateTimer() {
delete myDate;
myDate = new Date();
CurrentTime = myDate.getTime();
ElapsedTime = CurrentTime - LastTime;
LastTime = CurrentTime;
if (!DialogMode) {
if (!Registered) {
Time = Time - ElapsedTime;
}
TimerTypeTime = TimerTypeTime - ElapsedTime;
if (ShowPathTimer > 0) {
ShowPathTimer = ShowPathTimer - ElapsedTime;
}
}
if (TimeOrStepType == "TimeType") {
if (GamePlayMode == "ModeWaitForClick") {
if (TimerTypeTime <= 0) {
TimerTypeTime = CalculateTimerTypeMaxTime();
SetModeMoveBublesOneLineDown();
}
}
}
if (Time <= 0) {
CalculateMaxNagTime();
}
}
function CalculateMaxNagTime() {
if (TimeOrStepType == "PuzzleType") {
MaxNagTime = 50000 - ((CurPuzzleLevel - 1) * 1000);
if (MaxNagTime < 2000) {
MaxNagTime = 2000;
}
Time = MaxNagTime;
} else {
MaxNagTime = MaxNagTime - 500;
if (MaxNagTime < 10000) {
MaxNagTime = 10000;
}
Time = MaxNagTime;
}
}
function UpdateGame() {
CurScore = CurScore + 20;
if (CurScore > Score) {
CurScore = Score;
}
UpdateScoreText();
UpdateBonusText();
UpdateChangeColorBubbles();
if (TimeOrStepType == "PuzzleType") {
if (NumBubblesOnField == 0) {
var i = 1;
while (i <= MaxNumExplodes) {
if (this["ExplodeBubble" + i]._visible) {
break;
}
i++;
}
if (i == (MaxNumExplodes + 1)) {
ShowWindowLevelComplete();
return(undefined);
}
}
}
UpdateTrubaTime();
UpdateArrayFalling();
if (GamePlayMode == "ModeWaitForClick") {
PathCounter--;
if (((Math.abs(Old_mx - _root._xmouse) > 5) || (Math.abs(Old_my - _root._ymouse) > 5)) || (ArrayPath.length == 0)) {
if (PathCounter <= 0) {
var objBubble = this.MovingBubble;
Old_mx = _root._xmouse;
Old_my = _root._ymouse;
ArrayPath.splice(0);
var i = 1;
while (i <= NumPathBubles) {
this["PathBubble" + i]._visible = false;
i++;
}
this.PathBubbleHit._visible = false;
objBubble._MoveX = _root._xmouse - objBubble._x;
objBubble._MoveY = _root._ymouse - objBubble._y;
var dist = CalculateLength(0, 0, objBubble._MoveX, objBubble._MoveY);
objBubble._MoveX = (objBubble._MoveX / dist) * 30;
objBubble._MoveY = (objBubble._MoveY / dist) * 30;
if (objBubble._MoveY < -5) {
if (!SomebodyFalling) {
if ((((_root._xmouse > (OtstupX + (BubbleSize / 2))) && (_root._ymouse > (OtstupY + (BubbleSize / 2)))) && (_root._xmouse < (OtstupX + ((FieldSizeX + 1) * BubbleSize)))) && (_root._ymouse < (OtstupY + ((FieldSizeY + 1) * BubbleSize)))) {
CalculateMovePath();
DrawPath();
} else {
ArrayPath.splice(0);
}
}
}
PathCounter = 1;
}
}
}
if (GamePlayMode == "ModeMoveBubble") {
UpdateMoving();
}
var finish_line_down = false;
var mustPosY = 9999;
var mustPosX = 9999;
var dirX;
var dirY;
var dist;
if (GamePlayMode == "ModeMoveBublesOneLineDown") {
var i = 1;
while (i <= NumBubbles) {
var objBubble = this["Bubble" + i];
if (objBubble._visible) {
if (objBubble._Falling == false) {
mustPosY = ConvNetPosToPosY(objBubble._NetPosY);
mustPosX = ConvNetPosToPosXplusOffset(objBubble._NetPosX, objBubble._NetPosY);
if ((objBubble._x != mustPosX) || (objBubble._y != mustPosY)) {
finish_line_down = true;
dirX = mustPosX - objBubble._x;
dirY = mustPosY - objBubble._y;
dist = CalculateLength(0, 0, dirX, dirY);
dirX = (dirX / dist) * 7;
dirY = (dirY / dist) * 7;
objBubble._x = objBubble._x + dirX;
objBubble._y = objBubble._y + dirY;
if (dist < 7) {
objBubble._x = mustPosX;
objBubble._y = mustPosY;
}
}
}
}
i++;
}
if (finish_line_down == false) {
GamePlayMode = "ModeWaitForClick";
var i = 1;
while (i <= FieldSizeX) {
if ((TimeOrStepType == "TimeType") || (TimeOrStepType == "StepType")) {
RandomColor = random(8);
AddBubbleEx(RandomColor, i, 1);
}
if (TimeOrStepType == "PuzzleType") {
AddBubble(8, i, 1);
}
i++;
}
GetRealNumBubbles();
wStartSvProcess();
var i = 1;
while (i <= NumBubbles) {
if (this["Bubble" + i]._visible) {
if (this["Bubble" + i]._NetPosY == FieldSizeY) {
ShowGameOver();
return(undefined);
}
}
i++;
}
}
}
if (EnableEscSkipLevel == 1) {
if (Key.isDown(27) || (Key.isDown(39))) {
CurPuzzleLevel++;
if (CurPuzzleLevel > TotalNumLevels) {
CurPuzzleLevel = 1;
}
LoadLevel(CurPuzzleLevel);
TimerTypeTime = CalculateMaxNumPopitok();
return(undefined);
}
}
}
function ClearArrayPossibleColors() {
while (ArrayPossibleColors.length > 0) {
ArrayPossibleColors.pop();
}
}
function IsInArrayPossibleColors(pColor) {
var i = 0;
while (i < ArrayPossibleColors.length) {
if (ArrayPossibleColors[i] == pColor) {
return(true);
}
i++;
}
return(false);
}
function CalculateArrayPossibleColors() {
ClearArrayPossibleColors();
var i = 1;
while (i <= FieldSizeX) {
var j = 1;
while (j <= FieldSizeY) {
if (GetArrayNetValue(i, j) != 9999) {
if (!IsInArrayPossibleColors(this["Bubble" + GetArrayNetValue(i, j)]._Color)) {
ArrayPossibleColors.push(this["Bubble" + GetArrayNetValue(i, j)]._Color);
}
}
j++;
}
i++;
}
return(ArrayPossibleColors.length);
}
function ClearArrayPutBubbles() {
while (ArrayPutBubbles.length > 0) {
ArrayPutBubbles.pop();
}
}
function CalculateArrayPutBubbles(pNumBubbles) {
ClearArrayPutBubbles();
var i = 1;
while (i <= FieldSizeX) {
var j = 1;
while (j <= FieldSizeY) {
if (GetArrayNetValue(i, j) == 9999) {
ArrayPutBubbles.push(i);
ArrayPutBubbles.push(j);
}
j++;
}
i++;
}
return(ArrayPutBubbles.length);
}
function AddBubblesToFreeSquares(pNumBubbles) {
var posX;
var posY;
var RandomValue;
CalculateArrayPutBubbles(pNumBubbles);
if (ArrayPutBubbles.length < pNumBubbles) {
return(false);
}
var i = 0;
while (i < pNumBubbles) {
do {
RandomValue = random(ArrayPutBubbles.length / 2);
posX = ArrayPutBubbles[RandomValue * 2];
posY = ArrayPutBubbles[(RandomValue * 2) + 1];
} while (GetArrayNetValue(posX, posY) != 9999);
RandomColor = ArrayPossibleColors[random(ArrayPossibleColors.length)];
AddBubble(RandomColor, posX, posY);
i++;
}
return(true);
}
function DeleteFromArrayBubblesChangeColor(pIndex) {
var i = 0;
while (i < ArrayBubblesChangeColor.length) {
if (ArrayBubblesChangeColor[i] == this["Bubble" + pIndex]._Number) {
ArrayBubblesChangeColor.splice(i, 1);
i--;
}
i++;
}
}
function AddToArrayBubblesChangeColor(pIndex) {
this["Bubble" + pIndex]._ChangeColorMaxTime = 4000 + random(3000);
this["Bubble" + pIndex]._ChangeColorTimer = this["Bubble" + pIndex]._ChangeColorMaxTime;
ArrayBubblesChangeColor.push(pIndex);
}
function UpdateChangeColorBubbles() {
var i = 0;
while (i < ArrayBubblesChangeColor.length) {
var ObjBubble = this["Bubble" + ArrayBubblesChangeColor[i]];
ObjBubble._ChangeColorTimer = ObjBubble._ChangeColorTimer - ElapsedTime;
if (ObjBubble._ChangeColorTimer < 0) {
ObjBubble._ChangeColorTimer = ObjBubble._ChangeColorMaxTime;
var RandomColor = random(8);
if (TimeOrStepType == "PuzzleType") {
CalculateArrayAvailableColors();
RandomColor = GetRandomAvailableColor();
}
ObjBubble.GotoAndStop(1 + (RandomColor * 3));
ObjBubble._Color = RandomColor;
}
i++;
}
}
function UpdateTrubaStep() {
if ((TimeOrStepType == "StepType") || (TimeOrStepType == "PuzzleType")) {
this.ScaleBar._xscale = (NumPopitok / MaxNumPopitok) * 100;
this.ScaleBar._x = 212 + (((NumPopitok / MaxNumPopitok) * 400) / 2);
}
}
function UpdateTrubaTime() {
if (TimeOrStepType == "TimeType") {
this.ScaleBar._xscale = (Math.round(TimerTypeTime / 100) / Math.round(TimerTypeMaxTime / 100)) * 100;
this.ScaleBar._x = 212 + (((Math.round(TimerTypeTime / 100) / Math.round(TimerTypeMaxTime / 100)) * 400) / 2);
}
}
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 CheckToDeleteCloseBubbles(pStartX, pStartY) {
ArrayPomechen.splice(0);
ArrayProsmotren.splice(0);
AddToPomechenArray(pStartX, pStartY);
while (ArrayPomechen.length > 0) {
ProsmotretLast();
}
}
function RealDeleteCloseBubbles() {
FailedPopitka = true;
if (ArrayProsmotren.length < 6) {
NumGoodShoots = 0;
return(undefined);
}
CheckScoreSet();
var i = 0;
while (i < (ArrayProsmotren.length / 2)) {
var index = GetArrayNetValue(ArrayProsmotren[i * 2], ArrayProsmotren[(i * 2) + 1]);
DeleteBubble(index);
FailedPopitka = false;
if (this["Bubble" + index]._IsBomb) {
BombIndex.push(index);
}
AddBubbleScore(index);
i++;
}
NumGoodShoots++;
CheckBonusSet();
CheckBombExplode();
}
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["Bubble" + 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["Bubble" + 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["Bubble" + 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["Bubble" + 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["Bubble" + SosedIndex]._Color == StartColor) {
if (IsProsmotrenOrPomechen(StartX, StartY + 1) == 0) {
AddToPomechenArray(StartX, StartY + 1);
}
}
}
}
if ((Math.floor(StartY / 2) * 2) != StartY) {
off_x = 1;
} else {
off_x = -1;
}
if ((StartX + off_x) >= 1) {
if ((StartX + off_x) <= FieldSizeX) {
if (StartY > 1) {
SosedIndex = GetArrayNetValue(StartX + off_x, StartY - 1);
if (SosedIndex != 9999) {
if (this["Bubble" + SosedIndex]._Color == StartColor) {
if (IsProsmotrenOrPomechen(StartX + off_x, StartY - 1) == 0) {
AddToPomechenArray(StartX + off_x, StartY - 1);
}
}
}
}
}
}
if ((StartX + off_x) >= 1) {
if ((StartX + off_x) <= FieldSizeX) {
if (StartY < FieldSizeY) {
SosedIndex = GetArrayNetValue(StartX + off_x, StartY + 1);
if (SosedIndex != 9999) {
if (this["Bubble" + SosedIndex]._Color == StartColor) {
if (IsProsmotrenOrPomechen(StartX + off_x, StartY + 1) == 0) {
AddToPomechenArray(StartX + off_x, StartY + 1);
}
}
}
}
}
}
}
function wInitArrays() {
CurrentGroupNumber = 1;
ArPomechen.splice(0);
ArProsmotren.splice(0);
ArPomechenIndex.splice(0);
ArProsmotrenIndex.splice(0);
var i = 0;
while (i <= NumBubbles) {
ArPomechenIndex.push(9999);
i++;
}
var i = 0;
while (i <= NumBubbles) {
ArProsmotrenIndex.push(9999);
i++;
}
}
function wAddToPomechenAr(pBubble) {
ArPomechen.push(pBubble);
ArPomechenIndex[pBubble] = CurrentGroupNumber;
}
function wAddToProsmotrenAr(pBubble) {
ArProsmotren.push(pBubble);
ArProsmotrenIndex[pBubble] = CurrentGroupNumber;
}
function wProsmotretLast() {
var off_x;
var off_y;
var SosedIndex;
var CurBubble = this["Bubble" + ArPomechen[ArPomechen.length - 1]];
wAddToProsmotrenAr(ArPomechen[ArPomechen.length - 1]);
ArPomechen.pop();
SosedIndex = 9999;
if (CurBubble._NetPosX > 1) {
SosedIndex = GetArrayNetValue(CurBubble._NetPosX - 1, CurBubble._NetPosY);
}
if (SosedIndex != 9999) {
if ((ArPomechenIndex[this["Bubble" + SosedIndex]._Number] == 9999) && (ArProsmotrenIndex[this["Bubble" + SosedIndex]._Number] == 9999)) {
wAddToPomechenAr(this["Bubble" + SosedIndex]._Number);
}
}
SosedIndex = 9999;
if (CurBubble._NetPosX < FieldSizeX) {
SosedIndex = GetArrayNetValue(CurBubble._NetPosX + 1, CurBubble._NetPosY);
}
if (SosedIndex != 9999) {
if ((ArPomechenIndex[this["Bubble" + SosedIndex]._Number] == 9999) && (ArProsmotrenIndex[this["Bubble" + SosedIndex]._Number] == 9999)) {
wAddToPomechenAr(this["Bubble" + SosedIndex]._Number);
}
}
SosedIndex = 9999;
if (CurBubble._NetPosY > 1) {
SosedIndex = GetArrayNetValue(CurBubble._NetPosX, CurBubble._NetPosY - 1);
}
if (SosedIndex != 9999) {
if ((ArPomechenIndex[this["Bubble" + SosedIndex]._Number] == 9999) && (ArProsmotrenIndex[this["Bubble" + SosedIndex]._Number] == 9999)) {
wAddToPomechenAr(this["Bubble" + SosedIndex]._Number);
}
}
SosedIndex = 9999;
if (CurBubble._NetPosY < FieldSizeY) {
SosedIndex = GetArrayNetValue(CurBubble._NetPosX, CurBubble._NetPosY + 1);
}
if (SosedIndex != 9999) {
if ((ArPomechenIndex[this["Bubble" + SosedIndex]._Number] == 9999) && (ArProsmotrenIndex[this["Bubble" + SosedIndex]._Number] == 9999)) {
wAddToPomechenAr(this["Bubble" + SosedIndex]._Number);
}
}
if ((Math.floor(CurBubble._NetPosY / 2) * 2) != CurBubble._NetPosY) {
off_x = 1;
} else {
off_x = -1;
}
if ((CurBubble._NetPosX + off_x) >= 1) {
if ((CurBubble._NetPosX + off_x) <= FieldSizeX) {
if (CurBubble._NetPosY > 1) {
SosedIndex = GetArrayNetValue(CurBubble._NetPosX + off_x, CurBubble._NetPosY - 1);
if (SosedIndex != 9999) {
if ((ArPomechenIndex[this["Bubble" + SosedIndex]._Number] == 9999) && (ArProsmotrenIndex[this["Bubble" + SosedIndex]._Number] == 9999)) {
wAddToPomechenAr(this["Bubble" + SosedIndex]._Number);
}
}
}
}
}
if ((CurBubble._NetPosX + off_x) >= 1) {
if ((CurBubble._NetPosX + off_x) <= FieldSizeX) {
if (CurBubble._NetPosY < FieldSizeY) {
SosedIndex = GetArrayNetValue(CurBubble._NetPosX + off_x, CurBubble._NetPosY + 1);
if (SosedIndex != 9999) {
if ((ArPomechenIndex[this["Bubble" + SosedIndex]._Number] == 9999) && (ArProsmotrenIndex[this["Bubble" + SosedIndex]._Number] == 9999)) {
wAddToPomechenAr(this["Bubble" + SosedIndex]._Number);
}
}
}
}
}
}
function wCheckCurGroupToDelete() {
var res = 1;
var i = 1;
while (i <= NumBubbles) {
if (ArProsmotrenIndex[i] == CurrentGroupNumber) {
if (this["Bubble" + i]._NetPosY == 1) {
res = 9999;
}
}
i++;
}
return(res);
}
function wDeleteCurGroup() {
var i = 1;
while (i <= NumBubbles) {
if (ArProsmotrenIndex[i] == CurrentGroupNumber) {
ArrayFalling.push(i);
this["Bubble" + i]._Falling = true;
SetArrayNetValue(this["Bubble" + i]._NetPosX, this["Bubble" + i]._NetPosY, 9999);
AddBubbleScore(i);
}
i++;
}
}
function wFindNextGroup() {
var i = 1;
while (i <= NumBubbles) {
if (ArProsmotrenIndex[i] == 9999) {
if (this["Bubble" + i]._visible) {
wAddToPomechenAr(i);
return(undefined);
}
}
i++;
}
}
function wCheckCurGroup() {
while (ArPomechen.length > 0) {
wProsmotretLast();
}
}
function wCheckGroups() {
startSound = false;
while (ArProsmotren.length < RealNumBubbles) {
wFindNextGroup();
wCheckCurGroup();
if (wCheckCurGroupToDelete() != 9999) {
startSound = true;
wDeleteCurGroup();
}
CurrentGroupNumber++;
}
if (startSound) {
if (_root.SoundOn) {
SoundOtpal.start();
}
}
}
function wStartSvProcess() {
wInitArrays();
wFindNextGroup();
wCheckCurGroup();
if (wCheckCurGroupToDelete() != 9999) {
wDeleteCurGroup();
}
CurrentGroupNumber++;
wCheckGroups();
}
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 = "This option is available only in the full offline version";
}
if (BuyNowType == 2) {
_root.WindowBuyMe1.Text1.text = "Are you tired with this nag-screen ? Download offline version !";
}
if (BuyNowType == 3) {
_root.WindowBuyMe1.Text1.text = "Do you want to play more levels ? Register Now !";
}
_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 PlayAreaOn() {
_root.ButtonMenu._visible = true;
_root.Sound_radio._visible = true;
}
function PlayAreaOff() {
_root.ButtonMenu._visible = false;
_root.Sound_radio._visible = false;
}
function InitExplodeBubbles() {
var i = 1;
while (i <= MaxNumExplodes) {
removeMovieClip("ExplodeBubble" + i);
duplicateMovieClip (BubbleExplode, "ExplodeBubble" + i, 700 + i);
this["ExplodeBubble" + i]._visible = false;
i++;
}
}
function SetExplodeBubble(pPosX, pPosY) {
var i = 1;
while (i <= MaxNumExplodes) {
if (!this["ExplodeBubble" + i]._visible) {
this["ExplodeBubble" + i]._visible = true;
this["ExplodeBubble" + i].GotoAndPlay(1);
this["ExplodeBubble" + i]._x = pPosX;
this["ExplodeBubble" + i]._y = pPosY;
return(undefined);
}
i++;
}
}
function UpdateBonusText() {
if (BonusTextTimer > 0) {
BonusTextTimer = BonusTextTimer - 2;
BonusText1._visible = true;
BonusText2._visible = true;
BonusText3._visible = true;
BonusText4._visible = true;
if ((BonusTextTimer >= 80) && (BonusTextTimer <= 100)) {
BonusText1._Alpha = 100 - ((BonusTextTimer - 80) * 5);
}
if ((BonusTextTimer >= 30) && (BonusTextTimer <= 80)) {
BonusText1._Alpha = 100;
}
if ((BonusTextTimer >= 0) && (BonusTextTimer <= 30)) {
BonusText1._Alpha = 10 + (BonusTextTimer * 3);
}
BonusText2._Alpha = BonusText1._Alpha;
BonusText3._Alpha = BonusText1._Alpha;
BonusText4._Alpha = BonusText1._Alpha;
BonusText1._xscale = BonusText1._Alpha;
BonusText1._yscale = BonusText1._Alpha;
BonusText2._xscale = BonusText1._xscale;
BonusText3._xscale = BonusText1._xscale;
BonusText4._xscale = BonusText1._xscale;
BonusText2._yscale = BonusText1._yscale;
BonusText3._yscale = BonusText1._yscale;
BonusText4._yscale = BonusText1._yscale;
} else {
BonusText1._visible = false;
BonusText2._visible = false;
BonusText3._visible = false;
BonusText4._visible = false;
}
}
function SetBonustText(pText, pTextBonus) {
BonusTextTimer = 100;
BonusText1.text = pText;
BonusText2.text = pText;
BonusText3.text = pTextBonus;
BonusText4.text = pTextBonus;
}
function CheckBonusSet() {
if ((ArrayProsmotren.length / 2) >= 3) {
if (_root.SoundOn) {
SoundExplode.start();
}
}
if (NumGoodShoots == 2) {
SetBonustText("+500", "COMBO");
Score = Score + 500;
}
if (NumGoodShoots == 3) {
SetBonustText("+1000", "DOUBLE COMBO");
Score = Score + 1000;
}
if (NumGoodShoots == 4) {
SetBonustText("+1500", "TRIPLE COMBO");
Score = Score + 1500;
}
if (NumGoodShoots == 5) {
SetBonustText("+2000", "QUAD COMBO");
Score = Score + 2000;
}
if (NumGoodShoots == 6) {
SetBonustText("+2500", "QUINARY COMBO");
Score = Score + 2500;
}
if (NumGoodShoots > 6) {
SetBonustText("+3000", "SUPER COMBO");
Score = Score + 3000;
}
if ((ArrayProsmotren.length / 2) > 3) {
SetBonustText("+500", "AMAZING");
Score = Score + 500;
}
if ((ArrayProsmotren.length / 2) > 4) {
SetBonustText("+1000", "SUPER BONUS");
Score = Score + 1000;
}
if (OldNumAvailableColors != 0) {
if (OldNumAvailableColors > AvailableColors.length) {
SetBonustText("+500", "COLOR OUT");
Score = Score + 1000;
}
}
}
function UpdateScoreText() {
if (ScoreTextTimer > 0) {
ScoreTextTimer = ScoreTextTimer - 3;
ScoreText1._visible = true;
ScoreText1._x = ScoreText1._x + ScoreTextDir;
if (ScoreTextDir > 0) {
if (ScoreText1._x > (ScoreTextX + 3)) {
ScoreTextDir = ScoreTextDir * -1;
}
}
if (ScoreTextDir < 0) {
if (ScoreText1._x < (ScoreTextX - 3)) {
ScoreTextDir = ScoreTextDir * -1;
}
}
ScoreText1._y = ScoreText1._y - 4;
if (ScoreTextTimer < 50) {
ScoreText1._alpha = ScoreText1._alpha - 6;
}
if (ScoreText1._alpha < 0) {
ScoreText1._alpha = 0;
}
} else {
ScoreText1._visible = false;
}
ScoreText2._visible = ScoreText1._visible;
ScoreText2._alpha = ScoreText1._alpha;
ScoreText2._x = ScoreText1._x + 1;
ScoreText2._y = ScoreText1._y + 1;
}
function SetScoreText(pText, pTextBonus, p_PosX, p_PosY) {
ScoreTextTimer = 100;
ScoreText1.text = pText;
ScoreText1._x = p_PosX;
ScoreText1._y = p_PosY;
ScoreText1._alpha = 100;
ScoreText2.text = ScoreText1.text;
ScoreText2._x = ScoreText1._x + 2;
ScoreText2._y = ScoreText1._y + 2;
ScoreText2._alpha = ScoreText1._alpha;
ScoreTextX = ScoreText1._x;
}
function CheckScoreSet() {
if ((ArrayProsmotren.length / 2) < 3) {
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);
SetScoreText("+" + ((ArrayProsmotren.length / 2) * 40), "AAAAAA", middle_x - 100, middle_y - 20);
}
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.Child;
movieClip.prototype.Falling;
movieClip.prototype.IsBomb;
movieClip.prototype.IsHighLight;
movieClip.prototype.ChangeColorTimer;
movieClip.prototype.ChangeColorMaxTime;
var NumBubbles = 0;
var RealNumBubbles = 0;
var BubbleSize = 39;
var FieldSizeX = 10;
var FieldSizeY = 10;
var OtstupX = 190;
var OtstupY = 10;
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();
AvailableColorsIndex = new Array();
AvailableColors = new Array();
ArrayBubblesChangeColor = new Array();
var CurArrayPath = 0;
var CurColor1 = 1;
var CurColor2 = 1;
var CurColor3 = 1;
var CurColor4 = 1;
var NextColor1 = 2;
var NextColor2 = 2;
var NextColor3 = 2;
var NextColor4 = 2;
var SinglDualQuadColor = "single";
var MaxFailedMoves = 15;
var NumFailedMoves = MaxFailedMoves;
var BubblesDeleted = false;
var TotalNumBubbles = 0;
var LastTotalNumBubbles = 0;
ArrayPossibleColors = new Array();
ArrayPutBubbles = new Array();
var DialogMode = false;
var BuyNowType = 1;
var PathCounter = 5;
var NumPathBubles = 0;
var MaxNumPopitok = 8;
var NumPopitok = MaxNumPopitok;
var FailedPopitka = false;
var SomebodyFalling = false;
var RandomBombKoef = 10;
var BombExplodeRadius = 1;
var Score = 0;
var CurScore = 0;
var LastScore = 0;
var TimerTypeMaxTime = 15000;
var TimerTypeTime = TimerTypeMaxTime;
var TimeOrStepType = "StepType";
var MaxNumColors = 8;
var HardLevel = 1;
var CurPuzzleLevel = 1;
var NumBubblesOnField = 1;
var Old_mx = 1;
var Old_my = 1;
var NumGoodShoots = 0;
var OldNumAvailableColors = 0;
var EnableEscSkipLevel = 0;
var OffsetInc = 1;
var ShowPathTimer = 0;
var SoundOn = true;
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 (ScoreText, "ScoreText1", 802);
ScoreText._visible = false;
duplicateMovieClip (ScoreTextBlack, "ScoreText2", 801);
ScoreTextBlack._visible = false;
SoundFire = new Sound();
SoundFire.attachSound("fire");
SoundExplode = new Sound();
SoundExplode.attachSound("explode");
SoundStopBubble = new Sound();
SoundStopBubble.attachSound("stopbubble");
SoundLineDown = new Sound();
SoundLineDown.attachSound("linedown");
SoundClickButton = new Sound();
SoundClickButton.attachSound("s_clickbutton");
SoundGameOver = new Sound();
SoundGameOver.attachSound("s_gameover");
SoundLevelComplete = new Sound();
SoundLevelComplete.attachSound("s_levelcomplete");
SoundBombExplode = new Sound();
SoundBombExplode.attachSound("s_bombexplode");
SoundOtpal = new Sound();
SoundOtpal.attachSound("s_otpal");
fscommand ("showmenu", false);
myDate = new Date();
var CurrentTime = myDate.getTime();
var ElapsedTime = (CurrentTime - LastTime);
var LastTime = CurrentTime;
var MaxNagTime = 50000;
var Time = MaxNagTime;
var LinkBuyNow = "http://www.regnow.com/softsell/nph-softsell.cgi?item=10025-1&affiliate=40560";
var LinkMoreGames = "http://gamezhero.com/?from=blowUp";
var Registered = true;
var i = 1;
while (i < 50) {
duplicateMovieClip ("PathBubble", "PathBubble" + i, 500 + i);
this["PathBubble" + i]._visible = false;
i++;
}
someListener = new Object();
someListener.onMouseUp = function () {
OnMouseUp();
};
Mouse.addListener(someListener);
var CurrentGroupNumber = 1;
ArProsmotren = new Array();
ArPomechen = new Array();
ArPomechenIndex = new Array();
ArProsmotrenIndex = new Array();
var MaxNumExplodes = 20;
TotalNumLevels = 10;
LevelNet1 = new array(1, 2, 3, 4, 3, 6, 7, 8, 1, 2, 3, 0, 3, 0, 3, 0, 3, 0, 3, 0, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 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);
LevelNet2 = new array(1, 2, 1, 4, 3, 4, 6, 5, 6, 0, 2, 1, 2, 3,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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);
BonusText1._visible = false;
BonusText2._visible = false;
BonusTextTimer = 0;
ScoreText1._visible = false;
ScoreTextTimer = 0;
ScoreTextDir = 1;
ScoreTextX = 0;
BubbleRed._visible = false;
BubbleGreen._visible = false;
BubbleGrey._visible = false;
BubbleBlue._visible = false;
BubbleYellow._visible = false;
BubblePurple._visible = false;
BubbleOrange._visible = false;
BubbleCyan._visible = false;
BubblePink._visible = false;
BombRed._visible = false;
BombGreen._visible = false;
BombGrey._visible = false;
BombBlue._visible = false;
BombYellow._visible = false;
BombPurple._visible = false;
BombOrange._visible = false;
BombCyan._visible = false;
BombPink._visible = false;
PointsRed._visible = false;
PointsGreen._visible = false;
PointsGrey._visible = false;
PointsBlue._visible = false;
PointsYellow._visible = false;
PointsPurple._visible = false;
PointsOrange._visible = false;
PointsCyan._visible = false;
PointsPink._visible = false;
HsRed._visible = false;
HsGreen._visible = false;
HsGrey._visible = false;
HsBlue._visible = false;
HsYellow._visible = false;
HsPurple._visible = false;
HsOrange._visible = false;
HsCyan._visible = false;
HsPink._visible = false;
BubbleColor._visible = false;
BubbleExplode._visible = false;
PathBubble._visible = false;
PathBubbleHit._visible = false;
SetRandomLevel();
SetBoardBubbles();
ShowMainMenu();
PlayAreaOff();
_root.onEnterFrame = function () {
if (!DialogMode) {
UpdateGame();
}
UpdateTimer();
};
Instance of Symbol 43 MovieClip "Sound_radio" in Frame 3
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 == 4) {
_root.Sound_radio.GotoAndStop(2);
}
}
Symbol 18 MovieClip Frame 10
gotoAndPlay (1);
Symbol 34 Button
on (release) {
if (_root.DialogMode) {
return(undefined);
}
if (_root.SoundOn) {
SoundClickButton.start();
}
_root.ShowGameMenu();
}
Symbol 43 MovieClip Frame 1
stop();
Symbol 43 MovieClip Frame 2
stop();
Symbol 43 MovieClip Frame 3
stop();
Symbol 43 MovieClip Frame 4
stop();
Symbol 46 MovieClip Frame 7
stop();
Symbol 47 MovieClip Frame 7
stop();
Symbol 48 MovieClip Frame 1
stop();
Symbol 48 MovieClip Frame 2
stop();
Symbol 51 MovieClip Frame 7
stop();
Symbol 52 MovieClip Frame 7
stop();
Symbol 53 MovieClip Frame 1
stop();
Symbol 53 MovieClip Frame 2
stop();
Symbol 56 MovieClip Frame 7
stop();
Symbol 57 MovieClip Frame 7
stop();
Symbol 58 MovieClip Frame 1
stop();
Symbol 58 MovieClip Frame 2
stop();
Symbol 61 MovieClip Frame 7
stop();
Symbol 62 MovieClip Frame 7
stop();
Symbol 63 MovieClip Frame 1
stop();
Symbol 63 MovieClip Frame 2
stop();
Symbol 66 MovieClip Frame 7
stop();
Symbol 67 MovieClip Frame 1
stop();
Symbol 67 MovieClip Frame 2
stop();
Symbol 68 MovieClip Frame 1
stop();
Symbol 68 MovieClip Frame 2
stop();
Symbol 74 MovieClip Frame 7
stop();
Symbol 75 MovieClip Frame 7
stop();
Symbol 76 MovieClip Frame 1
stop();
Symbol 76 MovieClip Frame 2
stop();
Symbol 79 MovieClip Frame 7
stop();
Symbol 80 MovieClip Frame 7
stop();
Symbol 81 MovieClip Frame 1
stop();
Symbol 81 MovieClip Frame 2
stop();
Symbol 84 MovieClip Frame 7
stop();
Symbol 85 MovieClip Frame 7
stop();
Symbol 86 MovieClip Frame 1
stop();
Symbol 86 MovieClip Frame 2
stop();
Symbol 89 MovieClip Frame 7
stop();
Symbol 90 MovieClip Frame 7
stop();
Symbol 91 MovieClip Frame 1
stop();
Symbol 91 MovieClip Frame 2
stop();
Symbol 94 MovieClip Frame 7
stop();
Symbol 95 MovieClip Frame 7
stop();
Symbol 96 MovieClip Frame 1
stop();
Symbol 96 MovieClip Frame 2
stop();
Symbol 99 MovieClip Frame 7
stop();
Symbol 100 MovieClip Frame 7
stop();
Symbol 101 MovieClip Frame 1
stop();
Symbol 101 MovieClip Frame 2
stop();
Symbol 104 MovieClip Frame 7
stop();
Symbol 105 MovieClip Frame 7
stop();
Symbol 106 MovieClip Frame 1
stop();
Symbol 106 MovieClip Frame 2
stop();
Symbol 112 MovieClip Frame 7
stop();
Symbol 113 MovieClip Frame 7
stop();
Symbol 114 MovieClip Frame 1
stop();
Symbol 114 MovieClip Frame 2
stop();
Symbol 118 MovieClip Frame 7
stop();
Symbol 119 MovieClip Frame 7
stop();
Symbol 120 MovieClip Frame 1
stop();
Symbol 120 MovieClip Frame 2
stop();
Symbol 124 MovieClip Frame 7
stop();
Symbol 125 MovieClip Frame 7
stop();
Symbol 126 MovieClip Frame 1
stop();
Symbol 126 MovieClip Frame 2
stop();
Symbol 133 MovieClip Frame 7
stop();
Symbol 134 MovieClip Frame 7
stop();
Symbol 135 MovieClip Frame 1
stop();
Symbol 135 MovieClip Frame 2
stop();
Symbol 140 MovieClip Frame 7
stop();
Symbol 141 MovieClip Frame 7
stop();
Symbol 142 MovieClip Frame 1
stop();
Symbol 142 MovieClip Frame 2
stop();
Symbol 146 MovieClip Frame 7
stop();
Symbol 147 MovieClip Frame 7
stop();
Symbol 148 MovieClip Frame 1
stop();
Symbol 148 MovieClip Frame 2
stop();
Symbol 153 MovieClip Frame 7
stop();
Symbol 154 MovieClip Frame 7
stop();
Symbol 155 MovieClip Frame 1
stop();
Symbol 155 MovieClip Frame 2
stop();
Symbol 159 MovieClip Frame 7
stop();
Symbol 160 MovieClip Frame 7
stop();
Symbol 161 MovieClip Frame 1
stop();
Symbol 161 MovieClip Frame 2
stop();
Symbol 163 MovieClip Frame 1
stop();
Symbol 164 MovieClip Frame 7
stop();
Symbol 165 MovieClip Frame 7
stop();
Symbol 167 MovieClip Frame 1
stop();
Symbol 168 MovieClip Frame 7
stop();
Symbol 169 MovieClip Frame 7
stop();
Symbol 171 MovieClip Frame 1
stop();
Symbol 172 MovieClip Frame 7
stop();
Symbol 173 MovieClip Frame 7
stop();
Symbol 175 MovieClip Frame 1
stop();
Symbol 176 MovieClip Frame 7
stop();
Symbol 177 MovieClip Frame 7
stop();
Symbol 179 MovieClip Frame 1
stop();
Symbol 180 MovieClip Frame 7
stop();
Symbol 181 MovieClip Frame 7
stop();
Symbol 183 MovieClip Frame 1
stop();
Symbol 184 MovieClip Frame 7
stop();
Symbol 185 MovieClip Frame 7
stop();
Symbol 187 MovieClip Frame 1
stop();
Symbol 188 MovieClip Frame 7
stop();
Symbol 189 MovieClip Frame 7
stop();
Symbol 191 MovieClip Frame 1
stop();
Symbol 192 MovieClip Frame 7
stop();
Symbol 193 MovieClip Frame 7
stop();
Symbol 194 MovieClip Frame 1
stop();
Symbol 194 MovieClip Frame 2
stop();
Symbol 194 MovieClip Frame 4
stop();
Symbol 194 MovieClip Frame 5
stop();
Symbol 194 MovieClip Frame 7
stop();
Symbol 194 MovieClip Frame 8
stop();
Symbol 194 MovieClip Frame 10
stop();
Symbol 194 MovieClip Frame 11
stop();
Symbol 194 MovieClip Frame 13
stop();
Symbol 194 MovieClip Frame 14
stop();
Symbol 194 MovieClip Frame 16
stop();
Symbol 194 MovieClip Frame 17
stop();
Symbol 194 MovieClip Frame 19
stop();
Symbol 194 MovieClip Frame 20
stop();
Symbol 194 MovieClip Frame 22
stop();
Symbol 194 MovieClip Frame 23
stop();
Symbol 214 MovieClip Frame 9
this._visible = false;
this.stop();
Symbol 222 MovieClip Frame 7
stop();
Symbol 223 MovieClip Frame 7
stop();
Symbol 224 MovieClip Frame 1
stop();
Symbol 224 MovieClip Frame 2
stop();
Symbol 227 MovieClip Frame 7
stop();
Symbol 228 MovieClip Frame 7
stop();
Symbol 229 MovieClip Frame 1
stop();
Symbol 229 MovieClip Frame 2
stop();
Symbol 231 MovieClip Frame 7
stop();
Symbol 232 MovieClip Frame 7
stop();
Symbol 233 MovieClip Frame 1
stop();
Symbol 233 MovieClip Frame 2
stop();
Symbol 235 MovieClip Frame 7
stop();
Symbol 236 MovieClip Frame 7
stop();
Symbol 237 MovieClip Frame 1
stop();
Symbol 237 MovieClip Frame 2
stop();
Symbol 245 MovieClip Frame 7
stop();
Symbol 246 MovieClip Frame 7
stop();
Symbol 247 MovieClip Frame 1
stop();
Symbol 247 MovieClip Frame 2
stop();
Symbol 250 MovieClip Frame 7
stop();
Symbol 251 MovieClip Frame 7
stop();
Symbol 252 MovieClip Frame 1
stop();
Symbol 252 MovieClip Frame 2
stop();
Symbol 255 MovieClip Frame 7
stop();
Symbol 256 MovieClip Frame 7
stop();
Symbol 257 MovieClip Frame 1
stop();
Symbol 257 MovieClip Frame 2
stop();
Symbol 260 MovieClip Frame 7
stop();
Symbol 261 MovieClip Frame 7
stop();
Symbol 262 MovieClip Frame 1
stop();
Symbol 262 MovieClip Frame 2
stop();
Symbol 265 MovieClip Frame 7
stop();
Symbol 266 MovieClip Frame 7
stop();
Symbol 267 MovieClip Frame 1
stop();
Symbol 267 MovieClip Frame 2
stop();
Symbol 270 MovieClip Frame 7
stop();
Symbol 271 MovieClip Frame 7
stop();
Symbol 272 MovieClip Frame 1
stop();
Symbol 272 MovieClip Frame 2
stop();
Symbol 275 MovieClip Frame 7
stop();
Symbol 276 MovieClip Frame 7
stop();
Symbol 277 MovieClip Frame 1
stop();
Symbol 277 MovieClip Frame 2
stop();
Symbol 280 MovieClip Frame 7
stop();
Symbol 281 MovieClip Frame 7
stop();
Symbol 282 MovieClip Frame 1
stop();
Symbol 282 MovieClip Frame 2
stop();
Symbol 296 Button
on (release) {
_root.BuySmall._visible = false;
}
Symbol 297 Button
on (release) {
if (_root.SoundOn) {
_root.SoundClickButton.start();
}
_root.LastScore = _root.Score;
_root.CurPuzzleLevel++;
if (_root.CurPuzzleLevel > _root.TotalNumLevels) {
_root.CurPuzzleLevel = 1;
}
_root.DialogMode = false;
_root.LoadLevel(_root.CurPuzzleLevel);
_root.TimerTypeTime = _root.CalculateMaxNumPopitok();
_root.WindowLevelComplete1._visible = false;
}
Symbol 298 MovieClip Frame 10
stop();
Symbol 306 Button
on (release) {
_root.BuySmall._visible = false;
}
Symbol 307 Button
on (release) {
_root.BuySmall._visible = false;
}
Symbol 308 Button
on (release) {
if (_root.SoundOn) {
_root.SoundClickButton.start();
}
_root.ShowMainMenu();
_root.WindowGameOver1._visible = false;
_root.PlayAreaOff();
}
Symbol 309 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.TimeOrStepType == "TimeType") || (_root.TimeOrStepType == "StepType")) {
_root.SetRandomLevel();
_root.TimerTypeTime = _root.CalculateTimerTypeMaxTime();
}
if (_root.TimeOrStepType == "PuzzleType") {
_root.LoadLevel(_root.CurPuzzleLevel);
_root.TimerTypeTime = _root.CalculateMaxNumPopitok();
}
}
Symbol 310 MovieClip Frame 13
stop();
Symbol 319 MovieClip Frame 1
stop();
Symbol 319 MovieClip Frame 2
stop();
Symbol 319 MovieClip Frame 3
stop();
Symbol 319 MovieClip Frame 4
stop();
Symbol 347 Button
on (release) {
_root.ChooseGameType._visible = false;
_root.MainMenu._visible = true;
}
Symbol 349 Button
on (release) {
if (_root.WindowBuyMe1._visible) {
return(undefined);
}
if (_root.SoundOn) {
_root.SoundClickButton.start();
}
_root.WindowNewGame1._visible = false;
_root.ShowMainMenu();
}
Symbol 350 Button
on (release) {
if (_root.WindowBuyMe1._visible) {
return(undefined);
}
_root.PlayAreaOn();
_root.LastScore = 0;
_root.CurScore = 0;
_root.Score = 0;
if (_root.SoundOn) {
_root.SoundClickButton.start();
}
_root.WindowNewGame1._visible = false;
_root.DialogMode = false;
_root.SetRandomLevel();
_root.TimeOrStepType = "TimeType";
_root.TimerTypeTime = _root.CalculateTimerTypeMaxTime();
}
Symbol 351 Button
on (release) {
if (_root.WindowBuyMe1._visible) {
return(undefined);
}
_root.PlayAreaOn();
_root.LastScore = 0;
_root.CurScore = 0;
_root.Score = 0;
if (_root.SoundOn) {
_root.SoundClickButton.start();
}
_root.WindowNewGame1._visible = false;
_root.DialogMode = false;
_root.TimeOrStepType = "PuzzleType";
_root.CurPuzzleLevel = 1;
_root.LoadLevel(_root.CurPuzzleLevel);
_root.TimerTypeTime = _root.CalculateMaxNumPopitok();
}
Symbol 352 Button
on (release) {
if (_root.WindowBuyMe1._visible) {
return(undefined);
}
_root.PlayAreaOn();
_root.LastScore = 0;
_root.CurScore = 0;
_root.Score = 0;
if (_root.SoundOn) {
_root.SoundClickButton.start();
}
_root.WindowNewGame1._visible = false;
_root.DialogMode = false;
_root.SetRandomLevel();
_root.TimeOrStepType = "StepType";
_root.NumPopitok = _root.CalculateMaxNumPopitok();
}
Instance of Symbol 319 MovieClip "Radio1" in Symbol 353 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 319 MovieClip "Radio2" in Symbol 353 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 319 MovieClip "Radio3" in Symbol 353 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 353 MovieClip Frame 25
stop();
Symbol 363 Button
on (release) {
_root.BuySmall._visible = false;
}
Symbol 368 Button
on (release) {
_root.BuySmall._visible = false;
}
Symbol 369 Button
on (release) {
if (_root.SoundOn) {
_root.SoundClickButton.start();
}
getURL (_root.LinkBuyNow, "_blank");
_root.WindowBuyMe1._visible = false;
if (_root.BuyNowType == 2) {
_root.DialogMode = false;
}
if (_root.BuyNowType == 3) {
_root.ShowMainMenu();
}
}
Symbol 370 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 371 MovieClip Frame 20
stop();
Symbol 376 Button
on (release) {
_root.MainMenu._visible = false;
_root.ChooseGameType._visible = true;
}
Symbol 377 Button
on (release) {
_root.MainMenu._visible = false;
_root.ChooseGameType._visible = true;
}
Symbol 378 Button
on (release) {
_root.MainMenu._visible = false;
_root.ChooseGameType._visible = true;
}
Symbol 379 Button
on (release) {
if (_root.SoundOn) {
_root.SoundClickButton.start();
}
_root.ShowMainMenu();
_root.WindowGameMenu1._visible = false;
_root.PlayAreaOff();
}
Symbol 380 Button
on (release) {
if (_root.SoundOn) {
_root.SoundClickButton.start();
}
_root.DialogMode = false;
_root.WindowGameMenu1._visible = false;
_root.Score = _root.LastScore;
_root.CurScore = _root.Score;
if ((_root.TimeOrStepType == "TimeType") || (_root.TimeOrStepType == "StepType")) {
_root.SetRandomLevel();
_root.TimerTypeTime = _root.CalculateTimerTypeMaxTime();
}
if (_root.TimeOrStepType == "PuzzleType") {
_root.LoadLevel(_root.CurPuzzleLevel);
_root.TimerTypeTime = _root.CalculateMaxNumPopitok();
}
}
Symbol 381 Button
on (release) {
if (_root.SoundOn) {
_root.SoundClickButton.start();
}
_root.DialogMode = false;
_root.WindowGameMenu1._visible = false;
}
Symbol 382 MovieClip Frame 17
stop();
Symbol 383 Button
on (release) {
_root.MainMenu._visible = false;
}
Symbol 384 Button
on (release) {
_root.MainMenu._visible = false;
}
Symbol 385 Button
on (release) {
_root.SoundClickButton.start();
getURL (_root.LinkBuyNow, "_blank");
_root.WindowBuyMe1._visible = false;
if (_root.BuyNowType == 2) {
_root.DialogMode = false;
}
}
Symbol 386 Button
on (release) {
_root.SoundClickButton.start();
fscommand ("quit");
fscommand ("close");
}
Symbol 387 MovieClip Frame 15
stop();
Symbol 389 Button
on (release) {
if (_root.SoundOn) {
_root.SoundClickButton.start();
}
_root.WindowHelp31._visible = false;
_root.ShowHelp2();
}
Symbol 390 Button
on (release) {
if (_root.SoundOn) {
_root.SoundClickButton.start();
}
_root.WindowHelp31._visible = false;
_root.ShowMainMenu();
}
Symbol 402 Button
on (release) {
if (_root.SoundOn) {
_root.SoundClickButton.start();
}
_root.WindowHelp21._visible = false;
_root.ShowHelp1();
}
Symbol 409 Button
on (release) {
if (_root.SoundOn) {
_root.SoundClickButton.start();
}
_root.WindowHelp21._visible = false;
_root.ShowHelp3();
}
Symbol 410 Button
on (release) {
if (_root.SoundOn) {
_root.SoundClickButton.start();
}
_root.WindowHelp21._visible = false;
_root.ShowMainMenu();
}
Symbol 426 Button
on (release) {
_root.Help._visible = false;
_root.MainMenu._visible = true;
}
Symbol 439 Button
on (release) {
_root.Help._visible = false;
_root.Help2._visible = true;
}
Symbol 440 Button
on (release) {
if (_root.SoundOn) {
_root.SoundClickButton.start();
}
_root.WindowHelp1._visible = false;
_root.ShowHelp2();
}
Symbol 441 Button
on (release) {
if (_root.SoundOn) {
_root.SoundClickButton.start();
}
_root.WindowHelp1._visible = false;
_root.ShowMainMenu();
}
Instance of Symbol 436 MovieClip "Hint1" in Symbol 442 MovieClip Frame 5
on (rollOver) {
_root.Help.Hint1._height = 240;
_root.Help.Hint1._width = 210;
}
on (rollOut) {
_root.Help.Hint1._height = 150;
_root.Help.Hint1._width = 130;
}
Symbol 442 MovieClip Frame 20
stop();
Symbol 447 Button
on (release) {
_root.MainMenu._visible = false;
_root.ChooseGameType._visible = true;
}
Symbol 450 Button
on (release) {
_root.MainMenu._visible = false;
_root.Help._visible = true;
}
Symbol 453 Button
on (release) {
_root.MainMenu._visible = false;
}
Symbol 454 Button
on (release) {
if (_root.SoundOn) {
_root.SoundClickButton.start();
}
_root.WindowMainMenu1._visible = false;
_root.ShowNewGameMenu();
}
Symbol 455 Button
on (release) {
if (_root.SoundOn) {
_root.SoundClickButton.start();
}
_root.WindowMainMenu1._visible = false;
_root.ShowHelp1();
}
Symbol 456 Button
on (release) {
if (_root.SoundOn) {
_root.SoundClickButton.start();
}
getURL (_root.LinkMoreGames, "_blank");
}
Symbol 458 MovieClip Frame 27
stop();
Symbol 459 Button
on (release) {
_root.Help._visible = false;
_root.MainMenu._visible = true;
}
Symbol 460 Button
on (release) {
_root.Help._visible = false;
}