Frame 1
stop();
downloadUrl = "http://v2.arkadium.com/affiliates/request.aspx?referrer=" + _url;
Instance of Symbol 221 MovieClip in Frame 1
onClipEvent (enterFrame) {
numTotal = _parent.getBytesTotal();
numLoaded = _parent.getBytesLoaded();
numPercent = Math.floor((numLoaded * 100) / numTotal);
if (numPercent < 10) {
strL = "0" + numPercent;
} else {
strL = numPercent;
}
_parent.strLoaded = strL + "%";
if (numPercent >= 99) {
_parent.play();
}
}
Frame 2
stop();
Frame 3
function timeBonus() {
changeScore(1);
}
function changeScore(value) {
numScore = numScore + value;
}
function standAlone() {
randomSeed = Math.floor(Math.random() * 32000);
objTimer.setMyTimer(gameTotalTime);
}
function initGame() {
numLastCol = 0;
arrMove.splice(0);
createDeck();
numScore = 500;
objSelected = null;
blnGameOver = false;
blnState = true;
}
function startGame() {
arrDrag.splice(0);
showColumns();
objTimer.startMyTimer();
blnGameStarted = true;
}
function setColumns() {
arrColumns.splice(0);
var i = 0;
while (i < 18) {
attachMovie("mcPlace", "col" + i, 500 + i);
arrColumns[i] = eval ("col" + i);
arrColumns[i].column = i;
if (i < 10) {
arrColumns[i].x = numRowX + (i * numRowXShift);
arrColumns[i].y = numRowY;
} else {
arrColumns[i].x = numHomeX + (((i - 10) * numCardWidth) * 0.4);
arrColumns[i].y = numDeckY;
}
arrColumns[i]._visible = false;
arrColumns[i]._x = arrColumns[i].x;
arrColumns[i]._y = arrColumns[i].y;
arrColumns[i].startDepth = (i * 100) + 1000;
arrColumns[i].arrCards = new Array();
i++;
}
arrHitArea.splice(0);
var i = 0;
while (i < 10) {
arrHitArea[i] = eval ("col" + i);
i++;
}
arrDecks.splice(0);
var i = 0;
while (i < 5) {
attachMovie("mcDeck", "deck" + i, 300 + i);
arrDecks[i] = eval ("deck" + i);
arrDecks[i]._visible = false;
arrDecks[i].active = false;
arrDecks[i].posX = numDeckX + ((i * numCardWidth) * 0.4);
arrDecks[i].posY = numDeckY;
arrDecks[i]._x = numDeckX;
arrDecks[i]._y = numDeckY;
arrDecks[i].step = 0;
arrDecks[i].arrCards = new Array();
i++;
}
arrDecks.push(mcDeck);
}
function alignColumn(pColumn) {
var colLength = pColumn.arrCards.length;
if (colLength == 0) {
return(undefined);
}
var objLastCard = pColumn.arrCards[colLength - 1];
var numBack = 0;
var i = 0;
while (i < colLength) {
if (pColumn.arrCards[i].back) {
numBack++;
}
i++;
}
if (numBack == colLength) {
return(undefined);
}
var cardShift = (((numMaxColHeight - (numBack * numCloseYShift)) - objLastCard._height) / ((colLength - numBack) - 1));
cardShift = ((numOpenYShift < cardShift) ? (numOpenYShift) : (Math.floor(cardShift)));
var numShift = pColumn.y;
var i = 0;
while (i < colLength) {
if (pColumn.arrCards[i].back) {
pColumn.arrCards[i].posY = numShift;
pColumn.arrCards[i]._y = pColumn.arrCards[i].posY;
numShift = numShift + numCloseYShift;
} else {
pColumn.arrCards[i].posY = numShift;
pColumn.arrCards[i]._y = pColumn.arrCards[i].posY;
numShift = numShift + cardShift;
}
i++;
}
}
function moveToColumn(pCard, pColumn) {
removeFromColumn(pCard, pCard.column);
var column = pColumn.column;
var numCard = (arrColumns[column].arrCards.length - 1);
var lastCard = arrColumns[column].arrCards[numCard];
arrColumns[column].arrCards.push(pCard);
pCard.column = column;
pCard.posX = arrColumns[column].x;
if (column < 10) {
if (numCard >= 0) {
if (lastCard.back) {
pCard.posY = lastCard.posY + numCloseYShift;
} else {
pCard.posY = lastCard.posY + numOpenYShift;
}
} else {
pCard.posY = arrColumns[column].y;
}
} else {
pCard.posY = arrColumns[column].y;
}
pCard.depth = (arrColumns[pColumn.column].startDepth + numCard) + 1;
pCard.swapDepths(numMoveDepth + pCard.depth);
arrMove.push(pCard);
}
function removeFromColumn(pCard, numColumn) {
if ((numColumn < 0) || (9 < numColumn)) {
return(undefined);
}
var objColumn = arrColumns[numColumn];
var i = (objColumn.arrCards.length - 1);
while (i >= 0) {
if (objColumn.arrCards[i] == pCard) {
objColumn.arrCards.splice(i, 1);
if (0 < objColumn.arrCards.length) {
var lastCard = objColumn.arrCards[objColumn.arrCards.length - 1];
lastCard.active = true;
flipCard(lastCard);
}
return(undefined);
}
i--;
}
}
function updateHitArea(a_column) {
if (a_column >= arrHitArea.length) {
return(undefined);
}
if (0 < arrColumns[a_column].arrCards.length) {
var objLastCard = arrColumns[a_column].arrCards[arrColumns[a_column].arrCards.length - 1];
if (!objLastCard.back) {
arrHitArea[a_column] = objLastCard;
}
} else {
arrHitArea[a_column] = eval ("col" + a_column);
}
}
function checkHit(pCard) {
if (!blnState) {
return(undefined);
}
var i = 0;
while (i < arrHitArea.length) {
if ((i != pCard.column) && (arrHitArea[i].hitTest(pCard))) {
if (checkMoveEnable(pCard, arrColumns[i])) {
return(i);
}
}
i++;
}
return(-1);
}
function checkMoveEnable(pCard, pColumn) {
blnValid = false;
if (pColumn.arrCards.length == 0) {
blnValid = true;
} else {
var objLastCard = pColumn.arrCards[pColumn.arrCards.length - 1];
if ((!objLastCard.back) && ((objLastCard.value - pCard.value) == 1)) {
blnValid = true;
}
}
return(blnValid);
}
function myMouseMove() {
if (!blnState) {
return(undefined);
}
if (0 < arrDrag.length) {
blnDrag = true;
var numLength = arrDrag.length;
var i = 0;
while (i < numLength) {
arrDrag[i]._x = _xmouse + xShift;
arrDrag[i]._y = (_ymouse + yShift) + (numOpenYShift * i);
i++;
}
} else {
blnDrag = false;
}
}
function createDeck() {
var i = 0;
while (i < arrCards.length) {
arrCards[i].removeMovieClip();
i++;
}
arrCards.splice(0);
var numSuits = 0;
var numCopy = 0;
var _local1 = 1;
switch (numLevel) {
case _local1 :
numSuits = 1;
numCopy = 8;
break;
case 2 :
numSuits = 2;
numCopy = 4;
break;
case 3 :
numSuits = 4;
numCopy = 2;
}
var clipName = "";
var cardName = "";
var numDepth = 0;
var objCard = new Object();
var c = 0;
while (c < numCopy) {
var j = 0;
while (j < numSuits) {
var i = 1;
while (13 >= i) {
clipName = ((arrSuit[j] + i) + "_") + c;
cardName = arrSuit[j] + i;
attachMovie("Card", clipName, numDepth);
objCard = eval (clipName);
objCard.attachMovie(cardName, "_c", 1);
objCard.attachMovie("Back", "_b", 2);
objCard.color = (((arrSuit[j] == "d") || (arrSuit[j] == "h")) ? "red" : "black");
objCard.name = clipName;
objCard.value = i;
objCard.suit = arrSuit[j];
objCard.active = false;
objCard.depth = numDepth;
objCard.placement = "deck";
objCard._x = numDeckX;
objCard._y = numDeckY;
objCard.posX = numDeckX;
objCard.posY = numDeckY;
objCard.column = -1;
objCard.back = true;
objCard.step = 0;
objCard._visible = false;
objCard._c._alpha = 0;
arrCards.push(objCard);
numDepth++;
i++;
}
j++;
}
c++;
}
}
function shuffleDeck() {
var saveCard;
var numRandom;
mcDeck._visible = true;
arrDeck.splice(0);
arrDeck = arrCards.slice(0);
var i = 0;
while (i < arrCards.length) {
numRandom = getRandomValue(arrDeck.length);
swapCard(i, numRandom);
i++;
}
var numStart = 0;
var numEnd = 54;
var i = (arrDecks.length - 1);
while (i >= 0) {
arrDecks[i].arrCards = arrDeck.slice(numStart, numEnd);
numStart = numEnd;
numEnd = numEnd + 10;
i--;
}
sndShuffle.start(0, 1);
arrDeck.splice(0);
dealNextCard(arrDecks[arrDecks.length - 1]);
}
function swapCard(n1, n2) {
var objSave = new Object();
objSave = arrDeck[n1];
arrDeck[n1] = arrDeck[n2];
arrDeck[n2] = objSave;
arrDeck[n1].swapDepths(arrDeck[n1].depth);
arrDeck[n2].swapDepths(arrDeck[n2].depth);
}
function dealNextCard(pDeck) {
if (0 < pDeck.arrCards.length) {
pDeck.arrCards[0]._x = pDeck._x;
pDeck.arrCards[0]._y = pDeck._y;
pDeck.arrCards[0]._visible = true;
if (arrHitArea.length >= pDeck.arrCards.length) {
turnCard(pDeck.arrCards[0]);
}
moveToColumn(pDeck.arrCards[0], arrColumns[numLastCol]);
pDeck.arrCards.splice(0, 1);
numLastCol = ((numLastCol >= (arrHitArea.length - 1)) ? 0 : (numLastCol + 1));
pDeck.gotoAndPlay("deal");
} else {
pDeck.gotoAndPlay("stop");
blnDealed = true;
removeDeck(pDeck);
var i = 0;
while (i < arrHitArea.length) {
updateColumn(arrColumns[i]);
updateHitArea(i);
checkFullSuit(i);
i++;
}
}
}
function updateColumn(pColumn) {
var blnActive = true;
alignColumn(pColumn);
var j = (pColumn.arrCards.length - 1);
while (j >= 0) {
pColumn.arrCards[j].active = blnActive;
if (0 < j) {
if (pColumn.arrCards[j - 1].back) {
return;
}
if (blnActive && (((pColumn.arrCards[j - 1].value - pColumn.arrCards[j].value) != 1) || (pColumn.arrCards[j - 1].suit != pColumn.arrCards[j].suit))) {
blnActive = false;
}
}
j--;
}
}
function turnCard(pCard) {
if (pCard.back) {
pCard.back = false;
pCard._c._alpha = 100;
pCard._b._alpha = 0;
}
}
function movingCards() {
if (arrMove.length == 0) {
return(undefined);
}
var i = (arrMove.length - 1);
while (i >= 0) {
if (arrMove[i].step < (numStepCnt - 1)) {
arrMove[i].step++;
arrMove[i]._x = arrMove[i]._x + ((arrMove[i].posX - arrMove[i]._x) / (numStepCnt - arrMove[i].step));
arrMove[i]._y = arrMove[i]._y + ((arrMove[i].posY - arrMove[i]._y) / (numStepCnt - arrMove[i].step));
} else {
arrMove[i]._x = arrMove[i].posX;
arrMove[i]._y = arrMove[i].posY;
arrMove[i].swapDepths(arrMove[i].depth);
arrMove[i].step = 0;
if (arrMove[i].column >= 10) {
arrMove[i].active = false;
if (arrMove[i].value < 13) {
arrMove[i]._visible = false;
}
}
arrMove.splice(i, 1);
}
i--;
}
}
function flipCard(pCard) {
if (pCard.back) {
turnCard(pCard);
updateHitArea(pCard.column);
}
}
function getCardIndex(pCard) {
var i = 0;
while (i < arrColumns[pCard.column].arrCards.length) {
if (arrColumns[pCard.column].arrCards[i] == pCard) {
return(i);
}
i++;
}
return(-1);
}
function releaseDeck(pDeck) {
if (((blnState && (!blnGameOver)) && (blnDealed)) && (pDeck.active)) {
var i = 0;
while (i < arrHitArea.length) {
if (arrColumns[i].arrCards.length == 0) {
showMessage("You are not allowed to deal a new row while there are any empty slots.");
return(undefined);
}
i++;
}
blnDealed = false;
numLastCol = 0;
dealNextCard(pDeck);
}
}
function releaseCard(pCard) {
if ((!blnState) || (!pCard.active)) {
return(undefined);
}
var myColor;
if ((pCard == arrDrag[0]) && (blnDrag)) {
var newColumn = checkHit(pCard);
var oldColumn = arrDrag[0].column;
if (newColumn >= 0) {
changeScore(-1);
numMoves++;
var strCardNames = "";
var strTimer = objTimer.getMyTimer();
var i = 0;
while (i < arrDrag.length) {
if (strCardNames != "") {
strCardNames = strCardNames + ",";
}
strCardNames = strCardNames + arrDrag[i].name;
arrDrag[i].step = numStepCnt - 1;
myColor = new Color(arrDrag[i]);
myColor.setTransform(objNormalClr);
moveToColumn(arrDrag[i], arrColumns[newColumn]);
i++;
}
sndCardMove.start();
updateColumn(arrColumns[oldColumn]);
updateHitArea(oldColumn);
if (arrDrag[arrDrag.length - 1].value == 1) {
checkFullSuit(newColumn);
}
updateColumn(arrColumns[newColumn]);
updateHitArea(newColumn);
} else {
var i = 0;
while (i < arrDrag.length) {
arrDrag[i].step = Math.floor(numStepCnt / 2);
myColor = new Color(arrDrag[i]);
myColor.setTransform(objNormalClr);
arrMove.push(arrDrag[i]);
i++;
}
}
} else {
var i = 0;
while (i < arrDrag.length) {
arrDrag[i].step = Math.floor(numStepCnt / 2);
myColor = new Color(arrDrag[i]);
myColor.setTransform(objNormalClr);
arrMove.push(arrDrag[i]);
i++;
}
}
arrDrag.splice(0);
blnDrag = false;
}
function pressCard(pCard) {
if ((!blnState) || (!pCard.active)) {
return(undefined);
}
var cardColumn = pCard.column;
var myColor;
if (arrMove.length == 0) {
transColors(pCard);
xShift = pCard._x - _xmouse;
yShift = pCard._y - _ymouse;
var objCard;
var cardIndex = getCardIndex(pCard);
if ((cardIndex >= 0) && ((arrColumns[cardColumn].arrCards.length - 1) >= cardIndex)) {
var i = cardIndex;
while (i < arrColumns[cardColumn].arrCards.length) {
objCard = arrColumns[cardColumn].arrCards[i];
myColor = new Color(objCard);
myColor.setTransform(objDarkClr);
arrDrag.push(objCard);
objCard.swapDepths(numDragDepth + objCard.depth);
i++;
}
}
}
}
function checkFullSuit(a_column) {
var objColumn = arrColumns[a_column];
var numLast = (objColumn.arrCards.length - 1);
var objCard = objColumn.arrCards[numLast];
if ((numLast < 12) || (objCard.value != 1)) {
return(undefined);
}
var i = (numLast - 1);
while (i >= 0) {
if ((objColumn.arrCards[i].back || ((objColumn.arrCards[i].value - objCard.value) != 1)) || (objColumn.arrCards[i].suit != objCard.suit)) {
return(undefined);
}
if (objColumn.arrCards[i].value == 13) {
changeScore(100);
mcMoveHome.numNextHome = getFreeHomeColumn();
var strCardNames = "";
var strTimer = objTimer.getMyTimer();
var j = ((numLast - 13) + 1);
while (numLast >= j) {
if (strCardNames != "") {
strCardNames = strCardNames + ",";
}
strCardNames = strCardNames + objColumn.arrCards[j].name;
j++;
}
var j = numLast;
while (j >= i) {
objColumn.arrCards[j].column = -1;
mcMoveHome.arrCards.push(objColumn.arrCards[j]);
objColumn.arrCards.splice(j, 1);
j--;
}
if (0 < objColumn.arrCards.length) {
flipCard(objColumn.arrCards[objColumn.arrCards.length - 1]);
}
updateColumn(objColumn);
updateHitArea(a_column);
sndCardMove.start(0, 1);
return(undefined);
}
objCard = objColumn.arrCards[i];
i--;
}
}
function getFreeHomeColumn() {
var i = 10;
while (i < arrColumns.length) {
if (arrColumns[i].arrCards.length == 0) {
return(i);
}
i++;
}
return(-1);
}
function checkGameOver() {
var numCardInCol = 0;
var i = 0;
while (i < arrHitArea.length) {
numCardInCol = numCardInCol + arrColumns[i].arrCards.length;
i++;
}
if (0 < numCardInCol) {
if (numCardInCol < arrHitArea.length) {
gameOver();
}
return(undefined);
}
var i = 10;
while (i < arrColumns.length) {
if (arrColumns[i].arrCards.length < 13) {
return(undefined);
}
i++;
}
blnState = false;
objTimer.blnBonus = true;
}
function removeDeck(pDeck) {
if (pDeck == mcDeck) {
var i = (arrDecks.length - 2);
while (i >= 0) {
arrDecks[i]._visible = true;
arrMove.push(arrDecks[i]);
i--;
}
startGame();
mcDeck._visible = false;
}
var i = (arrDecks.length - 1);
while (i >= 0) {
if (arrDecks[i] == pDeck) {
pDeck.removeMovieClip();
arrDecks.splice(i, 1);
if (0 < arrDecks.length) {
arrDecks[arrDecks.length - 1].active = true;
}
return;
}
i--;
}
}
function moveNextCardHome() {
moveToColumn(mcMoveHome.arrCards[0], arrColumns[mcMoveHome.numNextHome]);
mcMoveHome.arrCards.splice(0, 1);
if (mcMoveHome.arrCards.length == 0) {
mcMoveHome.gotoAndStop(1);
if (mcMoveHome.strSend != "") {
sendXML(mcMoveHome.strSend);
mcMoveHome.strSend = "";
}
checkGameOver();
} else {
mcMoveHome.gotoAndPlay("move");
}
}
function showColumns() {
var i = 0;
while (i < 10) {
arrColumns[i]._visible = true;
i++;
}
}
function pressButton() {
sndClick.start();
}
function setSound(flag) {
if (flag) {
sndGlobalSound.setVolume(100);
sndClick.start();
mcSound.gotoAndStop("off");
} else {
sndClick.start();
sndGlobalSound.setVolume(0);
mcSound.gotoAndStop("on");
}
}
function playWarning() {
sndTimer.start();
}
function showMessage(a_message) {
if ((a_message != null) && (a_message != undefined)) {
mcInfo.play();
strMessage = a_message;
}
}
function pressResign() {
if (blnState && (blnGameStarted)) {
sndClick.start();
mcAreYouSure.gotoAndStop("resign");
mcAreYouSure._visible = true;
}
}
function pressResignYes() {
if (blnState) {
sndClick.start();
mcAreYouSure._visible = false;
gameOver();
}
}
function gameOver() {
objTimer.stopMyTimer();
blnState = false;
blnGameOver = true;
play();
}
function removeAllCards() {
var i = 0;
while (i < 18) {
removeMovieClip("col" + i);
i++;
}
var i = 0;
while (i < arrCards.length) {
arrCards[i].removeMovieClip();
i++;
}
var i = 0;
while (i < arrDecks.length) {
removeMovieClip(arrDecks[i]);
i++;
}
}
function getRandomValue(max) {
randomSeed = (randomSeed * A) % 2147352576;
var Result = (Math.floor((randomSeed * max) / C) % max);
return(Result);
}
var A = 3423313;
var C = 2435;
myTimer = function (a_name) {
this.timerName = a_name;
this.numStart = 0;
this.numRemaining = 0;
this.numLastTic = 0;
this.numDelta = 0;
this.numLastTask = 0;
this.blnStop = true;
this.blnWarning = false;
this.blnBonus = false;
};
myTimer.prototype.timerTic = function () {
if (this.blnStop) {
return(undefined);
}
var newTime = getTimer();
if (this.blnBonus) {
this.numRemaining = this.numRemaining - 1;
this.timeBonus();
} else {
this.numRemaining = this.numRemaining - ((newTime - this.numLastTic) / 1000);
this.numLastTic = newTime;
}
this.showTime();
if (((Math.floor(this.numRemaining) == 10) && (!this.blnWarning)) && (!this.blnBonus)) {
this.blnWarning = true;
this.warningSound();
} else if (0 >= this.numRemaining) {
this.numRemaining = 0;
this.blnBonus = false;
this.stopMyTimer();
this.showTime();
this.timesUp();
}
if (((!this.blnBonus) && (0 < this.numDelta)) && ((this.numLastTask - this.numRemaining) >= this.numDelta)) {
this.numLastTask = this.numRemaining;
this.doTask();
}
};
myTimer.prototype.showTime = function () {
var curTime = Math.round(this.numRemaining);
var minutes = Math.floor(curTime / 60);
minutes = ((minutes < 10) ? ("0" + String(minutes)) : (String(minutes)));
var seconds = (curTime % 60);
seconds = ((seconds < 10) ? ("0" + String(seconds)) : (String(seconds)));
eval (this.timerName).strTime = (minutes + ":") + seconds;
eval ("_parent." + this.timerName).strTime = (minutes + ":") + seconds;
};
myTimer.prototype.startMyTimer = function () {
if (0 < this.numRemaining) {
this.numLastTic = getTimer();
this.blnStop = false;
this.numLastTask = this.numRemaining;
this.showTime();
eval (this.timerName).gotoAndPlay("play");
}
};
myTimer.prototype.startMyTimerAt = function (a_time) {
if (0 < a_time) {
this.numLastTic = getTimer();
this.numRemaining = a_time;
this.blnStop = false;
this.numLastTask = this.numRemaining;
this.showTime();
eval (this.timerName).gotoAndPlay("play");
}
};
myTimer.prototype.stopMyTimer = function () {
this.blnStop = true;
eval (this.timerName).gotoAndStop("stop");
};
myTimer.prototype.getMyTimer = function () {
return(Math.floor(this.numRemaining * 10) / 10);
};
myTimer.prototype.setMyTimer = function (a_time) {
this.numRemaining = a_time;
this.showTime();
};
myTimer.prototype.startTask = function () {
this.numLastTask = this.numRemaining;
};
myTimer.prototype.warningSound = function () {
};
myTimer.prototype.timesUp = function () {
};
myTimer.prototype.doTask = function () {
};
myTimer.prototype.timeBonus = function () {
};
fscommand ("showmenu", "false");
XML.prototype.ignoreWhite = true;
var strMessage = "";
var blnState = false;
var blnGameStarted = false;
var blnStandAlone = true;
var blnGameOver = false;
var objPlayer = new Object();
var strDebug = "";
var strVersion = "v 2.130sa";
Instance of Symbol 261 MovieClip "mcMoveHome" in Frame 3
onClipEvent (load) {
arrCards = new Array();
numNextHome = 10;
strSend = "";
}
Instance of Symbol 287 MovieClip "mcConsole" in Frame 3
onClipEvent (mouseMove) {
if (_parent.blnState) {
_parent.myMouseMove();
}
}
onClipEvent (enterFrame) {
if (0 < _parent.mcMoveHome.arrCards.length) {
_parent.moveNextCardHome();
}
_parent.movingCards();
}
Instance of Symbol 290 MovieClip "mcScoreBoard" in Frame 3
onClipEvent (load) {
blnLoaded = false;
sendXML = "";
}
Frame 4
var numGameWidth = 680;
var numGameHeight = 480;
var gameTotalTime = 600;
var numScore = 0;
var randomSeed = 1;
var numLevel = 1;
var numCardHeight = 96;
var numCardWidth = 62;
var numRowX = 37;
var numRowY = 225;
var numRowXShift = (numCardWidth + 5);
var numRowYShift = 25;
var numCloseYShift = 10;
var numOpenYShift = 25;
var numMaxColHeight = 300;
var numDeckX = mcDeck._x;
var numDeckY = mcDeck._y;
var numHomeX = 250;
var numHomeY = numDeckY;
var numLastCol;
var arrCards = new Array();
var arrSuit = new Array("s", "h", "c", "d");
var arrDeck = new Array();
var arrDecks = new Array();
var arrColumns = new Array(18);
var arrHitArea = new Array(10);
var arrMove = new Array();
var arrDrag = new Array();
var numStepCnt = 6;
var numMoveDepth = 5000;
var numDragDepth = 7000;
var blnDrag = false;
var xShift = 0;
var yShift = 0;
var blnDealed = false;
var objSelected = new Object();
var objTimer = new myTimer("mcTimer");
mcTimer.objTimer = objTimer;
objTimer.warningSound = function () {
_parent.soundTimer();
};
objTimer.timesUp = function () {
_parent.gameOver();
};
objTimer.timeBonus = function () {
_parent.timeBonus();
};
sndGlobalSound = new Sound();
sndTimer = new Sound("mcConsole");
sndTimer.attachSound("timer");
sndShuffle = new Sound("mcConsole");
sndShuffle.attachSound("startgame");
sndClick = new Sound("mcConsole");
sndClick.attachSound("click");
sndCardFlip = new Sound("mcConsole");
sndCardFlip.attachSound("CardFlip");
sndCardMove = new Sound("mcConsole");
sndCardMove.attachSound("move");
objDarkClr = new Object();
objDarkClr.ra = 100;
objDarkClr.rb = -40;
objDarkClr.ga = 100;
objDarkClr.gb = -40;
objDarkClr.ba = 100;
objDarkClr.bb = -40;
objDarkClr.aa = 100;
objDarkClr.ab = 0;
objNormalClr = new Object();
objNormalClr.ra = 100;
objNormalClr.rb = 0;
objNormalClr.ga = 100;
objNormalClr.gb = 0;
objNormalClr.ba = 100;
objNormalClr.bb = 0;
objNormalClr.aa = 100;
objNormalClr.ab = 0;
setColumns();
standAlone();
Frame 6
var numCountDown;
var startCountDown = getTimer();
Frame 10
numCountDown = 5 - Math.floor((getTimer() - startCountDown) / 1000);
if (0 < numCountDown) {
countDown = "0" + String(numCountDown);
} else {
countDown = "00";
}
Frame 14
if (0 < numCountDown) {
gotoAndPlay (10);
}
Frame 25
stop();
mcHelp.swapDepths(numDragDepth - 1);
if (mcAreYouSure == undefined) {
attachMovie("areyousure", "mcAreYouSure", 99002);
mcAreYouSure._x = 340.1;
mcAreYouSure._y = 240;
mcAreYouSure._visible = false;
}
Frame 26
stop();
initGame();
shuffleDeck();
Frame 28
function playAgain() {
gotoAndPlay (4);
numMoves = 0;
}
stop();
removeAllCards();
mcHelp.removeMovieClip();
Symbol 13 MovieClip [mcGameOver] Frame 75
stop();
Symbol 17 Button
on (release) {
_parent.pressResignYes();
}
Symbol 20 Button
on (release) {
if (_parent.blnState) {
_visible = false;
_parent.pressResignNo();
}
}
Symbol 22 MovieClip [areyousure] Frame 1
stop();
Symbol 24 Button
on (press) {
_parent.pressCard(this);
}
on (release, releaseOutside) {
_parent.releaseCard(this);
}
Symbol 25 MovieClip [Card] Frame 1
stop();
Symbol 28 MovieClip [s13] Frame 1
stop();
Symbol 31 MovieClip [s12] Frame 1
stop();
Symbol 34 MovieClip [s11] Frame 1
stop();
Symbol 37 MovieClip [s10] Frame 1
stop();
Symbol 40 MovieClip [s9] Frame 1
stop();
Symbol 43 MovieClip [s8] Frame 1
stop();
Symbol 46 MovieClip [s7] Frame 1
stop();
Symbol 49 MovieClip [s6] Frame 1
stop();
Symbol 52 MovieClip [s5] Frame 1
stop();
Symbol 55 MovieClip [s4] Frame 1
stop();
Symbol 58 MovieClip [s3] Frame 1
stop();
Symbol 61 MovieClip [s2] Frame 1
stop();
Symbol 64 MovieClip [s1] Frame 1
stop();
Symbol 67 MovieClip [c13] Frame 1
stop();
Symbol 70 MovieClip [c12] Frame 1
stop();
Symbol 73 MovieClip [c11] Frame 1
stop();
Symbol 76 MovieClip [c10] Frame 1
stop();
Symbol 79 MovieClip [c9] Frame 1
stop();
Symbol 82 MovieClip [c8] Frame 1
stop();
Symbol 85 MovieClip [c7] Frame 1
stop();
Symbol 88 MovieClip [c6] Frame 1
stop();
Symbol 91 MovieClip [c5] Frame 1
stop();
Symbol 94 MovieClip [c4] Frame 1
stop();
Symbol 97 MovieClip [c3] Frame 1
stop();
Symbol 100 MovieClip [c2] Frame 1
stop();
Symbol 103 MovieClip [c1] Frame 1
stop();
Symbol 106 MovieClip [h13] Frame 1
stop();
Symbol 109 MovieClip [h12] Frame 1
stop();
Symbol 112 MovieClip [h11] Frame 1
stop();
Symbol 115 MovieClip [h10] Frame 1
stop();
Symbol 118 MovieClip [h9] Frame 1
stop();
Symbol 121 MovieClip [h8] Frame 1
stop();
Symbol 124 MovieClip [h7] Frame 1
stop();
Symbol 127 MovieClip [h6] Frame 1
stop();
Symbol 130 MovieClip [h5] Frame 1
stop();
Symbol 133 MovieClip [h4] Frame 1
stop();
Symbol 136 MovieClip [h3] Frame 1
stop();
Symbol 139 MovieClip [h2] Frame 1
stop();
Symbol 142 MovieClip [h1] Frame 1
stop();
Symbol 145 MovieClip [d13] Frame 1
stop();
Symbol 148 MovieClip [d12] Frame 1
stop();
Symbol 151 MovieClip [d11] Frame 1
stop();
Symbol 154 MovieClip [d10] Frame 1
stop();
Symbol 157 MovieClip [d9] Frame 1
stop();
Symbol 160 MovieClip [d8] Frame 1
stop();
Symbol 163 MovieClip [d7] Frame 1
stop();
Symbol 166 MovieClip [d6] Frame 1
stop();
Symbol 169 MovieClip [d5] Frame 1
stop();
Symbol 172 MovieClip [d4] Frame 1
stop();
Symbol 175 MovieClip [d3] Frame 1
stop();
Symbol 178 MovieClip [d2] Frame 1
stop();
Symbol 181 MovieClip [d1] Frame 1
stop();
Symbol 190 Button
on (release) {
getURL (_root.downloadUrl, "_blank");
}
Symbol 192 Button
on (rollOver) {
gotoAndPlay (2);
}
Symbol 195 Button
on (rollOver) {
gotoAndPlay (6);
}
Symbol 196 Button
on (release) {
_root.playAgain();
}
Symbol 197 Button
on (release) {
getURL (_root.downloadUrl, "_blank");
}
Symbol 198 MovieClip Frame 1
stop();
Symbol 198 MovieClip Frame 5
stop();
Symbol 198 MovieClip Frame 10
stop();
Symbol 201 MovieClip Frame 135
stop();
Symbol 211 MovieClip Frame 250
stop();
Symbol 213 MovieClip [EndGameClip] Frame 251
stop();
Symbol 215 Button
on (release) {
_parent.releaseDeck(this);
}
Symbol 217 MovieClip [mcDeck] Frame 1
stop();
Symbol 217 MovieClip [mcDeck] Frame 2
_parent.dealNextCard(this);
Symbol 217 MovieClip [mcDeck] Frame 5
gotoAndPlay (2);
Symbol 255 MovieClip Frame 120
stop();
_root.play();
Symbol 261 MovieClip Frame 1
stop();
Symbol 261 MovieClip Frame 8
if (this.arrCards.length == 0) {
gotoAndStop (1);
} else {
_parent.moveNextCardHome();
}
Symbol 267 Button
on (release, releaseOutside) {
if (_currentframe == 1) {
play();
}
}
Symbol 272 Button
on (release, releaseOutside) {
_parent.pressButton();
play();
}
Symbol 277 Button
on (press) {
this.pressDown = true;
}
on (release, releaseOutside) {
this.pressDown = false;
}
Symbol 280 Button
on (press) {
this.pressUp = true;
}
on (release, releaseOutside) {
this.pressUp = false;
}
Symbol 283 Button
on (press) {
startDrag (this, false, 0, _parent.minSliderY, 0, _parent.maxSliderY);
}
on (release, releaseOutside) {
stopDrag();
}
Symbol 286 MovieClip Frame 1
stop();
Symbol 286 MovieClip Frame 15
stop();
strRules = " Build 8 sequences down in suit within the tableau (from King to Ace).\n Top cards of tableau piles are available to play. Build tableau piles down regardless of suit (from King to Ace). Groups of cards in sequence of the same suit may be moved as a unit.\n When any of tableaus are empty you can fill space with any card or group of cards.\n When you have made all the available plays on the board, click the draw pile to deal one card on each tableau pile.";
Instance of Symbol 285 MovieClip "mcScrollBar" in Symbol 286 MovieClip Frame 15
onClipEvent (load) {
var pressDown = false;
var pressUp = false;
var time = 0;
var scrollDelay = 400;
var numStep = 5;
var scrollHeight = 80;
var minSliderY = mcSlider._y;
var maxSliderY = ((minSliderY + scrollHeight) - mcSlider._height);
var oldPosition = mcSlider._y;
}
onClipEvent (enterFrame) {
if (this.pressUp) {
mcSlider._y = (((mcSlider._y - numStep) < minSliderY) ? (minSliderY) : (mcSlider._y - numStep));
} else if (this.pressDown) {
mcSlider._y = ((maxSliderY < (mcSlider._y + numStep)) ? (maxSliderY) : (mcSlider._y + numStep));
}
if (oldPosition != mcSlider._y) {
_parent.strRules.scroll = 1 + Math.ceil((mcSlider._y - minSliderY) / (scrollHeight / _parent.strRules.maxscroll));
oldPosition = mcSlider._y;
}
}
Symbol 286 MovieClip Frame 29
gotoAndStop (1);
Symbol 287 MovieClip Frame 1
stop();
Symbol 287 MovieClip Frame 2
_parent.receiveXML();
gotoAndStop (1);
Symbol 290 MovieClip Frame 1
stop();
Symbol 290 MovieClip Frame 2
play();
loadMovieNum ("scoreboard.swf", 1);
Symbol 290 MovieClip Frame 3
play();
_level1._visible = false;
Symbol 290 MovieClip Frame 7
if (_level1.getBytesLoaded() >= _level1.getBytesTotal()) {
_parent.scoreboardLoaded();
gotoAndStop (1);
} else {
gotoAndPlay (3);
}
Symbol 290 MovieClip Frame 8
if (blnLoaded && (sendXML != "")) {
_level1.receiveXML(sendXML);
sendXML = "";
_level1._visible = true;
}
gotoAndStop (1);
Symbol 301 MovieClip Frame 1
stop();
Symbol 301 MovieClip Frame 2
play();
Symbol 301 MovieClip Frame 3
objTimer.timerTic();
gotoAndPlay (2);
Symbol 304 Button
on (release) {
_parent.pressResign();
}
Symbol 308 Button
on (release) {
_parent.setSound(false);
}
Symbol 311 Button
on (release) {
_parent.setSound(true);
}
Symbol 312 MovieClip Frame 1
stop();
Symbol 312 MovieClip Frame 2
stop();
Symbol 314 MovieClip Frame 1
stop();
Symbol 314 MovieClip Frame 90
_parent.strMessage = "";
gotoAndStop (1);
Symbol 328 MovieClip Frame 12
stop();
Symbol 328 MovieClip Frame 17
stop();
Symbol 333 Button
on (release) {
numLevel = 1;
play();
}
Symbol 335 Button
on (release) {
numLevel = 2;
play();
}
Symbol 336 Button
on (release) {
numLevel = 3;
play();
}