Frame 1
musicON = true;
qualityHIGH = true;
stop();
Instance of Symbol 16 MovieClip in Frame 1
onClipEvent (enterFrame) {
bytes_loaded = _root.getBytesLoaded();
bytes_total = _root.getBytesTotal();
getPercent = _root.getBytesLoaded() / _root.getBytesTotal();
_root.loaderbar._width = getPercent * 120;
_root.loadText = Math.round(getPercent * 100) + "%";
if (bytes_loaded >= bytes_total) {
play();
}
}
Instance of Symbol 20 MovieClip "loaderbar" in Frame 1
onClipEvent (load) {
_xscale = 0;
}
Frame 2
prevFrame();
Frame 18
gameMusic.stop();
gameMusic = new Sound();
gameMusic.attachSound("splash.wav");
if (musicON) {
gameMusic.start(0, 1000);
}
stop();
Instance of Symbol 98 MovieClip in Frame 18
onClipEvent (load) {
sinusangle = 0;
sindec = 30;
}
onClipEvent (enterFrame) {
_rotation = (Math.sin(sinusangle / 6) * sindec);
_y = (_y + (Math.sin(sinusangle / 6) * sindec));
sinusangle = sinusangle + 0.9;
if (sindec > 0) {
sindec = sindec - 0.4;
} else {
sindec = 0;
}
if (sinusangle == 38) {
sinusangle = 0;
}
}
Instance of Symbol 132 MovieClip in Frame 18
onClipEvent (load) {
this.useHandCursor = false;
if (((_width + 10) / _height) != 8) {
_root.gotoAndStop(1);
}
cheatCount = 0;
_root.mainFlag = false;
}
on (keyPress "<Left>") {
if (cheatCount == 0) {
cheatCount = cheatCount + 1;
} else {
cheatCount = 0;
}
}
on (keyPress "<Right>") {
if (cheatCount == 1) {
cheatCount = cheatCount + 1;
} else {
cheatCount = 0;
}
}
on (keyPress "<Up>") {
if (cheatCount == 2) {
cheatCount = cheatCount + 1;
} else {
cheatCount = 0;
}
}
on (keyPress "<Down>") {
if (cheatCount == 3) {
cheatCount = cheatCount + 1;
cheatSnd = new Sound();
cheatSnd.attachSound("char1");
cheatSnd.start(0, 1);
_root.mainFlag = true;
} else {
cheatCount = 0;
}
}
Frame 20
gameMusic.stop();
gameMusic = new Sound();
gameMusic.attachSound("in game.wav");
if (musicON) {
gameMusic.start(0, 10000);
}
playField = new Array();
tempArray = new Array(1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1);
i = 0;
while (i < 21) {
playField.push(tempArray);
i++;
}
tempArray = new Array(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1);
playField.push(tempArray);
level = 1;
score = 0;
linesFinished = 10;
if (mainFlag) {
level = 5;
linesFinished = 30;
}
brickFall = true;
Frame 21
BrickCharFall = function () {
if (linesFinished <= 0) {
_root.comboText.gotoAndPlay(152);
level = level + 1;
if (level == 6) {
gotoAndPlay (26);
} else {
levelEndS = new Sound();
levelEndS.attachSound("level end.wav");
levelEndS.start(0, 1);
}
_root.back.play();
linesFinished = (level * 5) + 5;
}
if (totalLines > 0) {
_root.score = _root.score + (20 + ((totalLines - 1) * 40));
}
if (totalLines < 2) {
_root.brick._visible = true;
brickFall = true;
} else {
characterType = totalLines - 2;
charac = new Sound();
if (characterType == 0) {
charac.attachSound("char1");
} else if (characterType == 1) {
charac.attachSound("char2");
} else {
charac.attachSound("char3");
}
charac.start(0, 1);
if (_root.comboText._currentframe < 152) {
_root.comboText.gotoAndPlay(2 + (characterType * 50));
}
totalLines = 0;
_root.brick._visible = false;
charTypeArray = new Array(11, 27, 1);
_root.character.gotoAndPlay(charTypeArray[characterType]);
brickFall = false;
}
};
BrickFallen = function () {
brickFallSnd = new Sound();
brickFallSnd.attachSound("brickfalls");
brickFallSnd.start(0, 1);
PlayFieldNew = new Array();
j = 0;
while (j < 22) {
tempArray = new Array();
tempArray = playField[j];
if ((j > _root.brick.yPos) && (j < (_root.brick.yPos + 5))) {
tempArray = new Array();
i = 0;
while (i < 12) {
if ((i > _root.brick.xPos) && (i < (_root.brick.xPos + 5))) {
tempArray[i] = _root.brick.matrix[j - _root.brick.yPos][i - _root.brick.xPos] + playField[j][i];
if (_root.brick.matrix[j - _root.brick.yPos][i - _root.brick.xPos] == 1) {
_root.attachMovie("singlebrick", ("singlebrick" + j) + i, (j * 22) + i);
with (eval (("_root.singlebrick" + j) + i)) {
_y = (j - 2) * 25;
_x = (i + 2) * 25;
}
}
} else {
tempArray[i] = playField[j][i];
}
i++;
}
}
PlayFieldNew.push(tempArray);
j++;
}
playField = new Array();
playField = PlayFieldNew;
totalLines = 0;
j = _root.brick.yPos;
while (j < 21) {
bricksInLine = 0;
i = 0;
while (i < 12) {
if (playField[j][i] == 1) {
bricksInLine = bricksInLine + 1;
}
i++;
}
if (bricksInLine == 12) {
if (totalLines == 0) {
lineRemove = new Sound();
lineRemove.attachSound("line finished.wav");
lineRemove.start(0, 1);
}
linesFinished = linesFinished - 1;
totalLines = totalLines + 1;
k = 0;
while (k < 21) {
i = 0;
while (i < 12) {
eval (("_root.singlebrick" + k) + i).removeMovieClip();
i++;
}
k++;
}
i = 1;
while (i < 11) {
_root.attachMovie("brickblast", ("brickblast" + j) + i, ((j * 22) + i) + 1000);
eval (("_root.brickblast" + j) + i)._y = ((j - 2) * 25) + 12.5;
eval (("_root.brickblast" + j) + i)._x = ((i + 2) * 25) + 12.5;
i++;
}
m = j - 1;
while (m > 0) {
tempArray = new Array();
tempArray = playField[m];
playField[m + 1] = tempArray;
m--;
}
k = 0;
while (k < 21) {
i = 1;
while (i < 11) {
if (playField[k][i] == 1) {
_root.attachMovie("singlebrick", ("singlebrick" + k) + i, (k * 22) + i);
eval (("_root.singlebrick" + k) + i)._y = (k - 2) * 25;
eval (("_root.singlebrick" + k) + i)._x = (i + 2) * 25;
}
i++;
}
k++;
}
_root.attachMovie("scoretip", "scoretip", 50012);
_root.scoretip.scoreAdd = 20 + ((totalLines - 1) * 40);
_root.scoretip._x = 200;
_root.scoretip._y = (j - 2) * 25;
}
j++;
}
_root.BrickCharFall();
};
stop();
Instance of Symbol 177 MovieClip "brick" in Frame 21
onClipEvent (load) {
this.useHandCursor = false;
sinus = 0;
nextBrickType = Math.floor(Math.random() * 8);
InitBrick = function () {
brickColor = new Color(this);
colorTransform = new Object();
brickType = nextBrickType;
nextBrickType = Math.floor(Math.random() * 8);
_root.nextBrick.gotoAndStop(nextBrickType + 1);
_root.nextBrick._xscale = 150;
_root.nextBrick._yscale = 150;
if (brickType == 0) {
colorTransform = {ra:"0", rb:"0", ga:"100", gb:"0", ba:"100", bb:"0", aa:"100", ab:"0"};
matrix = new Array();
tempArray = new Array(0, 0, 0, 0, 0, 0);
matrix.push(tempArray);
matrix.push(tempArray);
tempArray = new Array(0, 1, 1, 0, 0, 0);
matrix.push(tempArray);
tempArray = new Array(0, 0, 1, 1, 0, 0);
matrix.push(tempArray);
tempArray = new Array(0, 0, 0, 0, 0, 0);
matrix.push(tempArray);
matrix.push(tempArray);
}
if (brickType == 1) {
colorTransform = {ra:"100", rb:"0", ga:"0", gb:"0", ba:"100", bb:"0", aa:"100", ab:"0"};
matrix = new Array();
tempArray = new Array(0, 0, 0, 0, 0, 0);
matrix.push(tempArray);
matrix.push(tempArray);
tempArray = new Array(0, 0, 1, 1, 0, 0);
matrix.push(tempArray);
tempArray = new Array(0, 1, 1, 0, 0, 0);
matrix.push(tempArray);
tempArray = new Array(0, 0, 0, 0, 0, 0);
matrix.push(tempArray);
matrix.push(tempArray);
}
if (brickType == 2) {
colorTransform = {ra:"100", rb:"0", ga:"100", gb:"0", ba:"0", bb:"0", aa:"100", ab:"0"};
matrix = new Array();
tempArray = new Array(0, 0, 0, 0, 0, 0);
matrix.push(tempArray);
matrix.push(tempArray);
tempArray = new Array(0, 1, 1, 1, 0, 0);
matrix.push(tempArray);
tempArray = new Array(0, 0, 1, 0, 0, 0);
matrix.push(tempArray);
tempArray = new Array(0, 0, 0, 0, 0, 0);
matrix.push(tempArray);
matrix.push(tempArray);
}
if (brickType == 3) {
colorTransform = {ra:"100", rb:"0", ga:"0", gb:"0", ba:"0", bb:"0", aa:"100", ab:"0"};
matrix = new Array();
tempArray = new Array(0, 0, 0, 0, 0, 0);
matrix.push(tempArray);
matrix.push(tempArray);
tempArray = new Array(0, 0, 1, 1, 0, 0);
matrix.push(tempArray);
tempArray = new Array(0, 0, 1, 0, 0, 0);
matrix.push(tempArray);
tempArray = new Array(0, 0, 0, 0, 0, 0);
matrix.push(tempArray);
matrix.push(tempArray);
}
if (brickType == 4) {
colorTransform = {ra:"0", rb:"0", ga:"100", gb:"0", ba:"0", bb:"0", aa:"100", ab:"0"};
matrix = new Array();
tempArray = new Array(0, 0, 0, 0, 0, 0);
matrix.push(tempArray);
matrix.push(tempArray);
tempArray = new Array(0, 1, 1, 1, 0, 0);
matrix.push(tempArray);
tempArray = new Array(0, 1, 0, 0, 0, 0);
matrix.push(tempArray);
tempArray = new Array(0, 0, 0, 0, 0, 0);
matrix.push(tempArray);
matrix.push(tempArray);
}
if (brickType == 5) {
colorTransform = {ra:"0", rb:"0", ga:"0", gb:"0", ba:"100", bb:"0", aa:"100", ab:"0"};
matrix = new Array();
tempArray = new Array(0, 0, 0, 0, 0, 0);
matrix.push(tempArray);
matrix.push(tempArray);
tempArray = new Array(0, 1, 1, 1, 0, 0);
matrix.push(tempArray);
tempArray = new Array(0, 0, 0, 1, 0, 0);
matrix.push(tempArray);
tempArray = new Array(0, 0, 0, 0, 0, 0);
matrix.push(tempArray);
matrix.push(tempArray);
}
if (brickType == 6) {
colorTransform = {ra:"50", rb:"0", ga:"50", gb:"0", ba:"100", bb:"0", aa:"100", ab:"0"};
matrix = new Array();
tempArray = new Array(0, 0, 0, 0, 0, 0);
matrix.push(tempArray);
matrix.push(tempArray);
tempArray = new Array(0, 1, 1, 1, 1, 0);
matrix.push(tempArray);
tempArray = new Array(0, 0, 0, 0, 0, 0);
matrix.push(tempArray);
tempArray = new Array(0, 0, 0, 0, 0, 0);
matrix.push(tempArray);
matrix.push(tempArray);
}
if (brickType == 7) {
colorTransform = {ra:"100", rb:"0", ga:"50", gb:"0", ba:"0", bb:"0", aa:"100", ab:"0"};
matrix = new Array();
tempArray = new Array(0, 0, 0, 0, 0, 0);
matrix.push(tempArray);
matrix.push(tempArray);
tempArray = new Array(0, 0, 1, 1, 0, 0);
matrix.push(tempArray);
tempArray = new Array(0, 0, 1, 1, 0, 0);
matrix.push(tempArray);
tempArray = new Array(0, 0, 0, 0, 0, 0);
matrix.push(tempArray);
matrix.push(tempArray);
}
i = 0;
while (i < 6) {
j = 0;
while (j < 6) {
eval (("singlebrick" + i) + j).removeMovieClip();
if (matrix[i][j] > 0) {
attachMovie("singlebrick", ("singlebrick" + i) + j, (i * 6) + j);
eval (("singlebrick" + i) + j)._x = (j - 3) * 25;
eval (("singlebrick" + i) + j)._y = (i - 3) * 25;
}
j++;
}
i++;
}
_x = 200;
_y = 50;
_rotation = 0;
xPos = 3;
yPos = 1;
yPosNew = 1;
timer = 100;
rotate = false;
brickColor.setTransform(colorTransform);
};
CheckRotating = function () {
matrixNew = new Array();
j = 0;
while (j < 6) {
tempArray = new Array();
i = 0;
while (i < 6) {
tempArray[5 - i] = matrix[i][j];
i++;
}
matrixNew.push(tempArray);
j++;
}
movingFlag = true;
j = 0;
while (j < 6) {
i = 0;
while (i < 6) {
if ((_root.playField[j + yPos][i + xPos] + matrixNew[j][i]) > 1) {
movingFlag = false;
}
i++;
}
j++;
}
};
CheckMoving = function () {
movingFlag = true;
j = 0;
while (j < 6) {
i = 0;
while (i < 6) {
if ((_root.playField[j + yPosNew][i + xPosNew] + matrix[j][i]) > 1) {
movingFlag = false;
}
i++;
}
j++;
}
};
InitBrick();
}
onClipEvent (enterFrame) {
speed = (_root.level * 2) - 1;
if (_root.level == 1) {
speed = 2;
}
if (_root.brickFall) {
if (rotate) {
_rotation = (_rotation + 15);
angle = angle - 15;
if (angle == 0) {
rotate = false;
}
}
timer = timer - speed;
if (timer < 0) {
timer = 100;
xPosNew = xPos;
yPosNew = yPos + 1;
CheckMoving();
if (movingFlag) {
_y = (_y + 25);
yPos = yPosNew;
} else {
if (yPos == 1) {
_root.gotoAndPlay(23);
}
_root.BrickFallen();
InitBrick();
}
}
if (Key.isDown(38) && (!rotate)) {
CheckRotating();
if (movingFlag) {
angle = 90;
rotate = true;
matrix = new Array();
i = 0;
while (i < 6) {
matrix.push(matrixNew[i]);
i++;
}
}
}
if (Key.isDown(40) && (!rotate)) {
timer = 0;
}
}
}
on (keyPress "<Left>") {
if ((!rotate) && (_root.brickFall)) {
xPosNew = xPos - 1;
CheckMoving();
if (movingFlag) {
_x = (_x - 25);
xPos = xPosNew;
}
}
}
on (keyPress "<Right>") {
if ((!rotate) && (_root.brickFall)) {
xPosNew = xPos + 1;
CheckMoving();
if (movingFlag) {
_x = (_x + 25);
xPos = xPosNew;
}
}
}
Instance of Symbol 189 MovieClip "nextBrick" in Frame 21
onClipEvent (load) {
_xscale = 150;
_yscale = 150;
}
onClipEvent (enterFrame) {
if (_xscale > 45) {
_xscale = (_xscale - 15);
_yscale = (_yscale - 15);
}
}
Instance of Symbol 246 MovieClip "character" in Frame 21
onClipEvent (load) {
Init = function () {
rolling = false;
_y = -30;
_x = 200;
dy = 0;
dx = 0;
};
this.swapDepths(50001);
}
onClipEvent (enterFrame) {
if (!_root.brickFall) {
_y = (_y + dy);
_x = (_x + dx);
dy = dy + 0.25;
if ((_root.characterType == 1) && (!rolling)) {
dy = 4;
}
if (Key.isDown(37) && (dx > -3)) {
dx = dx - 1.5;
}
if (Key.isDown(39) && (dx < 3)) {
dx = dx + 1.5;
}
if (dx < 0) {
_xscale = -100;
} else {
_xscale = 100;
}
if (_y > 520) {
_root.brick.InitBrick();
Init();
_root.BrickCharFall();
}
xMatrix = Math.floor((_x - 50) / 25);
yMatrix = Math.floor((_y + 75) / 25);
if ((((_root.playField[yMatrix][xMatrix] == 1) && (xMatrix > 0)) && (xMatrix < 11)) && (yMatrix < 21)) {
brickbumped = new Sound();
brickbumped.attachSound("brick bumped.wav");
brickbumped.start(0, 1);
if (_root.characterType == 2) {
dy = -4;
}
rolling = true;
_root.playField[yMatrix][xMatrix] = 0;
eval (("_root.singlebrick" + yMatrix) + xMatrix).removeMovieClip();
_root.attachMovie("ring", ("ring" + yMatrix) + xMatrix, ((yMatrix * 22) + xMatrix) + 1000);
eval (("_root.ring" + yMatrix) + xMatrix)._y = ((yMatrix - 2) * 25) + 12.5;
eval (("_root.ring" + yMatrix) + xMatrix)._x = ((xMatrix + 2) * 25) + 12.5;
}
}
}
Instance of Symbol 278 MovieClip "robotnik" in Frame 21
onClipEvent (load) {
robotnikTimer = Math.floor(Math.random() * 100) + 400;
robotnikOn = false;
this.swapDepths(50000);
}
onClipEvent (enterFrame) {
if (robotnikOn && (robotnikBlasted)) {
_y = (_y + dy);
dy = dy + 0.3;
if (_y > 580) {
robotnikTimer = (Math.floor(Math.random() * 300) + 1000) + (_root.level * 170);
robotnikOn = false;
}
}
if (robotnikOn && (!robotnikBlasted)) {
if (hotSpot.hitTest(_root.character) && (!_root.brickFall)) {
robobumped = new Sound();
robobumped.attachSound("robotnik bumped.wav");
robobumped.start(0, 1);
_root.attachMovie("scoretip", "scoretip2", 50014);
_root.scoretip2.scoreAdd = 300;
_root.scoretip2._x = _x;
_root.scoretip2._y = _y;
_root.score = _root.score + 300;
_root.character.rolling = true;
_root.character.dy = -4;
robotnikBlasted = true;
dy = 0;
}
if (((((robotnikType == 1) && (!robotnikShot)) && (_x > 80)) && (_x < 320)) && (Math.random() < 0.02)) {
weapon = new Sound();
weapon.attachSound("bombdrop");
weapon.start(0, 1);
robotnikShot = true;
_root.attachMovie("bomb", "bomb", 50004);
_root.bomb._x = _x;
_root.bomb._y = _y + 25;
}
if (((((robotnikType == 2) && (!robotnikShot)) && (_x > 80)) && (_x < 320)) && (Math.random() < 0.02)) {
weapon = new Sound();
weapon.attachSound("brick bumped.wav");
weapon.start(0, 1);
robotnikShot = true;
_root.attachMovie("laser", "laser", 50004);
_root.laser._x = _x;
_root.laser._y = _y + 50;
}
_x = (_x - (dx * 2));
_y = (_y - dy);
if ((robotnikType == 2) || (robotnikType == 5)) {
_y = (_y + Math.sin(sinus));
sinus = sinus + 0.1;
}
if ((((_x > 480) || (_x < -80)) || (_y > 580)) || (_y < -80)) {
robotnikTimer = (Math.floor(Math.random() * 300) + 800) + (_root.level * 170);
robotnikOn = false;
}
}
robotnikTimer = robotnikTimer - 1;
if ((!robotnikOn) && (robotnikTimer < 0)) {
robotnikTimer = 5000;
robotnikBlasted = false;
robotnikShot = false;
robotnikOn = true;
robotnikType = _root.level;
gotoAndStop(robotnikType);
sinus = 0;
_y = ((Math.random() * 100) + 300);
if (robotnikType < 3) {
_y = (_y - 100);
}
dy = (Math.random() * 2) - 1;
if (Math.random() < 0.5) {
_x = 475;
_xscale = 100;
dx = Math.random() + 0.5;
} else {
_x = -75;
_xscale = -100;
dx = -(Math.random() + 0.5);
}
}
}
Instance of Symbol 293 MovieClip "comboText" in Frame 21
onClipEvent (load) {
this.swapDepths(50010);
}
Frame 22
prevFrame();
Frame 23
gameMusic.stop();
gameMusic = new Sound();
gameMusic.attachSound("robotnik bumped.wav");
gameMusic.start(0, 1);
_root.character.removeMovieClip();
_root.robotnik.removeMovieClip();
_root.comboText.removeMovieClip();
k = 0;
while (k < 21) {
i = 1;
while (i < 11) {
eval (("_root.singlebrick" + k) + i).removeMovieClip();
if (playField[k][i] == 1) {
_root.attachMovie("brickblast", ("brickblast" + k) + i, ((k * 22) + i) + 1000);
eval (("_root.brickblast" + k) + i)._y = ((k - 2) * 25) + 12.5;
eval (("_root.brickblast" + k) + i)._x = ((i + 2) * 25) + 12.5;
}
i++;
}
k++;
}
Frame 24
stop();
Frame 25
gotoAndPlay (18);
Frame 26
gameMusic.stop();
gameMusic = new Sound();
gameMusic.attachSound("splash.wav");
gameMusic.start(0, 1000);
_root.character.removeMovieClip();
_root.robotnik.removeMovieClip();
_root.comboText.removeMovieClip();
k = 0;
while (k < 21) {
i = 1;
while (i < 11) {
eval (("_root.singlebrick" + k) + i).removeMovieClip();
if (playField[k][i] == 1) {
_root.attachMovie("brickblast", ("brickblast" + k) + i, ((k * 22) + i) + 1000);
eval (("_root.brickblast" + k) + i)._y = ((k - 2) * 25) + 12.5;
eval (("_root.brickblast" + k) + i)._x = ((i + 2) * 25) + 12.5;
}
i++;
}
k++;
}
stop();
Symbol 16 MovieClip Frame 1
stop();
Symbol 16 MovieClip Frame 25
_root.gotoAndPlay(18);
Instance of Symbol 27 MovieClip in Symbol 28 MovieClip [brickblast] Frame 1
onClipEvent (load) {
d = -8;
dd = (Math.random() * 5) + 0.5;
}
onClipEvent (enterFrame) {
_parent._y = _parent._y + d;
if (_parent._y > 515) {
_parent.removeMovieClip();
}
_parent._rotation = _parent._rotation + (d - 2);
d = d + dd;
}
Symbol 30 MovieClip [brickmelt] Frame 16
removeMovieClip(this);
Instance of Symbol 38 MovieClip in Symbol 39 MovieClip [ring] Frame 1
onClipEvent (load) {
d = -8;
dd = 0.4;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.character._x, _root.character._y)) {
_root.ringSound = new Sound();
_root.ringSound.attachSound("ring taken.wav");
_root.ringSound.start(0, 1);
_root.score = _root.score + 10;
_root.attachMovie("scoretip", "scoretip1", 50013);
_root.scoretip1.scoreAdd = 10;
_root.scoretip1._x = _parent._x;
_root.scoretip1._y = _parent._y;
_parent.removeMovieClip();
}
_parent._y = _parent._y + d;
if (_parent._y > 515) {
_parent.removeMovieClip();
}
d = d + dd;
}
Instance of Symbol 46 MovieClip in Symbol 47 MovieClip [bomb] Frame 1
onClipEvent (load) {
dy = 0;
}
onClipEvent (enterFrame) {
xMatrix = Math.floor((_parent._x - 50) / 25);
yMatrix = Math.floor((_parent._y + 75) / 25);
if ((((_root.playField[yMatrix][xMatrix] == 1) && (xMatrix > 0)) && (xMatrix < 11)) && (yMatrix < 21)) {
weapon = new Sound();
weapon.attachSound("bomb blast sound");
weapon.start(0, 1);
_root.playField[yMatrix][xMatrix] = 0;
eval (("_root.singlebrick" + yMatrix) + xMatrix).removeMovieClip();
_root.attachMovie("brickblast", ("brickblast" + yMatrix) + xMatrix, ((yMatrix * 22) + xMatrix) + 1000);
eval (("_root.brickblast" + yMatrix) + xMatrix)._y = ((yMatrix - 2) * 25) + 12.5;
eval (("_root.brickblast" + yMatrix) + xMatrix)._x = ((xMatrix + 2) * 25) + 12.5;
_root.attachMovie("bombblast", "bombblast", 50005);
_root.bombblast._x = _parent._x;
_root.bombblast._y = _parent._y;
removeMovieClip(_parent);
}
_parent._y = _parent._y + dy;
dy = dy + 0.3;
if (_parent._y > 530) {
removeMovieClip(_parent);
}
}
Symbol 56 MovieClip [bombblast] Frame 9
removeMovieClip(this);
Instance of Symbol 58 MovieClip in Symbol 59 MovieClip [laser] Frame 1
onClipEvent (enterFrame) {
xMatrix = Math.floor((_parent._x - 50) / 25);
yMatrix = Math.floor((_parent._y + 50) / 25);
if ((((_root.playField[yMatrix][xMatrix] == 1) && (xMatrix > 0)) && (xMatrix < 11)) && (yMatrix < 21)) {
weapon = new Sound();
weapon.attachSound("laserhit");
weapon.start(0, 1);
_root.playField[yMatrix][xMatrix] = 0;
eval (("_root.singlebrick" + yMatrix) + xMatrix).removeMovieClip();
_root.attachMovie("brickmelt", ("brickmelt" + yMatrix) + xMatrix, ((yMatrix * 22) + xMatrix) + 1000);
eval (("_root.brickmelt" + yMatrix) + xMatrix)._y = ((yMatrix - 2) * 25) + 12.5;
eval (("_root.brickmelt" + yMatrix) + xMatrix)._x = ((xMatrix + 2) * 25) + 12.5;
removeMovieClip(_parent);
}
_parent._y = _parent._y + 5;
if (_parent._y > 530) {
removeMovieClip(_parent);
}
}
Symbol 62 MovieClip [scoretip] Frame 35
removeMovieClip(this);
Symbol 95 MovieClip Frame 17
stop();
Symbol 102 Button
on (release) {
_root.gotoAndPlay(20);
}
Symbol 105 Button
on (release) {
gotoAndStop (2);
}
Symbol 108 Button
on (release) {
gotoAndStop (3);
}
Symbol 111 Button
on (release) {
if (_root.musicON) {
_root.gameMusic.stop();
_root.musicON = false;
} else {
_root.gameMusic = new Sound();
_root.gameMusic.attachSound("splash.wav");
_root.gameMusic.start(0, 1000);
_root.musicON = true;
}
}
Symbol 114 Button
on (release) {
gotoAndStop (1);
}
Symbol 119 MovieClip Frame 1
stop();
Symbol 119 MovieClip Frame 2
stop();
Symbol 122 Button
on (release) {
if (_root.qualityHIGH) {
_quality = "LOW";
_root.qualityHIGH = false;
} else {
_quality = "HIGH";
_root.qualityHIGH = true;
}
}
Symbol 127 MovieClip Frame 1
stop();
Symbol 127 MovieClip Frame 2
stop();
Symbol 130 MovieClip Frame 1
stop();
Symbol 130 MovieClip Frame 2
stop();
Instance of Symbol 119 MovieClip in Symbol 130 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_root.musicON) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
Instance of Symbol 127 MovieClip in Symbol 130 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_root.qualityHIGH) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
Symbol 130 MovieClip Frame 3
stop();
Symbol 136 Button
on (release) {
getURL ("http://www.virtualtoy.nm.ru");
}
Symbol 138 Button
on (release) {
getURL ("http://www.newgrounds.com");
}
Symbol 173 MovieClip Frame 10
stop();
Symbol 173 MovieClip Frame 20
nextBack = (Math.floor(Math.random() * 8) * 20) + 1;
if (nextBack == (_currentframe - 19)) {
play();
} else {
gotoAndPlay(nextBack);
}
Symbol 173 MovieClip Frame 30
stop();
Symbol 173 MovieClip Frame 40
nextBack = (Math.floor(Math.random() * 8) * 20) + 1;
if (nextBack == (_currentframe - 19)) {
play();
} else {
gotoAndPlay(nextBack);
}
Symbol 173 MovieClip Frame 50
stop();
Symbol 173 MovieClip Frame 60
nextBack = (Math.floor(Math.random() * 8) * 20) + 1;
if (nextBack == (_currentframe - 19)) {
play();
} else {
gotoAndPlay(nextBack);
}
Symbol 173 MovieClip Frame 70
stop();
Symbol 173 MovieClip Frame 80
nextBack = (Math.floor(Math.random() * 8) * 20) + 1;
if (nextBack == (_currentframe - 19)) {
play();
} else {
gotoAndPlay(nextBack);
}
Symbol 173 MovieClip Frame 90
stop();
Symbol 173 MovieClip Frame 100
nextBack = (Math.floor(Math.random() * 8) * 20) + 1;
if (nextBack == (_currentframe - 19)) {
play();
} else {
gotoAndPlay(nextBack);
}
Symbol 173 MovieClip Frame 110
stop();
Symbol 173 MovieClip Frame 120
nextBack = (Math.floor(Math.random() * 8) * 20) + 1;
if (nextBack == (_currentframe - 19)) {
play();
} else {
gotoAndPlay(nextBack);
}
Symbol 173 MovieClip Frame 130
stop();
Symbol 173 MovieClip Frame 140
nextBack = (Math.floor(Math.random() * 8) * 20) + 1;
if (nextBack == (_currentframe - 19)) {
play();
} else {
gotoAndPlay(nextBack);
}
Symbol 173 MovieClip Frame 150
stop();
Symbol 173 MovieClip Frame 160
nextBack = (Math.floor(Math.random() * 8) * 20) + 1;
if (nextBack == (_currentframe - 19)) {
play();
} else {
gotoAndPlay(nextBack);
}
Symbol 246 MovieClip Frame 4
if (!rolling) {
gotoAndPlay (1);
}
Symbol 246 MovieClip Frame 10
if (rolling) {
gotoAndPlay (5);
}
Symbol 246 MovieClip Frame 18
if (!rolling) {
gotoAndPlay (11);
}
Symbol 246 MovieClip Frame 26
if (rolling) {
gotoAndPlay (19);
}
Symbol 246 MovieClip Frame 27
if (rolling) {
gotoAndPlay (43);
}
Symbol 246 MovieClip Frame 42
if (!rolling) {
gotoAndPlay (27);
}
Symbol 246 MovieClip Frame 58
if (rolling) {
gotoAndPlay (43);
}
Symbol 251 MovieClip Frame 18
removeMovieClip(this);
Symbol 252 MovieClip Frame 8
if (_parent.robotnikOn) {
rndNum = Math.floor(Math.random() * 1000);
duplicateMovieClip ("part", "part" + rndNum, rndNum);
eval ("part" + rndNum)._rotation = (Math.random() * 30) - 15;
eval ("part" + rndNum)._xscale = (Math.random() * 30) + 70;
eval ("part" + rndNum)._yscale = (Math.random() * 30) + 70;
eval ("part" + rndNum).gotoAndPlay(Math.floor(Math.random() * 6) + 1);
}
Symbol 265 MovieClip Frame 6
gotoAndPlay (1);
Instance of Symbol 256 MovieClip in Symbol 271 MovieClip Frame 1
onClipEvent (enterFrame) {
point = new object();
point.x = _x;
point.y = _y;
localToGlobal(point);
xMatrix = Math.floor((point.x - 50) / 25);
yMatrix = Math.floor((point.y + 50) / 25);
if (((((_root.playField[yMatrix][xMatrix] == 1) && (xMatrix > 0)) && (xMatrix < 11)) && (yMatrix < 21)) && (!_parent._parent._parent.robotnikBlasted)) {
brickbumped = new Sound();
brickbumped.attachSound("bomb blast sound");
brickbumped.start(0, 1);
_root.playField[yMatrix][xMatrix] = 0;
eval (("_root.singlebrick" + yMatrix) + xMatrix).removeMovieClip();
_root.attachMovie("brickblast", ("brickblast" + yMatrix) + xMatrix, ((yMatrix * 22) + xMatrix) + 1000);
eval (("_root.brickblast" + yMatrix) + xMatrix)._y = ((yMatrix - 2) * 25) + 12.5;
eval (("_root.brickblast" + yMatrix) + xMatrix)._x = ((xMatrix + 2) * 25) + 12.5;
}
}
Instance of Symbol 271 MovieClip in Symbol 272 MovieClip Frame 1
/* no clip actions */
Symbol 278 MovieClip Frame 1
stop();
Symbol 278 MovieClip Frame 2
stop();
Symbol 278 MovieClip Frame 3
stop();
Instance of Symbol 256 MovieClip in Symbol 278 MovieClip Frame 3
onClipEvent (enterFrame) {
point = new object();
point.x = _x;
point.y = _y;
localToGlobal(point);
xMatrix = Math.floor((point.x - 50) / 25);
yMatrix = Math.floor((point.y + 75) / 25);
if (((((_root.playField[yMatrix][xMatrix] == 1) && (xMatrix > 0)) && (xMatrix < 11)) && (yMatrix < 21)) && (!_parent.robotnikBlasted)) {
brickbumped = new Sound();
brickbumped.attachSound("bomb blast sound");
brickbumped.start(0, 1);
_root.playField[yMatrix][xMatrix] = 0;
eval (("_root.singlebrick" + yMatrix) + xMatrix).removeMovieClip();
_root.attachMovie("brickblast", ("brickblast" + yMatrix) + xMatrix, ((yMatrix * 22) + xMatrix) + 1000);
eval (("_root.brickblast" + yMatrix) + xMatrix)._y = ((yMatrix - 2) * 25) + 12.5;
eval (("_root.brickblast" + yMatrix) + xMatrix)._x = ((xMatrix + 2) * 25) + 12.5;
}
}
Symbol 278 MovieClip Frame 4
stop();
Instance of Symbol 256 MovieClip in Symbol 278 MovieClip Frame 4
onClipEvent (enterFrame) {
point = new object();
point.x = _x;
point.y = _y;
localToGlobal(point);
xMatrix = Math.floor((point.x - 50) / 25);
yMatrix = Math.floor((point.y + 50) / 25);
if (((((_root.playField[yMatrix][xMatrix] == 1) && (xMatrix > 0)) && (xMatrix < 11)) && (yMatrix < 21)) && (!_parent.robotnikBlasted)) {
brickbumped = new Sound();
brickbumped.attachSound("bomb blast sound");
brickbumped.start(0, 1);
_root.playField[yMatrix][xMatrix] = 0;
eval (("_root.singlebrick" + yMatrix) + xMatrix).removeMovieClip();
_root.attachMovie("brickblast", ("brickblast" + yMatrix) + xMatrix, ((yMatrix * 22) + xMatrix) + 1000);
eval (("_root.brickblast" + yMatrix) + xMatrix)._y = ((yMatrix - 2) * 25) + 12.5;
eval (("_root.brickblast" + yMatrix) + xMatrix)._x = ((xMatrix + 2) * 25) + 12.5;
}
}
Symbol 278 MovieClip Frame 5
stop();
Symbol 293 MovieClip Frame 1
stop();
Symbol 293 MovieClip Frame 51
stop();
Symbol 293 MovieClip Frame 101
stop();
Symbol 293 MovieClip Frame 151
stop();
Instance of Symbol 297 MovieClip in Symbol 310 MovieClip Frame 236
onClipEvent (load) {
d = -8;
dd = Math.random() + 0.5;
}
onClipEvent (enterFrame) {
_y = (_y + d);
_rotation = (_rotation + (d - 2));
d = d + dd;
}
Instance of Symbol 299 MovieClip in Symbol 310 MovieClip Frame 236
onClipEvent (load) {
d = -8;
dd = Math.random() + 0.5;
}
onClipEvent (enterFrame) {
_y = (_y + d);
_rotation = (_rotation + (d - 2));
d = d + dd;
}
Instance of Symbol 301 MovieClip in Symbol 310 MovieClip Frame 236
onClipEvent (load) {
d = -8;
dd = Math.random() + 0.5;
}
onClipEvent (enterFrame) {
_y = (_y + d);
_rotation = (_rotation + (d - 2));
d = d + dd;
}
Instance of Symbol 303 MovieClip in Symbol 310 MovieClip Frame 236
onClipEvent (load) {
d = -8;
dd = Math.random() + 0.5;
}
onClipEvent (enterFrame) {
_y = (_y + d);
_rotation = (_rotation + (d - 2));
d = d + dd;
}
Instance of Symbol 305 MovieClip in Symbol 310 MovieClip Frame 236
onClipEvent (load) {
d = -8;
dd = Math.random() + 0.5;
}
onClipEvent (enterFrame) {
_y = (_y + d);
_rotation = (_rotation + (d - 2));
d = d + dd;
}
Instance of Symbol 307 MovieClip in Symbol 310 MovieClip Frame 236
onClipEvent (load) {
d = -8;
dd = Math.random() + 0.5;
}
onClipEvent (enterFrame) {
_y = (_y + d);
_rotation = (_rotation + (d - 2));
d = d + dd;
}
Instance of Symbol 303 MovieClip in Symbol 310 MovieClip Frame 236
onClipEvent (load) {
d = -8;
dd = Math.random() + 0.5;
}
onClipEvent (enterFrame) {
_y = (_y + d);
_rotation = (_rotation + (d - 2));
d = d + dd;
}
Instance of Symbol 309 MovieClip in Symbol 310 MovieClip Frame 236
onClipEvent (load) {
d = -8;
dd = Math.random() + 0.5;
}
onClipEvent (enterFrame) {
_y = (_y + d);
_rotation = (_rotation + (d - 2));
d = d + dd;
}
Symbol 310 MovieClip Frame 306
_root.gotoAndPlay(18);
Symbol 323 Button
on (release) {
_root.gotoAndPlay(18);
}
Symbol 325 MovieClip Frame 314
stop();