Frame 1
Stage.showMenu = false;
stop();
Instance of Symbol 47 MovieClip in Frame 1
onClipEvent (load) {
xStart = 90;
xStop = 270;
xTrav = 180;
_x = xStart;
percentLoaded = 0;
loaded = 0;
}
onClipEvent (enterFrame) {
if (_x >= xStop) {
trace((loaded + " ") + remaining);
_root.play();
} else {
loaded = _root.getBytesLoaded();
remaining = _root.getBytesTotal();
percentLoaded = Math.floor((loaded / remaining) * 100);
_root.loadDisplay.text = percentLoaded + "%";
_x = (((loaded / remaining) * xTrav) + xStart);
}
}
Frame 4
stop();
Mouse.show();
_root.ballsTotal = 0;
_root.paddleTimer = 0;
_root.paddleFunky = 0;
_root.invincible = 0;
_root.invincibleTimer = 0;
_root.specialsTotal = 0;
_root.bonusCounter = 0;
_root.bonus = 0;
_root.vultureActive = 0;
_root.deathCount = 0;
Frame 5
_root.level = 1;
_root.balls = 3;
_root.score = 0;
_root.boingSound = new Sound();
_root.boingSound.attachSound("boing");
_root.levelSound = new Sound();
_root.levelSound.attachSound("level");
_root.bonusSound = new Sound();
_root.bonusSound.attachSound("bonus");
_root.hitSound = new Sound();
_root.hitSound.attachSound("hit");
_root.deathSound = new Sound();
_root.deathSound.attachSound("death");
Frame 8
stop();
Mouse.show();
_root.paused = 0;
_root.ballsTotal = 0;
_root.paddleTimer = 0;
_root.paddleFunky = 0;
_root.invincible = 0;
_root.invincibleTimer = 0;
_root.specialsTotal = 0;
_root.bonusCounter = 0;
_root.bonus = 0;
_root.chickenMode = 0;
_root.shotClockReset = 400 - (_root.level * 25);
if (_root.shotClockReset < 150) {
_root.shotClockReset = 150;
}
_root.shotClockMax = 500;
_root.shotClock = _root.shotClockReset;
_root.vultureActive = 0;
_root.deathCount = 0;
Instance of Symbol 100 MovieClip in Frame 8
onClipEvent (load) {
tmp = Math.floor(Math.random() * 6) + 1;
gotoAndStop(tmp);
}
Frame 10
stop();
GamePlayArea = [0, 0, 400, 550];
Mouse.hide();
_root.clockDisplay._width = _root.ShotClock;
_root.bonusDisp._width = 5;
board = [];
if (_root.level == 1) {
board[0] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
board[1] = [0, 1, 1, 1, 1, 1, 1, 1, 1, 0];
board[2] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
board[3] = [0, 1, 1, 1, 1, 1, 1, 1, 1, 0];
board[4] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
}
if (_root.level == 2) {
board[0] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
board[1] = [1, 0, 1, 0, 1, 0, 1, 0, 1, 0];
board[2] = [0, 1, 0, 1, 0, 1, 0, 1, 0, 1];
board[3] = [1, 0, 1, 0, 1, 0, 1, 0, 1, 0];
board[4] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
board[5] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
}
if (_root.level == 3) {
board[0] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
board[1] = [1, 0, 1, 0, 1, 0, 1, 0, 1, 0];
board[2] = [2, 1, 2, 1, 2, 1, 2, 1, 2, 1];
board[3] = [1, 0, 1, 0, 1, 0, 1, 0, 1, 0];
board[4] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
board[5] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
}
if (_root.level == 4) {
board[0] = [0, 1, 0, 1, 0, 1, 0, 1, 0, 1];
board[1] = [1, 0, 1, 0, 2, 0, 2, 0, 1, 0];
board[2] = [0, 1, 0, 2, 0, 2, 0, 2, 0, 1];
board[3] = [1, 0, 1, 0, 2, 0, 2, 0, 1, 0];
board[4] = [0, 1, 0, 1, 0, 1, 0, 1, 0, 1];
board[5] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
}
if (_root.level == 5) {
board[0] = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1];
board[1] = [2, 2, 2, 2, 2, 2, 2, 2, 2, 2];
board[2] = [3, 3, 3, 3, 3, 3, 3, 3, 3, 3];
board[3] = [2, 2, 2, 2, 2, 2, 2, 2, 2, 2];
board[4] = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1];
board[5] = [0, 0, 1, 0, 1, 0, 1, 0, 0, 0];
}
if (_root.level == 6) {
board[0] = [1, 2, 3, 1, 2, 3, 1, 2, 3, 1];
board[1] = [2, 3, 1, 2, 3, 1, 2, 3, 1, 2];
board[2] = [3, 1, 2, 3, 1, 2, 3, 1, 2, 3];
board[3] = [1, 2, 3, 1, 2, 3, 1, 2, 3, 1];
board[4] = [2, 3, 1, 2, 3, 1, 2, 3, 1, 2];
board[1] = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1];
}
if (_root.level > 6) {
board[0] = [3, 3, 3, 3, 3, 3, 3, 3, 3, 3];
board[1] = [2, 2, 2, 2, 2, 2, 2, 2, 2, 2];
board[2] = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1];
board[3] = [2, 2, 2, 2, 2, 2, 2, 2, 2, 2];
board[4] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
board[5] = [0, 4, 0, 0, 0, 0, 0, 4, 0, 0];
}
blocksTotal = 0;
i = 0;
while (i <= 5) {
j = 0;
while (j <= 27) {
tmp = board[i][j];
if (tmp > 0) {
blocksTotal++;
duplicateMovieClip (_root.block, "block" + blocksTotal, 1000 + blocksTotal);
eval ("_root.block" + blocksTotal)._x = (j * 50) + 45;
eval ("_root.block" + blocksTotal)._y = (i * 20) + 55;
eval ("_root.block" + blocksTotal).state = tmp;
eval ("_root.block" + blocksTotal).gotoAndStop(tmp);
}
j++;
}
i++;
}
tmp = _root.level % 7;
trace("bg = " + tmp);
_root.level_bg.gotoAndStop(tmp);
blocksInPlay = blocksTotal;
Instance of Symbol 134 MovieClip in Frame 10
onClipEvent (load) {
_root.levelDisplay.text = _root.level;
}
onClipEvent (keyUp) {
if (Key.getCode() == 80) {
if (_root.paused == 0) {
_root.paused = 1;
_root.pauseClip.nextFrame();
Mouse.show();
trace("pause");
} else {
_root.paused = 0;
_root.pauseClip.prevFrame();
Mouse.hide();
trace("UNpause");
}
}
}
onClipEvent (enterFrame) {
if (_root.paused == 0) {
if (_root.paddleTimer > 0) {
_root.paddleTimer--;
if (_root.paddleTimer == 0) {
_root.paddleFunky = 0;
_root.paddle.xscale = 100;
}
}
if (_root.invincibleTimer > 0) {
_root.invincibleTimer--;
if (_root.invincibleTimer == 0) {
_root.invincible = 0;
_root.paddle.gotoAndStop(1);
}
}
if ((Math.random() * 2000) < 2) {
_root.specialsTotal++;
trace("special ++");
duplicateMovieClip (_root.special, "special" + _root.specialsTotal, 2000 + _root.specialsTotal);
}
if (_root.blocksInPlay == 0) {
if (_root.deathCount == 0) {
_root.ball.gotoAndPlay(25);
}
if (_root.deathCount < 30) {
_root.deathCount++;
} else {
_root.level++;
_root.score = _root.score + (1000 * _root.level);
trace("level up!");
_root.gotoAndStop(8);
}
}
}
}
Instance of Symbol 136 MovieClip "block" in Frame 10
onClipEvent (load) {
dying = 0;
}
onClipEvent (enterFrame) {
if (hitTest(_root.ball) || (hitTest("_root.bonusBall" + _root.ballsTotal))) {
if (dying < 1) {
if (hitTest(_root.ball)) {
hitObj = "ball";
} else {
hitObj = "bonus";
}
_root.hitSound.start(0, 1);
if (worth > 0) {
_root.ball.gotoAndPlay(40);
_root.score = _root.score + worth;
_root.scoreDisplay.text = _root.score;
_root.shotClock = _root.shotClock + Math.floor(worth * 0.75);
if (_root.shotClock > _root.shotClockMax) {
_root.shotClock = _root.shotClockMax;
}
_root.clockDisplay._width = _root.shotClock;
if (_root_bonus == 0) {
_root.bonusText._alpha = 100;
}
_root.bonusCounter++;
if (_root.bonusCounter > 2) {
_root.bonus = _root.bonus + (worth * _root.bonusCounter);
_root.bonusDisp._width = _root.bonus;
}
if (state < 2) {
dying = 1;
gotoAndPlay (10);
_root.blocksInPlay--;
} else {
state--;
gotoAndStop(state);
}
}
if (hitObj == "ball") {
if ((_root.ball._y > _y) and (_root.ball.dy < 0)) {
_root.ball.dy = _root.ball.dy * -1.25;
}
if ((_root.ball._y > _y) and (_root.ball.dy >= 0)) {
_root.ball.dy = _root.ball.dy * 1.25;
}
if ((_root.ball._y < _y) and (_root.ball.dy > 0)) {
_root.ball.dy = _root.ball.dy * -1.25;
}
if ((_root.ball._y < _y) and (_root.ball.dy <= 0)) {
_root.ball.dy = _root.ball.dy * 1.25;
}
if ((_root.ball._x < _x) and (_root.ball.dx > 0)) {
_root.ball.dx = _root.ball.dx * -1.25;
}
if ((_root.ball._x < _x) and (_root.ball.dx <= 0)) {
_root.ball.dx = _root.ball.dx * 1.25;
}
if ((_root.ball._x > _x) and (_root.ball.dx < 0)) {
_root.ball.dx = _root.ball.dx * -1.25;
}
if ((_root.ball._x > _x) and (_root.ball.dx >= 0)) {
_root.ball.dx = _root.ball.dx * 1.25;
}
} else {
tmp_x = eval ("root.bonusBall" + _root.ballsTotal)._x;
tmp_y = eval ("root.bonusBall" + _root.ballsTotal)._y;
if ((eval ("_root.bonusBall" + _root.ballsTotal)._y > _y) and (eval ("_root.bonusBall" + _root.ballsTotal).dy < 0)) {
eval ("_root.bonusBall" + _root.ballsTotal).dy = eval ("_root.bonusBall" + _root.ballsTotal).dy * -1.25;
}
if ((eval ("_root.bonusBall" + _root.ballsTotal)._y > _y) and (eval ("_root.bonusBall" + _root.ballsTotal).dy >= 0)) {
eval ("_root.bonusBall" + _root.ballsTotal).dy = eval ("_root.bonusBall" + _root.ballsTotal).dy * 1.25;
}
if ((eval ("_root.bonusBall" + _root.ballsTotal)._y < _y) and (eval ("_root.bonusBall" + _root.ballsTotal).dy > 0)) {
eval ("_root.bonusBall" + _root.ballsTotal).dy = eval ("_root.bonusBall" + _root.ballsTotal).dy * -1.25;
}
if ((eval ("_root.bonusBall" + _root.ballsTotal)._y < _y) and (eval ("_root.bonusBall" + _root.ballsTotal).dy <= 0)) {
eval ("_root.bonusBall" + _root.ballsTotal).dy = eval ("_root.bonusBall" + _root.ballsTotal).dy * 1.25;
}
if ((eval ("_root.bonusBall" + _root.ballsTotal)._x < _x) and (eval ("_root.bonusBall" + _root.ballsTotal).dx > 0)) {
eval ("_root.bonusBall" + _root.ballsTotal).dx = eval ("_root.bonusBall" + _root.ballsTotal).dx * -1.25;
}
if ((eval ("_root.bonusBall" + _root.ballsTotal)._x < _x) and (eval ("_root.bonusBall" + _root.ballsTotal).dx <= 0)) {
eval ("_root.bonusBall" + _root.ballsTotal).dx = eval ("_root.bonusBall" + _root.ballsTotal).dx * 1.25;
}
if ((eval ("_root.bonusBall" + _root.ballsTotal)._x > _x) and (eval ("_root.bonusBall" + _root.ballsTotal).dx < 0)) {
_root.bonusBall.dx = _root.bonusBall.dx * -1.25;
}
if ((eval ("_root.bonusBall" + _root.ballsTotal)._x > _x) and (eval ("_root.bonusBall" + _root.ballsTotal).dx >= 0)) {
_root.bonusBall.dx = _root.bonusBall.dx * 1.25;
}
if ((tmp_x > (_x + 15)) || (tmp_x < (_x - 15))) {
eval ("root.bonusBall" + _root.ballsTotal).dx = eval ("root.bonusBall" + _root.ballsTotal).dx * -1.25;
}
if ((tmp_y > (_y + 10)) || (tmp_y < (_y - 10))) {
eval ("root.bonusBall" + _root.ballsTotal).dy = eval ("root.bonusBall" + _root.ballsTotal).dy * -1.25;
}
}
}
}
}
Instance of Symbol 155 MovieClip "ball" in Frame 10
onClipEvent (load) {
if (_name == "ball") {
dy = 4;
dx = (Math.random() * 4) - (Math.random() * 4);
} else {
gotoAndStop (55);
timer = 500;
dy = 4;
dx = (Math.random() * 4) - (Math.random() * 4);
}
maxDx = 6.5;
maxDy = maxDx;
minDx = -1 * maxDx;
minDy = -1 * maxDy;
startMaxDx = maxDx;
rad = 17;
maxX = _root.gamePlayArea[3] - rad;
maxY = _root.gamePlayArea[2] - rad;
minX = _root.gamePlayArea[0] + rad;
minY = _root.gamePlayArea[1] + rad;
}
onClipEvent (enterFrame) {
if (_root.paused == 0) {
if (_name != "ball") {
timer--;
if (timer <= 0) {
removeMovieClip(this);
removeMovieClip("bd" + _root.balls);
_root.balls--;
}
}
if (_root.deathCount == 0) {
_x = (_x + dx);
_y = (_y + dy);
_root.shotClock = _root.shotClock - 0.5;
_root.clockDisplay._width = _root.clockDisplay._width - 0.5;
}
if (_root.shotClock < 1) {
_root.shotClock = _root.shotClockReset;
_root.clockDisplay._width = _root.shotClockReset;
_root.vultureActive = 1;
trace("vulture!");
}
if (this.hitTest(_root.paddle)) {
_root.boingSound.start(0, 1);
dy = dy * -4;
_y = (_y + dy);
while (this.hitTest(_root.paddle)) {
_y = (_y + dy);
}
dist = _x - _root.paddle._x;
len = _root.paddle._width;
adj_dx = (dist / len) * 10;
dx = dx + adj_dx;
_root.score = _root.score + _root.level;
_root.scoreDisplay.text = _root.score;
if (_name != "ball") {
_root.score = _root.score + 1000;
_root.scoreDisplay.text = _root.score;
}
if (_root.chickenMode == 1) {
_root.score = _root.score + 500;
_root.scoreDisplay.text = _root.score;
}
if (_root.bonus > 0) {
_root.score = _root.score + _root.bonus;
_root.scoreDisplay.text = _root.score;
if (_name != "ball") {
_root.score = _root.score + (_root.bonus * 4);
_root.scoreDisplay.text = _root.score;
}
if (_root.chickenMode == 1) {
_root.score = _root.score + (_root.bonus * 10);
_root.scoreDisplay.text = _root.score;
}
_root.bonusSound.start(0, 1);
_root.bonusClip.gotoAndPlay(1);
}
_root.bonus = 0;
_root.bonusCounter = 0;
_root.bonusDisp._width = 5;
}
if (dx > maxDx) {
dx = maxDx;
}
if (dx < minDx) {
dx = minDx;
}
if (dy > maxDy) {
dy = maxDy;
}
if (dy < minDy) {
dy = minDy;
}
dy = dy + 0.025;
if (_x >= maxX) {
dx = dx * -1;
_x = maxX;
}
if (_y >= maxY) {
if (_root.invincible == 1) {
dy = dy * -1;
dx = 0;
_y = maxY;
} else {
if (_name != "ball") {
removeMovieClip(this);
}
if (_root.deathCount == 0) {
_root.deathSound.start(0, 1);
gotoAndPlay (2);
eval ("_root.ballDisp2.bd" + _root.balls).gotoAndPlay(10);
_root.balls--;
}
if (_root.deathCount >= 30) {
i = 1;
while (i <= _root.blocksTotal) {
removeMovieClip("_root.block" + i);
i++;
}
if (_root.balls > 0) {
_root.gotoAndStop(8);
} else {
_root.gotoAndStop(15);
}
} else {
_root.deathCount++;
}
}
}
if (_y <= minY) {
dy = dy * -1;
_y = minY;
}
if (_x <= minX) {
dx = dx * -1;
_x = minX;
}
}
}
Instance of Symbol 162 MovieClip "special" in Frame 10
onClipEvent (load) {
if (_name != "special") {
_x = ((Math.random() * 500) + 25);
type = 1 + Math.floor(Math.random() * 4);
gotoAndStop(type);
dying = 0;
}
}
onClipEvent (enterFrame) {
if (_root.paused == 0) {
if (_name != "special") {
if (_y > 450) {
removeMovieClip(this);
}
if (_root.deathCount > 0) {
removeMovieClip(this);
}
_y = (_y + 2);
_rotation = (_rotation + 10);
if ((dying == 0) && (this.hitTest(_root.paddle))) {
switch (type) {
case 1 :
_root.invincible = 1;
_root.invincibleTimer = 400;
_root.paddle.gotoAndStop(2);
break;
case 2 :
_root.ballsTotal++;
duplicateMovieClip (_root.ballDisp2.bd, "bd" + _root.balls, 5000 + _root.balls);
_root.balls++;
duplicateMovieClip (_root.bonusBall, "bonusBall" + _root.ballsTotal, 4000 + _root.ballsTotal);
break;
case 3 :
_root.balls++;
duplicateMovieClip (_root.ballDisp2.bd, "bd" + _root.balls, 5000 + _root.balls);
break;
case 4 :
if ((Math.random() * 5) < 3) {
_root.paddleTimer = 400;
_root.paddleFunky = 1;
paddleType = 10 + Math.floor(Math.random() * 4);
_root.paddle.gotoAndStop(paddleType);
} else {
_root.score = _root.score + 1000;
_root.bonusSound.start(0, 1);
_root.bonusClip.gotoAndPlay(1);
}
break;
}
if (dying == 0) {
gotoAndPlay (15);
dying = 1;
}
}
}
}
}
Instance of Symbol 155 MovieClip "bonusBall" in Frame 10
onClipEvent (load) {
gotoAndStop (55);
if (_name != "bonusBall") {
gotoAndStop (55);
_x = 270;
_y = 220;
timer = 500;
dy = 4;
dx = (Math.random() * 4) - (Math.random() * 4);
}
maxDx = 8;
maxDy = maxDx;
minDx = -1 * maxDx;
minDy = -1 * maxDy;
startMaxDx = maxDx;
rad = 17;
maxX = _root.gamePlayArea[3] - rad;
maxY = _root.gamePlayArea[2] - rad;
minX = _root.gamePlayArea[0] + rad;
minY = _root.gamePlayArea[1] + rad;
}
onClipEvent (enterFrame) {
if (_root.paused == 0) {
if (_name != "bonusBall") {
timer--;
if (timer <= 0) {
removeMovieClip(this);
}
_x = (_x + dx);
_y = (_y + dy);
if (_root.deathCount > 0) {
removeMovieClip(this);
}
if (this.hitTest(_root.paddle)) {
_root.boingSound.start(0, 1);
dy = dy * -4;
_y = (_y + dy);
while (this.hitTest(_root.paddle)) {
_y = (_y + dy);
}
dist = _x - _root.paddle._x;
len = _root.paddle._width;
adj_dx = (dist / len) * 10;
dx = dx + adj_dx;
_root.score = _root.score + 1000;
if (_root.chickenMode == 1) {
_root.score = _root.score + 2500;
}
if (_root.bonus > 0) {
_root.score = _root.score + _root.bonus;
if (_name != "ball") {
_root.score = _root.score + (_root.bonus * 4);
}
if (_root.chickenMode == 1) {
_root.score = _root.score + (_root.bonus * 10);
}
_root.bonusSound.start(0, 1);
_root.bonusClip.gotoAndPlay(1);
}
_root.bonus = 0;
_root.bonusCounter = 0;
_root.bonusDisp._width = 5;
}
if (dx > maxDx) {
dx = maxDx;
}
if (dx < minDx) {
dx = minDx;
}
if (dy > maxDy) {
dy = maxDy;
}
if (dy < minDy) {
dy = minDy;
}
dy = dy + 0.025;
if (_x >= maxX) {
dx = dx * -1;
_x = maxX;
}
if (_y >= maxY) {
if (_root.invincible == 1) {
dy = dy * -1;
dx = 0;
_y = maxY;
} else if (_name != "ball") {
removeMovieClip(this);
}
}
if (_y <= minY) {
dy = dy * -1;
_y = minY;
}
if (_x <= minX) {
dx = dx * -1;
_x = minX;
}
}
}
}
Instance of Symbol 181 MovieClip "ballDisp2" in Frame 10
onClipEvent (load) {
i = 1;
while (i <= _root.balls) {
duplicateMovieClip (bd, "bd" + i, 5000 + i);
i++;
}
}
Instance of Symbol 189 MovieClip "paddle" in Frame 10
onClipEvent (load) {
}
onClipEvent (enterFrame) {
if (_root.paused == 0) {
if (rndWidth == 1) {
cnt++;
if (cnt == 50) {
cnt = 0;
_xscale = ((Math.random() * 100) + 50);
}
}
}
}
onClipEvent (mouseMove) {
if (_root.paused == 0) {
_x = _root._xmouse;
}
}
Instance of Symbol 196 MovieClip "vulture" in Frame 10
onClipEvent (load) {
rad = 1;
maxX = _root.gamePlayArea[3] - rad;
maxY = _root.gamePlayArea[2] - rad;
minX = _root.gamePlayArea[0] + rad;
minY = _root.gamePlayArea[1] + rad;
}
onClipEvent (enterFrame) {
if (_root.paused == 0) {
if (_root.vultureActive > 0) {
play();
if (_root.deathCount <= 0) {
if (_x < -150) {
_x = -100;
}
_x = (_x + 5);
if (_y > (20 + _root.ball._y)) {
_y = (_y - 2);
}
if (_y < (-20 + _root.ball._y)) {
_y = (_y + 2);
}
if (_x > maxX) {
trace("vulch done!");
_root.vultureActive = 0;
_x = -200;
_root.shotClock = _root.shotClockReset;
_root.clockDisplay._width = _root.shotClock;
}
}
if (hitTest(_root.ball)) {
if (_root.deathCount == 0) {
_root.deathSound.start(0, 1);
_root.ball.gotoAndPlay(2);
_root.ball._x = _x;
_root.ball._y = _y;
eval ("_root.ballDisp2.bd" + _root.balls).gotoAndPlay(10);
_root.balls--;
}
if (_root.deathCount >= 30) {
_root.balls--;
i = 1;
while (i <= _root.blocksTotal) {
removeMovieClip("_root.block" + i);
i++;
}
if (_root.balls > 0) {
_root.gotoAndStop(8);
} else {
_root.gotoAndStop(15);
}
} else {
_root.deathCount++;
}
}
} else {
stop();
}
}
}
Frame 15
Mouse.show();
stop();
Frame 20
stop();
Mouse.show();
_root.invincible = 1;
_root.bonusCounter = 0;
_root.bonus = 0;
_root.shotClockReset = 400 - (_root.level * 50);
_root.shotClock = _root.shotClockReset;
_root.vultureActive = 0;
Frame 25
stop();
Symbol 8 MovieClip [FUIComponentSymbol] Frame 1
#initclip 1
function FUIComponentClass() {
this.init();
}
FUIComponentClass.prototype = new MovieClip();
FUIComponentClass.prototype.init = function () {
this.enable = true;
this.focused = false;
this.useHandCursor = false;
this._accImpl = new Object();
this._accImpl.stub = true;
this.styleTable = new Array();
if (_global.globalStyleFormat == undefined) {
_global.globalStyleFormat = new FStyleFormat();
globalStyleFormat.isGlobal = true;
_global._focusControl = new Object();
_global._focusControl.onSetFocus = function (oldFocus, newFocus) {
oldFocus.myOnKillFocus();
newFocus.myOnSetFocus();
};
Selection.addListener(_global._focusControl);
}
if (this._name != undefined) {
this._focusrect = false;
this.tabEnabled = true;
this.focusEnabled = true;
this.tabChildren = false;
this.tabFocused = true;
if (this.hostStyle == undefined) {
globalStyleFormat.addListener(this);
} else {
this.styleTable = this.hostStyle;
}
this.deadPreview._visible = false;
this.deadPreview._width = (this.deadPreview._height = 1);
this.methodTable = new Object();
this.keyListener = new Object();
this.keyListener.controller = this;
this.keyListener.onKeyDown = function () {
this.controller.myOnKeyDown();
};
this.keyListener.onKeyUp = function () {
this.controller.myOnKeyUp();
};
for (var i in this.styleFormat_prm) {
this.setStyleProperty(i, this.styleFormat_prm[i]);
}
}
};
FUIComponentClass.prototype.setEnabled = function (enabledFlag) {
this.enable = ((arguments.length > 0) ? (enabledFlag) : true);
this.tabEnabled = (this.focusEnabled = enabledFlag);
if ((!this.enable) && (this.focused)) {
Selection.setFocus(undefined);
}
};
FUIComponentClass.prototype.getEnabled = function () {
return(this.enable);
};
FUIComponentClass.prototype.setSize = function (w, h) {
this.width = w;
this.height = h;
this.focusRect.removeMovieClip();
};
FUIComponentClass.prototype.setChangeHandler = function (chng, obj) {
this.handlerObj = ((obj == undefined) ? (this._parent) : (obj));
this.changeHandler = chng;
};
FUIComponentClass.prototype.invalidate = function (methodName) {
this.methodTable[methodName] = true;
this.onEnterFrame = this.cleanUI;
};
FUIComponentClass.prototype.cleanUI = function () {
if (this.methodTable.setSize) {
this.setSize(this.width, this.height);
} else {
this.cleanUINotSize();
}
this.methodTable = new Object();
delete this.onEnterFrame;
};
FUIComponentClass.prototype.cleanUINotSize = function () {
for (var funct in this.methodTable) {
this[funct]();
}
};
FUIComponentClass.prototype.drawRect = function (x, y, w, h) {
var inner = this.styleTable.focusRectInner.value;
var outer = this.styleTable.focusRectOuter.value;
if (inner == undefined) {
inner = 16777215 /* 0xFFFFFF */;
}
if (outer == undefined) {
outer = 0;
}
this.createEmptyMovieClip("focusRect", 1000);
this.focusRect.controller = this;
this.focusRect.lineStyle(1, outer);
this.focusRect.moveTo(x, y);
this.focusRect.lineTo(x + w, y);
this.focusRect.lineTo(x + w, y + h);
this.focusRect.lineTo(x, y + h);
this.focusRect.lineTo(x, y);
this.focusRect.lineStyle(1, inner);
this.focusRect.moveTo(x + 1, y + 1);
this.focusRect.lineTo((x + w) - 1, y + 1);
this.focusRect.lineTo((x + w) - 1, (y + h) - 1);
this.focusRect.lineTo(x + 1, (y + h) - 1);
this.focusRect.lineTo(x + 1, y + 1);
};
FUIComponentClass.prototype.pressFocus = function () {
this.tabFocused = false;
this.focusRect.removeMovieClip();
Selection.setFocus(this);
};
FUIComponentClass.prototype.drawFocusRect = function () {
this.drawRect(-2, -2, this.width + 4, this.height + 4);
};
FUIComponentClass.prototype.myOnSetFocus = function () {
this.focused = true;
Key.addListener(this.keyListener);
if (this.tabFocused) {
this.drawFocusRect();
}
};
FUIComponentClass.prototype.myOnKillFocus = function () {
this.tabFocused = true;
this.focused = false;
this.focusRect.removeMovieClip();
Key.removeListener(this.keyListener);
};
FUIComponentClass.prototype.executeCallBack = function () {
this.handlerObj[this.changeHandler](this);
};
FUIComponentClass.prototype.updateStyleProperty = function (styleFormat, propName) {
this.setStyleProperty(propName, styleFormat[propName], styleFormat.isGlobal);
};
FUIComponentClass.prototype.setStyleProperty = function (propName, value, isGlobal) {
if (value == "") {
return(undefined);
}
var tmpValue = parseInt(value);
if (!isNaN(tmpValue)) {
value = tmpValue;
}
var global = ((arguments.length > 2) ? (isGlobal) : false);
if (this.styleTable[propName] == undefined) {
this.styleTable[propName] = new Object();
this.styleTable[propName].useGlobal = true;
}
if (this.styleTable[propName].useGlobal || (!global)) {
this.styleTable[propName].value = value;
if (this.setCustomStyleProperty(propName, value)) {
} else if (propName == "embedFonts") {
this.invalidate("setSize");
} else if (propName.subString(0, 4) == "text") {
if (this.textStyle == undefined) {
this.textStyle = new TextFormat();
}
var textProp = propName.subString(4, propName.length);
this.textStyle[textProp] = value;
this.invalidate("setSize");
} else {
for (var j in this.styleTable[propName].coloredMCs) {
var myColor = new Color(this.styleTable[propName].coloredMCs[j]);
if (this.styleTable[propName].value == undefined) {
var myTObj = {ra:"100", rb:"0", ga:"100", gb:"0", ba:"100", bb:"0", aa:"100", ab:"0"};
myColor.setTransform(myTObj);
} else {
myColor.setRGB(value);
}
}
}
this.styleTable[propName].useGlobal = global;
}
};
FUIComponentClass.prototype.registerSkinElement = function (skinMCRef, propName) {
if (this.styleTable[propName] == undefined) {
this.styleTable[propName] = new Object();
this.styleTable[propName].useGlobal = true;
}
if (this.styleTable[propName].coloredMCs == undefined) {
this.styleTable[propName].coloredMCs = new Object();
}
this.styleTable[propName].coloredMCs[skinMCRef] = skinMCRef;
if (this.styleTable[propName].value != undefined) {
var myColor = new Color(skinMCRef);
myColor.setRGB(this.styleTable[propName].value);
}
};
_global.FStyleFormat = function () {
this.nonStyles = {listeners:true, isGlobal:true, isAStyle:true, addListener:true, removeListener:true, nonStyles:true, applyChanges:true};
this.listeners = new Object();
this.isGlobal = false;
if (arguments.length > 0) {
for (var i in arguments[0]) {
this[i] = arguments[0][i];
}
}
};
_global.FStyleFormat.prototype = new Object();
FStyleFormat.prototype.addListener = function () {
var arg = 0;
while (arg < arguments.length) {
var mcRef = arguments[arg];
this.listeners[arguments[arg]] = mcRef;
for (var i in this) {
if (this.isAStyle(i)) {
mcRef.updateStyleProperty(this, i.toString());
}
}
arg++;
}
};
FStyleFormat.prototype.removeListener = function (component) {
this.listeners[component] = undefined;
for (var prop in this) {
if (this.isAStyle(prop)) {
if (component.styleTable[prop].useGlobal == this.isGlobal) {
component.styleTable[prop].useGlobal = true;
var value = (this.isGlobal ? undefined : (globalStyleFormat[prop]));
component.setStyleProperty(prop, value, true);
}
}
}
};
FStyleFormat.prototype.applyChanges = function () {
var count = 0;
for (var i in this.listeners) {
var component = this.listeners[i];
if (arguments.length > 0) {
var j = 0;
while (j < arguments.length) {
if (this.isAStyle(arguments[j])) {
component.updateStyleProperty(this, arguments[j]);
}
j++;
}
} else {
for (var j in this) {
if (this.isAStyle(j)) {
component.updateStyleProperty(this, j.toString());
}
}
}
}
};
FStyleFormat.prototype.isAStyle = function (name) {
return((this.nonStyles[name] ? false : true));
};
#endinitclip
Symbol 9 MovieClip [FLabelSymbol] Frame 1
#initclip 2
_global.FLabelClass = function () {
if (this.hostComponent == undefined) {
this.hostComponent = ((this._parent.controller == undefined) ? (this._parent) : (this._parent.controller));
}
if (this.customTextStyle == undefined) {
if (this.hostComponent.textStyle == undefined) {
this.hostComponent.textStyle = new TextFormat();
}
this.textStyle = this.hostComponent.textStyle;
this.enable = true;
}
};
FLabelClass.prototype = new MovieClip();
Object.registerClass("FLabelSymbol", FLabelClass);
FLabelClass.prototype.setLabel = function (label) {
var val = this.hostComponent.styleTable.embedFonts.value;
if (val != undefined) {
this.labelField.embedFonts = val;
}
this.labelField.setNewTextFormat(this.textStyle);
this.labelField.text = label;
this.labelField._height = this.labelField.textHeight + 2;
};
FLabelClass.prototype.setSize = function (width) {
this.labelField._width = width;
};
FLabelClass.prototype.setEnabled = function (enable) {
this.enable = enable;
var tmpColor = this.hostComponent.styleTable[(enable ? "textColor" : "textDisabled")].value;
if (tmpColor == undefined) {
tmpColor = (enable ? 0 : 8947848);
}
this.setColor(tmpColor);
};
FLabelClass.prototype.getLabel = function () {
return(this.labelField.text);
};
FLabelClass.prototype.setColor = function (col) {
this.labelField.textColor = col;
};
#endinitclip
Symbol 13 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 22 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 28 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 34 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 12 MovieClip [fpb_states] Frame 1
stop();
Symbol 12 MovieClip [fpb_states] Frame 2
stop();
Symbol 12 MovieClip [fpb_states] Frame 3
stop();
Symbol 12 MovieClip [fpb_states] Frame 4
stop();
Symbol 40 MovieClip [FBoundingBoxSymbol] Frame 1
var component = _parent;
component.registerSkinElement(boundingBox, "background");
stop();
Symbol 40 MovieClip [FBoundingBoxSymbol] Frame 2
component.registerSkinElement(boundingBox2, "backgroundDisabled");
stop();
Symbol 44 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 55 MovieClip Frame 1
if (this.sessionstarted != 1) {
this.arcade = new LoadVars();
this.sessionvars = new LoadVars();
this.arcade.gamename = "crazyblockbreaker";
this.arcade.sessdo = "sessionstart";
this.arcade.sendAndLoad("arcade.php", sessionvars, "POST");
if (this.sessionvars.sessiontype != 2) {
_root.is_a_challenge = 0;
} else {
_root.is_a_challenge = 1;
}
this.sessionstarted = 1;
}
if (_root.gameover == 1) {
if ((this.askpermission != 1) && (this.sessionvars.connStatus == 1)) {
this.prequestvars = new LoadVars();
this.pranswer = new LoadVars();
this.prequestvars.gametime = this.sessionvars.gametime;
this.prequestvars.fakekey = this.sessionvars.initbar;
_root.score = int(Number(_root.score));
if (_root.score != 0) {
this.prequestvars.score = _root.score;
} else {
this.prequestvars.score = -1;
}
this.prequestvars.id = this.sessionvars.lastid;
this.prequestvars.sessdo = "permrequest";
this.prequestvars.note = (this.prequestvars.id * this.prequestvars.score) * this.prequestvars.fakekey;
this.prequestvars.sendAndLoad("./arcade.php", this.pranswer, "POST");
this.askpermission = 1;
}
if ((this.pranswer.validate == 1) && (this.finalsent != 1)) {
this.burnscore = new LoadVars();
this.burnscore.microone = this.pranswer.microone;
this.burnscore.gametime = this.prequestvars.gametime;
this.burnscore.id = this.prequestvars.id;
if (_root.score == 0) {
this.burnscore.noscore = 1;
}
this.burnscore.sessdo = "burn";
this.burnscore.send("./arcade.php", "_self", "POST");
this.finalsent = 1;
}
}
Symbol 60 Button
on (release) {
gotoAndPlay (25);
}
Symbol 64 Button
on (release) {
gotoAndPlay (5);
}
Symbol 70 MovieClip Frame 40
gotoAndPlay (20);
Symbol 87 Button
on (release) {
gotoAndPlay (25);
}
Symbol 88 Button
on (release) {
gotoAndPlay (5);
}
Symbol 93 Button
on (release) {
gotoAndPlay (10);
}
Symbol 100 MovieClip Frame 1
stop();
Symbol 100 MovieClip Frame 2
stop();
Symbol 100 MovieClip Frame 3
stop();
Symbol 100 MovieClip Frame 4
stop();
Symbol 100 MovieClip Frame 5
stop();
Symbol 100 MovieClip Frame 6
stop();
Symbol 119 Button
on (release) {
gotoAndPlay (10);
}
Symbol 121 MovieClip Frame 1
stop();
Symbol 121 MovieClip Frame 2
stop();
Symbol 121 MovieClip Frame 3
stop();
Symbol 121 MovieClip Frame 4
stop();
Symbol 121 MovieClip Frame 5
stop();
Symbol 121 MovieClip Frame 6
stop();
Symbol 121 MovieClip Frame 7
stop();
Symbol 136 MovieClip Frame 1
stop();
worth = 50;
Symbol 136 MovieClip Frame 2
stop();
worth = 100;
Symbol 136 MovieClip Frame 3
stop();
worth = 500;
Symbol 136 MovieClip Frame 4
stop();
worth = 0;
Symbol 136 MovieClip Frame 13
removeMovieClip(parent);
Symbol 155 MovieClip Frame 1
stop();
Symbol 155 MovieClip Frame 20
stop();
Symbol 155 MovieClip Frame 35
gotoAndPlay (25);
Symbol 155 MovieClip Frame 50
gotoAndPlay (1);
Symbol 155 MovieClip Frame 55
stop();
Symbol 162 MovieClip Frame 1
stop();
Symbol 162 MovieClip Frame 2
stop();
Symbol 162 MovieClip Frame 3
stop();
Symbol 162 MovieClip Frame 4
stop();
Symbol 162 MovieClip Frame 5
stop();
Symbol 162 MovieClip Frame 20
removeMovieClip(parent);
Symbol 173 MovieClip Frame 1
stop();
Symbol 173 MovieClip Frame 2
stop();
Instance of Symbol 175 MovieClip in Symbol 173 MovieClip Frame 2
onClipEvent (enterFrame) {
counter++;
if (counter == 100) {
counter = 0;
r = Math.floor(Math.random() * 3);
if (r < 1) {
tmp = Math.ceil(Math.random() * 3) + 1;
trace(tmp);
_parent.gotoAndStop(tmp);
}
}
}
Symbol 173 MovieClip Frame 3
stop();
Instance of Symbol 176 MovieClip in Symbol 173 MovieClip Frame 3
onClipEvent (enterFrame) {
count++;
w = 152;
if (_x < -420) {
count = 0;
if (Math.floor(Math.random() * 3) < 1) {
tmp = Math.ceil(Math.random() * 3) + 1;
_parent.gotoAndStop(tmp);
}
}
_x = (_x-1);
}
Symbol 173 MovieClip Frame 4
stop();
Instance of Symbol 178 MovieClip in Symbol 173 MovieClip Frame 4
onClipEvent (enterFrame) {
count++;
if (count < 50) {
_xscale = (100 + (count * 4));
_yscale = (100 + (count * 4));
} else {
_xscale = (300 - ((count - 50) * 4));
_yscale = (300 - ((count - 50) * 4));
}
if (count == 100) {
count = 0;
tmp = Math.ceil(Math.random() * 3) + 1;
_parent.gotoAndStop(tmp);
}
}
Symbol 182 MovieClip Frame 7
stop();
Symbol 182 MovieClip Frame 14
removeMovieClip(this);
Instance of Symbol 182 MovieClip "bd" in Symbol 181 MovieClip Frame 1
onClipEvent (load) {
if (_name != "db") {
ballNum = substring(_name, 3, _name.length - 2);
_x = (35 + (ballNum * 10));
}
}
Symbol 189 MovieClip Frame 1
stop();
rndWidth = 0;
Symbol 189 MovieClip Frame 2
stop();
rndWidth = 0;
Symbol 189 MovieClip Frame 10
stop();
rndWidth = 1;
Symbol 189 MovieClip Frame 11
stop();
rndWidth = 0;
Symbol 189 MovieClip Frame 12
_root.chickenMode = 1;
stop();
rndWidth = 0;
Symbol 196 MovieClip Frame 19
gotoAndPlay (1);
Symbol 201 MovieClip Frame 1
stop();
Symbol 217 Button
on (release) {
gotoAndPlay (4);
}
Symbol 220 Button
on (release) {
_root.gameover = 1;
}
Symbol 222 Button
on (release) {
gotoAndPlay (4);
}
Symbol 223 Button
on (release) {
_root.gameover = 1;
}
Symbol 238 Button
on (release) {
play();
}
Symbol 239 Button
on (release) {
_root.gotoAndStop(4);
}
Symbol 243 Button
on (release) {
_root.gotoAndStop(4);
}
Symbol 244 Button
on (release) {
_root.gotoAndStop(4);
}
Symbol 245 Button
on (release) {
_root.gotoAndStop(4);
}
Symbol 246 Button
on (release) {
_root.gotoAndStop(4);
}
Symbol 247 Button
on (release) {
_root.gotoAndStop(4);
}
Symbol 248 Button
on (release) {
_root.gotoAndStop(4);
}
Symbol 249 Button
on (release) {
_root.gotoAndStop(4);
}
Symbol 250 Button
on (release) {
_root.gotoAndStop(4);
}
Symbol 251 Button
on (release) {
_root.gotoAndStop(4);
}
Symbol 260 Button
on (release) {
_root.gotoAndStop(4);
}
Symbol 267 Button
on (release) {
_root.gotoAndStop(4);
}
Symbol 268 Button
on (release) {
_root.gotoAndStop(4);
}
Symbol 269 Button
on (release) {
_root.gotoAndStop(4);
}
Symbol 270 Button
on (release) {
_root.gotoAndStop(4);
}
Symbol 271 Button
on (release) {
_root.gotoAndStop(4);
}
Symbol 272 Button
on (release) {
_root.gotoAndStop(4);
}
Symbol 273 Button
on (release) {
_root.gotoAndStop(4);
}
Symbol 275 Button
on (release) {
play();
}
Symbol 276 Button
on (release) {
gotoAndPlay (1);
}
Symbol 224 MovieClip Frame 10
stop();
Symbol 224 MovieClip Frame 20
stop();
Symbol 224 MovieClip Frame 29
stop();