Frame 3
gotoAndPlay (5);
Frame 5
disable_check = true;
myURL = _url;
okDomain = "www.mousebreaker.";
okDomain1 = "147.202.48.51";
okDomain2 = "147.202.48.52";
okDomain3 = "147.202.48.53";
okDomain4 = "stotty";
if (((((((myURL.indexOf(okDomain2) != -1) or (myURL.indexOf(okDomain4) != -1)) or (myURL.indexOf(okDomain3) != -1)) or (myURL.indexOf(okDomain1) != -1)) or (myURL.indexOf(okDomain) != -1)) or disable_check) or keyh) {
play();
} else {
gotoAndStop (4);
}
timestart = getTimer();
Frame 98
gotoAndPlay (100);
Frame 99
level = 0;
acct = 0;
_level0.rotat = random(2200);
rota = new array();
stopAllSounds();
stop();
Frame 114
level = 0;
acct = 0;
_level0.rotat = random(2200);
rota = new array();
stopAllSounds();
stop();
Frame 115
level++;
max_levels = 3;
level_time = new array();
level_time[1] = 60;
level_time[2] = 60;
level_time[3] = 60;
limit = level_time[level];
task = new array();
task[1] = "LEVEL 1. Listen very carefully to my instructions and park the car accordingly.";
task[2] = "LEVEL 2. So far, so good. Drive into that car park over there and listen carefully...";
task[3] = "LEVEL 3. Right, now we'll see how you cope turning the car in a busy road.";
task_txt = task[level];
limit_txt = "";
Instance of Symbol 99 MovieClip "game_cooky" in Frame 115
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 116
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 = "p3Lite_1";
exists = game_cooky.read_game_cookie(game_id);
trace((("game " + game_id) + " ") + exists);
not_yet_done = -1;
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;
cookie_played = f7;
cookie_completed = f8;
trace("****READ****");
trace("cookie_best1 " + cookie_best1);
trace("****ENDREAD****");
get_cookie_txt();
stop();
Frame 117
if (level == 1) {
cookie_played++;
}
trace("played " + cookie_played);
game_cooky.write_game_cookie(game_id, cookie_best1, cookie_best2, cookie_best3, cookie_best4, cookie_best5, cookie_best, cookie_played, cookie_completed);
Frame 120
function draw() {
if (!block) {
t++;
if (_level0.car.rangle == 0) {
_level0.car.rangle = 0.000174555555555556;
R = _level0.car.L / Math.sin(_level0.car.rangle);
} else {
R = _level0.car.L / Math.sin(_level0.car.rangle);
}
angle_needed = ((2 * speed) * 360) / (6.284 * R);
turn = angle_needed;
rangle = _level0.car.rangle;
x1 = _level0.car._x;
y1 = _level0.car._y;
circle_x = x1 + (R * Math.cos((3.142 * _level0.car._rotation) / 180));
circle_y = y1 + (R * Math.sin((3.142 * _level0.car._rotation) / 180));
tx1 = x1 - circle_x;
ty1 = y1 - circle_y;
vx = tx1;
vy = ty1;
delta = ((-turn) * 3.142) / 180;
tick_x = (vx * math.cos(delta)) + (vy * math.sin(delta));
tick_y = (vy * math.cos(delta)) - (vx * math.sin(delta));
tick_x = tick_x + circle_x;
tick_y = tick_y + circle_y;
if (((last_R > 0) and (R < 0)) or ((last_R < 0) and (R > 0))) {
trace("**********************");
trace("t=" + t);
trace("rangle " + _level0.car.rangle);
trace((("dangle " + _level0.car.dangle) + " last ") + last_d);
trace("angle needed " + angle_needed);
trace(" dist = " + math.sqrt((((x1 - tick_x) * (x1 - tick_x)) * (y1 - tick_y)) * (y1 - tick_y)));
trace((("R=" + R) + " last=") + last_r);
trace("car rot = " + _level0.car._rotation);
trace((("x1/y1 " + x1) + " ") + y1);
trace((("circle x1/y1 " + circle_x) + " ") + circle_y);
trace("turn..." + turn);
trace((("new pos x1/y1 " + tick_x) + " ") + tick_y);
trace("**********************");
} else {
dist = math.sqrt((((x1 - tick_x) * (x1 - tick_x)) * (y1 - tick_y)) * (y1 - tick_y));
if (dist < 100) {
_level0.car._x = tick_x;
_level0.car._y = tick_y;
} else {
trace("**********************");
trace("t=" + t);
trace("rangle " + _level0.car.rangle);
trace((("dangle " + _level0.car.dangle) + " last ") + last_d);
trace("angle needed " + angle_needed);
trace("BAD dist = " + math.sqrt((((x1 - tick_x) * (x1 - tick_x)) * (y1 - tick_y)) * (y1 - tick_y)));
trace((("R=" + R) + " last=") + last_r);
trace("car rot = " + _level0.car._rotation);
trace((("x1/y1 " + x1) + " ") + y1);
trace((("circle x1/y1 " + circle_x) + " ") + circle_y);
trace("turn..." + turn);
trace((("new pos x1/y1 " + tick_x) + " ") + tick_y);
trace("**********************");
}
_level0.car._rotation = _level0.car._rotation + turn;
}
last_R = R;
last_D = _level0.car.dangle;
}
}
count = 1;
block = false;
t = 0;
trace("geezer._x " + geezer._x);
Instance of Symbol 99 MovieClip "game_cooky" in Frame 120
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 = false;
}
Instance of Symbol 125 MovieClip "timer" in Frame 120
onClipEvent (load) {
function start_timer() {
start = getTimer();
state = "running";
}
function stop_timer() {
finish = getTimer();
state = "stopped";
}
state = "idle";
timer_val = "00.0";
start_timer();
}
onClipEvent (enterFrame) {
if (state == "running") {
time_now = getTimer();
duration = (time_now - start) / 1000;
timer_val = int(duration * 10) / 10;
if (timer_val != last_timer_val) {
timer_val_txt = timer_val;
if (timer_val == int(timer_val)) {
timer_val_txt = timer_val_txt + ".0";
}
_level0.acct_txt = _level0.acct + timer_val;
if ((_level0.acct + timer_val) == int(_level0.acct + timer_val)) {
_level0.acct_txt = _level0.acct_txt + ".0";
}
}
last_timer_val = timer_val;
}
}
Instance of Symbol 135 MovieClip "pb" in Frame 120
onClipEvent (load) {
_visible = false;
}
Frame 121
carstart1._visible = false;
carstart2._visible = false;
carstart3._visible = false;
carstart4._visible = false;
carstart5._visible = false;
if (level == 1) {
gotoAndPlay (125);
}
if (level == 2) {
gotoAndPlay (132);
}
if (level == 3) {
gotoAndPlay (138);
}
if (level == 4) {
gotoAndPlay (120);
}
if (level == 5) {
gotoAndPlay (120);
}
trace("LEVEL = " + level);
Instance of Symbol 157 MovieClip "car" in Frame 121
onClipEvent (load) {
function perform_new_state(level_in, substate_i) {
if (level_in == 1) {
final_substate = 2;
if (substate_i == 1) {
text = "Please pull up at point A and wait for further instructions";
current_zone = 1;
bad_direction = "down";
_level0.zone1._visible = true;
_level0.zone2._visible = false;
}
if (substate_i == 2) {
text = "Please reverse around the corner, keeping reasonable close to the kerb and stop at point B";
current_zone = 2;
bad_direction = "up";
_level0.zone1._visible = false;
_level0.zone2._visible = true;
}
if (substate_i == 3) {
trace("level 1 - " + _rotation);
_level0.accuracy = _level0.accuracy - (3 * Math.floor(Math.abs(90 - _rotation)));
text = ("You made it! Your accuracy was " + _level0.accuracy) + "%";
text = ((((text + "\r") + "\r") + "You took ") + _level0.timer.timer_val) + " s";
this_score = int((time_lim - _level0.timer.timer_val) * _level0.accuracy);
text = ((((text + "\r") + "\r") + "That's ") + this_score) + " points.";
_level0.zone1._visible = false;
_level0.zone2._visible = false;
}
}
if (level_in == 2) {
final_substate = 1;
if (substate_i == 1) {
text = "Please reverse into the Bay marked A. Be aware of other road users.";
current_zone = 1;
bad_direction = "up";
_level0.zone1._visible = true;
_level0.zone2._visible = false;
}
if (substate_i == 2) {
trace("level 2 - " + _rotation);
_level0.accuracy = _level0.accuracy - (3 * Math.floor(Math.abs(90 - _rotation)));
text = ("You made it! Your accuracy was " + _level0.accuracy) + "%";
text = ((((text + "\r") + "\r") + "You took ") + _level0.timer.timer_val) + " s";
this_score = int((time_lim - _level0.timer.timer_val) * _level0.accuracy);
text = ((((text + "\r") + "\r") + "That's ") + this_score) + " points.";
_level0.zone1._visible = false;
_level0.zone2._visible = false;
}
}
if (level_in == 3) {
final_substate = 1;
if (substate_i == 1) {
text = "Please turn the car round in a SAFE place to face the opposite way and stop in zone A ";
current_zone = 1;
bad_direction = "none";
_level0.zone1._visible = true;
_level0.zone2._visible = false;
}
if (substate_i == 2) {
trace("level 3 - " + _rotation);
_level0.accuracy = _level0.accuracy - (3 * int(Math.abs(180 - Math.abs(_rotation))));
text = ("You made it! Your accuracy was " + _level0.accuracy) + "%";
text = ((((text + "\r") + "\r") + "You took ") + _level0.timer.timer_val) + " s";
this_score = int((time_lim - _level0.timer.timer_val) * _level0.accuracy);
text = ((((text + "\r") + "\r") + "That's ") + this_score) + " points.";
_level0.zone1._visible = false;
_level0.zone2._visible = false;
}
}
if (level_in == 4) {
final_substate = 1;
if (substate_i == 1) {
text = "Please reverse parallel park your car in zone A ";
current_zone = 1;
bad_direction = "none";
_level0.zone1._visible = true;
_level0.zone2._visible = false;
}
if (substate_i == 2) {
trace("level 4 - " + _rotation);
_level0.accuracy = _level0.accuracy - (5 * Math.floor(Math.abs(-_rotation)));
text = ("You made it! Your accuracy was " + _level0.accuracy) + "%";
text = ((((text + "\r") + "\r") + "You took ") + _level0.timer.timer_val) + " s";
this_score = int((time_lim - _level0.timer.timer_val) * _level0.accuracy);
text = ((((text + "\r") + "\r") + "That's ") + this_score) + " points.";
_level0.zone1._visible = false;
_level0.zone2._visible = false;
}
}
if (level_in == 5) {
final_substate = 3;
if (substate_i == 1) {
text = "When I give the signal please stop the car safely and promptly USING THE SPACE BAR!";
bad_direction = "none";
}
if (substate_i == 2) {
text = "STOP!";
start_stop = getTimer();
bad_direction = "none";
}
if (substate_i == 3) {
text = ("Thankyou! Your accuracy was " + _level0.accuracy) + "%";
this_score = int(50 * _level0.accuracy);
text = ((((text + "\r") + "\r") + "That's ") + this_score) + " points.";
_level0.zone1._visible = false;
_level0.zone2._visible = false;
}
}
_level0.geezer.text = text;
trace("************* DONE **** " + this_score);
_level0.rota[_level0.level] = this_score;
_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];
_level0.toand = 10 + _level0.rota[5];
}
function ok_position() {
answer = false;
ok1 = false;
ok2 = false;
if (level == 1) {
if (substate == 1) {
final_pos1 = "up";
final_pos2 = "dontcare";
}
if (substate == 2) {
final_pos1 = "side";
final_pos2 = "dontcare";
}
}
if (level == 2) {
final_pos1 = "side";
final_pos2 = "dontcare";
}
if (level == 3) {
final_pos1 = "down";
final_pos2 = "down";
}
if (level == 4) {
final_pos1 = "up";
final_pos2 = "up";
}
if (level == 5) {
final_pos1 = "NOTUSED";
final_pos2 = "NOTUSED";
}
if (((final_pos1 == "side") and (_rotation > 80)) and (_rotation < 100)) {
ok1 = true;
}
if ((((final_pos1 == "up") and (_rotation > -15)) and (_rotation < 15)) or (((final_pos1 == "down") and ((_rotation > 170) and (_rotation < 180))) or ((_rotation > -180) and (_rotation < -170)))) {
ok1 = true;
}
if ((((final_pos2 == "up") and (_rotation > -10)) and (_rotation < 10)) or (((final_pos2 == "down") and ((_rotation > 170) and (_rotation < 180))) or ((_rotation > -180) and (_rotation < -170)))) {
ok2 = true;
}
if (final_pos1 == "dontcare") {
ok1 = true;
}
if (final_pos2 == "dontcare") {
ok2 = false;
}
answer = ok1 or ok2;
return(answer);
}
last_sp = 0;
reverses = 0;
finished = false;
this_score = 0;
time_lim = _level0.level_time[_level0.level];
stops = 0;
trace("start..." + _level0["carstart" + _level0.level]._x);
trace("level..." + _level0.level);
xdx = this._x - _level0["carstart" + _level0.level]._x;
xdy = this._y - _level0["carstart" + _level0.level]._y;
this._x = _level0["carstart" + _level0.level]._x;
this._y = _level0["carstart" + _level0.level]._y;
trace("start..." + this._x);
_level0.engine.gotoandplay(2);
status = "playing";
got_time = false;
pi_div_180 = 0.0174555555555556;
substate = 1;
current_zone = 1;
cough_count = 0;
coughed = false;
emergency_stop = false;
emergency_stop_count = 0;
emergency_stop_pos = 100 + random(50);
cough_pos = random(int(emergency_stop_pos / 2)) + int(emergency_stop_pos / 4);
brake = false;
_level0.accuracy = 100;
bad_direction = "none";
_rotation = 0;
l = 100;
turn = 4;
dangle = 0;
MAXSPEED = 2;
acc = 0.2;
lim = 85;
cmax = 14;
other_cars_max = 14;
ang = new array();
cross_dx = new array();
cross_dy = new array();
mag = new array();
trace("START " + _level0["carstart" + _level0.level]._x);
j = 1;
while (j <= cmax) {
mov1 = eval ("_level0.cross" + j);
cross_dx[j] = (xdx + _level0["carstart" + _level0.level]._x) - mov1._x;
cross_dy[j] = (xdy + _level0["carstart" + _level0.level]._y) - mov1._y;
mag[j] = math.sqrt((cross_dx[j] * cross_dx[j]) + (cross_dy[j] * cross_dy[j]));
ang[j] = -90 + ((Math.atan2(cross_dy[j], cross_dx[j]) * 180) / 3.142);
mov1._visible = false;
j++;
}
perform_new_state(_level0.level, substate);
}
onClipEvent (enterFrame) {
if (_level0.accuracy < 0) {
_level0.accuracy = 0;
_level0.speed = 0;
status = "done";
_level0.result.gotoandplay("failed");
_level0.timer.stop_timer();
}
if (_level0.level == 5) {
if ((substate == 1) and (status != "done")) {
emergency_stop_count++;
if (emergency_stop_count > emergency_stop_pos) {
emergency_stop = true;
substate++;
perform_new_state(level, substate);
} else if ((emergency_stop_count > cough_pos) and (!coughed)) {
cough_count = 20;
coughed = true;
saved_text = _level0.geezer.text;
_level0.geezer.text = "Cough!";
_level0.cough.gotoandplay(2);
}
}
if ((substate == 1) and coughed) {
cough_count--;
if (cough_count <= 0) {
_level0.geezer.text = saved_text;
}
}
if (brake) {
if (substate == 2) {
if (!got_time) {
stopping = getTimer() - start_stop;
trace("STOPPING %= " + stopping);
stopping = (stopping - 370) / 5;
stopping = 100 - stopping;
if (stopping >= 100) {
stopping = 99 + (random(10) / 10);
}
if (stopping <= 0) {
stopping = 1;
}
trace("STOPPING %= " + stopping);
_level0.accuracy = stopping;
got_time = true;
}
tilespeed = tilespeed - 0.4;
if ((tilespeed <= 0) and (status != "done")) {
tilespeed = 0;
trace("done!");
_level0.result.gotoandplay("done");
_level0.timer.stop_timer();
perform_new_state(level, substate + 1);
status = "done";
}
}
if ((substate == 1) and (status != "done")) {
_level0.accuracy = 0;
status = "done";
_level0.result.gotoandplay("failed");
_level0.timer.stop_timer();
brake = false;
}
} else if (status != "done") {
tilespeed = 15;
temp_stopping = getTimer() - start_stop;
trace("STOPPING %= " + temp_stopping);
if ((substate == 2) and (temp_stopping > 1500)) {
_level0.accuracy = 0;
status = "done";
_level0.result.gotoandplay("failed");
_level0.timer.stop_timer();
brake = false;
}
} else {
if (!finished) {
tilespeed--;
}
if (tilespeed <= 0) {
finished = true;
tilespeed = 0;
}
}
if (!finished) {
if (tilespeed < 0) {
tilespeed = 0;
}
_level0.tile1._y = _level0.tile1._y + tilespeed;
_level0.tile2._y = _level0.tile2._y + tilespeed;
}
if (_level0.tile1._y > 600) {
_level0.tile1._y = _level0.tile2._y - 600;
}
if (_level0.tile2._y > 600) {
_level0.tile2._y = _level0.tile1._y - 600;
}
}
if (_level0.fader._y > -600) {
_level0.fader._y = _level0.fader._y - 50;
}
if (status != "done") {
level = _level0.level;
zebrahit = false;
if (check_this_cycle and (_level0.level != 5)) {
count = 0;
j = 1;
while (j <= cmax) {
mov1 = eval ("_level0.cross" + j);
testx = _x + (mag[j] * Math.sin((_rotation + ang[j]) * pi_div_180));
testy = _y - (mag[j] * Math.cos((_rotation + ang[j]) * pi_div_180));
wheels = (((j == 6) or (j == 10)) or (j == 11)) or (j == 12);
if ((wheels and (_level0.level == 3)) and (_level0.ice1.hitTest(testx, testy, true) or _level0.ice2.hitTest(testx, testy, true))) {
this._rotation = this._rotation + ((dangle * _level0.speed) / 10);
}
mov = eval ("_level0.zone" + current_zone);
if (mov.hitTest(testx, testy, true) and (_level0.speed == 0)) {
count++;
}
if ((_level0.level == 3) and (zebrahit == false)) {
mov = _level0.zonezebra;
if (mov.hitTest(testx, testy, true) and (_level0.speed == 0)) {
trace("ON ZEBRA!");
if ((_rotation > 40) and (_rotation < 140)) {
trace("ON SIDE!");
_level0.accuracy = _level0.accuracy - 3;
}
zebrahit = true;
}
}
mov = _level0.bad;
if (mov.hitTest(testx, testy, true)) {
_level0.accuracy--;
}
i = 1;
while (i <= other_cars_max) {
mov = eval ("_level0.car" + i);
if (mov.hitTest(testx, testy, true)) {
this.gotoandplay(2);
_level0.speed = 0;
status = "done";
_level0.result.gotoandplay("crashed");
_level0.timer.stop_timer();
}
i++;
}
j++;
}
if (status != "done") {
trace((((("count.." + count) + " ") + cmax) + " ") + _rotation);
if (((_level0.speed == 0) and (count == cmax)) and ok_position()) {
if (substate < final_substate) {
substate++;
perform_new_state(level, substate);
} else {
perform_new_state(level, substate + 1);
trace("done!");
_level0.result.gotoandplay("done");
_level0.timer.stop_timer();
status = "done";
}
}
if (_level0.timer.timer_val >= _level0.level_time[level]) {
trace("too slow!");
_level0.result.gotoandplay("timeup");
_level0.timer.stop_timer();
status = "done";
}
}
}
check_this_cycle = !check_this_cycle;
if (_level0.level == 5) {
if (Key.isDown(32) and (status != "done")) {
brake = true;
_level0.skid.gotoandplay(2);
}
} else {
if (Key.isDown(37) and (dangle > (-lim))) {
dangle = dangle - turn;
}
if (Key.isDown(39) and (dangle < lim)) {
dangle = dangle + turn;
}
kd = false;
ku = false;
if (Key.isDown(40)) {
if ((_level0.speed == 0) or ((_level0.speed > 0) and (_level0.speed < 0.2))) {
reverses++;
if ((_level0.level == 3) and (reverses > 1)) {
_level0.accuracy = _level0.accuracy - (5 + random(3));
}
if ((_level0.level == 4) and (reverses > 1)) {
_level0.accuracy = _level0.accuracy - (1 + random(2));
}
}
if (_level0.speed > -2) {
_level0.speed = _level0.speed - acc;
}
kd = true;
if (bad_direction == "down") {
_level0.accuracy--;
}
if ((_level0.moving_car_clear == false) and (_level0.level == 2)) {
_level0.accuracy = -1;
}
}
if (Key.isDown(38)) {
if (_level0.speed < maxspeed) {
_level0.speed = _level0.speed + acc;
}
ku = true;
if (bad_direction == "up") {
_level0.accuracy = _level0.accuracy - 3;
}
}
if (Key.isDown(32)) {
_level0.speed = 0;
}
if ((!kd) and (!ku)) {
if (_level0.speed > 0) {
_level0.speed = _level0.speed - 0.1;
}
if (_level0.speed < 0) {
_level0.speed = _level0.speed + 0.1;
}
if (Math.abs(_level0.speed) < 0.1) {
_level0.speed = 0;
}
}
if (last_dangle != dangle) {
rangle = dangle * pi_div_180;
this.wheel1._rotation = dangle / 2;
this.wheel4._rotation = dangle / 2;
}
last_dangle = dangle;
_level0.draw();
}
}
if ((_level0.speed == 0) and (last_sp != 0)) {
stops++;
if ((_level0.level == 3) and (stops > 4)) {
_level0.accuracy = _level0.accuracy - 5;
}
}
last_sp = _level0.speed;
_level0.diagno = reverses;
}
Frame 125
trace("here1");
carstart1._visible = false;
carstart2._visible = false;
carstart3._visible = false;
carstart4._visible = false;
carstart5._visible = false;
bad._alpha = 0;
_level0.zone1._visible = true;
_level0.zone2._visible = false;
zone2.text = "B";
stop();
Frame 132
carstart1._visible = false;
carstart2._visible = false;
carstart3._visible = false;
carstart4._visible = false;
carstart5._visible = false;
zone1.text = "A";
stop();
Frame 138
carstart1._visible = false;
carstart2._visible = false;
carstart3._visible = false;
carstart4._visible = false;
carstart5._visible = false;
zone1.text = "A";
zonezebra.text = "";
zonezebra._alpha = 0;
stop();
geezer._x = 380;
Frame 144
stopAllSounds();
if (level >= max_levels) {
gotoAndPlay (151);
} else {
gotoAndPlay (115);
}
geezer._x = 380;
Frame 148
gotoAndPlay (100);
Frame 151
score = manager_rating;
players = "";
command = "update";
bo = "ta";
sct1 = _level0.rota[1];
sct2 = _level0.rota[2];
sct3 = _level0.rota[3];
sct4 = _level0.rota[4];
sct5 = _level0.rota[5];
Instance of Symbol 135 MovieClip "pb" in Frame 151
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 99 MovieClip "game_cooky" in Frame 151
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 152
_level0.get_cookie_txt();
if (all_time_best) {
pb.gotoAndPlay(2);
}
stopAllSounds();
stop();
Symbol 9 MovieClip Frame 1
doneLoading = 0;
stop();
Instance of Symbol 5 MovieClip "bkgd" in Symbol 9 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 15 MovieClip Frame 7
gotoAndPlay (1);
Symbol 18 MovieClip Frame 32
gotoAndPlay (1);
Symbol 21 MovieClip Frame 7
gotoAndPlay (1);
Symbol 30 Button
on (keyPress "~") {
command = "init";
gotoAndPlay (151);
}
Symbol 36 Button
on (release) {
gotoAndStop (114);
}
Symbol 50 Button
on (release) {
getURL ("http://www.mousebreaker.com/index.php?cdgtid=parking3", "_blank");
}
Symbol 54 Button
on (release) {
getURL ("http://www.mousebreaker.com/index.php?cdgtid=parking3", "_blank");
}
Symbol 58 Button
on (release) {
getURL ("http://www.mousebreaker.com/index.php?page=downloadagreement");
}
Symbol 61 Button
on (release, keyPress "<Enter>") {
play();
}
Symbol 69 Button
on (release) {
gotoAndStop (99);
}
Symbol 76 Button
on (release, keyPress "<Enter>") {
play();
}
Symbol 99 MovieClip Frame 1
stop();
Symbol 107 Button
on (release) {
play();
}
Symbol 109 Button
on (release) {
secs = (getTimer() - _level0.timestart) / 1000;
trace("secs..." + secs);
if (secs > 120) {
getURL ("http://www.mousebreaker.com/games/parking3/play.php", "_self");
} else {
play();
}
}
Symbol 111 Button
on (release) {
secs = (getTimer() - _level0.timestart) / 1000;
trace("secs..." + secs);
if (secs > 120) {
getURL ("http://www.mousebreaker.com/games/parking3/play.php", "_self");
} else {
play();
}
}
Symbol 116 MovieClip Frame 1
stop();
Symbol 116 MovieClip Frame 2
cs = int(_level0.car.this_score);
_level0.acct = _level0.acct + cs;
if (_level0.level == 5) {
_level0.cookie_completed++;
_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]) {
_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;
Symbol 116 MovieClip Frame 20
stop();
Symbol 116 MovieClip Frame 21
_root.gotoandplay("end");
stop();
Symbol 116 MovieClip Frame 55
stop();
Symbol 116 MovieClip Frame 56
_root.gotoandplay("failed");
stop();
Symbol 116 MovieClip Frame 82
stopAllSounds();
Symbol 116 MovieClip Frame 83
stop();
Symbol 116 MovieClip Frame 84
_root.gotoandplay("failed");
stop();
Symbol 116 MovieClip Frame 117
_level0.geezer.gotoandplay("crosseyed");
_level0.geezer.text = "Oh my!\rI need a lie down.";
stop();
Symbol 116 MovieClip Frame 118
_root.gotoandplay("failed");
stop();
Symbol 119 MovieClip Frame 1
stop();
Symbol 121 MovieClip Frame 1
stop();
Symbol 123 MovieClip Frame 1
stop();
Symbol 131 MovieClip Frame 1
stop();
Symbol 131 MovieClip Frame 2
stop();
Symbol 135 MovieClip Frame 1
stop();
Symbol 135 MovieClip Frame 20
gotoAndPlay (2);
Symbol 150 MovieClip Frame 1
_level0.moving_car_clear = false;
_level0.turn_in_road_moving_car_clear = false;
Symbol 150 MovieClip Frame 60
_level0.moving_car_clear = true;
Symbol 150 MovieClip Frame 92
_level0.moving_car_clear = true;
_level0.turn_in_road_moving_car_clear = true;
Symbol 150 MovieClip Frame 100
stop();
Symbol 151 MovieClip Frame 1
stop();
Symbol 151 MovieClip Frame 2
stop();
Symbol 151 MovieClip Frame 3
stop();
Symbol 151 MovieClip Frame 4
stop();
Symbol 157 MovieClip Frame 1
stop();
Symbol 157 MovieClip Frame 8
gotoAndPlay (1);
Symbol 184 MovieClip Frame 1
Symbol 194 Button
on (release) {
gotoAndPlay (9);
}
Symbol 203 Button
on (release) {
play();
getURL ("http://www.mousebreaker.com/index.php?cdgtid=parking3", "_blank");
}
Symbol 205 Button
on (release) {
play();
getURL ("http://www.mousebreaker.com/index.php?page=freestuff", "_blank");
}