Frame 1
stop();
Instance of Symbol 23 MovieClip in Frame 1
onClipEvent (enterFrame) {
total = _root.getBytesTotal();
loads = _root.getBytesLoaded();
percent = int(loads / (total / 27));
if (total != loads) {
(this.gotoAndStop(percent));// not popped
} else {
(this.gotoAndStop(this._totalframes));// not popped
}
}
Frame 2
stop();
Instance of Symbol 301 MovieClip "script" in Frame 2
onClipEvent (load) {
function reset() {
map_num = 1;
_root.script.score(-_root.script.temp_score);
load_map(map_num);
}
function end_game() {
_root.menu.gotoAndStop("game_over");
i = 1;
while (_root.o_amount >= i) {
removeMovieClip(eval ("_root.object" + i));
i++;
}
i = 1;
while (total_spray >= i) {
removeMovieClip(eval ("_root.spray" + i));
i++;
}
i = 2;
while ((mwidth * mheight) >= i) {
removeMovieClip(eval ("_root.ground.t" + i));
i++;
}
removeMovieClip("_root.spray.family_member");
}
function time_over() {
stop_me = true;
((_root.dexter._currentframe != 9) ? (_root.dexter.gotoAndStop("sad")sfx(8)_root.music.stop_music()) : ((i = i)));
_root.display.timer.gotoAndStop(1);
}
function tally() {
_root.menu.gotoAndStop("tally");
_root.map_chr = undefined;
i = 1;
while (_root.o_amount >= i) {
removeMovieClip(eval ("_root.object" + i));
i++;
}
i = 1;
while (total_spray >= i) {
removeMovieClip(eval ("_root.spray" + i));
i++;
}
i = 2;
while ((mwidth * mheight) >= i) {
removeMovieClip(eval ("_root.ground.t" + i));
i++;
}
removeMovieClip("_root.spray.family_member");
map_num++;
}
function next_round() {
load_map(map_num);
_root.menu.gotoAndStop("round_end");
_root.display.timer.gotoAndStop(1);
}
function start_up() {
_root.display.spray.gotoAndStop(1);
if (map_num != 1) {
((i = i));// not popped
} else {
(_root.display.special.gotoAndStop(_root.display.special._totalframes));// not popped
}
_root.dexter.gotoAndStop(1);
_root.xmap_adj = _root.xmap_adj - 4;
_root.ymap_adj = _root.ymap_adj - 3;
_root.ground._x = 0;
_root.ground._y = 0;
_root.o_amount = 0;
shots_fired = 0;
bonus_start = 1000;
temp_count = 0;
s_amount = 0;
f_amount = 0;
gun = false;
spe = false;
adj_x = 0;
adj_y = 0;
ax = -24;
ay = -24;
gx = 0;
gy = 0;
ra = _root.xmap_adj;
rb = _root.ymap_adj;
aa = _root.xmap_adj;
ab = _root.ymap_adj;
build_level();
make_ground();
make_animals();
make_spray();
make_family();
stop_me = false;
_root.music.start_music();
}
function load_map() {
loadVariablesNum (("dexter_maps/level" + map_num) + ".dex", 0);
}
function build_level() {
temp = _root.map_chr.split(",");
map_width = Number(_root.map_width);
map_height = Number(_root.map_height);
_root.map = new Array();
i = 0;
while (i < map_height) {
_root.map[i] = temp.slice(i * map_width, (i * map_width) + map_width);
i++;
}
}
function make_ground() {
_root.ground.t1.id = 1;
tx = 0;
ys = 0;
ty = 0;
i = 2;
while ((mwidth * mheight) >= i) {
((tx >= ((mwidth * 48) - 48)) ? ((tx = 0)) : ((tx = tx + 48)));
ys = ys + 1;
((ys == mwidth) ? ((ty = ty + 48)(ys = 0)) : ((i = i)));
duplicateMovieClip ("_root.ground.t1", "t" + i, i);
eval ("_root.ground.t" + i)._x = eval ("_root.ground.t" + i)._x + tx;
eval ("_root.ground.t" + i)._y = eval ("_root.ground.t" + i)._y + ty;
eval ("_root.ground.t" + i).id = eval ("_root.ground.t" + i).id + i;
i++;
}
}
function make_animals() {
smart_temp = _root.smart_animals.split(",");
i = 1;
while ((smart_temp.length / 2) >= i) {
duplicateMovieClip ("_root." + animals[int(Math.random() * 5)], "object" + (i + _root.o_amount), (i + _root.o_amount) + 100);
m_name = eval ("_root.object" + (i + _root.o_amount));
m_name.start_x = smart_temp[2 * (i - 1)] - _root.xmap_adj;
m_name.start_y = smart_temp[(2 * (i - 1)) + 1] - _root.ymap_adj;
m_name.m_x = (m_name.start_x * 48) + 24;
m_name.m_y = (m_name.start_y * 48) + 24;
m_name.id = i + _root.o_amount;
m_name.speed = (int(Math.random() * 3) * 2) + 2;
m_name.gotoAndStop(2);
i++;
}
_root.o_amount = _root.o_amount + (smart_temp.length / 2);
routine_temp = _root.routine_animals.split(",");
i = 1;
while ((routine_temp.length / 2) >= i) {
duplicateMovieClip ("_root." + animals[int(Math.random() * 5)], "object" + (i + _root.o_amount), (i + _root.o_amount) + 100);
m_name = eval ("_root.object" + (i + _root.o_amount));
m_name.start_x = routine_temp[2 * (i - 1)] - _root.xmap_adj;
m_name.start_y = routine_temp[(2 * (i - 1)) + 1] - _root.ymap_adj;
m_name.m_x = (m_name.start_x * 48) + 24;
m_name.m_y = (m_name.start_y * 48) + 24;
m_name.id = i + _root.o_amount;
m_name.speed = (int(Math.random() * 3) * 2) + 2;
m_name.gotoAndStop(3);
i++;
}
_root.o_amount = _root.o_amount + (routine_temp.length / 2);
still_temp = _root.still_animals.split(",");
i = 1;
while ((still_temp.length / 2) >= i) {
duplicateMovieClip ("_root." + animals[int(Math.random() * 5)], "object" + (i + _root.o_amount), (i + _root.o_amount) + 100);
m_name = eval ("_root.object" + (i + _root.o_amount));
m_name.start_x = still_temp[2 * (i - 1)] - _root.xmap_adj;
m_name.start_y = still_temp[(2 * (i - 1)) + 1] - _root.ymap_adj;
m_name.m_x = (m_name.start_x * 48) + 24;
m_name.m_y = (m_name.start_y * 48) + 24;
m_name.id = i + _root.o_amount;
m_name.speed = (int(Math.random() * 3) * 2) + 2;
m_name.gotoAndStop(4);
i++;
}
_root.o_amount = _root.o_amount + (still_temp.length / 2);
animals_left = _root.o_amount;
count();
}
function make_spray() {
spray1_temp = _root.spray1_placement.split(",");
i = 1;
while ((spray1_temp.length / 2) >= i) {
duplicateMovieClip ("_root.spray", "spray" + i, i);
m_name = eval ("_root.spray" + i);
m_name.sr = spray1_temp[(2 * (i - 1)) + 1];
m_name.sc = spray1_temp[2 * (i - 1)];
m_name.x = ((spray1_temp[2 * (i - 1)] - _root.xmap_adj) * 48) + 24;
m_name.y = ((spray1_temp[(2 * (i - 1)) + 1] - _root.ymap_adj) * 48) + 24;
m_name.gotoAndStop(2);
i++;
}
red = spray1_temp.length / 2;
spray2_temp = _root.spray2_placement.split(",");
i = 1;
while ((spray2_temp.length / 2) >= i) {
duplicateMovieClip ("_root.green", "spray" + (i + red), i + red);
m_name = eval ("_root.spray" + (i + red));
m_name.sr = spray2_temp[(2 * (i - 1)) + 1];
m_name.sc = spray2_temp[2 * (i - 1)];
m_name.x = ((spray2_temp[2 * (i - 1)] - _root.xmap_adj) * 48) + 24;
m_name.y = ((spray2_temp[(2 * (i - 1)) + 1] - _root.ymap_adj) * 48) + 24;
m_name.gotoAndStop(2);
i++;
}
total_spray = (spray2_temp.length / 2) + (spray1_temp.length / 2);
}
function make_family() {
family_temp = _root.family_placement.split(",");
duplicateMovieClip ("_root.family", "family_member", 99);
_root.family_member;
_root.family_member.x = family_temp[0] - _root.xmap_adj;
_root.family_member.y = family_temp[1] - _root.ymap_adj;
_root.family_member.m_x = (_root.family_member.x * 48) + 24;
_root.family_member.m_y = (_root.family_member.y * 48) + 24;
}
function change_direction(name, row, ch) {
a_left = _root.map[row][ch - 1];
a_right = _root.map[row][ch + 1];
a_up = _root.map[row - 1][ch];
a_down = _root.map[row + 1][ch];
options = new Array(a_left, a_right, a_up, a_down);
temp_o = new Array();
i = 0;
while (3 >= i) {
((tile_legal >= options[i]) ? (temp_o.push(i)) : ((i = i)));
i++;
}
new_dir = temp_o[int(Math.random() * temp_o.length)];
m_name = eval ("_root." + name);
m_name.nd_x = direction[new_dir][0];
m_name.nd_y = direction[new_dir][1];
m_name.main.gotoAndStop(direction[new_dir][2]);
}
function spray_gauge() {
_root.display.spray.nextFrame();
if (_root.display.spray._currentframe != _root.display.spray._totalframes) {
((i = i));// not popped
} else {
(_root.dexter.walk.gotoAndPlay(_root.dexter.walk._currentframe - 9));// not popped
}
}
function special_gauge() {
_root.display.special.nextFrame();
}
function count(c_am) {
animals_left = animals_left - c_am;
_root.display.counter.count = animals_left;
((animals_left == 0) ? ((stop_me = true)_root.dexter.gotoAndStop("happy")sfx(12)_root.music.stop_music()) : ((i = i)));
}
function add_spray() {
_root.display.spray.gotoAndStop(1);
f_amount = 0;
gun = false;
}
function add_special() {
_root.display.special.gotoAndStop(1);
s_amount = 0;
spe = false;
}
function shoot() {
f_amount++;
((f_amount == 1) ? (_root.dexter.walk.gotoAndPlay(_root.dexter.walk._currentframe + 9)shots_fired++) : ((i = i)));
if (f_amount != 8) {
((i = i));// not popped
} else {
(_root.dexter.walk.gotoAndPlay(_root.dexter.walk._currentframe - 9));// not popped
}
duplicateMovieClip ("_root.bullet", "bullet" + f_amount, f_amount + 1000);
bul = eval ("_root.bullet" + f_amount);
bul._x = _root.dexter._x + (int(Math.random() * 6) - 3);
bul._y = _root.dexter._y + (int(Math.random() * 6) - 3);
bul._rotation = (_root.dexter._currentframe - 1) * 90;
bul.gotoAndStop(2);
bul.dir = _root.dexter._currentframe;
bul.state = f_amount;
spray_gauge();
}
function special_fire() {
s_amount++;
((s_amount == 1) ? (shots_fired++) : ((i = i)));
duplicateMovieClip ("_root.special", "bomb" + s_amount, 2000 - s_amount);
bomb = eval ("_root.bomb" + s_amount);
bomb._x = _root.dexter._x;
bomb._y = _root.dexter._y;
bomb._rotation = (_root.dexter._currentframe - 1) * 90;
bomb.gotoAndStop(2);
bomb.id = s_amount;
bomb.dir = _root.dexter._currentframe;
special_gauge();
land_tile = _root.map[(ab + 3) + (3 * ((_root.pd == 2) - (_root.pd == 4)))][(aa + 4) + (3 * ((_root.pd == 1) - (_root.pd == 3)))];
}
function freeze(fm) {
_root.music.change_music();
wf = eval ("_root.object" + fm).main._currentframe;
eval ("_root.object" + fm).gotoAndStop(10);
eval ("_root.object" + fm).main.gotoAndStop(wf);
count(1);
score(150);
sfx(3);
}
function score(amount) {
temp_score = temp_score + amount;
((temp_score < 1000000) ? ((_root.display.score.score = "0" + temp_score)) : ((i = i)));
((temp_score < 100000) ? ((_root.display.score.score = "00" + temp_score)) : ((i = i)));
((temp_score < 10000) ? ((_root.display.score.score = "000" + temp_score)) : ((i = i)));
((temp_score < 1000) ? ((_root.display.score.score = "0000" + temp_score)) : ((i = i)));
((temp_score < 100) ? ((_root.display.score.score = "00000" + temp_score)) : ((i = i)));
((temp_score < 10) ? ((_root.display.score.score = "000000" + temp_score)) : ((i = i)));
((0 >= temp_score) ? ((_root.display.score.score = "0000000")) : ((i = i)));
}
function shocker() {
((_root.dexter._currentframe != 11) ? ((_root.dexter.temp_frame = _root.dexter._currentframe)) : ((i = i)));
stop_me = true;
((_root.dexter._currentframe != 9) ? (_root.dexter.gotoAndStop("shock")_root.display.spray.gotoAndStop(_root.display.spray._currentframe + 12)sfx(5)) : ((i = i)));
s_amount = 0;
f_amount = 0;
gun = false;
spe = false;
}
function sfx(name) {
_root.sfx.gotoAndStop(name);
}
tile_legal = 24;
_root.menu.swapDepths(9001);
_root.sens = 38;
stop_me = true;
mwidth = 10;
mheight = 8;
map_num = 1;
_root.dexter.swapDepths(168);
animals = new Array("monkey", "rabbit", "teddy", "turtle", "fish");
direction = new Array([-1, 0, 2], [1, 0, 1], [0, -1, 2], [0, 1, 1]);
_root.display.timer.timer = "0000";
score();
}
onClipEvent (enterFrame) {
((((check_fire == true) && (released == true)) && (f_amount == 8)) ? ((f_amount = 0)(check_fire = false)(gun = false)(fire = false)) : ((i = i)));
((((s_check_fire == true) && (s_released == true)) && (s_amount == 3)) ? ((s_amount = 0)(s_check_fire = false)(spe = false)(special = false)) : ((i = i)));
temp_timer = bonus_start - int(temp_count);
((temp_timer < 1000) ? ((_root.display.timer.timer = "0" + temp_timer)) : ((i = i)));
((temp_timer < 100) ? ((_root.display.timer.timer = "00" + temp_timer)) : ((i = i)));
((temp_timer < 10) ? ((_root.display.timer.timer = "000" + temp_timer)) : ((i = i)));
((0 >= temp_timer) ? ((_root.display.timer.timer = "0000")) : ((i = i)));
(((temp_timer == 0) && (!stop_me)) ? (time_over()) : ((temp_count = temp_count + ((!stop_me) * 0.4))));
if (temp_timer != 100) {
((i = i));// not popped
} else {
(_root.display.timer.gotoAndPlay(2));// not popped
}
left = Key.isDown(37) * ((((!right) && (!up)) && (!down)) && (!stop_me));
right = Key.isDown(39) * ((((!left) && (!up)) && (!down)) && (!stop_me));
up = Key.isDown(38) * ((((!left) && (!right)) && (!down)) && (!stop_me));
down = Key.isDown(40) * ((((!left) && (!right)) && (!up)) && (!stop_me));
d_left = left && (!tile_left);
d_right = right && (!tile_right);
d_up = up && (!tile_up);
d_down = down && (!tile_down);
fire = Key.isDown(32) * (!stop_me);
released = !Key.isDown(32);
special = Key.isDown(88) * (!stop_me);
s_released = !Key.isDown(88);
(special ? ((spe = true)) : ((i = i)));
(fire ? ((gun = true)) : ((i = i)));
(((((s_amount < 3) && (f_amount == 0)) && (spe)) && (_root.display.special._currentframe < _root.display.special._totalframes)) ? ((x_speed = 0)(y_speed = 0)special_fire()) : ((i = i)));
(((((f_amount < 8) && (s_amount == 0)) && (gun)) && (_root.display.spray._currentframe < _root.display.spray._totalframes)) ? (shoot()) : ((i = i)));
df = _root.dexter._currentframe;
bet_x = (((df == 3) || (df == 1)) && (-33 >= ay)) - (((df == 3) || (df == 1)) && (ay >= -3));
bet_y = (((df == 4) || (df == 2)) && (-15 >= ax)) - (((df == 4) || (df == 2)) && (ax >= -30));
tile_mon = _root.map[(ab + 3) + ((df == 2) - (df == 4))][(aa + 4) + ((df == 1) - (df == 3))];
tile_up = (tile_legal < _root.map[ab + 2][aa + 4]) && (ay >= -15);
tile_down = (tile_legal < _root.map[ab + 4][aa + 4]) && (-21 >= ay);
tile_left = (tile_legal < _root.map[ab + 3][aa + 3]) && (ax >= -27);
tile_right = (tile_legal < _root.map[ab + 3][aa + 5]) && (-18 >= ax);
tile_mon_e = _root.map[((ab + 3) + ((df == 2) - (df == 4))) + bet_x][((aa + 4) + ((df == 1) - (df == 3))) + bet_y];
_root.dexter.r = ab + 3;
_root.dexter.c = aa + 4;
no_walk = ((((df == 3) && (ax >= -27)) || ((df == 1) && (-18 >= ax))) || ((df == 4) && (ay >= -15))) || ((df == 2) && (-21 >= ay));
good_tile = (tile_legal >= tile_mon_e) && (tile_legal >= tile_mon);
((no_walk && (!good_tile)) ? ((max_speed = 0)(x_speed = 0)(y_speed = 0)(x_pot = 0)(y_pot = 0)) : ((max_speed = 12)));
dir = (((1 * right) + (2 * down)) + (3 * left)) + (4 * up);
_root.dexter.gotoAndStop(dir);
((((x_speed + y_speed) == 0) && (stop_me != true)) ? (_root.dexter.walk.stop()) : (_root.dexter.walk.play()));
x_pot = (d_left - d_right) * max_speed;
x_speed = x_speed + (3 * (x_speed < x_pot));
x_speed = x_speed - (3 * (x_pot < x_speed));
y_pot = (d_up - d_down) * max_speed;
y_speed = y_speed + (3 * (y_speed < y_pot));
y_speed = y_speed - (3 * (y_pot < y_speed));
gx = gx + x_speed;
gy = gy + y_speed;
ax = ax + x_speed;
ay = ay + y_speed;
adj_x = adj_x + x_speed;
adj_y = adj_y + y_speed;
mm++;
w_obj = eval ("_root.object" + mm);
w_obj._x = adj_x + w_obj.m_x;
w_obj._y = adj_y + w_obj.m_y;
mm++;
w_obj = eval ("_root.object" + mm);
w_obj._x = adj_x + w_obj.m_x;
w_obj._y = adj_y + w_obj.m_y;
mm++;
w_obj = eval ("_root.object" + mm);
w_obj._x = adj_x + w_obj.m_x;
w_obj._y = adj_y + w_obj.m_y;
mm++;
w_obj = eval ("_root.object" + mm);
w_obj._x = adj_x + w_obj.m_x;
w_obj._y = adj_y + w_obj.m_y;
mm++;
w_obj = eval ("_root.object" + mm);
w_obj._x = adj_x + w_obj.m_x;
w_obj._y = adj_y + w_obj.m_y;
mm++;
w_obj = eval ("_root.object" + mm);
w_obj._x = adj_x + w_obj.m_x;
w_obj._y = adj_y + w_obj.m_y;
mm++;
w_obj = eval ("_root.object" + mm);
w_obj._x = adj_x + w_obj.m_x;
w_obj._y = adj_y + w_obj.m_y;
mm++;
w_obj = eval ("_root.object" + mm);
w_obj._x = adj_x + w_obj.m_x;
w_obj._y = adj_y + w_obj.m_y;
mm++;
w_obj = eval ("_root.object" + mm);
w_obj._x = adj_x + w_obj.m_x;
w_obj._y = adj_y + w_obj.m_y;
mm++;
w_obj = eval ("_root.object" + mm);
w_obj._x = adj_x + w_obj.m_x;
w_obj._y = adj_y + w_obj.m_y;
mm++;
w_obj = eval ("_root.object" + mm);
w_obj._x = adj_x + w_obj.m_x;
w_obj._y = adj_y + w_obj.m_y;
mm++;
w_obj = eval ("_root.object" + mm);
w_obj._x = adj_x + w_obj.m_x;
w_obj._y = adj_y + w_obj.m_y;
mm++;
w_obj = eval ("_root.object" + mm);
w_obj._x = adj_x + w_obj.m_x;
w_obj._y = adj_y + w_obj.m_y;
mm++;
w_obj = eval ("_root.object" + mm);
w_obj._x = adj_x + w_obj.m_x;
w_obj._y = adj_y + w_obj.m_y;
mm++;
w_obj = eval ("_root.object" + mm);
w_obj._x = adj_x + w_obj.m_x;
w_obj._y = adj_y + w_obj.m_y;
mm++;
w_obj = eval ("_root.object" + mm);
w_obj._x = adj_x + w_obj.m_x;
w_obj._y = adj_y + w_obj.m_y;
mm++;
w_obj = eval ("_root.object" + mm);
w_obj._x = adj_x + w_obj.m_x;
w_obj._y = adj_y + w_obj.m_y;
mm++;
w_obj = eval ("_root.object" + mm);
w_obj._x = adj_x + w_obj.m_x;
w_obj._y = adj_y + w_obj.m_y;
mm++;
w_obj = eval ("_root.object" + mm);
w_obj._x = adj_x + w_obj.m_x;
w_obj._y = adj_y + w_obj.m_y;
mm++;
w_obj = eval ("_root.object" + mm);
w_obj._x = adj_x + w_obj.m_x;
w_obj._y = adj_y + w_obj.m_y;
mm++;
w_obj = eval ("_root.object" + mm);
w_obj._x = adj_x + w_obj.m_x;
w_obj._y = adj_y + w_obj.m_y;
_root.family_member._x = adj_x + _root.family_member.m_x;
_root.family_member._y = adj_y + _root.family_member.m_y;
mm = 0;
ms++;
s_obj = eval ("_root.spray" + ms);
s_obj._x = adj_x + s_obj.x;
s_obj._y = adj_y + s_obj.y;
ms++;
s_obj = eval ("_root.spray" + ms);
s_obj._x = adj_x + s_obj.x;
s_obj._y = adj_y + s_obj.y;
ms++;
s_obj = eval ("_root.spray" + ms);
s_obj._x = adj_x + s_obj.x;
s_obj._y = adj_y + s_obj.y;
ms++;
s_obj = eval ("_root.spray" + ms);
s_obj._x = adj_x + s_obj.x;
s_obj._y = adj_y + s_obj.y;
ms = 0;
ra = ra + ((1 * (gx < -48)) - (1 * (0 < gx)));
rb = rb + ((1 * (gy < -48)) - (1 * (0 < gy)));
aa = aa + ((1 * (ax < -48)) - (1 * (0 < ax)));
ab = ab + ((1 * (ay < -48)) - (1 * (0 < ay)));
gx = gx + ((48 * (gx < -48)) - (48 * (0 < gx)));
gy = gy + ((48 * (gy < -48)) - (48 * (0 < gy)));
ax = ax + ((48 * (ax < -48)) - (48 * (0 < ax)));
ay = ay + ((48 * (ay < -48)) - (48 * (0 < ay)));
_root.ground._y = gy;
_root.ground._x = gx;
_root.ground.t1.gotoAndStop(_root.map[rb][ra]);
_root.ground.t2.gotoAndStop(_root.map[rb][ra + 1]);
_root.ground.t3.gotoAndStop(_root.map[rb][ra + 2]);
_root.ground.t4.gotoAndStop(_root.map[rb][ra + 3]);
_root.ground.t5.gotoAndStop(_root.map[rb][ra + 4]);
_root.ground.t6.gotoAndStop(_root.map[rb][ra + 5]);
_root.ground.t7.gotoAndStop(_root.map[rb][ra + 6]);
_root.ground.t8.gotoAndStop(_root.map[rb][ra + 7]);
_root.ground.t9.gotoAndStop(_root.map[rb][ra + 8]);
_root.ground.t10.gotoAndStop(_root.map[rb][ra + 9]);
_root.ground.t11.gotoAndStop(_root.map[rb + 1][ra]);
_root.ground.t12.gotoAndStop(_root.map[rb + 1][ra + 1]);
_root.ground.t13.gotoAndStop(_root.map[rb + 1][ra + 2]);
_root.ground.t14.gotoAndStop(_root.map[rb + 1][ra + 3]);
_root.ground.t15.gotoAndStop(_root.map[rb + 1][ra + 4]);
_root.ground.t16.gotoAndStop(_root.map[rb + 1][ra + 5]);
_root.ground.t17.gotoAndStop(_root.map[rb + 1][ra + 6]);
_root.ground.t18.gotoAndStop(_root.map[rb + 1][ra + 7]);
_root.ground.t19.gotoAndStop(_root.map[rb + 1][ra + 8]);
_root.ground.t20.gotoAndStop(_root.map[rb + 1][ra + 9]);
_root.ground.t21.gotoAndStop(_root.map[rb + 2][ra]);
_root.ground.t22.gotoAndStop(_root.map[rb + 2][ra + 1]);
_root.ground.t23.gotoAndStop(_root.map[rb + 2][ra + 2]);
_root.ground.t24.gotoAndStop(_root.map[rb + 2][ra + 3]);
_root.ground.t25.gotoAndStop(_root.map[rb + 2][ra + 4]);
_root.ground.t26.gotoAndStop(_root.map[rb + 2][ra + 5]);
_root.ground.t27.gotoAndStop(_root.map[rb + 2][ra + 6]);
_root.ground.t28.gotoAndStop(_root.map[rb + 2][ra + 7]);
_root.ground.t29.gotoAndStop(_root.map[rb + 2][ra + 8]);
_root.ground.t30.gotoAndStop(_root.map[rb + 2][ra + 9]);
_root.ground.t31.gotoAndStop(_root.map[rb + 3][ra]);
_root.ground.t32.gotoAndStop(_root.map[rb + 3][ra + 1]);
_root.ground.t33.gotoAndStop(_root.map[rb + 3][ra + 2]);
_root.ground.t34.gotoAndStop(_root.map[rb + 3][ra + 3]);
_root.ground.t35.gotoAndStop(_root.map[rb + 3][ra + 4]);
_root.ground.t36.gotoAndStop(_root.map[rb + 3][ra + 5]);
_root.ground.t37.gotoAndStop(_root.map[rb + 3][ra + 6]);
_root.ground.t38.gotoAndStop(_root.map[rb + 3][ra + 7]);
_root.ground.t39.gotoAndStop(_root.map[rb + 3][ra + 8]);
_root.ground.t40.gotoAndStop(_root.map[rb + 3][ra + 9]);
_root.ground.t41.gotoAndStop(_root.map[rb + 4][ra]);
_root.ground.t42.gotoAndStop(_root.map[rb + 4][ra + 1]);
_root.ground.t43.gotoAndStop(_root.map[rb + 4][ra + 2]);
_root.ground.t44.gotoAndStop(_root.map[rb + 4][ra + 3]);
_root.ground.t45.gotoAndStop(_root.map[rb + 4][ra + 4]);
_root.ground.t46.gotoAndStop(_root.map[rb + 4][ra + 5]);
_root.ground.t47.gotoAndStop(_root.map[rb + 4][ra + 6]);
_root.ground.t48.gotoAndStop(_root.map[rb + 4][ra + 7]);
_root.ground.t49.gotoAndStop(_root.map[rb + 4][ra + 8]);
_root.ground.t50.gotoAndStop(_root.map[rb + 4][ra + 9]);
_root.ground.t51.gotoAndStop(_root.map[rb + 5][ra]);
_root.ground.t52.gotoAndStop(_root.map[rb + 5][ra + 1]);
_root.ground.t53.gotoAndStop(_root.map[rb + 5][ra + 2]);
_root.ground.t54.gotoAndStop(_root.map[rb + 5][ra + 3]);
_root.ground.t55.gotoAndStop(_root.map[rb + 5][ra + 4]);
_root.ground.t56.gotoAndStop(_root.map[rb + 5][ra + 5]);
_root.ground.t57.gotoAndStop(_root.map[rb + 5][ra + 6]);
_root.ground.t58.gotoAndStop(_root.map[rb + 5][ra + 7]);
_root.ground.t59.gotoAndStop(_root.map[rb + 5][ra + 8]);
_root.ground.t60.gotoAndStop(_root.map[rb + 5][ra + 9]);
_root.ground.t61.gotoAndStop(_root.map[rb + 6][ra]);
_root.ground.t62.gotoAndStop(_root.map[rb + 6][ra + 1]);
_root.ground.t63.gotoAndStop(_root.map[rb + 6][ra + 2]);
_root.ground.t64.gotoAndStop(_root.map[rb + 6][ra + 3]);
_root.ground.t65.gotoAndStop(_root.map[rb + 6][ra + 4]);
_root.ground.t66.gotoAndStop(_root.map[rb + 6][ra + 5]);
_root.ground.t67.gotoAndStop(_root.map[rb + 6][ra + 6]);
_root.ground.t68.gotoAndStop(_root.map[rb + 6][ra + 7]);
_root.ground.t69.gotoAndStop(_root.map[rb + 6][ra + 8]);
_root.ground.t70.gotoAndStop(_root.map[rb + 6][ra + 9]);
_root.ground.t71.gotoAndStop(_root.map[rb + 7][ra]);
_root.ground.t72.gotoAndStop(_root.map[rb + 7][ra + 1]);
_root.ground.t73.gotoAndStop(_root.map[rb + 7][ra + 2]);
_root.ground.t74.gotoAndStop(_root.map[rb + 7][ra + 3]);
_root.ground.t75.gotoAndStop(_root.map[rb + 7][ra + 4]);
_root.ground.t76.gotoAndStop(_root.map[rb + 7][ra + 5]);
_root.ground.t77.gotoAndStop(_root.map[rb + 7][ra + 6]);
_root.ground.t78.gotoAndStop(_root.map[rb + 7][ra + 7]);
_root.ground.t79.gotoAndStop(_root.map[rb + 7][ra + 8]);
_root.ground.t80.gotoAndStop(_root.map[rb + 7][ra + 9]);
}
Instance of Symbol 458 MovieClip "display" in Frame 2
onClipEvent (load) {
this.swapDepths(9000);
}
Instance of Symbol 555 MovieClip "music" in Frame 2
onClipEvent (load) {
function start_music() {
i = 1;
while (4 >= i) {
eval ("l" + i).comp.setVolume(0);
eval ("l" + i).comp.stop("loop" + i);
i++;
}
i = 1;
while (4 >= i) {
eval ("l" + i).comp.start(0, 99999);
i++;
}
fader = false;
vol = 90;
eval ("l" + piece).comp.setVolume(vol);
}
function stop_music() {
fader = true;
}
function change_music() {
piece = Math.floor((Math.random() * 4) + 1);
i = 1;
while (4 >= i) {
((i == piece) ? (eval ("l" + i).comp.setVolume(vol)) : (eval ("l" + i).comp.setVolume(0)));
i++;
}
}
piece = 1;
i = 1;
while (4 >= i) {
duplicateMovieClip ("original", "l" + i, i);
eval ("l" + i).comp = new Sound("l" + i);
eval ("l" + i).comp.attachsound("loop" + i);
eval ("l" + i).comp.setVolume(0);
i++;
}
}
onClipEvent (enterFrame) {
((fader && (0 < vol)) ? ((vol = vol - 2)eval ("l" + piece).comp.setVolume(vol)) : ((fader = false)));
}
Instance of Symbol 568 MovieClip "sfx" in Frame 2
onClipEvent (enterFrame) {
if (this._currentframe == 1) {
((i = i));// not popped
} else {
(this.gotoAndStop(1));// not popped
}
}
Instance of Symbol 670 MovieClip "family" in Frame 2
onClipEvent (load) {
gotoAndStop(_root.script.map_num +1);
}
Symbol 22 Button
on (release) {
_root.gotoAndStop("game");
}
Symbol 23 MovieClip Frame 1
stop();
Symbol 297 MovieClip Frame 1
stop();
Symbol 329 MovieClip Frame 9
gotoAndPlay (1);
Symbol 329 MovieClip Frame 18
gotoAndPlay (10);
Symbol 329 MovieClip Frame 19
play();
Symbol 329 MovieClip Frame 38
_root.script.stop_me = false;
gotoAndStop (1);
Symbol 346 MovieClip Frame 9
gotoAndPlay (1);
Symbol 346 MovieClip Frame 18
gotoAndPlay (10);
Symbol 346 MovieClip Frame 38
_root.script.stop_me = false;
gotoAndStop (1);
Symbol 361 MovieClip Frame 9
gotoAndPlay (1);
Symbol 361 MovieClip Frame 18
gotoAndPlay (10);
Symbol 361 MovieClip Frame 38
_root.script.stop_me = false;
gotoAndStop (1);
Symbol 370 MovieClip Frame 100
_root.script.end_game();
stop();
Symbol 389 MovieClip Frame 12
_root.script.sfx(6);
Symbol 389 MovieClip Frame 24
_root.script.sfx(6);
Symbol 389 MovieClip Frame 36
_root.script.sfx(6);
Symbol 389 MovieClip Frame 48
_root.script.sfx(6);
Symbol 389 MovieClip Frame 84
_root.script.tally();
stop();
Symbol 393 MovieClip Frame 1
stop();
Instance of Symbol 392 MovieClip in Symbol 393 MovieClip Frame 11
onClipEvent (enterFrame) {
if (a != 10) {
(a++);// not popped
} else {
(_root.script.stop_me = false);
(_parent.gotoAndStop(_parent.temp_frame));// not popped
}
}
Symbol 407 MovieClip Frame 1
stop();
Instance of Symbol 406 MovieClip in Symbol 407 MovieClip Frame 2
onClipEvent (load) {
acc = 1;
((_parent.dir == 1) ? ((x = acc)(y = 0)) : ((i = i)));
((_parent.dir == 2) ? ((x = 0)(y = acc)) : ((i = i)));
((_parent.dir == 3) ? ((x = -acc)(y = 0)) : ((i = i)));
((_parent.dir == 4) ? ((x = 0)(y = -acc)) : ((i = i)));
_alpha = 80;
_parent._x = _parent._x + (x * 48);
_parent._y = _parent._y + (y * 48);
((_parent.state == 8) ? ((_root.script.gun = false)) : ((i = i)));
((_parent.state == 1) ? (_root.script.sfx(2)) : ((i = i)));
}
onClipEvent (enterFrame) {
this._alpha = this._alpha - 10;
_parent._x = _parent._x + _root.script.x_speed;
_parent._y = _parent._y + _root.script.y_speed;
wm = wm + ((wm < _root.o_amount) - ((_root.o_amount - 1) * (wm == _root.o_amount)));
temp_wo = temp_wo - ((0 < temp_wo) - ((_root.o_amount - 1) * (temp_wo == 0)));
wo = temp_wo + 1;
dist_x = Math.abs(_parent._x - eval ("_root.object" + wm)._x);
dist_y = Math.abs(_parent._y - eval ("_root.object" + wm)._y);
too_close = (dist_x < _root.sens) && (dist_y < _root.sens);
(((too_close == true) && (eval ("_root.object" + wm)._currentframe != 10)) ? (_root.script.freeze(wm)) : ((i = i)));
dist_x = Math.abs(_parent._x - eval ("_root.object" + wo)._x);
dist_y = Math.abs(_parent._y - eval ("_root.object" + wo)._y);
too_close = (dist_x < _root.sens) && (dist_y < _root.sens);
(((too_close == true) && (eval ("_root.object" + wo)._currentframe != 10)) ? (_root.script.freeze(wo)) : ((i = i)));
((wm == _root.o_amount) ? (removeMovieClip(_parent)) : (0 < _parent.state));
}
onClipEvent (unload) {
((_parent.state == 8) ? ((_root.script.check_fire = true)) : ((i = i)));
}
Symbol 422 MovieClip Frame 1
stop();
Symbol 422 MovieClip Frame 2
stop();
Symbol 425 MovieClip Frame 1
stop();
Instance of Symbol 422 MovieClip "main" in Symbol 425 MovieClip Frame 2
onClipEvent (enterFrame) {
((a == 5) ? (_root.script.change_direction("object" + _parent.id, _parent.mt_r, _parent.mt_c)a++) : (a++));
_parent.m_x = _parent.m_x + (_parent.nd_x * _parent.speed);
_parent.m_y = _parent.m_y + (_parent.nd_y * _parent.speed);
_parent.mt_c = Math.floor(_parent.m_x / 48) + _root.xmap_adj;
_parent.mt_r = Math.floor(_parent.m_y / 48) + _root.ymap_adj;
d_x = Math.floor(_parent._x / 48);
d_y = Math.floor(_parent._y / 48);
((((d_x == 4) && (d_y == 3)) && (_root.dexter._currentframe != 11)) ? (_root.script.shocker()) : ((i = i)));
_parent.monkey_tile = _root.map[_parent.mt_r + _parent.nd_y][_parent.mt_c + _parent.nd_x];
_parent.mmx = _parent.mmx + (_parent.nd_x * _parent.speed);
_parent.mmx = (_parent.mmx + 48) % 48;
_parent.mmy = _parent.mmy + (_parent.nd_y * _parent.speed);
_parent.mmy = (_parent.mmy + 48) % 48;
tile_on = ((_parent.mmy == 0) && (_parent.nd_x == 0)) || ((_parent.mmx == 0) && (_parent.nd_y == 0));
rnd = int(Math.random() * 5);
((((_parent.monkey_tile >= _root.script.tile_legal) || (rnd == 0)) && (tile_on)) ? ((_parent.nd_x = 0)(_parent.nd_y = 0)_root.script.change_direction("object" + _parent.id, _parent.mt_r, _parent.mt_c)) : ((i = i)));
}
Instance of Symbol 422 MovieClip "main" in Symbol 425 MovieClip Frame 3
onClipEvent (load) {
s_x = _parent.m_x;
s_y = _parent.m_y;
}
onClipEvent (enterFrame) {
d_x = Math.floor(_parent._x / 48);
d_y = Math.floor(_parent._y / 48);
((((d_x == 4) && (d_y == 3)) && (_root.dexter._currentframe != 11)) ? (_root.script.shocker()) : ((i = i)));
rel_x = _parent.m_x - s_x;
rel_y = _parent.m_y - s_y;
if (!((rel_x == -96) && (rel_y == 0))) {
((i = i));// not popped
} else {
(_parent.nd_x = 0);
(_parent.nd_y = 1);
(this.gotoAndStop(2));// not popped
}
if (!((rel_x == -96) && (rel_y == 96))) {
((i = i));// not popped
} else {
(_parent.nd_x = 1);
(_parent.nd_y = 0);
(this.gotoAndStop(1));// not popped
}
if (!((rel_x == 0) && (rel_y == 96))) {
((i = i));// not popped
} else {
(_parent.nd_x = 0);
(_parent.nd_y = -1);
(this.gotoAndStop(1));// not popped
}
if (!((rel_x == 0) && (rel_y == 0))) {
((i = i));// not popped
} else {
(_parent.nd_x = -1);
(_parent.nd_y = 0);
(this.gotoAndStop(2));// not popped
}
_parent.m_x = _parent.m_x + (_parent.nd_x * _parent.speed);
_parent.m_y = _parent.m_y + (_parent.nd_y * _parent.speed);
}
Symbol 436 MovieClip Frame 1
stop();
Symbol 436 MovieClip Frame 100
_root.script.f_amount = 0;
Symbol 439 MovieClip Frame 1
stop();
Symbol 447 MovieClip Frame 1
stop();
Symbol 447 MovieClip Frame 10
gotoAndPlay (2);
Symbol 463 MovieClip Frame 1
stop();
Instance of Symbol 461 MovieClip in Symbol 463 MovieClip Frame 2
onClipEvent (enterFrame) {
if (!(((_root.script.ab + 3) == _parent.sr) && ((_root.script.aa + 4) == _parent.sc))) {
((i = i));// not popped
} else {
_root.script.add_spray();
(_parent.gotoAndStop(3));// not popped
}
}
Symbol 463 MovieClip Frame 3
_root.script.sfx(4);
Instance of Symbol 462 MovieClip in Symbol 463 MovieClip Frame 3
onClipEvent (enterFrame) {
if (t != 250) {
(t++);// not popped
} else {
(_parent.gotoAndStop(2));// not popped
}
}
Symbol 467 MovieClip Frame 1
stop();
Instance of Symbol 466 MovieClip in Symbol 467 MovieClip Frame 2
onClipEvent (enterFrame) {
if (!(((_root.script.ab + 3) == _parent.sr) && ((_root.script.aa + 4) == _parent.sc))) {
((i = i));// not popped
} else {
_root.script.add_special();
(_parent.gotoAndStop(3));// not popped
}
}
Symbol 467 MovieClip Frame 3
_root.script.sfx(7);
Instance of Symbol 462 MovieClip in Symbol 467 MovieClip Frame 3
onClipEvent (enterFrame) {
if (t != 500) {
(t++);// not popped
} else {
(_parent.gotoAndStop(2));// not popped
}
}
Symbol 494 MovieClip Frame 1
stop();
Instance of Symbol 470 MovieClip in Symbol 494 MovieClip Frame 2
onClipEvent (load) {
function checker() {
((_parent.id == 1) ? (conclusion()) : (removeMovieClip(_parent)));
}
function conclusion() {
if (!((_root.script.tile_legal >= _root.script.land_tile) && (_root.script.land_tile != 1))) {
(_parent.gotoAndStop(4));// not popped
} else {
(_root.script.spe = false);
(_parent.starter = true);
(_parent.gotoAndStop(3));// not popped
}
}
if (_parent.id != 1) {
((i = i));// not popped
} else {
_root.script.sfx(9);
(_root.pd = _parent.dir);
(_root.script.stop_me = true);
(_root.dexter.walk.gotoAndPlay(19));// not popped
}
alph = new Array(100, 60, 30);
((_root.pd == 1) ? ((x = acc)(y = 0)) : ((i = i)));
((_root.pd == 2) ? ((x = 0)(y = acc)) : ((i = i)));
((_root.pd == 3) ? ((x = -acc)(y = 0)) : ((i = i)));
((_root.pd == 4) ? ((x = 0)(y = -acc)) : ((i = i)));
(((_root.pd == 1) || (_root.pd == 3)) ? ((hor = true)) : ((ver = true)));
_parent._x = _parent._x + (x * 24);
_parent._y = _parent._y + (y * 24);
if (hor) {
g = 200;
vy = -200;
vx = 75 * ((_root.pd == 1) - (_root.pd == 3));
_parent._rotation = 80 * ((_root.pd == 3) - (_root.pd == 1));
_parent._alpha = alph[_parent.id - 1];
}
if (ver) {
g = 200;
vy = 1;
ay = 25;
yy = 20;
_parent._rotation = 90;
_parent._alpha = alph[_parent.id - 1];
}
ver_mov = new Array(1.3, 1.6, 2.1, 2.8, 3.7, 4.8, 6.2, 8.1, 10, 13, 16, 22, 12, 10, 8.1, 6.2, 4.8, 3.7, 2.8, 2.1, 1.6, 1.3);
b = 1;
}
onClipEvent (enterFrame) {
b = b * 1.2;
if (hor) {
_parent._rotation = _parent._rotation + (8 * ((_root.pd == 1) - (_root.pd == 3)));
((vy == 180) ? ((hor = false)(vy = 0)checker()) : ((i = i)));
x = _parent._x;
y = _parent._y;
vy = vy + (g * 0.1);
x = x + (vx * 0.1);
y = y + (vy * 0.1);
_parent._x = x + _root.script.x_speed;
_parent._y = y + _root.script.y_speed;
}
if (ver) {
x = _parent._x;
y = _parent._y;
vy = ver_mov[t] * ((_root.pd == 2) - (_root.pd == 4));
_parent._xscale = (ver_mov[t] * 5) + 100;
_parent._yscale = (ver_mov[t] * 5) + 100;
t++;
((ver_mov.length < t) ? (checker()) : ((i = i)));
_parent._x = _root.script.x_speed + x;
_parent._y = (_root.script.y_speed + y) + vy;
}
}
Symbol 494 MovieClip Frame 3
_rotation = 0;
_root.script.sfx(10);
Instance of Symbol 493 MovieClip "smoke" in Symbol 494 MovieClip Frame 3
onClipEvent (enterFrame) {
_parent._x = _parent._x + _root.script.x_speed;
_parent._y = _parent._y + _root.script.y_speed;
wm = wm + ((wm < _root.o_amount) - ((_root.o_amount - 1) * (wm == _root.o_amount)));
temp_wo = temp_wo - ((0 < temp_wo) - ((_root.o_amount - 1) * (temp_wo == 0)));
wo = temp_wo + 1;
dist_x = Math.abs(_parent._x - eval ("_root.object" + wm)._x);
dist_y = Math.abs(_parent._y - eval ("_root.object" + wm)._y);
too_close = (dist_x < (_root.sens * 3)) && (dist_y < (_root.sens * 3));
(((too_close == true) && (eval ("_root.object" + wm)._currentframe != 10)) ? (_root.script.freeze(wm)) : ((i = i)));
dist_x = Math.abs(_parent._x - eval ("_root.object" + wo)._x);
dist_y = Math.abs(_parent._y - eval ("_root.object" + wo)._y);
too_close = (dist_x < (_root.sens * 3)) && (dist_y < (_root.sens * 3));
(((too_close == true) && (eval ("_root.object" + wo)._currentframe != 10)) ? (_root.script.freeze(wo)) : ((i = i)));
((this._currentframe == this._totalframes) ? ((_root.script.s_check_fire = true)_parent.removeMovieClip()) : ((i = i)));
}
Symbol 494 MovieClip Frame 4
_root.script.sfx(11);
Instance of Symbol 470 MovieClip in Symbol 494 MovieClip Frame 4
onClipEvent (load) {
_root.script.stop_me = false;
_root.script.spe = false;
_root.script.s_amount = 0;
g = 100;
vy = -100;
}
onClipEvent (enterFrame) {
((0 >= _parent._alpha) ? (removeMovieClip(_parent)) : ((_parent._alpha = _parent._alpha - 5)));
y = _parent._y;
vy = vy + (g * 0.1);
y = y + (vy * 0.1);
_parent._y = y + _root.script.y_speed;
_parent._x = _parent._x + _root.script.x_speed;
}
Symbol 506 MovieClip Frame 1
stop();
Symbol 506 MovieClip Frame 2
stop();
Symbol 509 MovieClip Frame 1
stop();
Instance of Symbol 506 MovieClip "main" in Symbol 509 MovieClip Frame 2
onClipEvent (enterFrame) {
((a == 5) ? (_root.script.change_direction("object" + _parent.id, _parent.mt_r, _parent.mt_c)a++) : (a++));
_parent.m_x = _parent.m_x + (_parent.nd_x * _parent.speed);
_parent.m_y = _parent.m_y + (_parent.nd_y * _parent.speed);
_parent.mt_c = Math.floor(_parent.m_x / 48) + _root.xmap_adj;
_parent.mt_r = Math.floor(_parent.m_y / 48) + _root.ymap_adj;
d_x = Math.floor(_parent._x / 48);
d_y = Math.floor(_parent._y / 48);
((((d_x == 4) && (d_y == 3)) && (_root.dexter._currentframe != 11)) ? (_root.script.shocker()) : ((i = i)));
_parent.monkey_tile = _root.map[_parent.mt_r + _parent.nd_y][_parent.mt_c + _parent.nd_x];
_parent.mmx = _parent.mmx + (_parent.nd_x * _parent.speed);
_parent.mmx = (_parent.mmx + 48) % 48;
_parent.mmy = _parent.mmy + (_parent.nd_y * _parent.speed);
_parent.mmy = (_parent.mmy + 48) % 48;
tile_on = ((_parent.mmy == 0) && (_parent.nd_x == 0)) || ((_parent.mmx == 0) && (_parent.nd_y == 0));
rnd = int(Math.random() * 5);
((((_parent.monkey_tile >= _root.script.tile_legal) || (rnd == 0)) && (tile_on)) ? ((_parent.nd_x = 0)(_parent.nd_y = 0)_root.script.change_direction("object" + _parent.id, _parent.mt_r, _parent.mt_c)) : ((i = i)));
}
Instance of Symbol 506 MovieClip "main" in Symbol 509 MovieClip Frame 3
onClipEvent (load) {
s_x = _parent.m_x;
s_y = _parent.m_y;
}
onClipEvent (enterFrame) {
d_x = Math.floor(_parent._x / 48);
d_y = Math.floor(_parent._y / 48);
((((d_x == 4) && (d_y == 3)) && (_root.dexter._currentframe != 11)) ? (_root.script.shocker()) : ((i = i)));
rel_x = _parent.m_x - s_x;
rel_y = _parent.m_y - s_y;
if (!((rel_x == -96) && (rel_y == 0))) {
((i = i));// not popped
} else {
(_parent.nd_x = 0);
(_parent.nd_y = 1);
(this.gotoAndStop(2));// not popped
}
if (!((rel_x == -96) && (rel_y == 96))) {
((i = i));// not popped
} else {
(_parent.nd_x = 1);
(_parent.nd_y = 0);
(this.gotoAndStop(1));// not popped
}
if (!((rel_x == 0) && (rel_y == 96))) {
((i = i));// not popped
} else {
(_parent.nd_x = 0);
(_parent.nd_y = -1);
(this.gotoAndStop(1));// not popped
}
if (!((rel_x == 0) && (rel_y == 0))) {
((i = i));// not popped
} else {
(_parent.nd_x = -1);
(_parent.nd_y = 0);
(this.gotoAndStop(2));// not popped
}
_parent.m_x = _parent.m_x + (_parent.nd_x * _parent.speed);
_parent.m_y = _parent.m_y + (_parent.nd_y * _parent.speed);
}
Symbol 521 MovieClip Frame 1
stop();
Symbol 521 MovieClip Frame 2
stop();
Symbol 524 MovieClip Frame 1
stop();
Instance of Symbol 521 MovieClip "main" in Symbol 524 MovieClip Frame 2
onClipEvent (enterFrame) {
((a == 5) ? (_root.script.change_direction("object" + _parent.id, _parent.mt_r, _parent.mt_c)a++) : (a++));
_parent.m_x = _parent.m_x + (_parent.nd_x * _parent.speed);
_parent.m_y = _parent.m_y + (_parent.nd_y * _parent.speed);
_parent.mt_c = Math.floor(_parent.m_x / 48) + _root.xmap_adj;
_parent.mt_r = Math.floor(_parent.m_y / 48) + _root.ymap_adj;
d_x = Math.floor(_parent._x / 48);
d_y = Math.floor(_parent._y / 48);
((((d_x == 4) && (d_y == 3)) && (_root.dexter._currentframe != 11)) ? (_root.script.shocker()) : ((i = i)));
_parent.monkey_tile = _root.map[_parent.mt_r + _parent.nd_y][_parent.mt_c + _parent.nd_x];
_parent.mmx = _parent.mmx + (_parent.nd_x * _parent.speed);
_parent.mmx = (_parent.mmx + 48) % 48;
_parent.mmy = _parent.mmy + (_parent.nd_y * _parent.speed);
_parent.mmy = (_parent.mmy + 48) % 48;
tile_on = ((_parent.mmy == 0) && (_parent.nd_x == 0)) || ((_parent.mmx == 0) && (_parent.nd_y == 0));
rnd = int(Math.random() * 5);
((((_parent.monkey_tile >= _root.script.tile_legal) || (rnd == 0)) && (tile_on)) ? ((_parent.nd_x = 0)(_parent.nd_y = 0)_root.script.change_direction("object" + _parent.id, _parent.mt_r, _parent.mt_c)) : ((i = i)));
}
Instance of Symbol 521 MovieClip "main" in Symbol 524 MovieClip Frame 3
onClipEvent (load) {
s_x = _parent.m_x;
s_y = _parent.m_y;
}
onClipEvent (enterFrame) {
d_x = Math.floor(_parent._x / 48);
d_y = Math.floor(_parent._y / 48);
((((d_x == 4) && (d_y == 3)) && (_root.dexter._currentframe != 11)) ? (_root.script.shocker()) : ((i = i)));
rel_x = _parent.m_x - s_x;
rel_y = _parent.m_y - s_y;
if (!((rel_x == -96) && (rel_y == 0))) {
((i = i));// not popped
} else {
(_parent.nd_x = 0);
(_parent.nd_y = 1);
(this.gotoAndStop(2));// not popped
}
if (!((rel_x == -96) && (rel_y == 96))) {
((i = i));// not popped
} else {
(_parent.nd_x = 1);
(_parent.nd_y = 0);
(this.gotoAndStop(1));// not popped
}
if (!((rel_x == 0) && (rel_y == 96))) {
((i = i));// not popped
} else {
(_parent.nd_x = 0);
(_parent.nd_y = -1);
(this.gotoAndStop(1));// not popped
}
if (!((rel_x == 0) && (rel_y == 0))) {
((i = i));// not popped
} else {
(_parent.nd_x = -1);
(_parent.nd_y = 0);
(this.gotoAndStop(2));// not popped
}
_parent.m_x = _parent.m_x + (_parent.nd_x * _parent.speed);
_parent.m_y = _parent.m_y + (_parent.nd_y * _parent.speed);
}
Symbol 536 MovieClip Frame 1
stop();
Symbol 536 MovieClip Frame 2
stop();
Symbol 539 MovieClip Frame 1
stop();
Instance of Symbol 536 MovieClip "main" in Symbol 539 MovieClip Frame 2
onClipEvent (enterFrame) {
((a == 5) ? (_root.script.change_direction("object" + _parent.id, _parent.mt_r, _parent.mt_c)a++) : (a++));
_parent.m_x = _parent.m_x + (_parent.nd_x * _parent.speed);
_parent.m_y = _parent.m_y + (_parent.nd_y * _parent.speed);
_parent.mt_c = Math.floor(_parent.m_x / 48) + _root.xmap_adj;
_parent.mt_r = Math.floor(_parent.m_y / 48) + _root.ymap_adj;
d_x = Math.floor(_parent._x / 48);
d_y = Math.floor(_parent._y / 48);
((((d_x == 4) && (d_y == 3)) && (_root.dexter._currentframe != 11)) ? (_root.script.shocker()) : ((i = i)));
_parent.monkey_tile = _root.map[_parent.mt_r + _parent.nd_y][_parent.mt_c + _parent.nd_x];
_parent.mmx = _parent.mmx + (_parent.nd_x * _parent.speed);
_parent.mmx = (_parent.mmx + 48) % 48;
_parent.mmy = _parent.mmy + (_parent.nd_y * _parent.speed);
_parent.mmy = (_parent.mmy + 48) % 48;
tile_on = ((_parent.mmy == 0) && (_parent.nd_x == 0)) || ((_parent.mmx == 0) && (_parent.nd_y == 0));
rnd = int(Math.random() * 5);
((((_parent.monkey_tile >= _root.script.tile_legal) || (rnd == 0)) && (tile_on)) ? ((_parent.nd_x = 0)(_parent.nd_y = 0)_root.script.change_direction("object" + _parent.id, _parent.mt_r, _parent.mt_c)) : ((i = i)));
}
Instance of Symbol 536 MovieClip "main" in Symbol 539 MovieClip Frame 3
onClipEvent (load) {
s_x = _parent.m_x;
s_y = _parent.m_y;
}
onClipEvent (enterFrame) {
d_x = Math.floor(_parent._x / 48);
d_y = Math.floor(_parent._y / 48);
((((d_x == 4) && (d_y == 3)) && (_root.dexter._currentframe != 11)) ? (_root.script.shocker()) : ((i = i)));
rel_x = _parent.m_x - s_x;
rel_y = _parent.m_y - s_y;
if (!((rel_x == -96) && (rel_y == 0))) {
((i = i));// not popped
} else {
(_parent.nd_x = 0);
(_parent.nd_y = 1);
(this.gotoAndStop(2));// not popped
}
if (!((rel_x == -96) && (rel_y == 96))) {
((i = i));// not popped
} else {
(_parent.nd_x = 1);
(_parent.nd_y = 0);
(this.gotoAndStop(1));// not popped
}
if (!((rel_x == 0) && (rel_y == 96))) {
((i = i));// not popped
} else {
(_parent.nd_x = 0);
(_parent.nd_y = -1);
(this.gotoAndStop(1));// not popped
}
if (!((rel_x == 0) && (rel_y == 0))) {
((i = i));// not popped
} else {
(_parent.nd_x = -1);
(_parent.nd_y = 0);
(this.gotoAndStop(2));// not popped
}
_parent.m_x = _parent.m_x + (_parent.nd_x * _parent.speed);
_parent.m_y = _parent.m_y + (_parent.nd_y * _parent.speed);
}
Symbol 549 MovieClip Frame 1
stop();
Symbol 549 MovieClip Frame 2
stop();
Symbol 552 MovieClip Frame 1
stop();
Instance of Symbol 549 MovieClip "main" in Symbol 552 MovieClip Frame 2
onClipEvent (enterFrame) {
((a == 5) ? (_root.script.change_direction("object" + _parent.id, _parent.mt_r, _parent.mt_c)a++) : (a++));
_parent.m_x = _parent.m_x + (_parent.nd_x * _parent.speed);
_parent.m_y = _parent.m_y + (_parent.nd_y * _parent.speed);
_parent.mt_c = Math.floor(_parent.m_x / 48) + _root.xmap_adj;
_parent.mt_r = Math.floor(_parent.m_y / 48) + _root.ymap_adj;
d_x = Math.floor(_parent._x / 48);
d_y = Math.floor(_parent._y / 48);
((((d_x == 4) && (d_y == 3)) && (_root.dexter._currentframe != 11)) ? (_root.script.shocker()) : ((i = i)));
_parent.monkey_tile = _root.map[_parent.mt_r + _parent.nd_y][_parent.mt_c + _parent.nd_x];
_parent.mmx = _parent.mmx + (_parent.nd_x * _parent.speed);
_parent.mmx = (_parent.mmx + 48) % 48;
_parent.mmy = _parent.mmy + (_parent.nd_y * _parent.speed);
_parent.mmy = (_parent.mmy + 48) % 48;
tile_on = ((_parent.mmy == 0) && (_parent.nd_x == 0)) || ((_parent.mmx == 0) && (_parent.nd_y == 0));
rnd = int(Math.random() * 5);
((((_parent.monkey_tile >= _root.script.tile_legal) || (rnd == 0)) && (tile_on)) ? ((_parent.nd_x = 0)(_parent.nd_y = 0)_root.script.change_direction("object" + _parent.id, _parent.mt_r, _parent.mt_c)) : ((i = i)));
}
Instance of Symbol 549 MovieClip "main" in Symbol 552 MovieClip Frame 3
onClipEvent (load) {
s_x = _parent.m_x;
s_y = _parent.m_y;
}
onClipEvent (enterFrame) {
d_x = Math.floor(_parent._x / 48);
d_y = Math.floor(_parent._y / 48);
((((d_x == 4) && (d_y == 3)) && (_root.dexter._currentframe != 11)) ? (_root.script.shocker()) : ((i = i)));
rel_x = _parent.m_x - s_x;
rel_y = _parent.m_y - s_y;
if (!((rel_x == -96) && (rel_y == 0))) {
((i = i));// not popped
} else {
(_parent.nd_x = 0);
(_parent.nd_y = 1);
(this.gotoAndStop(2));// not popped
}
if (!((rel_x == -96) && (rel_y == 96))) {
((i = i));// not popped
} else {
(_parent.nd_x = 1);
(_parent.nd_y = 0);
(this.gotoAndStop(1));// not popped
}
if (!((rel_x == 0) && (rel_y == 96))) {
((i = i));// not popped
} else {
(_parent.nd_x = 0);
(_parent.nd_y = -1);
(this.gotoAndStop(1));// not popped
}
if (!((rel_x == 0) && (rel_y == 0))) {
((i = i));// not popped
} else {
(_parent.nd_x = -1);
(_parent.nd_y = 0);
(this.gotoAndStop(2));// not popped
}
_parent.m_x = _parent.m_x + (_parent.nd_x * _parent.speed);
_parent.m_y = _parent.m_y + (_parent.nd_y * _parent.speed);
}
Symbol 568 MovieClip Frame 1
stop();
Symbol 577 Button
on (release) {
nextFrame();
}
Symbol 579 Button
on (release) {
gotoAndStop (6);
}
Symbol 591 MovieClip Frame 1
stop();
Symbol 592 MovieClip Frame 1
((100 < bonus) ? ((bonus = bonus - 100)(extra = extra + 100)) : ((i = i)));
(((bonus < 100) && (bonus >= 10)) ? ((bonus = bonus - 10)(extra = extra + 10)) : ((i = i)));
(((bonus < 10) && (0 < bonus)) ? ((bonus = bonus - 1)(extra = extra + 1)) : ((i = i)));
temp_score = _parent.a_score + extra;
((temp_score < 1000000) ? ((_parent.total_score = "0" + temp_score)) : ((i = i)));
((temp_score < 100000) ? ((_parent.total_score = "00" + temp_score)) : ((i = i)));
((temp_score < 10000) ? ((_parent.total_score = "000" + temp_score)) : ((i = i)));
((temp_score < 1000) ? ((_parent.total_score = "0000" + temp_score)) : ((i = i)));
((temp_score < 100) ? ((_parent.total_score = "00000" + temp_score)) : ((i = i)));
((temp_score < 10) ? ((_parent.total_score = "000000" + temp_score)) : ((i = i)));
((0 >= temp_score) ? ((_parent.total_score = "0000000")) : ((i = i)));
((bonus == 0) ? (this.gotoAndPlay(5)stopAllSounds()) : ((i = i)));
Symbol 592 MovieClip Frame 3
gotoAndPlay (1);
Symbol 592 MovieClip Frame 5
play();
Symbol 592 MovieClip Frame 90
if (_root.script.map_num == 10) {
(_parent.gotoAndStop(36));// not popped
} else {
(_root.script.next_round());// not popped
}
stop();
Symbol 646 Button
on (release) {
gotoAndStop (1);
}
Symbol 663 MovieClip Frame 1
_quality = "high";
stop();
_root.script.reset();
Symbol 663 MovieClip Frame 2
_quality = "high";
stop();
_root.script.reset();
Symbol 663 MovieClip Frame 6
_quality = "high";
Instance of Symbol 586 MovieClip in Symbol 663 MovieClip Frame 6
onClipEvent (load) {
gotoAndStop(_root.script.map_num);
}
Instance of Symbol 591 MovieClip in Symbol 663 MovieClip Frame 6
onClipEvent (enterFrame) {
(((_root.map_chr != undefined) && (_currentframe != _totalframes)) ? (this.play()) : ((i = i)));
if (_currentframe != _totalframes) {
((i = i));// not popped
} else {
_root.script.start_up();
(_parent.gotoAndStop("clear"));// not popped
}
}
Symbol 663 MovieClip Frame 13
_quality = "high";
a_score = _root.script.temp_score;
d_score = _root.display.score.score;
a_timer = _root.script.temp_timer;
d_timer = _root.display.timer.timer;
shots = _root.script.shots_fired;
animals = _root.o_amount;
temp_percent = (animals / shots) * 100;
percent = Math.min(100, int(temp_percent));
time_bonus = d_timer.substr(d_timer.length - 4, 4);
accuracy = percent + "%";
bonus = (percent * 10) + a_timer;
_root.script.score((percent * 10) + a_timer);
Instance of Symbol 592 MovieClip "adder" in Symbol 663 MovieClip Frame 13
onClipEvent (load) {
bonus = (_parent.percent * 10) + _parent.a_timer;
}
Instance of Symbol 634 MovieClip in Symbol 663 MovieClip Frame 13
onClipEvent (load) {
this.gotoAndStop(_root.script.map_num);
}
Symbol 663 MovieClip Frame 19
_quality = "high";
Instance of Symbol 591 MovieClip in Symbol 663 MovieClip Frame 19
onClipEvent (enterFrame) {
(((_root.map_chr != undefined) && (_currentframe != _totalframes)) ? (this.play()) : ((i = i)));
if (_currentframe != _totalframes) {
((i = i));// not popped
} else {
_root.script.start_up();
(_parent.gotoAndStop("clear"));// not popped
}
}
Symbol 663 MovieClip Frame 27
_quality = "high";
a_score = _root.script.temp_score;
((a_score < 1000000) ? ((total_score = "0" + a_score)) : ((i = i)));
((a_score < 100000) ? ((total_score = "00" + a_score)) : ((i = i)));
((a_score < 10000) ? ((total_score = "000" + a_score)) : ((i = i)));
((a_score < 1000) ? ((total_score = "0000" + a_score)) : ((i = i)));
((a_score < 100) ? ((total_score = "00000" + a_score)) : ((i = i)));
((a_score < 10) ? ((total_score = "000000" + a_score)) : ((i = i)));
((0 >= a_score) ? ((total_score = "0000000")) : ((i = i)));
Symbol 663 MovieClip Frame 36
_quality = "high";
Symbol 663 MovieClip Frame 46
_quality = "low";