Instance of Symbol 6 MovieClip in Frame 1
onClipEvent (enterFrame) {
_xscale = ((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
}
Frame 2
if (_root.getBytesLoaded() != _root.getBytesTotal()) {
gotoAndPlay (1);
} else {
_root.highScore = 0;
_root.highRank = "Newbie";
}
Frame 3
stop();
Frame 4
function buildDeck() {
deck = new Array();
i = 0;
while (i < 52) {
deck[i] = new Card();
i++;
}
deckpos = 0;
i = 1;
while (4 >= i) {
deck[deckpos].numlet = "A";
deckpos++;
p = 2;
while (10 >= p) {
deck[deckpos].numlet = p;
deckpos++;
p++;
}
deck[deckpos].numlet = "J";
deckpos++;
deck[deckpos].numlet = "Q";
deckpos++;
deck[deckpos].numlet = "K";
deckpos++;
i++;
}
i = 0;
while (i < 13) {
deck[i].suit = "heart";
i++;
}
i = 13;
while (i < 26) {
deck[i].suit = "diamond";
i++;
}
i = 26;
while (i < 39) {
deck[i].suit = "spade";
i++;
}
i = 39;
while (i < 52) {
deck[i].suit = "club";
i++;
}
return(deck);
}
function showCard(card, cardpos) {
_root["card" + cardpos].suit = card.suit;
_root["card" + cardpos].numlet = card.numlet;
_root["card" + cardpos].suit1.gotoAndStop(card.suit);
_root["card" + cardpos].suit2.gotoAndStop(card.suit);
_root["card" + cardpos].graphic.gotoAndStop("numlet" + card.numlet);
if ((card.suit == "spade") or (card.suit == "club")) {
_root["card" + cardpos].numletcol1.setRGB(0);
_root["card" + cardpos].numletcol2.setRGB(0);
} else {
_root["card" + cardpos].numletcol1.setRGB(16711680);
_root["card" + cardpos].numletcol2.setRGB(16711680);
}
}
function shuffleDeck(deck) {
i = 0;
while (i < 52) {
tempcard = deck[i];
cardpos = Math.round(random(52));
deck[i] = deck[cardpos];
deck[cardpos] = tempcard;
i++;
}
return(deck);
}
function pickTopCard() {
topcard = deck[0];
i = 0;
while (i < 51) {
deck[i] = deck[i + 1];
i++;
}
deck[51] = topcard;
return(topcard);
}
function checkHand() {
numletArray = new Array("A", 2, 3, 4, 5, 6, 7, 8, 9, "T", "J", "Q", "K", "A", 2, 3, 4, 5);
numletString = numletArray.toString();
handArray = sortHand(numletArray);
if (((((((((handArray[0].numlet == "A") and (handArray[1].numlet == "T")) and (handArray[2].numlet == "J")) and (handArray[3].numlet == "Q")) and (handArray[4].numlet == "K")) and (handArray[0].suit == handArray[1].suit)) and (handArray[1].suit == handArray[2].suit)) and (handArray[2].suit == handArray[3].suit)) and (handArray[3].suit == handArray[4].suit)) {
_root.mainDisplay.gotoAndStop("Royal Flush");
funds = funds + (bet * 50);
lastturn = "+" + ((bet * 50) - bet);
} else if ((((((((((numletString.indexOf(handArray[0].numlet) + 2) == numletString.indexOf(handArray[1].numlet)) or ((handArray[0].numlet == "A") and (handArray[4].numlet == "K"))) and ((numletString.indexOf(handArray[1].numlet) + 2) == numletString.indexOf(handArray[2].numlet))) and ((numletString.indexOf(handArray[2].numlet) + 2) == numletString.indexOf(handArray[3].numlet))) and ((numletString.indexOf(handArray[3].numlet) + 2) == numletString.indexOf(handArray[4].numlet))) and (handArray[0].suit == handArray[1].suit)) and (handArray[1].suit == handArray[2].suit)) and (handArray[2].suit == handArray[3].suit)) and (handArray[3].suit == handArray[4].suit)) {
_root.mainDisplay.gotoAndStop("Straight Flush");
funds = funds + (bet * 25);
lastturn = "+" + ((bet * 25) - bet);
} else if ((((handArray[0].numlet == handArray[1].numlet) and (handArray[1].numlet == handArray[2].numlet)) and (handArray[2].numlet == handArray[3].numlet)) or (((handArray[1].numlet == handArray[2].numlet) and (handArray[2].numlet == handArray[3].numlet)) and (handArray[3].numlet == handArray[4].numlet))) {
_root.mainDisplay.gotoAndStop("Four Of A Kind");
funds = funds + (bet * 15);
lastturn = "+" + ((bet * 15) - bet);
} else if ((((handArray[0].numlet == handArray[1].numlet) and (handArray[1].numlet == handArray[2].numlet)) and (handArray[3].numlet == handArray[4].numlet)) or (((handArray[0].numlet == handArray[1].numlet) and (handArray[2].numlet == handArray[3].numlet)) and (handArray[3].numlet == handArray[4].numlet))) {
_root.mainDisplay.gotoAndStop("Full House");
funds = funds + (bet * 10);
lastturn = "+" + ((bet * 10) - bet);
} else if ((((handArray[0].suit == handArray[1].suit) and (handArray[1].suit == handArray[2].suit)) and (handArray[2].suit == handArray[3].suit)) and (handArray[3].suit == handArray[4].suit)) {
_root.mainDisplay.gotoAndStop("Flush");
funds = funds + (bet * 10);
lastturn = "+" + ((bet * 10) - bet);
} else if ((((((numletString.indexOf(handArray[0].numlet) + 2) == numletString.indexOf(handArray[1].numlet)) or ((handArray[0].numlet == "A") and (handArray[4].numlet == "K"))) and ((numletString.indexOf(handArray[1].numlet) + 2) == numletString.indexOf(handArray[2].numlet))) and ((numletString.indexOf(handArray[2].numlet) + 2) == numletString.indexOf(handArray[3].numlet))) and ((numletString.indexOf(handArray[3].numlet) + 2) == numletString.indexOf(handArray[4].numlet))) {
_root.mainDisplay.gotoAndStop("Straight");
funds = funds + (bet * 7);
lastturn = "+" + ((bet * 7) - bet);
} else if ((((handArray[0].numlet == handArray[1].numlet) and (handArray[1].numlet == handArray[2].numlet)) or ((handArray[1].numlet == handArray[2].numlet) and (handArray[2].numlet == handArray[3].numlet))) or ((handArray[2].numlet == handArray[3].numlet) and (handArray[3].numlet == handArray[4].numlet))) {
_root.mainDisplay.gotoAndStop("Three Of A Kind");
funds = funds + (bet * 4);
lastturn = "+" + ((bet * 4) - bet);
} else if ((((handArray[0].numlet == handArray[1].numlet) and (handArray[2].numlet == handArray[3].numlet)) or ((handArray[0].numlet == handArray[1].numlet) and (handArray[3].numlet == handArray[4].numlet))) or ((handArray[1].numlet == handArray[2].numlet) and (handArray[3].numlet == handArray[4].numlet))) {
_root.mainDisplay.gotoAndStop("Two Pair");
funds = funds + (bet * 2);
lastturn = "+" + ((bet * 2) - bet);
} else if ((((handArray[0].numlet == handArray[1].numlet) or (handArray[1].numlet == handArray[2].numlet)) or (handArray[2].numlet == handArray[3].numlet)) or (handArray[3].numlet == handArray[4].numlet)) {
_root.mainDisplay.gotoAndStop("One Pair");
funds = funds + bet;
lastturn = 0;
} else {
randTaunt = random(100);
if (randTaunt < 33) {
_root.mainDisplay.gotoAndStop("Garbage");
} else if (randTaunt < 66) {
_root.mainDisplay.gotoAndStop("Laughable");
} else {
_root.mainDisplay.gotoAndStop("Samegame");
}
lastturn = -bet;
}
}
function sortHand(numletArray) {
handArray = new Array();
i = 1;
while (5 >= i) {
handArray[i - 1] = new Card();
handArray[i - 1].numlet = _root["card" + i].numlet;
handArray[i - 1].suit = _root["card" + i].suit;
if (handArray[i - 1].numlet == 10) {
handArray[i - 1].numlet = "T";
}
i++;
}
i = 1;
while (5 >= i) {
left = 0;
right = 1;
while (right < 5) {
if (numletArray.toString().indexOf(handArray[right].numlet) < numletArray.toString().indexOf(handArray[left].numlet)) {
tempcard = handArray[left];
handArray[left] = handArray[right];
handArray[right] = tempcard;
}
left++;
right++;
}
i++;
}
return(handArray);
}
function checkNeedShuffle() {
if ((_root.hands % 5) == 0) {
_root.mainDisplay.gotoAndStop("Shuffle");
} else {
_root.mainDisplay.gotoAndStop("Deal");
}
}
Card = function () {
this.suit = 0;
this.numlet = 0;
};
i = 1;
while (5 >= i) {
_root["card" + i].numletcol1 = new Color(_root["card" + i].numletdisp1);
_root["card" + i].numletcol2 = new Color(_root["card" + i].numletdisp2);
i++;
}
deck = buildDeck();
deck = shuffleDeck(deck);
draw = false;
bet = 5;
hands = 0;
maxBet = 20;
funds = 100;
lastturn = 0;
_root.mainDisplay.gotoAndStop("Shuffle");
stop();
Instance of Symbol 59 MovieClip "button1" in Frame 4
onClipEvent (load) {
function buttonFunction() {
if (_root.animCont._currentframe == 1) {
if (_root.draw == false) {
_root.funds = _root.funds - _root.bet;
_root.button2._alpha = 50;
_root.button3._alpha = 50;
}
_root.animCont.gotoAndPlay("Discard Cards");
}
_root.mainDisplay.gotoAndStop("Dealing");
}
text = "Deal";
}
Instance of Symbol 60 MovieClip "button2" in Frame 4
onClipEvent (load) {
function buttonFunction() {
if ((((_root.draw == false) and (_root.animCont._currentframe == 1)) and (_root.bet < _root.maxBet)) and (_root.bet < _root.funds)) {
_root.animCont.gotoAndPlay("Change Bet");
_root.bet++;
}
}
text = "Bet+";
}
Instance of Symbol 61 MovieClip "button3" in Frame 4
onClipEvent (load) {
function buttonFunction() {
if (((_root.draw == false) and (_root.animCont._currentframe == 1)) and (1 < _root.bet)) {
_root.animCont.gotoAndPlay("Change Bet");
_root.bet--;
}
}
text = "Bet-";
}
Instance of Symbol 241 MovieClip "payout" in Frame 4
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 250 MovieClip "howToPlay" in Frame 4
onClipEvent (load) {
_visible = false;
text = "How To Play Exciting! Poker!<br><br>Players start with $100 to gamble with. The game is played one hand at a time. There are two phases in each hand.<br><br>Before the first phase can begin, the player must enter their bet (ranging anywhere from one dollar, to twenty dollars) using the \"Bet+\" and \"Bet-\" buttons. After this, the player presses the \"Deal\" button to begin phase one of the hand.<br><br>In phase one, five cards appear, and the player must select which cards to hold (anywhere from none of the cards, to all five) by clicking on them. Once the held cards have been selected, the player must click \"Draw\". This enters phase two.<br><br>In phase two, cards are dealt to the player to replace the ones they chose not to hold. Based on the five cards now in front of the player, a winning combination may be found, and the player will then be awarded a payout based on their final hand of five cards, and how much they bet at the beginning of the hand.<br><br>The winning combinations are as follows:<br><br>One Pair: Player has two cards of the same rank (eg. a 5 and a 5).<br><br>Two Pair: Player has two pairs of cards of the same rank (eg. a 7 and a 7, a K, and a K).<br><br>Three Of A Kind: Player has three cards of the same rank (eg. a 4, a 4, and a 4).<br><br>Straight: Player has five cards in sequence of rank, regardless of suit (eg. an 8, a 9, a 10, a J, and a Q).<br><br>Flush: Player has five cards of the same suit, regardless of rank (eg. any five cards with hearts as their suit).<br><br>Full House: Player has three cards of the same rank, as well as a pair of a different rank (eg. a 10, a 10, a 10, a 6 and a 6).<br><br>Four Of A Kind: Player has four cards of the same rank (eg. an A, an A, an, A, and an A).<br><br>Straight Flush: Player has five cards in sequence of rank, all of the same suit (eg. a 3, a 4, a 5, a 6, and a 7, all with clubs as their suit).<br><br>Royal Flush: Player has a combination of (10, J, Q, K, A), all of the same suit (eg. a 10, a J, a Q, a K, and an A, all with diamonds as their suit).<br><br>Consult the payout table for the values of these hands.<br><br>After the second phase of the hand (when the card combination has been determined as a winning or losing hand), the hand is over. At this point, the player may choose to play another hand, or click \"Cash Out\" to end the game. The game is automatically over if the player loses all of his or her money.";
}
Instance of Symbol 258 MovieClip "cashOut" in Frame 4
onClipEvent (load) {
_visible = false;
}
Frame 5
if (funds == 0) {
rank = "Tapioca";
music.gotoAndStop(2);
} else if (funds < 25) {
rank = "Big Loser";
music.gotoAndStop(2);
} else if (funds < 100) {
rank = "Fish";
music.gotoAndStop(2);
} else if (funds == 100) {
rank = "Broke Even";
music.gotoAndStop(3);
} else if (funds < 150) {
rank = "Profiteer";
music.gotoAndStop(4);
} else if (funds < 200) {
rank = "Rounder";
music.gotoAndStop(4);
} else if (funds < 300) {
rank = "Alligator Blood";
music.gotoAndStop(5);
} else if (funds < 400) {
rank = "Shark";
music.gotoAndStop(5);
} else if (funds < 500) {
rank = "Sir Wins-A-Lot";
music.gotoAndStop(6);
} else if (funds < 700) {
rank = "Casino Enemy #1";
music.gotoAndStop(6);
} else if (funds >= 1000) {
rank = "Poker Master";
music.gotoAndStop(7);
}
if (highScore < funds) {
highScore = funds;
highRank = rank;
}
funds = "$" + funds;
Symbol 20 Button
on (release) {
gotoAndStop (4);
}
Symbol 30 Button
on (release) {
getURL ("http://www.geocities.com/midget654/", "_blank");
}
Symbol 31 Button
on (release) {
getURL ("mailto:midget6000@hotmail.com?subject=Exciting! Poker!", "_self");
}
Symbol 40 MovieClip Frame 1
stop();
Symbol 41 MovieClip Frame 1
stop();
Symbol 45 MovieClip Frame 1
stop();
Instance of Symbol 41 MovieClip in Symbol 45 MovieClip Frame 2
onClipEvent (enterFrame) {
this.gotoAndStop(_parent._parent.suit);
}
Instance of Symbol 41 MovieClip in Symbol 45 MovieClip Frame 3
onClipEvent (enterFrame) {
this.gotoAndStop(_parent._parent.suit);
}
Instance of Symbol 41 MovieClip in Symbol 45 MovieClip Frame 4
onClipEvent (enterFrame) {
this.gotoAndStop(_parent._parent.suit);
}
Instance of Symbol 41 MovieClip in Symbol 45 MovieClip Frame 5
onClipEvent (enterFrame) {
this.gotoAndStop(_parent._parent.suit);
}
Instance of Symbol 41 MovieClip in Symbol 45 MovieClip Frame 6
onClipEvent (enterFrame) {
this.gotoAndStop(_parent._parent.suit);
}
Instance of Symbol 41 MovieClip in Symbol 45 MovieClip Frame 7
onClipEvent (enterFrame) {
this.gotoAndStop(_parent._parent.suit);
}
Instance of Symbol 41 MovieClip in Symbol 45 MovieClip Frame 8
onClipEvent (enterFrame) {
this.gotoAndStop(_parent._parent.suit);
}
Instance of Symbol 41 MovieClip in Symbol 45 MovieClip Frame 9
onClipEvent (enterFrame) {
this.gotoAndStop(_parent._parent.suit);
}
Instance of Symbol 41 MovieClip in Symbol 45 MovieClip Frame 10
onClipEvent (enterFrame) {
this.gotoAndStop(_parent._parent.suit);
}
Instance of Symbol 41 MovieClip in Symbol 45 MovieClip Frame 11
onClipEvent (enterFrame) {
this.gotoAndStop(_parent._parent.suit);
}
Symbol 50 Button
on (release) {
if ((1 < _root.animCont._currentframe) or (_root.draw == false)) {
return(undefined);
}
if (hold._visible == false) {
hold._visible = true;
_root.animCont.gotoAndPlay("Hold Card");
} else {
hold._visible = false;
_root.animCont.gotoAndPlay("Unhold Card");
}
}
Instance of Symbol 49 MovieClip "hold" in Symbol 51 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 58 Button
on (release) {
buttonFunction();
}
Symbol 67 MovieClip Frame 1
stop();
Symbol 67 MovieClip Frame 4
if (_root.card1.hold._visible == true) {
_root.card1.hold._visible = false;
return(undefined);
}
_root.showCard(_root.pickTopCard(), 1);
Symbol 67 MovieClip Frame 8
if (_root.card2.hold._visible == true) {
_root.card2.hold._visible = false;
return(undefined);
}
_root.showCard(_root.pickTopCard(), 2);
Symbol 67 MovieClip Frame 13
if (_root.card3.hold._visible == true) {
_root.card3.hold._visible = false;
return(undefined);
}
_root.showCard(_root.pickTopCard(), 3);
Symbol 67 MovieClip Frame 18
if (_root.card4.hold._visible == true) {
_root.card4.hold._visible = false;
return(undefined);
}
_root.showCard(_root.pickTopCard(), 4);
Symbol 67 MovieClip Frame 23
if (_root.card5.hold._visible == true) {
_root.card5.hold._visible = false;
return(undefined);
}
_root.showCard(_root.pickTopCard(), 5);
Symbol 67 MovieClip Frame 26
if (_root.draw == true) {
_root.mainDisplay.gotoAndStop("Deal");
if ((_root.hands % 5) == 0) {
_root.shuffleDeck(_root.deck);
}
_root.button2._alpha = 100;
_root.button3._alpha = 100;
if (_root.funds < _root.bet) {
_root.bet = _root.funds;
}
_root.checkHand();
_root.hands++;
_root.button1.text = "Deal";
_root.draw = false;
if (0 >= _root.funds) {
_root.nextFrame();
}
} else {
_root.mainDisplay.gotoAndStop("Draw");
_root.button1.text = "Draw";
_root.draw = true;
}
gotoAndStop (1);
Symbol 67 MovieClip Frame 31
gotoAndStop (1);
Symbol 67 MovieClip Frame 37
gotoAndStop (1);
Symbol 67 MovieClip Frame 46
i = 1;
while (5 >= i) {
if (_root["card" + i].hold._visible == false) {
_root["card" + i].numlet = "";
_root["card" + i].suit1.gotoAndStop(1);
_root["card" + i].suit2.gotoAndStop(1);
_root["card" + i].graphic.gotoAndStop(1);
}
i++;
}
gotoAndPlay (2);
Symbol 67 MovieClip Frame 51
gotoAndStop (1);
Symbol 81 Button
on (release) {
buttonFunction();
}
Instance of Symbol 82 MovieClip in Symbol 85 MovieClip Frame 1
onClipEvent (load) {
function buttonFunction() {
_root.cashOut._visible = true;
}
text = "Cash Out";
}
Instance of Symbol 83 MovieClip in Symbol 85 MovieClip Frame 1
onClipEvent (load) {
function buttonFunction() {
_root.payout._visible = true;
}
text = "Payout Table";
}
Instance of Symbol 84 MovieClip in Symbol 85 MovieClip Frame 1
onClipEvent (load) {
function buttonFunction() {
_root.howToPlay._visible = true;
}
text = "How To Play";
}
Symbol 108 MovieClip Frame 41
_root.mainDisplay.gotoAndStop("Deal");
Symbol 112 MovieClip Frame 75
_root.checkNeedShuffle();
Symbol 117 MovieClip Frame 59
_root.checkNeedShuffle();
Symbol 124 MovieClip Frame 40
_root.checkNeedShuffle();
Symbol 130 MovieClip Frame 40
_root.checkNeedShuffle();
Symbol 134 MovieClip Frame 58
_root.checkNeedShuffle();
Symbol 139 MovieClip Frame 61
_root.checkNeedShuffle();
Symbol 146 MovieClip Frame 76
_root.checkNeedShuffle();
Symbol 153 MovieClip Frame 192
_root.checkNeedShuffle();
Symbol 160 MovieClip Frame 92
_root.checkNeedShuffle();
Symbol 176 MovieClip Frame 21
stop();
Symbol 178 MovieClip Frame 81
_root.checkNeedShuffle();
Symbol 201 MovieClip Frame 161
_root.checkNeedShuffle();
Symbol 213 MovieClip Frame 340
_root.checkNeedShuffle();
Symbol 214 MovieClip Frame 1
stop();
Symbol 217 Button
on (release) {
_visible = false;
}
Symbol 247 Button
on (press) {
pressed = true;
}
on (release, releaseOutside) {
pressed = false;
}
Instance of Symbol 248 MovieClip in Symbol 250 MovieClip Frame 1
onClipEvent (enterFrame) {
if (pressed == true) {
_parent.text.scroll = _parent.text.scroll + 1;
}
}
Instance of Symbol 249 MovieClip in Symbol 250 MovieClip Frame 1
onClipEvent (enterFrame) {
if (pressed == true) {
_parent.text.scroll = _parent.text.scroll - 1;
}
}
Instance of Symbol 254 MovieClip in Symbol 258 MovieClip Frame 1
onClipEvent (load) {
function buttonFunction() {
_root.nextFrame();
}
text = "Yes";
}
Instance of Symbol 255 MovieClip in Symbol 258 MovieClip Frame 1
onClipEvent (load) {
function buttonFunction() {
_parent._visible = false;
}
text = "No";
}
Instance of Symbol 49 MovieClip "hold" in Symbol 259 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 261 Button
on (release) {
gotoAndStop (3);
}
Symbol 273 MovieClip Frame 1
stop();