Frame 1
setProperty("/no_click", _visible , "0");
tellTarget ("/active") {
gotoAndStop (2);
}
color = "2";
height1 = "1";
height2 = "1";
height3 = "1";
height4 = "1";
height5 = "1";
height6 = "1";
height7 = "1";
height8 = "1";
height9 = "1";
stop();
Frame 2
gotoAndStop (1);
Symbol 7 MovieClip Frame 1
stop();
Symbol 9 MovieClip Frame 1
stop();
Symbol 9 MovieClip Frame 2
play();
text = substring(clicked_box, "1", "1");
text2 = substring(clicked_box, "3", "1");
tellTarget ("../active") {
gotoAndStop(..:color);
};
col = "5" - ..:color;
if ((((getProperty((("../" add text) add "_") add (text2 - "3"), _currentframe) == col) and (getProperty((("../" add text) add "_") add (text2 - "2"), _currentframe) == col)) and (getProperty((("../" add text) add "_") add (text2 - "1"), _currentframe) == col)) and (getProperty((("../" add text) add "_") add text2, _currentframe) == col)) {
call("code");
call("code 2");
}
Symbol 9 MovieClip Frame 3
col = "5" - ..:color;
if ((((getProperty((("../" add text) add "_") add text2, _currentframe) == col) and (getProperty((("../" add (text + "1")) add "_") add (text2 + "1"), _currentframe) == col)) and (getProperty((("../" add (text + "2")) add "_") add (text2 + "2"), _currentframe) == col)) and (getProperty((("../" add (text + "3")) add "_") add (text2 + "3"), _currentframe) == col)) {
call("code");
displace = "125";
call("code 4");
}
if ((((getProperty((("../" add (text - "1")) add "_") add (text2 - "1"), _currentframe) == col) and (getProperty((("../" add text) add "_") add text2, _currentframe) == col)) and (getProperty((("../" add (text + "1")) add "_") add (text2 + "1"), _currentframe) == col)) and (getProperty((("../" add (text + "2")) add "_") add (text2 + "2"), _currentframe) == col)) {
call("code");
displace = "85";
call("code 4");
}
if ((((getProperty((("../" add (text - "2")) add "_") add (text2 - "2"), _currentframe) == col) and (getProperty((("../" add (text - "1")) add "_") add (text2 - "1"), _currentframe) == col)) and (getProperty((("../" add text) add "_") add text2, _currentframe) == col)) and (getProperty((("../" add (text + "1")) add "_") add (text2 + "1"), _currentframe) == col)) {
call("code");
displace = "42";
call("code 4");
}
if ((((getProperty((("../" add (text - "3")) add "_") add (text2 - "3"), _currentframe) == col) and (getProperty((("../" add (text - "2")) add "_") add (text2 - "2"), _currentframe) == col)) and (getProperty((("../" add (text - "1")) add "_") add (text2 - "1"), _currentframe) == col)) and (getProperty((("../" add text) add "_") add text2, _currentframe) == col)) {
call("code");
displace = "0";
call("code 4");
}
Symbol 9 MovieClip Frame 4
col = "5" - ..:color;
if ((((getProperty((("../" add text) add "_") add text2, _currentframe) == col) and (getProperty((("../" add (text + "1")) add "_") add (text2 - "1"), _currentframe) == col)) and (getProperty((("../" add (text + "2")) add "_") add (text2 - "2"), _currentframe) == col)) and (getProperty((("../" add (text + "3")) add "_") add (text2 - "3"), _currentframe) == col)) {
call("code");
displace = "0";
call("code 5");
}
if ((((getProperty((("../" add (text - "1")) add "_") add (text2 + "1"), _currentframe) == col) and (getProperty((("../" add text) add "_") add text2, _currentframe) == col)) and (getProperty((("../" add (text + "1")) add "_") add (text2 - "1"), _currentframe) == col)) and (getProperty((("../" add (text + "2")) add "_") add (text2 - "2"), _currentframe) == col)) {
call("code");
displace = -"42";
call("code 5");
}
if ((((getProperty((("../" add (text - "2")) add "_") add (text2 + "2"), _currentframe) == col) and (getProperty((("../" add (text - "1")) add "_") add (text2 + "1"), _currentframe) == col)) and (getProperty((("../" add text) add "_") add text2, _currentframe) == col)) and (getProperty((("../" add (text + "1")) add "_") add (text2 - "1"), _currentframe) == col)) {
call("code");
displace = -"85";
call("code 5");
}
if ((((getProperty((("../" add (text - "3")) add "_") add (text2 + "3"), _currentframe) == col) and (getProperty((("../" add (text - "2")) add "_") add (text2 + "2"), _currentframe) == col)) and (getProperty((("../" add (text - "1")) add "_") add (text2 + "1"), _currentframe) == col)) and (getProperty((("../" add text) add "_") add text2, _currentframe) == col)) {
call("code");
displace = "125";
call("code 4");
}
Symbol 9 MovieClip Frame 5
col = "5" - ..:color;
if ((((getProperty((("../" add text) add "_") add text2, _currentframe) == col) and (getProperty((("../" add (text + "1")) add "_") add text2, _currentframe) == col)) and (getProperty((("../" add (text + "2")) add "_") add text2, _currentframe) == col)) and (getProperty((("../" add (text + "3")) add "_") add text2, _currentframe) == col)) {
call("code");
displace = "125";
call("code 3");
}
if ((((getProperty((("../" add (text - "1")) add "_") add text2, _currentframe) == col) and (getProperty((("../" add text) add "_") add text2, _currentframe) == col)) and (getProperty((("../" add (text + "1")) add "_") add text2, _currentframe) == col)) and (getProperty((("../" add (text + "2")) add "_") add text2, _currentframe) == col)) {
call("code");
displace = "85";
call("code 3");
}
if ((((getProperty((("../" add (text - "2")) add "_") add text2, _currentframe) == col) and (getProperty((("../" add (text - "1")) add "_") add text2, _currentframe) == col)) and (getProperty((("../" add text) add "_") add text2, _currentframe) == col)) and (getProperty((("../" add (text + "1")) add "_") add text2, _currentframe) == col)) {
call("code");
displace = "40";
call("code 3");
}
if ((((getProperty((("../" add (text - "3")) add "_") add text2, _currentframe) == col) and (getProperty((("../" add (text - "2")) add "_") add text2, _currentframe) == col)) and (getProperty((("../" add (text - "1")) add "_") add text2, _currentframe) == col)) and (getProperty((("../" add text) add "_") add text2, _currentframe) == col)) {
call("code");
displace = "0";
call("code 3");
}
gotoAndStop (1);
Symbol 9 MovieClip Frame 6
setProperty("../no_click", _visible , "1");
tellTarget ("../no_click") {
gotoAndStop(../brain:col);
}
Symbol 9 MovieClip Frame 7
setProperty("../4down", _x , getProperty((("../" add text) add "_") add text2, _x));
setProperty("../4down", _y , getProperty((("../" add text) add "_") add text2, _y));
Symbol 9 MovieClip Frame 8
setProperty("../4across", _x , getProperty((("../" add text) add "_") add text2, _x) + displace);
setProperty("../4across", _y , getProperty((("../" add text) add "_") add text2, _y));
Symbol 9 MovieClip Frame 9
setProperty("../4acrossup", _x , getProperty((("../" add text) add "_") add text2, _x) + displace);
setProperty("../4acrossup", _y , getProperty((("../" add text) add "_") add text2, _y) - (displace * "1.05"));
Symbol 9 MovieClip Frame 10
setProperty("../4acrossdown", _x , getProperty((("../" add text) add "_") add text2, _x) + displace);
setProperty("../4acrossdown", _y , getProperty((("../" add text) add "_") add text2, _y) + (displace * "1.05"));
Symbol 13 Button
on (release) {
getURL ("http://www.become.co.uk", "_blank");
}
Symbol 21 Button
on (press) {
column = "1";
tellTarget ("/brain2") {
gotoAndStop ("code");
}
}
Symbol 22 Button
on (press) {
column = "2";
tellTarget ("/brain2") {
gotoAndStop ("code");
}
}
Symbol 23 Button
on (press) {
column = "3";
tellTarget ("/brain2") {
gotoAndStop ("code");
}
}
Symbol 24 Button
on (press) {
column = "4";
tellTarget ("/brain2") {
gotoAndStop ("code");
}
}
Symbol 25 Button
on (press) {
column = "5";
tellTarget ("/brain2") {
gotoAndStop ("code");
}
}
Symbol 26 Button
on (press) {
column = "6";
tellTarget ("/brain2") {
gotoAndStop ("code");
}
}
Symbol 27 Button
on (press) {
column = "7";
tellTarget ("/brain2") {
gotoAndStop ("code");
}
}
Symbol 28 Button
on (press) {
column = "8";
tellTarget ("/brain2") {
gotoAndStop ("code");
}
}
Symbol 29 Button
on (press) {
column = "9";
tellTarget ("/brain2") {
gotoAndStop ("code");
}
}
Symbol 31 MovieClip Frame 1
gotoAndStop(../brain:col);
Symbol 31 MovieClip Frame 2
text = "Red Wins";
Symbol 31 MovieClip Frame 3
text = "Yellow Wins";
Symbol 32 MovieClip Frame 1
stop();
Symbol 32 MovieClip Frame 2
height = eval (("..:" add "height") add ..:column);
if (height < "7") {
tellTarget ((("../" add ..:column) add "_") add height) {
gotoAndStop(..:color);
tellTarget ("../brain") {
gotoAndStop ("brain_frame");
clicked_box = (..:column add "_") add ../brain2:height;
};
if (..:color eq "2") {
Set("..:color", "3");
} else {
Set("..:color", "2");
}
Set(("..:" add "height") add ..:column, eval ("..:height" add ..:column) + "1");
gotoAndStop (1);
}
} else {
gotoAndStop (1);
}
Symbol 38 Button
on (press) {
gotoAndPlay (2);
}