Frame 1
background_music = new Sound();
background_music.attachSound("background_music");
background_music.start(0, 99);
stop();
Frame 2
_root.crash_vehicle = false;
crash.track_a = false;
crash.track_b = false;
crash.track_c = false;
attachMovie("frame", "frame", 4500);
frame._x = 0;
frame._y = 0;
frame._width = 480;
frame._height = 660;
_root.attachMovie("get_ready", "get_ready", 4998);
get_ready._x = 180;
get_ready._y = 350;
_root.attachMovie("scoreboard", "scoreboard", 4999);
scoreboard._x = 396;
scoreboard._y = 432;
track_layout = new Array(1002, 1001, 1003, 1004, 1005, 1006, 1007, 1008, 1009, 1010, 2001, 2101, 2102, 2103, 2201, 1001, 1002, 1003, 3001, 3101, 3102, 3103, 3201, 1005, 1006, 1003, 1004, 3001, 3102, 3201, 2001, 2103, 2201, 1005, 1010, 3001, 3101, 3102, 3201, 3001, 3101, 3201, 2001, 2201, 3001, 3101, 3201, 1007);
crash = new Array();
crash.track_a = false;
crash.track_b = false;
crash.track_c = false;
speed = 1;
score = 0;
track._x = 0;
track._y = 0;
car._x = 180;
car._y = 550;
module_depth = 1000;
module_counter = 0;
last_module = "track_c";
lanes_occupied = new Array(false, false, false, false);
vehicle_depth = 2000;
vehicles_from_top = new Array("standard", "ambulance", "stationcar", "stationcar_2", "wagon", "standard_2");
vehicles_from_bottom = new Array("bus", "barbie", "barbie_car_2", "standard_3", "standard_4", "stationcar_3", "stationcar_4", "truck", "wagon_2");
lane_coordinates = new Array(110, 156, 202, 248);
object_depth = 1500;
objects = new Array("flowers", "kleenex", "smokes", "wine");
active_objects = new Array();
talking_heads = new Array();
ticks_left_to_play = 600;
total_track = 211 * track_layout.length;
_root.attachMovie("storck", "my_storck", 6000);
storck = my_storck;
storck._y = 120;
storck_position = ticks_left_to_play;
insert_object = function () {
lane = random(4);
if (((lane == 0) || (lane == 3)) && (last_called_module < 2000)) {
object_name = "object_" + object_depth;
if (track.attachMovie(objects[random(4)], object_name, object_depth)) {
mc = track[object_name];
mc._x = lane_coordinates[lane];
mc._y = 0;
active_objects[object_depth] = object_name;
}
object_depth++;
}
};
insert_talking_head = function () {
if (_root.talking_heads.length > 0) {
head = _root.talking_heads.pop();
_root.talking_heads.splice(0);
_root.attachMovie(head, "instance", 5000);
mc = instance;
mc._x = 375;
mc._y = 250;
mc._xscale = 150;
mc._yscale = 150;
_root.ticks_since_last_head = 0;
_root.is_mary_mad = false;
}
_root.ticks_since_last_head++;
if (_root.ticks_since_last_head > 200) {
_root.talking_heads.push("mary_sad");
}
};
insert_vehicle = function () {
lane = random(4);
if (lanes_occupied[lane] == false) {
if ((lane == 0) || (lane == 3)) {
if (random(2) == 0) {
vehicle = vehicles_from_bottom[random(9)];
vehicle_start = "bottom";
} else {
vehicle = vehicles_from_top[random(6)];
vehicle_start = "top";
}
} else {
vehicle = vehicles_from_top[random(6)];
vehicle_start = "top";
}
if (((vehicle_start == "top") && ((lane == 1) || (lane == 2))) && ((last_called_module > 2000) || (next_to_last_called_module > 2000))) {
} else {
vehicle_name = "vehicle_" + vehicle_depth;
if (attachMovie(vehicle, vehicle_name, vehicle_depth, {lane:lane})) {
lanes_occupied[lane] = true;
}
mc = eval (vehicle_name);
mc._x = (lane_coordinates[lane] - 10) + random(20);
if (vehicle_start == "top") {
mc._y = 100;
} else {
mc._y = 600;
}
vehicle_depth++;
}
}
};
Instance of Symbol 252 MovieClip [car] "car" in Frame 2
onClipEvent (enterFrame) {
if (Key.isDown(37)) {
this._x = (this._x - 5) - (_root.speed / 4);
}
if (Key.isDown(39)) {
this._x = (this._x + 5) + (_root.speed / 4);
}
if (Key.isDown(38)) {
if (this._y > 25) {
this._y = this._y - (_root.speed * 0.5);
}
if (_root.speed < 15) {
_root.speed = _root.speed + 0.75;
}
}
if (Key.isDown(40)) {
if (this._y < 590) {
this._y = this._y + (_root.speed * 1.5);
}
if (_root.speed > 5) {
_root.speed - 0.75;
}
}
}
Frame 3
ticks_left_to_play--;
if (ticks_left_to_play < storck_position) {
storck_position = ticks_left_to_play;
}
storck._x = ((600 - storck_position) * 485) / 600;
if (ticks_left_to_play < 0) {
gotoAndPlay (9);
}
if (total_track < 0) {
gotoAndStop (6);
stop();
}
if (crash.track_a == true) {
if (crash.track_b == true) {
if (crash.track_c == true) {
gotoAndPlay (9);
}
}
}
if (speed > 15) {
speed = speed - 0.15;
}
if (_root.crash_vehicle == true) {
gotoAndPlay (9);
}
ticks_since_last_object++;
if (ticks_since_last_object > 20) {
ticks_since_last_object = 0;
insert_object();
}
ticks_since_last_vehicle++;
if (ticks_since_last_vehicle > 5) {
ticks_since_last_vehicle = 0;
insert_vehicle();
}
insert_talking_head();
track._y = track._y + speed;
total_track = total_track - speed;
score++;
if (track._y > 186) {
for (j in active_objects) {
mc = track["object_" + j];
mc._y = mc._y + 212;
if (mc._y > 1000) {
mc.removeMovieClip();
}
}
track._y = -25;
if ((!track_layout[module_counter]) > 0) {
trace("completed");
} else {
next_module = "track_" + track_layout[module_counter];
mc = track[last_module];
mc.removeMovieClip();
track.attachMovie(next_module, last_module, module_depth);
module_counter++;
module_depth++;
_root.next_to_last_called_module = _root.last_called_module;
_root.last_called_module = track_layout[module_counter];
}
if (last_module == "track_c") {
first_module = "track_c";
middle_module = "track_a";
last_module = "track_b";
track.track_a._y = 211;
track.track_b._y = 422;
track.track_c._y = 0;
} else if (last_module == "track_b") {
first_module = "track_b";
middle_module = "track_c";
last_module = "track_a";
track.track_a._y = 422;
track.track_b._y = 0;
track.track_c._y = 211;
} else if (last_module == "track_a") {
first_module = "track_a";
middle_module = "track_b";
last_module = "track_c";
track.track_a._y = 0;
track.track_b._y = 211;
track.track_c._y = 422;
}
track.track_a._yscale = 63;
track.track_a._xscale = 63;
track.track_b._yscale = 63;
track.track_b._xscale = 63;
track.track_c._yscale = 63;
track.track_c._xscale = 63;
track.track_a._x = 29;
track.track_b._x = 29;
track.track_c._x = 29;
}
Frame 4
gotoAndPlay (3);
Frame 5
stopAllSounds();
for (name in _root) {
if (typeof(_root[name]) == "movieclip") {
unloadMovie (name);
}
}
delete crash;
delete crash_vehicle;
Frame 6
score = (score + (ticks_left_to_play * 5)) + 500;
for (name in _root) {
if (typeof(_root[name]) == "movieclip") {
if (name.substr(0, 7) == "vehicle") {
unloadMovie (name);
}
}
}
unloadMovie ("storck");
unloadMovie ("my_storck");
unloadMovie ("scoreboard");
unloadMovie ("get_ready");
unloadMovie ("frame");
unloadMovie ("instance");
i = 0;
while (i < 20) {
attachMovie("hearts", "heart_" + i, i + 1000);
i++;
}
if (score > score_best) {
score_best = score;
}
if (score_best > score_to_beat) {
score_to_beat = 0;
}
if (score_to_beat > 0) {
attachMovie("winner_challenged", "winner", 999);
} else {
attachMovie("winner", "winner", 999);
}
Frame 8
gotoAndPlay (7);
Frame 9
stopAllSounds();
for (name in _root) {
if (typeof(_root[name]) == "movieclip") {
unloadMovie (name);
}
}
s = new Sound();
s.attachSound("slut_prut");
s.start();
s.onSoundComplete = function () {
background_music.start(0, 99);
};
delete crash;
delete crash_vehicle;
Frame 10
if (score > score_best) {
score_best = score;
}
if (score_best > score_to_beat) {
score_to_beat = 0;
}
if (score_to_beat > 0) {
attachMovie("looser_challenged", "looser", 1000);
} else {
attachMovie("looser", "looser", 1000);
}
stop();
Frame 11
loadVariables ((((("tudeprinsen.php?score=" + score_best) + "&email=") + recipient_email) + "&challenger=") + challenger_name, "_root");
Instance of Symbol 14 MovieClip in Symbol 15 MovieClip [track_2201] Frame 1
onClipEvent (enterFrame) {
if (this.hittest(_root.car._x, _root.car._y, true)) {
_root.crash[_parent._name] = false;
} else {
_root.crash[_parent._name] = true;
}
}
Instance of Symbol 19 MovieClip in Symbol 20 MovieClip [track_2103] Frame 1
onClipEvent (enterFrame) {
if (this.hittest(_root.car._x, _root.car._y, true)) {
_root.crash[_parent._name] = false;
} else {
_root.crash[_parent._name] = true;
}
}
Instance of Symbol 19 MovieClip in Symbol 23 MovieClip [track_2102] Frame 1
onClipEvent (enterFrame) {
if (this.hittest(_root.car._x, _root.car._y, true)) {
_root.crash[_parent._name] = false;
} else {
_root.crash[_parent._name] = true;
}
}
Instance of Symbol 19 MovieClip in Symbol 26 MovieClip [track_2101] Frame 1
onClipEvent (enterFrame) {
if (this.hittest(_root.car._x, _root.car._y, true)) {
_root.crash[_parent._name] = false;
} else {
_root.crash[_parent._name] = true;
}
}
Instance of Symbol 28 MovieClip in Symbol 29 MovieClip [track_2001] Frame 1
onClipEvent (enterFrame) {
if (this.hittest(_root.car._x, _root.car._y, true)) {
_root.crash[_parent._name] = false;
} else {
_root.crash[_parent._name] = true;
}
}
Instance of Symbol 33 MovieClip in Symbol 34 MovieClip [track_3103] Frame 1
onClipEvent (enterFrame) {
if (this.hittest(_root.car._x, _root.car._y, true)) {
_root.crash[_parent._name] = false;
} else {
_root.crash[_parent._name] = true;
}
}
Instance of Symbol 33 MovieClip in Symbol 37 MovieClip [track_3102] Frame 1
onClipEvent (enterFrame) {
if (this.hittest(_root.car._x, _root.car._y, true)) {
_root.crash[_parent._name] = false;
} else {
_root.crash[_parent._name] = true;
}
}
Instance of Symbol 33 MovieClip in Symbol 40 MovieClip [track_3101] Frame 1
onClipEvent (enterFrame) {
if (this.hittest(_root.car._x, _root.car._y, true)) {
_root.crash[_parent._name] = false;
} else {
_root.crash[_parent._name] = true;
}
}
Instance of Symbol 44 MovieClip in Symbol 45 MovieClip [track_3201] Frame 1
onClipEvent (enterFrame) {
if (this.hittest(_root.car._x, _root.car._y, true)) {
_root.crash[_parent._name] = false;
} else {
_root.crash[_parent._name] = true;
}
}
Instance of Symbol 49 MovieClip in Symbol 50 MovieClip [track_3001] Frame 1
onClipEvent (enterFrame) {
if (this.hittest(_root.car._x, _root.car._y, true)) {
_root.crash[_parent._name] = false;
} else {
_root.crash[_parent._name] = true;
}
}
Instance of Symbol 54 MovieClip in Symbol 55 MovieClip [track_1002] Frame 1
onClipEvent (enterFrame) {
if (this.hittest(_root.car._x, _root.car._y, true)) {
_root.crash[_parent._name] = false;
} else {
_root.crash[_parent._name] = true;
}
}
Instance of Symbol 54 MovieClip in Symbol 58 MovieClip [track_1010] Frame 1
onClipEvent (enterFrame) {
if (this.hittest(_root.car._x, _root.car._y, true)) {
_root.crash[_parent._name] = false;
} else {
_root.crash[_parent._name] = true;
}
}
Instance of Symbol 54 MovieClip in Symbol 61 MovieClip [track_1009] Frame 1
onClipEvent (enterFrame) {
if (this.hittest(_root.car._x, _root.car._y, true)) {
_root.crash[_parent._name] = false;
} else {
_root.crash[_parent._name] = true;
}
}
Instance of Symbol 54 MovieClip in Symbol 64 MovieClip [track_1008] Frame 1
onClipEvent (enterFrame) {
if (this.hittest(_root.car._x, _root.car._y, true)) {
_root.crash[_parent._name] = false;
} else {
_root.crash[_parent._name] = true;
}
}
Instance of Symbol 54 MovieClip in Symbol 67 MovieClip [track_1007] Frame 1
onClipEvent (enterFrame) {
if (this.hittest(_root.car._x, _root.car._y, true)) {
_root.crash[_parent._name] = false;
} else {
_root.crash[_parent._name] = true;
}
}
Instance of Symbol 54 MovieClip in Symbol 70 MovieClip [track_1006] Frame 1
onClipEvent (enterFrame) {
if (this.hittest(_root.car._x, _root.car._y, true)) {
_root.crash[_parent._name] = false;
} else {
_root.crash[_parent._name] = true;
}
}
Instance of Symbol 54 MovieClip in Symbol 73 MovieClip [track_1005] Frame 1
onClipEvent (enterFrame) {
if (this.hittest(_root.car._x, _root.car._y, true)) {
_root.crash[_parent._name] = false;
} else {
_root.crash[_parent._name] = true;
}
}
Instance of Symbol 54 MovieClip in Symbol 76 MovieClip [track_1004] Frame 1
onClipEvent (enterFrame) {
if (this.hittest(_root.car._x, _root.car._y, true)) {
_root.crash[_parent._name] = false;
} else {
_root.crash[_parent._name] = true;
}
}
Instance of Symbol 54 MovieClip in Symbol 79 MovieClip [track_1003] Frame 1
onClipEvent (enterFrame) {
if (this.hittest(_root.car._x, _root.car._y, true)) {
_root.crash[_parent._name] = false;
} else {
_root.crash[_parent._name] = true;
}
}
Instance of Symbol 54 MovieClip in Symbol 82 MovieClip [track_1001] Frame 1
onClipEvent (enterFrame) {
if (this.hittest(_root.car._x, _root.car._y, true)) {
_root.crash[_parent._name] = false;
} else {
_root.crash[_parent._name] = true;
}
}
Instance of Symbol 84 MovieClip in Symbol 85 MovieClip [barbie_car_2] Frame 1
onClipEvent (enterFrame) {
if (this._y < -500) {
_root.lanes_occupied[_parent.lane] = false;
unloadMovie (_parent);
}
if ((Math.abs(_parent._x - _root.car._x) < 100) and (Math.abs((1008 + this._y) - (_root.car._y + 336)) < 200)) {
if (_root.speed > 5) {
_root.speed--;
}
if (_root.is_mary_mad != true) {
_root.talking_heads.push("barbie_face");
}
}
this._y = this._y - 5;
if (this.hittest(_root.car._x, _root.car._y, true)) {
_root.crash_vehicle = true;
}
if (this.hittest(_root.car._x - 8, _root.car._y + 15, true)) {
_root.crash_vehicle = true;
}
if (this.hittest(_root.car._x - 8, _root.car._y - 15, true)) {
_root.crash_vehicle = true;
}
if (this.hittest(_root.car._x + 8, _root.car._y + 15, true)) {
_root.crash_vehicle = true;
}
if (this.hittest(_root.car._x + 8, _root.car._y - 15, true)) {
_root.crash_vehicle = true;
}
}
Instance of Symbol 87 MovieClip in Symbol 88 MovieClip [barbie] Frame 1
onClipEvent (enterFrame) {
if (this._y < -500) {
_root.lanes_occupied[_parent.lane] = false;
unloadMovie (_parent);
}
if ((Math.abs(_parent._x - _root.car._x) < 100) and (Math.abs((1008 + this._y) - (_root.car._y + 336)) < 200)) {
if (_root.speed > 5) {
_root.speed--;
}
if (_root.is_mary_mad != true) {
_root.talking_heads.push("mary_mad");
}
}
this._y = this._y - 5;
if (this.hittest(_root.car._x, _root.car._y, true)) {
_root.crash_vehicle = true;
}
if (this.hittest(_root.car._x - 8, _root.car._y + 15, true)) {
_root.crash_vehicle = true;
}
if (this.hittest(_root.car._x - 8, _root.car._y - 15, true)) {
_root.crash_vehicle = true;
}
if (this.hittest(_root.car._x + 8, _root.car._y + 15, true)) {
_root.crash_vehicle = true;
}
if (this.hittest(_root.car._x + 8, _root.car._y - 15, true)) {
_root.crash_vehicle = true;
}
}
Instance of Symbol 90 MovieClip in Symbol 91 MovieClip [stationcar_4] Frame 1
onClipEvent (enterFrame) {
if (this._y < -500) {
_root.lanes_occupied[_parent.lane] = false;
unloadMovie (_parent);
}
this._y = this._y - 6;
if (this.hittest(_root.car._x, _root.car._y, true)) {
_root.crash_vehicle = true;
}
if (this.hittest(_root.car._x - 8, _root.car._y + 15, true)) {
_root.crash_vehicle = true;
}
if (this.hittest(_root.car._x - 8, _root.car._y - 15, true)) {
_root.crash_vehicle = true;
}
if (this.hittest(_root.car._x + 8, _root.car._y + 15, true)) {
_root.crash_vehicle = true;
}
if (this.hittest(_root.car._x + 8, _root.car._y - 15, true)) {
_root.crash_vehicle = true;
}
}
Instance of Symbol 93 MovieClip in Symbol 94 MovieClip [wagon_2] Frame 1
onClipEvent (enterFrame) {
if (this._y < -500) {
_root.lanes_occupied[_parent.lane] = false;
unloadMovie (_parent);
}
this._y = this._y - 6;
if (this.hittest(_root.car._x, _root.car._y, true)) {
_root.crash_vehicle = true;
}
if (this.hittest(_root.car._x - 8, _root.car._y + 15, true)) {
_root.crash_vehicle = true;
}
if (this.hittest(_root.car._x - 8, _root.car._y - 15, true)) {
_root.crash_vehicle = true;
}
if (this.hittest(_root.car._x + 8, _root.car._y + 15, true)) {
_root.crash_vehicle = true;
}
if (this.hittest(_root.car._x + 8, _root.car._y - 15, true)) {
_root.crash_vehicle = true;
}
}
Instance of Symbol 96 MovieClip in Symbol 97 MovieClip [truck] Frame 1
onClipEvent (enterFrame) {
if (this._y < -500) {
_root.lanes_occupied[_parent.lane] = false;
unloadMovie (_parent);
}
this._y = this._y - 6;
if (this.hittest(_root.car._x, _root.car._y, true)) {
_root.crash_vehicle = true;
}
if (this.hittest(_root.car._x - 8, _root.car._y + 15, true)) {
_root.crash_vehicle = true;
}
if (this.hittest(_root.car._x - 8, _root.car._y - 15, true)) {
_root.crash_vehicle = true;
}
if (this.hittest(_root.car._x + 8, _root.car._y + 15, true)) {
_root.crash_vehicle = true;
}
if (this.hittest(_root.car._x + 8, _root.car._y - 15, true)) {
_root.crash_vehicle = true;
}
}
Instance of Symbol 99 MovieClip in Symbol 100 MovieClip [standard_4] Frame 1
onClipEvent (enterFrame) {
if (this._y < -500) {
_root.lanes_occupied[_parent.lane] = false;
unloadMovie (_parent);
}
this._y = this._y - 6;
if (this.hittest(_root.car._x, _root.car._y, true)) {
_root.crash_vehicle = true;
}
if (this.hittest(_root.car._x - 8, _root.car._y + 15, true)) {
_root.crash_vehicle = true;
}
if (this.hittest(_root.car._x - 8, _root.car._y - 15, true)) {
_root.crash_vehicle = true;
}
if (this.hittest(_root.car._x + 8, _root.car._y + 15, true)) {
_root.crash_vehicle = true;
}
if (this.hittest(_root.car._x + 8, _root.car._y - 15, true)) {
_root.crash_vehicle = true;
}
}
Instance of Symbol 102 MovieClip in Symbol 103 MovieClip [stationcar_3] Frame 1
onClipEvent (enterFrame) {
if (this._y < -500) {
_root.lanes_occupied[_parent.lane] = false;
unloadMovie (_parent);
}
this._y = this._y - 6;
if (this.hittest(_root.car._x, _root.car._y, true)) {
_root.crash_vehicle = true;
}
if (this.hittest(_root.car._x - 8, _root.car._y + 15, true)) {
_root.crash_vehicle = true;
}
if (this.hittest(_root.car._x - 8, _root.car._y - 15, true)) {
_root.crash_vehicle = true;
}
if (this.hittest(_root.car._x + 8, _root.car._y + 15, true)) {
_root.crash_vehicle = true;
}
if (this.hittest(_root.car._x + 8, _root.car._y - 15, true)) {
_root.crash_vehicle = true;
}
}
Instance of Symbol 105 MovieClip in Symbol 106 MovieClip [standard_3] Frame 1
onClipEvent (enterFrame) {
if (this._y < -500) {
_root.lanes_occupied[_parent.lane] = false;
unloadMovie (_parent);
}
this._y = this._y - 6;
if (this.hittest(_root.car._x, _root.car._y, true)) {
_root.crash_vehicle = true;
}
if (this.hittest(_root.car._x - 8, _root.car._y + 15, true)) {
_root.crash_vehicle = true;
}
if (this.hittest(_root.car._x - 8, _root.car._y - 15, true)) {
_root.crash_vehicle = true;
}
if (this.hittest(_root.car._x + 8, _root.car._y + 15, true)) {
_root.crash_vehicle = true;
}
if (this.hittest(_root.car._x + 8, _root.car._y - 15, true)) {
_root.crash_vehicle = true;
}
}
Instance of Symbol 108 MovieClip in Symbol 109 MovieClip [bus] Frame 1
onClipEvent (enterFrame) {
if (this._y < -500) {
_root.lanes_occupied[_parent.lane] = false;
unloadMovie (_parent);
}
this._y = this._y - 6;
if (this.hittest(_root.car._x, _root.car._y, true)) {
_root.crash_vehicle = true;
}
if (this.hittest(_root.car._x - 8, _root.car._y + 15, true)) {
_root.crash_vehicle = true;
}
if (this.hittest(_root.car._x - 8, _root.car._y - 15, true)) {
_root.crash_vehicle = true;
}
if (this.hittest(_root.car._x + 8, _root.car._y + 15, true)) {
_root.crash_vehicle = true;
}
if (this.hittest(_root.car._x + 8, _root.car._y - 15, true)) {
_root.crash_vehicle = true;
}
}
Instance of Symbol 111 MovieClip in Symbol 112 MovieClip [ambulance] Frame 1
onClipEvent (enterFrame) {
if (this._y > 600) {
_root.lanes_occupied[_parent.lane] = false;
unloadMovie (_parent);
}
this._y = this._y + (_root.speed * 1.2);
if (this.hittest(_root.car._x, _root.car._y, true)) {
_root.crash_vehicle = true;
}
if (this.hittest(_root.car._x - 8, _root.car._y + 15, true)) {
_root.crash_vehicle = true;
}
if (this.hittest(_root.car._x - 8, _root.car._y - 15, true)) {
_root.crash_vehicle = true;
}
if (this.hittest(_root.car._x + 8, _root.car._y + 15, true)) {
_root.crash_vehicle = true;
}
if (this.hittest(_root.car._x + 8, _root.car._y - 15, true)) {
_root.crash_vehicle = true;
}
}
Instance of Symbol 114 MovieClip in Symbol 115 MovieClip [standard_2] Frame 1
onClipEvent (enterFrame) {
if (this._y > 600) {
_root.lanes_occupied[_parent.lane] = false;
unloadMovie (_parent);
}
this._y = this._y + (_root.speed * 1.2);
if (this.hittest(_root.car._x, _root.car._y, true)) {
_root.crash_vehicle = true;
}
if (this.hittest(_root.car._x - 10, _root.car._y + 25, true)) {
_root.crash_vehicle = true;
}
if (this.hittest(_root.car._x - 10, _root.car._y - 25, true)) {
_root.crash_vehicle = true;
}
if (this.hittest(_root.car._x + 10, _root.car._y + 25, true)) {
_root.crash_vehicle = true;
}
if (this.hittest(_root.car._x + 10, _root.car._y - 25, true)) {
_root.crash_vehicle = true;
}
}
Instance of Symbol 117 MovieClip in Symbol 118 MovieClip [stationcar_2] Frame 1
onClipEvent (enterFrame) {
if (this._y > 600) {
_root.lanes_occupied[_parent.lane] = false;
unloadMovie (_parent);
}
this._y = this._y + (_root.speed * 1.2);
if (this.hittest(_root.car._x, _root.car._y, true)) {
_root.crash_vehicle = true;
}
if (this.hittest(_root.car._x - 8, _root.car._y + 15, true)) {
_root.crash_vehicle = true;
}
if (this.hittest(_root.car._x - 8, _root.car._y - 15, true)) {
_root.crash_vehicle = true;
}
if (this.hittest(_root.car._x + 8, _root.car._y + 15, true)) {
_root.crash_vehicle = true;
}
if (this.hittest(_root.car._x + 8, _root.car._y - 15, true)) {
_root.crash_vehicle = true;
}
}
Instance of Symbol 120 MovieClip in Symbol 121 MovieClip [wagon] Frame 1
onClipEvent (enterFrame) {
if (this._y < -500) {
_root.lanes_occupied[_parent.lane] = false;
unloadMovie (_parent);
}
this._y = this._y - 6;
if (this.hittest(_root.car._x, _root.car._y, true)) {
_root.crash_vehicle = true;
}
if (this.hittest(_root.car._x - 8, _root.car._y + 15, true)) {
_root.crash_vehicle = true;
}
if (this.hittest(_root.car._x - 8, _root.car._y - 15, true)) {
_root.crash_vehicle = true;
}
if (this.hittest(_root.car._x + 8, _root.car._y + 15, true)) {
_root.crash_vehicle = true;
}
if (this.hittest(_root.car._x + 8, _root.car._y - 15, true)) {
_root.crash_vehicle = true;
}
}
Instance of Symbol 123 MovieClip in Symbol 124 MovieClip [stationcar] Frame 1
onClipEvent (enterFrame) {
if (this._y > 600) {
_root.lanes_occupied[_parent.lane] = false;
unloadMovie (_parent);
}
this._y = this._y + (_root.speed * 1.2);
if (this.hittest(_root.car._x, _root.car._y, true)) {
_root.crash_vehicle = true;
}
if (this.hittest(_root.car._x - 8, _root.car._y + 15, true)) {
_root.crash_vehicle = true;
}
if (this.hittest(_root.car._x - 8, _root.car._y - 15, true)) {
_root.crash_vehicle = true;
}
if (this.hittest(_root.car._x + 8, _root.car._y + 15, true)) {
_root.crash_vehicle = true;
}
if (this.hittest(_root.car._x + 8, _root.car._y - 15, true)) {
_root.crash_vehicle = true;
}
}
Instance of Symbol 126 MovieClip in Symbol 127 MovieClip [standard] Frame 1
onClipEvent (enterFrame) {
if (this._y > 600) {
_root.lanes_occupied[_parent.lane] = false;
unloadMovie (_parent);
}
this._y = this._y + (_root.speed * 1.2);
if (this.hittest(_root.car._x, _root.car._y, true)) {
_root.crash_vehicle = true;
}
if (this.hittest(_root.car._x - 8, _root.car._y + 15, true)) {
_root.crash_vehicle = true;
}
if (this.hittest(_root.car._x - 8, _root.car._y - 15, true)) {
_root.crash_vehicle = true;
}
if (this.hittest(_root.car._x + 8, _root.car._y + 15, true)) {
_root.crash_vehicle = true;
}
if (this.hittest(_root.car._x + 8, _root.car._y - 15, true)) {
_root.crash_vehicle = true;
}
}
Symbol 130 MovieClip [kleenex] Frame 1
onEnterFrame = function () {
if (this.hittest(_root.car._x, _root.car._y, true)) {
hit = true;
}
if (this.hittest(_root.car._x - 10, _root.car._y + 20, true)) {
hit = true;
}
if (this.hittest(_root.car._x - 10, _root.car._y - 20, true)) {
hit = true;
}
if (this.hittest(_root.car._x + 10, _root.car._y + 20, true)) {
hit = true;
}
if (this.hittest(_root.car._x + 10, _root.car._y - 20, true)) {
hit = true;
}
if (hit == true) {
_root.score = _root.score + 50;
_root.speed = 20;
index = substring(_parent._name, 8, 4);
delete _root.active_objects[index];
unloadMovie (this);
}
};
Symbol 133 MovieClip [smokes] Frame 1
onEnterFrame = function () {
if (this.hittest(_root.car._x, _root.car._y, true)) {
hit = true;
}
if (this.hittest(_root.car._x - 10, _root.car._y + 25, true)) {
hit = true;
}
if (this.hittest(_root.car._x - 10, _root.car._y - 25, true)) {
hit = true;
}
if (this.hittest(_root.car._x + 10, _root.car._y + 25, true)) {
hit = true;
}
if (this.hittest(_root.car._x + 10, _root.car._y - 25, true)) {
hit = true;
}
if (hit == true) {
_root.score = _root.score + 50;
_root.ticks_left_to_play = _root.ticks_left_to_play + 25;
index = substring(_parent._name, 8, 4);
_root.talking_heads.push("mama");
delete _root.active_objects[index];
unloadMovie (this);
}
};
Symbol 136 MovieClip [wine] Frame 1
onEnterFrame = function () {
if (this.hittest(_root.car._x, _root.car._y, true)) {
hit = true;
}
if (this.hittest(_root.car._x - 10, _root.car._y + 25, true)) {
hit = true;
}
if (this.hittest(_root.car._x - 10, _root.car._y - 25, true)) {
hit = true;
}
if (this.hittest(_root.car._x + 10, _root.car._y + 25, true)) {
hit = true;
}
if (this.hittest(_root.car._x + 10, _root.car._y - 25, true)) {
hit = true;
}
if (hit == true) {
_root.score = _root.score + 50;
_root.ticks_left_to_play = _root.ticks_left_to_play + 25;
index = substring(_parent._name, 8, 4);
_root.talking_heads.push("papa");
delete _root.active_objects[index];
unloadMovie (this);
}
};
Symbol 139 MovieClip [flowers] Frame 1
onEnterFrame = function () {
if (this.hittest(_root.car._x, _root.car._y, true)) {
hit = true;
}
if (this.hittest(_root.car._x - 10, _root.car._y + 25, true)) {
hit = true;
}
if (this.hittest(_root.car._x - 10, _root.car._y - 25, true)) {
hit = true;
}
if (this.hittest(_root.car._x + 10, _root.car._y + 25, true)) {
hit = true;
}
if (this.hittest(_root.car._x + 10, _root.car._y - 25, true)) {
hit = true;
}
if (hit == true) {
_root.score = _root.score + 10;
_root.ticks_left_to_play = _root.ticks_left_to_play + 100;
index = substring(_parent._name, 8, 4);
delete _root.active_objects[index];
unloadMovie (this);
}
};
Symbol 144 MovieClip Frame 10
stop();
Symbol 147 MovieClip [mary_sad] Frame 1
ticks_counter = 0;
mary_sad_voice = new Sound();
if (random(2) == 0) {
mary_sad_voice.attachSound("mary_sad_1");
} else {
mary_sad_voice.attachSound("mary_sad_2");
}
mary_sad_voice.start();
Symbol 147 MovieClip [mary_sad] Frame 8
ticks_counter = ticks_counter + 8;
if (ticks_counter > 100) {
mary_sad_voice.stop("mary_sad_1");
mary_sad_voice.stop("mary_sad_2");
unloadMovie (this);
}
gotoAndPlay (2);
Symbol 153 MovieClip [barbie_face] Frame 1
_root.is_mary_mad = true;
ticks_counter = 0;
if (random(20) < 10) {
frede_voice = new Sound();
frede_voice.attachSound("frede_1");
frede_voice.start();
} else {
barbie_voice = new Sound();
barbie_voice.attachSound("barbie_1");
barbie_voice.start();
}
Symbol 153 MovieClip [barbie_face] Frame 14
ticks_counter = ticks_counter + 10;
if (ticks_counter > 100) {
mama_voice.stop("mama_1");
unloadMovie (this);
}
gotoAndPlay (2);
Symbol 163 MovieClip Frame 10
stop();
Symbol 166 MovieClip [mama] Frame 1
ticks_counter = 0;
mama_voice = new Sound();
mama_voice.attachSound("mama_1");
mama_voice.start();
Symbol 166 MovieClip [mama] Frame 8
ticks_counter = ticks_counter + 5;
if (ticks_counter > 100) {
mama_voice.stop("mama_1");
unloadMovie (this);
}
gotoAndPlay (2);
Symbol 175 MovieClip Frame 10
stop();
Symbol 178 MovieClip [papa] Frame 1
ticks_counter = 0;
papa_voice = new Sound();
papa_voice.attachSound("papa_1");
papa_voice.start();
Symbol 178 MovieClip [papa] Frame 8
ticks_counter = ticks_counter + 4;
if (ticks_counter > 100) {
papa_voice.stop("papa_1");
papa_voice.stop("papa_2");
unloadMovie (this);
}
gotoAndPlay (2);
Symbol 182 MovieClip [mary_mad] Frame 1
_root.is_mary_mad = true;
ticks_counter = 0;
mary_voice = new Sound();
if (random(2) == 0) {
mary_voice.attachSound("mary_mad_1");
} else {
mary_voice.attachSound("mary_mad_2");
}
mary_voice.start();
Symbol 182 MovieClip [mary_mad] Frame 8
ticks_counter = ticks_counter + 5;
if (ticks_counter > 100) {
mary_voice.stop("mary_mad_1");
mary_voice.stop("mary_mad_2");
unloadMovie (this);
}
gotoAndPlay (2);
Symbol 190 MovieClip [storck] Frame 1
gotoAndPlay (1);
Symbol 192 Button [netstationen_button]
on (release) {
getURL ("http://www.boomnet.dk", "_blank");
}
Symbol 193 Button [netstationen_button]
on (release) {
getURL ("http://www.n.dk", "_blank");
}
Symbol 207 MovieClip [hearts] Frame 1
ticks = 0;
base_x = random(480);
this._y = -50;
dy = 1 + (random(15) / 5);
delay = random(50);
Symbol 207 MovieClip [hearts] Frame 2
ticks++;
Symbol 207 MovieClip [hearts] Frame 3
if (ticks < delay) {
gotoAndPlay (2);
}
Symbol 207 MovieClip [hearts] Frame 4
this._x = base_x + (20 * Math.sin(ticks / 50));
this._y = this._y + dy;
Symbol 207 MovieClip [hearts] Frame 5
ticks++;
if (this._y < 690) {
gotoAndPlay (4);
}
Symbol 212 MovieClip [get_ready] Frame 1
ticks++;
Symbol 212 MovieClip [get_ready] Frame 2
if (ticks < 40) {
gotoAndPlay (1);
}
Symbol 212 MovieClip [get_ready] Frame 3
ticks++;
Symbol 212 MovieClip [get_ready] Frame 4
if (ticks < 60) {
gotoAndPlay (3);
}
Symbol 212 MovieClip [get_ready] Frame 5
ticks++;
Symbol 212 MovieClip [get_ready] Frame 6
if (ticks < 80) {
gotoAndPlay (5);
}
Symbol 212 MovieClip [get_ready] Frame 7
ticks++;
Symbol 212 MovieClip [get_ready] Frame 8
if (ticks < 95) {
gotoAndPlay (7);
} else {
unloadMovie (this);
}
Symbol 217 Button
on (release) {
unloadMovie (this);
_root.gotoAndPlay(2);
}
Symbol 222 Button [button_send]
on (release) {
_root.gotoAndPlay(11);
}
Symbol 241 Button
on (release) {
unloadMovie (this);
for (name in _root) {
if (typeof(_root[name]) == "movieclip") {
if (name.substr(0, 5) == "heart") {
unloadMovie (_root[name]);
}
}
}
_root.gotoAndPlay(2);
}
Symbol 253 MovieClip [track] Frame 1
attachMovie("track_1001", "track_a", 11);
attachMovie("track_1002", "track_b", 12);
attachMovie("track_1003", "track_c", 13);
track_a._width = 302;
track_a._height = 212;
track_a._x = 29;
track_a._y = 0;
track_b._width = 302;
track_b._height = 212;
track_b._x = 29;
track_b._y = 211;
track_c._width = 302;
track_c._height = 212;
track_c._x = 29;
track_c._y = 422;
stop();
Symbol 256 Button
on (release) {
gotoAndPlay (2);
}
Symbol 257 Button
on (release) {
gotoAndPlay (2);
}