Frame 1
fscommand ("fullscreen", "true");
Frame 2
tb = _root.getBytesTotal();
Frame 3
play();
lb = _root.getBytesLoaded();
info = info + (lb + newline);
Frame 4
if (lb >= tb) {
} else {
prevFrame();
}
Frame 5
gotoAndStop (6);
Frame 6
function turnDone() {
if (_root.board.winners.length >= numPlayers) {
gotoAndPlay (36);
return(0);
}
turn++;
if (turn >= numPlayers) {
turn = 0;
}
if (turnArray[turn] == player.color) {
_root.player.info.arrow._visible = true;
if (botplay == true) {
if (eval ("bot" + turnArray[turn]).finished) {
_root.turnDone();
} else {
eval ("bot" + turnArray[turn]).move();
}
} else if (_root.player.score == 10) {
_root.turnDone();
}
} else if (eval ("bot" + turnArray[turn]).finished) {
_root.turnDone();
} else {
eval ("bot" + turnArray[turn]).move();
}
}
function getDivit(stone) {
var i = 1;
while (i < 123) {
var thisDivit = eval ("_root.board.d" + i);
if (stone.hitTest(thisDivit.core)) {
return(thisDivit);
}
i++;
}
return(false);
}
function getStone(thing) {
var colorLetter = "b";
i = 1;
while (i < 11) {
var myStone = eval (("_root.board.stones." + colorLetter) + i);
if (thing.hitTest(myStone.core)) {
return(myStone);
}
if ((i == 10) && (colorLetter == "b")) {
i = 0;
colorLetter = "p";
}
if ((i == 10) && (colorLetter == "p")) {
i = 0;
colorLetter = "r";
}
if ((i == 10) && (colorLetter == "r")) {
i = 0;
colorLetter = "y";
}
if ((i == 10) && (colorLetter == "y")) {
i = 0;
colorLetter = "g";
}
if ((i == 10) && (colorLetter == "g")) {
i = 0;
colorLetter = "c";
}
i++;
}
return(0);
}
function findDistance(spriteA, spriteB) {
var a = Math.abs(spriteA._x - spriteB._x);
var b = Math.abs(spriteA._y - spriteB._y);
return(Math.sqrt((a * a) + (b * b)));
}
function finishString() {
if (_root.board.winners.length == 1) {
return("WINNER");
}
if (_root.board.winners.length == 2) {
return("FINISHED 2ND");
}
if (_root.board.winners.length == 3) {
return("FINISHED 3RD");
}
if (_root.board.winners.length == 4) {
return("FINISHED 4TH");
}
if (_root.board.winners.length == 5) {
return("FINISHED 5TH");
}
if (_root.board.winners.length == 6) {
return("FINISHED 6TH");
}
}
function playSoundLink(linkName) {
if (_root.player.sound) {
_root.s.attachSound(linkName);
_root.s.start();
}
}
play();
s = new Sound();
botplay = false;
activeSkin = 1;
scriptDir = "../php-bin/";
playerName = "HUMAN";
Frame 7
play();
turn = 0;
turnArray = new Array();
Frame 8
gotoAndStop (16);
Frame 16
stop();
Frame 17
gotoAndPlay (16);
Frame 18
play();
Frame 23
stop();
Frame 24
board.gotoAndPlay("game");
stop();
Instance of Symbol 230 MovieClip "botb" in Frame 24
//component parameters
onClipEvent (initialize) {
color = "b";
}
Instance of Symbol 230 MovieClip "botp" in Frame 24
//component parameters
onClipEvent (initialize) {
color = "p";
}
Instance of Symbol 230 MovieClip "botr" in Frame 24
//component parameters
onClipEvent (initialize) {
color = "r";
}
Instance of Symbol 230 MovieClip "boty" in Frame 24
//component parameters
onClipEvent (initialize) {
color = "y";
}
Instance of Symbol 230 MovieClip "botg" in Frame 24
//component parameters
onClipEvent (initialize) {
color = "g";
}
Instance of Symbol 230 MovieClip "botc" in Frame 24
//component parameters
onClipEvent (initialize) {
color = "c";
}
Frame 26
prevFrame();
Frame 36
stop();
board.gotoAndPlay("gameOver");
Frame 38
prevFrame();
Symbol 7 MovieClip [autoMoverLink] Frame 1
_parent.swapDepths(_root.board.stones.topStone);
_root.board.stones.topStone++;
moveCounter = 0;
moves = 0;
scootCount = 0;
scoots = 10;
jumper = false;
ogHieght = _parent._height;
ogWidth = _parent._width;
Symbol 7 MovieClip [autoMoverLink] Frame 2
moves = moveArray.length;
Symbol 7 MovieClip [autoMoverLink] Frame 3
if (moveCounter != moves) {
dirr = moveArray[moveCounter];
if (dirr.charAt(0) == "j") {
jumper = true;
dir = dirr.slice(1);
} else {
jumper = false;
dir = dirr;
}
if (dir == "ne") {
gox = 15;
goy = 25;
}
if (dir == "e") {
gox = 30;
goy = 0;
}
if (dir == "se") {
gox = 15;
goy = -25;
}
if (dir == "sw") {
gox = -15;
goy = -25;
}
if (dir == "w") {
gox = -30;
goy = 0;
}
if (dir == "nw") {
gox = -15;
goy = 25;
}
if (jumper) {
gox = gox * 2;
goy = goy * 2;
scoots = 20;
} else {
scoots = 10;
}
} else {
_parent._width = ogWidth;
_parent._height = ogHieght;
_parent.swapDepths(_root.board.stones.topStone);
gotoAndPlay (14);
}
_parent._width = ogWidth;
_parent._height = ogHieght;
Symbol 7 MovieClip [autoMoverLink] Frame 4
if (scoots == 10) {
_parent._x = _parent._x + ((scootCount - 5) * 0.6);
_parent._y = _parent._y + ((scootCount - 5) * 0.6);
_parent._width = _parent._width - ((scootCount - 5) * 0.6);
_parent._height = _parent._height - ((scootCount - 5) * 0.6);
} else {
_parent._x = _parent._x + ((scootCount - 10) * 0.3);
_parent._y = _parent._y + ((scootCount - 10) * 0.3);
_parent._width = _parent._width - ((scootCount - 10) * 0.3);
_parent._height = _parent._height - ((scootCount - 10) * 0.3);
}
if (scootCount != scoots) {
_parent._x = _parent._x + (gox / scoots);
_parent._y = _parent._y - (goy / scoots);
} else {
if (_root.player.sound) {
_root.s.attachSound("stickHitLink");
_root.s.start();
}
scootCount = 0;
moveCounter++;
gotoAndPlay (3);
}
Symbol 7 MovieClip [autoMoverLink] Frame 5
scootCount++;
gotoAndPlay (4);
Symbol 7 MovieClip [autoMoverLink] Frame 17
stop();
_root.turnDone();
this.removeMovieClip();
Symbol 10 MovieClip Frame 1
function stoneHitTest() {
c = "b";
i = 1;
while (i < 11) {
sp = eval ((("_root.board.stones." + c) + i) + ".core");
if (core.hitTest(sp)) {
return(1);
}
if ((i == 10) && (c == "b")) {
c = "r";
i = 0;
}
if ((i == 10) && (c == "r")) {
c = "g";
i = 0;
}
if ((i == 10) && (c == "g")) {
c = "y";
i = 0;
}
if ((i == 10) && (c == "y")) {
c = "p";
i = 0;
}
if ((i == 10) && (c == "p")) {
c = "c";
i = 0;
}
if ((i == 10) && (c == "c")) {
i == 99;
}
i++;
}
return(0);
}
jump = 0;
point = new Object();
point.x = core._x;
point.y = core._y;
localToGlobal(point);
if (_root.board.out.hitTest(point.x, point.y, true)) {
nextFrame();
}
if (stoneHitTest()) {
gotoAndPlay(dirNum);
} else {
if (_parent.bounceMode) {
nextFrame();
}
stop();
}
stop();
Symbol 10 MovieClip Frame 2
stop();
Symbol 10 MovieClip Frame 5
point.x = core._x;
point.y = core._y;
localToGlobal(point);
if (_root.board.out.hitTest(point.x, point.y, true) || (stoneHitTest())) {
nextFrame();
} else {
jump = true;
_parent.jump++;
stop();
}
Symbol 10 MovieClip Frame 6
stop();
Symbol 10 MovieClip Frame 15
point.x = core._x;
point.y = core._y;
localToGlobal(point);
if (_root.board.out.hitTest(point.x, point.y, true) || (stoneHitTest())) {
nextFrame();
} else {
jump = true;
_parent.jump++;
stop();
}
Symbol 10 MovieClip Frame 16
stop();
Symbol 10 MovieClip Frame 25
point.x = core._x;
point.y = core._y;
localToGlobal(point);
if (_root.board.out.hitTest(point.x, point.y, true) || (stoneHitTest())) {
nextFrame();
} else {
jump = true;
_parent.jump++;
stop();
}
Symbol 10 MovieClip Frame 26
stop();
Symbol 10 MovieClip Frame 35
point.x = core._x;
point.y = core._y;
localToGlobal(point);
if (_root.board.out.hitTest(point.x, point.y, true) || (stoneHitTest())) {
nextFrame();
} else {
jump = true;
_parent.jump++;
stop();
}
Symbol 10 MovieClip Frame 36
stop();
Symbol 10 MovieClip Frame 45
point.x = core._x;
point.y = core._y;
localToGlobal(point);
if (_root.board.out.hitTest(point.x, point.y, true) || (stoneHitTest())) {
nextFrame();
} else {
jump = true;
_parent.jump++;
stop();
}
Symbol 10 MovieClip Frame 46
stop();
Symbol 10 MovieClip Frame 55
point.x = core._x;
point.y = core._y;
localToGlobal(point);
if (_root.board.out.hitTest(point.x, point.y, true) || (stoneHitTest())) {
nextFrame();
} else {
jump = true;
_parent.jump++;
stop();
}
Symbol 10 MovieClip Frame 56
stop();
Symbol 11 MovieClip [moveFinder] Frame 1
stop();
Instance of Symbol 10 MovieClip "northwest" in Symbol 11 MovieClip [moveFinder] Frame 1
//component parameters
onClipEvent (initialize) {
dirNum = "nw";
}
Instance of Symbol 10 MovieClip "west" in Symbol 11 MovieClip [moveFinder] Frame 1
//component parameters
onClipEvent (initialize) {
dirNum = "w";
}
Instance of Symbol 10 MovieClip "southwest" in Symbol 11 MovieClip [moveFinder] Frame 1
//component parameters
onClipEvent (initialize) {
dirNum = "sw";
}
Instance of Symbol 10 MovieClip "southeast" in Symbol 11 MovieClip [moveFinder] Frame 1
//component parameters
onClipEvent (initialize) {
dirNum = "se";
}
Instance of Symbol 10 MovieClip "east" in Symbol 11 MovieClip [moveFinder] Frame 1
//component parameters
onClipEvent (initialize) {
dirNum = "e";
}
Instance of Symbol 10 MovieClip "northeast" in Symbol 11 MovieClip [moveFinder] Frame 1
//component parameters
onClipEvent (initialize) {
dirNum = "ne";
}
Symbol 12 MovieClip [moverLink] Frame 1
stop();
Instance of Symbol 10 MovieClip "northwest" in Symbol 12 MovieClip [moverLink] Frame 1
//component parameters
onClipEvent (initialize) {
dirNum = "nw";
}
Instance of Symbol 10 MovieClip "west" in Symbol 12 MovieClip [moverLink] Frame 1
//component parameters
onClipEvent (initialize) {
dirNum = "w";
}
Instance of Symbol 10 MovieClip "southwest" in Symbol 12 MovieClip [moverLink] Frame 1
//component parameters
onClipEvent (initialize) {
dirNum = "sw";
}
Instance of Symbol 10 MovieClip "southeast" in Symbol 12 MovieClip [moverLink] Frame 1
//component parameters
onClipEvent (initialize) {
dirNum = "se";
}
Instance of Symbol 10 MovieClip "east" in Symbol 12 MovieClip [moverLink] Frame 1
//component parameters
onClipEvent (initialize) {
dirNum = "e";
}
Instance of Symbol 10 MovieClip "northeast" in Symbol 12 MovieClip [moverLink] Frame 1
//component parameters
onClipEvent (initialize) {
dirNum = "ne";
}
Symbol 21 MovieClip [stonegLink] Frame 1
stop();
Symbol 23 MovieClip [glowRed] Frame 1
stop();
Symbol 25 MovieClip [stonebLink] Frame 1
stop();
Symbol 26 MovieClip [simpleStoneLink] Frame 1
Symbol 26 MovieClip [simpleStoneLink] Frame 5
stop();
Symbol 26 MovieClip [simpleStoneLink] Frame 15
stop();
Symbol 26 MovieClip [simpleStoneLink] Frame 25
stop();
Symbol 26 MovieClip [simpleStoneLink] Frame 35
stop();
Symbol 26 MovieClip [simpleStoneLink] Frame 44
stop();
Symbol 26 MovieClip [simpleStoneLink] Frame 53
stop();
Symbol 31 MovieClip [marbleblue] Frame 1
stop();
Symbol 34 MovieClip [marblered] Frame 1
stop();
Symbol 37 MovieClip [marblegreen] Frame 1
stop();
Symbol 39 Button
on (press) {
hilight.removeMovieClip();
if ((_root.player.color == color) && (_root.turnArray[_root.turn] == _root.player.color)) {
if (active) {
moveHere = isMove();
if (moveHere != 0) {
active++;
if (jumper) {
_root.player.move[_root.player.move.length] = "j" + moveHere.dirNum;
oldX = oldX + (moveHere._x + moveHere.core._x);
oldY = oldY + (moveHere._y + moveHere.core._y);
_root.playSoundLink("plasticClick");
setMover();
} else {
if (_root.player.isScore(this)) {
_root.playSoundLink("jingleSound");
} else {
_root.playSoundLink("stickHitLink");
}
oldX = oldX + moveHere._x;
oldY = oldY + moveHere._y;
endMove();
}
this._x = oldX;
this._y = oldY;
} else {
badMove();
}
} else {
oldDivit = _root.getDivit(core);
this.swapDepths(_parent.topStone);
_parent.topStone++;
oldX = this._x;
oldY = this._y;
startDrag ("", true);
Mouse.hide();
active = 1;
_root.player.stone = this.c;
setMover();
}
} else {
_root.info.displayPlayer(color);
if (_root.player.color != color) {
}
if (_root.turnArray[_root.turn] != _root.player.color) {
}
badMove();
}
}
on (release, releaseOutside) {
if (_root.player.score == 9) {
_root.player.calculateScore();
if (_root.player.score == 10) {
endMove();
}
} else if (jumper) {
if (_root.board.stones.mover.jump > 1) {
jumps++;
} else {
if (jumper) {
}
endMove();
}
}
}
on (rollOver) {
attachMovie("stoneHilightLink", "hilight", 563);
}
on (rollOut) {
hilight.removeMovieClip();
}
Symbol 42 MovieClip Frame 1
function isMove() {
dir = "northwest";
i = 0;
while (i < 6) {
myMoveSpot = eval ("_root.board.stones.mover." + dir);
if (core.hitTest(myMoveSpot)) {
if (myMoveSpot.jump) {
jumper = true;
} else {
jumper = false;
}
return(myMoveSpot);
}
if (dir == "northwest") {
dir = "northeast";
} else if (dir == "northeast") {
dir = "east";
} else if (dir == "east") {
dir = "southeast";
} else if (dir == "southeast") {
dir = "southwest";
} else if (dir == "southwest") {
dir = "west";
} else if ((dir == "west") && (i != 99)) {
this._x = oldX;
this._y = oldY;
}
i++;
}
return(0);
}
jumper = false;
active = false;
numClicks = 0;
gotoAndStop(color);
Symbol 45 MovieClip Frame 1
stop();
Symbol 47 MovieClip Frame 1
stop();
Symbol 54 MovieClip [stoneLink] Frame 1
function setMover() {
with (_root.board.stones) {
mover.removeMovieClip();
attachMovie("moverLink", "mover", 100);
mover._alpha = 0;
mover._x = oldX;
mover._y = oldY;
if (jumper) {
mover.bounceMode = true;
}
}
}
function badMove() {
if (jumper) {
endMove();
} else {
stopDrag();
Mouse.show();
this._x = oldX;
this._y = oldY;
_root.board.stones.mover.removeMovieClip();
this.active = 0;
this.jumps = 0;
this.jumper = false;
_root.playSoundLink("clothRipLink");
}
}
function endMove() {
stopDrag();
Mouse.show();
if (jumper) {
if (_root.player.isScore(this)) {
_root.playSoundLink("jingleSound");
}
}
this._x = oldX;
this._y = oldY;
_root.board.stones.mover.removeMovieClip();
this.active = 0;
this.jumps = 0;
this.jumper = false;
currentDivit = _root.getDivit(core);
currentDivit.occupied = true;
oldDivit.occupied = false;
_root.player.moves++;
loadVariables ("cctickle.php", this, "POST");
_root.player.checkForWin();
if (_root.board.winners.length >= _root.numPlayers) {
_root.gotoAndPlay("gameover");
return(0);
}
_root.turnDone();
}
function isMove() {
dir = "northwest";
i = 0;
while (i < 6) {
myMoveSpot = eval ("_root.board.stones.mover." + dir);
if (core.hitTest(myMoveSpot)) {
if (myMoveSpot.jump) {
jumper = true;
} else {
jumper = false;
}
return(myMoveSpot);
}
if (dir == "northwest") {
dir = "northeast";
} else if (dir == "northeast") {
dir = "east";
} else if (dir == "east") {
dir = "southeast";
} else if (dir == "southeast") {
dir = "southwest";
} else if (dir == "southwest") {
dir = "west";
} else if ((dir == "west") && (i != 99)) {
this._x = oldX;
this._y = oldY;
}
i++;
}
return(0);
}
jumper = false;
jumps = 0;
active = false;
numClicks = 0;
currentDivit = _root.getDivit(core);
currentDivit.occupied = true;
Symbol 54 MovieClip [stoneLink] Frame 2
gotoAndStop(color);
Symbol 54 MovieClip [stoneLink] Frame 5
stop();
Instance of Symbol 37 MovieClip [marblegreen] in Symbol 54 MovieClip [stoneLink] Frame 5
//component parameters
onClipEvent (initialize) {
color = "defaultValue";
c = "defaultValue";
r = "defaultValue";
}
Symbol 54 MovieClip [stoneLink] Frame 15
stop();
Instance of Symbol 34 MovieClip [marblered] in Symbol 54 MovieClip [stoneLink] Frame 15
//component parameters
onClipEvent (initialize) {
color = "defaultValue";
c = "defaultValue";
r = "defaultValue";
}
Symbol 54 MovieClip [stoneLink] Frame 25
stop();
Instance of Symbol 31 MovieClip [marbleblue] in Symbol 54 MovieClip [stoneLink] Frame 25
//component parameters
onClipEvent (initialize) {
color = "defaultValue";
c = "defaultValue";
r = "defaultValue";
}
Symbol 54 MovieClip [stoneLink] Frame 35
stop();
Instance of Symbol 42 MovieClip in Symbol 54 MovieClip [stoneLink] Frame 35
//component parameters
onClipEvent (initialize) {
color = "defaultValue";
c = "defaultValue";
r = "defaultValue";
}
Symbol 54 MovieClip [stoneLink] Frame 44
stop();
Instance of Symbol 45 MovieClip in Symbol 54 MovieClip [stoneLink] Frame 44
//component parameters
onClipEvent (initialize) {
color = "defaultValue";
c = "defaultValue";
r = "defaultValue";
}
Symbol 54 MovieClip [stoneLink] Frame 53
stop();
Instance of Symbol 47 MovieClip in Symbol 54 MovieClip [stoneLink] Frame 53
//component parameters
onClipEvent (initialize) {
color = "defaultValue";
c = "defaultValue";
r = "defaultValue";
}
Symbol 54 MovieClip [stoneLink] Frame 61
stop();
Symbol 57 MovieClip [winnerLink] Frame 1
loopsTotal = 61;
loops = 0;
Symbol 57 MovieClip [winnerLink] Frame 2
change = 0;
while (change == 0) {
sn = random(10) + 1;
sl = random(5);
if (sl == 4) {
sl = "c";
}
if (sl == 0) {
sl = "b";
}
if (sl == 1) {
sl = "r";
}
if (sl == 2) {
sl = "g";
}
if (sl == 3) {
sl = "y";
}
if (sl == 5) {
sl = "p";
}
myStone = eval (("_root.board.stones." + sl) + sn);
if (myStone.c.charAt(0) == _root.player.color) {
} else {
myStone.gotoAndStop(_root.player.color);
change = 1;
}
}
loops++;
Symbol 57 MovieClip [winnerLink] Frame 3
if (loops == loopsTotal) {
play();
} else {
gotoAndPlay (2);
}
Symbol 61 MovieClip [divitHilight] Frame 71
this.removeMovieClip();
Symbol 61 MovieClip [divitHilight] Frame 151
this.removeMovieClip();
Symbol 61 MovieClip [divitHilight] Frame 232
this.removeMovieClip();
Symbol 68 MovieClip Frame 1
stop();
Symbol 82 Button
on (release) {
getURL ("http://www.truantduck.com", "td");
}
on (press) {
_root.playSoundLink("plasticClick");
}
Symbol 87 Button
on (release) {
getURL ("cchelp.html", "cchelp");
}
Symbol 89 Button
on (release) {
getURL ("ccscores.html", "ccscores");
}
Symbol 91 Button
on (release) {
quitter.gotoAndPlay("active");
}
Symbol 97 Button
on (release) {
gotoAndStop (1);
getURL ("javascript:self.close()");
}
Symbol 99 Button
on (release) {
gotoAndStop (1);
_parent.gotoAndPlay("ini");
}
Symbol 101 MovieClip Frame 1
stop();
Symbol 101 MovieClip Frame 5
stop();
Symbol 110 MovieClip Frame 1
stop();
Symbol 112 MovieClip Frame 1
function isOccupied() {
return(occupied);
}
function gatherMoves() {
moveArray = new Array();
dirArray = new Array();
j = 0;
while (j < neighbors.length) {
var moveDivit = neighbors[j];
if (_root.findDistance(this, moveDivit) < 49) {
var myDirectionSpot = "undefined";
if (moveDivit.core.hitTest(nes)) {
myDirectionSpot = moveDivit.nes;
dirArray[dirArray.length] = "ne";
}
if (moveDivit.core.hitTest(nws)) {
myDirectionSpot = moveDivit.nws;
dirArray[dirArray.length] = "nw";
}
if (moveDivit.core.hitTest(ses)) {
myDirectionSpot = moveDivit.ses;
dirArray[dirArray.length] = "se";
}
if (moveDivit.core.hitTest(sws)) {
myDirectionSpot = moveDivit.sws;
dirArray[dirArray.length] = "sw";
}
if (moveDivit.core.hitTest(es)) {
myDirectionSpot = moveDivit.es;
dirArray[dirArray.length] = "e";
}
if (moveDivit.core.hitTest(ws)) {
myDirectionSpot = moveDivit.ws;
dirArray[dirArray.length] = "w";
}
if (moveDivit.isOccupied()) {
} else if (moveDivit != null) {
moveArray[moveArray.length] = moveDivit;
}
}
j++;
}
}
function gatherLinks() {
if (neighbors.length == 0) {
findNeighbors();
}
if (linkers.length == 0) {
findLinkers();
}
linkArray = new Array();
linkDirArray = new Array();
if (neighbors[0].occupied) {
if ((linkers[0] != 0) && (linkers[0].occupied == false)) {
linkArray[linkArray.length] = linkers[0];
linkDirArray[linkDirArray.length] = "jne";
}
}
if (neighbors[1].occupied) {
if ((linkers[1] != 0) && (linkers[1].occupied == false)) {
linkArray[linkArray.length] = linkers[1];
linkDirArray[linkDirArray.length] = "je";
}
}
if (neighbors[2].occupied) {
if ((linkers[2] != 0) && (linkers[2].occupied == false)) {
linkArray[linkArray.length] = linkers[2];
linkDirArray[linkDirArray.length] = "jse";
}
}
if (neighbors[3].occupied) {
if ((linkers[3] != 0) && (linkers[3].occupied == false)) {
linkArray[linkArray.length] = linkers[3];
linkDirArray[linkDirArray.length] = "jsw";
}
}
if (neighbors[4].occupied) {
if ((linkers[4] != 0) && (linkers[4].occupied == false)) {
linkArray[linkArray.length] = linkers[4];
linkDirArray[linkDirArray.length] = "jw";
}
}
if (neighbors[5].occupied) {
if ((linkers[5] != 0) && (linkers[5].occupied == false)) {
linkArray[linkArray.length] = linkers[5];
linkDirArray[linkDirArray.length] = "jnw";
}
}
}
function findNeighbors() {
neighbors[0] = 0;
neighbors[1] = 0;
neighbors[2] = 0;
neighbors[3] = 0;
neighbors[4] = 0;
neighbors[5] = 0;
neighbors[0] = _root.getDivit(nes);
neighbors[1] = _root.getDivit(es);
neighbors[2] = _root.getDivit(ses);
neighbors[3] = _root.getDivit(sws);
neighbors[4] = _root.getDivit(ws);
neighbors[5] = _root.getDivit(nws);
}
function findLinkers() {
linkers[0] = 0;
linkers[1] = 0;
linkers[2] = 0;
linkers[3] = 0;
linkers[4] = 0;
linkers[5] = 0;
linkers[0] = _root.getDivit(jne);
linkers[1] = _root.getDivit(je);
linkers[2] = _root.getDivit(jse);
linkers[3] = _root.getDivit(jsw);
linkers[4] = _root.getDivit(jw);
linkers[5] = _root.getDivit(jnw);
}
neighbors = new Array();
linkers = new Array();
occupied = false;
stop();
Symbol 112 MovieClip Frame 2
stop();
Symbol 113 MovieClip Frame 1
function addStones(color) {
if (color == "r") {
layer = 100;
}
if (color == "g") {
layer = 200;
}
if (color == "b") {
layer = 300;
}
if (color == "y") {
layer = 400;
}
if (color == "p") {
layer = 500;
}
if (color == "c") {
layer = 600;
}
c = _root.player.color;
if (c == "r") {
rot = -121;
}
if (c == "g") {
rot = 121;
}
if (c == "c") {
rot = 59;
}
if (c == "p") {
rot = -59;
}
if (c == "y") {
rot = 180;
}
if (c == "b") {
rot = 0;
}
i = 1;
while (i < 11) {
var marker = eval (("c" + color) + i);
attachMovie("stoneLink", color + i, layer + i);
myStone = eval (("_root.board.stones." + color) + i);
myStone.color = color;
myStone._x = marker._x;
myStone._y = marker._y;
myStone._rotation = -1 * rot;
i++;
}
}
topStone = 999;
stop();
Symbol 114 MovieClip Frame 1
function addStones(color) {
if (color == "r") {
layer = 100;
}
if (color == "g") {
layer = 200;
}
if (color == "b") {
layer = 300;
}
if (color == "y") {
layer = 400;
}
if (color == "p") {
layer = 500;
}
if (color == "c") {
layer = 600;
}
c = _root.player.color;
if (c == "r") {
rot = -121;
}
if (c == "g") {
rot = 121;
}
if (c == "c") {
rot = 59;
}
if (c == "p") {
rot = -59;
}
if (c == "y") {
rot = 180;
}
if (c == "b") {
rot = 0;
}
i = 1;
while (i < 11) {
var marker = eval (("c" + color) + i);
attachMovie("stoneLink", color + i, layer + i);
myStone = eval (("_root.board.stones." + color) + i);
myStone.color = color;
myStone._x = marker._x;
myStone._y = marker._y;
myStone._rotation = -1 * rot;
i++;
}
}
topStone = 999;
stop();
Symbol 123 MovieClip Frame 1
function rotateBoard(c) {
if (c == "r") {
rot = -121;
}
if (c == "g") {
rot = 121;
}
if (c == "c") {
rot = 59;
}
if (c == "p") {
rot = -59;
}
if (c == "y") {
rot = 180;
}
if (c == "b") {
rot = 0;
}
_root.board._rotation = rot;
i = 1;
while (i < 123) {
myDivit = eval ("d" + i);
myDivit.base._rotation = -1 * rot;
myStone = eval (c + i);
myStone._rotation = -1 * rot;
i++;
}
}
winners = new Array();
i = 1;
while (i < 123) {
eval ("d" + i).base.gotoAndStop(_root.activeSkin);
i++;
}
Instance of Symbol 112 MovieClip "d1" in Symbol 123 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
r = 1;
c = 7;
}
Instance of Symbol 112 MovieClip "d2" in Symbol 123 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
r = 2;
c = "defaultValue";
}
Instance of Symbol 112 MovieClip "d3" in Symbol 123 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
r = 2;
c = "defaultValue";
}
Instance of Symbol 112 MovieClip "d4" in Symbol 123 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
r = 3;
c = "defaultValue";
}
Instance of Symbol 112 MovieClip "d5" in Symbol 123 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
r = 3;
c = "defaultValue";
}
Instance of Symbol 112 MovieClip "d6" in Symbol 123 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
r = 3;
c = "defaultValue";
}
Instance of Symbol 112 MovieClip "d7" in Symbol 123 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
r = 4;
c = 5;
}
Instance of Symbol 112 MovieClip "d8" in Symbol 123 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
r = 4;
c = "defaultValue";
}
Instance of Symbol 112 MovieClip "d9" in Symbol 123 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
r = 4;
c = "defaultValue";
}
Instance of Symbol 112 MovieClip "d10" in Symbol 123 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
r = 4;
c = "defaultValue";
}
Instance of Symbol 112 MovieClip "d11" in Symbol 123 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
r = "defaultValue";
c = "defaultValue";
}
Instance of Symbol 112 MovieClip "d12" in Symbol 123 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
r = "defaultValue";
c = "defaultValue";
}
Instance of Symbol 112 MovieClip "d13" in Symbol 123 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
r = "defaultValue";
c = "defaultValue";
}
Instance of Symbol 112 MovieClip "d14" in Symbol 123 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
r = "defaultValue";
c = "defaultValue";
}
Instance of Symbol 112 MovieClip "d121" in Symbol 123 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
r = "defaultValue";
c = "defaultValue";
}
Instance of Symbol 112 MovieClip "d15" in Symbol 123 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
r = "defaultValue";
c = "defaultValue";
}
Instance of Symbol 112 MovieClip "d16" in Symbol 123 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
r = "defaultValue";
c = "defaultValue";
}
Instance of Symbol 112 MovieClip "d17" in Symbol 123 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
r = "defaultValue";
c = "defaultValue";
}
Instance of Symbol 112 MovieClip "d18" in Symbol 123 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
r = "defaultValue";
c = "defaultValue";
}
Instance of Symbol 112 MovieClip "d19" in Symbol 123 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
r = "defaultValue";
c = "defaultValue";
}
Instance of Symbol 112 MovieClip "d20" in Symbol 123 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
r = "defaultValue";
c = "defaultValue";
}
Instance of Symbol 112 MovieClip "d21" in Symbol 123 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
r = "defaultValue";
c = "defaultValue";
}
Instance of Symbol 112 MovieClip "d22" in Symbol 123 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
r = "defaultValue";
c = "defaultValue";
}
Instance of Symbol 112 MovieClip "d23" in Symbol 123 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
r = "defaultValue";
c = "defaultValue";
}
Instance of Symbol 112 MovieClip "d24" in Symbol 123 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
r = "defaultValue";
c = "defaultValue";
}
Instance of Symbol 112 MovieClip "d25" in Symbol 123 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
r = "defaultValue";
c = "defaultValue";
}
Instance of Symbol 112 MovieClip "d26" in Symbol 123 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
r = "defaultValue";
c = "defaultValue";
}
Instance of Symbol 112 MovieClip "d27" in Symbol 123 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
r = "defaultValue";
c = "defaultValue";
}
Instance of Symbol 112 MovieClip "d28" in Symbol 123 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
r = "defaultValue";
c = "defaultValue";
}
Instance of Symbol 112 MovieClip "d29" in Symbol 123 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
r = "defaultValue";
c = "defaultValue";
}
Instance of Symbol 112 MovieClip "d30" in Symbol 123 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
r = "defaultValue";
c = "defaultValue";
}
Instance of Symbol 112 MovieClip "d31" in Symbol 123 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
r = "defaultValue";
c = "defaultValue";
}
Instance of Symbol 112 MovieClip "d32" in Symbol 123 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
r = "defaultValue";
c = "defaultValue";
}
Instance of Symbol 112 MovieClip "d33" in Symbol 123 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
r = "defaultValue";
c = "defaultValue";
}
Instance of Symbol 112 MovieClip "d34" in Symbol 123 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
r = "defaultValue";
c = "defaultValue";
}
Instance of Symbol 112 MovieClip "d35" in Symbol 123 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
r = "defaultValue";
c = "defaultValue";
}
Instance of Symbol 112 MovieClip "d36" in Symbol 123 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
r = "defaultValue";
c = "defaultValue";
}
Instance of Symbol 112 MovieClip "d37" in Symbol 123 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
r = "defaultValue";
c = "defaultValue";
}
Instance of Symbol 112 MovieClip "d38" in Symbol 123 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
r = "defaultValue";
c = "defaultValue";
}
Instance of Symbol 112 MovieClip "d39" in Symbol 123 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
r = "defaultValue";
c = "defaultValue";
}
Instance of Symbol 112 MovieClip "d40" in Symbol 123 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
r = "defaultValue";
c = "defaultValue";
}
Instance of Symbol 112 MovieClip "d41" in Symbol 123 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
r = "defaultValue";
c = "defaultValue";
}
Instance of Symbol 112 MovieClip "d42" in Symbol 123 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
r = "defaultValue";
c = "defaultValue";
}
Instance of Symbol 112 MovieClip "d43" in Symbol 123 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
r = "defaultValue";
c = "defaultValue";
}
Instance of Symbol 112 MovieClip "d44" in Symbol 123 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
r = "defaultValue";
c = "defaultValue";
}
Instance of Symbol 112 MovieClip "d45" in Symbol 123 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
r = "defaultValue";
c = "defaultValue";
}
Instance of Symbol 112 MovieClip "d46" in Symbol 123 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
r = "defaultValue";
c = "defaultValue";
}
Instance of Symbol 112 MovieClip "d47" in Symbol 123 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
r = "defaultValue";
c = "defaultValue";
}
Instance of Symbol 112 MovieClip "d48" in Symbol 123 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
r = "defaultValue";
c = "defaultValue";
}
Instance of Symbol 112 MovieClip "d49" in Symbol 123 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
r = "defaultValue";
c = "defaultValue";
}
Instance of Symbol 112 MovieClip "d50" in Symbol 123 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
r = "defaultValue";
c = "defaultValue";
}
Instance of Symbol 112 MovieClip "d51" in Symbol 123 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
r = "defaultValue";
c = "defaultValue";
}
Instance of Symbol 112 MovieClip "d52" in Symbol 123 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
r = "defaultValue";
c = "defaultValue";
}
Instance of Symbol 112 MovieClip "d53" in Symbol 123 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
r = "defaultValue";
c = "defaultValue";
}
Instance of Symbol 112 MovieClip "d54" in Symbol 123 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
r = "defaultValue";
c = "defaultValue";
}
Instance of Symbol 112 MovieClip "d55" in Symbol 123 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
r = "defaultValue";
c = "defaultValue";
}
Instance of Symbol 112 MovieClip "d56" in Symbol 123 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
r = "defaultValue";
c = "defaultValue";
}
Instance of Symbol 112 MovieClip "d57" in Symbol 123 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
r = "defaultValue";
c = "defaultValue";
}
Instance of Symbol 112 MovieClip "d58" in Symbol 123 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
r = "defaultValue";
c = "defaultValue";
}
Instance of Symbol 112 MovieClip "d59" in Symbol 123 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
r = "defaultValue";
c = "defaultValue";
}
Instance of Symbol 112 MovieClip "d60" in Symbol 123 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
r = "defaultValue";
c = "defaultValue";
}
Instance of Symbol 112 MovieClip "d61" in Symbol 123 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
r = "defaultValue";
c = "defaultValue";
}
Instance of Symbol 112 MovieClip "d62" in Symbol 123 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
r = "defaultValue";
c = "defaultValue";
}
Instance of Symbol 112 MovieClip "d63" in Symbol 123 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
r = "defaultValue";
c = "defaultValue";
}
Instance of Symbol 112 MovieClip "d65" in Symbol 123 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
r = "defaultValue";
c = "defaultValue";
}
Instance of Symbol 112 MovieClip "d66" in Symbol 123 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
r = "defaultValue";
c = "defaultValue";
}
Instance of Symbol 112 MovieClip "d67" in Symbol 123 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
r = "defaultValue";
c = "defaultValue";
}
Instance of Symbol 112 MovieClip "d68" in Symbol 123 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
r = "defaultValue";
c = "defaultValue";
}
Instance of Symbol 112 MovieClip "d69" in Symbol 123 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
r = "defaultValue";
c = "defaultValue";
}
Instance of Symbol 112 MovieClip "d70" in Symbol 123 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
r = "defaultValue";
c = "defaultValue";
}
Instance of Symbol 112 MovieClip "d71" in Symbol 123 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
r = "defaultValue";
c = "defaultValue";
}
Instance of Symbol 112 MovieClip "d72" in Symbol 123 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
r = "defaultValue";
c = "defaultValue";
}
Instance of Symbol 112 MovieClip "d73" in Symbol 123 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
r = "defaultValue";
c = "defaultValue";
}
Instance of Symbol 112 MovieClip "d74" in Symbol 123 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
r = "defaultValue";
c = "defaultValue";
}
Instance of Symbol 112 MovieClip "d122" in Symbol 123 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
r = "defaultValue";
c = "defaultValue";
}
Instance of Symbol 112 MovieClip "d75" in Symbol 123 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
r = "defaultValue";
c = "defaultValue";
}
Instance of Symbol 112 MovieClip "d76" in Symbol 123 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
r = "defaultValue";
c = "defaultValue";
}
Instance of Symbol 112 MovieClip "d77" in Symbol 123 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
r = "defaultValue";
c = "defaultValue";
}
Instance of Symbol 112 MovieClip "d78" in Symbol 123 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
r = "defaultValue";
c = "defaultValue";
}
Instance of Symbol 112 MovieClip "d79" in Symbol 123 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
r = "defaultValue";
c = "defaultValue";
}
Instance of Symbol 112 MovieClip "d80" in Symbol 123 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
r = "defaultValue";
c = "defaultValue";
}
Instance of Symbol 112 MovieClip "d81" in Symbol 123 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
r = "defaultValue";
c = "defaultValue";
}
Instance of Symbol 112 MovieClip "d82" in Symbol 123 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
r = "defaultValue";
c = "defaultValue";
}
Instance of Symbol 112 MovieClip "d83" in Symbol 123 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
r = "defaultValue";
c = "defaultValue";
}
Instance of Symbol 112 MovieClip "d84" in Symbol 123 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
r = "defaultValue";
c = "defaultValue";
}
Instance of Symbol 112 MovieClip "d85" in Symbol 123 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
r = "defaultValue";
c = "defaultValue";
}
Instance of Symbol 112 MovieClip "d86" in Symbol 123 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
r = "defaultValue";
c = "defaultValue";
}
Instance of Symbol 112 MovieClip "d87" in Symbol 123 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
r = "defaultValue";
c = "defaultValue";
}
Instance of Symbol 112 MovieClip "d88" in Symbol 123 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
r = "defaultValue";
c = "defaultValue";
}
Instance of Symbol 112 MovieClip "d89" in Symbol 123 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
r = "defaultValue";
c = "defaultValue";
}
Instance of Symbol 112 MovieClip "d90" in Symbol 123 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
r = "defaultValue";
c = "defaultValue";
}
Instance of Symbol 112 MovieClip "d91" in Symbol 123 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
r = "defaultValue";
c = "defaultValue";
}
Instance of Symbol 112 MovieClip "d92" in Symbol 123 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
r = "defaultValue";
c = "defaultValue";
}
Instance of Symbol 112 MovieClip "d93" in Symbol 123 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
r = "defaultValue";
c = "defaultValue";
}
Instance of Symbol 112 MovieClip "d94" in Symbol 123 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
r = "defaultValue";
c = "defaultValue";
}
Instance of Symbol 112 MovieClip "d95" in Symbol 123 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
r = "defaultValue";
c = "defaultValue";
}
Instance of Symbol 112 MovieClip "d96" in Symbol 123 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
r = "defaultValue";
c = "defaultValue";
}
Instance of Symbol 112 MovieClip "d97" in Symbol 123 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
r = "defaultValue";
c = "defaultValue";
}
Instance of Symbol 112 MovieClip "d98" in Symbol 123 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
r = "defaultValue";
c = "defaultValue";
}
Instance of Symbol 112 MovieClip "d99" in Symbol 123 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
r = "defaultValue";
c = "defaultValue";
}
Instance of Symbol 112 MovieClip "d100" in Symbol 123 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
r = "defaultValue";
c = "defaultValue";
}
Instance of Symbol 112 MovieClip "d101" in Symbol 123 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
r = "defaultValue";
c = "defaultValue";
}
Instance of Symbol 112 MovieClip "d102" in Symbol 123 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
r = "defaultValue";
c = "defaultValue";
}
Instance of Symbol 112 MovieClip "d103" in Symbol 123 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
r = "defaultValue";
c = "defaultValue";
}
Instance of Symbol 112 MovieClip "d104" in Symbol 123 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
r = "defaultValue";
c = "defaultValue";
}
Instance of Symbol 112 MovieClip "d105" in Symbol 123 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
r = "defaultValue";
c = "defaultValue";
}
Instance of Symbol 112 MovieClip "d106" in Symbol 123 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
r = "defaultValue";
c = "defaultValue";
}
Instance of Symbol 112 MovieClip "d107" in Symbol 123 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
r = "defaultValue";
c = "defaultValue";
}
Instance of Symbol 112 MovieClip "d108" in Symbol 123 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
r = "defaultValue";
c = "defaultValue";
}
Instance of Symbol 112 MovieClip "d109" in Symbol 123 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
r = "defaultValue";
c = "defaultValue";
}
Instance of Symbol 112 MovieClip "d110" in Symbol 123 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
r = "defaultValue";
c = "defaultValue";
}
Instance of Symbol 112 MovieClip "d111" in Symbol 123 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
r = "defaultValue";
c = "defaultValue";
}
Instance of Symbol 112 MovieClip "d112" in Symbol 123 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
r = "defaultValue";
c = "defaultValue";
}
Instance of Symbol 112 MovieClip "d113" in Symbol 123 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
r = "defaultValue";
c = "defaultValue";
}
Instance of Symbol 112 MovieClip "d114" in Symbol 123 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
r = "defaultValue";
c = "defaultValue";
}
Instance of Symbol 112 MovieClip "d115" in Symbol 123 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
r = "defaultValue";
c = "defaultValue";
}
Instance of Symbol 112 MovieClip "d116" in Symbol 123 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
r = "defaultValue";
c = "defaultValue";
}
Instance of Symbol 112 MovieClip "d117" in Symbol 123 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
r = "defaultValue";
c = "defaultValue";
}
Instance of Symbol 112 MovieClip "d118" in Symbol 123 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
r = "defaultValue";
c = "defaultValue";
}
Instance of Symbol 112 MovieClip "d119" in Symbol 123 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
r = "defaultValue";
c = "defaultValue";
}
Instance of Symbol 112 MovieClip "d120" in Symbol 123 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
r = "defaultValue";
c = "defaultValue";
}
Symbol 123 MovieClip Frame 2
stop();
Symbol 123 MovieClip Frame 6
winb = new Array(d1, d2, d3, d5, d4, d6, d7, d10, d8, d9);
winp = new Array(d22, d21, d34, d20, d45, d33, d19, d55, d44, d32);
winc = new Array(d11, d23, d12, d35, d13, d46, d14, d24, d36, d25);
wing = new Array(d98, d86, d99, d75, d100, d87, d66, d101, d88, d76);
winr = new Array(d110, d109, d97, d108, d85, d107, d122, d96, d95, d84);
winy = new Array(d120, d119, d118, d116, d117, d115, d114, d111, d112, d113);
if (_root.numPlayers == 2) {
gotoAndPlay (19);
}
Symbol 123 MovieClip Frame 7
i = 1;
while (i < 10) {
eval ("d" + i).findNeighbors();
i++;
}
Symbol 123 MovieClip Frame 8
i = 10;
while (i < 20) {
eval ("d" + i).findNeighbors();
i++;
}
Symbol 123 MovieClip Frame 9
i = 20;
while (i < 30) {
eval ("d" + i).findNeighbors();
i++;
}
Symbol 123 MovieClip Frame 10
i = 30;
while (i < 40) {
eval ("d" + i).findNeighbors();
i++;
}
Symbol 123 MovieClip Frame 11
i = 40;
while (i < 50) {
eval ("d" + i).findNeighbors();
i++;
}
Symbol 123 MovieClip Frame 12
i = 50;
while (i < 60) {
eval ("d" + i).findNeighbors();
i++;
}
Symbol 123 MovieClip Frame 13
i = 60;
while (i < 70) {
eval ("d" + i).findNeighbors();
i++;
}
Symbol 123 MovieClip Frame 14
i = 70;
while (i < 80) {
eval ("d" + i).findNeighbors();
i++;
}
Symbol 123 MovieClip Frame 15
i = 80;
while (i < 90) {
eval ("d" + i).findNeighbors();
i++;
}
Symbol 123 MovieClip Frame 16
i = 90;
while (i < 100) {
eval ("d" + i).findNeighbors();
i++;
}
Symbol 123 MovieClip Frame 17
i = 100;
while (i < 110) {
eval ("d" + i).findNeighbors();
i++;
}
Symbol 123 MovieClip Frame 18
i = 110;
while (i < 123) {
eval ("d" + i).findNeighbors();
i++;
}
Symbol 123 MovieClip Frame 19
jg = 0;
while (jg < _root.turnArray.length) {
stones.addStones(_root.turnArray[jg]);
jg++;
}
if (_root.numPlayers > 1) {
rotateBoard(_root.player.color);
}
_root.player.gotoAndStop("ini");
Symbol 123 MovieClip Frame 20
hk = 0;
while (hk < _root.turnArray.length) {
eval ("_root.bot" + _root.turnArray[hk]).gotoAndPlay("boot");
hk++;
}
stop();
Symbol 123 MovieClip Frame 22
stop();
Symbol 123 MovieClip Frame 23
stop();
Symbol 168 Button
on (release) {
name = "";
}
Symbol 169 Button
on (release, keyPress "<Enter>") {
if (sent == false) {
if (((name == "") || (name == " ")) || (name == " ")) {
_parent.name = "HUMAN";
} else {
_parent.name = name;
}
_root.playerName = name;
_parent.submit();
sent = true;
}
if (_root.board.winners.length >= _root.numPlayers) {
_root.gotoAndPlay("gameover");
}
}
Symbol 172 MovieClip Frame 1
name = _parent.name;
sent = false;
stop();
Symbol 173 MovieClip Frame 1
function checkForWin() {
calculateScore();
if ((score == 10) && (hasEtchedScore == false)) {
_root.board.winners[_root.board.winners.length] = color;
finished = true;
hasEtchedScore = true;
place = _root.board.winners.length;
status = _root.finishString(place);
gotoAndPlay (38);
return(true);
}
return(false);
}
function calculateScore() {
score = 0;
i = 0;
while (i < myStones.length) {
j = 0;
while (j < 10) {
if (myStones[i].core.hitTest(winArray[j].core)) {
score++;
}
j++;
}
i++;
}
}
function isScore(checkStoney) {
jjj = 0;
while (jjj < 10) {
if (checkStoney.core.hitTest(winArray[jjj].core)) {
return(1);
}
jjj++;
}
return(0);
}
function submit() {
numplayers = _root.numPlayers;
loadVariables (_root.scriptDir + "ccwritesql.php", "", "POST");
gotoAndStop (54);
}
sound = 1;
ishuman = 1;
move = new Array();
status = "WAITING";
name = _parent.playerName;
stop();
Symbol 173 MovieClip Frame 2
STATUS = "PLAYING";
myTurn = 1;
hasEtchedScore = false;
if (color == "b") {
winArray = _root.board.winb;
}
if (color == "c") {
winArray = _root.board.winc;
}
if (color == "p") {
winArray = _root.board.winp;
}
if (color == "r") {
winArray = _root.board.winr;
}
if (color == "g") {
winArray = _root.board.wing;
}
if (color == "y") {
winArray = _root.board.winy;
}
myStones = new Array();
m = 0;
while (m < 10) {
myStones[m] = eval (("_root.board.stones." + color) + (m + 1));
m++;
}
info.gotoAndStop(color);
eval ("_root.bot" + color)._visible = false;
stop();
Symbol 173 MovieClip Frame 38
play();
Symbol 173 MovieClip Frame 45
stop();
Symbol 173 MovieClip Frame 54
stop();
Symbol 176 Button
on (rollOver) {
attachMovie("simpleStoneLink", "sitStone", 200);
sitStone.gotoAndStop(color);
sitStone._width = 50;
sitStone._height = 50;
if (color == "b") {
}
if (color == "p") {
}
if (color == "r") {
}
if (color == "y") {
}
if (color == "g") {
}
if (color == "c") {
}
}
on (rollOut) {
removeMovieClip("sitStone");
}
on (release, releaseOutside) {
_root.player.color = color;
_root.gotoAndPlay("exitroom");
}
Symbol 178 MovieClip Frame 1
stop();
Instance of Symbol 177 MovieClip in Symbol 178 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
color = "b";
}
Instance of Symbol 177 MovieClip in Symbol 178 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
color = "c";
}
Instance of Symbol 177 MovieClip in Symbol 178 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
color = "p";
}
Instance of Symbol 177 MovieClip in Symbol 178 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
color = "y";
}
Instance of Symbol 177 MovieClip in Symbol 178 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
color = "r";
}
Instance of Symbol 177 MovieClip in Symbol 178 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
color = "g";
}
Symbol 183 Button
on (release) {
gotoAndPlay (2);
}
Symbol 185 MovieClip Frame 1
stop();
Symbol 185 MovieClip Frame 2
stop();
Symbol 186 MovieClip Frame 1
stop();
Instance of Symbol 178 MovieClip "t2" in Symbol 186 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
tn = 2;
}
Symbol 186 MovieClip Frame 2
var urlToGo = "room.php?tick=1";
loadVariables (urlToGo, this, "POST");
play();
Symbol 190 Button
on (release) {
numPlayers = 2;
if (_root.player.color == "b") {
turnArray[0] = "b";
turnArray[1] = "y";
}
if (_root.player.color == "p") {
turnArray[0] = "p";
turnArray[1] = "g";
}
if (_root.player.color == "r") {
turnArray[0] = "r";
turnArray[1] = "c";
}
if (_root.player.color == "y") {
turnArray[0] = "y";
turnArray[1] = "b";
}
if (_root.player.color == "g") {
turnArray[0] = "g";
turnArray[1] = "p";
}
if (_root.player.color == "c") {
turnArray[0] = "c";
turnArray[1] = "r";
}
numPlayers = 2;
gotoAndPlay (24);
}
Symbol 195 Button
on (release) {
numPlayers = 6;
turnArray[0] = "b";
turnArray[1] = "p";
turnArray[2] = "r";
turnArray[3] = "y";
turnArray[4] = "g";
turnArray[5] = "c";
i = 0;
while (i < 6) {
if (_root.player.color == turnArray[i]) {
turn = i;
}
i++;
}
gotoAndPlay (24);
}
Symbol 197 Button
on (release) {
numPlayers = 4;
if (_root.player.color == "b") {
turnArray[0] = "b";
turnArray[1] = "r";
turnArray[2] = "y";
turnArray[3] = "c";
}
if (_root.player.color == "p") {
turnArray[0] = "p";
turnArray[1] = "y";
turnArray[2] = "g";
turnArray[3] = "b";
}
if (_root.player.color == "r") {
turnArray[0] = "r";
turnArray[1] = "g";
turnArray[2] = "c";
turnArray[3] = "p";
}
if (_root.player.color == "y") {
turnArray[0] = "y";
turnArray[1] = "c";
turnArray[2] = "b";
turnArray[3] = "r";
}
if (_root.player.color == "g") {
turnArray[0] = "g";
turnArray[1] = "b";
turnArray[2] = "p";
turnArray[3] = "y";
}
if (_root.player.color == "c") {
turnArray[0] = "c";
turnArray[1] = "p";
turnArray[2] = "r";
turnArray[3] = "g";
}
gotoAndPlay (24);
}
Symbol 199 Button
on (release) {
numPlayers = 3;
if (_root.player.color == "b") {
turnArray[0] = "b";
turnArray[1] = "r";
turnArray[2] = "g";
}
if (_root.player.color == "p") {
turnArray[0] = "p";
turnArray[1] = "y";
turnArray[2] = "c";
}
if (_root.player.color == "r") {
turnArray[0] = "r";
turnArray[1] = "g";
turnArray[2] = "b";
}
if (_root.player.color == "y") {
turnArray[0] = "y";
turnArray[1] = "c";
turnArray[2] = "p";
}
if (_root.player.color == "g") {
turnArray[0] = "g";
turnArray[1] = "b";
turnArray[2] = "r";
}
if (_root.player.color == "c") {
turnArray[0] = "c";
turnArray[1] = "p";
turnArray[2] = "y";
}
gotoAndPlay (24);
}
Symbol 212 MovieClip Frame 60
stop();
Symbol 212 MovieClip Frame 70
gotoAndPlay (60);
Symbol 212 MovieClip Frame 98
stop();
Symbol 227 MovieClip Frame 1
gotoAndPlay(_parent._parent.color);
Symbol 227 MovieClip Frame 2
play();
Symbol 227 MovieClip Frame 9
stop();
Symbol 227 MovieClip Frame 10
play();
Symbol 227 MovieClip Frame 19
stop();
Symbol 227 MovieClip Frame 20
play();
Symbol 227 MovieClip Frame 29
stop();
Symbol 227 MovieClip Frame 30
play();
Symbol 227 MovieClip Frame 39
stop();
Symbol 227 MovieClip Frame 40
play();
Symbol 227 MovieClip Frame 50
stop();
Symbol 227 MovieClip Frame 51
play();
Symbol 227 MovieClip Frame 60
stop();
Symbol 227 MovieClip Frame 61
stop();
Symbol 228 MovieClip Frame 33
jumps = 0;
stop();
Symbol 228 MovieClip Frame 34
stop();
Symbol 228 MovieClip Frame 58
jumps--;
if (jumps == 0) {
play();
} else {
gotoAndPlay (37);
}
Symbol 228 MovieClip Frame 63
gotoAndStop (33);
Symbol 228 MovieClip Frame 142
face.ear1.gotoAndPlay("retract");
face.ear2.gotoAndPlay("retract");
stop();
Symbol 230 MovieClip Frame 1
function move() {
gotoAndPlay (32);
}
function findMoves(checkStone) {
myDivit = getStoneDivit(checkStone);
var stoneLinks = new Array();
myDivit.gatherLinks();
var botLinkArray = new Array();
u = 0;
while (u < myDivit.linkArray.length) {
allMoves[allMoves.length] = new moveObject(checkStone, myDivit, myDivit.linkArray[u], myDivit.linkDirArray[u]);
stoneLinks[stoneLinks.length] = new moveObject(checkStone, myDivit, myDivit.linkArray[u], myDivit.linkDirArray[u]);
u++;
}
comboLoop = 0;
while (comboLoop < maxCombo) {
m = 0;
while (m < stoneLinks.length) {
stoneLinks[m].to.gatherLinks();
g = 0;
while (g < stoneLinks[m].to.linkArray.length) {
var tempLength = stoneLinks.length;
var known = false;
jj = 0;
while (jj < tempLength) {
if (stoneLinks[jj].to._name == stoneLinks[m].to.linkArray[g]._name) {
known = true;
jj = tempLength + 1;
}
jj++;
}
if (!known) {
allMoves[allMoves.length] = new moveObject(checkStone, myDivit, stoneLinks[m].to.linkArray[g], (stoneLinks[m].dir + ".") + stoneLinks[m].to.linkDirArray[g]);
var qq = allMoves[allMoves.length - 1];
stoneLinks[stoneLinks.length] = new moveObject(checkStone, myDivit, stoneLinks[m].to.linkArray[g], (stoneLinks[m].dir + ".") + stoneLinks[m].to.linkDirArray[g]);
}
g++;
}
m++;
}
comboLoop++;
}
myDivit.gatherMoves();
ux = 0;
while (ux < myDivit.moveArray.length) {
var myDirection = 0;
if (myDivit.moveArray[ux].core.hitTest(myDivit.nes)) {
myDirection = "ne";
}
if (myDivit.moveArray[ux].core.hitTest(myDivit.nws)) {
myDirection = "nw";
}
if (myDivit.moveArray[ux].core.hitTest(myDivit.ses)) {
myDirection = "se";
}
if (myDivit.moveArray[ux].core.hitTest(myDivit.sws)) {
myDirection = "sw";
}
if (myDivit.moveArray[ux].core.hitTest(myDivit.es)) {
myDirection = "e";
}
if (myDivit.moveArray[ux].core.hitTest(myDivit.ws)) {
myDirection = "w";
}
allMoves[allMoves.length] = new moveObject(checkStone, myDivit, myDivit.moveArray[ux], myDirection);
ux++;
}
}
function getStoneDivit(stone) {
i = 1;
while (i < 123) {
var thisDivit = eval ("_root.board.d" + i);
if (stone.hitTest(thisDivit.core)) {
return(thisDivit);
}
i++;
}
return(false);
}
function moveObject(theStone, theDivit, theMove, theDirection) {
this.stone = theStone;
this.from = theDivit;
this.to = theMove;
this.dir = theDirection;
this.distance = _root.findDistance(theStone, theMove);
}
function getTarget(stoned) {
if (score > 8) {
thoughtfulness = 0;
intellegence = 1;
foolishness = 0;
arrogance = 10;
flare = 10;
roo = 0;
while (roo < 10) {
var someStone = _root.getStone(winArray[roo].core);
if (someStone.color == color) {
} else {
return(winArray[roo]);
}
roo++;
}
} else {
return(winArray[0]);
}
roo = 0;
while (roo < 11) {
tempDistance = _root.findDistance(stoned, winArray[roo]);
if (stoned.hitTest(winArray[roo].core)) {
return(winArray[0]);
}
if (tempDistance < closestDistance) {
returnValue = roo;
}
roo++;
}
return(winArray[returnValue]);
}
status = "???";
stop();
Symbol 230 MovieClip Frame 4
status = "BOOTING UP...";
myStones = new Array();
m = 0;
while (m < 10) {
myStones[m] = eval (("_root.board.stones." + color) + (m + 1));
m++;
}
score = 0;
finished = false;
ishuman = 0;
maxCombo = 9;
intellegence = 10;
foolishness = 5;
arrogance = 5;
flare = 5;
thoughtfulness = 5;
safety = 5;
winArray = new Array();
if (color == "b") {
name = "DROID BLUE";
foolishness = 3;
flare = 1;
thoughtfulness = 7;
arrogance = 2;
winArray = _root.board.winb;
}
if (color == "r") {
name = "DROID RED";
foolishness = 1;
arrogance = 10;
flare = 10;
thoughtfulness = 2;
maxCombo = 10;
safety = 4;
winArray = _root.board.winr;
}
if (color == "g") {
name = "DROID GREEN";
foolishness = 2;
arrogance = 2;
winArray = _root.board.wing;
}
if (color == "y") {
name = "DROID YELLOW";
intellegence = 8;
flare = 3;
arrogance = 7;
winArray = _root.board.winy;
}
if (color == "p") {
name = "DROID PINK";
intellegence = 8;
foolishness = 10;
arrogance = 0.001;
thoughtfulness = 10;
safety = 10;
winArray = _root.board.winp;
}
if (color == "c") {
name = "DROID CYAN";
winArray = _root.board.winc;
}
targetDivit = 0;
stonesHome = 0;
offLimits = new Array();
if ((color == "b") || (color == "y")) {
offLimits = offLimits.concat(_root.board.wing, _root.board.winr, _root.board.winp, _root.board.winc);
}
if ((color == "p") || (color == "g")) {
offLimits = offLimits.concat(_root.board.winb, _root.board.winr, _root.board.winy, _root.board.winc);
}
if ((color == "r") || (color == "c")) {
offLimits = offLimits.concat(_root.board.wing, _root.board.winy, _root.board.winp, _root.board.winb);
}
Symbol 230 MovieClip Frame 23
stop();
Symbol 230 MovieClip Frame 27
status = "WAITING";
stop();
Symbol 230 MovieClip Frame 32
var allMoves = new Array();
_root.player.info.arrow._visible = false;
sprite.face.ear1.play();
sprite.face.ear2.play();
status = "THINKING";
Symbol 230 MovieClip Frame 33
findMoves(myStones[0]);
Symbol 230 MovieClip Frame 34
findMoves(myStones[1]);
Symbol 230 MovieClip Frame 35
findMoves(myStones[2]);
Symbol 230 MovieClip Frame 36
findMoves(myStones[3]);
Symbol 230 MovieClip Frame 37
findMoves(myStones[4]);
Symbol 230 MovieClip Frame 38
findMoves(myStones[5]);
Symbol 230 MovieClip Frame 39
findMoves(myStones[6]);
Symbol 230 MovieClip Frame 40
findMoves(myStones[7]);
Symbol 230 MovieClip Frame 41
findMoves(myStones[8]);
Symbol 230 MovieClip Frame 42
findMoves(myStones[9]);
Symbol 230 MovieClip Frame 43
var bestScore = -9999;
var tempScore = 0;
var bestMoveNumber = 0;
hh = 0;
while (hh < allMoves.length) {
var tempArray = new Array();
tempArray = allMoves[hh].dir.split(".");
totalBounce = tempArray.length;
allMoves[hh].totalBounce = totalBounce;
totalDistance = _root.findDistance(allMoves[hh].to, allMoves[hh].from);
targetDivit = getTarget(allMoves[hh].stone);
stragglerFactor = _root.findDistance(allMoves[hh].from, winArray[0]);
targetDistanceChange = _root.findDistance(allMoves[hh].from, targetDivit) - _root.findDistance(allMoves[hh].to, targetDivit);
tempScore = (((targetDistanceChange * intellegence) + ((totalBounce * flare) * 1)) + (totalDistance * (arrogance * 0.05))) + ((Math.random() * (foolishness * 1)) + ((stragglerFactor * thoughtfulness) / 5));
if (_root.findDistance(allMoves[hh].to, winArray[0]) > (_root.findDistance(allMoves[hh].from, winArray[0]) - 16)) {
tempScore = tempScore - 200;
}
if ((_root.findDistance(allMoves[hh].to, winArray[0]) - 20) > _root.findDistance(allMoves[hh].from, winArray[0])) {
tempScore = tempScore - 700;
}
yyx = 0;
while (yyx < offLimits.length) {
if (allMoves[hh].to._name == offLimits[yyx]._name) {
tempScore = tempScore - 9999;
}
yyx++;
}
allMoves[hh].fromScore = false;
allMoves[hh].score = false;
uy = 0;
while (uy < 11) {
if (allMoves[hh].from._name == winArray[uy]._name) {
tempScore = tempScore - 200;
allMoves[hh].fromScore = true;
}
if (allMoves[hh].to._name == winArray[uy]._name) {
if (allMoves[hh].fromScore == false) {
tempScore = tempScore + (2 * (12 - uy));
}
allMoves[hh].score = true;
}
uy++;
}
if ((score == 9) && (allMoves[hh].fromScore == false)) {
kjg = 0;
while (kjg < winArray.length) {
if (allMoves[hh].to._name == winArray[kjg]._name) {
tempScore = tempScore + 99999;
}
kjg++;
}
}
if (tempScore > bestScore) {
bestScore = tempScore;
bestMoveNumber = hh;
}
hh++;
}
var bestMove = new moveObject(allMoves[bestMoveNumber].stone, allMoves[bestMoveNumber].from, allMoves[bestMoveNumber].to, allMoves[bestMoveNumber].dir, allMoves[bestMoveNumber].link);
var bestMove = allMoves[bestMoveNumber];
bestMove.fromScore = allMoves[bestMoveNumber].fromScore;
bestMove.score = allMoves[bestMoveNumber].score;
bestMove.totalBounce = allMoves[bestMoveNumber].totalBounce;
var moveInstructions = new Array();
moveInstructions = bestMove.dir.split(".");
with (bestMove.stone) {
attachMovie("autoMoverLink", "autoMover", 55);
autoMover.moveArray = new Array();
autoMover.moveArray = moveInstructions;
}
bestMove.from.occupied = false;
bestMove.to.occupied = true;
if ((bestMove.fromScore == false) && (bestMove.score == true)) {
score++;
}
if ((bestMove.fromScore == true) && (bestMove.score == false)) {
score--;
}
if (score > 9) {
gotoAndStop (56);
}
sprite.face.ear1.gotoAndStop("think");
sprite.face.ear2.gotoAndStop("think");
sprite.gotoandPlay("jump");
moves++;
status = "MOVING";
Symbol 230 MovieClip Frame 44
sprite.gotoandPlay("jump");
sprite.jumps = bestMove.totalBounce;
if (bestMove.totalBounce > combomax) {
combomax = bestMove.totalBounce;
}
Symbol 230 MovieClip Frame 53
gotoAndStop (27);
Symbol 230 MovieClip Frame 56
_root.board.winners[_root.board.winners.length] = color;
_root.board.gotoAndPlay("gameOver");
finished = true;
place = _root.board.winners.length;
sprite.gotoAndPlay("finished");
status = _root.finishString(place);
numplayers = _root.numPlayers;
loadVariablesNum (_root.scriptDir + "ccwritesql.php", 0, "POST");
stop();
Symbol 230 MovieClip Frame 61
stop();
Symbol 233 Button
on (release) {
activeSkin = 2;
_root.bg.gotoAndStop(2);
i = 1;
while (i < 123) {
eval ("_root.board.d" + i).base.gotoAndStop(2);
i++;
}
var colorLetter = "b";
i = 1;
while (i < 11) {
eval (("_root.board.stones." + colorLetter) + i).glass._visible = false;
if ((i == 10) && (colorLetter == "b")) {
i = 0;
colorLetter = "p";
}
if ((i == 10) && (colorLetter == "p")) {
i = 0;
colorLetter = "r";
}
if ((i == 10) && (colorLetter == "r")) {
i = 0;
colorLetter = "y";
}
if ((i == 10) && (colorLetter == "y")) {
i = 0;
colorLetter = "g";
}
if ((i == 10) && (colorLetter == "g")) {
i = 0;
colorLetter = "c";
}
i++;
}
}
Symbol 236 Button
on (release) {
activeSkin = 1;
_root.bg.gotoAndStop(1);
i = 1;
while (i < 123) {
eval ("_root.board.d" + i).base.gotoAndStop(1);
i++;
}
var colorLetter = "b";
i = 1;
while (i < 11) {
eval (("_root.board.stones." + colorLetter) + i).glass._visible = true;
if ((i == 10) && (colorLetter == "b")) {
i = 0;
colorLetter = "p";
}
if ((i == 10) && (colorLetter == "p")) {
i = 0;
colorLetter = "r";
}
if ((i == 10) && (colorLetter == "r")) {
i = 0;
colorLetter = "y";
}
if ((i == 10) && (colorLetter == "y")) {
i = 0;
colorLetter = "g";
}
if ((i == 10) && (colorLetter == "g")) {
i = 0;
colorLetter = "c";
}
i++;
}
}
Symbol 241 Button
on (release) {
activeSkin = 3;
_root.bg.gotoAndStop(3);
i = 1;
while (i < 123) {
eval ("_root.board.d" + i).base.gotoAndStop(3);
i++;
}
var colorLetter = "b";
i = 1;
while (i < 11) {
eval (("_root.board.stones." + colorLetter) + i).glass._visible = false;
if ((i == 10) && (colorLetter == "b")) {
i = 0;
colorLetter = "p";
}
if ((i == 10) && (colorLetter == "p")) {
i = 0;
colorLetter = "r";
}
if ((i == 10) && (colorLetter == "r")) {
i = 0;
colorLetter = "y";
}
if ((i == 10) && (colorLetter == "y")) {
i = 0;
colorLetter = "g";
}
if ((i == 10) && (colorLetter == "g")) {
i = 0;
colorLetter = "c";
}
i++;
}
}
Symbol 244 Button
on (release) {
_parent.gotoAndPlay("ini");
}