Frame 1
function blockload() {
var _local2 = _root;
_local2.points = _local2.points + 1;
var _local1 = "point" + _local2.points;
game[_local1] = new game.point();
game[_local1].id = _local2.points;
game.pointsa.push(game[_local1]);
game[_local1].clip = attachMovie("complete", _local1, (10 * _local2.points) + 4);
game[_local1].y = 352.3 - (_local2.points * 7);
game[_local1].x = 12.1;
game[_local1].clip._x = game[_local1].x;
game[_local1].clip._y = game[_local1].y;
}
stop();
Stage.showMenu = false;
_root.gamemode = 1;
_root.loadtimer = 12;
_root.difficulty = 2;
_root.TotalBroken = 1;
_root.stopped = 0;
game = {points:0, blah:0};
_root.points = 0;
_root.point2s = 0;
game.pointsa = new Array();
game.point = function () {
};
game.point2sa = new Array();
game.point2 = function () {
};
i = 0;
while (i < 50) {
_root.point2s = _root.point2s + 1;
var name = ("point2" + _root.point2s);
game[name] = new game.point2();
game[name].id = _root.point2s;
game.point2sa.push(game[name]);
game[name].clip = attachMovie("complete", name, (10 * _root.point2s) + 1);
game[name].y = 352.3 - (_root.point2s * 7);
game[name].x = 12.1;
game[name].clip._x = game[name].x;
game[name].clip._y = game[name].y;
game[name].clip._alpha = 15;
i = i + 1;
}
_global.CountDown = function (obj) {
var _local1 = this;
_local1.refobj = obj;
_local1.startbytes = _local1.refobj.getBytesLoaded();
_local1.lastbytes = _local1.refobj.getBytesLoaded();
_local1.avgbytes = 0.1;
_local1.nullchar = "-";
_local1.secs = 0;
_local1.runAvg = function () {
var _local1 = this;
_local1.secs++;
_local1.loadedbytes = _local1.refobj.getBytesLoaded();
_local1.avgbytes = (((_local1.loadedbytes - _local1.startbytes) / _local1.secs) * 0.7) + ((_local1.loadedbytes - _local1.lastbytes) * 0.3);
_local1.lastbytes = _local1.loadedbytes;
if (_local1.loadedbytes >= _local1.refobj.getBytesTotal()) {
clearInterval(_local1.interv);
}
};
_local1.interv = setInterval(_local1, "runAvg", 1000);
};
CountDown.prototype.getSecondsLeft = function (finishbytes) {
var _local1 = this;
if ((!finishbytes.length) || (finishbytes > _local1.refobj.getBytesTotal())) {
var finishbytes = _local1.refobj.getBytesTotal();
}
var _local2;
var _local3 = finishbytes - _local1.loadedbytes;
if (_local1.secs == 0) {
_local2 = _local1.nullchar;
} else if (_local3 > 0) {
_local2 = Math.ceil(_local3 / _local1.avgbytes);
} else {
_local2 = 0;
}
return(_local2);
};
CountDown.prototype.setDefault = function (char) {
this.nullchar = char;
};
mycounter = new CountDown(_root);
_root.onEnterFrame = function () {
_root.timeleft = mycounter.getSecondsLeft() + " seconds left";
};
Instance of Symbol 8 MovieClip in Frame 1
onClipEvent (enterFrame) {
PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (_root.loadtimer == _root.playtime) {
_root.loadtimer = _root.loadtimer + 12;
_root.timeloaded = _root.timeloaded + 1;
_root.timeloaded2 = "time loaded : " + _root.timeloaded;
_root.currentbps = _root.getBytesLoaded() - _root.currentb;
_root.currentb = _root.getBytesLoaded();
_root.currentbpsdis = _root.currentbps + " bps";
}
i = 0;
while (i < 100) {
if ((_root.points < i) and (PercentLoaded > (i * 2))) {
_root.blockload();
}
i = i + 1;
}
_root.bytesloaded = ((_root.getBytesLoaded() + " / ") + _root.getBytesTotal()) + " bytes loaded";
if (PercentLoaded != 100) {
this._height = PercentLoaded * 3;
} else {
_root.play();
}
}
Instance of Symbol 21 MovieClip in Frame 1
onClipEvent (enterFrame) {
_root.playtime = _root.playtime + 1;
_root.HoursPlayed = Math.floor(_root.playtime / 43200);
_root.MinsPlayed = Math.floor((_root.playtime - (_root.HoursPlayed * 43200)) / 720);
_root.SecsPlayed = Math.floor((_root.playtime - ((_root.HoursPlayed * 43200) + (_root.MinsPlayed * 720))) / 12);
_root.DisplayTime = (((_root.HoursPlayed + " : ") + _root.MinsPlayed) + " : ") + _root.SecsPlayed;
}
Frame 2
var i = 0;
while (i < game.pointsa.length) {
var ob = game.pointsa[i];
ob.clip.removeMovieClip();
i++;
}
var i = 0;
while (i < game.point2sa.length) {
var ob = game.point2sa[i];
ob.clip.removeMovieClip();
i++;
}
Instance of Symbol 36 MovieClip "playpauseclip" in Frame 2
onClipEvent (enterFrame) {
if (_root.stopped == 1) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
}
Instance of Symbol 39 MovieClip in Frame 2
onClipEvent (enterFrame) {
if (_root.difficulty == 4) {
this._x = 201.2;
this._y = 177.8;
}
if (_root.difficulty == 3) {
this._x = 201.2;
this._y = 155.1;
}
if (_root.difficulty == 2) {
this._x = 36.5;
this._y = 178.1;
}
if (_root.difficulty == 1) {
this._x = 35.5;
this._y = 155.8;
}
}
Instance of Symbol 39 MovieClip in Frame 2
onClipEvent (enterFrame) {
if (_root.gamemode == 2) {
this._x = 27.3;
this._y = 320.9;
}
if (_root.gamemode == 1) {
this._x = 27.3;
this._y = 294.2;
}
}
Frame 4
stop();
Frame 5
function startgame() {
var _local1 = _root;
time = time + 1;
deletedone = 0;
if (time == nextblock) {
nextblock = nextblock + _local1.LvlSpeed;
if (_local1.hitgreen == 0) {
nextblock = nextblock - _local1.LvlSpeed;
nextblock = nextblock + 1;
}
if (((((((((row1z < _local1.LevelGreen) and (row2z < _local1.LevelGreen)) and (row3z < _local1.LevelGreen)) and (row4z < _local1.LevelGreen)) and (row5z < _local1.LevelGreen)) and (row6z < _local1.LevelGreen)) and (row7z < _local1.LevelGreen)) and (row8z < _local1.LevelGreen)) and (row9z < _local1.LevelGreen)) {
_local1.hitgreen = 0;
}
rowrand = Math.floor(Math.random() * 9);
rowrand = rowrand + 1;
if (_local1.LvlSpeed < 5) {
rowrand = Math.floor(Math.random() * 10);
rowrand = rowrand + 1;
}
if (_local1.LvlSpeed < 3) {
rowrand = Math.floor(Math.random() * 12);
rowrand = rowrand + 1;
}
if (_local1.LvlSpeed < 2) {
rowrand = Math.floor(Math.random() * 15);
rowrand = rowrand + 1;
}
if (_local1.hitgreen == 0) {
rowrand = Math.floor(Math.random() * 9);
rowrand = rowrand + 1;
}
if (rowrand == 1) {
row1z = row1z + 1;
if (row1z > _local1.LevelMax) {
_local1.gotoAndStop(6);
}
if (row1z > (((_local1.LevelMax - _local1.LevelGreen) / 2) + _local1.LevelGreen)) {
_local1.hitgreen = 1;
}
game.blockcounter++;
if (game.blockcounter > 99995) {
game.blockcounter = 0;
}
var _local2 = "block" + game.blockcounter;
game[_local2] = new game.block();
game[_local2].id = game.blockcounter;
game.blocks.push(game[_local2]);
zeval = row1z * 10;
game[_local2].clip = attachMovie("block", _local2, zeval + 1);
game[_local2].x = 136.2;
game[_local2].y = 321.3 - (row1z * 7);
game[_local2].Z = row1z;
game[_local2].rowID = 1;
game[_local2].clip._x = game[_local2].x;
game[_local2].clip._y = game[_local2].y;
game[_local2].clip.gotoAndStop(1);
}
if (rowrand == 2) {
row2z = row2z + 1;
if (row2z > _local1.LevelMax) {
_local1.gotoAndStop(6);
}
if (row2z > (((_local1.LevelMax - _local1.LevelGreen) / 2) + _local1.LevelGreen)) {
_local1.hitgreen = 1;
}
game.blockcounter++;
if (game.blockcounter > 99995) {
game.blockcounter = 0;
}
var _local2 = "block" + game.blockcounter;
game[_local2] = new game.block();
game[_local2].id = game.blockcounter;
game.blocks.push(game[_local2]);
zeval = row2z * 10;
game[_local2].clip = attachMovie("block", _local2, zeval + 2);
game[_local2].x = 105;
game[_local2].y = 337 - (row2z * 7);
game[_local2].Z = row2z;
game[_local2].rowID = 2;
game[_local2].clip._x = game[_local2].x;
game[_local2].clip._y = game[_local2].y;
game[_local2].clip.gotoAndStop(2);
}
if (rowrand == 3) {
row3z = row3z + 1;
if (row3z > _local1.LevelMax) {
_local1.gotoAndStop(6);
}
if (row3z > (((_local1.LevelMax - _local1.LevelGreen) / 2) + _local1.LevelGreen)) {
_local1.hitgreen = 1;
}
game.blockcounter++;
if (game.blockcounter > 99995) {
game.blockcounter = 0;
}
var _local2 = "block" + game.blockcounter;
game[_local2] = new game.block();
game[_local2].id = game.blockcounter;
game.blocks.push(game[_local2]);
zeval = row3z * 10;
game[_local2].clip = attachMovie("block", _local2, zeval + 3);
game[_local2].x = 167.7;
game[_local2].y = 337 - (row3z * 7);
game[_local2].Z = row3z;
game[_local2].rowID = 3;
game[_local2].clip._x = game[_local2].x;
game[_local2].clip._y = game[_local2].y;
game[_local2].clip.gotoAndStop(3);
}
if (rowrand == 4) {
row4z = row4z + 1;
if (row4z > _local1.LevelMax) {
_local1.gotoAndStop(6);
}
if (row4z > (((_local1.LevelMax - _local1.LevelGreen) / 2) + _local1.LevelGreen)) {
_local1.hitgreen = 1;
}
game.blockcounter++;
if (game.blockcounter > 99995) {
game.blockcounter = 0;
}
var _local2 = "block" + game.blockcounter;
game[_local2] = new game.block();
game[_local2].id = game.blockcounter;
game.blocks.push(game[_local2]);
zeval = row4z * 10;
game[_local2].clip = attachMovie("block", _local2, zeval + 4);
game[_local2].x = 73.6;
game[_local2].y = 352.9 - (row4z * 7);
game[_local2].Z = row4z;
game[_local2].rowID = 4;
game[_local2].clip._x = game[_local2].x;
game[_local2].clip._y = game[_local2].y;
game[_local2].clip.gotoAndStop(4);
}
if (rowrand == 5) {
row5z = row5z + 1;
if (row5z > _local1.LevelMax) {
_local1.gotoAndStop(6);
}
if (row5z > (((_local1.LevelMax - _local1.LevelGreen) / 2) + _local1.LevelGreen)) {
_local1.hitgreen = 1;
}
game.blockcounter++;
if (game.blockcounter > 99995) {
game.blockcounter = 0;
}
var _local2 = "block" + game.blockcounter;
game[_local2] = new game.block();
game[_local2].id = game.blockcounter;
game.blocks.push(game[_local2]);
zeval = row5z * 10;
game[_local2].clip = attachMovie("block", _local2, zeval + 5);
game[_local2].x = 136.2;
game[_local2].y = 352.9 - (row5z * 7);
game[_local2].Z = row5z;
game[_local2].rowID = 5;
game[_local2].clip._x = game[_local2].x;
game[_local2].clip._y = game[_local2].y;
game[_local2].clip.gotoAndStop(5);
}
if (rowrand == 6) {
row6z = row6z + 1;
if (row6z > _local1.LevelMax) {
_local1.gotoAndStop(6);
}
if (row6z > (((_local1.LevelMax - _local1.LevelGreen) / 2) + _local1.LevelGreen)) {
_local1.hitgreen = 1;
}
game.blockcounter++;
if (game.blockcounter > 99995) {
game.blockcounter = 0;
}
var _local2 = "block" + game.blockcounter;
game[_local2] = new game.block();
game[_local2].id = game.blockcounter;
game.blocks.push(game[_local2]);
zeval = row6z * 10;
game[_local2].clip = attachMovie("block", _local2, zeval + 6);
game[_local2].x = 199.1;
game[_local2].y = 352.9 - (row6z * 7);
game[_local2].Z = row6z;
game[_local2].rowID = 6;
game[_local2].clip._x = game[_local2].x;
game[_local2].clip._y = game[_local2].y;
game[_local2].clip.gotoAndStop(6);
}
if (rowrand == 7) {
row7z = row7z + 1;
if (row7z > _local1.LevelMax) {
_local1.gotoAndStop(6);
}
if (row7z > (((_local1.LevelMax - _local1.LevelGreen) / 2) + _local1.LevelGreen)) {
_local1.hitgreen = 1;
}
game.blockcounter++;
if (game.blockcounter > 99995) {
game.blockcounter = 0;
}
var _local2 = "block" + game.blockcounter;
game[_local2] = new game.block();
game[_local2].id = game.blockcounter;
game.blocks.push(game[_local2]);
zeval = row7z * 10;
game[_local2].clip = attachMovie("block", _local2, zeval + 7);
game[_local2].x = 105;
game[_local2].y = 368.6 - (row7z * 7);
game[_local2].Z = row7z;
game[_local2].rowID = 7;
game[_local2].clip._x = game[_local2].x;
game[_local2].clip._y = game[_local2].y;
game[_local2].clip.gotoAndStop(7);
}
if (rowrand == 8) {
row8z = row8z + 1;
if (row8z > _local1.LevelMax) {
_local1.gotoAndStop(6);
}
if (row8z > (((_local1.LevelMax - _local1.LevelGreen) / 2) + _local1.LevelGreen)) {
_local1.hitgreen = 1;
}
game.blockcounter++;
if (game.blockcounter > 99995) {
game.blockcounter = 0;
}
var _local2 = "block" + game.blockcounter;
game[_local2] = new game.block();
game[_local2].id = game.blockcounter;
game.blocks.push(game[_local2]);
zeval = row8z * 10;
game[_local2].clip = attachMovie("block", _local2, zeval + 8);
game[_local2].x = 167.7;
game[_local2].y = 368.6 - (row8z * 7);
game[_local2].Z = row8z;
game[_local2].rowID = 8;
game[_local2].clip._x = game[_local2].x;
game[_local2].clip._y = game[_local2].y;
game[_local2].clip.gotoAndStop(8);
}
if (rowrand == 9) {
row9z = row9z + 1;
if (row9z > _local1.LevelMax) {
_local1.gotoAndStop(6);
}
if (row9z > (((_local1.LevelMax - _local1.LevelGreen) / 2) + _local1.LevelGreen)) {
_local1.hitgreen = 1;
}
game.blockcounter++;
if (game.blockcounter > 99995) {
game.blockcounter = 0;
}
var _local2 = "block" + game.blockcounter;
game[_local2] = new game.block();
game[_local2].id = game.blockcounter;
game.blocks.push(game[_local2]);
zeval = row9z * 10;
game[_local2].clip = attachMovie("block", _local2, zeval + 9);
game[_local2].x = 136.2;
game[_local2].y = 384.4 - (row9z * 7);
game[_local2].Z = row9z;
game[_local2].rowID = 9;
game[_local2].clip._x = game[_local2].x;
game[_local2].clip._y = game[_local2].y;
game[_local2].clip.gotoAndStop(9);
}
}
}
function destroyrow() {
var _local3 = _root;
var _local2 = 0;
while (_local2 < game.blocks.length) {
var _local1 = game.blocks[_local2];
_local1.delbul = 0;
if (((row1z == _local1.Z) and (deletedone == 0)) and (_local1.rowID == 1)) {
_local1.delbul = 1;
if (_local3.LevelGreen == row1z) {
_local3.pointup();
}
row1z = row1z - 1;
if (row1z < _local3.LevelMin) {
_local3.gotoAndStop(6);
}
deletedone = 1;
if (_local1.delbul == 1) {
_local1.clip.gotoAndStop(10);
_local3.destroyed = _local3.destroyed + 1;
_local3.TotalBroken = _local3.TotalBroken + 1;
delete game["block" + game.blocks[_local2].id];
game.blocks.splice(_local2, 1);
_local1.delbul = 0;
}
}
_local2++;
}
}
function destroyrow2() {
var _local3 = _root;
var _local2 = 0;
while (_local2 < game.blocks.length) {
var _local1 = game.blocks[_local2];
_local1.delbul = 0;
if (((row2z == _local1.Z) and (deletedone == 0)) and (_local1.rowID == 2)) {
_local1.delbul = 1;
if (_local3.LevelGreen == row2z) {
_local3.pointup();
}
row2z = row2z - 1;
if (row2z < _local3.LevelMin) {
_local3.gotoAndStop(6);
}
deletedone = 1;
if (_local1.delbul == 1) {
_local1.clip.gotoAndStop(10);
_local3.destroyed = _local3.destroyed + 1;
_local3.TotalBroken = _local3.TotalBroken + 1;
delete game["block" + game.blocks[_local2].id];
game.blocks.splice(_local2, 1);
_local1.delbul = 0;
}
}
_local2++;
}
}
function destroyrow3() {
var _local3 = _root;
var _local2 = 0;
while (_local2 < game.blocks.length) {
var _local1 = game.blocks[_local2];
_local1.delbul = 0;
if (((row3z == _local1.Z) and (deletedone == 0)) and (_local1.rowID == 3)) {
_local1.delbul = 1;
if (_local3.LevelGreen == row3z) {
_local3.pointup();
}
row3z = row3z - 1;
if (row3z < _local3.LevelMin) {
_local3.gotoAndStop(6);
}
deletedone = 1;
if (_local1.delbul == 1) {
_local1.clip.gotoAndStop(10);
_local3.destroyed = _local3.destroyed + 1;
_local3.TotalBroken = _local3.TotalBroken + 1;
delete game["block" + game.blocks[_local2].id];
game.blocks.splice(_local2, 1);
_local1.delbul = 0;
}
}
_local2++;
}
}
function destroyrow4() {
var _local3 = _root;
var _local2 = 0;
while (_local2 < game.blocks.length) {
var _local1 = game.blocks[_local2];
_local1.delbul = 0;
if (((row4z == _local1.Z) and (deletedone == 0)) and (_local1.rowID == 4)) {
_local1.delbul = 1;
if (_local3.LevelGreen == row4z) {
_local3.pointup();
}
row4z = row4z - 1;
if (row4z < _local3.LevelMin) {
_local3.gotoAndStop(6);
}
deletedone = 1;
if (_local1.delbul == 1) {
_local1.clip.gotoAndStop(10);
_local3.destroyed = _local3.destroyed + 1;
_local3.TotalBroken = _local3.TotalBroken + 1;
delete game["block" + game.blocks[_local2].id];
game.blocks.splice(_local2, 1);
_local1.delbul = 0;
}
}
_local2++;
}
}
function destroyrow5() {
var _local3 = _root;
var _local2 = 0;
while (_local2 < game.blocks.length) {
var _local1 = game.blocks[_local2];
_local1.delbul = 0;
if (((row5z == _local1.Z) and (deletedone == 0)) and (_local1.rowID == 5)) {
_local1.delbul = 1;
if (_local3.LevelGreen == row5z) {
_local3.pointup();
}
row5z = row5z - 1;
if (row5z < _local3.LevelMin) {
_local3.gotoAndStop(6);
}
deletedone = 1;
if (_local1.delbul == 1) {
_local1.clip.gotoAndStop(10);
_local3.destroyed = _local3.destroyed + 1;
_local3.TotalBroken = _local3.TotalBroken + 1;
delete game["block" + game.blocks[_local2].id];
game.blocks.splice(_local2, 1);
_local1.delbul = 0;
}
}
_local2++;
}
}
function destroyrow6() {
var _local3 = _root;
var _local2 = 0;
while (_local2 < game.blocks.length) {
var _local1 = game.blocks[_local2];
_local1.delbul = 0;
if (((row6z == _local1.Z) and (deletedone == 0)) and (_local1.rowID == 6)) {
_local1.delbul = 1;
if (_local3.LevelGreen == row6z) {
_local3.pointup();
}
row6z = row6z - 1;
if (row6z < _local3.LevelMin) {
_local3.gotoAndStop(6);
}
deletedone = 1;
if (_local1.delbul == 1) {
_local1.clip.gotoAndStop(10);
_local3.destroyed = _local3.destroyed + 1;
_local3.TotalBroken = _local3.TotalBroken + 1;
delete game["block" + game.blocks[_local2].id];
game.blocks.splice(_local2, 1);
_local1.delbul = 0;
}
}
_local2++;
}
}
function destroyrow7() {
var _local3 = _root;
var _local2 = 0;
while (_local2 < game.blocks.length) {
var _local1 = game.blocks[_local2];
_local1.delbul = 0;
if (((row7z == _local1.Z) and (deletedone == 0)) and (_local1.rowID == 7)) {
_local1.delbul = 1;
if (_local3.LevelGreen == row7z) {
_local3.pointup();
}
row7z = row7z - 1;
if (row7z < _local3.LevelMin) {
_local3.gotoAndStop(6);
}
deletedone = 1;
if (_local1.delbul == 1) {
_local1.clip.gotoAndStop(10);
_local3.destroyed = _local3.destroyed + 1;
_local3.TotalBroken = _local3.TotalBroken + 1;
delete game["block" + game.blocks[_local2].id];
game.blocks.splice(_local2, 1);
_local1.delbul = 0;
}
}
_local2++;
}
}
function destroyrow8() {
var _local2 = _root;
var _local3 = 0;
while (_local3 < game.blocks.length) {
var _local1 = game.blocks[_local3];
_local1.delbul = 0;
if (((row8z == _local1.Z) and (deletedone == 0)) and (_local1.rowID == 8)) {
_local1.delbul = 1;
if (_local2.LevelGreen == row8z) {
_local2.pointup();
}
row8z = row8z - 1;
if (row8z < _local2.LevelMin) {
_local2.gotoAndStop(6);
}
deletedone = 1;
if (_local1.delbul == 1) {
_local2.destroyed = _local2.destroyed + 1;
_local1.clip.gotoAndStop(10);
_local2.destroyed = _local2.destroyed + 1;
_local2.TotalBroken = _local2.TotalBroken + 1;
delete game["block" + game.blocks[_local3].id];
game.blocks.splice(_local3, 1);
_local1.delbul = 0;
}
}
_local3++;
}
}
function destroyrow9() {
var _local3 = _root;
var _local2 = 0;
while (_local2 < game.blocks.length) {
var _local1 = game.blocks[_local2];
_local1.delbul = 0;
if (((row9z == _local1.Z) and (deletedone == 0)) and (_local1.rowID == 9)) {
_local1.delbul = 1;
if (_local3.LevelGreen == row9z) {
_local3.pointup();
}
row9z = row9z - 1;
if (row9z < _local3.LevelMin) {
_local3.gotoAndStop(6);
}
deletedone = 1;
if (_local1.delbul == 1) {
_local1.clip.gotoAndStop(10);
_local3.destroyed = _local3.destroyed + 1;
_local3.TotalBroken = _local3.TotalBroken + 1;
delete game["block" + game.blocks[_local2].id];
game.blocks.splice(_local2, 1);
_local1.delbul = 0;
}
}
_local2++;
}
}
function pointup() {
var _local2 = _root;
_local2.points = _local2.points + 1;
var _local1 = "point" + _local2.points;
game[_local1] = new game.point();
game[_local1].id = _local2.points;
game.pointsa.push(game[_local1]);
game[_local1].clip = attachMovie("complete", _local1, 999999 + _local2.points);
game[_local1].y = 352.3 - (_local2.points * 7);
game[_local1].x = 12.1;
game[_local1].clip._x = game[_local1].x;
game[_local1].clip._y = game[_local1].y;
time = nextblock - 1;
if (_local2.points == _local2.PointsNeeded) {
_local2.gotoAndStop(7);
}
}
stop();
_root.pausegame = 0;
_root.hitgreen = 0;
varlvl = _root.Level;
_root.Levels = [[10, 1, 10, 20, 0], [10, 0, 5, 25, 0], [11, 5, 10, 25, 0], [12, 10, 15, 25, 0], [13, 10, 20, 25, 0], [14, 10, 20, 30, 0], [15, 5, 15, 20, 0], [16, 10, 20, 25, 0], [17, 5, 10, 15, 0], [18, 10, 14, 20, 0], [19, 12, 16, 20, 0], [20, 1, 5, 25, 1], [21, 5, 10, 25, 1], [22, 10, 15, 25, 1], [23, 10, 20, 25, 1], [24, 10, 20, 30, 1], [25, 5, 15, 20, 2], [26, 10, 20, 25, 2], [27, 5, 10, 15, 2], [28, 10, 14, 20, 2], [29, 12, 16, 20, 2], [30, 1, 5, 25, 3], [31, 5, 10, 25, 3], [32, 10, 15, 25, 3], [33, 10, 20, 25, 3], [34, 10, 20, 30, 3], [35, 5, 15, 20, 4], [36, 10, 20, 25, 4], [37, 5, 10, 15, 4], [38, 10, 14, 20, 4], [39, 12, 16, 20, 4], [40, 1, 5, 25, 5], [41, 5, 10, 25, 5], [42, 10, 15, 25, 5], [43, 10, 20, 25, 6], [44, 10, 20, 30, 6], [45, 5, 15, 20, 6], [46, 10, 20, 25, 6], [47, 5, 10, 15, 7], [48, 10, 14, 20, 7], [49, 12, 16, 20, 7], [50, 1, 20, 30, 8]];
_root.PointsNeeded = _root.Levels[varlvl][0];
_root.LevelMin = _root.Levels[varlvl][1];
_root.LevelGreen = _root.Levels[varlvl][2];
_root.LevelMax = _root.Levels[varlvl][3];
_root.LvlSpeed = _root.BaseSpd - _root.Levels[varlvl][4];
if ((_root.Level > 50) or ((_root.Level > 20) and (_root.difficulty == 4))) {
_root.PointsNeeded = 50;
rowrand = Math.floor(Math.random() * 5);
rowrand = rowrand + 5;
_root.LevelMin = rowrand;
rowrand = Math.floor(Math.random() * 5);
rowrand = rowrand + 10;
_root.LevelGreen = rowrand;
rowrand = Math.floor(Math.random() * 5);
rowrand = rowrand + 15;
_root.LevelMax = rowrand;
_root.LvlSpeed = 8;
}
if (_root.LvlSpeed < 1) {
_root.LvlSpeed = 1;
}
if ((_root.LvlSpeed == 1) and (_root.gamemode == 1)) {
_root.LvlSpeed = 3;
}
_root.destroyed = 0;
_root.points = 0;
row1z = 0;
row2z = 0;
row3z = 0;
row4z = 0;
row5z = 0;
row6z = 0;
row7z = 0;
row8z = 0;
row9z = 0;
attachMovie("complete", "greenzone2", 999999 + _root.points);
_root.greenzone2._y = 352.3 - (_root.PointsNeeded * 7);
_root.greenzone2._x = 12.1;
_root.greenzone2._alpha = 25;
_root.attachMovie("redzone", "redzone1", (_root.LevelMin * 10) + 10);
_root.redzone1._y = 321.4 - (_root.LevelMin * 7);
_root.redzone1._x = 73.6;
_root.attachMovie("redzone", "redzone2", (_root.LevelMax * 10) + 10);
_root.redzone2._y = 321.4 - (_root.LevelMax * 7);
_root.redzone2._x = 73.6;
_root.attachMovie("greenzone", "greenzone", (_root.LevelGreen * 10) + 10);
_root.greenzone._y = 321.4 - (_root.LevelGreen * 7);
_root.greenzone._x = 73.6;
time = 0;
deletedone = 0;
nextblock = 24;
game = {points:0, blah:0};
game.blocks = new Array();
game.blockcounter = 0;
game.pointsa = new Array();
game.point = function () {
};
game.block = function () {
};
game.block.prototype.speed = 5;
game.block.prototype.dirx = 0;
game.block.prototype.diry = -1;
game.block.prototype.width = 20;
game.block.prototype.height = 20;
BulCount = 0;
Distance = 0;
Instance of Symbol 21 MovieClip in Frame 5
onClipEvent (enterFrame) {
if (_root.pausegame == 0) {
_root.startgame();
if (_root.gamemode == 2) {
if (Key.isDown(103)) {
_root.destroyrow();
}
if (Key.isDown(100)) {
_root.destroyrow2();
}
if (Key.isDown(104)) {
_root.destroyrow3();
}
if (Key.isDown(97)) {
_root.destroyrow4();
}
if (Key.isDown(101)) {
_root.destroyrow5();
}
if (Key.isDown(105)) {
_root.destroyrow6();
}
if (Key.isDown(98)) {
_root.destroyrow7();
}
if (Key.isDown(102)) {
_root.destroyrow8();
}
if (Key.isDown(99)) {
_root.destroyrow9();
}
}
}
}
Instance of Symbol 125 MovieClip in Frame 5
onClipEvent (enterFrame) {
if (_root.Level == 1) {
this.gotoAndStop(1);
}
if (_root.Level == 2) {
this.gotoAndStop(2);
}
if (_root.Level > 2) {
this.gotoAndStop(3);
}
}
Frame 6
var i = 0;
while (i < game.blocks.length) {
var ob = game.blocks[i];
ob.clip.removeMovieClip();
i++;
}
var i = 0;
while (i < game.pointsa.length) {
var ob = game.pointsa[i];
ob.clip.removeMovieClip();
i++;
}
_root.redzone1.removeMovieClip();
_root.redzone2.removeMovieClip();
_root.greenzone.removeMovieClip();
_root.greenzone2.removeMovieClip();
_root.TotalBroken2 = _root.TotalBroken;
_root.Loses = _root.Loses + 1;
Frame 7
stop();
var i = 0;
while (i < game.blocks.length) {
var ob = game.blocks[i];
ob.clip.removeMovieClip();
i++;
}
var i = 0;
while (i < game.pointsa.length) {
var ob = game.pointsa[i];
ob.clip.removeMovieClip();
i++;
}
_root.redzone1.removeMovieClip();
_root.redzone2.removeMovieClip();
_root.greenzone.removeMovieClip();
_root.greenzone2.removeMovieClip();
_root.TotalBroken = _root.TotalBroken + _root.Destroyed;
_root.Wins = _root.Wins + 1;
_root.Level = _root.Level + 1;
_root.gotoAndStop(5);
_root.attachMovie("winplz", "winplzclip", 999569);
Frame 8
stop();
Frame 9
stop();
Frame 10
stop();
Symbol 23 Button
on (release) {
_root.SAVED.removeMovieClip();
}
Symbol 29 Button
on (release) {
this.removeMovieClip();
}
Symbol 30 MovieClip [winplz] Frame 29
_root.winplzclip.removeMovieClip();
Symbol 32 Button
on (release) {
if (_root.stopped == 0) {
stop();
_root.stopped = 1;
} else {
play();
_root.stopped = 0;
}
}
Symbol 33 MovieClip Frame 7340
gotoAndPlay (1);
Symbol 71 Button
on (release) {
_root.gotoAndPlay(5);
_root.Level = 1;
if (_root.gamemode == 1) {
_root.BaseSpd = 10;
}
if (_root.gamemode == 2) {
_root.BaseSpd = 8;
}
if (_root.difficulty == 1) {
_root.BaseSpd = _root.BaseSpd + 5;
}
if (_root.difficulty == 2) {
}
if (_root.difficulty == 3) {
_root.BaseSpd = _root.BaseSpd - 3;
}
if (_root.difficulty == 4) {
_root.BaseSpd = _root.BaseSpd - 10;
}
}
Symbol 73 Button
on (release) {
_root.gamemode = 1;
}
Symbol 74 Button
on (release) {
_root.gamemode = 2;
}
Symbol 77 Button
on (release) {
_quality = "Low";
}
Symbol 78 Button
on (release) {
_quality = "Medium";
}
Symbol 79 Button
on (release) {
_quality = "High";
}
Symbol 82 Button
on (release) {
_root.difficulty = 2;
}
Symbol 83 Button
on (release) {
_root.difficulty = 3;
}
Symbol 87 Button
on (release) {
_root.difficulty = 1;
}
Symbol 89 Button
on (release) {
_root.difficulty = 4;
}
Symbol 91 Button
on (release) {
if (_root.pos.data.Playtime < 1) {
} else {
_root.Level = _root.pos.data.Level;
_root.Wins = _root.pos.data.Wins;
_root.Loses = _root.pos.data.Loses;
_root.Playtime = _root.pos.data.Playtime;
_root.gamemode = _root.pos.data.gamemode;
_root.difficulty = _root.pos.data.difficulty;
if (_root.gamemode == 1) {
_root.BaseSpd = 10;
}
if (_root.gamemode == 2) {
_root.BaseSpd = 8;
}
if (_root.difficulty == 1) {
_root.BaseSpd = _root.BaseSpd + 5;
}
if (_root.difficulty == 2) {
}
if (_root.difficulty == 3) {
_root.BaseSpd = _root.BaseSpd - 3;
}
if (_root.difficulty == 4) {
_root.BaseSpd = _root.BaseSpd - 10;
}
_root.pos = sharedobject.getLocal("SAVEBLOXDATA");
if (_root.Level > 0) {
_root.play();
}
}
}
Symbol 93 Button
on (release) {
_root.gotoAndPlay(9);
}
Symbol 95 Button
on (release) {
_root.gotoAndPlay(8);
}
Symbol 106 Button
on (release) {
if (_root.gamemode == 1) {
_root.destroyrow();
}
}
Symbol 107 Button
on (release) {
if (_root.gamemode == 1) {
_root.destroyrow2();
}
}
Symbol 108 Button
on (release) {
if (_root.gamemode == 1) {
_root.destroyrow3();
}
}
Symbol 109 Button
on (release) {
if (_root.gamemode == 1) {
_root.destroyrow4();
}
}
Symbol 110 Button
on (release) {
if (_root.gamemode == 1) {
_root.destroyrow5();
}
}
Symbol 111 Button
on (release) {
if (_root.gamemode == 1) {
_root.destroyrow6();
}
}
Symbol 112 Button
on (release) {
if (_root.gamemode == 1) {
_root.destroyrow7();
}
}
Symbol 113 Button
on (release) {
if (_root.gamemode == 1) {
_root.destroyrow8();
}
}
Symbol 114 Button
on (release) {
if (_root.gamemode == 1) {
_root.destroyrow9();
}
}
Symbol 116 MovieClip [explode] Frame 6
stop();
_parent.removeMovieClip();
Symbol 117 MovieClip [block] Frame 1
stop();
Symbol 117 MovieClip [block] Frame 2
stop();
Symbol 117 MovieClip [block] Frame 3
stop();
Symbol 117 MovieClip [block] Frame 4
stop();
Symbol 117 MovieClip [block] Frame 5
stop();
Symbol 117 MovieClip [block] Frame 6
stop();
Symbol 117 MovieClip [block] Frame 7
stop();
Symbol 117 MovieClip [block] Frame 8
stop();
Symbol 117 MovieClip [block] Frame 9
stop();
Symbol 117 MovieClip [block] Frame 10
stop();
Symbol 118 Button
on (release) {
_root.destroyrow();
}
Symbol 128 Button
on (release) {
if (_root.pausegame == 0) {
_root.pausegame = 1;
} else {
_root.pausegame = 0;
}
}
Symbol 139 Button
on (release) {
_root.gotoAndPlay(5);
}
Symbol 146 Button
on (release) {
_root.gotoAndPlay(4);
}
Symbol 148 Button
on (release) {
_root.pos = sharedobject.getLocal("SAVEBLOXDATA");
_root.pos.data.Level = _root.Level;
_root.pos.data.Wins = _root.Wins;
_root.pos.data.Loses = _root.Loses;
_root.pos.data.TotalBroken = _root.TotalBroken;
_root.pos.data.Playtime = _root.Playtime;
_root.pos.data.gamemode = _root.gamemode;
_root.pos.data.difficulty = _root.difficulty;
_root.attachMovie("SAVED", "SAVED", 9999);
}
Symbol 154 Button
on (release) {
play();
}
Symbol 156 Button
on (release) {
gotoAndStop (6);
}
Symbol 159 Button
on (release) {
_root.gotoAndStop(4);
}
Symbol 162 Button
on (release) {
gotoAndStop (1);
}
Symbol 173 MovieClip Frame 1
stop();
Symbol 173 MovieClip Frame 2
stop();
Symbol 173 MovieClip Frame 3
stop();
Symbol 173 MovieClip Frame 4
stop();
Symbol 173 MovieClip Frame 5
stop();
Symbol 182 Button
on (release) {
gotoAndStop (4);
}