Frame 1
function send_challenge() {
loadVariablesNum (challenge_url, 0, "POST");
}
function send_results() {
loadVariablesNum (results_url, 0, "POST");
}
stop();
_focusrect = false;
Instance of Symbol 6 MovieClip "border" in Frame 1
onClipEvent (load) {
this.swapDepths(99999);
}
Instance of Symbol 7 MovieClip "first_theme" in Frame 1
onClipEvent (load) {
function music() {
first_intro = new Sound("_root.first_theme");
first_intro.attachSound("intro");
first_intro.setVolume(90);
first_intro.start(0, 999);
}
}
Instance of Symbol 9 MovieClip in Frame 1
onClipEvent (enterFrame) {
ifFrameLoaded (2) {
_root.gotoAndStop(2);
}
}
Instance of Symbol 24 MovieClip in Frame 2
onClipEvent (enterFrame) {
if (_root.getBytesTotal() != _root.getBytesLoaded()) {
((i = i));// not popped
} else {
(this.gotoAndStop(3));// not popped
}
}
Instance of Symbol 38 MovieClip "script" in Frame 3
onClipEvent (load) {
function game1_arrays() {
_root.place_check = new Array();
_root.place_check[11] = 0;
_root.place_check[21] = 1;
_root.place_check[31] = 2;
_root.place_check[41] = 3;
_root.place_check[51] = 4;
_root.place_check[61] = 5;
_root.place_check[62] = 6;
_root.place_check[63] = 7;
_root.place_check[53] = 8;
_root.place_check[43] = 9;
_root.place_check[33] = 10;
_root.place_check[23] = 11;
_root.place_check[13] = 12;
_root.place_check[12] = 13;
_root.table = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
}
function game2_arrays() {
_root.place_check = new Array();
_root.place_check[11] = 0;
_root.place_check[12] = 1;
_root.place_check[13] = 2;
_root.place_check[31] = 3;
_root.place_check[41] = 4;
_root.place_check[32] = 5;
_root.place_check[42] = 6;
_root.place_check[33] = 7;
_root.place_check[43] = 8;
_root.place_check[61] = 9;
_root.place_check[62] = 10;
_root.place_check[63] = 11;
_root.table = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
}
function game3_arrays() {
_root.place_check = new Array();
_root.place_check[21] = 0;
_root.place_check[31] = 1;
_root.place_check[41] = 2;
_root.place_check[51] = 3;
_root.place_check[52] = 4;
_root.place_check[62] = 5;
_root.place_check[53] = 6;
_root.place_check[43] = 7;
_root.place_check[33] = 8;
_root.place_check[23] = 9;
_root.place_check[22] = 10;
_root.place_check[12] = 11;
_root.table = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
}
function game4_arrays() {
_root.place_check = new Array();
_root.place_check[21] = 0;
_root.place_check[31] = 1;
_root.place_check[41] = 2;
_root.place_check[51] = 3;
_root.place_check[32] = 4;
_root.place_check[42] = 5;
_root.place_check[12] = 6;
_root.place_check[13] = 7;
_root.place_check[23] = 8;
_root.place_check[53] = 9;
_root.place_check[63] = 10;
_root.place_check[62] = 11;
_root.table = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
}
function game5_arrays() {
_root.place_check = new Array();
_root.place_check[11] = 0;
_root.place_check[21] = 1;
_root.place_check[31] = 2;
_root.place_check[41] = 3;
_root.place_check[51] = 4;
_root.place_check[61] = 5;
_root.place_check[13] = 6;
_root.place_check[23] = 7;
_root.place_check[33] = 8;
_root.place_check[43] = 9;
_root.place_check[53] = 10;
_root.place_check[63] = 11;
_root.place_check[32] = 12;
_root.place_check[42] = 13;
_root.table = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
}
function game6_arrays() {
_root.place_check = new Array();
_root.place_check[11] = 0;
_root.place_check[31] = 1;
_root.place_check[41] = 2;
_root.place_check[61] = 3;
_root.place_check[12] = 4;
_root.place_check[22] = 5;
_root.place_check[32] = 6;
_root.place_check[42] = 7;
_root.place_check[52] = 8;
_root.place_check[62] = 9;
_root.place_check[13] = 10;
_root.place_check[33] = 11;
_root.place_check[43] = 12;
_root.place_check[63] = 13;
_root.table = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
}
function game7_arrays() {
_root.place_check = new Array();
_root.place_check[11] = 0;
_root.place_check[21] = 1;
_root.place_check[31] = 2;
_root.place_check[41] = 3;
_root.place_check[51] = 4;
_root.place_check[61] = 5;
_root.place_check[62] = 6;
_root.place_check[63] = 7;
_root.place_check[53] = 8;
_root.place_check[43] = 9;
_root.place_check[33] = 10;
_root.place_check[23] = 11;
_root.place_check[13] = 12;
_root.place_check[12] = 13;
_root.place_check[32] = 14;
_root.place_check[42] = 15;
_root.table = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
}
function game8_arrays() {
_root.place_check = new Array();
_root.place_check[11] = 0;
_root.place_check[21] = 1;
_root.place_check[31] = 2;
_root.place_check[41] = 3;
_root.place_check[51] = 4;
_root.place_check[61] = 5;
_root.place_check[12] = 6;
_root.place_check[22] = 7;
_root.place_check[52] = 8;
_root.place_check[62] = 9;
_root.place_check[13] = 10;
_root.place_check[23] = 11;
_root.place_check[33] = 12;
_root.place_check[43] = 13;
_root.place_check[53] = 14;
_root.place_check[63] = 15;
_root.table = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
}
function play_sound(name) {
this.gotoAndStop(name);
}
function start_intro_music() {
s_intro = new Sound("_root.theme");
s_intro.attachSound("intro");
s_intro.setVolume(90);
s_intro.start(0, 999);
}
function start_interlude_music() {
s_interlude = new Sound("_root.inter");
s_interlude.attachSound("interlude");
s_interlude.setVolume(90);
s_interlude.start(0, 999);
}
function xxxstart_ambience() {
s_amb1 = new Sound("_root.amb1");
s_amb1.attachSound("amb1");
s_amb1.setVolume(50);
s_amb1.setPan(50);
s_amb1.start(0, 999);
s_amb2 = new Sound("_root.amb2");
s_amb2.attachSound("amb2");
s_amb2.setVolume(50);
s_amb2.setPan(-50);
s_amb2.start(0, 999);
}
function reset() {
((_root.challenged == "true") ? ((_root.game = _root.challengers_table - 1)) : ((f = f)));
_root.display.total_score = 0;
_root.game_table.gotoAndStop(_root.game + 1);
call_arrays();
reset_vars();
shuffle(_root.value.length);
_root.table_name = _root.game;
_root.display.party = _root.parties[_root.game - 1];
_root.next_game.gotoAndStop(1);
_root.next_game.redeal_mc.gotoAndStop(2);
_root.next_game.redeal_mc.deals_left = 4;
}
function play_button() {
fade_intro_music = true;
fade_first_music = true;
play_sound("launch_game");
reset();
_root.instructions.gotoAndStop(10);
}
function back_to_game() {
i = 1;
while (_root.lv.length >= i) {
eval ("_root.card" + i).card_button.gotoAndStop(1);
i++;
}
_root.next_game.redeal_mc.gotoAndStop(2);
play_sound("generic");
_root.instructions.swapDepths(-16298);
_root.instructions.gotoAndStop(10);
}
function help() {
i = 1;
while (_root.lv.length >= i) {
eval ("_root.card" + i).card_button.gotoAndStop(2);
i++;
}
_root.next_game.redeal_mc.gotoAndStop(1);
_root.instructions.swapDepths(1984);
(((_root.instructions._currentframe == 10) || (_root.instructions._currentframe == 5)) ? (_root.instructions.gotoAndStop(4)play_sound("generic")) : ((f = f)));
}
function credits() {
i = 1;
while (_root.lv.length >= i) {
eval ("_root.card" + i).card_button.gotoAndStop(2);
i++;
}
_root.next_game.redeal_mc.gotoAndStop(1);
_root.instructions.swapDepths(1984);
(((_root.instructions._currentframe == 10) || (_root.instructions._currentframe == 4)) ? (_root.instructions.gotoAndStop(5)play_sound("generic")) : ((f = f)));
}
function intro_credits() {
((_root.instructions._currentframe != 7) ? ((_root.temp_frame = _root.instructions._currentframe)_root.instructions.gotoAndStop(7)play_sound("generic")) : ((i = i)));
}
function main_menu() {
start_intro_music();
_root.script.clear_deck();
_root.game_over = false;
_root.game_table.gotoAndStop(1);
_root.next_game.gotoAndStop(1);
_root.instructions.gotoAndStop(1);
_root.display.gotoAndStop(1);
_root.display.total_score = 0;
_root.display.party = "";
reset_vars();
}
function good_girl() {
start_intro_music();
i = 1;
while (_root.value.length >= i) {
eval ("_root.card" + i).removeMovieClip();
i++;
}
_root.game_over = false;
_root.game_table.gotoAndStop(1);
_root.next_game.gotoAndStop(1);
_root.instructions.gotoAndStop(1);
_root.display.gotoAndStop(1);
_root.display.total_score = 0;
_root.display.party = "";
reset_vars();
}
function play_again() {
_root.game = 1;
play_sound("launch_game");
clear_deck();
reset();
_root.game_over = false;
}
function reset_vars() {
_root.matches = 0;
_root.rnd = new Array();
_root.stash = new Array(0, 0, 0);
_root.hand = false;
_root.d = 0;
_root.sp = 0;
_root.card_count = 0;
_root.chance = 0;
_root.cards._y = 369;
}
function call_arrays() {
((_root.game == 1) ? (game1_arrays()) : ((a = a)));
((_root.game == 2) ? (game2_arrays()) : ((a = a)));
((_root.game == 3) ? (game3_arrays()) : ((a = a)));
((_root.game == 4) ? (game4_arrays()) : ((a = a)));
((_root.game == 5) ? (game5_arrays()) : ((a = a)));
((_root.game == 6) ? (game6_arrays()) : ((a = a)));
((_root.game == 7) ? (game7_arrays()) : ((a = a)));
((_root.game == 8) ? (game8_arrays()) : ((a = a)));
}
function next_game() {
play_sound("next_level");
fade_interlude_music = true;
_root.display.party = _root.parties[_root.game - 1];
clear_deck();
_root.game_table.gotoAndStop(_root.game + 1);
reset_vars();
call_arrays();
shuffle(_root.value.length);
_root.game_over = false;
_root.next_game.gotoAndStop(1);
_root.next_game.redeal_mc.gotoAndStop(2);
_root.next_game.redeal_mc.deals_left = 4;
_root.matches = 0;
i = 1;
while (_root.lv.length >= i) {
eval ("_root.card" + i).card_button.gotoAndStop(1);
i++;
}
}
function clear_deck() {
c1 = 0;
while (c1 < 3) {
eval ("_root.card" + _root.stash[c1]).y = 540;
eval ("_root.card" + _root.stash[c1]).del = true;
eval ("_root.card" + _root.stash[c1]).go = true;
c1++;
}
c2 = 0;
while (c2 < _root.table.length) {
eval ("_root.card" + _root.table[c2]).y = 540;
eval ("_root.card" + _root.table[c2]).del = true;
eval ("_root.card" + _root.table[c2]).go = true;
c2++;
}
}
function deal() {
if ((_root.stash[_root.sp] == 0) && (_root.d < _root.value.length)) {
duplicateMovieClip ("_root.card", "card" + _root.rnd[_root.d], _root.rnd[_root.d]);
eval ("_root.card" + _root.rnd[_root.d]).l = _root.lv[_root.rnd[_root.d] - 1];
eval ("_root.card" + _root.rnd[_root.d]).r = _root.rv[_root.rnd[_root.d] - 1];
eval ("_root.card" + _root.rnd[_root.d]).value = _root.value[_root.rnd[_root.d] - 1];
eval ("_root.card" + _root.rnd[_root.d]).left.gotoAndStop(_root.lv[_root.rnd[_root.d] - 1]);
eval ("_root.card" + _root.rnd[_root.d]).right.gotoAndStop(_root.rv[_root.rnd[_root.d] - 1]);
eval ("_root.card" + _root.rnd[_root.d]).gotoAndStop(_root.rnd[_root.d]);
eval ("_root.card" + _root.rnd[_root.d]).card.gotoAndStop(1);
eval ("_root.card" + _root.rnd[_root.d])._x = _root.cards._x;
eval ("_root.card" + _root.rnd[_root.d])._y = _root.cards._y;
eval ("_root.card" + _root.rnd[_root.d]).x = _root.stash_place[_root.sp];
eval ("_root.card" + _root.rnd[_root.d]).y = 369;
eval ("_root.card" + _root.rnd[_root.d]).swapDepths(999);
eval ("_root.card" + _root.rnd[_root.d]).piece = _root.rnd[_root.d];
eval ("_root.card" + _root.rnd[_root.d]).go = true;
_root.stash[_root.sp] = _root.rnd[_root.d];
_root.sp++;
_root.d++;
_root.ready_to_deal = false;
deal();
play_sound("deal_card");
}
}
function shuffle(amount) {
a = 1;
while (a < (amount + 2)) {
if (amount >= a) {
i = int(Math.random() * amount);
if (_root.rnd[i] == undefined) {
_root.rnd[i] = a;
} else {
a--;
}
} else {
deal();
}
a++;
}
}
function check_end() {
_root.game_over = true;
score_cards_deck(_root.game);
}
function results() {
i = 0;
while (i < _root.table.length) {
((eval ("_root.card" + _root.table[i]).card._currentframe == 2) ? ((_root.matches = _root.matches + 1)) : (i - i));
((eval ("_root.card" + _root.table[i]).card._currentframe == 2) ? ((_root.points = _root.points + eval ("_root.card" + _root.table[i]).value)) : (i - i));
((eval ("_root.card" + _root.table[i]).l == 5) ? ((_root.matches = _root.matches + 1)(_root.joker_penalty = _root.joker_penalty + 1)) : (i - i));
i++;
}
i = 1;
while (_root.lv.length >= i) {
eval ("_root.card" + i).card_button.gotoAndStop(2);
i++;
}
_root.next_game.redeal_mc.gotoAndStop(1);
_root.cards._y = 669;
temp_total = _root.matches;
temp_total = Math.min(temp_total, _root.table.length);
trace("joker " + _root.joker_penalty);
trace("_root.matches " + _root.matches);
trace("temp total " + temp_total);
trace("value " + _root.points);
_root.game++;
(((((temp_total == _root.table.length) && (_root.challenger != "true")) && (_root.challenged != "true")) && (_root.game < 9)) ? (_root.next_game.gotoAndStop(2)play_sound("good_end")start_interlude_music()) : ((f = f)));
((((temp_total != _root.table.length) && (_root.challenger != "true")) && (_root.challenged != "true")) ? (_root.next_game.gotoAndStop(3)play_sound("end_game")) : ((f = f)));
(((((temp_total == _root.table.length) && (_root.challenger != "true")) && (_root.challenged != "true")) && (_root.game == 9)) ? (_root.game++_root.next_game.gotoAndStop(3)play_sound("good_end")start_interlude_music()) : ((f = f)));
trace("game " + _root.game);
_root.next_game.you_got = ("You earned " + _root.points) + " points.";
if (_root.challenger != "true") {
((f = f));// not popped
} else {
(_root.next_game.gotoAndStop(4));// not popped
}
if (_root.challenged != "true") {
((f = f));// not popped
} else {
(_root.next_game.gotoAndStop(5));// not popped
}
c1 = 0;
while (c1 < 3) {
removeMovieClip(eval ("_root.card" + _root.stash[c1]));
c1++;
}
((_root.challenged != "true") ? ((_root.display.total_score = _root.display.total_score + _root.points)) : ((i = i)));
_root.joker_penalty = 0;
_root.points = 0;
trace("*******************************");
}
function redeal() {
_root.chance++;
((_root.challenged == "true") ? (tally()) : ((i = i)));
rd = 0;
while (rd < 4) {
if ((rd < 3) && (4 >= _root.chance)) {
eval ("_root.card" + _root.stash[rd]).y = 540;
eval ("_root.card" + _root.stash[rd]).del = true;
eval ("_root.card" + _root.stash[rd]).go = true;
_root.stash[rd] = 0;
}
if (rd == 3) {
_root.next_game.redeal_mc.deals_left = _root.next_game.redeal_mc.deals_left - (1 * (0 < _root.next_game.redeal_mc.deals_left));
_root.sp = 0;
deal();
}
rd++;
}
}
function from_stash(piece) {
_root.fromDeck = true;
eval ("_root.card" + piece).startDrag();
eval ("_root.card" + piece)._x = _root._xmouse - (_root.card._width * 0.5);
eval ("_root.card" + piece)._y = _root._ymouse - (_root.card._height * 0.5);
eval ("_root.card" + piece).swapDepths(999);
_root.stash[_root.x - 2] = 0;
_root.hand = piece;
_root.sp = _root.x - 2;
_root.ready_to_deal = true;
play_sound("pick_up");
}
function swapCard(piece) {
if ((_root.tx != _root.x) || (_root.ty != _root.y)) {
eval ("_root.card" + _root.table[_root.place]).x = _root.tempx;
eval ("_root.card" + _root.table[_root.place]).y = _root.tempy;
eval ("_root.card" + _root.table[_root.place]).go = true;
eval ("_root.card" + _root.table[_root.place]).swapDepths(998);
_root.table[_root.tempplace] = eval ("_root.card" + _root.table[_root.place]).piece;
}
dropCard(_root.hand);
_root.hand = false;
happy_check();
}
function dropCard(piece, adj) {
if (_root.over != undefined) {
play_sound("drop_card");
((_root.y < 4) ? ((y_adj = 0)(x_adj = 0)) : ((y_adj = 13)(x_adj = 5)));
eval ("_root.card" + piece).x = (_root.x * 77) + ((72 - x_adj) + (adj / 5));
eval ("_root.card" + piece).y = (((_root.y - 1) * 107) + (25 + adj)) + y_adj;
stopDrag();
eval ("_root.card" + piece).go = true;
eval ("_root.c" + _root.place).splice(0, 0, piece);
_root.table[_root.place] = piece;
if ((_root.place == "stash") && (_root.over == 0)) {
_root.stash[_root.x - 2] = piece;
delay = true;
}
if ((_root.place != "stash") && (_root.over == 0)) {
happy_check();
deal();
_root.hand = false;
}
_root.card_count = 0;
cc = 0;
while (cc < _root.table.length) {
_root.card_count = _root.card_count + (_root.table[cc] != 0);
cc++;
}
if (_root.card_count == _root.table.length) {
check_end();
}
}
}
function moveCard(piece) {
play_sound("pick_up");
eval ("_root.card" + piece).startDrag();
eval ("_root.card" + piece)._x = _root._xmouse - (_root.card._width * 0.5);
eval ("_root.card" + piece)._y = _root._ymouse - (_root.card._height * 0.5);
_root.tempx = eval ("_root.card" + piece).x;
_root.tempy = eval ("_root.card" + piece).y;
_root.tx = _root.x;
_root.ty = _root.y;
_root.tempplace = _root.place;
eval ("_root.card" + piece).swapDepths(999);
_root.table[_root.place] = 0;
_root.hand = piece;
}
function dropCheck(piece) {
if (_root.place != undefined) {
if ((((0 < _root.over) && (_root.fromDeck != true)) && (condition != 2)) && (_root.place != "stash")) {
swapCard(piece);
}
if ((_root.over == 0) && (_root.place != "stash")) {
dropCard(piece);
_root.fromDeck = false;
}
if ((_root.place == "stash") && (_root.over == 0)) {
dropCard(piece, 10);
}
}
}
function tally() {
i = 0;
while (i < _root.table.length) {
(((eval ("_root.card" + _root.table[i]).card._currentframe == 2) && (eval ("_root.card" + _root.table[i]).l != 5)) ? ((temp_tally = temp_tally + eval ("_root.card" + _root.table[i]).value)) : ((i = i)));
i++;
}
_root.display.total_score = temp_tally;
temp_tally = 0;
}
function happy_check() {
score_cards_deck(_root.game);
((_root.challenged == "true") ? (tally()) : ((i = i)));
}
function type_1(f, adj1, adj2, extra) {
joker = 0;
(your_left = eval ("_root.card" + _root.table[f]).l);
(your_right = eval ("_root.card" + _root.table[f]).r);
check_left = eval ("_root.card" + _root.table[f + adj1]).r;
check_right = eval ("_root.card" + _root.table[f + adj2]).l;
left = (your_left == check_left) && (your_left != undefined);
right = (your_right == check_right) && (your_right != undefined);
joker = joker + (check_left == 5);
joker = joker + (check_right == 5);
(((((left + right) + joker) == 2) && (eval ("_root.card" + _root.table[f]).card._currentframe != 2)) ? (eval ("_root.card" + _root.table[f]).glow.play()) : ((f = f)));
if (((left + right) + joker) != 2) {
(eval ("_root.card" + _root.table[f]).card.gotoAndStop(1));// not popped
} else {
(eval ("_root.card" + _root.table[f]).card.gotoAndStop(2));// not popped
}
}
function type_2(f, adj1, adj2, extra) {
joker = 0;
(your_down = eval ("_root.card" + _root.table[f]).l);
(your_up = eval ("_root.card" + _root.table[f]).r);
check_up = eval ("_root.card" + _root.table[f + adj1]).l;
check_down = eval ("_root.card" + _root.table[f + adj2]).r;
up = (your_up == check_up) && (your_up != undefined);
down = (your_down == check_down) && (your_down != undefined);
joker = joker + (check_up == 5);
joker = joker + (check_down == 5);
(((((up + down) + joker) == 2) && (eval ("_root.card" + _root.table[f]).card._currentframe != 2)) ? (eval ("_root.card" + _root.table[f]).glow.play()) : ((f = f)));
if (((up + down) + joker) != 2) {
(eval ("_root.card" + _root.table[f]).card.gotoAndStop(1));// not popped
} else {
(eval ("_root.card" + _root.table[f]).card.gotoAndStop(2));// not popped
}
}
function type_3(f, adj1, adj2, extra) {
joker = 0;
(your_down = eval ("_root.card" + _root.table[f]).l);
(your_right = eval ("_root.card" + _root.table[f]).r);
check_down = eval ("_root.card" + _root.table[f + adj1]).r;
check_right = eval ("_root.card" + _root.table[f + adj2]).l;
down = (your_down == check_down) && (your_down != undefined);
right = (your_right == check_right) && (your_right != undefined);
joker = joker + (check_down == 5);
joker = joker + (check_right == 5);
(((((right + down) + joker) == 2) && (eval ("_root.card" + _root.table[f]).card._currentframe != 2)) ? (eval ("_root.card" + _root.table[f]).glow.play()) : ((f = f)));
if (((right + down) + joker) != 2) {
(eval ("_root.card" + _root.table[f]).card.gotoAndStop(1));// not popped
} else {
(eval ("_root.card" + _root.table[f]).card.gotoAndStop(2));// not popped
}
}
function type_4(f, adj1, adj2, extra) {
joker = 0;
(your_down = eval ("_root.card" + _root.table[f]).l);
(your_left = eval ("_root.card" + _root.table[f]).l);
check_down = eval ("_root.card" + _root.table[f + adj1]).r;
check_left = eval ("_root.card" + _root.table[f + adj2]).r;
down = (your_down == check_down) && (your_down != undefined);
left = (your_left == check_left) && (your_left != undefined);
joker = joker + (check_down == 5);
joker = joker + (check_left == 5);
(((((left + down) + joker) == 2) && (eval ("_root.card" + _root.table[f]).card._currentframe != 2)) ? (eval ("_root.card" + _root.table[f]).glow.play()) : ((f = f)));
if (((left + down) + joker) != 2) {
(eval ("_root.card" + _root.table[f]).card.gotoAndStop(1));// not popped
} else {
(eval ("_root.card" + _root.table[f]).card.gotoAndStop(2));// not popped
}
}
function type_5(f, adj1, adj2, extra) {
joker = 0;
(your_up = eval ("_root.card" + _root.table[f]).r);
(your_left = eval ("_root.card" + _root.table[f]).l);
check_up = eval ("_root.card" + _root.table[f + adj1]).l;
check_left = eval ("_root.card" + _root.table[f + adj2]).r;
up = (your_up == check_up) && (your_up != undefined);
left = (your_left == check_left) && (your_left != undefined);
joker = joker + (check_up == 5);
joker = joker + (check_left == 5);
(((((up + left) + joker) == 2) && (eval ("_root.card" + _root.table[f]).card._currentframe != 2)) ? (eval ("_root.card" + _root.table[f]).glow.play()) : ((f = f)));
if (((up + left) + joker) != 2) {
(eval ("_root.card" + _root.table[f]).card.gotoAndStop(1));// not popped
} else {
(eval ("_root.card" + _root.table[f]).card.gotoAndStop(2));// not popped
}
}
function type_6(f, adj1, adj2, extra) {
joker = 0;
(your_up = eval ("_root.card" + _root.table[f]).r);
(your_right = eval ("_root.card" + _root.table[f]).r);
check_up = eval ("_root.card" + _root.table[f + adj1]).l;
check_right = eval ("_root.card" + _root.table[f + adj2]).l;
up = (your_up == check_up) && (your_up != undefined);
right = (your_right == check_right) && (your_right != undefined);
joker = joker + (check_up == 5);
joker = joker + (check_right == 5);
(((((up + right) + joker) == 2) && (eval ("_root.card" + _root.table[f]).card._currentframe != 2)) ? (eval ("_root.card" + _root.table[f]).glow.play()) : ((f = f)));
if (((up + right) + joker) != 2) {
(eval ("_root.card" + _root.table[f]).card.gotoAndStop(1));// not popped
} else {
(eval ("_root.card" + _root.table[f]).card.gotoAndStop(2));// not popped
}
}
function type_7(f, adj1, adj2, adj3, extra) {
joker = 0;
(your_down = eval ("_root.card" + _root.table[f]).l);
(your_up = eval ("_root.card" + _root.table[f]).r);
check_up = eval ("_root.card" + _root.table[f + adj1]).l;
check_down = eval ("_root.card" + _root.table[f + adj2]).r;
check_right = eval ("_root.card" + _root.table[f + adj3]).l;
up = (your_up == check_up) && (your_up != undefined);
down = (your_down == check_down) && (your_down != undefined);
right = (your_up == check_right) && (your_up != undefined);
joker = joker + (check_up == 5);
joker = joker + (check_down == 5);
joker = joker + (check_right == 5);
((((((up + down) + right) + joker) == 3) && (eval ("_root.card" + _root.table[f]).card._currentframe != 2)) ? (eval ("_root.card" + _root.table[f]).glow.play()) : ((f = f)));
if ((((up + down) + right) + joker) != 3) {
(eval ("_root.card" + _root.table[f]).card.gotoAndStop(1));// not popped
} else {
(eval ("_root.card" + _root.table[f]).card.gotoAndStop(2));// not popped
}
}
function type_8(f, adj1, adj2, adj3, extra) {
joker = 0;
(your_down = eval ("_root.card" + _root.table[f]).l);
(your_up = eval ("_root.card" + _root.table[f]).r);
check_up = eval ("_root.card" + _root.table[f + adj1]).l;
check_down = eval ("_root.card" + _root.table[f + adj2]).r;
check_left = eval ("_root.card" + _root.table[f + adj3]).r;
up = (your_up == check_up) && (your_up != undefined);
down = (your_down == check_down) && (your_down != undefined);
left = (your_down == check_left) && (your_up != undefined);
joker = joker + (check_up == 5);
joker = joker + (check_down == 5);
joker = joker + (check_left == 5);
((((((up + down) + left) + joker) == 3) && (eval ("_root.card" + _root.table[f]).card._currentframe != 2)) ? (eval ("_root.card" + _root.table[f]).glow.play()) : ((f = f)));
if ((((up + down) + left) + joker) != 3) {
(eval ("_root.card" + _root.table[f]).card.gotoAndStop(1));// not popped
} else {
(eval ("_root.card" + _root.table[f]).card.gotoAndStop(2));// not popped
}
}
function type_9(f, adj1, adj2, adj3, extra) {
joker = 0;
(your_down = eval ("_root.card" + _root.table[f]).l);
(your_up = eval ("_root.card" + _root.table[f]).r);
check_down = eval ("_root.card" + _root.table[f + adj1]).r;
check_left = eval ("_root.card" + _root.table[f + adj2]).r;
check_right = eval ("_root.card" + _root.table[f + adj3]).l;
left = (your_down == check_left) && (your_down != undefined);
right = (your_up == check_right) && (your_up != undefined);
down = (your_down == check_down) && (your_down != undefined);
joker = joker + (check_down == 5);
joker = joker + (check_left == 5);
joker = joker + (check_right == 5);
((((((left + right) + down) + joker) == 3) && (eval ("_root.card" + _root.table[f]).card._currentframe != 2)) ? (eval ("_root.card" + _root.table[f]).glow.play()) : ((f = f)));
if ((((left + right) + down) + joker) != 3) {
(eval ("_root.card" + _root.table[f]).card.gotoAndStop(1));// not popped
} else {
(eval ("_root.card" + _root.table[f]).card.gotoAndStop(2));// not popped
}
}
function type_10(f, adj1, adj2, adj3, extra) {
joker = 0;
(your_down = eval ("_root.card" + _root.table[f]).l);
(your_up = eval ("_root.card" + _root.table[f]).r);
(((your_down == 5) || (your_up == 5)) ? ((_root.joker_add = _root.joker_add + (1 * (_root.card_count == _root.table.length)))) : ((f = f)));
check_up = eval ("_root.card" + _root.table[f + adj1]).l;
check_left = eval ("_root.card" + _root.table[f + adj2]).r;
check_right = eval ("_root.card" + _root.table[f + adj3]).l;
left = (your_down == check_left) && (your_down != undefined);
right = (your_up == check_right) && (your_up != undefined);
up = (your_up == check_up) && (your_down != undefined);
joker = joker + (check_up == 5);
joker = joker + (check_left == 5);
joker = joker + (check_right == 5);
((((((left + right) + up) + joker) == 3) && (eval ("_root.card" + _root.table[f]).card._currentframe != 2)) ? (eval ("_root.card" + _root.table[f]).glow.play()) : ((f = f)));
if ((((left + right) + up) + joker) != 3) {
(eval ("_root.card" + _root.table[f]).card.gotoAndStop(1));// not popped
} else {
(eval ("_root.card" + _root.table[f]).card.gotoAndStop(2));// not popped
}
}
function type_11(f, adj1, adj2, adj3, adj4, extra) {
joker = 0;
(your_down = eval ("_root.card" + _root.table[f]).l);
(your_up = eval ("_root.card" + _root.table[f]).r);
check_up = eval ("_root.card" + _root.table[f + adj1]).l;
check_down = eval ("_root.card" + _root.table[f + adj2]).r;
check_left = eval ("_root.card" + _root.table[f + adj3]).r;
check_right = eval ("_root.card" + _root.table[f + adj4]).l;
left = (your_down == check_left) && (your_down != undefined);
right = (your_up == check_right) && (your_up != undefined);
up = (your_up == check_up) && (your_down != undefined);
down = (your_down == check_down) && (your_down != undefined);
joker = joker + (check_up == 5);
joker = joker + (check_down == 5);
joker = joker + (check_left == 5);
joker = joker + (check_right == 5);
(((((((left + right) + up) + down) + joker) == 4) && (eval ("_root.card" + _root.table[f]).card._currentframe != 2)) ? (eval ("_root.card" + _root.table[f]).glow.play()) : ((f = f)));
if (((((left + right) + up) + down) + joker) != 4) {
(eval ("_root.card" + _root.table[f]).card.gotoAndStop(1));// not popped
} else {
(eval ("_root.card" + _root.table[f]).card.gotoAndStop(2));// not popped
}
}
function score_cards_deck(game) {
if (game == 1) {
f = 0;
while (_root.table.length >= f) {
(((((f == 1) || (f == 2)) || (f == 3)) || (f == 4)) ? (type_1(f, -1, 1, 10)) : ((f = f)));
(((((f == 8) || (f == 9)) || (f == 10)) || (f == 11)) ? (type_1(f, 1, -1, 10)) : ((f = f)));
((f == 13) ? (type_2(f, -13, -1, 10)) : ((f = f)));
((f == 6) ? (type_2(f, -1, 1, 10)) : ((f = f)));
((f == 0) ? (type_3(f, 13, 1, 10)) : ((f = f)));
((f == 5) ? (type_4(f, -1, 1, 10)) : ((f = f)));
((f == 7) ? (type_5(f, -1, 1, 10)) : ((f = f)));
((f == 12) ? (type_6(f, 1, -1, 10)) : ((f = f)));
(((f == _root.table.length) && (_root.card_count == _root.table.length)) ? (results()) : ((f = f)));
f++;
}
}
if (game == 2) {
f = 0;
while ((_root.table.length + 1) >= f) {
((f == 1) ? (type_2(f, -1, 1, 10)) : ((f = f)));
((f == 10) ? (type_2(f, -1, 1, 10)) : ((f = f)));
((f == 3) ? (type_3(f, 2, 1, 10)) : ((f = f)));
((f == 4) ? (type_4(f, 2, -1, 10)) : ((f = f)));
((f == 5) ? (type_7(f, -2, 2, 1, 10)) : ((f = f)));
((f == 6) ? (type_8(f, -2, 2, -1, 10)) : ((f = f)));
((f == 7) ? (type_6(f, -2, 1, 10)) : ((f = f)));
((f == 8) ? (type_5(f, -2, -1, 10)) : ((f = f)));
(((f == _root.table.length) && (_root.card_count == _root.table.length)) ? (results()) : ((f = f)));
my_adj = eval ("_root.card" + _root.table[0]).l;
your_adj = eval ("_root.card" + _root.table[1]).r;
((((your_adj == my_adj) || (your_adj == 5)) && (eval ("_root.card" + _root.table[0]).card._currentframe != 2)) ? (eval ("_root.card" + _root.table[0]).glow.play()) : ((f = f)));
eval ("_root.card" + _root.table[0]).card.gotoAndStop(((your_adj == my_adj) || (your_adj == 5)) + 1);
my_adj = eval ("_root.card" + _root.table[2]).r;
your_adj = eval ("_root.card" + _root.table[1]).l;
((((your_adj == my_adj) || (your_adj == 5)) && (eval ("_root.card" + _root.table[2]).card._currentframe != 2)) ? (eval ("_root.card" + _root.table[2]).glow.play()) : ((f = f)));
eval ("_root.card" + _root.table[2]).card.gotoAndStop(((your_adj == my_adj) || (your_adj == 5)) + 1);
my_adj = eval ("_root.card" + _root.table[9]).l;
your_adj = eval ("_root.card" + _root.table[10]).r;
((((your_adj == my_adj) || (your_adj == 5)) && (eval ("_root.card" + _root.table[9]).card._currentframe != 2)) ? (eval ("_root.card" + _root.table[9]).glow.play()) : ((f = f)));
eval ("_root.card" + _root.table[9]).card.gotoAndStop(((your_adj == my_adj) || (your_adj == 5)) + 1);
my_adj = eval ("_root.card" + _root.table[11]).r;
your_adj = eval ("_root.card" + _root.table[10]).l;
((((your_adj == my_adj) || (your_adj == 5)) && (eval ("_root.card" + _root.table[11]).card._currentframe != 2)) ? (eval ("_root.card" + _root.table[11]).glow.play()) : ((f = f)));
eval ("_root.card" + _root.table[11]).card.gotoAndStop(((your_adj == my_adj) || (your_adj == 5)) + 1);
f++;
}
}
if (game == 3) {
f = 0;
while ((_root.table.length + 1) >= f) {
((f == 0) ? (type_3(f, 10, 1, 10)) : ((f = f)));
(((f == 1) || (f == 2)) ? (type_1(f, -1, 1, 10)) : ((f = f)));
((f == 3) ? (type_4(f, 1, -1, 10)) : ((f = f)));
((f == 4) ? (type_7(f, -1, 2, 1, 10)) : ((f = f)));
((f == 6) ? (type_5(f, -2, 1, 10)) : ((f = f)));
(((f == 7) || (f == 8)) ? (type_1(f, 1, -1, 10)) : ((f = f)));
((f == 9) ? (type_6(f, 1, -1, 10)) : ((f = f)));
((f == 10) ? (type_8(f, -10, -1, 1, 10)) : ((f = f)));
(((f == _root.table.length) && (_root.card_count == _root.table.length)) ? (results()) : ((f = f)));
my_adj = eval ("_root.card" + _root.table[11]).r;
your_adj = eval ("_root.card" + _root.table[10]).l;
((((your_adj == my_adj) || (your_adj == 5)) && (eval ("_root.card" + _root.table[11]).card._currentframe != 2)) ? (eval ("_root.card" + _root.table[11]).glow.play()) : ((f = f)));
eval ("_root.card" + _root.table[11]).card.gotoAndStop(((your_adj == my_adj) || (your_adj == 5)) + 1);
my_adj = eval ("_root.card" + _root.table[5]).l;
your_adj = eval ("_root.card" + _root.table[4]).r;
((((your_adj == my_adj) || (your_adj == 5)) && (eval ("_root.card" + _root.table[5]).card._currentframe != 2)) ? (eval ("_root.card" + _root.table[5]).glow.play()) : ((f = f)));
eval ("_root.card" + _root.table[5]).card.gotoAndStop(((your_adj == my_adj) || (your_adj == 5)) + 1);
f++;
}
}
if (game == 4) {
f = 0;
while ((_root.table.length + 1) >= f) {
(((f == 1) || (f == 2)) ? (type_9(f, 3, -1, 1, 10)) : ((f = f)));
((f == 4) ? (type_6(f, -3, 1, 10)) : ((f = f)));
((f == 5) ? (type_5(f, -3, -1, 10)) : ((f = f)));
((f == 7) ? (type_6(f, -1, 1, 10)) : ((f = f)));
((f == 10) ? (type_5(f, 1, -1, 10)) : ((f = f)));
(((f == _root.table.length) && (_root.card_count == _root.table.length)) ? (results()) : ((f = f)));
my_adj = eval ("_root.card" + _root.table[11]).l;
your_adj = eval ("_root.card" + _root.table[10]).r;
((((your_adj == my_adj) || (your_adj == 5)) && (eval ("_root.card" + _root.table[11]).card._currentframe != 2)) ? (eval ("_root.card" + _root.table[11]).glow.play()) : ((f = f)));
eval ("_root.card" + _root.table[11]).card.gotoAndStop(((your_adj == my_adj) || (your_adj == 5)) + 1);
my_adj = eval ("_root.card" + _root.table[9]).r;
your_adj = eval ("_root.card" + _root.table[10]).l;
((((your_adj == my_adj) || (your_adj == 5)) && (eval ("_root.card" + _root.table[9]).card._currentframe != 2)) ? (eval ("_root.card" + _root.table[9]).glow.play()) : ((f = f)));
eval ("_root.card" + _root.table[9]).card.gotoAndStop(((your_adj == my_adj) || (your_adj == 5)) + 1);
my_adj = eval ("_root.card" + _root.table[6]).l;
your_adj = eval ("_root.card" + _root.table[7]).r;
((((your_adj == my_adj) || (your_adj == 5)) && (eval ("_root.card" + _root.table[6]).card._currentframe != 2)) ? (eval ("_root.card" + _root.table[6]).glow.play()) : ((f = f)));
eval ("_root.card" + _root.table[6]).card.gotoAndStop(((your_adj == my_adj) || (your_adj == 5)) + 1);
my_adj = eval ("_root.card" + _root.table[8]).l;
your_adj = eval ("_root.card" + _root.table[7]).r;
((((your_adj == my_adj) || (your_adj == 5)) && (eval ("_root.card" + _root.table[8]).card._currentframe != 2)) ? (eval ("_root.card" + _root.table[8]).glow.play()) : ((f = f)));
eval ("_root.card" + _root.table[8]).card.gotoAndStop(((your_adj == my_adj) || (your_adj == 5)) + 1);
my_adj = eval ("_root.card" + _root.table[0]).r;
your_adj = eval ("_root.card" + _root.table[1]).l;
((((your_adj == my_adj) || (your_adj == 5)) && (eval ("_root.card" + _root.table[0]).card._currentframe != 2)) ? (eval ("_root.card" + _root.table[0]).glow.play()) : ((f = f)));
eval ("_root.card" + _root.table[0]).card.gotoAndStop(((your_adj == my_adj) || (your_adj == 5)) + 1);
my_adj = eval ("_root.card" + _root.table[3]).l;
your_adj = eval ("_root.card" + _root.table[2]).r;
((((your_adj == my_adj) || (your_adj == 5)) && (eval ("_root.card" + _root.table[3]).card._currentframe != 2)) ? (eval ("_root.card" + _root.table[3]).glow.play()) : ((f = f)));
eval ("_root.card" + _root.table[3]).card.gotoAndStop(((your_adj == my_adj) || (your_adj == 5)) + 1);
f++;
}
}
if (game == 5) {
f = 0;
while ((_root.table.length + 1) >= f) {
(((((f == 1) || (f == 4)) || (f == 7)) || (f == 10)) ? (type_1(f, -1, 1, 10)) : ((f = f)));
(((f == 2) || (f == 3)) ? (type_9(f, 10, -1, 1, 10)) : ((f = f)));
(((f == 8) || (f == 9)) ? (type_10(f, 4, -1, 1, 10)) : ((f = f)));
((f == 12) ? (type_7(f, -10, -4, 1, 10)) : ((f = f)));
((f == 13) ? (type_8(f, -10, -4, -1, 10)) : ((f = f)));
(((f == _root.table.length) && (_root.card_count == _root.table.length)) ? (results()) : ((f = f)));
my_adj = eval ("_root.card" + _root.table[0]).r;
your_adj = eval ("_root.card" + _root.table[1]).l;
((((your_adj == my_adj) || (your_adj == 5)) && (eval ("_root.card" + _root.table[0]).card._currentframe != 2)) ? (eval ("_root.card" + _root.table[0]).glow.play()) : ((f = f)));
eval ("_root.card" + _root.table[0]).card.gotoAndStop(((your_adj == my_adj) || (your_adj == 5)) + 1);
my_adj = eval ("_root.card" + _root.table[5]).l;
your_adj = eval ("_root.card" + _root.table[4]).r;
((((your_adj == my_adj) || (your_adj == 5)) && (eval ("_root.card" + _root.table[5]).card._currentframe != 2)) ? (eval ("_root.card" + _root.table[5]).glow.play()) : ((f = f)));
eval ("_root.card" + _root.table[5]).card.gotoAndStop(((your_adj == my_adj) || (your_adj == 5)) + 1);
my_adj = eval ("_root.card" + _root.table[6]).r;
your_adj = eval ("_root.card" + _root.table[7]).l;
((((your_adj == my_adj) || (your_adj == 5)) && (eval ("_root.card" + _root.table[6]).card._currentframe != 2)) ? (eval ("_root.card" + _root.table[6]).glow.play()) : ((f = f)));
eval ("_root.card" + _root.table[6]).card.gotoAndStop(((your_adj == my_adj) || (your_adj == 5)) + 1);
my_adj = eval ("_root.card" + _root.table[11]).l;
your_adj = eval ("_root.card" + _root.table[10]).r;
((((your_adj == my_adj) || (your_adj == 5)) && (eval ("_root.card" + _root.table[11]).card._currentframe != 2)) ? (eval ("_root.card" + _root.table[11]).glow.play()) : ((f = f)));
eval ("_root.card" + _root.table[11]).card.gotoAndStop(((your_adj == my_adj) || (your_adj == 5)) + 1);
f++;
}
}
if (game == 6) {
f = 0;
while ((_root.table.length + 1) >= f) {
(((f == 5) || (f == 8)) ? (type_1(f, -1, 1, 10)) : ((f = f)));
(((f == 6) || (f == 7)) ? (type_11(f, -5, 5, -1, 1, 10)) : ((f = f)));
((f == 4) ? (type_7(f, -4, 6, 1, 10)) : ((f = f)));
((f == 9) ? (type_8(f, -6, 4, -1, 10)) : ((f = f)));
((f == 1) ? (type_3(f, 5, 1, 10)) : ((f = f)));
((f == 2) ? (type_4(f, 5, -1, 10)) : ((f = f)));
((f == 11) ? (type_6(f, -5, 1, 10)) : ((f = f)));
((f == 12) ? (type_5(f, -5, -1, 10)) : ((f = f)));
(((f == _root.table.length) && (_root.card_count == _root.table.length)) ? (results()) : ((f = f)));
my_adj = eval ("_root.card" + _root.table[0]).l;
your_adj = eval ("_root.card" + _root.table[4]).r;
((((your_adj == my_adj) || (your_adj == 5)) && (eval ("_root.card" + _root.table[0]).card._currentframe != 2)) ? (eval ("_root.card" + _root.table[0]).glow.play()) : ((f = f)));
eval ("_root.card" + _root.table[0]).card.gotoAndStop(((your_adj == my_adj) || (your_adj == 5)) + 1);
my_adj = eval ("_root.card" + _root.table[3]).l;
your_adj = eval ("_root.card" + _root.table[9]).r;
((((your_adj == my_adj) || (your_adj == 5)) && (eval ("_root.card" + _root.table[3]).card._currentframe != 2)) ? (eval ("_root.card" + _root.table[3]).glow.play()) : ((f = f)));
eval ("_root.card" + _root.table[3]).card.gotoAndStop(((your_adj == my_adj) || (your_adj == 5)) + 1);
my_adj = eval ("_root.card" + _root.table[10]).r;
your_adj = eval ("_root.card" + _root.table[4]).l;
((((your_adj == my_adj) || (your_adj == 5)) && (eval ("_root.card" + _root.table[10]).card._currentframe != 2)) ? (eval ("_root.card" + _root.table[10]).glow.play()) : ((f = f)));
eval ("_root.card" + _root.table[10]).card.gotoAndStop(((your_adj == my_adj) || (your_adj == 5)) + 1);
my_adj = eval ("_root.card" + _root.table[13]).r;
your_adj = eval ("_root.card" + _root.table[9]).l;
((((your_adj == my_adj) || (your_adj == 5)) && (eval ("_root.card" + _root.table[13]).card._currentframe != 2)) ? (eval ("_root.card" + _root.table[13]).glow.play()) : ((f = f)));
eval ("_root.card" + _root.table[13]).card.gotoAndStop(((your_adj == my_adj) || (your_adj == 5)) + 1);
f++;
}
}
if (game == 7) {
f = 0;
while ((_root.table.length + 1) >= f) {
((f == 0) ? (type_3(f, 13, 1, 10)) : ((f = f)));
((f == 5) ? (type_4(f, 1, -1, 10)) : ((f = f)));
((f == 7) ? (type_5(f, -1, 1, 10)) : ((f = f)));
((f == 12) ? (type_6(f, 1, -1, 10)) : ((f = f)));
((f == 6) ? (type_2(f, -1, 1, 10)) : ((f = f)));
((f == 13) ? (type_2(f, -13, -1, 10)) : ((f = f)));
((f == 14) ? (type_2(f, -12, -4, 10)) : ((f = f)));
((f == 15) ? (type_2(f, -12, -6, 10)) : ((f = f)));
(((f == 1) || (f == 4)) ? (type_1(f, -1, 1, 10)) : ((f = f)));
(((f == 8) || (f == 11)) ? (type_1(f, 1, -1, 10)) : ((f = f)));
(((f == 2) || (f == 3)) ? (type_9(f, 12, -1, 1, 10)) : ((f = f)));
((f == 9) ? (type_10(f, 6, 1, -1, 10)) : ((f = f)));
((f == 10) ? (type_10(f, 4, 1, -1, 10)) : ((f = f)));
(((f == _root.table.length) && (_root.card_count == _root.table.length)) ? (results()) : ((f = f)));
f++;
}
}
if (game == 8) {
f = 0;
while ((_root.table.length + 1) >= f) {
((f == 0) ? (type_3(f, 6, 1, 10)) : ((f = f)));
((f == 5) ? (type_4(f, -1, 4, 10)) : ((f = f)));
((f == 10) ? (type_6(f, -4, 1, 10)) : ((f = f)));
((f == 15) ? (type_5(f, -6, -1, 10)) : ((f = f)));
(((((f == 2) || (f == 3)) || (f == 12)) || (f == 13)) ? (type_1(f, -1, 1, 10)) : ((f = f)));
((f == 1) ? (type_9(f, 6, -1, 1, 10)) : ((f = f)));
((f == 4) ? (type_9(f, 4, -1, 1, 10)) : ((f = f)));
((f == 11) ? (type_10(f, -4, -1, 1, 10)) : ((f = f)));
((f == 14) ? (type_10(f, -6, -1, 1, 10)) : ((f = f)));
((f == 6) ? (type_7(f, -6, 4, 1, 10)) : ((f = f)));
((f == 8) ? (type_7(f, -4, 6, 1, 10)) : ((f = f)));
((f == 7) ? (type_8(f, -6, 4, -1, 10)) : ((f = f)));
((f == 9) ? (type_8(f, -4, 6, -1, 10)) : ((f = f)));
(((f == _root.table.length) && (_root.card_count == _root.table.length)) ? (results()) : ((f = f)));
f++;
}
}
}
if (_root.challenged != "true") {
((f = f));// not popped
} else {
(_root.challengers_score = Number(_root.challengers_score));
(_root.challengers_table = Number(_root.challengers_table));
_root.instructions.gotoAndStop(3);
(_root.display.gotoAndStop(2));// not popped
}
stop();
_root.card.card.stop();
_root.lv = new Array(5, 5, 5, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 3, 4, 1, 2, 3, 4, 2, 2, 2, 2, 2, 2, 2, 2, 1, 2, 3, 4, 1, 2, 3, 4, 3, 3, 3, 3, 3, 3, 3, 3, 1, 2, 3, 4, 1, 2, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 1, 2, 3, 4, 1, 2, 3, 4);
_root.rv = new Array(5, 5, 5, 1, 2, 3, 4, 1, 2, 3, 4, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 3, 4, 1, 2, 3, 4, 2, 2, 2, 2, 2, 2, 2, 2, 1, 2, 3, 4, 1, 2, 3, 4, 3, 3, 3, 3, 3, 3, 3, 3, 1, 2, 3, 4, 1, 2, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4);
_root.value = new Array(0, 0, 0, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 20, 20, 20, 20, 20, 20, 20, 20, 25, 25, 25, 25);
_root.stash_place = new Array(223, 301, 379);
trace(_root.value.length);
_root.parties = new Array("Happy Hour", "Pot Luck", "Big Buffet", "Fancy Feast", "Summer Picnic", "Cocktail Hour", "Dinner Date", "Champagne Brunch");
}
onClipEvent (enterFrame) {
intro_volume = s_intro.getVolume();
intro_volume = intro_volume - (fade_intro_music == true);
((1 >= intro_volume) ? (s_intro.stop()(fade_intro_music = false)) : (s_intro.setVolume(intro_volume)));
first_volume = _root.first_theme.first_intro.getVolume();
first_volume = first_volume - (fade_first_music == true);
((1 >= first_volume) ? (_root.first_theme.first_intro.stop()(fade_first_music = false)) : (_root.first_theme.first_intro.setVolume(first_volume)));
interlude_volume = s_interlude.getVolume();
interlude_volume = interlude_volume - (fade_interlude_music == true);
((1 >= interlude_volume) ? (s_interlude.stop()(fade_interlude_music = false)) : (s_interlude.setVolume(interlude_volume)));
if (delay == true) {
d++;
if (d == 2) {
_root.hand = false;
d = 0;
delay = false;
}
}
_root.mstash = _root.stash.toString();
_root.mtable = _root.table.toString();
_root.mbonus_list = _root.bonus_list.toString();
_root.x = Math.floor((_root._xmouse - 72) / 77);
_root.y = Math.min(4, Math.floor((_root._ymouse - 28) / 107) + 1);
_root.ncard = _root.rnd[_root.d];
if (_root.y < 4) {
_root.place = _root.place_check[(_root.x + 1) add _root.y];
_root.over = _root.table[_root.place];
} else {
_root.place = "stash";
_root.over = _root.stash[_root.x - 2];
}
}
Instance of Symbol 164 MovieClip "cards" in Frame 3
onClipEvent (load) {
this.swapDepths(-999);
}
Instance of Symbol 494 MovieClip "card" in Frame 3
onClipEvent (enterFrame) {
if (go == true) {
adj = _x - x;
opp = _y - y;
ae = (opp * opp) + (adj * adj);
distance = Math.abs(Math.sqrt(ae));
angle = int((Math.atan(opp / adj) / 0.0174) - (180 * (adj < 0)));
_x = (_x - (Math.cos(angle * 0.0174) * (distance * 0.5)));
_y = (_y - (Math.sin(angle * 0.0174) * (distance * 0.5)));
if ((del == true) && (distance < 2)) {
_root.hand = false;
_root.fromDeck = false;
removeMovieClip(this);
}
if ((del != true) && (distance < 2)) {
this.swapDepths(piece);
_x = x;
_y = y;
go = false;
}
}
}
Symbol 23 Button
on (release) {
_root.gotoAndStop(3);
}
Symbol 24 MovieClip Frame 1
stop();
Symbol 24 MovieClip Frame 2
_root.first_theme.music();
Symbol 38 MovieClip Frame 1
stop();
Symbol 38 MovieClip Frame 2
gotoAndStop (1);
Symbol 38 MovieClip Frame 3
gotoAndStop (1);
Symbol 38 MovieClip Frame 4
gotoAndStop (1);
Symbol 38 MovieClip Frame 5
gotoAndStop (1);
Symbol 38 MovieClip Frame 6
gotoAndStop (1);
Symbol 38 MovieClip Frame 7
gotoAndStop (1);
Symbol 38 MovieClip Frame 8
gotoAndStop (1);
Symbol 38 MovieClip Frame 9
gotoAndStop (1);
Symbol 38 MovieClip Frame 10
gotoAndStop (1);
Symbol 38 MovieClip Frame 11
gotoAndStop (1);
Symbol 38 MovieClip Frame 12
gotoAndStop (1);
Symbol 41 Button
on (release) {
_root.script.help();
}
Symbol 58 MovieClip Frame 1
stop();
Symbol 60 Button
on (release) {
((((_root.instructions._currentframe != 10) && (_root.instructions._currentframe != 4)) && (_root.instructions._currentframe != 5)) ? (_root.script.intro_credits()) : ((i = i)));
(((_root.instructions._currentframe == 10) || (_root.instructions._currentframe == 4)) ? (_root.script.credits()) : ((i = i)));
}
Symbol 68 MovieClip Frame 1
stop();
Symbol 76 MovieClip Frame 19
stop();
Symbol 77 MovieClip Frame 1
t2.gotoAndStop(1);
Symbol 77 MovieClip Frame 49
t2.gotoAndStop(2);
Symbol 80 Button
on (release) {
_root.challenged = false;
_root.your_name = "";
_root.your_email = "";
_root.your_table = "";
_root.your_score = "";
_root.friends_name = "";
_root.friends_email = "";
this.gotoAndStop(2);
}
Symbol 83 Button
on (release) {
_root.game = 1;
_root.challenger = false;
_root.challenged = false;
_root.script.play_button();
}
Symbol 95 Button
on (release) {
_parent.swap(num);
}
Symbol 98 Button
on (release) {
f_and = 0;
y_and = 0;
y_start = 0;
f_start = 0;
i = 0;
while (i < _root.your_email.length) {
((_root.your_email.substr(i, 1) == "@") ? ((y_and = 1)) : ((f = f)));
((_root.your_email.substr(i, 1) == ".") ? ((y_dot = 1)(y_start = i)) : ((f = f)));
i++;
}
i = 0;
while (i < _root.friends_email.length) {
((_root.friends_email.substr(i, 1) == "@") ? ((f_and = 1)) : ((f = f)));
((_root.friends_email.substr(i, 1) == ".") ? ((f_dot = 1)(f_start = i)) : ((f = f)));
i++;
}
your_post = (_root.your_email.length - 1) - y_start;
friends_post = (_root.friends_email.length - 1) - f_start;
if (!((((((((your_post >= 2) && (friends_post >= 2)) && (y_and == 1)) && (f_and == 1)) && (y_dot == 1)) && (f_dot == 1)) && (0 < _root.your_name.length)) && (0 < _root.friends_name.length))) {
(this.gotoAndStop(6));// not popped
} else {
(_root.challenger = "true");
(_root.script.play_button());// not popped
}
}
Symbol 133 Button
on (release) {
_root.challenge_mode = true;
_root.script.play_button();
}
Symbol 138 Button
on (release) {
_root.script.main_menu();
}
Symbol 139 MovieClip Frame 1
stop();
Symbol 142 Button
on (release) {
_root.script.Back_to_game();
}
Symbol 154 Button
on (release) {
this.gotoAndStop(2);
}
Symbol 159 Button
on (release) {
this.gotoAndStop(_root.temp_frame);
}
Symbol 160 MovieClip Frame 1
stop();
Symbol 160 MovieClip Frame 2
function swap(num) {
i = 1;
while (8 >= i) {
eval ("b" + i).gotoAndStop(1);
eval ("b" + num).gotoAndStop(2);
mini_table.gotoAndStop(num);
_root.game = num;
i++;
}
}
swap(1);
Instance of Symbol 97 MovieClip "b8" in Symbol 160 MovieClip Frame 2
onClipEvent (load) {
stop();
num = 8;
}
Instance of Symbol 107 MovieClip "b7" in Symbol 160 MovieClip Frame 2
onClipEvent (load) {
stop();
num = 7;
}
Instance of Symbol 109 MovieClip "b6" in Symbol 160 MovieClip Frame 2
onClipEvent (load) {
stop();
num = 6;
}
Instance of Symbol 111 MovieClip "b5" in Symbol 160 MovieClip Frame 2
onClipEvent (load) {
stop();
num = 5;
}
Instance of Symbol 113 MovieClip "b4" in Symbol 160 MovieClip Frame 2
onClipEvent (load) {
stop();
num = 4;
}
Instance of Symbol 115 MovieClip "b3" in Symbol 160 MovieClip Frame 2
onClipEvent (load) {
stop();
num = 3;
}
Instance of Symbol 117 MovieClip "b2" in Symbol 160 MovieClip Frame 2
onClipEvent (load) {
stop();
num = 2;
}
Instance of Symbol 119 MovieClip "b1" in Symbol 160 MovieClip Frame 2
onClipEvent (load) {
stop();
num = 1;
}
Instance of Symbol 123 MovieClip "mini_table" in Symbol 160 MovieClip Frame 2
onClipEvent (load) {
stop();
}
Symbol 160 MovieClip Frame 3
_root.challengers_table = Number(_root.challengers_table);
table_temp = _root.challengers_table - 1;
Symbol 160 MovieClip Frame 4
if (!((_root.challenger == "true") || (_root.challenged == "true"))) {
(good_girl.gotoAndStop(2));// not popped
} else {
((i = i));// not popped
}
Symbol 165 MovieClip Frame 1
stop();
Symbol 165 MovieClip Frame 2
_root.script.play_sound("match");
Symbol 173 Button
on (release) {
if (_root.game_over != true) {
if (_root.hand != false) {
_root.script.dropCheck(_parent.piece);
}
if (((_root.hand == false) && (_root.over == _parent.piece)) && (_root.y < 4)) {
_root.script.moveCard(_parent.piece);
}
if ((_root.hand == false) && (_root.y == 4)) {
_root.script.from_stash(_parent.piece);
}
}
}
Symbol 174 MovieClip Frame 1
stop();
Symbol 494 MovieClip Frame 1
stop();
Symbol 498 MovieClip Frame 1
stop();
Symbol 501 Button
on (release) {
if (_root.game_over != true) {
_root.script.redeal();
}
}
Symbol 502 MovieClip Frame 1
stop();
Symbol 512 Button
on (release) {
_root.script.next_game();
}
Symbol 532 MovieClip Frame 1
stop();
Symbol 534 Button
on (release) {
_root.script.play_again();
}
Symbol 538 Button
on (release) {
_root.script.next_game();
_root.table_name = _root.game;
}
Symbol 544 Button
on (release) {
_root.script.good_girl();
}
Symbol 547 MovieClip Frame 1
stop();
Symbol 547 MovieClip Frame 3
final_score = _root.display.total_score + ".";
progress_table.gotoAndStop(_root.game - 1);
Symbol 547 MovieClip Frame 4
final_score = _root.display.total_score + ".";
_root.your_score = _root.display.total_score;
_root.your_table = _root.game;
_root.send_challenge();
sent_message = ((("Your challenge has been sent to " + _root.friends_name) + " at ") + _root.friends_email) + ". Once your opponent has played, we’ll let you know who came out on top!";
Symbol 547 MovieClip Frame 5
final_score = _root.display.total_score + ".";
_root.your_score = Number(_root.display.total_score);
_root.send_results();
((_root.challengers_score == _root.display.total_score) ? ((sent_message = ((("It’s a tie! The results of this challenge have been sent to " + _root.challengers_name) + " at ") + _root.challengers_email) + ". Play again to determine who is the hostess with the mostest!")_root.script.play_sound("end_game")) : ((f = f)));
((_root.display.total_score < _root.challengers_score) ? ((sent_message = ((("You lost this round of Lifetime RSVP! Your event was fine, but it wasn't as fabulous as " + _root.challengers_name) + "'s party. Congratulations have been sent to ") + _root.challengers_email) + ".")_root.script.play_sound("end_game")) : ((f = f)));
((_root.challengers_score < _root.display.total_score) ? ((sent_message = ((("You won this round of Lifetime RSVP! Clearly, your party was the place to be. Will " + _root.challengers_name) + " be on your guest list next time? We’ve sent our condolences to ") + _root.challengers_email) + ".")_root.script.play_sound("good_end")) : ((f = f)));