Frame 1
function count() {
timeCount++;
}
function countD() {
timeLeft--;
}
setInterval(count, 1000);
setInterval(countD, 1000);
restartSingel = false;
restartMulti = false;
Frame 3
gotoAndPlay (5);
Frame 4
getURL ("http://www.mousebreaker.com", "_self");
Frame 5
disable_check = true;
myURL = _url;
okDomain = "www.mousebreakergames.co.uk";
okDomain1 = "www.mousebreaker";
if (((myURL.indexOf(okDomain) != -1) or (myURL.indexOf(okDomain1) != -1)) or disable_check) {
play();
} else {
gotoAndStop (4);
}
Frame 14
stop();
Instance of Symbol 43 MovieClip in Frame 14
onClipEvent (enterFrame) {
if (_root.restartSingel == true) {
_root.gotoAndStop("singel");
}
if (_root.restartMulti == true) {
_root.gotoAndStop("multi");
}
}
Frame 15
stop();
quit = false;
mov = true;
score = 0;
collected = 0;
powerHit = false;
powerUp = false;
gameO = false;
newDir = 0;
speed = 5;
pTime = 2;
timeCount = 0;
name = "Insert Name";
pUp = "none";
restartSingel = false;
bulletTime = false;
superFast = false;
invinsible = true;
drunken = false;
Instance of Symbol 60 MovieClip "powerUpMC" in Frame 15
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
_root.powerUp = true;
this.play();
power = random(3) + 1;
_root.score = _root.score + 10;
}
if ((power == 1) && (_root.powerUp == true)) {
_root.time.play();
_root.pUp = "Bulletime";
power = 1;
_root.bulletTime = true;
_root.superFast == false;
_root.superFast = false;
_root.invinsible = false;
_root.invin._visible = false;
_root.drunken == false;
_root.invinv._x = 4000;
}
if ((power == 2) && (_root.powerUp == true)) {
_root.time.play();
_root.pUp = "Speedy";
power = 2;
_root.invinsible = false;
_root.superFast = true;
_root.bulletTime = false;
_root.invin._visible = false;
_root.drunken == false;
_root.invinv._x = 4000;
}
if ((power == 3) && (_root.powerUp == true)) {
_root.time.play();
_root.pUp = "Invincible";
power = 3;
_root.invinsible = true;
_root.bulletTime = false;
_root.superFast = false;
_root.drunken == false;
}
if (_root.powerUp == false) {
_root.pUp = "None";
_root.drunken == false;
_root.invinsible = false;
_root.bulletTime = false;
_root.superFast = false;
_root.invinv._x = 4000;
}
trace(power);
}
Instance of Symbol 99 MovieClip "enemy" in Frame 15
onClipEvent (load) {
ud = random(2) + 2;
hit = 20;
bounceR = false;
bounce = false;
bounceL = false;
eS = random(5) + 1;
eS2 = eS;
}
onClipEvent (enterFrame) {
xid = _x - _root.player._x;
yid = _y - _root.player._y;
distance = Math.sqrt((xid * xid) + (yid * yid));
if (((distance <= ((_width / 2) + (_root.player._width / 2))) && (hit <= 0)) && (_root.invin._visible == false)) {
_root.player.gotoAndStop(2);
}
}
onClipEvent (enterFrame) {
if ((ud == 3) && (bounce == false)) {
this._x = this._x + eS;
}
if ((ud == 3) && (this.hitTest(_root.edge1))) {
bounce = true;
bounceR = true;
bounceL = false;
}
if ((ud == 3) && (bounceR == true)) {
this._x = this._x - eS;
}
if (((ud == 3) && (bounceR == true)) && (this.hitTest(_root.edge2))) {
bounceL = true;
bounceR = false;
}
if ((ud == 3) && (bounceL == true)) {
this._x = this._x + eS;
}
}
onClipEvent (load) {
bounceD = true;
bounceA = true;
bounceU = false;
}
onClipEvent (enterFrame) {
if ((ud == 2) && (bounceA == false)) {
this._y = this._y + eS;
}
if ((ud == 2) && (this.hitTest(_root.edge3))) {
bounceA = true;
bounceD = true;
bounceU = false;
}
if ((ud == 2) && (bounceD == true)) {
this._y = this._y + eS;
}
if (((ud == 2) && (bounceD == true)) && (this.hitTest(_root.upEdge))) {
bounceU = true;
bounceD = false;
}
if ((ud == 2) && (bounceU == true)) {
this._y = this._y - eS;
}
}
onClipEvent (enterFrame) {
if (_root.gameO == true) {
eS2 = 0;
eS = 0;
}
if ((_root.bulletTime == true) && (_root.powerUp == true)) {
eS = 0.3;
}
if ((_root.superFast == true) && (_root.powerUp == true)) {
es = 10;
}
if (_root.powerUp == false) {
es = eS2;
_root.superFast = false;
_root.bulletTime = false;
}
if (this.hitTest(_root.invin) && (_root.powerUp == true)) {
this.gotoAndStop(2);
es = 0;
hit = 20;
}
}
onClipEvent (enterFrame) {
if (hit <= 0) {
hit = 0;
}
if (_root.quit == true) {
this.removeMovieClip();
}
hit--;
}
Instance of Symbol 68 MovieClip in Frame 15
onClipEvent (load) {
_root.en = 0;
size = 20;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
this.play();
_root.score = _root.score + size;
_root.collected = _root.collected + 1;
this._x = random(400) + 170;
this._y = random(440) + 30;
_root.en++;
_root.enemy.duplicateMovieClip("enemy" + _root.en, _root.en);
_root["enemy" + _root.en]._x = random(400) + 170;
_root["enemy" + _root.en]._y = random(440) + 30;
}
if (_root.en >= 50) {
_quality = "MEDIUM";
}
if (_root.en >= 100) {
_quality = "LOW";
}
}
Instance of Symbol 81 MovieClip "player" in Frame 15
onClipEvent (enterFrame) {
if ((_root.mov == true) && (Key.isDown(38))) {
this._y = this._y - _root.speed;
}
if ((_root.mov == true) && (Key.isDown(40))) {
this._y = this._y + _root.speed;
}
if ((_root.mov == true) && (Key.isDown(37))) {
this._x = this._x - _root.speed;
}
if ((_root.mov == true) && (Key.isDown(39))) {
this._x = this._x + _root.speed;
}
if (this.hitTest(_root.edge1)) {
this._x = this._x - _root.speed;
}
if (this.hitTest(_root.edge2)) {
this._x = this._x + _root.speed;
}
if (this.hitTest(_root.upEdge)) {
this._y = this._y - _root.speed;
}
if (this.hitTest(_root.edge3)) {
this._y = this._y + _root.speed;
}
}
onClipEvent (enterFrame) {
if (_root.powerUp == false) {
_root.enemyS = 2;
_root.speed = 5;
}
}
Instance of Symbol 81 MovieClip "invin" in Frame 15
onClipEvent (enterFrame) {
if ((_root.powerUpMC.power == 3) && (_root.powerUp == true)) {
this._visible = true;
_x = _root.player._x;
_y = _root.player._y;
} else {
this._visible = false;
_x = 5000;
_y = 59999;
}
}
Instance of Symbol 115 MovieClip in Frame 15
onClipEvent (enterFrame) {
if ((_root.pTime <= 0) && (pHit == false)) {
_root.powerUpMC.gotoAndStop(1);
_root.powerUpMC._x = random(400) + 170;
_root.powerUpMC._y = random(400) + 30;
pHit = true;
}
if (_root.pTime == 1) {
pHit = false;
}
_root.pTime--;
}
Instance of Symbol 137 MovieClip "menu" in Frame 15
onClipEvent (enterFrame) {
this.swapDepths(10000);
}
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (_root.gameO == true) {
_root.speed = 0;
this._visible = true;
}
if (_root.quit == true) {
this.removeMovieClip();
}
}
Frame 16
stop();
randSpeed = 5;
quit = false;
mov = true;
score = 0;
collected = 0;
powerHit = false;
powerUp = false;
gameO = false;
newDir = 0;
speed = 5;
pTime = 2;
timeCount = 0;
name = "insert name";
pUp = "none";
bulletTime = false;
superFast = false;
invinsible = true;
drunken = false;
Instance of Symbol 88 MovieClip "edge3" in Frame 16
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
_root.player._y = _root.player._y + _root.speed;
}
}
Instance of Symbol 99 MovieClip "enemy" in Frame 16
onClipEvent (load) {
ud = random(2) + 2;
hit = 20;
bounceR = false;
bounce = false;
bounceL = false;
eS = random(_root.randSpeed) + 1;
eS2 = eS;
}
onClipEvent (enterFrame) {
xid = _x - _root.player._x;
yid = _y - _root.player._y;
distance = Math.sqrt((xid * xid) + (yid * yid));
if (((distance <= ((_width / 2) + (_root.player._width / 2))) && (hit <= 0)) && (_root.invin._visible == false)) {
this.gotoAndStop(2);
_root.menu._visible = true;
}
}
onClipEvent (enterFrame) {
if ((ud == 3) && (bounce == false)) {
this._x = this._x + eS;
}
if ((ud == 3) && (this.hitTest(_root.edge1))) {
bounce = true;
bounceR = true;
bounceL = false;
}
if ((ud == 3) && (bounceR == true)) {
this._x = this._x - eS;
}
if (((ud == 3) && (bounceR == true)) && (this.hitTest(_root.edge2))) {
bounceL = true;
bounceR = false;
}
if ((ud == 3) && (bounceL == true)) {
this._x = this._x + eS;
}
}
onClipEvent (load) {
bounceD = true;
bounceA = true;
bounceU = false;
}
onClipEvent (enterFrame) {
if ((ud == 2) && (bounceA == false)) {
this._y = this._y + eS;
}
if ((ud == 2) && (this.hitTest(_root.edge3))) {
bounceA = true;
bounceD = true;
bounceU = false;
}
if ((ud == 2) && (bounceD == true)) {
this._y = this._y + eS;
}
if (((ud == 2) && (bounceD == true)) && (this.hitTest(_root.upEdge))) {
bounceU = true;
bounceD = false;
}
if ((ud == 2) && (bounceU == true)) {
this._y = this._y - eS;
}
}
onClipEvent (enterFrame) {
if (_root.gameO == true) {
eS2 = 0;
eS = 0;
}
if ((_root.bulletTime == true) && (_root.powerUp == true)) {
eS = 0.3;
}
if ((_root.superFast == true) && (_root.powerUp == true)) {
es = 10;
}
if (_root.powerUp == false) {
es = eS2;
_root.superFast = false;
_root.bulletTime = false;
}
if (this.hitTest(_root.invin) && (_root.powerUp == true)) {
this.gotoAndStop(2);
es = 0;
hit = 20;
}
}
onClipEvent (enterFrame) {
if (hit <= 0) {
hit = 0;
}
if (_root.quit == true) {
this.removeMovieClip();
}
hit--;
}
Instance of Symbol 68 MovieClip in Frame 16
onClipEvent (load) {
_root.en = 0;
size = 20;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
this.play();
_root.score = _root.score + size;
_root.collected = _root.collected + 1;
this._x = random(400) + 170;
this._y = random(440) + 30;
_root.en++;
_root.enemy.duplicateMovieClip("enemy" + _root.en, _root.en);
_root["enemy" + _root.en]._x = random(400) + 170;
_root["enemy" + _root.en]._y = random(440) + 30;
}
if (_root.en >= 50) {
_quality = "MEDIUM";
}
if (_root.en >= 100) {
_quality = "LOW";
}
}
Instance of Symbol 81 MovieClip "player" in Frame 16
onClipEvent (enterFrame) {
if ((_root.mov == true) && (Key.isDown(38))) {
_y = (_y - _root.speed);
}
if ((_root.mov == true) && (Key.isDown(40))) {
_y = (_y + _root.speed);
}
if ((_root.mov == true) && (Key.isDown(37))) {
_x = (_x - _root.speed);
}
if ((_root.mov == true) && (Key.isDown(39))) {
_x = (_x + _root.speed);
}
trace(_x);
}
onClipEvent (enterFrame) {
if (_x <= 133) {
_x = 133;
}
if (_x >= 563.54) {
_x = 563.54;
}
if (_y >= 460.6) {
_y = 460.6;
}
if (_y <= 38.6) {
_y = 38.6;
}
}
Instance of Symbol 81 MovieClip "invin" in Frame 16
onClipEvent (enterFrame) {
if ((_root.YNbox._currentframe == 2) && (_root.powerUp == true)) {
this._visible = true;
_x = _root.player._x;
_y = _root.player._y;
} else {
this._visible = false;
_x = 5000;
_y = 59999;
}
}
Instance of Symbol 115 MovieClip in Frame 16
onClipEvent (enterFrame) {
if ((_root.pTime <= 0) && (pHit == false)) {
_root.powerUpMC.gotoAndStop(1);
_root.powerUpMC._x = random(400) + 170;
_root.powerUpMC._y = random(400) + 30;
pHit = true;
}
if (_root.pTime == 1) {
pHit = false;
}
_root.pTime--;
}
Instance of Symbol 144 MovieClip "menu" in Frame 16
onClipEvent (enterFrame) {
this.swapDepths(10000);
}
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (_root.gameO == true) {
_root.speed = 0;
this._visible = true;
}
if (_root.quit == true) {
this.removeMovieClip();
}
}
Frame 17
stop();
Frame 21
stop();
Instance of Symbol 197 MovieClip "xyz" in Frame 21
onClipEvent (load) {
score = _level0.score;
name = _level0.name;
this.loadVariables("highscores_ball.php?" + int(Math.random() * 100000), "POST");
}
Symbol 7 MovieClip Frame 1
doneLoading = 0;
stop();
Instance of Symbol 3 MovieClip "bkgd" in Symbol 7 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.doneLoading == 0) {
total = _parent._parent.getBytesTotal();
isloaded = _parent._parent.getBytesLoaded();
p = 100 * (isLoaded / total);
_parent.bytes = ((int(isloaded / 1000) add " KB of ") add int(total / 1000)) add " KB";
_parent.percent = int(p) add "% LOADED";
_parent.bar._xscale = p;
trace("....." + Number(p));
if (Number(p) >= Number(100)) {
_parent._parent.gotoAndPlay(Number(2));
_parent.gotoAndStop("off");
_parent.doneLoading = 1;
} else {
_parent._parent.gotoAndPlay(Number(1));
}
}
}
Symbol 13 MovieClip Frame 7
gotoAndPlay (1);
Symbol 16 MovieClip Frame 32
gotoAndPlay (1);
Symbol 30 MovieClip Frame 8
stop();
Symbol 32 Button
on (release) {
gotoAndStop (15);
}
Symbol 37 Button
on (release) {
gotoAndStop (16);
}
Symbol 60 MovieClip Frame 1
stop();
Symbol 60 MovieClip Frame 2
_root.powerHit = true;
Symbol 60 MovieClip Frame 7
stop();
Symbol 68 MovieClip Frame 1
stop();
Symbol 68 MovieClip Frame 7
gotoAndStop (1);
Symbol 80 MovieClip Frame 10
stop();
_root.gameO = true;
Symbol 81 MovieClip Frame 1
stop();
Symbol 86 MovieClip Frame 1
stop();
Symbol 86 MovieClip Frame 2
stop();
Symbol 98 MovieClip Frame 10
stop();
_parent.removeMovieClip();
Symbol 99 MovieClip Frame 1
stop();
Symbol 107 MovieClip Frame 1
stop();
Symbol 107 MovieClip Frame 250
_root.powerUp = false;
_root.pTime = 500;
Symbol 125 Button
on (release) {
_root.gotoandStop("submit", "submit");
_root.quit = true;
}
Symbol 131 Button
on (release) {
_root.quit = true;
_root.gotoAndStop("main");
}
Symbol 143 Button
on (release) {
_root.gotoAndStop("main");
_root.quit2 = true;
_root.quit = true;
}
Symbol 159 Button
on (press) {
_root.quit = true;
}
on (release) {
_root.quit = false;
}
Symbol 166 Button
on (release) {
_root.pUp = "Speedy";
_root.powerUp = true;
power = 2;
_root.invinsible = false;
_root.superFast = true;
_root.bulletTime = false;
_root.invin._visible = false;
_root.drunken == false;
_root.invinv._x = 4000;
gotoAndStop (2);
}
Symbol 168 Button
on (release) {
_root.pUp = "Bulletime";
_root.powerUp = false;
_root.bulletTime = false;
_root.superFast == false;
_root.superFast = false;
_root.invinsible = false;
_root.invin._visible = false;
_root.drunken == false;
_root.invinv._x = 4000;
gotoAndStop (1);
}
Symbol 169 MovieClip Frame 1
stop();
Symbol 170 Button
on (release) {
_root.pUp = "Bulletime";
_root.powerUp = true;
_root.bulletTime = true;
_root.superFast == false;
_root.superFast = false;
_root.invinsible = false;
_root.invin._visible = false;
_root.drunken == false;
_root.invinv._x = 4000;
gotoAndStop (2);
}
Symbol 171 Button
on (release) {
_root.pUp = "Bulletime";
_root.powerUp = false;
_root.bulletTime = false;
_root.superFast == false;
_root.superFast = false;
_root.invinsible = false;
_root.invin._visible = false;
_root.drunken == false;
_root.invinv._x = 4000;
gotoAndStop (1);
}
Symbol 172 MovieClip Frame 1
stop();
Symbol 173 Button
on (release) {
_root.powerUp = true;
_root.pUp = "Invincible";
power = 3;
_root.invinsible = true;
_root.bulletTime = false;
_root.superFast = false;
_root.drunken == false;
gotoAndStop (2);
}
Symbol 174 Button
on (release) {
_root.pUp = "Bulletime";
_root.powerUp = false;
_root.bulletTime = false;
_root.superFast == false;
_root.superFast = false;
_root.invinsible = false;
_root.invin._visible = false;
_root.drunken == false;
_root.invinv._x = 4000;
gotoAndStop (1);
}
Symbol 175 MovieClip Frame 1
stop();
Symbol 186 Button
on (release) {
gotoAndStop (14);
}
Symbol 187 Button
on (release) {
gotoAndStop (21);
}