Frame 1
ThisIsATest = 0;
InGame = 0;
introMV.gotoAndStop(2);
stop();
Frame 2
gotoAndPlay (1);
Frame 11
if (_totalframes == _framesloaded) {
gotoAndPlay (15);
}
Frame 12
gotoAndPlay (11);
Frame 34
stop();
Instance of Symbol 43 MovieClip in Frame 34
on (release) {
_parent.PlayerName = _parent.t2;
if (_parent.PlayerName eq "") {
_parent.PlayerName = "Anonymous";
}
_parent.play();
}
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Frame 35
function checkBonus(money) {
oldPicture = myPicture;
myPicture = giveMe(money);
if (myPicture > oldPicture) {
myInt = setInterval(playPic, 1500);
}
call("checkmoney");
}
function playPic() {
clearInterval(myInt);
_root.pictureMV.gotoAndStop(myPicture);
}
function giveMe(money) {
var _local1 = money;
myPic = 1;
if ((_local1 >= 300) and (_local1 < 400)) {
myPic = 2;
}
if ((_local1 >= 400) and (_local1 < 500)) {
myPic = 3;
}
if ((_local1 >= 500) and (_local1 < 600)) {
myPic = 4;
}
if ((_local1 >= 600) and (_local1 < 700)) {
myPic = 5;
}
if ((_local1 >= 700) and (_local1 < 800)) {
myPic = 6;
}
if ((_local1 >= 800) and (_local1 < 900)) {
myPic = 7;
}
if ((_local1 >= 900) and (_local1 < 1000)) {
myPic = 8;
}
if ((_local1 >= 1000) and (_local1 < 1500)) {
myPicture = 9;
}
if ((_local1 >= 1500) and (_local1 < 2000)) {
myPic = 10;
}
if ((_local1 >= 2000) and (_local1 < 2500)) {
myPic = 11;
}
if (_local1 >= 2500) {
myPic = 12;
}
return(myPic);
}
var myPicture = 1;
var myInt;
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");
}
bonusMV.gotoAndStop(1);
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 (eval (("/PileInfo0" add /:WhereAmI) add ":Cval") > 21) {
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 (Temp > 14) {
Temp = temp - 13;
}
Temp = Temp - 1;
if (Temp > 10) {
Temp = 10;
}
if (Temp == 1) {
Ace = Ace + 1;
Temp = 11;
}
TempValue = TempValue + Temp;
while ((TempValue > 21) && (Ace > 0)) {
TempValue = TempValue - 10;
Ace = Ace - 1;
}
y = y + 1;
}
Set(("_level0/Pileinfo0" add x) add "/:Cval", TempValue);
if (TempValue > 21) {
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 (/:Tcard01 > 13) {
Set("/:TCard01", /:Tcard01 - 13);
}
while (/:Tcard02 > 13) {
Set("/:TCard02", /:Tcard02 - 13);
}
if (/:TCard01 > 10) {
Set("/:TCard01", 10);
}
if (/:TCard02 > 10) {
Set("/:TCard02", 10);
}
if ((/:TCard01 == /:TCard02) && (getProperty(("/PlayerCard0" add /:WhereAmI) add "/Card03", _visible) == 0)) {
AllowSplit = 1;
} else {
AllowSplit = 0;
}
Frame 138
if (((eval (("/Pileinfo0" add /:WhereAmI) add "/:t1") >= 9) && (eval (("/Pileinfo0" add WhereAmI) add "/:t1") <= 11)) && (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 (/:Tcard01 > 13) {
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 (Piles > 1) {
call("/:multicard");
} else if (Busted > 0) {
TheOneWhoWon = "Busted!";
} else if (/:Dealinfo01 < 22) {
if ((PileInfo01:t1 < DealInfo01) || (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;
checkBonus(/:Money);
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) || (/:Temp01 == 15)) || (/:Temp01 == 28)) || (/:Temp01 == 41)) {
Set("/:Temp01", "ace");
}
if ((((/:Temp02 == 2) || (/:Temp02 == 15)) || (/:Temp02 == 28)) || (/:Temp02 == 41)) {
Set("/:Temp02", "ace");
}
if ((/:Temp02 eq "ace") && (/: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 ((eval (("/pileinfo0" add temp) add "/:Cval") > 21) || ((eval (("/pileinfo0" add temp) add "/:Cval") < DealInfo01) && (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")) || (Dealinfo01 > 21)) {
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) && (/: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 4 MovieClip Frame 20
function playMovie() {
clearInterval(myInt);
nextFrame();
gotoAndPlay;
}
var myInt;
myInt = setInterval(playMovie, 2500);
stop();
Symbol 4 MovieClip Frame 21
play();
Symbol 4 MovieClip Frame 30
_parent.gotoAndStop(3);
stop();
Symbol 7 MovieClip Frame 24
stop();
Symbol 11 MovieClip Frame 30
function playMovie() {
clearInterval(myInt);
nextFrame();
gotoAndPlay;
}
var myInt;
myInt = setInterval(playMovie, 2500);
stop();
Symbol 11 MovieClip Frame 31
play();
Symbol 11 MovieClip Frame 40
_root.gotoAndPlay(10);
stop();
Symbol 12 MovieClip Frame 1
stop();
Symbol 12 MovieClip Frame 2
stop();
Symbol 12 MovieClip Frame 3
stop();
Symbol 18 MovieClip Frame 1
stop();
Symbol 43 MovieClip Frame 1
stop();
Symbol 43 MovieClip Frame 2
stop();
Symbol 45 MovieClip Frame 21
function playMovie() {
clearInterval(myInt);
nextFrame();
gotoAndPlay;
}
var myInt;
myInt = setInterval(playMovie, 2500);
stop();
Symbol 45 MovieClip Frame 22
stop();
Symbol 45 MovieClip Frame 40
stop();
Symbol 49 MovieClip Frame 21
function playMovie() {
clearInterval(myInt);
nextFrame();
gotoAndPlay;
}
var myInt;
myInt = setInterval(playMovie, 2500);
stop();
Symbol 49 MovieClip Frame 22
stop();
Symbol 49 MovieClip Frame 40
stop();
Symbol 53 MovieClip Frame 21
function playMovie() {
clearInterval(myInt);
nextFrame();
gotoAndPlay;
}
var myInt;
myInt = setInterval(playMovie, 2500);
stop();
Symbol 53 MovieClip Frame 22
stop();
Symbol 53 MovieClip Frame 40
stop();
Symbol 57 MovieClip Frame 21
function playMovie() {
clearInterval(myInt);
nextFrame();
gotoAndPlay;
}
var myInt;
myInt = setInterval(playMovie, 2500);
stop();
Symbol 57 MovieClip Frame 22
stop();
Symbol 57 MovieClip Frame 40
stop();
Symbol 61 MovieClip Frame 21
function playMovie() {
clearInterval(myInt);
nextFrame();
gotoAndPlay;
}
var myInt;
myInt = setInterval(playMovie, 2500);
stop();
Symbol 61 MovieClip Frame 22
stop();
Symbol 61 MovieClip Frame 40
stop();
Symbol 65 MovieClip Frame 21
function playMovie() {
clearInterval(myInt);
nextFrame();
gotoAndPlay;
}
var myInt;
myInt = setInterval(playMovie, 2500);
stop();
Symbol 65 MovieClip Frame 22
stop();
Symbol 65 MovieClip Frame 40
stop();
Symbol 69 MovieClip Frame 21
function playMovie() {
clearInterval(myInt);
nextFrame();
gotoAndPlay;
}
var myInt;
myInt = setInterval(playMovie, 2500);
stop();
Symbol 69 MovieClip Frame 22
stop();
Symbol 69 MovieClip Frame 40
stop();
Symbol 73 MovieClip Frame 21
function playMovie() {
clearInterval(myInt);
nextFrame();
gotoAndPlay;
}
var myInt;
myInt = setInterval(playMovie, 2500);
stop();
Symbol 73 MovieClip Frame 22
stop();
Symbol 73 MovieClip Frame 40
stop();
Symbol 77 MovieClip Frame 21
function playMovie() {
clearInterval(myInt);
nextFrame();
gotoAndPlay;
}
var myInt;
myInt = setInterval(playMovie, 2500);
stop();
Symbol 77 MovieClip Frame 22
stop();
Symbol 77 MovieClip Frame 40
stop();
Symbol 81 MovieClip Frame 21
function playMovie() {
clearInterval(myInt);
nextFrame();
gotoAndPlay;
}
var myInt;
myInt = setInterval(playMovie, 2500);
stop();
Symbol 81 MovieClip Frame 22
stop();
Symbol 81 MovieClip Frame 40
stop();
Symbol 85 MovieClip Frame 21
function playMovie() {
clearInterval(myInt);
nextFrame();
gotoAndPlay;
}
var myInt;
myInt = setInterval(playMovie, 2500);
stop();
Symbol 85 MovieClip Frame 22
stop();
Symbol 85 MovieClip Frame 40
stop();
Symbol 89 MovieClip Frame 21
function playMovie() {
clearInterval(myInt);
nextFrame();
gotoAndPlay;
}
var myInt;
myInt = setInterval(playMovie, 2500);
stop();
Symbol 89 MovieClip Frame 22
stop();
Symbol 89 MovieClip Frame 40
_root.gotoAndStop("theEnd");
stop();
Symbol 90 MovieClip Frame 1
stop();
Symbol 90 MovieClip Frame 2
stop();
Symbol 90 MovieClip Frame 3
stop();
Symbol 90 MovieClip Frame 4
stop();
Symbol 90 MovieClip Frame 5
stop();
Symbol 90 MovieClip Frame 6
stop();
Symbol 90 MovieClip Frame 7
stop();
Symbol 90 MovieClip Frame 8
stop();
Symbol 90 MovieClip Frame 9
stop();
Symbol 90 MovieClip Frame 10
stop();
Symbol 90 MovieClip Frame 11
stop();
Symbol 90 MovieClip Frame 12
stop();
Symbol 102 Button
on (release) {
Set("/:movingcard", "card");
tellTarget ("/moving") {
play();
};
}
Symbol 112 MovieClip Frame 1
stop();
Symbol 113 Button
on (release) {
call("/:Stand");
}
Symbol 119 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 125 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 132 Button
on (release) {
Set(("/PileInfo0" add /:whereAmI) add ":t2", "Insured");
Set("/:AllowInsurance", 0);
Set("/:Money", /:Money - (/:CurrentBet / 2));
Set("/:Totalbet", /:Totalbet + (/:CurrentBet / 2));
}
Symbol 137 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 144 Button
on (release) {
if ((_level0/:CurrentBet < 50) && (/:money >= (/:currentbet + 10))) {
Set("_level0/:CurrentBet", _level0/:CurrentBet + 10);
}
}
Symbol 145 Button
on (release) {
if (_level0/:CurrentBet > 10) {
Set("_level0/:CurrentBet", _level0/:CurrentBet - 10);
}
}
Symbol 152 MovieClip Frame 1
stop();
Symbol 153 Button
on (release) {
if (getProperty("_level0/Timer", _visible) == 1) {
setProperty("_level0/Timer", _visible , 0);
} else {
setProperty("_level0/Timer", _visible , 1);
}
}
Symbol 302 MovieClip Frame 1
stop();
Symbol 306 MovieClip Frame 1
stop();
Symbol 306 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 306 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 306 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 306 MovieClip Frame 35
if (/:movingcard eq "card") {
call("callcard");
}
if (/:movingcard eq "double") {
call("calldouble");
}
if (/:movingcard eq "split") {
call("callsplit");
}
Symbol 306 MovieClip Frame 45
if (/:movingcard eq "card") {
call("callcard");
}
if (/:movingcard eq "double") {
call("calldouble");
}
if (/:movingcard eq "split") {
call("callsplit");
}
Symbol 306 MovieClip Frame 54
if (/:movingcard eq "card") {
call("callcard");
}
if (/:movingcard eq "double") {
call("calldouble");
}
if (/:movingcard eq "split") {
call("callsplit");
}
Symbol 306 MovieClip Frame 63
if (/:movingcard eq "card") {
call("callcard");
}
if (/:movingcard eq "double") {
call("calldouble");
}
if (/:movingcard eq "split") {
call("callsplit");
}
Symbol 306 MovieClip Frame 70
Set("/:MovingCard", "");
call("/:ReturnTrue");
call("/:NewCard");
Set("/:allowmenu", 1);
gotoAndStop (1);
Symbol 306 MovieClip Frame 80
call("/:NewCard");
call("/:Stand");
Set("/:MovingCard", "");
gotoAndStop (1);
Symbol 306 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 307 MovieClip Frame 1
stop();
Symbol 307 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 (/:Temp > 14) {
Set("/:Temp", /:temp - 13);
}
Set("/:Temp", /:Temp - 1);
if (/:Temp > 10) {
Set("/:Temp", 10);
}
if (/:Temp == 1) {
Set("/:TDealInfo01", 11);
} else {
Set("/:TDealInfo01", /:Temp);
}
stop();
Symbol 307 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 (Temp > 14) {
Temp = temp - 13;
}
Temp = Temp - 1;
if (Temp > 10) {
Temp = 10;
}
if (Temp == 1) {
Ace = Ace + 1;
Temp = 11;
}
TempValue = TempValue + Temp;
while ((TempValue > 21) && (Ace > 0)) {
Ace = Ace - 1;
TempValue = TempValue - 10;
}
Set("/:DealInfo01", TempValue);
y = y + 1;
}
if ((DealNum == 2) && (TempValue == 21)) {
Set("/:DealInfo02", "BlackJack!");
}
if (TempValue > 16) {
if (TempValue > 21) {
Set("/:DealInfo02", "Busted!");
}
stop();
call("/:WhoWon");
} else {
gotoAndPlay (6);
}
Symbol 307 MovieClip Frame 13
gotoAndPlay (6);
Symbol 341 MovieClip Frame 92
if (/:ingame == 1) {
gotoAndPlay (2);
}
Symbol 341 MovieClip Frame 93
t1 = ("This game has been played " add /:numvisit) add " times";
Symbol 341 MovieClip Frame 260
gotoAndPlay (2);
Symbol 341 MovieClip Frame 261
stop();
Symbol 341 MovieClip Frame 291
stop();
Symbol 343 Button
on (rollOver) {
if (getProperty("_level0/TheMenu", _currentframe) == 1) {
gotoAndPlay (2);
}
}
Symbol 354 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 355 Button
on (release) {
call("/:TAllFalse");
setProperty("/TheRules", _visible , 1);
tellTarget ("/TheRules") {
gotoAndStop (1);
};
}
Symbol 358 Button
on (release) {
call("/:TAllFalse");
setProperty("/TheAbout", _visible , 1);
}
Symbol 362 Button
on (rollOver) {
gotoAndStop (1);
}
Symbol 363 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 364 MovieClip Frame 1
stop();
Symbol 364 MovieClip Frame 8
stop();
Symbol 366 Button
on (release) {
setProperty("/TheAbout", _visible , 0);
call("/:ReturnTrue");
}
on (rollOver) {
tellTarget ("gul01") {
gotoAndStop (2);
};
}
on (rollOut) {
tellTarget ("gul01") {
gotoAndPlay (2);
};
}
Symbol 368 MovieClip Frame 1
stop();
Symbol 368 MovieClip Frame 16
stop();
Symbol 372 Button
on (rollOver) {
tellTarget ("gul01") {
gotoAndStop (2);
};
}
on (rollOut) {
tellTarget ("gul01") {
gotoAndPlay (2);
};
}
on (release) {
setProperty("/TheRules", _visible , 0);
call("/:ReturnTrue");
}
Symbol 373 Button
on (rollOver) {
tellTarget ("gul02") {
gotoAndStop (2);
};
}
on (rollOut) {
tellTarget ("gul02") {
gotoAndPlay (2);
};
}
on (release) {
if (_currentframe > 1) {
prevFrame();
}
}
Symbol 374 Button
on (rollOver) {
tellTarget ("gul03") {
gotoAndStop (2);
};
}
on (rollOut) {
tellTarget ("gul03") {
gotoAndPlay (2);
};
}
on (release) {
if (_currentframe < 3) {
nextFrame();
}
}
Symbol 396 MovieClip Frame 1
stop();
Symbol 410 Button
on (release) {
call("/:ReturnTrue");
play();
}
Symbol 411 Button
on (release) {
tellTarget ("/TopBanner") {
gotoAndPlay (2);
};
tellTarget ("_level0") {
gotoAndPlay ("MainStart");
};
}
Symbol 419 MovieClip Frame 1
setProperty("_level0/Restart", _visible , 0);
stop();
Symbol 419 MovieClip Frame 2
setProperty("_level0/Restart", _visible , 1);
stop();
Symbol 437 Button
on (release) {
Set("/:allowdouble", 1);
Set("/:allowsplit", 1);
Set("/:allowinsurance", 1);
}
Symbol 438 Button
on (release) {
tellTarget ("/PlayerCard01/card01") {
gotoAndStop (2);
};
tellTarget ("/PlayerCard01/card02") {
gotoAndStop (2);
};
call("/:checksplit");
call("/:checkdouble");
call("/:checkvalues");
}
Symbol 441 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 443 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 443 MovieClip Frame 3
gotoAndPlay (2);
Symbol 443 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 444 MovieClip Frame 21
function playMovie() {
clearInterval(myInt);
nextFrame();
gotoAndPlay;
}
var myInt;
myInt = setInterval(playMovie, 2500);
stop();
Symbol 444 MovieClip Frame 22
play();
Symbol 444 MovieClip Frame 40
_root.bonusMV.gotoAndStop(_root.myPicture);
_parent.gotoAndStop(1);
stop();
Symbol 445 MovieClip Frame 21
function playMovie() {
clearInterval(myInt);
nextFrame();
gotoAndPlay;
}
var myInt;
myInt = setInterval(playMovie, 2500);
stop();
Symbol 445 MovieClip Frame 22
play();
Symbol 445 MovieClip Frame 40
_root.bonusMV.gotoAndStop(_root.myPicture);
_parent.gotoAndStop(1);
stop();
Symbol 446 MovieClip Frame 21
function playMovie() {
clearInterval(myInt);
nextFrame();
gotoAndPlay;
}
var myInt;
myInt = setInterval(playMovie, 2500);
stop();
Symbol 446 MovieClip Frame 22
play();
Symbol 446 MovieClip Frame 40
_root.bonusMV.gotoAndStop(_root.myPicture);
_parent.gotoAndStop(1);
stop();
Symbol 447 MovieClip Frame 21
function playMovie() {
clearInterval(myInt);
nextFrame();
gotoAndPlay;
}
var myInt;
myInt = setInterval(playMovie, 2500);
stop();
Symbol 447 MovieClip Frame 22
play();
Symbol 447 MovieClip Frame 40
_root.bonusMV.gotoAndStop(_root.myPicture);
_parent.gotoAndStop(1);
stop();
Symbol 448 MovieClip Frame 21
function playMovie() {
clearInterval(myInt);
nextFrame();
gotoAndPlay;
}
var myInt;
myInt = setInterval(playMovie, 2500);
stop();
Symbol 448 MovieClip Frame 22
play();
Symbol 448 MovieClip Frame 40
_root.bonusMV.gotoAndStop(_root.myPicture);
_parent.gotoAndStop(1);
stop();
Symbol 449 MovieClip Frame 21
function playMovie() {
clearInterval(myInt);
nextFrame();
gotoAndPlay;
}
var myInt;
myInt = setInterval(playMovie, 2500);
stop();
Symbol 449 MovieClip Frame 22
play();
Symbol 449 MovieClip Frame 40
_root.bonusMV.gotoAndStop(_root.myPicture);
_parent.gotoAndStop(1);
stop();
Symbol 450 MovieClip Frame 21
function playMovie() {
clearInterval(myInt);
nextFrame();
gotoAndPlay;
}
var myInt;
myInt = setInterval(playMovie, 2500);
stop();
Symbol 450 MovieClip Frame 22
play();
Symbol 450 MovieClip Frame 40
_root.bonusMV.gotoAndStop(_root.myPicture);
_parent.gotoAndStop(1);
stop();
Symbol 451 MovieClip Frame 21
function playMovie() {
clearInterval(myInt);
nextFrame();
gotoAndPlay;
}
var myInt;
myInt = setInterval(playMovie, 2500);
stop();
Symbol 451 MovieClip Frame 22
play();
Symbol 451 MovieClip Frame 40
_root.bonusMV.gotoAndStop(_root.myPicture);
_parent.gotoAndStop(1);
stop();
Symbol 452 MovieClip Frame 21
function playMovie() {
clearInterval(myInt);
nextFrame();
gotoAndPlay;
}
var myInt;
myInt = setInterval(playMovie, 2500);
stop();
Symbol 452 MovieClip Frame 22
play();
Symbol 452 MovieClip Frame 40
_root.bonusMV.gotoAndStop(_root.myPicture);
_parent.gotoAndStop(1);
stop();
Symbol 453 MovieClip Frame 21
function playMovie() {
clearInterval(myInt);
nextFrame();
gotoAndPlay;
}
var myInt;
myInt = setInterval(playMovie, 2500);
stop();
Symbol 453 MovieClip Frame 22
play();
Symbol 453 MovieClip Frame 40
_root.bonusMV.gotoAndStop(_root.myPicture);
_parent.gotoAndStop(1);
stop();
Symbol 454 MovieClip Frame 21
function playMovie() {
clearInterval(myInt);
nextFrame();
gotoAndPlay;
}
var myInt;
myInt = setInterval(playMovie, 2500);
stop();
Symbol 454 MovieClip Frame 22
play();
Symbol 454 MovieClip Frame 40
_root.bonusMV.gotoAndStop(_root.myPicture);
_parent.gotoAndStop(1);
stop();
Symbol 455 MovieClip Frame 1
stop();
Symbol 455 MovieClip Frame 2
stop();
Symbol 455 MovieClip Frame 3
stop();
Symbol 455 MovieClip Frame 4
stop();
Symbol 455 MovieClip Frame 5
stop();
Symbol 455 MovieClip Frame 6
stop();
Symbol 455 MovieClip Frame 7
stop();
Symbol 455 MovieClip Frame 8
stop();
Symbol 455 MovieClip Frame 9
stop();
Symbol 455 MovieClip Frame 10
stop();
Symbol 455 MovieClip Frame 11
stop();
Symbol 455 MovieClip Frame 12
stop();
Symbol 457 Button
on (release) {
Set("/:ingame", 0);
gotoAndStop (34);
}
on (rollOver) {
tellTarget ("/gul02") {
gotoAndStop (2);
};
}
on (rollOut) {
tellTarget ("/gul02") {
gotoAndPlay (2);
};
}