Frame 1
function play_sound(the_sound) {
sound_level++;
sound_level = sound_level % 10;
all_sounds.createEmptyMovieClip(the_sound + sound_level, sound_level + 1);
this[the_sound + sound_level] = new Sound(all_sounds[the_sound + sound_level]);
this[the_sound + sound_level].attachSound(the_sound);
this[the_sound + sound_level].start();
}
function work_score() {
level_score[race_num - 1] = my_level_score;
temp_score = 0;
i = 0;
while (i < 10) {
if (level_score[i] > best_score[i]) {
best_score[i] = level_score[i];
}
temp_score = temp_score + best_score[i];
i++;
}
score_length = temp_score.toString().length;
((score_length == 7) ? ((score_zeros = "")) : (((score_length == 6) ? ((score_zeros = "0")) : (((score_length == 5) ? ((score_zeros = "00")) : (((score_length == 4) ? ((score_zeros = "000")) : (((score_length == 3) ? ((score_zeros = "0000")) : (((score_length == 2) ? ((score_zeros = "00000")) : (((score_length == 1) ? ((score_zeros = "000000")) : ((score_zeros = "00000")))))))))))))));
full_score = score_zeros + temp_score;
s = 0;
while (s < 7) {
to = full_score.substr(s, 1);
this["s" + (s + 1)].gotoAndStop(Number(to) + 1);
s++;
}
score_mask.gotoAndStop(score_length);
}
function bit() {
race_num = wood.panel._currentframe;
race = race_num - 1;
wood.panel.ln.gotoAndStop(race_num);
wood.panel.icon.gotoAndStop(race_lock[race]);
if (race_lock[race] == "locked") {
wood.panel.all_time.gotoAndStop(2);
} else {
wood.panel.all_time.gotoAndStop(1);
}
i = 0;
while (i < 10) {
if ((best_time[i] > level_time[i]) || (best_time[i] == undefined)) {
best_time[i] = level_time[i];
}
i++;
}
the_time = level_time[race];
the_best = best_time[race];
if (the_time != undefined) {
i = 1;
while (i <= 6) {
wood.panel.all_time["t" + i].gotoAndStop(Number(the_time.substr(i - 1, 1)) + 1);
i++;
}
} else {
i = 1;
while (i <= 6) {
wood.panel.all_time["t" + i].gotoAndStop(11);
i++;
}
}
if (the_best != undefined) {
i = 1;
while (i <= 6) {
wood.panel.all_time["bt" + i].gotoAndStop(Number(the_best.substr(i - 1, 1)) + 1);
i++;
}
} else {
i = 1;
while (i <= 6) {
wood.panel.all_time["bt" + i].gotoAndStop(11);
i++;
}
}
}
function sun() {
race_num = wood.panel._currentframe;
race = race_num - 1;
wood.panel.ln.gotoAndStop(race_num);
wood.panel.icon.gotoAndStop(1);
}
obstacles1 = new Array([122, 12, 6], [210, 34, 6], [254, 56, 6], [342, 78, 6], [430, 34, 6], [518, 56, 6], [606, 34, 6], [672, 56, 6], [738, 56, 6], [826, 78, 6], [914, 56, 6], [980, 34, 6], [1068, 12, 6], [1134, 166, 6], [1222, 144, 6], [1310, 122, 6], [1420, 122, 6], [1530, 144, 6], [1618, 122, 6], [1706, 100, 6], [1816, 144, 6], [1926, 122, 6], [2058, 100, 6], [2146, 144, 6], [2212, 144, 6], [2300, 166, 6], [2344, 12, 6], [2454, 34, 6], [2564, 56, 6], [2652, 34, 6], [2740, 34, 6], [2806, 56, 6], [2916, 56, 6], [3004, 34, 6], [3114, 34, 6], [3202, 56, 6], [3312, 34, 6], [3444, 34, 6], [3576, 12, 6], [3928, 166, 4], [3994, 144, 4], [4148, 12, 4], [4258, 34, 4], [4412, 122, 3], [4412, 144, 4], [4984, 122, 6], [4984, 144, 6], [4984, 166, 6], [5336, 12, 6], [5336, 34, 6], [5336, 56, 6], [5556, 166, 8], [5644, 144, 8], [5754, 166, 8], [5864, 144, 8], [5996, 166, 8], [6128, 144, 8], [6260, 166, 8], [6678, 56, 4], [6722, 122, 4], [7206, 166, 6], [7272, 144, 6], [7360, 122, 6], [7426, 144, 6], [7514, 122, 6], [7624, 144, 6], [7734, 122, 6], [7844, 144, 6], [7932, 166, 6], [7954, 12, 6], [8020, 34, 6], [8108, 34, 6], [8196, 56, 6], [8306, 34, 6], [8438, 34, 6], [8592, 12, 6], [8834, 144, 4], [8834, 166, 3], [9032, 12, 4], [9032, 34, 3], [9296, 78, 4], [9296, 100, 3], [9516, 144, 3], [9516, 166, 4], [10264, 34, 6], [10484, 144, 6], [10572, 12, 6], [10638, 56, 6], [10858, 166, 6], [10946, 34, 6], [10946, 144, 6], [11122, 34, 6], [11188, 166, 6], [11232, 12, 6]);
candys1 = new Array([1156, 56], [3356, 122], [4500, 56], [6700, 100], [8636, 144], [11012, 78]);
obstacles2 = new Array([232, 56, 1], [232, 122, 1], [298, 56, 1], [364, 122, 1], [408, 56, 1], [474, 122, 1], [540, 56, 1], [540, 122, 1], [870, 56, 1], [870, 122, 1], [936, 122, 1], [1002, 56, 1], [1068, 122, 1], [1134, 56, 1], [1200, 56, 1], [1200, 122, 1], [1530, 56, 1], [1530, 122, 1], [1596, 56, 1], [1662, 122, 1], [1728, 56, 1], [1794, 122, 1], [1860, 56, 1], [1860, 122, 1], [2190, 56, 1], [2190, 122, 1], [2256, 122, 1], [2322, 56, 1], [2388, 122, 1], [2454, 56, 1], [2520, 56, 1], [2520, 122, 1], [2850, 56, 1], [2850, 122, 1], [2916, 56, 1], [2982, 122, 1], [3048, 56, 1], [3114, 122, 1], [3180, 56, 1], [3180, 122, 1], [3510, 56, 1], [3510, 122, 1], [3576, 122, 1], [3642, 56, 1], [3708, 122, 1], [3774, 56, 1], [3840, 56, 1], [3840, 122, 1], [4170, 56, 1], [4170, 122, 1], [4236, 56, 1], [4302, 122, 1], [4368, 56, 1], [4434, 122, 1], [4500, 56, 1], [4566, 56, 1], [4566, 122, 1], [4764, 144, 7], [4764, 166, 7], [4786, 144, 7], [4786, 166, 7], [5006, 144, 7], [5006, 166, 7], [5028, 144, 7], [5028, 166, 7], [5248, 56, 7], [5248, 78, 7], [5270, 56, 7], [5270, 78, 7], [5468, 12, 7], [5468, 34, 7], [5490, 12, 7], [5490, 34, 7], [5732, 144, 7], [5732, 166, 7], [5754, 144, 7], [5754, 166, 7], [6062, 12, 6], [6062, 34, 6], [6062, 56, 6], [6062, 78, 6], [6062, 144, 6], [6062, 166, 6], [6282, 144, 4], [6414, 34, 4], [6678, 100, 4], [6854, 12, 4], [6942, 166, 4], [7074, 34, 4], [7272, 12, 6], [7272, 34, 6], [7272, 100, 6], [7272, 122, 6], [7272, 144, 6], [7272, 166, 6], [7536, 56, 1], [7536, 122, 1], [7602, 122, 1], [7668, 56, 1], [7734, 122, 1], [7800, 56, 1], [7866, 56, 1], [7866, 122, 1], [8020, 12, 7], [8020, 78, 7], [8020, 100, 7], [8020, 166, 7], [8350, 34, 7], [8350, 56, 7], [8350, 122, 7], [8350, 144, 7], [8658, 12, 7], [8658, 78, 7], [8658, 100, 7], [8658, 166, 7], [8812, 166, 1], [8900, 144, 1], [8988, 122, 1], [9076, 122, 1], [9164, 122, 1], [9252, 122, 1], [9340, 12, 1], [9340, 144, 1], [9428, 34, 1], [9428, 166, 1], [9516, 56, 1], [9604, 56, 1], [9692, 56, 1], [9780, 56, 1], [9868, 56, 1], [9868, 166, 1], [9956, 34, 1], [9956, 144, 1], [10044, 12, 1], [10044, 122, 1], [10132, 122, 1], [10220, 122, 1], [10308, 122, 1], [10396, 122, 1], [10484, 12, 1], [10484, 122, 1], [10550, 34, 1], [10550, 122, 1], [10638, 34, 1], [10638, 122, 1], [10726, 34, 1], [10726, 122, 1], [10814, 34, 1], [10814, 122, 1], [10902, 34, 1], [10902, 122, 1], [10990, 34, 1], [10990, 122, 1], [11078, 12, 1], [11078, 144, 1], [11166, 166, 1]);
candys2 = new Array([540, 100], [2498, 166], [4544, 12], [6744, 78], [8812, 78], [11012, 78]);
obstacles3 = new Array([298, 12, 5], [298, 34, 5], [298, 144, 5], [298, 166, 5], [408, 34, 1], [408, 144, 1], [518, 34, 1], [518, 144, 1], [628, 34, 1], [628, 144, 1], [738, 34, 1], [738, 144, 1], [848, 34, 1], [848, 144, 1], [958, 34, 1], [958, 144, 1], [1090, 78, 5], [1090, 100, 5], [1376, 34, 2], [1530, 144, 2], [1640, 12, 2], [1706, 166, 2], [1750, 78, 2], [1904, 144, 2], [1992, 12, 2], [2080, 166, 2], [2344, 12, 5], [2344, 34, 5], [2344, 144, 5], [2344, 166, 5], [2454, 34, 1], [2454, 144, 1], [2564, 34, 1], [2564, 144, 1], [2674, 34, 1], [2674, 144, 1], [2784, 34, 1], [2784, 144, 1], [2894, 34, 1], [2894, 144, 1], [3004, 34, 1], [3004, 144, 1], [3114, 34, 1], [3114, 144, 1], [3224, 34, 1], [3224, 144, 1], [3334, 34, 1], [3334, 144, 1], [3444, 34, 1], [3444, 144, 1], [3752, 12, 7], [3752, 34, 7], [3752, 56, 7], [3752, 122, 7], [3752, 144, 7], [3752, 166, 7], [3906, 78, 5], [3906, 100, 5], [4016, 78, 1], [4126, 100, 1], [4236, 78, 1], [4346, 100, 1], [4456, 78, 1], [4566, 78, 5], [4566, 100, 5], [4698, 166, 7], [4786, 144, 7], [4874, 12, 7], [4874, 34, 7], [4874, 122, 7], [5644, 56, 1], [5644, 122, 1], [5666, 56, 1], [5666, 122, 1], [5688, 56, 1], [5688, 122, 1], [5864, 78, 5], [5864, 100, 5], [5974, 34, 1], [5974, 144, 1], [6084, 34, 1], [6084, 144, 1], [6194, 34, 1], [6194, 144, 1], [6304, 34, 1], [6304, 144, 1], [6414, 78, 5], [6414, 100, 5], [6524, 56, 1], [6524, 122, 1], [6634, 56, 1], [6634, 122, 1], [6744, 56, 1], [6744, 122, 1], [6854, 56, 1], [6854, 122, 1], [6964, 56, 1], [6964, 122, 1], [7074, 56, 1], [7074, 122, 1], [7184, 56, 1], [7184, 122, 1], [7294, 56, 1], [7294, 122, 1], [7404, 78, 5], [7404, 100, 5], [7734, 144, 7], [7734, 166, 7], [7756, 144, 7], [7756, 166, 7], [7866, 144, 7], [7976, 144, 7], [8086, 144, 7], [8196, 144, 7], [8306, 144, 7], [8416, 144, 7], [8416, 166, 7], [8438, 144, 7], [8438, 166, 7], [8614, 12, 7], [8614, 34, 7], [8636, 12, 7], [8636, 34, 7], [8746, 34, 7], [8856, 34, 7], [8966, 34, 7], [9076, 34, 7], [9186, 34, 7], [9296, 34, 7], [9406, 34, 7], [9516, 12, 7], [9516, 34, 7], [9538, 12, 7], [9538, 34, 7], [9758, 122, 2], [9868, 34, 2], [9978, 166, 2], [10088, 12, 2], [10176, 78, 2], [10264, 144, 2], [10374, 56, 2], [10396, 166, 2], [10506, 12, 2], [10616, 100, 2], [10616, 166, 2], [10748, 56, 2], [10858, 122, 2], [10968, 12, 2], [11056, 78, 2], [11122, 12, 2], [11166, 166, 2]);
candys3 = new Array([188, 100], [2388, 100], [4566, 144], [6788, 34], [8988, 100], [11166, 100]);
obstacles4 = new Array([320, 56, 9], [320, 100, 9], [342, 56, 9], [342, 100, 9], [364, 56, 9], [364, 100, 9], [650, 78, 9], [650, 122, 9], [672, 78, 9], [672, 122, 9], [694, 78, 9], [694, 122, 9], [958, 12, 9], [958, 56, 9], [980, 12, 9], [980, 56, 9], [1002, 12, 9], [1002, 56, 9], [1266, 122, 9], [1266, 166, 9], [1288, 122, 9], [1288, 166, 9], [1310, 122, 9], [1310, 166, 9], [1684, 34, 9], [1684, 78, 9], [1706, 34, 9], [1706, 78, 9], [1728, 34, 9], [1728, 78, 9], [1926, 166, 4], [2058, 12, 4], [2058, 100, 9], [2058, 144, 9], [2080, 100, 9], [2080, 144, 9], [2102, 100, 9], [2102, 144, 9], [2344, 78, 4], [2388, 122, 9], [2388, 166, 9], [2410, 122, 9], [2410, 166, 9], [2432, 122, 9], [2432, 166, 9], [2674, 34, 4], [2850, 78, 9], [2850, 122, 9], [2872, 78, 9], [2872, 122, 9], [2894, 78, 9], [2894, 122, 9], [3026, 34, 4], [3224, 122, 4], [3356, 56, 4], [3532, 12, 6], [3532, 34, 6], [3532, 56, 6], [3532, 144, 6], [3532, 166, 6], [3862, 78, 6], [3862, 100, 6], [3862, 122, 6], [3862, 144, 6], [3862, 166, 6], [4148, 12, 6], [4148, 34, 6], [4148, 56, 6], [4148, 78, 6], [4148, 100, 6], [4500, 78, 6], [4500, 100, 6], [4500, 122, 6], [4500, 144, 6], [4500, 166, 6], [4830, 12, 6], [4830, 34, 6], [4830, 56, 6], [4830, 78, 6], [4830, 100, 6], [5160, 166, 8], [5226, 166, 8], [5292, 166, 8], [5358, 166, 8], [5534, 34, 8], [5600, 34, 8], [5666, 34, 8], [5732, 34, 8], [5952, 100, 8], [6018, 100, 8], [6084, 100, 8], [6150, 100, 8], [6304, 12, 8], [6304, 166, 8], [6370, 12, 8], [6370, 166, 8], [6832, 56, 9], [6832, 122, 9], [7030, 12, 9], [7030, 166, 9], [7228, 56, 9], [7228, 122, 9], [7536, 122, 8], [7690, 34, 8], [7756, 166, 8], [7822, 100, 8], [7844, 12, 8], [8020, 144, 6], [8020, 166, 6], [8042, 100, 6], [8042, 122, 6], [8064, 56, 6], [8064, 78, 6], [8328, 12, 6], [8328, 34, 6], [8350, 56, 6], [8350, 78, 6], [8372, 100, 6], [8372, 122, 6], [8570, 144, 6], [8570, 166, 6], [8680, 144, 6], [8680, 166, 6], [8856, 12, 6], [8856, 34, 6], [8966, 12, 6], [8966, 34, 6], [9230, 34, 6], [9230, 56, 6], [9230, 78, 6], [9230, 100, 6], [9230, 122, 6], [9230, 144, 6], [9538, 34, 6], [9538, 56, 6], [9538, 78, 6], [9538, 100, 6], [9538, 122, 6], [9538, 144, 6], [9846, 12, 6], [9846, 34, 6], [9846, 56, 6], [9846, 122, 6], [9846, 144, 6], [9846, 166, 6], [10044, 56, 9], [10044, 100, 9], [10066, 56, 9], [10066, 100, 9], [10088, 56, 9], [10088, 100, 9], [10308, 78, 9], [10308, 122, 9], [10330, 78, 9], [10330, 122, 9], [10352, 78, 9], [10352, 122, 9], [10594, 122, 9], [10594, 166, 9], [10616, 122, 9], [10616, 166, 9], [10638, 122, 9], [10638, 166, 9], [10858, 34, 9], [10858, 78, 9], [10880, 34, 9], [10880, 78, 9], [10902, 34, 9], [10902, 78, 9], [11144, 12, 9], [11144, 34, 9], [11144, 144, 9], [11144, 166, 9]);
candys4 = new Array([672, 100], [2872, 100], [5072, 100], [7272, 100], [9472, 100]);
obstacles5 = new Array([232, 34, 8], [606, 144, 8], [826, 100, 8], [1024, 12, 8], [1266, 166, 8], [1420, 12, 8], [1530, 122, 8], [1750, 78, 8], [1904, 166, 8], [2080, 12, 8], [2300, 100, 8], [2476, 166, 8], [2674, 34, 8], [2894, 12, 8], [2960, 100, 8], [3048, 56, 8], [3202, 166, 8], [3312, 122, 8], [3444, 12, 8], [3488, 34, 8], [3488, 100, 8], [3554, 144, 8], [4632, 166, 8], [4742, 122, 8], [4808, 34, 8], [4918, 12, 8], [5028, 144, 8], [5226, 166, 8], [5248, 78, 8], [5336, 56, 8], [5490, 34, 8], [5490, 144, 8], [5600, 122, 8], [5688, 12, 8], [5754, 166, 8], [5798, 56, 8], [5842, 122, 8], [5908, 34, 8], [5996, 12, 8], [6722, 12, 6], [6722, 166, 6], [6744, 34, 6], [6744, 144, 6], [6766, 56, 6], [6766, 122, 6], [6876, 56, 6], [6876, 122, 6], [6986, 56, 6], [6986, 122, 6], [7096, 56, 6], [7096, 122, 6], [7206, 56, 6], [7206, 122, 6], [7316, 56, 6], [7316, 122, 6], [7426, 56, 6], [7426, 122, 6], [7536, 56, 6], [7536, 122, 6], [7646, 56, 6], [7646, 122, 6], [7756, 56, 6], [7756, 122, 6], [7866, 56, 6], [7866, 122, 6], [7888, 34, 6], [7888, 144, 6], [7910, 12, 6], [7910, 166, 6], [8394, 166, 8], [8416, 12, 8], [8460, 78, 8], [8526, 12, 8], [8570, 144, 8], [8636, 78, 8], [8702, 100, 8], [8702, 166, 8], [8790, 12, 8], [8878, 100, 8], [8966, 56, 8], [9032, 166, 8], [9054, 12, 8], [9098, 100, 8], [9164, 12, 8], [9230, 78, 8], [9384, 166, 8], [9472, 34, 8], [10264, 166, 6], [10286, 144, 6], [10308, 122, 6], [10330, 100, 6], [10352, 78, 6], [10374, 56, 6], [10484, 56, 6], [10594, 56, 6], [10704, 56, 6], [10814, 56, 6], [10924, 56, 6], [11034, 56, 6], [11144, 56, 6], [11166, 78, 6], [11188, 100, 6], [11210, 122, 6], [11232, 144, 6], [11254, 166, 6]);
candys5 = new Array([452, 166], [2652, 166], [4874, 78], [7052, 100], [9340, 122], [11078, 34]);
obstacles6 = new Array([298, 34, 5], [298, 56, 5], [298, 122, 5], [298, 144, 5], [518, 78, 5], [518, 100, 5], [826, 12, 5], [826, 34, 5], [826, 144, 5], [826, 166, 5], [1046, 34, 1], [1068, 34, 1], [1090, 56, 1], [1112, 78, 1], [1134, 78, 1], [1332, 56, 1], [1354, 78, 1], [1376, 78, 1], [1398, 100, 1], [1420, 122, 1], [1596, 166, 1], [1618, 166, 1], [1640, 144, 1], [1662, 144, 1], [1684, 122, 1], [1816, 78, 1], [1816, 100, 1], [1838, 34, 1], [1838, 56, 1], [1860, 12, 1], [2036, 100, 1], [2058, 100, 1], [2080, 122, 1], [2102, 122, 1], [2124, 122, 1], [2300, 166, 1], [2322, 166, 1], [2344, 144, 1], [2366, 122, 1], [2388, 100, 1], [2564, 12, 1], [2586, 12, 1], [2608, 34, 1], [2630, 34, 1], [2652, 56, 1], [2806, 122, 1], [2828, 144, 1], [2850, 144, 1], [2872, 166, 1], [2894, 166, 1], [3202, 166, 1], [3224, 166, 1], [3246, 144, 1], [3268, 144, 1], [3290, 122, 1], [3444, 78, 1], [3466, 78, 1], [3488, 78, 1], [3510, 78, 1], [3532, 78, 1], [3686, 100, 1], [3708, 100, 1], [3730, 122, 1], [3752, 122, 1], [3774, 144, 1], [3906, 166, 1], [3928, 166, 1], [3950, 144, 1], [3972, 144, 1], [3994, 122, 1], [4170, 56, 1], [4192, 34, 1], [4214, 12, 1], [4236, 12, 1], [4258, 12, 1], [4456, 144, 7], [4522, 56, 7], [4588, 78, 7], [4610, 144, 7], [4808, 56, 7], [4852, 34, 7], [4852, 100, 7], [4896, 78, 7], [5226, 144, 7], [5248, 122, 7], [5292, 100, 7], [5292, 144, 7], [5578, 12, 1], [5600, 12, 1], [5622, 34, 1], [5644, 34, 1], [5666, 56, 1], [5820, 122, 1], [5842, 144, 1], [5864, 144, 1], [5886, 166, 1], [5908, 166, 1], [6106, 78, 1], [6106, 100, 1], [6128, 56, 1], [6128, 78, 1], [6150, 56, 1], [6326, 12, 1], [6348, 12, 1], [6370, 12, 1], [6392, 34, 1], [6414, 34, 1], [6524, 144, 1], [6546, 122, 1], [6634, 34, 1], [6656, 56, 1], [6810, 166, 1], [6832, 144, 1], [6942, 12, 1], [6964, 34, 1], [7096, 166, 1], [7118, 144, 1], [7316, 78, 1], [7338, 56, 1], [7932, 78, 5], [7932, 100, 5], [8262, 122, 5], [8262, 144, 5], [8438, 122, 5], [8438, 144, 5], [8746, 34, 5], [8746, 56, 5], [8988, 100, 5], [8988, 122, 5], [9164, 34, 5], [9164, 56, 5], [9318, 12, 7], [9318, 166, 7], [9406, 12, 7], [9406, 166, 7], [9494, 12, 7], [9494, 166, 7], [9582, 12, 7], [9582, 166, 7], [9670, 12, 7], [9670, 166, 7], [9758, 12, 7], [9758, 166, 7], [9846, 12, 7], [9846, 166, 7], [9934, 12, 7], [9934, 166, 7], [10022, 12, 7], [10022, 166, 7], [10110, 12, 7], [10110, 166, 7], [10198, 12, 7], [10198, 166, 7], [10286, 12, 7], [10286, 166, 7], [10374, 12, 7], [10374, 166, 7], [10462, 12, 7], [10462, 166, 7], [10550, 12, 7], [10550, 166, 7], [10638, 12, 7], [10638, 166, 7], [10726, 12, 7], [10726, 166, 7], [10814, 12, 7], [10814, 166, 5], [10902, 12, 7], [10902, 166, 7], [10990, 12, 7], [10990, 166, 7], [11078, 12, 7], [11078, 166, 7], [11166, 12, 7], [11166, 166, 7], [11254, 12, 7], [11254, 166, 7], [11342, 12, 7], [11342, 166, 7]);
candys6 = new Array([298, 100], [2498, 100], [4544, 100], [6678, 100], [8944, 100], [10770, 100]);
obstacles7 = new Array([518, 12, 6], [518, 34, 6], [518, 56, 6], [518, 78, 6], [518, 100, 6], [848, 78, 6], [848, 100, 6], [848, 122, 6], [848, 144, 6], [848, 166, 6], [1244, 12, 6], [1244, 34, 6], [1244, 56, 6], [1244, 78, 6], [1244, 100, 6], [1662, 78, 6], [1662, 100, 6], [1662, 122, 6], [1662, 144, 6], [1662, 166, 6], [2036, 12, 6], [2036, 34, 6], [2036, 56, 6], [2036, 78, 6], [2036, 100, 6], [2410, 78, 6], [2410, 100, 6], [2410, 122, 6], [2410, 144, 6], [2410, 166, 6], [2872, 12, 6], [2872, 34, 6], [2872, 56, 6], [2872, 78, 6], [2872, 100, 6], [3312, 78, 6], [3312, 100, 6], [3312, 122, 6], [3312, 144, 6], [3312, 166, 6], [3642, 12, 6], [3642, 34, 6], [3642, 56, 6], [3642, 78, 6], [3642, 100, 6], [5050, 12, 6], [5050, 34, 6], [5050, 56, 6], [5050, 78, 6], [5050, 100, 6], [5380, 78, 6], [5380, 100, 6], [5380, 122, 6], [5380, 144, 6], [5380, 166, 6], [5710, 12, 6], [5710, 34, 6], [5710, 56, 6], [5710, 78, 6], [5710, 100, 6], [6040, 78, 6], [6040, 100, 6], [6040, 122, 6], [6040, 144, 6], [6040, 166, 6], [6348, 12, 6], [6348, 34, 6], [6348, 56, 6], [6348, 78, 6], [6348, 100, 6], [6656, 78, 6], [6656, 100, 6], [6656, 122, 6], [6656, 144, 6], [6656, 166, 6], [6942, 12, 6], [6942, 34, 6], [6942, 56, 6], [6942, 78, 6], [6942, 100, 6], [8438, 12, 6], [8438, 34, 6], [8438, 56, 6], [8438, 78, 6], [8438, 100, 6], [8724, 78, 6], [8724, 100, 6], [8724, 122, 6], [8724, 144, 6], [8724, 166, 6], [9054, 12, 6], [9054, 34, 6], [9054, 56, 6], [9054, 78, 6], [9054, 100, 6], [9428, 78, 6], [9428, 100, 6], [9428, 122, 6], [9428, 144, 6], [9428, 166, 6], [9714, 12, 6], [9714, 34, 6], [9714, 56, 6], [9714, 78, 6], [9714, 100, 6], [10066, 78, 6], [10066, 100, 6], [10066, 122, 6], [10066, 144, 6], [10066, 166, 6], [10374, 12, 6], [10374, 34, 6], [10374, 56, 6], [10374, 78, 6], [10374, 100, 6]);
candys7 = new Array([298, 56], [2652, 100], [4852, 100], [7052, 100], [9296, 100], [11056, 100]);
obstacles8 = new Array([1552, 12, 7], [1552, 34, 7], [1552, 56, 7], [1552, 78, 7], [1552, 100, 7], [1552, 122, 7], [1552, 144, 7], [1552, 166, 7], [2212, 12, 7], [2212, 34, 7], [2212, 56, 7], [2212, 78, 7], [2212, 100, 7], [2212, 122, 7], [2212, 144, 7], [2212, 166, 7], [2872, 12, 7], [2872, 34, 7], [2872, 56, 7], [2872, 78, 7], [2872, 100, 7], [2872, 122, 7], [2872, 144, 7], [2872, 166, 7], [3532, 12, 7], [3532, 34, 7], [3532, 56, 7], [3532, 78, 7], [3532, 100, 7], [3532, 122, 7], [3532, 144, 7], [3532, 166, 7], [4016, 12, 1], [4060, 56, 1], [4126, 56, 1], [4214, 56, 1], [4280, 56, 1], [4368, 34, 1], [4434, 34, 1], [4522, 56, 1], [4610, 78, 1], [4676, 56, 1], [4764, 12, 1], [4852, 166, 1], [4962, 122, 1], [5050, 100, 1], [5138, 122, 1], [5270, 122, 1], [5402, 100, 1], [5556, 122, 1], [5710, 122, 1], [5842, 122, 1], [5952, 144, 1], [6084, 144, 1], [6194, 122, 1], [6282, 144, 1], [6348, 12, 1], [6414, 166, 1], [6480, 34, 1], [6568, 34, 1], [6700, 34, 1], [6788, 56, 1], [6920, 56, 1], [7008, 78, 1], [7096, 78, 1], [7228, 56, 1], [7338, 78, 1], [7448, 78, 1], [7514, 56, 1], [7646, 34, 1], [7712, 166, 1], [7734, 12, 1], [7800, 144, 1], [7910, 144, 1], [8020, 100, 1], [8130, 100, 1], [8218, 100, 1], [8284, 122, 1], [8372, 122, 1], [8460, 122, 1], [8614, 122, 1], [8658, 144, 1], [8746, 144, 1], [8878, 166, 1], [9230, 12, 5], [9230, 34, 7], [9230, 56, 7], [9230, 78, 7], [9230, 100, 7], [9230, 122, 7], [9230, 144, 7], [9230, 166, 7], [9890, 12, 7], [9890, 34, 7], [9890, 56, 7], [9890, 78, 7], [9890, 100, 7], [9890, 122, 7], [9890, 144, 7], [9890, 166, 7], [10550, 12, 7], [10550, 34, 7], [10550, 56, 7], [10550, 78, 7], [10550, 100, 7], [10550, 122, 7], [10550, 144, 7], [10550, 166, 7], [11232, 12, 7], [11232, 34, 7], [11232, 56, 7], [11232, 78, 7], [11232, 100, 7], [11232, 122, 7], [11232, 144, 7], [11232, 166, 7]);
candys8 = new Array([144, 100], [2124, 100], [4544, 100], [6634, 100], [8922, 78], [10968, 78]);
obstacles9 = new Array([232, 166, 9], [254, 144, 9], [276, 144, 9], [298, 122, 9], [320, 100, 9], [540, 12, 9], [562, 34, 9], [584, 34, 9], [606, 56, 9], [606, 78, 9], [870, 122, 9], [892, 78, 9], [892, 100, 9], [914, 56, 9], [936, 34, 9], [1134, 12, 9], [1156, 12, 9], [1178, 34, 9], [1200, 34, 9], [1222, 56, 9], [1442, 166, 9], [1464, 166, 9], [1486, 144, 9], [1508, 144, 9], [1530, 122, 9], [1640, 56, 9], [1662, 34, 9], [1684, 34, 9], [1706, 34, 9], [1728, 56, 9], [1970, 122, 9], [1992, 122, 9], [2014, 144, 9], [2036, 144, 9], [2058, 166, 9], [2366, 166, 9], [2388, 144, 9], [2410, 144, 9], [2432, 122, 9], [2454, 100, 9], [2872, 12, 9], [2894, 12, 9], [2916, 34, 9], [2938, 34, 9], [2960, 56, 9], [3202, 12, 6], [3202, 34, 6], [3202, 144, 6], [3202, 166, 6], [6502, 12, 6], [6502, 34, 6], [6502, 144, 6], [6502, 166, 6], [6920, 12, 9], [6942, 34, 9], [6964, 34, 9], [6986, 56, 9], [7008, 56, 9], [7294, 144, 9], [7294, 166, 9], [7316, 100, 9], [7316, 122, 9], [7338, 78, 9], [7734, 12, 9], [7756, 12, 9], [7778, 34, 9], [7800, 34, 9], [7822, 56, 9], [8218, 122, 9], [8218, 144, 9], [8218, 166, 9], [8240, 100, 9], [8262, 78, 9], [8746, 34, 9], [8768, 34, 9], [8790, 56, 9], [8812, 34, 9], [8834, 12, 9], [9032, 78, 9], [9054, 100, 9], [9076, 100, 9], [9098, 122, 9], [9120, 122, 9], [9428, 12, 6], [9428, 34, 6], [9428, 144, 6], [9428, 166, 6]);
candys9 = new Array([232, 78], [2190, 78], [4368, 78], [6084, 78], [8834, 78], [10814, 78]);
obstacles10 = new Array([144, 166, 7], [166, 144, 7], [188, 122, 7], [254, 122, 7], [320, 122, 7], [386, 122, 7], [452, 122, 7], [518, 122, 7], [584, 122, 7], [650, 122, 7], [716, 122, 7], [782, 122, 7], [848, 122, 7], [914, 122, 7], [980, 122, 7], [1002, 100, 7], [1024, 78, 7], [1090, 78, 7], [1156, 78, 7], [1222, 78, 7], [1288, 78, 7], [1354, 78, 7], [1420, 78, 7], [1442, 100, 7], [1464, 122, 7], [1486, 144, 7], [1508, 166, 7], [2366, 78, 7], [2366, 100, 7], [2388, 56, 7], [2388, 122, 7], [2454, 56, 7], [2454, 122, 7], [2520, 56, 7], [2520, 122, 7], [2586, 56, 7], [2586, 122, 7], [2652, 56, 7], [2652, 122, 7], [2718, 56, 7], [2718, 122, 7], [2784, 56, 7], [2784, 122, 7], [2850, 56, 7], [2850, 122, 7], [2916, 56, 7], [2916, 122, 7], [2982, 56, 7], [2982, 122, 7], [3048, 56, 7], [3048, 122, 7], [3114, 56, 7], [3114, 122, 7], [3180, 56, 7], [3180, 122, 7], [3246, 56, 7], [3246, 122, 7], [3312, 56, 7], [3312, 122, 7], [3378, 56, 7], [3378, 122, 7], [3400, 78, 7], [3400, 100, 7], [3994, 166, 1], [4016, 12, 1], [4104, 12, 1], [4126, 144, 1], [4170, 166, 1], [4258, 34, 1], [4346, 144, 1], [4412, 12, 1], [4456, 166, 1], [4522, 12, 1], [4610, 144, 1], [4632, 78, 1], [4698, 12, 1], [4742, 166, 1], [4808, 34, 1], [4808, 144, 1], [4962, 34, 1], [4962, 100, 1], [5028, 166, 1], [5116, 12, 1], [5116, 144, 1], [5226, 56, 1], [5336, 100, 1], [5446, 100, 1], [5468, 12, 1], [5534, 166, 1], [5666, 34, 1], [5666, 100, 1], [5754, 12, 1], [5798, 100, 1], [5864, 166, 1], [5996, 100, 1], [6018, 12, 1], [6150, 12, 1], [6260, 166, 1], [6436, 122, 2], [6436, 144, 2], [6458, 122, 2], [6458, 144, 2], [6590, 12, 2], [6590, 34, 2], [6612, 12, 2], [6612, 34, 2], [6722, 144, 2], [6722, 166, 2], [6744, 144, 2], [6744, 166, 2], [6942, 78, 2], [6942, 100, 2], [6964, 78, 2], [6964, 100, 2], [7206, 12, 2], [7206, 34, 2], [7228, 12, 2], [7228, 34, 2], [7448, 122, 2], [7448, 144, 2], [7470, 122, 2], [7470, 144, 2], [7712, 34, 2], [7712, 56, 2], [7734, 34, 2], [7734, 56, 2], [8020, 144, 2], [8020, 166, 2], [8042, 144, 2], [8042, 166, 2], [8262, 56, 2], [8262, 78, 2], [8284, 56, 2], [8284, 78, 2], [8724, 12, 7], [8746, 34, 7], [8768, 56, 7], [8834, 56, 7], [8900, 56, 7], [8966, 56, 7], [9032, 56, 7], [9098, 56, 7], [9164, 56, 7], [9230, 56, 7], [9296, 56, 7], [9362, 56, 7], [9428, 56, 7], [9494, 56, 7], [9560, 56, 7], [9626, 56, 7], [9648, 34, 7], [9670, 12, 7], [9736, 166, 7], [9758, 144, 7], [9780, 122, 7], [9846, 122, 7], [9912, 122, 7], [9978, 122, 7], [10044, 122, 7], [10110, 122, 7], [10176, 122, 7], [10242, 122, 7], [10308, 122, 7], [10374, 122, 7], [10440, 122, 7], [10506, 122, 7], [10528, 144, 7], [10550, 166, 7], [10616, 12, 7], [10638, 34, 7], [10660, 56, 7], [10726, 56, 7], [10792, 56, 7], [10858, 56, 7], [10924, 56, 7], [10990, 56, 7], [11012, 34, 7], [11034, 12, 7]);
candys10 = new Array([276, 100], [2432, 166], [4368, 100], [6568, 100], [8922, 100], [10110, 100]);
if (!bt_done) {
best_time = new Array(10);
level_time = new Array(10);
best_score = [];
level_score = [];
race_num = 1;
bt_done = true;
trans_list = ["to_grass", "to_dirt", "to_street", "to_night", "to_rain", "to_snow", "to_dirt", "to_street", "to_night", "to_snow"];
}
stop();
if (!sound_created) {
this.createEmptyMovieClip("all_sounds", 5000);
sound_created = true;
}
if (!dusty_made) {
all_sounds.createEmptyMovieClip("dust", 200);
dust = new Sound(all_sounds.dust);
dust.attachSound("dust");
dusty_made = true;
}
if (!theme_made) {
all_sounds.createEmptyMovieClip("intro", 100);
intro = new Sound(all_sounds.intro);
intro.attachSound("intro");
intro.start(0, 99999);
intro.setVolume(60);
ideal_intro_vol = 60;
theme_made = true;
}
if (!game_music_made) {
all_sounds.createEmptyMovieClip("game_music", 101);
game_music = new Sound(all_sounds.game_music);
game_music.attachSound("game_music");
game_music.start(0, 99999);
game_music.setVolume(0);
game_music_made = true;
}
Frame 2
_root.btnInstructOpen.useHandCursor = true;
gotoAndStop (2);
_root.btn_Close.useHandCursor = true;
_root.btn_Close.onPress = function () {
gotoAndStop (6);
};
_root.btn_Back.onPress = function () {
trace("currentframe: " + _root._currentframe);
trace("currentframe: " + _currentframe);
if (_root._currentframe > 2) {
_root.prevFrame();
}
};
_root.btn_Next.onPress = function () {
if (_root._currentframe < 5) {
_root.nextFrame();
}
};
stop();
Frame 6
Instance of Symbol 862 MovieClip "car_select" in Frame 6
onClipEvent (load) {
if (_root.choice != undefined) {
this.gotoAndStop(_root.choice);
}
}
onClipEvent (enterFrame) {
if ((_root.mode != undefined) && (!_root.bn_done)) {
this.gotoAndStop(3);
_root.bn_done = true;
}
}
Instance of Symbol 873 MovieClip in Frame 6
onClipEvent (load) {
if (!_root.modey) {
this.play();
} else {
stop();
}
}
Instance of Symbol 901 MovieClip in Frame 6
onClipEvent (enterFrame) {
this._visible = _root.mode == "sunday";
}
Frame 7
sel = "car";
if (race_lock == undefined) {
choice = 1;
race_lock = new Array(10);
i = 1;
while (i < 10) {
race_lock[i] = "locked";
i++;
}
race_lock[0] = "next_race";
}
ideal_intro_vol = 60;
Instance of Symbol 982 MovieClip "car_select" in Frame 7
onClipEvent (load) {
if (_root.choice != undefined) {
this.gotoAndStop(_root.choice);
}
}
Instance of Symbol 993 MovieClip in Frame 7
onClipEvent (load) {
if (_root.car_select._currentframe != 5) {
(this.gotoAndStop(1));// not popped
} else {
(this.gotoAndStop(2));// not popped
}
right = true;
}
onClipEvent (enterFrame) {
if (_root.car_select._currentframe != 5) {
(this.gotoAndStop(1));// not popped
} else {
(this.gotoAndStop(2));// not popped
}
}
Instance of Symbol 993 MovieClip in Frame 7
onClipEvent (load) {
if (_root.car_select._currentframe != 1) {
(this.gotoAndStop(1));// not popped
} else {
(this.gotoAndStop(2));// not popped
}
left = true;
}
onClipEvent (enterFrame) {
if (_root.car_select._currentframe != 1) {
(this.gotoAndStop(1));// not popped
} else {
(this.gotoAndStop(2));// not popped
}
}
Instance of Symbol 1002 MovieClip in Frame 7
onClipEvent (load) {
if (!_root.cary) {
this.play();
} else {
stop();
}
}
Frame 8
sel = "track";
ideal_intro_vol = 60;
if (!done_score) {
work_score();
done_score = true;
}
if (mode == "race") {
ttt = 0;
i = 0;
while (i < 10) {
if (race_lock[i] == "next_race") {
this.wood.panel.gotoAndStop(i + 1);
ttt++;
}
i++;
}
if (ttt == 0) {
wood.panel.gotoAndStop(10);
}
bit();
}
Instance of Symbol 1084 MovieClip "car_select" in Frame 8
onClipEvent (load) {
this.gotoAndStop(_root.choice);
_root.all_cars.gotoAndStop(11);
_root.all_cars.my_choice.gotoAndStop(_root.choice);
}
Instance of Symbol 993 MovieClip in Frame 8
onClipEvent (load) {
if (_root.sel == "car") {
if (_root.wood.panel._currentframe != 10) {
(this.gotoAndStop(1));// not popped
} else {
(this.gotoAndStop(2));// not popped
}
}
right = true;
}
onClipEvent (enterFrame) {
if (_root.sel == "car") {
if (_root.wood.panel._currentframe != 10) {
(this.gotoAndStop(1));// not popped
} else {
(this.gotoAndStop(2));// not popped
}
}
}
Instance of Symbol 993 MovieClip in Frame 8
onClipEvent (load) {
if (_root.sel == "car") {
if (_root.wood.panel._currentframe != 1) {
(this.gotoAndStop(1));// not popped
} else {
(this.gotoAndStop(2));// not popped
}
}
left = true;
}
onClipEvent (enterFrame) {
if (_root.sel == "car") {
if (_root.wood.panel._currentframe != 1) {
(this.gotoAndStop(1));// not popped
} else {
(this.gotoAndStop(2));// not popped
}
}
}
Instance of Symbol 1093 MovieClip in Frame 8
onClipEvent (load) {
if (!_root.tracky) {
this.play();
} else {
_root.dripped = true;
_root.wood.panel.drip.gotoAndStop(_root.wood.panel.drip._totalframes);
stop();
}
}
Frame 9
function reset_game_vars() {
obstacle_allowance = 8;
candy_allowance = 1;
position_points = [75000, 50000, 35000, 22500, 10000];
perfect_bonus = [18700, 12500, 8750, 5625, 2500];
car1 = [1, 7, 9, 4];
car2 = [1, 8, 9, 4];
car3 = [1, 4, 11, 2];
car4 = [1, 5, 10, 3];
car5 = [1, 6, 10, 2];
car_starts = [20, 55, 90, 125, 160];
the_slope = [0.02, 0.025, 0.03, 0.035, 0.04, 0.045, 0.05, 0.055, 0.06, 0.07];
the_deflection = [0.8, 0.6, 0.7, 0.8, 0.7, 0.6, 0.7, 0.6, 0.7];
car_positions = [];
car_level = [];
elastic = 0.5;
gravity = 160;
jump_power = -130;
number_of_opponents = 4;
}
function reset_level_vars() {
tracky = false;
dripped = false;
cary = false;
modey = false;
done_score = false;
upper_y = 0;
upper_x = 0;
lower_x = 0;
lower_y = 0;
p_bonus = true;
my_level_score = 0;
slope = 0;
stop_clock = true;
unlock_race = false;
end_position = 400;
finish = 12000;
obstacle_ref = [];
opponent_ref = [];
potential_x = 0;
x_speed = 0;
y_speed = 0;
track_position = 0;
v_hero_x = 100;
obstacle_number = 0;
candy_number = 0;
opp_lev = 0;
ms_time = 0;
s_time = 0;
m_time = 0;
sec = 0;
min = 0;
limit_min = 10;
limit_max = 175;
}
function start_race() {
ideal_game_vol = 30;
slope = the_slope[race_num - 1];
i = 1;
while (i <= 4) {
this["opponent" + i].car.car.play();
i++;
}
stop_clock = false;
hero.car.car.play();
}
function to_iso(flt_x, flt_y) {
iso_x = flt_x + flt_y;
iso_y = (flt_y / across_ratio) - (flt_x / down_ratio);
iso_x = iso_x + 0;
iso_y = iso_y + 110;
coords = [iso_x, iso_y];
return(coords);
}
function make_hero() {
this.createEmptyMovieClip("hero", 1);
hero.attachMovie("car", "car", 1);
hero.grip = this["car" + choice][0];
hero.resp = this["car" + choice][1];
hero.max_speed = this["car" + choice][2];
hero.accelerate = this["car" + choice][3];
hero.id = number_of_opponents + 1;
hero.car_x = car_starts[choice - 1];
hero.car.gotoAndStop(choice);
hero.frame = choice;
hero.car.car.stop();
this.createEmptyMovieClip("shadow5", 400 - ((choice - 1) * 10));
this.shadow5.attachMovie("shadow", "shadow", 1);
this.shadow5.shadow.gotoAndStop(choice);
}
function make_opponents() {
i = 0;
while (i <= number_of_opponents) {
if (choice != (i + 1)) {
opp_lev++;
this.createEmptyMovieClip("opponent" + opp_lev, opp_lev + 1);
this["opponent" + opp_lev].attachMovie("opponent", "car", 1);
this["opponent" + opp_lev].car_x = car_starts[i];
this["opponent" + opp_lev].car_y = 0;
this["opponent" + opp_lev].car.gotoAndStop(i + 1);
this["opponent" + opp_lev].frame(i + 1);
this["opponent" + opp_lev].car.car.stop();
this["opponent" + opp_lev].id = opp_lev;
this["opponent" + opp_lev].grip = this["car" + (i + 1)][0];
this["opponent" + opp_lev].resp = this["car" + (i + 1)][1];
this["opponent" + opp_lev].max_speed = this["car" + (i + 1)][2];
this["opponent" + opp_lev].accelerate = this["car" + (i + 1)][3];
this.createEmptyMovieClip("shadow" + opp_lev, 400 - (i * 10));
this["shadow" + opp_lev].attachMovie("shadow", "shadow", 1);
this["shadow" + opp_lev].shadow.gotoAndStop(i + 1);
}
i++;
}
}
function make_scenery() {
this.createEmptyMovieClip("sky", 100);
sky.attachMovie("sky", "sky", 1);
sky.sky.gotoAndStop(race_num);
this.createEmptyMovieClip("the_interface", 10000);
the_interface.attachMovie("hud", "hud", 1);
the_interface.hud.actual.gotoAndStop(choice);
this.createEmptyMovieClip("ground", 201);
ground.attachMovie("ground", "ground", 1);
ground.ground.gotoAndStop(race_num);
this.createEmptyMovieClip("line", 202);
line.attachMovie("line", "line", 1);
this.createEmptyMovieClip("upper_scenery", 200);
upper_scenery.attachMovie("upper_image", "part", 1);
upper_scenery.part.gotoAndStop(race_num);
this.createEmptyMovieClip("lower_scenery", 4000);
lower_scenery.attachMovie("lower_image", "part", 1);
lower_scenery.part.gotoAndStop(race_num);
}
function unlock_new_track() {
if (race_lock[race] == "next_race") {
race_lock[race] = "unlocked";
}
if (race_lock[race_num] == "locked") {
race_lock[race_num] = "next_race";
}
clear_all_objects();
if (mode == "race") {
add_score(position_points[my_position - 1]);
if (p_bonus) {
add_score(perfect_bonus[my_position - 1]);
}
level_time[race_num - 1] = (minutes + seconds) + m_seconds;
}
this.gotoAndStop("choose_race");
}
function race_over() {
clear_all_objects();
if (mode == "race") {
add_score(position_points[my_position - 1]);
if (p_bonus) {
add_score(perfect_bonus[my_position - 1]);
}
level_time[race_num - 1] = (minutes + seconds) + m_seconds;
}
this.gotoAndStop("choose_race");
}
function add_score(to_add) {
if (mode == "race") {
my_level_score = my_level_score + to_add;
}
}
function clear_all_objects() {
sky.removeMovieClip();
the_interface.removeMovieClip();
hero.removeMovieClip();
i = 1;
while (i <= 4) {
this["opponent" + i].removeMovieClip();
i++;
}
i = 0;
while (i < obstacle_allowance) {
this["obstacle" + i].removeMovieClip();
i++;
}
i = 1;
while (i <= 5) {
this["shadow" + i].removeMovieClip();
i++;
}
i = 0;
while (i < 10) {
this["smoke" + i].removeMovieClip();
i++;
}
candy0.removeMovieClip();
upper_scenery.removeMovieClip();
lower_scenery.removeMovieClip();
ground.removeMovieClip();
line.removeMovieClip();
}
function make_obstacle(ob_id) {
this["obstacle" + ob_id].removeMovieClip();
this.createEmptyMovieClip("obstacle" + ob_id, ob_id + 1000);
my_name = this["obstacle" + ob_id];
my_name.attachMovie("obstacle", "obstacle", 1);
my_name.x = this["obstacles" + race_num][obstacle_number][1];
my_name.y = this["obstacles" + race_num][obstacle_number][0] - track_position;
my_name.obstacle.gotoAndStop(this["obstacles" + race_num][obstacle_number][2]);
my_name.deflection = the_deflection[this["obstacles" + race_num][obstacle_number][2] - 1];
my_name.my_position = to_iso(my_name.x, my_name.y);
my_name._x = my_name.my_position[0] * 2;
my_name._y = my_name.my_position[1] * 2;
my_name.id = ob_id;
obstacle_number++;
}
function make_candy() {
candy0.removeMovieClip();
if (this["candys" + race_num].length > candy_number) {
this.createEmptyMovieClip("candy0", 300);
candy_x = 9999;
candy0.attachMovie("candy", "candy", 1);
candy0.x = this["candys" + race_num][candy_number][1];
candy0.y = this["candys" + race_num][candy_number][0] - track_position;
candy0.my_position = to_iso(my_name.x, my_name.y);
candy0._x = my_name.my_position[0] * 2;
candy0._y = my_name.my_position[1] * 2;
}
candy_number++;
}
function go_go() {
trans.removeMovieClip();
this.createEmptyMovieClip("get_ready", 4001);
get_ready.attachMovie("get_ready", "get_ready", 1);
}
function trans_to() {
trans.removeMovieClip();
this.createEmptyMovieClip("trans", 7777);
trans._x = -2;
trans._y = -2;
trans.attachMovie(trans_list[race], "trans", 1);
}
function make_smoke(s_x, s_y) {
smoke_lev++;
smoke_lev = smoke_lev % 10;
this.createEmptyMovieClip("smoke" + smoke_lev, 3000 + smoke_lev);
this["smoke" + smoke_lev].attachMovie("smoke", "smoke", 1);
this["smoke" + smoke_lev].x = s_x;
this["smoke" + smoke_lev].y = s_y;
this["smoke" + smoke_lev].my_position = to_iso(s_x, s_y);
this["smoke" + smoke_lev]._x = this["smoke" + smoke_lev].my_position[0] * 2;
this["smoke" + smoke_lev]._y = this["smoke" + smoke_lev].my_position[1] * 2;
}
stop();
_global.vehicle = function () {
};
vehicle.prototype = new MovieClip();
vehicle.prototype.onLoad = function () {
my = this._parent;
my.boost_speed = my.max_speed * 0.5;
my.boost_acc = my.accelerate;
my.gravity = _root.gravity;
my.elastic = _root.elastic;
};
vehicle.prototype.onEnterFrame = function () {
my = this._parent;
my.up = Key.isDown(32) && (!_root.stop_clock);
if ((!my.up) && (!my.jump)) {
my.jump_pressed = false;
}
my.left = Key.isDown(37);
my.right = Key.isDown(39);
my.brake = Key.isDown(88);
if (!Key.isDown(88)) {
my.fx = false;
}
my.potential_x = (my.right - my.left) * my.resp;
my.x_speed = my.x_speed + ((my.potential_x > my.x_speed) * my.grip);
my.x_speed = my.x_speed - ((my.potential_x < my.x_speed) * my.grip);
my.y_speed = my.y_speed - (_root.slope * (my.accelerate + (my.boost_acc * (my.candy_time > 0))));
my.y_speed = Math.max(-(my.max_speed + my.top_boost), my.y_speed);
my.y_speed = Math.min(0, my.y_speed);
if (my.brake && (my.car._y >= 0)) {
my.y_speed = my.y_speed * 0.9;
}
if (((my.brake && (!my.fx)) && (my.car._y == 0)) && (!_root.stop_clock)) {
my.fx = true;
_root.play_sound("brake");
}
if (my.candy_time > 0) {
my.top_boost = my.top_boost + (my.top_boost < my.boost_speed);
my.top_boost = Math.min(my.top_boost, 6);
} else {
my.top_boost = my.top_boost - (0.1 * (my.top_boost > 0));
my.top_boost = Math.max(my.top_boost, 0);
}
my.candy_time--;
if (my.candy_time > 0) {
my.car.car.spark.play();
}
if (my.candy_time == 0) {
_root.dust.stop();
my.car.car.spark.gotoAndStop(1);
}
if ((_root.finish + 196) < _root.track_position) {
_root.dust.stop();
my.candy_time = 0;
my.car.car.spark.gotoAndStop(1);
_root.stop_clock = true;
}
if ((_root.finish + _root.end_position) < _root.track_position) {
if (!my.reg_end) {
_root.ideal_game_vol = 0;
if (_root.mode == "race") {
_root.createEmptyMovieClip("your_position", 4002);
_root.your_position.attachMovie("your_position", "your_position", 1);
_root.your_position.your_position.gotoAndStop(_root.my_position);
} else {
_root.createEmptyMovieClip("sunday_blank", 4002);
_root.sunday_blank.attachMovie("sunday_blank", "sunday_blank", 1);
}
if (_root.my_position == 1) {
_root.unlock_race = true;
}
my.reg_end = true;
if (_root.end_position == 400) {
if (my.car._y == 0) {
my.car.gotoAndStop(my.frame + 10);
} else {
my.wait_ani = true;
}
}
_root.end_position = _root.end_position - 50;
}
((my.y_speed > -1) ? ((my.y_speed = 0)) : ((my.y_speed = my.y_speed * 0.8)));
my.car.car.stop();
}
if ((my.up && (!my.jump)) && (!my.jump_pressed)) {
my.velocity = _root.jump_power;
my.jump = true;
my.bounce = 0;
my.jump_pressed = true;
_root.play_sound("jumping");
}
if (my.jump) {
_root["shadow" + my.id]._xscale = (_root["shadow" + my.id]._yscale = 100 + (-(my.car._y * 0.2)));
my.jump_y = my.car._y;
my.velocity = my.velocity + (my.gravity / 10);
my.jump_y = my.jump_y + (my.velocity / 10);
if (my.jump_y > 0) {
my.bounce++;
if ((my.car._currentframe < 20) && (my.bounce == 1)) {
_root.play_sound("landing");
my.car.gotoAndStop(my.car._currentframe + 20);
}
my.jump_y = 0;
my.x_speed = 0;
my.velocity = int(-(my.velocity * my.elastic));
if (my.bounce == 4) {
my.jump = false;
if (my.wait_ani) {
my.car.gotoAndStop(my.frame + 10);
my.jump = false;
my.car._y = my.jump_y;
my.wait_ani = false;
}
}
}
my.car._y = my.jump_y;
}
my.actual_speed = (my.x_speed / my.resp) * (-Math.max(my.y_speed, -my.resp));
my.car_x = my.car_x + my.actual_speed;
my.car_y = 0;
my.my_position = _root.to_iso(my.car_x, my.car_y);
my._x = my.my_position[0] * 2;
my._y = my.my_position[1] * 2;
_root.the_interface.hud.actual.radar.hero._x = my._x * 0.05;
_root.the_interface.hud.actual.radar.hero._y = my._y * 0.05;
if (my.car_x > 175) {
my.x_speed = -my.x_speed;
my.car_x = 175;
}
if (my.car_x < 10) {
my.x_speed = -my.x_speed;
my.car_x = 10;
}
if (my.car._y >= -20) {
my.i = 0;
while (my.i < _root.obstacle_allowance) {
my.x_detection = _root.obstacle_ref[my.i][0];
my.y_detection = _root.obstacle_ref[my.i][1];
my.deflection = _root.obstacle_ref[my.i][2];
my.on_x = (Math.abs(my.car_x - my.x_detection) < 14) && (my.x_detection != undefined);
my.on_y = (Math.abs(my.car_y - my.y_detection) < 18) && (my.y_detection != undefined);
if (my.on_x && (my.on_y)) {
_root["obstacle" + my.i].hit = true;
my.y_speed = my.y_speed * my.deflection;
_root.p_bonus = false;
}
my.i++;
}
my.on_x = Math.abs(my.car_x - _root.candy_x) < 18;
my.on_y = Math.abs(my.car_y - _root.candy_y) < 18;
if (my.on_x && (my.on_y)) {
if (my.candy_time < 0) {
_root.dust.start(0, 99999);
}
my.candy_time = 50;
_root.add_score(250);
_root.candy0.hit = true;
}
}
};
Object.registerClass("car", vehicle);
_global.opponent = function () {
};
opponent.prototype = new MovieClip();
opponent.prototype.onLoad = function () {
my = this._parent;
my.gravity = _root.gravity;
my.elastic = _root.elastic;
my.boost_speed = my.max_speed * 0.5;
my.boost_acc = my.accelerate;
};
opponent.prototype.onEnterFrame = function () {
my = this._parent;
my.rnd = int(Math.random() * 1000);
if ((my.rnd < 5) && (!my.change_dir)) {
my.new_place = int(Math.random() * 165) + 10;
my.change_dir = true;
}
if (my.change_dir) {
my.distance = Math.abs(my.new_place - my.car_x);
my.right = my.car_x < my.new_place;
my.left = my.car_x > my.new_place;
if (my.distance < 10) {
my.change_dir = false;
my.left = false;
my.right = false;
}
}
my.potential_x = (my.right - my.left) * my.resp;
my.x_speed = my.x_speed + ((my.potential_x > my.x_speed) * my.grip);
my.x_speed = my.x_speed - ((my.potential_x < my.x_speed) * my.grip);
if (my.up && (!my.jump)) {
my.velocity = _root.jump_power;
my.jump = true;
my.bounce = 0;
my.jump_pressed = true;
_root.play_sound("jumping");
}
if (my.jump) {
_root["shadow" + my.id]._xscale = (_root["shadow" + my.id]._yscale = 100 + (-(my.car._y * 0.2)));
my.jump_y = my.car._y;
my.velocity = my.velocity + (my.gravity / 10);
my.jump_y = my.jump_y + (my.velocity / 10);
if (my.jump_y > 0) {
my.bounce++;
if ((my.car._currentframe < 20) && (my.bounce == 1)) {
_root.play_sound("landing");
my.car.gotoAndStop(my.car._currentframe + 20);
}
my.jump_y = 0;
my.velocity = int(-(my.velocity * my.elastic));
if (my.bounce == 4) {
my.jump = false;
my.up = false;
}
}
my.car._y = my.jump_y;
}
if (my.candy_time > 0) {
my.top_boost = my.top_boost + (my.top_boost < my.boost_speed);
my.top_boost = Math.min(my.top_boost, 6);
} else {
my.top_boost = my.top_boost - (0.1 * (my.top_boost > 0));
my.top_boost = Math.max(my.top_boost, 0);
}
my.candy_time--;
if (my.candy_time > 0) {
my.car.car.spark.play();
}
my.actual_speed = (my.x_speed / my.resp) * (-Math.max(-my.y_speed, -my.resp));
my.car_x = my.car_x + my.actual_speed;
my.y_speed = my.y_speed + (_root.slope * ((my.accelerate * 1.1) + (my.boost_acc * (my.candy_time > 0))));
my.y_speed = Math.max(0, my.y_speed);
if ((_root.finish + _root.end_position) < (my.car_y + _root.track_position)) {
if (!my.reg_end) {
my.reg_end = true;
if (_root.end_position == 400) {
my.car.gotoAndStop(my.car._currentframe + 10);
}
_root.end_position = _root.end_position - 50;
}
((my.y_speed < 1) ? ((my.y_speed = 0)) : ((my.y_speed = my.y_speed * 0.8)));
my.candy_time = 0;
my.car.car.spark.gotoAndStop(1);
my.car.car.stop();
}
my.car_y = my.car_y + (Math.min(my.max_speed + my.top_boost, my.y_speed) + _root.hero.y_speed);
my.my_position = _root.to_iso(my.car_x, my.car_y);
my._x = my.my_position[0] * 2;
my._y = my.my_position[1] * 2;
_root.the_interface.hud.actual.radar["opponent" + my.id]._x = my._x * 0.05;
_root.the_interface.hud.actual.radar["opponent" + my.id]._y = my._y * 0.05;
_root.opponent_ref[my.id - 1] = [int(my.car_x), int(my.car_y)];
if (my.car_x > 175) {
my.car_x = 175;
my.x_speed = -my.x_speed;
}
if (my.car_x < 10) {
my.car_x = 10;
my.x_speed = -my.x_speed;
}
if (my.car._y >= -20) {
my.i = 0;
while (my.i <= _root.obstacle_allowance) {
my.x_detection = _root.obstacle_ref[my.i][0];
my.y_detection = _root.obstacle_ref[my.i][1];
my.deflection = _root.obstacle_ref[my.i][2];
my.on_x = (Math.abs(my.car_x - my.x_detection) < 14) && (my.x_detection != undefined);
my.on_y = (Math.abs(my.car_y - my.y_detection) < 18) && (my.y_detection != undefined);
my.future_y = ((my.car_y - my.y_detection) < -30) && ((my.car_y - my.y_detection) > -50);
if ((my.future_y && (my.on_x)) && (my.rnd < 500)) {
my.up = true;
}
if (my.on_x && (my.on_y)) {
_root["obstacle" + my.i].hit = true;
my.y_speed = my.y_speed * my.deflection;
}
my.i++;
}
my.on_x = Math.abs(my.car_x - _root.candy_x) < 18;
my.on_y = Math.abs(my.car_y - _root.candy_y) < 18;
if (((Math.abs(my.car_y - _root.candy_y) < 120) && (!my.on_y)) && (my.rnd < 750)) {
if (_root["candys" + race_num].length > _root.candy_number) {
my.new_place = _root.candy_x;
my.change_dir = true;
}
}
if (my.on_x && (my.on_y)) {
_root.candy0.hit = true;
my.candy_time = 50;
}
}
my.i = 0;
while (my.i <= _root.number_of_opponents) {
if (my.id != (my.i + 1)) {
if (my.i < _root.number_of_opponents) {
my.the_target = _root["opponent" + (my.i + 1)];
} else {
my.the_target = _root.hero;
}
Set("my.old_x" + my.i, my["new_x" + my.i]);
Set("my.old_y" + my.i, my["new_y" + my.i]);
my.bug_x = Math.abs(my.car_x - my.the_target.car_x);
my.bug_y = Math.abs(my.car_y - my.the_target.car_y);
my["new_x" + my.i] = my.bug_x < 20;
my["new_y" + my.i] = my.bug_y < 28;
if (((!my["old_x" + my.i]) && (my["new_x" + my.i])) && (my["new_y" + my.i])) {
_root.play_sound("collide");
if (Math.abs(my.the_target.actual_speed) <= Math.abs(my.actual_speed)) {
if (my.x_speed >= 0) {
my.the_target.x_speed = my.the_target.resp;
} else {
my.the_target.x_speed = -my.the_target.resp;
}
my.x_speed = 0;
my.the_target.y_speed = my.the_target.y_speed * 0.8;
my.y_speed = my.y_speed * 0.9;
} else {
if (my.the_target.x_speed >= 0) {
my.x_speed = my.resp;
} else {
my.x_speed = -my.resp;
}
my.the_target.x_speed = 0;
my.y_speed = my.y_speed * 0.8;
my.the_target.y_speed = my.the_target.y_speed * 0.9;
}
if (my.car_x > my.the_target.car_x) {
my.the_target.car_x = my.car_x - 21;
} else {
my.the_target.car_x = my.car_x + 21;
}
my.change_dir = false;
my.left = false;
my.right = false;
my.the_target.change_dir = false;
my.the_target.left = false;
my.the_target.right = false;
}
if (((!my["old_y" + my.i]) && (my["new_y" + my.i])) && (my["new_x" + my.i])) {
_root.play_sound("collide");
my.your_speed = Math.abs(my.the_target.y_speed);
my.y_diff = Math.max(my.your_speed, my.y_speed);
if (my.car_y < my.the_target.car_y) {
my.y_speed = my.y_speed - (my.y_diff * 0.4);
if (my.the_target == _root.hero) {
my.the_target.y_speed = my.the_target.y_speed - (my.y_diff * 0.4);
} else {
my.the_target.y_speed = my.the_target.y_speed + (my.y_diff * 0.4);
}
my.car_y = my.the_target.car_y - 29;
my.new_place = int(Math.random() * 165) + 10;
my.change_dir = true;
_root.make_smoke(my.the_target.car_x, my.the_target.car_y);
} else {
my.y_speed = my.y_speed + (my.y_diff * 0.4);
if (my.the_target == _root.hero) {
my.the_target.y_speed = my.the_target.y_speed + (my.y_diff * 0.4);
} else {
my.the_target.y_speed = my.the_target.y_speed - (my.y_diff * 0.4);
}
my.car_y = my.the_target.car_y + 29;
my.the_target.new_place = int(Math.random() * 165) + 10;
my.the_target.change_dir = true;
_root.make_smoke(my.car_x, my.car_y);
}
}
if ((my.bug_x < 16) && (my.bug_y < 20)) {
trace("TOO CLOSE !!!!");
if (my.car_y > my.the_target.car_y) {
my.car_y = my.car_y + 6;
my.the_target.y_speed = (my.the_target.y_speed = my.the_target.y_speed * 0.5);
_root.make_smoke(my.the_target.car_x, my.the_target.car_y);
} else {
my.car_y = my.car_y - 6;
my.y_speed = (my.y_speed = my.y_speed * 0.5);
_root.make_smoke(my.car_x, my.car_y);
}
}
}
my.i++;
}
if ((my.car_y > 220) && (my.rnd < 50)) {
my.y_speed = my.y_speed * 0.7;
}
};
Object.registerClass("opponent", opponent);
_global.obstacle = function () {
};
obstacle.prototype = new MovieClip();
obstacle.prototype.onEnterFrame = function () {
my = this._parent;
my.y = my.y + _root.hero.y_speed;
my.my_position = _root.to_iso(my.x, my.y);
my._x = my.my_position[0] * 2;
my._y = my.my_position[1] * 2;
if (!hit) {
_root.obstacle_ref[my.id] = [int(my.x), int(my.y), my.deflection];
}
if (my.hit) {
_root.obstacle_ref[my.id] = ["", "", ""];
if (my.obstacle.piece._currentframe == 1) {
_root.obstacle_ref[my.id] = ["", "", ""];
my.obstacle.piece.play();
_root.play_sound("obstacle" + my.obstacle._currentframe);
}
my._alpha = my._alpha - 10;
if (my._alpha <= 0) {
_root.make_obstacle(my.id);
}
}
if (my.y < -100) {
_root.obstacle_ref[my.id] = ["", "", ""];
_root.make_obstacle(my.id);
}
};
Object.registerClass("obstacle", obstacle);
_global.candy = function () {
};
candy.prototype = new MovieClip();
candy.prototype.onEnterFrame = function () {
my = this._parent;
my.y = my.y + _root.hero.y_speed;
my.my_position = _root.to_iso(my.x, my.y);
my._x = my.my_position[0] * 2;
my._y = my.my_position[1] * 2;
_root.candy_x = int(my.x);
_root.candy_y = int(my.y);
if (my.hit) {
_root.candy_x = -9999;
_root.candy_y = -9999;
_root.play_sound("get_candy");
_root.make_candy();
}
if (my.y < -100) {
_root.candy_x = -9999;
_root.candy_y = -9999;
_root.make_candy();
}
};
Object.registerClass("candy", candy);
_global.line = function () {
};
line.prototype = new MovieClip();
line.prototype.onEnterFrame = function () {
my = this._parent;
my.y = my.y + _root.hero.y_speed;
my.my_position = _root.to_iso(my.x, my.y);
my._x = my.my_position[0] * 2;
my._y = my.my_position[1] * 2;
if (my.y < -120) {
this.removeMovieClip();
}
};
Object.registerClass("line", line);
_global.smoke = function () {
};
smoke.prototype = new MovieClip();
smoke.prototype.onEnterFrame = function () {
my = this._parent;
my.y = my.y + _root.hero.y_speed;
my.my_position = _root.to_iso(my.x, my.y);
my._x = my.my_position[0] * 2;
my._y = my.my_position[1] * 2;
};
Object.registerClass("smoke", smoke);
across_ratio = 1.38617886178862;
down_ratio = 2.63865546218487;
if (!first_play) {
reset_game_vars();
first_play = true;
}
this.createEmptyMovieClip("trans", 7777);
trans.attachMovie("from_select", "trans", 1);
reset_level_vars();
make_scenery();
make_hero();
ideal_intro_vol = 0;
if (mode == "race") {
make_opponents();
}
i = 0;
while (i < obstacle_allowance) {
make_obstacle(i);
i++;
}
make_candy();
this.onEnterFrame = function () {
intro_vol = intro.getVolume();
if (ideal_intro_vol < intro_vol) {
intro.setVolume(intro_vol - 2);
}
if (ideal_intro_vol > intro_vol) {
intro.setVolume(intro_vol + 2);
}
game_vol = game_music.getVolume();
if (ideal_game_vol < game_vol) {
game_music.setVolume(game_vol - 2);
}
if (ideal_game_vol > game_vol) {
game_music.setVolume(game_vol + 2);
}
fpsSpeedometer.monitor = candy_ref;
the_interface.hud.actual.my_position.gotoAndStop(my_position);
if (!stop_clock) {
my_position = 5;
}
i = 0;
while (i <= ((number_of_opponents + obstacle_allowance) + candy_allowance)) {
if (i < number_of_opponents) {
car_level[i] = [int(this["opponent" + (i + 1)].car_x + 100), "opponent" + (i + 1), this["opponent" + (i + 1)].car_y];
this["shadow" + (i + 1)]._x = this["opponent" + (i + 1)]._x;
this["shadow" + (i + 1)]._y = this["opponent" + (i + 1)]._y;
car_positions[i] = car_level[i][2];
if ((car_positions[i] < 0) && (!stop_clock)) {
my_position--;
}
}
if (i == number_of_opponents) {
car_level[i] = [int(hero.car_x + 100), "hero"];
this.shadow5._x = hero._x;
this.shadow5._y = hero._y;
}
if ((i > number_of_opponents) && (i <= (number_of_opponents + obstacle_allowance))) {
car_level[i] = [int(this["obstacle" + (i - (number_of_opponents + 1))].x + 100), "obstacle" + (i - (number_of_opponents + 1))];
}
if ((i > (number_of_opponents + obstacle_allowance)) && (i <= ((number_of_opponents + obstacle_allowance) + candy_allowance))) {
car_level[i] = [int(this["candy" + (i - ((number_of_opponents + 1) + obstacle_allowance))].x + 100), "candy" + (i - ((number_of_opponents + 1) + obstacle_allowance))];
}
i++;
}
car_level.sort();
i = 0;
while (i <= ((number_of_opponents + obstacle_allowance) + candy_allowance)) {
this[car_level[i][1]].swapDepths(2000 - (i * 10));
i++;
}
upper_y = upper_y + (hero.y_speed * 0.8);
upper_y = upper_y % -134;
upper_x = 0;
upper_position = to_iso(upper_x, upper_y);
upper_scenery.part._x = upper_position[0] * 2;
upper_scenery.part._y = upper_position[1] * 2;
lower_y = lower_y + (hero.y_speed * 1.2);
lower_y = lower_y % -96;
lower_x = 0;
lower_position = to_iso(lower_x, lower_y);
lower_scenery.part._x = lower_position[0] * 2;
lower_scenery.part._y = lower_position[1] * 2;
track_position = track_position - hero.y_speed;
if ((Math.abs(track_position - finish) < hero.max_speed) && (!line.finish)) {
this.createEmptyMovieClip("line", 202);
line.attachMovie("line", "line", 1);
line.line.gotoAndStop(2);
line.x = 0;
line.y = 200;
line.finish = true;
line.my_position = to_iso(line.x, line.y);
line._x = line.my_position[0] * 2;
line._y = line.my_position[1] * 2;
}
the_interface.hud.actual.speedo.needle._rotation = (-hero.y_speed) * 14;
ms_time = ms_time + (!stop_clock);
s_time = s_time + (!stop_clock);
m_time = m_time + (!stop_clock);
m_sec = ms_time * 3.1;
m_sec = m_sec % 100;
((m_sec < 10) ? ((m_sec_zero = "0")) : ((m_sec_zero = "")));
m_seconds = m_sec_zero + int(m_sec);
sec = sec + (s_time == 31);
s_time = s_time % 31;
sec = sec % 60;
((sec < 10) ? ((sec_zero = "0")) : ((sec_zero = "")));
seconds = sec_zero + sec;
min = min + (m_time == 1860);
m_time = m_time % 1860;
((min < 10) ? ((min_zero = "0")) : ((min_zero = "")));
minutes = min_zero + min;
the_time = (((minutes + "") + seconds) + "") + m_seconds;
i = 0;
while (i <= 5) {
the_interface.hud.actual["t" + i].gotoAndStop(Number(the_time.substr(i, 1)) + 1);
i++;
}
};
Instance of Symbol 1098 MovieClip "fpsSpeedometer" in Frame 9
onClipEvent (load) {
this.swapDepths(99998);
}
Symbol 47 MovieClip [to_street] Frame 7
_root.go_go();
Symbol 62 MovieClip [to_snow] Frame 7
_root.go_go();
Symbol 77 MovieClip [to_rain] Frame 7
_root.go_go();
Symbol 92 MovieClip [to_night] Frame 7
_root.go_go();
Symbol 107 MovieClip [to_grass] Frame 7
_root.go_go();
Symbol 122 MovieClip [to_dirt] Frame 7
_root.go_go();
Symbol 137 MovieClip [from_select] Frame 7
_root.trans_to();
Symbol 215 MovieClip [candy] Frame 1
this.gotoAndStop(int(Math.random() * 3) + 1);
Symbol 228 MovieClip Frame 1
stop();
Symbol 395 MovieClip Frame 3
_parent.gotoAndStop(_parent._currentframe - 20);
Symbol 398 MovieClip Frame 3
_parent.gotoAndStop(_parent._currentframe - 20);
Symbol 401 MovieClip Frame 3
_parent.gotoAndStop(_parent._currentframe - 20);
Symbol 404 MovieClip Frame 3
_parent.gotoAndStop(_parent._currentframe - 20);
Symbol 407 MovieClip Frame 3
_parent.gotoAndStop(_parent._currentframe - 20);
Symbol 431 MovieClip [get_ready] Frame 13
_root.play_sound("start_gun");
Symbol 431 MovieClip [get_ready] Frame 50
_root.start_race();
Symbol 431 MovieClip [get_ready] Frame 60
_root.get_ready.removeMovieClip();
Symbol 470 MovieClip Frame 1
stop();
Symbol 470 MovieClip Frame 5
stop();
Symbol 483 MovieClip Frame 1
stop();
Symbol 483 MovieClip Frame 5
stop();
Symbol 496 MovieClip Frame 1
stop();
Symbol 496 MovieClip Frame 5
stop();
Symbol 509 MovieClip Frame 1
stop();
Symbol 509 MovieClip Frame 5
stop();
Symbol 522 MovieClip Frame 1
stop();
Symbol 522 MovieClip Frame 5
stop();
Symbol 535 MovieClip Frame 1
stop();
Symbol 535 MovieClip Frame 5
stop();
Symbol 548 MovieClip Frame 1
stop();
Symbol 548 MovieClip Frame 5
stop();
Symbol 561 MovieClip Frame 1
stop();
Symbol 561 MovieClip Frame 5
stop();
Symbol 572 MovieClip Frame 1
stop();
Symbol 572 MovieClip Frame 5
stop();
Symbol 599 MovieClip [line] Frame 1
stop();
Symbol 608 MovieClip [unlock_race] Frame 50
_root.race_over();
_root.new_track.removeMovieClip();
Symbol 622 MovieClip [sunday_blank] Frame 60
_root.race_over();
_root.sunday_blank.removeMovieClip();
Symbol 631 MovieClip Frame 1
if ((_root.race_num == 10) && (_root.all_unlocked)) {
_parent.gotoAndStop(10);
}
if ((_root.race_num == 10) && (!_root.all_unlocked)) {
_root.all_unlocked = true;
_parent.gotoAndStop(11);
}
if (_root.race_lock[_root.race] == "unlocked") {
_parent.gotoAndStop(10);
} else {
this.play();
}
Symbol 631 MovieClip Frame 2
_root.play_sound("text_on");
_root.play_sound("applause");
Symbol 631 MovieClip Frame 6
_root.play_sound("unlocked");
Symbol 631 MovieClip Frame 47
_root.play_sound("text_off");
Symbol 631 MovieClip Frame 101
_parent.end();
Symbol 640 MovieClip Frame 1
_root.play_sound("text_on");
Symbol 640 MovieClip Frame 5
_root.play_sound("lose");
Symbol 640 MovieClip Frame 46
_root.play_sound("text_off");
Symbol 640 MovieClip Frame 100
_parent.end();
Symbol 649 MovieClip Frame 1
_root.play_sound("text_on");
Symbol 649 MovieClip Frame 5
_root.play_sound("lose");
Symbol 649 MovieClip Frame 46
_root.play_sound("text_off");
Symbol 649 MovieClip Frame 100
_parent.end();
Symbol 658 MovieClip Frame 1
_root.play_sound("text_on");
Symbol 658 MovieClip Frame 5
_root.play_sound("lose");
Symbol 658 MovieClip Frame 46
_root.play_sound("text_off");
Symbol 658 MovieClip Frame 100
_parent.end();
Symbol 667 MovieClip Frame 1
_root.play_sound("text_on");
Symbol 667 MovieClip Frame 5
_root.play_sound("lose");
Symbol 667 MovieClip Frame 46
_root.play_sound("text_off");
Symbol 667 MovieClip Frame 100
_parent.end();
Symbol 672 MovieClip Frame 1
_root.play_sound("text_on");
_root.play_sound("applause");
Symbol 672 MovieClip Frame 5
_root.play_sound("unlocked");
Symbol 672 MovieClip Frame 46
_root.play_sound("text_off");
Symbol 672 MovieClip Frame 100
_parent.end();
Symbol 681 MovieClip Frame 1
_root.play_sound("text_on");
_root.play_sound("applause");
Symbol 681 MovieClip Frame 5
_root.play_sound("unlocked");
Symbol 681 MovieClip Frame 46
_root.play_sound("text_off");
Symbol 681 MovieClip Frame 100
_root.race_lock[9] = "unlocked";
_parent.end();
Symbol 682 MovieClip [your_position] Frame 1
function end() {
if (_root.unlock_race && (_root.race_lock[_root.race_num] == "locked")) {
_root.unlock_new_track();
} else {
_root.race_over();
}
_root.your_position.removeMovieClip();
}
Symbol 711 MovieClip Frame 1
stop();
Symbol 724 MovieClip Frame 1
stop();
Symbol 743 MovieClip Frame 1
stop();
Symbol 761 MovieClip Frame 1
stop();
Instance of Symbol 724 MovieClip "my_position" in Symbol 763 MovieClip Frame 1
onClipEvent (load) {
this._visible = _root.mode == "race";
}
Instance of Symbol 743 MovieClip "my_position" in Symbol 763 MovieClip Frame 2
onClipEvent (load) {
this._visible = _root.mode == "race";
}
Instance of Symbol 724 MovieClip "my_position" in Symbol 763 MovieClip Frame 3
onClipEvent (load) {
this._visible = _root.mode == "race";
}
Instance of Symbol 761 MovieClip "my_position" in Symbol 763 MovieClip Frame 5
onClipEvent (load) {
this._visible = _root.mode == "race";
}
Symbol 764 MovieClip [hud] Frame 15
actual.gotoAndStop(_root.choice);
Symbol 764 MovieClip [hud] Frame 22
stop();
Symbol 781 MovieClip [smoke] Frame 9
_parent.removeMovieClip();
Symbol 786 Button
on (release) {
_quality = "low";
nextFrame();
}
Symbol 818 MovieClip Frame 15
gotoAndPlay (1);
Symbol 833 Button
on (press) {
this.gotoAndStop(3);
}
on (rollOver) {
_root.play_sound("rollover");
}
Symbol 838 Button
on (press) {
this.gotoAndStop(2);
}
on (rollOver) {
_root.play_sound("rollover");
}
Symbol 841 Button
on (press) {
this.nextFrame();
}
on (rollOver) {
_root.play_sound("rollover");
}
Symbol 844 Button
on (press) {
this.prevFrame();
}
on (rollOver) {
_root.play_sound("rollover");
}
Symbol 845 MovieClip Frame 1
if (_root.mode == undefined) {
stop();
} else {
gotoAndStop(_root.mode);
}
Symbol 845 MovieClip Frame 2
_root.mode = "race";
stop();
_root.play_sound("intro_button");
Symbol 845 MovieClip Frame 3
_root.mode = "sunday";
_root.play_sound("intro_button");
Symbol 855 Button
on (press) {
_root.play_sound("dead");
}
Symbol 860 Button
on (press) {
_root.play_sound("blue_next");
_root.nextFrame();
}
on (rollOver) {
_root.play_sound("rollover");
}
Symbol 861 MovieClip Frame 10
_parent.gotoAndStop(2);
Symbol 862 MovieClip Frame 1
if (_root.mode != undefined) {
this.gotoAndStop(2);
}
stop();
Symbol 873 MovieClip Frame 3
_root.play_sound("type_on");
Symbol 873 MovieClip Frame 20
_root.play_sound("type_off");
Symbol 873 MovieClip Frame 24
stop();
_root.modey = true;
Symbol 875 MovieClip Frame 1
stop();
Symbol 896 MovieClip Frame 1
stop();
Symbol 951 MovieClip Frame 1
stop();
Symbol 952 MovieClip Frame 1
this.my_choice.gotoAndStop(_root.car_select._currentframe);
Symbol 952 MovieClip Frame 2
this.my_choice.gotoAndStop(_root.car_select._currentframe);
Symbol 952 MovieClip Frame 3
_root.play_sound("big_car");
Symbol 952 MovieClip Frame 11
stop();
Symbol 957 Button
on (press) {
_root.play_sound("blue_next");
_root.choice = this._currentframe;
_root.nextFrame();
}
on (rollOver) {
_root.play_sound("rollover");
}
Symbol 964 Button
on (press) {
_root.play_sound("blue_back");
_root.prevFrame();
}
on (rollOver) {
_root.play_sound("rollover");
}
Symbol 982 MovieClip Frame 1
stop();
Symbol 989 Button
on (press) {
if ((_root.sel == "car") && (_root.all_cars._currentframe == 11)) {
if (left) {
_root.car_select.prevFrame();
}
if (right) {
_root.car_select.nextFrame();
}
_root.all_cars.play();
}
if (_root.sel == "track") {
if (left) {
temp_left = _root.wood.panel._currentframe;
_root.wood.panel.prevFrame();
if (temp_left == 1) {
_root.wood.panel.gotoAndStop(10);
}
}
if (right) {
temp_right = _root.wood.panel._currentframe;
_root.wood.panel.nextFrame();
if (temp_right == 10) {
_root.wood.panel.gotoAndStop(1);
}
}
if (_root.mode == "race") {
_root.bit();
} else {
_root.sun();
}
}
_root.play_sound("red_button");
}
on (rollOver) {
_root.play_sound("rollover");
}
Symbol 992 Button
on (press) {
_root.play_sound("dead");
}
Symbol 993 MovieClip Frame 1
stop();
Symbol 1002 MovieClip Frame 3
_root.play_sound("type_on");
Symbol 1002 MovieClip Frame 20
_root.play_sound("type_off");
Symbol 1002 MovieClip Frame 24
stop();
_root.cary = true;
Symbol 1004 MovieClip Frame 1
stop();
Symbol 1004 MovieClip Frame 12
stop();
_root.dripped = true;
Symbol 1016 MovieClip Frame 1
stop();
Symbol 1039 MovieClip Frame 1
stop();
Symbol 1072 MovieClip Frame 1
stop();
if (!done_once) {
if (_root.race_lock[_root.race_num] == "next_race") {
this.gotoAndStop(_root.race_num + 1);
} else {
this.gotoAndStop(_root.race_num);
}
done_once = true;
}
Instance of Symbol 1004 MovieClip "drip" in Symbol 1072 MovieClip Frame 1
onClipEvent (load) {
if (_root.dripped) {
gotoAndStop(this._totalframes);
}
}
Instance of Symbol 1016 MovieClip "icon" in Symbol 1072 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.mode == "sunday") {
this.gotoAndStop(1);
}
}
Instance of Symbol 1044 MovieClip "all_time" in Symbol 1072 MovieClip Frame 1
onClipEvent (load) {
this._visible = _root.mode == "race";
_root.bit();
}
Symbol 1073 MovieClip Frame 1
_root.play_sound("woodslide_on");
Symbol 1073 MovieClip Frame 6
stop();
Symbol 1073 MovieClip Frame 7
_root.play_sound("woodslide_off");
Symbol 1073 MovieClip Frame 10
_root.prevFrame();
Symbol 1074 Button
on (press) {
if (_root.wood._currentframe == 6) {
_root.play_sound("blue_back");
_root.wood.play();
}
}
on (rollOver) {
_root.play_sound("rollover");
}
Symbol 1077 Button
on (press) {
_root.play_sound("dead");
}
Symbol 1082 Button
on (press) {
if (_root.mode == "race") {
if (_root.race_lock[_root.race_num - 1] != "locked") {
_root.play_sound("blue_next");
_root.gotoAndStop("game");
}
} else {
_root.play_sound("blue_next");
_root.gotoAndStop("game");
}
}
on (rollOver) {
_root.play_sound("rollover");
}
Symbol 1084 MovieClip Frame 1
stop();
Instance of Symbol 1083 MovieClip in Symbol 1084 MovieClip Frame 1
onClipEvent (enterFrame) {
if (((_root.race_lock[_root.wood.panel._currentframe - 1] == "locked") && (_root.mode == "race")) || (_root.wood.panel.drip._currentframe != _root.wood.panel.drip._totalframes)) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
}
Symbol 1093 MovieClip Frame 3
_root.play_sound("type_on");
Symbol 1093 MovieClip Frame 20
_root.play_sound("type_off");
this._parent.wood.panel.drip.play();
Symbol 1093 MovieClip Frame 24
stop();
_root.tracky = true;
Symbol 1098 MovieClip Frame 1
var startTime = getTimer();
var numFrames = 0;
var recentSetting = 10;
var recentNumFrames = 0;
var recentStartTime = startTime;
function calcFPS() {
numFrames++;
var _local1 = getTimer();
elapsedSeconds = (_local1 - startTime) / 1000;
actualFPS = numFrames / elapsedSeconds;
recentNumFrames++;
if (recentNumFrames == recentSetting) {
var _local2 = (_local1 - recentStartTime) / 1000;
recentFPSoutput = recentNumFrames / _local2;
recentStartTime = _local1;
recentNumFrames = 0;
}
}
Instance of Symbol 1097 MovieClip "callCalcFPS" in Symbol 1098 MovieClip Frame 1
onClipEvent (enterFrame) {
_parent.calcFPS();
}