Combined Code
frame 1 {
_global.GOS = {'fps': 25, 'pid': '0', 'vGos': '1.0', 'gid': 224, 'domain': 'flashtcp.com', 'ip': '82.195.151.44', 'port': 80, 'hash': '13bd57ae46f0289c'};
}
frame 1 {
function bitOR(a, b) {
var v1 = a & 1 | b & 1;
var v2 = a >>> 1 | b >>> 1;
return v2 << 1 | v1;
}
function bitXOR(a, b) {
var v1 = a & 1 ^ b & 1;
var v2 = a >>> 1 ^ b >>> 1;
return v2 << 1 | v1;
}
function bitAND(a, b) {
var v1 = a & 1 & (b & 1);
var v2 = a >>> 1 & b >>> 1;
return v2 << 1 | v1;
}
function addme(x, y) {
var v1 = (x & 65535) + (y & 65535);
var v2 = (x >> 16) + (y >> 16) + (v1 >> 16);
return v2 << 16 | v1 & 65535;
}
function rhex(num) {
var v1 = num;
str = '';
j = 0;
while (j <= 3) {
str += hex_chr.charAt(v1 >> j * 8 + 4 & 15) + hex_chr.charAt(v1 >> j * 8 & 15);
++j;
}
return str;
}
function str2blks_MD5(str) {
var v1 = str;
nblk = (v1.length + 8 >> 6) + 1;
blks = new Array(nblk * 16);
i = 0;
while (i < nblk * 16) {
blks[i] = 0;
++i;
}
i = 0;
while (i < v1.length) {
blks[i >> 2] |= v1.charCodeAt(i) << ((v1.length * 8 + i) % 4) * 8;
++i;
}
blks[i >> 2] |= 128 << ((v1.length * 8 + i) % 4) * 8;
var v2 = v1.length * 8;
blks[nblk * 16 - 2] = v2 & 255;
blks[nblk * 16 - 2] |= (v2 >>> 8 & 255) << 8;
blks[nblk * 16 - 2] |= (v2 >>> 16 & 255) << 16;
blks[nblk * 16 - 2] |= (v2 >>> 24 & 255) << 24;
return blks;
}
function rol(num, cnt) {
return num << cnt | num >>> 32 - cnt;
}
function cmn(q, a, b, x, s, t) {
return addme(rol(addme(addme(a, q), addme(x, t)), s), b);
}
function ff(a, b, c, d, x, s, t) {
var v1 = b;
return cmn(bitOR(bitAND(v1, c), bitAND(~v1, d)), a, v1, x, s, t);
}
function gg(a, b, c, d, x, s, t) {
return cmn(bitOR(bitAND(b, d), bitAND(c, ~d)), a, b, x, s, t);
}
function hh(a, b, c, d, x, s, t) {
return cmn(bitXOR(bitXOR(b, c), d), a, b, x, s, t);
}
function ii(a, b, c, d, x, s, t) {
return cmn(bitXOR(c, bitOR(b, ~d)), a, b, x, s, t);
}
function calcMD5(str) {
x = str2blks_MD5(str);
a = 1732584193;
b = -271733879;
c = -1732584194;
d = 271733878;
var v1;
i = 0;
while (i < x.length) {
olda = a;
oldb = b;
oldc = c;
oldd = d;
v1 = 0;
a = ff(a, b, c, d, x[i + 0], 7, -680876936);
d = ff(d, a, b, c, x[i + 1], 12, -389564586);
c = ff(c, d, a, b, x[i + 2], 17, 606105819);
b = ff(b, c, d, a, x[i + 3], 22, -1044525330);
a = ff(a, b, c, d, x[i + 4], 7, -176418897);
d = ff(d, a, b, c, x[i + 5], 12, 1200080426);
c = ff(c, d, a, b, x[i + 6], 17, -1473231341);
b = ff(b, c, d, a, x[i + 7], 22, -45705983);
a = ff(a, b, c, d, x[i + 8], 7, 1770035416);
d = ff(d, a, b, c, x[i + 9], 12, -1958414417);
c = ff(c, d, a, b, x[i + 10], 17, -42063);
b = ff(b, c, d, a, x[i + 11], 22, -1990404162);
a = ff(a, b, c, d, x[i + 12], 7, 1804603682);
d = ff(d, a, b, c, x[i + 13], 12, -40341101);
c = ff(c, d, a, b, x[i + 14], 17, -1502002290);
b = ff(b, c, d, a, x[i + 15], 22, 1236535329);
a = gg(a, b, c, d, x[i + 1], 5, -165796510);
d = gg(d, a, b, c, x[i + 6], 9, -1069501632);
c = gg(c, d, a, b, x[i + 11], 14, 643717713);
b = gg(b, c, d, a, x[i + 0], 20, -373897302);
a = gg(a, b, c, d, x[i + 5], 5, -701558691);
d = gg(d, a, b, c, x[i + 10], 9, 38016083);
c = gg(c, d, a, b, x[i + 15], 14, -660478335);
b = gg(b, c, d, a, x[i + 4], 20, -405537848);
a = gg(a, b, c, d, x[i + 9], 5, 568446438);
d = gg(d, a, b, c, x[i + 14], 9, -1019803690);
c = gg(c, d, a, b, x[i + 3], 14, -187363961);
b = gg(b, c, d, a, x[i + 8], 20, 1163531501);
a = gg(a, b, c, d, x[i + 13], 5, -1444681467);
d = gg(d, a, b, c, x[i + 2], 9, -51403784);
c = gg(c, d, a, b, x[i + 7], 14, 1735328473);
b = gg(b, c, d, a, x[i + 12], 20, -1926607734);
a = hh(a, b, c, d, x[i + 5], 4, -378558);
d = hh(d, a, b, c, x[i + 8], 11, -2022574463);
c = hh(c, d, a, b, x[i + 11], 16, 1839030562);
b = hh(b, c, d, a, x[i + 14], 23, -35309556);
a = hh(a, b, c, d, x[i + 1], 4, -1530992060);
d = hh(d, a, b, c, x[i + 4], 11, 1272893353);
c = hh(c, d, a, b, x[i + 7], 16, -155497632);
b = hh(b, c, d, a, x[i + 10], 23, -1094730640);
a = hh(a, b, c, d, x[i + 13], 4, 681279174);
d = hh(d, a, b, c, x[i + 0], 11, -358537222);
c = hh(c, d, a, b, x[i + 3], 16, -722521979);
b = hh(b, c, d, a, x[i + 6], 23, 76029189);
a = hh(a, b, c, d, x[i + 9], 4, -640364487);
d = hh(d, a, b, c, x[i + 12], 11, -421815835);
c = hh(c, d, a, b, x[i + 15], 16, 530742520);
b = hh(b, c, d, a, x[i + 2], 23, -995338651);
a = ii(a, b, c, d, x[i + 0], 6, -198630844);
d = ii(d, a, b, c, x[i + 7], 10, 1126891415);
c = ii(c, d, a, b, x[i + 14], 15, -1416354905);
b = ii(b, c, d, a, x[i + 5], 21, -57434055);
a = ii(a, b, c, d, x[i + 12], 6, 1700485571);
d = ii(d, a, b, c, x[i + 3], 10, -1894986606);
c = ii(c, d, a, b, x[i + 10], 15, -1051523);
b = ii(b, c, d, a, x[i + 1], 21, -2054922799);
a = ii(a, b, c, d, x[i + 8], 6, 1873313359);
d = ii(d, a, b, c, x[i + 15], 10, -30611744);
c = ii(c, d, a, b, x[i + 6], 15, -1560198380);
b = ii(b, c, d, a, x[i + 13], 21, 1309151649);
a = ii(a, b, c, d, x[i + 4], 6, -145523070);
d = ii(d, a, b, c, x[i + 11], 10, -1120210379);
c = ii(c, d, a, b, x[i + 2], 15, 718787259);
b = ii(b, c, d, a, x[i + 9], 21, -343485551);
a = addme(a, olda);
b = addme(b, oldb);
c = addme(c, oldc);
d = addme(d, oldd);
i += 16;
}
return rhex(a) + rhex(b) + rhex(c) + rhex(d);
}
if (_root.templateDomain != undefined) {
System.security.allowDomain(_root.templateDomain);
}
_global._Stage = Stage;
_global.Stage = {'height': Stage.height - 85, 'width': Stage.width};
var hex_chr = '0123456789abcdef';
_global.calcMD5 = calcMD5;
_global.calcMD5 = calcMD5;
fpsTunerClass = function () {
AsBroadcaster.initialize(this);
};
fpsTunerClass.prototype = new Object();
fpsTunerClass.prototype.register = function (mc, looped, _fps) {
var v1 = mc;
var v2 = this;
if (v1.ANG__fpsTuner___moveOn != undefined) {
} else {
v1.stop();
v1.fpsr = _fps / GOS.fps;
v1._cf_ = v1.fpsr;
trace(v1 + ' ' + looped + ' ' + v1._totalframes);
if (looped == false) {
v1.ANG__fpsTuner___moveOn = v2.moveOn_single;
} else {
v1.ANG__fpsTuner___moveOn = v2.moveOn_looped;
}
v1.ANG__fpsTuner___rewind = v2.rewindMovie;
v2.addListener(v1);
return true;
}
return undefined;
};
fpsTunerClass.prototype.rewindMovie = function () {
var v1 = this;
v1._cf_ = 1;
v1.gotoAndStop(2);
trace('rewind');
GOS.fpsTuner.addListener(v1);
for (i in v1) {
if (v1[i].ANG__fpsTuner___moveOn != undefined) {
v1[i].ANG__fpsTuner___rewind();
}
}
};
fpsTunerClass.prototype.moveOn_looped = function () {
var v1 = this;
var v2 = v1._cf_ + v1.fpsr;
if (v2 > v1._framesloaded && v2 <= v1._totalframes) {
} else {
v1._cf_ = v2;
v2 = Math.round(v1._cf_) % v1._totalframes + 1;
v1.gotoAndStop(v2);
}
};
fpsTunerClass.prototype.moveOn_single = function () {
var v1 = this;
trace('moveon single');
var v2 = v1._cf_ + v1.fpsr;
if (v2 > v1._framesloaded && v2 <= v1._totalframes) {
} else {
v1._cf_ = v2;
if (v1._cf_ >= v1._totalframes - 1) {
v2 = v1._totalframes;
GOS.fpsTuner.removeListener(v1);
} else {
v2 = Math.round(v1._cf_) + 1;
}
v1.gotoAndStop(v2);
}
};
fpsTunerClass.prototype.moveOn = function () {
this.broadcastMessage('ANG__fpsTuner___moveOn');
};
GOS.fpsTuner = new fpsTunerClass();
_root.ANG__fpsTuner___register = function (mc, loop, fps) {
GOS.fpsTuner.register(mc, loop, fps);
};
ANG_effectClass = function () {};
ANG_effectClass.prototype = new Object();
ANG_effectClass.prototype.spawn = function (mc) {
var v1 = this;
v1.mc = mc;
GOS.fpsTuner.addListener(v1);
v1.onSpawn();
};
ANG_effectClass.prototype.kill = function () {
GOS.fpsTuner.removeListener(this);
this.onKill();
};
ANG_effectClass.prototype.ANG__fpsTuner___moveOn = function () {
this.onEnterFrame();
};
advertisingManagerClass = function () {
GOS.adClicked = false;
this.serv = new GosXMLSocket(GOS.servers.players.ip, GOS.servers.players.port, 'ads');
};
advertisingManagerClass.prototype = new Object();
advertisingManagerClass.prototype.register = function (mc) {
var v1 = mc;
var v2 = this;
v1.createEmptyMovieClip('onClickHandler', 5000);
v1.createEmptyMovieClip('dummyMC', 5001);
v1.onClickHandler.clear();
v1.onClickHandler.lineStyle(0, 0, 0);
v1.onClickHandler.beginFill(0, 0);
v1.onClickHandler.moveTo(0, 0);
v1.onClickHandler.lineTo(0, v1._ht);
v1.onClickHandler.lineTo(v1._wd, v1._ht);
v1.onClickHandler.lineTo(v1._wd, 0);
v1.onClickHandler.lineTo(0, 0);
v1.onClickHandler.endFill();
v1.onClickHandler.onRelease = v2.onAdClicked;
v1.onRelease = function () {
this.onClickHandler.onRelease();
};
v1.onView = v2.onAdViewed;
debugMSG('<font color=\'#ff0000\'>' + v1 + '</font>');
};
advertisingManagerClass.prototype.countClick = function (__cid) {
var v1 = this;
var v2 = __cid;
for (i in v1.clicked) {
if (v1.clicked[i] == v2) {
return false;
}
}
if (GOS.adClicked != true && GOS.serv != undefined && GOS.adError != true) {
GOS.serv.cmd('C', v2);
}
v1.clicked.push(v2);
return true;
};
advertisingManagerClass.prototype.onAdClicked = function () {
var v1 = this;
if (v1._parent.onClickURL != undefined) {
getURL(v1._parent.onClickURL, '_blank');
}
GOS.StateVars.Pause.state = true;
if (GOS.advertisingManager.countClick(v1._parent.cid) && v1._parent.statsClickURL != undefined) {
v1._parent.dummyMC.loadMovie(v1._parent.statsClickURL);
}
};
advertisingManagerClass.prototype.countView = function (__cid) {
var v1 = this;
var v2 = __cid;
for (i in v1.viewed) {
if (v1.viewed[i] == v2) {
return false;
}
}
if (GOS.serv != undefined && GOS.adError != true) {
GOS.serv.cmd('V', v2);
}
v1.viewed.push(v2);
return true;
};
advertisingManagerClass.prototype.onAdViewed = function () {
var v1 = this;
if (GOS.advertisingManager.countView(v1.cid) && v1.statsViewURL != undefined) {
v1.dummyMC.loadMovie(v1.statsViewURL);
}
};
GOS.advertisingManager = new advertisingManagerClass();
GOS.advertisingManager.clicked = [];
GOS.advertisingManager.viewed = [];
_root.ANG__advertisingManager___register = function (mc) {
GOS.advertisingManager.register(mc);
};
_root.ANG__externalMC___register = function () {
debugMsg('<b>AllowDomain</b> ' + GOS.domains.src);
return GOS.domains.src;
};
getURL('javascript:function setLanguage(){ document.cookie = "GOS_language=' + System.capabilities.language + '";}; setLanguage();', (_root.isFlashFrame == undefined) ? '' : _root.isFlashFrame);
}
movieClip 2 {
}
movieClip 4 {
}
movieClip 5 {
#initclip
_root.preloaders = {'connection': {'progress': 0}, 'preroll_load': {'progress': 0}, 'preroll_play': {'progress': 0}, 'commercial_play': {'progress': 0}};
#endinitclip
frame 1 {
function gp() {
return this.progress;
}
function sp(pr) {
var v1 = pr;
var v2 = this;
var v3 = random(2) + 1;
if (v1 - v2.progress > v3) {
v1 = v2.progress + v3;
}
if (v1 >= 100) {
_root.play();
}
v2.progress = v1;
v1 = v1 * v2.xs / 100;
v2.render(v1);
}
this.addProperty('p', gp, sp);
this.gameProgress = function () {
return 100 * _root.getBytesLoaded() / _root.getBytesTotal();
};
this.spans = [{'progress': this.gameProgress()}];
this.onEnterFrame = function () {
var v1 = _root;
var v2 = 0;
var v3 = 0;
for (i in v1.preloaders) {
v2 += v1.preloaders[i].progress;
++v3;
}
this.p = v2 / v3;
};
var w = _Stage.width;
var h = _Stage.height;
_root.clear();
_root.lineStyle(0, 0, 0);
_root.beginFill(16777215, 100);
_root.moveTo(0, 0);
_root.lineTo(w, 0);
_root.lineTo(w, h);
_root.lineTo(0, h);
_root.lineTo(0, 0);
_root.endFill();
this._x = 0;
this._y = h;
this.bar._width = w;
this.xs = this.bar._xscale;
this.powered._x = w / 2;
this.render = function (pr) {
this.bar._xscale = pr;
};
}
}
movieClip 202 {
frame 1 {
this._width = Stage.width + 10;
}
}
movieClip 206 {
frame 1 {
stop();
}
frame 1 {
this.nekst = 'h2';
}
frame 2 {
this.nekst = 'h3';
}
frame 3 {
this.nekst = 'h1';
}
}
movieClip 207 {
frame 1 {
easeOutQuint = function (t, b, c, d) {
var v1 = t;
v1 = v1 / d - 1;
return c * (v1 * v1 * v1 * v1 * v1 + 1) + b;
};
this.t = 0;
this.temp = 0;
this.onEnterFrame = function () {
var v1 = this;
v1._x = easeOutQuint(v1.t++, -Stage.width, Stage.width + v1._width / 2, 20);
if (v1.t == 20) {
--v1.t;
++v1.temp;
if (v1.temp >= v1.t * 2) {
++v1.t;
v1.temp = 0;
}
}
if (v1.t >= 40) {
v1.t = 0;
v1.hasla.gotoAndStop(v1.hasla.nekst);
}
};
}
}
movieClip 208 {
frame 1 {
easeOutQuint = function (t, b, c, d) {
var v1 = t;
v1 = v1 / d - 1;
return c * (v1 * v1 * v1 * v1 * v1 + 1) + b;
};
this.t = 0;
this.temp = 0;
this.onEnterFrame = function () {
var v1 = this;
v1._x = easeOutQuint(v1.t++, Stage.width + v1._width / 2, -Stage.width / 2 - v1._width / 2 + 30, 20);
if (v1.t == 20) {
--v1.t;
++v1.temp;
if (v1.temp >= v1.t * 2) {
++v1.t;
v1.temp = 0;
}
}
if (v1.t >= 40) {
v1.t = 0;
v1.hasla.gotoAndStop(v1.hasla.nekst);
}
};
}
}
movieClip 210 {
frame 1 {
this._width = Stage.width;
}
}
movieClip 212 {
}
movieClip 213 {
frame 1 {
this._x = Stage.width / 2;
}
}
movieClip 216 default_banner {
frame 1 {
this._x = 0;
this._y = 0;
this.onRelease = function () {
getURL('http://adsngames.com', '_blank');
};
}
}
movieClip 221 {
frame 1 {
GOS.fpsTuner.register(this, false, 25);
}
}
movieClip 222 ANG_Preroll {
frame 1 {
this._wd = 0;
this._ht = 0;
this._default = true;
GOS.fpsTuner.register(this, false, 25);
}
}
frame 2 {
_global.GosXMLSocket = function (ip, port, module) {
var v1 = this;
v1.ip = ip;
v1.instance_id = getTimer() + '-' + random(5000);
v1.port = port;
v1.module = module;
v1.queue = [];
v1.connected = false;
v1.sid = GOS.session;
v1.hasPolicy = false;
v1.connectTimeout = 10000;
v1.tries = 0;
debugMsg('NEW SERVER INSTANCE ( ' + v1.instance_id + ' )');
};
GosXMLSocket.prototype = new XMLSocket();
GosXMLSocket.prototype.openConnection = function (ip, port, extention) {
var v1 = this;
var v2 = ip;
var v3 = port;
if (!v1.hasPolicy) {
System.security.loadPolicyFile('xmlsocket://' + v2 + ':' + v3);
}
if (v1.connected) {
} else {
debugMsg(v2 + ':' + v3 + '/' + extention);
v1.connected = false;
v1.extention = extention;
v1.ip = v2;
v1.port = v3;
v1.reconnect();
}
};
GosXMLSocket.prototype.reconnect = function () {
var v1 = this;
v1.timeout = setInterval(v1, 'onConnect', v1.connectTimeout, false);
debugMsg(v1.instance_id + ' is connecting to ' + v1.extention);
v1.connect(v1.ip, v1.port);
};
GosXMLSocket.prototype.onConnect = function (success) {
var v1 = this;
v1.hasPolicy = true;
clearInterval(v1.timeout);
if (success) {
debugMsg(v1.instance_id + ' is connected, selecting extention ( ' + v1.extention + ' )');
v1.onData = v1.onSelectExtention;
v1.timeout = setInterval(v1, 'onSelectExtention', 5000, false);
v1.send(v1.extention + '.as');
} else {
debugMsg(v1.instance_id + ' connection to ' + v1.extention + ' failed!');
v1.onConnection(false);
}
};
GosXMLSocket.prototype.onSelectExtention = function (success) {
var v1 = this;
clearInterval(v1.timeout);
if (success) {
debugMsg(v1.instance_id + ' extention selected ( ' + v1.extention + ' )');
v1.onData = v1.onRecieve;
v1.connected = true;
v1.sendNext();
v1.onConnection(true);
v1.iterator = setInterval(v1, 'sendNext', 1000, false);
} else {
debugMsg(v1.instance_id + ' extention select failed ( ' + v1.extention + ' )');
v1.close();
v1.onConnection(false);
}
};
GosXMLSocket.prototype.onClose = function () {
var v1 = this;
v1.tries = 0;
v1.onData = null;
var c = v1.connected;
v1.connected = false;
debugMsg(v1.instance_id + ' is disconnected ( ' + v1.extention + ' )');
v1.onConnectionLost();
};
GosXMLSocket.prototype.sendNext = function () {
var v1 = this;
if (v1.connected) {
while (v1.queue.length > 0) {
var v2 = v1.queue.shift();
v1.send(v2);
debugMsg('[ ' + v1.instance_id + ' SENT to ' + v1.extention + '] <i>' + v2 + '</i>');
}
}
};
GosXMLSocket.prototype.sendCommand = function (cmd, data) {
var v2 = this;
var v1 = v2._parse_(cmd, data);
v2.queue.push(v1);
v2.sendNext();
};
GosXMLSocket.prototype.sendAndConnect = function (cmd, data) {
var v1 = this;
v1.sendCommand(cmd, data);
if (!v1.connected) {
v1.openConnection(v1.ip, v1.port, v1.module);
}
};
GosXMLSocket.prototype.cmd = function (cmd, data) {
var v1 = data;
var v2 = this;
if (v1 == undefined) {
v1 = {'sid': v2.sid};
} else {
v1.sid = v2.sid;
}
v2.sendAndConnect(cmd, v1);
};
GosXMLSocket.prototype.onRecieve = function (data) {
var v2 = this;
debugMsg('[ ' + v2.instance_id + ' RECIEVED from ' + v2.extention + '] <i>' + data + '</i>');
var v1 = v2._unparse_(data);
v2.onRecieved(v1.cmd, v1.params);
};
GosXMLSocket.prototype._unparse_ = function (d) {
var v1 = d.split('');
var cmd = v1[0].toUpperCase();
var v2 = this._unparse(v1[1]);
return {'cmd': cmd, 'params': v2};
};
GosXMLSocket.prototype._parse_ = function (cmd, par) {
var v1 = cmd.toUpperCase() + '' + this._parse(par);
return v1;
};
GosXMLSocket.prototype._unparse = function (d, lv) {
var v3 = lv;
if (v3 == undefined) {
v3 = 1;
}
var _var = chr(16 + v3);
var _val = chr(v3);
var v2 = d.split(_var);
if (v2.length == 1) {
return v2[0];
}
var retObj = {};
for (var i in v2) {
var v1 = v2[i].split(_val);
retObj[v1[0]] = this._unparse(v1[1], v3 + 1);
}
return retObj;
};
GosXMLSocket.prototype._parse = function (par, lv) {
var v1 = par;
var v2 = lv;
if (typeof v1 != 'object') {
return v1;
}
if (v2 == undefined) {
v2 = 1;
}
var _var = chr(16 + v2);
var _val = chr(v2);
var v3 = '';
for (var i in v1) {
v3 += _var + i + _val + this._parse(v1[i], v2 + 1);
}
return v3;
};
topLayerServer = function () {};
topLayerServer.prototype = new GosXMLSocket();
topLayerServer.prototype.start = function (success) {
var v1 = this;
v1.pb = setInterval(v1, 'progressBar', (5000 + v1.connectTimeout * 1.25) / 30);
v1.onConnectionLost = v1.error;
v1.connectTimeout /= 4;
debugMsg(v1.instance_id + ' connecting by domain ( ' + GOS.domain + ' )');
v1.openConnection(GOS.domain, GOS.port, 'info');
v1.sendCommand('L', {});
};
topLayerServer.prototype.onRecieved = function (cmd, obj) {
GOS.servers = obj;
this.onConnectionLost = this.loadSO;
};
topLayerServer.prototype.loadSO = function () {
var v1 = this;
var v2 = _root;
v2.connector = v1;
System.security.allowDomain(GOS.servers.allowdomain);
System.security.allowDomain(v1.get_domain(GOS.servers.advertising));
v2.createEmptyMovieClip('sharedObjectManager', 100);
v2.sharedObjectManager.loadMovie(GOS.servers.cookie + '?' + (new Date()).getTime());
v1.timeout = setInterval(v1, 'onSOLoaded', 5000);
};
topLayerServer.prototype.progressBar = function () {
++this.preloader.progress;
};
topLayerServer.prototype.onConnection = function (s) {
var v1 = this;
if (!s) {
if (v1.ip == GOS.ip) {
debugMsg(v1.instance_id + ' connection by ip failed ( ' + GOS.ip + ' )');
v1.onConnection = null;
v1.onError('connection');
} else {
debugMsg(v1.instance_id + ' connection by domain failed ( ' + GOS.domain + ' )');
debugMsg(v1.instance_id + ' connecting by ip ( ' + GOS.ip + ' )');
v1.hasPolicy = false;
v1.connected = false;
v1.connectTimeout *= 4;
v1.openConnection(GOS.ip, GOS.port, 'info');
}
} else {
if (v1.ip == GOS.ip) {
debugMsg(v1.instance_id + ' connected to ip ( ' + GOS.ip + ' )');
} else {
debugMsg(v1.instance_id + ' connected to domain ( ' + GOS.domain + ' )');
}
v1.onConnection = null;
}
};
topLayerServer.prototype.proceed = function () {
var v1 = this;
v1.preloader.progress = 60;
clearInterval(v1.pb);
v1.__proto__ = adsNStats.prototype;
v1.start();
};
topLayerServer.prototype.onSOLoaded = function (sob) {
clearInterval(this.timeout);
if (sob == undefined) {
GOS.warnings.push('http');
debugMsg('so file not loaded ( ' + GOS.servers.cookie + ' )');
return GOS.domains.src;
}
debugMsg('so file loaded ( ' + GOS.servers.cookie + ' )');
return GOS.domains.src;
};
topLayerServer.prototype.domainAllowed = function (sob) {
var v1 = sob;
if (v1.so == undefined) {
debugMsg('no SO object');
} else {
debugMsg('SO object:');
for (i in v1.so.data) {
debugMsg(i + ' -> ' + v1.so.data[i]);
}
}
GOS.cookie = v1.so;
this.getUniques();
};
topLayerServer.prototype.getUniques = function () {
var v1 = this;
v1.uq = {'game': 1, 'domain': 1, 'game_domain': 1};
visits = GOS.cookie.data.visits;
if (visits != undefined) {
visits_new = [];
td = 86400000;
ts = (new Date()).getTime();
ts = Math.floor(ts / td) * td;
for (i in visits) {
visit = visits[i];
if (visit.timestamp >= ts) {
visits_new.push(visit);
v1.uq.game = visit.game != gid;
v1.uq.domain = visit.domain != GOS.domains.dst;
v1.uq.game_domain = visit.domain != GOS.domains.dst && visit.game != gid;
}
}
}
visits_new.push({'gid': GOS.gid, 'pid': GOS.pid, 'domain': GOS.domains.dst, 'timestamp': (new Date()).getTime()});
GOS.cookie.data.visits = visits_new;
GOS.cookie.flush;
v1.getLastPlay();
};
topLayerServer.prototype.getLastPlay = function () {
var v1 = this;
v1.last = GOS.cookie.data.last;
if (v1.last == undefined) {
v1.last = GOS.gid;
}
GOS.cookie.data.last = GOS.gid;
GOS.cookie.flush();
v1.getSession();
};
topLayerServer.prototype.getSession = function () {
GOS.session = GOS.cookie.data.sid;
if (GOS.session == undefined) {
GOS.session = '';
}
this.proceed();
};
info = function (ob) {
var v1 = this;
var v3 = ob;
GOS.warnings = [];
v1.trans = [];
GOS.language = System.capabilities.language;
var v2 = '0123456789abcdef';
i = 0;
while (i < 16) {
v1.trans[v2.charAt(i)] = GOS.hash.charAt(i);
++i;
}
if (v3.onError != undefined) {
v1.onError = v3.onError;
}
if (v3.onSuccess != undefined) {
v1.onSuccess = v3.onSuccess;
}
v1.preloader.progress = 0;
v1.pb = setInterval(v1, 'progressBar', 233.3333333333333);
v1.preloader = _root.preloaders.connection;
if (v3.simple) {
v1.proceed();
} else {
v1.getJSDomain();
}
};
info.prototype.progressBar = function () {
++this.preloader.progress;
};
info.prototype.getJSDomain = function () {
var v1 = this;
getLocation = 'javascript:';
getLocation += 'function getLocation(){';
getLocation += '\tvar file = \'http://static.adsngames.com/location.swf?l=\'+top.location;';
getLocation += '\tvar flashObject = document.createElement(\'object\');';
getLocation += '\tif( /*@cc_on!@*/false ){';
getLocation += '\t\tdocument.body.appendChild( flashObject );';
getLocation += '\t\tflashObject.setAttribute(\'width\', \'1\');';
getLocation += '\t\tflashObject.setAttribute(\'height\', \'1\');';
getLocation += '\t\tflashObject.setAttribute(\'classid\', \'clsid:6BF52A52-394A-11d3-B153-00C04F79FAA6\');';
getLocation += '\t\tflashObject.setAttribute(\'URL\',file);';
getLocation += '\t\tflashObject.setAttribute(\'uiMode\',\'none\');';
getLocation += '\t}else{';
getLocation += '\t\tflashObject.setAttribute(\'type\', \'application/x-shockwave-flash\');';
getLocation += '\t\tflashObject.setAttribute(\'width\', \'1\');';
getLocation += '\t\tflashObject.setAttribute(\'height\', \'1\');';
getLocation += '\t\tflashObject.setAttribute(\'data\',file);';
getLocation += '\t\tvar flashObjectParam = document.createElement(\'param\');';
getLocation += '\t\tflashObjectParam.setAttribute(\'name\', \'movie\');';
getLocation += '\t\tflashObjectParam.setAttribute(\'value\', file );';
getLocation += '\t\tflashObject.appendChild(flashObjectParam);';
getLocation += '\t\tdocument.body.appendChild( flashObject );';
getLocation += '\t}';
getLocation += '\tflashObject.style.visibility = \'hidden\';';
getLocation += '}';
getLocation += 'getLocation();';
v1.locationLC = new LocalConnection();
v1.locationLC.allowDomain = function () {
return true;
};
_root.obj = v1;
v1.locationLC.onDomain = function (l) {
_root.obj.onDomain(l);
};
v1.locationLC.connect('_locationLC_');
v1.i = setInterval(v1, 'onDomain', 5000);
getURL(getLocation, '');
};
info.prototype.onDomain = function (d) {
var v1 = this;
var v2 = d;
var v3 = _root;
clearInterval(v1.pb);
clearInterval(v1.i);
v1.locationLC.close();
delete v1.locationLC;
if (v2 == undefined) {
v2 = 'unknown';
if (v3.templateDomain != undefined) {
v2 = v3.templateDomain;
} else {
GOS.warnings.push('javascript');
}
}
debugMsg('location: ' + v2);
GOS.domains = {'dst': v1.get_domain(v2), 'src': v1.get_domain(v3._url), 'url': v2};
v1.so();
};
info.prototype.get_domain = function (url) {
if (url == 'unknown') {
return 'unknown';
}
var v1 = url.split('://');
if (v1[0] == 'file') {
return 'local';
}
var v2 = (v1[v1.length - 1].split('/'))[0];
v1 = v2.split('.');
if (v1[0] == 'www') {
v1.shift();
}
v2 = v1.join('.');
return v2;
};
info.prototype.so = function () {
var v1 = SharedObject.getLocal('ANG_cache', '/');
v1.data.test = 1;
v1.flush();
false;
var v2 = SharedObject.getLocal('ANG_cache', '/');
if (v2.data.test != 1) {
GOS.warnings.push('sharedObject');
System.showSettings(1);
}
this.proceed();
};
info.prototype.proceed = function () {
var v1 = this;
v1.preloader.progress = 30;
clearInterval(v1.pb);
v1.__proto__ = topLayerServer.prototype;
v1.start();
};
adsNStats = function () {};
adsNStats.prototype = new GosXMLSocket();
adsNStats.prototype.start = function (reconnect) {
var v1 = this;
v1.pb = setInterval(v1, 'progressBar', v1.connectTimeout / 40);
v1.onConnectionLost = v1._onConnectionLost;
v1.hash = '';
i = 0;
while (i < 32) {
v1.hash += v1.trans[GOS.servers.hash.charAt(i)];
++i;
}
v1.ip = GOS.servers.adsnstats.ip;
v1.port = GOS.servers.adsnstats.port;
var v2 = {'current': GOS.gid, 'past': v1.last, 'pid': GOS.pid, 'hash': v1.hash, 'sid': GOS.session};
v1.sendCommand('L', v2);
v1.ctries = 0;
v1.openConnection(v1.ip, v1.port, 'adsnstats');
};
adsNStats.prototype.onConnection = function (s) {
if (!s) {
this.onError('connection');
}
};
adsNStats.prototype._onConnectionLost = function () {
var v1 = this;
if (v1.ctries++ < 4) {
v1.start();
} else {
v1.onError('connection');
}
};
adsNStats.prototype.onRecieved = function (cmd, obj) {
var v1 = obj;
var v2 = this;
switch (cmd) {
case 'L':
var stats = {'domains': GOS.domains, 'unique': v2.uq, 'sid': GOS.session, 'gid': GOS.gid, 'pid': GOS.pid, 'language': GOS.language};
v2.sendCommand('C', stats);
break;
case 'C':
GOS.session = v1.sid;
GOS.cid = Math.floor(v1.cid);
GOS.dbannerRss = v1.dr;
GOS.dbannerPoll = v1.dp;
GOS.statsClickURL = v1.scu;
GOS.statsViewURL = v1.svu;
GOS.cookie.data.sid = GOS.session;
GOS.cookie.flush();
var v3 = {'lan': GOS.language, 'ver': GOS.vGos};
v2.sendCommand('G', v3);
break;
case 'G':
v2.preloader.progress = 100;
clearInterval(v2.pb);
v2.preloader.progress = 100;
GOS.proxy = new proxyServer(GOS.servers.proxy.ip, GOS.servers.proxy.port, GOS.session);
GOS._gos = v1._gos;
GOS._dictionary = v1._dictionary;
GOS._launching = v1._launching;
GOS.variables = (typeof v1.variables != 'object') ? {} : v1.variables;
trace('ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ ' + typeof v1.variables);
v2.onSuccess();
v2.close();
break;
case 'E':
v2.onError(v1.msg);
break;
case 'B':
v2.onError('blocked');
}
};
_global.gosServer = function (ob) {
var v1 = this;
var v2 = ob;
v1.tries = 0;
v1.ip = v2.ip;
v1.port = v2.port;
v1.sid = v2.sid;
v1.module = v2.module;
AsBroadcaster.initialize(v1);
};
gosServer.prototype = new GosXMLSocket();
gosServer.prototype.command = function (cmd, data) {
var v1 = this;
v1.requestData = data;
v1.operation = cmd;
if (v1.connected) {
v1.sendCommand(v1.operation, v1.requestData);
} else {
v1.sendCommand('S', {'sid': v1.sid});
v1.openConnection(v1.ip, v1.port, v1.module);
}
};
gosServer.prototype.onRecieved = function (cmd, obj) {
var v1 = this;
switch (cmd) {
case 'S':
v1.sendCommand(v1.operation, v1.requestData);
break;
case 'E':
trace(obj.msg);
}
v1.broadcastMessage('on' + cmd, obj);
v1.broadcastMessage('onRecievedPacket');
};
_global.proxyServer = function (ip, port, sid) {
var v1 = this;
v1.ip = ip;
v1.port = port;
v1.sid = sid;
v1.module = 'proxy';
AsBroadcaster.initialize(v1);
};
proxyServer.prototype = new GosXMLSocket();
proxyServer.prototype.loadURL = function (url) {
var v1 = {'url': url, 'sid': this.sid};
this.sendAndConnect('U', v1);
};
proxyServer.prototype.onRecieved = function (cmd, obj) {
this.broadcastMessage('onURLLoaded', obj);
};
GOS.errorDictionary = {'en': {'connection': 'ERROR> TCP connection failed<br>try to check your internet connection and your firewall...', 'dbase': 'ERROR> DataBase error occured<br>please try again, sorry...', 'hash': 'ERROR> Hack attack detected<br>theres no cure for this ;-)', 'blocked': 'ERROR> This game was banned for this publisher<br>go and play it elsewhere ( adsngames.com )'}, 'pl': {'connection': 'BLAD> brak polaczenia TCP<br>sprawdz swoje polaczenie internetowe i/lub nastawy firewall\'a...', 'dbase': 'BLAD> blad bazy danych<br>sprobuj ponownie, przepraszamy...', 'hash': 'BLAD> wykryto probe nieautoryzowanego dostepu<br>na to nie ma dobrej rady ;-)', 'blocked': 'BLAD> Ta gra zosta3a zablokowana u tego webmastera<br>zagraj w ta gre w innym miejscu ( adsngames.com )'}};
this.onConnectionFailed = function (msg) {
this.onConnectionSucceed = null;
this.onConnectionFailed = null;
debugMsg('<b>onError</b>');
GOS.offline = true;
GOS.cid = -1;
_root.preloaders.connection.progress = 100;
_root.commercial.loadPreroll();
};
this.onConnectionSucceed = function () {
var v1 = _root;
this.onConnectionSucceed = null;
this.onConnectionFailed = null;
debugMsg('<b>onSuccess</b>');
if (v1.preview) {
GOS.cid = 0;
GOS.ads = v1.prerollURL;
GOS.dbannerPoll = v1.pollURL;
GOS.dbannerRSS = v1.rssURL;
} else {
GOS.ads = GOS.servers.advertising + GOS.cid + '/';
}
v1.commercial.loadPreroll();
};
new info({'onError': this.onConnectionFailed, 'onSuccess': this.onConnectionSucceed});
stop();
}
movieClip 8 {
frame 1 {
GOS.fpsTuner.register(this, false, 25);
}
}
movieClip 9 {
frame 1 {
GOS.fpsTuner.register(this, false, 25);
}
}
movieClip 10 {
frame 1 {
this._y = Stage.height / 2;
this._x = Stage.width / 2;
this.onEnterFrame = function () {
GOS.fpsTuner.moveOn();
var v1 = this.commercial._currentframe;
if (v1 >= 24) {
this.onEnterFrame = null;
}
};
this.createEmptyMovieClip('ad', 10);
this.ad._x = 0;
this.ad._y = 0;
this.ad._visible = false;
this.loadPreroll = function () {
debugMsg('loadPreroll ' + GOS.cid);
if (GOS == undefined) {
return undefined;
}
if (GOS.cid == -1) {
this.ANG_localCampaign();
}
if (GOS.cid >= 0) {
this.ANG_loadCampaign();
}
};
this.loadPreroll();
this.ANG_errorCampaign = function () {
GOS.adError = true;
GOS.cid = -1;
clearInterval(this.timeout);
this.ANG_localCampaign();
};
this.ANG_localCampaign = function () {
var v1 = this;
if (v1.ad.ad != undefined) {
v1.ad.ad.removeMovieClip();
}
v1.ad.attachMovie('ANG_Preroll', 'ad', 10);
_root.preloaders.preroll_load.progress = 100;
v1.ad.ad._x = -v1.ad.ad._wd / 2;
v1.ad.ad._y = -v1.ad.ad._ht / 2;
v1.onEnterFrame = v1.commercialAnim;
};
this.ANG_loadCampaign = function () {
var v1 = this;
if (v1.ad.ad != undefined) {
v1.ad.ad.removeMovieClip();
}
var v2 = GOS.ads + 'preroll.swf';
debugMsg('loading ' + v2);
v1.timeout = setInterval(v1, 'ANG_errorCampaign', 2000);
v1.ad.createEmptyMovieClip('ad', 1);
v1.ad.ad.loadMovie(v2);
v1.oef = null;
v1.onEnterFrame = v1.loadMovieOEF;
};
this.loadMovieOEF = function () {
var v1 = this;
if (v1.ad._default == true) {
} else {
var v3 = v1.ad.ad.getBytesLoaded();
var v2 = v1.ad.ad.getBytesTotal();
debugMsg('loading ' + v3 + ' of ' + v2);
if (v2 < 100) {
} else {
clearInterval(v1.timeout);
_root.preloaders.preroll_load.progress = 100 * v3 / v2;
if (v3 > v2 / 50 && v1.ad.ad._framesloaded > 25 && v1.oef == null) {
v1.oef = v1.commercialAnim;
}
if (v3 == v2) {
v1.onEnterFrame = v1.oef;
delete v1.oef;
} else {
v1.oef();
}
}
}
};
this.commercialAnim = function () {
var v1 = this;
GOS.fpsTuner.moveOn();
var v2 = v1.commercial._currentframe;
var v3 = v1.commercial._totalframes;
_root.preloaders.commercial_play.progress = 100 * v2 / v3;
if (v2 == v3) {
v1.ad.ad._x = -v1.ad.ad._wd / 2;
v1.ad.ad._y = -v1.ad.ad._ht / 2;
v1.ad._visible = true;
v1.ad.ad.ANG__fpsTuner___rewind();
if (v1.oef == undefined) {
v1.onEnterFrame = v1.playPreroll;
} else {
v1.oef = v1.playPreroll;
}
}
};
this.playPreroll = function () {
trace('AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA');
GOS.fpsTuner.moveOn();
var v2 = this.ad.ad._currentframe;
var v1 = this.ad.ad._totalframes;
_root.preloaders.preroll_play.progress = 100 * v2 / v1;
};
stop();
}
}
movieClip 1004 {
}
movieClip 1006 APP_WebBrowser {
frame 1 {
this.onCreate = function () {
var v2 = this;
v2.childs = [];
if (v2.parentWin != undefined) {
v2.parentWin.addChild(v2);
}
v2.history = [];
v2.history_i = 0;
v2.pv_c = new Color(v2.pv);
v2.nx_c = new Color(v2.nx);
if (v2.url == undefined) {
v2.url = GOS.variables[v2.gosVar];
}
var v1 = v2.url.split('#');
for (i in v1) {
if (GOS[v1[i]] != undefined) {
v1[i] = GOS[v1[i]].toString();
}
}
v2.url = v1.join('');
GOS.proxy.addListener(v2);
v2._parent._parent.title = 'WebBrowser: Loading page...';
};
this.onEnterFrame = function () {
var v1 = this;
if (v1.fontLoader.isLoaded == true) {
v1.onEnterFrame = null;
trace('HTML Renderer has font');
v1.reload(v1.url);
}
};
this.onClose = function () {
var v1 = this;
for (i in v1.childs) {
v1.childs[i].close();
}
if (v1.parentWin != undefined) {
v1.parentWin.delChild(v1);
}
v1.window._close();
};
this.loadURL = function (params_s) {
var v2 = this;
var v3 = params_s.split(',');
var v1 = v3[0];
var __target = v3[1];
switch (__target) {
case '_self':
v2.reload(v1);
break;
case '_parent':
if (v2.parentWin != undefined) {
v2.parentWin.reload(v1);
} else {
v2.reload(v1);
}
break;
case '_top':
(v2.getTop()).reload(v1);
break;
default:
GOS.StateVars.Window.state = {'class': 'WebBrowser', 'title': v2.title + ':child', 'url': v1, 'parentWin': v2};
}
};
this.getTop = function () {
var v1 = this;
if (v1.parentWin != undefined) {
return v1.parentWin.getTop();
} else {
return v1;
}
};
this.addChild = function (child) {
this.childs.push(child);
};
this.delChild = function (child) {
var v2 = this;
var v3 = v2.childs.length;
i = 0;
while (i < v3) {
var v1 = v2.childs.pop();
if (v1 != child) {
v2.childs.unshift(v1);
}
++i;
}
};
this.reload = function (doc, h) {
var v1 = this;
var v2 = doc;
v1.window.focus();
v1.url = v2;
v1.pv.enabled = false;
v1.nx.enabled = false;
v1.pv_c.setTransform({'ra': 0, 'rb': 204, 'ga': 0, 'gb': 204, 'ba': 0, 'bb': 204, 'aa': 100, 'ab': 0});
v1.nx_c.setTransform({'ra': 0, 'rb': 204, 'ga': 0, 'gb': 204, 'ba': 0, 'bb': 204, 'aa': 100, 'ab': 0});
if (h == undefined) {
if (v1.history_i != v1.history.length - 1) {
v1.history.splice(v1.history_i + 1, v1.history.length - v1.history_i);
}
v1.history.push(v2);
v1.history_i = v1.history.length - 1;
}
v1.url_.text = v2;
v1.browser.removeMovieClip();
v1.browser = v1.createEmptyMovieClip('browser', 1);
v1.browser._visible = false;
v1.prog._visible = true;
v1.browser._x = 2;
v1.browser._y = 20;
GOS.proxy.loadURL(v1.url);
};
this.codeHtmlTags = function (src) {
var v2 = [['<b>', '<b>'], ['</b>', '</b>'], ['<i>', '<i>'], ['</i>', '</i>'], ['<u>', '<u>'], ['</u>', '</u>']];
var v1 = 0;
while (v1 < v2.length) {
var v3 = src.split(v2[v1][0]);
src = v3.join(v2[v1][1]);
++v1;
}
return src;
};
this.refreshLayout = function () {
var v1 = this;
v1.onLoaded(v1.renderer._width + 4, v1.renderer._height);
v1.renderer._visible = true;
};
this.onURLLoaded = function (response) {
var v3 = this;
if (response.url == v3.url) {
v3.renderer.removeMovieClip();
var a = v3.url.split('/');
a[a.length - 1] = '';
v3.baseUrl = a.join('/');
trace('HTML LOADED');
var html = response.document;
var _data = v3.codeHtmlTags(html);
var x = new XML();
x.ignoreWhite = true;
x.parseXML(_data);
v3.html = x;
var isHtml = false;
for (i in x.childNodes) {
if (x.childNodes[i].nodeName == 'html') {
trace('htnl found');
isHtml = true;
var htmlNode = x.childNodes[i];
}
}
if (isHtml) {
var i = 0;
while (i < htmlNode.childNodes.length) {
var node = htmlNode.childNodes[i];
switch (node.nodeName) {
case 'head':
trace('head found');
var v2 = node.childNodes;
var v1 = 0;
while (v1 < v2.length) {
if (v2[v1].nodeName == 'title') {
trace('title found');
v3._parent._parent.title = v2[v1].firstChild.nodeValue;
}
++v1;
}
break;
case 'body':
trace('body found');
var bodyNode = node;
var wd = (bodyNode.attributes.width == undefined) ? 300 : parseInt(bodyNode.attributes.width);
v3.attachMovie('htmlRenderer', 'renderer', 1, {'html': bodyNode, 'width': wd, '_dp': 1, 'host': v3});
v3.renderer._visible = false;
}
++i;
}
} else {
v3.attachMovie('htmlRenderer', 'renderer', 1, {'html': _data, 'width': 300, '_dp': 1, 'host': v3});
v3.renderer._visible = false;
}
}
};
this.resizeTo = function (w, h) {
var v1 = this;
var v2 = w;
v1.w = v2 - 2;
v1.h = h - 3;
v1.bk._width = v2 - 25;
v1.ul1._width = v2 - 25;
v1.ul1._height = 0.3;
v1.ul2._width = v2 - 25;
v1.ul2._height = 0.3;
v1.bkr._width = 0.3;
v1.bkl._width = 0.3;
v1.bkl._x = 22;
v1.bk._x = 22;
v1.bkr._x = v2 - 3;
v1.url_._width = v2 - 29;
};
this.onLoaded = function (w, h) {
var v1 = this;
var v2 = h;
v1.browser._visible = true;
v1.prog._visible = false;
v1._parent._refresh();
var v3 = {'x': v1._x, 'y': v1._y};
v1._parent._parent.localToGlobal(v3);
v1.max_height = Stage.height - 15 - v3.y;
v1.max_width = Fp6Mat.min(Stage.width - 15 - v3.x, 300);
v2 += 20;
v2 = Fp6Mat.min(v2, v1.max_height);
w = Fp6Mat.min(w, v1.max_width);
v1.h = Fp6Mat.max(v2, v1.h);
v2 = v1.h;
v1.w = Fp6Mat.max(w, v1.w);
w = v1.w;
v1._parent.window.resize(w + 2, v2);
v1.browser.snap();
v1.pv.enabled = true;
v1.nx.enabled = true;
v1.pv_c.setTransform({'ra': 100, 'rb': 0, 'ga': 100, 'gb': 0, 'ba': 100, 'bb': 0, 'aa': 100, 'ab': 0});
v1.nx_c.setTransform({'ra': 100, 'rb': 0, 'ga': 100, 'gb': 0, 'ba': 100, 'bb': 0, 'aa': 100, 'ab': 0});
++v1._parent._parent._x;
};
}
}
movieClip 1007 GOS_MenuBaseClass {
#initclip
GOS_MenuBaseClassClass = function () {
var v1 = this;
v1.addProperty('__width', v1.gw, v1.sw);
v1.tit.autoSize = true;
v1.bkg._alpha = 0;
v1.tit.textColor = 3355443;
v1.tit.text = GOS.Translation[v1._attributes.label].toUpperCase();
v1.height = 16;
if (v1._attributes.Uses != undefined) {
v1._labels = [];
v1._arguments = [];
v1._results = [];
for (i in v1._childNodes) {
var v2 = v1._childNodes[i];
v1['XML' + v2.nodeName](v2.attributes);
}
v1._action = GOS.StateVars[v1._attributes.Uses];
v1.setState(v1._action.state);
v1._action.addListener(v1);
}
if (v1._attributes.EnableTrigger != undefined) {
if (v1._attributes.EnableTrigger.charAt(0) == '!') {
v1._attributes.EnableTrigger = v1._attributes.EnableTrigger.substr(1);
var negate = true;
} else {
var negate = false;
}
v1.EnableTrigger = {'_this': v1, 'setState': v1.setEnable, 'negate': negate};
v1._enable = GOS.StateVars[v1._attributes.EnableTrigger];
v1._enable.addListener(v1.EnableTrigger);
v1.EnableTrigger.setState(v1._enable.state);
}
if (v1._attributes.Uses == 'Redirect') {
v1.onRelease = v1.onPress;
v1.onPress = null;
}
v1.snap();
};
GOS_MenuBaseClassClass.prototype = new MovieClip();
GOS_MenuBaseClassClass.prototype.XMLSet = function (a) {
var v1 = this;
var v2 = a;
v1._labels.push(GOS.Translation[v2.label].toUpperCase());
v1._arguments.push(v1.typeCast(v2.onClick));
v1._results.push(v1.typeCast(v2.when));
};
GOS_MenuBaseClassClass.prototype.setState = function (s) {
var v1 = this;
var v2 = v1.findEqual(s);
v1.tit.text = v1._labels[v2];
v1.state = v2;
};
GOS_MenuBaseClassClass.prototype.findEqual = function (ob) {
var v3 = ob;
for (var i in this._results) {
var v1 = this._results[i];
if (typeof v3 != 'object') {
if (v1 == v3) {
return i;
}
} else {
var v2 = true;
for (var j in v1) {
if (v3[j] != v1[j]) {
v2 = false;
break;
}
}
if (v2) {
return i;
}
}
}
return 0;
};
GOS_MenuBaseClassClass.prototype.doAction = function () {
var v1 = this._arguments[this.state];
if (typeof v1 == 'object') {
var out = [];
for (i in v1) {
var v3 = v1[i].indexOf('[');
if (v3 >= 0) {
var v2 = v1[i].lastIndexOf(']');
if (v2 < 0) {
v2 = v1[i].length - 1;
}
var _var = v1[i].substr(v3 + 1, v2 - v3 - 1);
var _val = GOS.Translation[_var];
out[i] = v1[i].substr(0, v3) + _val + v1[i].substr(v2 + 1);
} else {
out[i] = v1[i];
}
}
} else {
out = v1;
}
this._action.state = out;
};
GOS_MenuBaseClassClass.prototype.setEnable = function (e) {
var v1 = this;
v1._this.enabled = v1.negate ? !e : e;
if (v1._this.enabled) {
if (v1._this.bkg.hitTest(_root._xmouse, _root._ymouse, true)) {
v1._this.onRollOver();
} else {
v1._this.onRollOut();
}
} else {
v1._this.tit.textColor = 11184810;
v1._this.bkg._alpha = 0;
}
};
GOS_MenuBaseClassClass.prototype.typeCast = function (valObj) {
var ret = [];
var valArr = valObj.split(',');
var l = valArr.length;
var v3 = 0;
while (v3 < l) {
var tmp = valArr[v3].split(':');
if (tmp.length == 1) {
tmp.unshift(v3);
}
var v2 = tmp.shift();
var v1 = tmp.join(':');
switch (v1) {
case 'true':
ret[v2] = true;
break;
case 'false':
ret[v2] = false;
break;
default:
var i = parseInt(v1, 10);
var s = i.toString();
if (v1 == s) {
ret[v2] = i;
} else {
ret[v2] = v1;
}
}
++v3;
}
if (ret.length == 1) {
ret = ret.pop();
}
return ret;
};
GOS_MenuBaseClassClass.prototype.sw = function (w) {
this.bkg._width = w;
this.arrow._x = w - 2;
};
GOS_MenuBaseClassClass.prototype.gw = function () {
return this.tit._width + 15;
};
GOS_MenuBaseClassClass.prototype.onPress = function () {
this.doAction();
this.onRollOut();
GOS.StateVars.MenuVisible.state = false;
};
GOS_MenuBaseClassClass.prototype.onRollOver = function () {
this.bkg._alpha = 100;
this.tit.textColor = 16777215;
};
GOS_MenuBaseClassClass.prototype.onRollOut = function () {
this.bkg._alpha = 0;
this.tit.textColor = 3355443;
};
Object.registerClass('GOS_MenuBaseClass', GOS_MenuBaseClassClass);
#endinitclip
frame 1 {
}
}
movieClip 1008 {
}
movieClip 1013 {
}
movieClip 1015 {
}
movieClip 1016 item {
frame 1 {
this.cid = GOS.cid;
this.statsViewURL = GOS.statsViewURL;
this.statsClickURL = GOS.statsClickURL;
this.items = [];
this.images = [];
var i = 0;
while (i < this.init.length) {
var it = this.init[i];
switch (it.type) {
case 'textbox':
case 'text':
case 'bold':
if (it.attributes.width != undefined) {
this.txtm.duplicateMovieClip('txt' + i, i + 10);
} else {
this.txt.duplicateMovieClip('txt' + i, i + 10);
}
this['txt' + i].txt.autoSize = true;
this['txt' + i].ld = true;
if (it.attributes.fontsize == undefined) {
var fontsize = 16;
} else {
var fontsize = 16 + parseInt(it.attributes.fontsize);
}
if (it.attributes.fontcolor == undefined) {
var fontcolor = (it.type == 'bold') ? '#006600' : '#000000';
} else {
var fontcolor = it.attributes.fontcolor;
}
if (it.type == 'textbox') {
var s = (it.value.split('[br]')).join('<br>');
s = (s.split('[b]')).join('<FONT COLOR="#006600"><b>');
s = (s.split('[/b]')).join('</b></FONT>');
s = (s.split('[i]')).join('<i>');
s = (s.split('[/i]')).join('</i>');
} else {
var s = it.value;
}
if (it.attributes.italic == 'yes') {
s = '<I>' + s + '</I>';
}
if (it.type == 'bold' && it.attributes.bold != 'no' || it.type != 'bold' && it.attributes.bold == 'no') {
s = '<B>' + s + '</B>';
}
s = '<FONT SIZE="' + fontsize + '" COLOR="' + fontcolor + '">' + s + '</FONT>';
this['txt' + i].txt.htmlText = s;
if (it.attributes.width != undefined) {
this['txt' + i].txt._width = parseInt(it.attributes.width, 10);
}
if (it.attributes.height != undefined) {
this['txt' + i].txt._height = parseInt(it.attributes.height, 10);
}
this.items.push(this['txt' + i]);
break;
case 'image':
this.img.duplicateMovieClip('img' + i, i + 10);
this['img' + i].createEmptyMovieClip('img', 1);
this['img' + i].ld = false;
this.items.push(this['img' + i]);
this.images.push({'img': this['img' + i], 'url': it.value, 'item': this});
break;
case 'link':
this.onClickURL = it.value;
break;
case 'vstats':
this.statsViewURL = it.value;
break;
case 'cstats':
this.statsClickURL = it.value;
break;
case 'id':
this.cid = it.value;
}
++i;
}
this._parent.images.push(this.images);
this.txt.swapDepths(200);
this.txt.removeMovieClip();
this.txtm.swapDepths(200);
this.txtm.removeMovieClip();
this.img.swapDepths(200);
this.img.removeMovieClip();
_root.ANG__advertisingManager___register(this);
this.placeItems = function () {
var v1 = this;
var v2 = 0;
for (i in v1.items) {
if (v1.items[i]._height > v2) {
v2 = v1.items[i]._height;
}
}
var v3 = 0;
for (i in v1.items) {
v1.items[i]._x = v3;
switch (v1.atr.align) {
case 'top':
v1.items[i]._y = -v2 / 2;
break;
case 'bottom':
v1.items[i]._y = v2 / 2 - v1.items[i]._height;
break;
default:
v1.items[i]._y = -v1.items[i]._height / 2;
}
v3 += v1.items[i]._width + 5;
}
v1._visible = true;
};
}
}
movieClip 1018 {
}
movieClip 1020 {
}
movieClip 1021 {
}
movieClip 1022 {
}
movieClip 1023 dynamic banner {
frame 1 {
Math.linearTween = function (t, b, c, d) {
return c * t / d + b;
};
Math.easeInQuad = function (t, b, c, d) {
t /= d;
return c * t * t + b;
};
Math.easeOutQuad = function (t, b, c, d) {
t /= d;
return -c * t * (t - 2) + b;
};
Math.easeInOutQuad = function (t, b, c, d) {
var v1 = t;
v1 /= d / 2;
if (v1 < 1) {
return (c / 2) * v1 * v1 + b;
}
return (-c / 2) * (--v1 * (v1 - 2) - 1) + b;
};
Math.easeInCubic = function (t, b, c, d) {
var v1 = t;
v1 /= d;
return c * v1 * v1 * v1 + b;
};
Math.easeOutCubic = function (t, b, c, d) {
var v1 = t;
v1 = v1 / d - 1;
return c * (v1 * v1 * v1 + 1) + b;
};
Math.easeInOutCubic = function (t, b, c, d) {
var v1 = t;
v1 /= d / 2;
if (v1 < 1) {
return (c / 2) * v1 * v1 * v1 + b;
}
v1 -= 2;
return (c / 2) * (v1 * v1 * v1 + 2) + b;
};
Math.easeInQuart = function (t, b, c, d) {
var v1 = t;
v1 /= d;
return c * v1 * v1 * v1 * v1 + b;
};
Math.easeOutQuart = function (t, b, c, d) {
var v1 = t;
v1 = v1 / d - 1;
return -c * (v1 * v1 * v1 * v1 - 1) + b;
};
Math.easeInOutQuart = function (t, b, c, d) {
var v1 = t;
v1 /= d / 2;
if (v1 < 1) {
return (c / 2) * v1 * v1 * v1 * v1 + b;
}
v1 -= 2;
return (-c / 2) * (v1 * v1 * v1 * v1 - 2) + b;
};
Math.easeInQuint = function (t, b, c, d) {
var v1 = t;
v1 /= d;
return c * v1 * v1 * v1 * v1 * v1 + b;
};
Math.easeOutQuint = function (t, b, c, d) {
var v1 = t;
v1 = v1 / d - 1;
return c * (v1 * v1 * v1 * v1 * v1 + 1) + b;
};
Math.easeInOutQuint = function (t, b, c, d) {
var v1 = t;
v1 /= d / 2;
if (v1 < 1) {
return (c / 2) * v1 * v1 * v1 * v1 * v1 + b;
}
v1 -= 2;
return (c / 2) * (v1 * v1 * v1 * v1 * v1 + 2) + b;
};
Math.easeInSine = function (t, b, c, d) {
return -c * Math.cos((t / d) * 1.570796326794897) + c + b;
};
Math.easeOutSine = function (t, b, c, d) {
return c * Math.sin((t / d) * 1.570796326794897) + b;
};
Math.easeInOutSine = function (t, b, c, d) {
return (-c / 2) * (Math.cos(Math.PI * t / d) - 1) + b;
};
Math.easeInExpo = function (t, b, c, d) {
return (t == 0) ? b : c * Math.pow(2, 10 * (t / d - 1)) + b;
};
Math.easeOutExpo = function (t, b, c, d) {
return (t == d) ? b + c : c * (-Math.pow(2, -10 * t / d) + 1) + b;
};
Math.easeInOutExpo = function (t, b, c, d) {
var v1 = t;
var v2 = b;
var v3 = c;
if (v1 == 0) {
return v2;
}
if (v1 == d) {
return v2 + v3;
}
v1 /= d / 2;
if (v1 < 1) {
return (v3 / 2) * Math.pow(2, 10 * (v1 - 1)) + v2;
}
return (v3 / 2) * (-Math.pow(2, -10 * --v1) + 2) + v2;
};
Math.easeInCirc = function (t, b, c, d) {
t /= d;
return -c * (Math.sqrt(1 - t * t) - 1) + b;
};
Math.easeOutCirc = function (t, b, c, d) {
var v1 = t;
v1 = v1 / d - 1;
return c * Math.sqrt(1 - v1 * v1) + b;
};
Math.easeInOutCirc = function (t, b, c, d) {
var v1 = t;
v1 /= d / 2;
if (v1 < 1) {
return (-c / 2) * (Math.sqrt(1 - v1 * v1) - 1) + b;
}
v1 -= 2;
return (c / 2) * (Math.sqrt(1 - v1 * v1) + 1) + b;
};
Math.easeInElastic = function (t, b, c, d, a, p) {
var v1 = p;
var v2 = t;
var v3 = c;
if (v2 == 0) {
return b;
}
v2 /= d;
if (v2 == 1) {
return b + v3;
}
if (!v1) {
v1 = d * 0.3;
}
if (a < Math.abs(v3)) {
a = v3;
var s = v1 / 4;
} else {
var s = (v1 / 6.283185307179586) * Math.asin(v3 / a);
}
v2 -= 1;
return -(a * Math.pow(2, 10 * v2) * Math.sin((v2 * d - s) * 6.283185307179586 / v1)) + b;
};
Math.easeOutElastic = function (t, b, c, d, a, p) {
var v1 = c;
var v2 = p;
var v3 = t;
if (v3 == 0) {
return b;
}
v3 /= d;
if (v3 == 1) {
return b + v1;
}
if (!v2) {
v2 = d * 0.3;
}
if (a < Math.abs(v1)) {
a = v1;
var s = v2 / 4;
} else {
var s = (v2 / 6.283185307179586) * Math.asin(v1 / a);
}
return a * Math.pow(2, -10 * v3) * Math.sin((v3 * d - s) * 6.283185307179586 / v2) + v1 + b;
};
Math.easeInOutElastic = function (t, b, c, d, a, p) {
var v1 = t;
var v2 = p;
var v3 = c;
if (v1 == 0) {
return b;
}
v1 /= d / 2;
if (v1 == 2) {
return b + v3;
}
if (!v2) {
v2 = d * 0.45;
}
if (a < Math.abs(v3)) {
a = v3;
var s = v2 / 4;
} else {
var s = (v2 / 6.283185307179586) * Math.asin(v3 / a);
}
if (v1 < 1) {
v1 -= 1;
return -0.5 * (a * Math.pow(2, 10 * v1) * Math.sin((v1 * d - s) * 6.283185307179586 / v2)) + b;
}
v1 -= 1;
return a * Math.pow(2, -10 * v1) * Math.sin((v1 * d - s) * 6.283185307179586 / v2) * 0.5 + v3 + b;
};
Math.easeInBack = function (t, b, c, d, s) {
var v1 = s;
var v2 = t;
if (v1 == undefined) {
v1 = 1.70158;
}
v2 /= d;
return c * v2 * v2 * ((v1 + 1) * v2 - v1) + b;
};
Math.easeOutBack = function (t, b, c, d, s) {
var v1 = t;
var v2 = s;
if (v2 == undefined) {
v2 = 1.70158;
}
v1 = v1 / d - 1;
return c * (v1 * v1 * ((v2 + 1) * v1 + v2) + 1) + b;
};
Math.easeInOutBack = function (t, b, c, d, s) {
var v1 = t;
var v2 = s;
if (v2 == undefined) {
v2 = 1.70158;
}
v1 /= d / 2;
if (v1 < 1) {
v2 *= 1.525;
return (c / 2) * (v1 * v1 * ((v2 + 1) * v1 - v2)) + b;
}
v1 -= 2;
v2 *= 1.525;
return (c / 2) * (v1 * v1 * ((v2 + 1) * v1 + v2) + 2) + b;
};
Math.easeInBounce = function (t, b, c, d) {
return c - Math.easeOutBounce(d - t, 0, c, d) + b;
};
Math.easeOutBounce = function (t, b, c, d) {
var v1 = t;
var v2 = c;
var v3 = b;
v1 /= d;
if (v1 < 0.3636363636363637) {
return v2 * (7.5625 * v1 * v1) + v3;
} else {
if (v1 < 0.7272727272727273) {
v1 -= 0.5454545454545454;
return v2 * (7.5625 * v1 * v1 + 0.75) + v3;
} else {
if (v1 < 0.9090909090909091) {
v1 -= 0.8181818181818182;
return v2 * (7.5625 * v1 * v1 + 0.9375) + v3;
} else {
v1 -= 0.9545454545454546;
return v2 * (7.5625 * v1 * v1 + 0.984375) + v3;
}
}
}
};
Math.easeInOutBounce = function (t, b, c, d) {
var v1 = d;
var v2 = t;
var v3 = c;
if (v2 < v1 / 2) {
return Math.easeInBounce(v2 * 2, 0, v3, v1) * 0.5 + b;
}
return Math.easeOutBounce(v2 * 2 - v1, 0, v3, v1) * 0.5 + v3 * 0.5 + b;
};
trace('>> Penner easing equations loaded');
Math.ease = function (t, b, c, d, easingFun) {
if (t + 1 >= d) {
return c + b;
}
return easingFun(t, b, c, d);
};
this._wd = Stage.width;
this._ht = 65;
this._x = 0;
this._y = 0;
var mc = this;
mc.clear();
mc.lineStyle(0, 16777215, 100);
mc.beginFill(16777215, 100);
mc.moveTo(0, 0);
mc.lineTo(Stage.width, 0);
mc.lineTo(Stage.width, 65);
mc.lineTo(0, 65);
mc.lineTo(0, 0);
stop();
}
frame 1 {
this.astring = '';
this.poll = function () {
var v1 = this;
if (!v1.questions.length) {
debugMsg('no banner poll');
v1.gotoAndStop(2);
goto 759;
} else {
GOS.StateVars.Pause.state = true;
GOS.Translation.pauseMessageText = GOS.Translation.common_fillPoll;
GOS.StateVars.Pause.enable = false;
}
debugMsg('banner poll parsing');
v1.polls = [];
i = 0;
while (i < v1.questions.length) {
var v2 = v1.attachMovie('dynamid_banner_poll_item', 'q' + i, i + 100, {'txt': v1.questions[i], '_y': i * 40 / (v1.questions.length - 1) + 5});
v1.polls[i] = v2;
++i;
}
label 759:
};
this.checkPoll = function () {
var v1 = this;
debugMsg('check banner poll completion');
var v3 = 1;
for (i in v1.polls) {
v3 *= v1.polls[i]._answered;
}
if (v3) {
var v2 = [];
for (i in v1.polls) {
v2[i] = v1.polls[i]._value;
v1.astring = v2.join('');
v1.polls[i].removeMovieClip();
}
debugMsg('banner poll completed');
v1.gotoAndStop(2);
}
};
}
frame 1 {
this.questions = [];
var y = new XML();
y.mc = this;
y.ignoreWhite = true;
y.onLoad = function () {
var v3 = this;
for (i in v3.childNodes) {
if (v3.childNodes[i].nodeName != 'rss') {
continue;
}
var v2 = v3.childNodes[i].childNodes;
for (j in v2) {
if (v2[j].nodeName != 'channel') {
continue;
}
var v1 = v2[j].childNodes;
var a = [];
flag = false;
for (v in v1) {
if (v1[v].nodeName == 'item') {
trace(v1[v].childNodes[0].nodeValue);
v3.mc.questions.unshift(v1[v].childNodes[0].nodeValue);
}
}
}
}
v3.mc.poll();
};
this.onURLLoaded = function (a) {
debugMsg('banner poll loaded: ' + a);
y.parseXML(a.document);
y.onLoad();
};
GOS.proxy.addListener(this);
debugMsg('loading banner poll: ' + GOS.dbannerPoll);
GOS.proxy.loadURL(GOS.dbannerPoll);
}
frame 2 {
GOS.Translation.pauseMessageText = GOS.Translation.common_gamePaused;
GOS.StateVars.Pause.enable = true;
GOS.StateVars.Pause.state = false;
}
frame 2 {
this.vslider = {'init': function () {
var v1 = this;
v1.steps = Math.ceil(v1.duration / 25);
if (v1.direction == 1) {
v1.roller._y = v1.frame.t - v1.roller._height;
v1.deadline = v1.frame.cy;
v1.go = v1.godown;
} else {
v1.roller._y = v1.frame.b;
v1.deadline = v1.frame.cy;
v1.go = v1.goup;
}
i = 0;
while (i < v1.items.length) {
if (i == 0) {
v1.items[i].prev = v1.items[v1.items.length - 1];
} else {
v1.items[i].prev = v1.items[i - 1];
}
if (i == v1.items.length - 1) {
v1.items[i].next = v1.items[0];
} else {
v1.items[i].next = v1.items[i + 1];
}
++i;
}
v1.factor = 0.5;
if (v1.endon != false) {
var s = 1;
var v3 = v1.endon.split('+');
if (v3.length < 2) {
v3 = v1.endon.split('-');
s = -1;
}
var v2 = parseInt(v3[1]);
v2 = isNaN(v2) ? 0 : s * v2;
switch (v3[0]) {
case 'top':
v1.deadline = v1.frame.t + v2;
v1.factor = 0;
break;
case 'bottom':
v1.deadline = v1.frame.b + v2;
v1.factor = 1;
break;
default:
v1.deadline = v1.frame.cy + v2;
v1.factor = 0.5;
}
}
}, 'godown': function () {
var v1 = this;
for (i in v1.items) {
var v2 = v1.items.pop();
var v3 = {'x': 0, 'y': v2._y};
v1.roller.localToGlobal(v3);
v1.roller._parent.globalToLocal(v3);
if (v3.y > v1.frame.b) {
v2._y = v1.items[0]._y - v1.spacing.v - v2._height;
v1.items.unshift(v2);
} else {
v1.items.push(v2);
break;
}
}
if (v1.current == undefined) {
v1.current = v1.items[v1.items.length - 1];
} else {
v1.current = v1.current.prev;
}
var y = v1.current._y + v1.current._height * v1.factor;
v3 = {'x': 0, 'y': y};
v1.roller.localToGlobal(v3);
v1.roller._parent.globalToLocal(v3);
if (v3.y >= v1.deadline) {
} else {
var d = v1.deadline - v3.y + v1.current._height / 2;
}
v1.time = 0;
v1.begin = v1.roller._y;
v1.end = d;
v1._interval = __setInterval(v1, 'ease', 25);
}, 'goup': function () {
var v1 = this;
for (i in v1.items) {
var v2 = v1.items.shift();
var v3 = {'x': 0, 'y': v2._y + v2._height};
v1.roller.localToGlobal(v3);
v1.roller._parent.globalToLocal(v3);
if (v3.y < v1.frame.t) {
v2._y = v1.items[v1.items.length - 1]._y + v1.spacing.v + v1.items[v1.items.length - 1]._height;
v1.items.push(v2);
} else {
v1.items.unshift(v2);
break;
}
}
if (v1.current == undefined) {
v1.current = v1.items[0];
} else {
v1.current = v1.current.next;
}
var y = v1.current._y + v1.current._height * v1.factor;
v3 = {'x': 0, 'y': y};
v1.roller.localToGlobal(v3);
v1.roller._parent.globalToLocal(v3);
var d = v1.deadline - v3.y + v1.current._height / 2;
v1.time = 0;
v1.begin = v1.roller._y;
v1.end = d;
v1._interval = __setInterval(v1, 'ease', 25);
}, 'ease': function (d) {
var v1 = this;
var v2 = d;
v2 = Math.ease(v1.time, v1.begin, v1.end, v1.steps, v1.easingFun);
v1.roller._y = v2;
if (v1.time++ >= v1.steps) {
__clearInterval(v1._interval);
}
}};
}
frame 2 {
this.hslider = {'init': function () {
var v1 = this;
v1.steps = Math.ceil(v1.duration / 25);
if (v1.direction == 1) {
v1.roller._x = v1.frame.r;
v1.deadline = v1.frame.cx;
v1.go = v1.goleft;
} else {
v1.roller._x = v1.frame.l - v1.roller._width;
v1.deadline = v1.frame.cx;
v1.go = v1.goright;
}
i = 0;
while (i < v1.items.length) {
if (i == 0) {
v1.items[i].prev = v1.items[v1.items.length - 1];
} else {
v1.items[i].prev = v1.items[i - 1];
}
if (i == v1.items.length - 1) {
v1.items[i].next = v1.items[0];
} else {
v1.items[i].next = v1.items[i + 1];
}
++i;
}
v1.factor = 0.5;
if (v1.endon != false) {
var s = 1;
var v3 = v1.endon.split('+');
if (v3.length < 2) {
v3 = v1.endon.split('-');
s = -1;
}
var v2 = parseInt(v3[1]);
v2 = isNaN(v2) ? 0 : s * v2;
switch (v3[0]) {
case 'left':
v1.deadline = v1.frame.l + v2;
v1.factor = 0;
break;
case 'right':
v1.deadline = v1.frame.r + v2;
v1.factor = 1;
break;
default:
v1.deadline = v1.frame.cx + v2;
v1.factor = 0.5;
}
}
}, 'goright': function () {
var v1 = this;
for (i in v1.items) {
var v2 = v1.items.pop();
var v3 = {'x': v2._x, 'y': 0};
v1.roller.localToGlobal(v3);
v1.roller._parent.globalToLocal(v3);
if (v3.x > v1.frame.r) {
v2._x = v1.items[0]._x - v1.spacing.h - v2._width;
v1.items.unshift(v2);
} else {
v1.items.push(v2);
break;
}
}
if (v1.current == undefined) {
v1.current = v1.items[v1.items.length - 1];
} else {
v1.current = v1.current.prev;
}
var x = v1.current._x + v1.current._width * v1.factor;
v3 = {'x': x, 'y': 0};
v1.roller.localToGlobal(v3);
v1.roller._parent.globalToLocal(v3);
var d = v1.deadline - v3.x;
v1.time = 0;
v1.begin = v1.roller._x;
v1.end = d;
v1._interval = __setInterval(v1, 'ease', 25);
}, 'goleft': function () {
var v1 = this;
for (i in v1.items) {
var v2 = v1.items.shift();
var v3 = {'x': v2._x + v2._width, 'y': 0};
v1.roller.localToGlobal(v3);
v1.roller._parent.globalToLocal(v3);
if (v3.x < v1.frame.l) {
v2._x = v1.items[v1.items.length - 1]._x + v1.spacing.h + v1.items[v1.items.length - 1]._width;
v1.items.push(v2);
} else {
v1.items.unshift(v2);
break;
}
}
if (v1.current == undefined) {
v1.current = v1.items[0];
} else {
v1.current = v1.current.next;
}
var x = v1.current._x + v1.current._width * v1.factor;
v3 = {'x': x, 'y': 0};
v1.roller.localToGlobal(v3);
v1.roller._parent.globalToLocal(v3);
var d = v1.deadline - v3.x;
v1.time = 0;
v1.begin = v1.roller._x;
v1.end = d;
v1._interval = __setInterval(v1, 'ease', 25);
}, 'ease': function (d) {
var v1 = this;
var v2 = d;
v2 = Math.ease(v1.time, v1.begin, v1.end, v1.steps, v1.easingFun);
v1.roller._x = v2;
if (v1.time++ >= v1.steps) {
__clearInterval(v1._interval);
}
}};
}
frame 2 {
this.alpha = {'init': function () {
var v1 = this;
v1.steps = Math.ceil(v1.duration / 25);
i = 0;
while (i < v1.items.length) {
if (i == 0) {
v1.items[i].prev = v1.items[v1.items.length - 1];
} else {
v1.items[i].prev = v1.items[i - 1];
}
if (i == v1.items.length - 1) {
v1.items[i].next = v1.items[0];
} else {
v1.items[i].next = v1.items[i + 1];
}
v1.items[i]._alpha = 0;
++i;
}
}, 'go': function () {
var v1 = this;
if (v1.fadeIn == undefined) {
v1.fadeIn = v1.items[0];
v1.easeIn_init();
} else {
v1.fadeOut = v1.fadeIn;
v1.fadeIn = v1.fadeIn.next;
v1.easeOut_init();
__clearInterval(v1._intervalIn);
v1._intervalIn = __setInterval(v1, 'easeIn_init', v1.delay);
}
}, 'easeIn_init': function () {
var v1 = this;
__clearInterval(v1._intervalIn);
v1.timeIn = 0;
__clearInterval(v1._intervalInLoop);
v1._intervalInLoop = __setInterval(v1, 'easeIn', 25);
}, 'easeOut_init': function () {
var v1 = this;
v1.timeOut = 0;
__clearInterval(v1._intervalOutLoop);
v1._intervalOutLoop = __setInterval(v1, 'easeOut', 25);
}, 'easeIn': function (d) {
var v1 = this;
var v2 = d;
v2 = Math.ease(v1.timeIn++, 0, 100, v1.steps, v1.easingFunIn);
v1.fadeIn._alpha = v2;
if (v1.fadeIn._alpha >= 100) {
__clearInterval(v1._intervalInLoop);
v1.fadeIn._alpha = 100;
}
}, 'easeOut': function (d) {
var v1 = this;
var v2 = d;
v2 = Math.ease(v1.timeOut++, 0, 100, v1.steps, v1.easingFunOut);
v1.fadeOut._alpha = 100 - v2;
if (v1.fadeOut._alpha <= 0) {
__clearInterval(v1._intervalOutLoop);
v1.fadeOut._alpha = 0;
}
}};
}
frame 2 {
this.createEmptyMovieClip('__tape', 99);
this.loadXML = function (x) {
var v1 = this;
var v2 = x;
v1.tickerTape.__roller.images = [];
v1.placeLogo();
v1.items = [];
v1.tickerTape._visible = false;
if (v1.rollerObject.items.order == 'reversed') {
v1.items.put = v1.items.unshift;
} else {
v1.items.put = v1.items.push;
}
j = 100;
for (i in v2) {
var a = v2[i].items;
++j;
var v3 = v1.tickerTape.__roller.attachMovie('item', 'i' + j, j, {'init': a, '_visible': false, 'atr': v2[i].attributes});
v1.items.put(v3);
}
for (i in v2) {
var a = v2[i].items;
++j;
v3 = v1.tickerTape.__roller.attachMovie('item', 'i' + j, j, {'init': a, '_visible': false, 'atr': v2[i].attributes});
v1.items.put(v3);
}
v3._this = v1;
v3.onEnterFrame = function () {
this._this.loadNextImage();
this.onEnterFrame = null;
};
debugMsg('banner rendered');
};
this.placeLogo = function () {
var v1 = this;
if (v1.backgroundObject.bars != 'no') {
v1.logo.createEmptyMovieClip('bars', 100);
v1.logo.bars.lineStyle(1, 0, 100);
v1.logo.bars.moveTo(0, 2.5);
v1.logo.bars.lineTo(v1._wd, 2.5);
v1.logo.bars.moveTo(0, 62.5);
v1.logo.bars.lineTo(v1._wd, 62.5);
}
v1.logo.createEmptyMovieClip('container', 10);
v1.logo.container.createEmptyMovieClip('logo', 10);
if (v1.backgroundObject.file != undefined) {
v1.logo.container.logo.loadMovie(v1.backgroundObject.file);
v1.logo.onEnterFrame = moveLogo;
}
v1.logo.swapDepths(300);
v1.tickerTape.swapDepths(400);
};
this.moveLogo = function () {
var v1 = this;
var l = v1.container.logo.getBytesLoaded();
var t = v1.container.logo.getBytesTotal();
if (t < 100 || l < t) {
} else {
v1.onEnterFrame = null;
if (v1._parent.backgroundObject.xposition == undefined) {
var xpos = 'center';
var v2 = 0;
} else {
a = v1._parent.backgroundObject.xposition.split('+');
if (a.length == 2) {
var xpos = a[0];
var v2 = parseInt(a[1], 10);
} else {
a = v1._parent.backgroundObject.xposition.split('-');
var xpos = a[0];
var v2 = -1 * parseInt(a[1], 10);
}
switch (xpos) {
if (xpos !== 'right') {
} else {
break;
case 'left':
}
default:
xpos = 'center';
}
if (isNaN(v2)) {
v2 = 0;
}
}
if (v1._parent.backgroundObject.yposition == undefined) {
var ypos = 'center';
var v3 = 0;
} else {
a = v1._parent.backgroundObject.yposition.split('+');
if (a.length == 2) {
var ypos = a[0];
var v3 = parseInt(a[1], 10);
} else {
a = v1._parent.backgroundObject.yposition.split('-');
var ypos = a[0];
var v3 = -1 * parseInt(a[1], 10);
}
switch (ypos) {
if (ypos !== 'bottom') {
} else {
case 'top':
break;
}
default:
ypos = 'center';
}
if (isNaN(v3)) {
v3 = 0;
}
}
switch (xpos) {
case 'left':
v1.container._x = v2;
break;
case 'center':
v1.container._x = v1._parent.w / 2 - v1.container._width / 2 + v2;
break;
default:
v1.container._x = v1._parent.w - v1.container._width + v2;
}
switch (ypos) {
case 'top':
v1.container._y = 4.5 + v3;
break;
case 'bottom':
v1.container._y = 60.5 + v3 - v1.container._height;
break;
case 'center':
v1.container._y = 32.5 - v1.container._height / 2 + v3;
}
}
};
this.loadNextImage = function () {
var v1 = this;
trace(v1.tickerTape.__roller.images.length + '\t,\t' + v1.tickerTape.__roller.images[0].length);
if (v1.tickerTape.__roller.images[0].length == 0) {
v1.lastItem.placeItems();
v1.tickerTape.__roller.images.shift();
}
if (v1.tickerTape.__roller.images.length == 0) {
var v2 = 0;
for (i in v1.items) {
if (v1.items[i]._height > v2) {
v2 = v1.items[i]._height;
}
}
var s = v1.items.length * v2;
if (s < 80) {
v2 = 80 / v1.items.length;
}
v1.placeItems(v2);
v1.tickerTape._visible = true;
} else {
var v3 = v1.tickerTape.__roller.images[0].shift();
v1.lastItem = v3.item;
v1.lastImage = v3.img;
v1.lastImage.img.loadMovie(v3.url);
v1.lastTimer = getTimer() + 2000;
v1.onEnterFrame = v1.waitForItems;
}
};
this.waitForItems = function () {
var v1 = this;
var v3 = v1.lastImage.img.getBytesLoaded();
var v2 = v1.lastImage.img.getBytesTotal();
if (v2 > 100 && v3 == v2) {
v1.lastImage._parent.ld = true;
v1.onEnterFrame = null;
v1.loadNextImage();
} else {
if (v3 < 100 && getTimer() > v1.lastTimer) {
v1.lastImage._parent.ld = true;
v1.lastImage.removeMovieClip();
v1.onEnterFrame = null;
v1.loadNextImage();
}
}
};
this.setFrame = function () {
var v1 = this;
if (v1.rollerObject.frame == undefined) {
v1.rollerObject.frame = {};
}
var v2 = ['top', 'left', 'bottom', 'right'];
for (i in v2) {
if (v1.rollerObject.frame[v2[i]] == undefined) {
v1.rollerObject.frame[v2[i]] = 0;
} else {
v1.rollerObject.frame[v2[i]] = parseInt(v1.rollerObject.frame[v2[i]], 10);
}
}
v1.tickerTape._x = v1.rollerObject.frame.left;
v1.tickerTape._y = v1.rollerObject.frame.top;
v1.tickerTape.__mask._y = 0;
v1.tickerTape.__mask._x = 0;
v1.tickerTape.__mask._width = v1._wd - v1.rollerObject.frame.left - v1.rollerObject.frame.right;
v1.tickerTape.__mask._height = v1._ht - v1.rollerObject.frame.top - v1.rollerObject.frame.bottom;
v1.frame = {'x': v1.tickerTape.__mask._x, 'y': v1.tickerTape.__mask._y, 'w': v1.tickerTape.__mask._width, 'h': v1.tickerTape.__mask._height, 't': v1.tickerTape.__mask._y, 'l': v1.tickerTape.__mask._x, 'b': v1.tickerTape.__mask._y + v1.tickerTape.__mask._height, 'r': v1.tickerTape.__mask._x + v1.tickerTape.__mask._width, 'cx': v1.tickerTape.__mask._x + v1.tickerTape.__mask._width / 2, 'cy': v1.tickerTape.__mask._y + v1.tickerTape.__mask._height / 2};
};
this.getAlignment = function (s, dir) {
var v2 = s;
if (dir == 'h') {
var v3 = 1;
var a = v2.split('+');
if (a.length < 2) {
var a = v2.split('-');
v3 = -1;
}
switch (a[0]) {
case 'left':
case 'right':
case 'center':
var _a = a[0];
break;
default:
var _a = 'right';
}
var v1 = parseInt(a[1], 10);
if (isNaN(v1)) {
v1 = 0;
}
return {'a': _a, 'd': v3 * v1};
} else {
var v3 = 1;
var a = v2.split('+');
if (a.length < 2) {
var a = v2.split('-');
v3 = -1;
}
switch (a[0]) {
case 'top':
case 'bottom':
case 'center':
var _a = a[0];
break;
default:
var _a = 'center';
}
var v1 = parseInt(a[1], 10);
if (isNaN(v1)) {
v1 = 0;
}
return {'a': _a, 'd': v3 * v1};
}
};
this.setAlignment = function () {
var v2 = this;
var v1 = v2.rollerObject.items.align.split(',');
switch (v2.rollerObject.items.direction) {
case 'horizontal':
while (v1.length < 2) {
v1.unshift('');
}
break;
while (v1.length < 2) {
default:
v1.push('');
}
}
v2.align = {'h': v2.getAlignment(v1[0], 'h'), 'v': v2.getAlignment(v1[1], 'v')};
};
this.placeItems = function (h) {
var v1 = this;
v1.setFrame();
v1.setAlignment();
if (v1.rollerObject.items.spacing == undefined) {
v1.spacing = {'h': 0, 'v': h};
} else {
var sp = parseInt(v1.rollerObject.items.spacing, 10);
v1.spacing = {'h': isNaN(sp) ? 0 : sp, 'v': isNaN(sp) ? h : sp};
}
switch (v1.rollerObject.items.direction) {
case 'horizontal':
var v3 = 0;
i = 0;
while (i < v1.items.length) {
v1.items[i]._x = v3;
v3 += v1.spacing.h + v1.items[i]._width;
v1.items[i]._y = 0;
++i;
}
v1.slider = v1.hslider;
break;
case 'none':
i = 0;
while (i < v1.items.length) {
switch (v1.align.h.a) {
case 'left':
v1.items[i]._x = 0;
break;
case 'center':
v1.items[i]._x = -v1.items[i]._width / 2;
break;
default:
v1.items[i]._x = -v1.items[i]._width;
}
v1.items[i]._y = 0;
++i;
}
v1.slider = null;
break;
default:
var v2 = 0;
var w = v1.tickerTape.__roller._width;
i = 0;
while (i < v1.items.length) {
switch (v1.align.h.a) {
case 'left':
v1.items[i]._x = 0;
break;
case 'center':
v1.items[i]._x = -v1.items[i]._width / 2;
break;
default:
v1.items[i]._x = -v1.items[i]._width;
}
v1.items[i]._y = v2;
v2 += v1.items[i]._height + v1.spacing.v;
++i;
}
v1.slider = v1.vslider;
}
var w = v1.tickerTape.__roller._width;
var h = v1.tickerTape.__roller._height;
switch (v1.align.h.a) {
case 'left':
v1.tickerTape.__roller._x = v1.frame.l + v1.align.h.d;
break;
case 'center':
v1.tickerTape.__roller._x = v1.frame.cx + v1.align.h.d;
break;
default:
v1.tickerTape.__roller._x = v1.frame.r + v1.align.h.d;
}
switch (v1.align.v.a) {
case 'top':
v1.tickerTape.__roller._y = v1.frame.t + v1.align.v.d + h / 2;
break;
case 'bottom':
v1.tickerTape.__roller._y = v1.frame.b + v1.align.v.d - h / 2;
break;
default:
v1.tickerTape.__roller._y = v1.frame.cy + v1.align.v.d;
}
v1.setUpSlider();
v1.setUpFader();
var timeout = parseInt(v1.rollerObject.timeout, 10);
if (isNaN(timeout)) {
timeout = 2000;
}
__setInterval(v1, 'transistion', timeout);
v1.transistion();
};
this.setUpSlider = function () {
var v1 = this;
v1.slider.direction = (v1.rollerObject.slide.direction == 'up' || v1.rollerObject.slide.direction == 'right') ? -1 : 1;
v1.slider.easingFun = (Math['ease' + v1.rollerObject.slide.easing] == undefined) ? Math.linearTween : Math['ease' + v1.rollerObject.slide.easing];
v1.slider.duration = isNaN(parseInt(v1.rollerObject.slide.duration, 10)) ? 500 : parseInt(v1.rollerObject.slide.duration, 10);
v1.slider.endon = (v1.rollerObject.slide.endon == undefined) ? false : v1.rollerObject.slide.endon;
v1.slider.items = v1.items;
v1.slider.roller = v1.tickerTape.__roller;
v1.slider.frame = v1.frame;
v1.slider.spacing = v1.spacing;
v1.slider.init();
};
this.setUpFader = function () {
var v1 = this;
v1.fader = v1[v1.rollerObject.fade.filter];
if (v1.rollerObject.fade.easingIn == undefined) {
v1.fader.easingFunIn = (Math['ease' + v1.rollerObject.fade.easing] == undefined) ? Math.linearTween : Math['ease' + v1.rollerObject.fade.easing];
} else {
v1.fader.easingFunIn = (Math['ease' + v1.rollerObject.fade.easingIn] == undefined) ? Math.linearTween : Math['ease' + v1.rollerObject.fade.easingIn];
}
if (v1.rollerObject.fade.easingOut == undefined) {
v1.fader.easingFunOut = (Math['ease' + v1.rollerObject.fade.easing] == undefined) ? Math.linearTween : Math['ease' + v1.rollerObject.fade.easing];
} else {
v1.fader.easingFunOut = (Math['ease' + v1.rollerObject.fade.easingOut] == undefined) ? Math.linearTween : Math['ease' + v1.rollerObject.fade.easingOut];
}
v1.fader.duration = isNaN(parseInt(v1.rollerObject.fade.duration, 10)) ? 500 : parseInt(v1.rollerObject.fade.duration, 10);
v1.fader.delay = isNaN(parseInt(v1.rollerObject.fade.delay, 10)) ? 0 : parseInt(v1.rollerObject.fade.delay, 10);
v1.fader.items = v1.items;
v1.fader.roller = v1.tickerTape.__roller;
v1.fader.frame = v1.frame;
v1.fader.spacing = v1.spacing;
v1.fader.init();
};
this.transistion = function () {
this.slider.go();
this.fader.go();
};
}
frame 2 {
var x = new XML();
x.mc = this;
x.ignoreWhite = true;
x.getObject = function (ob, r) {
var v1 = r;
var v2 = ob;
var v3 = this;
v3.mc[v2] = {};
for (i in v1) {
if (v1[i].firstChild) {
v3.mc[v2][v1[i].nodeName] = v1[i].firstChild.nodeValue;
} else {
v3.mc[v2][v1[i].nodeName] = {};
for (j in v1[i].attributes) {
v3.mc[v2][v1[i].nodeName][j] = v1[i].attributes[j];
}
}
}
};
x.getItem = function (r) {
var v2 = r;
var v3 = [];
for (i in v2.childNodes) {
var v1 = {};
switch (v2.childNodes[i].nodeName) {
case 'ang:textbox':
v1.type = 'textbox';
break;
case 'title':
case 'ang:text':
v1.type = 'text';
break;
case 'ang:image':
v1.type = 'image';
break;
case 'ang:bold':
v1.type = 'bold';
break;
case 'link':
v1.type = 'link';
break;
case 'vstats':
v1.type = 'link';
break;
case 'cstats':
v1.type = 'link';
break;
case 'id':
v1.type = 'id';
}
v1.attributes = v2.childNodes[i].attributes;
v1.value = v2.childNodes[i].firstChild.nodeValue;
v3.push(v1);
}
return {'items': v3, 'attributes': v2.attributes};
};
x.onLoad = function () {
var v2 = this;
var isRss = false;
for (i in v2.childNodes) {
if (v2.childNodes[i].nodeName != 'rss') {
continue;
}
isRss = true;
var rss = v2.childNodes[i].childNodes;
for (j in rss) {
if (rss[j].nodeName != 'channel') {
continue;
}
var v1 = rss[j].childNodes;
var v3 = [];
flag = false;
for (v in v1) {
switch (v1[v].nodeName) {
case 'title':
if (v1[v].firstChild.nodeValue == 'AdsNGames') {
flag = true;
} else {
flag = false;
}
break;
case 'ang:image':
v2.logoFile = v1[v].firstChild.nodeValue;
break;
case 'ang:roller':
v2.getObject('rollerObject', v1[v].childNodes);
break;
case 'ang:background':
v2.getObject('backgroundObject', v1[v].childNodes);
break;
case 'item':
v3.unshift(v2.getItem(v1[v]));
}
}
if (flag) {
debugMsg('banner rendering');
v2.mc.loadXML(v3);
} else {
if (!isRss) {
debugMsg('no banner rss, attaching default');
_root.attachMovie('default_banner', 'banner', 100);
v2.mc.removeMovieClip();
} else {}
}
}
}
};
this.onURLLoaded = function (a) {
debugMsg('banner rss loaded: ' + a);
x.parseXML(a.document);
x.onLoad();
};
GOS.dbannerRss = (GOS.dbannerRss.split('[poll]')).join(this.astring);
GOS.dbannerRss = (GOS.dbannerRss.split('[lang]')).join(System.capabilities.language);
debugMsg('loading banner rss: ' + GOS.dbannerRss);
GOS.proxy.loadURL(GOS.dbannerRss);
}
}
movieClip 1025 {
}
movieClip 1026 {
}
movieClip 1028 FORM_Button {
#initclip
FORM_ButtonClass = function () {
this.snap();
this.fn = 'on' + (this._name.substr(0, 1)).toUpperCase() + this._name.substr(1);
this.w = this._width;
this._yscale = 100;
this._xscale = 100;
this.title.autoSize = true;
this.title.text = eval('_global.GOS.Translation.' + this.name);
this.isOver = false;
this.bk.bk1._width = 1;
this.bk.bk2._width = 1;
this.c = new Color(this.title);
this._se(this._enabled);
this.addProperty('_enabled', this._ge, this._se);
this.redraw();
};
FORM_ButtonClass.prototype = new MovieClip();
FORM_ButtonClass.prototype.redraw = function () {
var v1 = this;
v1.title._x = Math.round(v1.w / 2 - v1.title._width / 2);
v1.bk._x = 0;
v1.bk.bk1._x = 0;
v1.bk.bk2._x = v1.w - 1;
v1.bk.bk._x = 1;
v1.bk.bk._width = v1.w - 2;
};
FORM_ButtonClass.prototype.onPress = function () {
var v1 = this;
if (v1._enabled) {
v1._parent[v1.fn].call(v1._parent);
}
};
FORM_ButtonClass.prototype.onRollOver = function () {
var v1 = this;
if (v1._enabled) {
v1.c.setRGB(12983837);
} else {
v1.c.setRGB(10066329);
v1._parent.showTip();
}
v1.isOver = true;
};
FORM_ButtonClass.prototype.onRollOut = function () {
var v1 = this;
if (v1._enabled) {
v1.c.setRGB(4473924);
} else {
v1.c.setRGB(10066329);
}
v1._parent.hideTip();
v1.isOver = false;
};
FORM_ButtonClass.prototype.onDragOut = function () {
var v1 = this;
if (v1._enabled) {
v1.c.setRGB(4473924);
} else {
v1.c.setRGB(10066329);
}
v1.isOver = false;
};
FORM_ButtonClass.prototype._se = function (e) {
var v1 = this;
v1.__enabled = e;
if (e) {
if (v1.isOver) {
v1.c.setRGB(12983837);
} else {
v1.c.setRGB(4473924);
}
v1._parent.hideTip();
} else {
v1.c.setRGB(10066329);
}
};
FORM_ButtonClass.prototype._ge = function () {
return this.__enabled;
};
Object.registerClass('FORM_Button', FORM_ButtonClass);
#endinitclip
frame 1 {
}
}
movieClip 1030 {
}
movieClip 1033 FORM_TextField {
#initclip
FORM_TextFieldClass = function () {
this.snap();
this.w = this._width;
this._xscale = 100;
(new Color(this.bkl)).setRGB(0);
(new Color(this.bkr)).setRGB(16448250);
this.bkr._width = 0.3;
this.bkl._width = 0.3;
this.bkl._x = 0;
this.bkr._x = this.w - 0.3;
this.bk._x = 0.3;
this.bk._width = this.w - 0.6;
this.val._width = this.w - 2;
this.title = eval('_global.GOS.Translation.' + this.title);
this.valid = false;
this._x = Math.round(this._x);
this._y = Math.round(this._y);
this._st(this.title);
this._stp(this.type);
this.dsc = this.title;
this._c = new Color(this.undertext);
this._tf = this._c.getTransform();
this.val.onChanged = function () {
this._parent.verify();
};
};
FORM_TextFieldClass.prototype = new MovieClip();
FORM_TextFieldClass.prototype.verify = function () {
this.verify1();
this._parent.verify();
};
FORM_TextFieldClass.prototype._stp = function (v) {
var v1 = this;
var v2 = v;
v1.tp = v2;
switch (v2) {
case 'nick':
v1.val.restrict = 'a-z A-Z 0-9 _';
break;
case 'pass':
v1.val.restrict = 'a-z A-Z 0-9';
v1.val.password = true;
break;
case 'mail':
v1.val.restrict = '0-9 a-z _ . @';
}
v1.verify1 = v1[v2 + 'Verify'];
};
FORM_TextFieldClass.prototype._gtp = function () {
return this.tp;
};
FORM_TextFieldClass.prototype._st = function (v) {
this.dsc = v;
this.undertext.text = v;
};
FORM_TextFieldClass.prototype._gt = function () {
return this.dsc;
};
FORM_TextFieldClass.prototype.birthVerify = function () {
var v1 = this;
var t = v1.val.text;
if (t.length == 0) {
v1.undertext.text = v1.dsc;
v1._c.setTransform(v1._tf);
v1.valid = false;
} else {
var v2 = t.split('');
for (i in v2) {
var v3 = (parseInt(v2[i], 10)).toString();
if (v3 != v2[i]) {
v1.undertext.text = GOS.Translation.editBox_invalidCharacter;
v1._c.setRGB(12983837);
v1.valid = false;
} else {
var yr = parseInt(t, 10);
var yr_now = (new Date()).getYear() + 1900;
if (yr_now - yr > 120 || yr_now - yr < 5) {
v1.undertext.text = GOS.Translation.editBox_badDate;
v1._c.setRGB(12983837);
v1.valid = false;
} else {
v1.undertext.text = v1.dsc;
v1._c.setTransform(v1._tf);
v1.valid = true;
}
}
}
}
};
FORM_TextFieldClass.prototype.nickVerify = function () {
var v1 = this;
var v2 = v1.val.text;
if (v2.length == 0) {
v1.undertext.text = v1.dsc;
v1._c.setTransform(v1._tf);
v1.valid = false;
} else {
if (v2.length < 3) {
v1.undertext.text = GOS.Translation.editBox_tooShort;
v1._c.setRGB(12983837);
v1.valid = false;
} else {
if (v2.length > 20) {
v1.undertext.text = GOS.Translation.editBox_tooLong;
v1._c.setRGB(12983837);
v1.valid = false;
} else {
v1.undertext.text = v1.dsc;
v1._c.setTransform(v1._tf);
v1.valid = true;
}
}
}
};
FORM_TextFieldClass.prototype.passVerify = function () {
var v1 = this;
v1.val.text = v1.val.text.toUpperCase();
var v2 = v1.val.text;
if (v2.length == 0) {
v1.undertext.text = v1.dsc;
v1._c.setTransform(v1._tf);
v1.valid = false;
} else {
if (v2.length < 3) {
v1.undertext.text = GOS.Translation.editBox_tooShort;
v1._c.setRGB(12983837);
v1.valid = false;
} else {
if (v2.length > 20) {
v1.undertext.text = GOS.Translation.editBox_tooLong;
v1._c.setRGB(12983837);
v1.valid = false;
} else {
v1.undertext.text = v1.dsc;
v1._c.setTransform(v1._tf);
v1.valid = true;
}
}
}
};
FORM_TextFieldClass.prototype.mailVerify = function () {
var v1 = this;
var t = v1.val.text;
if (t.length == 0) {
v1.undertext.text = v1.dsc;
v1._c.setTransform(v1._tf);
v1.valid = false;
} else {
t1 = t.split('@');
if (t1.length != 2) {
v1.undertext.text = GOS.Translation.editBox_invalidEmail;
v1._c.setRGB(12983837);
v1.valid = false;
} else {
var v2 = (t1[0].split('.')).concat(t1[1].split('.'));
for (var v3 in v2) {
if (v2[v3].length == 0) {
v1.undertext.text = GOS.Translation.editBox_invalidEmail;
v1._c.setRGB(12983837);
v1.valid = false;
} else {
v2 = t1[1].split('.');
if (v2.length < 2) {
v1.undertext.text = GOS.Translation.editBox_invalidEmail;
v1._c.setRGB(12983837);
v1.valid = false;
} else {
if (v2[v2.length - 1].length < 2 || v2[v2.length - 1].length > 3) {
v1.undertext.text = GOS.Translation.editBox_invalidEmail;
v1._c.setRGB(12983837);
v1.valid = false;
} else {
v1.undertext.text = v1.dsc;
v1._c.setTransform(v1._tf);
v1.valid = true;
}
}
}
}
}
}
};
Object.registerClass('FORM_TextField', FORM_TextFieldClass);
#endinitclip
frame 1 {
}
}
movieClip 1036 FORM_TextArea {
#initclip
FORM_TextAreaClass = function () {
this.snap();
this.w = this._width;
this.h = this._height - 15;
this._y = this._y - this.h / 2 + 15;
this._xscale = 100;
this._yscale = 100;
(new Color(this.bkl)).setRGB(0);
(new Color(this.bkr)).setRGB(16448250);
(new Color(this.bkt)).setRGB(0);
(new Color(this.bkb)).setRGB(16448250);
(new Color(this.bk)).setRGB(15856113);
this.bkr._width = 0.3;
this.bkl._width = 0.3;
this.bkl._x = 0;
this.bkr._x = this.w - 0.3;
this.bkl._height = this.h;
this.bkr._height = this.h;
this.bkr._y = this.h / 2;
this.bkl._y = this.bkr._y;
this.bkb._height = 0.3;
this.bkt._height = 0.3;
this.bkt._y = 0;
this.bkb._y = this.h - 0.3;
this.bkt._width = this.w;
this.bkb._width = this.w;
this.bkt._x = 0;
this.bkb._x = 0;
this.bk._x = 0.3;
this.bk._y = 0.3 + (this.h - 0.6) / 2;
this.bk._width = this.w - 0.6;
this.bk._height = this.h - 0.6;
this.val._width = this.w - 2;
this.val._height = this.h - 2;
this.title = eval('_global.GOS.Translation.' + this.title);
this.valid = true;
this._x = Math.round(this._x);
this._y = Math.round(this._y);
this._st(this.title);
this.dsc = this.title;
this._c = new Color(this.undertext);
this._tf = this._c.getTransform();
};
FORM_TextAreaClass.prototype = new MovieClip();
FORM_TextAreaClass.prototype.verify = function () {
this._parent.verify();
};
FORM_TextAreaClass.prototype._st = function (v) {
this.dsc = v;
this.undertext.text = v;
};
FORM_TextAreaClass.prototype._gt = function () {
return this.dsc;
};
Object.registerClass('FORM_TextArea', FORM_TextAreaClass);
#endinitclip
frame 1 {
}
}
movieClip 1037 APP_EmailFriend {
frame 1 {
this.onCreate = function () {
var v1 = this;
v1._modal = true;
v1._unique = true;
v1.CopyButton._enabled = ((System.capabilities.version.split(' '))[1].split(','))[0] >= 7;
v1.useServer('gos');
};
this.onCopyButton = function () {
this.command('G');
};
this.onSendButton = function () {
var v2 = this;
var v1 = {'email': v2.email.val.text, 'message': v2.message.val.text};
v2.command('F', v1);
};
this.onF = function (r) {
GOS.StateVars.Window.state = {'class': 'Alert', 'type': 'info', 'title': GOS.Translation.common_okTitle, 'text': GOS.Translation.EmailFriend_sent};
this.close();
};
this.onG = function (r) {
System.setClipboard(r.link);
GOS.StateVars.Window.state = {'class': 'Alert', 'type': 'info', 'title': GOS.Translation.common_okTitle, 'text': GOS.Translation.EmailFriend_copied};
this.close();
};
this.verify = function () {
this.SendButton._enabled = this.email.valid;
};
}
instance SendButton of movieClip 1028 FORM_Button {
onClipEvent (initialize) {
name = 'common_send';
_enabled = false;
}
}
instance email of movieClip 1033 FORM_TextField {
onClipEvent (initialize) {
title = 'common_email';
type = 'mail';
}
}
instance message of movieClip 1036 FORM_TextArea {
onClipEvent (initialize) {
title = 'common_message';
}
}
instance CopyButton of movieClip 1028 FORM_Button {
onClipEvent (initialize) {
name = 'common_clipboard';
_enabled = true;
}
}
}
movieClip 1040 {
}
movieClip 1041 {
}
movieClip 1042 FORM_Radio {
#initclip
FORM_RadioClass = function () {
if (this._parent[this._group] == undefined) {
this._parent[this._group] = {};
AsBroadcaster.initialize(this._parent[this._group]);
}
this.groupObject = this._parent[this._group];
this.groupObject.addListener(this);
this.snap();
this.fn = 'on' + (this._group.substr(0, 1)).toUpperCase() + this._group.substr(1);
this._yscale = 100;
this._xscale = 100;
this.title.autoSize = true;
this.title.text = eval('_global.GOS.Translation.' + this.name);
this.msk._width = 0;
this.msk._width = this._width + 5;
this.isOver = false;
this.c = new Color(this.title);
this.c1 = new Color(this.pt);
this._se(this._enabled);
this.pt._visible = this._checked;
this.addProperty('_enabled', this._ge, this._se);
};
FORM_RadioClass.prototype = new MovieClip();
FORM_RadioClass.prototype.onPress = function () {
var v1 = this;
if (v1._enabled) {
v1.groupObject.broadcastMessage('_check', v1._index);
}
};
FORM_RadioClass.prototype.onRollOver = function () {
var v1 = this;
if (v1._enabled) {
v1.c.setRGB(12983837);
v1.c1.setRGB(12983837);
} else {
v1.c.setRGB(8947848);
v1.c1.setRGB(8947848);
}
v1.isOver = true;
};
FORM_RadioClass.prototype.onRollOut = function () {
var v1 = this;
if (v1._enabled) {
v1.c.setRGB(6710886);
v1.c1.setRGB(6710886);
} else {
v1.c.setRGB(8947848);
v1.c1.setRGB(8947848);
}
v1.isOver = false;
};
FORM_RadioClass.prototype.onDragOut = function () {
var v1 = this;
if (v1._enabled) {
v1.c.setRGB(6710886);
v1.c1.setRGB(6710886);
} else {
v1.c.setRGB(8947848);
v1.c1.setRGB(8947848);
}
v1.isOver = false;
};
FORM_RadioClass.prototype._se = function (e) {
this.groupObject.broadcastMessage('_enab', e);
};
FORM_RadioClass.prototype._enab = function (e) {
var v1 = this;
v1.__enabled = e;
if (e) {
if (v1.isOver) {
v1.c.setRGB(12983837);
v1.c1.setRGB(12983837);
} else {
v1.c.setRGB(6710886);
v1.c1.setRGB(6710886);
}
} else {
v1.c.setRGB(8947848);
v1.c1.setRGB(8947848);
}
};
FORM_RadioClass.prototype._ge = function () {
return this.__enabled;
};
FORM_RadioClass.prototype._check = function (i) {
var v1 = this;
if (i == v1._index) {
v1.pt._visible = true;
v1._parent[v1.fn].call(v1._parent, {'index': v1._index, 'label': v1.title.text});
} else {
v1.pt._visible = false;
}
v1._parent.verify();
};
Object.registerClass('FORM_Radio', FORM_RadioClass);
#endinitclip
frame 1 {
}
}
movieClip 1044 dynamid_banner_poll_item {
frame 1 {
this.question.autoSize = true;
this.question.text = this.txt;
this._x = 0;
this.question._x = 20;
this.no._x = Stage.width - 50;
this.yes._x = Stage.width - 90;
this.clear();
this.lineStyle(1, 14540253, 100);
this.moveTo(20, 16);
this.lineTo(Stage.width - 20, 16);
this._answered = 0;
this.onAnswerPick = function (ob) {
var v1 = this;
v1._value = ob.index;
v1._answered = 1;
v1._parent.checkPoll();
};
}
instance no of movieClip 1042 FORM_Radio {
onClipEvent (initialize) {
name = 'common_no';
_enabled = true;
_checked = false;
_group = 'answerPick';
_index = 0;
}
}
instance yes of movieClip 1042 FORM_Radio {
onClipEvent (initialize) {
name = 'common_yes';
_enabled = true;
_checked = false;
_group = 'answerPick';
_index = 1;
}
}
}
movieClip 1046 {
}
movieClip 1048 {
}
movieClip 1050 winmin {
frame 1 {
this.wd = this.wd > 80 ? 80 : this.wd;
this.m._width = this.wd - 10;
this.m._x = this.r._width;
this.r._x = this.r._width + this.m._width;
var w = this.wd - 2;
var a = this.txt.split('');
this.tit.autoSize = true;
this.tit.text = '';
var i = 0;
while (this.tit._width <= w) {
if (a[i] == undefined) {
break;
} else {
this.tit.text += a[i];
++i;
}
}
if (this.tit._width > w) {
this.tit.text = this.tit.text.substr(0, -1);
}
this.onPress = function () {
GOS.WindowsManager.maxWin(this.win);
};
}
}
movieClip 1052 {
}
movieClip 1054 {
}
movieClip 1055 {
}
movieClip 1057 {
}
button 1060 {
on (press) {
this.startResize();
}
on (release) {
this.stopResize();
}
}
movieClip 1062 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 1064 {
}
movieClip 1065 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 1069 {
frame 1 {
stop();
}
}
button 1070 {
on (press) {
this._parent.minimalise();
}
}
button 1071 {
on (press) {
this._parent.close();
}
}
movieClip 1072 {
frame 1 {
stop();
}
}
movieClip 1075 {
}
movieClip 1077 {
}
movieClip 1078 GOS_WindowScroll {
#initclip
GOS_WindowScrollClass = function () {
var v1 = this;
if (v1.dim != undefined) {
v1.sd(v1.dim);
}
if (v1.val != undefined) {
v1.sv(v1.val);
} else {
v1.sv(0);
}
v1.addProperty('val', v1.gv, v1.sv);
v1.addProperty('dim', v1.gd, v1.sd);
(v1.vc.duplicateMovieClip('c', 1, {'_alpha': 0, '_y': v1.vc._y, 'onPress': v1.startScroll}))._width = 10;
};
GOS_WindowScrollClass.prototype = new MovieClip();
GOS_WindowScrollClass.prototype.startScroll = function () {
var v1 = this;
v1._startDrag();
v1.isDragging = true;
v1.onMouseMove = function () {
this._parent.val *= 1;
};
v1.onReleaseOutside = function () {
var v1 = this;
v1._stopDrag();
v1.isDragging = false;
delete v1.onRelease;
delete v1.onReleaseOutside;
delete v1.onMouseMove;
v1._x = 0;
v1._y = v1._parent.vc._y;
v1._parent.val *= 1;
};
v1.onRelease = v1.onReleaseOutside;
};
GOS_WindowScrollClass.prototype.gv = function () {
var v1 = this;
return v1.c._y < 6 ? 0 : (v1.c._y > v1.vs._height - 6 ? 100 : 100 * (v1.c._y - 6) / (v1.vs._height - 12));
};
GOS_WindowScrollClass.prototype.setVal = function (v) {
var v1 = this;
var v2 = v1.vs._height - 12;
v2 *= v / 100;
v1.vc._y = v2 + 6;
if (v1.c.isDragging == false) {
v1.c._y = v1.vc._y;
}
};
GOS_WindowScrollClass.prototype.sv = function (v) {
var v1 = this;
var v2 = v1.vs._height - 12;
v2 *= v / 100;
v1.vc._y = v2 + 6;
if (v1.c.isDragging == false) {
v1.c._y = v1.vc._y;
}
v1.update();
};
GOS_WindowScrollClass.prototype.gd = function () {
return this.vs._height;
};
GOS_WindowScrollClass.prototype.sd = function (d) {
var v1 = this;
var v2 = v1.val;
v1.vs._height = d;
v1.val = v2;
v1.c._y = v1.vc._y;
};
Object.registerClass('GOS_WindowScroll', GOS_WindowScrollClass);
#endinitclip
frame 1 {
}
}
movieClip 1079 {
frame 1 {
this.onPress = function () {};
this.useHandCursor = false;
this._visible = false;
this.swapDepths(100);
this.setBkg = function () {
var v1 = this;
v1.connecting._xscale = 100;
var v2 = {'x': v1._parent.mask._x, 'y': v1._parent.mask._y};
v1._parent.localToGlobal(v2);
v1.globalToLocal(v2);
var v3 = {'x': v1._parent.mask._width + v1._parent.mask._x, 'y': v1._parent.mask._height + v1._parent.mask._y};
v1._parent.localToGlobal(v3);
v1.globalToLocal(v3);
v1.lineStyle(0, 0, 0);
v1.beginFill(16777215, 100);
v1.moveTo(v2.x, v2.y);
v1.lineTo(v2.x, v3.y);
v1.lineTo(v3.x, v3.y);
v1.lineTo(v3.x, v2.y);
v1.lineTo(v2.x, v2.y);
};
}
}
movieClip 1080 GOS_WindowClientArea {
}
movieClip 1081 GOS_Window {
instance tmb of movieClip 1065 {
onClipEvent (press) {
this._parent.startMove();
}
}
}
movieClip 1083 GOS_ToolTip {
#initclip
GOS_ToolTipClass = function () {
var v1 = this;
v1.tip.autoSize = true;
v1.tip.text = v1.tipText.toUpperCase();
v1.tip.__proto__ = MovieClip.prototype;
v1.tip.swapDepths(2);
v1.draw();
v1.snap();
};
GOS_ToolTipClass.prototype = new MovieClip();
GOS_ToolTipClass.prototype.draw = function () {
var v2 = this;
var v1 = v2.createEmptyMovieClip('mc', 1);
v1.lineStyle(1, 0, 100);
v1.beginFill(16777164, 100);
v1.moveTo(5, -5);
v1.lineTo(10, -15);
v1.lineTo(10, -19 - v2.tip._height);
v1.lineTo(16 + v2.tip._width, -19 - v2.tip._height);
v1.lineTo(16 + v2.tip._width, -15);
v1.lineTo(20, -15);
v1.lineTo(5, -5);
v1.endFill();
v2.place();
};
GOS_ToolTipClass.prototype.place = function () {
var v1 = this;
var v2 = {'x': v1._x + v1.mc._width + 5, 'y': v1._y - v1.mc._height - 5};
GOS.root.localToGlobal(v2);
if (v2.x > Stage.width) {
v1.mc._xscale = -100;
v1.tip._x = -v1.mc._width - 2;
} else {
v1.tip._x = 13;
}
if (v2.y < 0) {
v1.mc._yscale = -100;
v1.tip._y = 19;
} else {
v1.tip._y = -v1.tip._height - 15;
}
};
Object.registerClass('GOS_ToolTip', GOS_ToolTipClass);
#endinitclip
frame 1 {
}
}
movieClip 1085 GOS_MenuSwitch {
#initclip
GOS_MenuSwitchClass = function () {
super();
};
GOS_MenuSwitchClass.prototype = new GOS_MenuBaseClassClass();
Object.registerClass('GOS_MenuSwitch', GOS_MenuSwitchClass);
#endinitclip
frame 1 {
}
}
movieClip 1088 {
}
movieClip 1089 GOS_MenuSubmenu {
#initclip
GOS_MenuSubmenuClass = function () {
super();
};
GOS_MenuSubmenuClass.prototype = new GOS_MenuBaseClassClass();
GOS_MenuSubmenuClass.prototype.setEnable = function (e) {
var v1 = this;
v1.enabled = e;
if (e) {
if (v1.bkg.hitTest(_root._xmouse, _root._ymouse, true)) {
v1.onRollOver();
} else {
v1.onRollOut();
}
} else {
v1.tit.textColor = 11184810;
v1.bkg._alpha = 0;
v1._parent.mn._visible = false;
(new Color(v1.arrow)).setRGB(11184810);
}
};
GOS_MenuSubmenuClass.prototype.onPress = function () {
var v1 = this;
v1._onRollOut = v1.onRollOut;
v1.onRollOut = null;
clearInterval(v1._i);
v1._parent.mn = v1.mn;
v1.mn.parent.itToBlur = v1;
v1.mn.place();
v1.onRollOut();
};
GOS_MenuSubmenuClass.prototype.onSubmenu = function () {
var v1 = this;
v1._onRollOut = v1.onRollOut;
v1.onRollOut = null;
clearInterval(v1._i);
v1._parent.mn = v1.mn;
v1.mn.parent.itToBlur = v1;
v1.mn.placeSubmenu(v1);
};
GOS_MenuSubmenuClass.prototype.onSubmenuHide = function () {
var v1 = this;
v1.onRollOut = v1._onRollOut;
v1.onRollOut();
};
GOS_MenuSubmenuClass.prototype.onRollOver = function () {
var v1 = this;
v1.bkg._alpha = 100;
v1.tit.textColor = 16777215;
(new Color(v1.arrow)).setRGB(16777215);
v1._i = setInterval(v1, 'onSubmenu', 200);
};
GOS_MenuSubmenuClass.prototype.onRollOut = function () {
var v1 = this;
clearInterval(v1._i);
v1.bkg._alpha = 0;
v1.tit.textColor = 3355443;
(new Color(v1.arrow)).setRGB(3355443);
};
Object.registerClass('GOS_MenuSubmenu', GOS_MenuSubmenuClass);
#endinitclip
frame 1 {
}
}
movieClip 1090 {
}
movieClip 1091 GOS_MenuSeparator {
#initclip
GOS_MenuSeparatorClass = function () {
var v1 = this;
v1.addProperty('__width', v1.gw, v1.sw);
v1.height = 8;
};
GOS_MenuSeparatorClass.prototype = new MovieClip();
GOS_MenuSeparatorClass.prototype.sw = function (w) {
this.mid._width = w;
this.end._x = w;
};
GOS_MenuSeparatorClass.prototype.gw = function () {
return this._width;
};
Object.registerClass('GOS_MenuSeparator', GOS_MenuSeparatorClass);
#endinitclip
frame 1 {
}
}
movieClip 1097 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
}
movieClip 1098 GOS_MenuButtonSetItem {
#initclip
GOS_MenuButtonSetItemClass = function () {
super();
};
GOS_MenuButtonSetItemClass.prototype = new GOS_MenuBaseClassClass();
GOS_MenuButtonSetItemClass.prototype.setState = function (s) {
var v1 = this;
if (s != v1.num) {
v1.ptasiek._visible = false;
} else {
v1.ptasiek._visible = true;
v1._parent.active = v1;
}
};
GOS_MenuButtonSetItemClass.prototype.gw = function () {
return this.tit._width + 23;
};
GOS_MenuButtonSetItemClass.prototype.onPress = function () {
this.stateVar.state = 0;
super.onPress();
};
GOS_MenuButtonSetItemClass.prototype.onRollOver = function () {
super.onRollOver();
this.ptasiek.gotoAndStop(1);
};
GOS_MenuButtonSetItemClass.prototype.onRollOut = function () {
super.onRollOut();
this.ptasiek.gotoAndStop(2);
};
Object.registerClass('GOS_MenuButtonSetItem', GOS_MenuButtonSetItemClass);
#endinitclip
frame 1 {
}
}
movieClip 1099 GOS_MenuButtonSet {
#initclip
GOS_MenuButtonSetClass = function () {
this.items = [];
this.y = 0;
var n = this._childNodes;
var i = 0;
while (i < n.length) {
n[i].attributes.stateVar = this._attributes.stateVar;
var it = this.attachMovie('GOS_MenuButtonSetItem', 'i' + this.items.length, this.items.length + 10, {'_x': 0, '_y': this.y, '_attributes': n[i].attributes, 'num': i});
this.items.push(it);
this.y += it.height;
if (this.__width < it.__width) {
this.__width = it.__width;
}
++i;
}
this.height = 0;
var i = 0;
while (i < this.items.length) {
this.items[i].__width = this.__width;
this.height += this.items[i].height;
++i;
}
this.action = eval(this._attributes.action);
};
GOS_MenuButtonSetClass.prototype = new MovieClip();
Object.registerClass('GOS_MenuButtonSet', GOS_MenuButtonSetClass);
#endinitclip
frame 1 {
}
}
movieClip 1101 GOS_MenuButton {
#initclip
GOS_MenuButtonClass = function () {
super();
};
GOS_MenuButtonClass.prototype = new GOS_MenuBaseClassClass();
Object.registerClass('GOS_MenuButton', GOS_MenuButtonClass);
#endinitclip
frame 1 {
}
}
movieClip 1103 {
}
movieClip 1104 GOS_Menu {
}
movieClip 1105 htmlTable {
#initclip
htmlTableClass = function () {
this.init();
};
htmlTableClass.prototype = new MovieClip();
htmlTableClass.prototype.init = function () {
var v1 = this;
trace('htmlTableClass> init ' + (v1._dp - 5000));
v1._depth = 10;
v1.x = 0;
v1.y = 0;
v1.elements = [[]];
v1.html.nodeName = v1.html.nodeName.toLowerCase();
if (v1.html.attributes.bgcolor != undefined) {
if (v1.html.attributes.bgcolor.substr(0, 1) == '#') {
v1.html.attributes.bgcolor = v1.html.attributes.bgcolor.substr(1);
} else {
if (v1.html.attributes.bgcolor.substr(0, 2) == '0x') {
v1.html.attributes.bgcolor = v1.html.attributes.bgcolor.substr(2);
}
}
}
if (v1.html.attributes.bordercolor != undefined) {
if (v1.html.attributes.bordercolor.substr(0, 1) == '#') {
v1.html.attributes.bordercolor = v1.html.attributes.bordercolor.substr(1);
} else {
if (v1.html.attributes.bordercolor.substr(0, 2) == '0x') {
v1.html.attributes.bordercolor = v1.html.attributes.bordercolor.substr(2);
}
}
}
switch (v1.html.nodeName) {
case 'table':
v1.bordercolor = (v1.html.attributes.bordercolor == undefined) ? 0 : parseInt(v1.html.attributes.bordercolor, 16);
v1.bgcolor = (v1.html.attributes.bgcolor == undefined) ? -1 : parseInt(v1.html.attributes.bgcolor, 16);
v1.border = (v1.html.attributes.border == undefined) ? 0 : parseInt(v1.html.attributes.border);
v1.cellpadding = (v1.html.attributes.cellpadding == undefined) ? 0 : parseInt(v1.html.attributes.cellpadding);
v1.cellspacing = (v1.html.attributes.cellspacing == undefined) ? 0 : parseInt(v1.html.attributes.cellspacing);
v1.width = (v1.html.attributes.width == undefined) ? 0 : parseInt(v1.html.attributes.width);
v1.height = (v1.html.attributes.height == undefined) ? 0 : parseInt(v1.html.attributes.height);
break;
case 'tr':
v1.bordercolor = (v1.html.attributes.bordercolor == undefined) ? v1._parent.bordercolor : parseInt(v1.html.attributes.bordercolor, 16);
v1.bgcolor = (v1.html.attributes.bgcolor == undefined) ? v1._parent.bgcolor : parseInt(v1.html.attributes.bgcolor, 16);
break;
case 'td':
v1.colspan = (v1.html.attributes.colspan == undefined) ? 1 : parseInt(v1.html.attributes.colspan);
v1.rowspan = (v1.html.attributes.rowspan == undefined) ? 1 : parseInt(v1.html.attributes.rowspan);
v1.width = (v1.html.attributes.width == undefined) ? 0 : parseInt(v1.html.attributes.width);
v1.height = (v1.html.attributes.height == undefined) ? 0 : parseInt(v1.html.attributes.height);
v1.bordercolor = (v1.html.attributes.bordercolor == undefined) ? v1._parent.bordercolor : parseInt(v1.html.attributes.bordercolor, 16);
v1.bgcolor = (v1.html.attributes.bgcolor == undefined) ? v1._parent.bgcolor : parseInt(v1.html.attributes.bgcolor, 16);
v1.align = (v1.html.attributes.align == undefined) ? 'left' : v1.html.attributes.align.toLowerCase();
v1.valign = (v1.html.attributes.valign == undefined) ? 'middle' : v1.html.attributes.valign.toLowerCase();
v1.width = (v1.html.attributes.width == undefined) ? 0 : parseInt(v1.html.attributes.width);
}
};
htmlTableClass.prototype.onEnterFrame = function () {
var v1 = this;
trace('htmlTableClass> onEnterFrame');
trace(v1.html.toString());
v1.onEnterFrame = null;
v1.num = v1.html.childNodes.length;
var tag = v1.html.childNodes;
switch (v1.html.nodeName) {
case 'table':
v1.table = [];
v1.row = 0;
break;
case 'tr':
if (v1._parent.table[v1._parent.row] == undefined) {
v1._parent.table[v1._parent.row] = [];
}
v1.row = v1._parent.row;
++v1._parent.row;
break;
case 'td':
v1.wf = (v1.html.attributes.width == undefined) ? 1 : 0.0001;
v1.hf = (v1.html.attributes.height == undefined) ? 1 : 0.0001;
var v2 = v1._parent._parent.table;
var row = v1._parent.row;
var col = 0;
while (v2[row][col] != undefined) {
++col;
}
cs = 0;
while (cs < v1.colspan) {
rs = 0;
while (rs < v1.rowspan) {
if (v2[row - rs] == undefined) {
v2[row - rs] = [];
}
var v3 = {'cell': v1, 'flag': rs == 0 && cs == v1.colspan - 1};
v2[row - rs][col + cs] = v3;
++rs;
}
++cs;
}
v1.attachMovie('htmlRenderer', tag[i].nodeName + '.' + v1._depth, v1._depth, {'html': v1.html, 'width': v1.width, 'host': v1.host});
}
var i = 0;
while (i < tag.length) {
switch (tag[i].nodeName) {
if (tag[i].nodeName !== 'td') {
} else {
case 'table':
case 'tr':
trace(tag[i].nodeName);
v1.attachMovie('htmlTable', tag[i].nodeName + '.' + v1._depth, v1._depth, {'html': tag[i], 'host': v1.host});
}
}
++v1._depth;
++i;
}
};
htmlTableClass.prototype.drawRect = function (where, x, y, w, h, border, bordercolor, bgcolor) {
var v1 = where;
var v2 = y;
var v3 = x;
trace('htmlTableClass> drawRect');
v1.lineStyle(border, bordercolor, 100);
if (bgcolor >= 0) {
v1.beginFill(bgcolor, 100);
}
v1.moveTo(v3, v2);
v1.lineTo(v3 + w, v2);
v1.lineTo(v3 + w, v2 + h);
v1.lineTo(v3, v2 + h);
v1.lineTo(v3, v2);
if (bgcolor >= 0) {
v1.endFill();
}
};
htmlTableClass.prototype.refreshLayout = function () {
var v1 = this;
trace('htmlTableClass> refreshLayout');
if (v1.html.nodeName !== 'table') {
} else {
var v2 = [];
var v3 = [];
r = 0;
while (r < v1.table.length) {
c = 0;
while (c < v1.table[r].length) {
if (v3[c] == undefined) {
v3[c] = {'width': 0, 'factor': 100};
}
if (v2[r] == undefined) {
v2[r] = {'height': 0, 'factor': 100};
}
var cell = v1.table[v1.table.length - 1 - r][v1.table[r].length - 1 - c];
v3[c].factor = Fp6Mat.min(cell.cell.wf, v3[c].factor);
v2[r].factor = Fp6Mat.min(cell.cell.hf, v2[r].factor);
if (cell.flag) {
if (cell.cell.rowspan == 1) {
v2[r].height = Fp6Mat.max(v2[r].height, cell.cell.height);
}
if (cell.cell.colspan == 1) {
v3[c].width = Fp6Mat.max(v3[c].width, cell.cell.width);
}
}
++c;
}
++r;
}
var span = Fp6Mat.max(v1.table.length, v1.table[0].length);
s = 2;
while (s <= span) {
r = 0;
while (r < v1.table.length) {
c = 0;
while (c < v1.table[r].length) {
var cell = v1.table[v1.table.length - 1 - r][v1.table[r].length - 1 - c];
if (cell.flag) {
if (cell.cell.colspan == s) {
w = cell.cell.width;
cw = 0;
f = 0;
i = c;
while (i < c + s) {
cw += v3[i].width;
f += v3[i].factor;
++i;
}
d = w - cw;
if (d > 0) {
i = c;
while (i < c + s) {
v3[i].width += d * v3[i].factor / f;
++i;
}
}
}
if (cell.cell.rowspan == s) {
w = cell.cell.height;
rh = 0;
f = 0;
i = r;
while (i < r + s) {
rh += v2[i].height;
f += v2[i].factor;
++i;
}
d = w - rh;
if (d > 0) {
i = r;
while (i < r + s) {
v2[i].height += d * v2[i].factor / f;
++i;
}
}
}
}
++c;
}
++r;
}
++s;
}
var w = 0;
var f = 0;
i = 0;
while (i < v3.length) {
w += v3[i].width;
f += v3[i].factor;
++i;
}
d = v1.width - w;
if (d > 0) {
i = 0;
while (i < v3.length) {
v3[i].width += d * v3[i].factor / f;
++i;
}
}
var h = 0;
var f = 0;
i = 0;
while (i < v2.length) {
h += v2[i].height;
f += v2[i].factor;
++i;
}
d = v1.height - h;
if (d > 0) {
i = 0;
while (i < v2.length) {
v2[i].height += d * v2[i].factor / f;
++i;
}
}
v1.clear();
r = 0;
while (r < v1.table.length) {
c = 0;
while (c < v1.table[r].length) {
var cell = v1.table[v1.table.length - 1 - r][v1.table[r].length - 1 - c];
if (cell.flag) {
var w = 0;
var h = 0;
i = 0;
while (i < cell.cell.rowspan) {
h += v2[r + i].height + 2 * v1.cellpadding + v1.cellspacing;
++i;
}
i = 0;
while (i < cell.cell.colspan) {
w += v3[c + i].width + 2 * v1.cellpadding + v1.cellspacing;
++i;
}
w -= v1.cellspacing;
h -= v1.cellspacing;
var x = v1.cellspacing;
var y = v1.cellspacing;
i = 0;
while (i < c) {
x += v3[i].width + 2 * v1.cellpadding + v1.cellspacing;
++i;
}
i = 0;
while (i < r) {
y += v2[i].height + 2 * v1.cellpadding + v1.cellspacing;
++i;
}
var _w = cell.cell._width;
var _h = cell.cell._height;
q = {};
p = {};
switch (cell.cell.align) {
case 'center':
q.x = (_w - w) / 2;
p.x = x + (w - _w) / 2;
break;
case 'right':
q.x = _w - w + v1.cellpadding;
p.x = x + w - _w - v1.cellpadding;
break;
default:
q.x = -v1.cellpadding;
p.x = x + v1.cellpadding;
}
switch (cell.cell.valign) {
case 'top':
q.y = -v1.cellpadding;
p.y = y + v1.cellpadding;
break;
case 'bottom':
q.y = _h - h + v1.cellpadding;
p.y = y + h - _h - v1.cellpadding;
break;
default:
q.y = (_h - h) / 2;
p.y = y + (h - _h) / 2;
}
v1.drawRect(cell.cell, q.x, q.y, w, h, v1.border, cell.cell.bordercolor, cell.cell.bgcolor);
v1.localToGlobal(p);
v1._parent.globalToLocal(p);
cell.cell._x = p.x;
cell.cell._y = p.y;
}
++c;
}
++r;
}
var w = v1.cellspacing;
i = 0;
while (i < v3.length) {
w += v3[i].width + 2 * v1.cellpadding + v1.cellspacing;
++i;
}
var h = v1.cellspacing;
i = 0;
while (i < v2.length) {
h += v2[i].height + 2 * v1.cellpadding + v1.cellspacing;
++i;
}
v1.drawRect(v1, 0, 0, w, h, v1.border, v1.bordercolor, v1.bgcolor);
v1._parent.width = Fp6Mat.max(w, v1._parent.width);
v1._parent.height = Fp6Mat.max(h, v1._parent.height);
v1.width = v1._width;
v1.height = v1._height;
}
--v1._parent.num;
if (v1._parent.num <= 0) {
v1._parent.refreshLayout(v1);
}
};
Object.registerClass('htmlTable', htmlTableClass);
#endinitclip
frame 1 {
}
}
movieClip 1109 htmlRenderer {
#initclip
htmlRendererClass = function () {
this.init();
};
htmlRendererClass.prototype = new MovieClip();
htmlRendererClass.prototype.init = function () {
var v1 = this;
trace('htmlRendererClass> init ' + (v1._dp - 5000));
v1.tfs.autoSize = true;
v1.tfs.html = true;
v1.tfs.embedFonts = true;
v1.tfs.htmlText = '';
v1.tfm.autoSize = true;
v1.tfm.html = true;
v1.tfm.embedFonts = true;
v1.tfm.htmlText = '';
v1.links = [];
v1.__depth = 100;
v1.currentLine = 0;
v1.lines = [''];
v1.eol = 0;
v1.bol = 0;
v1.lineImages = [];
v1.absoluteImages = [];
v1.images = [];
v1.events = [];
v1.marginOff = [];
if (TextField.widths == undefined) {
v1.probeFont();
}
v1.lineHeight = 0;
v1.lastLineFont = 15;
v1.width = v1.width <= 4 ? 300 : v1.width - 4;
v1.xoffset = 0;
v1.yoffset = 0;
v1.lmargin = 0;
v1.rmargin = 0;
v1.fontColor = 0;
v1.rendererObject = {'_childs': [], '_xml': '', '_fsize': 12};
if (typeof v1.html == 'string') {
var v2 = new XML();
v2.ignoreWhite = true;
v2.parseXML(v1.html);
v1.html = v2;
}
v1.addChild(v1.html, 12);
v1.onEnterFrame = v1.onEnterFrameNormal;
};
htmlRendererClass.prototype.addChild = function (_xml, _fsize) {
var v1 = _fsize;
var v2 = {'_parent': this.rendererObject, '_childs': [], '_xml': _xml, '_fsize': v1, '_e': '', '_fh': v1};
this.rendererObject._childs.push(v2);
};
htmlRendererClass.prototype.onEnterFrameNormal = function () {
var v1 = this;
trace('htmlRendererClass> onEnterFrameNormal');
while (v1.rendererObject._childs.length == 0) {
var _xml = v1.rendererObject._xml;
var v3 = v1.rendererObject._e;
var v2 = v1.rendererObject._fh;
var _fsize = v1.rendererObject._fsize;
switch (_xml.nodeName.toLowerCase()) {
case 'p':
v1.lines[v1.currentLine] += '</P>';
v1.lineHeight += v2;
v1.endOfLine(v2, _fsize);
break;
case 'a':
v1.lines[v1.currentLine] += '</U></A></FONT>';
v1.links.pop();
}
v1.lines[v1.currentLine] += v3;
v1.rendererObject = v1.rendererObject._parent;
if (v1.rendererObject._parent == undefined) {
v1.onEnterFrame = null;
v1.endOfField(v2, _fsize);
v1.draw();
} else {
v1.rendererObject = v1.rendererObject._childs.shift();
var _xml = v1.rendererObject._xml;
var _fsize = v1.rendererObject._fsize;
if (_xml.nodeValue != undefined) {
v1.simpleText(_xml, _fsize);
} else {
switch (_xml.nodeName.toLowerCase()) {
case 'img':
v1.onEnterFrame = null;
var im = {'width': parseInt(_xml.attributes.width), 'height': parseInt(_xml.attributes.height), 'src': _xml.attributes.src, '_dp': v1.__depth, '_link': v1.links[v1.links.length - 1], 'host': v1.host};
v1.attachMovie('htmlImage', 'im' + v1.__depth, v1.__depth, im);
++v1.__depth;
break;
case 'table':
v1.onEnterFrame = null;
var im = {'width': parseInt(_xml.attributes.width), 'height': parseInt(_xml.attributes.height), 'html': _xml, '_dp': v1.__depth, 'host': v1.host};
v1.attachMovie('htmlTable', 'im' + v1.__depth, v1.__depth, im);
++v1.__depth;
break;
default:
v1.htmlTag(_xml, _fsize);
}
}
}
}
};
htmlRendererClass.prototype.refreshLayout = function (im) {
var v1 = this;
trace('htmlRendererClass> refreshLayout');
var v3 = v1.rendererObject._xml;
var v2 = v1.rendererObject._fsize;
v1.htmlTag(v3, v2, im);
v1.onEnterFrame = v1.onEnterFrameNormal;
};
htmlRendererClass.prototype.draw = function () {
var v1 = this;
var ll = v1.lines.pop();
if (ll != '') {
v1.lines.push(ll);
}
trace('htmlRendererClass> draw');
var v3 = '<TEXTFORMAT INDENT="0" LEADING="0">';
v3 += '<P ALIGN="LEFT">';
v3 += '<FONT SIZE="12" COLOR="#000000">';
v3 += v1.lines.join('<br>');
v3 += '</FONT>';
v3 += '</P>';
v3 += '</TEXTFORMAT>';
v1.tfm.htmlText = v3;
for (i in v1.images) {
var v2 = v1.images[i].clip;
if (v1.images[i].align == 'right' && v1.width > 100000) {
v2._x = v1.images[i]._x - v1.width + 2 * v1.tfm._width;
} else {
v2._x = v1.images[i]._x;
}
v2._y = v1.images[i]._y;
if (v1.images[i]._y < 0) {
trace(v1.images[i].clip);
}
v2._visible = true;
}
v1._parent.width = Fp6Mat.max(v1._width, v1._parent.width);
v1._parent.height = Fp6Mat.max(v1._height, v1._parent.height);
v1._parent.refreshLayout();
};
htmlRendererClass.prototype.sortEvents = function (a, b) {
var v1 = b;
var v2 = a;
trace('htmlRendererClass> sortEvents');
if (v2.yoffset < v1.yoffset) {
return -1;
}
if (v2.yoffset > v1.yoffset) {
return 1;
}
if (v2.xoffset < v1.xoffset) {
return -1;
}
if (v2.xoffset > v1.xoffset) {
return 1;
}
return 0;
};
htmlRendererClass.prototype.updateMargins = function (_fsize) {
var v1 = this;
trace('htmlRendererClass> updateMargins');
var v3 = '';
var wdt = v1.width - v1.lmargin - v1.rmargin;
if (v1.xoffset != 0) {
return wdt;
}
for (;;) {
if (!(v1.events.length > 0 && v1.events[0].yoffset <= v1.yoffset)) break;
var v2 = v1.events.shift();
offEvt = undefined;
if (v2.lmargin != undefined) {
var offEvt = {'lmargin': v1.lmargin, 'yoffset': v2.height + v1.yoffset};
v1.images[v2.image]._x = v1.lmargin;
v1.lmargin += v2.lmargin;
}
if (v2.rmargin != undefined) {
var offEvt = {'rmargin': v1.rmargin, 'yoffset': v2.height + v1.yoffset};
v1.images[v2.image]._x = v1.width - v1.rmargin - v1.images[v2.image].width;
v1.rmargin += v2.rmargin;
}
if (offEvt != undefined) {
v1.marginOff.unshift(offEvt);
v3 = '</TEXTFORMAT><TEXTFORMAT LEFTMARGIN="' + v1.lmargin + '" RIGHTMARGIN="' + v1.rmargin + '"><FONT SIZE="' + _fsize + '">';
var wdt = v1.width - v1.lmargin - v1.rmargin;
}
v1.images[v2.image]._y = (v1.yoffset == 0) ? 0 : v1.yoffset + 4;
}
for (;;) {
if (!(v1.marginOff.length > 0 && v1.marginOff[0].yoffset < v1.yoffset)) break;
var offEvt = v1.marginOff.shift();
if (offEvt.lmargin != undefined) {
v1.lmargin = offEvt.lmargin;
}
if (offEvt.rmargin != undefined) {
v1.rmargin = offEvt.rmargin;
}
v3 = '</TEXTFORMAT><TEXTFORMAT LEFTMARGIN="' + v1.lmargin + '" RIGHTMARGIN="' + v1.rmargin + '"><FONT SIZE="' + _fsize + '">';
var wdt = v1.width - v1.lmargin - v1.rmargin;
}
v1.lines[v1.currentLine] += v3;
return wdt;
};
htmlRendererClass.prototype.endOfLine = function (fh, _fsize) {
var v1 = this;
trace('htmlRendererClass> endOfLine');
var line = v1.lines[v1.currentLine];
if (v1.bol > 0) {
var n = Fp6Mat.ceil(v1.bol / v1.lastLineFont);
var v3 = 0;
while (v3 < n) {
v1.lines[v1.currentLine + v3] = '';
++v3;
}
v1.currentLine += n;
v1.yoffset += n * v1.lastLineFont;
v1.lines[v1.currentLine] = line;
v1.updateMargins(_fsize);
}
for (v3 in v1.lineImages) {
var v2 = v1.lineImages[v3];
switch (v2.align) {
case 'top':
v2._y = v1.yoffset;
break;
case 'middle':
v2._y = v1.yoffset + v1.lineHeight / 2 - v2.height / 2;
break;
case 'bottom':
v2._y = v1.yoffset + v1.lineHeight - v2.height;
}
}
v1.lineImages.splice(0, v1.lineImages.length);
++v1.currentLine;
v1.lines[v1.currentLine] = '';
v1.xoffset = 0;
v1.yoffset += v1.lineHeight;
v1.lineHeight = fh;
v1.lastLineFont = fh;
if (v1.eol > 0) {
var n = Fp6Mat.ceil((v1.eol - v1.lineHeight) / fh);
v3 = 1;
while (v3 <= n) {
v1.lines[v1.currentLine + v3] = '';
++v3;
}
v1.currentLine += n;
v1.yoffset += n * fh;
v1.updateMargins(_fsize);
}
v1.bol = 0;
v1.eol = 0;
};
htmlRendererClass.prototype.endOfField = function (fh, _fsize) {
var v1 = this;
trace('htmlRendererClass> endOfField');
var line = v1.lines[v1.currentLine];
if (v1.bol > 0) {
var n = Fp6Mat.ceil(v1.bol / v1.lastLineFont);
var v3 = 0;
while (v3 < n) {
v1.lines[v1.currentLine + v3] = '';
++v3;
}
v1.currentLine += n;
v1.yoffset += n * v1.lastLineFont;
v1.lines[v1.currentLine] = line;
v1.updateMargins(_fsize);
}
for (v3 in v1.lineImages) {
var v2 = v1.lineImages[v3];
switch (v2.align) {
case 'top':
v2._y = v1.yoffset;
break;
case 'middle':
v2._y = v1.yoffset + v1.lineHeight / 2 - v2.height / 2;
break;
case 'bottom':
v2._y = v1.yoffset + v1.lineHeight - v2.height;
}
}
v1.lineImages.splice(0, v1.lineImages.length);
if (v1.eol > 0) {
var n = Fp6Mat.ceil((v1.eol - v1.lineHeight) / fh);
v3 = 1;
while (v3 <= n) {
v1.lines[v1.currentLine + v3] = '';
++v3;
}
v1.currentLine += n;
v1.yoffset += n * fh;
v1.updateMargins(_fsize);
}
v1.bol = 0;
v1.eol = 0;
};
htmlRendererClass.prototype.simpleText = function (_xml, _fsize) {
var v2 = this;
trace('htmlRendererClass> simpleText');
var wdt = v2.width - v2.lmargin - v2.rmargin;
var fw = TextField.widths[_fsize - 10];
var fh = TextField.heights[_fsize - 10];
v2.lineHeight = Fp6Mat.max(fh, v2.lineHeight);
fh = Fp6Mat.max(fh, v2.fontHeight);
var v1 = _xml.nodeValue;
if (!v2.xoffset && v1.substr(0, 1) == ' ') {
v1 = v1.substr(1);
}
do {
if (v2.xoffset == 0) {
var wdt = v2.updateMargins(_fsize);
}
var w = wdt - v2.xoffset;
var v3 = Fp6Mat.floor(w / fw);
if (v3 <= v1.length) {
var ls = v1.lastIndexOf(' ');
if (v3 < v1.length) {
v3 = (ls == -1 || ls == undefined) ? v1.length : ls + 1;
}
v2.lines[v2.currentLine] += v1.substr(0, v3);
v2.endOfLine(fh, _fsize);
} else {
v2.xoffset += v1.length * fw;
v2.lines[v2.currentLine] += v1.substr(0, v3);
}
v1 = v3 < v1.length ? v1.substr(v3) : '';
if (!v2.xoffset && v1.substr(0, 1) == ' ') {
v1 = v1.substr(1);
}
w = wdt;
} while (v1.length > 0);
};
htmlRendererClass.prototype.htmlTag = function (_xml, _fsize, _image) {
var v1 = this;
var v3 = _xml;
trace('htmlRendererClass> htmlTag');
trace('htmlTag> ' + v3.nodeName);
var v2 = '';
var e = '';
var wdt = v1.width - v1.lmargin - v1.rmargin;
var fw = TextField.widths[_fsize - 10];
var fh = TextField.heights[_fsize - 10];
fh = Fp6Mat.max(fh, v1.fontHeight);
switch (v3.nodeName.toLowerCase()) {
case 'body':
v1.width = (v3.attributes.width == undefined) ? v1.width : parseInt(v3.attributes.width);
break;
case 'table':
case 'img':
var im = {'width': _image.width, 'height': _image.height, 'align': (v3.attributes.align == undefined) ? 'bottom' : v3.attributes.align.toLowerCase(), 'clip': _image};
v1.images.push(im);
var imn = v1.images.length - 1;
var ev = {'yoffset': v1.yoffset, 'xoffset': v1.xoffset, 'height': im.height, 'image': imn, 'line': v1.currentLine, 'align': v3.attributes.align.toLowerCase()};
switch (v3.attributes.align.toLowerCase()) {
case 'left':
im._x = v1.lmargin;
ev.lmargin = v1.lmargin + im.width + 4;
v1.events.push(ev);
v1.events.sort(v1.sortEvents);
break;
case 'right':
im._x = v1.width - v1.rmargin - im.width;
ev.rmargin = v1.rmargin + im.width + 4;
v1.events.push(ev);
v1.events.sort(v1.sortEvents);
break;
case 'top':
v2 = '';
var wdt = v1.width - v1.lmargin - v1.rmargin;
if (v1.xoffset + im.width > wdt) {
v1.endOfLine(fh, _fsize);
}
var n = Fp6Mat.ceil(im.width / fw);
i = 0;
while (i < n) {
v2 += ' ';
++i;
}
v1.lines[v1.currentLine] += v2;
im._x = v1.xoffset + v1.lmargin + (n * fw - im.width) / 2;
v1.xoffset += n * fw;
v1.eol = Fp6Mat.max(v1.eol, im.height);
v1.lineImages.push(im);
break;
case 'middle':
v2 = '';
var wdt = v1.width - v1.lmargin - v1.rmargin;
if (v1.xoffset + im.width > wdt) {
v1.endOfLine(fh, _fsize);
}
var n = Fp6Mat.ceil(im.width / fw);
i = 0;
while (i < n) {
v2 += ' ';
++i;
}
v1.lines[v1.currentLine] += v2;
im._x = v1.xoffset + v1.lmargin + (n * fw - im.width) / 2;
v1.xoffset += n * fw;
v1.bol = Fp6Mat.max(v1.bol, im.height / 2);
v1.eol = Fp6Mat.max(v1.eol, im.height / 2);
v1.lineImages.push(im);
break;
default:
v2 = '';
var wdt = v1.width - v1.lmargin - v1.rmargin;
if (v1.xoffset + im.width > wdt) {
v1.endOfLine(fh, _fsize);
}
var n = Fp6Mat.ceil(im.width / fw);
i = 0;
while (i < n) {
v2 += ' ';
++i;
}
v1.lines[v1.currentLine] += v2;
im._x = v1.xoffset + v1.lmargin + (n * fw - im.width) / 2;
v1.xoffset += n * fw;
v1.bol = Fp6Mat.max(v1.bol, im.height);
v1.lineImages.push(im);
}
break;
case 'font':
var _oldsize = _fsize;
_fsize = parseInt(v3.attributes.size) + 10;
_fsize = Fp6Mat.min(19, _fsize);
_fsize = Fp6Mat.max(10, _fsize);
v2 = '<FONT SIZE="' + _fsize + '">';
v1.lines[v1.currentLine] += v2;
e = '</FONT><FONT SIZE="' + _oldsize + '">';
break;
case 'a':
var __href = v3.attributes.href;
var __target = v3.attributes.target;
if ((__href.substr(0, 7)).toLowerCase() != 'http://') {
__href = v1.host.baseUrl + __href;
}
v1.links.push({'t': __target, 'h': __href});
v2 = '<FONT SIZE="' + _fsize + '" COLOR="#BB0000"><U><A HREF="asfunction:host.loadURL,' + __href + ',' + __target + '">';
v1.lines[v1.currentLine] += v2;
e = '</U></A></FONT>';
break;
case 'br':
v1.endOfLine(fh, _fsize);
break;
case 'p':
v1.endOfLine(fh, _fsize);
v2 = '<P ';
for (i in v3.attributes) {
v2 += i + '="' + v3.attributes[i] + '" ';
}
v2 += '>';
v1.endOfLine(fh, _fsize);
v1.lines[v1.currentLine] += v2;
break;
default:
}
v1.rendererObject._e = e;
v1.rendererObject._fh = fh;
if (v3.nodeName.toLowerCase() != 'table') {
var i = 0;
while (i < v3.childNodes.length) {
v1.addChild(v3.childNodes[i], _fsize);
++i;
}
}
};
htmlRendererClass.prototype.probeFont = function () {
var v2 = this;
trace('htmlRendererClass> probeFont');
TextField.widths = [];
TextField.heights = [];
v2.tfm.autoSize = true;
v2.tfs.autoSize = true;
var v3 = 10;
while (v3 < 20) {
var v1 = '<TEXTFORMAT INDENT="0" LEADING="0">';
v1 += '<P ALIGN="LEFT">';
v1 += '<FONT SIZE="' + v3 + '" COLOR="#000000">';
v1 += 'x';
v1 += '</FONT>';
v1 += '</P>';
v1 += '</TEXTFORMAT>';
v2.tfs.htmlText = v1;
w1 = v2.tfs._width;
v1 = '<TEXTFORMAT INDENT="0" LEADING="0">';
v1 += '<P ALIGN="LEFT">';
v1 += '<FONT SIZE="' + v3 + '" COLOR="#000000">';
v1 += 'xx';
v1 += '</FONT>';
v1 += '</P>';
v1 += '</TEXTFORMAT>';
v2.tfs.htmlText = v1;
w2 = v2.tfs._width;
var w = w2 - w1;
TextField.widths.push(w);
v1 = '<TEXTFORMAT INDENT="0" LEADING="0">';
v1 += '<P ALIGN="LEFT">';
v1 += '<FONT SIZE="' + v3 + '" COLOR="#000000">';
v1 += 'x';
v1 += '</FONT>';
v1 += '</P>';
v1 += '</TEXTFORMAT>';
v2.tfm.htmlText = v1;
w1 = v2.tfm._height;
v1 = '<TEXTFORMAT INDENT="0" LEADING="0">';
v1 += '<P ALIGN="LEFT">';
v1 += '<FONT SIZE="' + v3 + '" COLOR="#000000">';
v1 += 'x<br>x';
v1 += '</FONT>';
v1 += '</P>';
v1 += '</TEXTFORMAT>';
v2.tfm.htmlText = v1;
w2 = v2.tfm._height;
var w = w2 - w1;
TextField.heights.push(w);
++v3;
}
trace(TextField.widths);
trace(TextField.heights);
v2.tfm.htmlText = '';
v2.tfs.htmlText = '';
};
Object.registerClass('htmlRenderer', htmlRendererClass);
#endinitclip
frame 1 {
}
}
movieClip 1110 htmlImage {
#initclip
htmlImageClass = function () {
this.init();
};
htmlImageClass.prototype = new MovieClip();
htmlImageClass.prototype.init = function () {
var v1 = this;
if (v1._link != undefined) {
v1.onPress = v1.loadURL;
}
trace('htmlImageClass> init ' + (v1._dp - 5000));
v1._visible = false;
var v2 = v1.src.split('://');
if (v2[0] == 'http' || v2[0] == 'https') {
(v1.createEmptyMovieClip('im', 1)).loadMovie(v1.src);
} else {
(v1.createEmptyMovieClip('im', 1)).loadMovie(v1.host.baseUrl + v1.src);
}
};
htmlImageClass.prototype.loadURL = function () {
var v1 = this;
v1._parent.host.loadURL(v1._link.h + ',' + v1._link.t);
};
htmlImageClass.prototype.onEnterFrame = function () {
var v1 = this;
if (v1.im == undefined) {
} else {
var v3 = v1.im.getBytesLoaded();
var v2 = v1.im.getBytesTotal();
if (v2 > 100 && v2 == v3) {
if (isNaN(v1.width) || isNaN(v1.height)) {
v1.width = v1.im._width;
v1.height = v1.im._height;
v1.onEnterFrame = null;
v1._parent.refreshLayout(v1);
} else {
v1.im._width = v1.width;
v1.im._height = v1.height;
v1.onEnterFrame = null;
v1._parent.refreshLayout(v1);
}
}
}
};
Object.registerClass('htmlImage', htmlImageClass);
#endinitclip
frame 1 {
}
}
movieClip 1112 {
}
movieClip 1580 flag {
#initclip
FlagClass = function () {
var v1 = this;
v1._group = 'country';
if (v1._parent[v1._group] == undefined) {
v1._parent[v1._group] = {};
AsBroadcaster.initialize(v1._parent[v1._group]);
}
v1.groupObject = v1._parent[v1._group];
v1.groupObject.addListener(v1);
v1.fn = 'on' + (v1._group.substr(0, 1)).toUpperCase() + v1._group.substr(1);
v1.isOver = false;
v1._enabled = true;
v1.pt._visible = false;
v1.pt._width = 300;
v1.gotoAndStop(v1._parent._parent.cc[v1.n].i);
v1.name.autoSize = true;
var v2 = v1._parent._parent.cc[v1.n].country;
v1.name.htmlText = '<font size="14"><b>' + v2.substr(0, 1) + '</b></font>' + v2.substr(1);
v1.over_c = new Color(v1.name);
v1._index = v1._parent._parent.cc[v1.n].code;
};
FlagClass.prototype = new FORM_RadioClass();
FlagClass.prototype.onRollOver = function () {
this.over_c.setRGB(14483456);
this.isOver = true;
};
FlagClass.prototype.onRollOut = function () {
this.over_c.setRGB(6710886);
this.isOver = false;
};
FlagClass.prototype.onDragOut = function () {
this.over_c.setRGB(6710886);
this.isOver = false;
};
FlagClass.prototype._check = function (i) {
var v1 = this;
if (i == v1._index) {
v1.pt._visible = true;
v1._parent._parent._parent._parent._parent.onCountry(v1._index);
v1.isChecked = true;
} else {
v1.pt._visible = false;
v1.isChecked = false;
}
v1._parent._parent.verify();
};
Object.registerClass('flag', FlagClass);
#endinitclip
frame 1 {
}
}
movieClip 1581 KeyClass {
#initclip
KeyClassClass = function () {
var v1 = this;
if (v1._parent.keys == undefined) {
v1._parent.keys = [];
}
if (v1._parent.codes == undefined) {
v1._parent.codes = [];
}
v1.but = v1.bk.bk;
v1.let.addProperty('text', v1._gt, v1._st);
v1.addProperty('_code', v1._gc, v1._sc);
v1.c = new Color(v1);
v1.ct = v1.c.getTransform();
v1.ct0 = v1.ct;
v1.active_ct = {'ra': '87', 'rb': '33', 'ga': '87', 'gb': '27', 'ba': '87', 'bb': '7', 'aa': '100', 'ab': '0'};
var v3 = v1._width;
var v2 = v1._height;
v1.let._xs = v1._xscale;
v1.let._ys = v1._yscale;
v1._yscale = 100;
v1._xscale = 100;
v1.bk._width = v3;
v1.bk._height = v2;
v1.snap();
v1._parent.keys.push(v1);
if (v1._parent.codes[v1._code] == undefined) {
v1._parent.codes[v1._code] = [];
}
v1._parent.codes[v1._code].push(v1);
v1.but.root = v1;
v1.but.onPress = v1.butOnPress;
v1.but.onDragOver = v1.butOnRollOver;
v1.but.onRollOver = v1.but.onDragOver;
v1.but.onDragOut = v1.butOnRollOut;
v1.but.onRollOut = v1.but.onDragOut;
v1.kbc._x = v3;
v1.kbc._y = v2;
};
KeyClassClass.prototype = new MovieClip();
KeyClassClass.prototype.butOnPress = function () {
var v1 = this;
v1.root._parent.attachMovie('KeyClass_Cursor', 'cursor', 10000, {'_xscale': -50, '_yscale': -50});
v1.root._parent.cursor.dragged = v1.root;
v1.root._parent.cursor.startDrag(true);
v1.root._parent.cursor.onMouseUp = function () {
var v1 = this;
v1.stopDrag();
var v2 = v1._parent.getTarget();
if (v2 != null) {
v1._parent.exchange(v1.dragged, v2);
}
v1.removeMovieClip();
};
};
KeyClassClass.prototype.butOnRollOver = function () {
var v2 = this;
(new Color(v2.root.bk.arr)).setRGB(10027008);
if (v2.root.tipText != undefined) {
var v1 = {'x': v2.root._x, 'y': v2.root._y + 10};
v2.root._parent.localToGlobal(v1);
GOS.root.globalToLocal(v1);
GOS.root.attachMovie('GOS_ToolTip', 'toolTip', 5000, {'tipText': v2.root.tipText, '_x': v1.x, '_y': v1.y});
} else {
GOS.root.toolTip.removeMovieClip();
}
};
KeyClassClass.prototype.butOnRollOut = function () {
(new Color(this.root.bk.arr)).setRGB(0);
GOS.root.toolTip.removeMovieClip();
};
KeyClassClass.prototype.blink1 = function () {
var v1 = this;
v1.blink = 0;
v1.blinkColor = 16755370;
v1.onEnterFrame = v1.blinkOEF;
};
KeyClassClass.prototype.blink2 = function () {
var v1 = this;
v1.blink = 0;
v1.blinkColor = 11184895;
v1.onEnterFrame = v1.blinkOEF;
};
KeyClassClass.prototype.blinkOEF = function () {
var v1 = this;
if (v1.blink == (v1.blink & 254)) {
v1.c.setTransform(v1.ct);
} else {
v1.c.setRGB(v1.blinkColor);
}
if (v1.blink++ == 4) {
delete v1.onEnterFrame;
}
};
KeyClassClass.prototype._sc = function (c) {
var v1 = this;
var v2 = c;
if (GOS.root.keys[Key.changeCode(v2)] != undefined) {
v1.ct = v1.active_ct;
v1.tipText = GOS.Translation[GOS.root.keys[Key.changeCode(v2)]];
if (v1.tipText == undefined) {
v1.tipText = GOS.root.keys[Key.changeCode(v2)];
}
} else {
v1.ct = v1.ct0;
v1.tipText = undefined;
}
v1.c.setTransform(v1.ct);
if (v1.__code == undefined) {
v1.__code = v2;
}
v1.let.text = v1._parent._let[Key.changeCode(v2)];
};
KeyClassClass.prototype._gc = function () {
return this.__code;
};
KeyClassClass.prototype._st = function (t) {
var v1 = this;
var v3 = t;
if (v1.let.text == '') {
v1.let.autoSize = true;
v1.w = v1._parent._width - 5;
}
switch (v3) {
case 'rt':
v1.let._visible = false;
v1._parent.bk.arr.gotoAndStop(1);
v1._parent.bk.arr._visible = true;
break;
case 'lf':
v1.let._visible = false;
v1._parent.bk.arr.gotoAndStop(2);
v1._parent.bk.arr._visible = true;
break;
case 'up':
v1.let._visible = false;
v1._parent.bk.arr.gotoAndStop(3);
v1._parent.bk.arr._visible = true;
break;
case 'dw':
v1.let._visible = false;
v1._parent.bk.arr.gotoAndStop(4);
v1._parent.bk.arr._visible = true;
break;
default:
v1._parent.bk.arr._visible = false;
v1.let._visible = true;
v1.let.text = '';
var v2 = 0;
for (;;) {
if (!(v1.let._width < v1.w && v2 < v3.length)) break;
v1.let.text += v3.substr(v2, 1);
++v2;
}
}
v1.txt = v3;
};
KeyClassClass.prototype._gt = function () {
return this.txt;
};
Object.registerClass('KeyClass', KeyClassClass);
#endinitclip
frame 1 {
}
}
movieClip 1586 user_hs_record {
#initclip
user_hs_recordClass = function () {
var v1 = this;
v1.initFrame();
v1.gotoAndStop(v1.frame[v1.countryCode]);
};
user_hs_recordClass.prototype = new MovieClip();
user_hs_recordClass.prototype.initFrame = function () {
var v1 = this;
v1.frame = [];
v1.frame.AO = 9;
v1.frame.BF = 20;
v1.frame.BI = 23;
v1.frame.BJ = 24;
v1.frame.BW = 31;
v1.frame.CD = 36;
v1.frame.CF = 37;
v1.frame.CG = 38;
v1.frame.CI = 40;
v1.frame.CM = 43;
v1.frame.CV = 48;
v1.frame.DJ = 53;
v1.frame.DZ = 57;
v1.frame.EG = 60;
v1.frame.EH = 61;
v1.frame.ER = 62;
v1.frame.ET = 64;
v1.frame.GA = 71;
v1.frame.GH = 75;
v1.frame.GM = 78;
v1.frame.GN = 79;
v1.frame.GQ = 81;
v1.frame.GW = 86;
v1.frame.KE = 105;
v1.frame.KM = 109;
v1.frame.LR = 121;
v1.frame.LS = 122;
v1.frame.LY = 126;
v1.frame.MA = 127;
v1.frame.MG = 130;
v1.frame.ML = 133;
v1.frame.MR = 139;
v1.frame.MU = 142;
v1.frame.MW = 144;
v1.frame.MZ = 147;
v1.frame.NA = 148;
v1.frame.NE = 150;
v1.frame.NG = 152;
v1.frame.RW = 178;
v1.frame.SC = 181;
v1.frame.SD = 182;
v1.frame.SH = 185;
v1.frame.SL = 188;
v1.frame.SN = 190;
v1.frame.SO = 191;
v1.frame.ST = 193;
v1.frame.SZ = 197;
v1.frame.TD = 199;
v1.frame.TG = 201;
v1.frame.TN = 207;
v1.frame.TZ = 213;
v1.frame.UG = 215;
v1.frame.ZA = 231;
v1.frame.ZM = 232;
v1.frame.ZW = 233;
v1.frame.AE = 2;
v1.frame.AF = 3;
v1.frame.AM = 7;
v1.frame.AZ = 15;
v1.frame.BD = 18;
v1.frame.BH = 22;
v1.frame.BN = 26;
v1.frame.BT = 30;
v1.frame.CC = 35;
v1.frame.CN = 44;
v1.frame.CX = 49;
v1.frame.CY = 50;
v1.frame.GE = 74;
v1.frame.HK = 88;
v1.frame.ID = 93;
v1.frame.IL = 95;
v1.frame.IN = 96;
v1.frame.IO = 97;
v1.frame.IQ = 98;
v1.frame.IR = 99;
v1.frame.JO = 103;
v1.frame.JP = 104;
v1.frame.KG = 106;
v1.frame.KH = 107;
v1.frame.KP = 111;
v1.frame.KR = 112;
v1.frame.KW = 113;
v1.frame.KZ = 115;
v1.frame.LA = 116;
v1.frame.LB = 117;
v1.frame.LK = 120;
v1.frame.MM = 134;
v1.frame.MN = 135;
v1.frame.MO = 136;
v1.frame.MV = 143;
v1.frame.MY = 146;
v1.frame.NP = 156;
v1.frame.OM = 160;
v1.frame.PH = 165;
v1.frame.PK = 166;
v1.frame.PS = 171;
v1.frame.QA = 175;
v1.frame.SA = 179;
v1.frame.SG = 184;
v1.frame.SY = 196;
v1.frame.TH = 202;
v1.frame.TJ = 203;
v1.frame.TL = 205;
v1.frame.TM = 206;
v1.frame.TR = 209;
v1.frame.TW = 212;
v1.frame.UZ = 219;
v1.frame.VN = 225;
v1.frame.YE = 229;
v1.frame.AD = 1;
v1.frame.AL = 6;
v1.frame.AT = 12;
v1.frame.BA = 16;
v1.frame.BE = 19;
v1.frame.BG = 21;
v1.frame.BY = 32;
v1.frame.CH = 39;
v1.frame.CZ = 51;
v1.frame.DE = 52;
v1.frame.DK = 54;
v1.frame.EE = 59;
v1.frame.ES = 63;
v1.frame.FI = 65;
v1.frame.FO = 69;
v1.frame.FR = 70;
v1.frame.GB = 72;
v1.frame.GI = 76;
v1.frame.GR = 82;
v1.frame.HR = 90;
v1.frame.HU = 92;
v1.frame.IE = 94;
v1.frame.IS = 100;
v1.frame.IT = 101;
v1.frame.LI = 119;
v1.frame.LT = 123;
v1.frame.LU = 124;
v1.frame.LV = 125;
v1.frame.MC = 128;
v1.frame.MD = 129;
v1.frame.MK = 132;
v1.frame.MT = 141;
v1.frame.NL = 154;
v1.frame.NO = 155;
v1.frame.PL = 167;
v1.frame.PT = 172;
v1.frame.RO = 176;
v1.frame.RU = 177;
v1.frame.SE = 183;
v1.frame.SI = 186;
v1.frame.SK = 187;
v1.frame.SM = 189;
v1.frame.SU = 194;
v1.frame.UA = 214;
v1.frame.VA = 220;
v1.frame.YU = 230;
v1.frame.AG = 4;
v1.frame.AI = 5;
v1.frame.AN = 8;
v1.frame.AW = 14;
v1.frame.BB = 17;
v1.frame.BM = 25;
v1.frame.BS = 29;
v1.frame.BZ = 33;
v1.frame.CA = 34;
v1.frame.CR = 46;
v1.frame.CU = 47;
v1.frame.DM = 55;
v1.frame.DO = 56;
v1.frame.GD = 73;
v1.frame.GL = 77;
v1.frame.GP = 80;
v1.frame.GT = 84;
v1.frame.HN = 89;
v1.frame.HT = 91;
v1.frame.JM = 102;
v1.frame.KN = 110;
v1.frame.KY = 114;
v1.frame.LC = 118;
v1.frame.MQ = 138;
v1.frame.MS = 140;
v1.frame.MX = 145;
v1.frame.NI = 153;
v1.frame.PA = 161;
v1.frame.PM = 168;
v1.frame.PR = 170;
v1.frame.SV = 195;
v1.frame.TC = 198;
v1.frame.TT = 210;
v1.frame.US = 217;
v1.frame.VC = 221;
v1.frame.VG = 223;
v1.frame.VI = 224;
v1.frame.AR = 10;
v1.frame.BO = 27;
v1.frame.BR = 28;
v1.frame.CL = 42;
v1.frame.CO = 45;
v1.frame.EC = 58;
v1.frame.FK = 67;
v1.frame.GY = 87;
v1.frame.PE = 162;
v1.frame.PY = 174;
v1.frame.SR = 192;
v1.frame.UY = 218;
v1.frame.VE = 222;
v1.frame.AS = 11;
v1.frame.AU = 13;
v1.frame.CK = 41;
v1.frame.FJ = 66;
v1.frame.FM = 68;
v1.frame.GU = 85;
v1.frame.KI = 108;
v1.frame.MH = 131;
v1.frame.MP = 137;
v1.frame.NC = 149;
v1.frame.NF = 151;
v1.frame.NR = 157;
v1.frame.NU = 158;
v1.frame.NZ = 159;
v1.frame.PF = 163;
v1.frame.PG = 164;
v1.frame.PN = 169;
v1.frame.PW = 173;
v1.frame.SB = 180;
v1.frame.TK = 204;
v1.frame.TO = 208;
v1.frame.TV = 211;
v1.frame.UM = 216;
v1.frame.VU = 226;
v1.frame.WF = 227;
v1.frame.WS = 228;
v1.frame.GS = 83;
v1.frame.TF = 200;
};
Object.registerClass('user_hs_record', user_hs_recordClass);
#endinitclip
frame 1 {
}
}
movieClip 1588 APP_TextWindow {
frame 1 {
this.onCreate = function () {
var v1 = this;
v1.txt.selectable = false;
v1.txt.autoSize = true;
v1.txt.html = true;
if (v1.serverCmd == undefined) {
if (GOS.variables[v1.gosVar] != undefined) {
v1.txt.htmlText = GOS.variables[v1.gosVar];
} else {
v1.txt.htmlText = v1.text.toUpperCase();
}
} else {
if (GOS.variables[v1.gosVar] != undefined) {
v1.txt.htmlText = GOS.variables[v1.gosVar];
} else {
v1.useServer('gos');
v1['on' + v1.serverCmd] = v1.recieved;
v1.command(v1.serverCmd);
}
}
v1.txt._width = 150;
};
this.recieved = function (r) {
var v1 = r;
if (v1.success) {
for (i in v1) {
if (i != success) {
GOS.variables[i] = v1[i];
}
}
this.txt.htmlText = GOS.variables[this.gosVar];
}
};
this.resizeTo = function (w, h) {
this.txt._width = w - 10;
};
}
}
movieClip 1589 APP_SlowDown {
frame 1 {
this.onCreate = function () {
var v1 = this;
v1.i = 1;
v1.held = false;
v1.onEnterFrame = function () {
var v1 = this;
if (v1.held) {
} else {
v1.createEmptyMovieClip('s' + v1.i, v1.i);
v1['s' + v1.i].onEnterFrame = function () {
var v1 = this;
v1.clear();
v1.beginFill(0, 0);
v1.moveTo(-10, -10);
v1.lineTo(-10, 10);
v1.lineTo(10, 10);
v1.lineTo(10, -10);
v1.lineTo(-10, -10);
v1.endFill();
};
++v1.i;
}
};
};
this.onHoldOnButton = function () {
this.held = true;
};
}
instance holdOnButton of movieClip 1028 FORM_Button {
onClipEvent (initialize) {
name = 'slowDown_holdOn';
_enabled = true;
}
}
}
movieClip 1597 {
}
movieClip 1598 {
frame 1 {
this._index = 4;
this.pt._visible = false;
this.pt1._visible = false;
this.onRollOver = function () {
this.pt._visible = true;
};
this.onRollOut = function () {
this.pt._visible = false;
};
this.onPress = function () {
this._parent.continentListener.broadcastMessage('onContinent', this._index);
};
if (this._parent.continentListener == undefined) {
this._parent.continentListener = {};
AsBroadcaster.initialize(this._parent.continentListener);
}
this._parent.continentListener.addListener(this);
this.onContinent = function (i) {
var v1 = this;
if (v1._index == i) {
v1.pt1._visible = true;
v1._parent.onContinent(i);
} else {
v1.pt1._visible = false;
}
};
}
}
movieClip 1600 {
}
movieClip 1601 {
frame 1 {
this._index = 5;
this.pt._visible = false;
this.pt1._visible = false;
this.onRollOver = function () {
this.pt._visible = true;
};
this.onRollOut = function () {
this.pt._visible = false;
};
this.onPress = function () {
this._parent.continentListener.broadcastMessage('onContinent', this._index);
};
if (this._parent.continentListener == undefined) {
this._parent.continentListener = {};
AsBroadcaster.initialize(this._parent.continentListener);
}
this._parent.continentListener.addListener(this);
this.onContinent = function (i) {
var v1 = this;
if (v1._index == i) {
v1.pt1._visible = true;
v1._parent.onContinent(i);
} else {
v1.pt1._visible = false;
}
};
}
}
movieClip 1603 {
}
movieClip 1604 {
frame 1 {
this._index = 3;
this.pt._visible = false;
this.pt1._visible = false;
this.onRollOver = function () {
this.pt._visible = true;
};
this.onRollOut = function () {
this.pt._visible = false;
};
this.onPress = function () {
this._parent.continentListener.broadcastMessage('onContinent', this._index);
};
if (this._parent.continentListener == undefined) {
this._parent.continentListener = {};
AsBroadcaster.initialize(this._parent.continentListener);
}
this._parent.continentListener.addListener(this);
this.onContinent = function (i) {
var v1 = this;
if (v1._index == i) {
v1.pt1._visible = true;
v1._parent.onContinent(i);
} else {
v1.pt1._visible = false;
}
};
}
}
movieClip 1606 {
}
movieClip 1607 {
frame 1 {
this._index = 0;
this.pt._visible = false;
this.pt1._visible = false;
this.onRollOver = function () {
this.pt._visible = true;
};
this.onRollOut = function () {
this.pt._visible = false;
};
this.onPress = function () {
this._parent.continentListener.broadcastMessage('onContinent', this._index);
};
if (this._parent.continentListener == undefined) {
this._parent.continentListener = {};
AsBroadcaster.initialize(this._parent.continentListener);
}
this._parent.continentListener.addListener(this);
this.onContinent = function (i) {
var v1 = this;
if (v1._index == i) {
v1.pt1._visible = true;
v1._parent.onContinent(i);
} else {
v1.pt1._visible = false;
}
};
}
}
movieClip 1609 {
}
movieClip 1610 {
frame 1 {
this._index = 1;
this.pt._visible = false;
this.pt1._visible = false;
this.onRollOver = function () {
this.pt._visible = true;
};
this.onRollOut = function () {
this.pt._visible = false;
};
this.onPress = function () {
this._parent.continentListener.broadcastMessage('onContinent', this._index);
};
if (this._parent.continentListener == undefined) {
this._parent.continentListener = {};
AsBroadcaster.initialize(this._parent.continentListener);
}
this._parent.continentListener.addListener(this);
this.onContinent = function (i) {
var v1 = this;
if (v1._index == i) {
v1.pt1._visible = true;
v1._parent.onContinent(i);
} else {
v1.pt1._visible = false;
}
};
}
}
movieClip 1612 {
}
movieClip 1613 {
frame 1 {
this._index = 2;
this.pt._visible = false;
this.pt1._visible = false;
this.onRollOver = function () {
this.pt._visible = true;
};
this.onRollOut = function () {
this.pt._visible = false;
};
this.onPress = function () {
this._parent.continentListener.broadcastMessage('onContinent', this._index);
};
if (this._parent.continentListener == undefined) {
this._parent.continentListener = {};
AsBroadcaster.initialize(this._parent.continentListener);
}
this._parent.continentListener.addListener(this);
this.onContinent = function (i) {
var v1 = this;
if (v1._index == i) {
v1.pt1._visible = true;
v1._parent.onContinent(i);
} else {
v1.pt1._visible = false;
}
};
}
}
movieClip 1615 {
}
movieClip 1617 {
frame 1 {
this.vs.dim = 92;
this.vs.update();
}
frame 1 {
this.cc = [];
this.cc.AF = [];
this.cc.AS = [];
this.cc.EU = [];
this.cc.NA = [];
this.cc.SA = [];
this.cc.OC = [];
this.cc.AN = [];
this.cc.EU[0] = {'code': 'AD', 'country': 'Andorra', 'i': 1};
this.cc.AS[0] = {'code': 'AE', 'country': 'United Arab Emirates', 'i': 2};
this.cc.AS[1] = {'code': 'AF', 'country': 'Afghanistan', 'i': 3};
this.cc.NA[0] = {'code': 'AG', 'country': 'Antigua and Barbuda', 'i': 4};
this.cc.NA[1] = {'code': 'AI', 'country': 'Anguilla', 'i': 5};
this.cc.EU[1] = {'code': 'AL', 'country': 'Albania', 'i': 6};
this.cc.AS[2] = {'code': 'AM', 'country': 'Armenia', 'i': 7};
this.cc.NA[2] = {'code': 'AN', 'country': 'Netherlands Antilles', 'i': 8};
this.cc.AF[0] = {'code': 'AO', 'country': 'Angola', 'i': 9};
this.cc.SA[0] = {'code': 'AR', 'country': 'Argentina', 'i': 10};
this.cc.OC[0] = {'code': 'AS', 'country': 'American Samoa', 'i': 11};
this.cc.EU[2] = {'code': 'AT', 'country': 'Austria', 'i': 12};
this.cc.OC[1] = {'code': 'AU', 'country': 'Australia', 'i': 13};
this.cc.NA[3] = {'code': 'AW', 'country': 'Aruba', 'i': 14};
this.cc.AS[3] = {'code': 'AZ', 'country': 'Azerbaijan', 'i': 15};
this.cc.EU[3] = {'code': 'BA', 'country': 'Bosnia and Herzegovina', 'i': 16};
this.cc.NA[4] = {'code': 'BB', 'country': 'Barbados', 'i': 17};
this.cc.AS[4] = {'code': 'BD', 'country': 'Bangladesh', 'i': 18};
this.cc.EU[4] = {'code': 'BE', 'country': 'Belgium', 'i': 19};
this.cc.AF[1] = {'code': 'BF', 'country': 'Burkina Faso', 'i': 20};
this.cc.EU[5] = {'code': 'BG', 'country': 'Bulgaria', 'i': 21};
this.cc.AS[5] = {'code': 'BH', 'country': 'Bahrain', 'i': 22};
this.cc.AF[2] = {'code': 'BI', 'country': 'Burundi', 'i': 23};
this.cc.AF[3] = {'code': 'BJ', 'country': 'Benin', 'i': 24};
this.cc.NA[5] = {'code': 'BM', 'country': 'Bermuda', 'i': 25};
this.cc.AS[6] = {'code': 'BN', 'country': 'Brunei Darussalam', 'i': 26};
this.cc.SA[1] = {'code': 'BO', 'country': 'Bolivia', 'i': 27};
this.cc.SA[2] = {'code': 'BR', 'country': 'Brazil', 'i': 28};
this.cc.NA[6] = {'code': 'BS', 'country': 'Bahamas', 'i': 29};
this.cc.AS[7] = {'code': 'BT', 'country': 'Bhutan', 'i': 30};
this.cc.AF[4] = {'code': 'BW', 'country': 'Botswana', 'i': 31};
this.cc.EU[6] = {'code': 'BY', 'country': 'Belarus', 'i': 32};
this.cc.NA[7] = {'code': 'BZ', 'country': 'Belize', 'i': 33};
this.cc.NA[8] = {'code': 'CA', 'country': 'Canada', 'i': 34};
this.cc.AS[8] = {'code': 'CC', 'country': 'Cocos (Keeling) Islands', 'i': 35};
this.cc.AF[5] = {'code': 'CD', 'country': 'Democratic Republic of the Congo', 'i': 36};
this.cc.AF[6] = {'code': 'CF', 'country': 'Central African Republic', 'i': 37};
this.cc.AF[7] = {'code': 'CG', 'country': 'Congo', 'i': 38};
this.cc.EU[7] = {'code': 'CH', 'country': 'Switzerland', 'i': 39};
this.cc.AF[8] = {'code': 'CI', 'country': 'Cote D\'Ivoire (Ivory Coast)', 'i': 40};
this.cc.OC[2] = {'code': 'CK', 'country': 'Cook Islands', 'i': 41};
this.cc.SA[3] = {'code': 'CL', 'country': 'Chile', 'i': 42};
this.cc.AF[9] = {'code': 'CM', 'country': 'Cameroon', 'i': 43};
this.cc.AS[9] = {'code': 'CN', 'country': 'China', 'i': 44};
this.cc.SA[4] = {'code': 'CO', 'country': 'Colombia', 'i': 45};
this.cc.NA[9] = {'code': 'CR', 'country': 'Costa Rica', 'i': 46};
this.cc.NA[10] = {'code': 'CU', 'country': 'Cuba', 'i': 47};
this.cc.AF[10] = {'code': 'CV', 'country': 'Cape Verde', 'i': 48};
this.cc.AS[10] = {'code': 'CX', 'country': 'Christmas Island', 'i': 49};
this.cc.AS[11] = {'code': 'CY', 'country': 'Cyprus', 'i': 50};
this.cc.EU[8] = {'code': 'CZ', 'country': 'Czech Republic', 'i': 51};
this.cc.EU[9] = {'code': 'DE', 'country': 'Germany', 'i': 52};
this.cc.AF[11] = {'code': 'DJ', 'country': 'Djibouti', 'i': 53};
this.cc.EU[10] = {'code': 'DK', 'country': 'Denmark', 'i': 54};
this.cc.NA[11] = {'code': 'DM', 'country': 'Dominica', 'i': 55};
this.cc.NA[12] = {'code': 'DO', 'country': 'Dominican Republic', 'i': 56};
this.cc.AF[12] = {'code': 'DZ', 'country': 'Algeria', 'i': 57};
this.cc.SA[5] = {'code': 'EC', 'country': 'Ecuador', 'i': 58};
this.cc.EU[11] = {'code': 'EE', 'country': 'Estonia', 'i': 59};
this.cc.AF[13] = {'code': 'EG', 'country': 'Egypt', 'i': 60};
this.cc.AF[14] = {'code': 'EH', 'country': 'Western Sahara', 'i': 61};
this.cc.AF[15] = {'code': 'ER', 'country': 'Eritrea', 'i': 62};
this.cc.EU[12] = {'code': 'ES', 'country': 'Spain', 'i': 63};
this.cc.AF[16] = {'code': 'ET', 'country': 'Ethiopia', 'i': 64};
this.cc.EU[13] = {'code': 'FI', 'country': 'Finland', 'i': 65};
this.cc.OC[3] = {'code': 'FJ', 'country': 'Fiji', 'i': 66};
this.cc.SA[6] = {'code': 'FK', 'country': 'Falkland Islands (Malvinas)', 'i': 67};
this.cc.OC[4] = {'code': 'FM', 'country': 'Federated States of Micronesia', 'i': 68};
this.cc.EU[14] = {'code': 'FO', 'country': 'Faroe Islands', 'i': 69};
this.cc.EU[15] = {'code': 'FR', 'country': 'France', 'i': 70};
this.cc.AF[17] = {'code': 'GA', 'country': 'Gabon', 'i': 71};
this.cc.EU[16] = {'code': 'GB', 'country': 'Great Britain (UK)', 'i': 72};
this.cc.NA[13] = {'code': 'GD', 'country': 'Grenada', 'i': 73};
this.cc.AS[12] = {'code': 'GE', 'country': 'Georgia', 'i': 74};
this.cc.AF[18] = {'code': 'GH', 'country': 'Ghana', 'i': 75};
this.cc.EU[17] = {'code': 'GI', 'country': 'Gibraltar', 'i': 76};
this.cc.NA[14] = {'code': 'GL', 'country': 'Greenland', 'i': 77};
this.cc.AF[19] = {'code': 'GM', 'country': 'Gambia', 'i': 78};
this.cc.AF[20] = {'code': 'GN', 'country': 'Guinea', 'i': 79};
this.cc.NA[15] = {'code': 'GP', 'country': 'Guadeloupe', 'i': 80};
this.cc.AF[21] = {'code': 'GQ', 'country': 'Equatorial Guinea', 'i': 81};
this.cc.EU[18] = {'code': 'GR', 'country': 'Greece', 'i': 82};
this.cc.AN[0] = {'code': 'GS', 'country': 'S. Georgia and S. Sandwich Islands', 'i': 83};
this.cc.NA[16] = {'code': 'GT', 'country': 'Guatemala', 'i': 84};
this.cc.OC[5] = {'code': 'GU', 'country': 'Guam', 'i': 85};
this.cc.AF[22] = {'code': 'GW', 'country': 'Guinea-Bissau', 'i': 86};
this.cc.SA[7] = {'code': 'GY', 'country': 'Guyana', 'i': 87};
this.cc.AS[13] = {'code': 'HK', 'country': 'Hong Kong', 'i': 88};
this.cc.NA[17] = {'code': 'HN', 'country': 'Honduras', 'i': 89};
this.cc.EU[19] = {'code': 'HR', 'country': 'Croatia (Hrvatska)', 'i': 90};
this.cc.NA[18] = {'code': 'HT', 'country': 'Haiti', 'i': 91};
this.cc.EU[20] = {'code': 'HU', 'country': 'Hungary', 'i': 92};
this.cc.AS[14] = {'code': 'ID', 'country': 'Indonesia', 'i': 93};
this.cc.EU[21] = {'code': 'IE', 'country': 'Ireland', 'i': 94};
this.cc.AS[15] = {'code': 'IL', 'country': 'Israel', 'i': 95};
this.cc.AS[16] = {'code': 'IN', 'country': 'India', 'i': 96};
this.cc.AS[17] = {'code': 'IO', 'country': 'British Indian Ocean Territory', 'i': 97};
this.cc.AS[18] = {'code': 'IQ', 'country': 'Iraq', 'i': 98};
this.cc.AS[19] = {'code': 'IR', 'country': 'Iran', 'i': 99};
this.cc.EU[22] = {'code': 'IS', 'country': 'Iceland', 'i': 100};
this.cc.EU[23] = {'code': 'IT', 'country': 'Italy', 'i': 101};
this.cc.NA[19] = {'code': 'JM', 'country': 'Jamaica', 'i': 102};
this.cc.AS[20] = {'code': 'JO', 'country': 'Jordan', 'i': 103};
this.cc.AS[21] = {'code': 'JP', 'country': 'Japan', 'i': 104};
this.cc.AF[23] = {'code': 'KE', 'country': 'Kenya', 'i': 105};
this.cc.AS[22] = {'code': 'KG', 'country': 'Kyrgyzstan', 'i': 106};
this.cc.AS[23] = {'code': 'KH', 'country': 'Cambodia', 'i': 107};
this.cc.OC[6] = {'code': 'KI', 'country': 'Kiribati', 'i': 108};
this.cc.AF[24] = {'code': 'KM', 'country': 'Comoros', 'i': 109};
this.cc.NA[20] = {'code': 'KN', 'country': 'Saint Kitts and Nevis', 'i': 110};
this.cc.AS[24] = {'code': 'KP', 'country': 'Korea (North)', 'i': 111};
this.cc.AS[25] = {'code': 'KR', 'country': 'Korea (South)', 'i': 112};
this.cc.AS[26] = {'code': 'KW', 'country': 'Kuwait', 'i': 113};
this.cc.NA[21] = {'code': 'KY', 'country': 'Cayman Islands', 'i': 114};
this.cc.AS[27] = {'code': 'KZ', 'country': 'Kazakhstan', 'i': 115};
this.cc.AS[28] = {'code': 'LA', 'country': 'Laos', 'i': 116};
this.cc.AS[29] = {'code': 'LB', 'country': 'Lebanon', 'i': 117};
this.cc.NA[22] = {'code': 'LC', 'country': 'Saint Lucia', 'i': 118};
this.cc.EU[24] = {'code': 'LI', 'country': 'Liechtenstein', 'i': 119};
this.cc.AS[30] = {'code': 'LK', 'country': 'Sri Lanka', 'i': 120};
this.cc.AF[25] = {'code': 'LR', 'country': 'Liberia', 'i': 121};
this.cc.AF[26] = {'code': 'LS', 'country': 'Lesotho', 'i': 122};
this.cc.EU[25] = {'code': 'LT', 'country': 'Lithuania', 'i': 123};
this.cc.EU[26] = {'code': 'LU', 'country': 'Luxembourg', 'i': 124};
this.cc.EU[27] = {'code': 'LV', 'country': 'Latvia', 'i': 125};
this.cc.AF[27] = {'code': 'LY', 'country': 'Libya', 'i': 126};
this.cc.AF[28] = {'code': 'MA', 'country': 'Morocco', 'i': 127};
this.cc.EU[28] = {'code': 'MC', 'country': 'Monaco', 'i': 128};
this.cc.EU[29] = {'code': 'MD', 'country': 'Moldova', 'i': 129};
this.cc.AF[29] = {'code': 'MG', 'country': 'Madagascar', 'i': 130};
this.cc.OC[7] = {'code': 'MH', 'country': 'Marshall Islands', 'i': 131};
this.cc.EU[30] = {'code': 'MK', 'country': 'Macedonia', 'i': 132};
this.cc.AF[30] = {'code': 'ML', 'country': 'Mali', 'i': 133};
this.cc.AS[31] = {'code': 'MM', 'country': 'Myanmar', 'i': 134};
this.cc.AS[32] = {'code': 'MN', 'country': 'Mongolia', 'i': 135};
this.cc.AS[33] = {'code': 'MO', 'country': 'Macao', 'i': 136};
this.cc.OC[8] = {'code': 'MP', 'country': 'Northern Mariana Islands', 'i': 137};
this.cc.NA[23] = {'code': 'MQ', 'country': 'Martinique', 'i': 138};
this.cc.AF[31] = {'code': 'MR', 'country': 'Mauritania', 'i': 139};
this.cc.NA[24] = {'code': 'MS', 'country': 'Montserrat', 'i': 140};
this.cc.EU[31] = {'code': 'MT', 'country': 'Malta', 'i': 141};
this.cc.AF[32] = {'code': 'MU', 'country': 'Mauritius', 'i': 142};
this.cc.AS[34] = {'code': 'MV', 'country': 'Maldives', 'i': 143};
this.cc.AF[33] = {'code': 'MW', 'country': 'Malawi', 'i': 144};
this.cc.NA[25] = {'code': 'MX', 'country': 'Mexico', 'i': 145};
this.cc.AS[35] = {'code': 'MY', 'country': 'Malaysia', 'i': 146};
this.cc.AF[34] = {'code': 'MZ', 'country': 'Mozambique', 'i': 147};
this.cc.AF[35] = {'code': 'NA', 'country': 'Namibia', 'i': 148};
this.cc.OC[9] = {'code': 'NC', 'country': 'New Caledonia', 'i': 149};
this.cc.AF[36] = {'code': 'NE', 'country': 'Niger', 'i': 150};
this.cc.OC[10] = {'code': 'NF', 'country': 'Norfolk Island', 'i': 151};
this.cc.AF[37] = {'code': 'NG', 'country': 'Nigeria', 'i': 152};
this.cc.NA[26] = {'code': 'NI', 'country': 'Nicaragua', 'i': 153};
this.cc.EU[32] = {'code': 'NL', 'country': 'Netherlands', 'i': 154};
this.cc.EU[33] = {'code': 'NO', 'country': 'Norway', 'i': 155};
this.cc.AS[36] = {'code': 'NP', 'country': 'Nepal', 'i': 156};
this.cc.OC[11] = {'code': 'NR', 'country': 'Nauru', 'i': 157};
this.cc.OC[12] = {'code': 'NU', 'country': 'Niue', 'i': 158};
this.cc.OC[13] = {'code': 'NZ', 'country': 'New Zealand (Aotearoa)', 'i': 159};
this.cc.AS[37] = {'code': 'OM', 'country': 'Oman', 'i': 160};
this.cc.NA[27] = {'code': 'PA', 'country': 'Panama', 'i': 161};
this.cc.SA[8] = {'code': 'PE', 'country': 'Peru', 'i': 162};
this.cc.OC[14] = {'code': 'PF', 'country': 'French Polynesia', 'i': 163};
this.cc.OC[15] = {'code': 'PG', 'country': 'Papua New Guinea', 'i': 164};
this.cc.AS[38] = {'code': 'PH', 'country': 'Philippines', 'i': 165};
this.cc.AS[39] = {'code': 'PK', 'country': 'Pakistan', 'i': 166};
this.cc.EU[34] = {'code': 'PL', 'country': 'Poland', 'i': 167};
this.cc.NA[28] = {'code': 'PM', 'country': 'Saint Pierre and Miquelon', 'i': 168};
this.cc.OC[16] = {'code': 'PN', 'country': 'Pitcairn', 'i': 169};
this.cc.NA[29] = {'code': 'PR', 'country': 'Puerto Rico', 'i': 170};
this.cc.AS[40] = {'code': 'PS', 'country': 'Palestinian Territory', 'i': 171};
this.cc.EU[35] = {'code': 'PT', 'country': 'Portugal', 'i': 172};
this.cc.OC[17] = {'code': 'PW', 'country': 'Palau', 'i': 173};
this.cc.SA[9] = {'code': 'PY', 'country': 'Paraguay', 'i': 174};
this.cc.AS[41] = {'code': 'QA', 'country': 'Qatar', 'i': 175};
this.cc.EU[36] = {'code': 'RO', 'country': 'Romania', 'i': 176};
this.cc.EU[37] = {'code': 'RU', 'country': 'Russian Federation', 'i': 177};
this.cc.AF[38] = {'code': 'RW', 'country': 'Rwanda', 'i': 178};
this.cc.AS[42] = {'code': 'SA', 'country': 'Saudi Arabia', 'i': 179};
this.cc.OC[18] = {'code': 'SB', 'country': 'Solomon Islands', 'i': 180};
this.cc.AF[39] = {'code': 'SC', 'country': 'Seychelles', 'i': 181};
this.cc.AF[40] = {'code': 'SD', 'country': 'Sudan', 'i': 182};
this.cc.EU[38] = {'code': 'SE', 'country': 'Sweden', 'i': 183};
this.cc.AS[43] = {'code': 'SG', 'country': 'Singapore', 'i': 184};
this.cc.AF[41] = {'code': 'SH', 'country': 'Saint Helena', 'i': 185};
this.cc.EU[39] = {'code': 'SI', 'country': 'Slovenia', 'i': 186};
this.cc.EU[40] = {'code': 'SK', 'country': 'Slovakia', 'i': 187};
this.cc.AF[42] = {'code': 'SL', 'country': 'Sierra Leone', 'i': 188};
this.cc.EU[41] = {'code': 'SM', 'country': 'San Marino', 'i': 189};
this.cc.AF[43] = {'code': 'SN', 'country': 'Senegal', 'i': 190};
this.cc.AF[44] = {'code': 'SO', 'country': 'Somalia', 'i': 191};
this.cc.SA[10] = {'code': 'SR', 'country': 'Suriname', 'i': 192};
this.cc.AF[45] = {'code': 'ST', 'country': 'Sao Tome and Principe', 'i': 193};
this.cc.EU[42] = {'code': 'SU', 'country': 'USSR (former)', 'i': 194};
this.cc.NA[30] = {'code': 'SV', 'country': 'El Salvador', 'i': 195};
this.cc.AS[44] = {'code': 'SY', 'country': 'Syria', 'i': 196};
this.cc.AF[46] = {'code': 'SZ', 'country': 'Swaziland', 'i': 197};
this.cc.NA[31] = {'code': 'TC', 'country': 'Turks and Caicos Islands', 'i': 198};
this.cc.AF[47] = {'code': 'TD', 'country': 'Chad', 'i': 199};
this.cc.AN[1] = {'code': 'TF', 'country': 'French Southern Territories', 'i': 200};
this.cc.AF[48] = {'code': 'TG', 'country': 'Togo', 'i': 201};
this.cc.AS[45] = {'code': 'TH', 'country': 'Thailand', 'i': 202};
this.cc.AS[46] = {'code': 'TJ', 'country': 'Tajikistan', 'i': 203};
this.cc.OC[19] = {'code': 'TK', 'country': 'Tokelau', 'i': 204};
this.cc.AS[47] = {'code': 'TL', 'country': 'Timor-Leste', 'i': 205};
this.cc.AS[48] = {'code': 'TM', 'country': 'Turkmenistan', 'i': 206};
this.cc.AF[49] = {'code': 'TN', 'country': 'Tunisia', 'i': 207};
this.cc.OC[20] = {'code': 'TO', 'country': 'Tonga', 'i': 208};
this.cc.AS[49] = {'code': 'TR', 'country': 'Turkey', 'i': 209};
this.cc.NA[32] = {'code': 'TT', 'country': 'Trinidad and Tobago', 'i': 210};
this.cc.OC[21] = {'code': 'TV', 'country': 'Tuvalu', 'i': 211};
this.cc.AS[50] = {'code': 'TW', 'country': 'Taiwan', 'i': 212};
this.cc.AF[50] = {'code': 'TZ', 'country': 'Tanzania', 'i': 213};
this.cc.EU[43] = {'code': 'UA', 'country': 'Ukraine', 'i': 214};
this.cc.AF[51] = {'code': 'UG', 'country': 'Uganda', 'i': 215};
this.cc.OC[22] = {'code': 'UM', 'country': 'United States Minor Outlying Islands', 'i': 216};
this.cc.NA[33] = {'code': 'US', 'country': 'United States', 'i': 217};
this.cc.SA[11] = {'code': 'UY', 'country': 'Uruguay', 'i': 218};
this.cc.AS[51] = {'code': 'UZ', 'country': 'Uzbekistan', 'i': 219};
this.cc.EU[44] = {'code': 'VA', 'country': 'Vatican City State (Holy See)', 'i': 220};
this.cc.NA[34] = {'code': 'VC', 'country': 'Saint Vincent and the Grenadines', 'i': 221};
this.cc.SA[12] = {'code': 'VE', 'country': 'Venezuela', 'i': 222};
this.cc.NA[35] = {'code': 'VG', 'country': 'Virgin Islands (British)', 'i': 223};
this.cc.NA[36] = {'code': 'VI', 'country': 'Virgin Islands (U.S.)', 'i': 224};
this.cc.AS[52] = {'code': 'VN', 'country': 'Viet Nam', 'i': 225};
this.cc.OC[23] = {'code': 'VU', 'country': 'Vanuatu', 'i': 226};
this.cc.OC[24] = {'code': 'WF', 'country': 'Wallis and Futuna', 'i': 227};
this.cc.OC[25] = {'code': 'WS', 'country': 'Samoa', 'i': 228};
this.cc.AS[53] = {'code': 'YE', 'country': 'Yemen', 'i': 229};
this.cc.EU[45] = {'code': 'YU', 'country': 'Yugoslavia (former)', 'i': 230};
this.cc.AF[52] = {'code': 'ZA', 'country': 'South Africa', 'i': 231};
this.cc.AF[53] = {'code': 'ZM', 'country': 'Zambia', 'i': 232};
this.cc.AF[54] = {'code': 'ZW', 'country': 'Zimbabwe', 'i': 233};
this.area.cc = this.cc[this._parent.continent];
this.area.cc.sortOn('country');
this.area.createEmptyMovieClip('theList', 1);
var l = this.area.cc.length;
n = 0;
while (n < l) {
this.area.theList.attachMovie('flag', 'f' + n, n + 100, {'n': n, '_x': -12.6, '_y': n * 16 - 1.9});
++n;
}
this.onCountryRollOver = function (l) {
this.ltt = l;
};
this.vs.update = function () {
var v1 = this;
var v2 = v1.val;
var v3 = v1._parent.area.theList._height - v1._parent.mask._height;
var y = int(-v3 * v2 / 100);
v1._parent.area.theList._y = y;
};
this.mask._width -= 2;
this.mask._height -= 2;
this.mask._x += 1;
this.mask._y += 1;
}
}
movieClip 1618 {
frame 1 {
this.onContinent = function (i) {
var v1 = this;
switch (i) {
case 0:
v1.continent = 'AF';
break;
case 1:
v1.continent = 'AS';
break;
case 2:
v1.continent = 'OC';
break;
case 3:
v1.continent = 'EU';
break;
case 4:
v1.continent = 'NA';
break;
case 5:
v1.continent = 'SA';
}
v1.gotoAndStop(2);
};
stop();
}
frame 2 {
this.onCountry = function (i) {
this._parent.onCountry(i);
};
}
}
movieClip 1619 APP_RegisterForm {
frame 1 {
this.onCreate = function () {
var v1 = this;
v1._modal = true;
v1._unique = true;
if (v1.mynick != undefined) {
v1.nick.val.text = v1.mynick;
}
v1.useServer();
v1.stop();
};
this.onSexPick = function (ob) {
this.gender = ob.index ? 'M' : 'F';
};
this.onCountry = function (i) {
var v1 = this;
trace(i);
v1.country = i;
trace(v1.country);
v1.verify();
};
this.verify = function () {
var v1 = this;
v1.submitButton._enabled = v1.nick.valid && v1.mail.valid && v1.birth.valid && v1.gender != undefined && v1.country != undefined;
};
this.onSubmitButton = function () {
var v1 = this;
var v2 = {'nick': v1.nick.val.text, 'mail': v1.mail.val.text, 'birth': v1.birth.val.text, 'gender': v1.gender, 'country': v1.country};
v1.command('R', v2);
};
this.showTip = function () {
var v2 = this;
var v1 = {'x': v2.submitButton._x, 'y': v2.submitButton._y + 10};
v2.localToGlobal(v1);
GOS.root.globalToLocal(v1);
GOS.root.attachMovie('GOS_ToolTip', 'toolTip', 5000, {'tipText': GOS.Translation.common_badForm, '_x': v1.x, '_y': v1.y});
};
this.hideTip = function () {
GOS.root.toolTip.removeMovieClip();
};
this.onR = function (r) {
GOS.StateVars.Window.state = {'class': 'Alert', 'type': 'info', 'title': GOS.Translation.common_okTitle, 'text': GOS.Translation[r.msg]};
this.close();
};
stop();
}
instance submitButton of movieClip 1028 FORM_Button {
onClipEvent (initialize) {
name = 'Register_button';
_enabled = false;
}
}
instance nick of movieClip 1033 FORM_TextField {
onClipEvent (initialize) {
title = 'common_nick';
type = 'nick';
}
}
instance mail of movieClip 1033 FORM_TextField {
onClipEvent (initialize) {
title = 'common_email';
type = 'mail';
}
}
instance birth of movieClip 1033 FORM_TextField {
onClipEvent (initialize) {
title = 'Register_birth';
type = 'birth';
}
}
instance of movieClip 1042 FORM_Radio {
onClipEvent (initialize) {
name = 'Register_sexFemale';
_enabled = true;
_checked = false;
_group = 'sexPick';
_index = 0;
}
}
instance of movieClip 1042 FORM_Radio {
onClipEvent (initialize) {
name = 'Register_sexMale';
_enabled = true;
_checked = false;
_group = 'sexPick';
_index = 1;
}
}
}
movieClip 1621 APP_Poll {
frame 1 {
this.onCreate = function () {
var v1 = this;
v1._modal = true;
v1._clientHeight = 40;
v1._clientWidth = 160;
v1.txt.text = v1.text;
};
this.onYes = function () {
var v1 = {'id': this.id, 'answer': true};
GOS.serv.cmd('A', v1);
this.closeMe();
};
this.onNo = function () {
var v1 = {'id': this.id, 'answer': false};
GOS.serv.cmd('A', v1);
this.closeMe();
};
this.closeMe = function () {
GOS.cookie.data.lastQuestion = (new Date()).getTime();
GOS.cookie.flush;
this.close();
};
}
instance yes of movieClip 1028 FORM_Button {
onClipEvent (initialize) {
name = 'common_yes';
_enabled = true;
}
}
instance no of movieClip 1028 FORM_Button {
onClipEvent (initialize) {
name = 'common_no';
_enabled = true;
}
}
}
movieClip 1624 APP_PasswordResetForm {
frame 1 {
this.onCreate = function () {
var v1 = this;
v1._modal = true;
v1._unique = true;
if (v1.mynick != undefined) {
v1.nick.val.text = v1.mynick;
}
v1.useServer();
v1.stop();
};
this.verify = function () {
var v1 = this;
v1.loginButton._enabled = v1.nick.valid || v1.mail.valid;
};
this.onSubmitButton = function () {
var v2 = this;
var v1 = {'nick': v2.nick.val.text, 'mail': v2.mail.val.text};
v2.command('N', v1);
};
this.showTip = function () {
var v2 = this;
var v1 = {'x': v2.loginButton._x, 'y': v2.loginButton._y + 10};
v2.localToGlobal(v1);
GOS.root.globalToLocal(v1);
GOS.root.attachMovie('GOS_ToolTip', 'toolTip', 5000, {'tipText': GOS.Translation.common_badForm, '_x': v1.x, '_y': v1.y});
};
this.hideTip = function () {
GOS.root.toolTip.removeMovieClip();
};
this.onN = function (r) {
GOS.StateVars.Window.state = {'class': 'Alert', 'type': 'info', 'title': GOS.Translation.common_okTitle, 'text': GOS.Translation[r.msg]};
this.close();
};
}
instance submitButton of movieClip 1028 FORM_Button {
onClipEvent (initialize) {
name = 'passwordResetForm_resetBut';
_enabled = true;
}
}
instance nick of movieClip 1033 FORM_TextField {
onClipEvent (initialize) {
title = 'common_nick';
type = 'nick';
}
}
instance mail of movieClip 1033 FORM_TextField {
onClipEvent (initialize) {
title = 'passwordResetForm_email';
type = 'mail';
}
}
}
movieClip 1626 APP_LogoutForm {
frame 1 {
this.onCreate = function () {
var v1 = this;
v1._modal = true;
v1._unique = true;
v1.useServer();
v1.stop();
};
this.onYesButton = function () {
this.command('O');
};
this.onO = function (r) {
GOS.StateVars.Window.state = {'class': 'Alert', 'type': 'info', 'title': GOS.Translation.common_okTitle, 'text': GOS.Translation[r.msg]};
GOS.StateVars.LoggedIn.state = false;
this.close();
};
this.onNoButton = function () {
this.close();
};
}
instance yesButton of movieClip 1028 FORM_Button {
onClipEvent (initialize) {
name = 'common_yes';
_enabled = true;
}
}
instance noButton of movieClip 1028 FORM_Button {
onClipEvent (initialize) {
name = 'common_no';
_enabled = true;
}
}
}
movieClip 1629 {
}
movieClip 1631 {
}
movieClip 1632 FORM_CheckBox {
#initclip
FORM_CheckBoxClass = function () {
this.snap();
this.fn = 'on' + (this._name.substr(0, 1)).toUpperCase() + this._name.substr(1);
this._yscale = 100;
this._xscale = 100;
this.title.autoSize = true;
this.title.text = eval('_global.GOS.Translation.' + this.name);
this.msk._width = 0;
this.msk._width = this._width + 5;
this.isOver = false;
this.c = new Color(this.title);
this.c1 = new Color(this.pt);
this._se(this._enabled);
this._sc(this._checked);
this.addProperty('_enabled', this._ge, this._se);
this.addProperty('_checked', this._gc, this._sc);
};
FORM_CheckBoxClass.prototype = new MovieClip();
FORM_CheckBoxClass.prototype.onPress = function () {
var v1 = this;
if (v1._enabled) {
v1._checked = !v1._checked;
v1._parent[v1.fn].call(v1._parent);
}
};
FORM_CheckBoxClass.prototype.onRollOver = function () {
var v1 = this;
if (v1._enabled) {
v1.c.setRGB(12983837);
v1.c1.setRGB(12983837);
} else {
v1.c.setRGB(8947848);
v1.c1.setRGB(8947848);
}
v1.isOver = true;
};
FORM_CheckBoxClass.prototype.onRollOut = function () {
var v1 = this;
if (v1._enabled) {
v1.c.setRGB(6710886);
v1.c1.setRGB(6710886);
} else {
v1.c.setRGB(8947848);
v1.c1.setRGB(8947848);
}
v1.isOver = false;
};
FORM_CheckBoxClass.prototype.onDragOut = function () {
var v1 = this;
if (v1._enabled) {
v1.c.setRGB(6710886);
v1.c1.setRGB(6710886);
} else {
v1.c.setRGB(8947848);
v1.c1.setRGB(8947848);
}
v1.isOver = false;
};
FORM_CheckBoxClass.prototype._se = function (e) {
var v1 = this;
v1.__enabled = e;
if (e) {
if (v1.isOver) {
v1.c.setRGB(12983837);
v1.c1.setRGB(12983837);
} else {
v1.c.setRGB(6710886);
v1.c1.setRGB(6710886);
}
} else {
v1.c.setRGB(8947848);
v1.c1.setRGB(8947848);
}
};
FORM_CheckBoxClass.prototype._ge = function () {
return this.__enabled;
};
FORM_CheckBoxClass.prototype._sc = function (c) {
this.pt._visible = c;
};
FORM_CheckBoxClass.prototype._gc = function () {
return this.pt._visible;
};
Object.registerClass('FORM_CheckBox', FORM_CheckBoxClass);
#endinitclip
frame 1 {
}
}
movieClip 1633 APP_LoginForm {
frame 1 {
this.onCreate = function () {
var v1 = this;
v1._modal = true;
v1._unique = true;
if (v1.mynick != undefined) {
v1.nick.val.text = v1.mynick;
}
v1.useServer();
if (GOS.cookie == undefined) {
v1.rm._enabled = false;
} else {
if (GOS.cookie.data.user.rm == true) {
v1.rm._checked = true;
v1.nick.val.text = GOS.cookie.data.user.nick;
v1.pass.val.text = GOS.cookie.data.user.pass;
v1.nick.verify();
v1.pass.verify();
}
}
v1.stop();
};
this.verify = function () {
var v1 = this;
v1.loginButton._enabled = v1.nick.valid && v1.pass.valid;
};
this.onLoginButton = function () {
var v1 = this;
var v2 = {'nick': v1.nick.val.text, 'pass': calcMD5(v1.pass.val.text)};
if (v1.rm._checked) {
GOS.cookie.data.user = {'rm': true, 'nick': v1.nick.val.text, 'pass': v1.pass.val.text, 'md5': calcMD5(v1.pass.val.text)};
GOS.cookie.flush;
} else {
GOS.cookie.data.user = undefined;
GOS.cookie.flush;
}
v1.command('L', v2);
};
this.showTip = function () {
var v2 = this;
var v1 = {'x': v2.loginButton._x, 'y': v2.loginButton._y + 10};
v2.localToGlobal(v1);
GOS.root.globalToLocal(v1);
GOS.root.attachMovie('GOS_ToolTip', 'toolTip', 5000, {'tipText': GOS.Translation.common_badForm, '_x': v1.x, '_y': v1.y});
};
this.hideTip = function () {
GOS.root.toolTip.removeMovieClip();
};
this.onL = function (r) {
GOS.StateVars.Window.state = {'class': 'Alert', 'type': 'info', 'title': GOS.Translation.common_okTitle, 'text': GOS.Translation[r.msg]};
GOS.StateVars.LoggedIn.state = true;
this.close();
};
this.onRegisterButton = function () {
GOS.StateVars.Window.state = {'class': 'RegisterForm', 'title': GOS.Translation.Register_windowTitle};
};
}
instance nick of movieClip 1033 FORM_TextField {
onClipEvent (initialize) {
title = 'common_nick';
type = 'nick';
}
}
instance pass of movieClip 1033 FORM_TextField {
onClipEvent (initialize) {
title = 'common_pass';
type = 'pass';
}
}
instance rm of movieClip 1632 FORM_CheckBox {
onClipEvent (initialize) {
name = 'loginForm_rememberMe';
_enabled = true;
_checked = false;
}
}
instance loginButton of movieClip 1028 FORM_Button {
onClipEvent (initialize) {
name = 'loginForm_loginBut';
_enabled = false;
}
}
instance registerButton of movieClip 1028 FORM_Button {
onClipEvent (initialize) {
name = 'loginForm_registerBut';
_enabled = true;
}
}
}
movieClip 1638 {
}
movieClip 1639 {
frame 1 {
var p = this._parent._width / this._parent._height;
if (p > 1) {
this._xscale = 100 / p;
} else {
this._yscale = 100 * p;
}
}
}
movieClip 1640 KeyClass_Cursor {
}
movieClip 1642 {
}
movieClip 1643 k1 {
#initclip
k1 = function () {
super();
};
k1.prototype = new KeyClassClass();
Object.registerClass('k1', k1);
#endinitclip
frame 1 {
}
}
movieClip 1647 {
}
movieClip 1648 {
}
movieClip 1649 k2 {
#initclip
k2 = function () {
super();
};
k2.prototype = new KeyClassClass();
Object.registerClass('k2', k2);
#endinitclip
frame 1 {
}
}
movieClip 1651 APP_KeyboardProfiler {
frame 1 {
this._let = [];
this._let[39] = 'rt';
this._let[40] = 'dw';
this._let[37] = 'lf';
this._let[38] = 'up';
this._let[13] = 'Enter';
this._let[18] = 'Alt';
this._let[13] = 'Enter';
this._let[50] = '2';
this._let[191] = '/';
this._let[190] = '.';
this._let[188] = ',';
this._let[77] = 'M';
this._let[78] = 'N';
this._let[66] = 'B';
this._let[86] = 'V';
this._let[67] = 'C';
this._let[88] = 'X';
this._let[90] = 'Z';
this._let[16] = 'Shift';
this._let[222] = '\'';
this._let[186] = ';';
this._let[76] = 'L';
this._let[75] = 'K';
this._let[74] = 'J';
this._let[72] = 'H';
this._let[71] = 'G';
this._let[70] = 'F';
this._let[68] = 'D';
this._let[83] = 'S';
this._let[65] = 'A';
this._let[87] = 'W';
this._let[110] = ',';
this._let[96] = '0';
this._let[99] = '3';
this._let[98] = '2';
this._let[97] = '1';
this._let[102] = '6';
this._let[101] = '5';
this._let[100] = '4';
this._let[107] = '+';
this._let[105] = '9';
this._let[104] = '8';
this._let[103] = '7';
this._let[109] = '-';
this._let[106] = '*';
this._let[111] = '/';
this._let[144] = 'NumLock';
this._let[34] = 'PgDown';
this._let[35] = 'End';
this._let[46] = 'Delete';
this._let[33] = 'PgUp';
this._let[36] = 'Home';
this._let[45] = 'Insert';
this._let[19] = 'Pause';
this._let[145] = 'ScrollLock';
this._let[17] = 'Ctrl';
this._let[17] = 'Ctrl';
this._let[32] = 'Space';
this._let[16] = 'Shift';
this._let[20] = 'CapsLock';
this._let[221] = ']';
this._let[219] = '[';
this._let[80] = 'P';
this._let[79] = 'O';
this._let[73] = 'I';
this._let[85] = 'U';
this._let[89] = 'Y';
this._let[84] = 'T';
this._let[82] = 'R';
this._let[69] = 'E';
this._let[81] = 'Q';
this._let[9] = 'Tab';
this._let[8] = 'BSpace';
this._let[220] = '\\';
this._let[187] = '=';
this._let[189] = '-';
this._let[48] = '0';
this._let[57] = '9';
this._let[56] = '8';
this._let[55] = '7';
this._let[54] = '6';
this._let[53] = '5';
this._let[52] = '4';
this._let[51] = '3';
this._let[49] = '1';
this._let[192] = '~';
this._let[123] = 'F12';
this._let[122] = 'F11';
this._let[121] = 'F10';
this._let[120] = 'F9';
this._let[119] = 'F8';
this._let[118] = 'F7';
this._let[117] = 'F6';
this._let[116] = 'F5';
this._let[115] = 'F4';
this._let[114] = 'F3';
this._let[113] = 'F2';
this._let[112] = 'F1';
this._let[27] = 'Escape';
this.onCreate = function () {
var v1 = this;
v1.descr.snap();
v1._modal = true;
v1._unique = true;
v1._clientHeight = 145;
};
this.exchange = function (_from, _to) {
var v1 = this;
var v2 = _from._code;
var v3 = _to._code;
if (_from == _to) {
} else {
for (i in v1.keys) {
if (v1.keys[i]._code == v2) {
v1.keys[i]._code = v3;
v1.keys[i].blink1();
} else {
if (v1.keys[i]._code == v3) {
v1.keys[i]._code = v2;
v1.keys[i].blink2();
}
}
}
var t_fc = (Key._code[v3] == undefined) ? v3 : Key._code[v3];
var t_tc = (Key._code[v2] == undefined) ? v2 : Key._code[v2];
Key._code[v3] = t_tc;
Key._code[v2] = t_fc;
}
};
this.getTarget = function () {
var v1 = this;
var v2 = _root;
for (i in v1.keys) {
if (v1.keys[i].hitTest(v2._xmouse, v2._ymouse, true)) {
return v1.keys[i];
}
}
return null;
};
}
instance of movieClip 1643 k1 {
onClipEvent (load) {
this.let.text = 'Esc';
this._code = 27;
}
}
instance of movieClip 1643 k1 {
onClipEvent (load) {
this.let.text = 'F1';
this._code = 112;
}
}
instance of movieClip 1643 k1 {
onClipEvent (load) {
this.let.text = 'F2';
this._code = 113;
}
}
instance of movieClip 1643 k1 {
onClipEvent (load) {
this.let.text = 'F3';
this._code = 114;
}
}
instance of movieClip 1643 k1 {
onClipEvent (load) {
this.let.text = 'F4';
this._code = 115;
}
}
instance of movieClip 1643 k1 {
onClipEvent (load) {
this.let.text = 'F5';
this._code = 116;
}
}
instance of movieClip 1643 k1 {
onClipEvent (load) {
this.let.text = 'F6';
this._code = 117;
}
}
instance of movieClip 1643 k1 {
onClipEvent (load) {
this.let.text = 'F7';
this._code = 118;
}
}
instance of movieClip 1643 k1 {
onClipEvent (load) {
this.let.text = 'F8';
this._code = 119;
}
}
instance of movieClip 1643 k1 {
onClipEvent (load) {
this.let.text = 'F9';
this._code = 120;
}
}
instance of movieClip 1643 k1 {
onClipEvent (load) {
this.let.text = 'F10';
this._code = 121;
}
}
instance of movieClip 1643 k1 {
onClipEvent (load) {
this.let.text = 'F11';
this._code = 122;
}
}
instance of movieClip 1643 k1 {
onClipEvent (load) {
this.let.text = 'F12';
this._code = 123;
}
}
instance of movieClip 1643 k1 {
onClipEvent (load) {
this.let.text = '~';
this._code = 192;
}
}
instance of movieClip 1643 k1 {
onClipEvent (load) {
this.let.text = '1';
this._code = 49;
}
}
instance of movieClip 1643 k1 {
onClipEvent (load) {
this.let.text = '3';
this._code = 51;
}
}
instance of movieClip 1643 k1 {
onClipEvent (load) {
this.let.text = '4';
this._code = 52;
}
}
instance of movieClip 1643 k1 {
onClipEvent (load) {
this.let.text = '5';
this._code = 53;
}
}
instance of movieClip 1643 k1 {
onClipEvent (load) {
this.let.text = '6';
this._code = 54;
}
}
instance of movieClip 1643 k1 {
onClipEvent (load) {
this.let.text = '7';
this._code = 55;
}
}
instance of movieClip 1643 k1 {
onClipEvent (load) {
this.let.text = '8';
this._code = 56;
}
}
instance of movieClip 1643 k1 {
onClipEvent (load) {
this.let.text = '9';
this._code = 57;
}
}
instance of movieClip 1643 k1 {
onClipEvent (load) {
this.let.text = '0';
this._code = 48;
}
}
instance of movieClip 1643 k1 {
onClipEvent (load) {
this.let.text = '-';
this._code = 189;
}
}
instance of movieClip 1643 k1 {
onClipEvent (load) {
this.let.text = '=';
this._code = 187;
}
}
instance of movieClip 1643 k1 {
onClipEvent (load) {
this.let.text = '\\';
this._code = 220;
}
}
instance of movieClip 1643 k1 {
onClipEvent (load) {
this.let.text = 'Bsp';
this._code = 8;
}
}
instance of movieClip 1643 k1 {
onClipEvent (load) {
this.let.text = 'Tab';
this._code = 9;
}
}
instance of movieClip 1643 k1 {
onClipEvent (load) {
this.let.text = 'Q';
this._code = 81;
}
}
instance of movieClip 1643 k1 {
onClipEvent (load) {
this.let.text = 'E';
this._code = 69;
}
}
instance of movieClip 1643 k1 {
onClipEvent (load) {
this.let.text = 'R';
this._code = 82;
}
}
instance of movieClip 1643 k1 {
onClipEvent (load) {
this.let.text = 'T';
this._code = 84;
}
}
instance of movieClip 1643 k1 {
onClipEvent (load) {
this.let.text = 'Y';
this._code = 89;
}
}
instance of movieClip 1643 k1 {
onClipEvent (load) {
this.let.text = 'U';
this._code = 85;
}
}
instance of movieClip 1643 k1 {
onClipEvent (load) {
this.let.text = 'I';
this._code = 73;
}
}
instance of movieClip 1643 k1 {
onClipEvent (load) {
this.let.text = 'O';
this._code = 79;
}
}
instance of movieClip 1643 k1 {
onClipEvent (load) {
this.let.text = 'P';
this._code = 80;
}
}
instance of movieClip 1643 k1 {
onClipEvent (load) {
this.let.text = '[';
this._code = 219;
}
}
instance of movieClip 1643 k1 {
onClipEvent (load) {
this.let.text = ']';
this._code = 221;
}
}
instance of movieClip 1643 k1 {
onClipEvent (load) {
this.let.text = 'Caps';
this._code = 20;
}
}
instance of movieClip 1643 k1 {
onClipEvent (load) {
this.let.text = 'Shift';
this._code = 16;
}
}
instance of movieClip 1643 k1 {
onClipEvent (load) {
this.let.text = 'Space';
this._code = 32;
}
}
instance of movieClip 1643 k1 {
onClipEvent (load) {
this.let.text = 'Ctrl';
this._code = 17;
}
}
instance of movieClip 1643 k1 {
onClipEvent (load) {
this.let.text = 'Ctrl';
this._code = 17;
}
}
instance of movieClip 1643 k1 {
onClipEvent (load) {
this.let.text = 'Slc';
this._code = 145;
}
}
instance of movieClip 1643 k1 {
onClipEvent (load) {
this.let.text = 'Brk';
this._code = 19;
}
}
instance of movieClip 1643 k1 {
onClipEvent (load) {
this.let.text = 'Ins';
this._code = 45;
}
}
instance of movieClip 1643 k1 {
onClipEvent (load) {
this.let.text = 'Hm';
this._code = 36;
}
}
instance of movieClip 1643 k1 {
onClipEvent (load) {
this.let.text = 'Pup';
this._code = 33;
}
}
instance of movieClip 1643 k1 {
onClipEvent (load) {
this.let.text = 'Del';
this._code = 46;
}
}
instance of movieClip 1643 k1 {
onClipEvent (load) {
this.let.text = 'End';
this._code = 35;
}
}
instance of movieClip 1643 k1 {
onClipEvent (load) {
this.let.text = 'Pd';
this._code = 34;
}
}
instance of movieClip 1643 k1 {
onClipEvent (load) {
this.let.text = 'Nm';
this._code = 144;
}
}
instance of movieClip 1643 k1 {
onClipEvent (load) {
this.let.text = '/';
this._code = 111;
}
}
instance of movieClip 1643 k1 {
onClipEvent (load) {
this.let.text = '*';
this._code = 106;
}
}
instance of movieClip 1643 k1 {
onClipEvent (load) {
this.let.text = '-';
this._code = 109;
}
}
instance of movieClip 1643 k1 {
onClipEvent (load) {
this.let.text = '7';
this._code = 103;
}
}
instance of movieClip 1643 k1 {
onClipEvent (load) {
this.let.text = '8';
this._code = 104;
}
}
instance of movieClip 1643 k1 {
onClipEvent (load) {
this.let.text = '9';
this._code = 105;
}
}
instance of movieClip 1643 k1 {
onClipEvent (load) {
this.let.text = '+';
this._code = 107;
}
}
instance of movieClip 1643 k1 {
onClipEvent (load) {
this.let.text = '4';
this._code = 100;
}
}
instance of movieClip 1643 k1 {
onClipEvent (load) {
this.let.text = '5';
this._code = 101;
}
}
instance of movieClip 1643 k1 {
onClipEvent (load) {
this.let.text = '6';
this._code = 102;
}
}
instance of movieClip 1643 k1 {
onClipEvent (load) {
this.let.text = '1';
this._code = 97;
}
}
instance of movieClip 1643 k1 {
onClipEvent (load) {
this.let.text = '2';
this._code = 98;
}
}
instance of movieClip 1643 k1 {
onClipEvent (load) {
this.let.text = '3';
this._code = 99;
}
}
instance of movieClip 1643 k1 {
onClipEvent (load) {
this.let.text = '0';
this._code = 96;
}
}
instance of movieClip 1643 k1 {
onClipEvent (load) {
this.let.text = ',';
this._code = 110;
}
}
instance of movieClip 1643 k1 {
onClipEvent (load) {
this.let.text = 'W';
this._code = 87;
}
}
instance of movieClip 1643 k1 {
onClipEvent (load) {
this.let.text = 'A';
this._code = 65;
}
}
instance of movieClip 1643 k1 {
onClipEvent (load) {
this.let.text = 'S';
this._code = 83;
}
}
instance of movieClip 1643 k1 {
onClipEvent (load) {
this.let.text = 'D';
this._code = 68;
}
}
instance of movieClip 1643 k1 {
onClipEvent (load) {
this.let.text = 'F';
this._code = 70;
}
}
instance of movieClip 1643 k1 {
onClipEvent (load) {
this.let.text = 'G';
this._code = 71;
}
}
instance of movieClip 1643 k1 {
onClipEvent (load) {
this.let.text = 'H';
this._code = 72;
}
}
instance of movieClip 1643 k1 {
onClipEvent (load) {
this.let.text = 'J';
this._code = 74;
}
}
instance of movieClip 1643 k1 {
onClipEvent (load) {
this.let.text = 'K';
this._code = 75;
}
}
instance of movieClip 1643 k1 {
onClipEvent (load) {
this.let.text = 'L';
this._code = 76;
}
}
instance of movieClip 1643 k1 {
onClipEvent (load) {
this.let.text = ';';
this._code = 186;
}
}
instance of movieClip 1643 k1 {
onClipEvent (load) {
this.let.text = '\'';
this._code = 222;
}
}
instance of movieClip 1643 k1 {
onClipEvent (load) {
this.let.text = 'Shift';
this._code = 16;
}
}
instance of movieClip 1643 k1 {
onClipEvent (load) {
this.let.text = 'Z';
this._code = 90;
}
}
instance of movieClip 1643 k1 {
onClipEvent (load) {
this.let.text = 'X';
this._code = 88;
}
}
instance of movieClip 1643 k1 {
onClipEvent (load) {
this.let.text = 'C';
this._code = 67;
}
}
instance of movieClip 1643 k1 {
onClipEvent (load) {
this.let.text = 'V';
this._code = 86;
}
}
instance of movieClip 1643 k1 {
onClipEvent (load) {
this.let.text = 'B';
this._code = 66;
}
}
instance of movieClip 1643 k1 {
onClipEvent (load) {
this.let.text = 'N';
this._code = 78;
}
}
instance of movieClip 1643 k1 {
onClipEvent (load) {
this.let.text = 'M';
this._code = 77;
}
}
instance of movieClip 1643 k1 {
onClipEvent (load) {
this.let.text = ',';
this._code = 188;
}
}
instance of movieClip 1643 k1 {
onClipEvent (load) {
this.let.text = '.';
this._code = 190;
}
}
instance of movieClip 1643 k1 {
onClipEvent (load) {
this.let.text = '/';
this._code = 191;
}
}
instance of movieClip 1643 k1 {
onClipEvent (load) {
this.let.text = '2';
this._code = 50;
}
}
instance of movieClip 1649 k2 {
onClipEvent (load) {
this.let.text = 'Enter';
this._code = 13;
}
}
instance of movieClip 1643 k1 {
onClipEvent (load) {
this.let.text = 'Alt';
this._code = 18;
}
}
instance of movieClip 1643 k1 {
onClipEvent (load) {
this.let.text = 'Enter';
this._code = 13;
}
}
instance of movieClip 1643 k1 {
onClipEvent (load) {
this._code = 38;
}
}
instance of movieClip 1643 k1 {
onClipEvent (load) {
this._code = 37;
}
}
instance of movieClip 1643 k1 {
onClipEvent (load) {
this._code = 40;
}
}
instance of movieClip 1643 k1 {
onClipEvent (load) {
this._code = 39;
}
}
}
movieClip 1665 APP_HighscoreTable {
frame 1 {
this.onCreate = function () {
var v1 = this;
v1.scr.text = GOS.StateVars.score.state.score;
if (v1.save == undefined) {
v1.save = false;
}
if (!GOS.StateVars.LoggedIn.state) {
GOS.StateVars.Window.state = {'class': 'LoginForm', 'title': GOS.Translation.label_LogIn};
v1.submitButton._enabled = false;
} else {
v1.submitButton._enabled = v1.save;
}
v1.countries._visible = false;
v1.records = [];
v1.pointer = 0;
v1._country = '';
v1.period = 0;
v1._modal = true;
v1._fixed = true;
v1._clientWidth = 280;
v1._clientHeight = 265;
v1.useServer('gos');
v1.getHS();
};
this.setState = function (login) {
var v1 = this;
v1.submitButton._enabled = login && v1.save;
v1.getHS();
};
this.onNextButton = function () {
var v1 = this;
v1.pointer += 10;
v1.refreshButton._enabled = true;
v1.prevButton._enabled = true;
v1.getHS();
};
this.onPrevButton = function () {
var v1 = this;
v1.pointer -= 10;
if (v1.pointer <= 0) {
v1.pointer = 0;
v1.prevButton._enabled = false;
}
v1.refreshButton._enabled = true;
v1.getHS();
};
this.getHS = function () {
var v1 = this;
v1.refreshButton._enabled = false;
var v2 = GOS.StateVars.Score.state;
var v3 = {'topup': v2.topup, 'score': v2.score, 'period': v1.period, 'country': v1._country, 'count': v1.pointer, 'save': false};
v1.command('H', v3);
};
this.setHS = function () {
var v1 = this;
v1.refreshButton._enabled = false;
var v2 = GOS.StateVars.Score.state;
var v3 = {'topup': v2.topup, 'score': v2.score, 'period': v1.period, 'country': v1._country, 'count': v1.pointer, 'save': GOS.StateVars.LoggedIn.state};
v1.command('H', v3);
};
this.onPeriod = function (ob) {
this.refreshButton._enabled = true;
this.period = ob.index;
};
this.onLocation = function (ob) {
var v1 = this;
v1.refreshButton._enabled = true;
switch (ob.index) {
case 0:
v1._country = '';
v1.getHS();
break;
case 1:
v1.countries._visible = true;
break;
}
};
this.onCountry = function (i) {
var v1 = this;
v1._country = i;
v1.countries._visible = false;
v1.countries.gotoAndStop(1);
v1.getHS();
};
this.onRefreshButton = function () {
this.getHS();
};
this.onSubmitButton = function () {
this.setHS();
};
this.onH = function (r) {
var v2 = this;
while (v2.records.length > 0) {
(v2.records.pop()).removeMovieClip();
}
var v3 = 0;
for (j in r.table) {
var v1 = r.table[j];
v1.place = Math.floor(v1.place) + v2.pointer;
v1._x = 95;
v1._y = v3 * 14 + 5;
v2.attachMovie('user_hs_record', 'r' + v3, v3 + 10, v1);
v2.records.push(v2['r' + v3]);
++v3;
}
v2.pos.text = Math.floor(r.place) + 1;
v2.prev.text = Math.floor(r.score);
};
this.frame = [];
this.frame[9] = 'AO';
this.frame[20] = 'BF';
this.frame[23] = 'BI';
this.frame[24] = 'BJ';
this.frame[31] = 'BW';
this.frame[36] = 'CD';
this.frame[37] = 'CF';
this.frame[38] = 'CG';
this.frame[40] = 'CI';
this.frame[43] = 'CM';
this.frame[48] = 'CV';
this.frame[53] = 'DJ';
this.frame[57] = 'DZ';
this.frame[60] = 'EG';
this.frame[61] = 'EH';
this.frame[62] = 'ER';
this.frame[64] = 'ET';
this.frame[71] = 'GA';
this.frame[75] = 'GH';
this.frame[78] = 'GM';
this.frame[79] = 'GN';
this.frame[81] = 'GQ';
this.frame[86] = 'GW';
this.frame[105] = 'KE';
this.frame[109] = 'KM';
this.frame[121] = 'LR';
this.frame[122] = 'LS';
this.frame[126] = 'LY';
this.frame[127] = 'MA';
this.frame[130] = 'MG';
this.frame[133] = 'ML';
this.frame[139] = 'MR';
this.frame[142] = 'MU';
this.frame[144] = 'MW';
this.frame[147] = 'MZ';
this.frame[148] = 'NA';
this.frame[150] = 'NE';
this.frame[152] = 'NG';
this.frame[178] = 'RW';
this.frame[181] = 'SC';
this.frame[182] = 'SD';
this.frame[185] = 'SH';
this.frame[188] = 'SL';
this.frame[190] = 'SN';
this.frame[191] = 'SO';
this.frame[193] = 'ST';
this.frame[197] = 'SZ';
this.frame[199] = 'TD';
this.frame[201] = 'TG';
this.frame[207] = 'TN';
this.frame[213] = 'TZ';
this.frame[215] = 'UG';
this.frame[231] = 'ZA';
this.frame[232] = 'ZM';
this.frame[233] = 'ZW';
this.frame[2] = 'AE';
this.frame[3] = 'AF';
this.frame[7] = 'AM';
this.frame[15] = 'AZ';
this.frame[18] = 'BD';
this.frame[22] = 'BH';
this.frame[26] = 'BN';
this.frame[30] = 'BT';
this.frame[35] = 'CC';
this.frame[44] = 'CN';
this.frame[49] = 'CX';
this.frame[50] = 'CY';
this.frame[74] = 'GE';
this.frame[88] = 'HK';
this.frame[93] = 'ID';
this.frame[95] = 'IL';
this.frame[96] = 'IN';
this.frame[97] = 'IO';
this.frame[98] = 'IQ';
this.frame[99] = 'IR';
this.frame[103] = 'JO';
this.frame[104] = 'JP';
this.frame[106] = 'KG';
this.frame[107] = 'KH';
this.frame[111] = 'KP';
this.frame[112] = 'KR';
this.frame[113] = 'KW';
this.frame[115] = 'KZ';
this.frame[116] = 'LA';
this.frame[117] = 'LB';
this.frame[120] = 'LK';
this.frame[134] = 'MM';
this.frame[135] = 'MN';
this.frame[136] = 'MO';
this.frame[143] = 'MV';
this.frame[146] = 'MY';
this.frame[156] = 'NP';
this.frame[160] = 'OM';
this.frame[165] = 'PH';
this.frame[166] = 'PK';
this.frame[171] = 'PS';
this.frame[175] = 'QA';
this.frame[179] = 'SA';
this.frame[184] = 'SG';
this.frame[196] = 'SY';
this.frame[202] = 'TH';
this.frame[203] = 'TJ';
this.frame[205] = 'TL';
this.frame[206] = 'TM';
this.frame[209] = 'TR';
this.frame[212] = 'TW';
this.frame[219] = 'UZ';
this.frame[225] = 'VN';
this.frame[229] = 'YE';
this.frame[1] = 'AD';
this.frame[6] = 'AL';
this.frame[12] = 'AT';
this.frame[16] = 'BA';
this.frame[19] = 'BE';
this.frame[21] = 'BG';
this.frame[32] = 'BY';
this.frame[39] = 'CH';
this.frame[51] = 'CZ';
this.frame[52] = 'DE';
this.frame[54] = 'DK';
this.frame[59] = 'EE';
this.frame[63] = 'ES';
this.frame[65] = 'FI';
this.frame[69] = 'FO';
this.frame[70] = 'FR';
this.frame[72] = 'GB';
this.frame[76] = 'GI';
this.frame[82] = 'GR';
this.frame[90] = 'HR';
this.frame[92] = 'HU';
this.frame[94] = 'IE';
this.frame[100] = 'IS';
this.frame[101] = 'IT';
this.frame[119] = 'LI';
this.frame[123] = 'LT';
this.frame[124] = 'LU';
this.frame[125] = 'LV';
this.frame[128] = 'MC';
this.frame[129] = 'MD';
this.frame[132] = 'MK';
this.frame[141] = 'MT';
this.frame[154] = 'NL';
this.frame[155] = 'NO';
this.frame[167] = 'PL';
this.frame[172] = 'PT';
this.frame[176] = 'RO';
this.frame[177] = 'RU';
this.frame[183] = 'SE';
this.frame[186] = 'SI';
this.frame[187] = 'SK';
this.frame[189] = 'SM';
this.frame[194] = 'SU';
this.frame[214] = 'UA';
this.frame[220] = 'VA';
this.frame[230] = 'YU';
this.frame[4] = 'AG';
this.frame[5] = 'AI';
this.frame[8] = 'AN';
this.frame[14] = 'AW';
this.frame[17] = 'BB';
this.frame[25] = 'BM';
this.frame[29] = 'BS';
this.frame[33] = 'BZ';
this.frame[34] = 'CA';
this.frame[46] = 'CR';
this.frame[47] = 'CU';
this.frame[55] = 'DM';
this.frame[56] = 'DO';
this.frame[73] = 'GD';
this.frame[77] = 'GL';
this.frame[80] = 'GP';
this.frame[84] = 'GT';
this.frame[89] = 'HN';
this.frame[91] = 'HT';
this.frame[102] = 'JM';
this.frame[110] = 'KN';
this.frame[114] = 'KY';
this.frame[118] = 'LC';
this.frame[138] = 'MQ';
this.frame[140] = 'MS';
this.frame[145] = 'MX';
this.frame[153] = 'NI';
this.frame[161] = 'PA';
this.frame[168] = 'PM';
this.frame[170] = 'PR';
this.frame[195] = 'SV';
this.frame[198] = 'TC';
this.frame[210] = 'TT';
this.frame[217] = 'US';
this.frame[221] = 'VC';
this.frame[223] = 'VG';
this.frame[224] = 'VI';
this.frame[10] = 'AR';
this.frame[27] = 'BO';
this.frame[28] = 'BR';
this.frame[42] = 'CL';
this.frame[45] = 'CO';
this.frame[58] = 'EC';
this.frame[67] = 'FK';
this.frame[87] = 'GY';
this.frame[162] = 'PE';
this.frame[174] = 'PY';
this.frame[192] = 'SR';
this.frame[218] = 'UY';
this.frame[222] = 'VE';
this.frame[11] = 'AS';
this.frame[13] = 'AU';
this.frame[41] = 'CK';
this.frame[66] = 'FJ';
this.frame[68] = 'FM';
this.frame[85] = 'GU';
this.frame[108] = 'KI';
this.frame[131] = 'MH';
this.frame[137] = 'MP';
this.frame[149] = 'NC';
this.frame[151] = 'NF';
this.frame[157] = 'NR';
this.frame[158] = 'NU';
this.frame[159] = 'NZ';
this.frame[163] = 'PF';
this.frame[164] = 'PG';
this.frame[169] = 'PN';
this.frame[173] = 'PW';
this.frame[180] = 'SB';
this.frame[204] = 'TK';
this.frame[208] = 'TO';
this.frame[211] = 'TV';
this.frame[216] = 'UM';
this.frame[226] = 'VU';
this.frame[227] = 'WF';
this.frame[228] = 'WS';
this.frame[83] = 'GS';
this.frame[200] = 'TF';
}
instance of movieClip 1042 FORM_Radio {
onClipEvent (initialize) {
name = 'highScores_lastMonth';
_enabled = true;
_checked = false;
_group = 'period';
_index = 1;
}
}
instance of movieClip 1042 FORM_Radio {
onClipEvent (initialize) {
name = 'highScores_lastWeek';
_enabled = true;
_checked = false;
_group = 'period';
_index = 2;
}
}
instance of movieClip 1042 FORM_Radio {
onClipEvent (initialize) {
name = 'highScores_today';
_enabled = true;
_checked = false;
_group = 'period';
_index = 3;
}
}
instance of movieClip 1042 FORM_Radio {
onClipEvent (initialize) {
name = 'highScores_lastHour';
_enabled = true;
_checked = false;
_group = 'period';
_index = 4;
}
}
instance of movieClip 1042 FORM_Radio {
onClipEvent (initialize) {
name = 'highScores_masters';
_enabled = true;
_checked = true;
_group = 'period';
_index = 0;
}
}
instance nextButton of movieClip 1028 FORM_Button {
onClipEvent (initialize) {
name = 'highScores_next';
_enabled = true;
}
}
instance prevButton of movieClip 1028 FORM_Button {
onClipEvent (initialize) {
name = 'highScores_previous';
_enabled = false;
}
}
instance refreshButton of movieClip 1028 FORM_Button {
onClipEvent (initialize) {
name = 'highScores_refresh';
_enabled = true;
}
}
instance submitButton of movieClip 1028 FORM_Button {
onClipEvent (initialize) {
name = 'highScores_submitMe';
_enabled = true;
}
}
instance of movieClip 1042 FORM_Radio {
onClipEvent (initialize) {
name = 'highScores_allCountries';
_enabled = true;
_checked = true;
_group = 'location';
_index = 0;
}
}
instance of movieClip 1042 FORM_Radio {
onClipEvent (initialize) {
name = 'highScores_pickCountry';
_enabled = true;
_checked = false;
_group = 'location';
_index = 1;
}
}
}
movieClip 1670 APP_GameStats {
frame 1 {
this.onCreate = function () {
var v1 = this;
v1._modal = true;
v1._fixed = true;
v1.period = 0;
_root.trafficTip.unloadMovie();
v1.useServer('gos');
v1.getStats();
};
this.getStats = function () {
var v1 = {'period': this.period};
this.command('I', v1);
};
this.onPeriod = function (i) {
this.period = i.index;
this.getStats();
};
this.onI = function (r) {
var v2 = r;
var m = 0;
var l = 0;
for (i in v2) {
v2[i].volume = Number(v2[i].volume);
m = Math.max(m, v2[i].volume);
++l;
var a = (v2[i].label.split('.'))[0];
var b = a.split(' ');
var d = b[0].split('-');
var t = b[1].split(':');
var x = new Date(int(d[0]), int(d[1]) - 1, int(d[2]), int(t[0]), int(t[1]), int(t[2]));
var y = x.getTime();
var ddd = new Date();
tmin = (tmin == undefined) ? y : Math.min(tmin, y);
tmax = (tmax == undefined) ? y : Math.max(tmax, y);
}
var vmax = m;
m = 85 / m;
var w = Math.floor(170 / l);
this.graph.removeMovieClip();
var v1 = this.createEmptyMovieClip('graph', 10);
v1.beginFill(0, 0);
v1.lineStyle(1, 0, 0);
v1.moveTo(0, 0);
v1.lineTo(170, 0);
v1.lineTo(170, 85);
v1.lineTo(0, 85);
v1.lineTo(0, 0);
v1.endFill();
v1._x = 5;
v1._y = 5;
for (i in v2) {
var v3 = int(i);
var x1 = v3 * w;
var x2 = (v3 + 1) * w;
var y1 = 85 - v2[v3].volume * m;
var y2 = 85 - v2[v3 + 1].volume * m;
v1.lineStyle(2, 0, 30);
v1.moveTo(x1 + 1, y1 + 1);
v1.lineTo(x2 + 1, y2 + 1);
v1.lineStyle(2, 221, 100);
v1.moveTo(x1, y1);
v1.lineTo(x2, y2);
}
v1.tmin = tmin;
v1.tmax = tmax;
v1.vmax = vmax;
v1.__proto__ = TrafficBar.prototype;
};
TrafficBar = function () {};
TrafficBar.prototype = new MovieClip();
TrafficBar.prototype.onMouseMove = function () {
var v1 = this;
if (v1.hitTest(_root._xmouse, _root._ymouse)) {
var v3 = {'x': _root._xmouse, 'y': _root._ymouse};
v1.globalToLocal(v3);
var xp = v3.x / 170;
var yp = (85 - v3.y) / 85;
var d = Math.floor(v1.tmin + (v1.tmax - v1.tmin) * xp);
var v = Math.round(v1.vmax * yp);
var v2 = new Date();
v2.setTime(d);
v2._toString = Date.prototype.toString;
v2.toString = v1['P' + v1._parent.period];
v1._parent.label = v2.toString();
v1._parent.volume = v;
} else {
v1._parent.label = _global.GOS.Translation.stats_dragOnTheMesh;
v1._parent.volume = '';
}
};
TrafficBar.prototype.P0 = function () {
var v2 = this.getHours();
var v1 = this.getMinutes();
v2 = v2 < 10 ? '0' + v2 : v2;
v1 = v1 < 10 ? '0' + v1 : v1;
return v2 + ':' + v1;
};
TrafficBar.prototype.P1 = function () {
var v1 = (this._toString()).split(' ');
return v1[0] + ', ' + v1[2] + ' ' + v1[1] + ' ' + v1[5];
};
TrafficBar.prototype.P2 = function () {
var v1 = (this._toString()).split(' ');
return v1[1] + ' ' + v1[5];
};
}
instance of movieClip 1042 FORM_Radio {
onClipEvent (initialize) {
name = 'stats_last24h';
_enabled = true;
_checked = true;
_group = 'period';
_index = 0;
}
}
instance of movieClip 1042 FORM_Radio {
onClipEvent (initialize) {
name = 'stats_lastMonth';
_enabled = true;
_checked = false;
_group = 'period';
_index = 1;
}
}
instance of movieClip 1042 FORM_Radio {
onClipEvent (initialize) {
name = 'stats_lastYear';
_enabled = true;
_checked = false;
_group = 'period';
_index = 2;
}
}
}
button 1673 {
on (press) {
GOS.StateVars.Pause.state = true;
}
}
button 1674 {
on (press) {
GOS.StateVars.Pause.state = false;
}
}
movieClip 1675 APP_GameControl {
frame 1 {
this.onCreate = function () {
var v1 = this;
v1._modal = true;
v1._unique = true;
v1._clientHeight = 40;
GOS.StateVars.Pause.addListener(v1);
v1.setState(GOS.StateVars.Pause.state);
};
this.setState = function (s) {
var v1 = this;
if (s) {
v1.ps._alpha = 60;
v1.pl._alpha = 100;
v1.ps.enabled = false;
v1.pl.enabled = true;
} else {
v1.ps._alpha = 100;
v1.pl._alpha = 60;
v1.ps.enabled = true;
v1.pl.enabled = false;
}
};
}
}
movieClip 1678 APP_FpsMonitor {
frame 1 {
this.onCreate = function () {
var v1 = this;
v1._modal = true;
v1._unique = true;
v1.setup();
v1.frames = 0;
};
this.draw = function (f) {
var v1 = this;
if (v1.tm == undefined) {
v1.currMeter.lineTo(0, 10);
} else {
v1.fps = 'FPS=' + Math.round(f * 100) / 100;
var v2 = 50 - (f / GOS.fps) * 40;
v1.currMeter.lineStyle(2, 128, 100);
v1.currMeter.lineTo(v1.currMeter.x++, v2);
if (v1._move) {
--v1.pastMeter._x;
--v1.currMeter._x;
}
if (v1.currMeter.x > 100) {
v1.pastMeter.clear();
v1.pastMeter._x = 105;
v1.pastMeter.x = 0;
var v3 = v1.currMeter;
v1.currMeter = v1.pastMeter;
v1.pastMeter = v3;
v1._move = true;
v1.currMeter.moveTo(0, v2);
}
}
};
this.onEnterFrame = function () {
var v1 = this;
++v1.frames;
if (getTimer() - v1.tm > 200) {
v1.draw(v1.frames * 1000 / (getTimer() - v1.tm));
v1.frames = 0;
v1.tm = getTimer();
}
};
this.setup = function () {
var v1 = this;
v1.createEmptyMovieClip('meter1', 1);
v1.createEmptyMovieClip('meter2', 2);
v1.meter1._y = 5;
v1.meter1._x = 5;
v1.meter2._y = 5;
v1.meter2._x = 5;
v1.currMeter = v1.meter1;
v1.pastMeter = v1.meter2;
v1.meter1.x = 0;
v1.createEmptyMovieClip('_mask1', 3);
v1._mask1.clear();
v1._mask1.lineStyle(1, 16711680, 100);
v1._mask1.beginFill(0, 10);
v1._mask1.moveTo(0, 0);
v1._mask1.lineTo(100, 0);
v1._mask1.lineTo(100, 50);
v1._mask1.lineTo(0, 50);
v1._mask1.lineTo(0, 0);
v1._mask1.endFill();
v1._mask1._y = 5;
v1._mask1._x = 5;
v1.createEmptyMovieClip('_mask2', 4);
v1._mask2.clear();
v1._mask2.lineStyle(1, 16711680, 100);
v1._mask2.beginFill(0, 10);
v1._mask2.moveTo(0, 0);
v1._mask2.lineTo(100, 0);
v1._mask2.lineTo(100, 50);
v1._mask2.lineTo(0, 50);
v1._mask2.lineTo(0, 0);
v1._mask2.endFill();
v1._mask2._y = 5;
v1._mask2._x = 5;
v1.meter1.setMask(v1._mask1);
v1.meter2.setMask(v1._mask2);
v1._move = false;
};
this.onLowButton = function () {
_quality = 'LOW';
};
this.onMediumButton = function () {
_quality = 'MEDIUM';
};
this.onHighButton = function () {
_quality = 'HIGH';
};
this.onBestButton = function () {
_quality = 'BEST';
};
}
instance LowButton of movieClip 1028 FORM_Button {
onClipEvent (initialize) {
name = 'fpsMonitor_lowBut';
_enabled = true;
}
}
instance MediumButton of movieClip 1028 FORM_Button {
onClipEvent (initialize) {
name = 'fpsMonitor_mediumBut';
_enabled = true;
}
}
instance HighButton of movieClip 1028 FORM_Button {
onClipEvent (initialize) {
name = 'fpsMonitor_highBut';
_enabled = true;
}
}
instance HighButton of movieClip 1028 FORM_Button {
onClipEvent (initialize) {
name = 'fpsMonitor_bestBut';
_enabled = true;
}
}
}
movieClip 1679 APP_ExternalApp {
frame 1 {
this.onCreate = function () {
var v1 = this;
v1._parent.onEnterFrame = function () {
var v1 = this;
var v2 = v1.client.getBytesLoaded();
var v3 = v1.client.getBytesTotal();
if (v2 > 100 && v2 == v3) {
v1.onEnterFrame = v1.oldOEF;
v1.client.__proto__ = GOS_WindowClientAreaClass.prototype;
v1.client._visible = false;
}
};
v1.loadMovie(v1.external);
};
}
}
movieClip 1680 APP_Connecting {
frame 1 {
this.onCreate = function () {
this._modal = true;
this._unique = true;
};
}
}
movieClip 1681 APP_ChangePasswordForm {
frame 1 {
this.onCreate = function () {
var v1 = this;
v1._modal = true;
v1._unique = true;
v1.useServer();
v1.stop();
};
this.showTip = function () {
var v2 = this;
var v1 = {'x': v2.submitButton._x, 'y': v2.submitButton._y + 10};
v2.localToGlobal(v1);
GOS.root.globalToLocal(v1);
GOS.root.attachMovie('GOS_ToolTip', 'toolTip', 5000, {'tipText': GOS.Translation.common_badForm, '_x': v1.x, '_y': v1.y});
};
this.hideTip = function () {
GOS.root.toolTip.removeMovieClip();
};
this.verify = function () {
var v1 = this;
v1.submitButton._enabled = v1.cpass.valid && v1.pass1.valid && v1.pass2.valid && v1.pass1.val.text == v1.pass2.val.text;
};
this.onSubmitButton = function () {
var v2 = this;
var v1 = {'cpass': calcMD5(v2.cpass.val.text), 'npass': calcMD5(v2.pass1.val.text)};
v2.command('C', v1);
};
this.onC = function (r) {
GOS.StateVars.Window.state = {'class': 'Alert', 'type': 'info', 'title': GOS.Translation.common_okTitle, 'text': GOS.Translation[r.msg]};
this.close();
};
}
instance cpass of movieClip 1033 FORM_TextField {
onClipEvent (initialize) {
title = 'changePassword_currentPassword';
type = 'pass';
}
}
instance pass1 of movieClip 1033 FORM_TextField {
onClipEvent (initialize) {
title = 'changePassword_currentPassword';
type = 'pass';
}
}
instance pass2 of movieClip 1033 FORM_TextField {
onClipEvent (initialize) {
title = 'changePassword_newPasswordRetype';
type = 'pass';
}
}
instance submitButton of movieClip 1028 FORM_Button {
onClipEvent (initialize) {
name = 'changePassword_submit';
_enabled = true;
}
}
}
movieClip 1691 {
}
movieClip 1692 APP_Alert {
frame 1 {
this.onCreate = function () {
var v1 = this;
v1.txt.selectable = false;
v1.txt.autoSize = true;
v1.txt.html = true;
v1.txt.multiline = true;
v1.txt.wordWrap = true;
var v2 = v1.text;
var a = v2.split('\\n');
v2 = a.join('<br>');
if (v1.UCase != false) {
v2 = v2.toUpperCase();
}
v1.txt.htmlText = v2;
if (v1.type == undefined) {
v1.type = 'info';
}
v1.icon.gotoAndStop(v1.type);
v1.txt._width = 180;
var v3 = Math.floor(v1.txt._y + v1.txt._height + 10);
v1.okButton._y = v3 < 45 ? 45 : v3;
var w = v1._width - v1.okButton._width / 2 - 20;
v1.okButton._x = w;
v1._modal = true;
};
this.onOkButton = function (m) {
this.close();
};
}
instance okButton of movieClip 1028 FORM_Button {
onClipEvent (initialize) {
name = 'common_ok';
_enabled = true;
}
}
}
movieClip 1693 {
}
movieClip 1697 {
frame 1 {
this.onPress = function () {
if (GOS.offline) {
GOS.StateVars.Window.state = {'class': 'Alert', 'type': 'alert', 'UCase': false, 'title': 'Game offline', 'text': 'For some reason the game is offline and <b>GOS has been blocked</b><br><br>check your firewall or system network settings<br>this may also happen due to poor quality connection'};
} else {
GOS.StateVars.MenuVisible.state = true;
}
};
}
}
movieClip 1703 {
frame 1 {
stop();
GOS.StateVars.LoggedIn.addListener(this);
this.setState = function (login) {
if (login) {
this.gotoAndStop(3);
} else {
this.gotoAndStop(2);
}
};
}
}
button 1706 {
on (press) {
GOS.StateVars.Window.state = {'class': 'EmailFriend', 'title': GOS.Translation.label_emailFriend};
}
}
button 1710 {
on (release) {
getURL('http://adsngames.com/game/download/' + GOS.gid + '/' + GOS.pid, '_blank');
}
}
movieClip 1711 {
frame 1 {
stop();
}
}
movieClip 1712 {
frame 1 {
GOS.StateVars.Pause.addListener(this);
this.setState(GOS.StateVars.Pause.state);
this.setState = function (s) {
var v1 = this;
if (s) {
v1.ps._alpha = 60;
v1.pl._alpha = 100;
v1.ps.enabled = false;
v1.pl.enabled = true;
} else {
v1.ps._alpha = 100;
v1.pl._alpha = 60;
v1.ps.enabled = true;
v1.pl.enabled = false;
}
};
if (GOS.offline) {
this.ed._visible = false;
} else {
if (GOS.Translation.label_emailFriend != undefined && GOS.Translation.label_download != undefined) {
this.ed.gotoAndStop('ed');
} else {
if (GOS.Translation.label_emailFriend != undefined) {
this.ed.gotoAndStop('e');
} else {
this.ed.gotoAndStop('d');
}
}
}
}
}
movieClip 1715 {
}
button 1716 {
on (release) {
GOS.StateVars.Pause.state = true;
getURL('http://adsngames.com', '_blank');
}
}
movieClip 1717 {
frame 1 {
function stateVar(s) {
var v1 = this;
v1.st = s;
v1.addProperty('state', v1.gs, v1.ss);
v1.enabled = true;
v1.addProperty('enable', v1.gen, v1.sen);
AsBroadcaster.initialize(v1);
}
function API() {
if (this.initiated) {
return undefined;
}
ASSetPropFlags(GOS, null, 7, 0);
ASSetPropFlags(GOS, 'API', 0, 6);
GOS.API.loginListener = {'setState': function (s) {
if (s) {
GOS.API.onLogin();
} else {
GOS.API.onLogout();
}
}};
GOS.StateVars.LoggedIn.addListener(GOS.API.loginListener);
this.initiated = true;
ASSetPropFlags(GOS.API, 'loginListener,initiated', 7, 0);
}
MovieClip.prototype._localToGlobal = MovieClip.prototype.localToGlobal;
MovieClip.prototype._globalToLocal = MovieClip.prototype.globalToLocal;
MovieClip.prototype._hitTest = MovieClip.prototype.hitTest;
MovieClip.prototype.localToGlobal = function (p) {
this._localToGlobal(p);
p.y -= 65;
};
MovieClip.prototype.globalToLocal = function (p) {
p.y += 65;
this._globalToLocal(p);
};
MovieClip.prototype.hitTest = function () {
var v1 = arguments;
var v3 = this;
if (v1[0]._x == undefined) {
var x = v1[0];
var y = v1[1] + 65;
var f = v1[2];
if (f == undefined) {
return v3._hitTest(x, y);
} else {
return v3._hitTest(x, y, f);
}
} else {
var v2 = v1[0];
var f = v1[1];
if (f == undefined) {
return v3._hitTest(v2);
} else {
return v3._hitTest(v2, f);
}
}
};
MovieClip.prototype.__startDrag = MovieClip.prototype.startDrag;
MovieClip.prototype._startDrag = function () {
var v1 = arguments;
this.__startDrag(v1[0], v1[1], v1[2], v1[3], v1[4]);
};
MovieClip.prototype.startDrag = function () {
var v1 = arguments;
var v2 = this;
GOS.root.draggedMC = {'mc': v2, 'flag': v1[0], 'x': v2._xmouse, 'y': v2._ymouse, 'l': v1[1], 't': v1[2], 'r': v1[3], 'b': v1[4]};
v2.__startDrag(v1[0], v1[1], v1[2], v1[3], v1[4]);
};
MovieClip.prototype.__stopDrag = MovieClip.prototype.stopDrag;
MovieClip.prototype._stopDrag = function () {
this.__stopDrag();
if (GOS.root.draggedMC != null) {
var v1 = {'x': _root._xmouse - GOS.root.draggedMC.x, 'y': _root._ymouse - GOS.root.draggedMC.y};
GOS.root.draggedMC.mc._parent._globalToLocal(v1);
GOS.root.draggedMC.mc._x = v1.x;
GOS.root.draggedMC.mc._y = v1.y;
GOS.root.draggedMC.mc.startDrag(GOS.root.draggedMC.flag);
}
};
MovieClip.prototype.stopDrag = function () {
GOS.root.draggedMC = null;
this.__stopDrag();
};
stateVar.prototype = new Object();
stateVar.prototype.gs = function () {
return this.st;
};
stateVar.prototype.ss = function (s) {
var v1 = this;
if (!v1.enabled) {
} else {
v1.st = s;
v1.broadcastMessage('setState', s);
}
};
stateVar.prototype.gen = function () {
return this.enabled;
};
stateVar.prototype.sen = function (s) {
this.enabled = s;
};
this.addStateVar = function (mc, e, s, n) {
var v1 = n;
if (v1 == undefined) {
v1 = targetPath(mc);
}
this[v1] = new stateVar(e, s);
this[v1].addListener(mc);
return v1;
};
MovieClip.prototype.GOS_gamePauseController_pause = function () {
var v1 = this;
if (v1 == _level0._game.mainGame) {
GosDebug(v1 + ' paused');
GosDebug('onEnterFrame = ' + v1.onEnterFrame);
}
v1.wasEnabled = v1.enabled;
v1.enabled = false;
v1.isPaused = true;
v1.__onEnterFrame = v1.onEnterFrame;
v1.__onMouseMove = v1.onMouseMove;
v1.onMouseMove = null;
v1.__onMouseDown = v1.onMouseDown;
v1.onMouseDown = null;
v1.__onMouseUp = v1.onMouseUp;
v1.onMouseUp = null;
v1.__onKeyUp = v1.onKeyUp;
v1.onKeyUp = null;
v1.__onKeyDown = v1.onKeyDown;
v1.onKeyDown = null;
v1.__currentframe = v1._currentframe;
if (GOS.root.draggedMC.mc == v1) {
v1.wasDragged = true;
v1.stopDrag();
}
v1.onEnterFrame = function () {
var v1 = this;
v1.onEnterFrame = null;
v1.stop();
v1.wasPlaying = v1.__currentframe != v1._currentframe;
};
};
MovieClip.prototype.GOS_gamePauseController_resume = function () {
var v1 = this;
trace('-----------------');
trace('isPaused>\t\t' + v1.isPaused);
trace('wasPlaying>\t' + v1.wasPlaying);
if (v1.isPaused) {
v1.enabled = v1.wasEnabled;
v1.onEnterFrame = v1.__onEnterFrame;
v1.onMouseMove = v1.__onMouseMove;
v1.onMouseDown = v1.__onMouseDown;
v1.onKeyUp = v1.__onKeyUp;
v1.onKeyDown = v1.__onKeyDown;
if (v1.wasDragged) {
v1.startDrag(GOS.root.draggedMC.flag, GOS.root.draggedMC.l, GOS.root.draggedMC.t, GOS.root.draggedMC.r, GOS.root.draggedMC.b);
}
v1.wasDragged = false;
if (v1.wasPlaying) {
v1.play();
}
v1.isPaused = false;
}
if (v1 == _level0._game.mainGame) {
GosDebug(v1 + ' resumed');
GosDebug('onEnterFrame = ' + v1.onEnterFrame);
}
};
_global.__intervals = [];
_global.__setInterval = setInterval;
_global.__clearInterval = clearInterval;
_global.setInterval = function () {
var v1 = arguments;
if (typeof v1[0] == 'function') {
var v2 = {'fun': v1[0], 'time': v1[1], 'obj': v1[2], 'interval': __setInterval(v1[0], v1[1], v1[2])};
__intervals.push(v2);
} else {
var v2 = {'object': v1[0], 'method': v1[1], 'time': v1[2], 'obj': v1[3], 'interval': __setInterval(v1[0], v1[1], v1[2], v1[3])};
__intervals.push(v2);
}
return __intervals.length - 1;
};
_global.clearInterval = function (i) {
var v1 = i;
if (__intervals[v1] == null) {
} else {
__clearInterval(__intervals[v1].interval);
__intervals[v1] = null;
}
};
_global.pauseInterval = function (i) {
var v1 = i;
if (__intervals[v1] == null) {
} else {
__clearInterval(__intervals[v1].interval);
__intervals[v1].interval = null;
}
};
_global.resumeInterval = function (i) {
var v1 = i;
if (__intervals[v1] == null) {
} else {
if (__intervals[v1].interval == null) {
if (__intervals[v1].fun != undefined) {
__intervals[v1].interval = __setInterval(__intervals[v1].fun, __intervals[v1].time, __intervals[v1].obj);
} else {
__intervals[v1].interval = __setInterval(__intervals[v1].object, __intervals[v1].method, __intervals[v1].time, __intervals[v1].obj);
}
}
}
};
_global.killAllIntervals = function () {
for (var v1 in __intervals) {
clearInterval(v1);
}
};
_global.pauseAllIntervals = function () {
for (var v1 in __intervals) {
pauseInterval(v1);
}
};
_global.resumeAllIntervals = function () {
for (var v1 in __intervals) {
resumeInterval(v1);
}
};
GOS_gamePauseController = function () {
GOS.StateVars.Pause.addListener(this);
AsBroadcaster.initialize(this);
GosDebug('GOS_gamePauseController initialised');
};
GOS_gamePauseController.prototype = new Object();
GOS_gamePauseController.prototype.setState = function (s) {
if (s) {
trace('pause');
this.broadcastMessage('GOS_gamePauseController_pause');
pauseAllIntervals();
GOS.API.onPause();
} else {
trace('resume');
this.broadcastMessage('GOS_gamePauseController_resume');
resumeAllIntervals();
GOS.API.onResume();
}
};
MovieClip.prototype.snap = function () {
var v2 = this;
var v1 = {'x': v2._x, 'y': v2._y};
v2._parent._localToGlobal(v1);
v1.x = Math.round(v1.x);
v1.y = Math.round(v1.y);
v2._parent._globalToLocal(v1);
v2._x = v1.x;
v2._y = v1.y;
};
TextField.prototype.snap = MovieClip.prototype.snap;
_global.Key = {'_Key': Key, 'BACKSPACE': 8, 'CAPSLOCK': 20, 'CONTROL': 17, 'DELETEKEY': 46, 'DOWN': 40, 'END': 35, 'ENTER': 13, 'ESCAPE': 27, 'HOME': 36, 'INSERT': 45, 'LEFT': 37, 'PGDN': 34, 'PGUP': 33, 'RIGHT': 39, 'SHIFT': 16, 'SPACE': 32, 'TAB': 9, 'UP': 38};
if (this.keys == undefined) {
this.keys = [];
}
Key._code = [];
Key._ascii = [];
Key._ascii[32] = [32];
Key._ascii[18] = [0];
Key._ascii[17] = [0];
Key._ascii[19] = [0];
Key._ascii[145] = [0];
Key._ascii[45] = [0];
Key._ascii[35] = [0];
Key._ascii[40] = [0];
Key._ascii[34] = [0];
Key._ascii[39] = [0];
Key._ascii[37] = [0];
Key._ascii[36] = [0];
Key._ascii[38] = [0];
Key._ascii[33] = [0];
Key._ascii[144] = [0];
Key._ascii[110] = [46];
Key._ascii[96] = [48];
Key._ascii[97] = [49];
Key._ascii[98] = [50];
Key._ascii[99] = [51];
Key._ascii[102] = [54];
Key._ascii[101] = [53];
Key._ascii[100] = [52];
Key._ascii[103] = [55];
Key._ascii[104] = [56];
Key._ascii[105] = [57];
Key._ascii[107] = [43];
Key._ascii[109] = [45];
Key._ascii[106] = [42];
Key._ascii[111] = [47];
Key._ascii[190] = [62];
Key._ascii[188] = [60];
Key._ascii[16] = [0];
Key._ascii[20] = [0];
Key._ascii[191] = [47, 63];
Key._ascii[77] = [109, 77];
Key._ascii[78] = [110, 78];
Key._ascii[66] = [98, 66];
Key._ascii[86] = [118, 86];
Key._ascii[67] = [99, 67];
Key._ascii[88] = [120, 88];
Key._ascii[90] = [122, 90];
Key._ascii[65] = [97, 65];
Key._ascii[83] = [115, 83];
Key._ascii[68] = [100, 68];
Key._ascii[70] = [102, 70];
Key._ascii[71] = [103, 71];
Key._ascii[72] = [104, 72];
Key._ascii[74] = [106, 74];
Key._ascii[75] = [107, 75];
Key._ascii[76] = [108, 76];
Key._ascii[186] = [59, 58];
Key._ascii[222] = [39, 34];
Key._ascii[221] = [93, 125];
Key._ascii[219] = [91, 123];
Key._ascii[80] = [112, 80];
Key._ascii[79] = [111, 79];
Key._ascii[73] = [105, 73];
Key._ascii[85] = [117, 85];
Key._ascii[89] = [121, 89];
Key._ascii[84] = [116, 84];
Key._ascii[82] = [114, 82];
Key._ascii[69] = [101, 69];
Key._ascii[87] = [119, 87];
Key._ascii[81] = [113, 81];
Key._ascii[220] = [92, 124];
Key._ascii[187] = [61, 43];
Key._ascii[189] = [45, 95];
Key._ascii[48] = [48, 41];
Key._ascii[57] = [57, 40];
Key._ascii[56] = [56, 42];
Key._ascii[55] = [55, 38];
Key._ascii[54] = [54, 94];
Key._ascii[53] = [53, 37];
Key._ascii[52] = [52, 36];
Key._ascii[51] = [51, 35];
Key._ascii[50] = [50, 64];
Key._ascii[49] = [49, 33];
Key._ascii[192] = [96, 126];
AsBroadcaster.initialize(Key);
Key.changeCode = function (k) {
var v1 = k;
return (this._code[v1] == undefined) ? v1 : this._code[v1];
};
Key.changeAscii = function (k) {
if (this._ascii[k] != undefined) {
return this._ascii[k];
}
};
Key.isDown = function (k) {
var v1 = k;
v1 = this.changeCode(v1);
return this._Key.isDown(v1);
};
Key.isToggled = function (k) {
var v1 = k;
v1 = this.changeCode(v1);
return this._Key.isToggled(v1);
};
Key.getCode = function (fl) {
var v1 = this;
if (fl == true) {
return v1._Key.getCode();
} else {
k = v1._Key.getCode();
return v1.changeCode(k);
}
};
Key.getAscii = function (fl) {
var v1 = this;
if (fl == true) {
return v1._Key.getAscii();
} else {
k = v1.changeCode(v1._Key.getCode());
return v1.changeAscii(k);
}
};
Key.change = function (_old, _new) {
var v1 = this;
var v2 = v1._code[_old];
v1._code[_old] = v1._code[_new];
v1._code[_new] = v2;
};
GOS_WindowClientAreaClass = function () {};
GOS_WindowClientAreaClass.prototype = new MovieClip();
GOS_WindowClientAreaClass.prototype.init = function () {
var v1 = this;
v1.__w_ = v1._width;
v1.__h_ = v1._height;
v1.window = v1._parent;
v1.client.init();
};
GOS_WindowClientAreaClass.prototype.onCreate = function () {
this.client.onCreate();
};
GOS_WindowClientAreaClass.prototype.hscroll = function () {
var v2 = this;
var v3 = v2.val;
var d1 = v2._parent.mask._width;
var d2 = v2._parent.client.__w_;
var v1 = d2 - d1;
if (v1 < 0) {
v1 = 0;
}
v1 = v3 * v1 / 100;
v2._parent.client._x = -Math.round(v1) + 2;
v2._parent.client.snap();
};
GOS_WindowClientAreaClass.prototype.vscroll = function () {
var v2 = this;
var v3 = v2.val;
var d1 = v2._parent.mask._height;
var d2 = v2._parent.client.__h_;
var v1 = d2 - d1;
if (v1 < 0) {
v1 = 0;
}
v1 = v3 * v1 / 100;
v2._parent.client._y = -Math.round(v1) + 14;
v2._parent.client.snap();
};
GOS_WindowClientAreaClass.prototype.onMove = function () {
this.snap();
};
GOS_WindowClientAreaClass.prototype.onClose = function () {
var v1 = this;
if (v1.client.onClose != undefined) {
v1.client.onClose();
} else {
v1.window._close();
}
};
GOS_WindowClientAreaClass.prototype.resizeTo = function (w, h) {
this.client.resizeTo(w, h);
};
GOS_WindowClientAreaClass.prototype._refresh = function () {
var v1 = this;
v1.__w_ = v1._width;
v1.__h_ = v1._height;
v1.window._refresh();
v1._parent.client.snap();
};
GOS_WindowClientAreaClass.prototype.close = function () {
this._parent.close();
};
Object.registerClass('GOS_WindowClientArea', GOS_WindowClientAreaClass);
_global.GOS_WindowClientContentClass = function () {};
GOS_WindowClientContentClass.prototype = new MovieClip();
GOS_WindowClientContentClass.prototype.init = function () {
var v1 = this;
v1._x = 0;
v1._y = 0;
v1.servOpened = false;
v1.window = v1._parent.window;
};
GOS_WindowClientContentClass.prototype._refresh = function () {
this._parent._refresh();
};
GOS_WindowClientContentClass.prototype.close = function () {
var v1 = this;
v1.serv.close();
v1.serv.onClose();
v1._parent.close();
};
GOS_WindowClientContentClass.prototype.onE = function (r) {
GOS.StateVars.Window.state = {'class': 'Alert', 'type': 'Deny', 'title': GOS.Translation.common_errTitle, 'text': GOS.Translation[r.msg]};
};
GOS_WindowClientContentClass.prototype.onRecievedPacket = function () {
this._parent._parent.connecting._visible = false;
};
GOS_WindowClientContentClass.prototype.useServer = function (module) {
var v1 = this;
v1.serv = new gosServer({'ip': GOS.servers.players.ip, 'port': GOS.servers.players.port, 'sid': GOS.session, 'module': (module == undefined) ? 'auth' : module});
v1.serv.addListener(v1);
v1.servOpened = true;
};
GOS_WindowClientContentClass.prototype.command = function (cmd, obj) {
var v1 = obj;
if (v1 == undefined) {
v1 = {};
}
this.serv.command(cmd, v1);
this._parent._parent.connecting._visible = true;
};
GOS_WindowClass = function () {
var v1 = this;
v1.mask._x = 2;
v1.mask._y = 14;
v1.client._x = 2;
v1.client._y = 14;
if (v1.io != undefined) {
if (v1.io.title == undefined) {
v1.title = v1.io.args[0];
} else {
v1.title = v1.io.title;
}
}
v1.addProperty('__width', v1.gw, v1.sw);
v1.addProperty('__height', v1.gh, v1.sh);
v1.tit.autoSize = true;
v1.snap();
v1.mb.onPress = function () {
this._parent.focus();
};
v1.mb.useHandCursor = false;
v1._max = true;
v1.mask._visible = false;
var v2 = v1.client.attachMovie('APP_' + v1.class, 'client', 10, v1.io);
if (v2 == undefined) {
if (v1.io.external == undefined) {
v2 = v1.client.attachMovie('APP_TextWindow', 'client', 10, {'text': 'dupa'});
} else {
v2 = v1.client.attachMovie('APP_ExternalApp', 'client', 10, v1.io);
v1.onEnterFrame = function () {
this.onEnterFrame = null;
this.client.onCreate();
};
}
}
v2.__proto__ = GOS_WindowClientContentClass.prototype;
v1.client._visible = false;
};
GOS_WindowClass.prototype = new MovieClip();
GOS_WindowClass.prototype.onEnterFrame = function () {
var v1 = this;
v1.onEnterFrame = null;
v1.client._visible = true;
v1.client.onCreate();
if (v1.client._unique) {
v1.manager.saveUnique(v1);
}
if (v1.client._clientWidth == undefined) {
v1.client._clientWidth = v1._width;
}
if (v1.client._clientHeight == undefined) {
v1.client._clientHeight = v1._height;
}
if (v1.client._modal == undefined) {
v1.client._modal = false;
}
v1.resize(v1.client._clientWidth < 40 ? 40 : v1.client._clientWidth, v1.client._clientHeight < 35 ? 35 : v1.client._clientHeight);
v1.rc._visible = !v1.client._modal;
v1.client.init();
v1.hs.update = v1.client.hscroll;
v1.vs.update = v1.client.vscroll;
};
GOS_WindowClass.prototype.oldOEF = GOS_WindowClass.prototype.onEnterFrame;
GOS_WindowClass.prototype.focus = function () {
this.manager.windowOnFocus(this);
};
GOS_WindowClass.prototype._focus = function () {
var v1 = this;
v1.tlb.gotoAndStop(1);
v1.tmb.gotoAndStop(1);
v1.trb.gotoAndStop(1);
};
GOS_WindowClass.prototype.blur = function () {
var v1 = this;
v1.tlb.gotoAndStop(2);
v1.tmb.gotoAndStop(2);
v1.trb.gotoAndStop(2);
};
GOS_WindowClass.prototype.minimalise = function () {
var v1 = this;
GOS.WindowsManager.minWin(v1);
v1._h = v1.__height;
v1._w = v1.__width;
v1.rc._visible = false;
v1.resize(50, 11);
v1._max = false;
v1.focus();
v1.client._visible = false;
v1.hs._visible = false;
v1.vs._visible = false;
};
GOS_WindowClass.prototype.maximalise = function () {
var v1 = this;
v1.rc._visible = !v1.client._modal;
v1.resize(v1._w, v1._h);
v1._max = true;
v1.focus();
v1.client._visible = true;
v1.client.onMove();
};
GOS_WindowClass.prototype.close = function () {
this.client.onClose();
};
GOS_WindowClass.prototype._close = function () {
var v1 = this;
v1.removeMovieClip();
v1.manager.windowClose(v1);
};
GOS_WindowClass.prototype._refresh = function () {
this.minWindow();
this.maxWindow();
};
GOS_WindowClass.prototype.startMove = function () {
var v1 = this;
v1.focus();
v1.onMouseUp = v1.stopMove;
v1._startDrag();
};
GOS_WindowClass.prototype.stopMove = function () {
var v1 = this;
v1.onMouseUp = null;
v1._stopDrag();
v1.snap();
v1.client.onMove();
};
GOS_WindowClass.prototype.resizing = function () {
var v1 = this;
var v3 = v1._xmouse - v1.rc.xm;
var v2 = v1._ymouse - v1.rc.ym;
if (v3 < 40) {
v3 = 40;
}
if (v2 < 35) {
v2 = 35;
}
v1.resize(v3 + 3, v2 + 3);
};
GOS_WindowClass.prototype.startResize = function () {
var v1 = this;
v1.focus();
Mouse.hide();
v1.rc.xm = v1.rc._xmouse;
v1.rc.ym = v1.rc._ymouse;
v1._old_oef = v1.onEnterFrame;
v1.onEnterFrame = v1.resizing;
v1.onMouseUp = v1.stopResize;
};
GOS_WindowClass.prototype.stopResize = function () {
var v1 = this;
v1.onMouseUp = null;
Mouse.show();
v1.onEnterFrame = v1._old_oef;
};
GOS_WindowClass.prototype.resize = function (w, h) {
var v1 = this;
var v2 = w;
var v3 = h;
v2 = Math.round(v2);
v3 = Math.round(v3);
v1.t._x = 0;
v1.t._y = 0;
v1.t.bd._width = v2;
v1.r._x = v2;
v1.r._y = 0;
v1.r.bd._width = v3;
v1.b._x = 0;
v1.b._y = v3;
v1.b.bd._width = v2;
v1.l._x = 0;
v1.l._y = 0;
v1.l.bd._width = v3;
v1.mb._x = -0.5;
v1.mb._y = -0.5;
v1.mb._height = v3 + 1;
v1.mb._width = v2 + 1;
v1.tl._x = 0;
v1.tl._y = 0;
v1.tr._x = v2;
v1.tr._y = 0;
v1.bl._x = 0;
v1.bl._y = v3;
v1.br._x = v2;
v1.br._y = v3;
v1.trb._x = v2 - 10;
v1.tmb._width = v1.trb._x - 8;
v1.tit.text = v1.title;
while (v1.tit._width > v2 - 25) {
v1.tit.text = substring(v1.tit.text, 0, v1.tit.text.length - 4) + '...';
}
v1.rc._y = v3 - 3;
v1.rc._x = v2 - 3;
v1.___width = v2;
v1.___height = v3;
v1.vs._x = v2;
v1.vs._y = 15;
v1.vs.dim = v3 - 24;
v1.xs._x = 5;
v1.hs._y = v3;
v1.hs.dim = v2 - 10;
if (v1.client._fixed == undefined) {
v1.hs._visible = v1.client._width > v2;
v1.vs._visible = v1.client._height > v3 - 9;
} else {
v1.hs._visible = false;
v1.vs._visible = false;
}
if (v1.vs._visible) {
v2 -= 5;
}
if (v1.hs._visible) {
v3 -= 7;
}
v1.mask._width = v2 - 2;
v1.mask._height = v3 - 14;
v1.hs.update();
v1.vs.update();
v1.client.onMove();
v1.client.resizeTo(v2 + 2, v3 - 14);
v1.connecting.setBkg();
};
GOS_WindowClass.prototype.sw = function (w) {
var v1 = this;
v1.___width = w;
v1.resize(w, v1.___height);
};
GOS_WindowClass.prototype.gw = function () {
return this.___width;
};
GOS_WindowClass.prototype.sh = function (h) {
var v1 = this;
v1.___height = h;
v1.resize(v1.___width, h);
};
GOS_WindowClass.prototype.gh = function () {
return this.___height;
};
Object.registerClass('GOS_Window', GOS_WindowClass);
GOS_windowsController = function () {
GOS.StateVars.Window.addListener(GOS.WindowsManager);
GOS.WindowsManager.setState = function (initObj) {
this.windowOpen(initObj.class, initObj);
};
};
GOS_WindowsManagerClass = function () {
var v1 = this;
v1.root = GOS.root;
v1.windows = [];
v1.uniques = [];
v1.minimised = [];
v1.lastWindow = {'x': 20, 'y': 55};
GOS.StateVars.Window.addListener(v1);
};
GOS_WindowsManagerClass.prototype = new Object();
GOS_WindowsManagerClass.prototype.setState = function (initObj) {
this.windowOpen(initObj.class, initObj);
};
GOS_WindowsManagerClass.prototype.openUnique = function (class) {
var v1 = this;
var v2 = class;
for (var v3 in v1.uniques) {
if (v1.uniques[v3].class == v2) {
v1.uniques[v3].focus();
v1.maxWin(v1.uniques[v3]);
return true;
}
}
return false;
};
GOS_WindowsManagerClass.prototype.saveUnique = function (win) {
this.uniques.push(win);
};
GOS_WindowsManagerClass.prototype.windowPlace = function (w) {
var v1 = this;
if (v1.lastWindow.x + w._width > _Stage.width) {
v1.lastWindow.x = 30;
} else {
v1.lastWindow.x += 10;
}
if (v1.lastWindow.y + w._height > _Stage.height) {
v1.lastWindow.y = 65;
} else {
v1.lastWindow.y += 10;
}
var v2 = {'x': v1.lastWindow.x, 'y': v1.lastWindow.y};
GOS.root._globalToLocal(v2);
return v2;
};
GOS_WindowsManagerClass.prototype.windowOpen = function (class, io) {
var v1 = this;
if (v1.openUnique(class)) {
} else {
if (v1.windows.length > 200) {
} else {
v1.windows[v1.windows.length - 1].blur();
var v2 = v1.root.attachMovie('GOS_Window', 'window' + v1.windows.length, v1.windows.length, {'title': class, 'class': class, 'io': io, 'manager': v1});
var v3 = v1.windowPlace(v2);
v2._x = v3.x;
v2._y = v3.y;
v1.windows.push(v2);
v1.reindexWindows();
return v2;
}
}
return undefined;
};
GOS_WindowsManagerClass.prototype.reindexWindows = function () {
var v2 = this;
var v1 = 0;
while (v1 < v2.windows.length) {
v2.windows[v1].swapDepths(v2.windows[v1].getDepth() + 500);
++v1;
}
v1 = 0;
while (v1 < v2.windows.length) {
v2.windows[v1].swapDepths(v1);
v2.windows[v1].blur();
++v1;
}
v2.windows[v2.windows.length - 1]._focus();
};
GOS_WindowsManagerClass.prototype.windowClose = function (win) {
var v2 = this;
for (var v1 in v2.uniques) {
if (v2.uniques[v1] == win) {
v2.uniques.splice(v1, 1);
break;
}
}
v1 = 0;
while (v1 < v2.windows.length) {
if (v2.windows[v1] == win) {
var v3 = v1;
}
++v1;
}
v2.windows.splice(v3, 1);
v2.reindexWindows();
};
GOS_WindowsManagerClass.prototype.windowOnFocus = function (win) {
var v2 = this;
var v1 = 0;
while (v1 < v2.windows.length) {
if (v2.windows[v1] == win) {
var v3 = v1;
}
++v1;
}
v2.windows.splice(v3, 1);
v2.windows.push(win);
v2.reindexWindows();
};
GOS_WindowsManagerClass.prototype.minWin = function (win) {
var v1 = this;
win.__isMinimised__ = true;
GOS.root.txt_white._visible = false;
win._visible = false;
for (var v2 in v1.minimised) {
v1.minimised[v2].but.removeMovieClip();
}
v1.minimised.push({'win': win});
v1.toolbarRefresh();
};
GOS_WindowsManagerClass.prototype.maxWin = function (win) {
var v2 = this;
var v3 = win;
if (v3.__isMinimised__ != true) {
} else {
v3.__isMinimised__ = false;
v3._visible = true;
v3.maximalise();
var a = [];
var v1 = 0;
while (v1 < v2.minimised.length) {
v2.minimised[v1].but.removeMovieClip();
if (v2.minimised[v1].win != v3) {
a.push(v2.minimised[v1]);
}
++v1;
}
v2.minimised = a;
v2.toolbarRefresh();
}
};
GOS_WindowsManagerClass.prototype.toolbarRefresh = function () {
var v3 = this;
var l = v3.minimised.length;
GOS.root.txt_white._visible = l == 0;
var w = _Stage.width - GOS.root.ic._width - GOS.root.panel._width - 20;
w /= l;
w = w > 80 ? 80 : w;
var v2 = 10;
var v1 = 0;
while (v1 < v3.minimised.length) {
var ob = {'wd': w - 1, 'win': v3.minimised[v1].win, 'txt': v3.minimised[v1].win.title, '_x': (v2 - 10) * w + GOS.root.ic._width + 5, '_y': 1};
GOS.root.attachMovie('winmin', 'winmin' + v2, v2, ob);
v3.minimised[v1].but = GOS.root['winmin' + v2];
++v2;
++v1;
}
};
GOS_RedirectClass = function () {
this.root = GOS.root;
GOS.StateVars.Redirect.addListener(this);
};
GOS_RedirectClass.prototype = new Object();
GOS_RedirectClass.prototype.setState = function (initObj) {
GOS.StateVars.Pause.state = true;
getURL(this.parseURL(initObj.url), initObj.target);
};
GOS_RedirectClass.prototype.parseURL = function (url) {
var v1 = url.split('#');
for (i in v1) {
if (GOS[v1[i]] != undefined) {
v1[i] = GOS[v1[i]].toString();
}
}
return v1.join('');
};
GOS_MenuClass = function () {
var v1 = this;
v1.y = 0;
v1.items = [];
v1.addProperty('__width', v1.gw, v1.sw);
v1.addProperty('__height', v1.gh, v1.sh);
GOS.menuController.menus.push(v1);
v1.addProperty('__visible', v1.gv, v1.sv);
v1.submenuMask._visible = false;
v1.submenuMask._alpha = 0;
v1.submenuMask.onRollOut = function () {
var v1 = this;
v1._visible = false;
v1._width = 0;
v1._height = 0;
v1._x = 0;
v1._y = 0;
};
};
GOS_MenuClass.prototype = new MovieClip();
GOS_MenuClass.prototype.place = function () {
var v1 = this;
var v2 = _root;
var _min = 5;
var _max = _Stage.width - v1.___width___ - 5;
var x = v2._xmouse - 4;
if (v2._xmouse < _min) {
var x = _min;
}
if (v2._xmouse > _max) {
var x = _max;
}
var _min = 5;
var _max = _Stage.height - v1.___height___ - 5;
var y = v2._ymouse - 5;
if (v2._ymouse < _min) {
var y = _min;
}
if (v2._ymouse > _max) {
var y = _max;
}
var v3 = {'x': x, 'y': y};
v1._parent._globalToLocal(v3);
v1._x = v3.x;
v1._y = v3.y;
v1.snap();
v1.__visible = true;
v1.parent.onRollOver = function () {
var v1 = this;
v1.itToBlur.onSubmenuHide();
delete v1.onRollOver;
v1.mn.hideMe();
};
};
GOS_MenuClass.prototype.placeSubmenu = function (it) {
var v1 = this;
var v3 = it;
v1._x = v3._parent._x + v3._parent.___width___ - 7;
var y = v3._parent._y + v3._y + 2;
var v2 = {'x': 0, 'y': y};
v1._parent._localToGlobal(v2);
if (v2.y + v1.___height___ > _Stage.height - 10) {
v2.y = _Stage.height - v1.___height___ - 10;
v1._parent._globalToLocal(v2);
v1._y = v2.y;
} else {
v2.y = y;
v1._y = y;
}
v1.snap();
v1.__visible = true;
v1.submenuMask._width = v3._parent._width + 10;
v1.submenuMask._height = v3._height + 8;
v1.submenuMask._x = -v1.submenuMask._width + 10;
v1.submenuMask._y = -8 + (y - v2.y);
v1.submenuMask._visible = true;
v1.parent.onRollOver = function () {
var v1 = this;
v1.itToBlur.onSubmenuHide();
delete v1.onRollOver;
v1.mn.hideMe();
};
};
GOS_MenuClass.prototype.hideMe = function () {
var v1 = this;
v1.__visible = false;
if (v1.mn != undefined) {
v1.mn.hideMe();
}
};
GOS_MenuClass.prototype.streachItems = function () {
var v2 = this;
v2.__height = 0;
var v1 = 0;
while (v1 < v2.items.length) {
v2.items[v1].__width = v2.__width;
v2.__height += v2.items[v1].height;
++v1;
}
};
GOS_MenuClass.prototype.addItem = function (n) {
var v1 = this;
var v3 = n;
if (isNaN(v1.y)) {
v1.y = 0;
}
switch (v3.nodeName) {
case 'Menu':
v1.mn = GOS.menuController.loadMenu(v3.childNodes);
v1.mn.__visible = false;
v1.mn.parent = v1;
var v2 = v1.attachMovie('GOS_MenuSubmenu', 'i' + v1.items.length, v1.items.length + 1000, {'_x': 0, '_y': v1.y, '_attributes': v3.attributes});
v2.mn = v1.mn;
v1.items.push(v2);
v2.height = (v2.height == undefined) ? 0 : v2.height;
v1.y += v2.height;
if (v1.__width < v2.__width) {
v1.__width = v2.__width;
}
v1.streachItems();
break;
default:
var v2 = v1.attachMovie('GOS_Menu' + v3.nodeName, 'i' + v1.items.length, v1.items.length + 10, {'_x': 0, '_y': v1.y, '_attributes': v3.attributes, '_childNodes': v3.childNodes});
v1.items.push(v2);
v2.height = (v2.height == undefined) ? 0 : v2.height;
v1.y += v2.height;
if (v1.__width < v2.__width) {
v1.__width = v2.__width;
}
v1.streachItems();
}
};
GOS_MenuClass.prototype.resize = function (w, h) {
var v1 = this;
var v2 = h;
var v3 = w;
v1.t._x = 0;
v1.t._y = 0;
v1.t.bd._width = v3;
v1.r._x = v3;
v1.r._y = 0;
v1.r.bd._width = v2;
v1.b._x = 0;
v1.b._y = v2;
v1.b.bd._width = v3;
v1.l._x = 0;
v1.l._y = 0;
v1.l.bd._width = v2;
v1.mb._x = -1;
v1.mb._y = 0;
v1.mb._height = v2;
v1.mb._width = v3 + 2;
v1.tl._x = 0;
v1.tl._y = 0;
v1.tr._x = v3;
v1.tr._y = 0;
v1.bl._x = 0;
v1.bl._y = v2;
v1.br._x = v3;
v1.br._y = v2;
};
GOS_MenuClass.prototype.sw = function (w) {
var v1 = this;
v1.___width = w;
v1.resize(w, v1.___height);
};
GOS_MenuClass.prototype.gw = function () {
return isNaN(this.___width) ? 0 : this.___width;
};
GOS_MenuClass.prototype.sh = function (h) {
var v1 = this;
v1.___height = h;
v1.resize(v1.___width + 3, h);
};
GOS_MenuClass.prototype.gh = function () {
return isNaN(this.___height) ? 0 : this.___height;
};
GOS_MenuClass.prototype.gv = function () {
return this._visible;
};
GOS_MenuClass.prototype.sv = function (v) {
var v1 = v;
var v2 = this;
v2._visible = v1;
v2._xscale = v1 ? 100 : 0;
v2._yscale = v1 ? 100 : 0;
};
Object.registerClass('GOS_Menu', GOS_MenuClass);
GOS_menuController = function () {
var v1 = this;
GOS.root.gosHitTest._alpha = 50;
GOS.root.gosHitTest._visible = false;
GOS.root.gosHitTest._width = _Stage.width;
GOS.root.gosHitTest._height = _Stage.height;
GOS.root.gosHitTest.onPress = function () {
GOS.StateVars.MenuVisible.state = false;
};
GOS.root.gosHitTest.useHandCursor = false;
GOS.StateVars.MenuVisible.addListener(v1);
v1._loaded_ = false;
v1.menus = [];
};
GOS_menuController.prototype = new Object();
GOS_menuController.prototype.setState = function (s) {
var v1 = this;
GOS.root.gosHitTest._visible = s;
if (s) {
var v3 = {'x': 0, 'y': 0};
GOS.root._globalToLocal(v3);
GOS.root.gosHitTest._x = v3.x;
GOS.root.gosHitTest._y = v3.y;
if (v1._loaded_) {
v1.mn.place();
} else {
v1.mn = v1.loadMenu(GOS.Menu.childNodes);
v1.mn.place();
v1._loaded_ = true;
}
} else {
var v3 = {'x': 0, 'y': 50000};
if (!Mouse.visible) {
Mouse.systemMouse.hide();
}
GOS.root._globalToLocal(v3);
GOS.root.gosHitTest._x = v3.x;
GOS.root.gosHitTest._y = v3.y;
for (var v2 in v1.menus) {
v1.menus[v2].__visible = false;
}
}
};
GOS_menuController.prototype.loadMenu = function (n) {
var v3 = n;
var v2 = GOS.root.attachMovie('GOS_Menu', 'mn' + this.menus.length, this.menus.length + 1000);
var v1 = 0;
while (v1 < v3.length) {
v2.addItem(v3[v1]);
++v1;
}
v2.___height___ = v2._height;
v2.___width___ = v2._width;
return v2;
};
GOS_MenuXMLClass = function (_xml) {
var v1 = this;
super();
v1.ignoreWhite = true;
v1.parseXML(_xml);
return v1;
};
GOS_MenuXMLClass.prototype = new XML();
_global.adsServer = function () {
var v1 = this;
v1.ip = GOS.servers.players.ip;
v1.port = GOS.servers.players.port;
v1.module = 'ads';
v1.queue = [];
v1.connected = false;
v1.connecting = false;
};
adsServer.prototype = new GosXMLSocket();
adsServer.prototype.onRecieved = function (cmd, params) {
var v1 = params;
trace('aaaaaaaaaaaaaaaaaaaaaaaaa' + cmd);
switch (cmd) {
case 'T':
GOS.cookie.data.lastTipObj = {'tip': Math.floor(v1.id), 'time': (new Date()).getTime()};
GOS.cookie.flush;
if (v1.tip && v1.tip.length > 5) {
GOS.StateVars.Window.state = {'class': 'Alert', 'type': 'info', 'UCase': false, 'title': GOS.Translation.common_didYouKnow, 'text': v1.tip};
}
break;
case 'Q':
if (v1.question && v1.question.length > 5) {
GOS.StateVars.Window.state = {'class': 'Poll', 'title': GOS.Translation.common_poll, 'text': v1.question, 'id': v1.id};
}
}
};
this.onKeyDown = function () {
switch (Key.getCode()) {
case 33:
GOS.StateVars.Volume.state += 1;
break;
case 34:
GOS.StateVars.Volume.state -= 1;
break;
case 19:
GOS.StateVars.Pause.state = !GOS.StateVars.Pause.state;
break;
case 27:
GOS.StateVars.MenuVisible.state = !GOS.StateVars.MenuVisible.state;
}
};
Key.addListener(this);
this.keys[33] = 'keyboardProfiler_keyVolumeUp';
this.keys[34] = 'keyboardProfiler_keyVolumeDown';
this.keys[19] = 'keyboardProfiler_keyPauseResume';
this.keys[27] = 'keyboardProfiler_keyToggleMenu';
this.keys[192] = 'keyboardProfiler_keyBossKey';
API.prototype = new Object();
API.prototype.pauseGame = function () {
GOS.StateVars.Pause.state = false;
};
API.prototype.resumeGame = function () {
GOS.StateVars.Pause.state = true;
};
API.prototype.scoreBoard = function (save) {
GOS.StateVars.score.state.score = score;
GOS.StateVars.Window.state = {'class': 'HighscoreTable', 'title': GOS.Translation.label_Highscores, 'save': save};
};
API.prototype.showObjectives = function () {
GOS.StateVars.Window.state = {'class': 'TextWindow', 'title': GOS.Translation.label_gameObjectives, 'serverCmd': 'T', 'serverVar': 'objectives', 'gosVar': 'objectives'};
};
API.prototype.showControls = function () {
GOS.StateVars.Window.state = {'class': 'TextWindow', 'title': GOS.Translation.label_gameControlls, 'serverCmd': 'T', 'serverVar': 'controlls', 'gosVar': 'controlls'};
};
API.prototype.loginUser = function () {
GOS.StateVars.Window.state = {'class': 'LoginForm', 'title': GOS.Translation.label_LogIn};
};
API.prototype.nextLevel = function () {};
API.prototype.onLogin = function () {};
API.prototype.onLogout = function () {};
API.prototype.setGameVariable = function (_var, _val) {
if (GOS.cookie != undefined) {
if (GOS.cookie.data.gameData == undefined) {
GOS.cookie.data.gameData = [];
}
if (GOS.cookie.data.gameData[GOS.gid] == undefined) {
GOS.cookie.data.gameData[GOS.gid] = [];
}
GOS.cookie.data.gameData[GOS.gid][_var] = _val;
GOS.cookie.flush;
return true;
} else {
return false;
}
};
API.prototype.getGameVariable = function (_var) {
if (GOS.cookie != undefined) {
return GOS.cookie.data.gameData[GOS.gid][_var];
} else {
return false;
}
};
API.prototype.isGameDataAvailable = function () {
return GOS.cookie != undefined;
};
API.prototype.isLoggedIn = function () {
return GOS.StateVars.LoggedIn.state;
};
API.prototype.registerScoreVariable = function (variable_name, topup) {
var v1 = variable_name.split('.');
switch (v1[0]) {
case '_root':
v1[0] = '_global["_x1x2x3x4"]';
break;
case '_level0':
v1[0] = '_global["_x1x2x3x4x5x6"]';
}
GOS.userScoreVariable = v1.join('.');
GOS.StateVars.score.state.topup = (tupup == undefined) ? true : topup;
};
API.prototype.registerKey = function (keyCode, tip) {
__gos.keys[keyCode] = tip;
};
_global.Fp6Mat = {};
Fp6Mat.max = function (a, b) {
var v1 = b;
var v2 = a;
if (v2 == undefined && v1 != undefined) {
return v1;
}
if (v1 == undefined && v2 != undefined) {
return v2;
}
if (v2 == undefined && v1 == undefined) {
return 0;
}
return Math.max(v2, v1);
};
Fp6Mat.min = function (a, b) {
if (a == undefined || b == undefined) {
return 0;
}
return Math.min(a, b);
};
Fp6Mat.ceil = function (a) {
if (a == undefined) {
return 0;
}
return Math.ceil(a);
};
Fp6Mat.floor = function (a) {
if (a == undefined) {
return 0;
}
return Math.floor(a);
};
Fp6Mat.round = function (a) {
if (a == undefined) {
return 0;
}
return Math.round(a);
};
_global.GosMouse = function (obj) {
var v1 = this;
obj.onMouseMove = v1.onMouseMove;
v1.visible = true;
v1.systemMouse = Mouse;
AsBroadcaster.initialize(v1);
};
GosMouse.prototype = new Object();
GosMouse.prototype.hide = function () {
this.visible = false;
this.systemMouse.hide();
};
GosMouse.prototype.show = function () {
this.visible = true;
this.systemMouse.show();
};
GosMouse.prototype.registerMe = function (obj) {};
GosMouse.prototype.onMouseMove = function () {
var v1 = _root;
trace(Mouse.visible + '\t' + this._hitTest(v1._xmouse, v1._ymouse, true));
if (this._hitTest(v1._xmouse, v1._ymouse, true)) {
Mouse.systemMouse.show();
} else {
if (!Mouse.visible) {
Mouse.systemMouse.hide();
}
}
};
_global.Mouse = new GosMouse(this);
trace(Fp6Mat.min);
debugMsg('GOS init');
this.swapDepths(15000);
_root.clear();
_global.__gos = this;
GOS.root = this;
GOS.StateVars = {'Pause': new stateVar(false), 'MenuVisible': new stateVar(false), 'Window': new stateVar(null), 'Redirect': new stateVar(null), 'LoggedIn': new stateVar(false), 'isPublisherUrl': new stateVar(GOS.variables.publisherUrl.length > 10), 'isProviderUrl': new stateVar(GOS.variables.providerUrl.length > 10), 'isAdvertiserUrl': new stateVar(GOS.variables.advertiserUrl.length > 10), 'isCredits': new stateVar(GOS.variables.credits.length > 3), 'Score': new stateVar({'score': 0, 'topup': true})};
GOS.gamePauseController = new GOS_gamePauseController();
GOS.menuController = new GOS_menuController();
GOS.WindowsManager = new GOS_WindowsManagerClass();
GOS.RedirectController = new GOS_RedirectClass();
if (GOS.offline) {
debugMsg('GOS is offline');
_root.attachMovie('default_banner', 'banner', 100);
} else {
debugMsg('GOS is online');
GOS.serv = new adsServer();
GOS.Menu = new GOS_MenuXMLClass(GOS._gos);
GOS.Dictionary = new GOS_MenuXMLClass(GOS._dictionary);
GOS.Scripts = new GOS_MenuXMLClass(GOS._launching);
GOS.Translation = {'internal_language': System.capabilities.language};
for (i in GOS.Dictionary) {
if (GOS.Dictionary[i].nodeName == 'Dictionary') {
var dict = GOS.Dictionary[i].attributes;
for (j in dict) {
GOS.Translation[j] = dict[j];
}
break;
}
}
debugMsg('dictionary loaded');
var dps = 5000;
for (i in GOS.Scripts) {
if (GOS.Scripts[i].nodeName == 'Script') {
var dict = GOS.Scripts[i].attributes;
if (dict.domain != undefined) {
System.security.allowDomain(dict.domain);
}
this.createEmptyMovieClip('script' + dps, dps);
this['script' + dps].loadMovie(dict.url);
++dps;
}
}
debugMsg('x-Scripts loaded');
for (i in GOS.warnings) {
GOS.StateVars.Window.state = {'class': 'Alert', 'type': 'alert', 'UCase': false, 'title': GOS.Translation['warningTitle_' + GOS.warnings[i]], 'text': GOS.Translation['warningBody_' + GOS.warnings[i]]};
}
debugMsg('attaching banner');
_root.attachMovie('dynamic banner', 'banner', 100);
debugMsg('banner attached');
this.getTTByProxy = function (mc) {
GOS.proxy.addListener(mc);
GOS.proxy.loadURL(mc.uurl);
};
if (GOS.adError) {
GOS.serv.cmd('E');
} else {
GOS.serv.cmd('V');
if (GOS.adClicked) {
GOS.serv.cmd('C');
}
}
var _lt = GOS.cookie.data.lastTipObj;
if (_lt == undefined) {
_lt = 0;
GOS.serv.cmd('T', {'lasttip': _lt});
} else {
if (new Date.getTime() - _lt.time > 86400000) {
GOS.serv.cmd('T', {'lasttip': _lt.tip});
}
}
GOS.logInListener = {};
GOS.logInListener.setState = function (s) {
if (s) {
var v1 = GOS.cookie.data.lastQuestion;
if (v1 == undefined) {
v1 = 0;
}
if ((new Date()).getTime() - v1 > 86400000) {
GOS.serv.cmd('Q');
}
}
};
GOS.StateVars.LoggedIn.addListener(GOS.logInListener);
if (GOS.cookie.data.user.rm == true) {
var r = {'nick': GOS.cookie.data.user.nick, 'pass': GOS.cookie.data.user.md5};
GOS.xservObj = {'onL': function (r) {
GOS.StateVars.LoggedIn.state = true;
delete GOS.xserv;
}, 'onE': function (r) {
delete GOS.xserv;
GOS.cookie.data.user = undefined;
GOS.cookie.flush();
}};
GOS.xserv = new gosServer({'ip': GOS.servers.players.ip, 'port': GOS.servers.players.port, 'sid': GOS.session, 'module': 'auth'});
GOS.xserv.addListener(GOS.xservObj);
GOS.xserv.command('L', r);
}
}
GOS.StateVars.Pause.addListener(_root.gamePaused);
GOS.API = new API();
if (_root.preview) {
setInterval(function () {
GOS.StateVars.Pause.state = true;
}, 5000);
GOS.StateVars.Window.state = {'class': 'Alert', 'type': 'alert', 'UCase': false, 'title': GOS.Translation.warningTitle_preview, 'text': GOS.Translation.warningBody_preview};
}
debugMsg('GOS initiated');
}
frame 1 {
this._x = 0;
this._y = _Stage.height - 21;
this.bkg._width = _Stage.width + 5;
this.txt_white._x = _Stage.width / 2;
this.panel._x = _Stage.width;
}
}
movieClip 1721 {
}
movieClip 1722 {
frame 1 {
this.onPress = function () {};
this.onMouseDown = function () {};
this.useHandCursor = false;
this.swapDepths(14999);
this.bkg._width = _Stage.width;
this.bkg._height = _Stage.height - 65;
this.bkg._x = 0;
this.bkg._y = 0;
this._x = 0;
this._y = 65;
this._visible = false;
this.pauseText.autoSize = true;
GOS.Translation.pauseMessageText = GOS.Translation.common_gamePaused;
this.setState = function (s) {
var v1 = this;
if (GOS.offline) {
v1.pauseText.text = 'Game Paused';
} else {
v1.pauseText.text = GOS.Translation.pauseMessageText;
}
v1.pauseText._x = _Stage.width / 2 - v1.pauseText._width / 2;
v1.pauseText._y = _Stage.height / 2 - v1.pauseText._height / 2;
v1.logo._x = _Stage.width / 2;
v1.logo._y = v1.pauseText._y - 10 - v1.logo._height / 2;
v1._visible = s;
};
}
}
movieClip 20021 FUIComponentSymbol {
frame 1 {
this._hemdta = _hemdta;
this._pdue = _pdue;
if (this[65532] != true) {
this[65532] = true;
GOS.gamePauseController.addListener(this);
}
}
frame 1 {
}
}
movieClip 20024 {
frame 1 {
this._hemdta = _hemdta;
this._pdue = _pdue;
if (this[65532] != true) {
this[65532] = true;
GOS.gamePauseController.addListener(this);
}
}
}
movieClip 20025 {
frame 1 {
this._hemdta = _hemdta;
this._pdue = _pdue;
if (this[65532] != true) {
this[65532] = true;
GOS.gamePauseController.addListener(this);
}
}
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');
}
}
movieClip 20027 {
frame 1 {
this._hemdta = _hemdta;
this._pdue = _pdue;
if (this[65532] != true) {
this[65532] = true;
GOS.gamePauseController.addListener(this);
}
}
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');
}
}
movieClip 20028 {
frame 1 {
this._hemdta = _hemdta;
this._pdue = _pdue;
if (this[65532] != true) {
this[65532] = true;
GOS.gamePauseController.addListener(this);
}
}
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');
}
}
movieClip 20029 UpArrow {
frame 1 {
this._hemdta = _hemdta;
this._pdue = _pdue;
if (this[65532] != true) {
this[65532] = true;
GOS.gamePauseController.addListener(this);
}
}
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
}
movieClip 20030 {
frame 1 {
this._hemdta = _hemdta;
this._pdue = _pdue;
if (this[65532] != true) {
this[65532] = true;
GOS.gamePauseController.addListener(this);
}
}
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');
}
}
movieClip 20032 {
frame 1 {
this._hemdta = _hemdta;
this._pdue = _pdue;
if (this[65532] != true) {
this[65532] = true;
GOS.gamePauseController.addListener(this);
}
}
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');
}
}
movieClip 20033 {
frame 1 {
this._hemdta = _hemdta;
this._pdue = _pdue;
if (this[65532] != true) {
this[65532] = true;
GOS.gamePauseController.addListener(this);
}
}
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');
}
}
movieClip 20034 ScrollThumb {
frame 1 {
this._hemdta = _hemdta;
this._pdue = _pdue;
if (this[65532] != true) {
this[65532] = true;
GOS.gamePauseController.addListener(this);
}
}
frame 1 {
stop();
}
}
movieClip 20036 {
frame 1 {
this._hemdta = _hemdta;
this._pdue = _pdue;
if (this[65532] != true) {
this[65532] = true;
GOS.gamePauseController.addListener(this);
}
}
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');
}
}
movieClip 20038 {
frame 1 {
this._hemdta = _hemdta;
this._pdue = _pdue;
if (this[65532] != true) {
this[65532] = true;
GOS.gamePauseController.addListener(this);
}
}
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');
}
}
movieClip 20040 {
frame 1 {
this._hemdta = _hemdta;
this._pdue = _pdue;
if (this[65532] != true) {
this[65532] = true;
GOS.gamePauseController.addListener(this);
}
}
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');
}
}
movieClip 20041 DownArrow {
frame 1 {
this._hemdta = _hemdta;
this._pdue = _pdue;
if (this[65532] != true) {
this[65532] = true;
GOS.gamePauseController.addListener(this);
}
}
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
}
movieClip 20043 {
frame 1 {
this._hemdta = _hemdta;
this._pdue = _pdue;
if (this[65532] != true) {
this[65532] = true;
GOS.gamePauseController.addListener(this);
}
}
}
movieClip 20044 FHighlightSymbol {
frame 1 {
this._hemdta = _hemdta;
this._pdue = _pdue;
if (this[65532] != true) {
this[65532] = true;
GOS.gamePauseController.addListener(this);
}
}
frame 1 {
var component = _parent.controller;
component.registerSkinElement(highlight_mc, 'selection');
stop();
}
frame 2 {
component.registerSkinElement(highlight_mc2, 'selectionDisabled');
stop();
}
frame 3 {
component.registerSkinElement(highlight_mc3, 'selectionUnfocused');
stop();
}
}
movieClip 20047 FLabelSymbol {
frame 1 {
this._hemdta = _hemdta;
this._pdue = _pdue;
if (this[65532] != true) {
this[65532] = true;
GOS.gamePauseController.addListener(this);
}
}
frame 1 {
}
}
movieClip 20048 dymek {
frame 1 {
this._hemdta = _hemdta;
this._pdue = _pdue;
if (this[65532] != true) {
this[65532] = true;
GOS.gamePauseController.addListener(this);
}
}
}
movieClip 20055 dym01 {
frame 1 {
this._hemdta = _hemdta;
this._pdue = _pdue;
if (this[65532] != true) {
this[65532] = true;
GOS.gamePauseController.addListener(this);
}
}
frame 1 {
this.swapDepthsNR(this._y - 40, 3);
}
frame 7 {
this.removeMovieClip();
}
}
movieClip 20057 {
frame 1 {
this._hemdta = _hemdta;
this._pdue = _pdue;
if (this[65532] != true) {
this[65532] = true;
GOS.gamePauseController.addListener(this);
}
}
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 20061 {
frame 1 {
this._hemdta = _hemdta;
this._pdue = _pdue;
if (this[65532] != true) {
this[65532] = true;
GOS.gamePauseController.addListener(this);
}
}
}
movieClip 20069 {
frame 1 {
this._hemdta = _hemdta;
this._pdue = _pdue;
if (this[65532] != true) {
this[65532] = true;
GOS.gamePauseController.addListener(this);
}
}
}
movieClip 20076 {
frame 1 {
this._hemdta = _hemdta;
this._pdue = _pdue;
if (this[65532] != true) {
this[65532] = true;
GOS.gamePauseController.addListener(this);
}
}
frame 1 {
stop();
}
}
movieClip 20077 column {
frame 1 {
this._hemdta = _hemdta;
this._pdue = _pdue;
if (this[65532] != true) {
this[65532] = true;
GOS.gamePauseController.addListener(this);
}
}
frame 1 {
stop();
}
}
movieClip 20078 ground {
frame 1 {
this._hemdta = _hemdta;
this._pdue = _pdue;
if (this[65532] != true) {
this[65532] = true;
GOS.gamePauseController.addListener(this);
}
}
}
movieClip 20082 ball {
frame 1 {
this._hemdta = _hemdta;
this._pdue = _pdue;
if (this[65532] != true) {
this[65532] = true;
GOS.gamePauseController.addListener(this);
}
}
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 20084 ball_shadow {
frame 1 {
this._hemdta = _hemdta;
this._pdue = _pdue;
if (this[65532] != true) {
this[65532] = true;
GOS.gamePauseController.addListener(this);
}
}
}
movieClip 20086 wall_1010 {
frame 1 {
this._hemdta = _hemdta;
this._pdue = _pdue;
if (this[65532] != true) {
this[65532] = true;
GOS.gamePauseController.addListener(this);
}
}
}
movieClip 20088 corner_1000 {
frame 1 {
this._hemdta = _hemdta;
this._pdue = _pdue;
if (this[65532] != true) {
this[65532] = true;
GOS.gamePauseController.addListener(this);
}
}
}
movieClip 20090 corner_0010 {
frame 1 {
this._hemdta = _hemdta;
this._pdue = _pdue;
if (this[65532] != true) {
this[65532] = true;
GOS.gamePauseController.addListener(this);
}
}
}
movieClip 20091 corner_1010 {
frame 1 {
this._hemdta = _hemdta;
this._pdue = _pdue;
if (this[65532] != true) {
this[65532] = true;
GOS.gamePauseController.addListener(this);
}
}
}
movieClip 20093 corner_0100 {
frame 1 {
this._hemdta = _hemdta;
this._pdue = _pdue;
if (this[65532] != true) {
this[65532] = true;
GOS.gamePauseController.addListener(this);
}
}
}
movieClip 20095 corner_0001 {
frame 1 {
this._hemdta = _hemdta;
this._pdue = _pdue;
if (this[65532] != true) {
this[65532] = true;
GOS.gamePauseController.addListener(this);
}
}
}
movieClip 20096 corner_0101 {
frame 1 {
this._hemdta = _hemdta;
this._pdue = _pdue;
if (this[65532] != true) {
this[65532] = true;
GOS.gamePauseController.addListener(this);
}
}
}
movieClip 20097 corner_1001 {
frame 1 {
this._hemdta = _hemdta;
this._pdue = _pdue;
if (this[65532] != true) {
this[65532] = true;
GOS.gamePauseController.addListener(this);
}
}
}
movieClip 20098 corner_0011 {
frame 1 {
this._hemdta = _hemdta;
this._pdue = _pdue;
if (this[65532] != true) {
this[65532] = true;
GOS.gamePauseController.addListener(this);
}
}
}
movieClip 20099 corner_0110 {
frame 1 {
this._hemdta = _hemdta;
this._pdue = _pdue;
if (this[65532] != true) {
this[65532] = true;
GOS.gamePauseController.addListener(this);
}
}
}
movieClip 20100 corner_1110 {
frame 1 {
this._hemdta = _hemdta;
this._pdue = _pdue;
if (this[65532] != true) {
this[65532] = true;
GOS.gamePauseController.addListener(this);
}
}
}
movieClip 20101 corner_1101 {
frame 1 {
this._hemdta = _hemdta;
this._pdue = _pdue;
if (this[65532] != true) {
this[65532] = true;
GOS.gamePauseController.addListener(this);
}
}
}
movieClip 20102 corner_1011 {
frame 1 {
this._hemdta = _hemdta;
this._pdue = _pdue;
if (this[65532] != true) {
this[65532] = true;
GOS.gamePauseController.addListener(this);
}
}
}
movieClip 20103 corner_0111 {
frame 1 {
this._hemdta = _hemdta;
this._pdue = _pdue;
if (this[65532] != true) {
this[65532] = true;
GOS.gamePauseController.addListener(this);
}
}
}
movieClip 20104 corner_1111 {
frame 1 {
this._hemdta = _hemdta;
this._pdue = _pdue;
if (this[65532] != true) {
this[65532] = true;
GOS.gamePauseController.addListener(this);
}
}
}
movieClip 20105 corner_1100 {
frame 1 {
this._hemdta = _hemdta;
this._pdue = _pdue;
if (this[65532] != true) {
this[65532] = true;
GOS.gamePauseController.addListener(this);
}
}
}
movieClip 20107 wall_1100 {
frame 1 {
this._hemdta = _hemdta;
this._pdue = _pdue;
if (this[65532] != true) {
this[65532] = true;
GOS.gamePauseController.addListener(this);
}
}
}
movieClip 20109 wall_0101 {
frame 1 {
this._hemdta = _hemdta;
this._pdue = _pdue;
if (this[65532] != true) {
this[65532] = true;
GOS.gamePauseController.addListener(this);
}
}
}
movieClip 20111 wall_1200 {
frame 1 {
this._hemdta = _hemdta;
this._pdue = _pdue;
if (this[65532] != true) {
this[65532] = true;
GOS.gamePauseController.addListener(this);
}
}
}
movieClip 20113 wall_0201 {
frame 1 {
this._hemdta = _hemdta;
this._pdue = _pdue;
if (this[65532] != true) {
this[65532] = true;
GOS.gamePauseController.addListener(this);
}
}
}
movieClip 20114 wall_1201 {
frame 1 {
this._hemdta = _hemdta;
this._pdue = _pdue;
if (this[65532] != true) {
this[65532] = true;
GOS.gamePauseController.addListener(this);
}
}
}
movieClip 20116 wall_0021 {
frame 1 {
this._hemdta = _hemdta;
this._pdue = _pdue;
if (this[65532] != true) {
this[65532] = true;
GOS.gamePauseController.addListener(this);
}
}
}
movieClip 20118 wall_1020 {
frame 1 {
this._hemdta = _hemdta;
this._pdue = _pdue;
if (this[65532] != true) {
this[65532] = true;
GOS.gamePauseController.addListener(this);
}
}
}
movieClip 20119 wall_1021 {
frame 1 {
this._hemdta = _hemdta;
this._pdue = _pdue;
if (this[65532] != true) {
this[65532] = true;
GOS.gamePauseController.addListener(this);
}
}
}
movieClip 20121 wall_0001 {
frame 1 {
this._hemdta = _hemdta;
this._pdue = _pdue;
if (this[65532] != true) {
this[65532] = true;
GOS.gamePauseController.addListener(this);
}
}
}
movieClip 20123 wall_1000 {
frame 1 {
this._hemdta = _hemdta;
this._pdue = _pdue;
if (this[65532] != true) {
this[65532] = true;
GOS.gamePauseController.addListener(this);
}
}
}
movieClip 20124 wall_1001 {
frame 1 {
this._hemdta = _hemdta;
this._pdue = _pdue;
if (this[65532] != true) {
this[65532] = true;
GOS.gamePauseController.addListener(this);
}
}
}
movieClip 20126 wall_0102 {
frame 1 {
this._hemdta = _hemdta;
this._pdue = _pdue;
if (this[65532] != true) {
this[65532] = true;
GOS.gamePauseController.addListener(this);
}
}
}
movieClip 20128 wall_0012 {
frame 1 {
this._hemdta = _hemdta;
this._pdue = _pdue;
if (this[65532] != true) {
this[65532] = true;
GOS.gamePauseController.addListener(this);
}
}
}
movieClip 20129 wall_0112 {
frame 1 {
this._hemdta = _hemdta;
this._pdue = _pdue;
if (this[65532] != true) {
this[65532] = true;
GOS.gamePauseController.addListener(this);
}
}
}
movieClip 20131 wall_2010 {
frame 1 {
this._hemdta = _hemdta;
this._pdue = _pdue;
if (this[65532] != true) {
this[65532] = true;
GOS.gamePauseController.addListener(this);
}
}
}
movieClip 20133 wall_2100 {
frame 1 {
this._hemdta = _hemdta;
this._pdue = _pdue;
if (this[65532] != true) {
this[65532] = true;
GOS.gamePauseController.addListener(this);
}
}
}
movieClip 20134 wall_2110 {
frame 1 {
this._hemdta = _hemdta;
this._pdue = _pdue;
if (this[65532] != true) {
this[65532] = true;
GOS.gamePauseController.addListener(this);
}
}
}
movieClip 20136 wall_0100 {
frame 1 {
this._hemdta = _hemdta;
this._pdue = _pdue;
if (this[65532] != true) {
this[65532] = true;
GOS.gamePauseController.addListener(this);
}
}
}
movieClip 20138 wall_0010 {
frame 1 {
this._hemdta = _hemdta;
this._pdue = _pdue;
if (this[65532] != true) {
this[65532] = true;
GOS.gamePauseController.addListener(this);
}
}
}
movieClip 20139 wall_0110 {
frame 1 {
this._hemdta = _hemdta;
this._pdue = _pdue;
if (this[65532] != true) {
this[65532] = true;
GOS.gamePauseController.addListener(this);
}
}
}
movieClip 20146 wall_0011 {
frame 1 {
this._hemdta = _hemdta;
this._pdue = _pdue;
if (this[65532] != true) {
this[65532] = true;
GOS.gamePauseController.addListener(this);
}
}
frame 1 {
stop();
}
}
movieClip 20221 {
frame 1 {
this._hemdta = _hemdta;
this._pdue = _pdue;
if (this[65532] != true) {
this[65532] = true;
GOS.gamePauseController.addListener(this);
}
}
frame 1 {
stop();
}
}
movieClip 20222 {
frame 1 {
this._hemdta = _hemdta;
this._pdue = _pdue;
if (this[65532] != true) {
this[65532] = true;
GOS.gamePauseController.addListener(this);
}
}
frame 1 {
stop();
}
}
movieClip 20295 {
frame 1 {
this._hemdta = _hemdta;
this._pdue = _pdue;
if (this[65532] != true) {
this[65532] = true;
GOS.gamePauseController.addListener(this);
}
}
frame 1 {
stop();
}
}
movieClip 20298 {
frame 1 {
this._hemdta = _hemdta;
this._pdue = _pdue;
if (this[65532] != true) {
this[65532] = true;
GOS.gamePauseController.addListener(this);
}
}
}
movieClip 20371 {
frame 1 {
this._hemdta = _hemdta;
this._pdue = _pdue;
if (this[65532] != true) {
this[65532] = true;
GOS.gamePauseController.addListener(this);
}
}
frame 1 {
stop();
}
}
movieClip 20372 {
frame 1 {
this._hemdta = _hemdta;
this._pdue = _pdue;
if (this[65532] != true) {
this[65532] = true;
GOS.gamePauseController.addListener(this);
}
}
frame 1 {
stop();
}
}
movieClip 20373 mech {
frame 1 {
this._hemdta = _hemdta;
this._pdue = _pdue;
if (this[65532] != true) {
this[65532] = true;
GOS.gamePauseController.addListener(this);
}
}
frame 1 {
stop();
this.busy = false;
}
frame 1 {
this.moveFeet(0, 0, 0);
this.setAll();
}
frame 1 {
this.speed = 4;
this.setSpeed();
this.neck_x = 0;
this.torso_x = -15;
this.gun_x = 0;
this.setAll();
}
frame 1 {
this.stepSound();
}
frame 10 {
}
frame 10 {
this.moveFeet(0, -this.speed, -5);
}
frame 10 {
this.speed = 12;
this.setSpeed();
this.neck_x = 30;
this.torso_x = 10;
this.gun_x = 15;
}
frame 11 {
this.moveFeet(0, -2 * this.speed, 0);
}
frame 12 {
this.moveFeet(0, -3 * this.speed, 0);
}
frame 12 {
++_pdue.layer_id;
this._parent.attachMovie('dym01', 'dym' + _pdue.layer_id, _pdue.layer_id, {'_x': this._x - this.x_speed * 2, '_y': this._y - this.y_speed * 2 + 20});
}
frame 12 {
this.stepSound();
}
frame 13 {
this.moveFeet(0, -2 * this.speed, 0);
}
frame 14 {
this.moveFeet(0, -1 * this.speed, 5);
}
frame 15 {
this.moveFeet(0, 0, 10);
}
frame 16 {
this.moveFeet(0, 1 * this.speed, 5);
}
frame 17 {
this.moveFeet(0, 2 * this.speed, 0);
}
frame 17 {
++_pdue.layer_id;
this._parent.attachMovie('dym01', 'dym' + _pdue.layer_id, _pdue.layer_id, {'_x': this._x - this.x_speed * 2, '_y': this._y - this.y_speed * 2 + 20});
}
frame 18 {
this.moveFeet(0, 3 * this.speed, 0);
}
frame 18 {
this.stepSound();
}
frame 19 {
this.moveFeet(0, 2 * this.speed, 0);
}
frame 20 {
this.moveFeet(0, this.speed, -5);
}
frame 21 {
this.moveFeet(0, 0, -10);
}
frame 21 {
++_pdue.layer_id;
this._parent.attachMovie('dym01', 'dym' + _pdue.layer_id, _pdue.layer_id, {'_x': this._x - this.x_speed * 2, '_y': this._y - this.y_speed * 2 + 20});
}
frame 22 {
gotoAndPlay('goForward');
}
frame 26 {
this.busy = true;
}
frame 26 {
this.moveFeet(0, 0, -10);
}
frame 27 {
this.moveFeet(this.speed, 0, -10);
}
frame 28 {
this.moveFeet(2 * this.speed, 0, -8);
}
frame 29 {
this.moveFeet(3 * this.speed, 0, -6);
}
frame 30 {
this.moveFeet(4 * this.speed, 0, -4);
}
frame 30 {
this.stepSound();
}
frame 31 {
this.moveFeet(5 * this.speed, 0, -2);
}
frame 32 {
this.moveFeet(6 * this.speed, 0, 0);
}
frame 33 {
this.moveFeet(5 * this.speed, 0, 2);
}
frame 34 {
this.moveFeet(4 * this.speed, 0, 4);
}
frame 35 {
this.moveFeet(3 * this.speed, 0, 6);
}
frame 36 {
this.moveFeet(2 * this.speed, 0, 8);
}
frame 37 {
this.moveFeet(1 * this.speed, 0, 10);
}
frame 38 {
this.moveFeet(0, 0, 10);
}
frame 39 {
this.moveFeet(-1 * this.speed, 0, 10);
}
frame 40 {
this.moveFeet(-2 * this.speed, 0, 8);
}
frame 41 {
this.moveFeet(-3 * this.speed, 0, 6);
}
frame 41 {
this.stepSound();
}
frame 42 {
this.moveFeet(-4 * this.speed, 0, 4);
}
frame 43 {
this.moveFeet(-5 * this.speed, 0, 2);
}
frame 44 {
this.moveFeet(-6 * this.speed, 0, 0);
}
frame 45 {
this.moveFeet(-5 * this.speed, 0, -2);
}
frame 46 {
this.moveFeet(-4 * this.speed, 0, -4);
}
frame 47 {
this.moveFeet(-3 * this.speed, 0, -6);
}
frame 48 {
this.moveFeet(-2 * this.speed, 0, -8);
}
frame 49 {
this.moveFeet(-this.speed, 0, -10);
}
frame 49 {
this.speed = 6;
this.turn_speed = 6;
this.setSpeed();
}
frame 50 {
this.moveFeet(-this.speed, 0, -5);
}
frame 51 {
this.moveFeet(-2 * this.speed, 0, 0);
}
frame 52 {
this.moveFeet(-3 * this.speed, 0, 0);
}
frame 52 {
++_pdue.layer_id;
this._parent.attachMovie('dym01', 'dym' + _pdue.layer_id, _pdue.layer_id, {'_x': this._x - this.x_speed * 2, '_y': this._y - this.y_speed * 2 + 20});
}
frame 52 {
this.stepSound();
}
frame 53 {
this.moveFeet(-2 * this.speed, 0, 0);
}
frame 54 {
this.moveFeet(-1 * this.speed, 0, 5);
}
frame 55 {
this.moveFeet(0, 0, 10);
}
frame 56 {
this.moveFeet(1 * this.speed, 0, 5);
}
frame 57 {
this.moveFeet(2 * this.speed, 0, 0);
}
frame 57 {
++_pdue.layer_id;
this._parent.attachMovie('dym01', 'dym' + _pdue.layer_id, _pdue.layer_id, {'_x': this._x - this.x_speed * 2, '_y': this._y - this.y_speed * 2 + 20});
}
frame 58 {
this.moveFeet(3 * this.speed, 0, 0);
}
frame 58 {
this.stepSound();
}
frame 59 {
this.moveFeet(2 * this.speed, 0, 0);
}
frame 60 {
this.moveFeet(this.speed, 0, -5);
}
frame 61 {
this.moveFeet(0, 0, -10);
}
frame 61 {
++_pdue.layer_id;
this._parent.attachMovie('dym01', 'dym' + _pdue.layer_id, _pdue.layer_id, {'_x': this._x - this.x_speed * 2, '_y': this._y - this.y_speed * 2 + 20});
}
frame 62 {
gotoAndPlay('goFastLeft');
}
frame 74 {
this.busy = true;
}
frame 74 {
this.moveFeet(-this.speed, 0, -10);
}
frame 75 {
this.moveFeet(-2 * this.speed, 0, -8);
}
frame 76 {
this.moveFeet(-3 * this.speed, 0, -6);
}
frame 77 {
this.moveFeet(-4 * this.speed, 0, -4);
}
frame 78 {
this.moveFeet(-5 * this.speed, 0, -2);
}
frame 78 {
this.stepSound();
}
frame 79 {
this.moveFeet(-6 * this.speed, 0, 0);
}
frame 80 {
this.moveFeet(-5 * this.speed, 0, 2);
}
frame 81 {
this.moveFeet(-4 * this.speed, 0, 4);
}
frame 82 {
this.moveFeet(-3 * this.speed, 0, 6);
}
frame 83 {
this.moveFeet(-2 * this.speed, 0, 8);
}
frame 84 {
this.moveFeet(-1 * this.speed, 0, 10);
}
frame 85 {
this.moveFeet(0, 0, 10);
}
frame 86 {
this.moveFeet(1 * this.speed, 0, 10);
}
frame 87 {
this.moveFeet(2 * this.speed, 0, 8);
}
frame 88 {
this.moveFeet(3 * this.speed, 0, 6);
}
frame 89 {
this.moveFeet(4 * this.speed, 0, 4);
}
frame 89 {
this.stepSound();
}
frame 90 {
this.moveFeet(5 * this.speed, 0, 2);
}
frame 91 {
this.moveFeet(6 * this.speed, 0, 0);
}
frame 92 {
this.moveFeet(5 * this.speed, 0, -2);
}
frame 93 {
this.moveFeet(4 * this.speed, 0, -4);
}
frame 94 {
this.moveFeet(3 * this.speed, 0, -6);
}
frame 95 {
this.moveFeet(2 * this.speed, 0, -8);
}
frame 96 {
this.moveFeet(this.speed, 0, -10);
}
frame 97 {
this.moveFeet(0, 0, -10);
}
frame 97 {
this.speed = 6;
this.turn_speed = 6;
this.setSpeed();
}
frame 98 {
this.moveFeet(-this.speed, 0, -5);
}
frame 99 {
this.moveFeet(-2 * this.speed, 0, 0);
}
frame 100 {
this.moveFeet(-3 * this.speed, 0, 0);
}
frame 100 {
++_pdue.layer_id;
this._parent.attachMovie('dym01', 'dym' + _pdue.layer_id, _pdue.layer_id, {'_x': this._x - this.x_speed * 2, '_y': this._y - this.y_speed * 2 + 20});
}
frame 100 {
this.stepSound();
}
frame 101 {
this.moveFeet(-2 * this.speed, 0, 0);
}
frame 102 {
this.moveFeet(-1 * this.speed, 0, 5);
}
frame 103 {
this.moveFeet(0, 0, 10);
}
frame 104 {
this.moveFeet(1 * this.speed, 0, 5);
}
frame 105 {
this.moveFeet(2 * this.speed, 0, 0);
}
frame 105 {
++_pdue.layer_id;
this._parent.attachMovie('dym01', 'dym' + _pdue.layer_id, _pdue.layer_id, {'_x': this._x - this.x_speed * 2, '_y': this._y - this.y_speed * 2 + 20});
}
frame 106 {
this.moveFeet(3 * this.speed, 0, 0);
}
frame 106 {
this.stepSound();
}
frame 107 {
this.moveFeet(2 * this.speed, 0, 0);
}
frame 108 {
this.moveFeet(this.speed, 0, -5);
}
frame 109 {
this.moveFeet(0, 0, -10);
}
frame 109 {
++_pdue.layer_id;
this._parent.attachMovie('dym01', 'dym' + _pdue.layer_id, _pdue.layer_id, {'_x': this._x - this.x_speed * 2, '_y': this._y - this.y_speed * 2 + 20});
}
frame 110 {
gotoAndPlay('goFastRight');
}
frame 116 {
}
frame 116 {
this.moveFeet(0, -this.speed, -5);
}
frame 117 {
this.moveFeet(0, -2 * this.speed, 0);
}
frame 118 {
this.moveFeet(0, -3 * this.speed, 0);
}
frame 118 {
this.stepSound();
}
frame 119 {
this.moveFeet(0, -2 * this.speed, 0);
}
frame 120 {
this.moveFeet(0, -1 * this.speed, 5);
}
frame 121 {
this.moveFeet(0, 0, 10);
}
frame 122 {
this.moveFeet(0, 1 * this.speed, 5);
}
frame 123 {
this.moveFeet(0, 2 * this.speed, 0);
}
frame 124 {
this.moveFeet(0, 3 * this.speed, 0);
}
frame 124 {
this.stepSound();
}
frame 125 {
this.moveFeet(0, 2 * this.speed, 0);
}
frame 126 {
this.moveFeet(0, this.speed, -5);
}
frame 127 {
this.moveFeet(0, 0, -10);
}
frame 128 {
gotoAndPlay('turnLeft');
}
frame 132 {
}
frame 132 {
this.moveFeet(0, this.speed, -5);
}
frame 133 {
this.moveFeet(0, 2 * this.speed, 0);
}
frame 134 {
this.moveFeet(0, 3 * this.speed, 0);
}
frame 134 {
this.stepSound();
}
frame 135 {
this.moveFeet(0, 2 * this.speed, 0);
}
frame 136 {
this.moveFeet(0, 1 * this.speed, 5);
}
frame 137 {
this.moveFeet(0, 0, 10);
}
frame 138 {
this.moveFeet(0, -1 * this.speed, 5);
}
frame 139 {
this.moveFeet(0, -2 * this.speed, 0);
}
frame 140 {
this.moveFeet(0, -3 * this.speed, 0);
}
frame 140 {
this.stepSound();
}
frame 141 {
this.moveFeet(0, -2 * this.speed, 0);
}
frame 142 {
this.moveFeet(0, -this.speed, -5);
}
frame 143 {
this.moveFeet(0, 0, -10);
}
frame 144 {
gotoAndPlay('turnRight');
}
}
movieClip 20376 {
frame 1 {
this._hemdta = _hemdta;
this._pdue = _pdue;
if (this[65532] != true) {
this[65532] = true;
GOS.gamePauseController.addListener(this);
}
}
}
movieClip 20377 {
frame 1 {
this._hemdta = _hemdta;
this._pdue = _pdue;
if (this[65532] != true) {
this[65532] = true;
GOS.gamePauseController.addListener(this);
}
}
}
movieClip 20450 palka {
frame 1 {
this._hemdta = _hemdta;
this._pdue = _pdue;
if (this[65532] != true) {
this[65532] = true;
GOS.gamePauseController.addListener(this);
}
}
frame 1 {
stop();
}
}
movieClip 20523 gunL {
frame 1 {
this._hemdta = _hemdta;
this._pdue = _pdue;
if (this[65532] != true) {
this[65532] = true;
GOS.gamePauseController.addListener(this);
}
}
frame 1 {
stop();
}
}
movieClip 20596 gunR {
frame 1 {
this._hemdta = _hemdta;
this._pdue = _pdue;
if (this[65532] != true) {
this[65532] = true;
GOS.gamePauseController.addListener(this);
}
}
frame 1 {
stop();
}
}
movieClip 20597 ptaki {
frame 1 {
this._hemdta = _hemdta;
this._pdue = _pdue;
if (this[65532] != true) {
this[65532] = true;
GOS.gamePauseController.addListener(this);
}
}
}
movieClip 20611 sand_mask_box {
frame 1 {
this._hemdta = _hemdta;
this._pdue = _pdue;
if (this[65532] != true) {
this[65532] = true;
GOS.gamePauseController.addListener(this);
}
}
frame 1 {
stop();
}
}
movieClip 20613 {
frame 1 {
this._hemdta = _hemdta;
this._pdue = _pdue;
if (this[65532] != true) {
this[65532] = true;
GOS.gamePauseController.addListener(this);
}
}
}
movieClip 20614 {
frame 1 {
this._hemdta = _hemdta;
this._pdue = _pdue;
if (this[65532] != true) {
this[65532] = true;
GOS.gamePauseController.addListener(this);
}
}
frame 1 {
var component = _parent;
component.registerSkinElement(track_mc, 'scrollTrack');
}
}
movieClip 20615 FScrollBarSymbol {
frame 1 {
this._hemdta = _hemdta;
this._pdue = _pdue;
if (this[65532] != true) {
this[65532] = true;
GOS.gamePauseController.addListener(this);
}
}
frame 1 {
}
}
movieClip 20616 FListItemSymbol {
frame 1 {
this._hemdta = _hemdta;
this._pdue = _pdue;
if (this[65532] != true) {
this[65532] = true;
GOS.gamePauseController.addListener(this);
}
}
frame 1 {
}
}
movieClip 20617 DataProviderSymbol {
frame 1 {
this._hemdta = _hemdta;
this._pdue = _pdue;
if (this[65532] != true) {
this[65532] = true;
GOS.gamePauseController.addListener(this);
}
}
frame 1 {
}
}
movieClip 20618 FSelectableItemSymbol {
frame 1 {
this._hemdta = _hemdta;
this._pdue = _pdue;
if (this[65532] != true) {
this[65532] = true;
GOS.gamePauseController.addListener(this);
}
}
frame 1 {
}
}
movieClip 20619 FSelectableListSymbol {
frame 1 {
this._hemdta = _hemdta;
this._pdue = _pdue;
if (this[65532] != true) {
this[65532] = true;
GOS.gamePauseController.addListener(this);
}
}
frame 1 {
}
instance dPAsset of movieClip 20617 DataProviderSymbol {
onClipEvent (initialize) {
if (!this.enabled) {
// An attempt to read a value from empty stack
return undefined;
}
}
}
instance ItemAsset of movieClip 20618 FSelectableItemSymbol {
onClipEvent (initialize) {
if (!this.enabled) {
// An attempt to read a value from empty stack
return undefined;
}
}
}
}
movieClip 20620 FScrollSelectListSymbol {
frame 1 {
this._hemdta = _hemdta;
this._pdue = _pdue;
if (this[65532] != true) {
this[65532] = true;
GOS.gamePauseController.addListener(this);
}
}
frame 1 {
}
instance scrollBarAsset of movieClip 20615 FScrollBarSymbol {
onClipEvent (initialize) {
if (!this.enabled) {
// An attempt to read a value from empty stack
return undefined;
}
_targetInstanceName = '';
horizontal = false;
}
onClipEvent (load) {
this._height = 1;
this._width = 1;
}
}
instance superClassAsset of movieClip 20619 FSelectableListSymbol {
onClipEvent (initialize) {
if (!this.enabled) {
// An attempt to read a value from empty stack
return undefined;
}
}
}
}
movieClip 20622 {
frame 1 {
this._hemdta = _hemdta;
this._pdue = _pdue;
if (this[65532] != true) {
this[65532] = true;
GOS.gamePauseController.addListener(this);
}
}
}
movieClip 20625 FBoundingBoxSymbol {
frame 1 {
this._hemdta = _hemdta;
this._pdue = _pdue;
if (this[65532] != true) {
this[65532] = true;
GOS.gamePauseController.addListener(this);
}
}
frame 1 {
var component = _parent;
component.registerSkinElement(boundingBox, 'background');
stop();
}
frame 2 {
component.registerSkinElement(boundingBox2, 'backgroundDisabled');
stop();
}
}
movieClip 20627 {
frame 1 {
this._hemdta = _hemdta;
this._pdue = _pdue;
if (this[65532] != true) {
this[65532] = true;
GOS.gamePauseController.addListener(this);
}
}
}
movieClip 20628 FListBoxSymbol {
frame 1 {
this._hemdta = _hemdta;
this._pdue = _pdue;
if (this[65532] != true) {
this[65532] = true;
GOS.gamePauseController.addListener(this);
}
}
frame 1 {
this.deadPreview._visible = false;
}
instance superClassAsset of movieClip 20620 FScrollSelectListSymbol {
onClipEvent (initialize) {
if (!this.enabled) {
// An attempt to read a value from empty stack
return undefined;
}
}
}
}
movieClip 20631 {
frame 1 {
this._hemdta = _hemdta;
this._pdue = _pdue;
if (this[65532] != true) {
this[65532] = true;
GOS.gamePauseController.addListener(this);
}
}
}
movieClip 20633 {
frame 1 {
this._hemdta = _hemdta;
this._pdue = _pdue;
if (this[65532] != true) {
this[65532] = true;
GOS.gamePauseController.addListener(this);
}
}
}
movieClip 20636 {
frame 1 {
this._hemdta = _hemdta;
this._pdue = _pdue;
if (this[65532] != true) {
this[65532] = true;
GOS.gamePauseController.addListener(this);
}
}
}
movieClip 20639 {
frame 1 {
this._hemdta = _hemdta;
this._pdue = _pdue;
if (this[65532] != true) {
this[65532] = true;
GOS.gamePauseController.addListener(this);
}
}
}
movieClip 20642 {
frame 1 {
this._hemdta = _hemdta;
this._pdue = _pdue;
if (this[65532] != true) {
this[65532] = true;
GOS.gamePauseController.addListener(this);
}
}
}
movieClip 20646 {
frame 1 {
this._hemdta = _hemdta;
this._pdue = _pdue;
if (this[65532] != true) {
this[65532] = true;
GOS.gamePauseController.addListener(this);
}
}
}
movieClip 20650 {
frame 1 {
this._hemdta = _hemdta;
this._pdue = _pdue;
if (this[65532] != true) {
this[65532] = true;
GOS.gamePauseController.addListener(this);
}
}
}
movieClip 20652 {
frame 1 {
this._hemdta = _hemdta;
this._pdue = _pdue;
if (this[65532] != true) {
this[65532] = true;
GOS.gamePauseController.addListener(this);
}
}
}
movieClip 20654 {
frame 1 {
this._hemdta = _hemdta;
this._pdue = _pdue;
if (this[65532] != true) {
this[65532] = true;
GOS.gamePauseController.addListener(this);
}
}
}
movieClip 20655 {
frame 1 {
this._hemdta = _hemdta;
this._pdue = _pdue;
if (this[65532] != true) {
this[65532] = true;
GOS.gamePauseController.addListener(this);
}
}
frame 1 {
stop();
this.menu_game.onRollOver = function () {
var v1 = this;
v1.playSound('shift1', 100);
v1._parent.menu_bgame._alpha = 80;
v1._alpha = 100;
v1.onEnterFrame = function () {
var v1 = this;
if (v1._parent.menu_bgame._alpha > 20) {
v1._parent.menu_bgame._alpha -= 4;
} else {
delete v1.onEnterFrame;
}
};
};
this.menu_game.onRollOut = function () {
var v1 = this;
v1.onEnterFrame = function () {
var v1 = this;
if (v1._alpha > 50) {
v1._alpha -= 3;
if (v1._parent.menu_bgame._alpha > 20) {
v1._parent.menu_bgame._alpha -= 9;
}
} else {
delete v1.onEnterFrame;
}
};
};
this.menu_game.onPress = function () {
this.playSound('click1', 100);
this._parent._parent._parent.gotoAndPlay('game');
};
this.menu_multi.onRollOver = function () {
var v1 = this;
v1.playSound('shift1', 100);
v1._parent.menu_bmulti._alpha = 80;
v1._alpha = 100;
v1.onEnterFrame = function () {
var v1 = this;
if (v1._parent.menu_bmulti._alpha > 20) {
v1._parent.menu_bmulti._alpha -= 4;
} else {
delete v1.onEnterFrame;
}
};
};
this.menu_multi.onRollOut = function () {
var v1 = this;
v1.onEnterFrame = function () {
var v1 = this;
if (v1._alpha > 50) {
v1._alpha -= 3;
if (v1._parent.menu_bmulti._alpha > 20) {
v1._parent.menu_bmulti._alpha -= 9;
}
} else {
delete v1.onEnterFrame;
}
};
};
this.menu_multi.onPress = function () {
var v1 = this;
v1.playSound('click1', 100);
if (_global.__uid != undefined && _global.__uid != '') {
v1._parent._parent._parent.gotoAndPlay('multiChat');
} else {
v1._parent._parent._parent.gotoAndPlay('login');
}
};
this.menu_practice.onRollOver = function () {
var v1 = this;
v1.playSound('shift1', 100);
v1._parent.menu_bpractice._alpha = 80;
v1._alpha = 100;
v1.onEnterFrame = function () {
var v1 = this;
if (v1._parent.menu_bpractice._alpha > 20) {
v1._parent.menu_bpractice._alpha -= 4;
} else {
delete v1.onEnterFrame;
}
};
};
this.menu_practice.onRollOut = function () {
var v1 = this;
v1.onEnterFrame = function () {
var v1 = this;
if (v1._alpha > 50) {
v1._alpha -= 3;
if (v1._parent.menu_bpractice._alpha > 20) {
v1._parent.menu_bpractice._alpha -= 9;
}
} else {
delete v1.onEnterFrame;
}
};
};
this.menu_practice.onPress = function () {
this.playSound('click1', 100);
GOS.API.scoreBoard();
};
this.menu_help.onPress = function () {
this.playSound('click1', 100);
GOS.API.showControls();
GOS.API.showObjectives();
};
}
}
movieClip 20658 {
frame 1 {
this._hemdta = _hemdta;
this._pdue = _pdue;
if (this[65532] != true) {
this[65532] = true;
GOS.gamePauseController.addListener(this);
}
}
}
movieClip 20659 {
frame 1 {
this._hemdta = _hemdta;
this._pdue = _pdue;
if (this[65532] != true) {
this[65532] = true;
GOS.gamePauseController.addListener(this);
}
}
frame 4 {
this.playSound('siup2', 100);
}
frame 18 {
this.playSound('step4', 100);
}
frame 27 {
this.playSound('puk', 100);
}
frame 38 {
this.playSound('puk', 100);
}
frame 53 {
this.playSound('oklaski1', 50);
}
frame 58 {
this.playSound('puk', 100);
}
frame 64 {
stop();
}
}
movieClip 20661 {
frame 1 {
this._hemdta = _hemdta;
this._pdue = _pdue;
if (this[65532] != true) {
this[65532] = true;
GOS.gamePauseController.addListener(this);
}
}
}
movieClip 20664 {
frame 1 {
this._hemdta = _hemdta;
this._pdue = _pdue;
if (this[65532] != true) {
this[65532] = true;
GOS.gamePauseController.addListener(this);
}
}
}
movieClip 20665 {
frame 1 {
this._hemdta = _hemdta;
this._pdue = _pdue;
if (this[65532] != true) {
this[65532] = true;
GOS.gamePauseController.addListener(this);
}
}
}
movieClip 20666 {
frame 1 {
this._hemdta = _hemdta;
this._pdue = _pdue;
if (this[65532] != true) {
this[65532] = true;
GOS.gamePauseController.addListener(this);
}
}
frame 1 {
this.sand.setMask(this.sand_mask);
}
}
movieClip 20667 {
frame 1 {
this._hemdta = _hemdta;
this._pdue = _pdue;
if (this[65532] != true) {
this[65532] = true;
GOS.gamePauseController.addListener(this);
}
}
}
movieClip 20669 {
frame 1 {
this._hemdta = _hemdta;
this._pdue = _pdue;
if (this[65532] != true) {
this[65532] = true;
GOS.gamePauseController.addListener(this);
}
}
}
movieClip 20670 {
frame 1 {
this._hemdta = _hemdta;
this._pdue = _pdue;
if (this[65532] != true) {
this[65532] = true;
GOS.gamePauseController.addListener(this);
}
}
frame 1 {
}
}
movieClip 20673 {
frame 1 {
this._hemdta = _hemdta;
this._pdue = _pdue;
if (this[65532] != true) {
this[65532] = true;
GOS.gamePauseController.addListener(this);
}
}
}
movieClip 20675 {
frame 1 {
this._hemdta = _hemdta;
this._pdue = _pdue;
if (this[65532] != true) {
this[65532] = true;
GOS.gamePauseController.addListener(this);
}
}
frame 1 {
this._visible = false;
this.swapDepths(100000 + this._y);
}
}
movieClip 20679 {
frame 1 {
this._hemdta = _hemdta;
this._pdue = _pdue;
if (this[65532] != true) {
this[65532] = true;
GOS.gamePauseController.addListener(this);
}
}
frame 1 {
this.swapDepthsNR(this._y - 1000, 2);
}
}
movieClip 20681 {
frame 1 {
this._hemdta = _hemdta;
this._pdue = _pdue;
if (this[65532] != true) {
this[65532] = true;
GOS.gamePauseController.addListener(this);
}
}
frame 1 {
this.swapDepthsNR(this._y, 2);
}
}
movieClip 20684 {
frame 1 {
this._hemdta = _hemdta;
this._pdue = _pdue;
if (this[65532] != true) {
this[65532] = true;
GOS.gamePauseController.addListener(this);
}
}
}
movieClip 20686 {
frame 1 {
this._hemdta = _hemdta;
this._pdue = _pdue;
if (this[65532] != true) {
this[65532] = true;
GOS.gamePauseController.addListener(this);
}
}
}
movieClip 20687 {
frame 1 {
this._hemdta = _hemdta;
this._pdue = _pdue;
if (this[65532] != true) {
this[65532] = true;
GOS.gamePauseController.addListener(this);
}
}
}
movieClip 20689 {
frame 1 {
this._hemdta = _hemdta;
this._pdue = _pdue;
if (this[65532] != true) {
this[65532] = true;
GOS.gamePauseController.addListener(this);
}
}
}
movieClip 20691 {
frame 1 {
this._hemdta = _hemdta;
this._pdue = _pdue;
if (this[65532] != true) {
this[65532] = true;
GOS.gamePauseController.addListener(this);
}
}
frame 1 {
stop();
}
}
movieClip 20692 {
frame 1 {
this._hemdta = _hemdta;
this._pdue = _pdue;
if (this[65532] != true) {
this[65532] = true;
GOS.gamePauseController.addListener(this);
}
}
frame 1 {
stop();
}
}
movieClip 20693 {
frame 1 {
this._hemdta = _hemdta;
this._pdue = _pdue;
if (this[65532] != true) {
this[65532] = true;
GOS.gamePauseController.addListener(this);
}
}
}
movieClip 20694 {
frame 1 {
this._hemdta = _hemdta;
this._pdue = _pdue;
if (this[65532] != true) {
this[65532] = true;
GOS.gamePauseController.addListener(this);
}
}
}
movieClip 20695 {
frame 1 {
this._hemdta = _hemdta;
this._pdue = _pdue;
if (this[65532] != true) {
this[65532] = true;
GOS.gamePauseController.addListener(this);
}
}
frame 1 {
this.swapDepthsNR(this._y + 10000, 2);
}
}
movieClip 20696 {
frame 1 {
this._hemdta = _hemdta;
this._pdue = _pdue;
if (this[65532] != true) {
this[65532] = true;
GOS.gamePauseController.addListener(this);
}
}
frame 1 {
this.tree2.swapDepths(9999999);
this.sciema.swapDepths(201);
this.tree1.swapDepths(602);
this.tree_shadow.swapDepths(601);
this.pointer1.swapDepths(661);
this.pointer2.swapDepths(662);
this.hole.swapDepths(600);
this.wall.swapDepths(500);
this.sand.swapDepths(300);
this.grass.swapDepths(200);
}
}
movieClip 20697 {
frame 1 {
this._hemdta = _hemdta;
this._pdue = _pdue;
if (this[65532] != true) {
this[65532] = true;
GOS.gamePauseController.addListener(this);
}
}
}
movieClip 20702 {
frame 1 {
this._hemdta = _hemdta;
this._pdue = _pdue;
if (this[65532] != true) {
this[65532] = true;
GOS.gamePauseController.addListener(this);
}
}
}
movieClip 20704 {
frame 1 {
this._hemdta = _hemdta;
this._pdue = _pdue;
if (this[65532] != true) {
this[65532] = true;
GOS.gamePauseController.addListener(this);
}
}
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 20706 {
frame 1 {
this._hemdta = _hemdta;
this._pdue = _pdue;
if (this[65532] != true) {
this[65532] = true;
GOS.gamePauseController.addListener(this);
}
}
}
movieClip 20707 {
frame 1 {
this._hemdta = _hemdta;
this._pdue = _pdue;
if (this[65532] != true) {
this[65532] = true;
GOS.gamePauseController.addListener(this);
}
}
frame 1 {
stop();
this.zoomOut.tabEnabled = false;
this.zoomOut.onPress = function () {
var v1 = this;
v1.playSound('camera1', 30);
if (v1._parent.zoom._currentframe == 1) {
v1.zoom1();
} else {
v1.zoom2();
}
};
this.zoomOut.zoom2 = function () {
this._parent.zoom.gotoAndStop(1);
this._parent._parent.zoomView(60);
};
this.zoomOut.zoom1 = function () {
this._parent.zoom.gotoAndStop(2);
this._parent._parent.zoomView(100);
};
}
}
movieClip 20712 {
frame 1 {
this._hemdta = _hemdta;
this._pdue = _pdue;
if (this[65532] != true) {
this[65532] = true;
GOS.gamePauseController.addListener(this);
}
}
}
movieClip 20723 {
frame 1 {
this._hemdta = _hemdta;
this._pdue = _pdue;
if (this[65532] != true) {
this[65532] = true;
GOS.gamePauseController.addListener(this);
}
}
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 20729 {
frame 1 {
this._hemdta = _hemdta;
this._pdue = _pdue;
if (this[65532] != true) {
this[65532] = true;
GOS.gamePauseController.addListener(this);
}
}
frame 1 {
function update() {
var v1 = this;
var v2 = _global;
name1 = v2.player1_name;
b0.strokes = v2.score1.strokes[v2.level_id];
b0.nr = v2.level_id;
i = 1;
while (i < 10) {
v1['b' + i].strokes = v2.score1.strokes[i];
v1['b' + i].nr = i;
++i;
}
v1.btotal.strokes = v2.score1.total;
}
GOS.API.registerScoreVariable('_global.score1.total', false);
this.onRollOver = function () {
this.playSound('shift1', 100);
this.gotoAndPlay('9holes');
};
this.onRollOut = function () {
this.playSound('shift1', 100);
this.gotoAndPlay('1hole');
};
}
frame 2 {
stop();
this.b0.gotoAndStop('zaznacz');
this.update();
}
frame 4 {
stop();
this['b' + _global.level_id].gotoAndStop('zaznacz');
this.update();
}
}
movieClip 20733 {
frame 1 {
this._hemdta = _hemdta;
this._pdue = _pdue;
if (this[65532] != true) {
this[65532] = true;
GOS.gamePauseController.addListener(this);
}
}
}
movieClip 20734 {
frame 1 {
this._hemdta = _hemdta;
this._pdue = _pdue;
if (this[65532] != true) {
this[65532] = true;
GOS.gamePauseController.addListener(this);
}
}
instance of movieClip 20733 {
onClipEvent (enterFrame) {
if (!this.enabled) {
// An attempt to read a value from empty stack
return undefined;
}
this._rotation += 12;
}
}
instance of movieClip 20733 {
onClipEvent (enterFrame) {
if (!this.enabled) {
// An attempt to read a value from empty stack
return undefined;
}
this._rotation += 1;
}
}
}
movieClip 20735 {
frame 1 {
this._hemdta = _hemdta;
this._pdue = _pdue;
if (this[65532] != true) {
this[65532] = true;
GOS.gamePauseController.addListener(this);
}
}
}
movieClip 20736 {
frame 1 {
this._hemdta = _hemdta;
this._pdue = _pdue;
if (this[65532] != true) {
this[65532] = true;
GOS.gamePauseController.addListener(this);
}
}
frame 1 {
stop();
}
frame 15 {
stop();
}
}
movieClip 20738 {
frame 1 {
this._hemdta = _hemdta;
this._pdue = _pdue;
if (this[65532] != true) {
this[65532] = true;
GOS.gamePauseController.addListener(this);
}
}
}
movieClip 20740 {
frame 1 {
this._hemdta = _hemdta;
this._pdue = _pdue;
if (this[65532] != true) {
this[65532] = true;
GOS.gamePauseController.addListener(this);
}
}
}
movieClip 20741 {
frame 1 {
this._hemdta = _hemdta;
this._pdue = _pdue;
if (this[65532] != true) {
this[65532] = true;
GOS.gamePauseController.addListener(this);
}
}
}
movieClip 20743 {
frame 1 {
this._hemdta = _hemdta;
this._pdue = _pdue;
if (this[65532] != true) {
this[65532] = true;
GOS.gamePauseController.addListener(this);
}
}
frame 1 {
stop();
this.onPress = function () {
this.playSound('shift1', 100);
this.gotoAndStop('book');
};
}
frame 2 {
this.onPress = function () {
this.playSound('shift1', 100);
this.gotoAndStop('icon');
};
}
}
button 20750 {
on (press) {
gotoAndStop('start');
}
}
movieClip 20751 {
frame 1 {
this._hemdta = _hemdta;
this._pdue = _pdue;
if (this[65532] != true) {
this[65532] = true;
GOS.gamePauseController.addListener(this);
}
}
}
movieClip 20756 {
frame 1 {
this._hemdta = _hemdta;
this._pdue = _pdue;
if (this[65532] != true) {
this[65532] = true;
GOS.gamePauseController.addListener(this);
}
}
}
movieClip 20758 {
frame 1 {
this._hemdta = _hemdta;
this._pdue = _pdue;
if (this[65532] != true) {
this[65532] = true;
GOS.gamePauseController.addListener(this);
}
}
}
movieClip 20760 {
frame 1 {
this._hemdta = _hemdta;
this._pdue = _pdue;
if (this[65532] != true) {
this[65532] = true;
GOS.gamePauseController.addListener(this);
}
}
}
movieClip 20763 {
frame 1 {
this._hemdta = _hemdta;
this._pdue = _pdue;
if (this[65532] != true) {
this[65532] = true;
GOS.gamePauseController.addListener(this);
}
}
}
movieClip 20765 {
frame 1 {
this._hemdta = _hemdta;
this._pdue = _pdue;
if (this[65532] != true) {
this[65532] = true;
GOS.gamePauseController.addListener(this);
}
}
}
movieClip 20767 {
frame 1 {
this._hemdta = _hemdta;
this._pdue = _pdue;
if (this[65532] != true) {
this[65532] = true;
GOS.gamePauseController.addListener(this);
}
}
}
movieClip 20768 {
frame 1 {
this._hemdta = _hemdta;
this._pdue = _pdue;
if (this[65532] != true) {
this[65532] = true;
GOS.gamePauseController.addListener(this);
}
}
}
movieClip 20770 {
frame 1 {
this._hemdta = _hemdta;
this._pdue = _pdue;
if (this[65532] != true) {
this[65532] = true;
GOS.gamePauseController.addListener(this);
}
}
}
movieClip 20771 {
frame 1 {
this._hemdta = _hemdta;
this._pdue = _pdue;
if (this[65532] != true) {
this[65532] = true;
GOS.gamePauseController.addListener(this);
}
}
}
movieClip 20772 {
frame 1 {
this._hemdta = _hemdta;
this._pdue = _pdue;
if (this[65532] != true) {
this[65532] = true;
GOS.gamePauseController.addListener(this);
}
}
}
movieClip 20774 {
frame 1 {
this._hemdta = _hemdta;
this._pdue = _pdue;
if (this[65532] != true) {
this[65532] = true;
GOS.gamePauseController.addListener(this);
}
}
}
movieClip 20775 {
frame 1 {
this._hemdta = _hemdta;
this._pdue = _pdue;
if (this[65532] != true) {
this[65532] = true;
GOS.gamePauseController.addListener(this);
}
}
frame 1 {
stop();
}
}
button 20784 {
on (press) {
this.playSound('click1', 100);
sel = _global.x.root.users.getSelectedItem();
if (sel != undefined) {
_global.x._invite(sel.data);
}
}
on (rollOver) {
this.playSound('shift1', 100);
}
}
button 20793 {
on (press) {
this.playSound('click1', 100);
sel_inv = _global.x.root.them.getSelectedItem();
if (sel_inv != undefined) {
_global.x._accept(sel_inv.data);
}
}
on (rollOver) {
this.playSound('shift1', 100);
}
}
button 20799 {
on (press) {
this.playSound('click1', 100);
sel_inv = _global.x.root.them.getSelectedItem();
if (sel_inv != undefined) {
_global.x._deny(sel_inv.data);
}
}
on (rollOver) {
this.playSound('shift1', 100);
}
}
button 20803 {
on (press, keyPress '<Enter>') {
if (!this.enabled) {
// An attempt to read a value from empty stack
return undefined;
}
this.playSound('click1', 100);
if (inp.length > 0) {
_global.x._public(inp);
inp = '';
}
Unknown action: 0x01
this.playSound('shift1', 100);
// An attempt to read a value from empty stack
// An attempt to read a value from empty stack
toggleHighQuality();
Unknown action: 0x39
// An attempt to read a value from empty stack
Unknown action: 0xaa
undefined > (typeof (undefined % undefined)) - 1;
}
on (release, rollOut, dragOut, keyPress 'P') {
// An attempt to read a value from empty stack
Unknown action: 0xba
!undefined;
!undefined;