Frame 1
WelcomeComp = "0";
ThisIsATest = "0";
Frame 2
if (ThisIsATest == "0") {
ifFrameLoaded (5) {
gotoAndPlay (4);
}
} else if (_framesloaded == _totalframes) {
gotoAndPlay (17);
}
Frame 3
gotoAndPlay (2);
Frame 4
Loadar = int((_framesloaded / _totalframes) * "100") add "%";
if ((WelcomeComp == "1") and (Loadar eq "100%")) {
gotoAndPlay (6);
}
InGame = "0";
Frame 5
gotoAndPlay (4);
Frame 16
stop();
Frame 17
setProperty("_level0/Timer", _visible , "0");
if (ThisIsATest == "0") {
setProperty("/atest", _visible , "0");
}
t1 = PlayerName;
call("StartValues");
if (InGame == "1") {
call("ResetVariables");
}
Frame 18
stop();
Frame 31
call("Resetvariables");
tellTarget ("/TopBanner") {
gotoAndPlay (2);
}
Frame 39
x = "1";
while (x < "9") {
setProperty("/DealerCards/Card0" add x, _visible , "0");
setProperty("/PlayerCard01/Card0" add x, _visible , "0");
setProperty("/PlayerCard02/Card0" add x, _visible , "0");
setProperty("/PlayerCard03/Card0" add x, _visible , "0");
setProperty("/PlayerCard04/Card0" add x, _visible , "0");
setProperty("/PlayerCard05/Card0" add x, _visible , "0");
if (x < "6") {
Set(("Pileinfo0" add x) add ":t1", "");
Set(("Pileinfo0" add x) add ":t2", "");
Set(("Pileinfo0" add x) add ":t3", "");
}
x = x + "1";
}
setProperty("/Point01", _visible , "0");
setProperty("/Point02", _visible , "0");
setProperty("/Point03", _visible , "0");
setProperty("/Point04", _visible , "0");
setProperty("/Point05", _visible , "0");
setProperty("/TheRules", _visible , "0");
Money = "200";
CurrentBet = "10";
Piles = "1";
WhereAmI = "1";
NewCard = "3";
TotalBet = "0";
DealInfo01 = "";
DealInfo02 = "";
AllowBet = "0";
AllowCard = "0";
AllowDouble = "0";
AllowSplit = "0";
AllowDeal = "0";
AllowInsurance = "0";
AllowStand = "0";
Set("/:AllowMenu", "1");
setProperty("_level0/Restart", _visible , "0");
setProperty("_level0/TheAbout", _visible , "0");
Frame 49
tellTarget ((("_level0/PlayerCard0" add _level0:WhereAmI) add "/Card0") add _level0:NewCard) {
gotoAndStop(random("52") + "2");
};
setProperty((("_level0/PlayerCard0" add _level0:WhereAmI) add "/Card0") add _level0:NewCard, _visible , "1");
call("_level0:CheckValues");
if ("21" < eval (("/PileInfo0" add /:WhereAmI) add ":Cval")) {
Set(("/PileInfo0" add /:WhereAmI) add ":t1", eval (("/PileInfo0" add /:WhereAmI) add ":Cval") add ", Busted");
Set("/:AllowCard", "0");
Set("/:Busted", /:Busted + "1");
call("/:Stand");
} else {
Set("_level0:NewCard", _level0:NewCard + "1");
}
call("Checkdouble");
call("checksplit");
Frame 57
if (_level0/:WhereAmI == _level0/:Piles) {
call("_level0:AllFalse");
Temp = "1";
while (Temp < "6") {
setProperty("/point0" add Temp, _visible , "0");
Temp = "1" + Temp;
}
if (_level0/:Piles == /:Busted) {
call("whowon");
} else {
tellTarget ("_level0/DealerCards") {
gotoAndPlay (6);
};
}
} else {
Set("/:WhereAmI", /:WhereAmI + "1");
Set("/:NewCard", "3");
call("/:PointWho");
Set("/:AllowCard", "1");
call("/:CheckDouble");
call("/:CheckSplit");
call("/:CheckInsurance");
}
Frame 66
x = "1";
while (x < "9") {
setProperty("/DealerCards/Card0" add x, _visible , "0");
setProperty("/PlayerCard01/Card0" add x, _visible , "0");
setProperty("/PlayerCard02/Card0" add x, _visible , "0");
setProperty("/PlayerCard03/Card0" add x, _visible , "0");
setProperty("/PlayerCard04/Card0" add x, _visible , "0");
setProperty("/PlayerCard05/Card0" add x, _visible , "0");
if (x < "6") {
Set(("Pileinfo0" add x) add ":t1", "");
Set(("Pileinfo0" add x) add ":t2", "");
Set(("Pileinfo0" add x) add ":t3", "");
}
x = x + "1";
}
setProperty("/Point01", _visible , "0");
setProperty("/Point02", _visible , "0");
setProperty("/Point03", _visible , "0");
setProperty("/Point04", _visible , "0");
setProperty("/Point05", _visible , "0");
setProperty("/TheRules", _visible , "0");
TotalBet = "0";
Piles = "1";
Busted = "0";
WhereAmI = "1";
NewCard = "3";
DealInfo01 = "";
DealInfo02 = "";
AllowBet = "1";
AllowCard = "0";
AllowDouble = "0";
AllowSplit = "0";
AllowDeal = "1";
AllowInsurance = "0";
AllowStand = "0";
Set("/:AllowMenu", "1");
setProperty("_level0/Restart", _visible , "0");
Frame 78
x = "1";
Temp = "0";
while (piles >= x) {
TempValue = "0";
y = "1";
Ace = "0";
while (getProperty((("_level0/PlayerCard0" add x) add "/Card0") add y, _visible) == "1") {
Temp = getProperty((("_level0/PlayerCard0" add x) add "/Card0") add y, _currentframe);
while ("14" < Temp) {
Temp = temp - "13";
}
Temp = Temp - "1";
if ("10" < Temp) {
Temp = "10";
}
if (Temp == "1") {
Ace = Ace + "1";
Temp = "11";
}
TempValue = TempValue + Temp;
while (("21" < TempValue) and ("0" < Ace)) {
TempValue = TempValue - "10";
Ace = Ace - "1";
}
y = y + "1";
}
Set(("_level0/Pileinfo0" add x) add "/:Cval", TempValue);
if ("21" < TempValue) {
Set(("_level0/Pileinfo0" add x) add "/:t1", TempValue add ", Busted");
} else {
Set(("_level0/Pileinfo0" add x) add "/:t1", TempValue);
}
x = x + "1";
}
Frame 88
AllowBet = "0";
AllowCard = "0";
AllowDouble = "0";
AllowSplit = "0";
AllowDeal = "0";
AllowInsurance = "0";
AllowStand = "0";
AllowMenu = "0";
Frame 95
TAllowBet = AllowBet;
TAllowCard = AllowCard;
TAllowDouble = AllowDouble;
TAllowSplit = AllowSplit;
TAllowDeal = AllowDeal;
TAllowInsurance = AllowInsurance;
TAllowStand = AllowStand;
TAllowMenu = AllowMenu;
AllowBet = "0";
AllowCard = "0";
AllowDouble = "0";
AllowSplit = "0";
AllowDeal = "0";
AllowInsurance = "0";
AllowStand = "0";
AllowMenu = "0";
Frame 103
AllowBet = TAllowBet;
AllowCard = TAllowCard;
AllowDouble = TAllowDouble;
AllowSplit = TAllowSplit;
AllowDeal = TAllowDeal;
AllowInsurance = TAllowInsurance;
AllowStand = TAllowStand;
AllowMenu = TAllowMenu;
tellTarget ("/TheMenu") {
gotoAndStop (1);
}
Frame 112
tellTarget (("/PlayerCard0" add /:WhereAmI) add "/Card01") {
Set("/:TCard01", _currentframe - "1");
};
tellTarget (("/PlayerCard0" add /:WhereAmI) add "/Card02") {
Set("/:TCard02", _currentframe - "1");
};
while ("13" < /:Tcard01) {
Set("/:TCard01", /:Tcard01 - "13");
}
while ("13" < /:Tcard02) {
Set("/:TCard02", /:Tcard02 - "13");
}
if ("10" < /:TCard01) {
Set("/:TCard01", "10");
}
if ("10" < /:TCard02) {
Set("/:TCard02", "10");
}
if ((/:TCard01 == /:TCard02) and (getProperty(("/PlayerCard0" add /:WhereAmI) add "/Card03", _visible) == "0")) {
AllowSplit = "1";
} else {
AllowSplit = "0";
}
Frame 120
if (((eval (("/Pileinfo0" add /:WhereAmI) add "/:t1") >= "9") and ("11" >= eval (("/Pileinfo0" add WhereAmI) add "/:t1"))) and (getProperty(("/PlayerCard0" add /:WhereAmI) add "/Card03", _visible) == "0")) {
Set("/:AllowDouble", "1");
} else {
Set("/:AllowDouble", "0");
}
Frame 129
tellTarget ("/DealerCards/Card01") {
Set("/:Tcard01", _currentframe - "1");
};
while ("13" < /:Tcard01) {
Set("/:Tcard01", /:Tcard01 - "13");
}
if (/:Tcard01 == "1") {
AllowInsurance = "1";
}
Frame 141
Temp = "1";
while (Temp < "6") {
setProperty("/point0" add Temp, _visible , "0");
Temp = "1" + Temp;
}
setProperty("/point0" add WhereAmI, _visible , "1");
Frame 148
tellTarget (("_level0/PlayerCard0" add /:WhereAmI) add "/card02") {
gotoAndStop(random("52") + "2");
};
tellTarget (("_level0/PlayerCard0" add (/:WhereAmI + "1")) add "/card02") {
gotoAndStop(random("52") + "2");
}
Frame 158
call("winCheckInsurance");
if ("1" < Piles) {
call("/:multicard");
} else if ("0" < Busted) {
TheOneWhoWon = "Busted!";
} else if (/:Dealinfo01 < "22") {
if ((PileInfo01:t1 < DealInfo01) or (DealInfo02 eq "Blackjack!")) {
TheOneWhoWon = "Dealer wins!";
Set("/:TotalBet", "0");
} else if (DealInfo01 == PileInfo01:t1) {
TheOneWhoWon = "Nobody wins";
Set("/:Money", /:TotalBet + /:Money);
Set("/:TotalBet", "0");
} else {
TheOneWhoWon = "You win";
Set("/:Money", (/:TotalBet * "2") + /:Money);
Set("/:TotalBet", "0");
}
} else {
TheOneWhoWon = "Dealer Busted, You win";
Set("/:Money", (/:TotalBet * "2") + /:Money);
Set("/:TotalBet", "0");
}
tellTarget ("/TopBanner") {
gotoAndPlay ("WonSingle");
t1 = /:TheOneWhoWon;
};
AllowDeal = "1";
AllowBet = "1";
Allowmenu = "1";
call("checkmoney");
Frame 166
if (DealInfo02 eq "BlackJack!") {
TheDiff = /:currentbet;
} else {
TheDiff = "0";
}
temp = "1";
while (piles >= temp) {
if (eval (("PileInfo0" add temp) add "/:t2") eq "Insured") {
Set("/:money", /:money + TheDiff);
Set("/:Totalbet", /:Totalbet - (/:currentbet / "2"));
}
temp = temp + "1";
}
Frame 180
Set("/:Temp01", getProperty(("/PlayerCard0" add /:WhereAmI) add "/Card01", _currentframe));
Set("/:Temp02", getProperty(("/PlayerCard0" add /:WhereAmI) add "/Card02", _currentframe));
if ((((/:Temp01 == "2") or (/:Temp01 == "15")) or (/:Temp01 == "28")) or (/:Temp01 == "41")) {
Set("/:Temp01", "ace");
}
if ((((/:Temp02 == "2") or (/:Temp02 == "15")) or (/:Temp02 == "28")) or (/:Temp02 == "41")) {
Set("/:Temp02", "ace");
}
if ((/:Temp02 eq "ace") and (/:Temp01 eq "ace")) {
ThisAceSplit = "1";
} else {
ThisAceSplit = "0";
}
Frame 191
if (/Pileinfo01/:t1 == "21") {
Set("/PileInfo01/:t1", "Blackjack!");
TheOneWhoWon = "Blackjack! You win";
Set("/:Money", (/:TotalBet * "2.5") + /:Money);
Set("/:TotalBet", "0");
allowmenu = "1";
call("/:allfalse");
allowdeal = "1";
allowmenu = "1";
allowbet = "1";
tellTarget ("/TopBanner") {
gotoAndPlay ("WonSingle");
t1 = /:TheOneWhoWon;
};
}
Frame 203
victory = "0";
draw = "0";
loss = "0";
temp = "1";
test = "0";
if (DealInfo02 eq "BlackJack!") {
loss = piles;
Set("/:TotalBet", "0");
} else {
while (piles >= temp) {
if (("21" < eval (("/pileinfo0" add temp) add "/:Cval")) or ((eval (("/pileinfo0" add temp) add "/:Cval") < DealInfo01) and (DealInfo01 < "22"))) {
loss = loss + "1";
if (eval (("/pileinfo0" add temp) add "/:t3") eq "Doubled") {
Set("/:TotalBet", /:TotalBet - (/:Currentbet * "2"));
} else {
Set("/:TotalBet", /:TotalBet - /:Currentbet);
}
} else if (DealInfo01 == eval (("/pileinfo0" add temp) add "/:Cval")) {
draw = draw + "1";
if (eval (("/pileinfo0" add temp) add "/:t3") eq "Doubled") {
Set("/:Money", (/:Currentbet * "2") + /:Money);
Set("/:TotalBet", /:TotalBet - (/:Currentbet * "2"));
} else {
Set("/:Money", /:Currentbet + /:Money);
Set("/:TotalBet", /:TotalBet - /:Currentbet);
}
} else if ((DealInfo01 < eval (("/pileinfo0" add temp) add "/:Cval")) or ("21" < Dealinfo01)) {
victory = victory + "1";
if (eval (("/pileinfo0" add temp) add "/:t3") eq "Doubled") {
Set("/:Money", (/:Currentbet * "4") + /:Money);
Set("/:TotalBet", /:TotalBet - (/:Currentbet * "2"));
} else {
Set("/:Money", /:Money + (/:Currentbet * "2"));
Set("/:TotalBet", /:TotalBet - /:Currentbet);
}
}
temp = temp + "1";
}
}
Set("/:TheOneWhoWon", (((("You won: " add victory) add " draw: ") add draw) add " lost: ") add loss);
Frame 210
if (/:money < /:currentbet) {
while ((/:money < /:currentbet) and (/:currentbet <> "10")) {
Set("/:currentbet", /:currentbet - "10");
}
}
if (/:money < /:currentbet) {
call("/:allfalse");
allowmenu = "1";
Set("/:ingame", "0");
tellTarget ("/TopBanner") {
gotoAndPlay ("WonSingle");
t1 = "GAME OVER!";
};
} else {
allowdeal = "1";
}
Symbol 20 MovieClip Frame 1
stop();
Symbol 20 MovieClip Frame 2
play();
Symbol 20 MovieClip Frame 34
stop();
tellTarget ("_level0/Ani01") {
play();
}
Symbol 21 MovieClip Frame 70
stop();
tellTarget ("Play01") {
gotoAndPlay (2);
}
Symbol 21 MovieClip Frame 71
tellTarget ("Play02") {
gotoAndStop (1);
}
Symbol 21 MovieClip Frame 104
stop();
tellTarget ("_level0") {
play();
Set("/:WelcomeComp", "1");
}
Symbol 36 Button
on (release) {
PlayerName = t2;
if (PlayerName eq "") {
PlayerName = "Anonymous";
}
play();
}
Symbol 42 Button
on (release) {
Set("/:movingcard", "card");
tellTarget ("/moving") {
play();
}
}
Symbol 45 MovieClip Frame 1
stop();
Symbol 46 Button
on (release) {
call("/:Stand");
}
Symbol 49 Button
on (release) {
call("/:CheckAceSplit");
Set("/:Temp", /:piles);
while (/:WhereAmI < /:Temp) {
tellTarget (("_level0/PlayerCard0" add (/:Temp + "1")) add "/Card01") {
gotoAndStop(getProperty(("_level0/PlayerCard0" add /:Temp) add "/Card01", _currentframe));
};
tellTarget (("_level0/PlayerCard0" add (/:Temp + "1")) add "/Card02") {
gotoAndStop(getProperty(("_level0/PlayerCard0" add /:Temp) add "/Card02", _currentframe));
};
setProperty(("_level0/PlayerCard0" add (/:Temp + "1")) add "/Card01", _visible , "1");
setProperty(("_level0/PlayerCard0" add (/:Temp + "1")) add "/Card02", _visible , "1");
Set("/:Temp", /:Temp - "1");
}
tellTarget (("_level0/PlayerCard0" add (/:WhereAmI + "1")) add "/Card01") {
gotoAndStop(getProperty(("_level0/PlayerCard0" add /:WhereAmI) add "/Card02", _currentframe));
};
setProperty(("/PlayerCard0" add (/:WhereAmI + "1")) add "/Card01", _visible , "1");
setProperty(("/PlayerCard0" add /:WhereAmI) add "/Card02", _visible , "0");
setProperty(("/PlayerCard0" add (/:WhereAmI + "1")) add "/Card02", _visible , "0");
Set("/:piles", /:piles + "1");
Set("/:allowSplit", "0");
Set("/:TotalBet", /:TotalBet + /:CurrentBet);
Set("/:Money", /:Money - /:CurrentBet);
Set("/:movingcard", "split");
tellTarget ("/moving") {
play();
}
}
Symbol 52 Button
on (release) {
Set(("/PileInfo0" add /:whereAmI) add ":t3", "Doubled");
Set("/:AllowDouble", "0");
Set("/:Totalbet", /:TotalBet + /:CurrentBet);
Set("/:Money", /:Money - /:CurrentBet);
Set("/:movingcard", "double");
tellTarget ("/moving") {
play();
}
}
Symbol 55 Button
on (release) {
Set(("/PileInfo0" add /:whereAmI) add ":t2", "Insured");
Set("/:AllowInsurance", "0");
Set("/:Money", /:Money - (/:CurrentBet / "2"));
Set("/:Totalbet", /:Totalbet + (/:CurrentBet / "2"));
}
Symbol 58 Button
on (release) {
call("/:NewDeal");
Set("_level0/:AllowBet", "0");
tellTarget ("_level0/DealerCards") {
gotoAndPlay (2);
};
tellTarget ("_level0/PlayerCard01/card01") {
gotoAndStop(random("52") + "2");
};
tellTarget ("_level0/PlayerCard01/Card02") {
gotoAndStop(random("52") + "2");
};
Set("/:TotalBet", /:CurrentBet);
Set("/:Money", /:Money - /:CurrentBet);
Set("/:movingcard", "deal");
tellTarget ("/moving") {
play();
}
}
Symbol 63 Button
on (release) {
if ((_level0/:CurrentBet < "50") and (/:money >= (/:currentbet + "10"))) {
Set("_level0/:CurrentBet", _level0/:CurrentBet + "10");
}
}
Symbol 64 Button
on (release) {
if ("10" < _level0/:CurrentBet) {
Set("_level0/:CurrentBet", _level0/:CurrentBet - "10");
}
}
Symbol 68 MovieClip Frame 1
stop();
Symbol 69 Button
on (release) {
if (getProperty("_level0/Timer", _visible) == "1") {
setProperty("_level0/Timer", _visible , "0");
} else {
setProperty("_level0/Timer", _visible , "1");
}
}
Symbol 122 Button
on (release) {
getURL ("mailto:daniel_favot@hotmail.com");
}
Symbol 173 MovieClip Frame 1
stop();
Symbol 177 MovieClip Frame 1
stop();
Symbol 177 MovieClip Frame 2
Set("_level0/:AllowDeal", "0");
Set("_level0/:AllowMenu", "0");
if (/:MovingCard eq "deal") {
To_Do = "4";
gotoAndPlay (20);
}
if (/:MovingCard eq "card") {
call("/:Tallfalse");
gotoAndPlay((/:WhereAmI * "10") + "10");
}
if (/:MovingCard eq "double") {
gotoAndPlay((/:WhereAmI * "10") + "10");
}
if (/:MovingCard eq "split") {
To_Do = "2";
gotoAndPlay((/:WhereAmI * "10") + "10");
}
Symbol 177 MovieClip Frame 15
if (/:movingcard eq "deal") {
if (to_do == "3") {
to_do = "2";
setProperty("/DealerCards/Card01", _visible , "1");
Set("/:DealInfo01", /:TDealInfo01);
gotoAndPlay (20);
} else {
to_do = "0";
setProperty("/DealerCards/Card02", _visible , "1");
Set("_level0/:AllowStand", "1");
Set("_level0/:AllowCard", "1");
call("/:CheckDouble");
call("/:CheckSplit");
call("/:CheckInsurance");
Set("_level0/:AllowMenu", "1");
Set("/:MovingCard", "");
call("/:PlayerBlackjack");
gotoAndStop (1);
}
}
Symbol 177 MovieClip Frame 25
if (/:movingcard eq "deal") {
if (to_do == "4") {
setProperty("_level0/PlayerCard01/Card01", _visible , "1");
to_do = "3";
gotoAndPlay (10);
} else {
setProperty("_level0/PlayerCard01/Card02", _visible , "1");
to_do = "1";
gotoAndPlay (10);
}
call("/:CheckValues");
}
if (/:movingcard eq "card") {
call("callcard");
}
if (/:movingcard eq "double") {
call("calldouble");
}
if (/:movingcard eq "split") {
call("callsplit");
}
Symbol 177 MovieClip Frame 35
if (/:movingcard eq "card") {
call("callcard");
}
if (/:movingcard eq "double") {
call("calldouble");
}
if (/:movingcard eq "split") {
call("callsplit");
}
Symbol 177 MovieClip Frame 45
if (/:movingcard eq "card") {
call("callcard");
}
if (/:movingcard eq "double") {
call("calldouble");
}
if (/:movingcard eq "split") {
call("callsplit");
}
Symbol 177 MovieClip Frame 54
if (/:movingcard eq "card") {
call("callcard");
}
if (/:movingcard eq "double") {
call("calldouble");
}
if (/:movingcard eq "split") {
call("callsplit");
}
Symbol 177 MovieClip Frame 63
if (/:movingcard eq "card") {
call("callcard");
}
if (/:movingcard eq "double") {
call("calldouble");
}
if (/:movingcard eq "split") {
call("callsplit");
}
Symbol 177 MovieClip Frame 70
Set("/:MovingCard", "");
call("/:ReturnTrue");
call("/:NewCard");
Set("/:allowmenu", "1");
gotoAndStop (1);
Symbol 177 MovieClip Frame 80
call("/:NewCard");
call("/:Stand");
Set("/:MovingCard", "");
gotoAndStop (1);
Symbol 177 MovieClip Frame 90
if (to_do == "2") {
call("/:NewCardSplit");
setProperty(("_level0/PlayerCard0" add /:WhereAmI) add "/card02", _visible , "1");
to_do = "1";
call("/:CheckValues");
gotoAndPlay((/:WhereAmI * "10") + "20");
} else {
setProperty(("_level0/PlayerCard0" add (/:WhereAmI + "1")) add "/card02", _visible , "1");
call("/:PointWho");
call("/:CheckDouble");
call("/:CheckSplit");
Set("/:MovingCard", "");
Set("/:allowmenu", "1");
call("/:CheckValues");
if (/:ThisAceSplit == "1") {
call("/:Stand");
call("/:Stand");
}
gotoAndStop (1);
}
Symbol 178 MovieClip Frame 1
stop();
Symbol 178 MovieClip Frame 3
x = "1";
Cardnr = "1";
while (x < "9") {
setProperty("Card0" add x, _visible , "0");
x = x + "1";
}
tellTarget ("Card0" add Cardnr) {
Set("/:Temp", random("52") + "2");
gotoAndStop(/:Temp);
};
Cardnr = Cardnr + "1";
tellTarget ("Card0" add Cardnr) {
gotoAndStop("1");
};
Cardnr = Cardnr + "1";
DealNum = "1";
while ("14" < /:Temp) {
Set("/:Temp", /:temp - "13");
}
Set("/:Temp", /:Temp - "1");
if ("10" < /:Temp) {
Set("/:Temp", "10");
}
if (/:Temp == "1") {
Set("/:TDealInfo01", "11");
} else {
Set("/:TDealInfo01", /:Temp);
}
stop();
Symbol 178 MovieClip Frame 6
Temp = "0";
TempValue = "0";
y = "1";
Ace = "0";
DealNum = DealNum + "1";
tellTarget ("Card0" add DealNum) {
gotoAndStop(random("52") + "2");
};
setProperty("Card0" add DealNum, _visible , "1");
while (DealNum >= y) {
Temp = getProperty("_level0/DealerCards/Card0" add y, _currentframe);
while ("14" < Temp) {
Temp = temp - "13";
}
Temp = Temp - "1";
if ("10" < Temp) {
Temp = "10";
}
if (Temp == "1") {
Ace = Ace + "1";
Temp = "11";
}
TempValue = TempValue + Temp;
while (("21" < TempValue) and ("0" < Ace)) {
Ace = Ace - "1";
TempValue = TempValue - "10";
}
Set("/:DealInfo01", TempValue);
y = y + "1";
}
if ((DealNum == "2") and (TempValue == "21")) {
Set("/:DealInfo02", "BlackJack!");
}
if ("16" < TempValue) {
if ("21" < TempValue) {
Set("/:DealInfo02", "Busted!");
}
stop();
call("/:WhoWon");
} else {
gotoAndPlay (6);
}
Symbol 178 MovieClip Frame 13
gotoAndPlay (6);
Symbol 196 MovieClip Frame 1
Symbol 196 MovieClip Frame 181
if (/:ingame == "1") {
gotoAndPlay (2);
}
Symbol 196 MovieClip Frame 271
gotoAndPlay (2);
Symbol 196 MovieClip Frame 272
stop();
Symbol 196 MovieClip Frame 302
stop();
Symbol 199 Button
on (rollOver) {
if (getProperty("_level0/TheMenu", _currentframe) == "1") {
gotoAndPlay (2);
}
}
Symbol 201 Button
on (release) {
call("/:TAllFalse");
tellTarget ("_level0/Restart") {
gotoAndStop (1);
};
tellTarget ("_level0/Restart") {
gotoAndPlay (2);
}
}
Symbol 202 Button
on (release) {
call("/:TAllFalse");
setProperty("/TheRules", _visible , "1");
tellTarget ("/TheRules") {
gotoAndStop (1);
}
}
Symbol 205 Button
on (release) {
call("/:TAllFalse");
}
Symbol 207 Button
on (rollOver) {
gotoAndStop (1);
}
Symbol 208 Button
on (release) {
call("/:TAllFalse");
if (/:InGame == "1") {
tellTarget ("_level0/Restart") {
gotoAndStop (1);
};
tellTarget ("_level0/Restart") {
gotoAndPlay (2);
};
} else {
Set("/:InGame", "1");
tellTarget ("/TopBanner") {
gotoAndPlay (2);
};
tellTarget ("_level0") {
gotoAndPlay ("MainStart");
};
}
gotoAndStop (1);
}
Symbol 209 Button
on (release) {
call("/:TAllFalse");
setProperty("/TheAbout", _visible , "1");
}
Symbol 210 MovieClip Frame 1
stop();
Symbol 210 MovieClip Frame 8
stop();
Symbol 216 Button
on (release) {
setProperty("/TheAbout", _visible , "0");
call("/:ReturnTrue");
}
Symbol 220 Button
on (release) {
getURL ("mailto:daniel_favot@hotmail.com");
}
Symbol 223 Button
on (release) {
if (_currentframe < "3") {
nextFrame();
}
}
Symbol 224 Button
on (release) {
if ("1" < _currentframe) {
prevFrame();
}
}
Symbol 227 Button
on (release) {
setProperty("/TheRules", _visible , "0");
call("/:ReturnTrue");
}
Symbol 235 MovieClip Frame 1
stop();
Symbol 238 Button
on (release) {
call("/:ReturnTrue");
play();
}
Symbol 239 Button
on (release) {
tellTarget ("/TopBanner") {
gotoAndPlay (2);
};
tellTarget ("_level0") {
gotoAndPlay ("MainStart");
}
}
Symbol 242 MovieClip Frame 1
setProperty("_level0/Restart", _visible , "0");
stop();
Symbol 242 MovieClip Frame 2
setProperty("_level0/Restart", _visible , "1");
stop();
Symbol 260 Button
on (release) {
Set("/:allowdouble", "1");
Set("/:allowsplit", "1");
Set("/:allowinsurance", "1");
}
Symbol 261 Button
on (release) {
tellTarget ("/PlayerCard01/card01") {
gotoAndStop (2);
};
tellTarget ("/PlayerCard01/card02") {
gotoAndStop (2);
};
call("/:checksplit");
call("/:checkdouble");
call("/:checkvalues");
}
Symbol 264 MovieClip Frame 2
t1 = _level0/:Allowbet;
t2 = _level0/:AllowSplit;
t3 = _level0/:AllowCard;
t4 = _level0/:AllowStand;
t5 = _level0/:AllowDouble;
t6 = _level0/:AllowInsurance;
t7 = _level0/:AllowDeal;
t8 = _level0/:AllowMenu;
if (/:Piles >= "5") {
Set("/:AllowSplit", "0");
}
if (/:money < /:currentbet) {
Set("/:allowdouble", "0");
Set("/:allowsplit", "0");
}
if (/:money < (/:currentbet / "2")) {
Set("/:allowinsurance", "0");
}
call("ChangeSettings");
Symbol 264 MovieClip Frame 3
gotoAndPlay (2);
Symbol 264 MovieClip Frame 5
if (_level0/:AllowBet == "1") {
tellTarget ("_level0/Bets") {
gotoAndStop (1);
};
} else {
tellTarget ("_level0/Bets") {
gotoAndStop (2);
};
}
if (_level0/:AllowCard == "1") {
tellTarget ("_level0/Action/Card") {
gotoAndStop (1);
};
} else {
tellTarget ("_level0/Action/Card") {
gotoAndStop (2);
};
}
if (_level0/:AllowSplit == "1") {
tellTarget ("_level0/Action/Split") {
gotoAndStop (1);
};
} else {
tellTarget ("_level0/Action/Split") {
gotoAndStop (2);
};
}
if (_level0/:AllowDouble == "1") {
tellTarget ("_level0/Action/Double") {
gotoAndStop (1);
};
} else {
tellTarget ("_level0/Action/Double") {
gotoAndStop (2);
};
}
if (_level0/:AllowDeal == "1") {
tellTarget ("_level0/Action/Deal") {
gotoAndStop (1);
};
} else {
tellTarget ("_level0/Action/Deal") {
gotoAndStop (2);
};
}
if (_level0/:AllowInsurance == "1") {
tellTarget ("_level0/Action/Insurance") {
gotoAndStop (1);
};
} else {
tellTarget ("_level0/Action/Insurance") {
gotoAndStop (2);
};
}
if (_level0/:AllowStand == "1") {
tellTarget ("_level0/Action/Stand") {
gotoAndStop (1);
};
} else {
tellTarget ("_level0/Action/Stand") {
gotoAndStop (2);
};
}
if (/:AllowMenu == "1") {
setProperty("/TheMenu", _visible , "1");
} else {
setProperty("/TheMenu", _visible , "0");
}