Frame 1
_root.kongregateServices.connect();
Stage.showMenu = false;
brickver = "1.3";
trace("Orbular (\"Brick\") v" + brickver);
trace(" 9th July 2007 01:11AM AEST");
trace(" Robert Anderson-B, robertandersonb@gmail.com, www.tastylamp.net");
trace(" James Dixon, dickofrombds@gmail.com, www.bdsflash.com");
stop();
Frame 2
function timeout() {
timedout = true;
scol.setRGB(16711680);
black.onFadeIn = function () {
circ.clear();
_root.gotoAndStop("menu");
};
black.gotoAndPlay("out");
clearTimeout(servertimeout);
}
stop();
cx = 300;
cy = 200;
scol = new Color(stats);
scol.setRGB(0);
onEnterFrame = function () {
if (getBytesLoaded() >= getBytesTotal()) {
var _local7 = new LoadVars();
var _local8 = new LoadVars();
_local7.u = _root._url;
_local7.v = brickver;
scol.setRGB(16776960);
_local8.onLoad = function (s) {
if (timedout) {
return(undefined);
}
clearTimeout(servertimeout);
if (s) {
if (this.a == 0) {
scol.setRGB(255);
_root.gotoAndStop("restrict");
} else {
scol.setRGB(65280);
black.onFadeIn = function () {
circ.clear();
_root.gotoAndStop("menu");
};
black.gotoAndPlay("out");
}
} else {
scol.setRGB(16711680);
black.onFadeIn = function () {
circ.clear();
_root.gotoAndStop("menu");
};
black.gotoAndPlay("out");
}
};
_local7.sendAndLoad("http://www.tastylamp.net/orbular/inc.php", _local8, "POST");
clearTimeout(servertimeout);
servertimeout = setTimeout(_root, "timeout", 8000);
delete onEnterFrame;
}
circ.clear();
circ.lineStyle(2, 16777215, 10);
var _local3 = 0;
while (_local3 < (Math.PI*2)) {
var _local5 = cx + (Math.cos(_local3) * 40);
var _local4 = cy + (Math.sin(_local3) * 40);
if (_local3 == 0) {
circ.moveTo(_local5, _local4);
} else {
circ.lineTo(_local5, _local4);
}
_local3 = _local3 + (Math.PI/180);
}
circ.lineStyle(2, 16777215, 100);
var _local6 = getBytesLoaded() / getBytesTotal();
_local3 = -1.5707963267949;
while (_local3 < (((Math.PI*2) * _local6) - (Math.PI/2))) {
var _local5 = cx + (Math.cos(_local3) * 40);
var _local4 = cy + (Math.sin(_local3) * 40);
if (_local3 == -1.5707963267949) {
circ.moveTo(_local5, _local4);
} else {
circ.lineTo(_local5, _local4);
}
_local3 = _local3 + (Math.PI/180);
}
};
Frame 4
function startGame() {
gameStarting = true;
attachMovie("MenuFadeOut", "menuFadeOut", getNextHighestDepth());
}
function advanceStartGame() {
for (var _local1 in colls) {
colls[_local1].removeMovieClip();
top.removeMovieClip();
clearInterval(spawnInt);
gotoAndStop ("game");
}
}
function collisions() {
var _local2 = 0;
while (_local2 < (colls.length - 1)) {
var _local1 = _local2 + 1;
while (_local1 < colls.length) {
checkCircleColl(colls[_local2], colls[_local1]);
_local1++;
}
_local2++;
}
}
function checkCircleColl(b1, b2) {
var _local8 = b2._x - b1._x;
var _local7 = b2._y - b1._y;
var _local15 = Math.sqrt((_local8 * _local8) + (_local7 * _local7));
if (_local15 < (b1.rad + b2.rad)) {
var _local14 = Math.atan2(_local7, _local8);
var _local4 = Math.cos(_local14);
var _local3 = Math.sin(_local14);
var _local5 = (_local4 * b1.vx) + (_local3 * b1.vy);
var _local11 = (_local4 * b1.vy) - (_local3 * b1.vx);
var _local6 = (_local4 * b2.vx) + (_local3 * b2.vy);
var _local10 = (_local4 * b2.vy) - (_local3 * b2.vx);
var _local17 = (_local5 * b1.m) + (_local6 * b2.m);
var _local16 = _local5 - _local6;
_local5 = (_local17 - (b2.m * _local16)) / (b1.m + b2.m);
_local6 = _local16 + _local5;
b1.vx = (_local4 * _local5) - (_local3 * _local11);
b1.vy = (_local4 * _local11) + (_local3 * _local5);
b2.vx = (_local4 * _local6) - (_local3 * _local10);
b2.vy = (_local4 * _local10) + (_local3 * _local6);
var _local12 = ((b1.rad + b2.rad) - _local15) / 2;
var _local13 = _local4 * _local12;
var _local9 = _local3 * _local12;
b1._x = b1._x - _local13;
b1._y = b1._y - _local9;
b2._x = b2._x + _local13;
b2._y = b2._y + _local9;
return(true);
}
return(false);
}
function spawnBall() {
var _local2 = attachMovie("Ball", "ball" + getNextHighestDepth(), getNextHighestDepth());
top.swapDepths(getNextHighestDepth());
if (gameStarting) {
menuFadeOut.swapDepths(getNextHighestDepth());
}
_local2.rad = _local2._width / 2;
_local2.m = _local2.rad;
var _local7 = random(4);
switch (_local7) {
case 0 :
_local2._x = -_local2.rad;
_local2._y = random(stageHeight);
break;
case 1 :
_local2._x = stageWidth + _local2.rad;
_local2._y = random(stageHeight);
break;
case 2 :
_local2._x = random(stageWidth);
_local2._y = -_local2.rad;
break;
case 3 :
_local2._x = random(stageWidth);
_local2._y = stageHeight + _local2.rad;
}
var _local6 = (stageWidth / 2) - _local2._x;
var _local5 = (stageHeight / 2) - _local2._y;
var _local4 = Math.atan2(_local5, _local6);
_local2.vx = Math.cos(_local4) * (random(10) + 5);
_local2.vy = Math.sin(_local4) * (random(10) + 5);
colls.push(_local2);
_local2.gotoAndStop("norm");
_local2.onEnterFrame = function () {
this._x = this._x + this.vx;
this._y = this._y + this.vy;
var _local2 = attachMovie("Trail", "trail" + getNextHighestDepth(), getNextHighestDepth());
if (top.getDepth() != getNextHighestDepth()) {
top.swapDepths(getNextHighestDepth());
if (gameStarting) {
menuFadeOut.swapDepths(getNextHighestDepth());
}
}
_local2._x = (this._x + random(10)) - 5;
_local2._y = (this._y + random(10)) - 5;
if ((((this._x < (-this.rad)) || (this._x > (stageWidth + this.rad))) || (this._y < (-this.rad))) || (this._y > (stageHeight + this.rad))) {
remove(colls, this);
this.removeMovieClip();
}
};
}
gsound = new Sound();
gsound.attachSound("MenuSound");
gsound.start(0, 9999);
black.gotoAndPlay(1);
difficulty = "normal";
mute = false;
stageWidth = 600;
stageHeight = 400;
but.m = but._width / 2;
but.rad = but._width / 2;
but.vx = (but.vy = 0);
var colls = [but];
onEnterFrame = function () {
but._x = but._x - ((but._x - (stageWidth / 2)) / 5);
but._y = but._y - ((but._y - (stageHeight / 2)) / 5);
but._x = but._x + but.vx;
but._y = but._y + but.vy;
but.vx = but.vx * 0.7;
but.vy = but.vy * 0.7;
collisions();
};
gameStarting = false;
remove = function (array, rem) {
var _local1 = 0;
while (_local1 < array.length) {
if (array[_local1] == rem) {
array.splice(_local1, 1);
}
_local1++;
}
};
var i = 0;
while (i < 5) {
spawnBall();
i++;
}
var spawnInt = setInterval(spawnBall, 250);
Frame 5
function spawnBricks(dat) {
t("spawn bricks");
for (var _local13 in bricks) {
bricks[_local13].gotoAndPlay("die");
}
bricks = [];
dat = dat.split(".");
var _local13 = 0;
while (_local13 < dat.length) {
dat[_local13] = dat[_local13].split("");
var _local5 = 0;
while (_local5 < dat[_local13].length) {
if (dat[_local13][_local5] > 0) {
var _local9 = ((dat[_local13][_local5] > 1) ? (dat[_local13][_local5]) : "");
_local9 = ((_local9 == 8) ? 2 : (_local9));
var _local3 = attachMovie("Brick" + _local9, "brick" + getNextHighestDepth(), getNextHighestDepth());
_local3._x = (brickWidth * _local5) + (brickWidth / 2);
_local3._y = (brickHeight * _local13) + (brickHeight / 2);
_local3._width = brickWidth;
_local3._height = brickHeight;
_local3.vx = 0;
_local3.vy = 0;
_local3.rad = brickWidth / 2;
_local3.m = _local3.rad;
_local3.stat = true;
_local3.jugs = 0;
_local3.idn = dat[_local13][_local5];
if ((_local3.idn == 2) && (showBombTut)) {
clearTimeout(iid5);
iid5 = setTimeout(_root, "dMsg", 2000, "Hit these flashing bricks with the ball to destroy the bricks around it.", 190, 270);
clearTimeout(iid6);
iid6 = setTimeout(_root, "dMsg", 12000);
showBombTut = false;
}
_local3.onCollision = function (coll) {
if (coll == paddle) {
this.jugs++;
}
if (isBall(coll)) {
this.stat = false;
if ((this.idn > 2) && (showPowerupTut)) {
trace(this.idn);
dMsg("Hit these powermods as they fall down with the paddle to collect them.", this._x, this._y - 50);
clearTimeout(iid4);
iid4 = setTimeout(_root, "dMsg", 12000);
showPowerupTut = false;
}
}
if (((this.idn == 2) || (this.idn == 8)) && (!this.stat)) {
this.gotoAndStop("die");
this.stat = true;
this.vx = (this.vy = 0);
this._x = this.ox;
this._y = this.oy;
for (var _local10 in bricks) {
if (bricks[_local10] != this) {
var _local3 = bricks[_local10];
var _local5 = _local3._x - this._x;
var _local4 = _local3._y - this._y;
var _local8 = Math.sqrt((_local5 * _local5) + (_local4 * _local4));
var _local7 = ((this.idn == 8) ? (bombRadius * 10) : (bombRadius));
if (_local8 < _local7) {
var _local6 = Math.atan2(_local4, _local5);
_local3.stat = false;
_local3.vx = Math.cos(_local6) * 5;
_local3.vy = Math.sin(_local6) * 5;
}
}
}
}
if ((this.idn > 2) && (isBall(coll))) {
this.ring.play();
}
if ((((this.idn == 3) && (coll == paddle)) && (!this.stat)) && (!this.powerDone)) {
this.powerDone = true;
this.gotoAndStop("die");
if ((paddle.targetRad + growPaddleAmount) > paddleMaxRad) {
return(undefined);
}
paddle.targetRad = paddle.targetRad + growPaddleAmount;
powerupNotify("Larger bat.");
}
if ((((this.idn == 4) && (coll == paddle)) && (!this.stat)) && (!this.powerDone)) {
this.powerDone = true;
this.gotoAndStop("die");
if ((paddle.targetRad - shrinkPaddleAmount) < paddleMinRad) {
return(undefined);
}
paddle.targetRad = paddle.targetRad - shrinkPaddleAmount;
powerupNotify("Smaller bat.");
}
if ((((this.idn == 5) && (coll == paddle)) && (!this.stat)) && (!this.powerDone)) {
this.powerDone = true;
this.gotoAndStop("die");
if ((ballSpeed + speedBallAmount) > ballMaxSpeed) {
return(undefined);
}
ballSpeed = ballSpeed + speedBallAmount;
powerupNotify("Faster ball.");
}
if ((((this.idn == 6) && (coll == paddle)) && (!this.stat)) && (!this.powerDone)) {
this.powerDone = true;
this.gotoAndStop("die");
if ((ballSpeed - slowBallAmount) < ballMinSpeed) {
return(undefined);
}
ballSpeed = ballSpeed - slowBallAmount;
powerupNotify("Slower ball.");
}
if ((((this.idn == 7) && (coll == paddle)) && (!this.stat)) && (!this.powerDone)) {
spawnBall(true);
this.powerDone = true;
this.gotoAndStop("die");
powerupNotify("Extra ball.");
}
};
_local3.onEnterFrame = function () {
if (cstatus != 1) {
return(undefined);
}
if (this.stat) {
this.vx = 0;
this.vy = 0;
this._x = this.ox;
this._y = this.oy;
this.m = this.rad * 5;
} else {
this.m = this.rad;
}
this._x = this._x + this.vx;
this._y = this._y + this.vy;
if ((this._x - this.rad) < 0) {
this._x = this.rad;
this.vx = (-this.vx) * brickBounce;
}
if ((this._x + this.rad) > stageWidth) {
this._x = stageWidth - this.rad;
this.vx = (-this.vx) * brickBounce;
}
if ((this._y - this.rad) < 0) {
this._y = this.rad;
this.vy = (-this.vy) * brickBounce;
}
if ((this._y - this.rad) > stageHeight) {
increaseScore(25);
remove(bricks, this);
this.removeMovieClip();
}
this.vx = this.vx * brickDrag;
this.vy = this.vy * brickDrag;
this.vy = this.vy + brickGrav;
this.vx = Math.min(this.vx, brickMaxV);
this.vy = Math.min(this.vy, brickMaxV);
};
bricks.push(_local3);
}
_local5++;
}
_local13++;
}
}
function paddleMovement() {
paddle.rad = paddle.rad - ((paddle.rad - paddle.targetRad) / paddleSizeSpeed);
paddle.m = Math.max(paddleMinMass, paddle.rad);
var _local1 = (paddle.rad / paddleStartRad) * 100;
paddle._xscale = _local1;
paddle._yscale = _local1;
if (difficulty == "mouse") {
paddle._x = paddle._x - ((paddle._x - _xmouse) / paddleMouseSpeed);
paddle.vx = paddle._x - pox;
pox = paddle._x;
} else {
paddle._x = paddle._x + paddle.vx;
}
paddle._y = paddle._y + paddle.vy;
if ((paddle._x - paddle.rad) < 0) {
paddle._x = paddle.rad;
paddle.vx = (-paddle.vx) * paddleBounce;
}
if ((paddle._x + paddle.rad) > stageWidth) {
paddle._x = stageWidth - paddle.rad;
paddle.vx = (-paddle.vx) * paddleBounce;
}
if (difficulty != "mouse") {
if (Key.isDown(37) || (Key.isDown(65))) {
paddle.vx = paddle.vx - paddleSpeed;
}
if (Key.isDown(39) || (Key.isDown(68))) {
paddle.vx = paddle.vx + paddleSpeed;
}
if (Key.isDown(38) || (Key.isDown(87))) {
paddle.vy = paddle.vy - paddleSpeed;
}
} else if (mouseD) {
paddle.vy = paddle.vy - paddleSpeed;
}
paddle.vx = paddle.vx * paddleDragX;
paddle.vy = paddle.vy - ((paddle.vy - 0) / paddleZoomSpeed);
paddle._y = paddle._y - ((paddle._y - paddleY) / paddleZoomSpeed);
}
function checkCircleColl(b1, b2) {
var _local8 = b2._x - b1._x;
var _local7 = b2._y - b1._y;
var _local15 = Math.sqrt((_local8 * _local8) + (_local7 * _local7));
if (_local15 < (b1.rad + b2.rad)) {
var _local14 = Math.atan2(_local7, _local8);
var _local4 = Math.cos(_local14);
var _local3 = Math.sin(_local14);
var _local5 = (_local4 * b1.vx) + (_local3 * b1.vy);
var _local11 = (_local4 * b1.vy) - (_local3 * b1.vx);
var _local6 = (_local4 * b2.vx) + (_local3 * b2.vy);
var _local10 = (_local4 * b2.vy) - (_local3 * b2.vx);
var _local17 = (_local5 * b1.m) + (_local6 * b2.m);
var _local16 = _local5 - _local6;
_local5 = (_local17 - (b2.m * _local16)) / (b1.m + b2.m);
_local6 = _local16 + _local5;
b1.vx = (_local4 * _local5) - (_local3 * _local11);
b1.vy = (_local4 * _local11) + (_local3 * _local5);
b2.vx = (_local4 * _local6) - (_local3 * _local10);
b2.vy = (_local4 * _local10) + (_local3 * _local6);
var _local12 = ((b1.rad + b2.rad) - _local15) / 2;
var _local13 = _local4 * _local12;
var _local9 = _local3 * _local12;
b1._x = b1._x - _local13;
b1._y = b1._y - _local9;
b2._x = b2._x + _local13;
b2._y = b2._y + _local9;
return(true);
}
return(false);
}
function rand(min, max) {
return((Math.random() * (max - min)) + min);
}
function spawnBall(ignoreLimit, dontIncrease) {
t("spawn ball");
if (!ignoreLimit) {
if (balls.length) {
return(undefined);
}
}
if (!dontIncrease) {
numBalls++;
}
var _local2 = attachMovie("Ball", "ball" + getNextHighestDepth(), getNextHighestDepth());
_local2._x = ballStartX;
_local2._y = ballStartY;
_local2.vx = rand(ballStartMinXV, ballStartMaxXV);
_local2.vy = ballStartYV;
_local2.rad = _local2._width / 2;
_local2.m = _local2.rad;
_local2.onEnterFrame = function () {
if (cstatus != 1) {
return(undefined);
}
if (this.vx < 0) {
this.vx = Math.max(this.vx, -ballSpeed);
} else {
this.vx = Math.min(this.vx, ballSpeed);
}
if (this.vy < 0) {
this.vy = Math.max(this.vy, -ballSpeed);
} else {
this.vy = Math.min(this.vy, ballSpeed);
}
this._x = this._x + this.vx;
this._y = this._y + this.vy;
if ((this._x - this.rad) < 0) {
this._x = this.rad;
this.vx = (-this.vx) * ballBounce;
}
if ((this._x + this.rad) > stageWidth) {
this._x = stageWidth - this.rad;
this.vx = (-this.vx) * ballBounce;
}
if ((this._y - this.rad) < 0) {
this._y = this.rad;
this.vy = (-this.vy) * ballBounce;
}
if ((this._y - this.rad) > stageHeight) {
looseLife();
numBalls--;
remove(balls, this);
this.removeMovieClip();
}
var _local3 = Math.min(ballGrav, ballGrav * ((ballSpeed - 2) / ballStartSpeed));
this.vy = this.vy + _local3;
var _local2 = attachMovie("Trail", "trail" + getNextHighestDepth(), getNextHighestDepth());
_local2._x = (this._x + random(10)) - 5;
_local2._y = (this._y + random(10)) - 5;
};
balls.push(_local2);
}
function isBall(mc) {
for (var _local2 in balls) {
if (balls[_local2] == mc) {
return(true);
}
}
return(false);
}
function isBrick(mc) {
for (var _local2 in bricks) {
if (bricks[_local2] == mc) {
return(true);
}
}
return(false);
}
function collisions() {
var _local1 = [paddle];
for (var _local3 in bricks) {
_local1.push(bricks[_local3]);
}
for (var _local3 in balls) {
_local1.push(balls[_local3]);
}
var _local3 = 0;
while (_local3 < (_local1.length - 1)) {
var _local2 = _local3 + 1;
while (_local2 < _local1.length) {
if (checkCircleColl(_local1[_local3], _local1[_local2])) {
_local1[_local3].onCollision(_local1[_local2]);
_local1[_local2].onCollision(_local1[_local3]);
}
_local2++;
}
_local3++;
}
}
function increaseScore(amount) {
t("increase score");
if (curLvl == 15) {
return(undefined);
}
score = score + amount;
nextLife = nextLife - amount;
if (nextLife <= 0) {
if ((difficulty == "normal") || (difficulty == "mouse")) {
lives++;
}
nextLife = _root["newLifeEvery_" + difficulty];
if (lives <= 5) {
display.livesDisplay.gotoAndStop("l" + lives);
} else {
display.livesDisplay.gotoAndStop("ll");
}
}
display.scoreDisplay.gotoAndPlay(1);
}
function looseLife() {
t("loose life");
if (curLvl == 15) {
return(undefined);
}
whiteFlash.play();
clearTimeout(iid1);
iid1 = setTimeout(_root, "spawnBall", 1500);
if ((curLvl == 1) && (firstLevelImmortal)) {
return(undefined);
}
lives--;
deaths++;
if (lives <= 5) {
if (lives == 5) {
display.livesDisplay.gotoAndStop(1);
} else {
display.livesDisplay.gotoAndPlay("l" + (lives + 1));
}
} else {
display.livesDisplay.gotoAndStop("ll");
}
if (lives <= 0) {
gameOver();
}
}
function gogoBall() {
for (var _local3 in balls) {
balls[_local3].removeMovieClip();
}
balls = [];
var _local2 = numBalls;
var _local1 = 0;
while (_local1 < _local2) {
spawnBall(true, true);
_local1++;
}
}
function nextLvl() {
t("next level");
if (curLvl >= (lvl.length - 1)) {
clearTimeout(iid2);
iid2 = setTimeout(_root, "gameComplete", 7000);
stopAdvanceChecking = true;
return(undefined);
}
firstLevelImmortal = false;
curLvl++;
if (difficulty == "normal") {
var _local3 = "Normal";
} else if (difficulty == "hard") {
var _local3 = "Hard";
} else if (difficulty == "endurance") {
var _local3 = "Endurance";
} else if (difficulty == "mouse") {
var _local3 = "Mouse";
}
_root.kongregateStats.submit("FurthestLevel-" + _local3, curLvl);
for (var _local2 in balls) {
balls[_local2].gotoAndPlay("die");
}
balls = [];
spawnBricks(lvl[curLvl]);
clearTimeout(iid3);
iid3 = setTimeout(_root, "gogoBall", 2500);
if (curLvl != 15) {
attachMovie("LevelNotify", "levelNotify" + getNextHighestDepth(), getNextHighestDepth());
}
}
function gameComplete() {
t("game complete");
cstatus = 0;
openScreen("GameComplete");
disablePause = true;
clearInterval(iTimer);
if (difficulty == "normal") {
var _local2 = "Normal";
} else if (difficulty == "hard") {
var _local2 = "Hard";
} else if (difficulty == "endurance") {
var _local2 = "Endurance";
} else if (difficulty == "mouse") {
var _local2 = "Mouse";
}
_root.kongregateScores.setMode(_local2);
_root.kongregateScores.submit(score);
_root.kongregateStats.submit("BestTime-" + _local2, time);
_root.kongregateStats.submit("LeastDeaths-" + _local2, deaths);
}
function exit() {
t("exit");
for (var _local2 in bricks) {
bricks[_local2].removeMovieClip();
}
for (var _local2 in balls) {
balls[_local2].removeMovieClip();
}
for (var _local2 in _root) {
_root[_local2].removeMovieClip();
}
closeScreen();
gotoAndStop ("menu");
}
function newGame() {
t("new game");
for (var _local2 in bricks) {
bricks[_local2].removeMovieClip();
}
for (var _local2 in balls) {
balls[_local2].removeMovieClip();
}
bricks = [];
balls = [];
score = 0;
if (difficulty == "endurance") {
lives = 1;
} else {
lives = 5;
}
deaths = 0;
if (lives <= 5) {
if (lives == 5) {
display.livesDisplay.gotoAndStop(1);
} else {
display.livesDisplay.gotoAndPlay("l" + (lives + 1));
}
} else {
display.livesDisplay.gotoAndStop("ll");
}
cstatus = 1;
numBalls = 0;
paddle.vx = 0;
paddle.vy = 0;
paddle.rad = paddleStartRad;
paddle._width = paddle.rad * 2;
paddle._height = paddle.rad * 2;
paddle.targetRad = paddleStartRad;
paddle.m = paddle.rad;
paddle._x = stageWidth / 2;
pox = paddle._x;
paddle._y = stageHeight;
ballSpeed = ballStartSpeed;
curLvl = 1;
spawnBricks(lvl[curLvl]);
clearTimeout(ballTimeout);
ballTimeout = setTimeout(_root, "spawnBall", 2500);
if (curLvl != 15) {
attachMovie("LevelNotify", "levelNotify" + getNextHighestDepth(), getNextHighestDepth());
}
var _local3 = attachMovie("BlackFade", "black", getNextHighestDepth());
display.scoreDisplay.score = 0;
disablePause = false;
nextLife = _root["newLifeEvery_" + difficulty];
stopAdvanceChecking = false;
time = 0;
iTimer = setInterval(increaseTime, 1000);
}
function increaseTime() {
time++;
}
function gameOver() {
t("game over");
cstatus = 0;
openScreen("GameOver");
disablePause = true;
clearInterval(iTimer);
if (difficulty == "normal") {
var _local2 = "Normal";
} else if (difficulty == "hard") {
var _local2 = "Hard";
} else if (difficulty == "endurance") {
var _local2 = "Endurance";
} else if (difficulty == "mouse") {
var _local2 = "Mouse";
}
_root.kongregateScores.setMode(_local2);
_root.kongregateScores.submit(score);
}
function powerupNotify(txt) {
t("powerup notify");
var _local1 = attachMovie("PowerupNotify", "powerupNotify" + getNextHighestDepth(), getNextHighestDepth());
_local1.txt = txt;
}
function openScreen(id, clear) {
t("open screen");
lastBW.bmp.dispose();
lastBW.mc.removeMovieClip();
lastBW.p.removeMovieClip();
if (clear) {
return(undefined);
}
var _local5 = new flash.display.BitmapData(stageWidth, stageHeight, false, 0);
_local5.draw(_level0);
t("level0: " + _level0);
t("bmp: " + _local5);
t("bmp.draw: " + _local5.draw);
var _local2 = [0.3086, 0.6094, 0.082, 0, 0, 0.3086, 0.6094, 0.082, 0, 0, 0.3086, 0.6094, 0.082, 0, 0, 0, 0, 0, 1, 0];
var _local1 = new flash.filters.ColorMatrixFilter(_local2);
_local5.applyFilter(_local5, _local5.rectangle, new Point(0, 0), _local1);
var _local4 = attachMovie(id, "screenp", getNextHighestDepth());
var _local3 = _local4.createEmptyMovieClip("bw" + _local4.getNextHighestDepth(), _local4.getNextHighestDepth());
_local3.attachBitmap(_local5, 0);
lastBW = {mc:_local3, bmp:_local5, p:_local4};
}
function closeScreen() {
t("close screen");
openScreen(undefined, true);
}
function dMsg(msg, x, y) {
if (msg) {
dialog.removeMovieClip();
} else {
dialog.play();
return(undefined);
}
dialog = attachMovie("Dialog", "dialog" + getNextHighestDepth(), getNextHighestDepth());
dialog.txt = msg;
dialog._x = x;
dialog._y = y;
}
function t(msg) {
}
stop();
stats._visible = false;
gsound.stop();
gsound = new Sound();
gsound.attachSound("GameSound");
gsound.start(0, 9999);
remove = function (array, rem) {
var _local1 = 0;
while (_local1 < array.length) {
if (array[_local1] == rem) {
array.splice(_local1, 1);
}
_local1++;
}
};
tut1 = function () {
dMsg(((difficulty == "mouse") ? "Move your bat with the mouse. Clicking and holding will thrust your bat forward." : "Move your bat with the arrow keys. Pressing UP will thrust your bat forward."), 450, 300);
};
tut2 = function () {
dMsg("Keep the ball up with your bat. Thrust your bat forward to send the ball flying.", 150, 290);
};
tut3 = function () {
dMsg("Hit all of these bricks to dislodge them, and advance the level.", 300, 50);
};
tut4 = function () {
dMsg("Hitting dislodged bricks with your paddle and letting them fall past your paddle will give you points.", 450, 275);
};
sharedObj = SharedObject.getLocal("b120607");
if (!sharedObj.data.playedBefore) {
setTimeout(this, "tut1", 2500);
setTimeout(this, "tut2", 9500);
setTimeout(this, "tut3", 19500);
setTimeout(this, "tut4", 26500);
setTimeout(this, "dMsg", 41500);
}
log = "";
var stageWidth = 600;
var stageHeight = 400;
var paddleSpeed = 2;
var paddleDragX = 0.92;
var paddleDragY = 0.8;
var paddleStartRad = 50;
var paddleMaxRad = 70;
var paddleMinRad = 30;
var paddleMinMass = 50;
var paddleBounce = 0.5;
var paddleY = 400;
var paddleZoomSpeed = 5;
var paddleSizeSpeed = 10;
var paddleMouseSpeed = 15;
var ballBounce = 1;
var ballGrav = 0.085;
var ballStartMinXV = -2;
var ballStartMaxXV = 4;
var ballStartYV = 5;
var ballStartSpeed = 10;
var ballMinSpeed = 6;
var ballMaxSpeed = 18;
var ballStartX = (stageWidth / 2);
var ballStartY = (stageHeight / 3);
var brickBounce = 1;
var brickDrag = 1;
var brickGrav = 0.1;
var brickMaxV = 20;
var brickWidth = 20;
var brickHeight = 20;
var brickCols = 30;
var newLifeEvery_normal = 500;
var newLifeEvery_mouse = 1000;
var bombRadius = 50;
var growPaddleAmount = 10;
var shrinkPaddleAmount = 10;
var speedBallAmount = 2;
var slowBallAmount = 2;
var lvl = [];
lvl[1] = "000000000000000000000000000000.000000000000000000000000000000.000000000000000000000000000000.000000000000000000000000000000.000000000000010010000000000000.000000000000000000000000000000.000000000000000000000000000000.000000000000010010000000000000.000000000000000000000000000000.000000000000000000000000000000.000000000000000000000000000000.000000000000000000000000000000.000000000000000000000000000000.000000000000000000000000000000.000000000000000000000000000000.000000000000000000000000000000.000000000000000000000000000000.000000000000000000000000000000.000000000000000000000000000000.000000000000000000000000000000";
lvl[2] = "000000000000000000000000000000.000000000000000000000000000000.000000000000000000000000000000.000000000000000000000000000000.000000000000000000000000000000.000000000000000000000000000000.000000000000000000000000000000.000000000000001100000000000000.000011111111111111111111110000.000000000000001100000000000000.000000000000000000000000000000.000000000000000000000000000000.000000000000000000000000000000.000000000000000000000000000000.000000000000000000000000000000.000000000000000000000000000000.000000000000000000000000000000.000000000000000000000000000000.000000000000000000000000000000.000000000000000000000000000000";
lvl[3] = "000000000000000000000000000000.000000000000000000000000000000.000000000000000000000000000000.000000000000000000000000000000.000000000000000000000000000000.000000000000000000000000000000.000010000010000000010000010000.000111000111000000111000111000.001121101121100001121101121100.000111000111000000111000111000.000010000010000000010000010000.000000000000000000000000000000.000000000000000000000000000000.000000000000000000000000000000.000000000000000000000000000000.000000000000000000000000000000.000000000000000000000000000000.000000000000000000000000000000.000000000000000000000000000000.000000000000000000000000000000";
lvl[4] = "000000000000000000000000000000.000000000000001100000000000000.000000000000002200000000000000.000000000000011110000000000000.000000000000100001000000000000.000000000001000000100000000000.000000001010000000010100000000.000000000300000000004000000000.000000001010000000010100000000.000000000000000000000000000000.000000000000000000000000000000.000000000000000000000000000000.000000000000000000000000000000.000000000000000000000000000000.000000000000000000000000000000.000000000000000000000000000000.000000000000000000000000000000.000000000000000000000000000000.000000000000000000000000000000.000000000000000000000000000000";
lvl[5] = "000000000000000000000000000000.000000000000000000000000000000.000000000131000000131000000000.000000001000100001000100000000.000000010000010010000010000000.000000010000020020000010000000.000000100000000000000001000000.000000400000000000000004000000.000000000000000000000000000000.000000000000000000000000000000.000000000000000000000000000000.000000000000000000000000000000.000000000000000000000000000000.000000000000000000000000000000.000000000000000000000000000000.000000000000000000000000000000.000000000000000000000000000000.000000000000000000000000000000.000000000000000000000000000000.000000000000000000000000000000";
lvl[6] = "000000000000000000000000000000.000000000000000000000000000000.000000000000000000000000000000.000000500000000000000100010000.000001010000000000000010100000.000010201000000000000106010000.000001010000000000000010100000.000010501000000000000102010000.000001010000000000000010100000.000010001000000000000006000000.000000000000000000000000000000.000000000000000000000000000000.000000000000000000000000000000.000000000000000000000000000000.000000000000000000000000000000.000000000000000000000000000000.000000000000000000000000000000.000000000000000000000000000000.000000000000000000000000000000.000000000000000000000000000000";
lvl[7] = "000000000000000000000000000000.000000000000000000000000000000.000000000000000000000000000000.000000000000000000000000000000.000000000000000000000000000000.000000040000000000000004000000.000000111000000000000011100000.000000000000000000000000000000.000100222001000000001022201000.005100222001300000031022201500.000100222001000000001022201000.000000000000000000000000000000.000000000000000000000000000000.000000000000000000000000000000.000000000000000000000000000000.000000000000000000000000000000.000000000000000000000000000000.000000000000000000000000000000.000000000000000000000000000000.000000000000000000000000000000";
lvl[8] = "000000000000000000000000000000.000000000000111211100000000000.000000000001000500010000000000.000000000010000400001000000000.000000000210000300001200000000.000000001100000000001100000000.000000010000000000000010000000.000000100000000000000001000000.000000271600000000006172000000.000000100000000000000001000000.000000010000000000000010000000.000000001100000000001100000000.000000000000000000000000000000.000000000000000000000000000000.000000000000000000000000000000.000000000000000000000000000000.000000000000000000000000000000.000000000000000000000000000000.000000000000000000000000000000.000000000000000000000000000000";
lvl[9] = "000000000000000000000000000000.000000000000000000000000000000.000000100060000000000000000000.000001110150000000000000000000.000001211120000000000000000000.000001110140000000000000000000.000001210030000000000000000000.000001110000000000000000000000.000001210000000000000000001100.011001010011101000001000110011.700101010100010000000111100000.000011111000000000000000000000.000000000000000000000000000000.000000000000000000000000000000.000000000000000000000000000000.000000000000000000000000000000.000000000000000000000000000000.000000000000000000000000000000.000000000000000000000000000000.000000000000000000000000000000";
lvl[10] = "000000000000000000000000000000.000000000000004440000000005550.000000000000004240000000005750.000000000000004440000000005550.000000000000000000000000000000.000000000000000000000000000000.000003330000000000000444000000.000003230000000000000424000000.000003330000000000000444000000.000000000000000000000000000000.000000000000000000000000000000.000000000000000000000000000000.000000044400000000000000000000.000000042400000000000000000000.000000044400000000000000000000.000000000000000000000000000000.000000000000000000000000000000.000000000000000000000000000000.000000000000000000000000000000.000000000000000000000000000000";
lvl[11] = "000000000000000000000000000000.000000000000000000000000000000.000000000011100001110000000000.000000000015000000610000000000.000000000010100007010000000000.000000000000010010000000000000.000000000000000000000000000000.000000000000010010000000000000.000000000010100001010000000000.000000000014000000310000000000.000000000011100001110000000000.000000000000000000000000000000.000000000000000000000000000000.000000000000000000000000000000.000000000000000000000000000000.000000000000000000000000000000.000000000000000000000000000000.000000000000000000000000000000.000000000000000000000000000000.000000000000000000000000000000";
lvl[12] = "000000000000000001300000111117.000000000000000000140000011121.000000000000000000015000011111.000000000000000000001600101111.000000000000000000000171010111.000000000000000000000016101001.000000000000000000000001510000.000000000000000000000000140000.000000000000000000000000013000.000000000000000000000000001200.000000000000000000000000000130.000000000000000000000000000014.000000000000000000000000000001.000000000000000000000000000000.000000000000000000000000000000.000000000000000000000000000000.000000000000000000000000000000.000000000000000000000000000000.000000000000000000000000000000.000000000000000000000000000000";
lvl[13] = "000000000000000000000000000000.000000000000000000000000000000.000000000000000000000000000000.000000000000000000000000000000.000000000000000000000000000000.000000000000000000000000000000.000000000000000000000000000000.000001411111110011111114100000.000001411127110011721114100000.000000000111100001111000000000.000000000000110011000000000000.000000000000000000000000000000.000000000000000000000000000000.000000000000000000000000000000.000000000000000000000000000000.000000000000000000000000000000.000000000000000000000000000000.000000000000000000000000000000.000000000000000000000000000000.000000000000000000000000000000";
lvl[14] = "000000000000000000000000000000.000000000000000000000000000000.000000000000000000000000000000.000000000000000000000000000000.000001000000000000000000100000.000011000000000000000000110000.000712111641100001164111217000.000712111351100001153111217000.000011000000000000000000110000.000001000000000000000000100000.000000000000000000000000000000.000000000000000000000000000000.000000000000000000000000000000.000000000000000000000000000000.000000000000000000000000000000.000000000000000000000000000000.000000000000000000000000000000.000000000000000000000000000000.000000000000000000000000000000.000000000000000000000000000000";
lvl[15] = "000000000000000000000000000000.000000000000000100000000000000.000000000000001110000000000000.000000000000011111000000000000.000000000000111111100000000000.000000000001111111110000000000.000000000011111811111000000000.000000000001111111110000000000.000000000000111111100000000000.000000000000011111000000000000.000000000000001110000000000000.000000000000000100000000000000.000000000000000000000000000000.000000000000000000000000000000.000000000000000000000000000000.000000000000000000000000000000.000000000000000000000000000000.000000000000000000000000000000.000000000000000000000000000000.000000000000000000000000000000";
newGame();
showBombTut = (showPowerupTut = false);
firstLevelImmortal = false;
if (!sharedObj.data.playedBefore) {
clearTimeout(ballTimeout);
ballTimeout = setTimeout(this, "spawnBall", 8500);
showBombTut = (showPowerupTut = true);
firstLevelImmortal = true;
}
sharedObj.data.playedBefore = true;
paddle.onCollision = function (coll) {
if (isBrick(coll)) {
increaseScore(10);
}
paddle.gotoAndPlay(1);
};
onEnterFrame = function () {
if ((Key.isDown(80) && (!hold)) && (!disablePause)) {
hold = true;
cstatus = ((cstatus == 1) ? 0 : 1);
if (cstatus == 0) {
openScreen("PauseMenu");
clearInterval(iTimer);
} else {
closeScreen();
iTimer = setInterval(increaseTime, 1000);
}
}
if (!Key.isDown(80)) {
hold = false;
}
if (cstatus != 1) {
return(undefined);
}
paddleMovement();
collisions();
if (!stopAdvanceChecking) {
var _local1 = true;
for (var _local2 in bricks) {
if (bricks[_local2].stat) {
_local1 = false;
break;
}
}
if (_local1) {
nextLvl();
}
}
};
onMouseUp = function () {
if (Key.isDown(46)) {
sharedObj.clear();
}
mouseD = false;
};
onMouseDown = function () {
mouseD = true;
};
Symbol 4 Button
on (release) {
var ch = random(5);
var ref = ((ch <= 2) ? "BDSFlash" : "TastyLamp");
getURL ("http://www.kongregate.com/?gamereferer=" + ref, "_blank");
}
Symbol 31 Button
on (release) {
getURL ("http://kongregate.com/", "_blank");
}
Symbol 32 MovieClip Frame 180
_root.play();
Symbol 35 Button
on (release) {
getURL ("http://www.tastylamp.net/", "_blank");
}
Symbol 37 Button
on (release) {
getURL ("http://www.bdsflash.com/", "_blank");
}
Symbol 40 Button
on (release) {
var ch = random(5);
var ref = ((ch <= 2) ? "BDSFlash" : "TastyLamp");
getURL ("http://www.kongregate.com/?gamereferer=" + ref, "_blank");
}
Symbol 44 MovieClip [BlackFade] Frame 10
this.removeMovieClip();
stop();
Symbol 44 MovieClip [BlackFade] Frame 20
onFadeIn();
stop();
Symbol 52 MovieClip [Ball] Frame 11
stop();
Symbol 52 MovieClip [Ball] Frame 20
this.removeMovieClip();
Symbol 56 MovieClip Frame 1
stop();
Symbol 57 MovieClip [Brick] Frame 2
stop();
go = function () {
play();
};
clearTimeout(id);
id = setTimeout(this, "go", random(100) + 1000);
Symbol 57 MovieClip [Brick] Frame 12
stop();
Symbol 57 MovieClip [Brick] Frame 21
this.removeMovieClip();
Symbol 69 MovieClip Frame 1
stop();
Symbol 70 MovieClip Frame 15
stop();
Symbol 71 MovieClip Frame 15
stop();
_parent.removeMovieClip();
Symbol 73 MovieClip Frame 15
stop();
Symbol 74 MovieClip [Brick3] Frame 1
stop();
go = function () {
play();
};
clearTimeout(id);
id = setTimeout(this, "go", random(100) + 1000);
Symbol 74 MovieClip [Brick3] Frame 11
stop();
Symbol 74 MovieClip [Brick3] Frame 12
stop();
Symbol 78 MovieClip Frame 15
stop();
Symbol 79 MovieClip [Brick4] Frame 1
stop();
go = function () {
play();
};
clearTimeout(id);
id = setTimeout(this, "go", random(100) + 1000);
Symbol 79 MovieClip [Brick4] Frame 11
stop();
Symbol 79 MovieClip [Brick4] Frame 12
stop();
Symbol 83 MovieClip Frame 15
stop();
Symbol 84 MovieClip [Brick5] Frame 1
stop();
go = function () {
play();
};
clearTimeout(id);
id = setTimeout(this, "go", random(100) + 1000);
Symbol 84 MovieClip [Brick5] Frame 11
stop();
Symbol 84 MovieClip [Brick5] Frame 12
stop();
Symbol 89 MovieClip Frame 15
stop();
Symbol 90 MovieClip [Brick6] Frame 1
stop();
go = function () {
play();
};
clearTimeout(id);
id = setTimeout(this, "go", random(100) + 1000);
Symbol 90 MovieClip [Brick6] Frame 11
stop();
Symbol 90 MovieClip [Brick6] Frame 12
stop();
Symbol 95 MovieClip Frame 10
stop();
Symbol 98 MovieClip Frame 10
stop();
Symbol 120 MovieClip Frame 1
stop();
callBack = function (res) {
if (res.success) {
gotoAndStop (2);
var _local2 = 0;
while (_local2 < 10) {
var _local3 = _local2 + 1;
if (res.list[_local2]) {
this["kName" + _local3] = ((("#" + _local3) + " ") + res.list[_local2].username) + ":";
this["kScore" + _local3] = res.list[_local2].score;
} else {
this["kName" + _local3] = "";
this["kScore" + _local3] = "";
}
_local2++;
}
}
};
if (_root.difficulty == "normal") {
_root.kongregateScores.setMode("Normal");
head = "Top 10 - Normal";
} else if (_root.difficulty == "hard") {
_root.kongregateScores.setMode("Hard");
head = "Top 10 - Hard";
} else if (_root.difficulty == "endurance") {
_root.kongregateScores.setMode("Endurance");
head = "Top 10 - Endurance";
} else if (_root.difficulty == "mouse") {
_root.kongregateScores.setMode("Mouse");
head = "Top 10 - Mouse";
}
_root.kongregateScores.requestList(callBack, this);
Symbol 127 Button
on (release) {
play();
}
Symbol 132 Button
on (release) {
var ch = random(5);
var ref = ((ch <= 2) ? "BDSFlash" : "TastyLamp");
getURL ("http://www.kongregate.com/?gamereferer=" + ref, "_blank");
}
Symbol 133 MovieClip Frame 1
_visible = (_root.kongregate == undefined);
Symbol 143 Button
on (release) {
var ch = random(5);
var ref = ((ch <= 2) ? "BDSFlash" : "TastyLamp");
getURL ("http://www.kongregate.com/?gamereferer=" + ref, "_blank");
}
Symbol 144 Button
on (release) {
getURL ("http://www.kongregate.com/?gamereferer=Tastylamp", "_blank");
}
Symbol 146 Button
on (release) {
getURL ("http://www.tastylamp.net/", "_blank");
}
Symbol 148 Button
on (release) {
getURL ("http://www.bdsflash.com/", "_blank");
}
Symbol 149 MovieClip Frame 10
stop();
Symbol 155 Button
on (release) {
_root.difficulty = "normal";
_parent.play();
}
Symbol 160 Button
on (release) {
_root.difficulty = "hard";
_parent.play();
}
Symbol 165 Button
on (release) {
_root.difficulty = "mouse";
_parent.play();
}
Symbol 170 Button
on (release) {
_root.difficulty = "endurance";
_parent.play();
}
Symbol 172 MovieClip Frame 55
stop();
Symbol 172 MovieClip Frame 70
stop();
Symbol 172 MovieClip Frame 75
_root.newGame();
_root.closeScreen();
Symbol 173 MovieClip [GameComplete] Frame 1
onEnterFrame = function () {
if (this.getDepth() != (_root.getNextHighestDepth() - 1)) {
this.swapDepths(_root.getNextHighestDepth());
}
if (done) {
return(undefined);
}
this._alpha = this._alpha - ((this._alpha - 100) / 10);
if (this._alpha > 95) {
this._alpha = 100;
done = true;
}
};
_alpha = 0;
men.swapDepths(getNextHighestDepth());
Symbol 181 MovieClip Frame 10
stop();
Symbol 182 MovieClip Frame 85
stop();
Symbol 182 MovieClip Frame 99
stop();
Symbol 182 MovieClip Frame 104
_root.newGame();
_root.closeScreen();
Symbol 183 MovieClip [GameOver] Frame 1
onEnterFrame = function () {
if (this.getDepth() != (_root.getNextHighestDepth() - 1)) {
this.swapDepths(_root.getNextHighestDepth());
}
if (done) {
return(undefined);
}
this._alpha = this._alpha - ((this._alpha - 100) / 10);
if (this._alpha > 95) {
this._alpha = 100;
done = true;
}
};
_alpha = 0;
men.swapDepths(getNextHighestDepth());
Symbol 187 MovieClip [LevelNotify] Frame 20
this.removeMovieClip();
Symbol 190 MovieClip Frame 1
function go() {
this.play();
}
stop();
setTimeout(go, random(10000));
Symbol 195 Button
on (release) {
if (_root._quality == "HIGH") {
_root._quality = "LOW";
} else if (_root._quality == "LOW") {
_root._quality = "MEDIUM";
} else if (_root._quality == "MEDIUM") {
_root._quality = "HIGH";
}
}
Symbol 198 Button
on (release) {
_root.exit();
}
Symbol 199 MovieClip Frame 1
sss.gotoAndStop((_root.mute ? 2 : 1));
sss.onRelease = function () {
_root.mute = !_root.mute;
sss.gotoAndStop((_root.mute ? 2 : 1));
_root.gsound.setVolume((_root.mute ? 0 : 100));
};
Symbol 200 MovieClip [PauseMenu] Frame 1
onEnterFrame = function () {
if (this.getDepth() != (_root.getNextHighestDepth() - 1)) {
this.swapDepths(_root.getNextHighestDepth());
}
};
men.swapDepths(getNextHighestDepth());
Symbol 203 MovieClip [Trail] Frame 14
this.removeMovieClip();
Symbol 208 MovieClip Frame 15
stop();
Symbol 209 MovieClip [Brick7] Frame 1
stop();
go = function () {
play();
};
clearTimeout(id);
id = setTimeout(this, "go", random(100) + 1000);
Symbol 209 MovieClip [Brick7] Frame 11
stop();
Symbol 209 MovieClip [Brick7] Frame 12
stop();
Symbol 210 MovieClip Frame 10
stop();
Symbol 213 MovieClip [PowerupNotify] Frame 44
this.removeMovieClip();
Symbol 220 MovieClip Frame 25
_parent.removeMovieClip();
Symbol 221 MovieClip Frame 10
stop();
Symbol 223 MovieClip Frame 10
stop();
Symbol 224 MovieClip [Brick2] Frame 1
stop();
go = function () {
play();
};
clearTimeout(id);
id = setTimeout(this, "go", random(100) + 1000);
Symbol 224 MovieClip [Brick2] Frame 11
stop();
Symbol 224 MovieClip [Brick2] Frame 12
stop();
Symbol 225 MovieClip [MenuFadeOut] Frame 1
onEnterFrame = function () {
this.swapDepths(_parent.getNextHighestDepth());
};
Symbol 225 MovieClip [MenuFadeOut] Frame 11
stop();
Symbol 225 MovieClip [MenuFadeOut] Frame 18
_root.advanceStartGame();
this.removeMovieClip();
Symbol 229 MovieClip [Dialog] Frame 8
stop();
Symbol 229 MovieClip [Dialog] Frame 35
this.removeMovieClip();
Symbol 238 Button
on (release) {
_root.startGame();
}
Symbol 243 Button
on (release) {
var ch = random(5);
var ref = ((ch <= 2) ? "BDSFlash" : "TastyLamp");
getURL ("http://www.kongregate.com/?gamereferer=" + ref, "_blank");
}
Symbol 252 MovieClip Frame 1
if (_root.brickbrick) {
gotoAndStop (2);
}
stop();
onMouseDown = function () {
downtime = getTimer();
};
onMouseUp = function () {
if (((getTimer() - downtime) > 1000) && (_root.difficulty != "mouse")) {
gotoAndStop (2);
_root.brickbrick = true;
}
};
Symbol 252 MovieClip Frame 2
stop();
onMouseDown = function () {
downtime = getTimer();
};
onMouseUp = function () {
if (((getTimer() - downtime) > 1000) && (_root.difficulty != "mouse")) {
gotoAndStop (1);
_root.brickbrick = false;
}
};
Symbol 259 MovieClip Frame 1
stop();
Symbol 265 MovieClip Frame 1
stop();
oscore = score;
Symbol 265 MovieClip Frame 2
score = oscore;
Symbol 265 MovieClip Frame 7
score = _root.score;
Symbol 267 MovieClip Frame 1
stop();
go = function () {
play();
};
clearTimeout(id);
id = setTimeout(this, "go", random(1000));
Symbol 274 MovieClip Frame 1
stop();
Symbol 274 MovieClip Frame 31
stop();
Symbol 274 MovieClip Frame 61
stop();
Symbol 274 MovieClip Frame 91
stop();
Symbol 274 MovieClip Frame 121
stop();
Symbol 275 MovieClip Frame 1
onEnterFrame = function () {
if (_root.cstatus != 1) {
return(undefined);
}
if (this.getDepth() != (_root.getNextHighestDepth() - 1)) {
this.swapDepths(_root.getNextHighestDepth());
}
};
Symbol 278 MovieClip Frame 1
stop();