Combined Code
frame 1 {
ifFrameLoaded (3) {
gotoAndPlay(3);
}
}
frame 2 {
gotoAndPlay(1);
}
frame 3 {
ifFrameLoaded (17) {
tellTarget ('teacup') {
gotoAndStop(2);
}
}
}
button 5 {
on (press) {
tellTarget ('/') {
gotoAndPlay('geek');
}
}
}
movieClip 6 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
frame 14 {
ifFrameLoaded (17) {
tellTarget ('teacup') {
gotoAndStop(2);
}
}
}
frame 15 {
gotoAndPlay(_currentframe - '1');
}
frame 16 {
gotoAndPlay(17);
}
frame 17 {
Credits = '2000';
Total = '2000';
acheck = '1';
jackpot = '1';
creditsPlayed = '0';
tOff = '0';
creditsPlayedm = '0';
hsdplay = '0';
betMover = '1';
chipRow = '1';
rf = '0';
dealplay = '1';
pj1 = random('10');
pj2 = random('10');
pj3 = random('10');
pj4 = random('10');
pj5 = random('10');
pj6 = random('10');
pj7 = '2';
tellTarget ('/b-stand') {
gotoAndStop(2);
}
tellTarget ('/b-hit') {
gotoAndStop(2);
}
tellTarget ('/b-deal') {
gotoAndStop(2);
}
stop();
}
movieClip 26 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
button 27 {
on (release) {
if (tOff == '0') {
if (dealplay == '1') {
if (creditsPlayed != '0') {
tellTarget ('/setcards') {
gotoAndPlay(2);
}
betMover = '0';
dealplay = '0';
jackpot = '0';
tellTarget ('/b-deal') {
gotoAndStop(2);
}
}
}
}
}
}
button 28 {
on (release) {
if (tOff == '0') {
if (hsdplay == '1') {
Credits -= creditsPlayed * '2';
creditsBet = creditsPlayed * '2';
creditsPlayed += creditsPlayed * '2';
hsdplay = '0';
rf = '1';
tellTarget ('/setcards') {
play();
}
tellTarget ('/b-stand') {
gotoAndStop(2);
}
tellTarget ('/b-hit') {
gotoAndStop(2);
}
tellTarget ('/b-deal') {
gotoAndStop(2);
}
duplicateMovieClip('/cr1', 'bn1', 16384);
duplicateMovieClip('/cr2', 'bn2', 16384);
duplicateMovieClip('/cr3', 'bn3', 16384);
duplicateMovieClip('/cr4', 'bn4', 16384);
duplicateMovieClip('/cr5', 'bn5', 16384);
i = '1';
while (i < '6') {
eval('bn' add i)._x = (eval('bn' add i))._x - '25';
eval('bn' add i)._y = (eval('bn' add i))._y - '72';
i += '1';
}
i = '1';
while (i < '6') {
if (i == '1') {
a1 = _level0/cr1/:numChip + '1';
tellTarget ('bn1') {
gotoAndStop(_level0/:a1);
}
}
if (i == '2') {
a2 = _level0/cr2/:numChip + '1';
tellTarget ('bn2') {
gotoAndStop(_level0/:a2);
}
}
if (i == '3') {
a3 = _level0/cr3/:numChip + '1';
tellTarget ('bn3') {
gotoAndStop(_level0/:a3);
}
}
if (i == '4') {
a4 = _level0/cr4/:numChip + '1';
tellTarget ('bn4') {
gotoAndStop(_level0/:a4);
}
}
if (i == '5') {
a5 = _level0/cr5/:numChip + '1';
tellTarget ('bn5') {
gotoAndStop(_level0/:a5);
}
}
i += '1';
}
duplicateMovieClip('/cr1', 'bn6', 16384);
duplicateMovieClip('/cr2', 'bn7', 16384);
duplicateMovieClip('/cr3', 'bn8', 16384);
duplicateMovieClip('/cr4', 'bn9', 16384);
duplicateMovieClip('/cr5', 'bn10', 16384);
i = '6';
while (i < '11') {
eval('bn' add i)._x = (eval('bn' add i))._x + '25';
eval('bn' add i)._y = (eval('bn' add i))._y - '72';
i += '1';
}
i = '1';
while (i < '6') {
if (i == '1') {
a1 = _level0/cr1/:numChip + '1';
tellTarget ('bn6') {
gotoAndStop(_level0/:a1);
}
}
if (i == '2') {
a2 = _level0/cr2/:numChip + '1';
tellTarget ('bn7') {
gotoAndStop(_level0/:a2);
}
}
if (i == '3') {
a3 = _level0/cr3/:numChip + '1';
tellTarget ('bn8') {
gotoAndStop(_level0/:a3);
}
}
if (i == '4') {
a4 = _level0/cr4/:numChip + '1';
tellTarget ('bn9') {
gotoAndStop(_level0/:a4);
}
}
if (i == '5') {
a5 = _level0/cr5/:numChip + '1';
tellTarget ('bn10') {
gotoAndStop(_level0/:a5);
}
}
i += '1';
}
}
}
}
}
button 29 {
on (release) {
if (tOff == '0') {
if (hsdplay == '1') {
hsdplay = '0';
rf = '2';
tellTarget ('/setcards') {
play();
}
tellTarget ('/b-stand') {
gotoAndStop(2);
}
tellTarget ('/b-hit') {
gotoAndStop(2);
}
tellTarget ('/b-deal') {
gotoAndStop(2);
}
}
}
}
}
button 30 {
on (release) {
if (tOff == '0') {
tOff = '1';
tellTarget ('/about') {
gotoAndStop(2);
}
}
}
}
button 31 {
on (release) {
if (tOff == '0') {
tOff = '1';
tellTarget ('/help') {
gotoAndStop(2);
}
}
}
}
movieClip 47 {
frame 1 {
stop();
}
frame 2 {
numChip = '1';
stop();
}
frame 6 {
numChip = '5';
stop();
}
frame 11 {
numChip = '10';
stop();
}
frame 26 {
numChip = '25';
stop();
}
frame 51 {
numChip = '50';
stop();
}
frame 101 {
numChip = '100';
stop();
}
}
movieClip 84 {
frame 1 {
stop();
}
frame 2 {
meCard = '2';
tmpCard = '1';
tmpSuit = '1';
call('checkcard');
}
frame 3 {
meCard = '3';
tmpCard = '2';
tmpSuit = '1';
call('checkcard');
}
frame 4 {
meCard = '4';
tmpCard = '3';
tmpSuit = '1';
call('checkcard');
}
frame 5 {
meCard = '5';
tmpCard = '4';
tmpSuit = '1';
call('checkcard');
}
frame 6 {
meCard = '6';
tmpCard = '5';
tmpSuit = '1';
call('checkcard');
}
frame 7 {
meCard = '7';
tmpCard = '6';
tmpSuit = '1';
call('checkcard');
}
frame 8 {
meCard = '8';
tmpCard = '7';
tmpSuit = '1';
call('checkcard');
}
frame 9 {
meCard = '9';
tmpCard = '8';
tmpSuit = '1';
call('checkcard');
}
frame 10 {
meCard = '10';
tmpCard = '9';
tmpSuit = '1';
call('checkcard');
}
frame 11 {
meCard = '11';
tmpCard = '10';
tmpSuit = '1';
call('checkcard');
}
frame 12 {
meCard = '12';
tmpCard = '11';
tmpSuit = '1';
call('checkcard');
}
frame 13 {
meCard = '13';
tmpCard = '12';
tmpSuit = '1';
call('checkcard');
}
frame 14 {
meCard = '14';
tmpCard = '13';
tmpSuit = '1';
call('checkcard');
}
frame 15 {
meCard = '15';
tmpCard = '1';
tmpSuit = '2';
call('checkcard');
}
frame 16 {
meCard = '16';
tmpCard = '2';
tmpSuit = '2';
call('checkcard');
}
frame 17 {
meCard = '17';
tmpSuit = '2';
tmpCard = '3';
call('checkcard');
}
frame 18 {
meCard = '18';
tmpSuit = '2';
tmpCard = '4';
call('checkcard');
}
frame 19 {
meCard = '19';
tmpSuit = '2';
tmpCard = '5';
call('checkcard');
}
frame 20 {
meCard = '20';
tmpSuit = '2';
tmpCard = '6';
call('checkcard');
}
frame 21 {
meCard = '21';
tmpSuit = '2';
tmpCard = '7';
call('checkcard');
}
frame 22 {
meCard = '22';
tmpSuit = '2';
tmpCard = '8';
call('checkcard');
}
frame 23 {
meCard = '23';
tmpSuit = '2';
tmpCard = '9';
call('checkcard');
}
frame 24 {
meCard = '24';
tmpSuit = '2';
tmpCard = '10';
call('checkcard');
}
frame 25 {
meCard = '25';
tmpSuit = '2';
tmpCard = '11';
call('checkcard');
}
frame 26 {
meCard = '26';
tmpSuit = '2';
tmpCard = '12';
call('checkcard');
}
frame 27 {
meCard = '27';
tmpSuit = '2';
tmpCard = '13';
call('checkcard');
}
frame 28 {
meCard = '28';
tmpSuit = '3';
tmpCard = '1';
call('checkcard');
}
frame 29 {
meCard = '29';
tmpSuit = '3';
tmpCard = '2';
call('checkcard');
}
frame 30 {
meCard = '30';
tmpSuit = '3';
tmpCard = '3';
call('checkcard');
}
frame 31 {
meCard = '31';
tmpSuit = '3';
tmpCard = '4';
call('checkcard');
}
frame 32 {
meCard = '32';
tmpSuit = '3';
tmpCard = '5';
call('checkcard');
}
frame 33 {
meCard = '33';
tmpSuit = '3';
tmpCard = '6';
call('checkcard');
}
frame 34 {
meCard = '34';
tmpSuit = '3';
tmpCard = '7';
call('checkcard');
}
frame 35 {
meCard = '35';
tmpSuit = '3';
tmpCard = '8';
call('checkcard');
}
frame 36 {
meCard = '36';
tmpSuit = '3';
tmpCard = '9';
call('checkcard');
}
frame 37 {
meCard = '37';
tmpSuit = '3';
tmpCard = '10';
call('checkcard');
}
frame 38 {
meCard = '38';
tmpSuit = '3';
tmpCard = '11';
call('checkcard');
}
frame 39 {
meCard = '39';
tmpSuit = '3';
tmpCard = '12';
call('checkcard');
}
frame 40 {
meCard = '40';
tmpSuit = '3';
tmpCard = '13';
call('checkcard');
}
frame 41 {
meCard = '41';
tmpSuit = '4';
tmpCard = '1';
call('checkcard');
}
frame 42 {
meCard = '42';
tmpSuit = '4';
tmpCard = '2';
call('checkcard');
}
frame 43 {
meCard = '43';
tmpSuit = '4';
tmpCard = '3';
call('checkcard');
}
frame 44 {
meCard = '44';
tmpSuit = '4';
tmpCard = '4';
call('checkcard');
}
frame 45 {
meCard = '45';
tmpSuit = '4';
tmpCard = '5';
call('checkcard');
}
frame 46 {
meCard = '46';
tmpSuit = '4';
tmpCard = '6';
call('checkcard');
}
frame 47 {
meCard = '47';
tmpSuit = '4';
tmpCard = '7';
call('checkcard');
}
frame 48 {
meCard = '48';
tmpSuit = '4';
tmpCard = '8';
call('checkcard');
}
frame 49 {
meCard = '49';
tmpSuit = '4';
tmpCard = '9';
call('checkcard');
}
frame 50 {
meCard = '50';
tmpSuit = '4';
tmpCard = '10';
call('checkcard');
}
frame 51 {
meCard = '51';
tmpSuit = '4';
tmpCard = '11';
call('checkcard');
}
frame 52 {
meCard = '52';
tmpSuit = '4';
tmpCard = '12';
call('checkcard');
}
frame 53 {
meCard = '53';
tmpSuit = '4';
tmpCard = '13';
call('checkcard');
}
frame 54 {
i = '1';
while (i < '12') {
if (eval('_level0/setcards:meGo' add i) == meCard) {
eval('seeCard' add i) = tmpCard;
eval('seeSuit' add i) = tmpSuit;
}
i += '1';
}
}
}
movieClip 118 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 6 {
play();
}
frame 6 {
if ('10' < ../:d4) {
if (../:d4 == '12') {
typedeal = 'Q';
}
if (../:d4 == '11') {
typedeal = 'J';
}
} else {
typedeal = ../:d4;
}
}
frame 7 {
stop();
}
frame 11 {
play();
}
frame 11 {
if ('10' < ../:dpair) {
if (../:dpair == '13') {
typedeal = 'K';
}
if (../:dpair == '12') {
typedeal = 'Q';
}
if (../:dpair == '11') {
typedeal = 'J';
}
} else {
typedeal = ../:dpair;
}
if (../:dpair == '14') {
typedeal = 'A';
}
}
frame 12 {
stop();
}
frame 16 {
play();
}
frame 16 {
if ('10' < ../:dpair) {
if (../:dpair == '13') {
typedeal = 'K';
}
if (../:dpair == '12') {
typedeal = 'Q';
}
if (../:dpair == '11') {
typedeal = 'J';
}
} else {
typedeal = ../:dpair;
}
if (../:dpair == '14') {
typedeal = 'A';
}
if ('10' < ../:dpair2) {
if (../:dpair2 == '13') {
typedeal2 = 'K';
}
if (../:dpair2 == '12') {
typedeal2 = 'Q';
}
if (../:dpair2 == '11') {
typedeal2 = 'J';
}
} else {
typedeal2 = ../:dpair2;
}
if (../:dpair2 == '1') {
typedeal2 = 'A';
}
}
frame 17 {
stop();
}
frame 21 {
play();
}
frame 21 {
if ('10' < ../:dpair) {
if (../:dpair == '13') {
typedeal = 'K';
}
if (../:dpair == '12') {
typedeal = 'Q';
}
if (../:dpair == '11') {
typedeal = 'J';
}
} else {
typedeal = ../:dpair;
}
if (../:dpair == '14') {
typedeal = 'A';
}
}
frame 22 {
stop();
}
frame 26 {
play();
}
frame 26 {
typedeal = ../:d5;
if (../:d5 == '12') {
typedeal = 'Q';
}
if (../:d5 == '13') {
typedeal = 'K';
}
if (../:d5 == '11') {
typedeal = 'J';
}
}
frame 27 {
stop();
}
frame 31 {
play();
}
frame 31 {
typedeal = ../:d5;
if (../:d5 == '12') {
typedeal = 'Q';
}
if (../:d5 == '13') {
typedeal = 'K';
}
if (../:d5 == '11') {
typedeal = 'J';
}
if (../:d1 == '1') {
typedeal = 'A';
}
}
frame 32 {
stop();
}
frame 36 {
play();
}
frame 36 {
if ('10' < ../:dpair) {
if (../:dpair == '13') {
typedeal = 'K';
}
if (../:dpair == '12') {
typedeal = 'Q';
}
if (../:dpair == '11') {
typedeal = 'J';
}
} else {
typedeal = ../:dpair;
}
if (../:dpair == '14') {
typedeal = 'A';
}
if ('10' < ../:dpair2) {
if (../:dpair2 == '13') {
typedeal2 = 'K';
}
if (../:dpair2 == '12') {
typedeal2 = 'Q';
}
if (../:dpair2 == '11') {
typedeal2 = 'J';
}
} else {
typedeal2 = ../:dpair2;
}
if (../:dpair2 == '14') {
typedeal2 = 'A';
}
}
frame 37 {
stop();
}
frame 41 {
play();
}
frame 41 {
if ('10' < ../:dpair) {
if (../:dpair == '13') {
typedeal = 'K';
}
if (../:dpair == '12') {
typedeal = 'Q';
}
if (../:dpair == '11') {
typedeal = 'J';
}
} else {
typedeal = ../:dpair;
}
if (../:dpair == '14') {
typedeal = 'A';
}
}
frame 42 {
stop();
}
frame 46 {
play();
}
frame 46 {
typedeal = ../:d5;
if (../:d5 == '12') {
typedeal = 'Q';
}
if (../:d5 == '13') {
typedeal = 'K';
}
if (../:d5 == '11') {
typedeal = 'J';
}
}
frame 47 {
stop();
}
frame 51 {
stop();
}
}
movieClip 132 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 6 {
play();
}
frame 6 {
if ('10' < ../:p4) {
if (../:p4 == '12') {
typeplay = 'Q';
}
if (../:p4 == '11') {
typeplay = 'J';
}
} else {
typeplay = ../:p4;
}
}
frame 7 {
stop();
}
frame 11 {
play();
}
frame 11 {
if ('10' < ../:ppair) {
if (../:ppair == '13') {
typeplay = 'K';
}
if (../:ppair == '12') {
typeplay = 'Q';
}
if (../:ppair == '11') {
typeplay = 'J';
}
} else {
typeplay = ../:ppair;
}
if (../:ppair == '14') {
typeplay = 'A';
}
}
frame 12 {
stop();
}
frame 16 {
play();
}
frame 16 {
if ('10' < ../:ppair) {
if (../:ppair == '13') {
typeplay = 'K';
}
if (../:ppair == '12') {
typeplay = 'Q';
}
if (../:ppair == '11') {
typeplay = 'J';
}
} else {
typeplay = ../:ppair;
}
if (../:ppair == '14') {
typeplay = 'A';
}
if ('10' < ../:ppair2) {
if (../:ppair2 == '13') {
typeplay2 = 'K';
}
if (../:ppair2 == '12') {
typeplay2 = 'Q';
}
if (../:ppair2 == '11') {
typeplay2 = 'J';
}
} else {
typeplay2 = ../:ppair2;
}
if (../:ppair2 == '1') {
typeplay2 = 'A';
}
}
frame 17 {
stop();
}
frame 21 {
play();
}
frame 21 {
if ('10' < ../:ppair) {
if (../:ppair == '13') {
typeplay = 'K';
}
if (../:ppair == '12') {
typeplay = 'Q';
}
if (../:ppair == '11') {
typeplay = 'J';
}
} else {
typeplay = ../:ppair;
}
if (../:ppair == '14') {
typeplay = 'A';
}
}
frame 22 {
stop();
}
frame 26 {
play();
}
frame 26 {
typeplay = ../:p5;
if (../:p5 == '12') {
typeplay = 'Q';
}
if (../:p5 == '13') {
typeplay = 'K';
}
if (../:p5 == '11') {
typeplay = 'J';
}
}
frame 27 {
stop();
}
frame 31 {
play();
}
frame 31 {
typeplay = ../:p5;
if (../:p5 == '12') {
typeplay = 'Q';
}
if (../:p5 == '13') {
typeplay = 'K';
}
if (../:p5 == '11') {
typeplay = 'J';
}
if (../:p1 == '1') {
typeplay = 'A';
}
}
frame 32 {
stop();
}
frame 36 {
play();
}
frame 36 {
if ('10' < ../:ppair) {
if (../:ppair == '13') {
typeplay = 'K';
}
if (../:ppair == '12') {
typeplay = 'Q';
}
if (../:ppair == '11') {
typeplay = 'J';
}
} else {
typeplay = ../:ppair;
}
if (../:ppair == '14') {
typeplay = 'A';
}
if ('10' < ../:ppair2) {
if (../:ppair2 == '13') {
typeplay2 = 'K';
}
if (../:ppair2 == '12') {
typeplay2 = 'Q';
}
if (../:ppair2 == '11') {
typeplay2 = 'J';
}
} else {
typeplay2 = ../:ppair2;
}
if (../:ppair2 == '14') {
typeplay2 = 'A';
}
}
frame 37 {
stop();
}
frame 41 {
play();
}
frame 41 {
if ('10' < ../:ppair) {
if (../:ppair == '13') {
typeplay = 'K';
}
if (../:ppair == '12') {
typeplay = 'Q';
}
if (../:ppair == '11') {
typeplay = 'J';
}
} else {
typeplay = ../:ppair;
}
if (../:ppair == '14') {
typeplay = 'A';
}
}
frame 42 {
stop();
}
frame 46 {
play();
}
frame 46 {
typeplay = ../:p5;
if (../:p5 == '12') {
typeplay = 'Q';
}
if (../:p5 == '13') {
typeplay = 'K';
}
if (../:p5 == '11') {
typeplay = 'J';
}
}
frame 47 {
stop();
}
frame 51 {
stop();
}
}
movieClip 180 {
frame 1 {
stop();
if (_level0/:jamount == '1') {
if (../../:PlayerHand == '10') {
gotoAndStop(25);
}
if (../../:PlayerHand == '9') {
gotoAndStop(20);
}
if (../../:PlayerHand == '8') {
gotoAndStop(15);
}
if (../../:PlayerHand == '7') {
gotoAndStop(10);
}
if (../../:PlayerHand == '6') {
gotoAndStop(5);
}
}
}
frame 5 {
stop();
}
frame 10 {
stop();
}
frame 15 {
stop();
}
frame 20 {
stop();
}
frame 25 {
stop();
}
}
movieClip 181 {
frame 1 {
stop();
}
frame 5 {
stop();
}
frame 10 {
stop();
}
frame 15 {
stop();
}
frame 20 {
stop();
}
frame 25 {
stop();
}
frame 30 {
if (_level0/:jamount == '1') {
nextFrame();
}
stop();
}
frame 31 {
stop();
}
frame 35 {
if (_level0/:jamount == '1') {
nextFrame();
}
stop();
}
frame 36 {
stop();
}
frame 40 {
if (_level0/:jamount == '1') {
nextFrame();
}
stop();
}
frame 41 {
stop();
}
frame 45 {
if (_level0/:jamount == '1') {
nextFrame();
}
stop();
}
frame 46 {
stop();
}
frame 50 {
if (_level0/:jamount == '1') {
nextFrame();
}
stop();
}
frame 51 {
stop();
}
frame 55 {
stop();
}
frame 60 {
stop();
}
frame 65 {
stop();
}
}
button 182 {
on (release) {
play();
}
on (release) {
tellTarget ('card1') {
gotoAndStop(1);
}
tellTarget ('card2') {
gotoAndStop(1);
}
tellTarget ('card3') {
gotoAndStop(1);
}
tellTarget ('card4') {
gotoAndStop(1);
}
tellTarget ('card5') {
gotoAndStop(1);
}
tellTarget ('card6') {
gotoAndStop(1);
}
tellTarget ('card7') {
gotoAndStop(1);
}
tellTarget ('card8') {
gotoAndStop(1);
}
tellTarget ('card9') {
gotoAndStop(1);
}
tellTarget ('card10') {
gotoAndStop(1);
}
tellTarget ('hider') {
gotoAndStop(1);
}
}
}
movieClip 183 {
frame 1 {
stop();
}
frame 1 {
DealerHand = '0';
PlayerHand = '0';
if (_level0/:Credits < '3') {
tellTarget ('../outofmoney') {
gotoAndPlay(2);
}
}
stop();
}
frame 2 {
i = '1';
while (i < '53') {
eval('dCard' add i) = i;
i += '1';
}
i = '1';
while (i < '53') {
a = random('52') + '1';
swap1 = eval('dCard' add a);
swap2 = eval('dCard' add i);
eval('dCard' add i) = swap1;
eval('dCard' add a) = swap2;
i += '1';
}
}
frame 3 {
meGo1 = _level0/setcards:dCard1 + '1';
tellTarget ('card1') {
gotoAndStop(_level0/setcards:meGo1);
}
}
frame 4 {
meGo6 = _level0/setcards:dCard6 + '1';
tellTarget ('card6') {
gotoAndStop(_level0/setcards:meGo6);
}
}
frame 5 {
meGo2 = _level0/setcards:dCard2 + '1';
tellTarget ('card2') {
gotoAndStop(_level0/setcards:meGo2);
}
}
frame 6 {
meGo7 = _level0/setcards:dCard7 + '1';
tellTarget ('card7') {
gotoAndStop(_level0/setcards:meGo7);
}
}
frame 7 {
meGo3 = _level0/setcards:dCard3 + '1';
tellTarget ('card3') {
gotoAndStop(_level0/setcards:meGo3);
}
}
frame 8 {
meGo8 = _level0/setcards:dCard8 + '1';
tellTarget ('card8') {
gotoAndStop(_level0/setcards:meGo8);
}
}
frame 9 {
meGo4 = _level0/setcards:dCard4 + '1';
tellTarget ('card4') {
gotoAndStop(_level0/setcards:meGo4);
}
}
frame 10 {
meGo9 = _level0/setcards:dCard9 + '1';
tellTarget ('card9') {
gotoAndStop(_level0/setcards:meGo9);
}
}
frame 11 {
meGo5 = _level0/setcards:dCard5 + '1';
tellTarget ('card5') {
gotoAndStop(_level0/setcards:meGo5);
}
}
frame 12 {
meGo10 = _level0/setcards:dCard10 + '1';
tellTarget ('card10') {
gotoAndStop(_level0/setcards:meGo10);
}
}
frame 14 {
tellTarget ('_level0/b-hit') {
gotoAndStop(1);
}
tellTarget ('_level0/b-stand') {
gotoAndStop(1);
}
../:hsdplay = '1';
}
frame 14 {
stop();
}
frame 15 {
WinnerLevel = '0';
DealerHand = '0';
m1 = '0';
m2 = '0';
m3 = '0';
m4 = '0';
i1 = '0';
i5 = '0';
wf = '0';
straightTrue = '0';
highStraight = '0';
}
frame 15 {
../:hsdplay = '0';
}
frame 16 {
i = '6';
while (i < '11') {
eval('x' add i) = eval('_level0/setcards/card' add i add '/:seeCard' add i);
eval('z' add i) = eval('_level0/setcards/card' add i add '/:seeSuit' add i);
i += '1';
}
WinnerLevel = '0';
PlayerHand = '0';
sort = '0';
while (sort == '0') {
sort = '1';
i = '6';
while (i < '10') {
if (eval('x' add (i + '1')) < eval('x' add i)) {
sort = '0';
tmp = eval('x' add i);
eval('x' add i) = eval('x' add (i + '1'));
eval('x' add (i + '1')) = tmp;
tmp = eval('z' add i);
eval('z' add i) = eval('z' add (i + '1'));
eval('z' add (i + '1')) = tmp;
}
i += '1';
}
}
p6 = x6;
p7 = x7;
p8 = x8;
p9 = x9;
p10 = x10;
d1 = x6;
d2 = x7;
d3 = x8;
d4 = x9;
d5 = x10;
}
frame 17 {
if ((x6 == '1' or x7 == '1' or x8 == '1' or x9 == '1' or x10 == '1') and (x6 == '13' or x7 == '13' or x8 == '13' or x9 == '13' or x10 == '13')) {
DealerHand = '1';
}
i = '7';
u0 = '0';
u1 = '0';
un = '0';
while (i < '11') {
if (eval('p' add i) == eval('p' add (i - '1'))) {
eval('u' add un) += '1';
eval('pairNum' add un) = eval('p' add i);
} else {
if ('0' < eval('u' add un)) {
un += '1';
}
}
i += '1';
}
if (u0 == '3') {
DealerHand = '8';
}
if (u0 == '2') {
DealerHand = '4';
}
if (u0 == '1') {
DealerHand = '2';
}
if (u0 == '2' and u1 == '1' or u0 == '1' and u1 == '2') {
DealerHand = '7';
}
if (u0 == '1' and u1 == '1') {
DealerHand = '3';
}
i = '7';
straight = '1';
while (i < '11') {
if (eval('x' add i) != eval('x' add (i - '1')) + '1') {
straight = '0';
}
i += '1';
}
if (straight == '1' or x6 == '1' and x7 == '10' and x8 == '11' and x9 == '12' and x10 == '13') {
straight = '1';
DealerHand = '5';
}
i = '7';
flush = '1';
while (i < '11') {
if (eval('z' add i) != eval('z' add (i - '1'))) {
flush = '0';
}
i += '1';
}
if (flush == '1') {
DealerHand = '6';
}
if (straight == '1' and flush == '1') {
DealerHand = '9';
}
if (straight == '1' and flush == '1' and x6 == '1' and x10 == '13') {
DealerHand = '10';
}
dpair = pairNum0;
dpair2 = pairNum1;
if (dpair == '1') {
dpair = '14';
}
if (dpair2 == '1') {
dpair2 = '14';
}
}
frame 21 {
WinnerLevel = '0';
PlayerHand = '0';
m1 = '0';
m2 = '0';
m3 = '0';
m4 = '0';
i1 = '0';
i5 = '0';
wf = '0';
straightTrue = '0';
highStraight = '0';
done3 = '0';
done4 = '0';
done5 = '0';
}
frame 22 {
i = '1';
while (i < '6') {
eval('x' add i) = eval('_level0/setcards/card' add i add '/:seeCard' add i);
eval('z' add i) = eval('_level0/setcards/card' add i add '/:seeSuit' add i);
i += '1';
}
WinnerLevel = '0';
PlayerHand = '0';
sort = '0';
while (sort == '0') {
sort = '1';
i = '1';
while (i < '5') {
if (eval('x' add (i + '1')) < eval('x' add i)) {
sort = '0';
tmp = eval('x' add i);
eval('x' add i) = eval('x' add (i + '1'));
eval('x' add (i + '1')) = tmp;
tmp = eval('z' add i);
eval('z' add i) = eval('z' add (i + '1'));
eval('z' add (i + '1')) = tmp;
}
i += '1';
}
}
p1 = x1;
p2 = x2;
p3 = x3;
p4 = x4;
p5 = x5;
}
frame 23 {
if ((x1 == '1' or x2 == '1' or x3 == '1' or x4 == '1' or x5 == '1') and (x1 == '13' or x2 == '13' or x3 == '13' or x4 == '13' or x5 == '13')) {
PlayerHand = '1';
}
i = '2';
u0 = '0';
u1 = '0';
un = '0';
while (i < '6') {
if (eval('p' add i) == eval('p' add (i - '1'))) {
eval('u' add un) += '1';
eval('pairNum' add un) = eval('p' add i);
} else {
if ('0' < eval('u' add un)) {
un += '1';
}
}
i += '1';
}
if (u0 == '3') {
PlayerHand = '8';
}
if (u0 == '2') {
PlayerHand = '4';
}
if (u0 == '1') {
PlayerHand = '2';
}
if (u0 == '2' and u1 == '1' or u0 == '1' and u1 == '2') {
PlayerHand = '7';
}
if (u0 == '1' and u1 == '1') {
PlayerHand = '3';
}
i = '2';
straight = '1';
while (i < '6') {
if (eval('x' add i) != eval('x' add (i - '1')) + '1') {
straight = '0';
}
i += '1';
}
if (straight == '1' or x1 == '1' and x2 == '10' and x3 == '11' and x4 == '12' and x5 == '13') {
straight = '1';
PlayerHand = '5';
}
i = '2';
flush = '1';
while (i < '6') {
if (eval('z' add i) != eval('z' add (i - '1'))) {
flush = '0';
}
i += '1';
}
if (flush == '1') {
PlayerHand = '6';
}
if (straight == '1' and flush == '1') {
PlayerHand = '9';
}
if (straight == '1' and flush == '1' and x1 == '1' and x5 == '13') {
PlayerHand = '10';
}
ppair = pairNum0;
ppair2 = pairNum1;
if (ppair == '1') {
ppair = '14';
}
if (ppair2 == '1') {
ppair2 = '14';
}
}
frame 25 {
i = '5';
while ('0' < i) {
if (eval('p' add i) == eval('d' add i) and i != '1') {
i -= '1';
} else {
phigh = '3';
}
if (eval('d' add i) < eval('p' add i)) {
phigh = '1';
i = '0';
}
if (eval('p' add i) < eval('d' add i)) {
phigh = '2';
i = '0';
}
i -= '1';
}
if (p1 == '1' and p1 != p2 and d1 != '1') {
phigh = '1';
}
if (d1 == '1' and d1 != d2 and p1 != '1') {
phigh = '2';
}
if (p1 == '1' and p2 == '1' and d2 != '1') {
phigh = '1';
}
}
frame 25 {
if (DealerHand == '0') {
tellTarget ('typedeal') {
gotoAndPlay('dnq');
}
}
if (DealerHand == '1') {
tellTarget ('typedeal') {
gotoAndPlay('ak');
}
}
if (DealerHand == '2') {
tellTarget ('typedeal') {
gotoAndPlay('pair');
}
}
if (DealerHand == '3') {
tellTarget ('typedeal') {
gotoAndPlay('2pair');
}
}
if (DealerHand == '4') {
tellTarget ('typedeal') {
gotoAndPlay('3k');
}
}
if (DealerHand == '5') {
tellTarget ('typedeal') {
gotoAndPlay('str');
}
}
if (DealerHand == '6') {
tellTarget ('typedeal') {
gotoAndPlay('flsh');
}
}
if (DealerHand == '7') {
tellTarget ('typedeal') {
gotoAndPlay('boat');
}
}
if (DealerHand == '8') {
tellTarget ('typedeal') {
gotoAndPlay('4k');
}
}
if (DealerHand == '9') {
tellTarget ('typedeal') {
gotoAndPlay('strflsh');
}
}
if (DealerHand == '10') {
tellTarget ('typedeal') {
gotoAndPlay('rylflsh');
}
}
}
frame 25 {
if (PlayerHand == '0') {
tellTarget ('typeplay') {
gotoAndPlay('dnq');
}
}
if (PlayerHand == '1') {
tellTarget ('typeplay') {
gotoAndPlay('ak');
}
}
if (PlayerHand == '2') {
tellTarget ('typeplay') {
gotoAndPlay('pair');
}
}
if (PlayerHand == '3') {
tellTarget ('typeplay') {
gotoAndPlay('2pair');
}
}
if (PlayerHand == '4') {
tellTarget ('typeplay') {
gotoAndPlay('3k');
}
}
if (PlayerHand == '5') {
tellTarget ('typeplay') {
gotoAndPlay('str');
}
}
if (PlayerHand == '6') {
tellTarget ('typeplay') {
gotoAndPlay('flsh');
}
}
if (PlayerHand == '7') {
tellTarget ('typeplay') {
gotoAndPlay('boat');
}
}
if (PlayerHand == '8') {
tellTarget ('typeplay') {
gotoAndPlay('4k');
}
}
if (PlayerHand == '9') {
tellTarget ('typeplay') {
gotoAndPlay('strflsh');
}
}
if (PlayerHand == '10') {
tellTarget ('typeplay') {
gotoAndPlay('rylflsh');
}
}
}
frame 26 {
if (DealerHand == '0') {
WinnerLevel = '1';
}
if (DealerHand < PlayerHand and DealerHand != '0') {
WinnerLevel = PlayerHand + '1';
}
if (PlayerHand < DealerHand and DealerHand != '0') {
WinnerLevel = '0';
}
if (PlayerHand == DealerHand) {
if (PlayerHand == '1' and phigh == '1') {
WinnerLevel = '2';
}
if (PlayerHand == '1' and phigh == '2') {
WinnerLevel = '0';
}
if (PlayerHand == '1' and phigh == '3') {
WinnerLevel = '1';
push = '1';
}
if (PlayerHand == '2' and dpair < ppair) {
WinnerLevel = '3';
}
if (PlayerHand == '2' and ppair < dpair) {
WinnerLevel = '0';
}
if (PlayerHand == '2' and ppair == dpair) {
if (phigh == '1') {
WinnerLevel = '3';
}
if (phigh == '2') {
WinnerLevel = '0';
}
if (phigh == '3') {
WinnerLevel = '1';
push = '1';
}
}
if (PlayerHand == '3') {
if (dpair < ppair and dpair2 < ppair) {
WinnerLevel = '4';
}
if (dpair < ppair2 and dpair2 < ppair2) {
WinnerLevel = '4';
}
if (ppair < dpair and ppair2 < dpair) {
WinnerLevel = '0';
}
if (ppair < dpair2 and ppair2 < dpair2) {
WinnerLevel = '0';
}
}
if (PlayerHand == '3' and phigh == '1') {
WinnerLevel = '4';
}
if (PlayerHand == '3' and phigh == '2') {
WinnerLevel = '0';
}
if (PlayerHand == '3' and phigh == '3') {
WinnerLevel = '1';
push = '1';
}
if (PlayerHand == '4' and dpair < ppair) {
WinnerLevel = '5';
}
if (PlayerHand == '4' and ppair < dpair) {
WinnerLevel = '0';
}
if (PlayerHand == '5' and phigh == '1') {
WinnerLevel = '6';
}
if (PlayerHand == '5' and phigh == '2') {
WinnerLevel = '0';
}
if (PlayerHand == '5' and phigh == '3') {
WinnerLevel = '1';
push = '1';
}
if (PlayerHand == '6' and phigh == '1') {
WinnerLevel = '7';
}
if (PlayerHand == '6' and phigh == '2') {
WinnerLevel = '0';
}
if (PlayerHand == '6' and phigh == '3') {
WinnerLevel = '1';
push = '1';
}
if (PlayerHand == '8' and dpair < ppair) {
WinnerLevel = '9';
}
if (PlayerHand == '8' and ppair < dpair) {
WinnerLevel = '0';
}
if (PlayerHand == '9' and phigh == '1') {
WinnerLevel = '10';
}
if (PlayerHand == '9' and phigh == '2') {
WinnerLevel = '0';
}
if (PlayerHand == '9' and phigh == '3') {
WinnerLevel = '1';
push = '1';
}
if (PlayerHand == '10') {
WinnerLevel = '1';
push = '1';
}
if (PlayerHand == '7') {
if (p5 == p4 and p5 == p3 and d5 < p5) {
WinnerLevel = '8';
}
if (d5 == d4 and d5 == d3 and p5 < d5) {
WinnerLevel = '0';
}
if (p1 == p2 and p1 == p3 and d1 < p1) {
WinnerLevel = '8';
}
if (p1 == p2 and p1 == p3 and p1 < d1) {
WinnerLevel = '0';
}
if (p5 == p4 and p5 == p3 and d1 == d2 and d1 == d3 and d1 < p5) {
WinnerLevel = '8';
}
if (p5 == p4 and p5 == p3 and d1 == d2 and d1 == d3 and p5 < d1) {
WinnerLevel = '0';
}
if (p1 == p2 and p1 == p3 and p1 == '1') {
WinnerLevel = '8';
}
if (d1 == d2 and d1 == d3 and d1 == '1') {
WinnerLevel = '0';
}
}
}
if (_level0/:rf == '2') {
WinnerLevel = '0';
}
}
frame 27 {
if (WinnerLevel == '0') {
youwon = '0';
}
if (WinnerLevel == '1') {
../:Credits = ../:Credits + ../:creditsPlayed + ../:creditsPlayed / '3';
youwon = ../:creditsPlayed / '3';
}
if (WinnerLevel == '2') {
../:Credits += ../:creditsPlayed * '2';
youwon = ../:creditsPlayed;
}
if (WinnerLevel == '3') {
../:Credits += ../:creditsPlayed * '2';
youwon = ../:creditsPlayed;
}
if (WinnerLevel == '4') {
../:Credits = ../:Credits + (../:creditsPlayed / '3') * '2' + ../:creditsBet * '3';
youwon = ../:creditsBet * '2' + ../:creditsPlayed / '3';
}
if (WinnerLevel == '5') {
../:Credits = ../:Credits + (../:creditsPlayed / '3') * '2' + ../:creditsBet * '4';
youwon = ../:creditsBet * '3' + ../:creditsPlayed / '3';
}
if (WinnerLevel == '6') {
../:Credits = ../:Credits + (../:creditsPlayed / '3') * '2' + ../:creditsBet * '5';
youwon = ../:creditsBet * '4' + ../:creditsPlayed / '3';
}
if (WinnerLevel == '7') {
../:Credits = ../:Credits + (../:creditsPlayed / '3') * '2' + ../:creditsBet * '6';
youwon = ../:creditsBet * '5' + ../:creditsPlayed / '3';
if (_level0/:jamount == '1') {
../:Credits += '50';
youwon += '50';
}
}
if (WinnerLevel == '8') {
../:Credits = ../:Credits + (../:creditsPlayed / '3') * '2' + ../:creditsBet * '8';
youwon = ../:creditsBet * '7' + ../:creditsPlayed / '3';
if (_level0/:jamount == '1') {
../:Credits += '150';
youwon += '150';
}
}
if (WinnerLevel == '9') {
../:Credits = ../:Credits + (../:creditsPlayed / '3') * '2' + ../:creditsBet * '21';
youwon = ../:creditsBet * '20' + ../:creditsPlayed / '3';
if (_level0/:jamount == '1') {
../:Credits += '500';
youwon += '500';
}
}
if (WinnerLevel == '10') {
../:Credits = ../:Credits + (../:creditsPlayed / '3') * '2' + ../:creditsBet * '51';
youwon = ../:creditsBet * '50' + ../:creditsPlayed / '3';
if (_level0/:jamount == '1') {
../:Credits += '1500';
youwon += '1500';
}
}
if (WinnerLevel == '11') {
../:Credits = ../:Credits + (../:creditsPlayed / '3') * '2' + ../:creditsBet * '101';
youwon = ../:creditsBet * '100' + ../:creditsPlayed / '3';
if (_level0/:jamount == '1') {
royalTemp = _level0/:pj7 add _level0/:pj6 add _level0/:pj5 add _level0/:pj4 add _level0/:pj3;
../:Credits = royalTemp;
youwon = royalTemp;
_level0/:pj7 = '1';
_level0/:pj6 = '0';
_level0/:pj5 = '0';
_level0/:pj4 = '0';
_level0/:pj3 = '0';
}
}
tellTarget ('../jackpot') {
gotoAndStop(1);
}
}
frame 28 {
if (_level0/:rf == '2') {
youwon = 'nothing';
tellTarget ('whatyouwon') {
gotoAndStop('fold');
}
}
if (WinnerLevel == '0') {
tellTarget ('whatyouwon') {
gotoAndStop('wl0');
}
}
if (WinnerLevel == '1') {
tellTarget ('whatyouwon') {
gotoAndStop('wl1');
}
}
if (push == '1') {
tellTarget ('whatyouwon') {
gotoAndStop('wlt');
}
}
if (WinnerLevel == '2') {
tellTarget ('whatyouwon') {
gotoAndStop('wl2');
}
}
if (WinnerLevel == '3') {
tellTarget ('whatyouwon') {
gotoAndStop('wl3');
}
}
if (WinnerLevel == '4') {
tellTarget ('whatyouwon') {
gotoAndStop('wl4');
}
}
if (WinnerLevel == '5') {
tellTarget ('whatyouwon') {
gotoAndStop('wl5');
}
}
if (WinnerLevel == '6') {
tellTarget ('whatyouwon') {
gotoAndStop('wl6');
}
}
if (WinnerLevel == '7') {
tellTarget ('whatyouwon') {
gotoAndStop('wl7');
}
}
if (WinnerLevel == '8') {
tellTarget ('whatyouwon') {
gotoAndStop('wl8');
}
}
if (WinnerLevel == '9') {
tellTarget ('whatyouwon') {
gotoAndStop('wl9');
}
}
if (WinnerLevel == '10') {
tellTarget ('whatyouwon') {
gotoAndStop('wl10');
}
}
if (WinnerLevel == '11') {
tellTarget ('whatyouwon') {
gotoAndStop('wl11');
}
}
}
frame 28 {
stop();
}
frame 29 {
_level0/:creditsPlayed = '0';
_level0/:betMover = '1';
_level0/:dealplay = '1';
_level0/:rf = '0';
../:creditsPlayed = '0';
../:jackpot = '1';
../:Total = ../:Credits;
winnerLevel = '0';
dpair = '0';
push = '0';
ppair = '0';
youwon = '';
royalTemp = '0';
done3 = '0';
done4 = '0';
done5 = '0';
whatdealhand = '';
whatplayerhand = '';
../:hsdplay = '0';
tellTarget ('_level0/b-hit') {
gotoAndStop(2);
}
tellTarget ('_level0/b-stand') {
gotoAndStop(2);
}
tellTarget ('_level0/b-deal') {
gotoAndStop(2);
}
tellTarget ('typeplay') {
gotoAndStop(1);
}
tellTarget ('typedeal') {
gotoAndStop(1);
}
tellTarget ('_level0/cr1') {
gotoAndStop(1);
}
tellTarget ('_level0/cr2') {
gotoAndStop(1);
}
tellTarget ('_level0/cr3') {
gotoAndStop(1);
}
tellTarget ('_level0/cr4') {
gotoAndStop(1);
}
tellTarget ('_level0/cr5') {
gotoAndStop(1);
}
_level0/:chipRow = '1';
_level0/:tochipRow = '0';
removeMovieClip('_level0/bn1');
removeMovieClip('_level0/bn2');
removeMovieClip('_level0/bn3');
removeMovieClip('_level0/bn4');
removeMovieClip('_level0/bn5');
removeMovieClip('_level0/bn6');
removeMovieClip('_level0/bn7');
removeMovieClip('_level0/bn8');
removeMovieClip('_level0/bn9');
removeMovieClip('_level0/bn10');
_level0/cr1/:numChip = '0';
_level0/cr2/:numChip = '0';
_level0/cr3/:numChip = '0';
_level0/cr4/:numChip = '0';
_level0/cr5/:numChip = '0';
gotoAndStop(1);
}
}
button 187 {
on (press) {
if (tOff == '0') {
if (Total / '3' >= creditsPlayed + '1') {
if (betMover == '1') {
if (Credits >= '1') {
tellTarget ('/b-deal') {
gotoAndStop(1);
}
Credits -= '1';
creditsPlayed += '1';
if (chipRow == '1') {
tellTarget ('/cr1') {
gotoAndStop('1');
}
tochipRow = '2';
}
if (chipRow == '2') {
tellTarget ('/cr2') {
gotoAndStop('1');
}
tochipRow = '3';
}
if (chipRow == '3') {
tellTarget ('/cr3') {
gotoAndStop('1');
}
tochipRow = '4';
}
if (chipRow == '4') {
tellTarget ('/cr4') {
gotoAndStop('1');
}
tochipRow = '5';
}
if (chipRow == '5') {
tellTarget ('/cr5') {
gotoAndStop('1');
}
tochipRow = '5';
}
chipRow = tochipRow;
}
}
}
}
}
}
button 188 {
on (press) {
if (tOff == '0') {
if (Total / '3' >= creditsPlayed + '5') {
if (betMover == '1') {
if (Credits >= '5') {
tellTarget ('/b-deal') {
gotoAndStop(1);
}
Credits -= '5';
creditsPlayed += '5';
if (chipRow == '1') {
tellTarget ('/cr1') {
gotoAndStop('5');
}
tochipRow = '2';
}
if (chipRow == '2') {
tellTarget ('/cr2') {
gotoAndStop('5');
}
tochipRow = '3';
}
if (chipRow == '3') {
tellTarget ('/cr3') {
gotoAndStop('5');
}
tochipRow = '4';
}
if (chipRow == '4') {
tellTarget ('/cr4') {
gotoAndStop('5');
}
tochipRow = '5';
}
if (chipRow == '5') {
tellTarget ('/cr5') {
gotoAndStop('5');
}
tochipRow = '5';
}
chipRow = tochipRow;
}
}
} else {}
}
}
}
button 189 {
on (press) {
if (tOff == '0') {
if (Total / '3' >= creditsPlayed + '10') {
if (betMover == '1') {
if (Credits >= '10') {
tellTarget ('/b-deal') {
gotoAndStop(1);
}
Credits -= '10';
creditsPlayed += '10';
if (chipRow == '1') {
tellTarget ('/cr1') {
gotoAndStop('10');
}
tochipRow = '2';
}
if (chipRow == '2') {
tellTarget ('/cr2') {
gotoAndStop('10');
}
tochipRow = '3';
}
if (chipRow == '3') {
tellTarget ('/cr3') {
gotoAndStop('10');
}
tochipRow = '4';
}
if (chipRow == '4') {
tellTarget ('/cr4') {
gotoAndStop('10');
}
tochipRow = '5';
}
if (chipRow == '5') {
tellTarget ('/cr5') {
gotoAndStop('10');
}
tochipRow = '5';
}
chipRow = tochipRow;
}
}
}
}
}
}
button 190 {
on (press) {
if (tOff == '0') {
if (Total / '3' >= creditsPlayed + '25') {
if (betMover == '1') {
if (Credits >= '25') {
tellTarget ('/b-deal') {
gotoAndStop(1);
}
Credits -= '25';
creditsPlayed += '25';
if (chipRow == '1') {
tellTarget ('/cr1') {
gotoAndStop('25');
}
tochipRow = '2';
}
if (chipRow == '2') {
tellTarget ('/cr2') {
gotoAndStop('25');
}
tochipRow = '3';
}
if (chipRow == '3') {
tellTarget ('/cr3') {
gotoAndStop('25');
}
tochipRow = '4';
}
if (chipRow == '4') {
tellTarget ('/cr4') {
gotoAndStop('25');
}
tochipRow = '5';
}
if (chipRow == '5') {
tellTarget ('/cr5') {
gotoAndStop('25');
}
tochipRow = '5';
}
chipRow = tochipRow;
}
}
}
}
}
}
button 191 {
on (press) {
if (tOff == '0') {
if (Total / '3' >= creditsPlayed + '50') {
if (betMover == '1') {
if (Credits >= '50') {
tellTarget ('/b-deal') {
gotoAndStop(1);
}
Credits -= '50';
creditsPlayed += '50';
if (chipRow == '1') {
tellTarget ('/cr1') {
gotoAndStop('50');
}
tochipRow = '2';
}
if (chipRow == '2') {
tellTarget ('/cr2') {
gotoAndStop('50');
}
tochipRow = '3';
}
if (chipRow == '3') {
tellTarget ('/cr3') {
gotoAndStop('50');
}
tochipRow = '4';
}
if (chipRow == '4') {
tellTarget ('/cr4') {
gotoAndStop('50');
}
tochipRow = '5';
}
if (chipRow == '5') {
tellTarget ('/cr5') {
gotoAndStop('50');
}
tochipRow = '5';
}
chipRow = tochipRow;
}
}
}
}
}
}
button 192 {
on (press) {
if (tOff == '0') {
if (betMover == '1') {
tellTarget ('/b-deal') {
gotoAndStop(2);
}
Credits += creditsPlayed;
creditsPlayed = '0';
}
}
}
}
button 193 {
on (press) {
if (tOff == '0') {
if (Total / '3' >= creditsPlayed + '100') {
if (betMover == '1') {
if (Credits >= '100') {
tellTarget ('/b-deal') {
gotoAndStop(1);
}
tellTarget ('runup') {
gotoAndPlay(2);
}
}
}
}
}
}
on (release, rollOut, dragOut) {
tellTarget ('runup') {
gotoAndStop(1);
}
}
}
movieClip 194 {
frame 1 {
stop();
}
frame 2 {
if (_level0/:Credits >= '100') {
_level0/:Credits -= '100';
_level0/:creditsPlayed += '100';
if (../:chipRow == '1') {
tellTarget ('../cr1') {
gotoAndStop('100');
}
../:tochipRow = '2';
}
if (../:chipRow == '2') {
tellTarget ('../cr2') {
gotoAndStop('100');
}
../:tochipRow = '3';
}
if (../:chipRow == '3') {
tellTarget ('../cr3') {
gotoAndStop('100');
}
../:tochipRow = '4';
}
if (../:chipRow == '4') {
tellTarget ('../cr4') {
gotoAndStop('100');
}
../:tochipRow = '5';
}
if (../:chipRow == '5') {
tellTarget ('../cr5') {
gotoAndStop('100');
}
../:tochipRow = '5';
}
../:chipRow = ../:tochipRow;
}
}
frame 7 {
if (../:Total / '3' >= ../:creditsPlayed + '100') {
if (_level0/:Credits >= '100') {
_level0/:Credits -= '100';
_level0/:creditsPlayed += '100';
if (../:chipRow == '1') {
tellTarget ('../cr1') {
gotoAndStop('100');
}
../:tochipRow = '2';
}
if (../:chipRow == '2') {
tellTarget ('../cr2') {
gotoAndStop('100');
}
../:tochipRow = '3';
}
if (../:chipRow == '3') {
tellTarget ('../cr3') {
gotoAndStop('100');
}
../:tochipRow = '4';
}
if (../:chipRow == '4') {
tellTarget ('../cr4') {
gotoAndStop('100');
}
../:tochipRow = '5';
}
if (../:chipRow == '5') {
tellTarget ('../cr5') {
gotoAndStop('100');
}
../:tochipRow = '5';
}
../:chipRow = ../:tochipRow;
}
}
}
frame 8 {
if (../:Total / '3' >= ../:creditsPlayed + '100') {
if (_level0/:Credits >= '100') {
_level0/:Credits -= '100';
_level0/:creditsPlayed += '100';
if (../:chipRow == '1') {
tellTarget ('../cr1') {
gotoAndStop('100');
}
../:tochipRow = '2';
}
if (../:chipRow == '2') {
tellTarget ('../cr2') {
gotoAndStop('100');
}
../:tochipRow = '3';
}
if (../:chipRow == '3') {
tellTarget ('../cr3') {
gotoAndStop('100');
}
../:tochipRow = '4';
}
if (../:chipRow == '4') {
tellTarget ('../cr4') {
gotoAndStop('100');
}
../:tochipRow = '5';
}
if (../:chipRow == '5') {
tellTarget ('../cr5') {
gotoAndStop('100');
}
../:tochipRow = '5';
}
../:chipRow = ../:tochipRow;
}
}
gotoAndPlay(7);
}
}
movieClip 197 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
button 198 {
on (press) {
if (tOff == '0') {
if (betMover == '1') {
if (jackpot == '1') {
if (Credits >= '1') {
tellTarget ('/jackpot') {
gotoAndStop(2);
}
Credits -= '1';
jackpot = '0';
jamount = '1';
}
}
}
}
}
on (rollOver) {
if (tOff == '0') {
if (betMover == '1') {
if (jackpot == '1') {
tellTarget ('/prog1') {
gotoAndPlay(2);
}
}
}
}
}
on (rollOut) {
tellTarget ('/prog1') {
gotoAndStop(1);
}
}
}
movieClip 211 {
frame 1 {
stop();
}
frame 5 {
gotoAndPlay(2);
}
}
movieClip 212 {
frame 3 {
_level0/:pj1 += '1';
if (_level0/:pj1 == '10') {
_level0/:pj1 = '0';
_level0/:pj2 += '1';
}
if (_level0/:pj2 == '10') {
_level0/:pj2 = '0';
_level0/:pj3 += '1';
}
if (_level0/:pj3 == '10') {
_level0/:pj3 = '0';
_level0/:pj4 += '1';
}
if (_level0/:pj4 == '10') {
_level0/:pj4 = '0';
_level0/:pj5 += '1';
}
if (_level0/:pj5 == '10') {
_level0/:pj5 = '0';
_level0/:pj6 += '1';
}
if (_level0/:pj6 == '10') {
_level0/:pj6 = '0';
_level0/:pj7 += '1';
}
gotoAndPlay(1);
}
}
movieClip 217 {
frame 1 {
stop();
}
frame 2 {
if (../:acheck == '1') {
_level0/:Credits = '1000';
_level0/:Total = '1000';
../:toacheck = '2';
}
if (../:acheck == '2') {
_level0/:Credits = '500';
_level0/:Total = '500';
../:toacheck = '3';
}
if (../:acheck == '3') {
_level0/:Credits = '500';
_level0/:Total = '500';
../:toacheck = '3';
}
../:acheck = ../:toacheck;
}
}
button 224 {
on (release) {
../:tOff = '0';
tellTarget ('_level0/help') {
gotoAndStop(1);
}
}
}
button 231 {
on (press) {
startDrag('_level0/help', false);
}
on (release) {
stopDrag();
}
}
movieClip 232 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
button 235 {
on (release) {
../:tOff = '0';
tellTarget ('_level0/about') {
gotoAndStop(1);
}
}
}
button 237 {
on (press) {
startDrag('_level0/about', false);
}
on (release) {
stopDrag();
}
}
button 238 {
on (release) {
getURL('mailto:chad@gonetminder.com', '');
}
}
button 239 {
on (release) {
getURL('http://www.gonetminder.com', '_blank');
}
}
movieClip 240 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
button 248 {
on (release) {
../:tOff = '0';
tellTarget ('_level0/payout') {
gotoAndStop(1);
}
}
}
movieClip 254 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}