Frame 1
txtPercentage = Math.round((_root.getBytesLoaded() / _root.getBytesTotal()) * 100) add "% loaded";
tellTarget ("loader") {
gotoAndPlay(Math.round((_root.getBytesLoaded() / _root.getBytesTotal()) * 100));
};
Frame 2
if (_root.getBytesLoaded() == _root.getBytesTotal()) {
gotoAndStop (3);
} else {
gotoAndPlay (1);
}
Frame 3
Stage.showMenu = false;
function startGame1() {
showCash();
gotoAndPlay (4);
}
startGame1();
myData = SharedObject.getLocal("myfile");
score.text = myData.data.score;
fscommand ("fullscreen", true);
fscommand ("showmenu", false);
fscommand ("allowscale", true);
tellTarget ("/award") {
gotoAndStop (2);
};
stop();
Frame 4
stop();
if (cash > 19999) {
tellTarget ("/award") {
gotoAndStop (20);
};
} else if ((cash < 19999) and (cash > 18999)) {
tellTarget ("/award") {
gotoAndStop (20);
};
} else if ((cash < 18999) and (cash > 17999)) {
tellTarget ("/award") {
gotoAndStop (19);
};
} else if ((cash < 17999) and (cash > 16999)) {
tellTarget ("/award") {
gotoAndStop (18);
};
} else if ((cash < 16999) and (cash > 15999)) {
tellTarget ("/award") {
gotoAndStop (17);
};
} else if ((cash < 15999) and (cash > 14999)) {
tellTarget ("/award") {
gotoAndStop (16);
};
} else if ((cash < 14999) and (cash > 13999)) {
tellTarget ("/award") {
gotoAndStop (15);
};
} else if ((cash < 13999) and (cash > 12999)) {
tellTarget ("/award") {
gotoAndStop (14);
};
} else if ((cash < 12999) and (cash > 11999)) {
tellTarget ("/award") {
gotoAndStop (13);
};
} else if ((cash < 11999) and (cash > 10999)) {
tellTarget ("/award") {
gotoAndStop (12);
};
} else if ((cash < 10999) and (cash > 9999)) {
tellTarget ("/award") {
gotoAndStop (11);
};
} else if ((cash < 9999) and (cash > 8999)) {
tellTarget ("/award") {
gotoAndStop (10);
};
} else if ((cash < 8999) and (cash > 7999)) {
tellTarget ("/award") {
gotoAndStop (9);
};
} else if ((cash < 7999) and (cash > 6999)) {
tellTarget ("/award") {
gotoAndStop (8);
};
} else if ((cash < 6999) and (cash > 5999)) {
tellTarget ("/award") {
gotoAndStop (7);
};
} else if ((cash < 5999) and (cash > 4999)) {
tellTarget ("/award") {
gotoAndStop (6);
};
} else if ((cash < 4999) and (cash > 3999)) {
tellTarget ("/award") {
gotoAndStop (5);
};
} else if ((cash < 3999) and (cash > 2999)) {
tellTarget ("/award") {
gotoAndStop (4);
};
} else if ((cash < 2999) and (cash > 1999)) {
tellTarget ("/award") {
gotoAndStop (3);
};
} else if ((cash < 1999) and (cash > 999)) {
tellTarget ("/award") {
gotoAndStop (2);
};
} else if ((cash < 999) and (cash > 1)) {
tellTarget ("/award") {
gotoAndStop (1);
};
} else if (cash == 0) {
tellTarget ("/award") {
gotoAndStop (2);
};
}
function Need() {
myData.data.score = score.text;
myData.flush();
}
function startGame() {
bet = 0;
showBet();
}
function tellBet() {
output1 = bet * 5000;
output2 = bet * 300;
output3 = bet * 100;
output4 = bet * 25;
output5 = bet * 20;
output6 = bet * 10;
output7 = bet * 3;
output8 = bet * 2;
output9 = bet;
}
function startDeal() {
createDeck();
firstDraw();
showCards();
}
function createDeck() {
suits = ["c", "d", "s", "h"];
temp = new Array();
suit = 0;
while (suit < 4) {
num = 1;
while (num < 14) {
temp.push(suits[suit] + num);
num++;
}
suit++;
}
deck = new Array();
while (temp.length > 0) {
r = int(Math.random() * temp.length);
deck.push(temp[r]);
temp.splice(r, 1);
}
}
function firstDraw() {
cards = new Array();
i = 0;
while (i < 5) {
cards.push(deck.pop());
i++;
}
hold = [true, true, true, true, true];
showCards();
handValue1();
}
function showCards() {
i = 0;
while (i < 5) {
_root["card" + i].gotoAndStop(cards[i]);
i++;
}
}
function holdDraw(cardNum) {
if (hold[cardNum]) {
_root["card" + cardNum].gotoAndStop("back");
hold[cardNum] = false;
mysound = new Sound();
mySound.attachSound("select");
mySound.start(0, 1);
mySound.setPan(0);
mySound.setVolume(100);
} else {
_root["card" + cardNum].gotoAndStop(cards[cardNum]);
hold[cardNum] = true;
mysound = new Sound();
mySound.attachSound("select");
mySound.start(0, 1);
mySound.setPan(0);
mySound.setVolume(100);
}
}
function showFlsh() {
tellTarget ("pair") {
gotoAndStop (1);
};
tellTarget ("2p") {
gotoAndStop (1);
};
tellTarget ("3k") {
gotoAndStop (1);
};
tellTarget ("st8") {
gotoAndStop (1);
};
tellTarget ("flush") {
gotoAndStop (1);
};
tellTarget ("boat") {
gotoAndStop (1);
};
tellTarget ("4k") {
gotoAndStop (1);
};
tellTarget ("st8f") {
gotoAndStop (1);
};
tellTarget ("sf") {
gotoAndStop (1);
};
}
function secondDraw() {
showFlsh();
i = 0;
while (i < 5) {
if (!hold[i]) {
cards[i] = deck.pop();
}
i++;
}
showCards();
handVal = handValue(cards);
winAmt = bet * winnings(handVal);
resultsDisplay = ((handVal + " : ") + "$") + winAmt;
cash = cash + winAmt;
showCash();
gotoAndPlay (6);
}
function compareHands(a, b) {
numa = Number(a.substr(1, 2));
numb = Number(b.substr(1, 2));
if (numa < numb) {
return(-1);
}
if (numa == numb) {
return(0);
}
if (numa > numb) {
return(1);
}
}
function handValue() {
hand = cards.slice();
hand.sort(compareHands);
suits = new Array();
nums = new Array();
i = 0;
while (i < 5) {
suits.push(hand[i].substr(0, 1));
nums.push(Number(hand[i].substr(1, 2)));
i++;
}
straight = true;
i = 0;
while (i < 4) {
if ((nums[i] + 1) != nums[i + 1]) {
straight = false;
}
i++;
}
if (((((nums[0] == 1) and (nums[1] == 10)) and (nums[2] == 11)) and (nums[3] == 12)) and (nums[4] == 13)) {
straight = true;
}
flush = true;
i = 1;
while (i < 5) {
if (suits[i] != suits[0]) {
flush = false;
}
i++;
}
counts = new Array();
i = 0;
while (i < 14) {
counts.push(0);
i++;
}
i = 0;
while (i < 5) {
counts[nums[i]]++;
i++;
}
pair = false;
twoPair = false;
threeOfAKind = false;
fourOfAKind = false;
i = 1;
while (i < 14) {
if (counts[i] == 2) {
if (pair) {
twoPair = true;
} else {
pair = true;
}
} else if (counts[i] == 3) {
threeOfAKind = true;
} else if (counts[i] == 4) {
fourOfAKind = true;
}
i++;
}
jackOrHigher = false;
i = 1;
while (i < 14) {
if (((i == 1) or (i > 10)) and (counts[i] >= 2)) {
jackOrHigher = true;
}
i++;
}
hasAce = false;
if (counts[1] > 0) {
hasAce = true;
}
if ((straight and flush) and hasAce) {
mysound = new Sound();
mySound.attachSound("won");
mySound.start(0, 1);
mySound.setPan(0);
mySound.setVolume(100);
return("Royal Flush");
}
if (straight and flush) {
mysound = new Sound();
mySound.attachSound("won");
mySound.start(0, 1);
mySound.setPan(0);
mySound.setVolume(100);
return("Straight Flush");
}
if (fourOfAKind) {
mysound = new Sound();
mySound.attachSound("won");
mySound.start(0, 1);
mySound.setPan(0);
mySound.setVolume(100);
return("Four Of A Kind");
}
if (pair and threeOfAKind) {
mysound = new Sound();
mySound.attachSound("won");
mySound.start(0, 1);
mySound.setPan(0);
mySound.setVolume(100);
return("Full House");
}
if (flush) {
mysound = new Sound();
mySound.attachSound("won");
mySound.start(0, 1);
mySound.setPan(0);
mySound.setVolume(100);
return("Flush");
}
if (straight) {
mysound = new Sound();
mySound.attachSound("won");
mySound.start(0, 1);
mySound.setPan(0);
mySound.setVolume(100);
return("Straight");
}
if (threeOfAKind) {
mysound = new Sound();
mySound.attachSound("won");
mySound.start(0, 1);
mySound.setPan(0);
mySound.setVolume(100);
return("Three Of A Kind");
}
if (twoPair) {
mysound = new Sound();
mySound.attachSound("won");
mySound.start(0, 1);
mySound.setPan(0);
mySound.setVolume(100);
return("Two Pair");
}
if (pair) {
tellTarget ("pair") {
gotoAndPlay (2);
mysound = new Sound();
mySound.attachSound("won");
mySound.start(0, 1);
mySound.setPan(0);
mySound.setVolume(100);
};
return("Pair");
}
return("Try Again");
}
function handValue1() {
hand = cards.slice();
hand.sort(compareHands);
suits = new Array();
nums = new Array();
i = 0;
while (i < 5) {
suits.push(hand[i].substr(0, 1));
nums.push(Number(hand[i].substr(1, 2)));
i++;
}
straight = true;
i = 0;
while (i < 4) {
if ((nums[i] + 1) != nums[i + 1]) {
straight = false;
}
i++;
}
if (((((nums[0] == 1) and (nums[1] == 10)) and (nums[2] == 11)) and (nums[3] == 12)) and (nums[4] == 13)) {
straight = true;
}
flush = true;
i = 1;
while (i < 5) {
if (suits[i] != suits[0]) {
flush = false;
}
i++;
}
counts = new Array();
i = 0;
while (i < 14) {
counts.push(0);
i++;
}
i = 0;
while (i < 5) {
counts[nums[i]]++;
i++;
}
pair = false;
twoPair = false;
threeOfAKind = false;
fourOfAKind = false;
i = 1;
while (i < 14) {
if (counts[i] == 2) {
if (pair) {
twoPair = true;
} else {
pair = true;
}
} else if (counts[i] == 3) {
threeOfAKind = true;
} else if (counts[i] == 4) {
fourOfAKind = true;
}
i++;
}
jackOrHigher = false;
i = 1;
while (i < 14) {
if (((i == 1) or (i > 10)) and (counts[i] >= 2)) {
jackOrHigher = true;
}
i++;
}
hasAce = false;
if (counts[1] > 0) {
hasAce = true;
}
if ((straight and flush) and hasAce) {
tellTarget ("sf") {
gotoAndPlay (2);
};
return("Royal Flush");
}
if (straight and flush) {
tellTarget ("st8f") {
gotoAndPlay (2);
};
return("Straight Flush");
}
if (fourOfAKind) {
tellTarget ("4k") {
gotoAndPlay (2);
};
return("Four Of A Kind");
}
if (pair and threeOfAKind) {
tellTarget ("boat") {
gotoAndPlay (2);
};
return("Full House");
}
if (flush) {
tellTarget ("flush") {
gotoAndPlay (2);
};
return("Flush");
}
if (straight) {
tellTarget ("st8") {
gotoAndPlay (2);
};
return("Straight");
}
if (threeOfAKind) {
tellTarget ("3k") {
gotoAndPlay (2);
};
return("Three Of A Kind");
}
if (twoPair) {
tellTarget ("2p") {
gotoAndPlay (2);
};
return("Two Pair");
}
if (pair) {
tellTarget ("pair") {
gotoAndPlay (2);
};
return("Pair");
}
return("Try Again");
}
function winnings(handVal) {
if (handVal == "Royal Flush") {
return(5000);
}
if (handVal == "Straight Flush") {
return(300);
}
if (handVal == "Four Of A Kind") {
return(100);
}
if (handVal == "Full House") {
return(25);
}
if (handVal == "Flush") {
return(20);
}
if (handVal == "Straight") {
return(10);
}
if (handVal == "Three Of A Kind") {
return(3);
}
if (handVal == "Two Pair") {
return(2);
}
if (handVal == "Pair") {
return(1);
}
if (handVal == "Try Again") {
return(0);
}
}
startGame();
stop();
if (cash <= 0) {
cash = 1000;
}
Frame 5
startDeal();
stop();
Frame 6
stop();
Symbol 17 Button
on (release) {
getURL ("http://pornoigry.net", "_blank");
}
Symbol 22 MovieClip Frame 1
stop();
Symbol 22 MovieClip Frame 10
gotoAndPlay (2);
Symbol 26 MovieClip Frame 1
stop();
Symbol 26 MovieClip Frame 10
gotoAndPlay (2);
Symbol 31 MovieClip Frame 1
stop();
Symbol 31 MovieClip Frame 10
gotoAndPlay (2);
Symbol 35 MovieClip Frame 1
stop();
Symbol 35 MovieClip Frame 10
gotoAndPlay (2);
Symbol 39 MovieClip Frame 1
stop();
Symbol 39 MovieClip Frame 10
gotoAndPlay (2);
Symbol 43 MovieClip Frame 1
stop();
Symbol 43 MovieClip Frame 10
gotoAndPlay (2);
Symbol 47 MovieClip Frame 1
stop();
Symbol 47 MovieClip Frame 10
gotoAndPlay (2);
Symbol 51 MovieClip Frame 1
stop();
Symbol 51 MovieClip Frame 10
gotoAndPlay (2);
Symbol 55 MovieClip Frame 1
stop();
Symbol 55 MovieClip Frame 10
gotoAndPlay (2);
Symbol 87 MovieClip Frame 1
stop();
Symbol 94 Button
on (press) {
holdDraw(3);
}
Symbol 95 Button
on (press) {
holdDraw(0);
}
Symbol 96 Button
on (press) {
holdDraw(1);
}
Symbol 97 Button
on (press) {
holdDraw(4);
}
Symbol 98 Button
on (press) {
holdDraw(2);
}
Symbol 119 Button
on (press) {
if (Number(bet) > 0) {
gotoAndPlay (5);
}
}
Symbol 121 Button
on (release) {
if (Number(cash) > 0) {
bet = Number(bet) + 1000;
cash = cash - 1000;
tellBet();
mysound = new Sound();
mySound.attachSound("bet1");
mySound.start(0, 1);
mySound.setPan(0);
mySound.setVolume(100);
}
}
Symbol 123 Button
on (release) {
if (Number(cash) > 0) {
bet = Number(bet) + 100;
cash = cash - 100;
tellBet();
mysound = new Sound();
mySound.attachSound("bet1");
mySound.start(0, 1);
mySound.setPan(0);
mySound.setVolume(100);
}
}
Symbol 125 Button
on (release) {
if (Number(cash) > 0) {
bet = Number(bet) + 10;
cash = cash - 10;
tellBet();
mysound = new Sound();
mySound.attachSound("bet1");
mySound.start(0, 1);
mySound.setPan(0);
mySound.setVolume(100);
}
}
Symbol 127 Button
on (press) {
mysound = new Sound();
mySound.attachSound("play1");
mySound.start(0, 1);
mySound.setPan(0);
mySound.setVolume(100);
startGame();
cash = 1000;
output1 = "";
output2 = "";
output3 = "";
output4 = "";
output5 = "";
output6 = "";
output7 = "";
output8 = "";
output9 = "";
}
on (release) {
tellTarget ("/award") {
gotoAndStop (2);
};
}
Symbol 193 MovieClip Frame 1
stop();
Symbol 193 MovieClip Frame 2
stop();
Symbol 193 MovieClip Frame 3
stop();
Symbol 193 MovieClip Frame 4
stop();
Symbol 193 MovieClip Frame 5
stop();
Symbol 193 MovieClip Frame 6
stop();
Symbol 193 MovieClip Frame 7
stop();
Symbol 193 MovieClip Frame 8
stop();
Symbol 193 MovieClip Frame 9
stop();
Symbol 193 MovieClip Frame 10
stop();
Symbol 193 MovieClip Frame 11
stop();
Symbol 193 MovieClip Frame 12
stop();
Symbol 193 MovieClip Frame 13
stop();
Symbol 193 MovieClip Frame 14
stop();
Symbol 193 MovieClip Frame 15
stop();
Symbol 193 MovieClip Frame 16
stop();
Symbol 193 MovieClip Frame 17
stop();
Symbol 193 MovieClip Frame 18
stop();
Symbol 193 MovieClip Frame 19
stop();
Symbol 193 MovieClip Frame 20
stop();
Symbol 193 MovieClip Frame 21
stop();
Symbol 193 MovieClip Frame 22
stop();
Symbol 193 MovieClip Frame 23
stop();
Symbol 193 MovieClip Frame 24
stop();
Symbol 196 Button
on (press) {
holdDraw(0);
}
Symbol 198 Button
on (press) {
holdDraw(1);
}
Symbol 200 Button
on (press) {
holdDraw(2);
}
Symbol 202 Button
on (press) {
holdDraw(3);
}
Symbol 204 Button
on (press) {
holdDraw(4);
}
Symbol 206 Button
on (press) {
secondDraw();
}
Symbol 209 Button
on (press) {
Need();
tellTarget ("pair") {
gotoAndStop (1);
};
mysound = new Sound();
mySound.attachSound("play1");
mySound.start(0, 1);
mySound.setPan(0);
mySound.setVolume(100);
if (Number(cash) <= 0) {
gotoAndStop (8);
} else {
gotoAndPlay (4);
}
output1 = "";
output2 = "";
output3 = "";
output4 = "";
output5 = "";
output6 = "";
output7 = "";
output8 = "";
output9 = "";
}
Symbol 214 Button
on (release) {
getURL ("http://pornoigry.net", "_blank");
}
Symbol 220 Button
on (release) {
htmlpagename = "http://pornoigry.net";
linktitle = "STRIP POKER! Featuring Tiffany Teen";
pageurl = _url;
getURL ("http://pornoigry.net", "_blank", "POST");
}
Symbol 222 Button
on (release) {
tellTarget ("/award") {
gotoAndStop (2);
};
}
on (press) {
mysound = new Sound();
mySound.attachSound("play1");
mySound.start(0, 1);
mySound.setPan(0);
mySound.setVolume(100);
gotoAndPlay (3);
output1 = "";
output2 = "";
output3 = "";
output4 = "";
output5 = "";
output6 = "";
output7 = "";
output8 = "";
output9 = "";
}