Frame 2
stop();
Instance of Symbol 14 MovieClip in Frame 2
onClipEvent (enterFrame) {
loaded = int(_root.getBytesLoaded() / 6500);
gotoAndStop(loaded);
}
Frame 6
function addPlayersHand() {
playerHand = ((((_root.P1.value + _root.P2.value) + _root.P3.value) + _root.P4.value) + _root.P5.value) + _root.P6.value;
if ((playerHand == 21) and (_root.P3.value == 0)) {
gotoAndPlay (1);
} else if ((playerHand == 21) and (_root.P3.value != 0)) {
gotoAndPlay (1);
} else if (21 < playerHand) {
x = 1;
while (6 >= x) {
if (eval (("_root.P" + x) + ".ace") == 1) {
playerHand = playerHand - 10;
if ((playerHand == 21) and (_root.P3.value == 0)) {
gotoAndPlay (1);
x = 10;
} else if ((playerHand == 21) and (_root.P3.value != 0)) {
gotoAndPlay (1);
x = 10;
} else if (21 >= playerHand) {
x = 10;
}
}
x++;
}
if (21 < playerHand) {
gotoAndPlay (1);
}
}
}
function addDealersHand() {
dealersHand = ((((_root.D1.value + _root.D2.value) + _root.D3.value) + _root.D4.value) + _root.D5.value) + _root.D6.value;
if (((dealersHand >= 17) and (21 >= dealersHand)) || ((playerHand == 21) and (_root.P3.value == 0))) {
gotoAndPlay (1);
} else if (21 < dealersHand) {
x = 1;
while (6 >= x) {
if (eval (("_root.D" + x) + ".ace") == 1) {
dealersHand = dealersHand - 10;
if (((dealersHand >= 17) and (21 >= dealersHand)) || ((playerHand == 21) and (_root.P3.value == 0))) {
x = 10;
gotoAndPlay (1);
} else if (21 >= dealersHand) {
x = 10;
}
}
x++;
}
if (21 < dealersHand) {
gotoAndPlay (1);
}
}
}
Instance of Symbol 66 MovieClip "randomizer" in Frame 6
onClipEvent (load) {
total = 51;
}
Frame 9
stop();
Frame 15
Set("/:bonus", 1);
Set("/:computerCards", 0);
Set("/:endtime", 0);
N = 1;
x = 1;
while (5 >= x) {
Set("playerHand" + x, eval ("/:cardNumber" + N));
N = N + 1;
x++;
}
N = 6;
x = 1;
while (5 >= x) {
Set("dealerHand" + x, eval ("/:cardNumber" + N));
N = N + 1;
x++;
}
N = 10;
x = 1;
while (17 >= x) {
Set("playersStack" + x, eval ("/:cardNumber" + N));
N = N + 1;
x++;
}
playersStackN = 17;
x = 1;
while (17 >= x) {
Set("dealersStack" + x, eval ("/:cardNumber" + N));
N = N + 1;
x++;
}
dealersStackN = 17;
sideStackN = 0;
sideStackN2 = 6;
x = 1;
while (6 >= x) {
Set("sideStack" + x, eval ("/:cardNumber" + N));
N = N + 1;
x++;
}
middleStack1 = eval ("/:cardNumber" + N);
N = N + 1;
middleStack2 = eval ("/:cardNumber" + N);
middleStackN = 2;
N = N + 1;
Instance of Symbol 99 MovieClip "M1" in Frame 15
onClipEvent (load) {
startX = _x;
startY = _y;
}
Instance of Symbol 99 MovieClip "M2" in Frame 15
onClipEvent (load) {
startX = _x;
startY = _y;
}
Instance of Symbol 110 MovieClip "D1" in Frame 15
onClipEvent (load) {
startX = _x;
startY = _y;
}
Instance of Symbol 110 MovieClip "D2" in Frame 15
onClipEvent (load) {
startX = _x;
startY = _y;
}
Instance of Symbol 110 MovieClip "D3" in Frame 15
onClipEvent (load) {
startX = _x;
startY = _y;
}
Instance of Symbol 110 MovieClip "D4" in Frame 15
onClipEvent (load) {
startX = _x;
startY = _y;
}
Instance of Symbol 110 MovieClip "D5" in Frame 15
onClipEvent (load) {
startX = _x;
startY = _y;
}
Instance of Symbol 116 MovieClip "P3" in Frame 15
onClipEvent (load) {
startX = _x;
startY = _y;
}
Instance of Symbol 116 MovieClip "P4" in Frame 15
onClipEvent (load) {
startX = _x;
startY = _y;
}
Instance of Symbol 116 MovieClip "P5" in Frame 15
onClipEvent (load) {
startX = _x;
startY = _y;
}
Instance of Symbol 116 MovieClip "P2" in Frame 15
onClipEvent (load) {
startX = _x;
startY = _y;
}
Instance of Symbol 116 MovieClip "P1" in Frame 15
onClipEvent (load) {
startX = _x;
startY = _y;
}
Frame 27
_root.D1.gotoAndStop(dealerHand1);
_root.P1.gotoAndStop(playerHand1);
Frame 29
_root.D2.gotoAndStop(dealerHand2);
_root.P2.gotoAndStop(playerHand2);
Frame 31
_root.D3.gotoAndStop(dealerHand3);
_root.P3.gotoAndStop(playerHand3);
Frame 33
_root.D4.gotoAndStop(dealerHand4);
_root.P4.gotoAndStop(playerHand4);
Frame 35
_root.D5.gotoAndStop(dealerHand5);
_root.P5.gotoAndStop(playerHand5);
Frame 67
_root.M1.gotoAndStop(middleStack1);
Frame 69
_root.M2.gotoAndStop(middleStack2);
Frame 81
stop();
Frame 86
Set("/:win", 1);
Frame 121
gotoAndPlay (160);
Frame 122
Set("/:win", 0);
Frame 181
if (/:win == 1) {
WB = 100;
} else {
WB = 0;
}
score = score + WB;
Frame 191
TB = int(/:endtime * 0.5);
score = score + TB;
Frame 198
if (dealersStackN ne "") {
CCB = dealersStackN;
} else {
CCB = 0;
}
CCB = (CCB + /:computerCards) * 25;
score = score + CCB;
Frame 212
if (/:win == 1) {
level = level + 1;
gotoAndPlay (15);
}
Frame 219
stop();
Symbol 14 MovieClip Frame 1
stop();
Symbol 14 MovieClip Frame 25
_root.gotoAndStop("main");
stop();
Symbol 14 MovieClip Frame 26
_root.gotoAndStop("main");
stop();
Symbol 14 MovieClip Frame 27
_root.gotoAndStop("main");
stop();
Symbol 14 MovieClip Frame 28
_root.gotoAndStop("main");
stop();
Symbol 14 MovieClip Frame 29
_root.gotoAndStop("main");
stop();
Symbol 14 MovieClip Frame 30
_root.gotoAndStop("main");
stop();
Symbol 14 MovieClip Frame 31
_root.gotoAndStop("main");
stop();
Symbol 14 MovieClip Frame 32
_root.gotoAndStop("main");
stop();
Symbol 14 MovieClip Frame 33
_root.gotoAndStop("main");
stop();
Symbol 14 MovieClip Frame 34
_root.gotoAndStop("main");
stop();
Symbol 14 MovieClip Frame 35
_root.gotoAndStop("main");
stop();
Symbol 14 MovieClip Frame 36
_root.gotoAndStop("main");
stop();
Symbol 23 Button
on (release) {
N = 0;
score = 0;
level = 1;
gotoAndPlay (15);
}
Symbol 27 Button
on (release) {
if (_root.INS._currentframe == 1) {
_root.INS.gotoAndStop(2);
} else {
_root.INS.gotoAndStop(1);
}
}
Symbol 37 Button
on (release) {
gotoAndStop (1);
}
Symbol 63 MovieClip Frame 1
stop();
Symbol 66 MovieClip Frame 2
a = new Array(total);
i = 1;
while (total >= i) {
R = random(total);
if (a[R] != null) {
R = random(total);
if (a[R] != null) {
R = 0;
while (total >= R) {
if (a[R] == null) {
break;
}
R++;
}
}
}
a[R] = i;
i++;
}
x = 0;
while (total >= x) {
x = x + 1;
Set("/:cardNumber" add x, a[x - 1] + 3);
}
Symbol 66 MovieClip Frame 3
stop();
Symbol 74 Button
on (release) {
if (_root.INS._currentframe == 1) {
_root.INS.gotoAndStop(2);
} else {
_root.INS.gotoAndStop(1);
}
}
Symbol 77 MovieClip Frame 1
stop();
Symbol 99 MovieClip Frame 1
stop();
value = 0;
Symbol 99 MovieClip Frame 2
value = 0;
Symbol 99 MovieClip Frame 3
stop();
value = 1;
Symbol 99 MovieClip Frame 4
value = 2;
Symbol 99 MovieClip Frame 5
value = 3;
Symbol 99 MovieClip Frame 6
value = 2;
Symbol 99 MovieClip Frame 7
value = 3;
Symbol 99 MovieClip Frame 8
value = 4;
Symbol 99 MovieClip Frame 9
value = 10;
Symbol 99 MovieClip Frame 10
value = 11;
Symbol 99 MovieClip Frame 11
value = 4;
Symbol 99 MovieClip Frame 12
value = 5;
Symbol 99 MovieClip Frame 13
value = 9;
Symbol 99 MovieClip Frame 14
value = 6;
Symbol 99 MovieClip Frame 15
value = 7;
Symbol 99 MovieClip Frame 16
value = 12;
Symbol 99 MovieClip Frame 17
value = 13;
Symbol 99 MovieClip Frame 18
value = 11;
Symbol 99 MovieClip Frame 19
value = 12;
Symbol 99 MovieClip Frame 20
value = 13;
Symbol 99 MovieClip Frame 21
value = 8;
Symbol 99 MovieClip Frame 22
value = 4;
Symbol 99 MovieClip Frame 23
value = 5;
Symbol 99 MovieClip Frame 24
value = 6;
Symbol 99 MovieClip Frame 25
value = 12;
Symbol 99 MovieClip Frame 26
value = 13;
Symbol 99 MovieClip Frame 27
value = 1;
Symbol 99 MovieClip Frame 28
value = 5;
Symbol 99 MovieClip Frame 29
value = 6;
Symbol 99 MovieClip Frame 30
value = 1;
Symbol 99 MovieClip Frame 31
value = 3;
Symbol 99 MovieClip Frame 32
value = 4;
Symbol 99 MovieClip Frame 33
value = 7;
Symbol 99 MovieClip Frame 34
value = 8;
Symbol 99 MovieClip Frame 35
value = 9;
Symbol 99 MovieClip Frame 36
value = 9;
Symbol 99 MovieClip Frame 37
value = 10;
Symbol 99 MovieClip Frame 38
value = 11;
Symbol 99 MovieClip Frame 39
value = 10;
Symbol 99 MovieClip Frame 40
value = 2;
Symbol 99 MovieClip Frame 41
value = 3;
Symbol 99 MovieClip Frame 42
value = 6;
Symbol 99 MovieClip Frame 43
value = 7;
Symbol 99 MovieClip Frame 44
value = 8;
Symbol 99 MovieClip Frame 45
value = 10;
Symbol 99 MovieClip Frame 46
value = 11;
Symbol 99 MovieClip Frame 47
value = 5;
Symbol 99 MovieClip Frame 48
value = 1;
Symbol 99 MovieClip Frame 49
value = 12;
Symbol 99 MovieClip Frame 50
value = 13;
Symbol 99 MovieClip Frame 51
value = 7;
Symbol 99 MovieClip Frame 52
value = 8;
Symbol 99 MovieClip Frame 53
value = 2;
Symbol 99 MovieClip Frame 54
value = 9;
Symbol 100 MovieClip Frame 1
stop();
if (((((_root.P1.value == 0) or (_root.P2.value == 0)) or (_root.P3.value == 0)) or (_root.P4.value == 0)) or (_root.P5.value == 0)) {
if (/:playersStackN ne "") {
gotoAndPlay (2);
} else {
gotoAndStop (1);
_root.PD.gotoAndStop(2);
}
} else if (/:playersStackN ne "") {
gotoAndStop (1);
} else {
gotoAndStop (1);
_root.PD.gotoAndStop(2);
}
Symbol 100 MovieClip Frame 2
play();
Symbol 100 MovieClip Frame 3
play();
Symbol 100 MovieClip Frame 8
if (_root.P1.value == 0) {
_root.P1.gotoAndStop(eval ("/:playersStack" + /:playersStackN));
} else if (_root.P2.value == 0) {
_root.P2.gotoAndStop(eval ("/:playersStack" + /:playersStackN));
} else if (_root.P3.value == 0) {
_root.P3.gotoAndStop(eval ("/:playersStack" + /:playersStackN));
} else if (_root.P4.value == 0) {
_root.P4.gotoAndStop(eval ("/:playersStack" + /:playersStackN));
} else if (_root.P5.value == 0) {
_root.P5.gotoAndStop(eval ("/:playersStack" + /:playersStackN));
}
Set("/:playersStackN", /:playersStackN - 1);
if (0 >= /:playersStackN) {
Set("/:playersStackN", "");
}
Symbol 100 MovieClip Frame 11
if (((((_root.P1.value == 0) or (_root.P2.value == 0)) or (_root.P3.value == 0)) or (_root.P4.value == 0)) or (_root.P5.value == 0)) {
if (/:playersStackN ne "") {
gotoAndPlay (2);
} else {
gotoAndStop (1);
_root.PD.gotoAndStop(2);
}
} else if (/:playersStackN ne "") {
gotoAndStop (1);
} else {
gotoAndStop (1);
_root.PD.gotoAndStop(2);
}
Symbol 102 Button
on (release) {
Set("/:stuck", 0);
Set("/:sideStackN", /:sideStackN + 1);
if (2 < eval ("/:sideStack" + /:sideStackN)) {
_root.M1.gotoAndStop(eval ("/:sideStack" + /:sideStackN));
} else {
Set("/:sideStackN", 1);
_root.M1.gotoAndStop(eval ("/:sideStack" + /:sideStackN));
}
Set("/:sideStackN", /:sideStackN + 1);
if (2 < eval ("/:sideStack" + /:sideStackN)) {
_root.M2.gotoAndStop(eval ("/:sideStack" + /:sideStackN));
} else {
Set("/:sideStackN", 1);
_root.M2.gotoAndStop(eval ("/:sideStack" + /:sideStackN));
}
play();
}
Symbol 104 MovieClip Frame 1
stop();
Symbol 107 MovieClip Frame 1
stop();
Symbol 110 MovieClip Frame 1
stop();
value = 0;
Symbol 110 MovieClip Frame 2
value = 100;
Symbol 110 MovieClip Frame 3
stop();
value = 1;
Symbol 110 MovieClip Frame 4
value = 2;
Symbol 110 MovieClip Frame 5
value = 3;
Symbol 110 MovieClip Frame 6
value = 2;
Symbol 110 MovieClip Frame 7
value = 3;
Symbol 110 MovieClip Frame 8
value = 4;
Symbol 110 MovieClip Frame 9
value = 10;
Symbol 110 MovieClip Frame 10
value = 11;
Symbol 110 MovieClip Frame 11
value = 4;
Symbol 110 MovieClip Frame 12
value = 5;
Symbol 110 MovieClip Frame 13
value = 9;
Symbol 110 MovieClip Frame 14
value = 6;
Symbol 110 MovieClip Frame 15
value = 7;
Symbol 110 MovieClip Frame 16
value = 12;
Symbol 110 MovieClip Frame 17
value = 13;
Symbol 110 MovieClip Frame 18
value = 11;
Symbol 110 MovieClip Frame 19
value = 12;
Symbol 110 MovieClip Frame 20
value = 13;
Symbol 110 MovieClip Frame 21
value = 8;
Symbol 110 MovieClip Frame 22
value = 4;
Symbol 110 MovieClip Frame 23
value = 5;
Symbol 110 MovieClip Frame 24
value = 6;
Symbol 110 MovieClip Frame 25
value = 12;
Symbol 110 MovieClip Frame 26
value = 13;
Symbol 110 MovieClip Frame 27
value = 1;
Symbol 110 MovieClip Frame 28
value = 5;
Symbol 110 MovieClip Frame 29
value = 6;
Symbol 110 MovieClip Frame 30
value = 1;
Symbol 110 MovieClip Frame 31
value = 3;
Symbol 110 MovieClip Frame 32
value = 4;
Symbol 110 MovieClip Frame 33
value = 7;
Symbol 110 MovieClip Frame 34
value = 8;
Symbol 110 MovieClip Frame 35
value = 9;
Symbol 110 MovieClip Frame 36
value = 9;
Symbol 110 MovieClip Frame 37
value = 10;
Symbol 110 MovieClip Frame 38
value = 11;
Symbol 110 MovieClip Frame 39
value = 10;
Symbol 110 MovieClip Frame 40
value = 2;
Symbol 110 MovieClip Frame 41
value = 3;
Symbol 110 MovieClip Frame 42
value = 6;
Symbol 110 MovieClip Frame 43
value = 7;
Symbol 110 MovieClip Frame 44
value = 8;
Symbol 110 MovieClip Frame 45
value = 10;
Symbol 110 MovieClip Frame 46
value = 11;
Symbol 110 MovieClip Frame 47
value = 5;
Symbol 110 MovieClip Frame 48
value = 1;
Symbol 110 MovieClip Frame 49
value = 12;
Symbol 110 MovieClip Frame 50
value = 13;
Symbol 110 MovieClip Frame 51
value = 7;
Symbol 110 MovieClip Frame 52
value = 8;
Symbol 110 MovieClip Frame 53
value = 2;
Symbol 110 MovieClip Frame 54
value = 9;
Symbol 113 Button
on (press) {
startDrag ("", true);
}
on (release) {
stopDrag();
if (value == 13) {
cardUp = 1;
} else {
cardUp = value + 1;
}
if (value == 1) {
cardDown = 13;
} else {
cardDown = value - 1;
}
if (this._droptarget eq "/M1") {
if ((_root.M1.value == cardUp) or (_root.M1.value == cardDown)) {
Set("/:sideStackN2", /:sideStackN2 + 1);
Set("/:sideStack" + /:sideStackN2, _currentframe);
Set("/:bonus", /:bonus + /:bonus);
Set("/:score", /:score + /:bonus);
_root.combo.gotoAndPlay(2);
_root.M1.gotoAndStop(_currentframe);
if (/:playersStackN ne "") {
_root.addCard.gotoAndPlay(2);
} else {
value = 0;
if (((((_root.P1.value == 0) and (_root.P2.value == 0)) and (_root.P3.value == 0)) and (_root.P4.value == 0)) and (_root.P5.value == 0)) {
Set("/:endtime", (_root.timer.min * 100) + _root.timer.sec2);
x = 1;
while (5 >= x) {
if (2 < eval (("_root.D" + x) + "._currentframe")) {
Set("/:computerCards", /:computerCards + 1);
}
x++;
}
_root.gotoAndPlay("won");
}
}
gotoAndStop (2);
}
} else if (this._droptarget eq "/M2") {
if ((_root.M2.value == cardUp) or (_root.M2.value == cardDown)) {
Set("/:sideStackN2", /:sideStackN2 + 1);
Set("/:sideStack" + /:sideStackN2, _currentframe);
Set("/:bonus", /:bonus + /:bonus);
Set("/:score", /:score + /:bonus);
_root.combo.gotoAndPlay(2);
_root.M2.gotoAndStop(_currentframe);
if (/:playersStackN ne "") {
_root.addCard.gotoAndPlay(2);
} else {
value = 0;
if (((((_root.P1.value == 0) and (_root.P2.value == 0)) and (_root.P3.value == 0)) and (_root.P4.value == 0)) and (_root.P5.value == 0)) {
Set("/:endtime", (_root.timer.min * 100) + _root.timer.sec2);
x = 1;
while (5 >= x) {
if (2 < eval (("_root.D" + x) + "._currentframe")) {
Set("/:computerCards", /:computerCards + 1);
}
x++;
}
_root.gotoAndPlay("won");
}
}
gotoAndStop (2);
}
}
_x = startX;
_y = startY;
}
Symbol 116 MovieClip Frame 1
stop();
value = 0;
Symbol 116 MovieClip Frame 2
value = 0;
Symbol 116 MovieClip Frame 3
stop();
value = 1;
Symbol 116 MovieClip Frame 4
value = 2;
Symbol 116 MovieClip Frame 5
value = 3;
Symbol 116 MovieClip Frame 6
value = 2;
Symbol 116 MovieClip Frame 7
value = 3;
Symbol 116 MovieClip Frame 8
value = 4;
Symbol 116 MovieClip Frame 9
value = 10;
Symbol 116 MovieClip Frame 10
value = 11;
Symbol 116 MovieClip Frame 11
value = 4;
Symbol 116 MovieClip Frame 12
value = 5;
Symbol 116 MovieClip Frame 13
value = 9;
Symbol 116 MovieClip Frame 14
value = 6;
Symbol 116 MovieClip Frame 15
value = 7;
Symbol 116 MovieClip Frame 16
value = 12;
Symbol 116 MovieClip Frame 17
value = 13;
Symbol 116 MovieClip Frame 18
value = 11;
Symbol 116 MovieClip Frame 19
value = 12;
Symbol 116 MovieClip Frame 20
value = 13;
Symbol 116 MovieClip Frame 21
value = 8;
Symbol 116 MovieClip Frame 22
value = 4;
Symbol 116 MovieClip Frame 23
value = 5;
Symbol 116 MovieClip Frame 24
value = 6;
Symbol 116 MovieClip Frame 25
value = 12;
Symbol 116 MovieClip Frame 26
value = 13;
Symbol 116 MovieClip Frame 27
value = 1;
Symbol 116 MovieClip Frame 28
value = 5;
Symbol 116 MovieClip Frame 29
value = 6;
Symbol 116 MovieClip Frame 30
value = 1;
Symbol 116 MovieClip Frame 31
value = 3;
Symbol 116 MovieClip Frame 32
value = 4;
Symbol 116 MovieClip Frame 33
value = 7;
Symbol 116 MovieClip Frame 34
value = 8;
Symbol 116 MovieClip Frame 35
value = 9;
Symbol 116 MovieClip Frame 36
value = 9;
Symbol 116 MovieClip Frame 37
value = 10;
Symbol 116 MovieClip Frame 38
value = 11;
Symbol 116 MovieClip Frame 39
value = 10;
Symbol 116 MovieClip Frame 40
value = 2;
Symbol 116 MovieClip Frame 41
value = 3;
Symbol 116 MovieClip Frame 42
value = 6;
Symbol 116 MovieClip Frame 43
value = 7;
Symbol 116 MovieClip Frame 44
value = 8;
Symbol 116 MovieClip Frame 45
value = 10;
Symbol 116 MovieClip Frame 46
value = 11;
Symbol 116 MovieClip Frame 47
value = 5;
Symbol 116 MovieClip Frame 48
value = 1;
Symbol 116 MovieClip Frame 49
value = 12;
Symbol 116 MovieClip Frame 50
value = 13;
Symbol 116 MovieClip Frame 51
value = 7;
Symbol 116 MovieClip Frame 52
value = 8;
Symbol 116 MovieClip Frame 53
value = 2;
Symbol 116 MovieClip Frame 54
value = 9;
Symbol 126 MovieClip Frame 1
min = 3;
sec = 59;
sec2 = 59;
Symbol 126 MovieClip Frame 17
sec2 = sec2 - 1;
if ((sec2 < 10) and (sec2 >= 0)) {
sec = "0" + sec2;
} else {
sec = sec2;
}
if (((10 >= sec2) and (min == 0)) and (0 < sec2)) {
gotoAndPlay (18);
} else if ((sec2 == -1) and (0 < min)) {
sec2 = 60;
sec = sec2;
min = min - 1;
gotoAndPlay (2);
} else if ((sec2 == -1) and (min == 0)) {
stop();
sec = 0;
_root.gotoAndPlay("lost");
} else {
gotoAndPlay (2);
}
Symbol 126 MovieClip Frame 19
gotoAndPlay (2);
Symbol 130 MovieClip Frame 1
stop();
Symbol 130 MovieClip Frame 2
Set("/:bonusDisplay", "+" + /:bonus);
Symbol 145 MovieClip Frame 8
if (/:stuck == 7) {
_root.addCard2.gotoAndStop(2);
}
Symbol 145 MovieClip Frame 9
match = 0;
deck = 0;
matchDif = 0;
Symbol 145 MovieClip Frame 10
x = 1;
while (5 >= x) {
if (eval (("_root.D" + x) + ".value") == 13) {
cardUp = 1;
} else {
cardUp = eval (("_root.D" + x) + ".value") + 1;
}
if (eval (("_root.D" + x) + ".value") == 1) {
cardDown = 13;
} else {
cardDown = eval (("_root.D" + x) + ".value") - 1;
}
if ((_root.M1.value == cardUp) or (_root.M1.value == cardDown)) {
match = x;
deck = 1;
break;
}
if ((_root.M2.value == cardUp) or (_root.M2.value == cardDown)) {
match = x;
deck = 2;
break;
}
x++;
}
Symbol 145 MovieClip Frame 11
if (match == 0) {
Set("/:stuck", /:stuck + 1);
gotoAndPlay (2);
} else {
Set("/:stuck", 0);
dx = eval (("_root.D" + match) + "._x");
mx = eval (("_root.M" + deck) + "._x");
if (mx >= dx) {
dirrection = -1;
} else {
dirrection = -1;
}
eval (("_root.D" + match) + ".cover").gotoAndStop(2);
_root.addCard2.gotoAndStop(1);
if (/:level == 1) {
difX = ((eval (("_root.D" + match) + "._x") - eval (("_root.M" + deck) + "._x")) / 20) * dirrection;
difY = (eval (("_root.D" + match) + "._y") - eval (("_root.M" + deck) + "._y")) / 20;
} else if (/:level == 2) {
difX = ((eval (("_root.D" + match) + "._x") - eval (("_root.M" + deck) + "._x")) / 17) * dirrection;
difY = (eval (("_root.D" + match) + "._y") - eval (("_root.M" + deck) + "._y")) / 17;
gotoAndPlay (16);
} else if (/:level == 3) {
difX = ((eval (("_root.D" + match) + "._x") - eval (("_root.M" + deck) + "._x")) / 14) * dirrection;
difY = (eval (("_root.D" + match) + "._y") - eval (("_root.M" + deck) + "._y")) / 14;
gotoAndPlay (19);
} else if (/:level == 4) {
difX = ((eval (("_root.D" + match) + "._x") - eval (("_root.M" + deck) + "._x")) / 11) * dirrection;
difY = (eval (("_root.D" + match) + "._y") - eval (("_root.M" + deck) + "._y")) / 11;
gotoAndPlay (22);
} else {
difX = ((eval (("_root.D" + match) + "._x") - eval (("_root.M" + deck) + "._x")) / 8) * dirrection;
difY = (eval (("_root.D" + match) + "._y") - eval (("_root.M" + deck) + "._y")) / 8;
gotoAndPlay (25);
}
}
Symbol 145 MovieClip Frame 13
setProperty("_root.D" + match, _x , eval (("_root.D" + match) + "._x") + difX);
setProperty("_root.D" + match, _y , eval (("_root.D" + match) + "._y") - difY);
Symbol 145 MovieClip Frame 14
setProperty("_root.D" + match, _x , eval (("_root.D" + match) + "._x") + difX);
setProperty("_root.D" + match, _y , eval (("_root.D" + match) + "._y") - difY);
Symbol 145 MovieClip Frame 15
setProperty("_root.D" + match, _x , eval (("_root.D" + match) + "._x") + difX);
setProperty("_root.D" + match, _y , eval (("_root.D" + match) + "._y") - difY);
Symbol 145 MovieClip Frame 16
setProperty("_root.D" + match, _x , eval (("_root.D" + match) + "._x") + difX);
setProperty("_root.D" + match, _y , eval (("_root.D" + match) + "._y") - difY);
Symbol 145 MovieClip Frame 17
setProperty("_root.D" + match, _x , eval (("_root.D" + match) + "._x") + difX);
setProperty("_root.D" + match, _y , eval (("_root.D" + match) + "._y") - difY);
Symbol 145 MovieClip Frame 18
setProperty("_root.D" + match, _x , eval (("_root.D" + match) + "._x") + difX);
setProperty("_root.D" + match, _y , eval (("_root.D" + match) + "._y") - difY);
Symbol 145 MovieClip Frame 19
setProperty("_root.D" + match, _x , eval (("_root.D" + match) + "._x") + difX);
setProperty("_root.D" + match, _y , eval (("_root.D" + match) + "._y") - difY);
Symbol 145 MovieClip Frame 20
setProperty("_root.D" + match, _x , eval (("_root.D" + match) + "._x") + difX);
setProperty("_root.D" + match, _y , eval (("_root.D" + match) + "._y") - difY);
Symbol 145 MovieClip Frame 21
setProperty("_root.D" + match, _x , eval (("_root.D" + match) + "._x") + difX);
setProperty("_root.D" + match, _y , eval (("_root.D" + match) + "._y") - difY);
Symbol 145 MovieClip Frame 22
setProperty("_root.D" + match, _x , eval (("_root.D" + match) + "._x") + difX);
setProperty("_root.D" + match, _y , eval (("_root.D" + match) + "._y") - difY);
Symbol 145 MovieClip Frame 23
setProperty("_root.D" + match, _x , eval (("_root.D" + match) + "._x") + difX);
setProperty("_root.D" + match, _y , eval (("_root.D" + match) + "._y") - difY);
Symbol 145 MovieClip Frame 24
setProperty("_root.D" + match, _x , eval (("_root.D" + match) + "._x") + difX);
setProperty("_root.D" + match, _y , eval (("_root.D" + match) + "._y") - difY);
Symbol 145 MovieClip Frame 25
setProperty("_root.D" + match, _x , eval (("_root.D" + match) + "._x") + difX);
setProperty("_root.D" + match, _y , eval (("_root.D" + match) + "._y") - difY);
Symbol 145 MovieClip Frame 26
setProperty("_root.D" + match, _x , eval (("_root.D" + match) + "._x") + difX);
setProperty("_root.D" + match, _y , eval (("_root.D" + match) + "._y") - difY);
Symbol 145 MovieClip Frame 27
setProperty("_root.D" + match, _x , eval (("_root.D" + match) + "._x") + difX);
setProperty("_root.D" + match, _y , eval (("_root.D" + match) + "._y") - difY);
Symbol 145 MovieClip Frame 28
setProperty("_root.D" + match, _x , eval (("_root.D" + match) + "._x") + difX);
setProperty("_root.D" + match, _y , eval (("_root.D" + match) + "._y") - difY);
Symbol 145 MovieClip Frame 29
setProperty("_root.D" + match, _x , eval (("_root.D" + match) + "._x") + difX);
setProperty("_root.D" + match, _y , eval (("_root.D" + match) + "._y") - difY);
Symbol 145 MovieClip Frame 30
setProperty("_root.D" + match, _x , eval (("_root.D" + match) + "._x") + difX);
setProperty("_root.D" + match, _y , eval (("_root.D" + match) + "._y") - difY);
Symbol 145 MovieClip Frame 31
setProperty("_root.D" + match, _x , eval (("_root.D" + match) + "._x") + difX);
setProperty("_root.D" + match, _y , eval (("_root.D" + match) + "._y") - difY);
Symbol 145 MovieClip Frame 33
matchDif = eval (("_root.D" + match) + ".value") - eval (("_root.M" + deck) + ".value");
if ((((matchDif == -1) or (matchDif == 1)) or (matchDif == -12)) or (matchDif == 12)) {
Set("/:bonus", 1);
Set("/:sideStackN2", /:sideStackN2 + 1);
Set("/:sideStack" + /:sideStackN2, eval (("_root.D" + match) + "._currentframe"));
eval ("_root.M" + deck).gotoAndStop(eval (("_root.D" + match) + "._currentframe"));
setProperty("_root.D" + match, _x , eval (("_root.D" + match) + ".startX"));
setProperty("_root.D" + match, _y , eval (("_root.D" + match) + ".startY"));
if (/:dealersStackN >= 1) {
eval ("_root.D" + match).gotoAndStop(2);
gotoAndPlay (37);
} else {
eval ("_root.D" + match).gotoAndStop(2);
gotoAndPlay (2);
}
} else {
setProperty("_root.D" + match, _x , eval (("_root.D" + match) + ".startX"));
setProperty("_root.D" + match, _y , eval (("_root.D" + match) + ".startY"));
gotoAndPlay (2);
}
Symbol 145 MovieClip Frame 41
if (/:dealersStackN == "") {
if (((((_root.D1._currentframe == 2) and (_root.D2._currentframe == 2)) and (_root.D3._currentframe == 2)) and (_root.D4._currentframe == 2)) and (_root.D5._currentframe == 2)) {
Set("/:endtime", (_root.timer.min * 100) + _root.timer.sec2);
_root.gotoAndPlay("lost");
}
}
Symbol 145 MovieClip Frame 48
if ((/:dealersStackN >= 1) and (/:dealersStackN ne "")) {
Set("/:dealersStackN", /:dealersStackN - 1);
eval (("_root.D" + match) + ".cover").gotoAndStop(1);
eval ("_root.D" + match).gotoAndStop(eval ("/:dealersStack" + /:dealersStackN));
}
if (/:dealersStackN < 1) {
Set("/:dealersStackN", "");
_root.DD.gotoAndStop(2);
}
Symbol 145 MovieClip Frame 49
if (/:level == 1) {
gotoAndPlay (2);
} else if (/:level == 3) {
gotoAndPlay (3);
} else if (/:level == 4) {
gotoAndPlay (4);
} else if (/:level == 5) {
gotoAndPlay (5);
} else {
gotoAndPlay (6);
}
Symbol 147 MovieClip Frame 11
stop();
Symbol 184 Button
on (press) {
getURL ("http://www.flowgo.com/page.cfm?lk=40257");
}
Symbol 190 Button
on (press) {
score = _level0.score;
gcode = _level0.gcode;
if (score == 0) {
score = 5;
}
getURL ("http://www.gamerival.com/game.cfm", "_self", "POST");
}
Symbol 194 Button
on (press) {
_root.gotoAndPlay(1);
}
Symbol 200 MovieClip Frame 1
endText = ("You scored " + /:score) + " Points at Speed!";