Frame 1
total = 20;
Frame 4
if (_framesloaded < 80) {
gotoAndPlay(_currentframe - 1);
}
Frame 5
Frame 10
function switchBoxes() {
if (go == 1) {
turns = turns + 1;
}
Set("/:correctTemp", 0);
if (eval (("_root.box" + /:click1Box) + ".n2") == eval (("_root.box" + /:click1Box) + ".n")) {
Set("/:correctTemp", /:correctTemp + 1);
}
if (eval (("_root.box" + /:click2Box) + ".n2") == eval (("_root.box" + /:click2Box) + ".n")) {
Set("/:correctTemp", /:correctTemp + 1);
}
setProperty(("_root.box" + click1Box) + ".pic", _x , eval ("xSpot" + click2));
setProperty(("_root.box" + click1Box) + ".pic", _y , eval ("ySpot" + click2));
setProperty(("_root.box" + click2Box) + ".pic", _x , eval ("xSpot" + click1));
setProperty(("_root.box" + click2Box) + ".pic", _y , eval ("ySpot" + click1));
eval (("box" + /:click1Box) + ".but").gotoAndStop(2);
eval (("box" + /:click2Box) + ".but").gotoAndStop(2);
Set(("_root.box" + /:click1Box) + ".n2", /:click2);
Set(("_root.box" + /:click2Box) + ".n2", /:click1);
Set("/:correctTemp2", 0);
if (eval (("_root.box" + /:click1Box) + ".n2") == eval (("_root.box" + /:click1Box) + ".n")) {
Set("/:correctTemp2", /:correctTemp2 + 1);
}
if (eval (("_root.box" + /:click2Box) + ".n2") == eval (("_root.box" + /:click2Box) + ".n")) {
Set("/:correctTemp2", /:correctTemp2 + 1);
}
Set("/:correct", /:correct + (/:correctTemp2 - /:correctTemp));
if (/:correct == 25) {
_root.gotoAndPlay("next");
}
Set("/:click1", 0);
Set("/:click2", 0);
Set("/:busy", 0);
_root.sound.gotoAndPlay(2);
}
stop();
_root.pic.gotoAndStop(random(7) + 1);
level = 0;
levelDis = 0;
correct = 0;
turns = 0;
time = 0;
picCount = 0;
xChange = 75.7;
yChange = 54.2;
xSpot1 = 0;
xSpot6 = 0;
xSpot11 = 0;
xSpot16 = 0;
xSpot21 = 0;
xSpot2 = xChange * -1;
xSpot7 = xChange * -1;
xSpot12 = xChange * -1;
xSpot17 = xChange * -1;
xSpot22 = xChange * -1;
xSpot3 = xChange * -2;
xSpot8 = xChange * -2;
xSpot13 = xChange * -2;
xSpot18 = xChange * -2;
xSpot23 = xChange * -2;
xSpot4 = xChange * -3;
xSpot9 = xChange * -3;
xSpot14 = xChange * -3;
xSpot19 = xChange * -3;
xSpot24 = xChange * -3;
xSpot5 = xChange * -4;
xSpot10 = xChange * -4;
xSpot15 = xChange * -4;
xSpot20 = xChange * -4;
xSpot25 = xChange * -4;
ySpot1 = 0;
ySpot2 = 0;
ySpot3 = 0;
ySpot4 = 0;
ySpot5 = 0;
ySpot6 = yChange * -1;
ySpot7 = yChange * -1;
ySpot8 = yChange * -1;
ySpot9 = yChange * -1;
ySpot10 = yChange * -1;
ySpot11 = yChange * -2;
ySpot12 = yChange * -2;
ySpot13 = yChange * -2;
ySpot14 = yChange * -2;
ySpot15 = yChange * -2;
ySpot16 = yChange * -3;
ySpot17 = yChange * -3;
ySpot18 = yChange * -3;
ySpot19 = yChange * -3;
ySpot20 = yChange * -3;
ySpot21 = yChange * -4;
ySpot22 = yChange * -4;
ySpot23 = yChange * -4;
ySpot24 = yChange * -4;
ySpot25 = yChange * -4;
a = new Array(total);
i = 1;
while (total >= i) {
R = random(total);
if (a[R] != null) {
R = random(total);
if (a[R] != null) {
R = 0;
while (total >= R) {
if (a[R] == null) {
break;
}
R++;
}
}
}
a[R] = i;
i++;
}
x = 0;
while (total >= x) {
x = x + 1;
Set("/:P" add x, a[x - 1]);
}
Frame 13
busy = 1;
go = 0;
turns = 0;
level = level + 1;
levelDis = levelDis + 1;
if (total < level) {
level = 1;
}
correct = 0;
turns = 0;
picCount = picCount + 1;
currentPic = eval ("/:P" add picCount);
if (level == 1) {
hintTime = 11;
} else if (level == 2) {
hintTime = 7;
} else if (level == 3) {
hintTime = 5;
} else if (level == 4) {
hintTime = 3;
} else {
hintTime = 0;
}
Instance of Symbol 94 MovieClip "box1" in Frame 18
onClipEvent (load) {
n = 1;
n2 = 1;
}
Instance of Symbol 95 MovieClip "box2" in Frame 19
onClipEvent (load) {
n = 2;
n2 = 2;
}
Instance of Symbol 96 MovieClip "box3" in Frame 20
onClipEvent (load) {
n = 3;
n2 = 3;
}
Instance of Symbol 97 MovieClip "box4" in Frame 21
onClipEvent (load) {
n = 4;
n2 = 4;
}
Instance of Symbol 98 MovieClip "box5" in Frame 22
onClipEvent (load) {
n = 5;
n2 = 5;
}
Instance of Symbol 99 MovieClip "box10" in Frame 23
onClipEvent (load) {
n = 10;
n2 = 10;
}
Instance of Symbol 100 MovieClip "box15" in Frame 24
onClipEvent (load) {
n = 15;
n2 = 15;
}
Instance of Symbol 101 MovieClip "box20" in Frame 25
onClipEvent (load) {
n = 20;
n2 = 20;
}
Instance of Symbol 102 MovieClip "box25" in Frame 26
onClipEvent (load) {
n = 25;
n2 = 25;
}
Instance of Symbol 103 MovieClip "box24" in Frame 27
onClipEvent (load) {
n = 24;
n2 = 24;
}
Instance of Symbol 104 MovieClip "box23" in Frame 28
onClipEvent (load) {
n = 23;
n2 = 23;
}
Instance of Symbol 105 MovieClip "box22" in Frame 29
onClipEvent (load) {
n = 22;
n2 = 22;
}
Instance of Symbol 106 MovieClip "box21" in Frame 30
onClipEvent (load) {
n = 21;
n2 = 21;
}
Instance of Symbol 107 MovieClip "box16" in Frame 31
onClipEvent (load) {
n = 16;
n2 = 16;
}
Instance of Symbol 108 MovieClip "box11" in Frame 32
onClipEvent (load) {
n = 11;
n2 = 11;
}
Instance of Symbol 109 MovieClip "box6" in Frame 33
onClipEvent (load) {
n = 6;
n2 = 6;
}
Instance of Symbol 110 MovieClip "box7" in Frame 34
onClipEvent (load) {
n = 7;
n2 = 7;
}
Instance of Symbol 111 MovieClip "box8" in Frame 35
onClipEvent (load) {
n = 8;
n2 = 8;
}
Instance of Symbol 112 MovieClip "box9" in Frame 36
onClipEvent (load) {
n = 9;
n2 = 9;
}
Instance of Symbol 113 MovieClip "box14" in Frame 37
onClipEvent (load) {
n = 14;
n2 = 14;
}
Instance of Symbol 114 MovieClip "box19" in Frame 38
onClipEvent (load) {
n = 19;
n2 = 19;
}
Instance of Symbol 115 MovieClip "box18" in Frame 39
onClipEvent (load) {
n = 18;
n2 = 18;
}
Instance of Symbol 116 MovieClip "box17" in Frame 40
onClipEvent (load) {
n = 17;
n2 = 17;
}
Instance of Symbol 117 MovieClip "box12" in Frame 41
onClipEvent (load) {
n = 12;
n2 = 12;
}
Instance of Symbol 118 MovieClip "box13" in Frame 42
onClipEvent (load) {
n = 13;
n2 = 13;
}
Frame 43
stop();
correct = 25;
Frame 44
busy = 1;
turns = 0;
correct = 25;
boxN = 0;
total = 25;
b = new Array(total);
i = 1;
while (total >= i) {
R = random(total);
if (b[R] != null) {
R = random(total);
if (b[R] != null) {
R = 0;
while (total >= R) {
if (b[R] == null) {
break;
}
R++;
}
}
}
b[R] = i;
i++;
}
x = 0;
while (total >= x) {
x = x + 1;
Set("C" add x, b[x - 1]);
}
Frame 45
boxN = boxN + 1;
click1 = eval (("_root.box" + eval ("C" + boxN)) + ".n2");
click1Box = eval ("C" + boxN);
boxN = boxN + 1;
click2 = eval (("_root.box" + eval ("C" + boxN)) + ".n2");
click2Box = eval ("C" + boxN);
switchBoxes();
Frame 46
boxN = boxN + 1;
click1 = eval (("_root.box" + eval ("C" + boxN)) + ".n2");
click1Box = eval ("C" + boxN);
boxN = boxN + 1;
click2 = eval (("_root.box" + eval ("C" + boxN)) + ".n2");
click2Box = eval ("C" + boxN);
switchBoxes();
Frame 47
boxN = boxN + 1;
click1 = eval (("_root.box" + eval ("C" + boxN)) + ".n2");
click1Box = eval ("C" + boxN);
boxN = boxN + 1;
click2 = eval (("_root.box" + eval ("C" + boxN)) + ".n2");
click2Box = eval ("C" + boxN);
switchBoxes();
Frame 48
boxN = boxN + 1;
click1 = eval (("_root.box" + eval ("C" + boxN)) + ".n2");
click1Box = eval ("C" + boxN);
boxN = boxN + 1;
click2 = eval (("_root.box" + eval ("C" + boxN)) + ".n2");
click2Box = eval ("C" + boxN);
switchBoxes();
Frame 49
boxN = boxN + 1;
click1 = eval (("_root.box" + eval ("C" + boxN)) + ".n2");
click1Box = eval ("C" + boxN);
boxN = boxN + 1;
click2 = eval (("_root.box" + eval ("C" + boxN)) + ".n2");
click2Box = eval ("C" + boxN);
switchBoxes();
Frame 50
boxN = boxN + 1;
click1 = eval (("_root.box" + eval ("C" + boxN)) + ".n2");
click1Box = eval ("C" + boxN);
boxN = boxN + 1;
click2 = eval (("_root.box" + eval ("C" + boxN)) + ".n2");
click2Box = eval ("C" + boxN);
switchBoxes();
Frame 51
boxN = boxN + 1;
click1 = eval (("_root.box" + eval ("C" + boxN)) + ".n2");
click1Box = eval ("C" + boxN);
boxN = boxN + 1;
click2 = eval (("_root.box" + eval ("C" + boxN)) + ".n2");
click2Box = eval ("C" + boxN);
switchBoxes();
Frame 52
boxN = boxN + 1;
click1 = eval (("_root.box" + eval ("C" + boxN)) + ".n2");
click1Box = eval ("C" + boxN);
boxN = boxN + 1;
click2 = eval (("_root.box" + eval ("C" + boxN)) + ".n2");
click2Box = eval ("C" + boxN);
switchBoxes();
Frame 53
boxN = boxN + 1;
click1 = eval (("_root.box" + eval ("C" + boxN)) + ".n2");
click1Box = eval ("C" + boxN);
boxN = boxN + 1;
click2 = eval (("_root.box" + eval ("C" + boxN)) + ".n2");
click2Box = eval ("C" + boxN);
switchBoxes();
Frame 54
boxN = boxN + 1;
click1 = eval (("_root.box" + eval ("C" + boxN)) + ".n2");
click1Box = eval ("C" + boxN);
boxN = boxN + 1;
click2 = eval (("_root.box" + eval ("C" + boxN)) + ".n2");
click2Box = eval ("C" + boxN);
switchBoxes();
Frame 55
boxN = boxN + 1;
click1 = eval (("_root.box" + eval ("C" + boxN)) + ".n2");
click1Box = eval ("C" + boxN);
boxN = boxN + 1;
click2 = eval (("_root.box" + eval ("C" + boxN)) + ".n2");
click2Box = eval ("C" + boxN);
switchBoxes();
Frame 56
boxN = boxN + 1;
click1 = eval (("_root.box" + eval ("C" + boxN)) + ".n2");
click1Box = eval ("C" + boxN);
boxN = boxN + 1;
click2 = eval (("_root.box" + eval ("C" + boxN)) + ".n2");
click2Box = eval ("C" + boxN);
switchBoxes();
Frame 57
boxN = 0;
total = 25;
b = new Array(total);
i = 1;
while (total >= i) {
R = random(total);
if (b[R] != null) {
R = random(total);
if (b[R] != null) {
R = 0;
while (total >= R) {
if (b[R] == null) {
break;
}
R++;
}
}
}
b[R] = i;
i++;
}
x = 0;
while (total >= x) {
x = x + 1;
Set("C" add x, b[x - 1]);
}
Frame 58
boxN = boxN + 1;
click1 = eval (("_root.box" + eval ("C" + boxN)) + ".n2");
click1Box = eval ("C" + boxN);
boxN = boxN + 1;
click2 = eval (("_root.box" + eval ("C" + boxN)) + ".n2");
click2Box = eval ("C" + boxN);
switchBoxes();
Frame 59
boxN = boxN + 1;
click1 = eval (("_root.box" + eval ("C" + boxN)) + ".n2");
click1Box = eval ("C" + boxN);
boxN = boxN + 1;
click2 = eval (("_root.box" + eval ("C" + boxN)) + ".n2");
click2Box = eval ("C" + boxN);
switchBoxes();
Frame 60
boxN = boxN + 1;
click1 = eval (("_root.box" + eval ("C" + boxN)) + ".n2");
click1Box = eval ("C" + boxN);
boxN = boxN + 1;
click2 = eval (("_root.box" + eval ("C" + boxN)) + ".n2");
click2Box = eval ("C" + boxN);
switchBoxes();
Frame 61
boxN = boxN + 1;
click1 = eval (("_root.box" + eval ("C" + boxN)) + ".n2");
click1Box = eval ("C" + boxN);
boxN = boxN + 1;
click2 = eval (("_root.box" + eval ("C" + boxN)) + ".n2");
click2Box = eval ("C" + boxN);
switchBoxes();
Frame 62
boxN = boxN + 1;
click1 = eval (("_root.box" + eval ("C" + boxN)) + ".n2");
click1Box = eval ("C" + boxN);
boxN = boxN + 1;
click2 = eval (("_root.box" + eval ("C" + boxN)) + ".n2");
click2Box = eval ("C" + boxN);
switchBoxes();
Frame 63
boxN = boxN + 1;
click1 = eval (("_root.box" + eval ("C" + boxN)) + ".n2");
click1Box = eval ("C" + boxN);
boxN = boxN + 1;
click2 = eval (("_root.box" + eval ("C" + boxN)) + ".n2");
click2Box = eval ("C" + boxN);
switchBoxes();
Frame 64
boxN = boxN + 1;
click1 = eval (("_root.box" + eval ("C" + boxN)) + ".n2");
click1Box = eval ("C" + boxN);
boxN = boxN + 1;
click2 = eval (("_root.box" + eval ("C" + boxN)) + ".n2");
click2Box = eval ("C" + boxN);
switchBoxes();
Frame 65
boxN = boxN + 1;
click1 = eval (("_root.box" + eval ("C" + boxN)) + ".n2");
click1Box = eval ("C" + boxN);
boxN = boxN + 1;
click2 = eval (("_root.box" + eval ("C" + boxN)) + ".n2");
click2Box = eval ("C" + boxN);
switchBoxes();
Frame 66
boxN = boxN + 1;
click1 = eval (("_root.box" + eval ("C" + boxN)) + ".n2");
click1Box = eval ("C" + boxN);
boxN = boxN + 1;
click2 = eval (("_root.box" + eval ("C" + boxN)) + ".n2");
click2Box = eval ("C" + boxN);
switchBoxes();
Frame 67
stop();
go = 1;
busy = 0;
click1 = 0;
click2 = 0;
x = 1;
while (25 >= x) {
eval (("box" + x) + ".but").gotoAndStop(2);
x++;
}
Frame 90
busy = 1;
timeB = (((_root.timer.min * 60) + _root.timer.sec2) / 10) * 100;
correctB = (/:correct * 10) - (/:turns * 2);
if (correctB < 0) {
correctB = 0;
}
score = (score + timeB) + correctB;
Frame 115
gotoAndPlay (13);
Frame 116
busy = 1;
timeB = 0;
correctB = (/:correct * 10) - (/:turns * 2);
if (correctB < 0) {
correctB = 0;
}
score = (score + timeB) + correctB;
Frame 140
stop();
Symbol 44 MovieClip Frame 1
gotoAndStop(/:currentPic);
Symbol 51 Button
on (release) {
level = 0;
score = 0;
gotoAndPlay (13);
}
Symbol 55 MovieClip Frame 1
stop();
Symbol 72 MovieClip Frame 1
min = 4;
sec = 59;
sec2 = 59;
Symbol 72 MovieClip Frame 17
sec2 = sec2 - 1;
if ((sec2 < 10) and (sec2 >= 0)) {
sec = "0" + sec2;
} else {
sec = sec2;
}
if (((10 >= sec2) and (min == 0)) and (0 < sec2)) {
gotoAndPlay (18);
} else if ((sec2 == -1) and (0 < min)) {
sec2 = 60;
sec = sec2;
min = min - 1;
gotoAndPlay (2);
} else if ((sec2 == -1) and (min == 0)) {
stop();
sec = 0;
_root.gotoAndPlay("end");
} else {
gotoAndPlay (2);
}
Symbol 72 MovieClip Frame 19
gotoAndPlay (2);
Symbol 75 Button
on (release) {
correct = 0;
gotoAndPlay (116);
}
Symbol 87 Button
on (release) {
if (/:busy != 1) {
if (/:click1 == 0) {
Set("/:click1", _parent.n2);
Set("/:click1Box", _parent.n);
gotoAndStop (3);
} else {
Set("/:click2", _parent.n2);
Set("/:click2Box", _parent.n);
Set("/:busy", 1);
_root.switchBoxes();
}
}
}
Symbol 89 Button
on (release) {
Set("/:click1", 0);
gotoAndStop (2);
}
Symbol 90 MovieClip Frame 1
stop();
Symbol 94 MovieClip Frame 2
pic._x = eval ("/:xSpot" + n);
pic._y = eval ("/:ySpot" + n);
Symbol 94 MovieClip Frame 5
stop();
Symbol 95 MovieClip Frame 2
pic._x = eval ("/:xSpot" + n);
pic._y = eval ("/:ySpot" + n);
Symbol 95 MovieClip Frame 5
stop();
Symbol 96 MovieClip Frame 2
pic._x = eval ("/:xSpot" + n);
pic._y = eval ("/:ySpot" + n);
Symbol 96 MovieClip Frame 5
stop();
Symbol 97 MovieClip Frame 2
pic._x = eval ("/:xSpot" + n);
pic._y = eval ("/:ySpot" + n);
Symbol 97 MovieClip Frame 5
stop();
Symbol 98 MovieClip Frame 2
pic._x = eval ("/:xSpot" + n);
pic._y = eval ("/:ySpot" + n);
Symbol 98 MovieClip Frame 5
stop();
Symbol 99 MovieClip Frame 2
pic._x = eval ("/:xSpot" + n);
pic._y = eval ("/:ySpot" + n);
Symbol 99 MovieClip Frame 5
stop();
Symbol 100 MovieClip Frame 2
pic._x = eval ("/:xSpot" + n);
pic._y = eval ("/:ySpot" + n);
Symbol 100 MovieClip Frame 5
stop();
Symbol 101 MovieClip Frame 2
pic._x = eval ("/:xSpot" + n);
pic._y = eval ("/:ySpot" + n);
Symbol 101 MovieClip Frame 5
stop();
Symbol 102 MovieClip Frame 2
pic._x = eval ("/:xSpot" + n);
pic._y = eval ("/:ySpot" + n);
Symbol 102 MovieClip Frame 5
stop();
Symbol 103 MovieClip Frame 2
pic._x = eval ("/:xSpot" + n);
pic._y = eval ("/:ySpot" + n);
Symbol 103 MovieClip Frame 5
stop();
Symbol 104 MovieClip Frame 2
pic._x = eval ("/:xSpot" + n);
pic._y = eval ("/:ySpot" + n);
Symbol 104 MovieClip Frame 5
stop();
Symbol 105 MovieClip Frame 2
pic._x = eval ("/:xSpot" + n);
pic._y = eval ("/:ySpot" + n);
Symbol 105 MovieClip Frame 5
stop();
Symbol 106 MovieClip Frame 2
pic._x = eval ("/:xSpot" + n);
pic._y = eval ("/:ySpot" + n);
Symbol 106 MovieClip Frame 5
stop();
Symbol 107 MovieClip Frame 2
pic._x = eval ("/:xSpot" + n);
pic._y = eval ("/:ySpot" + n);
Symbol 107 MovieClip Frame 5
stop();
Symbol 108 MovieClip Frame 2
pic._x = eval ("/:xSpot" + n);
pic._y = eval ("/:ySpot" + n);
Symbol 108 MovieClip Frame 5
stop();
Symbol 109 MovieClip Frame 2
pic._x = eval ("/:xSpot" + n);
pic._y = eval ("/:ySpot" + n);
Symbol 109 MovieClip Frame 5
stop();
Symbol 110 MovieClip Frame 2
pic._x = eval ("/:xSpot" + n);
pic._y = eval ("/:ySpot" + n);
Symbol 110 MovieClip Frame 5
stop();
Symbol 111 MovieClip Frame 2
pic._x = eval ("/:xSpot" + n);
pic._y = eval ("/:ySpot" + n);
Symbol 111 MovieClip Frame 5
stop();
Symbol 112 MovieClip Frame 2
pic._x = eval ("/:xSpot" + n);
pic._y = eval ("/:ySpot" + n);
Symbol 112 MovieClip Frame 5
stop();
Symbol 113 MovieClip Frame 2
pic._x = eval ("/:xSpot" + n);
pic._y = eval ("/:ySpot" + n);
Symbol 113 MovieClip Frame 5
stop();
Symbol 114 MovieClip Frame 2
pic._x = eval ("/:xSpot" + n);
pic._y = eval ("/:ySpot" + n);
Symbol 114 MovieClip Frame 5
stop();
Symbol 115 MovieClip Frame 2
pic._x = eval ("/:xSpot" + n);
pic._y = eval ("/:ySpot" + n);
Symbol 115 MovieClip Frame 5
stop();
Symbol 116 MovieClip Frame 2
pic._x = eval ("/:xSpot" + n);
pic._y = eval ("/:ySpot" + n);
Symbol 116 MovieClip Frame 5
stop();
Symbol 117 MovieClip Frame 2
pic._x = eval ("/:xSpot" + n);
pic._y = eval ("/:ySpot" + n);
Symbol 117 MovieClip Frame 5
stop();
Symbol 118 MovieClip Frame 2
pic._x = eval ("/:xSpot" + n);
pic._y = eval ("/:ySpot" + n);
Symbol 118 MovieClip Frame 5
stop();
Symbol 126 Button
on (release) {
play();
}
Symbol 133 MovieClip Frame 5
stop();
Symbol 136 MovieClip Frame 1
stop();
Symbol 136 MovieClip Frame 2
Set("/:hintTime", /:hintTime - 1);
Instance of Symbol 133 MovieClip "box1" in Symbol 136 MovieClip Frame 2
onClipEvent (load) {
n = 1;
n2 = 1;
}
Symbol 136 MovieClip Frame 21
if (0 >= /:hintTime) {
_root.hint1.gotoAndStop("off");
gotoAndStop (22);
} else {
gotoAndPlay (2);
}
Symbol 136 MovieClip Frame 22
stop();
Symbol 137 Button
on (release) {
gotoAndPlay (116);
}
Symbol 143 Button
on (release) {
_root.hint2.gotoAndPlay(2);
nextFrame();
}
Symbol 149 Button
on (release) {
_root.hint2.gotoAndStop("off");
gotoAndStop (1);
}
Symbol 150 MovieClip Frame 1
if (/:hintTime >= 1) {
stop();
} else {
gotoAndStop (3);
}
Symbol 152 MovieClip Frame 19
stop();
Symbol 165 MovieClip Frame 1
score = _level0.score;
gcode = _level0.gcode;
if (score == 0) {
score = 5;
}
if (url_dest == null) {
getURL ("game.cfm", "_self", "POST");
} else {
getURL (url_dest, "_self", "POST");
}
stop();