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 = "roulette/table0";
}
debug = 0;
} else if (shareware != 1) {
}
}
game_name = "Sexy girl roulette";
game_id = "Sexy girl roulette";
_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 showHighLight(a) {
var _local2 = a;
var _local3 = _root;
var _local1 = 0;
while (_local1 < NO_HIGHLIGHT) {
_local3.tablica.pole["h" add _local1]._visible = false;
_local1++;
}
_local1 = 0;
while (_local1 < _local2.length) {
_local3.tablica.pole["h" add _local2[_local1]]._visible = true;
_local3.tablica.pole["h" add _local2[_local1]]._alpha = 50;
_local1++;
}
}
function initHighlights() {
var FIRST_C = 34;
var _local2 = FIRST_C;
while (_local2 < (FIRST_C + 168)) {
var _local3 = (FIRST_C - 14) + ((_local2 - FIRST_C) % 14);
var plus = ((Math.floor((_local2 - FIRST_C) / 14) * 3) + 3);
highlightBets[_local2] = new Array();
var _local1 = 0;
while (_local1 < highlightBets[_local3].length) {
highlightBets[_local2][_local1] = highlightBets[_local3][_local1] + plus;
_local1++;
}
_local2++;
}
}
function calcBetNo(x, y) {
return((RUL_FIRST_LINEAR_BET + (x * 7)) + y);
}
function winningBets(bets, n) {
var _local2 = n;
var _local3 = bets;
var _local1 = new Array();
i = 0;
while (i < RUL_NO_BETS) {
_local1[i] = _local3[i];
i++;
}
var nRed = [1, 3, 5, 7, 9, 12, 14, 16, 18, 19, 21, 23, 25, 27, 30, 32, 34, 36];
var nBlack = [2, 4, 6, 8, 10, 11, 13, 15, 17, 20, 22, 24, 26, 28, 29, 31, 33, 35];
var inRed = false;
var inBlack = false;
i = 0;
while (i < 18) {
if (nRed[i] == _local2) {
inRed = true;
}
if (nBlack[i] == _local2) {
inBlack = true;
}
i++;
}
if (inRed) {
_local1[RUL_BET_RED] = _local1[RUL_BET_RED] * 2;
}
if (inBlack) {
_local1[RUL_BET_BLACK] = _local1[RUL_BET_BLACK] * 2;
}
if ((_local2 >= 1) && (_local2 <= 18)) {
_local1[RUL_BET_LOW] = _local1[RUL_BET_LOW] * 2;
}
if ((_local2 >= 19) && (_local2 <= 36)) {
_local1[RUL_BET_HIGH] = _local1[RUL_BET_HIGH] * 2;
}
if (((_local2 % 2) == 0) && (_local2 != 0)) {
_local1[RUL_BET_EVEN] = _local1[RUL_BET_EVEN] * 2;
}
if ((_local2 % 2) == 1) {
_local1[RUL_BET_ODD] = _local1[RUL_BET_ODD] * 2;
}
if ((_local2 % 3) == 1) {
_local1[RUL_BET_COL_1] = _local1[RUL_BET_COL_1] * 3;
}
if ((_local2 % 3) == 2) {
_local1[RUL_BET_COL_2] = _local1[RUL_BET_COL_2] * 3;
}
if (((_local2 % 3) == 0) && (_local2 != 0)) {
_local1[RUL_BET_COL_3] = _local1[RUL_BET_COL_3] * 3;
}
if ((Math.floor((_local2 - 1) / 12) == 0) && (_local2 != 0)) {
_local1[RUL_BET_DOZEN_1] = _local1[RUL_BET_DOZEN_1] * 3;
}
if (Math.floor((_local2 - 1) / 12) == 1) {
_local1[RUL_BET_DOZEN_2] = _local1[RUL_BET_DOZEN_2] * 3;
}
if (Math.floor((_local2 - 1) / 12) == 2) {
_local1[RUL_BET_DOZEN_3] = _local1[RUL_BET_DOZEN_3] * 3;
}
if (_local2 > 0) {
x_cell = Math.floor((_local2 - 1) / 3) * 2;
y_cell = Math.floor((_local2 - 1) % 3) * 2;
if (x_cell > 0) {
_local1[calcBetNo(x_cell + 0, y_cell + 1)] = _local1[calcBetNo(x_cell + 0, y_cell + 1)] * 18;
_local1[calcBetNo(x_cell + 0, 0)] = _local1[calcBetNo(x_cell + 0, 0)] * 6;
_local1[calcBetNo(x_cell + 0, 6)] = _local1[calcBetNo(x_cell + 0, 6)] * 6;
if (y_cell > 0) {
_local1[calcBetNo(x_cell + 0, y_cell + 0)] = _local1[calcBetNo(x_cell + 0, y_cell + 0)] * 9;
}
if (y_cell < 4) {
_local1[calcBetNo(x_cell + 0, y_cell + 2)] = _local1[calcBetNo(x_cell + 0, y_cell + 2)] * 9;
}
} else {
_local1[calcBetNo(x_cell + 0, y_cell + 1)] = _local1[calcBetNo(x_cell + 0, y_cell + 1)] * 18;
_local1[calcBetNo(x_cell + 0, 0)] = _local1[calcBetNo(x_cell + 0, 0)] * 9;
_local1[calcBetNo(x_cell + 0, 6)] = _local1[calcBetNo(x_cell + 0, 6)] * 9;
if (y_cell > 0) {
_local1[calcBetNo(x_cell + 0, y_cell + 0)] = _local1[calcBetNo(x_cell + 0, y_cell + 0)] * 12;
}
if (y_cell < 4) {
_local1[calcBetNo(x_cell + 0, y_cell + 2)] = _local1[calcBetNo(x_cell + 0, y_cell + 2)] * 12;
}
}
_local1[calcBetNo(x_cell + 1, y_cell + 1)] = _local1[calcBetNo(x_cell + 1, y_cell + 1)] * 36;
_local1[calcBetNo(x_cell + 1, 0)] = _local1[calcBetNo(x_cell + 1, 0)] * 12;
_local1[calcBetNo(x_cell + 1, 6)] = _local1[calcBetNo(x_cell + 1, 6)] * 12;
if (y_cell > 0) {
_local1[calcBetNo(x_cell + 1, y_cell + 0)] = _local1[calcBetNo(x_cell + 1, y_cell + 0)] * 18;
}
if (y_cell < 4) {
_local1[calcBetNo(x_cell + 1, y_cell + 2)] = _local1[calcBetNo(x_cell + 1, y_cell + 2)] * 18;
}
if (x_cell < 22) {
_local1[calcBetNo(x_cell + 2, y_cell + 1)] = _local1[calcBetNo(x_cell + 2, y_cell + 1)] * 18;
_local1[calcBetNo(x_cell + 2, 0)] = _local1[calcBetNo(x_cell + 2, 0)] * 6;
_local1[calcBetNo(x_cell + 2, 6)] = _local1[calcBetNo(x_cell + 2, 6)] * 6;
if (y_cell > 0) {
_local1[calcBetNo(x_cell + 2, y_cell + 0)] = _local1[calcBetNo(x_cell + 2, y_cell + 0)] * 9;
}
if (y_cell < 4) {
_local1[calcBetNo(x_cell + 2, y_cell + 2)] = _local1[calcBetNo(x_cell + 2, y_cell + 2)] * 9;
}
}
} else {
_local1[RUL_BET_ZERO] = _local1[RUL_BET_ZERO] * 36;
_local1[calcBetNo(0, 0)] = _local1[calcBetNo(0, 0)] * 9;
_local1[calcBetNo(0, 1)] = _local1[calcBetNo(0, 1)] * 18;
_local1[calcBetNo(0, 2)] = _local1[calcBetNo(0, 2)] * 12;
_local1[calcBetNo(0, 3)] = _local1[calcBetNo(0, 3)] * 18;
_local1[calcBetNo(0, 4)] = _local1[calcBetNo(0, 4)] * 12;
_local1[calcBetNo(0, 5)] = _local1[calcBetNo(0, 5)] * 18;
_local1[calcBetNo(0, 6)] = _local1[calcBetNo(0, 6)] * 9;
}
i = 0;
while (i < RUL_NO_BETS) {
if (_local1[i] == _local3[i]) {
_local1[i] = 0;
}
i++;
}
return(_local1);
}
function GetNum(a) {
var _local1 = a;
if (_local1 != Math.round(_local1)) {
return(_local1);
}
return(_local1 add ".0");
}
function gameInit() {
var _local1 = _root;
_local1.debug_win._visible = false;
trace("_root.debug_win._visible " + _local1.debug_win._visible);
_local1.debug_btn._visible = false;
_local1.rules_win_shareware._visible = false;
_local1.rules_win_template._visible = false;
_local1.helpContent._visible = false;
_local1.helpContent._visible = false;
_local1.helpShareware._visible = false;
commonGameInit();
st = ST_NONE;
bet = 0;
_local1.roulette_clip.roulette_ball._visible = false;
_local1.hint_bet_template.duplicateMovieClip("hint_bet", 20000);
_local1.hint_bet._visible = false;
_local1.palkan.stop();
initHighlights();
_local1.showHighLight([]);
OldSelectedChip = 0;
SelectedChip = 0;
_local1.onMouseMove = function () {
var _local1 = _root;
if ((_local1._ymouse > 380) || ((_local1._ymouse < 35) && (_local1._xmouse > 700))) {
if ((SelectedChip != 0) and was_on_top_flag) {
SelectedChip = 0;
ShowSelectedChip();
}
was_on_top_flag = false;
} else {
was_on_top_flag = true;
}
};
}
function gameProcess() {
var _local1 = _root;
panel._defaultalpha = 100;
panel._alpha = panel._defaultalpha;
onlineValidator();
if (st == ST_NONE) {
i = 0;
while (i <= 7) {
_local1["log_" add i].setN(random(37));
i++;
}
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_SPIN) {
processSpin();
} else if (st == ST_OUTGOING) {
processOutgoing();
}
if ((--cntt) <= 0) {
cash_out.StopCash();
}
}
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;
_local1.SelectedChip = betnum;
_local1.ShowSelectedChip();
_local1.PlaySound("snd_click");
}
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 DisplayBetHint(b) {
var _local1 = _root;
var _local2 = b;
if (_local2 >= 0) {
text = ((((_local1.tablica.pole["bet_" add _local2].hint add " - ") add formMoneyWithCurrency(_local1.tablica.pole["bet_" add _local2].volume)) add ", payment ") add _local1.tablica.pole["bet_" add _local2].pays) add ":1";
_local1.hint_bet.text = text;
if (st >= ST_BET) {
_local1.hint_bet._visible = true;
}
_local1.showHighlight(_local1.highlightBets[_local2]);
} else {
_local1.hint_bet._visible = false;
_local1.showHighlight([]);
}
}
function DisplayBets() {
var _local2 = _root;
RemoveChipsFromBet();
var _local1 = 0;
while (_local1 < NO_BET) {
if (_local2.tablica.pole["bet_" add _local1].volume > 0) {
var _local3 = new Object();
_local3.x = _local2.tablica.pole["bet_" add _local1]._x;
_local3.y = _local2.tablica.pole["bet_" add _local1]._y;
_local2.tablica.pole.localToGlobal(_local3);
_local2.tablica.pole["bet_" add _local1].firstChip = NoBetedChips;
BuildBetColumn(_local3.x, _local3.y, _local2.tablica.pole["bet_" add _local1].volume);
_local2.tablica.pole["bet_" add _local1].noChips = NoBetedChips - _local2.tablica.pole["bet_" add _local1].firstChip;
}
_local1++;
}
}
function AddToBet(b) {
var _local2 = _root;
var _local3 = b;
if (st != ST_BET) {
} else {
statusAdd = "";
_local2.PlaySound("snd_click");
if ((SelectedChip == 0) && (_local2.tablica.pole["bet_" add _local3].volume > 0)) {
var Delta = _local2.tablica.pole["bet_" add _local3].volume;
money = money + Delta;
bet = bet - Delta;
_local2.tablica.pole["bet_" add _local3].volume = _local2.tablica.pole["bet_" add _local3].volume - Delta;
} else {
var TempChip = SelectedChip;
if (SelectedChip == 0) {
TempChip = 5;
}
var _local1 = coin_val[TempChip - 1];
if ((_local2.tablica.pole["bet_" add _local3].volume + _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 " add String(maxbet));
} else {
_local2.tablica.pole["bet_" add _local3].volume = _local2.tablica.pole["bet_" add _local3].volume + _local1;
money = money - _local1;
bet = bet + _local1;
SelectedChip = 0;
trace("SelectedChip " + SelectedChip);
PutMessage(("Your bet is " add Math.round(bet)) add " chips");
}
}
DisplayBetHint(_local3);
DisplayBets();
ShowSelectedChip();
_local2.displayMoneyAndBet();
_local2.was_on_top_flag = false;
}
}
function RemoveBets() {
var _local1 = _root;
if (st != ST_BET) {
} else {
statusAdd = "";
_local1.PlaySound("snd_click");
i = 0;
while (i < NO_BET) {
bet = bet - _local1.tablica.pole["bet_" add i].volume;
money = money + _local1.tablica.pole["bet_" add i].volume;
_local1.tablica.pole["bet_" add i].volume = 0;
i++;
}
bet = round10000(bet);
DisplayBets();
_local1.displayMoneyAndBet();
}
}
function Rebet() {
var _local2 = _root;
if (st != ST_BET) {
} else {
statusAdd = "";
_local2.PlaySound("snd_click");
i = 0;
while (i < NO_BET) {
if (((BetPrev[i] > 0) && (BetPrev[i] <= maxbet)) && (_local2.tablica.pole["bet_" add i].volume == 0)) {
var _local1 = BetPrev[i] - _local2.tablica.pole["bet_" add i].volume;
if (money >= _local1) {
money = money - _local1;
bet = bet + _local1;
_local2.tablica.pole["bet_" add i].volume = _local2.tablica.pole["bet_" add i].volume + _local1;
}
}
i++;
}
DisplayBets();
_local2.displayMoneyAndBet();
}
}
function PutMessage(m) {
MessageLog = m add newline;
}
function putLog(n) {
var _local1 = _root;
i = 7;
while (i > 0) {
_local1["log_" add i].setN(_local1["log_" add (i - 1)].n);
i--;
}
_local1.log_0.setN(n);
}
function Spin() {
var _local1 = _root;
if (((!spinning) && (bet > 0)) && (st == ST_BET)) {
PlaySound("snd_click");
st = ST_WAITSERVER;
_local1.palkan.play();
_local1.roulette_clip.roulette_ball._visible = false;
_local1.cond = 2;
_local1.PlaySound("snd_click");
_local1.a_ball = -0.05;
_local1.a_roulette = 0.0045;
_local1.v0_ball = 15;
_local1.v0_roulette = -1.5;
_local1.v_ball_down = 0.2 * v0_ball;
_local1.v_ball_jump = 0.05 * v0_ball;
_local1.v_ball_stop = 0 * v0_ball;
_local1.ball_popravka = -5;
_local1.NO_BALL_JUMPS = 2;
_local1.is_ball_jumps = false;
if (online) {
var bets = "";
b = 0;
while (b < NO_BET) {
if (bets != "") {
bets = bets + ",";
}
bets = bets + _local1.tablica.pole["bet_" add b].volume;
b++;
}
connection_ToServer({type:"gambling", bet:bet, bets:bets});
} else {
var _local3 = random(37);
var bets = new Array();
i = 0;
while (i < NO_BET) {
bets[i] = _local1.tablica.pole["bet_" add i].volume;
i++;
}
winbets = winningBets(bets, _local3);
var _local2 = "";
var sigma0 = 0;
var sigma = 0;
i = 0;
while (i < NO_BET) {
if (i > 0) {
_local2 = _local2 add ",";
}
sigma0 = sigma0 + Number(bets[i]);
sigma = sigma + Number(winbets[i]);
_local2 = _local2 add winbets[i];
i++;
}
var income = (sigma - sigma0);
vars.income = income;
vars.balance = (money + bet) + income;
vars.need_sector = _local3;
vars.wbets = _local2;
if (income < 0) {
vars.result = 2;
vars.message = (_local1.sbm_loss_pref add formMoneyWithCurrency(-income)) add _local1.sbm_loss_suff;
} else if (income > 0) {
vars.result = 1;
vars.message = (_local1.sbm_win_pref add formMoneyWithCurrency(income)) add _local1.sbm_win_suff;
} else {
vars.result = 2;
vars.message = _local1.sbm_keep;
}
var nRed = [1, 3, 5, 7, 9, 12, 14, 16, 18, 19, 21, 23, 25, 27, 30, 32, 34, 36];
var nBlack = [2, 4, 6, 8, 10, 11, 13, 15, 17, 20, 22, 24, 26, 28, 29, 31, 33, 35];
var inRed = false;
var inBlack = false;
i = 0;
while (i < 18) {
if (nRed[i] == _local3) {
inRed = true;
}
if (nBlack[i] == _local3) {
inBlack = true;
}
i++;
}
if (inRed) {
tcolor = ", red. ";
} else if (inBlack) {
tcolor = ", black. ";
} else {
tcolor = ", zero. ";
}
vars.message = (String(_local3) add tcolor) add vars.message;
}
}
}
function processWaitServer() {
if (online) {
x0_roulette = x0_roulette + v0_roulette;
_root.roulette_clip.roulette_n._rotation = x0_roulette;
} else {
processDataFromServer();
}
}
function processDataFromServer() {
var _local1 = _root;
_local1.roulette_clip.roulette_ball._visible = true;
_local1.need_sector = roulette_back_n[vars.need_sector];
_local1.need_delta_angle = wheelAngles[need_sector] + ball_popravka;
DebugOutput("NeedSector: " add vars.need_sector);
_local1.t0 = (-v0_ball) / (2 * a_ball);
_local1.x0_ball = ((((x0_roulette + (v0_roulette * t0)) + ((a_roulette * t0) * t0)) + need_delta_angle) - (v0_ball * t0)) - ((a_ball * t0) * t0);
_local1.t = 0;
st = ST_SPIN;
}
function ProcessSpin() {
var _local1 = _root;
var roulette_speed = (v0_roulette + ((2 * a_roulette) * t));
var _local2 = v0_ball + ((2 * a_ball) * t);
var _local3 = (((a_roulette * t) * t) + (v0_roulette * t)) + x0_roulette;
var ball_angle = ((((a_ball * t) * t) + (v0_ball * t)) + x0_ball);
if (_local2 > v_ball_down) {
ball_y = 0;
} else if (_local2 > v_ball_jump) {
ball_y = 1 - ((_local2 - v_ball_jump) / (v_ball_down - v_ball_jump));
} else if (_local2 > v_ball_stop) {
is_ball_jumps = true;
ball_y = 1;
var x = ((_local2 - v_ball_stop) / (v_ball_jump - v_ball_stop));
ball_y = ball_y + (0.1 - ((0.1 * Math.cos(((x * 2) * Math.PI) * NO_BALL_JUMPS)) / (1 + (2 * x))));
ball_y_0 = ball_y;
if ((ball_y_0 > ball_y_1) and (ball_y_2 > ball_y_1)) {
_local1.PlaySound("snd_ball_kick");
}
ball_y_2 = ball_y_1;
ball_y_1 = ball_y_0;
} else {
ball_y = 1;
ball_angle = _local3 + need_delta_angle;
}
_local1.roulette_clip.roulette_n._rotation = _local3;
_local1.roulette_clip.roulette_ball._rotation = ball_angle;
_local1.roulette_clip.roulette_ball.gotoAndStop(1 + Math.floor(ball_y * 45));
if (roulette_speed >= 0) {
x0_roulette = _local3;
as = vars.wbets.split(",");
i = 0;
while (i < NO_BET) {
_local1.BetPrev[i] = _local1.tablica.pole["bet_" add i].volume;
_local1.as[i] = Number(_local1.as[i]);
if (as[i] > 0) {
_local1.tablica.pole["bet_" add i].volume = as[i];
}
i++;
}
putLog(vars.need_sector);
statusAdd = vars.message;
PutMessage(vars.message);
if (vars.balance > (money + bet)) {
gameWin();
} else {
gameLoose();
}
bet = 0;
money = Number(vars.balance);
DisplayBets();
_local1.displayMoneyAndBet();
_local1.MAX_OUT_T = 1;
_local1.MAX_OUT_ST = 20;
_local1.OUT_WIN_X = -100;
_local1.OUT_WIN_Y = 120;
_local1.OUT_LOSS_X = 0;
_local1.OUT_LOSS_Y = -150;
_local1.out_bet = -1;
_local1.out_t = 0;
st = ST_OUTGOING;
_local1.palkan.stop();
} else {
t++;
if ((!is_ball_jumps) and ((t % 3) == 0)) {
_local1.PlaySound("snd_rotary");
}
}
}
function processOutgoing() {
var _local3 = _root;
var st = (out_t % MAX_OUT_ST);
var alpha = (50 - ((st / MAX_OUT_ST) * 50));
var _local2 = 0;
while (_local2 < NO_BET) {
var _local1 = 0;
while (_local1 < _local3.tablica.pole["bet_" add _local2].noChips) {
NewClipName = "BetedChip" + String(_local3.tablica.pole["bet_" add _local2].firstChip + _local1);
if (as[_local2] == 0) {
_local3[NewClipName]._alpha = alpha;
}
_local1++;
}
_local2++;
}
out_t++;
if (out_t >= (MAX_OUT_T * MAX_OUT_ST)) {
money = Number(vars.balance);
bet = 0;
var _local1 = 0;
while (_local1 < NO_BET) {
_local3.tablica.pole["bet_" add _local1].volume = 0;
_local1++;
}
DisplayBets();
_local3.displayMoneyAndBet();
_local3.st = _local3.ST_BET;
ShowSelectedChip();
}
}
function gameWin() {
var _local1 = _root;
_local1.kust.win_anim.gotoAndPlay(2);
_local1.won_anim.gotoAndPlay(2);
_local1.PlaySound("snd_coins");
_local1.flower.gotoAndPlay(2);
_local1.flower2.gotoAndPlay(2);
}
function gameLoose() {
_root.PlaySound("snd_loose");
}
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();
var wheelAngles = [0, 9.7, 19.5, 29.2, 38.9, 48.6, 58.4, 68.1, 77.8, 87.6, 97.3, 107, 116.8, 126.5, 136.2, 145.9, 155.7, 165.4, 175.1, 184.9, 194.6, 204.3, 214.1, 223.8, 233.5, 243.2, 253, 262.7, 272.4, 282.2, 291.9, 301.6, 311.4, 321.1, 330.8, 340.5, 350.3];
_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_rebet = "Rebet";
sbm_spin = "Spin";
sbm_help = "There are several types of bets that can be placed on the Roulette table:\nThe Straight Bet - This is a bet on any single number and odds of 35-1 are paid on a winning number.\nThe Column Bet - This bet is placed on any of the three columns of twelve numbers running along the table. The odds are 2-1 for a winning bet. If 0 comes up, the column bets lose.\nThe Dozens Bet - This bet is placed on the outside boxes marked 1st, 2nd and 3rd 12. The player will bet on numbers 1 to 12, numbers 13 to 24 and/or numbers 25 to 36. The odds are 2-1 for a winning bet.\n If 0 comes up the dozens bets lose.\nBlack or Red Bet - A player can bet on either a black or red number coming up. The odds here are even (1-1). If 0 comes up the black and red bets lose.\nOdd or Even Bet - A player can bet on either an odd or even number coming up. The odds here are even (1-1). Again, if 0 comes up the odd and even bets lose.\nHigh or Low Number Bet - The player can bet on the high box (1 to 18) or the low box (19 to 36). The odds are even (1-1) for the winning bet. If 0 comes up the high and low bets lose.\nThe Two Number or Split Bet - A player may place a bet on any line that divides any two adjacent numbers. The bet is that either of those two numbers will come up. The odds are 17-1.\nThe Row or Street Bet - A player can bet on the three numbers in a row on the table by placing the bet/chip(s) on the outside of that row. The bet is that one of the three numbers will come up. The odds are 11-1.\nThe Corner or Square Bet - The bet is placed on the intersection of four numbers. The bet is that one of these four numbers will come up. The odds are 8-1 for a winning number.\nThe Six Number Bet - This bet is placed on the outside of the line that splits two rows of numbers. This will cover all six numbers. The bet is that one of the six numbers will come up. The odds here are 5-1 for a winning number.\nWhen you run short of money you can use button with $ image to add some more. You can also use button to get more games.";
NoBetedChips = 0;
ChipBetHeight = 2;
ChipBetScale = 60;
var NO_HIGHLIGHT = 49;
var highlightBets = new Array([0], [37, 1, 4, 7, 10, 13, 16, 19, 22, 25, 28, 31, 34], [38, 2, 5, 8, 11, 14, 17, 20, 23, 26, 29, 32, 35], [39, 3, 6, 9, 12, 15, 18, 21, 24, 27, 30, 33, 36], [40, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], [41, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24], [42, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36], [43, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18], [44, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32, 34, 36], [45, 1, 3, 5, 7, 9, 12, 14, 16, 18, 19, 21, 23, 25, 27, 30, 32, 34, 36], [46, 2, 4, 6, 8, 10, 11, 13, 15, 17, 20, 22, 24, 26, 28, 29, 31, 33, 35], [47, 1, 3, 5, 7, 9, 11, 13, 15, 1, 19, 21, 23, 25, 27, 29, 31, 33, 35], [48, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36], [0, 1, 2, 3], [0, 1], [0, 1, 2], [0, 2], [0, 2, 3], [0, 3], [0, 1, 2, 3], [1, 2, 3], [1], [1, 2], [2], [2, 3], [3], [1, 2, 3], [1, 2, 3, 4, 5, 6], [1, 4], [1, 2, 4, 5], [2, 5], [2, 3, 5, 6], [3, 6], [1, 2, 3, 4, 5, 6]);
var RUL_NO_BETS = 181;
var RUL_BET_ZERO = 0;
var RUL_BET_COL_1 = 1;
var RUL_BET_COL_2 = 2;
var RUL_BET_COL_3 = 3;
var RUL_BET_DOZEN_1 = 4;
var RUL_BET_DOZEN_2 = 5;
var RUL_BET_DOZEN_3 = 6;
var RUL_BET_LOW = 7;
var RUL_BET_EVEN = 8;
var RUL_BET_RED = 9;
var RUL_BET_BLACK = 10;
var RUL_BET_ODD = 11;
var RUL_BET_HIGH = 12;
var RUL_FIRST_LINEAR_BET = 13;
var ST_NONE = 0;
var ST_LOADING = 1;
var ST_BET = 2;
var ST_WAITSERVER = 3;
var ST_SPIN = 4;
var ST_OUTGOING = 5;
var st;
var money;
var bet;
var digits;
var currency;
var minbet;
var maxbet;
var statusAdd = "";
var BET_SCREEN_X = -125;
var BET_SCREEN_Y = -90;
var BET_SCREEN_DX = 10.5;
var BET_SCREEN_DY = 22.5;
var NO_BET = 181;
var FIRST_LINEAR_BET = 13;
roulette_n = new Array(0, 15, 19, 4, 21, 2, 25, 17, 34, 6, 27, 13, 36, 11, 30, 8, 23, 10, 5, 24, 16, 33, 1, 20, 14, 31, 9, 22, 18, 29, 7, 28, 12, 35, 3, 26, 32);
roulette_back_n = new Array();
i = 0;
while (i < 37) {
roulette_back_n[roulette_n[i]] = i;
i++;
}
var BetPrev = new Array();
var wheelAngles = [2, 12.7, 21.5, 31.2, 40.9, 51.6, 61.4, 70.1, 78.8, 88.6, 98.3, 108, 117.8, 127.5, 136.2, 145.9, 155.7, 165.4, 175.1, 185.9, 196.6, 207.3, 217.1, 226.8, 236.5, 246.2, 255, 264.7, 275.4, 285.2, 294.9, 304.6, 315.4, 325.1, 332.8, 342.5, 353.3];
gameInit();
Instance of Symbol 133 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;
}
}
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;
}
Instance of Symbol 389 MovieClip "hint_bet_template" in Frame 5
onClipEvent (mouseMove) {
_root.hint_bet._x = _root._xmouse;
_root.hint_bet._y = _root._ymouse;
}
Frame 6
gameProcess();
Frame 7
gameProcess();
gotoAndPlay (6);
Symbol 9 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 22 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 32 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 41 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 42 MovieClip [UpArrow] Frame 1
stop();
Symbol 42 MovieClip [UpArrow] Frame 2
stop();
Symbol 42 MovieClip [UpArrow] Frame 3
stop();
Symbol 48 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 55 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 61 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 62 MovieClip [ScrollThumb] Frame 1
stop();
Symbol 70 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 78 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 86 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 87 MovieClip [DownArrow] Frame 1
stop();
Symbol 87 MovieClip [DownArrow] Frame 2
stop();
Symbol 87 MovieClip [DownArrow] Frame 3
stop();
Symbol 90 MovieClip Frame 1
var component = _parent;
component.registerSkinElement(track_mc, "scrollTrack");
Symbol 91 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
Instance of Symbol 91 MovieClip [FScrollBarSymbol] "sbd" in Symbol 133 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
_targetInstanceName = "dta";
horizontal = false;
}
Symbol 136 Button
on (release) {
debug_win._visible = !debug_win._visible;
}
Symbol 138 Button
on (press) {
_root.rules_win.startdrag(false, -10000, -10000, 10000, 10000);
}
on (release) {
stopDrag();
}
Symbol 147 Button
on (release) {
_root.PlaySound("snd_click");
getURL (_root.update_url, "_blank");
}
Symbol 149 Button
on (release) {
_root.PlaySound("snd_click");
_root.rules_win._visible = false;
}
Symbol 153 MovieClip Frame 1
this._visible = false;
this.thelp.text = _root.sbm_help;
Symbol 163 Button
on (release) {
if (_root.st != _root.ST_BET) {
return(undefined);
}
_root.Rebet();
}
on (rollOver) {
this._alpha = 100;
}
on (rollOut, dragOut) {
this._alpha = _defaultalpha;
}
Symbol 165 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.Spin();
}
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 166 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 173 Button
on (release) {
getURL (_root.update_url, "_blank");
}
Symbol 177 MovieClip Frame 6
stop();
Symbol 181 MovieClip Frame 6
stop();
Symbol 203 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 217 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 233 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 247 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 251 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 253 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 254 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 275 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 277 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 291 Button
on (release) {
_root.PutBet(1);
}
on (rollOver) {
_root.panel._alpha = 100;
}
on (rollOut, dragOut) {
_root.panel._alpha = _root.panel._defaultalpha;
}
Symbol 297 Button
on (release) {
_root.PutBet(2);
}
on (rollOver) {
_root.panel._alpha = 100;
}
on (rollOut, dragOut) {
_root.panel._alpha = _root.panel._defaultalpha;
}
Symbol 303 Button
on (release) {
_root.PutBet(3);
}
on (rollOver) {
_root.panel._alpha = 100;
}
on (rollOut, dragOut) {
_root.panel._alpha = _root.panel._defaultalpha;
}
Symbol 309 Button
on (release) {
_root.PutBet(4);
}
on (rollOver) {
_root.panel._alpha = 100;
}
on (rollOut, dragOut) {
_root.panel._alpha = _root.panel._defaultalpha;
}
Symbol 315 Button
on (release) {
_root.PutBet(14);
}
on (rollOver) {
_root.panel._alpha = 100;
}
on (rollOut, dragOut) {
_root.panel._alpha = _root.panel._defaultalpha;
}
Symbol 321 Button
on (release) {
_root.PutBet(13);
}
on (rollOver) {
_root.panel._alpha = 100;
}
on (rollOut, dragOut) {
_root.panel._alpha = _root.panel._defaultalpha;
}
Symbol 327 Button
on (release) {
_root.PutBet(12);
}
on (rollOver) {
_root.panel._alpha = 100;
}
on (rollOut, dragOut) {
_root.panel._alpha = _root.panel._defaultalpha;
}
Symbol 333 Button
on (release) {
_root.PutBet(11);
}
on (rollOver) {
_root.panel._alpha = 100;
}
on (rollOut, dragOut) {
_root.panel._alpha = _root.panel._defaultalpha;
}
Symbol 341 Button
on (release) {
_root.PutBet(10);
}
on (rollOver) {
_root.panel._alpha = 100;
}
on (rollOut, dragOut) {
_root.panel._alpha = _root.panel._defaultalpha;
}
Symbol 348 Button
on (release) {
_root.PutBet(9);
}
on (rollOver) {
_root.panel._alpha = 100;
}
on (rollOut, dragOut) {
_root.panel._alpha = _root.panel._defaultalpha;
}
Symbol 355 Button
on (release) {
_root.PutBet(8);
}
on (rollOver) {
_root.panel._alpha = 100;
}
on (rollOut, dragOut) {
_root.panel._alpha = _root.panel._defaultalpha;
}
Symbol 362 Button
on (release) {
_root.PutBet(7);
}
on (rollOver) {
_root.panel._alpha = 100;
}
on (rollOut, dragOut) {
_root.panel._alpha = _root.panel._defaultalpha;
}
Symbol 369 Button
on (release) {
_root.PutBet(6);
}
on (rollOver) {
_root.panel._alpha = 100;
}
on (rollOut, dragOut) {
_root.panel._alpha = _root.panel._defaultalpha;
}
Symbol 377 Button
on (release) {
_root.PutBet(5);
}
on (rollOver) {
_root.panel._alpha = 100;
}
on (rollOut, dragOut) {
_root.panel._alpha = _root.panel._defaultalpha;
}
Symbol 379 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 385 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 400 MovieClip Frame 1
function setN(num) {
var _local1 = num;
this.n = _local1;
red_txt = "";
green_txt = "";
black_txt = "";
if (_local1 == 0) {
green_txt = "0";
} else if (isRed[_local1]) {
red_txt = _local1;
} else {
black_txt = _local1;
}
}
var isRed = new Array(0, true, false, true, false, true, false, true, false, true, false, false, true, false, true, false, true, false, true, true, false, true, false, true, false, true, false, true, false, false, true, false, true, false, true, false, true);
stop();
Symbol 437 Button
on (rollOver) {
iThisBet = this.n;
_root.DisplayBetHint(iThisBet);
}
on (rollOut) {
_root.DisplayBetHint(-1);
}
on (release) {
iThisBet = this.n;
_root.AddToBet(iThisBet);
}
Symbol 440 MovieClip Frame 1
this.bet_template._visible = false;
var i = 0;
var nbn = ("bet_" add i);
this.bet_template.duplicateMovieClip(nbn, 10000 + i);
this[nbn].n = i;
this[nbn].volume = 0;
this[nbn].hint = "zero";
this[nbn].pays = 35;
this[nbn]._x = -140;
this[nbn]._y = -25;
this[nbn]._width = 20;
this[nbn]._height = 120;
c = 0;
while (c < 3) {
i = 1 + c;
nbn = "bet_" add i;
this.bet_template.duplicateMovieClip(nbn, 10000 + i);
this[nbn].n = i;
this[nbn].volume = 0;
this[nbn].hint = "column";
this[nbn].pays = 2;
this[nbn]._x = 138;
this[nbn]._y = -68 + ((2 - c) * 45);
this[nbn]._width = 20;
this[nbn]._height = 40;
i = 4 + c;
nbn = "bet_" add i;
this.bet_template.duplicateMovieClip(nbn, 10000 + i);
this[nbn].n = i;
this[nbn].volume = 0;
this[nbn].hint = "dozen";
this[nbn].pays = 2;
this[nbn]._x = -85 + (c * 85);
this[nbn]._y = 58;
this[nbn]._width = 80;
this[nbn]._height = 13;
c++;
}
var BetNames = new Array("low", "even", "red", "black", "odd", "high");
c = 0;
while (c < 6) {
i = 7 + c;
nbn = "bet_" add i;
this.bet_template.duplicateMovieClip(nbn, 10000 + i);
this[nbn].n = i;
this[nbn].volume = 0;
this[nbn].hint = BetNames[c];
this[nbn].pays = 1;
this[nbn]._x = -105 + (c * 42.5);
this[nbn]._y = 83;
this[nbn]._width = 40;
this[nbn]._height = 30;
c++;
}
x = 0;
while (x < 24) {
y = 0;
while (y < 7) {
if ((y == 0) or (y == 6)) {
if (x == 0) {
thisHint = "first four";
thisPays = 8;
} else if ((x % 2) == 1) {
thisHint = "street";
thisPays = 11;
} else if ((x % 2) == 0) {
thisHint = "six line";
thisPays = 5;
}
} else if ((y % 2) == 1) {
if (x == 0) {
thisHint = "split";
thisPays = 17;
} else if ((x % 2) == 1) {
thisHint = "straight";
thisPays = 35;
} else if ((x % 2) == 0) {
thisHint = "split";
thisPays = 17;
}
} else if ((y % 2) == 0) {
if (x == 0) {
thisHint = "three";
thisPays = 11;
} else if ((x % 2) == 1) {
thisHint = "split";
thisPays = 17;
} else if ((x % 2) == 0) {
thisHint = "corner";
thisPays = 8;
}
}
i = (_root.FIRST_LINEAR_BET + (x * 7)) + (6 - y);
nbn = "bet_" add i;
this.bet_template.duplicateMovieClip(nbn, 10000 + i);
this[nbn].n = i;
this[nbn].volume = 0;
this[nbn].hint = thisHint;
this[nbn].pays = thisPays;
this[nbn]._x = _root.BET_SCREEN_X + (_root.BET_SCREEN_DX * x);
this[nbn]._y = _root.BET_SCREEN_Y + (_root.BET_SCREEN_DY * y);
y++;
}
x++;
}
stop();
Symbol 441 MovieClip Frame 1
_root.showHighLight([]);
Symbol 460 MovieClip Frame 1
roulette_n.gotoAndStop(1);
roulette_ball.gotoAndStop(1);
Symbol 475 MovieClip Frame 1
stop();
Symbol 478 MovieClip Frame 1
stop();
Symbol 481 MovieClip Frame 1
stop();