Frame 1
stop();
Stage.showMenu = false;
Stage.scaleMode = "noScale";
_root.allowPlay = false;
_root.allowMenu = false;
_root.gamestarted = false;
_root.allowCC = false;
Frame 2
function reenableMusic() {
stopAllSounds();
if ((_root.songselect == 1) || (_root.songselect == 2)) {
_root.musicoptions.mp.gotoAndPlay("music" + _root.songselect);
} else if (_root.songselect == 0) {
_root.musicoptions.mp.gotoAndStop(1);
}
}
stop();
if (!_root.allowMenu) {
_root.prevFrame();
}
if (!defaultSettingsLoaded) {
_root.gemprocenttowin = 50;
_root.player1option = "human";
_root.cplevel1 = 3;
_root.player2option = "cp";
_root.cplevel2 = 3;
_root.songselect = 1;
defaultSettingsLoaded = true;
}
Instance of Symbol 80 MovieClip "RadioHUMAN2" in Frame 2
onClipEvent (load) {
function toggleThisRadio() {
_root.player2option = "human";
selectdot._visible = true;
_parent.RadioCP2.selectdot._visible = false;
_parent.cplevels2._visible = false;
}
if (_root.player2option == "human") {
RadioSelected = true;
_root.player2option = "human";
_parent.cplevels2._visible = false;
}
}
Instance of Symbol 80 MovieClip "RadioCP2" in Frame 2
onClipEvent (load) {
function toggleThisRadio() {
_root.player2option = "cp";
selectdot._visible = true;
_parent.RadioHUMAN2.selectdot._visible = false;
_parent.cplevels2._visible = true;
}
if (_root.player2option == "cp") {
RadioSelected = true;
_root.player2option = "cp";
_parent.cplevels2._visible = true;
}
}
Instance of Symbol 80 MovieClip "RadioHUMAN1" in Frame 2
onClipEvent (load) {
function toggleThisRadio() {
_root.player1option = "human";
selectdot._visible = true;
_parent.RadioCP1.selectdot._visible = false;
_parent.cplevels1._visible = false;
}
if (_root.player1option == "human") {
RadioSelected = true;
_root.player1option = "human";
_parent.cplevels1._visible = false;
}
}
Instance of Symbol 80 MovieClip "RadioCP1" in Frame 2
onClipEvent (load) {
function toggleThisRadio() {
_root.player1option = "cp";
selectdot._visible = true;
_parent.RadioHUMAN1.selectdot._visible = false;
_parent.cplevels1._visible = true;
}
if (_root.player1option == "cp") {
RadioSelected = true;
_root.player1option = "cp";
_parent.cplevels1._visible = true;
}
}
Instance of Symbol 99 MovieClip "gemstowin" in Frame 2
onClipEvent (load) {
tfield = _root.gemprocenttowin;
}
onClipEvent (mouseMove) {
if (((_root.gemstowin.tfield < 10) || (_root.gemstowin.tfield == "")) || (isNaN(_root.gemstowin.tfield))) {
_root.gemstowin.tfield = 10;
} else if (_root.gemstowin.tfield > 50) {
_root.gemstowin.tfield = 50;
}
}
Instance of Symbol 80 MovieClip "RadioSONG1" in Frame 2
onClipEvent (load) {
function toggleThisRadio() {
_root.songselect = 1;
selectdot._visible = true;
_parent.RadioSONG2.selectdot._visible = false;
_parent.RadioSONG0.selectdot._visible = false;
}
if (_root.songselect == 1) {
RadioSelected = true;
}
}
Instance of Symbol 80 MovieClip "RadioSONG2" in Frame 2
onClipEvent (load) {
function toggleThisRadio() {
_root.songselect = 2;
selectdot._visible = true;
_parent.RadioSONG1.selectdot._visible = false;
_parent.RadioSONG0.selectdot._visible = false;
}
if (_root.songselect == 2) {
RadioSelected = true;
}
}
Instance of Symbol 80 MovieClip "RadioSONG0" in Frame 2
onClipEvent (load) {
function toggleThisRadio() {
_root.songselect = 0;
selectdot._visible = true;
_parent.RadioSONG2.selectdot._visible = false;
_parent.RadioSONG1.selectdot._visible = false;
}
if (_root.songselect == 0) {
RadioSelected = true;
}
}
Instance of Symbol 131 MovieClip "gamefieldimage" in Frame 2
onClipEvent (load) {
_visible = false;
}
Frame 3
function prematurecolorchange(e, forplayer) {
do {
_root.gathernew = 0;
for (n in e.neighbor) {
n = (n = e.neighbor[n]);
n = _root.emroom["em" + n];
if ((n.currentcolor == e.currentcolor) && (n.owner == "")) {
n.owner = forplayer;
_root.gathernew++;
_root["collected" + forplayer]++;
do {
_root.gathernewn = 0;
for (n1 in n.neighbor) {
n1 = n.neighbor[n1];
n1 = _root.emroom["em" + n1];
if ((n1.currentcolor == n.currentcolor) && (n1.owner == "")) {
n1.owner = forplayer;
_root.gathernewn++;
_root["collected" + forplayer]++;
}
}
} while (_root.gathernewn > 0);
}
}
} while (_root.gathernew > 0);
}
function addEm10() {
if (i <= imax) {
internali = 0;
while (internali < 70) {
addEm();
i++;
internali++;
}
} else {
clearInterval(_root.addEminterval);
continueGameLoad();
}
}
function addEm() {
_root.emroom.attachMovie("em", "em" + i, i);
e = _root.emroom["em" + i];
e._x = newx;
e._y = newy;
e.id = i;
e.currentcolor = random(9) + 1;
e.newem.gotoAndStop(e.currentcolor);
e.oldem.gotoAndStop(e.currentcolor);
e.gotoAndStop(10);
e.owner = "";
e.eorow = (((row % 2) == 0) ? "even" : "odd");
if (_root.lastlast) {
e.special = "firstinrow";
_root.lastlast = false;
}
if ((i % 70) == 0) {
row++;
newx = (((row % 2) == 0) ? (emerald_width * 1.5) : (emerald_width));
newy = newy + emerald_height;
e.special = "lastinrow";
_root.lastlast = true;
} else {
newx = newx + emerald_width;
}
e.neighbor = Array();
n_i = i;
n_eo = e.eorow;
n_s = e.special;
if (n_eo == "even") {
e.neighbor[0] = ((n_s == "lastinrow") ? 0 : (n_i - 69));
e.neighbor[1] = n_i - 70;
e.neighbor[2] = ((n_s == "firstinrow") ? 0 : (n_i - 1));
e.neighbor[3] = ((n_s == "lastinrow") ? 0 : (n_i + 1));
e.neighbor[4] = n_i + 70;
e.neighbor[5] = ((n_s == "lastinrow") ? 0 : (n_i + 71));
} else if (n_eo == "odd") {
e.neighbor[0] = ((n_s == "firstinrow") ? 0 : (n_i - 71));
e.neighbor[1] = n_i - 70;
e.neighbor[2] = ((n_s == "firstinrow") ? 0 : (n_i - 1));
e.neighbor[3] = ((n_s == "lastinrow") ? 0 : (n_i + 1));
e.neighbor[4] = ((n_s == "firstinrow") ? 0 : (n_i + 69));
e.neighbor[5] = n_i + 70;
}
}
function continueGameLoad() {
_root.reenableMusic();
_root.musicoptions._visible = true;
_root.collected1 = (_root.collected2 = 1);
_root.emroom.em1681.owner = 1;
_root.emroom.em1681.newem.basenr.gotoAndStop(2);
_root.emroom.em1681.oldem.basenr.gotoAndStop(2);
_root.emroom.em70.owner = 2;
_root.emroom.em70.newem.basenr.gotoAndStop(3);
_root.emroom.em70.oldem.basenr.gotoAndStop(3);
_root.em1.oldem.gotoAndStop(_root.emroom.em1681.currentcolor);
_root.em1.newem.gotoAndStop(_root.emroom.em1681.currentcolor);
prematurecolorchange(_root.emroom.em1681, 1);
while (_root.emroom.em70.currentcolor == _root.emroom.em1681.currentcolor) {
_root.emroom.em70.currentcolor = random(9) + 1;
_root.emroom.em70.oldem.gotoAndStop(_root.emroom.em70.currentcolor);
_root.emroom.em70.newem.gotoAndStop(_root.emroom.em70.currentcolor);
}
_root.em2.oldem.gotoAndStop(_root.emroom.em70.currentcolor);
_root.em2.newem.gotoAndStop(_root.emroom.em70.currentcolor);
_root.lastcolor = (_root.disabledcolor = _root.emroom.em70.currentcolor);
prematurecolorchange(_root.emroom.em70, 2);
_root.console.console["color" + disabledcolor]._visible = false;
_root.activeplayer = 1;
_root.startcheck.play();
_root.gemsnumbertowin = (_root.imax / 100) * _root.gemprocenttowin;
trace(((("Gems to win: " + _root.gemsnumbertowin) + "(") + _root.gemprocenttowin) + ")");
_root.gamestarted = (_root.allowCC = true);
_root.console.gotoAndStop(2);
_root.console.console["color" + disabledcolor]._visible = false;
}
function changeColor(newcolor) {
if ((_root.gamestarted && (newcolor != _root.lastcolor)) && (_root.allowCC)) {
_root.pleasewait._visible = true;
do {
_root.gathernew = 0;
for (e in _root.emroom) {
e = _root.emroom[e];
if (e.owner == _root.activeplayer) {
if (e.currentcolor != newcolor) {
e.oldem.gotoAndStop(e.currentcolor);
_root["em" + _root.activeplayer].oldem.gotoAndStop(e.currentcolor);
e.currentcolor = newcolor;
_root["em" + _root.activeplayer].currentcolor = newcolor;
e.newem.gotoAndStop(newcolor);
_root["em" + _root.activeplayer].newem.gotoAndStop(newcolor);
e.gotoAndPlay(1);
if (_root["em" + _root.activeplayer]._currentframe == 10) {
_root["em" + _root.activeplayer].gotoAndPlay(1);
}
}
if (!e.standingalone) {
standingalonecount = (standingalonecounttotal = 0);
for (n in e.neighbor) {
n = e.neighbor[n];
n = _root.emroom["em" + n];
standingalonecounttotal++;
if ((n.currentcolor == newcolor) && (n.owner == "")) {
n.owner = _root.activeplayer;
_root.gathernew++;
_root["collected" + _root.activeplayer]++;
} else if (n.owner == _root.activeplayer) {
standingalonecount++;
}
}
if (standingalonecount == standingalonecounttotal) {
e.standingalone = true;
}
}
}
}
} while (_root.gathernew > 0);
_root.pleasewait._visible = false;
_root.activeplayer = ((_root.activeplayer == 1) ? 2 : 1);
_root.console.console["color" + newcolor]._visible = false;
_root.disabledcolor = newcolor;
_root.console.console["color" + _root.lastcolor]._visible = true;
_root.console.play();
_root.lastcolor = newcolor;
if (_root.collected1 > _root.gemsnumbertowin) {
_root.gamestarted = false;
_root.musicoptions._visible = false;
stopAllSounds();
_root.allowCC = false;
_root.console.stop();
_root.gameover.playerwins = "Player 1 Wins!!";
_root.cpthinking._visible = false;
_root.gameover._visible = true;
} else if (_root.collected2 > _root.gemsnumbertowin) {
_root.gamestarted = false;
_root.musicoptions._visible = false;
stopAllSounds();
_root.allowCC = false;
_root.console.stop();
_root.gameover.playerwins = "Player 2 Wins!!";
_root.cpthinking._visible = false;
_root.gameover._visible = true;
}
}
}
function removeEm() {
if (remi > 0) {
_root.emroom["em" + remi].removeMovieClip();
_root.emroom["em" + (remi - 1)].removeMovieClip();
_root.emroom["em" + (remi - 2)].removeMovieClip();
_root.emroom["em" + (remi - 3)].removeMovieClip();
_root.emroom["em" + (remi - 4)].removeMovieClip();
_root.emroom["em" + (remi - 5)].removeMovieClip();
_root.emroom["em" + (remi - 6)].removeMovieClip();
_root.emroom["em" + (remi - 7)].removeMovieClip();
_root.emroom["em" + (remi - 8)].removeMovieClip();
_root.emroom["em" + (remi - 9)].removeMovieClip();
_root.emroom["em" + (remi - 10)].removeMovieClip();
_root.emroom["em" + (remi - 11)].removeMovieClip();
_root.emroom["em" + (remi - 12)].removeMovieClip();
_root.emroom["em" + (remi - 13)].removeMovieClip();
_root.emroom["em" + (remi - 14)].removeMovieClip();
_root.emroom["em" + (remi - 15)].removeMovieClip();
_root.emroom["em" + (remi - 16)].removeMovieClip();
_root.emroom["em" + (remi - 17)].removeMovieClip();
_root.emroom["em" + (remi - 18)].removeMovieClip();
_root.emroom["em" + (remi - 19)].removeMovieClip();
_root.emroom["em" + (remi - 20)].removeMovieClip();
_root.emroom["em" + (remi - 21)].removeMovieClip();
_root.emroom["em" + (remi - 22)].removeMovieClip();
_root.emroom["em" + (remi - 23)].removeMovieClip();
_root.emroom["em" + (remi - 24)].removeMovieClip();
_root.emroom["em" + (remi - 25)].removeMovieClip();
_root.emroom["em" + (remi - 26)].removeMovieClip();
_root.emroom["em" + (remi - 27)].removeMovieClip();
_root.emroom["em" + (remi - 28)].removeMovieClip();
_root.emroom["em" + (remi - 29)].removeMovieClip();
_root.emroom["em" + (remi - 30)].removeMovieClip();
_root.emroom["em" + (remi - 31)].removeMovieClip();
_root.emroom["em" + (remi - 32)].removeMovieClip();
_root.emroom["em" + (remi - 33)].removeMovieClip();
_root.emroom["em" + (remi - 34)].removeMovieClip();
_root.emroom["em" + (remi - 35)].removeMovieClip();
_root.emroom["em" + (remi - 36)].removeMovieClip();
_root.emroom["em" + (remi - 37)].removeMovieClip();
_root.emroom["em" + (remi - 38)].removeMovieClip();
_root.emroom["em" + (remi - 39)].removeMovieClip();
_root.emroom["em" + (remi - 40)].removeMovieClip();
_root.emroom["em" + (remi - 41)].removeMovieClip();
_root.emroom["em" + (remi - 42)].removeMovieClip();
_root.emroom["em" + (remi - 43)].removeMovieClip();
_root.emroom["em" + (remi - 44)].removeMovieClip();
_root.emroom["em" + (remi - 45)].removeMovieClip();
_root.emroom["em" + (remi - 46)].removeMovieClip();
_root.emroom["em" + (remi - 47)].removeMovieClip();
_root.emroom["em" + (remi - 48)].removeMovieClip();
_root.emroom["em" + (remi - 49)].removeMovieClip();
_root.emroom["em" + (remi - 50)].removeMovieClip();
_root.emroom["em" + (remi - 51)].removeMovieClip();
_root.emroom["em" + (remi - 52)].removeMovieClip();
_root.emroom["em" + (remi - 53)].removeMovieClip();
_root.emroom["em" + (remi - 54)].removeMovieClip();
_root.emroom["em" + (remi - 55)].removeMovieClip();
_root.emroom["em" + (remi - 56)].removeMovieClip();
_root.emroom["em" + (remi - 57)].removeMovieClip();
_root.emroom["em" + (remi - 58)].removeMovieClip();
_root.emroom["em" + (remi - 59)].removeMovieClip();
_root.emroom["em" + (remi - 60)].removeMovieClip();
_root.emroom["em" + (remi - 61)].removeMovieClip();
_root.emroom["em" + (remi - 62)].removeMovieClip();
_root.emroom["em" + (remi - 63)].removeMovieClip();
_root.emroom["em" + (remi - 64)].removeMovieClip();
_root.emroom["em" + (remi - 65)].removeMovieClip();
_root.emroom["em" + (remi - 66)].removeMovieClip();
_root.emroom["em" + (remi - 67)].removeMovieClip();
_root.emroom["em" + (remi - 68)].removeMovieClip();
_root.emroom["em" + (remi - 69)].removeMovieClip();
_root.emroom["em" + (remi - 70)].removeMovieClip();
remi = remi - 70;
} else {
clearInterval(intervaldelete);
_root.gotoAndStop(2);
}
}
function ReturnToMenu(alwaysallow) {
if (_root.gamestarted || (alwaysallow)) {
_root.console.stop();
_root.cpthinking._visible = false;
_root.gameover._visible = false;
_root.gamestarted = false;
_root.musicoptions._visible = false;
stopAllSounds();
remi = i;
intervaldelete = setInterval(removeEm, 1);
_root.allowPlay = false;
}
}
if (!_root.allowPlay) {
_root.prevFrame();
}
stop();
imax = 1750;
i = (_root.collected1 = (_root.collected2 = (row = 1)));
newx = (emerald_width = 8.8);
emerald_height = 15;
newy = (starty = emerald_height * 4);
_root.consoleloc = Array(131, 763);
_root.addEminterval = setInterval(addEm10, 1);
Instance of Symbol 142 MovieClip in Frame 3
onClipEvent (load) {
if (_root.player1option == "cp") {
if (_root.cplevel1 == 1) {
gotoAndStop ("CPdumb");
} else if (_root.cplevel1 == 2) {
gotoAndStop ("CPeasy");
} else if (_root.cplevel1 == 3) {
gotoAndStop ("CPnormal");
} else if (_root.cplevel1 == 4) {
gotoAndStop ("CPhard");
}
} else if (_root.player1option == "human") {
gotoAndStop ("Human");
}
}
Instance of Symbol 142 MovieClip in Frame 3
onClipEvent (load) {
if (_root.player2option == "cp") {
if (_root.cplevel2 == 1) {
gotoAndStop ("CPdumb");
} else if (_root.cplevel2 == 2) {
gotoAndStop ("CPeasy");
} else if (_root.cplevel2 == 3) {
gotoAndStop ("CPnormal");
} else if (_root.cplevel2 == 4) {
gotoAndStop ("CPhard");
}
} else if (_root.player2option == "human") {
gotoAndStop ("Human");
}
}
Instance of Symbol 203 MovieClip "cpthinking" in Frame 3
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 231 MovieClip "musicoptions" in Frame 3
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 237 MovieClip in Frame 3
onClipEvent (load) {
stufftowin = _root.gemprocenttowin + "%\nto win.";
stufftowinnum = Math.round((_root.imax / 100) * _root.gemprocenttowin) + " gems";
stop();
}
Instance of Symbol 244 MovieClip "startcheck" in Frame 3
onClipEvent (load) {
stop();
}
Instance of Symbol 249 MovieClip "gameover" in Frame 3
onClipEvent (load) {
_visible = false;
}
Symbol 7 MovieClip Frame 1
stop();
Symbol 7 MovieClip Frame 2
stop();
Symbol 16 MovieClip Frame 1
stop();
Symbol 17 MovieClip [em] Frame 3
stop();
Symbol 36 Button
on (release) {
getURL ("http://www.justlikeed.net/", "_blank");
}
Symbol 43 Button
on (release) {
toggleHighQuality();
}
Symbol 54 Button
on (release) {
_parent.nextFrame();
}
Symbol 55 MovieClip Frame 1
stop();
Symbol 55 MovieClip Frame 10
stop();
Symbol 70 MovieClip Frame 80
_root.allowMenu = true;
_root.nextFrame();
Symbol 71 MovieClip Frame 1
stop();
Instance of Symbol 16 MovieClip "loadem1" in Symbol 71 MovieClip Frame 1
onClipEvent (load) {
_parent.loadem1.gotoAndStop(9);
_parent.loadem2.gotoAndStop(9);
_parent.loadem3.gotoAndStop(9);
_parent.loadem4.gotoAndStop(9);
_parent.loadem5.gotoAndStop(9);
_parent.loadem6.gotoAndStop(9);
_parent.loadem7.gotoAndStop(9);
_parent.loadem8.gotoAndStop(9);
_parent.loadem9.gotoAndStop(9);
_parent.loadem10.gotoAndStop(9);
allowthisscript = true;
}
onClipEvent (enterFrame) {
if (allowthisscript) {
total = _root.getBytesTotal();
loaded = _root.getBytesLoaded();
p = (loaded * 100) / total;
if (p > 10) {
_parent.loadem1.gotoAndStop(3);
}
if (p > 20) {
_parent.loadem2.gotoAndStop(3);
}
if (p > 30) {
_parent.loadem3.gotoAndStop(3);
}
if (p > 40) {
_parent.loadem4.gotoAndStop(3);
}
if (p > 50) {
_parent.loadem5.gotoAndStop(3);
}
if (p > 60) {
_parent.loadem6.gotoAndStop(3);
}
if (p > 70) {
_parent.loadem7.gotoAndStop(3);
}
if (p > 80) {
_parent.loadem8.gotoAndStop(3);
}
if (p > 90) {
_parent.loadem9.gotoAndStop(3);
}
if (total == loaded) {
allowthisscript = false;
_parent.loadem10.gotoAndStop(3);
_parent.playbutton.gotoAndPlay(2);
}
}
}
Symbol 71 MovieClip Frame 2
stop();
Symbol 77 Button
on (release) {
toggleThisRadio();
}
Symbol 80 MovieClip Frame 1
stop();
selectdot._visible = false;
if (this.RadioSelected) {
selectdot._visible = true;
}
Instance of Symbol 80 MovieClip "RadioLEVEL1" in Symbol 86 MovieClip Frame 1
onClipEvent (load) {
function toggleThisRadio() {
_root.cplevel2 = 1;
selectdot._visible = true;
_parent.RadioLEVEL4.selectdot._visible = false;
_parent.RadioLEVEL2.selectdot._visible = false;
_parent.RadioLEVEL3.selectdot._visible = false;
}
if (_root.cplevel2 == 1) {
RadioSelected = true;
_root.cplevel2 = 1;
}
}
Instance of Symbol 80 MovieClip "RadioLEVEL2" in Symbol 86 MovieClip Frame 1
onClipEvent (load) {
function toggleThisRadio() {
_root.cplevel2 = 2;
selectdot._visible = true;
_parent.RadioLEVEL1.selectdot._visible = false;
_parent.RadioLEVEL4.selectdot._visible = false;
_parent.RadioLEVEL3.selectdot._visible = false;
}
if (_root.cplevel2 == 2) {
RadioSelected = true;
_root.cplevel2 = 2;
}
}
Instance of Symbol 80 MovieClip "RadioLEVEL3" in Symbol 86 MovieClip Frame 1
onClipEvent (load) {
function toggleThisRadio() {
_root.cplevel2 = 3;
selectdot._visible = true;
_parent.RadioLEVEL1.selectdot._visible = false;
_parent.RadioLEVEL2.selectdot._visible = false;
_parent.RadioLEVEL4.selectdot._visible = false;
}
if (_root.cplevel2 == 3) {
RadioSelected = true;
_root.cplevel2 = 3;
}
}
Instance of Symbol 80 MovieClip "RadioLEVEL4" in Symbol 86 MovieClip Frame 1
onClipEvent (load) {
function toggleThisRadio() {
_root.cplevel2 = 4;
selectdot._visible = true;
_parent.RadioLEVEL1.selectdot._visible = false;
_parent.RadioLEVEL2.selectdot._visible = false;
_parent.RadioLEVEL3.selectdot._visible = false;
}
if (_root.cplevel2 == 4) {
RadioSelected = true;
_root.cplevel2 = 4;
}
}
Symbol 94 Button
on (release) {
if (((_root.gemstowin.tfield < 10) || (_root.gemstowin.tfield == "")) || (isNaN(_root.gemstowin.tfield))) {
_root.gemstowin.tfield = 10;
} else if (_root.gemstowin.tfield > 50) {
_root.gemstowin.tfield = 50;
}
if (tfield < 50) {
tfield++;
}
}
Symbol 95 Button
on (release) {
if (((_root.gemstowin.tfield < 10) || (_root.gemstowin.tfield == "")) || (isNaN(_root.gemstowin.tfield))) {
_root.gemstowin.tfield = 10;
} else if (_root.gemstowin.tfield > 50) {
_root.gemstowin.tfield = 50;
}
if (tfield > 10) {
tfield--;
}
}
Instance of Symbol 80 MovieClip "RadioLEVEL1" in Symbol 106 MovieClip Frame 1
onClipEvent (load) {
function toggleThisRadio() {
_root.cplevel1 = 1;
selectdot._visible = true;
_parent.RadioLEVEL4.selectdot._visible = false;
_parent.RadioLEVEL2.selectdot._visible = false;
_parent.RadioLEVEL3.selectdot._visible = false;
}
if (_root.cplevel1 == 1) {
RadioSelected = true;
_root.cplevel1 = 1;
}
}
Instance of Symbol 80 MovieClip "RadioLEVEL2" in Symbol 106 MovieClip Frame 1
onClipEvent (load) {
function toggleThisRadio() {
_root.cplevel1 = 2;
selectdot._visible = true;
_parent.RadioLEVEL1.selectdot._visible = false;
_parent.RadioLEVEL4.selectdot._visible = false;
_parent.RadioLEVEL3.selectdot._visible = false;
}
if (_root.cplevel1 == 2) {
RadioSelected = true;
_root.cplevel1 = 2;
}
}
Instance of Symbol 80 MovieClip "RadioLEVEL3" in Symbol 106 MovieClip Frame 1
onClipEvent (load) {
function toggleThisRadio() {
_root.cplevel1 = 3;
selectdot._visible = true;
_parent.RadioLEVEL1.selectdot._visible = false;
_parent.RadioLEVEL2.selectdot._visible = false;
_parent.RadioLEVEL4.selectdot._visible = false;
}
if (_root.cplevel1 == 3) {
RadioSelected = true;
_root.cplevel1 = 3;
}
}
Instance of Symbol 80 MovieClip "RadioLEVEL4" in Symbol 106 MovieClip Frame 1
onClipEvent (load) {
function toggleThisRadio() {
_root.cplevel1 = 4;
selectdot._visible = true;
_parent.RadioLEVEL1.selectdot._visible = false;
_parent.RadioLEVEL2.selectdot._visible = false;
_parent.RadioLEVEL3.selectdot._visible = false;
}
if (_root.cplevel1 == 4) {
RadioSelected = true;
_root.cplevel1 = 4;
}
}
Symbol 123 Button
on (release) {
if (((_root.gemstowin.tfield < 10) || (_root.gemstowin.tfield == "")) || (isNaN(_root.gemstowin.tfield))) {
trace("to10");
_root.gemstowin.tfield = 10;
} else if (_root.gemstowin.tfield > 50) {
trace("to50");
_root.gemstowin.tfield = 50;
}
_root.gemprocenttowin = _root.gemstowin.tfield;
_root.allowPlay = true;
_root.gotoAndStop(3);
}
Symbol 125 Button
on (rollOver) {
gamefieldimage._visible = true;
}
on (rollOut) {
gamefieldimage._visible = false;
}
Symbol 142 MovieClip Frame 1
stop();
Symbol 142 MovieClip Frame 2
stop();
Symbol 144 Button
on (release) {
_root.changeColor(1);
}
Symbol 147 Button
on (release) {
_root.changeColor(2);
}
Symbol 150 Button
on (release) {
_root.changeColor(3);
}
Symbol 153 Button
on (release) {
_root.changeColor(4);
}
Symbol 156 Button
on (release) {
_root.changeColor(5);
}
Symbol 159 Button
on (release) {
_root.changeColor(6);
}
Symbol 162 Button
on (release) {
_root.changeColor(7);
}
Symbol 165 Button
on (release) {
_root.changeColor(8);
}
Symbol 168 Button
on (release) {
_root.changeColor(9);
}
Symbol 172 MovieClip Frame 1
stop();
_root.allowCC = false;
Symbol 172 MovieClip Frame 2
function doCPmove(cpll) {
usecolor = 0;
if (cpll == 1) {
do {
newcolor = random(9) + 1;
} while (newcolor == _root.disabledcolor);
_root.changeColor(newcolor);
} else if (cpll == 2) {
for (e in _root.emroom) {
e = _root.emroom[e];
if ((e.owner == _root.activeplayer) && (!e.standingalone)) {
ncount = 0;
for (n in e.neighbor) {
n = (n = e.neighbor[n]);
n = _root.emroom["em" + n];
if (n.owner == "") {
if ((n.currentcolor != usecolor) && (n.currentcolor != _root.disabledcolor)) {
usecolor = n.currentcolor;
ncount++;
}
}
}
if ((ncount == 0) && (!e.standingalone)) {
trace(e + " is now standingalone");
e.standingalone = true;
trace((e + ".standingalone = ") + e.standingalone);
}
}
}
_root.changeColor(usecolor);
} else if (cpll == 3) {
contentents = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
for (e in _root.emroom) {
e = _root.emroom[e];
if ((e.owner == _root.activeplayer) && (!e.standingalone)) {
ncount = 0;
for (n in e.neighbor) {
n = e.neighbor[n];
n = _root.emroom["em" + n];
if (n.owner == "") {
if ((n.currentcolor != usecolor) && (n.currentcolor != _root.disabledcolor)) {
contentents[n.currentcolor]++;
ncount++;
}
}
}
if ((ncount == 0) && (!e.standingalone)) {
e.standingalone = true;
trace(e + " is now standingalone");
trace((e + ".standingalone = ") + e.standingalone);
}
}
}
usecolor = 0;
ccc = 1;
do {
if (((((((((contentents[ccc] >= contentents[1]) && (contentents[ccc] >= contentents[2])) && (contentents[ccc] >= contentents[3])) && (contentents[ccc] >= contentents[4])) && (contentents[ccc] >= contentents[5])) && (contentents[ccc] >= contentents[6])) && (contentents[ccc] >= contentents[7])) && (contentents[ccc] >= contentents[8])) && (contentents[ccc] >= contentents[9])) {
usecolor = ccc;
}
ccc++;
} while (usecolor == 0);
seconddisabled = 0;
if (cpll == 3) {
if (random(3) == 0) {
seconddisabled = usecolor;
}
}
if (((usecolor == _root.disabledcolor) || (usecolor == _root["em" + _root.activeplayer].currentcolor)) || (usecolor == seconddisabled)) {
do {
usecolor = random(9) + 1;
} while ((usecolor == _root.disabledcolor) || (usecolor == _root["em" + _root.activeplayer].currentcolor));
}
_root.changeColor(usecolor);
} else if (cpll == 4) {
contentents = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
for (e in _root.emroom) {
e = _root.emroom[e];
if ((e.owner == _root.activeplayer) && (!e.standingalone)) {
ncount = 0;
for (n in e.neighbor) {
n = e.neighbor[n];
n = _root.emroom["em" + n];
if (n.owner == "") {
if ((n.currentcolor != usecolor) && (n.currentcolor != _root.disabledcolor)) {
contentents[n.currentcolor]++;
ncount++;
for (n1 in n.neighbor) {
n1 = n.neighbor[n1];
n1 = _root.emroom["em" + n1];
if (n1.owner == "") {
if (((n1.currentcolor != usecolor) && (n1.currentcolor != _root.disabledcolor)) && (n1.currentcolor == n.currentcolor)) {
contentents[n1.currentcolor]++;
for (n2 in n1.neighbor) {
n2 = n1.neighbor[n2];
n2 = _root.emroom["em" + n2];
if (n2.owner == "") {
if (((n2.currentcolor != usecolor) && (n2.currentcolor != _root.disabledcolor)) && (n2.currentcolor == n1.currentcolor)) {
trace("tripple neighbor");
contentents[n2.currentcolor]++;
}
}
}
}
}
}
}
}
}
if ((ncount == 0) && (!e.standingalone)) {
e.standingalone = true;
trace(e + " is now standingalone");
trace((e + ".standingalone = ") + e.standingalone);
}
}
}
usecolor = 0;
ccc = 1;
do {
if (((((((((contentents[ccc] >= contentents[1]) && (contentents[ccc] >= contentents[2])) && (contentents[ccc] >= contentents[3])) && (contentents[ccc] >= contentents[4])) && (contentents[ccc] >= contentents[5])) && (contentents[ccc] >= contentents[6])) && (contentents[ccc] >= contentents[7])) && (contentents[ccc] >= contentents[8])) && (contentents[ccc] >= contentents[9])) {
usecolor = ccc;
}
ccc++;
} while (usecolor == 0);
seconddisabled = 0;
if (cpll == 3) {
if (random(3) == 0) {
seconddisabled = usecolor;
}
}
if (((usecolor == _root.disabledcolor) || (usecolor == _root["em" + _root.activeplayer].currentcolor)) || (usecolor == seconddisabled)) {
trace(" Color interfears with disabled color, selecting new color.");
do {
usecolor = random(9) + 1;
} while ((usecolor == _root.disabledcolor) || (usecolor == _root["em" + _root.activeplayer].currentcolor));
}
_root.changeColor(usecolor);
}
}
stop();
stop();
_root.allowCC = true;
if (_root.player1option == "human") {
_root.allowCC = true;
} else if (_root.player1option == "cp") {
_root.allowCC = true;
doCPmove(_root.cplevel1);
}
Symbol 172 MovieClip Frame 3
_root.allowCC = false;
_root.cpthinking._visible = false;
Symbol 172 MovieClip Frame 25
if (_root.player2option == "cp") {
_root.cpthinking._visible = true;
}
Symbol 172 MovieClip Frame 26
stop();
_root.allowCC = true;
if (_root.player2option == "human") {
_root.allowCC = true;
} else if (_root.player2option == "cp") {
_root.allowCC = true;
doCPmove(_root.cplevel2);
}
Symbol 172 MovieClip Frame 27
_root.allowCC = false;
_root.cpthinking._visible = false;
trace("!!!");
Symbol 172 MovieClip Frame 50
if (_root.player1option == "cp") {
_root.cpthinking._visible = true;
}
Symbol 172 MovieClip Frame 51
gotoAndStop (2);
Symbol 207 Button
on (release) {
ReturnToMenu();
}
Symbol 212 Button
on (release) {
getURL ("http://www.justlikeed.net/", "_blank");
}
Symbol 214 Button
on (rollOver) {
if (_root.gamestarted) {
gotoAndPlay (2);
}
}
Symbol 218 MovieClip Frame 1
stopAllSounds();
stop();
Symbol 218 MovieClip Frame 2
stopAllSounds();
Symbol 218 MovieClip Frame 4
stop();
Symbol 218 MovieClip Frame 5
stopAllSounds();
Symbol 218 MovieClip Frame 7
stop();
Symbol 220 Button
on (rollOver) {
rollover++;
}
on (rollOut) {
rollover--;
}
Symbol 221 Button
on (rollOver) {
_root.songselect = 1;
mp.gotoAndPlay("music1");
rollover++;
}
on (rollOut) {
rollover--;
}
Symbol 222 Button
on (rollOver) {
_root.songselect = 2;
mp.gotoAndPlay("music2");
rollover++;
}
on (rollOut) {
rollover--;
}
Symbol 223 Button
on (rollOver) {
_root.songselect = 0;
mp.gotoAndStop(1);
rollover++;
}
on (rollOut) {
rollover--;
}
Symbol 231 MovieClip Frame 1
stop();
Instance of Symbol 218 MovieClip "mp" in Symbol 231 MovieClip Frame 1
onClipEvent (load) {
_parent.rollover = 0;
}
onClipEvent (enterFrame) {
if (_parent._currentframe == 4) {
if (_parent.rollover < 1) {
_parent.gotoAndStop(1);
}
}
}
Symbol 231 MovieClip Frame 4
stop();
Symbol 232 Button
on (rollOver) {
nextFrame();
}
Symbol 234 Button
on (rollOut) {
prevFrame();
}
Symbol 244 MovieClip Frame 27
stop();
Symbol 245 Button
on (release) {
_root.ReturnToMenu(true);
this._visible = false;
}