Frame 1
if (include_Library_Complete != true) {
var include_Library_Complete = true;
var hello = "created EUGENE POTAPENKO john@3wgraphics.net 1999-2003";
delete hello;
Object.prototype.toXML = function (name, num) {
if (name == null) {
name = typeof(this);
}
if (num == null) {
num = 1;
_root.array_for_delete_numbers = [];
}
var proto = this.__proto__;
this.__proto__ = undefined;
var attr = (((" id=\"" + num) + ".0") + "\"");
this.number_for_trace_objects = num;
_root.array_for_delete_numbers.push(this);
if (name == "movieclip") {
attr = attr + ((" name=\"" + this._name) + "\"");
}
var XML_result = new XML((((("<" + name) + attr) + "><tmp /></") + name) + ">");
var type;
var element;
var marks;
for (var v in this) {
if (((v == "__proto__") || (v == "number_for_trace_objects")) || (v == "array_for_delete_numbers")) {
continue;
}
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);
}
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);
};
Object.prototype.toString = function () {
return(this.toXML("Object").toString2());
};
Function.prototype.toString = function () {
return("function");
};
XMLNode.prototype.toString1 = XMLNode.prototype.toString;
XMLNode.prototype.toString = function (tabD) {
if (this.tabDesign || (tabD)) {
return(this.toString2());
}
return(this.toString1());
};
XMLNode.prototype.toString2 = function (tab) {
var traced_value = "";
if (this.nodeType != 3) {
if (this.nodeName != null) {
traced_value = "<" + this.nodeName;
for (var v in this.attributes) {
traced_value = traced_value + ((((" " + v) + "=\"") + this.attributes[v]) + "\"");
}
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) + ">");
}
} else {
traced_value = this.firstChild.toString2("");
}
} else {
traced_value = this.nodeValue;
}
if (this.nextSibling != null) {
traced_value = traced_value + (("\r" + tab) + this.nextSibling.toString2(tab));
}
return(traced_value);
};
ASSetPropFlags(Object.prototype, "toXML,trace", 131);
ASSetPropFlags(XMLNode.prototype, "toString1,toString2,tabDesign", 131);
var o = Object.prototype;
o.set = function (param, value) {
this[param] = value;
};
o.clone = function () {
var o = (new this.constructor());
o.__proto__ = this.__proto__;
return(o.copy(this));
};
o.copy = function (o) {
var proto = o.__proto__;
o.__proto__ = undefined;
for (var v in o) {
this[v] = o[v];
}
o.__proto__ = proto;
return(this);
};
o.clear = function () {
var proto = this.__proto__;
this.__proto__ = undefined;
for (var v in this) {
delete this[v];
}
this.__proto__ = proto;
this.constructor.apply(this, arguments);
};
o.applyClass = function (c) {
if (typeof(c) != "function") {
return(false);
}
this.__proto__ = c.prototype;
c.apply(this, arguments.slice(1));
return(true);
};
o.paramHide = function (paramsArray) {
ASSetPropFlags(this, paramsArray || null, 1);
};
o.paramShow = function (paramsArray) {
ASSetPropFlags(this, paramsArray || null, 2);
};
o.paramLock = function (paramsArray) {
ASSetPropFlags(this, paramsArray || null, 7);
};
Object.combine = function (obj, oldFoo, newFoo) {
var oldFoo_bk = obj[oldFoo];
var foo_combine = function () {
newFoo.apply(this, arguments);
return(oldFoo_bk.apply(this, arguments));
};
obj[oldFoo] = foo_combine;
};
o.paramHide();
Object.paramHide();
var o = Array.prototype;
o.nSort = function () {
this.sort(function (a, b) {
if (Number(a) < Number(b)) {
return(-1);
}
if (Number(a) > Number(b)) {
return(1);
}
return(0);
});
return(this);
};
o.sortOnNum = function (param) {
this.sort(function (a, b) {
a = a[param];
b = b[param];
if (!isNaN(a)) {
a = Number(a);
}
if (!isNaN(b)) {
b = Number(b);
}
return((((a < b) * -1) || ((a > b) * 1)) || 0);
});
};
o.trim = function (searched_array, rec) {
var l = this.length;
if (searched_array == undefined) {
searched_array = ["", null];
}
var i = 0;
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);
};
o.match = function (searched) {
var test = 0;
if (searched instanceof Array) {
var i = 0;
while (i < this.length) {
if (searched.indexOf(this[i]) != -1) {
test++;
}
i++;
}
} else {
var i = 0;
while (i < this.length) {
if (searched == this[i]) {
test++;
}
i++;
}
}
return(test);
};
o.indexOf = function (searched) {
var i = 0;
while (i < this.length) {
if (searched == this[i]) {
return(i);
}
i++;
}
return(-1);
};
o.random = function () {
var random_i = this.length;
while (random_i > 0) {
this.push(this.splice(Math.floor(Math.random() * random_i), 1)[0]);
random_i--;
}
return(this);
};
o.paramHide();
var o = MovieClip.prototype;
o.movieTo = function () {
this._x = arguments[0];
this._y = arguments[1];
};
o.movieBy = function () {
this._x = this._x + arguments[0];
this._y = this._y + arguments[1];
};
o.size = function () {
if ((arguments[0] != null) && (arguments[0] != 0)) {
this._width = arguments[0];
}
if ((arguments[0] != null) && (arguments[0] != 0)) {
this._height = arguments[1];
}
};
o.scale = function () {
this._xscale = (this._yscale = arguments[0]);
};
o.scaleTo = function (xscale, yscale) {
if ((arguments[0] != null) && (arguments[0] != 0)) {
this._xscale = arguments[0];
}
if ((arguments[1] != null) && (arguments[1] != 0)) {
this._yscale = arguments[1];
}
};
o.scaleBy = function () {
this._xscale = this._xscale * arguments[0];
this._yscale = this._yscale * arguments[0];
};
o.rotateBy = function () {
this._rotation = this._rotation + arguments[0];
};
o.hide = function () {
this._visible = 0;
};
o.show = function () {
this._visible = 1;
};
o.visInvert = function () {
this._visible = !this._visible;
};
o.flipV = function () {
this._xscale = this._xscale * -1;
};
o.flipH = function () {
this._yscale = this._yscale * -1;
};
o.playOffset = function () {
this.gotoAndPlay(this._currentframe + arguments[0]);
};
o.childs = function () {
var result_childs = new Array();
for (var v in this) {
if ((typeof(this[v]) == "movieclip") && (this[v]._parent == this)) {
result_childs.push(this[v]);
}
}
return(result_childs);
};
o.allChilds = function () {
if (_root.allChilds_root_movieclip == null) {
_root.allChilds_root_movieclip = this;
}
this.allChilds_tested = true;
var result_allChilds = new Array();
for (var v in this) {
if (typeof(this[v]) == "movieclip") {
if (this[v].allChilds_tested || (this[v]._parent != this)) {
continue;
}
result_allChilds.push(this[v]);
result_allChilds = result_allChilds.concat(this[v].allChilds());
}
}
if (_root.allChilds_root_movieclip == this) {
var allChilds_i = 0;
while (allChilds_i < result_allChilds.length) {
delete result_allChilds[allChilds_i].allChilds_tested;
allChilds_i++;
}
delete _root.allChilds_root_movieclip;
delete allChilds_tested;
}
return(result_allChilds);
};
o.copy = function (fromClip, paramArray) {
if (paramArray == null) {
paramArray = new Array("_width", "_height", "_x", "_y", "_alpha");
}
var rotation_fromClip = fromClip._rotation;
fromClip._rotation = 0;
var rotation_thisClip = this._rotation;
this._rotation = 0;
var copy_a = 0;
while (copy_a < paramArray.length) {
this[paramArray[copy_a]] = fromClip[paramArray[copy_a]];
copy_a++;
}
fromClip._rotation = rotation_fromClip;
this._rotation = rotation_fromClip;
};
o.copyColor = function (fromClip) {
new Color(this).setTransform(new Color(fromClip).getTransform());
};
o.top = function () {
if (this._parent != _root) {
return(this._parent.top());
}
return(this);
};
o.AnimToPlace = function (StartA, FinishA, Steps, CurrStep, XY) {
this[XY] = Math.inOut(StartA, FinishA, Steps, CurrStep);
};
o.newSound = function (id, volume, loop) {
this.mySound = new Sound();
this.mySound.attachSound(id);
this.mySound.setVolume(volume || 100);
this.mySound.start(0, loop || 1);
};
o.stopSound = function (id, volume, loop) {
this.mySound.stop();
};
o.localToLocal = function (fromMc) {
fromMc.localToGlobal(arguments[1]);
this.globalToLocal(arguments[1]);
};
o.align = function (fromClip) {
var b = this.getBounds(fromClip || (this._parent));
if (arguments[1] != "v") {
this._x = this._x - ((b.xMin + b.xMax) / 2);
}
if (arguments[1] != "h") {
this._y = this._y - ((b.yMin + b.yMax) / 2);
}
};
o.alignH = function (fromClip) {
this.align(fromClip || (this._parent), "h");
};
o.alignV = function (fromClip) {
this.align(fromClip || (this._parent), "v");
};
o.setParam = function () {
this[arguments[0]] = arguments[1];
};
o.addProperty("_brightness", function () {
}, function (br) {
var b;
var c;
if (br <= 0) {
b = 100 + br;
c = 0;
} else {
b = 100 - br;
c = Math.round((br / 100) * 255);
}
new Color(this).setTransform({ra:b, rb:c, ga:b, gb:c, ba:b, bb:c, aa:100, ab:0});
});
o.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();
};
o.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++;
}
}
};
o.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);
};
o.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);
};
o.setPixel = function () {
var o = this.localToGlobal({x:this._x, y:this._y});
this._x = this._x - (o.x % 1);
this._y = this._y - (o.y % 1);
};
o.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;
});
o.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;
});
o.paramHide();
var o = String.prototype;
o.scrollBy = function (scrOffset) {
var newScroll = (this.scroll + scrOffset);
if (newScroll > this.maxscroll) {
newScroll = this.maxscroll;
} else if (newScroll < 1) {
newScroll = 1;
}
this.scroll = newScroll;
};
o.dZero = function () {
return(Number(this).dZero());
};
o.paramHide();
var o = XMLNode.prototype;
XML.prototype.ignoreWhite = true;
o.attr = o.firstChild.attributes;
o.byName = 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.searchValue = function (value) {
var a = this.attributes;
for (var v in a) {
if (a[v] == value) {
return(this);
}
}
return(this.nextSibling.searchValue(value) || (this.firstChild.searchValue(value)));
};
o.clear = function () {
this.nextSibling.clear();
this.firstChild.clear();
if ((this.nodeType == 3) && (this.parentNode.firstChild != this.parentNode.lastChild)) {
this.removeNode();
}
};
o.paramHide();
var o = Math;
o.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);
};
o.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)));
};
o.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)));
};
o.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);
};
o.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));
};
o.paramHide();
Stage.onCenterScale = function (w, h) {
var o = {};
o.onResize = function () {
var s = Stage;
var rootScale;
var tmp;
if (s.width <= 0) {
return(undefined);
}
s._xscale = (s.width / w) * 100;
s._yscale = (s.height / h) * 100;
tmp = (rootScale = Math.min(s._xscale, s._yscale));
rootScale = rootScale * (Stage._rootH / Stage.height);
if (rootScale > tmp) {
rootScale = tmp;
}
_root._yscale = (_root._xscale = rootScale);
_root._x = (w - (w * (rootScale / 100))) / 2;
_root._y = (h - (h * (rootScale / 100))) / 2;
C_AltCLASS.prototype.scale = (100 / rootScale) * 100;
};
o.onKeyDown = function () {
if ((getTimer() - this.downTimer) > 300) {
var c = Key.getCode();
if ((c == 187) || (c == 107)) {
Stage.zoomIn();
} else if ((c == 189) || (c == 109)) {
Stage.zoomOut();
}
this.downTimer = getTimer();
}
};
o.onKeyUp = function () {
this.downTimer = 0;
};
this.zoomIn = function () {
this._rootH = Math.round(this._rootH * 1.1);
if (this._rootH > this.height) {
this._rootH = this.height;
}
this.saveRootParams();
Stage.broadcastMessage("onResize");
};
this.zoomOut = function () {
if (this._rootH > this.height) {
this._rootH = this.height;
}
this._rootH = Math.round(this._rootH / 1.1);
if (this._rootH < 100) {
this._rootH = 100;
}
Stage.saveRootParams();
Stage.broadcastMessage("onResize");
};
this.saveRootParams = function () {
this.so.data._rootH = this._rootH;
this.so.flush();
};
this.so = SharedObject.getLocal("stage");
if (this.so.data._rootH) {
this._rootH = this.so.data._rootH;
} else {
this._rootH = this.height * 10;
}
Stage.centerScaleMode = true;
Stage._xscale = 100;
Stage._yscale = 100;
Stage.scaleMode = "noScale";
Stage.addListener(o);
Key.addListener(o);
Stage.broadcastMessage("onResize");
};
Stage._xscale = 100;
Stage._yscale = 100;
Stage.paramHide();
var o = Number.prototype;
o.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);
};
o.paramHide();
var o = Button.prototype;
o.addProperty("_brightness", function () {
}, function (br) {
var b;
var c;
if (br <= 0) {
b = 100 + br;
c = 0;
} else {
b = 100 - br;
c = Math.round((br / 100) * 255);
}
new Color(this).setTransform({ra:b, rb:c, ga:b, gb:c, ba:b, bb:c, aa:100, ab:0});
});
o.paramHide();
var o = {time:0};
o.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(o);
Mouse.isDoubleClick = false;
delete o;
Mouse.paramHide();
_global.isXML = function (x) {
return((x instanceof XML) || (x instanceof XMLNode));
};
_global.c__ = {};
c__[1] = function () {
Conv.include.apply(Conv, arguments);
};
c__[2] = function () {
Conv.put.apply(Conv, arguments);
};
c__[3] = function () {
Conv.anim.apply(Conv, arguments);
};
_global.startDebug = function () {
Object.prototype.__resolve = function (notFoundMethodName) {
trace((("Not Found Method Or Prop Name: " + this) + ": ") + notFoundMethodName);
};
};
ASSetPropFlags(_global, "isXML,c__,startDebug", 131);
_global.C_ConveyorCLASS = function (notFrames) {
this.init(notFrames);
};
C_ConveyorCLASS.prototype.init = function (notFrames) {
this.aConveyor = new Array();
this.conveyorON = true;
this.bookmark = 0;
this.shorts = 0;
this.turbo = false;
this.noSound = false;
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 () {
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.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;
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 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 < 5) {
nSteps = 5;
}
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);
i++;
}
this.put(mc_anim, "swapDepths", 0, _root.anim_depth);
};
C_ConveyorCLASS.prototype.turbo_On = function () {
this.turbo = true;
};
C_ConveyorCLASS.prototype.turbo_Off = function () {
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 () {
};
_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);
_global.C_AltCLASS = function (text, owner) {
this.owner = owner;
this.init();
this.drawAlt(text);
};
C_AltCLASS.prototype = new Object();
C_AltCLASS.prototype.counter = 0;
C_AltCLASS.prototype.depth = 23499;
C_AltCLASS.prototype.fill = 16777164 /* 0xFFFFCC */;
C_AltCLASS.prototype.lineColor = 0;
C_AltCLASS.prototype.align = "BL";
C_AltCLASS.prototype.scale = 100;
var o = ((C_AltCLASS.prototype.textFormat = new TextFormat()));
o.font = "_sans";
o.size = 10;
o.textColor = 0;
o.bold = true;
o.indent = 0;
delete o;
C_AltCLASS.prototype.init = function () {
Stage.addListener(this);
Mouse.addListener(this);
var o = ((this.closeListener = {}));
o.owner = this;
o.onMouseDown = (o.onKeyDown = (o.onKeyUp = function () {
var o = this.owner.owner;
if (o) {
o.hideAlt();
} else {
this.owner.close();
}
}));
Key.addListener(o);
Mouse.addListener(o);
};
C_AltCLASS.prototype.drawAlt = function (text) {
if (this.__proto__.curent) {
this.__proto__.curent.owner.hideAlt();
}
this.__proto__.curent = this;
var o = ((this.holder = _root.createEmptyMovieClip(("alt_" + c) + "_mc", this.depth)));
this.holder._xscale = (this.holder._yscale = this.scale);
o.owner = this;
o.onEnterFrame = function () {
delete this.onEnterFrame;
this.owner.drawBorder();
};
o._visible = false;
o._x = _root._xmouse;
o._y = _root._ymouse;
o.createTextField("alt_txt", 123, 0, 0, 10, 10);
var t = o.alt_txt;
t.border = false;
t.multiline = true;
t.autoSize = true;
t.selectable = false;
t.text = text;
t.setTextFormat(this.textFormat);
};
C_AltCLASS.prototype.drawBorder = function () {
var o = this.holder;
o._visible = true;
var t = o.alt_txt;
var w = t._width;
var h = t._height;
var x = o._xmouse;
var y = o._ymouse;
var b = ((this.border_mc = o.createEmptyMovieClip("border", 2)));
b.beginFill(this.fill, 100);
b.lineStyle(0);
b.lineTo(12, -12);
b.lineTo((12 + w) + 4, -12);
b.lineTo((12 + w) + 4, (-12 - h) - 4);
b.lineTo(8, (-12 - h) - 4);
b.lineTo(8, -19);
b.endFill();
var a = b.createEmptyMovieClip("aligner", 1);
b = (this.shadow_mc = o.createEmptyMovieClip("shadow", 1));
b.beginFill(0, 30);
var d = 7;
b.lineTo(12 + d, -12 + d);
b.lineTo(((12 + w) + 4) + d, -12 + d);
b.lineTo(((12 + w) + 4) + d, ((-12 - h) - 4) + d);
b.lineTo(8 + d, ((-12 - h) - 4) + d);
b.lineTo(8 + d, -19 + d);
b.endFill();
a.beginFill(this.fill);
a.moveTo(12, -15);
a.lineTo(12 + w, -15);
a.lineTo(12 + w, -12 - h);
a.lineTo(12, -12 - h);
a.endFill();
this.altAlign();
this.onMouseMove();
};
C_AltCLASS.prototype.altAlign = function () {
var o = this.holder;
if (this.align == undefined) {
this.align = "BL";
}
if (this.align == "BL") {
o.border._xscale = (o.shadow._xscale = 100);
o.border._yscale = (o.shadow._yscale = 100);
o.shadow._x = (o.shadow._y = 0);
} else if (this.align == "BR") {
o.border._xscale = (o.shadow._xscale = -100);
o.border._yscale = (o.shadow._yscale = 100);
o.shadow._x = 0;
o.shadow._y = 0;
} else if (this.align == "TL") {
o.border._xscale = (o.shadow._xscale = 100);
o.border._yscale = (o.shadow._yscale = -100);
o.shadow._x = 0;
o.shadow._y = 10;
} else if (this.align == "TR") {
o.border._xscale = (o.shadow._xscale = -100);
o.border._yscale = (o.shadow._yscale = -100);
o.shadow._x = 0;
o.shadow._y = 10;
}
var p = o.border.aligner.getBounds(o);
o.alt_txt._x = p.xMin;
o.alt_txt._y = p.yMin - 2;
};
C_AltCLASS.prototype.onMouseMove = function () {
if (!this.owner.__alt) {
this.close();
return(undefined);
}
if (!this.point) {
this.holder._x = _root._xmouse;
this.holder._y = _root._ymouse;
} else {
this.holder._x = this.point._x;
this.holder._y = this.point._y;
}
this.holder._xscale = (this.holder._yscale = this.scale);
var x = this.holder._x;
var y = this.holder._y;
var w = this.holder._width;
var h = this.holder._height;
var a = this.align;
var v = "B";
var g = "L";
if (Stage.centerScaleMode) {
if ((y - h) < 0) {
v = "T";
}
if (((x + w) > (Stage.width / (Stage._xscale / 100))) && (w < Stage.width)) {
g = "R";
}
} else {
if ((Stage.height > 0) && (h > y)) {
v = "T";
}
if (((Stage.width > 0) && ((Stage.width - w) < x)) && (w < Stage.width)) {
g = "R";
}
}
this.align = v + g;
if (this.align != a) {
this.altAlign();
}
};
C_AltCLASS.prototype.onResize = function () {
this.onMouseMove();
};
C_AltCLASS.prototype.close = function () {
this.holder.removeMovieClip();
Stage.removeListener(this);
Mouse.removeListener(this);
Key.removeListener(this.closeListener);
Mouse.removeListener(this.closeListener);
};
ASSetPropFlags(_global, "C_AltCLASS", 131);
Button.prototype.showAlt = (MovieClip.prototype.showAlt = function (text) {
if (this.__alt) {
this.hideAlt();
}
this.__alt = new C_AltCLASS(text, this);
});
MovieClip.prototype.showAltInPoint = function (text, point) {
if (this.__alt) {
this.hideAlt();
}
var o = ((this.__alt = new C_AltCLASS(text, this)));
o.point = point;
};
Button.prototype.hideAlt = (MovieClip.prototype.hideAlt = function () {
this.__alt.close();
delete this.__alt;
});
Button.prototype.addAlt = (MovieClip.prototype.addAlt = function (t) {
var o = this;
var fIn = function () {
this.showAlt(t);
};
var fOut = function () {
this.hideAlt();
};
if (arguments.length > 1) {
fIn = arguments[0];
fOut = arguments[1];
}
o.onRollOver = fIn;
o.onDragOut = (o.onRollOut = (o.onPress = (o.onRelease = (o.onReleaseOutside = fOut))));
o.useHandCursor = false;
});
Mouse.showAlt = function (text) {
var b = _root.creatSqv("tmp_sqv_alt", 8919, 10, 0, true);
b._alpha = 0;
b._x = _root._xmouse;
b._y = _root._ymouse;
b.showAlt(text);
b.onRollOut = (b.onPress = (b.onRelease = (b.onReleaseOutside = (b.onDragOut = function () {
this.hideAlt();
this.removeMovieClip();
}))));
};
ASSetPropFlags(MovieClip.prototype, "showAlt,hideAlt,addAlt", 131);
ASSetPropFlags(Button.prototype, "showAlt,hideAlt,addAlt", 131);
ASSetPropFlags(Button, "showAlt", 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);
if (AsBroadcaster == undefined) {
_global.ASBroadcaster = {};
ASBroadcaster.initialize = function (obj) {
obj.addListener = this.addListener;
obj.removeListener = this.removeListener;
obj.broadcastMessage = this.broadcastMessage;
obj._listeners = [];
ASSetPropFlags(obj, ["addListener", "removeListener", "broadcastMessage", "_listeners"], 7);
};
ASBroadcaster.addListener = function (obj) {
this.removeListener(obj);
this._listeners.push(obj);
return(true);
};
ASBroadcaster.removeListener = function (obj) {
var a = this._listeners;
var i = this._listeners.length;
while (--i) {
if (a[i] == obj) {
a.splice(i, 1);
return(true);
}
}
return(false);
};
ASBroadcaster.broadcastMessage = function (theEvent) {
var a = this._listeners;
var i = this._listeners.length;
while (--i) {
a[i][theEvent]();
}
};
ASSetPropFlags(ASBroadcaster, null, 7);
ASSetPropFlags(_global, "ASBroadcaster", 131);
}
Button.prototype.tabEnabled = false;
MovieClip.prototype.tabEnabled = false;
ASSetPropFlags(Button.prototype, "tabEnabled", 7);
ASSetPropFlags(MovieClip.prototype, "tabEnabled", 7);
delete o;
}
_global.C_GameCLASS = function () {
this.curBet = 5;
this.userBalance = 999;
this.bet = 0;
this.maxBetOnTable = 500;
this.lay_prize_Index = 0.95;
this.notEmptyBet = false;
this.notEmptyPassline = false;
this.places = {};
this.prizeComission = 0.95;
this.places["buy Bet 10"] = {bet:0, prize_index:2 * this.prizeComission, p_index_d:"2 to 1", maximum:1000, off_Label:true};
this.places["Place Win 10"] = {bet:0, prize_index:1.8, p_index_d:"9 to 5", maximum:1000, off_Label:true};
this.places["buy Bet 4"] = {bet:0, prize_index:2 * this.prizeComission, p_index_d:"2 to 1", maximum:1000, off_Label:true};
this.places["Place Win 4"] = {bet:0, prize_index:1.8, p_index_d:"9 to 5", maximum:1000, off_Label:true};
this.places["buy Bet 9"] = {bet:0, prize_index:1.5 * this.prizeComission, p_index_d:"3 to 2", maximum:1000, off_Label:true};
this.places["Place Win 9"] = {bet:0, prize_index:1.4, p_index_d:"7 to 5", maximum:1000, off_Label:true};
this.places["buy Bet 5"] = {bet:0, prize_index:1.5 * this.prizeComission, p_index_d:"3 to 2", maximum:1000, off_Label:true};
this.places["Place Win 5"] = {bet:0, prize_index:1.4, p_index_d:"7 to 5", maximum:1000, off_Label:true};
this.places["buy Bet 8"] = {bet:0, prize_index:1.2 * this.prizeComission, p_index_d:"6 to 5", maximum:1000, off_Label:true};
this.places["Place Win 8"] = {bet:0, prize_index:1.16666666666667, p_index_d:"7 to 6", maximum:1000, off_Label:true};
this.places["buy Bet 6"] = {bet:0, prize_index:1.2 * this.prizeComission, p_index_d:"6 to 5", maximum:1000, off_Label:true};
this.places["Place Win 6"] = {bet:0, prize_index:1.16666666666667, p_index_d:"7 to 6", maximum:1000, off_Label:true};
this.places["Lay Bet 10"] = {bet:0, prize_index:0.5 * this.prizeComission, p_index_d:"1 to 2 -5%", maximum:1000};
this.places["Place Lose 10"] = {bet:0, prize_index:0.454545454545455, p_index_d:"5 to 11", maximum:1000};
this.places["Lay Bet 4"] = {bet:0, prize_index:0.5 * this.prizeComission, p_index_d:"1 to 2 -5%", maximum:1000};
this.places["Place Lose 4"] = {bet:0, prize_index:0.454545454545455, p_index_d:"5 to 11", maximum:1000};
this.places["Lay Bet 9"] = {bet:0, prize_index:0.666666666666667 * this.prizeComission, p_index_d:"2 to 3 -5%", maximum:1000};
this.places["Place Lose 9"] = {bet:0, prize_index:0.625, p_index_d:"5 to 8", maximum:1000};
this.places["Lay Bet 5"] = {bet:0, prize_index:0.666666666666667 * this.prizeComission, p_index_d:"2 to 3 -5%", maximum:1000};
this.places["Place Lose 5"] = {bet:0, prize_index:0.625, p_index_d:"5 to 8", maximum:1000};
this.places["Lay Bet 8"] = {bet:0, prize_index:0.833333333333333 * this.prizeComission, p_index_d:"5 to 6 -5%", maximum:1000};
this.places["Place Lose 8"] = {bet:0, prize_index:0.8, p_index_d:"4 to 5", maximum:1000};
this.places["Lay Bet 6"] = {bet:0, prize_index:0.833333333333333 * this.prizeComission, p_index_d:"5 to 6 -5%", maximum:1000};
this.places["Place Lose 6"] = {bet:0, prize_index:0.8, p_index_d:"4 to 5", maximum:1000};
this.places["Don't Come Point 10"] = {bet:0, prize_index:1, p_index_d:"1 to 1", maximum:1000, off_Label:true, dont_clear:true, button:"Don't Come Point Odds 10"};
this.places["Don't Come Point 9"] = {bet:0, prize_index:1, p_index_d:"1 to 1", maximum:1000, off_Label:true, dont_clear:true, button:"Don't Come Point Odds 9"};
this.places["Don't Come Point 8"] = {bet:0, prize_index:1, p_index_d:"1 to 1", maximum:1000, off_Label:true, dont_clear:true, button:"Don't Come Point Odds 8"};
this.places["Don't Come Point 4"] = {bet:0, prize_index:1, p_index_d:"1 to 1", maximum:1000, off_Label:true, dont_clear:true, button:"Don't Come Point Odds 4"};
this.places["Don't Come Point 5"] = {bet:0, prize_index:1, p_index_d:"1 to 1", maximum:1000, off_Label:true, dont_clear:true, button:"Don't Come Point Odds 5"};
this.places["Don't Come Point 6"] = {bet:0, prize_index:1, p_index_d:"1 to 1", maximum:1000, off_Label:true, dont_clear:true, button:"Don't Come Point Odds 6"};
this.places["Come Point 10"] = {bet:0, prize_index:1, p_index_d:"1 to 1", maximum:1000, off_Label:true, dont_clear:true, button:"Come Point Odds 10"};
this.places["Come Point 9"] = {bet:0, prize_index:1, p_index_d:"1 to 1", maximum:1000, off_Label:true, dont_clear:true, button:"Come Point Odds 9"};
this.places["Come Point 8"] = {bet:0, prize_index:1, p_index_d:"1 to 1", maximum:1000, off_Label:true, dont_clear:true, button:"Come Point Odds 8"};
this.places["Come Point 4"] = {bet:0, prize_index:1, p_index_d:"1 to 1", maximum:1000, off_Label:true, dont_clear:true, button:"Come Point Odds 4"};
this.places["Come Point 5"] = {bet:0, prize_index:1, p_index_d:"1 to 1", maximum:1000, off_Label:true, dont_clear:true, button:"Come Point Odds 5"};
this.places["Come Point 6"] = {bet:0, prize_index:1, p_index_d:"1 to 1", maximum:1000, off_Label:true, dont_clear:true, button:"Come Point Odds 6"};
this.places["Don't Come Point Odds 10"] = {bet:0, prize_index:0.5, p_index_d:"1 to 2", maximum:1000, off_Label:true};
this.places["Don't Come Point Odds 9"] = {bet:0, prize_index:0.666666666666667, p_index_d:"2 to 3", maximum:1000, off_Label:true};
this.places["Don't Come Point Odds 8"] = {bet:0, prize_index:0.833333333333333, p_index_d:"5 to 6", maximum:1000, off_Label:true};
this.places["Don't Come Point Odds 4"] = {bet:0, prize_index:0.5, p_index_d:"1 to 2", maximum:1000, off_Label:true};
this.places["Don't Come Point Odds 5"] = {bet:0, prize_index:0.666666666666667, p_index_d:"2 to 3", maximum:1000, off_Label:true};
this.places["Don't Come Point Odds 6"] = {bet:0, prize_index:0.833333333333333, p_index_d:"5 to 6", maximum:1000, off_Label:true};
this.places["Come Point Odds 10"] = {bet:0, prize_index:2, p_index_d:"2 to 1", maximum:1000, off_Label:true};
this.places["Come Point Odds 9"] = {bet:0, prize_index:1.5, p_index_d:"3 to 2", maximum:1000, off_Label:true};
this.places["Come Point Odds 8"] = {bet:0, prize_index:1.2, p_index_d:"6 to 5", maximum:1000, off_Label:true};
this.places["Come Point Odds 4"] = {bet:0, prize_index:2, p_index_d:"2 to 1", maximum:1000, off_Label:true};
this.places["Come Point Odds 5"] = {bet:0, prize_index:1.5, p_index_d:"3 to 2", maximum:1000, off_Label:true};
this.places["Come Point Odds 6"] = {bet:0, prize_index:1.2, p_index_d:"6 to 5", maximum:1000, off_Label:true};
this.places["Don't Pass"] = {bet:0, prize_index:1, p_index_d:"1 to 1", maximum:1000};
this.places.Passline = {bet:0, prize_index:1, p_index_d:"1 to 1", maximum:1000};
this.places.Come = {bet:0, prize_index:1, p_index_d:"1 to 1", maximum:1000};
this.places["Don't Come"] = {bet:0, prize_index:1, p_index_d:"1 to 1", maximum:1000};
this.places["Big 8"] = {bet:0, prize_index:1, p_index_d:"1 to 1", maximum:1000};
this.places["Big 6"] = {bet:0, prize_index:1, p_index_d:"1 to 1", maximum:1000};
this.places["Any Craps"] = {bet:0, prize_index:7, p_index_d:"7 to 1", maximum:65};
this.places["Horn 11"] = {bet:0, prize_index:15, p_index_d:"15 to 1", maximum:35};
this.places["Horn 3"] = {bet:0, prize_index:15, p_index_d:"15 to 1", maximum:35};
this.places["Horn 12"] = {bet:0, prize_index:30, p_index_d:"30 to 1", maximum:17};
this.places["Horn 2"] = {bet:0, prize_index:30, p_index_d:"30 to 1", maximum:17};
this.places["Hardway 4"] = {bet:0, prize_index:7, p_index_d:"7 to 1", maximum:65, off_Label:true};
this.places["Hardway 8"] = {bet:0, prize_index:9, p_index_d:"9 to 1", maximum:50, off_Label:true};
this.places["Hardway 10"] = {bet:0, prize_index:7, p_index_d:"7 to 1", maximum:65, off_Label:true};
this.places["Hardway 6"] = {bet:0, prize_index:9, p_index_d:"9 to 1", maximum:50, off_Label:true};
this.places["Any 7"] = {bet:0, prize_index:4, p_index_d:"4 to 1", maximum:1000};
this.places.bet_drag = {bet:0, maximum:100000000000};
this.init();
};
C_GameCLASS.prototype = new Object();
C_GameCLASS.prototype.init = function () {
this.dice_1 = Math.floor((Math.random() * 6) + 1);
this.dice_2 = Math.floor((Math.random() * 6) + 1);
this.voiceON = true;
this.repeatArray = new Array();
this.crBalance();
this.showButtons();
this.hide_show_odds();
for (var v in _root.buttons.odds) {
_root.buttons.odds[v].hide();
}
var o = {};
o.onKeyDown = function () {
if (Key.getCode() == 32) {
if (C_Game.curBet > 0) {
C_Game.curBet = -1 * Math.abs(C_Game.curBet);
}
}
};
o.onKeyUp = function () {
if (Key.getCode() == 32) {
if (C_Game.curBet < 0) {
C_Game.curBet = Math.abs(C_Game.curBet);
}
}
};
Key.addListener(o);
_root.chipsMenu_mc.setChangeHandler("setCurBet", this);
_root.chipsMenu_mc.setChip(this.curBet);
_root.dealButton_mc.setChangeHandler("roll", this);
_root.clearButton_mc.setChangeHandler("clear", this);
_root.dealButton_mc.setKeys(13);
_root.clearButton_mc.setKeys(46);
_root.clearButton_mc.hint = "Clear all bets";
_root.voiceButton_mc.setChangeHandler("setVoice", this);
_root.autoButton_mc.setChangeHandler("roll", this);
_root.dicesDisplay_mc.setDices(this.dice_1, this.dice_2);
_root.dicesAnimation_mc.start(this.dice_1, this.dice_2, true);
Stage.onCenterScale(600, 420);
delete _root.messageDisplay;
_root.addProperty("messageDisplay", function () {
return(_root.display_txt.text);
}, function (t) {
var o = _root.display_txt;
o.text = t;
o.setTextFormat(o.tF);
});
o.onResize = function () {
var t = new TextFormat();
t.size = 11 / (_root._xscale / 100);
t.bold = true;
_root.display_txt.setTextFormat(t);
_root.display_txt.tF = t;
};
o.onResize();
Stage.addListener(o);
};
C_GameCLASS.prototype.lock = function () {
_root.messageDisplay = "";
MovieClip.prototype.enabled = false;
Button.prototype.enabled = false;
_root.dicesDisplay_mc.lock();
_root.dealButton_mc.lock();
_root.clearButton_mc.lock();
_root.voiceButton_mc.lock();
_root.autoButton_mc.lock();
};
C_GameCLASS.prototype.unlock = function () {
MovieClip.prototype.enabled = true;
Button.prototype.enabled = true;
if (this.changed_round_status) {
this.showButtons();
this.changed_round_status = false;
}
_root.dicesDisplay_mc.unlock();
_root.dealButton_mc.unlock();
_root.clearButton_mc.unlock();
_root.voiceButton_mc.unlock();
_root.autoButton_mc.unlock();
};
C_GameCLASS.prototype.crBalance = function () {
_root.balanceMashine_mc.balance = this.userBalance;
};
C_GameCLASS.prototype.roll = function (complette, d_1, d_2) {
if (this.locked && (!complette)) {
return(undefined);
}
if (this.notEmptyBet && (this.summ_bets() <= 0)) {
Mouse.showAlt("Place your bet please!");
return(undefined);
}
if ((this.notEmptyPassline && (!this.open_round)) && ((!this.places.Passline.bet) && (!this.places["Don't Pass"].bet))) {
Mouse.showAlt("You must bet on either \"Pass Line\" \ror \"Don't Pass Line\"");
return(undefined);
}
this.lock();
if (!complette) {
Conv.put(_root.dicesAnimation_mc, "clear", 0);
}
if (_level5) {
if (!complette) {
C_Server.round();
return(undefined);
}
this.dice_1 = Number(d_1);
this.dice_2 = Number(d_2);
} else {
this.dice_1 = Math.floor((Math.random() * 6) + 1);
this.dice_2 = Math.floor((Math.random() * 6) + 1);
}
this.dice = this.dice_1 + this.dice_2;
this.part = ((this.part == 3) ? 0 : 3);
if (this.voiceON) {
if (!this.open_round) {
Conv.put(_root, "newSound", 900, "come");
} else {
Conv.put(_root, "newSound", 600, "shoot");
Conv.put(_root, "newSound", 700, "n_" + this.point);
}
}
Conv.put(_root.dicesAnimation_mc, "start", 0, this.dice_1, this.dice_2);
Conv.put(_root.dicesDisplay_mc, "setDices", 0, this.dice_1, this.dice_2);
Conv.put(empty, "3");
this.check_prizes();
if (_level5) {
Conv.put(function (bal) {
C_Game.userBalance = C_Game.userBalance_from_server;
C_Game.crBalance();
}, 0);
}
Conv.put(this, "unlock", 0);
this.hide_show_odds();
};
C_GameCLASS.prototype.OpenRound = function () {
this.point = this.dice;
Conv.anim(_root.puck_mc, _root["sh_pl_" + this.dice], {to_end:true});
Conv.put(_root.puck_mc, "gotoAndStop", 0, 2);
Conv.put(function () {
Conv.put(C_Game, "chips_OFF", 0, "Open");
}, 0);
Conv.put(empty, "3");
this.sounds();
var bets_loosed = ["Lay Bet " + this.dice, "Place Lose " + this.dice];
if (this.places.Passline.bet > 0) {
this.show_odds.push("Passline Odds");
this.places["Passline Odds"] = {};
this.places["Passline Odds"].maximum = this.places.Passline.bet * (this.places.ratio["Passline Odds"] || 3);
}
var o;
if (this.places["Don't Pass"].bet > 0) {
this.show_odds.push("Don't Pass Odds");
this.places["Don't Pass Odds"] = {};
this.places["Don't Pass Odds"].maximum = this.places["Don't Pass"].bet * (this.places.ratio["Don't Pass Odds"] || 3);
}
this.loose_places(bets_loosed);
};
C_GameCLASS.prototype.CloseRound = function () {
Conv.anim(_root.puck_mc, _root.sh_pl_0, {to_end:true});
Conv.put(_root.puck_mc, "gotoAndStop", 0, 1);
Conv.put(function () {
Conv.put(C_Game, "chips_OFF", 0, "Close");
}, 0);
Conv.put(empty, "3");
this.sounds();
if (this.dice != 7) {
var bets_loosed = ["Don't Pass", "Don't Pass Odds", "Lay Bet " + this.dice, "Place Lose " + this.dice];
var bets_wined = ["Passline", "Passline Odds", "Buy Bet " + this.dice, "Place Win " + this.dice];
} else {
var bets_loosed = ["Passline", "Passline Odds"];
var bets_wined = ["Don't Pass", "Don't Pass Odds"];
var numbered_places = [4, 5, 6, 8, 9, 10];
var i = 0;
while (i < numbered_places.length) {
bets_loosed.push("Buy Bet " + numbered_places[i], "Place Win " + numbered_places[i]);
bets_wined.push("Lay Bet " + numbered_places[i], "Place Lose " + numbered_places[i]);
i++;
}
}
this.hide_odds.push("Passline Odds", "Don't Pass Odds");
this.loose_places(bets_loosed);
this.wins_places(bets_wined);
};
C_GameCLASS.prototype.TryRound = function () {
this.sounds();
if ([7, 11].indexOf(this.dice) != -1) {
var bets_wined = ["Passline"];
} else if ([2, 3, 12].indexOf(this.dice) != -1) {
var bets_loosed = ["Passline"];
}
if ([2, 3].indexOf(this.dice) != -1) {
var bets_wined = ["Don't Pass"];
} else if ([7, 11].indexOf(this.dice) != -1) {
var bets_loosed = ["Don't Pass"];
}
this.loose_places(bets_loosed);
this.wins_places(bets_wined);
};
C_GameCLASS.prototype.BeginRound = function () {
this.sounds();
var bets_wined = ["Buy Bet " + this.dice, "Place Win " + this.dice];
var bets_loosed = ["Lay Bet " + this.dice, "Place Lose " + this.dice];
this.loose_places(bets_loosed);
this.wins_places(bets_wined);
};
C_GameCLASS.prototype.clear = function () {
var allBets = 0;
var pl;
for (var v in this.places) {
pl = this.places[v];
if ((((pl.bet > 0) && (pl.dont_clear != true)) && (_root.buttons[v]._visible != false)) && (_root.buttons.odds[v]._visible != false)) {
allBets = allBets + pl.bet;
this.toPlayer(v, true);
Conv.put(_root.chPL, "setBet", "5", allBets);
}
}
Conv.put(empty, 500);
Conv.put(_root.chPL, "setBet", 0, 0);
Conv.put(this, "crBalance", "2");
};
C_GameCLASS.prototype.check_prizes = function () {
this.open_round_current = this.open_round;
if (!this.open_round) {
if ([4, 5, 6, 8, 9, 10].indexOf(this.dice) != -1) {
this.open_round = true;
this.changed_round_status = true;
this.OpenRound();
} else {
this.TryRound();
}
} else if ((this.dice == 7) || (this.dice == this.point)) {
this.open_round = false;
this.changed_round_status = true;
this.CloseRound();
} else {
this.BeginRound();
}
if ([4, 5, 6, 8, 9, 10, 7].indexOf(this.dice) != -1) {
this.check_come_odd();
}
if (this.open_round_current) {
this.check_come();
}
if ([2, 3, 4, 9, 10, 11, 12].indexOf(this.dice) != -1) {
this.wins_places(["Field"]);
} else {
this.loose_places(["Field"]);
}
if (this.dice == 8) {
this.wins_places(["Big 8"]);
}
if (this.dice == 6) {
this.wins_places(["Big 6"]);
}
if (this.dice == 7) {
this.loose_places(["Big 6", "Big 8"]);
}
this.check_probs();
};
C_GameCLASS.prototype.check_come_odd = function () {
var bets_wined = [];
var bets_loosed = [];
var places_checked = [4, 5, 6, 8, 9, 10];
if (this.dice == 7) {
bets_wined.push("Come Point " + this.dice);
var i = 0;
while (i < places_checked.length) {
bets_loosed.push("Come Point " + places_checked[i], "Come Point Odds " + places_checked[i]);
bets_wined.push("Don't Come Point " + places_checked[i], "Don't Come Point Odds " + places_checked[i]);
this.hide_odds.push("Come Point Odds " + places_checked[i], "Don't Come Point Odds " + places_checked[i]);
i++;
}
} else {
bets_wined.push("Come Point " + this.dice, "Come Point Odds " + this.dice);
bets_loosed.push("Don't Come Point " + this.dice, "Don't Come Point Odds " + this.dice);
this.hide_odds.push("Come Point Odds " + this.dice, "Don't Come Point Odds " + this.dice);
}
this.loose_places(bets_loosed);
this.wins_places(bets_wined);
};
C_GameCLASS.prototype.check_come = function () {
var bets_wined = [];
var bets_loosed = [];
if (this.places.Come.bet > 0) {
if ([7, 11].indexOf(this.dice) != -1) {
bets_wined.push("Come");
} else if ([2, 3, 12].indexOf(this.dice) != -1) {
bets_loosed.push("Come");
} else if ([4, 5, 6, 8, 9, 10].indexOf(this.dice) != -1) {
var ob1 = this.places.Come;
var ob2 = this.places["Come Point " + this.dice];
Conv.anim(_root.Come_ch.getPlace(), _root[("Come Point " + this.dice) + "_ch"], {speed:10});
this.show_odds.push("Come Point Odds " + this.dice);
ob2.bet = ob2.bet + ob1.bet;
ob1.bet = 0;
this.places["Come Point Odds " + this.dice].maximum = ob2.bet * (this.places.ratio["Come Point Odds " + this.dice] || 3);
Conv.put(_root.Come_ch, "setBet", 0, 0);
Conv.put(_root[("Come Point " + this.dice) + "_ch"], "setBet", 0, ob2.bet, false, true);
Conv.put(empty, 500);
}
}
if (this.places["Don't Come"].bet > 0) {
if ([2, 3].indexOf(this.dice) != -1) {
bets_wined.push("Don't Come");
} else if ([7, 11].indexOf(this.dice) != -1) {
bets_loosed.push("Don't Come");
} else if ([4, 5, 6, 8, 9, 10].indexOf(this.dice) != -1) {
var ob1 = this.places["Don't Come"];
var ob2 = this.places["Don't Come Point " + this.dice];
Conv.anim(_root["Don't Come_ch"].getPlace(), _root[("Don't Come Point " + this.dice) + "_ch"]);
this.show_odds.push("Don't Come Point Odds " + this.dice);
ob2.bet = ob2.bet + ob1.bet;
ob1.bet = 0;
this.places["Don't Come Point Odds " + this.dice].maximum = ob2.bet * (this.places.ratio["Don't Come Point Odds " + this.dice] || 3);
Conv.put(_root["Don't Come_ch"], "setBet", 0, 0);
Conv.put(_root[("Don't Come Point " + this.dice) + "_ch"], "setBet", 0, ob2.bet, false, true);
}
}
this.loose_places(bets_loosed);
this.wins_places(bets_wined);
};
C_GameCLASS.prototype.check_probs = function () {
var bets_loosed = [];
var bets_wined = [];
var dice_string = [this.dice_1, this.dice_2].nSort().join("|");
if (this.open_round_current) {
if (dice_string == "3|3") {
bets_wined.push("Hardway 6");
} else if (this.dice == 6) {
bets_loosed.push("Hardway 6");
}
if (dice_string == "5|5") {
bets_wined.push("Hardway 10");
} else if (this.dice == 10) {
bets_loosed.push("Hardway 10");
}
if (dice_string == "4|4") {
bets_wined.push("Hardway 8");
} else if (this.dice == 8) {
bets_loosed.push("Hardway 8");
}
if (dice_string == "2|2") {
bets_wined.push("Hardway 4");
} else if (this.dice == 4) {
bets_loosed.push("Hardway 4");
}
}
if (this.open_round_current && (this.dice == 7)) {
bets_loosed.push("Hardway 6", "Hardway 10", "Hardway 8", "Hardway 4");
}
if (this.dice == 3) {
bets_wined.push("Horn 3");
} else {
bets_loosed.push("Horn 3");
}
if (this.dice == 2) {
bets_wined.push("Horn 2");
} else {
bets_loosed.push("Horn 2");
}
if (this.dice == 12) {
bets_wined.push("Horn 12");
} else {
bets_loosed.push("Horn 12");
}
if (this.dice == 11) {
bets_wined.push("Horn 11");
} else {
bets_loosed.push("Horn 11");
}
if (this.dice == 7) {
bets_wined.push("Any 7");
} else {
bets_loosed.push("Any 7");
}
if ([2, 3, 12].indexOf(this.dice) != -1) {
bets_wined.push("Any Craps");
} else {
bets_loosed.push("Any Craps");
}
this.loose_places(bets_loosed);
this.wins_places(bets_wined);
};
C_GameCLASS.prototype.loose_places = function (arr_loose) {
if (this.turbo) {
return(undefined);
}
var i = 0;
while (i < arr_loose.length) {
if (this.places[arr_loose[i]].bet > 0) {
this.loose(arr_loose[i]);
}
i++;
}
};
C_GameCLASS.prototype.wins_places = function (arr_wins) {
if (this.turbo) {
return(undefined);
}
var i = 0;
while (i < arr_wins.length) {
if (this.places[arr_wins[i]].bet > 0) {
this.prize(arr_wins[i]);
}
i++;
}
};
C_GameCLASS.prototype.prize = function (bet_place) {
if (this.turbo) {
return(undefined);
}
var ob = this.places[bet_place];
var mc = _root[bet_place + "_ch"];
var mc_real = _root[bet_place + "_ch"].getPlace();
if ((ob.bet == 0) && (ob.bet == null)) {
return(undefined);
}
var prize_index;
if (bet_place == "Field") {
if ([3, 4, 9, 10, 11].indexOf(this.dice) != -1) {
prize_index = 1;
} else {
prize_index = 2;
}
} else if (bet_place == "Don't Pass Odds") {
prize_index = this.places["Don't Come Point Odds " + this.point].prize_index;
} else if (bet_place == "Passline Odds") {
prize_index = this.places["Come Point Odds " + this.point].prize_index;
} else {
prize_index = ob.prize_index;
}
var prize_value = (Math.floor((ob.bet * prize_index) * 4) / 4);
ob.bet = ob.bet + prize_value;
Conv.put(mc, "setBet", "5", ob.bet);
Conv.anim(mc_real, _root.chPL, {to_end:true, speed:20});
Conv.put(empty, "1");
Conv.put(mc, "setBet", 0, 0);
Conv.put(function (bet) {
C_Game.userBalance = C_Game.userBalance + bet;
}, 0, ob.bet);
Conv.put(this, "crBalance", "2");
ob.bet = 0;
};
C_GameCLASS.prototype.loose = function (bet_place) {
if (this.turbo) {
return(undefined);
}
var ob = this.places[bet_place];
var mc = _root[bet_place + "_ch"];
var mc_real = _root[bet_place + "_ch"].getPlace();
Conv.anim(mc_real, _root.dPL);
Conv.put(mc, "setBet", 0, 0);
ob.bet = 0;
};
C_GameCLASS.prototype.toPlayer = function (bet_place, notDisplayBalance) {
if (this.turbo) {
return(undefined);
}
var ob = this.places[bet_place];
var mc = _root[bet_place + "_ch"];
var mc_real = _root[bet_place + "_ch"].getPlace();
Conv.put(mc, "clearTop", 0);
Conv.anim(mc_real, _root.chPL, {to_end:true, speed:20});
Conv.put(mc, "setBet", 0, 0);
Conv.put(function (bet, bet_place) {
C_Game.userBalance = C_Game.userBalance + bet;
}, 0, ob.bet, bet_place);
if (!notDisplayBalance) {
Conv.put(this, "crBalance", "2");
}
ob.bet = 0;
};
C_GameCLASS.prototype.sounds = function () {
if (!this.voiceON) {
return(undefined);
}
if ([2, 3, 12].indexOf(this.dice) != -1) {
Conv.put(_root, "newSound", 1000, "craps_" + this.dice);
} else if (this.dice == 7) {
if (!this.changed_round_status) {
Conv.put(_root, "newSound", 500, "n_7");
Conv.put(_root, "newSound", 800, "wins_7");
Conv.put(_root, "newSound", 800, "line");
} else {
Conv.put(_root, "newSound", 500, "n_7");
Conv.put(_root, "newSound", 800, "out_7");
}
} else if (this.dice == 11) {
if (this.open_round) {
Conv.put(_root, "newSound", 700, "your_11");
Conv.put(_root, "newSound", 800, "roll");
Conv.put(_root, "newSound", 500, "n_11");
} else {
Conv.put(_root, "newSound", 900, "wins_11");
Conv.put(_root, "newSound", 800, "line");
}
} else if ([4, 6, 8, 10].indexOf(this.dice) != -1) {
if (this.dice_1 == this.dice_2) {
Conv.put(_root, "newSound", 800, "n_" + this.dice);
Conv.put(_root, "newSound", 900, "h_" + this.dice);
} else {
Conv.put(_root, "newSound", 800, "n_" + this.dice);
Conv.put(_root, "newSound", 900, "e_" + this.dice);
}
} else {
Conv.put(_root, "newSound", 800, "n_" + this.dice);
if ((this.changed_round_status && (this.open_round)) != true) {
Conv.put(_root, "newSound", 800, "roll");
Conv.put(_root, "newSound", 800, "n_" + this.dice);
}
}
if (this.changed_round_status && (this.open_round)) {
Conv.put(_root, "newSound", 800, "point");
Conv.put(_root, "newSound", 800, "n_" + this.dice);
}
};
C_GameCLASS.prototype.chips_OFF = function (act) {
var pl;
for (var v in this.places) {
pl = this.places[v];
if ((pl.bet > 0) && (pl.off_Label == true)) {
if (act == "Close") {
_root[v + "_ch"].createTop();
} else {
_root[v + "_ch"].clearTop();
}
}
}
};
C_GameCLASS.prototype.showButtons = function () {
if (this.open_round) {
_root.buttons.Passline.hide();
_root.buttons["Don't Pass"].hide();
_root.buttons.Come.show();
_root.buttons["Don't Come"].show();
} else {
_root.buttons.Passline.show();
_root.buttons["Don't Pass"].show();
_root.buttons.Come.hide();
_root.buttons["Don't Come"].hide();
}
};
C_GameCLASS.prototype.hide_show_odds = function () {
var i = 0;
while (i < this.hide_odds.length) {
_root.buttons.odds[this.hide_odds[i]].hide();
i++;
}
var i = 0;
while (i < this.show_odds.length) {
_root.buttons.odds[this.show_odds[i]].show();
i++;
}
this.show_odds = [];
this.hide_odds = [];
};
C_GameCLASS.prototype.addChips = function (bet_place) {
if (this.userBalance < this.curBet) {
return(undefined);
}
var pl = this.places[bet_place];
if ((pl.maximum > 0) && ((pl.bet + this.curBet) > pl.maximum)) {
Mouse.showAlt("This place has limit of $" + pl.maximum.dZero());
return(undefined);
}
if ((this.summ_bets() + this.curBet) > Number(this.maxBetOnTable)) {
Mouse.showAlt("The table maximum is $" + this.maxBetOnTable.dZero());
return(undefined);
}
if ((bet_place == "Passline") || (bet_place == "Don't Pass")) {
if (((this.places.Passline.bet > 0) && (bet_place == "Don't Pass")) || ((this.places["Don't Pass"].bet > 0) && (bet_place == "Passline"))) {
Mouse.showAlt("You can't bet \ron both \"Pass Line\" and \"Don't Pass Line\"");
return(undefined);
}
}
if ((bet_place == "Come") || (bet_place == "Don't Come")) {
if (((this.places.Come.bet > 0) && (bet_place == "Don't Come")) || ((this.places["Don't Come"].bet > 0) && (bet_place == "Come"))) {
Mouse.showAlt("You can't bet \ron both \"Come\" and \"Don't Come\"");
return(undefined);
}
}
if (pl == null) {
pl = (this.places[bet_place] = {});
pl.bet = 0;
}
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) {
Mouse.showAlt("The minimum bet here is $" + pl.min.dZero());
return(undefined);
}
if (((this.MinAnswer_global == null) && (!pl.notMinMessage)) && (!pl.answerComplette)) {
pl.bet = bet_bk;
this.lock();
_root.alertMenu.pl = pl;
_root.alertMenu.pl_name = bet_place;
_root.alertMenu.gotoAndStop(2);
_root.alertMenu.message = ((("The minimum bet here is $" + pl.min.dZero()) + "\r") + "Do you want us to place\r") + "the minimum bet here?";
_root.alertMenu.canselAction = function (FM) {
var pl = _root.alertMenu.pl;
pl.answerComplette = true;
pl.minAnswer = "NO";
pl.notMinMessage = FM;
C_Game.unlock();
C_Game.addChips(_root.alertMenu.pl_name);
};
_root.alertMenu.okAction = function (FM) {
var pl = _root.alertMenu.pl;
pl.answerComplette = true;
pl.minAnswer = "YES";
pl.notMinMessage = FM;
C_Game.unlock();
C_Game.addChips(_root.alertMenu.pl_name);
};
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;
_root.messageDisplay = "This place's minimum bet is $" + pl.min.dZero();
}
}
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.crBalance();
_root[bet_place + "_ch"].setBet(pl.bet);
if (((!this.open_round) && (pl.bet > 0)) && (pl.off_Label == true)) {
_root[bet_place + "_ch"].createTop();
}
};
C_GameCLASS.prototype.creatChips = function (bet_place, bet) {
var pl = this.places[bet_place];
pl.bet = bet;
_root[bet_place + "_ch"].setBet(pl.bet);
if (((!this.open_round) && (pl.bet > 0)) && (pl.off_Label == true)) {
_root[bet_place + "_ch"].createTop();
}
};
C_GameCLASS.prototype.turboMode = function (mode) {
this.turbo = mode == "on";
Conv.turbo = this.turbo;
Conv.noSound = this.turbo;
};
C_GameCLASS.prototype.setVoice = function (v) {
this.voiceON = v;
};
C_GameCLASS.prototype.summ_bets = function () {
var result_summ = 0;
for (var v in this.places) {
result_summ = result_summ + this.places[v].bet;
}
return(result_summ);
};
C_GameCLASS.prototype.setCurBet = function (bet) {
this.curBet = bet;
};
_root.o = function (name_mc) {
if (C_Game.droped > 0) {
C_Game.addChips(name_mc);
C_Game.droped = 0;
return(undefined);
}
C_Game.droped = 0;
var left_text = "place your bet on \r";
_root.messageDisplay = ((left_text + "\"") + name_mc) + "\"";
if (C_Game.places[name_mc].p_index_d != null) {
_root.messageDisplay = _root.messageDisplay + (("\r(pays - " + C_Game.places[name_mc].p_index_d) + ")");
}
};
_root.r = function (name_mc) {
C_Game.addChips(name_mc);
};
_root.u = function () {
_root.messageDisplay = "";
};
_global.C_Game = new C_GameCLASS();
Instance of Symbol 213 MovieClip [C_ChipsCLASS] "Don't Come Point 4_ch" in Frame 1
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
multyLine = false;
}
Instance of Symbol 213 MovieClip [C_ChipsCLASS] "Don't Come Point 5_ch" in Frame 1
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
multyLine = false;
}
Instance of Symbol 213 MovieClip [C_ChipsCLASS] "Don't Come Point 6_ch" in Frame 1
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
multyLine = false;
}
Instance of Symbol 213 MovieClip [C_ChipsCLASS] "Don't Come Point 8_ch" in Frame 1
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
multyLine = false;
}
Instance of Symbol 213 MovieClip [C_ChipsCLASS] "Don't Come Point 9_ch" in Frame 1
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
multyLine = false;
}
Instance of Symbol 213 MovieClip [C_ChipsCLASS] "Don't Come Point 10_ch" in Frame 1
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
multyLine = false;
}
Instance of Symbol 213 MovieClip [C_ChipsCLASS] "Lay Bet 10_ch" in Frame 1
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
multyLine = false;
}
Instance of Symbol 213 MovieClip [C_ChipsCLASS] "Don't Come_ch" in Frame 1
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
multyLine = false;
}
Instance of Symbol 213 MovieClip [C_ChipsCLASS] "Any 7_ch" in Frame 1
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
multyLine = false;
}
Instance of Symbol 213 MovieClip [C_ChipsCLASS] "Hardway 10_ch" in Frame 1
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
multyLine = false;
}
Instance of Symbol 213 MovieClip [C_ChipsCLASS] "Hardway 6_ch" in Frame 1
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
multyLine = false;
}
Instance of Symbol 213 MovieClip [C_ChipsCLASS] "Hardway 4_ch" in Frame 1
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
multyLine = false;
}
Instance of Symbol 213 MovieClip [C_ChipsCLASS] "Hardway 8_ch" in Frame 1
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
multyLine = false;
}
Instance of Symbol 213 MovieClip [C_ChipsCLASS] "Horn 12_ch" in Frame 1
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
multyLine = false;
}
Instance of Symbol 213 MovieClip [C_ChipsCLASS] "Horn 2_ch" in Frame 1
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
multyLine = false;
}
Instance of Symbol 213 MovieClip [C_ChipsCLASS] "Horn 3_ch" in Frame 1
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
multyLine = false;
}
Instance of Symbol 213 MovieClip [C_ChipsCLASS] "Horn 11_ch" in Frame 1
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
multyLine = false;
}
Instance of Symbol 213 MovieClip [C_ChipsCLASS] "Big 6_ch" in Frame 1
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
multyLine = false;
}
Instance of Symbol 213 MovieClip [C_ChipsCLASS] "Big 8_ch" in Frame 1
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
multyLine = false;
}
Instance of Symbol 213 MovieClip [C_ChipsCLASS] "Any Craps_ch" in Frame 1
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
multyLine = false;
}
Instance of Symbol 213 MovieClip [C_ChipsCLASS] "Lay Bet 4_ch" in Frame 1
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
multyLine = false;
}
Instance of Symbol 213 MovieClip [C_ChipsCLASS] "Lay Bet 5_ch" in Frame 1
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
multyLine = false;
}
Instance of Symbol 213 MovieClip [C_ChipsCLASS] "Lay Bet 6_ch" in Frame 1
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
multyLine = false;
}
Instance of Symbol 213 MovieClip [C_ChipsCLASS] "Lay Bet 8_ch" in Frame 1
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
multyLine = false;
}
Instance of Symbol 213 MovieClip [C_ChipsCLASS] "Lay Bet 9_ch" in Frame 1
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
multyLine = false;
}
Instance of Symbol 213 MovieClip [C_ChipsCLASS] "Place Lose 4_ch" in Frame 1
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
multyLine = false;
}
Instance of Symbol 213 MovieClip [C_ChipsCLASS] "Place Lose 5_ch" in Frame 1
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
multyLine = false;
}
Instance of Symbol 213 MovieClip [C_ChipsCLASS] "Place Lose 6_ch" in Frame 1
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
multyLine = false;
}
Instance of Symbol 213 MovieClip [C_ChipsCLASS] "Place Lose 8_ch" in Frame 1
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
multyLine = false;
}
Instance of Symbol 213 MovieClip [C_ChipsCLASS] "Place Lose 9_ch" in Frame 1
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
multyLine = false;
}
Instance of Symbol 213 MovieClip [C_ChipsCLASS] "Don't Come Point Odds 4_ch" in Frame 1
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
multyLine = false;
}
Instance of Symbol 213 MovieClip [C_ChipsCLASS] "Don't Come Point Odds 5_ch" in Frame 1
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
multyLine = false;
}
Instance of Symbol 213 MovieClip [C_ChipsCLASS] "Don't Come Point Odds 6_ch" in Frame 1
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
multyLine = false;
}
Instance of Symbol 213 MovieClip [C_ChipsCLASS] "Don't Come Point Odds 8_ch" in Frame 1
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
multyLine = false;
}
Instance of Symbol 213 MovieClip [C_ChipsCLASS] "Don't Come Point Odds 9_ch" in Frame 1
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
multyLine = false;
}
Instance of Symbol 213 MovieClip [C_ChipsCLASS] "Place Lose 10_ch" in Frame 1
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
multyLine = false;
}
Instance of Symbol 213 MovieClip [C_ChipsCLASS] "Don't Come Point Odds 10_ch" in Frame 1
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
multyLine = false;
}
Instance of Symbol 213 MovieClip [C_ChipsCLASS] "Come Point 4_ch" in Frame 1
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
multyLine = false;
}
Instance of Symbol 213 MovieClip [C_ChipsCLASS] "Come Point 5_ch" in Frame 1
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
multyLine = false;
}
Instance of Symbol 213 MovieClip [C_ChipsCLASS] "Come Point 6_ch" in Frame 1
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
multyLine = false;
}
Instance of Symbol 213 MovieClip [C_ChipsCLASS] "Come Point 8_ch" in Frame 1
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
multyLine = false;
}
Instance of Symbol 213 MovieClip [C_ChipsCLASS] "Come Point 9_ch" in Frame 1
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
multyLine = false;
}
Instance of Symbol 213 MovieClip [C_ChipsCLASS] "Come Point 10_ch" in Frame 1
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
multyLine = false;
}
Instance of Symbol 213 MovieClip [C_ChipsCLASS] "Buy Bet 4_ch" in Frame 1
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
multyLine = false;
}
Instance of Symbol 213 MovieClip [C_ChipsCLASS] "Buy Bet 5_ch" in Frame 1
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
multyLine = false;
}
Instance of Symbol 213 MovieClip [C_ChipsCLASS] "Buy Bet 6_ch" in Frame 1
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
multyLine = false;
}
Instance of Symbol 213 MovieClip [C_ChipsCLASS] "Buy Bet 8_ch" in Frame 1
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
multyLine = false;
}
Instance of Symbol 213 MovieClip [C_ChipsCLASS] "Buy Bet 9_ch" in Frame 1
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
multyLine = false;
}
Instance of Symbol 213 MovieClip [C_ChipsCLASS] "Buy Bet 10_ch" in Frame 1
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
multyLine = false;
}
Instance of Symbol 213 MovieClip [C_ChipsCLASS] "Come Point Odds 4_ch" in Frame 1
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
multyLine = false;
}
Instance of Symbol 213 MovieClip [C_ChipsCLASS] "Come Point Odds 5_ch" in Frame 1
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
multyLine = false;
}
Instance of Symbol 213 MovieClip [C_ChipsCLASS] "Come Point Odds 6_ch" in Frame 1
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
multyLine = false;
}
Instance of Symbol 213 MovieClip [C_ChipsCLASS] "Come Point Odds 8_ch" in Frame 1
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
multyLine = false;
}
Instance of Symbol 213 MovieClip [C_ChipsCLASS] "Come Point Odds 9_ch" in Frame 1
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
multyLine = false;
}
Instance of Symbol 213 MovieClip [C_ChipsCLASS] "Come Point Odds 10_ch" in Frame 1
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
multyLine = false;
}
Instance of Symbol 213 MovieClip [C_ChipsCLASS] "Place Win 4_ch" in Frame 1
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
multyLine = false;
}
Instance of Symbol 213 MovieClip [C_ChipsCLASS] "Place Win 5_ch" in Frame 1
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
multyLine = false;
}
Instance of Symbol 213 MovieClip [C_ChipsCLASS] "Place Win 6_ch" in Frame 1
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
multyLine = false;
}
Instance of Symbol 213 MovieClip [C_ChipsCLASS] "Place Win 8_ch" in Frame 1
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
multyLine = false;
}
Instance of Symbol 213 MovieClip [C_ChipsCLASS] "Place Win 9_ch" in Frame 1
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
multyLine = false;
}
Instance of Symbol 213 MovieClip [C_ChipsCLASS] "Place Win 10_ch" in Frame 1
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
multyLine = false;
}
Instance of Symbol 213 MovieClip [C_ChipsCLASS] "Come_ch" in Frame 1
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
multyLine = false;
}
Instance of Symbol 213 MovieClip [C_ChipsCLASS] "Field_ch" in Frame 1
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
multyLine = false;
}
Instance of Symbol 213 MovieClip [C_ChipsCLASS] "Passline Odds_ch" in Frame 1
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
multyLine = false;
}
Instance of Symbol 213 MovieClip [C_ChipsCLASS] "Don't Pass Odds_ch" in Frame 1
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
multyLine = false;
}
Instance of Symbol 213 MovieClip [C_ChipsCLASS] "Don't Pass_ch" in Frame 1
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
multyLine = false;
}
Instance of Symbol 213 MovieClip [C_ChipsCLASS] "Passline_ch" in Frame 1
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
multyLine = false;
}
Instance of Symbol 213 MovieClip [C_ChipsCLASS] "TieBet_mc" in Frame 1
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
multyLine = false;
}
Instance of Symbol 213 MovieClip [C_ChipsCLASS] "chPL" in Frame 1
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
multyLine = true;
}
Instance of Symbol 209 MovieClip [C_DealButtonCLASS] "clearButton_mc" in Frame 1
//component parameters
onClipEvent (initialize) {
label = "CLEAR";
}
Instance of Symbol 209 MovieClip [C_DealButtonCLASS] "dealButton_mc" in Frame 1
//component parameters
onClipEvent (initialize) {
label = "ROLL";
}
Instance of Symbol 205 MovieClip [C_BalanceMashine] "balanceMashine_mc" in Frame 1
//component parameters
onClipEvent (initialize) {
_balance = 0;
}
Instance of Symbol 186 MovieClip [C_ChipsMenuCLASS] "chipsMenu_mc" in Frame 1
//component parameters
onClipEvent (initialize) {
curBet = 5;
}
Instance of Symbol 163 MovieClip [C_DicesDisplayCLASS] "dicesDisplay_mc" in Frame 1
//component parameters
onClipEvent (initialize) {
locked = false;
}
Instance of Symbol 158 MovieClip [C_VoiceButtonCLASS] "voiceButton_mc" in Frame 1
//component parameters
onClipEvent (initialize) {
label = "CLEAR";
}
Instance of Symbol 155 MovieClip [C_AutoButtonCLASS] "autoButton_mc" in Frame 1
//component parameters
onClipEvent (initialize) {
label = "CLEAR";
}
Instance of Symbol 213 MovieClip [C_ChipsCLASS] "dPL" in Frame 1
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
multyLine = false;
}
Instance of Symbol 124 MovieClip [C_DicesAnimationCLASS] "dicesAnimation_mc" in Frame 1
//component parameters
onClipEvent (initialize) {
Component_Name = "\u043A\u0443\u0431\u0438\u043A";
}
Instance of Symbol 94 MovieClip [C_GamesOpenMenuCLASS] "cashierMenu_mc" in Frame 1
//component parameters
onClipEvent (initialize) {
configPath = "games_menu.xml";
}
Instance of Symbol 90 MovieClip [C_RulesOpenMenuCLASS] "rulesButton_mc" in Frame 1
//component parameters
onClipEvent (initialize) {
configPath = "rules.xml";
}
Instance of Symbol 86 MovieClip [C_BackToSiteButtonCLASS] in Frame 1
//component parameters
onClipEvent (initialize) {
configPath = "../back_to_site.xml";
}
Symbol 41 MovieClip Frame 1
this.stop();
Symbol 41 MovieClip Frame 2
this.stop();
Symbol 86 MovieClip [C_BackToSiteButtonCLASS] Frame 1
#initclip 11
_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 90 MovieClip [C_RulesOpenMenuCLASS] Frame 1
#initclip 1
_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 94 MovieClip [C_GamesOpenMenuCLASS] Frame 1
#initclip 2
_global.C_GamesOpenMenuCLASS = function () {
this.init();
};
C_GamesOpenMenuCLASS.prototype = new MovieClip();
C_GamesOpenMenuCLASS.prototype.init = function () {
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.createMenu(this);
};
x.load(this.configPath);
};
C_GamesOpenMenuCLASS.prototype.createMenu = function (x) {
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 () {
getURL (this.url, this.target);
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++;
}
this.top_mc.onRelease = (this.middle_mc.onRelease = (this.bottom_mc.onRelease = function () {
}));
this.top_mc.useHandCursor = (this.middle_mc.useHandCursor = (this.bottom_mc.useHandCursor = false));
};
C_GamesOpenMenuCLASS.prototype.open = function () {
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, false)) {
} else {
this.root.close();
}
};
o.onKeyDown = function () {
this.root.close();
};
Mouse.addListener(o);
Key.addListener(o);
};
C_GamesOpenMenuCLASS.prototype.close = function () {
this.removeListener(this.listener);
this.holder_mc._visible = false;
};
Object.registerClass("C_GamesOpenMenuCLASS", C_GamesOpenMenuCLASS);
delete _global.C_GamesOpenMenuCLASS;
#endinitclip
Symbol 114 MovieClip Frame 1
var component = this._parent._parent._parent;
var pos = component.getDicePos();
this.gotoAndStop(pos);
Symbol 119 MovieClip Frame 42
this.stop();
this._parent.onAnimStoped(1);
Symbol 119 MovieClip Frame 87
this.stop();
this._parent.onAnimStoped(2);
Symbol 120 MovieClip Frame 45
this.stop();
this._parent.onAnimStoped(1);
Symbol 120 MovieClip Frame 90
this.stop();
this._parent.onAnimStoped(2);
Symbol 121 MovieClip Frame 42
this.stop();
this._parent.onAnimStoped(1);
Symbol 121 MovieClip Frame 87
this.stop();
this._parent.onAnimStoped(2);
Symbol 122 MovieClip Frame 40
this.stop();
this._parent.onAnimStoped(1);
Symbol 122 MovieClip Frame 85
this.stop();
this._parent.onAnimStoped(2);
this.stop();
Symbol 123 MovieClip Frame 40
this.stop();
this._parent.onAnimStoped(1);
Symbol 123 MovieClip Frame 80
this.stop();
this._parent.onAnimStoped(2);
Symbol 124 MovieClip [C_DicesAnimationCLASS] Frame 1
#initclip 3
_global.C_DicesAnimationCLASS = function () {
this.init();
};
C_DicesAnimationCLASS.prototype = new MovieClip();
C_DicesAnimationCLASS.prototype.init = function () {
this.start(random(6) + 1, random(6) + 1, true);
};
C_DicesAnimationCLASS.prototype.getDicePos = function () {
var d = (((this._currentDiceCaller++) % 2) + 1);
return(this["dice_" + d]);
};
C_DicesAnimationCLASS.prototype.start = function (first, second, refresh) {
this.dice_1 = first;
this.dice_2 = second;
this.gotoAndStop(1);
this.gotoAndStop(random(5) + 2);
Conv.stop();
if (refresh) {
this.dices.gotoAndStop("result");
} else {
this.dices.gotoAndPlay(1);
}
};
C_DicesAnimationCLASS.prototype.clear = function () {
this.dices.gotoAndPlay("result");
Conv.stop();
};
C_DicesAnimationCLASS.prototype.onAnimStoped = function () {
Conv.play();
};
ASSetPropFlags(_global, "C_DicesAnimationCLASS", 131);
Object.registerClass("C_DicesAnimationCLASS", C_DicesAnimationCLASS);
#endinitclip
Symbol 155 MovieClip [C_AutoButtonCLASS] Frame 1
#initclip 4
_global.C_AutoButtonCLASS = function () {
this.autoOn = false;
};
C_AutoButtonCLASS.prototype = new MovieClip();
C_AutoButtonCLASS.prototype.onLoad = function () {
this.a_btn.addAlt(function () {
if (this._parent.autoOn) {
this.showAlt("Turn auto start game OFF");
} else {
this.showAlt("Turn auto start game ON");
}
}, function () {
this.hideAlt();
});
this.a_btn.onPress = function () {
this.hideAlt();
this._parent.onButtonPress();
};
this.a_btn.useHandCursor = true;
this.a_btn._brightness = -50;
this.label_mc._brightness = -50;
this.stopTimer();
};
C_AutoButtonCLASS.prototype.lock = function () {
this.onRelease = function () {
};
this.useHandCursor = false;
if (this.autoOn) {
this.stopTimer();
}
};
C_AutoButtonCLASS.prototype.unlock = function () {
delete this.onRelease;
delete this.useHandCursor;
if (this.autoOn) {
this.startTimer();
}
};
C_AutoButtonCLASS.prototype.onButtonPress = function () {
if (this.autoOn) {
this.autoOn = false;
this.a_btn._brightness = -50;
this.label_mc._brightness = -50;
this.stopTimer();
} else {
this.autoOn = true;
this.a_btn._brightness = 0;
this.label_mc._brightness = 0;
this.startTimer();
}
};
C_AutoButtonCLASS.prototype.stopTimer = function () {
this.timer_mc._visible = 0;
clearInterval(this._interval);
};
C_AutoButtonCLASS.prototype.startTimer = function () {
this.timer = 1;
this._interval = setInterval(this, "onTimer", 1000);
this.timer_mc.gotoAndStop(1);
this.timer_mc._visible = 1;
};
C_AutoButtonCLASS.prototype.onTimer = function () {
this.timer++;
if (this.timer > 16) {
this.timer = 1;
this.startGame();
}
this.timer_mc.gotoAndStop(this.timer);
};
C_AutoButtonCLASS.prototype.startGame = function () {
var c = this.client;
c.client[c.handler]();
};
C_AutoButtonCLASS.prototype.setChangeHandler = function (handler, client) {
this.client = {client:client, handler:handler};
};
ASSetPropFlags(_global, "C_AutoButtonCLASS", 131);
Object.registerClass("C_AutoButtonCLASS", C_AutoButtonCLASS);
#endinitclip
Symbol 158 MovieClip [C_VoiceButtonCLASS] Frame 1
#initclip 5
_global.C_VoiceButtonCLASS = function () {
this.voiceOn = true;
};
C_VoiceButtonCLASS.prototype = new MovieClip();
C_VoiceButtonCLASS.prototype.onLoad = function () {
this.a_btn.addAlt(function () {
if (this._parent.voiceOn) {
this.showAlt("Turn dealer voice OFF");
} else {
this.showAlt("Turn dealer voice ON");
}
}, function () {
this.hideAlt();
});
this.a_btn.onPress = function () {
this.hideAlt();
this._parent.onButtonPress();
};
this.a_btn.useHandCursor = true;
};
C_VoiceButtonCLASS.prototype.lock = function () {
this.onRelease = function () {
};
this.useHandCursor = false;
};
C_VoiceButtonCLASS.prototype.unlock = function () {
delete this.onRelease;
delete this.useHandCursor;
};
C_VoiceButtonCLASS.prototype.onButtonPress = function () {
if (this.voiceOn) {
this.voiceOn = false;
this.a_btn._brightness = -50;
this.label_mc._brightness = -50;
} else {
this.voiceOn = true;
this.a_btn._brightness = 0;
this.label_mc._brightness = 0;
}
var c = this.client;
c.client[c.handler](this.voiceOn);
};
C_VoiceButtonCLASS.prototype.setChangeHandler = function (handler, client) {
this.client = {client:client, handler:handler};
};
ASSetPropFlags(_global, "C_VoiceButtonCLASS", 131);
Object.registerClass("C_VoiceButtonCLASS", C_VoiceButtonCLASS);
#endinitclip
Symbol 163 MovieClip [C_DicesDisplayCLASS] Frame 1
#initclip 6
_global.C_DicesDisplayCLASS = function () {
this.init();
};
C_DicesDisplayCLASS.prototype = new MovieClip();
C_DicesDisplayCLASS.prototype.init = function () {
this.setDices(random(6) + 1, random(6) + 1);
};
C_DicesDisplayCLASS.prototype.lock = function () {
this._brightness = -50;
};
C_DicesDisplayCLASS.prototype.unlock = function () {
this._brightness = 0;
};
C_DicesDisplayCLASS.prototype.setDices = function (first, second) {
this.dice1_mc.gotoAndStop(first);
this.dice2_mc.gotoAndStop(second);
};
ASSetPropFlags(_global, "C_DicesDisplayCLASS", 131);
Object.registerClass("C_DicesDisplayCLASS", C_DicesDisplayCLASS);
#endinitclip
Symbol 186 MovieClip [C_ChipsMenuCLASS] Frame 1
#initclip 7
_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 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.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 199 MovieClip Frame 1
this.number_mc.n = this.number_old;
Symbol 199 MovieClip Frame 2
this.number2_mc.n = this.number_new;
Symbol 199 MovieClip Frame 4
this.number2_mc.n = this.number_new;
Symbol 199 MovieClip Frame 5
this.stop();
this._parent.onEvent(this);
Symbol 199 MovieClip Frame 6
this.number2_mc.n = this.number_old;
Symbol 199 MovieClip Frame 8
this.number_mc.n = this.number_new;
Symbol 199 MovieClip Frame 9
this.number_mc.n = this.number_new;
Symbol 199 MovieClip Frame 10
this.stop();
this._parent.onEvent(this);
Symbol 202 MovieClip Frame 1
this.number_mc.n = this.number_old;
Symbol 202 MovieClip Frame 2
this.number2_mc.n = this.number_new;
Symbol 202 MovieClip Frame 6
this.number2_mc.n = this.number_new;
Symbol 202 MovieClip Frame 7
this.stop();
this._parent.onEvent(this);
Symbol 202 MovieClip Frame 8
this.number2_mc.n = this.number_old;
Symbol 202 MovieClip Frame 11
this.number_mc.n = this.number_new;
Symbol 202 MovieClip Frame 12
this.number_mc.n = this.number_new;
Symbol 202 MovieClip Frame 13
this.stop();
this._parent.onEvent(this);
Symbol 205 MovieClip [C_BalanceMashine] Frame 1
#initclip 8
_global.C_BalanceMashine = function () {
this.init();
this.drawBalance();
};
C_BalanceMashine.prototype = new MovieClip();
C_BalanceMashine.prototype.init = function () {
this._x = Math.round(this._x);
this._y = Math.round(this._y);
this.comma_mc._visible = 0;
var o;
var t;
this.c_array = [];
this.c_array[0] = this.C1_mc;
this.c_array[1] = this.C2_mc;
var i = 0;
while (i < this.c_array.length) {
t = this.c_array[i];
t._x = Math.round(t._x);
t._y = Math.round(t._y);
t.number_new = 0;
i++;
}
this.S4_mc.isComma = true;
this.d_array = [];
this.d_array[0] = this.S1_mc;
this.d_array[1] = this.S2_mc;
this.d_array[2] = this.S3_mc;
this.d_array[3] = this.S4_mc;
this.d_array[4] = this.S5_mc;
this.d_array[5] = this.S6_mc;
var i = 0;
while (i < this.d_array.length) {
t = this.d_array[i];
t._x = Math.round(t._x);
t._y = Math.round(t._y);
t.number_new = 0;
i++;
}
};
C_BalanceMashine.prototype.addProperty("balance", function () {
return(this._balance);
}, function (b) {
this._balance = b;
this.drawBalance();
});
C_BalanceMashine.prototype.drawBalance = function () {
this.animTargets = 0;
var centes = String(Math.floor(this._balance * 100)).substr(-2);
if (centes.length < 2) {
centes = "0" + centes;
}
var i = 0;
while (i < this.c_array.length) {
this.drawNumber(this.c_array[i], centes.substr((i + 1) * -1, 1));
i++;
}
var dollars = (" " + String(Math.floor(this._balance)));
var i = 0;
while (i < this.d_array.length) {
this.drawNumber(this.d_array[i], dollars.substr((i + 1) * -1, 1));
i++;
}
};
C_BalanceMashine.prototype.drawNumber = function (targ, n) {
var number_new = ((n == " ") ? 0 : (Number(n)));
var number_old = ((targ.number_new == " ") ? 0 : (targ.number_new));
var a = ((targ.eventsArray = []));
if ((targ.number_new == n) || (isNaN(number_new))) {
return(undefined);
}
if (number_new == number_old) {
if (n == " ") {
a.push({event:"BACK", number_old:0, number_new:" "});
} else {
a.push({event:"FORWARD", number_old:" ", number_new:0});
}
} else {
var d;
var event;
var p = (Math.abs(number_new - number_old) <= 5);
if (number_new > number_old) {
if (p) {
event = "FORWARD";
d = 1;
} else {
event = "BACK";
d = -1;
}
} else if (!p) {
event = "FORWARD";
d = 1;
} else {
event = "BACK";
d = -1;
}
if (targ.number_old == " ") {
a.push({event:"FORWARD", number_old:" ", number_new:0});
}
var cur_number = number_old;
while (cur_number != number_new) {
number_old = cur_number;
cur_number = cur_number + d;
if (cur_number > 9) {
cur_number = 0;
} else if (cur_number < 0) {
cur_number = 9;
}
a.push({event:event, number_old:number_old, number_new:cur_number});
}
if (n == " ") {
a.push({event:"BACK", number_old:0, number_new:" "});
}
}
if (a.length) {
this.animTargets++;
Conv.stop();
}
if (targ.stoped) {
this.onEvent(targ);
}
};
C_BalanceMashine.prototype.onEvent = function (targ) {
var a = targ.eventsArray;
if (a.length == 0) {
targ.stoped = true;
if ((--this.animTargets) <= 0) {
Conv.play();
}
return(undefined);
}
targ.stoped = false;
var e = a.shift();
targ.number_old = e.number_old;
targ.number_new = e.number_new;
targ.gotoAndPlay(e.event);
if (targ.isComma) {
this.comma_mc._visible = e.number_new != " ";
}
};
Object.registerClass("C_BalanceMashine", C_BalanceMashine);
ASSetPropFlags(_global, "C_BalanceMashine", 131);
#endinitclip
Symbol 208 MovieClip Frame 1
this.stop();
Symbol 209 MovieClip [C_DealButtonCLASS] Frame 1
#initclip 9
_global.C_DealButtonCLASS = function () {
AsBroadcaster.initialize(this);
this.init();
};
C_DealButtonCLASS.prototype = new MovieClip();
C_DealButtonCLASS.prototype.init = function () {
this.keys = [13];
this.onKeyDown = function () {
var a = this.keys;
var k = Key.getCode();
var i = 0;
while (i < a.length) {
if (k == a[i]) {
this.onButtonPress();
}
i++;
}
};
var b = this.dealButton_btn;
b.onRelease = function () {
this._parent.onButtonPress();
};
b.onRollOver = (b.onDragOver = function () {
this._parent.onButtonFocus();
});
b.onDragOut = (b.releaseOutside = (b.onRollOut = function () {
this._parent.onButtonBlur();
}));
if (b) {
Key.addListener(this);
}
if (this.label != undefined) {
this.setLabel(this.label);
}
};
C_DealButtonCLASS.prototype.lock = function () {
if (this.locked) {
return(undefined);
}
this.locked = true;
this.onRelease = function () {
};
this.useHandCursor = false;
this.dealButton_btn._brightness = -40;
this.label_mc._brightness = -40;
this.onButtonBlur();
};
C_DealButtonCLASS.prototype.unlock = function () {
if (!this.locked) {
return(undefined);
}
this.locked = false;
delete this.onRelease;
delete this.useHandCursor;
this.dealButton_btn._brightness = 0;
this.label_mc._brightness = 0;
};
C_DealButtonCLASS.prototype.onButtonPress = function () {
if (this.locked) {
return(undefined);
}
if (this.hint != undefined) {
this.hideAlt();
}
var c = this.client;
c.client[c.handler]();
this.client.client._caller = this;
this.broadcastMessage("onPress");
};
C_DealButtonCLASS.prototype.onButtonFocus = function () {
if (this.locked) {
return(undefined);
}
if (this.hint != undefined) {
this.showAlt(this.hint);
}
this.client.client._caller = this;
this.broadcastMessage("onFocus");
};
C_DealButtonCLASS.prototype.onButtonBlur = function () {
if (this.hint != undefined) {
this.hideAlt();
}
this.client.client._caller = this;
this.broadcastMessage("onBlur");
};
C_DealButtonCLASS.prototype.setChangeHandler = function (handler, client) {
this.client = {handler:handler, client:client};
};
C_DealButtonCLASS.prototype.setKeys = function () {
this.keys = [];
var i = 0;
while (i < arguments.length) {
this.keys.push(arguments[i]);
i++;
}
};
C_DealButtonCLASS.prototype.setLabel = function (label) {
this.label_mc.gotoAndStop(label);
};
ASSetPropFlags(_global, "C_DealButtonCLASS", 131);
Object.registerClass("C_DealButtonCLASS", C_DealButtonCLASS);
#endinitclip
Symbol 213 MovieClip [C_ChipsCLASS] Frame 1
#initclip 10
_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.ChNominals = new Array(1000, 500, 100, 25, 5, 1, 0.5);
C_ChipsCLASS.prototype.Chwh = 40;
C_ChipsCLASS.prototype.scaleParam = 100;
C_ChipsCLASS.prototype.topSymbol = "chip_OFF";
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();
o.lib.attachMovie(libraryId, "topSymbol", 1000);
o.lib.movieBy(0, -3);
};
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 CashChips = this.bet;
var ChArray = new Array();
var n = 0;
var i = 0;
while (i < this.ChNominals.length) {
if (CashChips >= this.ChNominals[i]) {
var cRem = CashChips;
CashChips = CashChips % this.ChNominals[i];
ChArray[n] = new Array();
ChArray[n][0] = (cRem - CashChips) / this.ChNominals[i];
ChArray[n][1] = "chip_" + this.ChNominals[i];
if (this.ChNominals[i] == 0.5) {
ChArray[n][1] = "chip_05";
}
n++;
}
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.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++);
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
Instance of Symbol 211 MovieClip [tmp_Sq] in Symbol 213 MovieClip [C_ChipsCLASS] Frame 1
onClipEvent (load) {
_visible = 0;
}
Symbol 250 MovieClip Frame 1
this.stop();
Symbol 260 MovieClip Frame 1
_visible = 0;
Instance of Symbol 260 MovieClip in Symbol 261 MovieClip Frame 1
onClipEvent (load) {
_visible = 0;
}
Symbol 263 Button
on (rollOver) {
_root.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_root.u();
}
on (release) {
_root.r(_name);
}
Symbol 266 Button
on (rollOver) {
_root.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_root.u();
}
on (release) {
_root.r(_name);
}
Symbol 269 Button
on (rollOver) {
_root.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_root.u();
}
on (release) {
_root.r(_name);
}
Symbol 272 Button
on (rollOver) {
_root.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_root.u();
}
on (release) {
_root.r(_name);
}
Symbol 275 Button
on (rollOver) {
_root.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_root.u();
}
on (release) {
_root.r(_name);
}
Symbol 278 Button
on (rollOver) {
_root.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_root.u();
}
on (release) {
_root.r(_name);
}
Symbol 281 Button
on (rollOver) {
_root.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_root.u();
}
on (release) {
_root.r(_name);
}
Symbol 284 Button
on (rollOver) {
_root.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_root.u();
}
on (release) {
_root.r(_name);
}
Symbol 287 Button
on (rollOver) {
_root.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_root.u();
}
on (release) {
_root.r(_name);
}
Symbol 290 Button
on (rollOver) {
_root.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_root.u();
}
on (release) {
_root.r(_name);
}
Symbol 293 Button
on (rollOver) {
_root.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_root.u();
}
on (release) {
_root.r(_name);
}
Symbol 296 Button
on (rollOver) {
_root.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_root.u();
}
on (release) {
_root.r(_name);
}
Symbol 299 Button
on (rollOver) {
_root.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_root.u();
}
on (release) {
_root.r(_name);
}
Symbol 302 Button
on (rollOver) {
_root.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_root.u();
}
on (release) {
_root.r(_name);
}
Symbol 305 Button
on (rollOver) {
_root.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_root.u();
}
on (release) {
_root.r(_name);
}
Symbol 308 Button
on (rollOver) {
_root.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_root.u();
}
on (release) {
_root.r(_name);
}
Symbol 311 Button
on (rollOver) {
_root.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_root.u();
}
on (release) {
_root.r(_name);
}
Symbol 314 Button
on (rollOver) {
_root.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_root.u();
}
on (release) {
_root.r(_name);
}
Symbol 317 Button
on (rollOver) {
_root.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_root.u();
}
on (release) {
_root.r(_name);
}
Symbol 320 Button
on (rollOver) {
_root.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_root.u();
}
on (release) {
_root.r(_name);
}
Symbol 323 Button
on (rollOver) {
_root.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_root.u();
}
on (release) {
_root.r(_name);
}
Symbol 325 Button
on (rollOver) {
_root.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_root.u();
}
on (release) {
_root.r(_name);
}
Symbol 327 Button
on (rollOver) {
_root.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_root.u();
}
on (release) {
_root.r(_name);
}
Symbol 329 Button
on (rollOver) {
_root.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_root.u();
}
on (release) {
_root.r(_name);
}
Symbol 332 Button
on (rollOver) {
_root.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_root.u();
}
on (release) {
_root.r(_name);
}
Symbol 335 Button
on (rollOver) {
_root.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_root.u();
}
on (release) {
_root.r(_name);
}
Symbol 338 Button
on (rollOver) {
_root.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_root.u();
}
on (release) {
_root.r(_name);
}
Symbol 341 Button
on (rollOver) {
_root.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_root.u();
}
on (release) {
_root.r(_name);
}
Symbol 344 Button
on (rollOver) {
_root.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_root.u();
}
on (release) {
_root.r(_name);
}
Symbol 347 Button
on (rollOver) {
_root.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_root.u();
}
on (release) {
_root.r(_name);
}
Symbol 350 Button
on (rollOver) {
_root.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_root.u();
}
on (release) {
_root.r(_name);
}
Symbol 352 Button
on (rollOver) {
_root.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_root.u();
}
on (release) {
_root.r(_name);
}
Symbol 355 Button
on (rollOver) {
_root.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_root.u();
}
on (release) {
_root.r(_name);
}
Symbol 358 Button
on (rollOver) {
_root.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_root.u();
}
on (release) {
_root.r(_name);
}
Symbol 361 Button
on (rollOver) {
_root.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_root.u();
}
on (release) {
_root.r(_name);
}
Symbol 364 Button
on (rollOver) {
_root.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_root.u();
}
on (release) {
_root.r(_name);
}
Symbol 367 Button
on (rollOver) {
_root.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_root.u();
}
on (release) {
_root.r(_name);
}
Symbol 370 Button
on (rollOver) {
_root.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_root.u();
}
on (release) {
_root.r(_name);
}
Symbol 373 Button
on (rollOver) {
_root.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_root.u();
}
on (release) {
_root.r(_name);
}
Symbol 376 Button
on (rollOver) {
_root.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_root.u();
}
on (release) {
_root.r(_name);
}
Symbol 379 Button
on (rollOver) {
_root.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_root.u();
}
on (release) {
_root.r(_name);
}
Symbol 382 Button
on (rollOver) {
_root.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_root.u();
}
on (release) {
_root.r(_name);
}
Symbol 385 Button
on (rollOver) {
_root.o(_name);
}
on (rollOut, dragOut, releaseOutside) {
_root.u();
}
on (release) {
_root.r(_name);
}