Frame 1
function checkGoodUrl(myUrl) {
var currUrl;
var urlParts;
var numParts;
var i;
if (_url.toLowerCase().substr(0, 4) != "http") {
return(1);
}
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);
}
RegisteredVersion = 0;
IsDownload = 0;
IsTimedDemo = 0;
if (_url.toLowerCase().substr(0, 4) != "http") {
IsDownload = 1;
IsTimedDemo = 1;
}
IsMac = 0;
var strSystemOs = System.capabilities.os.toLowerCase();
if (strSystemOs.indexOf("mac") >= 0) {
IsMac = 1;
IsTimedDemo = 0;
}
EnableEscSkipLevel = 0;
HiScoreEnabled = 1;
HiScoreSaveURL = "http://www.arcadetown.com/bloxforever/hs.asp";
HiScoreOpenURL = "http://www.arcadetown.com/scripts/show_hiscore.asp?gameid=bloxforever";
LinkBuyMe = "http://www.arcadetown.com/order/choosemethod.asp?gameid=bloxforever";
LinkDownload = "http://www.arcadetown.com/bloxforever/download.asp";
LinkMoreGames = "http://www.arcadetown.com/index.asp?gameid=bloxforever";
LinkCopyright = "http://www.arcadetown.com/index.asp?gameid=bloxforever";
if (RegisteredVersion == 0) {
LockdownUrl = "";
} else {
LockdownUrl = "arcadetown.com|freewebgames.com";
HiScoreOpenURL = "http://www.arcadetown.com/scripts/show_hiscore.asp?gameid=bloxforever_deluxe";
}
VendorType = 9;
if (VendorType == 3) {
LockdownUrl = "newgrounds.com|ungrounded.net";
if (checkGoodUrl(LockdownUrl) == 1) {
LinkBuyMe = AppendUrlParam(LinkBuyMe, "aid=647057");
LinkMoreGames = AppendUrlParam(LinkMoreGames, "aid=647057");
LinkDownload = AppendUrlParam(LinkDownload, "aid=647057");
}
} else if (VendorType == 4) {
LockdownUrl = "freearcade.com|javaarcade.com";
if (checkGoodUrl(LockdownUrl) == 1) {
LinkBuyMe = "http://www.4gameplay.com/order/choosemethod.asp?gameid=bloxforever&aid=647063";
LinkMoreGames = "http://www.freearcade.com";
LinkDownload = "http://www.4gameplay.com/bloxforever/download.asp?aid=647063";
HiScoreEnabled = 0;
}
} else if (VendorType == 5) {
LockdownUrl = "entertainmail.net";
if (checkGoodUrl(LockdownUrl) == 1) {
LinkBuyMe = AppendUrlParam(LinkBuyMe, "aid=647415");
LinkMoreGames = AppendUrlParam(LinkMoreGames, "aid=647415");
LinkDownload = AppendUrlParam(LinkDownload, "aid=647415");
}
} else if (VendorType == 6) {
LinkBuyMe = "http://www.4gameplay.com/order/choosemethod.asp?gameid=bloxforever";
LinkMoreGames = "http://www.4gameplay.com/index.asp?gameid=bloxforever";
LinkDownload = "http://www.4gameplay.com/bloxforever/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 = "";
} else if (VendorType == 9) {
LinkBuyMe = "http://www.miniclip.com/buy_blox.htm";
LinkMoreGames = "http://www.miniclip.com";
LinkDownload = "";
HiScoreEnabled = 0;
} else if (VendorType == 10) {
LockdownUrl = "bigfishgames.com|arcadetown.com";
if (checkGoodUrl(LockdownUrl) == 1) {
LinkBuyMe = "http://www.bigfishgames.com/downloads/bloxforever/plus.html";
LinkMoreGames = "http://www.bigfishgames.com";
LinkDownload = "http://www.bigfishgames.com/downloads/bloxforever/index.html";
HiScoreEnabled = 0;
LinkCopyright = "";
} else {
VendorType = 1;
}
} else if (VendorType == 11) {
LockdownUrl = "mysterystudio.com|arcadetown.com";
if (checkGoodUrl(LockdownUrl) == 1) {
LinkBuyMe = "http://www.mysterystudio.com/buy.php?id=blox2";
LinkMoreGames = "http://www.mysterystudio.com/index.php?f=blox2";
LinkDownload = "http://www.mysterystudio.com/download.php?id=blox2";
LinkCopyright = "";
HiScoreEnabled = 0;
} else {
VendorType = 1;
}
}
if (IsDownload == 1) {
LinkDownload = "";
if (IsMac == 1) {
LinkBuyMe = "do1";
LinkMoreGames = "do2";
LinkCopyright = LinkMoreGames;
HiScoreEnabled = 0;
}
}
if ((_root.IsMac == 1) && (_root.IsDownload == 1)) {
fscommand ("fullscreen", true);
fscommand ("showmenu", false);
Stage.scaleMode = "noScale";
}
if ((checkGoodUrl(_root.LockdownUrl) == 0) && (_root.RegisteredVersion == 1)) {
ProgressBar._xscale = 0;
} else if (_framesloaded >= _totalframes) {
if (_root.VendorType == 9) {
gotoAndPlay (4);
} else {
gotoAndPlay (3);
}
stop();
} else {
ProgressBar._xscale = int((getBytesLoaded() / getBytesTotal()) * 100);
}
Frame 2
gotoAndPlay (1);
Frame 3
function checkGoodUrl(myUrl) {
var currUrl;
var urlParts;
var numParts;
var i;
if (_url.toLowerCase().substr(0, 4) != "http") {
return(1);
}
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);
}
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)) {
if (objBrk._Type == BrkTypeSkull) {
objBrk._DieTimer = objBrk._DieTimer - 5;
} else {
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 objBrk;
var nMax = (field_sizeX * field_sizeY);
total_num_must_die_bricks = 0;
total_num_slug_bricks = 0;
total_num_skull_bricks = 0;
var i = 1;
while (i <= nMax) {
array_must_die_bricks[i] = 9999;
i++;
}
var j = 1;
while (j <= num_bricks) {
objBrk = this["brcik" + j];
if (objBrk._MustDie) {
total_num_must_die_bricks++;
array_must_die_bricks[total_num_must_die_bricks] = j;
if (objBrk._Type == BrkTypeSlug) {
total_num_slug_bricks++;
} else if (objBrk._Type == BrkTypeSkull) {
total_num_skull_bricks++;
}
}
j++;
}
}
function DeleteFromMustDieArray(n) {
var objBrk = this["brcik" + n];
if (objBrk._Type == BrkTypeSlug) {
total_num_slug_bricks--;
} else if (objBrk._Type == BrkTypeSkull) {
total_num_skull_bricks--;
}
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.floor((val * brick_size) + otstupX));
}
function ConvNetYtoY(val) {
return(Math.floor((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) && (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 != BrkTypeLiftUp) {
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 ClearLevelNet() {
var nX;
var nY;
var nIdx;
nY = 0;
while (nY < field_sizeY) {
nX = 0;
while (nX < field_sizeX) {
nIdx = nX + (nY * field_sizeX);
LevelNet[nIdx] = BrkTypeClear;
nX++;
}
nY++;
}
}
function LoadBricks(n, m) {
var strBrkName;
var nBrkType;
var objBrk;
var i;
var nBrkTypeTop;
var nBrkTypeLeft;
var nBrkTypeRight;
var nBrkTypeBottom;
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_oneway_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;
brick_blink_cnt = brick_blink_floor + Math.floor(Math.random() * brick_blink_range);
back_blink_cnt = back_blink_floor + Math.floor(Math.random() * back_blink_range);
LastScore = Score;
FinishLevelTimer = FinishLevelTimerMax;
dialog_mode = false;
demo_mode = false;
demo_timer = 0;
this.ScoreOnBoardText1._DieTimer = -1;
this.ScoreOnBoardText1._visible = false;
ClearLevelNet();
var strLevelData = this["LevelNet" + level_number];
var nWidth = -1;
var nHeight = -1;
var LevelArr = null;
var LevelArrLen;
var strValName;
var TempArr;
var ElementArr = strLevelData.split("&");
var nNumElements = ElementArr.length;
i = 0;
while (i <= nNumElements) {
TempArr = ElementArr[i].split("=");
if (TempArr.length >= 2) {
strValName = TempArr[0].toLowerCase();
if (strValName == "width") {
nWidth = Number(TempArr[1]);
} else if (strValName == "height") {
nHeight = Number(TempArr[1]);
} else if (strValName == "level") {
LevelArr = TempArr[1].split(",");
LevelArrLen = LevelArr.length;
}
}
i++;
}
if (((nWidth == -1) || (nHeight == -1)) || (LevelArr == null)) {
return(undefined);
}
var nMax = (field_sizeX & field_sizeY);
if ((nWidth * nHeight) != LevelArrLen) {
return(undefined);
}
var nX;
var nY;
var nIdx;
var nIdxSrc;
var nXOffset = Math.floor((field_sizeX - nWidth) / 2);
var nYOffset = Math.floor((field_sizeY - nHeight) / 2);
nY = 0;
while (nY < nHeight) {
nX = 0;
while (nX < nWidth) {
nIdxSrc = nX + (nY * nWidth);
nIdx = (nX + nXOffset) + ((nY + nYOffset) * field_sizeX);
LevelNet[nIdx] = parseInt(LevelArr[nIdxSrc]);
nX++;
}
nY++;
}
var i = 1;
while (i <= m) {
var j = 1;
while (j <= n) {
nBrkType = LevelNet[(j - 1) + ((i - 1) * field_sizeX)];
if (nBrkType != BrkTypeClear) {
num_bricks++;
strBrkName = "brcik" + num_bricks;
if (nBrkType == BrkTypeBoundary) {
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 == BrkTypeBoundary) && (nBrkTypeRight == BrkTypeBoundary)) && (nBrkTypeTop == BrkTypeBoundary)) && (nBrkTypeBottom == BrkTypeBoundary)) {
duplicateMovieClip (LibraryBrickCross, strBrkName, num_bricks + 0);
} else if (((nBrkTypeRight == BrkTypeBoundary) && (nBrkTypeTop == BrkTypeBoundary)) && (nBrkTypeBottom == BrkTypeBoundary)) {
duplicateMovieClip (LibraryBrickLTee, strBrkName, num_bricks + 0);
} else if (((nBrkTypeLeft == BrkTypeBoundary) && (nBrkTypeTop == BrkTypeBoundary)) && (nBrkTypeBottom == BrkTypeBoundary)) {
duplicateMovieClip (LibraryBrickRTee, strBrkName, num_bricks + 0);
} else if (((nBrkTypeLeft == BrkTypeBoundary) && (nBrkTypeRight == BrkTypeBoundary)) && (nBrkTypeTop == BrkTypeBoundary)) {
duplicateMovieClip (LibraryBrickBTee, strBrkName, num_bricks + 0);
} else if (((nBrkTypeLeft == BrkTypeBoundary) && (nBrkTypeRight == BrkTypeBoundary)) && (nBrkTypeBottom == BrkTypeBoundary)) {
duplicateMovieClip (LibraryBrickTTee, strBrkName, num_bricks + 0);
} else if ((nBrkTypeRight == BrkTypeBoundary) && (nBrkTypeBottom == BrkTypeBoundary)) {
duplicateMovieClip (LibraryBrickUL, strBrkName, num_bricks + 0);
} else if ((nBrkTypeLeft == BrkTypeBoundary) && (nBrkTypeBottom == BrkTypeBoundary)) {
duplicateMovieClip (LibraryBrickUR, strBrkName, num_bricks + 0);
} else if ((nBrkTypeRight == BrkTypeBoundary) && (nBrkTypeTop == BrkTypeBoundary)) {
duplicateMovieClip (LibraryBrickLL, strBrkName, num_bricks + 0);
} else if ((nBrkTypeLeft == BrkTypeBoundary) && (nBrkTypeTop == BrkTypeBoundary)) {
duplicateMovieClip (LibraryBrickLR, strBrkName, num_bricks + 0);
} else if ((nBrkTypeTop == BrkTypeBoundary) && (nBrkTypeBottom == BrkTypeBoundary)) {
duplicateMovieClip (LibraryBrickLeft, strBrkName, num_bricks + 0);
} else if ((nBrkTypeLeft == BrkTypeBoundary) && (nBrkTypeRight == BrkTypeBoundary)) {
duplicateMovieClip (LibraryBrickTop, strBrkName, num_bricks + 0);
} else if (nBrkTypeBottom == BrkTypeBoundary) {
duplicateMovieClip (LibraryBrickTCap, strBrkName, num_bricks + 0);
} else if (nBrkTypeTop == BrkTypeBoundary) {
duplicateMovieClip (LibraryBrickBCap, strBrkName, num_bricks + 0);
} else if (nBrkTypeRight == BrkTypeBoundary) {
duplicateMovieClip (LibraryBrickLCap, strBrkName, num_bricks + 0);
} else if (nBrkTypeLeft == BrkTypeBoundary) {
duplicateMovieClip (LibraryBrickRCap, strBrkName, num_bricks + 0);
} else {
duplicateMovieClip (LibraryBrickCap, strBrkName, num_bricks + 0);
}
} else if (nBrkType == BrkTypeGem1) {
duplicateMovieClip (LibraryBrick1, strBrkName, num_bricks + 200);
} else if (nBrkType == BrkTypeGem2) {
duplicateMovieClip (LibraryBrick2, strBrkName, num_bricks + 200);
} else if (nBrkType == BrkTypeGem3) {
duplicateMovieClip (LibraryBrick3, strBrkName, num_bricks + 200);
} else if (nBrkType == BrkTypeGem4) {
duplicateMovieClip (LibraryBrick4, strBrkName, num_bricks + 200);
} else if (nBrkType == BrkTypeGem5) {
duplicateMovieClip (LibraryBrick5, strBrkName, num_bricks + 200);
} else if (nBrkType == BrkTypeGem6) {
duplicateMovieClip (LibraryBrick6, strBrkName, num_bricks + 200);
} else if (nBrkType == BrkTypeGem7) {
duplicateMovieClip (LibraryBrick7, strBrkName, num_bricks + 200);
} else if (nBrkType == BrkTypeGem8) {
duplicateMovieClip (LibraryBrick8, strBrkName, num_bricks + 200);
} else if (nBrkType == BrkTypeLiftUp) {
duplicateMovieClip (LibraryBrickLift, strBrkName, num_bricks + 200);
} else if (nBrkType == BrkTypeWater) {
duplicateMovieClip (LibraryBrickWater, strBrkName, num_bricks + 200);
} else if (nBrkType == BrkTypeLava) {
duplicateMovieClip (LibraryBrickLava, strBrkName, num_bricks + 200);
} else if (nBrkType == BrkTypeBomb) {
duplicateMovieClip (LibraryBrickBomb, strBrkName, num_bricks);
} else if (nBrkType == BrkTypeBreak) {
duplicateMovieClip (LibraryBrickBreak, strBrkName, num_bricks);
} else if (nBrkType == BrkTypeLiftSide) {
duplicateMovieClip (LibraryBrickLift, strBrkName, num_bricks + 200);
} else if (nBrkType == BrkTypeSlug) {
duplicateMovieClip (LibraryBrickSlug, strBrkName, num_bricks + 200);
} else if (nBrkType == BrkTypeSkull) {
duplicateMovieClip (LibraryBrickSkull, strBrkName, num_bricks + 200);
} else if (nBrkType == BrkTypeOneWayLeft) {
duplicateMovieClip (LibraryBrickOneWayLeft, strBrkName, num_bricks + 0);
} else if (nBrkType == BrkTypeOneWayRight) {
duplicateMovieClip (LibraryBrickOneWayRight, strBrkName, num_bricks + 0);
} else if (nBrkType == BrkTypeTrap) {
duplicateMovieClip (LibraryBrickTrap, strBrkName, num_bricks + 200);
} else if ((nBrkType >= BrkTypeTeleportLow) && (nBrkType <= BrkTypeTeleportHigh)) {
if ((((nBrkType == 21) || (nBrkType == 23)) || (nBrkType == 25)) || (nBrkType == 27)) {
duplicateMovieClip (LibraryBrickTeleport, strBrkName, num_bricks);
} else if ((((nBrkType == 22) || (nBrkType == 24)) || (nBrkType == 26)) || (nBrkType == 28)) {
duplicateMovieClip (LibraryBrickTeleport2, strBrkName, num_bricks);
}
} else if ((nBrkType >= BrkTypeMagnetLow) && (nBrkType <= BrkTypeMagnetHigh)) {
duplicateMovieClip (LibraryBrickMagnet, strBrkName, num_bricks + 200);
} else if ((nBrkType >= BrkTypeMagnetSwitchLow) && (nBrkType <= BrkTypeMagnetSwitchHigh)) {
duplicateMovieClip (LibraryBrickSwitch, strBrkName, num_bricks + 200);
} else if ((nBrkType >= BrkTypeLaserLow) && (nBrkType <= BrkTypeLaserHigh)) {
var nLaserType = (nBrkType - (Math.round(nBrkType / 10) * 10));
if (nLaserType == 2) {
duplicateMovieClip (LibraryBrickLaserUp, strBrkName, num_bricks + 0);
} else if (nLaserType == 3) {
duplicateMovieClip (LibraryBrickLaserRight, strBrkName, num_bricks + 0);
} else if (nLaserType == 4) {
duplicateMovieClip (LibraryBrickLaserDown, strBrkName, num_bricks + 0);
} else {
duplicateMovieClip (LibraryBrickLaserLeft, strBrkName, num_bricks + 0);
}
}
objBrk = this[strBrkName];
objBrk._x = ConvNetXtoX(j);
objBrk._y = ConvNetYtoY(i);
objBrk._NetPosX = j;
objBrk._NetPosY = i;
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;
objBrk.GotoAndPlay(1);
if ((((nBrkType >= BrkTypeGem1) && (nBrkType <= BrkTypeGem8)) || (nBrkType == BrkTypeSlug)) || (nBrkType == BrkTypeSkull)) {
objBrk._MustDie = 1;
}
if (nBrkType == BrkTypeLiftUp) {
objBrk._MoveY = 4;
} else if (nBrkType == BrkTypeLiftSide) {
objBrk._MoveX = 4;
}
if (((nBrkType >= BrkTypeGem1) && (nBrkType <= BrkTypeLiftUp)) || (nBrkType == BrkTypeLiftSide)) {
num_can_move_bricks++;
array_can_move_bricks[num_can_move_bricks] = num_bricks;
}
if ((nBrkType == BrkTypeLiftUp) || (nBrkType == BrkTypeLiftSide)) {
num_moving_bricks++;
array_moving_bricks[num_moving_bricks] = num_bricks;
} else if ((nBrkType == BrkTypeWater) || (nBrkType == BrkTypeLava)) {
num_lava_bricks++;
array_lava_bricks[num_lava_bricks] = num_bricks;
} else if (nBrkType == BrkTypeBomb) {
num_bomb_bricks++;
array_bomb_bricks[num_bomb_bricks] = num_bricks;
} else if ((nBrkType == BrkTypeOneWayLeft) || (nBrkType == BrkTypeOneWayRight)) {
num_oneway_bricks++;
array_oneway_bricks[num_oneway_bricks] = num_bricks;
} else if (nBrkType == BrkTypeBreak) {
num_break_bricks++;
array_break_bricks[num_break_bricks] = num_bricks;
} else if ((nBrkType >= BrkTypeTeleportLow) && (nBrkType <= BrkTypeTeleportHigh)) {
num_teleport_bricks++;
array_teleport_bricks[num_teleport_bricks] = num_bricks;
}
if ((((((((nBrkType >= BrkTypeBoundary) && (nBrkType <= BrkTypeLiftUp)) || ((nBrkType >= BrkTypeBomb) && (nBrkType <= BrkTypeSlug))) || (nBrkType == BrkTypeSkull)) || (nBrkType == BrkTypeTrap)) || ((nBrkType >= BrkTypeMagnetLow) && (nBrkType <= BrkTypeMagnetHigh))) || ((nBrkType >= BrkTypeMagnetSwitchLow) && (nBrkType <= BrkTypeMagnetSwitchHigh))) || ((nBrkType >= BrkTypeLaserLow) && (nBrkType <= BrkTypeLaserHigh))) {
num_hard_bricks++;
array_hard_bricks[num_hard_bricks] = num_bricks;
}
if ((nBrkType >= BrkTypeLaserLow) && (nBrkType <= BrkTypeLaserHigh)) {
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 ((nBrkType >= BrkTypeMagnetLow) && (nBrkType <= BrkTypeMagnetHigh)) {
num_magnet_bricks++;
array_magnet_bricks[num_magnet_bricks] = num_bricks;
objBrk._LaserType = nBrkType - (BrkTypeMagnetLow - 1);
}
if ((nBrkType >= BrkTypeMagnetSwitchLow) && (nBrkType <= BrkTypeMagnetSwitchHigh)) {
num_magnetswitch_bricks++;
array_magnetswitch_bricks[num_magnetswitch_bricks] = num_bricks;
objBrk._SwitchNumber = nBrkType - (BrkTypeMagnetSwitchLow - 1);
}
}
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 (RegisteredVersion == 0) {
if ((level_number != 0) && (((IsTimedDemo == 0) && (level_number > NumFreeLevels)) || ((IsTimedDemo == 1) && (((level_number > NumFreeLevels) || (DemoTimeLeft <= 0)) || (level_number > (level_number_done_max + 1)))))) {
ShowDemoLabel();
} else if (((retry == 1) && (level_number > 0)) && ((num_levels_played % 4) == 0)) {
ShowBuyMeWindow(5);
}
}
if (LevelStart1._visible) {
PlayLevelStartMusic();
} else if (BuyMeWindow1._visible) {
PlayMainMenuMusic();
} else {
PlayGamePlayMusic();
}
}
function FindBrick(x, y) {
if ((((x < 0) || (x > field_sizeX)) || (y < 0)) || (y > field_sizeY)) {
return(9999);
}
return(ArrayNet[x + ((y - 1) * field_sizeX)]);
}
function FindBrickByType(n) {
var objBrk;
var i = 1;
while (i <= num_bricks) {
objBrk = this["brcik" + i];
if (objBrk._DieTimer == 100) {
if (objBrk._Type == n) {
return(i);
}
}
i++;
}
return(9999);
}
function DeleteBrick(n) {
var objBrk = this["brcik" + n];
if (objBrk._DieTimer < 100) {
return(undefined);
}
ArrayNet[objBrk._NetPosX + ((objBrk._NetPosY - 1) * field_sizeX)] = 9999;
DeleteFromMustDieArray(n);
DeleteFromCanMoveArray(n);
DeleteFromLavaArray(n);
DeleteFromHardArray(n);
DeleteFromBombArray(n);
DeleteFromOneWayArray(n);
DeleteFromBreakArray(n);
DeleteFromLaserArray(n);
DeleteFromMagnetArray(n);
DeleteFromSwitchArray(n);
DeleteFromTeleportArray(n);
DeleteFromMovingArray(n);
AddToDeathArray(n);
if (belong_brick == n) {
belong_brick = 9999;
}
objBrk._DieTimer = 99;
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;
}
if (objBrk._Type == BrkTypeBreak) {
} else if (objBrk._Type == BrkTypeBomb) {
objBrk.GotoAndPlay(8);
var j;
var k;
var objBrk2;
k = FindBrick(objBrk._NetPosX, objBrk._NetPosY + 1);
if (k != 9999) {
DeleteBrick(k);
}
k = FindBrick(objBrk._NetPosX - 1, objBrk._NetPosY);
if (k != 9999) {
DeleteBrick(k);
}
k = FindBrick(objBrk._NetPosX + 1, objBrk._NetPosY);
if (k != 9999) {
DeleteBrick(k);
}
k = FindBrick(objBrk._NetPosX + 1, objBrk._NetPosY - 1);
if (k != 9999) {
DeleteBrick(k);
}
k = FindBrick(objBrk._NetPosX + 1, objBrk._NetPosY + 1);
if (k != 9999) {
DeleteBrick(k);
}
k = FindBrick(objBrk._NetPosX - 1, objBrk._NetPosY - 1);
if (k != 9999) {
DeleteBrick(k);
}
k = FindBrick(objBrk._NetPosX - 1, objBrk._NetPosY + 1);
if (k != 9999) {
DeleteBrick(k);
}
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);
} else {
j++;
}
}
j = 1;
while (j <= num_oneway_bricks) {
objBrk2 = this["brcik" + array_oneway_bricks[j]];
if ((Math.abs(objBrk2._NetPosX - objBrk._NetPosX) <= 1) && (Math.abs(objBrk2._NetPosY - objBrk._NetPosY) <= 1)) {
DeleteBrick(objBrk2._Number);
} else {
j++;
}
}
j = 1;
while (j <= num_teleport_bricks) {
objBrk2 = this["brcik" + array_teleport_bricks[j]];
if ((Math.abs(objBrk2._NetPosX - objBrk._NetPosX) <= 1) && (Math.abs(objBrk2._NetPosY - objBrk._NetPosY) <= 1)) {
DeleteBrick(objBrk2._Number);
} else {
j++;
}
}
} else if (((objBrk._Type >= BrkTypeGem1) && (objBrk._Type <= BrkTypeGem8)) || (objBrk._Type == BrkTypeSkull)) {
objBrk.GotoAndPlay(2);
}
}
function MarkBrickToDelete(n) {
var objBrk;
var objBrk2;
var i;
var j;
var k;
var num_marked;
var num_processed;
var bGood;
num_marked = 0;
num_processed = 0;
do {
objBrk = this["brcik" + n];
bGood = true;
if (Math.abs(objBrk._x - ConvNetXtoX(objBrk._NetPosX)) > 6) {
bGood = false;
} else if (Math.abs(objBrk._y - ConvNetYtoY(objBrk._NetPosY)) > 6) {
bGood = false;
} else if ((objBrk._MustDie == 0) || (objBrk._Type == BrkTypeSlug)) {
bGood = false;
} else if (objBrk._Falling) {
bGood = false;
} else if (objBrk._DieTimer != 100) {
bGood = false;
} else if (objBrk._Parent != 9999) {
if ((this["brcik" + objBrk._Parent]._y - objBrk._y) > (brick_size + 6)) {
bGood = false;
}
}
if (bGood) {
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);
if (!objBrk._DeleteMark) {
objBrk._DeleteMark = true;
array_marked_bricks[num_marked] = objBrk._Number;
num_marked++;
}
if (!objBrk2._DeleteMark) {
objBrk2._DeleteMark = true;
array_marked_bricks[num_marked] = objBrk2._Number;
num_marked++;
}
if ((objBrk._Type == BrkTypeSkull) || (objBrk2._Type == BrkTypeSkull)) {
level_failed = true;
}
if ((belong_brick == n) || (belong_brick == k)) {
belong_brick = 9999;
}
}
}
}
}
}
}
}
}
j++;
}
}
num_processed++;
if (num_processed < num_marked) {
n = array_marked_bricks[num_processed];
}
} while (num_processed < num_marked);
if (num_marked > 0) {
i = 0;
while (i <= num_marked) {
k = array_marked_bricks[i];
objBrk2 = this["brcik" + k];
if (objBrk2._visible && (objBrk2._DeleteMark)) {
if (!level_failed) {
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(k);
}
i++;
}
SetVisiblePanelBricks();
if (level_failed) {
PlayElimateSkullSound();
} else if (this.ScoreOnBoardText1._ScoreMultiplier > 2) {
PlayElimateBonusSound();
} else {
PlayElimateSound();
}
}
}
function GetNumberMustDieBricks() {
return((total_num_must_die_bricks - total_num_slug_bricks) - total_num_skull_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 objBrk2;
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) {
objBrk2 = this["brcik" + n];
if (objBrk._Type == BrkTypeWater) {
PlayElimateWaterSound();
DeleteBrick(n);
SetVisiblePanelBricks();
} else if (objBrk._Type == BrkTypeLava) {
if ((objBrk2._Type != BrkTypeSlug) && (objBrk2._Type != BrkTypeSkull)) {
level_failed = true;
}
PlayElimateAcidSound();
DeleteBrick(n);
SetVisiblePanelBricks();
}
}
i++;
}
}
function DeleteFromTeleportArray(n) {
var j = 1;
while (j <= num_teleport_bricks) {
if (array_teleport_bricks[j] == n) {
if (j < num_teleport_bricks) {
array_teleport_bricks[j] = array_teleport_bricks[num_teleport_bricks];
}
num_teleport_bricks--;
}
j++;
}
}
function UpdateTeleportBricks() {
var i;
var j;
var n;
var objBrkIn;
var objBrkOut;
var nBrickOut;
var objBrkOut;
i = 1;
while (i <= num_teleport_bricks) {
objBrkIn = this["brcik" + array_teleport_bricks[i]];
n = FindBrick(objBrkIn._NetPosX, objBrkIn._NetPosY);
if (n != 9999) {
if (Math.ceil(objBrkIn._Type / 2) != Math.floor(objBrkIn._Type / 2)) {
nBrickOut = FindBrickByType(objBrkIn._Type + 1);
if (nBrickOut != 9999) {
objBrkOut = this["brcik" + nBrickOut];
if (FindBrick(objBrkOut._NetPosX, objBrkOut._NetPosY) == 9999) {
objBrkMove = this["brcik" + n];
j = objBrkMove._NetPosX + ((objBrkMove._NetPosY - 1) * field_sizeX);
ArrayNet[j] = 9999;
objBrkMove._x = objBrkOut._x;
objBrkMove._y = objBrkOut._y;
objBrkMove._NetPosX = ConvXtoNetXround(objBrkMove._x);
objBrkMove._NetPosY = ConvYtoNetYround(objBrkMove._y);
j = objBrkMove._NetPosX + ((objBrkMove._NetPosY - 1) * field_sizeX);
ArrayNet[j] = n;
objBrkMove._Falling = true;
if (belong_brick == n) {
belong_brick = 9999;
}
PlayWarpgateSound();
}
}
}
}
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 DeleteFromOneWayArray(n) {
var j = 1;
while (j <= num_oneway_bricks) {
if (array_oneway_bricks[j] == n) {
if (j < num_oneway_bricks) {
array_oneway_bricks[j] = array_oneway_bricks[num_oneway_bricks];
}
num_oneway_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 objBrk2;
var i;
var n;
var j;
var k;
i = 1;
while (i <= num_bomb_bricks) {
k = array_bomb_bricks[i];
objBrk = this["brcik" + k];
n = FindBrick(objBrk._NetPosX, objBrk._NetPosY - 1);
if (n != 9999) {
objBrk2 = this["brcik" + n];
if ((((objBrk2._Type >= BrkTypeGem1) && (objBrk2._Type <= BrkTypeGem8)) || (objBrk2._Type >= BrkTypeSlug)) || (objBrk2._Type >= BrkTypeSkull)) {
PlayBombSound();
DeleteBrick(n);
DeleteBrick(k);
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) && (objBrk2._MustDie == 1)) {
objBrk.GotoAndStop(5 - Math.max(0, 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) {
var i;
var k;
k = j;
while (k <= num_laser_bricks) {
i = 1;
while (i <= field_sizeX) {
this[(("laser" + k) + "_") + i]._visible = false;
i++;
}
k++;
}
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 bFired = false;
var cur_x = (objBrk._NetPosX + add_x);
var cur_y = (objBrk._NetPosY + add_y);
objBrk._LaserStartNetX = cur_x;
objBrk._LaserStartNetY = cur_y;
var nBrkIdx = FindBrick(cur_x, cur_y);
while ((nBrkIdx == 9999) || ((this["brcik" + nBrkIdx]._MustDie == 1) && (this["brcik" + nBrkIdx]._Type != BrkTypeSlug))) {
bFired = true;
cur_x = cur_x + add_x;
cur_y = cur_y + add_y;
if ((((cur_x < 1) || (cur_x > field_sizeX)) || (cur_y < 1)) || (cur_y > field_sizeY)) {
break;
}
nBrkIdx = FindBrick(cur_x, cur_y);
}
if (bFired) {
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 nBrkNum;
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) {
nBrkNum = FindBrick(i, j);
if (nBrkNum != 9999) {
objBrk2 = this["brcik" + nBrkNum];
if ((objBrk2._MustDie == 1) && (objBrk2._Type != BrkTypeSlug)) {
if (objBrk2._Type != BrkTypeSkull) {
PlayElimateLaserSound();
level_failed = true;
}
DeleteBrick(nBrkNum);
}
}
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 <= field_sizeX) {
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 <= field_sizeX) {
removeMovieClip(this[(("laser" + i) + "_") + j]);
j++;
}
i++;
}
}
function UpdateLaserLines(n) {
var objBrk;
var objBrk2;
var j = 1;
while (j <= field_sizeX) {
this[(("laser" + n) + "_") + j]._visible = false;
j++;
}
objBrk = this["brcik" + array_laser_bricks[n]];
if ((objBrk._LaserTimer >= (objBrk._LaserMaxTime / 4)) || (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 i;
var j;
var objBrk;
var objBrk2;
var n;
var add_x;
var add_y;
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++;
}
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 = -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 (objBrk2._y > ((objBrk._y + brick_size) + 2)) {
objBrk2._y = objBrk2._y - 4;
}
objBrk2._NetPosX = ConvXtoNetXround(objBrk2._x);
objBrk2._NetPosY = ConvYtoNetYround(objBrk2._y);
j = objBrk2._NetPosX + ((objBrk2._NetPosY - 1) * field_sizeX);
ArrayNet[j] = n;
objBrk2._x = ConvNetXtoX(objBrk2._NetPosX);
MarkBrickToDelete(n);
} else {
SetrightPosition(n);
}
}
}
i++;
}
}
function FindMagnetTarget(n) {
var objBrk = this["brcik" + n];
var objBrk2;
var add_x = 0;
var add_y = 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) && (objBrk2._Parent == 9999)) {
return(FindBrick(cur_x, cur_y));
}
}
}
return(9999);
}
function ChangeMagnetValue(nMagnetIdx, nSwitchIdx) {
var objBrk = this["brcik" + nMagnetIdx];
var objSwitch = this["brcik" + nSwitchIdx];
var objBrk2;
var bMagnetOn = false;
if (objBrk._MagnetOn == 1) {
objBrk._MagnetOn = 2;
} else {
objBrk._MagnetOn = 1;
}
var i = 1;
while ((i <= num_magnet_bricks) && (!bMagnetOn)) {
objBrk2 = this["brcik" + array_magnet_bricks[i]];
if (objBrk2._MagnetOn == 1) {
bMagnetOn = true;
}
i++;
}
StopMagnetLoopSound();
if (bMagnetOn) {
PlayMagnetLoopSound();
}
if (objBrk._MagnetOn == 1) {
objBrk.GotoAndPlay(2);
objSwitch.GotoAndStop(3);
} else if (objBrk._MagnetOn == 2) {
objBrk.GotoAndStop(1);
objSwitch.GotoAndStop(1);
}
}
function SetSwitchMagnetValues() {
var objSwitch;
var objMagnet;
var i;
var j;
j = 1;
while (j <= num_magnetswitch_bricks) {
objSwitch = this["brcik" + array_magnetswitch_bricks[j]];
i = 1;
while (i <= num_magnet_bricks) {
objMagnet = this["brcik" + array_magnet_bricks[i]];
if (objMagnet._LaserType == objSwitch._SwitchNumber) {
objSwitch._SwitchNumber = objMagnet._Number;
}
i++;
}
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) {
var objBrk = this["brcik" + 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 UpdateBrickBlink() {
brick_blink_cnt--;
if (brick_blink_cnt <= 0) {
if (total_num_must_die_bricks > 0) {
var nIdx = Math.floor(Math.random() * total_num_must_die_bricks);
var objBrk = this["brcik" + array_must_die_bricks[nIdx]];
objBrk.brickObj.GotoAndPlay(2);
}
brick_blink_cnt = brick_blink_floor + Math.floor(Math.random() * brick_blink_range);
}
}
function UpdateGame() {
if (strCustomVarIn.length > 0) {
var strCmdTemp = strCustomVarIn;
strCustomVarIn = "";
var strCmd = strCmdTemp.substr(0, 4).toLowerCase();
var strValue = strCmdTemp.substr(4, strCmdTemp.length);
if (strCmd == "open") {
var myData = new LoadVars();
myData._parent = this;
myData.onLoad = function (success) {
if (success) {
LevelNet0 = unescape(myData.toString());
level_number = 0;
SelectLevel_StartGame(0, 0);
} else {
ShowMainMenu();
}
return(undefined);
};
myData.load(strValue);
} else if (strCmd == "setv") {
DemoTimeLeft = 3600000 /* 0x36EE80 */;
level_number_done_max = 10;
var ElementArr = strValue.split("|");
var nNumElements = ElementArr.length;
if (nNumElements >= 2) {
var i = 0;
while (i <= nNumElements) {
if (i == 0) {
DemoTimeLeft = Number(ElementArr[i]);
if ((DemoTimeLeft <= 0) || (DemoTimeLeft > 3600000)) {
DemoTimeLeft = 0;
}
} else if (i == 1) {
level_number_done_max = Number(ElementArr[i]);
if ((level_number_done_max < 10) || (level_number_done_max > (total_num_levels + 1))) {
level_number_done_max = 10;
}
}
i++;
}
}
}
}
strCustomVarOut = (DemoTimeLeft + "|") + level_number_done_max;
if ((!dialog_mode) || (!BuyMeWindow1._visible)) {
delete myDate;
myDate = new Date();
CurrentTime = myDate.getTime();
ElapsedTime = CurrentTime - LastTime;
if ((ElapsedTime < -100) || (ElapsedTime > 1000)) {
LastTime = myDate.getTime() - 50;
ElapsedTime = CurrentTime - LastTime;
}
DemoTimeLeft = DemoTimeLeft - ElapsedTime;
if (DemoTimeLeft < 0) {
DemoTimeLeft = 0;
}
ElapsedTime = ElapsedTime / 250;
LastTime = CurrentTime;
Time = Time - ElapsedTime;
if (Time < 0) {
Time = 0;
}
TimeRound = Math.Round(Time / 10) * 10;
if ((((((RegisteredVersion == 0) && (IsTimedDemo == 1)) && (DemoTimeLeft <= 0)) && (PlayArea._visible)) && (!demo_mode)) && (level_number != 0)) {
PlayMainMenuMusic();
ShowBuyMeWindow(1);
return(undefined);
}
}
if (dialog_mode && (!demo_mode)) {
return(undefined);
}
var objBrk;
var strBrkName;
var d_x;
var d_y;
var k;
var i;
var j;
if (demo_mode) {
demo_timer--;
if (demo_timer <= 0) {
demo_mode = false;
demo_timer = 0;
PlayMainMenuMusic();
ShowBuyMeWindow(1);
return(undefined);
}
}
ScoreTextUpdate();
ScoreBonusTextUpdate();
UpdateDieTimer();
if ((NumberMustDieBricks == 0) || (level_failed)) {
if (FinishLevelTimer == FinishLevelTimerMax) {
i = 1;
while (i <= num_bricks) {
objBrk = this["brcik" + i];
objBrk._MoveX = 0;
objBrk._MoveY = 0;
i++;
}
DeleteLaserLines();
}
FinishLevelTimer = FinishLevelTimer - 1;
if (FinishLevelTimer <= (FinishLevelTimerMax - FinishLevelTimerPause)) {
if (FinishLevelTimer == ((FinishLevelTimerMax - FinishLevelTimerPause) - 6)) {
PlayLevelCompleteSound();
}
var nXIdx = -1;
var nYIdx = -1;
if ((FinishLevelTimer % FinishLevelTimerInt) == 0) {
nXIdx = Math.floor(((FinishLevelTimerMax - FinishLevelTimerPause) - FinishLevelTimer) / FinishLevelTimerInt);
nYIdx = (field_sizeY - Math.floor(((FinishLevelTimerMax - FinishLevelTimerPause) - FinishLevelTimer) / FinishLevelTimerInt)) + 1;
}
i = 1;
while (i <= num_bricks) {
objBrk = this["brcik" + i];
if (((objBrk._NetPosX <= nXIdx) && (objBrk._NetPosY >= nYIdx)) && (objBrk._MoveY == 0)) {
objBrk._MoveY = 5;
}
if (objBrk._MoveY > 0) {
objBrk._MoveY = objBrk._MoveY + 3;
objBrk._y = objBrk._y + objBrk._MoveY;
}
i++;
}
}
} else {
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;
} else 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) {
var bTrapped = CheckBrickTrapped(arrow1._NetPosX, arrow1._NetPosY);
var bOneWayStuck = CheckOneWayStuck(arrow1._NetPosX, arrow1._NetPosY, d_x);
if (((FindBrick(arrow1._NetPosX + d_x, arrow1._NetPosY) == 9999) && (!bTrapped)) && (!bOneWayStuck)) {
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) {
i = 1;
while (i <= total_num_must_die_bricks) {
objBrk = this["brcik" + array_must_die_bricks[i]];
objBrk._BelongMagnet = 9999;
i++;
}
}
if (belong_brick != 9999) {
objBrk = this["brcik" + belong_brick];
arrow1._x = objBrk._x;
arrow1._y = objBrk._y;
arrow1._NetPosX = objBrk._NetPosX;
arrow1._NetPosY = objBrk._NetPosY;
}
NumberMustDieBricks = GetNumberMustDieBricks();
UpdateMoveArrows();
UpdateMagnetBricks();
UpdateLaserBricks();
UpdateBreakBricks();
UpdateBombBricks();
UpdateTeleportBricks();
UpdateLavaBricks();
UpdateBrickBlink();
}
if (EnableEscSkipLevel == 1) {
if (Key.isDown(27) || (Key.isDown(39))) {
ShowLevelFinishedWindow();
}
} else if (Key.isDown(27)) {
PlayButtonSound();
ShowGameMenuWindow();
}
if (FinishLevelTimer < 0) {
if (!level_failed) {
if (level_number == 0) {
fscommand ("quit");
fscommand ("close");
PlayMainMenuMusic();
ShowMainMenu();
} else {
PlayLevelCompleteMusicSound();
ShowLevelFinishedWindow();
}
} else {
PlayLevelInCompleteSound();
ShowLevelFailedWindow();
}
}
if (took_brick) {
if (this.arrow1._currentframe < 35) {
this.arrow1.GotoAndPlay(35);
}
} else if (this.arrow1._currentframe >= 35) {
this.arrow1.GotoAndPlay(1);
}
}
function CheckBrickTrapped(nBrickX, nBrickY) {
var nBrkIdx = FindBrick(nBrickX, nBrickY + 1);
if ((nBrkIdx != 9999) && (this["brcik" + nBrkIdx]._Type == BrkTypeTrap)) {
return(true);
}
return(false);
}
function CheckOneWayStuck(nBrickX, nBrickY, nXDir) {
var objBrk;
var i = 1;
while (i <= num_oneway_bricks) {
objBrk = this["brcik" + array_oneway_bricks[i]];
if ((((objBrk._Type == BrkTypeOneWayLeft) && (nXDir > 0)) || ((objBrk._Type == BrkTypeOneWayRight) && (nXDir < 0))) && ((objBrk._NetPosY == nBrickY) && (objBrk._NetPosX == (nBrickX + nXDir)))) {
return(true);
}
i++;
}
return(false);
}
function InitPanelBricks() {
var objBrk;
var i = 1;
while (i <= 8) {
duplicateMovieClip (("LibraryBrick" + i) + "_sm", "panel_brick" + i, 350 + i);
i++;
}
var i = 1;
while (i <= 8) {
objBrk = this["panel_brick" + i];
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 = 31;
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 + 50);
}
if (place == 6) {
return(leftPanelXCoord + 50);
}
if (place == 7) {
return(leftPanelXCoord + 50);
}
if (place == 8) {
return(leftPanelXCoord + 50);
}
}
function GetBrYCoordFromPlace(place) {
var leftPanelYCoord = 254;
if (place == 1) {
return(leftPanelYCoord);
}
if (place == 2) {
return(leftPanelYCoord + 33);
}
if (place == 3) {
return(leftPanelYCoord + 66);
}
if (place == 4) {
return(leftPanelYCoord + 99);
}
if (place == 5) {
return(leftPanelYCoord);
}
if (place == 6) {
return(leftPanelYCoord + 33);
}
if (place == 7) {
return(leftPanelYCoord + 66);
}
if (place == 8) {
return(leftPanelYCoord + 99);
}
}
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.hint_move_clip._visible = false;
LevelStart1.hint_bomb_clip._visible = false;
LevelStart1.hint_break_clip._visible = false;
LevelStart1.hint_lava_clip._visible = false;
LevelStart1.hint_magnet_clip._visible = false;
LevelStart1.hint_warp_clip._visible = false;
LevelStart1.hint_elevator_clip._visible = false;
LevelStart1.hint_laser_clip._visible = false;
LevelStart1.hint_stuck_clip._visible = false;
LevelStart1.hint_triple_clip._visible = false;
LevelStart1.hint_slug_clip._visible = false;
LevelStart1.hint_skull_clip._visible = false;
LevelStart1.hint_trap_clip._visible = false;
LevelStart1.hint_oneway_clip._visible = false;
if (n == 1) {
LevelStart1.hint_move_clip._visible = true;
LevelStart1.hint_move_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 gem blox to beat the level.";
ShowLevelStartWindow();
} else if (n == 2) {
LevelStart1.hint_stuck_clip._visible = true;
LevelStart1.hint_stuck_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.hint_triple_clip._visible = true;
LevelStart1.hint_triple_clip.gotoandplay(1);
LevelStart1.Hint.text = "Combine 3 similar blox for a triple so that you do not end up with 1 blox left.";
ShowLevelStartWindow();
} else if (n == 4) {
LevelStart1.hint_elevator_clip._visible = true;
LevelStart1.hint_elevator_clip.gotoandplay(1);
LevelStart1.Hint.text = "Use the elevator to move a blox upwards.";
ShowLevelStartWindow();
} else if (n == 5) {
LevelStart1.hint_slug_clip._visible = true;
LevelStart1.hint_slug_clip.gotoandplay(1);
LevelStart1.Hint.text = "Slug blox do not eliminate when placed together and do not need to be eliminated.";
ShowLevelStartWindow();
} else if (n == 7) {
LevelStart1.hint_lava_clip._visible = true;
LevelStart1.hint_lava_clip.gotoandplay(1);
LevelStart1.Hint.text = "Do not drop colored gem in lava! Other blox may be dropped in lava while anything may be dropped in water (water in later levels).";
ShowLevelStartWindow();
} else if (n == 9) {
LevelStart1.hint_break_clip._visible = true;
LevelStart1.hint_break_clip.gotoandplay(1);
LevelStart1.Hint.text = "Damaged blox slowly break apart when a blox is placed on top of it.";
ShowLevelStartWindow();
} else if ((n == 10) && (RegisteredVersion == 0)) {
LevelStart1.Hint.text = "Now we step up the difficulty for a small taste of the challenge in the full version.\n\nIn the full version you get all 100 levels including all objects such as traps, one way signs, chain reaction bombs, lasers, magnets, warp gates, instant death skull blox, and much more.\n\nHint: Save key easy to eliminate blox for last, use them to build bridges to move items across from left to right and vice versa.";
ShowLevelStartWindow();
} else if (n == 12) {
LevelStart1.hint_bomb_clip._visible = true;
LevelStart1.hint_bomb_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 == 14) {
LevelStart1.hint_warp_clip._visible = true;
LevelStart1.hint_warp_clip.gotoandplay(1);
LevelStart1.Hint.text = "Use the warp gate to transport a blox.";
ShowLevelStartWindow();
} else if (n == 15) {
LevelStart1.hint_trap_clip._visible = true;
LevelStart1.hint_trap_clip.gotoandplay(1);
LevelStart1.Hint.text = "Traps prevent any blox placed on top of it from moving. Once trapped, other gems must be moved next to it to be eliminated.";
ShowLevelStartWindow();
} else if (n == 16) {
LevelStart1.hint_lava_clip._visible = true;
LevelStart1.hint_lava_clip.gotoandplay(1);
LevelStart1.Hint.text = "Use water to safely eliminate any blox, do not end up with one gem left!";
ShowLevelStartWindow();
} else if (n == 19) {
LevelStart1.hint_oneway_clip._visible = true;
LevelStart1.hint_oneway_clip.gotoandplay(1);
LevelStart1.Hint.text = "Once a blox is moved beyond a one way sign it cannot be moved back against the sign direction";
ShowLevelStartWindow();
} else if (n == 22) {
LevelStart1.hint_laser_clip._visible = true;
LevelStart1.hint_laser_clip.gotoandplay(1);
LevelStart1.Hint.text = "Do not let lasers destroy gem blox. Slug blox are impervious to lasers.";
ShowLevelStartWindow();
} else if (n == 25) {
LevelStart1.hint_magnet_clip._visible = true;
LevelStart1.hint_magnet_clip.gotoandplay(1);
LevelStart1.Hint.text = "Use a magnet to lift a blox. Activate a magnet using the switches.";
ShowLevelStartWindow();
} else if (n == 45) {
LevelStart1.hint_skull_clip._visible = true;
LevelStart1.hint_skull_clip.gotoandplay(1);
LevelStart1.Hint.text = "Do not place any skull blox together.";
ShowLevelStartWindow();
} else {
PlayGamePlayMusic();
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) {
if (!CheckBrickTrapped(arrow1._NetPosX, arrow1._NetPosY)) {
if (!CheckOneWayStuck(arrow1._NetPosX, arrow1._NetPosY, 1)) {
r_a = true;
}
}
}
}
}
if ((belong_brick != 9999) && (took_brick)) {
if (!objBrk._Falling) {
if (FindBrick(arrow1._NetPosX - 1, arrow1._NetPosY) == 9999) {
if (!CheckBrickTrapped(arrow1._NetPosX, arrow1._NetPosY)) {
if (!CheckOneWayStuck(arrow1._NetPosX, arrow1._NetPosY, -1)) {
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;
OptionsMenu1._visible = false;
demo_mode = false;
demo_timer = 0;
StopSound();
}
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 = 170;
PlayArea._visible = true;
LibraryDemoLabel1._visible = true;
LibraryDemoLabel1.gotoandplay(1);
}
function ShowMainMenu() {
HideAllWindows();
MainMenu1._visible = true;
MainMenu1.gotoandplay(1);
MainMenuMode = true;
dialog_mode = true;
MainMenu1.button_playgame.gotoandplay(1);
}
function ShowSelectLevelFreeWindow() {
HideAllWindows();
MainMenu1._visible = true;
SelectLevelFree1._visible = true;
SelectLevelFree1.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 PlayElimateLaserSound() {
if (SoundOn) {
SoundElimenateLaser.start();
}
}
function PlayElimateAcidSound() {
if (SoundOn) {
SoundElimenateAcid.start();
}
}
function PlayElimateWaterSound() {
if (SoundOn) {
SoundElimenateWater.start();
}
}
function PlayElimateSkullSound() {
if (SoundOn) {
SoundElimenateSkull.start();
}
}
function PlayBombSound() {
if (SoundOn) {
SoundBombExplode.start();
}
}
function PlayBloxMovingSound() {
if (SoundOn) {
SoundBloxMoving.start();
}
}
function PlayLevelCompleteSound() {
if (SoundOn) {
SoundLevelComplete.start();
}
}
function PlayLevelCompleteMusicSound() {
if (SoundOn) {
SoundLevelCompleteMusic.start();
}
}
function PlayLevelInCompleteSound() {
if (SoundOn) {
SoundLevelInComplete.start();
}
}
function PlayGetBloxSound() {
if (SoundOn) {
SoundGetBlox.start();
}
}
function PlayWarpgateSound() {
if (SoundOn) {
SoundWarpgate.start();
}
}
function PlayMagnetLoopSound() {
if (SoundOn) {
SoundMagnetLoop.start(0, 1000000);
}
}
function StopMagnetLoopSound() {
if (SoundOn) {
SoundMagnetLoop.stop("s_magnet_loop");
}
}
function StopSound() {
SoundMagnetLoop.stop("s_magnet_loop");
}
function StopMusic() {
MainMenuMusic.stop();
GamePlayMusic1.stop();
GamePlayMusic2.stop();
GamePlayMusic3.stop();
}
function PlayMainMenuMusic() {
StopMusic();
StopSound();
if (MusicOn) {
MainMenuMusic.start(0, 1000000);
}
}
function PlayLevelStartMusic() {
StopMusic();
StopSound();
if (MusicOn) {
GamePlayMusic3.start(0, 1000000);
}
}
function PlayGamePlayMusic() {
StopMusic();
StopSound();
if (MusicOn) {
var nMusicNum = (level_number % 2);
if (nMusicNum == 1) {
GamePlayMusic2.start(0, 1000000);
} else {
GamePlayMusic1.start(0, 1000000);
}
}
}
function SelectLevel_StartGame(levelNum, isFreePeek) {
PlayButtonSound();
StopMusic();
Score = 0;
retry = 1;
level_number = levelNum;
num_levels_played = 1;
LoadBricks(field_sizeX, field_sizeY);
Time = 990;
}
function GotoNextLevel() {
if (level_number > level_number_done_max) {
level_number_done_max = level_number;
}
level_number++;
if (level_number > total_num_levels) {
if (HiScoreEnabled == 1) {
ShowEnterYourNameWindow();
} else {
PlayMainMenuMusic();
ShowMainMenu();
}
level_complete_mode = false;
} else {
retry = 1;
num_levels_played++;
ShowPlayArea();
LoadBricks(field_sizeX, field_sizeY);
level_complete_mode = false;
Time = 990;
}
}
function SetBuyNagText(buyWin) {
var strNagText;
var bDownloadNag = false;
if (IsTimedDemo == 0) {
buyWin.text_timeleft._visible = false;
} else if (DemoTimeLeft <= 0) {
buyWin.text_timeleft.text = "(Trial has expired)";
} else {
var nMinLeft = Math.floor(DemoTimeLeft / 60000);
var nSecLeft = (Math.floor(DemoTimeLeft % 60000) / 1000);
buyWin.text_timeleft.text = (((("(" + nMinLeft) + ":") + Math.floor(nSecLeft / 10)) + Math.floor(nSecLeft % 10)) + " minutes left)";
}
bDownloadNag = false;
strNagText = "Unlimited play, unlock all 100 levels!";
if (BuyMeWindowMode == 4) {
strNagText = "Skip Level only available in Deluxe Version.\nIncredible new challenges ahead.\n" + strNagText;
} else if (BuyMeWindowMode == 3) {
strNagText = "Selected level only available in BLOX Forever Deluxe.\nIncredible new challenges ahead.\n" + strNagText;
} else if ((((BuyMeWindowMode == 5) || (BuyMeWindowMode == 6)) && (IsDownload == 0)) && (LinkDownload.length > 0)) {
bDownloadNag = true;
strNagText = "Download BLOX Forever FREE!\nGreat new obstacles and puzzles to conquer.\nGet features from the Deluxe Version free.";
} else {
strNagText = "\nGreat new obstacles and puzzles to conquer.\n" + strNagText;
if (IsTimedDemo == 1) {
if (DemoTimeLeft <= 0) {
strNagText = "Your trial is complete, get the Full Version." + strNagText;
} else if (level_number > NumFreeLevels) {
strNagText = "Get the Full Version to play the selected level." + strNagText;
} else {
strNagText = "Get The Full Version before your trial expires." + strNagText;
}
} else {
strNagText = "Incredible new challenges ahead." + strNagText;
}
}
if (bDownloadNag) {
buyWin.text_title.text = "FREE - Download BLOX Forever!";
buyWin.text_title_hi.text = "FREE - Download BLOX Forever!";
buyWin.Button_Download._visible = true;
buyWin.Button_Download_Hi._visible = true;
buyWin.Button_Buy._visible = false;
buyWin.Button_Buy_Hi._visible = false;
} else {
buyWin.text_title.text = "Get BLOX Forever Deluxe!";
buyWin.text_title_hi.text = "Get BLOX Forever Deluxe!";
buyWin.Button_Download._visible = false;
buyWin.Button_Download_Hi._visible = false;
buyWin.Button_Buy._visible = true;
buyWin.Button_Buy_Hi._visible = true;
}
buyWin.nagText.text = strNagText;
}
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 strUrlLC = strUrl.toLowerCase();
var nNumChars = strUrlLC.length;
var nPos = strUrlLC.indexOf("?", 0);
if (nPos > 0) {
nNumChars = nPos;
}
var strVal = "download";
if (strUrlLC.substr(0, 4) == "http") {
strVal = strUrl.substr(7, nNumChars - 7);
}
return(strVal);
}
function DoStartupInit() {
strAffilateID = _root.GetUrlParam(_url, "aid=");
strCustomVarIn = _root.GetUrlParam(_url, "var=");
strCustomVarOut = "";
strMovieRegKey = "bfpqtosl";
level_failed = false;
level_complete_mode = false;
retry = 1;
dialog_mode = false;
demo_mode = false;
demo_timer = 0;
DemoTimeLeft = 0;
brick_size = 36;
brick_blink_floor = 30;
brick_blink_range = 40;
brick_blink_cnt = brick_blink_floor;
back_blink_floor = 20;
back_blink_range = 30;
back_blink_cnt = back_blink_floor;
num_bricks = 0;
belong_brick = 9999;
field_sizeX = 14;
field_sizeY = 13;
FinishLevelTimerMax = 65;
FinishLevelTimerPause = 20;
FinishLevelTimer = FinishLevelTimerMax;
FinishLevelTimerInt = 2;
level_number = 1;
num_levels_played = 0;
NumFreeLevels = 10;
level_number_done_max = NumFreeLevels;
otstupX = 127 - (brick_size / 2);
otstupY = 5 - (brick_size / 2);
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_max_size = 100;
array_marked_bricks = new array(array_max_size);
array_moving_bricks = new array(array_max_size);
num_moving_bricks = 0;
array_lava_bricks = new array(array_max_size);
num_lava_bricks = 0;
array_teleport_bricks = new array(array_max_size);
num_teleport_bricks = 0;
array_hard_bricks = new array((field_sizeX * field_sizeY) + 1);
num_hard_bricks = 0;
array_bomb_bricks = new array(array_max_size);
num_bomb_bricks = 0;
array_oneway_bricks = new array(array_max_size);
num_oneway_bricks = 0;
array_break_bricks = new array(100);
num_break_bricks = 0;
array_laser_bricks = new array(array_max_size);
num_laser_bricks = 0;
array_magnet_bricks = new array(array_max_size);
num_magnet_bricks = 0;
array_death_bricks = new array(100);
num_death_bricks = 0;
array_magnetswitch_bricks = new array(array_max_size);
num_magnetswitch_bricks = 0;
mark_next_step_array = new array(array_max_size);
num_next_step_array = 0;
LevelScore = 0;
LastScore = 0;
Score = 0;
Time = 0;
TimeRound = 0;
MovePause = 2;
SoundOn = true;
MusicOn = true;
HighQualityOn = false;
BrkTypeClear = 1;
BrkTypeBoundary = 2;
BrkTypeGem1 = 3;
BrkTypeGem2 = 4;
BrkTypeGem3 = 5;
BrkTypeGem4 = 6;
BrkTypeGem5 = 7;
BrkTypeGem6 = 8;
BrkTypeGem7 = 9;
BrkTypeGem8 = 10;
BrkTypeLiftUp = 11;
BrkTypeWater = 12;
BrkTypeLava = 13;
BrkTypeBomb = 14;
BrkTypeBreak = 15;
BrkTypeLiftSide = 16;
BrkTypeSlug = 17;
BrkTypeOneWayLeft = 18;
BrkTypeOneWayRight = 19;
BrkTypeTrap = 20;
BrkTypeTeleportLow = 21;
BrkTypeTeleportHigh = 28;
BrkTypeSkull = 29;
BrkTypeMagnetLow = 31;
BrkTypeMagnetHigh = 34;
BrkTypeMagnetSwitchLow = 41;
BrkTypeMagnetSwitchHigh = 44;
BrkTypeLaserLow = 51;
BrkTypeLaserHigh = 99;
LevelNet = new Array(field_sizeX * field_sizeY);
ClearLevelNet();
myDate = new Date();
CurrentTime = myDate.getTime();
ElapsedTime = CurrentTime - LastTime;
LastTime = CurrentTime;
InitPanelBricks();
MainMenuMusic = new Sound();
MainMenuMusic.attachSound("s_intro_music");
GamePlayMusic1 = new Sound();
GamePlayMusic1.attachSound("s_play_music1");
GamePlayMusic2 = new Sound();
GamePlayMusic2.attachSound("s_play_music2");
GamePlayMusic3 = new Sound();
GamePlayMusic3.attachSound("s_play_music3");
SoundGetBlox = new Sound();
SoundGetBlox.attachSound("getblox");
SoundBloxMoving = new Sound();
SoundBloxMoving.attachSound("bloxmoving");
SoundElimenateBlox = new Sound();
SoundElimenateBlox.attachSound("s_elimenateblox");
SoundElimenateLaser = new Sound();
SoundElimenateLaser.attachSound("s_elimenateblox_laser");
SoundElimenateAcid = new Sound();
SoundElimenateAcid.attachSound("s_elimenateblox_acid");
SoundElimenateWater = new Sound();
SoundElimenateWater.attachSound("s_elimenateblox_water");
SoundElimenateSkull = new Sound();
SoundElimenateSkull.attachSound("s_eliminateblox_skull");
SoundBombExplode = new Sound();
SoundBombExplode.attachSound("bombexplode");
SoundPushButton = new Sound();
SoundPushButton.attachSound("pushbutton");
SoundLevelComplete = new Sound();
SoundLevelComplete.attachSound("s_levelcomplete");
SoundLevelCompleteMusic = new Sound();
SoundLevelCompleteMusic.attachSound("s_levelcomplete_music");
SoundLevelInComplete = new Sound();
SoundLevelInComplete.attachSound("s_levelincomplete");
SoundBonusCount = new Sound();
SoundBonusCount.attachSound("s_bonuscount");
SoundBonus = new Sound();
SoundBonus.attachSound("s_bonus");
SoundWarpgate = new Sound();
SoundWarpgate.attachSound("s_warpgate");
SoundMagnetLoop = new Sound();
SoundMagnetLoop.attachSound("s_magnet_loop");
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;
LibraryBrickSlug._visible = false;
LibraryBrickSkull._visible = false;
LibraryBrick1_sm._visible = false;
LibraryBrick2_sm._visible = false;
LibraryBrick3_sm._visible = false;
LibraryBrick4_sm._visible = false;
LibraryBrick5_sm._visible = false;
LibraryBrick6_sm._visible = false;
LibraryBrick7_sm._visible = false;
LibraryBrick8_sm._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;
LibraryBrickLaserLeft._visible = false;
LibraryBrickLaserRight._visible = false;
LibraryBrickLaserUp._visible = false;
LibraryBrickLaserDown._visible = false;
LibraryLaser._visible = false;
LibraryBrickMagnet._visible = false;
LibraryBrickSwitch._visible = false;
LibraryBrickOneWayLeft._visible = false;
LibraryBrickOneWayRight._visible = false;
LibraryBrickTrap._visible = false;
LoadBricks(field_sizeX, field_sizeY);
PlayMainMenuMusic();
ShowMainMenu();
bMovieLoaded = "T";
}
function OnMUp() {
belong_brick = 9999;
took_brick = false;
}
function OnMDown() {
if (dialog_mode) {
return(undefined);
}
if (NumberMustDieBricks == 0) {
return(undefined);
}
n_x = ConvXtoNetXround(_root._xmouse);
n_y = ConvYtoNetYround(_root._ymouse);
var nBrkIdx = FindBrick(n_x, n_y);
if (nBrkIdx == 9999) {
return(undefined);
}
var objBrk = this["brcik" + nBrkIdx];
if (((objBrk._MustDie == 0) && (objBrk._Type != BrkTypeSlug)) && (objBrk._Type != BrkTypeSkull)) {
return(undefined);
}
if (objBrk._BelongMagnet == 9999) {
if ((((objBrk._Type >= BrkTypeGem1) && (objBrk._Type <= BrkTypeGem8)) || (objBrk._Type == BrkTypeSlug)) || (objBrk._Type == BrkTypeSkull)) {
objBrk.brickObj.GotoAndPlay(2);
}
belong_brick = nBrkIdx;
}
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;
RegisteredVersion = 0;
IsDownload = 0;
IsTimedDemo = 0;
if (_url.toLowerCase().substr(0, 4) != "http") {
IsDownload = 1;
IsTimedDemo = 1;
}
IsMac = 0;
var strSystemOs = System.capabilities.os.toLowerCase();
if (strSystemOs.indexOf("mac") >= 0) {
IsMac = 1;
IsTimedDemo = 0;
}
EnableEscSkipLevel = 0;
HiScoreEnabled = 1;
HiScoreSaveURL = "http://www.arcadetown.com/bloxforever/hs.asp";
HiScoreOpenURL = "http://www.arcadetown.com/scripts/show_hiscore.asp?gameid=bloxforever";
LinkBuyMe = "http://www.arcadetown.com/order/choosemethod.asp?gameid=bloxforever";
LinkDownload = "http://www.arcadetown.com/bloxforever/download.asp";
LinkMoreGames = "http://www.arcadetown.com/index.asp?gameid=bloxforever";
LinkCopyright = "http://www.arcadetown.com/index.asp?gameid=bloxforever";
if (RegisteredVersion == 0) {
LockdownUrl = "";
} else {
LockdownUrl = "arcadetown.com|freewebgames.com";
HiScoreOpenURL = "http://www.arcadetown.com/scripts/show_hiscore.asp?gameid=bloxforever_deluxe";
}
VendorType = 9;
if (VendorType == 3) {
LockdownUrl = "newgrounds.com|ungrounded.net";
if (checkGoodUrl(LockdownUrl) == 1) {
LinkBuyMe = AppendUrlParam(LinkBuyMe, "aid=647057");
LinkMoreGames = AppendUrlParam(LinkMoreGames, "aid=647057");
LinkDownload = AppendUrlParam(LinkDownload, "aid=647057");
}
} else if (VendorType == 4) {
LockdownUrl = "freearcade.com|javaarcade.com";
if (checkGoodUrl(LockdownUrl) == 1) {
LinkBuyMe = "http://www.4gameplay.com/order/choosemethod.asp?gameid=bloxforever&aid=647063";
LinkMoreGames = "http://www.freearcade.com";
LinkDownload = "http://www.4gameplay.com/bloxforever/download.asp?aid=647063";
HiScoreEnabled = 0;
}
} else if (VendorType == 5) {
LockdownUrl = "entertainmail.net";
if (checkGoodUrl(LockdownUrl) == 1) {
LinkBuyMe = AppendUrlParam(LinkBuyMe, "aid=647415");
LinkMoreGames = AppendUrlParam(LinkMoreGames, "aid=647415");
LinkDownload = AppendUrlParam(LinkDownload, "aid=647415");
}
} else if (VendorType == 6) {
LinkBuyMe = "http://www.4gameplay.com/order/choosemethod.asp?gameid=bloxforever";
LinkMoreGames = "http://www.4gameplay.com/index.asp?gameid=bloxforever";
LinkDownload = "http://www.4gameplay.com/bloxforever/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 = "";
} else if (VendorType == 9) {
LinkBuyMe = "http://www.miniclip.com/buy_blox.htm";
LinkMoreGames = "http://www.miniclip.com";
LinkDownload = "";
HiScoreEnabled = 0;
} else if (VendorType == 10) {
LockdownUrl = "bigfishgames.com|arcadetown.com";
if (checkGoodUrl(LockdownUrl) == 1) {
LinkBuyMe = "http://www.bigfishgames.com/downloads/bloxforever/plus.html";
LinkMoreGames = "http://www.bigfishgames.com";
LinkDownload = "http://www.bigfishgames.com/downloads/bloxforever/index.html";
HiScoreEnabled = 0;
LinkCopyright = "";
} else {
VendorType = 1;
}
} else if (VendorType == 11) {
LockdownUrl = "mysterystudio.com|arcadetown.com";
if (checkGoodUrl(LockdownUrl) == 1) {
LinkBuyMe = "http://www.mysterystudio.com/buy.php?id=blox2";
LinkMoreGames = "http://www.mysterystudio.com/index.php?f=blox2";
LinkDownload = "http://www.mysterystudio.com/download.php?id=blox2";
LinkCopyright = "";
HiScoreEnabled = 0;
} else {
VendorType = 1;
}
}
if (IsDownload == 1) {
LinkDownload = "";
if (IsMac == 1) {
LinkBuyMe = "do1";
LinkMoreGames = "do2";
LinkCopyright = LinkMoreGames;
HiScoreEnabled = 0;
}
}
LevelNet0 = "";
LevelNet1 = "name=&width=14&height=13&level=1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,1,1,1,1,1,2,1,1,1,1,1,1,1,2,2,1,1,1,1,2,8,10,7,9,1,1,1,1,2,1,1,1,1,2,2,2,8,5,10,5,7,9,2,1,1,1,1,1,1,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1";
LevelNet2 = "name=&width=14&height=13&level=1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,1,1,1,1,1,1,1,1,1,1,1,2,5,2,1,1,1,1,1,1,1,1,1,1,2,2,10,2,1,1,1,1,1,1,1,1,1,2,2,5,8,2,1,1,1,1,1,1,1,1,2,2,1,9,2,2,1,1,1,1,1,1,1,1,2,1,1,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2,1,1,1,1,1,1,1,1,1,51,2,1,1,2,2,53,1,1,1,1,6,3,52,2,2,1,1,1,2,2,52,1,8,5,9,2,2,2,1,1,1,1,1,2,2,2,2,7,2,2,13,13,13,13,13,13,13,13,13,13,2,2";
LevelNet69 = "name=&width=14&height=13&level=17,3,1,1,1,1,1,1,1,1,1,10,17,3,7,6,1,1,1,1,1,1,1,1,1,8,9,8,2,2,41,64,1,1,1,1,1,1,64,2,2,2,1,2,63,1,1,1,2,2,1,1,1,61,2,1,1,2,2,1,1,1,31,2,1,1,1,2,2,1,1,1,2,1,1,1,1,5,1,1,1,2,1,1,1,1,2,1,1,1,1,20,1,1,1,2,1,1,1,2,2,1,1,1,1,1,1,1,1,2,2,1,1,2,10,1,1,1,1,1,1,1,1,5,2,1,1,2,63,1,1,1,1,1,1,1,1,61,2,1,1,2,2,62,3,8,9,6,7,10,62,2,2,1,1,1,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1";
LevelNet70 = "name=&width=14&height=13&level=1,1,2,3,4,2,8,5,3,6,10,1,1,2,1,1,2,17,8,2,6,9,4,3,7,1,1,2,1,1,2,9,10,2,2,2,2,2,2,1,1,2,1,1,2,6,7,1,1,1,1,9,2,1,1,2,1,1,2,2,2,2,2,1,1,7,2,1,1,2,1,1,1,1,1,1,1,1,1,5,2,1,1,2,1,1,1,1,1,1,1,1,1,17,2,1,1,2,1,2,2,2,2,2,2,2,2,2,2,1,2,2,1,2,1,2,1,1,1,1,1,1,1,1,1,1,1,63,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,2,2,2,2,2,1,2,2,1,1,1,1,2,1,1,1,1,1,2,1,2,1,2,2,2,11,2,1,1,1,1,1,2,62,2,1";
LevelNet71 = "name=&width=14&height=13&level=7,5,10,1,3,1,1,6,4,10,1,3,1,1,6,3,9,1,4,1,1,5,7,5,1,7,1,1,2,2,8,1,2,1,1,8,2,9,1,2,1,2,2,1,2,1,2,1,1,2,1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1,1,1,1,1,1,1,1,1,1,2,5,2,2,1,1,1,1,1,1,1,1,2,2,2,10,2,1,1,1,1,1,1,1,1,1,2,1,1,9,2,1,1,1,1,1,1,1,1,1,2,1,1,7,2,1,1,1,1,1,1,1,1,1,2,2,2,2,2,1,1,1,1,1,1";
LevelNet77 = "name=&width=14&height=13&level=2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,6,10,5,4,9,1,1,9,3,7,10,8,2,54,2,2,2,2,2,1,1,2,2,2,2,2,54,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,8,7,6,1,3,1,1,4,1,1,5,6,1,1,2,2,2,15,2,15,15,2,15,1,2,2,1,1,2,1,1,1,1,1,1,1,1,1,1,2,1,1,1,1,1,1,1,1,1,1,1,1,1,2,1,1,2,2,2,2,2,15,15,15,12,12,12,2,1,1,2,1,1,1,1,1,1,1,2,2,2,2,1,1,13,13,13,13,13,13,13,13,13,13,13,13,1,1,4,8,1,1,1,1,1,1,1,6,8,3,1,2,2,2,2,2,10,4,3,4,10,2,2,2,2";
LevelNet78 = "name=&width=14&height=13&level=2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,10,3,6,1,1,1,1,1,5,4,7,2,2,1,2,2,2,15,15,15,15,2,2,2,3,2,2,1,1,1,1,1,1,1,1,1,1,2,2,2,2,1,2,2,2,2,2,2,2,1,1,1,2,1,2,1,2,1,1,1,1,1,1,2,1,1,2,1,2,1,2,1,3,4,8,6,5,2,2,1,2,1,2,1,2,1,2,2,2,2,2,2,2,1,2,1,2,1,2,1,1,1,1,2,2,2,1,1,2,1,2,1,2,2,2,2,1,1,1,1,1,2,2,2,2,1,1,1,1,4,2,2,2,2,2,2,3,2,2,1,1,1,1,8,6,5,6,10,5,4,7,2,2,11,2,2,2,2,2,2,2,2,2,2,2,2";
LevelNet79 = "name=&width=14&height=13&level=2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,1,1,1,1,1,2,2,1,1,2,2,2,1,2,2,2,2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14,1,14,1,14,1,14,1,14,1,1,1,1,1,14,14,1,1,1,14,1,1,14,14,1,1,1,1,14,1,14,1,1,14,1,1,14,1,1,1,1,1,14,1,14,1,1,14,1,1,14,1,1,1,1,1,14,14,1,1,1,14,1,1,14,14,14,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1";
total_num_levels = 100;
DoStartupInit();
someListener = new Object();
someListener.onMouseDown = function () {
OnMDown();
};
someListener.onMouseUp = function () {
OnMUp();
};
Mouse.addListener(someListener);
_root.onEnterFrame = function () {
UpdateGame();
};
Instance of Symbol 647 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;
}
}
}
Frame 4
gotoAndPlay (5);
Frame 101
gotoAndPlay (3);
stop();
Symbol 12 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 15 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(background_mc, "background");
Symbol 18 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(background_mc, "backgroundDisabled");
Symbol 20 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(background_mc, "backgroundDisabled");
Symbol 23 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(disabled_mc, "foregroundDisabled");
Symbol 26 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(dot_mc, "radioDot");
Symbol 27 MovieClip [frb_states] Frame 1
stop();
Symbol 27 MovieClip [frb_states] Frame 2
stop();
Symbol 27 MovieClip [frb_states] Frame 3
stop();
Symbol 27 MovieClip [frb_states] Frame 4
stop();
Symbol 27 MovieClip [frb_states] Frame 5
stop();
Symbol 31 MovieClip [FBoundingBoxSymbol] Frame 1
var component = _parent;
component.registerSkinElement(boundingBox, "background");
stop();
Symbol 31 MovieClip [FBoundingBoxSymbol] Frame 2
component.registerSkinElement(boundingBox2, "backgroundDisabled");
stop();
Symbol 34 MovieClip [FRadioButtonSymbol] Frame 1
#initclip 4
function FRadioButtonClass() {
this.init();
}
function FRadioButtonGroupClass() {
this.radioInstances = new Array();
}
FRadioButtonClass.prototype = new FUIComponentClass();
FRadioButtonGroupClass.prototype = new FUIComponentClass();
Object.registerClass("FRadioButtonSymbol", FRadioButtonClass);
FRadioButtonClass.prototype.init = function () {
if (this.initialState == undefined) {
this.selected = false;
} else {
this.selected = this.initialState;
}
super.setSize(this._width, this._height);
this.boundingBox_mc.unloadMovie();
this.boundingBox_mc._width = 0;
this.boundingBox_mc._height = 0;
this.attachMovie("frb_hitArea", "frb_hitArea_mc", 1);
this.attachMovie("frb_states", "frb_states_mc", 2);
this.attachMovie("FLabelSymbol", "fLabel_mc", 3);
super.init();
this._xscale = 100;
this._yscale = 100;
this.setSize(this.width, this.height);
this.setChangeHandler(this.changeHandler);
if (this.label != undefined) {
this.setLabel(this.label);
}
if (this.initialState == undefined) {
this.setValue(false);
} else {
this.setValue(this.initialState);
}
if (this.data == "") {
this.data = undefined;
} else {
this.setData(this.data);
}
this.addToRadioGroup();
this.ROLE_SYSTEM_RADIOBUTTON = 45;
this.STATE_SYSTEM_SELECTED = 16;
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;
};
FRadioButtonClass.prototype.setHitArea = function (w, h) {
var hit = this.frb_hitArea_mc;
this.hitArea = hit;
if (this.frb_states_mc._width > w) {
hit._width = this.frb_states_mc._width;
} else {
hit._width = w;
}
hit._visible = false;
if (arguments.length > 1) {
hit._height = h;
}
};
FRadioButtonClass.prototype.txtFormat = function (pos) {
var txtS = this.textStyle;
var sTbl = this.styleTable;
txtS.align = ((sTbl.textAlign.value == undefined) ? ((txtS.align = pos)) : undefined);
txtS.leftMargin = ((sTbl.textLeftMargin.value == undefined) ? ((txtS.leftMargin = 0)) : undefined);
txtS.rightMargin = ((sTbl.textRightMargin.value == undefined) ? ((txtS.rightMargin = 0)) : undefined);
if (this.flabel_mc._height > this.height) {
super.setSize(this.width, this.flabel_mc._height);
} else {
super.setSize(this.width, this.height);
}
this.setEnabled(this.enable);
};
FRadioButtonClass.prototype.setSize = function (w, h) {
this.setLabel(this.getLabel());
this.setLabelPlacement(this.labelPlacement);
if (this.frb_states_mc._height < this.flabel_mc.labelField._height) {
super.setSize(w, this.flabel_mc.labelField._height);
}
this.setHitArea(this.width, this.height);
this.setLabelPlacement(this.labelPlacement);
};
FRadioButtonClass.prototype.setLabelPlacement = function (pos) {
this.setLabel(this.getLabel());
this.txtFormat(pos);
var halfLabelH = (this.fLabel_mc._height / 2);
var halfFrameH = (this.frb_states_mc._height / 2);
var vertCenter = (halfFrameH - halfLabelH);
var radioWidth = this.frb_states_mc._width;
var frame = this.frb_states_mc;
var label = this.fLabel_mc;
var w = (this.width - frame._width);
if (frame._width > this.width) {
w = 0;
} else {
w = this.width - frame._width;
}
this.fLabel_mc.setSize(w);
if ((pos == "right") || (pos == undefined)) {
this.labelPlacement = "right";
this.frb_states_mc._x = 0;
this.fLabel_mc._x = radioWidth;
this.txtFormat("left");
} else if (pos == "left") {
this.labelPlacement = "left";
this.fLabel_mc._x = 0;
this.frb_states_mc._x = this.width - radioWidth;
this.txtFormat("right");
}
this.fLabel_mc._y = vertCenter;
this.frb_hitArea_mc._y = vertCenter;
this.setLabel(this.getLabel());
};
FRadioButtonClass.prototype.setData = function (dataValue) {
this.data = dataValue;
};
FRadioButtonClass.prototype.getData = function () {
return(this.data);
};
FRadioButtonClass.prototype.getState = function () {
return(this.selected);
};
FRadioButtonClass.prototype.getSize = function () {
return(this.width);
};
FRadioButtonClass.prototype.getGroupName = function () {
return(this.groupName);
};
FRadioButtonClass.prototype.setGroupName = function (groupName) {
var i = 0;
while (i < this._parent[this.groupName].radioInstances.length) {
if (this._parent[this.groupName].radioInstances[i] == this) {
delete this._parent[this.groupName].radioInstances[i];
}
i++;
}
this.groupName = groupName;
this.addToRadioGroup();
};
FRadioButtonClass.prototype.addToRadioGroup = function () {
if (this._parent[this.groupName] == undefined) {
this._parent[this.groupName] = new FRadioButtonGroupClass();
}
this._parent[this.groupName].addRadioInstance(this);
};
FRadioButtonClass.prototype.setValue = function (selected) {
if (selected || (selected == undefined)) {
this.setState(true);
this.focusRect.removeMovieClip();
this.executeCallBack();
} else if (selected == false) {
this.setState(false);
}
};
FRadioButtonClass.prototype.setTabState = function (selected) {
Selection.setFocus(this);
this.setState(selected);
this.drawFocusRect();
this.executeCallBack();
};
FRadioButtonClass.prototype.setState = function (selected) {
if (selected || (selected == undefined)) {
this.tabEnabled = true;
for (var i in this._parent) {
if ((this != this._parent[i]) && (this._parent[i].groupName == this.groupName)) {
this._parent[i].setState(false);
this._parent[i].tabEnabled = false;
}
}
}
if (this.enable) {
this.flabel_mc.setEnabled(true);
if (selected || (selected == undefined)) {
this.frb_states_mc.gotoAndStop("selectedEnabled");
this.enabled = false;
this.selected = true;
this.tabEnabled = true;
this.tabFocused = true;
} else {
this.frb_states_mc.gotoAndStop("unselectedEnabled");
this.enabled = true;
this.selected = false;
this.tabEnabled = false;
var enabTrue = this._parent[this.groupName].getEnabled();
var noneSelect = (this._parent[this.groupName].getValue() == undefined);
if (enabTrue && (noneSelect)) {
this._parent[this.groupName].radioInstances[0].tabEnabled = true;
}
}
} else {
this.flabel_mc.setEnabled(false);
if (selected || (selected == undefined)) {
this.frb_states_mc.gotoAndStop("selectedDisabled");
this.enabled = false;
this.selected = true;
this.tabEnabled = false;
} else {
this.frb_states_mc.gotoAndStop("unselectedDisabled");
this.enabled = false;
this.selected = false;
this.tabEnabled = false;
}
}
if (Accessibility.isActive()) {
Accessibility.sendEvent(this, 0, this.EVENT_OBJECT_STATECHANGE, true);
}
};
FRadioButtonClass.prototype.getValue = function () {
if (this.selected) {
if ((this.data == "") || (this.data == undefined)) {
return(this.getLabel());
}
return(this.data);
}
};
FRadioButtonClass.prototype.setEnabled = function (enable) {
if ((enable == true) || (enable == undefined)) {
this.enable = true;
super.setEnabled(true);
} else {
this.enable = false;
super.setEnabled(false);
}
this.setState(this.selected);
var cgn = (this._parent[this.groupName].getEnabled() == undefined);
var cgnez = (this._parent[this.groupName].radioInstances[0].getEnabled() == false);
if (cgn && (cgnez)) {
var i = 0;
while (i < this._parent[this.groupName].radioInstances.length) {
if (this._parent[this.groupName].radioInstances[i].getEnabled() == true) {
this._parent[this.groupName].radioInstances[i].tabEnabled = true;
return(undefined);
}
i++;
}
}
};
FRadioButtonClass.prototype.getEnabled = function () {
return(this.enable);
};
FRadioButtonClass.prototype.setLabel = function (label) {
this.fLabel_mc.setLabel(label);
this.txtFormat();
if (Accessibility.isActive()) {
Accessibility.sendEvent(this, 0, this.EVENT_OBJECT_NAMECHANGE);
}
};
FRadioButtonClass.prototype.getLabel = function () {
return(this.fLabel_mc.getLabel());
};
FRadioButtonClass.prototype.onPress = function () {
this.pressFocus();
this.frb_states_mc.gotoAndStop("press");
};
FRadioButtonClass.prototype.onRelease = function () {
this.frb_states_mc.gotoAndStop("unselectedDisabled");
this.setValue(!this.selected);
};
FRadioButtonClass.prototype.onReleaseOutside = function () {
this.frb_states_mc.gotoAndStop("unselectedEnabled");
};
FRadioButtonClass.prototype.onDragOut = function () {
this.frb_states_mc.gotoAndStop("unselectedEnabled");
};
FRadioButtonClass.prototype.onDragOver = function () {
this.frb_states_mc.gotoAndStop("press");
};
FRadioButtonClass.prototype.executeCallBack = function () {
this.handlerObj[this.changeHandler](this._parent[this.groupName]);
};
FRadioButtonGroupClass.prototype.addRadioInstance = function (instance) {
this.radioInstances.push(instance);
this.radioInstances[0].tabEnabled = true;
};
FRadioButtonGroupClass.prototype.setEnabled = function (enableFlag) {
var i = 0;
while (i < this.radioInstances.length) {
this.radioInstances[i].setEnabled(enableFlag);
i++;
}
};
FRadioButtonGroupClass.prototype.getEnabled = function () {
var i = 0;
while (i < this.radioInstances.length) {
if (this.radioInstances[i].getEnabled() != this.radioInstances[0].getEnabled()) {
return(undefined);
}
i++;
}
return(this.radioInstances[0].getEnabled());
};
FRadioButtonGroupClass.prototype.setChangeHandler = function (changeHandler, obj) {
var i = 0;
while (i < this.radioInstances.length) {
this.radioInstances[i].setChangeHandler(changeHandler, obj);
i++;
}
};
FRadioButtonGroupClass.prototype.getValue = function () {
var i = 0;
while (i < this.radioInstances.length) {
if (this.radioInstances[i].selected == true) {
if ((this.radioInstances[i].data == "") || (this.radioInstances[i].data == undefined)) {
return(this.radioInstances[i].getLabel());
}
return(this.radioInstances[i].data);
}
i++;
}
};
FRadioButtonGroupClass.prototype.getData = function () {
var i = 0;
while (i < this.radioInstances.length) {
if (this.radioInstances[i].selected) {
return(this.radioInstances[i].getData());
}
i++;
}
};
FRadioButtonGroupClass.prototype.getInstance = function () {
var i = 0;
while (i < this.radioInstances.length) {
if (this.radioInstances[i].selected == true) {
return(i);
}
i++;
}
};
FRadioButtonGroupClass.prototype.setValue = function (dataValue) {
var i = 0;
while (i < this.radioInstances.length) {
if (this.radioInstances[i].data == dataValue) {
this.radioInstances[i].setValue(true);
return(undefined);
}
i++;
}
var i = 0;
while (i < this.radioInstances.length) {
if (this.radioInstances[i].getLabel() == dataValue) {
this.radioInstances[i].setValue(true);
}
i++;
}
};
FRadioButtonGroupClass.prototype.setSize = function (w) {
var i = 0;
while (i < this.radioInstances.length) {
this.radioInstances[i].setSize(w);
i++;
}
};
FRadioButtonGroupClass.prototype.getSize = function () {
var widestRadio = 0;
var i = 0;
while (i < this.radioInstances.length) {
if (this.radioInstances[i].width >= widestRadio) {
widestRadio = this.radioInstances[i].width;
}
i++;
}
return(widestRadio);
};
FRadioButtonGroupClass.prototype.setGroupName = function (groupName) {
this.oldGroupName = this.radioInstances[0].groupName;
var i = 0;
while (i < this.radioInstances.length) {
this.radioInstances[i].groupName = groupName;
this.radioInstances[i].addToRadioGroup();
i++;
}
delete this._parent[this.oldGroupName];
};
FRadioButtonGroupClass.prototype.getGroupName = function () {
return(this.radioInstances[0].groupName);
};
FRadioButtonGroupClass.prototype.setLabelPlacement = function (pos) {
var i = 0;
while (i < this.radioInstances.length) {
this.radioInstances[i].setLabelPlacement(pos);
i++;
}
};
FRadioButtonGroupClass.prototype.setStyleProperty = function (propName, value, isGlobal) {
var i = 0;
while (i < this.radioInstances.length) {
this.radioInstances[i].setStyleProperty(propName, value, isGlobal);
i++;
}
};
FRadioButtonGroupClass.prototype.addListener = function () {
var i = 0;
while (i < this.radioInstances.length) {
this.radioInstances[i].addListener();
i++;
}
};
FRadioButtonGroupClass.prototype.applyChanges = function () {
var i = 0;
while (i < this.radioInstances.length) {
this.radioInstances[i].applyChanges();
i++;
}
};
FRadioButtonGroupClass.prototype.removeListener = function (component) {
var i = 0;
while (i < this.radioInstances.length) {
this.radioInstances[i].removeListener(component);
i++;
}
};
FRadioButtonClass.prototype.drawFocusRect = function () {
this.drawRect(-2, -2, this._width + 6, this._height - 3);
};
FRadioButtonClass.prototype.myOnKillFocus = function () {
Key.removeListener(this.keyListener);
this.focused = false;
this.focusRect.removeMovieClip();
this._parent[this.groupName].foobar = 0;
};
FRadioButtonClass.prototype.myOnKeyDown = function () {
if ((Key.getCode() == 32) && (this._parent[this.groupName].getValue() == undefined)) {
if (this._parent[this.groupName].radioInstances[0] == this) {
this.setTabState(true);
}
}
if ((Key.getCode() == 40) && (this.pressOnce == undefined)) {
this.foobar = this._parent[this.groupName].getInstance();
var i = this.foobar;
while (i < this._parent[this.groupName].radioInstances.length) {
var inc = (i + 1);
if (this._parent[this.groupName].radioInstances[inc].getEnabled()) {
this._parent[this.groupName].radioInstances[inc].setTabState(true);
return(undefined);
}
i++;
}
}
if ((Key.getCode() == 38) && (this.pressOnce == undefined)) {
this.foobar = this._parent[this.groupName].getInstance();
var i = this.foobar;
while (i >= 0) {
var inc = (i - 1);
if (this._parent[this.groupName].radioInstances[inc].getEnabled()) {
this._parent[this.groupName].radioInstances[inc].setTabState(true);
return(undefined);
}
i--;
}
}
};
FRadioButtonClass.prototype.get_accRole = function (childId) {
return(this.master.ROLE_SYSTEM_RADIOBUTTON);
};
FRadioButtonClass.prototype.get_accName = function (childId) {
return(this.master.getLabel());
};
FRadioButtonClass.prototype.get_accState = function (childId) {
if (this.master.getState()) {
return(this.master.STATE_SYSTEM_SELECTED);
}
return(0);
};
FRadioButtonClass.prototype.get_accDefaultAction = function (childId) {
if (this.master.getState()) {
return("UnCheck");
}
return("Check");
};
FRadioButtonClass.prototype.accDoDefaultAction = function (childId) {
this.master.setValue(!this.master.getValue());
};
#endinitclip
boundingBox_mc._visible = false;
deadPreview._visible = false;
Symbol 38 MovieClip [FLabelSymbol] Frame 1
#initclip 1
_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 47 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 53 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 59 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 65 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 66 MovieClip [fpb_states] Frame 1
stop();
Symbol 66 MovieClip [fpb_states] Frame 2
stop();
Symbol 66 MovieClip [fpb_states] Frame 3
stop();
Symbol 66 MovieClip [fpb_states] Frame 4
stop();
Symbol 67 MovieClip [FUIComponentSymbol] Frame 1
#initclip 2
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 70 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 93 MovieClip Frame 1
stop();
Symbol 99 MovieClip Frame 1
stop();
Symbol 108 MovieClip Frame 1
play();
Symbol 112 Button
on (release) {
if (_root.dialog_mode) {
return(undefined);
}
_root.PlayButtonSound();
_root.ShowGameMenuWindow();
}
Symbol 116 Button
on (release) {
if (_root.dialog_mode) {
return(undefined);
}
_root.PlayButtonSound();
_root.Score = _root.LastScore;
_root.retry++;
_root.LoadBricks(_root.field_sizeX, _root.field_sizeY);
}
Symbol 140 MovieClip Frame 1
_root.back_blink_cnt--;
if (_root.back_blink_cnt <= 0) {
_root.back_blink_cnt = Math.floor(Math.random() * 2) + 1;
var nRand = (Math.random() * 3);
if (nRand < 1) {
gotoAndPlay (3);
} else if (nRand < 2) {
gotoAndPlay (17);
} else {
gotoAndPlay (31);
}
}
Symbol 140 MovieClip Frame 2
gotoAndPlay (1);
Symbol 140 MovieClip Frame 16
_root.back_blink_cnt--;
if (_root.back_blink_cnt > 0) {
gotoAndPlay (3);
} else {
_root.back_blink_cnt = _root.back_blink_floor + Math.floor(Math.random() * _root.back_blink_range);
gotoAndPlay (1);
}
Symbol 140 MovieClip Frame 30
_root.back_blink_cnt--;
if (_root.back_blink_cnt > 0) {
gotoAndPlay (17);
} else {
_root.back_blink_cnt = _root.back_blink_floor + Math.floor(Math.random() * _root.back_blink_range);
gotoAndPlay (1);
}
Symbol 140 MovieClip Frame 44
_root.back_blink_cnt--;
if (_root.back_blink_cnt > 0) {
gotoAndPlay (31);
} else {
_root.back_blink_cnt = _root.back_blink_floor + Math.floor(Math.random() * _root.back_blink_range);
gotoAndPlay (1);
}
Symbol 147 MovieClip Frame 63
gotoAndPlay (1);
Symbol 159 MovieClip Frame 1
stop();
Symbol 159 MovieClip Frame 2
stop();
Symbol 159 MovieClip Frame 3
stop();
Symbol 159 MovieClip Frame 4
stop();
Symbol 159 MovieClip Frame 5
stop();
Symbol 200 MovieClip Frame 1
stop();
Symbol 200 MovieClip Frame 11
gotoAndPlay (2);
Symbol 215 MovieClip Frame 7
gotoAndPlay (1);
Symbol 215 MovieClip Frame 15
stop();
_visible = false;
Symbol 222 MovieClip Frame 1
stop();
Symbol 222 MovieClip Frame 2
stop();
Symbol 222 MovieClip Frame 3
stop();
Symbol 228 MovieClip Frame 34
gotoAndPlay (1);
Symbol 228 MovieClip Frame 70
gotoAndPlay (35);
Symbol 288 MovieClip Frame 1
stop();
Symbol 288 MovieClip Frame 8
gotoAndPlay (1);
Symbol 301 MovieClip Frame 1
stop();
Symbol 301 MovieClip Frame 10
_visible = false;
stop();
Symbol 308 MovieClip Frame 1
stop();
Symbol 308 MovieClip Frame 8
gotoAndPlay (1);
Symbol 321 MovieClip Frame 1
stop();
Symbol 321 MovieClip Frame 10
_visible = false;
stop();
Symbol 328 MovieClip Frame 1
stop();
Symbol 328 MovieClip Frame 8
gotoAndPlay (1);
Symbol 341 MovieClip Frame 1
stop();
Symbol 341 MovieClip Frame 10
_visible = false;
stop();
Symbol 348 MovieClip Frame 1
stop();
Symbol 348 MovieClip Frame 8
gotoAndPlay (1);
Symbol 361 MovieClip Frame 1
stop();
Symbol 361 MovieClip Frame 10
_visible = false;
stop();
Symbol 368 MovieClip Frame 1
stop();
Symbol 368 MovieClip Frame 8
gotoAndPlay (1);
Symbol 381 MovieClip Frame 1
stop();
Symbol 381 MovieClip Frame 10
_visible = false;
stop();
Symbol 388 MovieClip Frame 1
stop();
Symbol 388 MovieClip Frame 8
gotoAndPlay (1);
Symbol 401 MovieClip Frame 1
stop();
Symbol 401 MovieClip Frame 10
_visible = false;
stop();
Symbol 408 MovieClip Frame 1
stop();
Symbol 408 MovieClip Frame 8
gotoAndPlay (1);
Symbol 421 MovieClip Frame 1
stop();
Symbol 421 MovieClip Frame 10
_visible = false;
stop();
Symbol 461 MovieClip Frame 1
stop();
Symbol 461 MovieClip Frame 8
gotoAndPlay (1);
Symbol 474 MovieClip Frame 1
stop();
Symbol 474 MovieClip Frame 10
_visible = false;
stop();
Symbol 481 MovieClip Frame 21
gotoAndPlay (1);
Symbol 488 MovieClip Frame 21
gotoAndPlay (1);
Symbol 494 MovieClip Frame 1
stop();
Symbol 501 MovieClip Frame 1
stop();
Symbol 501 MovieClip Frame 11
gotoAndPlay (1);
Symbol 503 MovieClip Frame 1
stop();
Symbol 503 MovieClip Frame 20
_visible = false;
stop();
Symbol 508 MovieClip Frame 1
var strText;
if (_root.IsTimedDemo == 1) {
if (_root.DemoTimeLeft <= 0) {
strText = "Your trial is complete\n\nGet the Full Version\nfor unlimited play!";
} else if (_root.level_number >= _root.NumFreeLevels) {
strText = "Only in BLOX Forever Deluxe\n\nGet Full Version for all 100 levels\nor try the free levels 1 - 10.";
} else {
strText = ("You must complete level " + (_root.level_number_done_max + 1)) + "\nbefore trying this level.\nGet the Full Version\nto start at any level any time!";
}
} else {
strText = "Only in BLOX Forever Deluxe\n\nGet Full Version for all 100 levels\nor try the free levels 1 - 10.";
}
text_nag.text = strText;
text_nag_hi.text = strText;
Symbol 508 MovieClip Frame 2
text_nag.textColor = 16776960 /* 0xFFFF00 */;
Symbol 508 MovieClip Frame 19
text_nag.textColor = 16777215 /* 0xFFFFFF */;
Symbol 508 MovieClip Frame 36
gotoAndPlay (2);
Symbol 513 Button
on (release) {
if (_root.MainMenuMode && (_root.LinkCopyright.length != 0)) {
_root.PlayButtonSound();
var strParam;
var strUrl = _root.LinkCopyright;
if (_root.strAffilateID.length > 0) {
strParam = "aid=" + _root.strAffilateID;
strUrl = _root.AppendUrlParam(strUrl, strParam);
}
strParam = "refer=" + _root.GetBaseUrl(_url);
strUrl = _root.AppendUrlParam(strUrl, strParam);
if ((_root.IsDownload == 1) && (_root.IsMac == 1)) {
fscommand ("exec", _root.LinkMoreGames);
} else {
getURL (strUrl, "_blank");
}
}
}
Symbol 520 MovieClip Frame 1
if (_root.VendorType != 10) {
bigfish_logo._visible = false;
}
if (_root.VendorType != 11) {
mysterystudio_logo._visible = false;
}
Symbol 527 Button
on (release) {
if (!_root.MainMenuMode) {
return(undefined);
}
_root.PlayButtonSound();
if (_root.RegisteredVersion == 1) {
fscommand ("quit");
fscommand ("close");
} else {
_root.ShowBuyMeWindow(2);
}
}
Symbol 531 Button
on (release) {
if (!_root.MainMenuMode) {
return(undefined);
}
_root.PlayButtonSound();
_root.ShowOptionsMenu(1);
}
Symbol 535 Button
on (release) {
if (!_root.MainMenuMode) {
return(undefined);
}
_root.PlayButtonSound();
_root.ShowBuyMeWindow(1);
}
Symbol 539 Button
on (release) {
if (!_root.MainMenuMode) {
return(undefined);
}
_root.PlayButtonSound();
_root.ShowBuyMeWindow(6);
}
Symbol 543 Button
on (release) {
if (!_root.MainMenuMode) {
return(undefined);
}
_root.PlayButtonSound();
getURL (_root.HiScoreOpenURL, "_blank");
}
Symbol 547 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);
if ((_root.IsDownload == 1) && (_root.IsMac == 1)) {
fscommand ("exec", _root.LinkMoreGames);
} else {
getURL (strUrl, "_blank");
}
}
Symbol 551 Button
on (release) {
if (!_root.MainMenuMode) {
return(undefined);
}
_root.PlayButtonSound();
_root.ShowHelpWindow(1);
}
Symbol 558 Button
on (release) {
if (!_root.MainMenuMode) {
return(undefined);
}
_root.PlayButtonSound();
_root.ShowSelectLevelFreeWindow();
}
Symbol 559 MovieClip Frame 1
if (_root.HiScoreEnabled == 0) {
Button_HighScores._visible = false;
}
Button_Download._visible = false;
if (_root.RegisteredVersion == 1) {
Button_Buy._visible = false;
}
stop();
Symbol 566 Button
on (release) {
_root.PlayButtonSound();
if (_root.optionsMenuMode == 2) {
_root.OptionsMenu1._visible = false;
_root.dialog_mode = false;
} else {
_root.ShowMainMenu();
}
}
Symbol 571 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 574 MovieClip Frame 1
stop();
Symbol 577 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 580 Button
on (release) {
if (_root.SoundOn) {
_root.SoundOn = false;
} else {
_root.SoundOn = true;
}
_root.OptionsMenu1.sound_check._visible = _root.SoundOn;
_root.PlayButtonSound();
}
Symbol 583 MovieClip Frame 1
stop();
Symbol 616 MovieClip Frame 1
bApart_brix.gotoandstop(1);
Symbol 616 MovieClip Frame 27
bApart_brix.gotoandstop(2);
Symbol 616 MovieClip Frame 32
bApart_brix.gotoandstop(3);
Symbol 616 MovieClip Frame 37
bApart_brix.gotoandstop(4);
Symbol 616 MovieClip Frame 42
bApart_brix.gotoandstop(5);
Symbol 624 Button
on (release) {
_root.PlayButtonSound();
_root.PlayGamePlayMusic();
_root.ShowPlayArea();
}
Symbol 633 MovieClip Frame 24
gotoAndPlay (1);
Symbol 634 MovieClip Frame 15
stop();
Symbol 638 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 647 MovieClip Frame 1
stop();
Symbol 648 Button
on (release) {
_root.PlayButtonSound();
_root.Score = _root.LastScore;
_root.LoadBricks(_root.field_sizeX, _root.field_sizeY);
_root.retry++;
}
Symbol 656 Button
on (release) {
_root.PlayButtonSound();
_root.GameMenu1._visible = false;
if (_root.level_number == 0) {
fscommand ("quit");
fscommand ("close");
}
if ((_root.HiScoreEnabled == 1) && (_root.Score > 1000)) {
_root.ShowEnterYourNameWindow();
} else {
_root.PlayMainMenuMusic();
if (_root.RegisteredVersion == 0) {
_root.ShowBuyMeWindow(1);
} else {
_root.ShowMainMenu();
}
}
}
Symbol 660 Button
on (release) {
if (_root.RegisteredVersion == 0) {
_root.PlayMainMenuMusic();
_root.PlayButtonSound();
_root.ShowBuyMeWindow(4);
} else {
_root.GotoNextLevel();
}
}
Symbol 664 Button
on (release) {
_root.PlayButtonSound();
_root.ShowHelpWindow(2);
}
Symbol 668 Button
on (release) {
_root.PlayButtonSound();
_root.ShowOptionsMenu(2);
}
Symbol 669 Button
on (release) {
_root.PlayButtonSound();
_root.GameMenu1._visible = false;
_root.dialog_mode = false;
}
Symbol 670 MovieClip Frame 1
stop();
Symbol 673 Button
on (release) {
_root.PlayButtonSound();
_root.ShowMainMenu();
}
Symbol 677 Button
on (release) {
gotoAndPlay (36);
_root.PlayButtonSound();
}
Symbol 681 Button
on (release) {
gotoAndPlay (19);
_root.PlayButtonSound();
}
Symbol 685 Button
on (release) {
gotoAndPlay (2);
_root.PlayButtonSound();
}
Symbol 699 MovieClip Frame 1
this.onRollOver = function () {
this.gotoAndPlay(2);
};
this.onRollOut = function () {
this.gotoAndPlay(1);
};
this.onPress = function () {
this.gotoAndPlay(3);
};
this.onRelease = function () {
this.gotoAndPlay(1);
};
this.onReleaseOutside = function () {
this.gotoAndPlay(1);
};
Text1.textColor = BtnTextColor;
stop();
Symbol 699 MovieClip Frame 2
stop();
Symbol 699 MovieClip Frame 3
stop();
Symbol 702 MovieClip Frame 63
stop();
Symbol 705 MovieClip Frame 18
var butt;
var b;
var b = 1;
while (b <= 10) {
butt = eval ("btnLevel" + b);
butt.BtnText = "Level " + b;
butt.BtnTextColor = 16777215 /* 0xFFFFFF */;
b++;
}
stop();
Instance of Symbol 699 MovieClip "btnLevel1" in Symbol 705 MovieClip Frame 18
on (release) {
_root.SelectLevel_StartGame(1, 0);
}
Instance of Symbol 699 MovieClip "btnLevel2" in Symbol 705 MovieClip Frame 18
on (release) {
_root.SelectLevel_StartGame(2, 0);
}
Instance of Symbol 699 MovieClip "btnLevel3" in Symbol 705 MovieClip Frame 18
on (release) {
_root.SelectLevel_StartGame(3, 0);
}
Instance of Symbol 699 MovieClip "btnLevel4" in Symbol 705 MovieClip Frame 18
on (release) {
_root.SelectLevel_StartGame(4, 0);
}
Instance of Symbol 699 MovieClip "btnLevel5" in Symbol 705 MovieClip Frame 18
on (release) {
_root.SelectLevel_StartGame(5, 0);
}
Instance of Symbol 699 MovieClip "btnLevel6" in Symbol 705 MovieClip Frame 18
on (release) {
_root.SelectLevel_StartGame(6, 0);
}
Instance of Symbol 699 MovieClip "btnLevel7" in Symbol 705 MovieClip Frame 18
on (release) {
_root.SelectLevel_StartGame(7, 0);
}
Instance of Symbol 699 MovieClip "btnLevel8" in Symbol 705 MovieClip Frame 18
on (release) {
_root.SelectLevel_StartGame(8, 0);
}
Instance of Symbol 699 MovieClip "btnLevel9" in Symbol 705 MovieClip Frame 18
on (release) {
_root.SelectLevel_StartGame(9, 0);
}
Instance of Symbol 699 MovieClip "btnLevel10" in Symbol 705 MovieClip Frame 18
on (release) {
_root.SelectLevel_StartGame(10, 0);
}
Symbol 705 MovieClip Frame 19
if (_root.RegisteredVersion == 0) {
levelMsg.gotoAndPlay(1);
} else {
levelMsg._visible = false;
}
Symbol 705 MovieClip Frame 35
var butt;
var b;
var b = 11;
while (b <= 60) {
butt = eval ("btnLevel" + b);
butt.BtnText = "" + b;
butt.BtnTextColor = 16777215 /* 0xFFFFFF */;
b++;
}
stop();
Instance of Symbol 699 MovieClip "btnLevel51" in Symbol 705 MovieClip Frame 35
on (release) {
_root.SelectLevel_StartGame(51, 0);
}
Instance of Symbol 699 MovieClip "btnLevel52" in Symbol 705 MovieClip Frame 35
on (release) {
_root.SelectLevel_StartGame(52, 0);
}
Instance of Symbol 699 MovieClip "btnLevel53" in Symbol 705 MovieClip Frame 35
on (release) {
_root.SelectLevel_StartGame(53, 0);
}
Instance of Symbol 699 MovieClip "btnLevel54" in Symbol 705 MovieClip Frame 35
on (release) {
_root.SelectLevel_StartGame(54, 0);
}
Instance of Symbol 699 MovieClip "btnLevel55" in Symbol 705 MovieClip Frame 35
on (release) {
_root.SelectLevel_StartGame(55, 0);
}
Instance of Symbol 699 MovieClip "btnLevel56" in Symbol 705 MovieClip Frame 35
on (release) {
_root.SelectLevel_StartGame(56, 0);
}
Instance of Symbol 699 MovieClip "btnLevel57" in Symbol 705 MovieClip Frame 35
on (release) {
_root.SelectLevel_StartGame(57, 0);
}
Instance of Symbol 699 MovieClip "btnLevel58" in Symbol 705 MovieClip Frame 35
on (release) {
_root.SelectLevel_StartGame(58, 0);
}
Instance of Symbol 699 MovieClip "btnLevel59" in Symbol 705 MovieClip Frame 35
on (release) {
_root.SelectLevel_StartGame(59, 0);
}
Instance of Symbol 699 MovieClip "btnLevel60" in Symbol 705 MovieClip Frame 35
on (release) {
_root.SelectLevel_StartGame(60, 0);
}
Instance of Symbol 699 MovieClip "btnLevel41" in Symbol 705 MovieClip Frame 35
on (release) {
_root.SelectLevel_StartGame(41, 0);
}
Instance of Symbol 699 MovieClip "btnLevel42" in Symbol 705 MovieClip Frame 35
on (release) {
_root.SelectLevel_StartGame(42, 0);
}
Instance of Symbol 699 MovieClip "btnLevel43" in Symbol 705 MovieClip Frame 35
on (release) {
_root.SelectLevel_StartGame(43, 0);
}
Instance of Symbol 699 MovieClip "btnLevel44" in Symbol 705 MovieClip Frame 35
on (release) {
_root.SelectLevel_StartGame(44, 0);
}
Instance of Symbol 699 MovieClip "btnLevel45" in Symbol 705 MovieClip Frame 35
on (release) {
_root.SelectLevel_StartGame(45, 0);
}
Instance of Symbol 699 MovieClip "btnLevel46" in Symbol 705 MovieClip Frame 35
on (release) {
_root.SelectLevel_StartGame(46, 0);
}
Instance of Symbol 699 MovieClip "btnLevel47" in Symbol 705 MovieClip Frame 35
on (release) {
_root.SelectLevel_StartGame(47, 0);
}
Instance of Symbol 699 MovieClip "btnLevel48" in Symbol 705 MovieClip Frame 35
on (release) {
_root.SelectLevel_StartGame(48, 0);
}
Instance of Symbol 699 MovieClip "btnLevel49" in Symbol 705 MovieClip Frame 35
on (release) {
_root.SelectLevel_StartGame(49, 0);
}
Instance of Symbol 699 MovieClip "btnLevel50" in Symbol 705 MovieClip Frame 35
on (release) {
_root.SelectLevel_StartGame(50, 0);
}
Instance of Symbol 699 MovieClip "btnLevel31" in Symbol 705 MovieClip Frame 35
on (release) {
_root.SelectLevel_StartGame(31, 0);
}
Instance of Symbol 699 MovieClip "btnLevel32" in Symbol 705 MovieClip Frame 35
on (release) {
_root.SelectLevel_StartGame(32, 0);
}
Instance of Symbol 699 MovieClip "btnLevel33" in Symbol 705 MovieClip Frame 35
on (release) {
_root.SelectLevel_StartGame(33, 0);
}
Instance of Symbol 699 MovieClip "btnLevel34" in Symbol 705 MovieClip Frame 35
on (release) {
_root.SelectLevel_StartGame(34, 0);
}
Instance of Symbol 699 MovieClip "btnLevel35" in Symbol 705 MovieClip Frame 35
on (release) {
_root.SelectLevel_StartGame(35, 0);
}
Instance of Symbol 699 MovieClip "btnLevel36" in Symbol 705 MovieClip Frame 35
on (release) {
_root.SelectLevel_StartGame(36, 0);
}
Instance of Symbol 699 MovieClip "btnLevel37" in Symbol 705 MovieClip Frame 35
on (release) {
_root.SelectLevel_StartGame(37, 0);
}
Instance of Symbol 699 MovieClip "btnLevel38" in Symbol 705 MovieClip Frame 35
on (release) {
_root.SelectLevel_StartGame(38, 0);
}
Instance of Symbol 699 MovieClip "btnLevel39" in Symbol 705 MovieClip Frame 35
on (release) {
_root.SelectLevel_StartGame(39, 0);
}
Instance of Symbol 699 MovieClip "btnLevel40" in Symbol 705 MovieClip Frame 35
on (release) {
_root.SelectLevel_StartGame(40, 0);
}
Instance of Symbol 699 MovieClip "btnLevel21" in Symbol 705 MovieClip Frame 35
on (release) {
_root.SelectLevel_StartGame(21, 0);
}
Instance of Symbol 699 MovieClip "btnLevel22" in Symbol 705 MovieClip Frame 35
on (release) {
_root.SelectLevel_StartGame(22, 0);
}
Instance of Symbol 699 MovieClip "btnLevel23" in Symbol 705 MovieClip Frame 35
on (release) {
_root.SelectLevel_StartGame(23, 0);
}
Instance of Symbol 699 MovieClip "btnLevel24" in Symbol 705 MovieClip Frame 35
on (release) {
_root.SelectLevel_StartGame(24, 0);
}
Instance of Symbol 699 MovieClip "btnLevel25" in Symbol 705 MovieClip Frame 35
on (release) {
_root.SelectLevel_StartGame(25, 0);
}
Instance of Symbol 699 MovieClip "btnLevel26" in Symbol 705 MovieClip Frame 35
on (release) {
_root.SelectLevel_StartGame(26, 0);
}
Instance of Symbol 699 MovieClip "btnLevel27" in Symbol 705 MovieClip Frame 35
on (release) {
_root.SelectLevel_StartGame(27, 0);
}
Instance of Symbol 699 MovieClip "btnLevel28" in Symbol 705 MovieClip Frame 35
on (release) {
_root.SelectLevel_StartGame(28, 0);
}
Instance of Symbol 699 MovieClip "btnLevel29" in Symbol 705 MovieClip Frame 35
on (release) {
_root.SelectLevel_StartGame(29, 0);
}
Instance of Symbol 699 MovieClip "btnLevel30" in Symbol 705 MovieClip Frame 35
on (release) {
_root.SelectLevel_StartGame(30, 0);
}
Instance of Symbol 699 MovieClip "btnLevel11" in Symbol 705 MovieClip Frame 35
on (release) {
_root.SelectLevel_StartGame(11, 0);
}
Instance of Symbol 699 MovieClip "btnLevel12" in Symbol 705 MovieClip Frame 35
on (release) {
_root.SelectLevel_StartGame(12, 0);
}
Instance of Symbol 699 MovieClip "btnLevel13" in Symbol 705 MovieClip Frame 35
on (release) {
_root.SelectLevel_StartGame(13, 0);
}
Instance of Symbol 699 MovieClip "btnLevel14" in Symbol 705 MovieClip Frame 35
on (release) {
_root.SelectLevel_StartGame(14, 0);
}
Instance of Symbol 699 MovieClip "btnLevel15" in Symbol 705 MovieClip Frame 35
on (release) {
_root.SelectLevel_StartGame(15, 0);
}
Instance of Symbol 699 MovieClip "btnLevel16" in Symbol 705 MovieClip Frame 35
on (release) {
_root.SelectLevel_StartGame(16, 0);
}
Instance of Symbol 699 MovieClip "btnLevel17" in Symbol 705 MovieClip Frame 35
on (release) {
_root.SelectLevel_StartGame(17, 0);
}
Instance of Symbol 699 MovieClip "btnLevel18" in Symbol 705 MovieClip Frame 35
on (release) {
_root.SelectLevel_StartGame(18, 0);
}
Instance of Symbol 699 MovieClip "btnLevel19" in Symbol 705 MovieClip Frame 35
on (release) {
_root.SelectLevel_StartGame(19, 0);
}
Instance of Symbol 699 MovieClip "btnLevel20" in Symbol 705 MovieClip Frame 35
on (release) {
_root.SelectLevel_StartGame(20, 0);
}
Symbol 705 MovieClip Frame 36
if (_root.RegisteredVersion == 0) {
levelMsg.gotoAndPlay(1);
} else {
levelMsg._visible = false;
}
Symbol 705 MovieClip Frame 52
var butt;
var b;
var b = 61;
while (b <= 100) {
butt = eval ("btnLevel" + b);
butt.BtnText = "" + b;
butt.BtnTextColor = 16777215 /* 0xFFFFFF */;
b++;
}
stop();
Instance of Symbol 699 MovieClip "btnLevel91" in Symbol 705 MovieClip Frame 52
on (release) {
_root.SelectLevel_StartGame(91, 0);
}
Instance of Symbol 699 MovieClip "btnLevel92" in Symbol 705 MovieClip Frame 52
on (release) {
_root.SelectLevel_StartGame(92, 0);
}
Instance of Symbol 699 MovieClip "btnLevel93" in Symbol 705 MovieClip Frame 52
on (release) {
_root.SelectLevel_StartGame(93, 0);
}
Instance of Symbol 699 MovieClip "btnLevel94" in Symbol 705 MovieClip Frame 52
on (release) {
_root.SelectLevel_StartGame(94, 0);
}
Instance of Symbol 699 MovieClip "btnLevel95" in Symbol 705 MovieClip Frame 52
on (release) {
_root.SelectLevel_StartGame(95, 0);
}
Instance of Symbol 699 MovieClip "btnLevel96" in Symbol 705 MovieClip Frame 52
on (release) {
_root.SelectLevel_StartGame(96, 0);
}
Instance of Symbol 699 MovieClip "btnLevel97" in Symbol 705 MovieClip Frame 52
on (release) {
_root.SelectLevel_StartGame(97, 0);
}
Instance of Symbol 699 MovieClip "btnLevel98" in Symbol 705 MovieClip Frame 52
on (release) {
_root.SelectLevel_StartGame(98, 0);
}
Instance of Symbol 699 MovieClip "btnLevel99" in Symbol 705 MovieClip Frame 52
on (release) {
_root.SelectLevel_StartGame(99, 0);
}
Instance of Symbol 699 MovieClip "btnLevel100" in Symbol 705 MovieClip Frame 52
on (release) {
_root.SelectLevel_StartGame(100, 0);
}
Instance of Symbol 699 MovieClip "btnLevel81" in Symbol 705 MovieClip Frame 52
on (release) {
_root.SelectLevel_StartGame(81, 0);
}
Instance of Symbol 699 MovieClip "btnLevel82" in Symbol 705 MovieClip Frame 52
on (release) {
_root.SelectLevel_StartGame(82, 0);
}
Instance of Symbol 699 MovieClip "btnLevel83" in Symbol 705 MovieClip Frame 52
on (release) {
_root.SelectLevel_StartGame(83, 0);
}
Instance of Symbol 699 MovieClip "btnLevel84" in Symbol 705 MovieClip Frame 52
on (release) {
_root.SelectLevel_StartGame(84, 0);
}
Instance of Symbol 699 MovieClip "btnLevel85" in Symbol 705 MovieClip Frame 52
on (release) {
_root.SelectLevel_StartGame(85, 0);
}
Instance of Symbol 699 MovieClip "btnLevel86" in Symbol 705 MovieClip Frame 52
on (release) {
_root.SelectLevel_StartGame(86, 0);
}
Instance of Symbol 699 MovieClip "btnLevel87" in Symbol 705 MovieClip Frame 52
on (release) {
_root.SelectLevel_StartGame(87, 0);
}
Instance of Symbol 699 MovieClip "btnLevel88" in Symbol 705 MovieClip Frame 52
on (release) {
_root.SelectLevel_StartGame(88, 0);
}
Instance of Symbol 699 MovieClip "btnLevel89" in Symbol 705 MovieClip Frame 52
on (release) {
_root.SelectLevel_StartGame(89, 0);
}
Instance of Symbol 699 MovieClip "btnLevel90" in Symbol 705 MovieClip Frame 52
on (release) {
_root.SelectLevel_StartGame(90, 0);
}
Instance of Symbol 699 MovieClip "btnLevel71" in Symbol 705 MovieClip Frame 52
on (release) {
_root.SelectLevel_StartGame(71, 0);
}
Instance of Symbol 699 MovieClip "btnLevel72" in Symbol 705 MovieClip Frame 52
on (release) {
_root.SelectLevel_StartGame(72, 0);
}
Instance of Symbol 699 MovieClip "btnLevel73" in Symbol 705 MovieClip Frame 52
on (release) {
_root.SelectLevel_StartGame(73, 0);
}
Instance of Symbol 699 MovieClip "btnLevel74" in Symbol 705 MovieClip Frame 52
on (release) {
_root.SelectLevel_StartGame(74, 0);
}
Instance of Symbol 699 MovieClip "btnLevel75" in Symbol 705 MovieClip Frame 52
on (release) {
_root.SelectLevel_StartGame(75, 0);
}
Instance of Symbol 699 MovieClip "btnLevel76" in Symbol 705 MovieClip Frame 52
on (release) {
_root.SelectLevel_StartGame(76, 0);
}
Instance of Symbol 699 MovieClip "btnLevel77" in Symbol 705 MovieClip Frame 52
on (release) {
_root.SelectLevel_StartGame(77, 0);
}
Instance of Symbol 699 MovieClip "btnLevel78" in Symbol 705 MovieClip Frame 52
on (release) {
_root.SelectLevel_StartGame(78, 0);
}
Instance of Symbol 699 MovieClip "btnLevel79" in Symbol 705 MovieClip Frame 52
on (release) {
_root.SelectLevel_StartGame(79, 0);
}
Instance of Symbol 699 MovieClip "btnLevel80" in Symbol 705 MovieClip Frame 52
on (release) {
_root.SelectLevel_StartGame(80, 0);
}
Instance of Symbol 699 MovieClip "btnLevel61" in Symbol 705 MovieClip Frame 52
on (release) {
_root.SelectLevel_StartGame(61, 0);
}
Instance of Symbol 699 MovieClip "btnLevel62" in Symbol 705 MovieClip Frame 52
on (release) {
_root.SelectLevel_StartGame(62, 0);
}
Instance of Symbol 699 MovieClip "btnLevel63" in Symbol 705 MovieClip Frame 52
on (release) {
_root.SelectLevel_StartGame(63, 0);
}
Instance of Symbol 699 MovieClip "btnLevel64" in Symbol 705 MovieClip Frame 52
on (release) {
_root.SelectLevel_StartGame(64, 0);
}
Instance of Symbol 699 MovieClip "btnLevel65" in Symbol 705 MovieClip Frame 52
on (release) {
_root.SelectLevel_StartGame(65, 0);
}
Instance of Symbol 699 MovieClip "btnLevel66" in Symbol 705 MovieClip Frame 52
on (release) {
_root.SelectLevel_StartGame(66, 0);
}
Instance of Symbol 699 MovieClip "btnLevel67" in Symbol 705 MovieClip Frame 52
on (release) {
_root.SelectLevel_StartGame(67, 0);
}
Instance of Symbol 699 MovieClip "btnLevel68" in Symbol 705 MovieClip Frame 52
on (release) {
_root.SelectLevel_StartGame(68, 0);
}
Instance of Symbol 699 MovieClip "btnLevel69" in Symbol 705 MovieClip Frame 52
on (release) {
_root.SelectLevel_StartGame(69, 0);
}
Instance of Symbol 699 MovieClip "btnLevel70" in Symbol 705 MovieClip Frame 52
on (release) {
_root.SelectLevel_StartGame(70, 0);
}
Symbol 706 Button
on (release) {
_root.PlayButtonSound();
if (_root.helpWindowMode == 2) {
_root.ShowPlayArea();
} else {
_root.ShowMainMenu();
}
}
Symbol 710 Button
on (release) {
HelpWindowFrameNum = HelpWindowFrameNum + 1;
if (HelpWindowFrameNum > 14) {
HelpWindowFrameNum = 0;
}
_root.Help1.gotoAndStop(2 + HelpWindowFrameNum);
_root.Help1.hintArea.gotoAndPlay(1);
_root.PlayButtonSound();
}
Symbol 728 MovieClip Frame 1
hint1_clip.gotoandplay(1);
Symbol 728 MovieClip Frame 2
stop();
Symbol 733 Button
on (release) {
_root.PlayMainMenuMusic();
if (_root.RegisteredVersion == 0) {
_root.ShowBuyMeWindow(1);
} else {
_root.ShowMainMenu();
}
_root.PlayButtonSound();
}
Symbol 737 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 748 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);
if ((_root.IsDownload == 1) && (_root.IsMac == 1)) {
fscommand ("exec", _root.LinkBuyMe);
} else {
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.PlayGamePlayMusic();
_root.ShowPlayArea();
} else if (_root.BuyMeWindowMode == 5) {
_root.MainMenuMusic.stop();
_root.ShowStartMessage(_root.level_number);
} else {
_root.ShowMainMenu();
}
}
Symbol 752 Button
on (release) {
_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);
if ((_root.IsDownload == 1) && (_root.IsMac == 1)) {
fscommand ("exec", _root.LinkDownload);
} else {
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.PlayGamePlayMusic();
_root.ShowPlayArea();
} else if (_root.BuyMeWindowMode == 5) {
_root.PlayLevelStartMusic();
_root.ShowStartMessage(_root.level_number);
} else {
_root.ShowMainMenu();
}
}
Symbol 753 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.PlayGamePlayMusic();
_root.ShowPlayArea();
} else if (_root.BuyMeWindowMode == 5) {
_root.PlayLevelStartMusic();
_root.ShowStartMessage(_root.level_number);
} else {
_root.ShowMainMenu();
}
}
Symbol 769 MovieClip Frame 1
if ((((_root.BuyMeWindowMode == 5) || (_root.BuyMeWindowMode == 6)) && (_root.IsDownload == 0)) && (_root.LinkDownload.length > 0)) {
strEndNagText = "- Play in full screen";
if (_root.IsMac == 0) {
strEndNagText = strEndNagText + "\n- Level Editor: create your own levels";
}
strEndNagText = ((strEndNagText + "\n\nBLOX Forever Deluxe includes all this plus...") + "\n- Unlock all 100 levels") + "\n- Many new items including the following";
gotoAndPlay (407);
} else {
strEndNagText = "All this plus...\n- Unlock all 100 levels\n- Gem Traps, One Way Signs, and more\n- 50 \"Brain Teaser\" levels\n- 40 \"Mind Bender\" levels";
if (_root.IsMac == 0) {
strEndNagText = strEndNagText + "\n- Level Editor: create your own levels";
}
}
Symbol 769 MovieClip Frame 610
gotoAndPlay (2);
Symbol 772 MovieClip Frame 1
_root.SetBuyNagText(this);
Symbol 772 MovieClip Frame 2
stop();
Symbol 787 MovieClip Frame 99
stop();