Frame 1
fscommand ("allowscale", "false");
fscommand ("fullscreen", "true");
fscommand ("trapallkeys", "true");
fscommand ("showmenu", "false");
Frame 8
level = 1;
_root.timetime = 120;
_root.gametime = _root.timetime;
_root.levelall = 11;
_root.redboxarrayx = 0;
_root.redboxarrayy = 0;
_root.boxarrayt = new Array();
_root.boxarrayb = new Array();
_root.boxarrayl = new Array();
_root.boxarrayr = new Array();
_root.blueboxarrayx = new Array();
_root.blueboxarrayy = new Array();
stop();
_root.levelbar.gotoAndStop(1);
_root.gameoverbar.gotoAndStop(1);
Frame 10
function killwall(boxselect) {
boxselect.t._visible = 0;
boxselect.b._visible = 0;
boxselect.l._visible = 0;
boxselect.r._visible = 0;
}
function fixwall(boxselect, s1, s2, s3, s4) {
boxselect.t._visible = s1;
boxselect.b._visible = s2;
boxselect.l._visible = s3;
boxselect.r._visible = s4;
}
function duplicatebluebox(ax, ay) {
duplicateMovieClip ("_root.bluebox", (("bluebox" add ax) add "_") add ay, _root.blueloop + 1500);
_root[(("bluebox" add ax) add "_") add ay]._x = _root[(("box" add ax) add "_") add ay]._x;
_root[(("bluebox" add ax) add "_") add ay]._y = _root[(("box" add ax) add "_") add ay]._y;
_root.blueloop = _root.blueloop + 1;
_root.bluebox._visible = false;
}
function clearall() {
j = 1;
while (j <= _root.cross) {
i = 1;
while (i <= _root.cross) {
_root[(("box" add j) add "_") add i].removeMovieClip();
_root[(("bluebox" add j) add "_") add i].removeMovieClip();
i++;
}
j++;
}
_root.redbox.removeMovieClip();
_root.gameoverbar.gotoAndStop(1);
_root.levelbar.gotoAndStop(1);
i = 1;
while (i <= 300) {
_root["timespot" add i].removeMovieClip();
i++;
}
}
stop();
_root.blueloop = 0;
_root.killbluecount = 0;
_root.remake = false;
if (_root.level != 0) {
_root.remakebar._visible = false;
} else {
_root.remakebar._visible = true;
}
Instance of Symbol 121 MovieClip "gamebar" in Frame 10
onClipEvent (load) {
this._visible = false;
_root.gamestop = false;
_root.gametimestep = 3;
timeloop = 1;
stepcountold = _root.gametime / _root.gametimestep;
stepcount = _root.timetime / _root.gametimestep;
jcount = 0;
twostepcount = stepcount;
i = 1;
while (i <= twostepcount) {
duplicateMovieClip ("_root.timespot0", "timespot" add i, 8000 + timeloop);
_root["timespot" add i]._x = _root["timespot" add (i - 1)]._x + 15;
timeloop = timeloop + 1;
_root.timespot0._visible = false;
i++;
}
i = twostepcount;
while (i >= 1) {
if (stepcount > stepcountold) {
_root["timespot" add i].timesub._visible = false;
stepcount = stepcount - 1;
}
i = i - 1;
}
stime = new Date();
allt = stime.getSeconds();
}
onClipEvent (enterFrame) {
if (_root.gamestop == false) {
if (allt == stime.getSeconds()) {
stime = new Date();
} else {
_root.gametime = _root.gametime - 1;
jcount = jcount + 1;
if (jcount == _root.gametimestep) {
_root["timespot" add stepcount].timesub._visible = false;
stepcount = stepcount - 1;
jcount = 0;
if ((_root.gametime <= (_root.gametimestep * 5)) and (_root.gametime >= _root.gametimestep)) {
pipipi = new Sound();
pipipi.attachSound("pipipi");
pipipi.start();
}
}
allt = stime.getSeconds();
}
if (_root.gametime == 0) {
_root.gameoverbar.gotoAndStop(2);
_root.gameoverbar.swapDepths(2000);
_root.gamestop = true;
}
}
}
Instance of Symbol 128 MovieClip "timespot0" in Frame 10
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 137 MovieClip "clock" in Frame 10
onClipEvent (enterFrame) {
this.gotoAndStop(60 - (_root.gametime / 2));
}
Instance of Symbol 43 MovieClip "box1_0" in Frame 10
onClipEvent (load) {
_root.fristboxpointx = this._x;
_root.fristboxpointy = this._y;
}
Instance of Symbol 146 MovieClip "aaa" in Frame 10
onClipEvent (load) {
this._visible = false;
if (_root.level == 0) {
} else if (_root.level == 1) {
_root.cross = 5;
} else if (_root.level == 2) {
_root.cross = 6;
} else if (_root.level == 3) {
_root.cross = 6;
} else if (_root.level == 4) {
_root.cross = 7;
} else if (_root.level == 5) {
_root.cross = 7;
} else if (_root.level == 6) {
_root.cross = 9;
} else if (_root.level == 7) {
_root.cross = 5;
} else if (_root.level == 8) {
_root.cross = 5;
} else if (_root.level == 9) {
_root.cross = 5;
} else if (_root.level == 10) {
_root.cross = 6;
} else if (_root.level == 11) {
_root.cross = 8;
}
xx = _root.box1_0.boxsub._width;
yy = _root.box1_0.boxsub._height;
loop = 1;
_root.box1_0._x = _root.fristboxpointx - (((_root.cross - 5) * xx) / 2);
_root.box1_0._y = _root.fristboxpointy - (((_root.cross - 5) * yy) / 2);
j = 1;
while (j <= _root.cross) {
if (j == 1) {
i = j;
while (i <= _root.cross) {
duplicateMovieClip ("_root.box1_0", (("box" add j) add "_") add i, loop);
_root[(("box" add j) add "_") add i]._x = _root[(("box" add j) add "_") add (i - 1)]._x + xx;
_root[(("box" add j) add "_") add i].thisx = j;
_root[(("box" add j) add "_") add i].thisy = i;
_root[(("box" add j) add "_") add i].containcount = 0;
loop = loop + 1;
_root.killwall(_root[(("box" add j) add "_") add i]);
i++;
}
} else {
i = 1;
while (i <= _root.cross) {
if (i == 1) {
duplicateMovieClip ("_root.box1_0", (("box" add j) add "_") add i, loop);
_root[(("box" add j) add "_") add i]._y = _root[(("box" add (j - 1)) add "_") add i]._y + yy;
_root[(("box" add j) add "_") add i]._x = _root.box1_0._x + xx;
_root[(("box" add j) add "_") add i].thisx = j;
_root[(("box" add j) add "_") add i].thisy = i;
_root[(("box" add j) add "_") add i].containcount = 0;
loop = loop + 1;
_root.killwall(_root[(("box" add j) add "_") add i]);
} else {
duplicateMovieClip ((("_root.box" add j) add "_") add (i - 1), (("box" add j) add "_") add i, loop);
_root[(("box" add j) add "_") add i]._x = _root[(("box" add j) add "_") add (i - 1)]._x + xx;
_root[(("box" add j) add "_") add i].thisx = j;
_root[(("box" add j) add "_") add i].thisy = i;
_root[(("box" add j) add "_") add i].containcount = 0;
loop = loop + 1;
_root.killwall(_root[(("box" add j) add "_") add i]);
}
i++;
}
}
j++;
}
i = 1;
while (i <= _root.cross) {
_root["box1_" add i].t._visible = true;
_root[(("box" add _root.cross) add "_") add i].b._visible = true;
_root[(("box" add i) add "_") add 1].l._visible = true;
_root[(("box" add i) add "_") add _root.cross].r._visible = true;
i++;
}
_root.gamewin = false;
_root.box1_0._visible = false;
if (_root.level == 0) {
mmm = 1;
j = 1;
while (j <= _root.cross) {
i = 1;
while (i <= _root.cross) {
_root.fixwall(_root[(("box" add j) add "_") add i], _root.boxarrayt[mmm], _root.boxarrayb[mmm], _root.boxarrayl[mmm], _root.boxarrayr[mmm]);
if (_root.blueboxarrayx[mmm] != 0) {
_root.duplicatebluebox(_root.blueboxarrayx[mmm], _root.blueboxarrayy[mmm]);
}
mmm = mmm + 1;
i++;
}
j++;
}
_root.tmpx = _root.redthisx;
_root.tmpy = _root.redthisy;
_root.redbox._x = _root[(("box" add _root.redthisx) add "_") add _root.redthisy]._x;
_root.redbox._y = _root[(("box" add _root.redthisx) add "_") add _root.redthisy]._y;
} else if (_root.level == 1) {
_root.fixwall(_root.box1_2, 1, 1, 0, 0);
_root.fixwall(_root.box1_3, 1, 0, 0, 1);
_root.fixwall(_root.box1_4, 1, 0, 1, 0);
_root.fixwall(_root.box2_2, 1, 0, 0, 0);
_root.fixwall(_root.box2_5, 0, 1, 0, 1);
_root.fixwall(_root.box3_5, 1, 0, 0, 1);
_root.fixwall(_root.box3_1, 0, 0, 1, 1);
_root.fixwall(_root.box3_2, 0, 0, 1, 0);
_root.fixwall(_root.box3_3, 0, 1, 0, 0);
_root.fixwall(_root.box4_3, 1, 0, 0, 0);
_root.fixwall(_root.box4_2, 0, 1, 0, 0);
_root.fixwall(_root.box5_2, 1, 1, 0, 0);
_root.fixwall(_root.box4_5, 0, 1, 0, 1);
_root.fixwall(_root.box5_5, 1, 1, 0, 1);
_root.fixwall(_root.box5_3, 0, 1, 0, 1);
_root.fixwall(_root.box5_4, 0, 1, 1, 0);
_root.bluecount = 1;
_root.redbox._x = _root.box1_1._x;
_root.redbox._y = _root.box1_1._y;
_root.duplicatebluebox(5, 5);
_root.tmpx = 1;
_root.tmpy = 1;
} else if (_root.level == 2) {
_root.fixwall(_root.box1_1, 1, 0, 1, 1);
_root.fixwall(_root.box1_2, 1, 0, 1, 0);
_root.fixwall(_root.box1_3, 1, 1, 0, 0);
_root.fixwall(_root.box1_4, 1, 0, 0, 0);
_root.fixwall(_root.box1_5, 1, 0, 0, 1);
_root.fixwall(_root.box1_6, 1, 0, 1, 1);
_root.fixwall(_root.box2_1, 0, 0, 1, 0);
_root.fixwall(_root.box2_2, 0, 0, 0, 0);
_root.fixwall(_root.box2_3, 1, 0, 0, 0);
_root.fixwall(_root.box2_4, 0, 0, 0, 0);
_root.fixwall(_root.box2_5, 0, 1, 0, 0);
_root.fixwall(_root.box2_6, 0, 0, 0, 1);
_root.fixwall(_root.box3_1, 0, 0, 1, 1);
_root.fixwall(_root.box3_2, 0, 0, 1, 1);
_root.fixwall(_root.box3_3, 0, 1, 1, 1);
_root.fixwall(_root.box3_4, 0, 1, 1, 0);
_root.fixwall(_root.box3_5, 1, 0, 0, 0);
_root.fixwall(_root.box3_6, 0, 1, 0, 1);
_root.fixwall(_root.box4_1, 0, 1, 1, 0);
_root.fixwall(_root.box4_2, 0, 0, 0, 0);
_root.fixwall(_root.box4_3, 1, 0, 0, 1);
_root.fixwall(_root.box4_4, 1, 0, 1, 1);
_root.fixwall(_root.box4_5, 0, 0, 1, 0);
_root.fixwall(_root.box4_6, 1, 0, 0, 1);
_root.fixwall(_root.box5_1, 1, 0, 1, 0);
_root.fixwall(_root.box5_2, 0, 0, 0, 0);
_root.fixwall(_root.box5_3, 0, 0, 0, 0);
_root.fixwall(_root.box5_4, 0, 0, 0, 0);
_root.fixwall(_root.box5_5, 0, 0, 0, 0);
_root.fixwall(_root.box5_6, 0, 1, 0, 1);
_root.fixwall(_root.box6_1, 0, 1, 1, 0);
_root.fixwall(_root.box6_2, 0, 1, 0, 1);
_root.fixwall(_root.box6_3, 0, 1, 1, 1);
_root.fixwall(_root.box6_4, 0, 1, 1, 0);
_root.fixwall(_root.box6_5, 0, 1, 0, 0);
_root.fixwall(_root.box6_6, 1, 1, 0, 1);
_root.bluecount = 1;
_root.redbox._x = _root.box3_3._x;
_root.redbox._y = _root.box3_3._y;
_root.duplicatebluebox(4, 4);
_root.tmpx = 3;
_root.tmpy = 3;
} else if (_root.level == 3) {
_root.fixwall(_root.box1_1, 1, 0, 1, 0);
_root.fixwall(_root.box1_2, 1, 0, 0, 0);
_root.fixwall(_root.box1_3, 1, 1, 0, 1);
_root.fixwall(_root.box1_4, 1, 0, 1, 0);
_root.fixwall(_root.box1_5, 1, 0, 0, 0);
_root.fixwall(_root.box1_6, 1, 1, 0, 1);
_root.fixwall(_root.box2_1, 0, 1, 1, 0);
_root.fixwall(_root.box2_2, 0, 0, 0, 0);
_root.fixwall(_root.box2_3, 1, 1, 0, 0);
_root.fixwall(_root.box2_4, 0, 0, 0, 0);
_root.fixwall(_root.box2_5, 0, 0, 0, 0);
_root.fixwall(_root.box2_6, 1, 0, 0, 1);
_root.fixwall(_root.box3_1, 1, 0, 1, 0);
_root.fixwall(_root.box3_2, 0, 0, 0, 0);
_root.fixwall(_root.box3_3, 1, 0, 0, 0);
_root.fixwall(_root.box3_4, 0, 0, 0, 0);
_root.fixwall(_root.box3_5, 0, 0, 0, 1);
_root.fixwall(_root.box3_6, 0, 1, 1, 1);
_root.fixwall(_root.box4_1, 0, 0, 1, 0);
_root.fixwall(_root.box4_2, 0, 0, 0, 0);
_root.fixwall(_root.box4_3, 0, 0, 0, 1);
_root.fixwall(_root.box4_4, 0, 1, 1, 0);
_root.fixwall(_root.box4_5, 0, 0, 0, 0);
_root.fixwall(_root.box4_6, 1, 0, 0, 1);
_root.fixwall(_root.box5_1, 0, 1, 1, 1);
_root.fixwall(_root.box5_2, 0, 0, 1, 0);
_root.fixwall(_root.box5_3, 0, 0, 0, 0);
_root.fixwall(_root.box5_4, 1, 0, 0, 0);
_root.fixwall(_root.box5_5, 0, 0, 0, 0);
_root.fixwall(_root.box5_6, 0, 0, 0, 1);
_root.fixwall(_root.box6_1, 1, 1, 1, 0);
_root.fixwall(_root.box6_2, 0, 1, 0, 1);
_root.fixwall(_root.box6_3, 0, 1, 1, 0);
_root.fixwall(_root.box6_4, 0, 1, 0, 1);
_root.fixwall(_root.box6_5, 0, 1, 1, 1);
_root.fixwall(_root.box6_6, 0, 1, 1, 1);
_root.bluecount = 1;
_root.redbox._x = _root.box4_1._x;
_root.redbox._y = _root.box4_1._y;
_root.duplicatebluebox(3, 6);
_root.tmpx = 4;
_root.tmpy = 1;
} else if (_root.level == 4) {
_root.fixwall(_root.box1_1, 1, 0, 1, 0);
_root.fixwall(_root.box1_2, 1, 0, 0, 0);
_root.fixwall(_root.box1_3, 1, 0, 0, 0);
_root.fixwall(_root.box1_4, 1, 1, 0, 0);
_root.fixwall(_root.box1_5, 1, 0, 0, 1);
_root.fixwall(_root.box1_6, 1, 0, 1, 0);
_root.fixwall(_root.box1_7, 1, 0, 0, 1);
_root.fixwall(_root.box2_1, 0, 1, 1, 0);
_root.fixwall(_root.box2_2, 0, 0, 0, 1);
_root.fixwall(_root.box2_3, 0, 0, 1, 0);
_root.fixwall(_root.box2_4, 1, 0, 0, 0);
_root.fixwall(_root.box2_5, 0, 1, 0, 0);
_root.fixwall(_root.box2_6, 0, 0, 0, 0);
_root.fixwall(_root.box2_7, 0, 1, 0, 1);
_root.fixwall(_root.box3_1, 1, 1, 1, 0);
_root.fixwall(_root.box3_2, 0, 0, 0, 0);
_root.fixwall(_root.box3_3, 0, 0, 0, 1);
_root.fixwall(_root.box3_4, 0, 0, 1, 0);
_root.fixwall(_root.box3_5, 1, 0, 0, 0);
_root.fixwall(_root.box3_6, 0, 0, 0, 0);
_root.fixwall(_root.box3_7, 1, 0, 0, 1);
_root.fixwall(_root.box4_1, 1, 0, 1, 0);
_root.fixwall(_root.box4_2, 0, 0, 0, 0);
_root.fixwall(_root.box4_3, 0, 0, 0, 0);
_root.fixwall(_root.box4_4, 0, 0, 0, 0);
_root.fixwall(_root.box4_5, 0, 1, 0, 1);
_root.fixwall(_root.box4_6, 0, 0, 1, 0);
_root.fixwall(_root.box4_7, 0, 1, 0, 1);
_root.fixwall(_root.box5_1, 0, 0, 1, 0);
_root.fixwall(_root.box5_2, 0, 1, 0, 0);
_root.fixwall(_root.box5_3, 0, 0, 0, 1);
_root.fixwall(_root.box5_4, 0, 0, 1, 0);
_root.fixwall(_root.box5_5, 1, 0, 0, 0);
_root.fixwall(_root.box5_6, 0, 0, 0, 0);
_root.fixwall(_root.box5_7, 1, 1, 0, 1);
_root.fixwall(_root.box6_1, 0, 1, 1, 0);
_root.fixwall(_root.box6_2, 1, 0, 0, 1);
_root.fixwall(_root.box6_3, 0, 0, 1, 0);
_root.fixwall(_root.box6_4, 0, 0, 0, 0);
_root.fixwall(_root.box6_5, 0, 0, 0, 0);
_root.fixwall(_root.box6_6, 0, 1, 0, 0);
_root.fixwall(_root.box6_7, 1, 0, 0, 1);
_root.fixwall(_root.box7_1, 1, 1, 1, 0);
_root.fixwall(_root.box7_2, 0, 1, 0, 0);
_root.fixwall(_root.box7_3, 0, 1, 0, 1);
_root.fixwall(_root.box7_4, 0, 1, 1, 0);
_root.fixwall(_root.box7_5, 0, 1, 0, 1);
_root.fixwall(_root.box7_6, 1, 1, 1, 0);
_root.fixwall(_root.box7_7, 0, 1, 0, 1);
_root.bluecount = 1;
_root.redbox._x = _root.box3_1._x;
_root.redbox._y = _root.box3_1._y;
_root.tmpx = 3;
_root.tmpy = 1;
_root.duplicatebluebox(5, 7);
} else if (_root.level == 5) {
_root.fixwall(_root.box1_1, 1, 0, 1, 1);
_root.fixwall(_root.box1_2, 1, 0, 1, 0);
_root.fixwall(_root.box1_3, 1, 1, 0, 0);
_root.fixwall(_root.box1_4, 1, 0, 0, 1);
_root.fixwall(_root.box1_5, 1, 0, 1, 0);
_root.fixwall(_root.box1_6, 1, 0, 0, 0);
_root.fixwall(_root.box1_7, 1, 1, 0, 1);
_root.fixwall(_root.box2_1, 0, 0, 1, 0);
_root.fixwall(_root.box2_2, 0, 0, 0, 0);
_root.fixwall(_root.box2_3, 1, 0, 0, 0);
_root.fixwall(_root.box2_4, 0, 0, 0, 0);
_root.fixwall(_root.box2_5, 0, 0, 0, 0);
_root.fixwall(_root.box2_6, 0, 0, 0, 0);
_root.fixwall(_root.box2_7, 1, 0, 0, 1);
_root.fixwall(_root.box3_1, 0, 0, 1, 0);
_root.fixwall(_root.box3_2, 0, 1, 0, 0);
_root.fixwall(_root.box3_3, 0, 0, 0, 1);
_root.fixwall(_root.box3_4, 0, 0, 1, 0);
_root.fixwall(_root.box3_5, 0, 0, 0, 0);
_root.fixwall(_root.box3_6, 0, 0, 0, 1);
_root.fixwall(_root.box3_7, 0, 0, 1, 1);
_root.fixwall(_root.box4_1, 0, 0, 1, 0);
_root.fixwall(_root.box4_2, 1, 0, 0, 0);
_root.fixwall(_root.box4_3, 0, 0, 0, 0);
_root.fixwall(_root.box4_4, 0, 1, 0, 1);
_root.fixwall(_root.box4_5, 0, 0, 1, 1);
_root.fixwall(_root.box4_6, 0, 0, 1, 0);
_root.fixwall(_root.box4_7, 0, 1, 0, 1);
_root.fixwall(_root.box5_1, 0, 1, 1, 0);
_root.fixwall(_root.box5_2, 0, 0, 0, 0);
_root.fixwall(_root.box5_3, 0, 0, 0, 0);
_root.fixwall(_root.box5_4, 1, 0, 0, 0);
_root.fixwall(_root.box5_5, 0, 1, 0, 0);
_root.fixwall(_root.box5_6, 0, 0, 0, 0);
_root.fixwall(_root.box5_7, 1, 0, 0, 1);
_root.fixwall(_root.box6_1, 1, 0, 1, 0);
_root.fixwall(_root.box6_2, 0, 0, 0, 1);
_root.fixwall(_root.box6_3, 0, 1, 1, 1);
_root.fixwall(_root.box6_4, 0, 0, 1, 0);
_root.fixwall(_root.box6_5, 1, 0, 0, 0);
_root.fixwall(_root.box6_6, 0, 0, 0, 0);
_root.fixwall(_root.box6_7, 0, 0, 0, 1);
_root.fixwall(_root.box7_1, 0, 1, 1, 0);
_root.fixwall(_root.box7_2, 0, 1, 0, 0);
_root.fixwall(_root.box7_3, 1, 1, 0, 0);
_root.fixwall(_root.box7_4, 0, 1, 0, 1);
_root.fixwall(_root.box7_5, 0, 1, 1, 0);
_root.fixwall(_root.box7_6, 0, 1, 0, 1);
_root.fixwall(_root.box7_7, 0, 1, 1, 1);
_root.bluecount = 1;
_root.redbox._x = _root.box2_5._x;
_root.redbox._y = _root.box2_5._y;
_root.tmpx = 2;
_root.tmpy = 5;
_root.duplicatebluebox(6, 3);
} else if (_root.level == 6) {
_root.fixwall(_root.box1_1, 1, 1, 1, 0);
_root.fixwall(_root.box1_2, 1, 0, 0, 0);
_root.fixwall(_root.box1_3, 1, 0, 0, 1);
_root.fixwall(_root.box1_4, 1, 0, 1, 0);
_root.fixwall(_root.box1_5, 1, 0, 0, 0);
_root.fixwall(_root.box1_6, 1, 1, 0, 0);
_root.fixwall(_root.box1_7, 1, 0, 0, 1);
_root.fixwall(_root.box1_8, 1, 0, 1, 0);
_root.fixwall(_root.box1_9, 1, 1, 0, 1);
_root.fixwall(_root.box2_1, 1, 0, 1, 0);
_root.fixwall(_root.box2_2, 0, 1, 0, 1);
_root.fixwall(_root.box2_3, 0, 0, 1, 0);
_root.fixwall(_root.box2_4, 0, 0, 0, 0);
_root.fixwall(_root.box2_5, 0, 1, 0, 0);
_root.fixwall(_root.box2_6, 1, 0, 0, 0);
_root.fixwall(_root.box2_7, 0, 0, 0, 0);
_root.fixwall(_root.box2_8, 0, 0, 0, 1);
_root.fixwall(_root.box2_9, 1, 0, 1, 1);
_root.fixwall(_root.box3_1, 0, 0, 1, 0);
_root.fixwall(_root.box3_2, 1, 0, 0, 0);
_root.fixwall(_root.box3_3, 0, 0, 0, 0);
_root.fixwall(_root.box3_4, 0, 0, 0, 0);
_root.fixwall(_root.box3_5, 1, 0, 0, 0);
_root.fixwall(_root.box3_6, 0, 0, 0, 1);
_root.fixwall(_root.box3_7, 0, 0, 1, 1);
_root.fixwall(_root.box3_8, 0, 0, 1, 0);
_root.fixwall(_root.box3_9, 0, 0, 0, 1);
_root.fixwall(_root.box4_1, 0, 1, 1, 0);
_root.fixwall(_root.box4_2, 0, 0, 0, 1);
_root.fixwall(_root.box4_3, 0, 0, 1, 0);
_root.fixwall(_root.box4_4, 0, 1, 0, 0);
_root.fixwall(_root.box4_5, 0, 0, 0, 1);
_root.fixwall(_root.box4_6, 0, 1, 1, 0);
_root.fixwall(_root.box4_7, 0, 0, 0, 0);
_root.fixwall(_root.box4_8, 0, 0, 0, 0);
_root.fixwall(_root.box4_9, 0, 1, 0, 1);
_root.fixwall(_root.box5_1, 1, 0, 1, 0);
_root.fixwall(_root.box5_2, 0, 0, 0, 0);
_root.fixwall(_root.box5_3, 0, 0, 0, 0);
_root.fixwall(_root.box5_4, 1, 1, 0, 0);
_root.fixwall(_root.box5_5, 0, 0, 0, 0);
_root.fixwall(_root.box5_6, 1, 1, 0, 0);
_root.fixwall(_root.box5_7, 0, 0, 0, 1);
_root.fixwall(_root.box5_8, 0, 0, 1, 0);
_root.fixwall(_root.box5_9, 1, 0, 0, 1);
_root.fixwall(_root.box6_1, 0, 0, 1, 0);
_root.fixwall(_root.box6_2, 0, 1, 0, 0);
_root.fixwall(_root.box6_3, 0, 0, 0, 0);
_root.fixwall(_root.box6_4, 1, 0, 0, 1);
_root.fixwall(_root.box6_5, 0, 0, 1, 1);
_root.fixwall(_root.box6_6, 1, 0, 1, 0);
_root.fixwall(_root.box6_7, 0, 1, 0, 0);
_root.fixwall(_root.box6_8, 0, 0, 0, 0);
_root.fixwall(_root.box6_9, 0, 1, 0, 1);
_root.fixwall(_root.box7_1, 0, 0, 1, 1);
_root.fixwall(_root.box7_2, 1, 0, 1, 0);
_root.fixwall(_root.box7_3, 0, 1, 0, 0);
_root.fixwall(_root.box7_4, 0, 0, 0, 0);
_root.fixwall(_root.box7_5, 0, 1, 0, 0);
_root.fixwall(_root.box7_6, 0, 0, 0, 0);
_root.fixwall(_root.box7_7, 1, 0, 0, 0);
_root.fixwall(_root.box7_8, 0, 0, 0, 0);
_root.fixwall(_root.box7_9, 1, 0, 0, 1);
_root.fixwall(_root.box8_1, 0, 1, 1, 0);
_root.fixwall(_root.box8_2, 0, 0, 0, 0);
_root.fixwall(_root.box8_3, 1, 0, 0, 0);
_root.fixwall(_root.box8_4, 0, 1, 0, 0);
_root.fixwall(_root.box8_5, 1, 0, 0, 1);
_root.fixwall(_root.box8_6, 0, 0, 1, 0);
_root.fixwall(_root.box8_7, 0, 0, 0, 0);
_root.fixwall(_root.box8_8, 0, 1, 0, 0);
_root.fixwall(_root.box8_9, 0, 0, 0, 1);
_root.fixwall(_root.box9_1, 1, 1, 1, 0);
_root.fixwall(_root.box9_2, 0, 1, 0, 0);
_root.fixwall(_root.box9_3, 0, 1, 0, 0);
_root.fixwall(_root.box9_4, 1, 1, 0, 1);
_root.fixwall(_root.box9_5, 0, 1, 1, 0);
_root.fixwall(_root.box9_6, 0, 1, 0, 0);
_root.fixwall(_root.box9_7, 0, 1, 0, 0);
_root.fixwall(_root.box9_8, 1, 1, 0, 1);
_root.fixwall(_root.box9_9, 0, 1, 1, 1);
_root.bluecount = 1;
_root.redbox._x = _root.box4_6._x;
_root.redbox._y = _root.box4_6._y;
_root.tmpx = 4;
_root.tmpy = 6;
_root.duplicatebluebox(6, 4);
} else if (_root.level == 7) {
_root.fixwall(_root.box1_1, 1, 1, 1, 0);
_root.fixwall(_root.box1_2, 1, 0, 0, 1);
_root.fixwall(_root.box1_3, 1, 0, 1, 0);
_root.fixwall(_root.box1_4, 1, 1, 0, 0);
_root.fixwall(_root.box1_5, 1, 0, 0, 1);
_root.fixwall(_root.box2_1, 1, 0, 1, 0);
_root.fixwall(_root.box2_2, 0, 0, 0, 0);
_root.fixwall(_root.box2_3, 0, 0, 0, 0);
_root.fixwall(_root.box2_4, 1, 0, 0, 1);
_root.fixwall(_root.box2_5, 0, 0, 1, 1);
_root.fixwall(_root.box3_1, 0, 0, 1, 1);
_root.fixwall(_root.box3_2, 0, 0, 1, 1);
_root.fixwall(_root.box3_3, 0, 1, 1, 0);
_root.fixwall(_root.box3_4, 0, 0, 0, 0);
_root.fixwall(_root.box3_5, 0, 0, 0, 1);
_root.fixwall(_root.box4_1, 0, 0, 1, 0);
_root.fixwall(_root.box4_2, 0, 0, 0, 0);
_root.fixwall(_root.box4_3, 1, 0, 0, 0);
_root.fixwall(_root.box4_4, 0, 0, 0, 0);
_root.fixwall(_root.box4_5, 0, 1, 0, 1);
_root.fixwall(_root.box5_1, 0, 1, 1, 1);
_root.fixwall(_root.box5_2, 0, 1, 1, 0);
_root.fixwall(_root.box5_3, 0, 1, 0, 1);
_root.fixwall(_root.box5_4, 0, 1, 1, 0);
_root.fixwall(_root.box5_5, 1, 1, 0, 1);
_root.bluecount = 5;
_root.redbox._x = _root.box4_3._x;
_root.redbox._y = _root.box4_3._y;
_root.tmpx = 4;
_root.tmpy = 3;
_root.duplicatebluebox(1, 1);
_root.duplicatebluebox(1, 5);
_root.duplicatebluebox(3, 3);
_root.duplicatebluebox(5, 1);
_root.duplicatebluebox(5, 5);
} else if (_root.level == 8) {
_root.fixwall(_root.box1_1, 1, 1, 1, 0);
_root.fixwall(_root.box1_2, 1, 0, 0, 0);
_root.fixwall(_root.box1_3, 1, 1, 0, 0);
_root.fixwall(_root.box1_4, 1, 0, 0, 1);
_root.fixwall(_root.box1_5, 1, 0, 1, 1);
_root.fixwall(_root.box2_1, 1, 0, 1, 0);
_root.fixwall(_root.box2_2, 0, 0, 0, 0);
_root.fixwall(_root.box2_3, 1, 0, 0, 1);
_root.fixwall(_root.box2_4, 0, 0, 1, 0);
_root.fixwall(_root.box2_5, 0, 0, 0, 1);
_root.fixwall(_root.box3_1, 0, 0, 1, 1);
_root.fixwall(_root.box3_2, 0, 0, 1, 0);
_root.fixwall(_root.box3_3, 0, 1, 0, 0);
_root.fixwall(_root.box3_4, 0, 0, 0, 0);
_root.fixwall(_root.box3_5, 0, 1, 0, 1);
_root.fixwall(_root.box4_1, 0, 1, 1, 0);
_root.fixwall(_root.box4_2, 0, 0, 0, 1);
_root.fixwall(_root.box4_3, 1, 0, 1, 0);
_root.fixwall(_root.box4_4, 0, 1, 0, 0);
_root.fixwall(_root.box4_5, 1, 1, 0, 1);
_root.fixwall(_root.box5_1, 1, 1, 1, 0);
_root.fixwall(_root.box5_2, 0, 1, 0, 0);
_root.fixwall(_root.box5_3, 0, 1, 0, 0);
_root.fixwall(_root.box5_4, 1, 1, 0, 0);
_root.fixwall(_root.box5_5, 1, 1, 0, 1);
_root.bluecount = 8;
_root.redbox._x = _root.box3_3._x;
_root.redbox._y = _root.box3_3._y;
_root.tmpx = 3;
_root.tmpy = 3;
_root.duplicatebluebox(1, 2);
_root.duplicatebluebox(1, 4);
_root.duplicatebluebox(2, 1);
_root.duplicatebluebox(2, 5);
_root.duplicatebluebox(4, 1);
_root.duplicatebluebox(4, 5);
_root.duplicatebluebox(5, 2);
_root.duplicatebluebox(5, 4);
} else if (_root.level == 9) {
_root.fixwall(_root.box1_1, 1, 1, 1, 0);
_root.fixwall(_root.box1_2, 1, 0, 0, 1);
_root.fixwall(_root.box1_3, 1, 0, 1, 0);
_root.fixwall(_root.box1_4, 1, 1, 0, 0);
_root.fixwall(_root.box1_5, 1, 1, 0, 1);
_root.fixwall(_root.box2_1, 1, 0, 1, 1);
_root.fixwall(_root.box2_2, 0, 0, 1, 0);
_root.fixwall(_root.box2_3, 0, 0, 0, 0);
_root.fixwall(_root.box2_4, 1, 1, 0, 0);
_root.fixwall(_root.box2_5, 1, 0, 0, 1);
_root.fixwall(_root.box3_1, 0, 0, 1, 0);
_root.fixwall(_root.box3_2, 0, 1, 0, 0);
_root.fixwall(_root.box3_3, 0, 0, 0, 0);
_root.fixwall(_root.box3_4, 1, 0, 0, 0);
_root.fixwall(_root.box3_5, 0, 1, 0, 1);
_root.fixwall(_root.box4_1, 0, 0, 1, 0);
_root.fixwall(_root.box4_2, 1, 0, 0, 1);
_root.fixwall(_root.box4_3, 0, 0, 1, 1);
_root.fixwall(_root.box4_4, 0, 1, 1, 0);
_root.fixwall(_root.box4_5, 1, 0, 0, 1);
_root.fixwall(_root.box5_1, 0, 1, 1, 1);
_root.fixwall(_root.box5_2, 0, 1, 1, 0);
_root.fixwall(_root.box5_3, 0, 1, 0, 0);
_root.fixwall(_root.box5_4, 1, 1, 0, 0);
_root.fixwall(_root.box5_5, 0, 1, 0, 1);
_root.bluecount = 8;
_root.redbox._x = _root.box3_3._x;
_root.redbox._y = _root.box3_3._y;
_root.tmpx = 3;
_root.tmpy = 3;
_root.duplicatebluebox(1, 1);
_root.duplicatebluebox(1, 5);
_root.duplicatebluebox(2, 2);
_root.duplicatebluebox(2, 4);
_root.duplicatebluebox(4, 2);
_root.duplicatebluebox(4, 4);
_root.duplicatebluebox(5, 1);
_root.duplicatebluebox(5, 5);
} else if (_root.level == 10) {
_root.fixwall(_root.box1_1, 1, 0, 1, 1);
_root.fixwall(_root.box1_2, 1, 0, 1, 0);
_root.fixwall(_root.box1_3, 1, 0, 0, 1);
_root.fixwall(_root.box1_4, 1, 0, 1, 0);
_root.fixwall(_root.box1_5, 1, 0, 0, 0);
_root.fixwall(_root.box1_6, 1, 0, 0, 1);
_root.fixwall(_root.box2_1, 0, 1, 1, 0);
_root.fixwall(_root.box2_2, 0, 0, 0, 0);
_root.fixwall(_root.box2_3, 0, 1, 0, 0);
_root.fixwall(_root.box2_4, 0, 0, 0, 1);
_root.fixwall(_root.box2_5, 0, 0, 1, 0);
_root.fixwall(_root.box2_6, 0, 1, 0, 1);
_root.fixwall(_root.box3_1, 1, 0, 1, 1);
_root.fixwall(_root.box3_2, 0, 0, 1, 0);
_root.fixwall(_root.box3_3, 1, 0, 0, 0);
_root.fixwall(_root.box3_4, 0, 0, 0, 0);
_root.fixwall(_root.box3_5, 0, 0, 0, 0);
_root.fixwall(_root.box3_6, 1, 0, 0, 1);
_root.fixwall(_root.box4_1, 0, 1, 1, 0);
_root.fixwall(_root.box4_2, 0, 0, 0, 0);
_root.fixwall(_root.box4_3, 0, 0, 0, 1);
_root.fixwall(_root.box4_4, 0, 1, 1, 0);
_root.fixwall(_root.box4_5, 0, 0, 0, 1);
_root.fixwall(_root.box4_6, 0, 1, 1, 1);
_root.fixwall(_root.box5_1, 1, 0, 1, 0);
_root.fixwall(_root.box5_2, 0, 0, 0, 0);
_root.fixwall(_root.box5_3, 0, 1, 0, 0);
_root.fixwall(_root.box5_4, 1, 0, 0, 0);
_root.fixwall(_root.box5_5, 0, 0, 0, 0);
_root.fixwall(_root.box5_6, 1, 0, 0, 1);
_root.fixwall(_root.box6_1, 0, 1, 1, 1);
_root.fixwall(_root.box6_2, 0, 1, 1, 0);
_root.fixwall(_root.box6_3, 1, 1, 0, 0);
_root.fixwall(_root.box6_4, 0, 1, 0, 1);
_root.fixwall(_root.box6_5, 0, 1, 1, 0);
_root.fixwall(_root.box6_6, 0, 1, 0, 1);
_root.bluecount = 6;
_root.redbox._x = _root.box3_1._x;
_root.redbox._y = _root.box3_1._y;
_root.tmpx = 3;
_root.tmpy = 1;
_root.duplicatebluebox(1, 4);
_root.duplicatebluebox(2, 1);
_root.duplicatebluebox(4, 6);
_root.duplicatebluebox(5, 1);
_root.duplicatebluebox(5, 6);
_root.duplicatebluebox(6, 4);
} else if (_root.level == 11) {
_root.fixwall(_root.box1_1, 1, 0, 1, 0);
_root.fixwall(_root.box1_2, 1, 1, 0, 0);
_root.fixwall(_root.box1_3, 1, 0, 0, 1);
_root.fixwall(_root.box1_4, 1, 0, 1, 0);
_root.fixwall(_root.box1_5, 1, 0, 0, 0);
_root.fixwall(_root.box1_6, 1, 0, 0, 0);
_root.fixwall(_root.box1_7, 1, 1, 0, 1);
_root.fixwall(_root.box1_8, 1, 0, 1, 1);
_root.fixwall(_root.box2_1, 0, 0, 1, 0);
_root.fixwall(_root.box2_2, 1, 0, 0, 0);
_root.fixwall(_root.box2_3, 0, 0, 0, 0);
_root.fixwall(_root.box2_4, 0, 0, 0, 0);
_root.fixwall(_root.box2_5, 0, 0, 0, 1);
_root.fixwall(_root.box2_6, 0, 0, 1, 0);
_root.fixwall(_root.box2_7, 1, 0, 0, 0);
_root.fixwall(_root.box2_8, 0, 0, 0, 1);
_root.fixwall(_root.box3_1, 0, 0, 1, 0);
_root.fixwall(_root.box3_2, 0, 0, 0, 0);
_root.fixwall(_root.box3_3, 0, 1, 0, 0);
_root.fixwall(_root.box3_4, 0, 0, 0, 0);
_root.fixwall(_root.box3_5, 0, 0, 0, 0);
_root.fixwall(_root.box3_6, 0, 0, 0, 0);
_root.fixwall(_root.box3_7, 0, 1, 0, 1);
_root.fixwall(_root.box3_8, 0, 0, 1, 1);
_root.fixwall(_root.box4_1, 0, 1, 1, 1);
_root.fixwall(_root.box4_2, 0, 0, 1, 1);
_root.fixwall(_root.box4_3, 1, 0, 1, 0);
_root.fixwall(_root.box4_4, 0, 0, 0, 0);
_root.fixwall(_root.box4_5, 0, 0, 0, 0);
_root.fixwall(_root.box4_6, 0, 0, 0, 0);
_root.fixwall(_root.box4_7, 1, 0, 0, 0);
_root.fixwall(_root.box4_8, 0, 1, 0, 1);
_root.fixwall(_root.box5_1, 1, 0, 1, 0);
_root.fixwall(_root.box5_2, 0, 0, 0, 0);
_root.fixwall(_root.box5_3, 0, 0, 0, 0);
_root.fixwall(_root.box5_4, 0, 1, 0, 1);
_root.fixwall(_root.box5_5, 0, 0, 1, 0);
_root.fixwall(_root.box5_6, 0, 0, 0, 1);
_root.fixwall(_root.box5_7, 0, 0, 1, 0);
_root.fixwall(_root.box5_8, 1, 0, 0, 1);
_root.fixwall(_root.box6_1, 0, 0, 1, 0);
_root.fixwall(_root.box6_2, 0, 0, 0, 0);
_root.fixwall(_root.box6_3, 0, 0, 0, 0);
_root.fixwall(_root.box6_4, 1, 0, 0, 0);
_root.fixwall(_root.box6_5, 0, 1, 0, 0);
_root.fixwall(_root.box6_6, 0, 0, 0, 0);
_root.fixwall(_root.box6_7, 0, 0, 0, 0);
_root.fixwall(_root.box6_8, 0, 1, 0, 1);
_root.fixwall(_root.box7_1, 0, 0, 1, 0);
_root.fixwall(_root.box7_2, 0, 0, 0, 0);
_root.fixwall(_root.box7_3, 0, 1, 0, 0);
_root.fixwall(_root.box7_4, 0, 0, 0, 0);
_root.fixwall(_root.box7_5, 1, 1, 0, 0);
_root.fixwall(_root.box7_6, 0, 0, 0, 0);
_root.fixwall(_root.box7_7, 0, 0, 0, 0);
_root.fixwall(_root.box7_8, 1, 0, 0, 1);
_root.fixwall(_root.box8_1, 0, 1, 1, 1);
_root.fixwall(_root.box8_2, 0, 1, 1, 0);
_root.fixwall(_root.box8_3, 1, 1, 0, 0);
_root.fixwall(_root.box8_4, 0, 1, 0, 0);
_root.fixwall(_root.box8_5, 1, 1, 0, 0);
_root.fixwall(_root.box8_6, 0, 1, 0, 1);
_root.fixwall(_root.box8_7, 0, 1, 1, 0);
_root.fixwall(_root.box8_8, 0, 1, 0, 1);
_root.bluecount = 14;
_root.redbox._x = _root.box5_5._x;
_root.redbox._y = _root.box5_5._y;
_root.tmpx = 5;
_root.tmpy = 5;
_root.duplicatebluebox(1, 2);
_root.duplicatebluebox(1, 6);
_root.duplicatebluebox(1, 8);
_root.duplicatebluebox(2, 4);
_root.duplicatebluebox(3, 7);
_root.duplicatebluebox(4, 1);
_root.duplicatebluebox(4, 3);
_root.duplicatebluebox(4, 5);
_root.duplicatebluebox(5, 7);
_root.duplicatebluebox(6, 2);
_root.duplicatebluebox(7, 5);
_root.duplicatebluebox(8, 1);
_root.duplicatebluebox(8, 3);
_root.duplicatebluebox(8, 7);
}
_root.redbox.swapDepths(1000);
_root.bluebox.swapDepths(999);
}
Instance of Symbol 201 MovieClip "lev elbar" in Frame 10
onClipEvent (load) {
this.gotoAndStop(_root.level);
if (_root.level == 0) {
this.gotoAndStop(30);
}
}
Instance of Symbol 218 MovieClip "redbox" in Frame 10
onClipEvent (enterFrame) {
if (enmove == true) {
_root.stepcount = _root.stepcount + 1;
if (dir == 1) {
this._y = this._y - _root.speed;
} else if (dir == 2) {
this._y = this._y + _root.speed;
} else if (dir == 3) {
this._x = this._x - _root.speed;
} else if (dir == 4) {
this._x = this._x + _root.speed;
}
if (_root.stepcount == _root.speedstep) {
bugmovesound = new Sound();
bugmovesound.attachSound("bugmove");
bugmovesound.start();
if (dir == 1) {
_root.tmpx = _root.tmpx - 1;
} else if (dir == 2) {
_root.tmpx = _root.tmpx + 1;
} else if (dir == 3) {
_root.tmpy = _root.tmpy - 1;
} else if (dir == 4) {
_root.tmpy = _root.tmpy + 1;
}
this._x = _root[(("box" add _root.tmpx) add "_") add _root.tmpy]._x;
this._y = _root[(("box" add _root.tmpx) add "_") add _root.tmpy]._y;
if (this.hitTest(_root.bluebox)) {
}
if ((dir == 1) and (_root[(("box" add _root.tmpx) add "_") add _root.tmpy].t._visible == true)) {
enmove = false;
enmovenext = true;
} else if ((dir == 2) and (_root[(("box" add _root.tmpx) add "_") add _root.tmpy].b._visible == true)) {
enmove = false;
enmovenext = true;
} else if ((dir == 3) and (_root[(("box" add _root.tmpx) add "_") add _root.tmpy].l._visible == true)) {
enmove = false;
enmovenext = true;
} else if ((dir == 4) and (_root[(("box" add _root.tmpx) add "_") add _root.tmpy].r._visible == true)) {
enmove = false;
enmovenext = true;
}
if (enmovenext == true) {
impactwallsound = new Sound();
impactwallsound.attachSound("impactwall");
impactwallsound.start();
}
_root.stepcount = 0;
}
}
}
onClipEvent (load) {
function seewall() {
stopwall = false;
if ((dir == 1) and (_root[(("box" add _root.tmpx) add "_") add _root.tmpy].t._visible == true)) {
stopwall = true;
} else if ((dir == 2) and (_root[(("box" add _root.tmpx) add "_") add _root.tmpy].b._visible == true)) {
stopwall = true;
} else if ((dir == 3) and (_root[(("box" add _root.tmpx) add "_") add _root.tmpy].l._visible == true)) {
stopwall = true;
} else if ((dir == 4) and (_root[(("box" add _root.tmpx) add "_") add _root.tmpy].r._visible == true)) {
stopwall = true;
}
}
enmove = false;
enmovenext = true;
_root.stepcount = 0;
_root.speedstep = 7;
_root.speed = _root.box1_0._width / _root.speedstep;
}
onClipEvent (keyDown) {
if (((enmovenext == true) and (_root.gamewin == false)) and (_root.gameoverbar._currentframe != 2)) {
if (Key.isDown(38)) {
dir = 1;
this._rotation = 0;
} else if (Key.isDown(40)) {
dir = 2;
this._rotation = 180;
} else if (Key.isDown(37)) {
dir = 3;
this._rotation = -90;
} else if (Key.isDown(39)) {
dir = 4;
this._rotation = 90;
} else {
dir = 0;
}
seewall();
if (stopwall == false) {
enmove = true;
enmovenext = false;
}
if (Key.isDown(38)) {
dir = 1;
} else if (Key.isDown(40)) {
dir = 2;
} else if (Key.isDown(37)) {
dir = 3;
} else if (Key.isDown(39)) {
dir = 4;
} else {
enmove = false;
enmovenext = true;
}
}
}
Instance of Symbol 224 MovieClip "bluebox" in Frame 10
onClipEvent (enterFrame) {
if (this.hitTest(_root.redbox) and (_root.levelbar._currentframe == 1)) {
_root.killbluecount = _root.killbluecount + 1;
if (_root.killbluecount == _root.bluecount) {
_root.gamestop = true;
_root.gamewin = true;
if (_root.level == 0) {
_root.levelbar.gotoAndStop(3);
} else if (_root.level == _root.levelall) {
_root.levelbar.gotoAndStop(4);
} else {
_root.levelbar.gotoAndStop(2);
}
_root.levelbar.swapDepths(2000);
}
this.removeMovieClip();
}
}
Frame 15
stop();
Frame 16
if (_root.remake == false) {
_root.redthisx = 0;
_root.redthisy = 0;
_root.blueloop = 1;
_root.bluecount = 0;
}
Instance of Symbol 266 MovieClip "box1_0" in Frame 16
onClipEvent (load) {
_root.fristboxpointx = this._x;
_root.fristboxpointy = this._y;
}
Instance of Symbol 268 MovieClip "aaa" in Frame 16
onClipEvent (load) {
_root.levelbar.gotoAndStop(1);
_root.gameoverbar.gotoAndStop(1);
this._visible = false;
if (_root.level == 1) {
} else if (_root.level == 2) {
} else if (_root.level == 3) {
} else if (_root.level == 4) {
} else if (_root.level == 5) {
} else if (_root.level == 6) {
} else if (_root.level == 7) {
}
xx = _root.box1_0._width;
yy = _root.box1_0._height;
loop = 1;
_root.box1_0._x = _root.fristboxpointx - (((_root.cross - 5) * xx) / 2);
_root.box1_0._y = _root.fristboxpointy - (((_root.cross - 5) * yy) / 2);
j = 1;
while (j <= _root.cross) {
if (j == 1) {
i = j;
while (i <= _root.cross) {
duplicateMovieClip ("_root.box1_0", (("box" add j) add "_") add i, loop);
_root[(("box" add j) add "_") add i]._x = _root[(("box" add j) add "_") add (i - 1)]._x + xx;
_root[(("box" add j) add "_") add i].thisx = j;
_root[(("box" add j) add "_") add i].thisy = i;
_root[(("box" add j) add "_") add i].withblue = false;
_root[(("box" add j) add "_") add i].withred = false;
_root[(("box" add j) add "_") add i].thisbutton.useHandCursor = false;
loop = loop + 1;
_root.killwall(_root[(("box" add j) add "_") add i]);
i++;
}
} else {
i = 1;
while (i <= _root.cross) {
if (i == 1) {
duplicateMovieClip ("_root.box1_0", (("box" add j) add "_") add i, loop);
_root[(("box" add j) add "_") add i]._y = _root[(("box" add (j - 1)) add "_") add i]._y + yy;
_root[(("box" add j) add "_") add i]._x = _root.box1_0._x + xx;
_root[(("box" add j) add "_") add i].thisx = j;
_root[(("box" add j) add "_") add i].thisy = i;
_root[(("box" add j) add "_") add i].withblue = false;
_root[(("box" add j) add "_") add i].withred = false;
_root[(("box" add j) add "_") add i].thisbutton.useHandCursor = false;
loop = loop + 1;
_root.killwall(_root[(("box" add j) add "_") add i]);
} else {
duplicateMovieClip ((("_root.box" add j) add "_") add (i - 1), (("box" add j) add "_") add i, loop);
_root[(("box" add j) add "_") add i]._x = _root[(("box" add j) add "_") add (i - 1)]._x + xx;
_root[(("box" add j) add "_") add i].thisx = j;
_root[(("box" add j) add "_") add i].thisy = i;
_root[(("box" add j) add "_") add i].withblue = false;
_root[(("box" add j) add "_") add i].withred = false;
_root[(("box" add j) add "_") add i].thisbutton.useHandCursor = false;
loop = loop + 1;
_root.killwall(_root[(("box" add j) add "_") add i]);
}
i++;
}
}
j++;
}
i = 1;
while (i <= _root.cross) {
_root["box1_" add i].t.gotoAndStop(2);
_root[(("box" add _root.cross) add "_") add i].b.gotoAndStop(2);
_root[(("box" add i) add "_") add 1].l.gotoAndStop(2);
_root[(("box" add i) add "_") add _root.cross].r.gotoAndStop(2);
i++;
}
_root.gamewin = false;
_root.box1_0._visible = false;
_root.redbox.swapDepths(1000);
_root.bluebox.swapDepths(999);
j = 1;
while (j <= _root.cross) {
i = 1;
while (i <= _root.cross) {
_root[(("box" add j) add "_") add i].t._visible = 1;
_root[(("box" add j) add "_") add i].b._visible = 1;
_root[(("box" add j) add "_") add i].l._visible = 1;
_root[(("box" add j) add "_") add i].r._visible = 1;
i++;
}
j++;
}
if (_root.remake == true) {
mmm = 1;
j = 1;
while (j <= _root.cross) {
i = 1;
while (i <= _root.cross) {
_root[(("box" add j) add "_") add i]._visible = true;
_root[(("box" add j) add "_") add i].t.gotoAndStop(parseInt(_root.boxarrayt[mmm]) + 1);
_root[(("box" add j) add "_") add i].b.gotoAndStop(parseInt(_root.boxarrayb[mmm]) + 1);
_root[(("box" add j) add "_") add i].l.gotoAndStop(parseInt(_root.boxarrayl[mmm]) + 1);
_root[(("box" add j) add "_") add i].r.gotoAndStop(parseInt(_root.boxarrayr[mmm]) + 1);
if (_root.blueboxarrayx[mmm] != 0) {
_root[(("box" add _root.blueboxarrayx[mmm]) add "_") add _root.blueboxarrayy[mmm]].withblue = true;
_root.duplicatebluebox(_root.blueboxarrayx[mmm], _root.blueboxarrayy[mmm]);
}
mmm = mmm + 1;
i++;
}
j++;
}
_root.redbox._x = _root[(("box" add _root.redboxarrayx) add "_") add _root.redboxarrayy]._x;
_root.redbox._y = _root[(("box" add _root.redboxarrayx) add "_") add _root.redboxarrayy]._y;
_root[(("box" add _root.redboxarrayx) add "_") add _root.redboxarrayy].withred = true;
}
}
Instance of Symbol 272 MovieClip "redbox" in Frame 16
/* no clip actions */
Instance of Symbol 224 MovieClip "bluebox" in Frame 16
onClipEvent (enterFrame) {
if (this.hitTest(_root.redbox) and (_root.levelbar._currentframe == 1)) {
_root.killbluecount = _root.killbluecount + 1;
if (_root.killbluecount == _root.bluecount) {
_root.gamestop = true;
_root.gamewin = true;
if (_root.level == 0) {
_root.levelbar.gotoAndStop(3);
} else {
_root.levelbar.gotoAndStop(2);
}
_root.levelbar.swapDepths(2000);
}
this.removeMovieClip();
}
}
Instance of Symbol 278 MovieClip in Frame 16
onClipEvent (load) {
this.swapDepths(5000);
}
Symbol 20 MovieClip Frame 1
stop();
Symbol 20 MovieClip Frame 2
gotoAndPlay(random(15) + 2);
Symbol 20 MovieClip Frame 30
gotoAndPlay (2);
Symbol 22 MovieClip Frame 1
stop();
Symbol 22 MovieClip Frame 2515
i = 1;
while (i <= 8) {
_root["mmm" add i].gotoAndStop(1);
i++;
}
stop();
Symbol 41 Button
on (release) {
if ((_root.gameoverbarshow == false) and (_root.levelbarshow == false)) {
resetsound = new Sound();
resetsound.attachSound("resetsound");
resetsound.start();
_root.redbox.removeMovieClip();
_root.bluebox.removeMovieClip();
_root.gotoAndPlay(9);
_root.clearall();
}
}
Instance of Symbol 42 MovieClip in Symbol 43 MovieClip Frame 1
onClipEvent (load) {
if (this._parent._name == "box1_1") {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 43 MovieClip in Symbol 48 MovieClip Frame 1
onClipEvent (load) {
_root.fristboxpointx = this._x;
_root.fristboxpointy = this._y;
}
Symbol 53 MovieClip Frame 247
stop();
_root.m1.play();
Symbol 58 Button
on (release) {
getURL ("http://www.hanfish.com", "_blank");
}
Symbol 63 Button
on (release) {
getURL ("http://www.hanfish.com", "_blank");
}
Symbol 84 Button
on (release) {
if ((_root.gameoverbarshow == false) and (_root.levelbarshow == false)) {
_root.redbox.removeMovieClip();
_root.bluebox.removeMovieClip();
_root.gotoAndPlay(9);
_root.clearall();
}
}
Symbol 98 Button
on (release) {
_global.moli.click2Pay();
stopAllSounds();
_root.play();
}
Symbol 100 Button
on (release) {
stopAllSounds();
_root.play();
}
Symbol 101 MovieClip Frame 1
stop();
Symbol 101 MovieClip Frame 3
_root.soundbar.play();
Symbol 101 MovieClip Frame 35
_root.m2.play();
stop();
Symbol 106 Button
on (release) {
stopAllSounds();
_root.gotoAndStop(15);
}
Symbol 107 Button
on (release) {
stopAllSounds();
_root.gotoAndStop(15);
}
Symbol 108 MovieClip Frame 1
stop();
Symbol 108 MovieClip Frame 35
i = 1;
while (i <= 7) {
_root["mmm" add i].gotoAndPlay(2);
i++;
}
stop();
Symbol 111 Button
on (release) {
fscommand ("quit");
}
Symbol 127 MovieClip Frame 1
stop();
Symbol 136 MovieClip Frame 1
Symbol 136 MovieClip Frame 60
if ((_root.gametime == 0) or (_root.gamestop == true)) {
stop();
} else {
this.gotoAndPlay(1);
}
Symbol 137 MovieClip Frame 1
stop();
Symbol 144 Button
on (release) {
_root.clearall();
_root.remake = true;
_root.gotoAndStop(16);
}
Symbol 151 Button
on (release) {
this.gotoAndStop(1);
_root.gametime = _root.timetime;
_root.level = _root.level + 1;
_root.clearall();
_root.redbox.removeMovieClip();
_root.bluebox.removeMovieClip();
_root.gotoAndPlay(9);
}
Symbol 159 Button
on (release) {
_global.moli.click2Pay();
this.gotoAndStop(1);
_root.gametime = _root.timetime;
_root.level = _root.level + 1;
_root.clearall();
_root.redbox.removeMovieClip();
_root.bluebox.removeMovieClip();
_root.gotoAndPlay(9);
}
Symbol 181 MovieClip Frame 1
gotoAndPlay(random(_totalframes) + 1);
Symbol 181 MovieClip Frame 14
gotoAndPlay (1);
Symbol 181 MovieClip Frame 27
gotoAndPlay (1);
Symbol 181 MovieClip Frame 40
gotoAndPlay (1);
Symbol 181 MovieClip Frame 53
gotoAndPlay (1);
Symbol 181 MovieClip Frame 66
gotoAndPlay (1);
Symbol 181 MovieClip Frame 79
gotoAndPlay (1);
Symbol 181 MovieClip Frame 92
gotoAndPlay (1);
Symbol 181 MovieClip Frame 105
gotoAndPlay (1);
Symbol 181 MovieClip Frame 118
gotoAndPlay (1);
Symbol 181 MovieClip Frame 131
gotoAndPlay (1);
Symbol 181 MovieClip Frame 144
gotoAndPlay (1);
Symbol 181 MovieClip Frame 157
gotoAndPlay (1);
Symbol 181 MovieClip Frame 170
gotoAndPlay (1);
Symbol 181 MovieClip Frame 183
gotoAndPlay (1);
Symbol 181 MovieClip Frame 196
gotoAndPlay (1);
Symbol 187 MovieClip Frame 1
stop();
_root.levelbarshow = false;
Symbol 187 MovieClip Frame 2
_root.levelbarshow = true;
Symbol 187 MovieClip Frame 3
_root.levelbarshow = true;
Symbol 187 MovieClip Frame 4
_root.levelbarshow = true;
Symbol 201 MovieClip Frame 1
stop();
Symbol 201 MovieClip Frame 2
stop();
Symbol 201 MovieClip Frame 3
stop();
Symbol 201 MovieClip Frame 4
stop();
Symbol 201 MovieClip Frame 5
stop();
Symbol 201 MovieClip Frame 6
stop();
Symbol 201 MovieClip Frame 7
stop();
Symbol 201 MovieClip Frame 8
stop();
Symbol 201 MovieClip Frame 9
stop();
Symbol 201 MovieClip Frame 10
stop();
Symbol 201 MovieClip Frame 11
stop();
Symbol 203 Button
on (keyPress "<Space>") {
if ((_root.gameoverbarshow == false) and (_root.levelbarshow == false)) {
resetsound = new Sound();
resetsound.attachSound("resetsound");
resetsound.start();
_root.clearall();
_root.redbox.removeMovieClip();
_root.bluebox.removeMovieClip();
_root.gotoAndPlay(9);
}
}
on (keyPress "N") {
if ((_root.gameoverbarshow == false) and (_root.levelbarshow == false)) {
if (_root.level != _root.levelall) {
_root.gametime = _root.timetime;
_root.clearall();
_root.level = _root.level + 1;
_root.redbox.removeMovieClip();
_root.bluebox.removeMovieClip();
_root.gotoAndPlay(9);
}
}
}
on (keyPress "P") {
if ((_root.gameoverbarshow == false) and (_root.levelbarshow == false)) {
if (_root.level != 1) {
_root.gametime = _root.timetime;
_root.clearall();
_root.level = _root.level - 1;
_root.redbox.removeMovieClip();
_root.bluebox.removeMovieClip();
_root.gotoAndPlay(9);
}
}
}
on (keyPress "q") {
fscommand ("trapallkeys", "false");
fscommand ("showmenu", "true");
}
Symbol 205 Button
on (release) {
_root.clearall();
_root.gametime = _root.timetime;
_root.level = 1;
_root.redbox.removeMovieClip();
_root.bluebox.removeMovieClip();
this.gotoAndStop(1);
_root.gotoAndPlay(9);
}
Symbol 211 MovieClip Frame 1
stop();
_root.gameoverbarshow = false;
Symbol 211 MovieClip Frame 2
_root.levelbarshow = true;
_root.gameoverbarshow = true;
Symbol 223 MovieClip Frame 1
gotoAndStop(random(this._totalframes) + 1);
Symbol 227 Button
on (release) {
stopAllSounds();
_root.clearall();
_root.gotoAndStop(8);
}
Symbol 232 Button
on (release) {
gotoAndStop (1);
_root.cross = 5;
}
Symbol 233 Button
on (release) {
gotoAndStop (2);
_root.cross = 6;
}
Symbol 234 Button
on (release) {
gotoAndStop (3);
_root.cross = 7;
}
Symbol 235 Button
on (release) {
gotoAndStop (4);
_root.cross = 8;
}
Symbol 236 Button
on (release) {
gotoAndStop (5);
_root.cross = 9;
}
Symbol 239 MovieClip Frame 1
stop();
_root.cross = 5;
Symbol 246 Button
on (release) {
nextFrame();
}
Symbol 247 Button
on (release) {
_root.clearall();
_root.gotoAndStop(8);
}
Symbol 249 Button
on (release) {
putwallsound = new Sound();
putwallsound.attachSound("putwallsound");
putwallsound.start();
_root[(("box" add this._parent.thisx) add "_") add (this._parent.thisy + 1)].l.gotoAndStop(2);
gotoAndStop (2);
}
Symbol 250 Button
on (release) {
putwallsound = new Sound();
putwallsound.attachSound("putwallsound");
putwallsound.start();
_root[(("box" add this._parent.thisx) add "_") add (this._parent.thisy + 1)].l.gotoAndStop(1);
gotoAndStop (1);
}
Symbol 251 MovieClip Frame 1
stop();
Symbol 251 MovieClip Frame 2
stop();
Symbol 252 Button
on (release) {
putwallsound = new Sound();
putwallsound.attachSound("putwallsound");
putwallsound.start();
_root[(("box" add this._parent.thisx) add "_") add (this._parent.thisy - 1)].r.gotoAndStop(2);
gotoAndStop (2);
}
Symbol 254 Button
on (release) {
putwallsound = new Sound();
putwallsound.attachSound("putwallsound");
putwallsound.start();
_root[(("box" add this._parent.thisx) add "_") add (this._parent.thisy - 1)].r.gotoAndStop(1);
gotoAndStop (1);
}
Symbol 255 MovieClip Frame 1
stop();
Symbol 255 MovieClip Frame 2
stop();
Symbol 258 Button
on (release) {
putwallsound = new Sound();
putwallsound.attachSound("putwallsound");
putwallsound.start();
_root[(("box" add (this._parent.thisx + 1)) add "_") add this._parent.thisy].t.gotoAndStop(2);
gotoAndStop (2);
}
Symbol 259 Button
on (release) {
putwallsound = new Sound();
putwallsound.attachSound("putwallsound");
putwallsound.start();
_root[(("box" add (this._parent.thisx + 1)) add "_") add this._parent.thisy].t.gotoAndStop(1);
gotoAndStop (1);
}
Symbol 260 MovieClip Frame 1
stop();
Symbol 260 MovieClip Frame 2
stop();
Symbol 261 Button
on (release) {
putwallsound = new Sound();
putwallsound.attachSound("putwallsound");
putwallsound.start();
_root[(("box" add (this._parent.thisx - 1)) add "_") add this._parent.thisy].b.gotoAndStop(2);
gotoAndStop (2);
}
Symbol 262 Button
on (release) {
putwallsound = new Sound();
putwallsound.attachSound("putwallsound");
putwallsound.start();
_root[(("box" add (this._parent.thisx - 1)) add "_") add this._parent.thisy].b.gotoAndStop(1);
gotoAndStop (1);
}
Symbol 263 MovieClip Frame 1
stop();
Symbol 263 MovieClip Frame 2
stop();
Symbol 265 Button
on (release) {
if (_root.clickpoint._currentframe == 1) {
} else if (_root.clickpoint._currentframe == 2) {
putsound = new Sound();
putsound.attachSound("putsound");
putsound.start();
if (withblue == true) {
_root[(("bluebox" add thisx) add "_") add thisy].removeMovieClip();
withblue = false;
_root.bluecount = _root.bluecount - 1;
}
_root[(("box" add _root.redthisx) add "_") add _root.redthisy].withred = false;
withred = true;
_root.redbox._x = this._x;
_root.redbox._y = this._y;
_root.redthisx = thisx;
_root.redthisy = thisy;
} else if (_root.clickpoint._currentframe == 3) {
putsound = new Sound();
putsound.attachSound("putsound");
putsound.start();
if (withred == false) {
if (withblue == false) {
duplicateMovieClip ("_root.bluebox", (("bluebox" add thisx) add "_") add thisy, _root.blueloop + 2000);
_root[(("bluebox" add thisx) add "_") add thisy]._x = this._x;
_root[(("bluebox" add thisx) add "_") add thisy]._y = this._y;
_root.blueloop = _root.blueloop + 1;
_root.bluecount = _root.bluecount + 1;
withblue = true;
} else if (withblue == true) {
_root[(("bluebox" add thisx) add "_") add thisy].removeMovieClip();
withblue = false;
_root.bluecount = _root.bluecount - 1;
}
}
}
}
Symbol 271 Button
on (release) {
_root.gametime = _root.timetime;
ttt = 1;
j = 1;
while (j <= _root.cross) {
i = 1;
while (i <= _root.cross) {
aa = _root[(("box" add j) add "_") add i].t._currentframe - 1;
bb = _root[(("box" add j) add "_") add i].b._currentframe - 1;
cc = _root[(("box" add j) add "_") add i].l._currentframe - 1;
dd = _root[(("box" add j) add "_") add i].r._currentframe - 1;
trace(((((((((("_root.fixwall(_root." add _root[(("box" add j) add "_") add i]._name) add ",") add aa) add ",") add bb) add ",") add cc) add ",") add dd) add ")");
_root.redboxarrayx = _root.redthisx;
_root.redboxarrayy = _root.redthisy;
_root.boxarrayt[ttt] = aa;
_root.boxarrayb[ttt] = bb;
_root.boxarrayl[ttt] = cc;
_root.boxarrayr[ttt] = dd;
ttt = ttt + 1;
i++;
}
j++;
}
trace("_root.bluecount=" add _root.bluecount);
trace(("_root.redbox._x= _root." add _root[(("box" add _root.redthisx) add "_") add _root.redthisy]._name) add "._x");
trace(("_root.redbox._y= _root." add _root[(("box" add _root.redthisx) add "_") add _root.redthisy]._name) add "._y");
trace("_root.tmpx=" add _root.redthisx);
trace("_root.tmpy=" add _root.redthisy);
bbmm = 1;
j = 1;
while (j <= _root.cross) {
i = 1;
while (i <= _root.cross) {
_root.blueboxarrayx[bbmm] = 0;
_root.blueboxarrayy[bbmm] = 0;
if (_root[(("box" add j) add "_") add i].withblue == true) {
_root.blueboxarrayx[bbmm] = _root[(("box" add j) add "_") add i].thisx;
_root.blueboxarrayy[bbmm] = _root[(("box" add j) add "_") add i].thisy;
trace(((("_root.duplicatebluebox(" add _root[(("box" add j) add "_") add i].thisx) add ",") add _root[(("box" add j) add "_") add i].thisy) add ")");
}
bbmm = bbmm + 1;
_root[(("bluebox" add j) add "_") add i].removeMovieClip();
i++;
}
j++;
}
_root.level = 0;
j = 1;
while (j <= _root.cross) {
i = 1;
while (i <= _root.cross) {
_root[(("box" add j) add "_") add i].removeMovieClip();
_root[(("bluebox" add j) add "_") add i].removeMovieClip();
i++;
}
j++;
}
_root.redbox.removeMovieClip();
_root.gotoAndPlay(9);
}
Symbol 273 Button
on (release) {
gotoAndStop (1);
}
Symbol 274 Button
on (release) {
gotoAndStop (2);
}
Symbol 275 Button
on (release) {
gotoAndStop (3);
}
Symbol 277 MovieClip Frame 1
stop();
Symbol 279 Button
on (release) {
j = 1;
while (j <= _root.cross) {
i = 1;
while (i <= _root.cross) {
_root[(("box" add j) add "_") add i].removeMovieClip();
_root[(("bluebox" add j) add "_") add i].removeMovieClip();
i++;
}
j++;
}
_root.redbox.removeMovieClip();
_root.prevFrame();
}