Frame 1
stop();
Instance of Symbol 2 MovieClip "loaderbar" in Frame 1
onClipEvent (load) {
_xscale = 0;
}
Instance of Symbol 6 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) {
_root.gotoAndPlay("firstframe");
}
}
Frame 11
function fillLevelArray() {
level = new Array();
templev = new Array(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1);
level.push(templev);
templev = new Array(1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 1);
level.push(templev);
templev = new Array(1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 2, 2, 1, 1);
level.push(templev);
templev = new Array(1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 1);
level.push(templev);
templev = new Array(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1);
level.push(templev);
if (_root.gamelevel == 2) {
level = new Array();
templev = new Array(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1);
level.push(templev);
templev = new Array(1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1);
level.push(templev);
templev = new Array(1, 1, 0, 0, 0, 0, 13, 0, 0, 0, 0, 0, 0, 0, 1, 1);
level.push(templev);
templev = new Array(1, 1, 0, 0, 13, 0, 13, 0, 13, 0, 0, 0, 0, 0, 1, 1);
level.push(templev);
templev = new Array(1, 1, 0, 0, 0, 0, 13, 0, 0, 0, 0, 0, 0, 0, 1, 1);
level.push(templev);
templev = new Array(1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1);
level.push(templev);
templev = new Array(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1);
level.push(templev);
}
if (_root.gamelevel == 3) {
level = new Array();
templev = new Array(5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1);
level.push(templev);
templev = new Array(0, 0, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 0, 0);
level.push(templev);
templev = new Array(0, 0, 0, 0, 3, 3, 3, 3, 3, 3, 3, 3, 0, 0, 0, 0);
level.push(templev);
templev = new Array(0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0);
level.push(templev);
templev = new Array(0, 0, 0, 0, 3, 3, 3, 3, 3, 3, 3, 3, 0, 0, 0, 0);
level.push(templev);
templev = new Array(0, 0, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 4, 2, 0, 0);
level.push(templev);
templev = new Array(5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1);
level.push(templev);
}
if (_root.gamelevel == 4) {
level = new Array();
templev = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level.push(templev);
templev = new Array(1, 2, 1, 2, 1, 2, 0, 0, 0, 0, 1, 2, 1, 2, 1, 2);
level.push(templev);
templev = new Array(1, 2, 6, 0, 1, 2, 0, 0, 0, 0, 1, 2, 6, 0, 1, 2);
level.push(templev);
templev = new Array(1, 2, 1, 2, 1, 2, 0, 0, 0, 0, 1, 2, 1, 2, 1, 2);
level.push(templev);
templev = new Array(0, 0, 0, 0, 11, 2, 11, 2, 11, 2, 0, 0, 0, 0, 0, 0);
level.push(templev);
templev = new Array(0, 0, 0, 0, 11, 2, 16, 0, 11, 2, 0, 0, 0, 0, 0, 0);
level.push(templev);
templev = new Array(0, 0, 0, 0, 11, 2, 11, 2, 11, 2, 0, 0, 0, 0, 0, 0);
level.push(templev);
}
if (_root.gamelevel == 5) {
level = new Array();
templev = new Array(0, 0, 0, 0, 16, 1, 16, 1, 16, 1, 0, 0, 0, 0, 0, 0);
level.push(templev);
templev = new Array(0, 0, 16, 1, 0, 0, 0, 0, 16, 1, 16, 1, 0, 0, 0, 0);
level.push(templev);
templev = new Array(0, 0, 16, 1, 0, 0, 16, 1, 16, 1, 16, 1, 0, 0, 0, 0);
level.push(templev);
templev = new Array(0, 0, 16, 1, 0, 0, 16, 1, 16, 1, 16, 1, 0, 0, 0, 0);
level.push(templev);
templev = new Array(16, 1, 16, 1, 0, 0, 16, 1, 16, 1, 16, 1, 16, 1, 0, 0);
level.push(templev);
templev = new Array(16, 1, 16, 1, 16, 1, 16, 1, 16, 1, 16, 1, 16, 1, 0, 0);
level.push(templev);
templev = new Array(0, 0, 0, 0, 16, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level.push(templev);
templev = new Array(0, 0, 16, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level.push(templev);
}
if (_root.gamelevel == 6) {
level = new Array();
templev = new Array(0, 0, 0, 0, 0, 0, 14, 1, 0, 0, 0, 0, 0, 0, 0, 0);
level.push(templev);
templev = new Array(0, 0, 0, 0, 0, 0, 4, 1, 4, 1, 0, 0, 0, 0, 0, 0);
level.push(templev);
templev = new Array(0, 0, 0, 0, 14, 1, 14, 1, 14, 1, 0, 0, 0, 0, 0, 0);
level.push(templev);
templev = new Array(0, 0, 14, 1, 0, 0, 4, 1, 4, 1, 4, 1, 0, 0, 0, 0);
level.push(templev);
templev = new Array(0, 0, 4, 1, 4, 1, 14, 1, 14, 1, 14, 1, 0, 0, 0, 0);
level.push(templev);
templev = new Array(14, 1, 14, 1, 14, 1, 0, 0, 4, 1, 4, 1, 4, 1, 0, 0);
level.push(templev);
templev = new Array(4, 1, 4, 1, 4, 1, 4, 1, 14, 1, 14, 1, 14, 1, 0, 0);
level.push(templev);
templev = new Array(6, 3, 6, 3, 6, 3, 6, 3, 6, 3, 6, 3, 6, 3, 6, 3);
level.push(templev);
}
if (_root.gamelevel == 7) {
level = new Array();
templev = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level.push(templev);
templev = new Array(0, 0, 0, 0, 0, 0, 1, 3, 1, 3, 0, 0, 0, 0, 0, 0);
level.push(templev);
templev = new Array(0, 0, 0, 0, 1, 3, 1, 3, 1, 3, 1, 3, 0, 0, 0, 0);
level.push(templev);
templev = new Array(0, 0, 5, 1, 1, 3, 1, 3, 1, 3, 1, 3, 2, 2, 0, 0);
level.push(templev);
templev = new Array(0, 0, 5, 1, 5, 1, 1, 3, 1, 3, 2, 2, 2, 2, 0, 0);
level.push(templev);
templev = new Array(0, 0, 5, 1, 5, 1, 5, 1, 2, 2, 2, 2, 2, 2, 0, 0);
level.push(templev);
templev = new Array(0, 0, 5, 1, 5, 1, 5, 1, 2, 2, 2, 2, 2, 2, 0, 0);
level.push(templev);
templev = new Array(0, 0, 0, 0, 5, 1, 5, 1, 2, 2, 2, 2, 0, 0, 0, 0);
level.push(templev);
templev = new Array(0, 0, 0, 0, 0, 0, 5, 1, 2, 2, 0, 0, 0, 0, 0, 0);
level.push(templev);
}
if (_root.gamelevel == 8) {
level = new Array();
templev = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level.push(templev);
templev = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level.push(templev);
templev = new Array(0, 0, 1, 3, 2, 2, 2, 2, 2, 2, 2, 2, 1, 3, 0, 0);
level.push(templev);
templev = new Array(1, 0, 1, 3, 2, 2, 2, 2, 2, 2, 2, 2, 1, 3, 1, 0);
level.push(templev);
templev = new Array(1, 0, 1, 3, 6, 1, 6, 1, 6, 1, 6, 1, 1, 3, 1, 0);
level.push(templev);
templev = new Array(0, 0, 1, 3, 6, 1, 6, 1, 6, 1, 6, 1, 1, 3, 0, 0);
level.push(templev);
}
if (_root.gamelevel == 9) {
level = new Array();
templev = new Array(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1);
level.push(templev);
templev = new Array(1, 1, 6, 0, 6, 0, 6, 0, 6, 0, 6, 0, 6, 0, 1, 1);
level.push(templev);
templev = new Array(1, 1, 6, 0, 1, 1, 1, 1, 1, 1, 1, 1, 6, 0, 1, 1);
level.push(templev);
templev = new Array(1, 1, 6, 0, 1, 1, 6, 0, 6, 0, 1, 1, 6, 0, 1, 1);
level.push(templev);
templev = new Array(1, 1, 6, 0, 1, 1, 6, 0, 6, 0, 6, 0, 6, 0, 1, 1);
level.push(templev);
templev = new Array(1, 1, 6, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1);
level.push(templev);
}
if (_root.gamelevel == 10) {
level = new Array();
templev = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level.push(templev);
templev = new Array(0, 0, 6, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level.push(templev);
templev = new Array(6, 1, 0, 0, 0, 0, 0, 0, 6, 1, 6, 1, 6, 1, 0, 0);
level.push(templev);
templev = new Array(6, 1, 0, 0, 0, 0, 0, 0, 6, 1, 6, 1, 0, 0, 0, 0);
level.push(templev);
templev = new Array(6, 1, 0, 0, 0, 0, 0, 0, 6, 1, 0, 0, 6, 1, 0, 0);
level.push(templev);
templev = new Array(6, 1, 0, 0, 0, 0, 0, 0, 6, 1, 0, 0, 0, 0, 6, 1);
level.push(templev);
templev = new Array(6, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 1);
level.push(templev);
templev = new Array(0, 0, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 0, 0);
level.push(templev);
}
if (_root.gamelevel == 11) {
level = new Array();
templev = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level.push(templev);
templev = new Array(0, 0, 0, 0, 14, 3, 14, 3, 14, 3, 0, 0, 0, 0, 0, 0);
level.push(templev);
templev = new Array(0, 0, 0, 0, 4, 3, 6, 0, 6, 0, 4, 3, 0, 0, 0, 0);
level.push(templev);
templev = new Array(0, 0, 0, 0, 4, 3, 6, 0, 4, 3, 4, 3, 0, 0, 0, 0);
level.push(templev);
templev = new Array(0, 0, 0, 0, 4, 3, 4, 3, 4, 3, 4, 3, 0, 0, 0, 0);
level.push(templev);
templev = new Array(0, 0, 0, 0, 14, 3, 14, 3, 14, 3, 0, 0, 0, 0, 0, 0);
level.push(templev);
}
if (_root.gamelevel == 12) {
level = new Array();
templev = new Array(15, 0, 0, 0, 0, 0, 13, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level.push(templev);
templev = new Array(5, 1, 5, 1, 0, 0, 3, 1, 3, 1, 0, 0, 0, 0, 0, 0);
level.push(templev);
templev = new Array(15, 0, 0, 0, 1, 0, 13, 0, 0, 0, 4, 0, 0, 0, 0, 0);
level.push(templev);
templev = new Array(0, 0, 11, 1, 11, 1, 0, 0, 14, 1, 14, 1, 0, 0, 0, 0);
level.push(templev);
templev = new Array(0, 0, 0, 0, 1, 0, 12, 0, 0, 0, 4, 0, 16, 0, 0, 0);
level.push(templev);
templev = new Array(0, 0, 0, 0, 0, 0, 2, 1, 2, 1, 0, 0, 6, 1, 6, 1);
level.push(templev);
templev = new Array(0, 0, 0, 0, 0, 0, 12, 0, 0, 0, 0, 0, 16, 0, 0, 0);
level.push(templev);
}
if (_root.gamelevel == 13) {
level = new Array();
templev = new Array(2, 3, 2, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
level.push(templev);
templev = new Array(5, 2, 5, 2, 2, 3, 2, 3, 0, 0, 0, 0, 0, 0, 0, 0);
level.push(templev);
templev = new Array(6, 1, 6, 1, 5, 2, 5, 2, 2, 3, 2, 3, 0, 0, 0, 0);
level.push(templev);
templev = new Array(1, 3, 1, 3, 6, 1, 6, 1, 5, 2, 5, 2, 2, 3, 2, 3);
level.push(templev);
templev = new Array(3, 2, 3, 2, 1, 3, 1, 3, 6, 1, 6, 1, 5, 2, 5, 2);
level.push(templev);
templev = new Array(0, 0, 0, 0, 3, 2, 3, 2, 1, 3, 1, 3, 6, 1, 6, 1);
level.push(templev);
templev = new Array(0, 0, 0, 0, 0, 0, 0, 0, 3, 2, 3, 2, 1, 3, 1, 3);
level.push(templev);
templev = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 2, 3, 2);
level.push(templev);
}
if (_root.gamelevel == 14) {
level = new Array();
templev = new Array(0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0);
level.push(templev);
templev = new Array(0, 0, 1, 1, 1, 1, 4, 0, 4, 0, 1, 1, 1, 1, 0, 0);
level.push(templev);
templev = new Array(1, 1, 4, 2, 4, 2, 6, 0, 6, 0, 4, 2, 4, 2, 1, 1);
level.push(templev);
templev = new Array(4, 2, 6, 3, 6, 3, 3, 0, 3, 0, 6, 3, 6, 3, 4, 2);
level.push(templev);
templev = new Array(6, 3, 3, 3, 3, 3, 5, 0, 5, 0, 3, 3, 3, 3, 6, 3);
level.push(templev);
templev = new Array(3, 3, 5, 2, 5, 2, 0, 0, 0, 0, 5, 2, 5, 2, 3, 3);
level.push(templev);
templev = new Array(5, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 2);
level.push(templev);
}
if (_root.gamelevel == 15) {
level = new Array();
templev = new Array(1, 1, 6, 3, 6, 3, 6, 3, 6, 3, 6, 3, 1, 1, 1, 1);
level.push(templev);
templev = new Array(1, 1, 6, 3, 1, 1, 1, 1, 6, 3, 1, 0, 6, 3, 1, 1);
level.push(templev);
templev = new Array(1, 1, 6, 3, 6, 3, 1, 1, 6, 3, 6, 3, 1, 1, 1, 1);
level.push(templev);
templev = new Array(1, 1, 6, 3, 1, 1, 1, 1, 6, 3, 1, 0, 6, 3, 1, 1);
level.push(templev);
templev = new Array(1, 1, 6, 3, 1, 1, 1, 1, 6, 3, 6, 3, 1, 1, 1, 1);
level.push(templev);
}
delete templev;
}
highquality = true;
hidemouse = true;
usebackground = true;
musicplay = true;
sinus = false;
Frame 13
Mouse.show();
stop();
Instance of Symbol 61 MovieClip in Frame 13
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.sinus) {
_visible = true;
}
}
Instance of Symbol 80 MovieClip in Frame 13
on (rollOver) {
_root.pointerpos = _y;
}
on (press) {
_root.gotoAndPlay("help");
}
Instance of Symbol 82 MovieClip in Frame 13
on (rollOver) {
_root.pointerpos = _y;
}
on (press) {
_root.gotoAndPlay("settings");
}
Instance of Symbol 84 MovieClip in Frame 13
onClipEvent (load) {
_root.pointerpos = 310;
}
onClipEvent (enterFrame) {
dist = _root.pointerpos - _y;
speed = dist / 3;
if (Math.abs(dist) > Math.abs(speed)) {
_y = (_y + speed);
}
}
Instance of Symbol 86 MovieClip "startgame" in Frame 13
on (press) {
_root.lives = 3;
if (_root.sinus) {
_root.lives = (_root.lives * 1666) + 2;
}
_root.musictrack = new Sound("_root");
_root.musictrack.attachSound("music");
if (_root.musicPlay) {
_root.musictrack.start(0, 10000);
}
_root.gamelevel = 1;
_root.score = 0;
_root.gotoAndPlay("startgame");
}
on (rollOver) {
_root.pointerpos = _y;
}
Instance of Symbol 89 MovieClip in Frame 13
onClipEvent (enterFrame) {
_x = (_x - 1);
if (_x == 0) {
_x = 640;
}
}
Frame 14
stop();
Instance of Symbol 92 MovieClip "quality" in Frame 14
onClipEvent (enterFrame) {
if (_root.highquality) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
Instance of Symbol 98 MovieClip in Frame 14
onClipEvent (enterFrame) {
if (_root.hidemouse) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
Instance of Symbol 98 MovieClip in Frame 14
onClipEvent (enterFrame) {
if (_root.usebackground) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
Instance of Symbol 98 MovieClip in Frame 14
onClipEvent (enterFrame) {
if (_root.musicPlay) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
Frame 15
stop();
Frame 16
Mouse.show();
i = 0;
while (i < level.length) {
j = 0;
while (j < 8) {
removeMovieClip(eval (("_root.brick" + i) + j));
j++;
}
i++;
}
stop();
Frame 17
totalbricks = 0;
_root.fillLevelArray();
i = 0;
while (i < level.length) {
j = 0;
while (j < 16) {
jindex = Math.floor(j / 2);
if (level[i][jindex * 2] != 0) {
if (level[i][(jindex * 2) + 1] != 0) {
_root.attachMovie("brick", ("brick" + i) + jindex, (i * 8) + jindex);
if (level[i][jindex * 2] > 10) {
eval (("_root.brick" + i) + jindex)._x = 96.25 + (74.9 * jindex);
eval (("_root.brick" + i) + jindex).colorframe = level[i][jindex * 2] - 10;
} else {
eval (("_root.brick" + i) + jindex)._x = 58.8 + (74.9 * jindex);
eval (("_root.brick" + i) + jindex).colorframe = level[i][jindex * 2];
}
eval (("_root.brick" + i) + jindex).hitsdestroy = level[i][(jindex * 2) + 1];
eval (("_root.brick" + i) + jindex)._y = 44 + (40 * i);
} else {
_root.attachMovie("brick undestruct", ("brick" + i) + jindex, (i * 8) + jindex);
if (level[i][jindex * 2] > 10) {
eval (("_root.brick" + i) + jindex)._x = 96.25 + (74.9 * jindex);
eval (("_root.brick" + i) + jindex).colorframe = level[i][jindex * 2] - 10;
} else {
eval (("_root.brick" + i) + jindex)._x = 58.8 + (74.9 * jindex);
eval (("_root.brick" + i) + jindex).colorframe = level[i][jindex * 2];
}
eval (("_root.brick" + i) + jindex)._y = 44 + (40 * i);
}
}
j++;
}
i++;
}
stop();
Instance of Symbol 137 MovieClip "ball" in Frame 17
onClipEvent (load) {
speed = 6;
hold = true;
appear = true;
this._alpha = 0;
_root.glass = new Sound(_root.ball);
_root.glass.attachSound("bang");
_root.soundFX = new Sound(_root.bat);
_root.soundFX.attachSound("ballapp");
_root.soundFX.setPan((_root.bat._x - 320) / 3.6);
_root.soundFX.start();
}
onClipEvent (enterFrame) {
if (appear) {
this._alpha = this._alpha + 5;
if (this._alpha > 100) {
appear = false;
}
}
if (!hold) {
speed = speed + 0.001;
_x = (_x + (xdisp * speed));
_y = (_y + (ydisp * speed));
if (this.hitTest(_root.bat)) {
if (!_root.glueBall) {
_root.soundFX.attachSound("bump");
_root.soundFX.setPan((_x - 320) / 3.6);
_root.soundFX.start();
xparam = Math.abs(_root.bat._x - this._x);
if (xdisp > 0) {
sign = 1;
} else {
sign = -1;
}
xdisp = sign * 1.2;
ydisp = -0.75;
if (xparam < 26) {
xdisp = sign;
ydisp = -1;
}
if (xparam < 8) {
xdisp = sign * 0.75;
ydisp = -1.2;
}
_root.bat._y = 470;
} else {
hold = true;
}
}
if (_x < 20) {
_x = 20;
xdisp = -xdisp;
}
if (_x > 620) {
_x = 620;
xdisp = -xdisp;
}
if (_y < 20) {
_y = 20;
ydisp = -ydisp;
}
if (_y > 500) {
_root.bat.gotoAndStop(1);
speed = 6;
_root.bat.speed = 10;
_root.batcanshoot = false;
_root.glueBall = false;
_root.lives = _root.lives - 1;
if (_root.lives == 0) {
_root.gotoAndPlay("gameover");
}
_root.soundFX.attachSound("ballapp");
_root.soundFX.setPan((_root.bat._x - 320) / 3.6);
_root.soundFX.start();
this._alpha = 0;
hold = true;
appear = true;
}
} else {
_y = 440;
_x = _root.bat._x;
}
}
onClipEvent (mouseDown) {
if (hold && (!appear)) {
if (_root._xmouse > _root.bat._x) {
xdisp = 1;
} else {
xdisp = -1;
}
ydisp = -1;
hold = false;
}
}
Instance of Symbol 142 MovieClip "bat" in Frame 17
onClipEvent (load) {
_root.prizefall = false;
speed = 10;
_root.shot = false;
_root.batcanshoot = false;
_root.glueBall = false;
if (_root.hidemouse) {
Mouse.hide();
}
}
onClipEvent (mouseDown) {
if ((!_root.shot) && (_root.batcanshoot)) {
_root.fireball._x = this._x;
_root.fireball._y = 450;
_root.shot = true;
}
}
onClipEvent (enterFrame) {
if (_root.totalbricks <= 0) {
_root.endLevBatPos = this._x;
_root.gotoAndPlay("levelend");
}
ydist = _y - 460;
if (_y > 460) {
ydist = ydist * 0.2;
}
_y = (_y - ydist);
mousepos = _root._xmouse;
if (mousepos < 58) {
mousepos = 58;
}
if (mousepos > 582) {
mousepos = 582;
}
dist = _x - mousepos;
xdisp = dist / speed;
if (Math.abs(dist) > Math.abs(xdisp)) {
_x = (_x - xdisp);
if (_x < 58) {
_x = 58;
}
if (_x > 582) {
_x = 582;
}
}
}
Instance of Symbol 151 MovieClip "fireball" in Frame 17
onClipEvent (enterFrame) {
if (_root.shot) {
this._xscale = this._xscale - 1.2;
this._yscale = this._yscale + 1.2;
this._y = this._y - 10;
}
if (this._y < -35) {
_root.shot = false;
this._xscale = 100;
this._yscale = 100;
}
}
Instance of Symbol 171 MovieClip in Frame 17
onClipEvent (load) {
if (_root.usebackground) {
_root.backgroundFrame = 2 + Math.floor(Math.random() * 8);
gotoAndStop(_root.backgroundFrame);
}
}
Frame 18
score = 0;
gotoAndStop (17);
Frame 19
removeMovieClip("_root.prize");
stop();
Instance of Symbol 174 MovieClip in Frame 19
onClipEvent (load) {
this._x = _root.endLevBatPos;
this.swapDepths(100);
}
Instance of Symbol 171 MovieClip in Frame 19
onClipEvent (load) {
if (_root.usebackground) {
gotoAndStop(_root.backgroundFrame);
}
}
Frame 20
gotoAndStop (17);
Frame 21
Mouse.show();
stopAllSounds();
snd = new Sound();
snd.attachSound("applause2.mp3");
snd.start(0, 1);
removeMovieClip("_root.prize");
i = 0;
while (i < level.length) {
j = 0;
while (j < 8) {
removeMovieClip(eval (("_root.brick" + i) + j));
j++;
}
i++;
}
stop();
Instance of Symbol 89 MovieClip in Frame 21
onClipEvent (enterFrame) {
_x = (_x - 1);
if (_x == 0) {
_x = 640;
}
}
Frame 22
Mouse.show();
stopAllSounds();
snd = new Sound();
snd.attachSound("GLASS_01.wav");
snd.start(0, 1);
removeMovieClip("_root.prize");
i = 0;
while (i < level.length) {
j = 0;
while (j < 8) {
removeMovieClip(eval (("_root.brick" + i) + j));
j++;
}
i++;
}
stop();
Symbol 28 MovieClip [prizeclip] Frame 1
stop();
Instance of Symbol 18 MovieClip in Symbol 28 MovieClip [prizeclip] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.bat) && (_parent._y < 487)) {
if (_parent._currentframe == 1) {
_root.score = _root.score + 45;
}
if (_parent._currentframe == 2) {
_root.lives = _root.lives + 1;
}
if (_parent._currentframe == 3) {
_root.endLevBatPos = _root.bat._x;
_root.gotoAndPlay("levelend");
}
if (_parent._currentframe == 4) {
_root.ball.speed = _root.ball.speed + 4;
}
if (_parent._currentframe == 5) {
_root.ball.speed = 4;
}
if (_parent._currentframe == 6) {
_root.bat.speed = 5;
}
if (_parent._currentframe == 7) {
_root.bat.speed = 25;
}
if (_parent._currentframe == 8) {
_root.bat.gotoAndStop(2);
}
if (_parent._currentframe == 9) {
_root.batcanshoot = true;
}
if (_parent._currentframe == 10) {
_root.glueBall = true;
}
_root.prizefall = false;
removeMovieClip("_root.prize");
}
_rotation = (_rotation - 3);
if (_root.prizefall) {
_parent._y = _parent._y + 5;
}
if (_parent._y > 520) {
_root.prizefall = false;
removeMovieClip("_root.prize");
}
}
Symbol 28 MovieClip [prizeclip] Frame 2
stop();
Symbol 28 MovieClip [prizeclip] Frame 3
stop();
Symbol 28 MovieClip [prizeclip] Frame 4
stop();
Symbol 28 MovieClip [prizeclip] Frame 5
stop();
Symbol 28 MovieClip [prizeclip] Frame 6
stop();
Symbol 28 MovieClip [prizeclip] Frame 7
stop();
Symbol 28 MovieClip [prizeclip] Frame 8
stop();
Symbol 28 MovieClip [prizeclip] Frame 9
stop();
Symbol 28 MovieClip [prizeclip] Frame 10
stop();
Symbol 57 MovieClip Frame 1
bangcolor = 12582912 /* 0xC00000 */;
stop();
Symbol 57 MovieClip Frame 2
bangcolor = 4002;
stop();
Symbol 57 MovieClip Frame 3
bangcolor = 2805523 /* 0x2ACF13 */;
stop();
Symbol 57 MovieClip Frame 4
bangcolor = 13987328 /* 0xD56E00 */;
stop();
Symbol 57 MovieClip Frame 5
bangcolor = 8535235 /* 0x823CC3 */;
stop();
Symbol 57 MovieClip Frame 6
bangcolor = 14080256 /* 0xD6D900 */;
stop();
Symbol 57 MovieClip Frame 7
myColor = new Color(this);
myColor.setRGB(bangcolor);
Symbol 57 MovieClip Frame 19
_root.totalbricks = _root.totalbricks - 1;
removeMovieClip(_parent);
Instance of Symbol 57 MovieClip in Symbol 58 MovieClip [brick undestruct] Frame 1
onClipEvent (load) {
gotoAndStop(_parent.colorframe);
xorigin = _x;
yorigin = _y;
}
onClipEvent (enterFrame) {
ydist = _y - yorigin;
xdist = _x - xorigin;
if (Math.abs(ydist) > 0.1) {
ydist = ydist * 0.2;
_y = (_y - ydist);
}
if (Math.abs(xdist) > 0.1) {
xdist = xdist * 0.2;
_x = (_x - xdist);
}
if (this.hitTest(_root.fireball)) {
_root.soundFX.attachSound("kick");
_root.soundFX.setPan((_parent._x - 320) / 3.6);
_root.soundFX.start();
_root.fireball._y = -40;
_y = (_y - 10);
}
if (this.hitTest(_root.ball)) {
bounds = _parent.getBounds(_root);
_root.soundFX.attachSound("kick");
_root.soundFX.setPan((_parent._x - 320) / 3.6);
_root.soundFX.start();
if ((_root.ball._x > bounds.xMin) && (_root.ball._x < bounds.xMax)) {
_root.ball.ydisp = -_root.ball.ydisp;
_y = (_y - ((_root.ball.ydisp * _root.ball.speed) * 2));
}
if ((_root.ball._y > bounds.yMin) && (_root.ball._y < bounds.yMax)) {
_root.ball.xdisp = -_root.ball.xdisp;
_x = (_x - ((_root.ball.xdisp * _root.ball.speed) * 2));
}
}
}
Instance of Symbol 57 MovieClip in Symbol 59 MovieClip [brick] Frame 1
onClipEvent (load) {
function prizeAttach() {
if ((Math.random() < 0.7) && (!_root.prizefall)) {
_root.prizefall = false;
_root.attachMovie("prizeclip", "prize", 100);
_root.prize._y = _parent._y;
_root.prize._x = _parent._x;
_root.prizefall = true;
_root.prize.gotoAndStop(1 + Math.floor(Math.random() * 10));
}
}
gotoAndStop(_parent.colorframe);
hitted = false;
_root.totalbricks = _root.totalbricks + 1;
}
onClipEvent (enterFrame) {
if (_parent.hitsdestroy <= 1) {
if (this.hitTest(_root.fireball) && (!hitted)) {
prizeAttach();
_root.score = _root.score + 5;
_root.glass.setPan((_parent._x - 320) / 3.6);
_root.glass.start();
hitted = true;
_root.fireball._y = -40;
gotoAndPlay (7);
}
if (this.hitTest(_root.ball) && (!hitted)) {
prizeAttach();
_root.score = _root.score + 5;
hitted = true;
_root.glass.setPan((_parent._x - 320) / 3.6);
_root.glass.start();
bounds = _parent.getBounds(_root);
if ((_root.ball._x > bounds.xMin) && (_root.ball._x < bounds.xMax)) {
_root.ball.ydisp = -_root.ball.ydisp;
}
if ((_root.ball._y > bounds.yMin) && (_root.ball._y < bounds.yMax)) {
_root.ball.xdisp = -_root.ball.xdisp;
}
gotoAndPlay (7);
}
} else {
if (this.hitTest(_root.ball)) {
_root.soundFX.attachSound("kick");
_root.soundFX.setPan((_parent._x - 320) / 3.6);
_root.soundFX.start();
if (_currentframe == 6) {
gotoAndStop (1);
} else {
nextFrame();
}
_parent.hitsdestroy = _parent.hitsdestroy - 1;
bounds = _parent.getBounds(_root);
if ((_root.ball._x > bounds.xMin) && (_root.ball._x < bounds.xMax)) {
_root.ball.ydisp = -_root.ball.ydisp;
}
if ((_root.ball._y > bounds.yMin) && (_root.ball._y < bounds.yMax)) {
_root.ball.xdisp = -_root.ball.xdisp;
}
}
if (this.hitTest(_root.fireball)) {
_root.soundFX.attachSound("kick");
_root.soundFX.setPan((_parent._x - 320) / 3.6);
_root.soundFX.start();
if (_currentframe == 6) {
gotoAndStop (1);
} else {
nextFrame();
}
_parent.hitsdestroy = _parent.hitsdestroy - 1;
_root.fireball._y = -40;
}
}
}
Symbol 67 Button
on (press) {
getURL ("mailto:virtualtoy@nm.ru");
}
Symbol 74 Button
on (press) {
_root.sinus = true;
}
Symbol 77 MovieClip Frame 46
stop();
Symbol 92 MovieClip Frame 1
stop();
Symbol 92 MovieClip Frame 2
stop();
Symbol 95 Button
on (release) {
if (_root.highquality) {
_root.highquality = false;
_quality = "LOW";
} else {
_root.highquality = true;
_quality = "HIGH";
}
}
Symbol 98 MovieClip Frame 1
stop();
Symbol 98 MovieClip Frame 2
stop();
Symbol 101 Button
on (release) {
if (_root.hidemouse) {
_root.hidemouse = false;
} else {
_root.hidemouse = true;
}
}
Symbol 104 Button
on (release) {
if (_root.usebackground) {
_root.usebackground = false;
} else {
_root.usebackground = true;
}
}
Symbol 107 Button
on (release) {
if (_root.musicPlay) {
_root.musicPlay = false;
} else {
_root.musicPlay = true;
}
}
Symbol 110 Button
on (press) {
_root.gotoAndStop("mainmenu");
}
Symbol 134 MovieClip Frame 52
_root.gotoAndPlay(_root._currentframe + 1);
Symbol 142 MovieClip Frame 1
stop();
Symbol 142 MovieClip Frame 2
stop();
Symbol 171 MovieClip Frame 1
stop();
Symbol 174 MovieClip Frame 73
_root.gamelevel = _root.gamelevel + 1;
if (_root.gamelevel == 16) {
_root.gotoAndPlay("gamefinished");
} else {
_root.gotoAndPlay("startgame");
}
removeMovieClip(this);
stop();