Frame 1
function checkGoodUrl(myUrl) {
var currUrl;
var urlParts;
var numParts;
var i;
if (myUrl.length() == 0) {
return(1);
}
currUrl = _url.toLowerCase();
i = currUrl.indexOf(currUrl, "/", 7);
if (i > 0) {
currUrl = currUrl.substr(0, i);
}
urlParts = myUrl.split("|");
numParts = urlParts.length;
i = 0;
while (i < numParts) {
if (currUrl.indexOf(urlParts[i]) >= 0) {
return(1);
}
i++;
}
return(0);
}
HiScoreEnabled = 1;
HiScoreSaveURL = "http://www.arcadetown.com/blox/hs.asp";
HiScoreOpenURL = "http://www.arcadetown.com/scripts/show_hiscore.asp?gameid=blox";
LinkDownload = "http://www.arcadetown.com/blox/download.asp";
RegisteredVersion = 0;
EnableEscSkipLevel = 0;
LinkBuyMe = "http://www.arcadetown.com/order/choosemethod.asp?gameid=blox";
LinkMoreGames = "http://www.arcadetown.com/index.asp?gameid=blox";
if (RegisteredVersion == 0) {
LockdownUrl = "";
} else {
LockdownUrl = "arcadetown.com|freewebgames.com";
HiScoreOpenURL = "http://www.arcadetown.com/scripts/show_hiscore.asp?gameid=blox_deluxe";
}
VendorType = 3;
IsRunFS = 0;
if (VendorType == 2) {
LinkBuyMe = "http://www.altoparc.com/blox/buynow.htm";
LinkMoreGames = "http://www.altoparc.com/blox/moregames.htm";
LockdownUrl = "altoparc.com";
} else if (VendorType == 3) {
LinkBuyMe = AppendUrlParam(LinkBuyMe, "aid=647057");
LinkMoreGames = AppendUrlParam(LinkMoreGames, "aid=647057");
LinkDownload = AppendUrlParam(LinkDownload, "aid=647057");
LockdownUrl = "newgrounds.com|ungrounded.net";
} else if (VendorType == 4) {
LinkBuyMe = "http://www.4gameplay.com/order/choosemethod.asp?gameid=blox&aid=647063";
LinkMoreGames = "http://www.freearcade.com";
LinkDownload = "http://www.4gameplay.com/blox/download.asp?aid=647063";
HiScoreEnabled = 0;
LockdownUrl = "freearcade.com|javaarcade.com";
} else if (VendorType == 5) {
LinkBuyMe = AppendUrlParam(LinkBuyMe, "aid=647415");
LinkMoreGames = AppendUrlParam(LinkMoreGames, "aid=647415");
LinkDownload = AppendUrlParam(LinkDownload, "aid=647415");
LockdownUrl = "entertainmail.net";
} else if (VendorType == 6) {
LinkBuyMe = "http://www.4gameplay.com/order/choosemethod.asp?gameid=blox";
LinkMoreGames = "http://www.4gameplay.com/index.asp?gameid=blox";
LinkDownload = "http://www.4gameplay.com/blox/download.asp";
HiScoreEnabled = 0;
} else if (VendorType == 8) {
LinkBuyMe = AppendUrlParam(LinkBuyMe, "aid=654087");
LinkMoreGames = AppendUrlParam(LinkMoreGames, "aid=654087");
LinkDownload = AppendUrlParam(LinkDownload, "aid=654087");
HiScoreEnabled = 0;
LockdownUrl = "";
}
if (IsRunFS == 1) {
LinkDownload = "";
}
var isGoodUrl = 1;
if (_url.toLowerCase().substr(0, 4) == "http") {
if (checkGoodUrl(_root.LockdownUrl) == 1) {
isGoodUrl = 1;
} else {
isGoodUrl = 0;
}
}
if (isGoodUrl == 1) {
if (_framesloaded >= _totalframes) {
gotoAndPlay (3);
stop();
} else {
ProgressBar._xscale = int((getBytesLoaded() / getBytesTotal()) * 100);
}
} else {
ProgressBar._xscale = 0;
}
Frame 2
gotoAndPlay (1);
Frame 3
function UpdateDieTimer() {
var objBrk;
var i = 1;
while (i <= num_death_bricks) {
objBrk = this["brcik" + array_death_bricks[i]];
if ((objBrk._DieTimer < 100) && (objBrk._DieTimer > 1)) {
objBrk._DieTimer = objBrk._DieTimer - 10;
objBrk._Alpha = 30 + (objBrk._DieTimer * 0.7);
if (objBrk._DieTimer < 1) {
objBrk._visible = false;
}
} else {
DeleteFromDeathArray(array_death_bricks[i]);
}
i++;
}
}
function FillArrayNet() {
var objBrk;
var nMax = (field_sizeX * field_sizeY);
var i = 1;
while (i <= nMax) {
ArrayNet[i] = 9999;
i++;
}
var i = 1;
while (i <= num_bricks) {
objBrk = this["brcik" + i];
if (objBrk._DieTimer == 100) {
objBrk._NetPosX = ConvXtoNetXround(objBrk._x);
objBrk._NetPosY = ConvYtoNetYround(objBrk._y);
}
i++;
}
var i = 1;
while (i <= num_hard_bricks) {
objBrk = this["brcik" + array_hard_bricks[i]];
ArrayNet[objBrk._NetPosX + ((objBrk._NetPosY - 1) * field_sizeX)] = array_hard_bricks[i];
i++;
}
}
function FillMustDieArray() {
var nMax = (field_sizeX * field_sizeY);
total_num_must_die_bricks = 0;
var i = 1;
while (i <= nMax) {
array_must_die_bricks[i] = 9999;
i++;
}
var j = 1;
while (j <= num_bricks) {
if (this["brcik" + j]._MustDie) {
total_num_must_die_bricks++;
array_must_die_bricks[total_num_must_die_bricks] = j;
}
j++;
}
}
function DeleteFromMustDieArray(n) {
var j = 1;
while (j <= total_num_must_die_bricks) {
if (array_must_die_bricks[j] == n) {
if (j < total_num_must_die_bricks) {
array_must_die_bricks[j] = array_must_die_bricks[total_num_must_die_bricks];
}
total_num_must_die_bricks--;
}
j++;
}
}
function DeleteFromCanMoveArray(n) {
var j = 1;
while (j <= num_can_move_bricks) {
if (array_can_move_bricks[j] == n) {
if (j < num_can_move_bricks) {
array_can_move_bricks[j] = array_can_move_bricks[num_can_move_bricks];
}
num_can_move_bricks--;
}
j++;
}
}
function SetRightPosition(n) {
var objBrk = this["brcik" + n];
objBrk._x = ConvNetXtoX(objBrk._NetPosX);
objBrk._y = ConvNetYtoY(objBrk._NetPosY);
}
function SetRightPositionX(n) {
var objBrk = this["brcik" + n];
objBrk._x = ConvNetXtoX(objBrk._NetPosX);
}
function SetRightPositionY(n) {
var objBrk = this["brcik" + n];
objBrk._y = ConvNetYtoY(objBrk._NetPosY);
}
function ConvNetXtoX(val) {
return(Math.round(val * brick_size) + otstupX);
}
function ConvNetYtoY(val) {
return(Math.round(val * brick_size) + otstupY);
}
function ConvXtoNetX(val) {
return(Math.floor((val - otstupX) / brick_size));
}
function ConvYtoNetY(val) {
return(Math.floor((val - otstupY) / brick_size));
}
function ConvXtoNetXround(val) {
return(Math.round((val - otstupX) / brick_size));
}
function ConvYtoNetYround(val) {
return(Math.round((val - otstupY) / brick_size));
}
function GetDifferenParentLastChild(index) {
var CurIndex = index;
var result = -1;
var objBrk = this["brcik" + CurIndex];
while (objBrk._Child != 9999) {
CurIndex = objBrk._Child;
objBrk = this["brcik" + CurIndex];
result--;
}
return(result);
}
function DeleteFromMovingArray(n) {
var j = 1;
while (j <= num_moving_bricks) {
if (array_moving_bricks[j] == n) {
if (j < num_moving_bricks) {
array_moving_bricks[j] = array_moving_bricks[num_moving_bricks];
}
num_moving_bricks--;
}
j++;
}
}
function UpdateFalling() {
var objBrk;
var objBrk2;
var i = 1;
while (i <= total_num_must_die_bricks) {
objBrk = this["brcik" + array_must_die_bricks[i]];
if (objBrk._Parent == 9999) {
if (objBrk._BelongMagnet == 9999) {
k = 9999;
if (objBrk._NetPosY < field_sizeY) {
k = FindBrick(objBrk._NetPosX, objBrk._NetPosY + 1);
}
if ((k == 9999) && (objBrk._NetPosY < (field_sizeY - 1))) {
k = FindBrick(objBrk._NetPosX, objBrk._NetPosY + 2);
}
objBrk._OldFalling = objBrk._Falling;
objBrk._Falling = false;
objBrk2 = this["brcik" + k];
if ((k == 9999) || ((objBrk2._y - objBrk._y) > (brick_size + 6))) {
if (objBrk._NetPosY < field_sizeY) {
ArrayNet[objBrk._NetPosX + ((objBrk._NetPosY - 1) * field_sizeX)] = 9999;
objBrk._Falling = true;
objBrk._y = objBrk._y + 6;
objBrk._NetPosY = ConvYtoNetY(objBrk._y);
ArrayNet[objBrk._NetPosX + ((objBrk._NetPosY - 1) * field_sizeX)] = objBrk._Number;
} else {
objBrk._NetPosY = ConvYtoNetY(objBrk._y);
objBrk._y = ConvNetYtoY(objBrk._NetPosY);
if (objBrk._OldFalling == true) {
AddToNextStepArray(objBrk._Number);
}
}
} else if (objBrk._Falling != objBrk._OldFalling) {
ArrayNet[objBrk._NetPosX + ((objBrk._NetPosY - 1) * field_sizeX)] = 9999;
if (k != 9999) {
objBrk._y = objBrk2._y - brick_size;
objBrk._NetPosY = ConvYtoNetY(objBrk._y);
if (objBrk2._Type != 11) {
SetRightPosition(array_must_die_bricks[i]);
}
}
ArrayNet[objBrk._NetPosX + ((objBrk._NetPosY - 1) * field_sizeX)] = objBrk._Number;
AddToNextStepArray(objBrk._Number);
}
}
}
i++;
}
}
function UpdateMoving() {
var i;
var j;
var k;
var objBrk;
var objBrk2;
var xConv;
var yConv;
var d_x;
var d_y;
var mustY;
i = 1;
while (i <= num_moving_bricks) {
objBrk = this["brcik" + array_moving_bricks[i]];
objBrk._LiftStopTime = objBrk._LiftStopTime - 1;
d_x = 0;
d_y = 0;
if (objBrk._MoveX > 0) {
d_x = 1;
} else if (objBrk._MoveX < 0) {
d_x = -1;
}
if (objBrk._MoveY > 0) {
d_y = 1;
} else if (objBrk._MoveY < 0) {
d_y = -1;
}
if (d_y == -1) {
d_y = GetDifferenParentLastChild(array_moving_bricks[i]);
}
if (d_x == 1) {
if (objBrk._NetPosX >= field_sizeX) {
xConv = ConvNetXtoX(objBrk._NetPosX);
if (objBrk._x > xConv) {
objBrk._x = xConv;
objBrk._MoveX = objBrk._MoveX * -1;
objBrk._LiftStopTime = 25;
}
}
} else if (d_x == -1) {
if (objBrk._NetPosX <= 0) {
if (objBrk._x < ConvNetXtoX(objBrk._NetPosX)) {
objBrk._x = ConvNetXtoX(objBrk._NetPosX + 1);
objBrk._MoveX = objBrk._MoveX * -1;
objBrk._LiftStopTime = 25;
}
}
}
if (d_y == 1) {
if (objBrk._NetPosY > (field_sizeY - 1)) {
if (objBrk._y > ConvNetYtoY(objBrk._NetPosY)) {
SetrightPositionY(array_moving_bricks[i]);
objBrk._MoveY = objBrk._MoveY * -1;
objBrk._LiftStopTime = 25;
}
}
} else if (d_y < 0) {
if ((objBrk._NetPosY + d_y) <= 0) {
if (objBrk._y < ConvNetYtoY(objBrk._NetPosY)) {
SetrightPositionY(array_moving_bricks[i]);
objBrk._MoveY = objBrk._MoveY * -1;
objBrk._LiftStopTime = 25;
}
}
}
if (objBrk._MoveX > 0) {
d_x = 1;
} else if (objBrk._MoveX < 0) {
d_x = -1;
}
if (objBrk._MoveY > 0) {
d_y = 1;
} else if (objBrk._MoveY < 0) {
d_y = GetDifferenParentLastChild(array_moving_bricks[i]);
}
if (objBrk._LiftStopTime < 0) {
j = objBrk._NetPosX + ((objBrk._NetPosY - 1) * field_sizeX);
ArrayNet[j] = 9999;
objBrk._x = objBrk._x + objBrk._MoveX;
objBrk._y = objBrk._y + objBrk._MoveY;
ArrayNet[j] = array_moving_bricks[i];
}
if ((objBrk._NetPosY + d_y) <= field_sizeY) {
if ((objBrk._NetPosY + d_y) >= 1) {
if (FindBrick(objBrk._NetPosX + d_x, objBrk._NetPosY + d_y) != 9999) {
xConv = ConvNetXtoX(objBrk._NetPosX);
yConv = ConvNetYtoY(objBrk._NetPosY);
if (((((d_x < 0) && (objBrk._x < xConv)) || ((d_x > 0) && (objBrk._x > xConv))) || ((d_y < 0) && (objBrk._y < yConv))) || ((d_y > 0) && (objBrk._y > yConv))) {
objBrk._LiftStopTime = 25;
objBrk._MoveX = objBrk._MoveX * -1;
objBrk._MoveY = objBrk._MoveY * -1;
SetrightPosition(array_moving_bricks[i]);
}
}
}
}
j = objBrk._NetPosX + ((objBrk._NetPosY - 1) * field_sizeX);
ArrayNet[j] = 9999;
objBrk._NetPosX = ConvXtoNetXround(objBrk._x);
objBrk._NetPosY = ConvYtoNetYround(objBrk._y);
j = objBrk._NetPosX + ((objBrk._NetPosY - 1) * field_sizeX);
ArrayNet[j] = array_moving_bricks[i];
var s = array_moving_bricks[i];
objBrk = this["brcik" + s];
while (objBrk._Child != 9999) {
objBrk2 = this["brcik" + objBrk._Child];
j = objBrk2._NetPosX + ((objBrk2._NetPosY - 1) * field_sizeX);
ArrayNet[j] = 9999;
mustY = 9999;
k = (objBrk._y - brick_size) - objBrk2._y;
if (k > 10) {
mustY = objBrk2._y + Math.round(k * 0.75);
}
objBrk2._x = objBrk._x;
objBrk2._y = objBrk._y - brick_size;
objBrk2._NetPosX = ConvXtoNetXround(objBrk2._x);
if (MustY != 9999) {
objBrk2._y = mustY;
}
objBrk2._NetPosY = ConvYtoNetYround(objBrk2._y);
j = objBrk2._NetPosX + ((objBrk2._NetPosY - 1) * field_sizeX);
ArrayNet[j] = objBrk._Child;
s = objBrk._Child;
objBrk = this["brcik" + s];
}
i++;
}
}
function UpdateParentChild() {
var objBrk;
var objBrk2;
var i;
var k;
i = 1;
while (i <= num_can_move_bricks) {
objBrk = this["brcik" + array_can_move_bricks[i]];
if (((objBrk._Parent != 9999) || (objBrk._MoveY != 0)) || (objBrk._MoveX != 0)) {
if (objBrk._Child == 9999) {
k = FindBrick(objBrk._NetPosX, objBrk._NetPosY - 1);
if (k != 9999) {
objBrk2 = this["brcik" + k];
if (objBrk2._Parent == 9999) {
if (objBrk2._MustDie == 1) {
objBrk._Child = k;
objBrk2._Parent = array_can_move_bricks[i];
objBrk2._Falling = false;
}
}
}
}
}
i++;
}
i = 1;
while (i <= num_can_move_bricks) {
objBrk = this["brcik" + array_can_move_bricks[i]];
if (objBrk._Child != 9999) {
MarkBrickToDelete(objBrk._Child);
}
i++;
}
}
function LoadBricks(n, m) {
var strBrkName;
var nBrkType;
var objBrk;
var nBrkTypeTop;
var nBrkTypeLeft;
var nBrkTypeRight;
var nBrkTypeBottom;
var i = 1;
while (i <= num_bricks) {
removeMovieClip(this["brcik" + i]);
i++;
}
DeleteLaserLines();
num_bricks = 0;
belong_brick = 9999;
took_brick = false;
num_can_move_bricks = 0;
num_moving_bricks = 0;
num_lava_bricks = 0;
num_teleport_bricks = 0;
num_hard_bricks = 0;
num_bomb_bricks = 0;
num_break_bricks = 0;
num_laser_bricks = 0;
num_magnet_bricks = 0;
num_magnetswitch_bricks = 0;
num_death_bricks = 0;
level_failed = false;
LastScore = Score;
FinishLevelTimer = 100;
dialog_mode = false;
demo_mode = false;
this.ScoreOnBoardText1._DieTimer = -1;
this.ScoreOnBoardText1._visible = false;
LevelNet = this["LevelNet" + level_number];
var i = 1;
while (i <= m) {
var j = 1;
while (j <= n) {
nBrkType = LevelNet[(j - 1) + ((i - 1) * field_sizeX)];
if (nBrkType != 1) {
num_bricks++;
strBrkName = "brcik" + num_bricks;
if (nBrkType == 2) {
nBrkTypeTop = 1;
nBrkTypeLeft = 1;
nBrkTypeRight = 1;
nBrkTypeBottom = 1;
if (j >= 2) {
nBrkTypeLeft = LevelNet[(j - 2) + ((i - 1) * field_sizeX)];
}
if (j < n) {
nBrkTypeRight = LevelNet[j + ((i - 1) * field_sizeX)];
}
if (i >= 2) {
nBrkTypeTop = LevelNet[(j - 1) + ((i - 2) * field_sizeX)];
}
if (i < m) {
nBrkTypeBottom = LevelNet[(j - 1) + (i * field_sizeX)];
}
if ((((nBrkTypeLeft == 2) && (nBrkTypeRight == 2)) && (nBrkTypeTop == 2)) && (nBrkTypeBottom == 2)) {
duplicateMovieClip (LibraryBrickCross, strBrkName, num_bricks + 0);
} else if (((nBrkTypeRight == 2) && (nBrkTypeTop == 2)) && (nBrkTypeBottom == 2)) {
duplicateMovieClip (LibraryBrickLTee, strBrkName, num_bricks + 0);
} else if (((nBrkTypeLeft == 2) && (nBrkTypeTop == 2)) && (nBrkTypeBottom == 2)) {
duplicateMovieClip (LibraryBrickRTee, strBrkName, num_bricks + 0);
} else if (((nBrkTypeLeft == 2) && (nBrkTypeRight == 2)) && (nBrkTypeTop == 2)) {
duplicateMovieClip (LibraryBrickBTee, strBrkName, num_bricks + 0);
} else if (((nBrkTypeLeft == 2) && (nBrkTypeRight == 2)) && (nBrkTypeBottom == 2)) {
duplicateMovieClip (LibraryBrickTTee, strBrkName, num_bricks + 0);
} else if ((nBrkTypeRight == 2) && (nBrkTypeBottom == 2)) {
duplicateMovieClip (LibraryBrickUL, strBrkName, num_bricks + 0);
} else if ((nBrkTypeLeft == 2) && (nBrkTypeBottom == 2)) {
duplicateMovieClip (LibraryBrickUR, strBrkName, num_bricks + 0);
} else if ((nBrkTypeRight == 2) && (nBrkTypeTop == 2)) {
duplicateMovieClip (LibraryBrickLL, strBrkName, num_bricks + 0);
} else if ((nBrkTypeLeft == 2) && (nBrkTypeTop == 2)) {
duplicateMovieClip (LibraryBrickLR, strBrkName, num_bricks + 0);
} else if ((nBrkTypeTop == 2) && (nBrkTypeBottom == 2)) {
duplicateMovieClip (LibraryBrickLeft, strBrkName, num_bricks + 0);
} else if ((nBrkTypeLeft == 2) && (nBrkTypeRight == 2)) {
duplicateMovieClip (LibraryBrickTop, strBrkName, num_bricks + 0);
} else if (nBrkTypeBottom == 2) {
duplicateMovieClip (LibraryBrickTCap, strBrkName, num_bricks + 0);
} else if (nBrkTypeTop == 2) {
duplicateMovieClip (LibraryBrickBCap, strBrkName, num_bricks + 0);
} else if (nBrkTypeRight == 2) {
duplicateMovieClip (LibraryBrickLCap, strBrkName, num_bricks + 0);
} else if (nBrkTypeLeft == 2) {
duplicateMovieClip (LibraryBrickRCap, strBrkName, num_bricks + 0);
} else {
duplicateMovieClip (LibraryBrickCap, strBrkName, num_bricks + 0);
}
} else if (nBrkType == 3) {
duplicateMovieClip (LibraryBrick1, strBrkName, num_bricks + 150);
} else if (nBrkType == 4) {
duplicateMovieClip (LibraryBrick2, strBrkName, num_bricks + 150);
} else if (nBrkType == 5) {
duplicateMovieClip (LibraryBrick3, strBrkName, num_bricks + 150);
} else if (nBrkType == 6) {
duplicateMovieClip (LibraryBrick4, strBrkName, num_bricks + 150);
} else if (nBrkType == 7) {
duplicateMovieClip (LibraryBrick5, strBrkName, num_bricks + 150);
} else if (nBrkType == 8) {
duplicateMovieClip (LibraryBrick6, strBrkName, num_bricks + 150);
} else if (nBrkType == 9) {
duplicateMovieClip (LibraryBrick7, strBrkName, num_bricks + 150);
} else if (nBrkType == 10) {
duplicateMovieClip (LibraryBrick8, strBrkName, num_bricks + 150);
} else if (nBrkType == 11) {
duplicateMovieClip (LibraryBrickLift, strBrkName, num_bricks + 150);
} else if (nBrkType == 12) {
duplicateMovieClip (LibraryBrickWater, strBrkName, num_bricks + 150);
} else if (nBrkType == 13) {
duplicateMovieClip (LibraryBrickLava, strBrkName, num_bricks + 150);
} else if (nBrkType == 14) {
duplicateMovieClip (LibraryBrickBomb, strBrkName, num_bricks);
} else if (nBrkType == 15) {
duplicateMovieClip (LibraryBrickBreak, strBrkName, num_bricks);
} else if (nBrkType == 16) {
duplicateMovieClip (LibraryBrickLift, strBrkName, num_bricks + 150);
} else if ((((nBrkType == 21) || (nBrkType == 23)) || (nBrkType == 25)) || (nBrkType == 27)) {
duplicateMovieClip (LibraryBrickTeleport, strBrkName, num_bricks + 150);
} else if ((((nBrkType == 22) || (nBrkType == 24)) || (nBrkType == 26)) || (nBrkType == 28)) {
duplicateMovieClip (LibraryBrickTeleport2, strBrkName, num_bricks + 150);
} else if ((nBrkType >= 31) && (nBrkType <= 34)) {
duplicateMovieClip (LibraryBrickMagnet, strBrkName, num_bricks + 150);
} else if ((nBrkType >= 41) && (nBrkType <= 49)) {
duplicateMovieClip (LibraryBrickSwitch, strBrkName, num_bricks + 150);
} else if ((nBrkType >= 51) && (nBrkType <= 99)) {
duplicateMovieClip (LibraryBrickLaser, strBrkName, num_bricks + 0);
}
objBrk = this[strBrkName];
objBrk._x = ConvNetXtoX(j) + 1;
objBrk._y = ConvNetYtoY(i) + 1;
objBrk._NetPosX = j;
objBrk._NetPosY = i;
objBrk._MustDie = 0;
objBrk._Health = 100;
objBrk._Falling = false;
objBrk._DeleteMark = false;
objBrk._visible = true;
objBrk._Parent = 9999;
objBrk._Child = 9999;
objBrk._MoveX = 0;
objBrk._MoveY = 0;
objBrk._Number = num_bricks;
objBrk._DieTimer = 100;
objBrk._LiftStopTime = 0;
objBrk._MagnetOn = 2;
objBrk._BelongMagnet = 9999;
objBrk._SwitchNumber = 9999;
objBrk._MustDie = 0;
objBrk._Type = nBrkType;
if ((nBrkType >= 3) && (nBrkType <= 10)) {
objBrk._MustDie = 1;
}
if (nBrkType == 11) {
objBrk._MoveY = 4;
} else if (nBrkType == 16) {
objBrk._MoveX = 4;
}
if (((nBrkType >= 3) && (nBrkType <= 11)) || (nBrkType == 16)) {
num_can_move_bricks++;
array_can_move_bricks[num_can_move_bricks] = num_bricks;
}
if ((nBrkType == 11) || (nBrkType == 16)) {
num_moving_bricks++;
array_moving_bricks[num_moving_bricks] = num_bricks;
} else if ((nBrkType == 12) || (nBrkType == 13)) {
num_lava_bricks++;
array_lava_bricks[num_lava_bricks] = num_bricks;
} else if (nBrkType == 14) {
num_bomb_bricks++;
array_bomb_bricks[num_bomb_bricks] = num_bricks;
} else if (nBrkType == 15) {
num_break_bricks++;
array_break_bricks[num_break_bricks] = num_bricks;
} else if ((nBrkType >= 21) && (nBrkType <= 30)) {
num_teleport_bricks++;
array_teleport_bricks[num_teleport_bricks] = num_bricks;
}
if ((((((nBrkType >= 1) && (nBrkType <= 11)) || ((nBrkType >= 14) && (nBrkType <= 16))) || ((nBrkType >= 31) && (nBrkType <= 34))) || ((nBrkType >= 41) && (nBrkType <= 49))) || ((nBrkType >= 51) && (nBrkType <= 99))) {
num_hard_bricks++;
array_hard_bricks[num_hard_bricks] = num_bricks;
}
if ((nBrkType >= 51) && (nBrkType <= 99)) {
num_laser_bricks++;
array_laser_bricks[num_laser_bricks] = num_bricks;
objBrk._LaserMaxTime = 80;
if (nBrkType > 60) {
objBrk._LaserMaxTime = 100;
}
if (nBrkType > 70) {
objBrk._LaserMaxTime = 120;
}
if (nBrkType > 80) {
objBrk._LaserMaxTime = 140;
}
if (nBrkType > 90) {
objBrk._LaserMaxTime = 160;
}
objBrk._LaserTimer = objBrk._LaserMaxTime;
objBrk._LaserType = 1;
objBrk._LaserType = nBrkType - (Math.round(nBrkType / 10) * 10);
if (objBrk._LaserType == 2) {
objBrk._rotation = 90;
}
if (objBrk._LaserType == 3) {
objBrk._rotation = 180;
}
if (objBrk._LaserType == 4) {
objBrk._rotation = 270;
}
}
if ((nBrkType >= 31) && (nBrkType <= 34)) {
num_magnet_bricks++;
array_magnet_bricks[num_magnet_bricks] = num_bricks;
objBrk._LaserType = nBrkType - 30;
if (objBrk._LaserType == 2) {
objBrk._rotation = 90;
}
if (objBrk._LaserType == 3) {
objBrk._rotation = 180;
}
if (objBrk._LaserType == 4) {
objBrk._rotation = 270;
}
}
if ((nBrkType >= 41) && (nBrkType <= 49)) {
num_magnetswitch_bricks++;
array_magnetswitch_bricks[num_magnetswitch_bricks] = num_bricks;
objBrk._SwitchNumber = nBrkType - 40;
}
}
j++;
}
i++;
}
FillMustDieArray();
NumberMustDieBricks = GetNumberMustDieBricks();
SetVisiblePanelBricks();
CreateLaserLines();
FillArrayNet();
SetSwitchMagnetValues();
ShowStartMessage(level_number);
delete myDate;
myDate = new Date();
CurrentTime = myDate.getTime();
ElapsedTime = CurrentTime - LastTime;
LastTime = CurrentTime;
if ((level_number > 10) && (RegisteredVersion == 0)) {
ShowDemoLabel();
}
}
function FindBrick(x, y) {
return(ArrayNet[x + ((y - 1) * field_sizeX)]);
}
function FindBrickByType(n) {
var i = 1;
while (i <= num_bricks) {
if (this["brcik" + i]._DieTimer == 100) {
if (this["brcik" + i]._Type == n) {
return(i);
}
}
i++;
}
return(9999);
}
function DeleteBrick(n) {
var objBrk = this["brcik" + n];
ArrayNet[objBrk._NetPosX + ((objBrk._NetPosY - 1) * field_sizeX)] = 9999;
DeleteFromMustDieArray(n);
DeleteFromCanMoveArray(n);
DeleteFromLavaArray(n);
DeleteFromHardArray(n);
DeleteFromBombArray(n);
DeleteFromBreakArray(n);
DeleteFromLaserArray(n);
DeleteFromMagnetArray(n);
DeleteFromSwitchArray(n);
DeleteFromMovingArray(n);
AddToDeathArray(n);
if (belong_brick == n) {
belong_brick = 9999;
}
objBrk._DieTimer = 99;
objBrk.GotoAndPlay(2);
if (objBrk._Child != 9999) {
this["brcik" + objBrk._Child]._Parent = 9999;
objBrk._Child = 9999;
}
if (objBrk._Parent != 9999) {
this["brcik" + objBrk._Parent]._Child = 9999;
objBrk._Parent = 9999;
}
}
function MarkBrickToDelete(n) {
var objBrk = this["brcik" + n];
var objBrk2;
var i;
var j;
var k;
if (Math.abs(objBrk._x - ConvNetXtoX(objBrk._NetPosX)) > 6) {
return(undefined);
}
if (Math.abs(objBrk._y - ConvNetYtoY(objBrk._NetPosY)) > 6) {
return(undefined);
}
if (objBrk._MustDie == 0) {
return(undefined);
}
if (objBrk._Falling) {
return(undefined);
}
if (objBrk._DieTimer != 100) {
return(undefined);
}
if (objBrk._Parent != 9999) {
if ((this["brcik" + objBrk._Parent]._y - objBrk._y) > (brick_size + 6)) {
return(undefined);
}
}
Marked = false;
j = 1;
while (j <= 4) {
k = 9999;
if (j == 1) {
if (objBrk._NetPosX > 1) {
k = FindBrick(objBrk._NetPosX - 1, objBrk._NetPosY);
}
} else if (j == 2) {
if (objBrk._NetPosX < field_sizeX) {
k = FindBrick(objBrk._NetPosX + 1, objBrk._NetPosY);
}
} else if (j == 3) {
if (objBrk._NetPosY > 1) {
k = FindBrick(objBrk._NetPosX, objBrk._NetPosY - 1);
}
} else if (j == 4) {
if (objBrk._NetPosY < field_sizeX) {
k = FindBrick(objBrk._NetPosX, objBrk._NetPosY + 1);
}
}
if (k != 9999) {
objBrk2 = this["brcik" + k];
if (objBrk2._DieTimer == 100) {
if (objBrk._Type == objBrk2._Type) {
if (Math.abs(objBrk2._y - ConvNetYtoY(objBrk2._NetPosY)) < 5) {
if (Math.abs(objBrk2._x - ConvNetXtoX(objBrk2._NetPosX)) < 5) {
if (!objBrk2._Falling) {
if (!((objBrk2._Parent != 9999) && ((this["brcik" + objBrk2._Parent]._y - objBrk2._y) > (brick_size + 6)))) {
difX = objBrk._NetPosX - objBrk2._NetPosX;
difY = objBrk._NetPosY - objBrk2._NetPosY;
if (((((difX == 1) && (difY == 0)) || ((difX == -1) && (difY == 0))) || ((difX == 0) && (difY == 1))) || ((difX == 0) && (difY == -1))) {
SetrightPosition(n);
SetrightPosition(k);
objBrk._DeleteMark = true;
objBrk2._DeleteMark = true;
if ((belong_brick == n) || (belong_brick == k)) {
belong_brick = 9999;
}
Marked = true;
}
}
}
}
}
}
}
}
j++;
}
if (Marked) {
i = 1;
while (i <= num_bricks) {
objBrk2 = this["brcik" + i];
if (objBrk2._visible && (objBrk2._DeleteMark)) {
if (this.ScoreOnBoardText1._DieTimer != 100) {
this.ScoreOnBoardText1._ScoreMultiplier = 1;
ScoreTextSetProperty(objBrk._x, objBrk._y - (brick_size * 1.5), "50");
} else {
this.ScoreOnBoardText1._ScoreMultiplier++;
if ((objBrk._y < (this.ScoreOnBoardText1._y + (brick_size * 1.5))) || (this.ScoreOnBoardText1._DieTimer < 100)) {
ScoreTextSetProperty(objBrk._x, objBrk._y - (brick_size * 1.5), "50");
}
this.ScoreOnBoardText1._DieTimer = 100;
}
Score = Score + 100;
DeleteBrick(i);
}
i++;
}
SetVisiblePanelBricks();
if (this.ScoreOnBoardText1._ScoreMultiplier > 2) {
PlayElimateBonusSound();
} else {
PlayElimateSound();
}
}
}
function GetNumberMustDieBricks() {
return(total_num_must_die_bricks);
}
function DeleteFromLavaArray(n) {
var j = 1;
while (j <= num_lava_bricks) {
if (array_lava_bricks[j] == n) {
if (j < num_lava_bricks) {
array_lava_bricks[j] = array_lava_bricks[num_lava_bricks];
}
num_lava_bricks--;
}
j++;
}
}
function UpdateLavaBricks() {
var objBrk;
var i;
var n;
i = 1;
while (i <= num_lava_bricks) {
objBrk = this["brcik" + array_lava_bricks[i]];
n = FindBrick(objBrk._NetPosX, objBrk._NetPosY);
if (n != 9999) {
if (objBrk._Type == 12) {
DeleteBrick(n);
SetVisiblePanelBricks();
} else if (objBrk._Type == 13) {
level_failed = true;
DeleteBrick(n);
SetVisiblePanelBricks();
}
}
i++;
}
}
function UpdateTeleportBricks() {
var i;
var j;
var n;
var objBrk;
var objBrk2;
i = 1;
while (i <= num_teleport_bricks) {
objBrk = this["brcik" + array_teleport_bricks[i]];
n = FindBrick(objBrk._NetPosX, objBrk._NetPosY);
if (n != 9999) {
if (Math.ceil(objBrk._Type / 2) != Math.floor(objBrk._Type / 2)) {
if (FindBrickByType(objBrk._Type + 1) != 9999) {
objBrk2 = this["brcik" + n];
j = objBrk2._NetPosX + ((objBrk2._NetPosY - 1) * field_sizeX);
ArrayNet[j] = 9999;
objBrk2._x = this["brcik" + FindBrickByType(objBrk._Type + 1)]._x;
objBrk2._y = this["brcik" + FindBrickByType(objBrk._Type + 1)]._y;
objBrk2._NetPosX = ConvXtoNetXround(objBrk2._x);
objBrk2._NetPosY = ConvYtoNetYround(objBrk2._y);
j = objBrk2._NetPosX + ((objBrk2._NetPosY - 1) * field_sizeX);
ArrayNet[j] = n;
objBrk2._Falling = true;
}
}
}
i++;
}
}
function DeleteFromHardArray(n) {
var j = 1;
while (j <= num_hard_bricks) {
if (array_hard_bricks[j] == n) {
if (j < num_hard_bricks) {
array_hard_bricks[j] = array_hard_bricks[num_hard_bricks];
}
hard_bricks--;
}
j++;
}
}
function DeleteFromBombArray(n) {
var j = 1;
while (j <= num_bomb_bricks) {
if (array_bomb_bricks[j] == n) {
if (j < num_bomb_bricks) {
array_bomb_bricks[j] = array_bomb_bricks[num_bomb_bricks];
}
num_bomb_bricks--;
}
j++;
}
}
function UpdateBombBricks() {
var objBrk;
var i;
var n;
var j;
i = 1;
while (i <= num_bomb_bricks) {
objBrk = this["brcik" + array_bomb_bricks[i]];
if (objBrk._NetPosY > 1) {
n = FindBrick(objBrk._NetPosX, objBrk._NetPosY - 1);
if (n != 9999) {
PlayBombSound();
DeleteBrick(n);
n = FindBrick(objBrk._NetPosX, objBrk._NetPosY + 1);
if (n != 9999) {
DeleteBrick(n);
}
n = FindBrick(objBrk._NetPosX - 1, objBrk._NetPosY);
if (n != 9999) {
DeleteBrick(n);
}
n = FindBrick(objBrk._NetPosX + 1, objBrk._NetPosY);
if (n != 9999) {
DeleteBrick(n);
}
n = FindBrick(objBrk._NetPosX + 1, objBrk._NetPosY - 1);
if (n != 9999) {
DeleteBrick(n);
}
n = FindBrick(objBrk._NetPosX + 1, objBrk._NetPosY + 1);
if (n != 9999) {
DeleteBrick(n);
}
n = FindBrick(objBrk._NetPosX - 1, objBrk._NetPosY - 1);
if (n != 9999) {
DeleteBrick(n);
}
n = FindBrick(objBrk._NetPosX - 1, objBrk._NetPosY + 1);
if (n != 9999) {
DeleteBrick(n);
}
objBrk.GotoAndPlay(3);
j = 1;
while (j <= num_lava_bricks) {
objBrk2 = this["brcik" + array_lava_bricks[j]];
if ((Math.abs(objBrk2._NetPosX - objBrk._NetPosX) <= 1) && (Math.abs(objBrk2._NetPosY - objBrk._NetPosY) <= 1)) {
DeleteBrick(objBrk2._Number);
}
j++;
}
SetVisiblePanelBricks();
}
}
i++;
}
}
function DeleteFromBreakArray(n) {
var j = 1;
while (j <= num_break_bricks) {
if (array_break_bricks[j] == n) {
if (j < num_break_bricks) {
array_break_bricks[j] = array_break_bricks[num_break_bricks];
}
num_break_bricks--;
}
j++;
}
}
function UpdateBreakBricks() {
var objBrk;
var objBrk2;
var i;
var n;
i = 1;
while (i <= num_break_bricks) {
objBrk = this["brcik" + array_break_bricks[i]];
if (objBrk._NetPosY > 1) {
n = FindBrick(objBrk._NetPosX, objBrk._NetPosY - 1);
objBrk2 = this["brcik" + n];
if (n != 9999) {
if (objBrk2._MustDie == 1) {
objBrk.GotoAndStop(5 - Math.round(objBrk._Health / 20));
objBrk._Health = objBrk._Health - 3;
if (objBrk._Health <= 0) {
DeleteBrick(FindBrick(objBrk._NetPosX, objBrk._NetPosY));
}
}
}
}
i++;
}
}
function DeleteFromLaserArray(n) {
var j = 1;
while (j <= num_laser_bricks) {
if (array_laser_bricks[j] == n) {
if (j < num_laser_bricks) {
array_laser_bricks[j] = array_laser_bricks[num_laser_bricks];
}
num_laser_bricks--;
}
j++;
}
}
function UpdateLaserBricks() {
var objBrk;
var i;
i = 1;
while (i <= num_laser_bricks) {
objBrk = this["brcik" + array_laser_bricks[i]];
objBrk._LaserTimer = objBrk._LaserTimer - 1;
if (objBrk._LaserTimer < 1) {
objBrk._LaserTimer = objBrk._LaserMaxTime;
}
GetLaserTarget(array_laser_bricks[i]);
if (objBrk._LaserTimer < (objBrk._LaserMaxTime / 4)) {
LaserFire(array_laser_bricks[i]);
}
UpdateLaserLines(i);
i++;
}
}
function GetLaserTarget(n) {
var objBrk = this["brcik" + n];
var temp_i;
var add_x = -1;
var add_y = 0;
objBrk._LaserEndNetX = 9999;
if (objBrk._LaserType == 1) {
add_x = -1;
add_y = 0;
} else if (objBrk._LaserType == 2) {
add_x = 0;
add_y = -1;
} else if (objBrk._LaserType == 3) {
add_x = 1;
add_y = 0;
} else if (objBrk._LaserType == 4) {
add_x = 0;
add_y = 1;
}
var b = false;
var cur_x = (objBrk._NetPosX + add_x);
var cur_y = (objBrk._NetPosY + add_y);
objBrk._LaserStartNetX = cur_x;
objBrk._LaserStartNetY = cur_y;
do {
if (!((FindBrick(cur_x, cur_y) == 9999) || (this["brcik" + FindBrick(cur_x, cur_y)]._MustDie == 1))) {
break;
}
b = true;
cur_x = cur_x + add_x;
cur_y = cur_y + add_y;
if (cur_x < 1) {
break;
}
if (cur_y < 1) {
break;
}
if (cur_x > field_sizeX) {
break;
}
} while (cur_y <= field_sizeY);
if (b) {
objBrk._LaserEndNetX = cur_x - add_x;
objBrk._LaserEndNetY = cur_y - add_y;
if (objBrk._LaserEndNetX < objBrk._LaserStartNetX) {
temp_i = objBrk._LaserEndNetX;
objBrk._LaserEndNetX = objBrk._LaserStartNetX;
objBrk._LaserStartNetX = temp_i;
}
if (objBrk._LaserEndNetY < objBrk._LaserStartNetY) {
temp_i = objBrk._LaserEndNetY;
objBrk._LaserEndNetY = objBrk._LaserStartNetY;
objBrk._LaserStartNetY = temp_i;
}
}
}
function LaserFire(n) {
var objBrk = this["brcik" + n];
var objBrk2;
var i;
var j;
var add_x = 0;
var add_y = 0;
if (objBrk._LaserEndNetX == 9999) {
return(undefined);
}
i = objBrk._LaserStartNetX;
while (i <= objBrk._LaserEndNetX) {
j = objBrk._LaserStartNetY;
while (j <= objBrk._LaserEndNetY) {
objBrk2 = FindBrick(i, j);
if (objBrk2 != 9999) {
if (this["brcik" + objBrk2]._MustDie == 1) {
level_failed = true;
DeleteBrick(objBrk2);
}
}
j++;
}
i++;
}
}
function CreateLaserLines() {
var i;
var j;
var strName;
var objBrk;
var objBrk2;
i = 1;
while (i <= num_laser_bricks) {
j = 1;
while (j <= 14) {
strName = (("laser" + i) + "_") + j;
duplicateMovieClip (LibraryLaser, strName, (500 + (i * 15)) + j);
objBrk = this[strName];
objBrk2 = this["brcik" + array_laser_bricks[i]];
objBrk._visible = false;
if ((objBrk2._LaserType == 2) || (objBrk2._LaserType == 4)) {
objBrk._rotation = 90;
}
j++;
}
i++;
}
}
function DeleteLaserLines() {
var i;
var j;
i = 1;
while (i <= 20) {
j = 1;
while (j <= 14) {
removeMovieClip(this[(("laser" + i) + "_") + j]);
j++;
}
i++;
}
}
function UpdateLaserLines(n) {
var objBrk;
var objBrk2;
var j = 1;
while (j <= 14) {
this[(("laser" + n) + "_") + j]._visible = false;
j++;
}
objBrk = this["brcik" + array_laser_bricks[n]];
if (objBrk._LaserTimer >= (objBrk._LaserMaxTime / 4)) {
return(undefined);
}
if (objBrk._LaserEndNetX == 9999) {
return(undefined);
}
var cur = 1;
var i;
var j;
i = objBrk._LaserStartNetX;
while (i <= objBrk._LaserEndNetX) {
j = objBrk._LaserStartNetY;
while (j <= objBrk._LaserEndNetY) {
objBrk2 = this[(("laser" + n) + "_") + cur];
objBrk2._visible = true;
objBrk2._x = ConvNetXtoX(i);
objBrk2._y = ConvNetYtoY(j);
cur++;
j++;
}
i++;
}
}
function DeleteFromMagnetArray(n) {
var j = 1;
while (j <= num_magnet_bricks) {
if (array_magnet_bricks[j] == n) {
if (j < num_magnet_bricks) {
array_magnet_bricks[j] = array_magnet_bricks[num_magnet_bricks];
}
num_magnet_bricks--;
}
j++;
}
}
function UpdateMagnetBricks() {
var j;
var objBrk;
var objBrk2;
var n;
var add_x;
var add_y;
var i = 1;
while (i <= num_magnetswitch_bricks) {
objBrk = this["brcik" + array_magnetswitch_bricks[i]];
m = FindBrick(objBrk._NetPosX, objBrk._NetPosY - 1);
n = objBrk._SwitchNumber;
objBrk2 = this["brcik" + n];
if (m == 9999) {
if (objBrk2._MagnetOn == 1) {
ChangeMagnetValue(n, array_magnetswitch_bricks[i]);
}
} else if (objBrk2._MagnetOn == 2) {
ChangeMagnetValue(n, array_magnetswitch_bricks[i]);
}
i++;
}
var i = 1;
while (i <= num_magnet_bricks) {
objBrk = this["brcik" + array_magnet_bricks[i]];
if (objBrk._MagnetOn == 1) {
n = FindMagnetTarget(array_magnet_bricks[i]);
if (n != 9999) {
objBrk2 = this["brcik" + n];
if (belong_brick == n) {
belong_brick = 9999;
}
objBrk2._BelongMagnet = array_magnet_bricks[i];
objBrk2._Falling = false;
add_x = 0;
add_y = 0;
if (objBrk._LaserType == 1) {
add_y = 1;
} else if (objBrk._LaserType == 2) {
add_x = -1;
} else if (objBrk._LaserType == 3) {
add_y = -1;
} else if (objBrk._LaserType == 4) {
add_x = 1;
}
if (((FindBrick(objBrk._NetPosX + add_x, objBrk._NetPosY + add_y) == 9999) || ((add_y != 0) && ((objBrk2._y - ConvNetYtoY(ConvYtoNetY(objBrk2._y))) > (Math.abs(objBrk2._MoveY) + add_y)))) || ((add_x != 0) && ((objBrk2._x - ConvNetXtoX(ConvXtoNetX(objBrk2._x))) > (Math.abs(objBrk2._MoveX) + add_x)))) {
j = objBrk2._NetPosX + ((objBrk2._NetPosY - 1) * field_sizeX);
ArrayNet[j] = 9999;
if (objBrk._LaserType == 1) {
if (objBrk2._y > ((objBrk._y + brick_size) + 2)) {
objBrk2._y = objBrk2._y - 4;
MarkBrickToDelete(n);
}
} else if (objBrk._LaserType == 2) {
objBrk2._x = objBrk2._x + 4;
} else if (objBrk._LaserType == 3) {
objBrk2._y = objBrk2._y + 4;
} else if (objBrk._LaserType == 4) {
objBrk2._x = objBrk2._x - 4;
}
objBrk2._NetPosX = ConvXtoNetX(objBrk2._x);
objBrk2._NetPosY = ConvYtoNetY(objBrk2._y);
j = objBrk2._NetPosX + ((objBrk2._NetPosY - 1) * field_sizeX);
ArrayNet[j] = n;
if ((objBrk._LaserType == 1) || (objBrk._LaserType == 3)) {
objBrk2._x = ConvNetXtoX(objBrk2._NetPosX);
}
if ((objBrk._LaserType == 2) || (objBrk._LaserType == 4)) {
objBrk2._y = ConvNetYtoY(objBrk2._NetPosY);
}
} else {
SetrightPosition(n);
}
}
}
i++;
}
}
function FindMagnetTarget(n) {
var objBrk = this["brcik" + n];
var objBrk2;
var add_x = 0;
var add_y = 0;
if (objBrk._LaserType == 1) {
add_y = 1;
} else if (objBrk._LaserType == 2) {
add_x = -1;
} else if (objBrk._LaserType == 3) {
add_y = -1;
} else if (objBrk._LaserType == 4) {
add_x = 1;
}
var b = false;
var cur_x = (objBrk._NetPosX + (1 * add_x));
var cur_y = (objBrk._NetPosY + (1 * add_y));
do {
if (FindBrick(cur_x, cur_y) != 9999) {
break;
}
b = true;
cur_x = cur_x + add_x;
cur_y = cur_y + add_y;
if (cur_x < 1) {
break;
}
if (cur_y < 1) {
break;
}
if (cur_x > field_sizeX) {
break;
}
} while (cur_y <= field_sizeY);
if ((((cur_x >= 1) && (cur_y >= 1)) && (cur_x <= field_sizeX)) && (cur_y <= field_sizeY)) {
if (FindBrick(cur_x, cur_y) != 9999) {
objBrk2 = this["brcik" + FindBrick(cur_x, cur_y)];
if (objBrk2._MustDie == 1) {
if (objBrk2._Parent == 9999) {
return(FindBrick(cur_x, cur_y));
}
}
}
}
return(9999);
}
function ChangeMagnetValue(n, m) {
var objBrk = this["brcik" + n];
if (objBrk._MagnetOn == 1) {
objBrk._MagnetOn = 2;
} else {
objBrk._MagnetOn = 1;
}
if (objBrk._MagnetOn == 1) {
this["brcik" + m].GotoAndStop(3);
} else if (objBrk._MagnetOn == 2) {
this["brcik" + m].GotoAndStop(1);
}
}
function SetSwitchMagnetValues() {
var objBrk;
var j = 1;
while (j <= num_magnetswitch_bricks) {
objBrk = this["brcik" + array_magnetswitch_bricks[j]];
objBrk._SwitchNumber = this["brcik" + array_magnet_bricks[objBrk._SwitchNumber]]._Number;
j++;
}
}
function DeleteFromSwitchArray(n) {
var j = 1;
while (j <= num_magnetswitch_bricks) {
if (array_magnetswitch_bricks[j] == n) {
if (j < num_magnetswitch_bricks) {
array_magnetswitch_bricks[j] = array_magnetswitch_bricks[num_magnetswitch_bricks];
}
num_magnetswitch_bricks--;
}
j++;
}
}
function DeleteFromDeathArray(n) {
var j = 1;
while (j <= num_death_bricks) {
if (array_death_bricks[j] == n) {
if (j < num_death_bricks) {
array_death_bricks[j] = array_death_bricks[num_death_bricks];
}
num_death_bricks--;
}
j++;
}
}
function AddToDeathArray(n) {
num_death_bricks++;
array_death_bricks[num_death_bricks] = n;
}
function AddToNextStepArray(n) {
num_next_step_array++;
mark_next_step_array[num_next_step_array] = n;
}
function UpdateNextStepArray() {
var i = 1;
while (i <= num_next_step_array) {
MarkBrickToDelete(mark_next_step_array[i]);
i++;
}
num_next_step_array = 0;
}
function UpdateGame() {
var objBrk;
var d_x;
var d_y;
var k;
if (demo_mode) {
demo_timer--;
if (demo_timer <= 0) {
demo_mode = false;
demo_timer = 0;
PlayMainMenuMusic();
ShowBuyMeWindow(1);
return(undefined);
}
}
UpdateNextStepArray();
var n_x = ConvXtoNetXround(_xmouse);
var n_y = ConvYtoNetYround(_ymouse);
MovePause--;
if (MovePause <= 0) {
if ((((n_x >= 1) && (n_x <= field_sizeX)) && (n_y >= 1)) && (n_y <= field_sizeY)) {
MovePause = 2;
if (n_x > arrow1._NetPosX) {
d_x = 1;
}
if (n_x < arrow1._NetPosX) {
d_x = -1;
}
if (belong_brick == 9999) {
arrow1._NetPosX = n_x;
arrow1._NetPosY = n_y;
arrow1._x = ConvNetXtoX(arrow1._NetPosX);
arrow1._y = ConvNetYtoY(arrow1._NetPosY);
} else if (n_x != arrow1._NetPosX) {
if (FindBrick(arrow1._NetPosX + d_x, arrow1._NetPosY) == 9999) {
objBrk = this["brcik" + belong_brick];
if (!objBrk._Falling) {
if (!((objBrk._Parent != 9999) && (((this["brcik" + objBrk._Parent]._y - brick_size) - objBrk._y) > 10))) {
PlayBloxMovingSound();
ArrayNet[objBrk._NetPosX + ((objBrk._NetPosY - 1) * field_sizeX)] = 9999;
arrow1._NetPosX = arrow1._NetPosX + d_x;
arrow1._x = ConvNetXtoX(arrow1._NetPosX);
arrow1._y = ConvNetYtoY(arrow1._NetPosY);
objBrk._x = arrow1._x;
objBrk._y = arrow1._y;
objBrk._NetPosX = arrow1._NetPosX;
objBrk._NetPosY = arrow1._NetPosY;
ArrayNet[objBrk._NetPosX + ((objBrk._NetPosY - 1) * field_sizeX)] = belong_brick;
if (objBrk._Child != 9999) {
this["brcik" + objBrk._Child]._Parent = 9999;
objBrk._Child = 9999;
}
if (objBrk._Parent != 9999) {
this["brcik" + objBrk._Parent]._Child = 9999;
objBrk._Parent = 9999;
}
AddToNextStepArray(belong_brick);
}
}
}
if (belong_brick != 9999) {
if (objBrk._Parent == 9999) {
if (!objBrk._Falling) {
objBrk._x = ConvNetXtoX(objBrk._NetPosX);
objBrk._y = ConvNetYtoY(objBrk._NetPosY);
arrow1._x = this["brcik" + belong_brick]._x;
arrow1._y = this["brcik" + belong_brick]._y;
arrow1._NetPosX = this["brcik" + belong_brick]._NetPosX;
arrow1._NetPosY = this["brcik" + belong_brick]._NetPosY;
}
}
}
}
}
}
UpdateParentChild();
UpdateMoving();
UpdateFalling();
if (num_magnet_bricks > 0) {
var i = 1;
while (i <= total_num_must_die_bricks) {
objBrk = this["brcik" + array_must_die_bricks[i]];
objBrk._BelongMagnet = 9999;
i++;
}
}
UpdateMoveArrows();
ScoreTextUpdate();
ScoreBonusTextUpdate();
UpdateMagnetBricks();
UpdateLaserBricks();
UpdateDieTimer();
UpdateBreakBricks();
UpdateBombBricks();
UpdateTeleportBricks();
UpdateLavaBricks();
objBrk = this["brcik" + belong_brick];
arrow1._x = objBrk._x;
arrow1._y = objBrk._y;
arrow1._NetPosX = objBrk._NetPosX;
arrow1._NetPosY = objBrk._NetPosY;
NumberMustDieBricks = GetNumberMustDieBricks();
if ((NumberMustDieBricks == 0) || (level_failed)) {
FinishLevelTimer = FinishLevelTimer - 10;
}
if (EnableEscSkipLevel == 1) {
if (Key.isDown(27) || (Key.isDown(39))) {
ShowLevelFinishedWindow();
}
} else if (Key.isDown(27)) {
PlayButtonSound();
ShowGameMenuWindow();
}
if (FinishLevelTimer < 0) {
if (!level_failed) {
PlayLevelCompleteSound();
ShowLevelFinishedWindow();
}
}
if (FinishLevelTimer < 0) {
if (level_failed) {
PlayLevelInCompleteSound();
ShowLevelFailedWindow();
}
}
if (took_brick) {
if (this.arrow1._currentframe < 35) {
this.arrow1.GotoAndPlay(35);
}
}
if (!took_brick) {
if (this.arrow1._currentframe >= 35) {
this.arrow1.GotoAndPlay(1);
}
}
delete myDate;
myDate = new Date();
CurrentTime = myDate.getTime();
ElapsedTime = (CurrentTime - LastTime) / 250;
LastTime = CurrentTime;
Time = Time - ElapsedTime;
if (Time < 0) {
Time = 0;
}
TimeRound = Math.Round(Time / 10) * 10;
}
function InitPanelBricks() {
var objBrk;
var i = 1;
while (i <= 8) {
duplicateMovieClip ("LibraryBrick" + i, "panel_brick" + i, 350 + i);
i++;
}
var i = 1;
while (i <= 8) {
objBrk = this["panel_brick" + i];
objBrk._width = 29;
objBrk._height = 29;
i++;
}
array_panel_bricks = new array(10);
var i = 2;
while (i <= 8) {
duplicateMovieClip ("left_panel_text1", "left_panel_text" + i, 420 + i);
i++;
}
}
function CalculateNumBricksEachColor() {
var objBrk;
num_panel_bricks = 0;
var i = 1;
while (i <= 8) {
array_panel_bricks[i] = 0;
var j = 1;
while (j <= num_bricks) {
objBrk = this["brcik" + j];
if (objBrk._DieTimer == 100) {
if (objBrk._Type == (i + 2)) {
array_panel_bricks[i]++;
}
}
j++;
}
i++;
}
}
function GetBrXCoordFromPlace(place) {
var leftPanelXCoord = 26;
if (place == 1) {
return(leftPanelXCoord);
}
if (place == 2) {
return(leftPanelXCoord);
}
if (place == 3) {
return(leftPanelXCoord);
}
if (place == 4) {
return(leftPanelXCoord);
}
if (place == 5) {
return(leftPanelXCoord + 57);
}
if (place == 6) {
return(leftPanelXCoord + 57);
}
if (place == 7) {
return(leftPanelXCoord + 57);
}
if (place == 8) {
return(leftPanelXCoord + 57);
}
}
function GetBrYCoordFromPlace(place) {
var leftPanelYCoord = 258;
if (place == 1) {
return(leftPanelYCoord);
}
if (place == 2) {
return(leftPanelYCoord + 36);
}
if (place == 3) {
return(leftPanelYCoord + 72);
}
if (place == 4) {
return(leftPanelYCoord + 108);
}
if (place == 5) {
return(leftPanelYCoord);
}
if (place == 6) {
return(leftPanelYCoord + 36);
}
if (place == 7) {
return(leftPanelYCoord + 72);
}
if (place == 8) {
return(leftPanelYCoord + 108);
}
}
function SetVisiblePanelBricks() {
var objBrk;
var i = 1;
while (i <= 8) {
this["panel_brick" + i]._visible = false;
i++;
}
var i = 1;
while (i <= 8) {
this["left_panel_text" + i]._visible = false;
i++;
}
CalculateNumBricksEachColor();
cur_place = 0;
var i = 1;
while (i <= 8) {
if (array_panel_bricks[i] != 0) {
cur_place++;
objBrk = this["panel_brick" + i];
objBrk2 = this["left_panel_text" + i];
objBrk._visible = true;
objBrk2._visible = true;
objBrk2.text = "x" + array_panel_bricks[i];
objBrk._x = GetBrXCoordFromPlace(cur_place);
objBrk._y = GetBrYCoordFromPlace(cur_place);
objBrk2._x = GetBrXCoordFromPlace(cur_place) + 12;
objBrk2._y = GetBrYCoordFromPlace(cur_place) - 10;
}
i++;
}
}
function ShowStartMessage(n) {
LevelStart1.hint1_clip._visible = false;
LevelStart1.hint2_clip._visible = false;
LevelStart1.hint3_clip._visible = false;
LevelStart1.hint4_clip._visible = false;
LevelStart1.hint5_clip._visible = false;
LevelStart1.hint6_clip._visible = false;
LevelStart1.hint7_clip._visible = false;
LevelStart1.hint8_clip._visible = false;
LevelStart1.hint9_clip._visible = false;
LevelStart1.hint10_clip._visible = false;
if (n == 1) {
LevelStart1.hint1_clip._visible = true;
LevelStart1.hint1_clip.gotoandplay(1);
LevelStart1.Hint.text = "Click a blox then move mouse to drag it. Blox are pulled down by gravity and cannot be dragged up.\n\nRemove similar colored blox by dragging them together. Remove all colored blox to beat the level.";
ShowLevelStartWindow();
} else if (n == 2) {
LevelStart1.hint9_clip._visible = true;
LevelStart1.hint9_clip.gotoandplay(1);
LevelStart1.Hint.text = "Move blox in correct order to avoid getting stuck.\nIf stuck click the retry button.";
ShowLevelStartWindow();
} else if (n == 3) {
LevelStart1.hint7_clip._visible = true;
LevelStart1.hint7_clip.gotoandplay(1);
LevelStart1.Hint.text = "Use the elevator to move a blox upwards.";
ShowLevelStartWindow();
} else if (n == 4) {
LevelStart1.hint10_clip._visible = true;
LevelStart1.hint10_clip.gotoandplay(1);
LevelStart1.Hint.text = "Place 3 similar blox together carefully\nso that you do not end up with 1 blox left.";
ShowLevelStartWindow();
} else if (n == 6) {
LevelStart1.hint3_clip._visible = true;
LevelStart1.hint3_clip.gotoandplay(1);
LevelStart1.Hint.text = "Damaged blox slowly break apart\nwhen a blox is placed on top of it.";
ShowLevelStartWindow();
} else if (n == 8) {
LevelStart1.hint2_clip._visible = true;
LevelStart1.hint2_clip.gotoandplay(1);
LevelStart1.Hint.text = "Drop a blox on a bomb to destroy the surrounding blox.\n\nHint: Use the bomb to remove single blox.";
ShowLevelStartWindow();
} else if (n == 9) {
LevelStart1.hint4_clip._visible = true;
LevelStart1.hint4_clip.gotoandplay(1);
LevelStart1.Hint.text = "Drop blox in water to safely remove them.\nDo not drop in lava (lava in later levels).";
ShowLevelStartWindow();
} else if (n == 13) {
LevelStart1.hint6_clip._visible = true;
LevelStart1.hint6_clip.gotoandplay(1);
LevelStart1.Hint.text = "Use the warp gate to\ntransport a blox.";
ShowLevelStartWindow();
} else if (n == 22) {
LevelStart1.hint8_clip._visible = true;
LevelStart1.hint8_clip.gotoandplay(1);
LevelStart1.Hint.text = "Avoid the laser beams.";
ShowLevelStartWindow();
} else if (n == 27) {
LevelStart1.hint5_clip._visible = true;
LevelStart1.hint5_clip.gotoandplay(1);
LevelStart1.Hint.text = "Use a magnet to lift a blox.\n\nActivate a magnet using the switches.";
ShowLevelStartWindow();
} else {
ShowPlayArea();
}
}
function ScoreTextSetProperty(x1, y1, p_value) {
var objScoreText = this.ScoreOnBoardText1;
objScoreText._ScoreValue = 100;
objScoreText._NetPosX = x1;
objScoreText._y = y1;
objScoreText.text = p_value;
objScoreText._DieTimer = 100;
}
function ScoreTextUpdate() {
var objScoreText = this.ScoreOnBoardText1;
objScoreText._DieTimer = objScoreText._DieTimer - 5;
if (objScoreText._DieTimer < 1) {
objScoreText._visible = false;
return(undefined);
}
objScoreText._visible = true;
if (objScoreText._ScoreMultiplier > 2) {
objScoreText.text = ((objScoreText._ScoreValue * objScoreText._ScoreMultiplier) + " bonus x") + objScoreText._ScoreMultiplier;
} else {
objScoreText.text = objScoreText._ScoreValue * objScoreText._ScoreMultiplier;
}
if (objScoreText._DieTimer > 50) {
objScoreText._Alpha = 150 - objScoreText._DieTimer;
} else {
objScoreText._Alpha = objScoreText._DieTimer * 2;
}
if (objScoreText._ScoreMultiplier > 2) {
if (objScoreText._DieTimer > 80) {
objScoreText._xscale = 100 + ((objScoreText._DieTimer - 80) * 50);
} else {
objScoreText._xscale = 100;
}
} else {
objScoreText._xscale = 100;
objScoreText._y = objScoreText._y - 3;
}
objScoreText._x = objScoreText._NetPosX - (objScoreText._width / 2);
}
function InitMoveArrows() {
movementarrow_right._rotation = 180;
movementarrow_left._visible = true;
movementarrow_right._visible = true;
movementarrow_left._alpha = 0;
movementarrow_right._alpha = 0;
}
function UpdateMoveArrows() {
var objBrk = this["brcik" + belong_brick];
r_a = false;
l_a = false;
if ((belong_brick != 9999) && (took_brick)) {
if (!objBrk._Falling) {
if (FindBrick(arrow1._NetPosX + 1, arrow1._NetPosY) == 9999) {
r_a = true;
}
}
}
if ((belong_brick != 9999) && (took_brick)) {
if (!objBrk._Falling) {
if (FindBrick(arrow1._NetPosX - 1, arrow1._NetPosY) == 9999) {
l_a = true;
}
}
}
if (r_a) {
movementarrow_right._x = arrow1._x + 30;
movementarrow_right._y = arrow1._y;
if (movementarrow_right._alpha < 100) {
movementarrow_right._alpha = movementarrow_right._alpha + 30;
}
} else if (movementarrow_right._alpha > 0) {
movementarrow_right._alpha = movementarrow_right._alpha - 30;
}
if (l_a) {
movementarrow_left._x = arrow1._x - 30;
movementarrow_left._y = arrow1._y;
if (movementarrow_left._alpha < 100) {
movementarrow_left._alpha = movementarrow_left._alpha + 30;
}
} else if (movementarrow_left._alpha > 0) {
movementarrow_left._alpha = movementarrow_left._alpha - 30;
}
if (movementarrow_left._alpha > 100) {
movementarrow_left._alpha = 100;
} else if (movementarrow_left._alpha < 0) {
movementarrow_left._alpha = 0;
}
if (movementarrow_right._alpha > 100) {
movementarrow_right._alpha = 100;
} else if (movementarrow_right._alpha < 0) {
movementarrow_right._alpha = 0;
}
movementarrow_left._height = movementarrow_left._alpha / 8;
movementarrow_left._width = movementarrow_left._alpha / 8;
movementarrow_right._height = movementarrow_right._alpha / 8;
movementarrow_right._width = movementarrow_right._alpha / 8;
}
function HideAllWindows() {
PlayArea._visible = false;
MainMenu1._visible = false;
MainMenuMode = false;
Help1._visible = false;
GameMenu1._visible = false;
dialog_level_finished1._visible = false;
LevelStart1._visible = false;
LevelFailed1._visible = false;
EnterYourName1._visible = false;
BuyMeWindow1._visible = false;
LibraryDemoLabel1._visible = false;
SelectLevelFree1._visible = false;
SelectLevelBlue1._visible = false;
SelectLevelPurple1._visible = false;
OptionsMenu1._visible = false;
}
function ShowPlayArea() {
HideAllWindows();
PlayArea._visible = true;
PlayArea.gotoandplay(1);
dialog_mode = false;
level_complete_mode = false;
}
function ShowDemoLabel() {
HideAllWindows();
dialog_mode = true;
demo_mode = true;
demo_timer = 80;
PlayArea._visible = true;
LibraryDemoLabel1._visible = true;
LibraryDemoLabel1.gotoandplay(1);
}
function ShowMainMenu() {
HideAllWindows();
MainMenu1._visible = true;
MainMenu1.gotoandplay(1);
MainMenuMode = true;
dialog_mode = true;
if (HiScoreEnabled == 0) {
MainMenu1.Button_HighScores._visible = false;
}
if (RegisteredVersion == 1) {
MainMenu1.Button_Buy._visible = false;
}
if ((RegisteredVersion == 1) || (LinkDownload.length == 0)) {
MainMenu1.Button_Download._visible = false;
}
}
function ShowSelectLevelFreeWindow() {
HideAllWindows();
MainMenu1._visible = true;
SelectLevelFree1._visible = true;
SelectLevelFree1.gotoandplay(1);
dialog_mode = true;
}
function ShowSelectLevelBlueWindow() {
HideAllWindows();
MainMenu1._visible = true;
SelectLevelBlue1._visible = true;
SelectLevelBlue1.gotoandplay(1);
dialog_mode = true;
}
function ShowSelectLevelPurpleWindow() {
HideAllWindows();
MainMenu1._visible = true;
SelectLevelPurple1._visible = true;
SelectLevelPurple1.gotoandplay(1);
dialog_mode = true;
}
function ShowOptionsMenu(menuMode) {
HideAllWindows();
if (menuMode == 2) {
PlayArea._visible = true;
} else {
MainMenu1._visible = true;
}
OptionsMenu1._visible = true;
OptionsMenu1.gotoandplay(1);
dialog_mode = true;
optionsMenuMode = menuMode;
OptionsMenu1.sound_check._visible = SoundOn;
OptionsMenu1.music_check._visible = MusicOn;
if (OptionsMenu1._highquality) {
OptionsMenu1.quality_check._visible = true;
} else {
OptionsMenu1.quality_check._visible = false;
}
}
function ShowEnterYourNameWindow() {
HideAllWindows();
PlayArea._visible = true;
EnterYourName1._visible = true;
EnterYourName1.gotoandplay(1);
dialog_mode = true;
}
function ShowBuyMeWindow(buyMeMode) {
HideAllWindows();
BuyMeWindowMode = buyMeMode;
BuyMeWindow1._visible = true;
BuyMeWindow1.gotoandplay(1);
BuyMeWindow1.BuyMe_Hint1_clip.gotoandplay(1);
dialog_mode = true;
}
function ShowHelpWindow(helpMode) {
HideAllWindows();
helpWindowMode = helpMode;
HelpWindowFrameNum = 0;
Help1._visible = true;
Help1.gotoandplay(1);
dialog_mode = true;
}
function ShowLevelStartWindow() {
HideAllWindows();
LevelStart1._visible = true;
LevelStart1.gotoandplay(1);
dialog_mode = true;
}
function ShowLevelFinishedWindow() {
HideAllWindows();
dialog_mode = true;
level_complete_mode = true;
PlayArea._visible = true;
dialog_level_finished1._visible = true;
dialog_level_finished1.gotoandplay(1);
}
function ShowLevelFailedWindow() {
HideAllWindows();
dialog_mode = true;
PlayArea._visible = true;
LevelFailed1._visible = true;
LevelFailed1.gotoandplay(1);
}
function ShowGameMenuWindow() {
HideAllWindows();
dialog_mode = true;
PlayArea._visible = true;
GameMenu1._visible = true;
GameMenu1.gotoandplay(1);
}
function PlayButtonSound() {
if (SoundOn) {
SoundPushButton.start();
}
}
function PlayBonusCountSound() {
if (SoundOn) {
SoundBonusCount.start();
}
}
function PlayElimateSound() {
if (SoundOn) {
SoundElimenateBlox.start();
}
}
function PlayElimateBonusSound() {
if (SoundOn) {
SoundBonus.start();
}
}
function PlayBombSound() {
if (SoundOn) {
SoundBombExplode.start();
}
}
function PlayBloxMovingSound() {
if (SoundOn) {
SoundBloxMoving.start();
}
}
function PlayLevelCompleteSound() {
if (SoundOn) {
SoundLevelComplete.start();
}
}
function PlayLevelInCompleteSound() {
if (SoundOn) {
SoundLevelInComplete.start();
}
}
function PlayGetBloxSound() {
if (SoundOn) {
SoundGetBlox.start();
}
}
function StopMusic() {
MainMenuMusic.stop();
GamePlayMusic1.stop();
GamePlayMusic2.stop();
}
function PlayMainMenuMusic() {
StopMusic();
if (MusicOn) {
MainMenuMusic.start(0, 1000000);
}
}
function PlayGamePlayMusic() {
StopMusic();
}
function SelectLevel_StartGame(levelNum, isFreePeek) {
PlayButtonSound();
StopMusic();
Score = 0;
retry = 1;
level_number = levelNum;
LoadBricks(field_sizeX, field_sizeY);
PlayGamePlayMusic();
Time = 990;
}
function GotoNextLevel() {
level_number++;
if (level_number > total_num_levels) {
if (HiScoreEnabled == 1) {
ShowEnterYourNameWindow();
} else {
PlayMainMenuMusic();
ShowMainMenu();
}
level_complete_mode = false;
} else if ((level_number > 10) && (RegisteredVersion == 0)) {
if ((level_number <= 11) && (HiScoreEnabled == 1)) {
ShowEnterYourNameWindow();
} else {
PlayMainMenuMusic();
ShowBuyMeWindow(1);
}
} else {
ShowPlayArea();
LoadBricks(field_sizeX, field_sizeY);
retry = 1;
level_complete_mode = false;
Time = 990;
PlayGamePlayMusic();
}
}
function EncrpytString(strVal) {
var strKey = "aHfEjcDebChGiAfIjDbEjacD";
var nLenKey = strKey.length;
var strZero = "0";
var strOut = "";
var nTot = strVal.length;
var nCntKey = 0;
var strOut = "";
var nCodeVal;
var nCodeKey;
var nTemp;
var nChecksum = 0;
nCnt = 0;
while (nCnt < nTot) {
nCodeVal = strVal.charCodeAt(nCnt);
if (nCodeVal >= 128) {
nCodeVal = "X";
}
nCodeKey = strKey.charCodeAt(nCntKey);
nCntKey = nCntKey + 1;
if (nCntKey >= nLenKey) {
nCntKey = 0;
}
nTemp = (nCodeVal % 16) + nCodeKey;
strOut = strOut + String.fromCharCode(nTemp);
nChecksum = nChecksum + nTemp;
nCodeKey = strKey.charCodeAt(nCntKey);
nCntKey = nCntKey + 1;
if (nCntKey >= nLenKey) {
nCntKey = 0;
}
nTemp = Math.floor(nCodeVal / 16) + nCodeKey;
strOut = strOut + String.fromCharCode(nTemp);
nChecksum = nChecksum + nTemp;
nCnt++;
}
nChecksum = nChecksum % 256;
nCodeKey = strKey.charCodeAt(nCntKey);
nCntKey = nCntKey + 1;
if (nCntKey >= nLenKey) {
nCntKey = 0;
}
nTemp = (nChecksum % 16) + nCodeKey;
strOut = strOut + String.fromCharCode(nTemp);
nCodeKey = strKey.charCodeAt(nCntKey);
nCntKey = nCntKey + 1;
if (nCntKey >= nLenKey) {
nCntKey = 0;
}
nTemp = Math.floor(nChecksum / 16) + nCodeKey;
strOut = strOut + String.fromCharCode(nTemp);
return(strOut);
}
function AppendUrlParam(strUrl, strParam) {
if (strUrl.indexOf("?") > 0) {
return((strUrl + "&") + strParam);
}
return((strUrl + "?") + strParam);
}
function GetUrlParam(strUrl, strParam) {
var strUrlLC = strUrl.toLowerCase();
var nPos = strUrlLC.indexOf(strParam);
var nParamLen = strParam.length;
if (nPos > 0) {
var nNumChars;
var nPosEnd = strUrlLC.indexOf("&", nPos + nParamLen);
if (nPosEnd > 0) {
nNumChars = nPosEnd - nPos;
} else {
nNumChars = strUrl.length - nPos;
}
return(strUrl.substr(nPos + nParamLen, nNumChars));
}
return("");
}
function GetBaseUrl(strUrl) {
var nNumChars = strUrl.length;
var nPos = strUrl.indexOf("?", 0);
if (nPos > 0) {
nNumChars = nPos;
}
return(strUrl.substr(0, nNumChars));
}
function DoStartupInit() {
strAffilateID = _root.GetUrlParam(_url, "aid=");
level_failed = false;
level_complete_mode = false;
retry = 1;
dialog_mode = false;
demo_mode = false;
demo_timer = 0;
brick_size = 36;
num_bricks = 0;
belong_brick = 9999;
field_sizeX = 14;
field_sizeY = 12;
FinishLevelTimer = 100;
level_number = 1;
otstupX = 109;
otstupY = 6;
NumberMustDieBricks = 10;
took_brick = false;
total_num_must_die_bricks = 0;
array_must_die_bricks = new array((field_sizeX * field_sizeY) + 1);
ArrayNet = new array((field_sizeX * field_sizeY) + 1);
array_can_move_bricks = new array((field_sizeX * field_sizeY) + 1);
num_can_move_bricks = 0;
array_moving_bricks = new array(20);
num_moving_bricks = 0;
array_lava_bricks = new array(20);
num_lava_bricks = 0;
array_teleport_bricks = new array(10);
num_teleport_bricks = 0;
array_hard_bricks = new array((field_sizeX * field_sizeY) + 1);
num_hard_bricks = 0;
array_bomb_bricks = new array(20);
num_bomb_bricks = 0;
array_break_bricks = new array(100);
num_break_bricks = 0;
array_laser_bricks = new array(100);
num_laser_bricks = 0;
array_magnet_bricks = new array(100);
num_magnet_bricks = 0;
array_death_bricks = new array(100);
num_death_bricks = 0;
array_magnetswitch_bricks = new array(100);
num_magnetswitch_bricks = 0;
mark_next_step_array = new array(10);
num_next_step_array = 0;
LevelScore = 0;
LastScore = 0;
Score = 0;
Time = 0;
TimeRound = 0;
MovePause = 2;
SoundOn = true;
MusicOn = true;
HighQualityOn = false;
myDate = new Date();
CurrentTime = myDate.getTime();
ElapsedTime = CurrentTime - LastTime;
LastTime = CurrentTime;
InitPanelBricks();
MainMenuMusic = new Sound();
MainMenuMusic.attachSound("mainmenumusic");
PlayMainMenuMusic();
SoundGetBlox = new Sound();
SoundGetBlox.attachSound("getblox");
SoundBloxMoving = new Sound();
SoundBloxMoving.attachSound("bloxmoving");
SoundElimenateBlox = new Sound();
SoundElimenateBlox.attachSound("elimenateblox");
SoundBombExplode = new Sound();
SoundBombExplode.attachSound("bombexplode");
SoundPushButton = new Sound();
SoundPushButton.attachSound("pushbutton");
SoundLevelComplete = new Sound();
SoundLevelComplete.attachSound("s_levelcomplete");
SoundLevelInComplete = new Sound();
SoundLevelInComplete.attachSound("s_levelincomplete");
SoundBonusCount = new Sound();
SoundBonusCount.attachSound("s_bonuscount");
SoundBonus = new Sound();
SoundBonus.attachSound("s_bonus");
ScoreOnBoardText._visible = false;
duplicateMovieClip (ScoreOnBoardText, "ScoreOnBoardText1", 502);
duplicateMovieClip (ScoreOnBoardText, "ScoreOnBoardText2", 503);
this.ScoreOnBoardText2._visible = false;
arrow._visible = false;
duplicateMovieClip (arrow, "arrow1", 500);
this.arrow1._y = brick_size + otstupX;
this.arrow1._x = brick_size + otstupY;
movementarrow._visible = false;
duplicateMovieClip (movementarrow, "movementarrow_left", 504);
duplicateMovieClip (movementarrow, "movementarrow_right", 505);
InitMoveArrows();
PlayArea._visible = false;
duplicateMovieClip (dialog_level_finished, "dialog_level_finished1", 1001);
dialog_level_finished._visible = false;
dialog_level_finished1._visible = false;
duplicateMovieClip (MainMenu, "MainMenu1", 1002);
MainMenu._visible = false;
MainMenu1._visible = false;
duplicateMovieClip (SelectLevelFree, "SelectLevelFree1", 1003);
SelectLevelFree._visible = false;
SelectLevelFree1._visible = false;
duplicateMovieClip (SelectLevelBlue, "SelectLevelBlue1", 1004);
SelectLevelBlue._visible = false;
SelectLevelBlue1._visible = false;
duplicateMovieClip (SelectLevelPurple, "SelectLevelPurple1", 1005);
SelectLevelPurple._visible = false;
SelectLevelPurple1._visible = false;
duplicateMovieClip (OptionsMenu, "OptionsMenu1", 1006);
OptionsMenu._visible = false;
OptionsMenu1._visible = false;
duplicateMovieClip (Help, "Help1", 1007);
Help._visible = false;
Help1._visible = false;
HelpWindowMode = 1;
HelpWindowFrameNum = 0;
duplicateMovieClip (GameMenu, "GameMenu1", 1008);
GameMenu._visible = false;
GameMenu1._visible = false;
duplicateMovieClip (LevelStart, "LevelStart1", 1010);
LevelStart._visible = false;
LevelStart1._visible = false;
duplicateMovieClip (LevelFailed, "LevelFailed1", 1011);
LevelFailed._visible = false;
LevelFailed1._visible = false;
duplicateMovieClip (EnterYourName, "EnterYourName1", 1012);
EnterYourName._visible = false;
EnterYourName1._visible = false;
duplicateMovieClip (BuyMeWindow, "BuyMeWindow1", 1013);
BuyMeWindow._visible = false;
BuyMeWindow1._visible = false;
BuyMeWindowMode = 1;
duplicateMovieClip (LibraryDemoLabel, "LibraryDemoLabel1", 1014);
LibraryDemoLabel._visible = false;
LibraryDemoLabel1._visible = false;
LibraryBrick1._visible = false;
LibraryBrick2._visible = false;
LibraryBrick3._visible = false;
LibraryBrick4._visible = false;
LibraryBrick5._visible = false;
LibraryBrick6._visible = false;
LibraryBrick7._visible = false;
LibraryBrick8._visible = false;
LibraryBrickEmpty._visible = false;
LibraryBrickCross._visible = false;
LibraryBrickUL._visible = false;
LibraryBrickUR._visible = false;
LibraryBrickLL._visible = false;
LibraryBrickLR._visible = false;
LibraryBrickLCap._visible = false;
LibraryBrickRCap._visible = false;
LibraryBrickTCap._visible = false;
LibraryBrickBCap._visible = false;
LibraryBrickCap._visible = false;
LibraryBrickLTee._visible = false;
LibraryBrickRTee._visible = false;
LibraryBrickTTee._visible = false;
LibraryBrickBTee._visible = false;
LibraryBrickLeft._visible = false;
LibraryBrickTop._visible = false;
LibraryBrickLava._visible = false;
LibraryBrickWater._visible = false;
LibraryBrickLift._visible = false;
LibraryBrickBomb._visible = false;
LibraryBrickTeleport._visible = false;
LibraryBrickTeleport2._visible = false;
LibraryBrickBreak._visible = false;
LibraryBrickLaser._visible = false;
LibraryLaser._visible = false;
LibraryBrickMagnet._visible = false;
LibraryBrickSwitch._visible = false;
LoadBricks(field_sizeX, field_sizeY);
ShowMainMenu();
}
function OnMdown() {
if (dialog_mode) {
return(undefined);
}
if (NumberMustDieBricks == 0) {
return(undefined);
}
n_x = ConvXtoNetXround(_root._xmouse);
n_y = ConvYtoNetYround(_root._ymouse);
if (FindBrick(n_x, n_y) == 9999) {
return(undefined);
}
if (this["brcik" + FindBrick(n_x, n_y)]._MustDie == 0) {
return(undefined);
}
if (this["brcik" + FindBrick(n_x, n_y)]._BelongMagnet == 9999) {
belong_brick = FindBrick(n_x, n_y);
}
took_brick = true;
PlayGetBloxSound();
}
movieClip.prototype.NetPosX = 20;
movieClip.prototype.NetPosY = 1;
movieClip.prototype.MustDie;
movieClip.prototype.Falling;
movieClip.prototype.OldFalling;
movieClip.prototype.Type;
movieClip.prototype.DeleteMark;
movieClip.prototype.MoveX = 0;
movieClip.prototype.MoveY = 0;
movieClip.prototype.Health = 100;
movieClip.prototype.Child = 9999;
movieClip.prototype.Parent = 9999;
movieClip.prototype.Number = 1;
movieClip.prototype.DieTimer = 100;
movieClip.prototype.LaserStartNetX = 9999;
movieClip.prototype.LaserStartNetY = 9999;
movieClip.prototype.LaserEndNetX = 9999;
movieClip.prototype.LaserEndNetY = 9999;
movieClip.prototype.LaserTimer = 1;
movieClip.prototype.LaserMaxTime = 1;
movieClip.prototype.LaserType = 1;
movieClip.prototype.LiftStopTime;
movieClip.prototype.MagnetOn;
movieClip.prototype.BelongMagnet;
movieClip.prototype.SwitchNumber;
movieClip.prototype.ScoreValue;
movieClip.prototype.ScoreMultiplier;
HiScoreEnabled = 1;
HiScoreSaveURL = "http://www.arcadetown.com/blox/hs.asp";
HiScoreOpenURL = "http://www.arcadetown.com/scripts/show_hiscore.asp?gameid=blox";
LinkDownload = "http://www.arcadetown.com/blox/download.asp";
RegisteredVersion = 0;
EnableEscSkipLevel = 0;
LinkBuyMe = "http://www.arcadetown.com/order/choosemethod.asp?gameid=blox";
LinkMoreGames = "http://www.arcadetown.com/index.asp?gameid=blox";
if (RegisteredVersion == 0) {
LockdownUrl = "";
} else {
LockdownUrl = "arcadetown.com|freewebgames.com";
HiScoreOpenURL = "http://www.arcadetown.com/scripts/show_hiscore.asp?gameid=blox_deluxe";
}
VendorType = 3;
IsRunFS = 0;
if (VendorType == 2) {
LinkBuyMe = "http://www.altoparc.com/blox/buynow.htm";
LinkMoreGames = "http://www.altoparc.com/blox/moregames.htm";
LockdownUrl = "altoparc.com";
} else if (VendorType == 3) {
LinkBuyMe = AppendUrlParam(LinkBuyMe, "aid=647057");
LinkMoreGames = AppendUrlParam(LinkMoreGames, "aid=647057");
LinkDownload = AppendUrlParam(LinkDownload, "aid=647057");
LockdownUrl = "newgrounds.com|ungrounded.net";
} else if (VendorType == 4) {
LinkBuyMe = "http://www.4gameplay.com/order/choosemethod.asp?gameid=blox&aid=647063";
LinkMoreGames = "http://www.freearcade.com";
LinkDownload = "http://www.4gameplay.com/blox/download.asp?aid=647063";
HiScoreEnabled = 0;
LockdownUrl = "freearcade.com|javaarcade.com";
} else if (VendorType == 5) {
LinkBuyMe = AppendUrlParam(LinkBuyMe, "aid=647415");
LinkMoreGames = AppendUrlParam(LinkMoreGames, "aid=647415");
LinkDownload = AppendUrlParam(LinkDownload, "aid=647415");
LockdownUrl = "entertainmail.net";
} else if (VendorType == 6) {
LinkBuyMe = "http://www.4gameplay.com/order/choosemethod.asp?gameid=blox";
LinkMoreGames = "http://www.4gameplay.com/index.asp?gameid=blox";
LinkDownload = "http://www.4gameplay.com/blox/download.asp";
HiScoreEnabled = 0;
} else if (VendorType == 8) {
LinkBuyMe = AppendUrlParam(LinkBuyMe, "aid=654087");
LinkMoreGames = AppendUrlParam(LinkMoreGames, "aid=654087");
LinkDownload = AppendUrlParam(LinkDownload, "aid=654087");
HiScoreEnabled = 0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 3, 1, 1, 2, 1, 1, 1, 1, 1, 1, 2, 1, 1, 6, 8, 1, 1, 2, 1, 1, 1, 1, 1, 1, 2, 1, 1, 5, 10, 1, 1, 2, 1, 1, 1, 1, 1, 1, 2, 1, 1, 3, 4, 1, 1, 2, 1, 1, 1, 1, 1, 1, 2, 1, 1, 5, 7, 1, 1, 2, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 1, 1, 1);
DoStartupInit();
someListener = new Object();
someListener.onMouseDown = function () {
OnMdown();
};
someListener.onMouseUp = function () {
belong_brick = 9999;
took_brick = false;
};
Mouse.addListener(someListener);
_root.onEnterFrame = function () {
if ((!dialog_mode) || (demo_mode)) {
UpdateGame();
}
};
Instance of Symbol 475 MovieClip "dialog_level_finished" in Frame 3
onClipEvent (enterFrame) {
if (!_root.level_complete_mode) {
return(undefined);
}
if (_root.Time > 1) {
if (_root.Time >= 10) {
_root.Time = _root.Time - 10;
_root.PlayBonusCountSound();
_root.TimeRound = Math.Round(_root.Time / 10) * 10;
_root.Score = _root.Score + 10;
_root.LevelScore = _root.Score - _root.LastScore;
} else {
_root.Time = 0;
_root.TimeRound = 0;
}
}
}
Symbol 16 MovieClip [FLabelSymbol] Frame 1
#initclip 2
_global.FLabelClass = function () {
if (this.hostComponent == undefined) {
this.hostComponent = ((this._parent.controller == undefined) ? (this._parent) : (this._parent.controller));
}
if (this.customTextStyle == undefined) {
if (this.hostComponent.textStyle == undefined) {
this.hostComponent.textStyle = new TextFormat();
}
this.textStyle = this.hostComponent.textStyle;
this.enable = true;
}
};
FLabelClass.prototype = new MovieClip();
Object.registerClass("FLabelSymbol", FLabelClass);
FLabelClass.prototype.setLabel = function (label) {
var val = this.hostComponent.styleTable.embedFonts.value;
if (val != undefined) {
this.labelField.embedFonts = val;
}
this.labelField.setNewTextFormat(this.textStyle);
this.labelField.text = label;
this.labelField._height = this.labelField.textHeight + 2;
};
FLabelClass.prototype.setSize = function (width) {
this.labelField._width = width;
};
FLabelClass.prototype.setEnabled = function (enable) {
this.enable = enable;
var tmpColor = this.hostComponent.styleTable[(enable ? "textColor" : "textDisabled")].value;
if (tmpColor == undefined) {
tmpColor = (enable ? 0 : 8947848);
}
this.setColor(tmpColor);
};
FLabelClass.prototype.getLabel = function () {
return(this.labelField.text);
};
FLabelClass.prototype.setColor = function (col) {
this.labelField.textColor = col;
};
#endinitclip
Symbol 25 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(frame5, "face");
component.registerSkinElement(frame3, "shadow");
component.registerSkinElement(frame1, "darkshadow");
component.registerSkinElement(frame4, "highlight");
component.registerSkinElement(frame2, "highlight3D");
Symbol 31 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(frame5, "face");
component.registerSkinElement(frame3, "shadow");
component.registerSkinElement(frame1, "darkshadow");
component.registerSkinElement(frame4, "highlight");
component.registerSkinElement(frame2, "highlight3D");
Symbol 37 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(frame5, "face");
component.registerSkinElement(frame4, "shadow");
component.registerSkinElement(frame2, "darkshadow");
component.registerSkinElement(frame3, "highlight");
component.registerSkinElement(frame1, "highlight3D");
Symbol 43 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(frame5, "face");
component.registerSkinElement(frame3, "shadow");
component.registerSkinElement(frame1, "darkshadow");
component.registerSkinElement(frame4, "highlight");
component.registerSkinElement(frame2, "highlight3D");
Symbol 44 MovieClip [fpb_states] Frame 1
stop();
Symbol 44 MovieClip [fpb_states] Frame 2
stop();
Symbol 44 MovieClip [fpb_states] Frame 3
stop();
Symbol 44 MovieClip [fpb_states] Frame 4
stop();
Symbol 45 MovieClip [FUIComponentSymbol] Frame 1
#initclip 1
function FUIComponentClass() {
this.init();
}
FUIComponentClass.prototype = new MovieClip();
FUIComponentClass.prototype.init = function () {
this.enable = true;
this.focused = false;
this.useHandCursor = false;
this._accImpl = new Object();
this._accImpl.stub = true;
this.styleTable = new Array();
if (_global.globalStyleFormat == undefined) {
_global.globalStyleFormat = new FStyleFormat();
globalStyleFormat.isGlobal = true;
_global._focusControl = new Object();
_global._focusControl.onSetFocus = function (oldFocus, newFocus) {
oldFocus.myOnKillFocus();
newFocus.myOnSetFocus();
};
Selection.addListener(_global._focusControl);
}
if (this._name != undefined) {
this._focusrect = false;
this.tabEnabled = true;
this.focusEnabled = true;
this.tabChildren = false;
this.tabFocused = true;
if (this.hostStyle == undefined) {
globalStyleFormat.addListener(this);
} else {
this.styleTable = this.hostStyle;
}
this.deadPreview._visible = false;
this.deadPreview._width = (this.deadPreview._height = 1);
this.methodTable = new Object();
this.keyListener = new Object();
this.keyListener.controller = this;
this.keyListener.onKeyDown = function () {
this.controller.myOnKeyDown();
};
this.keyListener.onKeyUp = function () {
this.controller.myOnKeyUp();
};
for (var i in this.styleFormat_prm) {
this.setStyleProperty(i, this.styleFormat_prm[i]);
}
}
};
FUIComponentClass.prototype.setEnabled = function (enabledFlag) {
this.enable = ((arguments.length > 0) ? (enabledFlag) : true);
this.tabEnabled = (this.focusEnabled = enabledFlag);
if ((!this.enable) && (this.focused)) {
Selection.setFocus(undefined);
}
};
FUIComponentClass.prototype.getEnabled = function () {
return(this.enable);
};
FUIComponentClass.prototype.setSize = function (w, h) {
this.width = w;
this.height = h;
this.focusRect.removeMovieClip();
};
FUIComponentClass.prototype.setChangeHandler = function (chng, obj) {
this.handlerObj = ((obj == undefined) ? (this._parent) : (obj));
this.changeHandler = chng;
};
FUIComponentClass.prototype.invalidate = function (methodName) {
this.methodTable[methodName] = true;
this.onEnterFrame = this.cleanUI;
};
FUIComponentClass.prototype.cleanUI = function () {
if (this.methodTable.setSize) {
this.setSize(this.width, this.height);
} else {
this.cleanUINotSize();
}
this.methodTable = new Object();
delete this.onEnterFrame;
};
FUIComponentClass.prototype.cleanUINotSize = function () {
for (var funct in this.methodTable) {
this[funct]();
}
};
FUIComponentClass.prototype.drawRect = function (x, y, w, h) {
var inner = this.styleTable.focusRectInner.value;
var outer = this.styleTable.focusRectOuter.value;
if (inner == undefined) {
inner = 16777215 /* 0xFFFFFF */;
}
if (outer == undefined) {
outer = 0;
}
this.createEmptyMovieClip("focusRect", 1000);
this.focusRect.controller = this;
this.focusRect.lineStyle(1, outer);
this.focusRect.moveTo(x, y);
this.focusRect.lineTo(x + w, y);
this.focusRect.lineTo(x + w, y + h);
this.focusRect.lineTo(x, y + h);
this.focusRect.lineTo(x, y);
this.focusRect.lineStyle(1, inner);
this.focusRect.moveTo(x + 1, y + 1);
this.focusRect.lineTo((x + w) - 1, y + 1);
this.focusRect.lineTo((x + w) - 1, (y + h) - 1);
this.focusRect.lineTo(x + 1, (y + h) - 1);
this.focusRect.lineTo(x + 1, y + 1);
};
FUIComponentClass.prototype.pressFocus = function () {
this.tabFocused = false;
this.focusRect.removeMovieClip();
Selection.setFocus(this);
};
FUIComponentClass.prototype.drawFocusRect = function () {
this.drawRect(-2, -2, this.width + 4, this.height + 4);
};
FUIComponentClass.prototype.myOnSetFocus = function () {
this.focused = true;
Key.addListener(this.keyListener);
if (this.tabFocused) {
this.drawFocusRect();
}
};
FUIComponentClass.prototype.myOnKillFocus = function () {
this.tabFocused = true;
this.focused = false;
this.focusRect.removeMovieClip();
Key.removeListener(this.keyListener);
};
FUIComponentClass.prototype.executeCallBack = function () {
this.handlerObj[this.changeHandler](this);
};
FUIComponentClass.prototype.updateStyleProperty = function (styleFormat, propName) {
this.setStyleProperty(propName, styleFormat[propName], styleFormat.isGlobal);
};
FUIComponentClass.prototype.setStyleProperty = function (propName, value, isGlobal) {
if (value == "") {
return(undefined);
}
var tmpValue = parseInt(value);
if (!isNaN(tmpValue)) {
value = tmpValue;
}
var global = ((arguments.length > 2) ? (isGlobal) : false);
if (this.styleTable[propName] == undefined) {
this.styleTable[propName] = new Object();
this.styleTable[propName].useGlobal = true;
}
if (this.styleTable[propName].useGlobal || (!global)) {
this.styleTable[propName].value = value;
if (this.setCustomStyleProperty(propName, value)) {
} else if (propName == "embedFonts") {
this.invalidate("setSize");
} else if (propName.subString(0, 4) == "text") {
if (this.textStyle == undefined) {
this.textStyle = new TextFormat();
}
var textProp = propName.subString(4, propName.length);
this.textStyle[textProp] = value;
this.invalidate("setSize");
} else {
for (var j in this.styleTable[propName].coloredMCs) {
var myColor = new Color(this.styleTable[propName].coloredMCs[j]);
if (this.styleTable[propName].value == undefined) {
var myTObj = {ra:"100", rb:"0", ga:"100", gb:"0", ba:"100", bb:"0", aa:"100", ab:"0"};
myColor.setTransform(myTObj);
} else {
myColor.setRGB(value);
}
}
}
this.styleTable[propName].useGlobal = global;
}
};
FUIComponentClass.prototype.registerSkinElement = function (skinMCRef, propName) {
if (this.styleTable[propName] == undefined) {
this.styleTable[propName] = new Object();
this.styleTable[propName].useGlobal = true;
}
if (this.styleTable[propName].coloredMCs == undefined) {
this.styleTable[propName].coloredMCs = new Object();
}
this.styleTable[propName].coloredMCs[skinMCRef] = skinMCRef;
if (this.styleTable[propName].value != undefined) {
var myColor = new Color(skinMCRef);
myColor.setRGB(this.styleTable[propName].value);
}
};
_global.FStyleFormat = function () {
this.nonStyles = {listeners:true, isGlobal:true, isAStyle:true, addListener:true, removeListener:true, nonStyles:true, applyChanges:true};
this.listeners = new Object();
this.isGlobal = false;
if (arguments.length > 0) {
for (var i in arguments[0]) {
this[i] = arguments[0][i];
}
}
};
_global.FStyleFormat.prototype = new Object();
FStyleFormat.prototype.addListener = function () {
var arg = 0;
while (arg < arguments.length) {
var mcRef = arguments[arg];
this.listeners[arguments[arg]] = mcRef;
for (var i in this) {
if (this.isAStyle(i)) {
mcRef.updateStyleProperty(this, i.toString());
}
}
arg++;
}
};
FStyleFormat.prototype.removeListener = function (component) {
this.listeners[component] = undefined;
for (var prop in this) {
if (this.isAStyle(prop)) {
if (component.styleTable[prop].useGlobal == this.isGlobal) {
component.styleTable[prop].useGlobal = true;
var value = (this.isGlobal ? undefined : (globalStyleFormat[prop]));
component.setStyleProperty(prop, value, true);
}
}
}
};
FStyleFormat.prototype.applyChanges = function () {
var count = 0;
for (var i in this.listeners) {
var component = this.listeners[i];
if (arguments.length > 0) {
var j = 0;
while (j < arguments.length) {
if (this.isAStyle(arguments[j])) {
component.updateStyleProperty(this, arguments[j]);
}
j++;
}
} else {
for (var j in this) {
if (this.isAStyle(j)) {
component.updateStyleProperty(this, j.toString());
}
}
}
}
};
FStyleFormat.prototype.isAStyle = function (name) {
return((this.nonStyles[name] ? false : true));
};
#endinitclip
Symbol 49 MovieClip [FBoundingBoxSymbol] Frame 1
var component = _parent;
component.registerSkinElement(boundingBox, "background");
stop();
Symbol 49 MovieClip [FBoundingBoxSymbol] Frame 2
component.registerSkinElement(boundingBox2, "backgroundDisabled");
stop();
Symbol 52 MovieClip [FPushButtonSymbol] Frame 1
#initclip 3
function FPushButtonClass() {
this.init();
}
FPushButtonClass.prototype = new FUIComponentClass();
Object.registerClass("FPushButtonSymbol", FPushButtonClass);
FPushButtonClass.prototype.init = function () {
super.setSize(this._width, this._height);
this.boundingBox_mc.unloadMovie();
this.attachMovie("fpb_states", "fpbState_mc", 1);
this.attachMovie("FLabelSymbol", "fLabel_mc", 2);
this.attachMovie("fpb_hitArea", "fpb_hitArea_mc", 3);
super.init();
this.btnState = false;
this.setClickHandler(this.clickHandler);
this._xscale = 100;
this._yscale = 100;
this.setSize(this.width, this.height);
if (this.label != undefined) {
this.setLabel(this.label);
}
this.ROLE_SYSTEM_PUSHBUTTON = 43;
this.STATE_SYSTEM_PRESSED = 8;
this.EVENT_OBJECT_STATECHANGE = 32778;
this.EVENT_OBJECT_NAMECHANGE = 32780;
this._accImpl.master = this;
this._accImpl.stub = false;
this._accImpl.get_accRole = this.get_accRole;
this._accImpl.get_accName = this.get_accName;
this._accImpl.get_accState = this.get_accState;
this._accImpl.get_accDefaultAction = this.get_accDefaultAction;
this._accImpl.accDoDefaultAction = this.accDoDefaultAction;
};
FPushButtonClass.prototype.setHitArea = function (w, h) {
var hit = this.fpb_hitArea_mc;
this.hitArea = hit;
hit._visible = false;
hit._width = w;
hit._height = ((arguments.length > 1) ? (h) : (hit._height));
};
FPushButtonClass.prototype.setSize = function (w, h) {
w = ((w < 6) ? 6 : (w));
if (arguments.length > 1) {
if (h < 6) {
h = 6;
}
}
super.setSize(w, h);
this.setLabel(this.getLabel());
this.arrangeLabel();
this.setHitArea(w, h);
this.boundingBox_mc._width = w;
this.boundingBox_mc._height = h;
this.drawFrame();
if (this.focused) {
super.myOnSetFocus();
}
this.initContentPos("fLabel_mc");
};
FPushButtonClass.prototype.arrangeLabel = function () {
var label = this.fLabel_mc;
var h = this.height;
var w = (this.width - 2);
var b = 1;
this.fLabel_mc.setSize(w - (b * 4));
label._x = b * 3;
label._y = (h / 2) - (label._height / 2);
};
FPushButtonClass.prototype.getLabel = function () {
return(this.fLabel_mc.labelField.text);
};
FPushButtonClass.prototype.setLabel = function (label) {
this.fLabel_mc.setLabel(label);
this.txtFormat();
this.arrangeLabel();
if (Accessibility.isActive()) {
Accessibility.sendEvent(this, 0, this.EVENT_OBJECT_NAMECHANGE);
}
};
FPushButtonClass.prototype.getEnabled = function () {
return(this.enabled);
};
FPushButtonClass.prototype.setEnabled = function (enable) {
if (enable || (enable == undefined)) {
this.gotoFrame(1);
this.drawFrame();
this.flabel_mc.setEnabled(true);
this.enabled = true;
super.setEnabled(true);
} else {
this.gotoFrame(4);
this.drawFrame();
this.flabel_mc.setEnabled(false);
this.enabled = false;
super.setEnabled(false);
}
};
FPushButtonClass.prototype.txtFormat = function () {
var txtS = this.textStyle;
var sTbl = this.styleTable;
txtS.align = ((sTbl.textAlign.value == undefined) ? ((txtS.align = "center")) : undefined);
txtS.leftMargin = ((sTbl.textLeftMargin.value == undefined) ? ((txtS.leftMargin = 1)) : undefined);
txtS.rightMargin = ((sTbl.textRightMargin.value == undefined) ? ((txtS.rightMargin = 1)) : undefined);
if (this.fLabel_mc._height > this.height) {
super.setSize(this.width, this.fLabel_mc._height);
} else {
super.setSize(this.width, this.height);
}
this.fLabel_mc.labelField.setTextFormat(this.textStyle);
this.setEnabled(this.enable);
};
FPushButtonClass.prototype.drawFrame = function () {
var b = 1;
var x1 = 0;
var y1 = 0;
var x2 = this.width;
var y2 = this.height;
var mc_array = ["up_mc", "over_mc", "down_mc", "disabled_mc"];
var frame = mc_array[this.fpbState_mc._currentframe - 1];
var mc = "frame";
var i = 0;
while (i < 6) {
x1 = x1 + ((i % 2) * b);
y1 = y1 + ((i % 2) * b);
x2 = x2 - (((i + 1) % 2) * b);
y2 = y2 - (((i + 1) % 2) * b);
var w = (Math.abs(x1 - x2) + (2 * b));
var h = (Math.abs(y1 - y2) + (2 * b));
this.fpbState_mc[frame][mc + i]._width = w;
this.fpbState_mc[frame][mc + i]._height = h;
this.fpbState_mc[frame][mc + i]._x = x1 - b;
this.fpbState_mc[frame][mc + i]._y = y1 - b;
i++;
}
};
FPushButtonClass.prototype.setClickHandler = function (chng, obj) {
this.handlerObj = ((arguments.length < 2) ? (this._parent) : (obj));
this.clickHandler = chng;
};
FPushButtonClass.prototype.executeCallBack = function () {
this.handlerObj[this.clickHandler](this);
};
FPushButtonClass.prototype.initContentPos = function (mc) {
this.incrVal = 1;
this.initx = this[mc]._x - (this.getBtnState() * this.incrVal);
this.inity = this[mc]._y - (this.getBtnState() * this.incrVal);
this.togx = this.initx + this.incrVal;
this.togy = this.inity + this.incrVal;
};
FPushButtonClass.prototype.setBtnState = function (state) {
this.btnState = state;
if (state) {
this.fLabel_mc._x = this.togx;
this.fLabel_mc._y = this.togy;
} else {
this.fLabel_mc._x = this.initx;
this.fLabel_mc._y = this.inity;
}
};
FPushButtonClass.prototype.getBtnState = function () {
return(this.btnState);
};
FPushButtonClass.prototype.myOnSetFocus = function () {
this.focused = true;
super.myOnSetFocus();
};
FPushButtonClass.prototype.onPress = function () {
this.pressFocus();
this.fpbState_mc.gotoAndStop(3);
this.drawFrame();
this.setBtnState(true);
if (Accessibility.isActive()) {
Accessibility.sendEvent(this, 0, this.EVENT_OBJECT_STATECHANGE, true);
}
};
FPushButtonClass.prototype.onRelease = function () {
this.fpbState_mc.gotoAndStop(2);
this.drawFrame();
this.executeCallBack();
this.setBtnState(false);
if (Accessibility.isActive()) {
Accessibility.sendEvent(this, 0, this.EVENT_OBJECT_STATECHANGE, true);
}
};
FPushButtonClass.prototype.onRollOver = function () {
this.fpbState_mc.gotoAndStop(2);
this.drawFrame();
};
FPushButtonClass.prototype.onRollOut = function () {
this.fpbState_mc.gotoAndStop(1);
this.drawFrame();
};
FPushButtonClass.prototype.onReleaseOutside = function () {
this.setBtnState(false);
this.fpbState_mc.gotoAndStop(1);
this.drawFrame();
};
FPushButtonClass.prototype.onDragOut = function () {
this.setBtnState(false);
this.fpbState_mc.gotoAndStop(1);
this.drawFrame();
};
FPushButtonClass.prototype.onDragOver = function () {
this.setBtnState(true);
this.fpbState_mc.gotoAndStop(3);
this.drawFrame();
};
FPushButtonClass.prototype.myOnKeyDown = function () {
if ((Key.getCode() == 32) && (this.pressOnce == undefined)) {
this.onPress();
this.pressOnce = 1;
}
};
FPushButtonClass.prototype.myOnKeyUp = function () {
if (Key.getCode() == 32) {
this.onRelease();
this.pressOnce = undefined;
}
};
FPushButtonClass.prototype.get_accRole = function (childId) {
return(this.master.ROLE_SYSTEM_PUSHBUTTON);
};
FPushButtonClass.prototype.get_accName = function (childId) {
return(this.master.getLabel());
};
FPushButtonClass.prototype.get_accState = function (childId) {
if (this.pressOnce) {
return(this.master.STATE_SYSTEM_PRESSED);
}
return(this.master.STATE_SYSTEM_DEFAULT);
};
FPushButtonClass.prototype.get_accDefaultAction = function (childId) {
return("Press");
};
FPushButtonClass.prototype.accDoDefaultAction = function (childId) {
this.master.onPress();
this.master.onRelease();
};
#endinitclip
boundingBox_mc._visible = false;
deadPreview._visible = false;
Symbol 75 Button
on (release) {
if (_root.dialog_mode) {
return(undefined);
}
_root.PlayButtonSound();
_root.ShowGameMenuWindow();
}
Symbol 76 Button
on (release) {
if (_root.dialog_mode) {
return(undefined);
}
_root.PlayButtonSound();
_root.Score = _root.LastScore;
_root.LoadBricks(_root.field_sizeX, _root.field_sizeY);
_root.retry++;
}
Symbol 77 MovieClip Frame 14
stop();
Symbol 86 MovieClip Frame 1
stop();
Symbol 86 MovieClip Frame 2
stop();
Symbol 86 MovieClip Frame 3
stop();
Symbol 86 MovieClip Frame 4
stop();
Symbol 86 MovieClip Frame 5
stop();
Symbol 137 MovieClip Frame 1
stop();
Symbol 137 MovieClip Frame 9
stop();
Symbol 162 MovieClip Frame 1
stop();
Symbol 162 MovieClip Frame 2
stop();
Symbol 162 MovieClip Frame 9
stop();
_root.DeleteBrick(this._Number);
_visible = false;
Symbol 178 MovieClip Frame 1
stop();
Symbol 178 MovieClip Frame 9
stop();
Symbol 192 MovieClip Frame 1
stop();
Symbol 192 MovieClip Frame 9
stop();
Symbol 206 MovieClip Frame 1
stop();
Symbol 206 MovieClip Frame 9
stop();
Symbol 220 MovieClip Frame 1
stop();
Symbol 220 MovieClip Frame 9
stop();
Symbol 234 MovieClip Frame 1
stop();
Symbol 234 MovieClip Frame 9
stop();
Symbol 248 MovieClip Frame 1
stop();
Symbol 248 MovieClip Frame 9
stop();
Symbol 262 MovieClip Frame 1
stop();
Symbol 262 MovieClip Frame 9
stop();
Symbol 271 MovieClip Frame 1
stop();
Symbol 271 MovieClip Frame 2
stop();
Symbol 271 MovieClip Frame 3
stop();
Symbol 277 MovieClip Frame 34
gotoAndPlay (1);
Symbol 277 MovieClip Frame 70
gotoAndPlay (35);
Symbol 337 MovieClip Frame 23
gotoAndPlay (1);
Symbol 351 Button
on (release) {
if (!_root.MainMenuMode) {
return(undefined);
}
_root.PlayButtonSound();
_root.ShowSelectLevelPurpleWindow();
}
Symbol 357 Button
on (release) {
if (!_root.MainMenuMode) {
return(undefined);
}
_root.PlayButtonSound();
if (_root.RegisteredVersion == 1) {
fscommand ("quit");
fscommand ("close");
} else {
_root.ShowBuyMeWindow(2);
}
}
Symbol 362 Button
on (release) {
if (!_root.MainMenuMode) {
return(undefined);
}
_root.PlayButtonSound();
var strParam;
var strUrl = _root.LinkDownload;
if (_root.strAffilateID.length > 0) {
strParam = "aid=" + _root.strAffilateID;
strUrl = _root.AppendUrlParam(strUrl, strParam);
}
strParam = "refer=" + _root.GetBaseUrl(_url);
strUrl = _root.AppendUrlParam(strUrl, strParam);
getURL (strUrl, "_blank");
}
Symbol 366 Button
on (release) {
if (!_root.MainMenuMode) {
return(undefined);
}
_root.PlayButtonSound();
_root.ShowOptionsMenu(1);
}
Symbol 370 Button
on (release) {
if (!_root.MainMenuMode) {
return(undefined);
}
_root.PlayButtonSound();
_root.ShowBuyMeWindow(1);
}
Symbol 374 Button
on (release) {
if (!_root.MainMenuMode) {
return(undefined);
}
_root.PlayButtonSound();
getURL (_root.HiScoreOpenURL, "_blank");
}
Symbol 378 Button
on (release) {
if (!_root.MainMenuMode) {
return(undefined);
}
_root.PlayButtonSound();
var strParam;
var strUrl = _root.LinkMoreGames;
if (_root.strAffilateID.length > 0) {
strParam = "aid=" + _root.strAffilateID;
strUrl = _root.AppendUrlParam(strUrl, strParam);
}
strParam = "refer=" + _root.GetBaseUrl(_url);
strUrl = _root.AppendUrlParam(strUrl, strParam);
getURL (strUrl, "_blank");
}
Symbol 382 Button
on (release) {
if (!_root.MainMenuMode) {
return(undefined);
}
_root.PlayButtonSound();
_root.ShowHelpWindow(1);
}
Symbol 386 Button
on (release) {
if (!_root.MainMenuMode) {
return(undefined);
}
_root.PlayButtonSound();
_root.ShowSelectLevelBlueWindow();
}
Symbol 388 Button
on (release) {
if (!_root.MainMenuMode) {
return(undefined);
}
_root.PlayButtonSound();
_root.ShowSelectLevelFreeWindow();
}
Symbol 394 Button
on (release) {
if (!_root.MainMenuMode) {
return(undefined);
}
_root.SelectLevel_StartGame(1, 0);
_root.PlayButtonSound();
}
Symbol 395 MovieClip Frame 25
if (_root.HiScoreEnabled == 0) {
Button_HighScores._visible = false;
}
if (_root.RegisteredVersion == 1) {
Button_Buy._visible = false;
}
if ((_root.RegisteredVersion == 1) || (_root.LinkDownload.length == 0)) {
Button_Download._visible = false;
}
stop();
Symbol 406 Button
on (release) {
_root.PlayButtonSound();
if (_highquality) {
_quality = "MEDIUM";
_root.OptionsMenu1.quality_check._visible = false;
} else {
_quality = "HIGH";
_root.OptionsMenu1.quality_check._visible = true;
}
}
Symbol 408 MovieClip Frame 1
stop();
Symbol 410 Button
on (release) {
if (_root.MusicOn) {
_root.MusicOn = false;
_root.StopMusic();
} else {
_root.MusicOn = true;
if (_root.optionsMenuMode == 2) {
_root.PlayGamePlayMusic();
} else {
_root.PlayMainMenuMusic();
}
}
_root.OptionsMenu1.music_check._visible = _root.MusicOn;
_root.PlayButtonSound();
}
Symbol 412 Button
on (release) {
if (_root.SoundOn) {
_root.SoundOn = false;
} else {
_root.SoundOn = true;
}
_root.OptionsMenu1.sound_check._visible = _root.SoundOn;
_root.PlayButtonSound();
}
Symbol 415 Button
on (release) {
_root.PlayButtonSound();
if (_root.optionsMenuMode == 2) {
_root.OptionsMenu1._visible = false;
_root.dialog_mode = false;
} else {
_root.ShowMainMenu();
}
}
Symbol 417 MovieClip Frame 14
gotoAndPlay (1);
Symbol 418 MovieClip Frame 12
stop();
Symbol 446 MovieClip Frame 1
bApart_brix.gotoandstop(1);
Symbol 446 MovieClip Frame 21
bApart_brix.gotoandstop(2);
Symbol 446 MovieClip Frame 23
bApart_brix.gotoandstop(3);
Symbol 446 MovieClip Frame 25
bApart_brix.gotoandstop(4);
Symbol 446 MovieClip Frame 27
bApart_brix.gotoandstop(5);
Symbol 460 Button
on (release) {
_root.PlayButtonSound();
_root.ShowPlayArea();
}
Symbol 461 MovieClip Frame 15
stop();
Symbol 474 Button
on (release) {
if (_root.Time > 1) {
_root.TimeRound = 0;
_root.Score = _root.Score + (Math.Round(_root.Time / 10) * 10);
_root.LevelScore = _root.Score - _root.LastScore;
_root.Time = 0;
}
_root.SoundLevelComplete.stop();
_root.SoundBonusCount.stop();
_root.PlayButtonSound();
_root.Score = _root.Score + Math.round(_root.Time);
_root.GotoNextLevel();
}
Symbol 475 MovieClip Frame 15
stop();
Symbol 476 Button
on (release) {
_root.PlayButtonSound();
_root.Score = _root.LastScore;
_root.LoadBricks(_root.field_sizeX, _root.field_sizeY);
_root.retry++;
}
Symbol 493 Button
on (release) {
_root.PlayButtonSound();
_root.GameMenu1._visible = false;
if ((_root.HiScoreEnabled == 1) && (_root.Score > 1000)) {
_root.ShowEnterYourNameWindow();
} else {
_root.PlayMainMenuMusic();
if (_root.RegisteredVersion == 0) {
_root.ShowBuyMeWindow(1);
} else {
_root.ShowMainMenu();
}
}
}
Symbol 494 Button
on (release) {
if (_root.RegisteredVersion == 0) {
_root.PlayMainMenuMusic();
_root.PlayButtonSound();
_root.ShowBuyMeWindow(4);
} else {
_root.GotoNextLevel();
}
}
Symbol 495 Button
on (release) {
_root.PlayButtonSound();
_root.ShowHelpWindow(2);
}
Symbol 496 Button
on (release) {
_root.PlayButtonSound();
_root.ShowOptionsMenu(2);
}
Symbol 497 Button
on (release) {
_root.PlayButtonSound();
_root.GameMenu1._visible = false;
_root.dialog_mode = false;
}
Symbol 498 MovieClip Frame 15
stop();
Symbol 526 Button
on (release) {
_root.PlayButtonSound();
_root.ShowMainMenu();
}
Symbol 527 Button
on (release) {
_root.SelectLevel_StartGame(36, 0);
}
Symbol 528 Button
on (release) {
_root.SelectLevel_StartGame(31, 0);
}
Symbol 529 Button
on (release) {
_root.SelectLevel_StartGame(26, 0);
}
Symbol 530 Button
on (release) {
_root.SelectLevel_StartGame(21, 0);
}
Symbol 534 Button
on (release) {
_root.SelectLevel_StartGame(16, 0);
}
Symbol 538 Button
on (release) {
_root.SelectLevel_StartGame(11, 0);
}
Symbol 539 MovieClip Frame 12
stop();
Symbol 556 Button
on (release) {
_root.SelectLevel_StartGame(56, 0);
}
Symbol 557 Button
on (release) {
_root.SelectLevel_StartGame(51, 0);
}
Symbol 558 Button
on (release) {
_root.SelectLevel_StartGame(46, 0);
}
Symbol 559 Button
on (release) {
_root.SelectLevel_StartGame(41, 0);
}
Symbol 560 MovieClip Frame 12
stop();
Symbol 561 Button
on (release) {
_root.SelectLevel_StartGame(7, 0);
}
Symbol 562 Button
on (release) {
_root.SelectLevel_StartGame(3, 0);
}
Symbol 563 MovieClip Frame 12
stop();
Symbol 571 Button
on (release) {
_root.PlayButtonSound();
if (_root.helpWindowMode == 2) {
_root.ShowPlayArea();
} else {
_root.ShowMainMenu();
}
}
Symbol 572 Button
on (release) {
HelpWindowFrameNum = HelpWindowFrameNum + 1;
if (HelpWindowFrameNum > 10) {
HelpWindowFrameNum = 0;
}
_root.Help1.gotoAndStop(15 + HelpWindowFrameNum);
_root.Help1.hintArea.gotoAndPlay(1);
_root.PlayButtonSound();
}
Symbol 583 MovieClip Frame 1
hint1_clip.gotoandplay(1);
Symbol 583 MovieClip Frame 15
stop();
Symbol 588 Button
on (release) {
_root.PlayMainMenuMusic();
if (_root.RegisteredVersion == 0) {
_root.ShowBuyMeWindow(1);
} else {
_root.ShowMainMenu();
}
_root.PlayButtonSound();
}
Symbol 592 Button
on (release) {
var strOut = ((((EnterField.text + "|") + _root.Score) + "|") + _root.RegisteredVersion);
var strOut2 = _root.EncrpytString(strOut);
getURL ((_root.HiScoreSaveURL + "?") + strOut2, "_blank");
_root.PlayMainMenuMusic();
if (_root.RegisteredVersion == 0) {
_root.ShowBuyMeWindow(1);
} else {
_root.ShowMainMenu();
}
_root.PlayButtonSound();
}
Symbol 620 Button
on (release) {
_root.PlayButtonSound();
var strParam;
var strUrl = _root.LinkBuyMe;
if (_root.strAffilateID.length > 0) {
strParam = "aid=" + _root.strAffilateID;
strUrl = _root.AppendUrlParam(strUrl, strParam);
}
strParam = "refer=" + _root.GetBaseUrl(_url);
strUrl = _root.AppendUrlParam(strUrl, strParam);
getURL (strUrl, "_blank");
if (_root.BuyMeWindowMode == 2) {
fscommand ("quit");
fscommand ("close");
} else if (_root.BuyMeWindowMode == 3) {
_root.ShowSelectLevelWindow();
} else if (_root.BuyMeWindowMode == 4) {
_root.MainMenuMusic.stop();
_root.ShowPlayArea();
} else {
_root.ShowMainMenu();
}
}
Symbol 621 Button
on (release) {
_root.PlayButtonSound();
if (_root.BuyMeWindowMode == 2) {
fscommand ("quit");
fscommand ("close");
} else if (_root.BuyMeWindowMode == 3) {
_root.ShowSelectLevelWindow();
} else if (_root.BuyMeWindowMode == 4) {
_root.MainMenuMusic.stop();
_root.ShowPlayArea();
} else {
_root.ShowMainMenu();
}
}
Symbol 622 MovieClip Frame 1
SpecialText.text = "Special: Try advanced level 31 for free!";
if (_root.BuyMeWindowMode == 4) {
nagText.text = "Skip Level only available in BLOX Deluxe.\nIncredible new challenges ahead.\nGet Blox Deluxe to enjoy all 60 levels!";
} else if (_root.BuyMeWindowMode == 3) {
nagText.text = "Selected level only available in BLOX Deluxe.\nIncredible new challenges ahead.\nGet Blox Deluxe to enjoy all 60 levels!";
SpecialText._visible = false;
FreeTryBtn._visible = false;
} else {
nagText.text = "Incredible new challenges ahead.\nGreat new obstacles and puzzles to conquer.\nGet Blox Deluxe to enjoy all 60 levels!";
}
Symbol 622 MovieClip Frame 15
if (_root.BuyMeWindowMode == 3) {
SpecialText._visible = false;
FreeTryBtn._visible = false;
}
stop();