Frame 1
myGameData = sharedobject.getLocal("myGameData");
_root.Interface_Cover_2._alpha = 0;
doTransition = function () {
var _local1 = this;
var _local2 = _root;
_local2.Interface_Cover_2.onEnterFrame = function () {
var _local1 = this;
var _local2 = _root;
_local1._alpha = _local1._alpha + 20;
if (_local1._alpha >= 100) {
_local1._alpha = 100;
_local2.gotoAndPlay(_local2.gotoFrame);
_local2.Interface_Cover_2.onEnterFrame = function () {
var _local1 = this;
_local1._alpha = _local1._alpha - 20;
if (_local1._alpha <= 0) {
_local1._alpha = 0;
_root.Interface_Cover_2.onEnterFrame = null;
}
};
}
};
};
_root.bar.onEnterFrame = function () {
var _local1 = _root;
if ((XMLLoaded == true) && (_local1.getBytesLoaded() >= _local1.getBytesTotal())) {
trace("LOADING COMPLETE");
_local1.gotoAndPlay("welcome");
} else {
trace("LOADING...");
percent_loaded = (_local1.getBytesLoaded() / _local1.getBytesTotal()) * 100;
this._xscale = percent_loaded;
_local1.loadStatus = (((((Math.round(_local1.getBytesLoaded()) * 0.01) + " OF ") + (Math.round(_local1.getBytesTotal()) * 0.01)) + "k ") + percent_loaded) + "% )";
}
};
XMLLoaded = false;
CardsXML = new XML();
CardsXML.ignoreWhite = true;
CardsXML.onLoad = function (success) {
var _local1 = _root;
cardCount = CardsXML.firstChild.childNodes.length;
i = 0;
while (i < cardCount) {
cardNode = CardsXML.firstChild.childNodes[i];
Suit = cardNode.attributes.Suit;
Value = cardNode.attributes.Value;
ObjName = (("CardData_" + Suit) + "_") + Value;
_local1[ObjName] = new Object();
_local1[ObjName].Suit = Suit;
_local1[ObjName].Value = Value;
ii = 0;
while (ii < cardNode.childNodes.length) {
dataNodeName = cardNode.childNodes[ii].nodeName;
dataNodeValue = cardNode.childNodes[ii].childNodes[0].nodeValue;
_local1[ObjName][dataNodeName] = dataNodeValue;
trace((dataNodeName + "= ") + dataNodeValue);
ii++;
}
i++;
}
XMLLoaded = true;
};
CardsXML.load("Cards.XML");
stop();
stop();
Frame 2
stop();
Frame 5
function shuffle() {
DeckArr = new Array(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51);
temp = new Array();
i = 0;
while (i < 52) {
r = random(DeckArr.length);
temp[i] = new Array();
temp[i][0] = DeckArr[r];
temp[i][1] = Math.floor(DeckArr[r] / 4) + 1;
temp[i][2] = DeckArr[r] % 4;
if (((DeckArr[r] % 4) == 0) || ((DeckArr[r] % 4) == 3)) {
temp[i][3] = 0;
} else {
temp[i][3] = 1;
}
DeckArr.splice(r, 1);
i++;
}
j1 = new Array();
j1[0] = 52;
j1[1] = 98;
j1[2] = 99;
j1[3] = 99;
j2 = new Array();
j2[0] = 53;
j2[1] = 99;
j2[2] = 99;
j2[3] = 99;
temp.splice(random(temp.length - 1), 0, j1);
temp.splice(random(temp.length - 1), 0, j2);
trace(temp.length);
t1 = 0;
while (t1 < temp.length) {
trace(temp[t1]);
t1++;
}
return(temp);
}
if ((myGameData.data.savedGameDATA != undefined) && (myGameData.data.savedGameDATA > 0)) {
_root.saved_bank = myGameData.data.savedGameDATA;
_root.b_restore.enabled = true;
_root.b_restore._alpha = 100;
} else {
_root.b_restore.enabled = false;
_root.b_restore._alpha = 50;
}
bank = new Number();
_root.Interface_Cover._alpha = 100;
bank = 100;
oktobet = 0;
oktoflip = 0;
DeckArr = new Array();
currentCardNumber = 0;
if (_root.payout._currentframe != 15) {
_root.payout.gotoAndPlay("open");
}
bgloop = new Sound(_root);
Snd_Rollover = new Sound();
Snd_Rollover.attachSound("Snd_Rollover");
Snd_Click = new Sound();
Snd_Click.attachSound("Snd_Click");
Snd_Tick = new Sound();
Snd_Tick.attachSound("Snd_Tick");
Snd_NotAllowed = new Sound();
Snd_NotAllowed.attachSound("Snd_NotAllowed");
Snd_CardFlip = new Sound();
Snd_CardFlip.attachSound("Snd_CardFlip");
Snd_CardShuffle = new Sound();
Snd_CardShuffle.attachSound("Snd_CardShuffle");
Snd_Payout = new Sound();
Snd_Payout.attachSound("Snd_Payout");
Snd_Track = new Sound();
bet = new Number();
_root.nowPlayingClip._visible = false;
_root.doStartTrack = function (Artist, TrackName, TrackURL) {
var _local1 = _root;
_local1.Snd_Track.loadSound(TrackURL, true);
_local1.nowPlayingClip._visible = true;
_local1.nowPlayingQueue = new Array();
tStr = "NOW STREAMING . . .";
_local1.nowPlayingQueue[0] = tStr.split("");
tStr = Artist + ". . .";
_local1.nowPlayingQueue[1] = tStr.split("");
tStr = TrackName + ". . .";
_local1.nowPlayingQueue[2] = tStr.split("");
_local1.nowPlayingID = -1;
_local1.doNowPlayingLine();
_local1.Snd_Track.onSoundComplete = _local1.doStopTrack;
};
_root.doStopTrack = function () {
_root.nowPlayingClip._visible = false;
_root.Snd_Track.stop();
};
_root.doNowPlayingLine = function () {
var _local1 = _root;
_local1.nowPlayingTIMER = 0;
_local1.nowPlayingID++;
if (_local1.nowPlayingID >= _local1.nowPlayingQueue.length) {
_local1.nowPlayingID = 0;
}
_local1.nowPlayingClip.Txt_NowPlaying.text = "";
_local1.nowPlayingCharID = 0;
_local1.nowPlayingClip.onEnterFrame = function () {
var _local1 = _root;
if (_local1.nowPlayingTIMER == 0) {
_local1.nowPlayingClip.Txt_NowPlaying.text = _local1.nowPlayingClip.Txt_NowPlaying.text + _local1.nowPlayingQueue[_local1.nowPlayingID][_local1.nowPlayingCharID];
_local1.nowPlayingCharID++;
if (_local1.nowPlayingCharID >= _local1.nowPlayingQueue[_local1.nowPlayingID].length) {
_local1.nowPlayingTIMER = getTimer() + 3000;
}
} else if (getTimer() >= _local1.nowPlayingTIMER) {
_local1.doNowPlayingLine();
}
};
};
stop();
Instance of Symbol 46 MovieClip "bg_sound_buttons" in Frame 5
/* no clip actions */
Frame 12
chipstack_all.gotoAndPlay("adjust");
amounts._visible = false;
resultmessage.gotoAndStop("init");
cardspot_1._visible = true;
cardspot_2._visible = true;
cardspot_3._visible = true;
cardspot_4._visible = true;
cardspot_5._visible = true;
b_Stand.enabled = false;
b_Draw.enabled = false;
b_Deal.enabled = false;
b_Stand._alpha = 50;
b_Draw._alpha = 50;
b_Deal._alpha = 50;
_root.Interface_Cover.onEnterFrame = function () {
var _local1 = this;
_local1._alpha = _local1._alpha - 10;
if (_local1._alpha <= 0) {
_local1._alpha = 0;
_local1.onEnterFrame = null;
}
};
Frame 14
if (_root.chipstack_all._currentframe != 1) {
gotoAndPlay(_currentframe - 1);
}
Frame 15
_root.currentFrame = "bet";
if ((_root.chipstack_all.chipstack_1._currentframe <= 5) && (_root.bank > 5)) {
chipstack_all.gotoAndPlay("adjust");
}
if (help._currentframe == 1) {
help.gotoAndPlay("betting");
}
resultmessage.gotoAndStop("init");
oktobet = 1;
stop();
Frame 20
trace("SHUFFLE/DEAL CARDS");
help.gotoAndStop(1);
b_Stand.enabled = false;
b_Draw.enabled = false;
b_Deal.enabled = false;
b_Stand._alpha = 50;
b_Draw._alpha = 50;
b_Deal._alpha = 50;
_root.oktobet = 0;
shufflenow = 0;
if (DeckArr.length < 10) {
DeckArr = shuffle();
_root.Snd_CardShuffle.start();
shufflenow = 1;
}
handArr = new Array();
i = 0;
while (i < 5) {
handArr[i] = DeckArr.shift();
pokerhand["card_" + (i + 1)].cardface.gotoAndStop(handArr[i][0] + 1);
pokerhand["card_" + (i + 1)].slot = i;
handArr[i][4] = 1;
pokerhand["card_" + (i + 1)].gotoAndPlay("norm");
pokerhand["card_" + (i + 1)].NAME = _root[(("CardData_" + handArr[i][2]) + "_") + handArr[i][1]].NAME.toUpperCase();
pokerhand["card_" + (i + 1)].INFO = _root[(("CardData_" + handArr[i][2]) + "_") + handArr[i][1]].INFO.toUpperCase();
pokerhand["card_" + (i + 1)].LINK = _root[(("CardData_" + handArr[i][2]) + "_") + handArr[i][1]].LINK;
i++;
}
pokerhand.card_1._visible = false;
pokerhand.card_2._visible = false;
pokerhand.card_3._visible = false;
pokerhand.card_4._visible = false;
pokerhand.card_5._visible = false;
Frame 21
if (_root.shufflenow == 1) {
_root.shufflingClip.gotoAndPlay("shuffle");
stop();
}
Frame 25
Snd_CardFlip.start();
pokerhand.card_1._visible = true;
Frame 30
Snd_CardFlip.start();
pokerhand.card_2._visible = true;
Frame 35
Snd_CardFlip.start();
pokerhand.card_3._visible = true;
Frame 40
Snd_CardFlip.start();
pokerhand.card_4._visible = true;
Frame 45
Snd_CardFlip.start();
pokerhand.card_5._visible = true;
Frame 51
oktoflip = 1;
help.gotoAndPlay("hold");
b_Stand.enabled = true;
b_Draw.enabled = true;
b_Deal.enabled = false;
b_Stand._alpha = 100;
b_Draw._alpha = 100;
b_Deal._alpha = 50;
stop();
Frame 56
trace("COMPARE");
_root.message = "";
help.gotoAndPlay("init");
b_Stand.enabled = false;
b_Draw.enabled = false;
b_Deal.enabled = false;
b_Stand._alpha = 50;
b_Draw._alpha = 50;
b_Deal._alpha = 50;
i = 0;
while (i < 5) {
pokerhand["card_" + (i + 1)].gotoAndStop("norm");
handArr[i][4] = 1;
i++;
}
besthand = 0;
jokerlayout = new String();
if (handArr[0][1] == 98) {
handArr[0][1] = 99;
}
if (handArr[1][1] == 98) {
handArr[1][1] = 99;
}
if (handArr[2][1] == 98) {
handArr[2][1] = 99;
}
if (handArr[3][1] == 98) {
handArr[3][1] = 99;
}
if (handArr[4][1] == 98) {
handArr[4][1] = 99;
}
i0 = 0;
while (i0 < 5) {
if (handArr[i0][1] == 99) {
jokerlayout0 = "J1";
} else {
jokerlayout0 = "J0";
}
i1 = 0;
while (i1 < 5) {
if (i1 == i0) {
} else {
if (handArr[i1][1] == 99) {
jokerlayout1 = "1";
} else {
jokerlayout1 = "0";
}
i2 = 0;
while (i2 < 5) {
if ((i2 == i1) || (i2 == i0)) {
} else {
if (handArr[i2][1] == 99) {
jokerlayout2 = "1";
} else {
jokerlayout2 = "0";
}
i3 = 0;
while (i3 < 5) {
if (((i3 == i2) || (i3 == i1)) || (i3 == i0)) {
} else {
if (handArr[i3][1] == 99) {
jokerlayout3 = "1";
} else {
jokerlayout3 = "0";
}
i4 = 0;
while (i4 < 5) {
if ((((i4 == i3) || (i4 == i2)) || (i4 == i1)) || (i4 == i0)) {
} else {
if (handArr[i4][1] == 99) {
jokerlayout4 = "1";
} else {
jokerlayout4 = "0";
}
jokerlayout = (((jokerlayout0 + jokerlayout1) + jokerlayout2) + jokerlayout3) + jokerlayout4;
isStraight = 0;
if (handArr[i4][1] == 1) {
lastcardvalue = 14;
} else {
lastcardvalue = handArr[i4][1];
}
if (jokerlayout == "J00000") {
if ((((handArr[i1][1] == (handArr[i0][1] + 1)) && (handArr[i2][1] == (handArr[i1][1] + 1))) && (handArr[i3][1] == (handArr[i2][1] + 1))) && (lastcardvalue == (handArr[i3][1] + 1))) {
isStraight = 1;
}
} else if (jokerlayout == "J10000") {
if (((handArr[i2][1] == (handArr[i1][1] + 1)) && (handArr[i3][1] == (handArr[i2][1] + 1))) && (lastcardvalue == (handArr[i3][1] + 1))) {
isStraight = 1;
}
} else if (jokerlayout == "J01000") {
if (((handArr[i2][1] == (handArr[i0][1] + 2)) && (handArr[i3][1] == (handArr[i2][1] + 1))) && (lastcardvalue == (handArr[i3][1] + 1))) {
isStraight = 1;
}
} else if (jokerlayout == "J00100") {
if (((handArr[i1][1] == (handArr[i0][1] + 1)) && (handArr[i3][1] == (handArr[i1][1] + 2))) && (lastcardvalue == (handArr[i3][1] + 1))) {
isStraight = 1;
}
} else if (jokerlayout == "J00010") {
if (((handArr[i1][1] == (handArr[i0][1] + 1)) && (handArr[i2][1] == (handArr[i1][1] + 1))) && (lastcardvalue == (handArr[i2][1] + 2))) {
isStraight = 1;
}
} else if (jokerlayout == "J00001") {
if (((handArr[i1][1] == (handArr[i0][1] + 1)) && (handArr[i2][1] == (handArr[i1][1] + 1))) && (handArr[i3][1] == (handArr[i2][1] + 1))) {
isStraight = 1;
}
} else if (jokerlayout == "J11000") {
if ((handArr[i3][1] == (handArr[i2][1] + 1)) && (lastcardvalue == (handArr[i3][1] + 1))) {
isStraight = 1;
}
} else if (jokerlayout == "J10100") {
if ((handArr[i3][1] == (handArr[i1][1] + 2)) && (lastcardvalue == (handArr[i3][1] + 1))) {
isStraight = 1;
}
} else if (jokerlayout == "J10010") {
if ((handArr[i2][1] == (handArr[i1][1] + 1)) && (lastcardvalue == (handArr[i2][1] + 2))) {
isStraight = 1;
}
} else if (jokerlayout == "J10001") {
if ((handArr[i2][1] == (handArr[i1][1] + 1)) && (handArr[i3][1] == (handArr[i2][1] + 1))) {
isStraight = 1;
}
} else if (jokerlayout == "J01100") {
if ((handArr[i3][1] == (handArr[i0][1] + 3)) && (lastcardvalue == (handArr[i3][1] + 1))) {
isStraight = 1;
}
} else if (jokerlayout == "J01010") {
if ((handArr[i2][1] == (handArr[i0][1] + 2)) && (lastcardvalue == (handArr[i2][1] + 2))) {
isStraight = 1;
}
} else if (jokerlayout == "J01001") {
if ((handArr[i2][1] == (handArr[i0][1] + 2)) && (handArr[i3][1] == (handArr[i2][1] + 1))) {
isStraight = 1;
}
} else if (jokerlayout == "J00110") {
if ((handArr[i1][1] == (handArr[i0][1] + 1)) && (handArr[i4][1] == (handArr[i1][1] + 3))) {
isStraight = 1;
}
} else if (jokerlayout == "J00101") {
if ((handArr[i1][1] == (handArr[i0][1] + 1)) && (handArr[i3][1] == (handArr[i1][1] + 2))) {
isStraight = 1;
}
} else if (jokerlayout == "J00011") {
if ((handArr[i1][1] == (handArr[i0][1] + 1)) && (handArr[i2][1] == (handArr[i1][1] + 1))) {
isStraight = 1;
}
}
if (isStraight == 1) {
besthand = Math.max(4, besthand);
}
if (handArr[i0][2] != 99) {
startsuit = handArr[i0][2];
} else if (handArr[i1][2] != 99) {
startsuit = handArr[i1][2];
} else {
startsuit = handArr[i2][2];
}
if ((((((handArr[i0][2] == startsuit) || (handArr[i0][2] == 99)) && ((handArr[i1][2] == startsuit) || (handArr[i1][2] == 99))) && ((handArr[i2][2] == startsuit) || (handArr[i2][2] == 99))) && ((handArr[i3][2] == startsuit) || (handArr[i3][2] == 99))) && ((handArr[i4][2] == startsuit) || (handArr[i4][2] == 99))) {
besthand = Math.max(5, besthand);
if (isStraight == 1) {
besthand = Math.max(10, besthand);
}
if (((((handArr[i0][1] == 1) && (handArr[i1][1] == 13)) && (handArr[i2][1] == 12)) && (handArr[i3][1] == 11)) && (handArr[i4][1] == 10)) {
besthand = 30;
break;
}
if ((((((handArr[i0][1] == 1) || (handArr[i0][1] == 99)) && ((handArr[i1][1] == 13) || (handArr[i1][1] == 99))) && ((handArr[i2][1] == 12) || (handArr[i2][1] == 99))) && ((handArr[i3][1] == 11) || (handArr[i3][1] == 99))) && ((handArr[i4][1] == 10) || (handArr[i4][1] == 99))) {
besthand = Math.max(15, besthand);
}
}
if ((handArr[i1][1] == handArr[i0][1]) || (handArr[i1][1] == 99)) {
if ((((handArr[i0][1] >= 11) || (handArr[i0][1] == 99)) || (handArr[i0][1] == 1)) && (((handArr[i1][1] >= 11) || (handArr[i1][1] == 99)) || (handArr[i1][1] == 1))) {
besthand = Math.max(1, besthand);
} else {
besthand = Math.max(0.5, besthand);
}
if ((handArr[i3][1] == handArr[i2][1]) || (handArr[i3][1] == 99)) {
besthand = Math.max(2, besthand);
}
if ((handArr[i2][1] == handArr[i0][1]) || (handArr[i2][1] == 99)) {
besthand = Math.max(3, besthand);
if ((handArr[i4][1] == handArr[i3][1]) || (handArr[i4][1] == 99)) {
besthand = Math.max(6, besthand);
}
if ((handArr[i3][1] == handArr[i0][1]) || (handArr[i3][1] == 99)) {
besthand = Math.max(8, besthand);
if ((handArr[i4][1] == handArr[i0][1]) || (handArr[i4][1] == 99)) {
besthand = Math.max(20, besthand);
}
}
}
}
}
i4++;
}
}
i3++;
}
}
i2++;
}
}
i1++;
}
i0++;
}
pot = bet * besthand;
if (besthand == 30) {
_root.resultmessage.gotoAndPlay("rflush");
_root.Snd_Payout.start();
} else if (besthand == 20) {
_root.resultmessage.gotoAndPlay("5kind");
_root.Snd_Payout.start();
} else if (besthand == 15) {
_root.resultmessage.gotoAndPlay("rflush_wj");
_root.Snd_Payout.start();
} else if (besthand == 10) {
_root.resultmessage.gotoAndPlay("sflush");
_root.Snd_Payout.start();
} else if (besthand == 8) {
_root.resultmessage.gotoAndPlay("4kind");
_root.Snd_Payout.start();
} else if (besthand == 6) {
_root.resultmessage.gotoAndPlay("fullhouse");
_root.Snd_Payout.start();
} else if (besthand == 5) {
_root.resultmessage.gotoAndPlay("flush");
_root.Snd_Payout.start();
} else if (besthand == 4) {
_root.resultmessage.gotoAndPlay("straight");
_root.Snd_Payout.start();
} else if (besthand == 3) {
_root.resultmessage.gotoAndPlay("3kind");
_root.Snd_Payout.start();
} else if (besthand == 2) {
_root.resultmessage.gotoAndPlay("2pair");
_root.Snd_Payout.start();
} else if (besthand == 1) {
_root.resultmessage.gotoAndPlay("jacks");
_root.Snd_Payout.start();
} else if (besthand == 0.5) {
pot = 0;
_root.resultmessage.gotoAndPlay("1pair");
besthand = 0;
} else {
pot = 0;
_root.resultmessage.gotoAndPlay("nothing");
}
bet = 0;
bank = new Number(bank) + new Number(pot);
if (bank < 1) {
bank = 0;
trace("YOU ARE BROKE BUD!!!");
}
if (pot > 0) {
chipstack_all.gotoAndPlay("adjust");
}
Frame 64
_root.currentFrame = "wait";
help.gotoAndPlay("betting");
if (bank < 1) {
bank = 0;
oktobet = 0;
_root.gotoFrame = "game_over";
_root.gameoverTimer = getTimer() + 2000;
_root.gotoAndPlay("gameover_wait");
} else if (bank >= 2000) {
oktobet = 0;
_root.gotoFrame = "game_over_win";
_root.gameoverTimer = getTimer() + 2000;
_root.gotoAndPlay("gameover_wait");
} else {
oktobet = 1;
stop();
}
Frame 65
resultmessage.gotoAndStop("init");
pokerhand.card_1._visible = false;
Frame 67
pokerhand.card_2._visible = false;
Frame 69
pokerhand.card_3._visible = false;
Frame 71
pokerhand.card_4._visible = false;
Frame 73
pokerhand.card_5._visible = false;
Frame 79
gotoAndPlay ("bet");
Frame 82
if (getTimer() >= _root.gameoverTimer) {
doTransition();
stop();
} else {
_root.gotoAndPlay(_currentframe - 1);
}
Frame 85
_root.amounts._visible = false;
cardspot_1._visible = false;
cardspot_2._visible = false;
cardspot_3._visible = false;
cardspot_4._visible = false;
cardspot_5._visible = false;
stopDrag();
_root.Interface_Cover._alpha = 100;
if (_root.AdURL.length >= 5) {
_root.exitAd.loadMovie(_root.AdURL);
}
stop();
Frame 93
_root.amounts._visible = false;
cardspot_1._visible = false;
cardspot_2._visible = false;
cardspot_3._visible = false;
cardspot_4._visible = false;
cardspot_5._visible = false;
stopDrag();
_root.Interface_Cover._alpha = 100;
if (_root.AdURL.length >= 5) {
_root.exitAd.loadMovie(_root.AdURL);
}
stop();
Symbol 8 Button
on (release) {
getURL ("http://www.blitinteractive.com?r=chingy", "_blank");
}
Symbol 23 Button
on (rollOver) {
_root.Snd_Rollover.start();
}
on (press) {
_root.Snd_Click.start();
}
on (release) {
bank = 100;
payout.gotoAndPlay("close");
bet = new Number();
_root.gotoFrame = "init";
_root.doTransition();
}
Symbol 26 Button
on (rollOver) {
_root.Snd_Rollover.start();
}
on (press) {
_root.Snd_Click.start();
}
on (release) {
bank = 100;
payout.gotoAndPlay("close");
bet = new Number();
_root.gotoFrame = "play";
_root.doTransition();
}
Symbol 40 Button
on (release) {
_root.bgLoop.setVolume(0);
gotoAndStop (2);
}
Symbol 45 Button
on (release) {
_root.bgLoop.setVolume(100);
gotoAndStop (1);
}
Symbol 46 MovieClip Frame 1
stop();
Symbol 46 MovieClip Frame 2
stop();
Symbol 49 Button
on (rollOver) {
_root.Snd_Rollover.start();
}
on (press) {
_root.Snd_Click.start();
}
on (release) {
_root.bank = _root.saved_bank;
_root.bet = 0;
_root.chipstack_all.gotoAndPlay("adjust");
_root.amounts._visible = false;
if (_root.payout._currentframe == 15) {
_root.payout.gotoAndPlay("close");
}
_root.gotoFrame = "play";
_root.doTransition();
_root.b_restore.enabled = false;
_root.b_restore._alpha = 50;
}
Symbol 60 Button
on (release) {
if ((Math.abs(this._xmouse - this.startX) < 4) && (Math.abs(this._ymouse - this.startY) < 4)) {
gotoAndPlay ("close");
}
}
Symbol 62 Button
on (release) {
if ((Math.abs(this._xmouse - this.startX) < 4) && (Math.abs(this._ymouse - this.startY) < 4)) {
gotoAndPlay ("open");
}
}
Instance of Symbol 54 MovieClip in Symbol 63 MovieClip Frame 1
onClipEvent (mouseDown) {
_parent.startX = _xmouse;
_parent.startY = _ymouse;
if (this.hitTest(_root._xmouse, _root._ymouse, false)) {
this.onEnterFrame = function () {
var _local1 = _parent;
if ((Math.abs(_local1._xmouse - _local1.startX) >= 4) || (Math.abs(_local1._ymouse - _local1.startY) >= 4)) {
_local1.startDrag(false);
this.nowDragging = true;
this.onEnterFrame = null;
}
};
}
}
onClipEvent (mouseUp) {
this.nowDragging = false;
this.onEnterFrame = null;
stopDrag();
}
Symbol 63 MovieClip Frame 15
this.nowDragging = false;
stop();
Symbol 63 MovieClip Frame 29
this.nowDragging = false;
stop();
Symbol 72 MovieClip Frame 1
stop();
Symbol 76 Button
on (rollOver) {
_root.amounts._x = _root._xmouse;
_root.amounts._y = _root._ymouse;
_root.amounts._visible = true;
_root.amounts.gotoAndStop(1);
_root.amounts.startDrag(true);
}
on (rollOut, dragOut, releaseOutside) {
_root.amounts.gotoAndStop(5);
_root.amounts._visible = false;
stopDrag();
}
on (press) {
_root.amounts.gotoAndStop(5);
_root.amounts._visible = false;
stopDrag();
resultsstatus = 1;
if ((_root.bet + 1) > 100) {
_root.resultmessage.gotoAndStop("overlimit");
_root.Snd_NotAllowed.start();
resultsstatus = 0;
}
}
on (release) {
if (resultsstatus == 0) {
_root.resultmessage.gotoAndStop("init");
resultsstatus = 1;
}
if ((_root.oktobet == 1) && (_root.chipsready == 1)) {
if ((_root.bet + 1) > 100) {
} else {
_root.bet = _root.bet + 1;
_root.bank = _root.bank - 1;
_root.Snd_CardFlip.start();
_root.b_Deal.enabled = true;
_root.b_Deal._alpha = 100;
if (_root.currentFrame == "wait") {
_root.currentFrame = null;
_root.play();
}
if ((_root.chipstack_all.chipstack_1._currentframe <= 2) && (_root.bank > 5)) {
_root.chipstack_all.gotoAndPlay("adjust");
}
if (_root.chipstack_all.chipstack_1._currentframe == 2) {
_root.amounts._visible = false;
stopDrag();
}
_root.chipstack_all.chipstack_1.prevFrame();
}
}
}
Symbol 78 MovieClip Frame 1
stop();
Symbol 81 Button
on (rollOver) {
_root.amounts._x = _root._xmouse;
_root.amounts._y = _root._ymouse;
_root.amounts._visible = true;
_root.amounts.gotoAndStop(2);
_root.amounts.startDrag(true);
}
on (rollOut, dragOut, releaseOutside) {
_root.amounts.gotoAndStop(5);
_root.amounts._visible = false;
stopDrag();
}
on (press) {
_root.amounts.gotoAndStop(5);
_root.amounts._visible = false;
resultsstatus = 1;
if ((_root.bet + 10) > 100) {
_root.resultmessage.gotoAndStop("overlimit");
_root.Snd_NotAllowed.start();
resultsstatus = 0;
}
}
on (release) {
if (resultsstatus == 0) {
_root.resultmessage.gotoAndStop("init");
resultsstatus = 1;
}
if ((_root.oktobet == 1) && (_root.chipsready == 1)) {
if ((_root.bet + 10) > 100) {
} else {
_root.bet = _root.bet + 10;
_root.bank = _root.bank - 10;
_root.Snd_CardFlip.start();
_root.b_Deal.enabled = true;
_root.b_Deal._alpha = 100;
if (_root.currentFrame == "wait") {
_root.currentFrame = null;
_root.play();
}
if ((_root.chipstack_all.chipstack_10._currentframe <= 2) && (_root.bank > 100)) {
_root.chipstack_all.gotoAndPlay("adjust");
}
if (_root.chipstack_all.chipstack_10._currentframe == 2) {
_root.amounts._visible = false;
stopDrag();
}
_root.chipstack_all.chipstack_10.prevFrame();
}
}
}
Symbol 83 MovieClip Frame 1
stop();
Symbol 86 Button
on (rollOver) {
_root.amounts._x = _root._xmouse;
_root.amounts._y = _root._ymouse;
_root.amounts._visible = true;
_root.amounts.gotoAndStop(3);
_root.amounts.startDrag(true);
}
on (rollOut, dragOut, releaseOutside) {
_root.amounts.gotoAndStop(5);
_root.amounts._visible = false;
stopDrag();
}
on (press) {
_root.amounts.gotoAndStop(5);
_root.amounts._visible = false;
resultsstatus = 1;
if ((_root.bet + 100) > 100) {
_root.resultmessage.gotoAndStop("overlimit");
_root.Snd_NotAllowed.start();
resultsstatus = 0;
}
}
on (release) {
if (resultsstatus == 0) {
_root.resultmessage.gotoAndStop("init");
resultsstatus = 1;
}
if ((_root.oktobet == 1) && (_root.chipsready == 1)) {
if ((_root.bet + 100) > 100) {
} else {
_root.bet = _root.bet + 100;
_root.bank = _root.bank - 100;
_root.Snd_CardFlip.start();
_root.b_Deal.enabled = true;
_root.b_Deal._alpha = 100;
if (_root.currentFrame == "wait") {
_root.currentFrame = null;
_root.play();
}
if (_root.chipstack_all.chipstack_50._currentframe == 2) {
_root.amounts._visible = false;
stopDrag();
}
_root.chipstack_all.chipstack_50.prevFrame();
}
}
}
Symbol 88 MovieClip Frame 1
stop();
Symbol 89 MovieClip Frame 1
_root.chipsready = 1;
stop();
Symbol 89 MovieClip Frame 4
trace("ADJUSTING CHIP STACKS");
_root.chipsready = 0;
if (_root.bank >= 2220) {
chipbank = 2220;
} else {
chipbank = _root.bank;
}
num50s = Math.floor(chipbank / 100);
r = chipbank % 100;
num10s = Math.floor(r / 10);
r = r % 10;
num1s = r;
if ((num1s <= 10) && (num10s >= 1)) {
num1s = num1s + 10;
num10s--;
}
if ((num1s <= 10) && (num10s >= 1)) {
num1s = num1s + 10;
num10s--;
}
do {
if ((num10s <= 10) && (num50s >= 1)) {
num10s = num10s + 10;
num50s--;
} else {
break;
}
} while ((num10s <= 15) && (num50s >= 1));
if ((num1s <= 10) && (num10s >= 1)) {
num1s = num1s + 10;
num10s--;
}
if ((num1s <= 10) && (num10s >= 1)) {
num1s = num1s + 10;
num10s--;
}
Symbol 89 MovieClip Frame 6
current_stack_1 = chipstack_1._currentframe - 1;
current_stack_10 = chipstack_10._currentframe - 1;
current_stack_50 = chipstack_50._currentframe - 1;
action = 0;
if (current_stack_50 < num50s) {
chipstack_50.nextFrame();
current_stack_50++;
action = 1;
} else if (current_stack_50 > num50s) {
chipstack_50.prevFrame();
current_stack_50--;
action = 1;
}
if (current_stack_10 < num10s) {
chipstack_10.nextFrame();
current_stack_10++;
action = 1;
} else if (current_stack_10 > num10s) {
chipstack_10.prevFrame();
current_stack_10--;
action = 1;
}
if (current_stack_1 < num1s) {
chipstack_1.nextFrame();
current_stack_1++;
action = 1;
} else if (current_stack_1 > num1s) {
chipstack_1.prevFrame();
current_stack_1--;
action = 1;
}
if (action == 0) {
trace("done");
this.gotoAndPlay("init");
} else {
this.gotoAndPlay(_currentframe - 1);
}
Symbol 94 Button
on (rollOver) {
_root.Snd_Rollover.start();
}
on (press) {
_root.Snd_Click.start();
}
on (release) {
oktoflip = 0;
i = 0;
while (i < 5) {
if (handArr[i][4] == 0) {
handArr[i] = DeckArr.shift();
pokerhand["card_" + (i + 1)].cardface.gotoAndStop(handArr[i][0] + 1);
pokerhand["card_" + (i + 1)].gotoAndPlay("norm");
handArr[i][4] = 1;
pokerhand["card_" + (i + 1)].NAME = _root[(("CardData_" + handArr[i][2]) + "_") + handArr[i][1]].NAME.toUpperCase();
pokerhand["card_" + (i + 1)].INFO = _root[(("CardData_" + handArr[i][2]) + "_") + handArr[i][1]].INFO.toUpperCase();
pokerhand["card_" + (i + 1)].LINK = _root[(("CardData_" + handArr[i][2]) + "_") + handArr[i][1]].LINK;
}
i++;
}
gotoAndPlay ("compare");
}
Symbol 97 Button
on (rollOver) {
_root.Snd_Rollover.start();
}
on (press) {
_root.Snd_Click.start();
}
on (release) {
oktoflip = 0;
gotoAndPlay ("compare");
}
Symbol 101 MovieClip Frame 1
stop();
Symbol 101 MovieClip Frame 5
play();
Symbol 101 MovieClip Frame 16
stop();
Symbol 101 MovieClip Frame 25
play();
Symbol 101 MovieClip Frame 36
stop();
Symbol 118 MovieClip Frame 1
stop();
Symbol 118 MovieClip Frame 2
stop();
Symbol 118 MovieClip Frame 5
stop();
Symbol 118 MovieClip Frame 8
stop();
Symbol 118 MovieClip Frame 12
stop();
Symbol 118 MovieClip Frame 16
stop();
Symbol 118 MovieClip Frame 20
stop();
Symbol 118 MovieClip Frame 26
stop();
Symbol 118 MovieClip Frame 30
stop();
Symbol 118 MovieClip Frame 36
stop();
Symbol 118 MovieClip Frame 40
stop();
Symbol 118 MovieClip Frame 45
stop();
Symbol 118 MovieClip Frame 52
stop();
Symbol 118 MovieClip Frame 57
stop();
Symbol 118 MovieClip Frame 62
stop();
Symbol 118 MovieClip Frame 67
stop();
Symbol 118 MovieClip Frame 74
stop();
Symbol 120 Button
on (rollOver) {
_root.Snd_Rollover.start();
}
on (press) {
if (_root.bet == 0) {
_root.resultmessage.gotoAndStop("mustbet");
_root.Snd_NotAllowed.start();
} else {
_root.Snd_Click.start();
}
}
on (release) {
if ((_root.bet > 0) && (_root.currentFrame == "bet")) {
oktobet = 0;
gotoAndPlay ("deal");
}
}
Symbol 128 MovieClip Frame 1
stop();
Symbol 128 MovieClip Frame 2
stop();
Symbol 128 MovieClip Frame 3
stop();
Symbol 128 MovieClip Frame 4
stop();
Symbol 128 MovieClip Frame 5
stop();
Symbol 130 Button
on (rollOver) {
_root.Snd_Rollover.start();
}
on (press) {
_root.Snd_Click.start();
}
on (release) {
_root.saved_bank = bank + bet;
myGameData.data.savedGameDATA = _root.saved_bank;
myGameData.data.flush();
_root.b_restore.enabled = true;
_root.b_restore._alpha = 100;
_root.gotoFrame = "init";
_root.doTransition();
}
Symbol 134 Button
on (release) {
if (oktobet == 1) {
if (bet > 0) {
bank = bank + bet;
bet = 0;
_root.chipstack_all.gotoAndPlay("adjust");
}
}
}
Symbol 278 MovieClip Frame 1
stop();
Symbol 279 Button
on (release) {
unFlippedCount = 0;
unFlippedAce = 0;
i = 0;
while (i < 5) {
if (_root.handArr[i][4] == 1) {
unFlippedCount++;
if ((_root.handArr[i][1] == 1) || (_root.handArr[i][1] == 99)) {
unFlippedAce++;
}
}
i++;
}
if (_root.oktoflip == 1) {
if (((unFlippedCount >= 3) || (unFlippedAce >= 2)) || (((unFlippedAce >= 1) && (_root.handArr[this.slot][1] != 1)) && (_root.handArr[this.slot][1] != 99))) {
_root.handArr[this.slot][4] = 0;
_root.Snd_CardFlip.start();
this.gotoAndPlay("turned");
} else {
_root.Snd_NotAllowed.start();
}
} else {
_root.Snd_NotAllowed.start();
}
}
Symbol 286 Button
on (release) {
_root.getURL(this.LINK, "_blank");
}
Symbol 287 Button
on (release) {
if (_root.oktoflip == 1) {
_root.handArr[this.slot][4] = 1;
this.gotoAndPlay("norm");
_root.Snd_CardFlip.start();
}
}
Symbol 288 MovieClip Frame 1
yPos = Txt_NAME._y;
Txt_NAME.autoSize = true;
Txt_NAME.text = this.NAME;
yPos = yPos + (Txt_NAME._height - 1);
Txt_INFO._y = yPos;
Txt_INFO.autoSize = true;
Txt_INFO.text = this.INFO;
yPos = yPos + (Txt_INFO._height + 3);
if (this.LINK.length < 5) {
b_more._visible = false;
}
b_more._y = Math.ceil(yPos);
stop();
Symbol 288 MovieClip Frame 2
yPos = Txt_NAME._y;
Txt_NAME.autoSize = true;
Txt_NAME.text = this.NAME;
yPos = yPos + (Txt_NAME._height - 1);
Txt_INFO._y = yPos;
Txt_INFO.autoSize = true;
Txt_INFO.text = this.INFO;
yPos = yPos + (Txt_INFO._height + 3);
if (this.LINK.length < 5) {
b_more._visible = false;
}
b_more._y = Math.ceil(yPos);
stop();
Symbol 288 MovieClip Frame 3
stop();
Symbol 294 MovieClip Frame 1
stop();
Symbol 294 MovieClip Frame 5
play();
Symbol 294 MovieClip Frame 56
_root.shufflenow = 0;
_root.gotoAndPlay("deal2");
Symbol 296 Button
on (rollOver) {
_root.Snd_Rollover.start();
}
on (press) {
_root.Snd_Click.start();
}
on (release) {
bank = 100;
bet = new Number();
gotoAndPlay ("play");
}
Symbol 298 Button
on (rollOver) {
_root.Snd_Rollover.start();
}
on (press) {
_root.Snd_Click.start();
}
on (release) {
bank = 100;
bet = new Number();
gotoAndPlay ("play");
}