Frame 211
stop();
Frame 212
level = 1;
_level0.acct = 0;
rota = new array();
_level0.rotat = random(2200);
brainfact = new array();
brainfact[1] = "As adult human brain weighs approx 1,400g";
brainfact[2] = "A newborn human brain weighs approx 400g";
brainfact[3] = "A goldfish`s brain weighs just 0.097g - A Human`s is 14,000 times heavier!";
brainfact[4] = "The Average number of neurons in the brain is 100 billion ";
brainfact[5] = "The brain represents about 2% of your total body weight.";
brainfact[6] = "The human brain is approximately 75% water";
brainfact[7] = "Unconsciousness will occur after 8-10 seconds after loss of blood supply to the brain";
brainfact[8] = "You have 15 times more neurons in your head than there are people on the planet.";
brainfact[9] = "The human brain and nervous system begin to develop at about three weeks\u2019 gestation";
brainfact[10] = "The brain reaches its maximum weight near age 20 and slowly loses about 10 percent of its weight over a lifetime.";
brainfact[11] = "A jellyfish has no brain. ";
brainfact[12] = "For centuries, people thought that the heart, not the brain, was important for memory. The expression \"off by heart\" is derived from this.";
brainfact[13] = "Most people dream about 5 times during each 8-hour period of sleep. Based on this number, people have about 1,825 dreams every year.";
brainfact[14] = "The left side of your brain is \"academic\" brain. Your right side is \"creative\"";
brainfact[15] = "Parkinson\u2019s disease - is a neurologic disorder affects 1 million individuals in the United States, most of whom are older than 50. ";
brainfact[16] = "Parkinson\u2019s disease is characterized by symptoms of slowness of movement,muscular rigidity, tremor, and postural instability.";
brainfact[17] = "The incidence of primary brain tumors is about 12 per 100,000 population. About 36,000 new cases occur in the USA annually.";
brainfact[18] = "Tourette syndrome is one of the most common and least understood neurobiological disorders.";
brainfact[19] = "Tourette syndrome is an inherited disorder that affects an estimated one in 500 Americans, roughly 200,000 people.";
brainfact[20] = "One human brain generates more electrical impulses in a single day than all of the world`s telephones put together.";
brainfact[21] = "Alzheimer\u2019s disease is one of the most devastating of all neurological disorders is the dementia that occurs in the elderly.";
brainfact[22] = "Alzheimer\u2019s disease - by the year 2040, it is predicted to affect approximately 14 million individuals in the USA.";
brainfact[23] = "A stroke occurs when a blood vessel bringing oxygen and nutrients to the brain bursts or is clogged by a blood clot or some other particle. ";
brainfact[24] = "Autism - Almost one in every 166 babies born in the USA will develop some form of autism.";
brainfact[25] = "Autism - is characterized by communication diffculties, language problems, impaired social skills, and narrow, obsessive interests or repetitive behaviors,";
brainfact[26] = "There is no cure for Autism.";
fact = random(26) + 1;
fact_txt = brainfact[fact];
stop();
Frame 213
array_next_txt = new array();
array_instructions_txt = new array();
array_next_txt[1] = "Level 1 - Maths Test";
array_next_txt[2] = "Level 2 - Join the Dots Test";
array_next_txt[3] = "Level 3 - Colours Test";
array_next_txt[4] = "Level 4 - Letters Test";
array_instructions_txt[1] = "You are given 20 simple sums. Enter your answer as quickly as you can BUT any errors will get time penalties!";
array_instructions_txt[2] = "Starting at 1 join the numbered boxes in ascending order. Avoid hitting other boxes as you will be penalised.";
array_instructions_txt[3] = "You will see 15 coloured words flashed up. Click the box that corresponds to the colour of the text!";
array_instructions_txt[4] = "Count the number of letters from the 4 lines of text presented to you. Be accurate and quick!";
next_txt = array_next_txt[level];
instructions_txt = array_instructions_txt[level];
Instance of Symbol 76 MovieClip "game_cooky" in Frame 213
onClipEvent (load) {
function write_game_cookie(game_id, f1, f2, f3, f4, f5, f6, f7, f8) {
name = "game" + game_id;
so = SharedObject.getLocal(name, "/");
trace("writing cookie......name : " + game_id);
so.data.game_id = game_id;
so.data.f1 = f1;
so.data.f2 = f2;
so.data.f3 = f3;
so.data.f4 = f4;
so.data.f5 = f5;
so.data.f6 = f6;
so.data.f7 = f7;
so.data.f8 = f8;
so.data.f9 = f9;
trace("f6..." + f6);
trace("f7..." + f7);
trace("f8..." + f8);
so.flush();
}
function read_game_cookie(game_id) {
name = "game" + game_id;
so = SharedObject.getLocal(name, "/");
if (so.data.game_id == null) {
result = false;
trace("no cookie....");
} else {
trace("cookie....");
result = true;
trace("reading cookie....");
_level0.checker = so.data.game_id;
_level0.f1 = so.data.f1;
_level0.f2 = so.data.f2;
_level0.f3 = so.data.f3;
_level0.f4 = so.data.f4;
_level0.f5 = so.data.f5;
_level0.f6 = so.data.f6;
_level0.f7 = so.data.f7;
_level0.f8 = so.data.f8;
_level0.f9 = so.data.f9;
}
return(result);
}
_visible = true;
}
Frame 214
function get_cookie_txt() {
cookie_best1_txt = cookie_best1;
cookie_best2_txt = cookie_best2;
cookie_best3_txt = cookie_best3;
cookie_best4_txt = cookie_best4;
cookie_best5_txt = cookie_best5;
cookie_best_txt = cookie_best;
if (cookie_best == not_yet_done) {
cookie_best_txt = "N/A";
}
if (cookie_best1 == not_yet_done) {
cookie_best1_txt = "N/A";
}
if (cookie_best2 == not_yet_done) {
cookie_best2_txt = "N/A";
}
if (cookie_best3 == not_yet_done) {
cookie_best3_txt = "N/A";
}
if (cookie_best4 == not_yet_done) {
cookie_best4_txt = "N/A";
}
if (cookie_best5 == not_yet_done) {
cookie_best5_txt = "N/A";
}
}
game_id = "brain_1";
exists = game_cooky.read_game_cookie(game_id);
trace((("game " + game_id) + " ") + exists);
not_yet_done = 9999999 /* 0x98967F */;
if (exists == false) {
game_cooky.write_game_cookie(game_id, not_yet_done, not_yet_done, not_yet_done, not_yet_done, not_yet_done, not_yet_done, 0, 0);
f1 = not_yet_done;
f2 = not_yet_done;
f3 = not_yet_done;
f4 = not_yet_done;
f5 = not_yet_done;
f6 = not_yet_done;
f7 = 0;
f8 = 0;
f9 = 0;
}
cookie_best1 = f1;
cookie_best2 = f2;
cookie_best3 = f3;
cookie_best4 = f4;
cookie_best5 = f5;
cookie_best = f6;
trace("****READ****");
trace("cookie_best1 " + cookie_best1);
trace("****ENDREAD****");
get_cookie_txt();
stop();
Frame 215
if (level == 1) {
gotoAndPlay (218);
} else if (level == 2) {
gotoAndPlay (228);
} else if (level == 3) {
gotoAndPlay (243);
} else if (level == 4) {
gotoAndPlay (263);
}
Frame 218
function remove_clips() {
i = 0;
while (i <= 10) {
if (i != 10) {
removeMovieClip("temp" + i);
} else {
removeMovieClip("tempc");
}
i++;
}
}
start_level = level;
stop();
Instance of Symbol 102 MovieClip "control" in Frame 218
onClipEvent (load) {
function reset_guess() {
guess_digits = 0;
guess_string = "";
_level0.guess = guess_string;
}
function addnum(num) {
if (num == "c") {
reset_guess();
} else if (guess_digits < 3) {
guess_string = guess_string + num;
_level0.guess = guess_string;
guess_digits++;
}
}
function clear() {
i = 1;
while (i <= 10) {
sum = eval ("_level0.sum" + i);
sum.n1 = "";
sum.n2 = "";
sum.sign = "";
sum.answer = "";
sum.equals = "";
sum.tick._visible = false;
i++;
}
}
function add_sum() {
sign = sign_list[current_sum];
if (current_sum > 10) {
id = current_sum - 10;
} else {
id = current_sum;
}
sum = eval ("_level0.sum" + id);
sum.sign = sign;
sum.equals = "=";
if (sum.sign == "+") {
sum.n1 = random(10) + 1;
sum.n2 = random(10) + 1;
sum.correct_answer = sum.n1 + sum.n2;
} else if (sum.sign == "-") {
sum.n1 = random(10) + 10;
sum.n2 = random(10);
sum.correct_answer = sum.n1 - sum.n2;
} else if (sum.sign == "/") {
n1 = random(6) + 7;
n2 = random(8) + 5;
answ = n1 * n2;
sum.n1 = answ;
sum.n2 = n2;
sum.correct_answer = answ / sum.n2;
} else if (sum.sign == "x") {
sum.n1 = random(12) + 1;
sum.n2 = random(13);
sum.correct_answer = sum.n1 * sum.n2;
} else {
trace(("ERROR!!" + sum.sign) + "!!");
}
trace((((((((current_sum + " ") + sum.n1) + " ") + sum.sign) + " ") + sum.n2) + " = ") + sum.correct_answer);
}
function enter() {
_level0.diag = "enter 1";
if ((_level0.guess != "") and (state == "await_answer")) {
if (current_sum > 10) {
id = current_sum - 10;
} else {
id = current_sum;
}
sum = eval ("_level0.sum" + id);
_level0.guess = Number(_level0.guess);
sum.answer = _level0.guess;
sum.tick._visible = true;
if (sum.answer == sum.correct_answer) {
sum.tick.gotoAndStop(1);
} else {
sum.tick.gotoAndStop(2);
incorrect++;
}
_level0.guess = "";
reset_guess();
state = "next";
}
}
start = getTimer();
state = "next";
incorrect = 0;
totalq = 20;
reset_guess();
clear();
current_sum = 0;
sign_list = new Array("", "/", "+", "x", "-", "/", "+", "x", "-", "/", "x", "/", "+", "x", "-", "/", "+", "x", "-", "/", "x");
i = 1;
while (i <= (totalq * 2)) {
n1 = random(10) + 1;
n2 = random(10) + 1;
temp = sign_list[n1];
sign_list[n1] = sign_list[n2];
sign_list[n2] = temp;
i++;
}
}
onClipEvent (enterFrame) {
if (state == "next") {
if (current_sum < totalq) {
current_sum++;
if (current_sum == 11) {
clear();
}
add_sum();
state = "await_answer";
} else {
_level0.timetaken = (getTimer() - start) / 1000;
trace("t = " + _level0.timetaken);
_level0.timetaken = int(_level0.timetaken * 100) / 100;
trace("t= " + _level0.timetaken);
_level0.timmy.is_running = false;
_level0.timmy.time = _level0.timetaken;
_level0.incorrect = incorrect;
_level0.total = _level0.timetaken + (_level0.incorrect * 5);
_level0.play();
state = "done";
}
}
}
Instance of Symbol 104 MovieClip "timmy" in Frame 218
onClipEvent (load) {
is_running = true;
start = getTimer();
mytime = 0;
}
onClipEvent (enterFrame) {
if (is_running == 1) {
mytime = (getTimer() - start) / 1000;
final = int(mytime * 100) / 100;
raw = int(mytime);
if (raw != lasttime) {
time = raw;
} else {
lasttime = raw;
}
} else {
time = final;
}
}
Instance of Symbol 106 MovieClip "pb" in Frame 218
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 76 MovieClip "game_cooky" in Frame 218
onClipEvent (load) {
function write_game_cookie(game_id, f1, f2, f3, f4, f5, f6, f7, f8) {
name = "game" + game_id;
so = SharedObject.getLocal(name, "/");
trace("writing cookie......name : " + game_id);
so.data.game_id = game_id;
so.data.f1 = f1;
so.data.f2 = f2;
so.data.f3 = f3;
so.data.f4 = f4;
so.data.f5 = f5;
so.data.f6 = f6;
so.data.f7 = f7;
so.data.f8 = f8;
so.data.f9 = f9;
trace("f6..." + f6);
trace("f7..." + f7);
trace("f8..." + f8);
so.flush();
}
function read_game_cookie(game_id) {
name = "game" + game_id;
so = SharedObject.getLocal(name, "/");
if (so.data.game_id == null) {
result = false;
trace("no cookie....");
} else {
trace("cookie....");
result = true;
trace("reading cookie....");
_level0.checker = so.data.game_id;
_level0.f1 = so.data.f1;
_level0.f2 = so.data.f2;
_level0.f3 = so.data.f3;
_level0.f4 = so.data.f4;
_level0.f5 = so.data.f5;
_level0.f6 = so.data.f6;
_level0.f7 = so.data.f7;
_level0.f8 = so.data.f8;
_level0.f9 = so.data.f9;
}
return(result);
}
_visible = true;
}
Frame 219
remove_clips();
trace("to" + total);
trace("result..." + result);
cs = _level0.total;
_level0.rota[_level0.level] = cs;
_level0.acct = _level0.acct + cs;
if (_level0.level == 4) {
_level0.all_time_best = false;
if (_level0.acct <= _level0.cookie_best) {
_level0.cookie_best = _level0.acct;
_level0.all_time_best = true;
}
}
trace("best was..." + _level0["cookie_best" + _level0.level]);
trace("this..." + cs);
if (cs <= _level0["cookie_best" + _level0.level]) {
trace("BEST!!!!");
_level0["cookie_best" + _level0.level] = cs;
_level0.pb._visible = true;
_level0.pb.gotoAndPlay(2);
}
_level0.game_cooky.write_game_cookie(_level0.game_id, _level0.cookie_best1, _level0.cookie_best2, _level0.cookie_best3, _level0.cookie_best4, _level0.cookie_best5, _level0.cookie_best, _level0.cookie_played, _level0.cookie_completed);
_level0.get_cookie_txt();
_level0.game_cooky._visible = true;
stop();
Frame 227
level = start_level + 1;
gotoAndPlay (213);
Frame 228
function mix_up() {
i = 1;
while (i < 100) {
x = random(16) + 1;
y = random(16) + 1;
temp = col[y];
col[y] = col[x];
col[x] = temp;
i++;
}
}
function remove_line() {
removeMovieClip("line");
}
function remove_cs() {
removeMovieClip("line");
removeMovieClip("pen");
i = 1;
while (i <= 16) {
removeMovieClip("temp" + i);
i++;
}
}
start_level = level;
result = "";
numbers = new array(0, 28, 60, 9, 15, 134, 43, 14, 4, 11, 39, 9, 27);
col = new array(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16);
duplicateMovieClip ("pen_template", "pen", 200);
mix_up();
sums = 0;
i = 1;
while (i <= 16) {
sums = sums + numbers[i];
duplicateMovieClip ("tile_temp", "temp" + i, 100 + i);
mc = eval ("temp" + i);
mc._x = 26 * col[i];
mc._y = 50 + random(320);
mc.text = i;
i++;
}
trace(sums);
stop();
Instance of Symbol 102 MovieClip in Frame 228
onClipEvent (load) {
_root.createEmptyMovieClip("line", 1);
started = false;
done = false;
next = 1;
Mouse.hide();
bad = new array();
i = 1;
while (i <= 16) {
bad[i] = 0;
i++;
}
errors = 0;
}
onClipEvent (enterFrame) {
mc = eval ("_level0.temp" + next);
if (mc.hitTest(_level0._xmouse, _level0._ymouse, false)) {
trace("hit!");
if (next == 1) {
started = true;
with (_root.line) {
lineStyle(5, 16711935, 100);
moveTo(_level0._xmouse, _level0._ymouse);
}
}
if (next == 16) {
with (_root.line) {
lineStyle(5, 16711935, 100);
lineTo(_level0._xmouse, _level0._ymouse);
_level0.pen._x = _level0._xmouse;
_level0.pen._y = _level0._ymouse;
_level0.pen._alpha = 40;
}
done = true;
_level0.timmy.is_running = false;
Mouse.show();
total_time = _level0.timmy.final + (errors * 10);
_level0.total = total_time;
_level0.result = (((("Time : " + _level0.timmy.final) + " - Time Penalty = ") + errors) + " (x10s) - Total : ") + total_time;
_level0.gotoAndPlay("finished");
}
mc.gotoAndPlay("done");
next++;
}
if ((!done) and (next > 1)) {
i = 1;
while (i <= 16) {
if ((i != next) and (i != (next - 1))) {
xmc = eval ("_level0.temp" + i);
if (xmc.hitTest(_level0._xmouse, _level0._ymouse, false)) {
trace("BAD!");
if (bad[i] == 0) {
bad[i] = 1;
errors++;
trace("BAD>...." + errors);
xmc.gotoAndStop("bad");
}
}
}
i++;
}
}
if (!done) {
_level0.pen._x = _level0._xmouse;
_level0.pen._y = _level0._ymouse;
}
if (started and (!done)) {
with (_root.line) {
lineStyle(5, 16711935, 100);
lineTo(_level0._xmouse, _level0._ymouse);
}
}
}
Instance of Symbol 104 MovieClip "timmy" in Frame 228
onClipEvent (load) {
is_running = true;
start = getTimer();
mytime = 0;
}
onClipEvent (enterFrame) {
if (is_running == 1) {
mytime = (getTimer() - start) / 1000;
final = int(mytime * 100) / 100;
raw = int(mytime);
if (raw != lasttime) {
time = raw;
} else {
lasttime = raw;
}
} else {
time = final;
}
}
Instance of Symbol 106 MovieClip "pb" in Frame 228
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 76 MovieClip "game_cooky" in Frame 228
onClipEvent (load) {
function write_game_cookie(game_id, f1, f2, f3, f4, f5, f6, f7, f8) {
name = "game" + game_id;
so = SharedObject.getLocal(name, "/");
trace("writing cookie......name : " + game_id);
so.data.game_id = game_id;
so.data.f1 = f1;
so.data.f2 = f2;
so.data.f3 = f3;
so.data.f4 = f4;
so.data.f5 = f5;
so.data.f6 = f6;
so.data.f7 = f7;
so.data.f8 = f8;
so.data.f9 = f9;
trace("f6..." + f6);
trace("f7..." + f7);
trace("f8..." + f8);
so.flush();
}
function read_game_cookie(game_id) {
name = "game" + game_id;
so = SharedObject.getLocal(name, "/");
if (so.data.game_id == null) {
result = false;
trace("no cookie....");
} else {
trace("cookie....");
result = true;
trace("reading cookie....");
_level0.checker = so.data.game_id;
_level0.f1 = so.data.f1;
_level0.f2 = so.data.f2;
_level0.f3 = so.data.f3;
_level0.f4 = so.data.f4;
_level0.f5 = so.data.f5;
_level0.f6 = so.data.f6;
_level0.f7 = so.data.f7;
_level0.f8 = so.data.f8;
_level0.f9 = so.data.f9;
}
return(result);
}
_visible = true;
}
Frame 236
remove_line();
cs = _level0.total;
_level0.acct = _level0.acct + cs;
_level0.rota[_level0.level] = cs;
if (_level0.level == 4) {
_level0.all_time_best = false;
if (_level0.acct <= _level0.cookie_best) {
_level0.cookie_best = _level0.acct;
_level0.all_time_best = true;
}
}
trace("best was..." + _level0["cookie_best" + _level0.level]);
trace("this..." + cs);
if (cs <= _level0["cookie_best" + _level0.level]) {
trace("BEST!!!!");
_level0["cookie_best" + _level0.level] = cs;
_level0.pb._visible = true;
_level0.pb.gotoAndPlay(2);
}
_level0.game_cooky.write_game_cookie(_level0.game_id, _level0.cookie_best1, _level0.cookie_best2, _level0.cookie_best3, _level0.cookie_best4, _level0.cookie_best5, _level0.cookie_best, _level0.cookie_played, _level0.cookie_completed);
_level0.get_cookie_txt();
_level0.game_cooky._visible = true;
stop();
Frame 242
level = start_level + 1;
remove_cs();
gotoAndPlay (213);
Frame 243
start_level = level;
b1.gotoAndStop(1);
b2.gotoAndStop(2);
b3.gotoAndStop(3);
b4.gotoAndStop(4);
b5.gotoAndStop(5);
stop();
Instance of Symbol 133 MovieClip "b1" in Frame 243
onClipEvent (load) {
}
onClipEvent (mouseDown) {
if (this.hitTest(_level0._xmouse, _level0._ymouse, false)) {
trace("pressed " + _name);
_level0.control.pressed(_name);
}
}
Instance of Symbol 133 MovieClip "b2" in Frame 243
onClipEvent (load) {
}
onClipEvent (mouseDown) {
if (this.hitTest(_level0._xmouse, _level0._ymouse, false)) {
trace("pressed " + _name);
_level0.control.pressed(_name);
}
}
Instance of Symbol 133 MovieClip "b3" in Frame 243
onClipEvent (load) {
}
onClipEvent (mouseDown) {
if (this.hitTest(_level0._xmouse, _level0._ymouse, false)) {
trace("pressed " + _name);
_level0.control.pressed(_name);
}
}
Instance of Symbol 133 MovieClip "b4" in Frame 243
onClipEvent (load) {
}
onClipEvent (mouseDown) {
if (this.hitTest(_level0._xmouse, _level0._ymouse, false)) {
trace("pressed " + _name);
_level0.control.pressed(_name);
}
}
Instance of Symbol 133 MovieClip "b5" in Frame 243
onClipEvent (load) {
}
onClipEvent (mouseDown) {
if (this.hitTest(_level0._xmouse, _level0._ymouse, false)) {
trace("pressed " + _name);
_level0.control.pressed(_name);
}
}
Instance of Symbol 135 MovieClip "control" in Frame 243
onClipEvent (load) {
function pressed(buin) {
if (state == "await_answer") {
if (first) {
xscale = _level0.b1._xscale;
yscale = _level0.b1._yscale;
first = false;
}
trace((("BUTT " + buin) + " ") + xscale);
eval ("_level0." + buin)._xscale = 1.1 * xscale;
eval ("_level0." + buin)._yscale = 1.1 * yscale;
my_ans = buin;
state = "check_answer";
}
}
press = 0;
state = "init";
first = true;
maxq = 15;
qnum = 0;
errors = 0;
}
onClipEvent (enterFrame) {
show_text = new array("blank", "RED", "YELLOW", "BLACK", "BLUE", "GREEN");
answer_map = new array();
answer_map.b1 = 1;
answer_map.b2 = 2;
answer_map.b3 = 3;
answer_map.b4 = 4;
answer_map.b5 = 5;
_level0.diag = state;
if (state == "init") {
qnum++;
_level0.qtxt = (qnum + " of ") + maxq;
count = 0;
state = "wait";
correct = random(5) + 1;
} else if (state == "wait") {
_level0.question.text = "";
count++;
if (count == 10) {
if (!first) {
i = 1;
while (i <= 5) {
eval ("_level0.b" + i)._xscale = xscale;
eval ("_level0.b" + i)._yscale = yscale;
i++;
}
}
}
if (count > 20) {
state = "question";
}
} else if (state == "question") {
_level0.question.gotoAndStop(correct);
_level0.question.text = show_text[correct];
_level0.question._x = random(350) + 100;
_level0.question._y = random(100) + 350;
state = "await_answer";
} else if (state == "await_answer") {
} else if (state == "check_answer") {
if (correct == answer_map[my_ans]) {
trace("YEP!!");
} else {
trace("NOT YEP!!");
errors++;
}
if (qnum < maxq) {
state = "init";
} else {
state = "done";
_level0.timmy.is_running = false;
_level0.question.text = "";
total_time = _level0.timmy.final + (errors * 5);
_level0.total = total_time;
_level0.result = (((("Time : " + _level0.timmy.final) + " - Time Penalty = ") + errors) + " (x5s) - Total : ") + total_time;
_level0.gotoAndPlay("finc");
}
}
}
Instance of Symbol 142 MovieClip "question" in Frame 243
onClipEvent (load) {
text = "";
}
Instance of Symbol 104 MovieClip "timmy" in Frame 243
onClipEvent (load) {
is_running = true;
start = getTimer();
mytime = 0;
}
onClipEvent (enterFrame) {
if (is_running == 1) {
mytime = (getTimer() - start) / 1000;
final = int(mytime * 100) / 100;
raw = int(mytime);
if (raw != lasttime) {
time = raw;
} else {
lasttime = raw;
}
} else {
time = final;
}
}
Instance of Symbol 106 MovieClip "pb" in Frame 243
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 76 MovieClip "game_cooky" in Frame 243
onClipEvent (load) {
function write_game_cookie(game_id, f1, f2, f3, f4, f5, f6, f7, f8) {
name = "game" + game_id;
so = SharedObject.getLocal(name, "/");
trace("writing cookie......name : " + game_id);
so.data.game_id = game_id;
so.data.f1 = f1;
so.data.f2 = f2;
so.data.f3 = f3;
so.data.f4 = f4;
so.data.f5 = f5;
so.data.f6 = f6;
so.data.f7 = f7;
so.data.f8 = f8;
so.data.f9 = f9;
trace("f6..." + f6);
trace("f7..." + f7);
trace("f8..." + f8);
so.flush();
}
function read_game_cookie(game_id) {
name = "game" + game_id;
so = SharedObject.getLocal(name, "/");
if (so.data.game_id == null) {
result = false;
trace("no cookie....");
} else {
trace("cookie....");
result = true;
trace("reading cookie....");
_level0.checker = so.data.game_id;
_level0.f1 = so.data.f1;
_level0.f2 = so.data.f2;
_level0.f3 = so.data.f3;
_level0.f4 = so.data.f4;
_level0.f5 = so.data.f5;
_level0.f6 = so.data.f6;
_level0.f7 = so.data.f7;
_level0.f8 = so.data.f8;
_level0.f9 = so.data.f9;
}
return(result);
}
_visible = true;
}
Frame 254
cs = _level0.total;
_level0.acct = _level0.acct + cs;
_level0.rota[_level0.level] = cs;
if (_level0.level == 4) {
_level0.all_time_best = false;
if (_level0.acct <= _level0.cookie_best) {
_level0.cookie_best = _level0.acct;
_level0.all_time_best = true;
}
}
trace("best was..." + _level0["cookie_best" + _level0.level]);
trace("this..." + cs);
if (cs <= _level0["cookie_best" + _level0.level]) {
trace("BEST!!!!");
_level0["cookie_best" + _level0.level] = cs;
_level0.pb._visible = true;
_level0.pb.gotoAndPlay(2);
}
_level0.game_cooky.write_game_cookie(_level0.game_id, _level0.cookie_best1, _level0.cookie_best2, _level0.cookie_best3, _level0.cookie_best4, _level0.cookie_best5, _level0.cookie_best, _level0.cookie_played, _level0.cookie_completed);
_level0.get_cookie_txt();
_level0.game_cooky._visible = true;
stop();
Frame 262
level = start_level + 1;
gotoAndPlay (213);
Frame 263
message = "";
stop();
Instance of Symbol 135 MovieClip "control" in Frame 263
onClipEvent (load) {
function enter(my_guess) {
if (state == "question") {
guesses++;
if (total == my_guess) {
state = "done";
_level0.message = "CORRECT!";
_level0.timmy.is_running = false;
trace("timer..." + _level0.timmy.final);
total_time = _level0.timmy.final + (errors * 20);
_level0.total = total_time;
_level0.result = (((("Time : " + _level0.timmy.final) + " - Time Penalty = ") + errors) + " (x20s) - Total : ") + total_time;
_level0.gotoandplay("fin4");
} else {
_level0.message = "WRONG!";
errors++;
}
}
}
function count_vowels(str_in, l1, l2) {
count = 0;
str_in = str_in.toLowerCase();
i = 0;
while (i < str_in.length) {
char = str_in.charAt(i);
if ((char == l1) or (char == l2)) {
count++;
}
i++;
}
return(count);
}
guesses = 0;
state = "init";
line = new array();
line[1] = "My fair Lady.";
line[2] = "My fair Lady.";
line[3] = "We are so proud";
line[4] = "We are so proud";
line[5] = "We are so proud";
line[6] = "Old Mother Hubbard";
line[7] = "When she got there";
line[8] = "Went to the cupboard";
line[9] = "Marching on together";
line[10] = "We shout it out loud";
line[11] = "Marching on together";
line[12] = "We shout it out loud";
line[13] = "We shout it out loud";
line[14] = "The cupboard was bare";
line[15] = "Into a meadow hard by,";
line[16] = "As a shepherdess should ";
line[17] = "We`re gonna see you win ";
line[18] = "We`re gonna see you win ";
line[19] = "As fast as he could caper";
line[20] = "And tried what she could ";
line[21] = " Said the Piggy,\"I will\"";
line[22] = "Eating his Christmas pie ";
line[23] = "All hung on a tree to dry.";
line[24] = "Falling down,falling down ";
line[25] = "This little piggy had none.";
line[26] = "And sang to a small guitar ";
line[27] = "Determined for to find them.";
line[28] = "Here we go with Leeds United";
line[29] = "Wood and clay,wood and clay ";
line[30] = "The cow jumped over the moon.";
line[31] = "And Jill came tumbling after.";
line[32] = "London Bridge is falling down ";
line[33] = "London Bridge is falling down ";
line[34] = "With vinegar and brown paper. ";
line[35] = "To get her poor doggie a bone ";
line[36] = "And this little piggy went... ";
line[37] = "In a beautiful pea-green boat ";
line[38] = "How charmingly sweet you sing.";
line[39] = "Every day,we`re all gonna say";
line[40] = "Every day,we`re all gonna say";
line[41] = "Build it up with wood and clay ";
line[42] = "Build it up with wood and clay ";
line[43] = "Up got Jack,and home did trot ";
line[44] = "Little Bo peep fell fast asleep";
line[45] = "Wee wee wee all the way home... ";
line[46] = "Wrapped up in a five pound note.";
line[47] = "And said 'What a good boy am I!'";
line[48] = "We`re gonna give the boys a hand";
line[49] = "Everywhere,we`re gonna be there";
line[50] = "Everywhere,we`re gonna be there";
line[51] = "He went to bed and bound his head";
line[52] = "This little piggy went to market ";
line[53] = "This little piggy stayed at home ";
line[54] = "This little piggy had roast beef ";
line[55] = "Little Bo peep has lost her sheep";
line[56] = "Bringing their tails behind them.";
line[57] = "For they were all still fleeting.";
line[58] = "Then up she took her little crook";
line[59] = "But what shall we do for a ring?";
line[60] = "They are the greatest in the land";
line[61] = "We love you Leeds - Leeds - Leeds";
line[62] = "We love you Leeds - Leeds - Leeds";
line[63] = "We love you Leeds - Leeds - Leeds";
line[64] = "And we`ve had our up`s and down`s";
line[65] = "We`re gonna stay with you forever";
line[66] = "We love you Leeds - Leeds - Leeds";
line[67] = "We love you Leeds - Leeds - Leeds";
line[68] = "We love you Leeds - Leeds - Leeds";
line[69] = "We love you Leeds - Leeds - Leeds";
line[70] = "How many were going to St. Ives? ";
line[71] = "Yes sir,yes sir,three bags full!";
line[72] = "Jack fell down and broke his crown";
line[73] = "Ride a cock horse to Banbury Cross";
line[74] = "To tack again each to its lambkin.";
line[75] = "Stand up and sing for Leeds United";
line[76] = "We`ve been through it all together";
line[77] = "And dreamt she heard them bleating ";
line[78] = "With a ring at the end of his nose.";
line[79] = "So the poor little doggie had none. ";
line[80] = "And doesn`t know where to find them.";
line[81] = "And over the hillocks went rambling ";
line[82] = "The Owl and the Pussycat went to sea";
line[83] = "By the Turkey who lives on the hill.";
line[84] = "Little Jack Horner sat in the corner";
line[85] = "One for the master,one for the dame ";
line[86] = "And the dish ran away with the spoon!";
line[87] = "To see a fine lady upon a white horse";
line[88] = "She heaved a sigh,and wiped her eye ";
line[89] = "The Owl looked up to the stars above ";
line[90] = "And there in a wood a Piggy-wig stood";
line[91] = "Which they ate with a runcible spoon.";
line[92] = "And he called for his fiddlers three.";
line[93] = "The little dog laughed to see such fun";
line[94] = "For they left their tails behind them.";
line[95] = "To the land where the Bong-tree grows ";
line[96] = "They danced by the light of the moon. ";
line[97] = "Oh there`s none so rare as can compare";
line[98] = "Baa baa black sheep,have you any wool?";
line[99] = "She shall have music wherever she goes ";
line[100] = "Itsy Bitsy spider climbing up the spout";
line[101] = "Leave them alone and they`ll come home ";
line[102] = "They sailed away,for a year and a day ";
line[103] = "With King Cole and his fiddlers three. ";
line[104] = "But when she awoke,she found it a joke ";
line[105] = "It happened one day,as Bo peep did stray";
line[106] = "There she espied their tails side by side";
line[107] = "Pussy said to the Owl \"You elegant fowl\" ";
line[108] = "He put in his thumb and pulled out a plum";
line[109] = "Hey diddle diddle,the cat and the fiddle ";
line[110] = "Out came the sun and dried up all the rain";
line[111] = "They took some honey,and plenty of money ";
line[112] = "They dined on mince,and slices of quince ";
line[113] = "And hand in hand,on the edge of the sand.";
line[114] = "At least until the world stops going `round";
line[115] = "Down came the rain and washed the spider out";
line[116] = "Now Itsy Bitsy spider went up the spout again!";
line[117] = "O let us be married,too long we have tarried;";
line[118] = "With rings on her fingers and bells on her toes";
line[119] = "So they took it away,and were married next day";
line[120] = "And waited patiently about till Mary did appear.";
line[121] = "He called for his pipe in the middle of the night";
line[122] = "She found them indeed,but it made her heart bleed ";
line[123] = "And one for the little boy who lives down the lane. ";
line[124] = "Mary had a little lamb its fleece was white as snow;";
line[125] = "Each wife had seven sacks,each sack had seven cats ";
line[126] = "Each cat had seven kits: kits,cats,sacks and wives ";
line[127] = "Up above the world so high, like a diamond in the sky";
line[128] = "Jack and Jill went up the hill to fetch a pail of water";
line[129] = "Twinkle twinkle little star,how I wonder what you are?";
line[130] = "And everywhere that Mary went,the lamb was sure to go.";
line[131] = "Why does the lamb love Mary so? the eager children cry;";
line[132] = "With a ring at the end of his nose,his nose,his nose ";
line[133] = "As I was going to St. Ives I met a man with seven wives ";
line[134] = "For you never shut your eye,`till the sun is in the sky.";
line[135] = "Why,Mary loves the lamb,you know the teacher did reply.";
line[136] = "They danced by the light of the moon,the moon,the moon ";
line[137] = "When the blazing sun is gone,when he nothing shines upon ";
line[138] = "He could not see which way to go,if you did not twinkle so.";
line[139] = "It made the children laugh and play,to see a lamb at school.";
line[140] = "And so the teacher turned it out,but still it lingered near ";
line[141] = "Dear Pig,are you willing to sell for one shilling your ring?";
line[142] = "Though I know not what you are - twinkle,twinkle little star.";
line[143] = "It followed her to school one day,which was against the rule;";
line[144] = "Then the traveller in the dark,thanks you for your tiny spark ";
line[145] = "As your bright and tiny spark lights the traveller in the dark ";
line[146] = "Every fiddler had a fine fiddle,and a very fine fiddle had he;";
line[147] = "Then you show your little light,twinkle,twinkle all the night.";
line[148] = "Old King Cole was a merry old soul,and a merry old soul was he;";
line[149] = "In the dark blue sky you keep,and often through my curtains peep ";
trace("max lin..." + line.length);
pick = new array();
block = new array();
}
onClipEvent (enterFrame) {
if (state == "init") {
vowels = new array("", "a", "e", "i", "o", "u");
i = 1;
while (i <= 100) {
x1 = random(5) + 1;
x2 = random(5) + 1;
temp = vowels[x1];
vowels[x1] = vowels[x2];
vowels[x2] = temp;
i++;
}
letter1 = vowels[1];
letter2 = vowels[2];
_level0.task = ((("Count the total number of the letters " + letter1) + " and ") + letter2) + " in the following lines:-";
_level0.line1 = line[random(40) + 1];
_level0.line2 = line[random(40) + 41];
_level0.line3 = line[random(40) + 81];
_level0.line4 = line[random(29) + 121];
pick[1] = _level0.line1;
pick[2] = _level0.line2;
pick[3] = _level0.line3;
pick[4] = _level0.line4;
tot1 = count_vowels(pick[1], letter1, letter2);
tot2 = count_vowels(pick[2], letter1, letter2);
tot3 = count_vowels(pick[3], letter1, letter2);
tot4 = count_vowels(pick[4], letter1, letter2);
total = ((tot1 + tot2) + tot3) + tot4;
trace("total = " + total);
state = "wait";
} else if (state == "wait") {
count++;
if (count > 20) {
state = "question";
}
} else if (state == "question") {
}
}
Instance of Symbol 104 MovieClip "timmy" in Frame 263
onClipEvent (load) {
is_running = true;
start = getTimer();
mytime = 0;
}
onClipEvent (enterFrame) {
if (is_running == 1) {
mytime = (getTimer() - start) / 1000;
final = int(mytime * 100) / 100;
raw = int(mytime);
if (raw != lasttime) {
time = raw;
} else {
lasttime = raw;
}
} else {
time = final;
}
}
Instance of Symbol 76 MovieClip "game_cooky" in Frame 263
onClipEvent (load) {
function write_game_cookie(game_id, f1, f2, f3, f4, f5, f6, f7, f8) {
name = "game" + game_id;
so = SharedObject.getLocal(name, "/");
trace("writing cookie......name : " + game_id);
so.data.game_id = game_id;
so.data.f1 = f1;
so.data.f2 = f2;
so.data.f3 = f3;
so.data.f4 = f4;
so.data.f5 = f5;
so.data.f6 = f6;
so.data.f7 = f7;
so.data.f8 = f8;
so.data.f9 = f9;
trace("f6..." + f6);
trace("f7..." + f7);
trace("f8..." + f8);
so.flush();
}
function read_game_cookie(game_id) {
name = "game" + game_id;
so = SharedObject.getLocal(name, "/");
if (so.data.game_id == null) {
result = false;
trace("no cookie....");
} else {
trace("cookie....");
result = true;
trace("reading cookie....");
_level0.checker = so.data.game_id;
_level0.f1 = so.data.f1;
_level0.f2 = so.data.f2;
_level0.f3 = so.data.f3;
_level0.f4 = so.data.f4;
_level0.f5 = so.data.f5;
_level0.f6 = so.data.f6;
_level0.f7 = so.data.f7;
_level0.f8 = so.data.f8;
_level0.f9 = so.data.f9;
}
return(result);
}
_visible = true;
}
Instance of Symbol 106 MovieClip "pb" in Frame 263
onClipEvent (load) {
_visible = false;
}
Frame 273
cs = _level0.total;
_level0.acct = _level0.acct + cs;
_level0.rota[_level0.level] = cs;
if (_level0.level == 4) {
_level0.all_time_best = false;
if (_level0.acct <= _level0.cookie_best) {
_level0.cookie_best = _level0.acct;
_level0.all_time_best = true;
trace("ALL TIME BEST! " + all_time_best);
}
}
trace("best was..." + _level0["cookie_best" + _level0.level]);
trace("this..." + cs);
if (cs <= _level0["cookie_best" + _level0.level]) {
trace("BEST!!!!");
_level0["cookie_best" + _level0.level] = cs;
_level0.pb._visible = true;
_level0.pb.gotoAndPlay(2);
}
_level0.game_cooky.write_game_cookie(_level0.game_id, _level0.cookie_best1, _level0.cookie_best2, _level0.cookie_best3, _level0.cookie_best4, _level0.cookie_best5, _level0.cookie_best, _level0.cookie_played, _level0.cookie_completed);
_level0.get_cookie_txt();
_level0.game_cooky._visible = true;
_level0.eve = _level0.rotat - _level0.rota[1];
_level0.vel = _level0.rota[2] + _level0.rotat;
_level0.leve = _level0.rota[3] + (_level0.rotat * 2);
_level0.tation = 200 - _level0.rota[4];
stop();
Frame 283
players = "";
command = "update";
bo = "ta";
sct1 = _level0.rota[1];
sct2 = _level0.rota[2];
sct3 = _level0.rota[3];
sct4 = _level0.rota[4];
Instance of Symbol 106 MovieClip "pb" in Frame 283
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 76 MovieClip "game_cooky" in Frame 283
onClipEvent (load) {
function write_game_cookie(game_id, f1, f2, f3, f4, f5, f6, f7, f8) {
name = "game" + game_id;
so = SharedObject.getLocal(name, "/");
trace("writing cookie......name : " + game_id);
so.data.game_id = game_id;
so.data.f1 = f1;
so.data.f2 = f2;
so.data.f3 = f3;
so.data.f4 = f4;
so.data.f5 = f5;
so.data.f6 = f6;
so.data.f7 = f7;
so.data.f8 = f8;
so.data.f9 = f9;
trace("f6..." + f6);
trace("f7..." + f7);
trace("f8..." + f8);
so.flush();
}
function read_game_cookie(game_id) {
name = "game" + game_id;
so = SharedObject.getLocal(name, "/");
if (so.data.game_id == null) {
result = false;
trace("no cookie....");
} else {
trace("cookie....");
result = true;
trace("reading cookie....");
_level0.checker = so.data.game_id;
_level0.f1 = so.data.f1;
_level0.f2 = so.data.f2;
_level0.f3 = so.data.f3;
_level0.f4 = so.data.f4;
_level0.f5 = so.data.f5;
_level0.f6 = so.data.f6;
_level0.f7 = so.data.f7;
_level0.f8 = so.data.f8;
_level0.f9 = so.data.f9;
}
return(result);
}
_visible = true;
}
Frame 284
_level0.get_cookie_txt();
trace("ALL TIME BEST! " + all_time_best);
if (all_time_best) {
pb._visible = true;
pb.gotoAndPlay(2);
}
stop();
Symbol 7 MovieClip Frame 1
doneLoading = 0;
stop();
Instance of Symbol 3 MovieClip "bkgd" in Symbol 7 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.doneLoading == 0) {
total = _parent._parent.getBytesTotal();
isloaded = _parent._parent.getBytesLoaded();
p = 100 * (isLoaded / total);
_parent.bytes = ((int(isloaded / 1000) add " KB of ") add int(total / 1000)) add " KB";
_parent.percent = int(p) add "% LOADED";
_parent.bar._xscale = p;
trace("....." + Number(p));
if (Number(p) >= Number(100)) {
_parent._parent.gotoAndPlay(Number(2));
_parent.gotoAndStop("off");
_parent.doneLoading = 1;
} else {
_parent._parent.gotoAndPlay(Number(1));
}
}
}
Symbol 13 MovieClip Frame 7
gotoAndPlay (1);
Symbol 16 MovieClip Frame 32
gotoAndPlay (1);
Symbol 19 MovieClip Frame 7
gotoAndPlay (1);
Symbol 25 MovieClip Frame 1
Symbol 25 MovieClip Frame 19
stop();
Symbol 39 MovieClip Frame 36
gotoAndPlay (1);
Symbol 45 Button
on (release, keyPress "<Enter>") {
play();
}
Symbol 54 Button
on (release) {
getURL ("http://www.mousebreaker.com/index.php?cdgtid=brain", "_self");
}
Symbol 76 MovieClip Frame 1
stop();
Symbol 87 MovieClip Frame 1
stop();
Symbol 87 MovieClip Frame 2
stop();
Symbol 91 Button
on (release, keyPress "<Enter>") {
control.enter();
}
Symbol 96 Button
on (release) {
trace(this._name.charAt(4));
if (this._name.charAt(4) != "c") {
val = Number(this._name.charAt(4));
} else {
val = "c";
}
_level0.control.addnum(val);
}
Symbol 98 MovieClip Frame 1
stop();
Symbol 98 MovieClip Frame 2
stop();
Symbol 106 MovieClip Frame 1
stop();
Symbol 106 MovieClip Frame 20
gotoAndPlay (2);
Symbol 116 Button
on (release) {
_level0.gotoandplay("end1");
}
Symbol 121 MovieClip Frame 1
stop();
Symbol 121 MovieClip Frame 2
stop();
Symbol 121 MovieClip Frame 3
stop();
Symbol 121 MovieClip Frame 5
stop();
Symbol 126 Button
on (release) {
_level0.gotoandplay("end");
}
Symbol 133 MovieClip Frame 1
stop();
Symbol 133 MovieClip Frame 2
stop();
Symbol 133 MovieClip Frame 3
stop();
Symbol 133 MovieClip Frame 4
stop();
Symbol 133 MovieClip Frame 5
stop();
Symbol 142 MovieClip Frame 1
stop();
Symbol 142 MovieClip Frame 2
stop();
Symbol 142 MovieClip Frame 3
stop();
Symbol 142 MovieClip Frame 4
stop();
Symbol 142 MovieClip Frame 5
stop();
Symbol 146 Button
on (release) {
_level0.gotoandplay("donec");
}
Symbol 151 Button
on (release, keyPress "<Enter>") {
control.enter(guess);
}
Symbol 159 Button
on (release) {
_level0.gotoandplay("done4");
}
Symbol 162 Button
on (release) {
gotoAndStop (211);
}