Frame 1
this.stop();
this.onEnterFrame = function () {
if (this.left == undefined) {
if (this.getBytesTotal() < 100) {
this.progress(0);
return(undefined);
}
if (this.getBytesLoaded() >= this.getBytesTotal()) {
this.left = 2;
}
var perc = Math.round((this.getBytesLoaded() / this.getBytesTotal()) * 100);
this.progress(perc);
} else {
if (this.left == 0) {
this.play();
}
if (this.left == -2) {
C_Initializator.gameStart();
delete this.onEnterFrame;
}
this.left--;
}
};
this.progress = function (perc) {
perc = Math.floor(perc * 10) / 10;
if (perc >= 100) {
perc = 100;
}
this.bar._xscale = perc;
this.txt = perc + "%";
};
Frame 2
this.stop();
C_Initializator.gameStart();
_global.__constsRegistry = {};
_global.define = function (name, value, hostClass) {
if (_global.__constsRegistry[name] != undefined) {
return(false);
}
_global.__constsRegistry[name] = {value:value, hostClass:hostClass};
_global.Object.prototype.addProperty(name, function () {
return(_global.__constsRegistry[name].value);
}, function () {
});
ASSetPropFlags(_global.Object.prototype, name, 7);
return(true);
};
_global.C_Options = function () {
this.init();
};
_global.fastmodeon = function () {
_global.options.fastmode = true;
};
_global.fastmodeoff = function () {
_global.options.fastmode = false;
};
C_Options.prototype.init = function () {
this.description = "options ver 1.0";
this.options = new localStore("options");
if (this.options.hints == undefined) {
this.options.hints = true;
}
if (this.options.bubbles == undefined) {
this.options.bubbles = true;
}
if (this.options.fastMode == undefined) {
this.options.fastMode = false;
}
if (this.options.dealerVolume == undefined) {
this.options.dealerVolume = 70;
}
if (this.options.fxVolume == undefined) {
this.options.fxVolume = 70;
}
if (this.options.dealerOn == undefined) {
this.options.dealerOn = true;
}
if (this.options.fxOn == undefined) {
this.options.fxOn = true;
}
if (this.options.fullScreen == undefined) {
this.options.fullScreen = false;
}
this.options.dealerOn = false;
this.options.dealerVolume = 0;
this.options.fastMode = false;
AsBroadcaster.initialize(this);
this.addListener(this);
for (var v in this.options) {
this.__setProperty(v);
this.broadcastMessage("onOptionsChanged", v);
}
};
C_Options.prototype.__setProperty = function (prop) {
this["__get_" + prop] = function () {
return(this.options[prop]);
};
this["__set_" + prop] = function (val) {
if (this.options[prop] == val) {
return(undefined);
}
this.options[prop] = val;
var tt = this;
var ID = setInterval(function () {
tt.broadcastMessage("onOptionsChanged", prop);
clearInterval(ID);
}, 10);
};
this.addProperty(prop, this["__get_" + prop], this["__set_" + prop]);
};
C_Options.prototype.onOptionsChanged = function (option) {
switch (option.toLowerCase()) {
case "fxon" :
case "fxvolume" :
_global.sound_FX_volume = Math.round(this.fxOn * this.fxVolume);
return;
case "dealeron" :
case "dealervolume" :
_global.sound_DEALER_volume = Math.round(this.dealerOn * this.dealerVolume);
_global.dealer_voice_volume = sound_DEALER_volume;
}
};
this.translate = {};
var tr = this.translate;
tr.__resolve = function (prop) {
return("! " + prop);
};
tr.bet = "\u0421\u0443\u043C\u043C\u0430 \u0441\u0442\u0430\u0432\u043E\u043A";
tr.win = "\u0412\u0430\u0448 \u0432\u044B\u0438\u0433\u0440\u044B\u0448";
tr["total bets"] = tr.bet;
tr["your win"] = tr.win;
tr.insurance = "\u0421\u0442\u0440\u0430\u0445\u043E\u0432\u043A\u0430";
tr.lines = "\u0412\u044B\u0431\u0440\u0430\u043D\u043E \u043B\u0438\u043D\u0438\u0439";
tr.Numbers = "\u0412\u044B\u0431\u0440\u0430\u043D\u043E \u043D\u043E\u043C\u0435\u0440\u043E\u0432";
this.interface.bottom._y = SYS.panelY;
this.interface.bottom._x = SYS.panelX;
this.interface.gamesMenu._y = Sys.panelY + 35;
this.interface.cashierMenu._y = this.interface.gamesMenu._y;
_global.GUI = this;
this.controllers = interface.bottom;
this.boards = interface;
this.GUIButtons = this.interface.bottom.buttons;
this.description = "GUI";
define("GUI_ERR_ALREADY_PRESENT", -1, "gui controller error");
define("GUI_ERR_NOT_PRESENT", -2, "gui controller error");
this.startRound = function () {
for (var v in this.GUIButtons) {
if (this.GUIButtons[v]._parent == this.GUIButtons) {
this.GUIButtons[v].enabled = true;
}
}
this.GUIButtons.back.enabled = (this.GUIButtons.cashier.enabled = (this.GUIButtons.options.enabled = (this.GUIButtons.history.enabled = (this.GUIButtons.games.enabled = false))));
this.GUIButtons.back._brightness = (this.GUIButtons.cashier._brightness = (this.GUIButtons.options._brightness = (this.GUIButtons.history._brightness = (this.GUIButtons.games._brightness = -40))));
chipSelector.lock();
};
this.endRound = function () {
this.GUIButtons.back.enabled = (this.GUIButtons.cashier.enabled = (this.GUIButtons.options.enabled = (this.GUIButtons.history.enabled = (this.GUIButtons.games.enabled = true))));
this.GUIButtons.back._brightness = (this.GUIButtons.cashier._brightness = (this.GUIButtons.options._brightness = (this.GUIButtons.history._brightness = (this.GUIButtons.games._brightness = 0))));
chipSelector.unlock();
};
this.__lockCount = 0;
this.lockAll = function () {
this.__lockCount++;
DEBUG("LOCK", "lock all %1", this.__lockCount);
if (this.__lockCount == 1) {
GUI.interface.lock.lock();
_global.globalLock = true;
}
};
this.unlockAll = function () {
this.__lockCount--;
DEBUG("LOCK", "unlock all %1", this.__lockCount);
if (this.__lockCount < 0) {
this.__lockCount = 0;
}
if (this.__lockCount == 0) {
GUI.interface.lock.unlock();
_global.globalLock = false;
}
};
this.setAlias = function (controllerName, aliasName, caption, format, prefix, postfix) {
var alias = __aliases[aliasName];
var newby = false;
if (alias == undefined) {
alias = {};
__aliases[aliasName] = alias;
this.__createAlias(aliasName);
newby = true;
}
controllerName = controllerName.toLowerCase();
if (caption == undefined) {
caption = this.__controllers[controllerName].caption;
}
if (format == undefined) {
format = this.__controllers[controllerName].format;
}
if (prefix == undefined) {
prefix = this.__controllers[controllerName].prefix;
}
if (postfix == undefined) {
postfix = this.__controllers[controllerName].postfix;
}
alias.caption = caption;
alias.format = format;
alias.prefix = prefix;
alias.postfix = postfix;
alias.controller = controllerName;
if (alias.deleted) {
newby = true;
}
alias.deleted = false;
if (!newby) {
return(undefined);
}
this.__aliasCount[controllerName]++;
DEBUG(controllerName, "alias count: " + this.__aliasCount[controllerName]);
if (this.__aliasCount[controllerName] == 1) {
this.__enableController(controllerName, true);
this[aliasName] = 0;
}
};
this.deleteAlias = function (aliasName) {
if ((__aliases[aliasName] != undefined) and (__aliases[aliasName].deleted != true)) {
var controllerName = __aliases[aliasName].controller;
__aliases[aliasName].deleted = true;
this.__aliasCount[controllerName]--;
DEBUG(controllerName, "alias count: " + this.__aliasCount[controllerName]);
if (this.__aliasCount[controllerName] == 0) {
this.__enableController(controllerName, false);
}
} else {
return(GUI_ERR_NOT_PRESENT);
}
};
this.hideLogo = function () {
this.boards.logo._visible = false;
};
this.showLogo = function () {
this.boards.logo._visible = true;
};
this.__aliases = {};
this.__controllers = {};
this.__aliasCount = {};
this.__controllers.balance = {caption:"balance", format:"FLOAT", prefix:"$", postfix:""};
this.__controllers.jackpot = {caption:"jackpot", format:"FLOAT", prefix:"$", postfix:""};
this.__controllers.screen1 = {caption:"Lines", format:"INT", prefix:"", postfix:""};
this.__controllers.screen2 = {caption:"Bet", format:"FLOAT", prefix:"", postfix:""};
this.__controllers.screen3 = {caption:"Win", format:"FLOAT", prefix:"", postfix:""};
this.__createAlias = function (aliasName) {
this["__aliasSet_" + aliasName] = function (val) {
var aliasName = aliasName;
var alias = this.__aliases[aliasName];
if (alias.deleted) {
return(undefined);
}
var description = ("GUI." + aliasName);
DEBUG(description, "new value for alias: %1 with format %2", val, alias.format);
alias.value = val;
switch (alias.format.toUpperCase()) {
case "INT" :
var rounded = Math.floor(val);
if (rounded != val) {
DEBUG(description, "WARNING 001: original value was converted to INT format and nqw they are not equals!");
}
val = rounded;
break;
case "FLOAT" :
val = this.__numberFormat(val);
break;
case "STRING" :
break;
default :
DEBUG(description, "WARNING 002: unsupported format for alias! Value wilil be showed as is.");
}
if (val != undefined) {
alias.text = (alias.prefix + val) + alias.postfix;
this.__out(alias);
} else {
alias.text = alias.prefix;
this.__out(alias);
}
};
this["__aliasGet_" + aliasName] = function () {
var aliasName = aliasName;
var alias = this.__aliases[aliasName];
if (alias.deleted) {
return(undefined);
}
return(alias.value);
};
this.addProperty(aliasName, this["__aliasGet_" + aliasName], this["__aliasSet_" + aliasName]);
};
this.__out = function (alias) {
switch (alias.controller) {
case "balance" :
this.controllers.balance.balance = alias.value;
return;
case "jackpot" :
this.boards.jackpot.screen.tf.autoSize = "right";
this.boards.jackpot.screen.tf.text = alias.value;
return;
case "screen1" :
this.controllers.screen1.value = alias.text;
this.controllers.screen1.caption = alias.caption;
return;
case "screen2" :
this.controllers.screen2.value = alias.text;
this.controllers.screen2.caption = alias.caption;
return;
case "screen3" :
this.controllers.screen3.value = alias.text;
this.controllers.screen3.caption = alias.caption;
}
};
this.__numberFormat = function (val) {
var dec = String(Math.floor(val));
var float = (val - dec);
float = Math.round(float * 100);
if (float == 100) {
dec = String(Number(dec) + 1);
float = 0;
}
var res = "";
var char;
var len = length(dec);
var i = (len - 1);
while (i >= 0) {
char = dec.charAt(i);
if ((((len - i) % 3) == 0) and i) {
char = "," + char;
}
res = char + res;
i--;
}
if (length(float) == 1) {
float = "0" + float;
}
res = res + ("." + float);
return(res);
};
this.__enableController = function (controllerName, mode) {
controllerName = String(controllerName);
mode = !mode;
switch (controllerName.toLowerCase()) {
case "screen1" :
this.controllers.screen1.disabled = mode;
return;
case "screen2" :
this.controllers.screen2.disabled = mode;
return;
case "screen3" :
this.controllers.screen3.disabled = mode;
return;
case "jackpot" :
this.boards.jackpot._visible = !mode;
return;
}
};
if (_root.PartnerLink == undefined) {
_root.PartnerLink = "http://www.annacasino.ru/";
}
if (_root.PartnerLinkHelp == undefined) {
_root.PartnerLinkHelp = "http://www.annacasino.ru/";
}
if (_root.PartnerLinkTarget == undefined) {
_root.PartnerLinkTarget = "_blank";
}
if (_root.linkTip == undefined) {
_root.linkTip = "tooltip permanent:www.annacasino.ru";
}
this.initGUIButtons = function () {
var but;
for (var v in this.GUIButtons) {
if (v == "3w") {
continue;
}
but = this.GUIButtons[v];
DEBUG("GUI Buttons", "found %1", v);
if (but instanceof Button) {
DEBUG("GUI Buttons", "init %1", v);
but.onPress = function () {
_root.controllers["on" + this._name]();
};
if ((((v == "games") or (v == "help")) or (v == "real")) or (v == "back")) {
but.onRollOver = function () {
HINT._hint = _root.LinkTip;
};
but.onRollOut = function () {
HINT._hint = "";
};
but.onDragOut = but.onRollOut;
}
}
}
};
this.ButtonAction = {};
this.controllers.onBack = function () {
var link = _root.PartnerLink;
getURL (link, _root.PartnerLinkTarget);
};
this.controllers.onReal = function () {
var link = _root.PartnerLink;
getURL (link, _root.PartnerLinkTarget);
};
this.controllers.onOptions = function () {
Options.switchOnOff();
};
this.controllers.onHelp = function () {
var link = _root.PartnerLinkHelp;
getURL (link, _root.PartnerLinkTarget);
};
this.controllers.onGames = function () {
var link = _root.PartnerLink;
getURL (link, _root.PartnerLinkTarget);
};
this.boards.jackpot._visible = false;
this.setAlias("balance", "balance");
this.balance = 0;
if (C_Game.onGUIInit != undefined) {
C_Game.onGUIInit();
}
this.setupMenu = function (set) {
DEBUG("GamesMenu", "setup (%1)", set);
var subset = set.childNodes;
var node;
var target;
var link;
var i = 0;
while (i < subset.length) {
node = subset[i];
if (node.nodeName.toLowerCase() == "gui") {
DEBUG("GamesMenu", "gui node found, continue.");
subset = node.childNodes;
break;
}
i++;
}
DEBUG("GamesMenu", "subset: %1", subset);
var i = 0;
while (i < subset.length) {
node = subset[i];
switch (node.nodeName.toLowerCase()) {
case "games" :
this.generateMenu(node);
break;
default :
target = node.attributes.target;
link = node.attributes.link;
if (target == undefined) {
target = "_self";
}
if (link == undefined) {
} else {
this.ButtonAction[node.nodeName] = {link:link, target:target};
}
}
i++;
}
};
this.generateMenu = function (set) {
var menu = this.interface.gamesMenu;
var subset = set.childNodes;
var node;
var target;
var link;
var current;
var submenu;
var i = (subset.length - 1);
while (i >= 0) {
node = subset[i];
target = node.attributes.target;
link = node.attributes.link;
if (target == undefined) {
target = "_self";
}
if (link == undefined) {
link = "";
}
link = ((("/" + SYS.language) + "/games/") + link) + "/";
current = false;
submenu = (node.hasChildNodes() ? (this.generateSubMenu(node)) : undefined);
menu.addItem(node.attributes.text, {link:link, target:target}, current, submenu, this);
i--;
}
};
this.generateSubMenu = function (set) {
var menu = [];
var path = set.attributes.path;
var subset = set.childNodes;
var node;
var target;
var link;
var current;
var submenu;
var i = (subset.length - 1);
while (i >= 0) {
node = subset[i];
target = node.attributes.target;
link = node.attributes.link;
if (target == undefined) {
target = "_self";
}
if (link == undefined) {
link = "";
}
link = (((("/" + SYS.language) + "/games/") + path) + link) + "/";
menu.push({text:node.attributes.text, itemData:{link:link, target:target}, disabled:current, submenu:submenu, handler:this});
i--;
}
return(menu);
};
this.getIndexes = function () {
var indexes = _global.SYS.guiMenu.getByName("index");
this.guiIndexes = indexes;
this.fun_index = indexes.attributes.fun;
this.money_index = indexes.attributes.money;
if (this.fun_index == undefined) {
this.fun_index = "index_fun.htm";
}
if (this.money_index == undeifned) {
this.money_index = "index.htm";
}
};
this.onMenuSelected = function (itemData) {
DEBUG("Games Menu", "link: %1, target: %2", itemData.link, itemData.target);
if (this.fun_index == undefined) {
this.getIndexes();
}
var link = itemData;
var jumpTo = __correctRelativePath(link.link);
var fileName;
if (SYS.mode == "FUN") {
fileName = this.fun_index;
} else {
fileName = this.money_index;
}
GUI.leave(jumpTo + fileName);
};
this.leave = function (url, direct) {
this.lockAll();
getURL (url, "_self");
};
this.initGUIButtons();
this.stop();
// swfAction0x74 // Unknown action
// swfAction0x57 // Unknown action
// swfAction0x74 // Unknown action
// swfAction0x72 // Unknown action
var v = (() >>> (() gt (() << (() | (() >>> (() > (() | ())))))));
// unexpected jump
type = typeof(this[v]);
if ((type == "object") || (type == "movieclip")) {
if (!this[v].number_for_trace_objects) {
if (this[v].__proto__ == Array.prototype) {
type = "Array";
} else if (isXML(this[v])) {
type = "XML";
} else if (this[v].__proto__ == XMLSocket.prototype) {
type = "XMLSocket";
} else if (this[v].__proto__ == Sound.prototype) {
type = "Sound";
}
element = new XML(("<" + v) + " />");
if (type == "XML") {
element.firstChild.appendChild(this[v].firstChild.cloneNode(true));
} else {
element.firstChild.appendChild(this[v].toXML(type, ++num).firstChild);
}
} else {
this[v].number_for_trace_objects = this[v].number_for_trace_objects + 0.01;
attr = (" id=\"" + this[v].number_for_trace_objects) + "\"";
if (type == "movieclip") {
attr = attr + ((" name=\"" + this[v]._name) + "\"");
}
element = new XML((("<" + v) + attr) + " />");
}
} else {
marks = ((type == "string") ? "\"" : "");
if (((type == "number") || (type == "string")) || (type == "boolean")) {
attr = "";
} else {
attr = (" type=\"" + type) + "\"";
}
element = new XML((((((((((("<" + v) + ((type == "function") ? " type=\"function\"" : "")) + ">") + " ") + marks) + this[v]) + marks) + " ") + "</") + v) + ">");
if ((element.firstChild.firstChild.nodeType == 3) && (element.firstChild.firstChild.nodeValue == " ")) {
element.firstChild.firstChild.removeNode();
}
}
XML_result.firstChild.insertBefore(element.firstChild, XML_result.firstChild.firstChild);
// unexpected jump
XML_result.firstChild.lastChild.removeNode();
if (XML_result.firstChild.attributes.id == "1.0") {
var i = 0;
while (i < _root.array_for_delete_numbers.length) {
delete _root.array_for_delete_numbers[i].number_for_trace_objects;
i++;
}
delete _root.array_for_delete_numbers;
}
this.__proto__ = proto;
return(XML_result);
var v = (() >>> (() gt (() << (() | (() >>> (() > (() | ())))))));
traced_value = traced_value + ((((" " + v) + "=\"") + this.attributes[v]) + "\"");
// unexpected jump
if (this.firstChild == null) {
traced_value = traced_value + " />";
} else if ((this.firstChild.nodeType == 3) && (this.firstChild == this.lastChild)) {
traced_value = traced_value + ((((">" + this.firstChild.toString2()) + "</") + this.nodeName) + ">");
} else {
traced_value = traced_value + (((((((">\r " + tab) + this.firstChild.toString2(tab + " ")) + "\r") + tab) + "</") + this.nodeName) + ">");
}
if (this.nextSibling != null) {
traced_value = traced_value + (("\r" + tab) + this.nextSibling.toString2(tab));
}
return(traced_value);
var v = (() >>> (() gt (() << (() | (() >>> (() > (() | ())))))));
this[v] = o[v];
// unexpected jump
o.__proto__ = proto;
return(this);
while (i < this.length) {
if ((searched_array.indexOf(this[i]) != -1) || (rec && (this[i].trim(searched_array, true)))) {
this.splice(i, 1);
i--;
}
i++;
}
return(l != this.length);
while (i < this.length) {
if (searched.indexOf(this[i]) != -1) {
test++;
}
i++;
}
// unexpected jump
while (i < this.length) {
if (searched == this[i]) {
test++;
}
i++;
}
return(test);
while (i < this.length) {
if (arg == "string") {
if (String(searched) == String(this[i])) {
return(i);
}
} else if (arg == "==") {
if (searched == this[i]) {
return(i);
}
} else if (searched === this[i]) {
return(i);
}
i++;
}
return(-1);
while (random_i > 0) {
this.push(this.splice(Math.floor(Math.random() * random_i), 1)[0]);
random_i--;
}
return(this);
var v = (() >>> (() gt (() << (() | (() >>> (() > (() | ())))))));
if ((typeof(this[v]) == "movieclip") && (this[v]._parent == this)) {
result_childs.push(this[v]);
}
// unexpected jump
return(result_childs);
while (i < __childs.length) {
res = res.concat(__childs[i].allChilds());
i++;
}
return(res);
while (i < paramArray.length) {
this[paramArray[i]] = fromClip[paramArray[i]];
i++;
}
fromClip._rotation = rotation_fromClip;
this._rotation = rotation_fromClip;
;
MovieClip.prototype.copyColor = function (fromClip) {
new Color(this).setTransform(new Color(fromClip).getTransform());
};
MovieClip.prototype.top = function () {
if (this._parent != _root) {
return(this._parent.top());
}
return(this);
};
MovieClip.prototype.newSound = function (id, volume, loop) {
DEBUG("newSound", "newSound (%1)", id);
var tt = this;
if (this.sndFX_mc == undefined) {
var s = this.createEmptyMovieClip("sndFX_mc", 10001);
} else {
var s = this.sndFX_mc;
}
this["__mySound" + id] = (this.__mySound = new Sound(s));
this.__mySound.id = random(9999);
this.__mySound.attachSound(id);
var vol = volume;
if (vol == undefined) {
vol = ((sound_FX_volume != undefined) ? (sound_FX_volume) : 100);
}
this.__mySound.setVolume(vol);
if (!loop) {
loop = 1;
}
this.__mySound.onSoundComplete = function () {
tt.onStopSound();
};
this.__mySound.soundID = id;
this.__mySound.start(0, loop);
};
MovieClip.prototype.addSound = function (id, volume) {
var tt = this;
var r = this;
if (this.A_sounds == undefined) {
this.A_sounds = [];
}
this.A_sounds.push(id);
r.volume = volume;
r.nextSound = function () {
var id = tt.A_sounds.shift();
if (id == undefined) {
return(undefined);
}
this.sound_is_playing = true;
this.newSound(id, this.volume);
};
r.onStopSound = function () {
this.sound_is_playing = false;
this.nextSound();
};
if (!r.sound_is_playing) {
r.nextSound();
}
};
MovieClip.prototype.stopSound = function (id) {
if (id == undefined) {
id = this.__mySound.soundID;
}
this.__mySound.stop(id);
};
MovieClip.prototype.localToLocal = function (fromMc, point) {
fromMc.localToGlobal(point);
this.globalToLocal(point);
};
MovieClip.prototype.align = function (fromClip, direction) {
var b = this.getBounds(fromClip || (this._parent));
if (direction.toLowerCase() != "v") {
this._x = this._x - ((b.xMin + b.xMax) / 2);
}
if (direction.toLowerCase() != "h") {
this._y = this._y - ((b.yMin + b.yMax) / 2);
}
};
MovieClip.prototype.alignH = function (fromClip) {
this.align(fromClip || (this._parent), "h");
};
MovieClip.prototype.alignV = function (fromClip) {
this.align(fromClip || (this._parent), "v");
};
MovieClip.prototype.setParam = function (prop, value) {
this[prop] = value;
};
MovieClip.prototype.pauseInit = function () {
var o = MovieClip.prototype;
o.played = true;
o.old_play = o.play;
o.play = function () {
if (this.pause_local_flag) {
return(undefined);
}
this.played = true;
this.old_play();
};
o.old_gotoAndPlay = o.gotoAndPlay;
o.gotoAndPlay = function () {
if (this.pause_local_flag) {
return(undefined);
}
this.gotoAndPlayed = true;
this.old_gotoAndPlay(arguments[0], arguments[1]);
};
o.old_stop = o.stop;
o.stop = function () {
this.played = false;
this.old_stop();
};
o.old_gotoAndStop = o.gotoAndStop;
o.gotoAndStop = function () {
this.played = false;
this.old_gotoAndStop(arguments[0], arguments[1]);
};
o.old_prevFrame = o.prevFrame;
o.prevFrame = function () {
this.played = false;
this.old_prevFrame();
};
o.old_nextFrame = o.nextFrame;
o.nextFrame = function () {
this.played = false;
this.old_nextFrame();
};
o.pauseInited = true;
o.paramHide();
};
MovieClip.prototype.pause = function (action) {
if (!this.pauseInited) {
this.pauseInit();
}
var action = action.toLowerCase();
if ((this.paused_mc_array != undefined) && (action != "stop")) {
delete this.pause_flag;
var i = 0;
while (i < this.paused_mc_array.length) {
delete this.paused_mc_array[i].pause_local_flag;
this.paused_mc_array[i].play();
i++;
}
delete this.paused_mc_array;
} else if ((this.paused_mc_array == undefined) && (action != "play")) {
var pause_array = this.allChilds();
pause_array.push(this);
this.paused_mc_array = new Array();
var i = 0;
while (i < pause_array.length) {
if (pause_array[i].played && (pause_array[i]._totalframes != 1)) {
pause_array[i].stop();
this.paused_mc_array.push(pause_array[i]);
pause_array[i].pause_local_flag = true;
}
i++;
}
}
};
MovieClip.prototype.creatRound = function (name, depth, radius, color) {
var r = this.createEmptyMovieClip(name, depth);
radius = (radius / 2) || 2;
r.lineStyle(radius, color || 0, 100);
r.lineTo(0, 0.15);
return(r);
};
MovieClip.prototype.creatSqv = function (name, depth, width, color, center) {
var sqv = this.createEmptyMovieClip(name, depth);
width = width || 1;
var s = 0;
if (center) {
s = (-width) / 2;
}
sqv.moveTo(s, s);
sqv.beginFill(color || 0);
sqv.lineTo(width + s, s);
sqv.lineTo(width + s, width + s);
sqv.lineTo(s, width + s);
sqv.lineTo(s, s);
sqv.endFill();
return(sqv);
};
MovieClip.prototype.setPixel = function () {
var point = this.localToGlobal({x:this._x, y:this._y});
this._x = this._x - (point.x % 1);
this._y = this._y - (point.y % 1);
};
MovieClip.prototype.addProperty("_brightness", function () {
}, function (br) {
var a;
var b;
var c;
var col;
a = this._alpha;
if (br <= 0) {
b = 100 + br;
c = 0;
} else {
b = 100 - br;
c = Math.round((br / 100) * 255);
}
col = {ra:b, rb:c, ga:b, gb:c, ba:b, bb:c, aa:a, ab:0};
new Color(this).setTransform(col);
});
MovieClip.prototype.addProperty("_gXscale", function () {
return(this._xscale * ((this._parent != undefined) && ((arguments.callee.apply(this._parent) || 100) / 100)));
}, function (newVal) {
var o = this;
var s = this._xscale;
while ((o = o._parent)) {
s = s * (o._xscale / 100);
}
newVal = newVal / s;
this._xscale = newVal * 100;
});
MovieClip.prototype.addProperty("_gYscale", function () {
return(this._yscale * ((this._parent != undefined) && ((arguments.callee.apply(this._parent) || 100) / 100)));
}, function (newVal) {
var o = this;
var s = this._yscale;
while ((o = o._parent)) {
s = s * (o._yscale / 100);
}
newVal = newVal / s;
this._yscale = newVal * 100;
});
MovieClip.prototype.paramHide();
String.prototype.__extendHistory("AS_3W_STRING_Library.as");
String.prototype.scrollBy = function (scrOffset) {
var newScroll = (this.scroll + scrOffset);
if (newScroll > this.maxscroll) {
newScroll = this.maxscroll;
} else if (newScroll < 1) {
newScroll = 1;
}
this.scroll = newScroll;
};
String.prototype.dZero = function () {
return(Number(this).dZero());
};
String.prototype.fixTags = function () {
var store = this;
this = this.split(""").join("\"").split("'").join("'").split("&").join("&");
return(this);
};
String.prototype.paramHide();
var o = XMLNode.prototype;
XML.prototype.ignoreWhite = true;
XML.prototype.clearGarbage = function (arg) {
return(String(arg).fixTags());
};
o.getByName = function (node_name) {
return(this.search("nodeName", node_name));
};
o.search = function (param, value) {
if ((value != undefined) && ((this[param] == value) || (this.attributes[param] == value))) {
return(this);
}
if ((value == undefined) && (this.attributes[param] != undefined)) {
return(this);
}
return(this.nextSibling.search(param, value) || (this.firstChild.search(param, value)));
};
o.getByValue = function (value) {
var a = this.attributes;
for (var v in a) {
if (a[v] == value) {
return(this);
}
}
return(this.nextSibling.getByValue(value) || (this.firstChild.getByValue(value)));
};
o.clear = function () {
this.nextSibling.clear();
this.firstChild.clear();
if ((this.nodeType == 3) && (this.parentNode.firstChild != this.parentNode.lastChild)) {
this.removeNode();
}
};
o.paramHide();
XML.prototype.__proxy_send = XML.prototype.send;
XML.prototype.__proxy_load = XML.prototype.load;
XML.prototype.__proxy_sendAndLoad = XML.prototype.sendAndLoad;
XML.prototype.send = function (url, window) {
DEBUG("XML_PROXY", "send: %1", this);
this.__sender = new XML(this);
this.__sender.__proxy_send(url, window);
};
XML.prototype.load = function (url) {
DEBUG("XML_PROXY", "load from %1", url);
this.__sender = new XML(this);
this.__reciever = new XML();
this.__reciever.__userTarget = this;
this.__reciever.rowData = true;
this.__reciever.onLoad = this.__proxy_onLoad;
this.__reciever.__proxy_load(url);
};
XML.prototype.sendAndLoad = function (url, target) {
DEBUG("XML_PROXY", "sendAndLoad: %1", this);
this.__userTarget = target;
this.__userURL = url;
this.__sender = new XML(this);
this.__reciever = new XML();
this.__reciever.__userTarget = target;
this.__reciever.__source = this;
this.__reciever.onLoad = this.__proxy_onLoad;
XML.prototype.__serverLog.push(this.toString());
if (XML.prototype.__serverLog.length > 5) {
XML.prototype.__serverLog.shift();
}
this.__sender.__proxy_sendAndLoad(url, this.__reciever);
};
XML.prototype.resend = function () {
var url = this.__source.__userURL;
var target = this.__source.__userTarget;
this.__source.sendAndLoad(url, target);
};
XML.prototype.onDialog = function (res) {
if (!(res === "reconnect")) {
} else {
this.resend();
}
};
XML.prototype.__proxy_onLoad = function (success) {
if (!success) {
if (this.__source.firstChild.nodeName == "report") {
return(undefined);
}
DEBUG("XML_PROXY", "loading error.");
DIALOGS.show("lost_connect", this);
return(undefined);
}
XML.prototype.__serverLog.push(this.toString());
if (XML.prototype.__serverLog.length > 5) {
XML.prototype.__serverLog.shift();
}
var res = this.__proxy_errorChek();
DEBUG("XML_PROXY", "new data: %1", this);
if (this.rowData) {
res = "OK";
}
switch (res) {
case "OK" :
this.__proxy_transfer();
return;
case "BAD_AUTH" :
DEBUG("XML_PROXY", "error %1. error processing...", res);
return(undefined);
default :
DEBUG("XML_PROXY", "error %1. error processing...", res);
DIALOGS.show("fatal_error", undefined);
this.__sendReport(res);
return(undefined);
}
};
XML.prototype.__sendReport = function (res) {
var main = new XML();
var report = main.createElement("report");
main.appendChild(report);
var info = main.createElement("info");
var d = new Date();
info.attributes.reason = res;
info.attributes.date = printf("%1/%2/%3 %4:%5", d.getFullYear(), d.getMonth(), d.getDay(), d.getHours(), d.getMinutes());
info.attributes.flashVersion = getVersion();
var pos;
var i = 0;
while (i < 3) {
pos = _level0._url.indexOf("/", pos) + 1;
i++;
}
var host = _level0._url.substr(0, pos - 1);
if (sys.mode == "FUN") {
var fileName = "index_fun.htm";
} else {
var fileName = "index.htm";
}
info.attributes.url = (host + sys.langPath) + fileName;
info.attributes.swf = _level0._url;
info.attributes.lang = SYS.language;
report.appendChild(info);
var game = main.createElement("game");
game.attributes.id = SYS.processorID;
game.attributes.revision = 0;
game.attributes.mode = ((SYS.mode == "REAL") ? "money" : "fun");
game.attributes.user = SYS.user;
if (SYS.new_age) {
game.attributes.balance = ENVIROMENT.balance;
} else {
game.attributes.balance = C_Game.userBalance;
}
report.appendChild(game);
report.appendChild(SYS.gameConfig.getByName("config"));
var flash = main.createElement("flash");
report.appendChild(flash);
var server_logs = main.createElement("server_logs");
var node;
var act;
var i = (XML.prototype.__serverLog.length - 1);
while (i >= 0) {
XML.prototype.__serverLog[i] = XML.prototype.__serverLog[i].split(newline).join("");
act = new XML(XML.prototype.__serverLog[i]);
var a = 0;
while (a < act.childNodes.length) {
server_logs.appendChild(act.childNodes[a]);
a++;
}
if (act.childNodes.length == 0) {
server_logs.appendChild(act);
}
i--;
}
report.appendChild(server_logs);
var tmp = new XML();
main.sendAndLoad("/dev/flash/coredump", undefined);
};
XML.prototype.__proxy_transfer = function () {
DEBUG("XML_PROXY", "no error, data transfered to game");
var answer = this;
var reply = this.toString();
if (reply.indexof("cards=\"") > -1) {
var chunks = reply.split("cards=\"");
DEBUG("XML_PROXY_CHUNKS", chunks);
var c = 1;
while (c < chunks.length) {
var sub = chunks[c].split("\"");
var cards = sub[0];
result = cardsConvert(cards);
DEBUG("XML_PROXY_CARDS", "%1 => %2", reply.cards, result);
sub[0] = result;
chunks[c] = sub.join("\"");
c++;
}
var final = chunks.join("cards=\"");
answer = new XML(final);
}
this.__userTarget.onData(answer);
};
_global.CardsConvert = function (cards) {
var cards = cards.split("");
var result = "";
var i = 0;
while (i < cards.length) {
if (cards[i] == "T") {
cards[i] = "10";
}
result = result + (cards[i] + cards[i + 1]);
if (i < (cards.length - 2)) {
result = result + ":";
}
i = i + 2;
}
return(result);
};
XML.prototype.__proxy_errorChek = function () {
var answer = this;
var reply = answer.getByName("reply");
var result = reply.attributes.result;
result = result.toUpperCase();
var command = this.__source.getByName("cmd");
command = command.attributes.type.toUpperCase();
if (this.__source == undefined) {
DEBUG("XML_PROXY", "just load, errors was not cheked.");
return("OK");
}
DEBUG("XML_PROXY", "result for %1 is %2", command, result);
switch (result) {
case "OK" :
return("OK");
case "CURRENT_PROCESSOR_HANGUP" :
if (command == "LOGIN") {
DEBUG("XML_PROXY", "%1 - this error handled by login component.", result);
return("OK");
}
break;
case "ANOTHER_PROCESSOR_HANGUP" :
if (command == "LOGIN") {
DEBUG("XML_PROXY", "%1 - this error handled by login component.", result);
return("OK");
}
break;
case "BAD_PROCESSOR" :
if (command == "LOGIN") {
DEBUG("XML_PROXY", "%1 - this error handled by login component.", result);
return("OK");
}
break;
case "BAD_CRED" :
if (command == "LOGIN") {
DEBUG("XML_PROXY", "%1 - this error handled by login component.", result);
return("OK");
}
break;
case "BAD_AUTH" :
var handler = {};
handler.onDialog = function () {
switch (SYS.loginType) {
case 1 :
getURL ("/");
return;
case 4 :
getURL (sys.login_authERR);
}
};
DIALOGS.show("lost_connect", handler);
return("BAD_AUTH");
}
return("unknown result - " + result);
};
XML.prototype.__serverLog = [];
var watcher = {};
watcher.keyword = ["r", "i", "p", "5", "5", "5"];
watcher.keyword.index = 0;
watcher.onKeyDown = function () {
sym = chr(Key.getAscii());
if (this.keyword[this.keyword.index] == sym) {
this.keyword.index++;
if (this.keyword.index >= this.keyword.length) {
trace("DONE!");
xml.prototype.__sendreport("MANUAL");
this.keyword.index = 0;
}
} else {
this.keyword.index = 0;
}
};
Key.addListener(watcher);
Math.__extendHistory("AS_3W_Math_Library.as");
Math.ease = function (Steps, CurrStep) {
if (Steps <= CurrStep) {
return(0);
}
if ((Steps / 2) == CurrStep) {
return(1);
}
var result = Math.sin((((CurrStep / Steps) * 180) * Math.PI) / 180);
return((result * result) * result);
};
Math.inOut = function (StartA, FinishA, Steps, CurrStep) {
if (CurrStep >= Steps) {
return(FinishA);
}
if (CurrStep <= 0) {
return(StartA);
}
return(StartA + ((FinishA - StartA) * Math.ease(Steps * 2, CurrStep)));
};
Math.length = function (point1, point2) {
var catet1 = this.abs(point1._x - point2._x);
var catet2 = this.abs(point1._y - point2._y);
return(this.sqrt(this.pow(catet1, 2) + this.pow(catet2, 2)));
};
Math.getMiddlePoint = function (point1, point2, len) {
var bigLen = this.length(point1, point2);
if (len == undefined) {
len = bigLen / 2;
}
var c = (bigLen / len);
var point = {};
point._x = point1._x + ((point2._x - point1._x) / c);
point._y = point1._y + ((point2._y - point1._y) / c);
return(point);
};
Math.getDeltaPoint = function (a_point, b_point, delta) {
var rad = 57.2957795130823;
var c = this.length(a_point, b_point);
var b = this.length(a_point, delta);
var a = this.length(b_point, delta);
var angA = Math.round(Math.acos((((b * b) + (c * c)) - (a * a)) / ((2 * b) * c)) * rad);
var angB = Math.round(Math.acos((((a * a) + (c * c)) - (b * b)) / ((2 * a) * c)) * rad);
var angC = Math.round(Math.acos((((a * a) + (b * b)) - (c * c)) / ((2 * a) * b)) * rad);
var ax = Math.round(b * Math.cos(angA / rad));
return(this.getMiddlePoint(a_point, b_point, ax));
};
Math.paramHide();
Stage.__extendHistory("AS_3W_Stage_Library.as");
Stage._xscale = 100;
Stage._yscale = 100;
var stageWatcher = new Object();
stageWatcher.onResize = function (action) {
if (!action) {
if (_global.__resizePaused == true) {
return(undefined);
}
_global.__resizePaused = true;
var ID = setInterval(function () {
stageWatcher.onResize(true);
_global.__resizePaused = false;
clearInterval(ID);
}, 500);
}
var gameW = 650;
var gameH = (Sys.panelY + 60);
var WK = (Stage.width / gameW);
var HK = (Stage.height / gameH);
var Scale = Math.min(WK, HK);
if ((Scale > 1) and (!options.fullScreen)) {
Scale = 1 + ((Scale - 1) / 3);
}
Scale = Scale * 100;
Scale = Math.floor(Scale / 5) * 5;
Scale = Scale / 100;
gameW = gameW * Scale;
gameH = gameH * Scale;
var x = Math.floor((Stage.width - gameW) / 2);
var y = Math.floor((Stage.height - gameH) / 2);
var scalailable = _global.scalailable;
var i = 0;
while (i < scalailable.length) {
targ = scalailable[i];
switch (typeof(targ)) {
case "string" :
targ = eval (targ);
if ((targ == undefined) or (targ == null)) {
break;
}
case "movieclip" :
targ._xscale = Scale * 100;
targ._yscale = Scale * 100;
targ._x = x;
targ._y = y;
}
i++;
}
};
stageWatcher.onOptionsChanged = function () {
DEBUG("StageWatcher", "fullScreen handled! fullScreen=%1", options.fullScreen);
if (this.fullScreen == options.fullScreen) {
return(undefined);
}
this.fullScreen = options.fullScreen;
DEBUG("StageWatcher", "fullScreen handled! fullScreen=%1", options.fullScreen);
_global.Stage.broadcastMessage("onResize", true);
};
Stage.addListener(stageWatcher);
Stage.onCenterScale = function (w, h, targ) {
stageWatcher.onResize(true);
};
_global.stageWatcher = stageWatcher;
Number.prototype.__extendHistory("AS_3W_Number_Library.as");
Number.prototype.dZero = function () {
if (this < 0) {
var changed = true;
this = -this;
}
if (this == 0) {
return("0.00");
}
var dStr = String(Math.floor(this * 100));
var one = dStr.substr(0, dStr.length - 2);
if (one == "") {
one = "0";
}
var two = dStr.substr(-2);
if (two == "0") {
two = "00";
}
var arr_tmp = [];
var str_tmp = one;
while (str_tmp != "") {
if (str_tmp.length < 3) {
arr_tmp.unshift(str_tmp);
break;
}
arr_tmp.unshift(str_tmp.substr(-3));
str_tmp = str_tmp.substr(0, str_tmp.length - 3);
}
one = arr_tmp.join(",");
if (changed) {
this = -this;
return((("-" + one) + ".") + two);
}
return((one + ".") + two);
};
Number.prototype.doubleZero = function () {
if (this < 10) {
this = "0" + String(this);
}
return(this);
};
Number.prototype.paramHide();
Button.prototype.addProperty("_brightness", function () {
}, function (br) {
var a;
var b;
var c;
var col;
a = this._alpha;
if (br <= 0) {
b = 100 + br;
c = 0;
} else {
b = 100 - br;
c = Math.round((br / 100) * 255);
}
col = {ra:b, rb:c, ga:b, gb:c, ba:b, bb:c, aa:a, ab:0};
new Color(this).setTransform(col);
});
Button.prototype.paramHide();
Mouse.__extendHistory("AS_3W_Mouse_Library.as");
var temp = {time:0};
temp.onMouseDown = function () {
var t = getTimer();
if (Mouse.isDoubleClick) {
Mouse.isDoubleClick = false;
this.time = t;
return(undefined);
}
if ((t - this.time) <= 300) {
Mouse.isDoubleClick = true;
Mouse.broadcastMessage("onDoubleClick");
}
this.time = t;
};
Mouse.addListener(temp);
Mouse.isDoubleClick = false;
delete temp;
Mouse.paramHide();
_global.C_LoginCLASS = function () {
this.description = "LOGIN";
define("LOGIN_OK", 1, "C_LoginCLASS");
define("LOGIN_CURRENT_PROCESSOR_HANGUP", 2, "C_LoginCLASS");
define("LOGIN_ANOTHER_PROCESSOR_HANGUP", 3, "C_LoginCLASS");
define("LOGIN_ERR_XML", -1, "C_LoginCLASS");
define("LOGIN_ERR_BAD_PROCESSOR", -2, "C_LoginCLASS");
define("LOGIN_ERR_BAD_CRED", -3, "C_LoginCLASS");
define("LOGIN_ERR_UNKNOWN", -50, "C_LoginCLASS");
LoginWindow.Stop();
};
C_LoginCLASS.prototype.beginLogin = function (cb_targ, cb_event) {
this.cb_targ = cb_targ;
this.cb_event = cb_event;
switch (Number(SYS.loginType)) {
case 1 :
default :
DEBUG(this, "login by dialog");
LoginWindow.gotoAndStop(2);
return;
case 4 :
}
DEBUG(this, "login by external auth");
this.login_ext();
};
C_LoginCLASS.prototype.login_ext = function () {
LoginWindow.gotoAndStop(1);
var authXML = new XML();
authXML.control = this;
authXML.onLoad = function (success) {
if (success) {
var login = this.getByName("auth").attributes.username;
var password = this.getByName("auth").attributes.password;
if (login == "") {
this.control.login_ext_complete(LOGIN_ERR_UNKNOWN);
} else {
this.control.login(login, password, this.control, "login_ext_complete");
}
} else {
this.control.login_ext_complete(LOGIN_ERR_UNKNOWN);
}
};
authXML.load(SYS.login_authURI);
};
C_LoginCLASS.prototype.login_ext_complete = function (code, info) {
_level0.answercode = code;
switch (code) {
case LOGIN_OK :
this.loginComplete();
return;
case LOGIN_CURRENT_PROCESSOR_HANGUP :
_global.LoginWindow.onLoginResult(code, info);
return;
case LOGIN_ANOTHER_PROCESSOR_HANGUP :
_global.LoginWindow.onLoginResult(code, info);
return;
default :
getURL (SYS.login_authERR, "_self");
}
};
C_LoginCLASS.prototype.login = function (login, password, cb_targ, cb_event) {
this.cb_targ = cb_targ;
this.cb_event = cb_event;
this.loginBegin();
var loginXML = new XML();
var cmd = loginXML.createElement("cmd");
cmd.attributes.type = "login";
cmd.attributes["processor-id"] = SYS.prefix + SYS.processorID;
cmd.attributes.user = login;
cmd.attributes.password = password;
loginXML.appendChild(cmd);
var answerXML = new XML();
answerXML.targ = this;
answerXML.onLoad = function (success) {
this.targ.onAnswer(success, this);
};
DEBUG(this, "send: %1", loginXML);
loginXML.sendAndLoad(SYS.loginPath, answerXML);
};
C_LoginCLASS.prototype.onAnswer = function (success, answer) {
if (!success) {
this.endLogin(LOGIN_ERR_XML);
}
var reply = answer.getByName("reply");
var result = reply.attributes.result;
result = result.toUpperCase();
DEBUG(this, "login result is %1", result);
switch (result) {
case "OK" :
break;
case "CURRENT_PROCESSOR_HANGUP" :
break;
case "ANOTHER_PROCESSOR_HANGUP" :
this.endLogin(LOGIN_ANOTHER_PROCESSOR_HANGUP, reply.attributes["processor-id"]);
return(undefined);
case "BAD_PROCESSOR" :
this.endLogin(LOGIN_ERR_BAD_PROCESSOR);
return(undefined);
case "BAD_CRED" :
this.endLogin(LOGIN_ERR_BAD_CRED);
return(undefined);
default :
this.endLogin(LOGIN_ERR_UNKNOWN);
return(undefined);
}
SYS.gameConfig = answer;
chips = SYS.gameConfig.getByName("chips");
if (chips == undefined) {
var chips = SYS.gameConfig.createElement("chips");
chips.attributes.range = "1:5:10:25:100";
chips.attributes.def = "2";
SYS.gameConfig.appendChild(chips);
}
var real = SYS.gameConfig.createElement("real");
real.attributes.balance = reply.attributes.balance;
SYS.gameConfig.appendChild(real);
var reply = answer.getByName("reply");
SYS.auth = reply.attributes.auth;
SYS.user = reply.attributes.user;
if (!SYS.new_age) {
SequenceLoader.loadFile(ID_SERVER, SYS.serverFileName, 5);
}
if (result == "CURRENT_PROCESSOR_HANGUP") {
this.endLogin(LOGIN_CURRENT_PROCESSOR_HANGUP);
return(undefined);
}
this.endLogin(LOGIN_OK);
return(undefined);
while (i < xml_array.length) {
param = xml_array[i].attributes.name;
message = message + (((("<v name='" + param) + "' value='") + _level0[param]) + "'/>\r");
i++;
}
message = message + "</cmd>";
var xmldoc = new XML(message);
var x = new XML();
xmldoc.sendAndLoad(this.urlHttp, x);
x.onLoad = arguments.callee;
return(undefined);
};
C_LoginCLASS.prototype.endLogin = function (code, info) {
DEBUG("C_Login", "call back: %1 (%2, %3)", this.cb_event, code, info);
if (this.cb_targ != undefined) {
this.cb_targ[this.cb_event](code, info);
}
};
C_LoginCLASS.prototype.loginBegin = function () {
};
C_LoginCLASS.prototype.loginComplete = function () {
sequenceLoader.unpause();
};
define("SNDL_FREE", 1, "sound lib");
define("SNDL_BUSY", 2, "sound lib");
define("SNDL_AUTO", "auto conv", "sound lib");
_global.soundLib = {};
var sl = soundLib;
sl.description = "soundLib";
sl.__lib = {};
sl.__queue = [];
sl.state = SNDL_FREE;
sl.register = function (id, target, type) {
this.__lib[id] = {target:target, type:type};
};
sl.soundFX = function (id, volume) {
if (!Options.fxOn) {
return(undefined);
}
var task = this.__lib[id];
if (task == undefined) {
DEBUG(this, "not registered sound fx %1", id);
return(undefined);
}
var ind = random(99999999);
task.target["__sndl" + ind] = new Sound(task.target);
var snd = task.target["__sndl" + ind];
if (volume == undefined) {
volume = 100;
}
volume = volume / 100;
snd.attachSound(id);
snd.setVolume(Options.fxVolume * volume);
snd.onSoundComplete = function () {
delete this;
};
snd.start();
};
sl.sound = function (id, target, funcName, args) {
DEBUG(this, "sound %1", id);
options.dealerOn = true;
options.dealerVolume = 100;
this.__queue.push({id:id, target:target, funcName:funcName, args:args});
if (target == SNDL_AUTO) {
Conv.stop();
}
this.__nextSound();
};
sl.__nextSound = function () {
if (this.state != SNDL_FREE) {
return(undefined);
}
if (this.__queue.length < 1) {
return(undefined);
}
var command = this.__queue.shift();
var id = command.id;
var task = this.__lib[id];
if (task == undefined) {
DEBUG(this, "not registered sound %1", id);
if (command.target == SNDL_AUTO) {
Conv.play();
}
this.__nextSound();
return(undefined);
}
delete task.target.__sndl;
task.target.__sndl = new Sound(task.target);
var snd = task.target.__sndl;
snd.attachSound(id);
snd.onSoundComplete = this.onSoundComplete;
snd.target = command.target;
snd.funcName = command.funcName;
snd.args = command.args;
if (!snd.duration) {
DEBUG("WARNING", "there is no %1 sound in the library!", id);
snd.onSoundComplete();
return(undefined);
}
if (!Options.dealerOn) {
snd.onSoundComplete();
return(undefined);
}
snd.setVolume(Options.dealerVolume);
snd.start();
this.state = SNDL_BUSY;
};
sl.onSoundComplete = function () {
if (this.target == SNDL_AUTO) {
Conv.play();
this.target = undefined;
}
if (this.target) {
this.target[this.funcName](this.args);
}
soundLib.state = SNDL_FREE;
soundLib.__nextSound();
};
_global.C_BaseServerCLASS = function () {
};
C_BaseServerCLASS.prototype.init = function () {
this.urlHttp = SYS.loginPath;
this.FXML = function (arg, path, description) {
var description = description;
var message = arg;
var urlHttp = path;
var sender = new XML(message);
var receiver = new XML();
receiver.onLoad = function (s) {
wait_clock_mc._visible = 0;
_level0._visible = 1;
if (isError(this, 1)) {
return(undefined);
}
var at = this.firstChild.attributes;
C_Server["serverREPLY_" + at.type](this);
DEBUG("FXML REPLY", this, description);
};
wait_clock_mc._visible = 1;
_level0._visible = 0;
sender.sendAndLoad(urlHttp, receiver);
};
this.FXMLcmd = function (arg, path, description, obj) {
var tt = this;
var obj = obj;
var description = description;
var message = arg;
var urlHttp = path;
var sender = new XML(message);
var receiver = new XML();
receiver.onLoad = function (s) {
tt.hideWaitClock();
DEBUG("FXMLcmd_REPLY", "updated.");
if (s) {
DEBUG("FXMLcmd_REPLY", "onLoad event occur! All is ok!");
}
if (!s) {
DEBUG("FXMLcmd_REPLY", "onLoad event occur! But transmition is failed!..");
}
DEBUG("FXMLcmd_REPLY", "recieved: %1", this);
if (isError(this, 1)) {
DEBUG("FXMLcmd_REPLY", "isError reports error, canceling operation.");
return(undefined);
}
var at = this.firstChild.attributes;
var funcName = ("serverREPLY_" + at.type);
DEBUG("FXMLcmd_REPLY", "callBack: %1", funcName);
C_Server[funcName](this, obj);
DEBUG("FXMLcmd REPLY", this, description);
};
tt.showWaitClock = function () {
DEBUG("tt.showWaitClock", "show");
tt.wait_clock_ID = setInterval(function () {
wait_clock_mc._visible = 1;
clearInterval(tt.wait_clock_ID);
}, 500);
};
tt.hideWaitClock = function () {
DEBUG("tt.hideWaitClock", "hide");
clearInterval(tt.wait_clock_ID);
wait_clock_mc._visible = 0;
};
tt.showWaitClock();
DEBUG("FXMLcmd", "arguments: %1", arguments);
DEBUG("FXMLcmd", "send to %1 trough xml %2", urlHttp, sender);
sender.sendAndLoad(urlHttp, receiver);
};
this.FXML2 = function (arg, path, obj) {
var tt = this;
var obj = obj;
var message = arg;
var urlHttp = path;
var sender = new XML(message);
var receiver = new XML();
receiver.onLoad = function (s) {
tt.hideWaitClock();
if (isError(this, 1)) {
return(undefined);
}
var at = this.firstChild.attributes;
C_Server["serverREPLY_" + at.type](this, obj);
};
tt.showWaitClock = function () {
tt.wait_clock_ID = setInterval(function () {
wait_clock_mc._visible = 1;
clearInterval(tt.wait_clock_ID);
}, 500);
};
tt.hideWaitClock = function () {
clearInterval(tt.wait_clock_ID);
wait_clock_mc._visible = 0;
};
tt.showWaitClock();
sender.sendAndLoad(urlHttp, receiver);
tt.store_cmd(sender, urlHttp, receiver);
};
this.store_cmd = function (sender, urlhttp, receiver) {
this._sender = sender;
this._urlhttp = urlhttp;
this._receiver = receiver;
};
this.restore_cmd = function () {
this._sender.sendAndLoad(this._urlHttp, this._receiver);
};
};
C_BaseServerCLASS.prototype.changeProtocolVersion = function () {
};
C_BaseServerCLASS.prototype.hangup_redirect = function (arg) {
};
C_BaseServerCLASS.prototype.loadConfig = function () {
};
C_BaseServerCLASS.prototype.logout = function () {
};
_global.GF_lostConnect = function (arg) {
var err_txt = "The connection with the server has been lost. Please, check your internet connection and press Ok to reconnect or Cancel to exit casino.";
var err_txt2 = LANG.alert_lostconnect;
var err = err_txt;
var tt = this;
tt.reconnect = function (arg) {
if (arg) {
var curl = _url.split("//");
curl.pop();
curl.join("//");
getURL (curl, "_self");
} else {
getURL ("javascript:window.close();");
}
};
_level0.dialog.setDialog(err, tt, "reconnect");
};
_global.isError = function (ob, toChat, arg) {
var tt = this;
var ob = ob;
if (!ob.firstChild) {
GF_lostConnect(tt);
return(true);
}
var er = (ob.firstChild.attributes.result != "OK");
var tr = ob.firstChild.attributes.trace;
if (tr == undefined) {
tr = ob.firstChild.attributes.error;
}
if (er) {
if (ob.firstChild.attributes.url != undefined) {
getURL (ob.firstChild.attributes.url, "_top");
return(undefined);
}
if (ob.firstChild.attributes.erratas != undefined) {
var erratas = C_Server.erratas[ob.firstChild.attributes.erratas];
if (erratas) {
getURL (erratas.url, erratas.target);
return(undefined);
}
}
code = ob.firstChild.attributes.result;
if (code == "CURRENT_PROCESSOR_HANGUP") {
C_Server.restore_game = true;
return(undefined);
}
if (code == "ANOTHER_PROCESSOR_HANGUP") {
C_Server.hangup_redirect(ob);
return(true);
}
C_Server._GLOCK();
}
return(er);
};
this._GLOCK = function () {
DEBUG("_GLOCK", " =(");
var message = LANG.alert_tryagain;
G_loginTray.alert = message;
G_loginTray.gotoAndStop(2);
G_loginTray.password = "";
_level0._visible = 0;
};
C_BaseServerCLASS.prototype.SERVER_ERROR_DIALOG = function (arg) {
var C_dialog = _level0.dialog;
var txt = arg;
var xp1 = C_dialog.Ok._x;
var xp2 = C_dialog.Cancel._x;
if (C_dialog.Cancel != undefined) {
C_dialog.Ok._x = xp1 + ((xp2 - xp1) / 2);
C_dialog.Cancel._visible = 0;
}
var handler = "block";
this.block = function () {
C_Game.lock();
_level0._visible = 0;
};
var message = LANG[txt];
C_dialog.setDialog(message, this, handler);
};
ASSetPropFlags(_global, "isError", 131);
_global.isXML = function (x) {
return((x instanceof XML) || (x instanceof XMLNode));
};
ASSetPropFlags(_global, "isXML", 1);
_global.localStore = function (store) {
DEBUG("localStore", "init local store %1", store);
this.description = "local stored data";
this.__name = store;
this.__lso = sharedobject.getLocal(store);
this.__resolve = function (prop) {
var getter = function () {
DEBUG("localStore", "READ property %1 from %2 = %3", prop, this.__name, this.__lso.data[prop]);
return(this.__lso.data[prop]);
};
var setter = function (val) {
this.__lso.data[prop] = val;
DEBUG("localStore", "WRITE property %1 in %2 = %3", prop, this.__name, this.__lso.data[prop]);
};
this.addProperty(prop, getter, setter);
DEBUG("localStore", "init property %1 from %2", prop, this.__name);
return(this[prop]);
};
this.paramHide();
};
_global.EVENT = {};
AsBroadcaster.initialize(EVENT);
EVENT.send = function (sender, event) {
args = arguments;
args.splice(1, 1);
args.unshift(event);
DEBUG("EVENT", "send (%1)", args);
this.broadcastMessage.apply(this, args);
};
_global.C_ConveyorCLASS = function (notFrames) {
this.init(notFrames);
};
C_ConveyorCLASS.prototype.init = function (notFrames) {
this.description = "conv";
this.aConveyor = new Array();
this.conveyorON = true;
this.bookmark = 0;
this.shorts = 0;
this.turbo = false;
this.noSound = false;
this.sincSoundLength = 800;
this.frameTimer = {};
if (!notFrames) {
this.frameTimer.root = this;
this.frameTimer.onEnterFrame = function () {
if (this.sleep) {
return(undefined);
}
this.nTime++;
if (this.nTime >= this.timeOut) {
this.root.engine();
}
};
this.ConvTimer.addListener(this.frameTimer);
this.pauseValue = "1";
} else {
this.pauseValue = 50;
}
this.engine();
ASSetPropFlags(this, null, 1);
};
C_ConveyorCLASS.prototype.ConvTimer = _root.createEmptyMovieClip("ConvTimer", -9122);
C_ConveyorCLASS.prototype.ConvTimer.onEnterFrame = function () {
this.broadcastMessage("onEnterFrame");
};
AsBroadcaster.initialize(_root.ConvTimer);
_global.anim_depth = _root.createEmptyMovieClip("anim_depth", 15400);
anim_depth.onUnload = function () {
DEBUG("conveyor", "anim depth crashed!");
trace("error: conveyor anim depth crashed!");
};
C_ConveyorCLASS.prototype.play = function () {
if (this.conveyorON) {
return(undefined);
}
if (this.frame) {
this.frameTimer.sleep = false;
}
this.conveyorON = true;
};
C_ConveyorCLASS.prototype.stop = function () {
if (this.frame) {
this.frameTimer.sleep = true;
}
this.conveyorON = false;
};
C_ConveyorCLASS.prototype.pause = function (pause) {
this.aConveyor = [[function () {
}, pause]].concat(this.aConveyor);
};
C_ConveyorCLASS.prototype.put = function () {
if (this.noSound && (arguments[1] == "newSound")) {
return(undefined);
}
this.aConveyor.push(arguments);
if ((!this.bookmark) && (this.aConveyor.length > (200 + this.shorts))) {
var tmp_arr = this.aConveyor.splice(100 + this.shorts);
this.shorts++;
this.put(function () {
this.aConveyor = arguments[0].concat(this.aConveyor);
this.shorts--;
}, this, 0, tmp_arr);
}
};
C_ConveyorCLASS.prototype.insert = function () {
if (this.noSound && (arguments[1] == "newSound")) {
return(undefined);
}
this.aConveyor.unshift(arguments);
};
C_ConveyorCLASS.prototype.include = function () {
this.put(this, "bookmark_add", 0);
this.put.apply(this, arguments);
this.put(this, "bookmark_remove", 0);
};
C_ConveyorCLASS.prototype.engine = function () {
if (!this.conveyorON) {
this.pause(this.pauseValue);
}
var cTime;
var tA = this.aConveyor[0];
if (this.aConveyor.length == 0) {
cTime = this.pauseValue;
} else {
this.aConveyor.shift();
var calledFunction;
var calledObject;
var argumentsObject;
DEBUG(this, "processing %1 with type %2", tA[0], typeof(tA[0]));
if (typeof(tA[0]) != "function") {
calledObject = tA[0];
if (typeof(calledObject) == "string") {
calledObject = eval (calledObject);
}
cTime = tA[2];
calledFunction = calledObject[tA[1]];
argumentsObject = tA.slice(3);
if (typeof(calledFunction) == "function") {
calledFunction.apply(calledObject, argumentsObject);
} else {
calledObject[tA[1]] = argumentsObject[0];
}
} else if (!isNaN(tA[1])) {
cTime = tA[1];
calledFunction = tA[0];
argumentsObject = tA.slice(2);
calledFunction.apply(null, argumentsObject);
} else {
cTime = tA[2];
calledFunction = tA[0];
calledObject = tA[1];
if (typeof(calledObject) == "string") {
calledObject = eval (calledObject);
}
argumentsObject = tA.slice(3);
calledFunction.apply(calledObject, argumentsObject);
}
}
clearInterval(this.interval);
if (cTime != 0) {
var timeType = typeof(cTime);
var timeValue = Number(cTime);
if (timeType == "string") {
this.frameTimer.sleep = false;
if (this.turbo) {
timeValue = 1;
}
this.frameTimer.timeOut = timeValue;
this.frameTimer.nTime = 0;
this.frame = true;
} else if (timeType == "number") {
this.frameTimer.sleep = true;
this.interval = setInterval(this, "engine", timeValue);
this.frame = false;
} else {
this.engine();
}
} else {
this.engine();
}
};
C_ConveyorCLASS.prototype.anim = function (mc_anim, mc_to, params_ob) {
var to_end = params_ob.to_end;
var speed = (params_ob.speed || 20);
var scale = params_ob.scale;
var x_f = mc_to._x;
var y_f = mc_to._y;
var delta = params_ob.delta;
var rotate = mc_to._rotation;
var x;
var y;
var x_s;
var y_s;
var x_st = mc_anim._x;
var y_st = mc_anim._y;
if (scale) {
var scale_x = mc_anim._xscale;
var scale_y = mc_anim._yscale;
var scale_to_x = mc_to._xscale;
var scale_to_y = mc_to._yscale;
}
this.put(mc_anim, "swapDepths", 0, _root.anim_depth);
this.put(_root, "newSound", 0, "movie", 50);
var pathLength = Math.sqrt(Math.pow(Math.abs(mc_anim._x - mc_to._x), 2) + Math.pow(Math.abs(mc_anim._y - mc_to._y), 2));
var nSteps = Math.round(pathLength / speed);
if (isNaN(nSteps)) {
return(undefined);
}
if (nSteps < 1) {
nSteps = 1;
}
var i = 1;
while (i <= nSteps) {
if ((!to_end) && (i >= (nSteps - (nSteps / 5)))) {
break;
}
if (this.turbo) {
i = (to_end ? (nSteps) : (nSteps - (nSteps / 5)));
}
if (scale) {
x_s = Math.inOut(scale_x, scale_to_x, nSteps, i);
y_s = Math.inOut(scale_y, scale_to_y, nSteps, i);
this.put(mc_anim, "scaleTo", 0, x_s, y_s);
}
x = Math.inOut(x_st, x_f, nSteps, i);
y = Math.inOut(y_st, y_f, nSteps, i);
this.put(mc_anim, "movieTo", "1", x, y);
this.put(mc_anim, "rotateBy", "1", rotate);
i++;
}
this.put(mc_anim, "swapDepths", 0, _root.anim_depth);
};
C_ConveyorCLASS.prototype.turbo_On = function () {
DEBUG(this, "turbo mode activated.");
this.turbo = true;
};
C_ConveyorCLASS.prototype.turbo_Off = function () {
DEBUG(this, "turbo mode deactivated.");
this.turbo = false;
};
C_ConveyorCLASS.prototype.bookmark_add = function () {
this.aConveyor.push("#bookmark#");
this.bookmark++;
};
C_ConveyorCLASS.prototype.bookmark_remove = function (rev) {
if (this.bookmark <= 0) {
return(undefined);
}
this.bookmark--;
var n = this.aConveyor.length;
var tmp_array = [];
while ((this.aConveyor[this.aConveyor.length - 1] != "#bookmark#") && ((n--) > 0)) {
tmp_array.push(this.aConveyor.pop());
}
this.aConveyor.pop();
if (!rev) {
tmp_array.reverse();
}
this.aConveyor = tmp_array.concat(this.aConveyor);
};
C_ConveyorCLASS.prototype.create = function (notFrames) {
return(new C_ConveyorCLASS(notFrames));
};
C_ConveyorCLASS.prototype.close = function () {
this.stop();
this.ConvTimer.removeListener(this);
clearInterval(this.interval);
};
_global.empty = function () {
};
C_ConveyorCLASS.prototype.onOptionsChanged = function () {
if (Options.fastMode == this.turbo) {
return(undefined);
}
if (Options.fastMode) {
this.turbo_on();
} else {
this.turbo_off();
}
};
C_ConveyorCLASS.prototype.view = function () {
var a = [];
var b = this.aConveyor;
var i = 0;
while (i < b.length) {
a.push(b[i][1]);
i++;
}
return(a);
};
C_ConveyorCLASS.prototype.clear = function () {
this.aConveyor = [];
};
_global.Conv = new C_ConveyorCLASS();
ASSetPropFlags(_global, "Conv,empty,anim_depth,addConveyor", 131);
ASSetPropFlags(_global, "C_ConveyorCLASS", 131);
_global.Image = function (uri, mc) {
this._targetMovie = mc;
this.data = new XML();
this.data.owner = this;
if (uri != undefined) {
this.tmp_interval = setInterval(this, "load", 20, uri);
}
};
Image.prototype.load = function (uri, mc) {
clearInterval(this.tmp_interval);
this._targetMovie = mc || (this._targetMovie);
this._uri = uri;
this.data.onLoad = function (success) {
var o = this.owner;
o._trace();
o.onLoad(success);
o.close();
};
this._traceID = setInterval(this, "_trace", 50);
this.data.load(uri);
};
Image.prototype.close = function (uri, mc) {
clearInterval(this._traceID);
};
Image.prototype.getBytesLoaded = function () {
return(this.data.getBytesLoaded());
};
Image.prototype.getBytesTotal = function () {
return(this.data.getBytesTotal());
};
Image.prototype._trace = function () {
if (this.getBytesTotal() <= 0) {
return(undefined);
}
this.percent = Math.floor((this.getBytesLoaded() / this.getBytesTotal()) * 10000) / 100;
this.trace();
};
Image.prototype.trace = function () {
};
Image.prototype.onLoad = function (success) {
if (success) {
if (this._targetMovie) {
this._targetMovie.loadMovie(this._uri);
}
}
};
Image.prototype.addProperty("src", function () {
return(this._uri);
}, Image.prototype.load);
ASSetPropFlags(_global, "Image", 131);
_global.Preloader = function () {
this.items = [];
var i = 0;
while (i < arguments.length) {
this.addItem(arguments[i]);
i++;
}
};
Preloader.prototype.addItem = function () {
var o;
var a;
if (arguments[0] instanceof Array) {
a = arguments[0];
} else {
a = arguments;
}
var i = 0;
while (i < a.length) {
o = new Image();
o.owner = this;
o.onLoad = function (s) {
this.owner.onItemLoaded(s);
};
this.items.push([o, a[i]]);
this.loadInited = true;
i++;
}
if (!this.curentLoad) {
this.onItemLoaded();
}
return(o);
};
Preloader.prototype.onItemLoaded = function (success) {
var o = ((this.curentLoad = this.items.shift()));
if (this.curentLoad) {
o[0].load(o[1]);
} else if (this.loadInited) {
this.onLoad();
}
};
Preloader.prototype.onLoad = function () {
this.trace("Loading Complette");
};
ASSetPropFlags(_global, "Preloader", 131);
_global.C_ElasticEngineCLASS = function () {
};
C_ElasticEngineCLASS.prototype = new Object();
C_ElasticEngineCLASS.prototype.init = function (w, h, minWidth, minHeight) {
Stage.scaleMode = "noScale";
Stage.align = "TL";
var o = ((Stage.elasticListener = {}));
o.minHeight = minHeight || (h);
o.minWidth = minWidth || (w);
o.width = w;
o.height = h;
o.onResize = function () {
var o = Stage;
if ((o.width <= 0) || (o.height <= 0)) {
this.locked = true;
return(undefined);
}
this.locked = false;
var w = Math.max(this.minWidth, o.width);
var h = Math.max(this.minHeight, o.height);
this.w_d = Math.round(w) - this.width;
this.h_d = Math.round(h) - this.height;
this.width = w;
this.height = h;
};
Stage.addListener(o);
var mc = MovieClip.prototype;
var btn = Button.prototype;
var txt = TextField.prototype;
mc.registerElastic = (btn.registerElastic = (txt.registerElastic = this.registerElastic));
mc.registerInterfaceElastic = this.registerInterfaceElastic;
mc.removeElastic = (btn.removeElastic = (txt.removeElastic = this.registerElastic));
ASSetPropFlags(mc, "registerElastic,registerInterfaceElastic", 131);
ASSetPropFlags(btn, "registerElastic", 131);
ASSetPropFlags(txt, "registerElastic", 131);
delete _global.C_ElasticEngineCLASS;
};
C_ElasticEngineCLASS.prototype.registerElastic = function () {
var o = {root:this};
o.onResize = function () {
var o = this.root;
var s = Stage.elasticListener;
if (s.locked) {
return(undefined);
}
if (!this.inited) {
this._width = o._width;
this._height = o._height;
this._x = o._x;
this._y = o._y;
this.inited = true;
}
var a = this.elasticParams;
var value;
var i = 0;
while (i < a.length) {
o[a[i][1]] = o[a[i][1]] + s[a[i][0]];
i++;
}
for (var v in this.centerParams) {
if (v == "w_c") {
this._width = this._width + (s.w_d / this.centerParams.w_c);
o._width = Math.round(this._width);
} else if (v == "h_c") {
this._height = this._height + (s.h_d / this.centerParams.h_c);
o._height = Math.round(this._height);
} else if (v == "x_c") {
this._x = this._x + (s.w_d / this.centerParams.x_c);
o._x = Math.round(this._x);
} else if (v == "y_c") {
this._y = this._y + (s.h_d / this.centerParams.y_c);
o._y = Math.round(this._y);
}
}
o.onResize();
};
o.elasticParams = [];
var params = {};
params.x = ["w_d", "_x"];
params.w = ["w_d", "_width"];
params.y = ["h_d", "_y"];
params.h = ["h_d", "_height"];
o.centerParams = {};
var centerParam;
var centerValue;
var i = 0;
while (i < arguments.length) {
centerParam = arguments[i].substr(0, 1);
centerValue = Number(arguments[i].substr(2));
if (centerValue) {
if (centerParam == "x") {
o.centerParams.x_c = centerValue;
} else if (centerParam == "y") {
o.centerParams.y_c = centerValue;
} else if (centerParam == "w") {
o.centerParams.w_c = centerValue;
} else if (centerParam == "h") {
o.centerParams.h_c = centerValue;
}
} else {
o.elasticParams.push(params[arguments[i]]);
}
i++;
}
Stage.addListener(o);
};
C_ElasticEngineCLASS.prototype.registerInterfaceElastic = function () {
var o = {root:this};
o.onResize = function () {
var o = this.root;
var s = Stage.elasticListener;
if (s.locked) {
return(undefined);
}
if (!this.inited) {
this.width = o.width;
this.height = o.height;
this._x = o._x;
this._y = o._y;
this.inited = true;
}
var a = this.elasticParams;
var value;
var interface = this.interface;
var args = [];
var centerParams = this.centerParams;
var i = 0;
while (i < a.length) {
o[a[i][1]] = o[a[i][1]] + s[a[i][0]];
i++;
}
if (interface.w) {
args.push(o.width + s.w_d);
} else if (interface.w_l) {
args.push(o.width);
} else if (centerParams.w_c) {
this.width = this.width + (s.w_d / centerParams.w_c);
args.push(Math.round(this.width));
}
if (interface.h) {
args.push(o.height + s.h_d);
} else if (interface.h_l) {
args.push(o.height);
} else if (centerParams.h_c) {
this.height = this.height + (s.h_d / centerParams.h_c);
args.push(Math.round(this.height));
}
if (centerParams.x_c) {
this._x = this._x + (s.w_d / centerParams.x_c);
o._x = Math.round(this._x);
}
if (centerParams.y_c) {
this._y = this._y + (s.h_d / centerParams.y_c);
o._y = Math.round(this._y);
}
o.setSize.apply(o, args);
o.onResize();
};
o.elasticParams = [];
o.interface = {};
o.centerParams = {};
var params = {};
params.x = ["w_d", "_x"];
params.y = ["h_d", "_y"];
var centerParam;
var centerValue;
var i = 0;
while (i < arguments.length) {
if (params[arguments[i]]) {
o.elasticParams.push(params[arguments[i]]);
} else {
centerParam = arguments[i].substr(0, 1);
centerValue = Number(arguments[i].substr(2));
if (centerValue) {
if (centerParam == "x") {
o.centerParams.x_c = centerValue;
} else if (centerParam == "y") {
o.centerParams.y_c = centerValue;
} else if (centerParam == "w") {
o.centerParams.w_c = centerValue;
} else if (centerParam == "h") {
o.centerParams.h_c = centerValue;
}
} else {
o.interface[arguments[i]] = true;
}
}
i++;
}
Stage.addListener(o);
return(true);
};
C_ElasticEngineCLASS.prototype.removeElastic = function () {
var a = Stage._listeners;
var i = 0;
while (i < a.length) {
if (a[i].root == this) {
Stage.removeListener(a[i]);
return(undefined);
}
i++;
}
};
Stage.initElastic = function (w, h, minWidth, minHeight) {
var elasticEngine = new C_ElasticEngineCLASS();
elasticEngine.init(w, h, minWidth, minHeight);
};
ASSetPropFlags(_global, "C_ElasticEngine", 131);
ASSetPropFlags(Stage, "initElastic", 131);
Button.prototype.showAlt = (MovieClip.prototype.showAlt = function (text) {
DEBUG("");
if (this.__alt) {
this.hideAlt();
}
this.__alt = HINT;
HINT._hint = [text, place];
});
Button.prototype.hideAlt = (MovieClip.prototype.hideAlt = function () {
if (this.__alt == undefined) {
return(undefined);
}
this.__alt = undefined;
HINT.hide();
});
Button.prototype.addAlt = (MovieClip.prototype.addAlt = function (t) {
var o = this;
var fIn = function () {
this.showAlt(t);
};
var fOut = function () {
this.hideAlt();
};
var fOut2 = function () {
this.oldRelease();
this.hideAlt();
};
if (arguments.length > 1) {
fIn = arguments[0];
fOut = arguments[1];
}
o.onRollOver = fIn;
o.onDragOut = (o.onRollOut = (o.onPress = (o.onReleaseOutside = fOut)));
o.useHandCursor = false;
});
MovieClip.prototype.showAltInPoint = function (text, point) {
if (this.__alt) {
this.hideAlt();
}
var o = ((this.__alt = new C_AltCLASS(text, this)));
o.point = point;
};
MovieClip.prototype.showAlt = (MovieClip.prototype.showAlt = function (text) {
if (this.__alt) {
this.hideAlt();
}
this.__alt = HINT;
HINT._hint = [text, this];
});
MovieClip.prototype.hideAlt = (MovieClip.prototype.hideAlt = function () {
if (this.__alt == undefined) {
return(undefined);
}
this.__alt = undefined;
HINT.hide();
});
Mouse.hideAlt = (MovieClip.prototype.hideAlt = function () {
if (this.__alt == undefined) {
DEBUG("mouse", "hideAlt internal break. HINT.hide() NOT called, couse __alt property undefined.");
return(undefined);
}
DEBUG("mouse", "hideAlt process.");
this.__alt = undefined;
HINT.hide();
});
Mouse.showAlt = function (text) {
DEBUG("mouse...01", "showAlt(%1) process.", text);
this.__alt = HINT;
HINT._hint = [text, this];
return(undefined);
};
ASSetPropFlags(MovieClip.prototype, "showAlt,hideAlt,addAlt", 131);
ASSetPropFlags(Button.prototype, "showAlt,hideAlt,addAlt", 131);
ASSetPropFlags(Mouse.prototype, "showAlt,hideAlt,addAlt", 131);
_global.C_My = {};
C_My.dZerro = function () {
if (arguments[0] == 0) {
return("0.00");
}
var dStr = String(Math.floor(arguments[0] * 100));
var one = dStr.substr(0, dStr.length - 2);
if (one == "") {
one = "0";
}
var two = dStr.substr(-2);
if (two == "0") {
two = "00";
}
var arr_tmp = [];
var str_tmp = one;
while (str_tmp != "") {
if (str_tmp.length < 3) {
arr_tmp.unshift(str_tmp);
break;
}
arr_tmp.unshift(str_tmp.substr(-3));
str_tmp = str_tmp.substr(0, str_tmp.length - 3);
}
one = arr_tmp.join(",");
return((one + ".") + two);
};
C_My.paramHide();
ASSetPropFlags(_global, "C_My", 131);
_global.C_ShortcutsCLASS = function () {
this._listeners = [];
this._shortCutListeners = [];
this.keys = {};
this.init();
};
C_ShortcutsCLASS.prototype = new Object();
C_ShortcutsCLASS.prototype.init = function () {
Key.addShortcut = function (listener) {
this.shortcutsEngine.addListener.apply(this.shortcutsEngine, arguments);
};
Key.removeShortcut = function (listener) {
this.shortcutsEngine.removeListener(listener);
};
Key.addShortcutListener = function (listener) {
this.shortcutsEngine.addShortcutListener.apply(this.shortcutsEngine, arguments);
};
Key.removeShortcutListener = function (listener) {
this.shortcutsEngine.removeShortcutListener(listener);
};
Key.getShortcut = function () {
return(this.shortcutsEngine.getShortcut());
};
Key.addListener(this);
ASSetPropFlags(Key, "addShortcut,removeShortcut", 131);
ASSetPropFlags(Key, "addShortcutListener,removeShortcutListener,getShortcut", 131);
var o = ((this.nonFunctionalKeys = {}));
o[38] = "UP";
o[40] = "DOWN";
o[37] = "LEFT";
o[39] = "RIGHT";
o[46] = "DELETE";
o[36] = "HOME";
o[35] = "END";
o[34] = "PAGEDOWN";
o[33] = "PAGEUP";
o[45] = "INSERT";
o[32] = "SPACE";
o[8] = "BACKSPACE";
o[27] = "INSERT";
o[9] = "TAB";
o[13] = "ENTER";
o = (this.functionalKeys = {});
o[17] = "CTRL";
o[16] = "SHIFT";
o[18] = "ALT";
};
C_ShortcutsCLASS.prototype.getShortcut = function () {
var a = [];
for (var v in this.keys) {
a.push(v);
}
return(this.format(a));
};
C_ShortcutsCLASS.prototype.onKeyDown = function () {
var isSh = this.registerKey(true);
if (isSh && (this.isListeners)) {
var a;
var o;
var shName = this.getShortcut();
a = this._listeners;
var i = 0;
while (i < a.length) {
o = a[i];
if ((o.shortcutName == shName) && (o.client.enabled != false)) {
o.client.onShortcut(shName);
}
i++;
}
}
this.onShortcutChanged();
};
C_ShortcutsCLASS.prototype.onKeyUp = function () {
this.registerKey(false);
this.onShortcutChanged();
};
C_ShortcutsCLASS.prototype.onShortcutChanged = function () {
if (this.isShortcutListeners) {
var shName = this.getShortcut();
var a = this._shortCutListeners;
var o;
var i = 0;
while (i < a.length) {
o = a[i];
if (o.shortcutName == shName) {
if (!o.calledDown) {
o.calledDown = true;
o.client.onShortcutDown(shName);
}
} else if (o.calledDown) {
o.calledDown = false;
o.client.onShortcutUp(o.shortcutName);
}
i++;
}
}
};
C_ShortcutsCLASS.prototype.addListener = function (listener) {
if (listener == undefined) {
return(undefined);
}
this.removeShortcut(listener);
var o;
var a = arguments.slice(1);
var i = 0;
while (i < a.length) {
o = {};
o.client = listener;
o.shortcutName = this.format(a[i].toUpperCase().split("+"));
this._listeners.push(o);
i++;
}
this.isListeners = this._listeners.length > 0;
};
C_ShortcutsCLASS.prototype.removeListener = function (listener) {
if (listener == undefined) {
return(undefined);
}
var a = this._listeners;
var i = 0;
while (i < a.length) {
if ((a[i].client == listener) || (a[i].client == undefined)) {
a.splice(i, 1);
if (i > 0) {
i--;
}
}
i++;
}
this.isListeners = this._listeners.length > 0;
};
C_ShortcutsCLASS.prototype.addShortcutListener = function (listener) {
if (listener == undefined) {
return(undefined);
}
this.removeShortcutListener(listener);
var o;
var a = arguments.slice(1);
var i = 0;
while (i < a.length) {
o = {};
o.client = listener;
o.shortcutName = this.format(a[i].toUpperCase().split("+"));
this._shortCutListeners.push(o);
i++;
}
this.isShortcutListeners = this._shortCutListeners.length > 0;
};
C_ShortcutsCLASS.prototype.removeShortcutListener = function (listener) {
if (listener == undefined) {
return(undefined);
}
var a = this._shortCutListeners;
var i = 0;
while (i < a.length) {
if ((a[i].client == listener) || (a[i].client == undefined)) {
a.splice(i, 1);
if (i > 0) {
i--;
}
}
i++;
}
this.isShortcutListeners = this._shortCutListeners.length > 0;
};
C_ShortcutsCLASS.prototype.format = function (a) {
var b = [];
var i = 0;
while (i < a.length) {
if (a[i] == "ALT") {
b.push(a.splice(i, 1));
break;
}
i++;
}
var i = 0;
while (i < a.length) {
if (a[i] == "CTRL") {
b.push(a.splice(i, 1));
break;
}
i++;
}
var i = 0;
while (i < a.length) {
if (a[i] == "SHIFT") {
b.push(a.splice(i, 1));
break;
}
i++;
}
return(b.concat(a.sort()).join("+"));
};
C_ShortcutsCLASS.prototype.registerKey = function (down) {
for (var v in this.keys) {
if (!Key.isDown(this.keys[v])) {
delete this.keys[v];
}
}
if (!down) {
return(undefined);
}
var c = Key.getCode();
var k = this.functionalKeys[c];
if (k == undefined) {
k = this.nonFunctionalKeys[c];
if (k == undefined) {
k = String.fromCharCode(Key.getAscii()).toUpperCase();
}
if (this.keys[k]) {
return(false);
}
this.keys[k] = c;
return(true);
}
this.keys[k] = c;
return(false);
};
Key.shortcutsEngine = new C_ShortcutsCLASS();
ASSetPropFlags(Key, "shortcutsEngine", 131);
ASSetPropFlags(_global, "C_ShortcutsCLASS", 131);
if (!MMSAVE("text_test.txt", _url)) {
_global.JS = {};
}
_global.JS.alert = function (msg) {
getURL (("javascript: void top.alert('" + msg) + "');");
};
_global.JS.focus = function () {
getURL ("javascript: void top.focus();");
};
_global.JS.close = function () {
getURL ("javascript: void top.close();");
};
_global.JS.call = function (msg) {
getURL ("javascript: void " + msg);
};
_global.JS.open = function (url, name, w, h) {
var params;
if (!isNaN(w)) {
params = ((("width=" + w) + ",height=") + h) + ",menubar=no,scrollbars=yes,status=yes,titlebar=no,toolbar=no,resizable=yes";
} else {
params = w;
}
getURL (((((("javascript: void top.open('" + url) + "', '") + name) + "', '") + params) + "');");
};
ASSetPropFlags(_global, "JS", 131);
Button.prototype.tabEnabled = false;
MovieClip.prototype.tabEnabled = false;
ASSetPropFlags(Button.prototype, "tabEnabled", 7);
ASSetPropFlags(MovieClip.prototype, "tabEnabled", 7);
var o;
delete o;
_global.LANG = {};
_global.LANG.__info = "autogenerated";
_global.LANG.nomorebets = "No more bets please";
_global.LANG.placeyourbets = "Place your bets!";
_global.LANG.youwin = "You win!";
_global.LANG.currency = "$%1";
_global.LANG.hint_repeat = "Repeat previous bets";
_global.LANG.hint_pays = "Pays %1 to 1";
_global.LANG.hint_place_bet = "Place your bet on %1";
_global.LANG.hint_betMinMax = "(%1 - %2)";
_global.LANG.hint_notenoughmoney = "Not enough money!";
_global.LANG.hint_maximumonplace = "This place has limit in $%1";
_global.LANG.hint_maximumontable = "The table maximum is $%1";
_global.LANG.hint_minimumonplace = "This place's minimum bet is $%1";
_global.LANG.hint_multibet = "%1 and %2";
_global.LANG.no = "NO";
_global.LANG.yes = "YES";
_global.LANG.message_total_bet = "Total Bet: $%1";
_global.LANG.message_player_wins = "Player wins!";
_global.LANG.message_place_on = "Place your bet on ";
_global.LANG.message_place_minbet = "The minimum bet here is $%1\rDo you want us to place\rthe minimum bet here?";
_global.LANG.result_playerwins = "dealer_voice:Player wins!";
_global.LANG.no_more_bets = "dealer_voice:No more bets, please!";
_global.LANG.color_red = "dealer_voice:RED";
_global.LANG.color_black = "dealer_voice:BLACK";
_global.LANG.even = "dealer_voice:EVEN";
_global.LANG.odd = "dealer_voice:ODD";
_global.LANG.result_0 = "dealer_voice:Zero";
_global.LANG.result_00 = "dealer_voice:Double zero";
_global.LANG.result_one = "dealer_voice:One";
_global.LANG.result_two = "dealer_voice:Two";
_global.LANG.result_three = "dealer_voice:Three";
_global.LANG.result_four = "dealer_voice:Four";
_global.LANG.result_five = "dealer_voice:Five";
_global.LANG.result_six = "dealer_voice:Six";
_global.LANG.result_seven = "dealer_voice:Seven";
_global.LANG.result_eight = "dealer_voice:Eight";
_global.LANG.result_nine = "dealer_voice:Nine";
_global.LANG.result_ten = "dealer_voice:Ten";
_global.LANG.result_eleven = "dealer_voice:Eleven";
_global.LANG.result_twelve = "dealer_voice:Twelve";
_global.LANG.result_thirteen = "dealer_voice:Thirteen";
_global.LANG.result_fourteen = "dealer_voice:Fourteen";
_global.LANG.result_fifteen = "dealer_voice:Fifteen";
_global.LANG.result_sixteen = "dealer_voice:Sixteen";
_global.LANG.result_seventeen = "dealer_voice:Seventeen";
_global.LANG.result_eighteen = "dealer_voice:Eighteen";
_global.LANG.result_nineteen = "dealer_voice:Nineteen";
_global.LANG.result_twenty = "dealer_voice:Twenty";
_global.LANG.result_twenty_one = "dealer_voice:Twenty-one";
_global.LANG.result_twenty_two = "dealer_voice:Twenty-two";
_global.LANG.result_twenty_three = "dealer_voice:Twenty-three";
_global.LANG.result_twenty_four = "dealer_voice:Twenty-four";
_global.LANG.result_twenty_five = "dealer_voice:Twenty-five";
_global.LANG.result_twenty_six = "dealer_voice:Twenty-six";
_global.LANG.result_twenty_seven = "dealer_voice:Twenty-seven";
_global.LANG.result_twenty_eight = "dealer_voice:Twenty-eight";
_global.LANG.result_twenty_nine = "dealer_voice:Twenty-nine";
_global.LANG.result_thirty = "dealer_voice:Thirty";
_global.LANG.result_thirty_one = "dealer_voice:Thirty-one";
_global.LANG.result_thirty_two = "dealer_voice:Thirty-two";
_global.LANG.result_thirty_three = "dealer_voice:Thirty-three";
_global.LANG.result_thirty_four = "dealer_voice:Thirty-four";
_global.LANG.result_thirty_five = "dealer_voice:Thirty-five";
_global.LANG.result_thirty_six = "dealer_voice:Thirty-six";
_global.LANG.bet_FIVE = "FIVE";
_global.LANG.bet_BLACK = "BLACK";
_global.LANG.bet_RED = "RED";
_global.LANG.bet_ODD = "ODD";
_global.LANG.bet_EVEN = "EVEN";
_global.LANG.bet_1_to_18 = "1 to 18";
_global.LANG.bet_19_to_36 = "19 to 36";
_global.LANG.bet_3rd_12 = "3rd 12";
_global.LANG.bet_2nd_12 = "2nd 12";
_global.LANG.bet_1st_12 = "1st 12";
_global.LANG["bet_2_to_1(3)"] = "3d column";
_global.LANG["bet_2_to_1(2)"] = "2nd column";
_global.LANG["bet_2_to_1(1)"] = "1st column";
_global.LANG["bet_0-2"] = "0 and 2";
_global.LANG["bet_00-2"] = "00 and 2";
_global.LANG["bet_00-2-3"] = "00, 2 and 3";
_global.LANG["bet_0-00-2"] = "0, 00 and 2";
_global.LANG["bet_0-1"] = "0 and 1";
_global.LANG["bet_0-1-2"] = "0, 1 and 2";
_global.LANG["bet_00-3"] = "00 and 3";
_global.LANG["bet_0-00"] = "0 and 00";
_global.LANG["bet_33-36"] = "33 and 36";
_global.LANG["bet_32-35"] = "32 and 35";
_global.LANG["bet_31-34"] = "31 and 34";
_global.LANG["bet_30-33"] = "30 and 33";
_global.LANG["bet_29-32"] = "29 and 32";
_global.LANG["bet_28-31"] = "28 and 31";
_global.LANG["bet_27-30"] = "27 and 30";
_global.LANG["bet_26-29"] = "26 and 29";
_global.LANG["bet_25-28"] = "25 and 28";
_global.LANG["bet_24-27"] = "24 and 27";
_global.LANG["bet_23-26"] = "23 and 26";
_global.LANG["bet_22-25"] = "22 and 25";
_global.LANG["bet_21-24"] = "21 and 24";
_global.LANG["bet_20-23"] = "20 and 23";
_global.LANG["bet_19-22"] = "19 and 22";
_global.LANG["bet_18-21"] = "18 and 21";
_global.LANG["bet_17-20"] = "17 and 20";
_global.LANG["bet_16-19"] = "16 and 19";
_global.LANG["bet_15-18"] = "15 and 18";
_global.LANG["bet_14-17"] = "14 and 17";
_global.LANG["bet_13-16"] = "13 and 16";
_global.LANG["bet_12-15"] = "12 and 15";
_global.LANG["bet_11-14"] = "11 and 14";
_global.LANG["bet_10-13"] = "10 and 13";
_global.LANG["bet_9-12"] = "9 and 12";
_global.LANG["bet_8-11"] = "8 and 11";
_global.LANG["bet_7-10"] = "7 and 10";
_global.LANG["bet_6-9"] = "6 and 9";
_global.LANG["bet_5-8"] = "5 and 8";
_global.LANG["bet_4-7"] = "4 and 7";
_global.LANG["bet_3-6"] = "3 and 6";
_global.LANG["bet_2-5"] = "2 and 5";
_global.LANG["bet_1-4"] = "1 and 4";
_global.LANG["bet_35-36"] = "35 and 36";
_global.LANG["bet_34-35"] = "34 and 35";
_global.LANG["bet_32-33"] = "32 and 33";
_global.LANG["bet_31-32"] = "31 and 32";
_global.LANG["bet_29-30"] = "29 and 30";
_global.LANG["bet_28-29"] = "28 and 29";
_global.LANG["bet_26-27"] = "26 and 27";
_global.LANG["bet_25-26"] = "25 and 26";
_global.LANG["bet_23-24"] = "23 and 24";
_global.LANG["bet_22-23"] = "22 and 23";
_global.LANG["bet_20-21"] = "20 and 21";
_global.LANG["bet_19-20"] = "19 and 20";
_global.LANG["bet_17-18"] = "17 and 18";
_global.LANG["bet_16-17"] = "16 and 17";
_global.LANG["bet_14-15"] = "14 and 15";
_global.LANG["bet_13-14"] = "13 and 14";
_global.LANG["bet_11-12"] = "11 and 12";
_global.LANG["bet_10-11"] = "10 and 11";
_global.LANG["bet_8-9"] = "8 and 9";
_global.LANG["bet_7-8"] = "7 and 8";
_global.LANG["bet_5-6"] = "5 and 6";
_global.LANG["bet_4-5"] = "4 and 5";
_global.LANG["bet_2-3"] = "2 and 3";
_global.LANG["bet_1-2"] = "1 and 2";
_global.LANG["bet_34-36"] = "34-36";
_global.LANG["bet_31-33"] = "31-33";
_global.LANG["bet_28-30"] = "28-30";
_global.LANG["bet_25-27"] = "25-27";
_global.LANG["bet_22-24"] = "22-24";
_global.LANG["bet_19-21"] = "19-21";
_global.LANG["bet_16-18"] = "16-18";
_global.LANG["bet_13-15"] = "13-15";
_global.LANG["bet_10-12"] = "10-12";
_global.LANG["bet_7-9"] = "7-9";
_global.LANG["bet_4-6"] = "4-6";
_global.LANG["bet_1-3"] = "1-3";
_global.LANG["bet_31-36"] = "31-36";
_global.LANG["bet_28-33"] = "28-33";
_global.LANG["bet_25-30"] = "25-30";
_global.LANG["bet_22-27"] = "22-27";
_global.LANG["bet_19-24"] = "19-24";
_global.LANG["bet_16-21"] = "16-21";
_global.LANG["bet_13-18"] = "13-18";
_global.LANG["bet_10-15"] = "10-15";
_global.LANG["bet_7-12"] = "7-12";
_global.LANG["bet_4-9"] = "4-9";
_global.LANG["bet_1-6"] = "1-6";
_global.LANG["bet_4-5"] = "4 and 5";
_global.LANG["bet_1-5"] = "1, 2, 4 and 5";
_global.LANG["bet_32-36"] = "32, 33, 35 and 36";
_global.LANG["bet_31-35"] = "31, 32, 34 and 35";
_global.LANG["bet_29-33"] = "29, 30, 32 and 33";
_global.LANG["bet_28-32"] = "28, 29, 31 and 32";
_global.LANG["bet_26-30"] = "26, 27, 29 and 30";
_global.LANG["bet_25-29"] = "25 and 29";
_global.LANG["bet_23-27"] = "23, 24, 26 and 27";
_global.LANG["bet_22-26"] = "22, 23, 25 and 26";
_global.LANG["bet_20-24"] = "20, 21, 23 and 24";
_global.LANG["bet_19-23"] = "19, 20, 22 and 23";
_global.LANG["bet_17-21"] = "17, 18, 20 and 21";
_global.LANG["bet_16-20"] = "16, 17, 19 and 20";
_global.LANG["bet_14-18"] = "14, 15, 17 and 18";
_global.LANG["bet_13-17"] = "13, 14, 16 and 17";
_global.LANG["bet_11-15"] = "11, 12, 14 and 15";
_global.LANG["bet_10-14"] = "10, 11, 12 and 14";
_global.LANG["bet_8-12"] = "8, 9, 11 and 12";
_global.LANG["bet_7-11"] = "7, 8, 10 and 11";
_global.LANG["bet_5-9"] = "5, 6, 8 and 9";
_global.LANG["bet_4-8"] = "4, 5, 7 and 8";
_global.LANG["bet_2-6"] = "2, 3, 5 and 6";
_global.LANG["bet_1-5"] = "1, 2, 4 and 5";
_global.LANG.button_clear_bets = "CLEAR BETS";
_global.LANG.button_spin = "SPIN";
_global.LANG.button_rebet = "REBET";
_global.LANG.gui_alias_bet = "Total bet";
_global.LANG.gui_alias_total_bets = "Total bet";
_global.LANG.gui_alias_win = "Win";
_global.LANG.gui_alias_your_win = "Win";
_global.LANG.gui_alias_lines = "Lines";
_global.LANG.gui_alias_insurance = "Insurance";
_global.LANG.gui_alias_numbers = "Numbers";
_global.LANG.gui_alias_coins = "Coins";
_global.insertAndReplace = function () {
var preform = String(arguments.shift());
var parts = preform.split("%");
var char;
message = parts[0];
var i = 1;
while (i < parts.length) {
char = parts[i].charAt(0);
if (isNaN(Number(char))) {
message = message + ("%" + parts[i]);
} else {
message = message + (arguments[Number(char) - 1] + parts[i].substr(1));
}
i++;
}
DEBUG("printf", "%1 with %2 [br] %3", preform, arguments, message);
return(message);
};
_global.printf = _global.insertAndReplace;
var root = this;
_global.C_GameCLASS = function () {
this.description = "ROULETTE_00";
this.curBet = 5;
this.userBalance = 1000;
this.bet = 0;
this.maxBetOnTable = 500;
this.minbet = 5;
this.maxbet = 500;
this.places = {};
this.places.bet_0 = {bet:0, prize_index:35, maximum:100};
this.places.bet_00 = {bet:0, prize_index:35, maximum:100};
this.places.bet_37 = {bet:0, prize_index:35, maximum:100};
this.places.bet_1 = {bet:0, prize_index:35, maximum:100};
this.places.bet_2 = {bet:0, prize_index:35, maximum:100};
this.places.bet_3 = {bet:0, prize_index:35, maximum:100};
this.places.bet_4 = {bet:0, prize_index:35, maximum:100};
this.places.bet_5 = {bet:0, prize_index:35, maximum:100};
this.places.bet_6 = {bet:0, prize_index:35, maximum:100};
this.places.bet_7 = {bet:0, prize_index:35, maximum:100};
this.places.bet_8 = {bet:0, prize_index:35, maximum:100};
this.places.bet_9 = {bet:0, prize_index:35, maximum:100};
this.places.bet_10 = {bet:0, prize_index:35, maximum:100};
this.places.bet_11 = {bet:0, prize_index:35, maximum:100};
this.places.bet_12 = {bet:0, prize_index:35, maximum:100};
this.places.bet_13 = {bet:0, prize_index:35, maximum:100};
this.places.bet_14 = {bet:0, prize_index:35, maximum:100};
this.places.bet_15 = {bet:0, prize_index:35, maximum:100};
this.places.bet_16 = {bet:0, prize_index:35, maximum:100};
this.places.bet_17 = {bet:0, prize_index:35, maximum:100};
this.places.bet_18 = {bet:0, prize_index:35, maximum:100};
this.places.bet_19 = {bet:0, prize_index:35, maximum:100};
this.places.bet_20 = {bet:0, prize_index:35, maximum:100};
this.places.bet_21 = {bet:0, prize_index:35, maximum:100};
this.places.bet_22 = {bet:0, prize_index:35, maximum:100};
this.places.bet_23 = {bet:0, prize_index:35, maximum:100};
this.places.bet_24 = {bet:0, prize_index:35, maximum:100};
this.places.bet_25 = {bet:0, prize_index:35, maximum:100};
this.places.bet_26 = {bet:0, prize_index:35, maximum:100};
this.places.bet_27 = {bet:0, prize_index:35, maximum:100};
this.places.bet_28 = {bet:0, prize_index:35, maximum:100};
this.places.bet_29 = {bet:0, prize_index:35, maximum:100};
this.places.bet_30 = {bet:0, prize_index:35, maximum:100};
this.places.bet_31 = {bet:0, prize_index:35, maximum:100};
this.places.bet_32 = {bet:0, prize_index:35, maximum:100};
this.places.bet_33 = {bet:0, prize_index:35, maximum:100};
this.places.bet_34 = {bet:0, prize_index:35, maximum:100};
this.places.bet_35 = {bet:0, prize_index:35, maximum:100};
this.places.bet_36 = {bet:0, prize_index:35, maximum:100};
this.places["bet_0-00"] = {bet:0, prize_index:17, maximum:100};
this.places["bet_33-36"] = {bet:0, prize_index:17, maximum:100};
this.places["bet_32-35"] = {bet:0, prize_index:17, maximum:100};
this.places["bet_31-34"] = {bet:0, prize_index:17, maximum:100};
this.places["bet_30-33"] = {bet:0, prize_index:17, maximum:100};
this.places["bet_29-32"] = {bet:0, prize_index:17, maximum:100};
this.places["bet_28-31"] = {bet:0, prize_index:17, maximum:100};
this.places["bet_27-30"] = {bet:0, prize_index:17, maximum:100};
this.places["bet_26-29"] = {bet:0, prize_index:17, maximum:100};
this.places["bet_25-28"] = {bet:0, prize_index:17, maximum:100};
this.places["bet_24-27"] = {bet:0, prize_index:17, maximum:100};
this.places["bet_23-26"] = {bet:0, prize_index:17, maximum:100};
this.places["bet_22-25"] = {bet:0, prize_index:17, maximum:100};
this.places["bet_21-24"] = {bet:0, prize_index:17, maximum:100};
this.places["bet_20-23"] = {bet:0, prize_index:17, maximum:100};
this.places["bet_19-22"] = {bet:0, prize_index:17, maximum:100};
this.places["bet_18-21"] = {bet:0, prize_index:17, maximum:100};
this.places["bet_17-20"] = {bet:0, prize_index:17, maximum:100};
this.places["bet_16-19"] = {bet:0, prize_index:17, maximum:100};
this.places["bet_15-18"] = {bet:0, prize_index:17, maximum:100};
this.places["bet_14-17"] = {bet:0, prize_index:17, maximum:100};
this.places["bet_13-16"] = {bet:0, prize_index:17, maximum:100};
this.places["bet_12-15"] = {bet:0, prize_index:17, maximum:100};
this.places["bet_11-14"] = {bet:0, prize_index:17, maximum:100};
this.places["bet_10-13"] = {bet:0, prize_index:17, maximum:100};
this.places["bet_9-12"] = {bet:0, prize_index:17, maximum:100};
this.places["bet_8-11"] = {bet:0, prize_index:17, maximum:100};
this.places["bet_7-10"] = {bet:0, prize_index:17, maximum:100};
this.places["bet_6-9"] = {bet:0, prize_index:17, maximum:100};
this.places["bet_5-8"] = {bet:0, prize_index:17, maximum:100};
this.places["bet_4-7"] = {bet:0, prize_index:17, maximum:100};
this.places["bet_3-6"] = {bet:0, prize_index:17, maximum:100};
this.places["bet_2-5"] = {bet:0, prize_index:17, maximum:100};
this.places["bet_1-4"] = {bet:0, prize_index:17, maximum:100};
this.places["bet_35-36"] = {bet:0, prize_index:17, maximum:100};
this.places["bet_34-35"] = {bet:0, prize_index:17, maximum:100};
this.places["bet_32-33"] = {bet:0, prize_index:17, maximum:100};
this.places["bet_31-32"] = {bet:0, prize_index:17, maximum:100};
this.places["bet_29-30"] = {bet:0, prize_index:17, maximum:100};
this.places["bet_28-29"] = {bet:0, prize_index:17, maximum:100};
this.places["bet_26-27"] = {bet:0, prize_index:17, maximum:100};
this.places["bet_25-26"] = {bet:0, prize_index:17, maximum:100};
this.places["bet_23-24"] = {bet:0, prize_index:17, maximum:100};
this.places["bet_22-23"] = {bet:0, prize_index:17, maximum:100};
this.places["bet_20-21"] = {bet:0, prize_index:17, maximum:100};
this.places["bet_19-20"] = {bet:0, prize_index:17, maximum:100};
this.places["bet_17-18"] = {bet:0, prize_index:17, maximum:100};
this.places["bet_16-17"] = {bet:0, prize_index:17, maximum:100};
this.places["bet_14-15"] = {bet:0, prize_index:17, maximum:100};
this.places["bet_13-14"] = {bet:0, prize_index:17, maximum:100};
this.places["bet_11-12"] = {bet:0, prize_index:17, maximum:100};
this.places["bet_10-11"] = {bet:0, prize_index:17, maximum:100};
this.places["bet_8-9"] = {bet:0, prize_index:17, maximum:100};
this.places["bet_7-8"] = {bet:0, prize_index:17, maximum:100};
this.places["bet_5-6"] = {bet:0, prize_index:17, maximum:100};
this.places["bet_4-5"] = {bet:0, prize_index:17, maximum:100};
this.places["bet_2-3"] = {bet:0, prize_index:17, maximum:100};
this.places["bet_1-2"] = {bet:0, prize_index:17, maximum:100};
this.places["bet_0-1"] = {bet:0, prize_index:17, maximum:100};
this.places["bet_0-2"] = {bet:0, prize_index:17, maximum:100};
this.places["bet_00-2"] = {bet:0, prize_index:17, maximum:100};
this.places["bet_00-3"] = {bet:0, prize_index:17, maximum:100};
this.places["bet_34-36"] = {bet:0, prize_index:11, maximum:100};
this.places["bet_31-33"] = {bet:0, prize_index:11, maximum:100};
this.places["bet_28-30"] = {bet:0, prize_index:11, maximum:100};
this.places["bet_25-27"] = {bet:0, prize_index:11, maximum:100};
this.places["bet_22-24"] = {bet:0, prize_index:11, maximum:100};
this.places["bet_19-21"] = {bet:0, prize_index:11, maximum:100};
this.places["bet_16-18"] = {bet:0, prize_index:11, maximum:100};
this.places["bet_13-15"] = {bet:0, prize_index:11, maximum:100};
this.places["bet_10-12"] = {bet:0, prize_index:11, maximum:100};
this.places["bet_7-9"] = {bet:0, prize_index:11, maximum:100};
this.places["bet_4-6"] = {bet:0, prize_index:11, maximum:100};
this.places["bet_1-3"] = {bet:0, prize_index:11, maximum:100};
this.places["bet_0-1-2"] = {bet:0, prize_index:11, maximum:100};
this.places["bet_0-00-2"] = {bet:0, prize_index:11, maximum:100};
this.places["bet_00-2-3"] = {bet:0, prize_index:11, maximum:100};
this.places["bet_32-36"] = {bet:0, prize_index:8, maximum:100};
this.places["bet_31-35"] = {bet:0, prize_index:8, maximum:100};
this.places["bet_29-33"] = {bet:0, prize_index:8, maximum:100};
this.places["bet_28-32"] = {bet:0, prize_index:8, maximum:100};
this.places["bet_26-30"] = {bet:0, prize_index:8, maximum:100};
this.places["bet_25-29"] = {bet:0, prize_index:8, maximum:100};
this.places["bet_23-27"] = {bet:0, prize_index:8, maximum:100};
this.places["bet_22-26"] = {bet:0, prize_index:8, maximum:100};
this.places["bet_20-24"] = {bet:0, prize_index:8, maximum:100};
this.places["bet_19-23"] = {bet:0, prize_index:8, maximum:100};
this.places["bet_17-21"] = {bet:0, prize_index:8, maximum:100};
this.places["bet_16-20"] = {bet:0, prize_index:8, maximum:100};
this.places["bet_14-18"] = {bet:0, prize_index:8, maximum:100};
this.places["bet_13-17"] = {bet:0, prize_index:8, maximum:100};
this.places["bet_11-15"] = {bet:0, prize_index:8, maximum:100};
this.places["bet_10-14"] = {bet:0, prize_index:8, maximum:100};
this.places["bet_8-12"] = {bet:0, prize_index:8, maximum:100};
this.places["bet_7-11"] = {bet:0, prize_index:8, maximum:100};
this.places["bet_5-9"] = {bet:0, prize_index:8, maximum:100};
this.places["bet_4-8"] = {bet:0, prize_index:8, maximum:100};
this.places["bet_2-6"] = {bet:0, prize_index:8, maximum:100};
this.places["bet_1-5"] = {bet:0, prize_index:8, maximum:100};
this.places["bet_31-36"] = {bet:0, prize_index:5, maximum:100};
this.places["bet_28-33"] = {bet:0, prize_index:5, maximum:100};
this.places["bet_25-30"] = {bet:0, prize_index:5, maximum:100};
this.places["bet_22-27"] = {bet:0, prize_index:5, maximum:100};
this.places["bet_19-24"] = {bet:0, prize_index:5, maximum:100};
this.places["bet_16-21"] = {bet:0, prize_index:5, maximum:100};
this.places["bet_13-18"] = {bet:0, prize_index:5, maximum:100};
this.places["bet_10-15"] = {bet:0, prize_index:5, maximum:100};
this.places["bet_7-12"] = {bet:0, prize_index:5, maximum:100};
this.places["bet_4-9"] = {bet:0, prize_index:5, maximum:100};
this.places["bet_1-6"] = {bet:0, prize_index:5, maximum:100};
this.places.bet_FIVE = {bet:0, prize_index:6, maximum:100};
this.places["bet_3rd 12"] = {bet:0, prize_index:2, maximum:100};
this.places["bet_2nd 12"] = {bet:0, prize_index:2, maximum:100};
this.places["bet_1st 12"] = {bet:0, prize_index:2, maximum:100};
this.places["bet_2 to 1(3)"] = {bet:0, prize_index:2, maximum:100};
this.places["bet_2 to 1(2)"] = {bet:0, prize_index:2, maximum:100};
this.places["bet_2 to 1(1)"] = {bet:0, prize_index:2, maximum:100};
this.places.bet_BLACK = {bet:0, prize_index:1, maximum:500};
this.places.bet_RED = {bet:0, prize_index:1, maximum:500};
this.places.bet_ODD = {bet:0, prize_index:1, maximum:500};
this.places.bet_EVEN = {bet:0, prize_index:1, maximum:500};
this.places["bet_19 to 36"] = {bet:0, prize_index:1, maximum:500};
this.places["bet_1 to 18"] = {bet:0, prize_index:1, maximum:500};
this.places.bet_drag = {bet:0, maximum:100000000000};
this.repeat_places = {};
this.started = false;
this.voiceON = true;
this.repeatArray = new Array();
C_ChipsCLASS.prototype.scaleParam = 100;
};
var o = ((C_GameCLASS.prototype.display_names = {}));
o["bet_0-1"] = "0 and 1";
o["bet_0-2"] = "0 and 2";
o["bet_00-2"] = "00 and 2";
o["bet_00-3"] = "00 and 3";
o["bet_0-1-2"] = "0, 1 and 2";
o["bet_0-00-2"] = "0, 00 and 2";
o["bet_00-2-3"] = "00, 2 and 3";
o["bet_0-00"] = "0 and 00";
o["bet_33-36"] = "33 and 36";
o["bet_32-35"] = "32 and 35";
o["bet_31-34"] = "31 and 34";
o["bet_30-33"] = "30 and 33";
o["bet_29-32"] = "29 and 32";
o["bet_28-31"] = "28 and 31";
o["bet_27-30"] = "27 and 30";
o["bet_26-29"] = "26 and 29";
o["bet_25-28"] = "25 and 28";
o["bet_24-27"] = "24 and 27";
o["bet_23-26"] = "23 and 26";
o["bet_22-25"] = "22 and 25";
o["bet_21-24"] = "21 and 24";
o["bet_20-23"] = "20 and 23";
o["bet_19-22"] = "19 and 22";
o["bet_18-21"] = "18 and 21";
o["bet_17-20"] = "17 and 20";
o["bet_16-19"] = "16 and 19";
o["bet_15-18"] = "15 and 18";
o["bet_14-17"] = "14 and 17";
o["bet_13-16"] = "13 and 16";
o["bet_12-15"] = "12 and 15";
o["bet_11-14"] = "11 and 14";
o["bet_10-13"] = "10 and 13";
o["bet_9-12"] = "9 and 12";
o["bet_8-11"] = "8 and 11";
o["bet_7-10"] = "7 and 10";
o["bet_6-9"] = "6 and 9";
o["bet_5-8"] = "5 and 8";
o["bet_4-7"] = "4 and 7";
o["bet_3-6"] = "3 and 6";
o["bet_2-5"] = "2 and 5";
o["bet_1-4"] = "1 and 4";
o["bet_35-36"] = "35 and 36";
o["bet_34-35"] = "34 and 35";
o["bet_32-33"] = "32 and 33";
o["bet_31-32"] = "31 and 32";
o["bet_29-30"] = "29 and 30";
o["bet_28-29"] = "28 and 29";
o["bet_26-27"] = "26 and 27";
o["bet_25-26"] = "25 and 26";
o["bet_23-24"] = "23 and 24";
o["bet_22-23"] = "22 and 23";
o["bet_20-21"] = "20 and 21";
o["bet_19-20"] = "19 and 20";
o["bet_17-18"] = "17 and 18";
o["bet_16-17"] = "16 and 17";
o["bet_14-15"] = "14 and 15";
o["bet_13-14"] = "13 and 14";
o["bet_11-12"] = "11 and 12";
o["bet_10-11"] = "10 and 11";
o["bet_8-9"] = "8 and 9";
o["bet_7-8"] = "7 and 8";
o["bet_5-6"] = "5 and 6";
o["bet_4-5"] = "4 and 5";
o["bet_2-3"] = "2 and 3";
o["bet_1-2"] = "1 and 2";
o["bet_32-36"] = "32, 33, 36, 35";
o["bet_31-35"] = "31, 32, 35, 34";
o["bet_29-33"] = "29, 30, 33, 32";
o["bet_28-32"] = "28, 29, 32, 31";
o["bet_26-30"] = "26, 27, 30, 29";
o["bet_25-29"] = "25, 26, 29, 28";
o["bet_23-27"] = "23, 24, 27, 26";
o["bet_22-26"] = "22, 23, 26, 25";
o["bet_20-24"] = "20, 21, 24, 23";
o["bet_19-23"] = "19, 20, 23, 22";
o["bet_17-21"] = "17, 18, 21, 20";
o["bet_16-20"] = "16, 17, 20, 19";
o["bet_14-18"] = "14, 15, 18, 17";
o["bet_13-17"] = "13, 14, 17, 16";
o["bet_11-15"] = "11, 12, 15, 14";
o["bet_10-14"] = "10, 11, 14, 13";
o["bet_8-12"] = "8, 9, 12, 11";
o["bet_7-11"] = "7, 8, 11, 10";
o["bet_5-9"] = "5, 6, 9, 8";
o["bet_4-8"] = "4, 5, 8, 7";
o["bet_2-6"] = "2, 3, 6, 5";
o["bet_1-5"] = "1, 2, 5, 4";
o["bet_31-36"] = "31-33 and 34-36";
o["bet_28-33"] = "28-30 and 31-33";
o["bet_25-30"] = "25-27 and 28-30";
o["bet_22-27"] = "22-24 and 25-27";
o["bet_19-24"] = "19-21 and 22-24";
o["bet_16-21"] = "16-18 and 19-21";
o["bet_13-18"] = "13-15 and 16-18";
o["bet_10-15"] = "10-12 and 13-15";
o["bet_7-12"] = "7-9 and 10-12";
o["bet_4-9"] = "4-6 and 7-9";
o["bet_1-6"] = "1-3 and 4-6";
o["bet_2 to 1(1)"] = "1, 4, 7, 10, 13, 16, 19, 22, 25, 28, 31, 34";
o["bet_2 to 1(2)"] = "2, 5, 8, 11, 14, 17, 20, 23, 26, 29, 32, 35";
o["bet_2 to 1(3)"] = "3, 6, 9, 12, 15, 18, 21, 24, 27, 30, 33, 36";
delete o;
var o = ((C_GameCLASS.prototype.weel = {}));
o["0"] = 11;
o["1"] = 29;
o["2"] = 10;
o["3"] = 25;
o["4"] = 6;
o["5"] = 21;
o["6"] = 2;
o["7"] = 17;
o["8"] = 36;
o["9"] = 13;
o["10"] = 32;
o["11"] = 16;
o["12"] = 35;
o["13"] = 28;
o["14"] = 9;
o["15"] = 24;
o["16"] = 5;
o["17"] = 20;
o["18"] = 1;
o["19"] = 37;
o["20"] = 18;
o["21"] = 3;
o["22"] = 22;
o["23"] = 7;
o["24"] = 26;
o["25"] = 33;
o["26"] = 14;
o["27"] = 31;
o["28"] = 12;
o["29"] = 34;
o["30"] = 15;
o["31"] = 38;
o["32"] = 19;
o["33"] = 4;
o["34"] = 23;
o["35"] = 8;
o["36"] = 27;
o["37"] = 30;
o["00"] = 30;
delete o;
C_GameCLASS.prototype.init = function () {
var tt = this;
tt.A_wins = [];
tt.A_wins[37] = ["bet_00", "bet_0-00", "bet_0-00-2", "bet_00-2", "bet_00-3", "bet_00-2-3", "bet_FIVE"];
tt.A_wins["00"] = ["bet_00", "bet_0-00", "bet_0-00-2", "bet_00-2", "bet_00-3", "bet_00-2-3", "bet_FIVE"];
tt.A_wins[0] = ["bet_0", "bet_0-00", "bet_0-00-2", "bet_0-1", "bet_0-2", "bet_0-1-2", "bet_FIVE"];
tt.A_wins[1] = ["bet_0-1", "bet_0-1-2", "bet_FIVE", "bet_1", "bet_1-2", "bet_1-3", "bet_1-4", "bet_1-5", "bet_1-6", "bet_1st 12", "bet_2 to 1(1)", "bet_ODD", "bet_1 to 18", "bet_RED"];
tt.A_wins[2] = ["bet_0-2", "bet_00-2", "bet_0-00-2", "bet_00-2-3", "bet_0-1-2", "bet_FIVE", "bet_1-2", "bet_1-3", "bet_2", "bet_2-3", "bet_1-5", "bet_1-6", "bet_2-5", "bet_2-6", "bet_2 to 1(2)", "bet_1st 12", "bet_EVEN", "bet_1 to 18", "bet_BLACK"];
tt.A_wins[3] = ["bet_00-3", "bet_00-2-3", "bet_FIVE", "bet_1-3", "bet_2-3", "bet_3", "bet_1-6", "bet_2-6", "bet_3-6", "bet_2 to 1(3)", "bet_1st 12", "bet_ODD", "bet_1 to 18", "bet_RED"];
tt.A_wins[4] = ["bet_4", "bet_4-5", "bet_4-6", "bet_1-4", "bet_1-5", "bet_1-6", "bet_4-7", "bet_4-8", "bet_4-9", "bet_2 to 1(1)", "bet_1st 12", "bet_EVEN", "bet_1 to 18", "bet_BLACK"];
tt.A_wins[5] = ["bet_4-5", "bet_4-6", "bet_5", "bet_5-6", "bet_1-5", "bet_1-6", "bet_2-5", "bet_2-6", "bet_4-8", "bet_4-9", "bet_5-8", "bet_5-9", "bet_2 to 1(2)", "bet_1st 12", "bet_ODD", "bet_1 to 18", "bet_RED"];
tt.A_wins[6] = ["bet_4-6", "bet_5-6", "bet_6", "bet_1-6", "bet_2-6", "bet_3-6", "bet_4-9", "bet_5-9", "bet_6-9", "bet_2 to 1(3)", "bet_1st 12", "bet_EVEN", "bet_1 to 18", "bet_BLACK"];
tt.A_wins[7] = ["bet_7", "bet_7-8", "bet_7-9", "bet_4-7", "bet_4-8", "bet_4-9", "bet_7-10", "bet_7-11", "bet_7-12", "bet_2 to 1(1)", "bet_1st 12", "bet_ODD", "bet_1 to 18", "bet_RED"];
tt.A_wins[8] = ["bet_7-8", "bet_7-9", "bet_8", "bet_8-9", "bet_4-8", "bet_4-9", "bet_5-8", "bet_5-9", "bet_7-11", "bet_7-12", "bet_8-11", "bet_8-12", "bet_2 to 1(2)", "bet_1st 12", "bet_EVEN", "bet_1 to 18", "bet_BLACK"];
tt.A_wins[9] = ["bet_7-9", "bet_8-9", "bet_9", "bet_4-9", "bet_5-9", "bet_6-9", "bet_7-12", "bet_8-12", "bet_9-12", "bet_2 to 1(3)", "bet_1st 12", "bet_ODD", "bet_1 to 18", "bet_RED"];
tt.A_wins[10] = ["bet_10", "bet_10-11", "bet_10-12", "bet_7-10", "bet_7-11", "bet_7-12", "bet_10-13", "bet_10-14", "bet_10-15", "bet_2 to 1(1)", "bet_1st 12", "bet_EVEN", "bet_1 to 18", "bet_BLACK"];
tt.A_wins[11] = ["bet_10-11", "bet_10-12", "bet_11", "bet_11-12", "bet_7-11", "bet_7-12", "bet_8-11", "bet_8-12", "bet_10-14", "bet_10-15", "bet_11-14", "bet_11-15", "bet_2 to 1(2)", "bet_1st 12", "bet_ODD", "bet_1 to 18", "bet_BLACK"];
tt.A_wins[12] = ["bet_10-12", "bet_11-12", "bet_12", "bet_7-12", "bet_8-12", "bet_9-12", "bet_10-15", "bet_11-15", "bet_12-15", "bet_2 to 1(3)", "bet_1st 12", "bet_EVEN", "bet_1 to 18", "bet_RED"];
tt.A_wins[13] = ["bet_13", "bet_13-14", "bet_13-15", "bet_10-13", "bet_10-14", "bet_10-15", "bet_13-16", "bet_13-17", "bet_13-18", "bet_2nd 12", "bet_2 to 1(1)", "bet_ODD", "bet_1 to 18", "bet_BLACK"];
tt.A_wins[14] = ["bet_13-14", "bet_13-15", "bet_14", "bet_14-15", "bet_10-14", "bet_10-15", "bet_11-14", "bet_11-15", "bet_13-17", "bet_13-18", "bet_14-17", "bet_14-18", "bet_2nd 12", "bet_2 to 1(2)", "bet_EVEN", "bet_1 to 18", "bet_RED"];
tt.A_wins[15] = ["bet_13-15", "bet_14-15", "bet_15", "bet_10-15", "bet_11-15", "bet_12-15", "bet_13-18", "bet_14-18", "bet_15-18", "bet_2nd 12", "bet_2 to 1(3)", "bet_ODD", "bet_1 to 18", "bet_BLACK"];
tt.A_wins[16] = ["bet_16", "bet_16-17", "bet_16-18", "bet_13-16", "bet_13-17", "bet_13-18", "bet_16-19", "bet_16-20", "bet_16-21", "bet_2nd 12", "bet_2 to 1(1)", "bet_EVEN", "bet_1 to 18", "bet_RED"];
tt.A_wins[17] = ["bet_16-17", "bet_16-18", "bet_17", "bet_17-18", "bet_13-17", "bet_13-18", "bet_14-17", "bet_14-18", "bet_16-20", "bet_16-21", "bet_17-20", "bet_17-21", "bet_2nd 12", "bet_2 to 1(2)", "bet_ODD", "bet_1 to 18", "bet_BLACK"];
tt.A_wins[18] = ["bet_16-18", "bet_17-18", "bet_18", "bet_13-18", "bet_14-18", "bet_15-18", "bet_16-21", "bet_17-21", "bet_18-21", "bet_2nd 12", "bet_2 to 1(3)", "bet_EVEN", "bet_1 to 18", "bet_RED"];
tt.A_wins[19] = ["bet_19", "bet_19-20", "bet_19-21", "bet_16-19", "bet_16-20", "bet_16-21", "bet_19-22", "bet_19-23", "bet_19-24", "bet_2nd 12", "bet_2 to 1(1)", "bet_19 to 36", "bet_ODD", "bet_RED"];
tt.A_wins[20] = ["bet_19-20", "bet_19-21", "bet_20", "bet_20-21", "bet_16-20", "bet_16-21", "bet_17-20", "bet_17-21", "bet_19-23", "bet_19-24", "bet_20-23", "bet_20-24", "bet_2 to 1(2)", "bet_2nd 12", "bet_19 to 36", "bet_EVEN", "bet_BLACK"];
tt.A_wins[21] = ["bet_19-21", "bet_20-21", "bet_21", "bet_16-21", "bet_17-21", "bet_18-21", "bet_19-24", "bet_20-24", "bet_21-24", "bet_2 to 1(3)", "bet_2nd 12", "bet_19 to 36", "bet_ODD", "bet_RED"];
tt.A_wins[22] = ["bet_22", "bet_22-23", "bet_22-24", "bet_19-22", "bet_19-23", "bet_19-24", "bet_22-25", "bet_22-26", "bet_22-27", "bet_2 to 1(1)", "bet_2nd 12", "bet_19 to 36", "bet_EVEN", "bet_BLACK"];
tt.A_wins[23] = ["bet_22-23", "bet_22-24", "bet_23", "bet_23-24", "bet_19-23", "bet_19-24", "bet_20-23", "bet_20-24", "bet_22-26", "bet_22-27", "bet_23-26", "bet_23-27", "bet_2 to 1(2)", "bet_2nd 12", "bet_19 to 36", "bet_ODD", "bet_RED"];
tt.A_wins[24] = ["bet_22-24", "bet_23-24", "bet_24", "bet_19-24", "bet_20-24", "bet_21-24", "bet_22-27", "bet_23-27", "bet_24-27", "bet_2 to 1(3)", "bet_2nd 12", "bet_19 to 36", "bet_EVEN", "bet_BLACK"];
tt.A_wins[25] = ["bet_25", "bet_25-26", "bet_25-27", "bet_22-25", "bet_22-26", "bet_22-27", "bet_25-28", "bet_25-29", "bet_25-30", "bet_3rd 12", "bet_2 to 1(1)", "bet_19 to 36", "bet_ODD", "bet_RED"];
tt.A_wins[26] = ["bet_25-26", "bet_25-27", "bet_26", "bet_26-27", "bet_22-26", "bet_22-27", "bet_23-26", "bet_23-27", "bet_25-29", "bet_25-30", "bet_26-29", "bet_26-30", "bet_3rd 12", "bet_2 to 1(2)", "bet_19 to 36", "bet_EVEN", "bet_BLACK"];
tt.A_wins[27] = ["bet_25-27", "bet_26-27", "bet_27", "bet_22-27", "bet_23-27", "bet_24-27", "bet_25-30", "bet_26-30", "bet_27-30", "bet_3rd 12", "bet_2 to 1(3)", "bet_19 to 36", "bet_ODD", "bet_RED"];
tt.A_wins[28] = ["bet_28", "bet_28-29", "bet_28-30", "bet_25-28", "bet_25-29", "bet_25-30", "bet_28-31", "bet_28-32", "bet_28-33", "bet_3rd 12", "bet_2 to 1(1)", "bet_19 to 36", "bet_EVEN", "bet_BLACK"];
tt.A_wins[29] = ["bet_28-29", "bet_28-30", "bet_29", "bet_29-30", "bet_25-29", "bet_25-30", "bet_26-29", "bet_26-30", "bet_28-32", "bet_28-33", "bet_29-32", "bet_29-33", "bet_3rd 12", "bet_2 to 1(2)", "bet_19 to 36", "bet_ODD", "bet_BLACK"];
tt.A_wins[30] = ["bet_28-30", "bet_29-30", "bet_30", "bet_25-30", "bet_26-30", "bet_27-30", "bet_28-33", "bet_29-33", "bet_30-33", "bet_3rd 12", "bet_2 to 1(3)", "bet_19 to 36", "bet_EVEN", "bet_RED"];
tt.A_wins[31] = ["bet_31", "bet_31-32", "bet_31-33", "bet_28-31", "bet_28-32", "bet_28-33", "bet_31-34", "bet_31-35", "bet_31-36", "bet_3rd 12", "bet_2 to 1(1)", "bet_19 to 36", "bet_ODD", "bet_BLACK"];
tt.A_wins[32] = ["bet_31-32", "bet_31-33", "bet_32", "bet_32-33", "bet_28-32", "bet_28-33", "bet_29-32", "bet_29-33", "bet_31-35", "bet_31-36", "bet_32-35", "bet_32-36", "bet_3rd 12", "bet_2 to 1(2)", "bet_19 to 36", "bet_EVEN", "bet_RED"];
tt.A_wins[33] = ["bet_31-33", "bet_32-33", "bet_33", "bet_28-33", "bet_29-33", "bet_30-33", "bet_31-36", "bet_32-36", "bet_33-36", "bet_3rd 12", "bet_2 to 1(3)", "bet_19 to 36", "bet_ODD", "bet_BLACK"];
tt.A_wins[34] = ["bet_34", "bet_34-35", "bet_34-36", "bet_31-34", "bet_31-35", "bet_31-36", "bet_3rd 12", "bet_2 to 1(1)", "bet_19 to 36", "bet_EVEN", "bet_RED"];
tt.A_wins[35] = ["bet_34-35", "bet_34-36", "bet_35", "bet_35-36", "bet_31-35", "bet_31-36", "bet_32-35", "bet_32-36", "bet_3rd 12", "bet_2 to 1(2)", "bet_19 to 36", "bet_ODD", "bet_BLACK"];
tt.A_wins[36] = ["bet_34-36", "bet_35-36", "bet_36", "bet_31-36", "bet_32-36", "bet_33-36", "bet_3rd 12", "bet_2 to 1(3)", "bet_EVEN", "bet_19 to 36", "bet_RED"];
tt.checkForRepeat();
tt.checkForClear();
var o = {};
o.onKeyDown = function () {
if (Key.getCode() == 32) {
if (C_Game.curBet > 0) {
C_Game.curBet = -1 * Math.abs(C_Game.curBet);
}
} else if (Key.getCode() == 9) {
} else if (Key.getCode() == 13) {
} else if (Key.getCode() == 82) {
C_Game.repeat();
}
};
o.onKeyUp = function () {
if (Key.getCode() == 32) {
if (C_Game.curBet < 0) {
C_Game.curBet = Math.abs(C_Game.curBet);
}
} else if (Key.getCode() == 9) {
if (this.tab) {
Stage.broadcastMessage("onResize");
this.tab = false;
if (!this.tabPressed) {
this.tabPressed = (getTimer() - this.time) > 1200;
}
}
}
};
Key.addListener(o);
MovieClip.prototype.tabEnabled = false;
Button.prototype.tabEnabled = false;
_root.chipsMenu_mc.setChangeHandler({client:this, handler:"setCurBet"});
_root.chipsMenu_mc.setChip(this.curBet);
tt.initInterface();
tt.initProperties();
tt.gameConfig();
tt.setButtons();
tt.setVariants();
var txt = LANG.placeyourbets;
C_Game.dealerVoiceHint(txt);
};
C_GameCLASS.prototype.setVariants = function () {
var o = ((this.variants = {}));
o["37"] = 0;
o["00"] = 0;
o["0"] = 1;
o["1"] = 2;
o["2"] = 3;
o["3"] = 4;
o["4"] = 5;
o["5"] = 6;
o["6"] = 7;
o["7"] = 8;
o["8"] = 9;
o["9"] = 10;
o["10"] = 11;
o["11"] = 12;
o["12"] = 13;
o["13"] = 14;
o["14"] = 15;
o["15"] = 16;
o["16"] = 17;
o["17"] = 18;
o["18"] = 19;
o["19"] = 20;
o["20"] = 21;
o["21"] = 22;
o["22"] = 23;
o["23"] = 24;
o["24"] = 25;
o["25"] = 26;
o["26"] = 27;
o["27"] = 28;
o["28"] = 29;
o["29"] = 30;
o["30"] = 31;
o["31"] = 32;
o["32"] = 33;
o["33"] = 34;
o["34"] = 35;
o["35"] = 36;
o["36"] = 37;
o["1-2"] = 38;
o["2-3"] = 39;
o["4-5"] = 40;
o["5-6"] = 41;
o["7-8"] = 42;
o["8-9"] = 43;
o["10-11"] = 44;
o["11-12"] = 45;
o["13-14"] = 46;
o["14-15"] = 47;
o["16-17"] = 48;
o["17-18"] = 49;
o["19-20"] = 50;
o["20-21"] = 51;
o["22-23"] = 52;
o["23-24"] = 53;
o["25-26"] = 54;
o["26-27"] = 55;
o["28-29"] = 56;
o["29-30"] = 57;
o["31-32"] = 58;
o["32-33"] = 59;
o["34-35"] = 60;
o["35-36"] = 61;
o["1-4"] = 62;
o["2-5"] = 63;
o["3-6"] = 64;
o["4-7"] = 65;
o["5-8"] = 66;
o["6-9"] = 67;
o["7-10"] = 68;
o["8-11"] = 69;
o["9-12"] = 70;
o["10-13"] = 71;
o["11-14"] = 72;
o["12-15"] = 73;
o["13-16"] = 74;
o["14-17"] = 75;
o["15-18"] = 76;
o["16-19"] = 77;
o["17-20"] = 78;
o["18-21"] = 79;
o["19-22"] = 80;
o["20-23"] = 81;
o["21-24"] = 82;
o["22-25"] = 83;
o["23-26"] = 84;
o["24-27"] = 85;
o["25-28"] = 86;
o["26-29"] = 87;
o["27-30"] = 88;
o["28-31"] = 89;
o["29-32"] = 90;
o["30-33"] = 91;
o["31-34"] = 92;
o["32-35"] = 93;
o["33-36"] = 94;
o["1-3"] = 95;
o["4-6"] = 96;
o["7-9"] = 97;
o["10-12"] = 98;
o["13-15"] = 99;
o["16-18"] = 100;
o["19-21"] = 101;
o["22-24"] = 102;
o["25-27"] = 103;
o["28-30"] = 104;
o["31-33"] = 105;
o["34-36"] = 106;
o["1-5"] = 107;
o["2-6"] = 108;
o["4-8"] = 109;
o["5-9"] = 110;
o["7-11"] = 111;
o["8-12"] = 112;
o["10-14"] = 113;
o["11-15"] = 114;
o["13-17"] = 115;
o["14-18"] = 116;
o["16-20"] = 117;
o["17-21"] = 118;
o["19-23"] = 119;
o["20-24"] = 120;
o["22-26"] = 121;
o["23-27"] = 122;
o["25-29"] = 123;
o["26-30"] = 124;
o["28-32"] = 125;
o["29-33"] = 126;
o["31-35"] = 127;
o["32-36"] = 128;
o["1-6"] = 129;
o["4-9"] = 130;
o["7-12"] = 131;
o["10-15"] = 132;
o["13-18"] = 133;
o["16-21"] = 134;
o["19-24"] = 135;
o["22-27"] = 136;
o["25-30"] = 137;
o["28-33"] = 138;
o["31-36"] = 139;
o["1st 12"] = 140;
o["2nd 12"] = 141;
o["3rd 12"] = 142;
o["2 to 1(1)"] = 143;
o["2 to 1(2)"] = 144;
o["2 to 1(3)"] = 145;
o.RED = 146;
o.BLACK = 147;
o.EVEN = 148;
o.ODD = 149;
o["1 to 18"] = 150;
o["19 to 36"] = 151;
o.FIVE = 152;
o["0-1"] = 153;
o["0-2"] = 154;
o["0-1-2"] = 155;
o["00-2"] = 156;
o["00-3"] = 157;
o["00-2-3"] = 158;
o["0-00-2"] = 159;
o["0-00"] = 160;
};
C_GameCLASS.prototype.calc_variant = function (variant_idx, num, bet) {
var win = 0;
var push = 0;
switch (variant_idx) {
case 0 :
if (num == 37) {
win = bet * 35;
push = bet;
}
break;
case 1 :
if (num == 0) {
win = bet * 35;
push = bet;
}
break;
case 2 :
if (num == 1) {
win = bet * 35;
push = bet;
}
break;
case 3 :
if (num == 2) {
win = bet * 35;
push = bet;
}
break;
case 4 :
if (num == 3) {
win = bet * 35;
push = bet;
}
break;
case 5 :
if (num == 4) {
win = bet * 35;
push = bet;
}
break;
case 6 :
if (num == 5) {
win = bet * 35;
push = bet;
}
break;
case 7 :
if (num == 6) {
win = bet * 35;
push = bet;
}
break;
case 8 :
if (num == 7) {
win = bet * 35;
push = bet;
}
break;
case 9 :
if (num == 8) {
win = bet * 35;
push = bet;
}
break;
case 10 :
if (num == 9) {
win = bet * 35;
push = bet;
}
break;
case 11 :
if (num == 10) {
win = bet * 35;
push = bet;
}
break;
case 12 :
if (num == 11) {
win = bet * 35;
push = bet;
}
break;
case 13 :
if (num == 12) {
win = bet * 35;
push = bet;
}
break;
case 14 :
if (num == 13) {
win = bet * 35;
push = bet;
}
break;
case 15 :
if (num == 14) {
win = bet * 35;
push = bet;
}
break;
case 16 :
if (num == 15) {
win = bet * 35;
push = bet;
}
break;
case 17 :
if (num == 16) {
win = bet * 35;
push = bet;
}
break;
case 18 :
if (num == 17) {
win = bet * 35;
push = bet;
}
break;
case 19 :
if (num == 18) {
win = bet * 35;
push = bet;
}
break;
case 20 :
if (num == 19) {
win = bet * 35;
push = bet;
}
break;
case 21 :
if (num == 20) {
win = bet * 35;
push = bet;
}
break;
case 22 :
if (num == 21) {
win = bet * 35;
push = bet;
}
break;
case 23 :
if (num == 22) {
win = bet * 35;
push = bet;
}
break;
case 24 :
if (num == 23) {
win = bet * 35;
push = bet;
}
break;
case 25 :
if (num == 24) {
win = bet * 35;
push = bet;
}
break;
case 26 :
if (num == 25) {
win = bet * 35;
push = bet;
}
break;
case 27 :
if (num == 26) {
win = bet * 35;
push = bet;
}
break;
case 28 :
if (num == 27) {
win = bet * 35;
push = bet;
}
break;
case 29 :
if (num == 28) {
win = bet * 35;
push = bet;
}
break;
case 30 :
if (num == 29) {
win = bet * 35;
push = bet;
}
break;
case 31 :
if (num == 30) {
win = bet * 35;
push = bet;
}
break;
case 32 :
if (num == 31) {
win = bet * 35;
push = bet;
}
break;
case 33 :
if (num == 32) {
win = bet * 35;
push = bet;
}
break;
case 34 :
if (num == 33) {
win = bet * 35;
push = bet;
}
break;
case 35 :
if (num == 34) {
win = bet * 35;
push = bet;
}
break;
case 36 :
if (num == 35) {
win = bet * 35;
push = bet;
}
break;
case 37 :
if (num == 36) {
win = bet * 35;
push = bet;
}
break;
case 38 :
if ((num == 1) || (num == 2)) {
win = bet * 17;
push = bet;
}
break;
case 39 :
if ((num == 2) || (num == 3)) {
win = bet * 17;
push = bet;
}
break;
case 40 :
if ((num == 4) || (num == 5)) {
win = bet * 17;
push = bet;
}
break;
case 41 :
if ((num == 5) || (num == 6)) {
win = bet * 17;
push = bet;
}
break;
case 42 :
if ((num == 7) || (num == 8)) {
win = bet * 17;
push = bet;
}
break;
case 43 :
if ((num == 8) || (num == 9)) {
win = bet * 17;
push = bet;
}
break;
case 44 :
if ((num == 10) || (num == 11)) {
win = bet * 17;
push = bet;
}
break;
case 45 :
if ((num == 11) || (num == 12)) {
win = bet * 17;
push = bet;
}
break;
case 46 :
if ((num == 13) || (num == 14)) {
win = bet * 17;
push = bet;
}
break;
case 47 :
if ((num == 14) || (num == 15)) {
win = bet * 17;
push = bet;
}
break;
case 48 :
if ((num == 16) || (num == 17)) {
win = bet * 17;
push = bet;
}
break;
case 49 :
if ((num == 17) || (num == 18)) {
win = bet * 17;
push = bet;
}
break;
case 50 :
if ((num == 19) || (num == 20)) {
win = bet * 17;
push = bet;
}
break;
case 51 :
if ((num == 20) || (num == 21)) {
win = bet * 17;
push = bet;
}
break;
case 52 :
if ((num == 22) || (num == 23)) {
win = bet * 17;
push = bet;
}
break;
case 53 :
if ((num == 23) || (num == 24)) {
win = bet * 17;
push = bet;
}
break;
case 54 :
if ((num == 25) || (num == 26)) {
win = bet * 17;
push = bet;
}
break;
case 55 :
if ((num == 26) || (num == 27)) {
win = bet * 17;
push = bet;
}
break;
case 56 :
if ((num == 28) || (num == 29)) {
win = bet * 17;
push = bet;
}
break;
case 57 :
if ((num == 29) || (num == 30)) {
win = bet * 17;
push = bet;
}
break;
case 58 :
if ((num == 31) || (num == 32)) {
win = bet * 17;
push = bet;
}
break;
case 59 :
if ((num == 32) || (num == 33)) {
win = bet * 17;
push = bet;
}
break;
case 60 :
if ((num == 34) || (num == 35)) {
win = bet * 17;
push = bet;
}
break;
case 61 :
if ((num == 35) || (num == 36)) {
win = bet * 17;
push = bet;
}
break;
case 62 :
if ((num == 1) || (num == 4)) {
win = bet * 17;
push = bet;
}
break;
case 63 :
if ((num == 2) || (num == 5)) {
win = bet * 17;
push = bet;
}
break;
case 64 :
if ((num == 3) || (num == 6)) {
win = bet * 17;
push = bet;
}
break;
case 65 :
if ((num == 4) || (num == 7)) {
win = bet * 17;
push = bet;
}
break;
case 66 :
if ((num == 5) || (num == 8)) {
win = bet * 17;
push = bet;
}
break;
case 67 :
if ((num == 6) || (num == 9)) {
win = bet * 17;
push = bet;
}
break;
case 68 :
if ((num == 7) || (num == 10)) {
win = bet * 17;
push = bet;
}
break;
case 69 :
if ((num == 8) || (num == 11)) {
win = bet * 17;
push = bet;
}
break;
case 70 :
if ((num == 9) || (num == 12)) {
win = bet * 17;
push = bet;
}
break;
case 71 :
if ((num == 10) || (num == 13)) {
win = bet * 17;
push = bet;
}
break;
case 72 :
if ((num == 11) || (num == 14)) {
win = bet * 17;
push = bet;
}
break;
case 73 :
if ((num == 12) || (num == 15)) {
win = bet * 17;
push = bet;
}
break;
case 74 :
if ((num == 13) || (num == 16)) {
win = bet * 17;
push = bet;
}
break;
case 75 :
if ((num == 14) || (num == 17)) {
win = bet * 17;
push = bet;
}
break;
case 76 :
if ((num == 15) || (num == 18)) {
win = bet * 17;
push = bet;
}
break;
case 77 :
if ((num == 16) || (num == 19)) {
win = bet * 17;
push = bet;
}
break;
case 78 :
if ((num == 17) || (num == 20)) {
win = bet * 17;
push = bet;
}
break;
case 79 :
if ((num == 18) || (num == 21)) {
win = bet * 17;
push = bet;
}
break;
case 80 :
if ((num == 19) || (num == 22)) {
win = bet * 17;
push = bet;
}
break;
case 81 :
if ((num == 20) || (num == 23)) {
win = bet * 17;
push = bet;
}
break;
case 82 :
if ((num == 21) || (num == 24)) {
win = bet * 17;
push = bet;
}
break;
case 83 :
if ((num == 22) || (num == 25)) {
win = bet * 17;
push = bet;
}
break;
case 84 :
if ((num == 23) || (num == 26)) {
win = bet * 17;
push = bet;
}
break;
case 85 :
if ((num == 24) || (num == 27)) {
win = bet * 17;
push = bet;
}
break;
case 86 :
if ((num == 25) || (num == 28)) {
win = bet * 17;
push = bet;
}
break;
case 87 :
if ((num == 26) || (num == 29)) {
win = bet * 17;
push = bet;
}
break;
case 88 :
if ((num == 27) || (num == 30)) {
win = bet * 17;
push = bet;
}
break;
case 89 :
if ((num == 28) || (num == 31)) {
win = bet * 17;
push = bet;
}
break;
case 90 :
if ((num == 29) || (num == 32)) {
win = bet * 17;
push = bet;
}
break;
case 91 :
if ((num == 30) || (num == 33)) {
win = bet * 17;
push = bet;
}
break;
case 92 :
if ((num == 31) || (num == 34)) {
win = bet * 17;
push = bet;
}
break;
case 93 :
if ((num == 32) || (num == 35)) {
win = bet * 17;
push = bet;
}
break;
case 94 :
if ((num == 33) || (num == 36)) {
win = bet * 17;
push = bet;
}
break;
case 95 :
if ((num >= 1) && (num <= 3)) {
win = bet * 11;
push = bet;
}
break;
case 96 :
if ((num >= 4) && (num <= 6)) {
win = bet * 11;
push = bet;
}
break;
case 97 :
if ((num >= 7) && (num <= 9)) {
win = bet * 11;
push = bet;
}
break;
case 98 :
if ((num >= 10) && (num <= 12)) {
win = bet * 11;
push = bet;
}
break;
case 99 :
if ((num >= 13) && (num <= 15)) {
win = bet * 11;
push = bet;
}
break;
case 100 :
if ((num >= 16) && (num <= 18)) {
win = bet * 11;
push = bet;
}
break;
case 101 :
if ((num >= 19) && (num <= 21)) {
win = bet * 11;
push = bet;
}
break;
case 102 :
if ((num >= 22) && (num <= 24)) {
win = bet * 11;
push = bet;
}
break;
case 103 :
if ((num >= 25) && (num <= 27)) {
win = bet * 11;
push = bet;
}
break;
case 104 :
if ((num >= 28) && (num <= 30)) {
win = bet * 11;
push = bet;
}
break;
case 105 :
if ((num >= 31) && (num <= 33)) {
win = bet * 11;
push = bet;
}
break;
case 106 :
if ((num >= 34) && (num <= 36)) {
win = bet * 11;
push = bet;
}
break;
case 107 :
if ((((num == 1) || (num == 2)) || (num == 4)) || (num == 5)) {
win = bet * 8;
push = bet;
}
break;
case 108 :
if ((((num == 2) || (num == 3)) || (num == 5)) || (num == 6)) {
win = bet * 8;
push = bet;
}
break;
case 109 :
if ((((num == 4) || (num == 5)) || (num == 7)) || (num == 8)) {
win = bet * 8;
push = bet;
}
break;
case 110 :
if ((((num == 5) || (num == 6)) || (num == 8)) || (num == 9)) {
win = bet * 8;
push = bet;
}
break;
case 111 :
if ((((num == 7) || (num == 8)) || (num == 10)) || (num == 11)) {
win = bet * 8;
push = bet;
}
break;
case 112 :
if ((((num == 8) || (num == 9)) || (num == 11)) || (num == 12)) {
win = bet * 8;
push = bet;
}
break;
case 113 :
if ((((num == 10) || (num == 11)) || (num == 13)) || (num == 14)) {
win = bet * 8;
push = bet;
}
break;
case 114 :
if ((((num == 11) || (num == 12)) || (num == 14)) || (num == 15)) {
win = bet * 8;
push = bet;
}
break;
case 115 :
if ((((num == 13) || (num == 14)) || (num == 16)) || (num == 17)) {
win = bet * 8;
push = bet;
}
break;
case 116 :
if ((((num == 14) || (num == 15)) || (num == 17)) || (num == 18)) {
win = bet * 8;
push = bet;
}
break;
case 117 :
if ((((num == 16) || (num == 17)) || (num == 19)) || (num == 20)) {
win = bet * 8;
push = bet;
}
break;
case 118 :
if ((((num == 17) || (num == 18)) || (num == 20)) || (num == 21)) {
win = bet * 8;
push = bet;
}
break;
case 119 :
if ((((num == 19) || (num == 20)) || (num == 22)) || (num == 23)) {
win = bet * 8;
push = bet;
}
break;
case 120 :
if ((((num == 20) || (num == 21)) || (num == 23)) || (num == 24)) {
win = bet * 8;
push = bet;
}
break;
case 121 :
if ((((num == 22) || (num == 23)) || (num == 25)) || (num == 26)) {
win = bet * 8;
push = bet;
}
break;
case 122 :
if ((((num == 23) || (num == 24)) || (num == 26)) || (num == 27)) {
win = bet * 8;
push = bet;
}
break;
case 123 :
if ((((num == 25) || (num == 26)) || (num == 28)) || (num == 29)) {
win = bet * 8;
push = bet;
}
break;
case 124 :
if ((((num == 26) || (num == 27)) || (num == 29)) || (num == 30)) {
win = bet * 8;
push = bet;
}
break;
case 125 :
if ((((num == 28) || (num == 29)) || (num == 31)) || (num == 32)) {
win = bet * 8;
push = bet;
}
break;
case 126 :
if ((((num == 29) || (num == 30)) || (num == 32)) || (num == 33)) {
win = bet * 8;
push = bet;
}
break;
case 127 :
if ((((num == 31) || (num == 32)) || (num == 34)) || (num == 35)) {
win = bet * 8;
push = bet;
}
break;
case 128 :
if ((((num == 32) || (num == 33)) || (num == 35)) || (num == 36)) {
win = bet * 8;
push = bet;
}
break;
case 129 :
if ((num >= 1) && (num <= 6)) {
win = bet * 5;
push = bet;
}
break;
case 130 :
if ((num >= 4) && (num <= 9)) {
win = bet * 5;
push = bet;
}
break;
case 131 :
if ((num >= 7) && (num <= 12)) {
win = bet * 5;
push = bet;
}
break;
case 132 :
if ((num >= 10) && (num <= 15)) {
win = bet * 5;
push = bet;
}
break;
case 133 :
if ((num >= 13) && (num <= 18)) {
win = bet * 5;
push = bet;
}
break;
case 134 :
if ((num >= 16) && (num <= 21)) {
win = bet * 5;
push = bet;
}
break;
case 135 :
if ((num >= 19) && (num <= 24)) {
win = bet * 5;
push = bet;
}
break;
case 136 :
if ((num >= 22) && (num <= 27)) {
win = bet * 5;
push = bet;
}
break;
case 137 :
if ((num >= 25) && (num <= 30)) {
win = bet * 5;
push = bet;
}
break;
case 138 :
if ((num >= 28) && (num <= 33)) {
win = bet * 5;
push = bet;
}
break;
case 139 :
if ((num >= 31) && (num <= 36)) {
win = bet * 5;
push = bet;
}
break;
case 140 :
if ((num >= 1) && (num <= 12)) {
win = bet * 2;
push = bet;
}
break;
case 141 :
if ((num >= 13) && (num <= 24)) {
win = bet * 2;
push = bet;
}
break;
case 142 :
if ((num >= 25) && (num <= 36)) {
win = bet * 2;
push = bet;
}
break;
case 143 :
if ((((((((((((num == 1) || (num == 4)) || (num == 7)) || (num == 10)) || (num == 13)) || (num == 16)) || (num == 19)) || (num == 22)) || (num == 25)) || (num == 28)) || (num == 31)) || (num == 34)) {
win = bet * 2;
push = bet;
}
break;
case 144 :
if ((((((((((((num == 2) || (num == 5)) || (num == 8)) || (num == 11)) || (num == 14)) || (num == 17)) || (num == 20)) || (num == 23)) || (num == 26)) || (num == 29)) || (num == 32)) || (num == 35)) {
win = bet * 2;
push = bet;
}
break;
case 145 :
if ((((((((((((num == 3) || (num == 6)) || (num == 9)) || (num == 12)) || (num == 15)) || (num == 18)) || (num == 21)) || (num == 24)) || (num == 27)) || (num == 30)) || (num == 33)) || (num == 36)) {
win = bet * 2;
push = bet;
}
break;
case 146 :
if ((num == 0) || (num == 37)) {
win = bet * 0;
push = bet * 0;
} else if ((((((((((((((((((num == 1) || (num == 3)) || (num == 5)) || (num == 7)) || (num == 9)) || (num == 12)) || (num == 14)) || (num == 16)) || (num == 18)) || (num == 19)) || (num == 21)) || (num == 23)) || (num == 25)) || (num == 27)) || (num == 30)) || (num == 32)) || (num == 34)) || (num == 36)) {
win = bet;
push = bet;
}
break;
case 147 :
if ((num == 0) || (num == 37)) {
win = bet * 0;
push = bet * 0;
} else if ((((((((((((((((((num == 2) || (num == 4)) || (num == 6)) || (num == 8)) || (num == 10)) || (num == 11)) || (num == 13)) || (num == 15)) || (num == 17)) || (num == 20)) || (num == 22)) || (num == 24)) || (num == 26)) || (num == 28)) || (num == 29)) || (num == 31)) || (num == 33)) || (num == 35)) {
win = bet;
push = bet;
}
break;
case 148 :
if ((num == 0) || (num == 37)) {
win = bet * 0;
push = bet * 0;
} else if (!(num & 1)) {
win = bet;
push = bet;
}
break;
case 149 :
if ((num == 0) || (num == 37)) {
win = bet * 0;
push = bet * 0;
} else if (num & 1) {
win = bet;
push = bet;
}
break;
case 150 :
if ((num >= 1) && (num <= 18)) {
win = bet;
push = bet;
}
break;
case 151 :
if ((num >= 19) && (num <= 36)) {
win = bet;
push = bet;
}
break;
case 152 :
if (((((num == 0) || (num == 1)) || (num == 2)) || (num == 3)) || (num == 37)) {
win = bet * 6;
push = bet;
}
break;
case 153 :
if ((num == 0) || (num == 1)) {
win = bet * 17;
push = bet;
}
break;
case 154 :
if ((num == 0) || (num == 2)) {
win = bet * 17;
push = bet;
}
break;
case 155 :
if ((num >= 0) && (num <= 2)) {
win = bet * 11;
push = bet;
}
break;
case 156 :
if ((num == 2) || (num == 37)) {
win = bet * 17;
push = bet;
}
break;
case 157 :
if ((num == 3) || (num == 37)) {
win = bet * 17;
push = bet;
}
break;
case 158 :
if (((num == 2) || (num == 3)) || (num == 37)) {
win = bet * 11;
push = bet;
}
break;
case 159 :
if (((num == 0) || (num == 2)) || (num == 37)) {
win = bet * 11;
push = bet;
}
break;
case 160 :
if ((num == 0) || (num == 37)) {
win = bet * 17;
push = bet;
}
break;
default :
debug("calc_variant: bad 'variant_idx'", variant_idx);
}
return([win, push]);
};
C_GameCLASS.prototype.restoreBalance = function (arg) {
this.chekBalanceRefresh();
};
C_GameCLASS.prototype.initProperties = function () {
var tt = this;
delete _root.messageDisplay;
_root.addProperty("messageDisplay", function () {
return(tt.messageText);
}, function (t) {
tt.messageText = t;
var txt = LANG["hint_" + t];
if (txt == undefined) {
txt = "messageDisplay > error: " + t;
}
HINT._hint = txt;
});
tt.getCurBet = function () {
return(tt.curBet);
};
tt.setCurBet = function (arg) {
tt.curBet = arg;
};
tt.addProperty("curBet", tt.getCurBet, tt.setCurBet);
tt.onNominalChanged = function (arg) {
tt.curBet = arg;
};
chipSelector.addListener(this);
tt.getUserBalance = function () {
return(tt.userBalance);
};
tt.setUserBalance = function (arg) {
GUI.balance = arg;
tt.userBalance = arg;
};
tt.addProperty("userBalance", tt.getUserBalance, tt.setUserBalance);
Options.addListener(this);
tt.onOptionsChanged = function () {
C_Game.turbo = OPTIONS.fastMode;
tt.checkFastMode();
};
tt.onOptionsChanged();
tt.getMaxBet = function () {
return(tt._maxbet);
};
tt.getMinBet = function () {
return(tt._minbet);
};
tt.setMaxBet = function (arg) {
tt._maxbet = arg;
_min_max_Menu_mc.max = insertAndReplace(LANG.currency, arg);
};
tt.setMinBet = function (arg) {
tt._minbet = arg;
_min_max_Menu_mc.min = insertAndReplace(LANG.currency, arg);
};
tt.addProperty("minbet", tt.getMinBet, tt.setMinBet);
tt.addProperty("maxbet", tt.getMaxBet, tt.setMaxBet);
var gf_chip = function () {
return(tt._chips);
};
var sf_chip = function (arg) {
var a = arg;
chipSelector.chip1 = Number(a[0]);
chipSelector.chip2 = Number(a[1]);
chipSelector.chip3 = Number(a[2]);
chipSelector.chip4 = Number(a[3]);
chipSelector.chip5 = Number(a[4]);
tt._chips = arg;
delete a;
};
tt.addProperty("_chips", gf_chip, sf_chip);
};
C_GameCLASS.prototype.initInterface = function () {
this.curBet = chipSelector.value;
GUI.setAlias("screen2", "bet");
GUI.setAlias("screen3", "win");
var x1 = _root.target_btn_1._x;
var x2 = _root.target_btn_2._x;
var x3 = _root.target_btn_3._x;
var y1 = _root.target_btn_1._y;
var y2 = _root.target_btn_2._y;
var y3 = _root.target_btn_3._y;
_global.BUTTONS.addButton("SPIN", 0, x1, y1);
_global.BUTTONS.addButton("CLEAR BETS", 0, x2, y2);
_global.BUTTONS.addButton("REBET", 0, x3, y3);
_global.BUTTONS.addListener(this);
chipSelector.addListener(this);
};
C_GameCLASS.prototype.crBalance = function () {
GUI.balance = this.userBalance;
};
C_GameCLASS.prototype.spin = function (complette, num) {
var txt = LANG.nomorebets;
C_Game.dealerVoiceHint(txt);
GUI.win = "0";
if (this.locked && (!complette)) {
return(undefined);
}
if (this.notEmptyBet && (this.summ_bets() <= 0)) {
C_Game.showAltWarning(LANG.hint_place_bet);
return(undefined);
}
this.lock();
this.display(true);
_root.ball.hide();
_root.weel.play();
_root.ruchka.play();
if (C_Server != undefined) {
if (!complette) {
C_Server.round();
return(undefined);
}
this.result = Number(num);
} else {
this.create_result();
}
this.win = false;
this.wins_summ = 0;
Conv.include(BIG_WHEEL, "startSpin", 0);
Conv.include(this, "anim_weel", 0);
Conv.put(empty, "3");
Conv.put(function () {
HINT._hint = "";
}, 0);
this.check_prizes();
if (_level5) {
Conv.put(function () {
C_Game.userBalance = C_Game.userBalance_from_server;
C_Game.crBalance();
}, 0);
}
this.bet = 0;
Conv.put(this, "unlock", 0);
Conv.put(function () {
var txt = LANG.placeyourbets;
C_Game.dealerVoiceHint(txt);
}, 0);
};
C_GameCLASS.prototype.create_result = function () {
this.result = _hack.getResult();
if (this.result == -1) {
this.result = Math.floor(Math.random() * 38);
}
if (this.result == "00") {
this.result = 37;
}
};
C_GameCLASS.prototype.lock = function () {
var tt = this;
this.locked = true;
_global.G_locked = true;
_root.buttonsDisplay = "";
_root.buttons.hide();
GUI.startRound();
this.setButtons();
Button.prototype.enabled = false;
MovieClip.prototype.enabled = false;
_root.A_PokerButtonCLASS[0].lockall();
tt.setButtons();
};
C_GameCLASS.prototype.lockLocal = function () {
this.locked = true;
_global.G_locked = true;
this.setButtons();
};
C_GameCLASS.prototype.unlock = function () {
var tt = this;
this.locked = false;
_global.G_locked = 0;
_root.buttons.show();
this.setButtons();
GUI.endRound();
Button.prototype.enabled = true;
MovieClip.prototype.enabled = true;
_root.A_PokerButtonCLASS[0].unlockall();
tt.setButtons();
};
C_GameCLASS.prototype.checkForRepeat = function () {
var tt = this;
var o = tt.repeat_places;
var sum = 0;
for (v in o) {
sum = sum + o[v];
}
if (!sum) {
root.repeat_button.lock();
} else {
root.repeat_button.unlock();
}
};
C_GameCLASS.prototype.checkForClear = function () {
var tt = this;
if (!tt.summ_bets()) {
root.clear_button.lock();
} else {
root.clear_button.unlock();
}
};
C_GameCLASS.prototype.onGameButton = function (caption) {
switch (caption) {
case "CLEAR BETS" :
this.clear();
return;
case "REBET" :
this.repeat();
return;
case "SPIN" :
this.spin();
}
};
C_GameCLASS.prototype.setButtons = function () {
_global.BUTTONS.lock();
if (this.locked) {
return(undefined);
}
var active = {};
active.SPIN = 0 < this.summ_bets();
active["CLEAR BETS"] = 0 < this.summ_bets();
active.REBET = this.repeatPossible();
if (this.notEmptyBet == false) {
active.SPIN = true;
}
for (var v in active) {
if (active[v] == true) {
_global.BUTTONS.unlock(v);
}
}
};
C_GameCLASS.prototype.repeatPossible = function () {
var sum = 0;
for (v in this.repeat_places) {
sum = sum + this.repeat_places[v];
}
return(Boolean(sum));
};
C_GameCLASS.prototype.anim_weel = function () {
var finish = 17;
var total = 129;
var first = 15;
var num_rotation = ((Math.floor(Math.random() * 3) + 2) * (1 - OPTIONS.fastmode));
var random_offset = (Math.floor(Math.random() * 7) - 3);
if (random_offset == 3) {
random_offset = -21;
}
var ball_offset = ((total - finish) + (random_offset * 2));
var end_pos = (((this.weel[this.result] + random_offset) + 38) % 38);
var start_pos = _root.weel._currentframe;
var anim_frames;
if (end_pos > start_pos) {
anim_frames = end_pos - start_pos;
} else {
anim_frames = (38 - start_pos) + end_pos;
}
var weel_offset = ((ball_offset + (first * num_rotation)) % 38);
if (weel_offset < anim_frames) {
weel_offset = anim_frames - weel_offset;
} else {
weel_offset = 38 - (weel_offset - anim_frames);
}
Conv.put(_root.weel, "play", 0);
Conv.put(_root.ruchka, "play", String(weel_offset));
Conv.put(_root.ball, "show", 0);
var o = _root.ball.ball;
Conv.put(o, "newSound", 0, "roll", sound_FX_volume, 1000);
var i = 1;
while (i <= num_rotation) {
Conv.put(o, "gotoAndPlay", String(first), 1);
i++;
}
Conv.put(o, "stopSound", 0);
Conv.put(o, "newSound", 0, "bounc", sound_FX_volume, 1);
Conv.put(o, "set", 0, "notAction", true);
Conv.put(o, "gotoAndPlay", String(ball_offset), 17);
Conv.put(o, "stop", 0);
Conv.put(_root.weel, "stop", 0);
Conv.put(_root.ruchka, "stop", 0);
};
C_GameCLASS.prototype.display = function (changed) {
if (!changed) {
var bets = this.push_summ;
if ((this.wins_summ > 0) && (bets > 0)) {
var x = (this.wins_summ + bets);
GUI.win = x;
} else if ((this.wins_summ <= 0) && (bets > 0)) {
GUI.win = 0;
}
} else {
this.delete_pawn();
GUI.bet = this.bet;
}
};
C_GameCLASS.prototype.display_pawn = function () {
this.pawn_mc = _root.attachMovie("giryaSymbol", "pawn", 18991);
var result = this.result;
if (result == 37) {
result = "00";
}
this.pawn_mc._x = _root[("bet_" + result) + "_ch"]._x;
this.pawn_mc._y = _root[("bet_" + result) + "_ch"]._y;
this.pawn = true;
BIG_WHEEL.setNumber(result);
delete result;
};
C_GameCLASS.prototype.delete_pawn = function () {
if (!this.pawn) {
return(undefined);
}
this.pawn_mc.removeMovieClip();
this.pawn = false;
};
C_GameCLASS.prototype.display_numbers = function () {
var mc = _root.display_numbers;
var i = 16;
while (i >= 1) {
mc["display_black" + i].count = mc["display_black" + (i - 1)].count;
mc["display_green" + i].count = mc["display_green" + (i - 1)].count;
mc["display_red" + i].count = mc["display_red" + (i - 1)].count;
i--;
}
mc.display_black1.count = "";
mc.display_green1.count = "";
mc.display_red1.count = "";
var tmp_col = (this.color.toLowerCase() + "");
if (tmp_col == "") {
tmp_col = "green";
}
var txt = this.result;
if (txt == "37") {
txt = "00";
}
mc[("display_" + tmp_col) + "1"].count = txt;
this.display_pawn();
};
C_GameCLASS.prototype.clear = function () {
this.lockLocal();
var test = false;
var speed = 0;
var speed2 = 25;
for (var v in this.places) {
if (this.places[v].bet > 0) {
speed++;
}
}
for (var v in this.places) {
if (this.places[v].bet > 0) {
if (speed > 5) {
speed2 = -1;
}
this.clearBetsFlag = 0;
Conv.put(this, "clearBetsFlag", 0, 1);
Conv.include(this, "toPlayer", 0, v, speed2);
Conv.put(this, "clearBetsFlag", 0, 0);
test = true;
}
}
Conv.put(this, "summ_bets", 0);
Conv.put(this, "display", 0, true);
if (test) {
Conv.put(empty, "10");
Conv.put(this, "chipsToBalance", "4");
}
Conv.put(this, "unlock", 0);
};
C_GameCLASS.prototype.repeat = function () {
var tt = this;
if (this.locked) {
return(undefined);
}
if (!this.repeatPossible()) {
return(undefined);
}
var bet;
var prev_bet;
var place;
this.lockLocal();
for (var v in this.repeat_places) {
bet = this.repeat_places[v];
prev_bet = this.places[v].bet;
place = this.places[v];
ch_place = _root[v + "_ch"];
Conv.put(function (o, bet, prev_bet, place, ch_place) {
if ((o.bet + (bet - prev_bet)) > o.maxBetOnTable) {
return(undefined);
}
if (o.userBalance < (bet - prev_bet)) {
return(undefined);
}
ch_place.setBet(bet, 0);
place.bet = bet;
o.userBalance = o.userBalance - (bet - prev_bet);
o.summ_bets();
o.display(true);
}, (250 * (1 - OPTIONS.fastMode)) + 50, this, bet, prev_bet, place, ch_place);
}
tt.repeat_places = {};
Conv.put(this, "crBalance", 0);
Conv.put(this, "unlock", 0);
};
C_GameCLASS.prototype.sounds = function () {
if (!this.voiceON) {
return(undefined);
}
};
C_GameCLASS.prototype.check_prizes = function () {
var tt = this;
this.noZERO = (this.result != 0) && (this.result != 37);
delete this.color;
delete this.parity;
if ([1, 3, 5, 7, 9, 12, 14, 16, 18, 19, 21, 23, 25, 27, 30, 32, 34, 36].indexOf(this.result, "==") != -1) {
this.color = "RED";
} else {
this.color = "BLACK";
}
if ([0, "00", "37"].indexOf(this.result, "==") != -1) {
this.color = "GREEN";
}
if ((this.result % 2) == 0) {
this.parity = "EVEN";
} else {
this.parity = "ODD";
}
var wins_array = tt.A_wins[this.result];
var ob_no_loose = {};
var i = 0;
while (i < wins_array.length) {
ob_no_loose[wins_array[i]] = true;
i++;
}
Conv.put(this, "display_numbers", 0);
if (this.noZERO) {
var txt0 = this.result;
} else {
var txt0 = LANG["result_" + this.result];
}
var txt1 = this.color;
var txt2 = this.parity;
if (txt1 == null) {
var txt = txt0;
} else {
var txt = ((((txt0 + ",") + txt1) + ",") + txt2);
}
var numToSay = ((this.result != 37) ? (this.result) : "00");
Conv.put(_global.soundLib, "sound", "1", "num_" + numToSay, SNDL_AUTO);
if (this.noZERO) {
Conv.put(_global.soundLib, "sound", "1", "color_" + this.color, SNDL_AUTO);
Conv.put(_global.soundLib, "sound", "1", this.parity, SNDL_AUTO);
}
this.loose_places(ob_no_loose);
this.wins_places(wins_array);
Conv.put(this, "display", 0);
};
C_GameCLASS.prototype.loose_places = function (ob_no_loose) {
this.repeat_places = {};
var speed = 0;
var speed2 = 50;
for (var v in this.places) {
if (this.places[v].bet > 0) {
speed++;
}
}
for (var v in this.places) {
if (this.places[v].bet > 0) {
if (speed > 5) {
speed2 = -1;
}
this.repeat_places[v] = this.places[v].bet;
if (!ob_no_loose[v]) {
this.loose(v, speed2);
}
}
}
};
C_GameCLASS.prototype.wins_places = function (arr_wins) {
var o;
this.wins_summ = 0;
this.push_summ = 0;
var i = 0;
while (i < arr_wins.length) {
o = this.places[arr_wins[i]];
if (o.bet > 0) {
if (!this.win) {
Conv.put(function () {
var txt = ("dealer:" + LANG.youwin);
HINT._hint = txt;
}, 0);
Conv.put(this, "display", 0);
Conv.put(_global.soundLib, "sound", "1", "result_playerwins", SNDL_AUTO);
this.win = true;
}
if (SYS.mode == "REAL") {
this.wins_summ = C_Game.userWINS_from_server;
this.push_summ = C_Game.userPUSH_from_server;
} else {
var id0 = arr_wins[i].substr(4);
var id = this.variants[id0];
var res = this.calc_variant(id, this.result, o.bet);
this.wins_summ = this.wins_summ + res[0];
this.push_summ = this.push_summ + res[1];
}
Conv.include(this, "prize", 0, arr_wins[i]);
}
i++;
}
if (this.win) {
Conv.put(empty, 1000);
Conv.put(this, "chipsToBalance", "4");
}
};
C_GameCLASS.prototype.prize = function (bet_place) {
var ob = this.places[bet_place];
var mc = _root[bet_place + "_ch"];
if ((ob.bet == 0) && (ob.bet == null)) {
return(undefined);
}
var vprize = (Math.round((ob.bet * ob.prize_index) * 100) / 100);
ob.bet = ob.bet + vprize;
Conv.put(mc, "setBet", "4", ob.bet, 0);
this.toPlayer(bet_place);
};
C_GameCLASS.prototype.loose = function (bet_place, speed) {
var ob = this.places[bet_place];
var mc = _root[bet_place + "_ch"];
if (speed != -1) {
Conv.anim(mc.getPlace(), _root.dPL, {speed:speed || 50, to_end:1});
}
Conv.put(mc, "setBet", 0, 0, 1);
ob.bet = 0;
};
C_GameCLASS.prototype.toPlayer = function (bet_place, speed) {
var ob = this.places[bet_place];
var mc = _root[bet_place + "_ch"];
if (speed != -1) {
Conv.anim(mc.getPlace(), _root.chPL, {speed:speed || 25});
}
Conv.put(mc, "setBet", 0, 0, 0, 1);
this.toPlayer_bets = this.toPlayer_bets + ob.bet;
if (speed != -1) {
Conv.put(function (bet) {
_root.chPL.setBet(bet, 1);
}, "4", this.toPlayer_bets);
}
if ((SYS.mode == "FUN") or this.clearBetsFlag) {
Conv.put(function (bet) {
C_Game.userBalance = C_Game.userBalance + bet;
}, "2", ob.bet);
}
ob.bet = 0;
};
C_GameCLASS.prototype.chipsToBalance = function () {
_root.chPL.setBet(0, 0, 1);
this.toPlayer_bets = 0;
this.crBalance();
};
C_GameCLASS.prototype.addChips = function (bet_place) {
var tt = this;
if (!tt.testBalance()) {
C_Game.showAltWarning(LANG.hint_notenoughmoney);
return(undefined);
}
tt.delete_pawn();
tt.repeat_places = {};
var pl = this.places[bet_place];
if (((pl.bet + this.curBet) > pl.maximum) && (pl.maximum > 0)) {
C_Game.showAltWarning(LANG.hint_maximumonplace, pl.maximum);
var cbet = this.curBet;
var difference = (pl.maximum - pl.bet);
this.curBet = difference;
this.addChips(bet_place);
this.curBet = cbet;
return(undefined);
}
if ((this.summ_bets() + this.curBet) > Number(this.maxBetOnTable)) {
C_Game.showAltWarning(LANG.hint_maximumontable, this.maxBetOnTable);
return(undefined);
}
var bet_bk = pl.bet;
pl.bet = pl.bet + this.curBet;
if ((pl._min != null) && (pl.bet < pl._min)) {
if (this.curBet < 0) {
pl.bet = 0;
} else {
if (pl._min > this.userBalance) {
C_Game.showAltWarning(LANG.hint_minimumonplace, pl._min);
return(undefined);
}
if (((this.MinAnswer_global == null) && (!pl.notMinMessage)) && (!pl.answerComplette)) {
pl.bet = bet_bk;
this.lock();
Button.prototype.enabled = true;
C_Game.showAltWarning(LANG.hint_minimumonplace, pl._min);
C_Game.unlock();
var cbet = this.curBet;
this.curBet = pl._min;
this.addChips(bet_place);
this.curBet = cbet;
return(undefined);
}
if (this.MinAnswer_global != null) {
pl._minAnswer == this.MinAnswer_global;
}
if (pl._minAnswer == "YES") {
pl.bet = pl._min;
} else {
pl.bet = bet_bk;
}
pl.answerComplette = false;
C_Game.showAltWarning(LANG.hint_minimumonplace, pl._min);
}
}
if (pl.bet < 0) {
pl.bet = 0;
}
this.userBalance = this.userBalance - (pl.bet - bet_bk);
if (this.userBalance < 0) {
pl.bet = pl.bet + this.userBalance;
this.userBalance = 0;
}
this.bet = this.bet + (pl.bet - bet_bk);
_root[bet_place + "_ch"].setBet(pl.bet, 0);
this.display(true);
this.setButtons();
};
C_GameCLASS.prototype.dealerVoiceHint = function (arg1, arg2) {
var arg = arg1;
var txt0 = insertAndReplace(arg, arg2);
var txt = ("dealer_always:" + txt0);
HINT._hint = txt;
};
C_GameCLASS.prototype.showAltWarning = function (arg1, arg2) {
var arg = arg1;
var txt = ("tooltip:" + insertAndReplace(arg, arg2));
HINT._hint = txt;
};
C_GameCLASS.prototype.summ_bets = function () {
var result_summ = 0;
for (var v in this.places) {
result_summ = result_summ + this.places[v].bet;
}
this.bet = result_summ;
return(result_summ);
};
C_GameCLASS.prototype.testBalance = function () {
this.restoreBalance(this.curBet);
return(this.userBalance >= this.curBet);
};
C_GameCLASS.prototype.getGameinfo = function () {
var tt = this;
var config = SYS.gameConfig;
if (config != undefined) {
tt.setGameinfo(config);
}
};
C_GameCLASS.prototype.setGameinfo = function (arg) {
var ob = arg.attributes;
if (Number(ob.maxtotalbet) > 0) {
C_Game.maxBetOnTable = Number(ob.maxtotalbet);
}
var min_max = ((this.min_max = {}));
min_max["1"] = ["0", "00", "37", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30", "31", "32", "33", "34", "35", "36"];
min_max["2"] = ["0-00", "33-36", "32-35", "31-34", "30-33", "29-32", "28-31", "27-30", "26-29", "25-28", "24-27", "23-26", "22-25", "21-24", "20-23", "19-22", "18-21", "17-20", "16-19", "15-18", "14-17", "13-16", "12-15", "11-14", "10-13", "9-12", "8-11", "7-10", "6-9", "5-8", "4-7", "3-6", "2-5", "1-4", "35-36", "34-35", "32-33", "31-32", "29-30", "28-29", "26-27", "25-26", "23-24", "22-23", "20-21", "19-20", "17-18", "16-17", "14-15", "13-14", "11-12", "10-11", "8-9", "7-8", "5-6", "4-5", "2-3", "1-2", "0-1", "0-2", "00-2", "00-3"];
min_max["3"] = ["34-36", "31-33", "28-30", "25-27", "22-24", "19-21", "16-18", "13-15", "10-12", "7-9", "4-6", "1-3", "0-1-2", "0-00-2", "00-2-3"];
min_max["4"] = ["32-36", "31-35", "29-33", "28-32", "26-30", "25-29", "23-27", "22-26", "20-24", "19-23", "17-21", "16-20", "14-18", "13-17", "11-15", "10-14", "8-12", "7-11", "5-9", "4-8", "2-6", "1-5"];
min_max["5"] = ["FIVE"];
min_max["6"] = ["31-36", "28-33", "25-30", "22-27", "19-24", "16-21", "13-18", "10-15", "7-12", "4-9", "1-6"];
min_max["12"] = ["3rd 12", "2nd 12", "1st 12", "2 to 1(3)", "2 to 1(2)", "2 to 1(1)"];
min_max["18"] = ["BLACK", "RED", "ODD", "EVEN", "19 to 36", "1 to 18"];
var min_max_array = ob.min_max.split(",");
var place;
var game_places;
var min_max_value;
var max;
var min;
var sMin = 100000000;
var sMax = 0;
var min_max_array = ob.min_max.split(",");
var place;
var game_places;
var min_max_value;
var _max;
var _min;
var sMin = 100000000;
var sMax = 0;
var i = 0;
while (i < min_max_array.length) {
place = min_max_array[i].split(":");
min_max_value = place[1].split("-");
game_places = min_max[place[0]];
_min = Number(min_max_value[0]);
_max = Number(min_max_value[1]);
if (_min < sMin) {
sMin = _min;
}
if (_max > sMax) {
sMax = _max;
}
var j = 0;
while (j < game_places.length) {
C_Game.places["bet_" + game_places[j]]._min = _min;
C_Game.places["bet_" + game_places[j]].maximum = _max;
j++;
}
i++;
}
if (min_max_array.length) {
if (sMin > 0) {
C_Game.minbet = sMin;
}
if (sMax > 0) {
C_Game.maxbet = sMax;
}
}
this.notEmptyBet = ob.emptybet != "0";
};
_root.buttons.o = function (name_mc) {
if (C_Game.droped > 0) {
C_Game.addChips(name_mc);
C_Game.droped = 0;
return(undefined);
}
C_Game.droped = 0;
_root.betHighlite_mc.showBet(name_mc);
_root.addHL_mc.HL(name_mc);
var left_text = LANG.hint_place_bet;
var xn = name_mc.split(" ").join("_");
var display_bet;
if (xn.length > 6) {
display_bet = LANG[xn];
} else {
display_bet = xn.substr(4);
}
var ins1 = C_Game.places[name_mc].prize_index;
var text2 = LANG.hint_pays;
var text3 = insertAndReplace(text2, ins1);
if (display_bet != null) {
var text0 = insertAndReplace(left_text, display_bet);
} else {
var text0 = insertAndReplace(left_text, name_mc.substr(4));
}
var txt0 = ((text0 + newline) + text3);
txt0 = txt0 + (newline + printf(LANG.hint_betMinMax, C_Game.places[name_mc]._min, C_Game.places[name_mc].maximum));
C_Game.showAltWarning(txt0);
};
_root.buttons.r = function (name_mc) {
C_Game.addChips(name_mc);
C_Game.checkForClear();
};
_root.buttons.u = function () {
_root.betHighlite_mc.clear();
_root.addHL_mc.clear();
HINT.hide();
};
C_GameCLASS.prototype.gameConfig = function () {
var config = "<config maxtotalbet=\"400\" min_max=\"1:0.1-100,2:0.1-100,3:0.1-100,4:0.1-100,6:0.1-100,12:0.1-100,18:0.1-100\" emptybet=\"0\"> <fun balance=\"1000\" low_limit=\"10\" alert=\"1\" /> <chips range=\"0.1:0.5:1:2:5\" def=\"3\"/> </config>";
_global.SYS = {};
SYS.mode = "FUN";
SYS.gameConfig = new XML(config);
var config = SYS.gameConfig;
var chips = config.getByName("chips");
var nominals = chips.attributes.range.split(":");
var def = chips.attributes.def;
var i = 0;
while (i < nominals.length) {
chipSelector["chip" + (i + 1)] = Number(nominals[i]);
i++;
}
chipSelector.index = Number(def);
var minimax = config.getByName("config");
this.maxBetOnTable = Number(minimax.attributes.maxtotalbet);
this.minbet = Number(minimax.attributes.minbet);
this.maxbet = Number(minimax.attributes.maxbet);
this.gameDependedConfig(config.getByName("config"));
if (SYS.mode == "FUN") {
var balanceSet = config.getByName("fun");
}
if (SYS.mode == "REAL") {
var balanceSet = config.getByName("real");
}
if (balanceSet == undefined) {
var balanceSet = {attributes:{}};
balanceSet.attributes.balance = 999;
balanceSet.attributes.low_limit = 0;
balanceSet.attributes.alert = 0;
WARNING(200, "balanceSet (SYS.mode depended node 'fun' or 'real') not recognized or not specified.");
}
this.userBalance = Number(balanceSet.attributes.balance);
this.crBalance();
if (SYS.mode == "FUN") {
this.balanceRefresh_value = Number(balanceSet.attributes.balance);
this.balanceRefresh_limit = Number(balanceSet.attributes.low_limit);
this.configAlert = Number(balanceSet.attributes.alert);
} else {
this.balanceRefresh_value = undefined;
this.balanceRefresh_limit = undefined;
this.configAlert = undefined;
}
};
C_GameCLASS.prototype.chekBalanceRefresh = function () {
if (SYS.mode != "FUN") {
return(undefined);
}
if (this.userBalance <= this.balanceRefresh_limit) {
this.userBalance = this.balanceRefresh_value;
}
};
C_GameCLASS.prototype.gameDependedConfig = function (arg) {
this.setGameinfo(arg);
};
SequenceLoader.loadFile("roulette sound library", "soundlib.swf", this.soundLib);
_global.C_Game = new C_GameCLASS();
_global.C_Initializator = {};
C_Initializator.gameStart = function () {
C_Game.init();
};
ASSetPropFlags(_global, "C_Game,C_GameCLASS", 131);
Instance of Symbol 1014 MovieClip "weel" in Frame 2
onClipEvent (load) {
this.stop();
}
Instance of Symbol 1018 MovieClip "ball" in Frame 2
onClipEvent (load) {
this.ball.stop();
this.hide();
}
Instance of Symbol 1034 MovieClip "ruchka" in Frame 2
onClipEvent (load) {
this.stop();
}
Instance of Symbol 283 MovieClip [C_ChipsCLASS] "chDl_0" in Frame 2
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
}
Instance of Symbol 283 MovieClip [C_ChipsCLASS] "bet_00_ch" in Frame 2
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
}
Instance of Symbol 283 MovieClip [C_ChipsCLASS] "bet_0-00_ch" in Frame 2
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
}
Instance of Symbol 283 MovieClip [C_ChipsCLASS] "bet_0_ch" in Frame 2
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
}
Instance of Symbol 283 MovieClip [C_ChipsCLASS] "bet_00-3_ch" in Frame 2
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
}
Instance of Symbol 283 MovieClip [C_ChipsCLASS] "bet_FIVE_ch" in Frame 2
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
}
Instance of Symbol 283 MovieClip [C_ChipsCLASS] "bet_00-2-3_ch" in Frame 2
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
}
Instance of Symbol 283 MovieClip [C_ChipsCLASS] "bet_00-2_ch" in Frame 2
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
}
Instance of Symbol 283 MovieClip [C_ChipsCLASS] "bet_0-00-2_ch" in Frame 2
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
}
Instance of Symbol 283 MovieClip [C_ChipsCLASS] "bet_0-2_ch" in Frame 2
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
}
Instance of Symbol 283 MovieClip [C_ChipsCLASS] "bet_0-1-2_ch" in Frame 2
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
}
Instance of Symbol 283 MovieClip [C_ChipsCLASS] "bet_0-1_ch" in Frame 2
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
}
Instance of Symbol 283 MovieClip [C_ChipsCLASS] "bet_1-3_ch" in Frame 2
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
}
Instance of Symbol 283 MovieClip [C_ChipsCLASS] "bet_1-6_ch" in Frame 2
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
}
Instance of Symbol 283 MovieClip [C_ChipsCLASS] "bet_4-6_ch" in Frame 2
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
}
Instance of Symbol 283 MovieClip [C_ChipsCLASS] "bet_3_ch" in Frame 2
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
}
Instance of Symbol 283 MovieClip [C_ChipsCLASS] "bet_4-9_ch" in Frame 2
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
}
Instance of Symbol 283 MovieClip [C_ChipsCLASS] "bet_7-9_ch" in Frame 2
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
}
Instance of Symbol 283 MovieClip [C_ChipsCLASS] "bet_3-6_ch" in Frame 2
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
}
Instance of Symbol 283 MovieClip [C_ChipsCLASS] "bet_6_ch" in Frame 2
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
}
Instance of Symbol 283 MovieClip [C_ChipsCLASS] "bet_7-12_ch" in Frame 2
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
}
Instance of Symbol 283 MovieClip [C_ChipsCLASS] "bet_2-3_ch" in Frame 2
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
}
Instance of Symbol 283 MovieClip [C_ChipsCLASS] "bet_2-6_ch" in Frame 2
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
}
Instance of Symbol 283 MovieClip [C_ChipsCLASS] "bet_10-12_ch" in Frame 2
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
}
Instance of Symbol 283 MovieClip [C_ChipsCLASS] "bet_6-9_ch" in Frame 2
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
}
Instance of Symbol 283 MovieClip [C_ChipsCLASS] "bet_9_ch" in Frame 2
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
}
Instance of Symbol 283 MovieClip [C_ChipsCLASS] "bet_5-6_ch" in Frame 2
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
}
Instance of Symbol 283 MovieClip [C_ChipsCLASS] "bet_2_ch" in Frame 2
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
}
Instance of Symbol 283 MovieClip [C_ChipsCLASS] "bet_5-9_ch" in Frame 2
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
}
Instance of Symbol 283 MovieClip [C_ChipsCLASS] "bet_10-15_ch" in Frame 2
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
}
Instance of Symbol 283 MovieClip [C_ChipsCLASS] "bet_9-12_ch" in Frame 2
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
}
Instance of Symbol 283 MovieClip [C_ChipsCLASS] "bet_13-15_ch" in Frame 2
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
}
Instance of Symbol 283 MovieClip [C_ChipsCLASS] "bet_12_ch" in Frame 2
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
}
Instance of Symbol 283 MovieClip [C_ChipsCLASS] "bet_2-5_ch" in Frame 2
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
}
Instance of Symbol 283 MovieClip [C_ChipsCLASS] "bet_8-9_ch" in Frame 2
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
}
Instance of Symbol 283 MovieClip [C_ChipsCLASS] "bet_5_ch" in Frame 2
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
}
Instance of Symbol 283 MovieClip [C_ChipsCLASS] "bet_13-18_ch" in Frame 2
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
}
Instance of Symbol 283 MovieClip [C_ChipsCLASS] "bet_12-15_ch" in Frame 2
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
}
Instance of Symbol 283 MovieClip [C_ChipsCLASS] "bet_15_ch" in Frame 2
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
}
Instance of Symbol 283 MovieClip [C_ChipsCLASS] "bet_8-12_ch" in Frame 2
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
}
Instance of Symbol 283 MovieClip [C_ChipsCLASS] "bet_16-18_ch" in Frame 2
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
}
Instance of Symbol 283 MovieClip [C_ChipsCLASS] "bet_1-2_ch" in Frame 2
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
}
Instance of Symbol 283 MovieClip [C_ChipsCLASS] "bet_5-8_ch" in Frame 2
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
}
Instance of Symbol 283 MovieClip [C_ChipsCLASS] "bet_8_ch" in Frame 2
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
}
Instance of Symbol 283 MovieClip [C_ChipsCLASS] "bet_1-5_ch" in Frame 2
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
}
Instance of Symbol 283 MovieClip [C_ChipsCLASS] "bet_16-21_ch" in Frame 2
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
}
Instance of Symbol 283 MovieClip [C_ChipsCLASS] "bet_11-12_ch" in Frame 2
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
}
Instance of Symbol 283 MovieClip [C_ChipsCLASS] "bet_15-18_ch" in Frame 2
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
}
Instance of Symbol 283 MovieClip [C_ChipsCLASS] "bet_18_ch" in Frame 2
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
}
Instance of Symbol 283 MovieClip [C_ChipsCLASS] "bet_11-15_ch" in Frame 2
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
}
Instance of Symbol 283 MovieClip [C_ChipsCLASS] "bet_19-21_ch" in Frame 2
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
}
Instance of Symbol 283 MovieClip [C_ChipsCLASS] "bet_4-5_ch" in Frame 2
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
}
Instance of Symbol 283 MovieClip [C_ChipsCLASS] "bet_8-11_ch" in Frame 2
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
}
Instance of Symbol 283 MovieClip [C_ChipsCLASS] "bet_1_ch" in Frame 2
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
}
Instance of Symbol 283 MovieClip [C_ChipsCLASS] "bet_11_ch" in Frame 2
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
}
Instance of Symbol 283 MovieClip [C_ChipsCLASS] "bet_4-8_ch" in Frame 2
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
}
Instance of Symbol 283 MovieClip [C_ChipsCLASS] "bet_19-24_ch" in Frame 2
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
}
Instance of Symbol 283 MovieClip [C_ChipsCLASS] "bet_14-15_ch" in Frame 2
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
}
Instance of Symbol 283 MovieClip [C_ChipsCLASS] "bet_14-18_ch" in Frame 2
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
}
Instance of Symbol 283 MovieClip [C_ChipsCLASS] "bet_18-21_ch" in Frame 2
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
}
Instance of Symbol 283 MovieClip [C_ChipsCLASS] "bet_21_ch" in Frame 2
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
}
Instance of Symbol 283 MovieClip [C_ChipsCLASS] "bet_22-24_ch" in Frame 2
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
}
Instance of Symbol 283 MovieClip [C_ChipsCLASS] "bet_1-4_ch" in Frame 2
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
}
Instance of Symbol 283 MovieClip [C_ChipsCLASS] "bet_7-8_ch" in Frame 2
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
}
Instance of Symbol 283 MovieClip [C_ChipsCLASS] "bet_11-14_ch" in Frame 2
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
}
Instance of Symbol 283 MovieClip [C_ChipsCLASS] "bet_17-18_ch" in Frame 2
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
}
Instance of Symbol 283 MovieClip [C_ChipsCLASS] "bet_4_ch" in Frame 2
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
}
Instance of Symbol 283 MovieClip [C_ChipsCLASS] "bet_14_ch" in Frame 2
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
}
Instance of Symbol 283 MovieClip [C_ChipsCLASS] "bet_7-11_ch" in Frame 2
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
}
Instance of Symbol 283 MovieClip [C_ChipsCLASS] "bet_17-21_ch" in Frame 2
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
}
Instance of Symbol 283 MovieClip [C_ChipsCLASS] "bet_22-27_ch" in Frame 2
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
}
Instance of Symbol 283 MovieClip [C_ChipsCLASS] "bet_21-24_ch" in Frame 2
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
}
Instance of Symbol 283 MovieClip [C_ChipsCLASS] "bet_24_ch" in Frame 2
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
}
Instance of Symbol 283 MovieClip [C_ChipsCLASS] "bet_4-7_ch" in Frame 2
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
}
Instance of Symbol 283 MovieClip [C_ChipsCLASS] "bet_10-11_ch" in Frame 2
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
}
Instance of Symbol 283 MovieClip [C_ChipsCLASS] "bet_14-17_ch" in Frame 2
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
}
Instance of Symbol 283 MovieClip [C_ChipsCLASS] "bet_20-21_ch" in Frame 2
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
}
Instance of Symbol 283 MovieClip [C_ChipsCLASS] "bet_7_ch" in Frame 2
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
}
Instance of Symbol 283 MovieClip [C_ChipsCLASS] "bet_17_ch" in Frame 2
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
}
Instance of Symbol 283 MovieClip [C_ChipsCLASS] "bet_10-14_ch" in Frame 2
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
}
Instance of Symbol 283 MovieClip [C_ChipsCLASS] "bet_20-24_ch" in Frame 2
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
}
Instance of Symbol 283 MovieClip [C_ChipsCLASS] "bet_25-27_ch" in Frame 2
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
}
Instance of Symbol 283 MovieClip [C_ChipsCLASS] "bet_24-27_ch" in Frame 2
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
}
Instance of Symbol 283 MovieClip [C_ChipsCLASS] "bet_25-30_ch" in Frame 2
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
}
Instance of Symbol 283 MovieClip [C_ChipsCLASS] "bet_27_ch" in Frame 2
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
}
Instance of Symbol 283 MovieClip [C_ChipsCLASS] "bet_28-30_ch" in Frame 2
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
}
Instance of Symbol 283 MovieClip [C_ChipsCLASS] "bet_7-10_ch" in Frame 2
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
}
Instance of Symbol 283 MovieClip [C_ChipsCLASS] "bet_13-14_ch" in Frame 2
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
}
Instance of Symbol 283 MovieClip [C_ChipsCLASS] "bet_17-20_ch" in Frame 2
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
}
Instance of Symbol 283 MovieClip [C_ChipsCLASS] "bet_23-24_ch" in Frame 2
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
}
Instance of Symbol 283 MovieClip [C_ChipsCLASS] "bet_10_ch" in Frame 2
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
}
Instance of Symbol 283 MovieClip [C_ChipsCLASS] "bet_20_ch" in Frame 2
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
}
Instance of Symbol 283 MovieClip [C_ChipsCLASS] "bet_13-17_ch" in Frame 2
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
}
Instance of Symbol 283 MovieClip [C_ChipsCLASS] "bet_23-27_ch" in Frame 2
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
}
Instance of Symbol 283 MovieClip [C_ChipsCLASS] "bet_28-33_ch" in Frame 2
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
}
Instance of Symbol 283 MovieClip [C_ChipsCLASS] "bet_27-30_ch" in Frame 2
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
}
Instance of Symbol 283 MovieClip [C_ChipsCLASS] "bet_30_ch" in Frame 2
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
}
Instance of Symbol 283 MovieClip [C_ChipsCLASS] "bet_31-33_ch" in Frame 2
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
}
Instance of Symbol 283 MovieClip [C_ChipsCLASS] "bet_10-13_ch" in Frame 2
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
}
Instance of Symbol 283 MovieClip [C_ChipsCLASS] "bet_16-17_ch" in Frame 2
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
}
Instance of Symbol 283 MovieClip [C_ChipsCLASS] "bet_20-23_ch" in Frame 2
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
}
Instance of Symbol 283 MovieClip [C_ChipsCLASS] "bet_26-27_ch" in Frame 2
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
}
Instance of Symbol 283 MovieClip [C_ChipsCLASS] "bet_13_ch" in Frame 2
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
}
Instance of Symbol 283 MovieClip [C_ChipsCLASS] "bet_23_ch" in Frame 2
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
}
Instance of Symbol 283 MovieClip [C_ChipsCLASS] "bet_16-20_ch" in Frame 2
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
}
Instance of Symbol 283 MovieClip [C_ChipsCLASS] "bet_26-30_ch" in Frame 2
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
}
Instance of Symbol 283 MovieClip [C_ChipsCLASS] "bet_31-36_ch" in Frame 2
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
}
Instance of Symbol 283 MovieClip [C_ChipsCLASS] "bet_30-33_ch" in Frame 2
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
}
Instance of Symbol 283 MovieClip [C_ChipsCLASS] "bet_33_ch" in Frame 2
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
}
Instance of Symbol 283 MovieClip [C_ChipsCLASS] "bet_34-36_ch" in Frame 2
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
}
Instance of Symbol 283 MovieClip [C_ChipsCLASS] "bet_13-16_ch" in Frame 2
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
}
Instance of Symbol 283 MovieClip [C_ChipsCLASS] "bet_19-20_ch" in Frame 2
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
}
Instance of Symbol 283 MovieClip [C_ChipsCLASS] "bet_23-26_ch" in Frame 2
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
}
Instance of Symbol 283 MovieClip [C_ChipsCLASS] "bet_29-30_ch" in Frame 2
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
}
Instance of Symbol 283 MovieClip [C_ChipsCLASS] "bet_16_ch" in Frame 2
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
}
Instance of Symbol 283 MovieClip [C_ChipsCLASS] "bet_26_ch" in Frame 2
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
}
Instance of Symbol 283 MovieClip [C_ChipsCLASS] "bet_19-23_ch" in Frame 2
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
}
Instance of Symbol 283 MovieClip [C_ChipsCLASS] "bet_33-36_ch" in Frame 2
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
}
Instance of Symbol 283 MovieClip [C_ChipsCLASS] "bet_36_ch" in Frame 2
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
}
Instance of Symbol 283 MovieClip [C_ChipsCLASS] "bet_29-33_ch" in Frame 2
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
}
Instance of Symbol 283 MovieClip [C_ChipsCLASS] "bet_16-19_ch" in Frame 2
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
}
Instance of Symbol 283 MovieClip [C_ChipsCLASS] "bet_22-23_ch" in Frame 2
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
}
Instance of Symbol 283 MovieClip [C_ChipsCLASS] "bet_26-29_ch" in Frame 2
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
}
Instance of Symbol 283 MovieClip [C_ChipsCLASS] "bet_19_ch" in Frame 2
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
}
Instance of Symbol 283 MovieClip [C_ChipsCLASS] "bet_22-26_ch" in Frame 2
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
}
Instance of Symbol 283 MovieClip [C_ChipsCLASS] "bet_32-33_ch" in Frame 2
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
}
Instance of Symbol 283 MovieClip [C_ChipsCLASS] "bet_29_ch" in Frame 2
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
}
Instance of Symbol 283 MovieClip [C_ChipsCLASS] "bet_19-22_ch" in Frame 2
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
}
Instance of Symbol 283 MovieClip [C_ChipsCLASS] "bet_25-26_ch" in Frame 2
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
}
Instance of Symbol 283 MovieClip [C_ChipsCLASS] "bet_32-36_ch" in Frame 2
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
}
Instance of Symbol 283 MovieClip [C_ChipsCLASS] "bet_22_ch" in Frame 2
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
}
Instance of Symbol 283 MovieClip [C_ChipsCLASS] "bet_25-29_ch" in Frame 2
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
}
Instance of Symbol 283 MovieClip [C_ChipsCLASS] "bet_29-32_ch" in Frame 2
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
}
Instance of Symbol 283 MovieClip [C_ChipsCLASS] "bet_35-36_ch" in Frame 2
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
}
Instance of Symbol 283 MovieClip [C_ChipsCLASS] "bet_22-25_ch" in Frame 2
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
}
Instance of Symbol 283 MovieClip [C_ChipsCLASS] "bet_2 to 1(3)_ch" in Frame 2
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
}
Instance of Symbol 283 MovieClip [C_ChipsCLASS] "bet_32_ch" in Frame 2
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
}
Instance of Symbol 283 MovieClip [C_ChipsCLASS] "bet_28-29_ch" in Frame 2
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
}
Instance of Symbol 283 MovieClip [C_ChipsCLASS] "bet_25_ch" in Frame 2
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
}
Instance of Symbol 283 MovieClip [C_ChipsCLASS] "bet_28-32_ch" in Frame 2
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
}
Instance of Symbol 283 MovieClip [C_ChipsCLASS] "bet_32-35_ch" in Frame 2
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
}
Instance of Symbol 283 MovieClip [C_ChipsCLASS] "bet_35_ch" in Frame 2
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
}
Instance of Symbol 283 MovieClip [C_ChipsCLASS] "bet_25-28_ch" in Frame 2
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
}
Instance of Symbol 283 MovieClip [C_ChipsCLASS] "bet_31-32_ch" in Frame 2
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
}
Instance of Symbol 283 MovieClip [C_ChipsCLASS] "bet_28_ch" in Frame 2
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
}
Instance of Symbol 283 MovieClip [C_ChipsCLASS] "bet_31-35_ch" in Frame 2
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
}
Instance of Symbol 283 MovieClip [C_ChipsCLASS] "bet_28-31_ch" in Frame 2
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
}
Instance of Symbol 283 MovieClip [C_ChipsCLASS] "bet_2 to 1(2)_ch" in Frame 2
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
}
Instance of Symbol 283 MovieClip [C_ChipsCLASS] "bet_31_ch" in Frame 2
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
}
Instance of Symbol 283 MovieClip [C_ChipsCLASS] "bet_34-35_ch" in Frame 2
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
}
Instance of Symbol 283 MovieClip [C_ChipsCLASS] "bet_31-34_ch" in Frame 2
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
}
Instance of Symbol 283 MovieClip [C_ChipsCLASS] "bet_34_ch" in Frame 2
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
}
Instance of Symbol 283 MovieClip [C_ChipsCLASS] "bet_2 to 1(1)_ch" in Frame 2
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
}
Instance of Symbol 283 MovieClip [C_ChipsCLASS] "bet_3rd 12_ch" in Frame 2
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
}
Instance of Symbol 283 MovieClip [C_ChipsCLASS] "bet_ODD_ch" in Frame 2
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
}
Instance of Symbol 283 MovieClip [C_ChipsCLASS] "bet_19 to 36_ch" in Frame 2
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
}
Instance of Symbol 283 MovieClip [C_ChipsCLASS] "bet_1st 12_ch" in Frame 2
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
}
Instance of Symbol 283 MovieClip [C_ChipsCLASS] "bet_1 to 18_ch" in Frame 2
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
}
Instance of Symbol 283 MovieClip [C_ChipsCLASS] "bet_EVEN_ch" in Frame 2
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
}
Instance of Symbol 283 MovieClip [C_ChipsCLASS] "bet_2nd 12_ch" in Frame 2
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
}
Instance of Symbol 283 MovieClip [C_ChipsCLASS] "bet_RED_ch" in Frame 2
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
}
Instance of Symbol 283 MovieClip [C_ChipsCLASS] "bet_BLACK_ch" in Frame 2
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
}
Instance of Symbol 283 MovieClip [C_ChipsCLASS] "chPL" in Frame 2
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
}
Instance of Symbol 1476 MovieClip "min_max_Menu_mc" in Frame 2
//component parameters
onClipEvent (initialize) {
xxx = "5.00";
}
Instance of Symbol 1478 MovieClip in Frame 2
//component parameters
onClipEvent (initialize) {
globalname = "DEALER_VOICE_VIEW";
}
Symbol 17 MovieClip [tooltipHint] Frame 1
function onResize() {
var scale = ((100 / _level0._xscale) * 100);
if (scale > 100) {
scale = 100;
}
this._xscale = scale;
this._yscale = scale;
}
Stage.addListener(this);
tf.autoSize = "center";
if (_parent.caption != undefined) {
this.tf.text = _parent.caption;
}
onResize();
stop();
Symbol 21 MovieClip Frame 1
function onResize() {
var scale = ((100 / _level0._xscale) * 100);
if (scale > 100) {
scale = 100;
}
this._xscale = scale;
this._yscale = scale;
}
Stage.addListener(this);
tf.autoSize = "center";
tf.multiline = true;
if (_parent.caption != undefined) {
this.tf.text = _parent.caption;
var y = ((this.tf._y + this.tf.textHeight) / 2);
this.tf._y = this.tf._y - y;
}
onResize();
Symbol 25 MovieClip [C_GamesOpenMenuCLASS] Frame 1
#initclip 13
_global.C_GamesOpenMenuCLASS = function () {
this.init();
};
C_GamesOpenMenuCLASS.prototype = new MovieClip();
C_GamesOpenMenuCLASS.prototype.init = function () {
this.swapDepths(this.depthValue || 12120);
var o = this.attachMovie("GameMenu:holder", "holder_mc", 1);
o._x = -39;
o._y = 10;
o._visible = false;
var tf1 = this.holder_mc.text_mc;
var tf2 = this.holder_mc.title_mc;
o = (this.textFormats = {});
o.game = tf1.text_txt.getTextFormat();
o.game_over = tf1.text_txt.getTextFormat();
o.game_over.underline = true;
o.title = tf2.text_txt.getTextFormat();
tf1.removeMovieClip();
tf2.removeMovieClip();
this.loadMenu();
this.openGames_btn.root = this;
this.openGames_btn.onRelease = function () {
this.root.open();
};
};
C_GamesOpenMenuCLASS.prototype.loadMenu = function () {
var x = new XML();
x.root = this;
x.ignoreWhite = true;
x.onLoad = function (s) {
if (!s) {
trace("\u043C\u0435\u043D\u044E \u043D\u0435 \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u043B\u043E\u0441\u044C!");
return(undefined);
}
this.root.xmlcontent = this;
this.root.createMenu(this);
new_interface.game_menu_xml = this;
};
x.load(this.configPath);
};
C_GamesOpenMenuCLASS.prototype.createMenu = function (x) {
var tt = this;
this.inited = true;
var a = x.firstChild.childNodes;
var menu_items = [];
var o;
var item;
var h = this.holder_mc;
var height;
h.space_mc._visible = false;
h.title_mc._visible = false;
h.text_mc._visible = false;
var i = 0;
while (i < a.length) {
o = a[i].attributes;
if (o.type == "spacer") {
item = h.attachMovie("GameMenu:spacer", "spacer_" + i, i);
} else if (o.type == "title") {
item = h.attachMovie("GameMenu:titleText", "title_" + i, i);
item.text_txt.text = o.text;
} else {
item = h.attachMovie("GameMenu:gameText", "text_" + i, i);
item.text_txt.text = o.text;
if ((o.url != "") && (o.url != undefined)) {
item.url = o.url;
item.target = o.target;
item.onRelease = function () {
var oo = {};
oo.url = this.url;
oo.target = this.target;
tt.selectGame(oo);
this.clear();
this._parent._parent.close();
};
item.onRollOver = function () {
var tf = new TextFormat();
tf.underline = true;
this.text_txt.setTextFormat(tf);
this.box_mc.gotoAndStop(2);
};
item.onRollOut = function () {
this.box_mc.gotoAndStop(1);
this.clear();
};
item.clear = function () {
var tf = new TextFormat();
tf.underline = false;
this.text_txt.setTextFormat(tf);
};
} else {
var tf = new TextFormat();
tf.color = 10066329 /* 0x999999 */;
item.text_txt.setTextFormat(tf);
}
}
menu_items.push(item);
height = height + item._height;
i++;
}
a = menu_items;
height = height - h.space_mc._y;
var nextY = ((a[0]._y = a[0]._y - height));
nextY = nextY + a[0]._height;
var d_y = h.top_mc._y;
h.top_mc._y = (a[0]._y - h.top_mc._height) - 14;
d_y = d_y - h.top_mc._y;
h.middle_mc._y = h.middle_mc._y - d_y;
h.middle_mc._height = h.middle_mc._height + d_y;
var i = 1;
while (i < a.length) {
a[i]._y = nextY;
nextY = nextY + a[i]._height;
i++;
}
h.top_mc.onRelease = (h.middle_mc.onRelease = (h.bottom_mc.onRelease = function () {
}));
h.top_mc.useHandCursor = (h.middle_mc.useHandCursor = (h.bottom_mc.useHandCursor = false));
};
C_GamesOpenMenuCLASS.prototype.open = function () {
var tt = this;
if (!this.inited) {
return(undefined);
}
var o = this.holder_mc;
o._visible = true;
if (_root._xscale != 100) {
var s_index = (100 / _root._xscale);
o._xscale = 100 * s_index;
o._yscale = 100 * s_index;
}
o = (this.listener = {});
o.root = this;
o.onMouseDown = function () {
if (this.root.hitTest(_root._xmouse, _root._ymouse, true)) {
} else {
this.root.close();
}
};
o.onKeyDown = function () {
this.root.close();
};
Mouse.addListener(o);
Key.addListener(o);
if (tt.ymovie) {
var cof = ((430 - tt._height) / 430);
tt.onMouseMove = function () {
tt._y = Math.round(((_root._ymouse * cof) + tt._height) - 10);
updateAfterEvent();
};
}
};
C_GamesOpenMenuCLASS.prototype.close = function () {
trace("close!");
var tt = this;
delete tt.onMouseMove;
Mouse.removeListener(this.listener);
Key.removeListener(this.listener);
delete this.listener;
this.holder_mc._visible = false;
updateAfterEvent();
};
C_GamesOpenMenuCLASS.prototype.logout = function (arg, handler) {
var tt = this;
var arg = arg;
var handler = handler;
var message = (("<cmd type='logout' auth='" + C_Server.params.auth) + "'/>");
var sender = new XML(message);
var receiver = new XML();
receiver.onLoad = function () {
tt[handler](arg, "logout");
};
sender.sendAndLoad(C_Server.urlHttp, receiver);
};
C_GamesOpenMenuCLASS.prototype.selectGame = function (arg, argLog) {
var tt = this;
if (argLog != "logout") {
tt.logout(arg, "selectGame");
return(undefined);
}
getURL (arg.url, arg.target);
};
C_GamesOpenMenuCLASS.prototype.cashier = function (arg, argLog) {
var tt = this;
if (argLog != "logout") {
tt.logout(arg, "cashier");
return(undefined);
}
var at = this.xmlcontent.firstChild.attributes[arg].split(":");
var targ = ((at[1] == undefined) ? "_self" : (at[1]));
getURL (at[0], targ);
};
Object.registerClass("C_GamesOpenMenuCLASS", C_GamesOpenMenuCLASS);
delete _global.C_GamesOpenMenuCLASS;
#endinitclip
Symbol 32 MovieClip Frame 1
var mycolor = new Color(this);
mycolor.setRGB(this._parent.V_HLColor);
Symbol 34 MovieClip [C_PokerButtonCLASS] Frame 1
#initclip 1
_global.C_PokerButtonCLASS = function () {
this.onLoad = this.init;
};
C_PokerButtonCLASS.prototype = new MovieClip();
C_PokerButtonCLASS.prototype.init = function () {
((this.onRelease == undefined) ? ((this.onRelease = this.setChangeHandler)) : 0);
if (this.visibility == false) {
this._visible = false;
}
var c = new Color(this.myColorMc);
c.setRGB(this.V_myColor);
if (_root.LANGUAGE.toLowerCase() == "rus") {
var label = this.V_labelRUS;
} else {
var label = this.V_label;
}
this.setLabel(label);
if (_root.A_PokerButtonCLASS == undefined) {
_root.A_PokerButtonCLASS = [];
}
_root.A_PokerButtonCLASS.push(this);
};
C_PokerButtonCLASS.prototype.setEnabled = function (arg) {
if (arg || (arg == undefined)) {
this._alpha = 100;
} else {
this._alpha = 75;
this.gotoAndStop(1);
}
this.enabled = arg;
};
C_PokerButtonCLASS.prototype.setLabel = function (label) {
this.tf1.text = label;
var tform = new TextFormat();
tform.color = this.V_textColor || 16777215;
this.tf1.setTextFormat(tform);
this.tf2.text = label;
};
C_PokerButtonCLASS.prototype.getLabel = function () {
return(this.tf1.text);
};
C_PokerButtonCLASS.prototype.setLabelFormat = function (format) {
this.tf1.setTextFormat(format);
this.tf2.setTextFormat(format);
this.tf2.textColor = 0;
};
C_PokerButtonCLASS.prototype.setChangeHandler = function () {
this.lockAll();
_root["ButtonCLASS_" + this.V_label.toLowerCase()](this);
};
C_PokerButtonCLASS.prototype.lockAll = function () {
var i = 0;
while (i < _root.A_PokerButtonCLASS.length) {
_root.A_PokerButtonCLASS[i].lock();
i++;
}
};
C_PokerButtonCLASS.prototype.unlockAll = function () {
var i = 0;
while (i < _root.A_PokerButtonCLASS.length) {
_root.A_PokerButtonCLASS[i].unlock();
i++;
}
};
C_PokerButtonCLASS.prototype.lock = function () {
if (!this.allLocked) {
return(undefined);
}
if (this.locked) {
return(undefined);
}
this.locked = 1;
this.setEnabled(0);
};
C_PokerButtonCLASS.prototype.unlock = function () {
if (!this.locked) {
return(undefined);
}
this.locked = 0;
this.setEnabled(1);
};
Object.registerClass("C_PokerButtonCLASS", C_PokerButtonCLASS);
delete _global.C_PokerButtonCLASS;
#endinitclip
this.stop();
Symbol 39 MovieClip [C_BackToSiteButtonCLASS] Frame 1
#initclip 2
_global.C_BackToSiteButtonCLASS = function () {
this.init();
};
C_BackToSiteButtonCLASS.prototype = new MovieClip();
C_BackToSiteButtonCLASS.prototype.init = function () {
this.back_btn.root = this;
this.back_btn.onRelease = function () {
o = this.root;
getURL (o.url, o.target);
};
this.loadRules();
};
C_BackToSiteButtonCLASS.prototype.loadRules = function () {
var x = new XML();
x.root = this;
x.ignoreWhite = true;
x.onLoad = function (s) {
if (!s) {
trace("\u043C\u0435\u043D\u044E \u043D\u0435 \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u043B\u043E\u0441\u044C!");
}
var o = this.firstChild.attributes;
this.root.url = o.url;
this.root.target = o.target;
};
x.load(this.configPath);
};
Object.registerClass("C_BackToSiteButtonCLASS", C_BackToSiteButtonCLASS);
delete _global.C_BackToSiteButtonCLASS;
#endinitclip
Symbol 43 MovieClip [C_RulesOpenMenuCLASS] Frame 1
#initclip 3
_global.C_RulesOpenMenuCLASS = function () {
this.init();
};
C_RulesOpenMenuCLASS.prototype = new MovieClip();
C_RulesOpenMenuCLASS.prototype.init = function () {
this.rules_btn.root = this;
this.rules_btn.onRelease = function () {
o = this.root;
getURL (o.url, o.target);
};
this.loadRules();
};
C_RulesOpenMenuCLASS.prototype.loadRules = function () {
var x = new XML();
x.root = this;
x.ignoreWhite = true;
x.onLoad = function (s) {
if (!s) {
trace("rules \u043D\u0435 \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u043B\u0438\u0441\u044C!");
}
var o = this.firstChild.attributes;
this.root.url = o.url;
this.root.target = o.target;
};
x.load(this.configPath);
};
Object.registerClass("C_RulesOpenMenuCLASS", C_RulesOpenMenuCLASS);
delete _global.C_RulesOpenMenuCLASS;
#endinitclip
Symbol 51 MovieClip Frame 1
this.stop();
Symbol 51 MovieClip Frame 2
this.stop();
Symbol 103 MovieClip [C_ChipsMenuCLASS] Frame 1
#initclip 4
_global.C_ChipsMenuCLASS = function () {
};
C_ChipsMenuCLASS.prototype = new MovieClip();
C_ChipsMenuCLASS.prototype.onLoad = function () {
this.chips = [1, 5, 25, 100];
this.buttons = [];
var chips_names = ["$1.00", "$5.00", "$25.00", "$100.00"];
var c;
var i = 0;
while (i < this.chips.length) {
c = this[("ch_" + this.chips[i]) + "_mc"];
c.chip = this.chips[i];
c.addAlt(("Use " + chips_names[i]) + " chips for betting");
c.onPress = function () {
this.hideAlt();
this._parent.setChip(this.chip);
};
c.useHandCursor = false;
this.buttons.push(c);
i++;
}
this.setChip(this.curBet);
};
C_ChipsMenuCLASS.prototype.setChip = function (chip) {
var tt = this;
var i = 0;
while (i < this.buttons.length) {
this.buttons[i]._xscale = (this.buttons[i]._yscale = 100);
i++;
}
var c = this[("ch_" + chip) + "_mc"];
c._xscale = (c._yscale = 120);
this.curBet = chip;
this.ch_arow._x = c._x;
this.ch_arow._y = c._y;
tt.oc._xscale = 100;
tt.oc._yscale = 100;
c._xscale = 140;
c._yscale = 140;
tt.oc = c;
this.client.client[this.client.handler](this.curBet);
};
C_ChipsMenuCLASS.prototype.setChangeHandler = function (client) {
if (arguments.length == 1) {
this.client = client;
} else {
this.client = {client:arguments[1], handler:arguments[0]};
}
};
ASSetPropFlags(_global, "C_ChipsMenuCLASS", 131);
Object.registerClass("C_ChipsMenuCLASS", C_ChipsMenuCLASS);
#endinitclip
Symbol 114 MovieClip [chip3] Frame 1
CLASS.Chips = function (count) {
this.pos = 0;
this.vspace = 4;
this.namespace = _root.createEmptyMovieClip("__chips_" + (_root.depth++), _root.depth);
var config = new XML("<?xml version=\"1.0\"?><config maxtotalbet=\"325\" maxbet=\"175\" minbet=\"5\"><fun balance=\"1000\" low_limit=\"10\" alert=\"1\" /><chips range=\"1:5:10:25:100\" def=\"1\" /></config>");
var chips = config.getNodeByName("chips");
var chips = chips.attributes.range.split(":");
var chip = 0;
var chips = 0;
var i = chips.length;
while (i >= 0) {
chip = chips[i];
chips = count % chip;
count = count - (chips * chip);
this.draw(i + 1, chips);
i++;
}
};
var ch = CLASS.Chips.prototype;
ch.draw = function (face, count) {
chipID = "chip" + face;
depth = this.namespace.depth++;
this.namespace.attachMovie(chipID, name, depth);
};
Symbol 123 MovieClip [slider] Frame 1
#initclip 5
_global.C_Slider = function () {
this.init();
};
C_Slider.prototype.init = function () {
var val = Options[this.__option];
if (val != undefined) {
this.setVal(val);
}
this.setVal(this.__value);
Options.addListener(this);
this.addProperties();
AsBroadcaster.initialize(this);
};
C_Slider.prototype.addProperties = function () {
this.back.onPress = this.back_onPress;
this.back.onRelease = this.back_onRelease;
this.back.onReleaseOutside = this.back_onRelease;
this.drager.onPress = function () {
this._parent.back.onPress();
};
this.drager.onRelease = function () {
this._parent.back.onRelease();
};
this.drager.onReleaseOutside = function () {
this._parent.back.onReleaseOutside();
};
this.back.useHandCursor = false;
this.drager.useHandCursor = false;
this.addProperty("value", this.getVal, this.setVal);
};
C_Slider.prototype.back_onPress = function () {
this.onEnterFrame = function () {
var perc = ((this._xmouse / 120) * 100);
this._parent.value = perc;
};
};
C_Slider.prototype.back_onRelease = function () {
this.onEnterFrame = undefined;
};
C_Slider.prototype.getVal = function () {
return(this.__value);
};
C_Slider.prototype.setVal = function (val) {
if (val < 0) {
val = 0;
}
if (val > 100) {
val = 100;
}
if (val == this.__value) {
return(undefined);
}
this.__value = val;
var space = ((120 * val) / 100);
this.active._xscale = space;
this.drager._x = space;
_global.Options[this.__option] = val;
this.broadcastMessage("onValueChanged", this, val);
if (this.eventName != "") {
_parent[this.eventName](val);
}
};
C_Slider.prototype.onOptionsChanged = function () {
if (this.__option != "") {
this.value = _global.Options[this.__option];
}
};
Object.registerClass("slider", _global.C_Slider);
#endinitclip
Symbol 128 MovieClip Frame 1
stop();
Symbol 128 MovieClip Frame 6
stop();
Symbol 131 MovieClip [ChekBox] Frame 1
#initclip 6
_global.C_ChekBox = function () {
this.init();
};
C_ChekBox.prototype.init = function () {
this.__setProperties();
if (this.__option != "") {
_global.Options.addListener(this);
var val = Options[this.__option];
if (val != undefined) {
this.__value = val;
}
}
this.caption = this.__caption;
if (this.__value == true) {
this.box.gotoAndStop("true");
} else {
this.box.gotoAndStop("false");
}
this.activeRect.useHandCursor = false;
this.activeRect.onRelease = function () {
this._parent.value = !this._parent.value;
};
this.init = undefined;
};
C_ChekBox.prototype.__setProperties = function () {
this.addProperty("value", this.__getValue, this.__setValue);
this.addProperty("caption", this.__getCaption, this.__setCaption);
};
C_ChekBox.prototype.__getCaption = function () {
return(this.__caption);
};
C_ChekBox.prototype.__setCaption = function (val) {
this.createTextField("textShadow", 1, textShadow_tf._x, textShadow_tf._y, 0, 0);
this.createTextField("text", 2, text_tf._x, text_tf._y, 0, 0);
var tf = this.textShadow_tf.getNewTextFormat();
this.textShadow.setNewTextFormat(tf);
var tf = this.text_tf.getNewTextFormat();
this.text.setNewTextFormat(tf);
this.text.autoSize = "left";
this.textShadow.autoSize = "left";
this.text.embedFonts = true;
this.textShadow.embedFonts = true;
this.text_tf.text = "";
this.textShadow_tf.text = "";
this.text.text = val;
this.textShadow.text = val;
this.activeRect._xscale = (this.textShadow.textWidth + this.textShadow._x) + 4;
};
C_ChekBox.prototype.__getValue = function () {
return(this.__value);
};
C_ChekBox.prototype.__setValue = function (val) {
if (this.__value == val) {
return(undefined);
}
if (val == true) {
this.__value = true;
this.box.gotoAndPlay("on");
} else {
this.__value = false;
this.box.gotoAndPlay("off");
}
if (this.__option != "") {
_global.Options[this.__option] = val;
}
};
C_ChekBox.prototype.onOptionsChanged = function () {
if (this.__option != "") {
this.value = _global.Options[this.__option];
}
};
C_ChekBox.prototype.__show = function () {
};
Object.registerClass("ChekBox", C_ChekBox);
#endinitclip
Symbol 133 MovieClip [Locker] Frame 1
function lock() {
gotoAndStop (15);
Stage.addListener(this);
this.onResize();
this._alpha = 40;
this._visible = true;
}
function unlock() {
gotoAndStop (5);
Stage.removeListener(this);
this._visible = false;
}
this.onResize = function () {
this._x = -(_root._x * _root._xscale);
this._y = -(_root._y * _root._yscale);
this._xscale = Stage.width * _root._xscale;
this._yscale = Stage.height * _root._yscale;
};
this.onPress = function () {
DEBUG(this, "stage is locked!");
};
this.useHandCursor = false;
stop();
Symbol 154 Button
on (release) {
trace(_parent.prevChip());
}
Symbol 156 Button
on (release) {
trace(_parent.nextChip());
}
Symbol 164 MovieClip Frame 1
function onResize() {
if (Options.fullScreen) {
return(undefined);
}
var scale = ((100 / _level0._xscale) * 100);
if (scale > 100) {
scale = 100;
}
this._xscale = scale;
this._yscale = scale;
}
Stage.addListener(this);
onResize();
Options.addListener(this);
this.onOptionsChanged = function () {
this.storedText = this.tf.text;
if ((Options.fullScreen == true) and (this._currentframe < 3)) {
this._xscale = 100;
this._yscale = 100;
this.gotoAndStop(3);
return(undefined);
}
if ((Options.fullScreen == false) and (this._currentframe > 2)) {
this.gotoAndStop(2);
}
};
this.onOptionsChanged();
stop();
if (this.autoSize != undefined) {
this.tf.autoSize = this.autoSize;
} else {
this.tf.autoSize = "left";
}
this.tf.embedFonts = false;
Symbol 164 MovieClip Frame 2
if (this.autoSize != undefined) {
this.tf.autoSize = this.autoSize;
} else {
this.tf.autoSize = "left";
}
this.tf.text = this.storedText;
this.tf.embedFonts = false;
Symbol 164 MovieClip Frame 3
if (this.autoSize != undefined) {
this.tf.autoSize = this.autoSize;
} else {
this.tf.autoSize = "left";
}
this.tf.text = this.storedText;
this.tf.embedFonts = true;
Symbol 165 MovieClip Frame 10
screen.tf;
Instance of Symbol 164 MovieClip "screen" in Symbol 165 MovieClip Frame 10
onClipEvent (load) {
this.autoSize = "center";
}
Symbol 166 MovieClip [chipSelector] Frame 1
#initclip 7
define("CS_LOCKED", 1, "chip selector");
define("CS_AVAILABLE", 2, "chip selector");
define("CS_ERR_LOCKED", "locked", "chip selector");
_global.C_ChipSelector = function () {
this.description = "ChipSelector";
this.init();
};
C_ChipSelector.prototype.init = function () {
if (_global.chipSelector == undefined) {
_global.chipSelector = this;
}
this.unlock();
this.__initParams();
this.__setProperties();
this.__initClips();
ASBroadcaster.initialize(this);
this.placeholder.gotoAndStop(this.styleMode);
this.init = undefined;
};
C_ChipSelector.prototype.__initParams = function () {
this.__nominals = [0.5, 1, 5, 25, 100];
this.__nominals.pointer = 0;
var nominal;
var i = 1;
while (i <= this.chipsCount) {
nominal = this["chipNominal" + i];
if (nominal != undefined) {
this.__nominals[i - 1] = nominal;
}
i++;
}
if (this.styleMode == undefined) {
this.styleMode = "chips";
}
};
C_ChipSelector.prototype.__initClips = function () {
this.__chips = [this.placeholder.chip1, this.placeholder.chip2, this.placeholder.chip3, this.placeholder.chip4, this.placeholder.chip5];
this.__actives = [this.placeholder.active1, this.placeholder.active2, this.placeholder.active3, this.placeholder.active4, this.placeholder.active5];
this.chipsCount = this.__chips.length;
this.__initChip(1, this.__nominals[0]);
this.__initChip(2, this.__nominals[1]);
this.__initChip(3, this.__nominals[2]);
this.__initChip(4, this.__nominals[3]);
this.__initChip(5, this.__nominals[4]);
this.select(this.__nominals.pointer + 1);
};
C_ChipSelector.prototype.__setProperties = function () {
this.addProperty("style", this.__getStyle, this.__setStyle);
this.addProperty("chipsCount", this.__getChipsCount, this.__setChipsCount);
this.addProperty("index", this.__getIndex, this.__setIndex);
this.addProperty("nominal", this.__getNominal, this.__setNominal);
this.addProperty("value", this.__getNominal, this.__setNominal);
var count = this.__nominals.length;
var i = 1;
while (i <= count) {
this.__setChipProperty(i);
i++;
}
};
C_ChipSelector.prototype.__setChipProperty = function (chip) {
this["__getChip" + chip] = function () {
return(this.__nominal[chip - 1]);
};
this["__setChip" + chip] = function (val) {
this.__setChipNominal(chip, val);
};
var res = this.addProperty("chip" + chip, this["__getChip" + chip], this["__setChip" + chip]);
DEBUG(this, "add chip %1 property - %2", chip, res);
};
C_ChipSelector.prototype.__getIndex = function () {
return(this.__index);
};
C_ChipSelector.prototype.__setIndex = function (val) {
this.select(val);
};
C_ChipSelector.prototype.__getNominal = function () {
return(this.__nominal);
};
C_ChipSelector.prototype.__setNominal = function (val) {
};
C_ChipSelector.prototype.__getChipsCount = function () {
switch (this.style.toLowerCase()) {
case "switcher" :
return(this.__chipsCount);
case "chips" :
}
return(this.__chips.length);
};
C_ChipSelector.prototype.__setChipsCount = function (val) {
switch (this.style.toLowerCase()) {
case "switcher" :
if (val > this.__chips.length) {
val = this.__chips.length;
}
if (val < 1) {
val = 1;
}
this.__chipsCount = val;
if (val < this.index) {
this.select(val);
}
return;
case "chips" :
this.__chipsCount = this.__chips.length;
}
};
C_ChipSelector.prototype.__getStyle = function () {
return(this.styleMode);
};
C_ChipSelector.prototype.__setStyle = function (val) {
switch (val.toLowerCase()) {
case "chips" :
case "switcher" :
if (this.styleMode == val) {
return(undefined);
}
this.styleMode = val;
this.placeholder.gotoAndStop(val);
this.__initClips();
return;
default :
trace("invalid style for chipSelector - " + val);
debug(this, "invalid style for chipSelector - " + val);
}
};
C_ChipSelector.prototype.__setChipNominal = function (chipIndex, nominal) {
chipIndex = Number(chipIndex);
if ((chipIndex < 1) or (chipIndex > this.chipsCount)) {
return(false);
}
this.__nominals[chipIndex - 1] = Number(nominal);
if (this.styleMode == "chips") {
var chip = this.__chips[chipIndex - 1];
chip.title.autoSize = "center";
chip.title.text = this.__createTitle(nominal);
chip.nominal = nominal;
}
if ((chipIndex - 1) == this.__nominals.pointer) {
this.select(this.__nominals.pointer + 1);
}
return(true);
};
C_ChipSelector.prototype.__createTitle = function (nominal) {
if (nominal < 1) {
return((nominal * 100) + "c");
}
return(nominal);
};
C_ChipSelector.prototype.__initChip = function (chipIndex, nominal) {
var chip = this.__chips[chipIndex - 1];
chip.index = Number(chipIndex) - 1;
chip.control = this;
this.__setChipNominal(chipIndex, nominal);
chip.onRelease = function () {
this.control.__onRelease(this.index);
};
chip.onRollOver = function () {
this.control.__onRollOver(this.index);
};
chip.onRollOut = function () {
this.control.__onRollOut(this.index);
};
chip.onDragOut = function () {
this.control.__onDragOut(this.index);
};
};
C_ChipSelector.prototype.select = function (index) {
if (!((index >= 1) and (index <= this.chipsCount))) {
DEBUG("ERROR", "chipSelector.select() called with incorrect argument: %1", index);
return(undefined);
}
index--;
if (index < 0) {
index = 0;
}
if (index > (this.chipsCount - 1)) {
index = this.chipsCount - 1;
}
if (this.styleMode == "chips") {
var i = 0;
while (i < this.__actives.length) {
this.__actives[i]._visible = false;
i++;
}
this.__actives[index]._visible = true;
}
this.__nominals.pointer = index;
var nominal = this.__nominals[index];
if ((this.nominal != nominal) or (this.index != (index + 1))) {
this.__index = index + 1;
this.__nominal = nominal;
this.broadCastMessage("onNominalChanged", this.nominal);
}
this.placeholder.screen.tf.text = this.__createTitle(this.nominal);
return(true);
};
C_ChipSelector.prototype.selectByValue = function (nominal) {
var ind = 0;
var i = 0;
while (i < this.__nominals.length) {
if (this.__nominals[i] == nominal) {
ind = i;
break;
}
i++;
}
this.select(ind + 1);
};
C_ChipSelector.prototype.lock = function () {
this.__state = CS_LOCKED;
this.placeholder.onPress = function () {
};
this.placeholder.useHandCursor = false;
};
C_ChipSelector.prototype.unlock = function () {
this.__state = CS_AVAILABLE;
delete this.placeholder.onPress;
};
C_ChipSelector.prototype.__onRelease = function (chip) {
this.select(chip + 1);
};
C_ChipSelector.prototype.nextChip = function () {
trace("next");
if (this.__nominals.pointer >= (this.chipsCount - 1)) {
return(false);
}
return(this.select((this.__nominals.pointer + 1) + 1));
};
C_ChipSelector.prototype.prevChip = function () {
if (this.__nominals.pointer <= 0) {
return(false);
}
return(this.select((this.__nominals.pointer - 1) + 1));
};
Object.registerClass("chipSelector", C_ChipSelector);
#endinitclip
Symbol 175 MovieClip [BalanceMashine] Frame 1
#initclip 8
_global.C2_BalanceMashine = function () {
this.init();
this.drawBalance();
};
C2_BalanceMashine.prototype = new MovieClip();
C2_BalanceMashine.prototype.addProperty("balance", function () {
return(this._balance);
}, function (b) {
DEBUG(this, "new balance: " + b);
this._balance = b;
this.ShowBalance(b);
});
C2_BalanceMashine.prototype.ShowBalance = function () {
var balance = GUI.__numberFormat(this._balance);
balance = balance.split(".");
var centes = balance[1].split("");
var dollars = balance[0].split(",").join("").split("").reverse();
this.c_0.value = "";
this.c_1.value = "";
var i = 0;
while (i < 6) {
this["number_" + i].value = "";
i++;
}
var i = 0;
while (i < centes.length) {
this["c_" + i].value = centes[i];
i++;
}
var i = 0;
while (i < dollars.length) {
this["number_" + i].value = dollars[i];
i++;
}
};
Object.registerClass("BalanceMashine", C2_BalanceMashine);
#endinitclip
Symbol 181 MovieClip Frame 1
text.autoSize = (textShadow.autoSize = "left");
stop();
Symbol 181 MovieClip Frame 10
stop();
Symbol 182 MovieClip [informer] Frame 1
#initclip 9
_global.C_Informer = function () {
this.init();
};
C_Informer.prototype.init = function () {
this.addProperty("caption", this.getCaption, this.setCaption);
this.addProperty("value", this.getVal, this.setVal);
this.addProperty("disabled", this.getDisabled, this.setDisabled);
this.caption = this.__caption;
this.value = this.__value;
this.disabled = this.__disabled;
this.init = undefined;
this.__update();
};
C_Informer.prototype.getCaption = function () {
return(this.__caption);
};
C_Informer.prototype.getVal = function () {
return(this.__value);
};
C_Informer.prototype.getDisabled = function () {
return(this.__disabled);
};
C_Informer.prototype.setCaption = function (val) {
this.__caption = val;
this.__disabled = false;
if (((val == "") or (val == undefined)) or (val == null)) {
this.__disabled = true;
}
this.__update();
};
C_Informer.prototype.setDisabled = function (val) {
this.__disabled = val;
this.__update();
};
C_Informer.prototype.setVal = function (val) {
this.__value = val;
this.__disabled = false;
if (((val == "") or (val == undefined)) or (val == null)) {
this.__disabled = true;
}
this.__update();
};
C_Informer.prototype.__update = function () {
if (this.init != undefined) {
return(undefined);
}
if (this.__disabled) {
this.place.gotoAndStop("hide");
return(undefined);
}
this.place.gotoAndStop("show");
if (((this.__caption == undefined) or (this.__caption == null)) or (this.__caption == "")) {
this.place.textShadow.text = (this.place.text.text = "");
} else {
this.place.textShadow.text = (this.place.text.text = _global.LANG["gui_alias_" + this.__caption.split(" ").join("_")]);
}
if (((this.__value == undefined) or (this.__value == null)) or (this.__value == "")) {
this.place.screen.tf.text = "";
} else {
this.place.screen.tf.text = this.__value;
}
};
Object.registerClass("informer", C_Informer);
#endinitclip
Symbol 190 Button
on (release) {
getURL ("http://www.3wgraphics.com/ru/", "_blank");
}
on (rollOver) {
HINT._hint = "tooltip permanent:www.3wgraphics.com";
}
on (rollOut, dragOut) {
HINT._hint = "";
}
Instance of Symbol 182 MovieClip [informer] "screen1" in Symbol 209 MovieClip [C_bmenuCLASS] Frame 1
//component parameters
onClipEvent (initialize) {
__value = "";
__prefix = "";
__postfix = "$";
__disabled = false;
}
Instance of Symbol 182 MovieClip [informer] "screen2" in Symbol 209 MovieClip [C_bmenuCLASS] Frame 1
//component parameters
onClipEvent (initialize) {
__value = "";
__prefix = "";
__postfix = "$";
__disabled = true;
}
Instance of Symbol 182 MovieClip [informer] "screen3" in Symbol 209 MovieClip [C_bmenuCLASS] Frame 1
//component parameters
onClipEvent (initialize) {
__value = "";
__prefix = "";
__postfix = "$";
__disabled = false;
}
Instance of Symbol 175 MovieClip [BalanceMashine] "balance" in Symbol 209 MovieClip [C_bmenuCLASS] Frame 1
//component parameters
onClipEvent (initialize) {
_balance = 5000;
}
Instance of Symbol 166 MovieClip [chipSelector] in Symbol 209 MovieClip [C_bmenuCLASS] Frame 1
//component parameters
onClipEvent (initialize) {
styleMode = "chips";
}
Symbol 215 Button
on (release) {
var link = _root.PartnerLink;
getURL (link, _root.PartnerLinkTarget);
}
on (rollOver) {
HINT._hint = _root.LinkTip;
}
on (rollOut, dragOut) {
HINT._hint = "";
}
Symbol 224 Button
on (release) {
closeOptions();
}
Symbol 225 MovieClip Frame 1
function closeOptions() {
Options.hide();
}
if (_global.options == undefined) {
if (C_Options != undefined) {
_global.options = new C_Options();
Options.addListener(stageWatcher);
} else {
_global.options = new Object();
}
}
var tt = this;
_global.Options.switchOnOff = function () {
if (Options._visible) {
Options.hide();
} else {
Options.show();
}
};
_global.Options.show = function () {
this._visible = true;
tt.gotoAndStop("show");
GUI.lockAll();
};
_global.Options.hide = function () {
this._visible = false;
tt.gotoAndStop("hide");
GUI.unlockAll();
};
stop();
Symbol 225 MovieClip Frame 10
Back.useHandCursor = false;
stop();
Instance of Symbol 131 MovieClip [ChekBox] in Symbol 225 MovieClip Frame 10
//component parameters
onClipEvent (initialize) {
__caption = "Sound effects";
__value = true;
__option = "fxOn";
}
Instance of Symbol 131 MovieClip [ChekBox] in Symbol 225 MovieClip Frame 10
//component parameters
onClipEvent (initialize) {
__caption = "Bubble messages";
__value = true;
__option = "bubbles";
}
Instance of Symbol 123 MovieClip [slider] in Symbol 225 MovieClip Frame 10
//component parameters
onClipEvent (initialize) {
__value = 70;
__option = "fxVolume";
eventName = "";
}
Instance of Symbol 131 MovieClip [ChekBox] in Symbol 225 MovieClip Frame 10
//component parameters
onClipEvent (initialize) {
__caption = "Hints";
__value = true;
__option = "hints";
}
Symbol 226 MovieClip [C_interfaceCLASS] Frame 1
this.swapDepths(123123);
Symbol 235 MovieClip [button small] Frame 1
stop();
Symbol 254 MovieClip [button big] Frame 1
stop();
Symbol 272 MovieClip Frame 1
function onResize() {
var scale = ((100 / _level0._xscale) * 100);
if (scale > 100) {
scale = 100;
}
this._xscale = scale;
this._yscale = scale;
}
Stage.addListener(this);
onResize();
Symbol 276 MovieClip Frame 1
function onResize() {
var scale = ((100 / _level0._xscale) * 100);
if (scale > 100) {
scale = 100;
}
this._xscale = scale;
this._yscale = scale;
}
Stage.addListener(this);
onResize();
Symbol 277 MovieClip Frame 1
this.stop();
this._visible = 0;
this.onEnterFrame = function () {
if (SYS.language != undefined) {
this.gotoAndStop(SYS.language);
this._visible = 1;
delete this.onEnterFrame;
}
};
Instance of Symbol 272 MovieClip "spinning_mc" in Symbol 277 MovieClip Frame 1
/* no clip actions */
Symbol 277 MovieClip Frame 2
this.stop();
Symbol 279 MovieClip [C_big_wheelCLASS] Frame 1
#initclip 10
var C_big_wheelCLASS = function () {
this.onLoad = this.init;
};
C_big_wheelCLASS.prototype = new MovieClip();
C_big_wheelCLASS.prototype.init = function () {
_global.BIG_WHEEL = this;
this.stop();
this.spinning_mc._visible = 0;
this.spinning_bg_mc._visible = 0;
};
C_big_wheelCLASS.prototype.startSpin = function () {
this.ball._visible = 0;
this.spinning_mc._visible = 1;
this.spinning_bg_mc._visible = 1;
};
C_big_wheelCLASS.prototype.setNumber = function (arg) {
this.spinning_mc._visible = 0;
this.spinning_bg_mc._visible = 0;
var fr = ("l_" + arg);
this.ball._visible = 1;
this.gotoAndStop(fr);
};
Object.registerClass("C_big_wheelCLASS", C_big_wheelCLASS);
delete C_big_wheelCLASS;
#endinitclip
Symbol 282 MovieClip Frame 1
this._visible = 0;
Symbol 283 MovieClip [C_ChipsCLASS] Frame 1
#initclip 11
_global.C_ChipsCLASS = function () {
if (this.child_flag) {
return(undefined);
}
this.chipDepth = (++this.__proto__.chipsCounter) + this.__proto__.globalChipDepth;
this.stop();
if (this.bet > 0) {
this.setBet(this.bet);
}
};
C_ChipsCLASS.prototype = new MovieClip();
C_ChipsCLASS.prototype.chipsCounter = 0;
C_ChipsCLASS.prototype.globalChipDepth = 1500;
C_ChipsCLASS.prototype.multyLine = false;
C_ChipsCLASS.prototype.Chwh = 40;
C_ChipsCLASS.prototype.scaleParam = 135;
C_ChipsCLASS.prototype.topSymbol = "chip_OFF";
var range = "0.1:0.5:1:2:5";
var chips = range.split(":");
chips.unshift(chips[0] / 2);
chips.push(500);
chips.push(1000);
C_ChipsCLASS.prototype.ChNominals = chips;
C_ChipsCLASS.prototype.createPlace = function (noEffects) {
if (!this.place) {
this.place = this.duplicateMovieClip(this._name + "_New", this.chipDepth);
this.place.swapDepths(this);
this.place.child_flag = true;
} else {
this.place.gotoAndStop(1);
this.place.Targ.removeMovieClip();
this.place.topMC.removeMovieClip();
this.place.copy(this);
}
if (!noEffects) {
this.place._br = (this.place._brightness = 50);
this.place.onEnterFrame = function () {
this._br = this._br - 10;
this._brightness = this._br;
if (this._br <= 0) {
this.place._brightness = 0;
delete this.place._br;
delete this.onEnterFrame;
}
};
}
this.place._xscale = (this.place._yscale = this.scaleParam);
this.place.Targ_MC.duplicateMovieClip("Targ", 10);
this.place.Targ_MC.duplicateMovieClip("topMC", 20);
this.place.play();
};
C_ChipsCLASS.prototype.createTop = function (libraryId) {
if (libraryId == undefined) {
libraryId = this.topSymbol;
}
if (!this.place) {
this.setBet(this.bet);
}
var o = this.place.topMC;
o.lib.removeMovieClip();
o.createEmptyMovieClip("lib", 1000);
o.lib.creatSqv("tmp", 123, 1, 0, true);
o.lib.align(this.lastChip);
o.lib.tmp.removeMovieClip();
var mc = o.lib.attachMovie(libraryId, "topSymbol", 1000);
o.lib.movieBy(0, -3);
return(mc);
};
C_ChipsCLASS.prototype.clearTop = function () {
this.createTop("");
};
C_ChipsCLASS.prototype.setBet = function (bet, m, noSound) {
if ((noSound == undefined) && (bet == 0)) {
noSound = true;
}
this.createPlace(noSound);
if (m != undefined) {
this.multyLine = m;
}
this.bet = Number(bet);
var multipler = 1000;
var Cash = Number(this.bet);
var ChArray = new Array();
var n = 0;
var chips;
var nominal;
var i = (this.ChNominals.length - 1);
while (i >= 0) {
nominal = Number(this.ChNominals[i]);
if ((cash - nominal) >= -0.0001) {
cash = Math.round(cash * 10000) / 10000;
chips = Math.floor((cash * 100) / (nominal * 100));
DEBUG("CHIPS", "%1 chips by %2 in %3", chips, nominal, cash);
cash = cash - (nominal * chips);
ChArray[n] = new Array();
ChArray[n][0] = chips;
ChArray[n][1] = "chip" + i;
if (nominal < 1) {
nominal = (nominal * 100) + "c";
}
ChArray[n][2] = nominal;
n++;
} else {
DEBUG("CHIPS", "0 chips by %1 in %2 - %3", nominal, cash, cash - nominal);
}
i--;
}
if (!this.multyLine) {
var xPos = 0;
var yPos = 0;
var i = 0;
while (i < ChArray.length) {
var n = 0;
while (n < ChArray[i][0]) {
var newChip = this.place.Targ.attachMovie(ChArray[i][1], (ChArray[i][1] + "_") + (n + 1), d++);
newChip.title.text = ChArray[i][2];
newChip.movieTo(xPos, yPos);
yPos = yPos - 3;
n++;
}
xPos = xPos + 1;
i++;
}
} else {
var d = 12;
var dSh = 0;
var c = 0;
var b = 0;
var i = 0;
while (i < ChArray.length) {
var n = 0;
while (n < ChArray[i][0]) {
var newChip = this.place.Targ.attachMovie(ChArray[i][1], (ChArray[i][1] + "_") + (n + 1), d++);
newChip.title.text = ChArray[i][2];
c = Math.floor(n / this.Chwh);
newChip.movieTo(((i + b) + c) * 17, -((n - (c * this.Chwh)) * 3));
n++;
}
this.place.Targ.attachMovie("chip_shadow", "chip_shadow" + dSh, dSh++);
this.place.Targ["chip_shadow" + (dSh - 1)]._x = newChip._x;
b = b + c;
i++;
}
}
this.lastChip = newChip;
this.place.Targ.alignH();
if ((!this.noSound) && (!noSound)) {
this.place.newSound("chip");
}
if ((!this.multyLine) && (this.bet > 0)) {
this.place.Targ.attachMovie("chip_shadow", "chip_shadow", -1).moveBy(5, -5);
}
return(this.place);
};
C_ChipsCLASS.prototype.getPlace = function () {
return(this.place);
};
_global.makeChips = function (targMC, CashChips, multyLine) {
if (multyLine != null) {
targMC.multyLine = multyLine;
}
return(targMC.setBet(CashChips));
};
Object.registerClass("C_ChipsCLASS", C_ChipsCLASS);
ASSetPropFlags(_global, "C_ChipsCLASS,makeChips", 131);
#endinitclip
Symbol 336 MovieClip [C_BetHighLiteCLASS] Frame 1
#initclip 12
_global.C_BetHighLiteCLASS = function () {
this.init();
};
C_BetHighLiteCLASS.prototype = new MovieClip();
C_BetHighLiteCLASS.prototype.init = function () {
var o = ((this.map = {}));
var i = 0;
while (i < 36) {
o[i] = [i];
i++;
}
o["00"] = ["00"];
o["0-00"] = [0, "00"];
o["33-36"] = [33, 36];
o["32-35"] = [32, 35];
o["31-34"] = [31, 34];
o["30-33"] = [30, 33];
o["29-32"] = [29, 32];
o["28-31"] = [28, 31];
o["27-30"] = [27, 30];
o["26-29"] = [26, 29];
o["25-28"] = [25, 28];
o["24-27"] = [24, 27];
o["23-26"] = [23, 26];
o["22-25"] = [22, 25];
o["21-24"] = [21, 24];
o["20-23"] = [20, 23];
o["19-22"] = [19, 22];
o["18-21"] = [18, 21];
o["17-20"] = [17, 20];
o["16-19"] = [16, 19];
o["15-18"] = [15, 18];
o["14-17"] = [14, 17];
o["13-16"] = [13, 16];
o["12-15"] = [12, 15];
o["11-14"] = [11, 14];
o["10-13"] = [10, 13];
o["9-12"] = [9, 12];
o["8-11"] = [8, 11];
o["7-10"] = [7, 10];
o["6-9"] = [6, 9];
o["5-8"] = [5, 8];
o["4-7"] = [4, 7];
o["3-6"] = [3, 6];
o["2-5"] = [2, 5];
o["1-4"] = [1, 4];
o["35-36"] = [35, 36];
o["34-35"] = [34, 35];
o["32-33"] = [32, 33];
o["31-32"] = [31, 32];
o["29-30"] = [29, 30];
o["28-29"] = [28, 29];
o["26-27"] = [26, 27];
o["25-26"] = [25, 26];
o["23-24"] = [23, 24];
o["22-23"] = [22, 23];
o["20-21"] = [20, 21];
o["19-20"] = [19, 20];
o["17-18"] = [17, 18];
o["16-17"] = [16, 17];
o["14-15"] = [14, 15];
o["13-14"] = [13, 14];
o["11-12"] = [11, 12];
o["10-11"] = [10, 11];
o["8-9"] = [8, 9];
o["7-8"] = [7, 8];
o["5-6"] = [5, 6];
o["4-5"] = [4, 5];
o["2-3"] = [2, 3];
o["1-2"] = [1, 2];
o["0-1"] = [0, 1];
o["0-2"] = [0, 2];
o["0-3"] = [0, 3];
o["00-2"] = ["00", 2];
o["00-3"] = ["00", 3];
o["00-2-3"] = ["00", 2, 3];
o["0-00-2"] = [0, "00", 2];
o["0-1-2"] = [0, 1, 2];
o["0-2-3"] = [0, 2, 3];
o["1-3"] = [1, 2, 3];
o["4-6"] = [4, 5, 6];
o["7-9"] = [7, 8, 9];
o["10-12"] = [10, 11, 12];
o["13-15"] = [13, 14, 15];
o["16-18"] = [16, 17, 18];
o["19-21"] = [19, 20, 21];
o["22-24"] = [22, 23, 24];
o["25-27"] = [25, 26, 27];
o["28-30"] = [28, 29, 30];
o["31-33"] = [31, 32, 33];
o["34-36"] = [34, 35, 36];
o["32-36"] = [32, 33, 36, 35];
o["31-35"] = [31, 32, 35, 34];
o["29-33"] = [29, 30, 33, 32];
o["28-32"] = [28, 29, 32, 31];
o["26-30"] = [26, 27, 30, 29];
o["25-29"] = [25, 26, 29, 28];
o["23-27"] = [23, 24, 27, 26];
o["22-26"] = [22, 23, 26, 25];
o["20-24"] = [20, 21, 24, 23];
o["19-23"] = [19, 20, 23, 22];
o["17-21"] = [17, 18, 21, 20];
o["16-20"] = [16, 17, 20, 19];
o["14-18"] = [14, 15, 18, 17];
o["13-17"] = [13, 14, 17, 16];
o["11-15"] = [11, 12, 15, 14];
o["10-14"] = [10, 11, 14, 13];
o["8-12"] = [8, 9, 12, 11];
o["7-11"] = [7, 8, 11, 10];
o["5-9"] = [5, 6, 9, 8];
o["4-8"] = [4, 5, 8, 7];
o["2-6"] = [2, 3, 6, 5];
o["1-5"] = [1, 2, 5, 4];
o["31-36"] = [31, 32, 33, 34, 35, 36];
o["28-33"] = [28, 29, 30, 31, 32, 33];
o["25-30"] = [25, 26, 27, 28, 29, 30];
o["22-27"] = [22, 23, 24, 25, 26, 27];
o["19-24"] = [19, 20, 21, 22, 23, 24];
o["16-21"] = [16, 17, 18, 19, 20, 21];
o["13-18"] = [13, 14, 15, 16, 17, 18];
o["10-15"] = [10, 11, 12, 13, 14, 15];
o["7-12"] = [7, 8, 9, 10, 11, 12];
o["4-9"] = [4, 5, 6, 7, 8, 9];
o["1-6"] = [1, 2, 3, 4, 5, 6];
o["2 to 1(1)"] = [1, 4, 7, 10, 13, 16, 19, 22, 25, 28, 31, 34];
o["2 to 1(2)"] = [2, 5, 8, 11, 14, 17, 20, 23, 26, 29, 32, 35];
o["2 to 1(3)"] = [3, 6, 9, 12, 15, 18, 21, 24, 27, 30, 33, 36];
o["1 to 18"] = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18];
o["19 to 36"] = [19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36];
o.EVEN = [2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32, 34, 36];
o.ODD = [1, 3, 5, 7, 9, 11, 13, 15, 17, 19, 21, 23, 25, 27, 29, 31, 33, 35];
o.RED = [1, 3, 5, 7, 9, 12, 14, 16, 18, 19, 21, 23, 25, 27, 30, 32, 34, 36];
o.BLACK = [2, 4, 6, 8, 10, 11, 13, 15, 17, 20, 22, 24, 26, 29, 31, 33, 35];
o["1st 12"] = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12];
o["2nd 12"] = [13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24];
o["3rd 12"] = [25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36];
o.FOUR = [0, 1, 2, 3];
o.FIVE = ["00", 0, 1, 2, 3];
this.clear();
};
C_BetHighLiteCLASS.prototype.lock = function (bet_name) {
this.locked = true;
this.clear();
};
C_BetHighLiteCLASS.prototype.unlock = function (bet_name) {
this.locked = false;
};
C_BetHighLiteCLASS.prototype.showBet = function (bet_name) {
if (this.locked) {
return(undefined);
}
this.clear();
bet_name = bet_name.substr(4);
var number_array = this.map[bet_name];
var i = 0;
while (i < number_array.length) {
this[number_array[i] + "_mc"]._visible = true;
i++;
}
};
C_BetHighLiteCLASS.prototype.clear = function (bet_name) {
for (var v in this) {
this[v]._visible = false;
}
};
Object.registerClass("C_BetHighLiteCLASS", C_BetHighLiteCLASS);
delete _global.C_BetHighLiteCLASS;
#endinitclip
Symbol 344 MovieClip Frame 1
_global.floor_mc = this;
Symbol 1036 Button
on (rollOver) {
_parent.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_parent.u();
}
on (release) {
_parent.r(_name);
}
Symbol 1039 Button
on (rollOver) {
_parent.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_parent.u();
}
on (release) {
_parent.r(_name);
}
Symbol 1042 Button
on (rollOver) {
_parent.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_parent.u();
}
on (release) {
_parent.r(_name);
}
Symbol 1044 Button
on (rollOver) {
_parent.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_parent.u();
}
on (release) {
_parent.r(_name);
}
Symbol 1046 Button
on (rollOver) {
_parent.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_parent.u();
}
on (release) {
_parent.r(_name);
}
Symbol 1049 Button
on (rollOver) {
_parent.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_parent.u();
}
on (release) {
_parent.r(_name);
}
Symbol 1051 Button
on (rollOver) {
_parent.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_parent.u();
}
on (release) {
_parent.r(_name);
}
Symbol 1053 Button
on (rollOver) {
_parent.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_parent.u();
}
on (release) {
_parent.r(_name);
}
Symbol 1056 Button
on (rollOver) {
_parent.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_parent.u();
}
on (release) {
_parent.r(_name);
}
Symbol 1058 Button
on (rollOver) {
_parent.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_parent.u();
}
on (release) {
_parent.r(_name);
}
Symbol 1060 Button
on (rollOver) {
_parent.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_parent.u();
}
on (release) {
_parent.r(_name);
}
Symbol 1062 Button
on (rollOver) {
_parent.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_parent.u();
}
on (release) {
_parent.r(_name);
}
Symbol 1064 Button
on (rollOver) {
_parent.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_parent.u();
}
on (release) {
_parent.r(_name);
}
Symbol 1067 Button
on (rollOver) {
_parent.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_parent.u();
}
on (release) {
_parent.r(_name);
}
Symbol 1070 Button
on (rollOver) {
_parent.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_parent.u();
}
on (release) {
_parent.r(_name);
}
Symbol 1072 Button
on (rollOver) {
_parent.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_parent.u();
}
on (release) {
_parent.r(_name);
}
Symbol 1074 Button
on (rollOver) {
_parent.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_parent.u();
}
on (release) {
_parent.r(_name);
}
Symbol 1076 Button
on (rollOver) {
_parent.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_parent.u();
}
on (release) {
_parent.r(_name);
}
Symbol 1078 Button
on (rollOver) {
_parent.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_parent.u();
}
on (release) {
_parent.r(_name);
}
Symbol 1081 Button
on (rollOver) {
_parent.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_parent.u();
}
on (release) {
_parent.r(_name);
}
Symbol 1083 Button
on (rollOver) {
_parent.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_parent.u();
}
on (release) {
_parent.r(_name);
}
Symbol 1086 Button
on (rollOver) {
_parent.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_parent.u();
}
on (release) {
_parent.r(_name);
}
Symbol 1088 Button
on (rollOver) {
_parent.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_parent.u();
}
on (release) {
_parent.r(_name);
}
Symbol 1090 Button
on (rollOver) {
_parent.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_parent.u();
}
on (release) {
_parent.r(_name);
}
Symbol 1093 Button
on (rollOver) {
_parent.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_parent.u();
}
on (release) {
_parent.r(_name);
}
Symbol 1095 Button
on (rollOver) {
_parent.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_parent.u();
}
on (release) {
_parent.r(_name);
}
Symbol 1097 Button
on (rollOver) {
_parent.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_parent.u();
}
on (release) {
_parent.r(_name);
}
Symbol 1100 Button
on (rollOver) {
_parent.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_parent.u();
}
on (release) {
_parent.r(_name);
}
Symbol 1102 Button
on (rollOver) {
_parent.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_parent.u();
}
on (release) {
_parent.r(_name);
}
Symbol 1104 Button
on (rollOver) {
_parent.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_parent.u();
}
on (release) {
_parent.r(_name);
}
Symbol 1107 Button
on (rollOver) {
_parent.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_parent.u();
}
on (release) {
_parent.r(_name);
}
Symbol 1109 Button
on (rollOver) {
_parent.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_parent.u();
}
on (release) {
_parent.r(_name);
}
Symbol 1111 Button
on (rollOver) {
_parent.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_parent.u();
}
on (release) {
_parent.r(_name);
}
Symbol 1113 Button
on (rollOver) {
_parent.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_parent.u();
}
on (release) {
_parent.r(_name);
}
Symbol 1116 Button
on (rollOver) {
_parent.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_parent.u();
}
on (release) {
_parent.r(_name);
}
Symbol 1119 Button
on (rollOver) {
_parent.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_parent.u();
}
on (release) {
_parent.r(_name);
}
Symbol 1121 Button
on (rollOver) {
_parent.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_parent.u();
}
on (release) {
_parent.r(_name);
}
Symbol 1124 Button
on (rollOver) {
_parent.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_parent.u();
}
on (release) {
_parent.r(_name);
}
Symbol 1127 Button
on (rollOver) {
_parent.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_parent.u();
}
on (release) {
_parent.r(_name);
}
Symbol 1130 Button
on (rollOver) {
_parent.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_parent.u();
}
on (release) {
_parent.r(_name);
}
Symbol 1133 Button
on (rollOver) {
_parent.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_parent.u();
}
on (release) {
_parent.r(_name);
}
Symbol 1136 Button
on (rollOver) {
_parent.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_parent.u();
}
on (release) {
_parent.r(_name);
}
Symbol 1139 Button
on (rollOver) {
_parent.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_parent.u();
}
on (release) {
_parent.r(_name);
}
Symbol 1142 Button
on (rollOver) {
_parent.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_parent.u();
}
on (release) {
_parent.r(_name);
}
Symbol 1145 Button
on (rollOver) {
_parent.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_parent.u();
}
on (release) {
_parent.r(_name);
}
Symbol 1148 Button
on (rollOver) {
_parent.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_parent.u();
}
on (release) {
_parent.r(_name);
}
Symbol 1151 Button
on (rollOver) {
_parent.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_parent.u();
}
on (release) {
_parent.r(_name);
}
Symbol 1154 Button
on (rollOver) {
_parent.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_parent.u();
}
on (release) {
_parent.r(_name);
}
Symbol 1157 Button
on (rollOver) {
_parent.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_parent.u();
}
on (release) {
_parent.r(_name);
}
Symbol 1160 Button
on (rollOver) {
_parent.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_parent.u();
}
on (release) {
_parent.r(_name);
}
Symbol 1163 Button
on (rollOver) {
_parent.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_parent.u();
}
on (release) {
_parent.r(_name);
}
Symbol 1165 Button
on (rollOver) {
_parent.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_parent.u();
}
on (release) {
_parent.r(_name);
}
Symbol 1168 Button
on (rollOver) {
_parent.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_parent.u();
}
on (release) {
_parent.r(_name);
}
Symbol 1170 Button
on (rollOver) {
_parent.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_parent.u();
}
on (release) {
_parent.r(_name);
}
Symbol 1173 Button
on (rollOver) {
_parent.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_parent.u();
}
on (release) {
_parent.r(_name);
}
Symbol 1176 Button
on (rollOver) {
_parent.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_parent.u();
}
on (release) {
_parent.r(_name);
}
Symbol 1179 Button
on (rollOver) {
_parent.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_parent.u();
}
on (release) {
_parent.r(_name);
}
Symbol 1181 Button
on (rollOver) {
_parent.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_parent.u();
}
on (release) {
_parent.r(_name);
}
Symbol 1183 Button
on (rollOver) {
_parent.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_parent.u();
}
on (release) {
_parent.r(_name);
}
Symbol 1186 Button
on (rollOver) {
_parent.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_parent.u();
}
on (release) {
_parent.r(_name);
}
Symbol 1189 Button
on (rollOver) {
_parent.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_parent.u();
}
on (release) {
_parent.r(_name);
}
Symbol 1192 Button
on (rollOver) {
_parent.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_parent.u();
}
on (release) {
_parent.r(_name);
}
Symbol 1195 Button
on (rollOver) {
_parent.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_parent.u();
}
on (release) {
_parent.r(_name);
}
Symbol 1198 Button
on (rollOver) {
_parent.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_parent.u();
}
on (release) {
_parent.r(_name);
}
Symbol 1200 Button
on (rollOver) {
_parent.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_parent.u();
}
on (release) {
_parent.r(_name);
}
Symbol 1203 Button
on (rollOver) {
_parent.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_parent.u();
}
on (release) {
_parent.r(_name);
}
Symbol 1206 Button
on (rollOver) {
_parent.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_parent.u();
}
on (release) {
_parent.r(_name);
}
Symbol 1209 Button
on (rollOver) {
_parent.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_parent.u();
}
on (release) {
_parent.r(_name);
}
Symbol 1212 Button
on (rollOver) {
_parent.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_parent.u();
}
on (release) {
_parent.r(_name);
}
Symbol 1215 Button
on (rollOver) {
_parent.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_parent.u();
}
on (release) {
_parent.r(_name);
}
Symbol 1218 Button
on (rollOver) {
_parent.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_parent.u();
}
on (release) {
_parent.r(_name);
}
Symbol 1221 Button
on (rollOver) {
_parent.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_parent.u();
}
on (release) {
_parent.r(_name);
}
Symbol 1224 Button
on (rollOver) {
_parent.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_parent.u();
}
on (release) {
_parent.r(_name);
}
Symbol 1227 Button
on (rollOver) {
_parent.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_parent.u();
}
on (release) {
_parent.r(_name);
}
Symbol 1230 Button
on (rollOver) {
_parent.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_parent.u();
}
on (release) {
_parent.r(_name);
}
Symbol 1233 Button
on (rollOver) {
_parent.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_parent.u();
}
on (release) {
_parent.r(_name);
}
Symbol 1236 Button
on (rollOver) {
_parent.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_parent.u();
}
on (release) {
_parent.r(_name);
}
Symbol 1239 Button
on (rollOver) {
_parent.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_parent.u();
}
on (release) {
_parent.r(_name);
}
Symbol 1242 Button
on (rollOver) {
_parent.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_parent.u();
}
on (release) {
_parent.r(_name);
}
Symbol 1245 Button
on (rollOver) {
_parent.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_parent.u();
}
on (release) {
_parent.r(_name);
}
Symbol 1248 Button
on (rollOver) {
_parent.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_parent.u();
}
on (release) {
_parent.r(_name);
}
Symbol 1251 Button
on (rollOver) {
_parent.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_parent.u();
}
on (release) {
_parent.r(_name);
}
Symbol 1254 Button
on (rollOver) {
_parent.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_parent.u();
}
on (release) {
_parent.r(_name);
}
Symbol 1257 Button
on (rollOver) {
_parent.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_parent.u();
}
on (release) {
_parent.r(_name);
}
Symbol 1260 Button
on (rollOver) {
_parent.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_parent.u();
}
on (release) {
_parent.r(_name);
}
Symbol 1263 Button
on (rollOver) {
_parent.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_parent.u();
}
on (release) {
_parent.r(_name);
}
Symbol 1266 Button
on (rollOver) {
_parent.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_parent.u();
}
on (release) {
_parent.r(_name);
}
Symbol 1269 Button
on (rollOver) {
_parent.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_parent.u();
}
on (release) {
_parent.r(_name);
}
Symbol 1272 Button
on (rollOver) {
_parent.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_parent.u();
}
on (release) {
_parent.r(_name);
}
Symbol 1275 Button
on (rollOver) {
_parent.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_parent.u();
}
on (release) {
_parent.r(_name);
}
Symbol 1278 Button
on (rollOver) {
_parent.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_parent.u();
}
on (release) {
_parent.r(_name);
}
Symbol 1281 Button
on (rollOver) {
_parent.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_parent.u();
}
on (release) {
_parent.r(_name);
}
Symbol 1284 Button
on (rollOver) {
_parent.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_parent.u();
}
on (release) {
_parent.r(_name);
}
Symbol 1287 Button
on (rollOver) {
_parent.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_parent.u();
}
on (release) {
_parent.r(_name);
}
Symbol 1290 Button
on (rollOver) {
_parent.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_parent.u();
}
on (release) {
_parent.r(_name);
}
Symbol 1293 Button
on (rollOver) {
_parent.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_parent.u();
}
on (release) {
_parent.r(_name);
}
Symbol 1296 Button
on (rollOver) {
_parent.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_parent.u();
}
on (release) {
_parent.r(_name);
}
Symbol 1299 Button
on (rollOver) {
_parent.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_parent.u();
}
on (release) {
_parent.r(_name);
}
Symbol 1302 Button
on (rollOver) {
_parent.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_parent.u();
}
on (release) {
_parent.r(_name);
}
Symbol 1305 Button
on (rollOver) {
_parent.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_parent.u();
}
on (release) {
_parent.r(_name);
}
Symbol 1308 Button
on (rollOver) {
_parent.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_parent.u();
}
on (release) {
_parent.r(_name);
}
Symbol 1311 Button
on (rollOver) {
_parent.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_parent.u();
}
on (release) {
_parent.r(_name);
}
Symbol 1314 Button
on (rollOver) {
_parent.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_parent.u();
}
on (release) {
_parent.r(_name);
}
Symbol 1317 Button
on (rollOver) {
_parent.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_parent.u();
}
on (release) {
_parent.r(_name);
}
Symbol 1320 Button
on (rollOver) {
_parent.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_parent.u();
}
on (release) {
_parent.r(_name);
}
Symbol 1323 Button
on (rollOver) {
_parent.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_parent.u();
}
on (release) {
_parent.r(_name);
}
Symbol 1326 Button
on (rollOver) {
_parent.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_parent.u();
}
on (release) {
_parent.r(_name);
}
Symbol 1329 Button
on (rollOver) {
_parent.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_parent.u();
}
on (release) {
_parent.r(_name);
}
Symbol 1332 Button
on (rollOver) {
_parent.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_parent.u();
}
on (release) {
_parent.r(_name);
}
Symbol 1335 Button
on (rollOver) {
_parent.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_parent.u();
}
on (release) {
_parent.r(_name);
}
Symbol 1338 Button
on (rollOver) {
_parent.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_parent.u();
}
on (release) {
_parent.r(_name);
}
Symbol 1341 Button
on (rollOver) {
_parent.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_parent.u();
}
on (release) {
_parent.r(_name);
}
Symbol 1344 Button
on (rollOver) {
_parent.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_parent.u();
}
on (release) {
_parent.r(_name);
}
Symbol 1347 Button
on (rollOver) {
_parent.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_parent.u();
}
on (release) {
_parent.r(_name);
}
Symbol 1350 Button
on (rollOver) {
_parent.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_parent.u();
}
on (release) {
_parent.r(_name);
}
Symbol 1353 Button
on (rollOver) {
_parent.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_parent.u();
}
on (release) {
_parent.r(_name);
}
Symbol 1356 Button
on (rollOver) {
_parent.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_parent.u();
}
on (release) {
_parent.r(_name);
}
Symbol 1359 Button
on (rollOver) {
_parent.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_parent.u();
}
on (release) {
_parent.r(_name);
}
Symbol 1361 Button
on (rollOver) {
_parent.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_parent.u();
}
on (release) {
_parent.r(_name);
}
Symbol 1364 Button
on (rollOver) {
_parent.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_parent.u();
}
on (release) {
_parent.r(_name);
}
Symbol 1367 Button
on (rollOver) {
_parent.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_parent.u();
}
on (release) {
_parent.r(_name);
}
Symbol 1370 Button
on (rollOver) {
_parent.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_parent.u();
}
on (release) {
_parent.r(_name);
}
Symbol 1373 Button
on (rollOver) {
_parent.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_parent.u();
}
on (release) {
_parent.r(_name);
}
Symbol 1376 Button
on (rollOver) {
_parent.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_parent.u();
}
on (release) {
_parent.r(_name);
}
Symbol 1379 Button
on (rollOver) {
_parent.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_parent.u();
}
on (release) {
_parent.r(_name);
}
Symbol 1382 Button
on (rollOver) {
_parent.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_parent.u();
}
on (release) {
_parent.r(_name);
}
Symbol 1385 Button
on (rollOver) {
_parent.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_parent.u();
}
on (release) {
_parent.r(_name);
}
Symbol 1388 Button
on (rollOver) {
_parent.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_parent.u();
}
on (release) {
_parent.r(_name);
}
Symbol 1391 Button
on (rollOver) {
_parent.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_parent.u();
}
on (release) {
_parent.r(_name);
}
Symbol 1393 Button
on (rollOver) {
_parent.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_parent.u();
}
on (release) {
_parent.r(_name);
}
Symbol 1395 Button
on (rollOver) {
_parent.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_parent.u();
}
on (release) {
_parent.r(_name);
}
Symbol 1397 Button
on (rollOver) {
_parent.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_parent.u();
}
on (release) {
_parent.r(_name);
}
Symbol 1399 Button
on (rollOver) {
_parent.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_parent.u();
}
on (release) {
_parent.r(_name);
}
Symbol 1401 Button
on (rollOver) {
_parent.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_parent.u();
}
on (release) {
_parent.r(_name);
}
Symbol 1403 Button
on (rollOver) {
_parent.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_parent.u();
}
on (release) {
_parent.r(_name);
}
Symbol 1406 Button
on (rollOver) {
_parent.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_parent.u();
}
on (release) {
_parent.r(_name);
}
Symbol 1408 Button
on (rollOver) {
_parent.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_parent.u();
}
on (release) {
_parent.r(_name);
}
Symbol 1410 Button
on (rollOver) {
_parent.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_parent.u();
}
on (release) {
_parent.r(_name);
}
Symbol 1412 Button
on (rollOver) {
_parent.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_parent.u();
}
on (release) {
_parent.r(_name);
}
Symbol 1415 Button
on (rollOver) {
_parent.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_parent.u();
}
on (release) {
_parent.r(_name);
}
Symbol 1418 Button
on (rollOver) {
_parent.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_parent.u();
}
on (release) {
_parent.r(_name);
}
Symbol 1420 Button
on (rollOver) {
_parent.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_parent.u();
}
on (release) {
_parent.r(_name);
}
Symbol 1423 Button
on (rollOver) {
_parent.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_parent.u();
}
on (release) {
_parent.r(_name);
}
Symbol 1425 Button
on (rollOver) {
_parent.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_parent.u();
}
on (release) {
_parent.r(_name);
}
Symbol 1428 Button
on (rollOver) {
_parent.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_parent.u();
}
on (release) {
_parent.r(_name);
}
Symbol 1431 Button
on (rollOver) {
_parent.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_parent.u();
}
on (release) {
_parent.r(_name);
}
Symbol 1434 Button
on (rollOver) {
_parent.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_parent.u();
}
on (release) {
_parent.r(_name);
}
Symbol 1437 Button
on (rollOver) {
_parent.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_parent.u();
}
on (release) {
_parent.r(_name);
}
Symbol 1440 Button
on (rollOver) {
_parent.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_parent.u();
}
on (release) {
_parent.r(_name);
}
Symbol 1443 Button
on (rollOver) {
_parent.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_parent.u();
}
on (release) {
_parent.r(_name);
}
Symbol 1446 Button
on (rollOver) {
_parent.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_parent.u();
}
on (release) {
_parent.r(_name);
}
Symbol 1449 Button
on (rollOver) {
_parent.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_parent.u();
}
on (release) {
_parent.r(_name);
}
Symbol 1452 Button
on (rollOver) {
_parent.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_parent.u();
}
on (release) {
_parent.r(_name);
}
Symbol 1455 Button
on (rollOver) {
_parent.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_parent.u();
}
on (release) {
_parent.r(_name);
}
Symbol 1458 MovieClip Frame 1
_visible = 0;
Instance of Symbol 1458 MovieClip in Symbol 1459 MovieClip Frame 1
onClipEvent (load) {
_visible = 0;
}
Symbol 1476 MovieClip Frame 1
_global._min_max_Menu_mc = this;
Symbol 1478 MovieClip Frame 1
_global[this.globalname] = this;
this._name = this.globalname;
this._visible = 0;
Symbol 1480 MovieClip Frame 1
this._visible = 0;
Symbol 1481 MovieClip Frame 1
this._xscale = (this._yscale = 100);
Symbol 1485 MovieClip Frame 1
this._visible = 0;
_global._hack = this;
this.getResult = function () {
if (this._visible == 0) {
return(-1);
}
return(this.tf.text);
};
var a = [72, 65, 67, 75];
this.nn = 0;
this.onKeyUp = function () {
var sett = Key.getCode();
var gett = a[this.nn];
if (sett == gett) {
this.nn++;
} else {
this.nn = 0;
}
if (this.nn == a.length) {
this._visible = 1;
_quality = "LOW";
}
if (sett == 32) {
this._visible = 0;
}
};
Key.addListener(this);
Symbol 1491 MovieClip Frame 1
define("GB_AVAILABLE", 1, "game buttons");
define("GB_LOCKED", 2, "game buttons");
define("GB_ERR_ALREADY_EXISTS", -1, "game buttons error code");
define("GB_ERR_NOT_EXISTS", -2, "game buttons error code");
define("GB_ERR_UNKNOWN", -3, "game buttons error code");
define("GB_PERMANENT", 100, "game buttons");
define("GB_ACTIVE_ONLY", 101, "game buttons");
_global.C_GameButtons = function (namespace) {
this.init(namespace);
};
C_GameButtons.prototype.init = function (namespace) {
this.description = "GameButtons";
this.mode = GB_PERMANENT;
this.namespace = namespace;
this.__container = [];
this.__groups = {};
this.__state = {};
this.X = 100;
this.Y = 322;
this.space = 2;
this.XCenter = 325;
ASBroadcaster.initialize(this);
};
C_GameButtons.prototype.invisible = function () {
this.namespace._visible = false;
this.namespace.__hidded = true;
};
C_GameButtons.prototype.visible = function () {
this.namespace._visible = true;
this.namespace.__hidded = false;
};
C_GameButtons.prototype.addButton = function (caption, tip, x, y, extra) {
caption = caption.toUpperCase();
if (typeof(x) == "movieclip") {
var pos = {x:x._x, y:x._y};
x._parent.localToGlobal(pos);
this.namespace.globalToLocal(pos);
x = pos.x;
y = pos.y;
}
if (x != undefined) {
this.X = x;
}
if (y != undefined) {
this.Y = y;
}
if (this.__getByCaption(caption) != GB_ERR_NOT_EXISTS) {
return(GB_ERR_ALREADY_EXISTS);
}
var info = this.info[caption];
DEBUG(this, "try create button %1, info object %2", caption, info);
if (info == undefined) {
info = this.info.__DEFAULT;
}
this.namespace.depth++;
var name = ("button_" + this.namespace.depth);
this.namespace.attachMovie("button " + info.type, name, this.namespace.depth);
var but = this.namespace[name];
but.isButton = true;
but._x = (but.x = this.x);
but._y = (but.y = this.y);
but.extra = extra;
but.type = info.type;
this.__setCaption(but, caption);
this.x = this.x + (but._width + this.space);
this.__container.push(but);
this.__prepare(but);
this.lock(caption);
};
C_GameButtons.prototype.lock = function (captions) {
if (((captions == undefined) or (caption.toLowerCase() == "all")) or (captions == "")) {
for (var v in this.__state) {
this.lock(v);
}
return(undefined);
}
var captions = captions.split(",");
var caption;
var i = 0;
while (i < captions.length) {
caption = this.__removeWhites(captions[i]);
this.__lock(caption);
i++;
}
this.alignButtons();
};
C_GameButtons.prototype.unlock = function (captions) {
if (((captions == undefined) or (caption.toLowerCase() == "all")) or (captions == "")) {
for (var v in this.__state) {
this.unlock(v);
}
return(undefined);
}
var captions = captions.split(",");
var caption;
var i = 0;
while (i < captions.length) {
caption = this.__removeWhites(captions[i]);
this.__unlock(caption);
i++;
}
this.alignButtons();
};
C_GameButtons.prototype.hide = function (captions) {
if (((captions == undefined) or (captions.toLowerCase() == "all")) or (captions == "")) {
for (var v in this.__state) {
this.hide(v);
}
return(undefined);
}
var captions = captions.split(",");
var caption;
var i = 0;
while (i < captions.length) {
caption = this.__removeWhites(captions[i]);
this.__hide(caption);
i++;
}
};
C_GameButtons.prototype.show = function (captions) {
if (((captions == undefined) or (captions.toLowerCase() == "all")) or (captions == "")) {
for (var v in this.__state) {
this.show(v);
}
return(undefined);
}
var captions = captions.split(",");
var caption;
var i = 0;
while (i < captions.length) {
caption = this.__removeWhites(captions[i]);
this.__show(caption);
i++;
}
};
C_GameButtons.prototype.change = function (caption, newCaption) {
if (this.__getByCaption(caption) == undefined) {
return(GB_ERR_NOT_EXISTS);
}
var but = this.__getByCaption(caption);
this.__setCaption(but, newCaption);
if (this.__getState(newCaption) == GB_AVAILABLE) {
this.__unlock(newCaption);
} else {
this.__lock(newCaption);
}
};
C_GameButtons.prototype.__setCaption = function (but, caption) {
caption = caption.toUpperCase();
but.ID = caption;
but.txt.multiline = (but.txtShd.multiline = true);
var newCap = LANG["button_" + caption.split(" ").join("_")];
if (newCap.indexOf("undefined") > 0) {
newCap = "X \r" + caption;
}
DEBUG("BUT TEXT", "newCap.indexOf(chr(13)) = %1", newCap.indexOf("\r"));
if (newCap.indexOf("\r") >= 0) {
switch (but.type) {
case "small" :
but.txt._y = -5;
but.txtShd._y = -4;
break;
default :
but.txt._y = -14;
but.txtShd._y = -13;
}
} else {
switch (but.type) {
case "small" :
but.txt._y = 0;
but.txtShd._y = 1;
break;
default :
but.txt._y = -9;
but.txtShd._y = -8;
}
}
but.txt.text = (but.txtShd.text = newCap);
var words = newCap.split(" ");
var tf = but.txt.getTextFormat(0, 0);
var tsf = but.txtShd.getTextFormat(0, 0);
tsf.size = (tf.size = 11);
var pos = 1;
var i = 0;
while (i < words.length) {
if (words[i].substr(0, 1) == "\r") {
pos++;
}
but.txt.setTextFormat(pos, (pos + words[i].length) - 1, tf);
but.txtShd.setTextFormat(pos, (pos + words[i].length) - 1, tsf);
pos = pos + (words[i].length + 1);
if (words[i].substr(0, 1) == "\r") {
pos--;
}
i++;
}
};
C_GameButtons.prototype.__getByCaption = function (Caption) {
var i = 0;
while (i < this.__container.length) {
if (this.__container[i].ID == Caption.toUpperCase()) {
return(this.__container[i]);
}
i++;
}
return(GB_ERR_NOT_EXISTS);
};
C_GameButtons.prototype.__lock = function (caption) {
if (this.__getByCaption(caption) == undefined) {
return(GB_ERR_NOT_EXISTS);
}
var but = this.__getByCaption(caption);
but.draw.but.onRollOut();
this.__disable(but);
switch (this.mode) {
case GB_PERMANENT :
default :
if (!but.__hided) {
but._visible = true;
}
but._brightness = -30;
// unexpected jump
case GB_ACTIVE_ONLY :
}
but._visible = false;
EVENT.send(but, "gameButton_lock");
this.__state[caption] = GB_LOCKED;
};
C_GameButtons.prototype.__unlock = function (caption) {
if (this.__getByCaption(caption) == undefined) {
return(GB_ERR_NOT_EXISTS);
}
var but = this.__getByCaption(caption);
this.__prepare(but);
but._brightness = 0;
switch (this.mode) {
case GB_PERMANENT :
if (!but.__hided) {
but._visible = true;
}
break;
case GB_ACTIVE_ONLY :
but._visible = true;
}
EVENT.send(but, "gameButton_unlock");
this.__state[caption] = GB_AVAILABLE;
};
C_GameButtons.prototype.__hide = function (caption) {
if (this.__getByCaption(caption) == undefined) {
return(GB_ERR_NOT_EXISTS);
}
var but = this.__getByCaption(caption);
but.draw.but.onRollOut();
but._visible = false;
but.__hided = true;
};
C_GameButtons.prototype.__show = function (caption) {
if (this.__getByCaption(caption) == undefined) {
return(GB_ERR_NOT_EXISTS);
}
var but = this.__getByCaption(caption);
but._visible = true;
but.__hided = false;
};
C_GameButtons.prototype.__getState = function (caption) {
if (this.__getByCaption(caption) == undefined) {
return(GB_ERR_NOT_EXISTS);
}
return(this.__state[caption]);
};
C_GameButtons.prototype.__removeWhites = function (text) {
while (text.charAt(0) == " ") {
text = text.substr(1);
}
while (text.charAt(text.length - 1) == " ") {
text = text.substr(0, -1);
}
return(text);
};
C_GameButtons.prototype.__prepare = function (but) {
but = but.draw.but;
but._alpha = 0;
var tt = this;
but.onRollOver = function () {
if (tt.__getState(this._parent._parent.ID) != GB_AVAILABLE) {
return(undefined);
}
this._alpha = 100;
};
but.onReleaseOutside = (but.onRollOut = function () {
this._alpha = 0;
});
but.onRelease = function () {
if (tt.__getState(this._parent._parent.ID) != GB_AVAILABLE) {
return(undefined);
}
tt.__onGameButton(this._parent._parent.ID);
};
};
C_GameButtons.prototype.__disable = function (but) {
but = but.draw.but;
but._alpha = 0;
delete but.onRollOver;
delete but.onReleaseOutside;
delete but.onRollOut;
delete but.onRelease;
};
C_GameButtons.prototype.__onGameButton = function (Caption) {
this.broadcastMessage("onGameButton", Caption);
};
C_GameButtons.prototype.alignButtons = function () {
switch (this.mode) {
case GB_PERMANENT :
return;
case GB_ACTIVE_ONLY :
this.alignActives();
}
};
C_GameButtons.prototype.alignActives = function () {
var actives = [];
var but;
for (var v in this.namespace) {
but = this.namespace[v];
if (but.isButton and but._visible) {
actives.push(but);
}
}
var sortFunc = function (a, b) {
if (a.x > b.x) {
return(1);
}
if (a.x < b.x) {
return(-1);
}
if (a.x == b.x) {
return(0);
}
};
actives.sort(sortFunc);
var totalWidth = (this.space * (actives.length - 1));
var i = 0;
while (i < actives.length) {
totalWidth = totalWidth + actives[i]._width;
i++;
}
var x = (this.XCenter - (totalWidth / 2));
var i = 0;
while (i < actives.length) {
actives[i]._x = x;
x = x + (actives[i]._width + this.space);
i++;
}
};
C_GameButtons.prototype.info = {};
var info = C_GameButtons.prototype.info;
info.CLEAR = {type:"small", tip:""};
info["CLEAR BET"] = {type:"small", tip:""};
info["CLEAR BETS"] = {type:"small", tip:""};
info.REBET = {type:"small", tip:""};
info.AUTO = {type:"small", tip:""};
info.VOICE = {type:"small", tip:""};
info["BET ONE"] = {type:"small", tip:""};
info.DEAL = {type:"big", tip:""};
info.HIT = {type:"big", tip:""};
info.STAND = {type:"big", tip:""};
info.DOUBLE = {type:"big", tip:""};
info.SPLIT = {type:"big", tip:""};
info.ROLL = {type:"big", tip:""};
info.PLAY = {type:"big", tip:""};
info["PLAY ONE"] = {type:"big", tip:""};
info["PLAY FIVE"] = {type:"big", tip:""};
info["PLAY TEN"] = {type:"big", tip:""};
info["NEW GAME"] = {type:"big", tip:""};
info.SPIN = {type:"big", tip:""};
info.CHANGE = {type:"big", tip:""};
info.PASS = {type:"big", tip:""};
info.SURRENDER = {type:"big", tip:""};
info.WAR = {type:"big", tip:""};
info["BET MAX"] = {type:"big", tip:""};
info.__DEFAULT = {type:"big", tip:""};
info["LET THEM RIDE"] = {type:"multiline", tip:""};
info["AUTO SELECT 10 NUMBERS"] = {type:"long", tip:""};
this.BUTTONS = new C_GameButtons(this);
_global.BUTTONS = this.BUTTONS;
this.onEnterFrame = function () {
if (this.__hidded) {
return(undefined);
}
this._visible = _level0._visible;
};
this.gotoAndStop(2);
this._x = 0;
this._y = 0;
Symbol 1493 MovieClip Frame 1
if (CHIPS == undefined) {
_global.CHIPS = {};
}
CHIPS.nameSpace = this;
CHIPS.prepare = function () {
CHIPS.inited = true;
_global.CHIP_SCALE_K = 1.2;
_global.CHIP_HEIGHT = 3 * CHIP_SCALE_K;
var ADDITIONAL_CHIPS = true;
var gameConfig = SYS.gameConfig;
var range = gameConfig.getByName("chips").attributes.range;
this.chips = range.split(":");
if (ADDITIONAL_CHIPS) {
this.chips.unshift(this.chips[0] / 2);
this.chips.push(500);
this.chips.push(1000);
}
delete this.prepare;
};
CHIPS.make = function (bet, pos_mc) {
if (this.prepare) {
this.prepare();
}
var ns = this.nameSpace;
ns.depth++;
var name = ("chips_container_" + ns.depth);
var container = this.nameSpace.createEmptyMovieClip(name, ns.depth);
container.chips = [];
var chips = this.chips;
var chip;
var count;
var i = (chips.length - 1);
while (i >= 0) {
chip = chips[i];
count = bet / chip;
count = Math.floor(count + 1E-5);
bet = bet - (chip * count);
if (count == 0) {
} else {
if (chip < 1) {
chip = (chip * 100) + "c";
}
container.chips.push({value:chip, count:count, type:i});
}
i--;
}
var task;
var name;
var chip;
container._visible = false;
var i = 0;
while (i < container.chips.length) {
task = container.chips[i];
var type = ("chip" + task.type);
var a = 0;
while (a < task.count) {
container.depth++;
name = "chip" + container.depth;
chip = container.attachMovie(type, name, container.depth);
chip._y = (container.depth - 1) * (-CHIP_HEIGHT);
chip._xscale = (chip._yscale = chip._yscale * CHIP_SCALE_K);
if (a == (task.count - 1)) {
chip.title.text = task.value;
}
a++;
}
i++;
}
if (pos_mc != undefined) {
container.align(pos_mc);
}
container.remove = container.removeMovieClip;
container._visible = true;
return(container);
};
this.gotoAndStop(2);
this._x = 0;
this._y = 0;
Symbol 1495 MovieClip Frame 1
this.swapDepths(1231231);
_global.__hintsNameSpace = this;
if (CLASS == undefined) {
_global.CLASS = {};
}
CLASS.hint = function () {
this.type = "tooltip";
this.wait = 50;
this.fade = 0;
var depth = (__hintsNameSpace.depth++);
var name = ("hint_" + depth);
__hintsNameSpace.createEmptyMovieClip(name, depth);
this.nameSpace = __hintsNameSpace[name];
this.addProperty("text", this.getHint, this.setHint);
this.addProperty("_hint", this.getHint, this.setHint);
};
var hint = CLASS.hint.prototype;
hint.destroy = function () {
this.nameSpace.removeMovieClip();
};
hint.getHint = function () {
return(this.__hint);
};
hint.setHint = function (val) {
val = this.recognizeType(val);
this.__hint = val;
if (val == "") {
this.hide();
} else {
this.show();
}
};
hint.show = function (text) {
var absType = this.type.split(" ")[0];
switch (absType) {
case "dealer" :
if (options.bubbles == false) {
return(undefined);
}
break;
case "tooltip" :
if (options.hints != false) {
break;
}
return(undefined);
}
if (text != undefined) {
this.setHint(text);
return(undefined);
}
var linkage = (this.type.split(" ")[0] + "Hint");
this.nameSpace.attachMovie(linkage, "tip", 1);
var tip = this.nameSpace.tip;
switch (this.type) {
case "dealer" :
this.initDealer();
break;
case "dealer permanent" :
this.type = "dealer";
this.initDealer();
tip.permanent = true;
break;
case "tooltip" :
this.initToolTip();
break;
case "tooltip permanent" :
this.initToolTip();
tip.permanent = true;
}
tip.caption = this.__hint;
};
hint.hide = function () {
this.__hint = "";
this.namespace.tip.permanent = false;
this.namespace.tip.left = Math.min(this.namespace.tip.fade, this.namespace.tip.left);
};
hint.recognizeType = function (text) {
var parts = text.split(":");
var newtype = "tooltip";
if (parts[0].toLowerCase() == "dealer") {
newtype = "dealer";
parts.shift();
}
if (parts[0].toLowerCase() == "dealer permanent") {
newtype = "dealer permanent";
parts.shift();
}
if (parts[0].toLowerCase() == "dealer_always") {
newtype = "dealer permanent";
parts.shift();
}
if (parts[0].toLowerCase() == "tooltip") {
newtype = "tooltip";
parts.shift();
}
if (parts[0].toLowerCase() == "tooltip permanent") {
newtype = "tooltip permanent";
parts.shift();
}
this.type = newtype;
return(parts.join(":"));
};
hint.initDealer = function () {
var tip = this.nameSpace.tip;
tip.controller = this;
tip.left = this.wait;
tip.fade = this.fade;
if (DEALER_VOICE_VIEW != undefined) {
DEBUG("HINTS", "Dealer align!");
var pos = {x:0, y:0};
DEALER_VOICE_VIEW.localToGlobal(pos);
tip._parent.globalToLocal(pos);
tip._x = pos.x;
tip._y = pos.y;
} else {
DEBUG("HINTS", "Dealer not align!");
}
tip.onEnterFrame = function () {
if (this.permanent) {
return(undefined);
}
this.left--;
var mult = (100 / this.fade);
this._alpha = Math.min(this.left * mult, 100);
if (this.left <= 0) {
this.removeMovieClip();
}
};
};
hint.initTooltip = function () {
var tip = this.nameSpace.tip;
tip.controller = this;
tip.left = this.wait;
tip.fade = this.fade;
tip.onEnterFrame = function () {
if (this.permanent) {
return(undefined);
}
this.left--;
var mult = (100 / this.fade);
this._alpha = Math.min(this.left * mult, 100);
if (this.left <= 0) {
this.removeMovieClip();
}
};
tip.tf.autoSize = true;
tip.tf.border = false;
tip.tf.multiline = true;
tip.tf.selectable = false;
tip.originalH = tip.tf._height;
tip.originalY = tip.tf._y;
tip.onMouseMove = function () {
this.setCap(this.tf.text);
};
tip.getCap = function () {
return(this.__caption);
};
tip.setCap = function (val) {
this.__caption = val;
var x = Math.round(this._parent._xmouse);
var y = Math.round(this._parent._ymouse);
var pos = {x:x, y:y};
this._parent.localToGlobal(pos);
pos.x = Math.round(pos.x);
pos.y = Math.round(pos.y);
this._parent.globalToLocal(pos);
this._x = pos.x;
this._y = pos.y;
var tf = this.tf;
tf.text = val;
var w = tf._width;
var h = tf._height;
var pos = {x:w + 20, y:h};
this.localToGlobal(pos);
if (pos.x > Stage.width) {
this.gotoAndStop(2);
this.tf.autoSize = "right";
this.tf.text = "";
this.tf.text = this.__caption;
if (this.mode == "inverse") {
return(undefined);
}
this.mode = "inverse";
} else {
this.gotoAndStop(1);
this.tf.autoSize = "left";
this.tf.text = this.__caption;
if (this.mode == "normal") {
return(undefined);
}
this.mode = "normal";
}
this.tf._y = this.originalY - (h - this.originalH);
var draw = this.draw;
draw.clear();
draw.beginFill(16777164, 100);
draw.lineStyle(0);
draw.moveTo(0, 0);
draw.lineTo(12, -12);
draw.lineTo((12 + w) + 4, -12);
draw.lineTo((12 + w) + 4, (-12 - h) - 4);
draw.lineTo(8, (-12 - h) - 4);
draw.lineTo(8, -19);
draw.endFill();
var shad = this.shadow;
shad.clear();
shad.beginFill(0, 30);
shad.moveTo(-4, -3);
shad.lineTo(12 + d, -12 + d);
shad.lineTo(((12 + w) + 4) + d, -12 + d);
shad.lineTo(((12 + w) + 4) + d, ((-12 - h) - 4) + d);
shad.lineTo(8 + d, ((-12 - h) - 4) + d);
shad.lineTo(8 + d, -39 + d);
shad.endFill();
};
tip.addProperty("caption", tip.getCap, tip.setCap);
};
_global.HINT = new CLASS.hint();
this.gotoAndStop(2);
this._x = 0;
this._y = 0;