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 = "slots/table0";
}
debug = 0;
} else if (shareware != 1) {
}
}
game_name = "Pretty Girl Slot";
game_id = "Pretty Girl Slot";
_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 gameInit() {
commonGameInit();
initBarabans();
st = ST_NONE;
bet = 0;
}
function gameProcess() {
var _local1 = _root;
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;
}
} else if (st == ST_BET) {
displayMoneyAndBet();
} else if (st == ST_SPIN) {
if (spinning) {
i = 0;
while (i < 3) {
_local1["baraban_" add String(i + 1)].MainSpinFunc();
i++;
}
} else {
checkWin();
st = ST_BET;
}
}
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);
st = ST_BET;
}
if (st == ST_SPIN) {
generateCombo();
}
}
function PutBet(betnum) {
var _local1 = _root;
if (!_local1.rules_win._visible) {
if (_local1.st != ST_BET) {
} else {
betvalue = _local1.coin_val[betnum - 1];
if (Number(_local1.money) < betvalue) {
} else {
b = Number(_local1.bet) + betvalue;
if (b > _local1.maxbet) {
} else {
_local1.bet = b;
_local1.money = Number(_local1.money) - betvalue;
_local1.PlaySound("snd_put");
_local1.putBetEx();
}
statusAdd = "";
_local1.displayMoneyAndBet();
betcoin.gotoAndPlay(2);
}
}
}
}
function ClearBet() {
var _local1 = _root;
if (_local1.st != ST_BET) {
} else if (_local1.bet == 0) {
} else {
_local1.money = _local1.money + _local1.bet;
_local1.bet = 0;
_local1.PlaySound("snd_put");
statusAdd = "";
_local1.displayMoneyAndBet();
}
}
function initBarabans() {
baraban_1.order = new Array();
baraban_2.order = new Array();
baraban_3.order = new Array();
baraban_1.num = 1;
baraban_2.num = 2;
baraban_3.num = 3;
baraban_1.order = [1, 2, 3, 4, 5, 6, 4, 3, 1, 5, 2, 3, 6, 4, 1, 5, 3, 6, 2, 4, 1, 5, 3, 1, 6, 2];
baraban_2.order = [3, 2, 4, 5, 2, 4, 1, 2, 3, 5, 6, 3, 1, 4, 2, 1, 5, 3, 6, 5, 3, 4, 1, 5, 3, 2, 6];
baraban_3.order = [4, 3, 1, 2, 5, 3, 2, 4, 1, 6, 5, 4, 1, 4, 2, 3, 1, 3, 1, 2, 3, 5, 4, 6, 1, 3, 2, 1, 4, 5];
baraban_1.DrawBaraban();
baraban_2.DrawBaraban();
baraban_3.DrawBaraban();
}
function CheckCoeff(value, veroyat, coeff) {
var _local1 = veroyat;
var _local2 = value;
trace((("value, veroyat, coeff" + _local2) + _local1) + coeff);
_local1 = Math.floor(_local1 * (((_root.bet / 10) / 5) + 0.8));
if ((_local2 / _local1) == Math.floor(_local2 / _local1)) {
_root.vars.coeff = coeff;
return(true);
}
return(false);
}
function Spin() {
if ((st == ST_BET) && (bet > 0)) {
PlaySound("snd_click");
combo1 = 0;
combo2 = 0;
combo3 = 0;
phase = 0;
spinning = true;
baraban_1.BeginSpin();
baraban_2.BeginSpin();
baraban_3.BeginSpin();
if (_root.soundon) {
spinsnd = new Sound();
spinsnd.attachSound("snd_spinning");
spinsnd.start(0, 999);
}
status_bar = sbm_spinning;
combo = 0;
st = ST_SPIN;
spinning = true;
if (online) {
connection_ToServer({type:"gambling", bet:bet});
} else {
vars = new Object();
aaa = random(5000) + 1;
do {
if (CheckCoeff(aaa, 600, 500)) {
break;
}
if (CheckCoeff(aaa, 150, 100)) {
break;
}
if (CheckCoeff(aaa, 70, 50)) {
break;
}
if (CheckCoeff(aaa, 50, 40)) {
break;
}
if (CheckCoeff(aaa, 40, 30)) {
break;
}
if (CheckCoeff(aaa, 30, 20)) {
break;
}
if (CheckCoeff(aaa, 20, 15)) {
break;
}
if (CheckCoeff(aaa, 15, 10)) {
break;
}
if (CheckCoeff(aaa, 8, 5)) {
break;
}
if (CheckCoeff(aaa, 4, 2)) {
break;
}
vars.coeff = 0;
} while (false);
vars.result = 0;
vars.balance = money + (bet * (vars.coeff - 1));
generateCombo();
}
}
}
function generateCombo() {
var _local1 = _root;
vars.coeff = Number(vars.coeff);
vars.balance = Number(vars.balance);
_local1.DebugOutput("Recieved coeff = " add vars.coeff);
if (vars.result != 0) {
errornum = vars.result;
errormsg = unescape(vars.message);
_local1.DebugOutput("Going to 'loop_error'.");
gotoAndPlay ("loop_error");
} else {
combo = "";
switch (vars.coeff) {
case 500 :
combo = "222";
cmbn = 14;
break;
case 100 :
combo = "444";
cmbn = 13;
break;
case 50 :
combo = "111";
cmbn = 12;
break;
case 40 :
if (random(2) == 0) {
combo = "442";
cmbn = 11;
} else {
combo = "244";
cmbn = 10;
}
break;
case 30 :
combo = "333";
cmbn = 9;
break;
case 20 :
if (random(2) == 0) {
combo = "311";
cmbn = 8;
} else {
combo = "113";
cmbn = 7;
}
break;
case 15 :
combo = "666";
cmbn = 6;
break;
case 10 :
if (random(2) == 0) {
if (random(2) == 0) {
combo = "366";
cmbn = 4;
} else {
combo = "663";
cmbn = 5;
}
} else {
combo = "555";
cmbn = 3;
}
break;
case 5 :
do {
a = random(6) + 1;
} while (a == 5);
cmbn = 2;
switch (Math.floor(random(3))) {
case 0 :
combo = (a add "5") add "5";
n1 = 2;
n2 = 3;
break;
case 1 :
combo = ("5" add a) add "5";
n1 = 1;
n2 = 3;
break;
default :
combo = "55" add a;
n1 = 1;
n2 = 2;
}
break;
case 2 :
do {
a1 = random(6) + 1;
} while (a1 == 5);
do {
a2 = random(6) + 1;
} while (a2 == 5);
cmbn = 1;
switch (Math.floor(random(3))) {
case 0 :
combo = (a1 add a2) add "5";
n1 = 3;
n2 = n1;
break;
case 1 :
combo = (a1 add "5") add a2;
n1 = 2;
n2 = n1;
break;
default :
combo = ("5" add a1) add a2;
n1 = 1;
n2 = n1;
}
break;
default :
do {
c1 = random(6) + 1;
c2 = random(6) + 1;
c3 = random(6) + 1;
b = false;
if (((c1 == 5) || (c2 == 5)) || (c3 == 5)) {
b = true;
}
if ((c1 == c2) && (c2 == c3)) {
b = true;
}
combo = (c1 add c2) add c3;
if (combo == "311") {
b = true;
}
if (combo == "113") {
b = true;
}
if (combo == "442") {
b = true;
}
if (combo == "244") {
b = true;
}
if (combo == "366") {
b = true;
}
if (combo == "663") {
b = true;
}
} while (b);
cmbn = 0;
}
combo1 = combo.charAt(0);
combo2 = combo.charAt(1);
combo3 = combo.charAt(2);
_local1.DebugOutput((("Generated combo: " add combo) add ", combo number: ") add cmbn);
}
}
function checkWin() {
cntt = 0;
if (cmbn > 0) {
cntt = 27;
DebugOutput("Won, new_balance = " add vars.new_balance);
eval (("_root.comb_" add cmbn) add "a").Animate2();
eval (("_root.comb_" add cmbn) add "b").Animate2();
eval (("_root.comb_" add cmbn) add "c").Animate2();
eval (("_root.comb_" add cmbn) add "w").Animate();
if (cmbn > 2) {
baraban_1.f2.Animate();
baraban_2.f2.Animate();
baraban_3.f2.Animate();
} else {
eval (("baraban_" add n1) add ".f2").Animate();
eval (("baraban_" add n2) add ".f2").Animate();
}
_root.cash_out.CashOut();
if (online) {
won = vars.balance - money;
money = vars.balance;
} else {
won = bet * vars.coeff;
money = money + won;
}
_root.won_anim.gotoAndPlay(2);
gameWin();
status_bar = (sbm_win_pref add formMoneyWithCurrency(won)) add sbm_win_suff;
} else {
status_bar = sbm_nowin;
gameLoose();
if (online) {
money = vars.balance;
}
}
if (bet <= money) {
money = money - bet;
_root.PlaySound("snd_put");
betcoin.gotoAndPlay(2);
} else {
bet = 0;
}
statusAdd = status_bar;
_root.displayMoneyAndBet();
}
function gameWin() {
_root.won_anim.gotoAndPlay(2);
_root.PlaySound("snd_coins");
}
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();
_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_play = "Play";
NoBetedChips = 0;
ChipBetHeight = 5;
ChipBetScale = 100;
var ST_NONE = 0;
var ST_LOADING = 1;
var ST_BET = 2;
var ST_SPIN = 3;
var st;
var money;
var bet;
var digits;
var currency;
var minbet;
var maxbet;
var statusAdd = "";
gameInit();
Instance of Symbol 181 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;
_root.debug_btn._visible = false;
_root.rules_win_shareware._visible = false;
_root.rules_win_template._visible = false;
_root.helpContent._visible = false;
_root.helpContent._visible = false;
_root.helpShareware._visible = false;
}
Frame 6
gameProcess();
Frame 7
gameProcess();
gotoAndPlay (6);
Symbol 10 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 23 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 33 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 42 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 43 MovieClip [UpArrow] Frame 1
stop();
Symbol 43 MovieClip [UpArrow] Frame 2
stop();
Symbol 43 MovieClip [UpArrow] Frame 3
stop();
Symbol 49 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 56 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 62 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 63 MovieClip [ScrollThumb] Frame 1
stop();
Symbol 71 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 79 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 87 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 88 MovieClip [DownArrow] Frame 1
stop();
Symbol 88 MovieClip [DownArrow] Frame 2
stop();
Symbol 88 MovieClip [DownArrow] Frame 3
stop();
Symbol 91 MovieClip Frame 1
var component = _parent;
component.registerSkinElement(track_mc, "scrollTrack");
Symbol 92 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 98 MovieClip [fr_5] Frame 1
function Animate() {
cnt = 0;
gotoAndPlay (2);
scstep = 0;
}
function Animate2() {
cnt = 0;
gotoAndPlay (2);
scstep = _root.item_scalestep;
}
stop();
Symbol 98 MovieClip [fr_5] Frame 2
this._xscale = this._xscale + scstep;
this._yscale = this._yscale + scstep;
Symbol 98 MovieClip [fr_5] Frame 3
this._xscale = this._xscale + scstep;
this._yscale = this._yscale + scstep;
Symbol 98 MovieClip [fr_5] Frame 4
this._xscale = this._xscale + scstep;
this._yscale = this._yscale + scstep;
Symbol 98 MovieClip [fr_5] Frame 5
this._xscale = this._xscale + scstep;
this._yscale = this._yscale + scstep;
Symbol 98 MovieClip [fr_5] Frame 6
this._xscale = this._xscale + scstep;
this._yscale = this._yscale + scstep;
Symbol 98 MovieClip [fr_5] Frame 7
this._xscale = this._xscale + scstep;
this._yscale = this._yscale + scstep;
if (cnt == 1) {
scstep = -scstep;
}
if ((++cnt) > 3) {
gotoAndStop (1);
} else {
gotoAndPlay (2);
}
Symbol 100 MovieClip Frame 1
stop();
Symbol 103 MovieClip [fr_1] Frame 1
function Animate() {
cnt = 0;
gotoAndPlay (2);
scstep = 0;
}
function Animate2() {
cnt = 0;
gotoAndPlay (2);
scstep = _root.item_scalestep;
}
stop();
Symbol 103 MovieClip [fr_1] Frame 2
this._xscale = this._xscale + scstep;
this._yscale = this._yscale + scstep;
Symbol 103 MovieClip [fr_1] Frame 3
this._xscale = this._xscale + scstep;
this._yscale = this._yscale + scstep;
Symbol 103 MovieClip [fr_1] Frame 4
this._xscale = this._xscale + scstep;
this._yscale = this._yscale + scstep;
Symbol 103 MovieClip [fr_1] Frame 5
this._xscale = this._xscale + scstep;
this._yscale = this._yscale + scstep;
Symbol 103 MovieClip [fr_1] Frame 6
this._xscale = this._xscale + scstep;
this._yscale = this._yscale + scstep;
Symbol 103 MovieClip [fr_1] Frame 7
this._xscale = this._xscale + scstep;
this._yscale = this._yscale + scstep;
Symbol 103 MovieClip [fr_1] Frame 8
this._xscale = this._xscale + scstep;
this._yscale = this._yscale + scstep;
Symbol 103 MovieClip [fr_1] Frame 9
this._xscale = this._xscale + scstep;
this._yscale = this._yscale + scstep;
if (cnt == 1) {
scstep = -scstep;
}
if ((++cnt) > 3) {
gotoAndStop (1);
} else {
gotoAndPlay (2);
}
Symbol 115 MovieClip [fr_2] Frame 1
function Animate() {
cnt = 0;
gotoAndPlay (2);
scstep = 0;
}
function Animate2() {
cnt = 0;
gotoAndPlay (2);
scstep = _root.item_scalestep;
}
stop();
Symbol 115 MovieClip [fr_2] Frame 2
this._xscale = this._xscale + (scstep * 0.9);
this._yscale = this._yscale + (scstep * 0.9);
Symbol 115 MovieClip [fr_2] Frame 3
this._xscale = this._xscale + (scstep * 0.9);
this._yscale = this._yscale + (scstep * 0.9);
Symbol 115 MovieClip [fr_2] Frame 4
this._xscale = this._xscale + (scstep * 0.9);
this._yscale = this._yscale + (scstep * 0.9);
Symbol 115 MovieClip [fr_2] Frame 5
this._xscale = this._xscale + (scstep * 0.9);
this._yscale = this._yscale + (scstep * 0.9);
Symbol 115 MovieClip [fr_2] Frame 6
this._xscale = this._xscale + (scstep * 0.9);
this._yscale = this._yscale + (scstep * 0.9);
Symbol 115 MovieClip [fr_2] Frame 7
this._xscale = this._xscale + (scstep * 0.9);
this._yscale = this._yscale + (scstep * 0.9);
Symbol 115 MovieClip [fr_2] Frame 8
this._xscale = this._xscale + (scstep * 0.9);
this._yscale = this._yscale + (scstep * 0.9);
Symbol 115 MovieClip [fr_2] Frame 9
this._xscale = this._xscale + (scstep * 0.9);
this._yscale = this._yscale + (scstep * 0.9);
Symbol 115 MovieClip [fr_2] Frame 10
this._xscale = this._xscale + (scstep * 0.9);
this._yscale = this._yscale + (scstep * 0.9);
if (cnt == 1) {
scstep = -scstep;
}
if ((++cnt) > 3) {
gotoAndStop (1);
} else {
gotoAndPlay (2);
}
Symbol 127 MovieClip [fr_4] Frame 1
function Animate() {
cnt = 0;
gotoAndPlay (2);
scstep = 0;
}
function Animate2() {
cnt = 0;
gotoAndPlay (2);
scstep = _root.item_scalestep;
}
stop();
Symbol 127 MovieClip [fr_4] Frame 2
this._xscale = this._xscale + scstep;
this._yscale = this._yscale + scstep;
Symbol 127 MovieClip [fr_4] Frame 3
this._xscale = this._xscale + scstep;
this._yscale = this._yscale + scstep;
Symbol 127 MovieClip [fr_4] Frame 4
this._xscale = this._xscale + scstep;
this._yscale = this._yscale + scstep;
Symbol 127 MovieClip [fr_4] Frame 5
this._xscale = this._xscale + scstep;
this._yscale = this._yscale + scstep;
Symbol 127 MovieClip [fr_4] Frame 6
this._xscale = this._xscale + scstep;
this._yscale = this._yscale + scstep;
Symbol 127 MovieClip [fr_4] Frame 7
this._xscale = this._xscale + scstep;
this._yscale = this._yscale + scstep;
Symbol 127 MovieClip [fr_4] Frame 8
this._xscale = this._xscale + scstep;
this._yscale = this._yscale + scstep;
if (cnt == 1) {
scstep = -scstep;
}
if ((++cnt) > 3) {
gotoAndStop (1);
} else {
gotoAndPlay (2);
}
Symbol 132 MovieClip [fr_3] Frame 1
function Animate() {
cnt = 0;
gotoAndPlay (2);
scstep = 0;
}
function Animate2() {
cnt = 0;
gotoAndPlay (2);
scstep = _root.item_scalestep;
}
stop();
Symbol 132 MovieClip [fr_3] Frame 2
this._xscale = this._xscale + scstep;
this._yscale = this._yscale + scstep;
Symbol 132 MovieClip [fr_3] Frame 3
this._xscale = this._xscale + scstep;
this._yscale = this._yscale + scstep;
Symbol 132 MovieClip [fr_3] Frame 4
this._xscale = this._xscale + scstep;
this._yscale = this._yscale + scstep;
Symbol 132 MovieClip [fr_3] Frame 5
this._xscale = this._xscale + scstep;
this._yscale = this._yscale + scstep;
Symbol 132 MovieClip [fr_3] Frame 6
this._xscale = this._xscale + scstep;
this._yscale = this._yscale + scstep;
Symbol 132 MovieClip [fr_3] Frame 7
this._xscale = this._xscale + scstep;
this._yscale = this._yscale + scstep;
Symbol 132 MovieClip [fr_3] Frame 8
this._xscale = this._xscale + scstep;
this._yscale = this._yscale + scstep;
if (cnt == 1) {
scstep = -scstep;
}
if ((++cnt) > 3) {
gotoAndStop (1);
} else {
gotoAndPlay (2);
}
Symbol 144 MovieClip [fr_6] Frame 1
function Animate() {
cnt = 0;
gotoAndPlay (2);
scstep = 0;
}
function Animate2() {
cnt = 0;
gotoAndPlay (2);
scstep = _root.item_scalestep;
}
stop();
Symbol 144 MovieClip [fr_6] Frame 2
this._xscale = this._xscale + scstep;
this._yscale = this._yscale + scstep;
Symbol 144 MovieClip [fr_6] Frame 3
this._xscale = this._xscale + scstep;
this._yscale = this._yscale + scstep;
Symbol 144 MovieClip [fr_6] Frame 4
this._xscale = this._xscale + scstep;
this._yscale = this._yscale + scstep;
Symbol 144 MovieClip [fr_6] Frame 5
this._xscale = this._xscale + scstep;
this._yscale = this._yscale + scstep;
Symbol 144 MovieClip [fr_6] Frame 6
this._xscale = this._xscale + scstep;
this._yscale = this._yscale + scstep;
Symbol 144 MovieClip [fr_6] Frame 7
this._xscale = this._xscale + scstep;
this._yscale = this._yscale + scstep;
Symbol 144 MovieClip [fr_6] Frame 8
this._xscale = this._xscale + scstep;
this._yscale = this._yscale + scstep;
Symbol 144 MovieClip [fr_6] Frame 9
this._xscale = this._xscale + scstep;
this._yscale = this._yscale + scstep;
Symbol 144 MovieClip [fr_6] Frame 10
this._xscale = this._xscale + scstep;
this._yscale = this._yscale + scstep;
if (cnt == 1) {
scstep = -scstep;
}
if ((++cnt) > 3) {
gotoAndStop (1);
} else {
gotoAndPlay (2);
}
Instance of Symbol 92 MovieClip [FScrollBarSymbol] "sbd" in Symbol 181 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
_targetInstanceName = "dta";
horizontal = false;
}
Symbol 184 Button
on (release) {
debug_win._visible = !debug_win._visible;
}
Symbol 207 Button
on (release) {
_root.PlaySound("snd_click");
getURL (_root.update_url, "_blank");
}
Symbol 209 Button
on (release) {
_root.PlaySound("snd_click");
_root.rules_win._visible = false;
}
Symbol 213 MovieClip Frame 1
this._visible = false;
Symbol 222 Button
on (release) {
if (!_root.rules_win._visible) {
_root.handlegfx.gotoAndStop(1);
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);
}
_root.handlegfx.gotoAndStop("over");
}
on (rollOut, dragOut) {
this._alpha = _defaultalpha;
_root.handlegfx.gotoAndStop(1);
}
on (press) {
if (_root.st != _root.ST_BET) {
return(undefined);
}
_root.handlegfx.gotoAndStop("down");
}
Symbol 223 Button
on (release) {
if (!_root.rules_win._visible) {
if (_root.st != _root.ST_BET) {
return(undefined);
}
if (Number(_root.bet) > 0) {
_root.ClearBet();
}
}
}
on (rollOver) {
this._alpha = 100;
}
on (rollOut, dragOut) {
this._alpha = _defaultalpha;
}
Symbol 230 Button
on (release) {
getURL (_root.update_url, "_blank");
}
Symbol 234 MovieClip Frame 6
stop();
Symbol 238 MovieClip Frame 6
stop();
Symbol 260 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 274 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 290 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 304 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 308 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 310 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 311 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 332 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 334 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 348 Button
on (release) {
_root.PutBet(1);
}
on (rollOver) {
_root.panel._alpha = 100;
}
on (rollOut, dragOut) {
_root.panel._alpha = _root.panel._defaultalpha;
}
Symbol 354 Button
on (release) {
_root.PutBet(2);
}
on (rollOver) {
_root.panel._alpha = 100;
}
on (rollOut, dragOut) {
_root.panel._alpha = _root.panel._defaultalpha;
}
Symbol 360 Button
on (release) {
_root.PutBet(3);
}
on (rollOver) {
_root.panel._alpha = 100;
}
on (rollOut, dragOut) {
_root.panel._alpha = _root.panel._defaultalpha;
}
Symbol 366 Button
on (release) {
_root.PutBet(4);
}
on (rollOver) {
_root.panel._alpha = 100;
}
on (rollOut, dragOut) {
_root.panel._alpha = _root.panel._defaultalpha;
}
Symbol 372 Button
on (release) {
_root.PutBet(14);
}
on (rollOver) {
_root.panel._alpha = 100;
}
on (rollOut, dragOut) {
_root.panel._alpha = _root.panel._defaultalpha;
}
Symbol 378 Button
on (release) {
_root.PutBet(13);
}
on (rollOver) {
_root.panel._alpha = 100;
}
on (rollOut, dragOut) {
_root.panel._alpha = _root.panel._defaultalpha;
}
Symbol 384 Button
on (release) {
_root.PutBet(12);
}
on (rollOver) {
_root.panel._alpha = 100;
}
on (rollOut, dragOut) {
_root.panel._alpha = _root.panel._defaultalpha;
}
Symbol 390 Button
on (release) {
_root.PutBet(11);
}
on (rollOver) {
_root.panel._alpha = 100;
}
on (rollOut, dragOut) {
_root.panel._alpha = _root.panel._defaultalpha;
}
Symbol 398 Button
on (release) {
_root.PutBet(10);
}
on (rollOver) {
_root.panel._alpha = 100;
}
on (rollOut, dragOut) {
_root.panel._alpha = _root.panel._defaultalpha;
}
Symbol 405 Button
on (release) {
_root.PutBet(9);
}
on (rollOver) {
_root.panel._alpha = 100;
}
on (rollOut, dragOut) {
_root.panel._alpha = _root.panel._defaultalpha;
}
Symbol 412 Button
on (release) {
_root.PutBet(8);
}
on (rollOver) {
_root.panel._alpha = 100;
}
on (rollOut, dragOut) {
_root.panel._alpha = _root.panel._defaultalpha;
}
Symbol 419 Button
on (release) {
_root.PutBet(7);
}
on (rollOver) {
_root.panel._alpha = 100;
}
on (rollOut, dragOut) {
_root.panel._alpha = _root.panel._defaultalpha;
}
Symbol 426 Button
on (release) {
_root.PutBet(6);
}
on (rollOver) {
_root.panel._alpha = 100;
}
on (rollOut, dragOut) {
_root.panel._alpha = _root.panel._defaultalpha;
}
Symbol 434 Button
on (release) {
_root.PutBet(5);
}
on (rollOver) {
_root.panel._alpha = 100;
}
on (rollOut, dragOut) {
_root.panel._alpha = _root.panel._defaultalpha;
}
Symbol 436 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 442 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 472 MovieClip Frame 1
stop();
Symbol 475 MovieClip Frame 1
function AddPos(a) {
pos = pos + a;
if (pos < 0) {
pos = pos + order.length;
}
if (pos > (order.length - 1)) {
pos = pos - order.length;
}
}
function GetItemNum(n) {
var _local1 = n;
if (_local1 > (order.length - 1)) {
_local1 = _local1 - order.length;
}
if (_local1 < 0) {
_local1 = _local1 + order.length;
}
return(order[_local1]);
}
function SetItemNum(n, val) {
var _local1 = n;
if (_local1 > (order.length - 1)) {
_local1 = _local1 - order.length;
}
if (_local1 < 0) {
_local1 = _local1 + order.length;
}
order[_local1] = val;
}
function GetItem(n) {
return("fr_" add GetItemNum(n));
}
function BeginSpin() {
step = 0;
_root.phase = 0;
counter = 30;
lphase = 0;
gotoAndPlay ("spinning");
}
function DrawBaraban(dd) {
spn = (_root.phase == 0) || ((_root.phase == 1) && (lphase < 1));
attachMovie(GetItem(pos - 2), "f0", 1000);
setProperty("f0", _visible , !spn);
setProperty("f0", _x , 0);
setProperty("f0", _y , -120);
attachMovie(GetItem(pos - 1), "f1", 1001);
setProperty("f1", _x , 0);
setProperty("f1", _y , -60);
attachMovie(GetItem(pos), "f2", 1002);
setProperty("f2", _x , 0);
setProperty("f2", _y , 0);
attachMovie(GetItem(pos + 1), "f3", 1003);
setProperty("f3", _x , 0);
setProperty("f3", _y , 60);
if (this.bigBarabanSymbols == true) {
symScale = 100;
} else {
symScale = 70;
}
k = 0;
while (k < 4) {
this["f" add k]._xscale = symScale;
this["f" add k]._yscale = symScale;
k++;
}
iii = 1;
while (iii <= 3) {
if (spn) {
eval ("f" add iii).gotoAndStop("spinning");
eval ("f" add iii)._visible = false;
aa = false;
if (spin._currentframe == 1) {
aa = true;
}
spin.gotoAndStop(2);
if (aa) {
do {
aapos = random(5) + 1;
aaa = false;
if (num < 3) {
jj = 3;
while (jj > num) {
if (eval ("_root.baraban_" add jj).spin.spin._currentframe == aapos) {
aaa = true;
}
jj--;
}
}
} while (aaa);
spin.spin.gotoAndPlay(aapos);
}
} else {
eval ("f" add iii).gotoAndStop(1);
eval ("f" add iii)._visible = true;
spin.gotoAndStop(1);
}
iii++;
}
fg.swapDepths(2000);
}
function MakeSpin(shadows) {
var _local1 = shadows;
if (_local1) {
attachMovie(GetItem(pos - 2), "h0", 20);
attachMovie(GetItem(pos - 1), "h1", 21);
attachMovie(GetItem(pos), "h2", 22);
attachMovie(GetItem(pos + 1), "h3", 23);
setProperty("h0", _xscale , 70);
setProperty("h1", _xscale , 85);
setProperty("h3", _xscale , 75);
setProperty("h0", _alpha , 25);
setProperty("h1", _alpha , 25);
setProperty("h2", _alpha , 25);
setProperty("h3", _alpha , 25);
}
counter++;
i = 0;
while (i <= 3) {
n = "f" add i;
setProperty(n, _y , getProperty(n, _y) + 15);
if (_local1) {
setProperty("h" add i, _y , getProperty(n, _y) - 15);
}
i++;
}
if ((++step) >= 5) {
AddPos(-1);
DrawBaraban();
step = 0;
}
}
function MainSpinFunc() {
switch (_root.phase) {
case 0 :
MakeSpin(shadows);
if ((counter > 50) && (random(4) == 2)) {
_root.GetCombo();
_root.phase = 1;
}
return;
case 1 :
if (lphase == 10) {
_root.DebugOutput((((("stopped baraban #" add num) add ", numm = ") add numm) add ", GetItemNum() = ") add GetItemNum(pos));
_root.PlayStereoSound(4, num, "snd_bstop");
_root.spinsnd.setPan(0);
if (num == 3) {
_root.spinsnd.stop("snd_spinning");
}
}
if (lphase >= 40) {
stop();
if (num == 1) {
_root.spinning = false;
}
} else if (lphase > 0) {
lphase++;
aa = (Math.cos(100 + (lphase / 4)) * 40) * Math.exp((-lphase) / 10);
setProperty("f0", _y , -120 + aa);
setProperty("f1", _y , -60 + aa);
setProperty("f2", _y , 0 + aa);
setProperty("f3", _y , 60 + aa);
} else {
MakeSpin(shadows);
canstop = false;
numm = eval ("_root.combo" add num);
if (counter >= (50 + (num * 10))) {
SetItemNum(pos, numm);
canstop = true;
while (GetItemNum(pos) == GetItemNum(pos - 1)) {
SetItemNum(pos - 1, random(5) + 1);
}
while (GetItemNum(pos) == GetItemNum(pos + 1)) {
SetItemNum(pos + 1, random(5) + 1);
}
DrawBaraban(true);
_root.DebugOutput(("baraban #" add num) add " begin stopping...");
}
if (_root.combo == 0) {
canstop = false;
}
if (!((((GetItemNum(pos) == numm) && (step == 0)) && (canstop)) && (((num == 1) || ((num == 2) && (_root.baraban_1.lphase > 0))) || (((num == 3) && (_root.baraban_1.lphase > 0)) && (_root.baraban_2.lphase > 0))))) {
break;
}
_root.DebugOutput((((("stopping baraban #" add num) add ", numm = ") add numm) add ", GetItemNum() = ") add GetItemNum(pos));
iii = 1;
while (iii <= 3) {
eval ("f" add iii).gotoAndStop(1);
eval ("f" add iii)._visible = true;
iii++;
}
f0._visible = true;
spin.gotoAndStop(1);
lphase = 1;
return;
}
}
}
pos = random(order.length);
shadows = false;
DrawBaraban();
foreground.swapDepths(1000);
stop();
Symbol 483 MovieClip Frame 1
stop();
Symbol 483 MovieClip Frame 3
a = String(this);
a = a.charAt(22);
if (a == "1") {
_root.PlaySound("snd_coins");
}
Symbol 484 MovieClip Frame 1
function CashOut() {
i = 1;
while (i <= 7) {
eval ("cash_" add i).gotoAndPlay(1);
i++;
}
}
function StopCash() {
i = 1;
while (i <= 7) {
eval ("cash_" add i).gotoAndStop(1);
i++;
}
}
StopCash();
stop();
Symbol 521 MovieClip Frame 1
stop();