Frame 1
stop();
_root.kongregateServices.connect();
_quality = "HIGH";
saveData = SharedObject.getLocal("breachSave");
if (saveData.data.level == undefined) {
saveData.data.level = 1;
saveData.flush();
}
q = 0;
menuframe = 2;
gameFrame = 3;
Stage.showMenu = false;
Instance of Symbol 33 MovieClip in Frame 1
onClipEvent (load) {
_root.stop();
}
Frame 2
stopAllSounds();
_quality = "LOW";
Instance of Symbol 42 MovieClip "buttongen" in Frame 2
onClipEvent (load) {
if (_name == "buttongen") {
num = _root.saveData.data.level + 3;
i = 0;
while (i < num) {
duplicateMovieClip (this, "button" + _root.q, _root.q);
_root["button" + _root.q]._x = 275 - (_width / 2);
_root["button" + _root.q]._y = 120 + (i * 25);
if (i < (num - 2)) {
if (i == 0) {
_root["button" + _root.q].lName = "Tutorial";
} else if (i == 6) {
_root["button" + _root.q].lName = "Infinity Mode";
} else {
_root["button" + _root.q].lName = "Level " + i;
}
} else if (i == (num - 2)) {
_root["button" + _root.q].lName = "Credits";
_root["button" + _root.q].credits = true;
} else if (i == (num - 1)) {
_root["button" + _root.q].lName = "Play More Games at Kongregate";
_root["button" + _root.q].kongLink = true;
}
_root["button" + _root.q].l = i;
_root.q++;
i++;
}
} else {
g1 = 1;
filter = new flash.filters.GlowFilter();
filter.blurX = (filter.blurY = 4);
filter.color = 16777215 /* 0xFFFFFF */;
filter.quality = 2;
filter.strength = g1;
this.filters = [filter];
}
}
onClipEvent (enterFrame) {
if (_name != "buttongen") {
if (_root._currentframe != _root.menuframe) {
removeMovieClip(this);
}
}
}
Instance of Symbol 47 MovieClip in Frame 2
onClipEvent (load) {
if (getVersion().indexOf("9,0,28,0", 0) != -1) {
_visible = true;
} else {
_visible = false;
}
}
Frame 3
music = new Sound(tilegen);
music.attachSound("calmSong");
music.setVolume(50);
music.start(0, Number.POSITIVE_INFINITY);
Instance of Symbol 49 MovieClip in Frame 3
onClipEvent (load) {
_xscale = 0;
}
onClipEvent (enterFrame) {
_x = (-_root._x);
_xscale = _root.lProgress;
}
Instance of Symbol 66 MovieClip "tilegen" in Frame 3
onClipEvent (load) {
if (_name == "tilegen") {
_root.tx = 0;
startc = 0;
lc = 0;
if (_root.level == 0) {
nSpeed = 2;
_root.breaking = false;
_root.started = false;
levelcap = 15;
lLength = 1525;
} else if (_root.level == 1) {
nSpeed = 2;
_root.breaking = false;
_root.started = true;
levelcap = 20;
lLength = 1600;
} else if (_root.level == 2) {
nSpeed = 2.5;
_root.breaking = false;
_root.started = true;
levelcap = 25;
lLength = 2200;
} else if (_root.level == 3) {
nSpeed = 3;
_root.breaking = false;
_root.started = true;
levelcap = 30;
lLength = 2500;
} else if (_root.level == 4) {
nSpeed = 3.5;
_root.breaking = false;
_root.started = true;
levelcap = 33;
lLength = 3000;
} else if (_root.level == 5) {
nSpeed = 3.5;
_root.breaking = false;
_root.started = true;
levelcap = 37;
lLength = 3000;
} else if (_root.level == 6) {
nSpeed = 4;
_root.breaking = false;
_root.started = true;
levelcap = 40;
lLength = Number.POSITIVE_INFINITY;
}
_root._quality = "LOW";
speed = 2;
challenge = 0;
_root.q = 2;
tileW = (_root.tileW = 20);
tileH = (_root.tileH = 20);
x = 0;
choices = new Array();
i = 0;
while (i < 18) {
choices[i] = ((i + 5) * (i + 5)) - levelcap;
if (choices[i] < 1) {
choices[i] = 1;
}
i++;
}
makeTile = function (x1, y1, frame) {
duplicateMovieClip (this, (("tile" + x1) + "_") + y1, _root.q);
_root[(("tile" + x1) + "_") + y1]._x = (x1 * tileW) + (tileW / 2);
_root[(("tile" + x1) + "_") + y1]._y = (y1 * tileH) + (tileH / 2);
_root[(("tile" + x1) + "_") + y1].x = x1;
_root[(("tile" + x1) + "_") + y1].y = y1;
if (frame != undefined) {
_root[(("tile" + x1) + "_") + y1].frame = frame;
}
_root.q++;
};
makeRow = function (n) {
redTile = false;
sploder = false;
rowTiles = new Array();
i = 0;
while (i < 18) {
rowTiles[i] = i;
i++;
}
while (rowTiles.length > n) {
rowTiles.splice(random(rowTiles.length), 1);
}
i = 0;
while (i < rowTiles.length) {
if (((_root.level > 1) && (random(15) == 0)) && (redTile == false)) {
makeTile(x, rowTiles[i] + 1, 3);
redTile = true;
} else if (((_root.level > 4) && (random(15) == 0)) && (sploder == false)) {
makeTile(x, rowTiles[i] + 1, 4);
sploder = true;
} else {
makeTile(x, rowTiles[i] + 1);
}
i++;
}
makeTile(x, 0);
makeTile(x, 19);
};
j = 0;
while (j < 28) {
makeRow(0);
x++;
j++;
}
} else {
_x = (_x + _root.tx);
if ((_y == 10) || (_y == 390)) {
gotoAndStop (2);
}
if (frame != undefined) {
gotoAndStop(frame);
}
stop();
broken = false;
c = 0;
if (_currentframe != 4) {
this.cacheAsBitmap = true;
}
if (_currentframe != 3) {
health = 10;
} else {
health = Number.POSITIVE_INFINITY;
}
xgrav = 0.3;
bc = 0;
v1 = (random(2) + " ") + random(2);
v2 = (random(2) + " ") + random(2);
}
}
onClipEvent (enterFrame) {
if (_name == "tilegen") {
if (_root.level > 2) {
if (speed == nSpeed) {
if (random(200) == 0) {
speed = nSpeed + (random(100) / 50);
}
if (_root.level > 3) {
if (random(200) == 0) {
speed = 0;
}
}
} else if (speed == 0) {
if (random(20) == 0) {
speed = nSpeed;
}
} else if (random(200) == 0) {
speed = nSpeed;
}
}
lc++;
_root.lProgress = (lc / lLength) * 100;
if (lc >= lLength) {
_root.finishType = 1;
_root.gotoAndStop(4);
}
if (_root.breaking == true) {
_root._y = random(3) - 1;
}
if (_root.level == 0) {
if ((startc++) == 579) {
makeRow(18);
}
if (startc == 2500) {
_root.flasher.play();
_root.breaking = true;
_root.music.stop();
_root.music.attachSound("crackSong");
_root.music.start(0, 999999);
}
} else if (_root.level == 1) {
if ((startc++) == 750) {
_root.breaking = true;
_root.flasher.play();
_root.music.stop();
_root.music.attachSound("crackSong");
_root.music.start(0, 999999);
}
} else if (_root.level == 2) {
if ((startc++) == 750) {
_root.breaking = true;
_root.flasher.play();
_root.music.stop();
_root.music.attachSound("crackSong");
_root.music.start(0, 999999);
}
} else if (_root.level == 3) {
if ((startc++) == 750) {
_root.breaking = true;
_root.flasher.play();
_root.music.stop();
_root.music.attachSound("crackSong");
_root.music.start(0, 999999);
}
} else if (_root.level == 4) {
if ((startc++) == 750) {
_root.breaking = true;
_root.flasher.play();
_root.music.stop();
_root.music.attachSound("crackSong");
_root.music.start(0, 999999);
}
} else if (_root.level == 5) {
if ((startc++) == 750) {
_root.breaking = true;
_root.flasher.play();
_root.music.stop();
_root.music.attachSound("crackSong");
_root.music.start(0, 999999);
}
} else if (_root.level == 6) {
if ((startc++) == 750) {
_root.breaking = true;
_root.flasher.play();
_root.music.stop();
_root.music.attachSound("crackSong");
_root.music.start(0, 999999);
}
}
_root.tx = _root.tx - speed;
_root.speed = speed;
while (((-_root.tx) + 550) > (x * tileW)) {
i = 17;
while (i >= 0) {
dif = 0;
if (choices[i] <= 1) {
dif = i + 1;
break;
}
if (random(choices[i]) == 0) {
dif = i + 1;
break;
}
i--;
}
if (_root.started == false) {
dif = 0;
} else if (((challenge++) % 20) == 0) {
i = 17;
while (i >= 0) {
if (choices[i] > 1) {
choices[i]--;
}
i--;
}
}
makeRow(dif);
x++;
}
if (_root.level == 6) {
_root.lc = Math.round(lc / 30) + " seconds";
_root.finalScore = Math.round(lc / 30);
} else {
_root.lc = "";
}
} else {
if (_root._currentframe != _root.gameFrame) {
removeMovieClip(this);
}
if (_root.breaking == true) {
if (random(10000) == 0) {
v1 = (v2 = "22");
}
}
if ((_x + _root._x) < 550) {
if (broken != true) {
if ((random(20) == 0) && (_root.breaking == true)) {
health--;
}
if (health <= 3) {
_x = (((((x * _root.tileW) + (_root.tileW / 2)) + random(3)) - 1) + _root.tx);
_y = (((((y * _root.tileH) + (_root.tileH / 2)) + random(3)) - 1) + _root.ty);
}
if (health <= 0) {
this.cacheAsBitmap = false;
broken = true;
_x = (((x * _root.tileW) + (_root.tileW / 2)) + _root.tx);
_y = (((y * _root.tileH) + (_root.tileH / 2)) + _root.ty);
spin = random(21) - 10;
rise = (run = 0);
}
} else if (_currentframe == 4) {
if ((_x - 30) <= _root.cPlayer._x) {
if ((_x + 30) >= _root.cPlayer._x) {
if ((_y - 30) <= _root.cPlayer._y) {
if ((_y + 30) >= _root.cPlayer._y) {
_root.cPlayer.damage(1);
}
}
}
}
i = 0;
while (i < 20) {
duplicateMovieClip (_root.boomgen, "boom" + _root.q, _root.q);
_root["boom" + _root.q]._x = _x;
_root["boom" + _root.q]._y = _y;
_root.q++;
i++;
}
sploded = true;
splodeSound = new Sound(this);
splodeSound.attachSound("splode");
splodeSound.start();
_root[(("tile" + (x + 1)) + "_") + y].health = _root[(("tile" + (x + 1)) + "_") + y].health - 10;
_root[(("tile" + (x - 1)) + "_") + y].health = _root[(("tile" + (x - 1)) + "_") + y].health - 10;
_root[(("tile" + x) + "_") + (y + 1)].health = _root[(("tile" + x) + "_") + (y + 1)].health - 10;
_root[(("tile" + x) + "_") + (y - 1)].health = _root[(("tile" + x) + "_") + (y - 1)].health - 10;
_root[(("tile" + (x + 1)) + "_") + (y + 1)].health = _root[(("tile" + (x + 1)) + "_") + (y + 1)].health - 10;
_root[(("tile" + (x + 1)) + "_") + (y - 1)].health = _root[(("tile" + (x + 1)) + "_") + (y - 1)].health - 10;
_root[(("tile" + (x - 1)) + "_") + (y + 1)].health = _root[(("tile" + (x - 1)) + "_") + (y + 1)].health - 10;
_root[(("tile" + (x - 1)) + "_") + (y - 1)].health = _root[(("tile" + (x - 1)) + "_") + (y - 1)].health - 10;
removeMovieClip(this);
} else {
if (((c++) % 5) == 0) {
duplicateMovieClip (_root.boomgen, "boom" + _root.q, _root.q);
_root["boom" + _root.q]._x = (_x + random(11)) - 5;
_root["boom" + _root.q]._y = (_y + random(11)) - 5;
_root.q++;
}
run = run - xgrav;
_x = (_x + run);
_rotation = (_rotation + spin);
if (sploded != true) {
if ((_x - 10) <= _root.cPlayer._x) {
if ((_x + 10) >= _root.cPlayer._x) {
if ((_y - 10) <= _root.cPlayer._y) {
if ((_y + 10) >= _root.cPlayer._y) {
_root.cPlayer.damage(1);
}
}
}
}
}
}
}
_x = (_x - _root.speed);
if ((_x + _root._x) < -30) {
removeMovieClip(this);
}
}
}
Instance of Symbol 69 MovieClip "playergen" in Frame 3
onClipEvent (load) {
if (_name == "playergen") {
makePlayer = function () {
duplicateMovieClip (this, "player" + _root.q, _root.q);
_root.cPlayer = _root["player" + _root.q];
_root.cPlayer._x = _root._xmouse;
_root.cPlayer._y = _root._ymouse;
_root.q++;
};
makePlayer();
countPlayer = function () {
respawn = 0;
};
} else {
damage = function (d) {
if (ic > 60) {
ic = 0;
health = health - d;
i = 0;
while (i < 7) {
duplicateMovieClip (_root.boomgen, "boom" + _root.q, _root.q);
_root["boom" + _root.q]._x = _x;
_root["boom" + _root.q]._y = _y;
_root.q++;
i++;
}
if (health <= 0) {
dieSound = new Sound(this);
dieSound.attachSound("die");
dieSound.start();
i = 0;
while (i < 7) {
duplicateMovieClip (_root.boomgen, "boom" + _root.q, _root.q);
_root["boom" + _root.q]._x = _x;
_root["boom" + _root.q]._y = _y;
_root.q++;
i++;
}
_root.playergen.countPlayer();
removeMovieClip(this);
}
}
};
health = 5;
ic = 0;
shot = new Sound(this);
shot.attachSound("shot");
this.cacheAsBitmap = true;
c = Number.POSITIVE_INFINITY;
clicking = new Object();
clicking.onMouseDown = function () {
shoot = true;
};
clicking.onMouseUp = function () {
shoot = false;
};
Mouse.addListener(clicking);
}
}
onClipEvent (enterFrame) {
if (_name == "playergen") {
if (respawn != undefined) {
if ((respawn++) >= 90) {
if (_root.level < 6) {
_root.finishType = 2;
} else {
_root.finishType = 3;
}
_root.gotoAndStop(4);
respawn = undefined;
}
}
} else {
if (_root._currentframe != _root.gameFrame) {
removeMovieClip(this);
}
if (ic < 60) {
_alpha = 50;
} else {
_alpha = 100;
}
ic++;
c++;
if ((shoot == true) && (c >= 10)) {
shot.start();
c = 0;
duplicateMovieClip (_root.bulletgen, "bullet" + _root.q, _root.q);
_root["bullet" + _root.q]._x = _x;
_root["bullet" + _root.q]._y = _y;
_root.q++;
}
_x = (_x + ((_root._xmouse - _x) / 1.5));
_y = (_y + ((_root._ymouse - _y) / 1.5));
if (_x < (1 - _root._x)) {
_x = (1 - _root._x);
}
if (_x > (549 - _root._x)) {
_x = (549 - _root._x);
}
if (_y < 1) {
_y = 1;
}
if (_y > 399) {
_y = 399;
}
_x = Math.round(_x);
_y = Math.round(_y);
tx = Math.floor((_x - _root.tx) / _root.tileW);
ty = Math.floor(_y / _root.tileH);
if (_root[(("tile" + tx) + "_") + ty].broken == false) {
damage(1);
}
Mouse.hide();
}
}
Instance of Symbol 73 MovieClip "bulletgen" in Frame 3
onClipEvent (load) {
if (_name != "bulletgen") {
sx = -_root.tx;
speed = _root.tilegen.speed + 6;
i = 0;
while (i < 3) {
this["ping" + i] = new Sound(this);
this["ping" + i].attachSound("ping" + i);
i++;
}
}
}
onClipEvent (enterFrame) {
if (_name != "bulletgen") {
sx = -_root.tx;
if (_root._currentframe != _root.gameFrame) {
removeMovieClip(this);
}
_x = (_x + speed);
if ((_x + _root._x) > 560) {
removeMovieClip(this);
}
tx = Math.floor((_x + sx) / _root.tileW);
ty = Math.floor(_y / _root.tileH);
if (_root[(("tile" + tx) + "_") + ty].broken == false) {
_root[(("tile" + tx) + "_") + ty].health = _root[(("tile" + tx) + "_") + ty].health - 3;
i = 0;
while (i < 5) {
duplicateMovieClip (_root.boomgen, "boom" + _root.q, _root.q);
_root["boom" + _root.q]._x = _x;
_root["boom" + _root.q]._y = _y;
_root.q++;
i++;
}
s = random(3);
this["ping" + s].start();
removeMovieClip(this);
}
}
}
Instance of Symbol 75 MovieClip "boomgen" in Frame 3
onClipEvent (load) {
if (_name != "boomgen") {
run = random(7) - 3;
rise = random(7) - 3;
}
}
onClipEvent (enterFrame) {
if (_name != "boomgen") {
_x = (_x - _root.speed);
_x = (_x + run);
_y = (_y + rise);
_alpha = (_alpha - 5);
if (_alpha <= 0) {
removeMovieClip(this);
}
}
}
Instance of Symbol 88 MovieClip in Frame 3
onClipEvent (load) {
x = _x;
if (_root.level != 0) {
_visible = false;
stop();
}
}
onClipEvent (enterFrame) {
_x = ((-_root._x) + x);
}
Instance of Symbol 91 MovieClip in Frame 3
onClipEvent (load) {
}
onClipEvent (enterFrame) {
_x = (_x - _root.speed);
if (((_x + _root._x) < 570) && (((_x + _root._x) + 171) > -20)) {
this.swapDepths(_root.q + 1000);
_visible = true;
} else {
_visible = false;
_x = -300;
if ((random(1000) == 0) && (_root.breaking == true)) {
_x = ((-_root._x) + 565);
x1 = _x;
}
}
}
Instance of Symbol 106 MovieClip "flasher" in Frame 3
onClipEvent (load) {
x = _x;
}
onClipEvent (enterFrame) {
_x = ((-_root._x) + x);
this.swapDepths(_root.q + 2000);
}
Instance of Symbol 113 MovieClip in Frame 3
onClipEvent (load) {
stop();
_visible = false;
x = _x;
}
onClipEvent (enterFrame) {
if ((random(100) == 0) && (_root.breaking == true)) {
_x = (x - _root._x);
_visible = true;
} else {
_visible = false;
}
}
Frame 4
_x = 0;
Mouse.show();
if (_root.level == 6) {
kongregateStats.submit("Infinity Score", finalScore);
}
Instance of Symbol 120 MovieClip in Frame 4
onClipEvent (load) {
gotoAndStop(_root.finishType);
if (_root.finishType == 1) {
if (_root.saveData.data.level == _root.level) {
_root.saveData.data.level++;
_root.saveData.flush();
}
}
}
Frame 5
_quality = "HIGH";
Symbol 6 Button
on (release) {
getURL ("http://www.kongregate.com/?gamereferral=breach", "_blank");
}
Symbol 32 MovieClip Frame 41
glow = 1;
Symbol 32 MovieClip Frame 87
_root.nextFrame();
Symbol 33 MovieClip Frame 1
stop();
Instance of Symbol 2 MovieClip "boxgen" in Symbol 33 MovieClip Frame 1
onClipEvent (load) {
if (_name == "boxgen") {
loaded = 0;
d = 0;
ln = 0;
q = 0;
h = 7;
w = 7;
sh = Stage.height;
sw = Stage.width;
th = 10 * h;
tw = 30 * w;
x1 = (sw / 2) - (tw / 2);
y1 = (sh / 2) - (th / 2);
i = 0;
while (i < 10) {
j = 0;
while (j < 30) {
spawn = false;
if ((j == 0) || (j == 29)) {
spawn = true;
} else if ((i == 0) || (i == 9)) {
spawn = true;
}
if (spawn == true) {
duplicateMovieClip (this, "box" + q, q);
_parent["box" + q]._x = x1 + (j * h);
_parent["box" + q]._y = y1 + (i * w);
_parent["box" + q].i = i;
_parent["box" + q].j = j;
_parent["box" + q].s = 0;
q++;
}
j++;
}
i++;
}
filter = new flash.filters.GlowFilter();
filter.blurX = (filter.blurY = 3);
filter.color = 16769536 /* 0xFFE200 */;
filter.quality = 3;
_parent.filters = [filter];
a = 0;
s = 25;
} else {
a = 0;
_yscale = 0;
_xscale = 0;
c = -10;
go1 = true;
}
}
onClipEvent (enterFrame) {
if (_name != "boxgen") {
a++;
if ((a >= s) && (go1 == true)) {
_xscale = (_xscale + 10);
_yscale = _xscale;
if (_xscale >= 100) {
_xscale = 100;
go1 = false;
}
}
if ((_parent.fall == true) && (falling != true)) {
falling = true;
c = 1;
}
if (falling == true) {
_xscale = (_xscale - 5);
_yscale = (_yscale - 5);
c = c - 0.05;
if ((_xscale <= 0) || (_yscale <= 0)) {
removeMovieClip(this);
}
}
} else {
percent = _root.getBytesLoaded() / _root.getBytesTotal();
while (((Math.floor(percent * 28) / 28) > loaded) && (ln != 28)) {
loaded = loaded + 0.0357142857142857;
ln++;
i = 0;
while (i < 8) {
duplicateMovieClip (this, "box" + q, q);
_parent["box" + q]._x = x1 + (ln * h);
_parent["box" + q]._y = y1 + ((i + 1) * w);
_parent["box" + q].s = i;
q++;
i++;
}
percent = _root.getBytesLoaded() / _root.getBytesTotal();
}
if (percent == 1) {
if ((d++) > 30) {
_parent.fall = true;
}
if (d > 60) {
_parent.gotoAndStop(2);
}
}
}
}
Symbol 33 MovieClip Frame 2
stop();
Instance of Symbol 2 MovieClip "boxgen" in Symbol 33 MovieClip Frame 2
onClipEvent (load) {
if (_name == "boxgen") {
q = 0;
h = 7;
w = 7;
sh = Stage.height;
sw = Stage.width;
map1 = [[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1], [1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 1, 1, 1, 1, 1, 0, 1, 0, 0, 1, 0, 0, 1], [1, 0, 1, 1, 1, 1, 1, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0, 0, 1, 0, 0, 1], [1, 0, 1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 1, 0, 0, 0, 1, 0, 1, 1, 1, 1, 1, 0, 1], [1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 1], [1, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0, 1, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0, 1, 0, 0, 1], [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]];
map2 = [[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1], [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1], [1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1], [1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 1, 1, 1, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 1], [1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1], [1, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1], [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]];
th = map1.length * h;
tw = map1[0].length * w;
x1 = (sw / 2) - (tw / 2);
y1 = (sh / 2) - (th / 2);
i = 0;
while (i < map1.length) {
j = 0;
while (j < map1[i].length) {
if (map1[i][j] == 1) {
duplicateMovieClip (this, "box" + q, q);
_parent["box" + q]._x = x1 + (j * h);
_parent["box" + q]._y = y1 + (i * w);
_parent["box" + q].i = i;
_parent["box" + q].j = j;
_parent["box" + q].s = (i + j) / 4;
_parent["box" + q].s2 = (j / 2) + 40;
q++;
}
j++;
}
i++;
}
i = 0;
while (i < map2.length) {
j = 0;
while (j < map2[i].length) {
if (map2[i][j] == 1) {
duplicateMovieClip (this, "box" + q, q);
_parent["box" + q]._x = x1 + (j * h);
_parent["box" + q]._y = y1 + (i * w);
_parent["box" + q].i = i;
_parent["box" + q].j = j;
_parent["box" + q].s = (j / 2) + 47;
_parent["box" + q].s2 = Number.POSITIVE_INFINITY;
_parent["box" + q].s3 = (((map1.length - i) + map1[0].length) - j) + 80;
q++;
}
j++;
}
i++;
}
filter = new flash.filters.GlowFilter();
filter.blurX = (filter.blurY = 3);
filter.color = 16769536 /* 0xFFE200 */;
filter.quality = 3;
_parent.filters = [filter];
a = 0;
s = 25;
} else {
a = 0;
_yscale = 0;
_xscale = 0;
c = -10;
go1 = true;
}
}
onClipEvent (enterFrame) {
if (_name != "boxgen") {
a++;
if ((a >= s) && (go1 == true)) {
_xscale = (_xscale + 10);
_yscale = _xscale;
if (_xscale >= 100) {
_xscale = 100;
go1 = false;
}
}
if (a >= s2) {
_xscale = (_xscale + c);
if (_xscale <= 0) {
removeMovieClip(this);
}
_yscale = _xscale;
}
if (((a >= s3) && (falling != true)) && (s3 != undefined)) {
_parent.falling = true;
falling = true;
c = 1;
}
if (falling == true) {
if ((_parent.boxgen.map2[i][j + 1] == 1) || (_parent.boxgen.map2[i][j - 1] == 1)) {
_yscale = (_yscale - 5);
}
if ((_parent.boxgen.map2[i + 1][j] == 1) || (_parent.boxgen.map2[i - 1][j] == 1)) {
_xscale = (_xscale - 5);
}
if ((((_parent.boxgen.map2[i][j + 1] == 0) && (_parent.boxgen.map2[i][j - 1] == 0)) && (_parent.boxgen.map2[i + 1][j] == 0)) && (_parent.boxgen.map2[i - 1][j] == 0)) {
_xscale = (_xscale - 5);
_yscale = (_yscale - 5);
}
c = c - 0.05;
if ((_xscale <= 0) || (_yscale <= 0)) {
removeMovieClip(this);
}
}
} else {
a++;
if (a == s) {
go = true;
f = 8;
c = 400;
filter.blurX = (filter.blurY = f);
filter.strength = ((f - 1) * 0.5) + 1;
colorT = new flash.geom.ColorTransform(1, 1, 1, 1, c, c, c, 0);
trans = new flash.geom.Transform(_parent);
trans.colorTransform = colorT;
}
if (go == true) {
if (f > 3) {
f = f - 0.5;
filter.blurX = (filter.blurY = f);
filter.strength = ((f - 1) * 0.5) + 1;
_parent.filters = [filter];
c = c - 33.3333333333333;
colorT = new flash.geom.ColorTransform(1, 1, 1, 1, c, c, c, 0);
trans = new flash.geom.Transform(_parent);
trans.colorTransform = colorT;
} else {
go = false;
filter.blurX = (filter.blurY = 4);
filter.strength = 1;
colorT = new flash.geom.ColorTransform(1, 1, 1, 1, 0, 0, 0, 0);
trans = new flash.geom.Transform(_parent);
trans.colorTransform = colorT;
}
}
if (_parent.falling == true) {
if (d == undefined) {
d = 0;
}
if ((d++) > 90) {
_parent.filters = [];
_parent.nextFrame();
}
}
}
}
Symbol 41 Button
on (release) {
if ((kongLink != true) && (credits != true)) {
_root.level = l;
_root.gotoAndStop(3);
}
if (kongLink == true) {
getURL ("http://www.kongregate.com/?gamereferral=breach", "_blank");
}
if (credits == true) {
_root.gotoAndStop(5);
}
}
Symbol 46 Button
on (release) {
getURL ("http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash", _blank);
}
Symbol 88 MovieClip Frame 1525
stop();
Symbol 102 MovieClip Frame 1
stop();
Symbol 106 MovieClip Frame 1
stop();
Instance of Symbol 112 MovieClip in Symbol 113 MovieClip Frame 1
onClipEvent (enterFrame) {
this.swapDepths(_root.q + 2000);
}
Symbol 116 Button
on (release) {
_root.gotoAndStop(2);
}
Symbol 124 Button
on (release) {
getURL ("http://www.kongregate.com/?gamereferral=breach", "_blank");
}