Frame 1
_root.slidemusic_X = 0;
_root.slidesound_X = 0;
count = 0;
countsound = 0;
activate = 0;
blockComputerMove = 0;
fscommand ("showmenu", false);
Instance of Symbol 22 MovieClip in Frame 1
onClipEvent (load) {
this.swapDepths(35555);
}
Instance of Symbol 25 MovieClip "randomizer" in Frame 2
onClipEvent (load) {
total = 51;
}
Frame 3
stop();
Frame 4
options_bt._visible = true;
controls._visible = true;
N = 0;
score = 0;
level = 1;
_root.snd1.musicObj.start(0, 10000);
Frame 7
Set("/:bonus", 10 * /:level);
Set("/:computerCards", 0);
Set("/:endtime", 0);
CCB = 0;
TB = 0;
N = 1;
x = 1;
while (x <= 5) {
this["playerHand" + x] = eval ("_root.randomizer.cardNumberq" + N);
N = N + 1;
x++;
}
N = 6;
x = 1;
while (x <= 5) {
this["dealerHand" + x] = eval ("_root.randomizer.cardNumberq" + N);
N = N + 1;
x++;
}
N = 10;
x = 1;
while (x <= 17) {
this["playersStack" + x] = eval ("_root.randomizer.cardNumberq" + N);
N = N + 1;
x++;
}
playersStackN = 17;
x = 1;
while (x <= 17) {
this["dealersStack" + x] = eval ("_root.randomizer.cardNumberq" + N);
N = N + 1;
x++;
}
dealersStackN = 17;
sideStackN = 0;
sideStackN2 = 6;
x = 1;
while (x <= 6) {
this["sideStack" + x] = eval ("_root.randomizer.cardNumberq" + N);
N = N + 1;
x++;
}
middleStack1 = eval ("_root.randomizer.cardNumberq" + N);
N = N + 1;
middleStack2 = eval ("_root.randomizer.cardNumberq" + N);
middleStackN = 2;
N = N + 1;
Instance of Symbol 84 MovieClip "M1" in Frame 7
onClipEvent (load) {
startX = _x;
startY = _y;
}
Instance of Symbol 84 MovieClip "M2" in Frame 7
onClipEvent (load) {
startX = _x;
startY = _y;
}
Instance of Symbol 98 MovieClip "D1" in Frame 7
onClipEvent (load) {
startX = _x;
startY = _y;
}
Instance of Symbol 98 MovieClip "D2" in Frame 7
onClipEvent (load) {
startX = _x;
startY = _y;
}
Instance of Symbol 98 MovieClip "D3" in Frame 7
onClipEvent (load) {
startX = _x;
startY = _y;
}
Instance of Symbol 98 MovieClip "D4" in Frame 7
onClipEvent (load) {
startX = _x;
startY = _y;
}
Instance of Symbol 98 MovieClip "D5" in Frame 7
onClipEvent (load) {
startX = _x;
startY = _y;
}
Instance of Symbol 103 MovieClip "P5" in Frame 7
onClipEvent (load) {
startX = _x;
startY = _y;
}
Instance of Symbol 103 MovieClip "P4" in Frame 7
onClipEvent (load) {
startX = _x;
startY = _y;
}
Instance of Symbol 103 MovieClip "P3" in Frame 7
onClipEvent (load) {
startX = _x;
startY = _y;
}
Instance of Symbol 103 MovieClip "P2" in Frame 7
onClipEvent (load) {
startX = _x;
startY = _y;
}
Instance of Symbol 103 MovieClip "P1" in Frame 7
onClipEvent (load) {
startX = _x;
startY = _y;
}
Instance of Symbol 105 MovieClip in Frame 7
onClipEvent (enterFrame) {
if (_parent.dealersStackN == "") {
this._visible = false;
} else {
this._visible = true;
}
}
Instance of Symbol 107 MovieClip in Frame 7
onClipEvent (enterFrame) {
if (_parent.playersStackN == "") {
this._visible = false;
} else {
this._visible = true;
}
}
Frame 16
_root.D1.gotoAndStop(dealerHand1);
_root.P1.gotoAndStop(playerHand1);
Frame 18
_root.D2.gotoAndStop(dealerHand2);
_root.P2.gotoAndStop(playerHand2);
Frame 20
_root.D3.gotoAndStop(dealerHand3);
_root.P3.gotoAndStop(playerHand3);
Frame 22
_root.D4.gotoAndStop(dealerHand4);
_root.P4.gotoAndStop(playerHand4);
Frame 24
_root.D5.gotoAndStop(dealerHand5);
_root.P5.gotoAndStop(playerHand5);
Frame 35
_root.M1.gotoAndStop(middleStack1);
Frame 37
_root.M2.gotoAndStop(middleStack2);
Frame 46
stop();
Frame 52
Set("/:win", 1);
Instance of Symbol 167 MovieClip in Frame 52
onClipEvent (enterFrame) {
_parent.options_bt._visible = false;
_parent.controls._visible = false;
_root.D1._visible = false;
_root.D2._visible = false;
_root.D3._visible = false;
_root.D4._visible = false;
_root.D5._visible = false;
_root.P1._visible = false;
_root.P2._visible = false;
_root.P3._visible = false;
_root.P4._visible = false;
_root.P5._visible = false;
}
Frame 69
gotoAndPlay (100);
Frame 70
Set("/:win", 0);
setDeactive();
Frame 91
gotoAndStop (140);
Frame 112
trace("/:endtime = " + /:endtime);
TB = /:endtime * /:level;
score = score + TB;
_root.dbInterface.updateScore(score);
Frame 119
if (dealersStackN != "") {
CCB = dealersStackN;
} else {
CCB = 0;
}
CCB = (CCB + /:computerCards) * 100;
score = score + CCB;
_root.dbInterface.updateScore(score);
Frame 133
if (/:win == 1) {
level = level + 1;
gotoAndPlay (6);
}
Frame 140
stop();
trace("Score END-----");
stopAllSounds();
Symbol 6 MovieClip Frame 1
musicObj = new Sound(this);
musicObj.attachSound("bgmusic");
Symbol 7 MovieClip Frame 1
computerObj = new Sound(this);
computerObj.attachSound("computer");
Symbol 9 MovieClip Frame 1
playerObj = new Sound(this);
playerObj.attachSound("player");
Symbol 21 MovieClip Frame 1
stop();
Symbol 22 MovieClip Frame 1
stop();
LoaderBlk.useHandCursor = false;
Instance of Symbol 21 MovieClip in Symbol 22 MovieClip Frame 1
onClipEvent (load) {
total = _parent._parent.getBytesTotal();
}
onClipEvent (enterFrame) {
loaded = _parent._parent.getBytesLoaded();
percent = int((loaded / total) * 100);
gotoAndStop(percent);
perText = percent + "%";
if (percent >= 100) {
_parent.gotoAndStop(2);
}
}
Symbol 22 MovieClip Frame 2
stop();
_parent.gotoAndPlay(2);
Symbol 25 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;
this["cardNumberq" + x] = a[x - 1] + 3;
}
Symbol 25 MovieClip Frame 3
stop();
Symbol 29 Button
on (release) {
gotoAndPlay (4);
}
Symbol 84 MovieClip Frame 1
stop();
value = 0;
Symbol 84 MovieClip Frame 2
value = 0;
Symbol 84 MovieClip Frame 3
stop();
value = 1;
Symbol 84 MovieClip Frame 4
value = 2;
Symbol 84 MovieClip Frame 5
value = 3;
Symbol 84 MovieClip Frame 6
value = 2;
Symbol 84 MovieClip Frame 7
value = 3;
Symbol 84 MovieClip Frame 8
value = 4;
Symbol 84 MovieClip Frame 9
value = 10;
Symbol 84 MovieClip Frame 10
value = 11;
Symbol 84 MovieClip Frame 11
value = 4;
Symbol 84 MovieClip Frame 12
value = 5;
Symbol 84 MovieClip Frame 13
value = 9;
Symbol 84 MovieClip Frame 14
value = 6;
Symbol 84 MovieClip Frame 15
value = 7;
Symbol 84 MovieClip Frame 16
value = 12;
Symbol 84 MovieClip Frame 17
value = 13;
Symbol 84 MovieClip Frame 18
value = 11;
Symbol 84 MovieClip Frame 19
value = 12;
Symbol 84 MovieClip Frame 20
value = 13;
Symbol 84 MovieClip Frame 21
value = 8;
Symbol 84 MovieClip Frame 22
value = 4;
Symbol 84 MovieClip Frame 23
value = 5;
Symbol 84 MovieClip Frame 24
value = 6;
Symbol 84 MovieClip Frame 25
value = 12;
Symbol 84 MovieClip Frame 26
value = 13;
Symbol 84 MovieClip Frame 27
value = 1;
Symbol 84 MovieClip Frame 28
value = 5;
Symbol 84 MovieClip Frame 29
value = 6;
Symbol 84 MovieClip Frame 30
value = 1;
Symbol 84 MovieClip Frame 31
value = 3;
Symbol 84 MovieClip Frame 32
value = 4;
Symbol 84 MovieClip Frame 33
value = 7;
Symbol 84 MovieClip Frame 34
value = 8;
Symbol 84 MovieClip Frame 35
value = 9;
Symbol 84 MovieClip Frame 36
value = 9;
Symbol 84 MovieClip Frame 37
value = 10;
Symbol 84 MovieClip Frame 38
value = 11;
Symbol 84 MovieClip Frame 39
value = 10;
Symbol 84 MovieClip Frame 40
value = 2;
Symbol 84 MovieClip Frame 41
value = 3;
Symbol 84 MovieClip Frame 42
value = 6;
Symbol 84 MovieClip Frame 43
value = 7;
Symbol 84 MovieClip Frame 44
value = 8;
Symbol 84 MovieClip Frame 45
value = 10;
Symbol 84 MovieClip Frame 46
value = 11;
Symbol 84 MovieClip Frame 47
value = 5;
Symbol 84 MovieClip Frame 48
value = 1;
Symbol 84 MovieClip Frame 49
value = 12;
Symbol 84 MovieClip Frame 50
value = 13;
Symbol 84 MovieClip Frame 51
value = 7;
Symbol 84 MovieClip Frame 52
value = 8;
Symbol 84 MovieClip Frame 53
value = 2;
Symbol 84 MovieClip Frame 54
value = 9;
Symbol 90 Button
on (release) {
_parent.blockComputerMove = 1;
Set("/:stuck", 0);
Set("/:sideStackN", /:sideStackN + 1);
if (eval ("/:sideStack" + /:sideStackN) > 2) {
_root.M1.gotoAndStop(eval ("/:sideStack" + /:sideStackN));
} else {
Set("/:sideStackN", 1);
_root.M1.gotoAndStop(eval ("/:sideStack" + /:sideStackN));
}
Set("/:sideStackN", /:sideStackN + 1);
if (eval ("/:sideStack" + /:sideStackN) > 2) {
_root.M2.gotoAndStop(eval ("/:sideStack" + /:sideStackN));
} else {
Set("/:sideStackN", 1);
_root.M2.gotoAndStop(eval ("/:sideStack" + /:sideStackN));
}
play();
}
Symbol 91 Button
on (release) {
_parent.blockComputerMove = 1;
Set("/:stuck", 0);
Set("/:sideStackN", /:sideStackN + 1);
if (eval ("/:sideStack" + /:sideStackN) > 2) {
_root.M1.gotoAndStop(eval ("/:sideStack" + /:sideStackN));
} else {
Set("/:sideStackN", 1);
_root.M1.gotoAndStop(eval ("/:sideStack" + /:sideStackN));
}
Set("/:sideStackN", /:sideStackN + 1);
if (eval ("/:sideStack" + /:sideStackN) > 2) {
_root.M2.gotoAndStop(eval ("/:sideStack" + /:sideStackN));
} else {
Set("/:sideStackN", 1);
_root.M2.gotoAndStop(eval ("/:sideStack" + /:sideStackN));
}
play();
}
Symbol 94 MovieClip Frame 1
stop();
Symbol 94 MovieClip Frame 2
Symbol 95 MovieClip Frame 1
stop();
Symbol 98 MovieClip Frame 1
stop();
value = 0;
Symbol 98 MovieClip Frame 2
value = 100;
Symbol 98 MovieClip Frame 3
stop();
value = 1;
Symbol 98 MovieClip Frame 4
value = 2;
Symbol 98 MovieClip Frame 5
value = 3;
Symbol 98 MovieClip Frame 6
value = 2;
Symbol 98 MovieClip Frame 7
value = 3;
Symbol 98 MovieClip Frame 8
value = 4;
Symbol 98 MovieClip Frame 9
value = 10;
Symbol 98 MovieClip Frame 10
value = 11;
Symbol 98 MovieClip Frame 11
value = 4;
Symbol 98 MovieClip Frame 12
value = 5;
Symbol 98 MovieClip Frame 13
value = 9;
Symbol 98 MovieClip Frame 14
value = 6;
Symbol 98 MovieClip Frame 15
value = 7;
Symbol 98 MovieClip Frame 16
value = 12;
Symbol 98 MovieClip Frame 17
value = 13;
Symbol 98 MovieClip Frame 18
value = 11;
Symbol 98 MovieClip Frame 19
value = 12;
Symbol 98 MovieClip Frame 20
value = 13;
Symbol 98 MovieClip Frame 21
value = 8;
Symbol 98 MovieClip Frame 22
value = 4;
Symbol 98 MovieClip Frame 23
value = 5;
Symbol 98 MovieClip Frame 24
value = 6;
Symbol 98 MovieClip Frame 25
value = 12;
Symbol 98 MovieClip Frame 26
value = 13;
Symbol 98 MovieClip Frame 27
value = 1;
Symbol 98 MovieClip Frame 28
value = 5;
Symbol 98 MovieClip Frame 29
value = 6;
Symbol 98 MovieClip Frame 30
value = 1;
Symbol 98 MovieClip Frame 31
value = 3;
Symbol 98 MovieClip Frame 32
value = 4;
Symbol 98 MovieClip Frame 33
value = 7;
Symbol 98 MovieClip Frame 34
value = 8;
Symbol 98 MovieClip Frame 35
value = 9;
Symbol 98 MovieClip Frame 36
value = 9;
Symbol 98 MovieClip Frame 37
value = 10;
Symbol 98 MovieClip Frame 38
value = 11;
Symbol 98 MovieClip Frame 39
value = 10;
Symbol 98 MovieClip Frame 40
value = 2;
Symbol 98 MovieClip Frame 41
value = 3;
Symbol 98 MovieClip Frame 42
value = 6;
Symbol 98 MovieClip Frame 43
value = 7;
Symbol 98 MovieClip Frame 44
value = 8;
Symbol 98 MovieClip Frame 45
value = 10;
Symbol 98 MovieClip Frame 46
value = 11;
Symbol 98 MovieClip Frame 47
value = 5;
Symbol 98 MovieClip Frame 48
value = 1;
Symbol 98 MovieClip Frame 49
value = 12;
Symbol 98 MovieClip Frame 50
value = 13;
Symbol 98 MovieClip Frame 51
value = 7;
Symbol 98 MovieClip Frame 52
value = 8;
Symbol 98 MovieClip Frame 53
value = 2;
Symbol 98 MovieClip Frame 54
value = 9;
Symbol 101 Button
on (press) {
thisDepth = this.getDepth();
startDrag ("", true);
this.swapDepths(16000);
}
on (release, releaseOutside) {
this.swapDepths(thisDepth);
if (value == 13) {
cardUp = 1;
} else {
cardUp = value + 1;
}
if (value == 1) {
cardDown = 13;
} else {
cardDown = value - 1;
}
if (this._droptarget == "/M1") {
if ((_root.M1.value == cardUp) || (_root.M1.value == cardDown)) {
Set("/:sideStackN2", /:sideStackN2 + 1);
this["/:sideStack" + /:sideStackN2] = _currentframe;
Set("/:score", /:score + /:bonus);
_root.dbInterface.updateScore(/:score);
_root.combo.gotoAndPlay(2);
_root.M1.gotoAndStop(_currentframe);
if (/:playersStackN != "") {
_root.addCard.gotoAndPlay(2);
} else {
value = 0;
if (((((_root.P1.value == 0) && (_root.P2.value == 0)) && (_root.P3.value == 0)) && (_root.P4.value == 0)) && (_root.P5.value == 0)) {
Set("/:endtime", (_root.timer.min * 60) + _root.timer.sec2);
x = 1;
while (x <= 5) {
if (eval (("_root.D" + x) + "._currentframe") > 2) {
Set("/:computerCards", /:computerCards + 1);
}
x++;
}
if (/:computerCards != 0) {
_root.gotoAndPlay("won");
} else if (/:computerCards == 0) {
_root.gotoAndPlay("lost");
}
}
}
gotoAndStop (2);
}
} else if (this._droptarget == "/M2") {
if ((_root.M2.value == cardUp) || (_root.M2.value == cardDown)) {
Set("/:sideStackN2", /:sideStackN2 + 1);
this["/:sideStack" + /:sideStackN2] = _currentframe;
Set("/:score", /:score + /:bonus);
_root.dbInterface.updateScore(/:score);
_root.combo.gotoAndPlay(2);
_root.M2.gotoAndStop(_currentframe);
if (/:playersStackN != "") {
_root.addCard.gotoAndPlay(2);
} else {
value = 0;
if (((((_root.P1.value == 0) && (_root.P2.value == 0)) && (_root.P3.value == 0)) && (_root.P4.value == 0)) && (_root.P5.value == 0)) {
Set("/:endtime", (_root.timer.min * 60) + _root.timer.sec2);
x = 1;
while (x <= 5) {
if (eval (("_root.D" + x) + "._currentframe") > 2) {
Set("/:computerCards", /:computerCards + 1);
}
x++;
}
if (/:computerCards != 0) {
_root.gotoAndPlay("won");
} else if (/:computerCards == 0) {
_root.gotoAndPlay("lost");
}
}
}
gotoAndStop (2);
}
}
_x = startX;
_y = startY;
stopDrag();
}
Symbol 103 MovieClip Frame 1
stop();
value = 0;
Symbol 103 MovieClip Frame 2
value = 0;
Symbol 103 MovieClip Frame 3
stop();
value = 1;
Symbol 103 MovieClip Frame 4
value = 2;
Symbol 103 MovieClip Frame 5
value = 3;
Symbol 103 MovieClip Frame 6
value = 2;
Symbol 103 MovieClip Frame 7
value = 3;
Symbol 103 MovieClip Frame 8
value = 4;
Symbol 103 MovieClip Frame 9
value = 10;
Symbol 103 MovieClip Frame 10
value = 11;
Symbol 103 MovieClip Frame 11
value = 4;
Symbol 103 MovieClip Frame 12
value = 5;
Symbol 103 MovieClip Frame 13
value = 9;
Symbol 103 MovieClip Frame 14
value = 6;
Symbol 103 MovieClip Frame 15
value = 7;
Symbol 103 MovieClip Frame 16
value = 12;
Symbol 103 MovieClip Frame 17
value = 13;
Symbol 103 MovieClip Frame 18
value = 11;
Symbol 103 MovieClip Frame 19
value = 12;
Symbol 103 MovieClip Frame 20
value = 13;
Symbol 103 MovieClip Frame 21
value = 8;
Symbol 103 MovieClip Frame 22
value = 4;
Symbol 103 MovieClip Frame 23
value = 5;
Symbol 103 MovieClip Frame 24
value = 6;
Symbol 103 MovieClip Frame 25
value = 12;
Symbol 103 MovieClip Frame 26
value = 13;
Symbol 103 MovieClip Frame 27
value = 1;
Symbol 103 MovieClip Frame 28
value = 5;
Symbol 103 MovieClip Frame 29
value = 6;
Symbol 103 MovieClip Frame 30
value = 1;
Symbol 103 MovieClip Frame 31
value = 3;
Symbol 103 MovieClip Frame 32
value = 4;
Symbol 103 MovieClip Frame 33
value = 7;
Symbol 103 MovieClip Frame 34
value = 8;
Symbol 103 MovieClip Frame 35
value = 9;
Symbol 103 MovieClip Frame 36
value = 9;
Symbol 103 MovieClip Frame 37
value = 10;
Symbol 103 MovieClip Frame 38
value = 11;
Symbol 103 MovieClip Frame 39
value = 10;
Symbol 103 MovieClip Frame 40
value = 2;
Symbol 103 MovieClip Frame 41
value = 3;
Symbol 103 MovieClip Frame 42
value = 6;
Symbol 103 MovieClip Frame 43
value = 7;
Symbol 103 MovieClip Frame 44
value = 8;
Symbol 103 MovieClip Frame 45
value = 10;
Symbol 103 MovieClip Frame 46
value = 11;
Symbol 103 MovieClip Frame 47
value = 5;
Symbol 103 MovieClip Frame 48
value = 1;
Symbol 103 MovieClip Frame 49
value = 12;
Symbol 103 MovieClip Frame 50
value = 13;
Symbol 103 MovieClip Frame 51
value = 7;
Symbol 103 MovieClip Frame 52
value = 8;
Symbol 103 MovieClip Frame 53
value = 2;
Symbol 103 MovieClip Frame 54
value = 9;
Symbol 111 MovieClip Frame 1
stop();
Symbol 119 MovieClip Frame 1
min = 3;
sec = 59;
sec2 = 59;
Symbol 119 MovieClip Frame 17
sec2 = sec2 - 1;
if ((sec2 < 10) && (sec2 >= 0)) {
sec = "0" + sec2;
} else {
sec = sec2;
}
if (((sec2 <= 10) && (min == 0)) && (sec2 > 0)) {
gotoAndPlay (18);
} else if ((sec2 == -1) && (min > 0)) {
sec2 = 60;
sec = sec2;
min = min - 1;
gotoAndPlay (2);
} else if ((sec2 == -1) && (min == 0)) {
stop();
sec = 0;
_root.gotoAndPlay("lost");
} else {
gotoAndPlay (2);
}
Symbol 119 MovieClip Frame 19
gotoAndPlay (2);
Symbol 134 MovieClip Frame 1
stop();
Symbol 134 MovieClip Frame 2
_root.snd3.playerObj.start(0, 1);
Set("/:bonusDisplay", "+" + /:bonus);
Symbol 139 MovieClip Frame 1
stop();
if (((((_root.P1.value == 0) || (_root.P2.value == 0)) || (_root.P3.value == 0)) || (_root.P4.value == 0)) || (_root.P5.value == 0)) {
if (/:playersStackN != "") {
gotoAndPlay (2);
} else {
gotoAndStop (1);
_root.PD.gotoAndStop(2);
}
} else if (/:playersStackN != "") {
gotoAndStop (1);
} else {
gotoAndStop (1);
_root.PD.gotoAndStop(2);
}
Symbol 139 MovieClip Frame 2
play();
Symbol 139 MovieClip Frame 3
play();
Symbol 139 MovieClip Frame 8
if (_root.P1.value == 0) {
_root.P1.gotoAndStop(eval ("_root.playersStack" + _root.playersStackN));
} else if (_root.P2.value == 0) {
_root.P2.gotoAndStop(eval ("_root.playersStack" + _root.playersStackN));
} else if (_root.P3.value == 0) {
_root.P3.gotoAndStop(eval ("_root.playersStack" + _root.playersStackN));
} else if (_root.P4.value == 0) {
_root.P4.gotoAndStop(eval ("_root.playersStack" + _root.playersStackN));
} else if (_root.P5.value == 0) {
_root.P5.gotoAndStop(eval ("_root.playersStack" + _root.playersStackN));
}
_root.playersStackN = _root.playersStackN - 1;
if (_root.playersStackN <= 0) {
_root.playersStackN = "";
}
Symbol 139 MovieClip Frame 11
if (((((_root.P1.value == 0) || (_root.P2.value == 0)) || (_root.P3.value == 0)) || (_root.P4.value == 0)) || (_root.P5.value == 0)) {
if (/:playersStackN != "") {
gotoAndPlay (2);
} else {
gotoAndStop (1);
_root.PD.gotoAndStop(2);
}
} else if (/:playersStackN != "") {
gotoAndStop (1);
} else {
gotoAndStop (1);
_root.PD.gotoAndStop(2);
}
Symbol 143 MovieClip Frame 8
if (/:stuck == 7) {
_root.addCard2q.gotoAndStop(2);
}
Symbol 143 MovieClip Frame 9
match = 0;
deck = 0;
matchDif = 0;
Symbol 143 MovieClip Frame 10
x = 1;
while (x <= 5) {
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) || (_root.M1.value == cardDown)) {
match = x;
deck = 1;
break;
}
if ((_root.M2.value == cardUp) || (_root.M2.value == cardDown)) {
match = x;
deck = 2;
break;
}
x++;
}
Symbol 143 MovieClip Frame 11
if ((_parent.blockComputerMove >= 1) && (_parent.blockComputerMove < 6)) {
_parent.blockComputerMove++;
trace("_parent.blockComputerMove : " + _parent.blockComputerMove);
if (_parent.blockComputerMove == 5) {
_parent.blockComputerMove = 0;
}
gotoAndPlay (2);
} else 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.addCard2q.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 143 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 143 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 143 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 143 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 143 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 143 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 143 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 143 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 143 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 143 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 143 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 143 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 143 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 143 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 143 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 143 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 143 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 143 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 143 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 143 MovieClip Frame 33
matchDif = eval (("_root.D" + match) + ".value") - eval (("_root.M" + deck) + ".value");
if ((((matchDif == -1) || (matchDif == 1)) || (matchDif == -12)) || (matchDif == 12)) {
Set("/:sideStackN2", /:sideStackN2 + 1);
trace("sideStackN = " + /:sideStackN2);
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"));
eval (("_root.D" + match) + ".cover").gotoAndStop(1);
gotoAndPlay (2);
}
Symbol 143 MovieClip Frame 38
_root.snd2.computerObj.start(0, 1);
Symbol 143 MovieClip Frame 41
if (/:dealersStackN == "") {
if (((((_root.D1._currentframe == 2) && (_root.D2._currentframe == 2)) && (_root.D3._currentframe == 2)) && (_root.D4._currentframe == 2)) && (_root.D5._currentframe == 2)) {
trace("_root.timer.min = " + _root.timer.min);
Set("/:endtime", (_root.timer.min * 60) + _root.timer.sec2);
_root.gotoAndPlay("lost");
}
}
Symbol 143 MovieClip Frame 48
if ((/:dealersStackN >= 1) && (/:dealersStackN != "")) {
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 143 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 Button
on (release) {
if (_root.activate == 0) {
controls.gotoAndPlay(2);
}
dealer_mc.gotoAndStop(1);
timer.gotoAndStop(2);
}
Symbol 156 Button
on (press) {
startDrag (this, true, left_M, top_M, right_M, bottom_M);
}
on (release, releaseOutside) {
stopDrag();
}
Symbol 158 Button
on (press) {
startDrag (this, false, left_j, top_j, right_j, bottom_j);
}
on (release, releaseOutside) {
stopDrag();
}
Symbol 161 Button
on (release) {
_parent.dealer_mc.gotoAndPlay(2);
_parent.timer.gotoAndPlay(3);
_root.slidemusic_X = slidemusic._x;
_root.slidesound_X = slidesound._x;
gotoAndStop (1);
}
Symbol 162 MovieClip Frame 1
stop();
_root.activate = 0;
Symbol 162 MovieClip Frame 2
blocker.useHandCursor = false;
_root.activate = 1;
Symbol 162 MovieClip Frame 23
stop();
_root.activate = 1;
Instance of Symbol 157 MovieClip "slidemusic" in Symbol 162 MovieClip Frame 23
onClipEvent (load) {
right_M = _x + 100;
top_M = _y;
bottom_M = _y;
left_M = _x;
if (_root.count == 0) {
_x = (_x + 100);
} else {
_x = _root.slidemusic_X;
}
}
onClipEvent (enterFrame) {
_root.count = 1;
_root.snd1.musicObj.setVolume(_x - left_M);
}
Instance of Symbol 159 MovieClip "slidesound" in Symbol 162 MovieClip Frame 23
onClipEvent (load) {
top_j = _y;
bottom_j = _y;
left_j = _x;
right_j = _x + 100;
if (_root.countsound == 0) {
_x = (_x + 100);
} else {
_x = _root.slidesound_X;
}
}
onClipEvent (enterFrame) {
_root.countsound = 1;
_root.snd2.computerObj.setVolume(_x - left_j);
_root.snd3.playerObj.setVolume(_x - left_j);
}
Symbol 185 MovieClip Frame 1
trace("score=" + score);
trace("/:score=" + /:score);
endText = /:score;
Symbol 187 Button
on (release) {
gotoAndStop (3);
}
Symbol 189 Button
on (release) {
getURL ("http://www.ikoncity.com/ic-master.asp?pageID=805", "_blank");
}