Frame 1
function preloaderInit() {
var _local2 = _root;
if (det_casinoname != undefined) {
casino_name = det_casinoname;
}
if (det_gamename != undefined) {
game_name = det_gamename;
}
if (!online) {
noconnection = true;
var game_name_new:String = "";
var _local1 = 0;
while (i < game_name.length) {
if (game_name.charCodeAt(i) != 32) {
game_name_new = game_name_new + game_name.charAt(i);
}
i++;
}
_local2.casino_url = ("http://www." + _local2.casino_name.toLowerCase()) + "/";
_local2.update_url = ("http://www.sexgamesbox.com/?source=" + game_name_new.toLowerCase()) + "ENon";
if (shareware == 1) {
_local2.update_url = ("http://www.sexgamesbox.com/?source=" + game_name_new.toLowerCase()) + "ENon";
}
}
fscommand ("showmenu", false);
p.game_name = game_name;
p.casino_name = casino_name;
_local2.flashStartLoadTime = new Date();
preloaderInitEx();
soundon = true;
kvant = getBytesTotal() / 100;
p.pb.gotoAndStop(1);
if (online) {
if (sock_server == undefined) {
_local2.sock_server = "192.168.1.34";
_local2.sock_port = "1459";
_local2.casino_id = "1";
_local2.con_var = "a:3:{s:11:"txn_id_prev";i:1313;s:12:"txn_id_entry";i:1313;s:9:"paysys_id";i:1;}";
_local2.user_id = 1920;
_local2.pwd = "a6116310ff89c679b117dec10eeece23";
}
} else {
gotoAndPlay (4);
}
}
function preloaderProcess() {
percent = getBytesLoaded() / kvant;
p.pb.gotoAndStop(int(percent / 2));
if (getBytesLoaded() >= getBytesTotal()) {
_root.flashEndLoadTime = new Date();
_root.flashLoadedBytes = getBytesLoaded();
gotoAndPlay (4);
}
}
function preloaderInitEx() {
if (online) {
if (location == undefined) {
location = "caribbean/table0";
}
} else if (shareware != 1) {
}
}
game_name = "Adult Caribbean Poker";
game_id = "Adult Caribbean Poker";
_version = "1.0";
online = false;
debug = 0;
shareware = false;
casino_name = "SexGamesBox.com";
PreloaderInit();
Frame 2
PreloaderProcess();
Frame 3
PreloaderProcess();
gotoAndPlay (2);
Frame 4
Frame 5
function DebugOutput(m) {
var _local1 = _root;
if (_local1.debug_win.debug_txt.length > 5000) {
_local1.debug_win.debug_txt = _local1.debug_win.debug_txt.substr(-4000, 4000);
}
_local1.debug_win.debug_txt = _local1.debug_win.debug_txt + (m + newline);
_local1.debug_win.debug_txt.scroll = _local1.debug_win.debug_txt.maxScroll + 10;
_local1.debug_win.sbd.setSize(_local1.debug_win.dta._height);
}
function connection_GetOnline() {
return(connection_Stage == CST_OK);
}
function connection_Init() {
connection_Stage = CST_NONE;
connection_Signature = "";
}
function connection_Process() {
var _local1 = _root;
if ((connection_Stage == CST_NONE) || (connection_Stage == CST_LOST)) {
_local1.DebugOutput(((("connection_Process::Trying to connect server '" + _local1.sock_server) + "', port ") + _local1.sock_port) + "...");
if (connection_Stage == CST_NONE) {
connection_Stage = CST_CONNECTING;
}
if (connection_Stage == CST_LOST) {
connection_Stage = CST_RECONNECTING;
}
_local1.socket = new XMLSocket();
_local1.socket.onXML = connection_onXML;
_local1.socket.onConnect = connection_onConnect;
_local1.socket.onClose = connection_onClose;
_local1.socket.connect(_local1.sock_server, _local1.sock_port);
} else if (connection_Stage == CST_CONNECTED) {
DebugOutput("connection_Process::sending AUTH");
connection_Stage = CST_AUTHSEND;
connection_DATA = false;
connection_ClearOutput();
connection_AddOutput("type", "auth");
connection_AddOutput("casino_id", _local1.casino_id);
connection_AddOutput("con_var", _local1.con_var);
connection_AddOutput("user_id", _local1.user_id);
connection_AddOutput("pwd", _local1.pwd);
connection_AddOutput("location", _local1.location);
connection_AddOutput("flash_capabilities", System.capabilities.serverString);
connection_AddOutput("flash_loaded_bytes", _local1.flashLoadedBytes);
connection_AddOutput("flash_start_load_time", _local1.flashStartLoadTime.getTime());
connection_AddOutput("flash_end_load_time", _local1.flashEndLoadTime.getTime());
var _local2 = new Date();
connection_AddOutput("flash_connect_time", _local2.getTime());
connection_SendOutput();
} else if (connection_Stage == CST_RECONNECTED) {
DebugOutput("connection_Process::sending AUTH.RESTORE");
connection_Stage = CST_AUTHRESTORESEND;
connection_DATA = false;
connection_ClearOutput();
connection_AddOutput("type", "auth.restore");
connection_AddOutput("location", location);
connection_AddOutput("signature", connection_Signature);
connection_SendOutput();
}
}
function connection_ProcessData() {
var _local1 = _root;
if (connection_Stage == CST_OK) {
_local1.gameOnData();
} else {
if (connection_Stage == CST_AUTHSEND) {
if (_local1.vars.type == "auth") {
if (_local1.vars.result == 1) {
connection_Signature = _local1.vars.signature;
DebugOutput("connection_ProcessData::OK");
connection_Stage = CST_OK;
} else {
connection_Stage = CST_NONE;
}
}
}
if (connection_Stage == CST_AUTHRESTORESEND) {
if (_local1.vars.type == "auth.restore") {
if (_local1.vars.result == 1) {
DebugOutput("connection_ProcessData::OK");
connection_Stage = CST_OK;
} else {
connection_Stage = CST_LOST;
}
}
DebugOutput("connection_ProcessData::connection_Stage == " add connection_Stage);
DebugOutput("connection_ProcessData::connection_GetOnline () == " add connection_GetOnline());
}
}
}
function connection_onConnect(success) {
if (success) {
_root.DebugOutput("connection_onConnect::Successfully connected!");
if (connection_Stage == CST_CONNECTING) {
connection_Stage = CST_CONNECTED;
}
if (connection_Stage == CST_RECONNECTING) {
connection_Stage = CST_RECONNECTED;
}
} else {
_root.DebugOutput("connection_onConnect::Connection failed, trying to re-connect...");
if (connection_Stage == CST_CONNECTING) {
connection_Stage = CST_NONE;
}
if (connection_Stage == CST_RECONNECTING) {
connection_Stage = CST_LOST;
}
}
}
function connection_onClose() {
_root.DebugOutput("connection_onClose::Connection terminated!");
if (connection_Signature != "") {
connection_Stage = CST_LOST;
} else {
connection_Stage = CST_NONE;
}
}
function connection_onXML(input) {
var _local1 = _root;
textr = input.toString();
DebugOutput(("XML data recieved: '" + textr) + "'");
xxx = input.firstChild;
_local1.vars = new Object();
i = 0;
while (i < xxx.childNodes.length) {
ndname = xxx.childNodes[i].nodeName;
if (ndname != null) {
_local1.vars[ndname] = xxx.childNodes[i].firstChild.nodeValue;
DebugOutput(((" Setting: " + ndname) + " = ") + xxx.childNodes[i].firstChild.nodeValue);
}
i++;
}
connection_ProcessData();
}
function connection_SendXML(XMLData) {
_root.socket.send(XMLData);
_root.DebugOutput(("Sending XML: '" + XMLData.toString()) + "'");
}
function connection_ClearOutput() {
OutputDataStr = "<root>\n";
}
function connection_AddOutput(name, value) {
OutputDataStr = OutputDataStr + (((((("<" + name) + ">") + value) + "</") + name) + ">\n");
}
function connection_SendOutput() {
OutputDataStr = OutputDataStr + "</root>\n";
XML_Data = new XML(OutputDataStr);
Connection_SendXML(XML_Data);
}
function connection_ToServer(dataObject) {
var _local1 = dataObject;
connection_ClearOutput();
connection_AddOutput("signature", connection_Signature);
connection_AddOutput("game_packet", 1);
for (var _local2 in _local1) {
connection_AddOutput(_local2, _local1[_local2]);
}
connection_SendOutput();
}
function PlayStereoSound(max, x, soundID) {
var _local1 = max;
var _local3 = x;
if (!soundon) {
} else {
var _local2;
_local2 = new Sound();
_local2.attachSound(soundID);
if (_local3 < 0) {
_local3 = 0;
} else if (_local3 > _local1) {
_local3 = _local1;
}
if (_local1 != 0) {
_local2.setPan(((_local3 - (_local1 / 2)) * 100) / (_local1 / 2));
}
_local2.start();
}
}
function PlaySound(soundID) {
PlayStereoSound(0, 0, soundID);
}
function BuildBetColumn(x, y, amount) {
var _local2 = _root;
var ThisY = 0;
var DecreasableBet = Number(amount);
trace("amount " + amount);
var _local3;
var j = (coin_val.length - 2);
while (j >= -1) {
if (j == -1) {
_local3 = coin_val.length - 1;
} else {
_local3 = j;
}
while (DecreasableBet >= (coin_val[_local3] - 1E-6)) {
var _local1 = "BetedChip" + String(NoBetedChips);
trace("NewClipName " + _local1);
_local2.chip_template.duplicateMovieClip(_local1, 300 + NoBetedChips);
_local2[_local1]._x = x;
trace("x " + x);
_local2[_local1]._y = y - (ChipBetHeight * ThisY);
_local2[_local1].gotoAndStop(_local3 + 1);
_local2[_local1]._xscale = ChipBetScale;
_local2[_local1]._yscale = ChipBetScale;
NoBetedChips++;
ThisY++;
DecreasableBet = DecreasableBet - coin_val[_local3];
}
j--;
}
}
function RemoveChipsFromBet() {
var _local2 = _root;
i = 0;
while (i < NoBetedChips) {
var _local1 = "BetedChip" + String(i);
_local2[_local1].removeMovieClip();
i++;
}
NoBetedChips = 0;
}
function GetCoinsNums(number) {
var _local1 = _root;
cnum = new Array();
a = number;
i = _local1.coin_val.length - 1;
while (i >= 0) {
cnum[i] = Math.floor(a / _local1.coin_val[i]);
a = a - (cnum[i] * _local1.coin_val[i]);
i--;
}
return(cnum);
}
function StartMusic() {
var _local1 = _root;
_local1.so_music = new Sound();
_local1.so_music.attachSound("snd_music");
_local1.so_music.start(0, 65535);
}
function CheckSound() {
var _local1 = _root;
soundon = !soundon;
setProperty("panel.sound_off", _visible , !soundon);
setProperty("panel.fonar.sound_off", _visible , !soundon);
if (soundon) {
_local1.bgsnd = new Sound();
_local1.bgsnd.attachSound("snd_background");
_local1.bgsnd.start(0, 65535);
} else {
_local1.bgsnd.stop("snd_background");
}
}
function CheckMusic() {
musicon = !musicon;
setProperty("panel.music_off", _visible , !musicon);
setProperty("panel.fonar.music_off", _visible , !musicon);
if (musicon) {
StartMusic();
} else {
_root.so_music.stop("snd_music");
}
}
function onlineValidator() {
var _local1 = _root;
if (online) {
if (connection_GetOnline()) {
_local1.connecting_clip.gotoAndStop("l_online");
} else {
connection_Process();
cond = 0;
_local1.connecting_clip.gotoAndStop("l_connecting");
}
} else {
_local1.connecting_clip._visible = false;
}
if (_local1.shareware == 1) {
_local1.connecting_clip._visible = false;
}
}
function isLiveConnection() {
DebugOutput("isLiveConnection::online: " add online);
DebugOutput("isLiveConnection::connection_GetOnline (): " add connection_GetOnline());
if (!online) {
return(true);
}
if (online && (connection_GetOnline())) {
return(true);
}
return(false);
}
function formMoneyWithCurrency(m) {
if (currency != "$") {
return((formNumber(m) + " ") + currency);
}
return(currency + formNumber(m));
}
function displayMoneyAndBet() {
var _local2 = Math.round(money * 10000) / 10000;
var _local1 = Math.round(bet * 10000) / 10000;
_root.panel.money_txt = formMoneyWithCurrency(_local2);
_root.panel.bet_txt = formMoneyWithCurrency(_local1);
status_bar = statusAdd;
if (status_bar != "") {
status_bar = status_bar + newline;
}
if (bet == 0) {
status_bar = status_bar + sbm_placebet;
} else {
status_bar = status_bar + ((sbm_bet_pref + formMoneyWithCurrency(_local1)) + sbm_bet_suff);
}
PutMessage(status_bar);
}
function formNumber(n) {
var _local3 = String(Math.floor(n));
var _local1 = n - Math.floor(n);
if (digits > 0) {
_local3 = _local3 + ".";
}
i = 0;
while (i < digits) {
var _local2 = Math.floor(_local1 * 10);
_local3 = _local3 + String(_local2);
_local1 = (_local1 * 10) - Math.floor(_local1 * 10);
i++;
}
return(_local3);
}
function round10000(b) {
return(Math.round(10000 * b) / 10000);
}
function commonGameInit() {
var _local1 = _root;
_local1.rules_win_template._visible = false;
_local1.rules_win_shareware._visible = false;
if (shareware == 1) {
_local1.rules_win_shareware.duplicateMovieClip("rules_win", 31321);
_local1.connecting_clip._visible = false;
} else {
_local1.rules_win_template.duplicateMovieClip("rules_win", 31321);
}
_local1.rules_win._visible = false;
_local1.helpContent._visible = false;
_local1.helpShareware._visible = false;
_local1.connecting_clip.hint_rm.hint.txt = "Play for real\nmoney";
_local1.connecting_clip.hint_rm.gotoAndStop(1);
_local1.wasInside = false;
_local1.CardDealing.gotoAndStop(53);
_local1.CardDealing._visible = false;
_local1.PutMessage(sbm_logging);
DebugOutput("gameInit ()");
if (online) {
connection_Init();
}
_local1.panel._defaultalpha = 100;
_local1.panel._alpha = panel._defaultalpha;
}
function ShowSelectedChip() {
var _local1 = _root;
_local1.SelectedChipClip.removeMovieClip();
stopDrag();
if (SelectedChip > 0) {
OldClipName = "ClipChip" add String(ChipsValues[SelectedChip]);
_local1.chip_template.duplicateMovieClip("SelectedChipClip", 1024);
_local1.SelectedChipClip.gotoAndStop(SelectedChip);
_local1.SelectedChipClip._xscale = ChipBetScale;
_local1.SelectedChipClip._yscale = ChipBetScale;
startDrag ("SelectedChipClip", true);
}
}
function arraySum(a) {
var _local2 = a;
var _local3 = Number(0);
var _local1 = 0;
while (_local1 < _local2.length) {
_local3 = _local3 + Number(_local2[_local1]);
_local1++;
}
return(_local3);
}
function commonInitOffline() {
var _local1 = _root;
_local1.vars = new Object();
_local1.minbet = 0.01;
_local1.maxbet = 1000000 /* 0x0F4240 */;
_local1.money = 1000;
_local1.bet = 0;
_local1.currency = "$";
_local1.digits = 2;
}
function clearRandomCards() {
ServerCards = new Array();
var _local2 = 0;
while (_local2 < (NO_PLAYER_COMB + 1)) {
ServerCards[_local2] = new Array();
var _local1 = 0;
while (_local1 < 100) {
ServerCards[_local2][_local1] = 0;
_local1++;
}
_local2++;
}
}
function GetRandomCard() {
var _local3 = true;
var c = 0;
while (_local3) {
c = 1 + random(52);
_local3 = false;
var _local2 = 0;
while (_local2 < (NO_PLAYER_COMB + 1)) {
var _local1 = 0;
while (_local1 < 5) {
if (ServerCards[_local2][_local1] == c) {
_local3 = true;
}
_local1++;
}
_local2++;
}
}
return(c);
}
function CardToN(c) {
return(1 + ((c - 1) % 13));
}
function clearActions() {
enabledActions = new Array();
enabledActions[UA_RESET] = true;
}
function addAction(text, code) {
enabledActions[code] = true;
vars[("action_" add vars.no_actions) add "_text"] = text;
vars[("action_" add vars.no_actions) add "_code"] = code;
vars.no_actions++;
}
function LocalServerEmulation() {
var min_bet = 0.01;
var max_bet = 100;
var action = _root.choosen_action;
var antes = new Array();
var ante = 0;
i = 0;
while (i < NO_PLAYER_COMB) {
antes[i] = _root["comb_" add i].ante;
if (antes[i] < min_bet) {
antes[i] = 0;
}
ante = ante + antes[i];
i++;
}
DebugOutput((((("---------------- Local server; Action: " add action) add "; Bet: ") add bet) add "; Insurance: ") add insurance);
vars.no_do = 0;
vars.no_actions = 0;
vars.is_error = 0;
if (enabledActions[action] != true) {
vars.message = "DISABLED ACTION: " add action;
vars.is_error = 1;
} else {
clearActions();
if (_root.choosen_action == UA_REFRESH) {
vars[("do_" add vars.no_do) add "_action"] = ACT_MONEY;
vars[("do_" add vars.no_do) add "_money"] = ServerPlayerMoney;
vars.no_do++;
if (ServerState == SS_BET) {
vars[("do_" add vars.no_do) add "_action"] = ACT_CLEAR_BET;
vars.no_do++;
}
vars[("do_" add vars.no_do) add "_action"] = ACT_MESSAGE;
vars[("do_" add vars.no_do) add "_message"] = "Place your ante!";
vars.no_do++;
if (ServerState == SS_BET) {
AddBetActions();
} else if (ServerState == SS_DEALED) {
AnalyseCombination();
} else if (ServerState == SS_CONTINUE) {
AddContinueActions();
}
} else if ((_root.choosen_action == UA_RESET) or (_root.choosen_action == UA_CONTINUE)) {
if ((ServerState != SS_NONE) and (ServerState != SS_CONTINUE)) {
vars.is_error = 1;
return;
}
clearRandomCards();
i = 0;
while (i <= NO_PLAYER_COMB) {
ServerAntes[i] = 0;
ServerBets[i] = 0;
ServerNoCards[i] = 0;
i++;
}
vars.is_error = 0;
vars.cond = COND_BET;
vars[("do_" add vars.no_do) add "_action"] = ACT_RESET;
vars.no_do++;
vars[("do_" add vars.no_do) add "_action"] = ACT_MONEY;
vars[("do_" add vars.no_do) add "_money"] = ServerPlayerMoney;
vars.no_do++;
vars[("do_" add vars.no_do) add "_action"] = ACT_COMB_ACTIVE;
vars[("do_" add vars.no_do) add "_comb"] = -1;
vars.no_do++;
vars[("do_" add vars.no_do) add "_action"] = ACT_MESSAGE;
vars[("do_" add vars.no_do) add "_message"] = "Place Your Ante!";
vars.no_do++;
AddBetActions();
ServerState = SS_BET;
} else if (_root.choosen_action == UA_CLEAR_BET) {
vars[("do_" add vars.no_do) add "_action"] = ACT_MONEY;
vars[("do_" add vars.no_do) add "_money"] = ServerPlayerMoney;
vars.no_do++;
vars[("do_" add vars.no_do) add "_action"] = ACT_CLEAR_BET;
vars.no_do++;
vars[("do_" add vars.no_do) add "_action"] = ACT_MESSAGE;
vars[("do_" add vars.no_do) add "_message"] = "Place Your Ante!";
vars.no_do++;
AddBetActions();
ServerState = SS_BET;
} else if (_root.choosen_action == UA_DEAL) {
if ((ante < min_bet) or (ante > max_bet)) {
vars.is_error = 0;
vars.cond = COND_BET;
vars[("do_" add vars.no_do) add "_action"] = ACT_MESSAGE;
if (ante < min_bet) {
vars[("do_" add vars.no_do) add "_message"] = "Your Ante is to small!";
}
if (ante > max_bet) {
vars[("do_" add vars.no_do) add "_message"] = "Your Ante is to big!";
}
if (ante > ServerPlayerMoney) {
vars[("do_" add vars.no_do) add "_message"] = "Your Ante is greater then your money!";
}
vars.no_do++;
AddBetActions();
ServerState = SS_BET;
return;
}
clearRandomCards();
ServerPlayerMoney = ServerPlayerMoney - ante;
var _local1 = 0;
while (_local1 < NO_PLAYER_COMB) {
if (antes[_local1] > 0) {
ServerAntes[_local1] = antes[_local1];
var FirstDealOK = false;
var cnt = 0;
while ((!FirstDealOK) && ((cnt++) < 100)) {
ServerCards[_local1] = [0, 0, 0, 0, 0];
ServerNoCards[_local1] = 5;
var _local2 = 0;
while (_local2 < 5) {
ServerCards[_local1][_local2] = GetRandomCard();
_local2++;
}
if (IsAffordable(getMaxPossibleIncome(_local1))) {
FirstDealOK = true;
}
}
} else {
ServerCards[_local1] = [0, 0, 0, 0, 0];
ServerNoCards[_local1] = 0;
}
_local1++;
}
ServerCards[COMB_DEALER] = [GetRandomCard(), 0, 0, 0, 0];
ServerNoCards[COMB_DEALER] = 1;
i = 0;
while (i < NO_PLAYER_COMB) {
if (ServerNoCards[i] > 0) {
ServerActiveCombination = i;
break;
}
i++;
}
vars[("do_" add vars.no_do) add "_action"] = ACT_COMB_ACTIVE;
vars[("do_" add vars.no_do) add "_comb"] = ServerActiveCombination;
vars.no_do++;
var _local3 = 0;
while (_local3 < 5) {
var i = 0;
while (i < (NO_PLAYER_COMB + 1)) {
if ((i < NO_PLAYER_COMB) && (serverAntes[i] > 0)) {
vars[("do_" add vars.no_do) add "_action"] = ACT_DEAL;
vars[("do_" add vars.no_do) add "_destination"] = i;
vars[("do_" add vars.no_do) add "_card"] = ServerCards[i][_local3];
vars.no_do++;
} else if (i == COMB_DEALER) {
vars[("do_" add vars.no_do) add "_action"] = ACT_DEAL;
vars[("do_" add vars.no_do) add "_destination"] = i;
if (_local3 == 0) {
vars[("do_" add vars.no_do) add "_card"] = ServerCards[COMB_DEALER][_local3];
} else {
vars[("do_" add vars.no_do) add "_card"] = 53;
}
vars.no_do++;
}
i++;
}
_local3++;
}
AnalyseCombination();
} else if (_root.choosen_action == UA_FOLD) {
ServerAntes[ServerActiveCombination] = 0;
vars[("do_" add vars.no_do) add "_action"] = ACT_COMB_ANTE;
vars[("do_" add vars.no_do) add "_ante"] = 0;
vars.no_do++;
vars[("do_" add vars.no_do) add "_action"] = ACT_COMB_MESSAGE;
vars[("do_" add vars.no_do) add "_message"] = "Fold";
vars.no_do++;
vars[("do_" add vars.no_do) add "_action"] = ACT_MONEY;
vars[("do_" add vars.no_do) add "_money"] = ServerPlayerMoney;
vars.no_do++;
vars[("do_" add vars.no_do) add "_action"] = ACT_MESSAGE;
vars[("do_" add vars.no_do) add "_message"] = "Press Continue";
vars.no_do++;
NextCombination();
} else if (_root.choosen_action == UA_CALL) {
ServerPlayerMoney = ServerPlayerMoney - (ServerAntes[ServerActiveCombination] * 2);
ServerBets[ServerActiveCombination] = ServerAntes[ServerActiveCombination] * 2;
vars[("do_" add vars.no_do) add "_action"] = ACT_COMB_BET;
vars[("do_" add vars.no_do) add "_bet"] = ServerBets[ServerActiveCombination];
vars.no_do++;
vars[("do_" add vars.no_do) add "_action"] = ACT_MONEY;
vars[("do_" add vars.no_do) add "_money"] = ServerPlayerMoney;
vars.no_do++;
NextCombination();
}
}
}
function AddBetActions() {
addAction("Clear Bet", UA_CLEAR_BET);
addAction("DEAL", UA_DEAL);
vars.cond = COND_BET;
}
function AddContinueActions() {
addAction("CONTINUE", UA_CONTINUE);
vars.cond = COND_CONTINUE;
}
function AnalyseCombination() {
addAction("FOLD", UA_FOLD);
if ((ServerPlayerMoney + 1E-5) >= (ServerAntes[ServerActiveCombination] * 2)) {
addAction("CALL", UA_CALL);
}
ServerState = SS_DEALED;
vars.cond = COND_ACTION;
vars[("do_" add vars.no_do) add "_action"] = ACT_MESSAGE;
vars[("do_" add vars.no_do) add "_message"] = "Choose your action!";
vars.no_do++;
}
function CardToN(c) {
return(1 + Math.floor((c - 1) % 13));
}
function CardToM(c) {
return(1 + Math.floor((c - 1) / 13));
}
function calculateArrayAsCombination(arr) {
var n = Array();
var m = Array();
var _local1 = 0;
while (_local1 < 5) {
n[_local1] = CardToN(arr[_local1]);
m[_local1] = CardToM(arr[_local1]);
_local1++;
}
var _local2 = new Array();
var ms = new Array();
_local1 = 0;
while (_local1 < 5) {
_local2[_local1] = n[_local1];
ms[_local1] = m[_local1];
_local1++;
}
Moved = true;
while (Moved) {
Moved = false;
_local1 = 0;
while (_local1 < 4) {
if (_local2[_local1] > _local2[_local1 + 1]) {
var _local3 = _local2[_local1];
_local2[_local1] = _local2[_local1 + 1];
_local2[_local1 + 1] = _local3;
_local3 = ms[_local1];
ms[_local1] = ms[_local1 + 1];
ms[_local1 + 1] = _local3;
Moved = true;
}
_local1++;
}
}
var mc = [0, 0, 0, 0, 0];
var nc = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
_local1 = 0;
while (_local1 < 5) {
nc[n[_local1]]++;
mc[m[_local1]]++;
_local1++;
}
var nnc = [0, 0, 0, 0, 0, 0];
_local1 = 1;
while (_local1 <= 13) {
nnc[nc[_local1]]++;
_local1++;
}
var nmc = [0, 0, 0, 0, 0, 0];
_local1 = 1;
while (_local1 <= 4) {
nmc[mc[_local1]]++;
_local1++;
}
_local1 = 0;
while (_local1 < 5) {
CardsWin[_local1] = true;
_local1++;
}
if ((((((_local2[0] == 1) and (_local2[1] == 10)) and (_local2[2] == 11)) and (_local2[3] == 12)) and (_local2[4] == 13)) and (nmc[5] == 1)) {
return(TC_ROYAL_FLUSH);
}
if (((nnc[1] == 5) and (nmc[5] == 1)) and (((_local2[4] - _local2[0]) == 4) or (((_local2[0] == 1) and (_local2[1] == 10)) and (_local2[4] == 13)))) {
return(TC_STRAIGHT_FLUSH);
}
if (nnc[4] == 1) {
_local1 = 0;
while (_local1 < 5) {
if (nc[n[_local1]] != 4) {
CardsWin[_local1] = false;
}
_local1++;
}
return(TC_FOUR_OF_A_KIND);
}
if ((nnc[3] == 1) and (nnc[2] == 1)) {
return(TC_FULL_HOUSE);
}
if ((((mc[1] == 5) || (mc[2] == 5)) || (mc[3] == 5)) || (mc[4] == 5)) {
return(TC_FLUSH);
}
if ((nnc[1] == 5) and (((_local2[4] - _local2[0]) == 4) or (((_local2[0] == 1) and (_local2[1] == 10)) and (_local2[4] == 13)))) {
return(TC_STRAIGHT);
}
if (nnc[3] == 1) {
_local1 = 0;
while (_local1 < 5) {
if (nc[n[_local1]] != 3) {
CardsWin[_local1] = false;
}
_local1++;
}
return(TC_THREE_OF_A_KIND);
}
if (nnc[2] == 2) {
_local1 = 0;
while (_local1 < 5) {
if (nc[n[_local1]] != 2) {
CardsWin[_local1] = false;
}
_local1++;
}
return(TC_TWO_PAIRS);
}
if (nnc[2] == 1) {
_local1 = 0;
while (_local1 < 5) {
if (nc[n[_local1]] < 2) {
CardsWin[_local1] = false;
}
_local1++;
}
return(TC_PAIR);
}
if ((nc[1] > 0) && (nc[13] > 0)) {
_local1 = 0;
while (_local1 < 5) {
if ((n[_local1] != 1) && (n[_local1] != 13)) {
CardsWin[_local1] = false;
}
_local1++;
}
return(TC_ACE_AND_KING);
}
_local1 = 0;
while (_local1 < 5) {
CardsWin[_local1] = false;
_local1++;
}
return(TC_NONE);
}
function CalculateCombination(c) {
return(calculateArrayAsCombination(ServerCards[c]));
}
function calculateRank(combRank, arr, cardsWin) {
var no = 5;
var _local3 = Array();
var _local1 = 0;
while (_local1 < RANK_SIZE) {
_local3[_local1] = 0;
_local1++;
}
_local3[0] = combRank;
var winRanks = [0, 0, 0, 0, 0];
var nonwinRanks = [0, 0, 0, 0, 0];
var winSuits = [0, 0, 0, 0, 0];
var nonwinSuits = [0, 0, 0, 0, 0];
_local1 = 0;
while (_local1 < no) {
var _local2 = CardToN(arr[_local1]);
if (_local2 == 1) {
_local2 = 14;
}
var m = CardToM(arr[_local1]);
if (cardsWin[_local1]) {
winRanks.push(_local2);
winSuits.push(m);
} else {
nonwinRanks.push(_local2);
nonwinSuits.push(m);
}
_local1++;
}
winRanks = backSortArray(winRanks);
winSuits = backSortArray(winSuits);
nonwinRanks = backSortArray(nonwinRanks);
nonwinSuits = backSortArray(nonwinSuits);
_local1 = 0;
while (_local1 < 5) {
_local3[1 + _local1] = winRanks[_local1];
_local3[6 + _local1] = nonwinRanks[_local1];
_local3[11 + _local1] = winSuits[_local1];
_local3[16 + _local1] = nonwinSuits[_local1];
_local1++;
}
return(_local3);
}
function traceArray(pr, a) {
var _local2 = a;
var _local3 = "";
var _local1 = 0;
while (_local1 < _local2.length) {
_local3 = _local3 + (_local2[_local1] + " ");
_local1++;
}
trace(pr + _local3);
}
function backSortArray(a) {
var _local2 = a;
var _local3 = true;
while (_local3) {
_local3 = false;
var _local1 = 0;
while (_local1 < (_local2.length - 1)) {
if (_local2[_local1] < _local2[_local1 + 1]) {
_local2 = swapPlaces(_local2, _local1, _local1 + 1);
_local3 = true;
}
_local1++;
}
}
return(_local2);
}
function swapPlaces(arr, placeA, placeB) {
var _local1 = arr;
var _local2 = _local1[placeA];
_local1[placeA] = _local1[placeB];
_local1[placeB] = _local2;
return(_local1);
}
function compareCombinations(a, b) {
var _local2 = b;
var _local3 = a;
var _local1 = 0;
while (_local1 < RANK_SIZE) {
if (_local3[_local1] > _local2[_local1]) {
return(1);
}
if (_local3[_local1] < _local2[_local1]) {
return(-1);
}
_local1++;
}
return(0);
}
function getCombinationResultAnte(c) {
var _local1 = c;
var _local2 = CalculateCombination(COMB_DEALER);
var rankDealer = calculateRank(_local2, ServerCards[COMB_DEALER], CardsWin);
if (_local2 == 0) {
return(ServerAntes[_local1] * 2);
}
var calcPlayer = CalculateCombination(_local1);
var rankPlayer = calculateRank(calcPlayer, ServerCards[_local1], CardsWin);
var _local3 = compareCombinations(rankPlayer, rankDealer);
if (_local3 < 0) {
return(0);
}
if (_local3 == 0) {
return(ServerAntes[_local1]);
}
return(ServerAntes[_local1] * 2);
}
function getCombinationResultBet(c) {
var _local1 = c;
var _local2 = CalculateCombination(COMB_DEALER);
var rankDealer = calculateRank(_local2, ServerCards[COMB_DEALER], CardsWin);
if (_local2 == 0) {
return(ServerBets[_local1]);
}
var _local3 = CalculateCombination(_local1);
var rankPlayer = calculateRank(_local3, ServerCards[_local1], CardsWin);
var comp = compareCombinations(rankPlayer, rankDealer);
if (comp < 0) {
return(0);
}
if (comp == 0) {
return(ServerBets[_local1]);
}
return(ServerBets[_local1] * (winsTable[_local3] + 1));
}
function TestCombinaionForIncome() {
var _local1 = 0;
i = 0;
while (i < NO_PLAYER_COMB) {
if ((ServerNoCards[i] > 0) and (ServerAntes[i] > 0)) {
_local1 = _local1 + (getCombinationResultBet(i) + getCombinationResultAnte(i));
}
i++;
}
return(_local1);
}
function getMaxPossibleIncome(c) {
var _local1 = c;
var _local2 = CalculateCombination(_local1);
if (_local2 <= TC_PAIR) {
return(0);
}
if (_local2 == 0) {
return((ServerAntes[_local1] * 2) + ServerBets[_local1]);
}
return((ServerAntes[_local1] * 2) + (ServerBets[_local1] * winsTable[_local2 + 1]));
}
function IsAffordable(i) {
debugOutput("Trying: " add i);
if (random(2) > 0) {
return(true);
}
return(false);
}
function NextCombination() {
var isMoreComb = false;
i = ServerActiveCombination + 1;
while (i < NO_PLAYER_COMB) {
if (ServerNoCards[i] > 0) {
isMoreComb = true;
}
i++;
}
if (!isMoreComb) {
var isAnyGame = false;
var i = 0;
while (i < NO_PLAYER_COMB) {
if (ServerBets[i] > 0) {
isAnyGame = true;
}
i++;
}
if (isAnyGame) {
var IsCombinationAffordable = false;
var LimitCount = 100;
while ((!IsCombinationAffordable) and ((LimitCount--) > 0)) {
var i = 1;
while (i < 5) {
ServerCards[COMB_DEALER][i] = 0;
i++;
}
var i = 1;
while (i < 5) {
ServerCards[COMB_DEALER][i] = GetRandomCard();
i++;
}
ServerNoCards[COMB_DEALER] = 5;
var income = TestCombinaionForIncome();
if (IsAffordable(income)) {
IsCombinationAffordable = true;
} else {
IsCombinationAffordable = false;
}
}
var i = 1;
while (i < 5) {
vars[("do_" add vars.no_do) add "_action"] = ACT_OPEN;
vars[("do_" add vars.no_do) add "_to_open"] = i;
vars[("do_" add vars.no_do) add "_card"] = ServerCards[COMB_DEALER][i];
vars.no_do++;
i++;
}
var totalLoss = 0;
var totalWins = 0;
var totalChanges = 0;
i = 0;
while (i < NO_PLAYER_COMB) {
if ((ServerNoCards[i] > 0) and (ServerAntes[i] > 0)) {
var _local2 = ServerBets[i] + ServerAntes[i];
vars[("do_" add vars.no_do) add "_action"] = ACT_COMB_ACTIVE;
vars[("do_" add vars.no_do) add "_comb"] = i;
vars.no_do++;
vars[("do_" add vars.no_do) add "_action"] = ACT_COMB_ANTE;
ServerAntes[i] = getCombinationResultAnte(i);
vars[("do_" add vars.no_do) add "_ante"] = ServerAntes[i];
vars.no_do++;
vars[("do_" add vars.no_do) add "_action"] = ACT_COMB_BET;
ServerBets[i] = getCombinationResultBet(i);
vars[("do_" add vars.no_do) add "_bet"] = ServerBets[i];
vars.no_do++;
var _local3 = ServerBets[i] + ServerAntes[i];
var _local1 = _local3 - _local2;
totalLoss = totalLoss + _local2;
totalWins = totalWins + _local3;
totalChanges = totalChanges + _local1;
if (_local1 < 0) {
vars[("do_" add vars.no_do) add "_action"] = ACT_COMB_MESSAGE;
vars[("do_" add vars.no_do) add "_message"] = "loss " add (-_local1);
vars.no_do++;
} else if (_local1 > 0) {
vars[("do_" add vars.no_do) add "_action"] = ACT_COMB_MESSAGE;
vars[("do_" add vars.no_do) add "_message"] = "won " add _local1;
vars.no_do++;
} else if (_local1 == 0) {
vars[("do_" add vars.no_do) add "_action"] = ACT_COMB_MESSAGE;
vars[("do_" add vars.no_do) add "_message"] = " push";
vars.no_do++;
}
}
i++;
}
ServerPlayerMoney = ServerPlayerMoney + totalWins;
var message = "You have keep your money!";
if (totalChanges > 0) {
message = ("Congratulations, you have won " add formMoneyWithCurrency(totalChanges)) add "!";
}
if (totalChanges < 0) {
message = ("Sorry, no winner there, you have loss " add formMoneyWithCurrency(-totalChanges)) add "...";
}
vars[("do_" add vars.no_do) add "_action"] = ACT_MESSAGE;
vars[("do_" add vars.no_do) add "_message"] = message;
vars.no_do++;
}
AddContinueActions();
ServerState = SS_CONTINUE;
} else {
i = ServerActiveCombination + 1;
while (i < NO_PLAYER_COMB) {
if (ServerNoCards[i] > 0) {
ServerActiveCombination = i;
break;
}
i++;
}
vars[("do_" add vars.no_do) add "_action"] = ACT_COMB_ACTIVE;
vars[("do_" add vars.no_do) add "_comb"] = ServerActiveCombination;
vars.no_do++;
AnalyseCombination();
}
}
function gameInit() {
var _local1 = _root;
commonGameInit();
st = ST_NONE;
_local1.choosen_action = 0;
i = 0;
while (i < (NO_PLAYER_COMB + 1)) {
_local1["comb_" add String(i)]._visible = false;
_local1["comb_" add String(i)].no = i;
i++;
}
}
function gameProcess() {
onlineValidator();
if (st == ST_NONE) {
if (online and connection_GetOnline()) {
status_bar = sbm_logging;
st = ST_LOADING;
connection_ToServer({type:"load"});
}
if (!online) {
vars = new Object();
commonInitOffline();
st = ST_SEND;
displayMoneyAndBet();
}
} else if (st == ST_SEND) {
processSend();
} else if (st == ST_WAITSERVER) {
processWaitServer();
} else if (st == ST_DO) {
processDo();
} else if (st == ST_MOVE) {
processMove();
} else if (st == ST_BET) {
}
}
function gameOnData() {
if (st == ST_LOADING) {
money = Number(vars.balance);
digits = Number(vars.digits);
currency = vars.currency;
minbet = Number(vars.min_bet);
maxbet = Number(vars.max_bet);
displayMoneyAndBet();
st = ST_SEND;
}
if (st == ST_WAITSERVER) {
processDataFromServer();
}
}
function PutBet(betnum) {
var _local2 = _root;
if (!_local2.rules_win._visible) {
if (st == ST_BET) {
_local2.PlaySound("snd_click");
var _local1 = _local2.coin_val[betnum - 1];
var _local3 = 0;
if ((_local2["comb_" add _local3].ante + _local1) > maxbet) {
PutMessage("Sorry, but it is impossible bet");
} else if ((bet + _local1) > ((bet + money) / 3)) {
PutMessage("Impossible Bet\n(you can not Call)");
} else if ((bet + _local1) > maxbet) {
PutMessage("Maximal bet is limited " add String(maxbet));
} else {
_local2["comb_" add _local3].ante = _local2["comb_" add _local3].ante + _local1;
money = money - _local1;
bet = bet + _local1;
_local2["comb_" add _local3].display();
_local2.CalculateBet();
DisplayBets();
}
}
}
}
function PutMessage(m) {
MessageLog = m add newline;
txt_message = m;
if (txt_message.subStr(0, 15) == "Congratulations") {
gameWin();
}
if (txt_message.subStr(0, 5) == "Sorry") {
gameLoose();
}
}
function DisplayBets() {
var _local1 = _root;
RemoveChipsFromBet();
i = 0;
while (i < (NO_PLAYER_COMB + 1)) {
var _local3 = _local1["comb_" add String(i)]._x;
var _local2 = _local1["comb_" add String(i)]._y;
BuildBetColumn(_local3 + INS_X_OFF, _local2 + INS_Y_OFF, _local1["comb_" add String(i)].bet);
BuildBetColumn(_local3 + BET_X_OFF, _local2 + BET_Y_OFF, _local1["comb_" add String(i)].ante);
i++;
}
_local1.displayMoneyAndBet();
}
function RemoveBets() {
var _local1 = _root;
_local1.PlaySound("snd_click");
if (_local1.cond == COND_BET) {
_local1.money = _local1.money + _local1["comb_" add _local1.active_comb].ante;
_local1["comb_" add _local1.active_comb].ante = 0;
_local1["comb_" add _local1.active_comb].display();
}
_local1.CalculateBet();
DisplayBets();
ShowSelectedChip();
}
function CalculateBet() {
var _local1 = _root;
_local1.bet = 0;
i = 0;
while (i < NO_PLAYER_COMB) {
_local1.bet = _local1.bet + _local1["comb_" add i].ante;
_local1.bet = _local1.bet + _local1["comb_" add i].bet;
i++;
}
}
function GetCardX(comb, card) {
return((_root["comb_" add comb]._x + CARD_OFFSET_X) + (card * CARD_OFFSET_DX));
}
function GetCardY(comb, card) {
return((_root["comb_" add comb]._y + CARD_OFFSET_Y) + (card * CARD_OFFSET_DY));
}
function CardToFrame(c) {
var _local2 = c;
if (_local2 == 53) {
return(1);
}
var _local1 = Math.floor(_local2 % 13);
var _local3 = Math.floor(_local2 / 13);
if (_local1 == 12) {
_local1 = 0;
} else {
_local1++;
}
return((2 + (_local3 * 20)) + _local1);
}
function GetNum(a) {
var _local1 = a;
if (_local1 != Math.round(_local1)) {
return(_local1);
}
return(_local1 add ".0");
}
function setActive(cmb) {
var _local1 = _root;
_local1["comb_" add active_comb].is_active = false;
_local1["comb_" add active_comb].display();
active_comb = cmb;
_local1["comb_" add active_comb].is_active = true;
_local1["comb_" add active_comb].display();
}
function processSend() {
var _local1 = _root;
st = ST_WAITSERVER;
_local1.cond = 0;
if (online) {
o = new Object();
i = 0;
while (i < NO_PLAYER_COMB) {
o["ante_" add i] = _local1["comb_" add i].ante;
i++;
}
o.action = _local1.choosen_action;
o.type = "gambling";
connection_ToServer(o);
}
}
function processWaitServer() {
if (online) {
} else {
localServerEmulation();
processDataFromServer();
}
}
function processDataFromServer() {
st = ST_DO;
_root.i_do = 0;
_root.no_do = vars.no_do;
}
function processDo() {
var _local1 = _root;
if (i_do >= no_do) {
AfterCall();
} else {
var _local2 = ("do_" add String(i_do)) add "_";
i_do++;
do_action = vars[_local2 + "action"];
if (do_action == ACT_RESET) {
DebugOutput("RESETING!!!");
i = 0;
while (i < (NO_PLAYER_COMB + 1)) {
_local1["comb_" add String(i)]._visible = true;
_local1["comb_" add String(i)].init();
_local1["comb_" add String(i)].display();
_local1["comb_" add String(i)].betcircle.gotoAndStop(1);
i++;
}
CalculateBet();
DrawBet();
DrawBalance();
DisplayBets();
_local1.SelectedChip = _local1.oldSelectedChip;
_local1.ShowSelectedChip();
} else if (do_action == ACT_MONEY) {
money = Number(vars[_local2 + "money"]);
DrawBalance();
DisplayBets();
} else if (do_action == ACT_MESSAGE) {
PutMessage(unescape(vars[_local2 + "message"]));
} else if (do_action == ACT_COMB_ACTIVE) {
setActive(Number(vars[_local2 + "comb"]));
} else if (do_action == ACT_COMB_ANTE) {
_local1["comb_" add active_comb].ante = Number(vars[_local2 + "ante"]);
_local1["comb_" add active_comb].display();
CalculateBet();
DrawBet();
DisplayBets();
} else if (do_action == ACT_COMB_BET) {
_local1["comb_" add active_comb].bet = Number(vars[_local2 + "bet"]);
_local1["comb_" add active_comb].display();
CalculateBet();
DrawBet();
DisplayBets();
} else if (do_action == ACT_CLEAR_BET) {
i = 0;
while (i < NO_PLAYER_COMB) {
_local1["comb_" add i].ante = 0;
_local1["comb_" add i].display();
i++;
}
CalculateBet();
DrawBet();
DisplayBets();
} else if (do_action == ACT_COMB_MESSAGE) {
_local1["comb_" add active_comb].message = unescape(vars[_local2 + "message"]);
} else if (do_action == ACT_MOVE) {
move_kind = M_MOVE;
move_source = Number(vars[_local2 + "source"]);
move_destination = Number(vars[_local2 + "destination"]);
moveInit();
} else if (do_action == ACT_DEAL) {
move_kind = M_DEAL;
move_destination = Number(vars[_local2 + "destination"]);
move_card = Number(vars[_local2 + "card"]);
moveInit();
} else if (do_action == ACT_OPEN) {
move_kind = M_OPEN;
move_card = Number(vars[_local2 + "card"]);
move_to_open = Number(vars[_local2 + "to_open"]);
moveInit();
}
}
}
function moveInit() {
var _local1 = _root;
_local1.move_x1;
_local1.move_y1;
_local1.move_x2;
_local1.move_y2;
_local1.move_t = 0;
_local1.move_dt = 0.05;
_local1.move_flip = false;
_local1.move_source_card;
_local1.move_destination_card;
st = ST_MOVE;
if (move_kind == M_MOVE) {
var _local2 = _local1["comb_" add move_source].no_cards;
var dst_no_cards = _local1["comb_" add move_destination].no_cards;
move_source_card = _local1["comb_" add move_source].cards[_local2 - 1];
move_destination_card = move_source_card;
move_flip = false;
move_dt = 0.2;
move_x1 = GetCardX(move_source, _local2 - 1);
move_y1 = GetCardY(move_source, _local2 - 1);
move_x2 = GetCardX(move_destination, dst_no_cards);
move_y2 = GetCardY(move_destination, dst_no_cards);
_local1["comb_" add move_source].no_cards--;
_local1["comb_" add move_source].display();
} else if (move_kind == M_DEAL) {
var dst_no_cards = _local1["comb_" add move_destination].no_cards;
move_source_card = 53;
move_destination_card = move_card;
move_flip = true;
move_dt = 0.2;
move_x1 = _local1.CardDealing._x;
move_y1 = _local1.CardDealing._y;
move_x2 = GetCardX(move_destination, dst_no_cards);
move_y2 = GetCardY(move_destination, dst_no_cards);
} else if (move_kind == M_OPEN) {
move_source = COMB_DEALER;
move_destination = COMB_DEALER;
var _local2 = _local1["comb_" add move_source].no_cards;
var dst_no_cards = _local1["comb_" add move_destination].no_cards;
move_source_card = _local1["comb_" add move_source].cards[_local2 - 1];
move_destination_card = move_card;
move_flip = true;
move_dt = 0.2;
move_x1 = GetCardX(move_source, move_to_open);
move_y1 = GetCardY(move_source, move_to_open);
move_x2 = GetCardX(move_destination, move_to_open);
move_y2 = GetCardY(move_destination, move_to_open);
_local1["comb_" add move_source].display();
_local1["comb_" add move_source]["card" + move_to_open]._visible = false;
}
_local1.MoveCardClip._visible = true;
if (move_t < 0.5) {
_local1.MoveCardClip.gotoAndStop(move_source_card);
} else {
_local1.MoveCardClip.gotoAndStop(move_destination_card);
}
_local1.MoveCardClip._x = ((move_x2 - move_x1) * move_t) + move_x1;
_local1.MoveCardClip._y = ((move_y2 - move_y1) * move_t) + move_y1;
_local1.move_initial_scale = _local1.MoveCardClip._xscale;
if (move_flip) {
_local1.MoveCardClip._xscale = (move_initial_scale * Math.abs(move_t - 0.5)) * 2;
} else {
_local1.MoveCardClip._xscale = move_initial_scale;
}
}
function processMove() {
var _local1 = _root;
move_t = move_t + move_dt;
if (move_t > 1) {
_local1.MoveCardClip.removeMovieClip();
if (((move_kind == M_MOVE) || (move_kind == M_DEAL)) || (move_kind == M_OPEN)) {
var _local2 = 0;
if (move_kind == M_OPEN) {
_local2 = move_to_open;
} else {
_local2 = _local1["comb_" add move_destination].no_cards;
_local1["comb_" add move_destination].no_cards++;
}
_local1["comb_" add move_destination].cards[_local2] = move_destination_card;
_local1["comb_" add move_destination].display();
}
_local1.MoveCardClip._visible = false;
st = ST_DO;
} else {
if (move_t < 0.5) {
_local1.MoveCardClip.gotoAndStop(move_source_card);
} else {
_local1.MoveCardClip.gotoAndStop(move_destination_card);
}
_local1.MoveCardClip._x = ((move_x2 - move_x1) * move_t) + move_x1;
_local1.MoveCardClip._y = ((move_y2 - move_y1) * move_t) + move_y1;
if (move_flip) {
_local1.MoveCardClip._xscale = (move_initial_scale * Math.abs(move_t - 0.5)) * 2;
} else {
_local1.MoveCardClip._xscale = move_initial_scale;
}
}
}
function AfterCall() {
var _local1 = _root;
_local1.cond = vars.cond;
i = 0;
while (i < 7) {
_local1.buttons["b" add i]._visible = false;
_local1.buttons[("b" add i) add "_txt"] = "";
_local1.palm_shadow["doska" add i]._visible = false;
i++;
}
NoDefinedActions = vars.no_actions;
i = 0;
while (i < vars.no_actions) {
_local1.buttons["b" add i]._visible = true;
_local1.palm_shadow["doska" add i]._visible = true;
_local1.buttons[("b" add i) add "_txt"] = vars[("action_" add String(i)) add "_text"];
_local1.buttons[("b" add i) add "_act"] = vars[("action_" add String(i)) add "_code"];
i++;
}
DebugOutput("---------------- After call; Cond: " add vars.cond);
i = 0;
while (i < 6) {
c = 0;
while (c <= 8) {
if ((_local1.cond == COND_CONTINUE) && (_local1["comb_" add i].bet > 0)) {
_local1["comb_" add i]["card" add c].blink.play();
} else {
_local1["comb_" add i]["card" add c].blink.gotoAndStop(1);
}
c++;
}
i++;
}
st = ST_BET;
}
function ChooseAction(code) {
var _local1 = _root;
if (!_local1.rules_win._visible) {
if (st != ST_BET) {
} else if (!_local1.isLiveConnection()) {
} else {
st = ST_SEND;
_local1.PlaySound("snd_click");
_local1.choosen_action = code;
}
}
}
function gameWin() {
var _local1 = _root;
if (_local1.won_anim._visible == false) {
_local1.won_anim._visible = true;
}
_local1.won_anim.gotoAndPlay(2);
_local1.PlaySound("snd_coins");
}
function gameLoose() {
_root.PlaySound("snd_loose");
_root.loose_anim.man.legs.gotoAndPlay(2);
}
if (_root.debug) {
_root.debug_win._visible = false;
_root.debug_btn._visible = true;
DebugOutput("debug.as::starting...");
} else {
_root.debug_win._visible = false;
_root.debug_btn._visible = false;
}
var CST_NONE = 0;
var CST_LOST = 1;
var CST_CONNECTING = 2;
var CST_RECONNECTING = 3;
var CST_CONNECTED = 4;
var CST_RECONNECTED = 5;
var CST_AUTHSEND = 6;
var CST_AUTHRESTORESEND = 7;
var CST_OK = 8;
var connection_Stage;
var connection_DATA = false;
var connection_Signature = "";
coin_val = new Array(0.01, 0.05, 0.1, 0.5, 1, 5, 10, 20, 50, 100, 500, 1000, 5000, 10000, 0.005);
stopAllSounds();
DebugOutput((("Game '" add game_id) add "', version: ") add _version);
soundon = true;
panel._defaultalpha = 60;
panel._alpha = panel._defaultalpha;
musicon = true;
if (_root.nomusic eq "1") {
musicon = true;
}
soundon = false;
if (_root.nosound eq "1") {
soundon = true;
}
CheckSound();
CheckMusic();
_root.sbm_logging = "Connecting to server. Please wait...";
_root.sbm_placebet = "Place your bet, please.";
_root.sbm_bet_pref = "Your bet: ";
_root.sbm_bet_suff = ".\nGood luck!";
_root.sbm_spinning = "Spinning...";
_root.sbm_waitserv = "Waiting for server answer...";
_root.sbm_nowin = "Sorry, no winner there. Try again!";
_root.sbm_win_pref = "Congratulations! You have won ";
_root.sbm_win_suff = "!";
_root.sbm_loss_pref = "Sorry, no winner there. You have loss ";
_root.sbm_loss_suff = "...";
_root.sbm_keep = "You have kept your money!";
sbm_clear = "Clear Bet";
sbm_deal = "Deal";
sbm_balance = "Your balance";
sbm_bt = "Your bet";
sbm_balance = "Your balance";
sbm_bt = "Your bet";
sbm_BET = "BET";
sbm_ANTE = "ANTE";
sbm_help = "Caribbean Poker rules\n\nShort Description\n\nTo play the game, just put a bet (click on any chips at the bottom of the screen) and press 'deal' button. It's very simple! When you run short of money you can use button with $ image to add some more. You can also use button to get more games.\n\nCaribbean Stud Poker, also called Spice Island Poker, definitely has a flavorful kick. Instead of playing against other players, as is the case in traditional poker, players compete one-on-one with the dealer. The play is short and quick, quite similar to Blackjack. But rather than receiving two cards, the player receives a five-card poker hand. If the player thinks his/her hand will beat the dealer's, then they place a wager and reveal their hand for a Showdown. If the dealer's hand does not qualify with at least an Ace/King combo, the hands are not compared and the player automatically wins the wager at the corresponding payout odds. However, if the dealer's hand does qualify, then it is revealed for a Showdown. Whoever has the highest ranked five-card poker hand wins the game.\n\nPlaying the Game:\n\n1 - The player makes an initial wager, called an ante.\n\n2 - The dealer dispenses five cards to both the player and their self. The dealer's hand consists of one face up card and four face down cards.\n\n3 - The player makes a decision to Fold, or, to continue playing. If he/she decides to stay in the hand, they must place a wager in an amount that is at least double the ante.\n\n4 - After the player makes their wager, the dealer looks at their own hand and determines if they have a minimum of an Ace/King combo. If they do not, the dealer waives the game off, and the player receives his/her wager back, plus even money profit on the original ante amount. For example, if the ante was $2 and the player made a $2 call wager, they would receive $6 back. However, if the dealer does determine they have at least an Ace/King combo in their hand, they will reveal their cards for a Showdown against the player. If the dealer has a higher ranked hand than the player, then the player forfeits all money placed into the pot. If the player has a higher ranked hand, he/she wins the their wager back plus the payoff odds corresponding to it, as well as even money profit on the original ante. For example, if the player won a hand with a $2 ante and a $2 call wager on a 4 to 1 payoff, they would receive double the ante: $4 + 4 times the total wager: $16 = $20. (on a $4 investment) Remember to subtract for the corresponding payout percentage.\n\nCaribbean Stud Payouts\n\nHand Type Payoff\n'Royal Flush' Ten, Jack, Queen, King, Ace of the same suite 100 to 1 \n'Straight' Flush Any five cards of the same suit in subsequent order 50 to 1\n'Four of' a Kind Any four cards of identical rank 20 to 1\n'Full House' Any three cards of equal rank in addition to any Pair 7 to 1\n'Flush' Any five cards bearing identical suits 5 to 1\n'Straight' Any five cards in subsequent order 4 to 1\n'Three of a Kind' Any three cards of identical rank 3 to 1\n'Two Pair' Any four cards of two different ranks 2 to 1\n'Pair Any' two cards of identical rank 1 to 1\n'Ace/King' A hand composed of an Ace and a King with any other odd cards 1 to 1 \n\nAdditional Rules\n\nThere is no tolerance of communication between players. If a player divulges information about their hand to other players, the dealer may declare those player's hands 'Dead' and require the players to forfeit all placed wagers.\n\nA limit of one hand each round, per player, is allowed.\n\nWhosoever places a wager is solely responsible for the outcome and safety of their cards. If a player touches another players cards, that player will be disqualified and will be forced to forfeit their wagers.\n\nIt is every players responsibility to always have their cards in full sight of the dealer. After a player has looked over their hand and placed them on the playing table (face down), the player is prohibited from picking the cards back up again.\n\nIn a situation where the dealer has not declared a cease betting, and a hole card is revealed, then a misdeal is declared, and all hands will be declared 'Dead'. This will be followed by a new deal.\n\nIt is each players responsibility for making certain that any additional wager they make goes towards the progressive jackpot. In a poker machine, this is indicated by a green light.\n\nIn a situation where the dealer is missing more than one card from their hand, a misdeal will be declared, and all hands will be designated as 'Dead'. This will be followed by a reshuffle and a new deal. If only one card is missing from the dealers hand, a fifth card will be dealt from the deck. However, if any cards are missing from a player's hand, the hand will be declared 'Dead' and depending on the causes of the misdeal, the player will receive their wagers back.";
NoBetedChips = 0;
ChipBetHeight = 5;
ChipBetScale = 100;
var NO_PLAYER_COMB = 1;
var COMB_DEALER = 1;
var ACT_RESET = 0;
var ACT_MONEY = 1;
var ACT_MESSAGE = 2;
var ACT_COMB_ACTIVE = 10;
var ACT_COMB_ANTE = 11;
var ACT_COMB_BET = 12;
var ACT_COMB_MESSAGE = 13;
var ACT_MOVE = 20;
var ACT_DEAL = 21;
var ACT_OPEN = 22;
var ACT_CLEAR_BET = 30;
var RANK_SIZE = 21;
COND_WAIT = 0;
COND_BET = 1;
COND_ACTION = 3;
COND_CONTINUE = 4;
UA_RESET = 0;
UA_CLEAR_BET = 1;
UA_DEAL = 2;
UA_FOLD = 3;
UA_CALL = 4;
UA_CONTINUE = 10;
UA_REFRESH = 11;
var SS_NONE = 0;
var SS_BET = 1;
var SS_DEALED = 2;
var SS_CONTINUE = 3;
var ServerState = SS_NONE;
var ServerPlayerMoney = 1000;
var ServerNoCards = [0, 0, 0, 0, 0, 0, 0];
var ServerCards = new Array();
var i = 0;
while (i < 10) {
ServerCards[i] = new Array();
i++;
}
var ServerActiveCombination = 0;
var ServerAntes = [0, 0, 0, 0, 0, 0, 0];
var ServerBets = [0, 0, 0, 0, 0, 0, 0];
var enabledActions = [false, false, false, false, false, false, false, false, false, false, false, false, false, false];
enabledActions[UA_RESET] = true;
CardPrices = new Array(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 10);
var nn = random(30);
TC_NONE = 0;
TC_ACE_AND_KING = 1;
TC_PAIR = 2;
TC_TWO_PAIRS = 3;
TC_THREE_OF_A_KIND = 4;
TC_STRAIGHT = 5;
TC_FLUSH = 6;
TC_FULL_HOUSE = 7;
TC_FOUR_OF_A_KIND = 8;
TC_STRAIGHT_FLUSH = 9;
TC_ROYAL_FLUSH = 10;
var winsTable = Array();
winsTable[TC_ACE_AND_KING] = 1;
winsTable[TC_PAIR] = 1;
winsTable[TC_TWO_PAIRS] = 2;
winsTable[TC_THREE_OF_A_KIND] = 3;
winsTable[TC_STRAIGHT] = 4;
winsTable[TC_FLUSH] = 5;
winsTable[TC_FULL_HOUSE] = 7;
winsTable[TC_FOUR_OF_A_KIND] = 20;
winsTable[TC_STRAIGHT_FLUSH] = 50;
winsTable[TC_ROYAL_FLUSH] = 100;
var CardsWin = Array();
var ST_NONE = 0;
var ST_LOADING = 1;
var ST_SEND = 2;
var ST_WAITSERVER = 3;
var ST_DO = 4;
var ST_MOVE = 5;
var ST_BET = 6;
var st;
var M_MOVE = 1;
var M_DEAL = 2;
var M_OPEN = 3;
var BET_X_OFF = -3;
var BET_Y_OFF = -73;
var INS_X_OFF = -3;
var INS_Y_OFF = -113;
var money;
var bet;
var digits;
var currency;
var minbet;
var maxbet;
var statusAdd = "";
var cond = 0;
var choose_enabled = false;
CARD_OFFSET_X = -101;
CARD_OFFSET_Y = -9;
CARD_OFFSET_DX = 50;
CARD_OFFSET_DY = 0;
var ACTIONS_X = -100;
var ACTIONS_Y = 50;
var ACTIONS_DY = 50;
var NoDefinedActions = 0;
SelectedChip = 0;
_root.sbm_logging = "Connecting to server. Please wait...";
_root.sbm_placebet = "Place your bet, please.";
_root.sbm_bet_pref = "Your bet: ";
_root.sbm_bet_suff = ".\nGood luck!";
_root.sbm_spinning = "Spinning...";
_root.sbm_waitserv = "Waiting for server answer...";
_root.sbm_nowin = "Sorry, no winner there. Try again!";
_root.sbm_win_pref = "Congratulations! You have won ";
_root.sbm_win_suff = "!";
_root.sbm_loss_pref = "Sorry, no winner there. You have loss ";
_root.sbm_loss_suff = "...";
_root.sbm_keep = "You have kept your money!";
sbm_clear = "Clear Bet";
sbm_deal = "Deal";
sbm_balance = "Your balance";
sbm_bt = "Your bet";
sbm_balance = "Your balance";
sbm_bt = "Your bet";
sbm_BET = "BET";
sbm_ANTE = "ANTE";
sbm_help = "Caribbean Poker rules\n\nShort Description\n\nTo play the game, just put a bet (click on any chips at the bottom of the screen) and press 'deal' button. It's very simple! When you run short of money you can use button with $ image to add some more. You can also use button to get more games.\n\nCaribbean Stud Poker, also called Spice Island Poker, definitely has a flavorful kick. Instead of playing against other players, as is the case in traditional poker, players compete one-on-one with the dealer. The play is short and quick, quite similar to Blackjack. But rather than receiving two cards, the player receives a five-card poker hand. If the player thinks his/her hand will beat the dealer's, then they place a wager and reveal their hand for a Showdown. If the dealer's hand does not qualify with at least an Ace/King combo, the hands are not compared and the player automatically wins the wager at the corresponding payout odds. However, if the dealer's hand does qualify, then it is revealed for a Showdown. Whoever has the highest ranked five-card poker hand wins the game.\n\nPlaying the Game:\n\n1 - The player makes an initial wager, called an ante.\n\n2 - The dealer dispenses five cards to both the player and their self. The dealer's hand consists of one face up card and four face down cards.\n\n3 - The player makes a decision to Fold, or, to continue playing. If he/she decides to stay in the hand, they must place a wager in an amount that is at least double the ante.\n\n4 - After the player makes their wager, the dealer looks at their own hand and determines if they have a minimum of an Ace/King combo. If they do not, the dealer waives the game off, and the player receives his/her wager back, plus even money profit on the original ante amount. For example, if the ante was $2 and the player made a $2 call wager, they would receive $6 back. However, if the dealer does determine they have at least an Ace/King combo in their hand, they will reveal their cards for a Showdown against the player. If the dealer has a higher ranked hand than the player, then the player forfeits all money placed into the pot. If the player has a higher ranked hand, he/she wins the their wager back plus the payoff odds corresponding to it, as well as even money profit on the original ante. For example, if the player won a hand with a $2 ante and a $2 call wager on a 4 to 1 payoff, they would receive double the ante: $4 + 4 times the total wager: $16 = $20. (on a $4 investment) Remember to subtract for the corresponding payout percentage.\n\nCaribbean Stud Payouts\n\nHand Type Payoff\n'Royal Flush' Ten, Jack, Queen, King, Ace of the same suite 100 to 1 \n'Straight' Flush Any five cards of the same suit in subsequent order 50 to 1\n'Four of' a Kind Any four cards of identical rank 20 to 1\n'Full House' Any three cards of equal rank in addition to any Pair 7 to 1\n'Flush' Any five cards bearing identical suits 5 to 1\n'Straight' Any five cards in subsequent order 4 to 1\n'Three of a Kind' Any three cards of identical rank 3 to 1\n'Two Pair' Any four cards of two different ranks 2 to 1\n'Pair Any' two cards of identical rank 1 to 1\n'Ace/King' A hand composed of an Ace and a King with any other odd cards 1 to 1 \n\nAdditional Rules\n\nThere is no tolerance of communication between players. If a player divulges information about their hand to other players, the dealer may declare those player's hands 'Dead' and require the players to forfeit all placed wagers.\n\nA limit of one hand each round, per player, is allowed.\n\nWhosoever places a wager is solely responsible for the outcome and safety of their cards. If a player touches another players cards, that player will be disqualified and will be forced to forfeit their wagers.\n\nIt is every players responsibility to always have their cards in full sight of the dealer. After a player has looked over their hand and placed them on the playing table (face down), the player is prohibited from picking the cards back up again.\n\nIn a situation where the dealer has not declared a cease betting, and a hole card is revealed, then a misdeal is declared, and all hands will be declared 'Dead'. This will be followed by a new deal.\n\nIt is each players responsibility for making certain that any additional wager they make goes towards the progressive jackpot. In a poker machine, this is indicated by a green light.\n\nIn a situation where the dealer is missing more than one card from their hand, a misdeal will be declared, and all hands will be designated as 'Dead'. This will be followed by a reshuffle and a new deal. If only one card is missing from the dealers hand, a fifth card will be dealt from the deck. However, if any cards are missing from a player's hand, the hand will be declared 'Dead' and depending on the causes of the misdeal, the player will receive their wagers back.";
gameInit();
Instance of Symbol 153 MovieClip "debug_win" in Frame 5
onClipEvent (load) {
_root.debug_win._visible = false;
trace("_root.debug_win._visible " + _root.debug_win._visible);
_root.debug_btn._visible = false;
_root.rules_win_shareware._visible = false;
_root.rules_win_template._visible = false;
_root.helpContent._visible = false;
_root.helpContent._visible = false;
_root.helpShareware._visible = false;
}
Frame 6
gameProcess();
Frame 7
gameProcess();
gotoAndPlay (6);
Symbol 7 MovieClip [FUIComponentSymbol] Frame 1
#initclip 1
function FUIComponentClass() {
this.init();
}
FUIComponentClass.prototype = new MovieClip();
FUIComponentClass.prototype.init = function () {
var _local1 = this;
var _local3 = _global;
_local1.enable = true;
_local1.focused = false;
_local1.useHandCursor = false;
_local1._accImpl = new Object();
_local1._accImpl.stub = true;
_local1.styleTable = new Array();
if (_local3.globalStyleFormat == undefined) {
_local3.globalStyleFormat = new FStyleFormat();
globalStyleFormat.isGlobal = true;
_local3._focusControl = new Object();
_local3._focusControl.onSetFocus = function (oldFocus, newFocus) {
oldFocus.myOnKillFocus();
newFocus.myOnSetFocus();
};
Selection.addListener(_local3._focusControl);
}
if (_local1._name != undefined) {
_local1._focusrect = false;
_local1.tabEnabled = true;
_local1.focusEnabled = true;
_local1.tabChildren = false;
_local1.tabFocused = true;
if (_local1.hostStyle == undefined) {
globalStyleFormat.addListener(_local1);
} else {
_local1.styleTable = _local1.hostStyle;
}
_local1.deadPreview._visible = false;
_local1.deadPreview._width = (_local1.deadPreview._height = 1);
_local1.methodTable = new Object();
_local1.keyListener = new Object();
_local1.keyListener.controller = _local1;
_local1.keyListener.onKeyDown = function () {
this.controller.myOnKeyDown();
};
_local1.keyListener.onKeyUp = function () {
this.controller.myOnKeyUp();
};
for (var _local2 in _local1.styleFormat_prm) {
_local1.setStyleProperty(_local2, _local1.styleFormat_prm[_local2]);
}
}
};
FUIComponentClass.prototype.setEnabled = function (enabledFlag) {
var _local1 = this;
_local1.enable = ((arguments.length > 0) ? (enabledFlag) : true);
_local1.tabEnabled = (_local1.focusEnabled = enabledFlag);
if ((!_local1.enable) && (_local1.focused)) {
Selection.setFocus(undefined);
}
};
FUIComponentClass.prototype.getEnabled = function () {
return(this.enable);
};
FUIComponentClass.prototype.setSize = function (w, h) {
var _local1 = this;
_local1.width = w;
_local1.height = h;
_local1.focusRect.removeMovieClip();
};
FUIComponentClass.prototype.setChangeHandler = function (chng, obj) {
var _local1 = this;
_local1.handlerObj = ((obj == undefined) ? (_local1._parent) : (obj));
_local1.changeHandler = chng;
};
FUIComponentClass.prototype.invalidate = function (methodName) {
var _local1 = this;
_local1.methodTable[methodName] = true;
_local1.onEnterFrame = _local1.cleanUI;
};
FUIComponentClass.prototype.cleanUI = function () {
var _local1 = this;
if (_local1.methodTable.setSize) {
_local1.setSize(_local1.width, _local1.height);
} else {
_local1.cleanUINotSize();
}
_local1.methodTable = new Object();
delete _local1.onEnterFrame;
};
FUIComponentClass.prototype.cleanUINotSize = function () {
var _local1 = this;
for (var _local2 in _local1.methodTable) {
_local1[_local2]();
}
};
FUIComponentClass.prototype.drawRect = function (x, y, w, h) {
var _local1 = this;
var _local2 = y;
var _local3 = x;
var inner = _local1.styleTable.focusRectInner.value;
var outer = _local1.styleTable.focusRectOuter.value;
if (inner == undefined) {
inner = 16777215 /* 0xFFFFFF */;
}
if (outer == undefined) {
outer = 0;
}
_local1.createEmptyMovieClip("focusRect", 1000);
_local1.focusRect.controller = _local1;
_local1.focusRect.lineStyle(1, outer);
_local1.focusRect.moveTo(_local3, _local2);
_local1.focusRect.lineTo(_local3 + w, _local2);
_local1.focusRect.lineTo(_local3 + w, _local2 + h);
_local1.focusRect.lineTo(_local3, _local2 + h);
_local1.focusRect.lineTo(_local3, _local2);
_local1.focusRect.lineStyle(1, inner);
_local1.focusRect.moveTo(_local3 + 1, _local2 + 1);
_local1.focusRect.lineTo((_local3 + w) - 1, _local2 + 1);
_local1.focusRect.lineTo((_local3 + w) - 1, (_local2 + h) - 1);
_local1.focusRect.lineTo(_local3 + 1, (_local2 + h) - 1);
_local1.focusRect.lineTo(_local3 + 1, _local2 + 1);
};
FUIComponentClass.prototype.pressFocus = function () {
var _local1 = this;
_local1.tabFocused = false;
_local1.focusRect.removeMovieClip();
Selection.setFocus(_local1);
};
FUIComponentClass.prototype.drawFocusRect = function () {
var _local1 = this;
_local1.drawRect(-2, -2, _local1.width + 4, _local1.height + 4);
};
FUIComponentClass.prototype.myOnSetFocus = function () {
var _local1 = this;
_local1.focused = true;
Key.addListener(_local1.keyListener);
if (_local1.tabFocused) {
_local1.drawFocusRect();
}
};
FUIComponentClass.prototype.myOnKillFocus = function () {
var _local1 = this;
_local1.tabFocused = true;
_local1.focused = false;
_local1.focusRect.removeMovieClip();
Key.removeListener(_local1.keyListener);
};
FUIComponentClass.prototype.executeCallBack = function () {
var _local1 = this;
_local1.handlerObj[_local1.changeHandler](_local1);
};
FUIComponentClass.prototype.updateStyleProperty = function (styleFormat, propName) {
this.setStyleProperty(propName, styleFormat[propName], styleFormat.isGlobal);
};
FUIComponentClass.prototype.setStyleProperty = function (propName, value, isGlobal) {
var _local1 = this;
var _local2 = propName;
if (value == "") {
} else {
var tmpValue = parseInt(value);
if (!isNaN(tmpValue)) {
value = tmpValue;
}
var global = ((arguments.length > 2) ? (isGlobal) : false);
if (_local1.styleTable[_local2] == undefined) {
_local1.styleTable[_local2] = new Object();
_local1.styleTable[_local2].useGlobal = true;
}
if (_local1.styleTable[_local2].useGlobal || (!global)) {
_local1.styleTable[_local2].value = value;
if (_local1.setCustomStyleProperty(_local2, value)) {
} else if (_local2 == "embedFonts") {
_local1.invalidate("setSize");
} else if (_local2.subString(0, 4) == "text") {
if (_local1.textStyle == undefined) {
_local1.textStyle = new TextFormat();
}
var textProp = _local2.subString(4, _local2.length);
_local1.textStyle[textProp] = value;
_local1.invalidate("setSize");
} else {
for (var j in _local1.styleTable[_local2].coloredMCs) {
var _local3 = new Color(_local1.styleTable[_local2].coloredMCs[j]);
if (_local1.styleTable[_local2].value == undefined) {
var myTObj = {ra:"100", rb:"0", ga:"100", gb:"0", ba:"100", bb:"0", aa:"100", ab:"0"};
_local3.setTransform(myTObj);
} else {
_local3.setRGB(value);
}
}
}
_local1.styleTable[_local2].useGlobal = global;
}
}
};
FUIComponentClass.prototype.registerSkinElement = function (skinMCRef, propName) {
var _local1 = this;
var _local2 = propName;
if (_local1.styleTable[_local2] == undefined) {
_local1.styleTable[_local2] = new Object();
_local1.styleTable[_local2].useGlobal = true;
}
if (_local1.styleTable[_local2].coloredMCs == undefined) {
_local1.styleTable[_local2].coloredMCs = new Object();
}
_local1.styleTable[_local2].coloredMCs[skinMCRef] = skinMCRef;
if (_local1.styleTable[_local2].value != undefined) {
var _local3 = new Color(skinMCRef);
_local3.setRGB(_local1.styleTable[_local2].value);
}
};
_global.FStyleFormat = function () {
var _local1 = arguments;
var _local2 = this;
_local2.nonStyles = {listeners:true, isGlobal:true, isAStyle:true, addListener:true, removeListener:true, nonStyles:true, applyChanges:true};
_local2.listeners = new Object();
_local2.isGlobal = false;
if (_local1.length > 0) {
for (var _local3 in _local1[0]) {
_local2[_local3] = _local1[0][_local3];
}
}
};
_global.FStyleFormat.prototype = new Object();
FStyleFormat.prototype.addListener = function () {
var _local1 = this;
var _local2 = 0;
while (_local2 < arguments.length) {
var _local3 = arguments[_local2];
_local1.listeners[arguments[_local2]] = _local3;
for (var i in _local1) {
if (_local1.isAStyle(i)) {
_local3.updateStyleProperty(_local1, i.toString());
}
}
_local2++;
}
};
FStyleFormat.prototype.removeListener = function (component) {
var _local1 = this;
var _local2 = component;
_local1.listeners[_local2] = undefined;
for (var prop in _local1) {
if (_local1.isAStyle(prop)) {
if (_local2.styleTable[prop].useGlobal == _local1.isGlobal) {
_local2.styleTable[prop].useGlobal = true;
var _local3 = (_local1.isGlobal ? undefined : (globalStyleFormat[prop]));
_local2.setStyleProperty(prop, _local3, true);
}
}
}
};
FStyleFormat.prototype.applyChanges = function () {
var _local1 = this;
var _local2 = arguments;
var count = 0;
for (var i in _local1.listeners) {
var _local3 = _local1.listeners[i];
if (_local2.length > 0) {
var j = 0;
while (j < _local2.length) {
if (_local1.isAStyle(_local2[j])) {
_local3.updateStyleProperty(_local1, _local2[j]);
}
j++;
}
} else {
for (var j in _local1) {
if (_local1.isAStyle(j)) {
_local3.updateStyleProperty(_local1, j.toString());
}
}
}
}
};
FStyleFormat.prototype.isAStyle = function (name) {
return((this.nonStyles[name] ? false : true));
};
#endinitclip
Symbol 20 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "arrow");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 30 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "arrow");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 39 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "foregroundDisabled");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 40 MovieClip [UpArrow] Frame 1
stop();
Symbol 40 MovieClip [UpArrow] Frame 2
stop();
Symbol 40 MovieClip [UpArrow] Frame 3
stop();
Symbol 46 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(highlight3D_mc, "highlight3D");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
Symbol 53 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 59 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 60 MovieClip [ScrollThumb] Frame 1
stop();
Symbol 68 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "arrow");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 76 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "arrow");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 84 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "foregroundDisabled");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 85 MovieClip [DownArrow] Frame 1
stop();
Symbol 85 MovieClip [DownArrow] Frame 2
stop();
Symbol 85 MovieClip [DownArrow] Frame 3
stop();
Symbol 88 MovieClip Frame 1
var component = _parent;
component.registerSkinElement(track_mc, "scrollTrack");
Symbol 89 MovieClip [FScrollBarSymbol] Frame 1
#initclip 2
FScrollBarClass = function () {
var _local1 = this;
if (_local1._height == 4) {
} else {
_local1.init();
_local1.minPos = (_local1.maxPos = (_local1.pageSize = (_local1.largeScroll = 0)));
_local1.smallScroll = 1;
_local1.width = (_local1.horizontal ? (_local1._width) : (_local1._height));
_local1._xscale = (_local1._yscale = 100);
_local1.setScrollPosition(0);
_local1.tabEnabled = false;
if (_local1._targetInstanceName.length > 0) {
_local1.setScrollTarget(_local1._parent[_local1._targetInstanceName]);
}
_local1.tabChildren = false;
_local1.setSize(_local1.width);
}
};
FScrollBarClass.prototype = new FUIComponentClass();
FScrollBarClass.prototype.setHorizontal = function (flag) {
var _local1 = this;
var _local2 = flag;
if (_local1.horizontal && (!_local2)) {
_local1._xscale = 100;
_local1._rotation = 0;
} else if (_local2 && (!_local1.horizontal)) {
_local1._xscale = -100;
_local1._rotation = -90;
}
_local1.horizontal = _local2;
};
FScrollBarClass.prototype.setScrollProperties = function (pSize, mnPos, mxPos) {
var _local1 = this;
if (!_local1.enable) {
} else {
_local1.pageSize = pSize;
_local1.minPos = Math.max(mnPos, 0);
_local1.maxPos = Math.max(mxPos, 0);
_local1.scrollPosition = Math.max(_local1.minPos, _local1.scrollPosition);
_local1.scrollPosition = Math.min(_local1.maxPos, _local1.scrollPosition);
if ((_local1.maxPos - _local1.minPos) <= 0) {
_local1.scrollThumb_mc.removeMovieClip();
_local1.upArrow_mc.gotoAndStop(3);
_local1.downArrow_mc.gotoAndStop(3);
_local1.downArrow_mc.onPress = (_local1.downArrow_mc.onRelease = (_local1.downArrow_mc.onDragOut = null));
_local1.upArrow_mc.onPress = (_local1.upArrow_mc.onRelease = (_local1.upArrow_mc.onDragOut = null));
_local1.scrollTrack_mc.onPress = (_local1.scrollTrack_mc.onRelease = null);
_local1.scrollTrack_mc.onDragOut = (_local1.scrollTrack_mc.onRollOut = null);
_local1.scrollTrack_mc.useHandCursor = false;
} else {
var _local2 = _local1.getScrollPosition();
_local1.upArrow_mc.gotoAndStop(1);
_local1.downArrow_mc.gotoAndStop(1);
_local1.upArrow_mc.onPress = (_local1.upArrow_mc.onDragOver = _local1.startUpScroller);
_local1.upArrow_mc.onRelease = (_local1.upArrow_mc.onDragOut = _local1.stopScrolling);
_local1.downArrow_mc.onPress = (_local1.downArrow_mc.onDragOver = _local1.startDownScroller);
_local1.downArrow_mc.onRelease = (_local1.downArrow_mc.onDragOut = _local1.stopScrolling);
_local1.scrollTrack_mc.onPress = (_local1.scrollTrack_mc.onDragOver = _local1.startTrackScroller);
_local1.scrollTrack_mc.onRelease = _local1.stopScrolling;
_local1.scrollTrack_mc.onDragOut = _local1.stopScrolling;
_local1.scrollTrack_mc.onRollOut = _local1.stopScrolling;
_local1.scrollTrack_mc.useHandCursor = false;
_local1.attachMovie("ScrollThumb", "scrollThumb_mc", 3);
_local1.scrollThumb_mc._x = 0;
_local1.scrollThumb_mc._y = _local1.upArrow_mc._height;
_local1.scrollThumb_mc.onPress = _local1.startDragThumb;
_local1.scrollThumb_mc.controller = _local1;
_local1.scrollThumb_mc.onRelease = (_local1.scrollThumb_mc.onReleaseOutside = _local1.stopDragThumb);
_local1.scrollThumb_mc.useHandCursor = false;
_local1.thumbHeight = (_local1.pageSize / ((_local1.maxPos - _local1.minPos) + _local1.pageSize)) * _local1.trackSize;
_local1.thumbMid_mc = _local1.scrollThumb_mc.mc_sliderMid;
_local1.thumbTop_mc = _local1.scrollThumb_mc.mc_sliderTop;
_local1.thumbBot_mc = _local1.scrollThumb_mc.mc_sliderBot;
_local1.thumbHeight = Math.max(_local1.thumbHeight, 6);
_local1.midHeight = (_local1.thumbHeight - _local1.thumbTop_mc._height) - _local1.thumbBot_mc._height;
_local1.thumbMid_mc._yScale = (_local1.midHeight * 100) / _local1.thumbMid_mc._height;
_local1.thumbMid_mc._y = _local1.thumbTop_mc._height;
_local1.thumbBot_mc._y = _local1.thumbTop_mc._height + _local1.midHeight;
_local1.scrollTop = _local1.scrollThumb_mc._y;
_local1.trackHeight = _local1.trackSize - _local1.thumbHeight;
_local1.scrollBot = _local1.trackHeight + _local1.scrollTop;
_local2 = Math.min(_local2, _local1.maxPos);
_local1.setScrollPosition(Math.max(_local2, _local1.minPos));
}
}
};
FScrollBarClass.prototype.getScrollPosition = function () {
return(this.scrollPosition);
};
FScrollBarClass.prototype.setScrollPosition = function (pos) {
var _local1 = this;
var _local2 = pos;
_local1.scrollPosition = _local2;
if (_local1.scrollThumb_mc != undefined) {
_local2 = Math.min(_local2, _local1.maxPos);
_local2 = Math.max(_local2, _local1.minPos);
}
_local1.scrollThumb_mc._y = (((_local2 - _local1.minPos) * _local1.trackHeight) / (_local1.maxPos - _local1.minPos)) + _local1.scrollTop;
_local1.executeCallBack();
};
FScrollBarClass.prototype.setLargeScroll = function (lScroll) {
this.largeScroll = lScroll;
};
FScrollBarClass.prototype.setSmallScroll = function (sScroll) {
this.smallScroll = sScroll;
};
FScrollBarClass.prototype.setEnabled = function (enabledFlag) {
var _local1 = this;
var _local2 = enabledFlag;
var _local3 = _local1.enable;
if (_local2 && (!_local3)) {
_local1.enable = _local2;
if (_local1.textField != undefined) {
_local1.setScrollTarget(_local1.textField);
} else {
_local1.setScrollProperties(_local1.pageSize, _local1.cachedMinPos, _local1.cachedMaxPos);
_local1.setScrollPosition(_local1.cachedPos);
}
_local1.clickFilter = undefined;
} else if ((!_local2) && (_local3)) {
_local1.textField.removeListener(_local1);
_local1.cachedPos = _local1.getScrollPosition();
_local1.cachedMinPos = _local1.minPos;
_local1.cachedMaxPos = _local1.maxPos;
if (_local1.clickFilter == undefined) {
_local1.setScrollProperties(_local1.pageSize, 0, 0);
} else {
_local1.clickFilter = true;
}
_local1.enable = _local2;
}
};
FScrollBarClass.prototype.setSize = function (hgt) {
var _local1 = this;
if (_local1._height == 1) {
} else {
_local1.width = hgt;
_local1.scrollTrack_mc._yscale = 100;
_local1.scrollTrack_mc._yscale = (100 * _local1.width) / _local1.scrollTrack_mc._height;
if (_local1.upArrow_mc == undefined) {
_local1.attachMovie("UpArrow", "upArrow_mc", 1);
_local1.attachMovie("DownArrow", "downArrow_mc", 2);
_local1.downArrow_mc.controller = (_local1.upArrow_mc.controller = _local1);
_local1.upArrow_mc.useHandCursor = (_local1.downArrow_mc.useHandCursor = false);
_local1.upArrow_mc._x = (_local1.upArrow_mc._y = 0);
_local1.downArrow_mc._x = 0;
}
_local1.scrollTrack_mc.controller = _local1;
_local1.downArrow_mc._y = _local1.width - _local1.downArrow_mc._height;
_local1.trackSize = _local1.width - (2 * _local1.downArrow_mc._height);
if (_local1.textField != undefined) {
_local1.onTextChanged();
} else {
_local1.setScrollProperties(_local1.pageSize, _local1.minPos, _local1.maxPos);
}
}
};
FScrollBarClass.prototype.scrollIt = function (inc, mode) {
var _local1 = this;
var _local3 = _local1.smallScroll;
if (inc != "one") {
_local3 = ((_local1.largeScroll == 0) ? (_local1.pageSize) : (_local1.largeScroll));
}
var _local2 = _local1.getScrollPosition() + (mode * _local3);
if (_local2 > _local1.maxPos) {
_local2 = _local1.maxPos;
} else if (_local2 < _local1.minPos) {
_local2 = _local1.minPos;
}
_local1.setScrollPosition(_local2);
};
FScrollBarClass.prototype.startDragThumb = function () {
var _local1 = this;
_local1.lastY = _local1._ymouse;
_local1.onMouseMove = _local1.controller.dragThumb;
};
FScrollBarClass.prototype.dragThumb = function () {
var _local1 = this;
_local1.scrollMove = _local1._ymouse - _local1.lastY;
_local1.scrollMove = _local1.scrollMove + _local1._y;
if (_local1.scrollMove < _local1.controller.scrollTop) {
_local1.scrollMove = _local1.controller.scrollTop;
} else if (_local1.scrollMove > _local1.controller.scrollBot) {
_local1.scrollMove = _local1.controller.scrollBot;
}
_local1._y = _local1.scrollMove;
var _local2 = _local1.controller;
_local2.scrollPosition = Math.round(((_local2.maxPos - _local2.minPos) * (_local1._y - _local2.scrollTop)) / _local2.trackHeight) + _local2.minPos;
_local1.controller.isScrolling = true;
updateAfterEvent();
_local1.controller.executeCallBack();
};
FScrollBarClass.prototype.stopDragThumb = function () {
this.controller.isScrolling = false;
this.onMouseMove = null;
};
FScrollBarClass.prototype.startTrackScroller = function () {
var _local1 = this;
_local1.controller.trackScroller();
_local1.controller.scrolling = setInterval(_local1.controller, "scrollInterval", 500, "page", -1);
};
FScrollBarClass.prototype.scrollInterval = function (inc, mode) {
var _local1 = this;
var _local2 = inc;
clearInterval(_local1.scrolling);
if (_local2 == "page") {
_local1.trackScroller();
} else {
_local1.scrollIt(_local2, mode);
}
_local1.scrolling = setInterval(_local1, "scrollInterval", 35, _local2, mode);
};
FScrollBarClass.prototype.trackScroller = function () {
var _local1 = this;
if ((_local1.scrollThumb_mc._y + _local1.thumbHeight) < _local1._ymouse) {
_local1.scrollIt("page", 1);
} else if (_local1.scrollThumb_mc._y > _local1._ymouse) {
_local1.scrollIt("page", -1);
}
};
FScrollBarClass.prototype.stopScrolling = function () {
var _local1 = this;
_local1.controller.downArrow_mc.gotoAndStop(1);
_local1.controller.upArrow_mc.gotoAndStop(1);
clearInterval(_local1.controller.scrolling);
};
FScrollBarClass.prototype.startUpScroller = function () {
var _local1 = this;
_local1.controller.upArrow_mc.gotoAndStop(2);
_local1.controller.scrollIt("one", -1);
_local1.controller.scrolling = setInterval(_local1.controller, "scrollInterval", 500, "one", -1);
};
FScrollBarClass.prototype.startDownScroller = function () {
var _local1 = this;
_local1.controller.downArrow_mc.gotoAndStop(2);
_local1.controller.scrollIt("one", 1);
_local1.controller.scrolling = setInterval(_local1.controller, "scrollInterval", 500, "one", 1);
};
FScrollBarClass.prototype.setScrollTarget = function (tF) {
var _local1 = this;
var _local2 = tF;
if (_local2 == undefined) {
_local1.textField.removeListener(_local1);
delete _local1.textField[(_local1.horizontal ? "hScroller" : "vScroller")];
if ((_local1.textField.hScroller != undefined) && (_local1.textField.vScroller != undefined)) {
_local1.textField.unwatch("text");
_local1.textField.unwatch("htmltext");
}
}
_local1.textField = undefined;
if (!(_local2 instanceof TextField)) {
} else {
_local1.textField = _local2;
_local1.textField[(_local1.horizontal ? "hScroller" : "vScroller")] = _local1;
_local1.onTextChanged();
_local1.onChanged = function () {
this.onTextChanged();
};
_local1.onScroller = function () {
var _local1 = this;
if (!_local1.isScrolling) {
if (!_local1.horizontal) {
_local1.setScrollPosition(_local1.textField.scroll);
} else {
_local1.setScrollPosition(_local1.textField.hscroll);
}
}
};
_local1.textField.addListener(_local1);
_local1.textField.watch("text", _local1.callback);
_local1.textField.watch("htmlText", _local1.callback);
}
};
FScrollBarClass.prototype.callback = function (prop, oldVal, newVal) {
var _local1 = this;
clearInterval(_local1.hScroller.synchScroll);
clearInterval(_local1.vScroller.synchScroll);
_local1.hScroller.synchScroll = setInterval(_local1.hScroller, "onTextChanged", 50);
_local1.vScroller.synchScroll = setInterval(_local1.vScroller, "onTextChanged", 50);
return(newVal);
};
FScrollBarClass.prototype.onTextChanged = function () {
var _local1 = this;
if ((!_local1.enable) || (_local1.textField == undefined)) {
} else {
clearInterval(_local1.synchScroll);
if (_local1.horizontal) {
var _local2 = _local1.textField.hscroll;
_local1.setScrollProperties(_local1.textField._width, 0, _local1.textField.maxhscroll);
_local1.setScrollPosition(Math.min(_local2, _local1.textField.maxhscroll));
} else {
var _local2 = _local1.textField.scroll;
var _local3 = _local1.textField.bottomScroll - _local1.textField.scroll;
_local1.setScrollProperties(_local3, 1, _local1.textField.maxscroll);
_local1.setScrollPosition(Math.min(_local2, _local1.textField.maxscroll));
}
}
};
FScrollBarClass.prototype.executeCallBack = function () {
var _local1 = this;
if (_local1.textField == undefined) {
super.executeCallBack();
} else if (_local1.horizontal) {
_local1.textField.hscroll = _local1.getScrollPosition();
} else {
_local1.textField.scroll = _local1.getScrollPosition();
}
};
Object.registerClass("FScrollBarSymbol", FScrollBarClass);
#endinitclip
Symbol 97 MovieClip [FBoundingBoxSymbol] Frame 1
var component = _parent;
component.registerSkinElement(boundingBox, "background");
stop();
Symbol 97 MovieClip [FBoundingBoxSymbol] Frame 2
component.registerSkinElement(boundingBox2, "backgroundDisabled");
stop();
Symbol 98 MovieClip [FScrollPaneSymbol] Frame 1
#initclip 3
function FScrollPaneClass() {
var _local1 = this;
function boolToString(str) {
var _local1 = str;
if (_local1 == "false") {
return(false);
}
if (_local1 == "true") {
return(true);
}
return(_local1);
}
_local1.init();
_local1.width = _local1._width;
_local1.height = _local1._height;
_local1._xscale = (_local1._yscale = 100);
_local1.contentWidth = (_local1.contentHeight = 0);
if (_local1.hScroll == undefined) {
_local1.hScroll = (_local1.vScroll = "auto");
_local1.dragContent = false;
}
_local1.offset = new Object();
_local1.vScroll = boolToString(_local1.vScroll);
_local1.hScroll = boolToString(_local1.hScroll);
_local1.attachMovie("FScrollBarSymbol", "hScrollBar_mc", 100, {hostStyle:_local1.styleTable});
_local1.hScrollBar_mc.setHorizontal(true);
_local1.hScrollBar_mc.setSmallScroll(5);
_local1.hScrollBar_mc.setChangeHandler("onScroll", _local1);
_local1.attachMovie("FScrollBarSymbol", "vScrollBar_mc", 99, {hostStyle:_local1.styleTable});
_local1.vScrollBar_mc.setSmallScroll(5);
_local1.vScrollBar_mc.setChangeHandler("onScroll", _local1);
_local1.setSize(_local1.width, _local1.height);
if (_local1.scrollContent != "") {
_local1.setScrollContent(_local1.scrollContent);
}
_local1.setDragContent(_local1.dragContent);
}
FScrollPaneClass.prototype = new FUIComponentClass();
Object.registerClass("FScrollPaneSymbol", FScrollPaneClass);
FScrollPaneClass.prototype.getScrollContent = function () {
return(this.content_mc);
};
FScrollPaneClass.prototype.getPaneWidth = function () {
return(this.width);
};
FScrollPaneClass.prototype.getPaneHeight = function () {
return(this.height);
};
FScrollPaneClass.prototype.getScrollPosition = function () {
var _local1 = this;
var _local3 = ((_local1.hScrollBar_mc == undefined) ? 0 : (_local1.hScrollBar_mc.getScrollPosition()));
var _local2 = ((_local1.vScrollBar_mc == undefined) ? 0 : (_local1.vScrollBar_mc.getScrollPosition()));
return({x:_local3, y:_local2});
};
FScrollPaneClass.prototype.setScrollContent = function (target) {
var _local1 = this;
var _local2 = target;
_local1.offset.x = 0;
_local1.offset.y = 0;
if (_local1.content_mc != undefined) {
if (_local2 != _local1.content_mc) {
_local1.content_mc._visible = false;
_local1.content_mc.removeMovieClip();
_local1.content_mc.unloadMovie();
}
}
if (typeof(_local2) == "string") {
_local1.attachMovie(_local2, "tmp_mc", 3);
_local1.content_mc = _local1.tmp_mc;
} else if (_local2 == undefined) {
_local1.content_mc.unloadMovie();
} else {
_local1.content_mc = _local2;
}
_local1.localToGlobal(_local1.offset);
_local1.content_mc._parent.globalToLocal(_local1.offset);
_local1.content_mc._x = _local1.offset.x;
_local1.content_mc._y = _local1.offset.y;
var _local3 = _local1.content_mc.getBounds(_local1);
_local1.offset.x = -_local3.xMin;
_local1.offset.y = -_local3.yMin;
_local1.localToGlobal(_local1.offset);
_local1.content_mc._parent.globalToLocal(_local1.offset);
_local1.content_mc._x = _local1.offset.x;
_local1.content_mc._y = _local1.offset.y;
_local1.contentWidth = _local1.content_mc._width;
_local1.contentHeight = _local1.content_mc._height;
_local1.content_mc.setMask(_local1.mask_mc);
_local1.setSize(_local1.width, _local1.height);
};
FScrollPaneClass.prototype.setSize = function (w, h) {
var _local1 = this;
var _local2 = h;
var _local3 = w;
if (((arguments.length < 2) || (isNaN(_local3))) || (isNaN(_local2))) {
} else {
super.setSize(_local3, _local2);
_local1.width = Math.max(_local3, 60);
_local1.height = Math.max(_local2, 60);
_local1.boundingBox_mc._xscale = 100;
_local1.boundingBox_mc._yscale = 100;
_local1.boundingBox_mc._width = _local1.width;
_local1.boundingBox_mc._height = _local1.height;
_local1.setHandV();
_local1.initScrollBars();
if (_local1.mask_mc == undefined) {
_local1.attachMovie("FBoundingBoxSymbol", "mask_mc", 3000);
}
_local1.mask_mc._xscale = 100;
_local1.mask_mc._yscale = 100;
_local1.mask_mc._width = _local1.hWidth;
_local1.mask_mc._height = _local1.vHeight;
_local1.mask_mc._alpha = 0;
}
};
FScrollPaneClass.prototype.setScrollPosition = function (x, y) {
var _local1 = this;
var _local2 = y;
var _local3 = x;
_local3 = Math.max(_local1.hScrollBar_mc.minPos, _local3);
_local3 = Math.min(_local1.hScrollBar_mc.maxPos, _local3);
_local2 = Math.max(_local1.vScrollBar_mc.minPos, _local2);
_local2 = Math.min(_local1.vScrollBar_mc.maxPos, _local2);
_local1.hScrollBar_mc.setScrollPosition(_local3);
_local1.vScrollBar_mc.setScrollPosition(_local2);
};
FScrollPaneClass.prototype.refreshPane = function () {
this.setScrollContent(this.content_mc);
};
FScrollPaneClass.prototype.loadScrollContent = function (url, handler, location) {
var _local1 = this;
_local1.content_mc.removeMovieClip();
_local1.content_mc.unloadMovie();
_local1.content_mc._visible = 0;
_local1.loadContent.duplicateMovieClip("loadTemp", 3);
_local1.dupeFlag = true;
_local1.contentLoaded = function () {
var _local1 = this;
_local1.loadReady = false;
_local1.content_mc = _local1.loadTemp;
_local1.refreshPane();
_local1.executeCallBack();
};
_local1.setChangeHandler(handler, location);
_local1.loadTemp.loadMovie(url);
};
FScrollPaneClass.prototype.setHScroll = function (prop) {
var _local1 = this;
_local1.hScroll = prop;
_local1.setSize(_local1.width, _local1.height);
};
FScrollPaneClass.prototype.setVScroll = function (prop) {
var _local1 = this;
_local1.vScroll = prop;
_local1.setSize(_local1.width, _local1.height);
};
FScrollPaneClass.prototype.setDragContent = function (dragFlag) {
var _local1 = this;
if (dragFlag) {
_local1.boundingBox_mc.useHandCursor = true;
_local1.boundingBox_mc.onPress = function () {
this._parent.startDragLoop();
};
_local1.boundingBox_mc.tabEnabled = false;
_local1.boundingBox_mc.onRelease = (_local1.boundingBox_mc.onReleaseOutside = function () {
this._parent.pressFocus();
this._parent.onMouseMove = null;
});
} else {
delete _local1.boundingBox_mc.onPress;
_local1.boundingBox_mc.useHandCursor = false;
}
};
FScrollPaneClass.prototype.setSmallScroll = function (x, y) {
this.hScrollBar_mc.setSmallScroll(x);
this.vScrollBar_mc.setSmallScroll(y);
};
FScrollPaneClass.prototype.setHandV = function () {
var _local1 = this;
if ((((_local1.contentHeight - _local1.height) > 2) && (_local1.vScroll != false)) || (_local1.vScroll == true)) {
_local1.hWidth = _local1.width - _local1.vScrollBar_mc._width;
} else {
_local1.hWidth = _local1.width;
}
if ((((_local1.contentWidth - _local1.width) > 2) && (_local1.hScroll != false)) || (_local1.hScroll == true)) {
_local1.vHeight = _local1.height - _local1.hScrollBar_mc._height;
} else {
_local1.vHeight = _local1.height;
}
};
FScrollPaneClass.prototype.startDragLoop = function () {
var _local1 = this;
_local1.tabFocused = false;
_local1.myOnSetFocus();
_local1.lastX = _local1._xmouse;
_local1.lastY = _local1._ymouse;
_local1.onMouseMove = function () {
var _local1 = this;
_local1.scrollXMove = _local1.lastX - _local1._xmouse;
_local1.scrollYMove = _local1.lastY - _local1._ymouse;
_local1.scrollXMove = _local1.scrollXMove + _local1.hScrollBar_mc.getScrollPosition();
_local1.scrollYMove = _local1.scrollYMove + _local1.vScrollBar_mc.getScrollPosition();
_local1.setScrollPosition(_local1.scrollXMove, _local1.scrollYMove);
if ((_local1.scrollXMove < _local1.hScrollBar_mc.maxPos) && (_local1.scrollXMove > _local1.hScrollBar_mc.minPos)) {
_local1.lastX = _local1._xmouse;
}
if ((_local1.scrollYMove < _local1.vScrollBar_mc.maxPos) && (_local1.scrollYMove > _local1.vScrollBar_mc.minPos)) {
_local1.lastY = _local1._ymouse;
}
_local1.updateAfterEvent();
};
};
FScrollPaneClass.prototype.initScrollBars = function () {
var _local1 = this;
_local1.hScrollBar_mc._y = _local1.height - _local1.hScrollBar_mc._height;
_local1.hScrollBar_mc.setSize(_local1.hWidth);
_local1.hScrollBar_mc.setScrollProperties(_local1.hWidth, 0, _local1.contentWidth - _local1.hWidth);
_local1.vScrollBar_mc._visible = ((_local1.hWidth == _local1.width) ? false : true);
_local1.vScrollBar_mc._x = _local1.width - _local1.vScrollBar_mc._width;
_local1.vScrollBar_mc.setSize(_local1.vHeight);
_local1.vScrollBar_mc.setScrollProperties(_local1.vHeight, 0, _local1.contentHeight - _local1.vHeight);
_local1.hScrollBar_mc._visible = ((_local1.vHeight == _local1.height) ? false : true);
};
FScrollPaneClass.prototype.onScroll = function (component) {
var _local2 = this;
var _local3 = component;
var _local1 = _local3.getScrollPosition();
var XorY = ((_local3._name == "hScrollBar_mc") ? "x" : "y");
if (_local3._name == "hScrollBar_mc") {
_local2.content_mc._x = (-_local1) + _local2.offset.x;
} else {
_local2.content_mc._y = (-_local1) + _local2.offset.y;
}
};
FScrollPaneClass.prototype.myOnKeyDown = function () {
var _local1 = this;
var _local3 = _local1.hScrollBar_mc.getScrollPosition();
var _local2 = _local1.vScrollBar_mc.getScrollPosition();
if (_local1.hScrollBar_mc.maxPos > _local1.hScrollBar_mc.minPos) {
if (Key.isDown(37)) {
_local1.setScrollPosition(_local3 - 3, _local2);
} else if (Key.isDown(39)) {
_local1.setScrollPosition(_local3 + 3, _local2);
}
}
if (_local1.vScrollBar_mc.maxPos > _local1.vScrollBar_mc.minPos) {
if (Key.isDown(38)) {
_local1.setScrollPosition(_local3, _local2 - 3);
} else if (Key.isDown(40)) {
_local1.setScrollPosition(_local3, _local2 + 3);
} else if (Key.isDown(34)) {
_local1.setScrollPosition(_local3, _local2 + _local1.vScrollBar_mc.pageSize);
} else if (Key.isDown(33)) {
_local1.setScrollPosition(_local3, _local2 - _local1.vScrollBar_mc.pageSize);
}
}
};
#endinitclip
this.deadPreview._visible = false;
Instance of Symbol 92 MovieClip "loadContent" in Symbol 98 MovieClip [FScrollPaneSymbol] Frame 1
onClipEvent (load) {
if (this._parent.loadReady) {
this._parent.contentLoaded();
delete this._parent.loadReady;
} else if (this._name != "loadContent") {
this._parent.loadReady = true;
}
}
Instance of Symbol 89 MovieClip [FScrollBarSymbol] "scrollBarAsset" in Symbol 98 MovieClip [FScrollPaneSymbol] Frame 1
//component parameters
onClipEvent (initialize) {
_targetInstanceName = "";
horizontal = false;
}
Symbol 100 Button
on (release) {
_root.PlaySound("snd_click");
_root.money = _root.money + 100;
_root.DrawBalance();
}
on (rollOver) {
this._alpha = 100;
}
on (rollOut, dragOut) {
this._alpha = _defaultalpha;
}
Symbol 105 Button
on (release) {
_root.PlaySound("snd_click");
getURL (_root.update_url, "_blank");
}
Symbol 110 Button
on (release) {
if (_root.fullScreenMode == undefined) {
_root.fullScreenMode = false;
}
_root.fullScreenMode = !_root.fullScreenMode;
_root.getURL("FSCommand:fullscreen", _root.fullScreenMode);
}
on (rollOver) {
this._alpha = 100;
this.hzoom.gotoAndPlay(1);
}
on (rollOut, dragOut) {
this._alpha = _defaultalpha;
this.hzoom.gotoAndStop(1);
}
Symbol 116 MovieClip [HelpContent] Frame 1
this.thelp.text = _root.sbm_help;
Instance of Symbol 89 MovieClip [FScrollBarSymbol] "sbd" in Symbol 153 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
_targetInstanceName = "dta";
horizontal = false;
}
Symbol 156 Button
on (release) {
debug_win._visible = !debug_win._visible;
}
Symbol 158 Button
on (press) {
_root.rules_win.startdrag(false, -10000, -10000, 10000, 10000);
}
on (release) {
stopDrag();
}
Symbol 162 Button
on (release) {
_root.kubik0._visible = true;
_root.kubik1._visible = true;
_root.PlaySound("snd_click");
_root.rules_win._visible = false;
var i = 1;
while (i < 15) {
_root.panel.coin_pan.coin_pan2.slider["btn" + i].enabled = true;
i++;
}
_root.panel.coin_pan.coin_pan2.btn_right.enabled = true;
_root.panel.coin_pan.coin_pan2.btn_left.enabled = true;
_root.panel.btn_deal.enabled = true;
_root.panel.btn_play.enabled = true;
_root.panel.btn_rebet.enabled = true;
_root.panel.btn_spin.enabled = true;
_root.panel.btn_clear.enabled = true;
_root.panel.btn_houseway.enabled = true;
_root.panel.btn_done.enabled = true;
_root.panel.btn_continue.enabled = true;
_root.panel.btn_add.enabled = true;
_root.panel.btn_help.enabled = true;
_root.panel.btn_upd.enabled = true;
var i = 0;
while (i < 7) {
_root.buttons["b" + i].enabled = true;
i++;
}
_root.connecting_clip._visible = true;
i = 0;
while (i < 15) {
var NewClipName = ("BetedChip" + String(i));
_root[NewClipName]._visible = true;
i++;
}
}
Instance of Symbol 98 MovieClip [FScrollPaneSymbol] in Symbol 165 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
scrollContent = "HelpContentSW";
hScroll = "false";
vScroll = "auto";
dragContent = true;
}
Symbol 171 Button
on (release) {
_root.PlaySound("snd_click");
_root.rules_win._visible = false;
i = 0;
while (i < 15) {
var NewClipName = ("BetedChip" + String(i));
_root[NewClipName]._visible = true;
i++;
}
}
Instance of Symbol 98 MovieClip [FScrollPaneSymbol] in Symbol 172 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
scrollContent = "HelpContent";
hScroll = "false";
vScroll = "auto";
dragContent = true;
}
Symbol 214 Button
on (release) {
_root.ChooseAction(b1_act);
}
Symbol 215 Button
on (release) {
_root.ChooseAction(b0_act);
}
Symbol 216 Button
on (release) {
_root.ChooseAction(b2_act);
}
Symbol 223 Button
on (release) {
getURL (_root.update_url, "_blank");
}
Symbol 227 MovieClip Frame 6
stop();
Symbol 231 MovieClip Frame 6
stop();
Symbol 253 Button
on (release) {
music_off._visible = !music_off._visible;
_root.CheckMusic();
_root.PlaySound("snd_click");
}
on (rollOver) {
this._alpha = 100;
this.h2.gotoAndPlay(1);
}
on (rollOut, dragOut) {
this._alpha = _defaultalpha;
this.h2.gotoAndStop(1);
}
Symbol 267 Button
on (release) {
i = 0;
while (i < 15) {
var NewClipName = ("BetedChip" + String(i));
_root[NewClipName]._visible = !_root[NewClipName]._visible;
i++;
}
_root.kubik0._visible = !_root.kubik0._visible;
_root.kubik1._visible = !_root.kubik1._visible;
_root.btn_shell_0.enabled = !_root.btn_shell_0.enabled;
_root.btn_shell_1.enabled = !_root.btn_shell_1.enabled;
_root.btn_shell_2.enabled = !_root.btn_shell_2.enabled;
_root.PlaySound("snd_click");
_root.rules_win._visible = !_root.rules_win._visible;
}
on (rollOver) {
this._alpha = 100;
this.h4.gotoAndPlay(1);
}
on (rollOut, dragOut) {
this._alpha = _defaultalpha;
this.h4.gotoAndStop(1);
}
Symbol 283 Button
on (release) {
_root.PlaySound("snd_click");
if (_root.online) {
if (_root.exit_url.substr(_root.exit_url.length - 1) == "?") {
suff = "nosound=";
} else if (_root.exit_url.substr(_root.exit_url.length - 1) == "&") {
suff = "nosound=";
} else if (_root.exit_url.indexOf("?") != -1) {
suff = "&nosound=";
} else {
suff = "?nosound=";
}
if (_root.soundon) {
suff = suff add "0";
} else {
suff = suff add "1";
}
suff = suff add "&nomusic=";
if (_root.musicon) {
suff = suff add "0";
} else {
suff = suff add "1";
}
getURL (_root.exit_url add suff, "_self");
} else {
fscommand ("quit");
fscommand ("this.close");
}
}
on (rollOver) {
this._alpha = 100;
h1.gotoAndPlay(1);
}
on (rollOut, dragOut) {
this._alpha = _defaultalpha;
h1.gotoAndStop(1);
}
Symbol 297 Button
on (rollOver) {
this._alpha = 100;
this.h3.gotoAndPlay(1);
}
on (rollOut, dragOut) {
this._alpha = _defaultalpha;
this.h3.gotoAndStop(1);
}
on (release) {
sound_off._visible = !sound_off._visible;
_root.PlaySound("snd_click");
_root.CheckSound();
}
Symbol 298 Button
on (release) {
if (_root.st != _root.ST_BET) {
return(undefined);
}
if (!_root.rules_win._visible) {
_root.PlaySound("snd_click");
_root.money = _root.money + 100;
_root.ServerPlayerMoney = _root.ServerPlayerMoney + 100;
_root.DrawBalance();
_root.displayMoneyAndBet();
_root.panel.bet = 1234;
_root.panel.set("ttt", 124);
_root.panel.setTest(123);
}
}
on (rollOver) {
this._alpha = 100;
h7.gotoAndPlay(1);
}
on (rollOut, dragOut) {
this._alpha = _defaultalpha;
h7.gotoAndStop(1);
}
Symbol 299 Button
on (release) {
_root.PlaySound("snd_click");
getURL (_root.update_url, "_blank");
}
on (rollOver) {
this._alpha = 100;
this.h6.gotoAndPlay(1);
}
on (rollOut, dragOut) {
this._alpha = _defaultalpha;
this.h6.gotoAndStop(1);
}
Symbol 322 Button
on (release) {
if (!_root.rules_win._visible) {
if (slider._x > SLIDER_MINX) {
slider._x = slider._x - SLIDER_DX;
}
_root.PlaySound("snd_click");
testVisible();
}
}
on (rollOver) {
_root.panel._alpha = 100;
}
on (rollOut, dragOut) {
_root.panel._alpha = _root.panel._defaultalpha;
}
Symbol 324 Button
on (release) {
if (!_root.rules_win._visible) {
if (slider._x < SLIDER_MAXX) {
slider._x = slider._x + SLIDER_DX;
}
_root.PlaySound("snd_click");
testVisible();
}
}
on (rollOver) {
_root.panel._alpha = 100;
}
on (rollOut, dragOut) {
_root.panel._alpha = _root.panel._defaultalpha;
}
Symbol 338 Button
on (release) {
_root.PutBet(1);
}
on (rollOver) {
_root.panel._alpha = 100;
}
on (rollOut, dragOut) {
_root.panel._alpha = _root.panel._defaultalpha;
}
Symbol 344 Button
on (release) {
_root.PutBet(2);
}
on (rollOver) {
_root.panel._alpha = 100;
}
on (rollOut, dragOut) {
_root.panel._alpha = _root.panel._defaultalpha;
}
Symbol 350 Button
on (release) {
_root.PutBet(3);
}
on (rollOver) {
_root.panel._alpha = 100;
}
on (rollOut, dragOut) {
_root.panel._alpha = _root.panel._defaultalpha;
}
Symbol 356 Button
on (release) {
_root.PutBet(4);
}
on (rollOver) {
_root.panel._alpha = 100;
}
on (rollOut, dragOut) {
_root.panel._alpha = _root.panel._defaultalpha;
}
Symbol 362 Button
on (release) {
_root.PutBet(14);
}
on (rollOver) {
_root.panel._alpha = 100;
}
on (rollOut, dragOut) {
_root.panel._alpha = _root.panel._defaultalpha;
}
Symbol 368 Button
on (release) {
_root.PutBet(13);
}
on (rollOver) {
_root.panel._alpha = 100;
}
on (rollOut, dragOut) {
_root.panel._alpha = _root.panel._defaultalpha;
}
Symbol 374 Button
on (release) {
_root.PutBet(12);
}
on (rollOver) {
_root.panel._alpha = 100;
}
on (rollOut, dragOut) {
_root.panel._alpha = _root.panel._defaultalpha;
}
Symbol 380 Button
on (release) {
_root.PutBet(11);
}
on (rollOver) {
_root.panel._alpha = 100;
}
on (rollOut, dragOut) {
_root.panel._alpha = _root.panel._defaultalpha;
}
Symbol 388 Button
on (release) {
_root.PutBet(10);
}
on (rollOver) {
_root.panel._alpha = 100;
}
on (rollOut, dragOut) {
_root.panel._alpha = _root.panel._defaultalpha;
}
Symbol 395 Button
on (release) {
_root.PutBet(9);
}
on (rollOver) {
_root.panel._alpha = 100;
}
on (rollOut, dragOut) {
_root.panel._alpha = _root.panel._defaultalpha;
}
Symbol 402 Button
on (release) {
_root.PutBet(8);
}
on (rollOver) {
_root.panel._alpha = 100;
}
on (rollOut, dragOut) {
_root.panel._alpha = _root.panel._defaultalpha;
}
Symbol 409 Button
on (release) {
_root.PutBet(7);
}
on (rollOver) {
_root.panel._alpha = 100;
}
on (rollOut, dragOut) {
_root.panel._alpha = _root.panel._defaultalpha;
}
Symbol 416 Button
on (release) {
_root.PutBet(6);
}
on (rollOver) {
_root.panel._alpha = 100;
}
on (rollOut, dragOut) {
_root.panel._alpha = _root.panel._defaultalpha;
}
Symbol 424 Button
on (release) {
_root.PutBet(5);
}
on (rollOver) {
_root.panel._alpha = 100;
}
on (rollOut, dragOut) {
_root.panel._alpha = _root.panel._defaultalpha;
}
Symbol 426 MovieClip Frame 1
function testVisible() {
_root.DebugOutput(slider._x);
if (slider._x <= SLIDER_MINX) {
btn_right._visible = false;
} else {
btn_right._visible = true;
}
if (slider._x >= SLIDER_MAXX) {
btn_left._visible = false;
} else {
btn_left._visible = true;
}
}
SLIDER_MINX = 93;
SLIDER_MAXX = 409;
SLIDER_DX = 42;
stop();
Symbol 432 MovieClip Frame 1
if (_root.online) {
btn_upd._visible = false;
btn_add._visible = false;
txt_ver._visible = false;
txt_ver_2._visible = false;
btn_full_screen._visible = false;
fonar.btn_upd._visible = false;
fonar.btn_full_screen._visible = false;
} else {
ver = _root._version;
fonar.btn_full_screen._visible = false;
_root.panel.sound_off._visible = false;
_root.panel.fonar.sound_off._visible = false;
btn_full_screen._visible = false;
_root.panel.e._visible = false;
_root.MoveCardClip._visible = false;
_root.Card0._visible = false;
_root.Card1._visible = false;
_root.Card2._visible = false;
_root.Card3._visible = false;
_root.Card4._visible = false;
_root.Card5._visible = false;
_root.Card6._visible = false;
}
if (_root.shareware == true) {
fonar.btn_full_screen._visible = false;
}
_root.tjoker = (_root.Panel.tjoker = _root.sbm_joker);
_root.tdouble = (_root.Panel.tdouble = _root.sbm_double);
_root.tstring = (_root.mcstr.tstring = _root.sbm_string);
_root.tpays = _root.sbm_pays;
_root.panel.tclear = _root.sbm_clear;
_root.panel.tdeal = (_root.Panel.tdeal = _root.sbm_deal);
_root.panel.troll = _root.sbm_roll;
_root.panel.tplay = _root.sbm_play;
_root.panel.trebet = _root.sbm_rebet;
_root.panel.tspin = _root.sbm_spin;
_root.tplayer = (_root.mcfon.tplayer = (_root.h0.tplayer = _root.sbm_player));
_root.tbanker = (_root.mcfon.tbanker = (_root.h2.tbanker = _root.sbm_banker));
_root.ttie = (_root.mcfon.ttie = (_root.h1.ttie = _root.sbm_tie));
_root.panel.tbalance = _root.sbm_balance;
_root.panel.tbet = _root.sbm_bt;
_root.comb_0.bet_circle.tBET = (_root.bet_circle.tBET = _root.sbm_BET);
_root.comb_0.bet_circle.tANTE = _root.sbm_ANTE;
_root.comb_0.tlow = (_root.comb_1.tlow = _root.sbm_low);
_root.comb_0.thigh = (_root.comb_1.thigh = _root.sbm_high);
hitzone.useHandCursor = false;
h1.hint.txt = "Exit";
h1.gotoAndStop(1);
h2.hint.txt = "Music on/off";
h2.gotoAndStop(1);
h3.hint.txt = "Sound on/off";
h3.gotoAndStop(1);
h4.hint.txt = "Rules";
h4.gotoAndStop(1);
h6.hint.txt = "More games";
h6.gotoAndStop(1);
h7.hint.txt = "Add $100";
h7.gotoAndStop(1);
hzoom.hint.txt = "Full screen";
hzoom.gotoAndStop(1);
game_name = _root.game_name;
casino_name = _root.casino_name;
_defaultalpha = _alpha;
_alpha = _defaultalpha;
stop();
Symbol 566 MovieClip Frame 1
stop();
Symbol 569 MovieClip Frame 1
stop();
blink.gotoAndStop(1);
Symbol 579 MovieClip Frame 1
function CardToN(c) {
return(1 + ((c - 1) % 13));
}
function init() {
is_present = false;
bet_enabled = false;
ante = 0;
bet = 0;
insurance = 0;
is_active = false;
no_cards = 0;
message = "";
}
function display() {
var _local2 = this;
if (is_active) {
cardcircle._visible = true;
} else {
cardcircle._visible = false;
}
if (no < _root.COMB_DEALER) {
bet_circle._visible = true;
_root.comb_1.bet_circle._visible = false;
betbutton._visible = true;
} else {
bet_circle._visible = false;
betbutton._visible = false;
}
antecoins._visible = true;
betcoins._visible = true;
antecoins.DrawBet(ante);
betcoins.DrawBet(bet);
var _local3 = true;
var _local1 = 0;
while (_local1 < MAX_NO_CARDS) {
if (_local1 < no_cards) {
_local2["card" add String(_local1)].gotoAndStop(cards[_local1]);
_local2["card" add String(_local1)]._visible = true;
if (cards[_local1] >= 53) {
_local3 = false;
}
} else {
_local2["card" add String(_local1)]._visible = false;
_local3 = false;
}
_local1++;
}
if (_local3) {
scores = combName[_root.calculateArrayAsCombination(cards)];
} else {
scores = "";
}
ShowScores();
}
betcircle.gotoAndStop(1);
var bet;
var insurance;
var is_active;
var cards = new Array();
var no_cards;
var message;
var MAX_NO_CARDS = 5;
_root.comb_1.bet_circle._visible = false;
c = 0;
while (c < MAX_NO_CARDS) {
this["card" add String(c)].gotoAndStop(1);
this["card" add String(c)]._visible = false;
c++;
}
CardPrices = new Array(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 10);
var combName = Array("", "Ace and King", "Pair", "Two pairs", "Three of a kind", "Straight", "Flush", "Full house", "For of a kind", "Straight flush", "Royal flush");
betcircle.gotoAndStop(1);
Symbol 608 MovieClip Frame 1
stop();