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;
}
hello = "Hello Source Viewers! ;) Code Created by 3WGRAPHICS.net";
delete hello;
_global.C_TableCLASS = function () {
this.curBet = 5;
this.gStep = 0;
this.minbet = 10;
this.maxbet = 500;
this.userBalance = 999;
this.maxBetOnTable = 500;
this.CardLine = new Array("2", "3", "4", "5", "6", "7", "8", "9", "10", "J", "Q", "K", "A");
this.CardSumm = new Array(2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 10, 11);
this.CardSuit = new Array("Spades", "Hearts", "Diamonds", "Clubs");
this.CardSuit_Server = new Array("S", "H", "D", "C");
this.NCards = 52;
this.nColods = 2;
C_Table.turbo = false;
this.init();
};
C_TableCLASS.prototype = new Object();
C_TableCLASS.prototype.init = function () {
_root.min_max_Menu_mc.min = this.minbet.dZero();
_root.min_max_Menu_mc.max = this.maxbet.dZero();
_root.p1_btn.onRelease = (_root.p2_btn.onRelease = (_root.p3_btn.onRelease = function () {
if (!C_Game.begin) {
_root.checkButtons_mc.showDealButtons();
}
var o = C_Game;
o.placesArray[this.n].addChips();
o.begin = true;
}));
_root.p1_btn.n = 1;
_root.p2_btn.n = 0;
_root.p3_btn.n = 2;
var o = {};
o.onKeyDown = function () {
if (Key.getCode() == 32) {
if (C_Table.curBet > 0) {
C_Table.curBet = -1 * Math.abs(C_Table.curBet);
}
}
};
o.onKeyUp = function () {
if (Key.getCode() == 32) {
if (C_Table.curBet < 0) {
C_Table.curBet = Math.abs(C_Table.curBet);
}
}
};
Key.addListener(o);
var client = {client:this, handler:"onUserInsuranse"};
_root.c_p_1_INS_Buttons.setChangeHandler(client);
_root.c_p_2_INS_Buttons.setChangeHandler(client);
_root.c_p_3_INS_Buttons.setChangeHandler(client);
this.repeatArray = new Array();
Conv.put(this, "crBalance", "2");
this.inDeck();
_root.MousesDown(_root["ch_menu_" + this.curBet], this.curBet);
_root.chipsMenu_mc.setChangeHandler("setCurBet", this);
_root.chipsMenu_mc.setChip(this.curBet);
Stage.onCenterScale(650, 400);
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 = 10 / (_root._xscale / 100);
t.bold = true;
_root.display_txt.setTextFormat(t);
_root.display_txt.tF = t;
};
o.onResize();
Stage.addListener(o);
};
C_TableCLASS.prototype.setCurBet = function (bet) {
this.curBet = bet;
};
C_TableCLASS.prototype.inDeck = function () {
this.ideal_deck = new Array();
this.trans_deck = {};
var n = 0;
var s = 0;
var i = 0;
while (i < this.NCards) {
this.ideal_deck[i] = new Array(3);
this.ideal_deck[i][0] = this.CardLine[n];
this.ideal_deck[i][1] = this.CardSuit[s];
this.ideal_deck[i][2] = this.CardSumm[n];
this.trans_deck[this.CardLine[n] + this.CardSuit_Server[s]] = this.ideal_deck[i];
if (((i + 1) % 4) == 0) {
s = 0;
n++;
} else {
s++;
}
i++;
}
var i = 0;
while (i < nColods) {
this.ideal_deck = this.ideal_deck.concat(this.ideal_deck);
i++;
}
this.ideal_deck.paramLock();
this.trans_deck.paramLock();
delete this.CardLine;
delete this.CardSumm;
delete this.CardSuit;
delete this.CardSuit_Server;
};
C_TableCLASS.prototype.crBalance = function () {
_root.balanceMashine_mc.balance = this.userBalance;
};
C_TableCLASS.prototype.turboMode = function (mode) {
this.turbo = mode == "on";
Conv.turbo = this.turbo;
Conv.noSound = this.turbo;
};
C_TableCLASS.prototype.startNewGame = function () {
_root.messageDisplay = "";
_global.C_Game = new C_GameCLASS();
C_Game.init();
var i = 1;
while (i <= 3) {
_root[("p" + i) + "_btn"]._visible = 1;
i++;
}
};
C_TableCLASS.prototype.onUserInsuranse = function (link, bul) {
C_Game.numIns--;
if (bul) {
C_Game.insArray.push(link);
}
link.insuranceChecked = bul;
if (C_Game.numIns == 0) {
var c = 0;
while (c < C_Game.insArray.length) {
Conv.include(C_Game.insArray[c], "creatAns", 0);
c++;
}
if (_level5) {
Conv.put(C_Server, "insurance", 0);
} else {
Conv.include(C_Game, "checkBJ_dealer", 0);
}
}
};
C_TableCLASS.prototype.getAllBets = function () {
var allBets = 0;
var i = 0;
while (i < C_Game.placesArray.length) {
allBets = allBets + C_Game.placesArray[i].bet;
i++;
}
return(allBets);
};
C_TableCLASS.prototype.deal = function () {
var n = 0;
while (n < 2) {
var a = 0;
while (a < C_Game.placesArray.length) {
Conv.include(C_Game.placesArray[a], "addCard", 0);
a++;
}
Conv.include(C_Game.dealerPlace, "addCard", 0);
n++;
}
};
_global.C_GameCLASS = function () {
this.placesDepth = 0;
};
C_GameCLASS.prototype = new Object();
C_GameCLASS.prototype.init = function () {
this.placesArray = new Array();
this.placesArray[0] = new C_PlaceCLASS("c_p_2");
this.placesArray[1] = new C_PlaceCLASS("c_p_1");
this.placesArray[2] = new C_PlaceCLASS("c_p_3");
this.dealerPlace = new C_PlaceCLASS("c_d");
this.place = this.placesArray.length;
var test = false;
if (_level5) {
C_Server.card_change_number = 0;
}
if (C_Table.autoRepeat) {
var c = 0;
while (c < this.placesArray.length) {
if (C_Table.repeatArray[c] != 0) {
test = true;
Conv.put(this.placesArray[c], "creatChips", "2", C_Table.repeatArray[c]);
}
c++;
}
}
if (test) {
_root.checkButtons_mc.showDealButtons();
}
this.deck = [].concat(C_Table.ideal_deck).random();
};
C_GameCLASS.prototype.lock = function () {
Button.prototype.enabled = false;
};
C_GameCLASS.prototype.unlock = function () {
Button.prototype.enabled = true;
};
C_GameCLASS.prototype.endGame = function () {
this.delete_place();
if (_level5) {
if (C_Table.userBalance_from_server != "") {
C_Table.userBalance = C_Table.userBalance_from_server;
}
C_Table.userBalance_from_server = "";
C_Table.crBalance();
}
_root.checkButtons_mc.close();
Conv.put(C_Table, "startNewGame", "10");
};
C_GameCLASS.prototype.compareFinal = function () {
var pl;
var d_Sum;
var p_Sum;
var c = 0;
while (c < this.placesArray.length) {
pl = this.placesArray[c];
d_Sum = this.dealerPlace.sum;
p_Sum = pl.sum;
if (d_Sum == p_Sum) {
Conv.include(pl, "bet_toUser", 0);
Conv.include(pl, "fold", 0);
} else if (d_Sum > p_Sum) {
Conv.include(pl, "loose", 0);
} else {
if (!this.prize) {
Conv.put(_root, "newSound", 1500, "p_wins");
this.prize = true;
}
Conv.include(pl, "prize", 0);
}
c++;
}
Conv.include(this.dealerPlace, "fold", 0);
Conv.put(this, "endGame", "6");
};
C_GameCLASS.prototype.clearNullPlaces = function () {
_root.messageDisplay = "";
var a = 0;
while (a < this.placesArray.length) {
if (this.placesArray[a].bet == 0) {
this.delete_place(a);
a = -1;
}
a++;
}
};
C_GameCLASS.prototype.beginTorg = function () {
var pl;
var c = 0;
while (c < this.placesArray.length) {
pl = this.placesArray[c];
if (!pl.stand) {
break;
}
pl = null;
c++;
}
this.CurPlace = pl;
if (pl) {
if (pl.cards[1] == null) {
if (_level5) {
C_Server.onemore();
} else {
Conv.include(pl, "addCard", 0);
}
} else {
pl.focus();
pl.displayMenu();
}
} else {
Conv.put(this, "dealerDeal", "5", 0);
}
};
C_GameCLASS.prototype.dealerDeal = function (complete) {
if (this.placesArray.length == 0) {
Conv.include(this.dealerPlace, "fold", 0);
Conv.put(this, "endGame", "6");
return(undefined);
}
if ((_level5 && (!complete)) && (!C_Server.gameEnd)) {
C_Server.dealer();
return(undefined);
}
this.dealerPlace.startDeal = true;
this.dealerPlace.addCard();
};
C_GameCLASS.prototype.inshiranse_Dealer = function () {
Conv.put(_root, "newSound", 1700, "ins_aw");
this.clearNullPlaces();
Conv.put(function (o) {
o.insArray = new Array();
var link;
var i = 0;
while (i < o.placesArray.length) {
o.numIns++;
link = o.placesArray[i];
_root[link.name + "_INS_Buttons"]._visible = 1;
_root[link.name + "_INS_Buttons"].link = link;
i++;
}
}, "5", this);
};
C_GameCLASS.prototype.checkBJ_dealer = function () {
Conv.include(this.dealerPlace, "movie_Card_Left", 0);
this.dealerPlace.hideCard = this.deck[0];
this.deck.shift();
var pl;
if ((this.dealerPlace.hideCard[2] + this.dealerPlace.sum) == 21) {
Conv.put(_root, "newSound", 1200, "d_h_bj");
Conv.include(this.dealerPlace, "cardOpenAnim", 0);
Conv.include(this.dealerPlace, "movie_Card_Right", 0);
Conv.put(function (ob) {
ob.display = "Black\rJack";
}, 0, this.dealerPlace.cards[0]);
if (this.insArray.length > 0) {
Conv.put(_root, "newSound", 1400, "ins_pay");
}
var c = 0;
while (c < C_Game.placesArray.length) {
pl = this.placesArray[c];
if (pl.ans > 0) {
Conv.include(pl, "prize_Ans", 0);
}
c++;
}
var c = 0;
while (c < this.placesArray.length) {
pl = C_Game.placesArray[c];
if (pl.bj) {
Conv.put(_root, "newSound", 1500, "p_h_bj");
Conv.include(pl, "bet_toUser", 0);
Conv.include(pl, "fold", 0);
} else {
Conv.include(pl, "loose", 0);
}
c++;
}
Conv.include(this.dealerPlace, "fold", 0);
Conv.put(this, "endGame", 0);
} else {
Conv.put(_root, "newSound", 1700, "d_n_bj");
Conv.include(this.dealerPlace, "movie_Card_Right", 0, true);
if (this.insArray.length > 0) {
Conv.put(_root, "newSound", 1800, "ins_d_pay");
var c = 0;
while (c < this.placesArray.length) {
pl = this.placesArray[c];
if (pl.ans > 0) {
Conv.include(pl, "loose_Ans", 0);
}
c++;
}
}
Conv.include(this, "checkBJ_player", "5");
if (_level5) {
this.dealerPlace.hideCard = null;
}
}
};
C_GameCLASS.prototype.checkBJ_player = function () {
var pl;
var c = 0;
while (c < this.placesArray.length) {
pl = this.placesArray[c];
if (pl.bj) {
Conv.put(_root, "newSound", 1500, "p_h_bj");
Conv.include(pl, "prize", 0);
}
c++;
}
Conv.put(C_Game, "clearNullPlaces", 0);
Conv.put(C_Game, "beginTorg", 0);
};
C_GameCLASS.prototype.delete_place = function (p) {
this.placesArray[p].del();
this.placesArray.splice(p, 1);
};
C_GameCLASS.prototype.ClearPlaces = function () {
var i = 0;
while (i < this.placesArray.length) {
this.placesArray[i].del();
delete this.placesArray[i];
i++;
}
this.dealerPlace.del;
delete this.dealerPlace;
};
C_GameCLASS.prototype.resetMenu = function () {
_root.checkButtons_mc.showMenu([0, 0, 0, 0]);
};
_global.C_PlaceCLASS = function (place) {
this.name = place;
this.sum = 0;
this.numCard = 0;
this.firstCard = this.creatFirstCard();
this.position = place.substr(4, 1);
this.stand = false;
place = place.substr(0, 5);
this.cardOffcet = _root[place + "_Offset"];
this.chPlace = attachMovie("C_ChipsCLASS", "betchPL_" + this.name.substr(4), 1000 + (C_Game.placesDepth++));
this.chPlace.align(_root[place + "_ch"]);
_root[place + "_prize"].duplicateMovieClip("prizeChPL_" + this.name.substr(4), 7500 + C_Game.placesDepth);
this.prizePl = _root["prizeChPL_" + this.name.substr(4)];
this.ansPlace = attachMovie("C_ChipsCLASS", "ansChPL_" + this.name.substr(4), 1000 - C_Game.placesDepth);
this.ansPlace.align(_root[place + "_ans"]);
this.split = (place.substr(-1) != "a") && (place.substr(-1) != "b");
if (this.name != "c_d") {
_root["pla_" + this.name.substr(4)] = this;
} else {
_root.dealer = this;
}
this.cards = new Array();
this.ans = 0;
this.bet = 0;
};
C_PlaceCLASS.prototype = new Object();
C_PlaceCLASS.prototype.del = function (s) {
this.betChips.removeMovieClip();
this.chprize_Ans.removeMovieClip();
this.prizePl.removeMovieClip();
if (s != "split") {
var i = 0;
while (i < this.cards.length) {
this.cards[i].removeMovieClip();
i++;
}
}
this.chPlace.removeMovieClip();
this.ansPlace.removeMovieClip();
delete _root[this.name + "_a"];
};
C_PlaceCLASS.prototype.splitPlace = function () {
this.blur();
this.cards[0].display = "";
var a = new C_PlaceCLASS(this.name + "_a");
var b = new C_PlaceCLASS(this.name + "_b");
a.Cards[0] = this.cards[1];
b.Cards[0] = this.cards[0];
a.bet = this.bet;
var i = 0;
while (i < C_Game.placesArray.length) {
if (C_Game.placesArray[i].name == this.name) {
var p = i;
}
i++;
}
C_Game.placesArray[p].del("split");
C_Game.placesArray.splice(p, 1, a, b);
var ob1 = C_Game.placesArray[p].cards[0];
var ob2 = C_Game.placesArray[p + 1].cards[0];
var obj_1 = C_Game.placesArray[p];
var obj_2 = C_Game.placesArray[p + 1];
obj_1.splited = true;
obj_2.splited = true;
if (ob2.sum == 1) {
ob2.sum = 11;
}
var n = C_Game.placesArray[p].name.substr(4, 1);
var endArray = _root["split_" + n];
var end_1_x = endArray[1][0];
var end_1_y = endArray[1][1];
var end_2_x = endArray[0][0];
var end_2_y = endArray[0][1];
var x_1 = (int(((end_1_x - ob1._x) / 4) * 100) / 100);
var y_1 = (int(((end_1_y - ob1._y) / 4) * 100) / 100);
var x_2 = (int(((end_2_x - ob2._x) / 4) * 100) / 100);
var y_2 = (int(((end_2_y - ob2._y) / 4) * 100) / 100);
var obArr = [[ob1, ob2], [obj_1.chPlace, obj_2.chPlace], [obj_1.prizePl, obj_2.prizePl]];
var i = 1;
while (i <= 4) {
Conv.put(function (obArr, x_1, y_1, x_2, y_2) {
var i = 0;
while (i < obArr.length) {
obArr[i][0]._x = obArr[i][0]._x + x_1;
obArr[i][0]._y = obArr[i][0]._y + y_1;
obArr[i][1]._x = obArr[i][1]._x + x_2;
obArr[i][1]._y = obArr[i][1]._y + y_2;
i++;
}
}, "2", obArr, x_1, y_1, x_2, y_2);
i++;
}
Conv.put(function (a, b) {
a.display = a.sum;
b.display = b.sum;
}, "2", ob1, ob2);
Conv.put(obj_1, "creatChips", "5", obj_1.bet);
Conv.put(obj_2, "creatChips", "5", obj_1.bet);
if (C_Table.turbo) {
return(undefined);
}
if (ob1.sum == 11) {
Conv.include(obj_1, "addCard", 0);
Conv.include(obj_2, "addCard", 0);
obj_1.stand = true;
obj_2.stand = true;
Conv.put(C_Game, "beginTorg", "2");
} else {
Conv.include(obj_1, "addCard", 0);
}
};
C_PlaceCLASS.prototype.displayMenu = function () {
var b = [1, 1, 1, 1];
b[0] = (((this.numCard == 2) && (this.cards[0].sum == this.cards[1].sum)) || ((this.cards[0].sumA == 11) && (this.numCard == 2))) && (!this.splited);
b[3] = (this.numCard == 2) && (!this.splited);
_root.checkButtons_mc.showMenu(b);
};
C_PlaceCLASS.prototype.display_Sum = function () {
this.creat_Sum();
var disp;
if (((this.sum == 21) && (this.cards.length == 2)) && (!this.splited)) {
disp = "Black\rJack";
this.bj = true;
Conv.put(_root, "newSound", 600, "s_21");
} else if (this.sum > 21) {
var i = 0;
while (i < this.cards.length) {
if (this.cards[i].sum == 11) {
this.sum = this.sum - 10;
this.cards[i].sum = 1;
this.cards[i].sumA = 11;
break;
}
i++;
}
if (this.sum > 21) {
disp = this.sum + "\rBust";
this.bust();
} else {
disp = this.sum;
Conv.put(_root, "newSound", 600, "s_" + this.sum);
}
} else {
disp = this.sum;
Conv.put(_root, "newSound", 700, "s_" + this.sum);
}
if (((this.name != "c_d") && (this.sum <= 21)) && ((!this.stand) || (this.doubleFlag))) {
if ((this.splited && (this.numCard == 2)) && (this.cards[0].sum != 11)) {
if (this.sum == 21) {
this.stand = true;
}
if (!C_Table.turbo) {
Conv.put(C_Game, "beginTorg", 0);
}
} else if (this.numCard > 2) {
if (this.sum == 21) {
this.stand = true;
}
if (!C_Table.turbo) {
Conv.put(C_Game, "beginTorg", 0);
}
}
}
if (((this.numCard == 2) && (this.name == "c_d")) && (!this.startDeal)) {
if ((disp == 10) && (!C_Table.turbo)) {
Conv.include(C_Game, "checkBJ_dealer", 0);
} else if ((disp == 11) && (!(C_Table.insur_Limit && (C_Table.turbo)))) {
Conv.include(C_Game, "inshiranse_Dealer", 0);
} else if (!this.bj) {
Conv.include(C_Game, "checkBJ_player", 0);
}
}
if (((this.sum <= 21) && (this.name == "c_d")) && (this.startDeal)) {
if (this.sum < 17) {
Conv.include(this, "addCard", 0);
} else {
Conv.include(C_Game, "compareFinal", 0);
}
}
if (((this.sum < 21) && (this.sum > 11)) && (((this.splited + this.cards[0].sum) == 11) != 2)) {
var i = 0;
while (i < this.cards.length) {
if (this.cards[i].sum == 11) {
disp = disp + ("\r/" + (this.sum - 10));
break;
}
i++;
}
}
this.cards[0].display = disp;
};
C_PlaceCLASS.prototype.creat_Sum = function () {
this.sum = 0;
var i = 0;
while (i < this.cards.length) {
this.sum = this.sum + this.cards[i].sum;
i++;
}
return(this.sum);
};
C_PlaceCLASS.prototype.addChips = function () {
_root.messageDisplay = "";
if (C_Table.userBalance < C_Table.curBet) {
return(undefined);
}
var bet = (this.bet + C_Table.curBet);
if (bet < C_Table.minbet) {
if (C_Table.curBet > 0) {
bet = C_Table.minbet;
_root.messageDisplay = ("The minimum bet here is $" + C_Table.minbet) + "\r";
if (C_Table.minbet > C_Table.userBalance) {
return(undefined);
}
} else {
bet = 0;
}
}
if (bet > C_Table.maxbet) {
if (this.bet == C_Table.maxbet) {
this.showAltWarning("The maximum bet here is $" + C_Table.maxbet);
return(undefined);
}
bet = C_Table.maxbet;
}
if ((C_Table.getAllBets() + C_Table.curBet) > C_Table.maxBetOnTable) {
this.showAltWarning("The table maximum is $" + C_Table.maxBetOnTable);
return(undefined);
}
C_Table.userBalance = C_Table.userBalance - (bet - this.bet);
this.bet = bet;
if (C_Table.userBalance < 0) {
this.bet = this.bet + C_Table.userBalance;
C_Table.userBalance = 0;
}
this.betChips = this.chPlace.setBet(this.bet);
C_Table.crBalance();
};
C_PlaceCLASS.prototype.showAltWarning = function (text) {
Mouse.showAlt(text);
};
C_PlaceCLASS.prototype.creatChips = function (bet, del, upd) {
if (((!upd) && (!del)) && (C_Table.userBalance < bet)) {
return(undefined);
}
this.betChips = this.chPlace.setBet(bet, false, del || (upd));
if ((!upd) && (!del)) {
C_Table.userBalance = C_Table.userBalance - (bet - this.bet);
}
this.bet = bet;
if (!del) {
C_Table.crBalance();
}
};
C_PlaceCLASS.prototype.prize = function () {
if (!this.bj) {
this.prizeMoney = this.bet;
} else {
this.prizeMoney = (this.bet / 2) * 3;
}
this.chPrize = _root.chDl_0.setBet(this.prizeMoney, 0);
this.chPrize.__depth = this.chPrize.getDepth();
this.chPrize.swapDepths(6000);
Conv.put(empty, "4");
Conv.anim(this.chPrize, this.prizePl, {speed:10, to_end:1});
Conv.include(this, "bet_toUser", 0);
Conv.include(this, "prize_toUser", 0);
Conv.include(this, "fold", 0);
};
C_PlaceCLASS.prototype.loose = function () {
Conv.anim(this.betChips, _root.chDl_0);
Conv.put(this.betChips, "removeMovieClip", "1");
Conv.include(this, "fold", 0);
Conv.put(this, "creatChips", "4", 0, 1);
};
C_PlaceCLASS.prototype.prize_toUser = function () {
Conv.anim(this.chPrize, _root.bet_start, {speed:15, to_end:1});
Conv.put(_root.chDl_0, "setBet", 0, 0, 1);
Conv.put(function (ob) {
ob.chPrize.swapDepths(ob.chPrize.__depth);
delete ob.chPrize.__depth;
C_Table.userBalance = C_Table.userBalance + ob.prizeMoney;
C_Table.crBalance();
}, "1", this);
};
C_PlaceCLASS.prototype.bet_toUser = function () {
if (!this.bet) {
return(undefined);
}
Conv.anim(this.betChips, _root.bet_start, {speed:15, to_end:1});
Conv.put(this, "creatChips", 0, 0, 1);
Conv.put(function (ob, bet) {
C_Table.userBalance = C_Table.userBalance + bet;
C_Table.crBalance();
}, "1", this, this.bet);
};
C_PlaceCLASS.prototype.loose_Ans = function () {
Conv.anim(this.chprize_Ans, _root.chDl_0);
Conv.put(this.chprize_Ans, "removeMovieClip", "1");
};
C_PlaceCLASS.prototype.bust = function () {
if (this.name != "c_d") {
Conv.put(_root, "newSound", 800, "p_bust");
Conv.include(this, "loose", 0);
Conv.put(C_Game, "clearNullPlaces", 0);
Conv.put(C_Game, "beginTorg", 0);
} else {
Conv.put(_root, "newSound", 1100, "d_bust");
var c = 0;
while (c < C_Game.placesArray.length) {
Conv.include(C_Game.placesArray[c], "prize", 0);
c++;
}
Conv.put(C_Game.dealerPlace, "fold", 0);
Conv.put(C_Game, "endGame", "6");
}
};
C_PlaceCLASS.prototype.prize_Ans = function () {
this.prize_AnsMoney = this.bet;
this.chprize_Ans = _root.chDl_0.setBet(this.prize_AnsMoney, 0);
Conv.put(empty, "4");
Conv.anim(this.chprize_Ans, this.ansPlace, {speed:10});
Conv.put(_root.chDl_0, "setBet", 0, 0, 1);
Conv.put(function (ob) {
ob.ans = ob.ans * 3;
}, 0, this);
Conv.include(this, "creatAns", 0, true);
Conv.include(function (ob) {
Conv.anim(ob.chprize_Ans, _root.bet_start, {speed:10, to_end:1});
}, 0, this);
Conv.put(function (ob) {
ob.chprize_Ans.removeMovieClip();
C_Table.userBalance = C_Table.userBalance + ob.ans;
C_Table.crBalance();
}, "1", this);
};
C_PlaceCLASS.prototype.creatAns = function (upd) {
if ((!upd) && (C_Table.userBalance < (this.bet / 2))) {
_root.messageDisplay = "Not enough money for insurance.";
this.insuranceChecked = 0;
C_Game.insArray.trim([this]);
return(undefined);
}
if (!upd) {
this.ans = this.bet / 2;
}
Conv.put(function (ob, upd) {
ob.chprize_Ans = ob.ansPlace.setBet(ob.ans, 0, upd);
if (!upd) {
ob.chprize_Ans.align(_root.bet_start);
}
}, 0, this, upd);
if (!upd) {
Conv.include(function (ob) {
Conv.anim(ob.chprize_Ans, ob.ansPlace, {to_end:true, speed:10});
}, 0, this);
}
if (!upd) {
C_Table.userBalance = C_Table.userBalance - this.ans;
}
if (!upd) {
C_Table.crBalance();
}
};
C_PlaceCLASS.prototype.movie_Card_Left = function () {
this.display_bk = this.cards[0].display;
this.cards[0].display = "";
var i = 1;
while (i <= 6) {
Conv.put(this.cards[0], "AnimToPlace", "1", this.firstCard[0], this.firstCard[0] - 30, 6, i, "_x");
i++;
}
Conv.put(this.cards[0], "swapDepths", 0, _root.anim_depth);
Conv.put(function (mc) {
mc.hide();
var mc_new = _root.attachMovie("dealer_card_open_#1", "dealer_card_open_#1", 7771);
mc_new.align(mc);
}, "2", this.cards[0]);
Conv.include(function (mc) {
_root["dealer_card_open_#1"].removeMovieClip();
var mc_new = _root.attachMovie("dealer_card_open_#2", "dealer_card_open_#2", 7771);
mc_new.align(mc);
Conv.put(_root, "newSound", 1500, "d_ch_bj");
}, 0, this.cards[0]);
Conv.include(function (mc) {
_root["dealer_card_open_#2"].removeMovieClip();
var mc_new = _root.attachMovie("dealer_card_open_#1", "dealer_card_open_#1", 7771);
mc_new.align(mc);
Conv.put(mc_new, "removeMovieClip", 0);
}, "2", this.cards[0]);
Conv.put(this.cards[0], "show", "2");
};
C_PlaceCLASS.prototype.movie_Card_Right = function (r) {
Conv.put(this.cards[0], "swapDepths", 0, _root.anim_depth);
var i = 1;
while (i <= 6) {
Conv.put(this.cards[0], "AnimToPlace", "1", this.cards[0]._x, this.firstCard[0], 6, i, "_x");
i++;
}
if (r) {
Conv.put(function (ob) {
ob.cards[0].display = ob.display_bk;
}, 0, this);
}
};
C_PlaceCLASS.prototype.addCard = function () {
if (((this.name == "c_d") && (this.numCard == 2)) && (!this.card_first_open)) {
this.cards[0].display = "";
this.card_first_open = true;
var i = 1;
while (i <= 6) {
if (C_Table.turbo) {
i = 6;
}
Conv.put(this.cards[0], "AnimToPlace", "1", this.firstCard[0], this.firstCard[0] - 30, 6, i, "_x");
i++;
}
Conv.put(this.cards[0], "swapDepths", 0, _root.anim_depth);
Conv.include(this, "cardOpenAnim", 0, this.cards[0], this.cards[0].card);
Conv.include(this, "movie_Card_Right", 0);
Conv.include(this, "display_Sum", 0);
return(undefined);
}
var place = this.name.substr(0, 5);
this.numCard = this.cards.length;
var name = ((this.name + "_") + (this.numCard + 1));
var nameLibr = place;
if (this.numCard == 0) {
start_x = this.firstCard[0];
start_y = this.firstCard[1];
} else {
start_x = this.cards[0]._x;
start_y = this.cards[0]._y;
this.firstCard[0] = this.cards[0]._x;
this.firstCard[1] = this.cards[0]._y;
}
var finish_x = (start_x + (this.numCard * this.cardOffcet[0]));
var finish_y = (start_y + (this.numCard * this.cardOffcet[1]));
var depth = ((_root[place + "_d"] + this.numCard) + 1);
if (this.name.substr(-2) == "_a") {
depth = depth + 50;
if (this.numCard == 1) {
this.cards[0].swapDepths(depth - 2);
}
}
var ob = _root.attachMovie(nameLibr, name, 5000 + depth);
ob.movieTo(start_x, start_y);
this.cards.push(ob);
ob.linkObj = this;
this.numCard = this.cards.length;
var card_anim = ob.card;
card_anim.stop();
var first_frames = 4;
var card_movie_frames = card_anim._totalframes;
var card_open_frames = 0;
var i = 1;
while (i <= first_frames) {
if (C_Table.turbo) {
i = first_frames;
}
Conv.put(card_anim, "gotoAndStop", "1", i);
i++;
}
var ob_root = ob.top();
var i = (first_frames + 1);
while (i <= card_movie_frames) {
if (C_Table.turbo) {
i = card_movie_frames;
}
Conv.put(ob, "AnimToPlace", 0, start_x, finish_x, card_movie_frames - 5, i - 4, "_x");
Conv.put(ob, "AnimToPlace", 0, start_y, finish_y, card_movie_frames - 5, i - 4, "_y");
Conv.put(card_anim, "gotoAndStop", "1", i);
i++;
}
if (!((this.name == "c_d") && (this.numCard == 1))) {
Conv.include(this, "cardOpenAnim", 0, ob, card_anim);
Conv.put(ob, "swapDepths", 0, depth);
Conv.include(this, "display_Sum", 0);
} else {
Conv.put(ob, "swapDepths", 0, depth);
}
};
C_PlaceCLASS.prototype.cardOpenAnim = function (card_anim, prev_Card) {
var card_param;
if (this.hideCard != null) {
card_param = this.hideCard;
this.hideCard = null;
card_anim = this.cards[0];
prev_Card = this.cards[0].card;
} else {
card_param = C_Game.deck[0];
C_Game.deck.shift();
C_Server.card_change_number--;
}
var card_name = ((("c_" + card_param[1]) + "_") + card_param[0]);
card_anim.sum = card_param[2];
var new_card = card_anim.attachMovie("card_Open_Symbol", "card_Real", 100);
new_card.copy(prev_Card);
prev_Card.hide();
new_card.stop();
var i = 1;
while (i <= 6) {
if (C_Table.turbo) {
i = 6;
}
Conv.put(new_card, "gotoAndStop", "1", i);
i++;
}
Conv.put(function (ob, name) {
var c = ob.card_for_change.attachMovie(name, "open_card", 100);
c.border_mc.copyColor(_root.white_mc);
}, "1", new_card, card_name);
var i = 7;
while (i < 10) {
if (C_Table.turbo) {
i = 9;
}
Conv.put(new_card, "gotoAndStop", "1", i);
i++;
}
Conv.put(function (ob) {
ob.gotoAndStop(10);
ob.card_for_change.open_card.blue_border._alpha = 100;
ob.card_for_change.open_card.border_mc.copyColor(_root);
}, "1", new_card);
};
C_PlaceCLASS.prototype.creatFirstCard = function () {
var place = this.name;
var ofs = 40;
if (place.substr(-1) == "a") {
place = place.substr(0, place.length - 2);
var arr = [_root[place + "_Places"][0] - ofs, _root[place + "_Places"][1]];
} else if (place.substr(-1) == "b") {
place = place.substr(0, place.length - 2);
var arr = [_root[place + "_Places"][0] + ofs, _root[place + "_Places"][1]];
} else {
var arr = [_root[place + "_Places"][0], _root[place + "_Places"][1]];
}
return(arr);
};
C_PlaceCLASS.prototype.focus = function () {
if ((C_Game.placesArray.length == 1) || (this.focused)) {
return(undefined);
}
this.focused = true;
var tmp;
var i = 0;
while (i < this.cards.length) {
var tmp = _root.attachMovie("orial_" + this.position, this.cards[i]._name + "_oreal", 10 + (this.oreal++));
tmp._x = this.cards[i]._x;
tmp._y = this.cards[i]._y;
i++;
}
};
C_PlaceCLASS.prototype.blur = function () {
var tmp;
if (!this.focused) {
return(undefined);
}
this.focused = false;
var i = 0;
while (i < this.cards.length) {
_root[this.cards[i]._name + "_oreal"].removeMovieClip();
i++;
}
this.oreal = 0;
};
C_PlaceCLASS.prototype.fold = function () {
var xOffset;
var yOffset;
Conv.put(function (ob) {
ob.display = "";
}, 0, this.cards[0]);
var c = 0;
while (c < 3) {
var i = 1;
while (i < this.cards.length) {
xOffset = -1 * ((this.cards[i]._x - this.firstCard[0]) / 3);
yOffset = -1 * ((this.cards[i]._y - this.firstCard[1]) / 3);
Conv.put(this.cards[i], "movieBy", 0, xOffset, yOffset);
i++;
}
Conv.put(empty, "1");
c++;
}
Conv.put(function (c) {
var card = _root.attachMovie("c_Back", "backTmp", 2000);
card.copy(c[0].card, ["_rotation", "_width", "_height"]);
card.copy(c[0], ["_x", "_y"]);
var i = 0;
while (i < c.length) {
c[i].removeMovieClip();
i++;
}
}, 0, this.cards);
Conv.put(_root, "newSound", "1", "cards_2");
Conv.include(function () {
var c = _root.backTmp;
var xs_start = c._xscale;
var ys_start = c._yscale;
var x = c._x;
var y = c._y;
var i = 1;
while (i <= 6) {
Conv.put(function (c, x, y, xs_start, ys_start, step) {
c.AnimToPlace(x, _root.CardPoint._x, 6, step, "_x");
c.AnimToPlace(y, _root.CardPoint._y, 6, step, "_y");
c._rotation = c._rotation + 45;
c.AnimToPlace(xs_start, xs_start / 2, 6, step, "_xscale");
c.AnimToPlace(ys_start, ys_start / 2, 6, step, "_yscale");
}, "1", c, x, y, xs_start, ys_start, i);
i++;
}
Conv.put(c, "removeMovieClip", "1");
}, 0);
};
var o = {};
o.onSplit = function () {
var pl = C_Game.CurPlace;
if (C_Table.userBalance < pl.bet) {
_root.messageDisplay = "Not enough money for split.";
return(undefined);
}
C_Game.resetMenu();
if (_level5) {
C_Server.split();
} else {
C_Game.CurPlace.splitPlace();
}
};
o.onDouble = function () {
var pl = C_Game.CurPlace;
if (C_Table.userBalance < pl.bet) {
_root.messageDisplay = "Not enough money for double.";
return(undefined);
}
pl.stand = true;
pl.doubleFlag = true;
C_Game.resetMenu();
Conv.put(pl, "creatChips", "5", pl.bet * 2);
Conv.put(this, "onHit", "2", true);
};
o.onHit = function (double) {
C_Game.resetMenu();
C_Game.CurPlace.blur();
if (_level5 && (!double)) {
C_Server.onemore();
} else if (_level5 && (double)) {
C_Server.double();
} else {
Conv.include(C_Game.CurPlace, "addCard", 0);
}
};
o.onDeal = function () {
var test;
var a = 0;
while (a < C_Game.placesArray.length) {
C_Table.repeatArray[a] = C_Game.placesArray[a].bet;
test = test + (C_Game.placesArray[a].bet != 0);
a++;
}
if (test == 0) {
return(undefined);
}
C_Game.resetMenu();
var i = 1;
while (i <= 3) {
_root[("p" + i) + "_btn"]._visible = 0;
i++;
}
C_Table.gStep++;
C_Game.clearNullPlaces();
if (_level5) {
C_Server.getcards();
} else {
var n = 0;
while (n < 2) {
var a = 0;
while (a < C_Game.placesArray.length) {
Conv.include(C_Game.placesArray[a], "addCard", 0);
a++;
}
Conv.include(C_Game.dealerPlace, "addCard", 0);
n++;
}
}
};
o.onClear = function () {
C_Game.lock();
_root.checkButtons_mc.showDealButtons();
_root.checkButtons_mc.close();
Conv.put(empty, "5");
var i = 0;
while (i < C_Game.placesArray.length) {
C_Game.placesArray[i].bet_toUser();
i++;
}
Conv.put(C_Game, "unlock", 0);
C_Game.begin = false;
};
o.onStand = function () {
var pl = C_Game.CurPlace;
pl.stand = true;
C_Game.resetMenu();
pl.blur();
C_Game.beginTorg();
};
_root.checkButtons_mc.addListener(o);
delete o;
c_d_d = 100;
c_p_2_d = 300;
c_p_1_d = 500;
c_p_3_d = 700;
c_p_1_Places = [313.65, 224.15];
c_p_2_Places = [389.35, 208.6];
c_p_3_Places = [231.2, 207.25];
c_d_Places = [305.3, 149.05];
c_p_1_Offset = [8.8, 3.5];
c_p_2_Offset = [10.39, 2.44];
c_p_3_Offset = [6.69, 7.55];
c_d_Offset = [9.44, 0];
split_1 = [[286.45, 224.15], [340.2, 225.5]];
split_2 = [[389.35, 208.6], [449.65, 187.65]];
split_3 = [[183.65, 188.2], [231.2, 207.25]];
ASSetPropFlags(_global, "C_Place,C_PlaceCLASS,C_Game,C_GameCLASS,C_Table,C_TableCLASS", 131);
_global.C_Table = new C_TableCLASS();
C_Table.startNewGame();
last_update = "Last Update: 01.08.2001 21:09";
if (SharedObject.getLocal("game_config").data.serverOn) {
_root._visible = 0;
}
this.stop();
Instance of Symbol 360 MovieClip [C_ChipsCLASS] "chDl_0" in Frame 1
//component parameters
onClipEvent (initialize) {
bet = 0;
noSound = false;
}
Instance of Symbol 397 MovieClip "sChtarg" in Frame 1
//component parameters
onClipEvent (initialize) {
RandomViz = 0;
}
onClipEvent (load) {
function stChips() {
var colH = 20;
var thTarg = this;
var colNum = 6;
var thRan;
var curChip;
var chTmp;
var endChip;
var thDepth;
i = 1;
while (i <= colNum) {
thRan = Math.floor((Math.random() * colH) / 2) + (colH / 3);
curChip = thTarg["sCh_" + i];
endChip = thTarg[("sCh_" + i) + "_"];
ii = 1;
while (ii <= thRan) {
thDepth++;
curChip.duplicateMovieClip("ch_" + thDepth, thDepth);
chTmp = thTarg["ch_" + thDepth];
AnimToPlace(chTmp, curChip._x, endChip._x, colH, ii, "_x");
AnimToPlace(chTmp, curChip._y, endChip._y, colH, ii, "_y");
chTmp.chSh._visible = 0;
chTmp.chNum._rotation = chTmp.chNum._rotation + 180;
ii++;
}
endChip._visible = 0;
i++;
}
}
function AnimToPlace(Targ, StartA, FinishA, Steps, CurrStep, XY) {
Targ[XY] = StartA + (((FinishA - StartA) / Steps) * CurrStep);
}
stChips();
delete stChips;
delete AnimToPlace;
}
Instance of Symbol 355 MovieClip [C_BalanceMashine] "balanceMashine_mc" in Frame 1
//component parameters
onClipEvent (initialize) {
_balance = 0;
}
Instance of Symbol 412 MovieClip "min_max_Menu_mc" in Frame 1
//component parameters
onClipEvent (initialize) {
min = "5.00";
max = "100.00";
}
Instance of Symbol 336 MovieClip [C_ChipsMenuCLASS] "chipsMenu_mc" in Frame 1
//component parameters
onClipEvent (initialize) {
curBet = 5;
}
Instance of Symbol 313 MovieClip [C_ButtonCheckCLASS] "checkButtons_mc" in Frame 1
//component parameters
onClipEvent (initialize) {
varName = "defaultValue";
}
Instance of Symbol 294 MovieClip [C_InshureMenusCLASS] "c_p_1_INS_Buttons" in Frame 1
//component parameters
onClipEvent (initialize) {
startDepth = 7000;
numMenu = 1;
}
Instance of Symbol 294 MovieClip [C_InshureMenusCLASS] "c_p_2_INS_Buttons" in Frame 1
//component parameters
onClipEvent (initialize) {
startDepth = 7000;
numMenu = 0;
}
Instance of Symbol 294 MovieClip [C_InshureMenusCLASS] "c_p_3_INS_Buttons" in Frame 1
//component parameters
onClipEvent (initialize) {
startDepth = 7000;
numMenu = 2;
}
Instance of Symbol 288 MovieClip [C_GamesOpenMenuCLASS] "cashierMenu_mc" in Frame 1
//component parameters
onClipEvent (initialize) {
configPath = "games_menu.xml";
}
Instance of Symbol 284 MovieClip [C_RulesOpenMenuCLASS] "rulesButton_mc" in Frame 1
//component parameters
onClipEvent (initialize) {
configPath = "rules.xml";
}
Instance of Symbol 280 MovieClip [C_BackToSiteButtonCLASS] "backButtonMenu_mc" in Frame 1
//component parameters
onClipEvent (initialize) {
configPath = "../back_to_site.xml";
}
Symbol 44 MovieClip Frame 1
this.stop();
Symbol 44 MovieClip Frame 2
this.stop();
Symbol 59 Button
on (release) {
JS.call("open_feedback()");
}
Symbol 81 MovieClip [C_CashierMenuCLASS] Frame 1
#initclip 10
_global.C_CashierMenuCLASS = function () {
this.init();
};
C_CashierMenuCLASS.prototype = new MovieClip();
C_CashierMenuCLASS.prototype.init = function () {
this.stop();
this.setModel();
};
C_CashierMenuCLASS.prototype.setModel = function (model) {
if (model != undefined) {
this.model = model;
}
this.gotoAndStop(1);
this.label_mc.gotoAndStop(this.model);
if (this.model == "standart") {
this.open_cashier_btn.onRelease = function () {
this._parent.openMenu();
};
} else if (this.model == "delegates") {
if (!this.lc) {
this.lc = new LocalConnection();
lc.connect("cashierMenu");
}
this.open_cashier_btn.onRelease = function () {
this._parent.lc.send("game", "cashOut");
};
}
};
C_CashierMenuCLASS.prototype.openMenu = function () {
this.gotoAndStop(2);
this.close_btn.onRollOver = function () {
this._parent.setModel();
};
this.back_btn.onRollOver = function () {
};
this.back_btn.useHandCursor = false;
var a = ["deposit", "withdraw", "history"];
var b;
var i = 0;
while (i < a.length) {
b = this[a[i] + "_btn"];
b.name = a[i];
b.onRelease = function () {
this._parent.openCashier(this.name);
};
i++;
}
};
C_CashierMenuCLASS.prototype.openCashier = function (type) {
JS.call(("open_cashier('" + type) + "');");
this.setModel();
};
ASSetPropFlags(_global, "C_CashierMenuCLASS", 131);
Object.registerClass("C_CashierMenuCLASS", C_CashierMenuCLASS);
#endinitclip
Symbol 234 MovieClip [C_CardsCLASS] Frame 1
#initclip 1
_global.C_CardsCLASS = function () {
this.init();
};
C_CardsCLASS.prototype = new MovieClip();
C_CardsCLASS.prototype.init = function () {
this.card_2S = "Spades_2";
this.card_3S = "Spades_3";
this.card_4S = "Spades_4";
this.card_5S = "Spades_5";
this.card_6S = "Spades_6";
this.card_7S = "Spades_7";
this.card_8S = "Spades_8";
this.card_9S = "Spades_9";
this.card_10S = "Spades_10";
this.card_JS = "Spades_J";
this.card_QS = "Spades_Q";
this.card_KS = "Spades_K";
this.card_AS = "Spades_A";
this.card_2D = "Diamonds_2";
this.card_3D = "Diamonds_3";
this.card_4D = "Diamonds_4";
this.card_5D = "Diamonds_5";
this.card_6D = "Diamonds_6";
this.card_7D = "Diamonds_7";
this.card_8D = "Diamonds_8";
this.card_9D = "Diamonds_9";
this.card_10D = "Diamonds_10";
this.card_JD = "Diamonds_J";
this.card_QD = "Diamonds_Q";
this.card_KD = "Diamonds_K";
this.card_AD = "Diamonds_A";
this.card_2H = "Hearts_2";
this.card_3H = "Hearts_3";
this.card_4H = "Hearts_4";
this.card_5H = "Hearts_5";
this.card_6H = "Hearts_6";
this.card_7H = "Hearts_7";
this.card_8H = "Hearts_8";
this.card_9H = "Hearts_9";
this.card_10H = "Hearts_10";
this.card_JH = "Hearts_J";
this.card_QH = "Hearts_Q";
this.card_KH = "Hearts_K";
this.card_AH = "Hearts_A";
this.card_2C = "Clubs_2";
this.card_3C = "Clubs_3";
this.card_4C = "Clubs_4";
this.card_5C = "Clubs_5";
this.card_6C = "Clubs_6";
this.card_7C = "Clubs_7";
this.card_8C = "Clubs_8";
this.card_9C = "Clubs_9";
this.card_10C = "Clubs_10";
this.card_JC = "Clubs_J";
this.card_QC = "Clubs_Q";
this.card_KC = "Clubs_K";
this.card_AC = "Clubs_A";
this.card_FF = "Back";
};
C_CardsCLASS.prototype.trans = function (card) {
return(this["card_" + card]);
};
Object.registerClass("C_CardsCLASS", C_CardsCLASS);
_global.C_Cards = new C_CardsCLASS();
ASSetPropFlags(_global, "C_CardsCLASS,C_Cards", 131);
#endinitclip
Symbol 259 MovieClip Frame 2
_root.card_start.play();
Symbol 261 MovieClip Frame 2
_root.card_start.play();
Symbol 261 MovieClip Frame 4
_parent.chPrize.swapDepths(_root.anim_depth);
Symbol 263 MovieClip Frame 2
_root.card_start.play();
Instance of Symbol 263 MovieClip "card" in Symbol 264 MovieClip [c_p_1] Frame 1
/* no clip actions */
Symbol 266 MovieClip Frame 2
_root.card_start.play();
Symbol 280 MovieClip [C_BackToSiteButtonCLASS] Frame 1
#initclip 2
_global.C_BackToSiteButtonCLASS = function () {
this.init();
};
C_BackToSiteButtonCLASS.prototype = new MovieClip();
C_BackToSiteButtonCLASS.prototype.init = function () {
this.back_btn.root = this;
this.back_btn.onRelease = function () {
o = this.root;
getURL (o.url, o.target);
};
this.loadRules();
};
C_BackToSiteButtonCLASS.prototype.loadRules = function () {
var x = new XML();
x.root = this;
x.ignoreWhite = true;
x.onLoad = function (s) {
if (!s) {
trace("\u043C\u0435\u043D\u044E \u043D\u0435 \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u043B\u043E\u0441\u044C!");
}
var o = this.firstChild.attributes;
this.root.url = o.url;
this.root.target = o.target;
};
x.load(this.configPath);
};
Object.registerClass("C_BackToSiteButtonCLASS", C_BackToSiteButtonCLASS);
delete _global.C_BackToSiteButtonCLASS;
#endinitclip
Symbol 284 MovieClip [C_RulesOpenMenuCLASS] Frame 1
#initclip 3
_global.C_RulesOpenMenuCLASS = function () {
this.init();
};
C_RulesOpenMenuCLASS.prototype = new MovieClip();
C_RulesOpenMenuCLASS.prototype.init = function () {
this.rules_btn.root = this;
this.rules_btn.onRelease = function () {
o = this.root;
getURL (o.url, o.target);
};
this.loadRules();
};
C_RulesOpenMenuCLASS.prototype.loadRules = function () {
var x = new XML();
x.root = this;
x.ignoreWhite = true;
x.onLoad = function (s) {
if (!s) {
trace("rules \u043D\u0435 \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u043B\u0438\u0441\u044C!");
}
var o = this.firstChild.attributes;
this.root.url = o.url;
this.root.target = o.target;
};
x.load(this.configPath);
};
Object.registerClass("C_RulesOpenMenuCLASS", C_RulesOpenMenuCLASS);
delete _global.C_RulesOpenMenuCLASS;
#endinitclip
Symbol 288 MovieClip [C_GamesOpenMenuCLASS] Frame 1
#initclip 4
_global.C_GamesOpenMenuCLASS = function () {
this.init();
};
C_GamesOpenMenuCLASS.prototype = new MovieClip();
C_GamesOpenMenuCLASS.prototype.init = function () {
this.swapDepths(this.depthValue || 12120);
var o = this.attachMovie("GameMenu:holder", "holder_mc", 1);
o._x = -39;
o._y = 10;
o._visible = false;
var tf1 = this.holder_mc.text_mc;
var tf2 = this.holder_mc.title_mc;
o = (this.textFormats = {});
o.game = tf1.text_txt.getTextFormat();
o.game_over = tf1.text_txt.getTextFormat();
o.game_over.underline = true;
o.title = tf2.text_txt.getTextFormat();
tf1.removeMovieClip();
tf2.removeMovieClip();
this.loadMenu();
this.openGames_btn.root = this;
this.openGames_btn.onRelease = function () {
this.root.open();
};
};
C_GamesOpenMenuCLASS.prototype.loadMenu = function () {
var x = new XML();
x.root = this;
x.ignoreWhite = true;
x.onLoad = function (s) {
if (!s) {
trace("\u043C\u0435\u043D\u044E \u043D\u0435 \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u043B\u043E\u0441\u044C!");
return(undefined);
}
this.root.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 294 MovieClip [C_InshureMenusCLASS] Frame 1
#initclip 5
_global.C_InshureMenusCLASS = function () {
this.init();
};
C_InshureMenusCLASS.prototype = new MovieClip();
C_InshureMenusCLASS.prototype.init = function () {
this._visible = 0;
this.swapDepths(this.startDepth + (++this.__proto__.__count));
this.OK_btn.onRelease = function () {
this._parent.onButton(true);
};
this.NO_btn.onRelease = function () {
this._parent.onButton(false);
};
};
C_InshureMenusCLASS.prototype.setChangeHandler = function (client) {
this.client = client;
};
C_InshureMenusCLASS.prototype.onButton = function (b) {
this.client.client[this.client.handler](this.link, b);
this._visible = 0;
};
ASSetPropFlags(_global, "C_InshureMenusCLASS", 131);
Object.registerClass("C_InshureMenusCLASS", C_InshureMenusCLASS);
#endinitclip
Symbol 303 Button
on (release) {
this._parent.onButton(this.Action);
}
Symbol 310 MovieClip Frame 1
this.stop();
Symbol 313 MovieClip [C_ButtonCheckCLASS] Frame 1
#initclip 6
_global.C_ButtonCheckCLASS = function () {
this.labels = ["Split", "Hit", "Stand", "Double"];
this.init();
};
C_ButtonCheckCLASS.prototype = new MovieClip();
C_ButtonCheckCLASS.prototype.init = function () {
this.stop();
this.swapDepths(10000);
AsBroadcaster.initialize(this);
};
C_ButtonCheckCLASS.prototype.showDealButtons = function () {
this.gotoAndPlay(2);
var i = 1;
while (i <= 4) {
if ((i != 2) && (i != 3)) {
this["b" + i]._visible = 0;
} else if (i == 2) {
this["b" + i].Action = "Deal";
this["b" + i]._visible = 1;
} else if (i == 3) {
this["b" + i].Action = "Clear";
this["b" + i]._visible = 1;
}
i++;
}
};
C_ButtonCheckCLASS.prototype.showMenu = function (buttons) {
this.gotoAndStop(4);
var i = 1;
while (i <= 4) {
this["b" + i]._visible = 1;
this["b" + i].Action = this.labels[i - 1];
i++;
}
this.b2.gotoAndStop(2 - buttons[1]);
this.b3.gotoAndStop(2 - buttons[2]);
this.b1.gotoAndStop(2 - buttons[0]);
this.b4.gotoAndStop(2 - buttons[3]);
};
C_ButtonCheckCLASS.prototype.onButton = function (action) {
this.broadcastMessage("on" + action);
};
C_ButtonCheckCLASS.prototype.close = function (action) {
this.gotoAndPlay(5);
};
ASSetPropFlags(_global, "C_ButtonCheckCLASS", 131);
Object.registerClass("C_ButtonCheckCLASS", C_ButtonCheckCLASS);
#endinitclip
this.stop();
Instance of Symbol 310 MovieClip "b1" in Symbol 313 MovieClip [C_ButtonCheckCLASS] Frame 2
/* no clip actions */
Symbol 313 MovieClip [C_ButtonCheckCLASS] Frame 4
this.stop();
Symbol 336 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 349 MovieClip Frame 1
this.number_mc.n = this.number_old;
Symbol 349 MovieClip Frame 2
this.number2_mc.n = this.number_new;
Symbol 349 MovieClip Frame 4
this.number2_mc.n = this.number_new;
Symbol 349 MovieClip Frame 5
this.stop();
this._parent.onEvent(this);
Symbol 349 MovieClip Frame 6
this.number2_mc.n = this.number_old;
Symbol 349 MovieClip Frame 8
this.number_mc.n = this.number_new;
Symbol 349 MovieClip Frame 9
this.number_mc.n = this.number_new;
Symbol 349 MovieClip Frame 10
this.stop();
this._parent.onEvent(this);
Symbol 352 MovieClip Frame 1
this.number_mc.n = this.number_old;
Symbol 352 MovieClip Frame 2
this.number2_mc.n = this.number_new;
Symbol 352 MovieClip Frame 6
this.number2_mc.n = this.number_new;
Symbol 352 MovieClip Frame 7
this.stop();
this._parent.onEvent(this);
Symbol 352 MovieClip Frame 8
this.number2_mc.n = this.number_old;
Symbol 352 MovieClip Frame 11
this.number_mc.n = this.number_new;
Symbol 352 MovieClip Frame 12
this.number_mc.n = this.number_new;
Symbol 352 MovieClip Frame 13
this.stop();
this._parent.onEvent(this);
Symbol 355 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 360 MovieClip [C_ChipsCLASS] Frame 1
#initclip 9
_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 358 MovieClip [tmp_Sq] in Symbol 360 MovieClip [C_ChipsCLASS] Frame 1
onClipEvent (load) {
_visible = 0;
}
Symbol 363 MovieClip Frame 1
_visible = 0;
Instance of Symbol 363 MovieClip in Symbol 364 MovieClip Frame 1
onClipEvent (load) {
_visible = 0;
}
Symbol 403 MovieClip Frame 1
this.stop();
Instance of Symbol 403 MovieClip in Symbol 405 MovieClip Frame 1
onClipEvent (load) {
_root.card_start = this;
}
Instance of Symbol 363 MovieClip in Symbol 413 MovieClip Frame 1
onClipEvent (load) {
_visible = 0;
}