Frame 1
fscommand ("showmenu", false);
if (_framesloaded == _totalframes) {
gotoAndStop (3);
}
fscommand ("allowscale", "false");
fscommand ("showmenu", "false");
Frame 2
gotoAndPlay (1);
Frame 3
lab = random(6) + 1;
stop();
Frame 5
function selectBackground(n) {
lab = n;
i = 0;
while (i < 52) {
eval (all[i]).cb.gotoAndStop(n);
i++;
}
}
function restart() {
i = 0;
while (i < 52) {
eval (all[i]).removeMovieClip();
i++;
}
gotoAndPlay (4);
}
function GetCards(forwho, num, cardDepth) {
var card = new Array();
var myCards = new Array();
var myCardsLength = 0;
var i = 0;
while (i < num) {
var n = random(cardslength);
card[i] = cards[n];
cards.splice(n, 1);
myCardsLength = myCards.push(card[i]);
cardslength = cards.length;
attachMovie(card[i], card[i], cardDepth);
cardDepth = cardDepth + 1;
var a = eval (card[i]);
var b = eval (forwho);
with (a) {
if (b == a1) {
_x = b._x;
_y = b._y;
gotoAndStop(20);
cb.gotoAndStop(lab);
} else {
_x = b._x;
_y = b._y + (4 * i);
if (i < (num - 1)) {
gotoAndStop(20);
cb.gotoAndStop(lab);
} else {
gotoAndStop(1);
}
}
}
i++;
}
return(myCards);
}
function swap(name) {
o = eval ("o" + name);
var g = eval (o.group);
(i = o.order);
(j = 0);
while (i < g.length) {
eval (g[i]).swapDepths(eval (swapCards[j]));
i++;
j++;
}
}
function pressEvent(name) {
swap(name);
attachMovie("dragMC", "dragCards", 0);
}
function releaseEvent(name, x, y) {
swap(name);
a = eval (name);
detect = eval ("o" + name).group;
if (name.substring(1, 3) == "01") {
i = 1;
while (4 >= i) {
var b = eval ("b" + i);
var c = (("b" + i) + "Cards");
var p = eval (("b" + i) + "Cards");
if (a.hitTest(b) && (p.length == 0)) {
a._x = b._x;
a._y = b._y;
p.push(name);
eval (o.group).pop(name);
o.group = c;
o.order = 0;
o.depth = 181 + (20 * i);
attachMovie("deep", "temp", 181 + (20 * i));
eval (name).swapDepths(temp);
temp.removeMovieClip();
break;
}
i++;
}
bottom(name);
other(detect);
} else if (name.substring(1, 3) == "13") {
top(name);
i = 1;
while (7 >= i) {
var b = eval ("d" + i);
var c = (("d" + i) + "Cards");
var p = eval (("d" + i) + "Cards");
var s = p.length;
if (a.hitTest(b) && (p.length == 0)) {
(k = o.order);
(j = 0);
while (k < eval (o.group).length) {
d = eval (eval (o.group)[k]);
d._x = b._x;
d._y = b._y + (15 * j);
k++;
j++;
}
k = o.order;
while (k < eval (o.group).length) {
p.push(eval (o.group)[k]);
k++;
}
eval (o.group).splice(o.order, eval (o.group).length - o.order);
k = s;
while (k < p.length) {
var h = ((20 * i) - 19);
eval ("o" + p[k]).group = c;
eval ("o" + p[k]).order = k;
attachMovie("deep", "temp" + k, h + k);
eval (p[k]).swapDepths(eval ("temp" + k));
eval ("o" + p[k]).depth = h + k;
eval ("temp" + k).removeMovieClip();
k++;
}
break;
}
i++;
}
other(detect);
} else {
top(name);
bottom(name);
other(detect);
}
dragCards.removeMovieClip();
if ((o.group.substring(0, 1) != "b") && (eval (o.group).length == (o.order + 1))) {
a.play();
}
end();
}
function top(name) {
i = 1;
while (4 >= i) {
var c = (("b" + i) + "Cards");
var p = eval (("b" + i) + "Cards");
var b = p[p.length - 1];
if ((((0 < p.length) && (a.hitTest(eval (b)))) && ((name.substring(1, 3) - b.substring(1, 3)) == 1)) && ((name.substring(3, 4) - b.substring(3, 4)) == 0)) {
a._x = eval (b)._x;
a._y = eval (b)._y;
p.push(name);
eval (o.group).pop(name);
o.group = c;
o.order = p.length - 1;
o.depth = eval ("o" + p[p.length - 2]).depth + 1;
attachMovie("deep", "temp", o.depth);
eval (name).swapDepths(temp);
temp.removeMovieClip();
return;
}
i++;
}
}
function bottom(name) {
i = 1;
while (7 >= i) {
var c = (("d" + i) + "Cards");
var p = eval (("d" + i) + "Cards");
var s = p.length;
var t = p[p.length - 1];
var b = eval (t);
if (((a.hitTest(b) && (b._currentframe == 1)) && ((t.substring(1, 3) - name.substring(1, 3)) == 1)) && ((Math.abs(t.substring(3, 4) - name.substring(3, 4)) % 2) != 0)) {
(k = o.order);
(j = 1);
while (k < eval (o.group).length) {
d = eval (eval (o.group)[k]);
d._x = b._x;
d._y = b._y + (15 * j);
k++;
j++;
}
k = o.order;
while (k < eval (o.group).length) {
p.push(eval (o.group)[k]);
k++;
}
eval (o.group).splice(o.order, eval (o.group).length - o.order);
k = s;
while (k < p.length) {
var h = ((20 * i) - 19);
eval ("o" + p[k]).group = c;
eval ("o" + p[k]).order = k;
attachMovie("deep", "temp" + k, h + k);
eval (p[k]).swapDepths(eval ("temp" + k));
eval ("o" + p[k]).depth = h + k;
eval ("temp" + k).removeMovieClip();
k++;
}
return;
}
i++;
}
}
function other(detect) {
if (detect == o.group) {
(i = o.order);
(j = 0);
while (i < eval (o.group).length) {
b = eval (eval (o.group)[i]);
b._x = a.x;
b._y = a.y + (15 * j);
i++;
j++;
}
}
}
function double(name) {
o = eval ("o" + name);
a = eval (name);
if (name.substring(1, 3) == "01") {
i = 1;
while (4 >= i) {
var b = eval ("b" + i);
var c = (("b" + i) + "Cards");
var p = eval (("b" + i) + "Cards");
if (p.length == 0) {
a._x = b._x;
a._y = b._y;
p.push(name);
eval (o.group).pop(name);
o.group = c;
o.order = 0;
o.depth = 181 + (20 * i);
attachMovie("deep", "temp", 181 + (20 * i));
eval (name).swapDepths(temp);
temp.removeMovieClip();
break;
}
i++;
}
} else {
i = 1;
while (4 >= i) {
var c = (("b" + i) + "Cards");
var p = eval (("b" + i) + "Cards");
var b = p[p.length - 1];
if (((0 < p.length) && ((name.substring(1, 3) - b.substring(1, 3)) == 1)) && ((name.substring(3, 4) - b.substring(3, 4)) == 0)) {
a._x = eval (b)._x;
a._y = eval (b)._y;
p.push(name);
eval (o.group).pop(name);
o.group = c;
o.order = p.length - 1;
o.depth = eval ("o" + p[p.length - 2]).depth + 1;
attachMovie("deep", "temp", o.depth);
eval (name).swapDepths(temp);
temp.removeMovieClip();
break;
}
i++;
}
}
end();
}
function end() {
if ((((b1Cards.length == 13) && (b2Cards.length == 13)) && (b3Cards.length == 13)) && (b4Cards.length == 13)) {
i = 1;
while (4 >= i) {
j = 0;
while (j < 13) {
eval (eval (("b" + i) + "Cards")[j]).removeMovieClip();
j++;
}
i++;
}
gotoAndStop (6);
}
}
stop();
order1 = new Array("01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12", "13");
order2 = new Array("1", "2", "3", "4");
allcards = new Array();
cards = new Array();
all = new Array();
i = 0;
while (i < 13) {
j = 0;
while (j < 4) {
allcards[j] = ("c" + order1[i]) + order2[j];
cardslength = cards.push(allcards[j]);
alllength = all.push(allcards[j]);
j++;
}
i++;
}
d1Cards = GetCards(d1, 1, 1);
i = 0;
while (i < 1) {
Set("o" + d1Cards[i], {name:d1Cards[i], group:"d1Cards", order:i, depth:1 + i});
i++;
}
d2Cards = GetCards(d2, 2, 21);
i = 0;
while (i < 2) {
Set("o" + d2Cards[i], {name:d2Cards[i], group:"d2Cards", order:i, depth:21 + i});
i++;
}
d3Cards = GetCards(d3, 3, 41);
i = 0;
while (i < 3) {
Set("o" + d3Cards[i], {name:d3Cards[i], group:"d3Cards", order:i, depth:41 + i});
i++;
}
d4Cards = GetCards(d4, 4, 61);
i = 0;
while (i < 4) {
Set("o" + d4Cards[i], {name:d4Cards[i], group:"d4Cards", order:i, depth:61 + i});
i++;
}
d5Cards = GetCards(d5, 5, 81);
i = 0;
while (i < 5) {
Set("o" + d5Cards[i], {name:d5Cards[i], group:"d5Cards", order:i, depth:81 + i});
i++;
}
d6Cards = GetCards(d6, 6, 101);
i = 0;
while (i < 6) {
Set("o" + d6Cards[i], {name:d6Cards[i], group:"d6Cards", order:i, depth:101 + i});
i++;
}
d7Cards = GetCards(d7, 7, 121);
i = 0;
while (i < 7) {
Set("o" + d7Cards[i], {name:d7Cards[i], group:"d7Cards", order:i, depth:121 + i});
i++;
}
a1Cards = GetCards(a1, 24, 141);
i = 0;
while (i < 24) {
Set("o" + a1Cards[i], {name:a1Cards[i], group:"a1Cards", order:i, depth:141 + i});
i++;
}
a2Cards = new Array();
b1Cards = new Array();
b2Cards = new Array();
b3Cards = new Array();
b4Cards = new Array();
swapCards = new Array();
i = 301;
while (313 >= i) {
attachMovie("deep", "top" + i, i);
swapCardsLength = swapCards.push("top" + i);
i++;
}
Frame 6
stop();
Symbol 3 Button
on (press) {
x = _x;
y = _y;
_root.pressEvent(_name);
startDrag (this);
}
on (release, releaseOutside) {
stopDrag();
_root.releaseEvent(_name, x, y);
}
Symbol 5 Button
on (press) {
_root.double(_name);
}
Symbol 6 MovieClip Frame 1
attachMovie("bgmc1", "bg", 0);
stop();
Symbol 6 MovieClip Frame 2
attachMovie("bgmc2", "bg", 0);
stop();
Symbol 6 MovieClip Frame 3
attachMovie("bgmc3", "bg", 0);
stop();
Symbol 6 MovieClip Frame 4
attachMovie("bgmc4", "bg", 0);
stop();
Symbol 6 MovieClip Frame 5
attachMovie("bgmc5", "bg", 0);
stop();
Symbol 6 MovieClip Frame 6
attachMovie("bgmc6", "bg", 0);
stop();
Symbol 7 MovieClip [c011] Frame 1
stop();
Symbol 7 MovieClip [c011] Frame 19
gotoAndStop (1);
Symbol 7 MovieClip [c011] Frame 20
stop();
Symbol 10 Button
on (press) {
x = _x;
y = _y;
_root.pressEvent(_name);
startDrag (this);
}
on (release, releaseOutside) {
stopDrag();
_root.releaseEvent(_name, x, y);
}
Symbol 11 Button
on (press) {
_root.double(_name);
}
Symbol 12 MovieClip [c133] Frame 1
stop();
Symbol 12 MovieClip [c133] Frame 19
gotoAndStop (1);
Symbol 12 MovieClip [c133] Frame 20
stop();
Symbol 15 Button
on (press) {
x = _x;
y = _y;
_root.pressEvent(_name);
startDrag (this);
}
on (release, releaseOutside) {
stopDrag();
_root.releaseEvent(_name, x, y);
}
Symbol 16 Button
on (press) {
_root.double(_name);
}
Symbol 17 MovieClip [c132] Frame 1
stop();
Symbol 17 MovieClip [c132] Frame 19
gotoAndStop (1);
Symbol 17 MovieClip [c132] Frame 20
stop();
Symbol 20 Button
on (press) {
x = _x;
y = _y;
_root.pressEvent(_name);
startDrag (this);
}
on (release, releaseOutside) {
stopDrag();
_root.releaseEvent(_name, x, y);
}
Symbol 21 Button
on (press) {
_root.double(_name);
}
Symbol 22 MovieClip [c131] Frame 1
stop();
Symbol 22 MovieClip [c131] Frame 19
gotoAndStop (1);
Symbol 22 MovieClip [c131] Frame 20
stop();
Symbol 25 Button
on (press) {
x = _x;
y = _y;
_root.pressEvent(_name);
startDrag (this);
}
on (release, releaseOutside) {
stopDrag();
_root.releaseEvent(_name, x, y);
}
Symbol 26 Button
on (press) {
_root.double(_name);
}
Symbol 27 MovieClip [c124] Frame 1
stop();
Symbol 27 MovieClip [c124] Frame 19
gotoAndStop (1);
Symbol 27 MovieClip [c124] Frame 20
stop();
Symbol 30 Button
on (press) {
x = _x;
y = _y;
_root.pressEvent(_name);
startDrag (this);
}
on (release, releaseOutside) {
stopDrag();
_root.releaseEvent(_name, x, y);
}
Symbol 31 Button
on (press) {
_root.double(_name);
}
Symbol 32 MovieClip [c123] Frame 1
stop();
Symbol 32 MovieClip [c123] Frame 19
gotoAndStop (1);
Symbol 32 MovieClip [c123] Frame 20
stop();
Symbol 35 Button
on (press) {
x = _x;
y = _y;
_root.pressEvent(_name);
startDrag (this);
}
on (release, releaseOutside) {
stopDrag();
_root.releaseEvent(_name, x, y);
}
Symbol 36 Button
on (press) {
_root.double(_name);
}
Symbol 37 MovieClip [c122] Frame 1
stop();
Symbol 37 MovieClip [c122] Frame 19
gotoAndStop (1);
Symbol 37 MovieClip [c122] Frame 20
stop();
Symbol 40 Button
on (press) {
x = _x;
y = _y;
_root.pressEvent(_name);
startDrag (this);
}
on (release, releaseOutside) {
stopDrag();
_root.releaseEvent(_name, x, y);
}
Symbol 41 Button
on (press) {
_root.double(_name);
}
Symbol 42 MovieClip [c121] Frame 1
stop();
Symbol 42 MovieClip [c121] Frame 19
gotoAndStop (1);
Symbol 42 MovieClip [c121] Frame 20
stop();
Symbol 45 Button
on (press) {
x = _x;
y = _y;
_root.pressEvent(_name);
startDrag (this);
}
on (release) {
stopDrag();
_root.releaseEvent(_name, x, y);
}
Symbol 46 Button
on (press) {
_root.double(_name);
}
Symbol 47 MovieClip [c114] Frame 1
stop();
Symbol 47 MovieClip [c114] Frame 19
gotoAndStop (1);
Symbol 47 MovieClip [c114] Frame 20
stop();
Symbol 50 Button
on (press) {
x = _x;
y = _y;
_root.pressEvent(_name);
startDrag (this);
}
on (release, releaseOutside) {
stopDrag();
_root.releaseEvent(_name, x, y);
}
Symbol 51 Button
on (press) {
_root.double(_name);
}
Symbol 52 MovieClip [c113] Frame 1
stop();
Symbol 52 MovieClip [c113] Frame 19
gotoAndStop (1);
Symbol 52 MovieClip [c113] Frame 20
stop();
Symbol 55 Button
on (press) {
x = _x;
y = _y;
_root.pressEvent(_name);
startDrag (this);
}
on (release, releaseOutside) {
stopDrag();
_root.releaseEvent(_name, x, y);
}
Symbol 56 Button
on (press) {
_root.double(_name);
}
Symbol 57 MovieClip [c112] Frame 1
stop();
Symbol 57 MovieClip [c112] Frame 19
gotoAndStop (1);
Symbol 57 MovieClip [c112] Frame 20
stop();
Symbol 60 Button
on (press) {
x = _x;
y = _y;
_root.pressEvent(_name);
startDrag (this);
}
on (release, releaseOutside) {
stopDrag();
_root.releaseEvent(_name, x, y);
}
Symbol 61 Button
on (press) {
_root.double(_name);
}
Symbol 62 MovieClip [c111] Frame 1
stop();
Symbol 62 MovieClip [c111] Frame 19
gotoAndStop (1);
Symbol 62 MovieClip [c111] Frame 20
stop();
Symbol 65 Button
on (press) {
x = _x;
y = _y;
_root.pressEvent(_name);
startDrag (this);
}
on (release, releaseOutside) {
stopDrag();
_root.releaseEvent(_name, x, y);
}
Symbol 66 Button
on (press) {
_root.double(_name);
}
Symbol 67 MovieClip [c104] Frame 1
stop();
Symbol 67 MovieClip [c104] Frame 19
gotoAndStop (1);
Symbol 67 MovieClip [c104] Frame 20
stop();
Symbol 70 Button
on (press) {
x = _x;
y = _y;
_root.pressEvent(_name);
startDrag (this);
}
on (release, releaseOutside) {
stopDrag();
_root.releaseEvent(_name, x, y);
}
Symbol 71 Button
on (press) {
_root.double(_name);
}
Symbol 72 MovieClip [c103] Frame 1
stop();
Symbol 72 MovieClip [c103] Frame 19
gotoAndStop (1);
Symbol 72 MovieClip [c103] Frame 20
stop();
Symbol 75 Button
on (press) {
x = _x;
y = _y;
_root.pressEvent(_name);
startDrag (this);
}
on (release, releaseOutside) {
stopDrag();
_root.releaseEvent(_name, x, y);
}
Symbol 76 Button
on (press) {
_root.double(_name);
}
Symbol 77 MovieClip [c102] Frame 1
stop();
Symbol 77 MovieClip [c102] Frame 19
gotoAndStop (1);
Symbol 77 MovieClip [c102] Frame 20
stop();
Symbol 80 Button
on (press) {
x = _x;
y = _y;
_root.pressEvent(_name);
startDrag (this);
}
on (release, releaseOutside) {
stopDrag();
_root.releaseEvent(_name, x, y);
}
Symbol 81 Button
on (press) {
_root.double(_name);
}
Symbol 82 MovieClip [c101] Frame 1
stop();
Symbol 82 MovieClip [c101] Frame 19
gotoAndStop (1);
Symbol 82 MovieClip [c101] Frame 20
stop();
Symbol 85 Button
on (press) {
x = _x;
y = _y;
_root.pressEvent(_name);
startDrag (this);
}
on (release, releaseOutside) {
stopDrag();
_root.releaseEvent(_name, x, y);
}
Symbol 86 Button
on (press) {
_root.double(_name);
}
Symbol 87 MovieClip [c094] Frame 1
stop();
Symbol 87 MovieClip [c094] Frame 19
gotoAndStop (1);
Symbol 87 MovieClip [c094] Frame 20
stop();
Symbol 90 Button
on (press) {
x = _x;
y = _y;
_root.pressEvent(_name);
startDrag (this);
}
on (release, releaseOutside) {
stopDrag();
_root.releaseEvent(_name, x, y);
}
Symbol 91 Button
on (press) {
_root.double(_name);
}
Symbol 92 MovieClip [c093] Frame 1
stop();
Symbol 92 MovieClip [c093] Frame 19
gotoAndStop (1);
Symbol 92 MovieClip [c093] Frame 20
stop();
Symbol 95 Button
on (press) {
x = _x;
y = _y;
_root.pressEvent(_name);
startDrag (this);
}
on (release, releaseOutside) {
stopDrag();
_root.releaseEvent(_name, x, y);
}
Symbol 96 Button
on (press) {
_root.double(_name);
}
Symbol 97 MovieClip [c092] Frame 1
stop();
Symbol 97 MovieClip [c092] Frame 19
gotoAndStop (1);
Symbol 97 MovieClip [c092] Frame 20
stop();
Symbol 100 Button
on (press) {
x = _x;
y = _y;
_root.pressEvent(_name);
startDrag (this);
}
on (release, releaseOutside) {
stopDrag();
_root.releaseEvent(_name, x, y);
}
Symbol 101 Button
on (press) {
_root.double(_name);
}
Symbol 102 MovieClip [c091] Frame 1
stop();
Symbol 102 MovieClip [c091] Frame 19
gotoAndStop (1);
Symbol 102 MovieClip [c091] Frame 20
stop();
Symbol 105 Button
on (press) {
x = _x;
y = _y;
_root.pressEvent(_name);
startDrag (this);
}
on (release, releaseOutside) {
stopDrag();
_root.releaseEvent(_name, x, y);
}
Symbol 106 Button
on (press) {
_root.double(_name);
}
Symbol 107 MovieClip [c084] Frame 1
stop();
Symbol 107 MovieClip [c084] Frame 19
gotoAndStop (1);
Symbol 107 MovieClip [c084] Frame 20
stop();
Symbol 110 Button
on (press) {
x = _x;
y = _y;
_root.pressEvent(_name);
startDrag (this);
}
on (release, releaseOutside) {
stopDrag();
_root.releaseEvent(_name, x, y);
}
Symbol 111 Button
on (press) {
_root.double(_name);
}
Symbol 112 MovieClip [c083] Frame 1
stop();
Symbol 112 MovieClip [c083] Frame 19
gotoAndStop (1);
Symbol 112 MovieClip [c083] Frame 20
stop();
Symbol 115 Button
on (press) {
x = _x;
y = _y;
_root.pressEvent(_name);
startDrag (this);
}
on (release, releaseOutside) {
stopDrag();
_root.releaseEvent(_name, x, y);
}
Symbol 116 Button
on (press) {
_root.double(_name);
}
Symbol 117 MovieClip [c082] Frame 1
stop();
Symbol 117 MovieClip [c082] Frame 19
gotoAndStop (1);
Symbol 117 MovieClip [c082] Frame 20
stop();
Symbol 120 Button
on (press) {
x = _x;
y = _y;
_root.pressEvent(_name);
startDrag (this);
}
on (release, releaseOutside) {
stopDrag();
_root.releaseEvent(_name, x, y);
}
Symbol 121 Button
on (press) {
_root.double(_name);
}
Symbol 122 MovieClip [c081] Frame 1
stop();
Symbol 122 MovieClip [c081] Frame 19
gotoAndStop (1);
Symbol 122 MovieClip [c081] Frame 20
stop();
Symbol 125 Button
on (press) {
x = _x;
y = _y;
_root.pressEvent(_name);
startDrag (this);
}
on (release, releaseOutside) {
stopDrag();
_root.releaseEvent(_name, x, y);
}
Symbol 126 Button
on (press) {
_root.double(_name);
}
Symbol 127 MovieClip [c074] Frame 1
stop();
Symbol 127 MovieClip [c074] Frame 19
gotoAndStop (1);
Symbol 127 MovieClip [c074] Frame 20
stop();
Symbol 130 Button
on (press) {
x = _x;
y = _y;
_root.pressEvent(_name);
startDrag (this);
}
on (release, releaseOutside) {
stopDrag();
_root.releaseEvent(_name, x, y);
}
Symbol 131 Button
on (press) {
_root.double(_name);
}
Symbol 132 MovieClip [c073] Frame 1
stop();
Symbol 132 MovieClip [c073] Frame 19
gotoAndStop (1);
Symbol 132 MovieClip [c073] Frame 20
stop();
Symbol 135 Button
on (press) {
x = _x;
y = _y;
_root.pressEvent(_name);
startDrag (this);
}
on (release, releaseOutside) {
stopDrag();
_root.releaseEvent(_name, x, y);
}
Symbol 136 Button
on (press) {
_root.double(_name);
}
Symbol 137 MovieClip [c072] Frame 1
stop();
Symbol 137 MovieClip [c072] Frame 19
gotoAndStop (1);
Symbol 137 MovieClip [c072] Frame 20
stop();
Symbol 140 Button
on (press) {
x = _x;
y = _y;
_root.pressEvent(_name);
startDrag (this);
}
on (release, releaseOutside) {
stopDrag();
_root.releaseEvent(_name, x, y);
}
Symbol 141 Button
on (press) {
_root.double(_name);
}
Symbol 142 MovieClip [c071] Frame 1
stop();
Symbol 142 MovieClip [c071] Frame 19
gotoAndStop (1);
Symbol 142 MovieClip [c071] Frame 20
stop();
Symbol 145 Button
on (press) {
x = _x;
y = _y;
_root.pressEvent(_name);
startDrag (this);
}
on (release, releaseOutside) {
stopDrag();
_root.releaseEvent(_name, x, y);
}
Symbol 146 Button
on (press) {
_root.double(_name);
}
Symbol 147 MovieClip [c064] Frame 1
stop();
Symbol 147 MovieClip [c064] Frame 19
gotoAndStop (1);
Symbol 147 MovieClip [c064] Frame 20
stop();
Symbol 150 Button
on (press) {
x = _x;
y = _y;
_root.pressEvent(_name);
startDrag (this);
}
on (release, releaseOutside) {
stopDrag();
_root.releaseEvent(_name, x, y);
}
Symbol 151 Button
on (press) {
_root.double(_name);
}
Symbol 152 MovieClip [c063] Frame 1
stop();
Symbol 152 MovieClip [c063] Frame 19
gotoAndStop (1);
Symbol 152 MovieClip [c063] Frame 20
stop();
Symbol 155 Button
on (press) {
x = _x;
y = _y;
_root.pressEvent(_name);
startDrag (this);
}
on (release, releaseOutside) {
stopDrag();
_root.releaseEvent(_name, x, y);
}
Symbol 156 Button
on (press) {
_root.double(_name);
}
Symbol 157 MovieClip [c062] Frame 1
stop();
Symbol 157 MovieClip [c062] Frame 19
gotoAndStop (1);
Symbol 157 MovieClip [c062] Frame 20
stop();
Symbol 160 Button
on (press) {
x = _x;
y = _y;
_root.pressEvent(_name);
startDrag (this);
}
on (release, releaseOutside) {
stopDrag();
_root.releaseEvent(_name, x, y);
}
Symbol 161 Button
on (press) {
_root.double(_name);
}
Symbol 162 MovieClip [c061] Frame 1
stop();
Symbol 162 MovieClip [c061] Frame 19
gotoAndStop (1);
Symbol 162 MovieClip [c061] Frame 20
stop();
Symbol 165 Button
on (press) {
x = _x;
y = _y;
_root.pressEvent(_name);
startDrag (this);
}
on (release, releaseOutside) {
stopDrag();
_root.releaseEvent(_name, x, y);
}
Symbol 166 Button
on (press) {
_root.double(_name);
}
Symbol 167 MovieClip [c054] Frame 1
stop();
Symbol 167 MovieClip [c054] Frame 19
gotoAndStop (1);
Symbol 167 MovieClip [c054] Frame 20
stop();
Symbol 170 Button
on (press) {
x = _x;
y = _y;
_root.pressEvent(_name);
startDrag (this);
}
on (release, releaseOutside) {
stopDrag();
_root.releaseEvent(_name, x, y);
}
Symbol 171 Button
on (press) {
_root.double(_name);
}
Symbol 172 MovieClip [c053] Frame 1
stop();
Symbol 172 MovieClip [c053] Frame 19
gotoAndStop (1);
Symbol 172 MovieClip [c053] Frame 20
stop();
Symbol 175 Button
on (press) {
x = _x;
y = _y;
_root.pressEvent(_name);
startDrag (this);
}
on (release, releaseOutside) {
stopDrag();
_root.releaseEvent(_name, x, y);
}
Symbol 176 Button
on (press) {
_root.double(_name);
}
Symbol 177 MovieClip [c052] Frame 1
stop();
Symbol 177 MovieClip [c052] Frame 19
gotoAndStop (1);
Symbol 177 MovieClip [c052] Frame 20
stop();
Symbol 180 Button
on (press) {
x = _x;
y = _y;
_root.pressEvent(_name);
startDrag (this);
}
on (release, releaseOutside) {
stopDrag();
_root.releaseEvent(_name, x, y);
}
Symbol 181 Button
on (press) {
_root.double(_name);
}
Symbol 182 MovieClip [c051] Frame 1
stop();
Symbol 182 MovieClip [c051] Frame 19
gotoAndStop (1);
Symbol 182 MovieClip [c051] Frame 20
stop();
Symbol 185 Button
on (press) {
x = _x;
y = _y;
_root.pressEvent(_name);
startDrag (this);
}
on (release, releaseOutside) {
stopDrag();
_root.releaseEvent(_name, x, y);
}
Symbol 186 Button
on (press) {
_root.double(_name);
}
Symbol 187 MovieClip [c044] Frame 1
stop();
Symbol 187 MovieClip [c044] Frame 19
gotoAndStop (1);
Symbol 187 MovieClip [c044] Frame 20
stop();
Symbol 190 Button
on (press) {
x = _x;
y = _y;
_root.pressEvent(_name);
startDrag (this);
}
on (release, releaseOutside) {
stopDrag();
_root.releaseEvent(_name, x, y);
}
Symbol 191 Button
on (press) {
_root.double(_name);
}
Symbol 192 MovieClip [c043] Frame 1
stop();
Symbol 192 MovieClip [c043] Frame 19
gotoAndStop (1);
Symbol 192 MovieClip [c043] Frame 20
stop();
Symbol 195 Button
on (press) {
x = _x;
y = _y;
_root.pressEvent(_name);
startDrag (this);
}
on (release, releaseOutside) {
stopDrag();
_root.releaseEvent(_name, x, y);
}
Symbol 196 Button
on (press) {
_root.double(_name);
}
Symbol 197 MovieClip [c042] Frame 1
stop();
Symbol 197 MovieClip [c042] Frame 19
gotoAndStop (1);
Symbol 197 MovieClip [c042] Frame 20
stop();
Symbol 200 Button
on (press) {
x = _x;
y = _y;
_root.pressEvent(_name);
startDrag (this);
}
on (release, releaseOutside) {
stopDrag();
_root.releaseEvent(_name, x, y);
}
Symbol 201 Button
on (press) {
_root.double(_name);
}
Symbol 202 MovieClip [c041] Frame 1
stop();
Symbol 202 MovieClip [c041] Frame 19
gotoAndStop (1);
Symbol 202 MovieClip [c041] Frame 20
stop();
Symbol 205 Button
on (press) {
x = _x;
y = _y;
_root.pressEvent(_name);
startDrag (this);
}
on (release, releaseOutside) {
stopDrag();
_root.releaseEvent(_name, x, y);
}
Symbol 206 Button
on (press) {
_root.double(_name);
}
Symbol 207 MovieClip [c034] Frame 1
stop();
Symbol 207 MovieClip [c034] Frame 19
gotoAndStop (1);
Symbol 207 MovieClip [c034] Frame 20
stop();
Symbol 210 Button
on (press) {
x = _x;
y = _y;
_root.pressEvent(_name);
startDrag (this);
}
on (release, releaseOutside) {
stopDrag();
_root.releaseEvent(_name, x, y);
}
Symbol 211 Button
on (press) {
_root.double(_name);
}
Symbol 212 MovieClip [c033] Frame 1
stop();
Symbol 212 MovieClip [c033] Frame 19
gotoAndStop (1);
Symbol 212 MovieClip [c033] Frame 20
stop();
Symbol 215 Button
on (press) {
x = _x;
y = _y;
_root.pressEvent(_name);
startDrag (this);
}
on (release, releaseOutside) {
stopDrag();
_root.releaseEvent(_name, x, y);
}
Symbol 216 Button
on (press) {
_root.double(_name);
}
Symbol 217 MovieClip [c032] Frame 1
stop();
Symbol 217 MovieClip [c032] Frame 19
gotoAndStop (1);
Symbol 217 MovieClip [c032] Frame 20
stop();
Symbol 220 Button
on (press) {
x = _x;
y = _y;
_root.pressEvent(_name);
startDrag (this);
}
on (release, releaseOutside) {
stopDrag();
_root.releaseEvent(_name, x, y);
}
Symbol 221 Button
on (press) {
_root.double(_name);
}
Symbol 222 MovieClip [c031] Frame 1
stop();
Symbol 222 MovieClip [c031] Frame 19
gotoAndStop (1);
Symbol 222 MovieClip [c031] Frame 20
stop();
Symbol 225 Button
on (press) {
x = _x;
y = _y;
_root.pressEvent(_name);
startDrag (this);
}
on (release, releaseOutside) {
stopDrag();
_root.releaseEvent(_name, x, y);
}
Symbol 226 Button
on (press) {
_root.double(_name);
}
Symbol 227 MovieClip [c024] Frame 1
stop();
Symbol 227 MovieClip [c024] Frame 19
gotoAndStop (1);
Symbol 227 MovieClip [c024] Frame 20
stop();
Symbol 230 Button
on (press) {
x = _x;
y = _y;
_root.pressEvent(_name);
startDrag (this);
}
on (release, releaseOutside) {
stopDrag();
_root.releaseEvent(_name, x, y);
}
Symbol 231 Button
on (press) {
_root.double(_name);
}
Symbol 232 MovieClip [c023] Frame 1
stop();
Symbol 232 MovieClip [c023] Frame 19
gotoAndStop (1);
Symbol 232 MovieClip [c023] Frame 20
stop();
Symbol 235 Button
on (press) {
x = _x;
y = _y;
_root.pressEvent(_name);
startDrag (this);
}
on (release, releaseOutside) {
stopDrag();
_root.releaseEvent(_name, x, y);
}
Symbol 236 Button
on (press) {
_root.double(_name);
}
Symbol 237 MovieClip [c022] Frame 1
stop();
Symbol 237 MovieClip [c022] Frame 19
gotoAndStop (1);
Symbol 237 MovieClip [c022] Frame 20
stop();
Symbol 240 Button
on (press) {
x = _x;
y = _y;
_root.pressEvent(_name);
startDrag (this);
}
on (release, releaseOutside) {
stopDrag();
_root.releaseEvent(_name, x, y);
}
Symbol 241 Button
on (press) {
_root.double(_name);
}
Symbol 242 MovieClip [c021] Frame 1
stop();
Symbol 242 MovieClip [c021] Frame 19
gotoAndStop (1);
Symbol 242 MovieClip [c021] Frame 20
stop();
Symbol 245 Button
on (press) {
x = _x;
y = _y;
_root.pressEvent(_name);
startDrag (this);
}
on (release, releaseOutside) {
stopDrag();
_root.releaseEvent(_name, x, y);
}
Symbol 246 Button
on (press) {
_root.double(_name);
}
Symbol 247 MovieClip [c014] Frame 1
stop();
Symbol 247 MovieClip [c014] Frame 19
gotoAndStop (1);
Symbol 247 MovieClip [c014] Frame 20
stop();
Symbol 250 Button
on (press) {
x = _x;
y = _y;
_root.pressEvent(_name);
startDrag (this);
}
on (release, releaseOutside) {
stopDrag();
_root.releaseEvent(_name, x, y);
}
Symbol 251 Button
on (press) {
_root.double(_name);
}
Symbol 252 MovieClip [c013] Frame 1
stop();
Symbol 252 MovieClip [c013] Frame 19
gotoAndStop (1);
Symbol 252 MovieClip [c013] Frame 20
stop();
Symbol 255 Button
on (press) {
x = _x;
y = _y;
_root.pressEvent(_name);
startDrag (this);
}
on (release, releaseOutside) {
stopDrag();
_root.releaseEvent(_name, x, y);
}
Symbol 256 Button
on (press) {
_root.double(_name);
}
Symbol 257 MovieClip [c012] Frame 1
stop();
Symbol 257 MovieClip [c012] Frame 19
gotoAndStop (1);
Symbol 257 MovieClip [c012] Frame 20
stop();
Symbol 260 Button
on (press) {
x = _x;
y = _y;
_root.pressEvent(_name);
startDrag (this);
}
on (release, releaseOutside) {
stopDrag();
_root.releaseEvent(_name, x, y);
}
Symbol 261 Button
on (press) {
_root.double(_name);
}
Symbol 262 MovieClip [c134] Frame 1
stop();
Symbol 262 MovieClip [c134] Frame 19
gotoAndStop (1);
Symbol 262 MovieClip [c134] Frame 20
stop();
Symbol 264 MovieClip [dragMC] Frame 1
var g = eval ("_root." + _root.o.group);
(i = _root.o.order + 1);
(j = 1);
while (i < g.length) {
a = eval ("_root." + _root.o.name);
b = eval ("_root." + g[i]);
b._x = a._x;
b._y = a._y + (15 * j);
i++;
j++;
}
Symbol 264 MovieClip [dragMC] Frame 2
gotoAndPlay (1);
Symbol 267 Button
on (press) {
var name = _parent._parent._name;
var t = eval ("_root." + name);
var o = eval ("_root.o" + name);
if (o.group == "a1Cards") {
t._x = _root.a2._x;
t._y = _root.a2._y;
a2long = _root.a2Cards.push(name);
a1long = _root.a1Cards.pop(name);
o.group = "a2Cards";
o.order = a2long - 1;
o.depth = 170 + a2long;
_root.attachMovie("deep", "temp", o.depth);
t.swapDepths(_root.temp);
_root.temp.removeMovieClip();
t.gotoAndStop(1);
} else if (o.order == (eval ("_root." + o.group).length - 1)) {
t.gotoAndStop(1);
}
}
Symbol 270 Button
on (release) {
this.removeMovieClip();
}
Symbol 278 Button
on (press) {
var name = _parent._parent._name;
var t = eval ("_root." + name);
var o = eval ("_root.o" + name);
if (o.group == "a1Cards") {
t._x = _root.a2._x;
t._y = _root.a2._y;
a2long = _root.a2Cards.push(name);
a1long = _root.a1Cards.pop(name);
o.group = "a2Cards";
o.order = a2long - 1;
o.depth = 170 + a2long;
_root.attachMovie("deep", "temp", o.depth);
t.swapDepths(_root.temp);
_root.temp.removeMovieClip();
t.gotoAndStop(1);
} else if (o.order == (eval ("_root." + o.group).length - 1)) {
t.gotoAndStop(1);
}
}
Symbol 282 Button
on (press) {
var name = _parent._parent._name;
var t = eval ("_root." + name);
var o = eval ("_root.o" + name);
if (o.group == "a1Cards") {
t._x = _root.a2._x;
t._y = _root.a2._y;
a2long = _root.a2Cards.push(name);
a1long = _root.a1Cards.pop(name);
o.group = "a2Cards";
o.order = a2long - 1;
o.depth = 170 + a2long;
_root.attachMovie("deep", "temp", o.depth);
t.swapDepths(_root.temp);
_root.temp.removeMovieClip();
t.gotoAndStop(1);
} else if (o.order == (eval ("_root." + o.group).length - 1)) {
t.gotoAndStop(1);
}
}
Symbol 285 Button
on (release) {
_root.selectBackground(2);
this.removeMovieClip();
}
Symbol 286 Button
on (release) {
_root.selectBackground(1);
this.removeMovieClip();
}
Symbol 287 Button
on (release) {
_root.selectBackground(3);
this.removeMovieClip();
}
Symbol 290 Button
on (release) {
_root.selectBackground(5);
this.removeMovieClip();
}
Symbol 293 Button
on (release) {
_root.selectBackground(6);
this.removeMovieClip();
}
Symbol 296 Button
on (release) {
_root.selectBackground(4);
this.removeMovieClip();
}
Symbol 301 Button
on (release) {
play();
}
Symbol 302 MovieClip [copyright] Frame 20
stop();
Symbol 302 MovieClip [copyright] Frame 40
stop();
Symbol 303 Button
on (press) {
var name = _parent._parent._name;
var t = eval ("_root." + name);
var o = eval ("_root.o" + name);
if (o.group == "a1Cards") {
t._x = _root.a2._x;
t._y = _root.a2._y;
a2long = _root.a2Cards.push(name);
a1long = _root.a1Cards.pop(name);
o.group = "a2Cards";
o.order = a2long - 1;
o.depth = 170 + a2long;
_root.attachMovie("deep", "temp", o.depth);
t.swapDepths(_root.temp);
_root.temp.removeMovieClip();
t.gotoAndStop(1);
} else if (o.order == (eval ("_root." + o.group).length - 1)) {
t.gotoAndStop(1);
}
}
Symbol 305 Button
on (press) {
var name = _parent._parent._name;
var t = eval ("_root." + name);
var o = eval ("_root.o" + name);
if (o.group == "a1Cards") {
t._x = _root.a2._x;
t._y = _root.a2._y;
a2long = _root.a2Cards.push(name);
a1long = _root.a1Cards.pop(name);
o.group = "a2Cards";
o.order = a2long - 1;
o.depth = 170 + a2long;
_root.attachMovie("deep", "temp", o.depth);
t.swapDepths(_root.temp);
_root.temp.removeMovieClip();
t.gotoAndStop(1);
} else if (o.order == (eval ("_root." + o.group).length - 1)) {
t.gotoAndStop(1);
}
}
Symbol 307 Button
on (press) {
var name = _parent._parent._name;
var t = eval ("_root." + name);
var o = eval ("_root.o" + name);
if (o.group == "a1Cards") {
t._x = _root.a2._x;
t._y = _root.a2._y;
a2long = _root.a2Cards.push(name);
a1long = _root.a1Cards.pop(name);
o.group = "a2Cards";
o.order = a2long - 1;
o.depth = 170 + a2long;
_root.attachMovie("deep", "temp", o.depth);
t.swapDepths(_root.temp);
_root.temp.removeMovieClip();
t.gotoAndStop(1);
} else if (o.order == (eval ("_root." + o.group).length - 1)) {
t.gotoAndStop(1);
}
}
Symbol 316 MovieClip Frame 1
stop();
Symbol 316 MovieClip Frame 2
stop();
Symbol 316 MovieClip Frame 3
stop();
Symbol 316 MovieClip Frame 4
stop();
Symbol 316 MovieClip Frame 5
stop();
Symbol 331 Button
on (release, keyPress "<Enter>") {
play();
}
Symbol 339 Button
on (release, keyPress "B") {
attachMovie("bgbutton", "back", 400);
back._x = 325;
back._y = 400;
}
Symbol 345 Button
on (release, keyPress "R") {
restart();
}
Symbol 351 Button
on (release) {
tellTarget ("backk") {
play();
};
}
Symbol 358 Button
on (press) {
var n = _root.a2Cards.length;
if (_root.a2Cards.length != 0) {
(i = n - 1);
(j = 0);
while (i >= 0) {
var t = eval ("_root." + _root.a2Cards[i]);
var o = eval ("_root.o" + _root.a2Cards[i]);
_root.a1Cards.push(_root.a2Cards[i]);
o.group = "a1Cards";
o.order = i;
o.depth = 141 + j;
_root.attachMovie("deep", "temp", o.depth);
t.swapDepths(_root.temp);
_root.temp.removeMovieClip();
t._x = _root.a1._x;
t._y = _root.a1._y;
t.gotoAndStop(20);
t.cb.gotoAndStop(_root.lab);
i--;
j++;
}
_root.a2Cards.splice(0, n);
}
}
Symbol 363 Button
on (release, keyPress "<Enter>") {
gotoAndPlay (4);
}
Symbol 365 MovieClip Frame 15
stop();
Symbol 366 MovieClip Frame 1
i = 2;
while (Number(i) < 50) {
duplicateMovieClip ("isk1", "isk" add i, i);
setProperty("isk" add i, _rotation , random(360));
scalefactor = 40 + Number(random(60));
setProperty("isk" add i, _xscale , scalefactor);
setProperty("isk" add i, _yscale , scalefactor);
i = Number(i) + 1;
}
Symbol 368 MovieClip Frame 15
stop();
Symbol 369 MovieClip Frame 1
i = 2;
while (Number(i) < 50) {
duplicateMovieClip ("isk1", "isk" add i, i);
setProperty("isk" add i, _rotation , random(360));
scalefactor = 40 + Number(random(60));
setProperty("isk" add i, _xscale , scalefactor);
setProperty("isk" add i, _yscale , scalefactor);
i = Number(i) + 1;
}
Symbol 370 MovieClip Frame 34
stop();
Symbol 371 MovieClip Frame 1
i = 2;
while (Number(i) < 50) {
duplicateMovieClip ("isk1", "isk" add i, i);
setProperty("isk" add i, _rotation , random(360));
scalefactor = 40 + Number(random(60));
setProperty("isk" add i, _xscale , scalefactor);
setProperty("isk" add i, _yscale , scalefactor);
tellTarget ("isk" add i) {
gotoAndPlay(random(5));
};
i = Number(i) + 1;
}
Symbol 376 MovieClip Frame 1
stop();