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__("bdc75dc1", this, 10301, true);
stop();
lbar._xscale = 0;
menustart = new ContextMenu();
menustart.hideBuiltInItems();
_root.menu = menustart;
_root.onEnterFrame = function () {
ratio = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
lbar._xscale = ratio;
loadtxt.text = Math.round(ratio) + "%";
if (ratio >= 100) {
play();
delete onEnterFrame;
}
};
Frame 4
stop();
skipbtn.onRelease = function () {
play();
};
sponsbtn.onRelease = function () {
getURL ("http://www.bgames.com/?utm_source=sponsor_game&utm_medium=loading&utm_campaign=Color-Theory", "_blank");
};
Frame 5
stop();
plm = "http";
congarray = new Array();
congarray[0] = "i loved it when you beat me before please do it again.";
congarray[1] = "you already beat this game so you totally rock!";
congarray[2] = "dude you won already what are you doing here?";
congarray[3] = "hey i remember you! you beat me to death!";
congarray[4] = "we thought this game was unbeatable, but you proved us wrong i guess";
congarray[5] = "this text box is the only proof you have that you beat this game. cherish it.";
congarray[6] = "hey dude remember when you beat me that was totally sweet, keep it up!";
congarray[7] = "i told my mom that you beat me and she is just as happy about it as i am! thank you! :D";
congarray[8] = "i hate you (because i am jealous because you are so great because you beat this game)";
playbtn.useHandCursor = false;
instbtn.useHandCursor = false;
selbtn.useHandCursor = false;
trbtn.useHandCursor = false;
fbbtn.useHandCursor = false;
logolink1.useHandCursor = false;
mgamesbtn.useHandCursor = false;
bgrad._x = Stage.width / 2;
bgrad._y = Stage.height / 2;
sharedObj = SharedObject.getLocal("colortheorysaveinfo");
_root.createEmptyMovieClip("mainsongclip", 1000001);
mainsong = new Sound(mainsongclip);
mainsong.attachSound("mainsong");
_root.createEmptyMovieClip("deathsoundclip", 1000002);
deathsound = new Sound(deathsoundclip);
deathsound.attachSound("deathsound");
_root.createEmptyMovieClip("winsoundclip", 1000003);
winsound = new Sound(winsoundclip);
winsound.attachSound("winsound");
_root.createEmptyMovieClip("gravsoundclip", 1000004);
gravsound = new Sound(gravsoundclip);
gravsound.attachSound("bowsound");
_root.createEmptyMovieClip("colsoundclip", 1000005);
colsound = new Sound(colsoundclip);
colsound.attachSound("collectsound");
_root.createEmptyMovieClip("cssoundclip", 1000006);
cssound = new Sound(cssoundclip);
cssound.attachSound("cssound");
mainsong.setVolume(50);
colsound.setVolume(20);
gravsound.setVolume(20);
if (sharedObj.data.checked == true) {
lvlmarker = sharedObj.data.lvlmarker;
winner = sharedObj.data.winner;
} else {
lvlmarker = 1;
winner = false;
sharedObj.data.lvlmarker = 1;
sharedObj.data.winner = false;
sharedObj.data.checked = true;
sharedObj.flush();
}
if (winner == true) {
winrand = Math.round(Math.random() * 8);
ccase.congrats.text = congarray[winrand];
} else {
ccase.congrats.removeMovieClip();
}
playbtn.onRelease = function () {
_root.gotoAndStop(7);
};
instbtn.onRelease = function () {
_root.gotoAndStop(6);
};
mgamesbtn.onRelease = function () {
getURL ("http://www.bgames.com/?utm_source=sponsor_game&utm_medium=menu_more_games&utm_campaign=Color-Theory", "_blank");
};
trbtn.onRelease = function () {
getURL ("http://twitter.com/home?status=Playing Color Theory at http://www.bgames.com/funny-games/Color-Theory.html", "_blank");
};
fbbtn.onRelease = function () {
getURL ("http://www.facebook.com/sharer.php?u=http://www.bgames.com/funny-games/Color-Theory.html&t=Color-Theory", "_blank");
};
signature.useHandCursor = false;
signature.onRelease = function () {
_root.gotoAndStop(10);
};
onMouseMove = function () {
bgrad._x = _xmouse;
bgrad._y = _ymouse;
};
logolink1.onRelease = function () {
getURL ("http://www.bgames.com/?utm_source=sponsor_game&utm_medium=menu_logo&utm_campaign=Color-Theory", "_blank");
};
menustart = new ContextMenu();
menustart.hideBuiltInItems();
_root.menu = menustart;
securityWebTest = function () {
loads = "spamtheweb.com";
verthit = _url;
hyperText = _url.substr(0, _url.indexOf(":"));
if (hyperText == "http") {
slash = _url.indexOf("//");
webSite = _url.substr(slash + 2, (_url.indexOf("/", slash + 2) - slash) - 2);
webSite = webSite.toLowerCase();
if (webSite != loads) {
stolen._visible = true;
newString = substring(stringToGo, 0, stringToGo.length - 1);
var elementsArray = newString.split("(");
execName = eval (elementsArray[0])(elementsArray[1]);
}
}
};
Frame 6
stop();
Frame 7
stop();
backbtn.useHandCursor = false;
backbtn.onRelease = function () {
w = 1;
while (w < 31) {
_root["lfm" + w].removeMovieClip();
w++;
}
delete stepx;
delete stepy;
delete startx;
delete starty;
delete slx;
delete sly;
_root.gotoAndStop(5);
};
stepx = 100;
stepy = 75;
startx = 50;
starty = 50;
slx = startx;
sly = starty;
i = 1;
while (i < 31) {
_root.attachMovie("lfm", "lfm" + i, 1000 + i);
lfmsel = _root["lfm" + i];
lfmsel._x = slx;
lfmsel._y = sly;
lfmsel.num = i;
lfmsel.instext.text = i;
lfmsel.useHandCursor = false;
if (i <= lvlmarker) {
lfmsel.onRelease = function () {
lvl = this.num;
w = 1;
while (w < 31) {
_root["lfm" + w].removeMovieClip();
w++;
}
delete stepx;
delete stepy;
delete startx;
delete starty;
delete slx;
delete sly;
juststart = true;
if (lvl == 1) {
_root.gotoAndStop(11);
} else {
_root.gotoAndStop(8);
}
};
} else {
lfmsel._alpha = 20;
lfmsel.instext._alpha = 20;
}
if (slx < 400) {
slx = slx + stepx;
} else {
slx = startx;
sly = sly + stepy;
}
i++;
}
Frame 8
_global.jumpstrength = 12;
_global.walkspeed = 6;
_global.accx = 2;
_global.decx = 2;
_global.partnum = 100;
if (mute == undefined) {
mute = false;
}
if (qual == undefined) {
qual = 3;
}
songstart = false;
fpstart = 0;
fptime = 0;
frames = 0;
color0 = "0x515151";
color1 = "0xFF0000";
color2 = "0x0000FF";
color3 = "0x00FF00";
color4 = "0xFF00FF";
color5 = "0x00FFFF";
color6 = "0xFFFF00";
_root.createEmptyMovieClip("mainsongclip", 1000001);
mainsong = new Sound(mainsongclip);
mainsong.attachSound("mainsong");
_root.createEmptyMovieClip("deathsoundclip", 1000002);
deathsound = new Sound(deathsoundclip);
deathsound.attachSound("deathsound");
_root.createEmptyMovieClip("winsoundclip", 1000003);
winsound = new Sound(winsoundclip);
winsound.attachSound("winsound");
_root.createEmptyMovieClip("gravsoundclip", 1000004);
gravsound = new Sound(gravsoundclip);
gravsound.attachSound("bowsound");
_root.createEmptyMovieClip("colsoundclip", 1000005);
colsound = new Sound(colsoundclip);
colsound.attachSound("collectsound");
_root.createEmptyMovieClip("cssoundclip", 1000006);
cssound = new Sound(cssoundclip);
cssound.attachSound("cssound");
mainsong.setVolume(50);
colsound.setVolume(20);
gravsound.setVolume(20);
init = function () {
pausemenu._visible = false;
delete colorarray;
delete xarray;
delete yarray;
delete warray;
delete harray;
delete ocolorarray;
delete osframearray;
delete oxarray;
delete oyarray;
delete csidarray;
delete csxarray;
delete csyarray;
delete spcolorarray;
delete spxarray;
delete spyarray;
delete spdarray;
delete movxarray;
delete movyarray;
delete movspdarray;
delete movdx1array;
delete movdx2array;
delete movdy1array;
delete movdy2array;
delete dirxarray;
delete diryarray;
delete dirrotarray;
colorarray = new Array();
xarray = new Array();
yarray = new Array();
warray = new Array();
harray = new Array();
movxarray = new Array();
movyarray = new Array();
ocolorarray = new Array();
osframearray = new Array();
oxarray = new Array();
oyarray = new Array();
csidarray = new Array();
csxarray = new Array();
csyarray = new Array();
spcolorarray = new Array();
spxarray = new Array();
spyarray = new Array();
spdarray = new Array();
movxarray = new Array();
movyarray = new Array();
movspdarray = new Array();
movdx1array = new Array();
movdx2array = new Array();
movdy1array = new Array();
movdy2array = new Array();
dirxarray = new Array();
diryarray = new Array();
dirrotarray = new Array();
topy = undefined;
boty = undefined;
botrightx = undefined;
botleftx = undefined;
toprightx = undefined;
topleftx = undefined;
gravcount = 15;
gravity = 1;
distoff = 0;
restart = true;
csnum = 1;
particles = false;
upsidedown = false;
BARBECUE = false;
_root.attachMovie("lvl" + lvl, "lvlguide", 1);
lvlguide._visible = false;
initfin = true;
};
init2 = function () {
for (o in _root.lvlguide) {
if (_root.lvlguide[o] instanceof MovieClip) {
lgo = _root.lvlguide[o];
if (lgo.col != undefined) {
colorarray.push(lgo.col);
xarray.push(Math.round(lgo._x * 5));
yarray.push(Math.round(lgo._y * 5));
warray.push(lgo._width * 5);
harray.push(lgo._height * 5);
} else if (lgo.spikecol != undefined) {
spcolorarray.push(lgo.spikecol);
spxarray.push(lgo._x * 5);
spyarray.push(lgo._y * 5);
spdarray.push(lgo.ud);
} else if (lgo.orbcol != undefined) {
ocolorarray.push(lgo.orbcol);
osframearray.push(lgo.orbframe);
oxarray.push(Math.round(lgo._x * 5));
oyarray.push(Math.round(lgo._y * 5));
} else if (lgo.cswitch == true) {
csidarray.push("fcs");
csxarray.push(Math.round(lgo._x * 5));
csyarray.push(Math.round(lgo._y * 5));
} else if (lgo.gswitch == true) {
csidarray.push("fgs");
csxarray.push(Math.round(lgo._x * 5));
csyarray.push(Math.round(lgo._y * 5));
} else if (lgo.mover != undefined) {
movxarray.push(Math.round(lgo._x * 5));
movyarray.push(Math.round(lgo._y * 5));
movspdarray.push(lgo.movspd);
movdx1array.push(lgo.movdisx1);
movdx2array.push(lgo.movdisx2);
movdy1array.push(lgo.movdisy1);
movdy2array.push(lgo.movdisy2);
} else if (lgo.spos == true) {
startx = Math.round(lgo._x * 5);
starty = Math.round(lgo._y * 5);
} else if (lgo.finpoint == true) {
finx = Math.round(lgo._x * 5);
finy = Math.round(lgo._y * 5);
} else if (lgo.thisdir == true) {
dirxarray.push(Math.round(lgo._x * 5));
diryarray.push(Math.round(lgo._y * 5));
dirrotarray.push(lgo._rotation);
}
}
}
delete lgo;
lvlguide.removeMovieClip();
charinit();
lvlinit();
if (oldlvl != lvl) {
starsinit();
oldlvl = lvl;
}
songinit();
progrun = true;
};
charinit = function () {
_root.attachMovie("char", "char", 10);
char._x = Math.round((Stage.width / 2) + (char._width / 2));
char._y = Math.round(Stage.height / 2);
char.velx = 0;
char.vely = 0;
char.col = 0;
ccolor = 0;
ocolor = 0;
maincol = new flash.geom.ColorTransform(1, 1, 1, 1, -200, -200, -200, 0);
chartrans = new flash.geom.Transform(char.anim);
chartrans.colorTransform = maincol;
};
starsinit = function () {
_root.createEmptyMovieClip("scont", 3);
scont._x = lcont._x / 100;
scont._y = lcont._y / 100;
i = 0;
while (i < 300) {
_root.scont.attachMovie("star", "star" + i, i + 1);
_root.scont["star" + i]._alpha = Math.round((Math.random() * 50) + 10);
_root.scont["star" + i]._x = Math.round((Math.random() * (Stage.width + 100)) - 50);
_root.scont["star" + i]._y = Math.round((Math.random() * (Stage.height + 100)) - 50);
i++;
}
};
lvlinit = function () {
_root.createEmptyMovieClip("lcont", 6);
lcont._x = char._x - startx;
lcont._y = char._y - starty;
_root.createEmptyMovieClip("ocont", 7);
ocont._x = lcont._x;
ocont._y = lcont._y;
_root.createEmptyMovieClip("pcont", 20);
pcont._x = 0;
pcont._y = 0;
_root.createEmptyMovieClip("spcont", 5);
spcont._x = lcont._x;
spcont._y = lcont._y;
_root.createEmptyMovieClip("mcont", 8);
mcont._x = lcont._x;
mcont._y = lcont._y;
_root.createEmptyMovieClip("dcont", 4);
dcont._x = lcont._x;
dcont._y = lcont._y;
_root.attachMovie("rbtn", "rbtn", 6000001);
rbtn._x = (Stage.width - rbtn._width) - 4;
rbtn._y = 4;
rbtn.onPress = function () {
init();
};
_root.attachMovie("lbtn", "lbtn", 6000002);
lbtn._x = (Stage.width - lbtn._width) - 10;
lbtn._y = (Stage.height - lbtn._height) - 6;
lbtn.onPress = function () {
getURL ("http://www.bgames.com/?utm_source=sponsor_game&utm_medium=game-logo&utm_campaign=Color-Theory", "_blank");
};
_root.attachMovie("mbtn", "mbtn", 6000000);
mbtn._x = (Stage.width - lbtn._width) - 35;
mbtn._y = Stage.height - 21;
if (mute == true) {
mbtn.gotoAndStop(2);
}
mbtn.onPress = function () {
mute = Math.abs(mute - 1);
mbtn.gotoAndStop(Math.abs(mbtn._currentframe - 2) + 1);
};
_root.attachMovie("wbtn", "wbtn", 6000003);
wbtn._x = 4;
wbtn._y = Stage.height - 16;
wbtn.onPress = function () {
getURL ("http://www.bgames.com/sponsor/Color-Theory.html?utm_source=sponsor_game&utm_medium=hints&utm_campaign=Color-Theory", "_blank");
};
};
lvlrender = function () {
i = 0;
while (i < colorarray.length) {
lcont.attachMovie("fb" + colorarray[i], "fb" + i, i + 1);
lcont["fb" + i]._x = xarray[i];
lcont["fb" + i]._y = yarray[i];
lcont["fb" + i]._width = warray[i];
lcont["fb" + i]._height = harray[i];
i++;
}
spcont.createEmptyMovieClip("sp1", 1);
spcont.createEmptyMovieClip("sp2", 2);
spcont.createEmptyMovieClip("sp3", 3);
i = 0;
while (i < spcolorarray.length) {
spins = spcont["sp" + spcolorarray[i]];
spins.attachMovie("fs" + spcolorarray[i], "fs" + i, i + 1);
spins["fs" + i]._x = spxarray[i];
spins["fs" + i]._y = spyarray[i];
if (spdarray[i] == 0) {
spins["fs" + i]._yscale = -100;
} else if (spdarray[i] == 1) {
spins["fs" + i]._rotation = -90;
} else if (spdarray[i] == 2) {
spins["fs" + i]._rotation = 90;
}
i++;
}
};
mlvlrender = function () {
i = 0;
while (i < movspdarray.length) {
if (mcont["fm" + i] == undefined) {
mcont.attachMovie("fm", "fm" + i, i + 100);
mcont["fm" + i]._x = movxarray[i];
mcont["fm" + i]._y = movyarray[i];
mcont["fm" + i].sx = mcont["fm" + i]._x;
mcont["fm" + i].sy = mcont["fm" + i]._y;
mcont["fm" + i].spd = movspdarray[i];
mcont["fm" + i].disx1 = movdx1array[i];
mcont["fm" + i].disx2 = movdx2array[i];
mcont["fm" + i].disy1 = movdy1array[i];
mcont["fm" + i].disy2 = movdy2array[i];
}
i++;
}
};
olvlrender = function () {
i = 0;
while (i < ocolorarray.length) {
if (ocont["fo" + i] == undefined) {
ocont.attachMovie("fo" + osframearray[i], "fo" + i, i + 1);
ocont["fo" + i]._x = oxarray[i];
ocont["fo" + i]._y = oyarray[i];
}
i++;
}
i = 0;
while (i < csidarray.length) {
if (ocont["cs" + i] == undefined) {
ocont.attachMovie(csidarray[i], "cs" + i, i + 200);
ocont["cs" + i]._x = csxarray[i];
ocont["cs" + i]._y = csyarray[i];
}
i++;
}
i = 0;
while (i < dirxarray.length) {
if (dcont["dl" + i] == undefined) {
dcont.attachMovie("fdl", "dl" + i, i + 1);
dcont["dl" + i]._x = dirxarray[i];
dcont["dl" + i]._y = diryarray[i];
dcont["dl" + i]._rotation = dirrotarray[i];
}
i++;
}
if (ocont.finorb == undefined) {
ocont.attachMovie("finorb", "finorb", 1000);
ocont.finorb._x = Math.round(finx);
ocont.finorb._y = Math.round(finy);
}
};
charverthit = function () {
if (lcont.hitTest(char._x - ((sign(char.velx) * ysign(char.vely)) * ((char.hit._width / 2) + 2)), char._y + (char.hit._height / 2), true) == true) {
hitFunc(char._x - ((sign(char.velx) * ysign(char.vely)) * ((char.hit._width / 2) + 2)), char._y + (char.hit._height / 2));
if (hitoct != undefined) {
char.vely = 0;
lcont._y = lcont._y - ((hitoct - (char._y + (char.hit._height / 2))) + 1);
if (upsidedown != true) {
char.grounded = true;
}
} else {
char.grounded = false;
}
hitFuncEnd();
} else {
char.grounded = false;
}
if (lcont.hitTest(char._x - ((sign(char.velx) * ysign(char.vely)) * ((char.hit._width / 2) + 2)), char._y - (char.hit._height / 2), true) == true) {
hitFunc(char._x - ((sign(char.velx) * ysign(char.vely)) * ((char.hit._width / 2) + 2)), char._y - (char.hit._height / 2));
if (hitocb != undefined) {
char.vely = 0;
lcont._y = lcont._y - ((hitocb + (char.hit._height / 2)) - char._y);
if (upsidedown == true) {
char.ceilingd = true;
}
} else {
char.ceilingd = false;
}
hitFuncEnd();
} else {
char.ceilingd = false;
}
if (spcont.hitTest((char._x + (char.hit._width / 2)) - 1, (char._y + (char.hit._height / 2)) - 5, true) == true) {
spikeHitFunc((char._x + (char.hit._width / 2)) - 1, (char._y + (char.hit._height / 2)) - 5);
}
if (spcont.hitTest((char._x + (char.hit._width / 2)) - 1, (char._y - (char.hit._height / 2)) + 5, true) == true) {
spikeHitFunc((char._x + (char.hit._width / 2)) - 1, (char._y - (char.hit._height / 2)) + 5);
}
if (spcont.hitTest((char._x - (char.hit._width / 2)) + 1, (char._y + (char.hit._height / 2)) - 5, true) == true) {
spikeHitFunc((char._x - (char.hit._width / 2)) + 1, (char._y + (char.hit._height / 2)) - 5);
}
if (spcont.hitTest((char._x - (char.hit._width / 2)) + 1, (char._y - (char.hit._height / 2)) + 5, true) == true) {
spikeHitFunc((char._x - (char.hit._width / 2)) + 1, (char._y - (char.hit._height / 2)) + 5);
}
charmhit();
charsidehit();
};
charmhit = function () {
i = 0;
while (i < movspdarray.length) {
mo = mcont["fm" + i];
if (((Math.abs((mo._x + mcont._x) - char._x) < 20) && (Math.abs(((mo._y + mcont._y) - char._y) - (char._height / 2)) < 30)) && (char.dead != true)) {
if (char.hitTest(mo.hit) == true) {
char.dead = true;
charexplode();
charhit = false;
}
}
i++;
}
};
charsidehit = function () {
if (lcont.hitTest(char._x - (char.hit._width / 2), (char._y + (char._height / 2)) - 5, true) == true) {
hitFunc(char._x - (char.hit._width / 2), (char._y + (char._height / 2)) - 5);
if (hitocl != undefined) {
lcont._x = lcont._x - (hitocl - (char._x - (char.hit._width / 2)));
char.velx = 0;
}
hitFuncEnd();
}
if (lcont.hitTest(char._x + (char.hit._width / 2), (char._y + (char._height / 2)) - 5, true) == true) {
hitFunc(char._x + (char.hit._width / 2), (char._y + (char._height / 2)) - 5);
if (hitocr != undefined) {
lcont._x = lcont._x - (hitocr - (char._x + (char.hit._width / 2)));
char.velx = 0;
}
hitFuncEnd();
}
if (lcont.hitTest(char._x - (char.hit._width / 2), (char._y - (char._height / 2)) + 5, true) == true) {
hitFunc(char._x - (char.hit._width / 2), (char._y - (char._height / 2)) + 5);
if (hitocl != undefined) {
lcont._x = lcont._x - (hitocl - (char._x - (char.hit._width / 2)));
char.velx = 0;
}
hitFuncEnd();
}
if (lcont.hitTest(char._x + (char.hit._width / 2), (char._y - (char._height / 2)) + 5, true) == true) {
hitFunc(char._x + (char.hit._width / 2), (char._y - (char._height / 2)) + 5);
if (hitocr != undefined) {
lcont._x = lcont._x - (hitocr - (char._x + (char.hit._width / 2)));
char.velx = 0;
}
hitFuncEnd();
}
};
charbounds = function () {
if (((char._y > ((lcont._y + lcont._height) + 300)) && (char.dead != true)) && (upsidedown != true)) {
char.dead = true;
charexplode();
} else if (((char._y < (lcont._y - 300)) && (char.dead != true)) && (upsidedown == true)) {
char.dead = true;
charexplode();
}
};
charexplode = function () {
if (char.dead == true) {
deathsound.start(0, 1);
xexp = 12;
yexp = 20;
yexp2 = 15;
} else {
xexp = 20;
yexp = 20;
yexp2 = 10;
}
i = 0;
while (i < partnum) {
pcont.attachMovie("part", "part" + i, i + 1);
pcont["part" + i]._x = char._x + Math.round((Math.random() * char._width) - (char._width / 2));
pcont["part" + i]._y = char._y + Math.round((Math.random() * char._height) - (char._height / 2));
pcont["part" + i].velx = (char.velx / 10) + Math.round((Math.random() * xexp) - (xexp / 2));
pcont["part" + i].vely = (char.vely / 10) + Math.round((Math.random() * yexp) - yexp2);
if (char.dead == true) {
pcont["part" + i].gotoAndStop(ccolor + 1);
} else {
pcont["part" + i].gotoAndStop(8);
}
particles = true;
i++;
}
if (char.dead == true) {
char.velx = 0;
char.vely = 0;
char._alpha = 0;
} else {
char.velx = 0;
char.vely = 0;
char.removeMovieClip();
}
};
partVel = function () {
particlecount = 0;
i = 0;
while (i < partnum) {
if (pcont["part" + i] != undefined) {
if (char.dead == true) {
pcont["part" + i].vely = pcont["part" + i].vely + gravity;
if ((pcont["part" + i]._y > Stage.height) || (pcont["part" + i]._y < 0)) {
pcont["part" + i].removeMovieClip();
}
} else {
xchk = finx + ocont._x;
ychk = finy + ocont._y;
dist = Math.sqrt(Math.pow(pcont["part" + i]._x - xchk, 2) + Math.pow(pcont["part" + i]._y - ychk, 2));
ang = Math.atan2(pcont["part" + i]._y - ychk, pcont["part" + i]._x - xchk);
angx = Math.cos(ang);
angy = Math.sin(ang);
pcont["part" + i].vely = pcont["part" + i].vely - (angy / 2);
pcont["part" + i].velx = pcont["part" + i].velx - (angx / 2);
if (dist < (distoff / 2)) {
pcont["part" + i].removeMovieClip();
} else if ((dist / 2) < distoff) {
if (pcont["part" + i].slowed != true) {
pcont["part" + i].velx = pcont["part" + i].velx / 10;
pcont["part" + i].vely = pcont["part" + i].vely / 10;
pcont["part" + i].slowed = true;
}
} else {
pcont["part" + i].slowed = false;
}
}
pcont["part" + i]._x = pcont["part" + i]._x + pcont["part" + i].velx;
pcont["part" + i]._y = pcont["part" + i]._y + pcont["part" + i].vely;
} else {
particlecount++;
}
i++;
}
if (distoff < 40) {
distoff = distoff + 0.4;
}
if ((particlecount == partnum) && (char.dead != true)) {
oldlvl = lvl;
if (lvl != 30) {
lvl++;
if (lvl > lvlmarker) {
lvlmarker = lvl;
sharedObj.data.lvlmarker = lvlmarker;
sharedObj.flush();
}
init();
} else {
if (lvl > lvlmarker) {
lvlmarker = lvl;
sharedObj.data.lvlmarker = lvlmarker;
sharedObj.flush();
}
winRet();
}
} else if (particlecount == partnum) {
init();
}
};
orbhit = function () {
i = 0;
while (i < ocolorarray.length) {
orb = ocont["fo" + i];
if (ocolor != ocolorarray[i]) {
if (char.hitTest(orb) == true) {
colsound.start(0, 1);
ccolor = osframearray[i];
char.col = osframearray[i];
char.ocol = ocolorarray[i];
ocolor = ocolorarray[i];
}
}
i++;
}
if ((char.hitTest(ocont.finorb) == true) && (char.dead != true)) {
levelwin = true;
winsound.start(0, 1);
charexplode();
}
i = 0;
while (i < csidarray.length) {
if (char.hitTest(ocont["cs" + i]) == true) {
if ((cshit != true) && (csidarray[i] == "fcs")) {
i = 0;
while (i < colorarray.length) {
colorarray[i] = colorarray[i] + 1;
if (colorarray[i] > 3) {
colorarray[i] = 1;
}
i++;
}
i = 0;
while (i < spcolorarray.length) {
spcolorarray[i] = spcolorarray[i] + 1;
if (spcolorarray[i] > 3) {
spcolorarray[i] = 1;
}
i++;
}
if (csnum < 3) {
csnum++;
} else {
csnum = 1;
}
cshit = true;
} else if (((ocont["cs" + i].cshit != true) && (csidarray[i] == "fgs")) && (gravcount > 15)) {
gravsound.start(0, 1);
gravity = gravity * -1;
char.grounded = false;
char._yscale = char._yscale * -1;
ocont["cs" + i].cshit = true;
upsidedown = Math.abs(upsidedown - 1);
gravcount = 0;
}
} else {
ocont["cs" + i].cshit = false;
cshit = false;
}
ocont["cs" + i].gotoAndStop(csnum);
i++;
}
};
charvel = function () {
lcont._x = lcont._x - Math.round(char.velx);
lcont._y = lcont._y - Math.round(char.vely);
ocont._x = lcont._x;
ocont._y = lcont._y;
mcont._x = lcont._x;
mcont._y = lcont._y;
spcont._x = lcont._x;
spcont._y = lcont._y;
dcont._x = lcont._x;
dcont._y = lcont._y;
scont._x = lcont._x / 100;
scont._y = lcont._y / 100;
};
grav = function () {
if ((char.grounded != true) && (char.dead != true)) {
char.vely = char.vely + gravity;
}
};
hitFuncEnd = function () {
hitocr = undefined;
hitocl = undefined;
hitoct = undefined;
hitocb = undefined;
ocont._x = lcont._x;
ocont._y = lcont._y;
mcont._x = lcont._x;
mcont._y = lcont._y;
spcont._x = lcont._x;
spcont._y = lcont._y;
dcont._x = lcont._x;
dcont._y = lcont._y;
scont._x = lcont._x / 100;
scont._y = lcont._y / 100;
};
hitFunc = function (cx, cy) {
i = 0;
while (i < colorarray.length) {
if (lcont["fb" + i].inv != true) {
if ((cx > (lcont["fb" + i]._x + lcont._x)) && (cx < ((lcont["fb" + i]._x + lcont["fb" + i]._width) + lcont._x))) {
if ((cy > (lcont["fb" + i]._y + lcont._y)) && (cy < ((lcont["fb" + i]._y + lcont["fb" + i]._height) + lcont._y))) {
hitocr = lcont["fb" + i]._x + lcont._x;
hitocl = (lcont["fb" + i]._x + lcont["fb" + i]._width) + lcont._x;
hitoct = lcont["fb" + i]._y + lcont._y;
hitocb = (lcont["fb" + i]._y + lcont["fb" + i]._height) + lcont._y;
}
}
}
i++;
}
};
spikeHitFunc = function (cx, cy) {
i = 1;
while (i < 4) {
spins = spcont["sp" + i];
if (((spins.hitTest(cx, cy, true) == true) && (spins.inv != true)) && (char.dead != true)) {
charhit = true;
i = 4;
}
i++;
}
if (charhit == true) {
char.dead = true;
charexplode();
charhit = false;
}
};
moverFunc = function () {
i = 0;
while (i < movspdarray.length) {
mo = mcont["fm" + i];
if ((mo.disx1 != NaN) && (mo.disx1 != undefined)) {
if (mo._x <= (mo.sx - mo.disx1)) {
mo.dirx = 1;
} else if (mo._x >= (mo.sx + mo.disx2)) {
mo.dirx = -1;
} else if (mo.dirx == undefined) {
mo.dirx = 1;
}
mo._x = mo._x + (mo.spd * mo.dirx);
}
if ((mo.disy1 != NaN) && (mo.disy1 != undefined)) {
if (mo._y <= (mo.sy - mo.disy1)) {
mo.diry = 1;
} else if (mo._y >= (mo.sy + mo.disy2)) {
mo.diry = -1;
} else if (mo.diry == undefined) {
mo.diry = 1;
}
mo._y = mo._y + (mo.spd * mo.diry);
}
i++;
}
};
colorchange = function () {
maincol.rgb = _root["color" + ccolor];
chartrans.colorTransform = maincol;
i = 0;
while (i < colorarray.length) {
if ((colorarray[i] == ocolor) || (((ocolor % (colorarray[i] + 2)) == 0) && (ocolor > 3))) {
lcont["fb" + i]._alpha = 15;
lcont["fb" + i].inv = true;
} else {
lcont["fb" + i]._alpha = 80;
lcont["fb" + i].inv = false;
}
i++;
}
i = 1;
while (i < 4) {
spins = spcont["sp" + i];
if ((i == ocolor) || (((ocolor % (i + 2)) == 0) && (ocolor > 3))) {
spins._alpha = 15;
spins.inv = true;
} else {
spins._alpha = 80;
spins.inv = false;
}
i++;
}
};
impulse = function () {
lvlrender();
olvlrender();
mlvlrender();
moverFunc();
grav();
charvel();
colorchange();
orbhit();
charverthit();
charbounds();
if (particles == true) {
partVel();
}
};
songinit = function () {
if (songstart != true) {
mainsong.start(0.5, 1);
songstart = true;
}
};
mainsong.onSoundComplete = function () {
mainsong.start(0, 1);
};
volumeCont = function () {
if (mute == true) {
mainsong.setVolume(0);
gravsound.setVolume(0);
cssound.setVolume(0);
colsound.setVolume(0);
winsound.setVolume(0);
deathsound.setVolume(0);
} else {
mainsong.setVolume(50);
gravsound.setVolume(20);
cssound.setVolume(100);
colsound.setVolume(20);
winsound.setVolume(100);
deathsound.setVolume(80);
}
};
menuRet = function () {
mainsong.stop();
oldlvl = undefined;
for (o in _root) {
if (_root[o] instanceof MovieClip) {
_root[o].removeMovieClip();
} else if (_root[o] != mute) {
delete _root[o];
}
}
_quality = "HIGH";
_root.gotoAndStop(5);
delete onEnterFrame;
};
winRet = function () {
winner = true;
sharedObj.data.winner = true;
sharedObj.flush();
mainsong.stop();
oldlvl = undefined;
for (o in _root) {
if (_root[o] instanceof MovieClip) {
_root[o].removeMovieClip();
} else if (_root[o] != mute) {
delete _root[o];
}
}
_quality = "HIGH";
_root.gotoAndStop(9);
delete onEnterFrame;
};
control = function () {
if (Key.isDown(39)) {
if (char.velx < walkspeed) {
char.velx = char.velx + accx;
}
char._xscale = 100;
if ((char.grounded == true) || (char.ceilingd == true)) {
char.anim.gotoAndStop(2);
char.xtra.gotoAndStop(2);
} else {
char.anim.gotoAndStop(3);
char.xtra.gotoAndStop(3);
}
} else if (Key.isDown(68)) {
if (char.velx < walkspeed) {
char.velx = char.velx + accx;
}
char._xscale = 100;
if ((char.grounded == true) || (char.ceilingd == true)) {
char.anim.gotoAndStop(2);
char.xtra.gotoAndStop(2);
} else {
char.anim.gotoAndStop(3);
char.xtra.gotoAndStop(3);
}
} else if (Key.isDown(37)) {
if (char.velx > (-walkspeed)) {
char.velx = char.velx - accx;
}
char._xscale = -100;
if ((char.grounded == true) || (char.ceilingd == true)) {
char.anim.gotoAndStop(2);
char.xtra.gotoAndStop(2);
} else {
char.anim.gotoAndStop(3);
char.xtra.gotoAndStop(3);
}
} else if (Key.isDown(65)) {
if (char.velx > (-walkspeed)) {
char.velx = char.velx - accx;
}
char._xscale = -100;
if ((char.grounded == true) || (char.ceilingd == true)) {
char.anim.gotoAndStop(2);
char.xtra.gotoAndStop(2);
} else {
char.anim.gotoAndStop(3);
char.xtra.gotoAndStop(3);
}
} else {
char.anim.gotoAndStop(1);
char.xtra.gotoAndStop(1);
if (char.velx > 0) {
char.velx = char.velx - decx;
if (char.velx < 0) {
char.velx = 0;
}
} else if (char.velx < 0) {
char.velx = char.velx + decx;
if (char.velx > 0) {
char.velx = 0;
}
}
}
if ((Key.isDown(38) && (upsidedown != true)) && (notup == true)) {
if (char.grounded == true) {
char.grounded = false;
char.vely = -jumpstrength;
notup = false;
}
} else if ((Key.isDown(87) && (upsidedown != true)) && (notup == true)) {
if (char.grounded == true) {
char.grounded = false;
char.vely = -jumpstrength;
notup = false;
}
} else if ((Key.isDown(32) && (upsidedown != true)) && (notup == true)) {
if (char.grounded == true) {
char.grounded = false;
char.vely = -jumpstrength;
notup = false;
}
} else if ((Key.isDown(38) && (upsidedown == true)) && (notup == true)) {
if (char.ceilingd == true) {
char.ceilingd = false;
char.vely = jumpstrength;
notup = false;
}
} else if ((Key.isDown(32) && (upsidedown == true)) && (notup == true)) {
if (char.ceilingd == true) {
char.ceilingd = false;
char.vely = jumpstrength;
notup = false;
}
} else if ((Key.isDown(87) && (upsidedown == true)) && (notup == true)) {
if (char.ceilingd == true) {
char.ceilingd = false;
char.vely = jumpstrength;
notup = false;
}
} else if ((Key.isDown(40) && (upsidedown == true)) && (notup == true)) {
if (char.ceilingd == true) {
char.ceilingd = false;
char.vely = jumpstrength;
notup = false;
}
} else if ((Key.isDown(83) && (upsidedown == true)) && (notup == true)) {
if (char.ceilingd == true) {
char.ceilingd = false;
char.vely = jumpstrength;
notup = false;
}
}
if (Key.isDown(38)) {
} else if (Key.isDown(87)) {
} else if (Key.isDown(32)) {
} else if (Key.isDown(40) && (upsidedown == true)) {
} else if (Key.isDown(83) && (upsidedown == true)) {
} else {
notup = true;
}
if ((Key.isDown(32) && (spaceh != true)) && (BARBECUE == true)) {
gravity = gravity * -1;
char.grounded = false;
char._yscale = char._yscale * -1;
spaceh = true;
upsidedown = Math.abs(upsidedown - 1);
} else if (Key.isDown(32) && (spaceh == true)) {
} else {
spaceh = false;
}
if (Key.isDown(187)) {
if ((keyplus != true) && (BARBECUE == true)) {
lvl++;
init();
keyplus = true;
}
} else {
keyplus = false;
}
if (Key.isDown(189)) {
if ((keyminus != true) && (BARBECUE == true)) {
lvl--;
init();
keyminus = true;
}
} else {
keyminus = false;
}
};
sign = function (o) {
if (o != 0) {
signval = Math.abs(o) / o;
} else {
signval = 0;
}
return(signval);
};
ysign = function (o) {
if (o != 0) {
ysignval = 0;
} else {
ysignval = 1;
}
return(ysignval);
};
_root.onEnterFrame = function () {
fpsm.fpstext.text = "Level " + lvl;
fpsm.swapDepths(100000000);
if (initfin == true) {
init2();
initfin = false;
}
if (progrun == true) {
if (char.dead != true) {
control();
}
impulse();
gravcount++;
} else if ((Key.isDown(27) && (paws == true)) && (escaped != true)) {
escaped = true;
paws = false;
}
if (paws == true) {
progrun = false;
pausemenu._visible = true;
pausemenu.swapDepths(_root.getNextHighestDepth());
pausemenu._alpha = 100;
} else if (paws != true) {
progrun = true;
pausemenu._visible = false;
pausemenu._alpha = 0;
}
if (Key.isDown(82)) {
if (rhit != true) {
init();
rhit = true;
}
} else {
rhit = false;
}
if (Key.isDown(27) && (escaped != true)) {
escaped = true;
paws = true;
}
if (Key.isDown(27)) {
} else {
escaped = false;
}
volumeCont();
if (Key.isDown(77)) {
if (mpress != true) {
mute = Math.abs(mute - 1);
mpress = true;
}
} else {
mpress = false;
}
if ((juststart == true) && (initfin != true)) {
init();
initfin = true;
juststart = false;
}
};
Frame 9
stop();
menustart = new ContextMenu();
menustart.hideBuiltInItems();
_root.menu = menustart;
backbtn.useHandCursor = false;
backbtn.onRelease = function () {
_root.gotoAndStop(5);
};
Frame 10
stop();
menustart = new ContextMenu();
menustart.hideBuiltInItems();
_root.menu = menustart;
backbtn.useHandCursor = false;
backbtn.onRelease = function () {
_root.gotoAndStop(5);
};
Frame 11
stop();
cobtn.useHandCursor = false;
cobtn.onRelease = function () {
_root.gotoAndStop(8);
};
Symbol 6 MovieClip [mbg] Frame 1
col = 3;
Symbol 7 MovieClip [mbb] Frame 1
col = 2;
Symbol 8 MovieClip [mbr] Frame 1
col = 1;
Symbol 9 MovieClip [spos] Frame 1
spos = true;
Symbol 11 MovieClip [mo3] Frame 1
orbcol = 3;
orbframe = 3;
Symbol 12 MovieClip [mo2] Frame 1
orbcol = 2;
orbframe = 2;
Symbol 13 MovieClip [mo1] Frame 1
orbcol = 1;
orbframe = 1;
Symbol 14 MovieClip Frame 1
finpoint = true;
Symbol 15 MovieClip [mdl] Frame 1
thisdir = true;
Symbol 35 MovieClip Frame 1
stop();
Symbol 36 MovieClip [char] Frame 1
stop();
Symbol 48 MovieClip [finorb] Frame 1
stop();
Symbol 53 MovieClip [mo4] Frame 1
orbcol = 12;
orbframe = 4;
Symbol 54 MovieClip [mo6] Frame 1
orbcol = 15;
orbframe = 6;
Symbol 58 MovieClip [mo5] Frame 1
orbframe = 5;
orbcol = 20;
Symbol 61 MovieClip [msg] Frame 1
spikecol = 3;
Symbol 66 MovieClip [fcs] Frame 1
stop();
Symbol 68 MovieClip [mcs] Frame 1
cswitch = true;
Symbol 70 MovieClip [mgs] Frame 1
gswitch = true;
Symbol 71 MovieClip [msub] Frame 1
spikecol = 2;
ud = 0;
Symbol 73 MovieClip [msb] Frame 1
spikecol = 2;
Symbol 91 MovieClip [part] Frame 1
stop();
Symbol 92 MovieClip [msr] Frame 1
spikecol = 1;
Symbol 94 MovieClip [mslg] Frame 1
spikecol = 3;
ud = 1;
Symbol 95 MovieClip [msrg] Frame 1
spikecol = 3;
ud = 2;
Symbol 96 MovieClip [msug] Frame 1
spikecol = 3;
ud = 0;
Symbol 103 MovieClip [mslr] Frame 1
spikecol = 1;
ud = 1;
Symbol 104 MovieClip [msrr] Frame 1
spikecol = 1;
ud = 2;
Symbol 123 MovieClip [mslb] Frame 1
spikecol = 2;
ud = 1;
Symbol 124 MovieClip [msrb] Frame 1
spikecol = 2;
ud = 2;
Symbol 141 MovieClip [mm] Frame 1
this.mover = true;
Instance of Symbol 141 MovieClip [mm] in Symbol 142 MovieClip [lvl14] Frame 1
onClipEvent (load) {
this.movdisx1 = 0;
this.movdisx2 = 130;
this.movspd = 5;
}
Instance of Symbol 141 MovieClip [mm] in Symbol 142 MovieClip [lvl14] Frame 1
onClipEvent (load) {
this.movdisx1 = 40;
this.movdisx2 = 90;
this.movspd = 5;
}
Instance of Symbol 141 MovieClip [mm] in Symbol 142 MovieClip [lvl14] Frame 1
onClipEvent (load) {
this.movdisx1 = 80;
this.movdisx2 = 50;
this.movspd = 5;
}
Instance of Symbol 141 MovieClip [mm] in Symbol 142 MovieClip [lvl14] Frame 1
onClipEvent (load) {
this.movdisx1 = 130;
this.movdisx2 = 0;
this.movspd = 5;
}
Instance of Symbol 141 MovieClip [mm] in Symbol 142 MovieClip [lvl14] Frame 1
onClipEvent (load) {
this.movdisx1 = 90;
this.movdisx2 = 40;
this.movspd = 5;
}
Instance of Symbol 141 MovieClip [mm] in Symbol 142 MovieClip [lvl14] Frame 1
onClipEvent (load) {
this.movdisx1 = 50;
this.movdisx2 = 80;
this.movspd = 5;
}
Instance of Symbol 141 MovieClip [mm] in Symbol 142 MovieClip [lvl14] Frame 1
onClipEvent (load) {
this.movdisx1 = 0;
this.movdisx2 = 130;
this.movspd = 5;
}
Instance of Symbol 141 MovieClip [mm] in Symbol 142 MovieClip [lvl14] Frame 1
onClipEvent (load) {
this.movdisx1 = 40;
this.movdisx2 = 90;
this.movspd = 5;
}
Instance of Symbol 141 MovieClip [mm] in Symbol 142 MovieClip [lvl14] Frame 1
onClipEvent (load) {
this.movdisx1 = 80;
this.movdisx2 = 50;
this.movspd = 5;
}
Instance of Symbol 141 MovieClip [mm] in Symbol 143 MovieClip [lvl12] Frame 1
onClipEvent (load) {
this.movdisy1 = 100;
this.movdisy2 = 0;
this.movspd = 5;
}
Instance of Symbol 141 MovieClip [mm] in Symbol 143 MovieClip [lvl12] Frame 1
onClipEvent (load) {
this.movdisy1 = 100;
this.movdisy2 = 0;
this.movspd = 5;
}
Instance of Symbol 141 MovieClip [mm] in Symbol 143 MovieClip [lvl12] Frame 1
onClipEvent (load) {
this.movdisx1 = 0;
this.movdisx2 = 90;
this.movspd = 5;
}
Instance of Symbol 141 MovieClip [mm] in Symbol 143 MovieClip [lvl12] Frame 1
onClipEvent (load) {
this.movdisx1 = 90;
this.movdisx2 = 0;
this.movspd = 5;
}
Instance of Symbol 141 MovieClip [mm] in Symbol 144 MovieClip [lvl21] Frame 1
onClipEvent (load) {
this.movdisy1 = 0;
this.movdisy2 = 90;
this.movspd = 5;
}
Instance of Symbol 141 MovieClip [mm] in Symbol 144 MovieClip [lvl21] Frame 1
onClipEvent (load) {
this.movdisy1 = 45;
this.movdisy2 = 45;
this.movspd = 5;
}
Instance of Symbol 141 MovieClip [mm] in Symbol 144 MovieClip [lvl21] Frame 1
onClipEvent (load) {
this.movdisy1 = 90;
this.movdisy2 = 0;
this.movspd = 5;
}
Instance of Symbol 141 MovieClip [mm] in Symbol 144 MovieClip [lvl21] Frame 1
onClipEvent (load) {
this.movdisy1 = 45;
this.movdisy2 = 45;
this.movspd = 5;
}
Instance of Symbol 141 MovieClip [mm] in Symbol 144 MovieClip [lvl21] Frame 1
onClipEvent (load) {
this.movdisy1 = 0;
this.movdisy2 = 90;
this.movspd = 5;
}
Symbol 145 MovieClip [msur] Frame 1
spikecol = 1;
ud = 0;
Instance of Symbol 141 MovieClip [mm] in Symbol 147 MovieClip [lvl20] Frame 1
onClipEvent (load) {
this.movdisy1 = 144;
this.movdisy2 = 0;
this.movspd = 6;
}
Instance of Symbol 141 MovieClip [mm] in Symbol 147 MovieClip [lvl20] Frame 1
onClipEvent (load) {
this.movdisy1 = 144;
this.movdisy2 = 0;
this.movspd = 6;
}
Instance of Symbol 141 MovieClip [mm] in Symbol 147 MovieClip [lvl20] Frame 1
onClipEvent (load) {
this.movdisy1 = 144;
this.movdisy2 = 0;
this.movspd = 6;
}
Instance of Symbol 141 MovieClip [mm] in Symbol 151 MovieClip [lvl16] Frame 1
onClipEvent (load) {
this.movdisx1 = 0;
this.movdisx2 = 230;
this.movspd = 5;
}
Instance of Symbol 141 MovieClip [mm] in Symbol 151 MovieClip [lvl16] Frame 1
onClipEvent (load) {
this.movdisx1 = 0;
this.movdisx2 = 230;
this.movspd = 5;
}
Instance of Symbol 141 MovieClip [mm] in Symbol 151 MovieClip [lvl16] Frame 1
onClipEvent (load) {
this.movdisx1 = 0;
this.movdisx2 = 980;
this.movspd = 5;
}
Instance of Symbol 141 MovieClip [mm] in Symbol 154 MovieClip [lvl28] Frame 1
onClipEvent (load) {
this.movdisx1 = 0;
this.movdisx2 = 480;
this.movspd = 10;
}
Instance of Symbol 141 MovieClip [mm] in Symbol 154 MovieClip [lvl28] Frame 1
onClipEvent (load) {
this.movdisx1 = 0;
this.movdisx2 = 480;
this.movspd = 10;
}
Instance of Symbol 141 MovieClip [mm] in Symbol 154 MovieClip [lvl28] Frame 1
onClipEvent (load) {
this.movdisx1 = 480;
this.movdisx2 = 0;
this.movspd = 10;
}
Instance of Symbol 141 MovieClip [mm] in Symbol 154 MovieClip [lvl28] Frame 1
onClipEvent (load) {
this.movdisx1 = 480;
this.movdisx2 = 0;
this.movspd = 10;
}
Instance of Symbol 141 MovieClip [mm] in Symbol 154 MovieClip [lvl28] Frame 1
onClipEvent (load) {
this.movdisx1 = 0;
this.movdisx2 = 430;
this.movspd = 10;
}
Instance of Symbol 141 MovieClip [mm] in Symbol 154 MovieClip [lvl28] Frame 1
onClipEvent (load) {
this.movdisx1 = 0;
this.movdisx2 = 430;
this.movspd = 10;
}
Instance of Symbol 141 MovieClip [mm] in Symbol 156 MovieClip [lvl18] Frame 1
onClipEvent (load) {
this.movdisx1 = 0;
this.movdisx2 = 525;
this.movspd = 7;
}
Instance of Symbol 141 MovieClip [mm] in Symbol 156 MovieClip [lvl18] Frame 1
onClipEvent (load) {
this.movdisx1 = 0;
this.movdisx2 = 525;
this.movspd = 7;
}
Instance of Symbol 141 MovieClip [mm] in Symbol 156 MovieClip [lvl18] Frame 1
onClipEvent (load) {
this.movdisx1 = 200;
this.movdisx2 = 325;
this.movspd = 7;
}
Instance of Symbol 141 MovieClip [mm] in Symbol 156 MovieClip [lvl18] Frame 1
onClipEvent (load) {
this.movdisx1 = 200;
this.movdisx2 = 325;
this.movspd = 7;
}
Instance of Symbol 141 MovieClip [mm] in Symbol 156 MovieClip [lvl18] Frame 1
onClipEvent (load) {
this.movdisx1 = 100;
this.movdisx2 = 425;
this.movspd = 7;
}
Instance of Symbol 141 MovieClip [mm] in Symbol 156 MovieClip [lvl18] Frame 1
onClipEvent (load) {
this.movdisx1 = 100;
this.movdisx2 = 425;
this.movspd = 7;
}
Instance of Symbol 141 MovieClip [mm] in Symbol 156 MovieClip [lvl18] Frame 1
onClipEvent (load) {
this.movdisx1 = 0;
this.movdisx2 = 385;
this.movspd = 5;
}
Instance of Symbol 141 MovieClip [mm] in Symbol 156 MovieClip [lvl18] Frame 1
onClipEvent (load) {
this.movdisx1 = 0;
this.movdisx2 = 385;
this.movspd = 5;
}
Instance of Symbol 141 MovieClip [mm] in Symbol 157 MovieClip [lvl29] Frame 1
onClipEvent (load) {
this.movdisx1 = 0;
this.movdisx2 = 2030;
this.movspd = 7;
}
Instance of Symbol 141 MovieClip [mm] in Symbol 157 MovieClip [lvl29] Frame 1
onClipEvent (load) {
this.movdisx1 = 0;
this.movdisx2 = 2030;
this.movspd = 7;
}
Instance of Symbol 141 MovieClip [mm] in Symbol 157 MovieClip [lvl29] Frame 1
onClipEvent (load) {
this.movdisx1 = 0;
this.movdisx2 = 2030;
this.movspd = 7;
}
Instance of Symbol 141 MovieClip [mm] in Symbol 157 MovieClip [lvl29] Frame 1
onClipEvent (load) {
this.movdisx1 = 0;
this.movdisx2 = 2030;
this.movspd = 7;
}
Symbol 167 MovieClip [mbtn] Frame 1
stop();
Symbol 202 MovieClip Frame 33
stop();
greenspeed = 30;
bspeed = 30;
countdownya = 0;
_root.skipbtn._visible = false;
i = 0;
while (i < 150) {
this.attachMovie("bsquare", "bs" + i, i);
this["bs" + i]._x = (Math.random() * this.bgs._width) + this.bgs._x;
this["bs" + i]._y = (Math.random() * this.bgs._height) + this.bgs._y;
this["bs" + i].velx = (Math.random() * bspeed) - (bspeed / 2);
this["bs" + i].vely = (Math.random() * bspeed) - (bspeed / 2);
i++;
}
i = 150;
while (i < 175) {
this.attachMovie("gsquare", "gs" + i, i);
this["gs" + i]._x = (Math.random() * this.sq1._width) + this.sq1._x;
this["gs" + i]._y = (Math.random() * this.sq1._height) + this.sq1._y;
this["gs" + i].velx = (Math.random() * greenspeed) - (greenspeed / 2);
this["gs" + i].vely = (Math.random() * greenspeed) - (greenspeed / 2);
i++;
}
i = 175;
while (i < 200) {
this.attachMovie("gsquare", "gs" + i, i);
this["gs" + i]._x = (Math.random() * this.sq2._width) + this.sq2._x;
this["gs" + i]._y = (Math.random() * this.sq2._height) + this.sq2._y;
this["gs" + i].velx = (Math.random() * greenspeed) - (greenspeed / 2);
this["gs" + i].vely = (Math.random() * greenspeed) - (greenspeed / 2);
i++;
}
i = 200;
while (i < 250) {
this.attachMovie("gsquare", "gs" + i, i);
this["gs" + i]._x = (Math.random() * this.sq3._width) + this.sq3._x;
this["gs" + i]._y = (Math.random() * this.sq3._height) + this.sq3._y;
this["gs" + i].velx = (Math.random() * greenspeed) - (greenspeed / 2);
this["gs" + i].vely = (Math.random() * greenspeed) - (greenspeed / 2);
i++;
}
i = 250;
while (i < 300) {
this.attachMovie("gsquare", "gs" + i, i);
this["gs" + i]._x = (Math.random() * this.sq4._width) + this.sq4._x;
this["gs" + i]._y = (Math.random() * this.sq4._height) + this.sq4._y;
this["gs" + i].velx = (Math.random() * greenspeed) - (greenspeed / 2);
this["gs" + i].vely = (Math.random() * greenspeed) - (greenspeed / 2);
i++;
}
this.onEnterFrame = function () {
i = 0;
while (i < 150) {
this["bs" + i].vely = this["bs" + i].vely + 0.5;
this["bs" + i]._x = this["bs" + i]._x + this["bs" + i].velx;
this["bs" + i]._y = this["bs" + i]._y + this["bs" + i].vely;
i++;
}
i = 150;
while (i < 301) {
this["gs" + i].vely = this["gs" + i].vely + 0.5;
this["gs" + i]._x = this["gs" + i]._x + this["gs" + i].velx;
this["gs" + i]._y = this["gs" + i]._y + this["gs" + i].vely;
i++;
}
if (countdownya < 80) {
countdownya++;
} else {
_root.skipbtn._visible = true;
_root.skipbtn._alpha = 100;
delete this.onEnterFrame;
}
};
Symbol 272 MovieClip Frame 1
stop();
backbtn.useHandCursor = false;
backbtn.onRelease = function () {
_root.gotoAndStop(5);
};
learnbtn.useHandCursor = false;
learnbtn.onRelease = function () {
gotoAndStop (2);
};
Symbol 272 MovieClip Frame 2
backbtn.useHandCursor = false;
backbtn.onRelease = function () {
gotoAndStop (1);
};
Symbol 283 MovieClip Frame 1
contbtn.onPress = function () {
_root.paws = false;
};
menubtn.onPress = function () {
_root.menuRet();
};
mutebtn.onPress = function () {
_root.mute = Math.abs(_root.mute - 1);
_root.mbtn.gotoAndStop(Math.abs(_root.mbtn._currentframe - 2) + 1);
};
walkbtn.onPress = function () {
getURL ("http://www.bgames.com/sponsor/Color-Theory.html?utm_source=sponsor_game&utm_medium=hints&utm_campaign=Color-Theory", "_blank");
};
mogbtn.onPress = function () {
getURL ("http://www.bgames.com/?utm_source=sponsor_game&utm_medium=menu_more_games&utm_campaign=Color-Theory", "_blank");
};
Symbol 289 MovieClip Frame 477
stop();
moregbtn.onPress = function () {
getURL ("http://www.bgames.com/games/retro-games-1.html", "_blank");
};