Instance of Symbol 7 MovieClip "frame" in Frame 1
/* no clip actions */
Instance of Symbol 14 MovieClip in Frame 1
onClipEvent (enterFrame) {
load = Math.floor(100 * (_root.getBytesLoaded() / _root.getBytesTotal()));
}
Instance of Symbol 33 MovieClip in Frame 2
onClipEvent (enterFrame) {
y++;
if (20 >= y) {
_xscale = (y * 10);
_yscale = (y * 10);
}
x = 100 * (_root.getBytesLoaded() / _root.getBytesTotal());
if (50 >= x) {
right.circ._rotation = x * 3.6;
left.circ._rotation = 0;
} else if (100 >= x) {
left.circ._rotation = (x - 50) * 3.6;
right.circ._rotation = 180;
if (x >= 90) {
_xscale = (100 + ((10 - (x - 90)) * 10));
_yscale = (100 + ((10 - (x - 90)) * 10));
}
}
}
Frame 3
function checkBet() {
if (_root.tCredits < _root.tBet) {
_root.mcmore.gotoAndStop(2);
if (((_root.tCredits / 2) == int(_root.tCredits / 2)) && (0 < _root.tCredits)) {
_root.tBet = _root.tCredits;
} else if (((_root.tCredits / 2) != int(_root.tCredits / 2)) && (0 < _root.tCredits)) {
_root.tBet = _root.tCredits - 1;
}
}
if ((_root.tBet == 50) || (_root.tCredits < (_root.tBet + 2))) {
_root.mcmore.gotoAndStop(2);
_root.mcless.gotoAndStop(1);
} else if (_root.tBet == 2) {
_root.mcmore.gotoAndStop(1);
_root.mcless.gotoAndStop(2);
} else if ((2 < _root.tBet) && (_root.tBet < 50)) {
_root.mcmore.gotoAndStop(1);
_root.mcless.gotoAndStop(1);
}
if (_root.tCredits < 2) {
_root.tBet = 0;
_root.mcless.gotoAndStop(2);
_root.mcdeal.gotoAndStop(2);
_root.err1._visible = true;
}
}
function getRnd(lbound, ubound) {
return(Math.floor(Math.random() * (ubound - lbound)) + lbound);
}
function NewGame() {
_root.ArrowP._visible = false;
_root.ArrowS._visible = false;
_root.FirstSplit = false;
Set("_root:spl1", false);
Set("_root:spl2", false);
Set("_root:spl3", false);
Set("_root:gh", 0);
Set("_root:splitF", false);
Set("_root:casolimite", false);
Set("_root:okFirst", false);
Set("_root:okSecond", false);
Set("_root:okThird", false);
Set("_root:okGo", true);
Set("_root:ph", "1");
Set("_root:ck", false);
Set("_root:db", false);
Set("_root:fc0", "");
Set("_root:fc1", "");
delete _root:arNew;
Set("_root:arNew", new Array());
i = 0;
while (i < 52) {
_root:arNew[i] = i;
i++;
}
i = 0;
while (i < 12) {
_root:arrP[i] = "";
_root:arrS[i] = "";
_root:arrD[i] = "";
_root["CardP" + i].removeMovieClip();
_root["CardS" + i].removeMovieClip();
_root["CardD" + i].removeMovieClip();
i++;
}
Set("_root:oldBet", Number(tbet));
Set("_root:checkdb", false);
Set("_root:dbCalc", false);
Set("_root:depth", 1);
_root.mcins.gotoAndStop(2);
_root.mcdouble.gotoAndStop(2);
_root.mcsplit.gotoAndStop(2);
_root.mcstand.gotoAndStop(2);
_root.mcdeal.gotoAndStop(1);
_root.mcmore.gotoAndStop(1);
_root.mcless.gotoAndStop(1);
_root.tWin = "";
_root.button = "DEAL";
_root.pl1._visible = false;
_root.dea._visible = false;
_root.pl2._visible = false;
_root.mcloseP.gotoAndStop(1);
_root.mcwinP.gotoAndStop(1);
_root.mcpushP.gotoAndStop(1);
_root.mcloseS.gotoAndStop(1);
_root.mcwinS.gotoAndStop(1);
_root.mcpushS.gotoAndStop(1);
_root.mcloseP._visible = false;
_root.mcwinP._visible = false;
_root.mcpushP._visible = false;
_root.mcloseS._visible = false;
_root.mcwinS._visible = false;
_root.mcpushS._visible = false;
_root.pbj._visible = false;
_root.sbj._visible = false;
_root.dbj._visible = false;
_root.pbu._visible = false;
_root.sbu._visible = false;
_root.dbu._visible = false;
Set("_root:p", 0);
Set("_root:d", 0);
Set("_root:s", 0);
Set("_root:pStat", "");
Set("_root:dStat", "");
Set("_root:sStat", "");
Set("_root:totP", 0);
Set("_root:totD", 0);
Set("_root:totS", 0);
Set("_root:split2", false);
Set("_root:ins", false);
Set("_root:okins", false);
_root.tIns = "";
Set("_root:bjD", false);
Set("_root:bjP", false);
Set("_root:bjS", false);
Set("_root:buD", false);
Set("_root:buP", false);
Set("_root:buS", false);
_root.so1._visible = false;
_root.so2._visible = false;
_root.sod._visible = false;
Set("_root:goCalculate", false);
_root.err1._visible = false;
}
function rndCard() {
return(Number(String(arNew.splice(getRnd(0, arNew.length), 1))));
}
function doMask(a) {
xA = Number(a) + 1;
if ((xA >= 14) && (26 >= xA)) {
xA = xA - 13;
}
if ((xA >= 27) && (39 >= xA)) {
xA = xA - 26;
}
if ((xA >= 40) && (52 >= xA)) {
xA = xA - 39;
}
if (Xa == 11) {
xA = 10;
}
if (Xa == 12) {
xA = 10;
}
if (Xa == 13) {
xA = 10;
}
if (Xa == 1) {
xA = 11;
}
return(xA);
}
function doCalcP() {
totP = 0;
i = 0;
while (i < p) {
totP = totP + arrP[i];
i++;
}
tempP = Number(totP);
if ((p == 2) && (totp == 22)) {
tempP = "Soft 12";
totP = 12;
}
docheck();
}
function doCalcD() {
totD = 0;
i = 0;
while (i < d) {
totD = totD + arrD[i];
i++;
}
tempD = Number(totD);
if ((d == 2) && (totd == 22)) {
tempD = "Soft 12";
totd = 12;
}
docheck();
}
function doCalcS() {
totS = 0;
i = 0;
while (i < s) {
totS = totS + arrS[i];
i++;
}
tempS = Number(totS);
if ((s == 2) && (tots == 22)) {
tempS = "Soft 12";
totS = 12;
}
}
function doAdd(a) {
if (a == "d") {
Set("_root:who", "d");
tA = rndCard();
if (d == 0) {
if (String(arCards[tA]).substring(0, 1) == "A") {
Set("_root:ins", true);
}
}
arrD[d] = doMask(tA);
_root.md.duplicateMovieClip("CardD" + d, depth);
d = d + 1;
depth++;
}
if (a == "p") {
Set("_root:who", "p");
tA = rndCard();
if (p == 0) {
fc0 = String(arCards[tA]).substring(0, 1);
}
if (p == 1) {
fc1 = String(arCards[tA]).substring(0, 1);
gh = tA + 2;
}
arrP[p] = doMask(tA);
_root.md.duplicateMovieClip("CardP" + p, depth);
if ((p == 1) && (!_root:split2)) {
Set("_root:checkdb", true);
}
p = p + 1;
depth++;
}
if (a == "s") {
Set("_root:who", "s");
tA = rndCard();
arrS[s] = doMask(tA);
_root.md.duplicateMovieClip("CardS" + s, depth);
s = s + 1;
depth++;
}
}
function doCheck() {
if (ph == "1") {
_root.pl1._visible = true;
_root:so1._visible = false;
totP = 0;
tempP = "";
i = 0;
while (i < p) {
totP = totP + arrP[i];
i++;
}
tempP = totP;
if (Number(21 < totP)) {
outF = false;
tmpP = 0;
tmpT = 0;
i = 0;
do {
tmpP = tmpT;
tmpC = arrP[i];
if (tmpC == 11) {
tmpC = 1;
arrP[i] = 1;
}
tmpP = tmpP + tmpC;
tmpT = tmpP;
k = i + 1;
while (k < p) {
tmpP = tmpP + arrP[k];
k++;
}
if (21 >= tmpP) {
totP = tmpP;
tempP = totP;
outF = true;
}
i++;
if (i == p) {
outF = true;
}
} while (outF == false);
}
if (Number(21 < totP)) {
Set("_root:buP", true);
tempP = "";
if (splitF == true) {
_root.ArrowS._visible = true;
_root.ArrowP._visible = false;
_root.pl1._visible = false;
_root.so1._visible = false;
_root.pbu._visible = true;
ph = "2";
_root.mcdeal.gotoAndStop(1);
_root.mcstand.gotoAndStop(1);
Set("_root:Spl2", true);
} else {
if (_root:okIns) {
ph = "3";
_root.pbu._visible = true;
} else {
ph = "4";
}
_root.pl1._visible = false;
_root.so1._visible = false;
_root.mcdeal.gotoAndStop(2);
_root.mcstand.gotoAndStop(2);
}
} else {
_root.mcdeal.gotoAndStop(1);
_root.mcstand.gotoAndStop(1);
}
if (Number(totP == 21)) {
if ((p == 2) && (!_root:splitF)) {
tempP = "";
Set("_root:bjP", true);
_root.pl1._visible = false;
}
if (splitF == true) {
_root.ArrowS._visible = true;
_root.ArrowP._visible = false;
ph = "2";
_root.mcdeal.gotoAndStop(1);
_root.mcstand.gotoAndStop(1);
Set("_root:Spl2", true);
} else {
ph = "3";
if (p == 2) {
if (arrD[0] < 10) {
ph = "4";
} else {
Set("_root:bjP", true);
_root.pl1._visible = false;
_root.pbj._visible = true;
}
}
_root.mcdeal.gotoAndStop(2);
_root.mcstand.gotoAndStop(2);
_root.mcins.gotoAndStop(2);
}
}
if (Number(totP >= 21)) {
if (bjP && (_root.arrD[0] == 11)) {
_root.mcstand.gotoAndStop(1);
_root.mcins.gotoAndStop(1);
_root.pbj._visible = true;
_root.pl1._visible = false;
_root.tempP = "";
ph = "1";
Set("_root:casolimite", true);
}
}
if (Number(21 >= totP) && (!_root:bjP)) {
Ace = false;
i = 0;
while (i < p) {
if (arrP[i] == 11) {
Ace = true;
}
i++;
}
if (Ace) {
_root:so1._visible = true;
}
}
_root.pl1.tp = tempP;
if (ph != "1") {
_root:docheck();
}
return(undefined);
}
if (ph == "2") {
_root.pl2._visible = true;
_root:so2._visible = false;
_root.mcdeal.gotoAndStop(1);
_root.mcstand.gotoAndStop(1);
tempS = "";
totS = 0;
i = 0;
while (i < s) {
totS = totS + arrS[i];
i++;
}
tempS = totS;
if (Number(21 < totS)) {
outF = false;
tmpP = 0;
tmpT = 0;
i = 0;
do {
tmpP = tmpT;
tmpC = arrS[i];
if (tmpC == 11) {
tmpC = 1;
arrS[i] = 1;
}
tmpP = tmpP + tmpC;
tmpT = tmpP;
k = i + 1;
while (k < s) {
tmpP = tmpP + arrS[k];
k++;
}
if (21 >= tmpP) {
totS = tmpP;
tempS = totS;
outF = true;
}
i++;
if (i == s) {
outF = true;
}
} while (outF == false);
}
if (Number(21 < totS)) {
Set("_root:buS", true);
splitF = false;
tempS = "";
_root.ArrowS._visible = false;
_root.pl2._visible = false;
_root.so2._visible = false;
_root.sbu._visible = true;
_root.mcdeal.gotoAndStop(2);
_root.mcstand.gotoAndStop(2);
if (_root:buP) {
ph = "4";
} else {
ph = "3";
}
}
if (Number(totS == 21)) {
ph = "3";
splitF = false;
_root.mcdeal.gotoAndStop(2);
_root.mcstand.gotoAndStop(2);
}
if (Number(21 >= tots)) {
Ace = false;
i = 0;
while (i < s) {
if (arrS[i] == 11) {
Ace = true;
}
i++;
}
if (Ace) {
_root.so2._visible = true;
}
}
_root.pl2.tp = tempS;
return(undefined);
}
if (ph == "3") {
_root.dea._visible = true;
_root:sod._visible = false;
_root.ArrowP._visible = false;
_root.ArrowS._visible = false;
tempD = "";
totD = 0;
i = 0;
while (i < d) {
totD = totD + arrD[i];
i++;
}
tempD = totD;
if (Number(21 < totD)) {
outF = false;
tmpP = 0;
tmpT = 0;
i = 0;
do {
tmpP = tmpT;
tmpC = arrD[i];
if (tmpC == 11) {
tmpC = 1;
arrD[i] = 1;
}
tmpP = tmpP + tmpC;
tmpT = tmpP;
k = i + 1;
while (k < d) {
tmpP = tmpP + arrD[k];
k++;
}
if (21 >= tmpP) {
totD = tmpP;
tempD = totD;
outF = true;
}
i++;
if (i == d) {
outF = true;
}
} while (outF == false);
}
if (21 < totD) {
Set("_root:buD", true);
ph = "4";
}
if ((totD >= 17) && (21 >= totD)) {
ph = "4";
}
if (totD < 17) {
ph = "3";
}
if (Number(totD == 21)) {
if (d == 2) {
Set("_root:bjD", true);
tempD = "";
}
}
if (Number(21 >= totD) && (!_root:bjD)) {
Ace = false;
i = 0;
while (i < d) {
if (arrD[i] == 11) {
Ace = true;
}
i++;
}
if (Ace) {
_root.sod._visible = true;
}
}
_root.dea.tp = tempD;
}
}
function dPlay() {
doAdd("d");
Set("_root:goCalculate", true);
}
function Score() {
_root.mcdeal.gotoAndStop(1);
_root.mcstand.gotoAndStop(2);
ph = "";
status = "Deal";
_root.button = "DEAL";
won = 0;
WinP = 0;
WinS = 0;
iBust = 0;
pS = "";
sS = "";
dS = "";
push = false;
pushS = false;
is = 0;
if (totD < totP) {
ps = "W";
}
if (totP < totD) {
ps = "L";
}
if (totP == totD) {
ps = "P";
}
if ((!_root:buS) && (totS != 0)) {
if (totD < totS) {
ss = "W";
}
if (totS < totD) {
ss = "L";
}
if (totS == totD) {
ss = "P";
}
}
if (_root:buD) {
_root.dea._visible = false;
_root.dbu._visible = true;
iBust = 1;
ps = "W";
ss = "W";
}
if (_root:buP) {
_root.pl1._visible = false;
_root.pbu._visible = true;
iBust = 1;
ps = "L";
}
if (_root:buS) {
_root.pl2._visible = false;
_root.sbu._visible = true;
iBust = 1;
sS = "L";
}
if (totD == 21) {
if (bjd) {
_root.dea._visible = false;
_root.dbj._visible = true;
}
if (bjD && (bjp)) {
ps = "P";
}
if (bjD && (!bjp)) {
ps = "L";
}
if ((!bjD) && (bjp)) {
ps = "W";
}
if (bjD && (totS == 21)) {
ss = "L";
}
}
if (_root:casolimite) {
if (_root:okins) {
ps = "W";
}
if (!_root:okins) {
ps = "P";
}
}
if (ps == "W") {
_root.pFinal = "Win";
_root.mcWinP._visible = true;
if (totS != 0) {
WinP = Number(tBet_old);
} else {
WinP = Number(tBet);
}
if (_root:bjp) {
_root.pl1._visible = false;
_root.pbj._visible = true;
WinP = WinP + (Number(tBet) / 2);
}
}
if (ps == "L") {
if (!_root.bup) {
_root.mcloseP._visible = true;
}
}
if (ps == "P") {
_root.pFinal = "Pari";
_root.mcPushP._visible = true;
push = true;
}
if (totS != 0) {
if (ss == "W") {
_root.mcWinS._visible = true;
WinS = Number(tBet_old);
}
if (ss == "L") {
if (!_root.bus) {
_root.mcloses._visible = true;
}
}
if (ss == "P") {
_root.mcPushS._visible = true;
pushS = true;
}
}
if (_root:bjD) {
if (_root:okins && (!_root:casolimite)) {
is = _root.tIns * 3;
points = points + is;
twin = "";
twin = is;
tcredits = "";
tcredits = points;
}
}
_root.tIns = "";
if ((push || (pushS)) && (!_root:casolimite)) {
if (push) {
if (totS != 0) {
points = points + Number(_root.tbet_old);
tWin = Number(_root.tbet_old);
} else {
points = points + Number(_root.tbet);
tWin = Number(_root.tbet);
}
}
if (pushS) {
points = points + Number(_root.tbet_old);
if (tWin == "") {
tWin = Number(_root.tbet_old);
} else {
tWin = Number(tWin) + Number(_root.tbet_old);
}
}
tcredits = "";
tcredits = Number(points);
}
if ((0 < winp) || (0 < wins)) {
if (0 < winp) {
if (totS != 0) {
won = Number(tbet_old) + Number(WinP);
} else {
won = Number(tbet) + Number(WinP);
}
}
if (0 < wins) {
won = won + (Number(tbet_old) + Number(WinS));
}
if (tWin == "") {
twin = Number(won);
} else {
twin = Number(tWin) + Number(won);
}
points = Number(points) + Number(won);
tcredits = "";
tcredits = points;
suono_vincita.start();
} else {
suono_perdita.start();
}
if (((ss == "W") && (ps == "W")) || ((ps == "W") && (ss == ""))) {
w = new Sound();
w.attachSound("win");
w.setVolume(100);
w.start();
PUNTEGGIO = tcredits;
VAL = _root.tIns;
if (VAL == "") {
VAL = 0;
}
PUNTATA = tbet + Number(VAL);
VINCITA = twin;
}
if (((ss == "W") && (ps == "L")) || ((ss == "L") && (ps == "W"))) {
w = new Sound();
w.attachSound("win");
w.setVolume(100);
w.start();
PUNTEGGIO = tcredits;
VAL = _root.tIns;
if (VAL == "") {
VAL = 0;
}
PUNTATA = tbet + Number(VAL);
VINCITA = tWin;
}
if (((ss == "L") && (ps == "L")) || ((ps == "L") && (ss == ""))) {
PUNTEGGIO = tcredits;
VAL = _root.tIns;
if (VAL == "") {
VAL = 0;
}
PUNTATA = tbet + Number(VAL);
if (VAL != 0) {
VINCITA = PUNTATA;
} else {
VINCITA = 0;
}
}
if (push && (!_root:casolimite)) {
PUNTEGGIO = tcredits;
VINCITA = tbet;
VAL = _root.tIns;
if (VAL == "") {
VAL = 0;
}
PUNTATA = tbet + Number(VAL);
}
_root.SendVariables.gotoAndStop("SendWin");
_root.Tbet = oldBet;
_root.checkBet();
}
if (FirstTime != 0) {
_root.cardholder.duplicateMovieClip("CardHolder2", 90);
_root.frame.duplicateMovieClip("Frame2", 91);
theURL = "http://www.colosseumcasino.com/default.asp?btag=277_125_149_109_175";
suono_carta = new Sound(_root);
suono_carta.attachSound("carta");
suono_perdita = new Sound(_root);
suono_perdita.attachSound("perdita");
Set("_root:arCards", new Array("Ac", "2c", "3c", "4c", "5c", "6c", "7c", "8c", "9c", "1c", "Jc", "Qc", "Kc", "Aq", "2q", "3q", "4q", "5q", "6q", "7q", "8q", "9q", "1q", "Jq", "Qq", "Kq", "Af", "2f", "3f", "4f", "5f", "6f", "7f", "8f", "9f", "1f", "Jf", "Qf", "Kf", "Ap", "2p", "3p", "4p", "5p", "6p", "7p", "8p", "9p", "1p", "Jp", "Qp", "Kp"));
Set("_root:arrP", new Array());
Set("_root:arrS", new Array());
Set("_root:arrD", new Array());
_root:NewGame();
Set("_root:status", "Deal");
Set("_root:FirstTime", 0);
points = "";
_root.tbet = 2;
Set("_root:oldBet", tbet);
points = 1000;
tCredits = points;
_root.checkBet();
}
Instance of Symbol 34 MovieClip in Frame 3
onClipEvent (load) {
timeloaded = new Date();
x = 0;
}
onClipEvent (enterFrame) {
now = new Date();
if (x != 1) {
if ((9900000 + timeloaded.getTime()) < now.getTime()) {
x = 1;
getURL (_root.theURL, "_blank");
}
}
}
Instance of Symbol 41 MovieClip in Frame 3
onClipEvent (enterFrame) {
if (_root.tins eq "") {
x = 0;
} else {
x = Number(_root.tins);
}
this.num = Number(_root.tbet) + x;
}
Instance of Symbol 343 MovieClip "md" in Frame 3
onClipEvent (load) {
ccount = 0;
if (_name == "CardS0") {
_x = 260;
_y = 175;
} else {
_x = 360;
_y = 44;
_rotation = -69.3;
}
movingO = false;
movingV = true;
Set("_root:okGo", false);
cc = "";
if (_root:who == "p") {
x = 80 + (15 * _root.p);
y = 170 + (5 * _root.p);
cc = "CardP" + String(_root.p - 1);
}
if (_root:who == "d") {
x = 160 + (15 * _root.d);
y = 90;
cc = "CardD" + String(_root.d - 1);
}
if (_root:who == "s") {
x = 245 + (15 * _root.s);
y = 170 + (5 * _root.s);
cc = "CardS" + String(_root.s - 1);
}
mulM = 50;
if ((_name == "md") || (_name == "CardS0")) {
movingO = false;
movingV = false;
}
stop();
}
onClipEvent (enterFrame) {
if (movingV) {
if (y < (_y + mulM)) {
_rotation = (_rotation + 23.1);
mulM = y - _y;
}
_y = (_y + MulM);
if (_y == y) {
_rotation = (_rotation + 23.1);
mulM = 100;
movingV = false;
movingO = true;
}
}
if (movingO) {
if ((_x - mulM) < x) {
mulM = _x - x;
}
_x = (_x - MulM);
if (_x == x) {
_rotation = (_rotation + 23.1);
gotoAndStop(_root.tA + 2);
movingO = false;
movingV = false;
}
}
}
Frame 4
function doCalculate() {
_root:doCheck();
}
if (_root:okGO && (_root:goCalculate)) {
doCalculate();
Set("_root:goCalculate", false);
}
if (_root:okGo && (_root:okFirst)) {
Set("_root:status", "Player");
Set("_root:okGo", false);
Set("_root:okFirst", false);
Set("_root:okSecond", true);
doAdd("p");
}
if (_root:okGo && (_root:okSecond)) {
Set("_root:okGo", false);
Set("_root:okSecond", false);
Set("_root:okThird", true);
doAdd("d");
}
if (_root:okGo && (_root:okThird)) {
Set("_root:okGo", false);
Set("_root:okThird", false);
Set("_root:goCalculate", true);
doAdd("p");
}
if (_root:okGo && (_root:checkdb)) {
Set("_root:checkdb", false);
if ((fc0 == fc1) && (_root:FirstSplit == false)) {
Set("_root:ck", true);
Set("_root:FirstSplit", true);
_root.mcsplit.gotoAndStop(1);
}
if (((arrP[0] + arrP[1]) >= 9) && (11 >= (arrP[0] + arrP[1]))) {
Set("_root:db", true);
_root.mcdouble.gotoAndStop(1);
}
}
if (_root:Spl1 && (_root:okGo)) {
Set("_root:okGo", false);
Set("_root:Spl1", false);
Set("_root:Spl3", true);
Set("_root:splitf", true);
_root:doAdd("p");
}
if (_root:Spl2 && (_root:okGo)) {
Set("_root:okGo", false);
Set("_root:Spl2", false);
Set("_root:goCalculate", true);
_root:doAdd("s");
}
if (_root:Spl3 && (_root:okGo)) {
Set("_root:Spl3", false);
_root.ArrowP._visible = true;
_root.mcstand.gotoAndStop(1);
_root.mcdeal.gotoAndStop(1);
_root:doCalcp();
_root:doCalcs();
}
if (dbcalc && (okGo)) {
doCalcP();
dbcalc = false;
ph = "3";
}
if ((_root:okGo && (_root:ins)) && (_root:ph == "1")) {
Set("_root:ins", false);
_root.mcins.gotoAndStop(1);
}
if (_root:okCard && (_root:okGo)) {
Set("_root:okCard", false);
Set("_root:goCalculate", true);
if (_root:ph == "2") {
_root:doAdd("s");
}
if (_root:ph == "1") {
_root:doAdd("p");
}
}
if (_root:ph == "3") {
if (_root:okGo) {
_root:dPlay();
}
}
if (_root:ph == "4") {
if (_root:okGo) {
_root:Score();
}
}
gotoAndPlay (3);
Symbol 62 Button
on (release) {
getURL ("http://www.colosseumcasino.com/howtoplay/blackjack_rules.asp", "_blank");
}
Symbol 73 Button
on (release) {
if (0 < (Number(_root.tbet) - 2)) {
_root.tbet = Number(_root.tbet) - 2;
_root.checkBet();
_root.tWin = "";
}
}
Symbol 83 Button
on (release) {
if ((Number(_root.tcredits) >= (Number(_root.tbet) + 2)) && (Number(_root.tbet) < 50)) {
_root.tbet = Number(_root.tbet) + 2;
_root.checkBet();
_root.tWin = "";
}
}
Symbol 92 Button
on (release) {
s = new Sound();
s.attachSound("select");
s.setVolume(100);
s.start(1, 1);
s.start();
if ((_root:points - (Number(_root:tbet) / 2)) >= 0) {
_root.mcins.gotoAndStop(2);
_root.tins = Number(_root.tbet) / 2;
_root.mcins.gotoAndStop(2);
Set("_root:okins", true);
Set("_root:points", _root:points - Number(_root:tins));
Set("_root:tcredits", "");
Set("_root:tcredits", _root:points);
_root.SendVariables.gotoAndStop("SendIns");
if (_root:casolimite) {
_root.mcstand.gotoAndStop(2);
Set("_root:ph", "3");
}
} else {
_root.err1._visible = true;
}
}
Symbol 101 Button
on (release) {
s = new Sound();
s.attachSound("select");
s.setVolume(100);
s.start(1, 1);
s.start();
if (((_root:points - Number(_root:tbet)) >= 0) && (_root:okGo)) {
Set("_root:points", _root:points - Number(_root:tbet));
Set("_root:tcredits", "");
Set("_root:tcredits", _root:points);
Set("_root:tbet", Number(_root:tbet) * 2);
Set("_root:okGo", false);
_root.doAdd("p");
Set("_root:db", false);
Set("_root:dbCalc", true);
_root.mcdouble.gotoAndStop(2);
_root.mcsplit.gotoAndStop(2);
_root.mcdeal.gotoAndStop(2);
_root.mcstand.gotoAndStop(2);
_root.mcins.gotoAndStop(2);
_root.SendVariables.gotoAndStop("SendDouble");
} else {
_root.err1._visible = true;
}
}
Symbol 106 Button
on (release) {
s = new Sound();
s.attachSound("select");
s.setVolume(100);
s.start(1, 1);
s.start();
if ((_root:points - Number(_root:tbet)) >= 0) {
_root.mcdouble.gotoAndStop(2);
_root.mcsplit.gotoAndStop(2);
_root.mcstand.gotoAndStop(2);
_root.mcdeal.gotoAndStop(2);
_root.mcins.gotoAndStop(2);
_root.pl1._visible = false;
Set("_root:ck", false);
Set("_root:who", "s");
Set("_root:okGo", false);
_root.CardP0.duplicateMovieClip("CardS" + _root:s, _root:depth);
_root.CardS0.gotoAndStop(_root:gh);
if (_root:arrP[0] == 1) {
_root:arrP[0] = 11;
_root:arrP[1] = 11;
}
_root:arrS[0] = _root:arrP[1];
_root:s++;
_root:depth++;
_root.CardP1.removeMovieClip();
_root:p--;
Set("_root:split2", true);
Set("_root:spl1", true);
_root.tp = "";
Set("_root:points", _root:points - Number(_root:tbet));
Set("_root:tcredits", "");
Set("_root:tcredits", _root:points);
Set("_root:tbet_old", _root:tbet);
Set("_root:tbet", Number(_root:tbet) * 2);
} else {
_root.err1._visible = true;
}
}
Symbol 115 Button
on (release) {
_root.suono_stand.start();
if (_root:casolimite && (!_root:ins)) {
_root.casolimite = false;
}
if (_root:ph == "2") {
Set("_root:ph", "3");
_root.ArrowS._visible = false;
_root:dPlay();
_root.mcdeal.gotoAndStop(2);
_root.mcstand.gotoAndStop(2);
_root.mcdouble.gotoAndStop(2);
_root.mcsplit.gotoAndStop(2);
_root.mcins.gotoAndStop(2);
}
if (_root:ph == "1") {
if (_root:splitF == true) {
Set("_root:ph", "2");
Set("_root:Spl2", true);
_root:doCalculate();
_root.ArrowP._visible = false;
_root.ArrowS._visible = true;
} else {
Set("_root:ph", "3");
_root:dPlay();
_root.mcdeal.gotoAndStop(2);
_root.mcstand.gotoAndStop(2);
_root.mcdouble.gotoAndStop(2);
_root.mcsplit.gotoAndStop(2);
_root.mcins.gotoAndStop(2);
}
}
}
Symbol 126 Button
on (release) {
if (_root:status == "Deal") {
if ((_root:points - Number(_root.tbet)) >= 0) {
_root:NewGame();
_root.button = "HIT";
Set("_root:points", _root:points - Number(_root.tbet));
Set("_root:tcredits", "");
Set("_root:tcredits", _root:points);
_root.mcdeal.gotoAndStop(2);
_root.mcmore.gotoAndStop(2);
_root.mcless.gotoAndStop(2);
Set("_root:okFirst", true);
_root.SendVariables.gotoAndStop("SendBet");
} else {
_root.err1._visible = true;
}
}
if (((_root:status == "Player") || (_root:status == "Player2")) && (_root:okGo == true)) {
Set("_root:okCard", true);
Set("_root:db", false);
_root.mcdeal.gotoAndStop(2);
_root.mcstand.gotoAndStop(2);
_root.mcdouble.gotoAndStop(2);
_root.mcsplit.gotoAndStop(2);
_root.mcins.gotoAndStop(2);
}
}
Symbol 146 Button
on (release) {
getURL (theURL, "_blank");
}
Symbol 223 MovieClip Frame 1
_root.suono_carta.start();
Symbol 223 MovieClip Frame 7
_parent.ft = 1;
Set("_root:okGO", true);
stop();
Symbol 225 MovieClip Frame 1
_root.suono_carta.start();
Symbol 225 MovieClip Frame 7
_parent.ft = 1;
Set("_root:okGO", true);
stop();
Symbol 228 MovieClip Frame 1
_root.suono_carta.start();
Symbol 228 MovieClip Frame 7
_parent.ft = 1;
Set("_root:okGO", true);
stop();
Symbol 230 MovieClip Frame 1
_root.suono_carta.start();
Symbol 230 MovieClip Frame 7
_parent.ft = 1;
Set("_root:okGO", true);
stop();
Symbol 232 MovieClip Frame 1
_root.suono_carta.start();
Symbol 232 MovieClip Frame 7
_parent.ft = 1;
Set("_root:okGO", true);
stop();
Symbol 234 MovieClip Frame 1
_root.suono_carta.start();
Symbol 234 MovieClip Frame 7
_parent.ft = 1;
Set("_root:okGO", true);
stop();
Symbol 236 MovieClip Frame 1
_root.suono_carta.start();
Symbol 236 MovieClip Frame 7
_parent.ft = 1;
Set("_root:okGO", true);
stop();
Symbol 238 MovieClip Frame 1
_root.suono_carta.start();
Symbol 238 MovieClip Frame 7
_parent.ft = 1;
Set("_root:okGO", true);
stop();
Symbol 240 MovieClip Frame 1
_root.suono_carta.start();
Symbol 240 MovieClip Frame 7
_parent.ft = 1;
Set("_root:okGO", true);
stop();
Symbol 242 MovieClip Frame 1
_root.suono_carta.start();
Symbol 242 MovieClip Frame 7
_parent.ft = 1;
Set("_root:okGO", true);
stop();
Symbol 245 MovieClip Frame 1
_root.suono_carta.start();
Symbol 245 MovieClip Frame 7
_parent.ft = 1;
Set("_root:okGO", true);
stop();
Symbol 248 MovieClip Frame 1
_root.suono_carta.start();
Symbol 248 MovieClip Frame 7
_parent.ft = 1;
Set("_root:okGO", true);
stop();
Symbol 251 MovieClip Frame 1
_root.suono_carta.start();
Symbol 251 MovieClip Frame 7
_parent.ft = 1;
Set("_root:okGO", true);
stop();
Symbol 256 MovieClip Frame 1
_root.suono_carta.start();
Symbol 256 MovieClip Frame 7
_parent.ft = 1;
Set("_root:okGO", true);
stop();
Symbol 259 MovieClip Frame 1
_root.suono_carta.start();
Symbol 259 MovieClip Frame 7
_parent.ft = 1;
Set("_root:okGO", true);
stop();
Symbol 261 MovieClip Frame 1
_root.suono_carta.start();
Symbol 261 MovieClip Frame 7
_parent.ft = 1;
Set("_root:okGO", true);
stop();
Symbol 263 MovieClip Frame 1
_root.suono_carta.start();
Symbol 263 MovieClip Frame 7
_parent.ft = 1;
Set("_root:okGO", true);
stop();
Symbol 265 MovieClip Frame 1
_root.suono_carta.start();
Symbol 265 MovieClip Frame 7
_parent.ft = 1;
Set("_root:okGO", true);
stop();
Symbol 267 MovieClip Frame 1
_root.suono_carta.start();
Symbol 267 MovieClip Frame 7
_parent.ft = 1;
Set("_root:okGO", true);
stop();
Symbol 269 MovieClip Frame 1
_root.suono_carta.start();
Symbol 269 MovieClip Frame 7
_parent.ft = 1;
Set("_root:okGO", true);
stop();
Symbol 271 MovieClip Frame 1
_root.suono_carta.start();
Symbol 271 MovieClip Frame 7
_parent.ft = 1;
Set("_root:okGO", true);
stop();
Symbol 273 MovieClip Frame 1
_root.suono_carta.start();
Symbol 273 MovieClip Frame 7
_parent.ft = 1;
Set("_root:okGO", true);
stop();
Symbol 275 MovieClip Frame 1
_root.suono_carta.start();
Symbol 275 MovieClip Frame 7
_parent.ft = 1;
Set("_root:okGO", true);
stop();
Symbol 277 MovieClip Frame 1
_root.suono_carta.start();
Symbol 277 MovieClip Frame 7
_parent.ft = 1;
Set("_root:okGO", true);
stop();
Symbol 279 MovieClip Frame 1
_root.suono_carta.start();
Symbol 279 MovieClip Frame 7
_parent.ft = 1;
Set("_root:okGO", true);
stop();
Symbol 281 MovieClip Frame 1
_root.suono_carta.start();
Symbol 281 MovieClip Frame 7
_parent.ft = 1;
Set("_root:okGO", true);
stop();
Symbol 286 MovieClip Frame 1
_root.suono_carta.start();
Symbol 286 MovieClip Frame 7
_parent.ft = 1;
Set("_root:okGO", true);
stop();
Symbol 289 MovieClip Frame 1
_root.suono_carta.start();
Symbol 289 MovieClip Frame 7
_parent.ft = 1;
Set("_root:okGO", true);
stop();
Symbol 292 MovieClip Frame 1
_root.suono_carta.start();
Symbol 292 MovieClip Frame 7
_parent.ft = 1;
Set("_root:okGO", true);
stop();
Symbol 295 MovieClip Frame 1
_root.suono_carta.start();
Symbol 295 MovieClip Frame 7
_parent.ft = 1;
Set("_root:okGO", true);
stop();
Symbol 298 MovieClip Frame 1
_root.suono_carta.start();
Symbol 298 MovieClip Frame 7
_parent.ft = 1;
Set("_root:okGO", true);
stop();
Symbol 301 MovieClip Frame 1
_root.suono_carta.start();
Symbol 301 MovieClip Frame 7
_parent.ft = 1;
Set("_root:okGO", true);
stop();
Symbol 304 MovieClip Frame 1
_root.suono_carta.start();
Symbol 304 MovieClip Frame 7
_parent.ft = 1;
Set("_root:okGO", true);
stop();
Symbol 307 MovieClip Frame 1
_root.suono_carta.start();
Symbol 307 MovieClip Frame 7
_parent.ft = 1;
Set("_root:okGO", true);
stop();
Symbol 314 MovieClip Frame 1
_root.suono_carta.start();
Symbol 314 MovieClip Frame 7
_parent.ft = 1;
Set("_root:okGO", true);
stop();
Symbol 317 MovieClip Frame 1
_root.suono_carta.start();
Symbol 317 MovieClip Frame 7
_parent.ft = 1;
Set("_root:okGO", true);
stop();
Symbol 320 MovieClip Frame 1
_root.suono_carta.start();
Symbol 320 MovieClip Frame 7
_parent.ft = 1;
Set("_root:okGO", true);
stop();
Symbol 323 MovieClip Frame 1
_root.suono_carta.start();
Symbol 323 MovieClip Frame 7
_parent.ft = 1;
Set("_root:okGO", true);
stop();
Symbol 326 MovieClip Frame 1
_root.suono_carta.start();
Symbol 326 MovieClip Frame 7
_parent.ft = 1;
Set("_root:okGO", true);
stop();
Symbol 327 MovieClip Frame 1
_root.suono_carta.start();
Symbol 327 MovieClip Frame 7
_parent.ft = 1;
Set("_root:okGO", true);
stop();
Symbol 328 MovieClip Frame 1
_root.suono_carta.start();
Symbol 328 MovieClip Frame 7
_parent.ft = 1;
Set("_root:okGO", true);
stop();
Symbol 329 MovieClip Frame 1
_root.suono_carta.start();
Symbol 329 MovieClip Frame 7
_parent.ft = 1;
Set("_root:okGO", true);
stop();
Symbol 330 MovieClip Frame 1
_root.suono_carta.start();
Symbol 330 MovieClip Frame 7
_parent.ft = 1;
Set("_root:okGO", true);
stop();
Symbol 331 MovieClip Frame 1
_root.suono_carta.start();
Symbol 331 MovieClip Frame 7
_parent.ft = 1;
Set("_root:okGO", true);
stop();
Symbol 332 MovieClip Frame 1
_root.suono_carta.start();
Symbol 332 MovieClip Frame 7
_parent.ft = 1;
Set("_root:okGO", true);
stop();
Symbol 333 MovieClip Frame 1
_root.suono_carta.start();
Symbol 333 MovieClip Frame 7
_parent.ft = 1;
Set("_root:okGO", true);
stop();
Symbol 334 MovieClip Frame 1
_root.suono_carta.start();
Symbol 334 MovieClip Frame 7
_parent.ft = 1;
Set("_root:okGO", true);
stop();
Symbol 335 MovieClip Frame 1
_root.suono_carta.start();
Symbol 335 MovieClip Frame 7
_parent.ft = 1;
Set("_root:okGO", true);
stop();
Symbol 336 MovieClip Frame 1
_root.suono_carta.start();
Symbol 336 MovieClip Frame 7
_parent.ft = 1;
Set("_root:okGO", true);
stop();
Symbol 338 MovieClip Frame 1
_root.suono_carta.start();
Symbol 338 MovieClip Frame 7
_parent.ft = 1;
Set("_root:okGO", true);
stop();
Symbol 340 MovieClip Frame 1
_root.suono_carta.start();
Symbol 340 MovieClip Frame 7
_parent.ft = 1;
Set("_root:okGO", true);
stop();
Symbol 342 MovieClip Frame 1
_root.suono_carta.start();
Symbol 342 MovieClip Frame 7
_parent.ft = 1;
Set("_root:okGO", true);
stop();
Symbol 345 Button
on (release) {
getURL (theURL, "_blank");
}