Combined Code
frame 1 {
/no_click._visible = '0';
tellTarget ('/active') {
gotoAndStop(2);
}
}
frame 1 {
color = '2';
height1 = '1';
height2 = '1';
height3 = '1';
height4 = '1';
height5 = '1';
height6 = '1';
height7 = '1';
height8 = '1';
height9 = '1';
}
frame 1 {
stop();
}
movieClip 7 {
frame 1 {
stop();
}
}
movieClip 9 {
frame 1 {
stop();
}
frame 2 {
play();
text = substring(clicked_box, '1', '1');
text2 = substring(clicked_box, '3', '1');
tellTarget ('../active') {
gotoAndStop(..:color);
}
col = '5' - ..:color;
if ((eval('../' add text add '_' add (text2 - '3')))._currentframe == col and (eval('../' add text add '_' add (text2 - '2')))._currentframe == col and (eval('../' add text add '_' add (text2 - '1')))._currentframe == col and (eval('../' add text add '_' add text2))._currentframe == col) {
call('code');
call('code 2');
}
}
frame 3 {
col = '5' - ..:color;
if ((eval('../' add text add '_' add text2))._currentframe == col and (eval('../' add (text + '1') add '_' add (text2 + '1')))._currentframe == col and (eval('../' add (text + '2') add '_' add (text2 + '2')))._currentframe == col and (eval('../' add (text + '3') add '_' add (text2 + '3')))._currentframe == col) {
call('code');
displace = '125';
call('code 4');
}
if ((eval('../' add (text - '1') add '_' add (text2 - '1')))._currentframe == col and (eval('../' add text add '_' add text2))._currentframe == col and (eval('../' add (text + '1') add '_' add (text2 + '1')))._currentframe == col and (eval('../' add (text + '2') add '_' add (text2 + '2')))._currentframe == col) {
call('code');
displace = '85';
call('code 4');
}
if ((eval('../' add (text - '2') add '_' add (text2 - '2')))._currentframe == col and (eval('../' add (text - '1') add '_' add (text2 - '1')))._currentframe == col and (eval('../' add text add '_' add text2))._currentframe == col and (eval('../' add (text + '1') add '_' add (text2 + '1')))._currentframe == col) {
call('code');
displace = '42';
call('code 4');
}
if ((eval('../' add (text - '3') add '_' add (text2 - '3')))._currentframe == col and (eval('../' add (text - '2') add '_' add (text2 - '2')))._currentframe == col and (eval('../' add (text - '1') add '_' add (text2 - '1')))._currentframe == col and (eval('../' add text add '_' add text2))._currentframe == col) {
call('code');
displace = '0';
call('code 4');
}
}
frame 4 {
col = '5' - ..:color;
if ((eval('../' add text add '_' add text2))._currentframe == col and (eval('../' add (text + '1') add '_' add (text2 - '1')))._currentframe == col and (eval('../' add (text + '2') add '_' add (text2 - '2')))._currentframe == col and (eval('../' add (text + '3') add '_' add (text2 - '3')))._currentframe == col) {
call('code');
displace = '0';
call('code 5');
}
if ((eval('../' add (text - '1') add '_' add (text2 + '1')))._currentframe == col and (eval('../' add text add '_' add text2))._currentframe == col and (eval('../' add (text + '1') add '_' add (text2 - '1')))._currentframe == col and (eval('../' add (text + '2') add '_' add (text2 - '2')))._currentframe == col) {
call('code');
displace = '0' - '42';
call('code 5');
}
if ((eval('../' add (text - '2') add '_' add (text2 + '2')))._currentframe == col and (eval('../' add (text - '1') add '_' add (text2 + '1')))._currentframe == col and (eval('../' add text add '_' add text2))._currentframe == col and (eval('../' add (text + '1') add '_' add (text2 - '1')))._currentframe == col) {
call('code');
displace = '0' - '85';
call('code 5');
}
if ((eval('../' add (text - '3') add '_' add (text2 + '3')))._currentframe == col and (eval('../' add (text - '2') add '_' add (text2 + '2')))._currentframe == col and (eval('../' add (text - '1') add '_' add (text2 + '1')))._currentframe == col and (eval('../' add text add '_' add text2))._currentframe == col) {
call('code');
displace = '125';
call('code 4');
}
}
frame 5 {
col = '5' - ..:color;
if ((eval('../' add text add '_' add text2))._currentframe == col and (eval('../' add (text + '1') add '_' add text2))._currentframe == col and (eval('../' add (text + '2') add '_' add text2))._currentframe == col and (eval('../' add (text + '3') add '_' add text2))._currentframe == col) {
call('code');
displace = '125';
call('code 3');
}
if ((eval('../' add (text - '1') add '_' add text2))._currentframe == col and (eval('../' add text add '_' add text2))._currentframe == col and (eval('../' add (text + '1') add '_' add text2))._currentframe == col and (eval('../' add (text + '2') add '_' add text2))._currentframe == col) {
call('code');
displace = '85';
call('code 3');
}
if ((eval('../' add (text - '2') add '_' add text2))._currentframe == col and (eval('../' add (text - '1') add '_' add text2))._currentframe == col and (eval('../' add text add '_' add text2))._currentframe == col and (eval('../' add (text + '1') add '_' add text2))._currentframe == col) {
call('code');
displace = '40';
call('code 3');
}
if ((eval('../' add (text - '3') add '_' add text2))._currentframe == col and (eval('../' add (text - '2') add '_' add text2))._currentframe == col and (eval('../' add (text - '1') add '_' add text2))._currentframe == col and (eval('../' add text add '_' add text2))._currentframe == col) {
call('code');
displace = '0';
call('code 3');
}
gotoAndStop(1);
}
frame 6 {
../no_click._visible = '1';
tellTarget ('../no_click') {
gotoAndStop(../brain:col);
}
}
frame 7 {
../4down._x = (eval('../' add text add '_' add text2))._x;
../4down._y = (eval('../' add text add '_' add text2))._y;
}
frame 8 {
../4across._x = (eval('../' add text add '_' add text2))._x + displace;
../4across._y = (eval('../' add text add '_' add text2))._y;
}
frame 9 {
../4acrossup._x = (eval('../' add text add '_' add text2))._x + displace;
../4acrossup._y = (eval('../' add text add '_' add text2))._y - displace * '1.05';
}
frame 10 {
../4acrossdown._x = (eval('../' add text add '_' add text2))._x + displace;
../4acrossdown._y = (eval('../' add text add '_' add text2))._y + displace * '1.05';
}
}
button 13 {
on (release) {
getURL('http://www.become.co.uk', '_blank');
}
}
button 21 {
on (press) {
column = '1';
tellTarget ('/brain2') {
gotoAndStop('code');
}
}
}
button 22 {
on (press) {
column = '2';
tellTarget ('/brain2') {
gotoAndStop('code');
}
}
}
button 23 {
on (press) {
column = '3';
tellTarget ('/brain2') {
gotoAndStop('code');
}
}
}
button 24 {
on (press) {
column = '4';
tellTarget ('/brain2') {
gotoAndStop('code');
}
}
}
button 25 {
on (press) {
column = '5';
tellTarget ('/brain2') {
gotoAndStop('code');
}
}
}
button 26 {
on (press) {
column = '6';
tellTarget ('/brain2') {
gotoAndStop('code');
}
}
}
button 27 {
on (press) {
column = '7';
tellTarget ('/brain2') {
gotoAndStop('code');
}
}
}
button 28 {
on (press) {
column = '8';
tellTarget ('/brain2') {
gotoAndStop('code');
}
}
}
button 29 {
on (press) {
column = '9';
tellTarget ('/brain2') {
gotoAndStop('code');
}
}
}
movieClip 31 {
frame 1 {
gotoAndStop(../brain:col);
}
frame 2 {
text = 'Red Wins';
}
frame 3 {
text = 'Yellow Wins';
}
}
movieClip 32 {
frame 1 {
stop();
}
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') {
..:color = '3';
} else {
..:color = '2';
}
eval('..:' add 'height' add ..:column) = eval('..:height' add ..:column) + '1';
gotoAndStop(1);
} else {
gotoAndStop(1);
}
}
}
movieClip 34 {
}
movieClip 35 {
}
movieClip 36 {
}
movieClip 37 {
}
button 38 {
on (press) {
gotoAndPlay(2);
}
}
frame 2 {
gotoAndStop(1);
}