Frame 1
_highquality = "1";
fscommand ("fullscreen", "false");
fscommand ("allowscale", "false");
fscommand ("showmenu", "false");
Frame 4
ifFrameLoaded (48) {
gotoAndPlay (6);
}
Frame 5
gotoAndPlay (2);
Frame 6
_highquality = "1";
BlockNum = "5";
Skill = "HARD";
Frame 8
stop();
Frame 10
_highquality = "0";
BlockColor = "0";
BlockClicked = "unassigned";
BlocksLeft = "130";
setProperty("/PICTURE" add Model, _alpha , "0");
Frame 14
LoopY = "1";
Counter = "1";
while (LoopY < "14") {
LoopX = "1";
while (LoopX < "11") {
Set(("Newblock" add Counter) add "_Color", random(BlockNum) + "1");
LoopX = LoopX + "1";
Counter = Counter + "1";
}
LoopY = LoopY + "1";
}
Frame 16
LoopY = "1";
while (LoopY < "14") {
LoopX = "1";
while (LoopX < "11") {
Set((("X" add LoopX) add "_") add LoopY, int("32" + (LoopX * "30")));
Set((("Y" add LoopX) add "_") add LoopY, int("9" + (LoopY * "30")));
LoopX = LoopX + "1";
}
LoopY = LoopY + "1";
}
Frame 18
Counter = "1";
LoopY = "1";
while (LoopY < "14") {
LoopX = "1";
while (LoopX < "11") {
duplicateMovieClip ("/BLOCK" add eval (("Newblock" add Counter) add "_Color"), "Newblock" add Counter, Counter);
Set((("Cell_" add LoopX) add "_") add LoopY, Counter);
Set((("Flag_" add LoopX) add "_") add LoopY, "0");
setProperty("Newblock" add Counter, _x , eval ((("X" add LoopX) add "_") add LoopY));
setProperty("Newblock" add Counter, _y , eval ((("Y" add LoopX) add "_") add LoopY));
Set(("Newblock" add Counter) add "_X", LoopX);
Set(("Newblock" add Counter) add "_Y", LoopY);
LoopX = LoopX + "1";
Counter = Counter + "1";
}
LoopY = LoopY + "1";
}
Frame 23
Waiting = "1";
Frame 24
gotoAndPlay (23);
Frame 30
Waiting = "0";
Count = "0";
LoopX = eval (Blockclicked add "_X");
LoopY = eval (Blockclicked add "_Y");
Color = eval (("Newblock" add eval ((("Cell_" add (LoopX - "1")) add "_") add LoopY)) add "_Color");
if (Color == BlockColor) {
Set((("Flag_" add (LoopX - "1")) add "_") add LoopY, "1");
Set((("Flag_" add LoopX) add "_") add LoopY, "1");
Count = Count + "1";
tellTarget ("Newblock" add eval ((("Cell_" add (LoopX - "1")) add "_") add LoopY)) {
play();
};
}
Color = eval (("Newblock" add eval ((("Cell_" add (LoopX + "1")) add "_") add LoopY)) add "_Color");
if (Color == BlockColor) {
Set((("Flag_" add (LoopX + "1")) add "_") add LoopY, "1");
Set((("Flag_" add LoopX) add "_") add LoopY, "1");
Count = Count + "1";
tellTarget ("Newblock" add eval ((("Cell_" add (LoopX + "1")) add "_") add LoopY)) {
play();
};
}
Color = eval (("Newblock" add eval ((("Cell_" add LoopX) add "_") add (LoopY - "1"))) add "_Color");
if (Color == BlockColor) {
Set((("Flag_" add LoopX) add "_") add (LoopY - "1"), "1");
Set((("Flag_" add LoopX) add "_") add LoopY, "1");
Count = Count + "1";
tellTarget ("Newblock" add eval ((("Cell_" add LoopX) add "_") add (LoopY - "1"))) {
play();
};
}
Color = eval (("Newblock" add eval ((("Cell_" add LoopX) add "_") add (LoopY + "1"))) add "_Color");
if (Color == BlockColor) {
Set((("Flag_" add LoopX) add "_") add (LoopY + "1"), "1");
Set((("Flag_" add LoopX) add "_") add LoopY, "1");
Count = Count + "1";
tellTarget ("Newblock" add eval ((("Cell_" add LoopX) add "_") add (LoopY + "1"))) {
play();
};
}
Frame 31
Count2 = Count;
if (eval ((("Flag_" add LoopX) add "_") add LoopY) == "0") {
gotoAndPlay (23);
}
Frame 32
LoopY = eval (Blockclicked add "_Y");
Count = "0";
while (LoopY < "14") {
LoopX = "1";
while (LoopX < "11") {
if (eval ((("Flag_" add LoopX) add "_") add LoopY)) {
Color = eval (("Newblock" add eval ((("Cell_" add (LoopX - "1")) add "_") add LoopY)) add "_Color");
if (Color == BlockColor) {
Set((("Flag_" add (LoopX - "1")) add "_") add LoopY, "1");
Count = Count + "1";
tellTarget ("Newblock" add eval ((("Cell_" add (LoopX - "1")) add "_") add LoopY)) {
play();
};
}
Color = eval (("Newblock" add eval ((("Cell_" add (LoopX + "1")) add "_") add LoopY)) add "_Color");
if (Color == BlockColor) {
Set((("Flag_" add (LoopX + "1")) add "_") add LoopY, "1");
Count = Count + "1";
tellTarget ("Newblock" add eval ((("Cell_" add (LoopX + "1")) add "_") add LoopY)) {
play();
};
}
Color = eval (("Newblock" add eval ((("Cell_" add LoopX) add "_") add (LoopY - "1"))) add "_Color");
if (Color == BlockColor) {
Set((("Flag_" add LoopX) add "_") add (LoopY - "1"), "1");
Count = Count + "1";
tellTarget ("Newblock" add eval ((("Cell_" add LoopX) add "_") add (LoopY - "1"))) {
play();
};
}
Color = eval (("Newblock" add eval ((("Cell_" add LoopX) add "_") add (LoopY + "1"))) add "_Color");
if (Color == BlockColor) {
Set((("Flag_" add LoopX) add "_") add (LoopY + "1"), "1");
Count = Count + "1";
tellTarget ("Newblock" add eval ((("Cell_" add LoopX) add "_") add (LoopY + "1"))) {
play();
};
}
}
LoopX = LoopX + "1";
}
LoopY = LoopY + "1";
}
Frame 33
LoopY = eval (Blockclicked add "_Y");
while ("0" < LoopY) {
LoopX = "10";
while ("0" < LoopX) {
if (eval ((("Flag_" add LoopX) add "_") add LoopY)) {
Color = eval (("Newblock" add eval ((("Cell_" add (LoopX - "1")) add "_") add LoopY)) add "_Color");
if (Color == BlockColor) {
Set((("Flag_" add (LoopX - "1")) add "_") add LoopY, "1");
Count = Count + "1";
tellTarget ("Newblock" add eval ((("Cell_" add (LoopX - "1")) add "_") add LoopY)) {
play();
};
}
Color = eval (("Newblock" add eval ((("Cell_" add (LoopX + "1")) add "_") add LoopY)) add "_Color");
if (Color == BlockColor) {
Set((("Flag_" add (LoopX + "1")) add "_") add LoopY, "1");
Count = Count + "1";
tellTarget ("Newblock" add eval ((("Cell_" add (LoopX + "1")) add "_") add LoopY)) {
play();
};
}
Color = eval (("Newblock" add eval ((("Cell_" add LoopX) add "_") add (LoopY - "1"))) add "_Color");
if (Color == BlockColor) {
Set((("Flag_" add LoopX) add "_") add (LoopY - "1"), "1");
Count = Count + "1";
tellTarget ("Newblock" add eval ((("Cell_" add LoopX) add "_") add (LoopY - "1"))) {
play();
};
}
Color = eval (("Newblock" add eval ((("Cell_" add LoopX) add "_") add (LoopY + "1"))) add "_Color");
if (Color == BlockColor) {
Set((("Flag_" add LoopX) add "_") add (LoopY + "1"), "1");
Count = Count + "1";
tellTarget ("Newblock" add eval ((("Cell_" add LoopX) add "_") add (LoopY + "1"))) {
play();
};
}
}
LoopX = LoopX - "1";
}
LoopY = LoopY - "1";
}
Frame 34
if (Count2 < Count) {
Count2 = Count;
gotoAndPlay (32);
}
Frame 37
Count2 = "0";
Counter = "1";
LoopY = "1";
while (LoopY < "14") {
LoopX = "1";
while (LoopX < "11") {
if (eval ((("Flag_" add LoopX) add "_") add LoopY)) {
tellTarget ("Newblock" add eval ((("Cell_" add LoopX) add "_") add LoopY)) {
gotoAndPlay (15);
};
Set((("Cell_" add LoopX) add "_") add LoopY, "0");
Set((("Flag_" add LoopX) add "_") add LoopY, "0");
BlocksLeft = BlocksLeft - "1";
}
LoopX = LoopX + "1";
}
LoopY = LoopY + "1";
}
Frame 44
Count = "0";
LoopX = "10";
while ("0" < LoopX) {
LoopY = "13";
while ("0" < LoopY) {
if (eval ((("Cell_" add LoopX) add "_") add LoopY) == "0") {
Above = eval ((("Cell_" add LoopX) add "_") add (LoopY - "1"));
if (Above <> "0") {
Set((("Cell_" add LoopX) add "_") add LoopY, Above);
Set((("Cell_" add LoopX) add "_") add (LoopY - "1"), "0");
setProperty("Newblock" add eval ((("Cell_" add LoopX) add "_") add LoopY), _x , eval ((("X" add LoopX) add "_") add LoopY));
setProperty("Newblock" add eval ((("Cell_" add LoopX) add "_") add LoopY), _y , eval ((("Y" add LoopX) add "_") add LoopY));
Count = Count + "1";
Set(("Newblock" add eval ((("Cell_" add LoopX) add "_") add LoopY)) add "_X", LoopX);
Set(("Newblock" add eval ((("Cell_" add LoopX) add "_") add LoopY)) add "_Y", LoopY);
}
}
LoopY = LoopY - "1";
}
LoopX = LoopX - "1";
}
Frame 45
if ("0" < Count) {
tellTarget ("/BOOM") {
gotoAndPlay (1);
};
gotoAndPlay (44);
}
setProperty("/PICTURE" add Model, _alpha , "110" - int(BlocksLeft / "1.45"));
Alpha = "100" - int(BlocksLeft / "1.45");
Frame 46
LoopY = "13";
LoopX = "1";
while (LoopX < "11") {
Check = eval ((("Cell_" add LoopX) add "_") add LoopY);
if (Check == "0") {
StartX = LoopX;
LoopX = "11";
}
LoopX = LoopX + "1";
}
if (Check <> "0") {
gotoAndPlay (48);
}
LoopY = "13";
LoopX = StartX;
while (LoopX < "11") {
Check = Check + eval ((("Cell_" add LoopX) add "_") add LoopY);
LoopX = LoopX + "1";
}
if ((Check == "0") and ("1" < StartX)) {
gotoAndPlay (48);
}
if ((Check == "0") and (StartX == "1")) {
gotoAndPlay (70);
}
Frame 47
LoopY = "13";
while (StartX < "11") {
Check = eval ((("Cell_" add StartX) add "_") add LoopY);
if (Check == "0") {
LoopY = "13";
while ("0" < LoopY) {
Set((("Cell_" add StartX) add "_") add LoopY, eval ((("Cell_" add (StartX + "1")) add "_") add LoopY));
Set((("Cell_" add (StartX + "1")) add "_") add LoopY, "0");
setProperty("Newblock" add eval ((("Cell_" add StartX) add "_") add LoopY), _x , eval ((("X" add StartX) add "_") add LoopY));
setProperty("Newblock" add eval ((("Cell_" add StartX) add "_") add LoopY), _y , eval ((("Y" add StartX) add "_") add LoopY));
Set(("Newblock" add eval ((("Cell_" add StartX) add "_") add LoopY)) add "_X", StartX);
Set(("Newblock" add eval ((("Cell_" add StartX) add "_") add LoopY)) add "_Y", LoopY);
LoopY = LoopY - "1";
}
}
StartX = StartX + "1";
}
tellTarget ("/BOOM") {
gotoAndPlay (1);
};
gotoAndPlay (46);
Frame 48
LoopY = "1";
EndCheck = "0";
while (LoopY < "15") {
LoopX = "1";
while (LoopX < "11") {
BlockColor = eval (("Newblock" add eval ((("Cell_" add LoopX) add "_") add LoopY)) add "_Color");
if ("0" < BlockColor) {
Color = eval (("Newblock" add eval ((("Cell_" add (LoopX - "1")) add "_") add LoopY)) add "_Color");
if (Color == BlockColor) {
EndCheck = EndCheck + "1";
}
Color = eval (("Newblock" add eval ((("Cell_" add (LoopX + "1")) add "_") add LoopY)) add "_Color");
if (Color == BlockColor) {
EndCheck = EndCheck + "1";
}
Color = eval (("Newblock" add eval ((("Cell_" add LoopX) add "_") add (LoopY - "1"))) add "_Color");
if (Color == BlockColor) {
EndCheck = EndCheck + "1";
}
Color = eval (("Newblock" add eval ((("Cell_" add LoopX) add "_") add (LoopY + "1"))) add "_Color");
if (Color == BlockColor) {
EndCheck = EndCheck + "1";
}
}
LoopX = LoopX + "1";
}
LoopY = LoopY + "1";
}
if (EndCheck == "0") {
_highquality = "1";
gotoAndPlay (55);
}
Frame 49
gotoAndPlay (23);
Frame 55
Waiting = "0";
Frame 68
stop();
Frame 70
Waiting = "0";
Frame 73
gotoAndPlay (70);
gotoAndPlay (70);
Frame 77
Counter = "1";
while (Counter < "131") {
removeMovieClip("Newblock" add Counter);
Counter = Counter + "1";
}
gotoAndPlay (6);
Symbol 15 Button
on (release) {
Model = random("7") + "1";
gotoAndPlay (10);
}
Symbol 19 Button
on (release) {
getURL ("http://www.sporeproductions.com", "_blank");
}
Symbol 33 Button
on (release) {
fscommand ("quit");
}
Symbol 40 Button
on (release) {
BlockNum = "4";
Skill = "EASY";
}
Symbol 44 Button
on (release) {
BlockNum = "5";
Skill = "HARD";
}
Symbol 54 Button
on (release) {
getURL ("http://www3.sympatico.ca/spore/lilgames/registrations/cubes.html");
}
Symbol 56 Button
on (release) {
gotoAndPlay (77);
}
Symbol 82 Button
on (release) {
if (_level0:Waiting == "1") {
Set("_level0:BlockClicked", _name);
Set("_level0:BlockColor", "5");
tellTarget ("../") {
gotoAndPlay (25);
};
}
}
Symbol 83 Button
on (release) {
Set("_level0:BlockClicked", _name);
Set("_level0:BlockColor", "5");
tellTarget ("../") {
gotoAndPlay (25);
}
}
Symbol 85 Button
on (release) {
Set("_level0:BlockClicked", _name);
Set("_level0:BlockColor", "1");
tellTarget ("../") {
gotoAndPlay (25);
}
}
Symbol 88 MovieClip Frame 1
stop();
Symbol 88 MovieClip Frame 14
gotoAndPlay (2);
Symbol 88 MovieClip Frame 22
removeMovieClip("");
Symbol 93 Button
on (release) {
if (_level0:Waiting == "1") {
Set("_level0:BlockClicked", _name);
Set("_level0:BlockColor", "4");
tellTarget ("../") {
gotoAndPlay (25);
};
}
}
Symbol 94 Button
on (release) {
Set("_level0:BlockClicked", _name);
Set("_level0:BlockColor", "4");
tellTarget ("../") {
gotoAndPlay (25);
}
}
Symbol 95 Button
on (release) {
Set("_level0:BlockClicked", _name);
Set("_level0:BlockColor", "1");
tellTarget ("../") {
gotoAndPlay (25);
}
}
Symbol 98 MovieClip Frame 1
stop();
Symbol 98 MovieClip Frame 14
gotoAndPlay (2);
Symbol 98 MovieClip Frame 22
removeMovieClip("");
Symbol 103 Button
on (release) {
if (_level0:Waiting == "1") {
Set("_level0:BlockClicked", _name);
Set("_level0:BlockColor", "3");
tellTarget ("../") {
gotoAndPlay (25);
};
}
}
Symbol 104 Button
on (release) {
Set("_level0:BlockClicked", _name);
Set("_level0:BlockColor", "3");
tellTarget ("../") {
gotoAndPlay (25);
}
}
Symbol 105 Button
on (release) {
Set("_level0:BlockClicked", _name);
Set("_level0:BlockColor", "1");
tellTarget ("../") {
gotoAndPlay (25);
}
}
Symbol 108 MovieClip Frame 1
stop();
Symbol 108 MovieClip Frame 14
gotoAndPlay (2);
Symbol 108 MovieClip Frame 22
removeMovieClip("");
Symbol 112 Button
on (release) {
if (_level0:Waiting == "1") {
Set("_level0:BlockClicked", _name);
Set("_level0:BlockColor", "1");
tellTarget ("../") {
gotoAndPlay (25);
};
}
}
Symbol 113 Button
on (release) {
Set("_level0:BlockClicked", _name);
Set("_level0:BlockColor", "1");
tellTarget ("../") {
gotoAndPlay (25);
}
}
Symbol 116 MovieClip Frame 1
stop();
Symbol 116 MovieClip Frame 14
gotoAndPlay (2);
Symbol 116 MovieClip Frame 22
removeMovieClip("");
Symbol 121 Button
on (release) {
if (_level0:Waiting == "1") {
Set("_level0:BlockClicked", _name);
Set("_level0:BlockColor", "2");
tellTarget ("../") {
gotoAndPlay (25);
};
}
}
Symbol 122 Button
on (release) {
Set("_level0:BlockClicked", _name);
Set("_level0:BlockColor", "2");
tellTarget ("../") {
gotoAndPlay (25);
}
}
Symbol 123 Button
on (release) {
Set("_level0:BlockClicked", _name);
Set("_level0:BlockColor", "1");
tellTarget ("../") {
gotoAndPlay (25);
}
}
Symbol 126 MovieClip Frame 1
stop();
Symbol 126 MovieClip Frame 14
gotoAndPlay (2);
Symbol 126 MovieClip Frame 22
removeMovieClip("");
Symbol 130 MovieClip Frame 1
stop();
Symbol 130 MovieClip Frame 3
gotoAndPlay (1);
Symbol 140 Button
on (release) {
gotoAndPlay (77);
}