Frame 1
fscommand ("fullscreen", "true");
fscommand ("showmenu", "false");
ifFrameLoaded (32) {
loading.removeMovieClip();
gotoAndPlay (3);
}
Frame 2
gotoAndPlay (1);
Frame 30
stop();
Frame 31
Set("/:pla", 0);
Set("/:win", 0);
stop();
Frame 33
stop();
i = 1;
while (48 >= i) {
Set("cell" add i, i);
i = i + 1;
}
i = 1;
while (48 >= i) {
Set("random" add i, random(150));
i = i + 1;
}
lo = 1;
up = 48;
while (lo < up) {
i = lo;
j = lo;
while (i < up) {
if (eval ("random" add (i + 1)) < eval ("random" add i)) {
temp = eval ("random" add i);
Set("random" add i, eval ("random" add (i + 1)));
Set("random" add (i + 1), temp);
temp = eval ("cell" add i);
Set("cell" add i, eval ("cell" add (i + 1)));
Set("cell" add (i + 1), temp);
j = i;
}
i = i + 1;
}
up = j;
i = up;
while (lo < i) {
if (eval ("random" add i) < eval ("random" add (i - 1))) {
temp = eval ("random" add i);
Set("random" add i, eval ("random" add (i - 1)));
Set("random" add (i - 1), temp);
temp = eval ("cell" add i);
Set("cell" add i, eval ("cell" add (i - 1)));
Set("cell" add (i - 1), temp);
j = i;
}
i = i - 1;
}
lo = j;
}
i = 1;
rand = random(11);
while (48 >= i) {
piece = eval ("cell" add i);
if (12 < piece) {
piece = piece - 12;
}
if (12 < piece) {
piece = piece - 12;
}
if (12 < piece) {
piece = piece - 12;
}
Set(("/brick" add i) add "/face:piece", piece + rand);
i = i + 1;
}
Set("/brick1:enable", 1);
Set("/brick8:enable", 1);
Set("/brick9:enable", 1);
Set("/brick16:enable", 1);
Set("/brick17:enable", 1);
Set("/brick24:enable", 1);
Set("/brick25:enable", 1);
Set("/brick32:enable", 1);
Set("/brick33:enable", 1);
Set("/brick38:enable", 1);
Set("/brick39:enable", 1);
Set("/brick44:enable", 1);
Set("/brick45:enable", 1);
Set("/brick46:enable", 1);
Set("/brick47:enable", 1);
Set("/brick48:enable", 1);
Set("/:pla", Number(pla) + 1);
Frame 47
Set("/:win", Number(win) + 1);
gotoAndPlay (32);
Symbol 2 MovieClip Frame 81
stop();
Symbol 4 MovieClip Frame 1
duplicateMovieClip ("orbiter", "orbiter" + orbiternum, orbiternum);
setProperty("orbiter" + orbiternum, _rotation , rotazione);
Symbol 4 MovieClip Frame 2
orbiternum = orbiternum + 1;
orbiterinc = orbiterinc + 0.2;
rotazione = rotazione + orbiterinc;
gotoAndPlay (1);
Symbol 11 MovieClip Frame 21
stop();
Symbol 18 Button
on (release) {
gotoAndPlay (31);
}
Symbol 36 Button
on (release) {
fscommand ("quit");
}
Symbol 40 Button
on (release) {
tellTarget ("/tu") {
gotoAndStop (2);
};
tellTarget ("/wen") {
gotoAndStop (2);
};
}
on (rollOver) {
tellTarget ("/ri") {
gotoAndStop (2);
};
}
on (rollOut) {
tellTarget ("/ri") {
gotoAndStop (1);
};
}
Symbol 43 Button
on (release) {
tellTarget ("/tu") {
gotoAndStop (3);
};
tellTarget ("/wen") {
gotoAndStop (3);
};
}
on (rollOver) {
tellTarget ("/ri") {
gotoAndStop (3);
};
}
on (rollOut) {
tellTarget ("/ri") {
gotoAndStop (1);
};
}
Symbol 47 Button
on (release) {
tellTarget ("/tu") {
gotoAndStop (4);
};
tellTarget ("/wen") {
gotoAndStop (4);
};
}
on (rollOver) {
tellTarget ("/ri") {
gotoAndStop (4);
};
}
on (rollOut) {
tellTarget ("/ri") {
gotoAndStop (1);
};
}
Symbol 50 Button
on (release) {
tellTarget ("/tu") {
gotoAndStop (5);
};
tellTarget ("/wen") {
gotoAndStop (5);
};
}
on (rollOver) {
tellTarget ("/ri") {
gotoAndStop (5);
};
}
on (rollOut) {
tellTarget ("/ri") {
gotoAndStop (1);
};
}
Symbol 53 Button
on (release) {
tellTarget ("/tu") {
gotoAndStop (6);
};
tellTarget ("/wen") {
gotoAndStop (6);
};
}
on (rollOver) {
tellTarget ("/ri") {
gotoAndStop (6);
};
}
on (rollOut) {
tellTarget ("/ri") {
gotoAndStop (1);
};
}
Symbol 56 Button
on (release) {
tellTarget ("/tu") {
gotoAndStop (7);
};
tellTarget ("/wen") {
gotoAndStop (7);
};
}
on (rollOver) {
tellTarget ("/ri") {
gotoAndStop (7);
};
}
on (rollOut) {
tellTarget ("/ri") {
gotoAndStop (1);
};
}
Symbol 59 Button
on (release) {
tellTarget ("/tu") {
gotoAndStop (8);
};
tellTarget ("/wen") {
gotoAndStop (8);
};
}
on (rollOver) {
tellTarget ("/ri") {
gotoAndStop (8);
};
}
on (rollOut) {
tellTarget ("/ri") {
gotoAndStop (1);
};
}
Symbol 62 Button
on (release) {
tellTarget ("/tu") {
gotoAndStop (9);
};
tellTarget ("/wen") {
gotoAndStop (9);
};
}
on (rollOver) {
tellTarget ("/ri") {
gotoAndStop (9);
};
}
on (rollOut) {
tellTarget ("/ri") {
gotoAndStop (1);
};
}
Symbol 65 Button
on (release) {
tellTarget ("/tu") {
gotoAndStop (10);
};
tellTarget ("/wen") {
gotoAndStop (10);
};
}
on (rollOver) {
tellTarget ("/ri") {
gotoAndStop (10);
};
}
on (rollOut) {
tellTarget ("/ri") {
gotoAndStop (1);
};
}
Symbol 68 Button
on (release) {
tellTarget ("/tu") {
gotoAndStop (11);
};
tellTarget ("/wen") {
gotoAndStop (11);
};
}
on (rollOver) {
tellTarget ("/ri") {
gotoAndStop (11);
};
}
on (rollOut) {
tellTarget ("/ri") {
gotoAndStop (1);
};
}
Symbol 71 Button
on (release) {
tellTarget ("/tu") {
gotoAndStop (12);
};
tellTarget ("/wen") {
gotoAndStop (12);
};
}
on (rollOver) {
tellTarget ("/ri") {
gotoAndStop (12);
};
}
on (rollOut) {
tellTarget ("/ri") {
gotoAndStop (1);
};
}
Symbol 74 Button
on (release) {
tellTarget ("/tu") {
gotoAndStop (13);
};
tellTarget ("/wen") {
gotoAndStop (13);
};
}
on (rollOver) {
tellTarget ("/ri") {
gotoAndStop (13);
};
}
on (rollOut) {
tellTarget ("/ri") {
gotoAndStop (1);
};
}
Symbol 87 MovieClip Frame 1
stop();
Symbol 87 MovieClip Frame 2
stop();
Symbol 87 MovieClip Frame 3
stop();
Symbol 87 MovieClip Frame 4
stop();
Symbol 87 MovieClip Frame 5
stop();
Symbol 87 MovieClip Frame 6
stop();
Symbol 87 MovieClip Frame 7
stop();
Symbol 87 MovieClip Frame 8
stop();
Symbol 87 MovieClip Frame 9
stop();
Symbol 87 MovieClip Frame 10
stop();
Symbol 87 MovieClip Frame 11
stop();
Symbol 87 MovieClip Frame 12
stop();
Symbol 87 MovieClip Frame 13
stop();
Symbol 91 Button
on (release) {
gotoAndPlay (32);
}
Symbol 96 Button
on (release) {
tellTarget ("_root.about") {
gotoAndPlay ("n");
};
}
Symbol 111 MovieClip Frame 1
stop();
Symbol 111 MovieClip Frame 2
stop();
Symbol 111 MovieClip Frame 3
stop();
Symbol 111 MovieClip Frame 4
stop();
Symbol 111 MovieClip Frame 5
stop();
Symbol 111 MovieClip Frame 6
stop();
Symbol 111 MovieClip Frame 7
stop();
Symbol 111 MovieClip Frame 8
stop();
Symbol 111 MovieClip Frame 9
stop();
Symbol 111 MovieClip Frame 10
stop();
Symbol 111 MovieClip Frame 11
stop();
Symbol 111 MovieClip Frame 12
stop();
Symbol 111 MovieClip Frame 13
stop();
Symbol 124 MovieClip Frame 1
stop();
Symbol 124 MovieClip Frame 2
stop();
Symbol 124 MovieClip Frame 3
stop();
Symbol 124 MovieClip Frame 4
stop();
Symbol 124 MovieClip Frame 5
stop();
Symbol 124 MovieClip Frame 6
stop();
Symbol 124 MovieClip Frame 7
stop();
Symbol 124 MovieClip Frame 8
stop();
Symbol 124 MovieClip Frame 9
stop();
Symbol 124 MovieClip Frame 10
stop();
Symbol 124 MovieClip Frame 11
stop();
Symbol 124 MovieClip Frame 12
stop();
Symbol 124 MovieClip Frame 13
stop();
Symbol 131 Button
on (release) {
tellTarget ("_root.about") {
gotoAndPlay ("r");
};
}
Symbol 136 Button
on (release) {
getURL ("mailto:magic-wind@263.net");
}
Symbol 148 MovieClip Frame 1
stop();
Symbol 148 MovieClip Frame 12
stop();
Symbol 164 MovieClip Frame 1
gotoAndStop(piece);
face = 1;
stop();
Symbol 164 MovieClip Frame 2
face = 2;
stop();
Symbol 164 MovieClip Frame 3
face = 3;
stop();
Symbol 164 MovieClip Frame 4
face = 4;
stop();
Symbol 164 MovieClip Frame 5
face = 5;
stop();
Symbol 164 MovieClip Frame 6
face = 6;
stop();
Symbol 164 MovieClip Frame 7
face = 7;
stop();
Symbol 164 MovieClip Frame 8
face = 8;
stop();
Symbol 164 MovieClip Frame 9
face = 9;
stop();
Symbol 164 MovieClip Frame 10
face = 10;
stop();
Symbol 164 MovieClip Frame 11
face = 11;
stop();
Symbol 164 MovieClip Frame 12
face = 12;
stop();
Symbol 164 MovieClip Frame 13
face = 1;
stop();
Symbol 164 MovieClip Frame 14
face = 2;
stop();
Symbol 164 MovieClip Frame 15
face = 3;
stop();
Symbol 164 MovieClip Frame 16
face = 4;
stop();
Symbol 164 MovieClip Frame 17
face = 5;
stop();
Symbol 164 MovieClip Frame 18
face = 6;
stop();
Symbol 164 MovieClip Frame 19
face = 7;
stop();
Symbol 164 MovieClip Frame 20
face = 8;
stop();
Symbol 164 MovieClip Frame 21
face = 9;
stop();
Symbol 164 MovieClip Frame 22
face = 10;
stop();
Symbol 164 MovieClip Frame 23
face = 11;
stop();
Symbol 165 Button
on (press) {
checknum = /control:checknum;
num = substring(_name, 6, -1);
erasing = /control:erasing;
if (enable >= 1) {
if (erasing != 1) {
while (47 >= numall) {
numall = numall + 1;
tellTarget ("/brick" add numall) {
gotoAndStop (1);
};
}
numall = 0;
if (face:face == /control:checkface) {
tellTarget ("/brick" add checknum) {
gotoAndPlay (3);
};
gotoAndPlay (3);
}
gotoAndStop (2);
}
}
}
Symbol 168 MovieClip Frame 1
if (enable >= 1) {
setProperty("face", _alpha , 100);
} else {
setProperty("face", _alpha , 30);
}
stop();
Symbol 168 MovieClip Frame 2
Set("/control:checknum", substring(_name, 6, 2));
Set("/control:checkface", face:face);
Set("/control:run", 0);
Symbol 168 MovieClip Frame 3
Set("/control:erasing", 1);
enable = -50;
gotoAndPlay (4);
Symbol 168 MovieClip Frame 5
Set("/control:erasing", 0);
nl = num;
nl++;
if (((((((num >= 1) && (6 >= num)) || ((num >= 25) && (30 >= num))) || (num == 33)) || (num == 36)) || (num == 39)) || (num == 42)) {
Set(("/brick" add nl) add ":enable", eval (("/brick" add nl) add ":enable") + 1);
}
if (((((((num >= 3) && (8 >= num)) || ((num >= 27) && (32 >= num))) || (num == 35)) || (num == 38)) || (num == 41)) || (num == 44)) {
Set(("/brick" add (num - 1)) add ":enable", eval (("/brick" add (num - 1)) add ":enable") + 1);
}
if ((num == 45) || (num == 46)) {
Set(("/brick" add (num - 10)) add ":enable", eval (("/brick" add (num - 10)) add ":enable") + 0.6);
}
if ((num == 47) || (num == 48)) {
Set(("/brick" add (num - 6)) add ":enable", eval (("/brick" add (num - 6)) add ":enable") + 0.6);
}
if (((((num >= 9) && (14 >= num)) || ((num >= 17) && (22 >= num))) || ((num >= 33) && (36 >= num))) || ((num >= 39) || (num == 42))) {
Set(("/brick" add nl) add ":enable", eval (("/brick" add nl) add ":enable") + 0.4);
}
if (((((num >= 11) && (16 >= num)) || ((num >= 19) && (24 >= num))) || ((num >= 35) && (38 >= num))) || ((num >= 41) || (num == 44))) {
Set(("/brick" add (num - 1)) add ":enable", eval (("/brick" add (num - 1)) add ":enable") + 0.4);
}
if ((num >= 33) && (38 >= num)) {
Set(("/brick" add (num - 23)) add ":enable", eval (("/brick" add (num - 23)) add ":enable") + 0.6);
}
if ((num >= 39) && (44 >= num)) {
Set(("/brick" add (num - 21)) add ":enable", eval (("/brick" add (num - 21)) add ":enable") + 0.6);
}
m = 1;
while (48 >= m) {
if (eval (("/brick" add m) add ":enable") >= 1) {
setProperty(("/brick" add m) add "/face", _alpha , 100);
}
m++;
}
Set("/control:run", /control:run + 1);
if (/control:run == 2) {
para = 0;
num = 1;
while (48 >= num) {
if (eval (("/brick" add num) add ":enable") >= 1) {
i = i + 1;
Set("face" add i, eval (("/brick" add num) add "/face:face"));
}
num = num + 1;
}
a = 0;
while (i >= a) {
a = a + 1;
b = 0;
while (i >= (a + b)) {
b = b + 1;
if (eval ("face" add a) == eval ("face" add (a + b))) {
para = 1;
}
}
}
}
Set("/control:closed", /control:closed + 1);
_visible = 0;
if (/control:closed == 48) {
tellTarget ("/") {
gotoAndPlay ("end");
};
}
if (/control:run == 2) {
if (para == 0) {
tellTarget ("/nomore") {
gotoAndPlay (2);
};
}
}
stop();
Symbol 173 Button
on (release) {
tellTarget ("/help") {
gotoAndStop ("n");
};
}
Symbol 176 Button
on (release) {
tellTarget ("_root.help") {
gotoAndStop ("r");
};
}
Symbol 181 MovieClip Frame 1
stop();
Symbol 181 MovieClip Frame 2
stop();
Symbol 182 Button
on (release) {
gotoAndPlay (31);
}
Symbol 184 Button
on (release) {
tellTarget ("/") {
gotoAndPlay ("start");
};
}
Symbol 186 MovieClip Frame 1
stop();
Symbol 186 MovieClip Frame 2
stop();