Frame 74
FrameLoad = int(("100" / _totalframes) * _framesloaded);
tellTarget ("/loader") {
gotoAndStop(/:FrameLoad);
}
ifFrameLoaded (220) {
gotoAndPlay (137);
}
Frame 75
gotoAndPlay (74);
Frame 138
cards = "2r.3r.4r.5r.6r.7r.8r.9r.0r.Ar.Vr.Dr.Kr.2b.3b.4b.5b.6b.7b.8b.9b.0b.Ab.Vb.Db.Kb.2t.3t.4t.5t.6t.7t.8t.9t.0t.At.Vt.Dt.Kt.2c.3c.4c.5c.6c.7c.8c.9c.0c.Ac.Vc.Dc.Kc.";
descard = "";
action = "PRESS DEAL TO GAMBLE";
status = action;
listb = "";
bet = "5";
win = "0";
credit = "1000";
end = "0";
firstTime = "1";
list = "";
sel1 = "0";
sel2 = "0";
sel3 = "0";
sel4 = "0";
sel5 = "0";
game = "0";
setProperty("/help", _alpha , "100");
setProperty("/help", _visible , "0");
tellTarget ("/afis") {
call("bet");
}
Frame 139
if (firstTime and (win <> "0")) {
list = "";
listb = "";
gotoAndPlay (191);
}
Frame 140
play();
if ("0" >= credit) {
gotoAndPlay (158);
call("deselect");
end = "1";
}
if (verdict ne "") {
tellTarget ("/afis/" add verdict) {
play();
};
}
list = "";
i = "0";
descard = "";
while (i < "5") {
if (eval (("hold" add (i + "1")) add ":hold") == "0") {
descard = descard add (substring(hand, (i * "3") + "1", "3"));
list = list add i;
}
i = i + "1";
}
listb = list;
gotoAndPlay (139);
Frame 144
call("hideHand");
if (risc) {
risc = "0";
}
if (verdict ne "") {
tellTarget ("/afis/" add verdict) {
gotoAndStop (1);
};
}
if (firstTime) {
credit = credit - bet;
action = "PLAYING A NEW HAND";
} else {
action = "WAITING...";
}
gotoAndPlay (145);
Frame 145
tellTarget ("/sounds") {
gotoAndPlay ("invcard");
};
if (firstTime) {
tellTarget ("/afis") {
call("bet");
};
}
Frame 150
if (firstTime) {
action = "PLAYING A NEW HAND";
status = action;
firstTime = "0";
cardst = cards;
call("mixCards");
hand = substring(mixedcards, "1", "15");
mixedcards = substring(mixedcards, "16", "-1");
call("sortHand");
} else {
firstTime = "1";
cardst = mixedcards add descard;
call("mixCards");
lista = list;
handa = "";
while (list ne "") {
i = substring(list, "1", "1");
list = substring(list, "2", "-1");
handa = handa add (substring(mixedcards, "1", "3"));
mixedcards = substring(mixedcards, "4", "-1");
}
hnd = hand;
hand = handa;
call("sortHand");
handa = hand;
hand = hnd;
list = lista;
while (list ne "") {
i = substring(list, "1", "1");
list = substring(list, "2", "-1");
hand = ((substring(hand, "1", i * "3")) add (substring(handa, "1", "3"))) add (substring(hand, ((i + "1") * "3") + "1", "-1"));
handa = substring(handa, "4", "-1");
}
call("deselect");
}
call("showHand");
Frame 153
tellTarget ("/sounds") {
gotoAndPlay ("invcard");
}
Frame 156
call("verdict");
if (verdict ne "") {
tellTarget ("/sounds") {
gotoAndPlay ("win");
};
}
if (credit < "0") {
credit = "0";
}
gotoAndPlay (140);
Frame 158
action = "THE END..YOU ARE OUT OF MONEY..PRESS DEAL TO START AGAIN";
status = action;
tellTarget ("/afis/" add verdict) {
gotoAndStop (1);
}
Frame 159
stop();
Frame 163
mixedcards = "";
i = "1";
while (cardst ne "") {
ncard = random(length(cardst) / "3");
indexcard = (ncard * "3") + "1";
mixedcards = mixedcards add (substring(cardst, indexcard, "3"));
cardst = (substring(cardst, "1", ncard * "3")) add (substring(cardst, indexcard + "3", "-1"));
}
Frame 164
i = "0";
while ((substring(listb, i + "1", "1")) ne "") {
p = substring(listb, i + "1", "1");
Set(("card" add (p + "1")) add ":hand", hand);
tellTarget ("card" add (p + "1")) {
gotoAndPlay ("show");
};
i = i + "1";
}
Frame 165
i = "0";
while ((substring(listb, i + "1", "1")) ne "") {
p = substring(listb, i + "1", "1");
Set(("card" add (p + "1")) add ":hand", hand);
tellTarget ("card" add (p + "1")) {
gotoAndPlay ("hide");
};
i = i + "1";
}
Frame 166
hands = "";
while (hand ne "") {
man = substring(hand, "1", "1");
call("valSign");
min = man;
q = "0";
len = length(hand) / "3";
k = "0";
while (k < len) {
man = substring(hand, (k * "3") + "1", "1");
call("valSign");
cur = man;
if (cur < min) {
q = k;
min = cur;
}
k = k + "1";
}
hands = hands add (substring(hand, (q * "3") + "1", "3"));
hand = (substring(hand, "1", q * "3")) add (substring(hand, ((q + "1") * "3") + "1", "-1"));
}
hand = hands;
Frame 167
if ((man ge "2") and ("9" ge man)) {
man = "0" + man;
} else if (man eq "0") {
man = "10";
} else if (man eq "A") {
man = "11";
} else if (man eq "V") {
man = "12";
} else if (man eq "D") {
man = "13";
} else if (man eq "K") {
man = "14";
}
Frame 168
win = "0";
hando = hand;
call("sortHand");
y = "0";
while (y < "5") {
Set("a" add y, "0");
y = y + "1";
}
npair = "0";
i = "0";
while (i < "5") {
k = i + "1";
while (k < "5") {
if ((substring(hand, (i * "3") + "1", "1")) eq (substring(hand, (k * "3") + "1", "1"))) {
if (!firstTime) {
if (eval ("a" add i) <> "1") {
tellTarget ("/hold" add (i + "1")) {
gotoAndPlay (2);
};
Set("a" add i, "1");
}
if (eval ("a" add k) <> "1") {
tellTarget ("/hold" add (k + "1")) {
gotoAndPlay (2);
};
Set("a" add k, "1");
}
}
npair = npair + "1";
}
k = k + "1";
}
i = i + "1";
}
col = substring(hand, "2", "1");
k = "1";
i = "1";
while (i < "5") {
if (col ne (substring(hand, (i * "3") + "2", "1"))) {
k = "0";
i = "5";
}
i = i + "1";
}
col = k;
i = "0";
str = "";
while (i < "5") {
str = str add (substring(hand, (i * "3") + "1", "1"));
i = i + "1";
}
lflush = "0";
gflush = "0";
if ((((((((str eq "23456") or (str eq "34567")) or (str eq "45678")) or (str eq "56789")) or (str eq "67890")) or (str eq "7890A")) or (str eq "890AV")) or (str eq "90AVD")) {
lflush = "1";
} else if (str eq "0AVDK") {
gflush = "1";
}
verdict = "";
if (col) {
if (gflush) {
win = afis:rflush;
verdict = "rflush";
} else if (lflush) {
win = afis:rstrflush;
verdict = "rstrflush";
} else {
win = afis:colour;
verdict = "colour";
}
} else if (gflush or lflush) {
win = afis:flush;
verdict = "flush";
} else if (npair == "1") {
win = afis:onepair;
verdict = "onepair";
} else if (npair == "2") {
win = afis:twopair;
verdict = "twopair";
} else if (npair == "3") {
win = afis:threeokind;
verdict = "threeokind";
} else if (npair == "4") {
win = afis:full;
verdict = "full";
} else if (npair == "6") {
verdict = "poker";
win = afis:poker;
}
if (verdict ne "") {
action = "YOU WIN: " add win;
status = action;
} else if (firstTime) {
action = "YOU HAVE NOTHING...TRY AGAIN";
status = action;
}
hand = hando;
if (((col or gflush) or lflush) and (!firstTime)) {
i = "0";
while (i < "5") {
tellTarget ("/hold" add (i + "1")) {
nextFrame();
};
i = i + "1";
}
}
Frame 169
i = "0";
while (i < "5") {
tellTarget ("hold" add (i + "1")) {
gotoAndPlay (3);
};
i = i + "1";
}
Frame 191
cardst = cards;
call("mixCards");
hd = substring(mixedcards, "1", "21");
i = "6";
risc = "1";
action = "RISK: GUESS THE COLOUR TO DOUBLE OR PRESS DEAL TO CANCEL";
status = action;
if (verdict ne "") {
tellTarget ("/afis/" add verdict) {
gotoAndPlay (2);
};
}
Frame 202
setProperty("/afis", _visible , "0");
Frame 204
stop();
Frame 205
if ("0" < i) {
Set(("/cardb" add (i + "1")) add ":variable", substring(hd, (i * "3") + "1", "2"));
x = getProperty("cardb" add (i + "1"), _x);
y = getProperty("cardb" add (i + "1"), _y);
setProperty("/cardb" add (i + "1"), _x , (x + "180") - (i * "8"));
setProperty("/cardb" add (i + "1"), _y , y + (("7" - i) * "2"));
tellTarget ("/cardb" add (i + "1")) {
gotoAndStop(variable);
};
setProperty("/br", _y , getProperty("/br", _y) - "2");
setProperty("/br", _x , getProperty("/br", _x) - "2");
q = "0";
while (q < i) {
y = getProperty("cardb" add (q + "1"), _y);
setProperty("/cardb" add (q + "1"), _y , y - "2");
x = getProperty("cardb" add (q + "1"), _x);
setProperty("/cardb" add (q + "1"), _x , x - "2");
q = q + "1";
}
} else {
firstTime = "1";
descard = "";
list = "";
listb = "01234";
credit = credit + win;
win = "0";
gotoAndPlay (144);
}
stop();
Frame 206
call("dacard");
if ((((substring(hd, (i * "3") + "2", "1")) eq "r") or ((substring(hd, (i * "3") + "2", "1")) eq "c")) and (colr eq "r")) {
tellTarget ("/sounds") {
gotoAndPlay ("win");
};
tellTarget ("/wl") {
gotoAndStop ("won");
};
win = win * "2";
} else if ((((substring(hd, (i * "3") + "2", "1")) eq "b") or ((substring(hd, (i * "3") + "2", "1")) eq "t")) and (colr eq "b")) {
tellTarget ("/sounds") {
gotoAndPlay ("win");
};
tellTarget ("/wl") {
gotoAndStop ("won");
};
win = win * "2";
} else {
tellTarget ("/wl") {
gotoAndStop ("lost");
};
gotoAndPlay (207);
win = "0";
risc = "0";
}
i = i - "1";
Frame 207
action = "WRONG BUTTON ....";
status = action;
Frame 220
credit = credit + win;
if (win <> "0") {
tellTarget ("/sounds") {
gotoAndPlay ("cash");
};
}
win = "0";
action = "PLAYING A NEW HAND";
firstTime = "1";
status = action;
list = "";
listb = "01234";
descard = "";
tellTarget ("/afis") {
call("bet");
};
setProperty("/afis", _visible , "1");
gotoAndPlay (144);
Symbol 14 MovieClip Frame 1
stop();
Symbol 92 Button
on (release) {
tellTarget ("/sounds") {
gotoAndPlay ("click");
};
if (!firstTime) {
tellTarget ("/hold5") {
nextFrame();
};
}
}
on (rollOver) {
if (!firstTime) {
status = "PRESS TO HOLD/UNHOLD THE CARD";
}
}
on (rollOut) {
status = action;
}
Symbol 93 Button
on (release) {
tellTarget ("/sounds") {
gotoAndPlay ("click");
};
if (!firstTime) {
tellTarget ("/hold4") {
nextFrame();
};
}
}
on (rollOver) {
if (!firstTime) {
status = "PRESS TO HOLD/UNHOLD THE CARD";
}
}
on (rollOut) {
status = action;
}
Symbol 94 Button
on (release) {
tellTarget ("/sounds") {
gotoAndPlay ("click");
};
if (!firstTime) {
tellTarget ("/hold3") {
nextFrame();
};
}
}
on (rollOver) {
if (!firstTime) {
status = "PRESS TO HOLD/UNHOLD THE CARD";
}
}
on (rollOut) {
status = action;
}
Symbol 95 Button
on (release) {
tellTarget ("/sounds") {
gotoAndPlay ("click");
};
if (!firstTime) {
tellTarget ("/hold2") {
nextFrame();
};
}
}
on (rollOver) {
if (!firstTime) {
status = "PRESS TO HOLD/UNHOLD THE CARD";
}
}
on (rollOut) {
status = action;
}
Symbol 96 Button
on (release) {
tellTarget ("/sounds") {
gotoAndPlay ("click");
};
if (!firstTime) {
tellTarget ("/hold1") {
nextFrame();
};
}
}
on (rollOver) {
if (!firstTime) {
status = "PRESS TO HOLD/UNHOLD THE CARD";
}
}
on (rollOut) {
status = action;
}
Symbol 101 Button
on (release) {
tellTarget ("/sounds") {
gotoAndPlay ("tic");
};
if (help) {
tellTarget ("/help") {
nextFrame();
};
} else if (risc) {
colr = "r";
call("verif");
} else {
if (credit < bet) {
status = "YOU CAN'T FOOL ME ...";
} else {
bet = bet + "1";
if (firstTime) {
tellTarget ("/afis") {
call("bet");
};
}
}
if (credit < bet) {
bet = credit;
}
Set("afis:bet", bet);
}
}
on (rollOver) {
if (risc) {
status = "RED COLOUR";
} else if (help) {
status = "NEXT PAGE";
} else {
status = "INCREASE THE BET";
}
}
on (rollOut) {
status = action;
}
Symbol 106 Button
on (release) {
tellTarget ("/sounds") {
gotoAndPlay ("toc");
};
if (help) {
tellTarget ("/help") {
prevFrame();
};
} else if (risc) {
colr = "b";
call("verif");
} else {
bet = bet - "1";
if (bet < "1") {
bet = "1";
}
if (firstTime) {
tellTarget ("/afis") {
call("bet");
};
}
}
}
on (rollOver) {
if (risc) {
status = "BLACK COLOUR";
} else if (help) {
status = "PREVIOUS PAGE";
} else {
status = "DECREASE THE BET";
}
}
on (rollOut) {
status = action;
}
Symbol 109 MovieClip Frame 1
hold = "0";
stop();
Symbol 109 MovieClip Frame 2
hold = "1";
stop();
Symbol 109 MovieClip Frame 3
hold = "0";
gotoAndStop (1);
Symbol 114 Button
on (release) {
tellTarget ("/sounds") {
gotoAndPlay ("deal");
};
if (risc) {
firstTime = "1";
list = "";
listb = "01234";
descard = "";
credit = credit + win;
if (win <> "0") {
tellTarget ("/sounds") {
gotoAndPlay ("cash");
};
}
win = "0";
} else if (end) {
end = "0";
credit = "1000";
} else if (help) {
help = "0";
setProperty("/help", _visible , "0");
setProperty("/afis", _visible , "1");
}
call("deal");
}
on (rollOver) {
if (risc) {
status = "CANCEL THE RISK AND PLAY A NEW HAND";
} else if (end) {
Set(action, "PRESS DEAL TO START AGAIN");
status = action;
} else {
status = "PRESS TO DEAL";
}
}
on (rollOut) {
status = action;
}
Symbol 122 Button
on (release) {
tellTarget ("/sounds") {
gotoAndPlay ("click");
};
if (risc) {
} else if (!help) {
setProperty("/help", _visible , "1");
setProperty("/afis", _visible , "0");
help = "1";
} else if (help) {
setProperty("/help", _visible , "0");
setProperty("/afis", _visible , "1");
help = "0";
}
}
on (rollOver) {
status = "HELP";
}
on (rollOut) {
status = action;
}
Symbol 135 MovieClip Frame 1
stop();
Symbol 135 MovieClip Frame 4
gotoAndPlay (2);
Symbol 155 MovieClip Frame 1
stop();
Symbol 155 MovieClip Frame 10
bet = ..:bet;
onepair = bet;
twopair = bet * "2";
threeokind = bet * "3";
flush = bet * "4";
colour = bet * "6";
full = bet * "9";
poker = bet * "25";
rstrflush = bet * "50";
rflush = bet * "1000";
Symbol 156 MovieClip Frame 1
stop();
Symbol 156 MovieClip Frame 2
stop();
Symbol 156 MovieClip Frame 3
stop();
Symbol 156 MovieClip Frame 4
stop();
Symbol 156 MovieClip Frame 5
stop();
Symbol 156 MovieClip Frame 6
stop();
Symbol 156 MovieClip Frame 7
stop();
Symbol 156 MovieClip Frame 8
stop();
Symbol 156 MovieClip Frame 9
stop();
Symbol 156 MovieClip Frame 10
stop();
Symbol 156 MovieClip Frame 11
stop();
Symbol 156 MovieClip Frame 12
stop();
Symbol 156 MovieClip Frame 13
stop();
Symbol 156 MovieClip Frame 14
stop();
Symbol 156 MovieClip Frame 15
stop();
Symbol 156 MovieClip Frame 16
stop();
Symbol 156 MovieClip Frame 17
stop();
Symbol 156 MovieClip Frame 18
stop();
Symbol 156 MovieClip Frame 19
stop();
Symbol 156 MovieClip Frame 20
stop();
Symbol 156 MovieClip Frame 21
stop();
Symbol 156 MovieClip Frame 22
stop();
Symbol 156 MovieClip Frame 23
stop();
Symbol 156 MovieClip Frame 24
stop();
Symbol 156 MovieClip Frame 25
stop();
Symbol 156 MovieClip Frame 26
stop();
Symbol 156 MovieClip Frame 27
stop();
Symbol 156 MovieClip Frame 28
stop();
Symbol 156 MovieClip Frame 29
stop();
Symbol 156 MovieClip Frame 30
stop();
Symbol 156 MovieClip Frame 31
stop();
Symbol 156 MovieClip Frame 32
stop();
Symbol 156 MovieClip Frame 33
stop();
Symbol 156 MovieClip Frame 34
stop();
Symbol 156 MovieClip Frame 35
stop();
Symbol 156 MovieClip Frame 36
stop();
Symbol 156 MovieClip Frame 37
stop();
Symbol 156 MovieClip Frame 38
stop();
Symbol 156 MovieClip Frame 39
stop();
Symbol 156 MovieClip Frame 40
stop();
Symbol 156 MovieClip Frame 41
stop();
Symbol 156 MovieClip Frame 42
stop();
Symbol 156 MovieClip Frame 43
stop();
Symbol 156 MovieClip Frame 44
stop();
Symbol 156 MovieClip Frame 45
stop();
Symbol 156 MovieClip Frame 46
stop();
Symbol 156 MovieClip Frame 47
stop();
Symbol 156 MovieClip Frame 48
stop();
Symbol 156 MovieClip Frame 49
stop();
Symbol 156 MovieClip Frame 50
stop();
Symbol 156 MovieClip Frame 51
stop();
Symbol 156 MovieClip Frame 52
stop();
Symbol 156 MovieClip Frame 53
stop();
Symbol 157 MovieClip Frame 1
stop();
Symbol 157 MovieClip Frame 5
name = _name;
i = ("0" + (substring(name, "5", "1"))) - "1";
Set("card:variable", substring(hand, (i * "3") + "1", "2"));
tellTarget ("card") {
gotoAndStop(variable);
}
Symbol 157 MovieClip Frame 7
stop();
Symbol 157 MovieClip Frame 11
tellTarget ("card") {
gotoAndStop ("back");
}
Symbol 157 MovieClip Frame 12
gotoAndStop (1);
Symbol 166 MovieClip Frame 1
stop();
Symbol 166 MovieClip Frame 6
stop();
Symbol 166 MovieClip Frame 14
stop();
Symbol 166 MovieClip Frame 19
stop();
Symbol 166 MovieClip Frame 24
stop();
Symbol 166 MovieClip Frame 28
stop();
Symbol 166 MovieClip Frame 32
stop();
Symbol 166 MovieClip Frame 44
stop();
Symbol 166 MovieClip Frame 51
stop();
Symbol 194 MovieClip Frame 1
stop();
Symbol 194 MovieClip Frame 2
stop();
Symbol 194 MovieClip Frame 3
stop();
Symbol 194 MovieClip Frame 4
stop();
Symbol 194 MovieClip Frame 5
stop();
Symbol 194 MovieClip Frame 6
stop();
Symbol 194 MovieClip Frame 7
stop();
Symbol 194 MovieClip Frame 8
stop();
Symbol 194 MovieClip Frame 9
stop();
Symbol 194 MovieClip Frame 10
stop();
Symbol 194 MovieClip Frame 11
stop();
Symbol 194 MovieClip Frame 12
stop();
Symbol 194 MovieClip Frame 13
stop();
Symbol 195 Button
on (release) {
tellTarget ("/sounds") {
gotoAndPlay ("tic");
};
if (help) {
tellTarget ("/help") {
nextFrame();
};
} else if (risc) {
colr = "r";
call("verif");
} else if (win == "0") {
if (credit < bet) {
status = "YOU CAN'T FOOL ME ...";
} else {
bet = bet + "1";
}
if (credit < bet) {
bet = credit;
}
Set("afis:bet", bet);
}
}
on (rollOver) {
if (risc) {
status = "RED COLOUR";
} else if (help) {
status = "NEXT PAGE";
} else if (win == "0") {
status = "INCREASE THE BET";
} else {
status = "YOU ARE NOT ALLOWED TO CHANGE THE BET NOW";
}
}
on (rollOut) {
status = action;
}
Symbol 196 Button
on (release) {
tellTarget ("/sounds") {
gotoAndPlay ("toc");
};
if (help) {
tellTarget ("/help") {
prevFrame();
};
} else if (risc) {
colr = "b";
call("verif");
} else if (win == "0") {
bet = bet - "1";
if (bet < "5") {
bet = "5";
}
Set("afis:bet", bet);
}
}
on (rollOver) {
if (risc) {
status = "BLACK COLOUR";
} else if (help) {
status = "PREVIOUS PAGE";
} else if (win == "0") {
status = "DECREASE THE BET";
} else {
status = "YOU ARE NOT ALLOWED TO CHANGE THE BET NOW";
}
}
on (rollOut) {
status = action;
}
Symbol 197 Button
on (release) {
tellTarget ("/sounds") {
gotoAndPlay ("deal");
};
if (risc) {
firstTime = "1";
list = "";
listb = "01234";
descard = "";
credit = credit + win;
tellTarget ("/afis") {
call("bet");
};
setProperty("/afis", _visible , "1");
if (win <> "0") {
tellTarget ("/sounds") {
gotoAndPlay ("cash");
};
}
win = "0";
} else if (end) {
end = "0";
credit = "1000";
} else if (help) {
help = "0";
setProperty("/help", _visible , "0");
setProperty("/afis", _visible , "1");
}
call("deal");
}
on (rollOver) {
if (risc) {
status = "CANCEL THE RISK AND PLAY A NEW HAND";
} else if (end) {
Set(action, "PRESS DEAL TO START AGAIN");
status = action;
} else {
status = "PRESS TO DEAL";
}
}
on (rollOut) {
status = action;
}
Symbol 202 MovieClip Frame 1
stop();
Symbol 202 MovieClip Frame 2
stop();
Symbol 202 MovieClip Frame 3
stop();