Frame 1
function chooseGameEndProcedure() {
if (tKey == undefined) {
tKey = "sjri5jf85jdor560";
}
gameEndSubmitUrl = "http://freeplay.gamedek.com/gameend.aspx";
if (params == undefined) {
myVariables.load("config.txt");
} else {
decryptParams(params);
crypto = 2;
}
}
function t_fLoadGameEnd() {
mcResign.removeMovieClip();
mcGameOver.removeMovieClip();
if (mcGameEnd != undefined) {
mcGameEnd.removeMovieClip();
}
endContainer.createEmptyMovieClip("mcGameEnd", 100);
endContainer.createEmptyMovieClip("mcGameEndBack", 99);
with (endContainer.mcGameEndBack) {
var backColor = 0;
beginFill(backColor, 100);
lineStyle(1, backColor, 100);
moveTo(0, 0);
lineTo(g_numGameWidth, 0);
lineTo(g_numGameWidth, g_numGameHeight);
lineTo(0, g_numGameHeight);
lineTo(0, 0);
endFill();
}
if (freeplayid != undefined) {
downloadURL = downloadURL + affiliateId;
}
var endUrlArray = new Array();
endUrlArray = endURL.split(".");
var subString = endUrlArray[endUrlArray.length - 1];
if ((subString == "aspx") || (subString == "html")) {
getURL (endURL, "_self");
} else {
endContainer.mcGameEnd.loadMovie(endURL, mcGameEnd);
endContainer.playAgain = playAgain;
}
}
function postGameLog() {
if (gameLogEnabled == 1) {
var _local1 = new LoadVars();
var _local2 = TEAEncrypt((("freeplayid=" + freeplayid) + "&gameLog=") + gameLog, tKey);
_local1.params = _local2;
_local1.sendAndLoad(gameEndSubmitUrl, result_lv, "POST");
gameLog = "";
}
}
function addToLog(myAddition) {
if (gameLogEnabled == 1) {
gameLog = gameLog + myAddition;
}
}
function trc(theString) {
trace((theString + ": ") + eval (theString));
}
function TEAEncrypt(src, key) {
var _local2 = charsToLongs(strToChars(src));
var _local9 = charsToLongs(strToChars(key));
var _local7 = _local2.length;
if (_local7 == 0) {
return("");
}
if (_local7 == 1) {
_local2[_local7++] = 0;
}
var _local3 = _local2[_local7 - 1];
var _local4 = _local2[0];
var _local11 = 2654435769;
var _local12 = 4294967295;
var _local5;
var _local8;
var _local10 = Math.floor(6 + (52 / _local7));
var _local6 = 0;
var _local13 = 0;
while ((_local10--) > 0) {
_local6 = _local6 + _local11;
_local6 = _local6 >>> 0;
_local8 = (_local6 >>> 2) & 3;
var _local1 = 0;
while (_local1 < (_local7 - 1)) {
_local4 = _local2[_local1 + 1];
_local5 = (((_local3 >>> 5) ^ (_local4 << 2)) + ((_local4 >>> 3) ^ (_local3 << 4))) ^ ((_local6 ^ _local4) + (_local9[(_local1 & 3) ^ _local8] ^ _local3));
_local5 = _local5 >>> 0;
_local2[_local1] = _local2[_local1] + _local5;
_local2[_local1] = _local2[_local1] >>> 0;
_local3 = _local2[_local1];
_local1++;
}
_local4 = _local2[0];
_local5 = (((_local3 >>> 5) ^ (_local4 << 2)) + ((_local4 >>> 3) ^ (_local3 << 4))) ^ ((_local6 ^ _local4) + (_local9[(_local1 & 3) ^ _local8] ^ _local3));
_local5 = _local5 >>> 0;
_local2[_local7 - 1] = _local2[_local7 - 1] + _local5;
_local2[_local7 - 1] = _local2[_local7 - 1] >>> 0;
_local3 = _local2[_local7 - 1];
}
return(charsToHex(longsToChars(_local2)));
}
function TEADecrypt(src, key) {
var _local4 = charsToLongs(hexToChars(src));
var _local9 = charsToLongs(strToChars(key));
var _local8 = _local4.length;
if (_local8 == 0) {
return("");
}
var _local2 = _local4[_local8 - 1];
var _local3 = _local4[0];
var _local10 = 2654435769;
var _local6;
var _local7;
var _local11 = Math.floor(6 + (52 / _local8));
var _local5 = _local11 * _local10;
while (_local5 != 0) {
_local7 = (_local5 >>> 2) & 3;
var _local1 = _local8 - 1;
while (_local1 > 0) {
_local2 = _local4[_local1 - 1];
_local6 = (((_local2 >>> 5) ^ (_local3 << 2)) + ((_local3 >>> 3) ^ (_local2 << 4))) ^ ((_local5 ^ _local3) + (_local9[(_local1 & 3) ^ _local7] ^ _local2));
_local3 = (_local4[_local1] = _local4[_local1] - _local6);
_local1--;
}
_local2 = _local4[_local8 - 1];
_local6 = (((_local2 >>> 5) ^ (_local3 << 2)) + ((_local3 >>> 3) ^ (_local2 << 4))) ^ ((_local5 ^ _local3) + (_local9[(_local1 & 3) ^ _local7] ^ _local2));
_local3 = (_local4[0] = _local4[0] - _local6);
_local5 = _local5 - _local10;
}
return(charsToStr(longsToChars(_local4)));
}
function charsToLongs(chars) {
var _local3 = new Array(Math.ceil(chars.length / 4));
var _local1 = 0;
while (_local1 < _local3.length) {
_local3[_local1] = ((chars[_local1 * 4] + (chars[(_local1 * 4) + 1] << 8)) + (chars[(_local1 * 4) + 2] << 16)) + (chars[(_local1 * 4) + 3] << 24);
_local1++;
}
return(_local3);
}
function longsToChars(longs) {
var _local3 = new Array();
var _local1 = 0;
while (_local1 < longs.length) {
_local3.push(longs[_local1] & 255, (longs[_local1] >>> 8) & 255, (longs[_local1] >>> 16) & 255, (longs[_local1] >>> 24) & 255);
_local1++;
}
return(_local3);
}
function charsToHex(chars) {
var _local4 = new String("");
var _local3 = new Array("0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "a", "b", "c", "d", "e", "f");
var _local1 = 0;
while (_local1 < chars.length) {
_local4 = _local4 + (_local3[chars[_local1] >> 4] + _local3[chars[_local1] & 15]);
_local1++;
}
return(_local4);
}
function hexToChars(hex) {
var _local3 = new Array();
var _local1 = ((hex.substr(0, 2) == "0x") ? 2 : 0);
while (_local1 < hex.length) {
_local3.push(parseInt(hex.substr(_local1, 2), 16));
_local1 = _local1 + 2;
}
return(_local3);
}
function charsToStr(chars) {
var _local3 = new String("");
var _local1 = 0;
while (_local1 < chars.length) {
_local3 = _local3 + String.fromCharCode(chars[_local1]);
_local1++;
}
return(_local3);
}
function strToChars(str) {
var _local3 = new Array();
var _local1 = 0;
while (_local1 < str.length) {
_local3.push(str.charCodeAt(_local1));
_local1++;
}
return(_local3);
}
function decryptParams(myParams) {
decPar = TEADecrypt(myParams, tKey);
arrayOfVars = new Array();
arrayOfVars = decPar.split("&");
count = 0;
while (count < arrayOfVars.length) {
varHolder = new Array();
varHolder = arrayOfVars[count].split("=");
Set(varHolder[0], varHolder[1]);
count++;
}
}
stop();
fscommand ("allowscale", false);
_quality = "BEST";
var blnLoaded = false;
var crypto = 0;
var gameLog = "";
myVariables = new LoadVars();
myVariables.onLoad = function (success) {
if (success) {
crypto = 1;
_root.decryptParams(this.params);
} else {
crypto = 0;
}
};
_root.xmlGameEnd = new XML();
_root.xmlGameEnd.onLoad = function (success) {
if (success) {
_root.decryptParams(this.firstChild.firstChild.nodeValue);
_root.endURL = _root.gameEndUrl;
_root.t_fLoadGameEnd();
delete this.onLoad;
}
};
var result_lv = new LoadVars();
result_lv.onLoad = function (success) {
if (success) {
trace("whatAmI" + this);
} else {
trace("Error receiving from server.");
}
};
chooseGameEndProcedure();
function gameOver() {
points = Table.nUserBalance;
gotoAndStop ("gameEndFrame");
}
fscommand ("showmenu", "false");
stop();
System.security.allowDomain(domainToAllow);
System.security.allowDomain("http://freeplay.gamedek.com/");
_quality = "BEST";
Instance of Symbol 158 MovieClip "mcLoading" in Frame 1
onClipEvent (enterFrame) {
var numPercent = Math.floor((_parent.getBytesLoaded() * 100) / _parent.getBytesTotal());
var strLoaded = (numPercent + "%");
if (numPercent >= 100) {
_parent.blnLoaded = true;
_parent.play();
}
}
Frame 5
function xmlParser(x) {
trace("::Parser:incoming:" + x);
var _local1 = x.childNodes[0];
switch (_local1.nodeName) {
case "balance" :
trace(":::BALANCE");
if (bFirstBalance) {
trace(":::BALANCE:bFirstBalance-true");
nUserBalance = Number(_local1.attributes.amount);
msgb.removeMovieClip();
gotoAndPlay(_currentframe + 1);
bFirstBalance = false;
} else {
trace(":::BALANCE:bFirstBalance-false");
trace("USER BALANCE BEFORE:" + Table.nUserBalance);
Table.nUserBalance = Number(_local1.attributes.amount);
tfYourPoints.text = new CFormatterX(Number(_local1.attributes.amount)).getAsString();
tfYourPointsShadow.text = new CFormatterX(Number(_local1.attributes.amount)).getAsString();
trace("USER BALANCE AFTER:" + Table.nUserBalance);
}
break;
case "gamefinished" :
onUserCloseGame();
break;
case "sparklecheats" :
trace("@@@@@@@@@1");
if (_local1.attributes.processname != "roulette") {
break;
}
bCheatEnable = false;
trace("@@@@@@@@@2");
}
}
function onCheatEnable() {
trace("---OnCHEATEnable");
if (bCheatEnable) {
bCheatEnable = false;
mcShining._visible = false;
} else {
bCheatEnable = true;
mcShining._visible = true;
}
}
function onUserCloseGame() {
trace("onUserCloseGame!");
if (Table.nTableStake == 0) {
mcComm.addCSAMsg(new XML("<casinolobby/>"));
mcComm.addCSAMsg(new XML("<gamefinished/>"));
} else {
Table.displayMessageBox("Warning", "This game is still active! If you choose to close this window, you will lose your Points. Do you really want to exit?", "MB_EXCLAMATION", "YesNo");
Table.sMsgBoxType = "ExitAreYouSure";
}
}
function onUserCheatRequired() {
trace("onUserCheatReq");
if (Table.bLockTable) {
return(undefined);
}
if (!Table.nPrevTableStake) {
return(undefined);
}
if (Table.bWinForCheat) {
return(undefined);
}
Table.displayMessageBox("Cheat offering !", "Don't like your spin? We'll give you one chance a day to cheat and spin again. Take it or leave it.", "MB_OFFERING", "CheatLater");
}
function onButtonHelpClick() {
msgb = attachMovie("id_rules_helpbox", "rules", 1001);
msgb._x = 400;
msgb._y = 290;
}
function onRulesClose(r) {
r.removeMovieClip();
}
blnLoaded = true;
var nUserBalance;
var bFirstBalance = true;
var bCheatEnable = true;
var msgb;
var sndChip = new Sound();
sndChip.attachSound("ChipSound");
var sndWin = new Sound();
sndWin.attachSound("winSound");
var sndWinBig = new Sound();
sndWinBig.attachSound("winBigSound");
var sndLose = new Sound();
sndLose.attachSound("loseSound");
var sndDropBall = new Sound();
sndDropBall.attachSound("dropBallSound");
var sndRoll = new Sound();
sndRoll.attachSound("rollSound");
var sndWrong = new Sound();
sndWrong.attachSound("wrongSound");
fscommand ("showmenu", "false");
fscommand ("trapallkeys", "true");
XML.prototype.ignoreWhite = true;
var gameWidth = 780;
var gameHeight = 580;
mcComm.addCSAMsg(new XML(((("<loaded width=\"" + gameWidth) + "\" height=\"") + gameHeight) + "\" />"));
Frame 10
function fnFallBall() {
clearInterval(idtRouletteFallBall);
var _local2 = aHashCells["cell" + nCurrNumber];
var _local1 = rr.rot % 360;
if (_local1 < 0) {
_local1 = _local1 + 360;
}
_local1 = _local1 + (rr.rot - Math.floor(rr.rot));
rr.rot = _local1;
nAddAngle = (360 - (_local2 * nCellSectorAngle)) + aCellShifting[nFallBallNumber];
if (rr.rot < nAddAngle) {
rr.rot = rr.rot + 360;
}
bFallBall = true;
}
function displayZOV() {
ZOV.play();
bDisplayZOV = false;
}
function doSpinRoulette() {
if (bRouletteSpin) {
return(undefined);
}
mcCurrFallBall.gotoAndStop(1);
nFallBallNumber = random(3) + 1;
mcCurrFallBall = eval ("ball" + nFallBallNumber);
nCurrNumber = Table.nCurrNumber;
nCurrRouletteSpeed = nMaxRouletteSpeed;
rr.rot = 0;
deltaZOV = 142 - ((aHashCells["cell" + nCurrNumber] - 3) * nCellSectorAngle);
ZOV.ZOVdisplay.ZOVwheel.wheel.wheelR._rotation = Math.ceil(deltaZOV);
bRouletteSpin = true;
idtRouletteFallBall = setInterval(fnFallBall, 10);
bDisplayZOV = true;
}
loadMovie ("SGW.swf", _root.mcSGW);
onCheatEnable();
mcGroovs.stop();
mcShining.btnShining.onRelease = function () {
onUserCheatRequired();
};
mcComm.addCSAMsg(new XML("<gamestarted caption=\"Camel Casino - Roulette\" />"));
mcComm.arrInXML.push(new XML("<balance amount=\"1000\" />"));
var aCells = [0, 28, 9, 26, 30, 11, 7, 20, 32, 17, 5, 22, 34, 15, 3, 24, 36, 13, 1, 37, 27, 10, 25, 29, 12, 8, 19, 31, 18, 6, 21, 33, 16, 4, 23, 35, 14, 2];
var aHashCells = [];
var nCellSectorAngle = (360 / aCells.length);
var bRouletteSpin = false;
var bFallBall = false;
var bFadeSpeed = false;
var bDisplayZOV = true;
var nCurrRouletteSpeed = 0;
var nCurrGrooveSpeed = 0;
var nMaxRouletteSpeed = 15;
var rr = mcRoulette.mcWheel;
rr.rot = 0;
var idtRouletteFallBall = 0;
var nFrictionKoef = 0.99;
var nCurrNumber = 8;
var nAddAngle = 0;
var nFallBallNumber = 0;
var mcCurrFallBall;
var aCellShifting = [0, 59, -140, -200];
var deltaZOV;
ball1.stop();
ball2.stop();
ball3.stop();
ZOV.stop();
ZOV.ZOVdisplay.ZOVwheel.stop();
var i = 0;
while (i < aCells.length) {
aHashCells["cell" + aCells[i]] = i;
i++;
}
this.onEnterFrame = function () {
if (bRouletteSpin) {
rr.rot = rr.rot - nCurrRouletteSpeed;
rr._rotation = rr.rot;
if (bFallBall) {
if (bFadeSpeed) {
nCurrRouletteSpeed = nCurrRouletteSpeed * nFrictionKoef;
} else if (rr.rot < nAddAngle) {
rr.rot = nAddAngle;
bFadeSpeed = true;
mcCurrFallBall.play();
}
}
nCurrGrooveSpeed = nCurrGrooveSpeed + nCurrRouletteSpeed;
mcGroovs.gotoAndStop(Math.ceil(nCurrGrooveSpeed % 40));
if (nCurrRouletteSpeed < 0.21) {
bFallBall = false;
bFadeSpeed = false;
nAddAngle = 0;
nCurrRouletteSpeed = 0;
bRouletteSpin = false;
Table.endRouletteSpinning();
bRouletteSpin = false;
}
}
};
btnSpinRoulette.onRelease = function () {
doSpinRoulette();
};
Frame 15
stop();
com.potapenko.managers.Hint.init();
stop();
_quality = "BEST";
var Table = new CTable(this, nUserBalance);
function g_fSetGameSize(a_numWidth, a_numHeight) {
g_numGameWidth = a_numWidth;
g_numGameHeight = a_numHeight;
}
function playAgain() {
_root.gotoAndPlay("init");
}
g_fSetGameSize(771, 580);
endContainer.playAgain = function () {
_root.gotoAndPlay("init");
};
Frame 21
stop();
endContainer.g_numScore = points;
mcGameEnd.removeMovieClip();
if ((crypto == 2) || (crypto == 0)) {
postGameLog();
_root.xmlGameEnd.load((gameEndSubmitUrl + "?params=") + TEAEncrypt((((("freePlayID=" + freeplayid) + "&score=") + endContainer.g_numScore) + "&timeStamp=") + timeStamp, tKey));
} else {
trace("config");
_root.t_fLoadGameEnd();
}
Symbol 15 Button
on (release, releaseOutside) {
_parent.onRulesClose(this);
}
Symbol 23 MovieClip Frame 1
var component = _parent;
component.registerSkinElement(track_mc, "scrollTrack");
Symbol 24 MovieClip [FScrollBarSymbol] Frame 1
#initclip 11
FScrollBarClass = function () {
if (this._height == 4) {
return(undefined);
}
this.init();
this.minPos = (this.maxPos = (this.pageSize = (this.largeScroll = 0)));
this.smallScroll = 1;
this.width = (this.horizontal ? (this._width) : (this._height));
this._xscale = (this._yscale = 100);
this.setScrollPosition(0);
this.tabEnabled = false;
if (this._targetInstanceName.length > 0) {
this.setScrollTarget(this._parent[this._targetInstanceName]);
}
this.tabChildren = false;
this.setSize(this.width);
};
FScrollBarClass.prototype = new FUIComponentClass();
FScrollBarClass.prototype.setHorizontal = function (flag) {
if (this.horizontal && (!flag)) {
this._xscale = 100;
this._rotation = 0;
} else if (flag && (!this.horizontal)) {
this._xscale = -100;
this._rotation = -90;
}
this.horizontal = flag;
};
FScrollBarClass.prototype.setScrollProperties = function (pSize, mnPos, mxPos) {
if (!this.enable) {
return(undefined);
}
this.pageSize = pSize;
this.minPos = Math.max(mnPos, 0);
this.maxPos = Math.max(mxPos, 0);
this.scrollPosition = Math.max(this.minPos, this.scrollPosition);
this.scrollPosition = Math.min(this.maxPos, this.scrollPosition);
if ((this.maxPos - this.minPos) <= 0) {
this.scrollThumb_mc.removeMovieClip();
this.upArrow_mc.gotoAndStop(3);
this.downArrow_mc.gotoAndStop(3);
this.downArrow_mc.onPress = (this.downArrow_mc.onRelease = (this.downArrow_mc.onDragOut = null));
this.upArrow_mc.onPress = (this.upArrow_mc.onRelease = (this.upArrow_mc.onDragOut = null));
this.scrollTrack_mc.onPress = (this.scrollTrack_mc.onRelease = null);
this.scrollTrack_mc.onDragOut = (this.scrollTrack_mc.onRollOut = null);
this.scrollTrack_mc.useHandCursor = false;
} else {
var _local2 = this.getScrollPosition();
this.upArrow_mc.gotoAndStop(1);
this.downArrow_mc.gotoAndStop(1);
this.upArrow_mc.onPress = (this.upArrow_mc.onDragOver = this.startUpScroller);
this.upArrow_mc.onRelease = (this.upArrow_mc.onDragOut = this.stopScrolling);
this.downArrow_mc.onPress = (this.downArrow_mc.onDragOver = this.startDownScroller);
this.downArrow_mc.onRelease = (this.downArrow_mc.onDragOut = this.stopScrolling);
this.scrollTrack_mc.onPress = (this.scrollTrack_mc.onDragOver = this.startTrackScroller);
this.scrollTrack_mc.onRelease = this.stopScrolling;
this.scrollTrack_mc.onDragOut = this.stopScrolling;
this.scrollTrack_mc.onRollOut = this.stopScrolling;
this.scrollTrack_mc.useHandCursor = false;
this.attachMovie("ScrollThumb", "scrollThumb_mc", 3);
this.scrollThumb_mc._x = 0;
this.scrollThumb_mc._y = this.upArrow_mc._height;
this.scrollThumb_mc.onPress = this.startDragThumb;
this.scrollThumb_mc.controller = this;
this.scrollThumb_mc.onRelease = (this.scrollThumb_mc.onReleaseOutside = this.stopDragThumb);
this.scrollThumb_mc.useHandCursor = false;
this.thumbHeight = (this.pageSize / ((this.maxPos - this.minPos) + this.pageSize)) * this.trackSize;
this.thumbMid_mc = this.scrollThumb_mc.mc_sliderMid;
this.thumbTop_mc = this.scrollThumb_mc.mc_sliderTop;
this.thumbBot_mc = this.scrollThumb_mc.mc_sliderBot;
this.thumbHeight = Math.max(this.thumbHeight, 6);
this.midHeight = (this.thumbHeight - this.thumbTop_mc._height) - this.thumbBot_mc._height;
this.thumbMid_mc._yscale = (this.midHeight * 100) / this.thumbMid_mc._height;
this.thumbMid_mc._y = this.thumbTop_mc._height;
this.thumbBot_mc._y = this.thumbTop_mc._height + this.midHeight;
this.scrollTop = this.scrollThumb_mc._y;
this.trackHeight = this.trackSize - this.thumbHeight;
this.scrollBot = this.trackHeight + this.scrollTop;
_local2 = Math.min(_local2, this.maxPos);
this.setScrollPosition(Math.max(_local2, this.minPos));
}
};
FScrollBarClass.prototype.getScrollPosition = function () {
return(this.scrollPosition);
};
FScrollBarClass.prototype.setScrollPosition = function (pos) {
this.scrollPosition = pos;
if (this.scrollThumb_mc != undefined) {
pos = Math.min(pos, this.maxPos);
pos = Math.max(pos, this.minPos);
}
this.scrollThumb_mc._y = (((pos - this.minPos) * this.trackHeight) / (this.maxPos - this.minPos)) + this.scrollTop;
this.executeCallBack();
};
FScrollBarClass.prototype.setLargeScroll = function (lScroll) {
this.largeScroll = lScroll;
};
FScrollBarClass.prototype.setSmallScroll = function (sScroll) {
this.smallScroll = sScroll;
};
FScrollBarClass.prototype.setEnabled = function (enabledFlag) {
var _local2 = this.enable;
if (enabledFlag && (!_local2)) {
this.enable = enabledFlag;
if (this.textField != undefined) {
this.setScrollTarget(this.textField);
} else {
this.setScrollProperties(this.pageSize, this.cachedMinPos, this.cachedMaxPos);
this.setScrollPosition(this.cachedPos);
}
this.clickFilter = undefined;
} else if ((!enabledFlag) && (_local2)) {
this.textField.removeListener(this);
this.cachedPos = this.getScrollPosition();
this.cachedMinPos = this.minPos;
this.cachedMaxPos = this.maxPos;
if (this.clickFilter == undefined) {
this.setScrollProperties(this.pageSize, 0, 0);
} else {
this.clickFilter = true;
}
this.enable = enabledFlag;
}
};
FScrollBarClass.prototype.setSize = function (hgt) {
if (this._height == 1) {
return(undefined);
}
this.width = hgt;
this.scrollTrack_mc._yscale = 100;
this.scrollTrack_mc._yscale = (100 * this.width) / this.scrollTrack_mc._height;
if (this.upArrow_mc == undefined) {
this.attachMovie("UpArrow", "upArrow_mc", 1);
this.attachMovie("DownArrow", "downArrow_mc", 2);
this.downArrow_mc.controller = (this.upArrow_mc.controller = this);
this.upArrow_mc.useHandCursor = (this.downArrow_mc.useHandCursor = false);
this.upArrow_mc._x = (this.upArrow_mc._y = 0);
this.downArrow_mc._x = 0;
}
this.scrollTrack_mc.controller = this;
this.downArrow_mc._y = this.width - this.downArrow_mc._height;
this.trackSize = this.width - (2 * this.downArrow_mc._height);
if (this.textField != undefined) {
this.onTextChanged();
} else {
this.setScrollProperties(this.pageSize, this.minPos, this.maxPos);
}
};
FScrollBarClass.prototype.scrollIt = function (inc, mode) {
var _local3 = this.smallScroll;
if (inc != "one") {
_local3 = ((this.largeScroll == 0) ? (this.pageSize) : (this.largeScroll));
}
var _local2 = this.getScrollPosition() + (mode * _local3);
if (_local2 > this.maxPos) {
_local2 = this.maxPos;
} else if (_local2 < this.minPos) {
_local2 = this.minPos;
}
this.setScrollPosition(_local2);
};
FScrollBarClass.prototype.startDragThumb = function () {
this.lastY = this._ymouse;
this.onMouseMove = this.controller.dragThumb;
};
FScrollBarClass.prototype.dragThumb = function () {
this.scrollMove = this._ymouse - this.lastY;
this.scrollMove = this.scrollMove + this._y;
if (this.scrollMove < this.controller.scrollTop) {
this.scrollMove = this.controller.scrollTop;
} else if (this.scrollMove > this.controller.scrollBot) {
this.scrollMove = this.controller.scrollBot;
}
this._y = this.scrollMove;
var _local2 = this.controller;
_local2.scrollPosition = Math.round(((_local2.maxPos - _local2.minPos) * (this._y - _local2.scrollTop)) / _local2.trackHeight) + _local2.minPos;
this.controller.isScrolling = true;
updateAfterEvent();
this.controller.executeCallBack();
};
FScrollBarClass.prototype.stopDragThumb = function () {
this.controller.isScrolling = false;
this.onMouseMove = null;
};
FScrollBarClass.prototype.startTrackScroller = function () {
this.controller.trackScroller();
this.controller.scrolling = setInterval(this.controller, "scrollInterval", 500, "page", -1);
};
FScrollBarClass.prototype.scrollInterval = function (inc, mode) {
clearInterval(this.scrolling);
if (inc == "page") {
this.trackScroller();
} else {
this.scrollIt(inc, mode);
}
this.scrolling = setInterval(this, "scrollInterval", 35, inc, mode);
};
FScrollBarClass.prototype.trackScroller = function () {
if ((this.scrollThumb_mc._y + this.thumbHeight) < this._ymouse) {
this.scrollIt("page", 1);
} else if (this.scrollThumb_mc._y > this._ymouse) {
this.scrollIt("page", -1);
}
};
FScrollBarClass.prototype.stopScrolling = function () {
this.controller.downArrow_mc.gotoAndStop(1);
this.controller.upArrow_mc.gotoAndStop(1);
clearInterval(this.controller.scrolling);
};
FScrollBarClass.prototype.startUpScroller = function () {
this.controller.upArrow_mc.gotoAndStop(2);
this.controller.scrollIt("one", -1);
this.controller.scrolling = setInterval(this.controller, "scrollInterval", 500, "one", -1);
};
FScrollBarClass.prototype.startDownScroller = function () {
this.controller.downArrow_mc.gotoAndStop(2);
this.controller.scrollIt("one", 1);
this.controller.scrolling = setInterval(this.controller, "scrollInterval", 500, "one", 1);
};
FScrollBarClass.prototype.setScrollTarget = function (tF) {
if (tF == undefined) {
this.textField.removeListener(this);
delete this.textField[(this.horizontal ? "hScroller" : "vScroller")];
if ((this.textField.hScroller != undefined) && (this.textField.vScroller != undefined)) {
this.textField.unwatch("text");
this.textField.unwatch("htmlText");
}
}
this.textField = undefined;
if (!(tF instanceof TextField)) {
return(undefined);
}
this.textField = tF;
this.textField[(this.horizontal ? "hScroller" : "vScroller")] = this;
this.onTextChanged();
this.onChanged = function () {
this.onTextChanged();
};
this.onScroller = function () {
if (!this.isScrolling) {
if (!this.horizontal) {
this.setScrollPosition(this.textField.scroll);
} else {
this.setScrollPosition(this.textField.hscroll);
}
}
};
this.textField.addListener(this);
this.textField.watch("text", this.callback);
this.textField.watch("htmlText", this.callback);
};
FScrollBarClass.prototype.callback = function (prop, oldVal, newVal) {
clearInterval(this.hScroller.synchScroll);
clearInterval(this.vScroller.synchScroll);
this.hScroller.synchScroll = setInterval(this.hScroller, "onTextChanged", 50);
this.vScroller.synchScroll = setInterval(this.vScroller, "onTextChanged", 50);
return(newVal);
};
FScrollBarClass.prototype.onTextChanged = function () {
if ((!this.enable) || (this.textField == undefined)) {
return(undefined);
}
clearInterval(this.synchScroll);
if (this.horizontal) {
var _local2 = this.textField.hscroll;
this.setScrollProperties(this.textField._width, 0, this.textField.maxhscroll);
this.setScrollPosition(Math.min(_local2, this.textField.maxhscroll));
} else {
var _local2 = this.textField.scroll;
var _local3 = this.textField.bottomScroll - this.textField.scroll;
this.setScrollProperties(_local3, 1, this.textField.maxscroll);
this.setScrollPosition(Math.min(_local2, this.textField.maxscroll));
}
};
FScrollBarClass.prototype.executeCallBack = function () {
if (this.textField == undefined) {
super.executeCallBack();
} else if (this.horizontal) {
this.textField.hscroll = this.getScrollPosition();
} else {
this.textField.scroll = this.getScrollPosition();
}
};
Object.registerClass("FScrollBarSymbol", FScrollBarClass);
#endinitclip
Symbol 25 MovieClip [id_rules_helpbox] Frame 1
stop();
tfRulesContent.htmlText = "<b>Roulette</b><br><br>";
tfRulesContent.htmlText = tfRulesContent.htmlText + "To win at roulette the player needs to predict where the ball will land after each spin. Players play against the house represented by the croupier, also called the dealer, who spins the roulette wheel and handles the wagers and payouts. The roulette wheel has two zeros and therefore 38 slots. <br><br>";
tfRulesContent.htmlText = tfRulesContent.htmlText + "<b>Roulette Basics</b><br><br>";
tfRulesContent.htmlText = tfRulesContent.htmlText + "To place a bet, the player will click on the chip denomination ($1, $5, $25 or $100) in the lower left-hand corner of the screen. The player will then roll over the number or area (such as Odd, Even, Four Number Corner, Red or Black) on the roulette table where they wish to place their bet. Once the area has been clicked, the bet will be placed. To remove a placed bet, the player will click the Clear Bets button. To add to a bet already placed on the table, the player must move the mouse over the area to highlight where they wish to add multiple chips and then click. Once the player is satisfied with the amount of the bet, they click the \u201CSpin\u201D button to begin the game.<br><br>";
tfRulesContent.htmlText = tfRulesContent.htmlText + "<b>Inside bets</b><br>One number Straight up (En plein ) pays 35 to 1.<br>Two numbers Split Bet (Cheval) pays 17 to 1.<br>Three numbers Street Bet (Transversale) pays 11 to 1.<br>Four numbers Corner (Carre) pays 8 to 1.<br>Six numbers Line Bet (Sixainne) pays 5 to 1.<br><br>";
tfRulesContent.htmlText = tfRulesContent.htmlText + "<b>Outside bets</b><br>Twelve numbers Column (Colonne) pays 2 to 1.<br>Twelve numbers Dozen (Douzaine) pays 2 to 1.<br>Red or Black (Rouge, Noir) pays 1 to 1.<br>Even or Odd (Pair, Impair) pays 1 to 1.<br>Low or High numbers (Manque, Passe) pays 1 to 1.<br><br>";
tfRulesContent.htmlText = tfRulesContent.htmlText + "<b>Roulette Tips</b><br><br>";
tfRulesContent.htmlText = tfRulesContent.htmlText + "<b>Strategy:</b> The game of roulette favors the dealer because the dealer wins on 0 and 00. However, it is possible to make money on a roulette table. Aim to win more money in fewer winning spins. Take into account probability, but don\u2019t rely on it. Use it to make an approximate assessment of what you could expect on a long run. If you are influenced by previous results, then learn to bet with the outcome and not against it. You will eventually realize that it makes no difference. If anything, the \u201Claw of unequal distribution\u201D will be on your side. The two major factors that determine how much you win or lose at roulette are: 1) your luck on the day and 2) deciding when is the best time to quit. On a very bad day, no sum of wagering money or degree of skill will make you a winner. Don\u2019t persist. Cut your losses early. No matter how appealing a new and sexy bet might feel, never bet the five number bet, it has the worst odds on the table.<br><br>";
Instance of Symbol 24 MovieClip [FScrollBarSymbol] "scrollbar" in Symbol 25 MovieClip [id_rules_helpbox] Frame 1
//component parameters
onClipEvent (construct) {
_targetInstanceName = "tfRulesContent";
horizontal = false;
}
//component parameters
onClipEvent (construct) {
_targetInstanceName = "tfRulesContent";
horizontal = false;
}
Symbol 37 Button
on (release, releaseOutside) {
_parent.Table.onMessageBoxButtonOkRelease(this);
}
Symbol 39 Button
on (release, releaseOutside) {
_parent.Table.onMessageBoxButtonNoRelease(this);
}
Symbol 41 Button
on (release, releaseOutside) {
_parent.Table.onMessageBoxButtonYesRelease(this);
}
Symbol 43 Button
on (release, releaseOutside) {
_parent.Table.onMessageBoxButtonSpinRelease(this);
}
Symbol 45 Button
on (release, releaseOutside) {
_parent.Table.onMessageBoxButtonCancelRelease(this);
}
Symbol 50 Button
on (release, releaseOutside) {
_parent.Table.onMessageBoxButtonCheatRelease(this);
}
Symbol 52 Button
on (release, releaseOutside) {
_parent.Table.onMessageBoxButtonLaterRelease(this);
}
Symbol 67 MovieClip [id_chip4stake1] Frame 10
stop();
Symbol 69 MovieClip [id_chip4stake5] Frame 10
stop();
Symbol 71 MovieClip [id_chip4stake25] Frame 10
stop();
Symbol 73 MovieClip [id_chip4stake100] Frame 10
stop();
Symbol 86 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "arrow");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 96 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "arrow");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 105 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "foregroundDisabled");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 106 MovieClip [DownArrow] Frame 1
stop();
Symbol 106 MovieClip [DownArrow] Frame 2
stop();
Symbol 106 MovieClip [DownArrow] Frame 3
stop();
Symbol 113 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 120 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 125 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(highlight3D_mc, "highlight3D");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
Symbol 126 MovieClip [ScrollThumb] Frame 1
stop();
Symbol 134 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "arrow");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 142 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "arrow");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 150 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "foregroundDisabled");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 151 MovieClip [UpArrow] Frame 1
stop();
Symbol 151 MovieClip [UpArrow] Frame 2
stop();
Symbol 151 MovieClip [UpArrow] Frame 3
stop();
Symbol 152 MovieClip [FUIComponentSymbol] Frame 1
#initclip 10
function FUIComponentClass() {
this.init();
}
FUIComponentClass.prototype = new MovieClip();
FUIComponentClass.prototype.init = function () {
this.enable = true;
this.focused = false;
this.useHandCursor = false;
this._accImpl = new Object();
this._accImpl.stub = true;
this.styleTable = new Array();
if (_global.globalStyleFormat == undefined) {
_global.globalStyleFormat = new FStyleFormat();
globalStyleFormat.isGlobal = true;
_global._focusControl = new Object();
_global._focusControl.onSetFocus = function (oldFocus, newFocus) {
oldFocus.myOnKillFocus();
newFocus.myOnSetFocus();
};
Selection.addListener(_global._focusControl);
}
if (this._name != undefined) {
this._focusrect = false;
this.tabEnabled = true;
this.focusEnabled = true;
this.tabChildren = false;
this.tabFocused = true;
if (this.hostStyle == undefined) {
globalStyleFormat.addListener(this);
} else {
this.styleTable = this.hostStyle;
}
this.deadPreview._visible = false;
this.deadPreview._width = (this.deadPreview._height = 1);
this.methodTable = new Object();
this.keyListener = new Object();
this.keyListener.controller = this;
this.keyListener.onKeyDown = function () {
this.controller.myOnKeyDown();
};
this.keyListener.onKeyUp = function () {
this.controller.myOnKeyUp();
};
for (var _local3 in this.styleFormat_prm) {
this.setStyleProperty(_local3, this.styleFormat_prm[_local3]);
}
}
};
FUIComponentClass.prototype.setEnabled = function (enabledFlag) {
this.enable = ((arguments.length > 0) ? (enabledFlag) : true);
this.tabEnabled = (this.focusEnabled = enabledFlag);
if ((!this.enable) && (this.focused)) {
Selection.setFocus(undefined);
}
};
FUIComponentClass.prototype.getEnabled = function () {
return(this.enable);
};
FUIComponentClass.prototype.setSize = function (w, h) {
this.width = w;
this.height = h;
this.focusRect.removeMovieClip();
};
FUIComponentClass.prototype.setChangeHandler = function (chng, obj) {
this.handlerObj = ((obj == undefined) ? (this._parent) : (obj));
this.changeHandler = chng;
};
FUIComponentClass.prototype.invalidate = function (methodName) {
this.methodTable[methodName] = true;
this.onEnterFrame = this.cleanUI;
};
FUIComponentClass.prototype.cleanUI = function () {
if (this.methodTable.setSize) {
this.setSize(this.width, this.height);
} else {
this.cleanUINotSize();
}
this.methodTable = new Object();
delete this.onEnterFrame;
};
FUIComponentClass.prototype.cleanUINotSize = function () {
for (var _local2 in this.methodTable) {
this[_local2]();
}
};
FUIComponentClass.prototype.drawRect = function (x, y, w, h) {
var _local5 = this.styleTable.focusRectInner.value;
var _local4 = this.styleTable.focusRectOuter.value;
if (_local5 == undefined) {
_local5 = 16777215 /* 0xFFFFFF */;
}
if (_local4 == undefined) {
_local4 = 0;
}
this.createEmptyMovieClip("focusRect", 1000);
this.focusRect.controller = this;
this.focusRect.lineStyle(1, _local4);
this.focusRect.moveTo(x, y);
this.focusRect.lineTo(x + w, y);
this.focusRect.lineTo(x + w, y + h);
this.focusRect.lineTo(x, y + h);
this.focusRect.lineTo(x, y);
this.focusRect.lineStyle(1, _local5);
this.focusRect.moveTo(x + 1, y + 1);
this.focusRect.lineTo((x + w) - 1, y + 1);
this.focusRect.lineTo((x + w) - 1, (y + h) - 1);
this.focusRect.lineTo(x + 1, (y + h) - 1);
this.focusRect.lineTo(x + 1, y + 1);
};
FUIComponentClass.prototype.pressFocus = function () {
this.tabFocused = false;
this.focusRect.removeMovieClip();
Selection.setFocus(this);
};
FUIComponentClass.prototype.drawFocusRect = function () {
this.drawRect(-2, -2, this.width + 4, this.height + 4);
};
FUIComponentClass.prototype.myOnSetFocus = function () {
this.focused = true;
Key.addListener(this.keyListener);
if (this.tabFocused) {
this.drawFocusRect();
}
};
FUIComponentClass.prototype.myOnKillFocus = function () {
this.tabFocused = true;
this.focused = false;
this.focusRect.removeMovieClip();
Key.removeListener(this.keyListener);
};
FUIComponentClass.prototype.executeCallBack = function () {
this.handlerObj[this.changeHandler](this);
};
FUIComponentClass.prototype.updateStyleProperty = function (styleFormat, propName) {
this.setStyleProperty(propName, styleFormat[propName], styleFormat.isGlobal);
};
FUIComponentClass.prototype.setStyleProperty = function (propName, value, isGlobal) {
if (value == "") {
return(undefined);
}
var _local18 = parseInt(value);
if (!isNaN(_local18)) {
value = _local18;
}
var _local19 = ((arguments.length > 2) ? (isGlobal) : false);
if (this.styleTable[propName] == undefined) {
this.styleTable[propName] = new Object();
this.styleTable[propName].useGlobal = true;
}
if (this.styleTable[propName].useGlobal || (!_local19)) {
this.styleTable[propName].value = value;
if (this.setCustomStyleProperty(propName, value)) {
} else if (propName == "embedFonts") {
this.invalidate("setSize");
} else if (propName.substring(0, 4) == "text") {
if (this.textStyle == undefined) {
this.textStyle = new TextFormat();
}
var _local15 = propName.substring(4, propName.length);
var _local17 = _local15.substring(0, 1);
_local17 = _local17.toLowerCase();
_local15 = _local17 + _local15.substring(1, _local15.length);
this.textStyle[_local15] = value;
this.invalidate("setSize");
} else {
for (var _local16 in this.styleTable[propName].coloredMCs) {
var _local4 = new Color(this.styleTable[propName].coloredMCs[_local16]);
if (this.styleTable[propName].value == undefined) {
var _local5 = {ra:"100", rb:"0", ga:"100", gb:"0", ba:"100", bb:"0", aa:"100", ab:"0"};
_local4.setTransform(_local5);
continue;
}
_local4.setRGB(value);
}
}
this.styleTable[propName].useGlobal = _local19;
}
};
FUIComponentClass.prototype.registerSkinElement = function (skinMCRef, propName) {
if (this.styleTable[propName] == undefined) {
this.styleTable[propName] = new Object();
this.styleTable[propName].useGlobal = true;
}
if (this.styleTable[propName].coloredMCs == undefined) {
this.styleTable[propName].coloredMCs = new Object();
}
this.styleTable[propName].coloredMCs[skinMCRef] = skinMCRef;
if (this.styleTable[propName].value != undefined) {
var _local4 = new Color(skinMCRef);
_local4.setRGB(this.styleTable[propName].value);
}
};
_global.FStyleFormat = function () {
this.nonStyles = {listeners:true, isGlobal:true, isAStyle:true, addListener:true, removeListener:true, nonStyles:true, applyChanges:true};
this.listeners = new Object();
this.isGlobal = false;
if (arguments.length > 0) {
for (var _local3 in arguments[0]) {
this[_local3] = arguments[0][_local3];
}
}
};
_global.FStyleFormat.prototype = new Object();
FStyleFormat.prototype.addListener = function () {
var _local3 = 0;
while (_local3 < arguments.length) {
var _local4 = arguments[_local3];
this.listeners[arguments[_local3]] = _local4;
for (var _local5 in this) {
if (this.isAStyle(_local5)) {
_local4.updateStyleProperty(this, _local5.toString());
}
}
_local3++;
}
};
FStyleFormat.prototype.removeListener = function (component) {
this.listeners[component] = undefined;
for (var _local4 in this) {
if (this.isAStyle(_local4)) {
if (component.styleTable[_local4].useGlobal == this.isGlobal) {
component.styleTable[_local4].useGlobal = true;
var _local3 = (this.isGlobal ? undefined : (globalStyleFormat[_local4]));
component.setStyleProperty(_local4, _local3, true);
}
}
}
};
FStyleFormat.prototype.applyChanges = function () {
var _local6 = 0;
for (var _local5 in this.listeners) {
var _local3 = this.listeners[_local5];
if (arguments.length > 0) {
var _local4 = 0;
while (_local4 < arguments.length) {
if (this.isAStyle(arguments[_local4])) {
_local3.updateStyleProperty(this, arguments[_local4]);
}
_local4++;
}
continue;
}
for (var _local4 in this) {
if (this.isAStyle(_local4)) {
_local3.updateStyleProperty(this, _local4.toString());
}
}
}
};
FStyleFormat.prototype.isAStyle = function (name) {
return((this.nonStyles[name] ? false : true));
};
#endinitclip
Symbol 154 MovieClip [CComm] Frame 1
#initclip 9
_global.CComm = function () {
if (this.hostComponent == undefined) {
this.hostComponent = ((this._parent.controller == undefined) ? (this._parent) : (this._parent.controller));
}
this.strInMsg = "";
this.procID = 0;
this.enableInMsg = true;
this.arrInXML = new Array();
this.arrOutXML = new Array();
this.tabIndex = -1;
this.tabEnabled = false;
};
CComm.prototype = new MovieClip();
Object.registerClass("CComm", CComm);
CComm.prototype.setInMsgEnable = function (flag) {
this.enableInMsg = Boolean(flag);
};
CComm.prototype.setProcID = function (id) {
this.procId = id;
};
CComm.prototype.receiveMsg = function () {
if (this.strInMsg != "") {
this.arrInXML.push(new XML(this.strInMsg));
this.strInMsg = "";
this.addCSAMsg(new XML("<readytoreceive/>"));
}
};
CComm.prototype.sendMsg = function () {
if (this.arrOutXML.length > 0) {
var _local2 = this.arrOutXML.shift().toString();
fscommand ("SendMsg", _local2);
}
};
CComm.prototype.getMsg = function () {
var _local2 = new XML("");
if (this.arrInXML.length > 0) {
_local2 = this.arrInXML.shift();
}
return(_local2);
};
CComm.prototype.addGEMsg = function (xml4ge) {
if (xml4ge.status == 0) {
var _local2 = new XML();
_local2.parseXML(((("<gaaction processid=\"" + this.procID) + "\">") + xml4ge.toString()) + "</gaaction>");
this.arrOutXML.push(_local2);
}
};
CComm.prototype.addCSAMsg = function (xml4csa) {
if (xml4csa.status == 0) {
trace(xml4csa);
this.arrOutXML.push(xml4csa);
}
};
CComm.prototype.onEnterFrame = function () {
this.receiveMsg();
this.sendMsg();
if ((this.arrInXML.length > 0) & this.enableInMsg) {
_root.xmlParser(this.arrInXML.shift());
}
};
#endinitclip
Symbol 357 MovieClip [__Packages.CFormatterX] Frame 0
class CFormatterX
{
var sPrefix, sPostfix, sTriadaDelimiter, nCurr, sCurr, sTmp;
function CFormatterX (n) {
init(n);
}
function init(n) {
sPrefix = "";
sPostfix = "";
sTriadaDelimiter = ",";
if (typeof(n) == "number") {
nCurr = Math.floor(n);
} else {
sCurr = n;
}
}
function getAsString() {
var _local2;
var _local3;
var _local4 = nCurr - Math.floor(nCurr);
sCurr = String(Math.floor(nCurr));
sTmp = "";
_local3 = 0;
_local2 = sCurr.length - 1;
while (_local2 >= 0) {
if (_local3 == 3) {
sTmp = sTriadaDelimiter + sTmp;
_local3 = 0;
}
_local3++;
sTmp = sCurr.substr(_local2, 1) + sTmp;
_local2--;
}
sCurr = sTmp;
if (_local4 > 0) {
sCurr = sCurr + String(_local4).substr(1);
}
return(sCurr);
}
function getAsNumber() {
return(Number(sCurr.split(sTriadaDelimiter).join("")));
}
}
Symbol 358 MovieClip [__Packages.CTable] Frame 0
class CTable
{
var rDC, g_conv, bWinForCheat, bLockTable, nCurrBet, aBetValue, nMinBet, nMaxBet, nUserBalance, nPrevTableStake, nTableStake, aStakedPlaces, aColors, aBetPlaces, idtSpinReminder, msgb, sMsgBoxType, nCurrNumber, sCurrNumber;
function CTable (r, ub) {
rDC = r;
init(ub);
}
function init(ub) {
g_conv = com.potapenko.managers.Conv.getInstance();
bWinForCheat = true;
bLockTable = false;
nCurrBet = 1;
rDC.btnChip1.gotoAndStop("selected");
aBetValue = [100, 25, 5, 1];
nMinBet = 1;
nMaxBet = 500;
nUserBalance = ub;
nPrevTableStake = (nTableStake = 0);
rDC.tfYourPoints.text = new CFormatterX(nUserBalance).getAsString();
rDC.tfBetsPlaced.text = new CFormatterX(nTableStake).getAsString();
rDC.tfYourPointsShadow.text = new CFormatterX(nUserBalance).getAsString();
rDC.tfBetsPlacedShadow.text = new CFormatterX(nTableStake).getAsString();
var _local3 = 1;
while (_local3 <= 10) {
rDC.mcPlayedNumbers["tfg" + _local3].text = "";
rDC.mcPlayedNumbers["tfr" + _local3].text = "";
rDC.mcPlayedNumbers["tfb" + _local3].text = "";
_local3++;
}
aStakedPlaces = [];
aColors = [0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 0, 1, 0, 1, 0, 1, 0, 1, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 0, 1, 0, 1, 0, 1, 0, 1];
aBetPlaces = [];
aBetPlaces.push("37");
aBetPlaces.push("03");
aBetPlaces.push("03_06");
aBetPlaces.push("06");
aBetPlaces.push("06_09");
aBetPlaces.push("09");
aBetPlaces.push("09_12");
aBetPlaces.push("12");
aBetPlaces.push("12_15");
aBetPlaces.push("15");
aBetPlaces.push("15_18");
aBetPlaces.push("18");
aBetPlaces.push("18_21");
aBetPlaces.push("21");
aBetPlaces.push("21_24");
aBetPlaces.push("24");
aBetPlaces.push("24_27");
aBetPlaces.push("27");
aBetPlaces.push("27_30");
aBetPlaces.push("30");
aBetPlaces.push("30_33");
aBetPlaces.push("33");
aBetPlaces.push("33_36");
aBetPlaces.push("36");
aBetPlaces.push("2213");
aBetPlaces.push("02_03");
aBetPlaces.push("02_03_05_06");
aBetPlaces.push("05_06");
aBetPlaces.push("05_06_08_09");
aBetPlaces.push("08_09");
aBetPlaces.push("08_09_11_12");
aBetPlaces.push("11_12");
aBetPlaces.push("11_12_14_15");
aBetPlaces.push("14_15");
aBetPlaces.push("14_15_17_18");
aBetPlaces.push("17_18");
aBetPlaces.push("17_18_20_21");
aBetPlaces.push("20_21");
aBetPlaces.push("20_21_23_24");
aBetPlaces.push("23_24");
aBetPlaces.push("23_24_26_27");
aBetPlaces.push("26_27");
aBetPlaces.push("26_27_29_30");
aBetPlaces.push("29_30");
aBetPlaces.push("29_30_32_33");
aBetPlaces.push("32_33");
aBetPlaces.push("32_33_35_36");
aBetPlaces.push("35_36");
aBetPlaces.push("22122213");
aBetPlaces.push("02");
aBetPlaces.push("02_05");
aBetPlaces.push("05");
aBetPlaces.push("05_08");
aBetPlaces.push("08");
aBetPlaces.push("08_11");
aBetPlaces.push("11");
aBetPlaces.push("11_14");
aBetPlaces.push("14");
aBetPlaces.push("14_17");
aBetPlaces.push("17");
aBetPlaces.push("17_20");
aBetPlaces.push("20");
aBetPlaces.push("20_23");
aBetPlaces.push("23");
aBetPlaces.push("23_26");
aBetPlaces.push("26");
aBetPlaces.push("26_29");
aBetPlaces.push("29");
aBetPlaces.push("29_32");
aBetPlaces.push("32");
aBetPlaces.push("32_35");
aBetPlaces.push("35");
aBetPlaces.push("2212");
aBetPlaces.push("01_02");
aBetPlaces.push("01_02_04_05");
aBetPlaces.push("04_05");
aBetPlaces.push("04_05_07_08");
aBetPlaces.push("07_08");
aBetPlaces.push("07_08_10_11");
aBetPlaces.push("10_11");
aBetPlaces.push("10_11_13_14");
aBetPlaces.push("13_14");
aBetPlaces.push("13_14_16_17");
aBetPlaces.push("16_17");
aBetPlaces.push("16_17_19_20");
aBetPlaces.push("19_20");
aBetPlaces.push("19_20_22_23");
aBetPlaces.push("22_23");
aBetPlaces.push("22_23_25_26");
aBetPlaces.push("25_26");
aBetPlaces.push("25_26_28_29");
aBetPlaces.push("28_29");
aBetPlaces.push("28_29_31_32");
aBetPlaces.push("31_32");
aBetPlaces.push("31_32_34_35");
aBetPlaces.push("34_35");
aBetPlaces.push("22112212");
aBetPlaces.push("00");
aBetPlaces.push("01");
aBetPlaces.push("01_04");
aBetPlaces.push("04");
aBetPlaces.push("04_07");
aBetPlaces.push("07");
aBetPlaces.push("07_10");
aBetPlaces.push("10");
aBetPlaces.push("10_13");
aBetPlaces.push("13");
aBetPlaces.push("13_16");
aBetPlaces.push("16");
aBetPlaces.push("16_19");
aBetPlaces.push("19");
aBetPlaces.push("19_22");
aBetPlaces.push("22");
aBetPlaces.push("22_25");
aBetPlaces.push("25");
aBetPlaces.push("25_28");
aBetPlaces.push("28");
aBetPlaces.push("28_31");
aBetPlaces.push("31");
aBetPlaces.push("31_34");
aBetPlaces.push("34");
aBetPlaces.push("2211");
aBetPlaces.push("00_37_01_02_03");
aBetPlaces.push("01_02_03");
aBetPlaces.push("01_02_03_04_05_06");
aBetPlaces.push("04_05_06");
aBetPlaces.push("04_05_06_07_08_09");
aBetPlaces.push("07_08_09");
aBetPlaces.push("07_08_09_10_11_12");
aBetPlaces.push("10_11_12");
aBetPlaces.push("10_11_12_13_14_15");
aBetPlaces.push("13_14_15");
aBetPlaces.push("13_14_15_16_17_18");
aBetPlaces.push("16_17_18");
aBetPlaces.push("16_17_18_19_20_21");
aBetPlaces.push("19_20_21");
aBetPlaces.push("19_20_21_22_23_24");
aBetPlaces.push("22_23_24");
aBetPlaces.push("22_23_24_25_26_27");
aBetPlaces.push("25_26_27");
aBetPlaces.push("25_26_27_28_29_30");
aBetPlaces.push("28_29_30");
aBetPlaces.push("28_29_30_31_32_33");
aBetPlaces.push("31_32_33");
aBetPlaces.push("31_32_33_34_35_36");
aBetPlaces.push("34_35_36");
aBetPlaces.push("121");
aBetPlaces.push("121122");
aBetPlaces.push("122");
aBetPlaces.push("122123");
aBetPlaces.push("123");
aBetPlaces.push("118");
aBetPlaces.push("even");
aBetPlaces.push("red");
aBetPlaces.push("black");
aBetPlaces.push("odd");
aBetPlaces.push("1936");
var _local10 = aBetPlaces.length;
var _local4 = [];
var _local2;
var _local5;
_local3 = 0;
while (_local3 < _local10) {
_local2 = rDC.mcBetPlaces["bp_" + aBetPlaces[_local3]];
_local4 = aBetPlaces[_local3].split("_");
if (_local4.length == 1) {
_local5 = Number(_local4[0]);
if (_local5 < 37) {
_local2.o = {alt:("place your bet on \"" + Number(_local4[0])) + "\" (pays 35 to 1)", pay:35, maximum:100, order:_local3 + 1};
_local2.btn.addHint(_local2.o.alt);
} else {
switch (_local4[0]) {
case "37" :
_local2.o = {alt:"place your bet on \"00\" (pays 35 to 1)", pay:35, maximum:100, order:_local3 + 1};
_local2.btn.addHint(_local2.o.alt);
break;
case "121" :
_local2.o = {alt:"place your bet on \"1st 12\" (pays 2 to 1)", pay:2, maximum:100, order:_local3 + 1};
_local2.btn.addHint(_local2.o.alt);
break;
case "121122" :
_local2.o = {alt:"place your bet on \"1st 12\" and \"2nd 12\" (pays 1 to 2)", pay:0.5, maximum:100, order:_local3 + 1};
_local2.btn.addHint(_local2.o.alt);
break;
case "122" :
_local2.o = {alt:"place your bet on \"2nd 12\" (pays 2 to 1)", pay:2, maximum:100, order:_local3 + 1};
_local2.btn.addHint(_local2.o.alt);
break;
case "122123" :
_local2.o = {alt:"place your bet on \"2nd 12\" and \"3rd 12\" (pays 1 to 2)", pay:0.5, maximum:100, order:_local3 + 1};
_local2.btn.addHint(_local2.o.alt);
break;
case "123" :
_local2.o = {alt:"place your bet on \"3rd 12\" (pays 2 to 1)", pay:2, maximum:100, order:_local3 + 1};
_local2.btn.addHint(_local2.o.alt);
break;
case "2211" :
_local2.o = {alt:"place your bet on \"1,4,7,10,13,16,19,22,25,28,31,34\" (pays 2 to 1)", pay:2, maximum:100, order:_local3 + 1};
_local2.btn.addHint(_local2.o.alt);
break;
case "22112212" :
_local2.o = {alt:"place your bet on \"1,4,7,10,13,16,19,22,25,28,31,34\" \n and \"2,5,8,11,14,17,20,23,26,29,32,35\" (pays 1 to 2)", pay:0.5, maximum:100, order:_local3 + 1};
_local2.btn.addHint(_local2.o.alt);
break;
case "2212" :
_local2.o = {alt:"place your bet on \"2,5,8,11,14,17,20,23,26,29,32,35\" (pays 2 to 1)", pay:2, maximum:100, order:_local3 + 1};
_local2.btn.addHint(_local2.o.alt);
break;
case "22122213" :
_local2.o = {alt:"place your bet on \"2,5,8,11,14,17,20,23,26,29,32,35\" \n and \"3,6,9,12,15,18,21,24,27,30,33,36\" (pays 1 to 2)", pay:0.5, maximum:100, order:_local3 + 1};
_local2.btn.addHint(_local2.o.alt);
break;
case "2213" :
_local2.o = {alt:"place your bet on \"3,6,9,12,15,18,21,24,27,30,33,36\" (pays 2 to 1)", pay:2, maximum:100, order:_local3 + 1};
_local2.btn.addHint(_local2.o.alt);
break;
case "118" :
_local2.o = {alt:"place your bet on \"1 to 18\" (pays 1 to 1)", pay:1, maximum:100, order:_local3 + 1};
_local2.btn.addHint(_local2.o.alt);
break;
case "1936" :
_local2.o = {alt:"place your bet on \"19 to 36\" (pays 1 to 1)", pay:1, maximum:100, order:_local3 + 1};
_local2.btn.addHint(_local2.o.alt);
break;
case "red" :
_local2.o = {alt:"place your bet on \"red\" (pays 1 to 1)", pay:1, maximum:100, order:_local3 + 1};
_local2.btn.addHint(_local2.o.alt);
break;
case "black" :
_local2.o = {alt:"place your bet on \"black\" (pays 1 to 1)", pay:1, maximum:100, order:_local3 + 1};
_local2.btn.addHint(_local2.o.alt);
break;
case "even" :
_local2.o = {alt:"place your bet on \"even\" (pays 1 to 1)", pay:1, maximum:100, order:_local3 + 1};
_local2.btn.addHint(_local2.o.alt);
break;
case "odd" :
_local2.o = {alt:"place your bet on \"odd\" (pays 1 to 1)", pay:1, maximum:100, order:_local3 + 1};
_local2.btn.addHint(_local2.o.alt);
}
}
} else if (_local4.length == 2) {
_local2.o = {alt:((("place your bet on \"" + Number(_local4[0])) + " and ") + Number(_local4[1])) + "\" (pays 17 to 1)", pay:17, maximum:100, order:_local3 + 1};
_local2.btn.addHint(_local2.o.alt);
} else if (_local4.length == 3) {
_local2.o = {alt:((((("place your bet on \"" + Number(_local4[0])) + ",") + Number(_local4[1])) + ",") + Number(_local4[2])) + "\" (pays 11 to 1)", pay:11, maximum:100, order:_local3 + 1};
_local2.btn.addHint(_local2.o.alt);
} else if (_local4.length == 4) {
_local2.o = {alt:((((((("place your bet on \"" + Number(_local4[0])) + ",") + Number(_local4[1])) + ",") + Number(_local4[2])) + ",") + Number(_local4[3])) + "\" (pays 8 to 1)", pay:8, maximum:100, order:_local3 + 1};
_local2.btn.addHint(_local2.o.alt);
} else if (_local4.length == 5) {
_local2.o = {alt:"place your bet on \"0,00,1,2,3\" (pays 6 to 1)", pay:6, maximum:100, order:_local3 + 1};
_local2.btn.addHint(_local2.o.alt);
} else if (_local4.length == 6) {
_local2.o = {alt:((((((((((("place your bet on \"" + Number(_local4[0])) + ",") + Number(_local4[1])) + ",") + Number(_local4[2])) + ",") + Number(_local4[3])) + ",") + Number(_local4[4])) + ",") + Number(_local4[5])) + "\" (pays 5 to 1)", pay:5, maximum:100, order:_local3 + 1};
_local2.btn.addHint(_local2.o.alt);
}
_local2.o.stakesum = 0;
_local3++;
}
}
function startSpinReminder() {
clearInterval(idtSpinReminder);
idtSpinReminder = setInterval(this, "openSpinAlert", 5000);
}
function openSpinAlert() {
trace("openSpinAlert");
clearInterval(idtSpinReminder);
displayMessageBox("Alert", " \nYou have 5 Seconds to spin roulette wheel.\"", "MB_EXCLAMATION", "Spin");
idtSpinReminder = setInterval(this, "cleanUpTable", 5000);
}
function cleanUpTable() {
trace("cleanUpTable");
clearInterval(idtSpinReminder);
msgb.removeMovieClip();
endRouletteSpinning(true);
}
function setBet(e, currbet) {
if (bLockTable) {
_root.sndWrong.start();
return(undefined);
}
nCurrBet = currbet;
var _local3 = 0;
while (_local3 < aBetValue.length) {
rDC["btnChip" + aBetValue[_local3]].gotoAndStop("enable");
_local3++;
}
e.gotoAndStop("selected");
_root.sndChip.start();
}
function onOverBetPlace(e) {
}
function setStake(e) {
if (bLockTable) {
_root.sndWrong.start();
return(undefined);
}
if (!checkUserBalance()) {
_root.sndWrong.start();
return(undefined);
}
_root.sndChip.start();
var _local7;
var _local14;
_local14 = false;
_local7 = 0;
while (_local7 < aStakedPlaces.length) {
if (aStakedPlaces[_local7] == e._name) {
_local14 = true;
break;
}
_local7++;
}
if (!_local14) {
aStakedPlaces.push(e._name);
}
var _local8 = (e.o.stakesum = e.o.stakesum + nCurrBet);
var _local10 = rDC.mcStakePlaces.createEmptyMovieClip(e._name, e.o.order);
var _local4;
var _local3;
var _local6;
var _local5;
var _local9 = [];
_local7 = 0;
while (_local7 < aBetValue.length) {
_local4 = 0;
while (_local8 >= aBetValue[_local7]) {
_local8 = _local8 - aBetValue[_local7];
_local4++;
}
_local9.push({value:aBetValue[_local7], num:_local4});
_local7++;
}
_local6 = 0;
_local7 = 0;
while (_local7 < _local9.length) {
if (_local9[_local7].value > 0) {
_local4 = _local9[_local7].num;
_local3 = 0;
while (_local3 < _local4) {
_local5 = _local10.attachMovie("id_chip4stake" + _local9[_local7].value, "s" + (_local6 + _local3), _local6 + _local3);
_local5._x = 0;
_local5._y = -5 * (_local6 + _local3);
_local5._xscale = (_local5._yscale = 75);
_local3++;
}
_local6 = _local6 + _local4;
}
_local7++;
}
_local10._x = e._x;
_local10._y = e._y;
}
function checkUserBalance() {
if (nUserBalance < nCurrBet) {
displayMessageBox("Warning", " \nYou do not have sufficient funds for this bet.\"", "MB_EXCLAMATION", "Ok");
return(false);
}
if ((nTableStake + nCurrBet) > nMaxBet) {
displayMessageBox("Warning", (" \nMaximum stake on the table is " + nMaxBet) + ".", "MB_EXCLAMATION", "Ok");
return(false);
}
nUserBalance = nUserBalance - nCurrBet;
nTableStake = nTableStake + nCurrBet;
rDC.tfYourPoints.text = new CFormatterX(nUserBalance).getAsString();
rDC.tfBetsPlaced.text = new CFormatterX(nTableStake).getAsString();
rDC.tfYourPointsShadow.text = new CFormatterX(nUserBalance).getAsString();
rDC.tfBetsPlacedShadow.text = new CFormatterX(nTableStake).getAsString();
return(true);
}
function displayMessageBox(title, msg, sign, sControls) {
bLockTable = true;
com.potapenko.managers.Hint.bShowHints = false;
msgb = rDC.attachMovie("id_msgbox", "msgb", 1001);
msgb._x = 260;
msgb._y = 190;
msgb.tfMessage.text = msg;
msgb.tfTitle.text = title;
msgb.btnOk._visible = false;
msgb.btnYes._visible = false;
msgb.btnNo._visible = false;
msgb.btnSpin._visible = false;
msgb.btnCancel._visible = false;
msgb.btnCheat._visible = false;
msgb.btnLater._visible = false;
if (sControls == "Ok") {
msgb.btnOk._visible = true;
} else if (sControls == "YesNo") {
msgb.btnYes._visible = true;
msgb.btnNo._visible = true;
} else if (sControls == "Spin") {
msgb.btnSpin._visible = true;
msgb.btnCancel._visible = true;
} else if (sControls == "CheatLater") {
msgb.btnCheat._visible = true;
msgb.btnLater._visible = true;
}
switch (sign) {
case "MB_EXCLAMATION" :
msgb.mcSign.gotoAndStop("exclamation");
break;
case "MB_OFFERING" :
msgb.mcSign.gotoAndStop("offering");
}
}
function onMessageBoxButtonOkRelease(box) {
bLockTable = false;
box.removeMovieClip();
com.potapenko.managers.Hint.bShowHints = true;
}
function onMessageBoxButtonSpinRelease(box) {
bLockTable = false;
clearInterval(idtSpinReminder);
box.removeMovieClip();
com.potapenko.managers.Hint.bShowHints = true;
spinRoulette();
}
function onMessageBoxButtonCheatRelease(box) {
bLockTable = false;
box.removeMovieClip();
com.potapenko.managers.Hint.bShowHints = true;
rDC.mcComm.addCSAMsg(new XML(("<balancechanged amount=\"" + nPrevTableStake) + "\" sparklecheatused=\"1\" processname=\"roulette\" />"));
rDC.onCheatEnable();
}
function onMessageBoxButtonCancelRelease(box) {
bLockTable = false;
box.removeMovieClip();
com.potapenko.managers.Hint.bShowHints = true;
}
function onMessageBoxButtonLaterRelease(box) {
bLockTable = false;
box.removeMovieClip();
com.potapenko.managers.Hint.bShowHints = true;
}
function onMessageBoxButtonYesRelease(box) {
bLockTable = false;
box.removeMovieClip();
com.potapenko.managers.Hint.bShowHints = true;
if (sMsgBoxType == "ExitAreYouSure") {
rDC.mcComm.addCSAMsg(new XML("<casinolobby/>"));
rDC.mcComm.addCSAMsg(new XML("<gamefinished/>"));
bLockTable = false;
box.removeMovieClip();
com.potapenko.managers.Hint.bShowHints = true;
sMsgBoxType = "";
}
}
function onMessageBoxButtonNoRelease(box) {
bLockTable = false;
box.removeMovieClip();
com.potapenko.managers.Hint.bShowHints = true;
if (sMsgBoxType == "ExitAreYouSure") {
bLockTable = false;
box.removeMovieClip();
com.potapenko.managers.Hint.bShowHints = true;
sMsgBoxType = "";
}
}
function clearAllBets() {
if (bLockTable) {
return(undefined);
}
if (aStakedPlaces.length == 0) {
return(undefined);
}
bLockTable = true;
var _local2 = 0;
while (_local2 < aStakedPlaces.length) {
g_conv.anim(rDC.mcStakePlaces[aStakedPlaces[_local2]], {_x:136, _y:296}, {speed:10, duration:50, to_end:true});
g_conv.put(this, "restoreBalance", 50, rDC.mcBetPlaces[aStakedPlaces[_local2]].o);
g_conv.put(rDC.mcStakePlaces[aStakedPlaces[_local2]], "removeMovieClip", 0);
_local2++;
}
g_conv.put(this, "finishClearingTable", 0);
aStakedPlaces = [];
}
function clearBalance(o) {
o.stakesum = 0;
}
function restoreBalance(o) {
nUserBalance = nUserBalance + o.stakesum;
nTableStake = nTableStake - o.stakesum;
o.stakesum = 0;
rDC.tfYourPoints.text = new CFormatterX(nUserBalance).getAsString();
rDC.tfBetsPlaced.text = new CFormatterX(nTableStake).getAsString();
rDC.tfYourPointsShadow.text = new CFormatterX(nUserBalance).getAsString();
rDC.tfBetsPlacedShadow.text = new CFormatterX(nTableStake).getAsString();
}
function addBalance(o) {
o.stakesum = 0;
}
function finishClearingTable() {
bLockTable = false;
}
function spinRoulette() {
if (bLockTable) {
return(undefined);
}
if (aStakedPlaces.length == 0) {
_root.sndWrong.start();
displayMessageBox("Warning", " \nYou have no stakes on the table.", "MB_EXCLAMATION", "Ok");
return(false);
}
clearInterval(idtSpinReminder);
bLockTable = true;
nCurrNumber = random(38);
sCurrNumber = String(nCurrNumber);
if (nCurrNumber < 10) {
sCurrNumber = "0" + sCurrNumber;
}
com.potapenko.managers.Hint.bShowHints = false;
rDC.mcComm.addCSAMsg(new XML(("<balancechanged amount=\"-" + nTableStake) + "\" />"));
nPrevTableStake = nTableStake;
rDC.doSpinRoulette();
}
function endRouletteSpinning(bExecReminder) {
var _local5 = 0;
var _local6 = 0;
var _local7 = 0;
if (bExecReminder != true) {
var _local14 = rDC.mcBetPlaces["bp_" + sCurrNumber];
var _local15 = rDC.mcStakePlaces.createEmptyMovieClip(_local14._name, _local14.o.order);
_local15.attachMovie("id_marker", "marker", 0);
_local15._x = _local14._x;
_local15._y = _local14._y;
updateRecentNumbers();
} else {
nCurrNumber = 999;
sCurrNumber = "999";
}
g_conv.stop();
var _local4;
var _local8;
var _local3;
_local4 = 0;
while (_local4 < aStakedPlaces.length) {
_local8 = rDC.mcBetPlaces[aStakedPlaces[_local4]];
_local3 = 0;
if (_local8.o.stakesum > 0) {
if ((nCurrNumber > 0) && (nCurrNumber < 37)) {
if (aStakedPlaces[_local4] == "bp_121") {
if (nCurrNumber < 13) {
trace("bp_121");
_local3 = 1;
} else {
_local3 = -1;
}
} else if ((_local3 == 0) && (aStakedPlaces[_local4] == "bp_121122")) {
if (nCurrNumber < 25) {
trace("bp_121122");
_local3 = 1;
} else {
_local3 = -1;
}
} else if ((_local3 == 0) && (aStakedPlaces[_local4] == "bp_122")) {
if ((nCurrNumber < 25) && (nCurrNumber > 12)) {
trace("bp_122");
_local3 = 1;
} else {
_local3 = -1;
}
} else if ((_local3 == 0) && (aStakedPlaces[_local4] == "bp_122123")) {
if (nCurrNumber > 12) {
trace("bp_121122");
_local3 = 1;
} else {
_local3 = -1;
}
} else if ((_local3 == 0) && (aStakedPlaces[_local4] == "bp_123")) {
if (nCurrNumber > 24) {
trace("bp_123");
_local3 = 1;
} else {
_local3 = -1;
}
} else if ((_local3 == 0) && (aStakedPlaces[_local4] == "bp_red")) {
if (aColors[nCurrNumber] == 1) {
trace("bp_red");
_local3 = 1;
} else {
_local3 = -1;
}
} else if ((_local3 == 0) && (aStakedPlaces[_local4] == "bp_black")) {
if (aColors[nCurrNumber] == 0) {
trace("bp_black");
_local3 = 1;
} else {
_local3 = -1;
}
} else if ((_local3 == 0) && (aStakedPlaces[_local4] == "bp_118")) {
if (nCurrNumber < 19) {
trace("bp_118");
_local3 = 1;
} else {
_local3 = -1;
}
} else if ((_local3 == 0) && (aStakedPlaces[_local4] == "bp_1936")) {
if (nCurrNumber > 18) {
trace("bp_1936");
_local3 = 1;
} else {
_local3 = -1;
}
} else if ((_local3 == 0) && (aStakedPlaces[_local4] == "bp_even")) {
if ((nCurrNumber > 0) && ((nCurrNumber % 2) == 0)) {
trace("bp_even");
_local3 = 1;
} else {
_local3 = -1;
}
} else if ((_local3 == 0) && (aStakedPlaces[_local4] == "bp_odd")) {
if ((nCurrNumber % 2) == 1) {
trace("bp_odd");
_local3 = 1;
} else {
_local3 = -1;
}
} else if ((_local3 == 0) && (aStakedPlaces[_local4] == "bp_2213")) {
if ((nCurrNumber % 3) == 0) {
trace("bp_2213");
_local3 = 1;
} else {
_local3 = -1;
}
} else if ((_local3 == 0) && (aStakedPlaces[_local4] == "bp_22122213")) {
if (((nCurrNumber % 3) == 0) || ((nCurrNumber % 3) == 2)) {
trace("bp_22122213");
_local3 = 1;
} else {
_local3 = -1;
}
} else if ((_local3 == 0) && (aStakedPlaces[_local4] == "bp_2212")) {
if ((nCurrNumber % 3) == 2) {
trace("bp_2212");
_local3 = 1;
} else {
_local3 = -1;
}
} else if ((_local3 == 0) && (aStakedPlaces[_local4] == "bp_22112212")) {
if (((nCurrNumber % 3) == 1) || ((nCurrNumber % 3) == 2)) {
trace("bp_22112212");
_local3 = 1;
} else {
_local3 = -1;
}
} else if ((_local3 == 0) && (aStakedPlaces[_local4] == "bp_2211")) {
if ((nCurrNumber % 3) == 1) {
trace("bp_2211");
_local3 = 1;
} else {
_local3 = -1;
}
} else if ((_local3 == 0) && (aStakedPlaces[_local4].indexOf(sCurrNumber) != -1)) {
trace(_local3);
_local3 = 1;
}
} else if ((nCurrNumber == 0) && (aStakedPlaces[_local4] == "bp_00")) {
_local3 = 1;
} else if ((nCurrNumber == 37) && (aStakedPlaces[_local4] == "bp_37")) {
_local3 = 1;
}
if (_local3 == 1) {
g_conv.put(this, "growUpStake", 0, aStakedPlaces[_local4]);
g_conv.anim(rDC.mcStakePlaces[aStakedPlaces[_local4]], {_x:136, _y:296}, {speed:10, duration:100, to_end:true});
g_conv.put(this, "addBalance", 200, rDC.mcBetPlaces[aStakedPlaces[_local4]].o);
_local5 = _local5 + (rDC.mcBetPlaces[aStakedPlaces[_local4]].o.stakesum * (rDC.mcBetPlaces[aStakedPlaces[_local4]].o.pay + 1));
_local6 = _local6 + (rDC.mcBetPlaces[aStakedPlaces[_local4]].o.stakesum * rDC.mcBetPlaces[aStakedPlaces[_local4]].o.pay);
trace("Stake:" + rDC.mcBetPlaces[aStakedPlaces[_local4]].o.stakesum);
g_conv.put(rDC.mcStakePlaces[aStakedPlaces[_local4]], "removeMovieClip", 0);
} else {
g_conv.anim(rDC.mcStakePlaces[aStakedPlaces[_local4]], {_x:450, _y:142}, {speed:10, duration:100, to_end:true});
g_conv.put(this, "clearBalance", 200, rDC.mcBetPlaces[aStakedPlaces[_local4]].o);
_local7 = _local7 + rDC.mcBetPlaces[aStakedPlaces[_local4]].o.stakesum;
g_conv.put(rDC.mcStakePlaces[aStakedPlaces[_local4]], "removeMovieClip", 0);
}
}
_local4++;
}
g_conv.put(trace, 2000, ".");
if (bExecReminder) {
g_conv.put(this, "finishRound", 0, true);
} else {
g_conv.put(this, "finishRound", 0);
}
if (_local5 > 0) {
if (_local5 > 100) {
_root.sndWinBig.start();
} else {
_root.sndWin.start();
}
rDC.mcWinLoseMsgBox.body.tfText.text = "You Win!";
rDC.mcWinLoseMsgBox.body.tfAward.text = _local6;
rDC.mcWinLoseMsgBox.body.tfTextShadow.text = "You Win!";
rDC.mcWinLoseMsgBox.body.tfAwardShadow.text = _local6;
rDC.mcComm.addCSAMsg(new XML(("<balancechanged amount=\"" + _local5) + "\" />"));
nUserBalance = nUserBalance + _local5;
rDC.tfYourPoints.text = new CFormatterX(nUserBalance).getAsString();
rDC.tfBetsPlaced.text = new CFormatterX(nTableStake).getAsString();
rDC.tfYourPointsShadow.text = new CFormatterX(nUserBalance).getAsString();
rDC.tfBetsPlacedShadow.text = new CFormatterX(nTableStake).getAsString();
bWinForCheat = true;
} else {
_root.sndLose.start();
rDC.mcWinLoseMsgBox.body.tfText.text = "You Lose!";
rDC.mcWinLoseMsgBox.body.tfAward.text = _local7;
rDC.mcWinLoseMsgBox.body.tfTextShadow.text = "You Lose!";
rDC.mcWinLoseMsgBox.body.tfAwardShadow.text = _local7;
bWinForCheat = false;
}
rDC.mcWinLoseMsgBox.play();
g_conv.play();
aStakedPlaces = [];
}
function growUpStake(s) {
var _local7 = (rDC.mcBetPlaces[s].o.stakesum = rDC.mcBetPlaces[s].o.stakesum + Math.ceil(rDC.mcBetPlaces[s].o.stakesum * rDC.mcBetPlaces[s].o.pay));
var _local9 = rDC.mcStakePlaces[s];
var _local3;
var _local6;
var _local2;
var _local5;
var _local4;
var _local8 = [];
_local6 = 0;
while (_local6 < aBetValue.length) {
_local3 = 0;
while (_local7 >= aBetValue[_local6]) {
_local7 = _local7 - aBetValue[_local6];
_local3++;
}
_local8.push({value:aBetValue[_local6], num:_local3});
_local6++;
}
_local5 = 0;
_local6 = 0;
while (_local6 < _local8.length) {
if (_local8[_local6].value > 0) {
_local3 = _local8[_local6].num;
_local2 = 0;
while (_local2 < _local3) {
_local4 = _local9.attachMovie("id_chip4stake" + _local8[_local6].value, "s" + (_local5 + _local2), _local5 + _local2);
_local4._x = 0;
_local4._y = -5 * (_local5 + _local2);
_local4._xscale = (_local4._yscale = 75);
_local2++;
}
_local5 = _local5 + _local3;
}
_local6++;
}
}
function finishRound(bExecReminder) {
nTableStake = 0;
rDC.tfBetsPlaced.text = new CFormatterX(nTableStake).getAsString();
rDC.tfBetsPlacedShadow.text = new CFormatterX(nTableStake).getAsString();
bLockTable = false;
var _local2 = rDC.mcStakePlaces["bp_" + sCurrNumber].removeMovieClip();
com.potapenko.managers.Hint.bShowHints = true;
rDC.mcWinLoseMsgBox.play();
if (bExecReminder) {
} else {
rDC.displayZOV();
}
}
function updateRecentNumbers() {
var _local2;
_local2 = 7;
while (_local2 > 1) {
rDC.mcPlayedNumbers["tfb" + _local2].text = rDC.mcPlayedNumbers["tfb" + (_local2 - 1)].text;
rDC.mcPlayedNumbers["tfg" + _local2].text = rDC.mcPlayedNumbers["tfg" + (_local2 - 1)].text;
rDC.mcPlayedNumbers["tfr" + _local2].text = rDC.mcPlayedNumbers["tfr" + (_local2 - 1)].text;
rDC.mcPlayedNumbers["tfb" + (_local2 - 1)].text = "";
rDC.mcPlayedNumbers["tfg" + (_local2 - 1)].text = "";
rDC.mcPlayedNumbers["tfr" + (_local2 - 1)].text = "";
_local2--;
}
if ((nCurrNumber != 0) && (nCurrNumber != 37)) {
switch (aColors[nCurrNumber]) {
case 0 :
rDC.mcPlayedNumbers.tfb1.text = nCurrNumber;
break;
case 1 :
rDC.mcPlayedNumbers.tfr1.text = nCurrNumber;
}
} else if (nCurrNumber != 37) {
rDC.mcPlayedNumbers.tfg1.text = nCurrNumber;
} else {
rDC.mcPlayedNumbers.tfg1.text = "00";
}
}
}
Symbol 359 MovieClip [__Packages.mx.transitions.easing.Strong] Frame 0
class mx.transitions.easing.Strong
{
function Strong () {
}
static function easeIn(t, b, c, d) {
t = t / d;
return((((((c * (t / d)) * t) * t) * t) * t) + b);
}
static function easeOut(t, b, c, d) {
t = (t / d) - 1;
return((c * (((((((t / d) - 1) * t) * t) * t) * t) + 1)) + b);
}
static function easeInOut(t, b, c, d) {
t = t / (d / 2);
if ((t / (d / 2)) < 1) {
return(((((((c / 2) * t) * t) * t) * t) * t) + b);
}
t = t - 2;
return(((c / 2) * ((((((t - 2) * t) * t) * t) * t) + 2)) + b);
}
}
Symbol 360 MovieClip [__Packages.mx.transitions.OnEnterFrameBeacon] Frame 0
class mx.transitions.OnEnterFrameBeacon
{
function OnEnterFrameBeacon () {
}
static function init() {
var _local3 = _global.MovieClip;
if (!_root.__OnEnterFrameBeacon) {
mx.transitions.BroadcasterMX.initialize(_local3);
var _local4 = _root.createEmptyMovieClip("__OnEnterFrameBeacon", 9876);
_local4.onEnterFrame = function () {
_global.MovieClip.broadcastMessage("onEnterFrame");
};
}
}
}
Symbol 361 MovieClip [__Packages.mx.transitions.BroadcasterMX] Frame 0
class mx.transitions.BroadcasterMX
{
var _listeners;
function BroadcasterMX () {
}
static function initialize(o, dontCreateArray) {
if (o.broadcastMessage != undefined) {
delete o.broadcastMessage;
}
o.addListener = mx.transitions.BroadcasterMX.prototype.addListener;
o.removeListener = mx.transitions.BroadcasterMX.prototype.removeListener;
if (!dontCreateArray) {
o._listeners = new Array();
}
}
function addListener(o) {
removeListener(o);
if (broadcastMessage == undefined) {
broadcastMessage = mx.transitions.BroadcasterMX.prototype.broadcastMessage;
}
return(_listeners.push(o));
}
function removeListener(o) {
var _local2 = _listeners;
var _local3 = _local2.length;
while (_local3--) {
if (_local2[_local3] == o) {
_local2.splice(_local3, 1);
if (!_local2.length) {
broadcastMessage = undefined;
}
return(true);
}
}
return(false);
}
function broadcastMessage() {
var _local6 = String(arguments.shift());
var _local4 = _listeners.concat();
var _local5 = _local4.length;
var _local3 = 0;
while (_local3 < _local5) {
_local4[_local3][_local6].apply(_local4[_local3], arguments);
_local3++;
}
}
}
Symbol 362 MovieClip [__Packages.com.potapenko.managers.Conv] Frame 0
class com.potapenko.managers.Conv extends Object
{
var __aConveyor, __frameTimer, __frame;
function Conv (notFrames) {
super();
id = gid++;
__aConveyor = new Array();
if (!__init) {
__init = true;
}
if (!notFrames) {
__frameTimer = new Object();
__frameTimer.root = this;
__frameTimer.onEnterFrame = function () {
if (this.sleep) {
return(undefined);
}
this.nTime++;
if (this.nTime >= this.timeOut) {
this.root.engine();
}
};
_global.MovieClip.addListener(__frameTimer);
__pauseValue = "1";
} else {
__pauseValue = 50;
}
engine();
}
static function getInstance() {
return(__instance);
}
function play() {
if (__conveyorON) {
return(undefined);
}
if (__frame) {
__frameTimer.sleep = false;
}
__conveyorON = true;
}
function stop() {
if (__frame) {
__frameTimer.sleep = true;
}
__conveyorON = false;
}
function pause(p) {
__aConveyor = [[empty, p]].concat(__aConveyor);
}
function addPause(p) {
put(empty, p);
}
function put() {
if (__noSound && (arguments[1] == "newSound")) {
return(undefined);
}
__aConveyor.push(arguments);
length++;
if ((!__bookmarks) && (__aConveyor.length > (200 + __shorts))) {
var _local3 = __aConveyor.splice(100 + __shorts);
__shorts++;
put(function () {
this.__aConveyor = arguments[0].concat(this.__aConveyor);
this.__shorts--;
}, this, 0, _local3);
}
}
function include() {
put(this, "__addBookmark", 0);
put.apply(this, arguments);
put(this, "__removeBookmark", 0);
}
function anim(mc_anim, mc_to, params_ob) {
var _local8 = params_ob.to_end;
var _local27 = params_ob.speed || 20;
var _local15 = params_ob.scale;
var _local16 = params_ob.alpha;
var _local30 = mc_to._x;
var _local32 = mc_to._y;
var _local28 = params_ob.delta;
var _local6 = params_ob.easing;
var _local19 = params_ob.frame || "1";
var _local26 = params_ob.duration;
if (!_local6) {
_local6 = easingFunc;
}
var _local14;
var _local13;
var _local11;
var _local12;
var _local9;
var _local33 = mc_anim._x;
var _local31 = mc_anim._y;
if (_local15) {
var _local18 = mc_anim._xscale;
var _local17 = mc_anim._yscale;
var _local24 = _local18 - mc_to._xscale;
var _local25 = _local17 - mc_to._yscale;
}
if (_local16) {
var _local20 = mc_anim._alpha;
var _local22 = mc_to._alpha - _local20;
}
var _local29;
_local29 = 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 _local7 = __calculatePath(mc_anim, mc_to, _local28, _local27, _local6, _local26);
var _local4 = _local7.length;
if (_local26) {
if (typeof(_local26) == "string") {
_local4 = _local26;
} else {
_local19 = _local26 / _local4;
}
}
if (isNaN(_local4)) {
return(undefined);
}
put(mc_anim, "swapDepths", 0, __getDepth(mc_anim) + 1000);
put(_root, "newSound", 0, "movie", 50);
var _local21 = new Array();
var _local3 = 1;
while (_local3 <= _local4) {
if ((!_local8) && (_local3 >= (_local4 - (_local4 / 5)))) {
break;
}
if (__turbo) {
_local3 = (_local8 ? (_local4) : (_local4 - (_local4 / 5)));
}
if (_local15) {
_local11 = _local6(_local3, _local18, _local24, _local4);
_local12 = _local6(_local3, _local17, _local25, _local4);
put(__scaleTo, 0, mc_anim, _local11, _local12);
}
if (_local16) {
_local9 = _local6(_local3, _local20, _local22, _local4);
put(__alphaTo, 0, mc_anim, _local9);
}
_local14 = _local7[_local3 - 1]._x;
_local13 = _local7[_local3 - 1]._y;
put(__moveTo, _local19, mc_anim, _local14, _local13);
_local21.push({x:_local14, y:_local13});
_local3++;
}
put(mc_anim, "swapDepths", 0, mc_anim.getDepth());
put(mc_anim, "_x", 0, mc_to._x);
put(mc_anim, "_y", 0, mc_to._y);
if (_local15) {
put(mc_anim, "_xscale", 0, mc_to._xscale);
put(mc_anim, "_yscale", 0, mc_to._yscale);
}
if (_local16) {
put(mc_anim, "_alpha", 0, mc_to._alpha);
}
return(_local21);
}
function turbo_On() {
__turbo = true;
}
function turbo_Off() {
__turbo = false;
}
static function create(notFrames) {
return(new com.potapenko.managers.Conv(notFrames));
}
function close() {
stop();
_global.MovieClip.removeListener(__frameTimer);
clearInterval(__interval);
}
function engine() {
if (!__conveyorON) {
pause(__pauseValue);
}
var cTime;
var tA = __aConveyor[0];
if (__aConveyor.length == 0) {
cTime = __pauseValue;
} else {
__aConveyor.shift();
length--;
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(__interval);
if (cTime != 0) {
var timeType = typeof(cTime);
var timeValue = Number(cTime);
if (timeType == "string") {
__frameTimer.sleep = false;
if (__turbo) {
timeValue = 1;
}
__frameTimer.timeOut = timeValue;
__frameTimer.nTime = 0;
__frame = true;
} else if (timeType == "number") {
__frameTimer.sleep = true;
__interval = setInterval(this, "engine", timeValue);
__frame = false;
} else {
engine();
}
} else {
engine();
}
}
function __addBookmark() {
__aConveyor.push("#__bookmarks#");
__bookmarks++;
}
function __removeBookmark(rev) {
if (__bookmarks <= 0) {
return(undefined);
}
__bookmarks--;
var _local3 = __aConveyor.length;
var _local2 = [];
while ((__aConveyor[__aConveyor.length - 1] != "#__bookmarks#") && ((_local3--) > 0)) {
_local2.push(__aConveyor.pop());
}
__aConveyor.pop();
if (!rev) {
_local2.reverse();
}
__aConveyor = _local2.concat(__aConveyor);
}
function __getDepth(mc_anim) {
var _local1 = mc_anim._parent.getNextHighestDepth();
if (!_local1) {
_local1 = 10777;
}
return(_local1);
}
function __moveTo(mc, x, y) {
mc._x = Math.round(x);
mc._y = Math.round(y);
updateAfterEvent();
}
function __scaleTo(mc, xs, ys) {
mc._xscale = Math.round(xs);
mc._yscale = Math.round(ys);
updateAfterEvent();
}
function __alphaTo(mc, al) {
mc._alpha = Math.round(al);
updateAfterEvent();
}
function __calculatePath(start, to_point, delta, speed, func, duration) {
var _local20 = [];
if (delta) {
var _local13 = mx.transitions.easing.Regular.easeInOut;
var _local12 = mx.transitions.easing.Regular.easeInOut;
var _local14 = mx.transitions.easing.Regular.easeInOut;
var _local26 = {};
var _local2 = start;
var _local7 = to_point;
var _local22 = delta;
var _local3 = {};
_local26._x = (_local2._x + _local7._x) / 2;
_local26._y = (_local2._y + _local7._y) / 2;
_local3._x = _local22._x + (_local22._x - _local26._x);
_local3._y = _local22._y + (_local22._y - _local26._y);
var _local4 = [];
var _local8 = [];
var _local35 = __lengthCalculator(_local2, _local7);
var _local32 = __lengthCalculator(_local2, _local22);
var _local31 = __lengthCalculator(_local22, _local7);
var _local30 = _local32 + _local31;
var _local9 = Math.round(_local30 / speed);
if (_local9 < 5) {
_local9 = 5;
}
var _local10 = Math.round(_local9 / 2);
var _local11 = _local9 - _local10;
var _local16;
var _local15;
var _local5;
var _local6 = 1;
while (_local6 <= _local9) {
_local16 = _local14(_local6, _local2._x, _local7._x - _local2._x, _local9);
_local15 = _local14(_local6, _local2._y, _local7._y - _local2._y, _local9);
_local5 = {_x:_local16, _y:_local15};
_local4.push(_local5);
_local6++;
}
_local6 = 1;
while (_local6 <= _local10) {
_local16 = _local13(_local6, _local2._x, _local3._x - _local2._x, _local10);
_local15 = _local13(_local6, _local2._y, _local3._y - _local2._y, _local10);
_local5 = {_x:_local16, _y:_local15};
_local8.push(_local5);
_local6++;
}
_local6 = 1;
while (_local6 <= _local11) {
_local16 = _local12(_local6, _local3._x, _local7._x - _local3._x, _local11);
_local15 = _local12(_local6, _local3._y, _local7._y - _local3._y, _local11);
_local5 = {_x:_local16, _y:_local15};
_local8.push(_local5);
_local6++;
}
_local6 = 0;
while (_local6 < _local4.length) {
_local4[_local6]._x = (_local4[_local6]._x + _local8[_local6]._x) / 2;
_local4[_local6]._y = (_local4[_local6]._y + _local8[_local6]._y) / 2;
_local6++;
}
_local20 = _local4;
} else {
var _local30 = __lengthCalculator(start, to_point);
if (duration && (typeof(duration) == "string")) {
var _local9 = Number(duration);
} else {
var _local9 = Math.round(_local30 / speed);
}
if ((_local9 < 5) && (!duration)) {
var _local9 = 5;
}
var _local24 = to_point._x - start._x;
var _local23 = to_point._y - start._y;
var _local21 = start._x;
var _local25 = start._y;
var _local6 = 1;
while (_local6 <= _local9) {
var _local16 = func(_local6, _local21, _local24, _local9);
var _local15 = func(_local6, _local25, _local23, _local9);
_local20.push({_x:_local16, _y:_local15});
_local6++;
}
}
return(_local20);
}
function __lengthCalculator(a, b) {
return(Math.sqrt(Math.pow(Math.abs(a._x - b._x), 2) + Math.pow(Math.abs(a._y - b._y), 2)));
}
var __conveyorON = true;
var __interval = 0;
var __bookmarks = 0;
var __shorts = 0;
var __turbo = false;
var __noSound = false;
var __pauseValue = null;
var length = 0;
function empty() {
}
static var easingFunc = mx.transitions.easing.Strong.easeInOut;
static var __beacon = mx.transitions.OnEnterFrameBeacon.init();
static var __instance = new com.potapenko.managers.Conv();
static var __init = false;
static var gid = 0;
var id = 0;
}
Symbol 363 MovieClip [__Packages.mx.transitions.easing.Regular] Frame 0
class mx.transitions.easing.Regular
{
function Regular () {
}
static function easeIn(t, b, c, d) {
t = t / d;
return(((c * (t / d)) * t) + b);
}
static function easeOut(t, b, c, d) {
t = t / d;
return((((-c) * (t / d)) * (t - 2)) + b);
}
static function easeInOut(t, b, c, d) {
t = t / (d / 2);
if ((t / (d / 2)) < 1) {
return((((c / 2) * t) * t) + b);
}
t--;
t--;
return((((-c) / 2) * ((t * (t - 2)) - 1)) + b);
}
}
Symbol 364 MovieClip [__Packages.com.potapenko.managers.Hint] Frame 0
class com.potapenko.managers.Hint
{
static var bShowHints, __curent;
var __owner, __point, closeListener, __holder, border_mc, shadow_mc;
function Hint (text, owner) {
__owner = owner;
__init();
drawHint(text);
}
static function init() {
if (!__mixingInited) {
__mixingInited = true;
initMixing();
bShowHints = true;
}
}
function setPoint(p) {
__point = p;
}
function __init() {
Stage.addListener(this);
Mouse.addListener(this);
var _local2 = (closeListener = {});
_local2.owner = this;
_local2.onMouseDown = (_local2.onKeyDown = (_local2.onKeyUp = function () {
var _local2 = this.owner.__owner;
if (_local2) {
_local2.hideHint();
} else {
this.owner.close();
}
}));
Key.addListener(_local2);
Mouse.addListener(_local2);
}
static function initMixing() {
Button.prototype.showHint = (MovieClip.prototype.showHint = function (text) {
if (this.__hint) {
this.hideHint();
}
this.__hint = new com.potapenko.managers.Hint(text, this);
});
MovieClip.prototype.showHintInPoint = function (text, point) {
if (this.__hint) {
this.hideHint();
}
var _local2 = (this.__hint = new com.potapenko.managers.Hint(text, this));
_local2.setPoint(point);
};
Button.prototype.hideHint = (MovieClip.prototype.hideHint = function () {
this.__hint.close();
delete this.__hint;
});
Button.prototype.addHint = (MovieClip.prototype.addHint = function (t) {
var _local3 = this;
var _local5 = function () {
this.showHint(t);
};
var _local4 = function () {
this.hideHint();
};
if (arguments.length > 1) {
_local5 = arguments[0];
_local4 = arguments[1];
}
_local3.onRollOver = _local5;
_local3.onDragOut = (_local3.onRollOut = _local4);
_local3.useHandCursor = false;
});
Mouse.showHint = function (text) {
var _local3 = _root.creatSqv("tmp_sqv_hint", 8919, 10, 0, true);
_local3._alpha = 0;
_local3._x = _root._xmouse;
_local3._y = _root._ymouse;
_local3.showHint(text);
_local3.onRollOut = (_local3.onDragOut = function () {
this.hideHint();
this.removeMovieClip();
});
};
_global.ASSetPropFlags(MovieClip.prototype, "showHint,hideHint,addHint", 1);
_global.ASSetPropFlags(Button.prototype, "showHint,hideHint,addHint", 1);
_global.ASSetPropFlags(Button, "showHint", 1);
}
function drawHint(text) {
if (!bShowHints) {
return(undefined);
}
if (__curent) {
__curent.__owner.hideHint();
}
__curent = this;
var _local3 = (__holder = _root.createEmptyMovieClip("hint__mc", _root.getNextHighestDepth()));
__holder._xscale = (__holder._yscale = __scale);
_local3.owner = this;
_local3.onEnterFrame = function () {
delete this.onEnterFrame;
this.owner.drawBorder();
};
_local3._visible = false;
_local3._x = _root._xmouse;
_local3._y = _root._ymouse;
_local3.createTextField("hint_txt", 123, 0, 0, 10, 10);
var _local4 = _local3.hint_txt;
_local4.border = false;
_local4.multiline = true;
_local4.autoSize = true;
_local4.selectable = false;
_local4.text = text;
_local4.setTextFormat(__textFormat);
}
function drawBorder() {
var _local5 = __holder;
_local5._visible = true;
var _local8 = _local5.hint_txt;
var _local7 = _local8._width;
var _local6 = _local8._height;
var _local10 = _local5._xmouse;
var _local9 = _local5._ymouse;
var _local2 = (border_mc = _local5.createEmptyMovieClip("border", 2));
_local2.beginFill(fill, 100);
_local2.lineStyle(0);
_local2.lineTo(12, -12);
_local2.lineTo((12 + _local7) + 4, -12);
_local2.lineTo((12 + _local7) + 4, (-12 - _local6) - 4);
_local2.lineTo(8, (-12 - _local6) - 4);
_local2.lineTo(8, -19);
_local2.endFill();
var _local4 = _local2.createEmptyMovieClip("aligner", 1);
_local2 = (shadow_mc = _local5.createEmptyMovieClip("shadow", 1));
_local2.beginFill(0, 30);
var _local3 = 7;
_local2.lineTo(12 + _local3, -12 + _local3);
_local2.lineTo(((12 + _local7) + 4) + _local3, -12 + _local3);
_local2.lineTo(((12 + _local7) + 4) + _local3, ((-12 - _local6) - 4) + _local3);
_local2.lineTo(8 + _local3, ((-12 - _local6) - 4) + _local3);
_local2.lineTo(8 + _local3, -19 + _local3);
_local2.endFill();
_local4.beginFill(fill);
_local4.moveTo(12, -15);
_local4.lineTo(12 + _local7, -15);
_local4.lineTo(12 + _local7, -12 - _local6);
_local4.lineTo(12, -12 - _local6);
_local4.endFill();
hintAlign();
onMouseMove();
}
function hintAlign() {
var _local2 = __holder;
if (__align == undefined) {
__align = "BL";
}
if (__align == "BL") {
_local2.border._xscale = (_local2.shadow._xscale = 100);
_local2.border._yscale = (_local2.shadow._yscale = 100);
_local2.shadow._x = (_local2.shadow._y = 0);
} else if (__align == "BR") {
_local2.border._xscale = (_local2.shadow._xscale = -100);
_local2.border._yscale = (_local2.shadow._yscale = 100);
_local2.shadow._x = 0;
_local2.shadow._y = 0;
} else if (__align == "TL") {
_local2.border._xscale = (_local2.shadow._xscale = 100);
_local2.border._yscale = (_local2.shadow._yscale = -100);
_local2.shadow._x = 0;
_local2.shadow._y = 10;
} else if (__align == "TR") {
_local2.border._xscale = (_local2.shadow._xscale = -100);
_local2.border._yscale = (_local2.shadow._yscale = -100);
_local2.shadow._x = 0;
_local2.shadow._y = 10;
}
var _local3 = _local2.border.aligner.getBounds(_local2);
_local2.hint_txt._x = _local3.xMin;
_local2.hint_txt._y = _local3.yMin - 2;
}
function onMouseMove() {
if (!__owner.__hint) {
close();
return(undefined);
}
if (!__point) {
__holder._x = _root._xmouse;
__holder._y = _root._ymouse;
} else {
__holder._x = __point._x;
__holder._y = __point._y;
}
__holder._xscale = (__holder._yscale = __scale);
var _local8 = __holder._x;
var _local6 = __holder._y;
var _local3 = __holder._width;
var _local7 = __holder._height;
var _local9 = __align;
var _local4 = "B";
var _local5 = "L";
if (Stage.centerScaleMode) {
if ((_local6 - _local7) < 0) {
_local4 = "T";
}
if (((_local8 + _local3) > (Stagewidth / (Stage._xscale / 100))) && (_local3 < Stagewidth)) {
_local5 = "R";
}
} else {
if ((Stageheight > 0) && (_local7 > _local6)) {
_local4 = "T";
}
if (((Stagewidth > 0) && ((Stagewidth - _local3) < _local8)) && (_local3 < Stagewidth)) {
_local5 = "R";
}
}
__align = _local4 + _local5;
if (__align != _local9) {
hintAlign();
}
}
function onResize() {
onMouseMove();
}
function close() {
__holder.removeMovieClip();
Stage.removeListener(this);
Mouse.removeListener(this);
Key.removeListener(closeListener);
Mouse.removeListener(closeListener);
}
static var counter = 0;
static var fill = 16777164;
static var lineColor = 0;
static var __scale = 100;
static var __align = "BL";
static var Stagewidth = 780;
static var Stageheight = 580;
static var __textFormat = new TextFormat("_sans", 10, 0, true, false, false, null, null, "left", 0, 0, 0, 0);
static var __mixingInited = false;
}
Symbol 169 Button
on (release, releaseOutside) {
mcComm.addCSAMsg(new XML("<nicotine/>"));
}
Symbol 171 Button
on (rollOver) {
_parent._parent.Table.onOverBetPlace(this);
}
on (release) {
_parent._parent.Table.setStake(this);
}
Symbol 183 Button
on (release) {
_parent.Table.spinRoulette();
}
Symbol 185 MovieClip Frame 1
stop();
Symbol 185 MovieClip Frame 2
stop();
Symbol 187 Button
on (release) {
gameOver();
}
Symbol 193 Button
on (release) {
_parent.Table.clearAllBets();
}
Symbol 196 MovieClip Frame 1
stop();
Symbol 196 MovieClip Frame 2
stop();
Symbol 203 Button
on (release) {
_parent.Table.setBet(this, 1);
}
Symbol 206 MovieClip Frame 1
stop();
btn.addHint("Use 1$ for betting");
Symbol 206 MovieClip Frame 2
stop();
Symbol 206 MovieClip Frame 3
stop();
Symbol 209 Button
on (release) {
_parent.Table.setBet(this, 5);
}
Symbol 211 MovieClip Frame 1
stop();
btn.addHint("Use 5$ for betting");
Symbol 211 MovieClip Frame 2
stop();
Symbol 211 MovieClip Frame 3
stop();
Symbol 214 Button
on (release) {
_parent.Table.setBet(this, 25);
}
Symbol 216 MovieClip Frame 1
stop();
btn.addHint("Use 25$ for betting");
Symbol 216 MovieClip Frame 2
stop();
Symbol 216 MovieClip Frame 3
stop();
Symbol 219 Button
on (release) {
_parent.Table.setBet(this, 100);
}
Symbol 221 MovieClip Frame 1
stop();
btn.addHint("Use 100$ for betting");
Symbol 221 MovieClip Frame 2
stop();
Symbol 221 MovieClip Frame 3
stop();
Symbol 257 Button
on (release) {
getURL ("http://www.arkadium.com", "_blank");
}
Symbol 258 MovieClip Frame 1
if (_root.logoUrl == undefined) {
play();
} else {
loadBrandMov.loadMovie(_root.logoUrl);
stop();
}
Symbol 258 MovieClip Frame 2
stop();
Symbol 263 MovieClip Frame 1
stop();
Symbol 268 MovieClip Frame 2
_root.sndRoll.start(0, 5);
Symbol 268 MovieClip Frame 84
if (!s) {
s = true;
gotoAndPlay (2);
}
Symbol 268 MovieClip Frame 123
_root.sndRoll.stop();
_root.sndDropBall.start();
Symbol 268 MovieClip Frame 140
_parent.displayZOV();
_parent.ZOV.ZOVdisplay.ZOVwheel.gotoAndStop(194);
Symbol 268 MovieClip Frame 341
s = false;
stop();
Symbol 270 MovieClip Frame 2
_root.sndRoll.start(0, 5);
Symbol 270 MovieClip Frame 84
if (!s) {
s = true;
gotoAndPlay (2);
}
Symbol 270 MovieClip Frame 124
_root.sndRoll.stop();
_root.sndDropBall.start();
Symbol 270 MovieClip Frame 140
_parent.displayZOV();
_parent.ZOV.ZOVdisplay.ZOVwheel.gotoAndStop(194);
Symbol 270 MovieClip Frame 341
s = false;
stop();
Symbol 272 MovieClip Frame 2
_root.sndRoll.start(0, 5);
Symbol 272 MovieClip Frame 84
if (!s) {
s = true;
gotoAndPlay (2);
}
Symbol 272 MovieClip Frame 132
_root.sndRoll.stop();
_root.sndDropBall.start();
Symbol 272 MovieClip Frame 140
_parent.displayZOV();
_parent.ZOV.ZOVdisplay.ZOVwheel.gotoAndStop(194);
Symbol 272 MovieClip Frame 341
s = false;
stop();
Symbol 324 MovieClip Frame 70
gotoAndPlay (1);
Symbol 333 MovieClip Frame 1
wheel.wheelR._rotation = _parent._parent._parent.deltaZOV;
gotoAndStop (195);
Symbol 333 MovieClip Frame 195
stop();
Symbol 339 MovieClip Frame 10
stop();
ZOVdisplay.ZOVwheel.gotoAndStop(195);
Symbol 339 MovieClip Frame 11
this.ZOVdisplay.ZOVwheel.wheel.wheelR.stop();
Symbol 339 MovieClip Frame 35
stop();
Symbol 351 MovieClip Frame 1
stop();
Symbol 351 MovieClip Frame 15
stop();
Symbol 351 MovieClip Frame 22
gotoAndStop (1);
Symbol 355 Button
on (release, releaseOutside) {
onButtonHelpClick();
}