Frame 1
ThisIsATest = "0";
InGame = "0";
ifFrameLoaded (10) {
gotoAndPlay (10);
}
Frame 2
gotoAndPlay (1);
Frame 10
if (/:ThisIsATest == "0") {
loadVariablesNum ("http://www.danielfavot.com/pages/fjackhits.asp", "0");
} else {
loadVariablesNum ("fjackhits.asp", "0");
}
Frame 11
if (_totalframes == _framesloaded) {
gotoAndPlay (15);
}
Frame 12
gotoAndPlay (11);
Frame 34
stop();
Frame 35
setProperty("FlashVersion", _visible , "0");
setProperty("/scoreboard", _visible , "0");
setProperty("_level0/Timer", _visible , "0");
if (ThisIsATest == "0") {
setProperty("/atest", _visible , "0");
}
t1 = PlayerName;
call("StartValues");
if (InGame == "1") {
call("ResetVariables");
}
Frame 36
stop();
Frame 37
prevFrame();
Frame 49
call("Resetvariables");
tellTarget ("/TopBanner") {
gotoAndPlay (2);
}
Frame 57
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 67
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 75
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 84
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 96
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 106
AllowBet = "0";
AllowCard = "0";
AllowDouble = "0";
AllowSplit = "0";
AllowDeal = "0";
AllowInsurance = "0";
AllowStand = "0";
AllowMenu = "0";
Frame 113
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 121
AllowBet = TAllowBet;
AllowCard = TAllowCard;
AllowDouble = TAllowDouble;
AllowSplit = TAllowSplit;
AllowDeal = TAllowDeal;
AllowInsurance = TAllowInsurance;
AllowStand = TAllowStand;
AllowMenu = TAllowMenu;
tellTarget ("/TheMenu") {
gotoAndStop (1);
}
Frame 130
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 138
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 147
tellTarget ("/DealerCards/Card01") {
Set("/:Tcard01", _currentframe - "1");
};
while ("13" < /:Tcard01) {
Set("/:Tcard01", /:Tcard01 - "13");
}
if (/:Tcard01 == "1") {
AllowInsurance = "1";
}
Frame 159
Temp = "1";
while (Temp < "6") {
setProperty("/point0" add Temp, _visible , "0");
Temp = "1" + Temp;
}
setProperty("/point0" add WhereAmI, _visible , "1");
Frame 166
tellTarget (("_level0/PlayerCard0" add /:WhereAmI) add "/card02") {
gotoAndStop(random("52") + "2");
};
tellTarget (("_level0/PlayerCard0" add (/:WhereAmI + "1")) add "/card02") {
gotoAndStop(random("52") + "2");
}
Frame 176
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 184
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 198
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 209
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 221
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 228
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";
}
Frame 240
t1 = /:Money;
setProperty("/scoreboard2", _visible , "0");
stop();
Symbol 27 Button
on (rollOver) {
tellTarget ("/Gul01") {
gotoAndStop (2);
}
}
on (rollOut, release) {
tellTarget ("/Gul01") {
gotoAndPlay (2);
}
}
on (release) {
PlayerName = t2;
if (PlayerName eq "") {
PlayerName = "Anonymous";
}
play();
}
Symbol 29 MovieClip Frame 1
stop();
Symbol 29 MovieClip Frame 16
stop();
Symbol 34 Button
on (release) {
Set("/:movingcard", "card");
tellTarget ("/moving") {
play();
}
}
Symbol 38 MovieClip Frame 1
stop();
Symbol 39 Button
on (release) {
call("/:Stand");
}
Symbol 42 Button
on (release) {
call("_level0:AllFalse");
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 45 Button
on (release) {
Set(("/PileInfo0" add /:whereAmI) add ":t3", "Doubled");
Set("/:AllowDouble", "0");
Set("/:Totalbet", /:TotalBet + /:CurrentBet);
Set("/:Money", /:Money - /:CurrentBet);
Set("/:movingcard", "double");
call("_level0:AllFalse");
tellTarget ("/moving") {
play();
}
}
Symbol 48 Button
on (release) {
Set(("/PileInfo0" add /:whereAmI) add ":t2", "Insured");
Set("/:AllowInsurance", "0");
Set("/:Money", /:Money - (/:CurrentBet / "2"));
Set("/:Totalbet", /:Totalbet + (/:CurrentBet / "2"));
}
Symbol 51 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 56 Button
on (release) {
if ((_level0/:CurrentBet < "50") and (/:money >= (/:currentbet + "10"))) {
Set("_level0/:CurrentBet", _level0/:CurrentBet + "10");
}
}
Symbol 57 Button
on (release) {
if ("10" < _level0/:CurrentBet) {
Set("_level0/:CurrentBet", _level0/:CurrentBet - "10");
}
}
Symbol 61 MovieClip Frame 1
stop();
Symbol 62 Button
on (release) {
if (getProperty("_level0/Timer", _visible) == "1") {
setProperty("_level0/Timer", _visible , "0");
} else {
setProperty("_level0/Timer", _visible , "1");
}
}
Symbol 115 Button
on (release) {
getURL ("mailto:daniel_favot@hotmail.com");
}
Symbol 161 MovieClip Frame 1
stop();
Symbol 165 MovieClip Frame 1
stop();
Symbol 165 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 165 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 165 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 165 MovieClip Frame 35
if (/:movingcard eq "card") {
call("callcard");
}
if (/:movingcard eq "double") {
call("calldouble");
}
if (/:movingcard eq "split") {
call("callsplit");
}
Symbol 165 MovieClip Frame 45
if (/:movingcard eq "card") {
call("callcard");
}
if (/:movingcard eq "double") {
call("calldouble");
}
if (/:movingcard eq "split") {
call("callsplit");
}
Symbol 165 MovieClip Frame 54
if (/:movingcard eq "card") {
call("callcard");
}
if (/:movingcard eq "double") {
call("calldouble");
}
if (/:movingcard eq "split") {
call("callsplit");
}
Symbol 165 MovieClip Frame 63
if (/:movingcard eq "card") {
call("callcard");
}
if (/:movingcard eq "double") {
call("calldouble");
}
if (/:movingcard eq "split") {
call("callsplit");
}
Symbol 165 MovieClip Frame 70
Set("/:MovingCard", "");
call("/:ReturnTrue");
call("/:NewCard");
Set("/:allowmenu", "1");
gotoAndStop (1);
Symbol 165 MovieClip Frame 80
call("/:NewCard");
call("/:Stand");
Set("/:MovingCard", "");
gotoAndStop (1);
Symbol 165 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");
call("/:CheckInsurance");
Set("/:MovingCard", "");
Set("/:allowmenu", "1");
Set("/:allowcard", "1");
Set("/:allowstand", "1");
call("/:CheckValues");
if (/:ThisAceSplit == "1") {
call("/:Stand");
call("/:Stand");
}
gotoAndStop (1);
}
Symbol 166 MovieClip Frame 1
stop();
Symbol 166 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 166 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 166 MovieClip Frame 13
gotoAndPlay (6);
Symbol 185 MovieClip Frame 1
Symbol 185 MovieClip Frame 181
if (/:ingame == "1") {
gotoAndPlay (2);
}
Symbol 185 MovieClip Frame 182
t1 = ("This game has been played " add /:numvisit) add " times";
Symbol 185 MovieClip Frame 349
gotoAndPlay (2);
Symbol 185 MovieClip Frame 350
stop();
Symbol 185 MovieClip Frame 380
stop();
Symbol 188 Button
on (rollOver) {
if (getProperty("_level0/TheMenu", _currentframe) == "1") {
gotoAndPlay (2);
}
}
Symbol 193 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 194 Button
on (release) {
call("/:TAllFalse");
setProperty("/TheRules", _visible , "1");
tellTarget ("/TheRules") {
gotoAndStop (1);
}
}
Symbol 197 Button
on (release) {
call("/:TAllFalse");
setProperty("/TheAbout", _visible , "1");
}
Symbol 199 Button
on (rollOver) {
gotoAndStop (1);
}
Symbol 200 Button
on (release) {
call("/:TAllFalse");
setProperty("/scoreboard", _visible , "1");
tellTarget ("/scoreboard") {
gotoAndPlay (2);
}
}
Symbol 201 Button
on (release) {
if (/:ingame == "1") {
call("/:TAllFalse");
money = /:money;
name = /:t1;
if (/:ThisIsATest == "0") {
loadVariablesNum ("http://www.danielfavot.com/pages/fjackscoresend.asp", "0");
} else {
loadVariablesNum ("fjackscoresend.asp", "0", "POST");
}
tellTarget ("/") {
gotoAndStop ("TheEnd");
};
}
}
Symbol 202 MovieClip Frame 1
stop();
Symbol 202 MovieClip Frame 8
stop();
Symbol 204 Button
on (rollOver) {
tellTarget ("gul01") {
gotoAndStop (2);
}
}
on (rollOut) {
tellTarget ("gul01") {
gotoAndPlay (2);
}
}
on (release) {
setProperty("/scoreboard", _visible , "0");
setProperty("/scoreboard2", _visible , "0");
call("/:ReturnTrue");
}
Symbol 232 MovieClip Frame 1
stop();
Symbol 232 MovieClip Frame 2
if (/:ThisIsATest == "0") {
loadVariablesNum ("http://www.danielfavot.com/pages/fjackscoreload.asp", "1");
} else {
loadVariablesNum ("fjackscoreload.asp", "1");
}
Symbol 232 MovieClip Frame 3
x = "1";
while ("25" >= x) {
if (x < "10") {
Set("play0" add x, eval ("_level1:play0" add x));
} else {
Set("play" add x, eval ("_level1:play" add x));
}
x = x + "1";
}
Symbol 232 MovieClip Frame 6
gotoAndPlay (3);
Symbol 236 Button
on (release) {
getURL ("mailto:daniel_favot@hotmail.com");
}
Symbol 239 Button
on (release) {
getURL ("http://www.danielfavot.com", "_blank");
}
Symbol 240 Button
on (release) {
setProperty("/TheAbout", _visible , "0");
call("/:ReturnTrue");
}
on (rollOver) {
tellTarget ("gul01") {
gotoAndStop (2);
}
}
on (rollOut) {
tellTarget ("gul01") {
gotoAndPlay (2);
}
}
Symbol 244 Button
on (rollOver) {
tellTarget ("gul01") {
gotoAndStop (2);
}
}
on (rollOut) {
tellTarget ("gul01") {
gotoAndPlay (2);
}
}
on (release) {
setProperty("/TheRules", _visible , "0");
call("/:ReturnTrue");
}
Symbol 245 Button
on (rollOver) {
tellTarget ("gul02") {
gotoAndStop (2);
}
}
on (rollOut) {
tellTarget ("gul02") {
gotoAndPlay (2);
}
}
on (release) {
if ("1" < _currentframe) {
prevFrame();
}
}
Symbol 246 Button
on (rollOver) {
tellTarget ("gul03") {
gotoAndStop (2);
}
}
on (rollOut) {
tellTarget ("gul03") {
gotoAndPlay (2);
}
}
on (release) {
if (_currentframe < "3") {
nextFrame();
}
}
Symbol 254 MovieClip Frame 1
stop();
Symbol 257 Button
on (release) {
call("/:ReturnTrue");
play();
}
Symbol 258 Button
on (release) {
tellTarget ("/TopBanner") {
gotoAndPlay (2);
};
tellTarget ("_level0") {
gotoAndPlay ("MainStart");
}
}
Symbol 261 MovieClip Frame 1
setProperty("_level0/Restart", _visible , "0");
stop();
Symbol 261 MovieClip Frame 2
setProperty("_level0/Restart", _visible , "1");
stop();
Symbol 279 Button
on (release) {
Set("/:allowdouble", "1");
Set("/:allowsplit", "1");
Set("/:allowinsurance", "1");
}
Symbol 280 Button
on (release) {
tellTarget ("/PlayerCard01/card01") {
gotoAndStop (2);
};
tellTarget ("/PlayerCard01/card02") {
gotoAndStop (2);
};
call("/:checksplit");
call("/:checkdouble");
call("/:checkvalues");
}
Symbol 283 Button
on (release) {
tellTarget ("/PlayerCard01/card01") {
gotoAndStop (11);
};
tellTarget ("/PlayerCard01/card02") {
gotoAndStop (11);
};
tellTarget ("/PlayerCard01/card03") {
gotoAndStop (2);
};
tellTarget ("/DealerCards/card01") {
gotoAndStop (2);
};
setProperty("/playercard01/Card03", _visible , "1");
call("/:checksplit");
call("/:checkdouble");
call("/:checkvalues");
}
Symbol 285 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 285 MovieClip Frame 3
gotoAndPlay (2);
Symbol 285 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");
}
Symbol 289 Button
on (release) {
getURL ("http://www.macromedia.com/shockwave/download/", "_blank");
}
Symbol 291 Button
on (release) {
tellTarget ("/scoreboard2") {
gotoAndPlay (2);
};
setProperty("/scoreboard2", _visible , "1");
}
on (rollOver) {
tellTarget ("gul01") {
gotoAndStop (2);
}
}
on (rollOut) {
tellTarget ("gul01") {
gotoAndPlay (2);
}
}
Symbol 292 Button
on (release) {
Set("/:ingame", "0");
gotoAndStop (34);
}
on (rollOver) {
tellTarget ("/gul02") {
gotoAndStop (2);
}
}
on (rollOut) {
tellTarget ("/gul02") {
gotoAndPlay (2);
}
}