Frame 1
ifFrameLoaded (44) {
gotoAndPlay (5);
}
fscommand ("allowscale", "false");
function __com_mochibot__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
var pv;
mb = "__mochibot__";
mbc = "mochibot.com";
g = (_global ? (_global) : (_level0._root));
if (g[mb + swfid]) {
return(g[mb + swfid]);
}
s = System.security;
x = mc._root.getSWFVersion;
fv = (x ? (mc.getSWFVersion()) : ((_global ? 6 : 5)));
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == "localWithFile") {
return(null);
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
pv = ((fv == 5) ? (getVersion()) : (System.capabilities.version));
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=8&fv=") + fv) + "&v=") + escape(pv)) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "")) + (trk ? "&t=1" : "");
lv = ((fv > 6) ? (mc.getNextHighestDepth()) : ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv))));
g[mb + "level"] = lv;
if (fv == 5) {
res = "_level" + lv;
if (!eval (res)) {
loadMovieNum (u, lv);
}
} else {
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
}
return(res);
}
__com_mochibot__("6f147717", this, 10301, true);
Frame 4
gotoAndPlay (1);
Frame 7
stop();
Instance of Symbol 25 MovieClip "block" in Frame 7
onClipEvent (enterFrame) {
if (this.hitTest(_root.ball)) {
_root.vars.numofblocks--;
if (_root.vars.numofblocks < 1) {
_root.vars.theLevel = _root.vars.theLevel + 1;
i = 0;
while (i < 500) {
removeMovieClip(_root["hardblock" + i]);
i++;
}
_root.gotoAndPlay("level");
}
_root.sounds.blockhit_sfx.start(0.79, 1);
num = random(50);
if (num == 8) {
if (_root.vars.bonus1counter > 517) {
_root.vars.bonus1counter = 500;
}
_root.vars.bonus1counter++;
duplicateMovieClip (_root.bonus1, "bonus1" + _root.vars.bonus1counter, _root.vars.bonus1counter);
_root["bonus1" + _root.vars.bonus1counter]._x = _x;
_root["bonus1" + _root.vars.bonus1counter]._y = _y;
}
if (num == 6) {
if (_root.vars.bonus2counter > 537) {
_root.vars.bonus2counter = 520;
}
_root.vars.bonus2counter++;
duplicateMovieClip (_root.bonus2, "bonus2" + _root.vars.bonus2counter, _root.vars.bonus2counter);
_root["bonus2" + _root.vars.bonus2counter]._x = _x;
_root["bonus2" + _root.vars.bonus2counter]._y = _y;
}
if (num == 4) {
if (_root.vars.bonus3counter > 557) {
_root.vars.bonus3counter = 540;
}
_root.vars.bonus3counter++;
duplicateMovieClip (_root.bonus3, "bonus3" + _root.vars.bonus3counter, _root.vars.bonus3counter);
_root["bonus3" + _root.vars.bonus3counter]._x = _x;
_root["bonus3" + _root.vars.bonus3counter]._y = _y;
}
if (num == 3) {
if (_root.vars.bonus4counter > 577) {
_root.vars.bonus4counter = 560;
}
_root.vars.bonus4counter++;
duplicateMovieClip (_root.bonus4, "bonus4" + _root.vars.bonus4counter, _root.vars.bonus4counter);
_root["bonus4" + _root.vars.bonus4counter]._x = _x;
_root["bonus4" + _root.vars.bonus4counter]._y = _y;
}
if (num == 2) {
if (_root.vars.bonus5counter > 597) {
_root.vars.bonus5counter = 580;
}
_root.vars.bonus5counter++;
duplicateMovieClip (_root.bonus5, "bonus5" + _root.vars.bonus5counter, _root.vars.bonus5counter);
_root["bonus5" + _root.vars.bonus5counter]._x = _x;
_root["bonus5" + _root.vars.bonus5counter]._y = _y;
}
if (_root.vars.fireball == 0) {
if (((_root.ball._x < (_x + 10)) && ((_x - 10) < _root.ball._x)) && ((_y - 3.5) < _root.ball._y)) {
_root.ball._y = (_y + (_height / 2)) + (_root.ball._height / 2);
_root.vars.bally = _root.vars.bally * -1;
_root.vars.score = _root.vars.score + Number(10);
this.removeMovieClip();
}
if (((_root.ball._x < (_x + 10)) && ((_x - 10) < _root.ball._x)) && (_root.ball._y < (_y + 3.5))) {
_root.ball._y = (_y - (_height / 2)) - (_root.ball._height / 2);
_root.vars.bally = _root.vars.bally * -1;
_root.vars.score = _root.vars.score + Number(10);
this.removeMovieClip();
}
if (((_root.ball._x < (_x - 5)) && ((_y - 3.5) < _root.ball._y)) && (_root.ball._y < (_y + 3.5))) {
_root.ball._x = (_x - (_width / 2)) - (_root.ball._width / 2);
_root.vars.ballx = _root.vars.ballx * -1;
_root.vars.score = _root.vars.score + Number(10);
this.removeMovieClip();
}
if ((((_x + 5) < _root.ball._x) && ((_y - 3.5) < _root.ball._y)) && (_root.ball._y < (_y + 3.5))) {
_root.ball._x = (_x + (_width / 2)) + (_root.ball._width / 2);
_root.vars.ballx = _root.vars.ballx * -1;
_root.vars.score = _root.vars.score + Number(10);
this.removeMovieClip();
}
this.removeMovieClip();
} else {
_root.vars.score = _root.vars.score + Number(10);
this.removeMovieClip();
}
}
if (_root.vars.bullet == 1) {
if (this.hitTest(_root.bullet1)) {
_root.vars.numofblocks--;
if (_root.vars.numofblocks < 1) {
i = 0;
while (i < 500) {
removeMovieClip(_root["hardblock" + i]);
i++;
}
_root.vars.theLevel = _root.vars.theLevel + 1;
_root.gotoAndPlay("level");
}
_root.sounds.blockhit_sfx.start(0.79, 1);
num = random(50);
if (num == 8) {
if (_root.vars.bonus1counter > 517) {
_root.vars.bonus1counter = 500;
}
_root.vars.bonus1counter++;
duplicateMovieClip (_root.bonus1, "bonus1" + _root.vars.bonus1counter, _root.vars.bonus1counter);
_root["bonus1" + _root.vars.bonus1counter]._x = _x;
_root["bonus1" + _root.vars.bonus1counter]._y = _y;
}
if (num == 6) {
if (_root.vars.bonus2counter > 537) {
_root.vars.bonus2counter = 520;
}
_root.vars.bonus2counter++;
duplicateMovieClip (_root.bonus2, "bonus2" + _root.vars.bonus2counter, _root.vars.bonus2counter);
_root["bonus2" + _root.vars.bonus2counter]._x = _x;
_root["bonus2" + _root.vars.bonus2counter]._y = _y;
}
if (num == 4) {
if (_root.vars.bonus3counter > 557) {
_root.vars.bonus3counter = 540;
}
_root.vars.bonus3counter++;
duplicateMovieClip (_root.bonus3, "bonus3" + _root.vars.bonus3counter, _root.vars.bonus3counter);
_root["bonus3" + _root.vars.bonus3counter]._x = _x;
_root["bonus3" + _root.vars.bonus3counter]._y = _y;
}
if (num == 3) {
if (_root.vars.bonus4counter > 577) {
_root.vars.bonus4counter = 560;
}
_root.vars.bonus4counter++;
duplicateMovieClip (_root.bonus4, "bonus4" + _root.vars.bonus4counter, _root.vars.bonus4counter);
_root["bonus4" + _root.vars.bonus4counter]._x = _x;
_root["bonus4" + _root.vars.bonus4counter]._y = _y;
}
if (num == 2) {
if (_root.vars.bonus5counter > 597) {
_root.vars.bonus5counter = 580;
}
_root.vars.bonus5counter++;
duplicateMovieClip (_root.bonus5, "bonus5" + _root.vars.bonus5counter, _root.vars.bonus5counter);
_root["bonus5" + _root.vars.bonus5counter]._x = _x;
_root["bonus5" + _root.vars.bonus5counter]._y = _y;
}
_root.vars.score = _root.vars.score + Number(10);
_root.vars.bullet = 0;
_root.bullet1.removeMovieClip();
this.removeMovieClip();
}
}
}
Instance of Symbol 28 MovieClip "bonus1" in Frame 7
onClipEvent (enterFrame) {
if (this.hitTest(_root.ship)) {
_root.vars.bullet = 0;
_root.vars.gun = 0;
_root.ship.gotoAndStop(2);
this.removeMovieClip();
}
if (str ne "bonus1") {
_y = (_y + 2);
if (_y > 235) {
this.removeMovieClip();
}
}
}
onClipEvent (load) {
str = _name;
}
Instance of Symbol 35 MovieClip "bonus2" in Frame 7
onClipEvent (enterFrame) {
if (str ne "bonus2") {
if (_y > 235) {
this.removeMovieClip();
}
_y = (_y + 2);
}
if (this.hitTest(_root.ship)) {
_root.vars.gameon = 0;
Set("_root.vars.:ballx", 3);
Set("_root.vars.:bally", -3);
_root.gotoAndPlay("miss");
_root.func.miss();
this.removeMovieClip();
}
}
onClipEvent (load) {
str = _name;
}
Instance of Symbol 38 MovieClip "bonus3" in Frame 7
onClipEvent (enterFrame) {
if (this.hitTest(_root.ship)) {
_root.vars.bullet = 0;
_root.vars.gun = 0;
_root.ship.gotoAndStop(3);
this.removeMovieClip();
}
if (str ne "bonus3") {
_y = (_y + 2);
if (_y > 235) {
this.removeMovieClip();
}
}
}
onClipEvent (load) {
str = _name;
}
Instance of Symbol 52 MovieClip "bonus4" in Frame 7
onClipEvent (enterFrame) {
if (this.hitTest(_root.ship)) {
_root.ball.gotoAndStop(2);
_root.vars.fireball = 1;
this.removeMovieClip();
}
if (str ne "bonus4") {
_y = (_y + 2);
if (_y > 235) {
this.removeMovieClip();
}
}
}
onClipEvent (load) {
str = _name;
}
Instance of Symbol 65 MovieClip "bonus5" in Frame 7
onClipEvent (enterFrame) {
if (this.hitTest(_root.ship)) {
_root.ship.gotoAndStop(4);
_root.vars.gun = 1;
this.removeMovieClip();
}
if (str ne "bonus5") {
_y = (_y + 2);
if (_y > 235) {
this.removeMovieClip();
}
}
}
onClipEvent (load) {
str = _name;
}
Instance of Symbol 69 MovieClip "bullet" in Frame 7
onClipEvent (enterFrame) {
if (str ne "bullet") {
_y = (_y - 7);
if (_y < 23) {
_root.vars.bullet = 0;
this.removeMovieClip();
}
}
}
onClipEvent (load) {
str = _name;
}
Instance of Symbol 73 MovieClip "hardblock" in Frame 7
onClipEvent (enterFrame) {
if (this.hitTest(_root.ball)) {
gotoAndPlay (6);
if (_root.vars.fireball == 0) {
if (((_root.ball._x < (_x + 10)) && ((_x - 10) < _root.ball._x)) && ((_y - 3.5) < _root.ball._y)) {
_root.ball._y = (_y + (_height / 2)) + (_root.ball._height / 2);
_root.vars.bally = _root.vars.bally * -1;
_root.sounds.blockhit_sfx.start(0.79, 1);
}
if (((_root.ball._x < (_x + 10)) && ((_x - 10) < _root.ball._x)) && (_root.ball._y < (_y + 3.5))) {
_root.ball._y = (_y - (_height / 2)) - (_root.ball._height / 2);
_root.vars.bally = _root.vars.bally * -1;
_root.sounds.blockhit_sfx.start(0.79, 1);
}
if (((_root.ball._x < (_x - 5)) && ((_y - 3.5) < _root.ball._y)) && (_root.ball._y < (_y + 3.5))) {
_root.ball._x = (_x - (_width / 2)) - (_root.ball._width / 2);
_root.vars.ballx = _root.vars.ballx * -1;
_root.sounds.blockhit_sfx.start(0.79, 1);
}
if ((((_x + 5) < _root.ball._x) && ((_y - 3.5) < _root.ball._y)) && (_root.ball._y < (_y + 3.5))) {
_root.ball._x = (_x + (_width / 2)) + (_root.ball._width / 2);
_root.vars.ballx = _root.vars.ballx * -1;
_root.sounds.blockhit_sfx.start(0.79, 1);
}
if (((_x + 10) < _root.ball._x) && ((_y + 3.5) < _root.ball._y)) {
if ((_root.vars.ballx < 0) && (_root.vars.bally > 0)) {
_root.ball._x = (_x + (_width / 2)) + (_root.ball._width / 2);
_root.vars.ballx = _root.vars.ballx * -1;
_root.sounds.blockhit_sfx.start(0.79, 1);
}
if ((_root.vars.ballx > 0) && (_root.vars.bally < 0)) {
_root.ball._x = (_x + (_width / 2)) + (_root.ball._width / 2);
_root.vars.ballx = _root.vars.ballx * -1;
_root.sounds.blockhit_sfx.start(0.79, 1);
}
if ((_root.vars.ballx < 0) && (_root.vars.bally < 0)) {
_root.ball._x = (_x + (_width / 2)) + (_root.ball._width / 2);
_root.ball._y = (_y + (_height / 2)) + (_root.ball._height / 2);
_root.vars.ballx = _root.vars.ballx * -1;
_root.vars.bally = _root.vars.bally * -1;
_root.sounds.blockhit_sfx.start(0.79, 1);
}
}
if (((_x + 10) < _root.ball._x) && (_root.ball._y < (_y - 3.5))) {
if ((_root.vars.ballx < 0) && (_root.vars.bally < 0)) {
_root.ball._x = (_x + (_width / 2)) + (_root.ball._width / 2);
_root.vars.ballx = _root.vars.ballx * -1;
_root.sounds.blockhit_sfx.start(0.79, 1);
}
if ((_root.vars.ballx > 0) && (_root.vars.bally > 0)) {
_root.ball._x = (_x + (_width / 2)) + (_root.ball._width / 2);
_root.vars.ballx = _root.vars.ballx * -1;
_root.sounds.blockhit_sfx.start(0.79, 1);
}
if ((_root.vars.ballx < 0) && (_root.vars.bally > 0)) {
_root.ball._x = (_x + (_width / 2)) + (_root.ball._width / 2);
_root.ball._y = (_y - (_height / 2)) - (_root.ball._height / 2);
_root.vars.ballx = _root.vars.ballx * -1;
_root.vars.bally = _root.vars.bally * -1;
_root.sounds.blockhit_sfx.start(0.79, 1);
}
}
if ((_root.ball._x < (_x - 10)) && (_root.ball._y < (_y - 3.5))) {
if ((_root.vars.ballx < 0) && (_root.vars.bally > 0)) {
_root.ball._x = (_x - (_width / 2)) - (_root.ball._width / 2);
_root.vars.ballx = _root.vars.ballx * -1;
_root.sounds.blockhit_sfx.start(0.79, 1);
}
if ((_root.vars.ballx > 0) && (_root.vars.bally < 0)) {
_root.ball._x = (_x - (_width / 2)) - (_root.ball._width / 2);
_root.vars.ballx = _root.vars.ballx * -1;
_root.sounds.blockhit_sfx.start(0.79, 1);
}
if ((_root.vars.ballx > 0) && (_root.vars.bally > 0)) {
_root.ball._x = (_x - (_width / 2)) - (_root.ball._width / 2);
_root.ball._y = (_y - (_height / 2)) - (_root.ball._height / 2);
_root.vars.ballx = _root.vars.ballx * -1;
_root.vars.bally = _root.vars.bally * -1;
_root.sounds.blockhit_sfx.start(0.79, 1);
}
}
if ((_root.ball._x < (_x - 10)) && ((_y + 3.5) < _root.ball._y)) {
if ((_root.vars.ballx < 0) && (_root.vars.bally < 0)) {
_root.ball._x = (_x - (_width / 2)) - (_root.ball._width / 2);
_root.vars.bally = _root.vars.bally * -1;
_root.sounds.blockhit_sfx.start(0.79, 1);
}
if ((_root.vars.ballx > 0) && (_root.vars.bally < 0)) {
_root.ball._x = (_x - (_width / 2)) - (_root.ball._width / 2);
_root.vars.ballx = _root.vars.ballx * -1;
_root.vars.bally = _root.vars.bally * -1;
_root.sounds.blockhit_sfx.start(0.79, 1);
}
if ((_root.vars.ballx > 0) && (_root.vars.bally > 0)) {
_root.ball._x = (_x - (_width / 2)) - (_root.ball._width / 2);
_root.ball._y = (_y + (_height / 2)) + (_root.ball._height / 2);
_root.vars.ballx = _root.vars.ballx * -1;
_root.sounds.blockhit_sfx.start(0.79, 1);
}
}
} else {
_root.vars.score = _root.vars.score + Number(20);
_root.sounds.blockhit_sfx.start(0.79, 1);
this.removeMovieClip();
}
}
if (_root.vars.bullet == 1) {
if (this.hitTest(_root.bullet1)) {
_root.sounds.blockhit_sfx.start(0.79, 1);
_root.vars.score = _root.vars.score + Number(20);
_root.vars.bullet = 0;
_root.bullet1.removeMovieClip();
this.removeMovieClip();
}
}
}
Frame 14
_root.func.drawblocks();
Instance of Symbol 111 MovieClip "ship" in Frame 14
onClipEvent (enterFrame) {
if (_root.vars.gameon == 1) {
quarter = _width / 4;
leftpoint = 2 * quarter;
rightpoint = 2 * quarter;
if (key.isdown(37)) {
if ((1 + leftpoint) < _x) {
this._x = this._x - _root.vars.:boardmove;
} else {
this._x = 0 + rightpoint;
}
}
if (key.isdown(39)) {
if (_x < (318 - rightpoint)) {
this._x = this._x + _root.vars.:boardmove;
} else {
this._x = 319 - rightpoint;
}
}
if (key.isdown(32)) {
if ((_root.vars.gun == 1) && (_root.vars.bullet == 0)) {
_root.vars.bullet = 1;
duplicateMovieClip (_root.bullet, "bullet1", 2000);
_root.bullet1._x = _x;
_root.bullet1._y = _y;
}
}
if (key.isdown(16)) {
_root.vars.shiftpressed = _root.vars.shiftpressed + 1;
if (_root.vars.shiftpressed < 10) {
_root.ball._x = _root.ball._x - 4;
}
}
if (this.hitTest(_root.ball)) {
if (_root.vars.fireball == 1) {
_root.ball._y = _y - 14;
} else {
_root.ball._y = _y - 10;
}
if ((_root.ball._x < _x) && ((_x - quarter) < _root.ball._x)) {
if (_root.vars.:ballx < 0) {
Set("_root.vars.:bally", -3.5);
Set("_root.vars.:ballx", -1.5);
} else {
Set("_root.vars.:bally", -3.5);
Set("_root.vars.:ballx", -1.5);
}
}
if ((_x < _root.ball._x) && (_root.ball._x < (_x + quarter))) {
if (_root.vars.:ballx < 0) {
Set("_root.vars.:bally", -3.5);
Set("_root.vars.:ballx", 1.5);
} else {
Set("_root.vars.:bally", -3.5);
Set("_root.vars.:ballx", 1.5);
}
}
if (_root.ball._x < (_x - quarter)) {
if (_root.vars.:ballx < 0) {
Set("_root.vars.:ballx", -3);
Set("_root.vars.:bally", -3);
} else {
Set("_root.vars.:ballx", -3);
Set("_root.vars.:bally", -3);
}
}
if ((_x + quarter) < _root.ball._x) {
if (_root.vars.:ballx < 0) {
Set("_root.vars.:ballx", 3);
Set("_root.vars.:bally", -3);
} else {
Set("_root.vars.:ballx", 3);
Set("_root.vars.:bally", -3);
}
}
_root.sounds.ballhitship_sfx.start(0.09, 1);
}
}
}
Instance of Symbol 115 MovieClip "ball" in Frame 14
onClipEvent (enterFrame) {
if (_root.vars.gameon == 1) {
if (_x > 316) {
_root.sounds.ballhit_sfx.start(0.1, 1);
_root.ball._x = 315;
Set("_root.vars.:ballx", _root.vars.:ballx * -1);
}
if (_x < 4) {
_root.sounds.ballhit_sfx.start(0.1, 1);
_root.ball._x = 5;
Set("_root.vars.:ballx", _root.vars.:ballx * -1);
}
if (_y < 22) {
_root.sounds.ballhit_sfx.start(0.1, 1);
Set("_root.vars.:bally", _root.vars.:bally * -1);
}
if (_y > 255) {
_root.func.miss();
if (_root.vars.miss > 4) {
_root.gotoAndPlay("over");
} else {
_root.gotoAndPlay("miss");
}
_root.vars.gameon = 0;
Set("_root.vars.:ballx", 3);
Set("_root.vars.:bally", -3);
}
_x = (_x + _root.vars.:ballx);
_y = (_y + _root.vars.:bally);
updateAfterEvent();
}
}
Instance of Symbol 25 MovieClip "block" in Frame 14
onClipEvent (enterFrame) {
if (this.hitTest(_root.ball)) {
_root.vars.numofblocks--;
if (_root.vars.numofblocks < 1) {
_root.vars.theLevel = _root.vars.theLevel + 1;
i = 0;
while (i < 500) {
removeMovieClip(_root["hardblock" + i]);
i++;
}
_root.gotoAndPlay("level");
}
_root.sounds.blockhit_sfx.start(0.79, 1);
num = random(50);
if (num == 8) {
if (_root.vars.bonus1counter > 517) {
_root.vars.bonus1counter = 500;
}
_root.vars.bonus1counter++;
duplicateMovieClip (_root.bonus1, "bonus1" + _root.vars.bonus1counter, _root.vars.bonus1counter);
_root["bonus1" + _root.vars.bonus1counter]._x = _x;
_root["bonus1" + _root.vars.bonus1counter]._y = _y;
}
if (num == 6) {
if (_root.vars.bonus2counter > 537) {
_root.vars.bonus2counter = 520;
}
_root.vars.bonus2counter++;
duplicateMovieClip (_root.bonus2, "bonus2" + _root.vars.bonus2counter, _root.vars.bonus2counter);
_root["bonus2" + _root.vars.bonus2counter]._x = _x;
_root["bonus2" + _root.vars.bonus2counter]._y = _y;
}
if (num == 4) {
if (_root.vars.bonus3counter > 557) {
_root.vars.bonus3counter = 540;
}
_root.vars.bonus3counter++;
duplicateMovieClip (_root.bonus3, "bonus3" + _root.vars.bonus3counter, _root.vars.bonus3counter);
_root["bonus3" + _root.vars.bonus3counter]._x = _x;
_root["bonus3" + _root.vars.bonus3counter]._y = _y;
}
if (num == 3) {
if (_root.vars.bonus4counter > 577) {
_root.vars.bonus4counter = 560;
}
_root.vars.bonus4counter++;
duplicateMovieClip (_root.bonus4, "bonus4" + _root.vars.bonus4counter, _root.vars.bonus4counter);
_root["bonus4" + _root.vars.bonus4counter]._x = _x;
_root["bonus4" + _root.vars.bonus4counter]._y = _y;
}
if (num == 2) {
if (_root.vars.bonus5counter > 597) {
_root.vars.bonus5counter = 580;
}
_root.vars.bonus5counter++;
duplicateMovieClip (_root.bonus5, "bonus5" + _root.vars.bonus5counter, _root.vars.bonus5counter);
_root["bonus5" + _root.vars.bonus5counter]._x = _x;
_root["bonus5" + _root.vars.bonus5counter]._y = _y;
}
if (_root.vars.fireball == 0) {
if (((_root.ball._x < (_x + 10)) && ((_x - 10) < _root.ball._x)) && ((_y - 3.5) < _root.ball._y)) {
_root.ball._y = (_y + (_height / 2)) + (_root.ball._height / 2);
_root.vars.bally = _root.vars.bally * -1;
_root.vars.score = _root.vars.score + Number(10);
this.removeMovieClip();
}
if (((_root.ball._x < (_x + 10)) && ((_x - 10) < _root.ball._x)) && (_root.ball._y < (_y + 3.5))) {
_root.ball._y = (_y - (_height / 2)) - (_root.ball._height / 2);
_root.vars.bally = _root.vars.bally * -1;
_root.vars.score = _root.vars.score + Number(10);
this.removeMovieClip();
}
if (((_root.ball._x < (_x - 5)) && ((_y - 3.5) < _root.ball._y)) && (_root.ball._y < (_y + 3.5))) {
_root.ball._x = (_x - (_width / 2)) - (_root.ball._width / 2);
_root.vars.ballx = _root.vars.ballx * -1;
_root.vars.score = _root.vars.score + Number(10);
this.removeMovieClip();
}
if ((((_x + 5) < _root.ball._x) && ((_y - 3.5) < _root.ball._y)) && (_root.ball._y < (_y + 3.5))) {
_root.ball._x = (_x + (_width / 2)) + (_root.ball._width / 2);
_root.vars.ballx = _root.vars.ballx * -1;
_root.vars.score = _root.vars.score + Number(10);
this.removeMovieClip();
}
this.removeMovieClip();
} else {
_root.vars.score = _root.vars.score + Number(10);
this.removeMovieClip();
}
}
if (_root.vars.bullet == 1) {
if (this.hitTest(_root.bullet1)) {
_root.vars.numofblocks--;
if (_root.vars.numofblocks < 1) {
i = 0;
while (i < 500) {
removeMovieClip(_root["hardblock" + i]);
i++;
}
_root.vars.theLevel = _root.vars.theLevel + 1;
_root.gotoAndPlay("level");
}
_root.sounds.blockhit_sfx.start(0.79, 1);
num = random(50);
if (num == 8) {
if (_root.vars.bonus1counter > 517) {
_root.vars.bonus1counter = 500;
}
_root.vars.bonus1counter++;
duplicateMovieClip (_root.bonus1, "bonus1" + _root.vars.bonus1counter, _root.vars.bonus1counter);
_root["bonus1" + _root.vars.bonus1counter]._x = _x;
_root["bonus1" + _root.vars.bonus1counter]._y = _y;
}
if (num == 6) {
if (_root.vars.bonus2counter > 537) {
_root.vars.bonus2counter = 520;
}
_root.vars.bonus2counter++;
duplicateMovieClip (_root.bonus2, "bonus2" + _root.vars.bonus2counter, _root.vars.bonus2counter);
_root["bonus2" + _root.vars.bonus2counter]._x = _x;
_root["bonus2" + _root.vars.bonus2counter]._y = _y;
}
if (num == 4) {
if (_root.vars.bonus3counter > 557) {
_root.vars.bonus3counter = 540;
}
_root.vars.bonus3counter++;
duplicateMovieClip (_root.bonus3, "bonus3" + _root.vars.bonus3counter, _root.vars.bonus3counter);
_root["bonus3" + _root.vars.bonus3counter]._x = _x;
_root["bonus3" + _root.vars.bonus3counter]._y = _y;
}
if (num == 3) {
if (_root.vars.bonus4counter > 577) {
_root.vars.bonus4counter = 560;
}
_root.vars.bonus4counter++;
duplicateMovieClip (_root.bonus4, "bonus4" + _root.vars.bonus4counter, _root.vars.bonus4counter);
_root["bonus4" + _root.vars.bonus4counter]._x = _x;
_root["bonus4" + _root.vars.bonus4counter]._y = _y;
}
if (num == 2) {
if (_root.vars.bonus5counter > 597) {
_root.vars.bonus5counter = 580;
}
_root.vars.bonus5counter++;
duplicateMovieClip (_root.bonus5, "bonus5" + _root.vars.bonus5counter, _root.vars.bonus5counter);
_root["bonus5" + _root.vars.bonus5counter]._x = _x;
_root["bonus5" + _root.vars.bonus5counter]._y = _y;
}
_root.vars.score = _root.vars.score + Number(10);
_root.vars.bullet = 0;
_root.bullet1.removeMovieClip();
this.removeMovieClip();
}
}
}
Instance of Symbol 116 MovieClip "bonus1" in Frame 14
onClipEvent (enterFrame) {
if (this.hitTest(_root.ship)) {
_root.vars.bullet = 0;
_root.vars.gun = 0;
_root.ship.gotoAndStop(2);
this.removeMovieClip();
}
if (str ne "bonus1") {
_y = (_y + 2);
if (_y > 255) {
this.removeMovieClip();
}
}
}
onClipEvent (load) {
str = _name;
}
Instance of Symbol 117 MovieClip "bonus2" in Frame 14
onClipEvent (enterFrame) {
if (str ne "bonus2") {
if (_y > 255) {
this.removeMovieClip();
}
_y = (_y + 2);
}
if (this.hitTest(_root.ship)) {
if (_root.vars.miss > 3) {
_root.gotoAndPlay("over");
} else {
_root.gotoAndPlay("miss");
}
_root.vars.gameon = 0;
Set("_root.vars.:ballx", 3);
Set("_root.vars.:bally", -3);
_root.func.miss();
this.removeMovieClip();
}
}
onClipEvent (load) {
str = _name;
}
Instance of Symbol 118 MovieClip "bonus3" in Frame 14
onClipEvent (enterFrame) {
if (this.hitTest(_root.ship)) {
_root.vars.bullet = 0;
_root.vars.gun = 0;
_root.ship.gotoAndStop(3);
this.removeMovieClip();
}
if (str ne "bonus3") {
_y = (_y + 2);
if (_y > 255) {
this.removeMovieClip();
}
}
}
onClipEvent (load) {
str = _name;
}
Instance of Symbol 119 MovieClip "bonus4" in Frame 14
onClipEvent (enterFrame) {
if (this.hitTest(_root.ship)) {
_root.ball.gotoAndStop(2);
_root.vars.fireball = 1;
this.removeMovieClip();
}
if (str ne "bonus4") {
_y = (_y + 2);
if (_y > 255) {
this.removeMovieClip();
}
}
}
onClipEvent (load) {
str = _name;
}
Instance of Symbol 120 MovieClip "bonus5" in Frame 14
onClipEvent (enterFrame) {
if (this.hitTest(_root.ship)) {
_root.ship.gotoAndStop(4);
_root.vars.gun = 1;
this.removeMovieClip();
}
if (str ne "bonus5") {
_y = (_y + 2);
if (_y > 255) {
this.removeMovieClip();
}
}
}
onClipEvent (load) {
str = _name;
}
Instance of Symbol 69 MovieClip "bullet" in Frame 14
onClipEvent (enterFrame) {
if (str ne "bullet") {
_y = (_y - 7);
if (_y < 23) {
_root.vars.bullet = 0;
this.removeMovieClip();
}
}
}
onClipEvent (load) {
str = _name;
}
Instance of Symbol 73 MovieClip "hardblock" in Frame 14
onClipEvent (enterFrame) {
if (this.hitTest(_root.ball)) {
gotoAndPlay (6);
if (_root.vars.fireball == 0) {
if (((_root.ball._x < (_x + 10)) && ((_x - 10) < _root.ball._x)) && ((_y - 3.5) < _root.ball._y)) {
_root.ball._y = (_y + (_height / 2)) + (_root.ball._height / 2);
_root.vars.bally = _root.vars.bally * -1;
_root.sounds.blockhit_sfx.start(0.79, 1);
}
if (((_root.ball._x < (_x + 10)) && ((_x - 10) < _root.ball._x)) && (_root.ball._y < (_y + 3.5))) {
_root.ball._y = (_y - (_height / 2)) - (_root.ball._height / 2);
_root.vars.bally = _root.vars.bally * -1;
_root.sounds.blockhit_sfx.start(0.79, 1);
}
if (((_root.ball._x < (_x - 5)) && ((_y - 3.5) < _root.ball._y)) && (_root.ball._y < (_y + 3.5))) {
_root.ball._x = (_x - (_width / 2)) - (_root.ball._width / 2);
_root.vars.ballx = _root.vars.ballx * -1;
_root.sounds.blockhit_sfx.start(0.79, 1);
}
if ((((_x + 5) < _root.ball._x) && ((_y - 3.5) < _root.ball._y)) && (_root.ball._y < (_y + 3.5))) {
_root.ball._x = (_x + (_width / 2)) + (_root.ball._width / 2);
_root.vars.ballx = _root.vars.ballx * -1;
_root.sounds.blockhit_sfx.start(0.79, 1);
}
if (((_x + 10) < _root.ball._x) && ((_y + 3.5) < _root.ball._y)) {
if ((_root.vars.ballx < 0) && (_root.vars.bally > 0)) {
_root.ball._x = (_x + (_width / 2)) + (_root.ball._width / 2);
_root.vars.ballx = _root.vars.ballx * -1;
_root.sounds.blockhit_sfx.start(0.79, 1);
}
if ((_root.vars.ballx > 0) && (_root.vars.bally < 0)) {
_root.ball._x = (_x + (_width / 2)) + (_root.ball._width / 2);
_root.vars.ballx = _root.vars.ballx * -1;
_root.sounds.blockhit_sfx.start(0.79, 1);
}
if ((_root.vars.ballx < 0) && (_root.vars.bally < 0)) {
_root.ball._x = (_x + (_width / 2)) + (_root.ball._width / 2);
_root.ball._y = (_y + (_height / 2)) + (_root.ball._height / 2);
_root.vars.ballx = _root.vars.ballx * -1;
_root.vars.bally = _root.vars.bally * -1;
_root.sounds.blockhit_sfx.start(0.79, 1);
}
}
if (((_x + 10) < _root.ball._x) && (_root.ball._y < (_y - 3.5))) {
if ((_root.vars.ballx < 0) && (_root.vars.bally < 0)) {
_root.ball._x = (_x + (_width / 2)) + (_root.ball._width / 2);
_root.vars.ballx = _root.vars.ballx * -1;
_root.sounds.blockhit_sfx.start(0.79, 1);
}
if ((_root.vars.ballx > 0) && (_root.vars.bally > 0)) {
_root.ball._x = (_x + (_width / 2)) + (_root.ball._width / 2);
_root.vars.ballx = _root.vars.ballx * -1;
_root.sounds.blockhit_sfx.start(0.79, 1);
}
if ((_root.vars.ballx < 0) && (_root.vars.bally > 0)) {
_root.ball._x = (_x + (_width / 2)) + (_root.ball._width / 2);
_root.ball._y = (_y - (_height / 2)) - (_root.ball._height / 2);
_root.vars.ballx = _root.vars.ballx * -1;
_root.vars.bally = _root.vars.bally * -1;
_root.sounds.blockhit_sfx.start(0.79, 1);
}
}
if ((_root.ball._x < (_x - 10)) && (_root.ball._y < (_y - 3.5))) {
if ((_root.vars.ballx < 0) && (_root.vars.bally > 0)) {
_root.ball._x = (_x - (_width / 2)) - (_root.ball._width / 2);
_root.vars.ballx = _root.vars.ballx * -1;
_root.sounds.blockhit_sfx.start(0.79, 1);
}
if ((_root.vars.ballx > 0) && (_root.vars.bally < 0)) {
_root.ball._x = (_x - (_width / 2)) - (_root.ball._width / 2);
_root.vars.ballx = _root.vars.ballx * -1;
_root.sounds.blockhit_sfx.start(0.79, 1);
}
if ((_root.vars.ballx > 0) && (_root.vars.bally > 0)) {
_root.ball._x = (_x - (_width / 2)) - (_root.ball._width / 2);
_root.ball._y = (_y - (_height / 2)) - (_root.ball._height / 2);
_root.vars.ballx = _root.vars.ballx * -1;
_root.vars.bally = _root.vars.bally * -1;
_root.sounds.blockhit_sfx.start(0.79, 1);
}
}
if ((_root.ball._x < (_x - 10)) && ((_y + 3.5) < _root.ball._y)) {
if ((_root.vars.ballx < 0) && (_root.vars.bally < 0)) {
_root.ball._x = (_x - (_width / 2)) - (_root.ball._width / 2);
_root.vars.bally = _root.vars.bally * -1;
_root.sounds.blockhit_sfx.start(0.79, 1);
}
if ((_root.vars.ballx > 0) && (_root.vars.bally < 0)) {
_root.ball._x = (_x - (_width / 2)) - (_root.ball._width / 2);
_root.vars.ballx = _root.vars.ballx * -1;
_root.vars.bally = _root.vars.bally * -1;
_root.sounds.blockhit_sfx.start(0.79, 1);
}
if ((_root.vars.ballx > 0) && (_root.vars.bally > 0)) {
_root.ball._x = (_x - (_width / 2)) - (_root.ball._width / 2);
_root.ball._y = (_y + (_height / 2)) + (_root.ball._height / 2);
_root.vars.ballx = _root.vars.ballx * -1;
_root.sounds.blockhit_sfx.start(0.79, 1);
}
}
} else {
_root.vars.score = _root.vars.score + Number(20);
_root.sounds.blockhit_sfx.start(0.79, 1);
this.removeMovieClip();
}
}
if (_root.vars.bullet == 1) {
if (this.hitTest(_root.bullet1)) {
_root.sounds.blockhit_sfx.start(0.79, 1);
_root.vars.score = _root.vars.score + Number(20);
_root.vars.bullet = 0;
_root.bullet1.removeMovieClip();
this.removeMovieClip();
}
}
}
Instance of Symbol 129 MovieClip "vars" in Frame 14
onClipEvent (load) {
function setLevel(theLevel) {
var _local1 = theLevel;
if (_local1 == 1) {
linesnum = 9;
l1 = [0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0];
l2 = [0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0];
l3 = [0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0];
l4 = [0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0];
l5 = [0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0];
l6 = [0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0];
l7 = [0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0];
l8 = [0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0];
l1color = [0, orange, orange, orange, orange, orange, orange, orange, orange, orange, orange, orange, orange, 0];
l2color = [0, orange, orange, orange, orange, orange, orange, orange, orange, orange, orange, orange, orange, 0];
l3color = [0, orange, orange, orange, orange, orange, orange, orange, orange, orange, orange, orange, orange, 0];
l4color = [0, orange, orange, orange, orange, orange, orange, orange, orange, orange, orange, orange, orange, 0];
l5color = [0, orange, orange, orange, orange, orange, orange, orange, orange, orange, orange, orange, orange, 0];
l6color = [0, orange, orange, orange, orange, orange, orange, orange, orange, orange, orange, orange, orange, 0];
l7color = [0, orange, orange, orange, orange, orange, orange, orange, orange, orange, orange, orange, orange, 0];
l8color = [0, orange, orange, orange, orange, orange, orange, orange, orange, orange, orange, orange, orange, 0];
}
if (_local1 == 2) {
linesnum = 11;
l1 = [1, 1, 0, 1, 1, 1, 0, 1, 1, 1, 0, 1, 1, 1];
l2 = [1, 0, 0, 0, 1, 0, 0, 1, 0, 1, 0, 1, 0, 1];
l3 = [1, 0, 0, 0, 1, 0, 0, 1, 0, 1, 0, 1, 0, 1];
l4 = [1, 1, 0, 0, 1, 0, 0, 1, 1, 1, 0, 1, 1, 0];
l5 = [0, 1, 0, 0, 1, 0, 0, 1, 0, 1, 0, 1, 0, 1];
l6 = [0, 1, 0, 0, 1, 0, 0, 1, 0, 1, 0, 1, 0, 1];
l7 = [1, 1, 0, 0, 1, 0, 0, 1, 0, 1, 0, 1, 0, 1];
l8 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
l9 = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1];
l10 = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1];
l1color = [cream, cream, 0, cream, cream, cream, 0, cream, cream, cream, 0, cream, cream, cream];
l2color = [cream, 0, 0, 0, cream, 0, 0, cream, 0, cream, 0, cream, 0, cream];
l3color = [cream, 0, 0, 0, cream, 0, 0, cream, 0, cream, 0, cream, 0, cream];
l4color = [cream, cream, 0, 0, cream, 0, 0, cream, cream, cream, 0, cream, cream, 0];
l5color = [0, cream, 0, 0, cream, 0, 0, cream, 0, cream, 0, cream, 0, cream];
l6color = [0, cream, 0, 0, cream, 0, 0, cream, 0, cream, 0, cream, 0, cream];
l7color = [cream, cream, 0, 0, cream, 0, 0, cream, 0, cream, 0, cream, 0, cream];
l9color = [grey, orange, grey, orange, grey, orange, grey, orange, grey, orange, grey, orange, grey, orange];
l10color = [grey, orange, grey, orange, grey, orange, grey, orange, grey, orange, grey, orange, grey, orange];
}
if (_local1 == 3) {
linesnum = 9;
l1 = [1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0];
l2 = [0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1];
l3 = [1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0];
l4 = [0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1];
l5 = [1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0];
l6 = [0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1];
l7 = [1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0];
l8 = [0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1];
l1color = [red, 0, green, 0, red, 0, green, 0, red, 0, green, 0, red, 0];
l2color = [0, red, 0, green, 0, red, 0, green, 0, red, 0, green, 0, red, 0];
l3color = [green, 0, red, 0, green, 0, red, 0, green, 0, red, 0, green, 0];
l4color = [0, green, 0, red, 0, green, 0, red, 0, green, 0, red, 0, green, 0];
l5color = [red, 0, green, 0, red, 0, green, 0, red, 0, green, 0, red, 0];
l6color = [0, red, 0, green, 0, red, 0, green, 0, red, 0, green, 0, red, 0];
l7color = [green, 0, red, 0, green, 0, red, 0, green, 0, red, 0, green, 0];
l8color = [0, green, 0, red, 0, green, 0, red, 0, green, 0, red, 0, green, 0];
}
if (_local1 == 4) {
linesnum = 9;
l1 = [1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0];
l2 = [0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1];
l3 = [1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0];
l4 = [0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1];
l5 = [1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0];
l6 = [0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1];
l7 = [1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0];
l8 = [2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1];
l1color = [red, 0, green, 0, red, 0, green, 0, red, 0, green, 0, red, 0];
l2color = [0, red, 0, green, 0, red, 0, green, 0, red, 0, green, 0, red, 0];
l3color = [green, 0, red, 0, green, 0, red, 0, green, 0, red, 0, green, 0];
l4color = [0, green, 0, red, 0, green, 0, red, 0, green, 0, red, 0, green, 0];
l5color = [red, 0, green, 0, red, 0, green, 0, red, 0, green, 0, red, 0];
l6color = [0, red, 0, green, 0, red, 0, green, 0, red, 0, green, 0, red, 0];
l7color = [green, 0, red, 0, green, 0, red, 0, green, 0, red, 0, green, 0];
l8color = [0, green, 0, red, 0, green, 0, red, 0, green, 0, red, 0, green, 0];
}
if (_local1 == 5) {
linesnum = 9;
l1 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
l2 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
l3 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 0];
l4 = [0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 0];
l5 = [0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 0];
l6 = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 0];
l7 = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 0];
l8 = [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0];
l1color = [yellow, yellow, yellow, yellow, yellow, yellow, yellow, yellow, yellow, yellow, yellow, yellow, yellow, yellow];
l2color = [yellow, yellow, yellow, yellow, yellow, yellow, yellow, yellow, yellow, yellow, yellow, yellow, yellow, yellow];
l3color = [yellow, yellow, yellow, yellow, yellow, yellow, yellow, yellow, yellow, yellow, yellow, yellow, yellow, yellow];
l4color = [yellow, yellow, yellow, yellow, yellow, yellow, yellow, yellow, yellow, yellow, yellow, yellow, yellow, yellow];
l5color = [yellow, yellow, yellow, yellow, yellow, yellow, yellow, yellow, yellow, yellow, yellow, yellow, yellow, yellow];
l6color = [yellow, yellow, yellow, yellow, yellow, yellow, yellow, yellow, yellow, yellow, yellow, yellow, yellow, yellow];
l7color = [yellow, yellow, yellow, yellow, yellow, yellow, yellow, yellow, yellow, yellow, yellow, yellow, yellow, yellow];
}
if (_local1 == 6) {
linesnum = 9;
l1 = [1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2];
l2 = [1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2];
l3 = [1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2];
l4 = [1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2];
l5 = [1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2];
l6 = [1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2];
l7 = [1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2];
l8 = [1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2];
l1color = [yellow, 0, red, 0, yellow, 0, red, 0, yellow, 0, red, 0, yellow];
l2color = [yellow, 0, red, 0, yellow, 0, red, 0, yellow, 0, red, 0, yellow];
l3color = [yellow, 0, red, 0, yellow, 0, red, 0, yellow, 0, red, 0, yellow];
l4color = [yellow, 0, red, 0, yellow, 0, red, 0, yellow, 0, red, 0, yellow];
l5color = [yellow, 0, red, 0, yellow, 0, red, 0, yellow, 0, red, 0, yellow];
l6color = [yellow, 0, red, 0, yellow, 0, red, 0, yellow, 0, red, 0, yellow];
l7color = [yellow, 0, red, 0, yellow, 0, red, 0, yellow, 0, red, 0, yellow];
l8color = [yellow, 0, red, 0, yellow, 0, red, 0, yellow, 0, red, 0, yellow];
}
if (_local1 == 7) {
linesnum = 10;
l1 = [1, 1, 1, 0, 1, 1, 1, 0, 1, 1, 1, 0, 1, 0];
l2 = [0, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0];
l3 = [0, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0];
l4 = [1, 1, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0];
l5 = [1, 0, 0, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0];
l6 = [1, 0, 0, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0];
l7 = [1, 1, 1, 0, 1, 1, 1, 0, 1, 1, 1, 0, 1, 0];
l8 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
l9 = [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1];
l1color = [red, red, red, red, red, red, red, red, red, red, red, red, red, red];
l2color = [red, red, red, red, red, red, red, red, red, red, red, red, red, red];
l3color = [red, red, red, red, red, red, red, red, red, red, red, red, red, red];
l4color = [red, red, red, red, red, red, red, red, red, red, red, red, red, red];
l5color = [red, red, red, red, red, red, red, red, red, red, red, red, red, red];
l6color = [red, red, red, red, red, red, red, red, red, red, red, red, red, red];
l7color = [red, red, red, red, red, red, red, red, red, red, red, red, red, red];
l8color = [red, red, red, red, red, red, red, red, red, red, red, red, red, red];
l9color = [red, red, red, red, red, red, red, red, red, red, red, red, red, yellow];
}
if (_local1 == 8) {
linesnum = 11;
l1 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
l2 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
l3 = [0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0];
l4 = [0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0];
l5 = [0, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0];
l6 = [0, 1, 1, 1, 1, 0, 0, 0, 1, 1, 0, 1, 1, 0];
l7 = [0, 1, 1, 1, 1, 0, 0, 0, 1, 1, 0, 1, 1, 0];
l8 = [0, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0];
l9 = [0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0];
l10 = [0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0];
l1color = [yellow, yellow, yellow, yellow, yellow, yellow, yellow, yellow, yellow, yellow, yellow, yellow, yellow, yellow];
l2color = [yellow, yellow, yellow, yellow, yellow, yellow, yellow, yellow, yellow, yellow, yellow, yellow, yellow, yellow];
l3color = [yellow, yellow, yellow, yellow, yellow, yellow, yellow, yellow, yellow, yellow, yellow, yellow, yellow, yellow];
l4color = [yellow, yellow, yellow, yellow, blue, yellow, yellow, yellow, yellow, yellow, yellow, yellow, yellow, yellow];
l5color = [yellow, yellow, yellow, yellow, yellow, yellow, yellow, yellow, yellow, yellow, yellow, yellow, yellow, yellow];
l6color = [yellow, yellow, yellow, yellow, yellow, yellow, yellow, yellow, red, red, yellow, red, red, yellow];
l7color = [yellow, yellow, yellow, yellow, yellow, yellow, yellow, yellow, red, red, yellow, red, red, yellow];
l8color = [yellow, yellow, yellow, yellow, yellow, yellow, yellow, yellow, yellow, yellow, yellow, yellow, yellow, yellow];
l9color = [yellow, yellow, yellow, yellow, yellow, yellow, yellow, yellow, yellow, yellow, yellow, yellow, yellow, yellow];
l10color = [yellow, yellow, yellow, yellow, yellow, yellow, yellow, yellow, yellow, yellow, yellow, yellow, yellow, yellow];
}
if (_local1 == 9) {
linesnum = 14;
l1 = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1];
l2 = [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1];
l3 = [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1];
l4 = [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1];
l5 = [1, 0, 0, 0, 0, 2, 0, 0, 2, 0, 0, 0, 0, 1];
l6 = [1, 0, 0, 0, 0, 2, 1, 1, 2, 0, 0, 0, 0, 1];
l7 = [1, 0, 0, 0, 0, 2, 2, 2, 2, 0, 0, 0, 0, 1];
l8 = [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1];
l9 = [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1];
l10 = [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1];
l11 = [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1];
l12 = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1];
l1color = [yellow, cyan, yellow, cyan, yellow, cyan, yellow, cyan, yellow, cyan, yellow, cyan, yellow, cyan];
l2color = [cyan, yellow, yellow, yellow, yellow, yellow, yellow, yellow, yellow, yellow, yellow, yellow, yellow, yellow];
l3color = [yellow, yellow, yellow, yellow, yellow, yellow, yellow, yellow, yellow, yellow, yellow, yellow, yellow, cyan];
l4color = [cyan, yellow, yellow, yellow, blue, yellow, yellow, yellow, yellow, yellow, yellow, yellow, yellow, yellow];
l5color = [yellow, yellow, yellow, yellow, yellow, yellow, yellow, yellow, yellow, yellow, yellow, yellow, yellow, cyan];
l6color = [cyan, yellow, yellow, yellow, yellow, yellow, yellow, yellow, red, red, yellow, red, red, yellow];
l7color = [yellow, yellow, yellow, yellow, yellow, yellow, yellow, yellow, red, red, yellow, red, red, cyan];
l8color = [cyan, yellow, yellow, yellow, yellow, yellow, yellow, yellow, yellow, yellow, yellow, yellow, yellow, yellow];
l9color = [yellow, yellow, yellow, yellow, yellow, yellow, yellow, yellow, yellow, yellow, yellow, yellow, yellow, cyan];
l10color = [cyan, yellow, yellow, yellow, yellow, yellow, yellow, yellow, yellow, yellow, yellow, yellow, yellow, yellow];
l11color = [yellow, yellow, yellow, yellow, yellow, yellow, yellow, yellow, yellow, yellow, yellow, yellow, yellow, cyan];
l12color = [cyan, yellow, cyan, yellow, cyan, yellow, cyan, yellow, cyan, yellow, cyan, yellow, cyan, yellow];
}
if (_local1 == 10) {
linesnum = 14;
l1 = [2, 0, 0, 2, 0, 0, 1, 1, 0, 0, 2, 0, 0, 0];
l2 = [0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0];
l3 = [0, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 0];
l4 = [0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0];
l5 = [0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0];
l6 = [0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0];
l7 = [0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0];
l8 = [0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 2, 0, 0];
l9 = [0, 2, 0, 0, 0, 0, 2, 1, 2, 0, 0, 0, 0, 0];
l10 = [0, 0, 0, 2, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0];
l11 = [0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0];
l12 = [2, 0, 0, 0, 0, 1, 0, 1, 0, 0, 2, 0, 0, 0];
l13 = [0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 2];
l1color = [0, 0, 0, 0, 0, 0, green, green];
l2color = [0, 0, 0, 0, green, green, red, red, green, green];
l3color = [0, 0, green, green, red, red, red, red, red, red, green, green];
l4color = [0, green, red, red, red, red, red, red, red, red, red, red, green];
l5color = [0, green, red, red, red, red, red, red, red, red, red, red, green];
l6color = [0, green, green, green, green, green, green, green, green, green, green, green, green];
l7color = [0, 0, 0, 0, 0, 0, 0, purple];
l8color = [0, 0, 0, 0, 0, 0, 0, purple];
l9color = [0, 0, 0, 0, 0, 0, 0, purple];
l10color = [0, 0, 0, 0, 0, 0, 0, purple];
l11color = [0, 0, 0, 0, 0, purple, 0, purple];
l12color = [0, 0, 0, 0, 0, purple, 0, purple];
l13color = [0, 0, 0, 0, 0, 0, purple, 0];
}
}
green = 6933340 /* 0x69CB5C */;
red = 8138013 /* 0x7C2D1D */;
orange = 15502080 /* 0xEC8B00 */;
blue = 1772;
yellow = 15134208 /* 0xE6EE00 */;
purple = 15466690 /* 0xEC00C2 */;
cyan = 15198535 /* 0xE7E947 */;
cream = 14071345 /* 0xD6B631 */;
grey = 9134104 /* 0x8B6018 */;
boardmove = 6;
ballx = 3;
bally = 3;
gameon = 1;
shiftpressed = 0;
bonus1counter = 500;
bonus2counter = 520;
bonus3counter = 540;
bonus4counter = 560;
bonus5counter = 580;
bonus6counter = 600;
numofblocks = 0;
gun = 0;
bullet = 0;
miss = 0;
fireball = 0;
theLevel = 1;
score = Number(0);
setLevel(theLevel);
}
Instance of Symbol 133 MovieClip "func" in Frame 14
onClipEvent (load) {
function drawblocks() {
var _local1 = _root;
line = 1;
while (line < _local1.vars.linesnum) {
item = 0;
while (item < 14) {
if (_local1.vars["l" + line][item] == 1) {
blockscounter++;
duplicateMovieClip (_local1.block, "block" + blockscounter, blockscounter);
_local1.vars.numofblocks++;
_local1["block" + blockscounter]._x = cornerx + (item * 22);
_local1["block" + blockscounter]._y = cornery;
myColor = new Color(_local1["block" + blockscounter].cube);
myColor.setRGB(_local1.vars[("l" + line) + "color"][item]);
}
if (_local1.vars["l" + line][item] == 2) {
blockscounter++;
duplicateMovieClip (_local1.hardblock, "hardblock" + blockscounter, blockscounter);
_local1["hardblock" + blockscounter]._x = cornerx + (item * 22);
_local1["hardblock" + blockscounter]._y = cornery;
}
item++;
}
cornery = cornery + 9;
line++;
}
}
function miss() {
var _local1 = _root;
i = 500;
while (i < 520) {
removeMovieClip(_local1["bonus1" + i]);
i++;
}
i = 520;
while (i < 540) {
removeMovieClip(_local1["bonus2" + i]);
i++;
}
i = 540;
while (i < 560) {
removeMovieClip(_local1["bonus3" + i]);
i++;
}
i = 560;
while (i < 580) {
removeMovieClip(_local1["bonus4" + i]);
i++;
}
i = 580;
while (i < 600) {
removeMovieClip(_local1["bonus5" + i]);
i++;
}
_local1.vars.fireball = 0;
_local1.ball.gotoAndStop(1);
_local1.ship.gotoAndStop(1);
_local1.vars.bullet = 0;
_local1.vars.gun = 0;
_local1.vars.miss = _local1.vars.miss + 1;
_local1["psila" + _local1.vars.miss]._visible = false;
}
function clearblocks() {
var _local1 = _root;
i = 1;
while (i < 499) {
removeMovieClip(_local1["block" + i]);
i++;
}
i = 1;
while (i < 499) {
removeMovieClip(_local1["hardblock" + i]);
i++;
}
i = 500;
while (i < 520) {
removeMovieClip(_local1["bonus1" + i]);
i++;
}
i = 520;
while (i < 540) {
removeMovieClip(_local1["bonus2" + i]);
i++;
}
i = 540;
while (i < 560) {
removeMovieClip(_local1["bonus3" + i]);
i++;
}
i = 560;
while (i < 580) {
removeMovieClip(_local1["bonus4" + i]);
i++;
}
i = 580;
while (i < 600) {
removeMovieClip(_local1["bonus5" + i]);
i++;
}
}
function init() {
with (_root.vars) {
green = 1179448 /* 0x11FF38 */;
red = 15597663 /* 0xEE005F */;
orange = 15502080 /* 0xEC8B00 */;
blue = 1772;
yellow = 15134208 /* 0xE6EE00 */;
purple = 15466690 /* 0xEC00C2 */;
cyan = 4907230 /* 0x4AE0DE */;
boardmove = 6;
ballx = 3;
bally = 3;
gameon = 1;
shiftpressed = 0;
bonus1counter = 500;
bonus2counter = 520;
bonus3counter = 540;
bonus4counter = 560;
bonus5counter = 580;
bonus6counter = 600;
numofblocks = 0;
gun = 0;
bullet = 0;
miss = 0;
fireball = 0;
theLevel = 1;
score = Number(0);
_root.ball.gotoAndStop(1);
_root.ship.gotoAndStop(1);
}
}
cornerx = 15;
cornery = 40;
theColor = 16621877 /* 0xFDA135 */;
blockscounter = 0;
}
Instance of Symbol 137 MovieClip "sounds" in Frame 14
onClipEvent (load) {
ballhit_sfx = new Sound();
fire_sfx = new Sound();
ballhitship_sfx = new Sound();
blockhit_sfx = new Sound();
blockhit_sfx.attachSound("blockhit");
ballhitship_sfx.attachSound("ballhitship_sfx");
ballhit_sfx.attachSound("laser");
fire_sfx.attachSound("laser");
}
Frame 15
stop();
Frame 18
duplicateMovieClip (getready, "getready1", 2000);
getready1._visible = true;
getready1._x = getready._x;
getready1._y = getready._y;
getready1.gotoAndPlay(2);
Frame 19
stop();
Frame 24
stop();
Frame 31
_root.vars.ballx = 3;
_root.vars.bally = 3;
_root.vars.bonus1counter = 500;
_root.vars.bonus2counter = 520;
_root.vars.bonus3counter = 540;
_root.vars.bonus4counter = 560;
_root.vars.bonus5counter = 580;
_root.vars.bonus6counter = 600;
_root.vars.numofblocks = 0;
_root.vars.gun = 0;
_root.vars.bullet = 0;
_root.vars.fireball = 0;
_root.vars.gameon = 0;
_root.vars.shiftpressed = 0;
_root.func.cornerx = 15;
_root.func.cornery = 40;
_root.func.blockscounter = 0;
_root.ball.gotoAndStop(1);
_root.ship.gotoAndStop(1);
_root.ball._x = _root.ship._x;
_root.ball._y = _root.ship._y - 20;
i = 0;
while (i < 500) {
removeMovieClip(_root["hardblock" + i]);
i++;
}
i = 500;
while (i < 520) {
removeMovieClip(_root["bonus1" + i]);
i++;
}
i = 520;
while (i < 540) {
removeMovieClip(_root["bonus2" + i]);
i++;
}
i = 540;
while (i < 560) {
removeMovieClip(_root["bonus3" + i]);
i++;
}
i = 560;
while (i < 580) {
removeMovieClip(_root["bonus4" + i]);
i++;
}
i = 580;
while (i < 600) {
removeMovieClip(_root["bonus5" + i]);
i++;
}
if (_root.vars.theLevel == 11) {
_root.vars.score = Number(0);
_root.vars.theLevel = 1;
gotoAndStop (5);
}
Frame 32
stop();
Symbol 19 MovieClip Frame 1
this._parent._width = Stage.width;
this._parent._height = Stage.height;
stop();
Symbol 20 MovieClip Frame 1
_parent.stop();
Symbol 20 MovieClip Frame 253
if (b._currentframe == 1) {
b.gotoAndStop(2);
gotoAndPlay (2);
}
Symbol 20 MovieClip Frame 254
stop();
_parent.play();
Symbol 73 MovieClip Frame 1
stop();
Instance of Symbol 78 MovieClip "startButton" in Symbol 79 MovieClip Frame 1
on (press) {
_root.gotoAndPlay(29);
}
Symbol 111 MovieClip Frame 1
stop();
Symbol 111 MovieClip Frame 2
stop();
Symbol 111 MovieClip Frame 3
stop();
Symbol 111 MovieClip Frame 4
stop();
Symbol 115 MovieClip Frame 1
stop();
Symbol 115 MovieClip Frame 2
stop();
Symbol 144 MovieClip Frame 1
stop();
Symbol 144 MovieClip Frame 2
play();
Symbol 144 MovieClip Frame 55
_root.ball._x = 160;
_root.ball._y = 220;
_root.vars.gameon = 1;
_root.gotoAndPlay("game1");
removeMovieClip(this);
Symbol 154 MovieClip Frame 100
_root.func.clearblocks();
Symbol 154 MovieClip Frame 103
_root.func.init();
_root.gotoAndPlay(1);
Symbol 175 MovieClip Frame 1
if (_root.vars.theLevel == 1) {
} else {
gotoAndStop(_root.vars.theLevel);
}
stop();
Symbol 175 MovieClip Frame 2
stop();
Symbol 175 MovieClip Frame 3
stop();
Symbol 175 MovieClip Frame 4
stop();
Symbol 175 MovieClip Frame 5
stop();
Symbol 175 MovieClip Frame 6
stop();
Symbol 175 MovieClip Frame 7
stop();
Symbol 175 MovieClip Frame 8
stop();
Symbol 175 MovieClip Frame 9
stop();
Symbol 175 MovieClip Frame 10
stop();
Symbol 175 MovieClip Frame 11
stop();
Symbol 193 MovieClip Frame 1
if (_root.vars.theLevel == 1) {
gotoAndPlay (135);
}
Symbol 193 MovieClip Frame 264
_root.vars.gameon = 1;
_root.vars.setLevel(_root.vars.theLevel);
if (_root.vars.theLevel == 1) {
_root.gotoAndStop("game");
gotoAndStop (135);
} else {
_root.gotoAndStop("game");
this.EndGameClip.gotoAndStop(_root.vars.theLevel);
gotoAndPlay (2);
}