Frame 1
function __com_mochibot__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
var pv;
mb = "__mochibot__";
mbc = "mochibot.com";
g = (_global ? (_global) : (_level0._root));
if (g[mb + swfid]) {
return(g[mb + swfid]);
}
s = System.security;
x = mc._root.getSWFVersion;
fv = (x ? (mc.getSWFVersion()) : ((_global ? 6 : 5)));
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == "localWithFile") {
return(null);
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
pv = ((fv == 5) ? (getVersion()) : (System.capabilities.version));
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=8&fv=") + fv) + "&v=") + escape(pv)) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "")) + (trk ? "&t=1" : "");
lv = ((fv > 6) ? (mc.getNextHighestDepth()) : ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv))));
g[mb + "level"] = lv;
if (fv == 5) {
res = "_level" + lv;
if (!eval (res)) {
loadMovieNum (u, lv);
}
} else {
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
}
return(res);
}
__com_mochibot__("2f4ae2cd", this, 10301, true);
gotoAndStop (1);
Frame 2
stop();
Frame 3
function timeDown() {
if ((countdown = true)) {
time--;
if (time < 11) {
timerdown.start(0, 1);
}
if (time < 1) {
gotoAndStop ("challcomp");
}
}
}
setInterval(timeDown, 1000);
var savefile = SharedObject.getLocal("colorballsaver3.2");
played = savefile.data.playeds;
if (played == true) {
highscore = savefile.data.hs;
blueRate = savefile.data.blueRates;
redRate = savefile.data.redRates;
omegaRate = savefile.data.omegaRates;
yellowRate = savefile.data.yellowRates;
greenRate = savefile.data.greenRates;
arcade = savefile.data.arcades;
} else {
var omegaRate = 1;
var highscore = 0;
var blueRate = 1;
var redRate = 1;
var yellowRate = 1;
var greenRate = 1;
var arcade = 1;
}
var music = 1;
link.onRelease = function () {
getURL ("http://patrickm60.110mb.com", "_blank");
};
Frame 4
bg = new Sound();
bg.attachSound("song1");
var music = 0;
if (music == 0) {
bg.start(0, 99);
music = 1;
}
pwr = new Sound();
pwr.attachSound("pwr");
hit = new Sound();
hit.attachSound("hit1");
timerdown = new Sound();
timerdown.attachSound("timerd");
var played = true;
savefile.data.playeds = _root.played;
Frame 5
if (music == 0) {
bg.start(0, 99);
music = 1;
}
savefile.data.blueRates = blueRate;
savefile.data.redRates = redRate;
savefile.data.greenRates = greenRate;
savefile.data.yellowRates = yellowRate;
savefile.data.arcades = arcade;
savefile.data.omegaRates = omegaRate;
savefile.data.hs = highscore;
savefile.flush();
Frame 76
stop();
ys.onRelease = function () {
gotoAndStop ("yourstats");
};
pmg.onRelease = function () {
getURL ("http://allgamesallfree.com", "_blank");
};
Mouse.show();
var choice = 0;
Frame 77
arcadebtn.onRelease = function () {
choice = 5;
gotoAndPlay ("vars");
};
challbtn.onRelease = function () {
gotoAndPlay ("chall");
};
Frame 79
ys.onRelease = function () {
gotoAndStop ("yourstats");
};
Mouse.show();
var choice = 0;
challbtn.onRollOver = function () {
challbtn.play();
};
challbtn.onRollOut = function () {
challbtn.gotoAndStop(1);
};
challbtn.onRelease = function () {
gotoAndStop ("challenge");
};
Frame 93
stop();
countdown = false;
var challenge = "";
var yellowDesc = "Survive one minute with the yellow drag ability. Miss FIVE and it's game over!";
var redDesc = "Survive one minute with the red speed ability. Miss SIX and it's crash and burn!";
var blueDesc = "Were did it go? survive one and minute with the blue ball's invisible properties. Miss FIVE and consider your stealth lost!";
var greenDesc = "Bigger is better right? Wrong!Survive for one minute with the green ball's expansion properties. Miss FIVE and it's game over!";
var omegDesc = "Use the power of the omega ball to catch all the balls.Only true color ball pros can do this sucessfully.";
var colorArray3 = new Array("Red", "Blue", "Green", "Yellow", "Omega");
omegabtn.onRollOver = function () {
challenge = "omega";
displayer.gotoAndStop(2);
displayer.desc = omegDesc;
displayer.head = colorArray3[4];
displayer.ball1.gotoAndStop("omega");
displayer.ball2.gotoAndStop("omega");
displayer.rating.gotoAndStop(omegaRate);
};
blue.onRollOver = function () {
challenge = "blue";
displayer.gotoAndStop(2);
displayer.desc = blueDesc;
displayer.head = colorArray3[1];
displayer.ball1.gotoAndStop("blue");
displayer.ball2.gotoAndStop("blue");
displayer.rating.gotoAndStop(blueRate);
};
green.onRollOver = function () {
challenge = "green";
displayer.gotoAndStop(2);
displayer.desc = greenDesc;
displayer.head = colorArray3[2];
displayer.ball1.gotoAndStop("green");
displayer.ball2.gotoAndStop("green");
displayer.rating.gotoAndStop(greenRate);
};
yellow.onRollOver = function () {
challenge = "yellow";
displayer.gotoAndStop(2);
displayer.desc = yellowDesc;
displayer.head = colorArray3[3];
displayer.ball1.gotoAndStop("yellow");
displayer.ball2.gotoAndStop("yellow");
displayer.rating.gotoAndStop(yellowRate);
};
red.onRollOver = function () {
challenge = "red";
displayer.gotoAndStop(2);
displayer.desc = redDesc;
displayer.head = colorArray3[0];
displayer.ball1.gotoAndStop("red");
displayer.ball2.gotoAndStop("red");
displayer.rating.gotoAndStop(redRate);
};
yellow.onRelease = function () {
choice = 4;
gotoAndStop ("vars");
};
blue.onRelease = function () {
choice = 2;
gotoAndStop ("vars");
};
red.onRelease = function () {
choice = 1;
gotoAndStop ("vars");
};
green.onRelease = function () {
choice = 3;
gotoAndStop ("vars");
};
omegabtn.onRelease = function () {
choice = 6;
gotoAndStop ("vars");
};
Frame 95
main.onRelease = function () {
gotoAndPlay ("mm");
};
rater1.gotoAndStop(redRate);
rater2.gotoAndStop(yellowRate);
rater3.gotoAndStop(greenRate);
rater4.gotoAndStop(blueRate);
rater5.gotoAndStop(arcade);
rater7.gotoAndStop(omegaRate);
var average = Math.round(((((redRate + blueRate) + greenRate) + yellowRate) + arcade) / 5);
rater6.gotoAndStop(average);
if (average >= 5) {
rank.gotoAndStop(4);
} else if (average >= 4) {
rank.gotoAndStop(3);
} else if (average >= 3) {
rank.gotoAndStop(2);
} else if (average >= 2) {
rank.gotoAndStop(1);
} else {
rank.gotoAndStop(1);
}
clear1.onRelease = function () {
redRate = 1;
yellowRate = 1;
blueRate = 1;
greenRate = 1;
omegaRate = 1;
arcade = 1;
highscore = 0;
gotoAndPlay ("mm");
};
Frame 96
next1.onRelease = function () {
help.nextFrame();
};
back.onRelease = function () {
help.prevFrame();
};
menu.onRelease = function () {
gotoAndPlay ("mm");
};
Frame 97
function rpow() {
hit.start();
pwd._alpha = 50;
pw = true;
health = true;
powercol = colorArray[0];
pwd.gotoAndStop(powercol);
big.gotoAndStop(powercol);
color1 = powercol;
color2 = powercol;
}
function bpow() {
hit.start();
powercol = colorArray[1];
pwd._alpha = 50;
pw = true;
slow = true;
pwd.gotoAndStop(powercol);
big.gotoAndStop(powercol);
color1 = powercol;
color2 = powercol;
}
function ypow() {
hit.start();
powercol = colorArray[3];
pwd._alpha = 50;
pw = true;
autofive = true;
pwd.gotoAndStop(powercol);
big.gotoAndStop(powercol);
color1 = powercol;
color2 = powercol;
}
function gpow() {
hit.start();
powercol = colorArray[2];
pwd._alpha = 50;
pw = true;
allg = true;
pwd.gotoAndStop(powercol);
big.gotoAndStop(powercol);
color1 = powercol;
color2 = powercol;
}
function endpowerup() {
pwd.stop();
pwd._alpha = 0;
pw = false;
allg = false;
health = false;
slow = false;
autofive = false;
if (omega) {
colorChange = 1199;
}
omega = false;
}
function omegapw() {
hit.start();
powercol = colorArray[4];
pwd._alpha = 50;
pw = true;
omega = true;
autofive = true;
pwd.gotoAndStop(powercol);
big.gotoAndStop(powercol);
color1 = powercol;
color2 = powercol;
}
function ColorChange() {
directionChange++;
if (pw) {
powertime--;
}
if (powertime < 0) {
powertime = 0;
endpowerup();
}
if (change1 == true) {
sec++;
}
if (sec > 3) {
pause1 = false;
color2 = color1;
big.gr._visible = false;
change1 = false;
sec = 0;
big.gotoAndStop(color1);
}
if (directionChange > 35) {
direction1 = Math.round(Math.random() * 3) + 1;
directionChange = 0;
}
}
re.gotoAndStop("gone");
collect = new Sound();
collect.attachSound("collect");
wrong = new Sound();
wrong.attachSound("wrong");
levelup = new Sound();
levelup.attachSound("level");
attachMovie("powerupdisp", "pwd", i);
pwd._x = 300;
pwd._y = 225;
pwd._alpha = 0;
stop();
var direction1 = 1;
var magnet = false;
var bcount = 0;
var rcount = 0;
var gcount = 0;
var ycount = 0;
var mistakes = 0;
var collectable = 0;
var collected = 0;
var combodisplay = "";
var directionChange = 0;
var combo = 10;
var power_txt = "None";
var pw = false;
var powerup = 0;
var initmistakes = 5;
var power = 0;
var numofColors = 3;
var numofPowerups = 1;
var colorArray = new Array("red", "blue", "green", "yellow", "omega");
var color1 = colorArray[Math.round(Math.random() * 3)];
var color2 = color1;
big.gotoAndStop(color1);
var levelend = 100;
var rad = 50;
var d = 1;
var score1 = 0;
var releasesp = 0;
var rapidness = 15;
var sec = 0;
var re1 = 0;
var misses = 8;
var colorChange = 0;
var change1 = false;
var level = 1;
var ball_create = 0;
var colorChange = 0;
var powerup = 0;
var powertype = 0;
var powertime = 0;
var time = undefined;
var power = false;
var shrink = false;
var powered = false;
var powercol = "";
var slow = false;
var autofive = false;
var change1 = setInterval(ColorChange, 1000);
get_ready._visible = false;
if (choice == 6) {
omega = true;
color1 = "omega";
color2 = color1;
time = 60;
misses = 8;
missinit = misses;
gotoAndStop ("omegchall");
} else if (choice == 5) {
gotoAndStop ("arcade");
} else if (choice == 4) {
color1 = "yellow";
color2 = color1;
time = 60;
misses = 5;
missinit = misses;
gotoAndStop ("yellowchall");
} else if (choice == 3) {
color1 = "green";
color2 = color1;
time = 60;
misses = 5;
missinit = misses;
gotoAndStop ("greenchall");
} else if (choice == 2) {
color1 = "blue";
color2 = color1;
time = 60;
misses = 5;
missinit = misses;
gotoAndStop ("bluechall");
} else if (choice == 1) {
color1 = "red";
color2 = color1;
time = 60;
misses = 5;
missinit = misses;
gotoAndStop ("redchall");
}
Frame 98
var gameOver = false;
var ball_p = false;
player.onRelease = function () {
if (pause1) {
Mouse.show();
ball_p = false;
pause1 = false;
pause2.removeMovieClip();
} else {
Mouse.show();
pause1 = true;
ball_p = true;
attachMovie("pause", "pause2", 100000);
pause2._x = 0;
pause2._y = 0.5;
}
};
big.gotoAndStop(color1);
onEnterFrame = function () {
if (autofive) {
combo = 100;
}
missesMC.gotoAndStop(misses);
score = (((("Score: " + score1) + "/") + levelend) + " Level: ") + level;
if (misses < 1) {
gotoAndStop ("gameover");
Mouse.show();
misses = 8;
}
if (Key.isDown(81) && (pause1)) {
Mouse.show();
pause2.removeMovieClip();
ball_p = false;
pause1 = false;
gotoAndStop ("gameover");
}
if (!gameOver) {
if (Key.isDown(77)) {
stopAllSounds();
music = 0;
}
}
if (score1 >= levelend) {
misses = 8;
levelend = levelend + (200 * level);
level++;
levelup.start(0, 1);
releasesp++;
attachMovie("levelup", "levelup1", 1);
levelup1._x = Stage.width / 2;
levelup1._y = 57;
levelup1._alpha = 74;
if ((releasesp > 6) and (rapidness > 5)) {
rapidness = rapidness - 4;
releasesp = 0;
}
}
if (!pause1) {
colorChange++;
ball_create++;
powerup++;
re++;
}
if (ball_create > rapidness) {
duplicateMovieClip (target, "target" + d, d);
d++;
ball_create = 0;
}
if (colorChange > 900) {
color1 = colorArray[Math.round(Math.random() * 3)];
big.gotoAndStop(color1);
if (!(color1 === color2)) {
endpowerup();
colorChange = 0;
big.gr._visible = true;
pause1 = true;
change1 = true;
} else {
color1 = color2;
colorChange = 0;
}
}
};
Instance of Symbol 232 MovieClip "big" in Frame 98
onClipEvent (enterFrame) {
if (!_root.omega) {
this.gotoAndStop(color1);
}
}
Instance of Symbol 161 MovieClip "player" in Frame 98
onClipEvent (enterFrame) {
if (!_root.ball_p) {
Mouse.hide();
_x = (_x + _xmouse);
_y = (_y + _ymouse);
}
this.gotoAndStop(_root.color2);
}
Instance of Symbol 161 MovieClip "target" in Frame 98
onClipEvent (load) {
direction2 = _root.direction1;
move1 = true;
name1 = _root.d;
color = _root.colorArray[Math.round(Math.random(1) * _root.numofColors)];
if (_root.allg) {
color = _root.colorArray[2];
}
if ((color == _root.color2) or _root.omega) {
_root.collectable++;
}
if (_root.magnet && (color == _root.colorArray[0])) {
magnet1 = true;
}
if (_root.direction1 == 1) {
_y = (Math.random(1) * Stage.height);
_x = -60;
} else if (_root.direction1 == 2) {
_y = (Math.random(1) * Stage.height);
_x = 660;
} else if (_root.direction1 == 3) {
_y = -60;
_x = (Math.random(1) * Stage.width);
} else if (_root.direction1 == 4) {
_y = 460;
_x = (Math.random(1) * Stage.width);
}
this.gotoAndStop(color);
}
onClipEvent (enterFrame) {
if (_root.slow) {
speed = 3;
} else {
speed = (_root.level + 5) + Math.floor(_root.combo / 10);
}
if (name1 < 2) {
_x = -1000000;
move1 = false;
} else {
move1 = true;
}
if (move1) {
if (!_root.pause1) {
if (direction2 == 1) {
_x = (_x + speed);
if (_x > 600) {
if (color == _root.color2) {
_root.combo = 10;
_root.misses--;
_root.wrong.start(0, 1);
}
this.removeMovieClip();
}
} else if (direction2 == 2) {
_x = (_x - speed);
if (_x < -20) {
if (color == _root.color2) {
_root.combo = 10;
_root.misses--;
_root.wrong.start(0, 1);
}
this.removeMovieClip();
}
} else if (direction2 == 3) {
_y = (_y + speed);
if (_y > 450) {
if (color == _root.color2) {
_root.combo = 10;
_root.misses--;
_root.wrong.start(0, 1);
}
this.removeMovieClip();
}
} else if (direction2 == 4) {
_y = (_y - speed);
if (_y < -20) {
if (color == _root.color2) {
_root.combo = 10;
_root.misses--;
_root.wrong.start(0, 1);
}
this.removeMovieClip();
}
}
}
rad = 45;
distance = Math.sqrt(Math.pow(_root.player._x - this._x, 2)) + Math.sqrt(Math.pow(_root.player._y - this._y, 2));
if ((distance < rad) and (!_root.pause1)) {
if ((_root.color2 == color) or _root.omega) {
_root.collected++;
_root.combo++;
_root.score1 = _root.score1 + (Math.floor(_root.combo / 10) * 20);
_root.collect.start(0, 1);
if (!_root.pw) {
if (color == "blue") {
_root.bcount++;
} else if (color == "red") {
_root.rcount++;
} else if (color == "yellow") {
_root.ycount++;
} else if (color == "green") {
_root.gcount++;
}
}
if (_root.health && (_root.misses < 8)) {
_root.misses++;
}
this.removeMovieClip();
} else {
_root.mistakes++;
if (!_root.autofive) {
_root.combo = 10;
}
_root.misses--;
_root.wrong.start(0, 1);
this.removeMovieClip();
}
}
}
}
Instance of Symbol 158 MovieClip "multer" in Frame 98
onClipEvent (enterFrame) {
if (_root.combo >= 99) {
this.gotoAndStop(5);
_root.combodisplay = "x10";
} else if (_root.combo >= 50) {
this.gotoAndStop(5);
_root.combodisplay = "x5";
} else if (_root.combo >= 40) {
this.gotoAndStop(4);
_root.combodisplay = "x4";
} else if (_root.combo >= 30) {
this.gotoAndStop(3);
_root.combodisplay = "x3";
} else if (_root.combo >= 20) {
this.gotoAndStop(2);
_root.combodisplay = "x2";
} else {
_root.combodisplay = "x1";
this.gotoAndStop(1);
}
}
Instance of Symbol 244 MovieClip "pw" in Frame 98
onClipEvent (enterFrame) {
if (_root.health && (_root.misses > 7)) {
_root.endpowerup();
}
if (_root.rcount > 20) {
_root.rcount = 0;
red._alpha = 100;
red.play();
_root.pwr.start(0, 1);
rpwready = true;
}
if (_root.ycount > 20) {
_root.ycount = 0;
yellow._alpha = 100;
yellow.play();
_root.pwr.start(0, 1);
ypwready = true;
}
if (_root.gcount > 20) {
_root.gcount = 0;
green._alpha = 100;
green.play();
_root.pwr.start(0, 1);
gpwready = true;
}
if (_root.bcount > 20) {
_root.bcount = 0;
blue._alpha = 100;
blue.play();
_root.pwr.start(0, 1);
bpwready = true;
}
if (((bpwready && (gpwready)) && (rpwready)) && (ypwready)) {
omgpowerready = true;
}
if (Key.isDown(39) && (gpwready)) {
_root.powertime = 20;
_root.gpow();
green._alpha = 33;
green.stop();
gpwready = false;
} else if (Key.isDown(37) && (rpwready)) {
_root.powertime = 20;
_root.rpow();
red._alpha = 33;
red.stop();
rpwready = false;
} else if (Key.isDown(40) && (bpwready)) {
_root.powertime = 20;
_root.bpow();
blue._alpha = 33;
blue.stop();
bpwready = false;
} else if (Key.isDown(38) && (ypwready)) {
_root.powertime = 20;
_root.ypow();
yellow._alpha = 33;
yellow.stop();
ypwready = false;
} else if (((((Key.isDown(32) && (rpwready)) && (gpwready)) && (ypwready)) && (bpwready)) && (omgpowerready)) {
_root.powertime = 20;
_root.omegapw();
yellow._alpha = 33;
blue._alpha = 33;
red._alpha = 33;
green._alpha = 33;
red.stop();
blue.stop();
green.stop();
yellow.stop();
omgpowerready = false;
}
}
Instance of Symbol 161 MovieClip "player" in Frame 99
onClipEvent (enterFrame) {
Mouse.hide();
_x = (_x + _xmouse);
_y = (_y + _ymouse);
this.gotoAndStop(_root.color2);
if (_root.shrink) {
if ((_xscale > 20) and (_yscale > 20)) {
_xscale = (_xscale - 1);
_yscale = (_yscale - 1);
}
} else if (((!shrink) && (_xscale < 51)) && (_yscale < 51)) {
_xscale = (_xscale + 1);
_yscale = (_yscale + 1);
}
}
Instance of Symbol 161 MovieClip "target" in Frame 99
onClipEvent (load) {
move1 = true;
name1 = _root.d;
color = _root.colorArray[Math.round(Math.random(1) * _root.numofColors)];
if (_root.allg) {
color = _root.colorArray[2];
}
if ((color == _root.color2) or _root.omega) {
_root.collectable++;
}
if (_root.magnet && (color == _root.colorArray[0])) {
magnet1 = true;
}
_y = (Math.random(1) * Stage.height);
_x = -60;
this.gotoAndStop(color);
}
onClipEvent (enterFrame) {
speed = (_root.level + 5) + Math.floor(_root.combo / 10);
if (name1 < 2) {
_x = -1000000;
move1 = false;
} else {
move1 = true;
}
if (move1) {
if (!_root.pause1) {
if (!_root.slow) {
_x = (_x + speed);
} else if (_root.slow) {
_x = (_x + 3);
} else if (magnet1) {
_x = (_x + (_root._xmouse / 4));
_y = (_y + (_root._ymouse / 4));
}
if (_x > 600) {
if (color == _root.color2) {
_root.combo = 10;
_root.misses--;
_root.wrong.start(0, 1);
}
this.removeMovieClip();
}
}
rad = 45;
distance = Math.sqrt(Math.pow(_root.player._x - this._x, 2)) + Math.sqrt(Math.pow(_root.player._y - this._y, 2));
if ((distance < rad) and (!_root.pause1)) {
if ((_root.color2 == color) or _root.omega) {
_root.collected++;
_root.combo++;
_root.score1 = _root.score1 + (Math.floor(_root.combo / 10) * 20);
_root.collect.start(0, 1);
if (!_root.pw) {
if (color == "blue") {
_root.bcount++;
} else if (color == "red") {
_root.rcount++;
} else if (color == "yellow") {
_root.ycount++;
} else if (color == "green") {
_root.gcount++;
}
}
if (_root.health && (_root.misses < 8)) {
_root.misses++;
}
this.removeMovieClip();
} else {
_root.mistakes++;
if (!_root.autofive) {
_root.combo = 1;
}
_root.misses--;
_root.wrong.start(0, 1);
this.removeMovieClip();
}
}
}
}
Frame 103
player.gotoAndStop(color1);
onEnterFrame = function () {
if (misses < 0) {
gotoAndStop ("challcomp");
misses = 0;
}
missesMC.gotoAndStop(misses);
score = "Difficulty: " + level;
if (levelend > 500) {
levelend = 0;
level++;
levelup.start(0, 1);
releasesp++;
attachMovie("levelup", "levelup1", 1);
levelup1._x = Stage.width / 2;
levelup1._y = 57;
levelup1._alpha = 74;
if ((releasesp > 6) and (rapidness > 5)) {
rapidness = rapidness - 4;
releasesp = 0;
}
}
if (powerup == false) {
bar.gotoAndStop(power);
}
if (!pause1) {
levelend++;
colorChange++;
ball_create++;
powerup++;
re++;
}
if (ball_create > rapidness) {
duplicateMovieClip (target, "target" + d, d);
d++;
ball_create = 0;
}
};
Instance of Symbol 232 MovieClip "big" in Frame 103
onClipEvent (enterFrame) {
this.gotoAndStop(_root.color1);
}
Instance of Symbol 161 MovieClip "player" in Frame 103
onClipEvent (enterFrame) {
Mouse.hide();
_x = (_x + (_xmouse / 4));
_y = (_y + (_ymouse / 4));
}
Instance of Symbol 161 MovieClip "target" in Frame 103
onClipEvent (load) {
move1 = true;
name1 = _root.d;
color = _root.colorArray[Math.round(Math.random(1) * _root.numofColors)];
if (color == _root.color2) {
_root.collectable++;
}
_y = (Math.random(1) * Stage.height);
_x = -60;
this.gotoAndStop(color);
}
onClipEvent (enterFrame) {
if (name1 < 2) {
_x = -1000000;
move1 = false;
} else {
move1 = true;
}
if (move1) {
if (!_root.pause1) {
_x = (_x + (_root.level + 10));
}
if (_x > 600) {
if (color == _root.color2) {
_root.combo = 10;
_root.misses--;
_root.wrong.start(0, 1);
}
this.removeMovieClip();
}
}
rad = 45;
distance = Math.sqrt(Math.pow(_root.player._x - this._x, 2)) + Math.sqrt(Math.pow(_root.player._y - this._y, 2));
if (!_root.pause1) {
if (distance < rad) {
if (_root.color2 == color) {
_root.combo++;
_root.score1 = _root.score1 + (Math.floor(_root.combo / 10) * 20);
_root.collect.start(0, 1);
this.removeMovieClip();
} else {
_root.combo = 1;
_root.misses--;
_root.wrong.start(0, 1);
this.removeMovieClip();
}
}
}
if (this.hitTest(_root.barrier1)) {
_root.score1 = _root.score1 + 25;
_root.collect.start(0, 1);
this.removeMovieClip();
}
}
Frame 104
player.gotoAndStop(color1);
onEnterFrame = function () {
if (misses < 0) {
gotoAndStop ("challcomp");
misses = 0;
}
missesMC.gotoAndStop(misses);
score = "Difficulty: " + level;
if (levelend > 500) {
player._alpha = player._alpha - 5;
levelend = 0;
level++;
levelup.start(0, 1);
releasesp++;
attachMovie("levelup", "levelup1", 1);
levelup1._x = Stage.width / 2;
levelup1._y = 57;
levelup1._alpha = 74;
if ((releasesp > 6) and (rapidness > 5)) {
rapidness = rapidness - 4;
releasesp = 0;
}
}
if (powerup == false) {
bar.gotoAndStop(power);
}
if (!pause1) {
levelend++;
colorChange++;
ball_create++;
powerup++;
re++;
}
if (ball_create > rapidness) {
duplicateMovieClip (target, "target" + d, d);
d++;
ball_create = 0;
}
};
Instance of Symbol 161 MovieClip "player" in Frame 104
onClipEvent (enterFrame) {
Mouse.hide();
_x = (_x + _xmouse);
_y = (_y + _ymouse);
}
Instance of Symbol 161 MovieClip "target" in Frame 104
onClipEvent (load) {
move1 = true;
name1 = _root.d;
color = _root.colorArray[Math.round(Math.random(1) * _root.numofColors)];
if (color == _root.color2) {
_root.collectable++;
}
_y = (Math.random(1) * Stage.height);
_x = -60;
this.gotoAndStop(color);
}
onClipEvent (enterFrame) {
if (name1 < 2) {
_x = -1000000;
move1 = false;
} else {
move1 = true;
}
if (move1) {
if (!_root.pause1) {
_x = (_x + (_root.level + 10));
}
if (_x > 600) {
if (color == _root.color2) {
_root.combo = 10;
_root.misses--;
_root.wrong.start(0, 1);
}
this.removeMovieClip();
}
}
rad = 45;
distance = Math.sqrt(Math.pow(_root.player._x - this._x, 2)) + Math.sqrt(Math.pow(_root.player._y - this._y, 2));
if (!_root.pause1) {
if (distance < rad) {
if (_root.color2 == color) {
_root.collect.start(0, 1);
this.removeMovieClip();
} else {
_root.misses--;
_root.wrong.start(0, 1);
this.removeMovieClip();
}
}
if (this.hitTest(_root.barrier1)) {
_root.score1 = _root.score1 + 25;
_root.collect.start(0, 1);
this.removeMovieClip();
}
}
}
Frame 105
player.gotoAndStop(color1);
onEnterFrame = function () {
if (misses < 0) {
gotoAndStop ("challcomp");
misses = 0;
}
missesMC.gotoAndStop(misses);
score = "Difficulty: " + level;
if (levelend > 500) {
levelend = 0;
level++;
levelup.start(0, 1);
releasesp++;
attachMovie("levelup", "levelup1", 1);
levelup1._x = Stage.width / 2;
levelup1._y = 57;
levelup1._alpha = 74;
if ((releasesp > 6) and (rapidness > 5)) {
rapidness = rapidness - 4;
releasesp = 0;
}
}
if (powerup == false) {
bar.gotoAndStop(power);
}
if (!pause1) {
levelend++;
colorChange++;
ball_create++;
powerup++;
re++;
}
if (ball_create > rapidness) {
duplicateMovieClip (target, "target" + d, d);
d++;
ball_create = 0;
}
};
Instance of Symbol 161 MovieClip "target" in Frame 105
onClipEvent (load) {
move1 = true;
name1 = _root.d;
color = _root.colorArray[Math.round(Math.random(1) * _root.numofColors)];
if (color == _root.color2) {
_root.collectable++;
}
_y = (Math.random(1) * Stage.height);
_x = -60;
this.gotoAndStop(color);
}
onClipEvent (enterFrame) {
if (name1 < 2) {
_x = -1000000;
move1 = false;
} else {
move1 = true;
}
if (move1) {
if (!_root.pause1) {
_x = (_x + (_root.level + 15));
}
if (_x > 600) {
if (color == _root.color2) {
_root.combo = 10;
_root.misses--;
_root.wrong.start(0, 1);
}
this.removeMovieClip();
}
}
rad = 45;
distance = Math.sqrt(Math.pow(_root.player._x - this._x, 2)) + Math.sqrt(Math.pow(_root.player._y - this._y, 2));
if (!_root.pause1) {
if (distance < rad) {
if (_root.color2 == color) {
_root.collect.start(0, 1);
this.removeMovieClip();
} else {
_root.misses--;
_root.wrong.start(0, 1);
this.removeMovieClip();
}
}
if (this.hitTest(_root.barrier1)) {
_root.score1 = _root.score1 + 25;
_root.collect.start(0, 1);
this.removeMovieClip();
}
}
}
Frame 106
player.gotoAndStop(color1);
onEnterFrame = function () {
if (misses < 0) {
gotoAndStop ("challcomp");
misses = 0;
}
missesMC.gotoAndStop(misses);
score = "Difficulty: " + level;
if (levelend > 500) {
levelend = 0;
level++;
levelup.start(0, 1);
releasesp++;
attachMovie("levelup", "levelup1", 1);
levelup1._x = Stage.width / 2;
levelup1._y = 57;
levelup1._alpha = 74;
if ((releasesp > 6) and (rapidness > 5)) {
rapidness = rapidness - 4;
releasesp = 0;
}
}
if (powerup == false) {
bar.gotoAndStop(power);
}
if (!pause1) {
levelend++;
colorChange++;
ball_create++;
powerup++;
re++;
}
if (ball_create > rapidness) {
duplicateMovieClip (target, "target" + d, d);
d++;
ball_create = 0;
}
};
Instance of Symbol 161 MovieClip "target" in Frame 106
onClipEvent (load) {
move1 = true;
name1 = _root.d;
color = _root.colorArray[Math.round(Math.random(1) * _root.numofColors)];
if (color == _root.color2) {
_root.collectable++;
}
_y = (Math.random(1) * Stage.height);
_x = -60;
this.gotoAndStop(color);
}
onClipEvent (enterFrame) {
if (name1 < 2) {
_x = -1000000;
move1 = false;
} else {
move1 = true;
}
if (move1) {
if (!_root.pause1) {
_x = (_x + (_root.level + 10));
}
if (_x > 600) {
if (color == _root.color2) {
_root.combo = 10;
_root.misses--;
_root.wrong.start(0, 1);
}
this.removeMovieClip();
}
}
rad = 80;
distance = Math.sqrt(Math.pow(_root.player._x - this._x, 2)) + Math.sqrt(Math.pow(_root.player._y - this._y, 2));
if (!_root.pause1) {
if (distance < rad) {
if (_root.color2 == color) {
_root.collect.start(0, 1);
this.removeMovieClip();
} else {
_root.misses--;
_root.wrong.start(0, 1);
this.removeMovieClip();
}
}
if (this.hitTest(_root.barrier1)) {
_root.score1 = _root.score1 + 25;
_root.collect.start(0, 1);
this.removeMovieClip();
}
}
}
Instance of Symbol 261 MovieClip "player" in Frame 106
onClipEvent (enterFrame) {
Mouse.hide();
_x = (_x + _xmouse);
_y = (_y + _ymouse);
}
Frame 107
player.gotoAndStop(color1);
onEnterFrame = function () {
if (misses < 0) {
gotoAndStop ("challcomp");
misses = 0;
}
missesMC.gotoAndStop(misses);
score = "Difficulty: " + level;
if (levelend > 500) {
levelend = 0;
level++;
levelup.start(0, 1);
releasesp++;
attachMovie("levelup", "levelup1", 1);
levelup1._x = Stage.width / 2;
levelup1._y = 57;
levelup1._alpha = 74;
if ((releasesp > 6) and (rapidness > 5)) {
rapidness = rapidness - 4;
releasesp = 0;
}
}
if (powerup == false) {
bar.gotoAndStop(power);
}
if (!pause1) {
levelend++;
colorChange++;
ball_create++;
powerup++;
re++;
}
if (ball_create > rapidness) {
duplicateMovieClip (target, "target" + d, d);
d++;
ball_create = 0;
}
};
Instance of Symbol 161 MovieClip "player" in Frame 107
onClipEvent (enterFrame) {
Mouse.hide();
_x = (_x + _xmouse);
_y = (_y + _ymouse);
}
Instance of Symbol 161 MovieClip "target" in Frame 107
onClipEvent (load) {
move1 = true;
name1 = _root.d;
color = _root.colorArray[Math.round(Math.random(1) * _root.numofColors)];
if (color == _root.color2) {
_root.collectable++;
}
_y = (Math.random(1) * Stage.height);
_x = -60;
this.gotoAndStop(color);
}
onClipEvent (enterFrame) {
if (name1 < 2) {
_x = -1000000;
move1 = false;
} else {
move1 = true;
}
if (move1) {
if (!_root.pause1) {
_x = (_x + (_root.level + 10));
}
if (_x > 600) {
if ((color == _root.color2) or _root.omega) {
_root.combo = 10;
_root.misses--;
_root.wrong.start(0, 1);
}
this.removeMovieClip();
}
}
rad = 45;
distance = Math.sqrt(Math.pow(_root.player._x - this._x, 2)) + Math.sqrt(Math.pow(_root.player._y - this._y, 2));
if (!_root.pause1) {
if (distance < rad) {
if ((_root.color2 == color) or _root.omega) {
_root.combo++;
_root.score1 = _root.score1 + (Math.floor(_root.combo / 10) * 20);
_root.collect.start(0, 1);
this.removeMovieClip();
} else {
_root.combo = 1;
_root.misses--;
_root.wrong.start(0, 1);
this.removeMovieClip();
}
}
}
if (this.hitTest(_root.barrier1)) {
_root.score1 = _root.score1 + 25;
_root.collect.start(0, 1);
this.removeMovieClip();
}
}
Frame 108
rater.stop();
gameOver = true;
pwd.removeMovieClip();
var collectionDisp = ((collected + "/") + collectable);
var final1 = (collected - (mistakes * 5));
var final = ((final1 + "/") + collectable);
var ratinggo = Math.round((final1 * 5) / collectable);
rater.gotoAndStop(ratinggo);
if (score1 > highscore) {
highscore = score1;
}
if (ratinggo > arcade) {
arcade = ratinggo;
}
main.onRelease = function () {
gotoAndPlay ("mm");
};
_root.gamename = "Color_Ball_3";
ss.onPress = function () {
if (_root.sentScore != _root.score) {
_root.add_pass = "flashapi";
_root.name = nameEntered;
_root.score = score1;
_root.sentScore = score1;
_root.loadVariables("http://www.allgamesallfree.com/new_score.php?game=" + _root.gamename, "POST");
}
};
ss.onRelease = function () {
getURL ("http://www.allgamesallfree.com/index.php?id=highscores&game=" + _root.gamename, "_blank");
gotoAndPlay ("mm");
};
pmg.onRelease = function () {
getURL ("http://allgamesallfree.com", "_blank");
};
Frame 109
omega = false;
rater.stop();
Mouse.show();
time = 10000;
var ratinggo = Math.round((misses * 5) / missinit);
if (ratinggo < 1) {
ratinggo = 1;
}
var mistakesleft = ((misses + "/") + missinit);
rater.gotoAndStop(ratinggo);
if ((challenge == "red") && (ratinggo > redRate)) {
redRate = ratinggo;
} else if ((challenge == "yellow") && (ratinggo > yellowRate)) {
yellowRate = ratinggo;
} else if ((challenge == "green") && (ratinggo > greenRate)) {
greenRate = ratinggo;
} else if ((challenge == "blue") && (ratinggo > blueRate)) {
blueRate = ratinggo;
} else if ((challenge == "omega") && (ratinggo > omegaRate)) {
omegaRate = ratinggo;
}
main.onRelease = function () {
gotoAndPlay ("mm");
};
ss.onRelease = function () {
};
if (ratinggo < 3) {
scorer.gotoAndStop(2);
} else {
scorer.gotoAndStop(1);
}
retry.onRelease = function () {
gotoAndStop ("vars");
};
pmg.onRelease = function () {
getURL ("http://allgamesallfree.com", "_blank");
};
Symbol 10 MovieClip [levelup] Frame 85
_root.levelup1.removeMovieClip();
Symbol 12 MovieClip [flash] Frame 11
_root.flash1.removeMovieClip();
Symbol 18 MovieClip [pwsign] Frame 75
_root.pwsign1.removeMovieClip();
Symbol 41 MovieClip [powerupdisp] Frame 1
var bar_StartWidth = 130;
_root.powertime = 20;
pwrbar._width = bar_StartWidth;
var decend = 0;
onEnterFrame = function () {
decend = (_root.powertime * bar_StartWidth) / 20;
if (pwrbar._width > decend) {
pwrbar._width = pwrbar._width - 0.5;
}
};
pwrbar.gotoAndStop(1);
stop();
Symbol 41 MovieClip [powerupdisp] Frame 2
var bar_StartWidth = 130;
_root.powertime = 20;
pwrbar._width = bar_StartWidth;
var decend = 0;
onEnterFrame = function () {
decend = (_root.powertime * bar_StartWidth) / 20;
if (pwrbar._width > decend) {
pwrbar._width = pwrbar._width - 0.5;
}
};
pwrbar.gotoAndStop(2);
Symbol 41 MovieClip [powerupdisp] Frame 3
var bar_StartWidth = 130;
pwrbar._width = bar_StartWidth;
_root.powertime = 20;
var decend = 0;
onEnterFrame = function () {
decend = (_root.powertime * bar_StartWidth) / 20;
if (pwrbar._width > decend) {
pwrbar._width = pwrbar._width - 0.5;
}
};
pwrbar.gotoAndStop(3);
Symbol 41 MovieClip [powerupdisp] Frame 4
var bar_StartWidth = 130;
_root.powertime = 20;
pwrbar._width = bar_StartWidth;
var decend = 0;
onEnterFrame = function () {
decend = (_root.powertime * bar_StartWidth) / 20;
if (pwrbar._width > decend) {
pwrbar._width = pwrbar._width - 0.5;
}
};
pwrbar.gotoAndStop(4);
Symbol 41 MovieClip [powerupdisp] Frame 5
var bar_StartWidth = 130;
_root.powertime = 20;
pwrbar._width = bar_StartWidth;
var decend = 0;
onEnterFrame = function () {
decend = (_root.powertime * bar_StartWidth) / 20;
if (pwrbar._width > decend) {
pwrbar._width = pwrbar._width - 0.5;
}
};
pwrbar.gotoAndStop(1);
Symbol 48 MovieClip [agaf_logo_frame] Frame 144
_root.play();
Symbol 50 MovieClip Frame 1
grid.clear();
createEmptyMovieClip("grid", 1);
grid.lineStyle(1, 10066329);
grid._alpha = 55;
i = 0;
while (i < Stage.height) {
grid.moveTo(0, i);
grid.lineTo(600, i);
i = i + 10;
}
i = 0;
while (i < Stage.width) {
grid.moveTo(i, 0);
grid.lineTo(i, 450);
i = i + 10;
}
Symbol 69 MovieClip Frame 1
_root.stop();
PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (PercentLoaded != 100) {
loader.gotoAndStop(Math.round(PercentLoaded));
PercentRound = Math.round(PercentLoaded) + "%";
} else {
_root.play();
}
Symbol 69 MovieClip Frame 2
gotoAndPlay (1);
Symbol 72 Button
on (release) {
getURL ("http://www.allgamesallfree.com", "_blank");
}
Symbol 95 MovieClip Frame 1
_root.stop();
gotoAndPlay (2);
Symbol 95 MovieClip Frame 305
_root.play();
Symbol 105 Button
on (release) {
getURL ("http://allgamesallfree.com", "_blank");
}
Symbol 108 Button
on (release) {
_root.gotoAndStop("help");
}
Symbol 111 Button
on (release) {
_root.gotoAndStop("select");
}
Symbol 114 Button
on (release) {
getURL ("http://www.allgamesallfree.com/index.php?id=highscores&game=Color_Ball_3", "_blank");
}
Symbol 161 MovieClip Frame 1
stop();
Symbol 162 MovieClip Frame 1
stop();
Symbol 162 MovieClip Frame 2
var head = "";
var desc = "";
Symbol 214 Button
on (release) {
getURL ("http://www.newgrounds.com/audio/listen/137527", "_blank");
}
Symbol 217 Button
on (release) {
getURL ("http://www.newgrounds.com/audio/listen/104412", "_blank");
}
Symbol 218 MovieClip Frame 1
stop();
Symbol 232 MovieClip Frame 1
gr._visible = false;
Instance of Symbol 223 MovieClip "gr" in Symbol 232 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.pause1) {
this.play();
} else {
this.stop();
}
}
Symbol 232 MovieClip Frame 21
Symbol 232 MovieClip Frame 27
Symbol 239 MovieClip Frame 31
gotoAndPlay (2);
Symbol 241 MovieClip Frame 31
gotoAndPlay (2);
Symbol 243 MovieClip Frame 31
gotoAndPlay (2);
Symbol 244 MovieClip Frame 1
blue._alpha = 33;
red._alpha = 33;
green._alpha = 33;
yellow._alpha = 33;
blue.stop();
red.stop();
green.stop();
yellow.stop();