Frame 1
skipsies = 0;
fscommand ("fullscreen", "true");
fscommand ("allowscale", "true");
scoreboard = SharedObject.getLocal("098efg78753e");
parshots = new Array();
parshots[1] = 3;
parshots[2] = 4;
parshots[3] = 4;
parshots[4] = 3;
parshots[5] = 5;
parshots[6] = 3;
parshots[7] = 4;
parshots[8] = 3;
parshots[9] = 5;
parshots[10] = 3;
parshots[11] = 5;
parshots[12] = 4;
parshots[13] = 6;
parshots[14] = 3;
parshots[15] = 3;
parshots[16] = 3;
parshots[17] = 5;
parshots[18] = 4;
parshots[19] = 4;
parshots[20] = 4;
parshots[21] = 3;
parshots[22] = 3;
parshots[23] = 3;
parshots[24] = 3;
parshots[25] = 3;
parshots[26] = 3;
parshots[27] = 3;
parshots[28] = 3;
parshots[29] = 3;
parshots[30] = 2;
parshots[31] = 3;
parshots[32] = 3;
parshots[33] = 3;
parshots[34] = 3;
parshots[35] = 3;
parshots[36] = 3;
parshots[37] = 3;
parshots[38] = 3;
parshots[39] = 3;
parshots[40] = 3;
passwords = new Array();
passwords[1] = "pergy";
passwords[2] = "pisnall";
passwords[3] = "pippiy";
passwords[4] = "milfidge";
passwords[5] = "wastackly";
passwords[6] = "napalopoly";
passwords[7] = "ilkingto";
passwords[8] = "chemnelk";
passwords[9] = "pibwee";
passwords[10] = "buttongs";
passwords[11] = "tillerim";
passwords[12] = "soxnshews";
passwords[13] = "shert";
passwords[14] = "zagmosh";
passwords[15] = "likkywacky";
passwords[16] = "fiathup";
passwords[17] = "gumpish";
passwords[18] = "pubintinky";
passwords[19] = "illevan";
passwords[20] = "wakitup";
passwords[21] = "scorez";
passwords[22] = "phootphall";
passwords[23] = "chugger";
passwords[24] = "wibsam";
passwords[25] = "pippy";
passwords[26] = "phullum";
passwords[27] = "chim-digler";
passwords[28] = "pugminty";
passwords[29] = "umberinty";
passwords[30] = "yiblamtung";
passwords[31] = "queenier";
passwords[32] = "fulpiddler";
passwords[33] = "impit";
passwords[34] = "pugdiddling";
passwords[35] = "miswass";
passwords[36] = "cunyung";
passwords[37] = "lingus";
passwords[38] = "lopside";
passwords[39] = "lingerfickin";
passwords[40] = "uptoon";
level = 1;
maxlevels = 34;
maxtopscores = 10;
levelpack = 1;
default_name = "Not Named";
if (scoreboard.data.written != true) {
scoreboard.data.written = true;
scoreboard.data.game_quality = "MEDIUM";
scoreboard.data.music = 2;
scoreboard.data.audience = 1;
scoreboard.data.fx = 1;
scoreboard.data.myname = default_name;
scoreboard.data.atmospheres = 1;
level = 1;
while (level < (maxlevels + 1)) {
scoreboard.data[(("bestscorepack" + levelpack) + "level") + level] = 50000;
scoreboard.data[(("bestscorenamepack" + levelpack) + "level") + level] = "par";
scoreboard.data[(("bestshotspack" + levelpack) + "level") + level] = parshots[level];
scoreboard.data[(("bestshotsnamepack" + levelpack) + "level") + level] = "par";
scoreboard.data[(("bestfreefallpack" + levelpack) + "level") + level] = 5000;
scoreboard.data[(("bestfreefallnamepack" + levelpack) + "level") + level] = "par";
level++;
}
topscore = 1;
while (topscore < (maxtopscores + 1)) {
scoreboard.data[(("besttopscorepack" + levelpack) + "position") + topscore] = 2000000 * (((-topscore) + maxtopscores) + 1);
scoreboard.data[(("besttopscorenamepack" + levelpack) + "position") + topscore] = "par";
topscore++;
}
}
scoreboard.flush();
game_quality = scoreboard.data.game_quality;
music = scoreboard.data.music;
audience = scoreboard.data.audience;
myname = scoreboard.data.myname;
atmospheres = scoreboard.data.atmospheres;
fx = scoreboard.data.fx;
_quality = game_quality;
music_started = 0;
cheatz = 0;
Frame 5
scoresound = new Sound();
scoresound.attachSound("scoresound");
dnb = new Sound();
dnb.attachSound("dnb");
scoreadd = new Sound();
scoreadd.attachSound("scoreadd");
bounce = new Sound();
bounce.attachSound("bounce");
Frame 6
if (skipsies == 1) {
gotoAndPlay (258);
}
Frame 258
grav_adjust = 1.7;
nobutts = 0;
level = 1;
game_type = 0;
playafter = 0;
normal_friction = 0.996;
rough_friction = 0.9;
rough = 0;
friction = normal_friction;
slope = 0.03;
ball_on = 0;
power = 0.33;
minx = 120;
miny = 120;
maxx = 630;
maxy = 380;
stop_sense = 0.25;
max_speed = 2;
wall_friction = 0.9;
shots = 0;
airtime = 0;
score = 10000000 /* 0x989680 */;
fuel = 0;
tube_rides = 0;
fuel_value = 0;
gem_value = 0;
big_gem_value = 0;
worm_hole_value = 0;
bounce_value = 0;
destruction_value = 0;
tube_value = 0;
freefall_value = 2;
test_hit_power_up = 20;
speedlimit = 3;
oradius = 20;
orotation = 180;
edgefriction = 0.98;
bounce_extra = 1.03;
bounce_extra2 = 2.03;
bounce_extra3 = 0.28;
_root.wall_push_away = 4;
_root.wall_extra_detect = 5;
_root.blwait = 0;
_root.sticky_friction = 0.7;
_root.sticky_min = 0.2;
_root.dontkillme = 1;
_root.fuel_value = 100;
_root.gem_value = 5000;
_root.big_gem_value = 50000;
_root.worm_hole_value = 25000;
_root.bounce_value = 5000;
_root.obounce_value = _root.bounce_value;
_root.destruction_value = 50000;
_root.tube_value = 15000;
_root.freefall_value = 873;
_root.minx = 20;
_root.miny = 20;
_root.maxx = 730;
_root.maxy = 480;
_root.power = 0.33;
_root.level = 1;
_root.max_speed = 10;
_root.speedlimit = 25;
Frame 259
if (shots > 0) {
if (shots < best) {
best = shots;
}
}
level = 1;
_root.crowd_started = 0;
stop();
Frame 260
_root.passtry = "";
Selection.setFocus("passin");
Frame 261
Selection.setFocus("namein");
Frame 262
stop();
Frame 284
function conv_num(inputter) {
inputter = String(int(inputter));
a = length(inputter);
outputter = "";
do {
nexta = a - 3;
t = inputter.substring(a - 3, a);
if (nexta > 0) {
outputter = t.concat(outputter);
outputter = ",".concat(outputter);
a = nexta;
} else {
outputter = t + outputter;
}
} while (nexta > 0);
return(outputter);
}
stop();
this.createTextField("my_txt1", this.getNextHighestDepth(), 200, 120, 350, 330);
my_txt1.multiline = true;
my_txt1.wordWrap = true;
my_txt1.selectable = false;
this.createTextField("my_txt2", this.getNextHighestDepth(), 200, 120, 350, 330);
my_txt2.multiline = true;
my_txt2.wordWrap = true;
my_txt2.selectable = false;
this.createTextField("my_txt3", this.getNextHighestDepth(), 200, 120, 350, 330);
my_txt3.multiline = true;
my_txt3.wordWrap = true;
my_txt3.selectable = false;
this.createTextField("my_txt4", this.getNextHighestDepth(), 100, 120, 550, 330);
my_txt4.multiline = true;
my_txt4.wordWrap = true;
my_txt4.selectable = false;
var my_fmt1 = new TextFormat();
my_fmt1.font = "Arial";
my_fmt1.color = 11430148 /* 0xAE6904 */;
my_fmt1.align = "left";
my_fmt1.size = 18;
my_fmt1.leading = -5;
var my_fmt2 = new TextFormat();
my_fmt2.font = "Arial Bold";
my_fmt2.color = 16172800 /* 0xF6C700 */;
my_fmt2.align = "center";
my_fmt2.size = 18;
my_fmt2.leading = -5;
var my_fmt3 = new TextFormat();
my_fmt3.font = "Arial";
my_fmt3.color = 11430148 /* 0xAE6904 */;
my_fmt3.align = "right";
my_fmt3.size = 18;
my_fmt3.leading = -5;
var my_fmt4 = new TextFormat();
my_fmt4.font = "Arial";
my_fmt4.color = 16777215 /* 0xFFFFFF */;
my_fmt4.align = "center";
my_fmt4.size = 18;
my_fmt4.leading = -5;
my_txt1.text = my_txt1.text + "\r";
my_txt2.text = my_txt2.text + "\r";
my_txt3.text = my_txt3.text + "\r";
my_txt4.text = my_txt4.text + "COMPLETED GAME SCORES\r";
my_txt1.text = my_txt1.text + "\r";
my_txt2.text = my_txt2.text + "\r";
my_txt3.text = my_txt3.text + "\r";
my_txt4.text = my_txt4.text + "\r";
topscore = 1;
while (topscore < (maxtopscores + 1)) {
thisscore = scoreboard.data[(("besttopscorepack" + levelpack) + "position") + topscore];
thisscorename = scoreboard.data[(("besttopscorenamepack" + levelpack) + "position") + topscore];
thisscore = conv_num(thisscore);
if (topscore == 1) {
topscorestring = "1st";
} else if (topscore == 2) {
topscorestring = "2nd";
} else if (topscore == 3) {
topscorestring = "3rd";
} else {
topscorestring = topscore + "th";
}
my_txt1.text = my_txt1.text + (topscorestring + "\r");
my_txt2.text = my_txt2.text + (thisscorename + "\r");
my_txt3.text = my_txt3.text + (thisscore + "\r");
my_txt4.text = my_txt4.text + "\r";
topscore++;
}
my_txt1.text = my_txt1.text + "\r\r";
my_txt2.text = my_txt2.text + "\r\r";
my_txt3.text = my_txt3.text + "\r\r";
my_txt4.text = my_txt4.text + "\r\r";
my_txt1.text = my_txt1.text + "\r";
my_txt2.text = my_txt2.text + "\r";
my_txt3.text = my_txt3.text + "\r";
my_txt4.text = my_txt4.text + "INDIVIDUAL HOLE BEST SCORES\r";
my_txt1.text = my_txt1.text + "\r";
my_txt2.text = my_txt2.text + "\r";
my_txt3.text = my_txt3.text + "\r";
my_txt4.text = my_txt4.text + "\r";
var level = 1;
while (level < (maxlevels + 1)) {
bestscore = scoreboard.data[(("bestscorepack" + levelpack) + "level") + level];
bestscorename = scoreboard.data[(("bestscorenamepack" + levelpack) + "level") + level];
bestscore = conv_num(bestscore);
my_txt1.text = my_txt1.text + (("Hole " + level) + "\r");
my_txt2.text = my_txt2.text + (bestscorename + "\r");
my_txt3.text = my_txt3.text + (bestscore + "\r");
my_txt4.text = my_txt4.text + "\r";
level++;
}
my_txt1.text = my_txt1.text + "\r\r";
my_txt2.text = my_txt2.text + "\r\r";
my_txt3.text = my_txt3.text + "\r\r";
my_txt4.text = my_txt4.text + "\r\r";
my_txt1.text = my_txt1.text + "\r";
my_txt2.text = my_txt2.text + "\r";
my_txt3.text = my_txt3.text + "\r";
my_txt4.text = my_txt4.text + "INDIVIDUAL HOLE BEST SHOTS\r";
my_txt1.text = my_txt1.text + "\r";
my_txt2.text = my_txt2.text + "\r";
my_txt3.text = my_txt3.text + "\r";
my_txt4.text = my_txt4.text + "\r";
var level = 1;
while (level < (maxlevels + 1)) {
bestshots = scoreboard.data[(("bestshotspack" + levelpack) + "level") + level];
bestshotsname = scoreboard.data[(("bestshotsnamepack" + levelpack) + "level") + level];
my_txt1.text = my_txt1.text + (("Hole " + level) + "\r");
my_txt2.text = my_txt2.text + (bestshotsname + "\r");
my_txt3.text = my_txt3.text + (bestshots + "\r");
my_txt4.text = my_txt4.text + "\r";
level++;
}
my_txt1.text = my_txt1.text + "\r\r";
my_txt2.text = my_txt2.text + "\r\r";
my_txt3.text = my_txt3.text + "\r\r";
my_txt4.text = my_txt4.text + "\r\r";
my_txt1.text = my_txt1.text + "\r";
my_txt2.text = my_txt2.text + "\r";
my_txt3.text = my_txt3.text + "\r";
my_txt4.text = my_txt4.text + "INDIVIDUAL HOLE BEST FREEFALL\r";
my_txt1.text = my_txt1.text + "\r";
my_txt2.text = my_txt2.text + "\r";
my_txt3.text = my_txt3.text + "\r";
my_txt4.text = my_txt4.text + "\r";
var level = 1;
while (level < (maxlevels + 1)) {
bestfreefall = scoreboard.data[(("bestfreefallpack" + levelpack) + "level") + level];
bestfreefallname = scoreboard.data[(("bestfreefallnamepack" + levelpack) + "level") + level];
bestscore = conv_num(bestscore);
bestfreefall = conv_num(bestfreefall);
my_txt1.text = my_txt1.text + (("Hole " + level) + "\r");
my_txt2.text = my_txt2.text + (bestfreefallname + "\r");
my_txt3.text = my_txt3.text + (bestfreefall + "\r");
my_txt4.text = my_txt4.text + "\r";
level++;
}
my_txt1.setTextFormat(my_fmt1);
my_txt2.setTextFormat(my_fmt2);
my_txt3.setTextFormat(my_fmt3);
my_txt4.setTextFormat(my_fmt4);
level = 1;
scrollup = 0;
scrolldown = 0;
play();
Frame 285
if ((scrollup == 1) or Key.isDown(38)) {
my_txt1.scroll--;
my_txt2.scroll--;
my_txt3.scroll--;
my_txt4.scroll--;
scroll_txt.text = (my_txt.scroll + " of ") + my_txt.maxscroll;
}
if ((scrolldown == 1) or Key.isDown(40)) {
my_txt1.scroll++;
my_txt2.scroll++;
my_txt3.scroll++;
my_txt4.scroll++;
scroll_txt.text = (my_txt.scroll + " of ") + my_txt.maxscroll;
}
Frame 286
prevFrame();
play();
Frame 287
_root.fireworks_blow = 0;
if (skipsies == 1) {
gotoAndPlay (417);
}
Frame 328
_root.fireworks_blow = 1;
Frame 330
sound.gotoAndPlay("Intro_Cheer");
Frame 417
nobutts = 0;
_root.start_calc = 0;
Frame 418
par = parshots[level];
bestscore = scoreboard.data[(("bestscorepack" + levelpack) + "level") + level];
bestscorename = scoreboard.data[(("bestscorenamepack" + levelpack) + "level") + level];
bestshots = scoreboard.data[(("bestshotspack" + levelpack) + "level") + level];
bestshotsname = scoreboard.data[(("bestshotsnamepack" + levelpack) + "level") + level];
bestfreefall = scoreboard.data[(("bestfreefallpack" + levelpack) + "level") + level];
bestfreefallname = scoreboard.data[(("bestfreefallnamepack" + levelpack) + "level") + level];
mewaiting = 0;
bsc = bestscore;
bff = bestfreefall;
disp2 = String(int(bestscore));
a = length(disp2);
disp3 = "";
do {
nexta = a - 3;
t = disp2.substring(a - 3, a);
if (nexta > 0) {
disp3 = t.concat(disp3);
disp3 = ",".concat(disp3);
a = nexta;
} else {
disp3 = t + disp3;
}
} while (nexta > 0);
bestscore = disp3;
disp2 = String(int(bestfreefall));
a = length(disp2);
disp3 = "";
do {
nexta = a - 3;
t = disp2.substring(a - 3, a);
if (nexta > 0) {
disp3 = t.concat(disp3);
disp3 = ",".concat(disp3);
a = nexta;
} else {
disp3 = t + disp3;
}
} while (nexta > 0);
bestfreefall = disp3;
start_x1 = 10000;
start_y1 = 10000;
start_x2 = 10000;
start_y2 = 10000;
start_x3 = 10000;
start_y3 = 10000;
start_x4 = 10000;
start_y4 = 10000;
toggle_reset = 1;
toggle1 = 0;
toggle2 = 0;
toggle3 = 0;
toggle4 = 0;
start_points = 0;
_root.worm_holes = 0;
_root.worm_hole_bonus = 0;
_root.objects_destroyed = 0;
_root.planet_immune = 0;
_root.times = 1;
_root.limitz = 0;
_root.down = 0;
_root.up = 0;
_root.left = 0;
_root.right = 0;
_root.space = 0;
_root.bonuses = 0;
_root.show_starts = 1;
_root.hit_power_up1 = 0;
_root.hit_power_up2 = 0;
_root.hit_power_up3 = 0;
_root.hit_power_up4 = 0;
lower_levels.gotoAndStop(level);
upper_levels.gotoAndStop(level);
if (_root.just_reset > 0) {
shots = _root.just_reset;
_root.just_reset = 0;
} else {
shots = 0;
}
leveltxt = ((("" + level) + " (") + maxlevels) + ")";
airtime = 0;
gems = 0;
big_gems = 0;
fuel = 0;
no_of_mines = 0;
_root.flip = 1;
choosing = 1;
oradius = 50;
orotation = 180;
_root.start_calc = 0;
_root.nobutts = 2;
stop();
Frame 419
toggle_reset = 1;
timesup = 0;
hit_planet = 0;
airtime = 0;
bounces = 0;
tube_rides = 0;
worm_hole_bonus = 0;
x = -10000;
_root.start_calc = 0;
show_starts = 1;
gates = 0;
startDrag ("_root.position", true);
choosing = 1;
_root.nobutts = 2;
stop();
Frame 420
_root.start_calc = 0;
toggle_reset = 1;
x = -10000;
show_starts = 1;
shots = shots + 1;
stop();
stopDrag();
startDrag ("_root.reverse_target", true);
choosing = 0;
_root.nobutts = 0;
predict._x = real_ball._x;
predict._y = real_ball._y;
Frame 421
_root.start_calc = 1;
toggle_reset = 0;
stop();
ball_on = 1;
show_starts = 0;
_root.nobutts = 0;
Frame 422
oairtime = airtime;
airtime = 0;
mewaiting = 1;
Frame 442
if (nobutts != 0) {
mewaiting = 1;
prevFrame();
play();
} else {
mewaiting = 0;
if (_root.game_type == 1) {
_root.hit_planet = 0;
_root.x = _root.ox - (_root.x - _root.ox);
_root.y = _root.oy - (_root.y - _root.oy);
_root.real_x = _root.x;
_root.real_y = _root.y;
_root.real_ball._x = _root.x;
_root.real_ball._y = _root.y;
_root.gotoAndPlay("swing");
_root.real_ball.gotoAndPlay(1);
} else {
_root.gotoAndPlay("place");
}
}
Frame 483
if (nobutts == 0) {
airtime = 0;
Mouse.show();
nobutts = 2;
mewaiting = 0;
} else {
mewaiting = 1;
prevFrame();
play();
}
Frame 495
stop();
Frame 510
_root.nobutts = 0;
_root.gotoAndPlay("place");
Frame 545
shots = shots + 1;
gotoAndPlay ("place");
Frame 547
if (nobutts != 0) {
mewaiting = 1;
prevFrame();
play();
} else {
mewaiting = 0;
}
Frame 549
Mouse.show();
newscore = score + int(airtime);
if (_root.audience == 1) {
_root.cheer_weight = 15;
atb = _root.airtime / 20000;
_root.cheer_weight = _root.cheer_weight - atb;
if (_root.shots == 1) {
_root.cheer_weight = _root.cheer_weight - 12;
}
if (_root.shots == 2) {
_root.cheer_weight = _root.cheer_weight - 8;
}
if ((_root.shots > 2) and (_root.shots < 5)) {
_root.cheer_weight = _root.cheer_weight - 6;
}
if ((_root.shots > 4) and (_root.shots < 8)) {
_root.cheer_weight = _root.cheer_weight - 4;
}
if ((_root.shots > 7) and (_root.shots < 12)) {
_root.cheer_weight = _root.cheer_weight - 2;
}
whb = _root.worm_hole_bonus / 2;
bb = _root.bounces / 4;
tb = _root.tube_rides / 2;
odb = _root.objects_destroyed / 2;
_root.cheer_weight = _root.cheer_weight - whb;
_root.cheer_weight = _root.cheer_weight - bb;
_root.cheer_weight = _root.cheer_weight - tb;
_root.cheer_weight = _root.cheer_weight - odb;
if (_root.cheer_weight < 1.1) {
sound.gotoAndPlay("cheer1");
} else if ((_root.cheer_weight > 1.09999) and (_root.cheer_weight < 2.00001)) {
sound.gotoAndPlay("cheer2");
} else if ((_root.cheer_weight > 2) and (_root.cheer_weight < 5)) {
sound.gotoAndPlay("cheer3");
} else if ((_root.cheer_weight > 4) and (_root.cheer_weight < 8)) {
sound.gotoAndPlay("cheer4");
} else if ((_root.cheer_weight > 7) and (_root.cheer_weight < 12)) {
sound.gotoAndPlay("cheer5");
} else {
sound.gotoAndPlay("cheer6");
}
}
_root.nobutts = 2;
Frame 568
stop();
Frame 569
Mouse.show();
gotoAndPlay (658);
Frame 576
gotoAndPlay (258);
Frame 577
gotoAndPlay (282);
Frame 583
gotoAndPlay (262);
Frame 658
scorez = 0;
pos = 0;
if ((_root.complete_game != 1) or (_root.cheatz == 1)) {
} else {
topscore = maxtopscores;
while (topscore > 0) {
thistopscore = scoreboard.data[(("besttopscorepack" + levelpack) + "position") + topscore];
if (score > Number(thistopscore)) {
pos = topscore;
}
topscore--;
}
if (pos != 0) {
n = maxtopscores;
while (n > pos) {
nn = n - 1;
scoreboard.data[(("besttopscorepack" + levelpack) + "position") + n] = scoreboard.data[(("besttopscorepack" + levelpack) + "position") + nn];
scoreboard.data[(("besttopscorenamepack" + levelpack) + "position") + n] = scoreboard.data[(("besttopscorenamepack" + levelpack) + "position") + nn];
n--;
}
scoreboard.data[(("besttopscorepack" + levelpack) + "position") + n] = score;
scoreboard.data[(("besttopscorenamepack" + levelpack) + "position") + n] = myname;
}
}
showcrapscore = 1;
Frame 755
stop();
Frame 756
showcrapscore = 0;
if ((_root.complete_game != 1) or (_root.cheatz == 1)) {
gotoAndPlay ("noqualify");
} else if (pos != 0) {
gotoAndPlay ("congrats");
} else {
gotoAndPlay ("sorry");
}
Frame 760
prevFrame();
play();
Frame 761
score_report = (pos + " - ") + score;
stop();
Frame 767
stop();
Frame 776
ab20_09 = new LoadVars();
ab20_09.z = _root.myname;
ab20_09.x = ab20.encodeNum(_root.score);
ab20_09.c = 237;
ab20_09.v = "1bc60bcdf112703a1b854c14327c301d";
ab20_09.sendAndLoad("http://armorbot.com/s_b", ab20_09, "POST");
Frame 836
stop();
Symbol 5 Button
on (release) {
getURL ("http://www.armorgames.com", "blank");
}
Symbol 9 Button
on (release) {
getURL ("http://www.armegalo.com", "blank");
}
Symbol 941 MovieClip [__Packages.ab20] Frame 0
class ab20
{
function ab20 () {
}
static function fr(str, find, replace, limit) {
var _local2 = str;
var _local3;
var _local4;
var _local9;
if (!(typeof(find) === "string")) {
if (replace === undefined) {
replace = [""];
} else if (typeof(replace) === "string") {
replace = [replace];
}
} else {
find = [find];
replace = [replace];
}
_local9 = find.length;
var _local1 = 0;
var _local5 = 0;
while (_local1 < _local9) {
while (_local4 = _local2.indexOf(find[_local1]) , !(_local4 === -1)) {
if ((!(limit === undefined)) && (_local5 >= limit)) {
break;
}
_local3 = new Array(_local2.substring(0, _local4), _local2.substr(_local4, find[_local1].length), _local2.substr(_local4 + find[_local1].length));
_local3[1] = ((replace[_local1] === undefined) ? "" : (replace[_local1]));
_local2 = (_local3[0] + _local3[1]) + _local3[2];
_local5++;
}
_local1++;
_local5 = 0;
}
return(_local2);
}
static function encodeNum(num) {
var _local11 = getTimer();
var _local6 = ["aZ", "Zy", "Zx"];
var _local7 = ["zH", "jY", "uH"];
var _local4 = ["Ah", "Xh", "hO"];
var _local5 = ["Ub", "Bu", "Cb"];
var _local8 = ["Qc", "Pc", "Pe"];
var _local9 = ["Ei", "Ie", "Ef"];
var _local3 = ["Fk", "kG", "Kg"];
var _local13 = ["Jl", "Lm", "Mn"];
var _local12 = ["No", "Np", "Qp"];
var _local2 = ["Rs", "St", "Sw"];
var _local14 = random(3);
num = String(num);
num = fr(num, "9", _local6[random(3)], 1);
num = fr(num, "9", _local6[random(3)], 1);
num = fr(num, "9", _local6[random(3)], 1);
num = fr(num, "9", _local6[random(3)], 1);
num = fr(num, "9", _local6[random(3)], 1);
num = fr(num, "9", _local6[random(3)], 1);
num = fr(num, "8", _local7[random(3)], 1);
num = fr(num, "8", _local7[random(3)], 1);
num = fr(num, "8", _local7[random(3)], 1);
num = fr(num, "8", _local7[random(3)], 1);
num = fr(num, "8", _local7[random(3)], 1);
num = fr(num, "7", _local4[random(3)], 1);
num = fr(num, "7", _local4[random(3)], 1);
num = fr(num, "7", _local4[random(3)], 1);
num = fr(num, "7", _local4[random(3)], 1);
num = fr(num, "7", _local4[random(3)], 1);
num = fr(num, "7", _local4[random(3)], 1);
num = fr(num, "7", _local4[random(3)], 1);
num = fr(num, "7", _local4[random(3)], 1);
num = fr(num, "6", _local5[random(3)], 1);
num = fr(num, "6", _local5[random(3)], 1);
num = fr(num, "6", _local5[random(3)], 1);
num = fr(num, "6", _local5[random(3)], 1);
num = fr(num, "6", _local5[random(3)], 1);
num = fr(num, "6", _local5[random(3)], 1);
if (_local14 == 1) {
num = fr(num, "5", _local8[0]);
} else {
num = fr(num, "5", _local8[random(3)]);
}
num = fr(num, "4", _local9[random(3)]);
num = fr(num, "3", _local3[random(3)], 1);
num = fr(num, "3", _local3[random(3)], 1);
num = fr(num, "3", _local3[random(3)], 1);
num = fr(num, "3", _local3[random(3)], 1);
num = fr(num, "3", _local3[random(3)], 1);
num = fr(num, "3", _local3[random(3)], 1);
num = fr(num, "3", _local3[random(3)], 1);
num = fr(num, "3", _local3[random(3)], 1);
num = fr(num, "2", _local13[random(3)]);
num = fr(num, "1", _local12[random(3)]);
num = fr(num, "0", _local2[random(3)], 1);
num = fr(num, "0", _local2[random(3)], 1);
num = fr(num, "0", _local2[random(3)], 1);
num = fr(num, "0", _local2[random(3)], 1);
num = fr(num, "0", _local2[random(3)], 1);
num = fr(num, "0", _local2[random(3)], 1);
num = fr(num, "0", _local2[random(3)], 1);
num = fr(num, "0", _local2[random(3)], 1);
num = fr(num, "0", _local2[random(3)], 1);
var _local10 = getTimer() - _local11;
num = (num + "Dd") + _local10;
return(num);
}
static function encodeStr8bytes(str) {
var _local1 = 0;
var _local4 = str.length;
var _local3 = "%";
var _local2 = ["%", "$", "#", "@"];
while (_local1 < _local4) {
_local3 = _local3 + (str.charCodeAt(_local1) + _local2[random(_local2.length)]);
_local1++;
}
return(_local3);
}
static function decodeStr8bytes(str) {
str = ("PIE" + str) + "PIE";
str = fr(str, "%", "D");
str = fr(str, "$", "D");
str = fr(str, "#", "D");
str = fr(str, "@", "D");
str = fr(str, "PIED", "");
str = fr(str, "DPIE", "");
var _local3 = str.split("D");
var _local4 = "";
var _local1 = 0;
var _local5 = _local3.length;
while (_local1 < _local5) {
_local4 = _local4 + String(String.fromCharCode(_local3[_local1]));
_local1++;
}
return(_local4);
}
static function decodeNum(str) {
var _local2 = ["aZ", "Zy", "Zx", "zH", "jY", "uH", "Ah", "Xh", "hO", "Ub", "Bu", "Cb", "Qc", "Pc", "Pe", "Ei", "Ie", "Ef", "Fk", "kG", "Kg", "Jl", "Lm", "Mn", "No", "Np", "Qp", "Rs", "St", "Sw"];
str = String(str);
str = str.split("Dd");
str = str[0];
str = fr(str, _local2[0], "9");
str = fr(str, _local2[1], "9");
str = fr(str, _local2[2], "9");
str = fr(str, _local2[3], "8");
str = fr(str, _local2[4], "8");
str = fr(str, _local2[5], "8");
str = fr(str, _local2[6], "7");
str = fr(str, _local2[7], "7");
str = fr(str, _local2[8], "7");
str = fr(str, _local2[9], "6");
str = fr(str, _local2[10], "6");
str = fr(str, _local2[11], "6");
str = fr(str, _local2[12], "5");
str = fr(str, _local2[13], "5");
str = fr(str, _local2[14], "5");
str = fr(str, _local2[15], "4");
str = fr(str, _local2[16], "4");
str = fr(str, _local2[17], "4");
str = fr(str, _local2[18], "3");
str = fr(str, _local2[19], "3");
str = fr(str, _local2[20], "3");
str = fr(str, _local2[21], "2");
str = fr(str, _local2[22], "2");
str = fr(str, _local2[23], "2");
str = fr(str, _local2[24], "1");
str = fr(str, _local2[25], "1");
str = fr(str, _local2[26], "1");
str = fr(str, _local2[27], "0");
str = fr(str, _local2[28], "0");
str = fr(str, _local2[29], "0");
var _local3 = Number(str);
return(_local3);
}
}
Symbol 18 Button
on (release) {
getURL ("http://www.armorgames.com", "_blank");
}
Symbol 22 MovieClip Frame 1
gotoAndPlay(_parent._parent.thisis);
Symbol 22 MovieClip Frame 52
gotoAndPlay (2);
Symbol 23 MovieClip Frame 2
if (_parent._parent.loadered > 6) {
if (random(40) == 1) {
gotoAndPlay (3);
} else if (random(40) == 1) {
gotoAndPlay (18);
} else {
prevFrame();
play();
}
} else {
prevFrame();
play();
}
Symbol 23 MovieClip Frame 16
gotoAndPlay (1);
Symbol 23 MovieClip Frame 32
gotoAndPlay (1);
Symbol 27 MovieClip Frame 1
gotoAndPlay(random(40) + 1);
Symbol 27 MovieClip Frame 94
stop();
Symbol 28 MovieClip Frame 1
_parent.loadbits = _parent.loadbits + 1;
thisis = _parent.loadbits;
xs = random(20) - 10;
ys = random(20) - 10;
rs = random(10) - 5;
oxs = xs;
oys = ys;
ors = rs;
saccel = 0.1;
friction = 0.98;
minx = 0;
miny = 0;
maxx = 750;
maxy = 500;
taccel = 1.1;
gravity = 0.4;
Symbol 28 MovieClip Frame 2
if (this._x < minx) {
xs = -xs;
this._x = minx;
}
if (this._x > maxx) {
xs = -xs;
this._x = maxx;
}
if (this._y < miny) {
ys = -ys;
this._y = miny;
}
if (this._y > maxy) {
ys = -ys;
this._y = maxy;
}
if ((_parent.loadered > 80) and (random(10) == 1)) {
scale = random(200) + 100;
this._xscale = scale;
this._yscale = scale;
}
if (_parent.loadered > 10) {
this._x = this._x + (xs * _parent.taccel);
this._y = this._y + (ys * _parent.taccel);
if (_parent.roter == 1) {
this._rotation = this._rotation + (rs * _parent.taccel);
} else if (((_parent.roter == 0) and (_parent.speed == _parent.slow_speed)) and (_parent.loadered > 30)) {
this._rotation = this._rotation + ((rs * _parent.taccel) * 20);
}
}
if (_parent.reverse == 1) {
ys = -ys;
xs = -xs;
rs = -rs;
}
if (_parent.loadered > 99.999) {
gotoAndPlay (4);
}
Symbol 28 MovieClip Frame 3
prevFrame();
play();
Symbol 28 MovieClip Frame 4
ys = ys + gravity;
this._x = this._x + xs;
this._y = this._y + ys;
this._rotation = this._rotation + (rs * 2);
Symbol 28 MovieClip Frame 5
prevFrame();
play();
Symbol 31 MovieClip Frame 1
_root.stop();
PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (PercentLoaded != 100) {
bar._xscale = PercentLoaded;
_parent.loadered = PercentLoaded;
} else {
bar._xscale = PercentLoaded;
_parent.loadered = PercentLoaded;
_root.gotoAndPlay(3);
gotoAndStop (3);
}
Symbol 31 MovieClip Frame 2
gotoAndPlay (1);
Symbol 32 MovieClip Frame 3
loadbits = 0;
fast_speed = 2.3;
slow_speed = 0.35;
super_slow_speed = 0.02;
speed = 0;
speed_change_to = 0;
speed_change_speed = 0.001;
loadered = 0;
roter = 1;
taccel = 0;
Symbol 32 MovieClip Frame 4
reverse = 0;
if ((loadered < 50) and (random(50) == 1)) {
reverse = 1;
} else if ((loadered > 70) and (random(200) == 1)) {
reverse = 1;
}
if ((loadered > 30) and (loadered < 40)) {
speed_change_to = super_slow_speed;
} else if (((loadered > 40) and (loadered < 60)) and (random(10) == 1)) {
speed_change_to = slow_speed;
} else if ((loadered > 60) and (random(5) == 1)) {
if (random(2) == 1) {
speed = slow_speed;
} else {
speed = fast_speed;
}
}
if (speed < speed_change_to) {
speed = speed + speed_change_speed;
}
if (speed > speed_change_to) {
speed = speed - speed_change_speed;
}
taccel = speed;
if (random(5) == 1) {
roter = random(2);
}
Symbol 32 MovieClip Frame 5
prevFrame();
play();
Symbol 51 MovieClip Frame 1
gotoAndPlay(random(20) + 1);
Symbol 51 MovieClip Frame 2
gotoAndPlay(random(20) + 1);
Symbol 51 MovieClip Frame 3
gotoAndPlay(random(20) + 1);
Symbol 51 MovieClip Frame 4
gotoAndPlay(random(20) + 1);
Symbol 51 MovieClip Frame 5
gotoAndPlay(random(20) + 1);
Symbol 51 MovieClip Frame 6
gotoAndPlay(random(20) + 1);
Symbol 51 MovieClip Frame 7
gotoAndPlay(random(20) + 1);
Symbol 51 MovieClip Frame 8
gotoAndPlay(random(20) + 1);
Symbol 51 MovieClip Frame 9
gotoAndPlay(random(20) + 1);
Symbol 51 MovieClip Frame 10
gotoAndPlay(random(20) + 1);
Symbol 51 MovieClip Frame 11
gotoAndPlay(random(20) + 1);
Symbol 51 MovieClip Frame 12
gotoAndPlay(random(20) + 1);
Symbol 51 MovieClip Frame 13
gotoAndPlay(random(20) + 1);
Symbol 51 MovieClip Frame 14
gotoAndPlay(random(20) + 1);
Symbol 51 MovieClip Frame 15
gotoAndPlay(random(20) + 1);
Symbol 51 MovieClip Frame 16
gotoAndPlay(random(20) + 1);
Symbol 51 MovieClip Frame 17
gotoAndPlay(random(20) + 1);
Symbol 51 MovieClip Frame 18
gotoAndPlay(random(20) + 1);
Symbol 51 MovieClip Frame 19
gotoAndPlay(random(20) + 1);
Symbol 51 MovieClip Frame 20
gotoAndPlay(random(20) + 1);
Symbol 51 MovieClip Frame 21
gotoAndPlay(random(20) + 1);
Symbol 51 MovieClip Frame 22
gotoAndPlay(random(20) + 1);
Symbol 51 MovieClip Frame 23
gotoAndPlay(random(20) + 1);
Symbol 51 MovieClip Frame 24
gotoAndPlay(random(20) + 1);
Symbol 55 MovieClip Frame 1
x = this._x;
y = this._y;
Symbol 55 MovieClip Frame 2
this._x = (x + random(10)) - 5;
this._y = (y + random(10)) - 5;
if (_parent.mose == 1) {
this._xscale = random(5) + 97.5;
this._yscale = random(5) + 97.5;
} else {
this._xscale = random(20) + 90;
this._yscale = random(20) + 90;
}
a = random(4);
if (a == 0) {
gotoAndPlay (4);
} else if (a == 1) {
gotoAndPlay (6);
} else if (a == 2) {
gotoAndPlay (8);
}
Symbol 55 MovieClip Frame 3
this._xscale = this._xscale - (this._xscale / 100);
this._yscale = this._yscale - (this._yscale / 100);
if (random(_parent.qwik) == 1) {
gotoAndPlay (2);
}
Symbol 55 MovieClip Frame 4
prevFrame();
play();
Symbol 55 MovieClip Frame 5
this._xscale = this._xscale - (this._xscale / 100);
this._yscale = this._yscale + (this._yscale / 100);
if (random(_parent.qwik) == 1) {
gotoAndPlay (2);
}
Symbol 55 MovieClip Frame 6
prevFrame();
play();
Symbol 55 MovieClip Frame 7
this._xscale = this._xscale + (this._xscale / 100);
this._yscale = this._yscale + (this._yscale / 100);
if (random(_parent.qwik) == 1) {
gotoAndPlay (2);
}
Symbol 55 MovieClip Frame 8
prevFrame();
play();
Symbol 55 MovieClip Frame 9
this._xscale = this._xscale + (this._xscale / 100);
this._yscale = this._yscale - (this._yscale / 100);
if (random(_parent.qwik) == 1) {
gotoAndPlay (2);
}
Symbol 55 MovieClip Frame 10
prevFrame();
play();
Symbol 60 MovieClip Frame 35
stop();
Symbol 61 MovieClip Frame 2
if (random(5) == 1) {
mose = 0;
qwik = 2;
} else {
mose = 1;
qwik = 10;
}
Symbol 61 MovieClip Frame 3
prevFrame();
play();
Symbol 66 MovieClip Frame 55
stop();
Symbol 69 Button
on (release) {
getURL ("http://www.armorgames.com", "blank");
}
Symbol 78 MovieClip Frame 1
if (_root.atmospheres == 1) {
_parent.lah.atmos.gotoAndStop(2);
} else {
_parent.lah.atmos.gotoAndStop(1);
}
Symbol 78 MovieClip Frame 2
stop();
Symbol 100 MovieClip Frame 1
this._rotation = random(50) - 25;
gotoAndStop(random(10) + 1);
Symbol 101 MovieClip Frame 1
gotoAndStop(random(_parent._parent._parent._parent.atmosrange) + 1);
Symbol 102 MovieClip Frame 1
gotoAndStop(random(20) + 1);
Symbol 103 MovieClip Frame 1
if (_root.atmospheres == 1) {
_parent.lah.atmos.gotoAndStop(2);
} else {
_parent.lah.atmos.gotoAndStop(1);
}
Symbol 103 MovieClip Frame 2
stop();
Symbol 123 MovieClip Frame 1
this._rotation = random(360);
s = random(100) + 50;
this._xscale = s;
this._yscale = s;
gotoAndPlay(random(5) + 1);
Symbol 123 MovieClip Frame 41
stop();
Symbol 134 MovieClip Frame 1
this._rotation = random(360);
Symbol 134 MovieClip Frame 26
stop();
Symbol 135 MovieClip Frame 1
_root.objects_destroyed = _root.objects_destroyed + 1;
Symbol 135 MovieClip Frame 18
stop();
Symbol 137 MovieClip Frame 1
oatmos = _root.atmostpheres;
if (_root.atmospheres == 1) {
_parent.lah.atmos.gotoAndStop(2);
} else {
_parent.lah.atmos.gotoAndStop(1);
}
_parent.atmosrange = 10;
Symbol 137 MovieClip Frame 2
planet_size = (_parent._xscale * _parent._yscale) * _root.grav_adjust;
if (oatmos != _root.atmospheres) {
if (_root.atmospheres == 1) {
_parent.lah.atmos.gotoAndStop(2);
_parent.lah.drop.gotoAndStop(2);
} else {
_parent.lah.atmos.gotoAndStop(1);
_parent.lah.drop.gotoAndStop(1);
}
oatmos = _root.atmospheres;
}
boom = 0;
if (_root.no_of_mines > 0) {
h = 1;
while (h <= _root.no_of_mines) {
if (_parent.lah.m.hitTest(eval (("_root.lower_levels.mine" + h) + ".bob"))) {
boom = 1;
}
h++;
}
}
if (boom == 1) {
_parent.lah.gotoAndStop(7);
stop();
} else if (_root.ball_live > _root.blwait) {
xdist = _root.x - _parent._x;
ydist = _root.y - _parent._y;
hdist = Math.sqrt((xdist * xdist) + (ydist * ydist));
pull = (1 / (hdist * hdist)) * planet_size;
one_percent = (Math.abs(xdist) + Math.abs(ydist)) / 100;
x_percentage = Math.abs(xdist) / one_percent;
y_percentage = Math.abs(ydist) / one_percent;
one_percent_of_pull = pull / 100;
x_percentage_of_pull = one_percent_of_pull * x_percentage;
y_percentage_of_pull = one_percent_of_pull * y_percentage;
if (_root.x < _parent._x) {
_root.xs = _root.xs + x_percentage_of_pull;
} else if (_root.x > _parent._x) {
_root.xs = _root.xs - x_percentage_of_pull;
}
if (_root.y < _parent._y) {
_root.ys = _root.ys + y_percentage_of_pull;
} else if (_root.y > _parent._y) {
_root.ys = _root.ys - y_percentage_of_pull;
}
if (_parent.lah.m.hitTest(_root.x, _root.y, true)) {
if (_root.hit_planet == 0) {
_root.xxs0 = _root.xs;
_root.yys0 = _root.ys;
}
_root.hit_planet = 1;
_root.sound.gotoAndPlay("rocketstop");
}
if (_root.xs > _root.speedlimit) {
_root.xs = _root.speedlimit;
}
if (_root.xs < (-_root.speedlimit)) {
_root.xs = -_root.speedlimit;
}
if (_root.ys > _root.speedlimit) {
_root.ys = _root.speedlimit;
}
if (_root.ys < (-_root.speedlimit)) {
_root.ys = -_root.speedlimit;
}
}
if (_root.test_hit_power_up > 0) {
if (_parent.hitTest(_root.power_up1)) {
_root.hit_power_up1 = 1;
}
if (_parent.hitTest(_root.power_up2)) {
_root.hit_power_up2 = 1;
}
if (_parent.hitTest(_root.power_up3)) {
_root.hit_power_up3 = 1;
}
if (_parent.hitTest(_root.power_up4)) {
_root.hit_power_up4 = 1;
}
}
Symbol 137 MovieClip Frame 3
prevFrame();
play();
Symbol 138 MovieClip Frame 1
lah.gotoAndStop(random(6) + 1);
gotoAndStop(random(30) + 1);
Symbol 139 MovieClip Frame 1
xt = 375;
yt = 250;
scale = random(100) + 20;
if (scale > 70) {
scale = random(110) + 10;
}
this._xscale = scale;
this._yscale = scale;
this._x = random(750);
this._y = random(500);
xs = random(10) - 5;
ys = random(10) - 5;
accel = 0.1;
Symbol 139 MovieClip Frame 2
if (this._x < xt) {
xs = xs + accel;
}
if (this._x > xt) {
xs = xs - accel;
}
if (this._y < yt) {
ys = ys + accel;
}
if (this._y > yt) {
ys = ys - accel;
}
this._x = this._x + xs;
this._y = this._y + ys;
if (random(300) == 1) {
gotoAndPlay (4);
}
Symbol 139 MovieClip Frame 3
prevFrame();
play();
Symbol 139 MovieClip Frame 10
gotoAndPlay (1);
Symbol 142 Button
on (release, keyPress "<Space>") {
_root.score = 0;
_root.cheatz = 0;
if (_root.myname == _root.default_name) {
gotoAndStop ("Namer");
_root.playafter = 1;
} else {
gotoAndPlay (287);
_root.complete_game = 1;
}
}
Symbol 145 Button
on (release) {
gotoAndPlay (282);
}
Symbol 149 Button
on (release) {
gotoAndStop ("passwords");
}
Symbol 153 Button
on (release, keyPress "m") {
_root.music = 2;
_root.music_started = 0;
_root.music_controls.gotoAndPlay("spacey");
_root.scoreboard.data.music = _root.music;
_root.scoreboard.flush();
}
Symbol 157 Button
on (release, keyPress "m") {
_root.music = 0;
_root.music_started = 0;
_root.music_controls.gotoAndPlay("off");
_root.scoreboard.data.music = _root.music;
_root.scoreboard.flush();
}
Symbol 161 Button
on (release, keyPress "m") {
_root.music = 1;
_root.music_started = 0;
_root.music_controls.gotoAndPlay("dnb");
_root.scoreboard.data.music = _root.music;
_root.scoreboard.flush();
}
Symbol 162 MovieClip Frame 1
if (_root.music != 1) {
gotoAndPlay (3);
}
if (_root.nobutts == 1) {
gotoAndPlay (7);
}
Symbol 162 MovieClip Frame 2
prevFrame();
play();
Symbol 162 MovieClip Frame 3
if (_root.music != 2) {
gotoAndPlay (5);
}
if (_root.nobutts == 1) {
gotoAndPlay (7);
}
Symbol 162 MovieClip Frame 4
prevFrame();
play();
Symbol 162 MovieClip Frame 5
if (_root.music != 0) {
gotoAndPlay (1);
}
if (_root.nobutts == 1) {
gotoAndPlay (7);
}
Symbol 162 MovieClip Frame 6
prevFrame();
play();
Symbol 162 MovieClip Frame 8
if (_root.nobutts == 1) {
prevFrame();
play();
}
Symbol 166 Button
on (release, keyPress "c") {
_root.audience = 0;
_root.crowd_started = 0;
_root.sound.gotoAndPlay("crowdstop");
_root.scoreboard.data.audience = _root.audience;
_root.scoreboard.flush();
}
Symbol 170 Button
on (release, keyPress "c") {
_root.audience = 1;
_root.crowd_started = 0;
_root.sound.gotoAndPlay("crowd");
_root.scoreboard.data.audience = _root.audience;
_root.scoreboard.flush();
}
Symbol 171 MovieClip Frame 1
if (_root.audience != 1) {
gotoAndPlay (3);
}
if (_root.nobutts == 1) {
gotoAndPlay (7);
}
Symbol 171 MovieClip Frame 2
prevFrame();
play();
Symbol 171 MovieClip Frame 3
if (_root.audience != 0) {
gotoAndPlay (1);
}
if (_root.nobutts == 1) {
gotoAndPlay (7);
}
Symbol 171 MovieClip Frame 4
prevFrame();
play();
Symbol 171 MovieClip Frame 8
if (_root.nobutts == 1) {
prevFrame();
play();
}
Symbol 173 MovieClip Frame 1
currentplayer = "Player is " + _root.myname;
Symbol 174 Button
on (release, keyPress "n") {
gotoAndStop ("namer");
}
Symbol 177 Button
on (release, keyPress "q") {
_root.game_quality = "MEDIUM";
_quality = _root.game_quality;
gotoAndPlay (3);
_root.scoreboard.data.game_quality = _root.game_quality;
_root.scoreboard.flush();
}
Symbol 180 Button
on (release, keyPress "q") {
_root.game_quality = "LOW";
_quality = _root.game_quality;
gotoAndPlay (5);
_root.scoreboard.data.game_quality = _root.game_quality;
_root.scoreboard.flush();
}
Symbol 183 Button
on (release, keyPress "q") {
_root.game_quality = "HIGH";
_quality = _root.game_quality;
gotoAndPlay (1);
_root.scoreboard.data.game_quality = _root.game_quality;
_root.scoreboard.flush();
}
Symbol 184 MovieClip Frame 1
if (_root.game_quality != "HIGH") {
gotoAndPlay (3);
}
if (_root.nobutts == 1) {
gotoAndPlay (7);
}
Symbol 184 MovieClip Frame 2
prevFrame();
play();
Symbol 184 MovieClip Frame 3
if (_root.game_quality != "MEDIUM") {
gotoAndPlay (5);
}
if (_root.nobutts == 1) {
gotoAndPlay (7);
}
Symbol 184 MovieClip Frame 4
prevFrame();
play();
Symbol 184 MovieClip Frame 5
if (_root.game_quality != "LOW") {
gotoAndPlay (1);
}
if (_root.nobutts == 1) {
gotoAndPlay (7);
}
Symbol 184 MovieClip Frame 6
prevFrame();
play();
Symbol 184 MovieClip Frame 8
if (_root.nobutts == 1) {
prevFrame();
play();
}
Symbol 187 Button
on (release, keyPress "a") {
_root.atmospheres = 0;
_root.scoreboard.data.atmospheres = _root.atmospheres;
_root.scoreboard.flush();
}
Symbol 190 Button
on (release, keyPress "a") {
_root.atmospheres = 1;
_root.scoreboard.data.atmospheres = _root.atmospheres;
_root.scoreboard.flush();
}
Symbol 191 MovieClip Frame 1
if (_root.atmospheres != 1) {
gotoAndPlay (3);
}
if (_root.nobutts == 1) {
gotoAndPlay (7);
}
Symbol 191 MovieClip Frame 2
prevFrame();
play();
Symbol 191 MovieClip Frame 3
if (_root.atmospheres != 0) {
gotoAndPlay (1);
}
if (_root.nobutts == 1) {
gotoAndPlay (7);
}
Symbol 191 MovieClip Frame 4
prevFrame();
play();
Symbol 191 MovieClip Frame 8
if (_root.nobutts == 1) {
prevFrame();
play();
}
Symbol 194 Button
on (release) {
_root.back_to_frame = 0;
gotoAndPlay (262);
}
Symbol 198 Button
on (release) {
getURL ("http://www.armorgames.com", "_blank");
}
Symbol 202 Button
on (release) {
getURL ("http://www.armorgames.com/games/galacticgravitygolf.html", "_blank");
}
Symbol 205 Button
on (release) {
getURL ("http://www.armegalo.com/golf/ggg2.shtml", "_blank");
}
Symbol 209 MovieClip Frame 1
if ((_root.music == 1) and (_root.music_started == 0)) {
gotoAndPlay ("dnb");
} else if ((_root.music == 2) and (_root.music_started == 0)) {
gotoAndPlay ("spacey");
} else if (_root.music == 0) {
gotoAndPlay ("off");
} else {
stop();
}
Symbol 209 MovieClip Frame 3
_root.music_started = 1;
Symbol 209 MovieClip Frame 4
stop();
Symbol 209 MovieClip Frame 6
_root.music_started = 1;
Symbol 209 MovieClip Frame 7
stop();
Symbol 209 MovieClip Frame 9
_root.music_started = 0;
Symbol 209 MovieClip Frame 10
stop();
Symbol 212 Button
on (release) {
getURL ("http://www.armegalo.com", "_blank");
}
Symbol 214 Button
on (release) {
getURL ("http://www.armorgames.com", "blank");
}
Symbol 247 MovieClip Frame 1
do {
a = random(16) + 1;
} while (a == _root.lastbak);
_root.lastbak = a;
gotoAndStop(a);
Symbol 248 MovieClip Frame 1
scale = random(120) + 10;
s = scale;
ss = s / 2;
this._x = random(750 + s) - ss;
this._y = random(500 + s) - ss;
this._xscale = scale;
this._yscale = scale;
Symbol 249 MovieClip Frame 1
plans = random(5) + 1;
n = 1;
while (n < plans) {
duplicateMovieClip ("plan", n, n);
n++;
}
Symbol 258 MovieClip Frame 1
stop();
Symbol 263 Button
on (release, keyPress "<Enter>") {
oik = 0;
passtry = passtry.toLowerCase();
n = 1;
while (n < (_root.maxlevels + 1)) {
if (_root.passtry == _root.passwords[n]) {
level = n;
oik = 1;
}
n++;
}
if (oik == 0) {
_root.badtry.gotoAndStop(2);
passtry = "";
Selection.setFocus("passin");
} else {
_root.complete_game = 0;
_root.score = 0;
gotoAndPlay ("Reset");
}
}
Symbol 266 Button
on (release) {
gotoAndStop ("menu");
}
Symbol 270 Button
on (release, keyPress "<Enter>") {
_root.scoreboard.data.myname = _root.myname;
_root.scoreboard.flush();
if (_root.playafter == 1) {
gotoAndPlay (287);
_root.complete_game = 1;
} else {
_root.gotoAndStop("menu");
}
}
Symbol 283 Button
on (release, keyPress "<Right>") {
nextFrame();
}
Symbol 284 Button
on (release) {
gotoAndStop ("menu");
}
Symbol 287 Button
on (release, keyPress "<Left>") {
prevFrame();
}
Symbol 298 MovieClip Frame 1
gotoAndStop(random(10) + 1);
Symbol 299 MovieClip Frame 1
_parent.flashers = _parent.flashers + 1;
gotoAndPlay(random(11) + 1);
Symbol 299 MovieClip Frame 16
if (random(5) == 1) {
gotoAndPlay (2);
} else {
gotoAndPlay (12);
}
Symbol 300 MovieClip Frame 1
oatmos = _root.atmostpheres;
if (_root.atmospheres == 1) {
_parent.lah.atmos.gotoAndPlay(2);
} else {
_parent.lah.atmos.gotoAndPlay(4);
gotoAndPlay (4);
}
flashers = 0;
Symbol 300 MovieClip Frame 3
if (_root.atmospheres == 1) {
prevFrame();
play();
}
Symbol 300 MovieClip Frame 5
if (_root.atmospheres == 0) {
prevFrame();
play();
} else {
gotoAndPlay (2);
}
Symbol 311 MovieClip Frame 2
if (hole.hitTest(_root.real_ball.ball) and (_root.ball_live > 0)) {
_root.ball_on = 0;
_root.gotoAndPlay("done");
gotoAndPlay (4);
}
if (_root.test_hit_power_up > 0) {
if (this.hitTest(_root.power_up1)) {
_root.hit_power_up1 = 1;
}
if (this.hitTest(_root.power_up2)) {
_root.hit_power_up2 = 1;
}
if (this.hitTest(_root.power_up3)) {
_root.hit_power_up3 = 1;
}
if (this.hitTest(_root.power_up4)) {
_root.hit_power_up4 = 1;
}
}
Symbol 311 MovieClip Frame 3
prevFrame();
play();
Symbol 311 MovieClip Frame 16
stop();
Symbol 313 MovieClip Frame 1
gotoAndPlay(random(60));
Symbol 313 MovieClip Frame 60
gotoAndPlay (2);
Symbol 316 MovieClip Frame 1
rot = 0;
rotsp = 0;
rotspdir = 1;
friction = 0.98;
roton = random(2);
Symbol 316 MovieClip Frame 2
if (roton == 1) {
if (random(20) == 1) {
roton = 0;
}
rotsp = rotsp + rotspdir;
} else {
if (random(200) == 1) {
roton = 1;
}
if ((rotsp < -0.3) or (rotsp > 0.3)) {
rotsp = rotsp - rotspdir;
}
}
if ((rotsp > -0.99) and (rotsp < 0.99)) {
rotsp = 0;
if (random(20)) {
rotspdir = -rotspdir;
}
} else {
rotsp = rotsp * friction;
rot = rot + rotsp;
this._rotation = rot;
}
if (rotsp > 10) {
rotsp = 10;
}
if (rotsp < -10) {
rotsp = -10;
}
Symbol 316 MovieClip Frame 3
prevFrame();
play();
Symbol 343 MovieClip Frame 1
stop();
Symbol 347 Button
on (release) {
my_txt1.removeTextField();
my_txt2.removeTextField();
my_txt3.removeTextField();
my_txt4.removeTextField();
getURL ("http://www.armorbot.com/mytable/?id=237", "_blank");
page.gotoAndStop(3);
}
Symbol 350 Button
on (release) {
my_txt1.removeTextField();
my_txt2.removeTextField();
my_txt3.removeTextField();
my_txt4.removeTextField();
page.gotoAndStop(1);
gotoAndPlay (284);
}
Symbol 351 Button
on (release) {
my_txt1.removeTextField();
my_txt2.removeTextField();
my_txt3.removeTextField();
my_txt4.removeTextField();
gotoAndStop ("menu");
}
Symbol 352 Button
on (press) {
_root.scrollup = 1;
}
on (release, dragOut, releaseOutside) {
_root.scrollup = 0;
}
Symbol 353 Button
on (press) {
_root.scrolldown = 1;
}
on (release, dragOut, releaseOutside) {
_root.scrolldown = 0;
}
Symbol 359 MovieClip Frame 31
stop();
Symbol 363 MovieClip Frame 1
x = _parent.x;
y = _parent.y;
size = _parent.size;
xs = _parent.xs + (random(20) - 10);
ys = _parent.ys + (random(size / 2) - (size / 4));
gravity = 0.75 + (random(20) / 10);
friction = 0.65;
size = _parent.size - random(40);
fee._x = x;
fee._y = y;
fee._xscale = size;
fee._yscale = size;
Symbol 363 MovieClip Frame 2
xs = xs * friction;
ys = ys * friction;
ys = ys + gravity;
x = x + xs;
y = y + ys;
size = size - random(5);
addon = random(70);
if (random(20) < 10) {
addon = -50;
} else {
addon = 0;
}
fee._x = x;
fee._y = y;
fee._xscale = size + addon;
fee._yscale = size + addon;
if ((y > _parent.y_bottom) or (size < 3)) {
gotoAndPlay (1);
}
Symbol 363 MovieClip Frame 3
gotoAndPlay (2);
Symbol 366 MovieClip Frame 2
y_bottom = 500;
x = 375;
y = 500;
xs = random(50) - 25;
ys = (-random(60)) - 15;
gravity = 0.1 + (random(10) / 10);
friction = 0.9;
obj._x = x;
obj._y = y;
if (followercount != 20) {
followercount = 0;
maxfollowers = 10;
}
size = 80;
Symbol 366 MovieClip Frame 3
xs = xs * friction;
ys = ys * friction;
ys = ys + gravity;
x = x + xs;
y = y + ys;
size = size - random(5);
if ((y > y_bottom) or (size < 1)) {
_parent.gotoAndPlay(1);
}
if (followercount < maxfollowers) {
duplicateMovieClip ("fol", followercount, followercount);
followercount = followercount + 1;
}
if (_root.fireworks_blow == 1) {
size = 500;
}
foo._x = x;
foo._y = y;
foo._xscale = size;
foo._yscale = size;
Symbol 366 MovieClip Frame 4
prevFrame();
play();
Symbol 367 MovieClip Frame 2
stop();
Symbol 368 MovieClip Frame 13
stop();
Symbol 385 MovieClip Frame 1
if (_root.audience == 0) {
stop();
} else if (_root.crowd_started == 1) {
stop();
}
Symbol 385 MovieClip Frame 2
_root.crowd_started = 1;
Symbol 385 MovieClip Frame 3
stop();
Symbol 385 MovieClip Frame 136
stop();
Symbol 385 MovieClip Frame 138
stop();
Symbol 385 MovieClip Frame 147
stop();
Symbol 385 MovieClip Frame 155
stop();
Symbol 385 MovieClip Frame 163
stop();
Symbol 385 MovieClip Frame 171
stop();
Symbol 385 MovieClip Frame 179
stop();
Symbol 385 MovieClip Frame 181
stop();
Symbol 385 MovieClip Frame 183
stop();
Symbol 385 MovieClip Frame 185
stop();
Symbol 385 MovieClip Frame 187
stop();
Symbol 385 MovieClip Frame 189
stop();
Symbol 385 MovieClip Frame 191
stop();
Symbol 385 MovieClip Frame 193
stop();
Symbol 385 MovieClip Frame 195
stop();
Symbol 385 MovieClip Frame 197
stop();
Symbol 385 MovieClip Frame 199
stop();
Symbol 385 MovieClip Frame 201
stop();
Symbol 389 MovieClip Frame 1
this._x = random(750);
this._y = random(500);
this._rotation = random(90);
scale = random(60);
this._xscale = scale;
this._yscale = scale;
Symbol 389 MovieClip Frame 2
if (random(4) == 1) {
prevFrame();
play();
}
Symbol 389 MovieClip Frame 3
prevFrame();
play();
Symbol 395 MovieClip Frame 1
gotoAndStop(random(6) + 1);
Symbol 400 MovieClip Frame 3
if (random(17) == 1) {
_parent.gotoAndPlay(random(400));
gotoAndPlay(((random(4) + 1) * 2) + 14);
_parent.baks.gotoAndStop(random(6) + 1);
} else {
prevFrame();
play();
}
Symbol 400 MovieClip Frame 15
gotoAndPlay (2);
Symbol 400 MovieClip Frame 17
gotoAndPlay (2);
Symbol 400 MovieClip Frame 19
gotoAndPlay (2);
Symbol 400 MovieClip Frame 21
gotoAndPlay (2);
Symbol 402 MovieClip Frame 3
if (_root.dontkillme != 1) {
_root.gotoAndPlay("buggered");
} else {
stop();
}
Symbol 404 Button
on (keyPress "n") {
_root.newname.play();
_root.nobutts = 1;
}
on (keyPress "N") {
_root.newname.play();
_root.nobutts = 1;
}
on (keyPress "p") {
_root.enterpass.play();
_root.nobutts = 1;
}
on (keyPress "P") {
_root.enterpass.play();
_root.nobutts = 1;
}
on (keyPress "<Enter>") {
_root.forfeit.play();
_root.nobutts = 1;
}
on (keyPress "<Escape>") {
_root.forfeit.play();
_root.nobutts = 1;
}
Symbol 405 MovieClip Frame 1
if (_root.nobutts > 0) {
gotoAndPlay (7);
}
Symbol 405 MovieClip Frame 2
prevFrame();
play();
Symbol 405 MovieClip Frame 7
if (_root.nobutts > 0) {
prevFrame();
play();
}
if (_root.passme == 1) {
_root.passme = 0;
_root.enterpass.play();
_root.nobutts = 1;
}
if (_root.nameme == 1) {
_root.nameme = 0;
_root.newname.play();
_root.nobutts = 1;
}
Symbol 411 MovieClip Frame 1
if (_root.test_hit_power_up > 0) {
if (this.hitTest(_root.power_up1)) {
_root.hit_power_up1 = 1;
}
if (this.hitTest(_root.power_up2)) {
_root.hit_power_up2 = 1;
}
if (this.hitTest(_root.power_up3)) {
_root.hit_power_up3 = 1;
}
if (this.hitTest(_root.power_up4)) {
_root.hit_power_up4 = 1;
}
}
Symbol 411 MovieClip Frame 2
prevFrame();
play();
Symbol 414 MovieClip Frame 1
_root.limitz = 1;
stop();
Symbol 419 MovieClip Frame 10
if (_root.choosing == 1) {
prevFrame();
play();
}
Symbol 419 MovieClip Frame 11
stop();
Symbol 427 MovieClip Frame 1
x = _parent._x;
y = _parent._y;
xt = _root.x;
yt = _root.y;
xd = x - xt;
yd = y - yt;
radius = Math.sqrt((xd * xd) + (yd * yd));
angle = Math.asin(yd / radius);
degree = 57.2957795130823 * angle;
if (xd < 0) {
degrees = 180 - degree;
} else {
degrees = degree;
}
this._rotation = degrees;
mish._xscale = radius / 5;
if (radius > 2250) {
_root.xs = 0;
_root.ys = 0;
_root.x = 0;
_root.y = 0;
_root.ball_on = 0;
_root.gotoAndPlay("sgone");
}
_root.airtime = _root.airtime + (random(10) + _root.freefall_value);
Symbol 427 MovieClip Frame 2
if (_root.ball_on == 1) {
prevFrame();
play();
}
Symbol 427 MovieClip Frame 4
if (_root.ball_on == 0) {
prevFrame();
play();
}
Symbol 428 MovieClip Frame 1
_root.start_points = _root.start_points + 1;
thisis = _root.start_points;
if (random(2) == 1) {
t._xscale = -100;
}
tz._rotation = random(360);
Symbol 428 MovieClip Frame 2
Set("_root.start_x" + thisis, this._x);
Set("_root.start_y" + thisis, this._y);
if (_root.test_hit_power_up > 0) {
if (this.hitTest(_root.power_up1)) {
_root.hit_power_up1 = 1;
}
if (this.hitTest(_root.power_up2)) {
_root.hit_power_up2 = 1;
}
if (this.hitTest(_root.power_up3)) {
_root.hit_power_up3 = 1;
}
if (this.hitTest(_root.power_up4)) {
_root.hit_power_up4 = 1;
}
}
Symbol 428 MovieClip Frame 3
if (_root.show_starts == 1) {
prevFrame();
play();
}
Symbol 428 MovieClip Frame 9
if (_root.show_starts == 0) {
prevFrame();
play();
} else {
gotoAndPlay (2);
}
Symbol 431 MovieClip Frame 1
stop();
Symbol 438 MovieClip Frame 1
oatmos = _root.atmostpheres;
if (_root.atmospheres == 1) {
_parent.lah.atmos.gotoAndStop(2);
} else {
_parent.lah.atmos.gotoAndStop(1);
}
_parent.atmosrange = 9;
Symbol 438 MovieClip Frame 2
planet_size = (_parent.lah.m._height * _parent.lah.m._height) * _root.grav_adjust;
if (oatmos != _root.atmospheres) {
if (_root.atmospheres == 1) {
_parent.lah.atmos.gotoAndStop(2);
_parent.lah.drop.gotoAndStop(2);
} else {
_parent.lah.atmos.gotoAndStop(1);
_parent.lah.drop.gotoAndStop(1);
}
oatmos = _root.atmospheres;
}
bounce = 5;
if (_root.ball_live > _root.blwait) {
xdist = _root.x - _parent._x;
ydist = _root.y - _parent._y;
hdist = Math.sqrt((xdist * xdist) + (ydist * ydist));
pull = (1.5 / (hdist * hdist)) * planet_size;
one_percent = (Math.abs(xdist) + Math.abs(ydist)) / 100;
x_percentage = Math.abs(xdist) / one_percent;
y_percentage = Math.abs(ydist) / one_percent;
one_percent_of_pull = pull / 100;
x_percentage_of_pull = one_percent_of_pull * x_percentage;
y_percentage_of_pull = one_percent_of_pull * y_percentage;
if (_root.x < _parent._x) {
_root.xs = _root.xs + x_percentage_of_pull;
} else if (_root.x > _parent._x) {
_root.xs = _root.xs - x_percentage_of_pull;
}
if (_root.y < _parent._y) {
_root.ys = _root.ys + y_percentage_of_pull;
} else if (_root.y > _parent._y) {
_root.ys = _root.ys - y_percentage_of_pull;
}
if (_parent.prox.hitTest(_root.x, _root.y, true)) {
_parent.prox.play();
_root.pling.gotoAndPlay(2);
_root.bounce.start();
if (_root.x < _parent._x) {
_root.xs = _root.xs - (x_percentage_of_pull * bounce);
} else if (_root.x > _parent._x) {
_root.xs = _root.xs + (x_percentage_of_pull * bounce);
}
if (_root.y < _parent._y) {
_root.ys = _root.ys - (y_percentage_of_pull * bounce);
} else if (_root.y > _parent._y) {
_root.ys = _root.ys + (y_percentage_of_pull * bounce);
}
}
if (_root.xs > _root.speedlimit) {
_root.xs = _root.speedlimit;
}
if (_root.xs < (-_root.speedlimit)) {
_root.xs = -_root.speedlimit;
}
if (_root.ys > _root.speedlimit) {
_root.ys = _root.speedlimit;
}
if (_root.ys < (-_root.speedlimit)) {
_root.ys = -_root.speedlimit;
}
}
if (_root.test_hit_power_up > 0) {
if (_parent.hitTest(_root.power_up1)) {
_root.hit_power_up1 = 1;
}
if (_parent.hitTest(_root.power_up2)) {
_root.hit_power_up2 = 1;
}
if (_parent.hitTest(_root.power_up3)) {
_root.hit_power_up3 = 1;
}
if (_parent.hitTest(_root.power_up4)) {
_root.hit_power_up4 = 1;
}
}
Symbol 438 MovieClip Frame 3
prevFrame();
play();
Symbol 441 MovieClip Frame 1
top = (this._y - (this._height / 2)) - _root.wall_extra_detect;
bottom = (this._y + (this._height / 2)) + _root.wall_extra_detect;
check_axis = this._x;
Symbol 441 MovieClip Frame 2
if (((_root.predict._x <= check_axis) and (_root.real_ball._x > check_axis)) and (_root.ball_live > 1)) {
actual_hit_point = (_root.real_ball._y + _root.predict._y) / 2;
if ((actual_hit_point > top) and (actual_hit_point < bottom)) {
if (_root.xs < 0) {
_root.xs = -_root.xs;
_root.xs = _root.xs * _root.bounce_extra;
_root.x = this._x;
_root.real_ball._x = this._x;
}
_root.pling.gotoAndPlay(2);
_root.bounce.start();
}
}
Symbol 441 MovieClip Frame 3
prevFrame();
play();
Symbol 443 MovieClip Frame 1
top = (this._y - (this._height / 2)) - _root.wall_extra_detect;
bottom = (this._y + (this._height / 2)) + _root.wall_extra_detect;
check_axis = this._x;
Symbol 443 MovieClip Frame 2
if (((_root.predict._x >= check_axis) and (_root.real_ball._x < check_axis)) and (_root.ball_live > 1)) {
actual_hit_point = (_root.real_ball._y + _root.predict._y) / 2;
if ((actual_hit_point > top) and (actual_hit_point < bottom)) {
if (_root.xs > 0) {
_root.xs = -_root.xs;
_root.xs = _root.xs * _root.bounce_extra;
_root.x = this._x;
_root.real_ball._x = this._x;
}
_root.pling.gotoAndPlay(2);
_root.bounce.start();
}
}
Symbol 443 MovieClip Frame 3
prevFrame();
play();
Symbol 445 MovieClip Frame 1
left = (this._x - (this._width / 2)) - _root.wall_extra_detect;
right = (this._x + (this._width / 2)) + _root.wall_extra_detect;
check_axis = this._y;
Symbol 445 MovieClip Frame 2
if (((_root.predict._y <= check_axis) and (_root.real_ball._y > check_axis)) and (_root.ball_live > 1)) {
actual_hit_point = (_root.real_ball._x + _root.predict._x) / 2;
if ((actual_hit_point < right) and (actual_hit_point > left)) {
if (_root.ys < 0) {
_root.ys = -_root.ys;
_root.ys = _root.ys * _root.bounce_extra;
_root.y = this._y;
_root.real_ball._y = this._y;
}
_root.pling.gotoAndPlay(2);
_root.bounce.start();
}
}
Symbol 445 MovieClip Frame 3
prevFrame();
play();
Symbol 447 MovieClip Frame 1
left = (this._x - (this._width / 2)) - _root.wall_extra_detect;
right = (this._x + (this._width / 2)) + _root.wall_extra_detect;
check_axis = this._y;
Symbol 447 MovieClip Frame 2
if (((_root.predict._y >= check_axis) and (_root.real_ball._y < check_axis)) and (_root.ball_live > 1)) {
actual_hit_point = (_root.predict._x + _root.real_ball._x) / 2;
if ((actual_hit_point < right) and (actual_hit_point > left)) {
if (_root.ys > 0) {
_root.ys = -_root.ys;
_root.ys = _root.ys * _root.bounce_extra;
_root.y = this._y;
_root.real_ball._y = this._y;
}
_root.pling.gotoAndPlay(2);
_root.bounce.start();
}
}
Symbol 447 MovieClip Frame 3
prevFrame();
play();
Symbol 455 MovieClip Frame 1
gotoAndStop(random(2) + 1);
Symbol 457 MovieClip Frame 1
gotoAndStop(random(5) + 1);
Symbol 458 MovieClip Frame 1
if (this.hitTest(_root.real_ball)) {
_root.sound.gotoAndPlay("pickupgem");
gotoAndPlay (3);
_root.gems = _root.gems + 1;
}
if (_root.test_hit_power_up > 0) {
if (this.hitTest(_root.power_up1)) {
_root.hit_power_up1 = 1;
}
if (this.hitTest(_root.power_up2)) {
_root.hit_power_up2 = 1;
}
if (this.hitTest(_root.power_up3)) {
_root.hit_power_up3 = 1;
}
if (this.hitTest(_root.power_up4)) {
_root.hit_power_up4 = 1;
}
}
Symbol 458 MovieClip Frame 2
prevFrame();
play();
Symbol 458 MovieClip Frame 11
stop();
Symbol 464 MovieClip Frame 1
_root.no_of_mines = _root.no_of_mines + 1;
thisis = _root.no_of_mines;
this._name = "mine" + thisis;
Symbol 464 MovieClip Frame 3
if (this.hitTest(_root.real_ball)) {
} else {
prevFrame();
play();
}
Symbol 464 MovieClip Frame 23
stop();
Symbol 465 MovieClip Frame 1
if (this.hitTest(_root.real_ball)) {
_root.sound.gotoAndPlay("pickupgem");
gotoAndPlay (3);
_root.big_gems = _root.big_gems + 1;
}
if (_root.test_hit_power_up > 0) {
if (this.hitTest(_root.power_up1)) {
_root.hit_power_up1 = 1;
}
if (this.hitTest(_root.power_up2)) {
_root.hit_power_up2 = 1;
}
if (this.hitTest(_root.power_up3)) {
_root.hit_power_up3 = 1;
}
if (this.hitTest(_root.power_up4)) {
_root.hit_power_up4 = 1;
}
}
Symbol 465 MovieClip Frame 2
prevFrame();
play();
Symbol 465 MovieClip Frame 11
stop();
Symbol 470 MovieClip Frame 2
if (hole.hitTest(_root.real_ball.ball) and (_root.ball_live > 0)) {
_root.ball_on = 0;
_root.times = _root.times * 2;
_root.gotoAndPlay("done");
gotoAndPlay (4);
}
if (_root.test_hit_power_up > 0) {
if (this.hitTest(_root.power_up1)) {
_root.hit_power_up1 = 1;
}
if (this.hitTest(_root.power_up2)) {
_root.hit_power_up2 = 1;
}
if (this.hitTest(_root.power_up3)) {
_root.hit_power_up3 = 1;
}
if (this.hitTest(_root.power_up4)) {
_root.hit_power_up4 = 1;
}
}
Symbol 470 MovieClip Frame 3
prevFrame();
play();
Symbol 470 MovieClip Frame 16
stop();
Symbol 476 MovieClip Frame 1
if (this.hitTest(_root.real_ball)) {
_root.sound.gotoAndPlay("pickupfuel");
gotoAndPlay (3);
_root.fuel = _root.fuel + (10 * _root.fuel_value);
}
if (_root.test_hit_power_up > 0) {
if (this.hitTest(_root.power_up1)) {
_root.hit_power_up1 = 1;
}
if (this.hitTest(_root.power_up2)) {
_root.hit_power_up2 = 1;
}
if (this.hitTest(_root.power_up3)) {
_root.hit_power_up3 = 1;
}
if (this.hitTest(_root.power_up4)) {
_root.hit_power_up4 = 1;
}
}
Symbol 476 MovieClip Frame 2
prevFrame();
play();
Symbol 476 MovieClip Frame 11
stop();
Symbol 481 MovieClip Frame 1
a = random(4);
minspeed = 10;
speedscale = 20;
if (a == 0) {
x = -20;
xs = random(speedscale) + minspeed;
y = random(_root.maxy);
ys = random(speedscale) - (speedscale / 2);
} else if (a == 1) {
x = _root.maxx + 20;
xs = (-random(speedscale)) + minspeed;
y = random(_root.maxy);
ys = random(speedscale) - (speedscale / 2);
} else if (a == 2) {
x = random(_root.maxx);
xs = random(speedscale) - (speedscale / 2);
y = -20;
ys = random(speedscale) + minspeed;
} else if (a == 3) {
x = random(_root.maxx);
xs = random(speedscale) - (speedscale / 2);
y = _root.maxy + 20;
ys = (-random(speedscale)) + minspeed;
}
_parent._x = -1000;
_parent._y = -1000;
comet_size = random(50) + 25;
_parent._xscale = comet_size;
_parent._yscale = comet_size;
Symbol 481 MovieClip Frame 3
if (random(100) != 1) {
prevFrame();
play();
}
Symbol 481 MovieClip Frame 4
tail_scale = 100;
ox = x;
oy = y;
x = x + xs;
y = y + ys;
_parent._x = x;
_parent._y = y;
xt = ox;
yt = oy;
xd = -((x - xt) * tail_scale);
yd = -((y - yt) * tail_scale);
radius = Math.sqrt((xd * xd) + (yd * yd));
angle = Math.asin(yd / radius);
degree = 57.2957795130823 * angle;
if (xd < 0) {
degrees = 180 - degree;
} else {
degrees = degree;
}
_parent.lah.mish._rotation = degrees;
_parent.lah.mish._xscale = radius / 1.5;
end = 0;
if (a == 0) {
if (((x > (_root.maxx + 50)) or (y < -50)) or (y > (_root.maxy + 50))) {
end = 1;
}
} else if (a == 1) {
if (((x < -50) or (y < -50)) or (y > (_root.maxy + 50))) {
end = 1;
}
} else if (a == 2) {
if (((y > (_root.maxy + 50)) or (x < -50)) or (x > (_root.maxx + 50))) {
end = 1;
}
} else if (a == 3) {
if (((y < -50) or (x < -50)) or (x > (_root.maxx + 50))) {
end = 1;
}
}
if (end == 1) {
gotoAndPlay (1);
}
Symbol 481 MovieClip Frame 5
prevFrame();
play();
Symbol 487 MovieClip Frame 1
if (_root.test_hit_power_up > 0) {
if (this.hitTest(_root.power_up1)) {
_root.hit_power_up1 = 1;
}
if (this.hitTest(_root.power_up2)) {
_root.hit_power_up2 = 1;
}
if (this.hitTest(_root.power_up3)) {
_root.hit_power_up3 = 1;
}
if (this.hitTest(_root.power_up4)) {
_root.hit_power_up4 = 1;
}
}
Symbol 487 MovieClip Frame 2
prevFrame();
play();
Symbol 489 MovieClip Frame 1
top = (this._y - (this._height / 2)) - _root.wall_extra_detect;
bottom = (this._y + (this._height / 2)) + _root.wall_extra_detect;
check_axis = this._x;
Symbol 489 MovieClip Frame 2
if (((_root.predict._x <= check_axis) and (_root.real_ball._x > check_axis)) and (_root.ball_live > 1)) {
actual_hit_point = (_root.real_ball._y + _root.predict._y) / 2;
if ((actual_hit_point > top) and (actual_hit_point < bottom)) {
if (_root.xs < 0) {
_root.xs = -_root.xs;
_root.xs = _root.xs * _root.bounce_extra3;
_root.ys = _root.ys * _root.bounce_extra3;
_root.x = this._x + _root.wall_push_away;
_root.real_ball._x = this._x;
}
_root.pling.gotoAndPlay(2);
_root.bounce.start();
}
}
Symbol 489 MovieClip Frame 3
prevFrame();
play();
Symbol 491 MovieClip Frame 1
top = (this._y - (this._height / 2)) - _root.wall_extra_detect;
bottom = (this._y + (this._height / 2)) + _root.wall_extra_detect;
check_axis = this._x;
Symbol 491 MovieClip Frame 2
if (((_root.predict._x >= check_axis) and (_root.real_ball._x < check_axis)) and (_root.ball_live > 1)) {
actual_hit_point = (_root.real_ball._y + _root.predict._y) / 2;
if ((actual_hit_point > top) and (actual_hit_point < bottom)) {
if (_root.xs > 0) {
_root.xs = -_root.xs;
_root.xs = _root.xs * _root.bounce_extra3;
_root.ys = _root.ys * _root.bounce_extra3;
_root.x = this._x - _root.wall_push_away;
_root.real_ball._x = this._x;
}
_root.pling.gotoAndPlay(2);
_root.bounce.start();
}
}
Symbol 491 MovieClip Frame 3
prevFrame();
play();
Symbol 493 MovieClip Frame 1
left = (this._x - (this._width / 2)) - _root.wall_extra_detect;
right = (this._x + (this._width / 2)) + _root.wall_extra_detect;
check_axis = this._y;
Symbol 493 MovieClip Frame 2
if (((_root.predict._y <= check_axis) and (_root.real_ball._y > check_axis)) and (_root.ball_live > 1)) {
actual_hit_point = (_root.real_ball._x + _root.predict._x) / 2;
if ((actual_hit_point < right) and (actual_hit_point > left)) {
if (_root.ys < 0) {
_root.ys = -_root.ys;
_root.xs = _root.xs * _root.bounce_extra3;
_root.ys = _root.ys * _root.bounce_extra3;
_root.y = this._y + _root.wall_push_away;
_root.real_ball._y = this._y;
}
_root.pling.gotoAndPlay(2);
_root.bounce.start();
}
}
Symbol 493 MovieClip Frame 3
prevFrame();
play();
Symbol 495 MovieClip Frame 1
left = (this._x - (this._width / 2)) - _root.wall_extra_detect;
right = (this._x + (this._width / 2)) + _root.wall_extra_detect;
check_axis = this._y;
Symbol 495 MovieClip Frame 2
if (((_root.predict._y >= check_axis) and (_root.real_ball._y < check_axis)) and (_root.ball_live > 1)) {
actual_hit_point = (_root.predict._x + _root.real_ball._x) / 2;
if ((actual_hit_point < right) and (actual_hit_point > left)) {
if (_root.ys > 0) {
_root.ys = -_root.ys;
_root.xs = _root.xs * _root.bounce_extra3;
_root.ys = _root.ys * _root.bounce_extra3;
_root.y = this._y - _root.wall_push_away;
_root.real_ball._y = this._y;
}
_root.pling.gotoAndPlay(2);
_root.bounce.start();
}
}
Symbol 495 MovieClip Frame 3
prevFrame();
play();
Symbol 500 MovieClip Frame 1
extra_bounds = 400;
max_speed = 10;
basic_accel = 0.25;
top_accel = 0.3;
accel = basic_accel;
basic_friction = 0.95;
stop_friction = 0.6;
friction = basic_friction;
likely_to_change_position = 50;
likely_to_go_fast = 100;
likely_to_slow_down = 50;
x = random(_root.maxx + (extra_bounds * 2)) - extra_bounds;
y = random(_root.maxx + (extra_bounds * 2)) - extra_bounds;
xt = x;
yt = y;
xs = random(max_speed * 2) - max_speed;
ys = random(max_speed * 2) - max_speed;
Symbol 500 MovieClip Frame 2
if (random(likely_to_change_position) == 1) {
xt = random(_root.maxx + (extra_bounds * 2)) - extra_bounds;
yt = random(_root.maxx + (extra_bounds * 2)) - extra_bounds;
friction = basic_friction;
}
if (random(likely_to_go_fast) == 1) {
friction = basic_friction;
accel = top_accel;
}
if (random(likely_to_slow_down) == 1) {
friction = basic_friction;
accel = top_basic;
}
if (x < xt) {
xs = xs + accel;
}
if (x > xt) {
xs = xs - accel;
}
if (y < yt) {
ys = ys + accel;
}
if (y > yt) {
ys = ys - accel;
}
xs = xs * friction;
ys = ys * friction;
x = x + xs;
y = y + ys;
this._x = x;
this._y = y;
if ((((x > (xt - 20)) and (x < (xt + 20))) and (y > (yt - 20))) and (y < (yt + 20))) {
friction = stop_friction;
accel = basic_accel;
}
Symbol 500 MovieClip Frame 3
prevFrame();
play();
Symbol 503 MovieClip Frame 2
if (hole.hitTest(_root.real_ball.ball) and (_root.ball_live > 0)) {
_root.ball_on = 0;
_root.times = _root.times * 4;
_root.gotoAndPlay("done");
gotoAndPlay (4);
}
if (_root.test_hit_power_up > 0) {
if (this.hitTest(_root.power_up1)) {
_root.hit_power_up1 = 1;
}
if (this.hitTest(_root.power_up2)) {
_root.hit_power_up2 = 1;
}
if (this.hitTest(_root.power_up3)) {
_root.hit_power_up3 = 1;
}
if (this.hitTest(_root.power_up4)) {
_root.hit_power_up4 = 1;
}
}
Symbol 503 MovieClip Frame 3
prevFrame();
play();
Symbol 503 MovieClip Frame 16
stop();
Symbol 512 MovieClip Frame 1
_root.worm_holes = _root.worm_holes + 1;
thisis = _root.worm_holes;
Set("_root.worm_x" + thisis, this._x);
Set("_root.worm_y" + thisis, this._y);
_root.just_travelled = 0;
osx = this._xscale;
osy = this._yscale;
Symbol 512 MovieClip Frame 2
Set("_root.worm_x" + thisis, this._x);
Set("_root.worm_y" + thisis, this._y);
if (m.hitTest(_root.real_ball) and ((_root.just_travelled < 60) or (thisis != _root.worm_traveller_out))) {
_root.worm_hole_bonus = _root.worm_hole_bonus + 1;
_root.sound.gotoAndPlay("wormhole");
a = thisis + 1;
if (a > _root.worm_holes) {
a = 1;
}
_root.worm_traveller_in = thisis;
_root.worm_traveller_out = a;
x = eval ("_root.worm_x" + a);
y = eval ("_root.worm_y" + a);
_root.x = x;
_root.y = y;
_root.real_x = x;
_root.real_y = y;
_root.ox = x;
_root.oy = y;
_root.real_ball._x = x;
_root.real_ball._y = y;
_root.just_travelled = 250;
}
if ((_root.just_travelled > 0) and ((thisis == _root.worm_traveller_in) or (thisis == _root.worm_traveller_out))) {
_root.just_travelled = _root.just_travelled / 1.1;
this._rotation = _root.just_travelled * 2;
xscal = osx - (_root.just_travelled / 3);
yscal = osy - (_root.just_travelled / 3);
this._xscale = xscal;
this._yscale = yscal;
}
if (_root.test_hit_power_up > 0) {
if (this.hitTest(_root.power_up1)) {
_root.hit_power_up1 = 1;
}
if (this.hitTest(_root.power_up2)) {
_root.hit_power_up2 = 1;
}
if (this.hitTest(_root.power_up3)) {
_root.hit_power_up3 = 1;
}
if (this.hitTest(_root.power_up4)) {
_root.hit_power_up4 = 1;
}
}
Symbol 512 MovieClip Frame 3
prevFrame();
play();
Symbol 515 MovieClip Frame 1
if (_root.test_hit_power_up > 0) {
if (this.hitTest(_root.power_up1)) {
_root.hit_power_up1 = 1;
}
if (this.hitTest(_root.power_up2)) {
_root.hit_power_up2 = 1;
}
if (this.hitTest(_root.power_up3)) {
_root.hit_power_up3 = 1;
}
if (this.hitTest(_root.power_up4)) {
_root.hit_power_up4 = 1;
}
}
Symbol 515 MovieClip Frame 2
prevFrame();
play();
Symbol 518 MovieClip Frame 1
top = (this._y - (this._height / 2)) - _root.wall_extra_detect;
bottom = (this._y + (this._height / 2)) + _root.wall_extra_detect;
check_axis = this._x;
Symbol 518 MovieClip Frame 2
if (((_root.predict._x <= check_axis) and (_root.real_ball._x > check_axis)) and (_root.ball_live > 1)) {
actual_hit_point = (_root.real_ball._y + _root.predict._y) / 2;
if ((actual_hit_point > top) and (actual_hit_point < bottom)) {
if (_root.xs < 0) {
_root.xs = -_root.xs;
_root.xs = _root.xs * _root.bounce_extra2;
_root.ys = _root.ys * _root.bounce_extra2;
_root.x = this._x;
_root.real_ball._x = this._x;
}
_root.pling.gotoAndPlay(2);
_root.bounce.start();
}
}
Symbol 518 MovieClip Frame 3
prevFrame();
play();
Symbol 520 MovieClip Frame 1
top = (this._y - (this._height / 2)) - _root.wall_extra_detect;
bottom = (this._y + (this._height / 2)) + _root.wall_extra_detect;
check_axis = this._x;
Symbol 520 MovieClip Frame 2
if (((_root.predict._x >= check_axis) and (_root.real_ball._x < check_axis)) and (_root.ball_live > 1)) {
actual_hit_point = (_root.real_ball._y + _root.predict._y) / 2;
if ((actual_hit_point > top) and (actual_hit_point < bottom)) {
if (_root.xs > 0) {
_root.xs = -_root.xs;
_root.xs = _root.xs * _root.bounce_extra2;
_root.ys = _root.ys * _root.bounce_extra2;
_root.x = this._x;
_root.real_ball._x = this._x;
}
_root.pling.gotoAndPlay(2);
_root.bounce.start();
}
}
Symbol 520 MovieClip Frame 3
prevFrame();
play();
Symbol 522 MovieClip Frame 1
left = (this._x - (this._width / 2)) - _root.wall_extra_detect;
right = (this._x + (this._width / 2)) + _root.wall_extra_detect;
check_axis = this._y;
Symbol 522 MovieClip Frame 2
if (((_root.predict._y <= check_axis) and (_root.real_ball._y > check_axis)) and (_root.ball_live > 1)) {
actual_hit_point = (_root.real_ball._x + _root.predict._x) / 2;
if ((actual_hit_point < right) and (actual_hit_point > left)) {
if (_root.ys < 0) {
_root.ys = -_root.ys;
_root.xs = _root.xs * _root.bounce_extra2;
_root.ys = _root.ys * _root.bounce_extra2;
_root.y = this._y;
_root.real_ball._y = this._y;
}
_root.pling.gotoAndPlay(2);
_root.bounce.start();
}
}
Symbol 522 MovieClip Frame 3
prevFrame();
play();
Symbol 524 MovieClip Frame 1
left = (this._x - (this._width / 2)) - _root.wall_extra_detect;
right = (this._x + (this._width / 2)) + _root.wall_extra_detect;
check_axis = this._y;
Symbol 524 MovieClip Frame 2
if (((_root.predict._y >= check_axis) and (_root.real_ball._y < check_axis)) and (_root.ball_live > 1)) {
actual_hit_point = (_root.predict._x + _root.real_ball._x) / 2;
if ((actual_hit_point < right) and (actual_hit_point > left)) {
if (_root.ys > 0) {
_root.ys = -_root.ys;
_root.xs = _root.xs * _root.bounce_extra2;
_root.ys = _root.ys * _root.bounce_extra2;
_root.y = this._y;
_root.real_ball._y = this._y;
}
_root.pling.gotoAndPlay(2);
_root.bounce.start();
}
}
Symbol 524 MovieClip Frame 3
prevFrame();
play();
Symbol 529 MovieClip Frame 1
if (_root.test_hit_power_up > 0) {
if (this.hitTest(_root.power_up1)) {
_root.hit_power_up1 = 1;
}
if (this.hitTest(_root.power_up2)) {
_root.hit_power_up2 = 1;
}
if (this.hitTest(_root.power_up3)) {
_root.hit_power_up3 = 1;
}
if (this.hitTest(_root.power_up4)) {
_root.hit_power_up4 = 1;
}
}
Symbol 529 MovieClip Frame 2
prevFrame();
play();
Symbol 532 MovieClip Frame 1
xt = random(450) + 150;
yt = random(350) + 75;
scale = random(100) + 20;
this._x = random(750);
this._y = random(500);
xs = random(10) - 5;
ys = random(10) - 5;
accel = 0.1;
Symbol 532 MovieClip Frame 2
if (this._x < xt) {
xs = xs + accel;
}
if (this._x > xt) {
xs = xs - accel;
}
if (this._y < yt) {
ys = ys + accel;
}
if (this._y > yt) {
ys = ys - accel;
}
this._x = this._x + xs;
this._y = this._y + ys;
Symbol 532 MovieClip Frame 3
prevFrame();
play();
Symbol 533 MovieClip Frame 1
xt = random(450) + 150;
yt = random(350) + 75;
scale = random(100) + 20;
this._x = random(750);
this._y = random(500);
xs = random(10) - 5;
ys = random(10) - 5;
accel = 0.1;
Symbol 533 MovieClip Frame 2
if (this._x < xt) {
xs = xs + accel;
}
if (this._x > xt) {
xs = xs - accel;
}
if (this._y < yt) {
ys = ys + accel;
}
if (this._y > yt) {
ys = ys - accel;
}
this._x = this._x + xs;
this._y = this._y + ys;
Symbol 533 MovieClip Frame 3
prevFrame();
play();
Symbol 534 MovieClip Frame 1
xt = random(450) + 150;
yt = random(350) + 75;
scale = random(100) + 20;
this._x = random(750);
this._y = random(500);
xs = random(10) - 5;
ys = random(10) - 5;
accel = 0.1;
Symbol 534 MovieClip Frame 2
if (this._x < xt) {
xs = xs + accel;
}
if (this._x > xt) {
xs = xs - accel;
}
if (this._y < yt) {
ys = ys + accel;
}
if (this._y > yt) {
ys = ys - accel;
}
this._x = this._x + xs;
this._y = this._y + ys;
Symbol 534 MovieClip Frame 3
prevFrame();
play();
Symbol 535 MovieClip Frame 1
xt = random(450) + 150;
yt = random(350) + 75;
scale = random(100) + 20;
if (scale > 70) {
scale = random(80) + 40;
}
plan._xscale = scale;
plan._yscale = scale;
plan._x = random(750);
plan._y = random(500);
xs = random(10) - 5;
ys = random(10) - 5;
accel = 0.1;
Symbol 535 MovieClip Frame 2
if (plan._x < xt) {
xs = xs + accel;
}
if (plan._x > xt) {
xs = xs - accel;
}
if (plan._y < yt) {
ys = ys + accel;
}
if (plan._y > yt) {
ys = ys - accel;
}
plan._x = plan._x + xs;
plan._y = plan._y + ys;
Symbol 535 MovieClip Frame 3
prevFrame();
play();
Symbol 566 MovieClip Frame 1
if (this.hitTest(_root.real_ball)) {
if ((_root.xs > _root.sticky_min) or (_root.xs < (-_root.sticky_min))) {
_root.xs = _root.xs * _root.sticky_friction;
}
if ((_root.ys > _root.sticky_min) or (_root.ys < (-_root.sticky_min))) {
_root.ys = _root.ys * _root.sticky_friction;
}
}
Symbol 566 MovieClip Frame 2
prevFrame();
play();
Symbol 571 MovieClip Frame 1
if (_root.test_hit_power_up > 0) {
if (this.hitTest(_root.power_up1)) {
_root.hit_power_up1 = 1;
}
if (this.hitTest(_root.power_up2)) {
_root.hit_power_up2 = 1;
}
if (this.hitTest(_root.power_up3)) {
_root.hit_power_up3 = 1;
}
if (this.hitTest(_root.power_up4)) {
_root.hit_power_up4 = 1;
}
}
Symbol 571 MovieClip Frame 2
prevFrame();
play();
Symbol 575 MovieClip Frame 1
if (this.hitTest(_root.real_ball)) {
if ((_root.xs > _root.sticky_min) or (_root.xs < (-_root.sticky_min))) {
_root.xs = _root.xs * _root.sticky_friction;
}
if ((_root.ys > _root.sticky_min) or (_root.ys < (-_root.sticky_min))) {
_root.ys = _root.ys * _root.sticky_friction;
}
}
Symbol 575 MovieClip Frame 2
prevFrame();
play();
Symbol 592 MovieClip Frame 1
stop();
Symbol 596 MovieClip Frame 1
_parent.bitcount = _parent.bitcount + 1;
thisis = _parent.bitcount;
Symbol 596 MovieClip Frame 2
planet_size = (this._height * this._height) * _root.grav_adjust;
bounce = 5;
if (_root.ball_live > _root.blwait) {
if (this.hitTest(_root.x, _root.y, true)) {
shob.gotoAndPlay(2);
xdist = _root.x - this._x;
ydist = _root.y - this._y;
hdist = Math.sqrt((xdist * xdist) + (ydist * ydist));
pull = (1.5 / (hdist * hdist)) * planet_size;
one_percent = (Math.abs(xdist) + Math.abs(ydist)) / 100;
x_percentage = Math.abs(xdist) / one_percent;
y_percentage = Math.abs(ydist) / one_percent;
one_percent_of_pull = pull / 100;
x_percentage_of_pull = one_percent_of_pull * x_percentage;
y_percentage_of_pull = one_percent_of_pull * y_percentage;
_root.pling.gotoAndPlay(2);
_root.bounce.start();
if (_root.x < this._x) {
_root.xs = _root.xs - (x_percentage_of_pull * bounce);
} else if (_root.x > this._x) {
_root.xs = _root.xs + (x_percentage_of_pull * bounce);
}
if (_root.y < this._y) {
_root.ys = _root.ys - (y_percentage_of_pull * bounce);
} else if (_root.y > this._y) {
_root.ys = _root.ys + (y_percentage_of_pull * bounce);
}
}
if (_root.xs > _root.speedlimit) {
_root.xs = _root.speedlimit;
}
if (_root.xs < (-_root.speedlimit)) {
_root.xs = -_root.speedlimit;
}
if (_root.ys > _root.speedlimit) {
_root.ys = _root.speedlimit;
}
if (_root.ys < (-_root.speedlimit)) {
_root.ys = -_root.speedlimit;
}
}
if (_root.test_hit_power_up > 0) {
if (_parent.hitTest(_root.power_up1)) {
_root.hit_power_up1 = 1;
}
if (_parent.hitTest(_root.power_up2)) {
_root.hit_power_up2 = 1;
}
if (_parent.hitTest(_root.power_up3)) {
_root.hit_power_up3 = 1;
}
if (_parent.hitTest(_root.power_up4)) {
_root.hit_power_up4 = 1;
}
}
Symbol 596 MovieClip Frame 3
if (thisis != _parent.whose_open) {
prevFrame();
play();
}
Symbol 596 MovieClip Frame 4
if (this.hitTest(_root.real_ball.ball)) {
_root.ball_on = 0;
_root.times = _root.times * 2;
_root.gotoAndPlay("done");
_parent.stop();
gotoAndPlay (6);
}
Symbol 596 MovieClip Frame 5
if (thisis == _parent.whose_open) {
prevFrame();
play();
} else {
gotoAndPlay (2);
}
Symbol 596 MovieClip Frame 6
stop();
Symbol 597 MovieClip Frame 1
_parent.bitcount = _parent.bitcount + 1;
thisis = _parent.bitcount;
Symbol 597 MovieClip Frame 2
planet_size = (this._height * this._height) * _root.grav_adjust;
bounce = 5;
if (_root.ball_live > _root.blwait) {
if (this.hitTest(_root.x, _root.y, true)) {
shob.gotoAndPlay(2);
xdist = _root.x - this._x;
ydist = _root.y - this._y;
hdist = Math.sqrt((xdist * xdist) + (ydist * ydist));
pull = (1.5 / (hdist * hdist)) * planet_size;
one_percent = (Math.abs(xdist) + Math.abs(ydist)) / 100;
x_percentage = Math.abs(xdist) / one_percent;
y_percentage = Math.abs(ydist) / one_percent;
one_percent_of_pull = pull / 100;
x_percentage_of_pull = one_percent_of_pull * x_percentage;
y_percentage_of_pull = one_percent_of_pull * y_percentage;
_root.pling.gotoAndPlay(2);
_root.bounce.start();
if (_root.x < this._x) {
_root.xs = _root.xs - (x_percentage_of_pull * bounce);
} else if (_root.x > this._x) {
_root.xs = _root.xs + (x_percentage_of_pull * bounce);
}
if (_root.y < this._y) {
_root.ys = _root.ys - (y_percentage_of_pull * bounce);
} else if (_root.y > this._y) {
_root.ys = _root.ys + (y_percentage_of_pull * bounce);
}
}
if (_root.xs > _root.speedlimit) {
_root.xs = _root.speedlimit;
}
if (_root.xs < (-_root.speedlimit)) {
_root.xs = -_root.speedlimit;
}
if (_root.ys > _root.speedlimit) {
_root.ys = _root.speedlimit;
}
if (_root.ys < (-_root.speedlimit)) {
_root.ys = -_root.speedlimit;
}
}
if (_root.test_hit_power_up > 0) {
if (_parent.hitTest(_root.power_up1)) {
_root.hit_power_up1 = 1;
}
if (_parent.hitTest(_root.power_up2)) {
_root.hit_power_up2 = 1;
}
if (_parent.hitTest(_root.power_up3)) {
_root.hit_power_up3 = 1;
}
if (_parent.hitTest(_root.power_up4)) {
_root.hit_power_up4 = 1;
}
}
Symbol 597 MovieClip Frame 3
if (thisis != _parent.whose_open) {
prevFrame();
play();
}
Symbol 597 MovieClip Frame 4
if (this.hitTest(_root.real_ball.ball)) {
_root.ball_on = 0;
_root.gotoAndPlay("done");
_parent.stop();
gotoAndPlay (6);
}
Symbol 597 MovieClip Frame 5
if (thisis == _parent.whose_open) {
prevFrame();
play();
} else {
gotoAndPlay (2);
}
Symbol 597 MovieClip Frame 6
stop();
Symbol 598 MovieClip Frame 1
whose_open = 1;
whose_open_max = 6;
count_max = _root.hole_change_speed;
count = 0;
bitcount = 0;
Symbol 598 MovieClip Frame 2
count = count + 1;
if (count > count_max) {
count = 0;
whose_open = whose_open + 1;
if (whose_open > whose_open_max) {
whose_open = 1;
}
}
Symbol 598 MovieClip Frame 3
prevFrame();
play();
Symbol 598 MovieClip Frame 5
stop();
Symbol 610 MovieClip Frame 1
_parent.bitcount = _parent.bitcount + 1;
thisis = _parent.bitcount;
Symbol 610 MovieClip Frame 2
planet_size = (this._height * this._height) * _root.grav_adjust;
bounce = 5;
if (_root.ball_live > _root.blwait) {
if (this.hitTest(_root.x, _root.y, true)) {
shob.gotoAndPlay(2);
xdist = _root.x - this._x;
ydist = _root.y - this._y;
hdist = Math.sqrt((xdist * xdist) + (ydist * ydist));
pull = (1.5 / (hdist * hdist)) * planet_size;
one_percent = (Math.abs(xdist) + Math.abs(ydist)) / 100;
x_percentage = Math.abs(xdist) / one_percent;
y_percentage = Math.abs(ydist) / one_percent;
one_percent_of_pull = pull / 100;
x_percentage_of_pull = one_percent_of_pull * x_percentage;
y_percentage_of_pull = one_percent_of_pull * y_percentage;
_root.pling.gotoAndPlay(2);
_root.bounce.start();
if (_root.x < this._x) {
_root.xs = _root.xs - (x_percentage_of_pull * bounce);
} else if (_root.x > this._x) {
_root.xs = _root.xs + (x_percentage_of_pull * bounce);
}
if (_root.y < this._y) {
_root.ys = _root.ys - (y_percentage_of_pull * bounce);
} else if (_root.y > this._y) {
_root.ys = _root.ys + (y_percentage_of_pull * bounce);
}
}
if (_root.xs > _root.speedlimit) {
_root.xs = _root.speedlimit;
}
if (_root.xs < (-_root.speedlimit)) {
_root.xs = -_root.speedlimit;
}
if (_root.ys > _root.speedlimit) {
_root.ys = _root.speedlimit;
}
if (_root.ys < (-_root.speedlimit)) {
_root.ys = -_root.speedlimit;
}
}
if (_root.test_hit_power_up > 0) {
if (_parent.hitTest(_root.power_up1)) {
_root.hit_power_up1 = 1;
}
if (_parent.hitTest(_root.power_up2)) {
_root.hit_power_up2 = 1;
}
if (_parent.hitTest(_root.power_up3)) {
_root.hit_power_up3 = 1;
}
if (_parent.hitTest(_root.power_up4)) {
_root.hit_power_up4 = 1;
}
}
Symbol 610 MovieClip Frame 3
if (thisis != _parent.whose_open) {
prevFrame();
play();
}
Symbol 610 MovieClip Frame 4
if (this.hitTest(_root.real_ball.ball)) {
_root.ball_on = 0;
_root.times = _root.times * 4;
_root.gotoAndPlay("done");
_parent.stop();
gotoAndPlay (6);
}
Symbol 610 MovieClip Frame 5
if (thisis == _parent.whose_open) {
prevFrame();
play();
} else {
gotoAndPlay (2);
}
Symbol 610 MovieClip Frame 6
stop();
Symbol 611 MovieClip Frame 1
whose_open = 1;
whose_open_max = 6;
count_max = _root.hole_change_speed;
count = 0;
bitcount = 0;
Symbol 611 MovieClip Frame 2
count = count + 1;
if (count > count_max) {
count = 0;
whose_open = whose_open + 1;
if (whose_open > whose_open_max) {
whose_open = 1;
}
}
Symbol 611 MovieClip Frame 3
prevFrame();
play();
Symbol 611 MovieClip Frame 5
stop();
Symbol 614 MovieClip Frame 1
_parent.bitcount = _parent.bitcount + 1;
thisis = _parent.bitcount;
Symbol 614 MovieClip Frame 2
planet_size = (this._height * this._height) * _root.grav_adjust;
bounce = 5;
if (_root.ball_live > _root.blwait) {
if (this.hitTest(_root.x, _root.y, true)) {
shob.gotoAndPlay(2);
xdist = _root.x - this._x;
ydist = _root.y - this._y;
hdist = Math.sqrt((xdist * xdist) + (ydist * ydist));
pull = (1.5 / (hdist * hdist)) * planet_size;
one_percent = (Math.abs(xdist) + Math.abs(ydist)) / 100;
x_percentage = Math.abs(xdist) / one_percent;
y_percentage = Math.abs(ydist) / one_percent;
one_percent_of_pull = pull / 100;
x_percentage_of_pull = one_percent_of_pull * x_percentage;
y_percentage_of_pull = one_percent_of_pull * y_percentage;
_root.pling.gotoAndPlay(2);
_root.bounce.start();
if (_root.x < this._x) {
_root.xs = _root.xs - (x_percentage_of_pull * bounce);
} else if (_root.x > this._x) {
_root.xs = _root.xs + (x_percentage_of_pull * bounce);
}
if (_root.y < this._y) {
_root.ys = _root.ys - (y_percentage_of_pull * bounce);
} else if (_root.y > this._y) {
_root.ys = _root.ys + (y_percentage_of_pull * bounce);
}
}
if (_root.xs > _root.speedlimit) {
_root.xs = _root.speedlimit;
}
if (_root.xs < (-_root.speedlimit)) {
_root.xs = -_root.speedlimit;
}
if (_root.ys > _root.speedlimit) {
_root.ys = _root.speedlimit;
}
if (_root.ys < (-_root.speedlimit)) {
_root.ys = -_root.speedlimit;
}
}
if (_root.test_hit_power_up > 0) {
if (_parent.hitTest(_root.power_up1)) {
_root.hit_power_up1 = 1;
}
if (_parent.hitTest(_root.power_up2)) {
_root.hit_power_up2 = 1;
}
if (_parent.hitTest(_root.power_up3)) {
_root.hit_power_up3 = 1;
}
if (_parent.hitTest(_root.power_up4)) {
_root.hit_power_up4 = 1;
}
}
Symbol 614 MovieClip Frame 3
if (thisis != _parent.whose_open) {
prevFrame();
play();
}
Symbol 614 MovieClip Frame 4
if (this.hitTest(_root.real_ball.ball)) {
_root.ball_on = 0;
_root.times = _root.times * 8;
_root.gotoAndPlay("done");
_parent.stop();
gotoAndPlay (6);
}
Symbol 614 MovieClip Frame 5
if (thisis == _parent.whose_open) {
prevFrame();
play();
} else {
gotoAndPlay (2);
}
Symbol 614 MovieClip Frame 6
stop();
Symbol 615 MovieClip Frame 1
whose_open = 1;
whose_open_max = 6;
count_max = _root.hole_change_speed;
count = 0;
bitcount = 0;
Symbol 615 MovieClip Frame 2
count = count + 1;
if (count > count_max) {
count = 0;
whose_open = whose_open + 1;
if (whose_open > whose_open_max) {
whose_open = 1;
}
}
Symbol 615 MovieClip Frame 3
prevFrame();
play();
Symbol 615 MovieClip Frame 5
stop();
Symbol 618 MovieClip Frame 1
_root.xtras = 1;
_root.grav_adjust = 1.7;
Symbol 618 MovieClip Frame 2
_root.xtras = 1;
_root.grav_adjust = 1.7;
Symbol 618 MovieClip Frame 3
_root.xtras = 1;
_root.grav_adjust = 1.7;
Symbol 618 MovieClip Frame 4
_root.xtras = 1;
_root.grav_adjust = 1.7;
Symbol 618 MovieClip Frame 5
_root.xtras = 1;
_root.grav_adjust = 1.7;
Symbol 618 MovieClip Frame 6
_root.xtras = 1;
_root.grav_adjust = 1.7;
Symbol 618 MovieClip Frame 7
_root.xtras = 1;
_root.grav_adjust = 1.7;
Symbol 618 MovieClip Frame 8
_root.xtras = 1;
_root.grav_adjust = 1.7;
Symbol 618 MovieClip Frame 9
_root.xtras = 1;
_root.grav_adjust = 1.7;
Symbol 618 MovieClip Frame 10
_root.xtras = 1;
_root.grav_adjust = 1.7;
Symbol 618 MovieClip Frame 11
_root.xtras = 1;
_root.grav_adjust = 1.7;
Symbol 618 MovieClip Frame 12
_root.xtras = 1;
_root.grav_adjust = 1.7;
Symbol 618 MovieClip Frame 13
_root.xtras = 1;
_root.grav_adjust = 1.7;
Symbol 618 MovieClip Frame 14
_root.xtras = 1;
_root.grav_adjust = 1.7;
Symbol 618 MovieClip Frame 15
_root.xtras = 1;
_root.grav_adjust = 1.7;
Symbol 618 MovieClip Frame 16
_root.xtras = 1;
_root.grav_adjust = 1.7;
Symbol 618 MovieClip Frame 17
_root.xtras = 1;
_root.grav_adjust = 1.7;
Symbol 618 MovieClip Frame 18
_root.xtras = 1;
_root.grav_adjust = 1.7;
Symbol 618 MovieClip Frame 19
_root.xtras = 1;
_root.grav_adjust = 1.7;
Symbol 618 MovieClip Frame 20
_root.xtras = 1;
_root.grav_adjust = 1.7;
Symbol 618 MovieClip Frame 21
_root.grav_adjust = 1.7;
Symbol 618 MovieClip Frame 27
_root.xtras = 0;
_root.grav_adjust = 1.7;
Symbol 618 MovieClip Frame 28
_root.grav_adjust = 1.7;
Symbol 618 MovieClip Frame 31
_root.xtras = 0;
_root.grav_adjust = 1.7;
Symbol 618 MovieClip Frame 32
_root.xtras = 0;
_root.hole_change_speed = 20;
_root.bounce_value = _root.obounce_value * 10;
_root.limitz = 1;
Symbol 618 MovieClip Frame 33
_root.xtras = 0;
_root.hole_change_speed = 15;
_root.limitz = 1;
Symbol 618 MovieClip Frame 34
_root.xtras = 0;
_root.hole_change_speed = 10;
_root.limitz = 1;
Symbol 618 MovieClip Frame 35
_root.bounce_value = _root.obounce_value;
Symbol 621 MovieClip Frame 1
stop();
Symbol 625 MovieClip Frame 1
_root.x = this._x;
_root.y = this._y;
_root.real_x = _root.x;
_root.real_y = _root.y;
_root.xs = 0;
_root.ys = 0;
_root.ox = 0;
_root.oy = 0;
_root.accel = 1;
_root.ball_live = 0;
rocketon = 0;
hadfuel = 0;
Symbol 625 MovieClip Frame 2
_root.ox = _root.real_x;
_root.oy = _root.real_y;
if (_root.fuel > 0) {
hadfuel = 1;
}
if (_root.ball_on == 1) {
_root.ball_live = _root.ball_live + 1;
if (Key.isDown(37) and ((_root.fuel > 0) or (_root.cheatz == 1))) {
_root.xs = _root.xs - _root.accel;
if (_root.cheatz != 1) {
_root.fuel = _root.fuel - random(_root.fuel_value * 2);
}
moo.gotoAndPlay(2);
moo._rotation = 0;
if (rocketon != 1) {
rocketon = 1;
_root.sound.gotoAndPlay("rocketloop");
}
} else if (Key.isDown(39) and ((_root.fuel > 0) or (_root.cheatz == 1))) {
_root.xs = _root.xs + _root.accel;
if (_root.cheatz != 1) {
_root.fuel = _root.fuel - random(_root.fuel_value * 2);
}
moo.gotoAndPlay(2);
moo._rotation = 180;
if (rocketon != 1) {
rocketon = 1;
_root.sound.gotoAndPlay("rocketloop");
}
} else if (Key.isDown(38) and ((_root.fuel > 0) or (_root.cheatz == 1))) {
_root.ys = _root.ys - _root.accel;
if (_root.cheatz != 1) {
_root.fuel = _root.fuel - random(_root.fuel_value * 2);
}
if (rocketon != 1) {
rocketon = 1;
_root.sound.gotoAndPlay("rocketloop");
}
if (Key.isDown(37)) {
moo.gotoAndPlay(2);
moo._rotation = 45;
} else if (Key.isDown(39)) {
moo.gotoAndPlay(2);
moo._rotation = 135;
} else {
moo.gotoAndPlay(2);
moo._rotation = 90;
}
} else if (Key.isDown(40) and ((_root.fuel > 0) or (_root.cheatz == 1))) {
_root.ys = _root.ys + _root.accel;
if (_root.cheatz != 1) {
_root.fuel = _root.fuel - random(_root.fuel_value * 2);
}
if (rocketon != 1) {
rocketon = 1;
_root.sound.gotoAndPlay("rocketloop");
}
if (Key.isDown(37)) {
moo.gotoAndPlay(2);
moo._rotation = 315;
} else if (Key.isDown(39)) {
moo.gotoAndPlay(2);
moo._rotation = 225;
} else {
moo.gotoAndPlay(2);
moo._rotation = 270;
}
} else if (rocketon == 1) {
_root.sound.gotoAndPlay("rocketstop");
rocketon = 0;
}
if ((hadfuel == 1) and (_root.fuel < 1E-5)) {
_root.sound.gotoAndPlay("rocketrunout");
rocketon = 0;
hadfuel = 0;
}
if (_root.planet_immune > 0) {
_root.planet_immune = _root.planet_immune - 1;
}
_root.real_x = _root.x;
_root.real_y = _root.y;
if (_root.limitz == 1) {
if (_root.x > _root.maxx) {
_root.x = _root.maxx - (_root.xs * _root.edgefriction);
if (_root.xs > 0) {
_root.xs = -_root.xs;
}
_root.pling.gotoAndPlay(2);
_root.bounce.start();
}
if (_root.x < _root.minx) {
_root.x = _root.minx + (_root.xs * _root.edgefriction);
if (_root.xs < 0) {
_root.xs = -_root.xs;
}
_root.pling.gotoAndPlay(2);
_root.bounce.start();
}
if (_root.y > _root.maxy) {
_root.y = _root.maxy - (_root.ys * _root.edgefriction);
if (_root.ys > 0) {
_root.ys = -_root.ys;
}
_root.pling.gotoAndPlay(2);
_root.bounce.start();
}
if (_root.y < _root.miny) {
_root.y = _root.miny + (_root.ys * _root.edgefriction);
if (_root.ys < 0) {
_root.ys = -_root.ys;
}
_root.pling.gotoAndPlay(2);
_root.bounce.start();
}
}
if (_root.xs > _root.speedlimit) {
_root.xs = _root.speedlimit;
}
if (_root.xs < (-_root.speedlimit)) {
_root.xs = -_root.speedlimit;
}
if (_root.ys > _root.speedlimit) {
_root.ys = _root.speedlimit;
}
if (_root.ys < (-_root.speedlimit)) {
_root.ys = -_root.speedlimit;
}
_root.x = _root.x + _root.xs;
_root.y = _root.y + _root.ys;
_root.xs = _root.xs * _root.friction;
_root.ys = _root.ys * _root.friction;
_root.predict._x = _root.x;
_root.predict._y = _root.y;
_root.real_ball._x = _root.real_x;
_root.real_ball._y = _root.real_y;
if ((_root.hit_planet == 1) and (_root.planet_immune < 1)) {
_root.ball_on = 0;
_root.gotoAndPlay("boom");
}
x = _root.real_x;
y = _root.real_y;
xt = _root.ox;
yt = _root.oy;
x = this._x;
y = this._y;
xt = _root.x;
yt = _root.y;
xd = x - xt;
yd = y - yt;
radius = Math.sqrt((xd * xd) + (yd * yd));
angle = Math.asin(yd / radius);
degree = 57.2957795130823 * angle;
if (xd < 0) {
degrees = 180 - degree;
} else {
degrees = degree;
}
mish._rotation = degrees;
mish._xscale = radius / 1.5;
} else {
mish._xscale = 0.01;
}
_root.sloped = 0;
if (_root.fuel < 0) {
_root.fuel = 0;
}
Symbol 625 MovieClip Frame 3
prevFrame();
play();
Symbol 634 MovieClip Frame 2
if (ol.hitTest(_root.real_ball._x, _root.real_ball._y, true)) {
_root.ball_on = 0;
_root.ball_live = 0;
_root.x = -1000;
_root.y = -1000;
_root.real_x = -1000;
_root.real_y = -1000;
_root.real_ball._x = _root.x;
_root.real_ball._y = _root.y;
_root.predict._x = -1000;
_root.predict._y = -1000;
_root.tube_rides = _root.tube_rides + 1;
gotoAndPlay (4);
}
if (outer.hitTest(_root.real_ball._x, _root.real_ball._y, true)) {
_root.ball_on = 0;
_root.ball_live = 0;
_root.x = -1000;
_root.y = -1000;
_root.real_x = -1000;
_root.real_y = -1000;
_root.real_ball._x = _root.x;
_root.real_ball._y = _root.y;
_root.predict._x = -1000;
_root.predict._y = -1000;
_root.tube_rides = _root.tube_rides + 1;
gotoAndPlay (46);
}
if (_root.test_hit_power_up > 0) {
if (this.hitTest(_root.power_up1)) {
_root.hit_power_up1 = 1;
}
if (this.hitTest(_root.power_up2)) {
_root.hit_power_up2 = 1;
}
if (this.hitTest(_root.power_up3)) {
_root.hit_power_up3 = 1;
}
if (this.hitTest(_root.power_up4)) {
_root.hit_power_up4 = 1;
}
}
Symbol 634 MovieClip Frame 3
prevFrame();
play();
Symbol 634 MovieClip Frame 27
_root.real_x = this._x + this.outer._x;
_root.real_y = this._y + this.outer._y;
_root.x = _root.real_x;
_root.y = _root.real_y;
_root.xs = -10;
_root.ys = _root.ys / 10;
_root.real_ball._x = _root.x;
_root.real_ball._y = _root.y;
_root.ball_on = 1;
Symbol 634 MovieClip Frame 31
gotoAndPlay (1);
Symbol 634 MovieClip Frame 69
_root.real_x = this._x + this.ol._x;
_root.real_y = this._y + this.ol._y;
_root.x = _root.real_x;
_root.y = _root.real_y;
_root.xs = 10;
_root.ys = _root.ys / 10;
_root.real_ball._x = _root.x;
_root.real_ball._y = _root.y;
_root.ball_on = 1;
Symbol 634 MovieClip Frame 75
gotoAndPlay (1);
Symbol 635 MovieClip Frame 1
stop();
Symbol 649 MovieClip Frame 1
if (_root.xtras == 4) {
gotoAndStop (7);
} else if (_root.xtras == 2) {
gotoAndStop (6);
} else if ((random(4) == 1) and (_root.timesup != 1)) {
if (_root.times == 16) {
if (_root.xtras != 3) {
gotoAndStop (6);
} else {
gotoAndStop (7);
}
} else if (_root.times == 8) {
if (_root.shots > 10) {
gotoAndStop (5);
} else {
gotoAndStop (7);
}
_root.timesup = 1;
} else if (_root.times == 4) {
if (_root.shots > 4) {
gotoAndStop (4);
} else {
gotoAndStop (7);
}
_root.timesup = 1;
} else if (_root.times == 2) {
gotoAndStop (3);
_root.timesup = 1;
} else if (_root.times == 1) {
gotoAndStop (2);
_root.timesup = 1;
}
} else if (random(3) == 1) {
if (_root.xtras != 3) {
gotoAndStop (6);
} else {
gotoAndStop (7);
}
} else {
gotoAndStop (7);
}
Symbol 650 MovieClip Frame 2
if (_root.xtras == 0) {
stop();
}
_root.power_ups = _root.power_ups + 1;
thisis = int(substring(this._name, 9, 1));
this_on = 1;
Symbol 650 MovieClip Frame 3
if (this_on == 1) {
this._x = random(_root.maxx - 100) + 50;
this._y = random(_root.maxy - 100) + 50;
} else if ((random(100) == 1) or (_root.xtras == 2)) {
this_on = 1;
this._x = random(_root.maxx - 100) + 50;
this._y = random(_root.maxy - 100) + 50;
}
Symbol 650 MovieClip Frame 5
bad = 0;
n = 1;
while (n < (_root.power_ups + 1)) {
if (thisis != n) {
if (this.hitTest(eval ("_root.power_up" + n))) {
bad = 1;
}
}
n++;
}
a = eval ("_root.hit_power_up" + thisis);
if (((eval ("_root.hit_power_up" + thisis) == 1) or (bad == 1)) or (this_on == 0)) {
Set("_root.hit_power_up" + thisis, 0);
gotoAndPlay (3);
}
if (_root.xtras == 0) {
prevFrame();
play();
}
Symbol 650 MovieClip Frame 11
if (this.hitTest(_root.real_ball)) {
if (bob._currentframe == 2) {
_root.sound.gotoAndPlay("pickupbonus");
_root.times = 2;
_root.timesup = 0;
} else if (bob._currentframe == 3) {
_root.sound.gotoAndPlay("pickupbonus");
_root.times = 4;
_root.timesup = 0;
} else if (bob._currentframe == 4) {
_root.sound.gotoAndPlay("pickupbonus");
_root.times = 8;
_root.timesup = 0;
} else if (bob._currentframe == 5) {
_root.sound.gotoAndPlay("pickupbonus");
_root.times = 16;
_root.timesup = 0;
} else if (bob._currentframe == 6) {
_root.sound.gotoAndPlay("pickupfuel");
_root.fuel = _root.fuel + (10 * _root.fuel_value);
} else if (bob._currentframe == 7) {
_root.sound.gotoAndPlay("pickupgem");
_root.gems = _root.gems + 1;
}
} else {
prevFrame();
play();
}
Symbol 650 MovieClip Frame 20
this_on = 0;
gotoAndPlay (3);
Symbol 650 MovieClip Frame 29
this_on = 0;
gotoAndPlay (3);
Symbol 667 Button
on (release, keyPress "n") {
_root.nameme = 1;
_parent.play();
}
on (keyPress "N") {
_root.nameme = 1;
_parent.play();
}
Symbol 672 Button
on (release, keyPress "<Space>") {
_parent.gotoAndPlay(12);
}
Symbol 675 MovieClip Frame 1
levpass = "Password: " + _root.passwords[_root.level].toUpperCase();
levno = "LEVEL " + _root.level;
curpla = "Current Player is " + _root.myname;
Symbol 676 MovieClip Frame 1
_root.nobutts = 2;
Symbol 676 MovieClip Frame 2
_root.nobutts = 2;
Symbol 676 MovieClip Frame 3
_root.nobutts = 2;
Symbol 676 MovieClip Frame 12
stop();
Mouse.show();
Symbol 676 MovieClip Frame 16
_root.nobutts = 0;
_root.gotoAndPlay("place");
Symbol 676 MovieClip Frame 17
stop();
_root.nobutts = 0;
Symbol 679 Button
on (release) {
_root.music = 2;
_root.music_started = 0;
_root.music_controls.gotoAndPlay("spacey");
_root.scoreboard.data.music = _root.music;
_root.scoreboard.flush();
}
Symbol 680 Button
on (release) {
_root.music = 0;
_root.music_started = 0;
_root.music_controls.gotoAndPlay("off");
_root.scoreboard.data.music = _root.music;
_root.scoreboard.flush();
}
Symbol 683 Button
on (release) {
_root.music = 1;
_root.music_started = 0;
_root.music_controls.gotoAndPlay("dnb");
_root.scoreboard.data.music = _root.music;
_root.scoreboard.flush();
}
Symbol 684 MovieClip Frame 1
if (_root.music != 1) {
gotoAndPlay (3);
}
Symbol 684 MovieClip Frame 2
prevFrame();
play();
Symbol 684 MovieClip Frame 3
if (_root.music != 2) {
gotoAndPlay (5);
}
Symbol 684 MovieClip Frame 4
prevFrame();
play();
Symbol 684 MovieClip Frame 5
if (_root.music != 0) {
gotoAndPlay (1);
}
Symbol 684 MovieClip Frame 6
prevFrame();
play();
Symbol 695 Button
on (release) {
getURL ("http://www.armorgames.com", "_blank");
}
Symbol 701 MovieClip Frame 1
disp2 = String(int(_parent.fuel));
a = length(disp2);
disp3 = "";
do {
nexta = a - 3;
t = disp2.substring(a - 3, a);
if (nexta > 0) {
disp3 = t.concat(disp3);
disp3 = ",".concat(disp3);
a = nexta;
} else {
disp3 = t + disp3;
}
} while (nexta > 0);
Symbol 701 MovieClip Frame 2
prevFrame();
play();
Symbol 703 MovieClip Frame 1
_root.airtime2 = String(int(_root.airtime));
a = length(_root.airtime2);
_root.airtime3 = "";
do {
nexta = a - 3;
t = _root.airtime2.substring(a - 3, a);
if (nexta > 0) {
_root.airtime3 = t.concat(_root.airtime3);
_root.airtime3 = ",".concat(_root.airtime3);
a = nexta;
} else {
_root.airtime3 = t + _root.airtime3;
}
} while (nexta > 0);
Symbol 703 MovieClip Frame 2
_root.airtime2 = String(int(_root.airtime));
a = length(_root.airtime2);
_root.airtime3 = "";
do {
nexta = a - 3;
t = _root.airtime2.substring(a - 3, a);
if (nexta > 0) {
_root.airtime3 = t.concat(_root.airtime3);
_root.airtime3 = ",".concat(_root.airtime3);
a = nexta;
} else {
_root.airtime3 = t + _root.airtime3;
}
} while (nexta > 0);
Symbol 705 MovieClip Frame 1
_root.score2 = String(int(_root.score));
a = length(_root.score2);
_root.score3 = "";
do {
nexta = a - 3;
t = _root.score2.substring(a - 3, a);
if (nexta > 0) {
_root.score3 = t.concat(_root.score3);
_root.score3 = ",".concat(_root.score3);
a = nexta;
} else {
_root.score3 = t + _root.score3;
}
} while (nexta > 0);
Symbol 705 MovieClip Frame 2
_root.score2 = String(int(_root.score));
a = length(_root.score2);
_root.score3 = "";
do {
nexta = a - 3;
t = _root.score2.substring(a - 3, a);
if (nexta > 0) {
_root.score3 = t.concat(_root.score3);
_root.score3 = ",".concat(_root.score3);
a = nexta;
} else {
_root.score3 = t + _root.score3;
}
} while (nexta > 0);
Symbol 706 Button
on (keyPress "[") {
if (_root.cheatz == 1) {
_root.ball_on = 0;
_root.level = _root.level - 1;
if (_root.level < 1) {
_root.level = 1;
}
_root.gotoAndPlay("Reset");
_root.complete_game = 0;
_root.score = 0;
}
}
on (keyPress "]") {
if (_root.cheatz == 1) {
_root.ball_on = 0;
_root.level = _root.level + 1;
if (_root.level > _root.maxlevels) {
_root.level = _root.maxlevels;
}
_root.gotoAndPlay("Reset");
_root.complete_game = 0;
_root.score = 0;
}
}
on (keyPress "F") {
if (_root.ball_on != 0) {
_root.ball_on = 0;
_root.ball_live = 0;
_root.predict._x = -1000;
_root.predict._y = -1000;
_root.real_ball._x = -1000;
_root.real_ball._y = -1000;
_root.gotoAndPlay("Place");
}
}
on (keyPress "f") {
if (_root.ball_on != 0) {
_root.ball_on = 0;
_root.ball_live = 0;
_root.predict._x = -1000;
_root.predict._y = -1000;
_root.real_ball._x = -1000;
_root.real_ball._y = -1000;
_root.gotoAndPlay("Place");
}
}
Symbol 707 MovieClip Frame 1
if (_root.nobutts == 1) {
gotoAndPlay (7);
}
Symbol 707 MovieClip Frame 2
prevFrame();
play();
Symbol 707 MovieClip Frame 8
if (_root.nobutts == 1) {
prevFrame();
play();
}
Symbol 711 MovieClip Frame 1
stop();
Symbol 711 MovieClip Frame 2
stop();
Symbol 715 Button
on (release, keyPress "<Enter>") {
ok = 0;
passtry = passtry.toLowerCase();
n = 1;
while (n < (_root.maxlevels + 1)) {
if (passtry == _root.passwords[n]) {
_root.level = n;
ok = 1;
}
n++;
}
if (ok == 0) {
badtry.gotoAndStop(2);
} else {
_root.complete_game = 0;
_root.gotoAndPlay("Reset");
_parent.play();
}
}
Symbol 719 Button
on (release, keyPress "<Escape>") {
_parent.play();
}
Symbol 720 MovieClip Frame 1
passtry = "";
Selection.setFocus("mytxt");
Symbol 721 MovieClip Frame 1
stop();
_root.nobutts = 0;
Symbol 721 MovieClip Frame 7
_root.nobutts = 1;
stop();
Mouse.show();
Symbol 724 Button
on (release, keyPress "<Enter>") {
_root.scoreboard.data.myname = _root.myname;
_root.scoreboard.flush();
if (_root.myname == "Armegalo") {
_root.cheatz = 1;
gotoAndStop (2);
} else if (_root.cheatz == 1) {
_root.cheatz = 0;
_root.score = 0;
gotoAndStop (3);
} else {
_parent.play();
}
}
Symbol 727 Button
on (release, keyPress "<Enter>") {
_parent.play();
}
Symbol 730 MovieClip Frame 1
levpass = "password: " + _root.passwords[_root.level];
levno = "LEVEL " + _root.level;
Selection.setFocus("passin");
stop();
Symbol 731 MovieClip Frame 1
stop();
_root.nobutts = 0;
Symbol 731 MovieClip Frame 7
_root.nobutts = 1;
Mouse.show();
stop();
Symbol 736 Button
on (release) {
gotoAndStop (30);
}
Symbol 740 Button
on (release, keyPress "r") {
_root.just_reset = _root.shots;
_root.ball_on = 0;
_root.gotoAndPlay("Reset");
}
on (keyPress "R") {
_root.just_reset = _root.shots;
_root.ball_on = 0;
_root.gotoAndPlay("Reset");
}
Symbol 741 Button
on (release, keyPress "m") {
_root.music = 2;
_root.music_controls.gotoAndPlay("spacey");
_root.scoreboard.data.music = _root.music;
_root.scoreboard.flush();
}
Symbol 742 Button
on (release, keyPress "m") {
_root.music = 0;
_root.music_controls.gotoAndPlay("off");
_root.scoreboard.data.music = _root.music;
_root.scoreboard.flush();
}
Symbol 743 Button
on (release, keyPress "m") {
_root.music = 1;
_root.music_controls.gotoAndPlay("dnb");
_root.scoreboard.data.music = _root.music;
_root.scoreboard.flush();
}
Symbol 744 MovieClip Frame 1
if (_root.music != 1) {
gotoAndPlay (3);
}
Symbol 744 MovieClip Frame 2
prevFrame();
play();
Symbol 744 MovieClip Frame 3
if (_root.music != 2) {
gotoAndPlay (5);
}
Symbol 744 MovieClip Frame 4
prevFrame();
play();
Symbol 744 MovieClip Frame 5
if (_root.music != 0) {
gotoAndPlay (1);
}
Symbol 744 MovieClip Frame 6
prevFrame();
play();
Symbol 745 Button
on (release, keyPress "c") {
_root.audience = 0;
_root.sound.gotoAndPlay("crowdstop");
_root.scoreboard.data.audience = _root.audience;
_root.scoreboard.flush();
}
Symbol 746 Button
on (release, keyPress "c") {
_root.audience = 1;
_root.sound.gotoAndPlay("crowd");
_root.scoreboard.data.audience = _root.audience;
_root.scoreboard.flush();
}
Symbol 747 MovieClip Frame 1
if (_root.audience != 1) {
gotoAndPlay (3);
}
Symbol 747 MovieClip Frame 2
prevFrame();
play();
Symbol 747 MovieClip Frame 3
if (_root.audience != 0) {
gotoAndPlay (1);
}
Symbol 747 MovieClip Frame 4
prevFrame();
play();
Symbol 748 Button
on (release, keyPress "q") {
_root.game_quality = "MEDIUM";
_quality = _root.game_quality;
gotoAndPlay (3);
_root.scoreboard.data.game_quality = _root.game_quality;
_root.scoreboard.flush();
}
Symbol 749 Button
on (release, keyPress "q") {
_root.game_quality = "LOW";
_quality = _root.game_quality;
gotoAndPlay (5);
_root.scoreboard.data.game_quality = _root.game_quality;
_root.scoreboard.flush();
}
Symbol 750 Button
on (release, keyPress "q") {
_root.game_quality = "HIGH";
_quality = _root.game_quality;
gotoAndPlay (1);
_root.scoreboard.data.game_quality = _root.game_quality;
_root.scoreboard.flush();
}
Symbol 751 MovieClip Frame 1
if (_root.game_quality != "HIGH") {
gotoAndPlay (3);
}
Symbol 751 MovieClip Frame 2
prevFrame();
play();
Symbol 751 MovieClip Frame 3
if (_root.game_quality != "MEDIUM") {
gotoAndPlay (5);
}
Symbol 751 MovieClip Frame 4
prevFrame();
play();
Symbol 751 MovieClip Frame 5
if (_root.game_quality != "LOW") {
gotoAndPlay (1);
}
Symbol 751 MovieClip Frame 6
prevFrame();
play();
Symbol 752 MovieClip Frame 1
if (_root.atmospheres != 1) {
gotoAndPlay (3);
}
Symbol 752 MovieClip Frame 2
prevFrame();
play();
Symbol 752 MovieClip Frame 3
if (_root.atmospheres != 0) {
gotoAndPlay (1);
}
Symbol 752 MovieClip Frame 4
prevFrame();
play();
Symbol 756 Button
on (release, keyPress "<Enter>") {
_parent.play();
}
on (keyPress "<Space>") {
_parent.play();
}
Symbol 759 Button
on (release, keyPress "n") {
_root.nameme = 1;
_parent.play();
}
on (keyPress "N") {
_root.nameme = 1;
_parent.play();
}
Symbol 762 Button
on (release, keyPress "p") {
_root.passme = 1;
_parent.play();
}
on (keyPress "P") {
_root.passme = 1;
_parent.play();
}
Symbol 765 Button
on (release) {
gotoAndPlay (3);
}
Symbol 768 Button
on (release) {
gotoAndPlay (6);
}
Symbol 771 Button
on (release) {
getURL ("http://www.armorgames.com", "_blank");
}
Symbol 774 Button
on (release, keyPress "<Space>") {
my_txt1.removeTextField();
my_txt2.removeTextField();
my_txt3.removeTextField();
my_txt4.removeTextField();
gotoAndPlay (1);
}
on (keyPress "<Enter>") {
my_txt1.removeTextField();
my_txt2.removeTextField();
my_txt3.removeTextField();
my_txt4.removeTextField();
gotoAndPlay (1);
}
Symbol 775 Button
on (press) {
scrollup = 1;
}
on (release, dragOut, releaseOutside) {
scrollup = 0;
}
Symbol 776 Button
on (press) {
scrolldown = 1;
}
on (release, dragOut, releaseOutside) {
scrolldown = 0;
}
Symbol 779 Button
on (release, keyPress "<Right>") {
nextFrame();
}
Symbol 790 Button
on (release, keyPress "y") {
Mouse.show();
_root.nobutts = 0;
_root.gotoAndPlay("buggered");
}
Symbol 793 Button
on (release, keyPress "n") {
gotoAndStop (1);
}
Symbol 795 Button
on (release, keyPress "y") {
Mouse.show();
_root.nobutts = 0;
_root.gotoAndPlay("buggered2");
}
Symbol 796 Button
on (release, keyPress "n") {
gotoAndStop (3);
}
Symbol 797 MovieClip Frame 1
if (_root.mewaiting == 1) {
}
Symbol 797 MovieClip Frame 2
prevFrame();
play();
Symbol 797 MovieClip Frame 3
function conv_num(inputter) {
inputter = String(int(inputter));
a = length(inputter);
outputter = "";
do {
nexta = a - 3;
t = inputter.substring(a - 3, a);
if (nexta > 0) {
outputter = t.concat(outputter);
outputter = ",".concat(outputter);
a = nexta;
} else {
outputter = t + outputter;
}
} while (nexta > 0);
return(outputter);
}
lockx = -175;
locky = -130;
this.createTextField("my_txt1", this.getNextHighestDepth(), lockx, locky, 350, 290);
my_txt1.multiline = true;
my_txt1.wordWrap = true;
my_txt1.selectable = false;
this.createTextField("my_txt2", this.getNextHighestDepth(), lockx, locky, 350, 290);
my_txt2.multiline = true;
my_txt2.wordWrap = true;
my_txt2.selectable = false;
this.createTextField("my_txt3", this.getNextHighestDepth(), lockx, locky, 350, 290);
my_txt3.multiline = true;
my_txt3.wordWrap = true;
my_txt3.selectable = false;
this.createTextField("my_txt4", this.getNextHighestDepth(), lockx - 100, locky, 550, 290);
my_txt4.multiline = true;
my_txt4.wordWrap = true;
my_txt4.selectable = false;
var my_fmt1 = new TextFormat();
my_fmt1.font = "Arial";
my_fmt1.color = 11430148 /* 0xAE6904 */;
my_fmt1.align = "left";
my_fmt1.size = 18;
my_fmt1.leading = -5;
var my_fmt2 = new TextFormat();
my_fmt2.font = "Arial Bold";
my_fmt2.color = 16172800 /* 0xF6C700 */;
my_fmt2.align = "center";
my_fmt2.size = 18;
my_fmt2.leading = -5;
var my_fmt3 = new TextFormat();
my_fmt3.font = "Arial";
my_fmt3.color = 11430148 /* 0xAE6904 */;
my_fmt3.align = "right";
my_fmt3.size = 18;
my_fmt3.leading = -5;
var my_fmt4 = new TextFormat();
my_fmt4.font = "Arial";
my_fmt4.color = 16777215 /* 0xFFFFFF */;
my_fmt4.align = "center";
my_fmt4.size = 18;
my_fmt4.leading = -5;
my_txt1.text = my_txt1.text + "\r";
my_txt2.text = my_txt2.text + "\r";
my_txt3.text = my_txt3.text + "\r";
my_txt4.text = my_txt4.text + "COMPLETED GAME SCORES\r";
my_txt1.text = my_txt1.text + "\r";
my_txt2.text = my_txt2.text + "\r";
my_txt3.text = my_txt3.text + "\r";
my_txt4.text = my_txt4.text + "\r";
levelpack = _root.levelpack;
topscore = 1;
while (topscore < (_root.maxtopscores + 1)) {
thisscore = _root.scoreboard.data[(("besttopscorepack" + levelpack) + "position") + topscore];
thisscorename = _root.scoreboard.data[(("besttopscorenamepack" + levelpack) + "position") + topscore];
thisscore = conv_num(thisscore);
if (topscore == 1) {
topscorestring = "1st";
} else if (topscore == 2) {
topscorestring = "2nd";
} else if (topscore == 3) {
topscorestring = "3rd";
} else {
topscorestring = topscore + "th";
}
my_txt1.text = my_txt1.text + (topscorestring + "\r");
my_txt2.text = my_txt2.text + (thisscorename + "\r");
my_txt3.text = my_txt3.text + (thisscore + "\r");
my_txt4.text = my_txt4.text + "\r";
topscore++;
}
my_txt1.text = my_txt1.text + "\r\r";
my_txt2.text = my_txt2.text + "\r\r";
my_txt3.text = my_txt3.text + "\r\r";
my_txt4.text = my_txt4.text + "\r\r";
my_txt1.text = my_txt1.text + "\r";
my_txt2.text = my_txt2.text + "\r";
my_txt3.text = my_txt3.text + "\r";
my_txt4.text = my_txt4.text + "INDIVIDUAL HOLE BEST SCORES\r";
my_txt1.text = my_txt1.text + "\r";
my_txt2.text = my_txt2.text + "\r";
my_txt3.text = my_txt3.text + "\r";
my_txt4.text = my_txt4.text + "\r";
var level = 1;
while (level < (_root.maxlevels + 1)) {
bestscore = _root.scoreboard.data[(("bestscorepack" + levelpack) + "level") + level];
bestscorename = _root.scoreboard.data[(("bestscorenamepack" + levelpack) + "level") + level];
bestscore = conv_num(bestscore);
my_txt1.text = my_txt1.text + (("Hole " + level) + "\r");
my_txt2.text = my_txt2.text + (bestscorename + "\r");
my_txt3.text = my_txt3.text + (bestscore + "\r");
my_txt4.text = my_txt4.text + "\r";
level++;
}
my_txt1.text = my_txt1.text + "\r\r";
my_txt2.text = my_txt2.text + "\r\r";
my_txt3.text = my_txt3.text + "\r\r";
my_txt4.text = my_txt4.text + "\r\r";
my_txt1.text = my_txt1.text + "\r";
my_txt2.text = my_txt2.text + "\r";
my_txt3.text = my_txt3.text + "\r";
my_txt4.text = my_txt4.text + "INDIVIDUAL HOLE BEST SHOTS\r";
my_txt1.text = my_txt1.text + "\r";
my_txt2.text = my_txt2.text + "\r";
my_txt3.text = my_txt3.text + "\r";
my_txt4.text = my_txt4.text + "\r";
var level = 1;
while (level < (_root.maxlevels + 1)) {
bestshots = _root.scoreboard.data[(("bestshotspack" + levelpack) + "level") + level];
bestshotsname = _root.scoreboard.data[(("bestshotsnamepack" + levelpack) + "level") + level];
my_txt1.text = my_txt1.text + (("Hole " + level) + "\r");
my_txt2.text = my_txt2.text + (bestshotsname + "\r");
my_txt3.text = my_txt3.text + (bestshots + "\r");
my_txt4.text = my_txt4.text + "\r";
level++;
}
my_txt1.text = my_txt1.text + "\r\r";
my_txt2.text = my_txt2.text + "\r\r";
my_txt3.text = my_txt3.text + "\r\r";
my_txt4.text = my_txt4.text + "\r\r";
my_txt1.text = my_txt1.text + "\r";
my_txt2.text = my_txt2.text + "\r";
my_txt3.text = my_txt3.text + "\r";
my_txt4.text = my_txt4.text + "INDIVIDUAL HOLE BEST FREEFALL\r";
my_txt1.text = my_txt1.text + "\r";
my_txt2.text = my_txt2.text + "\r";
my_txt3.text = my_txt3.text + "\r";
my_txt4.text = my_txt4.text + "\r";
var level = 1;
while (level < (_root.maxlevels + 1)) {
bestfreefall = _root.scoreboard.data[(("bestfreefallpack" + levelpack) + "level") + level];
bestfreefallname = _root.scoreboard.data[(("bestfreefallnamepack" + levelpack) + "level") + level];
bestscore = conv_num(bestscore);
bestfreefall = conv_num(bestfreefall);
my_txt1.text = my_txt1.text + (("Hole " + level) + "\r");
my_txt2.text = my_txt2.text + (bestfreefallname + "\r");
my_txt3.text = my_txt3.text + (bestfreefall + "\r");
my_txt4.text = my_txt4.text + "\r";
level++;
}
my_txt1.setTextFormat(my_fmt1);
my_txt2.setTextFormat(my_fmt2);
my_txt3.setTextFormat(my_fmt3);
my_txt4.setTextFormat(my_fmt4);
level = 1;
scrollup = 0;
scrolldown = 0;
Symbol 797 MovieClip Frame 4
if ((scrollup == 1) or Key.isDown(38)) {
my_txt1.scroll--;
my_txt2.scroll--;
my_txt3.scroll--;
my_txt4.scroll--;
scroll_txt.text = (my_txt.scroll + " of ") + my_txt.maxscroll;
}
if ((scrolldown == 1) or Key.isDown(40)) {
my_txt1.scroll++;
my_txt2.scroll++;
my_txt3.scroll++;
my_txt4.scroll++;
scroll_txt.text = (my_txt.scroll + " of ") + my_txt.maxscroll;
}
Symbol 797 MovieClip Frame 5
prevFrame();
play();
Symbol 797 MovieClip Frame 6
stop();
Symbol 798 MovieClip Frame 1
stop();
_root.nobutts = 0;
Symbol 798 MovieClip Frame 7
Mouse.show();
stop();
Symbol 802 Button
on (release) {
_root.nextFrame();
}
Symbol 805 MovieClip Frame 2
this._x = _root.real_ball._x;
this._y = _root.real_ball._y;
Symbol 805 MovieClip Frame 3
prevFrame();
play();
Symbol 807 MovieClip Frame 2
function distance_between(x, y, xt, yt) {
xd = x - xt;
yd = y - yt;
radius = Math.sqrt((xd * xd) + (yd * yd));
return(radius);
}
a = 1000;
b = 1000;
c = 1000;
d = 1000;
a = distance_between(this._x, this._y, _root.start_x1, _root.start_y1);
b = distance_between(this._x, this._y, _root.start_x2, _root.start_y2);
c = distance_between(this._x, this._y, _root.start_x3, _root.start_y3);
d = distance_between(this._x, this._y, _root.start_x4, _root.start_y4);
if (((a < b) and (a < c)) and (a < d)) {
point = 1;
} else if (((b < a) and (b < c)) and (b < d)) {
point = 2;
} else if (((c < a) and (c < b)) and (c < d)) {
point = 3;
} else {
point = 4;
}
_root.real_ball._x = eval ("_root.start_x" + point);
_root.real_ball._y = eval ("_root.start_y" + point);
_root.predict._x = _root.real_ball._x;
_root.predict._y = _root.real_ball._y;
if (b > 999) {
_root.nextFrame();
}
Symbol 807 MovieClip Frame 3
prevFrame();
play();
Symbol 817 MovieClip Frame 16
stop();
Symbol 818 MovieClip Frame 1
orix = _root.real_ball._x;
oriy = _root.real_ball._y;
xbias = bit._width / 2;
this._x = orix;
this._y = oriy;
_root.x = orix;
_root.y = oriy;
rotation = _root.orotation;
radius = _root.oradius;
rotspeed = 0.1;
radspeed = 0.1;
rotspeedinc = 0.4;
radspeedinc = 0.4;
orotspeed = 0.1;
oradspeed = 0.1;
maxrotspeed = 20;
maxradspeed = 20;
frcount = 0;
Symbol 818 MovieClip Frame 2
rotkeydown = 0;
radkeydown = 0;
if (_root.nobutts == 0) {
if (Key.isDown(37)) {
rotation = rotation - rotspeed;
rotspeed = rotspeed + rotspeedinc;
_root.sound.gotoAndPlay("keyclick");
if (rotspeed > maxrotspeed) {
rotspeed = maxrotspeed;
}
rotkeydown = 1;
}
if (Key.isDown(39)) {
rotation = rotation + rotspeed;
rotspeed = rotspeed + rotspeedinc;
_root.sound.gotoAndPlay("keyclick");
if (rotspeed > maxrotspeed) {
rotspeed = maxrotspeed;
}
rotkeydown = 1;
}
if (Key.isDown(38)) {
radius = radius + radspeed;
radspeed = radspeed + radspeedinc;
_root.sound.gotoAndPlay("keyclick");
if (radspeed > maxradspeed) {
radspeed = maxradspeed;
}
radkeydown = 1;
}
if (Key.isDown(40)) {
radius = radius - radspeed;
radspeed = radspeed + radspeedinc;
_root.sound.gotoAndPlay("keyclick");
if (radspeed > maxradspeed) {
radspeed = maxradspeed;
}
radkeydown = 1;
}
if (rotkeydown == 0) {
rotspeed = orotspeed;
}
if (radkeydown == 0) {
radspeed = oradspeed;
}
if (radius < 0) {
radius = 0;
}
if (radius > 230) {
radius = 230;
}
if (Key.isDown(32) and (frcount > 1)) {
_root.sound.gotoAndPlay("keyclick");
_root.orotation = rotation;
_root.oradius = radius;
var point = {x:xbias, y:0};
_root.aim.bit.marker.localToGlobal(point);
_root.xs = (point.x - orix) / 8;
_root.ys = (point.y - oriy) / 8;
_root.xss = _root.xs;
_root.yss = _root.ys;
_root.nextFrame();
}
}
bit._rotation = rotation;
bit.marker._y = radius;
bit.marker2._y = radius / 15;
bit.marker3._y = (radius / 15) * 2;
bit.marker4._y = (radius / 15) * 3;
bit.marker5._y = (radius / 15) * 4;
bit.marker6._y = (radius / 15) * 5;
bit.marker7._y = (radius / 15) * 6;
bit.marker8._y = (radius / 15) * 7;
bit.marker9._y = (radius / 15) * 8;
bit.marker10._y = (radius / 15) * 9;
bit.marker11._y = (radius / 15) * 10;
bit.marker12._y = (radius / 15) * 11;
bit.marker13._y = (radius / 15) * 12;
bit.marker14._y = (radius / 15) * 13;
bit.marker15._y = (radius / 15) * 14;
frcount = frcount + 1;
Symbol 818 MovieClip Frame 3
prevFrame();
play();
Symbol 824 MovieClip Frame 57
stop();
Symbol 827 Button
on (release) {
getURL ("http://www.armorgames.com/games/galacticgravitygolf.html");
}
Symbol 834 MovieClip Frame 1
gotoAndPlay (20);
Symbol 834 MovieClip Frame 68
if (_root.level == 1) {
gotoAndStop (3);
} else if (_root.level == 7) {
gotoAndStop (4);
} else if (_root.level == 10) {
gotoAndStop (5);
} else if (_root.level == 32) {
gotoAndStop (6);
} else if (_root.level == 27) {
gotoAndStop (7);
} else if (_root.level == 31) {
gotoAndStop (8);
} else if (_root.level == 30) {
gotoAndStop (9);
} else {
stop();
}
Symbol 840 MovieClip Frame 1
this._x = -50;
this._y = -50;
stop();
Symbol 840 MovieClip Frame 2
this._x = _root.x;
this._y = _root.y;
Symbol 840 MovieClip Frame 3
_root.bounces = _root.bounces + 1;
Symbol 845 MovieClip Frame 1
Symbol 846 MovieClip Frame 1
x = _root.real_x;
y = _root.real_y;
xs = _root.xs * 0.2;
ys = _root.ys * 0.2;
this._x = x;
this._y = y;
friction = 0.95;
bobular._rotation = random(360);
Symbol 846 MovieClip Frame 2
xs = xs * friction;
ys = ys * friction;
x = x + xs;
y = y + ys;
this._x = x;
this._y = y;
Symbol 846 MovieClip Frame 3
prevFrame();
play();
Symbol 849 Button
on (release, keyPress "<Space>") {
_parent.play();
}
on (keyPress "<Enter>") {
_parent.play();
}
Symbol 856 MovieClip Frame 13
stop();
Symbol 860 MovieClip Frame 1
stop();
Symbol 860 MovieClip Frame 2
stop();
Symbol 862 MovieClip Frame 1
stop();
Symbol 862 MovieClip Frame 2
stop();
Symbol 864 MovieClip Frame 1
stop();
Symbol 864 MovieClip Frame 2
stop();
Symbol 865 Button
on (release, keyPress "<Space>") {
gotoAndPlay ("endbonus");
_root.nobutts = 0;
}
Symbol 868 MovieClip Frame 1
disp4 = disp3;
disp2 = String(int(_parent.hole_score_display));
a = length(disp2);
disp3 = "";
do {
nexta = a - 3;
t = disp2.substring(a - 3, a);
if (nexta > 0) {
disp3 = t.concat(disp3);
disp3 = ",".concat(disp3);
a = nexta;
} else {
disp3 = t + disp3;
}
} while (nexta > 0);
Symbol 868 MovieClip Frame 2
prevFrame();
play();
Symbol 872 MovieClip Frame 1
disp4 = disp3;
disp2 = String(int(_parent._parent.bonus_display));
a = length(disp2);
disp3 = "";
do {
nexta = a - 3;
t = disp2.substring(a - 3, a);
if (nexta > 0) {
disp3 = t.concat(disp3);
disp3 = ",".concat(disp3);
a = nexta;
} else {
disp3 = t + disp3;
}
} while (nexta > 0);
disp4 = disp3;
disp2 = String(int(_parent._parent.bonus_display));
a = length(disp2);
disp3 = "";
do {
nexta = a - 3;
t = disp2.substring(a - 3, a);
if (nexta > 0) {
disp3 = t.concat(disp3);
disp3 = ",".concat(disp3);
a = nexta;
} else {
disp3 = t + disp3;
}
} while (nexta > 0);
Symbol 872 MovieClip Frame 2
disp4 = disp3;
disp2 = String(int(_parent._parent.bonus_display));
a = length(disp2);
disp3 = "";
do {
nexta = a - 3;
t = disp2.substring(a - 3, a);
if (nexta > 0) {
disp3 = t.concat(disp3);
disp3 = ",".concat(disp3);
a = nexta;
} else {
disp3 = t + disp3;
}
} while (nexta > 0);
Symbol 872 MovieClip Frame 3
prevFrame();
play();
Symbol 873 MovieClip Frame 1
stop();
Symbol 873 MovieClip Frame 23
Symbol 873 MovieClip Frame 64
stop();
Symbol 879 MovieClip Frame 15
stop();
Symbol 882 MovieClip Frame 4
if (random(2) == 1) {
gotoAndPlay(random(7));
}
Symbol 885 MovieClip Frame 1
disp4 = disp3;
disp2 = String(int(_parent.ohsd));
a = length(disp2);
disp3 = "";
do {
nexta = a - 3;
t = disp2.substring(a - 3, a);
if (nexta > 0) {
disp3 = t.concat(disp3);
disp3 = ",".concat(disp3);
a = nexta;
} else {
disp3 = t + disp3;
}
} while (nexta > 0);
Symbol 885 MovieClip Frame 30
stop();
Symbol 891 MovieClip Frame 34
stop();
Symbol 895 MovieClip Frame 1
hole_score = 0;
hole_score_display = 0;
bonus_display = 0;
bonus = 0;
wait = 0;
count = 0;
wait2 = 0;
countmax = 20;
waitmax = 15;
wait2max = 20;
Symbol 895 MovieClip Frame 2
shots_under_par = _root.shots - _root.parshots[_root.level];
if (shots_under_par < 0) {
a = 100000 * (-shots_under_par);
if (_root.shots == 1) {
a = a + 1000000;
}
} else {
a = 0;
}
start_bonus = a;
a = a + _root.airtime;
a = a + (_root.gems * _root.gem_value);
a = a + (_root.big_gems * _root.big_gem_value);
a = a + _root.fuel;
a = a + (_root.worm_hole_bonus * _root.worm_hole_value);
a = a + (_root.bounces * _root.bounce_value);
a = a + (_root.tube_rides * _root.tube_value);
a = a + (_root.objects_destroyed * _root.destruction_value);
if (shots_under_par > 1) {
a = a / shots_under_par;
}
a = a * _root.times;
pretotalled_hole_score = a;
if ((pretotalled_hole_score > _root.scoreboard.data[(("bestscorepack" + _root.levelpack) + "level") + _root.level]) and (_root.cheatz != 1)) {
_root.scoreboard.data[(("bestscorepack" + _root.levelpack) + "level") + _root.level] = int(pretotalled_hole_score);
_root.scoreboard.data[(("bestscorenamepack" + _root.levelpack) + "level") + _root.level] = _root.myname;
_root.scoreboard.flush();
scorecelebrate.play();
}
if ((_root.shots < _root.scoreboard.data[(("bestshotspack" + _root.levelpack) + "level") + _root.level]) and (_root.cheatz != 1)) {
_root.scoreboard.data[(("bestshotspack" + _root.levelpack) + "level") + _root.level] = _root.shots;
_root.scoreboard.data[(("bestshotsnamepack" + _root.levelpack) + "level") + _root.level] = _root.myname;
_root.scoreboard.flush();
shotscelebrate.play();
}
if ((_root.airtime > _root.scoreboard.data[(("bestfreefallpack" + _root.levelpack) + "level") + _root.level]) and (_root.cheatz != 1)) {
_root.scoreboard.data[(("bestfreefallpack" + _root.levelpack) + "level") + _root.level] = int(_root.airtime);
_root.scoreboard.data[(("bestfreefallnamepack" + _root.levelpack) + "level") + _root.level] = _root.myname;
_root.scoreboard.flush();
freefallcelebrate.play();
}
Symbol 895 MovieClip Frame 35
if (_root.shots == 1) {
bonus = start_bonus;
words = "BLACK HOLE IN ONE!";
_root.sound.gotoAndPlay("holeinone");
} else if (shots_under_par < 0) {
z = -shots_under_par;
words = ("" + z) + " UNDER PAR!!!";
bonus = start_bonus;
_root.sound.gotoAndPlay("under_par");
} else {
gotoAndPlay(_currentframe + 9);
bonus = 0;
}
bonus_display = bonus;
Symbol 895 MovieClip Frame 36
count = 0;
wait = 0;
decr = bonus_display / countmax;
decr = decr - (decr / 9);
Symbol 895 MovieClip Frame 37
wait = wait + 1;
Symbol 895 MovieClip Frame 38
if (wait < waitmax) {
prevFrame();
play();
}
Symbol 895 MovieClip Frame 39
bonus_display = bonus_display - int(decr);
hole_score_display = hole_score_display + int(decr);
count = count + 1;
b.play();
Symbol 895 MovieClip Frame 40
if (count < countmax) {
prevFrame();
play();
} else {
bonus_display = 0;
hole_score = hole_score + bonus;
hole_score_display = hole_score;
}
Symbol 895 MovieClip Frame 41
wait2 = wait2 + 1;
Symbol 895 MovieClip Frame 42
if (wait2 < wait2max) {
prevFrame();
play();
} else {
wait2 = 0;
}
Symbol 895 MovieClip Frame 45
words = "Freefall";
bonus = _root.airtime;
bonus_display = bonus;
Symbol 895 MovieClip Frame 46
count = 0;
wait = 0;
decr = bonus_display / countmax;
decr = decr - (decr / 9);
Symbol 895 MovieClip Frame 47
wait = wait + 1;
Symbol 895 MovieClip Frame 48
if (wait < waitmax) {
prevFrame();
play();
}
Symbol 895 MovieClip Frame 49
bonus_display = bonus_display - int(decr);
hole_score_display = hole_score_display + int(decr);
count = count + 1;
b.play();
Symbol 895 MovieClip Frame 50
if (count < countmax) {
prevFrame();
play();
} else {
bonus_display = 0;
hole_score = hole_score + bonus;
hole_score_display = hole_score;
}
Symbol 895 MovieClip Frame 51
wait2 = wait2 + 1;
Symbol 895 MovieClip Frame 52
if (wait2 < wait2max) {
prevFrame();
play();
} else {
wait2 = 0;
}
Symbol 895 MovieClip Frame 55
if (_root.gems > 0) {
if (_root.gems == 1) {
words = _root.gems + " Little Gem";
} else {
words = _root.gems + " Little Gems";
}
bonus = _root.gems * _root.gem_value;
bonus_display = bonus;
} else {
gotoAndPlay(_currentframe + 9);
}
Symbol 895 MovieClip Frame 56
count = 0;
wait = 0;
decr = bonus_display / countmax;
decr = decr - (decr / 9);
Symbol 895 MovieClip Frame 57
wait = wait + 1;
Symbol 895 MovieClip Frame 58
if (wait < waitmax) {
prevFrame();
play();
}
Symbol 895 MovieClip Frame 59
bonus_display = bonus_display - int(decr);
hole_score_display = hole_score_display + int(decr);
count = count + 1;
b.play();
Symbol 895 MovieClip Frame 60
if (count < countmax) {
prevFrame();
play();
} else {
bonus_display = 0;
hole_score = hole_score + bonus;
hole_score_display = hole_score;
}
Symbol 895 MovieClip Frame 61
wait2 = wait2 + 1;
Symbol 895 MovieClip Frame 62
if (wait2 < wait2max) {
prevFrame();
play();
} else {
wait2 = 0;
}
Symbol 895 MovieClip Frame 65
if (_root.big_gems > 0) {
if (_root.gems == 1) {
words = _root.big_gems + " BIG Gem";
} else {
words = _root.big_gems + " BIG Gems";
}
bonus = _root.big_gems * _root.big_gem_value;
bonus_display = bonus;
} else {
gotoAndPlay(_currentframe + 9);
}
Symbol 895 MovieClip Frame 66
count = 0;
wait = 0;
decr = bonus_display / countmax;
decr = decr - (decr / 9);
Symbol 895 MovieClip Frame 67
wait = wait + 1;
Symbol 895 MovieClip Frame 68
if (wait < waitmax) {
prevFrame();
play();
}
Symbol 895 MovieClip Frame 69
bonus_display = bonus_display - int(decr);
hole_score_display = hole_score_display + int(decr);
count = count + 1;
b.play();
Symbol 895 MovieClip Frame 70
if (count < countmax) {
prevFrame();
play();
} else {
bonus_display = 0;
hole_score = hole_score + bonus;
hole_score_display = hole_score;
}
Symbol 895 MovieClip Frame 71
wait2 = wait2 + 1;
Symbol 895 MovieClip Frame 72
if (wait2 < wait2max) {
prevFrame();
play();
} else {
wait2 = 0;
}
Symbol 895 MovieClip Frame 75
words = "Leftover Fuel";
if (_root.fuel > 0) {
bonus = _root.fuel;
bonus_display = bonus;
} else {
gotoAndPlay(_currentframe + 9);
}
Symbol 895 MovieClip Frame 76
count = 0;
wait = 0;
decr = bonus_display / countmax;
decr = decr - (decr / 9);
Symbol 895 MovieClip Frame 77
wait = wait + 1;
Symbol 895 MovieClip Frame 78
if (wait < waitmax) {
prevFrame();
play();
}
Symbol 895 MovieClip Frame 79
bonus_display = bonus_display - int(decr);
hole_score_display = hole_score_display + int(decr);
count = count + 1;
b.play();
Symbol 895 MovieClip Frame 80
if (count < countmax) {
prevFrame();
play();
} else {
bonus_display = 0;
hole_score = hole_score + bonus;
hole_score_display = hole_score;
_root.fuel = 0;
}
Symbol 895 MovieClip Frame 81
wait2 = wait2 + 1;
Symbol 895 MovieClip Frame 82
if (wait2 < wait2max) {
prevFrame();
play();
} else {
wait2 = 0;
}
Symbol 895 MovieClip Frame 85
if (_root.worm_hole_bonus > 0) {
if (_root.worm_hole_bonus == 1) {
words = _root.worm_hole_bonus + " Wormhole";
} else {
words = _root.worm_hole_bonus + " Wormholes";
}
bonus = _root.worm_hole_bonus * _root.worm_hole_value;
bonus_display = bonus;
} else {
gotoAndPlay(_currentframe + 9);
}
Symbol 895 MovieClip Frame 86
count = 0;
wait = 0;
decr = bonus_display / countmax;
decr = decr - (decr / 9);
Symbol 895 MovieClip Frame 87
wait = wait + 1;
Symbol 895 MovieClip Frame 88
if (wait < waitmax) {
prevFrame();
play();
}
Symbol 895 MovieClip Frame 89
bonus_display = bonus_display - int(decr);
hole_score_display = hole_score_display + int(decr);
count = count + 1;
b.play();
Symbol 895 MovieClip Frame 90
if (count < countmax) {
prevFrame();
play();
} else {
bonus_display = 0;
hole_score = hole_score + bonus;
hole_score_display = hole_score;
}
Symbol 895 MovieClip Frame 91
wait2 = wait2 + 1;
Symbol 895 MovieClip Frame 92
if (wait2 < wait2max) {
prevFrame();
play();
} else {
wait2 = 0;
}
Symbol 895 MovieClip Frame 95
if (_root.bounces > 0) {
if (_root.bounces == 1) {
words = _root.bounces + " Bounce";
} else {
words = _root.bounces + " Bounces";
}
bonus = _root.bounces * _root.bounce_value;
bonus_display = bonus;
} else {
gotoAndPlay(_currentframe + 9);
}
Symbol 895 MovieClip Frame 96
count = 0;
wait = 0;
decr = bonus_display / countmax;
decr = decr - (decr / 9);
Symbol 895 MovieClip Frame 97
wait = wait + 1;
Symbol 895 MovieClip Frame 98
if (wait < waitmax) {
prevFrame();
play();
}
Symbol 895 MovieClip Frame 99
bonus_display = bonus_display - int(decr);
hole_score_display = hole_score_display + int(decr);
count = count + 1;
b.play();
Symbol 895 MovieClip Frame 100
if (count < countmax) {
prevFrame();
play();
} else {
bonus_display = 0;
hole_score = hole_score + bonus;
hole_score_display = hole_score;
}
Symbol 895 MovieClip Frame 101
wait2 = wait2 + 1;
Symbol 895 MovieClip Frame 102
if (wait2 < wait2max) {
prevFrame();
play();
} else {
wait2 = 0;
}
Symbol 895 MovieClip Frame 105
if (_root.tube_rides > 0) {
if (_root.tube_rides == 1) {
words = _root.tube_rides + " Tube Ride";
} else {
words = _root.tube_rides + " Tube Rides";
}
bonus = _root.tube_rides * _root.tube_value;
bonus_display = bonus;
} else {
gotoAndPlay(_currentframe + 9);
}
Symbol 895 MovieClip Frame 106
count = 0;
wait = 0;
decr = bonus_display / countmax;
decr = decr - (decr / 9);
Symbol 895 MovieClip Frame 107
wait = wait + 1;
Symbol 895 MovieClip Frame 108
if (wait < waitmax) {
prevFrame();
play();
}
Symbol 895 MovieClip Frame 109
bonus_display = bonus_display - int(decr);
hole_score_display = hole_score_display + int(decr);
count = count + 1;
b.play();
Symbol 895 MovieClip Frame 110
if (count < countmax) {
prevFrame();
play();
} else {
bonus_display = 0;
hole_score = hole_score + bonus;
hole_score_display = hole_score;
}
Symbol 895 MovieClip Frame 111
wait2 = wait2 + 1;
Symbol 895 MovieClip Frame 112
if (wait2 < wait2max) {
prevFrame();
play();
} else {
wait2 = 0;
}
Symbol 895 MovieClip Frame 115
if (_root.objects_destroyed > 0) {
if (_root.objects_destroyed == 1) {
words = _root.objects_destroyed + " Planet";
} else {
words = _root.objects_destroyed + " Planets";
}
bonus = _root.objects_destroyed * _root.destruction_value;
bonus_display = bonus;
} else {
gotoAndPlay(_currentframe + 9);
}
Symbol 895 MovieClip Frame 116
count = 0;
wait = 0;
decr = bonus_display / countmax;
decr = decr - (decr / 9);
Symbol 895 MovieClip Frame 117
wait = wait + 1;
Symbol 895 MovieClip Frame 118
if (wait < waitmax) {
prevFrame();
play();
}
Symbol 895 MovieClip Frame 119
bonus_display = bonus_display - int(decr);
hole_score_display = hole_score_display + int(decr);
count = count + 1;
b.play();
Symbol 895 MovieClip Frame 120
if (count < countmax) {
prevFrame();
play();
} else {
bonus_display = 0;
hole_score = hole_score + bonus;
hole_score_display = hole_score;
}
Symbol 895 MovieClip Frame 121
wait2 = wait2 + 1;
Symbol 895 MovieClip Frame 122
if (wait2 < wait2max) {
prevFrame();
play();
} else {
wait2 = 0;
}
Symbol 895 MovieClip Frame 125
if (shots_under_par > 1) {
words = "DIVIDED BY " + shots_under_par;
ohsd = hole_score_display;
hole_score_display = hole_score_display / shots_under_par;
bonus = hole_score_display;
bonus_display = hole_score_display;
hole_score = hole_score_display;
} else {
gotoAndPlay(_currentframe + 9);
}
Symbol 895 MovieClip Frame 132
wait2 = wait2 + 1;
Symbol 895 MovieClip Frame 133
if (wait2 < (wait2max * 2.5)) {
prevFrame();
play();
} else {
wait2 = 0;
}
Symbol 895 MovieClip Frame 136
if (_root.times == 2) {
bonus = hole_score * 2;
words = "X2 Bonus";
hole_score_display = bonus;
hole_score = bonus;
} else if (_root.times == 4) {
words = "X4 Bonus";
bonus = hole_score * 4;
hole_score_display = bonus;
hole_score = bonus;
} else if (_root.times == 8) {
words = "X8 Bonus";
bonus = hole_score * 8;
hole_score_display = bonus;
hole_score = bonus;
} else if (_root.times == 16) {
words = "X16 Bonus";
bonus = hole_score * 16;
hole_score_display = bonus;
hole_score = bonus;
} else if (_root.times == 32) {
words = "X32 Bonus";
bonus = hole_score * 32;
hole_score_display = bonus;
hole_score = bonus;
} else if (_root.times == 64) {
words = "X64 Bonus";
bonus = hole_score * 64;
hole_score_display = bonus;
hole_score = bonus;
} else if (_root.times == 128) {
words = "X128 Bonus";
bonus = hole_score * 128;
hole_score_display = bonus;
hole_score = bonus;
} else if (_root.times == 256) {
words = "X256 Bonus";
bonus = hole_score * 256;
hole_score_display = bonus;
hole_score = bonus;
} else if (_root.times == 512) {
words = "X515 Bonus";
bonus = hole_score * 512;
hole_score_display = bonus;
hole_score = bonus;
} else {
gotoAndPlay(_currentframe + 9);
}
Symbol 895 MovieClip Frame 143
wait2 = wait2 + 1;
Symbol 895 MovieClip Frame 144
if (wait2 < (wait2max * 2.5)) {
prevFrame();
play();
} else {
wait2 = 0;
}
Symbol 895 MovieClip Frame 152
countmax = countmax * 3;
bonus = _root.score;
bonus_display = bonus;
c = 1;
Symbol 895 MovieClip Frame 153
count = 0;
wait = 0;
decr = hole_score_display / countmax;
decr = decr - (decr / 9);
Symbol 895 MovieClip Frame 154
wait = wait + 1;
Symbol 895 MovieClip Frame 155
if (wait < waitmax) {
prevFrame();
play();
}
Symbol 895 MovieClip Frame 156
bonus_display = bonus_display + int(decr);
hole_score_display = hole_score_display - int(decr);
count = count + 1;
c = c * 0.97;
b._xscale = b._xscale + c;
b._yscale = b._yscale + c;
Symbol 895 MovieClip Frame 157
if (count < countmax) {
prevFrame();
play();
} else {
bonus_display = _root.score + hole_score;
hole_score = 0;
hole_score_display = hole_score;
}
Symbol 895 MovieClip Frame 158
Symbol 895 MovieClip Frame 180
_root.level = _root.level + 1;
_root.score = _root.score + pretotalled_hole_score;
if (_root.level < (_root.maxlevels + 1)) {
_root.gotoAndPlay("init");
_root.nobutts = 0;
} else {
_root.gotoAndPlay("endgame");
_root.nobutts = 0;
}
Symbol 905 MovieClip Frame 1
function conv_num(inputter) {
inputter = String(int(inputter));
a = length(inputter);
outputter = "";
do {
nexta = a - 3;
t = inputter.substring(a - 3, a);
if (nexta > 0) {
outputter = t.concat(outputter);
outputter = ",".concat(outputter);
a = nexta;
} else {
outputter = t + outputter;
}
} while (nexta > 0);
return(outputter);
}
_parent.myscore = conv_num(_root.score);
Symbol 916 MovieClip Frame 1
if (_parent.pos == 1) {
postrans = "1st";
} else if (_parent.pos == 2) {
postrans = "2nd";
} else if (_parent.pos == 3) {
postrans = "3rd";
} else {
postrans = ("" + _parent.pos) + "th";
}
podtransname = (postrans + " ") + _root.myname;
if ((_parent.pos < 4) and (_parent.pos > 0)) {
gotoAndStop(_parent.pos + 1);
} else if (_parent.pos == 0) {
gotoAndStop (5);
} else if (_root.showcrapscore == 0) {
gotoAndStop (8);
} else {
stop();
}
Symbol 919 Button
on (release, keyPress "<Space>") {
play();
}
Symbol 921 MovieClip Frame 1
if (_root.music == 0) {
stop();
} else {
_root.music_started = 0;
gotoAndPlay (2);
}
Symbol 921 MovieClip Frame 3
stop();
Symbol 921 MovieClip Frame 5
stop();
Symbol 924 MovieClip Frame 1
gotoAndPlay((random(4) + 1) * 2);
Symbol 924 MovieClip Frame 3
stop();
Symbol 924 MovieClip Frame 5
stop();
Symbol 924 MovieClip Frame 7
stop();
Symbol 924 MovieClip Frame 9
stop();
Symbol 925 MovieClip Frame 1
if (_root.audience != 1) {
stop();
}
Symbol 925 MovieClip Frame 125
gotoAndPlay(random(60) + 40);
Symbol 927 MovieClip Frame 1
function conv_num(inputter) {
inputter = String(int(inputter));
a = length(inputter);
outputter = "";
do {
nexta = a - 3;
t = inputter.substring(a - 3, a);
if (nexta > 0) {
outputter = t.concat(outputter);
outputter = ",".concat(outputter);
a = nexta;
} else {
outputter = t + outputter;
}
} while (nexta > 0);
return(outputter);
}
_root.myscore = conv_num(_root.score);
txt = (("" + _root.myname) + " - ") + _root.myscore;
Symbol 927 MovieClip Frame 20
gotoAndPlay (2);
Symbol 930 MovieClip Frame 1
function conv_num(inputter) {
inputter = String(int(inputter));
a = length(inputter);
outputter = "";
do {
nexta = a - 3;
t = inputter.substring(a - 3, a);
if (nexta > 0) {
outputter = t.concat(outputter);
outputter = ",".concat(outputter);
a = nexta;
} else {
outputter = t + outputter;
}
} while (nexta > 0);
return(outputter);
}
_root.scorez = _root.scorez + 1;
thisis = _root.scorez;
thisscore = _root.scoreboard.data[(("besttopscorepack" + _root.levelpack) + "position") + thisis];
thisname = _root.scoreboard.data[(("besttopscorenamepack" + _root.levelpack) + "position") + thisis];
thisscore = conv_num(thisscore);
txt = "";
txt = txt + ((((thisis + " - ") + thisname) + " - ") + thisscore);
if (thisis == _parent.pos) {
play();
} else {
stop();
}
if (thisis < 4) {
cup1.gotoAndPlay(thisis + 1);
cup2.gotoAndPlay(thisis + 1);
}
Symbol 930 MovieClip Frame 20
gotoAndPlay (2);
Symbol 932 Button
on (release, keyPress "<Space>") {
_root.music_started = 0;
gotoAndStop ("menu");
}
Symbol 935 Button
on (release, keyPress "<Space>") {
gotoAndPlay ("postscore");
}
Symbol 940 Button
on (release) {
getURL ("http://www.armorbot.com/mytable/?id=237", "_blank");
}