Combined Code
movieClip 7 {
}
frame 20 {
ifFrameLoaded (167) {
gotoAndStop(42);
}
}
movieClip 16 {
}
frame 41 {
gotoAndPlay(1);
}
frame 42 {
stop();
}
button 22 {
on (release) {
gotoAndStop(43);
}
}
button 25 {
on (release) {
getURL('http://www.stoney.n3.net/index.html', '');
}
}
frame 43 {
message = 'Please think of a number.';
}
button 28 {
on (release) {
gotoAndStop(44);
}
}
frame 44 {
rand = random('20');
if (rand == '0') {
rand = '1';
}
message = 'Please add ' add rand add ' to the number.';
save = rand;
}
button 31 {
on (release) {
gotoAndStop(45);
}
}
frame 45 {
rand = random('20');
check = save;
if (rand == '0') {
rand = '1';
}
if (rand >= check) {
message = 'Please add ' add rand add ' to the number.';
save1 = rand;
} else {
message = 'Please subtract ' add rand add ' from the number.';
save1 = '0' - rand;
}
}
button 33 {
on (release) {
gotoAndStop(46);
}
}
frame 46 {
rand = random('20');
check = save + save1;
if (rand == '0') {
rand = '1';
}
if (rand >= check) {
message = 'Please add ' add rand add ' to the number.';
save2 = rand;
} else {
message = 'Please subtract ' add rand add ' from the number.';
save2 = '0' - rand;
}
}
button 35 {
on (release) {
gotoAndStop(47);
}
}
frame 47 {
rand = random('20');
check = save + save1 + save2;
if (rand == '0') {
rand = '1';
}
if (rand >= check) {
message = 'Please add ' add rand add ' to the number.';
save3 = rand;
} else {
message = 'Please subtract ' add rand add ' from the number.';
save3 = '0' - rand;
}
}
button 37 {
on (release) {
gotoAndStop(48);
}
}
frame 48 {
rand = random('20');
check = save + save1 + save2 + save3;
if (rand == '0') {
rand = '1';
}
if (rand >= check) {
message = 'Please add ' add rand add ' to the number.';
save4 = rand;
} else {
message = 'Please subtract ' add rand add ' from the number.';
save4 = '0' - rand;
}
}
button 39 {
on (release) {
gotoAndStop(49);
}
}
frame 49 {
message = 'Please subtract the number you first thought of.';
}
button 41 {
on (release) {
gotoAndStop(50);
}
}
frame 50 {
message = 'Mind Reader will now probe your thoughts for the number you have remaining.';
}
button 43 {
on (release) {
gotoAndPlay(62);
}
}
frame 51 {
message = 'Your thoughts have been probed. The number will now be revealed.';
}
button 45 {
on (release) {
gotoAndStop(52);
}
}
frame 52 {
check = save + save1 + save2 + save3 + save4;
message = 'The number remaining is ' add check add ' isn\'t it?';
}
frame 62 {
message = 'Mind Reader will now probe your thoughts for the number you have remaining.';
}
button 51 {
on (release) {
gotoAndStop(57);
}
}
movieClip 57 {
frame 1 {
index = '0';
loop = int(random('10'));
}
frame 5 {
if (loop >= index) {
index += '1';
gotoAndPlay(2);
}
}
frame 6 {
index = '0';
loop = int(random('10'));
}
frame 10 {
if (loop >= index) {
index += '1';
gotoAndPlay(7);
}
}
frame 11 {
gotoAndPlay(1);
}
}
frame 167 {
gotoAndStop(51);
}