Frame 1
stop();
Frame 3
play();
Frame 16
stop();
Frame 19
stop();
Frame 21
play();
Frame 24
_global.ock_rampage_offset_x = this._x;
_global.ock_rampage_offset_y = this._y;
level_num = 1;
lives_left = 3;
doc_health = 100;
my_score = 0;
choppers_array = new Array(0, 1, 1, 2, 3);
trucks_array = new Array(1, 1, 2, 2, 3);
max_SWAT_array = new Array(0, 6, 8, 8, 8);
building_damage_score = 100;
vehicle_damage_score = 200;
SWAT_damage_score = 500;
gotoAndPlay ("play_game");
run_sound = new Sound(this);
run_sound.attachSound("run_sound");
climb_sound = new Sound(this);
climb_sound.attachSound("climb_sound");
jump_sound = new Sound(this);
jump_sound.attachSound("jump_sound");
die_sound = new Sound(this);
die_sound.attachSound("die_sound");
bullet_hit_sound = new Sound(this);
bullet_hit_sound.attachSound("bullet_hit_sound");
stop_my_sounds = function () {
run_sound.stop();
run_sound_playing = false;
climb_sound.stop();
climb_sound_playing = false;
};
Frame 27
function do_add_SWAT_teams(passed_num_choppers, passed_num_trucks) {
var _local1 = this;
var _local3 = passed_num_trucks;
var _local2;
_local2 = 0;
while (_local2 < passed_num_choppers) {
swat_counter++;
new_SWAT_ID = "SWAT_CHOPPER_" + swat_counter;
_local1.attachMovie("SWAT_team_comp_MC", new_SWAT_ID, swat_counter);
_local1[new_SWAT_ID].my_delay = Math.round(200 * Math.random());
SWAT_standby_array.push(new_SWAT_ID);
_local2++;
}
_local2 = 0;
while (_local2 < _local3) {
swat_counter++;
new_SWAT_ID = "SWAT_TRUCK_" + swat_counter;
_local1.attachMovie("SWAT_team_comp_MC", new_SWAT_ID, swat_counter);
_local1[new_SWAT_ID]._y = 348;
_local1[new_SWAT_ID].my_delay = Math.round(200 * Math.random());
SWAT_standby_array.push(new_SWAT_ID);
_local2++;
}
trace("SWAT_standby_array " + SWAT_standby_array);
}
function do_decrease_doc_health(passed_value) {
doc_health = doc_health - passed_value;
if (doc_health <= 0) {
end_game();
}
}
function win_game() {
trace("WIN");
p.gotoAndStop("stop_left");
clearInterval(p_test_i);
do_SWAT_cleanup();
if (level_num >= 5) {
gotoAndStop ("win_game");
} else {
gotoAndStop ("win_level");
}
}
function end_game() {
p.gotoAndStop("die");
_root.stop_my_sounds();
lives_meter.nextFrame();
lives_left--;
trace("END");
clearInterval(p_test_i);
do_SWAT_cleanup();
if (lives_left > 0) {
gotoAndPlay ("lose_life");
} else {
gotoAndPlay ("game_over");
}
}
function do_SWAT_cleanup() {
var _local1 = this;
var _local2;
var _local3 = SWAT_array.length + 1;
_local2 = 0;
while (_local2 < _local3) {
_local1[SWAT_array[0]].stop_shooting(true);
_local1[SWAT_array[0]].removeMovieClip();
swat_array.splice(0, 1);
trace("SWAT_array " + SWAT_array);
_local2++;
}
_local3 = old_SWAT_array.length + 1;
_local2 = 0;
while (_local2 < _local3) {
_local1[old_SWAT_array[0]].stop_shooting(true);
_local1[old_SWAT_array[0]].removeMovieClip();
old_swat_array.splice(0, 1);
trace("old_SWAT_array " + old_SWAT_array);
_local2++;
}
_local3 = SWAT_standby_array.length + 1;
_local2 = 0;
while (_local2 < _local3) {
_local1[SWAT_standby_array[0]].stop_shooting(true);
_local1[SWAT_standby_array[0]].removeMovieClip();
SWAT_standby_array.splice(0, 1);
trace("SWAT_standby_array " + SWAT_standby_array);
_local2++;
}
}
function do_building_cleanup() {
var _local2 = this;
var _local1 = buildings_array.length + 1;
i = 0;
while (i < _local1) {
_local2[buildings_array[i]].clearInterval(building_collapse_interval);
i++;
}
}
buildings_array = new Array();
buildings_remaining = 0;
SWAT_array = new Array();
SWAT_standby_array = new Array();
old_SWAT_array = new Array();
smoke_counter = 99999 /* 0x01869F */;
ground_level = 350;
swat_counter = 5700;
num_choppers = choppers_array[level_num - 1];
num_trucks = trucks_array[level_num - 1];
max_SWAT = max_SWAT_array[level_num - 1];
do_add_SWAT_teams(num_choppers, num_trucks);
Frame 28
function set_climb_direction_change_trigger_y(passed_target_building) {
building_y = this[passed_target_building]._y;
building_height = this[passed_target_building].my_building_height;
climb_direction_change_y = building_y - (building_height - 30);
}
function punching_test() {
if (Key.isDown(32)) {
punching = true;
if (p.punch_arm_MC.arm_idle == true) {
p.punch_arm_MC.gotoAndPlay("punch_level");
}
} else {
punching = false;
}
}
stop();
building_name = "platform_1";
rubber_doc_allow_jump = true;
climbing = false;
pete_x_speed = 10;
grav_rate = 12;
screen_width = 650;
last_direction = "left";
trace("level_num " + level_num);
p_test = function () {
andy_platform_test();
punching_test();
p_is_on_building = false;
if (p_hit_buildings()) {
p_is_on_building = true;
}
running = false;
if (p_is_jumping != true) {
jump_direction = "";
p_motion();
}
if ((p_is_on_building != true) && (p_is_jumping != true)) {
p_y_fix();
}
p_punch();
};
p_test_i = setInterval(p_test, 40);
p_motion = function () {
if ((near_platform == false) && (p_is_on_building != true)) {
return(undefined);
}
p_frame = "stop_" + last_direction;
if (p_is_on_building == true) {
if (Key.isDown(38)) {
climbing = true;
if (punching == true) {
punch_dir = "up";
p_frame = (("punch_" + p_building_face) + "_") + punch_dir;
} else {
p._y = p._y - 8;
p_frame = "climb_" + p_building_face;
}
} else if (Key.isDown(40)) {
climbing = true;
if (punching == true) {
punch_dir = "down";
p_frame = (("punch_" + p_building_face) + "_") + punch_dir;
} else {
p._y = p._y + 8;
p_frame = "climb_" + p_building_face;
}
} else if (punching == true) {
punch_dir = "straight";
p_frame = (("punch_" + p_building_face) + "_") + punch_dir;
} else {
p_frame = "climb_stop_" + p_building_face;
}
if (!p_hit_buildings()) {
p_y_fix();
climbing = false;
if (running == false) {
if (last_direction == "left") {
p_frame = "stop_right";
} else if (last_direction == "right") {
p_frame = "stop_left";
}
}
}
if (p._y > climb_direction_change_y) {
p.tentacles_MC.gotoAndStop("up");
} else {
p.tentacles_MC.gotoAndStop("down");
}
}
if (climbing != true) {
if (Key.isDown(37)) {
if ((p._x - pete_x_speed) < 10) {
} else {
p._x = p._x - pete_x_speed;
p_frame = "left";
last_direction = "left";
jump_direction = "left";
running = true;
}
} else if (Key.isDown(39)) {
if ((p._x + pete_x_speed) > screen_width) {
} else {
p._x = p._x + pete_x_speed;
p_frame = "right";
last_direction = "right";
jump_direction = "right";
running = true;
}
}
}
if (Key.isDown(17)) {
if (rubber_doc_allow_jump) {
rubber_rubber_doc_allow_jump = false;
p_jump();
}
}
if (p_is_jumping != true) {
p.gotoAndStop(p_frame);
}
};
andy_platform_test = function () {
var _local1 = this;
current_building_num = building_name.slice(9, 10);
current_building_num = parseInt(current_building_num);
if (p_is_jumping == true) {
platform_limiter = 1;
} else {
platform_limiter = 2;
}
building_name = null;
i = 0;
while (i < buildings_array.length) {
building_name = buildings_array[i];
if (_local1[building_name].hit_roof.hitTest(p.uberGuber)) {
near_platform = true;
i = 1000;
} else {
near_platform = false;
}
i++;
}
};
p_y_fix = function () {
var _local1 = this;
j = 0;
while (j < 8) {
hit_glob = new Object();
hit_glob.x = p.h._x;
hit_glob.y = p.h._y - 5;
p.localToGlobal(hit_glob);
hit_glob.h_1 = hit_glob.y + 2;
if (_local1[building_name].hit_roof.hitTest(hit_glob.x, hit_glob.h_1, true)) {
if (_local1[building_name].hit_roof.hitTest(hit_glob.x, hit_glob.y, true)) {
p._y = p._y - 1;
} else {
j = 1000;
}
} else {
p._y = p._y + 1;
andy_platform_test();
p.gotoAndStop("stop_" + last_direction);
}
j++;
}
};
p_up = function () {
if (p._y > (p_y_initial - 60)) {
p_is_jumping_upwards = true;
p._y = p._y - 10;
if (jump_direction == "right") {
p._x = p._x + pete_x_speed;
if (p._x > screen_width) {
p.gotoAndStop(8);
}
} else if (jump_direction == "left") {
p._x = p._x - pete_x_speed;
if (p._x < 5) {
p.gotoAndStop(1);
}
}
} else {
clearInterval(p_jumping);
p_is_jumping_upwards = false;
p_falling = setInterval(p_down, 30);
}
};
p_down = function () {
hit_glob = new Object();
hit_glob.x = p.h._x;
hit_glob.y = p.h._y - 5;
p.localToGlobal(hit_glob);
hit_glob.h_1 = hit_glob.y + 2;
p.gotoAndStop("stop_" + last_direction);
if (p._parent[building_name].hit_roof.hitTest(hit_glob.x, hit_glob.h_1, true)) {
p_is_jumping = false;
clearInterval(p_falling);
rubber_doc_allow_jump = true;
} else {
p._y = p._y + grav_rate;
if (jump_direction == "right") {
if (p._x > screen_width) {
p.gotoAndStop("stop_left");
} else {
p._x = p._x + pete_x_speed;
}
} else if (jump_direction == "left") {
if (p._x < 5) {
p.gotoAndStop("stop_right");
} else {
p._x = p._x - pete_x_speed;
}
}
}
};
p_jump = function () {
p_is_jumping = true;
if (p_frame == "right") {
p.gotoAndStop("jumpRight");
} else if (p_frame == "left") {
p.gotoAndStop("jumpLeft");
}
p_y_initial = p._y;
p_jumping = setInterval(p_up, 30);
};
p_hit_buildings = function () {
var _local2 = this;
var _local1;
var limit = buildings_array.length;
_local1 = 0;
while (_local1 < buildings_array.length) {
attack_building = buildings_array[_local1];
set_climb_direction_change_trigger_y(attack_building);
if (p.building_h.hitTest(_local2[buildings_array[_local1]].hit_left)) {
p_building_face = "right";
last_direction = "left";
return(true);
}
if (p.building_h.hitTest(_local2[buildings_array[_local1]].hit_right)) {
p_building_face = "left";
last_direction = "right";
return(true);
}
_local1++;
}
return(undefined);
};
p_punch = function () {
var _local1 = this;
if (punching == true) {
var my_limit = SWAT_array.length;
var _local2;
_local2 = 0;
while (_local2 < my_limit) {
var _local3 = SWAT_array[_local2];
if (p.arm_hit.hitTest(_local1[_local3].SWAT_MC)) {
_local1[_local3].SWAT_MC.gotoAndPlay("explode");
my_score = my_score + SWAT_damage_score;
return;
}
_local2++;
}
if (p_is_on_building == true) {
var my_limit = _local1[attack_building].num_hotspots;
_local2 = 0;
while (_local2 < my_limit) {
var hotspot_ID = ((("damage_" + p_building_face) + "_") + _local2);
if (p.arm_hit.hitTest(_local1[attack_building][hotspot_ID].damage_hit)) {
_local1[attack_building].do_add_damage(hotspot_ID);
my_score = my_score + building_damage_score;
return;
}
_local2++;
}
} else {
var my_limit = vehicles_array.length;
_local2 = 0;
while (_local2 < my_limit) {
var vehicle_ID = vehicles_array[_local2];
if (p.arm_hit.hitTest(_local1[vehicle_ID].vehicle_hit)) {
_local1[vehicle_ID].gotoAndPlay("explode");
my_score = my_score + vehicle_damage_score;
return;
}
_local2++;
}
}
}
};
Instance of Symbol 171 MovieClip "floor" in Frame 28
onClipEvent (load) {
_alpha = 0;
}
Frame 37
stop();
Frame 45
stop();
Frame 53
stop();
Frame 62
stop();
Frame 70
score = my_score;
optin = "0";
stop();
Frame 102
play();
Frame 103
stop();
highScoresText = "Getting High Scores...";
rn = Math.round(Math.random() * 1000000);
loadVariables ("http://www.spider-man2dvd.co.uk/cgi-bin/dorgetscores.pl?reload=" + rn, this);
Symbol 11 MovieClip Frame 4
stop();
_parent._parent.do_check_damage_level();
Symbol 18 MovieClip Frame 17
stop();
Symbol 22 MovieClip [damage_comp_MC] Frame 1
stop();
Symbol 22 MovieClip [damage_comp_MC] Frame 2
stop();
Symbol 22 MovieClip [damage_comp_MC] Frame 3
stop();
Symbol 45 MovieClip Frame 1
stop();
Symbol 51 MovieClip Frame 1
stop();
Symbol 51 MovieClip Frame 15
gotoAndPlay (1);
Symbol 51 MovieClip Frame 20
stop();
Symbol 52 MovieClip Frame 37
stop();
_parent._parent.start_shooting();
Symbol 64 MovieClip Frame 17
stop();
Symbol 66 MovieClip Frame 1
_visible = false;
Symbol 66 MovieClip Frame 2
my_counter++;
if (my_counter < _parent.my_delay) {
gotoAndPlay(_currentframe - 1);
}
_visible = true;
Symbol 66 MovieClip Frame 53
stop();
_parent.do_move_from_standby_array(_parent._name);
Symbol 66 MovieClip Frame 56
_parent.stop_shooting();
Symbol 66 MovieClip Frame 69
stop();
Symbol 80 MovieClip Frame 17
stop();
Symbol 81 MovieClip Frame 1
_visible = false;
Symbol 81 MovieClip Frame 2
my_counter++;
if (my_counter < _parent.my_delay) {
gotoAndPlay(_currentframe - 1);
} else {
_visible = true;
_parent.do_move_from_standby_array(_parent._name);
}
Symbol 81 MovieClip Frame 43
stop();
_parent.start_shooting();
Symbol 81 MovieClip Frame 70
_parent.stop_shooting();
Symbol 81 MovieClip Frame 101
stop();
Symbol 82 MovieClip [SWAT_team_comp_MC] Frame 1
function start_shooting() {
add_bullet();
my_bullets_interval = setInterval(add_bullet, 4000);
}
function stop_shooting(no_remove) {
clearInterval(my_bullets_interval);
if (no_remove != true) {
remove_from_SWAT_array();
var _local1 = Math.round(Math.random());
if ((_local1 == 0) && (my_root.SWAT_array.length <= 0)) {
var _local2 = 1;
} else {
var _local2 = 0;
}
var _local3 = _local2 + Math.round(Math.random());
if ((my_root.SWAT_array.length + my_root.SWAT_standby_array.length) < my_root.max_SWAT) {
_parent.do_add_SWAT_teams(_local1, _local3);
}
}
}
function do_move_from_standby_array(passed_name) {
var _local3 = passed_name;
if (my_root.SWAT_array == undefined) {
my_root.SWAT_array = new Array();
}
my_root.SWAT_array.push(_local3);
var my_limit = (my_root.SWAT_standby_array.length + 1);
var _local1;
_local1 = 0;
while (_local1 < my_limit) {
var _local2 = my_root.SWAT_standby_array[_local1];
trace("activating: SWAT_standby_array " + my_root.SWAT_standby_array);
if (_local2 == _local3) {
my_root.SWAT_standby_array.splice(_local1, 1);
trace("removed on activation from standby array" + _local3);
trace("SWAT_standby_array is now " + my_root.SWAT_standby_array);
return;
}
_local1++;
}
}
function remove_from_SWAT_array() {
var _local3 = this;
my_root.old_SWAT_array.push(_local3._name);
trace("old SWAT array is now " + my_root.old_SWAT_array);
var my_limit = (my_root.SWAT_array.length + 1);
var _local1;
_local1 = 0;
while (_local1 < my_limit) {
var _local2 = my_root.SWAT_array[_local1];
if (_local2 == _local3._name) {
my_root.SWAT_array.splice(_local1, 1);
trace("dead - removed from SWAT array " + _local3._name);
trace("SWAT array is now " + my_root.SWAT_array);
return;
}
_local1++;
}
}
function add_bullet() {
target_gunner();
my_root.bulletNum++;
bullet_ID = "bullet" + my_root.bulletNum;
gun_point = new Object();
gun_point.x = SWAT_MC.SWAT_MC_2.gunner_MC.bullet_attach_point._x + 20;
gun_point.y = SWAT_MC.SWAT_MC_2.gunner_MC.bullet_attach_point._y;
SWAT_MC.SWAT_MC_2.gunner_MC.localToGlobal(gun_point);
origin_x = gun_point.x;
origin_y = gun_point.y;
my_returned = do_get_angle_and_deltas(origin_x, origin_y);
var _local1 = my_returned[0];
var _local2 = my_returned[1];
var _local3 = my_returned[2];
if (_local1 < 0) {
base_angle = 0;
} else {
base_angle = 180;
}
delta_direct = Math.sqrt((_local1 * _local1) + (_local2 * _local2));
delta_ratio = bullet_speed / delta_direct;
target_angle = base_angle + _local3;
my_root.bullets_holder_MC.attachMovie("bullet_comp_MC", bullet_ID, my_root.bulletNum);
my_root.bullets_holder_MC[bullet_ID]._x = origin_x - _global.ock_rampage_offset_x;
my_root.bullets_holder_MC[bullet_ID]._y = origin_y - _global.ock_rampage_offset_y;
my_root.bullets_holder_MC[bullet_ID].x_speed = _local1 * delta_ratio;
my_root.bullets_holder_MC[bullet_ID].y_speed = _local2 * delta_ratio;
my_root.bullets_holder_MC[bullet_ID]._rotation = target_angle;
my_root.bullets_holder_MC[bullet_ID].bullet_type = next_shot;
random_rocket_seed = Math.floor(6 * Math.random());
if (random_rocket_seed == 0) {
next_shot = "rocket";
bullet_speed = 25;
SWAT_MC.SWAT_MC_2.gunner_MC.gotoAndStop("rocket_launcher");
} else {
next_shot = "bullet";
bullet_speed = 10;
}
SWAT_MC.SWAT_MC_2.gunner_MC.play();
SWAT_MC.SWAT_MC_2.gunner_MC.muzzle_flash.play();
}
function do_get_angle_and_deltas(passed_x, passed_y) {
var _local2 = my_root.p._x - passed_x;
var _local1 = my_root.p._y - passed_y;
var delta_theta1 = math.atan(_local1 / _local2);
var _local3 = delta_theta1 * 57.2957795130823;
to_return = new Array(_local2, _local1, _local3);
return(to_return);
}
function target_gunner() {
gunner_point = new Object();
gunner_point.x = SWAT_MC.SWAT_MC_2.gunner_MC._x;
gunner_point.y = SWAT_MC.SWAT_MC_2.gunner_MC._y;
this.SWAT_MC.SWAT_MC_2.localToGlobal(gunner_point);
my_returned = do_get_angle_and_deltas(gunner_point.x, gunner_point.y);
var _local1 = my_returned[0];
var _local2 = my_returned[2];
if (_local1 < 0) {
SWAT_MC.SWAT_MC_2.gunner_MC._xscale = -100;
} else {
SWAT_MC.SWAT_MC_2.gunner_MC._xscale = 100;
}
SWAT_MC.SWAT_MC_2.gunner_MC._rotation = _local2;
}
stop();
my_root = _parent;
bullet_speed = 10;
if (this._name.indexOf("CHOPPER") > 0) {
gotoAndStop ("chopper");
random_choice = Math.floor(2 * Math.random());
if (random_choice == 0) {
this._y = -80 + Math.round(230 * Math.random());
this._x = 750;
} else {
this._y = -60 + Math.round(50 * Math.random());
this._x = 350 + Math.round(450 * Math.random());
}
} else {
this._x = 300 + Math.round(450 * Math.random());
}
Symbol 92 MovieClip Frame 10
stop();
_parent._parent[_parent._name].removeMovieClip();
Symbol 93 MovieClip [bullet_comp_MC] Frame 1
function frame_actions() {
var _local1 = _parent;
_x = (_x + x_speed);
_y = (_y + y_speed);
if (Math.abs(_x - _local1._parent.p._x) < 24) {
if (Math.abs(_y - _local1._parent.p._y) < 24) {
if (hitTest(_local1._parent.p.bullets_h)) {
_local1._parent.do_decrease_doc_health(bullet_value);
clearInterval(bullet_interval);
gotoAndStop ("hit");
}
}
}
if ((_x > 670) || (_x < -20)) {
_local1[_name].removeMovieClip();
clearInterval(bullet_interval);
}
if ((_y > _local1._parent.ground_level) || (_y < -20)) {
_local1[_name].removeMovieClip();
clearInterval(bullet_interval);
}
}
stop();
bullet_value = 10;
bullet_interval = setInterval(frame_actions, 80);
gotoAndStop(bullet_type);
Symbol 93 MovieClip [bullet_comp_MC] Frame 7
stop();
bullet_value = 40;
Symbol 93 MovieClip [bullet_comp_MC] Frame 13
stop();
Instance of Symbol 100 MovieClip "slider" in Symbol 101 MovieClip Frame 1
onClipEvent (load) {
this._x = this._x - this._width;
startPos = this._x;
var done = 0;
}
onClipEvent (enterFrame) {
total = _parent._parent.getBytesTotal();
sofar = _parent._parent.getBytesLoaded();
percent = Math.floor((sofar / total) * 100);
this._x = startPos + (percent * 4);
if ((percent == 100) and (done == 0)) {
_parent._parent.gotoAndPlay("go");
done = 1;
}
}
Symbol 117 Button
on (release) {
gotoAndPlay ("start");
}
Symbol 122 Button
on (release) {
gotoAndStop ("instruc");
}
Symbol 127 Button
on (release) {
gotoAndPlay ("highScores");
}
Symbol 150 MovieClip Frame 1
stop();
Symbol 170 MovieClip Frame 1
function do_attach_hits(target_ID, passed_x) {
var _local1 = this;
var _local2 = target_ID;
z_counter = z_counter + 50;
_local1.attachMovie(linkage_ID, _local2, z_counter);
_local1[_local2]._x = passed_x;
_local1[_local2]._y = -1 * (my_building_height - height_offset);
_local1[_local2]._height = my_building_height - height_offset;
_local1[_local2]._alpha = 0;
}
function do_clear_hits() {
hit_left.removeMovieClip();
hit_right.removeMovieClip();
hit_roof.removeMovieClip();
_parent.climbing = false;
}
function do_collapse_building() {
var _local1 = _parent;
_y = (_y + building_fall_rate);
smoke_MC._y = smoke_MC._y - building_fall_rate;
if (_y >= (_local1.ground_level + my_building_height)) {
clearInterval(building_collapse_interval);
_local1.smoke_holder[smoke_ID].removeMovieClip();
if (_local1.buildings_remaining <= 0) {
_local1.win_game();
}
}
}
function do_attach_hotspot(damage_ID, passed_x, passed_y, passed_x_scale) {
var _local1 = this;
var _local2 = damage_ID;
damage_z_counter++;
_local1.attachMovie("damage_comp_MC", _local2, damage_z_counter);
_local1[_local2]._x = passed_x;
_local1[_local2]._xscale = passed_x_scale;
_local1[_local2]._y = (-1 * my_building_height) + passed_y;
}
function do_generate_damage_hotspots() {
damage_z_counter = 5000;
var _local1 = my_bounds.xMin + my_damage_offset;
do_attach_hotspot("damage_right_0", _local1, 0, 100);
hs_height = damage_right_0._height;
hs_width = damage_right_0._width;
num_hotspots = Math.floor(my_building_height / hs_height);
i = 1;
while (i < num_hotspots) {
damage_ID = "damage_right_" + i;
do_attach_hotspot(damage_ID, _local1, i * hs_height, 100);
i++;
}
var _local2 = my_bounds.xMax - my_damage_offset;
i = 0;
while (i < num_hotspots) {
damage_ID = "damage_left_" + i;
do_attach_hotspot(damage_ID, _local2, i * hs_height, -100);
i++;
}
}
function do_add_damage(hotspot_ID) {
var _local1 = Math.floor(2 * Math.random());
this[hotspot_ID].gotoAndStop(2 + _local1);
damage_count++;
}
function do_check_damage_level() {
var _local1 = _parent;
var _local2 = this;
if ((damage_count >= collapse_threshold) && (done_once != true)) {
done_once = true;
do_clear_hits();
_local1.buildings_remaining--;
smoke_ID = _local2._name + "_smoke";
_local1.smoke_holder.attachMovie("smoke_MC", smoke_ID, _local1.smoke_counter++);
_local1.smoke_holder[smoke_ID]._x = _local2._x - 5;
_local1.smoke_holder[smoke_ID]._y = _local2._y;
if (_local1.hotel_attached_to == _local2._name) {
_local1.hotel_MC.gotoAndPlay("explode");
}
if (_local1.water_tank_attached_to == _local2._name) {
_local1.water_tank_MC.gotoAndPlay("explode");
}
building_collapse_interval = setInterval(do_collapse_building, 40);
}
}
my_random_frame = Math.ceil(4 * Math.random());
gotoAndStop(my_random_frame);
offsets_array = new Array(7, 3, 6, 3);
my_damage_offset = offsets_array[my_random_frame - 1];
if (_parent.buildings_array == null) {
_parent.buildings_array = new Array();
}
_parent.buildings_array.push(this._name);
_parent.buildings_remaining++;
building_fall_rate = 7;
linkage_ID = "building_hit_MC";
my_building_height = this._height;
height_offset = 5;
my_bounds = this.getBounds(this);
do_attach_hits("hit_left", my_bounds.xMin);
do_attach_hits("hit_right", my_bounds.xMax);
my_bounds = this.getBounds(this);
this.attachMovie("roof_hit_MC", "hit_roof", 1000);
hit_roof._width = this._width;
hit_roof._x = my_bounds.xMin;
hit_roof._y = -1 * my_building_height;
hit_roof._alpha = 0;
this._y = _parent.ground_level - 10;
damage_count = 0;
do_generate_damage_hotspots();
collapse_threshold = Math.round(1.6 * num_hotspots);
Symbol 170 MovieClip Frame 2
_parent.water_tank_MC._x = this._x + 50;
_parent.water_tank_MC._y = this._y - this._height;
_parent.water_tank_attached_to = this._name;
Symbol 170 MovieClip Frame 4
my_bounds = this.getBounds();
_parent.hotel_MC._x = this._x + my_bounds.xMax;
_parent.hotel_MC._y = this._y - (this._height - 100);
_parent.hotel_attached_to = this._name;
Symbol 171 MovieClip Frame 1
if (_parent.buildings_array == null) {
_parent.buildings_array = new Array();
}
_parent.buildings_array.push(this._name);
Symbol 174 MovieClip Frame 1
stop();
if (_parent.vehicles_array == undefined) {
_parent.vehicles_array = new Array();
}
_parent.vehicles_array.push(this._name);
Symbol 174 MovieClip Frame 8
stop();
Symbol 179 MovieClip Frame 1
stop();
if (_parent.vehicles_array == undefined) {
_parent.vehicles_array = new Array();
}
_parent.vehicles_array.push(this._name);
Symbol 179 MovieClip Frame 8
stop();
Symbol 263 MovieClip Frame 1
arm_idle = true;
Symbol 263 MovieClip Frame 39
gotoAndPlay (1);
Symbol 263 MovieClip Frame 40
arm_idle = false;
Symbol 269 MovieClip Frame 1
_alpha = 0;
Symbol 363 MovieClip Frame 1
stop();
Symbol 363 MovieClip Frame 2
stop();
Symbol 371 MovieClip Frame 1
function stop_tentacles() {
tentacles_MC.tentacles_MC.stop();
}
function start_tentacles() {
tentacles_MC.tentacles_MC.play();
}
h_x = this.h._x + this._x;
h_y = this.h._y + this._y;
stop();
Symbol 371 MovieClip Frame 36
_root.stop_my_sounds();
Symbol 371 MovieClip Frame 44
_root.stop_my_sounds();
Symbol 371 MovieClip Frame 52
h_x = this.h._x + this._x;
h_y = this.h._y + this._y;
stop();
start_tentacles();
Symbol 371 MovieClip Frame 62
_root.stop_my_sounds();
stop_tentacles();
Symbol 371 MovieClip Frame 74
stop_tentacles();
Symbol 371 MovieClip Frame 87
stop_tentacles();
Symbol 371 MovieClip Frame 101
stop_tentacles();
Symbol 371 MovieClip Frame 112
h_x = this.h._x + this._x;
h_y = this.h._y + this._y;
stop();
start_tentacles();
Symbol 371 MovieClip Frame 122
stop_tentacles();
Symbol 371 MovieClip Frame 134
stop_tentacles();
Symbol 371 MovieClip Frame 146
stop_tentacles();
Symbol 371 MovieClip Frame 159
stop_tentacles();
Symbol 377 MovieClip Frame 1
stop();
if (_parent.vehicles_array == undefined) {
_parent.vehicles_array = new Array();
}
_parent.vehicles_array.push(this._name);
my_random = Math.ceil(2 * math.random());
gotoAndStop(my_random);
Symbol 377 MovieClip Frame 16
stop();
this._visible = false;
Symbol 388 Button
on (release) {
level_num++;
gotoAndPlay ("play_game");
}
Symbol 395 Button
on (release) {
doc_health = 100;
gotoAndPlay ("play_game");
}
Symbol 402 Button
on (release) {
gotoAndPlay ("setup");
}
Symbol 406 Button
on (release) {
gotoAndStop ("enterScore");
}
Symbol 421 MovieClip Frame 1
stop();
Symbol 421 MovieClip Frame 2
stop();
Symbol 421 MovieClip Frame 3
gotoAndStop (1);
Symbol 423 Button
on (release) {
if (optin == "0") {
optin = "1";
} else {
optin = "0";
}
opt.nextFrame();
}
Symbol 426 MovieClip Frame 1
stop();
Symbol 426 MovieClip Frame 2
stop();
Symbol 428 MovieClip Frame 1
stop();
Symbol 428 MovieClip Frame 2
stop();
Symbol 437 Button
on (press) {
if (email eq "") {
fe.gotoAndStop(2);
} else {
fe.gotoAndStop(1);
}
if (name eq "") {
fn.gotoAndStop(2);
} else {
fn.gotoAndStop(1);
}
if ((email ne "") && (name ne "")) {
url = "http://www.spider-man2dvd.co.uk/cgi-bin/dorsubmitscore.pl";
loadVariables (url, this, "POST");
play();
}
}