Combined Code
movieClip 5 chip_1000 {
}
movieClip 7 chip_500 {
}
movieClip 9 {
frame 1 {
_visible = 0;
}
}
movieClip 10 {
}
movieClip 11 ch_places {
frame 1 {
if ((_name.split('_'))[2] != 'New') {
stop();
delete AlphAnim;
} else {
AlphAnim = function () {
Targ.AnimToPlace(10, 100, _totalframes - 1, _currentframe - 1, '_alpha');
};
Targ._alpha = 10;
}
}
instance of movieClip 9 {
onClipEvent (load) {
_visible = 0;
}
}
instance Targ of movieClip 10 {
}
frame 2 {
AlphAnim();
}
frame 3 {
AlphAnim();
}
frame 3 {
stop();
}
}
movieClip 14 {
}
movieClip 16 {
}
movieClip 17 chip_100 {
}
movieClip 20 {
}
movieClip 21 chip_25 {
}
movieClip 24 {
}
movieClip 25 chip_5 {
}
movieClip 28 {
}
movieClip 29 chip_1 {
}
movieClip 31 win_mark {
}
movieClip 33 loose_mark {
}
frame 3 {
if (_root != _level0) {
if (_level0.serverWork == 'true') {
if (_root._totalframes == _root._framesloaded && (_level5._totalframes == _level5._framesloaded && _level5.serverWork)) {
this.stop();
_level0.endLoad();
} else {
this.gotoAndPlay(1);
}
} else {
if (_root._totalframes != _root._framesloaded) {
this.gotoAndPlay(1);
} else {
_level0.endLoad();
}
}
}
}
frame 4 {
function addConveyor() {
if (conv.conveyorON) {
conv.aConveyor.push(arguments);
} else {
conv.bConveyor.push(arguments);
}
}
function MessageToChat(speaker, message) {
chatText += '\r<b>' + speaker + ':</b> ' + message;
McMaxscroll.gotoAndPlay(2);
}
function GamePrams() {
this.curBet = 5;
this.userBalance = 999;
this.crBalance();
this.bet = 0;
this.prize_table = {};
this.prize_table[10] = {};
this.prize_table[10][10] = 10000;
this.prize_table[10][9] = 5000;
this.prize_table[10][8] = 1000;
this.prize_table[10][7] = 125;
this.prize_table[10][6] = 24;
this.prize_table[10][5] = 5;
this.prize_table[9] = {};
this.prize_table[9][9] = 10000;
this.prize_table[9][8] = 5000;
this.prize_table[9][7] = 500;
this.prize_table[9][6] = 50;
this.prize_table[9][5] = 5;
this.prize_table[8] = {};
this.prize_table[8][8] = 10000;
this.prize_table[8][7] = 2500;
this.prize_table[8][6] = 125;
this.prize_table[8][5] = 10;
this.prize_table[7] = {};
this.prize_table[7][7] = 10000;
this.prize_table[7][6] = 250;
this.prize_table[7][5] = 25;
this.prize_table[7][4] = 5;
this.prize_table[6] = {};
this.prize_table[6][6] = 2500;
this.prize_table[6][5] = 50;
this.prize_table[6][4] = 5;
this.prize_table[6][3] = 2;
this.prize_table[5] = {};
this.prize_table[5][5] = 250;
this.prize_table[5][4] = 25;
this.prize_table[5][3] = 5;
this.prize_table[4] = {};
this.prize_table[4][4] = 50;
this.prize_table[4][3] = 5;
this.prize_table[4][2] = 2;
this.prize_table[3] = {};
this.prize_table[3][3] = 25;
this.prize_table[3][2] = 2;
this.numbers = {};
this.max_length = 10;
this.numbers_length = 0;
this.ideal_numbers = [];
var i = 0;
while (i < 80) {
this.ideal_numbers[i] = i + 1;
++i;
}
this.setButtons();
}
function test_server() {
if (_level5) {
if (_level5.serverWork) {
_visible = 0;
_level5.XML_POST_LINE();
} else {
_visible = 0;
_root.conv.put(arguments.callee, 1000);
}
} else {
delete arguments.callee;
}
}
if (this == _level0 && include_Library_Complete != true) {
var include_Library_Complete = true;
var mc = MovieClip.prototype;
mc.movieTo = function () {
this._x = arguments[0];
this._y = arguments[1];
};
mc.movieBy = function () {
this._x += arguments[0];
this._y += arguments[1];
};
mc.size = function () {
if (arguments[0] != null && arguments[0] != 0) {
this._width = arguments[0];
}
if (arguments[0] != null && arguments[0] != 0) {
this._height = arguments[1];
}
};
mc.scale = function () {
_yscale = arguments[0];
_xscale = arguments[0];
};
mc.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];
}
};
mc.scaleBy = function () {
this._xscale *= arguments[0];
this._yscale *= arguments[0];
};
mc.rotateBy = function () {
this._rotation += arguments[0];
};
mc.hide = function () {
this._visible = 0;
};
mc.show = function () {
this._visible = 1;
};
mc.visInvert = function () {
this._visible = !this._visible;
};
mc.flipV = function () {
this._xscale *= -1;
};
mc.flipH = function () {
this._yscale *= -1;
};
mc.playOffset = function () {
this.gotoAndPlay(this._currentframe + arguments[0]);
};
mc.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;
};
mc.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;
};
mc.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;
};
mc.copyColor = function (fromClip) {
(new Color(this)).setTransform((new Color(fromClip)).getTransform());
};
mc.AnimToPlace = function (StartA, FinishA, Steps, CurrStep, XY) {
this[XY] = StartA + ((FinishA - StartA) / Steps) * CurrStep;
};
mc.newSound = function (id, volume, loop) {
this.mySound = new Sound();
this.mySound.attachSound(id);
this.mySound.setVolume(volume || 100);
this.mySound.start(0, loop || 1);
};
mc.stopSound = function (id, volume, loop) {
this.mySound.stop();
};
mc.localToLocal = function (fromMc) {
fromMc.localToGlobal(arguments[1]);
this.globalToLocal(arguments[1]);
};
mc.align = function (fromClip) {
var bounds_align = this.getBounds(fromClip || this._parent);
if (arguments[1] != 'v') {
this._x -= (bounds_align.xMin + bounds_align.xMax) / 2;
}
if (arguments[1] != 'h') {
this._y -= (bounds_align.yMin + bounds_align.yMax) / 2;
}
};
mc.alignH = function (fromClip) {
this.align(fromClip || this._parent, 'h');
};
mc.alignV = function (fromClip) {
this.align(fromClip || this._parent, 'v');
};
mc.SearchTop = function () {
var SearchTop_tmp = this;
var SearchTop_tmp_bk;
while (tmp != _root) {
SearchTop_tmp_bk = SearchTop_tmp;
SearchTop_tmp = SearchTop_tmp._parent;
}
return SearchTop_tmp_bk;
};
mc.setParam = function () {
this[arguments[0]] = arguments[1];
};
mc.old_attachMovie = mc.attachMovie;
mc.attachMovie = function (arg1, arg2, arg3) {
this.old_attachMovie(arg1, arg2, arg3);
return this[arg2];
};
mc.old_duplicateMovieClip = mc.duplicateMovieClip;
mc.duplicateMovieClip = function () {
this.old_duplicateMovieClip(arguments[0], arguments[1]);
return this._parent[arguments[0]];
};
mc.played = true;
mc.old_play = mc.play;
mc.play = function () {
this.played = true;
this.old_play();
};
mc.old_gotoAndPlay = mc.gotoAndPlay;
mc.gotoAndPlay = function () {
this.gotoAndPlayed = true;
this.old_gotoAndPlay(arguments[0], arguments[1]);
};
mc.old_stop = mc.stop;
mc.stop = function () {
this.played = false;
this.old_stop();
};
mc.old_gotoAndStop = mc.gotoAndStop;
mc.gotoAndStop = function () {
this.played = false;
this.old_gotoAndStop(arguments[0], arguments[1]);
};
mc.old_prevFrame = mc.prevFrame;
mc.prevFrame = function () {
this.played = false;
this.old_prevFrame();
};
mc.old_nextFrame = mc.nextFrame;
mc.nextFrame = function () {
this.played = false;
this.old_nextFrame();
};
mc.pause = function () {
if (this.paused_mc_array != null) {
delete this.pause_flag;
var pause_i = 0;
while (pause_i < this.paused_mc_array.length) {
this.paused_mc_array[pause_i].play();
++pause_i;
}
delete this.paused_mc_array;
} else {
var pause_array = this.allChilds();
pause_array.push(this);
this.paused_mc_array = new Array();
var pause_i = 0;
while (pause_i < pause_array.length) {
if (pause_array[pause_i].played && pause_array[pause_i]._totalframes != 1) {
pause_array[pause_i].stop();
this.paused_mc_array.push(pause_array[pause_i]);
}
++pause_i;
}
}
};
mc = null;
delete mc;
var st = String.prototype;
st.scrollBy = function (scrOffset) {
var newScroll = this.scroll + scrOffset;
if (this.maxscroll < newScroll) {
newScroll = this.maxscroll;
} else {
if (newScroll < 1) {
newScroll = 1;
}
}
this.scroll = newScroll;
};
st.OldSplit = st.split;
st.split = function (str) {
if (1 < str.length) {
return this.OldSplit(str);
}
if (str == '' || str == null) {
return this.toCharArray();
}
var result = new Array();
var d = this.length;
var n = 0;
var tmpStr = '';
var ch;
while (n < d) {
ch = substring(this, ++n, 1);
if (ch == str) {
result.push(tmpStr);
tmpStr = '';
} else {
tmpStr += ch;
}
}
result.push(tmpStr);
return result;
};
st.toCharArray = function () {
var st = this;
var arr_result = new Array();
var s = 0;
while (s < st.length) {
arr_result.push(substring(this, s + 1, 1));
++s;
}
return arr_result;
};
st.charAt = function (index) {
return substring(this, index + 1, 1);
};
st = null;
delete st;
var xm = XML.prototype;
xm.attr = xm.firstChild.attributes;
xm = null;
delete xm;
var arr = Array.prototype;
arr.nSort = function () {
this.sort(function (a, b) {
if (Number(a) < Number(b)) {
return -1;
} else {
if (Number(b) < Number(a)) {
return 1;
} else {
return 0;
}
}
});
return this;
};
arr.trim = function (searched_array) {
if (searched_array == null) {
searched_array = ['', null];
}
var trim_i = 0;
while (trim_i < this.length) {
if (searched_array.indexOf(this[trim_i]) != -1) {
this.splice(trim_i, 1);
--trim_i;
}
++trim_i;
}
return this;
};
arr.indexOf = function (searched) {
var indexOf_i = 0;
while (indexOf_i < this.length) {
if (searched == this[indexOf_i]) {
return indexOf_i;
}
++indexOf_i;
}
return -1;
};
arr.random = function () {
var random_i = this.length;
while (0 < random_i) {
this.push((this.splice(Math.floor(Math.random() * random_i), 1))[0]);
--random_i;
}
return this;
};
arr = null;
delete arr;
Object.prototype.toString = function () {
trace('<<------------------------------------');
for (param in this) {
trace(param + ' = ' + this[param] + ' (' + typeof this[param] + ')');
}
trace('------------------------------------>>');
};
Conveyor_Constructor = function () {
this.aConveyor = new Array();
this.bConveyor = new Array();
this.conveyorON = true;
this.bookmark = 0;
this.shorts = 0;
this.engine();
};
var conv = Conveyor_Constructor.prototype;
conv.play = function () {
if (this.conveyorON) {
return undefined;
}
this.aConveyor = this.aConveyor.concat(this.bConveyor);
this.bConveyor = new Array();
this.conveyorON = true;
};
conv.stop = function () {
this.conveyorON = false;
};
conv.pause = function (pause) {
this.aConveyor = [[function () {}, pause]].concat(this.aConveyor);
};
conv.put = function () {
if (this.conveyorON) {
this.aConveyor.push(arguments);
if (!this.bookmark && 200 + this.shorts < this.aConveyor.length) {
var tmp_arr = this.aConveyor.slice(100 + this.shorts);
this.aConveyor.splice(100 + this.shorts);
++this.shorts;
this.put(function () {
_root.conv.aConveyor = arguments[0].concat(_root.conv.aConveyor);
--_root.conv.shorts;
}, 0, tmp_arr);
}
} else {
this.bConveyor.push(arguments);
}
};
conv.put_a = function () {
this.aConveyor.push(arguments);
};
conv.engine = function () {
if (this.conveyorON == false) {
this.pause(500);
}
var cTime;
if (this.aConveyor.length == 0) {
cTime = 1000;
} else {
var tA1;
var tA2;
var tA3;
var tA4;
var tA5;
var tA6;
var tA7;
var tA8;
var tA9;
var tA10;
var tA11;
var tA12;
var tA13;
var tA14;
var tA15;
var tA16;
var tA17;
i = 0;
while (i < this.aConveyor[0].length) {
eval('tA' + (i + 1)) = this.aConveyor[0][i];
++i;
}
this.aConveyor.shift();
if (typeof tA1 != 'function') {
if (typeof tA1[tA2] != 'function') {
cTime = tA3;
tA1[tA2] = tA4;
} else {
cTime = tA3;
tA1[tA2](tA4, tA5, tA6, tA7, tA8, tA9, tA10, tA11, tA12, tA13, tA14, tA15, tA16, tA17);
}
} else {
cTime = tA2;
tA1(tA3, tA4, tA5, tA6, tA7, tA8, tA9, tA10, tA11, tA12, tA13, tA14, tA15, tA16);
}
}
if (cTime != 0) {
if (typeof cTime == 'string') {
_root.ConvTimer.frame = true;
} else {
_root.ConvTimer.time = getTimer();
_root.ConvTimer.frame = false;
}
_root.ConvTimer.timeOut = Number(cTime);
_root.ConvTimer.nTime = 0;
} else {
this.engine();
}
};
conv.anim = function (mc_anim, mc_to, params_ob) {
var to_end = params_ob.to_end * 1 || 0;
var speed = params_ob.speed || 30;
var acsel = params_ob.acsel * 1 || 1;
var scale = params_ob.scale;
this.put(mc_anim, 'swapDepths', '1', _root.anim_depth);
this.put(_root, 'newSound', 0, 'movie', 50);
var number_steps = Math.round((Math.sqrt(Math.pow(Math.abs(mc_anim._x - mc_to._x), 2) + Math.pow(Math.abs(mc_anim._y - mc_to._y), 2)) / speed) * acsel);
var i = 1;
while (number_steps >= i) {
if (scale) {
this.put(mc_anim, 'AnimToPlace', 0, mc_anim._xscale, mc_to._xscale, number_steps + 1 - to_end, i, '_xscale');
this.put(mc_anim, 'AnimToPlace', 0, mc_anim._yscale, mc_to._yscale, number_steps + 1 - to_end, i, '_yscale');
}
this.put(mc_anim, 'AnimToPlace', 0, mc_anim._x, mc_to._x, number_steps + 1 - to_end, i, '_x');
this.put(mc_anim, 'AnimToPlace', '1', mc_anim._y, mc_to._y, number_steps + 1 - to_end, i, '_y');
++i;
}
this.put(mc_anim, 'swapDepths', 0, _root.anim_depth);
};
conv.bookmark_add = function () {
this.aConveyor.push('#bookmark#');
++this.bookmark;
};
conv.bookmark_remove = function () {
if (0 >= this.bookmark) {
return undefined;
}
--this.bookmark;
while (this.aConveyor[this.aConveyor.length - 1] != '#bookmark#') {
this.aConveyor.unshift(this.aConveyor.pop());
}
this.aConveyor.pop();
};
conv_engine = function () {
_root.conv.engine();
};
setTimeOut = function (funcLink, timeOut, inOut) {
var McTimeOut = MySTM;
if (inOut) {
if (funcLink[0] != null) {
var tA = funcLink[1];
funcLink[0](tA[0], tA[1], tA[2], tA[3], tA[4], tA[5], tA[6], tA[7], tA[8], tA[9]);
} else {
funcLink();
}
} else {
++McTimeOut.n;
McTimeOut.STM.duplicateMovieClip('STM' + McTimeOut.n, McTimeOut.n);
var newTarg = McTimeOut['STM' + McTimeOut.n];
if (typeof timeOut == 'string') {
timeOut = Number(timeOut);
newTarg.frame = true;
} else {
newTarg.time = getTimer();
}
newTarg.funcString = funcLink;
newTarg.timeOut = timeOut;
}
};
conv = null;
delete conv;
conv = new Conveyor_Constructor();
var my = {};
my.floor = function () {
var tmpStNum = new String(arguments[0]);
return Math.floor(Number(tmpStNum));
};
my.GlobalToLocal = function (toObj, fromObj) {
var GlobalObj = new Object();
GlobalObj.x = fromObj._x;
GlobalObj.y = fromObj._y;
toObj.globalToLocal(GlobalObj);
return new Array(GlobalObj.x, GlobalObj.y);
};
my.dZerro = function () {
if (arguments[0] == 0) {
return '0.00';
}
var dStr = new String(this.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';
}
return one + '.' + two;
};
}
hello = 'Hello Source Viewers! ;) Code Created by 3WGRAPHICS.com';
delete hello;
game_pr = GamePrams.prototype;
game_pr.crBalance = function () {
_root.balance = '$ ' + _root.my.dZerro(this.userBalance);
};
game_pr.random_numbers = function () {
return (([].concat(this.ideal_numbers)).random()).splice(0, 20);
};
game_pr.choice_number = function (number_name) {
number_name = Number(number_name);
var mc = _root.numbers['n_' + number_name];
if (this.numbers[number_name]) {
delete this.numbers[number_name];
--this.numbers_length;
mc.copyColor(_root.non_selected);
} else {
if (this.numbers_length >= this.max_length) {
return undefined;
}
this.numbers[number_name] = true;
++this.numbers_length;
mc.copyColor(_root.selected);
}
this.setButtons();
};
game_pr.choice_bet = function (bet) {
this.curBet = bet;
this.setButtons();
};
game_pr.display_prize_table = function () {
var ob = this.prize_table[this.numbers_length];
var n = this.numbers_length;
var mc = _root.display_left;
mc.numbers = '';
mc.prize = '';
while (ob[n] != null) {
mc.numbers += n + '\r';
mc.prize += '$' + ob[n] * this.curBet + '\r';
--n;
}
};
game_pr.setButtons = function () {
_root.b_1.gotoAndStop(1);
_root.b_5.gotoAndStop(1);
_root.b_10.gotoAndStop(1);
_root['b_' + this.curBet].gotoAndStop(2);
var mc = _root.play_buttons;
if (this.numbers_length < 3) {
mc.p_1.gotoAndStop(2);
mc.p_5.gotoAndStop(2);
mc.p_10.gotoAndStop(2);
} else {
if (this.userBalance >= this.curBet) {
mc.p_1.gotoAndStop(1);
}
if (this.userBalance >= this.curBet * 5) {
mc.p_5.gotoAndStop(1);
}
if (this.userBalance >= this.curBet * 10) {
mc.p_10.gotoAndStop(1);
}
}
this.display();
this.display_prize_table();
};
game_pr.play = function (rounds) {
this.lock();
this.rounds = rounds;
this.userBalance -= this.rounds * this.curBet;
this.crBalance();
this.display();
_root.conv.put(this, 'play_final', '1');
};
game_pr.play_final = function (complette, result) {
this.numbers_rounds = [];
if (_level5) {
if (!complette) {
var numbers_post = [];
for (var v in this:numbers) {
if (this.numbers[v] == true) {
numbers_post.push(v);
}
}
_level5.XML_POST_round(numbers_post, this.rounds, this.curBet);
return undefined;
} else {
this.numbers_rounds = result;
}
} else {}
this.win_bet = 0;
this.numbers_result = [];
var i = 0;
while (i < this.rounds) {
_root.conv.put(this, 'round_check', 0, this.numbers_rounds[i] || 0, i + 1);
++i;
}
if (_level5) {
_root.conv.put(function (bal) {
_root.Game.userBalance = Game.userBalance_from_server;
_root.Game.crBalance();
}, 0);
}
this.bet = 0;
_root.conv.put(this, 'unlock', 0);
};
game_pr.round_check = function (numbers_array, round) {
_root.conv.bookmark_add();
_root.conv.put(this, 'remove_round', 0);
var num;
var mc;
var win_mc = [];
if (numbers_array == 0) {
numbers_array = this.random_numbers();
}
this.numbers_result[round - 1] = 0;
var j = 0;
while (j < numbers_array.length) {
num = numbers_array[j];
mc = _root.numbers['n_' + num];
if (this.numbers[num] != null) {
_root.conv.put(_root, 'newSound', 100, 'movie', 100);
_root.conv.put(this, 'win_mark', 0, num);
_root.conv.put(_root, 'newSound', 200, 'movie', 100);
win_mc.push(mc);
++this.numbers_result[round - 1];
} else {
_root.conv.put(_root, 'newSound', 0, 'movie', 100);
_root.conv.put(this, 'loose_mark', 200, num);
}
++j;
}
_root.conv.put(function (rounds, result) {
_root.display_right.rounds += rounds + '\r';
_root.display_right.result += result + '\r';
}, '2', round, this.numbers_result[round - 1]);
var prize_result = this.prize_table[this.numbers_length][this.numbers_result[round - 1]];
if (prize_result != null) {
_root.conv.put(_root, 'newSound', 0, 'win');
this.win_bet += prize_result * this.curBet;
_root.conv.put(this, 'display', 0, this.win_bet, this.userBalance + prize_result * this.curBet);
_root.conv.put(_root.display_right['win_' + round], 'show', '2');
var c = 0;
while (c < 5) {
var j = 0;
while (win_mc.length >= j) {
_root.conv.put(win_mc[j], 'copyColor', 0, _root.non_selected);
_root.conv.put(win_mc[j - 1], 'copyColor', '4', _root.selected);
++j;
}
++c;
}
}
_root.conv.bookmark_remove();
};
game_pr.win_mark = function (num) {
(_root.attachMovie('win_mark', 'win_mark_' + num, 1000 + num)).align(_root.numbers['n_' + num]);
};
game_pr.loose_mark = function (num) {
(_root.attachMovie('loose_mark', 'loose_mark_' + num, 1000 + num)).align(_root.numbers['n_' + num]);
};
game_pr.remove_round = function () {
var i = 1;
while (80 >= i) {
_root['win_mark_' + i].removeMovieClip();
_root['loose_mark_' + i].removeMovieClip();
++i;
}
};
game_pr.lock = function () {
this.locked = true;
var i = 1;
while (80 >= i) {
_root.numbers['n_' + i].button.hide();
++i;
}
_root.b_1.gotoAndStop(3);
_root.b_5.gotoAndStop(3);
_root.b_10.gotoAndStop(3);
_root['b_' + this.curBet].gotoAndStop(2);
var mc = _root.play_buttons;
mc.p_1.gotoAndStop(2);
mc.p_5.gotoAndStop(2);
mc.p_10.gotoAndStop(2);
};
game_pr.unlock = function () {
this.locked = false;
_root.play_buttons.gotoAndStop(2);
};
game_pr.new_game = function () {
_root.play_buttons.gotoAndStop(1);
var mc;
var i = 1;
while (80 >= i) {
mc = _root.numbers['n_' + i];
mc.button.show();
mc.copyColor(_root.non_selected);
++i;
}
_root.display_right.rounds = '';
_root.display_right.result = '';
var i = 1;
while (10 >= i) {
_root.display_right['win_' + i].hide();
++i;
}
this.numbers_length = 0;
this.win_bet = 0;
this.numbers = [];
this.rounds = 0;
this.remove_round();
this.setButtons();
};
game_pr.display = function (win_bet, balance) {
_root.display = '';
if (0 < this.numbers_length) {
_root.display = 'Numbers ' + this.numbers_length + '\r';
}
if (this.locked) {
_root.display += 'Total bet $' + this.curBet * this.rounds + '\r';
}
if (0 < win_bet) {
_root.display += 'Player wins $' + win_bet;
this.userBalance = balance;
this.crBalance();
}
};
game_pr.sounds = function () {
if (!this.voiceON) {
return undefined;
}
};
Game = new GamePrams();
startGame();
var chDepth = 0;
game_pr = null;
delete game_pr;
test_server();
_focusrect = false;
}
frame 4 {
this.stop();
}
movieClip 37 {
}
movieClip 56 {
frame 1 {
stop();
}
}
button 64 {
on (press) {
myScroll('chatText', -1);
}
}
button 66 {
on (press) {
myScroll('chatText', 1);
}
}
button 70 {
on (release) {
if (userText != '' || userText != ' ') {
_root.MessageToChat(_root.userName, userText);
}
}
}
button 75 {
on (release) {
getURL('javascript:ContS('stop','document.CS942275596210','ro.mid') ', '');
}
}
button 76 {
on (release) {
getURL('javascript:ContS('play','document.CS942275596210','ro.mid') ', '');
}
}
button 80 {
on (release) {
getURL('http://www.3wgraphics.com/games/', '_blank');
}
}
button 81 {
on (release) {
getURL('javascript: void window.alert('*****************************************\r\n\r\nThis is a Fun Version :)\r\n\r\n*****************************************')', '');
}
}
movieClip 90 {
frame 1 {
stop();
if (a) {
getURL('javascript: void ContS('play','document.CS942275596210','bj.mid') ', '');
}
}
frame 2 {
stop();
a = 1;
getURL('javascript: void ContS('stop','document.CS942275596210','bj.mid') ', '');
}
}
button 93 {
on (release) {
getURL('http://www.3wgraphics.com/cgi-bin/service/stguest.cgi', '_blank');
}
}
button 94 {
on (release) {
getURL('http://www.3wgraphics.com/games/keno/rules.htm', '_blank');
}
}
movieClip 101 {
}
button 103 {
on (press) {
_root.Game.choice_number(_parent._name.substr(2));
}
}
movieClip 104 {
}
movieClip 107 {
frame 1 {
num = this._name.substr(2);
}
}
movieClip 108 {
}
movieClip 115 {
}
movieClip 121 {
}
movieClip 122 {
instance win_1 of movieClip 121 {
onClipEvent (load) {
this.hide();
}
}
instance win_2 of movieClip 121 {
onClipEvent (load) {
this.hide();
}
}
instance win_3 of movieClip 121 {
onClipEvent (load) {
this.hide();
}
}
instance win_4 of movieClip 121 {
onClipEvent (load) {
this.hide();
}
}
instance win_5 of movieClip 121 {
onClipEvent (load) {
this.hide();
}
}
instance win_6 of movieClip 121 {
onClipEvent (load) {
this.hide();
}
}
instance win_7 of movieClip 121 {
onClipEvent (load) {
this.hide();
}
}
instance win_8 of movieClip 121 {
onClipEvent (load) {
this.hide();
}
}
instance win_9 of movieClip 121 {
onClipEvent (load) {
this.hide();
}
}
instance win_10 of movieClip 121 {
onClipEvent (load) {
this.hide();
}
}
}
movieClip 124 {
}
movieClip 126 {
}
button 129 {
on (release, keyPress '<Delete>') {
_root.Game.play(10);
}
on (rollOver) {
_root.buttonsDisplay = 'Play ten rounds';
}
on (releaseOutside, rollOut, dragOut) {
_root.buttonsDisplay = '';
}
}
movieClip 132 {
frame 1 {
this.stop();
}
}
button 133 {
on (release, keyPress '<Delete>') {
_root.Game.play(5);
}
on (rollOver) {
_root.buttonsDisplay = 'Play five rounds';
}
on (releaseOutside, rollOut, dragOut) {
_root.buttonsDisplay = '';
}
}
movieClip 136 {
frame 1 {
this.stop();
}
}
button 137 {
on (release, keyPress '<Delete>') {
_root.Game.play(1);
}
on (rollOver) {
_root.buttonsDisplay = 'Play one round';
}
on (releaseOutside, rollOut, dragOut) {
_root.buttonsDisplay = '';
}
}
movieClip 140 {
frame 1 {
this.stop();
}
}
button 141 {
on (release, keyPress '<Enter>') {
_root.Game.new_game();
}
on (rollOver) {
_root.buttonsDisplay = 'Start new game';
}
on (releaseOutside, rollOut, dragOut) {
_root.buttonsDisplay = '';
}
}
movieClip 144 {
frame 1 {
this.stop();
}
instance p_1 of movieClip 140 {
}
}
button 148 {
on (release) {
_root.Game.choice_bet(1);
}
on (rollOver) {
_root.buttonsDisplay = 'Bet $1';
}
on (releaseOutside, rollOut, dragOut) {
_root.buttonsDisplay = '';
}
}
movieClip 149 {
frame 1 {
this.stop();
}
}
button 152 {
on (release) {
_root.Game.choice_bet(5);
}
on (rollOver) {
_root.buttonsDisplay = 'Bet $5';
}
on (releaseOutside, rollOut, dragOut) {
_root.buttonsDisplay = '';
}
}
movieClip 153 {
frame 1 {
this.stop();
}
}
button 156 {
on (release) {
_root.Game.choice_bet(10);
}
on (rollOver) {
_root.buttonsDisplay = 'Bet $10';
}
on (releaseOutside, rollOut, dragOut) {
_root.buttonsDisplay = '';
}
}
movieClip 157 {
frame 1 {
this.stop();
}
}
movieClip 161 {
instance of movieClip 9 {
onClipEvent (load) {
_visible = 0;
}
}
}
movieClip 162 {
instance of movieClip 9 {
onClipEvent (load) {
_visible = 0;
}
}
}
movieClip 163 {
}
instance of movieClip 163 {
onClipEvent (mouseUp) {
if (Selection.getFocus() == '_level0.userText' && !textDetect) {
_root.userText = '';
textDetect = true;
}
if (Selection.getFocus() == '_level0.userText') {
_root.texField.gotoAndStop(2);
} else {
_root.texField.gotoAndStop(1);
}
}
}
movieClip 164 {
frame 1 {
if (_name == 'STM') {
this.stop();
} else {
if (frame) {
++nTime;
if (timeOut < nTime) {
_root.setTimeOut(funcString, timeOut, true);
removeMovieClip(this);
}
} else {
if (getTimer() - time >= timeOut) {
_root.setTimeOut(funcString, timeOut, true);
this.removeMovieClip(this);
}
}
}
}
instance of movieClip 9 {
onClipEvent (load) {
_visible = 0;
}
}
frame 2 {
if (frame) {
++nTime;
if (timeOut < nTime) {
_root.setTimeOut(funcString, timeOut, true);
removeMovieClip(this);
}
} else {
if (getTimer() - time >= timeOut) {
_root.setTimeOut(funcString, timeOut, true);
removeMovieClip(this);
}
}
}
}
movieClip 165 {
}
movieClip 166 {
frame 1 {
_visible = 0;
}
}
movieClip 167 {
frame 1 {
stop();
}
frame 3 {
_root.myScroll('chatText', 100000);
}
}
movieClip 168 {
frame 1 {
stop();
}
instance of movieClip 9 {
onClipEvent (load) {
_visible = 0;
}
}
}
instance of movieClip 168 {
onClipEvent (keyDown) {
if (Key.getCode() == Key.SPACE) {
if (!a) {
_root.Game.curBet = -1 * Math.abs(_root.Game.curBet);
a = 1;
}
}
}
onClipEvent (keyUp) {
if (Key.getCode() == Key.SPACE) {
_root.Game.curBet = Math.abs(_root.Game.curBet);
a = 0;
}
}
}
movieClip 169 {
instance of movieClip 9 {
onClipEvent (load) {
_visible = 0;
}
}
frame 2 {
if (frame) {
++nTime;
if (nTime >= timeOut) {
_root.conv_engine();
}
} else {
if (getTimer() - time >= timeOut) {
_root.conv_engine();
}
}
}
frame 3 {
this.gotoAndPlay(2);
}
}
movieClip 170 {
}
instance anim_depth of movieClip 170 {
onClipEvent (load) {
this.swapDepths(6300);
}
}
movieClip 171 {
}