Frame 1
intro_mc.OriginalSkip.onRelease = function () {
gotoAndPlay ("home");
};
Frame 38
stop();
Frame 39
function playAgain() {
_root.gotoAndStop("game_over");
}
Mouse.show();
var levelNum = 1;
play_mc2.onRelease = function () {
gotoAndPlay ("name");
};
play_mc2.onRollOver = function () {
var _local2 = new Color(_root.play_mc2);
_local2.setRGB(6710886);
};
play_mc2.onRollOut = function () {
var _local2 = new Color(_root.play_mc2);
_local2.setRGB(0);
};
instructions_mc.onRollOver = function () {
var _local2 = new Color(_root.instructions_mc);
_local2.setRGB(6710886);
};
instructions_mc.onRollOut = function () {
var _local2 = new Color(_root.instructions_mc);
_local2.setRGB(0);
};
instructions_mc.onRelease = function () {
gotoAndPlay (128);
};
var points = 0;
var levelMax = 47000;
var bgMove = 0.4;
var bgBack = 2;
var chaserSpeed = 24;
scoretable.filename = "scores/demo.sco";
scoretable.scoresize = 10;
scoretable.action = "INSERT";
scoretable.viewtype = "FLASH";
scoretable.winname = varName;
scoretable.winscore = _root.points;
scoretable.loadVariables("http://www.robinkmedia.com/scores.php", "GET");
System.security.allowDomain("www.robinkmedia.com");
System.security.allowDomain("robinkmedia.com");
System.security.allowDomain("shockwave.com", "intranet.shockwave.com", "gameblast.shockwave.com", "www.shockwave.com", "dev.shockwave.com", "stage.shockwave.com");
_level0.swHighScoreObject = new Object();
_level0.swHighScoreObject.showTab = "view";
_level0.swHighScoreObject.gameId = "Balls_01";
_level0.swHighScoreObject.gameTitle = "Balls!";
_level0.swHighScoreObject.screenWidth = 600;
_level0.swHighScoreObject.screenHeight = 600;
_level0.swHighScoreObject.scoreDescriptor = "points";
_level0.swHighScoreObject.numPlayers = 1;
_level0.swHighScoreObject.player1Score = 0;
_level0.HSHubURL = "http://www.shockwave.com/content/highscores/scorez-2002.swf";
Frame 56
stop();
Frame 57
go_btn.onPress = function () {
gotoAndPlay ("start");
};
Frame 64
stop();
Frame 65
level = "level " + levelNum;
if (levelNum < 2) {
youveGot_txt.text = varName + ", you have microscopic balls";
} else if (levelNum == 2) {
youveGot_txt.text = "You have tiny balls, " + varName;
} else if (levelNum == 3) {
youveGot_txt.text = varName + ", you now have small balls";
} else if (levelNum == 4) {
youveGot_txt.text = "Your balls are on the below average side, " + varName;
} else if (levelNum == 5) {
youveGot_txt.text = varName + ", you now have average sized balls";
} else if (levelNum == 6) {
youveGot_txt.text = "You're balls are a bit bigger than average, " + varName;
} else if (levelNum == 7) {
youveGot_txt.text = ("Wow " + varName) + ", you've got some hefty balls";
} else if (levelNum == 8) {
youveGot_txt.text = "Your balls are pretty burly, " + varName;
} else if (levelNum == 9) {
youveGot_txt.text = "You have large balls, " + varName;
} else if (levelNum == 10) {
youveGot_txt.text = varName + ", your balls are enormous ";
} else if (levelNum == 11) {
youveGot_txt.text = "You have gargantuan balls, " + varName;
} else if (levelNum == 12) {
youveGot_txt.text = "Your balls are magnificent, " + varName;
} else if (levelNum == 13) {
youveGot_txt.text = varName + ", you now have colossal balls";
} else if (levelNum == 14) {
youveGot_txt.text = "Whoa, you've got JUGGERNAUT BALLS, " + varName;
} else if (levelNum == 15) {
youveGot_txt.text = "Whoa, you've got JUGGERNAUT BALLS";
} else if (levelNum == 16) {
youveGot_txt.text = "Your balls are behemothic";
} else if (levelNum == 17) {
youveGot_txt.text = "Monumental balls, " + varName;
} else if (levelNum == 18) {
youveGot_txt.text = "You have galactic sized balls, " + varName;
} else if (levelNum == 19) {
youveGot_txt.text = varName + ", you are now a level one Ball Master";
} else if (levelNum == 20) {
youveGot_txt.text = "2nd level Ball Master";
} else if (levelNum == 21) {
youveGot_txt.text = "3rd level Ball Master";
} else if (levelNum == 22) {
youveGot_txt.text = "4th level Ball Master";
} else if (levelNum == 23) {
youveGot_txt.text = "5th level Ball Master";
} else if (levelNum == 24) {
youveGot_txt.text = varName + ", you are now a level one SUPREME Ball Master";
} else if (levelNum == 25) {
youveGot_txt.text = "2nd level SUPREME Ball Master";
} else if (levelNum == 26) {
youveGot_txt.text = "3rd level SUPREME Ball Master";
} else if (levelNum == 27) {
youveGot_txt.text = "4th level SUPREME Ball Master";
} else if (levelNum == 28) {
youveGot_txt.text = "5th level SUPREME Ball Master";
} else if (levelNum == 29) {
youveGot_txt.text = varName + ", you are now a level one GRAND CHAMPION Ball Master";
} else if (levelNum == 30) {
youveGot_txt.text = "2nd level GRAND CHAMPION Ball Master";
} else if (levelNum == 31) {
youveGot_txt.text = "3rd level GRAND CHAMPION Ball Master";
} else if (levelNum == 32) {
youveGot_txt.text = "4th level GRAND CHAMPION Ball Master";
} else if (levelNum == 33) {
youveGot_txt.text = "5th level GRAND CHAMPION Ball Master";
} else if (levelNum > 33) {
youveGot_txt.text = varName + ", YOU ARE THE GOD OF BALLS!";
}
right_bg.onEnterFrame = function () {
this._x = 600;
};
bottom_bg.onEnterFrame = function () {
this._y = 600;
};
left_bg.onEnterFrame = function () {
this._x = -714.1;
};
top_bg.onEnterFrame = function () {
this._y = -714.1;
};
Frame 121
function resetHelp() {
help_mc._x = Math.random() * 600;
help_mc._y = Math.random() * 600;
help_mc._xscale = helpStartScaleX;
help_mc._yscale = helpStartScaleY;
}
stop();
points_txt.text = points + " points";
level_txt.text = "level " + levelNum;
var helpStartScaleX = help_mc._xscale;
var helpStartScaleY = help_mc._yscale;
var size = 100;
var movementX = Math.random();
var movementY = Math.random();
var startSizeX = cursor_mc._xscale;
var startSizeY = cursor_mc._yscale;
var cursorScale = 30;
_root.onEnterFrame = function () {
timer = timer - 1;
if (timer == 0) {
chaserSpeed = chaserSpeed - 1;
timer = timerCap;
}
};
Mouse.hide();
help_mc.onEnterFrame = function () {
if (this.hitTest(right_bg)) {
resetHelp();
}
if (this.hitTest(left_bg)) {
resetHelp();
}
if (this.hitTest(top_bg)) {
resetHelp();
}
if (this.hitTest(bottom_bg)) {
resetHelp();
}
};
cursor_mc._x = Math.random() * 800;
cursor_mc._y = Math.random() * 600;
cursor_mc.onEnterFrame = function () {
this.startDrag(true);
if (this.hitTest(help_mc)) {
help_mc._xscale = help_mc._xscale - 2;
help_mc._yscale = help_mc._yscale - 2;
if (help_mc._xscale <= 5) {
resetHelp();
}
points = points + 500;
points_txt.text = points + " points";
right_bg._x = right_bg._x + bgBack;
if (right_bg._x >= 600) {
right_bg._x = 600;
}
bottom_bg._y = bottom_bg._y + bgBack;
if (bottom_bg._y >= 600) {
bottom_bg._y = 600;
}
left_bg._x = left_bg._x - bgBack;
if (left_bg._x <= -714.1) {
left_bg._x = -714.1;
}
top_bg._y = top_bg._y - bgBack;
if (top_bg._y <= -714.1) {
top_bg._y = -714.1;
}
if (points >= levelMax) {
levelMax = levelMax + 47000;
bgMove = bgMove + 0.2;
levelNum = levelNum + 1;
bgBack = bgBack + 2;
chaserSpeed = chaserSpeed - 2;
if (chaserSpeed <= 12) {
chaserSpeed = 12;
}
gotoAndPlay ("start");
}
}
};
ball_mc._x = Math.random() * 800;
ball_mc._y = Math.random() * 600;
ball_mc.onEnterFrame = function () {
var _local2 = _xmouse;
this._x = this._x + ((_xmouse - this._x) / chaserSpeed);
this._y = this._y + ((_ymouse - this._y) / chaserSpeed);
if (this.hitTest(cursor_mc)) {
size = size - 3;
cursor_mc._xscale = cursor_mc._xscale + cursorScale;
cursor_mc._yscale = cursor_mc._yscale + cursorScale;
life_mc._xscale = size;
if (size <= 0) {
gotoAndPlay ("game_over");
}
}
};
right_bg.onEnterFrame = function () {
this._x = this._x - bgMove;
if (this.hitTest(cursor_mc)) {
cursor_mc._x = this._x - 10;
}
};
bottom_bg.onEnterFrame = function () {
this._y = this._y - bgMove;
if (this._y <= 400) {
gotoAndPlay ("game_over");
}
if (this.hitTest(cursor_mc)) {
cursor_mc._y = this._y - 10;
}
};
left_bg.onEnterFrame = function () {
this._x = this._x + bgMove;
if (this.hitTest(cursor_mc)) {
cursor_mc._x = this._x + 724;
}
};
top_bg.onEnterFrame = function () {
this._y = this._y + bgMove;
if (this.hitTest(cursor_mc)) {
cursor_mc._y = this._y + 724;
}
};
Frame 127
stop();
Mouse.show();
home2_mc.onRollOver = function () {
var _local2 = new Color(_root.home2_mc);
_local2.setRGB(6710886);
};
home2_mc.onRollOut = function () {
var _local2 = new Color(_root.home2_mc);
_local2.setRGB(0);
};
submit_mc.onRollOver = function () {
var _local2 = new Color(_root.submit_mc);
_local2.setRGB(6710886);
};
submit_mc.onRollOut = function () {
var _local2 = new Color(_root.submit_mc);
_local2.setRGB(0);
};
view_mc.onRollOver = function () {
var _local2 = new Color(_root.view_mc);
_local2.setRGB(6710886);
};
view_mc.onRollOut = function () {
var _local2 = new Color(_root.view_mc);
_local2.setRGB(0);
};
play_mc2.onPress = function () {
points = 0;
gotoAndPlay ("start");
life_mc._xscale = 100;
points = 0;
levelMax = 65000;
bgMove = 0.4;
bgBack = 2;
chaserSpeed = 24;
};
home2_mc.onRelease = function () {
points = 0;
gotoAndPlay ("home");
};
right_bg.onEnterFrame = function () {
this._x = 600;
};
bottom_bg.onEnterFrame = function () {
this._y = 600;
};
left_bg.onEnterFrame = function () {
this._x = -714.1;
};
top_bg.onEnterFrame = function () {
this._y = -714.1;
};
if (levelNum < 2) {
youveGot_txt.text = varName + ", you have microscopic balls";
} else if (levelNum == 2) {
youveGot_txt.text = "You have tiny balls, " + varName;
} else if (levelNum == 3) {
youveGot_txt.text = varName + ", you now have small balls";
} else if (levelNum == 4) {
youveGot_txt.text = "Your balls are on the below average side, " + varName;
} else if (levelNum == 5) {
youveGot_txt.text = varName + ", you now have average sized balls";
} else if (levelNum == 6) {
youveGot_txt.text = "You're balls are a bit bigger than average, " + varName;
} else if (levelNum == 7) {
youveGot_txt.text = ("Wow " + varName) + ", you've got some hefty balls";
} else if (levelNum == 8) {
youveGot_txt.text = "Your balls are pretty burly, " + varName;
} else if (levelNum == 9) {
youveGot_txt.text = "You have large balls, " + varName;
} else if (levelNum == 10) {
youveGot_txt.text = varName + ", your balls are enormous ";
} else if (levelNum == 11) {
youveGot_txt.text = "You have gargantuan balls, " + varName;
} else if (levelNum == 12) {
youveGot_txt.text = "Your balls are magnificent, " + varName;
} else if (levelNum == 13) {
youveGot_txt.text = varName + ", you now have colossal balls";
} else if (levelNum == 14) {
youveGot_txt.text = "Whoa, you've got JUGGERNAUT BALLS, " + varName;
} else if (levelNum == 15) {
youveGot_txt.text = "Whoa, you've got JUGGERNAUT BALLS";
} else if (levelNum == 16) {
youveGot_txt.text = "Your balls are behemothic";
} else if (levelNum == 17) {
youveGot_txt.text = "Monumental balls, " + varName;
} else if (levelNum == 18) {
youveGot_txt.text = "You have galactic sized balls, " + varName;
} else if (levelNum == 19) {
youveGot_txt.text = varName + ", you are now a level one Ball Master";
} else if (levelNum == 20) {
youveGot_txt.text = "2nd level Ball Master";
} else if (levelNum == 21) {
youveGot_txt.text = "3rd level Ball Master";
} else if (levelNum == 22) {
youveGot_txt.text = "4th level Ball Master";
} else if (levelNum == 23) {
youveGot_txt.text = "5th level Ball Master";
} else if (levelNum == 24) {
youveGot_txt.text = varName + ", you are now a level one SUPREME Ball Master";
} else if (levelNum == 25) {
youveGot_txt.text = "2nd level SUPREME Ball Master";
} else if (levelNum == 26) {
youveGot_txt.text = "3rd level SUPREME Ball Master";
} else if (levelNum == 27) {
youveGot_txt.text = "4th level SUPREME Ball Master";
} else if (levelNum == 28) {
youveGot_txt.text = "5th level SUPREME Ball Master";
} else if (levelNum == 29) {
youveGot_txt.text = varName + ", you are now a level one GRAND CHAMPION Ball Master";
} else if (levelNum == 30) {
youveGot_txt.text = "2nd level GRAND CHAMPION Ball Master";
} else if (levelNum == 31) {
youveGot_txt.text = "3rd level GRAND CHAMPION Ball Master";
} else if (levelNum == 32) {
youveGot_txt.text = "4th level GRAND CHAMPION Ball Master";
} else if (levelNum == 33) {
youveGot_txt.text = "5th level GRAND CHAMPION Ball Master";
} else if (levelNum > 33) {
youveGot_txt.text = varName + ", YOU ARE THE GOD OF BALLS!";
}
stats.txt.text = (("Your stats: Level = " + levelNum) + " Score = ") + points;
scoretable.filename = "scores/demo.sco";
scoretable.scoresize = 10;
scoretable.action = "INSERT";
scoretable.viewtype = "FLASH";
scoretable.winname = varName;
scoretable.winscore = _root.points;
scoretable.loadVariables("http://www.robinkmedia.com/scores.php", "GET");
System.security.allowDomain("www.robinkmedia.com");
System.security.allowDomain("robinkmedia.com");
Frame 128
function resetHelp() {
instructVar = instructVar + 1;
if (instructVar == 3) {
gotoAndPlay ("instruct2");
}
if (instructVar == 5) {
gotoAndPlay ("instruct3");
}
help_mc._x = Math.random() * 600;
help_mc._y = Math.random() * 600;
help_mc._xscale = helpStartScaleX;
help_mc._yscale = helpStartScaleY;
}
var instructVar = 0;
var points2 = 0;
var helpStartScaleX = help_mc._xscale;
var helpStartScaleY = help_mc._yscale;
Mouse.hide();
cursor_mc.onEnterFrame = function () {
this.startDrag(true);
};
help_mc.onEnterFrame = function () {
if (this.hitTest(inv_btn)) {
this._y = this._y - 40;
}
if (this._x >= 550) {
this._x = 530;
}
if (this._x <= 0) {
this._x = 20;
}
if (this._y <= 0) {
this._y = 20;
}
if (this._y >= 550) {
this._y = 530;
}
if (this.hitTest(right_bg)) {
resetHelp();
}
if (this.hitTest(left_bg)) {
resetHelp();
}
if (this.hitTest(top_bg)) {
resetHelp();
}
if (this.hitTest(bottom_bg)) {
resetHelp();
}
};
cursor_mc._x = Math.random() * 800;
cursor_mc._y = Math.random() * 600;
cursor_mc.onEnterFrame = function () {
this.startDrag(true);
if (this.hitTest(help_mc)) {
points2 = points2 + 500;
points2_txt.text = points2 + " points";
help_mc._xscale = help_mc._xscale - 2;
help_mc._yscale = help_mc._yscale - 2;
if (help_mc._xscale <= 5) {
resetHelp();
}
points = points + 500;
points_txt.text = points + " points";
right_bg._x = right_bg._x + bgBack;
if (right_bg._x >= 600) {
right_bg._x = 600;
}
bottom_bg._y = bottom_bg._y + bgBack;
if (bottom_bg._y >= 600) {
bottom_bg._y = 600;
}
left_bg._x = left_bg._x - bgBack;
if (left_bg._x <= -714.1) {
left_bg._x = -714.1;
}
top_bg._y = top_bg._y - bgBack;
if (top_bg._y <= -714.1) {
top_bg._y = -714.1;
}
if (points >= levelMax) {
levelMax = levelMax + 65000;
bgMove = bgMove + 0.2;
levelNum = levelNum + 1;
bgBack = bgBack + 2;
chaserSpeed = chaserSpeed - 2;
if (chaserSpeed <= 12) {
chaserSpeed = 12;
}
}
}
};
ball_mc._x = Math.random() * 800;
ball_mc._y = Math.random() * 600;
ball_mc.onEnterFrame = function () {
var _local2 = _xmouse;
this._x = this._x + ((_xmouse - this._x) / 30);
this._y = this._y + ((_ymouse - this._y) / 30);
if (this.hitTest(cursor_mc)) {
size = size - 3;
cursor_mc._xscale = cursor_mc._xscale + 5;
cursor_mc._yscale = cursor_mc._yscale + 5;
life_mc._xscale = size;
if (size <= 0) {
gotoAndPlay ("game_over");
}
}
};
Frame 134
stop();
Frame 141
stop();
Frame 142
ball_mc._x = Math.random() * 800;
ball_mc._y = Math.random() * 600;
ball_mc.onEnterFrame = function () {
var _local2 = _xmouse;
this._x = this._x + ((_xmouse - this._x) / 40);
this._y = this._y + ((_ymouse - this._y) / 40);
if (this.hitTest(cursor_mc)) {
size = size - 3;
cursor_mc._xscale = cursor_mc._xscale + 20;
cursor_mc._yscale = cursor_mc._yscale + 20;
if (cursor_mc._xscale >= 800) {
gotoAndPlay ("instruct4");
}
}
};
Frame 148
stop();
Frame 149
help_mc._x = 103;
help_mc._y = 456;
cursor_mc.onEnterFrame = function () {
this.startDrag(true);
if (this.hitTest(help_mc)) {
points2 = points2 + 500;
points2_txt.text = points2 + " points";
help_mc._xscale = help_mc._xscale - 2;
help_mc._yscale = help_mc._yscale - 2;
if (help_mc._xscale <= 5) {
resetHelp();
gotoAndPlay ("instruct5");
}
}
};
Frame 155
stop();
Frame 156
help_mc._x = 455;
help_mc._y = 104;
cursor_mc._x = Math.random() * 800;
cursor_mc._y = Math.random() * 600;
cursor_mc._xscale = 100;
cursor_mc._yscale = 100;
cursor_mc.onEnterFrame = function () {
this.startDrag(true);
if (this.hitTest(help_mc)) {
points2 = points2 + 500;
points2_txt.text = points2 + " points";
help_mc._xscale = help_mc._xscale - 2;
help_mc._yscale = help_mc._yscale - 2;
if (help_mc._xscale <= 5) {
resetHelp();
}
points = points + 500;
points_txt.text = points + " points";
right_bg._x = right_bg._x + bgBack;
if (right_bg._x >= 600) {
right_bg._x = 600;
gotoAndPlay ("instruct6");
}
bottom_bg._y = bottom_bg._y + bgBack;
if (bottom_bg._y >= 600) {
bottom_bg._y = 600;
}
left_bg._x = left_bg._x - bgBack;
if (left_bg._x <= -714.1) {
left_bg._x = -714.1;
}
top_bg._y = top_bg._y - bgBack;
if (top_bg._y <= -714.1) {
top_bg._y = -714.1;
}
if (points >= levelMax) {
levelMax = levelMax + 65000;
bgMove = bgMove + 0.2;
levelNum = levelNum + 1;
bgBack = bgBack + 2;
chaserSpeed = chaserSpeed - 2;
if (chaserSpeed <= 12) {
chaserSpeed = 12;
}
}
}
};
right_bg.onEnterFrame = function () {
this._x = this._x - bgMove;
if (this.hitTest(cursor_mc)) {
cursor_mc._x = this._x - 10;
}
};
bottom_bg.onEnterFrame = function () {
this._y = this._y - bgMove;
if (this._y <= 400) {
}
if (this.hitTest(cursor_mc)) {
cursor_mc._y = this._y - 10;
}
};
left_bg.onEnterFrame = function () {
this._x = this._x + bgMove;
if (this.hitTest(cursor_mc)) {
cursor_mc._x = this._x + 724;
}
};
top_bg.onEnterFrame = function () {
this._y = this._y + bgMove;
if (this.hitTest(cursor_mc)) {
cursor_mc._y = this._y + 724;
}
};
Frame 162
stop();
Frame 237
gotoAndPlay (39);
Symbol 25 Button
on (release) {
getURL ("http://www.addictinggames.com", _blank);
}
Symbol 26 MovieClip Frame 38
gotoAndStop (38);
Symbol 45 MovieClip Frame 10
stop();
Symbol 68 Button
on (release) {
_level0.swHighScoreObject.player1Score = _root.points;
_root.swHighScoreObject.showTab = "submit";
docount = true;
loadMovieNum (_root.HSHubURL, 2);
}
Symbol 71 Button
on (release) {
_root.swHighScoreObject.showTab = "view";
docount = true;
loadMovieNum (_root.HSHubURL, 2);
}