Frame 1
stop();
Instance of Symbol 32 MovieClip in Frame 1
onClipEvent (enterFrame) {
var loaded = (_root.getBytesLoaded() / 1024);
var total = Math.round(_root.getBytesTotal() / 1024);
var percent = Math.round((loaded / total) * 100);
if (percent == 100) {
_root.gotoAndStop("intro");
}
}
Frame 5
stop();
function show_instructions() {
_root.level++;
if (!_root.instructions_float) {
attachMovie("instructions_mc", "instructions_float", _root.level);
_root.instructions_float._x = 298;
_root.instructions_float._y = 175;
_root.instructions_float.play();
} else {
_root.instructions_float.removeMovieClip();
}
}
_root.instructions.stop();
for (var temp in icon_characters) {
var char = icon_characters[temp];
if (_root[char + "_visited"] != 1) {
_root[char + "_visited"] = 0;
_root["hm_" + char].gotoAndStop("reg");
} else {
_root["hm_" + char].gotoAndStop("visited");
}
}
Frame 10
stop();
_root.maps.gotoAndStop(_root.start_point);
function make_arrows() {
for (var names in arrows) {
var name = arrows[names];
var x = _root["arrow_" + name]._x;
var y = _root["arrow_" + name]._y;
make_chips("arrow", name, x, y);
}
}
function make_icons() {
for (var names in icon_characters) {
var name = icon_characters[names];
var x = _root["icon_" + name]._x;
var y = _root["icon_" + name]._y;
make_chips("icon", name, x, y);
}
}
function make_chips(shape, name, x, y) {
var shape = shape;
var name = name;
var x = x;
var y = y;
var i = 1;
while (quantity >= i) {
attachMovie((("m_" + shape) + "_") + name, (((shape + "_") + name) + "_") + i, level);
_root[(((shape + "_") + name) + "_") + i]._x = x;
_root[(((shape + "_") + name) + "_") + i]._y = y;
level++;
chip_count.push((((shape + "_") + name) + "_") + i);
i++;
}
}
function check_for_blanks() {
var num = 0;
var errors = 0;
_root.make_route();
var i = 0;
while (i < route.length) {
var new_num = route[i].substring(7, 8);
if (num < new_num) {
num = new_num;
}
i++;
}
if ((new_num == 0) || (num == 0)) {
errors++;
}
new_num = new_num * 2;
var i = 0;
while (i < new_num) {
var temp = route[i].substring(7, 8);
_root["step_" + temp]++;
i++;
}
var i = 1;
while ((new_num / 2) >= i) {
if (_root["step_" + i] != 2) {
_root["step" + i].gotoAndStop(2);
errors++;
}
_root["step_" + i] = 0;
i++;
}
if (errors == 0) {
_root.check_route();
} else {
_root.error.gotoAndStop("blank");
}
}
function make_route() {
route = [];
var i = 1;
while (6 >= i) {
for (var chips in chip_count) {
var chip = chip_count[chips];
if (_root[chip].hitTest(_root["circle_" + i])) {
route.push((("circle_" + i) + ",") + chip);
} else if (_root[chip].hitTest(_root["square_" + i])) {
route.push((("square_" + i) + ",") + chip);
}
}
i++;
}
}
function check_route() {
var circles = 0;
var squares = 0;
var direction = "";
var icon = "";
var current_point = _root.starting_point;
var test_point;
var errors = 0;
_root.steps = 0;
char_path = [];
var i = 0;
while (i < route.length) {
test_point = current_point;
var step = route[i].substring(7, 8);
var shape = route[i].substring(0, 6);
if (shape == "circle") {
icon = route[i].slice(14, route[i].lastIndexOf("_"));
char_path.push(icon);
}
if (shape == "square") {
direction = route[i].slice(15, route[i].lastIndexOf("_"));
}
if ((direction != "") && (icon != "")) {
var curr_col = current_point.substr(3, 1);
var curr_row = current_point.substr(8, 1);
var j = 0;
while (j < _root.maps.character_points.length) {
var temp = _root.maps.character_points[j].split(",");
var char = temp[0];
char = char.substring(5);
var location = temp[1];
var col = location.substr(3, 1);
var row = location.substr(8, 1);
if (char == icon) {
if ((direction == "north") || (direction == "south")) {
if (curr_col == col) {
current_point = (("col" + col) + "_row") + row;
if ((direction == "north") && (row < curr_row)) {
check_roads(direction, test_point, col, row);
} else if ((direction == "north") && (curr_row < row)) {
if (errors == 0) {
_root["step" + step].gotoAndStop(2);
}
errors++;
} else if ((direction == "south") && (curr_row < row)) {
check_roads(direction, test_point, col, row);
} else if ((direction == "south") && (row < curr_row)) {
if (errors == 0) {
_root["step" + step].gotoAndStop(2);
}
errors++;
} else if (((direction == "north") || (direction == "south")) && (curr_row == row)) {
if (errors == 0) {
_root["step" + step].gotoAndStop(2);
}
errors++;
}
} else {
if (errors == 0) {
_root["step" + step].gotoAndStop(2);
}
errors++;
}
}
if ((direction == "east") || (direction == "west")) {
if (curr_row == row) {
current_point = (("col" + col) + "_row") + row;
if ((direction == "east") && (curr_col < col)) {
check_roads(direction, test_point, col, row);
} else if ((direction == "east") && (col < curr_col)) {
if (errors == 0) {
_root["step" + step].gotoAndStop(2);
}
errors++;
} else if ((direction == "west") && (col < curr_col)) {
check_roads(direction, test_point, col, row);
} else if ((direction == "west") && (curr_col < col)) {
if (errors == 0) {
_root["step" + step].gotoAndStop(2);
}
errors++;
} else if (((direction == "east") || (direction == "west")) && (curr_col == col)) {
if (errors == 0) {
_root["step" + step].gotoAndStop(2);
}
errors++;
}
} else {
if (errors == 0) {
_root["step" + step].gotoAndStop(2);
}
errors++;
}
}
}
temp = [];
j++;
}
direction = "";
icon = "";
}
i++;
}
if (errors == 0) {
var i = 0;
while (i < char_path.length) {
if (char_path[i] eq _root.end_char) {
_root.steps = i + 1;
}
i++;
}
_root.animate.play_it(play_paths);
path_count = play_paths.length;
play_paths = [];
} else {
if (errors >= 1) {
_root.error.gotoAndStop("wrong_1");
}
play_paths = [];
}
}
function check_roads(direction, test_point, dest_col, dest_row) {
var path_count = 0;
var test_col = test_point.substr(3, 1);
var test_row = test_point.substr(8);
if (direction == "north") {
check = test_row - dest_row;
var i = 1;
while (check >= i) {
for (var path in paths) {
var test_path = paths[path];
var test_point1 = ((("col" + test_col) + "_row") + test_row);
var test_point2 = ((("col" + test_col) + "_row") + (test_row - 1));
if (_root.maps[test_path].hitTest(_root.maps[test_point1]) && (_root.maps[test_path].hitTest(_root.maps[test_point2]))) {
play_paths.push((test_path + ",") + direction);
path_count++;
}
}
test_row--;
i++;
}
} else if (direction == "south") {
check = dest_row - test_row;
var i = 1;
while (check >= i) {
for (var path in paths) {
var test_path = paths[path];
var test_point1 = ((("col" + test_col) + "_row") + test_row);
test_row = test_row - 0;
var test_point2 = ((("col" + test_col) + "_row") + (test_row + 1));
if (_root.maps[test_path].hitTest(_root.maps[test_point1]) && (_root.maps[test_path].hitTest(_root.maps[test_point2]))) {
play_paths.push((test_path + ",") + direction);
path_count++;
}
}
test_row++;
i++;
}
} else if (direction == "west") {
check = test_col - dest_col;
var i = 1;
while (check >= i) {
for (var path in paths) {
var test_path = paths[path];
var test_point1 = ((("col" + test_col) + "_row") + test_row);
var test_point2 = ((("col" + (test_col - 1)) + "_row") + test_row);
if (_root.maps[test_path].hitTest(_root.maps[test_point1]) && (_root.maps[test_path].hitTest(_root.maps[test_point2]))) {
play_paths.push((test_path + ",") + direction);
path_count++;
}
}
test_col--;
i++;
}
} else if (direction == "east") {
check = dest_col - test_col;
var i = 1;
while (check >= i) {
for (var path in paths) {
var test_path = paths[path];
var test_point1 = ((("col" + test_col) + "_row") + test_row);
test_col = test_col - 0;
var test_point2 = ((("col" + (test_col + 1)) + "_row") + test_row);
if (_root.maps[test_path].hitTest(_root.maps[test_point1]) && (_root.maps[test_path].hitTest(_root.maps[test_point2]))) {
play_paths.push((test_path + ",") + direction);
path_count++;
}
}
test_col++;
i++;
}
}
}
function finish() {
_root.extra = 0;
if ((_root.steps != 0) && (_root.steps < char_path.length)) {
_root.extra++;
}
if ((_root.steps != 0) && (_root.extra == 0)) {
_root.maps.finish.play();
} else if (!_root.instructions_float) {
_root.score = "missed";
_root.payoffs.gotoAndPlay("missed");
if (_root.this_map == 1) {
_root.arthur_visited = 1;
} else if (_root.this_map == 2) {
_root.sue_ellen_visited = 1;
} else if (_root.this_map == 3) {
_root.binky_visited = 1;
} else if (_root.this_map == 4) {
_root.fern_visited = 1;
} else if (_root.this_map == 5) {
_root.ratburn_visited = 1;
} else if (_root.this_map == 6) {
_root.prunella_visited = 1;
} else if (_root.this_map == 7) {
_root.brain_visited = 1;
} else if (_root.this_map == 8) {
_root.francine_visited = 1;
}
}
}
function payoff() {
if (!_root.instructions_float) {
if (_root.this_map == 1) {
_root.arthur_visited = 1;
} else if (_root.this_map == 2) {
_root.sue_ellen_visited = 1;
} else if (_root.this_map == 3) {
_root.binky_visited = 1;
} else if (_root.this_map == 4) {
_root.fern_visited = 1;
} else if (_root.this_map == 5) {
_root.ratburn_visited = 1;
} else if (_root.this_map == 6) {
_root.prunella_visited = 1;
} else if (_root.this_map == 7) {
_root.brain_visited = 1;
} else if (_root.this_map == 8) {
_root.francine_visited = 1;
}
if (_root.steps == _root.steps_short) {
_root.score = "short";
_root.payoffs.gotoAndPlay("short");
} else if ((_root.steps_short < _root.steps) && (_root.steps_med >= _root.steps)) {
if ((_root.this_map == 2) || (_root.this_map == 6)) {
_root.score = "long";
_root.payoffs.gotoAndPlay("long");
} else {
_root.score = "med";
_root.payoffs.gotoAndPlay("med");
}
} else if (((_root.steps_short < _root.steps) && (_root.steps_med < _root.steps)) && (_root.steps_long >= _root.steps)) {
_root.score = "long";
_root.payoffs.gotoAndPlay("long");
}
}
}
function reset() {
_root.payoffs.gotoAndStop(1);
_root.error.gotoAndStop(1);
_root.clear_errors();
_root.clear_paths();
for (var chip in chip_count) {
var chip_name = chip_count[chip];
_root[chip_name].removeMovieClip();
}
chip_count = [];
_root.make_arrows();
_root.make_icons();
_root.travel_sound.gotoAndStop(1);
route = [];
play_paths = [];
_root.ride.stop();
}
function clear_paths() {
for (var temp in paths) {
var path = paths[temp];
_root.maps[path].gotoAndStop(1);
}
_root.payoffs.gotoAndStop(1);
}
function clear_icons() {
for (var chip in chip_count) {
var chip_name = chip_count[chip];
_root[chip_name].removeMovieClip();
}
chip_count = [];
}
function clear_errors() {
_root.error.gotoAndStop(1);
var i = 1;
while (6 >= i) {
_root["step" + i].gotoAndStop(1);
i++;
}
}
function next() {
_root.this_map++;
if (4 >= _root.this_map) {
next_map = "map_" + _root.this_map;
_root.maps.gotoAndStop(next_map);
}
}
function show_instructions() {
_root.level++;
if (!_root.instructions_float) {
attachMovie("instructions_mc", "instructions_float", _root.level);
_root.instructions_float._x = 298;
_root.instructions_float._y = 175;
_root.instructions_float.play();
} else {
_root.instructions_float.removeMovieClip();
}
}
arrows = ["north", "south", "east", "west"];
icon_characters = ["arthur", "binky", "brain", "fern", "francine", "prunella", "ratburn", "sue_ellen", "thora"];
var level = 0;
var quantity = 3;
chip_count = [];
play_paths = [];
route = [];
Symbol 4 Button
on (press) {
origX = this._x;
origY = this._y;
_root.chip_name = this._name;
this.startX = _root[this._name]._x;
this.startY = _root[this._name]._y;
if (5 < _root.chip_name.lastIndexOf("_")) {
_root.chip_name = _root.chip_name.substring(0, _root.chip_name.lastIndexOf("_"));
}
_root.level++;
this.swapDepths(_root.level);
_root.level++;
this.startDrag();
}
on (release, releaseOutside) {
stopDrag();
stopAllSounds();
_root.travel_sound.gotoAndStop(1);
_root.ride.gotoAndStop(1);
_root.maps.start.gotoAndStop(1);
_root.maps.finish.gotoAndStop(1);
if (this._name.substr(0, 4) == "arro") {
var shape = "arrow";
} else if (this._name.substr(0, 4) == "icon") {
var shape = "icon";
}
var dropped_on = _droptarget.substr(1, 4);
var temp_shape;
if (5 < this._name.lastIndexOf("_")) {
temp_shape = this._name.substring(0, this._name.lastIndexOf("_"));
}
var temp = eval (_droptarget);
var temp_target = temp._name.substring(0, temp._name.lastIndexOf("_"));
if ((dropped_on == "squa") && (shape == "arrow")) {
target = eval (_droptarget);
this._x = target._x;
this._y = target._y;
_root.clicksound.play();
this.gotoAndStop(2);
} else if ((dropped_on == "circ") && (shape == "icon")) {
target = eval (_droptarget);
this._x = target._x;
this._y = target._y;
_root.clicksound.play();
this.gotoAndStop(2);
} else if ((temp_shape == temp_target) && (300 < this._y)) {
target = eval (_droptarget);
this._x = target._x;
this._y = target._y;
_root.clicksound.play();
this.gotoAndStop(1);
} else if ((((dropped_on == "icon") && (shape == "icon")) || ((dropped_on == "arro") && (shape == "arrow"))) && (this._y < 290)) {
target = eval (_droptarget);
this._x = target._x;
this._y = target._y;
target.removeMovieClip();
_root.clicksound.play();
this.gotoAndStop(2);
} else if (dropped_on == "tras") {
if (300 < startY) {
_root.attachMovie("m_" + _root.chip_name, (_root.chip_name + "_") + _root.level, _root.level);
_root[(_root.chip_name + "_") + _root.level]._x = this.startX;
_root[(_root.chip_name + "_") + _root.level]._y = this.startY;
_root.chip_count.push((_root.chip_name + "_") + _root.level);
_root.level++;
}
_root.trash.play();
_root.clear_errors();
_root.clear_paths();
this.removeMovieClip();
} else {
this._x = origX;
this._y = origY;
}
if (300 < startY) {
_root.attachMovie("m_" + _root.chip_name, (_root.chip_name + "_") + _root.level, _root.level);
_root[(_root.chip_name + "_") + _root.level]._x = this.startX;
_root[(_root.chip_name + "_") + _root.level]._y = this.startY;
_root.chip_count.push((_root.chip_name + "_") + _root.level);
_root.level++;
}
_root.clear_errors();
_root.clear_paths();
}
Symbol 8 MovieClip [m_icon_prunella] Frame 1
stop();
Symbol 8 MovieClip [m_icon_prunella] Frame 3
stop();
Symbol 10 MovieClip [m_icon_ratburn] Frame 1
stop();
Symbol 10 MovieClip [m_icon_ratburn] Frame 3
stop();
Symbol 12 MovieClip [m_icon_brain] Frame 1
stop();
Symbol 12 MovieClip [m_icon_brain] Frame 3
stop();
Symbol 14 MovieClip [m_icon_thora] Frame 1
stop();
Symbol 14 MovieClip [m_icon_thora] Frame 3
stop();
Symbol 16 MovieClip [m_icon_sue_ellen] Frame 1
stop();
Symbol 16 MovieClip [m_icon_sue_ellen] Frame 3
stop();
Symbol 18 MovieClip [m_icon_francine] Frame 1
stop();
Symbol 18 MovieClip [m_icon_francine] Frame 3
stop();
Symbol 20 MovieClip [m_icon_fern] Frame 1
stop();
Symbol 20 MovieClip [m_icon_fern] Frame 3
stop();
Symbol 22 MovieClip [m_icon_binky] Frame 1
stop();
Symbol 22 MovieClip [m_icon_binky] Frame 3
stop();
Symbol 24 MovieClip [m_icon_arthur] Frame 1
stop();
Symbol 24 MovieClip [m_icon_arthur] Frame 3
stop();
Symbol 28 MovieClip [m_arrow_north] Frame 1
stop();
Symbol 28 MovieClip [m_arrow_north] Frame 3
stop();
Symbol 29 MovieClip [m_arrow_south] Frame 1
stop();
Symbol 29 MovieClip [m_arrow_south] Frame 3
stop();
Symbol 30 MovieClip [m_arrow_east] Frame 1
stop();
Symbol 30 MovieClip [m_arrow_east] Frame 3
stop();
Symbol 31 MovieClip [m_arrow_west] Frame 1
stop();
Symbol 31 MovieClip [m_arrow_west] Frame 3
stop();
Symbol 57 MovieClip Frame 1
playing = 0;
stop();
Symbol 57 MovieClip Frame 2
playing = 1;
Symbol 59 MovieClip Frame 1
stop();
Symbol 73 MovieClip Frame 1
stop();
Symbol 73 MovieClip Frame 5
stop();
Symbol 73 MovieClip Frame 9
stop();
Symbol 78 MovieClip Frame 1
stop();
Symbol 78 MovieClip Frame 5
stop();
Symbol 78 MovieClip Frame 9
stop();
Symbol 81 MovieClip Frame 1
stop();
Symbol 81 MovieClip Frame 5
stop();
Symbol 81 MovieClip Frame 9
stop();
Symbol 84 MovieClip Frame 1
stop();
Symbol 84 MovieClip Frame 5
stop();
Symbol 84 MovieClip Frame 9
stop();
Symbol 87 MovieClip Frame 1
stop();
Symbol 87 MovieClip Frame 5
stop();
Symbol 87 MovieClip Frame 9
stop();
Symbol 118 MovieClip Frame 1
stop();
Symbol 118 MovieClip Frame 16
Symbol 118 MovieClip Frame 23
gotoAndPlay (16);
Symbol 118 MovieClip Frame 153
stop();
Symbol 118 MovieClip Frame 268
stop();
Symbol 118 MovieClip Frame 275
play();
Symbol 118 MovieClip Frame 314
_root.maps.intro_played = 0;
_root.maps.start.gotoAndPlay(5);
Symbol 118 MovieClip Frame 351
_root.maps.intro_played = 0;
_root.maps.finish.gotoAndPlay(5);
Symbol 118 MovieClip Frame 530
gotoAndStop (1);
Symbol 125 Button
on (release, releaseOutside) {
stopAllSounds();
_root.show_instructions();
}
Symbol 143 Button
on (release, releaseOutside) {
gotoAndStop (1);
this.removeMovieClip();
}
Symbol 147 Button
on (release, releaseOutside) {
gotoAndPlay (5);
}
Symbol 148 MovieClip [instructions_mc] Frame 5
ride.blink.gotoAndStop(1);
Symbol 148 MovieClip [instructions_mc] Frame 559
ride.blink.gotoAndStop(1);
Symbol 148 MovieClip [instructions_mc] Frame 573
ride.blink.gotoAndStop(1);
Symbol 148 MovieClip [instructions_mc] Frame 881
stop();
Symbol 149 MovieClip Frame 1
if (_root.played == 1) {
gotoAndPlay (51);
} else {
play();
}
Symbol 149 MovieClip Frame 7
_root.played = 1;
Symbol 149 MovieClip Frame 172
stop();
Symbol 150 Button
on (rollOver) {
hm_ratburn.gotoAndStop("roll");
}
on (rollOut) {
if (_root.ratburn_visited == 1) {
hm_ratburn.gotoAndStop("visited");
} else {
hm_ratburn.gotoAndStop("reg");
}
}
on (release) {
stopAllSounds();
_root.start_point = "map_5";
gotoAndStop (10);
}
Symbol 151 Button
on (rollOver) {
hm_prunella.gotoAndStop("roll");
}
on (rollOut) {
if (_root.prunella_visited == 1) {
hm_prunella.gotoAndStop("visited");
} else {
hm_prunella.gotoAndStop("reg");
}
}
on (release) {
stopAllSounds();
_root.start_point = "map_6";
gotoAndStop (10);
}
Symbol 152 Button
on (rollOver) {
hm_brain.gotoAndStop("roll");
}
on (rollOut) {
if (_root.brain_visited == 1) {
hm_brain.gotoAndStop("visited");
} else {
hm_brain.gotoAndStop("reg");
}
}
on (release) {
stopAllSounds();
_root.start_point = "map_7";
gotoAndStop (10);
}
Symbol 153 Button
on (rollOver) {
hm_francine.gotoAndStop("roll");
}
on (rollOut) {
if (_root.francine_visited == 1) {
hm_francine.gotoAndStop("visited");
} else {
hm_francine.gotoAndStop("reg");
}
}
on (release) {
stopAllSounds();
_root.start_point = "map_8";
gotoAndStop (10);
}
Symbol 154 Button
on (rollOver) {
hm_fern.gotoAndStop("roll");
}
on (rollOut) {
if (_root.fern_visited == 1) {
hm_fern.gotoAndStop("visited");
} else {
hm_fern.gotoAndStop("reg");
}
}
on (release) {
stopAllSounds();
_root.start_point = "map_4";
gotoAndStop (10);
}
Symbol 155 Button
on (rollOver) {
hm_binky.gotoAndStop("roll");
}
on (rollOut) {
if (_root.binky_visited == 1) {
hm_binky.gotoAndStop("visited");
} else {
hm_binky.gotoAndStop("reg");
}
}
on (release) {
stopAllSounds();
_root.start_point = "map_3";
gotoAndStop (10);
}
Symbol 156 Button
on (rollOver) {
hm_sue_ellen.gotoAndStop("roll");
}
on (rollOut) {
if (_root.sue_ellen_visited == 1) {
hm_sue_ellen.gotoAndStop("visited");
} else {
hm_sue_ellen.gotoAndStop("reg");
}
}
on (release) {
stopAllSounds();
_root.start_point = "map_2";
gotoAndStop (10);
}
Symbol 157 Button
on (rollOver) {
hm_arthur.gotoAndStop("roll");
}
on (rollOut) {
if (_root.arthur_visited == 1) {
hm_arthur.gotoAndStop("visited");
} else {
hm_arthur.gotoAndStop("reg");
}
}
on (release) {
stopAllSounds();
_root.start_point = "map_1";
gotoAndStop (10);
}
Symbol 160 MovieClip Frame 1
stop();
Symbol 160 MovieClip Frame 5
stop();
Symbol 160 MovieClip Frame 9
stop();
Symbol 163 MovieClip Frame 1
stop();
Symbol 163 MovieClip Frame 5
stop();
Symbol 163 MovieClip Frame 9
stop();
Symbol 166 MovieClip Frame 1
stop();
Symbol 166 MovieClip Frame 5
stop();
Symbol 166 MovieClip Frame 9
stop();
Symbol 170 Button
on (release, releaseOutside) {
_root.intro_george.stop();
stopAllSounds();
_root.show_instructions();
}
Symbol 171 Button
on (release, releaseOutside) {
stopAllSounds();
_root.ride.gotoAndStop(1);
_root.clear_errors();
}
Symbol 177 MovieClip Frame 1
stop();
Symbol 177 MovieClip Frame 2
_root.ride.gotoAndPlay("error_01");
Symbol 177 MovieClip Frame 3
_root.ride.gotoAndPlay("error_02");
Symbol 181 Button
on (release, releaseOutside) {
stopAllSounds();
_root.clear_icons();
_root.gotoAndStop("intro");
gotoAndStop (1);
}
Symbol 190 MovieClip Frame 1
stop();
if (_root.score == "med") {
gotoAndPlay (11);
} else if (_root.score == "long") {
gotoAndPlay (21);
} else if (_root.score == "missed") {
gotoAndPlay (54);
}
Symbol 190 MovieClip Frame 20
if (_root.score == "med") {
stop();
}
Symbol 190 MovieClip Frame 53
if (_root.score == "long") {
gotoAndPlay (21);
}
Symbol 190 MovieClip Frame 87
if (_root.score == "missed") {
gotoAndPlay (54);
}
Symbol 192 Button
on (release, releaseOutside) {
stopAllSounds();
gotoAndStop (1);
}
Symbol 193 Button
on (release, releaseOutside) {
stopAllSounds();
_root.reset();
_root.clear_icons();
_root.gotoAndStop("intro");
}
Symbol 195 Button
on (release, releaseOutside) {
stopAllSounds();
gotoAndStop (1);
}
Symbol 197 Button
on (release, releaseOutside) {
stopAllSounds();
gotoAndStop (1);
}
Symbol 199 MovieClip Frame 1
stop();
Symbol 199 MovieClip Frame 111
stop();
Symbol 199 MovieClip Frame 270
stop();
Symbol 199 MovieClip Frame 424
stop();
Symbol 199 MovieClip Frame 604
stop();
Symbol 201 MovieClip Frame 1
stop();
Symbol 202 Button
on (release, releaseOutside) {
stopAllSounds();
_root.reset();
_root.clear_icons();
_root.gotoAndStop("intro");
}
Symbol 203 Button
on (release, releaseOutside) {
stopAllSounds();
_root.maps.intro_played = 1;
_root.ride.stop();
_root.show_instructions();
}
Symbol 204 MovieClip Frame 1
function play_it(array) {
_root.travel_sound.play();
_root.ride.gotoAndPlay("ride");
first_path = 1;
paths = array;
gotoAndPlay (15);
}
var this_path;
if (_root.travel_sound._currentframe != 1) {
_root.travel_sound.gotoAndStop(1);
_root.ride.stop();
_root.finish();
}
stop();
Symbol 204 MovieClip Frame 15
if (first_path == 1) {
this_path = paths.shift();
first_path = 0;
var temp = this_path.split(",");
var path = temp[0];
var direction = temp[1];
if ((direction == "east") || (direction == "south")) {
direction = "right";
} else if ((direction == "north") || (direction == "west")) {
direction = "left";
}
_root.maps[path].gotoAndPlay(direction);
} else if (((first_path == 0) && (_root.maps[path].played == 1)) && (paths.length != 0)) {
_root.maps[path].played = 0;
this_path = paths.shift();
var temp = this_path.split(",");
var path = temp[0];
var direction = temp[1];
if ((direction == "east") || (direction == "south")) {
direction = "right";
} else if ((direction == "north") || (direction == "west")) {
direction = "left";
}
_root.maps[path].gotoAndPlay(direction);
}
if ((paths.length == 0) && (_root.maps[path].played == 1)) {
gotoAndStop (1);
} else {
gotoAndPlay (2);
}
Symbol 205 MovieClip Frame 1
played = 0;
stop();
Symbol 205 MovieClip Frame 10
played = 1;
stop();
Symbol 205 MovieClip Frame 19
played = 1;
stop();
Symbol 221 MovieClip Frame 1
stop();
Symbol 221 MovieClip Frame 5
if ((_root.maps.intro_played == 1) && (!_root.instructions_float)) {
_root.bell.play();
}
Symbol 221 MovieClip Frame 35
if (_root.maps.intro_played == 0) {
gotoAndStop (1);
}
Symbol 221 MovieClip Frame 36
if ((_root.maps.intro_played == 1) && (!_root.instructions_float)) {
_root.payoff();
} else {
gotoAndStop (1);
}
Symbol 222 MovieClip Frame 1
intro_played = 0;
_root.ride.gotoAndPlay("map_intro");
_root.end_char = "arthur";
_root.this_map = 1;
characters = [];
_root.paths = [];
dot_coords = [];
character_points = [];
_root.steps_short = 3;
_root.steps_med = 4;
_root.steps_long = 6;
var myClip = this;
for (var property in myClip) {
if (typeof(myClip[property]) == "movieclip") {
if (myClip[property]._name.substr(0, 3) eq "col") {
dot = myClip[property]._name;
x = myClip[property]._x;
y = myClip[property]._y;
coords = (x + ",") + y;
dot_coords[dot] = coords;
}
if (myClip[property]._name.substr(0, 4) eq "char") {
var char = myClip[property]._name;
characters.push(char);
}
if (myClip[property]._name.substr(0, 4) eq "path") {
var path = myClip[property]._name;
_root.paths.push(path);
}
}
}
for (var chars in characters) {
var character = characters[chars];
for (var dot in dot_coords) {
if (_root.maps[character].hitTest(_root.maps[dot])) {
character_points.push((character + ",") + dot);
if (_root.maps[character]._name.substr(5) eq "sugarbowl") {
_root.starting_point = dot;
}
}
}
}
for (var temp in ..:icon_characters) {
var found = 0;
var char1 = _parent.icon_characters[temp];
for (var char in character_points) {
var char2 = character_points[char];
char2 = char2.substring(5, char2.indexOf(","));
if (char1 eq char2) {
found++;
}
}
if (found == 0) {
character_points.push(("char_" + char1) + ",col0_row0");
}
}
_root.reset();
Symbol 222 MovieClip Frame 7
intro_played = 0;
_root.ride.gotoAndPlay("map_intro");
_root.end_char = "sue_ellen";
_root.this_map = 2;
characters = [];
_root.paths = [];
dot_coords = [];
character_points = [];
_root.steps_short = 3;
_root.steps_med = 4;
_root.steps_long = 6;
var myClip = this;
for (var property in myClip) {
if (typeof(myClip[property]) == "movieclip") {
if (myClip[property]._name.substr(0, 3) eq "col") {
dot = myClip[property]._name;
x = myClip[property]._x;
y = myClip[property]._y;
coords = (x + ",") + y;
dot_coords[dot] = coords;
}
if (myClip[property]._name.substr(0, 4) eq "char") {
var char = myClip[property]._name;
characters.push(char);
}
if (myClip[property]._name.substr(0, 4) eq "path") {
var path = myClip[property]._name;
_root.paths.push(path);
}
}
}
for (var chars in characters) {
var character = characters[chars];
for (var dot in dot_coords) {
if (_root.maps[character].hitTest(_root.maps[dot])) {
character_points.push((character + ",") + dot);
if (_root.maps[character]._name.substr(5) eq "sugarbowl") {
_root.starting_point = dot;
}
}
}
}
for (var temp in ..:icon_characters) {
var found = 0;
var char1 = _parent.icon_characters[temp];
for (var char in character_points) {
var char2 = character_points[char];
char2 = char2.substring(5, char2.indexOf(","));
if (char1 eq char2) {
found++;
}
}
if (found == 0) {
character_points.push(("char_" + char1) + ",col0_row0");
}
}
_root.reset();
Symbol 222 MovieClip Frame 13
intro_played = 0;
_root.ride.gotoAndPlay("map_intro");
_root.end_char = "binky";
_root.this_map = 3;
characters = [];
_root.paths = [];
dot_coords = [];
character_points = [];
_root.steps_short = 3;
_root.steps_med = 4;
_root.steps_long = 6;
var myClip = this;
for (var property in myClip) {
if (typeof(myClip[property]) == "movieclip") {
if (myClip[property]._name.substr(0, 3) eq "col") {
dot = myClip[property]._name;
x = myClip[property]._x;
y = myClip[property]._y;
coords = (x + ",") + y;
dot_coords[dot] = coords;
}
if (myClip[property]._name.substr(0, 4) eq "char") {
var char = myClip[property]._name;
characters.push(char);
}
if (myClip[property]._name.substr(0, 4) eq "path") {
var path = myClip[property]._name;
_root.paths.push(path);
}
}
}
for (var chars in characters) {
var character = characters[chars];
for (var dot in dot_coords) {
if (_root.maps[character].hitTest(_root.maps[dot])) {
character_points.push((character + ",") + dot);
if (_root.maps[character]._name.substr(5) eq "sugarbowl") {
_root.starting_point = dot;
}
}
}
}
for (var temp in ..:icon_characters) {
var found = 0;
var char1 = _parent.icon_characters[temp];
for (var char in character_points) {
var char2 = character_points[char];
char2 = char2.substring(5, char2.indexOf(","));
if (char1 eq char2) {
found++;
}
}
if (found == 0) {
character_points.push(("char_" + char1) + ",col0_row0");
}
}
_root.reset();
Symbol 222 MovieClip Frame 19
intro_played = 0;
_root.ride.gotoAndPlay("map_intro");
_root.end_char = "fern";
_root.this_map = 4;
characters = [];
_root.paths = [];
dot_coords = [];
character_points = [];
_root.steps_short = 3;
_root.steps_med = 4;
_root.steps_long = 6;
var myClip = this;
for (var property in myClip) {
if (typeof(myClip[property]) == "movieclip") {
if (myClip[property]._name.substr(0, 3) eq "col") {
dot = myClip[property]._name;
x = myClip[property]._x;
y = myClip[property]._y;
coords = (x + ",") + y;
dot_coords[dot] = coords;
}
if (myClip[property]._name.substr(0, 4) eq "char") {
var char = myClip[property]._name;
characters.push(char);
}
if (myClip[property]._name.substr(0, 4) eq "path") {
var path = myClip[property]._name;
_root.paths.push(path);
}
}
}
for (var chars in characters) {
var character = characters[chars];
for (var dot in dot_coords) {
if (_root.maps[character].hitTest(_root.maps[dot])) {
character_points.push((character + ",") + dot);
if (_root.maps[character]._name.substr(5) eq "sugarbowl") {
_root.starting_point = dot;
}
}
}
}
for (var temp in ..:icon_characters) {
var found = 0;
var char1 = _parent.icon_characters[temp];
for (var char in character_points) {
var char2 = character_points[char];
char2 = char2.substring(5, char2.indexOf(","));
if (char1 eq char2) {
found++;
}
}
if (found == 0) {
character_points.push(("char_" + char1) + ",col0_row0");
}
}
_root.reset();
Symbol 222 MovieClip Frame 25
intro_played = 0;
_root.ride.gotoAndPlay("map_intro");
_root.end_char = "ratburn";
_root.this_map = 5;
characters = [];
_root.paths = [];
dot_coords = [];
character_points = [];
_root.steps_short = 3;
_root.steps_med = 4;
_root.steps_long = 6;
var myClip = this;
for (var property in myClip) {
if (typeof(myClip[property]) == "movieclip") {
if (myClip[property]._name.substr(0, 3) eq "col") {
dot = myClip[property]._name;
x = myClip[property]._x;
y = myClip[property]._y;
coords = (x + ",") + y;
dot_coords[dot] = coords;
}
if (myClip[property]._name.substr(0, 4) eq "char") {
var char = myClip[property]._name;
characters.push(char);
}
if (myClip[property]._name.substr(0, 4) eq "path") {
var path = myClip[property]._name;
_root.paths.push(path);
}
}
}
for (var chars in characters) {
var character = characters[chars];
for (var dot in dot_coords) {
if (_root.maps[character].hitTest(_root.maps[dot])) {
character_points.push((character + ",") + dot);
if (_root.maps[character]._name.substr(5) eq "sugarbowl") {
_root.starting_point = dot;
}
}
}
}
for (var temp in ..:icon_characters) {
var found = 0;
var char1 = _parent.icon_characters[temp];
for (var char in character_points) {
var char2 = character_points[char];
char2 = char2.substring(5, char2.indexOf(","));
if (char1 eq char2) {
found++;
}
}
if (found == 0) {
character_points.push(("char_" + char1) + ",col0_row0");
}
}
_root.reset();
Symbol 222 MovieClip Frame 31
intro_played = 0;
_root.ride.gotoAndPlay("map_intro");
_root.end_char = "prunella";
_root.this_map = 6;
characters = [];
_root.paths = [];
dot_coords = [];
character_points = [];
_root.steps_short = 3;
_root.steps_med = 4;
_root.steps_long = 6;
var myClip = this;
for (var property in myClip) {
if (typeof(myClip[property]) == "movieclip") {
if (myClip[property]._name.substr(0, 3) eq "col") {
dot = myClip[property]._name;
x = myClip[property]._x;
y = myClip[property]._y;
coords = (x + ",") + y;
dot_coords[dot] = coords;
}
if (myClip[property]._name.substr(0, 4) eq "char") {
var char = myClip[property]._name;
characters.push(char);
}
if (myClip[property]._name.substr(0, 4) eq "path") {
var path = myClip[property]._name;
_root.paths.push(path);
}
}
}
for (var chars in characters) {
var character = characters[chars];
for (var dot in dot_coords) {
if (_root.maps[character].hitTest(_root.maps[dot])) {
character_points.push((character + ",") + dot);
if (_root.maps[character]._name.substr(5) eq "sugarbowl") {
_root.starting_point = dot;
}
}
}
}
for (var temp in ..:icon_characters) {
var found = 0;
var char1 = _parent.icon_characters[temp];
for (var char in character_points) {
var char2 = character_points[char];
char2 = char2.substring(5, char2.indexOf(","));
if (char1 eq char2) {
found++;
}
}
if (found == 0) {
character_points.push(("char_" + char1) + ",col0_row0");
}
}
_root.reset();
Symbol 222 MovieClip Frame 37
intro_played = 0;
_root.ride.gotoAndPlay("map_intro");
_root.end_char = "brain";
_root.this_map = 7;
characters = [];
_root.paths = [];
dot_coords = [];
character_points = [];
_root.steps_short = 3;
_root.steps_med = 4;
_root.steps_long = 6;
var myClip = this;
for (var property in myClip) {
if (typeof(myClip[property]) == "movieclip") {
if (myClip[property]._name.substr(0, 3) eq "col") {
dot = myClip[property]._name;
x = myClip[property]._x;
y = myClip[property]._y;
coords = (x + ",") + y;
dot_coords[dot] = coords;
}
if (myClip[property]._name.substr(0, 4) eq "char") {
var char = myClip[property]._name;
characters.push(char);
}
if (myClip[property]._name.substr(0, 4) eq "path") {
var path = myClip[property]._name;
_root.paths.push(path);
}
}
}
for (var chars in characters) {
var character = characters[chars];
for (var dot in dot_coords) {
if (_root.maps[character].hitTest(_root.maps[dot])) {
character_points.push((character + ",") + dot);
if (_root.maps[character]._name.substr(5) eq "sugarbowl") {
_root.starting_point = dot;
}
}
}
}
for (var temp in ..:icon_characters) {
var found = 0;
var char1 = _parent.icon_characters[temp];
for (var char in character_points) {
var char2 = character_points[char];
char2 = char2.substring(5, char2.indexOf(","));
if (char1 eq char2) {
found++;
}
}
if (found == 0) {
character_points.push(("char_" + char1) + ",col0_row0");
}
}
_root.reset();
Symbol 222 MovieClip Frame 43
intro_played = 0;
_root.ride.gotoAndPlay("map_intro");
_root.end_char = "francine";
_root.this_map = 8;
characters = [];
_root.paths = [];
dot_coords = [];
character_points = [];
_root.steps_short = 3;
_root.steps_med = 4;
_root.steps_long = 6;
var myClip = this;
for (var property in myClip) {
if (typeof(myClip[property]) == "movieclip") {
if (myClip[property]._name.substr(0, 3) eq "col") {
dot = myClip[property]._name;
x = myClip[property]._x;
y = myClip[property]._y;
coords = (x + ",") + y;
dot_coords[dot] = coords;
}
if (myClip[property]._name.substr(0, 4) eq "char") {
var char = myClip[property]._name;
characters.push(char);
}
if (myClip[property]._name.substr(0, 4) eq "path") {
var path = myClip[property]._name;
_root.paths.push(path);
}
}
}
for (var chars in characters) {
var character = characters[chars];
for (var dot in dot_coords) {
if (_root.maps[character].hitTest(_root.maps[dot])) {
character_points.push((character + ",") + dot);
if (_root.maps[character]._name.substr(5) eq "sugarbowl") {
_root.starting_point = dot;
}
}
}
}
for (var temp in ..:icon_characters) {
var found = 0;
var char1 = _parent.icon_characters[temp];
for (var char in character_points) {
var char2 = character_points[char];
char2 = char2.substring(5, char2.indexOf(","));
if (char1 eq char2) {
found++;
}
}
if (found == 0) {
character_points.push(("char_" + char1) + ",col0_row0");
}
}
_root.reset();
Symbol 223 Button
on (press) {
_root.clicksound.play();
}
on (release, releaseOutside) {
stopAllSounds();
_root.maps.start.gotoAndStop(1);
_root.maps.finish.gotoAndStop(1);
reset();
}
Symbol 225 Button
on (release) {
if (_root.travel_sound.playing == 0) {
stopAllSounds();
}
_root.ride.gotoAndStop(1);
_root.maps.start.gotoAndStop(1);
_root.maps.finish.gotoAndStop(1);
_root.maps.intro_played = 1;
_root.clear_paths();
_root.check_for_blanks();
}
Symbol 227 MovieClip Frame 1
stop();
Symbol 231 MovieClip Frame 1
stop();