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 = "baccarat/table0";
}
debug = 0;
} else if (shareware != 1) {
}
}
game_name = "Erotic Girl Baccarat";
game_id = "Erotic Girl Baccarat";
_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 GetNum(a) {
var _local1 = a;
if (_local1 != Math.round(_local1)) {
return(_local1);
}
return(_local1 add ".0");
}
function gameInit() {
commonGameInit();
st = ST_NONE;
bet = 0;
bets = [0, 0, 0];
Card0._visible = false;
Card1._visible = false;
Card2._visible = false;
Card3._visible = false;
Card4._visible = false;
Card5._visible = false;
Card6._visible = false;
Card0.gotoAndStop(CardToFrame(53));
h0.gotoAndStop(1);
h1.gotoAndStop(1);
h2.gotoAndStop(1);
SelectedChip = 0;
_root.onMouseMove = function () {
if (_root._ymouse > 380) {
if ((SelectedChip != 0) and was_on_top_flag) {
SelectedChip = 0;
ShowSelectedChip();
}
was_on_top_flag = false;
} else {
was_on_top_flag = true;
}
};
}
function gameProcess() {
panel._defaultalpha = 100;
panel._alpha = panel._defaultalpha;
onlineValidator();
if (st == ST_NONE) {
if (online and connection_GetOnline()) {
status_bar = sbm_logging;
st = ST_LOADING;
connection_ToServer({type:"load"});
}
if (!online) {
commonInitOffline();
st = ST_BET;
displayMoneyAndBet();
}
} else if (st == ST_BET) {
} else if (st == ST_WAITSERVER) {
processWaitServer();
} else if (st == ST_DEAL) {
processDeal();
}
}
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_BET;
}
if (st == ST_WAITSERVER) {
processDataFromServer();
}
}
function PutBet(betnum) {
var _local1 = _root;
if (!_local1.rules_win._visible) {
betvalue = _local1.coin_val[betnum - 1];
if (Number(_local1.money) < betvalue) {
} else {
_local1.SelectedChip = betnum;
_local1.ShowSelectedChip();
_local1.PlaySound("snd_click");
}
}
}
function ShowSelectedChip() {
var _local1 = _root;
_local1.SelectedChipClip.removeMovieClip();
stopDrag();
if (SelectedChip > 0) {
OldClipName = "ClipChip" + 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 DisplayBets() {
RemoveChipsFromBet();
var _local1 = 0;
while (_local1 < 3) {
BuildBetColumn(BetOnX[_local1], BetOnY[_local1], bets[_local1]);
_local1++;
}
}
function AddToBet(b) {
var _local2 = b;
var _local3 = _root;
hideCards();
statusAdd = "";
if ((_local2 == 0) and (bets[2] > 0)) {
} else if ((_local2 == 2) and (bets[0] > 0)) {
} else {
DebugOutput("b " + _local2);
status_add = "";
_local3.PlaySound("snd_click");
if ((SelectedChip == 0) && (bets[_local2] > 0)) {
var Delta = bets[_local2];
_local3.money = _local3.money + Delta;
_local3.bet = _local3.bet - Delta;
bets[_local2] = 0;
} else {
var TempChip = SelectedChip;
if (SelectedChip == 0) {
TempChip = 5;
}
var _local1 = _local3.coin_val[TempChip - 1];
if ((bets[_local2] + _local1) > maxbet) {
PutMessage("Sorry, but it is impossible bet");
} else if (_local1 > money) {
PutMessage("There is not enougth money");
} else if ((bet + _local1) > maxbet) {
PutMessage("Maximal bet is limited " + String(maxbet));
} else {
bets[_local2] = bets[_local2] + _local1;
money = money - _local1;
bet = bet + _local1;
SelectedChip = 0;
trace("SelectedChip " + SelectedChip);
}
}
DisplayBets();
ShowSelectedChip();
_local3.displayMoneyAndBet();
_local3.was_on_top_flag = false;
}
}
function RemoveBets() {
if (st != ST_BET) {
return(undefined);
}
hideCards();
statusAdd = "";
i = 0;
while (i < 3) {
money = money + bets[i];
bets[i] = 0;
i++;
}
bet = 0;
PlaySound("snd_take");
DisplayBets();
_root.displayMoneyAndBet();
}
function PutMessage(m) {
MessageLog = m add newline;
}
function Deal() {
if ((bet > 0) && (st == ST_BET)) {
PlaySound("snd_click");
st = ST_WAITSERVER;
hideCards();
if (online) {
connection_ToServer({type:"gambling", bet:bet, bet_0:bets[0], bet_1:bets[1], bet_2:bets[2]});
} else {
WinOn = random(3);
}
}
}
function processWaitServer() {
if (online) {
} else {
offlineServerEmulation();
processDataFromServer();
}
}
function offlineServerEmulation() {
vars = new Object();
var _local3 = [1, 8, 0.95];
var win_probability = [0, 0, 0, 0, 1, 2, 2, 2, 2];
var ValidGame = false;
var tries = 0;
var _local2 = -1;
while ((!ValidGame) && ((tries++) < 100)) {
Income = 0;
_local2 = win_probability[random(9)];
var _local1 = 0;
while (_local1 < 3) {
if (_local1 == _local2) {
Income = Income + (_local3[_local1] * bets[_local1]);
} else {
Income = Income - bets[_local1];
}
_local1++;
}
ValidGame = true;
}
if (Income >= 0) {
vars.result = 2;
vars.message = ("Sorry, no winner there. You have loss " + formMoneyWithCurrency(Income)) + ". Try again! Place your bet.";
} else if (Income < 0) {
vars.result = 1;
vars.message = ("Congratulations! You have won " + formMoneyWithCurrency(Income)) + "!";
} else {
vars.result = 2;
vars.message = "No money changes";
}
vars.win_on = _local2;
vars.income = income;
vars.balance = (money + bet) + income;
}
function processDataFromServer() {
WinOn = vars.win_on;
st = ST_DEAL;
FindCombo();
CalcScores();
NoDealedCards = 0;
move_t = 2;
}
function ProcessDeal() {
var _local2 = _root;
ShowScores();
if (move_t > 1) {
move_source_card = CardToFrame(53);
if (NoDealedCards == 0) {
move_destination_card = CardToFrame(PlayerCards[0]);
}
if (NoDealedCards == 2) {
move_destination_card = CardToFrame(PlayerCards[1]);
}
if (NoDealedCards == 4) {
move_destination_card = CardToFrame(PlayerCards[2]);
}
if (NoDealedCards == 1) {
move_destination_card = CardToFrame(BankerCards[0]);
}
if (NoDealedCards == 3) {
move_destination_card = CardToFrame(BankerCards[1]);
}
if (NoDealedCards == 5) {
move_destination_card = CardToFrame(BankerCards[2]);
}
move_x1 = card0._x;
move_y1 = card0._y;
move_x2 = _local2["card" add (NoDealedCards + 1)]._x;
move_y2 = _local2["card" add (NoDealedCards + 1)]._y;
move_t = 0;
move_dt = 0.1;
move_flip = true;
_local2.MoveCardClip._visible = true;
if (move_t < 0.5) {
_local2.MoveCardClip.gotoAndStop(move_source_card);
} else {
_local2.MoveCardClip.gotoAndStop(move_destination_card);
}
_local2.MoveCardClip._x = ((move_x2 - move_x1) * move_t) + move_x1;
_local2.MoveCardClip._y = ((move_y2 - move_y1) * move_t) + move_y1;
_local2.move_initial_scale = _local2.MoveCardClip._xscale;
if (move_flip) {
_local2.MoveCardClip._xscale = (move_initial_scale * Math.abs(move_t - 0.5)) * 2;
} else {
_local2.MoveCardClip._xscale = move_initial_scale;
}
}
move_t = move_t + move_dt;
if (move_t > 1) {
_local2.MoveCardClip._visible = false;
_local2["card" add (NoDealedCards + 1)]._visible = true;
_local2["card" add (NoDealedCards + 1)].gotoAndStop(move_destination_card);
NoDealedCards++;
ShowScores();
if ((NoDealedCards == 4) and (!IsCard3Player)) {
NoDealedCards = 5;
}
if ((NoDealedCards == 5) and (!IsCard3Banker)) {
NoDealedCards = 6;
}
if (NoDealedCards == 6) {
var WinMultiplers = Array(1, 8, 0.95);
var _local3 = 0;
bet = 0;
var _local1 = 0;
while (_local1 < 3) {
if (WinOn == _local1) {
_local3 = _local3 + (bets[_local1] * WinMultiplers[_local1]);
bets[_local1] = bets[_local1] + (bets[_local1] * WinMultiplers[_local1]);
_local2["h" add _local1].play();
} else {
_local3 = _local3 - bets[_local1];
bets[_local1] = 0;
}
bet = bet + bets[_local1];
_local1++;
}
if (_local3 > 0) {
status_bar = (sbm_win_pref add formMoneyWithCurrency(_local3)) add sbm_win_suff;
gameWin();
} else if (_local3 < 0) {
status_bar = sbm_nowin;
gameLoose();
} else {
status_bar = sbm_keep;
}
statusAdd = status_bar;
DisplayBets();
_local2.displayMoneyAndBet();
_local2.roundBets();
st = ST_BET;
ShowSelectedChip();
}
} else {
if (move_t < 0.5) {
_local2.MoveCardClip.gotoAndStop(move_source_card);
} else {
_local2.MoveCardClip.gotoAndStop(move_destination_card);
}
_local2.MoveCardClip._x = ((move_x2 - move_x1) * move_t) + move_x1;
_local2.MoveCardClip._y = ((move_y2 - move_y1) * move_t) + move_y1;
if (move_flip) {
_local2.MoveCardClip._xscale = (move_initial_scale * Math.abs(move_t - 0.5)) * 2;
} else {
_local2.MoveCardClip._xscale = move_initial_scale;
}
}
}
function betPressed(no) {
DebugOutput("BET PRESSED" add no);
if (st == ST_BET) {
_root.AddToBet(no);
}
}
function hideCards() {
var _local1 = _root;
CalcScores();
Card1._visible = false;
Card2._visible = false;
Card3._visible = false;
Card4._visible = false;
Card5._visible = false;
Card6._visible = false;
ShowScores();
_local1.h0.gotoAndStop(1);
_local1.h1.gotoAndStop(1);
_local1.h2.gotoAndStop(1);
}
function ClearRandomCards() {
var _local1 = 0;
while (_local1 < 52) {
LeavedCards[_local1] = 1;
_local1++;
}
}
function FindRandomCard() {
var _local1;
while (true) {
_local1 = random(52);
if (LeavedCards[_local1] > 0) {
LeavedCards[_local1] = 0;
return(_local1);
}
}
return(_local1);
}
function CalcScores() {
ScoresPlayer = 0;
ScoresBanker = 0;
ScoresPlayer = ScoresPlayer + ScoresXlatTable[PlayerCards[0]];
ScoresPlayer = ScoresPlayer + ScoresXlatTable[PlayerCards[1]];
if (IsCard3Player) {
ScoresPlayer = ScoresPlayer + ScoresXlatTable[PlayerCards[2]];
}
ScoresBanker = ScoresBanker + ScoresXlatTable[BankerCards[0]];
ScoresBanker = ScoresBanker + ScoresXlatTable[BankerCards[1]];
if (IsCard3Banker) {
ScoresBanker = ScoresBanker + ScoresXlatTable[BankerCards[2]];
}
ShortScoresPlayer = ScoresPlayer % 10;
ShortScoresBanker = ScoresBanker % 10;
}
function FindCombo() {
IsValidCombo = false;
while (!IsValidCombo) {
ClearRandomCards();
PlayerCards[0] = FindRandomCard();
PlayerCards[1] = FindRandomCard();
BankerCards[0] = FindRandomCard();
BankerCards[1] = FindRandomCard();
IsCard3Player = false;
IsCard3Banker = false;
CalcScores();
if ((((ShortScoresPlayer == 8) || (ShortScoresPlayer == 9)) || (ShortScoresBanker == 8)) || (ShortScoresBanker == 9)) {
} else {
if (ShortScoresPlayer <= 5) {
PlayerCards[2] = FindRandomCard();
IsCard3Player = true;
}
if (!IsCard3Player) {
if (ShortScoresBanker <= 5) {
BankerCards[2] = FindRandomCard();
IsCard3Banker = true;
}
} else {
var _local1 = ScoresXlatTable[PlayerCards[2]];
if (((((ShortScoresBanker <= 2) or ((ShortScoresBanker == 3) and (_local1 != 8))) or (((ShortScoresBanker == 4) and (_local1 >= 2)) and (_local1 <= 7))) or (((ShortScoresBanker == 5) and (_local1 >= 4)) and (_local1 <= 7))) or (((ShortScoresBanker == 6) and (_local1 >= 6)) and (_local1 <= 7))) {
BankerCards[2] = FindRandomCard();
IsCard3Banker = true;
}
}
}
CalcScores();
IsValidCombo = false;
if ((WinOn == BO_BANKER) and (ShortScoresBanker > ShortScoresPlayer)) {
IsValidCombo = true;
}
if ((WinOn == BO_PLAYER) and (ShortScoresBanker < ShortScoresPlayer)) {
IsValidCombo = true;
}
if ((WinOn == BO_TIE) and (ShortScoresBanker == ShortScoresPlayer)) {
IsValidCombo = true;
}
}
}
function CardToFrame(c) {
var _local2 = c;
if (_local2 == 53) {
return(53);
}
var _local1 = Math.floor(_local2 % 13);
var _local3 = Math.floor(_local2 / 13);
if (_local1 == 12) {
_local1 = 0;
} else {
_local1++;
}
return((1 + (_local3 * 13)) + _local1);
}
function ShowScores() {
var _local1 = 0;
var _local2 = 0;
if (Card1._visible) {
_local1 = _local1 + ScoresXlatTable[PlayerCards[0]];
}
if (Card3._visible) {
_local1 = _local1 + ScoresXlatTable[PlayerCards[1]];
}
if (Card5._visible) {
_local1 = _local1 + ScoresXlatTable[PlayerCards[2]];
}
if (Card2._visible) {
_local2 = _local2 + ScoresXlatTable[BankerCards[0]];
}
if (Card4._visible) {
_local2 = _local2 + ScoresXlatTable[BankerCards[1]];
}
if (Card6._visible) {
_local2 = _local2 + ScoresXlatTable[BankerCards[2]];
}
if (Card2._visible) {
ScoresNote = (String(_local1 % 10) add ":") add String(_local2 % 10);
} else if (Card1._visible) {
ScoresNote = String(_local1 % 10) add ":";
} else {
ScoresNote = "";
}
}
function gameWin() {
_root.won_anim.gotoAndPlay(2);
_root.PlaySound("snd_coins");
}
function gameLoose() {
_root.PlaySound("snd_loose");
}
_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_win = "Win";
sbm_clear = "Clear Bet";
sbm_deal = "Deal";
sbm_balance = "Your balance";
sbm_bt = "Your bet";
sbm_player = "Player";
sbm_banker = "Banker";
sbm_tie = "Tie 8:1";
sbm_BET = "BET";
sbm_ANTE = "ANTE";
sbm_help = "Baccarat rules\n\nShort Description\nThe objective is to wager on the hand closest to a total of 9. You may wager on either the Banker hand or the Player hand, or on a Tie bet.\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\nBetting options\nThere are three options a player may wager on: Player hand, Banker hand or Tie bet.\nCard values\nThe Player and Banker are dealt two cards each. All tens and picture cards equal zero. The Ace's equals to 1. All other cards count as their face value. If the value of cards exceed 9, then the hand value is adjusted by subtracting 10 from the total. Example:\n9+7=16 Hand counts 6;\n5+5+5=15 Hand counts 5;\n10+9=19 Hand is a 'natural' 9;\nKing+Ace+5 Hand counts 6\nWhen the Player and Banker hands are the same total, the hand is a Tie.\nThird Card Draw\nA third additional card may be dealt automatically, according to the third card rules. No hand will receive more than three cards.\nThird Card Rules\n'Natural' - If either Player hand or Banker hand totals 8-9, the hand is called 'Natural'. In this case, both the Player and the Banker must stand. If the Player hand total is - 0-5 Player hand must draw; 6-7 Player hand must stand. If the Player hand stands on two cards then two card Banker hand totaling 3,4,5 must draw and 6 must stand. After the Player hand is dealt a third card, Banker hand receives a third card according to the following rules: if the Banker hand is -\n0-2 Banker hand must draw;\n3-6 Third card to Player hand determines draw or stand;\n7 Baker hand must stand\nWhen Banker hand Totals 3-6:\non Third Players card: 3 - Draw: 1-2-3-4-5-6-7-9-0 Stand: 8\non Third Players card: 4 - Draw: 2-3-4-5-6-7 Stand: 0-1-8-9\non Third Players card: 5 - Draw: 4-5-6-7 Stand: 0-1-2-3-8-9\non Third Players card: 6 - Draw: 6-7 Stand: 0-1-2-3-4-5-8-9\non Third Players card: 7 - Banker hand must stand\non Third Players card: 8-9 - 'Natural' Banker must stand\n\nPayoff\nWinning Player hand wagers are paid 1 to 1.\nWinning Banker hand wagers are paid 1 to 1 but the player must pay a 5% commission to the house\nWinning Tie bet wagers are paid at 8 to 1.\n";
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();
NoBetedChips = 0;
ChipBetHeight = 5;
ChipBetScale = 100;
var ST_NONE = 0;
var ST_LOADING = 1;
var ST_BET = 2;
var ST_WAITSERVER = 3;
var ST_DEAL = 4;
var st;
var money;
var bet;
var digits;
var currency;
var minbet;
var maxbet;
var statusAdd = "";
var ScoresXlatTable = new Array(2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 10, 11, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 10, 11, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 10, 11, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 10, 11);
var PlayerCards = [0, 0, 0];
var BankerCards = [0, 0, 0];
var IsCard3Player = false;
var IsCard3Banker = false;
var ScoresPlayer = 0;
var ScoresBanker = 0;
var ShortScoresPlayer = 0;
var ShortScoresBanker = 0;
var BO_PLAYER = 0;
var BO_TIE = 1;
var BO_BANKER = 2;
var bets = Array();
var vars = new Object();
LeavedCards = new Array();
BetOnX = Array(257, 385, 502);
BetOnY = Array(86, 65, 44);
gameInit();
Instance of Symbol 150 MovieClip "debug_win" in Frame 5
onClipEvent (enterFrame) {
if (((Key.isDown(8) && (Key.isDown(17))) && (Key.isDown(16))) && (Key.isDown(18))) {
_root.debug_btn._visible = 1;
_root.debug = 1;
}
}
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 103 Button
on (release) {
_root.PlaySound("snd_click");
getURL (_root.update_url, "_blank");
}
Symbol 106 MovieClip [HelpContent] Frame 1
this.thelp.text = _root.sbm_help;
Symbol 111 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 113 MovieClip [HelpShareware] Frame 1
this.thelp.text = _root.sbm_help;
Instance of Symbol 89 MovieClip [FScrollBarSymbol] "sbd" in Symbol 150 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
_targetInstanceName = "dta";
horizontal = false;
}
Symbol 153 Button
on (release) {
debug_win._visible = !debug_win._visible;
}
Symbol 155 Button
on (press) {
_root.rules_win.startdrag(false, -10000, -10000, 10000, 10000);
}
on (release) {
stopDrag();
}
Symbol 159 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++;
}
}
Symbol 162 MovieClip Frame 1
this._visible = false;
Instance of Symbol 98 MovieClip [FScrollPaneSymbol] in Symbol 162 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
scrollContent = "HelpShareware";
hScroll = "false";
vScroll = "auto";
dragContent = true;
}
Symbol 168 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++;
}
}
Symbol 169 MovieClip Frame 1
this._visible = false;
Instance of Symbol 98 MovieClip [FScrollPaneSymbol] in Symbol 169 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
scrollContent = "HelpContent";
hScroll = "false";
vScroll = "auto";
dragContent = true;
}
Symbol 303 MovieClip Frame 1
stop();
Symbol 337 MovieClip Frame 20
gotoAndPlay (2);
Symbol 342 Button
on (release) {
if (_root.st != _root.ST_BET) {
return(undefined);
}
if (Number(_root.bet) == 0) {
return(undefined);
}
if (!_root.isLiveConnection()) {
return(undefined);
}
_root.PlaySound("snd_click");
_root.Deal();
}
on (rollOver) {
this._alpha = 100;
if (_root.st != _root.ST_BET) {
return(undefined);
}
if (Number(_root.bet) == 0) {
return(undefined);
}
}
on (rollOut, dragOut) {
this._alpha = _defaultalpha;
}
on (press) {
if (_root.st != _root.ST_BET) {
return(undefined);
}
}
Symbol 343 Button
on (release) {
if (_root.st != _root.ST_BET) {
return(undefined);
}
if (Number(_root.bet) > 0) {
_root.RemoveBets();
}
}
on (rollOver) {
this._alpha = 100;
}
on (rollOut, dragOut) {
this._alpha = _defaultalpha;
}
Symbol 350 Button
on (release) {
getURL (_root.update_url, "_blank");
}
Symbol 354 MovieClip Frame 6
stop();
Symbol 358 MovieClip Frame 6
stop();
Symbol 380 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 394 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 410 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 424 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 426 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 427 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 450 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 452 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 466 Button
on (release) {
_root.PutBet(1);
}
on (rollOver) {
_root.panel._alpha = 100;
}
on (rollOut, dragOut) {
_root.panel._alpha = _root.panel._defaultalpha;
}
Symbol 472 Button
on (release) {
_root.PutBet(2);
}
on (rollOver) {
_root.panel._alpha = 100;
}
on (rollOut, dragOut) {
_root.panel._alpha = _root.panel._defaultalpha;
}
Symbol 478 Button
on (release) {
_root.PutBet(3);
}
on (rollOver) {
_root.panel._alpha = 100;
}
on (rollOut, dragOut) {
_root.panel._alpha = _root.panel._defaultalpha;
}
Symbol 484 Button
on (release) {
_root.PutBet(4);
}
on (rollOver) {
_root.panel._alpha = 100;
}
on (rollOut, dragOut) {
_root.panel._alpha = _root.panel._defaultalpha;
}
Symbol 490 Button
on (release) {
_root.PutBet(14);
}
on (rollOver) {
_root.panel._alpha = 100;
}
on (rollOut, dragOut) {
_root.panel._alpha = _root.panel._defaultalpha;
}
Symbol 496 Button
on (release) {
_root.PutBet(13);
}
on (rollOver) {
_root.panel._alpha = 100;
}
on (rollOut, dragOut) {
_root.panel._alpha = _root.panel._defaultalpha;
}
Symbol 502 Button
on (release) {
_root.PutBet(12);
}
on (rollOver) {
_root.panel._alpha = 100;
}
on (rollOut, dragOut) {
_root.panel._alpha = _root.panel._defaultalpha;
}
Symbol 508 Button
on (release) {
_root.PutBet(11);
}
on (rollOver) {
_root.panel._alpha = 100;
}
on (rollOut, dragOut) {
_root.panel._alpha = _root.panel._defaultalpha;
}
Symbol 516 Button
on (release) {
_root.PutBet(10);
}
on (rollOver) {
_root.panel._alpha = 100;
}
on (rollOut, dragOut) {
_root.panel._alpha = _root.panel._defaultalpha;
}
Symbol 523 Button
on (release) {
_root.PutBet(9);
}
on (rollOver) {
_root.panel._alpha = 100;
}
on (rollOut, dragOut) {
_root.panel._alpha = _root.panel._defaultalpha;
}
Symbol 530 Button
on (release) {
_root.PutBet(8);
}
on (rollOver) {
_root.panel._alpha = 100;
}
on (rollOut, dragOut) {
_root.panel._alpha = _root.panel._defaultalpha;
}
Symbol 537 Button
on (release) {
_root.PutBet(7);
}
on (rollOver) {
_root.panel._alpha = 100;
}
on (rollOut, dragOut) {
_root.panel._alpha = _root.panel._defaultalpha;
}
Symbol 544 Button
on (release) {
_root.PutBet(6);
}
on (rollOver) {
_root.panel._alpha = 100;
}
on (rollOut, dragOut) {
_root.panel._alpha = _root.panel._defaultalpha;
}
Symbol 552 Button
on (release) {
_root.PutBet(5);
}
on (rollOver) {
_root.panel._alpha = 100;
}
on (rollOut, dragOut) {
_root.panel._alpha = _root.panel._defaultalpha;
}
Symbol 554 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 560 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 563 Button
on (release) {
_root.betPressed(2);
}
Symbol 564 Button
on (release) {
_root.betPressed(1);
}
Symbol 565 Button
on (release) {
_root.betPressed(0);
}