Frame 1
function gameOver() {
gotoAndStop (21);
}
function stopRobot(number) {
_root["robot" + number]._x = 540;
_root["robot" + number]._y = 50;
_root["robot" + number].stopped = true;
_root["robot" + number].busy = false;
if (_root["robot" + number].put_behind) {
_root["robot" + number].swapDepths(_root["holder" + number]);
}
_root.number_on_screen--;
tellTarget (_root["robot" + number]) {
gotoAndPlay ("left");
};
}
walk_speed = 1;
time_added = 5;
score_increase = 10;
slap1 = new Sound();
slap1.attachSound("slap1");
step1 = new Sound();
step1.attachSound("step1");
creak = new Sound();
creak.attachSound("creak");
click = new Sound();
click.attachSound("click");
flip_noise = new Sound();
flip_noise.attachSound("flip_noise");
swish1 = new Sound();
swish1.attachSound("swish1");
robot_waa = new Sound();
robot_waa.attachSound("robot_waa");
score = 0;
Instance of Symbol 18 MovieClip "timer_clip" in Frame 1
onClipEvent (load) {
total_time = 60;
}
onClipEvent (enterFrame) {
time_elapsed = getTimer();
time_elapsed = time_elapsed / 1000;
time_elapsed = Math.floor(time_elapsed);
countdown = (total_time - time_elapsed) - reset_number;
this.timer = ["Time " + countdown];
if (countdown < 1) {
_root.gameOver();
}
}
Instance of Symbol 21 MovieClip in Frame 1
onClipEvent (enterFrame) {
this.escaped = _root.escaped;
}
Instance of Symbol 25 MovieClip in Frame 1
onClipEvent (enterFrame) {
this.score = _root.score;
}
Instance of Symbol 58 MovieClip in Frame 1
onClipEvent (load) {
tellTarget (this) {
gotoAndStop ("hidden");
};
}
onClipEvent (enterFrame) {
counter++;
if (_root.timeline == 72) {
tellTarget (this) {
gotoAndPlay ("explode");
};
}
}
Instance of Symbol 90 MovieClip in Frame 1
onClipEvent (load) {
tellTarget (this) {
gotoAndStop ("still");
};
}
onClipEvent (enterFrame) {
if (_root.timeline == 75) {
tellTarget (this) {
gotoAndPlay ("roll");
};
}
}
Instance of Symbol 100 MovieClip "flipper" in Frame 1
onClipEvent (load) {
angle_decrease = 1;
start_angle = angle_decrease;
_root.start_angle = 45;
_root.angle = _root.start_angle;
this._rotation = this._rotation + _root.angle;
allowed_to_press = true;
}
onClipEvent (enterFrame) {
if ((allowed_to_press && (Key.isDown(32))) && (_root.angle >= 1)) {
if (!creak_started) {
creak_started = true;
_root.creak.start();
}
_root.angle = _root.angle - angle_decrease;
this._rotation = this._rotation - angle_decrease;
if (angle_decrease >= 0.4) {
angle_decrease = angle_decrease - 0.015;
}
compressed = true;
if ((3 >= _root.angle) && (!clicked)) {
_root.click.start();
clicked = true;
}
}
hypothenuse = 80;
radians = (_root.angle / 180) * Math.PI;
_root.adjacent = Math.cos(radians) * hypothenuse;
if ((!Key.isDown(32)) && (compressed)) {
if (!flip_sound) {
flip_sound = true;
_root.creak.stop();
_root.swish1.start();
if (_root.robot_on_flipper) {
_root.slap1.start();
}
}
flipping = true;
angle_decrease = start_angle;
if (!done) {
done = true;
outside_angle = _root.start_angle - _root.angle;
if ((outside_angle >= 1) && (15 >= outside_angle)) {
bend_reaction = 1;
} else if ((outside_angle >= 16) && (30 >= outside_angle)) {
bend_reaction = 2;
} else if ((outside_angle >= 31) && (45 >= outside_angle)) {
bend_reaction = 3;
}
fragment = outside_angle / 3;
_root.flip = true;
}
}
if (flipping) {
allowed_to_press = false;
this._rotation = this._rotation + fragment;
num++;
if (num == 3) {
if (bend_reaction == 1) {
tellTarget (this) {
gotoAndPlay ("small");
};
} else if (bend_reaction == 2) {
tellTarget (this) {
gotoAndPlay ("mild");
};
} else if (bend_reaction == 3) {
tellTarget (this) {
gotoAndPlay ("severe");
};
}
num = 0;
allowed_to_press = true;
_root.angle = _root.start_angle;
compressed = false;
done = false;
_root.flip = false;
flipping = false;
creak_started = false;
flip_sound = false;
clicked = false;
}
}
}
Instance of Symbol 154 MovieClip in Frame 1
onClipEvent (load) {
tellTarget (this) {
gotoAndStop ("stop");
};
}
onClipEvent (enterFrame) {
counter++;
if (_root.timeline == 48) {
tellTarget (this) {
gotoAndPlay ("yawn");
};
}
}
Instance of Symbol 562 MovieClip "robot1" in Frame 1
onClipEvent (load) {
function pickDive() {
random_dive = Math.floor((Math.random() * 4) + 1);
if (!picked_dive) {
picked_dive = true;
if (random_dive == 1) {
tellTarget (this) {
gotoAndPlay ("dive1");
};
} else if (random_dive == 2) {
tellTarget (this) {
gotoAndPlay ("dive2");
};
} else if (random_dive == 3) {
tellTarget (this) {
gotoAndPlay ("dive3");
};
} else if (random_dive == 4) {
tellTarget (this) {
gotoAndPlay ("dive4");
};
}
enter_box = true;
}
}
function stopFall() {
fall = false;
gravity = 0;
flying = false;
fired = false;
velovity = 0;
this._y = start_y;
}
x_velocity = 10;
this_robot = 1;
stopped = true;
direction = "left";
floor_level = 339;
this._y = floor_level - this._height;
start_y = this._y;
gravity = 0;
on_ground = true;
}
onClipEvent (enterFrame) {
walk_speed = _root.walk_speed;
if (!stopped) {
if (this._x >= 560) {
_root.stopRobot(this_robot);
}
if (40 >= this._x) {
tellTarget (this) {
gotoAndPlay ("insult");
};
}
if ((!flying) && (!on_ground)) {
fall = true;
}
if (flying) {
random_flying_number = Math.floor((Math.random() * 4) + 1);
if (!picked_flight) {
picked_flight = true;
flight_picked = random_flying_number;
if (random_flying_number == 1) {
tellTarget (this) {
gotoAndPlay ("flying1");
};
} else if (random_flying_number == 2) {
tellTarget (this) {
gotoAndPlay ("flying2");
};
} else if (random_flying_number == 3) {
tellTarget (this) {
gotoAndPlay ("flying3");
};
} else if (random_flying_number == 4) {
tellTarget (this) {
gotoAndPlay ("flying4");
};
}
}
direction = "right";
if (!enter_box) {
this._y = this._y - velocity;
this._x = this._x + x_velocity;
velocity = velocity - 1.6;
}
if (0 >= velocity) {
if (!set_fall) {
set_fall = true;
if (this.r1.hitTest(_root.invisible)) {
pickDive();
enter_box = true;
}
if (this.r2.hitTest(_root.invisible)) {
pickDive();
enter_box = true;
}
if (this.r3.hitTest(_root.invisible)) {
pickDive();
enter_box = true;
}
if (this.r4.hitTest(_root.invisible)) {
pickDive();
enter_box = true;
}
}
}
if (enter_box && (random_dive != 4)) {
this._y = this._y + gravity;
gravity = gravity + 0.5;
this._x = this._x + x_velocity;
x_velocity = 4.5 - num;
num = num + 0.04;
}
if (enter_box && (random_dive == 4)) {
this._y = this._y + 1;
if (350 >= this._x) {
this._x = this._x + 1.1;
}
num = num + 0.04;
}
if (((this._y + gravity) + 50) >= floor_level) {
stopFall();
if (!landed) {
landed = true;
bouncing = true;
random_land = Math.floor((Math.random() * 3) + 1);
if (random_land == 1) {
tellTarget (this) {
gotoAndPlay ("land1");
};
} else if (random_land == 2) {
tellTarget (this) {
gotoAndPlay ("land2");
};
} else if (random_land == 3) {
tellTarget (this) {
gotoAndPlay ("land3");
};
}
}
}
if (_root.box_sensor.hitTest(this._x, this._y, true)) {
if (90 >= this._y) {
if (!put_behind) {
put_behind = true;
this.swapDepths(_root["holder" + this_robot]);
tellTarget (_root.box.box_light) {
gotoAndPlay ("light");
};
if (random_dive != 4) {
tellTarget (_root.box) {
gotoAndPlay ("Shake");
};
}
_root.score = _root.score + _root.score_increase;
finished = true;
_root.timer_clip.total_time = _root.timer_clip.total_time + _root.time_added;
}
}
}
if (finished && (200 < this._y)) {
_root.stopRobot(this_robot);
}
if ((finished && (this._y >= 150)) && (random_dive == 2)) {
if (!splashed) {
splashed = true;
stopFall();
tellTarget (this) {
gotoAndPlay ("splash");
};
this._y = 130;
}
}
}
if (power_flip) {
fall = false;
if (!power_flipped) {
power_flipped = true;
this._x = 60;
this._y = floor_level - 40;
tellTarget (this) {
gotoAndPlay ("power");
};
}
}
if (((this._y + gravity) + 50) >= floor_level) {
stopFall();
on_ground = true;
fall = false;
}
if (fall && (!enter_box)) {
if (!in_range) {
this._y = this._y + gravity;
gravity = gravity + 1.6;
}
}
if (((((!flying) && (!land)) && (!bouncing)) && (!finished)) && (!power_flip)) {
if (direction == "left") {
tellTarget (this) {
gotoAndPlay ("left");
};
this._x = this._x - walk_speed;
} else if (direction == "right") {
this._x = this._x + walk_speed;
tellTarget (this) {
gotoAndPlay ("right");
};
}
}
if ((((!flying) && (!power_flip)) && (this._x >= (_root.flipper._x - _root.adjacent))) && (_root.flipper._x >= this._x)) {
in_range = true;
_root.robot_on_flipper = true;
} else {
in_range = false;
_root.robot_on_flipper = false;
}
if ((direction == "left") && (1 < _root.angle)) {
if (in_range) {
on_ground = false;
from_pivot = _root.flipper._x - this._x;
angle = _root.angle;
angleb = (angle / 180) * Math.PI;
opposite_side = Math.tan(angleb) * from_pivot;
this._y = Math.floor((_root.flipper._y - opposite_side) - this._height);
}
}
if (1 >= _root.angle) {
this._y = floor_level - 50;
}
if ((direction == "right") && (1 < _root.angle)) {
cancel_flip = true;
} else {
cancel_flip = false;
}
if (_root.flip && (in_range)) {
if ((!fired) && (!cancel_flip)) {
fired = true;
from_pivot = _root.flipper._x - this._x;
my_angle = _root.start_angle - _root.angle;
velocity = my_angle / 1.4;
adj_perc = (from_pivot / (_root.adjacent - 10)) * 100;
velocity = (velocity / 100) * adj_perc;
velocity = velocity * 1.4;
flying = true;
fall = false;
if (velocity >= 45) {
power_flip = true;
flying = false;
}
}
}
if ((-30 >= _x) && (direction == "left")) {
_root.stopRobot(this_robot);
_root.escaped++;
_root.timer_clip.total_time = _root.timer_clip.total_time - 5;
}
}
}
Instance of Symbol 562 MovieClip "robot2" in Frame 1
onClipEvent (load) {
function pickDive() {
random_dive = Math.floor((Math.random() * 4) + 1);
if (!picked_dive) {
picked_dive = true;
if (random_dive == 1) {
tellTarget (this) {
gotoAndPlay ("dive1");
};
} else if (random_dive == 2) {
tellTarget (this) {
gotoAndPlay ("dive2");
};
} else if (random_dive == 3) {
tellTarget (this) {
gotoAndPlay ("dive3");
};
} else if (random_dive == 4) {
tellTarget (this) {
gotoAndPlay ("dive4");
};
}
enter_box = true;
}
}
function stopFall() {
fall = false;
gravity = 0;
flying = false;
fired = false;
velovity = 0;
this._y = start_y;
}
x_velocity = 10;
this_robot = 2;
stopped = true;
direction = "left";
floor_level = 339;
this._y = floor_level - this._height;
start_y = this._y;
gravity = 0;
on_ground = true;
}
onClipEvent (enterFrame) {
walk_speed = _root.walk_speed;
if (!stopped) {
if (this._x >= 560) {
_root.stopRobot(this_robot);
}
if (40 >= this._x) {
tellTarget (this) {
gotoAndPlay ("insult");
};
}
if ((!flying) && (!on_ground)) {
fall = true;
}
if (flying) {
random_flying_number = Math.floor((Math.random() * 4) + 1);
if (!picked_flight) {
picked_flight = true;
flight_picked = random_flying_number;
if (random_flying_number == 1) {
tellTarget (this) {
gotoAndPlay ("flying1");
};
} else if (random_flying_number == 2) {
tellTarget (this) {
gotoAndPlay ("flying2");
};
} else if (random_flying_number == 3) {
tellTarget (this) {
gotoAndPlay ("flying3");
};
} else if (random_flying_number == 4) {
tellTarget (this) {
gotoAndPlay ("flying4");
};
}
}
direction = "right";
if (!enter_box) {
this._y = this._y - velocity;
this._x = this._x + x_velocity;
velocity = velocity - 1.6;
}
if (0 >= velocity) {
if (!set_fall) {
set_fall = true;
if (this.r1.hitTest(_root.invisible)) {
pickDive();
enter_box = true;
}
if (this.r2.hitTest(_root.invisible)) {
pickDive();
enter_box = true;
}
if (this.r3.hitTest(_root.invisible)) {
pickDive();
enter_box = true;
}
if (this.r4.hitTest(_root.invisible)) {
pickDive();
enter_box = true;
}
}
}
if (enter_box && (random_dive != 4)) {
this._y = this._y + gravity;
gravity = gravity + 0.5;
this._x = this._x + x_velocity;
x_velocity = 4.5 - num;
num = num + 0.04;
}
if (enter_box && (random_dive == 4)) {
this._y = this._y + 1;
if (350 >= this._x) {
this._x = this._x + 1.1;
}
num = num + 0.04;
}
if (((this._y + gravity) + 50) >= floor_level) {
stopFall();
if (!landed) {
landed = true;
bouncing = true;
random_land = Math.floor((Math.random() * 3) + 1);
if (random_land == 1) {
tellTarget (this) {
gotoAndPlay ("land1");
};
} else if (random_land == 2) {
tellTarget (this) {
gotoAndPlay ("land2");
};
} else if (random_land == 3) {
tellTarget (this) {
gotoAndPlay ("land3");
};
}
}
}
if (_root.box_sensor.hitTest(this._x, this._y, true)) {
if (90 >= this._y) {
if (!put_behind) {
put_behind = true;
this.swapDepths(_root["holder" + this_robot]);
tellTarget (_root.box.box_light) {
gotoAndPlay ("light");
};
if (random_dive != 4) {
tellTarget (_root.box) {
gotoAndPlay ("Shake");
};
}
_root.score = _root.score + _root.score_increase;
finished = true;
_root.timer_clip.total_time = _root.timer_clip.total_time + _root.time_added;
}
}
}
if (finished && (200 < this._y)) {
_root.stopRobot(this_robot);
}
if ((finished && (this._y >= 150)) && (random_dive == 2)) {
if (!splashed) {
splashed = true;
stopFall();
tellTarget (this) {
gotoAndPlay ("splash");
};
this._y = 130;
}
}
}
if (power_flip) {
fall = false;
if (!power_flipped) {
power_flipped = true;
this._x = 60;
this._y = floor_level - 40;
tellTarget (this) {
gotoAndPlay ("power");
};
}
}
if (((this._y + gravity) + 50) >= floor_level) {
stopFall();
on_ground = true;
fall = false;
}
if (fall && (!enter_box)) {
if (!in_range) {
this._y = this._y + gravity;
gravity = gravity + 1.6;
}
}
if (((((!flying) && (!land)) && (!bouncing)) && (!finished)) && (!power_flip)) {
if (direction == "left") {
tellTarget (this) {
gotoAndPlay ("left");
};
this._x = this._x - walk_speed;
} else if (direction == "right") {
this._x = this._x + walk_speed;
tellTarget (this) {
gotoAndPlay ("right");
};
}
}
if ((((!flying) && (!power_flip)) && (this._x >= (_root.flipper._x - _root.adjacent))) && (_root.flipper._x >= this._x)) {
in_range = true;
_root.robot_on_flipper = true;
} else {
in_range = false;
_root.robot_on_flipper = false;
}
if ((direction == "left") && (1 < _root.angle)) {
if (in_range) {
on_ground = false;
from_pivot = _root.flipper._x - this._x;
angle = _root.angle;
angleb = (angle / 180) * Math.PI;
opposite_side = Math.tan(angleb) * from_pivot;
this._y = Math.floor((_root.flipper._y - opposite_side) - this._height);
}
}
if (1 >= _root.angle) {
this._y = floor_level - 50;
}
if ((direction == "right") && (1 < _root.angle)) {
cancel_flip = true;
} else {
cancel_flip = false;
}
if (_root.flip && (in_range)) {
if ((!fired) && (!cancel_flip)) {
fired = true;
from_pivot = _root.flipper._x - this._x;
my_angle = _root.start_angle - _root.angle;
velocity = my_angle / 1.4;
adj_perc = (from_pivot / (_root.adjacent - 10)) * 100;
velocity = (velocity / 100) * adj_perc;
velocity = velocity * 1.4;
flying = true;
fall = false;
if (velocity >= 45) {
power_flip = true;
flying = false;
}
}
}
if ((-30 >= _x) && (direction == "left")) {
_root.stopRobot(this_robot);
_root.escaped++;
_root.timer_clip.total_time = _root.timer_clip.total_time - 5;
}
}
}
Instance of Symbol 562 MovieClip "robot3" in Frame 1
onClipEvent (load) {
function pickDive() {
random_dive = Math.floor((Math.random() * 4) + 1);
if (!picked_dive) {
picked_dive = true;
if (random_dive == 1) {
tellTarget (this) {
gotoAndPlay ("dive1");
};
} else if (random_dive == 2) {
tellTarget (this) {
gotoAndPlay ("dive2");
};
} else if (random_dive == 3) {
tellTarget (this) {
gotoAndPlay ("dive3");
};
} else if (random_dive == 4) {
tellTarget (this) {
gotoAndPlay ("dive4");
};
}
enter_box = true;
}
}
function stopFall() {
fall = false;
gravity = 0;
flying = false;
fired = false;
velovity = 0;
this._y = start_y;
}
x_velocity = 10;
this_robot = 3;
stopped = true;
direction = "left";
floor_level = 339;
this._y = floor_level - this._height;
start_y = this._y;
gravity = 0;
on_ground = true;
}
onClipEvent (enterFrame) {
walk_speed = _root.walk_speed;
if (!stopped) {
if (this._x >= 560) {
_root.stopRobot(this_robot);
}
if (40 >= this._x) {
tellTarget (this) {
gotoAndPlay ("insult");
};
}
if ((!flying) && (!on_ground)) {
fall = true;
}
if (flying) {
random_flying_number = Math.floor((Math.random() * 4) + 1);
if (!picked_flight) {
picked_flight = true;
flight_picked = random_flying_number;
if (random_flying_number == 1) {
tellTarget (this) {
gotoAndPlay ("flying1");
};
} else if (random_flying_number == 2) {
tellTarget (this) {
gotoAndPlay ("flying2");
};
} else if (random_flying_number == 3) {
tellTarget (this) {
gotoAndPlay ("flying3");
};
} else if (random_flying_number == 4) {
tellTarget (this) {
gotoAndPlay ("flying4");
};
}
}
direction = "right";
if (!enter_box) {
this._y = this._y - velocity;
this._x = this._x + x_velocity;
velocity = velocity - 1.6;
}
if (0 >= velocity) {
if (!set_fall) {
set_fall = true;
if (this.r1.hitTest(_root.invisible)) {
pickDive();
enter_box = true;
}
if (this.r2.hitTest(_root.invisible)) {
pickDive();
enter_box = true;
}
if (this.r3.hitTest(_root.invisible)) {
pickDive();
enter_box = true;
}
if (this.r4.hitTest(_root.invisible)) {
pickDive();
enter_box = true;
}
}
}
if (enter_box && (random_dive != 4)) {
this._y = this._y + gravity;
gravity = gravity + 0.5;
this._x = this._x + x_velocity;
x_velocity = 4.5 - num;
num = num + 0.04;
}
if (enter_box && (random_dive == 4)) {
this._y = this._y + 1;
if (350 >= this._x) {
this._x = this._x + 1.1;
}
num = num + 0.04;
}
if (((this._y + gravity) + 50) >= floor_level) {
stopFall();
if (!landed) {
landed = true;
bouncing = true;
random_land = Math.floor((Math.random() * 3) + 1);
if (random_land == 1) {
tellTarget (this) {
gotoAndPlay ("land1");
};
} else if (random_land == 2) {
tellTarget (this) {
gotoAndPlay ("land2");
};
} else if (random_land == 3) {
tellTarget (this) {
gotoAndPlay ("land3");
};
}
}
}
if (_root.box_sensor.hitTest(this._x, this._y, true)) {
if (90 >= this._y) {
if (!put_behind) {
put_behind = true;
this.swapDepths(_root["holder" + this_robot]);
tellTarget (_root.box.box_light) {
gotoAndPlay ("light");
};
if (random_dive != 4) {
tellTarget (_root.box) {
gotoAndPlay ("Shake");
};
}
_root.score = _root.score + _root.score_increase;
finished = true;
_root.timer_clip.total_time = _root.timer_clip.total_time + _root.time_added;
}
}
}
if (finished && (200 < this._y)) {
_root.stopRobot(this_robot);
}
if ((finished && (this._y >= 150)) && (random_dive == 2)) {
if (!splashed) {
splashed = true;
stopFall();
tellTarget (this) {
gotoAndPlay ("splash");
};
this._y = 130;
}
}
}
if (power_flip) {
fall = false;
if (!power_flipped) {
power_flipped = true;
this._x = 60;
this._y = floor_level - 40;
tellTarget (this) {
gotoAndPlay ("power");
};
}
}
if (((this._y + gravity) + 50) >= floor_level) {
stopFall();
on_ground = true;
fall = false;
}
if (fall && (!enter_box)) {
if (!in_range) {
this._y = this._y + gravity;
gravity = gravity + 1.6;
}
}
if (((((!flying) && (!land)) && (!bouncing)) && (!finished)) && (!power_flip)) {
if (direction == "left") {
tellTarget (this) {
gotoAndPlay ("left");
};
this._x = this._x - walk_speed;
} else if (direction == "right") {
this._x = this._x + walk_speed;
tellTarget (this) {
gotoAndPlay ("right");
};
}
}
if ((((!flying) && (!power_flip)) && (this._x >= (_root.flipper._x - _root.adjacent))) && (_root.flipper._x >= this._x)) {
in_range = true;
_root.robot_on_flipper = true;
} else {
in_range = false;
_root.robot_on_flipper = false;
}
if ((direction == "left") && (1 < _root.angle)) {
if (in_range) {
on_ground = false;
from_pivot = _root.flipper._x - this._x;
angle = _root.angle;
angleb = (angle / 180) * Math.PI;
opposite_side = Math.tan(angleb) * from_pivot;
this._y = Math.floor((_root.flipper._y - opposite_side) - this._height);
}
}
if (1 >= _root.angle) {
this._y = floor_level - 50;
}
if ((direction == "right") && (1 < _root.angle)) {
cancel_flip = true;
} else {
cancel_flip = false;
}
if (_root.flip && (in_range)) {
if ((!fired) && (!cancel_flip)) {
fired = true;
from_pivot = _root.flipper._x - this._x;
my_angle = _root.start_angle - _root.angle;
velocity = my_angle / 1.4;
adj_perc = (from_pivot / (_root.adjacent - 10)) * 100;
velocity = (velocity / 100) * adj_perc;
velocity = velocity * 1.4;
flying = true;
fall = false;
if (velocity >= 45) {
power_flip = true;
flying = false;
}
}
}
if ((-30 >= _x) && (direction == "left")) {
_root.stopRobot(this_robot);
_root.escaped++;
_root.timer_clip.total_time = _root.timer_clip.total_time - 5;
}
}
}
Instance of Symbol 562 MovieClip "robot4" in Frame 1
onClipEvent (load) {
function pickDive() {
random_dive = Math.floor((Math.random() * 4) + 1);
if (!picked_dive) {
picked_dive = true;
if (random_dive == 1) {
tellTarget (this) {
gotoAndPlay ("dive1");
};
} else if (random_dive == 2) {
tellTarget (this) {
gotoAndPlay ("dive2");
};
} else if (random_dive == 3) {
tellTarget (this) {
gotoAndPlay ("dive3");
};
} else if (random_dive == 4) {
tellTarget (this) {
gotoAndPlay ("dive4");
};
}
enter_box = true;
}
}
function stopFall() {
fall = false;
gravity = 0;
flying = false;
fired = false;
velovity = 0;
this._y = start_y;
}
x_velocity = 10;
this_robot = 4;
stopped = true;
direction = "left";
floor_level = 339;
this._y = floor_level - this._height;
start_y = this._y;
gravity = 0;
on_ground = true;
}
onClipEvent (enterFrame) {
walk_speed = _root.walk_speed;
if (!stopped) {
if (this._x >= 560) {
_root.stopRobot(this_robot);
}
if (40 >= this._x) {
tellTarget (this) {
gotoAndPlay ("insult");
};
}
if ((!flying) && (!on_ground)) {
fall = true;
}
if (flying) {
random_flying_number = Math.floor((Math.random() * 4) + 1);
if (!picked_flight) {
picked_flight = true;
flight_picked = random_flying_number;
if (random_flying_number == 1) {
tellTarget (this) {
gotoAndPlay ("flying1");
};
} else if (random_flying_number == 2) {
tellTarget (this) {
gotoAndPlay ("flying2");
};
} else if (random_flying_number == 3) {
tellTarget (this) {
gotoAndPlay ("flying3");
};
} else if (random_flying_number == 4) {
tellTarget (this) {
gotoAndPlay ("flying4");
};
}
}
direction = "right";
if (!enter_box) {
this._y = this._y - velocity;
this._x = this._x + x_velocity;
velocity = velocity - 1.6;
}
if (0 >= velocity) {
if (!set_fall) {
set_fall = true;
if (this.r1.hitTest(_root.invisible)) {
pickDive();
enter_box = true;
}
if (this.r2.hitTest(_root.invisible)) {
pickDive();
enter_box = true;
}
if (this.r3.hitTest(_root.invisible)) {
pickDive();
enter_box = true;
}
if (this.r4.hitTest(_root.invisible)) {
pickDive();
enter_box = true;
}
}
}
if (enter_box && (random_dive != 4)) {
this._y = this._y + gravity;
gravity = gravity + 0.5;
this._x = this._x + x_velocity;
x_velocity = 4.5 - num;
num = num + 0.04;
}
if (enter_box && (random_dive == 4)) {
this._y = this._y + 1;
if (350 >= this._x) {
this._x = this._x + 1.1;
}
num = num + 0.04;
}
if (((this._y + gravity) + 50) >= floor_level) {
stopFall();
if (!landed) {
landed = true;
bouncing = true;
random_land = Math.floor((Math.random() * 3) + 1);
if (random_land == 1) {
tellTarget (this) {
gotoAndPlay ("land1");
};
} else if (random_land == 2) {
tellTarget (this) {
gotoAndPlay ("land2");
};
} else if (random_land == 3) {
tellTarget (this) {
gotoAndPlay ("land3");
};
}
}
}
if (_root.box_sensor.hitTest(this._x, this._y, true)) {
if (90 >= this._y) {
if (!put_behind) {
put_behind = true;
this.swapDepths(_root["holder" + this_robot]);
tellTarget (_root.box.box_light) {
gotoAndPlay ("light");
};
if (random_dive != 4) {
tellTarget (_root.box) {
gotoAndPlay ("Shake");
};
}
_root.score = _root.score + _root.score_increase;
finished = true;
_root.timer_clip.total_time = _root.timer_clip.total_time + _root.time_added;
}
}
}
if (finished && (200 < this._y)) {
_root.stopRobot(this_robot);
}
if ((finished && (this._y >= 150)) && (random_dive == 2)) {
if (!splashed) {
splashed = true;
stopFall();
tellTarget (this) {
gotoAndPlay ("splash");
};
this._y = 130;
}
}
}
if (power_flip) {
fall = false;
if (!power_flipped) {
power_flipped = true;
this._x = 60;
this._y = floor_level - 40;
tellTarget (this) {
gotoAndPlay ("power");
};
}
}
if (((this._y + gravity) + 50) >= floor_level) {
stopFall();
on_ground = true;
fall = false;
}
if (fall && (!enter_box)) {
if (!in_range) {
this._y = this._y + gravity;
gravity = gravity + 1.6;
}
}
if (((((!flying) && (!land)) && (!bouncing)) && (!finished)) && (!power_flip)) {
if (direction == "left") {
tellTarget (this) {
gotoAndPlay ("left");
};
this._x = this._x - walk_speed;
} else if (direction == "right") {
this._x = this._x + walk_speed;
tellTarget (this) {
gotoAndPlay ("right");
};
}
}
if ((((!flying) && (!power_flip)) && (this._x >= (_root.flipper._x - _root.adjacent))) && (_root.flipper._x >= this._x)) {
in_range = true;
_root.robot_on_flipper = true;
} else {
in_range = false;
_root.robot_on_flipper = false;
}
if ((direction == "left") && (1 < _root.angle)) {
if (in_range) {
on_ground = false;
from_pivot = _root.flipper._x - this._x;
angle = _root.angle;
angleb = (angle / 180) * Math.PI;
opposite_side = Math.tan(angleb) * from_pivot;
this._y = Math.floor((_root.flipper._y - opposite_side) - this._height);
}
}
if (1 >= _root.angle) {
this._y = floor_level - 50;
}
if ((direction == "right") && (1 < _root.angle)) {
cancel_flip = true;
} else {
cancel_flip = false;
}
if (_root.flip && (in_range)) {
if ((!fired) && (!cancel_flip)) {
fired = true;
from_pivot = _root.flipper._x - this._x;
my_angle = _root.start_angle - _root.angle;
velocity = my_angle / 1.4;
adj_perc = (from_pivot / (_root.adjacent - 10)) * 100;
velocity = (velocity / 100) * adj_perc;
velocity = velocity * 1.4;
flying = true;
fall = false;
if (velocity >= 45) {
power_flip = true;
flying = false;
}
}
}
if ((-30 >= _x) && (direction == "left")) {
_root.stopRobot(this_robot);
_root.escaped++;
_root.timer_clip.total_time = _root.timer_clip.total_time - 5;
}
}
}
Instance of Symbol 562 MovieClip "robot5" in Frame 1
onClipEvent (load) {
function pickDive() {
random_dive = Math.floor((Math.random() * 4) + 1);
if (!picked_dive) {
picked_dive = true;
if (random_dive == 1) {
tellTarget (this) {
gotoAndPlay ("dive1");
};
} else if (random_dive == 2) {
tellTarget (this) {
gotoAndPlay ("dive2");
};
} else if (random_dive == 3) {
tellTarget (this) {
gotoAndPlay ("dive3");
};
} else if (random_dive == 4) {
tellTarget (this) {
gotoAndPlay ("dive4");
};
}
enter_box = true;
}
}
function stopFall() {
fall = false;
gravity = 0;
flying = false;
fired = false;
velovity = 0;
this._y = start_y;
}
x_velocity = 10;
this_robot = 5;
stopped = true;
direction = "left";
floor_level = 339;
this._y = floor_level - this._height;
start_y = this._y;
gravity = 0;
on_ground = true;
}
onClipEvent (enterFrame) {
walk_speed = _root.walk_speed;
if (!stopped) {
if (this._x >= 560) {
_root.stopRobot(this_robot);
}
if (40 >= this._x) {
tellTarget (this) {
gotoAndPlay ("insult");
};
}
if ((!flying) && (!on_ground)) {
fall = true;
}
if (flying) {
random_flying_number = Math.floor((Math.random() * 4) + 1);
if (!picked_flight) {
picked_flight = true;
flight_picked = random_flying_number;
if (random_flying_number == 1) {
tellTarget (this) {
gotoAndPlay ("flying1");
};
} else if (random_flying_number == 2) {
tellTarget (this) {
gotoAndPlay ("flying2");
};
} else if (random_flying_number == 3) {
tellTarget (this) {
gotoAndPlay ("flying3");
};
} else if (random_flying_number == 4) {
tellTarget (this) {
gotoAndPlay ("flying4");
};
}
}
direction = "right";
if (!enter_box) {
this._y = this._y - velocity;
this._x = this._x + x_velocity;
velocity = velocity - 1.6;
}
if (0 >= velocity) {
if (!set_fall) {
set_fall = true;
if (this.r1.hitTest(_root.invisible)) {
pickDive();
enter_box = true;
}
if (this.r2.hitTest(_root.invisible)) {
pickDive();
enter_box = true;
}
if (this.r3.hitTest(_root.invisible)) {
pickDive();
enter_box = true;
}
if (this.r4.hitTest(_root.invisible)) {
pickDive();
enter_box = true;
}
}
}
if (enter_box && (random_dive != 4)) {
this._y = this._y + gravity;
gravity = gravity + 0.5;
this._x = this._x + x_velocity;
x_velocity = 4.5 - num;
num = num + 0.04;
}
if (enter_box && (random_dive == 4)) {
this._y = this._y + 1;
if (350 >= this._x) {
this._x = this._x + 1.1;
}
num = num + 0.04;
}
if (((this._y + gravity) + 50) >= floor_level) {
stopFall();
if (!landed) {
landed = true;
bouncing = true;
random_land = Math.floor((Math.random() * 3) + 1);
if (random_land == 1) {
tellTarget (this) {
gotoAndPlay ("land1");
};
} else if (random_land == 2) {
tellTarget (this) {
gotoAndPlay ("land2");
};
} else if (random_land == 3) {
tellTarget (this) {
gotoAndPlay ("land3");
};
}
}
}
if (_root.box_sensor.hitTest(this._x, this._y, true)) {
if (90 >= this._y) {
if (!put_behind) {
put_behind = true;
this.swapDepths(_root["holder" + this_robot]);
tellTarget (_root.box.box_light) {
gotoAndPlay ("light");
};
if (random_dive != 4) {
tellTarget (_root.box) {
gotoAndPlay ("Shake");
};
}
_root.score = _root.score + _root.score_increase;
finished = true;
_root.timer_clip.total_time = _root.timer_clip.total_time + _root.time_added;
}
}
}
if (finished && (200 < this._y)) {
_root.stopRobot(this_robot);
}
if ((finished && (this._y >= 150)) && (random_dive == 2)) {
if (!splashed) {
splashed = true;
stopFall();
tellTarget (this) {
gotoAndPlay ("splash");
};
this._y = 130;
}
}
}
if (power_flip) {
fall = false;
if (!power_flipped) {
power_flipped = true;
this._x = 60;
this._y = floor_level - 40;
tellTarget (this) {
gotoAndPlay ("power");
};
}
}
if (((this._y + gravity) + 50) >= floor_level) {
stopFall();
on_ground = true;
fall = false;
}
if (fall && (!enter_box)) {
if (!in_range) {
this._y = this._y + gravity;
gravity = gravity + 1.6;
}
}
if (((((!flying) && (!land)) && (!bouncing)) && (!finished)) && (!power_flip)) {
if (direction == "left") {
tellTarget (this) {
gotoAndPlay ("left");
};
this._x = this._x - walk_speed;
} else if (direction == "right") {
this._x = this._x + walk_speed;
tellTarget (this) {
gotoAndPlay ("right");
};
}
}
if ((((!flying) && (!power_flip)) && (this._x >= (_root.flipper._x - _root.adjacent))) && (_root.flipper._x >= this._x)) {
in_range = true;
_root.robot_on_flipper = true;
} else {
in_range = false;
_root.robot_on_flipper = false;
}
if ((direction == "left") && (1 < _root.angle)) {
if (in_range) {
on_ground = false;
from_pivot = _root.flipper._x - this._x;
angle = _root.angle;
angleb = (angle / 180) * Math.PI;
opposite_side = Math.tan(angleb) * from_pivot;
this._y = Math.floor((_root.flipper._y - opposite_side) - this._height);
}
}
if (1 >= _root.angle) {
this._y = floor_level - 50;
}
if ((direction == "right") && (1 < _root.angle)) {
cancel_flip = true;
} else {
cancel_flip = false;
}
if (_root.flip && (in_range)) {
if ((!fired) && (!cancel_flip)) {
fired = true;
from_pivot = _root.flipper._x - this._x;
my_angle = _root.start_angle - _root.angle;
velocity = my_angle / 1.4;
adj_perc = (from_pivot / (_root.adjacent - 10)) * 100;
velocity = (velocity / 100) * adj_perc;
velocity = velocity * 1.4;
flying = true;
fall = false;
if (velocity >= 45) {
power_flip = true;
flying = false;
}
}
}
if ((-30 >= _x) && (direction == "left")) {
_root.stopRobot(this_robot);
_root.escaped++;
_root.timer_clip.total_time = _root.timer_clip.total_time - 5;
}
}
}
Instance of Symbol 562 MovieClip "robot1" in Frame 1
onClipEvent (load) {
function pickDive() {
random_dive = Math.floor((Math.random() * 4) + 1);
if (!picked_dive) {
picked_dive = true;
if (random_dive == 1) {
tellTarget (this) {
gotoAndPlay ("dive1");
};
} else if (random_dive == 2) {
tellTarget (this) {
gotoAndPlay ("dive2");
};
} else if (random_dive == 3) {
tellTarget (this) {
gotoAndPlay ("dive3");
};
} else if (random_dive == 4) {
tellTarget (this) {
gotoAndPlay ("dive4");
};
}
enter_box = true;
}
}
function stopFall() {
fall = false;
gravity = 0;
flying = false;
fired = false;
velovity = 0;
this._y = start_y;
}
x_velocity = 10;
this_robot = 6;
stopped = true;
direction = "left";
floor_level = 339;
this._y = floor_level - this._height;
start_y = this._y;
gravity = 0;
on_ground = true;
}
onClipEvent (enterFrame) {
walk_speed = _root.walk_speed;
if (!stopped) {
if (this._x >= 560) {
_root.stopRobot(this_robot);
}
if (40 >= this._x) {
tellTarget (this) {
gotoAndPlay ("insult");
};
}
if ((!flying) && (!on_ground)) {
fall = true;
}
if (flying) {
random_flying_number = Math.floor((Math.random() * 4) + 1);
if (!picked_flight) {
picked_flight = true;
flight_picked = random_flying_number;
if (random_flying_number == 1) {
tellTarget (this) {
gotoAndPlay ("flying1");
};
} else if (random_flying_number == 2) {
tellTarget (this) {
gotoAndPlay ("flying2");
};
} else if (random_flying_number == 3) {
tellTarget (this) {
gotoAndPlay ("flying3");
};
} else if (random_flying_number == 4) {
tellTarget (this) {
gotoAndPlay ("flying4");
};
}
}
direction = "right";
if (!enter_box) {
this._y = this._y - velocity;
this._x = this._x + x_velocity;
velocity = velocity - 1.6;
}
if (0 >= velocity) {
if (!set_fall) {
set_fall = true;
if (this.r1.hitTest(_root.invisible)) {
pickDive();
enter_box = true;
}
if (this.r2.hitTest(_root.invisible)) {
pickDive();
enter_box = true;
}
if (this.r3.hitTest(_root.invisible)) {
pickDive();
enter_box = true;
}
if (this.r4.hitTest(_root.invisible)) {
pickDive();
enter_box = true;
}
}
}
if (enter_box && (random_dive != 4)) {
this._y = this._y + gravity;
gravity = gravity + 0.5;
this._x = this._x + x_velocity;
x_velocity = 4.5 - num;
num = num + 0.04;
}
if (enter_box && (random_dive == 4)) {
this._y = this._y + 1;
if (350 >= this._x) {
this._x = this._x + 1.1;
}
num = num + 0.04;
}
if (((this._y + gravity) + 50) >= floor_level) {
stopFall();
if (!landed) {
landed = true;
bouncing = true;
random_land = Math.floor((Math.random() * 3) + 1);
if (random_land == 1) {
tellTarget (this) {
gotoAndPlay ("land1");
};
} else if (random_land == 2) {
tellTarget (this) {
gotoAndPlay ("land2");
};
} else if (random_land == 3) {
tellTarget (this) {
gotoAndPlay ("land3");
};
}
}
}
if (_root.box_sensor.hitTest(this._x, this._y, true)) {
if (90 >= this._y) {
if (!put_behind) {
put_behind = true;
this.swapDepths(_root["holder" + this_robot]);
tellTarget (_root.box.box_light) {
gotoAndPlay ("light");
};
if (random_dive != 4) {
tellTarget (_root.box) {
gotoAndPlay ("Shake");
};
}
_root.score = _root.score + _root.score_increase;
finished = true;
_root.timer_clip.total_time = _root.timer_clip.total_time + _root.time_added;
}
}
}
if (finished && (200 < this._y)) {
_root.stopRobot(this_robot);
}
if ((finished && (this._y >= 150)) && (random_dive == 2)) {
if (!splashed) {
splashed = true;
stopFall();
tellTarget (this) {
gotoAndPlay ("splash");
};
this._y = 130;
}
}
}
if (power_flip) {
fall = false;
if (!power_flipped) {
power_flipped = true;
this._x = 60;
this._y = floor_level - 40;
tellTarget (this) {
gotoAndPlay ("power");
};
}
}
if (((this._y + gravity) + 50) >= floor_level) {
stopFall();
on_ground = true;
fall = false;
}
if (fall && (!enter_box)) {
if (!in_range) {
this._y = this._y + gravity;
gravity = gravity + 1.6;
}
}
if (((((!flying) && (!land)) && (!bouncing)) && (!finished)) && (!power_flip)) {
if (direction == "left") {
tellTarget (this) {
gotoAndPlay ("left");
};
this._x = this._x - walk_speed;
} else if (direction == "right") {
this._x = this._x + walk_speed;
tellTarget (this) {
gotoAndPlay ("right");
};
}
}
if ((((!flying) && (!power_flip)) && (this._x >= (_root.flipper._x - _root.adjacent))) && (_root.flipper._x >= this._x)) {
in_range = true;
_root.robot_on_flipper = true;
} else {
in_range = false;
_root.robot_on_flipper = false;
}
if ((direction == "left") && (1 < _root.angle)) {
if (in_range) {
on_ground = false;
from_pivot = _root.flipper._x - this._x;
angle = _root.angle;
angleb = (angle / 180) * Math.PI;
opposite_side = Math.tan(angleb) * from_pivot;
this._y = Math.floor((_root.flipper._y - opposite_side) - this._height);
}
}
if (1 >= _root.angle) {
this._y = floor_level - 50;
}
if ((direction == "right") && (1 < _root.angle)) {
cancel_flip = true;
} else {
cancel_flip = false;
}
if (_root.flip && (in_range)) {
if ((!fired) && (!cancel_flip)) {
fired = true;
from_pivot = _root.flipper._x - this._x;
my_angle = _root.start_angle - _root.angle;
velocity = my_angle / 1.4;
adj_perc = (from_pivot / (_root.adjacent - 10)) * 100;
velocity = (velocity / 100) * adj_perc;
velocity = velocity * 1.4;
flying = true;
fall = false;
if (velocity >= 45) {
power_flip = true;
flying = false;
}
}
}
if ((-30 >= _x) && (direction == "left")) {
_root.stopRobot(this_robot);
_root.escaped++;
_root.timer_clip.total_time = _root.timer_clip.total_time - 5;
}
}
}
Instance of Symbol 605 MovieClip in Frame 1
onClipEvent (load) {
tellTarget (this) {
gotoAndStop ("stop");
};
}
onClipEvent (enterFrame) {
counter++;
if (_root.timeline == 60) {
tellTarget (this) {
gotoAndPlay ("peep");
};
}
}
Instance of Symbol 636 MovieClip in Frame 1
onClipEvent (load) {
tellTarget (this) {
gotoAndStop ("still");
};
}
onClipEvent (enterFrame) {
if (_root.timeline == 24) {
tellTarget (this) {
gotoAndPlay ("enter");
};
}
}
Instance of Symbol 650 MovieClip "star" in Frame 1
onClipEvent (load) {
_root.trail_counter = 1;
_root.star_grow = 5;
}
onClipEvent (enterFrame) {
if (_root.timeline == 12) {
tellTarget (this) {
gotoAndPlay ("enter");
};
}
}
Instance of Symbol 656 MovieClip in Frame 1
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
this._visible = true;
if (_root.timeline == 82) {
tellTarget (this) {
gotoAndPlay ("enter");
};
}
}
Instance of Symbol 659 MovieClip in Frame 1
onClipEvent (load) {
function addRobot(which) {
_root["robot" + which].busy = true;
_root["robot" + which]._y = _root.robot1.start_y;
_root["robot" + which]._x = 550;
_root["robot" + which].flying = false;
_root["robot" + which].direction = "left";
_root["robot" + which].bouncing = false;
_root["robot" + which].picked_flight = false;
_root["robot" + which].landed = false;
_root["robot" + which].enter_box = false;
_root["robot" + which].stopped = false;
_root["robot" + which].gotoAndStop("left");
_root["robot" + which].finished = false;
_root["robot" + which].x_velocity = 10;
_root["robot" + which].put_behind = false;
}
check_every = 2;
robot_chance = 2;
}
onClipEvent (enterFrame) {
if (_root.score == 50) {
_root.walk_speed = 1.1;
}
if (_root.score == 70) {
_root.walk_speed = 1.2;
}
if (_root.score == 100) {
_root.walk_speed = 1.4;
}
if (_root.score == 150) {
_root.walk_speed = 1.6;
}
if (_root.score == 200) {
_root.walk_speed = 1.7;
}
if (_root.score == 220) {
_root.walk_speed = 1.8;
}
if (_root.score == 400) {
_root.walk_speed = 1.9;
}
if (!game_started) {
game_started = true;
addRobot(1);
_root.robot1._x = 350;
}
if (0 >= _root.number_on_screen) {
if (!_root.robot1.busy) {
addRobot(1);
}
}
time_elapsed = getTimer();
time_elapsed = time_elapsed / 1000;
time_elapsed = Math.floor(time_elapsed);
countdown = time_elapsed - reset_number;
if (countdown >= check_every) {
if (_root.number_on_screen < 6) {
trace("There are less than 6 robots on screen");
random_enter = Math.floor((Math.random() * robot_chance) + 1);
if (random_enter == 1) {
if (!_root.robot1.busy) {
addRobot(1);
} else if (!_root.robot2.busy) {
addRobot(2);
} else if (!_root.robot3.busy) {
addRobot(3);
} else if (!_root.robot4.busy) {
addRobot(4);
} else if (!_root.robot5.busy) {
addRobot(5);
} else if (!_root.robot6.busy) {
addRobot(6);
}
trace("add new robot");
} else {
trace("don't show one");
}
reset_number = time_elapsed;
}
}
}
Frame 10
time_elapsed = getTimer();
time_elapsed = time_elapsed / 1000;
time_elapsed = Math.floor(time_elapsed);
timeline = time_elapsed - difference;
reset_after = 100;
if (timeline == reset_after) {
timeline = 0;
difference = difference + reset_after;
}
Frame 20
gotoAndPlay (10);
Frame 30
stop();
Frame 70
stop();
Instance of Symbol 24 MovieClip in Symbol 25 MovieClip Frame 1
onClipEvent (enterFrame) {
this.score = _root.score;
}
Symbol 39 MovieClip Frame 200
stop();
Symbol 56 MovieClip Frame 32
stop();
Symbol 58 MovieClip Frame 1
stop();
Symbol 90 MovieClip Frame 1
stop();
Symbol 100 MovieClip Frame 1
stop();
Symbol 100 MovieClip Frame 14
gotoAndStop (1);
Symbol 100 MovieClip Frame 25
gotoAndStop (1);
Symbol 100 MovieClip Frame 35
gotoAndStop (1);
Symbol 154 MovieClip Frame 1
stop();
Symbol 161 MovieClip Frame 1
_root.box.box_light._visible = false;
stop();
Symbol 161 MovieClip Frame 10
_root.box.box_light._visible = true;
Symbol 223 MovieClip Frame 2
this._visible = true;
Symbol 223 MovieClip Frame 341
this._visible = false;
_parent.set = false;
stop();
Symbol 226 MovieClip Frame 1
stop();
Instance of Symbol 223 MovieClip in Symbol 226 MovieClip Frame 1
onClipEvent (load) {
tellTarget (this) {
gotoAndStop ("stop");
};
}
onClipEvent (enterFrame) {
if ((_root.timeline == 3) && (!set)) {
set = true;
this._visible = true;
random_number = Math.floor((Math.random() * -76) + -16);
this._x = random_number;
trace(random_number);
tellTarget (this) {
gotoAndPlay ("peep");
};
}
}
Symbol 324 MovieClip Frame 104
_parent.swapDepths(_root.flipper);
Symbol 324 MovieClip Frame 140
stop();
Symbol 338 MovieClip Frame 25
stop();
Symbol 345 MovieClip Frame 11
stop();
Symbol 353 MovieClip Frame 16
stop();
Symbol 353 MovieClip Frame 17
our_flight = _parent.flight_picked;
if (our_flight == 1) {
gotoAndPlay (41);
} else if (our_flight == 2) {
gotoAndPlay (1);
}
Symbol 353 MovieClip Frame 40
stop();
Symbol 353 MovieClip Frame 56
stop();
Symbol 364 MovieClip Frame 15
stop();
Symbol 502 MovieClip Frame 154
_parent._x = _parent._x + 173;
_parent.flying = false;
_parent.direction = "left";
_parent.bouncing = false;
_parent.picked_flight = false;
_parent.landed = false;
_parent.gotoAndStop("left");
Symbol 530 MovieClip Frame 137
_parent._x = _parent._x + 173;
_parent.flying = false;
_parent.direction = "left";
_parent.bouncing = false;
_parent.picked_flight = false;
_parent.landed = false;
_parent.gotoAndStop("left");
Symbol 532 MovieClip Frame 59
_parent._x = _parent._x + 173;
_parent.flying = false;
_parent.direction = "left";
_parent.bouncing = false;
_parent.picked_flight = false;
_parent.landed = false;
_parent.gotoAndStop("left");
Symbol 559 MovieClip Frame 74
_parent._x = _parent._x + 240;
_parent.flying = false;
_parent.direction = "left";
_parent.bouncing = false;
_parent.picked_flight = false;
_parent.landed = false;
_parent.gotoAndStop("left");
Symbol 562 MovieClip Frame 1
stop();
Symbol 562 MovieClip Frame 10
stop();
Symbol 562 MovieClip Frame 20
stop();
Symbol 562 MovieClip Frame 30
stop();
Instance of Symbol 262 MovieClip in Symbol 562 MovieClip Frame 30
onClipEvent (enterFrame) {
this._rotation = this._rotation + 1.5;
}
Symbol 562 MovieClip Frame 49
stop();
Symbol 562 MovieClip Frame 50
stop();
Instance of Symbol 280 MovieClip in Symbol 562 MovieClip Frame 50
onClipEvent (enterFrame) {
this._rotation = this._rotation + 2;
}
Symbol 562 MovieClip Frame 62
this.swapDepths(_root.flipper);
Symbol 562 MovieClip Frame 72
stop();
Symbol 562 MovieClip Frame 83
stop();
Symbol 562 MovieClip Frame 104
stop();
Symbol 562 MovieClip Frame 116
stop();
Instance of Symbol 365 MovieClip in Symbol 562 MovieClip Frame 117
onClipEvent (enterFrame) {
if (turned < 300) {
this._rotation = this._rotation + 1.3;
turned++;
}
}
Symbol 562 MovieClip Frame 131
stop();
Symbol 562 MovieClip Frame 141
stop();
Symbol 562 MovieClip Frame 288
stop();
Symbol 562 MovieClip Frame 300
stop();
Symbol 562 MovieClip Frame 311
stop();
Symbol 562 MovieClip Frame 312
stop();
Symbol 605 MovieClip Frame 255
stop();
Symbol 636 MovieClip Frame 1
stop();
Symbol 650 MovieClip Frame 1
stop();
Instance of Symbol 647 MovieClip "trails" in Symbol 650 MovieClip Frame 1
onClipEvent (enterFrame) {
grown++;
if (grown < 20) {
this._alpha = this._alpha - 5;
this._xscale = this._xscale + star_grow;
this._yscale = this._yscale + star_grow;
}
}
Instance of Symbol 649 MovieClip "shooting" in Symbol 650 MovieClip Frame 11
onClipEvent (enterFrame) {
_root.trail_counter++;
num = _root.trail_counter;
duplicateMovieClip (_root.star.trails, "trail" + num, num);
_root.star["trail" + num]._x = this._x;
_root.star["trail" + num]._y = this._y;
_root.star["trail" + num]._alpha = 100;
_root.star["trail" + num].star_grow = _root.star_grow;
if (_root.star_grow >= 0) {
_root.star_grow = _root.star_grow - 0.4;
}
}
Instance of Symbol 654 MovieClip in Symbol 655 MovieClip Frame 1
onClipEvent (enterFrame) {
grown++;
if (grown < 20) {
this._xscale = this._xscale + 5;
this._yscale = this._yscale + 5;
this._alpha = this._alpha - 5;
}
}
Symbol 656 MovieClip Frame 1
stop();