Frame 1
deck1 = 23;
deck2 = 24;
deck3 = 25;
deck4 = 26;
deck5 = 14;
play();
Frame 2
if (prePlay == true) {
gotoAndPlay (35);
} else {
ifFrameLoaded (4) {
gotoAndPlay (4);
}
prePlay = true;
}
Instance of Symbol 376 MovieClip "logo" in Frame 2
onClipEvent (load) {
i = 1;
while (i < 6) {
Set(("_root.logo.card" + i) + ".i", i);
tellTarget ("_root.logo.card" + i) {
gotoAndStop (2);
};
i++;
}
}
Frame 3
gotoAndPlay(_currentframe - 1);
Frame 4
play();
Frame 33
ifFrameLoaded (36) {
gotoAndPlay (35);
}
play();
Frame 34
prevFrame();
Frame 35
play();
Frame 36
function pickGame() {
gamePicker.gotoAndStop(2);
}
function startGame() {
if (gameType == 1) {
paytable0 = 0;
paytable1 = 0;
paytable2 = 3;
paytable3 = 5;
paytable4 = 10;
paytable5 = 15;
paytable6 = 30;
paytable7 = 100;
paytable8 = 3000;
paytable9 = 10000;
paytable10 = 100;
paytable11 = 5000;
} else {
paytable0 = 0;
paytable1 = 0;
paytable2 = 2;
paytable3 = 3;
paytable4 = 6;
paytable5 = 8;
paytable6 = 15;
paytable7 = 50;
paytable8 = 1500;
paytable9 = 5000;
paytable10 = 50;
paytable11 = 2500;
}
_root.helpText = "Place Bets - Hit DEAL/DRAW When Done";
i = 1;
while (i < 6) {
tellTarget ("aa" + i) {
gotoAndStop (1);
};
setProperty("aa" + i, _visible , true);
tellTarget ("bb" + i) {
gotoAndStop (1);
};
setProperty("bb" + i, _visible , true);
setProperty("a" + i, _visible , false);
Set(("a" + i) + ".thisCardName", "a");
Set(("a" + i) + ".thisCardNumber", i);
Set(("a" + i) + ".amIon", false);
Set(("a" + i) + ".match", false);
setProperty("b" + i, _visible , false);
Set(("b" + i) + ".thisCardName", "b");
Set(("b" + i) + ".thisCardNumber", i);
Set(("b" + i) + ".amIon", false);
Set(("b" + i) + ".match", false);
setProperty("c" + i, _visible , false);
Set(("c" + i) + ".thisCardName", "c");
Set(("c" + i) + ".thisCardNumber", i);
Set(("c" + i) + ".amIon", false);
Set(("c" + i) + ".match", false);
Set(("logo.card" + i) + ".i", i);
i++;
}
k = 1;
while (k < 4) {
Set("bet" + k, 0);
tellTarget ("payMe" + k) {
gotoAndStop (1);
};
k++;
}
i = 1;
while (i < 6) {
Set(("aa" + i) + ".i", i);
i++;
}
i = 6;
while (i < 11) {
Set(("bb" + (i - 5)) + ".i", i);
i++;
}
k = 1;
while (k < 4) {
Set("bet" + k, 0);
tellTarget ("betLight" + k) {
gotoAndStop (1);
};
k++;
}
creditsPlayed = 0;
myBetInc = 5;
myBetMax = 25;
_root.draw = 1;
_root.count = _root.count + 1;
_root.countText = ("Game " + _root.count) + " of 10";
_root.winnerPaid = 0;
_root.gameOn = 0;
flasher.gotoAndPlay(2);
_root.quit = 0;
}
function betButtons(isMax) {
if (isMax == "all") {
i = 1;
while (i < 4) {
thisBet = i;
if (((_root.gameOn == 1) and (_root.credits >= (myBetMax - eval ("bet" + thisBet)))) and (eval ("bet" + thisBet) <= (myBetMax - myBetInc))) {
_root.tmpsnd = 30;
_root.mySound();
_root.creditsPlayed = _root.creditsPlayed + (myBetMax - eval ("bet" + thisBet));
_root.credits = _root.credits - (myBetMax - eval ("bet" + thisBet));
Set("_root.bet" + thisBet, eval ("_root.bet" + thisBet) + (myBetMax - eval ("bet" + thisBet)));
tellTarget ("betLight" + thisBet) {
gotoAndStop (2);
};
}
i++;
}
}
if (isMax == 1) {
if (((_root.gameOn == 1) and (_root.credits >= myBetInc)) and (eval ("bet" + thisBet) <= (myBetMax - myBetInc))) {
_root.tmpsnd = 30;
_root.mySound();
_root.creditsPlayed = _root.creditsPlayed + myBetInc;
Set("_root.bet" + thisBet, eval ("_root.bet" + thisBet) + myBetInc);
_root.credits = _root.credits - myBetInc;
tellTarget ("betLight" + thisBet) {
gotoAndStop (2);
};
}
} else if (isMax == 2) {
if (((_root.gameOn == 1) and (_root.credits >= (myBetMax - eval ("bet" + thisBet)))) and (eval ("bet" + thisBet) <= (myBetMax - myBetInc))) {
_root.tmpsnd = 30;
_root.mySound();
_root.creditsPlayed = _root.creditsPlayed + (myBetMax - eval ("bet" + thisBet));
_root.credits = _root.credits - (myBetMax - eval ("bet" + thisBet));
Set("_root.bet" + thisBet, eval ("_root.bet" + thisBet) + (myBetMax - eval ("bet" + thisBet)));
tellTarget ("betLight" + thisBet) {
gotoAndStop (2);
};
}
} else if (isMax == 3) {
if ((_root.gameOn == 1) and (_root.creditsPlayed > 0)) {
_root.tmpsnd = 5;
_root.mySound();
_root.gameOn = 0;
_root.gameplay.gotoAndPlay(2);
}
if (_root.gameOn == 2) {
_root.tmpsnd = 5;
_root.mySound();
_root.gameOn = 0;
i = 1;
while (i < 11) {
if (i < 6) {
tellTarget (("aa" + i) + ".cr") {
gotoAndStop (1);
};
} else {
tellTarget (("bb" + (i - 5)) + ".cr") {
gotoAndStop (1);
};
}
i++;
}
_root.gameplay.gotoAndPlay("Deal All");
}
} else if (isMax == 4) {
_root.tmpsnd = 45;
_root.mySound();
_root.paytableDisplay.gotoAndStop(2);
} else if (isMax == 5) {
if ((_root.gameOn == 1) and (creditsPlayed > 0)) {
_root.tmpsnd = 35;
_root.mySound();
_root.credits = _root.credits + creditsPlayed;
creditsPlayed = 0;
k = 1;
while (k < 4) {
Set("bet" + k, 0);
tellTarget ("betLight" + k) {
gotoAndStop (1);
};
k++;
}
}
} else if (isMax == 6) {
if (count < 10) {
_root.tmpsnd = 45;
_root.mySound();
_root.startGame();
cdq.gotoAndPlay(2);
_root.gameplay.play();
_root.gameOn = 1;
} else {
_root.gameOn = 0;
_root.gameplay.gotoAndStop(1);
_root.inter.gotoAndPlay(2);
}
} else if (isMax == 7) {
if (gameOn == 2) {
copyCards();
}
}
}
function betButtonsRoll() {
if ((thisRoll == 7) and ((gameOn == 1) or (gameOn == 2))) {
tellTarget ("betButt" + thisRoll) {
gotoAndStop (2);
};
}
if ((thisRoll == 11) and (gameOn == 2)) {
tellTarget ("betButt" + thisRoll) {
gotoAndStop (2);
};
}
if ((thisRoll == 10) or (thisRoll == 8)) {
tellTarget ("betButt" + thisRoll) {
gotoAndStop (2);
};
}
}
function betButtonsOut() {
tellTarget ("betButt" + thisRoll) {
gotoAndStop (1);
};
}
function shuffleDeck() {
i = 1;
while (i < 53) {
Set("_root.deck" add i, i);
i = i + 1;
}
k = 1;
while (K < 4) {
i = 1;
while (i < 53) {
a = random(52) + 1;
swap1 = eval ("_root.deck" add a);
swap2 = eval ("_root.deck" add i);
Set("_root.deck" add i, swap1);
Set("_root.deck" add a, swap2);
i = i + 1;
}
k = k + 1;
}
}
function cardClicker(thisCardName, thisCardNumber) {
_root.tmpsnd = 15;
_root.mySound();
_root.fromName = thisCardName;
_root.fromNumber = thisCardNumber;
i = 1;
while (i < 11) {
if (i < 6) {
tellTarget (("aa" + i) + ".cr") {
gotoAndStop (1);
};
} else {
tellTarget (("bb" + (i - 5)) + ".cr") {
gotoAndStop (1);
};
}
i++;
}
tellTarget ((thisCardName + thisCardNumber) + ".cr") {
gotoAndStop (2);
};
i = 1;
while (i < 6) {
if (eval (("a" + i) + ".amIon") == false) {
tellTarget ("a" + i) {
gotoAndStop (4);
};
}
if (eval (("b" + i) + ".amIon") == false) {
tellTarget ("b" + i) {
gotoAndStop (4);
};
}
if (eval (("c" + i) + ".amIon") == false) {
tellTarget ("c" + i) {
gotoAndStop (4);
};
}
setProperty("a" + i, _visible , true);
setProperty("b" + i, _visible , true);
setProperty("c" + i, _visible , true);
i++;
}
}
function cardPlacer(thisCardName, thisCardNumber) {
tcNumber = thisCardNumber;
tcName = thisCardName;
okGo = false;
if ((((thisCardName == "c") and (bet3 > 0)) or ((thisCardName == "b") and (bet2 > 0))) or ((thisCardName == "a") and (bet1 > 1))) {
okGo = true;
}
if ((okGo == true) and (thisCardNumber == fromNumber)) {
if ((eval ((thisCardName + thisCardNumber) + ".amIon") == false) and (okGo == true)) {
_root.tmpsnd = 40;
_root.mySound();
Set((thisCardName + thisCardNumber) + ".amIon", true);
Set((thisCardName + thisCardNumber) + ".i", eval ((_root.fromName + _root.fromNumber) + ".card.myValue"));
tellTarget (thisCardName + thisCardNumber) {
gotoAndStop (3);
};
} else if (eval ((_root.fromName + _root.fromNumber) + ".card.myValue") == eval ((thisCardName + thisCardNumber) + ".card.myValue")) {
_root.tmpsnd = 20;
_root.mySound();
Set((thisCardName + thisCardNumber) + ".amIon", false);
Set((thisCardName + thisCardNumber) + ".i", "");
tellTarget (thisCardName + thisCardNumber) {
gotoAndStop (4);
};
} else {
_root.tmpsnd = 40;
_root.mySound();
Set((thisCardName + thisCardNumber) + ".i", eval ((_root.fromName + _root.fromNumber) + ".card.myValue"));
tellTarget (thisCardName + thisCardNumber) {
gotoAndPlay (5);
};
}
} else if ((eval ((thisCardName + thisCardNumber) + ".amIon") == true) and (okGo == true)) {
_root.tmpsnd = 20;
_root.mySound();
Set((thisCardName + thisCardNumber) + ".amIon", false);
Set((thisCardName + thisCardNumber) + ".i", "");
tellTarget (thisCardName + thisCardNumber) {
gotoAndStop (4);
};
}
}
function copyCards() {
if (tcName == "a") {
okGo = false;
k = 1;
while (k < 6) {
if (eval (("a" + k) + ".amIon") == true) {
okGo = true;
k = 8;
}
k++;
}
} else if (tcName == "b") {
okGo = false;
k = 1;
while (k < 6) {
if (eval (("b" + k) + ".amIon") == true) {
okGo = true;
k = 8;
}
k++;
}
if (okGo == false) {
tcName = "a";
k = 1;
while (k < 6) {
if (eval (("a" + k) + ".amIon") == true) {
okGo = true;
k = 8;
}
k++;
}
}
} else {
_root.tmpsnd = 35;
_root.mySound();
}
if (okGo == true) {
k = 1;
while (k < 6) {
if (eval ((tcName + k) + ".amIon") == true) {
Set("tmpCard" + k, eval ((tcName + k) + ".card.myValue"));
Set("tmpCardSpot" + k, eval ((tcName + k) + ".thisCardNumber"));
}
k++;
}
if (tcName == "a") {
okGo2 = true;
myTemp = "b";
if (bet2 < 1) {
myTemp = "c";
if (bet3 < 1) {
okGo2 = false;
}
}
if (okGo2 == true) {
k = 1;
while (k < 6) {
if (eval ((myTemp + k) + ".amIon") == true) {
Set((myTemp + k) + ".amIon", false);
Set((myTemp + k) + ".i", "");
tellTarget (myTemp + k) {
gotoAndStop (4);
};
}
k++;
}
k = 1;
while (k < 6) {
if (eval ((tcName + k) + ".amIon") == true) {
Set((myTemp + k) + ".i", eval ("tmpCard" + k));
tellTarget (myTemp + k) {
gotoAndStop (5);
};
_root.tmpsnd = 40;
_root.mySound();
Set((myTemp + k) + ".amIon", true);
}
k++;
}
}
}
if (tcName == "b") {
okGo2 = true;
myTemp = "c";
if (bet3 < 1) {
okGo2 = false;
}
if (okGo2 == true) {
k = 1;
while (k < 6) {
if (eval ((myTemp + k) + ".amIon") == true) {
Set((myTemp + k) + ".amIon", false);
Set((myTemp + k) + ".i", "");
tellTarget (myTemp + k) {
gotoAndStop (4);
};
}
k++;
}
k = 1;
while (k < 6) {
if (eval ((tcName + k) + ".amIon") == true) {
Set(("c" + k) + ".i", eval ("tmpCard" + k));
tellTarget ("c" + k) {
gotoAndStop (5);
};
_root.tmpsnd = 40;
_root.mySound();
Set(("c" + k) + ".amIon", true);
}
k++;
}
}
}
if (okGo2 == false) {
_root.tmpsnd = 35;
_root.mySound();
}
tcName = myTemp;
}
}
function mySound() {
if (_root.soundFX == 1) {
tellTarget ("_root.sfx") {
gotoAndStop(_root.tmpsnd);
};
}
}
function checkhigh(thisscore) {
if (thishighscore < thisscore) {
thishighscore = thisscore;
fileSave(gameid, thishighscore);
}
}
function startit() {
tutorial_so = SharedObject.getLocal("HIGHSCORE");
if (tutorial_so.data.fileCollection == undefined) {
with (tutorial_so) {
data.fileCollection = new Object();
}
}
if (fileExists(gameid) == true) {
fileOpen(gameid);
} else {
fileNew(gameid);
fileSave(gameid, "0");
}
}
function fileNew(gameid) {
var newFileName = gameid;
with (tutorial_so.data) {
fileCollection[newFileName] = new Object();
fileCollection[newFileName].created = new Date();
fileCollection[newFileName].lastModified = new Date();
}
fileLoad(newFileName);
}
function fileOpen(fileName) {
fileLoad(fileName);
}
function fileLoad(fileName) {
with (tutorial_so.data) {
fileName_txt.text = fileName;
created_txt.text = fileCollection[fileName].created.getMonth() + 1;
created_txt.text = created_txt.text + ("/" + fileCollection[fileName].created.getDate());
created_txt.text = created_txt.text + (("/" + (fileCollection[fileName].created.getYear() + 1900)) + " ");
created_txt.text = created_txt.text + ((fileCollection[fileName].created.getHours() > 0) ? (fileCollection[fileName].created.getHours() % 12) : 12);
created_txt.text = created_txt.text + ((fileCollection[fileName].created.getMinutes() > 10) ? (":" + fileCollection[fileName].created.getMinutes()) : (":0" + fileCollection[fileName].created.getMinutes()));
created_txt.text = created_txt.text + ((fileCollection[fileName].created.getSeconds() > 10) ? (":" + fileCollection[fileName].created.getSeconds()) : (":0" + fileCollection[fileName].created.getSeconds()));
lastModified_txt.text = fileCollection[fileName].lastModified.getMonth() + 1;
lastModified_txt.text = lastModified_txt.text + ("/" + fileCollection[fileName].lastModified.getDate());
lastModified_txt.text = lastModified_txt.text + (("/" + (fileCollection[fileName].lastModified.getYear() + 1900)) + " ");
lastModified_txt.text = lastModified_txt.text + ((fileCollection[fileName].lastModified.getHours() > 0) ? (fileCollection[fileName].lastModified.getHours() % 12) : 12);
lastModified_txt.text = lastModified_txt.text + ((fileCollection[fileName].lastModified.getMinutes() > 10) ? (":" + fileCollection[fileName].lastModified.getMinutes()) : (":0" + fileCollection[fileName].lastModified.getMinutes()));
lastModified_txt.text = lastModified_txt.text + ((fileCollection[fileName].lastModified.getSeconds() > 10) ? (":" + fileCollection[fileName].lastModified.getSeconds()) : (":0" + fileCollection[fileName].lastModified.getSeconds()));
thishighscore = fileCollection[fileName].content;
}
}
function fileSave(fileName, content) {
with (tutorial_so.data) {
if (fileCollection[fileName] == undefined) {
fileCollection[fileName] = new Object();
fileCollection[fileName].created = new Date();
}
fileCollection[fileName].lastModified = new Date();
fileCollection[fileName].content = thishighscore;
}
fileLoad(fileName);
}
function fileExists(fileName) {
var doesFileExist = false;
for (existingFileName in tutorial_so.data.fileCollection) {
if (existingFileName == fileName) {
doesFileExist = true;
}
}
return(doesFileExist);
}
function fileList() {
var files = new Array();
for (fileName in tutorial_so.data.fileCollection) {
files.push(fileName);
}
return(files);
}
gameid = 46;
gameover = 0;
paytable0 = 0;
paytable1 = 0;
paytable2 = 2;
paytable3 = 3;
paytable4 = 6;
paytable5 = 8;
paytable6 = 15;
paytable7 = 50;
paytable8 = 100;
paytable9 = 500;
paytable10 = 50;
paytable11 = 150;
paytableText0 = "High Card - Not a Winner";
paytableText1 = "Pair - Not a Winner";
paytableText2 = "Two Pair - You Win";
paytableText3 = "Three of a Kind - You Win";
paytableText4 = "Straight - You Win";
paytableText5 = "Flush - You Win";
paytableText6 = "Full House - You Win";
paytableText7 = "Four of a Kind (5-K) - You Win";
paytableText8 = "Straight Flush - You Win";
paytableText10 = "Four 2's, 3's or 4's - You Win";
paytableText11 = "Four Aces - You Win";
_root.count = 0;
soundFX = 1;
credits = 750;
var isdone = false;
if (!isdone) {
startit();
}
hush = true;
if (hush == true) {
pickGame();
hush = false;
} else {
startGame();
}
stop();
Symbol 91 MovieClip Frame 1
stop();
Symbol 91 MovieClip Frame 20
stop();
Symbol 92 MovieClip Frame 1
Set("../:totall", Math.round(_level0.getBytesTotal() / 1000));
Set("../:loaded", Math.round(_level0.getBytesLoaded() / 1000));
_root.myPercent = (../:loaded / ../:totall) * 100;
_root.myPercent = Math.round(_root.myPercent);
if ((_root.myPercent >= 5) and (_root.myPercent < 10)) {
tellTarget ("_root.loader") {
gotoAndStop (2);
};
}
if ((_root.myPercent >= 10) and (_root.myPercent < 15)) {
tellTarget ("_root.loader") {
gotoAndStop (3);
};
}
if ((_root.myPercent >= 15) and (_root.myPercent < 20)) {
tellTarget ("_root.loader") {
gotoAndStop (4);
};
}
if ((_root.myPercent >= 20) and (_root.myPercent < 25)) {
tellTarget ("_root.loader") {
gotoAndStop (5);
};
}
if ((_root.myPercent >= 25) and (_root.myPercent < 30)) {
tellTarget ("_root.loader") {
gotoAndStop (6);
};
}
if ((_root.myPercent >= 30) and (_root.myPercent < 35)) {
tellTarget ("_root.loader") {
gotoAndStop (7);
};
}
if ((_root.myPercent >= 35) and (_root.myPercent < 40)) {
tellTarget ("_root.loader") {
gotoAndStop (8);
};
}
if ((_root.myPercent >= 40) and (_root.myPercent < 45)) {
tellTarget ("_root.loader") {
gotoAndStop (9);
};
}
if ((_root.myPercent >= 45) and (_root.myPercent < 50)) {
tellTarget ("_root.loader") {
gotoAndStop (10);
};
}
if ((_root.myPercent >= 50) and (_root.myPercent < 55)) {
tellTarget ("_root.loader") {
gotoAndStop (11);
};
}
if ((_root.myPercent >= 55) and (_root.myPercent < 60)) {
tellTarget ("_root.loader") {
gotoAndStop (12);
};
}
if ((_root.myPercent >= 60) and (_root.myPercent < 65)) {
tellTarget ("_root.loader") {
gotoAndStop (13);
};
}
if ((_root.myPercent >= 65) and (_root.myPercent < 70)) {
tellTarget ("_root.loader") {
gotoAndStop (14);
};
}
if ((_root.myPercent >= 70) and (_root.myPercent < 75)) {
tellTarget ("_root.loader") {
gotoAndStop (15);
};
}
if ((_root.myPercent >= 75) and (_root.myPercent < 80)) {
tellTarget ("_root.loader") {
gotoAndStop (16);
};
}
if ((_root.myPercent >= 80) and (_root.myPercent < 85)) {
tellTarget ("_root.loader") {
gotoAndStop (17);
};
}
if ((_root.myPercent >= 85) and (_root.myPercent < 90)) {
tellTarget ("_root.loader") {
gotoAndStop (18);
};
}
if ((_root.myPercent >= 90) and (_root.myPercent < 95)) {
tellTarget ("_root.loader") {
gotoAndStop (19);
};
}
if ((_root.myPercent >= 95) and (_root.myPercent < 105)) {
tellTarget ("_root.loader") {
gotoAndStop (20);
};
}
Symbol 92 MovieClip Frame 2
Set("../:loaded", Math.round(_level0.getBytesLoaded() / 1000));
_root.myPercent = (../:loaded / ../:totall) * 100;
_root.myPercent = Math.round(_root.myPercent);
if ((_root.myPercent >= 5) and (_root.myPercent < 10)) {
tellTarget ("_root.loader") {
gotoAndStop (2);
};
}
if ((_root.myPercent >= 10) and (_root.myPercent < 15)) {
tellTarget ("_root.loader") {
gotoAndStop (3);
};
}
if ((_root.myPercent >= 15) and (_root.myPercent < 20)) {
tellTarget ("_root.loader") {
gotoAndStop (4);
};
}
if ((_root.myPercent >= 20) and (_root.myPercent < 25)) {
tellTarget ("_root.loader") {
gotoAndStop (5);
};
}
if ((_root.myPercent >= 25) and (_root.myPercent < 30)) {
tellTarget ("_root.loader") {
gotoAndStop (6);
};
}
if ((_root.myPercent >= 30) and (_root.myPercent < 35)) {
tellTarget ("_root.loader") {
gotoAndStop (7);
};
}
if ((_root.myPercent >= 35) and (_root.myPercent < 40)) {
tellTarget ("_root.loader") {
gotoAndStop (8);
};
}
if ((_root.myPercent >= 40) and (_root.myPercent < 45)) {
tellTarget ("_root.loader") {
gotoAndStop (9);
};
}
if ((_root.myPercent >= 45) and (_root.myPercent < 50)) {
tellTarget ("_root.loader") {
gotoAndStop (10);
};
}
if ((_root.myPercent >= 50) and (_root.myPercent < 55)) {
tellTarget ("_root.loader") {
gotoAndStop (11);
};
}
if ((_root.myPercent >= 55) and (_root.myPercent < 60)) {
tellTarget ("_root.loader") {
gotoAndStop (12);
};
}
if ((_root.myPercent >= 60) and (_root.myPercent < 65)) {
tellTarget ("_root.loader") {
gotoAndStop (13);
};
}
if ((_root.myPercent >= 65) and (_root.myPercent < 70)) {
tellTarget ("_root.loader") {
gotoAndStop (14);
};
}
if ((_root.myPercent >= 70) and (_root.myPercent < 75)) {
tellTarget ("_root.loader") {
gotoAndStop (15);
};
}
if ((_root.myPercent >= 75) and (_root.myPercent < 80)) {
tellTarget ("_root.loader") {
gotoAndStop (16);
};
}
if ((_root.myPercent >= 80) and (_root.myPercent < 85)) {
tellTarget ("_root.loader") {
gotoAndStop (17);
};
}
if ((_root.myPercent >= 85) and (_root.myPercent < 90)) {
tellTarget ("_root.loader") {
gotoAndStop (18);
};
}
if ((_root.myPercent >= 90) and (_root.myPercent < 95)) {
tellTarget ("_root.loader") {
gotoAndStop (19);
};
}
if ((_root.myPercent >= 95) and (_root.myPercent < 105)) {
tellTarget ("_root.loader") {
gotoAndStop (20);
};
}
Symbol 594 MovieClip Frame 1
if (_root.gameover == 1) {
sendscore = new LoadVars();
sendscore.gscore = _root.score;
sendscore.gname = "2handpokeribpg";
sendscore.send("index.php?act=Arcade&do=newscore", "_self", "POST");
stop();
}
Symbol 1 MovieClip [FUIComponentSymbol] Frame 1
#initclip 1
function FUIComponentClass() {
this.init();
}
FUIComponentClass.prototype = new MovieClip();
FUIComponentClass.prototype.init = function () {
this.enable = true;
this.focused = false;
this.useHandCursor = false;
this._accImpl = new Object();
this._accImpl.stub = true;
this.styleTable = new Array();
if (_global.globalStyleFormat == undefined) {
_global.globalStyleFormat = new FStyleFormat();
globalStyleFormat.isGlobal = true;
_global._focusControl = new Object();
_global._focusControl.onSetFocus = function (oldFocus, newFocus) {
oldFocus.myOnKillFocus();
newFocus.myOnSetFocus();
};
Selection.addListener(_global._focusControl);
}
if (this._name != undefined) {
this._focusrect = false;
this.tabEnabled = true;
this.focusEnabled = true;
this.tabChildren = false;
this.tabFocused = true;
if (this.hostStyle == undefined) {
globalStyleFormat.addListener(this);
} else {
this.styleTable = this.hostStyle;
}
this.deadPreview._visible = false;
this.deadPreview._width = (this.deadPreview._height = 1);
this.methodTable = new Object();
this.keyListener = new Object();
this.keyListener.controller = this;
this.keyListener.onKeyDown = function () {
this.controller.myOnKeyDown();
};
this.keyListener.onKeyUp = function () {
this.controller.myOnKeyUp();
};
for (var i in this.styleFormat_prm) {
this.setStyleProperty(i, this.styleFormat_prm[i]);
}
}
};
FUIComponentClass.prototype.setEnabled = function (enabledFlag) {
this.enable = ((arguments.length > 0) ? (enabledFlag) : true);
this.tabEnabled = (this.focusEnabled = enabledFlag);
if ((!this.enable) && (this.focused)) {
Selection.setFocus(undefined);
}
};
FUIComponentClass.prototype.getEnabled = function () {
return(this.enable);
};
FUIComponentClass.prototype.setSize = function (w, h) {
this.width = w;
this.height = h;
this.focusRect.removeMovieClip();
};
FUIComponentClass.prototype.setChangeHandler = function (chng, obj) {
this.handlerObj = ((obj == undefined) ? (this._parent) : (obj));
this.changeHandler = chng;
};
FUIComponentClass.prototype.invalidate = function (methodName) {
this.methodTable[methodName] = true;
this.onEnterFrame = this.cleanUI;
};
FUIComponentClass.prototype.cleanUI = function () {
if (this.methodTable.setSize) {
this.setSize(this.width, this.height);
} else {
this.cleanUINotSize();
}
this.methodTable = new Object();
delete this.onEnterFrame;
};
FUIComponentClass.prototype.cleanUINotSize = function () {
for (var funct in this.methodTable) {
this[funct]();
}
};
FUIComponentClass.prototype.drawRect = function (x, y, w, h) {
var inner = this.styleTable.focusRectInner.value;
var outer = this.styleTable.focusRectOuter.value;
if (inner == undefined) {
inner = 16777215 /* 0xFFFFFF */;
}
if (outer == undefined) {
outer = 0;
}
this.createEmptyMovieClip("focusRect", 1000);
this.focusRect.controller = this;
this.focusRect.lineStyle(1, outer);
this.focusRect.moveTo(x, y);
this.focusRect.lineTo(x + w, y);
this.focusRect.lineTo(x + w, y + h);
this.focusRect.lineTo(x, y + h);
this.focusRect.lineTo(x, y);
this.focusRect.lineStyle(1, inner);
this.focusRect.moveTo(x + 1, y + 1);
this.focusRect.lineTo((x + w) - 1, y + 1);
this.focusRect.lineTo((x + w) - 1, (y + h) - 1);
this.focusRect.lineTo(x + 1, (y + h) - 1);
this.focusRect.lineTo(x + 1, y + 1);
};
FUIComponentClass.prototype.pressFocus = function () {
this.tabFocused = false;
this.focusRect.removeMovieClip();
Selection.setFocus(this);
};
FUIComponentClass.prototype.drawFocusRect = function () {
this.drawRect(-2, -2, this.width + 4, this.height + 4);
};
FUIComponentClass.prototype.myOnSetFocus = function () {
this.focused = true;
Key.addListener(this.keyListener);
if (this.tabFocused) {
this.drawFocusRect();
}
};
FUIComponentClass.prototype.myOnKillFocus = function () {
this.tabFocused = true;
this.focused = false;
this.focusRect.removeMovieClip();
Key.removeListener(this.keyListener);
};
FUIComponentClass.prototype.executeCallBack = function () {
this.handlerObj[this.changeHandler](this);
};
FUIComponentClass.prototype.updateStyleProperty = function (styleFormat, propName) {
this.setStyleProperty(propName, styleFormat[propName], styleFormat.isGlobal);
};
FUIComponentClass.prototype.setStyleProperty = function (propName, value, isGlobal) {
if (value == "") {
return(undefined);
}
var tmpValue = parseInt(value);
if (!isNaN(tmpValue)) {
value = tmpValue;
}
var global = ((arguments.length > 2) ? (isGlobal) : false);
if (this.styleTable[propName] == undefined) {
this.styleTable[propName] = new Object();
this.styleTable[propName].useGlobal = true;
}
if (this.styleTable[propName].useGlobal || (!global)) {
this.styleTable[propName].value = value;
if (this.setCustomStyleProperty(propName, value)) {
} else if (propName == "embedFonts") {
this.invalidate("setSize");
} else if (propName.subString(0, 4) == "text") {
if (this.textStyle == undefined) {
this.textStyle = new TextFormat();
}
var textProp = propName.subString(4, propName.length);
this.textStyle[textProp] = value;
this.invalidate("setSize");
} else {
for (var j in this.styleTable[propName].coloredMCs) {
var myColor = new Color(this.styleTable[propName].coloredMCs[j]);
if (this.styleTable[propName].value == undefined) {
var myTObj = {ra:"100", rb:"0", ga:"100", gb:"0", ba:"100", bb:"0", aa:"100", ab:"0"};
myColor.setTransform(myTObj);
} else {
myColor.setRGB(value);
}
}
}
this.styleTable[propName].useGlobal = global;
}
};
FUIComponentClass.prototype.registerSkinElement = function (skinMCRef, propName) {
if (this.styleTable[propName] == undefined) {
this.styleTable[propName] = new Object();
this.styleTable[propName].useGlobal = true;
}
if (this.styleTable[propName].coloredMCs == undefined) {
this.styleTable[propName].coloredMCs = new Object();
}
this.styleTable[propName].coloredMCs[skinMCRef] = skinMCRef;
if (this.styleTable[propName].value != undefined) {
var myColor = new Color(skinMCRef);
myColor.setRGB(this.styleTable[propName].value);
}
};
_global.FStyleFormat = function () {
this.nonStyles = {listeners:true, isGlobal:true, isAStyle:true, addListener:true, removeListener:true, nonStyles:true, applyChanges:true};
this.listeners = new Object();
this.isGlobal = false;
if (arguments.length > 0) {
for (var i in arguments[0]) {
this[i] = arguments[0][i];
}
}
};
_global.FStyleFormat.prototype = new Object();
FStyleFormat.prototype.addListener = function () {
var arg = 0;
while (arg < arguments.length) {
var mcRef = arguments[arg];
this.listeners[arguments[arg]] = mcRef;
for (var i in this) {
if (this.isAStyle(i)) {
mcRef.updateStyleProperty(this, i.toString());
}
}
arg++;
}
};
FStyleFormat.prototype.removeListener = function (component) {
this.listeners[component] = undefined;
for (var prop in this) {
if (this.isAStyle(prop)) {
if (component.styleTable[prop].useGlobal == this.isGlobal) {
component.styleTable[prop].useGlobal = true;
var value = (this.isGlobal ? undefined : (globalStyleFormat[prop]));
component.setStyleProperty(prop, value, true);
}
}
}
};
FStyleFormat.prototype.applyChanges = function () {
var count = 0;
for (var i in this.listeners) {
var component = this.listeners[i];
if (arguments.length > 0) {
var j = 0;
while (j < arguments.length) {
if (this.isAStyle(arguments[j])) {
component.updateStyleProperty(this, arguments[j]);
}
j++;
}
} else {
for (var j in this) {
if (this.isAStyle(j)) {
component.updateStyleProperty(this, j.toString());
}
}
}
}
};
FStyleFormat.prototype.isAStyle = function (name) {
return((this.nonStyles[name] ? false : true));
};
#endinitclip
Symbol 14 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "arrow");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 24 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "arrow");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 33 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "foregroundDisabled");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 34 MovieClip [UpArrow] Frame 1
stop();
Symbol 34 MovieClip [UpArrow] Frame 2
stop();
Symbol 34 MovieClip [UpArrow] Frame 3
stop();
Symbol 41 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 48 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 53 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(highlight3D_mc, "highlight3D");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
Symbol 54 MovieClip [ScrollThumb] Frame 1
stop();
Symbol 62 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "arrow");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 70 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "arrow");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 78 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "foregroundDisabled");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 79 MovieClip [DownArrow] Frame 1
stop();
Symbol 79 MovieClip [DownArrow] Frame 2
stop();
Symbol 79 MovieClip [DownArrow] Frame 3
stop();
Symbol 82 MovieClip Frame 1
var component = _parent;
component.registerSkinElement(track_mc, "scrollTrack");
Symbol 83 MovieClip [FScrollBarSymbol] Frame 1
#initclip 2
FScrollBarClass = function () {
if (this._height == 4) {
return(undefined);
}
this.init();
this.minPos = (this.maxPos = (this.pageSize = (this.largeScroll = 0)));
this.smallScroll = 1;
this.width = (this.horizontal ? (this._width) : (this._height));
this._xscale = (this._yscale = 100);
this.setScrollPosition(0);
this.tabEnabled = false;
if (this._targetInstanceName.length > 0) {
this.setScrollTarget(this._parent[this._targetInstanceName]);
}
this.tabChildren = false;
this.setSize(this.width);
};
FScrollBarClass.prototype = new FUIComponentClass();
FScrollBarClass.prototype.setHorizontal = function (flag) {
if (this.horizontal && (!flag)) {
this._xscale = 100;
this._rotation = 0;
} else if (flag && (!this.horizontal)) {
this._xscale = -100;
this._rotation = -90;
}
this.horizontal = flag;
};
FScrollBarClass.prototype.setScrollProperties = function (pSize, mnPos, mxPos) {
if (!this.enable) {
return(undefined);
}
this.pageSize = pSize;
this.minPos = Math.max(mnPos, 0);
this.maxPos = Math.max(mxPos, 0);
this.scrollPosition = Math.max(this.minPos, this.scrollPosition);
this.scrollPosition = Math.min(this.maxPos, this.scrollPosition);
if ((this.maxPos - this.minPos) <= 0) {
this.scrollThumb_mc.removeMovieClip();
this.upArrow_mc.gotoAndStop(3);
this.downArrow_mc.gotoAndStop(3);
this.downArrow_mc.onPress = (this.downArrow_mc.onRelease = (this.downArrow_mc.onDragOut = null));
this.upArrow_mc.onPress = (this.upArrow_mc.onRelease = (this.upArrow_mc.onDragOut = null));
this.scrollTrack_mc.onPress = (this.scrollTrack_mc.onRelease = null);
this.scrollTrack_mc.onDragOut = (this.scrollTrack_mc.onRollOut = null);
this.scrollTrack_mc.useHandCursor = false;
} else {
var tmp = this.getScrollPosition();
this.upArrow_mc.gotoAndStop(1);
this.downArrow_mc.gotoAndStop(1);
this.upArrow_mc.onPress = (this.upArrow_mc.onDragOver = this.startUpScroller);
this.upArrow_mc.onRelease = (this.upArrow_mc.onDragOut = this.stopScrolling);
this.downArrow_mc.onPress = (this.downArrow_mc.onDragOver = this.startDownScroller);
this.downArrow_mc.onRelease = (this.downArrow_mc.onDragOut = this.stopScrolling);
this.scrollTrack_mc.onPress = (this.scrollTrack_mc.onDragOver = this.startTrackScroller);
this.scrollTrack_mc.onRelease = this.stopScrolling;
this.scrollTrack_mc.onDragOut = this.stopScrolling;
this.scrollTrack_mc.onRollOut = this.stopScrolling;
this.scrollTrack_mc.useHandCursor = false;
this.attachMovie("ScrollThumb", "scrollThumb_mc", 3);
this.scrollThumb_mc._x = 0;
this.scrollThumb_mc._y = this.upArrow_mc._height;
this.scrollThumb_mc.onPress = this.startDragThumb;
this.scrollThumb_mc.controller = this;
this.scrollThumb_mc.onRelease = (this.scrollThumb_mc.onReleaseOutside = this.stopDragThumb);
this.scrollThumb_mc.useHandCursor = false;
this.thumbHeight = (this.pageSize / ((this.maxPos - this.minPos) + this.pageSize)) * this.trackSize;
this.thumbMid_mc = this.scrollThumb_mc.mc_sliderMid;
this.thumbTop_mc = this.scrollThumb_mc.mc_sliderTop;
this.thumbBot_mc = this.scrollThumb_mc.mc_sliderBot;
this.thumbHeight = Math.max(this.thumbHeight, 6);
this.midHeight = (this.thumbHeight - this.thumbTop_mc._height) - this.thumbBot_mc._height;
this.thumbMid_mc._yScale = (this.midHeight * 100) / this.thumbMid_mc._height;
this.thumbMid_mc._y = this.thumbTop_mc._height;
this.thumbBot_mc._y = this.thumbTop_mc._height + this.midHeight;
this.scrollTop = this.scrollThumb_mc._y;
this.trackHeight = this.trackSize - this.thumbHeight;
this.scrollBot = this.trackHeight + this.scrollTop;
tmp = Math.min(tmp, this.maxPos);
this.setScrollPosition(Math.max(tmp, this.minPos));
}
};
FScrollBarClass.prototype.getScrollPosition = function () {
return(this.scrollPosition);
};
FScrollBarClass.prototype.setScrollPosition = function (pos) {
this.scrollPosition = pos;
if (this.scrollThumb_mc != undefined) {
pos = Math.min(pos, this.maxPos);
pos = Math.max(pos, this.minPos);
}
this.scrollThumb_mc._y = (((pos - this.minPos) * this.trackHeight) / (this.maxPos - this.minPos)) + this.scrollTop;
this.executeCallBack();
};
FScrollBarClass.prototype.setLargeScroll = function (lScroll) {
this.largeScroll = lScroll;
};
FScrollBarClass.prototype.setSmallScroll = function (sScroll) {
this.smallScroll = sScroll;
};
FScrollBarClass.prototype.setEnabled = function (enabledFlag) {
var wasEnabled = this.enable;
if (enabledFlag && (!wasEnabled)) {
this.enable = enabledFlag;
if (this.textField != undefined) {
this.setScrollTarget(this.textField);
} else {
this.setScrollProperties(this.pageSize, this.cachedMinPos, this.cachedMaxPos);
this.setScrollPosition(this.cachedPos);
}
this.clickFilter = undefined;
} else if ((!enabledFlag) && (wasEnabled)) {
this.textField.removeListener(this);
this.cachedPos = this.getScrollPosition();
this.cachedMinPos = this.minPos;
this.cachedMaxPos = this.maxPos;
if (this.clickFilter == undefined) {
this.setScrollProperties(this.pageSize, 0, 0);
} else {
this.clickFilter = true;
}
this.enable = enabledFlag;
}
};
FScrollBarClass.prototype.setSize = function (hgt) {
if (this._height == 1) {
return(undefined);
}
this.width = hgt;
this.scrollTrack_mc._yscale = 100;
this.scrollTrack_mc._yscale = (100 * this.width) / this.scrollTrack_mc._height;
if (this.upArrow_mc == undefined) {
this.attachMovie("UpArrow", "upArrow_mc", 1);
this.attachMovie("DownArrow", "downArrow_mc", 2);
this.downArrow_mc.controller = (this.upArrow_mc.controller = this);
this.upArrow_mc.useHandCursor = (this.downArrow_mc.useHandCursor = false);
this.upArrow_mc._x = (this.upArrow_mc._y = 0);
this.downArrow_mc._x = 0;
}
this.scrollTrack_mc.controller = this;
this.downArrow_mc._y = this.width - this.downArrow_mc._height;
this.trackSize = this.width - (2 * this.downArrow_mc._height);
if (this.textField != undefined) {
this.onTextChanged();
} else {
this.setScrollProperties(this.pageSize, this.minPos, this.maxPos);
}
};
FScrollBarClass.prototype.scrollIt = function (inc, mode) {
var delt = this.smallScroll;
if (inc != "one") {
delt = ((this.largeScroll == 0) ? (this.pageSize) : (this.largeScroll));
}
var newPos = (this.getScrollPosition() + (mode * delt));
if (newPos > this.maxPos) {
newPos = this.maxPos;
} else if (newPos < this.minPos) {
newPos = this.minPos;
}
this.setScrollPosition(newPos);
};
FScrollBarClass.prototype.startDragThumb = function () {
this.lastY = this._ymouse;
this.onMouseMove = this.controller.dragThumb;
};
FScrollBarClass.prototype.dragThumb = function () {
this.scrollMove = this._ymouse - this.lastY;
this.scrollMove = this.scrollMove + this._y;
if (this.scrollMove < this.controller.scrollTop) {
this.scrollMove = this.controller.scrollTop;
} else if (this.scrollMove > this.controller.scrollBot) {
this.scrollMove = this.controller.scrollBot;
}
this._y = this.scrollMove;
var c = this.controller;
c.scrollPosition = Math.round(((c.maxPos - c.minPos) * (this._y - c.scrollTop)) / c.trackHeight) + c.minPos;
this.controller.isScrolling = true;
updateAfterEvent();
this.controller.executeCallBack();
};
FScrollBarClass.prototype.stopDragThumb = function () {
this.controller.isScrolling = false;
this.onMouseMove = null;
};
FScrollBarClass.prototype.startTrackScroller = function () {
this.controller.trackScroller();
this.controller.scrolling = setInterval(this.controller, "scrollInterval", 500, "page", -1);
};
FScrollBarClass.prototype.scrollInterval = function (inc, mode) {
clearInterval(this.scrolling);
if (inc == "page") {
this.trackScroller();
} else {
this.scrollIt(inc, mode);
}
this.scrolling = setInterval(this, "scrollInterval", 35, inc, mode);
};
FScrollBarClass.prototype.trackScroller = function () {
if ((this.scrollThumb_mc._y + this.thumbHeight) < this._ymouse) {
this.scrollIt("page", 1);
} else if (this.scrollThumb_mc._y > this._ymouse) {
this.scrollIt("page", -1);
}
};
FScrollBarClass.prototype.stopScrolling = function () {
this.controller.downArrow_mc.gotoAndStop(1);
this.controller.upArrow_mc.gotoAndStop(1);
clearInterval(this.controller.scrolling);
};
FScrollBarClass.prototype.startUpScroller = function () {
this.controller.upArrow_mc.gotoAndStop(2);
this.controller.scrollIt("one", -1);
this.controller.scrolling = setInterval(this.controller, "scrollInterval", 500, "one", -1);
};
FScrollBarClass.prototype.startDownScroller = function () {
this.controller.downArrow_mc.gotoAndStop(2);
this.controller.scrollIt("one", 1);
this.controller.scrolling = setInterval(this.controller, "scrollInterval", 500, "one", 1);
};
FScrollBarClass.prototype.setScrollTarget = function (tF) {
if (tF == undefined) {
this.textField.removeListener(this);
delete this.textField[(this.horizontal ? "hScroller" : "vScroller")];
if ((this.textField.hScroller != undefined) && (this.textField.vScroller != undefined)) {
this.textField.unwatch("text");
this.textField.unwatch("htmltext");
}
}
this.textField = undefined;
if (!(tF instanceof TextField)) {
return(undefined);
}
this.textField = tF;
this.textField[(this.horizontal ? "hScroller" : "vScroller")] = this;
this.onTextChanged();
this.onChanged = function () {
this.onTextChanged();
};
this.onScroller = function () {
if (!this.isScrolling) {
if (!this.horizontal) {
this.setScrollPosition(this.textField.scroll);
} else {
this.setScrollPosition(this.textField.hscroll);
}
}
};
this.textField.addListener(this);
this.textField.watch("text", this.callback);
this.textField.watch("htmlText", this.callback);
};
FScrollBarClass.prototype.callback = function (prop, oldVal, newVal) {
clearInterval(this.hScroller.synchScroll);
clearInterval(this.vScroller.synchScroll);
this.hScroller.synchScroll = setInterval(this.hScroller, "onTextChanged", 50);
this.vScroller.synchScroll = setInterval(this.vScroller, "onTextChanged", 50);
return(newVal);
};
FScrollBarClass.prototype.onTextChanged = function () {
if ((!this.enable) || (this.textField == undefined)) {
return(undefined);
}
clearInterval(this.synchScroll);
if (this.horizontal) {
var pos = this.textField.hscroll;
this.setScrollProperties(this.textField._width, 0, this.textField.maxhscroll);
this.setScrollPosition(Math.min(pos, this.textField.maxhscroll));
} else {
var pos = this.textField.scroll;
var pageSize = (this.textField.bottomScroll - this.textField.scroll);
this.setScrollProperties(pageSize, 1, this.textField.maxscroll);
this.setScrollPosition(Math.min(pos, this.textField.maxscroll));
}
};
FScrollBarClass.prototype.executeCallBack = function () {
if (this.textField == undefined) {
super.executeCallBack();
} else if (this.horizontal) {
this.textField.hscroll = this.getScrollPosition();
} else {
this.textField.scroll = this.getScrollPosition();
}
};
Object.registerClass("FScrollBarSymbol", FScrollBarClass);
#endinitclip
Symbol 111 MovieClip Frame 1
stop();
Symbol 112 MovieClip Frame 1
stop();
Symbol 118 MovieClip Frame 1
stop();
Symbol 118 MovieClip Frame 2
stop();
Symbol 124 MovieClip Frame 1
stop();
Symbol 124 MovieClip Frame 2
stop();
Symbol 124 MovieClip Frame 3
stop();
Symbol 124 MovieClip Frame 4
stop();
Symbol 125 MovieClip Frame 1
stop();
Symbol 125 MovieClip Frame 2
stop();
Symbol 125 MovieClip Frame 3
stop();
Symbol 125 MovieClip Frame 4
stop();
Symbol 160 MovieClip Frame 1
stop();
Symbol 177 MovieClip Frame 1
stop();
Symbol 196 MovieClip Frame 1
stop();
Symbol 214 MovieClip Frame 1
stop();
Symbol 214 MovieClip Frame 11
stop();
Symbol 215 MovieClip Frame 1
stop();
Symbol 215 MovieClip Frame 2
stop();
Symbol 215 MovieClip Frame 3
stop();
Symbol 215 MovieClip Frame 4
stop();
Symbol 236 MovieClip Frame 1
stop();
Symbol 253 MovieClip Frame 1
stop();
Symbol 285 MovieClip Frame 1
stop();
Symbol 285 MovieClip Frame 21
stop();
Symbol 286 MovieClip Frame 1
stop();
Symbol 286 MovieClip Frame 2
stop();
Symbol 286 MovieClip Frame 3
stop();
Symbol 286 MovieClip Frame 4
stop();
Symbol 306 MovieClip Frame 1
stop();
Symbol 337 MovieClip Frame 1
stop();
Symbol 349 MovieClip Frame 1
stop();
Symbol 349 MovieClip Frame 16
stop();
Symbol 362 MovieClip Frame 1
stop();
Symbol 362 MovieClip Frame 21
stop();
Symbol 363 MovieClip Frame 1
stop();
Symbol 363 MovieClip Frame 2
stop();
Symbol 363 MovieClip Frame 3
stop();
Symbol 363 MovieClip Frame 4
stop();
Symbol 364 MovieClip Frame 1
stop();
numA = 3;
myLetter = "a";
i = 1;
while (i < (numA + 1)) {
if (mySuit == 1) {
tellTarget (myLetter add i) {
gotoAndStop (1);
};
}
if (mySuit == 2) {
tellTarget (myLetter add i) {
gotoAndStop (2);
};
}
if (mySuit == 3) {
tellTarget (myLetter add i) {
gotoAndStop (3);
};
}
if (mySuit == 4) {
tellTarget (myLetter add i) {
gotoAndStop (4);
};
}
i = i + 1;
}
Symbol 364 MovieClip Frame 2
stop();
numA = 4;
myLetter = "b";
i = 1;
while (i < (numA + 1)) {
if (mySuit == 1) {
tellTarget (myLetter add i) {
gotoAndStop (1);
};
}
if (mySuit == 2) {
tellTarget (myLetter add i) {
gotoAndStop (2);
};
}
if (mySuit == 3) {
tellTarget (myLetter add i) {
gotoAndStop (3);
};
}
if (mySuit == 4) {
tellTarget (myLetter add i) {
gotoAndStop (4);
};
}
i = i + 1;
}
Symbol 364 MovieClip Frame 3
stop();
numA = 5;
myLetter = "c";
i = 1;
while (i < (numA + 1)) {
if (mySuit == 1) {
tellTarget (myLetter add i) {
gotoAndStop (1);
};
}
if (mySuit == 2) {
tellTarget (myLetter add i) {
gotoAndStop (2);
};
}
if (mySuit == 3) {
tellTarget (myLetter add i) {
gotoAndStop (3);
};
}
if (mySuit == 4) {
tellTarget (myLetter add i) {
gotoAndStop (4);
};
}
i = i + 1;
}
Symbol 364 MovieClip Frame 4
stop();
numA = 6;
myLetter = "d";
i = 1;
while (i < (numA + 1)) {
if (mySuit == 1) {
tellTarget (myLetter add i) {
gotoAndStop (1);
};
}
if (mySuit == 2) {
tellTarget (myLetter add i) {
gotoAndStop (2);
};
}
if (mySuit == 3) {
tellTarget (myLetter add i) {
gotoAndStop (3);
};
}
if (mySuit == 4) {
tellTarget (myLetter add i) {
gotoAndStop (4);
};
}
i = i + 1;
}
Symbol 364 MovieClip Frame 5
stop();
numA = 7;
myLetter = "e";
i = 1;
while (i < (numA + 1)) {
if (mySuit == 1) {
tellTarget (myLetter add i) {
gotoAndStop (1);
};
}
if (mySuit == 2) {
tellTarget (myLetter add i) {
gotoAndStop (2);
};
}
if (mySuit == 3) {
tellTarget (myLetter add i) {
gotoAndStop (3);
};
}
if (mySuit == 4) {
tellTarget (myLetter add i) {
gotoAndStop (4);
};
}
i = i + 1;
}
Symbol 364 MovieClip Frame 6
stop();
numA = 8;
myLetter = "f";
i = 1;
while (i < (numA + 1)) {
if (mySuit == 1) {
tellTarget (myLetter add i) {
gotoAndStop (1);
};
}
if (mySuit == 2) {
tellTarget (myLetter add i) {
gotoAndStop (2);
};
}
if (mySuit == 3) {
tellTarget (myLetter add i) {
gotoAndStop (3);
};
}
if (mySuit == 4) {
tellTarget (myLetter add i) {
gotoAndStop (4);
};
}
i = i + 1;
}
Symbol 364 MovieClip Frame 7
stop();
numA = 9;
myLetter = "g";
i = 1;
while (i < (numA + 1)) {
if (mySuit == 1) {
tellTarget (myLetter add i) {
gotoAndStop (1);
};
}
if (mySuit == 2) {
tellTarget (myLetter add i) {
gotoAndStop (2);
};
}
if (mySuit == 3) {
tellTarget (myLetter add i) {
gotoAndStop (3);
};
}
if (mySuit == 4) {
tellTarget (myLetter add i) {
gotoAndStop (4);
};
}
i = i + 1;
}
Symbol 364 MovieClip Frame 8
stop();
numA = 10;
myLetter = "h";
i = 1;
while (i < (numA + 1)) {
if (mySuit == 1) {
tellTarget (myLetter add i) {
gotoAndStop (1);
};
}
if (mySuit == 2) {
tellTarget (myLetter add i) {
gotoAndStop (2);
};
}
if (mySuit == 3) {
tellTarget (myLetter add i) {
gotoAndStop (3);
};
}
if (mySuit == 4) {
tellTarget (myLetter add i) {
gotoAndStop (4);
};
}
i = i + 1;
}
Symbol 364 MovieClip Frame 9
stop();
numA = 11;
myLetter = "i";
i = 1;
while (i < (numA + 1)) {
if (mySuit == 1) {
tellTarget (myLetter add i) {
gotoAndStop (1);
};
}
if (mySuit == 2) {
tellTarget (myLetter add i) {
gotoAndStop (2);
};
}
if (mySuit == 3) {
tellTarget (myLetter add i) {
gotoAndStop (3);
};
}
if (mySuit == 4) {
tellTarget (myLetter add i) {
gotoAndStop (4);
};
}
i = i + 1;
}
Symbol 364 MovieClip Frame 10
stop();
numA = 12;
myLetter = "j";
i = 1;
while (i < (numA + 1)) {
if (mySuit == 1) {
tellTarget (myLetter add i) {
gotoAndStop (1);
};
}
if (mySuit == 2) {
tellTarget (myLetter add i) {
gotoAndStop (2);
};
}
if (mySuit == 3) {
tellTarget (myLetter add i) {
gotoAndStop (3);
};
}
if (mySuit == 4) {
tellTarget (myLetter add i) {
gotoAndStop (4);
};
}
i = i + 1;
}
Symbol 364 MovieClip Frame 11
stop();
numA = 3;
myLetter = "k";
i = 1;
while (i < (numA + 1)) {
if (mySuit == 1) {
tellTarget (myLetter add i) {
gotoAndStop (1);
};
}
if (mySuit == 2) {
tellTarget (myLetter add i) {
gotoAndStop (2);
};
}
if (mySuit == 3) {
tellTarget (myLetter add i) {
gotoAndStop (3);
};
}
if (mySuit == 4) {
tellTarget (myLetter add i) {
gotoAndStop (4);
};
}
i = i + 1;
}
Symbol 364 MovieClip Frame 12
stop();
numA = 3;
myLetter = "l";
i = 1;
while (i < (numA + 1)) {
if (mySuit == 1) {
tellTarget (myLetter add i) {
gotoAndStop (1);
};
}
if (mySuit == 2) {
tellTarget (myLetter add i) {
gotoAndStop (2);
};
}
if (mySuit == 3) {
tellTarget (myLetter add i) {
gotoAndStop (3);
};
}
if (mySuit == 4) {
tellTarget (myLetter add i) {
gotoAndStop (4);
};
}
i = i + 1;
}
Symbol 364 MovieClip Frame 13
stop();
numA = 3;
myLetter = "m";
i = 1;
while (i < (numA + 1)) {
if (mySuit == 1) {
tellTarget (myLetter add i) {
gotoAndStop (1);
};
}
if (mySuit == 2) {
tellTarget (myLetter add i) {
gotoAndStop (2);
};
}
if (mySuit == 3) {
tellTarget (myLetter add i) {
gotoAndStop (3);
};
}
if (mySuit == 4) {
tellTarget (myLetter add i) {
gotoAndStop (4);
};
}
i = i + 1;
}
Symbol 364 MovieClip Frame 14
stop();
Symbol 368 MovieClip Frame 1
stop();
Symbol 368 MovieClip Frame 2
stop();
Symbol 368 MovieClip Frame 3
stop();
Symbol 368 MovieClip Frame 4
stop();
Symbol 370 Button
on (press) {
if (_root.gameOn == 2) {
_root.cardClicker(thisCardName, thisCardNumber);
}
}
Symbol 372 MovieClip Frame 1
stop();
Symbol 372 MovieClip Frame 2
stop();
Symbol 373 Button
on (press) {
if (_root.gameOn == 2) {
_root.cardPlacer(thisCardName, thisCardNumber);
}
}
on (rollOver) {
if (_root.gameOn == 2) {
tellTarget (roll) {
gotoAndStop (2);
};
}
}
on (rollOver, rollOut, dragOut, releaseOutside) {
if (_root.gameOn == 2) {
tellTarget (roll) {
gotoAndStop (1);
};
}
}
Symbol 374 MovieClip Frame 1
stop();
Symbol 374 MovieClip Frame 2
tellTarget ("card") {
gotoAndStop (14);
};
thisCard = i;
if (i < 6) {
thisCardName = "aa";
thisCardNumber = i;
} else if ((i > 5) and (i < 11)) {
thisCardName = "bb";
thisCardNumber = i - 5;
}
card.myValue = eval ("_root.deck" add i);
card.myNumber = eval ("_root.deck" add i);
card.myNumber2 = eval ("_root.deck" add i);
_root.myTemp = eval ("_root.deck" add i);
if (eval ("_root.deck" add i) < 14) {
card.mySuit = 1;
tellTarget ("card") {
gotoAndStop(_root.myTemp);
};
tellTarget ("card.t1") {
gotoAndStop (1);
};
tellTarget ("card.t2") {
gotoAndStop (1);
};
}
if ((eval ("_root.deck" add i) > 13) and (eval ("_root.deck" add i) < 27)) {
card.myNumber2 = eval ("_root.deck" add i) - 13;
_root.myTemp = eval ("_root.deck" add i) - 13;
card.myNumber = eval ("_root.deck" add i) - 13;
card.mySuit = 2;
tellTarget ("card") {
gotoAndStop(_root.myTemp);
};
tellTarget ("card.t1") {
gotoAndStop (1);
};
tellTarget ("card.t2") {
gotoAndStop (1);
};
}
if ((eval ("_root.deck" add i) > 26) and (eval ("_root.deck" add i) < 40)) {
card.myNumber2 = eval ("_root.deck" add i) - 26;
_root.myTemp = eval ("_root.deck" add i) - 26;
card.myNumber = eval ("_root.deck" add i) - 26;
card.mySuit = 3;
tellTarget ("card") {
gotoAndStop(_root.myTemp);
};
tellTarget ("card.t1") {
gotoAndStop (2);
};
tellTarget ("card.t2") {
gotoAndStop (2);
};
}
if ((eval ("_root.deck" add i) > 39) and (eval ("_root.deck" add i) < 53)) {
card.myNumber2 = eval ("_root.deck" add i) - 39;
_root.myTemp = eval ("_root.deck" add i) - 39;
card.myNumber = eval ("_root.deck" add i) - 39;
card.mySuit = 4;
tellTarget ("card") {
gotoAndStop(_root.myTemp);
};
tellTarget ("card.t1") {
gotoAndStop (2);
};
tellTarget ("card.t2") {
gotoAndStop (2);
};
}
if ((((card.myNumber == 11) or (card.myNumber == 24)) or (card.myNumber == 37)) or (card.myNumber == 50)) {
card.myNumber = "J";
}
if ((((card.myNumber == 12) or (card.myNumber == 25)) or (card.myNumber == 38)) or (card.myNumber == 51)) {
card.myNumber = "Q";
}
if ((((card.myNumber == 13) or (card.myNumber == 26)) or (card.myNumber == 39)) or (card.myNumber == 52)) {
card.myNumber = "K";
}
if ((((card.myNumber == 1) or (card.myNumber == 14)) or (card.myNumber == 27)) or (card.myNumber == 40)) {
card.myNumber = "A";
}
stop();
Symbol 374 MovieClip Frame 3
tellTarget ("card") {
gotoAndStop (14);
};
thisCard = i;
if (i < 6) {
} else if ((i > 5) and (i < 11)) {
}
card.myValue = thisCard;
card.myNumber = thisCard;
card.myNumber2 = thisCard;
_root.myTemp = thisCard;
if (thisCard < 14) {
card.mySuit = 1;
tellTarget ("card") {
gotoAndStop(_root.myTemp);
};
tellTarget ("card.t1") {
gotoAndStop (1);
};
tellTarget ("card.t2") {
gotoAndStop (1);
};
}
if ((thisCard > 13) and (thisCard < 27)) {
card.myNumber2 = thisCard - 13;
_root.myTemp = thisCard - 13;
card.myNumber = thisCard - 13;
card.mySuit = 2;
tellTarget ("card") {
gotoAndStop(_root.myTemp);
};
tellTarget ("card.t1") {
gotoAndStop (1);
};
tellTarget ("card.t2") {
gotoAndStop (1);
};
}
if ((thisCard > 26) and (thisCard < 40)) {
card.myNumber2 = thisCard - 26;
_root.myTemp = thisCard - 26;
card.myNumber = thisCard - 26;
card.mySuit = 3;
tellTarget ("card") {
gotoAndStop(_root.myTemp);
};
tellTarget ("card.t1") {
gotoAndStop (2);
};
tellTarget ("card.t2") {
gotoAndStop (2);
};
}
if ((thisCard > 39) and (thisCard < 53)) {
card.myNumber2 = thisCard - 39;
_root.myTemp = thisCard - 39;
card.myNumber = thisCard - 39;
card.mySuit = 4;
tellTarget ("card") {
gotoAndStop(_root.myTemp);
};
tellTarget ("card.t1") {
gotoAndStop (2);
};
tellTarget ("card.t2") {
gotoAndStop (2);
};
}
if ((((card.myNumber == 11) or (card.myNumber == 24)) or (card.myNumber == 37)) or (card.myNumber == 50)) {
card.myNumber = "J";
}
if ((((card.myNumber == 12) or (card.myNumber == 25)) or (card.myNumber == 38)) or (card.myNumber == 51)) {
card.myNumber = "Q";
}
if ((((card.myNumber == 13) or (card.myNumber == 26)) or (card.myNumber == 39)) or (card.myNumber == 52)) {
card.myNumber = "K";
}
if ((((card.myNumber == 1) or (card.myNumber == 14)) or (card.myNumber == 27)) or (card.myNumber == 40)) {
card.myNumber = "A";
}
stop();
Symbol 374 MovieClip Frame 4
stop();
Symbol 374 MovieClip Frame 5
gotoAndStop (3);
Symbol 374 MovieClip Frame 6
gotoAndStop (2);
Symbol 389 MovieClip Frame 1
stop();
Symbol 389 MovieClip Frame 2
play();
Symbol 389 MovieClip Frame 50
_root.flasher.gotoAndPlay(2);
stop();
Symbol 392 MovieClip Frame 1
stop();
Symbol 392 MovieClip Frame 2
stop();
Symbol 402 MovieClip Frame 1
stop();
Symbol 402 MovieClip Frame 2
stop();
Symbol 411 MovieClip Frame 1
stop();
Symbol 411 MovieClip Frame 2
play();
Symbol 416 Button
on (release) {
_root.tmpsnd = 40;
_root.mySound();
_root.pwsfunction = "pwspopup";
}
Symbol 419 Button
on (release) {
_root.tmpsnd = 40;
_root.mySound();
_root.quittime.gotoAndStop(2);
}
Symbol 435 MovieClip Frame 1
stop();
Symbol 435 MovieClip Frame 2
play();
Symbol 451 Button
on (release) {
betButtons(1);
}
on (rollOver) {
thisRoll = 1;
thisBet = 3;
betButtonsRoll();
}
on (rollOut, dragOut, releaseOutside) {
thisRoll = 1;
betButtonsOut();
}
Symbol 452 Button
on (release) {
betButtons(2);
}
on (rollOver) {
thisRoll = 2;
thisBet = 3;
betButtonsRoll();
}
on (rollOut, dragOut, releaseOutside) {
thisRoll = 2;
betButtonsOut();
}
Symbol 453 Button
on (release) {
betButtons(1);
}
on (rollOver) {
thisBet = 2;
thisRoll = 3;
betButtonsRoll();
}
on (rollOut, dragOut, releaseOutside) {
thisRoll = 3;
betButtonsOut();
}
Symbol 454 Button
on (release) {
betButtons(2);
}
on (rollOver) {
thisBet = 2;
thisRoll = 4;
betButtonsRoll();
}
on (rollOut, dragOut, releaseOutside) {
thisRoll = 4;
betButtonsOut();
}
Symbol 455 Button
on (release) {
betButtons(1);
}
on (rollOver) {
thisRoll = 5;
thisBet = 1;
betButtonsRoll();
}
on (rollOut, dragOut, releaseOutside) {
thisRoll = 5;
betButtonsOut();
}
Symbol 456 Button
on (release) {
betButtons(2);
}
on (rollOver) {
thisRoll = 6;
thisBet = 1;
betButtonsRoll();
}
on (rollOut, dragOut, releaseOutside) {
thisRoll = 6;
betButtonsOut();
}
Symbol 457 Button
on (release) {
betButtons(4);
}
on (rollOver) {
thisRoll = 8;
betButtonsRoll();
}
on (rollOut, dragOut, releaseOutside) {
thisRoll = 8;
betButtonsOut();
}
Symbol 458 Button
on (release) {
betButtons(7);
}
on (rollOver) {
thisRoll = 11;
betButtonsRoll();
}
on (rollOut, dragOut, releaseOutside) {
thisRoll = 11;
betButtonsOut();
}
Symbol 459 Button
on (release) {
betButtons("all");
}
on (rollOver) {
thisRoll = 0;
thisBet = "all";
betButtonsRoll();
}
on (rollOut, dragOut, releaseOutside) {
thisRoll = 0;
betButtonsOut();
}
Symbol 462 MovieClip Frame 1
stop();
Symbol 462 MovieClip Frame 2
stop();
Symbol 464 Button
on (press) {
if (_root.soundFX == 1) {
stopAllSounds();
_root.soundTemp = 0;
_root.soundIcon.gotoAndStop(2);
}
if (_root.soundFX == 0) {
_root.soundTemp = 1;
_root.soundIcon.gotoAndStop(1);
}
_root.soundFX = _root.soundTemp;
}
Symbol 465 Button
on (release) {
betButtons(5);
}
on (rollOver) {
thisRoll = 9;
betButtonsRoll();
}
on (rollOut, dragOut, releaseOutside) {
thisRoll = 9;
betButtonsOut();
}
Symbol 466 Button
on (release) {
betButtons(3);
}
on (rollOver) {
thisRoll = 7;
betButtonsRoll();
}
on (rollOut, dragOut, releaseOutside) {
thisRoll = 7;
betButtonsOut();
}
Symbol 469 MovieClip Frame 1
stop();
Symbol 469 MovieClip Frame 2
stop();
Symbol 472 MovieClip Frame 1
stop();
Symbol 472 MovieClip Frame 2
stop();
Symbol 475 MovieClip Frame 1
stop();
Symbol 475 MovieClip Frame 2
stop();
Symbol 476 MovieClip Frame 1
function scoreMe() {
sort = 0;
while (Number(sort) == 0) {
sort = 1;
j = 1;
while (j < 5) {
if (eval ("card" add j) > eval ("card" add (j + 1))) {
sort = 0;
tmp = eval ("card" add j);
Set("card" add j, eval ("card" add (j + 1)));
Set("card" add (j + 1), tmp);
tmp = eval ("z" add j);
Set("z" add j, eval ("z" add (j + 1)));
Set("z" add (j + 1), tmp);
}
j = j + 1;
}
}
pairNum0 = 0;
pairNum1 = 0;
i = 2;
u0 = 0;
u1 = 0;
un = 0;
while (Number(i) < 6) {
if (eval ("card" add i) == eval ("card" add (i - 1))) {
Set("u" add un, eval ("u" add un) + 1);
Set("pairNum" add un, eval ("card" add i));
} else if (eval ("u" add un) > 0) {
un = Number(un) + 1;
}
i = Number(i) + 1;
}
if (Number(u0) == 3) {
playerHand = 7;
if (pairNum0 == 1) {
playerHand = 11;
}
if (((pairNum0 == 2) or (pairNum0 == 3)) or (pairNum0 == 4)) {
playerHand = 10;
}
}
if (Number(u0) == 2) {
playerHand = 3;
}
if (Number(u0) == 1) {
playerHand = 1;
}
if (((Number(u0) == 2) and (Number(u1) == 1)) or ((Number(u0) == 1) and (Number(u1) == 2))) {
if (u0 == 2) {
tmpPN = pairNum0;
tmpPN2 = pairNum1;
} else {
tmpPN = pairNum1;
tmpPN2 = pairNum0;
}
pairNum0 = tmpPN;
pairNum1 = tmpPN2;
playerHand = 6;
}
if ((Number(u0) == 1) and (Number(u1) == 1)) {
playerHand = 2;
}
i = 2;
straight = 1;
while (Number(i) < 6) {
if (eval ("card" add i) != (eval ("card" add (i - 1)) + 1)) {
straight = 0;
}
i = Number(i) + 1;
}
if ((Number(straight) == 1) or (((((Number(card1) == 1) and (Number(card2) == 10)) and (Number(card3) == 11)) and (Number(card4) == 12)) and (Number(card5) == 13))) {
straight = 1;
playerHand = 4;
}
i = 2;
flush = 1;
while (Number(i) < 6) {
if (eval ("z" add i) != eval ("z" add (i - 1))) {
flush = 0;
}
i = Number(i) + 1;
}
if (Number(flush) == 1) {
playerHand = 5;
}
if ((Number(straight) == 1) and (Number(flush) == 1)) {
playerHand = 8;
}
if ((((Number(straight) == 1) and (Number(flush) == 1)) and (Number(card1) == 1)) and (Number(card5) == 13)) {
playerHand = 9;
}
}
function thisPay1() {
_root.payMe1.displayText = ((eval ("_root.paytableText" + playerHand) + " ") + (eval ("_root.paytable" + playerHand) * _root.bet1)) + " Credits";
_root.payMe1.displayPay = eval ("_root.paytable" + playerHand) * _root.bet1;
_root.winnerPaid = _root.winnerPaid + (eval ("_root.paytable" + playerHand) * _root.bet1);
_root.credits = _root.credits + _root.winnerPaid;
_root.tmpsnd = 50;
_root.mySound();
_root.payMe1.gotoAndStop(2);
}
function thisPay2() {
_root.payMe2.displayText = ((eval ("_root.paytableText" + playerHand) + " ") + (eval ("_root.paytable" + playerHand) * _root.bet2)) + " Credits";
_root.payMe2.displayPay = eval ("_root.paytable" + playerHand) * _root.bet2;
_root.winnerPaid = _root.winnerPaid + (eval ("_root.paytable" + playerHand) * _root.bet2);
_root.credits = _root.credits + (eval ("_root.paytable" + playerHand) * _root.bet2);
_root.tmpsnd = 50;
_root.mySound();
_root.payMe2.gotoAndStop(2);
}
function thisPay3() {
_root.payMe3.displayText = ((eval ("_root.paytableText" + playerHand) + " ") + (eval ("_root.paytable" + playerHand) * _root.bet3)) + " Credits";
_root.payMe3.displayPay = eval ("_root.paytable" + playerHand) * _root.bet3;
_root.winnerPaid = _root.winnerPaid + (eval ("_root.paytable" + playerHand) * _root.bet3);
_root.credits = _root.credits + (eval ("_root.paytable" + playerHand) * _root.bet3);
_root.tmpsnd = 50;
_root.mySound();
_root.payMe3.gotoAndStop(2);
}
stop();
Symbol 476 MovieClip Frame 2
_root.shuffleDeck();
k = 1;
while (k < 6) {
if (k < 4) {
Set("thisPick" + k, true);
} else {
Set("thisPick" + k, false);
}
k++;
}
i = 1;
while (i < 6) {
a = random(5) + 1;
swap1 = eval ("thisPick" add a);
swap2 = eval ("thisPick" add i);
Set("thisPick" add i, swap1);
Set("thisPick" add a, swap2);
i = i + 1;
}
i = 1;
Symbol 476 MovieClip Frame 3
play();
Symbol 476 MovieClip Frame 4
if (i < 6) {
if (_root.gameType == 1) {
if (eval ("thisPick" + i) == true) {
tellTarget ("_root.aa" + i) {
gotoAndStop (2);
};
}
} else {
tellTarget ("_root.aa" + i) {
gotoAndStop (2);
};
}
} else {
tellTarget ("_root.bb" + (i - 5)) {
gotoAndStop (2);
};
}
_root.tmpsnd = 40;
_root.mySound();
i = i + 1;
Symbol 476 MovieClip Frame 5
if (i < 11) {
gotoAndPlay (3);
} else {
play();
}
Symbol 476 MovieClip Frame 9
_root.gameOn = 2;
_root.helpText = "Place Cards Above - Hit DEAL/DRAW When Done";
_root.pcFu.gotoAndStop(2);
stop();
Symbol 476 MovieClip Frame 17
k = 1;
while (k < 6) {
setProperty("_root.aa" + K, _visible , false);
setProperty("_root.bb" + k, _visible , false);
k++;
}
numCardsLeft = 0;
k = 1;
while (k < 6) {
if ((eval (("_root.a" + k) + ".amIon") == false) and (_root.bet1 > 0)) {
numCardsLeft = numCardsLeft + 1;
}
if ((eval (("_root.b" + k) + ".amIon") == false) and (_root.bet2 > 0)) {
numCardsLeft = numCardsLeft + 1;
}
if ((eval (("_root.c" + k) + ".amIon") == false) and (_root.bet3 > 0)) {
numCardsLeft = numCardsLeft + 1;
}
k++;
}
next = 1;
play();
Symbol 476 MovieClip Frame 18
play();
Symbol 476 MovieClip Frame 19
k = next;
while (k < 16) {
if (k < 6) {
thisName = "a";
thisNumber = k;
thisBet = 1;
}
if ((k > 5) and (k < 11)) {
thisName = "b";
thisNumber = k - 5;
thisBet = 2;
}
if ((k > 10) and (k < 16)) {
thisName = "c";
thisNumber = k - 10;
thisBet = 3;
}
if ((eval ((("_root." + thisName) + thisNumber) + ".amIon") == false) and (eval ("_root.bet" + thisBet) > 0)) {
_root.tmpsnd = 40;
_root.mySound();
Set((("_root." + thisName) + thisNumber) + ".i", i);
tellTarget (("_root." + thisName) + thisNumber) {
gotoAndPlay (6);
};
setProperty(("_root." + thisName) + thisNumber, _visible , true);
}
k = 17;
k++;
}
i = i + 1;
Symbol 476 MovieClip Frame 22
if (i < 26) {
next = next + 1;
gotoAndPlay (18);
} else {
play();
}
Symbol 476 MovieClip Frame 23
play();
Symbol 476 MovieClip Frame 24
if (_root.bet1 > 0) {
thisName = "a";
k = 1;
while (k < 6) {
Set("card" + k, eval ((("_root." + thisName) + k) + ".card.myNumber2"));
Set("z" + k, eval ((("_root." + thisName) + k) + ".card.mySuit"));
k++;
}
} else {
gotoAndPlay (35);
}
Symbol 476 MovieClip Frame 28
playerHand = 0;
scoreMe();
if ((playerHand == 0) or (playerHand == 1)) {
_root.payMe1.displayText = eval ("_root.paytableText" + playerHand);
_root.payMe1.displayPay = eval ("_root.paytable" + playerHand) * _root.bet1;
_root.winnerPaid = _root.winnerPaid + 0;
_root.tmpsnd = 50;
_root.mySound();
_root.payMe1.gotoAndStop(2);
}
if (playerHand >= 2) {
thisPay1();
}
Symbol 476 MovieClip Frame 35
if (_root.bet2 > 0) {
thisName = "b";
k = 1;
while (k < 6) {
Set("card" + k, eval ((("_root." + thisName) + k) + ".card.myNumber2"));
Set("z" + k, eval ((("_root." + thisName) + k) + ".card.mySuit"));
k++;
}
} else {
gotoAndPlay (47);
}
Symbol 476 MovieClip Frame 39
playerHand = 0;
scoreMe();
if ((playerHand == 0) or (playerHand == 1)) {
_root.payMe2.displayText = eval ("_root.paytableText" + playerHand);
_root.payMe2.displayPay = eval ("_root.paytable" + playerHand) * _root.bet2;
_root.winnerPaid = _root.winnerPaid + 0;
_root.tmpsnd = 50;
_root.mySound();
_root.payMe2.gotoAndStop(2);
}
if (playerHand >= 2) {
thisPay2();
}
Symbol 476 MovieClip Frame 47
if (_root.bet3 > 0) {
thisName = "c";
k = 1;
while (k < 6) {
Set("card" + k, eval ((("_root." + thisName) + k) + ".card.myNumber2"));
Set("z" + k, eval ((("_root." + thisName) + k) + ".card.mySuit"));
k++;
}
} else {
gotoAndPlay (54);
}
Symbol 476 MovieClip Frame 51
playerHand = 0;
scoreMe();
if ((playerHand == 0) or (playerHand == 1)) {
_root.payMe3.displayText = eval ("_root.paytableText" + playerHand);
_root.payMe3.displayPay = eval ("_root.paytable" + playerHand) * _root.bet3;
_root.winnerPaid = _root.winnerPaid + 0;
_root.tmpsnd = 50;
_root.mySound();
_root.payMe3.gotoAndStop(2);
}
if (playerHand >= 2) {
thisPay3();
}
Symbol 476 MovieClip Frame 54
_root.helpText = "Game Over";
_root.gameOverMC.gotoAndStop(2);
_root.pcFu.gotoAndStop(1);
stop();
Symbol 476 MovieClip Frame 56
gotoAndStop (1);
Symbol 483 MovieClip Frame 1
stop();
Symbol 483 MovieClip Frame 2
stop();
Symbol 486 Button
on (release) {
_root.betButtons(6);
gotoAndStop (1);
}
on (rollOver) {
_root.thisRoll = 10;
_root.betButtonsRoll();
}
on (rollOut, dragOut, releaseOutside) {
_root.thisRoll = 10;
_root.betButtonsOut();
}
Symbol 487 MovieClip Frame 1
stop();
Symbol 487 MovieClip Frame 2
stop();
Symbol 492 MovieClip Frame 1
stop();
Symbol 492 MovieClip Frame 2
stop();
Symbol 499 Button
on (release) {
_root.gameType = 1;
_root.startGame();
_root.gameOn = 1;
gotoAndStop (1);
}
Symbol 500 Button
on (release) {
_root.gameType = 2;
_root.startGame();
_root.gameOn = 1;
gotoAndStop (1);
}
Symbol 502 MovieClip Frame 1
stop();
Symbol 502 MovieClip Frame 2
stop();
Symbol 543 Button
on (release) {
_root.tmpsnd = 45;
_root.mySound();
gotoAndStop (1);
}
Symbol 544 MovieClip Frame 1
stop();
Symbol 544 MovieClip Frame 2
stop();
Symbol 552 Button
on (release) {
_root.pwsfunction = "pwsquit";
}
Symbol 553 Button
on (release) {
_root.tmpsnd = 45;
_root.mySound();
gotoAndStop (1);
}
Symbol 554 MovieClip Frame 1
stop();
Symbol 554 MovieClip Frame 2
stop();
Symbol 577 MovieClip Frame 1
stop();
Symbol 577 MovieClip Frame 2
stop();
Symbol 577 MovieClip Frame 3
stop();
Symbol 579 MovieClip Frame 1
stop();
Symbol 579 MovieClip Frame 2
_root.result = "";
_root.quittime.gotoAndStop(1);
_root.paytableDisplay.gotoAndStop(1);
coins = 100;
score = _root.credits;
myCoins = score * _root.convtocoinfactor;
gameid = _root.gameid;
count = 1;
_root.pork = "1";
_root.tmpsnd = 55;
_root.mySound();
Symbol 579 MovieClip Frame 12
_root.checkhigh(score);
Symbol 579 MovieClip Frame 61
_root.checkhigh(score);
_root.disscore = score;
_root.exch = _root.disscore / 50;
_root.exchange = myCoins;
count = 0;
Symbol 579 MovieClip Frame 102
_root.score = _root.credits;
_root.count = 0;
_root.gameover = 1;
stop();
Symbol 593 MovieClip Frame 1
stop();
Symbol 593 MovieClip Frame 5
play();
Symbol 593 MovieClip Frame 6
gotoAndStop (1);
Symbol 593 MovieClip Frame 10
play();
Symbol 593 MovieClip Frame 11
gotoAndStop (1);
Symbol 593 MovieClip Frame 15
play();
Symbol 593 MovieClip Frame 16
gotoAndStop (1);
Symbol 593 MovieClip Frame 20
play();
Symbol 593 MovieClip Frame 21
gotoAndStop (1);
Symbol 593 MovieClip Frame 25
play();
Symbol 593 MovieClip Frame 26
gotoAndStop (1);
Symbol 593 MovieClip Frame 30
play();
Symbol 593 MovieClip Frame 31
gotoAndStop (1);
Symbol 593 MovieClip Frame 35
play();
Symbol 593 MovieClip Frame 36
gotoAndStop (1);
Symbol 593 MovieClip Frame 40
play();
Symbol 593 MovieClip Frame 41
gotoAndStop (1);
Symbol 593 MovieClip Frame 45
play();
Symbol 593 MovieClip Frame 46
gotoAndStop (1);
Symbol 593 MovieClip Frame 50
play();
Symbol 593 MovieClip Frame 51
gotoAndStop (1);
Symbol 593 MovieClip Frame 55
play();
Symbol 593 MovieClip Frame 56
gotoAndStop (1);
Symbol 593 MovieClip Frame 60
play();
Symbol 593 MovieClip Frame 61
gotoAndStop (1);
Symbol 593 MovieClip Frame 65
play();
Symbol 593 MovieClip Frame 66
gotoAndStop (1);
Symbol 593 MovieClip Frame 70
play();
Symbol 593 MovieClip Frame 71
gotoAndStop (1);