Frame 1
function chooseGameEndProcedure() {
if (tKey == undefined) {
tKey = "sjri5jf85jdor560";
}
gameEndSubmitUrl = "http://freeplay.gamedek.com/gameend.aspx";
if (params == undefined) {
} else {
decryptParams(params);
crypto = 2;
}
}
function t_fLoadGameEnd() {
mcResign.removeMovieClip();
mcGameOver.removeMovieClip();
if (mcGameEnd != undefined) {
mcGameEnd.removeMovieClip();
}
endContainer.createEmptyMovieClip("mcGameEnd", 100);
endContainer.createEmptyMovieClip("mcGameEndBack", 99);
with (endContainer.mcGameEndBack) {
var backColor = 0;
beginFill(backColor, 100);
lineStyle(1, backColor, 100);
moveTo(0, 0);
lineTo(g_numGameWidth, 0);
lineTo(g_numGameWidth, g_numGameHeight);
lineTo(0, g_numGameHeight);
lineTo(0, 0);
endFill();
}
if (freeplayid != undefined) {
downloadURL = downloadURL + affiliateId;
}
var endUrlArray = new Array();
endUrlArray = endURL.split(".");
var subString = endUrlArray[endUrlArray.length - 1];
if ((subString == "aspx") || (subString == "html")) {
} else {
endContainer.mcGameEnd;
endContainer.playAgain = playAgain;
}
}
function postGameLog() {
if (gameLogEnabled == 1) {
var _local1 = new LoadVars();
var _local2 = TEAEncrypt((("freeplayid=" + freeplayid) + "&gameLog=") + gameLog, tKey);
_local1.params = _local2;
gameLog = "";
}
}
function addToLog(myAddition) {
if (gameLogEnabled == 1) {
gameLog = gameLog + myAddition;
}
}
function trc(theString) {
trace((theString + ": ") + eval (theString));
}
function TEAEncrypt(src, key) {
var _local2 = charsToLongs(strToChars(src));
var k = charsToLongs(strToChars(key));
var n = _local2.length;
if (n == 0) {
return("");
}
if (n == 1) {
_local2[n++] = 0;
}
var _local3 = _local2[n - 1];
var y = _local2[0];
var delta = 2654435769;
var max32 = 4294967295;
var mx;
var e;
var q = Math.floor(6 + (52 / n));
var sum = 0;
var sum2 = 0;
while ((q--) > 0) {
sum = sum + delta;
sum = sum >>> 0;
e = (sum >>> 2) & 3;
var _local1 = 0;
while (_local1 < (n - 1)) {
y = _local2[_local1 + 1];
mx = (((_local3 >>> 5) ^ (y << 2)) + ((y >>> 3) ^ (_local3 << 4))) ^ ((sum ^ y) + (k[(_local1 & 3) ^ e] ^ _local3));
mx = mx >>> 0;
_local2[_local1] = _local2[_local1] + mx;
_local2[_local1] = _local2[_local1] >>> 0;
_local3 = _local2[_local1];
_local1++;
}
y = _local2[0];
mx = (((_local3 >>> 5) ^ (y << 2)) + ((y >>> 3) ^ (_local3 << 4))) ^ ((sum ^ y) + (k[(_local1 & 3) ^ e] ^ _local3));
mx = mx >>> 0;
_local2[n - 1] = _local2[n - 1] + mx;
_local2[n - 1] = _local2[n - 1] >>> 0;
_local3 = _local2[n - 1];
}
return(charsToHex(longsToChars(_local2)));
}
function TEADecrypt(src, key) {
var v = charsToLongs(hexToChars(src));
var k = charsToLongs(strToChars(key));
var n = v.length;
if (n == 0) {
return("");
}
var _local2 = v[n - 1];
var _local3 = v[0];
var delta = 2654435769;
var mx;
var e;
var q = Math.floor(6 + (52 / n));
var sum = (q * delta);
while (sum != 0) {
e = (sum >>> 2) & 3;
var _local1 = n - 1;
while (_local1 > 0) {
_local2 = v[_local1 - 1];
mx = (((_local2 >>> 5) ^ (_local3 << 2)) + ((_local3 >>> 3) ^ (_local2 << 4))) ^ ((sum ^ _local3) + (k[(_local1 & 3) ^ e] ^ _local2));
_local3 = (v[_local1] = v[_local1] - mx);
_local1--;
}
_local2 = v[n - 1];
mx = (((_local2 >>> 5) ^ (_local3 << 2)) + ((_local3 >>> 3) ^ (_local2 << 4))) ^ ((sum ^ _local3) + (k[(_local1 & 3) ^ e] ^ _local2));
_local3 = (v[0] = v[0] - mx);
sum = sum - delta;
}
return(charsToStr(longsToChars(v)));
}
function charsToLongs(chars) {
var _local2 = chars;
var _local3 = new Array(Math.ceil(_local2.length / 4));
var _local1 = 0;
while (_local1 < _local3.length) {
_local3[_local1] = ((_local2[_local1 * 4] + (_local2[(_local1 * 4) + 1] << 8)) + (_local2[(_local1 * 4) + 2] << 16)) + (_local2[(_local1 * 4) + 3] << 24);
_local1++;
}
return(_local3);
}
function longsToChars(longs) {
var _local2 = longs;
var _local3 = new Array();
var _local1 = 0;
while (_local1 < _local2.length) {
_local3.push(_local2[_local1] & 255, (_local2[_local1] >>> 8) & 255, (_local2[_local1] >>> 16) & 255, (_local2[_local1] >>> 24) & 255);
_local1++;
}
return(_local3);
}
function charsToHex(chars) {
var _local2 = chars;
var result = new String("");
var _local3 = new Array("0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "a", "b", "c", "d", "e", "f");
var _local1 = 0;
while (_local1 < _local2.length) {
result = result + (_local3[_local2[_local1] >> 4] + _local3[_local2[_local1] & 15]);
_local1++;
}
return(result);
}
function hexToChars(hex) {
var _local2 = hex;
var _local3 = new Array();
var _local1 = ((_local2.substr(0, 2) == "0x") ? 2 : 0);
while (_local1 < _local2.length) {
_local3.push(parseInt(_local2.substr(_local1, 2), 16));
_local1 = _local1 + 2;
}
return(_local3);
}
function charsToStr(chars) {
var _local2 = chars;
var _local3 = new String("");
var _local1 = 0;
while (_local1 < _local2.length) {
_local3 = _local3 + String.fromCharCode(_local2[_local1]);
_local1++;
}
return(_local3);
}
function strToChars(str) {
var _local2 = str;
var _local3 = new Array();
var _local1 = 0;
while (_local1 < _local2.length) {
_local3.push(_local2.charCodeAt(_local1));
_local1++;
}
return(_local3);
}
function decryptParams(myParams) {
decPar = TEADecrypt(myParams, tKey);
arrayOfVars = new Array();
arrayOfVars = decPar.split("&");
count = 0;
while (count < arrayOfVars.length) {
varHolder = new Array();
varHolder = arrayOfVars[count].split("=");
Set(varHolder[0], varHolder[1]);
count++;
}
}
stop();
System.security;
System.security;
var crypto = 0;
var gameLog = "";
myVariables = new LoadVars();
myVariables.onLoad = function (success) {
if (success) {
crypto = 1;
_root.decryptParams(this.params);
} else {
crypto = 0;
}
};
_root.xmlGameEnd = new XML();
_root.xmlGameEnd.onLoad = function (success) {
var _local1 = _root;
if (success) {
_local1.decryptParams(this.firstChild.firstChild.nodeValue);
_local1.endURL = _local1.gameEndUrl;
_local1.t_fLoadGameEnd();
delete this.onLoad;
}
};
var result_lv = new LoadVars();
result_lv.onLoad = function (success) {
if (success) {
trace("whatAmI" + this);
} else {
trace("Error receiving from server.");
}
};
chooseGameEndProcedure();
_global.ipb_get_gname = function () {
var _loc4 = _root._url;
var _loc5 = "";
var _loc2 = "";
var _loc6 = (_loc4.lastIndexOf("\\") + 1);
if ((_loc6 == -1) || (_loc6 == 0)) {
_loc6 = _loc4.lastIndexOf("/") + 1;
}
var _loc3 = _loc6;
var _loc7 = String(_loc4).length;
while (_loc3 < String(_loc4).length) {
_loc2 = _loc4.charAt(_loc3);
if (_loc2 == ".") {
break;
}
_loc5 = _loc5 + _loc2;
_loc3++;
}
return(_loc5);
};
ipb_gname = _global.ipb_get_gname();
xx = new LoadVars();
xx.onLoad = function (success) {
if (success) {
_global.ipb_scoreVar = this.scoreVar;
}
};
fname = ((("arcade/gamedata/" + ipb_gname) + "/") + ipb_gname) + ".txt";
xx.load(fname);
Instance of Symbol 170 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
Frame 3
stop();
var gameTimer;
var numScore;
var randomSeed = new Array();
gameTotalTime = 120;
numScore = 0;
randomSeed = [201, 202, 203, 204, 205, 206, 207, 208, 209, 210];
avatar = "./avatar.jpg";
play();
Frame 4
function loadEnd() {
blnLoad = true;
}
var numCountDown;
Instance of Symbol 196 MovieClip "mcConsole" in Frame 4
onClipEvent (enterFrame) {
_parent.movingCards();
}
Instance of Symbol 234 MovieClip "mcHelp" in Frame 4
onClipEvent (load) {
this.swapDepths(98000);
}
Frame 8
function leadZero(a_num) {
var _local1 = a_num;
if (typeof(_local1) != "number") {
return("");
}
return(((_local1 < 10) ? "0" : "") + String(_local1));
}
numCountDown = -Math.floor(getTimer() / 1000);
if (numCountDown > 0) {
countDown = leadZero(numCountDown);
} else {
countDown = leadZero(0);
}
Frame 17
if (numCountDown > 0) {
gotoAndPlay ("countDown");
} else {
countDown = "00";
}
Frame 31
function getRandomValue(max) {
numRandomSeed = (numRandomSeed * A) % 2147352576;
var _local1 = (Math.floor((numRandomSeed * max) / C) % max);
return(_local1);
}
function createDeck() {
var i = 0;
while (i < arrCards.length) {
arrCards[i].removeMovieClip();
i++;
}
arrCards.splice(0);
var n = 0;
var clipName = "";
var i = 1;
while (i <= 13) {
var j = 0;
while (j < arrSuit.length) {
clipName = arrSuit[j] + i;
attachMovie("Card", clipName, n);
arrCards[n] = eval (clipName);
arrCards[n].attachMovie(clipName, "_c", 1);
arrCards[n].colour = (((arrSuit[j] == "d") || (arrSuit[j] == "h")) ? "red" : "black");
arrCards[n].value = i;
arrCards[n].active = false;
arrCards[n].depth = 0;
arrCards[n].placement = "deck";
arrCards[n]._x = numDeckX;
arrCards[n]._y = numDeckY;
arrCards[n].posX = numDeckX;
arrCards[n].posY = numDeckY;
arrCards[n].column = null;
arrCards[n].step = 0;
n++;
j++;
}
i++;
}
}
function shuffleDeck() {
var _local3;
var _local2;
mcDeck._visible = true;
arrDeck.splice(0);
arrDeck = arrCards.slice(0);
var _local1 = 0;
while (_local1 < arrCards.length) {
_local3 = arrDeck[_local1];
_local2 = getRandomValue(arrDeck.length);
arrDeck[_local1] = arrDeck[_local2];
arrDeck[_local2] = _local3;
arrDeck[_local1].swapDepths(_local1);
arrDeck[_local1].depth = _local1;
arrDeck[_local2].swapDepths(_local2);
arrDeck[_local2].depth = _local2;
_local1++;
}
dealNextCard();
}
function dealNextCard() {
if (numNextCard < 35) {
var _local3 = Math.floor(numNextCard / 7);
var _local2 = (numNextCard % 7);
arrRows[_local2][_local3] = arrDeck[0];
arrDeck[0].posX = numRowX + (_local2 * numRowXShift);
arrDeck[0].posY = numRowY + (_local3 * numRowYShift);
arrDeck[0].placement = "rows";
arrDeck[0].column = _local2;
if (_local3 == 4) {
arrDeck[0].active = true;
}
arrDeck[0]._visible = true;
arrDeck[0].swapDepths(numMoveDepth + arrDeck[0].depth);
arrMove.push(arrDeck[0]);
arrDeck.splice(0, 1);
numNextCard++;
mcDeck.gotoAndPlay("deal");
} else {
var _local1 = 0;
while (_local1 < arrDeck.length) {
arrDeck[_local1].placement = "deck";
_local1++;
}
arrDeck[arrDeck.length - 1]._visible = true;
wasteCard(arrDeck[arrDeck.length - 1]);
arrDeck.splice(arrDeck.length - 1, 1);
sndCardFlip.start();
mcDeck.gotoAndPlay("dealed");
numCardInDeck = arrDeck.length;
mcTimer.gotoAndPlay(1);
}
}
function checkValid(pCard1, pCard2) {
var _local1 = pCard2;
var _local2 = pCard1;
if (_local1.value == 13) {
return(false);
}
if ((_local1.value == 1) && (_local2.value != 2)) {
return(false);
}
if ((Math.abs(_local2.value - _local1.value) == 1) || (Math.abs(_local2.value - _local1.value) == 12)) {
return(true);
}
return(false);
}
function releaseCard(pCard) {
var _local1 = pCard;
if (_local1.active) {
if (_local1.placement == "rows") {
if (checkValid(_local1, arrWaste[arrWaste.length - 1])) {
wasteCard(_local1);
arrRows[_local1.column][arrRows[_local1.column].length - 2].active = true;
arrRows[_local1.column].splice(arrRows[_local1.column].length - 1, 1);
changeScore(-1);
sndCardMove.start();
numCardCnt++;
checkNextStep();
}
}
}
}
function releaseDeck() {
numCardCnt = 0;
var _local1 = arrDeck[arrDeck.length - 1];
_local1._visible = true;
wasteCard(_local1);
arrDeck.splice(arrDeck.length - 1, 1);
if (arrDeck.length == 0) {
mcDeck._visible = false;
}
numCardInDeck = arrDeck.length;
numCardInDeck = ((numCardInDeck == 0) ? "" : (numCardInDeck));
sndCardFlip.start(0, 1);
checkNextStep();
}
function wasteCard(pCard) {
var _local2 = pCard;
_local2.posY = numWasteY;
_local2.posX = numWasteX + (arrWaste.length * numWasteOpenShift);
arrWaste[arrWaste.length - 1].active = false;
arrWaste.push(_local2);
_local2.placement = "waste";
var _local1 = (arrWaste.length - 1);
arrWaste[_local1].depth = ((_local1 == 0) ? 100 : (arrWaste[_local1 - 1].depth + 1));
arrWaste[_local1].swapDepths(numMoveDepth + arrWaste[_local1].depth);
arrMove.push(_local2);
}
function checkNextStep() {
if (!mcGameOver._visible) {
var _local2 = new Object();
var _local1 = 0;
for ( ; _local1 < arrRows.length ; ) {
if (arrRows[_local1].length > 0) {
_local2 = arrRows[_local1][arrRows[_local1].length - 1];
if (checkValid(_local2, arrWaste[arrWaste.length - 1])) {
return(undefined);
}
if (arrDeck.length <= 0) {
_local1++;
continue;
}
} else {
_local1++;
}
}
gameOver();
}
}
function movingCards() {
if (arrMove.length != 0) {
var _local1 = (arrMove.length - 1);
while (_local1 >= 0) {
if (arrMove[_local1].step < (numStepCnt - 1)) {
arrMove[_local1].step++;
arrMove[_local1]._x = arrMove[_local1]._x + ((arrMove[_local1].posX - arrMove[_local1]._x) / (numStepCnt - arrMove[_local1].step));
arrMove[_local1]._y = arrMove[_local1]._y + ((arrMove[_local1].posY - arrMove[_local1]._y) / (numStepCnt - arrMove[_local1].step));
} else {
arrMove[_local1]._x = arrMove[_local1].posX;
arrMove[_local1]._y = arrMove[_local1].posY;
arrMove[_local1].swapDepths(arrMove[_local1].depth);
arrMove[_local1].step = 0;
if (arrMove[_local1].placement == "waste") {
hideWaste(arrMove[_local1]);
} else if (arrMove[_local1].placement == "deck") {
arrMove[_local1]._visible = false;
}
arrMove.splice(_local1, 1);
}
_local1--;
}
}
}
function hideWaste(pCard) {
var _local2 = pCard;
var _local1 = 0;
while (_local1 < arrWaste.length) {
if (arrWaste[_local1] == _local2) {
return(undefined);
}
arrWaste[_local1]._visible = false;
_local1++;
}
}
function checkColumn() {
var _local2 = 0;
var _local1 = 0;
while (_local1 < arrRows.length) {
_local2 = _local2 + arrRows[_local1].length;
_local1++;
}
return(_local2);
}
function removeCard() {
mcDeck._visible = true;
var _local1;
var _local3 = numLastCol;
while (_local3 >= 0) {
var _local2 = (arrRows[_local3].length - 1);
while (_local2 >= 0) {
_local1 = arrRows[_local3][_local2];
if (_local1.placement == "rows") {
_local1.posX = numDeckX;
_local1.posY = numDeckY;
_local1.placement = "deck";
_local1.swapDepths(numMoveDepth + arrCards[_local3].depth);
arrMove.push(_local1);
arrRows[_local3].splice(_local2, 1);
numLastCol = _local3;
return(undefined);
}
_local2--;
}
_local3--;
}
_local3 = arrWaste.length - 1;
while (_local3 >= 0) {
arrWaste[_local3]._visible = false;
arrWaste[_local3].posX = numDeckX;
arrWaste[_local3].posY = numDeckY;
arrWaste[_local3].placement = "deck";
_local3--;
}
mcDeck.gotoAndPlay("removed");
}
function changeScore(value) {
numScore = numScore - value;
}
function clickResignBtn() {
sndClick.start();
mcAreYouSure._visible = true;
}
function clickSoundBtn() {
if (blnSoundOn) {
sndClick.start();
sndGlobalSound.setVolume(0);
} else {
sndGlobalSound.setVolume(100);
sndClick.start();
}
blnSoundOn = !blnSoundOn;
}
function gameOver() {
var _local2 = checkColumn();
if (_local2 == 0) {
strMessage = "You win!";
var _local1 = (arrDeck.length - 1);
while (_local1 >= 0) {
wasteCard(arrDeck[_local1]);
arrDeck.splice(_local1, 1);
numCardInDeck = arrDeck.length;
changeScore(-1);
_local1--;
}
} else {
strMessage = ("You shot " + numScore) + "!";
}
blnGameOver = true;
mcGameOver._visible = true;
mcTimer.stop();
play();
}
function playWarning() {
sndTimer.start();
}
function startGame() {
mcGameOver._visible = false;
mcAreYouSure._visible = false;
blnGameOver = false;
var _local1 = 0;
while (_local1 < arrCards.length) {
arrCards[_local1]._x = numDeckX;
arrCards[_local1]._y = numDeckY;
arrCards[_local1].placement = "deck";
arrCards[_local1]._visible = false;
_local1++;
}
arrWaste.splice(0);
arrMove.splice(0);
arrRows.splice(0);
_local1 = 0;
while (_local1 < 7) {
arrRows.push(new Array());
_local1++;
}
numRandomSeed = Math.floor(Math.random() * 200);
numNextCard = 0;
numCardCnt = 0;
numCardInDeck = "";
numLastCol = arrRows.length - 1;
shuffleDeck();
sndShuffle.start(0, 1);
}
function g_fSetGameSize(a_numWidth, a_numHeight) {
g_numGameWidth = a_numWidth;
g_numGameHeight = a_numHeight;
}
function playAgain() {
_root.score = _root.numScore;
_global.ipbSend();
}
stop();
var blnSoundOn = true;
var numCardHeight = 96;
var numCardWidth = 71;
var numRowX = 50;
var numRowY = 110;
var numRowXShift = (numCardWidth + 5);
var numRowYShift = 40;
var numDeckX = mcDeck._x;
var numDeckY = mcDeck._y;
var numCardInDeck;
var numNextCard;
var numCardCnt;
var numLastCol;
var numWasteX = (numDeckX + (2 * numCardWidth));
var numWasteY = numDeckY;
var numWasteOpenShift = 0;
var arrCards = new Array();
var arrSuit = new Array("c", "d", "h", "s");
var arrWaste = new Array();
var arrDeck = new Array();
var arrRows = new Array();
var arrMove = new Array();
var numStepCnt = 5;
var numMoveDepth = 10000;
var blnGameOver = false;
var blnWarning = false;
var strMessage = "";
mcDeck.swapDepths(9000);
mcAreYouSure.swapDepths(99000);
mcGameOver.swapDepths(900001);
mcGameOver._visible = false;
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");
var A = 3423313;
var C = 2435;
var numSeedCnt = 0;
var numRandomSeed;
createDeck();
startGame();
g_fSetGameSize(640, 480);
endContainer.playAgain = function () {
_root.gotoAndPlay(3);
};
endContainer.downloadStandAlone = function () {
_root.downloadURL;
};
Frame 44
function removeGameClips() {
mcGameOver.removeMovieClip();
mcAreYouSure.removeMovieClip();
mcDeck.removeMovieClip();
mcHelp.removeMovieClip();
var _local1 = 0;
while (_local1 < arrCards.length) {
arrCards[_local1].removeMovieClip();
_local1++;
}
}
stop();
removeGameClips();
numScore = numScore;
stop();
endContainer.g_numScore = numScore;
mcGameEnd.removeMovieClip();
if (!((crypto == 2) || (crypto == 0))) {
trace("config");
_root.t_fLoadGameEnd();
} else {
postGameLog();
_root.score = _root.numScore;
_global.ipbSend();
(gameEndSubmitUrl + "?params=") + TEAEncrypt((((("freePlayID=" + freeplayid) + "&score=") + endContainer.g_numScore) + "&timeStamp=") + timeStamp, tKey);
}
Frame 48
_root.score = _root.numScore;
_global.ipbSend();
Symbol 244 MovieClip Frame 1
if (yy.savescore == 1) {
if (ipb_score == undefined) {
ipb_score = eval (_global.ipb_scoreVar);
}
xx = new LoadVars();
xx.arcadegid = _root.ibpro_gameid;
xx.gscore = ipb_score;
xx.gname = _global.ipb_get_gname();
xx.enscore = (ipb_score * yy.randchar) ^ yy.randchar2;
xx.send("index.php?autocom=arcade&do=savescore", "_self", "POST");
stop();
}
_global.ipbSend = function (ipb_score) {
_root._visible = false;
_root.enabled = false;
xx = new LoadVars();
yy = new LoadVars();
xx.sendAndLoad("index.php?autocom=arcade&do=verifyscore", yy, "POST");
};
Symbol 11 MovieClip [s13] Frame 1
stop();
Symbol 14 MovieClip [s12] Frame 1
stop();
Symbol 17 MovieClip [s11] Frame 1
stop();
Symbol 20 MovieClip [s10] Frame 1
stop();
Symbol 23 MovieClip [s9] Frame 1
stop();
Symbol 26 MovieClip [s8] Frame 1
stop();
Symbol 29 MovieClip [s7] Frame 1
stop();
Symbol 32 MovieClip [s6] Frame 1
stop();
Symbol 35 MovieClip [s5] Frame 1
stop();
Symbol 38 MovieClip [s4] Frame 1
stop();
Symbol 41 MovieClip [s3] Frame 1
stop();
Symbol 44 MovieClip [s2] Frame 1
stop();
Symbol 47 MovieClip [s1] Frame 1
stop();
Symbol 50 MovieClip [h13] Frame 1
stop();
Symbol 53 MovieClip [h12] Frame 1
stop();
Symbol 56 MovieClip [h11] Frame 1
stop();
Symbol 59 MovieClip [h10] Frame 1
stop();
Symbol 62 MovieClip [h9] Frame 1
stop();
Symbol 65 MovieClip [h8] Frame 1
stop();
Symbol 68 MovieClip [h7] Frame 1
stop();
Symbol 71 MovieClip [h6] Frame 1
stop();
Symbol 74 MovieClip [h5] Frame 1
stop();
Symbol 77 MovieClip [h4] Frame 1
stop();
Symbol 80 MovieClip [h3] Frame 1
stop();
Symbol 83 MovieClip [h2] Frame 1
stop();
Symbol 86 MovieClip [h1] Frame 1
stop();
Symbol 89 MovieClip [d13] Frame 1
stop();
Symbol 92 MovieClip [d12] Frame 1
stop();
Symbol 95 MovieClip [d11] Frame 1
stop();
Symbol 98 MovieClip [d10] Frame 1
stop();
Symbol 101 MovieClip [d9] Frame 1
stop();
Symbol 104 MovieClip [d8] Frame 1
stop();
Symbol 107 MovieClip [d7] Frame 1
stop();
Symbol 110 MovieClip [d6] Frame 1
stop();
Symbol 113 MovieClip [d5] Frame 1
stop();
Symbol 116 MovieClip [d4] Frame 1
stop();
Symbol 119 MovieClip [d3] Frame 1
stop();
Symbol 122 MovieClip [d2] Frame 1
stop();
Symbol 125 MovieClip [d1] Frame 1
stop();
Symbol 128 MovieClip [c13] Frame 1
stop();
Symbol 131 MovieClip [c12] Frame 1
stop();
Symbol 134 MovieClip [c11] Frame 1
stop();
Symbol 137 MovieClip [c10] Frame 1
stop();
Symbol 140 MovieClip [c9] Frame 1
stop();
Symbol 143 MovieClip [c8] Frame 1
stop();
Symbol 146 MovieClip [c7] Frame 1
stop();
Symbol 149 MovieClip [c6] Frame 1
stop();
Symbol 152 MovieClip [c5] Frame 1
stop();
Symbol 155 MovieClip [c4] Frame 1
stop();
Symbol 158 MovieClip [c3] Frame 1
stop();
Symbol 161 MovieClip [c2] Frame 1
stop();
Symbol 164 MovieClip [c1] Frame 1
stop();
Symbol 165 Button
on (press) {
_parent.pressCard(this);
}
on (release, releaseOutside) {
_parent.releaseCard(this);
}
Symbol 166 MovieClip [Card] Frame 1
stop();
Symbol 180 MovieClip Frame 30
stop();
Symbol 181 Button
on (release) {
clickResignBtn();
}
Symbol 183 MovieClip Frame 30
stop();
Symbol 184 Button
on (release) {
_parent.clickSoundBtn();
gotoAndStop (2);
}
Symbol 186 MovieClip Frame 30
stop();
Symbol 187 Button
on (release) {
_parent.clickSoundBtn();
gotoAndStop (1);
}
Symbol 188 MovieClip Frame 1
stop();
Symbol 188 MovieClip Frame 2
stop();
Symbol 194 Button
on (release) {
getURL ("http://www.arkadium.com", "_blank");
}
Symbol 195 MovieClip Frame 1
if (_root.logoUrl == undefined) {
play();
} else {
_root.logoUrl;
stop();
}
Symbol 195 MovieClip Frame 2
stop();
Symbol 198 Button
on (release) {
_parent.releaseDeck();
}
Symbol 201 MovieClip Frame 1
stop();
Symbol 201 MovieClip Frame 2
_parent.dealNextCard();
Symbol 201 MovieClip Frame 5
if (_parent.blnGameOver) {
gotoAndStop (1);
} else {
gotoAndPlay ("deal");
}
Symbol 201 MovieClip Frame 13
_parent.checkNextStep();
gotoAndStop ("stop");
Symbol 201 MovieClip Frame 14
_parent.removeCard();
Symbol 201 MovieClip Frame 15
gotoAndPlay ("removeCard");
Symbol 201 MovieClip Frame 16
play();
Symbol 201 MovieClip Frame 50
if (!_parent.blnGameOver) {
_parent.startGame();
}
gotoAndStop ("stop");
Symbol 206 MovieClip Frame 1
stop();
var blnWarning = false;
var timeGiven = _parent.gameTotalTime;
var time;
var minutes = ((Math.floor(timeGiven / 60) < 10) ? ("0" + String(Math.floor(timeGiven / 60))) : (String(Math.floor(timeGiven / 60))));
var seconds = (((timeGiven % 60) < 10) ? ("0" + String(timeGiven % 60)) : (String(timeGiven % 60)));
time = (minutes + ":") + seconds;
Symbol 206 MovieClip Frame 2
var timeStart = Math.floor(getTimer() / 1000);
Symbol 206 MovieClip Frame 3
var newTime = Math.floor(getTimer() / 1000);
var timePlay = (newTime - timeStart);
var timeRemaining = (timeGiven - timePlay);
var minutes = Math.floor(timeRemaining / 60);
minutes = ((minutes < 10) ? ("0" + String(minutes)) : (String(minutes)));
var seconds = (timeRemaining % 60);
seconds = ((seconds < 10) ? ("0" + String(seconds)) : (String(seconds)));
time = (minutes + ":") + seconds;
if (timeRemaining == 0) {
stop();
_parent.GameOver();
} else if (timeRemaining <= 10) {
if (!blnWarning) {
_parent.playWarning();
blnWarning = true;
}
}
Symbol 206 MovieClip Frame 4
gotoAndPlay (3);
Symbol 206 MovieClip Frame 5
if (timeRemaining > 0) {
timeRemaining--;
minutes = Math.floor(timeRemaining / 60);
if (minutes < 10) {
minutes = "0" + String(minutes);
} else {
minutes = String(minutes);
}
seconds = timeRemaining % 60;
if (seconds < 10) {
seconds = "0" + String(seconds);
} else {
seconds = String(seconds);
}
time = (minutes + ":") + seconds;
_parent.timeBonus();
} else {
stop();
_parent.GameOver();
}
Symbol 206 MovieClip Frame 6
gotoAndPlay (5);
Symbol 215 Button
on (release, releaseOutside) {
if (_currentframe == 1) {
play();
}
}
Symbol 216 Button
on (release, releaseOutside) {
if (_currentframe == 1) {
play();
}
}
Symbol 220 Button
on (release, releaseOutside) {
_parent.pressButton();
play();
}
Symbol 225 Button
on (press) {
this.pressDown = true;
}
on (release, releaseOutside) {
this.pressDown = false;
}
Symbol 228 Button
on (press) {
this.pressUp = true;
}
on (release, releaseOutside) {
this.pressUp = false;
}
Symbol 231 Button
on (press) {
startDrag (this, false, 0, _parent.minSliderY, 0, _parent.maxSliderY);
}
on (release, releaseOutside) {
stopDrag();
}
Symbol 234 MovieClip Frame 1
stop();
Symbol 234 MovieClip Frame 14
stop();
strRules = "\n-Try and place as many cards from the upper tableau onto the waste pile as possible\n-Playable cards are either one higher or one lower than the card face up on the waste pile. You can only click on the card at the bottom of each row.\n-At any time, you can click on the face down draw pile to place a card on the top of the waste pile.";
Instance of Symbol 233 MovieClip "mcScrollBar" in Symbol 234 MovieClip Frame 14
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 = (((mcSlider._y + numStep) > maxSliderY) ? (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 234 MovieClip Frame 27
gotoAndStop (1);
Symbol 249 Button
on (release) {
this._visible = false;
_parent.gameOver();
}
Symbol 250 Button
on (release) {
this._visible = false;
}