Frame 1
setProperty("_level0/loader/loaderBar", _xscale , "10");
Frame 5
setProperty("_level0/loader/loaderBar", _xscale , "20");
loadVariables ("poker.txt", "/");
money = "100";
help = "false";
Frame 10
setProperty("_level0/loader/loaderBar", _xscale , "30");
Frame 15
setProperty("_level0/loader/loaderBar", _xscale , "40");
Frame 20
setProperty("_level0/loader/loaderBar", _xscale , "50");
Frame 25
setProperty("_level0/loader/loaderBar", _xscale , "60");
Frame 30
setProperty("_level0/loader/loaderBar", _xscale , "70");
Frame 35
setProperty("_level0/loader/loaderBar", _xscale , "80");
Frame 40
setProperty("_level0/loader/loaderBar", _xscale , "90");
Frame 45
setProperty("_level0/loader/loaderBar", _xscale , "95");
Frame 55
j = "1";
while (j < "6") {
tellTarget ("/5packs/pack" add j) {
gotoAndStop (1);
};
tellTarget ("/hold" add j) {
gotoAndStop (1);
};
j = j + "1";
}
tellTarget ("/win-loseText") {
gotoAndStop (1);
};
tellTarget ("/controls") {
gotoAndStop (1);
};
tellTarget ("/chipCounter") {
gotoAndPlay (2);
};
tellTarget ("/screenSlot") {
gotoAndStop (1);
};
vCurrentRound = "0";
vWinFactor = "0";
i = "1";
while (i < "6") {
Set(("card" add i) add "Id", "");
Set(("card" add i) add "Id2", "");
Set(("cardhold" add i) add "Held", "0");
i = i + "1";
}
profitTemp = "0";
currentBet = "0";
winType = "\"\"";
tellTarget ("_level0/") {
gotoAndStop ("blank2");
}
Frame 56
stop();
Frame 64
Set("/:twoXBetMade", "0");
Set("/:fourXBetMade", "0");
Set("/:bettingInProgress", "0");
nextFrame();
Frame 65
tellTarget ("/52xGambleCards") {
Set("/:gambleCardNum", random("52") + "2");
gotoAndStop(/:gambleCardNum);
};
stop();
Symbol 1 MovieClip Frame 1
stop();
Symbol 1 MovieClip Frame 2
if (_level0/:money < "1000") {
tellTarget ("/controls/chip1000") {
gotoAndStop (2);
};
} else {
tellTarget ("/controls/chip1000") {
gotoAndStop (1);
};
}
if (_level0/:money < "500") {
tellTarget ("/controls/chip500") {
gotoAndStop (2);
};
} else {
tellTarget ("/controls/chip500") {
gotoAndStop (1);
};
}
if (_level0/:money < "100") {
tellTarget ("/controls/chip100") {
gotoAndStop (2);
};
} else {
tellTarget ("/controls/chip100") {
gotoAndStop (1);
};
}
if (_level0/:money < "50") {
tellTarget ("/controls/chip50") {
gotoAndStop (2);
};
} else {
tellTarget ("/controls/chip50") {
gotoAndStop (1);
};
}
if (_level0/:money < "10") {
tellTarget ("/controls/chip10") {
gotoAndStop (2);
};
} else {
tellTarget ("/controls/chip10") {
gotoAndStop (1);
};
}
if (_level0/:money < "5") {
tellTarget ("/controls/chip5") {
gotoAndStop (2);
};
} else {
tellTarget ("/controls/chip5") {
gotoAndStop (1);
};
}
if (_level0/:money < "1") {
tellTarget ("/controls/chip1") {
gotoAndStop (2);
};
} else {
tellTarget ("/controls/chip1") {
gotoAndStop (1);
};
}
Symbol 42 MovieClip Frame 1
stop();
Symbol 42 MovieClip Frame 2
Set("/:fourTimesGambleNum", random("4") + "1");
Set("/:bettingInProgress", "1");
Symbol 42 MovieClip Frame 34
if (/:fourTimesGambleNum == "1") {
if (/:fourTimesGambleNumChosen == /:fourTimesGambleNum) {
Set("/:profit", /:profit * "4");
} else {
Set("/:profitLost", /:profit);
Set("/:profit", "0");
}
if (/:profit <> "0") {
tellTarget ("/win-LoseText") {
gotoAndPlay (19);
};
} else {
tellTarget ("/win-LoseText") {
gotoAndPlay (28);
};
}
stop();
}
Symbol 42 MovieClip Frame 38
if (/:fourTimesGambleNum == "2") {
if (/:fourTimesGambleNumChosen == /:fourTimesGambleNum) {
Set("/:profit", /:profit * "4");
} else {
Set("/:profitLost", /:profit);
Set("/:profit", "0");
}
if (/:profit <> "0") {
tellTarget ("/win-LoseText") {
gotoAndPlay (19);
};
} else {
tellTarget ("/win-LoseText") {
gotoAndPlay (28);
};
}
stop();
}
Symbol 42 MovieClip Frame 42
if (/:fourTimesGambleNum == "3") {
if (/:fourTimesGambleNumChosen == /:fourTimesGambleNum) {
Set("/:profit", /:profit * "4");
} else {
Set("/:profitLost", /:profit);
Set("/:profit", "0");
}
if (/:profit <> "0") {
tellTarget ("/win-LoseText") {
gotoAndPlay (19);
};
} else {
tellTarget ("/win-LoseText") {
gotoAndPlay (28);
};
}
stop();
}
Symbol 42 MovieClip Frame 46
if (/:fourTimesGambleNum == "4") {
if (/:fourTimesGambleNumChosen == /:fourTimesGambleNum) {
Set("/:profit", /:profit * "4");
} else {
Set("/:profitLost", /:profit);
Set("/:profit", "0");
}
if (/:profit <> "0") {
tellTarget ("/win-LoseText") {
gotoAndPlay (19);
};
} else {
tellTarget ("/win-LoseText") {
gotoAndPlay (28);
};
}
stop();
}
Symbol 44 MovieClip Frame 1
stop();
Symbol 44 MovieClip Frame 2
Set("/:fourTimesGambleNumChosen", "1");
stop();
Symbol 44 MovieClip Frame 3
Set("/:fourTimesGambleNumChosen", "2");
stop();
Symbol 44 MovieClip Frame 4
Set("/:fourTimesGambleNumChosen", "3");
stop();
Symbol 44 MovieClip Frame 5
Set("/:fourTimesGambleNumChosen", "4");
stop();
Symbol 46 Button
on (release) {
tellTarget ("4xSelector") {
gotoAndStop ("clubsSelector");
};
Set("/:fourXBetMade", "1");
}
Symbol 47 Button
on (release) {
tellTarget ("4xSelector") {
gotoAndStop ("diamondsSelector");
};
Set("/:fourXBetMade", "1");
}
Symbol 48 Button
on (release) {
tellTarget ("4xSelector") {
gotoAndStop ("heartsSelector");
};
Set("/:fourXBetMade", "1");
}
Symbol 49 Button
on (release) {
tellTarget ("4xSelector") {
gotoAndStop ("spadesSelector");
};
Set("/:fourXBetMade", "1");
}
Symbol 50 MovieClip Frame 1
stop();
Symbol 73 MovieClip Frame 1
stop();
Symbol 73 MovieClip Frame 2
Set("/:twoTimesGambleNum", random("2") + "1");
Set("/:bettingInProgress", "1");
Symbol 73 MovieClip Frame 26
if (/:twoTimesGambleNum == "1") {
if (/:twoTimesGambleNumChosen == /:twoTimesGambleNum) {
Set("/:profit", /:profit * "2");
} else {
Set("/:profitLost", /:profit);
Set("/:profit", "0");
}
if (/:profit <> "0") {
tellTarget ("/win-LoseText") {
gotoAndPlay (19);
};
} else {
tellTarget ("/win-LoseText") {
gotoAndPlay (28);
};
}
stop();
}
Symbol 73 MovieClip Frame 30
if (/:twoTimesGambleNum == "2") {
if (/:twoTimesGambleNumChosen == /:twoTimesGambleNum) {
Set("/:profit", /:profit * "2");
} else {
Set("/:profitLost", /:profit);
Set("/:profit", "0");
}
if (/:profit <> "0") {
tellTarget ("/win-LoseText") {
gotoAndPlay (19);
};
} else {
tellTarget ("/win-LoseText") {
gotoAndPlay (28);
};
}
stop();
}
Symbol 74 MovieClip Frame 1
stop();
Symbol 74 MovieClip Frame 2
Set("/:twoTimesGambleNumChosen", "1");
stop();
Symbol 74 MovieClip Frame 3
Set("/:twoTimesGambleNumChosen", "2");
stop();
Symbol 76 Button
on (release) {
tellTarget ("2xSelector") {
gotoAndStop ("blackSelector");
};
Set("/:twoXBetMade", "1");
}
Symbol 77 Button
on (release) {
tellTarget ("2xSelector") {
gotoAndStop ("redSelector");
};
Set("/:twoXBetMade", "1");
}
Symbol 78 MovieClip Frame 1
stop();
Symbol 80 Button
on (release) {
tellTarget ("_level0/sendVariables") {
gotoAndPlay (2);
};
tellTarget ("_level0/") {
gotoAndStop ("casino");
};
unloadMovieNum (1);
}
Symbol 85 Button
on (release) {
Set("_level0/:help", "false");
tellTarget ("/helpHolder") {
gotoAndStop (2);
};
tellTarget ("/help") {
gotoAndStop (1);
};
gotoAndStop (2);
}
Symbol 88 Button
on (release) {
tellTarget ("/confirmReset") {
gotoAndStop (2);
}
}
Symbol 90 Button
on (release) {
Set("_level0/:help", "true");
tellTarget ("/helpHolder") {
gotoAndStop (1);
};
gotoAndStop (1);
}
Symbol 91 MovieClip Frame 1
if (_level0/:help eq "false") {
tellTarget ("/helpHolder") {
gotoAndStop (2);
};
gotoAndStop (2);
} else {
stop();
}
Symbol 91 MovieClip Frame 2
stop();
Symbol 103 Button
on (release) {
x = "1";
while (x < /:chip1count) {
removeMovieClip("/controls/chip1/chip1drag" add x);
x = x + "1";
}
x = "1";
while (x < /:chip5count) {
removeMovieClip("/controls/chip5/chip5drag" add x);
x = x + "1";
}
x = "1";
while (x < /:chip10count) {
removeMovieClip("/controls/chip10/chip10drag" add x);
x = x + "1";
}
x = "1";
while (x < /:chip50count) {
removeMovieClip("/controls/chip50/chip50drag" add x);
x = x + "1";
}
x = "1";
while (x < /:chip100count) {
removeMovieClip("/controls/chip100/chip100drag" add x);
x = x + "1";
}
x = "1";
while (x < /:chip500count) {
removeMovieClip("/controls/chip500/chip500drag" add x);
x = x + "1";
}
x = "1";
while (x < /:chip1000count) {
removeMovieClip("/controls/chip1000/chip1000drag" add x);
x = x + "1";
}
x = "1";
while (x < "55") {
Set("/:square" add x, "0");
x = x + "1";
}
Set("_level0/:money", _level0/:money + /:currentBet);
Set("/:currentBet", "0");
Set("/:chip1count", "1");
Set("/:chip5count", "1");
Set("/:chip10count", "1");
Set("/:chip50count", "1");
Set("/:chip100count", "1");
Set("/:chip500count", "1");
Set("/:chip1000count", "1");
tellTarget ("/chipCounter") {
gotoAndPlay (2);
}
}
Symbol 108 Button
on (release) {
if ("0" < /:currentBet) {
tellTarget ("/5Packs") {
gotoAndPlay ("generateCards");
};
Set("/:vCurrentRound", "1");
gotoAndStop (2);
}
}
Symbol 115 Button
on (rollOver) {
startDrag ("", true);
}
on (release) {
if (_droptarget eq "/dropInside") {
dropSucessful = "true";
}
if (_droptarget eq "/dropOutside") {
removeMovieClip("");
}
if (dropSucessful eq "true") {
Set("/:currentBet", /:currentBet + "1");
Set("_level0/:money", _level0/:money - "1");
tellTarget ("/chipCounter") {
gotoAndPlay (2);
};
removeMovieClip("");
}
}
Symbol 116 MovieClip Frame 1
stop();
Symbol 117 Button
on (release) {
duplicateMovieClip ("chip1drag", "chip1dragTemp", "1");
tellTarget ("chip1dragTemp") {
gotoAndStop (2);
}
}
Symbol 118 MovieClip Frame 1
stop();
Symbol 121 Button
on (rollOver) {
startDrag ("", true);
}
on (release) {
if (_droptarget eq "/dropInside") {
dropSucessful = "true";
}
if (_droptarget eq "/dropOutside") {
removeMovieClip("");
}
if (dropSucessful eq "true") {
Set("/:currentBet", /:currentBet + "5");
Set("_level0/:money", _level0/:money - "5");
tellTarget ("/chipCounter") {
gotoAndPlay (2);
};
removeMovieClip("");
}
}
Symbol 122 MovieClip Frame 1
stop();
Symbol 123 Button
on (release) {
duplicateMovieClip ("chip5drag", "chip5dragTemp", "1");
tellTarget ("chip5dragTemp") {
gotoAndStop (2);
}
}
Symbol 124 MovieClip Frame 1
stop();
Symbol 127 Button
on (rollOver) {
startDrag ("", true);
}
on (release) {
if (_droptarget eq "/dropInside") {
dropSucessful = "true";
}
if (_droptarget eq "/dropOutside") {
removeMovieClip("");
}
if (dropSucessful eq "true") {
Set("/:currentBet", /:currentBet + "10");
Set("_level0/:money", _level0/:money - "10");
tellTarget ("/chipCounter") {
gotoAndPlay (2);
};
removeMovieClip("");
}
}
Symbol 128 MovieClip Frame 1
stop();
Symbol 129 Button
on (release) {
duplicateMovieClip ("chip10drag", "chip10dragTemp", "1");
tellTarget ("chip10dragTemp") {
gotoAndStop (2);
}
}
Symbol 130 MovieClip Frame 1
stop();
Symbol 133 Button
on (rollOver) {
startDrag ("", true);
}
on (release) {
if (_droptarget eq "/dropInside") {
dropSucessful = "true";
}
if (_droptarget eq "/dropOutside") {
removeMovieClip("");
}
if (dropSucessful eq "true") {
Set("/:currentBet", /:currentBet + "50");
Set("_level0/:money", _level0/:money - "50");
tellTarget ("/chipCounter") {
gotoAndPlay (2);
};
removeMovieClip("");
}
}
Symbol 134 MovieClip Frame 1
stop();
Symbol 135 Button
on (release) {
duplicateMovieClip ("chip50drag", "chip50dragTemp", "1");
tellTarget ("chip50dragTemp") {
gotoAndStop (2);
}
}
Symbol 136 MovieClip Frame 1
stop();
Symbol 139 Button
on (rollOver) {
startDrag ("", true);
}
on (release) {
if (_droptarget eq "/dropInside") {
dropSucessful = "true";
}
if (_droptarget eq "/dropOutside") {
removeMovieClip("");
}
if (dropSucessful eq "true") {
Set("/:currentBet", /:currentBet + "100");
Set("_level0/:money", _level0/:money - "100");
tellTarget ("/chipCounter") {
gotoAndPlay (2);
};
removeMovieClip("");
}
}
Symbol 140 MovieClip Frame 1
stop();
Symbol 142 Button
on (release) {
duplicateMovieClip ("chip100drag", "chip100dragTemp", "1");
tellTarget ("chip100dragTemp") {
gotoAndStop (2);
}
}
Symbol 143 MovieClip Frame 1
stop();
Symbol 146 Button
on (rollOver) {
startDrag ("", true);
}
on (release) {
if (_droptarget eq "/dropInside") {
dropSucessful = "true";
}
if (_droptarget eq "/dropOutside") {
removeMovieClip("");
}
if (dropSucessful eq "true") {
Set("/:currentBet", /:currentBet + "500");
Set("_level0/:money", _level0/:money - "500");
tellTarget ("/chipCounter") {
gotoAndPlay (2);
};
removeMovieClip("");
}
}
Symbol 147 MovieClip Frame 1
stop();
Symbol 148 Button
on (release) {
duplicateMovieClip ("chip500drag", "chip500dragTemp", "1");
tellTarget ("chip500dragTemp") {
gotoAndStop (2);
}
}
Symbol 149 MovieClip Frame 1
stop();
Symbol 152 Button
on (rollOver) {
startDrag ("", true);
}
on (release) {
if (_droptarget eq "/dropInside") {
dropSucessful = "true";
}
if (_droptarget eq "/dropOutside") {
removeMovieClip("");
}
if (dropSucessful eq "true") {
Set("/:currentBet", /:currentBet + "1000");
Set("_level0/:money", _level0/:money - "1000");
tellTarget ("/chipCounter") {
gotoAndPlay (2);
};
removeMovieClip("");
}
}
Symbol 153 MovieClip Frame 1
stop();
Symbol 154 Button
on (release) {
duplicateMovieClip ("chip1000drag", "chip1000dragTemp", "1");
tellTarget ("chip1000dragTemp") {
gotoAndStop (2);
}
}
Symbol 155 MovieClip Frame 1
stop();
Symbol 157 Button
on (release) {
tellTarget ("/5Packs") {
gotoAndPlay ("generateCards2");
};
Set("/:vCurrentRound", "2");
gotoAndStop (3);
}
Symbol 165 Button
on (release) {
tellTarget ("/") {
gotoAndPlay ("init");
}
}
Symbol 166 MovieClip Frame 1
stop();
Symbol 166 MovieClip Frame 2
tellTarget ("chip1000") {
gotoAndStop (2);
};
tellTarget ("chip500") {
gotoAndStop (2);
};
tellTarget ("chip100") {
gotoAndStop (2);
};
tellTarget ("chip50") {
gotoAndStop (2);
};
tellTarget ("chip10") {
gotoAndStop (2);
};
tellTarget ("chip5") {
gotoAndStop (2);
};
tellTarget ("chip1") {
gotoAndStop (2);
};
stop();
Symbol 166 MovieClip Frame 3
tellTarget ("chip1000") {
gotoAndStop (2);
};
tellTarget ("chip500") {
gotoAndStop (2);
};
tellTarget ("chip100") {
gotoAndStop (2);
};
tellTarget ("chip50") {
gotoAndStop (2);
};
tellTarget ("chip10") {
gotoAndStop (2);
};
tellTarget ("chip5") {
gotoAndStop (2);
};
tellTarget ("chip1") {
gotoAndStop (2);
};
stop();
Symbol 166 MovieClip Frame 4
stop();
Symbol 186 MovieClip Frame 1
stop();
Symbol 187 MovieClip Frame 1
stop();
Symbol 187 MovieClip Frame 2
play();
Symbol 187 MovieClip Frame 8
stop();
Symbol 187 MovieClip Frame 13
tellTarget ("helpInt") {
gotoAndStop (1);
}
Symbol 189 Button
on (rollOver, dragOver) {
tellTarget ("/help/helpInt") {
gotoAndStop ("help");
};
tellTarget ("/help") {
gotoAndPlay (2);
};
tellTarget ("/helpHolder/off") {
gotoAndStop ("help");
};
gotoAndStop (2);
}
Symbol 190 MovieClip Frame 1
stop();
Symbol 191 Button
on (rollOver, dragOver) {
tellTarget ("/help/helpInt") {
gotoAndStop ("money");
};
tellTarget ("/help") {
gotoAndPlay (2);
};
tellTarget ("/helpHolder/off") {
gotoAndStop ("money");
};
gotoAndStop (2);
}
Symbol 192 MovieClip Frame 1
stop();
Symbol 193 Button
on (rollOver, dragOver) {
tellTarget ("/help/helpInt") {
gotoAndStop ("reset");
};
tellTarget ("/help") {
gotoAndPlay (2);
};
tellTarget ("/helpHolder/off") {
gotoAndStop ("reset");
};
gotoAndStop (2);
}
Symbol 194 MovieClip Frame 1
stop();
Symbol 195 Button
on (rollOver, dragOver) {
tellTarget ("/help/helpInt") {
gotoAndStop ("goBack");
};
tellTarget ("/help") {
gotoAndPlay (2);
};
tellTarget ("/helpHolder/off") {
gotoAndStop ("goBack");
};
gotoAndStop (2);
}
Symbol 196 MovieClip Frame 1
stop();
Symbol 197 Button
on (rollOver, dragOver) {
tellTarget ("/help/helpInt") {
gotoAndStop ("chipBoard");
};
tellTarget ("/help") {
gotoAndPlay (2);
};
tellTarget ("/helpHolder/off") {
gotoAndStop ("chipBoard");
};
gotoAndStop (2);
}
Symbol 198 MovieClip Frame 1
stop();
Symbol 200 Button
on (rollOver, dragOver) {
tellTarget ("/help/helpInt") {
gotoAndStop ("videoScreen");
};
tellTarget ("/help") {
gotoAndPlay (2);
};
tellTarget ("/helpHolder/off") {
gotoAndStop ("videoScreen");
};
gotoAndStop (2);
}
Symbol 201 MovieClip Frame 1
stop();
Symbol 203 Button
on (rollOver, dragOver) {
tellTarget ("/help/helpInt") {
gotoAndStop ("hold");
};
tellTarget ("/help") {
gotoAndPlay (2);
};
tellTarget ("/helpHolder/off") {
gotoAndStop ("hold");
};
gotoAndStop (2);
}
Symbol 204 MovieClip Frame 1
stop();
Symbol 206 Button
on (rollOver, dragOver) {
call("clear");
gotoAndStop (1);
}
Symbol 208 Button
on (rollOver, dragOver) {
call("clear");
gotoAndStop (1);
}
Symbol 210 Button
on (rollOver, dragOver) {
call("clear");
gotoAndStop (1);
}
Symbol 212 Button
on (rollOver, dragOver) {
call("clear");
gotoAndStop (1);
}
Symbol 214 Button
on (rollOver, dragOver) {
call("clear");
gotoAndStop (1);
}
Symbol 216 Button
on (rollOver, dragOver) {
call("clear");
gotoAndStop (1);
}
Symbol 217 MovieClip Frame 1
stop();
Symbol 217 MovieClip Frame 50
tellTarget ("/helpHolder/help") {
gotoAndStop (1);
};
tellTarget ("/helpHolder/money") {
gotoAndStop (1);
};
tellTarget ("/helpHolder/reset") {
gotoAndStop (1);
};
tellTarget ("/helpHolder/goBack") {
gotoAndStop (1);
};
tellTarget ("/helpHolder/chipBoard") {
gotoAndStop (1);
};
tellTarget ("/helpHolder/videoScreen") {
gotoAndStop (1);
};
tellTarget ("/helpHolder/hold") {
gotoAndStop (1);
};
tellTarget ("/help") {
gotoAndPlay (9);
};
tellTarget ("/help/helpInt") {
gotoAndStop (1);
}
Symbol 218 MovieClip Frame 1
stop();
Symbol 225 Button
on (release) {
Set("_level0/:money", "100");
gotoAndStop (1);
if (close == "1") {
tellTarget ("/helpHolder") {
gotoAndStop (1);
};
close = "0";
}
tellTarget ("/") {
gotoAndPlay ("init");
}
}
Symbol 227 Button
on (rollOver, dragOver) {
gotoAndStop (1);
if (close == "1") {
tellTarget ("/helpHolder") {
gotoAndStop (1);
};
close = "0";
}
}
Symbol 233 Button
on (release) {
gotoAndStop (1);
if (close == "1") {
tellTarget ("/helpHolder") {
gotoAndStop (1);
};
close = "0";
}
}
Symbol 234 MovieClip Frame 1
Set("_level0/:confirmReset", "0");
stop();
Symbol 234 MovieClip Frame 2
Set("_level0/:confirmReset", "1");
if (_level0/:help eq "true") {
close = "1";
}
tellTarget ("/helpHolder") {
gotoAndStop (2);
}
Symbol 240 Button
on (release) {
Set("_level0/:money", _level0/:money + /:profit);
gotoAndStop (1);
tellTarget ("/controls") {
gotoAndStop (4);
}
}
Symbol 242 Button
on (release) {
gotoAndStop (1);
tellTarget ("/controls") {
gotoAndStop (3);
};
tellTarget ("/") {
gotoAndStop ("gamble");
};
tellTarget ("/screenSlot") {
gotoAndStop (2);
}
}
Symbol 249 Button
on (release) {
gotoAndStop (1);
tellTarget ("/controls") {
gotoAndStop (3);
}
}
Symbol 252 MovieClip Frame 1
stop();
Symbol 252 MovieClip Frame 9
profitTemp = (/:winType add _level0/:pYouWin) add /:profit;
stop();
Symbol 252 MovieClip Frame 18
currentBetTemp = _level0/:pYouLost add /:currentBet;
tellTarget ("/controls") {
gotoAndStop (4);
};
stop();
Symbol 252 MovieClip Frame 27
profitTemp2 = _level0/:pYouWin add /:profit;
Set("/:bettingInProgress", "0");
stop();
Symbol 252 MovieClip Frame 36
currentBetTemp2 = _level0/:pYouLost add /:profitLost;
tellTarget ("/controls") {
gotoAndStop (4);
};
Set("/:bettingInProgress", "0");
stop();
Symbol 255 Button
on (release) {
if (/:vCurrentRound == "1") {
Set(("/:card" add _name) add "Held", "1");
tellTarget (getProperty("/", _name)) {
gotoAndStop (2);
};
}
}
Symbol 257 Button
on (release) {
if (/:vCurrentRound == "1") {
Set(("/:card" add _name) add "Held", "0");
tellTarget (getProperty("/", _name)) {
gotoAndStop (1);
};
}
}
Symbol 258 MovieClip Frame 1
stop();
Symbol 258 MovieClip Frame 2
stop();
Symbol 261 Button
on (release) {
tellTarget ("/2xGamble/2xGambleSymbols") {
gotoAndPlay (2);
}
}
Symbol 263 Button
on (release) {
tellTarget ("/4xGamble/4xGambleSymbols") {
gotoAndPlay (2);
}
}
Symbol 265 Button
on (release) {
tellTarget ("/52xGambleCards2") {
Set("/:GambleCardNum2", random("52") + "2");
gotoAndStop(/:GambleCardNum2);
};
if (/:GambleCardNum2 == /:GambleCardNum) {
Set("/:profit", /:profit * "52");
} else {
Set("/:profitLost", /:profit);
Set("/:profit", "0");
}
}
Symbol 315 MovieClip Frame 1
stop();
Symbol 316 MovieClip Frame 1
stop();
Symbol 316 MovieClip Frame 2
gotoAndPlay (3);
Symbol 316 MovieClip Frame 3
j = "1";
while (j < "6") {
tempNum = random("13") + "2";
tempSuitNum = random("4") + "1";
call("suitConvert");
Set(("/:card" add j) add "Id", tempNum add tempSuit);
j = j + "1";
}
call("dupCheck");
if (dupCards == "0") {
gotoAndPlay (4);
} else {
gotoAndPlay (2);
}
stop();
Symbol 316 MovieClip Frame 4
tellTarget ("pack1") {
gotoAndStop(/:card1Id);
};
tellTarget ("pack2") {
gotoAndStop(/:card2Id);
};
tellTarget ("pack3") {
gotoAndStop(/:card3Id);
};
tellTarget ("pack4") {
gotoAndStop(/:card4Id);
};
tellTarget ("pack5") {
gotoAndStop(/:card5Id);
}
Symbol 316 MovieClip Frame 5
gotoAndPlay (6);
Symbol 316 MovieClip Frame 6
j = "1";
while (j < "6") {
if (eval (("/:cardhold" add j) add "Held") == "0") {
tempNum = random("13") + "2";
tempSuitNum = random("4") + "1";
call("suitConvert");
Set(("/:card" add j) add "Id2", tempNum add tempSuit);
}
j = j + "1";
}
call("dupCheck2");
if (dupCards == "0") {
call("dupCheck3");
}
if (dupCards == "0") {
gotoAndPlay (7);
} else {
gotoAndPlay (5);
}
stop();
Symbol 316 MovieClip Frame 7
tellTarget ("pack1") {
if (/:card1Id2 ne "") {
Set("/:card1Id", /:card1Id2);
gotoAndStop(/:card1Id2);
}
};
tellTarget ("pack2") {
if (/:card2Id2 ne "") {
Set("/:card2Id", /:card2Id2);
gotoAndStop(/:card2Id2);
}
};
tellTarget ("pack3") {
if (/:card3Id2 ne "") {
Set("/:card3Id", /:card3Id2);
gotoAndStop(/:card3Id2);
}
};
tellTarget ("pack4") {
if (/:card4Id2 ne "") {
Set("/:card4Id", /:card4Id2);
gotoAndStop(/:card4Id2);
}
};
tellTarget ("pack5") {
if (/:card5Id2 ne "") {
Set("/:card5Id", /:card5Id2);
gotoAndStop(/:card5Id2);
}
};
gotoAndStop (8);
Symbol 316 MovieClip Frame 8
numMatchCount = "0";
j = "1";
while (j < "6") {
if (eval (("/:card" add j) add "Id2") eq "") {
cardValueTemp = ("/:card" add j) add "Id";
} else {
cardValueTemp = ("/:card" add j) add "Id2";
}
if (length(eval (cardValueTemp)) == "3") {
Set(("/:card" add j) add "Num", substring(eval (cardValueTemp), "1", "2"));
Set(("/:card" add j) add "Suit", substring(eval (cardValueTemp), "3", "1"));
} else {
Set(("/:card" add j) add "Num", substring(eval (cardValueTemp), "1", "1"));
Set(("/:card" add j) add "Suit", substring(eval (cardValueTemp), "2", "1"));
}
j = j + "1";
}
j = "1";
while (j < "6") {
z = "1";
while (z < "6") {
testCard = eval (("/:card" add j) add "Suit");
existCard = eval (("/:card" add z) add "Suit");
if (testCard ne existCard) {
suitMatch = "0";
z = "5";
} else {
suitMatch = suitMatch + "1";
}
z = z + "1";
}
j = j + "1";
}
if (suitMatch == "25") {
royalFlush = "0";
j = "1";
while (j < "6") {
if (((((eval (("/:card" add j) add "Num") == "10") or (eval (("/:card" add j) add "Num") == "11")) or (eval (("/:card" add j) add "Num") == "12")) or (eval (("/:card" add j) add "Num") == "13")) or (eval (("/:card" add j) add "Num") == "14")) {
royalFlush = royalFlush + "1";
j = j + "1";
} else {
j = "6";
}
}
if (royalFlush == "5") {
Set("/:winType", _level0/:royalFlush);
Set("/:vWinFactor", "300");
}
}
if ((suitMatch == "25") and (royalFlush <> "5")) {
i = "1";
consecNums = "0";
while (i < "6") {
x = "1";
upTemp = eval (("/:card" add i) add "Num") + "1";
downTemp = eval (("/:card" add i) add "Num") - "1";
while (x < "6") {
if ((eval (("/:card" add x) add "Num") == upTemp) or (eval (("/:card" add x) add "Num") == downTemp)) {
consecNums = consecNums + "1";
}
x = x + "1";
}
i = i + "1";
}
if (consecNums == "8") {
Set("/:winType", _level0/:straightFlush);
Set("/:vWinFactor", "50");
} else {
Set("/:winType", _level0/:flush);
Set("/:vWinFactor", "5");
}
}
if (((/:vWinFactor <> "300") and (/:vWinFactor <> "50")) and (/:vWinFactor <> "5")) {
j = "1";
numMatchCount = "0";
while (j < "6") {
z = "1";
while (z < "6") {
testCard = eval (("/:card" add j) add "Num");
existCard = eval (("/:card" add z) add "Num");
if (testCard == existCard) {
numMatchCount = numMatchCount + "1";
}
z = z + "1";
}
j = j + "1";
}
if (numMatchCount == "7") {
k = "1";
while (k < "6") {
l = "1";
while (l < "6") {
testCard = ("/:card" add k) add "Num";
existCard = ("/:card" add l) add "Num";
if (testCard ne existCard) {
if (eval (testCard) == eval (existCard)) {
pairValueTemp = eval (("/:card" add k) add "Num") + eval (("/:card" add l) add "Num");
}
}
l = l + "1";
}
k = k + "1";
}
if (pairValueTemp >= "22") {
Set("/:winType", _level0/:pair);
Set("/:vWinFactor", "1");
}
} else if (numMatchCount == "9") {
Set("/:vWinFactor", "2");
Set("/:winType", /_level0/:twoPair);
} else if (numMatchCount == "11") {
Set("/:vWinFactor", "3");
Set("/:winType", _level0/:threeKind);
} else if (numMatchCount == "13") {
Set("/:vWinFactor", "10");
Set("/:winType", _level0/:fullHouse);
} else if (numMatchCount == "17") {
Set("/:vWinFactor", "25");
Set("/:winType", _level0/:fourKind);
}
}
if (((suitMatch <> "25") and (numMatchCount <> "9")) and (numMatchCount <> "7")) {
i = "1";
consecNums = "0";
while (i < "6") {
x = "1";
upTemp = eval (("/:card" add i) add "Num") + "1";
downTemp = eval (("/:card" add i) add "Num") - "1";
while (x < "6") {
if ((eval (("/:card" add x) add "Num") == upTemp) or (eval (("/:card" add x) add "Num") == downTemp)) {
consecNums = consecNums + "1";
}
x = x + "1";
}
i = i + "1";
}
if (consecNums == "8") {
Set("/:winType", _level0/:straight);
Set("/:vWinFactor", "4");
}
}
Set("/:profit", /:vWinFactor * /:currentBet);
gotoAndStop (9);
Symbol 316 MovieClip Frame 9
if (/:profit <> "0") {
tellTarget ("/win-LoseText") {
gotoAndPlay (2);
};
} else {
tellTarget ("/win-LoseText") {
gotoAndPlay (10);
};
}
Symbol 316 MovieClip Frame 11
if (tempSuitNum == "1") {
tempSuit = "h";
} else if (tempSuitNum == "2") {
tempSuit = "d";
} else if (tempSuitNum == "3") {
tempSuit = "c";
} else if (tempSuitNum == "4") {
tempSuit = "s";
}
Symbol 316 MovieClip Frame 12
dupCards = "0";
k = "1";
while (k < "6") {
l = "1";
while (l < "6") {
testCard = ("/:card" add k) add "Id";
existCard = ("/:card" add l) add "Id";
if (testCard ne existCard) {
if (eval (testCard) eq eval (existCard)) {
dupCards = "1";
}
}
l = l + "1";
}
k = k + "1";
}
stop();
Symbol 316 MovieClip Frame 13
dupCards = "0";
k = "1";
while (k < "6") {
l = "1";
while (l < "6") {
existCard = ("/:card" add k) add "Id";
testCard = ("/:card" add l) add "Id2";
if ((eval (testCard) ne "") and (eval (existCard) ne "")) {
if (eval (testCard) eq eval (existCard)) {
dupCards = "1";
}
}
l = l + "1";
}
k = k + "1";
}
stop();
Symbol 316 MovieClip Frame 14
dupCards = "0";
p = "1";
while (p < "6") {
q = "1";
while (q < "6") {
existCard = ("/:card" add p) add "Id2";
testCard = ("/:card" add q) add "Id2";
if ((eval (testCard) ne "") and (eval (existCard) ne "")) {
if (testCard ne existCard) {
if (eval (testCard) eq eval (existCard)) {
dupCards = "1";
}
}
}
q = q + "1";
}
p = p + "1";
}
stop();
Symbol 323 MovieClip Frame 1
stop();
Symbol 325 MovieClip Frame 1
stop();
Symbol 325 MovieClip Frame 2
stop();
Symbol 328 Button
on (release) {
if ((/:twoXBetMade == "1") and (/:bettingInProgress == "0")) {
tellTarget ("/2xGamble/2xGambleSymbols") {
gotoAndPlay (2);
};
}
}
Symbol 329 Button
on (release) {
if ((/:fourXBetMade == "1") and (/:bettingInProgress == "0")) {
tellTarget ("/4xGamble/4xGambleSymbols") {
gotoAndPlay (2);
};
}
}
Symbol 330 Button
on (release) {
if (/:bettingInProgress == "0") {
Set("/:bettingInProgress", "1");
tellTarget ("/52xGambleCards2") {
Set("/:gambleCardNum2", random("52") + "2");
gotoAndStop(/:gambleCardNum2);
};
if (/:gambleCardNum2 == /:gambleCardNum) {
Set("/:profit", /:profit * "52");
tellTarget ("/win-LoseText") {
gotoAndPlay (19);
};
} else {
Set("/:profitLost", /:profit);
tellTarget ("/win-LoseText") {
gotoAndPlay (28);
};
}
}
}