Frame 1
((undefined <= b) > "c") || (0(false));
_root.FlashTracking = function (Section) {
datenow = new Date();
};
_root.GameQuit = function () {
getURL ("javascript:window.opener=self; window.close()", _self);
_root.scoreIDtemp = "";
};
_root.GameHighscores = function () {
if (_root.localOJJpage == 1) {
getURL ("javascript:goHighScores()", _self);
} else {
getURL ("http://gamcore.com", "_blank");
}
};
_root.SendScore = function () {
score = game.score;
if (score > 0) {
var _local2 = "game21";
var _local1 = score;
loadVariablesNum ((("http://www.oddjobjack.com/forum/index.php?act=Arcade&do=newscore&gname=" + _local2) + "&gscore=") + _local1, 1);
}
score = 0;
var _local1 = 0;
};
_root.FlashTracking("Game21_Preload_Start");
_root.xOrigin = _root.loadBar.LBar._x;
_root.total = _root.getBytesTotal();
_root.factor = _root.loadbar.barMeasure._width;
_root.partial = 0;
skip_transaction = true;
stop();
Instance of Symbol 77 MovieClip [loaderBar] "loadBar" in Frame 1
onClipEvent (enterFrame) {
_root.partial = _root.getBytesLoaded();
if (_root.partial < _root.total) {
_root.Move = (Number(_root.partial) / Number(_root.total)) * _root.factor;
_root.loadBar.LBar._x = _root.xOrigin + _root.Move;
} else if (_root.partial >= _root.total) {
trace("Loaded");
_root.FlashTracking("Game21_Preload_End");
_root.play();
}
}
Frame 2
main_menu_btn.onRelease = function () {
stopAllSounds();
gotoAndPlay ("2-3");
};
Frame 340
gotoAndPlay (341);
Frame 359
menu_mc.play();
Frame 391
stop();
menu_mc.play_btn.onRelease = function () {
next_page = "game";
_root.FlashTracking("Game21_play");
stopAllSounds();
gotoAndPlay ("1-3");
};
menu_mc.score_btn.onRelease = function () {
_root.FlashTracking("Game21_high_scores");
_root.GameHighscores();
stopAllSounds();
};
menu_mc.help_btn.onRelease = function () {
next_page = "help";
_root.FlashTracking("Game21_help");
stopAllSounds();
gotoAndPlay ("1-3");
};
menu_mc.quit_btn.onRelease = function () {
_root.FlashTracking("Game21_quit");
stopAllSounds();
_root.GameQuit();
};
Frame 423
stop();
if (next_page == "game") {
gotoAndPlay (425);
} else if (next_page == "score") {
gotoAndPlay (591);
} else if (next_page == "help") {
gotoAndPlay (508);
} else if (next_page == "quit") {
gotoAndPlay (341);
}
Frame 424
stop();
stopAllSounds();
start_btn.onRelease = function () {
start_step = Number(start_step_txt.text);
trace("step " + start_step);
gotoAndPlay (425);
};
Frame 425
function initialSound() {
voice_arr = new Array();
var _local1 = 0;
while (_local1 < 100) {
voice_arr[_local1] = "";
_local1++;
}
voice_arr[0] = "STAGE ONE! Early Phase! Light the contractions to begin dilation!";
voice_arr[11] = "Shoot Ramps to breathe! Yeh - Yeh - Yeah!";
voice_arr[12] = "Active Phase! Hit bumpers for faster contractions!";
voice_arr[22] = "Shoot Ramps to breathe! G-G-G-Great!";
voice_arr[23] = "Transition Phase! Hit bumpers for full dilation! G-G-G Go for it! Yeah!";
voice_arr[24] = "1 centimeter dilated!";
voice_arr[25] = "2 centimeters dilated!";
voice_arr[26] = "3 centimeters dilated!";
voice_arr[27] = "4 centimeters dilated!";
voice_arr[28] = "5 centimeters dilated!";
voice_arr[29] = "6 centimeters dilated!";
voice_arr[30] = "7 centimeters dilated!";
voice_arr[31] = "8 centimeters dilated!";
voice_arr[32] = "9 centimeters dilated!";
voice_arr[33] = "10 centimeters dilated! Super Dilation! That thing is huge! Stage Two! The baby is descending! Shoot ramps to push!";
voice_arr[35] = "Lock 2 balls for water break!";
voice_arr[37] = "MEGA WATER BREAK! It's a gusher! Crowning stage! Shoot alternate ramps to push! Max out the push meter!";
voice_arr[110] = "You're doing great Mommy. Now push!";
voice_arr[110] = "";
voice_arr[110] = "";
}
function initialSteps() {
level_arr = new Array(12, 23, 34, 40, 52, 57);
step_arr = new Array();
step_arr.push("light");
step_arr.push("light");
step_arr.push("light");
step_arr.push("light");
step_arr.push("light");
step_arr.push("light");
step_arr.push("light");
step_arr.push("light");
step_arr.push("light");
step_arr.push("light");
step_arr.push("light");
step_arr.push("ramp");
step_arr.push("bumper");
step_arr.push("bumper");
step_arr.push("bumper");
step_arr.push("bumper");
step_arr.push("bumper");
step_arr.push("bumper");
step_arr.push("bumper");
step_arr.push("bumper");
step_arr.push("bumper");
step_arr.push("bumper");
step_arr.push("ramp");
step_arr.push("bumper");
step_arr.push("bumper");
step_arr.push("bumper");
step_arr.push("bumper");
step_arr.push("bumper");
step_arr.push("bumper");
step_arr.push("bumper");
step_arr.push("bumper");
step_arr.push("bumper");
step_arr.push("bumper");
step_arr.push("ramp");
step_arr.push("ramp");
step_arr.push("ramp");
step_arr.push("lock");
step_arr.push("lock");
step_arr.push("lock");
step_arr.push("lock");
step_arr.push("ramp");
step_arr.push("another_ramp");
step_arr.push("bumper");
step_arr.push("bumper");
step_arr.push("bumper");
step_arr.push("bumper");
step_arr.push("bumper");
step_arr.push("bumper");
step_arr.push("bumper");
step_arr.push("bumper");
step_arr.push("bumper");
step_arr.push("bumper");
step_arr.push("lock timer");
step_arr.push("ramp");
step_arr.push("ramp");
step_arr.push("lock");
step_arr.push("lock");
step_arr.push("lock bonus timer");
step_arr.push("free");
}
function checkPlaySound(step) {
var _local1 = step;
trace("next step: " + _local1);
if (_local1 == 13) {
sound.level2_clip.gotoAndPlay("play1");
} else if (_local1 == 24) {
sound.level3_clip.gotoAndPlay("play1");
} else if (_local1 == 25) {
sound.level3_dilation_clip.gotoAndPlay("1 cm");
} else if (_local1 == 26) {
sound.level3_dilation_clip.gotoAndPlay("2 cm");
} else if (_local1 == 27) {
sound.level3_dilation_clip.gotoAndPlay("3 cm");
} else if (_local1 == 28) {
sound.level3_dilation_clip.gotoAndPlay("4 cm");
} else if (_local1 == 29) {
sound.level3_dilation_clip.gotoAndPlay("5 cm");
} else if (_local1 == 30) {
sound.level3_dilation_clip.gotoAndPlay("6 cm");
} else if (_local1 == 31) {
sound.level3_dilation_clip.gotoAndPlay("7 cm");
} else if (_local1 == 32) {
sound.level3_dilation_clip.gotoAndPlay("8 cm");
} else if (_local1 == 33) {
sound.level3_dilation_clip.gotoAndPlay("9 cm");
} else if (_local1 == 34) {
sound.level3_dilation_clip.gotoAndPlay("10 cm");
} else if (_local1 == 35) {
sound.level4_clip.gotoAndPlay("play1");
} else if (_local1 == 37) {
sound.level4_water_clip.gotoAndPlay("water break");
} else if (_local1 == 39) {
sound.level4_water_clip.gotoAndPlay("water break done");
} else if (_local1 == 41) {
sound.level5_clip.gotoAndPlay("play1");
} else if (_local1 == 42) {
sound.level5_clip.gotoAndPlay("doing well");
} else if (_local1 == 53) {
sound.level6_clip.gotoAndPlay("play1");
} else if (_local1 == 54) {
sound.level6_clip.gotoAndPlay("trouble");
} else if (_local1 == 57) {
sound.level6_clip.gotoAndPlay("did it");
} else if (_local1 == 153) {
sound.level6_clip.gotoAndPlay("play1");
} else if (_local1 == 153) {
sound.level6_clip.gotoAndPlay("play1");
} else if (_local1 == 153) {
sound.level6_clip.gotoAndPlay("play1");
} else if (_local1 == 153) {
sound.level6_clip.gotoAndPlay("play1");
} else if (_local1 == 153) {
sound.level6_clip.gotoAndPlay("play1");
} else {
playGoodSound();
}
}
function updateStep() {
step_txt.text = game.step;
thing_to_do_txt.text = step_arr[game.step - 1];
if (game.frames > (game.last_step_up_frame + 900)) {
game.last_step_up_frame = game.frames;
playBadSound();
}
if (voice_arr[game.step - 1] != "") {
voice_txt.text = voice_arr[game.step - 1];
}
if (step_arr[game.step - 1] == "lock bonus timer") {
trace((((game.frames + " ") + game.lock_bonus_start_frame) + " ") + game.frames_lock_bonus);
if (game.lock_bonus_start_frame == 0) {
game.lock_bonus_start_frame = game.frames;
}
if (game.frames >= (game.lock_bonus_start_frame + game.frames_lock_bonus)) {
trace("lock done");
if (game.lock_bonus_locks >= 3) {
create2ExtraBalls();
game.lock_bonus_locks = 0;
} else if (game.lock_bonus_locks >= 2) {
create1ExtraBall();
game.lock_bonus_locks = 0;
}
game.step++;
updatePennis(game.step);
game.last_step_up_frame = game.frames;
icon_mc.gotoAndStop(step_arr[game.step - 1]);
checkPlaySound(game.step);
} else if (game.current_action == "lock") {
game.current_action = 0;
game.lock_bonus_locks++;
if (game.lock_bonus_locks == 2) {
sound.level6_clip.gotoAndPlay("2 bonus");
} else if (game.lock_bonus_locks == 3) {
sound.level6_clip.gotoAndPlay("3 bonus");
} else if (game.lock_bonus_locks == 4) {
sound.level6_clip.gotoAndPlay("5 bonus");
} else if (game.lock_bonus_locks == 5) {
sound.level6_clip.gotoAndPlay("5 bonus");
} else if (game.lock_bonus_locks >= 6) {
sound.level6_clip.gotoAndPlay("6 bonus");
}
}
} else if (step_arr[game.step - 1] == "lock timer") {
if (game.lock_2_ball_start_frame == 0) {
game.lock_2_ball_start_frame = game.frames;
}
if (game.frames >= (game.lock_2_ball_start_frame + game.frames_lock_2_ball)) {
if (game.lock_2_locks < 2) {
game.lock_2_locks = 0;
game.step++;
updatePennis(game.step);
game.last_step_up_frame = game.frames;
icon_mc.gotoAndStop(step_arr[game.step - 1]);
checkPlaySound(game.step);
} else {
game.lock_2_locks = 0;
game.step = 58;
}
} else if (game.current_action == "lock") {
game.current_action = 0;
game.lock_2_locks++;
}
} else if (game.current_action == step_arr[game.step - 1]) {
game.current_action = "";
level_txt.text = game.level;
game.step++;
updatePennis(game.step);
game.last_step_up_frame = game.frames;
icon_mc.gotoAndStop(step_arr[game.step - 1]);
checkPlaySound(game.step);
if (game.step == level_arr[game.level - 1]) {
bumper_meter.power = 0;
game.level++;
}
}
trace("level " + game.level);
}
function initialLights() {
var _local1 = 0;
while (_local1 < game.lights) {
var _local2 = "light" + _local1;
var _local3 = ("light" + _local1) + "_mc";
this[_local2] = {};
light_obj = this[_local2];
light_obj.clip = table.clip[_local3];
light_obj.id = _local1;
light_obj.x = light_obj.clip._x;
light_obj.y = light_obj.clip._y;
light_obj.radius = light_obj.clip._width / 2;
light_obj.power = 0.8;
light_obj.is_on = true;
light_obj.clip.stop();
_local1++;
}
}
function resetAllLights() {
var _local2 = this;
var _local1 = 0;
while (_local1 < game.lights) {
light_obj = _local2["light" + _local1];
light_obj.is_on = true;
light_obj.clip.gotoAndPlay("flash");
_local1++;
}
}
function initialBumpers() {
var soft_bumper_decay = 0.2;
var circle_decay = 0.4;
var bumper_decay = 1.02;
var power_bumper_decay = 2;
var _local3 = new Array("p", "b", "b", "b", "b", "c", "s", "s", "p", "s", "s", "s", "s", "c", "p", "p", "p", "p", "p", "p", "c", "p", "p", "p", "p", "p", "p", "c", "s", "s", "c", "s", "s", "s", "s", "c", "c", "c", "c", "c", "c", "c", "c", "s", "c", "c", "c", "c", "c", "c", "c", "c", "c", "s", "c", "c", "c", "c", "c", "c", "c", "c", "c", "c");
var bumper_group_arr = new Array(-1, -1, -1, -1, -1, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 104, 104, 105, 105, 106, 106, 107, 107);
var _local1 = 0;
while (_local1 < game.bumpers) {
var _local2 = "bumper" + _local1;
var clip_name = (("bumper" + _local1) + "_mc");
this[_local2] = {};
bumper_obj = this[_local2];
bumper_obj.name = _local2;
bumper_obj.clip = table.clip[clip_name];
bumper_obj.id = _local1;
bumper_obj.x = bumper_obj.clip._x;
bumper_obj.y = bumper_obj.clip._y;
bumper_obj.radius = bumper_obj.clip._width / 2;
if (bumper_group_arr[_local1] == -1) {
bumper_obj.group = _local1;
} else {
bumper_obj.group = bumper_group_arr[_local1];
}
if (_local3[_local1] == "s") {
bumper_obj.power = soft_bumper_decay;
} else if (_local3[_local1] == "c") {
bumper_obj.power = circle_decay;
} else if (_local3[_local1] == "b") {
bumper_obj.power = bumper_decay;
} else if (_local3[_local1] == "p") {
bumper_obj.power = power_bumper_decay;
}
_local1++;
}
}
function initialIVBumpers() {
var _local1 = 0;
while (_local1 < 8) {
var _local2 = "iv_bumper" + _local1;
var _local3 = ("iv_bumper" + _local1) + "_mc";
this[_local2] = {};
bumper_obj = this[_local2];
bumper_obj.name = _local2;
bumper_obj.clip = table.clip[_local3];
bumper_obj.id = _local1;
bumper_obj.x = bumper_obj.clip._x;
bumper_obj.y = bumper_obj.clip._y;
bumper_obj.radius = bumper_obj.clip._width / 2;
_local1++;
}
}
function initialRampBumpers() {
var _local1 = 1;
while (_local1 <= 2) {
var _local2 = "ramp_bumper" + _local1;
var _local3 = ("ramp_bumper" + _local1) + "_mc";
this[_local2] = {};
bumper_obj = this[_local2];
bumper_obj.clip = table.clip[_local3];
bumper_obj.id = _local1;
bumper_obj.x = bumper_obj.clip._x;
bumper_obj.y = bumper_obj.clip._y;
bumper_obj.power = 0.6;
bumper_obj.radius = bumper_obj.clip._width / 2;
bumper_obj.power = 0.3;
bumper_obj._currentframe = 1;
_local1++;
}
}
function createLines() {
l = createLine(table.clip.point1_mc._x, table.clip.point1_mc._y, table.clip.point2_mc._x, table.clip.point2_mc._y, 0.7);
l = createLine(table.clip.point3_mc._x, table.clip.point3_mc._y, table.clip.point4_mc._x, table.clip.point4_mc._y, 0.3);
l = createLine(table.clip.point5_mc._x, table.clip.point5_mc._y, table.clip.point6_mc._x, table.clip.point6_mc._y, 0.3);
l = createLine(table.clip.point7_mc._x, table.clip.point7_mc._y, table.clip.point8_mc._x, table.clip.point8_mc._y, 1.2);
l = createLine(table.clip.point8_mc._x, table.clip.point8_mc._y, table.clip.point9_mc._x, table.clip.point9_mc._y, 0.7);
l = createLine(table.clip.point9_mc._x, table.clip.point9_mc._y, table.clip.point7_mc._x, table.clip.point7_mc._y, 0.7);
l = createLine(table.clip.point10_mc._x, table.clip.point10_mc._y, table.clip.point11_mc._x, table.clip.point11_mc._y, 0.7);
l = createLine(table.clip.point11_mc._x, table.clip.point11_mc._y, table.clip.point12_mc._x, table.clip.point12_mc._y, 0.7);
l = createLine(table.clip.point12_mc._x, table.clip.point12_mc._y, table.clip.point10_mc._x, table.clip.point10_mc._y, 1.2);
l = createLine(table.clip.point13_mc._x, table.clip.point13_mc._y, table.clip.point14_mc._x, table.clip.point14_mc._y, 0.3);
l = createLine(table.clip.point15_mc._x, table.clip.point15_mc._y, table.clip.point16_mc._x, table.clip.point16_mc._y, 0.3);
l = createLine(table.clip.point14_mc._x, table.clip.point14_mc._y, table.clip.point17_mc._x, table.clip.point17_mc._y, 0.3);
l = createLine(table.clip.point18_mc._x, table.clip.point18_mc._y, table.clip.point15_mc._x, table.clip.point15_mc._y, 0.3);
l = createLine(table.clip.point14_mc._x, table.clip.point14_mc._y, table.clip.point19_mc._x, table.clip.point19_mc._y, 0.3);
l = createLine(table.clip.point20_mc._x, table.clip.point20_mc._y, table.clip.point15_mc._x, table.clip.point15_mc._y, 0.3);
l = createLine(table.clip.point21_mc._x, table.clip.point21_mc._y, table.clip.point22_mc._x, table.clip.point22_mc._y, 0.3);
l = createLine(table.clip.point23_mc._x, table.clip.point23_mc._y, table.clip.point24_mc._x, table.clip.point24_mc._y, 0.3);
}
function createLine(x, y, x2, y2, reaction_ratio) {
var _local2 = x2 - x;
var _local3 = y2 - y;
if (_local2 == 0) {
_local2 = 1E-5;
}
var angle_rad = Math.atan(_local3 / _local2);
if (_local2 < 0) {
angle_rad = angle_rad - Math.PI;
}
var _local1 = (angle_rad / Math.PI) * 180;
var length = Math.sqrt((_local2 * _local2) + (_local3 * _local3));
if (_local1 == 0) {
_local1 = 1E-5;
} else if (_local1 == 90) {
_local1 = 89.99999;
} else if (_local1 == 180) {
_local1 = 179.99999;
} else if (_local1 == -90) {
_local1 = -89.99999;
} else if (_local1 == -180) {
_local1 = -179.99999;
}
name = "line" + game.current_lines;
clip_name = ("line" + game.current_lines) + "_mc";
table.clip.attachMovie("line blank", clip_name, depth.line + game.current_lines);
this[name] = {};
line_obj = this[name];
line_obj.clip = table.clip[clip_name];
line_obj.name = name;
line_obj.id = game.current_lines;
line_obj.x = x;
line_obj.y = y;
line_obj.reaction_ratio = reaction_ratio;
line_obj.length = length;
line_obj.angle = _local1;
line_obj.angle_rad = (_local1 * Math.PI) / 180;
line_obj.slope = Math.tan(line_obj.angle_rad);
line_obj.sin_angle = Math.sin(line_obj.angle_rad);
line_obj.cos_angle = Math.cos(line_obj.angle_rad);
line_obj.b = line_obj.y - (line_obj.slope * line_obj.x);
line_obj.clip.lineStyle(0, 0, 100);
line_obj.clip._x = line_obj.x;
line_obj.clip._y = line_obj.y;
line_obj.clip._rotation = line_obj.angle;
line_obj.clip.lineTo(line_obj.length, 0);
line_obj.x1 = line_obj.x;
line_obj.y1 = line_obj.y;
line_obj.x2 = line_obj.x + (line_obj.length * line_obj.cos_angle);
line_obj.y2 = line_obj.y + (line_obj.length * line_obj.sin_angle);
line_arr.push(line_obj);
line_obj.clip._alpha = 0;
game.current_lines++;
return(line_obj);
}
function checkBallCollision() {
var _local3 = this;
var _local2 = 1;
while (_local2 <= game.balls) {
var _local1 = _local3["ball" + _local2];
if (_local1.available && (_local1.location == "main_board")) {
checkBallLineCollision(_local1);
checkBallBumpersCollision(_local1);
checkBallBoardSidesCollision(_local1);
checkBallLightsCollision(_local1);
checkBallLocksCollision(_local1);
checkBallRampBumpersCollision(_local1);
checkBallIVBumpersCollision(_local1);
}
_local2++;
}
}
function checkBallBoardSidesCollision(ball_obj) {
var _local1 = ball_obj;
if (_local1.tempy < wall.top) {
checkBallCeilingCollision(_local1);
} else {
checkBallWallCollision(_local1);
}
}
function checkBallWallCollision(ball_obj) {
var _local1 = ball_obj;
if (_local1.tempy > (wall.bottom + 100)) {
if (game.balls == 1) {
ballDead();
} else if (game.balls == 2) {
if (_local1.id == 1) {
ball1.location = "ready";
var _local2 = ball2;
ball2 = ball1;
ball1 = _local2;
} else if (_local1.id == 2) {
ball2.location = "ready";
}
game.balls = 1;
} else if (game.balls == 3) {
if (_local1.id == 1) {
ball1.location = "ready";
var _local2 = ball3;
ball3 = ball1;
ball1 = _local2;
} else if (_local1.id == 2) {
ball2.location = "ready";
var _local2 = ball3;
ball3 = ball2;
ball2 = _local2;
} else if (_local1.id == 3) {
ball3.location = "ready";
}
game.balls = 2;
}
sound_ball_mc.gotoAndPlay("lose");
} else if (_local1.tempx < (wall.left + _local1.radius)) {
_local1.tempx = wall.left + _local1.radius;
_local1.xmov = _local1.xmov * (-_local1.wall_decay);
_local1.last_collision = -3;
game.last_collision_frame = game.frames;
var _local3 = random(2) + 1;
sound_ball_hits_wall_mc.gotoAndPlay("sound" + _local3);
} else if (_local1.tempx > (wall.right - _local1.radius)) {
_local1.tempx = wall.right - _local1.radius;
_local1.xmov = _local1.xmov * (-_local1.wall_decay);
_local1.last_collision = -3;
game.last_collision_frame = game.frames;
var _local3 = random(2) + 1;
sound_ball_hits_wall_mc.gotoAndPlay("sound" + _local3);
}
}
function checkBallCeilingCollision(ball_obj) {
var _local1 = ball_obj;
var xdist = (ceiling.x - _local1.tempx);
var ydist = (ceiling.y - _local1.tempy);
var dist = Math.sqrt((xdist * xdist) + (ydist * ydist));
var diff_radius = (ceiling.radius - _local1.radius);
if (dist > diff_radius) {
var line_angle = (Math.atan(ydist / xdist) + (Math.PI/2));
var _local2 = Math.cos(line_angle);
var _local3 = Math.sin(line_angle);
var ball_xmov_proj = ((_local1.xmov * _local2) + (_local1.ymov * _local3));
var ball_ymov_proj = ((_local1.ymov * _local2) - (_local1.xmov * _local3));
ball_ymov_proj = -ball_ymov_proj;
var ball_temp_xmov = ((ball_xmov_proj * _local2) - (ball_ymov_proj * _local3));
var ball_temp_ymov = ((ball_ymov_proj * _local2) + (ball_xmov_proj * _local3));
var ball_tempx = (_local1.x + ball_temp_xmov);
var ball_tempy = (_local1.y + ball_temp_ymov);
_local1.tempx = ball_tempx;
_local1.tempy = ball_tempy;
_local1.xmov = ball_temp_xmov * _local1.wall_decay;
_local1.ymov = ball_temp_ymov * _local1.wall_decay;
_local1.last_collision = -3;
game.last_collision_frame = game.frames;
var rand = (random(2) + 1);
sound_ball_hits_wall_mc.gotoAndPlay("sound" + rand);
}
}
function checkBallBumpersCollision(ball_obj) {
var _local2 = ball_obj;
var _local1 = 0;
while (_local1 < game.bumpers) {
bumper_obj = this["bumper" + _local1];
var xdist = (bumper_obj.x - _local2.tempx);
var _local3 = bumper_obj.y - _local2.tempy;
var dist = Math.sqrt((xdist * xdist) + (_local3 * _local3));
var sum_radius = (bumper_obj.radius + _local2.radius);
if ((dist < sum_radius) && ((_local2.last_collision != bumper_obj.group) || (game.frames > (game.last_collision_frame + 4)))) {
if (!(((flipper1.status == "down") && (_local1 == 43)) || ((flipper2.status == "down") && (_local1 == 53)))) {
ballBumperReaction(_local2, bumper_obj);
}
if ((_local1 >= 0) && (_local1 <= 4)) {
game.current_action = "bumper";
if (step_arr[game.step - 1] == "bumper") {
bumper_meter.power = bumper_meter.power + 10;
}
var rand = (random(2) + 1);
sound_ball_bumper_mc.gotoAndPlay("sound" + rand);
addScore(score.bumper);
}
_local2.last_collision = bumper_obj.group;
game.last_collision_frame = game.frames;
}
_local1++;
}
}
function checkBallIVBumpersCollision(ball_obj) {
var _local1 = ball_obj;
var _local2 = 0;
while (_local2 < 8) {
bumper_obj = this["iv_bumper" + _local2];
var xdist = (bumper_obj.x - _local1.tempx);
var _local3 = bumper_obj.y - _local1.tempy;
var dist = Math.sqrt((xdist * xdist) + (_local3 * _local3));
var sum_radius = (bumper_obj.radius + _local1.radius);
if (dist < sum_radius) {
if ((_local2 >= 0) && (_local2 <= 3)) {
_local1.tempx = 70;
_local1.tempy = 340;
_local1.xmov = 10;
_local1.ymov = (-Math.random(10)) - 10;
} else if ((_local2 >= 4) && (_local2 <= 7)) {
_local1.tempx = 185;
_local1.tempy = 340;
_local1.xmov = -10;
_local1.ymov = (-Math.random(10)) - 10;
}
}
_local2++;
}
}
function ballBumperReaction(ball_obj, bumper_obj) {
var _local1 = ball_obj;
bumper_obj.clip.gotoAndPlay("light");
var xdist = (bumper_obj.x - _local1.tempx);
var ydist = (bumper_obj.y - _local1.tempy);
var dist = Math.sqrt((xdist * xdist) + (ydist * ydist));
var sum_radius = (bumper_obj.radius + _local1.radius);
var line_angle = (Math.atan(ydist / xdist) + (Math.PI/2));
var _local3 = Math.cos(line_angle);
var sin_line_angle = Math.sin(line_angle);
var ball_xmov_proj = ((_local1.xmov * _local3) + (_local1.ymov * sin_line_angle));
var _local2 = (_local1.ymov * _local3) - (_local1.xmov * sin_line_angle);
_local2 = -_local2;
if (_local1.speed > 2) {
if (table.status == "frozen") {
_local2 = _local2 * 0.4;
} else {
_local2 = _local2 * bumper_obj.power;
}
}
var ball_temp_xmov = ((ball_xmov_proj * _local3) - (_local2 * sin_line_angle));
var ball_temp_ymov = ((_local2 * _local3) + (ball_xmov_proj * sin_line_angle));
var ball_tempx = (_local1.x + ball_temp_xmov);
var ball_tempy = (_local1.y + ball_temp_ymov);
_local1.tempx = ball_tempx;
_local1.tempy = ball_tempy;
_local1.xmov = ball_temp_xmov;
_local1.ymov = ball_temp_ymov;
}
function checkBallLineCollision(ball_obj) {
var _local1 = ball_obj;
i = 0;
while (i < game.balls) {
var min_frames = 1;
var collision = false;
var collision_line = {};
var collision_x = 0;
var collision_y = 0;
j = 0;
while (j < line_arr.length) {
line_obj = line_arr[j];
var _local2 = _local1.ymov / _local1.xmov;
if (_local2 == Number.POSITIVE_INFINITY) {
_local2 = 1000000 /* 0x0F4240 */;
} else if (_local2 == Number.NEGATIVE_INFINITY) {
_local2 = -1000000;
}
var ball_b = (_local1.y - (_local2 * _local1.x));
var x = ((ball_b - line_obj.b) / (line_obj.slope - _local2));
var _local3 = (line_obj.slope * x) + line_obj.b;
var ball_angle_rad = Math.atan(_local1.ymov / _local1.xmov);
var angle_diff_rad = (ball_angle_rad - line_obj.angle_rad);
var sin_angle_diff = Math.sin(angle_diff_rad);
var r = (_local1.radius / sin_angle_diff);
var x = (x - (r * Math.cos(ball_angle_rad)));
_local3 = _local3 - (r * Math.sin(ball_angle_rad));
var dist = Math.sqrt(((x - _local1.x) * (x - _local1.x)) + ((_local3 - _local1.y) * (_local3 - _local1.y)));
var speed = Math.sqrt((_local1.xmov * _local1.xmov) + (_local1.ymov * _local1.ymov));
var frames = (dist / speed);
var normal_slope = (-1 / line_obj.slope);
var normal_b = (_local3 - (normal_slope * x));
var lines_x = ((line_obj.b - normal_b) / (normal_slope - line_obj.slope));
var lines_y = ((normal_slope * line_x) + normal_b);
if (!(((((((flipper1.status == "down") && (j == 13)) || ((flipper1.status == "up") && (j == 11))) || ((flipper2.status == "down") && (j == 14))) || ((flipper2.status == "up") && (j == 12))) || ((_local1.ymov < -2) && (j == 14))) || ((_local1.ymov < -2) && (j == 13)))) {
if ((frames > 0) && (frames < min_frames)) {
if (((((lines_x > line_obj.x1) && (lines_x < line_obj.x2)) || ((lines_x > line_obj.x2) && (lines_x < line_obj.x1))) || ((lines_y > line_obj.y1) && (lines_y < line_obj.y2))) || ((lines_y > line_obj.y2) && (lines_y < line_obj.y1))) {
min_frames = frames;
collision = true;
collision_line = line_obj;
collision_x = x;
collision_y = _local3;
}
}
}
j++;
}
if (collision) {
_local1.last_collision = -2;
game.last_collision_frame = game.frames;
if (Math.abs(_local1.ymov) > 3) {
var rand = (random(2) + 1);
sound_ball_hits_wall_mc.gotoAndPlay("sound" + rand);
}
ballLineReaction(collision_line, _local1, collision_x, collision_y);
}
i++;
}
}
function ballLineReaction(line_obj, ball_obj, x, y) {
var _local1 = ball_obj;
var line_angle = line_obj.angle_rad;
var _local2 = Math.cos(line_angle);
var _local3 = Math.sin(line_angle);
var ball_xmov_proj = ((_local1.xmov * _local2) + (_local1.ymov * _local3));
var ball_ymov_proj = ((_local1.ymov * _local2) - (_local1.xmov * _local3));
ball_ymov_proj = (-ball_ymov_proj) * line_obj.reaction_ratio;
_local1.xmov = (ball_xmov_proj * _local2) - (ball_ymov_proj * _local3);
_local1.ymov = (ball_ymov_proj * _local2) + (ball_xmov_proj * _local3);
_local1.tempx = _local1.x + _local1.xmov;
_local1.tempy = _local1.y + _local1.ymov;
}
function checkBallRampBumpersCollision(ball_obj) {
var _local1 = ball_obj;
var _local2 = 1;
while (_local2 <= 2) {
bumper_obj = this["ramp_bumper" + _local2];
if (((_local1.location == "start_tunnel") || (_local1.location == "main_board")) && (_local1.ymov < 0)) {
var xdist = (bumper_obj.x - _local1.tempx);
var ydist = (bumper_obj.y - _local1.tempy);
var dist = Math.sqrt((xdist * xdist) + (ydist * ydist));
var sum_radius = (bumper_obj.radius + _local1.radius);
var ballAngle = Math.atan(_local1.ymov / _local1.xmov);
var _local3 = (ballAngle * 180) / Math.PI;
if (dist < sum_radius) {
if ((_local1.ymov < 0) && ((((_local2 == 1) && (_local3 > 35)) && (_local3 < 80)) || (((_local2 == 2) && (_local3 > -80)) && (_local3 < -35)))) {
var speed = Math.sqrt((_local1.xmov * _local1.xmov) + (_local1.ymov * _local1.ymov));
_local1.xmov = 0;
_local1.ymov = 0;
_local1.frame_speed = -speed;
_local1.frame_acc = 0.2;
_local1.current_frame = 1;
_local1.play_frame = 1;
_local1.clip._visible = false;
_local1.location = "tunnel" + _local2;
var rand = (random(2) + 1);
sound_ball_ramp_mc.gotoAndPlay("enter" + rand);
addScore(score.ramp);
} else {
sound_ball_light_mc.gotoAndPlay("sound1");
ballRampBumperReaction(_local1, bumper_obj);
}
}
}
_local2++;
}
}
function checkBallLocksCollision(ball_obj) {
var _local2 = ball_obj;
if ((((_local2.location != "lock1") && (_local2.location != "lock2")) && (_local2.location != "lock3")) && (game.frames > (_local2.release_frame + 30))) {
var _local1 = 1;
while (_local1 <= game.locks) {
lock_obj = this["lock" + _local1];
var xdist = (lock_obj.x - _local2.tempx);
var _local3 = lock_obj.y - _local2.tempy;
var dist = Math.sqrt((xdist * xdist) + (_local3 * _local3));
var sum_radius = (lock_obj.radius + _local2.radius);
if (dist < sum_radius) {
_local2.location = "lock" + _local1;
_local2.lock_frame = game.frames;
game.current_action = "lock";
sound_ball_lock_mc.gotoAndPlay("lock in");
addScore(score.lock);
}
_local1++;
}
}
}
function checkBallLightsCollision(ball_obj) {
var _local2 = ball_obj;
var _local1 = 0;
while (_local1 < game.lights) {
light_obj = this["light" + _local1];
if (light_obj.is_on) {
var xdist = (light_obj.x - _local2.tempx);
var _local3 = light_obj.y - _local2.tempy;
var dist = Math.sqrt((xdist * xdist) + (_local3 * _local3));
var sum_radius = (light_obj.radius + _local2.radius);
if (dist < sum_radius) {
light_obj.clip.gotoAndPlay("off");
light_obj.is_on = false;
game.current_action = "light";
ballLightReaction(_local2, light_obj);
var rand = (random(3) + 1);
sound_ball_light_mc.gotoAndPlay("sound" + rand);
addScore(score.light);
}
}
_local1++;
}
}
function ballLightReaction(ball_obj, light_obj) {
var _local1 = ball_obj;
var xdist = (light_obj.x - _local1.tempx);
var ydist = (light_obj.y - _local1.tempy);
var dist = Math.sqrt((xdist * xdist) + (ydist * ydist));
var sum_radius = (light_obj.radius + _local1.radius);
var line_angle = (Math.atan(ydist / xdist) + (Math.PI/2));
var _local3 = Math.cos(line_angle);
var sin_line_angle = Math.sin(line_angle);
var ball_xmov_proj = ((_local1.xmov * _local3) + (_local1.ymov * sin_line_angle));
var _local2 = (_local1.ymov * _local3) - (_local1.xmov * sin_line_angle);
_local2 = -_local2;
if (_local1.speed > 2) {
_local2 = _local2 * light_obj.power;
}
var ball_temp_xmov = ((ball_xmov_proj * _local3) - (_local2 * sin_line_angle));
var ball_temp_ymov = ((_local2 * _local3) + (ball_xmov_proj * sin_line_angle));
var ball_tempx = (_local1.x + ball_temp_xmov);
var ball_tempy = (_local1.y + ball_temp_ymov);
_local1.tempx = ball_tempx;
_local1.tempy = ball_tempy;
_local1.xmov = ball_temp_xmov;
_local1.ymov = ball_temp_ymov;
}
function ballRampBumperReaction(ball_obj, bumper_obj) {
var _local1 = ball_obj;
var xdist = (bumper_obj.x - _local1.tempx);
var ydist = (bumper_obj.y - _local1.tempy);
var dist = Math.sqrt((xdist * xdist) + (ydist * ydist));
var sum_radius = (bumper_obj.radius + _local1.radius);
var line_angle = (Math.atan(ydist / xdist) + (Math.PI/2));
var _local3 = Math.cos(line_angle);
var sin_line_angle = Math.sin(line_angle);
var ball_xmov_proj = ((_local1.xmov * _local3) + (_local1.ymov * sin_line_angle));
var _local2 = (_local1.ymov * _local3) - (_local1.xmov * sin_line_angle);
_local2 = -_local2;
if (_local1.speed > 2) {
_local2 = _local2 * bumper_obj.power;
}
var ball_temp_xmov = ((ball_xmov_proj * _local3) - (_local2 * sin_line_angle));
var ball_temp_ymov = ((_local2 * _local3) + (ball_xmov_proj * sin_line_angle));
var ball_tempx = (_local1.x + ball_temp_xmov);
var ball_tempy = (_local1.y + ball_temp_ymov);
_local1.tempx = ball_tempx;
_local1.tempy = ball_tempy;
_local1.xmov = ball_temp_xmov;
_local1.ymov = ball_temp_ymov;
}
function getTempPosition() {
var _local3 = this;
trace("section 2a" + ball2.location);
var _local2 = 1;
while (_local2 <= game.balls) {
var _local1 = _local3["ball" + _local2];
if (_local1.available && (_local1.location == "main_board")) {
_local1.ymov = _local1.ymov + _local1.yacc;
_local1.speed = Math.sqrt((_local1.xmov * _local1.xmov) + (_local1.ymov * _local1.ymov));
if ((_local1.speed > 8) && (_local1.ymov > 0)) {
_local1.xmov = _local1.xmov * (8 / _local1.speed);
_local1.ymov = _local1.ymov * (8 / _local1.speed);
}
_local1.speed = Math.sqrt((_local1.xmov * _local1.xmov) + (_local1.ymov * _local1.ymov));
_local1.tempx = _local1.tempx + _local1.xmov;
_local1.tempy = _local1.tempy + _local1.ymov;
}
_local2++;
}
trace("section 2b" + ball2.location);
}
function updateBallPosition() {
var _local2 = 1;
while (_local2 <= game.balls) {
var _local1 = this["ball" + _local2];
if (_local1.available) {
if (_local1.location == "main_board") {
_local1.clip._visible = true;
ramp1.clip.ball_mc._visible = false;
ramp2.clip.ball_mc._visible = false;
_local1.x = _local1.tempx;
_local1.y = _local1.tempy;
_local1.clip._x = _local1.x;
_local1.clip._y = _local1.y;
} else if (_local1.location == "start_tunnel") {
_local1.clip._visible = false;
ramp1.clip.ball_mc._visible = false;
ramp2.clip.ball_mc._visible = false;
_local1.frame_speed = _local1.frame_speed + _local1.frame_acc;
_local1.current_frame = _local1.current_frame + _local1.frame_speed;
_local1.play_frame = -Math.round(_local1.current_frame);
if (_local1.play_frame < 1) {
_local1.play_frame = 1;
ballReady();
} else if (_local1.play_frame >= table.clip.ball_start_ramp_mc._totalframes) {
_local1.play_frame = 1;
_local1.tempx = table.start_tunnel_end_x;
_local1.tempy = table.start_tunnel_end_y;
_local1.x = _local1.tempx;
_local1.y = _local1.tempy;
_local1.xmov = _local1.frame_speed / 1.2;
_local1.ymov = 0;
_local1.clip._visible = true;
_local1.location = "main_board";
trace("main main");
}
table.clip.ball_start_ramp_mc.gotoAndStop(_local1.play_frame);
table.clip.ball_start_ramp_mc.visible = false;
} else if (_local1.location == "tunnel1") {
_local1.clip._visible = false;
ramp1.clip.ball_mc._visible = true;
ramp2.clip.ball_mc._visible = false;
_local1.frame_speed = _local1.frame_speed + _local1.frame_acc;
_local1.current_frame = _local1.current_frame + _local1.frame_speed;
_local1.play_frame = -Math.round(_local1.current_frame);
if (_local1.play_frame < 1) {
_local1.play_frame = 1;
_local1.tempx = table.tunnel1_start_x;
_local1.tempy = table.tunnel1_start_y;
_local1.xmov = (_local1.frame_speed * Math.SQRT1_2) / 3;
_local1.ymov = (_local1.frame_speed * 0.707106781186547) / 3;
_local1.x = _local1.tempx;
_local1.y = _local1.tempy;
_local1.clip._x = _local1.x;
_local1.clip._y = _local1.y;
_local1.clip._visible = true;
_local1.location = "main_board";
var _local3 = random(2) + 1;
sound_ball_ramp_mc.gotoAndPlay("exit" + _local3);
} else if (_local1.play_frame >= ramp1.clip._totalframes) {
_local1.play_frame = 1;
_local1.tempx = table.tunnel1_end_x;
_local1.tempy = table.tunnel1_end_y;
_local1.xmov = ((-_local1.frame_speed) * 0.866025403784439) / 3;
_local1.ymov = ((-_local1.frame_speed) * 0.5) / 3;
_local1.x = _local1.tempx;
_local1.y = _local1.tempy;
_local1.clip._x = _local1.x;
_local1.clip._y = _local1.y;
_local1.clip._visible = true;
if ((step_arr[game.step - 1] == "another_ramp") && (game.last_ramp_hit == "right")) {
game.current_action = "another_ramp";
} else {
game.current_action = "ramp";
}
game.last_ramp_hit = "left";
_local1.location = "main_board";
var _local3 = random(2) + 1;
sound_ball_ramp_mc.gotoAndPlay("exit" + _local3);
}
ramp1.clip.gotoAndStop(_local1.play_frame);
} else if (_local1.location == "tunnel2") {
_local1.clip._visible = false;
ramp1.clip.ball_mc._visible = false;
ramp2.clip.ball_mc._visible = true;
_local1.frame_speed = _local1.frame_speed + _local1.frame_acc;
_local1.current_frame = _local1.current_frame + _local1.frame_speed;
_local1.play_frame = -Math.round(_local1.current_frame);
if (_local1.play_frame < 1) {
_local1.play_frame = 1;
_local1.tempx = table.tunnel2_start_x;
_local1.tempy = table.tunnel2_start_y;
_local1.xmov = ((-_local1.frame_speed) * Math.SQRT1_2) / 3;
_local1.ymov = (_local1.frame_speed * 0.707106781186547) / 3;
_local1.x = _local1.tempx;
_local1.y = _local1.tempy;
_local1.clip._x = _local1.x;
_local1.clip._y = _local1.y;
_local1.clip._visible = true;
_local1.location = "main_board";
var _local3 = random(2) + 1;
sound_ball_ramp_mc.gotoAndPlay("exit" + _local3);
} else if (_local1.play_frame >= ramp2.clip._totalframes) {
_local1.play_frame = 1;
_local1.tempx = table.tunnel2_end_x;
_local1.tempy = table.tunnel2_end_y;
_local1.xmov = (_local1.frame_speed * 0.866025403784439) / 3;
_local1.ymov = ((-_local1.frame_speed) * 0.5) / 3;
_local1.x = _local1.tempx;
_local1.y = _local1.tempy;
_local1.clip._x = _local1.x;
_local1.clip._y = _local1.y;
_local1.clip._visible = true;
if ((step_arr[game.step - 1] == "another_ramp") && (game.last_ramp_hit == "left")) {
game.current_action = "another_ramp";
} else {
game.current_action = "ramp";
}
game.last_ramp_hit = "right";
_local1.location = "main_board";
var _local3 = random(2) + 1;
sound_ball_ramp_mc.gotoAndPlay("exit" + _local3);
}
ramp2.clip.gotoAndStop(_local1.play_frame);
} else if (_local1.location == "lock1") {
if (game.frames > (_local1.lock_frame + game.frames_ball_locked)) {
_local1.location = "main_board";
_local1.xmov = (Math.random() * 15) + 5;
_local1.ymov = 10;
_local1.release_frame = game.frames;
sound_ball_lock_mc.gotoAndPlay("lock out");
trace("release");
} else {
_local1.tempx = lock1.x;
_local1.tempy = lock1.y;
_local1.x = _local1.tempx;
_local1.y = _local1.tempy;
_local1.xmov = 0;
_local1.ymov = 0;
}
_local1.clip._x = _local1.x;
_local1.clip._y = _local1.y;
} else if (_local1.location == "lock2") {
if (game.frames > (_local1.lock_frame + game.frames_ball_locked)) {
_local1.location = "main_board";
_local1.xmov = -((Math.random() * 15) + 5);
_local1.ymov = 5;
_local1.release_frame = game.frames;
sound_ball_lock_mc.gotoAndPlay("lock out");
trace("release");
} else {
_local1.tempx = lock2.x;
_local1.tempy = lock2.y;
_local1.x = _local1.tempx;
_local1.y = _local1.tempy;
_local1.xmov = 0;
_local1.ymov = 0;
}
_local1.clip._x = _local1.x;
_local1.clip._y = _local1.y;
} else if (_local1.location == "lock3") {
if (game.frames > (_local1.lock_frame + game.frames_ball_locked)) {
_local1.location = "main_board";
_local1.xmov = (Math.random() * 30) - 30;
_local1.ymov = 5;
_local1.release_frame = game.frames;
trace("release");
} else {
_local1.tempx = lock3.x;
_local1.tempy = lock3.y;
_local1.x = _local1.tempx;
_local1.y = _local1.tempy;
_local1.xmov = 0;
_local1.ymov = 0;
}
_local1.clip._x = _local1.x;
_local1.clip._y = _local1.y;
}
}
_local2++;
}
}
function shakeTable() {
if ((table.status == "normal") && (game.tilt_left >= game.tilt_decrease_speed)) {
if (game.tilt_left < 40) {
sound_tilt_table_mc.gotoAndPlay("tilt caution");
} else {
sound_tilt_table_mc.gotoAndPlay("tilt");
}
game.tilt_left = game.tilt_left - game.tilt_decrease_speed;
table.status = "shake_left";
} else if (game.tilt_left < game.tilt_decrease_speed) {
sound_tilt_table_mc.gotoAndPlay("tilt lose");
frozenTable();
}
}
function updateTable() {
if ((table.status != "normal") && ((game.frames % 2) == 0)) {
if (table.status == "shake_left") {
table.x = table.x - (table.shake_speed * 2);
ball1.tempx = ball1.tempx + (table.shake_speed * 2);
if (table.x < table.shake_min_x) {
table.x = table.shake_min_x;
table.status = "shake_right";
}
}
if (table.status == "shake_right") {
table.x = table.x + (table.shake_speed * 2);
ball1.tempx = ball1.tempx - (table.shake_speed * 2);
if (table.x > table.shake_max_x) {
table.x = table.shake_max_x;
table.status = "shake_back";
}
}
if (table.status == "shake_back") {
table.x = table.x - table.shake_speed;
if (table.x < table.init_x) {
table.x = table.init_x;
table.status = "normal";
}
}
table.clip._x = table.x;
table.clip._y = table.y;
}
}
function frozenTable() {
trace("frozen");
table.status = "frozen";
}
function keyControl() {
if (ball1.location == "ready") {
if (Key.isDown(40) && (!key_down_press)) {
key_down_press = true;
} else if ((!Key.isDown(40)) && (key_down_press)) {
key_down_press = false;
ballStart();
} else if (key_down_press) {
power_meter.power = power_meter.power + power_meter.power_increase_speed;
}
}
if ((ball1.location == "main_board") || (ball1.location == "lock")) {
if (Key.isDown(32) && (table.status == "normal")) {
shakeTable();
}
}
if (Key.isDown(37) && (table.status == "normal")) {
flipper1.status = "up";
if (!flipper1.last_frame_up) {
checkBallLeftFlipperCollision();
sound_flipper_mc.gotoAndPlay("up");
flipper1.clip.gotoAndPlay("up");
}
flipper1.last_frame_up = true;
} else {
flipper1.status = "down";
if (flipper1.last_frame_up || (flipper1.clip._currentframe == 5)) {
flipper1.clip.gotoAndPlay("down");
}
flipper1.last_frame_up = false;
}
if (Key.isDown(39) && (table.status == "normal")) {
flipper2.status = "up";
if (!flipper2.last_frame_up) {
checkBallRightFlipperCollision();
sound_flipper_mc.gotoAndPlay("up");
flipper2.clip.gotoAndPlay("up");
}
flipper2.last_frame_up = true;
} else {
flipper2.status = "down";
if (flipper2.last_frame_up || (flipper2.clip._currentframe == 5)) {
flipper2.clip.gotoAndPlay("down");
}
flipper2.last_frame_up = false;
}
}
function checkBallLeftFlipperCollision() {
var i = 1;
while (i <= game.balls) {
var _local1 = this["ball" + i];
var pos = {};
pos.x = _local1.tempx;
pos.y = _local1.tempy;
table.clip.localToGlobal(pos);
if (flipper1.hit_clip.hitTest(pos.x, pos.y, false)) {
var bx = _local1.tempx;
var by = _local1.tempy;
var fx = flipper1.x;
var fy = flipper1.y;
var xDiff = (bx - fx);
var yDiff = (by - fy);
var dis = Math.sqrt((xDiff * xDiff) + (yDiff * yDiff));
var angle = Math.atan2(yDiff, xDiff);
var ballAngle = Math.atan2(_local1.ymov, _local1.xmov);
var _local3 = (2 * angle) - ballAngle;
var _local2 = (_local3 * 180) / Math.PI;
if (_local2 > -45) {
_local2 = -45;
_local3 = (_local2 * Math.PI) / 180;
} else if (_local2 < -90) {
_local2 = -88 - (Math.random() * 4);
_local3 = (_local2 * Math.PI) / 180;
}
var cosAngle = Math.cos(_local3);
var sinAngle = Math.sin(_local3);
var factor = (dis / leftFlipper.length);
if (factor > 1) {
factor = 1;
}
var speed = (15 * factor);
var xmov = (speed * cosAngle);
var ymov = (speed * sinAngle);
_local1.xmov = xmov;
_local1.ymov = ymov;
_local1.tempx = _local1.x + (_local1.xmov * 2);
_local1.tempy = _local1.y + (_local1.ymov * 2);
flipper1.collision = true;
addScore(score.flipper);
}
i++;
}
}
function checkBallRightFlipperCollision() {
var i = 1;
while (i <= game.balls) {
var _local1 = this["ball" + i];
var pos = {};
pos.x = _local1.tempx;
pos.y = _local1.tempy;
table.clip.localToGlobal(pos);
if (flipper2.hit_clip.hitTest(pos.x, pos.y, false)) {
var bx = _local1.tempx;
var by = _local1.tempy;
var fx = flipper2.x;
var fy = flipper2.y;
var xDiff = (bx - fx);
var yDiff = (by - fy);
var dis = Math.sqrt((xDiff * xDiff) + (yDiff * yDiff));
var angle = Math.atan2(yDiff, xDiff);
var ballAngle = Math.atan2(_local1.ymov, _local1.xmov);
var _local3 = -((2 * (Math.PI + angle)) - ballAngle);
var _local2 = (_local3 * 180) / Math.PI;
if (_local2 > -90) {
_local2 = -88 - (Math.random() * 4);
_local3 = (_local2 * Math.PI) / 180;
} else if (_local2 < -135) {
_local2 = -135;
_local3 = (_local2 * Math.PI) / 180;
}
var cosAngle = Math.cos(_local3);
var sinAngle = Math.sin(_local3);
var factor = (dis / rightFlipper.length);
if (factor > 1) {
factor = 1;
}
var speed = (15 * factor);
var xmov = (speed * cosAngle);
var ymov = (speed * sinAngle);
_local1.xmov = xmov;
_local1.ymov = ymov;
_local1.tempx = _local1.x + (_local1.xmov * 2);
_local1.tempy = _local1.y + (_local1.ymov * 2);
flipper2.collision = true;
addScore(score.flipper);
}
i++;
}
}
function initialVariables() {
game = {};
game.start = false;
game.over = false;
game.frames = 0;
game.bumpers = 64;
game.lights = 11;
game.frames_lock_2_ball = 900;
game.lock_2_ball_start_frame = 0;
game.lock_2_locks = 0;
game.frames_lock_bonus = 1800;
game.lock_bonus_start_frame = 0;
game.lock_bonus_locks = 0;
game.balls_left = 7;
game.balls = 1;
game.locks = 3;
game.current_lines = 0;
game.current_flipper_lines = 0;
game.last_collision_frame = 0;
game.next_flash_frame = -1;
game.score = 0;
game.final_score = 0;
game.level = 1;
game.step = 1;
game.tilt_left = 100;
game.tilt_decrease_speed = 10;
game.tilt_increase_speed = 0.02;
game.last_step_up_frame = 900;
game.current_action = "";
game.last_ramp_hit = "";
game.frames_ball_locked = 60;
depth = {};
depth.action = 0;
depth.line = 100;
table = {};
table.clip = table_mc;
table.shake_speed = 2;
table.x = table.clip._x;
table.y = table.clip._y;
table.init_x = table.x;
table.init_y = table.y;
table.shake_min_x = table.x - 2;
table.shake_min_y = table.y - 2;
table.shake_max_x = table.x + 2;
table.shake_max_y = table.y + 2;
table.start_tunnel_end_x = 133;
table.start_tunnel_end_y = 15;
table.tunnel1_start_x = 29.7;
table.tunnel1_start_y = 212.8;
table.tunnel1_end_x = 120;
table.tunnel1_end_y = 15;
table.tunnel2_start_x = 207;
table.tunnel2_start_y = 212.8;
table.tunnel2_end_x = 140;
table.tunnel2_end_y = 15;
table.status = "normal";
ceiling = {};
ceiling.clip = table.clip.ceiling_mc;
ceiling.x = ceiling.clip._x;
ceiling.y = ceiling.clip._y;
ceiling.radius = 125;
wall = {};
wall.clip = table.clip.wall_mc;
wall.left = 0;
wall.right = 250;
wall.top = 125;
wall.bottom = 450;
ball1 = {};
ball1.clip = table.clip.ball1_mc;
ball1.id = 1;
ball1.xmov = 0;
ball1.ymov = -10;
ball1.yacc = 0.15;
ball1.wall_decay = 0.95;
ball1.radius = ball1.clip._width / 2;
ball1.tempx = ball1.clip._x;
ball1.tempy = ball1.clip._y;
ball1.last_x = ball1.tempx;
ball1.last_y = ball1.tempy;
ball1.x = ball1.tempx;
ball1.y = ball1.tempy;
ball1.same_spot = 0;
ball1.available = true;
ball1.location = "ready";
ball1.lock_frame = 0;
ball1.release_frame = 0;
ball1.last_collision = "";
ball1.speed = 0;
ball1.frame_speed = 0;
ball1.frame_acc = 0.2;
ball1.current_frame = 1;
ball1.play_frame = 1;
ball1.clip._visible = true;
ball2 = {};
ball2.clip = table.clip.ball2_mc;
ball2.id = 2;
ball2.xmov = 0;
ball2.ymov = -10;
ball2.yacc = 0.15;
ball2.wall_decay = 0.95;
ball2.radius = ball2.clip._width / 2;
ball2.tempx = ball2.clip._x;
ball2.tempy = ball2.clip._y;
ball2.last_x = ball1.tempx;
ball2.last_y = ball1.tempy;
ball2.x = ball2.tempx;
ball2.y = ball2.tempy;
ball2.same_spot = 0;
ball2.available = true;
ball2.location = "ready";
ball2.lock_frame = 0;
ball2.release_frame = 0;
ball2.last_collision = "";
ball2.speed = 0;
ball3.frame_speed = 0;
ball3.frame_acc = 0.2;
ball3.current_frame = 1;
ball3.play_frame = 1;
ball3.clip._visible = true;
ball3 = {};
ball3.clip = table.clip.ball3_mc;
ball3.id = 3;
ball3.xmov = 0;
ball3.ymov = -10;
ball3.yacc = 0.15;
ball3.wall_decay = 0.95;
ball3.radius = ball3.clip._width / 2;
ball3.tempx = ball3.clip._x;
ball3.tempy = ball3.clip._y;
ball3.last_x = ball1.tempx;
ball3.last_y = ball1.tempy;
ball3.x = ball3.tempx;
ball3.y = ball3.tempy;
ball3.same_spot = 0;
ball3.available = true;
ball3.location = "ready";
ball3.lock_frame = 0;
ball3.release_frame = 0;
ball3.last_collision = "";
ball3.speed = 0;
ball3.frame_speed = 0;
ball3.frame_acc = 0.2;
ball3.current_frame = 1;
ball3.play_frame = 1;
ball3.clip._visible = true;
ramp1 = {};
ramp1.clip = table.clip.ramp1_mc;
ramp1.clip.stop();
ramp2 = {};
ramp2.clip = table.clip.ramp2_mc;
ramp2.clip.stop();
lock1 = {};
lock1.clip = table.clip.lock1_mc;
lock1.radius = lock1.clip._width / 2;
lock1.x = lock1.clip._x;
lock1.y = lock1.clip._y;
lock1.clip.stop();
lock2 = {};
lock2.clip = table.clip.lock2_mc;
lock2.radius = lock1.clip._width / 2;
lock2.x = lock2.clip._x;
lock2.y = lock2.clip._y;
lock2.clip.stop();
lock3 = {};
lock3.clip = table.clip.lock3_mc;
lock3.radius = lock1.clip._width / 2;
lock3.x = lock3.clip._x;
lock3.y = lock3.clip._y;
lock3.clip.stop();
flipper1 = {};
flipper1.clip = table.clip.flipper1_mc;
flipper1.hit_clip = table.clip.flipper1_hit_mc;
flipper1.x = flipper1.clip._x;
flipper1.y = flipper1.clip._y;
flipper1.collision = false;
flipper1.up_frame = 0;
flipper1.last_frame_up = false;
flipper1.status = "down";
flipper1.clip.stop();
flipper2 = {};
flipper2.clip = table.clip.flipper2_mc;
flipper2.hit_clip = table.clip.flipper2_hit_mc;
flipper2.x = flipper2.clip._x;
flipper2.y = flipper2.clip._y;
flipper2.collision = false;
flipper2.up_frame = 0;
flipper2.last_frame_up = false;
flipper2.status = "down";
flipper2.clip.stop();
score = {};
score.flipper = 0;
score.bumper = 10;
score.lock = 20;
score.ramp = 20;
score.light = 25;
power_meter = {};
power_meter.clip = power_meter_mc;
power_meter.meter_clip = power_meter.clip.meter_mc;
power_meter.power_increase_speed = 5;
power_meter.power = 0;
power_meter.meter_clip._yscale = power_meter.power;
power_meter.clip._visible = false;
push_meter = {};
push_meter.clip = push_meter_mc;
push_meter.meter_clip = push_meter.clip.meter_mc;
push_meter.power = 0;
push_meter.meter_clip._yscale = push_meter.power;
push_meter.clip._visible = false;
dialation_meter = {};
dialation_meter.clip = dialation_meter_mc;
dialation_meter.meter_clip = dialation_meter.clip.meter_mc;
dialation_meter.power = 0;
dialation_meter.meter_clip._yscale = dialation_meter.power;
dialation_meter.clip._visible = false;
contraction_meter = {};
contraction_meter.clip = contraction_meter_mc;
contraction_meter.meter_clip = contraction_meter.clip.meter_mc;
contraction_meter.power = 0;
contraction_meter.meter_clip._yscale = contraction_meter.power;
contraction_meter.clip._visible = false;
press_mc._visible = false;
table.clip.ball_start_ramp_mc.gotoAndStop(1);
icon_mc.gotoAndStop("light");
line_arr = new Array();
last_update_time = 0;
}
function initialButtons() {
quit_btn.onRelease = function () {
gotoAndPlay (341);
};
}
function initialSounds() {
sound = {};
sound.level1_clip = sound_level1_mc;
sound.level2_clip = sound_level2_mc;
sound.level3_clip = sound_level3_mc;
sound.level3_dilation_clip = sound_dilation_mc;
sound.level4_clip = sound_level4_mc;
sound.level4_water_clip = sound_water_break_mc;
sound.level5_clip = sound_level5_mc;
sound.level6_clip = sound_level6_mc;
sound.level1_clip.stop();
sound.level2_clip.stop();
sound.level3_clip.stop();
sound.level4_clip.stop();
sound.level5_clip.stop();
sound.level6_clip.stop();
sound.level3_dilation_clip.stop();
sound.level4_water_clip.stop();
sound_ball_mc.stop();
sound_ball_hits_wall_mc.stop();
sound_ball_ramp_mc.stop();
sound_tilt_table_mc.stop();
sound_ball_lock_mc.stop();
sound_ball_bumper_mc.stop();
sound_flipper_mc.stop();
sound_ball_light_mc.stop();
}
function ballDead() {
game.balls = 1;
ball1.tempx = -100;
ball1.tempy = -100;
ball2.tempx = -120;
ball2.tempy = -100;
ball3.tempx = -140;
ball3.tempy = -100;
ball1.x = ball1.tempx;
ball1.y = ball1.tempy;
ball2.x = ball2.tempx;
ball2.y = ball2.tempy;
ball3.x = ball3.tempx;
ball3.y = ball3.tempy;
ball1.clip._x = ball1.x;
ball1.clip._y = ball1.y;
ball2.clip._x = ball2.x;
ball2.clip._y = ball2.y;
ball3.clip._x = ball3.x;
ball3.clip._y = ball3.y;
game.balls_left--;
if (game.balls_left > 0) {
var _local1 = random(3) + 1;
sound_ball_lose_mc.gotoAndPlay("sound" + _local1);
ballReady();
} else {
game.over = true;
game.final_score = game.score;
gotoAndPlay (592);
}
}
function ballReady() {
var key_down_press = false;
table.status = "normal";
ball1.location = "ready";
game.tilt_left = 100;
ball1.current_frame = 1;
power_meter.power = 0;
showMeter(power_meter);
press_mc._visible = true;
sound_ball_mc.gotoAndPlay("ready for shoot");
table.clip.ball_start_ramp_mc.gotoAndStop(1);
}
function ballStart() {
ball1.location = "start_tunnel";
ball1.frame_speed = (((-power_meter.power) / 20) - (Math.random() / 2)) - 6;
press_mc._visible = false;
sound_ball_mc.gotoAndPlay("shoot");
}
function showMeter(meter_obj) {
power_meter.clip._visible = false;
bumper_meter.clip._visible = false;
dialation_meter.clip._visible = false;
contraction_meter.clip._visible = false;
meter_obj.clip._visible = true;
}
function hideMeter(meter_obj) {
meter_obj.clip._visible = false;
}
function resetMeter(meter_obj) {
meter_obj.power = 0;
meter_obj.meter_clip._yscale = bumper_meter.power;
}
function updateMeter() {
if ((ball1.location == "ready") || (ball1.location == "start_tunnel")) {
showMeter(power_meter);
if (power_meter.power > 100) {
power_meter.power = 100;
power_meter.power_increase_speed = power_meter.power_increase_speed * -1;
} else if (power_meter.power < 0) {
power_meter.power = 0;
power_meter.power_increase_speed = power_meter.power_increase_speed * -1;
}
power_meter.meter_clip._yscale = power_meter.power;
} else if ((game.step >= 1) && (game.step <= 11)) {
showMeter(contraction_meter);
contraction_meter.power = (game.step - 1) * 9.5;
contraction_meter.meter_clip._yscale = contraction_meter.power;
} else if (game.step == 12) {
hideMeter(contraction_meter);
contraction_meter.power = 0;
} else if ((game.step >= 13) && (game.step <= 22)) {
showMeter(contraction_meter);
contraction_meter.power = (game.step - 13) * 10;
contraction_meter.meter_clip._yscale = contraction_meter.power;
} else if ((game.step >= 24) && (game.step <= 33)) {
showMeter(dialation_meter);
dialation_meter.power = (game.step - 24) * 10;
dialation_meter.meter_clip._yscale = dialation_meter.power;
} else if ((game.step >= 43) && (game.step < 52)) {
showMeter(push_meter);
push_meter.power = (game.step - 43) * 10;
push_meter.meter_clip._yscale = push_meter.power;
} else {
hideMeter(power_meter);
hideMeter(contraction_meter);
hideMeter(dialation_meter);
hideMeter(push_meter);
}
}
function flashAllItems() {
flashAllLights();
flashAllBumpers();
}
function flashAllLights() {
var _local2 = this;
var _local1 = 0;
while (_local1 < game.lights) {
light_obj = _local2["light" + _local1];
light_obj.clip.gotoAndPlay("flash");
_local1++;
}
}
function flashAllBumpers() {
var _local2 = this;
var _local1 = 0;
while (_local1 < game.bumpers) {
bumper_obj = _local2["bumper" + _local1];
bumper_obj.clip.gotoAndPlay("flash");
_local1++;
}
}
function updateStats() {
game.tilt_left = game.tilt_left + game.tilt_increase_speed;
if (game.tilt_left > 100) {
game.tilt_left = 100;
}
score_txt.text = game.score;
balls_left_txt.text = game.balls_left - 1;
tilt_txt.text = Math.floor(game.tilt_left);
}
function addScore(score) {
if (step_arr[game.step - 1] == "free") {
var _local1 = 10;
} else {
var _local1 = game.level;
}
game.score = game.score + (score * _local1);
}
function create1ExtraBall() {
ball2.tempx = 200;
ball2.tempy = 50;
ball2.location = "main_board";
sound_bonus_mc.gotoAndPlay("muti ball");
game.balls = 2;
}
function create2ExtraBalls() {
ball2.tempx = 200 + (Math.random() * 5);
ball2.tempy = 50;
ball3.tempx = 100 + (Math.random() * 5);
ball3.tempy = 50;
ball2.location = "main_board";
ball3.location = "main_board";
sound_bonus_mc.gotoAndPlay("muti ball");
game.balls = 3;
}
function playGoodSound() {
if ((((((((sound.level1_clip._currentframe == 1) && (sound.level2_clip._currentframe == 1)) && (sound.level3_clip._currentframe == 1)) && (sound.level4_clip._currentframe == 1)) && (sound.level5_clip._currentframe == 1)) && (sound.level6_clip._currentframe == 1)) && (sound.level3_dilation_clip._currentframe == 1)) && (sound.level4_water_clip._currentframe == 1)) {
if ((sound_good_mc._currentframe == 1) && (Math.random < 0.3)) {
var _local1 = random(14);
sound_good_mc.gotoAndPlay("sound" + _local1);
}
}
}
function playBadSound() {
if ((((((((sound.level1_clip._currentframe == 1) && (sound.level2_clip._currentframe == 1)) && (sound.level3_clip._currentframe == 1)) && (sound.level4_clip._currentframe == 1)) && (sound.level5_clip._currentframe == 1)) && (sound.level6_clip._currentframe == 1)) && (sound.level3_dilation_clip._currentframe == 1)) && (sound.level4_water_clip._currentframe == 1)) {
if (sound_bad_mc._currentframe == 1) {
var _local1 = random(9);
sound_bad_mc.gotoAndPlay("sound" + _local1);
}
}
}
function updatePennis(step) {
var _local1 = step;
if (_local1 == 59) {
resetAllLights();
table.clip.pennis3_mc.gotoAndPlay("stage4");
} else if (_local1 == 58) {
table.clip.pennis3_mc.gotoAndPlay("stage3");
} else if (_local1 == 56) {
table.clip.pennis3_mc.gotoAndPlay("stage2");
} else if (_local1 == 53) {
resetAllLights();
table.clip.pennis2_mc.gotoAndPlay("stage4");
} else if (_local1 == 43) {
table.clip.pennis2_mc.gotoAndPlay("stage3");
} else if (_local1 == 41) {
resetAllLights();
table.clip.pennis2_mc.gotoAndPlay("stage2");
} else if (_local1 == 35) {
resetAllLights();
table.clip.pennis1_mc.gotoAndPlay("stage4");
} else if (_local1 == 22) {
resetAllLights();
table.clip.pennis1_mc.gotoAndPlay("stage3");
} else if (_local1 == 13) {
resetAllLights();
table.clip.pennis1_mc.gotoAndPlay("stage2");
}
}
function checkBallStuck() {
var _local2 = 1;
while (_local2 <= game.balls) {
var _local1 = this["ball" + _local2];
var xdist = (_local1.last_x - _local1.tempx);
var _local3 = _local1.last_y - _local1.tempy;
var dist = Math.sqrt((xdist * xdist) + (_local3 * _local3));
if ((dist < 7) && (_local1.location == "main_board")) {
_local1.same_spot++;
} else {
_local1.last_x = _local1.tempx;
_local1.last_y = _local1.tempy;
_local1.same_spot = 0;
}
if (_local1.same_spot > 90) {
_local1.tempx = 120;
_local1.tempy = 240;
_local1.xmov = 0;
_local1.ymov = 2;
}
_local2++;
}
}
function createActionClipControl() {
createEmptyMovieClip("action_mc", depth.action);
action_mc.onEnterFrame = function () {
if (game.start && (!game.over)) {
keyControl();
getTempPosition();
updateTable();
checkBallCollision();
checkBallStuck();
updateBallPosition();
updateMeter();
updateStep();
updateStats();
traceTest();
game.frames++;
}
};
}
function updateRate() {
frames_last++;
trace((getTimer() + " ") + frames_last);
if (getTimer() > (last_update_time + 3000)) {
rate_txt.text = Math.round(frames_last / 3);
last_update_time = getTimer();
frames_last = 0;
}
}
function traceTest() {
trace(((("ramp 1 " + ramp1.clip.ball_mc) + " ") + " ramp 2 ") + ramp2.clip.ball_mc);
}
initialButtons();
initialVariables();
initialSounds();
initialSteps();
initialBumpers();
initialLights();
initialRampBumpers();
initialIVBumpers();
createLines();
createFlipperLines();
jump_btn.onRelease = function () {
ball1.ymov = ball1.ymov + -5;
};
Frame 434
stop();
sound_opening_mc.gotoAndPlay("play");
createEmptyMovieClip("opening_mc", -999);
opening_mc.onEnterFrame = function () {
if (sound_opening_mc._currentframe >= sound_opening_mc._totalframes) {
game.start = true;
createActionClipControl();
ballReady();
sound.level1_clip.gotoAndPlay("play1");
this.onEnterFrame = undefined;
this.removeMovieClip();
}
};
Frame 508
stopAllSounds();
Frame 516
Frame 517
Frame 558
stop();
back_btn.onRelease = function () {
stopAllSounds();
gotoAndPlay ("4-3");
};
Frame 590
gotoAndPlay (341);
Frame 591
stop();
Frame 592
trace("game final " + game.final_score);
score_txt.text = game.final_score;
_root.SendScore();
Frame 642
stop();
play_again_btn.onRelease = function () {
_root.FlashTracking("Game21_replay");
stopAllSounds();
next_page = "game";
gotoAndPlay ("5-3");
};
score_btn.onRelease = function () {
_root.FlashTracking("Game21_high_scores");
_root.GameHighscores();
};
quit_btn.onRelease = function () {
_root.FlashTracking("Game21_quit");
_root.GameQuit();
};
Frame 674
if (next_page == "game") {
gotoAndPlay (425);
}
Symbol 77 MovieClip [loaderBar] Frame 1
stop();
Symbol 348 MovieClip Frame 1
stop();
Symbol 348 MovieClip Frame 25
stop();
Symbol 419 MovieClip Frame 1
stop();
Symbol 419 MovieClip Frame 11
stop();
Symbol 419 MovieClip Frame 20
stop();
Symbol 419 MovieClip Frame 30
stop();
Symbol 419 MovieClip Frame 40
stop();
Symbol 419 MovieClip Frame 50
stop();
Symbol 419 MovieClip Frame 60
stop();
Symbol 419 MovieClip Frame 70
stop();
Symbol 419 MovieClip Frame 80
stop();
Symbol 442 MovieClip Frame 1
var section = 1;
Symbol 442 MovieClip Frame 25
while (section == 1) {
section = random(5) + 1;
}
gotoAndPlay("baby" + section);
Symbol 442 MovieClip Frame 55
while (section == 2) {
var section = (random(5) + 1);
}
gotoAndPlay("baby" + section);
Symbol 442 MovieClip Frame 114
while (section == 3) {
var section = (random(5) + 1);
}
gotoAndPlay("baby" + section);
Symbol 442 MovieClip Frame 240
while (section == 4) {
var section = (random(5) + 1);
}
gotoAndPlay("baby" + section);
Symbol 442 MovieClip Frame 241
var section = 5;
Symbol 442 MovieClip Frame 325
while (section == 5) {
section = random(5) + 1;
}
gotoAndPlay("baby" + section);
Symbol 466 MovieClip Frame 1
stop();
Symbol 466 MovieClip Frame 11
stop();
Symbol 466 MovieClip Frame 21
stop();
Symbol 466 MovieClip Frame 59
stop();
Symbol 475 MovieClip Frame 1
stop();
Symbol 475 MovieClip Frame 11
stop();
Symbol 475 MovieClip Frame 21
stop();
Symbol 475 MovieClip Frame 59
stop();
Symbol 484 MovieClip Frame 1
stop();
Symbol 484 MovieClip Frame 11
stop();
Symbol 484 MovieClip Frame 21
stop();
Symbol 484 MovieClip Frame 59
stop();
Symbol 511 MovieClip Frame 207
gotoAnnStop(1);
Symbol 538 MovieClip Frame 1
stop();
Symbol 538 MovieClip Frame 14
gotoAndPlay ("normal");
Symbol 538 MovieClip Frame 54
gotoAndStop ("normal");
Symbol 564 MovieClip Frame 1
stop();
Symbol 564 MovieClip Frame 11
stop();
Symbol 564 MovieClip Frame 60
gotoAndPlay ("on");
Symbol 567 MovieClip Frame 1
stop();
Symbol 567 MovieClip Frame 304
gotoAndStop (1);
Symbol 570 MovieClip Frame 4
stop();
Symbol 570 MovieClip Frame 8
stop();
Symbol 630 MovieClip Frame 284
gotoAndStop ("ready");
Symbol 636 MovieClip Frame 233
gotoAndStop ("ready");
Symbol 642 MovieClip Frame 224
gotoAndStop ("ready");
Symbol 649 MovieClip Frame 277
gotoAndStop ("ready");
Symbol 655 MovieClip Frame 172
gotoAndStop (1);
Symbol 655 MovieClip Frame 271
gotoAndStop (1);
Symbol 668 MovieClip Frame 133
gotoAndStop (1);
Symbol 668 MovieClip Frame 155
gotoAndStop (1);
Symbol 668 MovieClip Frame 180
Symbol 668 MovieClip Frame 238
gotoAndStop (1);
Symbol 668 MovieClip Frame 276
gotoAndStop (1);
Symbol 668 MovieClip Frame 317
gotoAndStop (1);
Symbol 668 MovieClip Frame 364
gotoAndStop (1);
Symbol 668 MovieClip Frame 408
gotoAndStop (1);
Symbol 668 MovieClip Frame 463
gotoAndStop (1);
Symbol 673 MovieClip Frame 77
gotoAndStop (1);
Symbol 673 MovieClip Frame 154
Symbol 673 MovieClip Frame 218
gotoAndStop (1);
Symbol 687 MovieClip Frame 81
gotoAndStop (1);
Symbol 687 MovieClip Frame 146
gotoAndStop (1);
Symbol 687 MovieClip Frame 217
gotoAndStop (1);
Symbol 687 MovieClip Frame 281
gotoAndStop (1);
Symbol 687 MovieClip Frame 350
gotoAndStop (1);
Symbol 687 MovieClip Frame 424
gotoAndStop (1);
Symbol 687 MovieClip Frame 493
gotoAndStop (1);
Symbol 687 MovieClip Frame 569
gotoAndStop (1);
Symbol 687 MovieClip Frame 658
gotoAndStop (1);
Symbol 687 MovieClip Frame 739
gotoAndStop (1);
Symbol 687 MovieClip Frame 802
Symbol 687 MovieClip Frame 870
gotoAndStop (1);
Symbol 691 MovieClip Frame 21
gotoAndStop (1);
Symbol 691 MovieClip Frame 29
gotoAndStop (1);
Symbol 697 MovieClip Frame 20
gotoAndStop (1);
Symbol 697 MovieClip Frame 32
gotoAndStop (1);
Symbol 697 MovieClip Frame 51
gotoAndStop (1);
Symbol 697 MovieClip Frame 69
gotoAndStop (1);
Symbol 701 MovieClip Frame 31
gotoAndStop (1);
Symbol 701 MovieClip Frame 49
gotoAndStop (1);
Symbol 706 MovieClip Frame 36
gotoAndStop (1);
Symbol 706 MovieClip Frame 50
gotoAndStop (1);
Symbol 706 MovieClip Frame 90
gotoAndStop (1);
Symbol 711 MovieClip Frame 107
gotoAndStop (1);
Symbol 711 MovieClip Frame 139
gotoAndStop (1);
Symbol 711 MovieClip Frame 306
gotoAndStop (1);
Symbol 715 MovieClip Frame 29
gotoAndStop (1);
Symbol 715 MovieClip Frame 64
gotoAndStop (1);
Symbol 718 MovieClip Frame 37
gotoAndStop (1);
Symbol 723 MovieClip Frame 21
gotoAndStop (1);
Symbol 723 MovieClip Frame 36
gotoAndStop (1);
Symbol 723 MovieClip Frame 47
gotoAndStop (1);
Symbol 726 MovieClip Frame 1
stop();
Symbol 726 MovieClip Frame 119
stop();
Symbol 733 MovieClip Frame 1
stop();
Symbol 733 MovieClip Frame 24
gotoAndPlay (1);
Symbol 733 MovieClip Frame 35
gotoAndPlay (1);
Symbol 733 MovieClip Frame 49
gotoAndPlay (1);
Symbol 733 MovieClip Frame 65
gotoAndPlay (1);
Symbol 733 MovieClip Frame 86
gotoAndPlay (1);
Symbol 738 MovieClip Frame 1
stop();
Symbol 738 MovieClip Frame 24
gotoAndPlay (1);
Symbol 738 MovieClip Frame 46
gotoAndPlay (1);
Symbol 738 MovieClip Frame 80
gotoAndPlay (1);
Symbol 753 MovieClip Frame 1
stop();
Symbol 753 MovieClip Frame 22
gotoAndPlay (1);
Symbol 753 MovieClip Frame 34
gotoAndPlay (1);
Symbol 753 MovieClip Frame 47
gotoAndPlay (1);
Symbol 753 MovieClip Frame 55
gotoAndPlay (1);
Symbol 753 MovieClip Frame 67
gotoAndPlay (1);
Symbol 753 MovieClip Frame 78
gotoAndPlay (1);
Symbol 753 MovieClip Frame 96
gotoAndPlay (1);
Symbol 753 MovieClip Frame 105
gotoAndPlay (1);
Symbol 753 MovieClip Frame 121
gotoAndPlay (1);
Symbol 753 MovieClip Frame 139
gotoAndPlay (1);
Symbol 753 MovieClip Frame 163
gotoAndPlay (1);
Symbol 753 MovieClip Frame 175
gotoAndPlay (1);
Symbol 753 MovieClip Frame 196
gotoAndPlay (1);
Symbol 753 MovieClip Frame 230
gotoAndPlay (1);
Symbol 764 MovieClip Frame 1
stop();
Symbol 764 MovieClip Frame 27
gotoAndPlay (1);
Symbol 764 MovieClip Frame 44
gotoAndPlay (1);
Symbol 764 MovieClip Frame 60
gotoAndPlay (1);
Symbol 764 MovieClip Frame 94
gotoAndPlay (1);
Symbol 764 MovieClip Frame 112
gotoAndPlay (1);
Symbol 764 MovieClip Frame 138
gotoAndPlay (1);
Symbol 764 MovieClip Frame 156
gotoAndPlay (1);
Symbol 764 MovieClip Frame 185
gotoAndPlay (1);
Symbol 764 MovieClip Frame 215
gotoAndPlay (1);