Frame 1
if (_root._framesloaded == _root._totalframes) {
gotoAndPlay (10);
} else {
ifFrameLoaded (6) {
gotoAndPlay (3);
}
}
Frame 2
gotoAndPlay (1);
Frame 3
cardDeal = new Sound();
cardDeal.attachSound("cardMain");
_root.cardDeal.start();
Frame 6
_root.cardDeal.start();
Frame 9
stop();
Instance of Symbol 40 MovieClip "LoadInfo" in Frame 9
onClipEvent (load) {
totalByteSize = int(_root.getBytesTotal());
totalFileSize = int(totalByteSize / 1024);
}
onClipEvent (enterFrame) {
loadedBytes = int(_root.getBytesLoaded());
loadedKB = int(_root.getBytesLoaded() / 1024);
percentLoaded = int(loadedKB / (totalFileSize / 100));
ifFrameLoaded (69) {
_root.play();
}
}
Frame 10
_root.play();
shuffSound = new Sound();
shuffSound.attachSound("shuffleSound");
chipSound = new Sound();
chipSound.attachSound("chipMain");
click = new Sound();
click.attachSound("clickSound");
chipSound2 = new Sound();
chipSound2.attachSound("chipClear");
cardDeal = new Sound();
cardDeal.attachSound("cardMain");
Frame 11
function CashAdd(Cvalue) {
currentBetUpdate = currentBet[0] + Cvalue;
currentBet.unshift(currentBetUpdate);
betHistory.unshift(currentBet[0]);
_root.amountPot = currentBet[0];
playerTotalUpdate = playerTotal[0] - Cvalue;
playerTotal.unshift(playerTotalUpdate);
_root.amountPlayer = playerTotal[0];
}
function CashRemove(Cvalue) {
currentBetUpdate = currentBet[0] - Cvalue;
currentBet.unshift(currentBetUpdate);
betHistory.unshift(currentBet[0]);
_root.amountPot = currentBet[0];
playerTotalUpdate = playerTotal[0] + Cvalue;
playerTotal.unshift(playerTotalUpdate);
_root.amountPlayer = playerTotal[0];
}
function maxBet() {
CashAdd(200);
c++;
_root.chip100_.duplicateMovieClip("chip" + c, c);
setProperty("chip" + c, _x , posChipx[random(7)]);
setProperty("chip" + c, _y , posChipy[random(6)]);
c++;
_root.chip100_.duplicateMovieClip("chip" + c, c);
setProperty("chip" + c, _x , posChipx[random(7)]);
setProperty("chip" + c, _y , posChipy[random(6)]);
}
function minBet() {
CashAdd(1);
c++;
_root.chip1_.duplicateMovieClip("chip" + c, c);
setProperty("chip" + c, _x , posChipx[random(7)]);
setProperty("chip" + c, _y , posChipy[random(6)]);
}
function Sponds(winStatus1) {
if (winStatus1 == 1) {
_root.netMov.gotoAndStop("remove");
_root.netMov.amountNet = currentBet[0];
return(undefined);
}
if (winStatus1 == 2) {
_root.netMov.gotoAndStop("add");
_root.netMov.amountNet = currentBet[0];
currentBet[0] = currentBet[0] * 2;
playerTotal[0] = playerTotal[0] + currentBet[0];
_root.amountPlayer = playerTotal[0];
return(undefined);
}
if (winStatus1 == 3) {
_root.netMov.gotoAndStop("add");
_root.netMov.amountNet = 0;
playerTotal[0] = playerTotal[0] + currentBet[0];
_root.amountPlayer = playerTotal[0];
return(undefined);
}
if (winStatus1 == 4) {
Bjack = currentBet[0] * 1.5;
currentBet.unshift(currentBet[0] + Math.floor(Bjack));
_root.netMov.gotoAndStop("add");
_root.netMov.amountNet = Math.floor(Bjack);
playerTotal[0] = playerTotal[0] + currentBet[0];
_root.amountPlayer = playerTotal[0];
return(currentBet.unshift(currentBet[0] + Math.floor(Bjack)));
}
}
posChipx = ["20", "25", "35", "45", "55", "65", "75"];
posChipy = ["130", "140", "150", "160", "170", "180"];
betting = false;
ClickChip = false;
double = false;
playerTotal = [2000];
_root.amountPlayer = playerTotal[0];
currentBet = [0];
_root.amountPot = currentBet[0];
c = 1;
ca = 600;
Bjack = 0;
betHistory = new Array();
stop();
Frame 12
function addChips() {
if (chip1ValHis[0] == 1) {
if (insurance == true) {
placeChips(1, 0, 0, 0);
return(undefined);
}
placeChips(1, 0, 0, 0);
}
if (chip1ValHis[0] == 2) {
if (insurance == true) {
placeChips(1, 0, 0, 0);
return(undefined);
}
placeChips(2, 0, 0, 0);
}
if (chip1ValHis[0] == 3) {
if (insurance == true) {
placeChips(1, 0, 0, 0);
return(undefined);
}
placeChips(3, 0, 0, 0);
}
if (chip1ValHis[0] == 4) {
if (insurance == true) {
placeChips(2, 0, 0, 0);
return(undefined);
}
placeChips(4, 0, 0, 0);
}
if (chip5ValHis[0] == 1) {
if (insurance == true) {
placeChips(2, 0, 0, 0);
return(undefined);
}
placeChips(0, 1, 0, 0);
}
if (chip5ValHis[0] == 2) {
if (insurance == true) {
placeChips(0, 1, 0, 0);
return(undefined);
}
placeChips(0, 2, 0, 0);
}
if (chip5ValHis[0] == 3) {
if (insurance == true) {
placeChips(2, 1, 0, 0);
return(undefined);
}
placeChips(0, 3, 0, 0);
}
if (chip5ValHis[0] == 4) {
if (insurance == true) {
placeChips(0, 2, 0, 0);
return(undefined);
}
placeChips(0, 4, 0, 0);
}
if (chip25ValHis[0] == 1) {
if (insurance == true) {
placeChips(2, 2, 0, 0);
return(undefined);
}
placeChips(0, 0, 1, 0);
}
if (chip25ValHis[0] == 2) {
if (insurance == true) {
placeChips(0, 0, 1, 0);
return(undefined);
}
placeChips(0, 0, 2, 0);
}
if (chip25ValHis[0] == 3) {
if (insurance == true) {
placeChips(2, 2, 1, 0);
return(undefined);
}
placeChips(0, 0, 3, 0);
}
if (chip25ValHis[0] == 4) {
if (insurance == true) {
placeChips(0, 0, 2, 0);
return(undefined);
}
placeChips(0, 0, 4, 0);
}
if (chip100ValHis[0] == 1) {
if (insurance == true) {
placeChips(0, 0, 2, 0);
return(undefined);
}
placeChips(0, 0, 0, 1);
}
if (chip100ValHis[0] == 2) {
if (insurance == true) {
placeChips(0, 0, 0, 1);
return(undefined);
}
placeChips(0, 0, 0, 2);
}
}
function placeChips(Loops1, Loops5, Loops25, Loops100) {
loops = 0;
while (loops < Loops100) {
if (insurance == true) {
ca++;
_root.chip100_.duplicateMovieClip("chip" + ca, ca);
xValue = posChipx2[random(7)];
yvalue = posChipy2[random(6)];
setProperty("chip" + ca, _x , xValue);
setProperty("chip" + ca, _y , yValue);
} else {
c++;
_root.chip100_.duplicateMovieClip("chip" + c, c);
xValue = posChipx[random(7)];
yvalue = posChipy[random(6)];
setProperty("chip" + c, _x , xValue);
setProperty("chip" + c, _y , yValue);
}
loops++;
}
loops = 0;
while (loops < Loops25) {
if (insurance == true) {
ca++;
_root.chip25_.duplicateMovieClip("chip" + ca, ca);
xValue = posChipx2[random(7)];
yvalue = posChipy2[random(6)];
setProperty("chip" + ca, _x , xValue);
setProperty("chip" + ca, _y , yValue);
} else {
c++;
_root.chip25_.duplicateMovieClip("chip" + c, c);
xValue = posChipx[random(7)];
yvalue = posChipy[random(6)];
setProperty("chip" + c, _x , xValue);
setProperty("chip" + c, _y , yValue);
}
loops++;
}
loops = 0;
while (loops < Loops5) {
if (insurance == true) {
ca++;
_root.chip5_.duplicateMovieClip("chip" + ca, ca);
xValue = posChipx2[random(7)];
yvalue = posChipy2[random(6)];
setProperty("chip" + ca, _x , xValue);
setProperty("chip" + ca, _y , yValue);
} else {
c++;
_root.chip5_.duplicateMovieClip("chip" + c, c);
xValue = posChipx[random(7)];
yvalue = posChipy[random(6)];
setProperty("chip" + c, _x , xValue);
setProperty("chip" + c, _y , yValue);
}
loops++;
}
loops = 0;
while (loops < Loops1) {
if (insurance == true) {
ca++;
_root.chip1_.duplicateMovieClip("chip" + ca, ca);
xValue = posChipx2[random(7)];
yvalue = posChipy2[random(6)];
setProperty("chip" + ca, _x , xValue);
setProperty("chip" + ca, _y , yValue);
} else {
c++;
_root.chip1_.duplicateMovieClip("chip" + c, c);
xValue = posChipx[random(7)];
yvalue = posChipy[random(6)];
setProperty("chip" + c, _x , xValue);
setProperty("chip" + c, _y , yValue);
}
loops++;
}
}
posChipx2 = ["460", "465", "470", "475", "480", "485", "490"];
posChipy2 = ["175", "180", "185", "190", "195", "200"];
chip1ValHis = new Array();
chip5ValHis = new Array();
chip25ValHis = new Array();
chip100ValHis = new Array();
chip1Val = 0;
chip5Val = 0;
chip25Val = 0;
chip100Val = 0;
insuranceSum = 0;
Frame 13
function place_card0() {
setProperty(card0, _x , 170);
setProperty(card0, _y , 210);
setProperty(card0, _rotation , -10 + posCard[0]);
}
function place_card1() {
setProperty(card1, _x , 210);
setProperty(card1, _y , 210);
setProperty(card1, _rotation , -5 + posCard[1]);
}
function place_card2() {
setProperty(card2, _x , 250);
setProperty(card2, _y , 210);
setProperty(card2, _rotation , posCard[2]);
}
function place_card3() {
setProperty(card3, _x , 290);
setProperty(card3, _y , 210);
setProperty(card3, _rotation , posCard[3]);
}
function place_card4() {
setProperty(card4, _x , 330);
setProperty(card4, _y , 210);
setProperty(card4, _rotation , posCard[4]);
}
function place_card5() {
setProperty(card5, _x , 370);
setProperty(card5, _y , 210);
setProperty(card5, _rotation , posCard[5]);
}
function place_card6() {
setProperty(card6, _x , 410);
setProperty(card6, _y , 210);
setProperty(card6, _rotation , posCard[6]);
}
function place_card12() {
setProperty(card12, _x , 130);
setProperty(card12, _y , 10);
setProperty(card12, _rotation , -10 + posCard[8]);
}
function place_card13() {
setProperty(card13, _x , 170);
setProperty(card13, _y , 10);
setProperty(card13, _rotation , -5 + posCard[9]);
setProperty("topcard", _x , 170);
setProperty("topcard", _y , 10);
setProperty("topcard", _rotation , -5 + posCard[9]);
}
function place_card14() {
setProperty(card14, _x , 210);
setProperty(card14, _y , 10);
setProperty(card14, _rotation , posCard[11]);
}
function place_card15() {
setProperty(card15, _x , 250);
setProperty(card15, _y , 10);
setProperty(card15, _rotation , posCard[12]);
}
function place_card16() {
setProperty(card16, _x , 290);
setProperty(card16, _y , 10);
setProperty(card16, _rotation , posCard[13]);
}
function place_card17() {
setProperty(card17, _x , 330);
setProperty(card17, _y , 10);
setProperty(card17, _rotation , posCard[14]);
}
function place_deck() {
setProperty(shadow, _x , -80);
setProperty(shadow, _y , -35);
setProperty(shadow, _rotation , -40);
setProperty(deck, _x , -80);
setProperty(deck, _y , -35);
setProperty(deck, _rotation , -40);
}
Frame 14
function guessWhoDealer() {
if ((Dcard0 + Dcard1) == 21) {
if ((Pcard0 + Pcard1) == 21) {
_root.statusMov.play();
_root.statusMov.statusCopy = "You and Dealer have Blackjack! Push.";
Sponds(3);
_root.gotoAndStop("end");
return(undefined);
}
if (insurance == true) {
if (Ptotal >= 22) {
_root.statusMov.play();
_root.statusMov.statusCopy = "Your Bust! Dealer wins.";
Sponds(1);
_root.gotoAndStop("end");
return(undefined);
}
_root.statusMov.play();
_root.statusMov.statusCopy = "Dealer has Blackjack! You claim insurance.";
Sponds(3);
_root.gotoAndStop("end");
return(undefined);
}
_root.statusMov.play();
_root.statusMov.statusCopy = "Dealer wins with Blackjack!";
Sponds(1);
_root.gotoAndStop("end");
return(undefined);
}
if (Ptotal >= 22) {
_root.statusMov.play();
_root.statusMov.statusCopy = "Your Bust! Dealer wins.";
Sponds(1);
_root.gotoAndStop("end");
return(undefined);
}
if (Dtotal >= 22) {
_root.statusMov.play();
_root.statusMov.statusCopy = ("Dealer Busts. You win $" + currentBet[0]) + ".";
Sponds(2);
_root.gotoAndStop("end");
return(undefined);
}
if ((Pcard0 + Pcard1) == 21) {
Cool = Math.floor(currentBet[0] * 1.5);
_root.statusMov.play();
_root.statusMov.statusCopy = ("Blackjack! You win $" + Cool) + "!";
Sponds(4);
_root.gotoAndStop("end");
return(undefined);
}
if (16 >= Dtotal) {
_root.nextFrame();
return(undefined);
}
if (Dtotal == Ptotal) {
_root.statusMov.play();
_root.statusMov.statusCopy = "Your hand matches Dealers. Push.";
Sponds(3);
_root.gotoAndStop("end");
return(undefined);
}
if (Ptotal < Dtotal) {
_root.statusMov.play();
_root.statusMov.statusCopy = ("Dealer wins draw with " + Dtotal) + ".";
Sponds(1);
_root.gotoAndStop("end");
return(undefined);
}
_root.statusMov.play();
_root.statusMov.statusCopy = ("You win draw with " + Ptotal) + ".";
Sponds(2);
_root.gotoAndStop("end");
}
function guessWhoPlayer() {
if ((Pcard0 + Pcard1) == 21) {
_root.gotoAndPlay("dealer");
}
if (Ptotal == 21) {
_root.gotoAndPlay("dealer");
}
if (Ptotal >= 22) {
_root.gotoAndPlay("dealer");
}
}
Frame 15
function Player_score_start(ps1) {
Set("Pcard" + i, ps1);
i++;
Pvalue = (((((Pcard0 + Pcard1) + Pcard2) + Pcard3) + Pcard4) + Pcard5) + Pcard6;
Pace = 0;
if (Pcard0 == 11) {
Pace++;
}
if (Pcard1 == 11) {
Pace++;
}
if (Pcard2 == 11) {
Pace++;
}
if (Pcard3 == 11) {
Pace++;
}
if (Pcard4 == 11) {
Pace++;
}
if (Pcard5 == 11) {
Pace++;
}
if (Pcard6 == 11) {
Pace++;
}
}
function Player_score_finish() {
Pvalue = (((((Pcard0 + Pcard1) + Pcard2) + Pcard3) + Pcard4) + Pcard5) + Pcard6;
if (Pace >= 1) {
_root.scorePlayer.gotoAndStop("11");
Pmaster = 0;
if (Pace == 1) {
Pmaster1 = Pvalue - 10;
Pmaster2 = Pvalue;
_root.scorePlayer.score1a = Pmaster1;
_root.scorePlayer.score1b = Pmaster2;
}
if (Pace == 2) {
Pmaster1 = Pvalue - 20;
Pmaster2 = Pvalue;
_root.scorePlayer.score1a = Pmaster1;
_root.scorePlayer.score1b = Pmaster2;
}
if (Pace == 3) {
Pmaster1 = Pvalue - 30;
Pmaster2 = Pvalue;
_root.scorePlayer.score1a = Pmaster1;
_root.scorePlayer.score1b = Pmaster2;
}
if (Pace == 4) {
Pmaster1 = Pvalue - 40;
Pmaster2 = Pvalue;
_root.scorePlayer.score1a = Pmaster1;
_root.scorePlayer.score1b = Pmaster2;
}
}
if (0 >= Pace) {
Pmaster = Pvalue;
_root.scorePlayer.score1 = Pmaster;
}
if (Pmaster == 0) {
if (Pmaster2 >= 22) {
Ptotal = Pmaster1;
}
if (21 >= Pmaster2) {
Ptotal = Pmaster2;
}
} else {
Ptotal = Pmaster;
}
guessWhoPlayer();
}
i = 0;
Frame 16
function Dealer_score_start(ds1) {
Set("Dcard" + e, ds1);
e++;
Dace = 0;
if (Dcard0 == 11) {
Dace++;
}
if (Dcard1 == 11) {
Dace++;
}
if (Dcard2 == 11) {
Dace++;
}
if (Dcard3 == 11) {
Dace++;
}
if (Dcard4 == 11) {
Dace++;
}
if (Dcard5 == 11) {
Dace++;
}
if (Dcard6 == 11) {
Dace++;
}
}
function Dealer_score_finish() {
Dvalue = (((((Dcard0 + Dcard1) + Dcard2) + Dcard3) + Dcard4) + Dcard5) + Dcard6;
if (Dace >= 1) {
_root.scoreDealer.gotoAndStop("11");
Dmaster = 0;
if (Dace == 1) {
Dmaster1 = Dvalue - 10;
Dmaster2 = Dvalue;
_root.scoreDealer.score1a = Dmaster1;
_root.scoreDealer.score1b = Dmaster2;
}
if (Dace == 2) {
Dmaster1 = Dvalue - 20;
Dmaster2 = Dvalue;
_root.scoreDealer.score1a = Dmaster1;
_root.scoreDealer.score1b = Dmaster2;
}
if (Dace == 3) {
Dmaster1 = Dvalue - 30;
Dmaster2 = Dvalue;
_root.scoreDealer.score1a = Dmaster1;
_root.scoreDealer.score1b = Dmaster2;
}
if (Dace == 4) {
Dmaster1 = Dvalue - 40;
Dmaster2 = Dvalue;
_root.scoreDealer.score1a = Dmaster1;
_root.scoreDealer.score1b = Dmaster2;
}
}
if (0 >= Dace) {
Dmaster = Dvalue;
_root.scoreDealer.score1 = Dmaster;
}
if (Dmaster == 0) {
if (Dmaster2 >= 22) {
Dtotal = Dmaster1;
}
if (21 >= Dmaster2) {
Dtotal = Dmaster2;
}
} else {
Dtotal = Dmaster;
}
guessWhoDealer();
}
e = 0;
Frame 17
function card_remove() {
_root.statusMov.play();
delete Cvalue;
delete currentBetUpdate;
currentBet[0] = 0;
_root.amountPot = 0;
_root.netMov.gotoAndStop(1);
h = 1;
while (h < 199) {
_root["chip" + h].play();
h++;
}
j = 600;
while (j < 799) {
_root["chip2" + j].play();
j++;
}
betting = true;
c = 1;
ca = 600;
chip1Val = 0;
chip5Val = 0;
chip25Val = 0;
chip100Val = 0;
Clevel = 200;
delete cardSplit;
delete StartDealer;
i = 0;
e = 0;
delete Dtotal;
delete Ptotal;
delete Ptotala;
delete Ptotalb;
delete Pmaster1a;
delete Pmaster2a;
delete Pmaster1b;
delete Pmaster2b;
delete Pvalue1;
delete Pvalue2;
delete Pvalue;
delete Dvalue;
_root.card0.play();
_root.card1.play();
_root.card2.play();
_root.card3.play();
_root.card4.play();
_root.card5.play();
_root.card6.play();
_root.card7.play();
_root.card8.play();
_root.card9.play();
_root.card10.play();
_root.card11.play();
_root.card12.play();
_root.card13.play();
_root.card14.play();
_root.card15.play();
_root.card16.play();
_root.card17.play();
_root.card18.play();
_root.topcard.removeMovieClip();
_root.scorePlayer.removeMovieClip();
_root.scorePlayer1a.removeMovieClip();
_root.scorePlayer1b.removeMovieClip();
_root.scoreDealer.removeMovieClip();
delete Pcard0;
delete Pcard1;
delete Pcard2;
delete Pcard3;
delete Pcard4;
delete Pcard5;
delete Pcard6;
delete Pcard7;
delete Pcard8;
delete Pcard9;
delete Pcard10;
delete Pcard11;
delete Dcard1;
delete Dcard2;
delete Dcard3;
delete Dcard4;
delete Dcard5;
delete Dcard6;
delete Dcard7;
}
Frame 18
function ShufflePloy() {
counter = 0;
Clevel = 200;
c0 = 0;
c1 = 1;
c2 = 2;
c3 = 3;
c4 = 4;
c5 = 5;
c6 = 6;
c7 = 7;
c8 = 8;
c9 = 9;
c10 = 10;
c11 = 11;
c12 = 12;
c13 = 13;
c14 = 14;
c15 = 15;
c16 = 16;
c17 = 17;
c18 = 18;
c19 = 19;
c20 = 20;
c21 = 21;
c22 = 22;
c23 = 23;
c24 = 24;
c25 = 25;
c26 = 26;
c27 = 27;
c28 = 28;
c29 = 29;
c30 = 30;
c31 = 31;
c32 = 32;
c33 = 33;
c34 = 34;
c35 = 35;
c36 = 36;
c37 = 37;
c38 = 38;
c39 = 39;
c40 = 40;
c41 = 41;
c42 = 42;
c43 = 43;
c44 = 44;
c45 = 45;
c46 = 46;
c47 = 47;
c48 = 48;
c49 = 49;
c50 = 50;
c51 = 51;
leng = 52;
q = 0;
while (Number(q) < Number(leng)) {
rand = random(52);
if (eval ("c" add rand) eq "empty") {
q = q - 1;
} else {
Set("shuffle" add q, eval ("c" add rand));
Set("c" add rand, "empty");
}
q = Number(q) + 1;
}
q = 0;
}
ShufflePloy();
Frame 19
betting = true;
_root.statusMov.play();
_root.statusMov.statusCopy = "Select chips to place bet or choose Min or Max bet.";
stop();
Frame 20
_root.statusMov.gotoAndStop(1);
betting = true;
stop();
Frame 21
betting = false;
double == false;
posCard = new Array();
d = 0;
while (d < 16) {
posCard.unshift(random(10));
d++;
}
if (chip1Val >= 1) {
chip1ValHis.unshift(chip1Val);
chip5ValHis.unshift(chip5Val);
chip25ValHis.unshift(chip25Val);
chip100ValHis.unshift(chip100Val);
}
if (chip5Val >= 1) {
chip1ValHis.unshift(chip1Val);
chip5ValHis.unshift(chip5Val);
chip25ValHis.unshift(chip25Val);
chip100ValHis.unshift(chip100Val);
}
if (chip25Val >= 1) {
chip1ValHis.unshift(chip1Val);
chip5ValHis.unshift(chip5Val);
chip25ValHis.unshift(chip25Val);
chip100ValHis.unshift(chip100Val);
}
if (chip100Val >= 1) {
chip1ValHis.unshift(chip1Val);
chip5ValHis.unshift(chip5Val);
chip25ValHis.unshift(chip25Val);
chip100ValHis.unshift(chip100Val);
}
play();
Frame 22
_root.dealCards1.play();
_root.cardDeal.start();
stop();
Frame 23
duplicateMovieClip ("c" + eval ("shuffle" + counter), "card0", Clevel);
place_card0();
_root.dealCards2.play();
_root.cardDeal.start();
stop();
Frame 24
Clevel++;
counter++;
duplicateMovieClip ("c" + eval ("shuffle" + counter), "card12", Clevel);
place_card12();
_root.dealCards1.play();
_root.cardDeal.start();
stop();
Frame 25
Clevel++;
counter++;
duplicateMovieClip ("c" + eval ("shuffle" + counter), "card1", Clevel);
place_card1();
_root.dealCards2.play();
_root.cardDeal.start();
Player_score_start(_root.card0.value);
stop();
Frame 26
duplicateMovieClip (_root.top, "topcard", 400);
Clevel++;
counter++;
duplicateMovieClip ("c" + eval ("shuffle" + counter), "card13", Clevel);
place_card13();
_root.hitBut.gotoAndStop(2);
Player_score_start(_root.card1.value);
duplicateMovieClip (_root.scoreMain, "scorePlayer", 300);
setProperty("scorePlayer", _x , 220);
setProperty("scorePlayer", _y , 280);
Frame 27
Player_score_finish();
if (_root.card12.value == 11) {
_root.insuranceMov.play();
}
stop();
Frame 28
_root.insuranceMov.gotoAndStop(1);
Clevel++;
counter++;
duplicateMovieClip ("c" + eval ("shuffle" + counter), "card2", Clevel);
place_card2();
_root.cardDeal.start();
Frame 29
Player_score_start(_root.card2.value);
Player_score_finish();
if (double == true) {
_root.gotoAndPlay("dealer");
}
stop();
Frame 30
Clevel++;
counter++;
duplicateMovieClip ("c" + eval ("shuffle" + counter), "card3", Clevel);
place_card3();
_root.cardDeal.start();
Frame 31
Player_score_start(_root.card3.value);
Player_score_finish();
stop();
Frame 32
Clevel++;
counter++;
duplicateMovieClip ("c" + eval ("shuffle" + counter), "card4", Clevel);
place_card4();
_root.cardDeal.start();
Frame 33
Player_score_start(_root.card4.value);
Player_score_finish();
stop();
Frame 34
Clevel++;
counter++;
duplicateMovieClip ("c" + eval ("shuffle" + counter), "card5", Clevel);
place_card5();
_root.cardDeal.start();
Frame 35
Player_score_start(_root.card5.value);
Player_score_finish();
stop();
Frame 36
Clevel++;
counter++;
duplicateMovieClip ("c" + eval ("shuffle" + counter), "card6", Clevel);
place_card6();
_root.cardDeal.start();
Frame 37
Player_score_start(_root.card6.value);
Player_score_finish();
stop();
Frame 38
if (insurance == true) {
if ((Dcard0 + Dcard1) != 21) {
_root.chipSound.start();
_root.Insurance2Mov.play();
j = 600;
while (j < 799) {
_root["chip" + j].play();
j++;
}
}
}
StartDealer = true;
_root.insuranceMov.gotoAndStop(1);
_root.topcard.removeMovieClip();
duplicateMovieClip (_root.scoreMain, "scoreDealer", 310);
setProperty("scoreDealer", _x , 180);
setProperty("scoreDealer", _y , 85);
Dealer_score_start(_root.card12.value);
Dealer_score_start(_root.card13.value);
Dealer_score_finish();
stop();
Frame 39
_root.play();
Frame 45
Clevel++;
counter++;
duplicateMovieClip ("c" + eval ("shuffle" + counter), "card14", Clevel);
place_card14();
_root.cardDeal.start();
Frame 46
Dealer_score_start(_root.card14.value);
Dealer_score_finish();
stop();
Frame 47
_root.play();
Frame 53
Clevel++;
counter++;
duplicateMovieClip ("c" + eval ("shuffle" + counter), "card15", Clevel);
place_card15();
_root.cardDeal.start();
Frame 54
Dealer_score_start(_root.card15.value);
Dealer_score_finish();
stop();
Frame 55
_root.play();
Frame 61
Clevel++;
counter++;
duplicateMovieClip ("c" + eval ("shuffle" + counter), "card16", Clevel);
place_card16();
_root.cardDeal.start();
Frame 62
Dealer_score_start(_root.card16.value);
Dealer_score_finish();
stop();
Frame 63
_root.play();
Frame 69
Clevel++;
counter++;
duplicateMovieClip ("c" + eval ("shuffle" + counter), "card17", Clevel);
place_card17();
_root.cardDeal.start();
Frame 70
Dealer_score_start(_root.card17.value);
Dealer_score_finish();
stop();
Frame 71
stop();
Frame 72
card_remove();
_root.chipSound2.start();
Frame 73
if (counter >= 40) {
if (0 >= playerTotal[0]) {
_root.statusMov2.play();
_root.stop();
return(undefined);
}
_root.deck.removeMovieClip();
_root.shadow.removeMovieClip();
_root.shuffSound.start();
_root.play();
} else {
if (0 >= playerTotal[0]) {
_root.statusMov2.play();
_root.stop();
return(undefined);
}
duplicateMovieClip (_root.top, "deck", 350);
duplicateMovieClip (_root.cardShadow, "shadow", 349);
place_deck();
_root.netMov.gotoAndStop(1);
_root.gotoAndPlay("bets");
}
Frame 74
ShufflePloy();
Frame 78
betting = true;
stop();
Symbol 7 MovieClip Frame 1
stop();
Symbol 7 MovieClip Frame 2
stop();
Symbol 9 MovieClip Frame 1
stop();
Symbol 9 MovieClip Frame 2
stop();
Symbol 15 MovieClip [scoreP] Frame 3
stop();
Symbol 15 MovieClip [scoreP] Frame 4
stop();
Symbol 16 MovieClip [scoreP] Frame 3
stop();
Symbol 16 MovieClip [scoreP] Frame 4
stop();
Symbol 28 MovieClip Frame 1
value = 10;
stop();
Symbol 28 MovieClip Frame 2
this.removeMovieClip();
stop();
Symbol 33 MovieClip Frame 1
value = 11;
stop();
Symbol 33 MovieClip Frame 2
this.removeMovieClip();
stop();
Instance of Symbol 36 MovieClip "bar" in Symbol 40 MovieClip Frame 1
onClipEvent (enterFrame) {
this._xscale = (_parent.loadedBytes / _parent.totalByteSize) * 100;
}
Symbol 51 MovieClip Frame 1
value = 2;
stop();
Symbol 51 MovieClip Frame 2
this.removeMovieClip();
stop();
Symbol 54 MovieClip Frame 1
value = 3;
stop();
Symbol 54 MovieClip Frame 2
this.removeMovieClip();
stop();
Symbol 57 MovieClip Frame 1
value = 4;
stop();
Symbol 57 MovieClip Frame 2
this.removeMovieClip();
stop();
Symbol 60 MovieClip Frame 1
value = 5;
stop();
Symbol 60 MovieClip Frame 2
this.removeMovieClip();
stop();
Symbol 63 MovieClip Frame 1
value = 6;
stop();
Symbol 63 MovieClip Frame 2
this.removeMovieClip();
stop();
Symbol 66 MovieClip Frame 1
value = 7;
stop();
Symbol 66 MovieClip Frame 2
this.removeMovieClip();
stop();
Symbol 69 MovieClip Frame 1
value = 8;
stop();
Symbol 69 MovieClip Frame 2
this.removeMovieClip();
stop();
Symbol 72 MovieClip Frame 1
value = 9;
stop();
Symbol 72 MovieClip Frame 2
this.removeMovieClip();
stop();
Symbol 75 MovieClip Frame 1
value = 10;
stop();
Symbol 75 MovieClip Frame 2
this.removeMovieClip();
stop();
Symbol 77 MovieClip Frame 1
value = 10;
stop();
Symbol 77 MovieClip Frame 2
this.removeMovieClip();
stop();
Symbol 83 MovieClip Frame 1
value = 10;
stop();
Symbol 83 MovieClip Frame 2
this.removeMovieClip();
stop();
Symbol 88 MovieClip Frame 1
value = 10;
stop();
Symbol 88 MovieClip Frame 2
this.removeMovieClip();
stop();
Symbol 89 MovieClip Frame 1
value = 11;
stop();
Symbol 89 MovieClip Frame 2
this.removeMovieClip();
stop();
Symbol 90 MovieClip Frame 1
value = 2;
stop();
Symbol 90 MovieClip Frame 2
this.removeMovieClip();
stop();
Symbol 91 MovieClip Frame 1
value = 3;
stop();
Symbol 91 MovieClip Frame 2
this.removeMovieClip();
stop();
Symbol 92 MovieClip Frame 1
value = 4;
stop();
Symbol 92 MovieClip Frame 2
this.removeMovieClip();
stop();
Symbol 93 MovieClip Frame 1
value = 5;
stop();
Symbol 93 MovieClip Frame 2
this.removeMovieClip();
stop();
Symbol 94 MovieClip Frame 1
value = 6;
stop();
Symbol 94 MovieClip Frame 2
this.removeMovieClip();
stop();
Symbol 96 MovieClip Frame 1
value = 7;
stop();
Symbol 96 MovieClip Frame 2
this.removeMovieClip();
stop();
Symbol 97 MovieClip Frame 1
value = 8;
stop();
Symbol 97 MovieClip Frame 2
this.removeMovieClip();
stop();
Symbol 98 MovieClip Frame 1
value = 9;
stop();
Symbol 98 MovieClip Frame 2
this.removeMovieClip();
stop();
Symbol 99 MovieClip Frame 1
value = 10;
stop();
Symbol 99 MovieClip Frame 2
this.removeMovieClip();
stop();
Symbol 100 MovieClip Frame 1
value = 10;
stop();
Symbol 100 MovieClip Frame 2
this.removeMovieClip();
stop();
Symbol 101 MovieClip Frame 1
value = 10;
stop();
Symbol 101 MovieClip Frame 2
this.removeMovieClip();
stop();
Symbol 102 MovieClip Frame 1
value = 10;
stop();
Symbol 102 MovieClip Frame 2
this.removeMovieClip();
stop();
Symbol 106 MovieClip Frame 1
value = 3;
stop();
Symbol 106 MovieClip Frame 2
this.removeMovieClip();
stop();
Symbol 107 MovieClip Frame 1
value = 2;
stop();
Symbol 107 MovieClip Frame 2
this.removeMovieClip();
stop();
Symbol 108 MovieClip Frame 1
value = 5;
stop();
Symbol 108 MovieClip Frame 2
this.removeMovieClip();
stop();
Symbol 109 MovieClip Frame 1
value = 7;
stop();
Symbol 109 MovieClip Frame 2
this.removeMovieClip();
stop();
Symbol 110 MovieClip Frame 1
value = 6;
stop();
Symbol 110 MovieClip Frame 2
this.removeMovieClip();
stop();
Symbol 111 MovieClip Frame 1
value = 4;
stop();
Symbol 111 MovieClip Frame 2
this.removeMovieClip();
stop();
Symbol 112 MovieClip Frame 1
value = 8;
stop();
Symbol 112 MovieClip Frame 2
this.removeMovieClip();
stop();
Symbol 113 MovieClip Frame 1
value = 9;
stop();
Symbol 113 MovieClip Frame 2
this.removeMovieClip();
stop();
Symbol 114 MovieClip Frame 1
value = 10;
stop();
Symbol 114 MovieClip Frame 2
this.removeMovieClip();
stop();
Symbol 115 MovieClip Frame 1
value = 10;
stop();
Symbol 115 MovieClip Frame 2
this.removeMovieClip();
stop();
Symbol 116 MovieClip Frame 1
value = 10;
stop();
Symbol 116 MovieClip Frame 2
this.removeMovieClip();
stop();
Symbol 117 MovieClip Frame 1
value = 10;
stop();
Symbol 117 MovieClip Frame 2
this.removeMovieClip();
stop();
Symbol 118 MovieClip Frame 1
value = 11;
stop();
Symbol 118 MovieClip Frame 2
this.removeMovieClip();
stop();
Symbol 119 MovieClip Frame 1
value = 2;
stop();
Symbol 119 MovieClip Frame 2
this.removeMovieClip();
stop();
Symbol 120 MovieClip Frame 1
value = 3;
stop();
Symbol 120 MovieClip Frame 2
this.removeMovieClip();
stop();
Symbol 122 MovieClip Frame 1
value = 4;
stop();
Symbol 122 MovieClip Frame 2
this.removeMovieClip();
stop();
Symbol 123 MovieClip Frame 1
value = 5;
stop();
Symbol 123 MovieClip Frame 2
this.removeMovieClip();
stop();
Symbol 124 MovieClip Frame 1
value = 6;
stop();
Symbol 124 MovieClip Frame 2
this.removeMovieClip();
stop();
Symbol 125 MovieClip Frame 1
value = 7;
stop();
Symbol 125 MovieClip Frame 2
this.removeMovieClip();
stop();
Symbol 126 MovieClip Frame 1
value = 8;
stop();
Symbol 126 MovieClip Frame 2
this.removeMovieClip();
stop();
Symbol 127 MovieClip Frame 1
value = 9;
stop();
Symbol 127 MovieClip Frame 2
this.removeMovieClip();
stop();
Symbol 128 MovieClip Frame 1
value = 10;
stop();
Symbol 128 MovieClip Frame 2
this.removeMovieClip();
stop();
Symbol 129 MovieClip Frame 1
value = 10;
stop();
Symbol 129 MovieClip Frame 2
this.removeMovieClip();
stop();
Symbol 130 MovieClip Frame 1
value = 10;
stop();
Symbol 130 MovieClip Frame 2
this.removeMovieClip();
stop();
Symbol 131 MovieClip Frame 1
value = 11;
stop();
Symbol 131 MovieClip Frame 2
this.removeMovieClip();
stop();
Symbol 137 MovieClip Frame 1
stop();
Symbol 137 MovieClip Frame 3
_root.play();
Symbol 137 MovieClip Frame 4
gotoAndStop (1);
Symbol 138 MovieClip Frame 1
stop();
Symbol 138 MovieClip Frame 3
_root.play();
Symbol 138 MovieClip Frame 4
gotoAndStop (1);
Symbol 152 MovieClip Frame 1
stop();
Symbol 152 MovieClip Frame 2
stop();
Symbol 152 MovieClip Frame 3
stop();
Symbol 155 MovieClip Frame 1
stop();
Symbol 155 MovieClip Frame 2
stop();
Symbol 160 MovieClip Frame 1
stop();
Symbol 160 MovieClip Frame 3
stop();
Symbol 161 Button
on (press) {
_root.chipSound.start();
_root.insurance = true;
}
on (release) {
_root.Insurance2Mov.gotoAndStop(2);
if (currentBet[0] == 1) {
currentBet[0] = 2;
}
_root.insuranceSum = Math.floor(_root.currentBet[0] / 2);
_root.playerTotalUpdate = _root.playerTotal[0] - _root.insuranceSum;
_root.playerTotal.unshift(_root.playerTotalUpdate);
_root.amountPlayer = _root.playerTotal[0];
_root.Insurance2Mov.amountInsurance = _root.insuranceSum;
_root.addChips();
play();
}
Symbol 163 MovieClip Frame 1
stop();
Symbol 163 MovieClip Frame 3
stop();
Symbol 163 MovieClip Frame 5
gotoAndStop (1);
Symbol 164 Button
on (release) {
_root.gotoAndPlay(1);
play();
}
Symbol 166 MovieClip Frame 1
stop();
Symbol 166 MovieClip Frame 3
stop();
Symbol 174 Button
on (press) {
_root.chipSound.start();
}
on (release) {
if (betting == false) {
return(undefined);
}
if (currentBet[0] == 200) {
return(undefined);
}
_root.gotoAndStop("start");
chip1Val++;
if (chip1Val == 5) {
chip5Val++;
chip1Val = 0;
}
if (chip5Val == 5) {
chip25Val++;
chip5Val = 0;
}
if (chip25Val == 4) {
chip100Val++;
chip25Val = 0;
}
CashAdd(1);
c++;
_root.chip1_.duplicateMovieClip("chip" + c, c);
setProperty("chip" + c, _x , posChipx[random(7)]);
setProperty("chip" + c, _y , posChipy[random(6)]);
}
Symbol 177 Button
on (press) {
_root.chipSound.start();
}
on (release) {
if (betting == false) {
return(undefined);
}
if (currentBet[0] >= 196) {
return(undefined);
}
chip5Val++;
if (chip5Val == 5) {
chip25Val++;
chip5Val = 0;
}
if (chip25Val == 4) {
chip100Val++;
chip25Val = 0;
}
CashAdd(5);
_root.gotoAndStop("start");
c++;
_root.chip5_.duplicateMovieClip("chip" + c, c);
setProperty("chip" + c, _x , posChipx[random(7)]);
setProperty("chip" + c, _y , posChipy[random(6)]);
}
Symbol 180 Button
on (press) {
_root.chipSound.start();
}
on (release) {
if (betting == false) {
return(undefined);
}
if (currentBet[0] >= 176) {
return(undefined);
}
chip25Val++;
if (chip25Val == 4) {
chip25Val = 0;
chip100Val++;
}
_root.gotoAndStop("start");
CashAdd(25);
c++;
_root.chip25_.duplicateMovieClip("chip" + c, c);
setProperty("chip" + c, _x , posChipx[random(7)]);
setProperty("chip" + c, _y , posChipy[random(6)]);
}
Symbol 183 Button
on (press) {
_root.chipSound.start();
}
on (release) {
if (betting == false) {
return(undefined);
}
if (currentBet[0] >= 101) {
return(undefined);
}
chip100Val++;
_root.gotoAndStop("start");
CashAdd(100);
c++;
_root.chip100_.duplicateMovieClip("chip" + c, c);
setProperty("chip" + c, _x , posChipx[random(7)]);
setProperty("chip" + c, _y , posChipy[random(6)]);
}
Symbol 184 Button
on (press) {
_root.chipSound.start();
}
on (release) {
if (_root.betting == false) {
return(undefined);
}
_root.CashRemove(1);
if (0 >= chip1Val) {
} else {
_root.chip1Val--;
}
play();
}
Symbol 185 MovieClip Frame 1
stop();
Symbol 185 MovieClip Frame 2
this.removeMovieClip();
stop();
Symbol 186 Button
on (press) {
_root.chipSound.start();
}
on (release) {
if (_root.betting == false) {
return(undefined);
}
_root.CashRemove(5);
if (0 >= chip5Val) {
} else {
_root.chip5Val--;
}
play();
}
Symbol 187 MovieClip Frame 1
stop();
Symbol 187 MovieClip Frame 2
this.removeMovieClip();
stop();
Symbol 188 Button
on (press) {
_root.chipSound.start();
}
on (release) {
if (_root.betting == false) {
return(undefined);
}
_root.CashRemove(100);
if (0 >= chip100Val) {
} else {
_root.chip100Val--;
}
play();
}
Symbol 189 MovieClip Frame 1
stop();
Symbol 189 MovieClip Frame 2
this.removeMovieClip();
stop();
Symbol 190 Button
on (press) {
_root.chipSound.start();
}
on (release) {
if (_root.betting == false) {
return(undefined);
}
_root.CashRemove(25);
if (0 >= chip25Val) {
} else {
_root.chip25Val--;
}
play();
}
Symbol 191 MovieClip Frame 1
stop();
Symbol 191 MovieClip Frame 2
this.removeMovieClip();
stop();
Symbol 195 Button
on (release) {
_root.shuffSound.start();
_root.play();
}
Symbol 198 Button
on (press) {
_root.chipSound.start();
}
on (release) {
chip1Val++;
minBet();
_root.play();
}
Symbol 199 Button
on (press) {
_root.chipSound.start();
}
on (release) {
chip100Val++;
chip100Val++;
maxBet();
_root.play();
}
Symbol 203 Button
on (release) {
if (currentBet[0] == 0) {
_root.prevFrame();
return(undefined);
}
_root.play();
}
Symbol 205 Button
on (release) {
_root.play();
}
Symbol 206 Button
on (press) {
double = true;
_root.chipSound.start();
}
on (release) {
_root.addChips();
CashAdd(currentBet[0]);
_root.play();
}
Symbol 207 Button
on (release) {
_root.gotoAndPlay("dealer");
}
Symbol 212 Button
on (press) {
_root.chipSound.start();
}
on (release) {
if (betting == false) {
return(undefined);
}
if (currentBet[0] == 200) {
return(undefined);
}
_root.gotoAndStop("start");
chip1Val++;
insurance == false;
double = false;
if (chip1Val == 5) {
chip5Val++;
chip1Val = 0;
}
if (chip5Val == 5) {
chip25Val++;
chip5Val = 0;
}
if (chip25Val == 4) {
chip100Val++;
chip25Val = 0;
}
CashAdd(1);
c++;
_root.chip1_.duplicateMovieClip("chip" + c, c);
setProperty("chip" + c, _x , posChipx[random(7)]);
setProperty("chip" + c, _y , posChipy[random(6)]);
}
Symbol 213 Button
on (press) {
_root.chipSound.start();
}
on (release) {
if (betting == false) {
return(undefined);
}
if (currentBet[0] >= 196) {
return(undefined);
}
chip5Val++;
insurance == false;
double = false;
if (chip5Val == 5) {
chip25Val++;
chip5Val = 0;
}
if (chip25Val == 4) {
chip100Val++;
chip25Val = 0;
}
CashAdd(5);
_root.gotoAndStop("start");
c++;
_root.chip5_.duplicateMovieClip("chip" + c, c);
setProperty("chip" + c, _x , posChipx[random(7)]);
setProperty("chip" + c, _y , posChipy[random(6)]);
}
Symbol 214 Button
on (press) {
_root.chipSound.start();
}
on (release) {
if (betting == false) {
return(undefined);
}
if (currentBet[0] >= 176) {
return(undefined);
}
chip25Val++;
insurance == false;
double = false;
if (chip25Val == 4) {
chip25Val = 0;
chip100Val++;
}
_root.gotoAndStop("start");
CashAdd(25);
c++;
_root.chip25_.duplicateMovieClip("chip" + c, c);
setProperty("chip" + c, _x , posChipx[random(7)]);
setProperty("chip" + c, _y , posChipy[random(6)]);
}
Symbol 215 Button
on (press) {
_root.chipSound.start();
}
on (release) {
if (betting == false) {
return(undefined);
}
if (currentBet[0] >= 101) {
return(undefined);
}
chip100Val++;
insurance == false;
double = false;
_root.gotoAndStop("start");
CashAdd(100);
c++;
_root.chip100_.duplicateMovieClip("chip" + c, c);
setProperty("chip" + c, _x , posChipx[random(7)]);
setProperty("chip" + c, _y , posChipy[random(6)]);
}
Symbol 216 Button
on (press) {
_root.chipSound.start();
}
on (release) {
chip1Val++;
minBet();
insurance == false;
double = false;
_root.gotoAndStop("start");
}
Symbol 217 Button
on (press) {
_root.chipSound.start();
}
on (release) {
chip100Val++;
chip100Val++;
maxBet();
insurance == false;
double = false;
_root.gotoAndStop("start");
}
Symbol 218 Button
on (press) {
_root.chipSound.start();
}
on (release) {
if (double == true) {
_root.CashAdd(betHistory[1]);
double = false;
} else {
_root.CashAdd(betHistory[0]);
double = false;
}
insurance = false;
addChips();
_root.gotoAndStop("start2");
}