Frame 1
_global.GOS = {fps:36, pid:9, vGos:"1.0", gid:195, domain:"flashtcp.com", ip:"82.195.151.44", port:80, hash:"2613bd784ac5e9f0"};
function bitOR(a, b) {
var _local1 = (a & 1) | (b & 1);
var _local2 = (a >>> 1) | (b >>> 1);
return((_local2 << 1) | _local1);
}
function bitXOR(a, b) {
var _local1 = (a & 1) ^ (b & 1);
var _local2 = (a >>> 1) ^ (b >>> 1);
return((_local2 << 1) | _local1);
}
function bitAND(a, b) {
var _local1 = (a & 1) & (b & 1);
var _local2 = (a >>> 1) & (b >>> 1);
return((_local2 << 1) | _local1);
}
function addme(x, y) {
var _local1 = (x & 65535) + (y & 65535);
var _local2 = ((x >> 16) + (y >> 16)) + (_local1 >> 16);
return((_local2 << 16) | (_local1 & 65535));
}
function rhex(num) {
var _local1 = num;
str = "";
j = 0;
while (j <= 3) {
str = str + (hex_chr.charAt((_local1 >> ((j * 8) + 4)) & 15) + hex_chr.charAt((_local1 >> (j * 8)) & 15));
j++;
}
return(str);
}
function str2blks_MD5(str) {
var _local1 = str;
nblk = ((_local1.length + 8) >> 6) + 1;
blks = new Array(nblk * 16);
i = 0;
while (i < (nblk * 16)) {
blks[i] = 0;
i++;
}
i = 0;
while (i < _local1.length) {
blks[i >> 2] = blks[i >> 2] | (_local1.charCodeAt(i) << ((((_local1.length * 8) + i) % 4) * 8));
i++;
}
blks[i >> 2] = blks[i >> 2] | (128 << ((((_local1.length * 8) + i) % 4) * 8));
var _local2 = _local1.length * 8;
blks[(nblk * 16) - 2] = _local2 & 255;
blks[(nblk * 16) - 2] = blks[(nblk * 16) - 2] | (((_local2 >>> 8) & 255) << 8);
blks[(nblk * 16) - 2] = blks[(nblk * 16) - 2] | (((_local2 >>> 16) & 255) << 16);
blks[(nblk * 16) - 2] = blks[(nblk * 16) - 2] | (((_local2 >>> 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 _local1 = b;
return(cmn(bitOR(bitAND(_local1, c), bitAND(~_local1, d)), a, _local1, 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 /* 0x67452301 */;
b = -271733879;
c = -1732584194;
d = 271733878 /* 0x10325476 */;
var _local1;
i = 0;
while (i < x.length) {
olda = a;
oldb = b;
oldc = c;
oldd = d;
_local1 = 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 = 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 _local1 = mc;
var _local2 = this;
if (_local1.ANG__fpsTuner___moveOn != undefined) {
} else {
_local1.stop();
_local1.fpsr = _fps / GOS.fps;
_local1._cf_ = _local1.fpsr;
trace((((_local1 + " ") + looped) + " ") + _local1._totalframes);
if (looped == false) {
_local1.ANG__fpsTuner___moveOn = _local2.moveOn_single;
} else {
_local1.ANG__fpsTuner___moveOn = _local2.moveOn_looped;
}
_local1.ANG__fpsTuner___rewind = _local2.rewindMovie;
_local2.addListener(_local1);
return(true);
}
return(undefined);
};
fpsTunerClass.prototype.rewindMovie = function () {
var _local1 = this;
_local1._cf_ = 1;
_local1.gotoAndStop(2);
for (i in _local1) {
if (_local1[i].ANG__fpsTuner___moveOn != undefined) {
_local1[i].ANG__fpsTuner___rewind();
}
}
};
fpsTunerClass.prototype.moveOn_looped = function () {
var _local1 = this;
var _local2 = _local1._cf_ + _local1.fpsr;
if ((_local2 > _local1._framesloaded) && (_local2 <= _local1._totalframes)) {
} else {
_local1._cf_ = _local2;
_local2 = (Math.round(_local1._cf_) % _local1._totalframes) + 1;
_local1.gotoAndStop(_local2);
}
};
fpsTunerClass.prototype.moveOn_single = function () {
var _local1 = this;
var _local2 = _local1._cf_ + _local1.fpsr;
if ((_local2 > _local1._framesloaded) && (_local2 <= _local1._totalframes)) {
} else {
_local1._cf_ = _local2;
if (_local1._cf_ >= (_local1._totalframes - 1)) {
_local2 = _local1._totalframes;
GOS.fpsTuner.removeListener(_local1);
trace(((((((_local1 + "\t") + _local1.fpsr) + "\t") + _local1._cf_) + "\t") + _local1._totalframes) + "\t");
_local1.movieDone();
} else {
_local2 = Math.round(_local1._cf_) + 1;
}
_local1.gotoAndStop(_local2);
}
};
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 _local1 = this;
_local1.mc = mc;
GOS.fpsTuner.addListener(_local1);
_local1.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 _local1 = mc;
var _local2 = this;
_local1.viewed = _local2.onAdViewed;
_local1.createEmptyMovieClip("onClickHandler", 5000);
_local1.createEmptyMovieClip("dummyMC", 5001);
_local1.onClickHandler.clear();
_local1.onClickHandler.lineStyle(0, 0, 0);
_local1.onClickHandler.beginFill(0, 0);
_local1.onClickHandler.moveTo(0, 0);
_local1.onClickHandler.lineTo(0, _local1._ht);
_local1.onClickHandler.lineTo(_local1._wd, _local1._ht);
_local1.onClickHandler.lineTo(_local1._wd, 0);
_local1.onClickHandler.lineTo(0, 0);
_local1.onClickHandler.endFill();
_local1.onClickHandler.onRelease = _local2.onAdClicked;
_local1.onRelease = function () {
this.onClickHandler.onRelease();
};
_local1.onView = _local2.onAdViewed;
debugMSG(("<font color='#ff0000'>" + _local1) + "</font>");
};
advertisingManagerClass.prototype.countClick = function (__cid) {
var _local1 = this;
var _local2 = __cid;
for (i in _local1.clicked) {
if (_local1.clicked[i] == _local2) {
return(false);
}
}
if (((GOS.adClicked != true) && (GOS.serv != undefined)) && (GOS.adError != true)) {
GOS.serv.cmd("C", {cid:_local2});
}
_local1.clicked.push(_local2);
return(true);
};
advertisingManagerClass.prototype.onAdClicked = function (_force) {
var _local1 = this;
if (GOS.StateVars.onClickActive.state == false) {
} else {
if (_local1._parent.onClickURL != undefined) {
getURL (_local1._parent.onClickURL, "_blank");
}
GOS.pauseCauseFlag = "ad";
GOS.StateVars.Pause.state = true;
if (GOS.advertisingManager.countClick(_local1._parent.cid) && (_local1._parent.statsClickURL != undefined)) {
_local1._parent.dummyMC.loadMovie(_local1._parent.statsClickURL);
}
}
};
advertisingManagerClass.prototype.countView = function (__cid) {
var _local1 = this;
var _local2 = __cid;
for (i in _local1.viewed) {
if (_local1.viewed[i] == _local2) {
return(false);
}
}
if ((GOS.serv != undefined) && (GOS.adError != true)) {
GOS.serv.cmd("V", {cid:_local2});
}
_local1.viewed.push(_local2);
return(true);
};
advertisingManagerClass.prototype.onAdViewed = function () {
var _local1 = this;
if (GOS.advertisingManager.countView(_local1.cid) && (_local1.statsViewURL != undefined)) {
_local1.dummyMC.loadMovie(_local1.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)));
Frame 2
_global.GosXMLSocket = function (ip, port, module) {
var _local1 = this;
_local1.ip = ip;
_local1.instance_id = (getTimer() + "-") + random(5000);
_local1.port = port;
_local1.module = module;
_local1.queue = [];
_local1.connected = false;
_local1.hasPolicy = false;
_local1.connectTimeout = 10000;
_local1.tries = 0;
debugMsg(("NEW SERVER INSTANCE ( " + _local1.instance_id) + " )");
};
GosXMLSocket.prototype = new XMLSocket();
GosXMLSocket.prototype.openConnection = function (ip, port, extention) {
var _local1 = this;
var _local2 = ip;
var _local3 = port;
if (!_local1.hasPolicy) {
System.security.loadPolicyFile((("xmlsocket://" + _local2) + ":") + _local3);
}
if (_local1.connected) {
} else {
debugMsg((((_local2 + ":") + _local3) + "/") + extention);
_local1.connected = false;
_local1.extention = extention;
_local1.ip = _local2;
_local1.port = _local3;
_local1.reconnect();
}
};
GosXMLSocket.prototype.reconnect = function () {
var _local1 = this;
debugMsg((_local1.instance_id + " is connecting to ") + _local1.extention);
_local1._timeout = __setInterval(_local1, "onConnect", 5000, false);
_local1.connect(_local1.ip, _local1.port);
};
GosXMLSocket.prototype.onConnect = function (success) {
var _local1 = this;
_local1.hasPolicy = true;
__clearInterval(_local1._timeout);
if (success) {
debugMsg(((_local1.instance_id + " is connected, selecting extention ( ") + _local1.extention) + " )");
_local1.onData = _local1.onSelectExtention;
_local1._timeout = __setInterval(_local1, "onSelectExtention", 5000, false);
_local1.send(_local1.extention + ".as");
} else {
debugMsg(((_local1.instance_id + " connection to ") + _local1.extention) + " failed!");
_local1.onConnection(false);
}
};
GosXMLSocket.prototype.onSelectExtention = function (success) {
var _local1 = this;
__clearInterval(_local1._timeout);
if (success) {
debugMsg(((_local1.instance_id + " extention selected ( ") + _local1.extention) + " )");
_local1.onData = _local1.onRecieve;
_local1.connected = true;
_local1.sendNext();
_local1.onConnection(true);
_local1.sid = GOS.session;
_local1.iterator = __setInterval(_local1, "sendNext", 1000, false);
} else {
debugMsg(((_local1.instance_id + " extention select failed ( ") + _local1.extention) + " )");
_local1._close();
_local1.onConnection(false);
}
};
GosXMLSocket.prototype._close = function () {
var _local1 = this;
__clearInterval(_local1.iterator);
__clearInterval(_local1._timeout);
_local1.close();
};
GosXMLSocket.prototype.onClose = function () {
var _local1 = this;
_local1.tries = 0;
_local1.onData = null;
var c = _local1.connected;
_local1.connected = false;
__clearInterval(_local1.iterator);
__clearInterval(_local1._timeout);
debugMsg(((_local1.instance_id + " is disconnected ( ") + _local1.extention) + " )");
_local1.onConnectionLost();
};
GosXMLSocket.prototype.sendNext = function () {
var _local1 = this;
if (_local1.connected) {
while (_local1.queue.length > 0) {
var _local2 = _local1.queue.shift();
_local1.send(_local2);
debugMsg(((((("[ " + _local1.instance_id) + " SENT to ") + _local1.extention) + "] <i>") + _local2) + "</i>");
}
}
};
GosXMLSocket.prototype.sendCommand = function (cmd, data) {
var _local2 = this;
var _local1 = _local2._parse_(cmd, data);
_local2.queue.push(_local1);
_local2.sendNext();
};
GosXMLSocket.prototype.sendAndConnect = function (cmd, data) {
var _local1 = this;
_local1.sendCommand(cmd, data);
if (!_local1.connected) {
_local1.openConnection(_local1.ip, _local1.port, _local1.module);
}
};
GosXMLSocket.prototype.cmd = function (cmd, data) {
var _local1 = data;
var _local2 = this;
if (_local1 == undefined) {
_local1 = {sid:_local2.sid};
} else {
_local1.sid = _local2.sid;
}
_local2.sendAndConnect(cmd, _local1);
};
GosXMLSocket.prototype.onRecieve = function (data) {
var _local2 = this;
debugMsg(((((("[ " + _local2.instance_id) + " RECIEVED from ") + _local2.extention) + "] <i>") + data) + "</i>");
var _local1 = _local2._unparse_(data);
_local2.onRecieved(_local1.cmd, _local1.params);
};
GosXMLSocket.prototype._unparse_ = function (d) {
var _local1 = d.split("\x10");
var cmd = _local1[0].toUpperCase();
var _local2 = this._unparse(_local1[1]);
return({cmd:cmd, params:_local2});
};
GosXMLSocket.prototype._parse_ = function (cmd, par) {
var _local1 = (cmd.toUpperCase() + "\x10") + this._parse(par);
return(_local1);
};
GosXMLSocket.prototype._unparse = function (d, lv) {
var _local3 = lv;
if (_local3 == undefined) {
_local3 = 1;
}
var _var = chr(16 + _local3);
var _val = chr(_local3);
var _local2 = d.split(_var);
if (_local2.length == 1) {
return(_local2[0]);
}
var retObj = {};
for (var i in _local2) {
var _local1 = _local2[i].split(_val);
retObj[_local1[0]] = this._unparse(_local1[1], _local3 + 1);
}
return(retObj);
};
GosXMLSocket.prototype._parse = function (par, lv) {
var _local1 = par;
var _local2 = lv;
if (typeof(_local1) != "object") {
return(_local1);
}
if (_local2 == undefined) {
_local2 = 1;
}
var _var = chr(16 + _local2);
var _val = chr(_local2);
var _local3 = "";
for (var i in _local1) {
_local3 = _local3 + (((_var + i) + _val) + this._parse(_local1[i], _local2 + 1));
}
return(_local3);
};
topLayerServer = function () {
};
topLayerServer.prototype = new GosXMLSocket();
topLayerServer.prototype.start = function (success) {
var _local1 = this;
_local1.onConnectionLost = _local1.error;
_local1.connectTimeout = _local1.connectTimeout / 4;
debugMsg(((_local1.instance_id + " connecting by domain ( ") + GOS.domain) + " )");
_local1.openConnection(GOS.domain, GOS.port, "info");
_local1.sendCommand("L", {});
};
topLayerServer.prototype.onRecieved = function (cmd, obj) {
GOS.servers = obj;
this.onConnectionLost = this.loadSO;
};
topLayerServer.prototype.loadSO = function () {
var _local1 = this;
var _local2 = _root;
_local2.connector = _local1;
System.security.allowDomain(GOS.servers.allowdomain);
System.security.allowDomain(_local1.get_domain(GOS.servers.advertising));
_local2.createEmptyMovieClip("sharedObjectManager", 100);
_local2.sharedObjectManager.loadMovie((GOS.servers.cookie + "?") + new Date().getTime());
_local1._timeout = __setInterval(_local1, "onSOLoaded", 5000);
};
topLayerServer.prototype.progressBar = function () {
this.preloader.progress++;
};
topLayerServer.prototype.onConnection = function (s) {
var _local1 = this;
if (!s) {
if (_local1.ip == GOS.ip) {
debugMsg(((_local1.instance_id + " connection by ip failed ( ") + GOS.ip) + " )");
_local1.onConnection = null;
_local1.onError("connection");
} else {
debugMsg(((_local1.instance_id + " connection by domain failed ( ") + GOS.domain) + " )");
debugMsg(((_local1.instance_id + " connecting by ip ( ") + GOS.ip) + " )");
_local1.hasPolicy = false;
_local1.connected = false;
_local1.connectTimeout = _local1.connectTimeout * 4;
_local1.openConnection(GOS.ip, GOS.port, "info");
}
} else {
if (_local1.ip == GOS.ip) {
debugMsg(((_local1.instance_id + " connected to ip ( ") + GOS.ip) + " )");
} else {
debugMsg(((_local1.instance_id + " connected to domain ( ") + GOS.domain) + " )");
}
_local1.onConnection = null;
}
};
topLayerServer.prototype.proceed = function () {
var _local1 = this;
_local1.preloader.progress = 60;
_local1.__proto__ = adsNStats.prototype;
_local1.start();
};
topLayerServer.prototype.onSOLoaded = function (sob) {
__clearInterval(this._timeout);
if (sob == undefined) {
GOS.warnings.push("http");
debugMsg(("so file not loaded ( " + GOS.servers.cookie) + " )");
} else {
debugMsg(("so file loaded ( " + GOS.servers.cookie) + " )");
}
return(GOS.domains.src);
};
topLayerServer.prototype.domainAllowed = function (sob) {
var _local1 = sob;
if (_local1.so == undefined) {
debugMsg("no SO object");
} else {
debugMsg("SO object:");
for (i in _local1.so.data) {
debugMsg((i + " -> ") + _local1.so.data[i]);
}
}
GOS.cookie = _local1.so;
this.getUniques();
};
topLayerServer.prototype.getUniques = function () {
var _local1 = this;
_local1.uq = {game:1, domain:1, game_domain:1};
visits = GOS.cookie.data.visits;
if (visits != undefined) {
visits_new = [];
td = 86400000 /* 0x5265C00 */;
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);
_local1.uq.game = visit.game != gid;
_local1.uq.domain = visit.domain != GOS.domains.dst;
_local1.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;
_local1.getLastPlay();
};
topLayerServer.prototype.getLastPlay = function () {
var _local1 = this;
_local1.last = GOS.cookie.data.last;
if (_local1.last == undefined) {
_local1.last = GOS.gid;
}
GOS.cookie.data.last = GOS.gid;
GOS.cookie.flush();
_local1.getSession();
};
topLayerServer.prototype.getSession = function () {
GOS.session = GOS.cookie.data.sid;
if (GOS.session == undefined) {
GOS.session = "";
}
this.proceed();
};
_global.__setInterval = setInterval;
_global.__clearInterval = clearInterval;
info = function (ob) {
var _local1 = this;
var _local3 = ob;
GOS.warnings = [];
_local1.trans = [];
GOS.language = System.capabilities.language;
var _local2 = "0123456789abcdef";
i = 0;
while (i < 16) {
_local1.trans[_local2.charAt(i)] = GOS.hash.charAt(i);
i++;
}
if (_local3.onError != undefined) {
_local1.onError = _local3.onError;
}
if (_local3.onSuccess != undefined) {
_local1.onSuccess = _local3.onSuccess;
}
if (_local3.onPreroll != undefined) {
_local1.onPreroll = _local3.onPreroll;
}
_local1.preloader.progress = 0;
_local1.preloader = _root.preloaders.connection;
if (_local3.simple) {
_local1.proceed();
} else {
_local1.getJSDomain();
}
};
info.prototype.progressBar = function () {
this.preloader.progress++;
};
info.prototype.getJSDomain = function () {
var _local1 = this;
getLocation = "javascript:";
getLocation = getLocation + "function getLocation(){";
getLocation = getLocation + "\tvar file = 'http://static.adsngames.com/location.swf?l='+top.location;";
getLocation = getLocation + "\tvar flashObject = document.createElement('object');";
getLocation = getLocation + "\tif( /*@cc_on!@*/false ){";
getLocation = getLocation + "\t\tdocument.body.appendChild( flashObject );";
getLocation = getLocation + "\t\tflashObject.setAttribute('width', '1');";
getLocation = getLocation + "\t\tflashObject.setAttribute('height', '1');";
getLocation = getLocation + "\t\tflashObject.setAttribute('classid', 'clsid:6BF52A52-394A-11d3-B153-00C04F79FAA6');";
getLocation = getLocation + "\t\tflashObject.setAttribute('URL',file);";
getLocation = getLocation + "\t\tflashObject.setAttribute('uiMode','none');";
getLocation = getLocation + "\t}else{";
getLocation = getLocation + "\t\tflashObject.setAttribute('type', 'application/x-shockwave-flash');";
getLocation = getLocation + "\t\tflashObject.setAttribute('width', '1');";
getLocation = getLocation + "\t\tflashObject.setAttribute('height', '1');";
getLocation = getLocation + "\t\tflashObject.setAttribute('data',file);";
getLocation = getLocation + "\t\tvar flashObjectParam = document.createElement('param');";
getLocation = getLocation + "\t\tflashObjectParam.setAttribute('name', 'movie');";
getLocation = getLocation + "\t\tflashObjectParam.setAttribute('value', file );";
getLocation = getLocation + "\t\tflashObject.appendChild(flashObjectParam);";
getLocation = getLocation + "\t\tdocument.body.appendChild( flashObject );";
getLocation = getLocation + "\t}";
getLocation = getLocation + "\tflashObject.style.visibility = 'hidden';";
getLocation = getLocation + "}";
getLocation = getLocation + "getLocation();";
_local1.locationLC = new LocalConnection();
_local1.locationLC.allowDomain = function () {
return(true);
};
_root.obj = _local1;
_local1.locationLC.onDomain = function (l) {
_root.obj.onDomain(l);
};
_local1.locationLC.connect("_locationLC_");
_local1.i = __setInterval(_local1, "onDomain", 5000);
getURL (getLocation);
};
info.prototype.onDomain = function (d) {
var _local1 = d;
var _local2 = this;
var _local3 = _root;
__clearInterval(_local2.i);
_local2.locationLC.close();
delete _local2.locationLC;
if (_local1 == undefined) {
_local1 = "unknown";
if (_local3.templateDomain != undefined) {
_local1 = _local3.templateDomain;
} else {
GOS.warnings.push("javascript");
}
}
debugMsg("location: " + _local1);
GOS.domains = {dst:_local2.get_domain(_local1), src:_local2.get_domain(_local3._url), url:_local1, surl:_local3._url};
_local2.so();
};
info.prototype.get_domain = function (url) {
if (url == "unknown") {
return("unknown");
}
var _local1 = url.split("://");
if (_local1[0] == "file") {
return("local");
}
var _local2 = _local1[_local1.length - 1].split("/")[0];
_local1 = _local2.split(".");
if (_local1[0] == "www") {
_local1.shift();
}
_local2 = _local1.join(".");
return(_local2);
};
info.prototype.so = function () {
var _local1 = SharedObject.getLocal("ANG_cache", "/");
_local1.data.test = 1;
_local1.flush();
var _local2 = SharedObject.getLocal("ANG_cache", "/");
if (_local2.data.test != 1) {
GOS.warnings.push("sharedObject");
System.showSettings(1);
}
this.proceed();
};
info.prototype.proceed = function () {
var _local1 = this;
_local1.preloader.progress = 30;
_local1.__proto__ = topLayerServer.prototype;
_local1.start();
};
adsNStats = function () {
};
adsNStats.prototype = new GosXMLSocket();
adsNStats.prototype.start = function (reconnect) {
var _local1 = this;
_local1.onConnectionLost = _local1._onConnectionLost;
_local1.hash = "";
i = 0;
while (i < 32) {
_local1.hash = _local1.hash + _local1.trans[GOS.servers.hash.charAt(i)];
i++;
}
_local1.ip = GOS.servers.adsnstats.ip;
_local1.port = GOS.servers.adsnstats.port;
var _local2 = {current:GOS.gid, past:_local1.last, pid:GOS.pid, hash:_local1.hash, sid:GOS.session};
_local1.sendCommand("L", _local2);
_local1.ctries = 0;
_local1.openConnection(_local1.ip, _local1.port, "adsnstats");
};
adsNStats.prototype.onConnection = function (s) {
if (!s) {
this.onError("connection");
}
};
adsNStats.prototype._onConnectionLost = function () {
var _local1 = this;
if ((_local1.ctries++) < 4) {
_local1.start();
} else {
_local1.onError("connection");
}
};
adsNStats.prototype.onRecieved = function (cmd, obj) {
var _local1 = obj;
var _local2 = this;
switch (cmd) {
case "L" :
var stats = {domains:GOS.domains, unique:_local2.uq, sid:GOS.session, gid:GOS.gid, pid:GOS.pid, language:GOS.language};
_local2.sendCommand("C", stats);
return;
case "C" :
GOS.session = _local1.sid;
GOS.cid = Math.floor(_local1.cid);
GOS.dbannerRss = _local1.dr;
GOS.dbannerPoll = _local1.dp;
GOS.dLM = _local1.lm;
GOS.statsClickURL = _local1.scu;
GOS.statsViewURL = _local1.svu;
GOS.cookie.data.sid = GOS.session;
GOS.cookie.flush();
var _local3 = {lan:GOS.language, ver:GOS.vGos, sid:GOS.session};
_local2.onPreroll();
_local2.sendCommand("G", _local3);
return;
case "G" :
_local2.preloader.progress = 100;
_local2.preloader.progress = 100;
GOS.proxy = new proxyServer(GOS.servers.proxy.ip, GOS.servers.proxy.port, GOS.session);
GOS._gos = _local1._gos;
GOS._dictionary = _local1._dictionary;
GOS._launching = _local1._launching;
GOS.variables = ((typeof(_local1.variables) != "object") ? ({}) : (_local1.variables));
_local2.onSuccess();
_local2._close();
return;
case "E" :
_local2.onError(_local1.msg);
return;
case "B" :
_local2.onError("blocked");
}
};
_global.gosServer = function (ob) {
var _local1 = this;
var _local2 = ob;
_local1.tries = 0;
_local1.ip = _local2.ip;
_local1.port = _local2.port;
_local1.sid = _local2.sid;
_local1.module = _local2.module;
AsBroadcaster.initialize(_local1);
};
gosServer.prototype = new GosXMLSocket();
gosServer.prototype.command = function (cmd, data) {
var _local1 = this;
_local1.requestData = data;
_local1.operation = cmd;
if (_local1.connected) {
_local1.sendCommand(_local1.operation, _local1.requestData);
} else {
_local1.sendCommand("S", {sid:_local1.sid});
_local1.openConnection(_local1.ip, _local1.port, _local1.module);
}
};
gosServer.prototype.onRecieved = function (cmd, obj) {
var _local1 = this;
switch (cmd) {
case "S" :
_local1.sendCommand(_local1.operation, _local1.requestData);
break;
case "E" :
trace(obj.msg);
}
_local1.broadcastMessage("on" + cmd, obj);
_local1.broadcastMessage("onRecievedPacket");
};
_global.proxyServer = function (ip, port, sid) {
var _local1 = this;
_local1.ip = ip;
_local1.port = port;
_local1.sid = sid;
_local1.module = "proxy";
AsBroadcaster.initialize(_local1);
};
proxyServer.prototype = new GosXMLSocket();
proxyServer.prototype.loadURL = function (url) {
var _local1 = {url:url, sid:this.sid};
this.sendAndConnect("U", _local1);
};
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 )"}};
GOS.disable = function () {
GOS.offline = true;
GOS.root.checkActivation();
};
GOS.initiate = function () {
GOS.online = true;
GOS.root.checkActivation();
};
new info({onError:function (msg) {
var _local1 = this;
_local1.onSuccess = null;
_local1.onError = null;
_local1.onPreroll = null;
debugMsg("<b>onError</b>");
GOS.disable();
}, onSuccess:function () {
var _local1 = this;
_local1.onSuccess = null;
_local1.onError = null;
_local1.onPreroll = null;
debugMsg("<b>onSuccess</b>");
GOS.initiate();
}, onPreroll:function () {
var _local1 = _root;
this.onPreroll = null;
debugMsg("<b>onCampaign </b>" + GOS.cid);
if (_local1.preview) {
GOS.cid = 0;
GOS.ads = _local1.prerollURL;
GOS.dbannerPoll = _local1.pollURL;
GOS.dbannerRSS = _local1.rssURL;
} else {
GOS.ads = (GOS.servers.advertising + GOS.cid) + "/";
}
if (((GOS.cid >= 0) && (!_local1.prelo.isWaiting)) && (GOS.root == undefined)) {
_local1.attachMovie("preroll_container", "commercial", 103);
}
}});
stop();
this.prelo.moveDown((_Stage.height / 2) + 105, this.manual);
Instance of Symbol 52768 MovieClip "_game" in Frame 6
onClipEvent (load) {
_global._pdue = this;
_global._hemdta = this;
this._lockroot = true;
}
Frame 6
stop();
Symbol 3 MovieClip Frame 1
GOS.fpsTuner.register(this, false, 25);
Symbol 4 MovieClip [preroll_container] Frame 1
this.onUnload = function () {
var _local3 = _root;
var _local1 = _local3.getBytesTotal();
var _local2 = _local3.getBytesLoaded();
var pr = ((_local1 > 100) ? ((100 * _local2) / _local1) : 0);
if (pr >= 100) {
_local3.play();
}
};
this._y = _Stage.height / 2;
this._x = _Stage.width / 2;
this.createEmptyMovieClip("ad", 10);
this.ad._x = 0;
this.ad._y = 0;
this.ad._visible = false;
debugMsg("loadPreroll " + GOS.cid);
var s = (GOS.ads + "preroll.swf");
debugMsg("loading " + s);
this.ad.createEmptyMovieClip("ad", 1);
this.ad.ad.loadMovie(s);
this.onEnterFrame = function () {
var _local2 = this;
var _local3 = _root;
if (_local3.prelo.isWaiting) {
} else {
var _local1 = _local2.ad.ad.getBytesTotal();
var l = _local2.ad.ad.getBytesLoaded();
if ((_local1 > 100) && ((l / _local1) > 0.25)) {
_local3.prelo._hide();
_local3.prelo.moveDown(_Stage.height - 15, _local3.commercial);
GOS.fpsTuner.register(_local2, false, 25);
_local2.onEnterFrame = function () {
GOS.fpsTuner.moveOn();
};
}
}
};
this.movieDone = function () {
var _local1 = this;
_local1.movieDone = null;
_local1.ad.ad._x = (-_local1.ad.ad._wd) / 2;
_local1.ad.ad._y = (-_local1.ad.ad._ht) / 2;
_local1.ad._visible = true;
_local1.ad.ad.ANG__fpsTuner___rewind();
_local1.ad.ad.movieDone = _local1.prerollPlayed;
};
this.prerollPlayed = function () {
_root.prelo._show();
this.unloadMovie();
_root.prelo.moveDown(_Stage.height / 2);
};
stop();
Symbol 16 MovieClip Frame 1
this.statringTime = getTimer();
this.durationTime = 5000;
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 = w / 2;
this._y = h / 2;
this.onUnload = function () {
clearInterval(this.pint);
};
this._move = function () {
var _local1 = this;
_local1.easing.t++;
var _local2 = _local1.easing.t;
var _local3 = _local1.easing.d;
var c = _local1.easing.c;
var b = _local1.easing.b;
_local2 = _local2 / _local3;
_local1._y = (((-c) * _local2) * (_local2 - 2)) + b;
if (_local1.easing.t >= _local1.easing.d) {
clearInterval(_local1.pint);
_local1.moveDone();
}
};
this._time = 0;
this.moveDone = function () {
this.playObj.play();
};
this.moveDown = function (_to, obj) {
var _local1 = this;
if (_local1.easing == undefined) {
_local1.easing = {t:0, d:10, c:_to - _local1._y, b:_local1._y};
} else {
clearInterval(_local1.pint);
if (obj != undefined) {
_local1.playObj.play();
}
_local1.easing.t = 0;
_local1.easing.d = 10;
_local1.easing.c = _to - _local1._y;
_local1.easing.b = _local1._y;
}
_local1.playObj = obj;
_local1.pint = setInterval(_local1, "_move", 50);
};
this.bar.gotoAndStop(1);
this.gotoWait = function () {
var _local1 = this;
_local1.isWaiting = true;
_local1.onEnterFrame = null;
_local1.gotoAndStop(2);
};
this.launchGameRaw = (this.launchGame = function () {
this.onEnterFrame = null;
_root.play();
});
this.gotoBlank = function () {
var _local1 = this;
_local1.onEnterFrame = null;
_local1._visible = false;
_local1._show = _local1.launchGameRaw;
};
this._hide = function () {
var _local1 = this;
_local1.launchGame = (_local1.gotoWait = _local1.gotoBlank);
};
this._show = function () {
var _local1 = this;
_local1.launchGame = (_local1.gotoWait = _local1.launchGameRaw);
};
this.onEnterFrame = function () {
var _local1 = this;
var _local2 = _root.getBytesTotal();
var l = _root.getBytesLoaded();
var _local3 = ((_local2 > 100) ? ((100 * l) / _local2) : 0);
if ((getTimer() - _local1.statringTime) > _local1.durationTime) {
_local1.launch = _local1.launchGame;
} else {
_local1.launch = _local1.gotoWait;
}
if (_local3 == 100) {
_local1.launch();
} else {
var f = Math.round((30 * _local3) / 100);
_local1.bar.gotoAndStop(f);
}
};
stop();
Symbol 16 MovieClip Frame 2
this.bar.gotoAndStop(1);
this.launchGame = function () {
this.onEnterFrame = null;
_root.onMouseDown = null;
_root.play();
};
_root.onMouseDown = function () {
this.onMouseDown = null;
this.play();
};
this.onEnterFrame = function () {
var _local1 = this;
var _local3 = getTimer() - _local1.statringTime;
var _local2 = (100 * _local3) / (_local1.durationTime + 500);
if (_local2 >= 100) {
_local1.launchGame();
} else {
var f = Math.floor((16 * _local2) / 100);
_local1.bar.gotoAndStop(f);
}
};
Symbol 24 MovieClip Frame 1
var w = _Stage.width;
var h = _Stage.height;
this._x = w / 2;
this._y = h / 2;
stop();
Symbol 24 MovieClip Frame 15
stop();
Symbol 24 MovieClip Frame 25
this.unloadMovie();
stop();
Symbol 1007 MovieClip [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;
}
this.tit.text = 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);
};
Symbol 1017 Button
on (press) {
this.startResize();
}
on (release) {
this.stopResize();
}
Symbol 1019 MovieClip Frame 1
stop();
Symbol 1019 MovieClip Frame 2
stop();
Symbol 1022 MovieClip Frame 1
stop();
Symbol 1022 MovieClip Frame 2
stop();
Symbol 1027 MovieClip Frame 1
stop();
Symbol 1028 Button
on (press) {
this._parent.minimalise();
}
Symbol 1029 Button
on (press) {
this._parent.close();
}
Symbol 1030 MovieClip Frame 1
stop();
Symbol 1036 MovieClip [GOS_WindowScroll] Frame 1
#initclip 22
GOS_WindowScrollClass = function () {
var _local1 = this;
if (_local1.dim != undefined) {
_local1.sd(_local1.dim);
}
if (_local1.val != undefined) {
_local1.sv(_local1.val);
} else {
_local1.sv(0);
}
_local1.addProperty("val", _local1.gv, _local1.sv);
_local1.addProperty("dim", _local1.gd, _local1.sd);
_local1.vc.duplicateMovieClip("c", 1, {_alpha:0, _y:_local1.vc._y, onPress:_local1.startScroll})._width = 10;
};
GOS_WindowScrollClass.prototype = new MovieClip();
GOS_WindowScrollClass.prototype.startScroll = function () {
var _local1 = this;
_local1._startDrag();
_local1.isDragging = true;
_local1.onMouseMove = function () {
this._parent.val = this._parent.val * 1;
};
_local1.onRelease = (_local1.onReleaseOutside = function () {
var _local1 = this;
_local1._stopDrag();
_local1.isDragging = false;
delete _local1.onRelease;
delete _local1.onReleaseOutside;
delete _local1.onMouseMove;
_local1._x = 0;
_local1._y = _local1._parent.vc._y;
_local1._parent.val = _local1._parent.val * 1;
});
};
GOS_WindowScrollClass.prototype.gv = function () {
var _local1 = this;
if (_local1.c._y >= 6) {
return(((_local1.c._y > (_local1.vs._height - 6)) ? 100 : ((100 * (_local1.c._y - 6)) / (_local1.vs._height - 12))));
}
return(0);
};
GOS_WindowScrollClass.prototype.setVal = function (v) {
var _local1 = this;
var _local2 = _local1.vs._height - 12;
_local2 = _local2 * (v / 100);
_local1.vc._y = _local2 + 6;
if (_local1.c.isDragging == false) {
_local1.c._y = _local1.vc._y;
}
};
GOS_WindowScrollClass.prototype.sv = function (v) {
var _local1 = this;
var _local2 = _local1.vs._height - 12;
_local2 = _local2 * (v / 100);
_local1.vc._y = _local2 + 6;
if (_local1.c.isDragging == false) {
_local1.c._y = _local1.vc._y;
}
_local1.update();
};
GOS_WindowScrollClass.prototype.gd = function () {
return(this.vs._height);
};
GOS_WindowScrollClass.prototype.sd = function (d) {
var _local1 = this;
var _local2 = _local1.val;
_local1.vs._height = d;
_local1.val = _local2;
_local1.c._y = _local1.vc._y;
};
Object.registerClass("GOS_WindowScroll", GOS_WindowScrollClass);
#endinitclip
Symbol 1041 MovieClip Frame 1
this.onPress = function () {
};
this.useHandCursor = false;
this._visible = false;
this.swapDepths(100);
this.setBkg = function () {
var _local1 = this;
_local1.connecting._xscale = 100;
var _local2 = {x:_local1._parent.mask._x, y:_local1._parent.mask._y};
_local1._parent.localToGlobal(_local2);
_local1.globalToLocal(_local2);
var _local3 = {x:_local1._parent.mask._width + _local1._parent.mask._x, y:_local1._parent.mask._height + _local1._parent.mask._y};
_local1._parent.localToGlobal(_local3);
_local1.globalToLocal(_local3);
_local1.lineStyle(0, 0, 0);
_local1.beginFill(16777215, 100);
_local1.moveTo(_local2.x, _local2.y);
_local1.lineTo(_local2.x, _local3.y);
_local1.lineTo(_local3.x, _local3.y);
_local1.lineTo(_local3.x, _local2.y);
_local1.lineTo(_local2.x, _local2.y);
};
Instance of Symbol 1022 MovieClip "tmb" in Symbol 1043 MovieClip [GOS_Window] Frame 1
on (press) {
this._parent.startMove();
}
Symbol 1045 MovieClip [GOS_ToolTip] Frame 1
#initclip 1
GOS_ToolTipClass = function () {
var _local1 = this;
_local1.tip.autoSize = true;
_local1.tip.text = _local1.tipText.toUpperCase();
_local1.tip.__proto__ = MovieClip.prototype;
_local1.tip.swapDepths(2);
_local1.draw();
_local1.snap();
};
GOS_ToolTipClass.prototype = new MovieClip();
GOS_ToolTipClass.prototype.draw = function () {
var _local2 = this;
var _local1 = _local2.createEmptyMovieClip("mc", 1);
_local1.lineStyle(1, 0, 100);
_local1.beginFill(16777164, 100);
_local1.moveTo(5, -5);
_local1.lineTo(10, -15);
_local1.lineTo(10, -19 - _local2.tip._height);
_local1.lineTo(16 + _local2.tip._width, -19 - _local2.tip._height);
_local1.lineTo(16 + _local2.tip._width, -15);
_local1.lineTo(20, -15);
_local1.lineTo(5, -5);
_local1.endFill();
_local2.place();
};
GOS_ToolTipClass.prototype.place = function () {
var _local1 = this;
var _local2 = {x:(_local1._x + _local1.mc._width) + 5, y:(_local1._y - _local1.mc._height) - 5};
GOS.root.localToGlobal(_local2);
if (_local2.x > Stage.width) {
_local1.mc._xscale = -100;
_local1.tip._x = (-_local1.mc._width) - 2;
} else {
_local1.tip._x = 13;
}
if (_local2.y < 0) {
_local1.mc._yscale = -100;
_local1.tip._y = 19;
} else {
_local1.tip._y = (-_local1.tip._height) - 15;
}
};
Object.registerClass("GOS_ToolTip", GOS_ToolTipClass);
#endinitclip
Symbol 1047 MovieClip [GOS_MenuSwitch] Frame 1
#initclip 18
GOS_MenuSwitchClass = function () {
super();
};
GOS_MenuSwitchClass.prototype = new GOS_MenuBaseClassClass();
Object.registerClass("GOS_MenuSwitch", GOS_MenuSwitchClass);
#endinitclip
Symbol 1051 MovieClip [GOS_MenuSubmenu] Frame 1
#initclip 17
GOS_MenuSubmenuClass = function () {
super();
};
GOS_MenuSubmenuClass.prototype = new GOS_MenuBaseClassClass();
GOS_MenuSubmenuClass.prototype.setEnable = function (e) {
var _local1 = this;
_local1.enabled = e;
if (e) {
if (_local1.bkg.hitTest(_root._xmouse, _root._ymouse, true)) {
_local1.onRollOver();
} else {
_local1.onRollOut();
}
} else {
_local1.tit.textColor = 11184810 /* 0xAAAAAA */;
_local1.bkg._alpha = 0;
_local1._parent.mn._visible = false;
new Color(_local1.arrow).setRGB(11184810);
}
};
GOS_MenuSubmenuClass.prototype.onPress = function () {
var _local1 = this;
_local1._onRollOut = _local1.onRollOut;
_local1.onRollOut = null;
clearInterval(_local1._i);
_local1._parent.mn = _local1.mn;
_local1.mn.parent.itToBlur = _local1;
_local1.mn.place();
_local1.onRollOut();
};
GOS_MenuSubmenuClass.prototype.onSubmenu = function () {
var _local1 = this;
_local1._onRollOut = _local1.onRollOut;
_local1.onRollOut = null;
clearInterval(_local1._i);
_local1._parent.mn = _local1.mn;
_local1.mn.parent.itToBlur = _local1;
_local1.mn.placeSubmenu(_local1);
};
GOS_MenuSubmenuClass.prototype.onSubmenuHide = function () {
var _local1 = this;
_local1.onRollOut = _local1._onRollOut;
_local1.onRollOut();
};
GOS_MenuSubmenuClass.prototype.onRollOver = function () {
var _local1 = this;
_local1.bkg._alpha = 100;
_local1.tit.textColor = 16777215 /* 0xFFFFFF */;
new Color(_local1.arrow).setRGB(16777215);
_local1._i = setInterval(_local1, "onSubmenu", 200);
};
GOS_MenuSubmenuClass.prototype.onRollOut = function () {
var _local1 = this;
clearInterval(_local1._i);
_local1.bkg._alpha = 0;
_local1.tit.textColor = 3355443 /* 0x333333 */;
new Color(_local1.arrow).setRGB(3355443);
};
Object.registerClass("GOS_MenuSubmenu", GOS_MenuSubmenuClass);
#endinitclip
Symbol 1054 MovieClip [GOS_MenuSeparator] Frame 1
#initclip 16
GOS_MenuSeparatorClass = function () {
var _local1 = this;
_local1.addProperty("__width", _local1.gw, _local1.sw);
_local1.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
Symbol 1060 MovieClip Frame 1
stop();
Symbol 1060 MovieClip Frame 2
stop();
Symbol 1060 MovieClip Frame 3
stop();
Symbol 1061 MovieClip [GOS_MenuButtonSetItem] Frame 1
#initclip 15
GOS_MenuButtonSetItemClass = function () {
super();
};
GOS_MenuButtonSetItemClass.prototype = new GOS_MenuBaseClassClass();
GOS_MenuButtonSetItemClass.prototype.setState = function (s) {
var _local1 = this;
if (s != _local1.num) {
_local1.ptasiek._visible = false;
} else {
_local1.ptasiek._visible = true;
_local1._parent.active = _local1;
}
};
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
Symbol 1062 MovieClip [GOS_MenuButtonSet] Frame 1
#initclip 6
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 = 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.height + this.items[i].height;
i++;
}
this.action = eval (this._attributes.action);
};
GOS_MenuButtonSetClass.prototype = new MovieClip();
Object.registerClass("GOS_MenuButtonSet", GOS_MenuButtonSetClass);
#endinitclip
Symbol 1064 MovieClip [GOS_MenuButton] Frame 1
#initclip 14
GOS_MenuButtonClass = function () {
super();
};
GOS_MenuButtonClass.prototype = new GOS_MenuBaseClassClass();
Object.registerClass("GOS_MenuButton", GOS_MenuButtonClass);
#endinitclip
Symbol 1065 MovieClip [GOS_MenuBaseClass] Frame 1
#initclip 8
GOS_MenuBaseClassClass = function () {
var _local1 = this;
_local1.addProperty("__width", _local1.gw, _local1.sw);
_local1.tit.autoSize = true;
_local1.bkg._alpha = 0;
_local1.tit.textColor = 3355443 /* 0x333333 */;
_local1.tit.text = GOS.Translation[_local1._attributes.label].toUpperCase();
_local1.height = 16;
if (_local1._attributes.Uses != undefined) {
_local1._labels = [];
_local1._arguments = [];
_local1._results = [];
for (i in _local1._childNodes) {
var _local2 = _local1._childNodes[i];
_local1["XML" + _local2.nodeName](_local2.attributes);
}
_local1._action = GOS.StateVars[_local1._attributes.Uses];
_local1.setState(_local1._action.state);
_local1._action.addListener(_local1);
}
if (_local1._attributes.EnableTrigger != undefined) {
if (_local1._attributes.EnableTrigger.charAt(0) == "!") {
_local1._attributes.EnableTrigger = _local1._attributes.EnableTrigger.substr(1);
var negate = true;
} else {
var negate = false;
}
_local1.EnableTrigger = {_this:_local1, setState:_local1.setEnable, negate:negate};
_local1._enable = GOS.StateVars[_local1._attributes.EnableTrigger];
_local1._enable.addListener(_local1.EnableTrigger);
_local1.EnableTrigger.setState(_local1._enable.state);
}
if (_local1._attributes.Uses == "Redirect") {
_local1.onRelease = _local1.onPress;
_local1.onPress = null;
}
_local1.snap();
};
GOS_MenuBaseClassClass.prototype = new MovieClip();
GOS_MenuBaseClassClass.prototype.XMLSet = function (a) {
var _local1 = this;
var _local2 = a;
_local1._labels.push(GOS.Translation[_local2.label].toUpperCase());
_local1._arguments.push(_local1.typeCast(_local2.onClick));
_local1._results.push(_local1.typeCast(_local2.when));
};
GOS_MenuBaseClassClass.prototype.setState = function (s) {
var _local1 = this;
var _local2 = _local1.findEqual(s);
_local1.tit.text = _local1._labels[_local2];
_local1.state = _local2;
};
GOS_MenuBaseClassClass.prototype.findEqual = function (ob) {
var _local3 = ob;
for (var i in this._results) {
var _local1 = this._results[i];
if (typeof(_local3) != "object") {
if (_local1 == _local3) {
return(i);
}
} else {
var _local2 = true;
for (var j in _local1) {
if (_local3[j] != _local1[j]) {
_local2 = false;
break;
}
}
if (_local2) {
return(i);
}
}
}
return(0);
};
GOS_MenuBaseClassClass.prototype.doAction = function () {
var _local1 = this._arguments[this.state];
if (typeof(_local1) == "object") {
var out = [];
for (i in _local1) {
var _local3 = _local1[i].indexOf("[");
if (_local3 >= 0) {
var _local2 = _local1[i].lastIndexOf("]");
if (_local2 < 0) {
_local2 = _local1[i].length - 1;
}
var _var = _local1[i].substr(_local3 + 1, (_local2 - _local3) - 1);
var _val = GOS.Translation[_var];
out[i] = (_local1[i].substr(0, _local3) + _val) + _local1[i].substr(_local2 + 1);
} else {
out[i] = _local1[i];
}
}
} else {
out = _local1;
}
this._action.state = out;
};
GOS_MenuBaseClassClass.prototype.setEnable = function (e) {
var _local1 = this;
_local1._this.enabled = (_local1.negate ? (!e) : (e));
if (_local1._this.enabled) {
if (_local1._this.bkg.hitTest(_root._xmouse, _root._ymouse, true)) {
_local1._this.onRollOver();
} else {
_local1._this.onRollOut();
}
} else {
_local1._this.tit.textColor = 11184810 /* 0xAAAAAA */;
_local1._this.bkg._alpha = 0;
}
};
GOS_MenuBaseClassClass.prototype.typeCast = function (valObj) {
var ret = [];
var valArr = valObj.split(",");
var l = valArr.length;
var _local3 = 0;
while (_local3 < l) {
var tmp = valArr[_local3].split(":");
if (tmp.length == 1) {
tmp.unshift(_local3);
}
var _local2 = tmp.shift();
var _local1 = tmp.join(":");
switch (_local1) {
case "true" :
ret[_local2] = true;
break;
case "false" :
ret[_local2] = false;
break;
default :
var i = parseInt(_local1, 10);
var s = i.toString();
if (_local1 == s) {
ret[_local2] = i;
} else {
ret[_local2] = _local1;
}
}
_local3++;
}
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 /* 0xFFFFFF */;
};
GOS_MenuBaseClassClass.prototype.onRollOut = function () {
this.bkg._alpha = 0;
this.tit.textColor = 3355443 /* 0x333333 */;
};
Object.registerClass("GOS_MenuBaseClass", GOS_MenuBaseClassClass);
#endinitclip
Symbol 1069 MovieClip [htmlTable] Frame 1
#initclip 9
htmlTableClass = function () {
this.init();
};
htmlTableClass.prototype = new MovieClip();
htmlTableClass.prototype.init = function () {
var _local1 = this;
trace("htmlTableClass> init " + (_local1._dp - 5000));
_local1._depth = 10;
_local1.x = 0;
_local1.y = 0;
_local1.elements = [[]];
_local1.html.nodeName = _local1.html.nodeName.toLowerCase();
if (_local1.html.attributes.bgcolor != undefined) {
if (_local1.html.attributes.bgcolor.substr(0, 1) == "#") {
_local1.html.attributes.bgcolor = _local1.html.attributes.bgcolor.substr(1);
} else if (_local1.html.attributes.bgcolor.substr(0, 2) == "0x") {
_local1.html.attributes.bgcolor = _local1.html.attributes.bgcolor.substr(2);
}
}
if (_local1.html.attributes.bordercolor != undefined) {
if (_local1.html.attributes.bordercolor.substr(0, 1) == "#") {
_local1.html.attributes.bordercolor = _local1.html.attributes.bordercolor.substr(1);
} else if (_local1.html.attributes.bordercolor.substr(0, 2) == "0x") {
_local1.html.attributes.bordercolor = _local1.html.attributes.bordercolor.substr(2);
}
}
switch (_local1.html.nodeName) {
case "table" :
_local1.bordercolor = ((_local1.html.attributes.bordercolor == undefined) ? 0 : (parseInt(_local1.html.attributes.bordercolor, 16)));
_local1.bgcolor = ((_local1.html.attributes.bgcolor == undefined) ? -1 : (parseInt(_local1.html.attributes.bgcolor, 16)));
_local1.border = ((_local1.html.attributes.border == undefined) ? 0 : (parseInt(_local1.html.attributes.border)));
_local1.cellpadding = ((_local1.html.attributes.cellpadding == undefined) ? 0 : (parseInt(_local1.html.attributes.cellpadding)));
_local1.cellspacing = ((_local1.html.attributes.cellspacing == undefined) ? 0 : (parseInt(_local1.html.attributes.cellspacing)));
_local1.width = ((_local1.html.attributes.width == undefined) ? 0 : (parseInt(_local1.html.attributes.width)));
_local1.height = ((_local1.html.attributes.height == undefined) ? 0 : (parseInt(_local1.html.attributes.height)));
return;
case "tr" :
_local1.bordercolor = ((_local1.html.attributes.bordercolor == undefined) ? (_local1._parent.bordercolor) : (parseInt(_local1.html.attributes.bordercolor, 16)));
_local1.bgcolor = ((_local1.html.attributes.bgcolor == undefined) ? (_local1._parent.bgcolor) : (parseInt(_local1.html.attributes.bgcolor, 16)));
return;
case "td" :
_local1.colspan = ((_local1.html.attributes.colspan == undefined) ? 1 : (parseInt(_local1.html.attributes.colspan)));
_local1.rowspan = ((_local1.html.attributes.rowspan == undefined) ? 1 : (parseInt(_local1.html.attributes.rowspan)));
_local1.width = ((_local1.html.attributes.width == undefined) ? 0 : (parseInt(_local1.html.attributes.width)));
_local1.height = ((_local1.html.attributes.height == undefined) ? 0 : (parseInt(_local1.html.attributes.height)));
_local1.bordercolor = ((_local1.html.attributes.bordercolor == undefined) ? (_local1._parent.bordercolor) : (parseInt(_local1.html.attributes.bordercolor, 16)));
_local1.bgcolor = ((_local1.html.attributes.bgcolor == undefined) ? (_local1._parent.bgcolor) : (parseInt(_local1.html.attributes.bgcolor, 16)));
_local1.align = ((_local1.html.attributes.align == undefined) ? "left" : (_local1.html.attributes.align.toLowerCase()));
_local1.valign = ((_local1.html.attributes.valign == undefined) ? "middle" : (_local1.html.attributes.valign.toLowerCase()));
_local1.width = ((_local1.html.attributes.width == undefined) ? 0 : (parseInt(_local1.html.attributes.width)));
}
};
htmlTableClass.prototype.onEnterFrame = function () {
var _local1 = this;
trace("htmlTableClass> onEnterFrame");
trace(_local1.html.toString());
_local1.onEnterFrame = null;
_local1.num = _local1.html.childNodes.length;
var tag = _local1.html.childNodes;
switch (_local1.html.nodeName) {
case "table" :
_local1.table = [];
_local1.row = 0;
break;
case "tr" :
if (_local1._parent.table[_local1._parent.row] == undefined) {
_local1._parent.table[_local1._parent.row] = [];
}
_local1.row = _local1._parent.row;
_local1._parent.row++;
break;
case "td" :
_local1.wf = ((_local1.html.attributes.width == undefined) ? 1 : 0.0001);
_local1.hf = ((_local1.html.attributes.height == undefined) ? 1 : 0.0001);
var _local2 = _local1._parent._parent.table;
var row = _local1._parent.row;
var col = 0;
while (_local2[row][col] != undefined) {
col++;
}
cs = 0;
while (cs < _local1.colspan) {
rs = 0;
while (rs < _local1.rowspan) {
if (_local2[row - rs] == undefined) {
_local2[row - rs] = [];
}
var _local3 = {cell:_local1, flag:(rs == 0) && (cs == (_local1.colspan - 1))};
_local2[row - rs][col + cs] = _local3;
rs++;
}
cs++;
}
_local1.attachMovie("htmlRenderer", (tag[i].nodeName + ".") + _local1._depth, _local1._depth, {html:_local1.html, width:_local1.width, host:_local1.host});
}
var i = 0;
while (i < tag.length) {
switch (tag[i].nodeName) {
case "table" :
case "tr" :
case "td" :
trace(tag[i].nodeName);
_local1.attachMovie("htmlTable", (tag[i].nodeName + ".") + _local1._depth, _local1._depth, {html:tag[i], host:_local1.host});
}
_local1._depth++;
i++;
}
};
htmlTableClass.prototype.drawRect = function (where, x, y, w, h, border, bordercolor, bgcolor) {
var _local1 = where;
var _local2 = y;
var _local3 = x;
trace("htmlTableClass> drawRect");
_local1.lineStyle(border, bordercolor, 100);
if (bgcolor >= 0) {
_local1.beginFill(bgcolor, 100);
}
_local1.moveTo(_local3, _local2);
_local1.lineTo(_local3 + w, _local2);
_local1.lineTo(_local3 + w, _local2 + h);
_local1.lineTo(_local3, _local2 + h);
_local1.lineTo(_local3, _local2);
if (bgcolor >= 0) {
_local1.endFill();
}
};
htmlTableClass.prototype.refreshLayout = function () {
var _local1 = this;
trace("htmlTableClass> refreshLayout");
if (!(_local1.html.nodeName === "table")) {
} else {
var _local2 = [];
var _local3 = [];
r = 0;
while (r < _local1.table.length) {
c = 0;
while (c < _local1.table[r].length) {
if (_local3[c] == undefined) {
_local3[c] = {width:0, factor:100};
}
if (_local2[r] == undefined) {
_local2[r] = {height:0, factor:100};
}
var cell = _local1.table[(_local1.table.length - 1) - r][(_local1.table[r].length - 1) - c];
_local3[c].factor = Fp6Mat.min(cell.cell.wf, _local3[c].factor);
_local2[r].factor = Fp6Mat.min(cell.cell.hf, _local2[r].factor);
if (cell.flag) {
if (cell.cell.rowspan == 1) {
_local2[r].height = Fp6Mat.max(_local2[r].height, cell.cell.height);
}
if (cell.cell.colspan == 1) {
_local3[c].width = Fp6Mat.max(_local3[c].width, cell.cell.width);
}
}
c++;
}
r++;
}
var span = Fp6Mat.max(_local1.table.length, _local1.table[0].length);
s = 2;
while (s <= span) {
r = 0;
while (r < _local1.table.length) {
c = 0;
while (c < _local1.table[r].length) {
var cell = _local1.table[(_local1.table.length - 1) - r][(_local1.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 = cw + _local3[i].width;
f = f + _local3[i].factor;
i++;
}
d = w - cw;
if (d > 0) {
i = c;
while (i < (c + s)) {
_local3[i].width = _local3[i].width + ((d * _local3[i].factor) / f);
i++;
}
}
}
if (cell.cell.rowspan == s) {
w = cell.cell.height;
rh = 0;
f = 0;
i = r;
while (i < (r + s)) {
rh = rh + _local2[i].height;
f = f + _local2[i].factor;
i++;
}
d = w - rh;
if (d > 0) {
i = r;
while (i < (r + s)) {
_local2[i].height = _local2[i].height + ((d * _local2[i].factor) / f);
i++;
}
}
}
}
c++;
}
r++;
}
s++;
}
var w = 0;
var f = 0;
i = 0;
while (i < _local3.length) {
w = w + _local3[i].width;
f = f + _local3[i].factor;
i++;
}
d = _local1.width - w;
if (d > 0) {
i = 0;
while (i < _local3.length) {
_local3[i].width = _local3[i].width + ((d * _local3[i].factor) / f);
i++;
}
}
var h = 0;
var f = 0;
i = 0;
while (i < _local2.length) {
h = h + _local2[i].height;
f = f + _local2[i].factor;
i++;
}
d = _local1.height - h;
if (d > 0) {
i = 0;
while (i < _local2.length) {
_local2[i].height = _local2[i].height + ((d * _local2[i].factor) / f);
i++;
}
}
_local1.clear();
r = 0;
while (r < _local1.table.length) {
c = 0;
while (c < _local1.table[r].length) {
var cell = _local1.table[(_local1.table.length - 1) - r][(_local1.table[r].length - 1) - c];
if (cell.flag) {
var w = 0;
var h = 0;
i = 0;
while (i < cell.cell.rowspan) {
h = h + ((_local2[r + i].height + (2 * _local1.cellpadding)) + _local1.cellspacing);
i++;
}
i = 0;
while (i < cell.cell.colspan) {
w = w + ((_local3[c + i].width + (2 * _local1.cellpadding)) + _local1.cellspacing);
i++;
}
w = w - _local1.cellspacing;
h = h - _local1.cellspacing;
var x = _local1.cellspacing;
var y = _local1.cellspacing;
i = 0;
while (i < c) {
x = x + ((_local3[i].width + (2 * _local1.cellpadding)) + _local1.cellspacing);
i++;
}
i = 0;
while (i < r) {
y = y + ((_local2[i].height + (2 * _local1.cellpadding)) + _local1.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) + _local1.cellpadding;
p.x = ((x + w) - _w) - _local1.cellpadding;
break;
default :
q.x = -_local1.cellpadding;
p.x = x + _local1.cellpadding;
}
switch (cell.cell.valign) {
case "top" :
q.y = -_local1.cellpadding;
p.y = y + _local1.cellpadding;
break;
case "bottom" :
q.y = (_h - h) + _local1.cellpadding;
p.y = ((y + h) - _h) - _local1.cellpadding;
break;
default :
q.y = (_h - h) / 2;
p.y = y + ((h - _h) / 2);
}
_local1.drawRect(cell.cell, q.x, q.y, w, h, _local1.border, cell.cell.bordercolor, cell.cell.bgcolor);
_local1.localToGlobal(p);
_local1._parent.globalToLocal(p);
cell.cell._x = p.x;
cell.cell._y = p.y;
}
c++;
}
r++;
}
var w = _local1.cellspacing;
i = 0;
while (i < _local3.length) {
w = w + ((_local3[i].width + (2 * _local1.cellpadding)) + _local1.cellspacing);
i++;
}
var h = _local1.cellspacing;
i = 0;
while (i < _local2.length) {
h = h + ((_local2[i].height + (2 * _local1.cellpadding)) + _local1.cellspacing);
i++;
}
_local1.drawRect(_local1, 0, 0, w, h, _local1.border, _local1.bordercolor, _local1.bgcolor);
_local1._parent.width = Fp6Mat.max(w, _local1._parent.width);
_local1._parent.height = Fp6Mat.max(h, _local1._parent.height);
_local1.width = _local1._width;
_local1.height = _local1._height;
}
_local1._parent.num--;
if (_local1._parent.num <= 0) {
_local1._parent.refreshLayout(_local1);
}
};
Object.registerClass("htmlTable", htmlTableClass);
#endinitclip
Symbol 1073 MovieClip [htmlRenderer] Frame 1
#initclip 13
htmlRendererClass = function () {
this.init();
};
htmlRendererClass.prototype = new MovieClip();
htmlRendererClass.prototype.init = function () {
var _local1 = this;
trace("htmlRendererClass> init " + (_local1._dp - 5000));
_local1.tfs.autoSize = true;
_local1.tfs.html = true;
_local1.tfs.embedFonts = true;
_local1.tfs.htmlText = "";
_local1.tfm.autoSize = true;
_local1.tfm.html = true;
_local1.tfm.embedFonts = true;
_local1.tfm.htmlText = "";
_local1.links = [];
_local1.__depth = 100;
_local1.currentLine = 0;
_local1.lines = [""];
_local1.eol = 0;
_local1.bol = 0;
_local1.lineImages = [];
_local1.absoluteImages = [];
_local1.images = [];
_local1.events = [];
_local1.marginOff = [];
if (TextField.widths == undefined) {
_local1.probeFont();
}
_local1.lineHeight = 0;
_local1.lastLineFont = 15;
_local1.width = ((_local1.width <= 4) ? 300 : (_local1.width - 4));
_local1.xoffset = 0;
_local1.yoffset = 0;
_local1.lmargin = 0;
_local1.rmargin = 0;
_local1.fontColor = 0;
_local1.rendererObject = {_childs:[], _xml:"", _fsize:12};
if (typeof(_local1.html) == "string") {
var _local2 = new XML();
_local2.ignoreWhite = true;
_local2.parseXML(_local1.html);
_local1.html = _local2;
}
_local1.addChild(_local1.html, 12);
_local1.onEnterFrame = _local1.onEnterFrameNormal;
};
htmlRendererClass.prototype.addChild = function (_xml, _fsize) {
var _local1 = _fsize;
var _local2 = {_parent:this.rendererObject, _childs:[], _xml:_xml, _fsize:_local1, _e:"", _fh:_local1};
this.rendererObject._childs.push(_local2);
};
htmlRendererClass.prototype.onEnterFrameNormal = function () {
var _local1 = this;
trace("htmlRendererClass> onEnterFrameNormal");
while (_local1.rendererObject._childs.length == 0) {
var _xml = _local1.rendererObject._xml;
var _local3 = _local1.rendererObject._e;
var _local2 = _local1.rendererObject._fh;
var _fsize = _local1.rendererObject._fsize;
switch (_xml.nodeName.toLowerCase()) {
case "p" :
_local1.lines[_local1.currentLine] = _local1.lines[_local1.currentLine] + "</P>";
_local1.lineHeight = _local1.lineHeight + _local2;
_local1.endOfLine(_local2, _fsize);
break;
case "a" :
_local1.lines[_local1.currentLine] = _local1.lines[_local1.currentLine] + "</U></A></FONT>";
_local1.links.pop();
}
_local1.lines[_local1.currentLine] = _local1.lines[_local1.currentLine] + _local3;
_local1.rendererObject = _local1.rendererObject._parent;
if (_local1.rendererObject._parent == undefined) {
_local1.onEnterFrame = null;
_local1.endOfField(_local2, _fsize);
_local1.draw();
return;
}
}
_local1.rendererObject = _local1.rendererObject._childs.shift();
var _xml = _local1.rendererObject._xml;
var _fsize = _local1.rendererObject._fsize;
if (_xml.nodeValue != undefined) {
_local1.simpleText(_xml, _fsize);
} else {
switch (_xml.nodeName.toLowerCase()) {
case "img" :
_local1.onEnterFrame = null;
var im = {width:parseInt(_xml.attributes.width), height:parseInt(_xml.attributes.height), src:_xml.attributes.src, _dp:_local1.__depth, _link:_local1.links[_local1.links.length - 1], host:_local1.host};
_local1.attachMovie("htmlImage", "im" + _local1.__depth, _local1.__depth, im);
_local1.__depth++;
return;
case "table" :
_local1.onEnterFrame = null;
var im = {width:parseInt(_xml.attributes.width), height:parseInt(_xml.attributes.height), html:_xml, _dp:_local1.__depth, host:_local1.host};
_local1.attachMovie("htmlTable", "im" + _local1.__depth, _local1.__depth, im);
_local1.__depth++;
return;
default :
_local1.htmlTag(_xml, _fsize);
}
}
};
htmlRendererClass.prototype.refreshLayout = function (im) {
var _local1 = this;
trace("htmlRendererClass> refreshLayout");
var _local3 = _local1.rendererObject._xml;
var _local2 = _local1.rendererObject._fsize;
_local1.htmlTag(_local3, _local2, im);
_local1.onEnterFrame = _local1.onEnterFrameNormal;
};
htmlRendererClass.prototype.draw = function () {
var _local1 = this;
var ll = _local1.lines.pop();
if (ll != "") {
_local1.lines.push(ll);
}
trace("htmlRendererClass> draw");
var _local3 = "<TEXTFORMAT INDENT=\"0\" LEADING=\"0\">";
_local3 = _local3 + "<P ALIGN=\"LEFT\">";
_local3 = _local3 + "<FONT SIZE=\"12\" COLOR=\"#000000\">";
_local3 = _local3 + _local1.lines.join("<br>");
_local3 = _local3 + "</FONT>";
_local3 = _local3 + "</P>";
_local3 = _local3 + "</TEXTFORMAT>";
_local1.tfm.htmlText = _local3;
for (i in _local1.images) {
var _local2 = _local1.images[i].clip;
if ((_local1.images[i].align == "right") && (_local1.width > 100000)) {
_local2._x = (_local1.images[i]._x - _local1.width) + (2 * _local1.tfm._width);
} else {
_local2._x = _local1.images[i]._x;
}
_local2._y = _local1.images[i]._y;
if (_local1.images[i]._y < 0) {
trace(_local1.images[i].clip);
}
_local2._visible = true;
}
_local1._parent.width = Fp6Mat.max(_local1._width, _local1._parent.width);
_local1._parent.height = Fp6Mat.max(_local1._height, _local1._parent.height);
_local1._parent.refreshLayout();
};
htmlRendererClass.prototype.sortEvents = function (a, b) {
var _local1 = b;
var _local2 = a;
trace("htmlRendererClass> sortEvents");
if (_local2.yoffset < _local1.yoffset) {
return(-1);
}
if (_local2.yoffset > _local1.yoffset) {
return(1);
}
if (_local2.xoffset < _local1.xoffset) {
return(-1);
}
if (_local2.xoffset > _local1.xoffset) {
return(1);
}
return(0);
};
htmlRendererClass.prototype.updateMargins = function (_fsize) {
var _local1 = this;
trace("htmlRendererClass> updateMargins");
var _local3 = "";
var wdt = ((_local1.width - _local1.lmargin) - _local1.rmargin);
if (_local1.xoffset != 0) {
return(wdt);
}
while ((_local1.events.length > 0) && (_local1.events[0].yoffset <= _local1.yoffset)) {
var _local2 = _local1.events.shift();
offEvt = undefined;
if (_local2.lmargin != undefined) {
var offEvt = {lmargin:_local1.lmargin, yoffset:_local2.height + _local1.yoffset};
_local1.images[_local2.image]._x = _local1.lmargin;
_local1.lmargin = _local1.lmargin + _local2.lmargin;
}
if (_local2.rmargin != undefined) {
var offEvt = {rmargin:_local1.rmargin, yoffset:_local2.height + _local1.yoffset};
_local1.images[_local2.image]._x = (_local1.width - _local1.rmargin) - _local1.images[_local2.image].width;
_local1.rmargin = _local1.rmargin + _local2.rmargin;
}
if (offEvt != undefined) {
_local1.marginOff.unshift(offEvt);
_local3 = ((((("</TEXTFORMAT><TEXTFORMAT LEFTMARGIN=\"" + _local1.lmargin) + "\" RIGHTMARGIN=\"") + _local1.rmargin) + "\"><FONT SIZE=\"") + _fsize) + "\">";
var wdt = ((_local1.width - _local1.lmargin) - _local1.rmargin);
}
_local1.images[_local2.image]._y = ((_local1.yoffset == 0) ? 0 : (_local1.yoffset + 4));
}
while ((_local1.marginOff.length > 0) && (_local1.marginOff[0].yoffset < _local1.yoffset)) {
var offEvt = _local1.marginOff.shift();
if (offEvt.lmargin != undefined) {
_local1.lmargin = offEvt.lmargin;
}
if (offEvt.rmargin != undefined) {
_local1.rmargin = offEvt.rmargin;
}
_local3 = ((((("</TEXTFORMAT><TEXTFORMAT LEFTMARGIN=\"" + _local1.lmargin) + "\" RIGHTMARGIN=\"") + _local1.rmargin) + "\"><FONT SIZE=\"") + _fsize) + "\">";
var wdt = ((_local1.width - _local1.lmargin) - _local1.rmargin);
}
_local1.lines[_local1.currentLine] = _local1.lines[_local1.currentLine] + _local3;
return(wdt);
};
htmlRendererClass.prototype.endOfLine = function (fh, _fsize) {
var _local1 = this;
trace("htmlRendererClass> endOfLine");
var line = _local1.lines[_local1.currentLine];
if (_local1.bol > 0) {
var n = Fp6Mat.ceil(_local1.bol / _local1.lastLineFont);
var _local3 = 0;
while (_local3 < n) {
_local1.lines[_local1.currentLine + _local3] = "";
_local3++;
}
_local1.currentLine = _local1.currentLine + n;
_local1.yoffset = _local1.yoffset + (n * _local1.lastLineFont);
_local1.lines[_local1.currentLine] = line;
_local1.updateMargins(_fsize);
}
for (var _local3 in _local1.lineImages) {
var _local2 = _local1.lineImages[_local3];
switch (_local2.align) {
case "top" :
_local2._y = _local1.yoffset;
break;
case "middle" :
_local2._y = (_local1.yoffset + (_local1.lineHeight / 2)) - (_local2.height / 2);
break;
case "bottom" :
_local2._y = (_local1.yoffset + _local1.lineHeight) - _local2.height;
}
}
_local1.lineImages.splice(0, _local1.lineImages.length);
_local1.currentLine++;
_local1.lines[_local1.currentLine] = "";
_local1.xoffset = 0;
_local1.yoffset = _local1.yoffset + _local1.lineHeight;
_local1.lineHeight = fh;
_local1.lastLineFont = fh;
if (_local1.eol > 0) {
var n = Fp6Mat.ceil((_local1.eol - _local1.lineHeight) / fh);
var _local3 = 1;
while (_local3 <= n) {
_local1.lines[_local1.currentLine + _local3] = "";
_local3++;
}
_local1.currentLine = _local1.currentLine + n;
_local1.yoffset = _local1.yoffset + (n * fh);
_local1.updateMargins(_fsize);
}
_local1.bol = 0;
_local1.eol = 0;
};
htmlRendererClass.prototype.endOfField = function (fh, _fsize) {
var _local1 = this;
trace("htmlRendererClass> endOfField");
var line = _local1.lines[_local1.currentLine];
if (_local1.bol > 0) {
var n = Fp6Mat.ceil(_local1.bol / _local1.lastLineFont);
var _local3 = 0;
while (_local3 < n) {
_local1.lines[_local1.currentLine + _local3] = "";
_local3++;
}
_local1.currentLine = _local1.currentLine + n;
_local1.yoffset = _local1.yoffset + (n * _local1.lastLineFont);
_local1.lines[_local1.currentLine] = line;
_local1.updateMargins(_fsize);
}
for (var _local3 in _local1.lineImages) {
var _local2 = _local1.lineImages[_local3];
switch (_local2.align) {
case "top" :
_local2._y = _local1.yoffset;
break;
case "middle" :
_local2._y = (_local1.yoffset + (_local1.lineHeight / 2)) - (_local2.height / 2);
break;
case "bottom" :
_local2._y = (_local1.yoffset + _local1.lineHeight) - _local2.height;
}
}
_local1.lineImages.splice(0, _local1.lineImages.length);
if (_local1.eol > 0) {
var n = Fp6Mat.ceil((_local1.eol - _local1.lineHeight) / fh);
var _local3 = 1;
while (_local3 <= n) {
_local1.lines[_local1.currentLine + _local3] = "";
_local3++;
}
_local1.currentLine = _local1.currentLine + n;
_local1.yoffset = _local1.yoffset + (n * fh);
_local1.updateMargins(_fsize);
}
_local1.bol = 0;
_local1.eol = 0;
};
htmlRendererClass.prototype.simpleText = function (_xml, _fsize) {
var _local2 = this;
trace("htmlRendererClass> simpleText");
var wdt = ((_local2.width - _local2.lmargin) - _local2.rmargin);
var fw = TextField.widths[_fsize - 10];
var fh = TextField.heights[_fsize - 10];
_local2.lineHeight = Fp6Mat.max(fh, _local2.lineHeight);
fh = Fp6Mat.max(fh, _local2.fontHeight);
var _local1 = _xml.nodeValue;
if ((!_local2.xoffset) && (_local1.substr(0, 1) == " ")) {
_local1 = _local1.substr(1);
}
do {
if (_local2.xoffset == 0) {
var wdt = _local2.updateMargins(_fsize);
}
var w = (wdt - _local2.xoffset);
var _local3 = Fp6Mat.floor(w / fw);
if (_local3 <= _local1.length) {
var ls = _local1.lastIndexOf(" ");
if (_local3 < _local1.length) {
_local3 = (((ls == -1) || (ls == undefined)) ? (_local1.length) : (ls + 1));
}
_local2.lines[_local2.currentLine] = _local2.lines[_local2.currentLine] + _local1.substr(0, _local3);
_local2.endOfLine(fh, _fsize);
} else {
_local2.xoffset = _local2.xoffset + (_local1.length * fw);
_local2.lines[_local2.currentLine] = _local2.lines[_local2.currentLine] + _local1.substr(0, _local3);
}
_local1 = ((_local3 < _local1.length) ? (_local1.substr(_local3)) : "");
if ((!_local2.xoffset) && (_local1.substr(0, 1) == " ")) {
_local1 = _local1.substr(1);
}
w = wdt;
} while (_local1.length > 0);
};
htmlRendererClass.prototype.htmlTag = function (_xml, _fsize, _image) {
var _local1 = this;
var _local3 = _xml;
trace("htmlRendererClass> htmlTag");
trace("htmlTag> " + _local3.nodeName);
var _local2 = "";
var e = "";
var wdt = ((_local1.width - _local1.lmargin) - _local1.rmargin);
var fw = TextField.widths[_fsize - 10];
var fh = TextField.heights[_fsize - 10];
fh = Fp6Mat.max(fh, _local1.fontHeight);
switch (_local3.nodeName.toLowerCase()) {
case "body" :
_local1.width = ((_local3.attributes.width == undefined) ? (_local1.width) : (parseInt(_local3.attributes.width)));
break;
case "table" :
case "img" :
var im = {width:_image.width, height:_image.height, align:((_local3.attributes.align == undefined) ? "bottom" : (_local3.attributes.align.toLowerCase())), clip:_image};
_local1.images.push(im);
var imn = (_local1.images.length - 1);
var ev = {yoffset:_local1.yoffset, xoffset:_local1.xoffset, height:im.height, image:imn, line:_local1.currentLine, align:_local3.attributes.align.toLowerCase()};
switch (_local3.attributes.align.toLowerCase()) {
case "left" :
im._x = _local1.lmargin;
ev.lmargin = (_local1.lmargin + im.width) + 4;
_local1.events.push(ev);
_local1.events.sort(_local1.sortEvents);
break;
case "right" :
im._x = (_local1.width - _local1.rmargin) - im.width;
ev.rmargin = (_local1.rmargin + im.width) + 4;
_local1.events.push(ev);
_local1.events.sort(_local1.sortEvents);
break;
case "top" :
_local2 = "";
var wdt = ((_local1.width - _local1.lmargin) - _local1.rmargin);
if ((_local1.xoffset + im.width) > wdt) {
_local1.endOfLine(fh, _fsize);
}
var n = Fp6Mat.ceil(im.width / fw);
i = 0;
while (i < n) {
_local2 = _local2 + " ";
i++;
}
_local1.lines[_local1.currentLine] = _local1.lines[_local1.currentLine] + _local2;
im._x = (_local1.xoffset + _local1.lmargin) + (((n * fw) - im.width) / 2);
_local1.xoffset = _local1.xoffset + (n * fw);
_local1.eol = Fp6Mat.max(_local1.eol, im.height);
_local1.lineImages.push(im);
break;
case "middle" :
_local2 = "";
var wdt = ((_local1.width - _local1.lmargin) - _local1.rmargin);
if ((_local1.xoffset + im.width) > wdt) {
_local1.endOfLine(fh, _fsize);
}
var n = Fp6Mat.ceil(im.width / fw);
i = 0;
while (i < n) {
_local2 = _local2 + " ";
i++;
}
_local1.lines[_local1.currentLine] = _local1.lines[_local1.currentLine] + _local2;
im._x = (_local1.xoffset + _local1.lmargin) + (((n * fw) - im.width) / 2);
_local1.xoffset = _local1.xoffset + (n * fw);
_local1.bol = Fp6Mat.max(_local1.bol, im.height / 2);
_local1.eol = Fp6Mat.max(_local1.eol, im.height / 2);
_local1.lineImages.push(im);
break;
default :
_local2 = "";
var wdt = ((_local1.width - _local1.lmargin) - _local1.rmargin);
if ((_local1.xoffset + im.width) > wdt) {
_local1.endOfLine(fh, _fsize);
}
var n = Fp6Mat.ceil(im.width / fw);
i = 0;
while (i < n) {
_local2 = _local2 + " ";
i++;
}
_local1.lines[_local1.currentLine] = _local1.lines[_local1.currentLine] + _local2;
im._x = (_local1.xoffset + _local1.lmargin) + (((n * fw) - im.width) / 2);
_local1.xoffset = _local1.xoffset + (n * fw);
_local1.bol = Fp6Mat.max(_local1.bol, im.height);
_local1.lineImages.push(im);
}
break;
case "font" :
var _oldsize = _fsize;
_fsize = parseInt(_local3.attributes.size) + 10;
_fsize = Fp6Mat.min(19, _fsize);
_fsize = Fp6Mat.max(10, _fsize);
_local2 = ("<FONT SIZE=\"" + _fsize) + "\">";
_local1.lines[_local1.currentLine] = _local1.lines[_local1.currentLine] + _local2;
e = ("</FONT><FONT SIZE=\"" + _oldsize) + "\">";
break;
case "a" :
var __href = _local3.attributes.href;
var __target = _local3.attributes.target;
if (__href.substr(0, 7).toLowerCase() != "http://") {
__href = _local1.host.baseUrl + __href;
}
_local1.links.push({t:__target, h:__href});
_local2 = ((((("<FONT SIZE=\"" + _fsize) + "\" COLOR=\"#BB0000\"><U><A HREF=\"asfunction:host.loadURL,") + __href) + ",") + __target) + "\">";
_local1.lines[_local1.currentLine] = _local1.lines[_local1.currentLine] + _local2;
e = "</U></A></FONT>";
break;
case "br" :
_local1.endOfLine(fh, _fsize);
break;
case "p" :
_local1.endOfLine(fh, _fsize);
_local2 = "<P ";
for (i in _local3.attributes) {
_local2 = _local2 + (((i + "=\"") + _local3.attributes[i]) + "\" ");
}
_local2 = _local2 + ">";
_local1.endOfLine(fh, _fsize);
_local1.lines[_local1.currentLine] = _local1.lines[_local1.currentLine] + _local2;
break;
}
_local1.rendererObject._e = e;
_local1.rendererObject._fh = fh;
if (_local3.nodeName.toLowerCase() != "table") {
var i = 0;
while (i < _local3.childNodes.length) {
_local1.addChild(_local3.childNodes[i], _fsize);
i++;
}
}
};
htmlRendererClass.prototype.probeFont = function () {
var _local2 = this;
trace("htmlRendererClass> probeFont");
TextField.widths = [];
TextField.heights = [];
_local2.tfm.autoSize = true;
_local2.tfs.autoSize = true;
var _local3 = 10;
while (_local3 < 20) {
var _local1 = "<TEXTFORMAT INDENT=\"0\" LEADING=\"0\">";
_local1 = _local1 + "<P ALIGN=\"LEFT\">";
_local1 = _local1 + (("<FONT SIZE=\"" + _local3) + "\" COLOR=\"#000000\">");
_local1 = _local1 + "x";
_local1 = _local1 + "</FONT>";
_local1 = _local1 + "</P>";
_local1 = _local1 + "</TEXTFORMAT>";
_local2.tfs.htmlText = _local1;
w1 = _local2.tfs._width;
_local1 = "<TEXTFORMAT INDENT=\"0\" LEADING=\"0\">";
_local1 = _local1 + "<P ALIGN=\"LEFT\">";
_local1 = _local1 + (("<FONT SIZE=\"" + _local3) + "\" COLOR=\"#000000\">");
_local1 = _local1 + "xx";
_local1 = _local1 + "</FONT>";
_local1 = _local1 + "</P>";
_local1 = _local1 + "</TEXTFORMAT>";
_local2.tfs.htmlText = _local1;
w2 = _local2.tfs._width;
var w = (w2 - w1);
TextField.widths.push(w);
_local1 = "<TEXTFORMAT INDENT=\"0\" LEADING=\"0\">";
_local1 = _local1 + "<P ALIGN=\"LEFT\">";
_local1 = _local1 + (("<FONT SIZE=\"" + _local3) + "\" COLOR=\"#000000\">");
_local1 = _local1 + "x";
_local1 = _local1 + "</FONT>";
_local1 = _local1 + "</P>";
_local1 = _local1 + "</TEXTFORMAT>";
_local2.tfm.htmlText = _local1;
w1 = _local2.tfm._height;
_local1 = "<TEXTFORMAT INDENT=\"0\" LEADING=\"0\">";
_local1 = _local1 + "<P ALIGN=\"LEFT\">";
_local1 = _local1 + (("<FONT SIZE=\"" + _local3) + "\" COLOR=\"#000000\">");
_local1 = _local1 + "x<br>x";
_local1 = _local1 + "</FONT>";
_local1 = _local1 + "</P>";
_local1 = _local1 + "</TEXTFORMAT>";
_local2.tfm.htmlText = _local1;
w2 = _local2.tfm._height;
var w = (w2 - w1);
TextField.heights.push(w);
_local3++;
}
trace(TextField.widths);
trace(TextField.heights);
_local2.tfm.htmlText = "";
_local2.tfs.htmlText = "";
};
Object.registerClass("htmlRenderer", htmlRendererClass);
#endinitclip
Symbol 1074 MovieClip [htmlImage] Frame 1
#initclip 10
htmlImageClass = function () {
this.init();
};
htmlImageClass.prototype = new MovieClip();
htmlImageClass.prototype.init = function () {
var _local1 = this;
if (_local1._link != undefined) {
_local1.onPress = _local1.loadURL;
}
trace("htmlImageClass> init " + (_local1._dp - 5000));
_local1._visible = false;
var _local2 = _local1.src.split("://");
if ((_local2[0] == "http") || (_local2[0] == "https")) {
_local1.createEmptyMovieClip("im", 1).loadMovie(_local1.src);
} else {
_local1.createEmptyMovieClip("im", 1).loadMovie(_local1.host.baseUrl + _local1.src);
}
};
htmlImageClass.prototype.loadURL = function () {
var _local1 = this;
_local1._parent.host.loadURL((_local1._link.h + ",") + _local1._link.t);
};
htmlImageClass.prototype.onEnterFrame = function () {
var _local1 = this;
if (_local1.im == undefined) {
} else {
var _local3 = _local1.im.getBytesLoaded();
var _local2 = _local1.im.getBytesTotal();
if ((_local2 > 100) && (_local2 == _local3)) {
if (isNaN(_local1.width) || (isNaN(_local1.height))) {
_local1.width = _local1.im._width;
_local1.height = _local1.im._height;
_local1.onEnterFrame = null;
_local1._parent.refreshLayout(_local1);
} else {
_local1.im._width = _local1.width;
_local1.im._height = _local1.height;
_local1.onEnterFrame = null;
_local1._parent.refreshLayout(_local1);
}
}
}
};
Object.registerClass("htmlImage", htmlImageClass);
#endinitclip
Symbol 1544 MovieClip [flag] Frame 1
#initclip 21
FlagClass = function () {
var _local1 = this;
_local1._group = "country";
if (_local1._parent[_local1._group] == undefined) {
_local1._parent[_local1._group] = {};
AsBroadcaster.initialize(_local1._parent[_local1._group]);
}
_local1.groupObject = _local1._parent[_local1._group];
_local1.groupObject.addListener(_local1);
_local1.fn = ("on" + _local1._group.substr(0, 1).toUpperCase()) + _local1._group.substr(1);
_local1.isOver = false;
_local1._enabled = true;
_local1.pt._visible = false;
_local1.pt._width = 300;
_local1.gotoAndStop(_local1._parent._parent.cc[_local1.n].i);
_local1.name.autoSize = true;
var _local2 = _local1._parent._parent.cc[_local1.n].country;
_local1.name.htmlText = (("<font size=\"14\"><b>" + _local2.substr(0, 1)) + "</b></font>") + _local2.substr(1);
_local1.over_c = new Color(_local1.name);
_local1._index = _local1._parent._parent.cc[_local1.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 _local1 = this;
if (i == _local1._index) {
_local1.pt._visible = true;
_local1._parent._parent._parent._parent._parent.onCountry(_local1._index);
_local1.isChecked = true;
} else {
_local1.pt._visible = false;
_local1.isChecked = false;
}
_local1._parent._parent.verify();
};
Object.registerClass("flag", FlagClass);
#endinitclip
Symbol 1545 MovieClip [KeyClass] Frame 1
#initclip 7
KeyClassClass = function () {
var _local1 = this;
if (_local1._parent.keys == undefined) {
_local1._parent.keys = [];
}
if (_local1._parent.codes == undefined) {
_local1._parent.codes = [];
}
_local1.but = _local1.bk.bk;
_local1.let.addProperty("text", _local1._gt, _local1._st);
_local1.addProperty("_code", _local1._gc, _local1._sc);
_local1.c = new Color(_local1);
_local1.ct0 = (_local1.ct = _local1.c.getTransform());
_local1.active_ct = {ra:"87", rb:"33", ga:"87", gb:"27", ba:"87", bb:"7", aa:"100", ab:"0"};
var _local3 = _local1._width;
var _local2 = _local1._height;
_local1.let._xs = _local1._xscale;
_local1.let._ys = _local1._yscale;
_local1._xscale = (_local1._yscale = 100);
_local1.bk._width = _local3;
_local1.bk._height = _local2;
_local1.snap();
_local1._parent.keys.push(_local1);
if (_local1._parent.codes[_local1._code] == undefined) {
_local1._parent.codes[_local1._code] = [];
}
_local1._parent.codes[_local1._code].push(_local1);
_local1.but.root = _local1;
_local1.but.onPress = _local1.butOnPress;
_local1.but.onRollOver = (_local1.but.onDragOver = _local1.butOnRollOver);
_local1.but.onRollOut = (_local1.but.onDragOut = _local1.butOnRollOut);
_local1.kbc._x = _local3;
_local1.kbc._y = _local2;
};
KeyClassClass.prototype = new MovieClip();
KeyClassClass.prototype.butOnPress = function () {
var _local1 = this;
_local1.root._parent.attachMovie("KeyClass_Cursor", "cursor", 10000, {_xscale:-50, _yscale:-50});
_local1.root._parent.cursor.dragged = _local1.root;
_local1.root._parent.cursor.startDrag(true);
_local1.root._parent.cursor.onMouseUp = function () {
var _local1 = this;
_local1.stopDrag();
var _local2 = _local1._parent.getTarget();
if (_local2 != null) {
_local1._parent.exchange(_local1.dragged, _local2);
}
_local1.removeMovieClip();
};
};
KeyClassClass.prototype.butOnRollOver = function () {
var _local2 = this;
new Color(_local2.root.bk.arr).setRGB(10027008);
if (_local2.root.tipText != undefined) {
var _local1 = {x:_local2.root._x, y:_local2.root._y + 10};
_local2.root._parent.localToGlobal(_local1);
GOS.root.globalToLocal(_local1);
GOS.root.attachMovie("GOS_ToolTip", "toolTip", 5000, {tipText:_local2.root.tipText, _x:_local1.x, _y:_local1.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 _local1 = this;
_local1.blink = 0;
_local1.blinkColor = 16755370 /* 0xFFAAAA */;
_local1.onEnterFrame = _local1.blinkOEF;
};
KeyClassClass.prototype.blink2 = function () {
var _local1 = this;
_local1.blink = 0;
_local1.blinkColor = 11184895 /* 0xAAAAFF */;
_local1.onEnterFrame = _local1.blinkOEF;
};
KeyClassClass.prototype.blinkOEF = function () {
var _local1 = this;
if (_local1.blink == (_local1.blink & 254)) {
_local1.c.setTransform(_local1.ct);
} else {
_local1.c.setRGB(_local1.blinkColor);
}
if ((_local1.blink++) == 4) {
delete _local1.onEnterFrame;
}
};
KeyClassClass.prototype._sc = function (c) {
var _local1 = this;
var _local2 = c;
if (GOS.root.keys[Key.changeCode(_local2)] != undefined) {
_local1.ct = _local1.active_ct;
_local1.tipText = GOS.Translation[GOS.root.keys[Key.changeCode(_local2)]];
if (_local1.tipText == undefined) {
_local1.tipText = GOS.root.keys[Key.changeCode(_local2)];
}
} else {
_local1.ct = _local1.ct0;
_local1.tipText = undefined;
}
_local1.c.setTransform(_local1.ct);
if (_local1.__code == undefined) {
_local1.__code = _local2;
}
_local1.let.text = _local1._parent._let[Key.changeCode(_local2)];
};
KeyClassClass.prototype._gc = function () {
return(this.__code);
};
KeyClassClass.prototype._st = function (t) {
var _local1 = this;
var _local3 = t;
if (_local1.let.text == "") {
_local1.let.autoSize = true;
_local1.w = _local1._parent._width - 5;
}
switch (_local3) {
case "rt" :
_local1.let._visible = false;
_local1._parent.bk.arr.gotoAndStop(1);
_local1._parent.bk.arr._visible = true;
break;
case "lf" :
_local1.let._visible = false;
_local1._parent.bk.arr.gotoAndStop(2);
_local1._parent.bk.arr._visible = true;
break;
case "up" :
_local1.let._visible = false;
_local1._parent.bk.arr.gotoAndStop(3);
_local1._parent.bk.arr._visible = true;
break;
case "dw" :
_local1.let._visible = false;
_local1._parent.bk.arr.gotoAndStop(4);
_local1._parent.bk.arr._visible = true;
break;
default :
_local1._parent.bk.arr._visible = false;
_local1.let._visible = true;
_local1.let.text = "";
var _local2 = 0;
for(;;){
if (!((_local1.let._width < _local1.w) && (_local2 < _local3.length))) {
break;
}
_local1.let.text = _local1.let.text + _local3.substr(_local2, 1);
_local2++;
};
}
_local1.txt = _local3;
};
KeyClassClass.prototype._gt = function () {
return(this.txt);
};
Object.registerClass("KeyClass", KeyClassClass);
#endinitclip
Symbol 1550 MovieClip [user_hs_record] Frame 1
#initclip 5
user_hs_recordClass = function () {
var _local1 = this;
_local1.initFrame();
_local1.gotoAndStop(_local1.frame[_local1.countryCode]);
};
user_hs_recordClass.prototype = new MovieClip();
user_hs_recordClass.prototype.initFrame = function () {
var _local1 = this;
_local1.frame = [];
_local1.frame.AO = 9;
_local1.frame.BF = 20;
_local1.frame.BI = 23;
_local1.frame.BJ = 24;
_local1.frame.BW = 31;
_local1.frame.CD = 36;
_local1.frame.CF = 37;
_local1.frame.CG = 38;
_local1.frame.CI = 40;
_local1.frame.CM = 43;
_local1.frame.CV = 48;
_local1.frame.DJ = 53;
_local1.frame.DZ = 57;
_local1.frame.EG = 60;
_local1.frame.EH = 61;
_local1.frame.ER = 62;
_local1.frame.ET = 64;
_local1.frame.GA = 71;
_local1.frame.GH = 75;
_local1.frame.GM = 78;
_local1.frame.GN = 79;
_local1.frame.GQ = 81;
_local1.frame.GW = 86;
_local1.frame.KE = 105;
_local1.frame.KM = 109;
_local1.frame.LR = 121;
_local1.frame.LS = 122;
_local1.frame.LY = 126;
_local1.frame.MA = 127;
_local1.frame.MG = 130;
_local1.frame.ML = 133;
_local1.frame.MR = 139;
_local1.frame.MU = 142;
_local1.frame.MW = 144;
_local1.frame.MZ = 147;
_local1.frame.NA = 148;
_local1.frame.NE = 150;
_local1.frame.NG = 152;
_local1.frame.RW = 178;
_local1.frame.SC = 181;
_local1.frame.SD = 182;
_local1.frame.SH = 185;
_local1.frame.SL = 188;
_local1.frame.SN = 190;
_local1.frame.SO = 191;
_local1.frame.ST = 193;
_local1.frame.SZ = 197;
_local1.frame.TD = 199;
_local1.frame.TG = 201;
_local1.frame.TN = 207;
_local1.frame.TZ = 213;
_local1.frame.UG = 215;
_local1.frame.ZA = 231;
_local1.frame.ZM = 232;
_local1.frame.ZW = 233;
_local1.frame.AE = 2;
_local1.frame.AF = 3;
_local1.frame.AM = 7;
_local1.frame.AZ = 15;
_local1.frame.BD = 18;
_local1.frame.BH = 22;
_local1.frame.BN = 26;
_local1.frame.BT = 30;
_local1.frame.CC = 35;
_local1.frame.CN = 44;
_local1.frame.CX = 49;
_local1.frame.CY = 50;
_local1.frame.GE = 74;
_local1.frame.HK = 88;
_local1.frame.ID = 93;
_local1.frame.IL = 95;
_local1.frame.IN = 96;
_local1.frame.IO = 97;
_local1.frame.IQ = 98;
_local1.frame.IR = 99;
_local1.frame.JO = 103;
_local1.frame.JP = 104;
_local1.frame.KG = 106;
_local1.frame.KH = 107;
_local1.frame.KP = 111;
_local1.frame.KR = 112;
_local1.frame.KW = 113;
_local1.frame.KZ = 115;
_local1.frame.LA = 116;
_local1.frame.LB = 117;
_local1.frame.LK = 120;
_local1.frame.MM = 134;
_local1.frame.MN = 135;
_local1.frame.MO = 136;
_local1.frame.MV = 143;
_local1.frame.MY = 146;
_local1.frame.NP = 156;
_local1.frame.OM = 160;
_local1.frame.PH = 165;
_local1.frame.PK = 166;
_local1.frame.PS = 171;
_local1.frame.QA = 175;
_local1.frame.SA = 179;
_local1.frame.SG = 184;
_local1.frame.SY = 196;
_local1.frame.TH = 202;
_local1.frame.TJ = 203;
_local1.frame.TL = 205;
_local1.frame.TM = 206;
_local1.frame.TR = 209;
_local1.frame.TW = 212;
_local1.frame.UZ = 219;
_local1.frame.VN = 225;
_local1.frame.YE = 229;
_local1.frame.AD = 1;
_local1.frame.AL = 6;
_local1.frame.AT = 12;
_local1.frame.BA = 16;
_local1.frame.BE = 19;
_local1.frame.BG = 21;
_local1.frame.BY = 32;
_local1.frame.CH = 39;
_local1.frame.CZ = 51;
_local1.frame.DE = 52;
_local1.frame.DK = 54;
_local1.frame.EE = 59;
_local1.frame.ES = 63;
_local1.frame.FI = 65;
_local1.frame.FO = 69;
_local1.frame.FR = 70;
_local1.frame.GB = 72;
_local1.frame.GI = 76;
_local1.frame.GR = 82;
_local1.frame.HR = 90;
_local1.frame.HU = 92;
_local1.frame.IE = 94;
_local1.frame.IS = 100;
_local1.frame.IT = 101;
_local1.frame.LI = 119;
_local1.frame.LT = 123;
_local1.frame.LU = 124;
_local1.frame.LV = 125;
_local1.frame.MC = 128;
_local1.frame.MD = 129;
_local1.frame.MK = 132;
_local1.frame.MT = 141;
_local1.frame.NL = 154;
_local1.frame.NO = 155;
_local1.frame.PL = 167;
_local1.frame.PT = 172;
_local1.frame.RO = 176;
_local1.frame.RU = 177;
_local1.frame.SE = 183;
_local1.frame.SI = 186;
_local1.frame.SK = 187;
_local1.frame.SM = 189;
_local1.frame.SU = 194;
_local1.frame.UA = 214;
_local1.frame.VA = 220;
_local1.frame.YU = 230;
_local1.frame.AG = 4;
_local1.frame.AI = 5;
_local1.frame.AN = 8;
_local1.frame.AW = 14;
_local1.frame.BB = 17;
_local1.frame.BM = 25;
_local1.frame.BS = 29;
_local1.frame.BZ = 33;
_local1.frame.CA = 34;
_local1.frame.CR = 46;
_local1.frame.CU = 47;
_local1.frame.DM = 55;
_local1.frame.DO = 56;
_local1.frame.GD = 73;
_local1.frame.GL = 77;
_local1.frame.GP = 80;
_local1.frame.GT = 84;
_local1.frame.HN = 89;
_local1.frame.HT = 91;
_local1.frame.JM = 102;
_local1.frame.KN = 110;
_local1.frame.KY = 114;
_local1.frame.LC = 118;
_local1.frame.MQ = 138;
_local1.frame.MS = 140;
_local1.frame.MX = 145;
_local1.frame.NI = 153;
_local1.frame.PA = 161;
_local1.frame.PM = 168;
_local1.frame.PR = 170;
_local1.frame.SV = 195;
_local1.frame.TC = 198;
_local1.frame.TT = 210;
_local1.frame.US = 217;
_local1.frame.VC = 221;
_local1.frame.VG = 223;
_local1.frame.VI = 224;
_local1.frame.AR = 10;
_local1.frame.BO = 27;
_local1.frame.BR = 28;
_local1.frame.CL = 42;
_local1.frame.CO = 45;
_local1.frame.EC = 58;
_local1.frame.FK = 67;
_local1.frame.GY = 87;
_local1.frame.PE = 162;
_local1.frame.PY = 174;
_local1.frame.SR = 192;
_local1.frame.UY = 218;
_local1.frame.VE = 222;
_local1.frame.AS = 11;
_local1.frame.AU = 13;
_local1.frame.CK = 41;
_local1.frame.FJ = 66;
_local1.frame.FM = 68;
_local1.frame.GU = 85;
_local1.frame.KI = 108;
_local1.frame.MH = 131;
_local1.frame.MP = 137;
_local1.frame.NC = 149;
_local1.frame.NF = 151;
_local1.frame.NR = 157;
_local1.frame.NU = 158;
_local1.frame.NZ = 159;
_local1.frame.PF = 163;
_local1.frame.PG = 164;
_local1.frame.PN = 169;
_local1.frame.PW = 173;
_local1.frame.SB = 180;
_local1.frame.TK = 204;
_local1.frame.TO = 208;
_local1.frame.TV = 211;
_local1.frame.UM = 216;
_local1.frame.VU = 226;
_local1.frame.WF = 227;
_local1.frame.WS = 228;
_local1.frame.GS = 83;
_local1.frame.TF = 200;
};
Object.registerClass("user_hs_record", user_hs_recordClass);
#endinitclip
Symbol 1552 MovieClip [APP_WebBrowser] Frame 1
this.onCreate = function () {
var _local2 = this;
_local2.childs = [];
if (_local2.parentWin != undefined) {
_local2.parentWin.addChild(_local2);
}
_local2.history = [];
_local2.history_i = 0;
_local2.pv_c = new Color(_local2.pv);
_local2.nx_c = new Color(_local2.nx);
if (_local2.url == undefined) {
_local2.url = GOS.variables[_local2.gosVar];
}
var _local1 = _local2.url.split("#");
for (i in _local1) {
if (GOS[_local1[i]] != undefined) {
_local1[i] = GOS[_local1[i]].toString();
}
}
_local2.url = _local1.join("");
GOS.proxy.addListener(_local2);
_local2._parent._parent.title = "WebBrowser: Loading page...";
};
this.onEnterFrame = function () {
var _local1 = this;
if (_local1.fontLoader.isLoaded == true) {
_local1.onEnterFrame = null;
trace("HTML Renderer has font");
_local1.reload(_local1.url);
}
};
this.onClose = function () {
var _local1 = this;
for (i in _local1.childs) {
_local1.childs[i].close();
}
if (_local1.parentWin != undefined) {
_local1.parentWin.delChild(_local1);
}
_local1.window._close();
};
this.loadURL = function (params_s) {
var _local2 = this;
var _local3 = params_s.split(",");
var _local1 = _local3[0];
var __target = _local3[1];
switch (__target) {
case "_self" :
_local2.reload(_local1);
return;
case "_parent" :
if (_local2.parentWin != undefined) {
_local2.parentWin.reload(_local1);
} else {
_local2.reload(_local1);
}
return;
case "_top" :
_local2.getTop().reload(_local1);
return;
default :
GOS.StateVars.Window.state = {class:"WebBrowser", title:_local2.title + ":child", url:_local1, parentWin:_local2};
}
};
this.getTop = function () {
var _local1 = this;
if (_local1.parentWin != undefined) {
return(_local1.parentWin.getTop());
}
return(_local1);
};
this.addChild = function (child) {
this.childs.push(child);
};
this.delChild = function (child) {
var _local2 = this;
var _local3 = _local2.childs.length;
i = 0;
while (i < _local3) {
var _local1 = _local2.childs.pop();
if (_local1 != child) {
_local2.childs.unshift(_local1);
}
i++;
}
};
this.reload = function (doc, h) {
var _local1 = this;
var _local2 = doc;
_local1.window.focus();
_local1.url = _local2;
_local1.pv.enabled = false;
_local1.nx.enabled = false;
_local1.pv_c.setTransform({ra:0, rb:204, ga:0, gb:204, ba:0, bb:204, aa:100, ab:0});
_local1.nx_c.setTransform({ra:0, rb:204, ga:0, gb:204, ba:0, bb:204, aa:100, ab:0});
if (h == undefined) {
if (_local1.history_i != (_local1.history.length - 1)) {
_local1.history.splice(_local1.history_i + 1, _local1.history.length - _local1.history_i);
}
_local1.history.push(_local2);
_local1.history_i = _local1.history.length - 1;
}
_local1.url_.text = _local2;
_local1.browser.removeMovieClip();
_local1.browser = _local1.createEmptyMovieClip("browser", 1);
_local1.browser._visible = false;
_local1.prog._visible = true;
_local1.browser._x = 2;
_local1.browser._y = 20;
GOS.proxy.loadURL(_local1.url);
};
this.codeHtmlTags = function (src) {
var _local2 = [["<b>", "<b>"], ["</b>", "</b>"], ["<i>", "<i>"], ["</i>", "</i>"], ["<u>", "<u>"], ["</u>", "</u>"]];
var _local1 = 0;
while (_local1 < _local2.length) {
var _local3 = src.split(_local2[_local1][0]);
src = _local3.join(_local2[_local1][1]);
_local1++;
}
return(src);
};
this.refreshLayout = function () {
var _local1 = this;
_local1.onLoaded(_local1.renderer._width + 4, _local1.renderer._height);
_local1.renderer._visible = true;
};
this.onURLLoaded = function (response) {
var _local3 = this;
if (response.url == _local3.url) {
_local3.renderer.removeMovieClip();
var a = _local3.url.split("/");
a[a.length - 1] = "";
_local3.baseUrl = a.join("/");
trace("HTML LOADED");
var html = response.document;
var _data = _local3.codeHtmlTags(html);
var x = new XML();
x.ignoreWhite = true;
x.parseXML(_data);
_local3.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 _local2 = node.childNodes;
var _local1 = 0;
while (_local1 < _local2.length) {
if (_local2[_local1].nodeName == "title") {
trace("title found");
_local3._parent._parent.title = _local2[_local1].firstChild.nodeValue;
}
_local1++;
}
break;
case "body" :
trace("body found");
var bodyNode = node;
var wd = ((bodyNode.attributes.width == undefined) ? 300 : (parseInt(bodyNode.attributes.width)));
_local3.attachMovie("htmlRenderer", "renderer", 1, {html:bodyNode, width:wd, _dp:1, host:_local3});
_local3.renderer._visible = false;
}
i++;
}
} else {
_local3.attachMovie("htmlRenderer", "renderer", 1, {html:_data, width:300, _dp:1, host:_local3});
_local3.renderer._visible = false;
}
}
};
this.resizeTo = function (w, h) {
var _local1 = this;
var _local2 = w;
_local1.w = _local2 - 2;
_local1.h = h - 3;
_local1.bk._width = _local2 - 25;
_local1.ul1._width = _local2 - 25;
_local1.ul1._height = 0.3;
_local1.ul2._width = _local2 - 25;
_local1.ul2._height = 0.3;
_local1.bkl._width = (_local1.bkr._width = 0.3);
_local1.bkl._x = 22;
_local1.bk._x = 22;
_local1.bkr._x = _local2 - 3;
_local1.url_._width = _local2 - 29;
};
this.onLoaded = function (w, h) {
var _local1 = this;
var _local2 = h;
_local1.browser._visible = true;
_local1.prog._visible = false;
_local1._parent._refresh();
var _local3 = {x:_local1._x, y:_local1._y};
_local1._parent._parent.localToGlobal(_local3);
_local1.max_height = (Stage.height - 15) - _local3.y;
_local1.max_width = Fp6Mat.min((Stage.width - 15) - _local3.x, 300);
_local2 = _local2 + 20;
_local2 = Fp6Mat.min(_local2, _local1.max_height);
w = Fp6Mat.min(w, _local1.max_width);
_local2 = (_local1.h = Fp6Mat.max(_local2, _local1.h));
w = (_local1.w = Fp6Mat.max(w, _local1.w));
_local1._parent.window.resize(w + 2, _local2);
_local1.browser.snap();
_local1.pv.enabled = true;
_local1.nx.enabled = true;
_local1.pv_c.setTransform({ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0});
_local1.nx_c.setTransform({ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0});
_local1._parent._parent._x++;
};
Symbol 1554 MovieClip [APP_TextWindow] Frame 1
this.onCreate = function () {
var _local1 = this;
_local1.txt.selectable = false;
_local1.txt.autoSize = true;
_local1.txt.html = true;
if (_local1.serverCmd == undefined) {
if (GOS.variables[_local1.gosVar] != undefined) {
_local1.txt.htmlText = GOS.variables[_local1.gosVar];
} else {
_local1.txt.htmlText = _local1.text.toUpperCase();
}
} else if (GOS.variables[_local1.gosVar] != undefined) {
_local1.txt.htmlText = GOS.variables[_local1.gosVar];
} else {
_local1.useServer("gos");
_local1["on" + _local1.serverCmd] = _local1.recieved;
_local1.command(_local1.serverCmd);
}
_local1.txt._width = 150;
};
this.recieved = function (r) {
var _local1 = r;
if (_local1.success) {
for (i in _local1) {
if (i != success) {
GOS.variables[i] = _local1[i];
}
}
this.txt.htmlText = GOS.variables[this.gosVar];
}
};
this.resizeTo = function (w, h) {
this.txt._width = w - 10;
};
Symbol 1559 MovieClip [FORM_Button] Frame 1
#initclip 4
FORM_ButtonClass = function () {
this.snap();
this.fn = ("on" + this._name.substr(0, 1).toUpperCase()) + this._name.substr(1);
this.w = this._width;
this._xscale = (this._yscale = 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 _local1 = this;
_local1.title._x = Math.round((_local1.w / 2) - (_local1.title._width / 2));
_local1.bk._x = 0;
_local1.bk.bk1._x = 0;
_local1.bk.bk2._x = _local1.w - 1;
_local1.bk.bk._x = 1;
_local1.bk.bk._width = _local1.w - 2;
};
FORM_ButtonClass.prototype.onPress = function () {
var _local1 = this;
if (_local1._enabled) {
_local1._parent[_local1.fn].call(_local1._parent);
}
};
FORM_ButtonClass.prototype.onRollOver = function () {
var _local1 = this;
if (_local1._enabled) {
_local1.c.setRGB(12983837);
} else {
_local1.c.setRGB(10066329);
_local1._parent.showTip();
}
_local1.isOver = true;
};
FORM_ButtonClass.prototype.onRollOut = function () {
var _local1 = this;
if (_local1._enabled) {
_local1.c.setRGB(4473924);
} else {
_local1.c.setRGB(10066329);
}
_local1._parent.hideTip();
_local1.isOver = false;
};
FORM_ButtonClass.prototype.onDragOut = function () {
var _local1 = this;
if (_local1._enabled) {
_local1.c.setRGB(4473924);
} else {
_local1.c.setRGB(10066329);
}
_local1.isOver = false;
};
FORM_ButtonClass.prototype._se = function (e) {
var _local1 = this;
_local1.__enabled = e;
if (e) {
if (_local1.isOver) {
_local1.c.setRGB(12983837);
} else {
_local1.c.setRGB(4473924);
}
_local1._parent.hideTip();
} else {
_local1.c.setRGB(10066329);
}
};
FORM_ButtonClass.prototype._ge = function () {
return(this.__enabled);
};
Object.registerClass("FORM_Button", FORM_ButtonClass);
#endinitclip
Symbol 1560 MovieClip [APP_SlowDown] Frame 1
this.onCreate = function () {
var _local1 = this;
_local1.i = 1;
_local1.held = false;
_local1.onEnterFrame = function () {
var _local1 = this;
if (_local1.held) {
} else {
_local1.createEmptyMovieClip("s" + _local1.i, _local1.i);
_local1["s" + _local1.i].onEnterFrame = function () {
var _local1 = this;
_local1.clear();
_local1.beginFill(0, 0);
_local1.moveTo(-10, -10);
_local1.lineTo(-10, 10);
_local1.lineTo(10, 10);
_local1.lineTo(10, -10);
_local1.lineTo(-10, -10);
_local1.endFill();
};
_local1.i++;
}
};
};
this.onHoldOnButton = function () {
this.held = true;
};
Instance of Symbol 1559 MovieClip [FORM_Button] "holdOnButton" in Symbol 1560 MovieClip [APP_SlowDown] Frame 1
//component parameters
onClipEvent (initialize) {
name = "slowDown_holdOn";
_enabled = true;
}
Symbol 1567 MovieClip [FORM_TextField] Frame 1
#initclip 3
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.bkl._width = (this.bkr._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 _local1 = this;
var _local2 = v;
_local1.tp = _local2;
switch (_local2) {
case "nick" :
_local1.val.restrict = "a-z A-Z 0-9 _";
break;
case "pass" :
_local1.val.restrict = "a-z A-Z 0-9";
_local1.val.password = true;
break;
case "mail" :
_local1.val.restrict = "0-9 a-z _ . @";
}
_local1.verify1 = _local1[_local2 + "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 _local1 = this;
var t = _local1.val.text;
if (t.length == 0) {
_local1.undertext.text = _local1.dsc;
_local1._c.setTransform(_local1._tf);
_local1.valid = false;
} else {
var _local2 = t.split("");
for (i in _local2) {
var _local3 = parseInt(_local2[i], 10).toString();
if (_local3 != _local2[i]) {
_local1.undertext.text = GOS.Translation.editBox_invalidCharacter;
_local1._c.setRGB(12983837);
_local1.valid = false;
return;
}
}
var yr = parseInt(t, 10);
var yr_now = (new Date().getYear() + 1900);
if (((yr_now - yr) > 120) || ((yr_now - yr) < 5)) {
_local1.undertext.text = GOS.Translation.editBox_badDate;
_local1._c.setRGB(12983837);
_local1.valid = false;
} else {
_local1.undertext.text = _local1.dsc;
_local1._c.setTransform(_local1._tf);
_local1.valid = true;
}
}
};
FORM_TextFieldClass.prototype.nickVerify = function () {
var _local1 = this;
var _local2 = _local1.val.text;
if (_local2.length == 0) {
_local1.undertext.text = _local1.dsc;
_local1._c.setTransform(_local1._tf);
_local1.valid = false;
} else if (_local2.length < 3) {
_local1.undertext.text = GOS.Translation.editBox_tooShort;
_local1._c.setRGB(12983837);
_local1.valid = false;
} else if (_local2.length > 20) {
_local1.undertext.text = GOS.Translation.editBox_tooLong;
_local1._c.setRGB(12983837);
_local1.valid = false;
} else {
_local1.undertext.text = _local1.dsc;
_local1._c.setTransform(_local1._tf);
_local1.valid = true;
}
};
FORM_TextFieldClass.prototype.passVerify = function () {
var _local1 = this;
_local1.val.text = _local1.val.text.toUpperCase();
var _local2 = _local1.val.text;
if (_local2.length == 0) {
_local1.undertext.text = _local1.dsc;
_local1._c.setTransform(_local1._tf);
_local1.valid = false;
} else if (_local2.length < 3) {
_local1.undertext.text = GOS.Translation.editBox_tooShort;
_local1._c.setRGB(12983837);
_local1.valid = false;
} else if (_local2.length > 20) {
_local1.undertext.text = GOS.Translation.editBox_tooLong;
_local1._c.setRGB(12983837);
_local1.valid = false;
} else {
_local1.undertext.text = _local1.dsc;
_local1._c.setTransform(_local1._tf);
_local1.valid = true;
}
};
FORM_TextFieldClass.prototype.mailVerify = function () {
var _local1 = this;
var t = _local1.val.text;
if (t.length == 0) {
_local1.undertext.text = _local1.dsc;
_local1._c.setTransform(_local1._tf);
_local1.valid = false;
} else {
t1 = t.split("@");
if (t1.length != 2) {
_local1.undertext.text = GOS.Translation.editBox_invalidEmail;
_local1._c.setRGB(12983837);
_local1.valid = false;
} else {
var _local2 = t1[0].split(".").concat(t1[1].split("."));
for (var _local3 in _local2) {
if (_local2[_local3].length == 0) {
_local1.undertext.text = GOS.Translation.editBox_invalidEmail;
_local1._c.setRGB(12983837);
_local1.valid = false;
return;
}
}
_local2 = t1[1].split(".");
if (_local2.length < 2) {
_local1.undertext.text = GOS.Translation.editBox_invalidEmail;
_local1._c.setRGB(12983837);
_local1.valid = false;
} else if ((_local2[_local2.length - 1].length < 2) || (_local2[_local2.length - 1].length > 3)) {
_local1.undertext.text = GOS.Translation.editBox_invalidEmail;
_local1._c.setRGB(12983837);
_local1.valid = false;
} else {
_local1.undertext.text = _local1.dsc;
_local1._c.setTransform(_local1._tf);
_local1.valid = true;
}
}
}
};
Object.registerClass("FORM_TextField", FORM_TextFieldClass);
#endinitclip
Symbol 1574 MovieClip [FORM_Radio] Frame 1
#initclip 2
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._xscale = (this._yscale = 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 _local1 = this;
if (_local1._enabled) {
_local1.groupObject.broadcastMessage("_check", _local1._index);
}
};
FORM_RadioClass.prototype.onRollOver = function () {
var _local1 = this;
if (_local1._enabled) {
_local1.c.setRGB(12983837);
_local1.c1.setRGB(12983837);
} else {
_local1.c.setRGB(8947848);
_local1.c1.setRGB(8947848);
}
_local1.isOver = true;
};
FORM_RadioClass.prototype.onRollOut = function () {
var _local1 = this;
if (_local1._enabled) {
_local1.c.setRGB(6710886);
_local1.c1.setRGB(6710886);
} else {
_local1.c.setRGB(8947848);
_local1.c1.setRGB(8947848);
}
_local1.isOver = false;
};
FORM_RadioClass.prototype.onDragOut = function () {
var _local1 = this;
if (_local1._enabled) {
_local1.c.setRGB(6710886);
_local1.c1.setRGB(6710886);
} else {
_local1.c.setRGB(8947848);
_local1.c1.setRGB(8947848);
}
_local1.isOver = false;
};
FORM_RadioClass.prototype._se = function (e) {
this.groupObject.broadcastMessage("_enab", e);
};
FORM_RadioClass.prototype._enab = function (e) {
var _local1 = this;
_local1.__enabled = e;
if (e) {
if (_local1.isOver) {
_local1.c.setRGB(12983837);
_local1.c1.setRGB(12983837);
} else {
_local1.c.setRGB(6710886);
_local1.c1.setRGB(6710886);
}
} else {
_local1.c.setRGB(8947848);
_local1.c1.setRGB(8947848);
}
};
FORM_RadioClass.prototype._ge = function () {
return(this.__enabled);
};
FORM_RadioClass.prototype._check = function (i) {
var _local1 = this;
if (i == _local1._index) {
_local1.pt._visible = true;
_local1._parent[_local1.fn].call(_local1._parent, {index:_local1._index, label:_local1.title.text});
} else {
_local1.pt._visible = false;
}
_local1._parent.verify();
};
Object.registerClass("FORM_Radio", FORM_RadioClass);
#endinitclip
Symbol 1579 MovieClip 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 _local1 = this;
if (_local1._index == i) {
_local1.pt1._visible = true;
_local1._parent.onContinent(i);
} else {
_local1.pt1._visible = false;
}
};
Symbol 1582 MovieClip 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 _local1 = this;
if (_local1._index == i) {
_local1.pt1._visible = true;
_local1._parent.onContinent(i);
} else {
_local1.pt1._visible = false;
}
};
Symbol 1585 MovieClip 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 _local1 = this;
if (_local1._index == i) {
_local1.pt1._visible = true;
_local1._parent.onContinent(i);
} else {
_local1.pt1._visible = false;
}
};
Symbol 1588 MovieClip 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 _local1 = this;
if (_local1._index == i) {
_local1.pt1._visible = true;
_local1._parent.onContinent(i);
} else {
_local1.pt1._visible = false;
}
};
Symbol 1591 MovieClip 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 _local1 = this;
if (_local1._index == i) {
_local1.pt1._visible = true;
_local1._parent.onContinent(i);
} else {
_local1.pt1._visible = false;
}
};
Symbol 1594 MovieClip 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 _local1 = this;
if (_local1._index == i) {
_local1.pt1._visible = true;
_local1._parent.onContinent(i);
} else {
_local1.pt1._visible = false;
}
};
Symbol 1598 MovieClip Frame 1
this.vs.dim = 92;
this.vs.update();
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 _local1 = this;
var _local2 = _local1.val;
var _local3 = _local1._parent.area.theList._height - _local1._parent.mask._height;
var y = int(((-_local3) * _local2) / 100);
_local1._parent.area.theList._y = y;
};
this.mask._width = this.mask._width - 2;
this.mask._height = this.mask._height - 2;
this.mask._x = this.mask._x + 1;
this.mask._y = this.mask._y + 1;
Symbol 1599 MovieClip Frame 1
this.onContinent = function (i) {
var _local1 = this;
switch (i) {
case 0 :
_local1.continent = "AF";
break;
case 1 :
_local1.continent = "AS";
break;
case 2 :
_local1.continent = "OC";
break;
case 3 :
_local1.continent = "EU";
break;
case 4 :
_local1.continent = "NA";
break;
case 5 :
_local1.continent = "SA";
}
_local1.gotoAndStop(2);
};
stop();
Symbol 1599 MovieClip Frame 2
this.onCountry = function (i) {
this._parent.onCountry(i);
};
Symbol 1600 MovieClip [APP_RegisterForm] Frame 1
this.onCreate = function () {
var _local1 = this;
_local1._modal = true;
_local1._unique = true;
if (_local1.mynick != undefined) {
_local1.nick.val.text = _local1.mynick;
}
_local1.useServer();
_local1.stop();
};
this.onSexPick = function (ob) {
this.gender = (ob.index ? "M" : "F");
};
this.onCountry = function (i) {
var _local1 = this;
trace(i);
_local1.country = i;
trace(_local1.country);
_local1.verify();
};
this.verify = function () {
var _local1 = this;
_local1.submitButton._enabled = (((_local1.nick.valid && (_local1.mail.valid)) && (_local1.birth.valid)) && (_local1.gender != undefined)) && (_local1.country != undefined);
};
this.onSubmitButton = function () {
var _local1 = this;
var _local2 = {nick:_local1.nick.val.text, mail:_local1.mail.val.text, birth:_local1.birth.val.text, gender:_local1.gender, country:_local1.country};
_local1.command("R", _local2);
};
this.showTip = function () {
var _local2 = this;
var _local1 = {x:_local2.submitButton._x, y:_local2.submitButton._y + 10};
_local2.localToGlobal(_local1);
GOS.root.globalToLocal(_local1);
GOS.root.attachMovie("GOS_ToolTip", "toolTip", 5000, {tipText:GOS.Translation.common_badForm, _x:_local1.x, _y:_local1.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 of Symbol 1559 MovieClip [FORM_Button] "submitButton" in Symbol 1600 MovieClip [APP_RegisterForm] Frame 1
//component parameters
onClipEvent (initialize) {
name = "Register_button";
_enabled = false;
}
Instance of Symbol 1567 MovieClip [FORM_TextField] "nick" in Symbol 1600 MovieClip [APP_RegisterForm] Frame 1
//component parameters
onClipEvent (initialize) {
title = "common_nick";
type = "nick";
}
Instance of Symbol 1567 MovieClip [FORM_TextField] "mail" in Symbol 1600 MovieClip [APP_RegisterForm] Frame 1
//component parameters
onClipEvent (initialize) {
title = "common_email";
type = "mail";
}
Instance of Symbol 1567 MovieClip [FORM_TextField] "birth" in Symbol 1600 MovieClip [APP_RegisterForm] Frame 1
//component parameters
onClipEvent (initialize) {
title = "Register_birth";
type = "birth";
}
Instance of Symbol 1574 MovieClip [FORM_Radio] in Symbol 1600 MovieClip [APP_RegisterForm] Frame 1
//component parameters
onClipEvent (initialize) {
name = "Register_sexFemale";
_enabled = true;
_checked = false;
_group = "sexPick";
_index = 0;
}
Instance of Symbol 1574 MovieClip [FORM_Radio] in Symbol 1600 MovieClip [APP_RegisterForm] Frame 1
//component parameters
onClipEvent (initialize) {
name = "Register_sexMale";
_enabled = true;
_checked = false;
_group = "sexPick";
_index = 1;
}
Symbol 1602 MovieClip [APP_Poll] Frame 1
this.onCreate = function () {
var _local1 = this;
_local1._modal = true;
_local1._clientHeight = 40;
_local1._clientWidth = 160;
_local1.txt.text = _local1.text;
};
this.onYes = function () {
var _local1 = {id:this.id, answer:true};
GOS.serv.cmd("A", _local1);
this.closeMe();
};
this.onNo = function () {
var _local1 = {id:this.id, answer:false};
GOS.serv.cmd("A", _local1);
this.closeMe();
};
this.closeMe = function () {
GOS.cookie.data.lastQuestion = new Date().getTime();
GOS.cookie.flush;
this.close();
};
Instance of Symbol 1559 MovieClip [FORM_Button] "yes" in Symbol 1602 MovieClip [APP_Poll] Frame 1
//component parameters
onClipEvent (initialize) {
name = "common_yes";
_enabled = true;
}
Instance of Symbol 1559 MovieClip [FORM_Button] "no" in Symbol 1602 MovieClip [APP_Poll] Frame 1
//component parameters
onClipEvent (initialize) {
name = "common_no";
_enabled = true;
}
Symbol 1605 MovieClip [APP_PasswordResetForm] Frame 1
this.onCreate = function () {
var _local1 = this;
_local1._modal = true;
_local1._unique = true;
if (_local1.mynick != undefined) {
_local1.nick.val.text = _local1.mynick;
}
_local1.useServer();
_local1.stop();
};
this.verify = function () {
var _local1 = this;
_local1.loginButton._enabled = _local1.nick.valid || (_local1.mail.valid);
};
this.onSubmitButton = function () {
var _local2 = this;
var _local1 = {nick:_local2.nick.val.text, mail:_local2.mail.val.text};
_local2.command("N", _local1);
};
this.showTip = function () {
var _local2 = this;
var _local1 = {x:_local2.loginButton._x, y:_local2.loginButton._y + 10};
_local2.localToGlobal(_local1);
GOS.root.globalToLocal(_local1);
GOS.root.attachMovie("GOS_ToolTip", "toolTip", 5000, {tipText:GOS.Translation.common_badForm, _x:_local1.x, _y:_local1.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 of Symbol 1559 MovieClip [FORM_Button] "submitButton" in Symbol 1605 MovieClip [APP_PasswordResetForm] Frame 1
//component parameters
onClipEvent (initialize) {
name = "passwordResetForm_resetBut";
_enabled = true;
}
Instance of Symbol 1567 MovieClip [FORM_TextField] "nick" in Symbol 1605 MovieClip [APP_PasswordResetForm] Frame 1
//component parameters
onClipEvent (initialize) {
title = "common_nick";
type = "nick";
}
Instance of Symbol 1567 MovieClip [FORM_TextField] "mail" in Symbol 1605 MovieClip [APP_PasswordResetForm] Frame 1
//component parameters
onClipEvent (initialize) {
title = "passwordResetForm_email";
type = "mail";
}
Symbol 1607 MovieClip [APP_LogoutForm] Frame 1
this.onCreate = function () {
var _local1 = this;
_local1._modal = true;
_local1._unique = true;
_local1.useServer();
_local1.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 of Symbol 1559 MovieClip [FORM_Button] "yesButton" in Symbol 1607 MovieClip [APP_LogoutForm] Frame 1
//component parameters
onClipEvent (initialize) {
name = "common_yes";
_enabled = true;
}
Instance of Symbol 1559 MovieClip [FORM_Button] "noButton" in Symbol 1607 MovieClip [APP_LogoutForm] Frame 1
//component parameters
onClipEvent (initialize) {
name = "common_no";
_enabled = true;
}
Symbol 1613 MovieClip [FORM_CheckBox] Frame 1
#initclip 11
FORM_CheckBoxClass = function () {
this.snap();
this.fn = ("on" + this._name.substr(0, 1).toUpperCase()) + this._name.substr(1);
this._xscale = (this._yscale = 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 _local1 = this;
if (_local1._enabled) {
_local1._checked = !_local1._checked;
_local1._parent[_local1.fn].call(_local1._parent);
}
};
FORM_CheckBoxClass.prototype.onRollOver = function () {
var _local1 = this;
if (_local1._enabled) {
_local1.c.setRGB(12983837);
_local1.c1.setRGB(12983837);
} else {
_local1.c.setRGB(8947848);
_local1.c1.setRGB(8947848);
}
_local1.isOver = true;
};
FORM_CheckBoxClass.prototype.onRollOut = function () {
var _local1 = this;
if (_local1._enabled) {
_local1.c.setRGB(6710886);
_local1.c1.setRGB(6710886);
} else {
_local1.c.setRGB(8947848);
_local1.c1.setRGB(8947848);
}
_local1.isOver = false;
};
FORM_CheckBoxClass.prototype.onDragOut = function () {
var _local1 = this;
if (_local1._enabled) {
_local1.c.setRGB(6710886);
_local1.c1.setRGB(6710886);
} else {
_local1.c.setRGB(8947848);
_local1.c1.setRGB(8947848);
}
_local1.isOver = false;
};
FORM_CheckBoxClass.prototype._se = function (e) {
var _local1 = this;
_local1.__enabled = e;
if (e) {
if (_local1.isOver) {
_local1.c.setRGB(12983837);
_local1.c1.setRGB(12983837);
} else {
_local1.c.setRGB(6710886);
_local1.c1.setRGB(6710886);
}
} else {
_local1.c.setRGB(8947848);
_local1.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
Symbol 1614 MovieClip [APP_LoginForm] Frame 1
this.onCreate = function () {
var _local1 = this;
_local1._modal = true;
_local1._unique = true;
if (_local1.mynick != undefined) {
_local1.nick.val.text = _local1.mynick;
}
_local1.useServer();
if (GOS.cookie == undefined) {
_local1.rm._enabled = false;
} else if (GOS.cookie.data.user.rm == true) {
_local1.rm._checked = true;
_local1.nick.val.text = GOS.cookie.data.user.nick;
_local1.pass.val.text = GOS.cookie.data.user.pass;
_local1.nick.verify();
_local1.pass.verify();
}
_local1.stop();
};
this.verify = function () {
var _local1 = this;
_local1.loginButton._enabled = _local1.nick.valid && (_local1.pass.valid);
};
this.onLoginButton = function () {
var _local1 = this;
var _local2 = {nick:_local1.nick.val.text, pass:calcMD5(_local1.pass.val.text)};
if (_local1.rm._checked) {
GOS.cookie.data.user = {rm:true, nick:_local1.nick.val.text, pass:_local1.pass.val.text, md5:calcMD5(_local1.pass.val.text)};
GOS.cookie.flush;
} else {
GOS.cookie.data.user = undefined;
GOS.cookie.flush;
}
_local1.command("L", _local2);
};
this.showTip = function () {
var _local2 = this;
var _local1 = {x:_local2.loginButton._x, y:_local2.loginButton._y + 10};
_local2.localToGlobal(_local1);
GOS.root.globalToLocal(_local1);
GOS.root.attachMovie("GOS_ToolTip", "toolTip", 5000, {tipText:GOS.Translation.common_badForm, _x:_local1.x, _y:_local1.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 of Symbol 1567 MovieClip [FORM_TextField] "nick" in Symbol 1614 MovieClip [APP_LoginForm] Frame 1
//component parameters
onClipEvent (initialize) {
title = "common_nick";
type = "nick";
}
Instance of Symbol 1567 MovieClip [FORM_TextField] "pass" in Symbol 1614 MovieClip [APP_LoginForm] Frame 1
//component parameters
onClipEvent (initialize) {
title = "common_pass";
type = "pass";
}
Instance of Symbol 1613 MovieClip [FORM_CheckBox] "rm" in Symbol 1614 MovieClip [APP_LoginForm] Frame 1
//component parameters
onClipEvent (initialize) {
name = "loginForm_rememberMe";
_enabled = true;
_checked = false;
}
Instance of Symbol 1559 MovieClip [FORM_Button] "loginButton" in Symbol 1614 MovieClip [APP_LoginForm] Frame 1
//component parameters
onClipEvent (initialize) {
name = "loginForm_loginBut";
_enabled = false;
}
Instance of Symbol 1559 MovieClip [FORM_Button] "registerButton" in Symbol 1614 MovieClip [APP_LoginForm] Frame 1
//component parameters
onClipEvent (initialize) {
name = "loginForm_registerBut";
_enabled = true;
}
Symbol 1620 MovieClip Frame 1
var p = (this._parent._width / this._parent._height);
if (p > 1) {
this._xscale = 100 / p;
} else {
this._yscale = 100 * p;
}
Symbol 1624 MovieClip [k1] Frame 1
#initclip 19
k1 = function () {
super();
};
k1.prototype = new KeyClassClass();
Object.registerClass("k1", k1);
#endinitclip
Symbol 1630 MovieClip [k2] Frame 1
#initclip 20
k2 = function () {
super();
};
k2.prototype = new KeyClassClass();
Object.registerClass("k2", k2);
#endinitclip
Symbol 1632 MovieClip [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 _local1 = this;
_local1.descr.snap();
_local1._modal = true;
_local1._unique = true;
_local1._clientHeight = 145;
};
this.exchange = function (_from, _to) {
var _local1 = this;
var _local2 = _from._code;
var _local3 = _to._code;
if (_from == _to) {
} else {
for (i in _local1.keys) {
if (_local1.keys[i]._code == _local2) {
_local1.keys[i]._code = _local3;
_local1.keys[i].blink1();
} else if (_local1.keys[i]._code == _local3) {
_local1.keys[i]._code = _local2;
_local1.keys[i].blink2();
}
}
var t_fc = ((Key._code[_local3] == undefined) ? (_local3) : (Key._code[_local3]));
var t_tc = ((Key._code[_local2] == undefined) ? (_local2) : (Key._code[_local2]));
Key._code[_local3] = t_tc;
Key._code[_local2] = t_fc;
}
};
this.getTarget = function () {
var _local1 = this;
var _local2 = _root;
for (i in _local1.keys) {
if (_local1.keys[i].hitTest(_local2._xmouse, _local2._ymouse, true)) {
return(_local1.keys[i]);
}
}
return(null);
};
Instance of Symbol 1624 MovieClip [k1] in Symbol 1632 MovieClip [APP_KeyboardProfiler] Frame 1
onClipEvent (load) {
this.let.text = "Esc";
this._code = 27;
}
Instance of Symbol 1624 MovieClip [k1] in Symbol 1632 MovieClip [APP_KeyboardProfiler] Frame 1
onClipEvent (load) {
this.let.text = "F1";
this._code = 112;
}
Instance of Symbol 1624 MovieClip [k1] in Symbol 1632 MovieClip [APP_KeyboardProfiler] Frame 1
onClipEvent (load) {
this.let.text = "F2";
this._code = 113;
}
Instance of Symbol 1624 MovieClip [k1] in Symbol 1632 MovieClip [APP_KeyboardProfiler] Frame 1
onClipEvent (load) {
this.let.text = "F3";
this._code = 114;
}
Instance of Symbol 1624 MovieClip [k1] in Symbol 1632 MovieClip [APP_KeyboardProfiler] Frame 1
onClipEvent (load) {
this.let.text = "F4";
this._code = 115;
}
Instance of Symbol 1624 MovieClip [k1] in Symbol 1632 MovieClip [APP_KeyboardProfiler] Frame 1
onClipEvent (load) {
this.let.text = "F5";
this._code = 116;
}
Instance of Symbol 1624 MovieClip [k1] in Symbol 1632 MovieClip [APP_KeyboardProfiler] Frame 1
onClipEvent (load) {
this.let.text = "F6";
this._code = 117;
}
Instance of Symbol 1624 MovieClip [k1] in Symbol 1632 MovieClip [APP_KeyboardProfiler] Frame 1
onClipEvent (load) {
this.let.text = "F7";
this._code = 118;
}
Instance of Symbol 1624 MovieClip [k1] in Symbol 1632 MovieClip [APP_KeyboardProfiler] Frame 1
onClipEvent (load) {
this.let.text = "F8";
this._code = 119;
}
Instance of Symbol 1624 MovieClip [k1] in Symbol 1632 MovieClip [APP_KeyboardProfiler] Frame 1
onClipEvent (load) {
this.let.text = "F9";
this._code = 120;
}
Instance of Symbol 1624 MovieClip [k1] in Symbol 1632 MovieClip [APP_KeyboardProfiler] Frame 1
onClipEvent (load) {
this.let.text = "F10";
this._code = 121;
}
Instance of Symbol 1624 MovieClip [k1] in Symbol 1632 MovieClip [APP_KeyboardProfiler] Frame 1
onClipEvent (load) {
this.let.text = "F11";
this._code = 122;
}
Instance of Symbol 1624 MovieClip [k1] in Symbol 1632 MovieClip [APP_KeyboardProfiler] Frame 1
onClipEvent (load) {
this.let.text = "F12";
this._code = 123;
}
Instance of Symbol 1624 MovieClip [k1] in Symbol 1632 MovieClip [APP_KeyboardProfiler] Frame 1
onClipEvent (load) {
this.let.text = "~";
this._code = 192;
}
Instance of Symbol 1624 MovieClip [k1] in Symbol 1632 MovieClip [APP_KeyboardProfiler] Frame 1
onClipEvent (load) {
this.let.text = "1";
this._code = 49;
}
Instance of Symbol 1624 MovieClip [k1] in Symbol 1632 MovieClip [APP_KeyboardProfiler] Frame 1
onClipEvent (load) {
this.let.text = "3";
this._code = 51;
}
Instance of Symbol 1624 MovieClip [k1] in Symbol 1632 MovieClip [APP_KeyboardProfiler] Frame 1
onClipEvent (load) {
this.let.text = "4";
this._code = 52;
}
Instance of Symbol 1624 MovieClip [k1] in Symbol 1632 MovieClip [APP_KeyboardProfiler] Frame 1
onClipEvent (load) {
this.let.text = "5";
this._code = 53;
}
Instance of Symbol 1624 MovieClip [k1] in Symbol 1632 MovieClip [APP_KeyboardProfiler] Frame 1
onClipEvent (load) {
this.let.text = "6";
this._code = 54;
}
Instance of Symbol 1624 MovieClip [k1] in Symbol 1632 MovieClip [APP_KeyboardProfiler] Frame 1
onClipEvent (load) {
this.let.text = "7";
this._code = 55;
}
Instance of Symbol 1624 MovieClip [k1] in Symbol 1632 MovieClip [APP_KeyboardProfiler] Frame 1
onClipEvent (load) {
this.let.text = "8";
this._code = 56;
}
Instance of Symbol 1624 MovieClip [k1] in Symbol 1632 MovieClip [APP_KeyboardProfiler] Frame 1
onClipEvent (load) {
this.let.text = "9";
this._code = 57;
}
Instance of Symbol 1624 MovieClip [k1] in Symbol 1632 MovieClip [APP_KeyboardProfiler] Frame 1
onClipEvent (load) {
this.let.text = "0";
this._code = 48;
}
Instance of Symbol 1624 MovieClip [k1] in Symbol 1632 MovieClip [APP_KeyboardProfiler] Frame 1
onClipEvent (load) {
this.let.text = "-";
this._code = 189;
}
Instance of Symbol 1624 MovieClip [k1] in Symbol 1632 MovieClip [APP_KeyboardProfiler] Frame 1
onClipEvent (load) {
this.let.text = "=";
this._code = 187;
}
Instance of Symbol 1624 MovieClip [k1] in Symbol 1632 MovieClip [APP_KeyboardProfiler] Frame 1
onClipEvent (load) {
this.let.text = "\\";
this._code = 220;
}
Instance of Symbol 1624 MovieClip [k1] in Symbol 1632 MovieClip [APP_KeyboardProfiler] Frame 1
onClipEvent (load) {
this.let.text = "Bsp";
this._code = 8;
}
Instance of Symbol 1624 MovieClip [k1] in Symbol 1632 MovieClip [APP_KeyboardProfiler] Frame 1
onClipEvent (load) {
this.let.text = "Tab";
this._code = 9;
}
Instance of Symbol 1624 MovieClip [k1] in Symbol 1632 MovieClip [APP_KeyboardProfiler] Frame 1
onClipEvent (load) {
this.let.text = "Q";
this._code = 81;
}
Instance of Symbol 1624 MovieClip [k1] in Symbol 1632 MovieClip [APP_KeyboardProfiler] Frame 1
onClipEvent (load) {
this.let.text = "E";
this._code = 69;
}
Instance of Symbol 1624 MovieClip [k1] in Symbol 1632 MovieClip [APP_KeyboardProfiler] Frame 1
onClipEvent (load) {
this.let.text = "R";
this._code = 82;
}
Instance of Symbol 1624 MovieClip [k1] in Symbol 1632 MovieClip [APP_KeyboardProfiler] Frame 1
onClipEvent (load) {
this.let.text = "T";
this._code = 84;
}
Instance of Symbol 1624 MovieClip [k1] in Symbol 1632 MovieClip [APP_KeyboardProfiler] Frame 1
onClipEvent (load) {
this.let.text = "Y";
this._code = 89;
}
Instance of Symbol 1624 MovieClip [k1] in Symbol 1632 MovieClip [APP_KeyboardProfiler] Frame 1
onClipEvent (load) {
this.let.text = "U";
this._code = 85;
}
Instance of Symbol 1624 MovieClip [k1] in Symbol 1632 MovieClip [APP_KeyboardProfiler] Frame 1
onClipEvent (load) {
this.let.text = "I";
this._code = 73;
}
Instance of Symbol 1624 MovieClip [k1] in Symbol 1632 MovieClip [APP_KeyboardProfiler] Frame 1
onClipEvent (load) {
this.let.text = "O";
this._code = 79;
}
Instance of Symbol 1624 MovieClip [k1] in Symbol 1632 MovieClip [APP_KeyboardProfiler] Frame 1
onClipEvent (load) {
this.let.text = "P";
this._code = 80;
}
Instance of Symbol 1624 MovieClip [k1] in Symbol 1632 MovieClip [APP_KeyboardProfiler] Frame 1
onClipEvent (load) {
this.let.text = "[";
this._code = 219;
}
Instance of Symbol 1624 MovieClip [k1] in Symbol 1632 MovieClip [APP_KeyboardProfiler] Frame 1
onClipEvent (load) {
this.let.text = "]";
this._code = 221;
}
Instance of Symbol 1624 MovieClip [k1] in Symbol 1632 MovieClip [APP_KeyboardProfiler] Frame 1
onClipEvent (load) {
this.let.text = "Caps";
this._code = 20;
}
Instance of Symbol 1624 MovieClip [k1] in Symbol 1632 MovieClip [APP_KeyboardProfiler] Frame 1
onClipEvent (load) {
this.let.text = "Shift";
this._code = 16;
}
Instance of Symbol 1624 MovieClip [k1] in Symbol 1632 MovieClip [APP_KeyboardProfiler] Frame 1
onClipEvent (load) {
this.let.text = "Space";
this._code = 32;
}
Instance of Symbol 1624 MovieClip [k1] in Symbol 1632 MovieClip [APP_KeyboardProfiler] Frame 1
onClipEvent (load) {
this.let.text = "Ctrl";
this._code = 17;
}
Instance of Symbol 1624 MovieClip [k1] in Symbol 1632 MovieClip [APP_KeyboardProfiler] Frame 1
onClipEvent (load) {
this.let.text = "Ctrl";
this._code = 17;
}
Instance of Symbol 1624 MovieClip [k1] in Symbol 1632 MovieClip [APP_KeyboardProfiler] Frame 1
onClipEvent (load) {
this.let.text = "Slc";
this._code = 145;
}
Instance of Symbol 1624 MovieClip [k1] in Symbol 1632 MovieClip [APP_KeyboardProfiler] Frame 1
onClipEvent (load) {
this.let.text = "Brk";
this._code = 19;
}
Instance of Symbol 1624 MovieClip [k1] in Symbol 1632 MovieClip [APP_KeyboardProfiler] Frame 1
onClipEvent (load) {
this.let.text = "Ins";
this._code = 45;
}
Instance of Symbol 1624 MovieClip [k1] in Symbol 1632 MovieClip [APP_KeyboardProfiler] Frame 1
onClipEvent (load) {
this.let.text = "Hm";
this._code = 36;
}
Instance of Symbol 1624 MovieClip [k1] in Symbol 1632 MovieClip [APP_KeyboardProfiler] Frame 1
onClipEvent (load) {
this.let.text = "Pup";
this._code = 33;
}
Instance of Symbol 1624 MovieClip [k1] in Symbol 1632 MovieClip [APP_KeyboardProfiler] Frame 1
onClipEvent (load) {
this.let.text = "Del";
this._code = 46;
}
Instance of Symbol 1624 MovieClip [k1] in Symbol 1632 MovieClip [APP_KeyboardProfiler] Frame 1
onClipEvent (load) {
this.let.text = "End";
this._code = 35;
}
Instance of Symbol 1624 MovieClip [k1] in Symbol 1632 MovieClip [APP_KeyboardProfiler] Frame 1
onClipEvent (load) {
this.let.text = "Pd";
this._code = 34;
}
Instance of Symbol 1624 MovieClip [k1] in Symbol 1632 MovieClip [APP_KeyboardProfiler] Frame 1
onClipEvent (load) {
this.let.text = "Nm";
this._code = 144;
}
Instance of Symbol 1624 MovieClip [k1] in Symbol 1632 MovieClip [APP_KeyboardProfiler] Frame 1
onClipEvent (load) {
this.let.text = "/";
this._code = 111;
}
Instance of Symbol 1624 MovieClip [k1] in Symbol 1632 MovieClip [APP_KeyboardProfiler] Frame 1
onClipEvent (load) {
this.let.text = "*";
this._code = 106;
}
Instance of Symbol 1624 MovieClip [k1] in Symbol 1632 MovieClip [APP_KeyboardProfiler] Frame 1
onClipEvent (load) {
this.let.text = "-";
this._code = 109;
}
Instance of Symbol 1624 MovieClip [k1] in Symbol 1632 MovieClip [APP_KeyboardProfiler] Frame 1
onClipEvent (load) {
this.let.text = "7";
this._code = 103;
}
Instance of Symbol 1624 MovieClip [k1] in Symbol 1632 MovieClip [APP_KeyboardProfiler] Frame 1
onClipEvent (load) {
this.let.text = "8";
this._code = 104;
}
Instance of Symbol 1624 MovieClip [k1] in Symbol 1632 MovieClip [APP_KeyboardProfiler] Frame 1
onClipEvent (load) {
this.let.text = "9";
this._code = 105;
}
Instance of Symbol 1624 MovieClip [k1] in Symbol 1632 MovieClip [APP_KeyboardProfiler] Frame 1
onClipEvent (load) {
this.let.text = "+";
this._code = 107;
}
Instance of Symbol 1624 MovieClip [k1] in Symbol 1632 MovieClip [APP_KeyboardProfiler] Frame 1
onClipEvent (load) {
this.let.text = "4";
this._code = 100;
}
Instance of Symbol 1624 MovieClip [k1] in Symbol 1632 MovieClip [APP_KeyboardProfiler] Frame 1
onClipEvent (load) {
this.let.text = "5";
this._code = 101;
}
Instance of Symbol 1624 MovieClip [k1] in Symbol 1632 MovieClip [APP_KeyboardProfiler] Frame 1
onClipEvent (load) {
this.let.text = "6";
this._code = 102;
}
Instance of Symbol 1624 MovieClip [k1] in Symbol 1632 MovieClip [APP_KeyboardProfiler] Frame 1
onClipEvent (load) {
this.let.text = "1";
this._code = 97;
}
Instance of Symbol 1624 MovieClip [k1] in Symbol 1632 MovieClip [APP_KeyboardProfiler] Frame 1
onClipEvent (load) {
this.let.text = "2";
this._code = 98;
}
Instance of Symbol 1624 MovieClip [k1] in Symbol 1632 MovieClip [APP_KeyboardProfiler] Frame 1
onClipEvent (load) {
this.let.text = "3";
this._code = 99;
}
Instance of Symbol 1624 MovieClip [k1] in Symbol 1632 MovieClip [APP_KeyboardProfiler] Frame 1
onClipEvent (load) {
this.let.text = "0";
this._code = 96;
}
Instance of Symbol 1624 MovieClip [k1] in Symbol 1632 MovieClip [APP_KeyboardProfiler] Frame 1
onClipEvent (load) {
this.let.text = ",";
this._code = 110;
}
Instance of Symbol 1624 MovieClip [k1] in Symbol 1632 MovieClip [APP_KeyboardProfiler] Frame 1
onClipEvent (load) {
this.let.text = "W";
this._code = 87;
}
Instance of Symbol 1624 MovieClip [k1] in Symbol 1632 MovieClip [APP_KeyboardProfiler] Frame 1
onClipEvent (load) {
this.let.text = "A";
this._code = 65;
}
Instance of Symbol 1624 MovieClip [k1] in Symbol 1632 MovieClip [APP_KeyboardProfiler] Frame 1
onClipEvent (load) {
this.let.text = "S";
this._code = 83;
}
Instance of Symbol 1624 MovieClip [k1] in Symbol 1632 MovieClip [APP_KeyboardProfiler] Frame 1
onClipEvent (load) {
this.let.text = "D";
this._code = 68;
}
Instance of Symbol 1624 MovieClip [k1] in Symbol 1632 MovieClip [APP_KeyboardProfiler] Frame 1
onClipEvent (load) {
this.let.text = "F";
this._code = 70;
}
Instance of Symbol 1624 MovieClip [k1] in Symbol 1632 MovieClip [APP_KeyboardProfiler] Frame 1
onClipEvent (load) {
this.let.text = "G";
this._code = 71;
}
Instance of Symbol 1624 MovieClip [k1] in Symbol 1632 MovieClip [APP_KeyboardProfiler] Frame 1
onClipEvent (load) {
this.let.text = "H";
this._code = 72;
}
Instance of Symbol 1624 MovieClip [k1] in Symbol 1632 MovieClip [APP_KeyboardProfiler] Frame 1
onClipEvent (load) {
this.let.text = "J";
this._code = 74;
}
Instance of Symbol 1624 MovieClip [k1] in Symbol 1632 MovieClip [APP_KeyboardProfiler] Frame 1
onClipEvent (load) {
this.let.text = "K";
this._code = 75;
}
Instance of Symbol 1624 MovieClip [k1] in Symbol 1632 MovieClip [APP_KeyboardProfiler] Frame 1
onClipEvent (load) {
this.let.text = "L";
this._code = 76;
}
Instance of Symbol 1624 MovieClip [k1] in Symbol 1632 MovieClip [APP_KeyboardProfiler] Frame 1
onClipEvent (load) {
this.let.text = ";";
this._code = 186;
}
Instance of Symbol 1624 MovieClip [k1] in Symbol 1632 MovieClip [APP_KeyboardProfiler] Frame 1
onClipEvent (load) {
this.let.text = "'";
this._code = 222;
}
Instance of Symbol 1624 MovieClip [k1] in Symbol 1632 MovieClip [APP_KeyboardProfiler] Frame 1
onClipEvent (load) {
this.let.text = "Shift";
this._code = 16;
}
Instance of Symbol 1624 MovieClip [k1] in Symbol 1632 MovieClip [APP_KeyboardProfiler] Frame 1
onClipEvent (load) {
this.let.text = "Z";
this._code = 90;
}
Instance of Symbol 1624 MovieClip [k1] in Symbol 1632 MovieClip [APP_KeyboardProfiler] Frame 1
onClipEvent (load) {
this.let.text = "X";
this._code = 88;
}
Instance of Symbol 1624 MovieClip [k1] in Symbol 1632 MovieClip [APP_KeyboardProfiler] Frame 1
onClipEvent (load) {
this.let.text = "C";
this._code = 67;
}
Instance of Symbol 1624 MovieClip [k1] in Symbol 1632 MovieClip [APP_KeyboardProfiler] Frame 1
onClipEvent (load) {
this.let.text = "V";
this._code = 86;
}
Instance of Symbol 1624 MovieClip [k1] in Symbol 1632 MovieClip [APP_KeyboardProfiler] Frame 1
onClipEvent (load) {
this.let.text = "B";
this._code = 66;
}
Instance of Symbol 1624 MovieClip [k1] in Symbol 1632 MovieClip [APP_KeyboardProfiler] Frame 1
onClipEvent (load) {
this.let.text = "N";
this._code = 78;
}
Instance of Symbol 1624 MovieClip [k1] in Symbol 1632 MovieClip [APP_KeyboardProfiler] Frame 1
onClipEvent (load) {
this.let.text = "M";
this._code = 77;
}
Instance of Symbol 1624 MovieClip [k1] in Symbol 1632 MovieClip [APP_KeyboardProfiler] Frame 1
onClipEvent (load) {
this.let.text = ",";
this._code = 188;
}
Instance of Symbol 1624 MovieClip [k1] in Symbol 1632 MovieClip [APP_KeyboardProfiler] Frame 1
onClipEvent (load) {
this.let.text = ".";
this._code = 190;
}
Instance of Symbol 1624 MovieClip [k1] in Symbol 1632 MovieClip [APP_KeyboardProfiler] Frame 1
onClipEvent (load) {
this.let.text = "/";
this._code = 191;
}
Instance of Symbol 1624 MovieClip [k1] in Symbol 1632 MovieClip [APP_KeyboardProfiler] Frame 1
onClipEvent (load) {
this.let.text = "2";
this._code = 50;
}
Instance of Symbol 1630 MovieClip [k2] in Symbol 1632 MovieClip [APP_KeyboardProfiler] Frame 1
onClipEvent (load) {
this.let.text = "Enter";
this._code = 13;
}
Instance of Symbol 1624 MovieClip [k1] in Symbol 1632 MovieClip [APP_KeyboardProfiler] Frame 1
onClipEvent (load) {
this.let.text = "Alt";
this._code = 18;
}
Instance of Symbol 1624 MovieClip [k1] in Symbol 1632 MovieClip [APP_KeyboardProfiler] Frame 1
onClipEvent (load) {
this.let.text = "Enter";
this._code = 13;
}
Instance of Symbol 1624 MovieClip [k1] in Symbol 1632 MovieClip [APP_KeyboardProfiler] Frame 1
onClipEvent (load) {
this._code = 38;
}
Instance of Symbol 1624 MovieClip [k1] in Symbol 1632 MovieClip [APP_KeyboardProfiler] Frame 1
onClipEvent (load) {
this._code = 37;
}
Instance of Symbol 1624 MovieClip [k1] in Symbol 1632 MovieClip [APP_KeyboardProfiler] Frame 1
onClipEvent (load) {
this._code = 40;
}
Instance of Symbol 1624 MovieClip [k1] in Symbol 1632 MovieClip [APP_KeyboardProfiler] Frame 1
onClipEvent (load) {
this._code = 39;
}
Symbol 1646 MovieClip [APP_HighscoreTable] Frame 1
this.onCreate = function () {
var _local1 = this;
_local1.scr.text = GOS.StateVars.score.state.score;
if (_local1.save == undefined) {
_local1.save = false;
}
if (!GOS.StateVars.LoggedIn.state) {
GOS.StateVars.Window.state = {class:"LoginForm", title:GOS.Translation.label_LogIn};
_local1.submitButton._enabled = false;
} else {
_local1.submitButton._enabled = _local1.save;
}
_local1.countries._visible = false;
_local1.records = [];
_local1.pointer = 0;
_local1._country = "";
_local1.period = 0;
_local1._modal = true;
_local1._fixed = true;
_local1._clientWidth = 280;
_local1._clientHeight = 265;
_local1.useServer("gos");
_local1.getHS();
};
this.setState = function (login) {
var _local1 = this;
_local1.submitButton._enabled = login && (_local1.save);
_local1.getHS();
};
this.onNextButton = function () {
var _local1 = this;
_local1.pointer = _local1.pointer + 10;
_local1.refreshButton._enabled = true;
_local1.prevButton._enabled = true;
_local1.getHS();
};
this.onPrevButton = function () {
var _local1 = this;
_local1.pointer = _local1.pointer - 10;
if (_local1.pointer <= 0) {
_local1.pointer = 0;
_local1.prevButton._enabled = false;
}
_local1.refreshButton._enabled = true;
_local1.getHS();
};
this.getHS = function () {
var _local1 = this;
_local1.refreshButton._enabled = false;
var _local2 = GOS.StateVars.Score.state;
var _local3 = {topup:_local2.topup, score:_local2.score, period:_local1.period, country:_local1._country, count:_local1.pointer, save:false};
_local1.command("H", _local3);
};
this.setHS = function () {
var _local1 = this;
_local1.refreshButton._enabled = false;
var _local2 = GOS.StateVars.Score.state;
var _local3 = {topup:_local2.topup, score:_local2.score, period:_local1.period, country:_local1._country, count:_local1.pointer, save:GOS.StateVars.LoggedIn.state};
_local1.command("H", _local3);
};
this.onPeriod = function (ob) {
this.refreshButton._enabled = true;
this.period = ob.index;
};
this.onLocation = function (ob) {
var _local1 = this;
_local1.refreshButton._enabled = true;
switch (ob.index) {
case 0 :
_local1._country = "";
_local1.getHS();
return;
case 1 :
_local1.countries._visible = true;
return;
}
};
this.onCountry = function (i) {
var _local1 = this;
_local1._country = i;
_local1.countries._visible = false;
_local1.countries.gotoAndStop(1);
_local1.getHS();
};
this.onRefreshButton = function () {
this.getHS();
};
this.onSubmitButton = function () {
this.setHS();
};
this.onH = function (r) {
var _local2 = this;
while (_local2.records.length > 0) {
_local2.records.pop().removeMovieClip();
}
var _local3 = 0;
for (j in r.table) {
var _local1 = r.table[j];
_local1.place = Math.floor(_local1.place) + _local2.pointer;
_local1._x = 95;
_local1._y = (_local3 * 14) + 5;
_local2.attachMovie("user_hs_record", "r" + _local3, _local3 + 10, _local1);
_local2.records.push(_local2["r" + _local3]);
_local3++;
}
_local2.pos.text = Math.floor(r.place) + 1;
_local2.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 Symbol 1574 MovieClip [FORM_Radio] in Symbol 1646 MovieClip [APP_HighscoreTable] Frame 1
//component parameters
onClipEvent (initialize) {
name = "highScores_lastMonth";
_enabled = true;
_checked = false;
_group = "period";
_index = 1;
}
Instance of Symbol 1574 MovieClip [FORM_Radio] in Symbol 1646 MovieClip [APP_HighscoreTable] Frame 1
//component parameters
onClipEvent (initialize) {
name = "highScores_lastWeek";
_enabled = true;
_checked = false;
_group = "period";
_index = 2;
}
Instance of Symbol 1574 MovieClip [FORM_Radio] in Symbol 1646 MovieClip [APP_HighscoreTable] Frame 1
//component parameters
onClipEvent (initialize) {
name = "highScores_today";
_enabled = true;
_checked = false;
_group = "period";
_index = 3;
}
Instance of Symbol 1574 MovieClip [FORM_Radio] in Symbol 1646 MovieClip [APP_HighscoreTable] Frame 1
//component parameters
onClipEvent (initialize) {
name = "highScores_lastHour";
_enabled = true;
_checked = false;
_group = "period";
_index = 4;
}
Instance of Symbol 1574 MovieClip [FORM_Radio] in Symbol 1646 MovieClip [APP_HighscoreTable] Frame 1
//component parameters
onClipEvent (initialize) {
name = "highScores_masters";
_enabled = true;
_checked = true;
_group = "period";
_index = 0;
}
Instance of Symbol 1559 MovieClip [FORM_Button] "nextButton" in Symbol 1646 MovieClip [APP_HighscoreTable] Frame 1
//component parameters
onClipEvent (initialize) {
name = "highScores_next";
_enabled = true;
}
Instance of Symbol 1559 MovieClip [FORM_Button] "prevButton" in Symbol 1646 MovieClip [APP_HighscoreTable] Frame 1
//component parameters
onClipEvent (initialize) {
name = "highScores_previous";
_enabled = false;
}
Instance of Symbol 1559 MovieClip [FORM_Button] "refreshButton" in Symbol 1646 MovieClip [APP_HighscoreTable] Frame 1
//component parameters
onClipEvent (initialize) {
name = "highScores_refresh";
_enabled = true;
}
Instance of Symbol 1559 MovieClip [FORM_Button] "submitButton" in Symbol 1646 MovieClip [APP_HighscoreTable] Frame 1
//component parameters
onClipEvent (initialize) {
name = "highScores_submitMe";
_enabled = true;
}
Instance of Symbol 1574 MovieClip [FORM_Radio] in Symbol 1646 MovieClip [APP_HighscoreTable] Frame 1
//component parameters
onClipEvent (initialize) {
name = "highScores_allCountries";
_enabled = true;
_checked = true;
_group = "location";
_index = 0;
}
Instance of Symbol 1574 MovieClip [FORM_Radio] in Symbol 1646 MovieClip [APP_HighscoreTable] Frame 1
//component parameters
onClipEvent (initialize) {
name = "highScores_pickCountry";
_enabled = true;
_checked = false;
_group = "location";
_index = 1;
}
Symbol 1651 MovieClip [APP_GameStats] Frame 1
this.onCreate = function () {
var _local1 = this;
_local1._modal = true;
_local1._fixed = true;
_local1.period = 0;
_root.trafficTip.unloadMovie();
_local1.useServer("gos");
_local1.getStats();
};
this.getStats = function () {
var _local1 = {period:this.period};
this.command("I", _local1);
};
this.onPeriod = function (i) {
this.period = i.index;
this.getStats();
};
this.onI = function (r) {
var _local2 = r;
var m = 0;
var l = 0;
for (i in _local2) {
_local2[i].volume = Number(_local2[i].volume);
m = Math.max(m, _local2[i].volume);
l++;
var a = _local2[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 _local1 = this.createEmptyMovieClip("graph", 10);
_local1.beginFill(0, 0);
_local1.lineStyle(1, 0, 0);
_local1.moveTo(0, 0);
_local1.lineTo(170, 0);
_local1.lineTo(170, 85);
_local1.lineTo(0, 85);
_local1.lineTo(0, 0);
_local1.endFill();
_local1._x = 5;
_local1._y = 5;
for (i in _local2) {
var _local3 = int(i);
var x1 = (_local3 * w);
var x2 = ((_local3 + 1) * w);
var y1 = (85 - (_local2[_local3].volume * m));
var y2 = (85 - (_local2[_local3 + 1].volume * m));
_local1.lineStyle(2, 0, 30);
_local1.moveTo(x1 + 1, y1 + 1);
_local1.lineTo(x2 + 1, y2 + 1);
_local1.lineStyle(2, 221, 100);
_local1.moveTo(x1, y1);
_local1.lineTo(x2, y2);
}
_local1.tmin = tmin;
_local1.tmax = tmax;
_local1.vmax = vmax;
_local1.__proto__ = TrafficBar.prototype;
};
TrafficBar = function () {
};
TrafficBar.prototype = new MovieClip();
TrafficBar.prototype.onMouseMove = function () {
var _local1 = this;
if (_local1.hitTest(_root._xmouse, _root._ymouse)) {
var _local3 = {x:_root._xmouse, y:_root._ymouse};
_local1.globalToLocal(_local3);
var xp = (_local3.x / 170);
var yp = ((85 - _local3.y) / 85);
var d = Math.floor(_local1.tmin + ((_local1.tmax - _local1.tmin) * xp));
var v = Math.round(_local1.vmax * yp);
var _local2 = new Date();
_local2.setTime(d);
_local2._toString = Date.prototype.toString;
_local2.toString = _local1["P" + _local1._parent.period];
_local1._parent.label = _local2.toString();
_local1._parent.volume = v;
} else {
_local1._parent.label = _global.GOS.Translation.stats_dragOnTheMesh;
_local1._parent.volume = "";
}
};
TrafficBar.prototype.P0 = function () {
var _local2 = this.getHours();
var _local1 = this.getMinutes();
_local2 = ((_local2 < 10) ? ("0" + _local2) : (_local2));
_local1 = ((_local1 < 10) ? ("0" + _local1) : (_local1));
return((_local2 + ":") + _local1);
};
TrafficBar.prototype.P1 = function () {
var _local1 = this._toString().split(" ");
return((((((_local1[0] + ", ") + _local1[2]) + " ") + _local1[1]) + " ") + _local1[5]);
};
TrafficBar.prototype.P2 = function () {
var _local1 = this._toString().split(" ");
return((_local1[1] + " ") + _local1[5]);
};
Instance of Symbol 1574 MovieClip [FORM_Radio] in Symbol 1651 MovieClip [APP_GameStats] Frame 1
//component parameters
onClipEvent (initialize) {
name = "stats_last24h";
_enabled = true;
_checked = true;
_group = "period";
_index = 0;
}
Instance of Symbol 1574 MovieClip [FORM_Radio] in Symbol 1651 MovieClip [APP_GameStats] Frame 1
//component parameters
onClipEvent (initialize) {
name = "stats_lastMonth";
_enabled = true;
_checked = false;
_group = "period";
_index = 1;
}
Instance of Symbol 1574 MovieClip [FORM_Radio] in Symbol 1651 MovieClip [APP_GameStats] Frame 1
//component parameters
onClipEvent (initialize) {
name = "stats_lastYear";
_enabled = true;
_checked = false;
_group = "period";
_index = 2;
}
Symbol 1654 Button
on (press) {
GOS.StateVars.Pause.state = true;
}
Symbol 1655 Button
on (press) {
GOS.StateVars.Pause.state = false;
}
Symbol 1656 MovieClip [APP_GameControl] Frame 1
this.onCreate = function () {
var _local1 = this;
_local1._modal = true;
_local1._unique = true;
_local1._clientHeight = 40;
GOS.StateVars.Pause.addListener(_local1);
_local1.setState(GOS.StateVars.Pause.state);
};
this.setState = function (s) {
var _local1 = this;
if (s) {
_local1.ps._alpha = 60;
_local1.pl._alpha = 100;
_local1.ps.enabled = false;
_local1.pl.enabled = true;
} else {
_local1.ps._alpha = 100;
_local1.pl._alpha = 60;
_local1.ps.enabled = true;
_local1.pl.enabled = false;
}
};
Symbol 1659 MovieClip [APP_FpsMonitor] Frame 1
this.onCreate = function () {
var _local1 = this;
_local1._modal = true;
_local1._unique = true;
_local1.setup();
_local1.frames = 0;
};
this.draw = function (f) {
var _local1 = this;
if (_local1.tm == undefined) {
_local1.currMeter.lineTo(0, 10);
} else {
_local1.fps = "FPS=" + (Math.round(f * 100) / 100);
var _local2 = 50 - ((f / GOS.fps) * 40);
_local1.currMeter.lineStyle(2, 128, 100);
_local1.currMeter.lineTo(_local1.currMeter.x++, _local2);
if (_local1._move) {
_local1.pastMeter._x--;
_local1.currMeter._x--;
}
if (_local1.currMeter.x > 100) {
_local1.pastMeter.clear();
_local1.pastMeter._x = 105;
_local1.pastMeter.x = 0;
var _local3 = _local1.currMeter;
_local1.currMeter = _local1.pastMeter;
_local1.pastMeter = _local3;
_local1._move = true;
_local1.currMeter.moveTo(0, _local2);
}
}
};
this.onEnterFrame = function () {
var _local1 = this;
_local1.frames++;
if ((getTimer() - _local1.tm) > 200) {
_local1.draw((_local1.frames * 1000) / (getTimer() - _local1.tm));
_local1.frames = 0;
_local1.tm = getTimer();
}
};
this.setup = function () {
var _local1 = this;
_local1.createEmptyMovieClip("meter1", 1);
_local1.createEmptyMovieClip("meter2", 2);
_local1.meter1._x = (_local1.meter1._y = 5);
_local1.meter2._x = (_local1.meter2._y = 5);
_local1.currMeter = _local1.meter1;
_local1.pastMeter = _local1.meter2;
_local1.meter1.x = 0;
_local1.createEmptyMovieClip("_mask1", 3);
_local1._mask1.clear();
_local1._mask1.lineStyle(1, 16711680, 100);
_local1._mask1.beginFill(0, 10);
_local1._mask1.moveTo(0, 0);
_local1._mask1.lineTo(100, 0);
_local1._mask1.lineTo(100, 50);
_local1._mask1.lineTo(0, 50);
_local1._mask1.lineTo(0, 0);
_local1._mask1.endFill();
_local1._mask1._x = (_local1._mask1._y = 5);
_local1.createEmptyMovieClip("_mask2", 4);
_local1._mask2.clear();
_local1._mask2.lineStyle(1, 16711680, 100);
_local1._mask2.beginFill(0, 10);
_local1._mask2.moveTo(0, 0);
_local1._mask2.lineTo(100, 0);
_local1._mask2.lineTo(100, 50);
_local1._mask2.lineTo(0, 50);
_local1._mask2.lineTo(0, 0);
_local1._mask2.endFill();
_local1._mask2._x = (_local1._mask2._y = 5);
_local1.meter1.setMask(_local1._mask1);
_local1.meter2.setMask(_local1._mask2);
_local1._move = false;
};
this.onLowButton = function () {
_quality = "LOW";
};
this.onMediumButton = function () {
_quality = "MEDIUM";
};
this.onHighButton = function () {
_quality = "HIGH";
};
this.onBestButton = function () {
_quality = "BEST";
};
Instance of Symbol 1559 MovieClip [FORM_Button] "LowButton" in Symbol 1659 MovieClip [APP_FpsMonitor] Frame 1
//component parameters
onClipEvent (initialize) {
name = "fpsMonitor_lowBut";
_enabled = true;
}
Instance of Symbol 1559 MovieClip [FORM_Button] "MediumButton" in Symbol 1659 MovieClip [APP_FpsMonitor] Frame 1
//component parameters
onClipEvent (initialize) {
name = "fpsMonitor_mediumBut";
_enabled = true;
}
Instance of Symbol 1559 MovieClip [FORM_Button] "HighButton" in Symbol 1659 MovieClip [APP_FpsMonitor] Frame 1
//component parameters
onClipEvent (initialize) {
name = "fpsMonitor_highBut";
_enabled = true;
}
Instance of Symbol 1559 MovieClip [FORM_Button] "HighButton" in Symbol 1659 MovieClip [APP_FpsMonitor] Frame 1
//component parameters
onClipEvent (initialize) {
name = "fpsMonitor_bestBut";
_enabled = true;
}
Symbol 1660 MovieClip [APP_ExternalApp] Frame 1
this.onCreate = function () {
var _local1 = this;
_local1._parent.onEnterFrame = function () {
var _local1 = this;
var _local2 = _local1.client.getBytesLoaded();
var _local3 = _local1.client.getBytesTotal();
if ((_local2 > 100) && (_local2 == _local3)) {
_local1.onEnterFrame = _local1.oldOEF;
_local1.client.__proto__ = GOS_WindowClientAreaClass.prototype;
_local1.client._visible = false;
}
};
_local1.loadMovie(_local1.external);
};
Symbol 1663 MovieClip [FORM_TextArea] Frame 1
#initclip 12
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.bkl._width = (this.bkr._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.bkl._y = (this.bkr._y = this.h / 2);
this.bkt._height = (this.bkb._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.bkb._x = (this.bkt._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
Symbol 1664 MovieClip [APP_EmailFriend] Frame 1
this.onCreate = function () {
var _local1 = this;
_local1._modal = true;
_local1._unique = true;
_local1.CopyButton._enabled = System.capabilities.version.split(" ")[1].split(",")[0] >= 7;
_local1.useServer("gos");
};
this.onCopyButton = function () {
this.command("G");
};
this.onSendButton = function () {
var _local2 = this;
var _local1 = {email:_local2.email.val.text, message:_local2.message.val.text};
_local2.command("F", _local1);
};
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 of Symbol 1559 MovieClip [FORM_Button] "SendButton" in Symbol 1664 MovieClip [APP_EmailFriend] Frame 1
//component parameters
onClipEvent (initialize) {
name = "common_send";
_enabled = false;
}
Instance of Symbol 1567 MovieClip [FORM_TextField] "email" in Symbol 1664 MovieClip [APP_EmailFriend] Frame 1
//component parameters
onClipEvent (initialize) {
title = "common_email";
type = "mail";
}
Instance of Symbol 1663 MovieClip [FORM_TextArea] "message" in Symbol 1664 MovieClip [APP_EmailFriend] Frame 1
//component parameters
onClipEvent (initialize) {
title = "common_message";
}
Instance of Symbol 1559 MovieClip [FORM_Button] "CopyButton" in Symbol 1664 MovieClip [APP_EmailFriend] Frame 1
//component parameters
onClipEvent (initialize) {
name = "common_clipboard";
_enabled = true;
}
Symbol 1665 MovieClip [APP_Connecting] Frame 1
this.onCreate = function () {
this._modal = true;
this._unique = true;
};
Symbol 1666 MovieClip [APP_ChangePasswordForm] Frame 1
this.onCreate = function () {
var _local1 = this;
_local1._modal = true;
_local1._unique = true;
_local1.useServer();
_local1.stop();
};
this.showTip = function () {
var _local2 = this;
var _local1 = {x:_local2.submitButton._x, y:_local2.submitButton._y + 10};
_local2.localToGlobal(_local1);
GOS.root.globalToLocal(_local1);
GOS.root.attachMovie("GOS_ToolTip", "toolTip", 5000, {tipText:GOS.Translation.common_badForm, _x:_local1.x, _y:_local1.y});
};
this.hideTip = function () {
GOS.root.toolTip.removeMovieClip();
};
this.verify = function () {
var _local1 = this;
_local1.submitButton._enabled = ((_local1.cpass.valid && (_local1.pass1.valid)) && (_local1.pass2.valid)) && (_local1.pass1.val.text == _local1.pass2.val.text);
};
this.onSubmitButton = function () {
var _local2 = this;
var _local1 = {cpass:calcMD5(_local2.cpass.val.text), npass:calcMD5(_local2.pass1.val.text)};
_local2.command("C", _local1);
};
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 of Symbol 1567 MovieClip [FORM_TextField] "cpass" in Symbol 1666 MovieClip [APP_ChangePasswordForm] Frame 1
//component parameters
onClipEvent (initialize) {
title = "changePassword_currentPassword";
type = "pass";
}
Instance of Symbol 1567 MovieClip [FORM_TextField] "pass1" in Symbol 1666 MovieClip [APP_ChangePasswordForm] Frame 1
//component parameters
onClipEvent (initialize) {
title = "changePassword_currentPassword";
type = "pass";
}
Instance of Symbol 1567 MovieClip [FORM_TextField] "pass2" in Symbol 1666 MovieClip [APP_ChangePasswordForm] Frame 1
//component parameters
onClipEvent (initialize) {
title = "changePassword_newPasswordRetype";
type = "pass";
}
Instance of Symbol 1559 MovieClip [FORM_Button] "submitButton" in Symbol 1666 MovieClip [APP_ChangePasswordForm] Frame 1
//component parameters
onClipEvent (initialize) {
name = "changePassword_submit";
_enabled = true;
}
Symbol 1677 MovieClip [APP_Alert] Frame 1
this.onCreate = function () {
var _local1 = this;
_local1.txt.selectable = false;
_local1.txt.autoSize = true;
_local1.txt.html = true;
_local1.txt.multiline = true;
_local1.txt.wordWrap = true;
var _local2 = _local1.text;
var a = _local2.split("\\n");
_local2 = a.join("<br>");
if (_local1.UCase != false) {
_local2 = _local2.toUpperCase();
}
_local1.txt.htmlText = _local2;
if (_local1.type == undefined) {
_local1.type = "info";
}
_local1.icon.gotoAndStop(_local1.type);
if (_local1.noButton) {
_local1.okButton.swapDepths(1000);
_local1.okButton.unloadMovie();
}
_local1.txt._width = 180;
var _local3 = Math.floor((_local1.txt._y + _local1.txt._height) + 10);
_local1.okButton._y = ((_local3 < 45) ? 45 : (_local3));
var w = ((_local1._width - (_local1.okButton._width / 2)) - 20);
_local1.okButton._x = w;
_local1._modal = true;
};
this.onOkButton = function (m) {
this.close();
};
Instance of Symbol 1559 MovieClip [FORM_Button] "okButton" in Symbol 1677 MovieClip [APP_Alert] Frame 1
//component parameters
onClipEvent (initialize) {
name = "common_ok";
_enabled = true;
}
Symbol 1685 MovieClip [item] Frame 1
this._loadMovie = function (u) {
var _local1 = u;
_local1 = _local1.split("&").join("\x07");
this.loadMovie((GOS.dLM + "?url=") + _local1);
};
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);
if (GOS.dLM != undefined) {
this["img" + i].img.loadMovie = this._loadMovie;
}
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 _local1 = this;
var _local2 = 0;
for (i in _local1.items) {
if (_local1.items[i]._height > _local2) {
_local2 = _local1.items[i]._height;
}
}
var _local3 = 0;
for (i in _local1.items) {
_local1.items[i]._x = _local3;
switch (_local1.atr.align) {
case "top" :
_local1.items[i]._y = (-_local2) / 2;
break;
case "bottom" :
_local1.items[i]._y = (_local2 / 2) - _local1.items[i]._height;
break;
default :
_local1.items[i]._y = (-_local1.items[i]._height) / 2;
}
_local3 = _local3 + (_local1.items[i]._width + 5);
}
_local1._visible = true;
};
Symbol 1687 MovieClip [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 _local1 = this;
_local1._value = ob.index;
_local1._answered = 1;
_local1._parent.checkPoll();
};
Instance of Symbol 1574 MovieClip [FORM_Radio] "no" in Symbol 1687 MovieClip [dynamid_banner_poll_item] Frame 1
//component parameters
onClipEvent (initialize) {
name = "common_no";
_enabled = true;
_checked = false;
_group = "answerPick";
_index = 0;
}
Instance of Symbol 1574 MovieClip [FORM_Radio] "yes" in Symbol 1687 MovieClip [dynamid_banner_poll_item] Frame 1
//component parameters
onClipEvent (initialize) {
name = "common_yes";
_enabled = true;
_checked = false;
_group = "answerPick";
_index = 1;
}
Symbol 1692 MovieClip [dynamic banner] Frame 1
this._visible = false;
this.swapDepths(457);
Math.linearTween = function (t, b, c, d) {
return(((c * t) / d) + b);
};
Math.easeInQuad = function (t, b, c, d) {
return(((c * ((t = t / d))) * t) + b);
};
Math.easeOutQuad = function (t, b, c, d) {
return((((-c) * ((t = t / d))) * (t - 2)) + b);
};
Math.easeInOutQuad = function (t, b, c, d) {
var _local1 = t;
_local1 = _local1 / (d / 2);
if (_local1 < 1) {
return((((c / 2) * _local1) * _local1) + b);
}
_local1--;
return((((-c) / 2) * ((_local1 * (_local1 - 2)) - 1)) + b);
};
Math.easeInCubic = function (t, b, c, d) {
var _local1 = t;
_local1 = _local1 / d;
return((((c * _local1) * _local1) * _local1) + b);
};
Math.easeOutCubic = function (t, b, c, d) {
var _local1 = t;
_local1 = (_local1 / d) - 1;
return((c * (((_local1 * _local1) * _local1) + 1)) + b);
};
Math.easeInOutCubic = function (t, b, c, d) {
var _local1 = t;
_local1 = _local1 / (d / 2);
if (_local1 < 1) {
return(((((c / 2) * _local1) * _local1) * _local1) + b);
}
_local1 = _local1 - 2;
return(((c / 2) * (((_local1 * _local1) * _local1) + 2)) + b);
};
Math.easeInQuart = function (t, b, c, d) {
var _local1 = t;
_local1 = _local1 / d;
return(((((c * _local1) * _local1) * _local1) * _local1) + b);
};
Math.easeOutQuart = function (t, b, c, d) {
var _local1 = t;
_local1 = (_local1 / d) - 1;
return(((-c) * ((((_local1 * _local1) * _local1) * _local1) - 1)) + b);
};
Math.easeInOutQuart = function (t, b, c, d) {
var _local1 = t;
_local1 = _local1 / (d / 2);
if (_local1 < 1) {
return((((((c / 2) * _local1) * _local1) * _local1) * _local1) + b);
}
_local1 = _local1 - 2;
return((((-c) / 2) * ((((_local1 * _local1) * _local1) * _local1) - 2)) + b);
};
Math.easeInQuint = function (t, b, c, d) {
var _local1 = t;
_local1 = _local1 / d;
return((((((c * _local1) * _local1) * _local1) * _local1) * _local1) + b);
};
Math.easeOutQuint = function (t, b, c, d) {
var _local1 = t;
_local1 = (_local1 / d) - 1;
return((c * (((((_local1 * _local1) * _local1) * _local1) * _local1) + 1)) + b);
};
Math.easeInOutQuint = function (t, b, c, d) {
var _local1 = t;
_local1 = _local1 / (d / 2);
if (_local1 < 1) {
return(((((((c / 2) * _local1) * _local1) * _local1) * _local1) * _local1) + b);
}
_local1 = _local1 - 2;
return(((c / 2) * (((((_local1 * _local1) * _local1) * _local1) * _local1) + 2)) + b);
};
Math.easeInSine = function (t, b, c, d) {
return((((-c) * Math.cos((t / d) * (Math.PI/2))) + c) + b);
};
Math.easeOutSine = function (t, b, c, d) {
return((c * Math.sin((t / d) * (Math.PI/2))) + 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 _local1 = t;
var _local2 = b;
var _local3 = c;
if (_local1 == 0) {
return(_local2);
}
if (_local1 == d) {
return(_local2 + _local3);
}
_local1 = _local1 / (d / 2);
if (_local1 < 1) {
return(((_local3 / 2) * Math.pow(2, 10 * (_local1 - 1))) + _local2);
}
_local1--;
return(((_local3 / 2) * ((-Math.pow(2, -10 * _local1)) + 2)) + _local2);
};
Math.easeInCirc = function (t, b, c, d) {
return(((-c) * (Math.sqrt(1 - (((t = t / d)) * t)) - 1)) + b);
};
Math.easeOutCirc = function (t, b, c, d) {
var _local1 = t;
_local1 = (_local1 / d) - 1;
return((c * Math.sqrt(1 - (_local1 * _local1))) + b);
};
Math.easeInOutCirc = function (t, b, c, d) {
var _local1 = t;
_local1 = _local1 / (d / 2);
if (_local1 < 1) {
return((((-c) / 2) * (Math.sqrt(1 - (_local1 * _local1)) - 1)) + b);
}
_local1 = _local1 - 2;
return(((c / 2) * (Math.sqrt(1 - (_local1 * _local1)) + 1)) + b);
};
Math.easeInElastic = function (t, b, c, d, a, p) {
var _local1 = p;
var _local2 = t;
var _local3 = c;
if (_local2 == 0) {
return(b);
}
_local2 = _local2 / d;
if (_local2 == 1) {
return(b + _local3);
}
if (!_local1) {
_local1 = d * 0.3;
}
if (a < Math.abs(_local3)) {
a = _local3;
var s = (_local1 / 4);
} else {
var s = ((_local1 / (Math.PI*2)) * Math.asin(_local3 / a));
}
_local2 = _local2 - 1;
return((-((a * Math.pow(2, 10 * _local2)) * Math.sin((((_local2 * d) - s) * (Math.PI*2)) / _local1))) + b);
};
Math.easeOutElastic = function (t, b, c, d, a, p) {
var _local1 = c;
var _local2 = p;
var _local3 = t;
if (_local3 == 0) {
return(b);
}
_local3 = _local3 / d;
if (_local3 == 1) {
return(b + _local1);
}
if (!_local2) {
_local2 = d * 0.3;
}
if (a < Math.abs(_local1)) {
a = _local1;
var s = (_local2 / 4);
} else {
var s = ((_local2 / (Math.PI*2)) * Math.asin(_local1 / a));
}
return((((a * Math.pow(2, -10 * _local3)) * Math.sin((((_local3 * d) - s) * (Math.PI*2)) / _local2)) + _local1) + b);
};
Math.easeInOutElastic = function (t, b, c, d, a, p) {
var _local1 = t;
var _local2 = p;
var _local3 = c;
if (_local1 == 0) {
return(b);
}
_local1 = _local1 / (d / 2);
if (_local1 == 2) {
return(b + _local3);
}
if (!_local2) {
_local2 = d * 0.45;
}
if (a < Math.abs(_local3)) {
a = _local3;
var s = (_local2 / 4);
} else {
var s = ((_local2 / (Math.PI*2)) * Math.asin(_local3 / a));
}
if (_local1 < 1) {
_local1 = _local1 - 1;
return((-0.5 * ((a * Math.pow(2, 10 * _local1)) * Math.sin((((_local1 * d) - s) * (Math.PI*2)) / _local2))) + b);
}
_local1 = _local1 - 1;
return(((((a * Math.pow(2, -10 * _local1)) * Math.sin((((_local1 * d) - s) * (Math.PI*2)) / _local2)) * 0.5) + _local3) + b);
};
Math.easeInBack = function (t, b, c, d, s) {
var _local1 = s;
var _local2 = t;
if (_local1 == undefined) {
_local1 = 1.70158;
}
_local2 = _local2 / d;
return((((c * _local2) * _local2) * (((_local1 + 1) * _local2) - _local1)) + b);
};
Math.easeOutBack = function (t, b, c, d, s) {
var _local1 = t;
var _local2 = s;
if (_local2 == undefined) {
_local2 = 1.70158;
}
_local1 = (_local1 / d) - 1;
return((c * (((_local1 * _local1) * (((_local2 + 1) * _local1) + _local2)) + 1)) + b);
};
Math.easeInOutBack = function (t, b, c, d, s) {
var _local1 = t;
var _local2 = s;
if (_local2 == undefined) {
_local2 = 1.70158;
}
_local1 = _local1 / (d / 2);
if (_local1 < 1) {
_local2 = _local2 * 1.525;
return(((c / 2) * ((_local1 * _local1) * (((_local2 + 1) * _local1) - _local2))) + b);
}
_local1 = _local1 - 2;
_local2 = _local2 * 1.525;
return(((c / 2) * (((_local1 * _local1) * (((_local2 + 1) * _local1) + _local2)) + 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 _local1 = t;
var _local2 = c;
var _local3 = b;
_local1 = _local1 / d;
if (_local1 < 0.363636363636364) {
return((_local2 * ((7.5625 * _local1) * _local1)) + _local3);
}
if (_local1 < 0.727272727272727) {
_local1 = _local1 - 0.545454545454545;
return((_local2 * (((7.5625 * _local1) * _local1) + 0.75)) + _local3);
}
if (_local1 < 0.909090909090909) {
_local1 = _local1 - 0.818181818181818;
return((_local2 * (((7.5625 * _local1) * _local1) + 0.9375)) + _local3);
}
_local1 = _local1 - 0.954545454545455;
return((_local2 * (((7.5625 * _local1) * _local1) + 0.984375)) + _local3);
};
Math.easeInOutBounce = function (t, b, c, d) {
var _local1 = d;
var _local2 = t;
var _local3 = c;
if (_local2 < (_local1 / 2)) {
return((Math.easeInBounce(_local2 * 2, 0, _local3, _local1) * 0.5) + b);
}
return(((Math.easeOutBounce((_local2 * 2) - _local1, 0, _local3, _local1) * 0.5) + (_local3 * 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();
this.astring = "";
this.poll = function () {
var _local1 = this;
if (!_local1.questions.length) {
_local1.gotoAndStop(2);
} else {
_local1.polls = [];
i = 0;
while (i < _local1.questions.length) {
var _local2 = _local1.attachMovie("dynamid_banner_poll_item", "q" + i, i + 100, {txt:_local1.questions[i], _y:((i * 40) / (_local1.questions.length - 1)) + 5});
_local1.polls[i] = _local2;
i++;
}
_local1.pollLoaded();
}
};
this.checkPoll = function () {
var _local1 = this;
var _local2 = 1;
for (i in _local1.polls) {
_local2 = _local2 * _local1.polls[i]._answered;
}
if (_local2) {
_local1.onMouseUp = _local1._onMouseUp;
}
};
this._onMouseUp = function () {
var _local1 = this;
var _local2 = [];
for (i in _local1.polls) {
_local2[i] = _local1.polls[i]._value;
_local1.astring = _local2.join("");
_local1.polls[i].removeMovieClip();
}
_local1.onMouseUp = null;
_local1._visible = false;
GOS.StateVars.Pause.enable = true;
GOS.StateVars.Pause.state = false;
_local1.gotoAndStop(2);
};
this.questions = [];
var y = new XML();
y.mc = this;
y.ignoreWhite = true;
y.onLoad = function () {
var _local3 = this;
for (i in _local3.childNodes) {
if (_local3.childNodes[i].nodeName != "rss") {
continue;
}
var _local2 = _local3.childNodes[i].childNodes;
for (j in _local2) {
if (_local2[j].nodeName != "channel") {
continue;
}
var _local1 = _local2[j].childNodes;
var a = [];
flag = false;
for (v in _local1) {
if (_local1[v].nodeName == "item") {
trace(_local1[v].childNodes[0].nodeValue);
_local3.mc.questions.unshift(_local1[v].childNodes[0].nodeValue);
}
}
}
}
_local3.mc.poll();
};
this.onURLLoaded = function (a) {
y.parseXML(a.document);
y.onLoad();
};
this.loadFiles = function () {
this.loadFiles = null;
GOS.proxy.addListener(this);
debugMsg("dbannerPoll: " + GOS.dbannerPoll);
GOS.proxy.loadURL(GOS.dbannerPoll);
};
this.pollLoaded = function () {
this._visible = true;
GOS.Translation.pauseMessageText = GOS.Translation.common_fillPoll;
GOS.StateVars.Pause.state = true;
GOS.StateVars.Pause.enable = false;
};
if (GOS.online) {
this.loadFiles();
}
Symbol 1692 MovieClip [dynamic banner] Frame 2
GOS.Translation.pauseMessageText = GOS.Translation.common_gamePaused;
GOS.StateVars.Pause.enable = true;
GOS.StateVars.Pause.state = false;
this.vslider = {init:function () {
var _local1 = this;
_local1.steps = Math.ceil(_local1.duration / 25);
if (_local1.direction == 1) {
_local1.roller._y = _local1.frame.t - _local1.roller._height;
_local1.deadline = _local1.frame.cy;
_local1.go = _local1.godown;
} else {
_local1.roller._y = _local1.frame.b;
_local1.deadline = _local1.frame.cy;
_local1.go = _local1.goup;
}
i = 0;
while (i < _local1.items.length) {
if (i == 0) {
_local1.items[i].prev = _local1.items[_local1.items.length - 1];
} else {
_local1.items[i].prev = _local1.items[i - 1];
}
if (i == (_local1.items.length - 1)) {
_local1.items[i].next = _local1.items[0];
} else {
_local1.items[i].next = _local1.items[i + 1];
}
i++;
}
_local1.factor = 0.5;
if (_local1.endon != false) {
var s = 1;
var _local3 = _local1.endon.split("+");
if (_local3.length < 2) {
_local3 = _local1.endon.split("-");
s = -1;
}
var _local2 = parseInt(_local3[1]);
_local2 = (isNaN(_local2) ? 0 : (s * _local2));
switch (_local3[0]) {
case "top" :
_local1.deadline = _local1.frame.t + _local2;
_local1.factor = 0;
return;
case "bottom" :
_local1.deadline = _local1.frame.b + _local2;
_local1.factor = 1;
return;
default :
_local1.deadline = _local1.frame.cy + _local2;
_local1.factor = 0.5;
}
}
}, godown:function () {
var _local1 = this;
for (i in _local1.items) {
var _local2 = _local1.items.pop();
var _local3 = {x:0, y:_local2._y};
_local1.roller.localToGlobal(_local3);
_local1.roller._parent.globalToLocal(_local3);
if (_local3.y > _local1.frame.b) {
_local2._y = (_local1.items[0]._y - _local1.spacing.v) - _local2._height;
_local1.items.unshift(_local2);
} else {
_local1.items.push(_local2);
break;
}
}
if (_local1.current == undefined) {
_local1.current = _local1.items[_local1.items.length - 1];
} else {
_local1.current = _local1.current.prev;
}
var y = (_local1.current._y + (_local1.current._height * _local1.factor));
var _local3 = {x:0, y:y};
_local1.roller.localToGlobal(_local3);
_local1.roller._parent.globalToLocal(_local3);
if (_local3.y >= _local1.deadline) {
} else {
var d = ((_local1.deadline - _local3.y) + (_local1.current._height / 2));
}
_local1.time = 0;
_local1.begin = _local1.roller._y;
_local1.end = d;
_local1._interval = __setInterval(_local1, "ease", 25);
}, goup:function () {
var _local1 = this;
for (i in _local1.items) {
var _local2 = _local1.items.shift();
var _local3 = {x:0, y:_local2._y + _local2._height};
_local1.roller.localToGlobal(_local3);
_local1.roller._parent.globalToLocal(_local3);
if (_local3.y < _local1.frame.t) {
_local2._y = (_local1.items[_local1.items.length - 1]._y + _local1.spacing.v) + _local1.items[_local1.items.length - 1]._height;
_local1.items.push(_local2);
} else {
_local1.items.unshift(_local2);
break;
}
}
if (_local1.current == undefined) {
_local1.current = _local1.items[0];
} else {
_local1.current = _local1.current.next;
}
var y = (_local1.current._y + (_local1.current._height * _local1.factor));
var _local3 = {x:0, y:y};
_local1.roller.localToGlobal(_local3);
_local1.roller._parent.globalToLocal(_local3);
var d = ((_local1.deadline - _local3.y) + (_local1.current._height / 2));
_local1.time = 0;
_local1.begin = _local1.roller._y;
_local1.end = d;
_local1._interval = __setInterval(_local1, "ease", 25);
}, ease:function (d) {
var _local1 = this;
var _local2 = d;
_local2 = Math.ease(_local1.time, _local1.begin, _local1.end, _local1.steps, _local1.easingFun);
_local1.roller._y = _local2;
if ((_local1.time++) >= _local1.steps) {
_local1.current.viewed();
__clearInterval(_local1._interval);
}
}};
this.hslider = {init:function () {
var _local1 = this;
_local1.steps = Math.ceil(_local1.duration / 25);
if (_local1.direction == 1) {
_local1.roller._x = _local1.frame.r;
_local1.deadline = _local1.frame.cx;
_local1.go = _local1.goleft;
} else {
_local1.roller._x = _local1.frame.l - _local1.roller._width;
_local1.deadline = _local1.frame.cx;
_local1.go = _local1.goright;
}
i = 0;
while (i < _local1.items.length) {
if (i == 0) {
_local1.items[i].prev = _local1.items[_local1.items.length - 1];
} else {
_local1.items[i].prev = _local1.items[i - 1];
}
if (i == (_local1.items.length - 1)) {
_local1.items[i].next = _local1.items[0];
} else {
_local1.items[i].next = _local1.items[i + 1];
}
i++;
}
_local1.factor = 0.5;
if (_local1.endon != false) {
var s = 1;
var _local3 = _local1.endon.split("+");
if (_local3.length < 2) {
_local3 = _local1.endon.split("-");
s = -1;
}
var _local2 = parseInt(_local3[1]);
_local2 = (isNaN(_local2) ? 0 : (s * _local2));
switch (_local3[0]) {
case "left" :
_local1.deadline = _local1.frame.l + _local2;
_local1.factor = 0;
return;
case "right" :
_local1.deadline = _local1.frame.r + _local2;
_local1.factor = 1;
return;
default :
_local1.deadline = _local1.frame.cx + _local2;
_local1.factor = 0.5;
}
}
}, goright:function () {
var _local1 = this;
for (i in _local1.items) {
var _local2 = _local1.items.pop();
var _local3 = {x:_local2._x, y:0};
_local1.roller.localToGlobal(_local3);
_local1.roller._parent.globalToLocal(_local3);
if (_local3.x > _local1.frame.r) {
_local2._x = (_local1.items[0]._x - _local1.spacing.h) - _local2._width;
_local1.items.unshift(_local2);
} else {
_local1.items.push(_local2);
break;
}
}
if (_local1.current == undefined) {
_local1.current = _local1.items[_local1.items.length - 1];
} else {
_local1.current = _local1.current.prev;
}
var x = (_local1.current._x + (_local1.current._width * _local1.factor));
var _local3 = {x:x, y:0};
_local1.roller.localToGlobal(_local3);
_local1.roller._parent.globalToLocal(_local3);
var d = (_local1.deadline - _local3.x);
_local1.time = 0;
_local1.begin = _local1.roller._x;
_local1.end = d;
_local1._interval = __setInterval(_local1, "ease", 25);
}, goleft:function () {
var _local1 = this;
for (i in _local1.items) {
var _local2 = _local1.items.shift();
var _local3 = {x:_local2._x + _local2._width, y:0};
_local1.roller.localToGlobal(_local3);
_local1.roller._parent.globalToLocal(_local3);
if (_local3.x < _local1.frame.l) {
_local2._x = (_local1.items[_local1.items.length - 1]._x + _local1.spacing.h) + _local1.items[_local1.items.length - 1]._width;
_local1.items.push(_local2);
} else {
_local1.items.unshift(_local2);
break;
}
}
if (_local1.current == undefined) {
_local1.current = _local1.items[0];
} else {
_local1.current = _local1.current.next;
}
var x = (_local1.current._x + (_local1.current._width * _local1.factor));
var _local3 = {x:x, y:0};
_local1.roller.localToGlobal(_local3);
_local1.roller._parent.globalToLocal(_local3);
var d = (_local1.deadline - _local3.x);
_local1.time = 0;
_local1.begin = _local1.roller._x;
_local1.end = d;
_local1._interval = __setInterval(_local1, "ease", 25);
}, ease:function (d) {
var _local1 = this;
var _local2 = d;
_local2 = Math.ease(_local1.time, _local1.begin, _local1.end, _local1.steps, _local1.easingFun);
_local1.roller._x = _local2;
if ((_local1.time++) >= _local1.steps) {
__clearInterval(_local1._interval);
_local1.current.viewed();
}
}};
this.alpha = {init:function () {
var _local1 = this;
_local1.steps = Math.ceil(_local1.duration / 25);
i = 0;
while (i < _local1.items.length) {
if (i == 0) {
_local1.items[i].prev = _local1.items[_local1.items.length - 1];
} else {
_local1.items[i].prev = _local1.items[i - 1];
}
if (i == (_local1.items.length - 1)) {
_local1.items[i].next = _local1.items[0];
} else {
_local1.items[i].next = _local1.items[i + 1];
}
_local1.items[i]._alpha = 0;
i++;
}
}, go:function () {
var _local1 = this;
if (_local1.fadeIn == undefined) {
_local1.fadeIn = _local1.items[0];
_local1.easeIn_init();
} else {
_local1.fadeOut = _local1.fadeIn;
_local1.fadeIn = _local1.fadeIn.next;
_local1.easeOut_init();
__clearInterval(_local1._intervalIn);
_local1._intervalIn = __setInterval(_local1, "easeIn_init", _local1.delay);
}
}, easeIn_init:function () {
var _local1 = this;
__clearInterval(_local1._intervalIn);
_local1.timeIn = 0;
__clearInterval(_local1._intervalInLoop);
_local1._intervalInLoop = __setInterval(_local1, "easeIn", 25);
}, easeOut_init:function () {
var _local1 = this;
_local1.timeOut = 0;
__clearInterval(_local1._intervalOutLoop);
_local1._intervalOutLoop = __setInterval(_local1, "easeOut", 25);
}, easeIn:function (d) {
var _local1 = this;
var _local2 = d;
_local2 = Math.ease(_local1.timeIn++, 0, 100, _local1.steps, _local1.easingFunIn);
_local1.fadeIn._alpha = _local2;
if (_local1.fadeIn._alpha >= 100) {
__clearInterval(_local1._intervalInLoop);
_local1.fadeIn._alpha = 100;
_local1.fadeIn.viewed();
}
}, easeOut:function (d) {
var _local1 = this;
var _local2 = d;
_local2 = Math.ease(_local1.timeOut++, 0, 100, _local1.steps, _local1.easingFunOut);
_local1.fadeOut._alpha = 100 - _local2;
if (_local1.fadeOut._alpha <= 0) {
__clearInterval(_local1._intervalOutLoop);
_local1.fadeOut._alpha = 0;
}
}};
this._loadMovie = function (u) {
var _local1 = u;
_local1 = _local1.split("&").join("\x07");
this.loadMovie((((GOS.dLM + "?url=") + _local1) + "&fps=") + GOS.fps);
};
this.createEmptyMovieClip("__tape", 99);
this.loadXML = function (x) {
var _local1 = this;
var _local2 = x;
_local1.tickerTape.__roller.images = [];
_local1.placeLogo();
_local1.items = [];
_local1.tickerTape._visible = false;
if (_local1.rollerObject.items.order == "reversed") {
_local1.items.put = _local1.items.unshift;
} else {
_local1.items.put = _local1.items.push;
}
j = 100;
for (i in _local2) {
var a = _local2[i].items;
j++;
var _local3 = _local1.tickerTape.__roller.attachMovie("item", "i" + j, j, {init:a, _visible:false, atr:_local2[i].attributes});
_local1.items.put(_local3);
}
for (i in _local2) {
var a = _local2[i].items;
j++;
var _local3 = _local1.tickerTape.__roller.attachMovie("item", "i" + j, j, {init:a, _visible:false, atr:_local2[i].attributes});
_local1.items.put(_local3);
}
_local3._this = _local1;
_local3.onEnterFrame = function () {
this._this.loadNextImage();
this.onEnterFrame = null;
};
};
this.placeLogo = function () {
var _local1 = this;
if (_local1.backgroundObject.bars != "no") {
_local1.logo.createEmptyMovieClip("bars", 100);
_local1.logo.bars.lineStyle(1, 0, 100);
_local1.logo.bars.moveTo(0, 2.5);
_local1.logo.bars.lineTo(_local1._wd, 2.5);
_local1.logo.bars.moveTo(0, 62.5);
_local1.logo.bars.lineTo(_local1._wd, 62.5);
}
_local1.logo.createEmptyMovieClip("container", 10);
_local1.logo.container.createEmptyMovieClip("logo", 10);
if (GOS.dLM != undefined) {
_local1.logo.container.logo.loadMovie = _local1._loadMovie;
}
if (_local1.backgroundObject.file != undefined) {
_local1.logo.container.logo.loadMovie(_local1.backgroundObject.file);
_local1.logo.onEnterFrame = moveLogo;
}
_local1.logo.swapDepths(300);
_local1.tickerTape.swapDepths(400);
};
this.moveLogo = function () {
var _local1 = this;
var l = _local1.container.logo.getBytesLoaded();
var t = _local1.container.logo.getBytesTotal();
if ((t < 100) || (l < t)) {
} else {
_local1.onEnterFrame = null;
if (_local1._parent.backgroundObject.xposition == undefined) {
var xpos = "center";
var _local2 = 0;
} else {
a = _local1._parent.backgroundObject.xposition.split("+");
if (a.length == 2) {
var xpos = a[0];
var _local2 = parseInt(a[1], 10);
} else {
a = _local1._parent.backgroundObject.xposition.split("-");
var xpos = a[0];
var _local2 = -1 * parseInt(a[1], 10);
}
switch (xpos) {
case "left" :
case "right" :
break;
default :
xpos = "center";
}
if (isNaN(_local2)) {
var _local2 = 0;
}
}
if (_local1._parent.backgroundObject.yposition == undefined) {
var ypos = "center";
var _local3 = 0;
} else {
a = _local1._parent.backgroundObject.yposition.split("+");
if (a.length == 2) {
var ypos = a[0];
var _local3 = parseInt(a[1], 10);
} else {
a = _local1._parent.backgroundObject.yposition.split("-");
var ypos = a[0];
var _local3 = -1 * parseInt(a[1], 10);
}
switch (ypos) {
case "top" :
case "bottom" :
break;
default :
ypos = "center";
}
if (isNaN(_local3)) {
var _local3 = 0;
}
}
switch (xpos) {
case "left" :
_local1.container._x = _local2;
break;
case "center" :
_local1.container._x = ((_local1._parent.w / 2) - (_local1.container._width / 2)) + _local2;
break;
default :
_local1.container._x = (_local1._parent.w - _local1.container._width) + _local2;
}
switch (ypos) {
case "top" :
_local1.container._y = 4.5 + _local3;
return;
case "bottom" :
_local1.container._y = (60.5 + _local3) - _local1.container._height;
return;
case "center" :
_local1.container._y = (32.5 - (_local1.container._height / 2)) + _local3;
}
}
};
this.loadNextImage = function () {
var _local1 = this;
trace((_local1.tickerTape.__roller.images.length + "\t,\t") + _local1.tickerTape.__roller.images[0].length);
if (_local1.tickerTape.__roller.images[0].length == 0) {
_local1.lastItem.placeItems();
_local1.tickerTape.__roller.images.shift();
}
if (_local1.tickerTape.__roller.images.length == 0) {
var _local2 = 0;
for (i in _local1.items) {
if (_local1.items[i]._height > _local2) {
_local2 = _local1.items[i]._height;
}
}
var s = (_local1.items.length * _local2);
if (s < 80) {
_local2 = 80 / _local1.items.length;
}
_local1.placeItems(_local2);
_local1.tickerTape._visible = true;
} else {
var _local3 = _local1.tickerTape.__roller.images[0].shift();
_local1.lastItem = _local3.item;
_local1.lastImage = _local3.img;
_local1.lastImage.img.loadMovie(_local3.url);
_local1.lastTimer = getTimer() + 2000;
_local1.onEnterFrame = _local1.waitForItems;
}
};
this.waitForItems = function () {
var _local1 = this;
var _local3 = _local1.lastImage.img.getBytesLoaded();
var _local2 = _local1.lastImage.img.getBytesTotal();
if ((_local2 > 100) && (_local3 == _local2)) {
_local1.lastImage._parent.ld = true;
_local1.onEnterFrame = null;
_local1.loadNextImage();
} else if ((_local3 < 100) && (getTimer() > _local1.lastTimer)) {
_local1.lastImage._parent.ld = true;
_local1.lastImage.removeMovieClip();
_local1.onEnterFrame = null;
_local1.loadNextImage();
}
};
this.setFrame = function () {
var _local1 = this;
if (_local1.rollerObject.frame == undefined) {
_local1.rollerObject.frame = {};
}
var _local2 = ["top", "left", "bottom", "right"];
for (i in _local2) {
if (_local1.rollerObject.frame[_local2[i]] == undefined) {
_local1.rollerObject.frame[_local2[i]] = 0;
} else {
_local1.rollerObject.frame[_local2[i]] = parseInt(_local1.rollerObject.frame[_local2[i]], 10);
}
}
_local1.tickerTape._x = _local1.rollerObject.frame.left;
_local1.tickerTape._y = _local1.rollerObject.frame.top;
_local1.tickerTape.__mask._x = (_local1.tickerTape.__mask._y = 0);
_local1.tickerTape.__mask._width = (_local1._wd - _local1.rollerObject.frame.left) - _local1.rollerObject.frame.right;
_local1.tickerTape.__mask._height = (_local1._ht - _local1.rollerObject.frame.top) - _local1.rollerObject.frame.bottom;
_local1.frame = {x:_local1.tickerTape.__mask._x, y:_local1.tickerTape.__mask._y, w:_local1.tickerTape.__mask._width, h:_local1.tickerTape.__mask._height, t:_local1.tickerTape.__mask._y, l:_local1.tickerTape.__mask._x, b:_local1.tickerTape.__mask._y + _local1.tickerTape.__mask._height, r:_local1.tickerTape.__mask._x + _local1.tickerTape.__mask._width, cx:_local1.tickerTape.__mask._x + (_local1.tickerTape.__mask._width / 2), cy:_local1.tickerTape.__mask._y + (_local1.tickerTape.__mask._height / 2)};
};
this.getAlignment = function (s, dir) {
var _local2 = s;
if (dir == "h") {
var _local3 = 1;
var a = _local2.split("+");
if (a.length < 2) {
var a = _local2.split("-");
_local3 = -1;
}
switch (a[0]) {
case "left" :
case "right" :
case "center" :
var _a = a[0];
break;
default :
var _a = "right";
}
var _local1 = parseInt(a[1], 10);
if (isNaN(_local1)) {
_local1 = 0;
}
return({a:_a, d:_local3 * _local1});
}
var _local3 = 1;
var a = _local2.split("+");
if (a.length < 2) {
var a = _local2.split("-");
_local3 = -1;
}
switch (a[0]) {
case "top" :
case "bottom" :
case "center" :
var _a = a[0];
break;
default :
var _a = "center";
}
var _local1 = parseInt(a[1], 10);
if (isNaN(_local1)) {
_local1 = 0;
}
return({a:_a, d:_local3 * _local1});
};
this.setAlignment = function () {
var _local2 = this;
var _local1 = _local2.rollerObject.items.align.split(",");
switch (_local2.rollerObject.items.direction) {
case "horizontal" :
while (_local1.length < 2) {
_local1.unshift("");
}
break;
default :
if (_local1.length >= 2) {
break;
}
_local1.push("");
continue;
}
_local2.align = {h:_local2.getAlignment(_local1[0], "h"), v:_local2.getAlignment(_local1[1], "v")};
};
this.placeItems = function (h) {
var _local1 = this;
_local1.setFrame();
_local1.setAlignment();
if (_local1.rollerObject.items.spacing == undefined) {
_local1.spacing = {h:0, v:h};
} else {
var sp = parseInt(_local1.rollerObject.items.spacing, 10);
_local1.spacing = {h:(isNaN(sp) ? 0 : (sp)), v:(isNaN(sp) ? (h) : (sp))};
}
switch (_local1.rollerObject.items.direction) {
case "horizontal" :
var _local3 = 0;
i = 0;
while (i < _local1.items.length) {
_local1.items[i]._x = _local3;
_local3 = _local3 + (_local1.spacing.h + _local1.items[i]._width);
_local1.items[i]._y = 0;
i++;
}
_local1.slider = _local1.hslider;
break;
case "none" :
i = 0;
while (i < _local1.items.length) {
switch (_local1.align.h.a) {
case "left" :
_local1.items[i]._x = 0;
break;
case "center" :
_local1.items[i]._x = (-_local1.items[i]._width) / 2;
break;
default :
_local1.items[i]._x = -_local1.items[i]._width;
}
_local1.items[i]._y = 0;
i++;
}
_local1.slider = null;
break;
default :
var _local2 = 0;
var w = _local1.tickerTape.__roller._width;
i = 0;
while (i < _local1.items.length) {
switch (_local1.align.h.a) {
case "left" :
_local1.items[i]._x = 0;
break;
case "center" :
_local1.items[i]._x = (-_local1.items[i]._width) / 2;
break;
default :
_local1.items[i]._x = -_local1.items[i]._width;
}
_local1.items[i]._y = _local2;
_local2 = _local2 + (_local1.items[i]._height + _local1.spacing.v);
i++;
}
_local1.slider = _local1.vslider;
}
var w = _local1.tickerTape.__roller._width;
var h = _local1.tickerTape.__roller._height;
switch (_local1.align.h.a) {
case "left" :
_local1.tickerTape.__roller._x = _local1.frame.l + _local1.align.h.d;
break;
case "center" :
_local1.tickerTape.__roller._x = _local1.frame.cx + _local1.align.h.d;
break;
default :
_local1.tickerTape.__roller._x = _local1.frame.r + _local1.align.h.d;
}
switch (_local1.align.v.a) {
case "top" :
_local1.tickerTape.__roller._y = (_local1.frame.t + _local1.align.v.d) + (h / 2);
break;
case "bottom" :
_local1.tickerTape.__roller._y = (_local1.frame.b + _local1.align.v.d) - (h / 2);
break;
default :
_local1.tickerTape.__roller._y = _local1.frame.cy + _local1.align.v.d;
}
_local1.setUpSlider();
_local1.setUpFader();
var timeout = parseInt(_local1.rollerObject.timeout, 10);
if (isNaN(timeout)) {
timeout = 2000;
}
__setInterval(_local1, "transistion", timeout);
_local1.transistion();
_local1.rssLoaded();
};
this.setUpSlider = function () {
var _local1 = this;
_local1.slider.direction = (((_local1.rollerObject.slide.direction == "up") || (_local1.rollerObject.slide.direction == "right")) ? -1 : 1);
_local1.slider.easingFun = ((Math["ease" + _local1.rollerObject.slide.easing] == undefined) ? (Math.linearTween) : (Math["ease" + _local1.rollerObject.slide.easing]));
_local1.slider.duration = (isNaN(parseInt(_local1.rollerObject.slide.duration, 10)) ? 500 : (parseInt(_local1.rollerObject.slide.duration, 10)));
_local1.slider.endon = ((_local1.rollerObject.slide.endon == undefined) ? false : (_local1.rollerObject.slide.endon));
_local1.slider.items = _local1.items;
_local1.slider.roller = _local1.tickerTape.__roller;
_local1.slider.frame = _local1.frame;
_local1.slider.spacing = _local1.spacing;
_local1.slider.init();
};
this.setUpFader = function () {
var _local1 = this;
_local1.fader = _local1[_local1.rollerObject.fade.filter];
if (_local1.rollerObject.fade.easingIn == undefined) {
_local1.fader.easingFunIn = ((Math["ease" + _local1.rollerObject.fade.easing] == undefined) ? (Math.linearTween) : (Math["ease" + _local1.rollerObject.fade.easing]));
} else {
_local1.fader.easingFunIn = ((Math["ease" + _local1.rollerObject.fade.easingIn] == undefined) ? (Math.linearTween) : (Math["ease" + _local1.rollerObject.fade.easingIn]));
}
if (_local1.rollerObject.fade.easingOut == undefined) {
_local1.fader.easingFunOut = ((Math["ease" + _local1.rollerObject.fade.easing] == undefined) ? (Math.linearTween) : (Math["ease" + _local1.rollerObject.fade.easing]));
} else {
_local1.fader.easingFunOut = ((Math["ease" + _local1.rollerObject.fade.easingOut] == undefined) ? (Math.linearTween) : (Math["ease" + _local1.rollerObject.fade.easingOut]));
}
_local1.fader.duration = (isNaN(parseInt(_local1.rollerObject.fade.duration, 10)) ? 500 : (parseInt(_local1.rollerObject.fade.duration, 10)));
_local1.fader.delay = (isNaN(parseInt(_local1.rollerObject.fade.delay, 10)) ? 0 : (parseInt(_local1.rollerObject.fade.delay, 10)));
_local1.fader.items = _local1.items;
_local1.fader.roller = _local1.tickerTape.__roller;
_local1.fader.frame = _local1.frame;
_local1.fader.spacing = _local1.spacing;
_local1.fader.init();
};
this.transistion = function () {
this.slider.go();
this.fader.go();
};
this.onEnterFrame = function () {
GOS.fpsTuner.moveOn();
};
var x = new XML();
x.mc = this;
x.ignoreWhite = true;
x.getObject = function (ob, r) {
var _local1 = r;
var _local2 = ob;
var _local3 = this;
_local3.mc[_local2] = {};
for (i in _local1) {
if (_local1[i].firstChild) {
_local3.mc[_local2][_local1[i].nodeName] = _local1[i].firstChild.nodeValue;
} else {
_local3.mc[_local2][_local1[i].nodeName] = {};
for (j in _local1[i].attributes) {
_local3.mc[_local2][_local1[i].nodeName][j] = _local1[i].attributes[j];
}
}
}
};
x.getItem = function (r) {
var _local2 = r;
var _local3 = [];
for (i in _local2.childNodes) {
var _local1 = {};
switch (_local2.childNodes[i].nodeName) {
case "ang:textbox" :
_local1.type = "textbox";
break;
case "title" :
case "ang:text" :
_local1.type = "text";
break;
case "ang:image" :
_local1.type = "image";
break;
case "ang:bold" :
_local1.type = "bold";
break;
case "link" :
_local1.type = "link";
break;
case "vstats" :
_local1.type = "link";
break;
case "cstats" :
_local1.type = "link";
break;
case "id" :
_local1.type = "id";
}
_local1.attributes = _local2.childNodes[i].attributes;
_local1.value = _local2.childNodes[i].firstChild.nodeValue;
_local3.push(_local1);
}
return({items:_local3, attributes:_local2.attributes});
};
x.onLoad = function () {
var _local2 = this;
var isRss = false;
for (i in _local2.childNodes) {
if (_local2.childNodes[i].nodeName != "rss") {
continue;
}
isRss = true;
var rss = _local2.childNodes[i].childNodes;
for (j in rss) {
if (rss[j].nodeName != "channel") {
continue;
}
var _local1 = rss[j].childNodes;
var _local3 = [];
flag = false;
for (v in _local1) {
switch (_local1[v].nodeName) {
case "title" :
if (_local1[v].firstChild.nodeValue == "AdsNGames") {
flag = true;
} else {
flag = false;
}
break;
case "ang:image" :
_local2.logoFile = _local1[v].firstChild.nodeValue;
break;
case "ang:roller" :
_local2.getObject("rollerObject", _local1[v].childNodes);
break;
case "ang:background" :
_local2.getObject("backgroundObject", _local1[v].childNodes);
break;
case "item" :
_local3.unshift(_local2.getItem(_local1[v]));
}
}
if (flag) {
_local2.mc.loadXML(_local3);
return;
}
}
}
if (!isRss) {
_local2.mc.removeMovieClip();
}
};
this.onURLLoaded = function (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("dbannerRSS: " + GOS.dbannerRSS);
GOS.proxy.loadURL(GOS.dbannerRSS);
this.rssLoaded = function () {
this._visible = true;
_root.banner.unloadMovie();
};
Symbol 1693 MovieClip Frame 1
this._width = Stage.width + 10;
Symbol 1697 MovieClip Frame 1
stop();
this.nekst = "h2";
Symbol 1697 MovieClip Frame 2
this.nekst = "h3";
Symbol 1697 MovieClip Frame 3
this.nekst = "h1";
Symbol 1698 MovieClip Frame 1
easeOutQuint = function (t, b, c, d) {
var _local1 = t;
_local1 = (_local1 / d) - 1;
return((c * (((((_local1 * _local1) * _local1) * _local1) * _local1) + 1)) + b);
};
this.t = 0;
this.temp = 0;
this.onEnterFrame = function () {
var _local1 = this;
_local1._x = easeOutQuint(_local1.t++, -Stage.width, Stage.width + (_local1._width / 2), 20);
if (_local1.t == 20) {
_local1.t--;
_local1.temp++;
if (_local1.temp >= (_local1.t * 2)) {
_local1.t++;
_local1.temp = 0;
}
}
if (_local1.t >= 40) {
_local1.t = 0;
_local1.hasla.gotoAndStop(_local1.hasla.nekst);
}
};
Symbol 1699 MovieClip Frame 1
easeOutQuint = function (t, b, c, d) {
var _local1 = t;
_local1 = (_local1 / d) - 1;
return((c * (((((_local1 * _local1) * _local1) * _local1) * _local1) + 1)) + b);
};
this.t = 0;
this.temp = 0;
this.onEnterFrame = function () {
var _local1 = this;
_local1._x = easeOutQuint(_local1.t++, Stage.width + (_local1._width / 2), (((-Stage.width) / 2) - (_local1._width / 2)) + 30, 20);
if (_local1.t == 20) {
_local1.t--;
_local1.temp++;
if (_local1.temp >= (_local1.t * 2)) {
_local1.t++;
_local1.temp = 0;
}
}
if (_local1.t >= 40) {
_local1.t = 0;
_local1.hasla.gotoAndStop(_local1.hasla.nekst);
}
};
Symbol 1701 MovieClip Frame 1
this._width = Stage.width;
Symbol 1704 MovieClip Frame 1
this._x = Stage.width / 2;
Symbol 1707 MovieClip [default_banner] Frame 1
this.swapDepths(456);
this._x = 0;
this._y = 0;
this.onRelease = function () {
if (GOS.StateVars.onClickActive.state == true) {
GOS.pauseCauseFlag = "ad";
GOS.StateVars.Pause.state = true;
getURL ("http://adsngames.com", "_blank");
}
};
Symbol 1712 MovieClip Frame 1
this.onPress = function () {
if (GOS.offline) {
GOS.StateVars.Window.state = {class:"Alert", type:"alert", noButton:true, 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"};
return(undefined);
}
if (GOS.StateVars.Active.state) {
GOS.StateVars.MenuVisible.state = true;
return(undefined);
}
GOS.StateVars.Window.state = {class:"Alert", type:"info", noButton:true, UCase:false, title:"Game not conected", text:"GOS is inactive untill it connects to the server.<br>Whatch bulb icon on tasbar for GOS status"};
};
Symbol 1714 Button
on (press) {
GOS.StateVars.Pause.state = true;
}
Symbol 1715 Button
on (press) {
GOS.StateVars.Pause.state = false;
}
Symbol 1720 MovieClip Frame 1
stop();
GOS.StateVars.Active.addListener(this);
this.setState = function (login) {
if (login) {
this.gotoAndStop(3);
} else {
this.gotoAndStop(2);
}
};
Symbol 1723 Button
on (press) {
GOS.StateVars.Window.state = {class:"EmailFriend", title:GOS.Translation.label_emailFriend};
}
Symbol 1727 Button
on (release) {
getURL ((("http://adsngames.com/game/download/" + GOS.gid) + "/") + GOS.pid, "_blank");
}
Symbol 1728 MovieClip Frame 1
stop();
Symbol 1733 MovieClip Frame 1
GOS.StateVars.onClickActive.addListener(this);
this.setState = function (active) {
if (active) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(3);
}
};
stop();
Symbol 1734 MovieClip Frame 1
GOS.StateVars.Pause.addListener(this);
this.setState(GOS.StateVars.Pause.state);
this.setState = function (s) {
var _local1 = this;
if (s) {
_local1.ps._alpha = 60;
_local1.pl._alpha = 100;
_local1.ps.enabled = false;
_local1.pl.enabled = true;
} else {
_local1.ps._alpha = 100;
_local1.pl._alpha = 60;
_local1.ps.enabled = true;
_local1.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");
}
Instance of Symbol 1733 MovieClip in Symbol 1734 MovieClip Frame 1
on (press) {
GOS.StateVars.onClickActive.state = (GOS.StateVars.onClickActive.state ? false : true);
}
Symbol 1737 Button
on (release) {
if (GOS.StateVars.onClickActive.state == true) {
GOS.pauseCauseFlag = "ad";
GOS.StateVars.Pause.state = true;
getURL ("http://adsngames.com", "_blank");
}
}
Symbol 1739 MovieClip Frame 1
stop();
Symbol 1739 MovieClip Frame 2
GOS.StateVars.Active.state = true;
Symbol 1740 MovieClip Frame 1
function stateVar(s) {
var _local1 = this;
_local1.st = s;
_local1.addProperty("state", _local1.gs, _local1.ss);
_local1.enabled = true;
_local1.addProperty("enable", _local1.gen, _local1.sen);
AsBroadcaster.initialize(_local1);
}
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);
}
_root.commercial.unloadMovie();
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 = p.y - 65;
};
MovieClip.prototype.globalToLocal = function (p) {
p.y = p.y + 65;
this._globalToLocal(p);
};
MovieClip.prototype.hitTest = function () {
var _local1 = arguments;
var _local3 = this;
if (_local1[0]._x == undefined) {
var x = _local1[0];
var y = (_local1[1] + 65);
var f = _local1[2];
if (f == undefined) {
return(_local3._hitTest(x, y));
}
return(_local3._hitTest(x, y, f));
}
var _local2 = _local1[0];
var f = _local1[1];
if (f == undefined) {
return(_local3._hitTest(_local2));
}
return(_local3._hitTest(_local2, f));
};
MovieClip.prototype.__startDrag = MovieClip.prototype.startDrag;
MovieClip.prototype._startDrag = function () {
var _local1 = arguments;
this.__startDrag(_local1[0], _local1[1], _local1[2], _local1[3], _local1[4]);
};
MovieClip.prototype.startDrag = function () {
var _local1 = arguments;
var _local2 = this;
GOS.root.draggedMC = {mc:_local2, flag:_local1[0], x:_local2._xmouse, y:_local2._ymouse, l:_local1[1], t:_local1[2], r:_local1[3], b:_local1[4]};
_local2.__startDrag(_local1[0], _local1[1], _local1[2], _local1[3], _local1[4]);
};
MovieClip.prototype.__stopDrag = MovieClip.prototype.stopDrag;
MovieClip.prototype._stopDrag = function () {
this.__stopDrag();
if (GOS.root.draggedMC != null) {
var _local1 = {x:_root._xmouse - GOS.root.draggedMC.x, y:_root._ymouse - GOS.root.draggedMC.y};
GOS.root.draggedMC.mc._parent._globalToLocal(_local1);
GOS.root.draggedMC.mc._x = _local1.x;
GOS.root.draggedMC.mc._y = _local1.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 _local1 = this;
if (!_local1.enabled) {
} else {
_local1.st = s;
_local1.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 _local1 = n;
if (_local1 == undefined) {
_local1 = targetPath(mc);
}
this[_local1] = new stateVar(e, s);
this[_local1].addListener(mc);
return(_local1);
};
MovieClip.prototype.GOS_gamePauseController_pause = function () {
var _local1 = this;
if (_local1 == _level0._game.mainGame) {
GosDebug(_local1 + " paused");
GosDebug("onEnterFrame = " + _local1.onEnterFrame);
}
_local1.wasEnabled = _local1.enabled;
_local1.enabled = false;
_local1.isPaused = true;
_local1.__onEnterFrame = _local1.onEnterFrame;
_local1.__onMouseMove = _local1.onMouseMove;
_local1.onMouseMove = null;
_local1.__onMouseDown = _local1.onMouseDown;
_local1.onMouseDown = null;
_local1.__onMouseUp = _local1.onMouseUp;
_local1.onMouseUp = null;
_local1.__onKeyUp = _local1.onKeyUp;
_local1.onKeyUp = null;
_local1.__onKeyDown = _local1.onKeyDown;
_local1.onKeyDown = null;
_local1.__currentframe = _local1._currentframe;
if (GOS.root.draggedMC.mc == _local1) {
_local1.wasDragged = true;
_local1.stopDrag();
}
_local1.onEnterFrame = function () {
var _local1 = this;
_local1.onEnterFrame = null;
_local1.stop();
_local1.wasPlaying = _local1.__currentframe != _local1._currentframe;
};
};
MovieClip.prototype.GOS_gamePauseController_resume = function () {
var _local1 = this;
trace("-----------------");
trace("isPaused>\t\t" + _local1.isPaused);
trace("wasPlaying>\t" + _local1.wasPlaying);
if (_local1.isPaused) {
_local1.enabled = _local1.wasEnabled;
_local1.onEnterFrame = _local1.__onEnterFrame;
_local1.onMouseMove = _local1.__onMouseMove;
_local1.onMouseDown = _local1.__onMouseDown;
_local1.onKeyUp = _local1.__onKeyUp;
_local1.onKeyDown = _local1.__onKeyDown;
if (_local1.wasDragged) {
_local1.startDrag(GOS.root.draggedMC.flag, GOS.root.draggedMC.l, GOS.root.draggedMC.t, GOS.root.draggedMC.r, GOS.root.draggedMC.b);
}
_local1.wasDragged = false;
if (_local1.wasPlaying) {
_local1.play();
}
_local1.isPaused = false;
}
if (_local1 == _level0._game.mainGame) {
GosDebug(_local1 + " resumed");
GosDebug("onEnterFrame = " + _local1.onEnterFrame);
}
};
_global.__intervals = [];
_global.__setInterval = setInterval;
_global.__clearInterval = clearInterval;
_global.setInterval = function () {
var _local1 = arguments;
if (typeof(_local1[0]) == "function") {
var _local2 = {fun:_local1[0], time:_local1[1], obj:_local1[2], interval:__setInterval(_local1[0], _local1[1], _local1[2])};
__intervals.push(_local2);
} else {
var _local2 = {object:_local1[0], method:_local1[1], time:_local1[2], obj:_local1[3], interval:__setInterval(_local1[0], _local1[1], _local1[2], _local1[3])};
__intervals.push(_local2);
}
return(__intervals.length - 1);
};
_global.clearInterval = function (i) {
var _local1 = i;
if (__intervals[_local1] == null) {
} else {
__clearInterval(__intervals[_local1].interval);
__intervals[_local1] = null;
}
};
_global.pauseInterval = function (i) {
var _local1 = i;
if (__intervals[_local1] == null) {
} else {
__clearInterval(__intervals[_local1].interval);
__intervals[_local1].interval = null;
}
};
_global.resumeInterval = function (i) {
var _local1 = i;
if (__intervals[_local1] == null) {
} else if (__intervals[_local1].interval == null) {
if (__intervals[_local1].fun != undefined) {
__intervals[_local1].interval = __setInterval(__intervals[_local1].fun, __intervals[_local1].time, __intervals[_local1].obj);
} else {
__intervals[_local1].interval = __setInterval(__intervals[_local1].object, __intervals[_local1].method, __intervals[_local1].time, __intervals[_local1].obj);
}
}
};
_global.killAllIntervals = function () {
for (var _local1 in __intervals) {
clearInterval(_local1);
}
};
_global.pauseAllIntervals = function () {
for (var _local1 in __intervals) {
pauseInterval(_local1);
}
};
_global.resumeAllIntervals = function () {
for (var _local1 in __intervals) {
resumeInterval(_local1);
}
};
GOS_gamePauseController = function () {
GOS.StateVars.Pause.addListener(this);
this.listeners = [];
GosDebug("GOS_gamePauseController initialised");
};
GOS_gamePauseController.prototype = new Object();
MovieClip.prototype._addListener = function (mc) {
var _local1 = this;
if (_local1._listeners == undefined) {
_local1._listeners = [];
}
_local1._listeners[mc] = mc;
};
MovieClip.prototype._broadcastMessage = function (_callback) {
var _local1 = this;
var _local2 = _callback;
_local1[_local2]();
for (i in _local1._listeners) {
_local1._listeners[i]._broadcastMessage(_local2);
}
};
GOS_gamePauseController.prototype.addListener = function (mc) {
var _local1 = mc;
if (_local1._parent == _root) {
this.__root = _local1;
} else {
_local1._parent._addListener(_local1);
}
};
GOS_gamePauseController.prototype.broadcastMessage = function (_callback) {
this.__root._broadcastMessage(_callback);
};
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();
}
};
GOS_gamePauseController.prototype.setState;
TextField.prototype.snap = (MovieClip.prototype.snap = function () {
var _local2 = this;
var _local1 = {x:_local2._x, y:_local2._y};
_local2._parent._localToGlobal(_local1);
_local1.x = Math.round(_local1.x);
_local1.y = Math.round(_local1.y);
_local2._parent._globalToLocal(_local1);
_local2._x = _local1.x;
_local2._y = _local1.y;
});
_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 _local1 = k;
if (this._code[_local1] != undefined) {
return(this._code[_local1]);
}
return(_local1);
};
Key.changeAscii = function (k) {
if (this._ascii[k] != undefined) {
return(this._ascii[k]);
}
};
Key.isDown = function (k) {
var _local1 = k;
_local1 = this.changeCode(_local1);
return(this._Key.isDown(_local1));
};
Key.isToggled = function (k) {
var _local1 = k;
_local1 = this.changeCode(_local1);
return(this._Key.isToggled(_local1));
};
Key.getCode = function (fl) {
var _local1 = this;
if (fl == true) {
return(_local1._Key.getCode());
}
k = _local1._Key.getCode();
return(_local1.changeCode(k));
};
Key.getAscii = function (fl) {
var _local1 = this;
if (fl == true) {
return(_local1._Key.getAscii());
}
k = _local1.changeCode(_local1._Key.getCode());
return(_local1.changeAscii(k));
};
Key.change = function (_old, _new) {
var _local1 = this;
var _local2 = _local1._code[_old];
_local1._code[_old] = _local1._code[_new];
_local1._code[_new] = _local2;
};
GOS_WindowClientAreaClass = function () {
};
GOS_WindowClientAreaClass.prototype = new MovieClip();
GOS_WindowClientAreaClass.prototype.init = function () {
var _local1 = this;
_local1.__w_ = _local1._width;
_local1.__h_ = _local1._height;
_local1.window = _local1._parent;
_local1.client.init();
};
GOS_WindowClientAreaClass.prototype.onCreate = function () {
this.client.onCreate();
};
GOS_WindowClientAreaClass.prototype.hscroll = function () {
var _local2 = this;
var _local3 = _local2.val;
var d1 = _local2._parent.mask._width;
var d2 = _local2._parent.client.__w_;
var _local1 = d2 - d1;
if (_local1 < 0) {
_local1 = 0;
}
_local1 = (_local3 * _local1) / 100;
_local2._parent.client._x = (-Math.round(_local1)) + 2;
_local2._parent.client.snap();
};
GOS_WindowClientAreaClass.prototype.vscroll = function () {
var _local2 = this;
var _local3 = _local2.val;
var d1 = _local2._parent.mask._height;
var d2 = _local2._parent.client.__h_;
var _local1 = d2 - d1;
if (_local1 < 0) {
_local1 = 0;
}
_local1 = (_local3 * _local1) / 100;
_local2._parent.client._y = (-Math.round(_local1)) + 14;
_local2._parent.client.snap();
};
GOS_WindowClientAreaClass.prototype.onMove = function () {
this.snap();
};
GOS_WindowClientAreaClass.prototype.onClose = function () {
var _local1 = this;
if (_local1.client.onClose != undefined) {
_local1.client.onClose();
} else {
_local1.window._close();
}
};
GOS_WindowClientAreaClass.prototype.resizeTo = function (w, h) {
this.client.resizeTo(w, h);
};
GOS_WindowClientAreaClass.prototype._refresh = function () {
var _local1 = this;
_local1.__w_ = _local1._width;
_local1.__h_ = _local1._height;
_local1.window._refresh();
_local1._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 _local1 = this;
_local1._x = 0;
_local1._y = 0;
_local1.servOpened = false;
_local1.window = _local1._parent.window;
};
GOS_WindowClientContentClass.prototype._refresh = function () {
this._parent._refresh();
};
GOS_WindowClientContentClass.prototype.close = function () {
var _local1 = this;
_local1.serv.close();
_local1.serv.onClose();
_local1._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 _local1 = this;
_local1.serv = new gosServer({ip:GOS.servers.players.ip, port:GOS.servers.players.port, sid:GOS.session, module:((module == undefined) ? "auth" : (module))});
_local1.serv.addListener(_local1);
_local1.servOpened = true;
};
GOS_WindowClientContentClass.prototype.command = function (cmd, obj) {
var _local1 = obj;
if (_local1 == undefined) {
_local1 = {};
}
this.serv.command(cmd, _local1);
this._parent._parent.connecting._visible = true;
};
GOS_WindowClass = function () {
var _local1 = this;
_local1.mask._x = 2;
_local1.mask._y = 14;
_local1.client._x = 2;
_local1.client._y = 14;
if (_local1.io.minimized) {
_local1._visible = false;
_local1.mInt = __setInterval(_local1, "minimizeMe", 300);
}
if (_local1.io != undefined) {
if (_local1.io.title == undefined) {
_local1.title = _local1.io.args[0];
} else {
_local1.title = _local1.io.title;
}
}
_local1.addProperty("__width", _local1.gw, _local1.sw);
_local1.addProperty("__height", _local1.gh, _local1.sh);
_local1.tit.autoSize = true;
_local1.snap();
_local1.mb.onPress = function () {
this._parent.focus();
};
_local1.mb.useHandCursor = false;
_local1._max = true;
_local1.mask._visible = false;
var _local2 = _local1.client.attachMovie("APP_" + _local1.class, "client", 10, _local1.io);
if (_local2 == undefined) {
if (_local1.io.external == undefined) {
_local2 = _local1.client.attachMovie("APP_TextWindow", "client", 10, {text:"dupa"});
} else {
_local2 = _local1.client.attachMovie("APP_ExternalApp", "client", 10, _local1.io);
_local1.onEnterFrame = function () {
this.onEnterFrame = null;
this.client.onCreate();
};
}
}
_local2.__proto__ = GOS_WindowClientContentClass.prototype;
_local1.client._visible = false;
};
GOS_WindowClass.prototype = new MovieClip();
GOS_WindowClass.prototype.oldOEF = (GOS_WindowClass.prototype.onEnterFrame = function () {
var _local1 = this;
_local1.onEnterFrame = null;
_local1.client._visible = true;
_local1.client.onCreate();
if (_local1.client._unique) {
_local1.manager.saveUnique(_local1);
}
if (_local1.client._clientWidth == undefined) {
_local1.client._clientWidth = _local1._width;
}
if (_local1.client._clientHeight == undefined) {
_local1.client._clientHeight = _local1._height;
}
if (_local1.client._modal == undefined) {
_local1.client._modal = false;
}
_local1.resize(((_local1.client._clientWidth < 40) ? 40 : (_local1.client._clientWidth)), ((_local1.client._clientHeight < 35) ? 35 : (_local1.client._clientHeight)));
_local1.rc._visible = !_local1.client._modal;
_local1.client.init();
_local1.hs.update = _local1.client.hscroll;
_local1.vs.update = _local1.client.vscroll;
});
GOS_WindowClass.prototype.focus = function () {
this.manager.windowOnFocus(this);
};
GOS_WindowClass.prototype._focus = function () {
var _local1 = this;
_local1.tlb.gotoAndStop(1);
_local1.tmb.gotoAndStop(1);
_local1.trb.gotoAndStop(1);
};
GOS_WindowClass.prototype.blur = function () {
var _local1 = this;
_local1.tlb.gotoAndStop(2);
_local1.tmb.gotoAndStop(2);
_local1.trb.gotoAndStop(2);
};
GOS_WindowClass.prototype.minimizeMe = function () {
__clearInterval(this.mInt);
this.minimalise();
};
GOS_WindowClass.prototype.minimalise = function () {
var _local1 = this;
GOS.WindowsManager.minWin(_local1);
_local1._h = _local1.__height;
_local1._w = _local1.__width;
_local1.rc._visible = false;
_local1.resize(50, 11);
_local1._max = false;
_local1.focus();
_local1.client._visible = false;
_local1.hs._visible = false;
_local1.vs._visible = false;
};
GOS_WindowClass.prototype.maximalise = function () {
var _local1 = this;
_local1.rc._visible = !_local1.client._modal;
_local1.resize(_local1._w, _local1._h);
_local1._max = true;
_local1.focus();
_local1.client._visible = true;
_local1.client.onMove();
};
GOS_WindowClass.prototype.close = function () {
this.client.onClose();
};
GOS_WindowClass.prototype._close = function () {
var _local1 = this;
_local1.removeMovieClip();
_local1.manager.windowClose(_local1);
};
GOS_WindowClass.prototype._refresh = function () {
this.minWindow();
this.maxWindow();
};
GOS_WindowClass.prototype.startMove = function () {
var _local1 = this;
_local1.focus();
_local1.onMouseUp = _local1.stopMove;
_local1._startDrag();
};
GOS_WindowClass.prototype.stopMove = function () {
var _local1 = this;
_local1.onMouseUp = null;
_local1._stopDrag();
_local1.snap();
_local1.client.onMove();
};
GOS_WindowClass.prototype.resizing = function () {
var _local1 = this;
var _local3 = _local1._xmouse - _local1.rc.xm;
var _local2 = _local1._ymouse - _local1.rc.ym;
if (_local3 < 40) {
_local3 = 40;
}
if (_local2 < 35) {
_local2 = 35;
}
_local1.resize(_local3 + 3, _local2 + 3);
};
GOS_WindowClass.prototype.startResize = function () {
var _local1 = this;
_local1.focus();
Mouse.hide();
_local1.rc.xm = _local1.rc._xmouse;
_local1.rc.ym = _local1.rc._ymouse;
_local1._old_oef = _local1.onEnterFrame;
_local1.onEnterFrame = _local1.resizing;
_local1.onMouseUp = _local1.stopResize;
};
GOS_WindowClass.prototype.stopResize = function () {
var _local1 = this;
_local1.onMouseUp = null;
Mouse.show();
_local1.onEnterFrame = _local1._old_oef;
};
GOS_WindowClass.prototype.resize = function (w, h) {
var _local1 = this;
var _local2 = w;
var _local3 = h;
_local2 = Math.round(_local2);
_local3 = Math.round(_local3);
_local1.t._x = 0;
_local1.t._y = 0;
_local1.t.bd._width = _local2;
_local1.r._x = _local2;
_local1.r._y = 0;
_local1.r.bd._width = _local3;
_local1.b._x = 0;
_local1.b._y = _local3;
_local1.b.bd._width = _local2;
_local1.l._x = 0;
_local1.l._y = 0;
_local1.l.bd._width = _local3;
_local1.mb._x = -0.5;
_local1.mb._y = -0.5;
_local1.mb._height = _local3 + 1;
_local1.mb._width = _local2 + 1;
_local1.tl._x = 0;
_local1.tl._y = 0;
_local1.tr._x = _local2;
_local1.tr._y = 0;
_local1.bl._x = 0;
_local1.bl._y = _local3;
_local1.br._x = _local2;
_local1.br._y = _local3;
_local1.trb._x = _local2 - 10;
_local1.tmb._width = _local1.trb._x - 8;
_local1.tit.text = _local1.title;
while (_local1.tit._width > (_local2 - 25)) {
_local1.tit.text = (substring(_local1.tit.text, 0, _local1.tit.text.length - 4)) + "...";
}
_local1.rc._y = _local3 - 3;
_local1.rc._x = _local2 - 3;
_local1.___width = _local2;
_local1.___height = _local3;
_local1.vs._x = _local2;
_local1.vs._y = 15;
_local1.vs.dim = _local3 - 24;
_local1.xs._x = 5;
_local1.hs._y = _local3;
_local1.hs.dim = _local2 - 10;
if (_local1.client._fixed == undefined) {
_local1.hs._visible = _local1.client._width > _local2;
_local1.vs._visible = _local1.client._height > (_local3 - 9);
} else {
_local1.hs._visible = false;
_local1.vs._visible = false;
}
if (_local1.vs._visible) {
_local2 = _local2 - 5;
}
if (_local1.hs._visible) {
_local3 = _local3 - 7;
}
_local1.mask._width = _local2 - 2;
_local1.mask._height = _local3 - 14;
_local1.hs.update();
_local1.vs.update();
_local1.client.onMove();
_local1.client.resizeTo(_local2 + 2, _local3 - 14);
_local1.connecting.setBkg();
};
GOS_WindowClass.prototype.sw = function (w) {
var _local1 = this;
_local1.___width = w;
_local1.resize(w, _local1.___height);
};
GOS_WindowClass.prototype.gw = function () {
return(this.___width);
};
GOS_WindowClass.prototype.sh = function (h) {
var _local1 = this;
_local1.___height = h;
_local1.resize(_local1.___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 _local1 = this;
_local1.root = GOS.root;
_local1.windows = [];
_local1.uniques = [];
_local1.minimised = [];
_local1.lastWindow = {x:20, y:55};
GOS.StateVars.Window.addListener(_local1);
};
GOS_WindowsManagerClass.prototype = new Object();
GOS_WindowsManagerClass.prototype.setState = function (initObj) {
this.windowOpen(initObj.class, initObj);
};
GOS_WindowsManagerClass.prototype.openUnique = function (class) {
var _local1 = this;
var _local2 = class;
for (var _local3 in _local1.uniques) {
if (_local1.uniques[_local3].class == _local2) {
_local1.uniques[_local3].focus();
_local1.maxWin(_local1.uniques[_local3]);
return(true);
}
}
return(false);
};
GOS_WindowsManagerClass.prototype.saveUnique = function (win) {
this.uniques.push(win);
};
GOS_WindowsManagerClass.prototype.windowPlace = function (w) {
var _local1 = this;
if ((_local1.lastWindow.x + w._width) > _Stage.width) {
_local1.lastWindow.x = 30;
} else {
_local1.lastWindow.x = _local1.lastWindow.x + 10;
}
if ((_local1.lastWindow.y + w._height) > _Stage.height) {
_local1.lastWindow.y = 65;
} else {
_local1.lastWindow.y = _local1.lastWindow.y + 10;
}
var _local2 = {x:_local1.lastWindow.x, y:_local1.lastWindow.y};
GOS.root._globalToLocal(_local2);
return(_local2);
};
GOS_WindowsManagerClass.prototype.windowOpen = function (class, io) {
var _local1 = this;
if (_local1.openUnique(class)) {
} else if (_local1.windows.length > 200) {
} else {
_local1.windows[_local1.windows.length - 1].blur();
var _local2 = _local1.root.attachMovie("GOS_Window", "window" + _local1.windows.length, _local1.windows.length, {title:class, class:class, io:io, manager:_local1});
var _local3 = _local1.windowPlace(_local2);
_local2._x = _local3.x;
_local2._y = _local3.y;
_local1.windows.push(_local2);
_local1.reindexWindows();
return(_local2);
}
return(undefined);
};
GOS_WindowsManagerClass.prototype.reindexWindows = function () {
var _local2 = this;
var _local1 = 0;
while (_local1 < _local2.windows.length) {
_local2.windows[_local1].swapDepths(_local2.windows[_local1].getDepth() + 500);
_local1++;
}
_local1 = 0;
while (_local1 < _local2.windows.length) {
_local2.windows[_local1].swapDepths(_local1);
_local2.windows[_local1].blur();
_local1++;
}
_local2.windows[_local2.windows.length - 1]._focus();
};
GOS_WindowsManagerClass.prototype.windowClose = function (win) {
var _local2 = this;
for (var _local1 in _local2.uniques) {
if (_local2.uniques[_local1] == win) {
_local2.uniques.splice(_local1, 1);
break;
}
}
var _local1 = 0;
while (_local1 < _local2.windows.length) {
if (_local2.windows[_local1] == win) {
var _local3 = _local1;
}
_local1++;
}
_local2.windows.splice(_local3, 1);
_local2.reindexWindows();
};
GOS_WindowsManagerClass.prototype.windowOnFocus = function (win) {
var _local2 = this;
var _local1 = 0;
while (_local1 < _local2.windows.length) {
if (_local2.windows[_local1] == win) {
var _local3 = _local1;
}
_local1++;
}
_local2.windows.splice(_local3, 1);
_local2.windows.push(win);
_local2.reindexWindows();
};
GOS_WindowsManagerClass.prototype.minWin = function (win) {
var _local1 = this;
win.__isMinimised__ = true;
win._visible = false;
for (var _local2 in _local1.minimised) {
_local1.minimised[_local2].but.removeMovieClip();
}
_local1.minimised.push({win:win});
_local1.toolbarRefresh();
};
GOS_WindowsManagerClass.prototype.maxWin = function (win) {
var _local2 = this;
var _local3 = win;
if (_local3.__isMinimised__ != true) {
} else {
_local3.__isMinimised__ = false;
_local3._visible = true;
_local3.maximalise();
var a = [];
var _local1 = 0;
while (_local1 < _local2.minimised.length) {
_local2.minimised[_local1].but.removeMovieClip();
if (_local2.minimised[_local1].win != _local3) {
a.push(_local2.minimised[_local1]);
}
_local1++;
}
_local2.minimised = a;
_local2.toolbarRefresh();
}
};
GOS_WindowsManagerClass.prototype.toolbarRefresh = function () {
var _local3 = this;
var l = _local3.minimised.length;
var w = (((_Stage.width - GOS.root.ic._width) - GOS.root.panel._width) - 20);
w = w / l;
w = ((w > 80) ? 80 : (w));
var _local2 = 10;
var _local1 = 0;
while (_local1 < _local3.minimised.length) {
var ob = {wd:w - 1, win:_local3.minimised[_local1].win, txt:_local3.minimised[_local1].win.title, _x:(((_local2 - 10) * w) + GOS.root.ic._width) + 5, _y:1};
GOS.root.attachMovie("winmin", "winmin" + _local2, _local2, ob);
_local3.minimised[_local1].but = GOS.root["winmin" + _local2];
_local2++;
_local1++;
}
};
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 _local1 = url.split("#");
for (i in _local1) {
if (GOS[_local1[i]] != undefined) {
_local1[i] = GOS[_local1[i]].toString();
}
}
return(_local1.join(""));
};
GOS_MenuClass = function () {
var _local1 = this;
_local1.y = 0;
_local1.items = [];
_local1.addProperty("__width", _local1.gw, _local1.sw);
_local1.addProperty("__height", _local1.gh, _local1.sh);
GOS.menuController.menus.push(_local1);
_local1.addProperty("__visible", _local1.gv, _local1.sv);
_local1.submenuMask._visible = false;
_local1.submenuMask._alpha = 0;
_local1.submenuMask.onRollOut = function () {
var _local1 = this;
_local1._visible = false;
_local1._width = 0;
_local1._height = 0;
_local1._x = 0;
_local1._y = 0;
};
};
GOS_MenuClass.prototype = new MovieClip();
GOS_MenuClass.prototype.place = function () {
var _local1 = this;
var _local2 = _root;
var _min = 5;
var _max = ((_Stage.width - _local1.___width___) - 5);
var x = (_local2._xmouse - 4);
if (_local2._xmouse < _min) {
var x = _min;
}
if (_local2._xmouse > _max) {
var x = _max;
}
var _min = 5;
var _max = ((_Stage.height - _local1.___height___) - 5);
var y = (_local2._ymouse - 5);
if (_local2._ymouse < _min) {
var y = _min;
}
if (_local2._ymouse > _max) {
var y = _max;
}
var _local3 = {x:x, y:y};
_local1._parent._globalToLocal(_local3);
_local1._x = _local3.x;
_local1._y = _local3.y;
_local1.snap();
_local1.__visible = true;
_local1.parent.onRollOver = function () {
var _local1 = this;
_local1.itToBlur.onSubmenuHide();
delete _local1.onRollOver;
_local1.mn.hideMe();
};
};
GOS_MenuClass.prototype.placeSubmenu = function (it) {
var _local1 = this;
var _local3 = it;
_local1._x = (_local3._parent._x + _local3._parent.___width___) - 7;
var y = ((_local3._parent._y + _local3._y) + 2);
var _local2 = {x:0, y:y};
_local1._parent._localToGlobal(_local2);
if ((_local2.y + _local1.___height___) > (_Stage.height - 10)) {
_local2.y = (_Stage.height - _local1.___height___) - 10;
_local1._parent._globalToLocal(_local2);
_local1._y = _local2.y;
} else {
_local2.y = y;
_local1._y = y;
}
_local1.snap();
_local1.__visible = true;
_local1.submenuMask._width = _local3._parent._width + 10;
_local1.submenuMask._height = _local3._height + 8;
_local1.submenuMask._x = (-_local1.submenuMask._width) + 10;
_local1.submenuMask._y = -8 + (y - _local2.y);
_local1.submenuMask._visible = true;
_local1.parent.onRollOver = function () {
var _local1 = this;
_local1.itToBlur.onSubmenuHide();
delete _local1.onRollOver;
_local1.mn.hideMe();
};
};
GOS_MenuClass.prototype.hideMe = function () {
var _local1 = this;
_local1.__visible = false;
if (_local1.mn != undefined) {
_local1.mn.hideMe();
}
};
GOS_MenuClass.prototype.streachItems = function () {
var _local2 = this;
_local2.__height = 0;
var _local1 = 0;
while (_local1 < _local2.items.length) {
_local2.items[_local1].__width = _local2.__width;
_local2.__height = _local2.__height + _local2.items[_local1].height;
_local1++;
}
};
GOS_MenuClass.prototype.addItem = function (n) {
var _local1 = this;
var _local3 = n;
if (isNaN(_local1.y)) {
_local1.y = 0;
}
switch (_local3.nodeName) {
case "Menu" :
_local1.mn = GOS.menuController.loadMenu(_local3.childNodes);
_local1.mn.__visible = false;
_local1.mn.parent = _local1;
var _local2 = _local1.attachMovie("GOS_MenuSubmenu", "i" + _local1.items.length, _local1.items.length + 1000, {_x:0, _y:_local1.y, _attributes:_local3.attributes});
_local2.mn = _local1.mn;
_local1.items.push(_local2);
_local2.height = ((_local2.height == undefined) ? 0 : (_local2.height));
_local1.y = _local1.y + _local2.height;
if (_local1.__width < _local2.__width) {
_local1.__width = _local2.__width;
}
_local1.streachItems();
return;
default :
var _local2 = _local1.attachMovie("GOS_Menu" + _local3.nodeName, "i" + _local1.items.length, _local1.items.length + 10, {_x:0, _y:_local1.y, _attributes:_local3.attributes, _childNodes:_local3.childNodes});
_local1.items.push(_local2);
_local2.height = ((_local2.height == undefined) ? 0 : (_local2.height));
_local1.y = _local1.y + _local2.height;
if (_local1.__width < _local2.__width) {
_local1.__width = _local2.__width;
}
_local1.streachItems();
}
};
GOS_MenuClass.prototype.resize = function (w, h) {
var _local1 = this;
var _local2 = h;
var _local3 = w;
_local1.t._x = 0;
_local1.t._y = 0;
_local1.t.bd._width = _local3;
_local1.r._x = _local3;
_local1.r._y = 0;
_local1.r.bd._width = _local2;
_local1.b._x = 0;
_local1.b._y = _local2;
_local1.b.bd._width = _local3;
_local1.l._x = 0;
_local1.l._y = 0;
_local1.l.bd._width = _local2;
_local1.mb._x = -1;
_local1.mb._y = 0;
_local1.mb._height = _local2;
_local1.mb._width = _local3 + 2;
_local1.tl._x = 0;
_local1.tl._y = 0;
_local1.tr._x = _local3;
_local1.tr._y = 0;
_local1.bl._x = 0;
_local1.bl._y = _local2;
_local1.br._x = _local3;
_local1.br._y = _local2;
};
GOS_MenuClass.prototype.sw = function (w) {
var _local1 = this;
_local1.___width = w;
_local1.resize(w, _local1.___height);
};
GOS_MenuClass.prototype.gw = function () {
return((isNaN(this.___width) ? 0 : (this.___width)));
};
GOS_MenuClass.prototype.sh = function (h) {
var _local1 = this;
_local1.___height = h;
_local1.resize(_local1.___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 _local1 = v;
var _local2 = this;
_local2._visible = _local1;
_local2._xscale = (_local1 ? 100 : 0);
_local2._yscale = (_local1 ? 100 : 0);
};
Object.registerClass("GOS_Menu", GOS_MenuClass);
GOS_menuController = function () {
var _local1 = this;
GOS.root.gosHitTest._alpha = 0;
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(_local1);
_local1._loaded_ = false;
_local1.menus = [];
};
GOS_menuController.prototype = new Object();
GOS_menuController.prototype.setState = function (s) {
var _local1 = this;
GOS.root.gosHitTest._visible = s;
if (s) {
var _local3 = {x:0, y:0};
GOS.root._globalToLocal(_local3);
GOS.root.gosHitTest._x = _local3.x;
GOS.root.gosHitTest._y = _local3.y;
if (_local1._loaded_) {
_local1.mn.place();
} else {
_local1.mn = _local1.loadMenu(GOS.Menu.childNodes);
_local1.mn.place();
_local1._loaded_ = true;
}
} else {
var _local3 = {x:0, y:50000};
if (!Mouse.visible) {
Mouse.systemMouse.hide();
}
GOS.root._globalToLocal(_local3);
GOS.root.gosHitTest._x = _local3.x;
GOS.root.gosHitTest._y = _local3.y;
for (var _local2 in _local1.menus) {
_local1.menus[_local2].__visible = false;
}
}
};
GOS_menuController.prototype.loadMenu = function (n) {
var _local3 = n;
var _local2 = GOS.root.attachMovie("GOS_Menu", "mn" + this.menus.length, this.menus.length + 1000);
var _local1 = 0;
while (_local1 < _local3.length) {
_local2.addItem(_local3[_local1]);
_local1++;
}
_local2.___height___ = _local2._height;
_local2.___width___ = _local2._width;
return(_local2);
};
GOS_MenuXMLClass = function (_xml) {
var _local1 = this;
super();
_local1.ignoreWhite = true;
_local1.parseXML(_xml);
return(_local1);
};
GOS_MenuXMLClass.prototype = new XML();
_global.adsServer = function () {
var _local1 = this;
_local1.ip = GOS.servers.players.ip;
_local1.port = GOS.servers.players.port;
_local1.module = "ads";
_local1.sid = GOS.session;
_local1.queue = [];
_local1.connected = false;
_local1.connecting = false;
};
adsServer.prototype = new GosXMLSocket();
adsServer.prototype.onRecieved = function (cmd, params) {
var _local1 = params;
switch (cmd) {
case "T" :
GOS.cookie.data.lastTipObj = {tip:Math.floor(_local1.id), time:new Date().getTime()};
GOS.cookie.flush;
if (_local1.tip && (_local1.tip.length > 5)) {
GOS.StateVars.Window.state = {class:"Alert", type:"info", UCase:false, title:GOS.Translation.common_didYouKnow, text:_local1.tip};
}
return;
case "Q" :
if (_local1.question && (_local1.question.length > 5)) {
GOS.StateVars.Window.state = {class:"Poll", title:GOS.Translation.common_poll, text:_local1.question, id:_local1.id};
}
return;
case "V" :
trace("AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA");
trace((this.sid + "\t") + GOS.session);
trace("AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA");
}
};
this.onKeyDown = function () {
switch (Key.getCode()) {
case 33 :
GOS.StateVars.Volume.state = GOS.StateVars.Volume.state + 1;
return;
case 34 :
GOS.StateVars.Volume.state = GOS.StateVars.Volume.state - 1;
return;
case 19 :
GOS.StateVars.Pause.state = !GOS.StateVars.Pause.state;
return;
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);
}
return(false);
};
API.prototype.getGameVariable = function (_var) {
if (GOS.cookie != undefined) {
return(GOS.cookie.data.gameData[GOS.gid][_var]);
}
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 _local1 = variable_name.split(".");
switch (_local1[0]) {
case "_root" :
_local1[0] = "_global[\"_x1x2x3x4\"]";
break;
case "_level0" :
_local1[0] = "_global[\"_x1x2x3x4x5x6\"]";
}
GOS.userScoreVariable = _local1.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 _local1 = b;
var _local2 = a;
if ((_local2 == undefined) && (_local1 != undefined)) {
return(_local1);
}
if ((_local1 == undefined) && (_local2 != undefined)) {
return(_local2);
}
if ((_local2 == undefined) && (_local1 == undefined)) {
return(0);
}
return(Math.max(_local2, _local1));
};
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 _local1 = this;
obj.onMouseMove = _local1.onMouseMove;
_local1.visible = true;
_local1.systemMouse = Mouse;
AsBroadcaster.initialize(_local1);
};
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 _local1 = _root;
if ((this._hitTest(_local1._xmouse, _local1._ymouse, true) || (_local1._ymouse < 65)) || (GOS.StateVars.Pause.state)) {
Mouse.systemMouse.show();
} else if (!Mouse.visible) {
Mouse.systemMouse.hide();
}
};
GosMouse.prototype.setState = function (s) {
this.onMouseMove();
};
_global.Mouse = new GosMouse(this);
GOS.StateVars.Pause.addListener(_global.Mouse);
this.swapDepths(15000);
_root.clear();
_global.__gos = this;
GOS.root = this;
GOS.StateVars = {Active:new stateVar(GOS.online == true), Pause:new stateVar(false), MenuVisible:new stateVar(false), Window:new stateVar(null), Redirect:new stateVar(null), LoggedIn:new stateVar(false), Score:new stateVar({score:0, topup:true}), onClickActive:new stateVar(true)};
GOS.gamePauseController = new GOS_gamePauseController();
GOS.menuController = new GOS_menuController();
GOS.WindowsManager = new GOS_WindowsManagerClass();
GOS.RedirectController = new GOS_RedirectClass();
GOS.StateVars.Pause.addListener(_root.gamePaused);
GOS.API = new API();
this.disable = function () {
GOS.StateVars.Active.state = false;
_root.dbanner.unloadMovie();
};
this.initiate = function () {
var _local3 = this;
_local3.GOS_fonts.gotoAndStop(2);
(GOS.StateVars.isPublisherUrl = new stateVar(GOS.variables.publisherUrl.length > 10));
(GOS.StateVars.isProviderUrl = new stateVar(GOS.variables.providerUrl.length > 10));
(GOS.StateVars.isAdvertiserUrl = new stateVar(GOS.variables.advertiserUrl.length > 10));
(GOS.StateVars.isCredits = new stateVar(GOS.variables.credits.length > 3));
(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 _local1 = GOS.Dictionary[i].attributes;
for (j in _local1) {
GOS.Translation[j] = _local1[j];
}
break;
}
}
var _local2 = 5000;
for (i in GOS.Scripts) {
if (GOS.Scripts[i].nodeName == "Script") {
var _local1 = GOS.Scripts[i].attributes;
if (_local1.domain != undefined) {
System.security.allowDomain(_local1.domain);
}
_local3.createEmptyMovieClip("script" + _local2, _local2);
_local3["script" + _local2].loadMovie(_local1.url);
_local2++;
}
}
for (i in GOS.warnings) {
GOS.StateVars.Window.state = {class:"Alert", type:"alert", minimized:true, UCase:false, title:GOS.Translation["warningTitle_" + GOS.warnings[i]], text:GOS.Translation["warningBody_" + GOS.warnings[i]]};
}
_local3.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 _local1 = GOS.cookie.data.lastQuestion;
if (_local1 == undefined) {
_local1 = 0;
}
if ((new Date().getTime() - _local1) > 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);
}
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};
}
_root.dbanner.loadFiles();
};
this.checkActivation = function () {
var _local1 = this;
if (GOS.offline) {
_local1.disable();
clearInterval(_local1.aint);
} else if (GOS.online) {
_local1.initiate();
clearInterval(_local1.aint);
} else if (_local1.aint == undefined) {
_local1.aint = setInterval(_local1, "checkActivation", 1000);
}
};
this.checkActivation();
this._x = 0;
this._y = _Stage.height - 22;
this.bkg._width = _Stage.width + 5;
this.txt_white._x = _Stage.width / 2;
this.panel._x = _Stage.width;
Symbol 1748 MovieClip Frame 1
this.pos = {common_blockAds:{x:_Stage.width - 65, y:_Stage.height - 115}, common_fillPoll:{x:_Stage.width - 80, y:40}, common_userPause:{x:_Stage.width - 3, y:_Stage.height - 115}};
this._x = _stage.width - 10;
this.txt = {common_blockAds:"use taskbar MOUSE button to block ad-clicks", common_fillPoll:"fill in above poll to continue", common_userPause:"use taskbar PLAY button resume game"};
this._visible = false;
this.toggle = function (cause, dir) {
var _local1 = this;
var _local2 = cause;
_local1._y = _local1.pos[_local2].y;
_local1._x = _local1.pos[_local2].x;
_local1._visible = _local2 != undefined;
if (_local2 == undefined) {
} else {
_local2 = ((GOS.Translation[_local2] == undefined) ? (_local1.txt[_local2]) : (GOS.Translation[_local2]));
_local1.arrow.gotoAndStop(dir);
_local1.causeText.autoSize = true;
_local1.causeText.text = _local2;
_local1.causeText._x = (-_local1.causeText._width) - 7;
_local1.body._width = _local1.causeText._width - 5;
}
};
Symbol 1750 MovieClip Frame 1
this.onPress = function () {
GOS.StateVars.Pause.state = false;
};
this.onMouseDown = function () {
};
this.useHandCursor = false;
this.swapDepths(400);
this.bkg._width = _Stage.width;
this.bkg._height = _Stage.height - 65;
this.bkg._x = 0;
this.bkg._y = 0;
this._x = 0;
this._y = 55;
this._visible = false;
this.pauseText.autoSize = true;
this.pauseText._y = ((_Stage.height - 85) / 2) + 20;
this.pollTip._y = 5;
this.pollTip._x = _Stage.width - 10;
this.ps._x = _Stage.width / 2;
this.ps._y = ((_Stage.height - 85) / 2) - 20;
this.setState = function (s) {
var _local1 = this;
_local1.pauseText.text = ((GOS.Translation.common_gamePaused == undefined) ? "GAME PAUSED" : (GOS.Translation.common_gamePaused));
switch (GOS.pauseCauseFlag) {
case "poll" :
_local1.tip.toggle("common_fillPoll", "up");
break;
case "ad" :
_local1.tip.toggle("common_blockAds", "down");
break;
default :
_local1.tip.toggle("common_userPause", "down");
}
GOS.pauseCauseFlag = "";
_local1.pauseText._x = (_Stage.width / 2) - (_local1.pauseText._width / 2);
_local1.logo._x = _Stage.width / 2;
_local1.logo._y = (_local1.pauseText._y - 10) - (_local1.logo._height / 2);
_local1._visible = s;
};
Symbol 20000 MovieClip Frame 1
GOS.gamePauseController.addListener(this._parent);
this.unloadMovie();
Symbol 20013 MovieClip [plane1] Frame 1
this.onEnterFrame = function () {
var _local1 = _parent;
var _local2 = this;
_local2._x = _local2._x + ((_local2._xscale / 100) * 4);
_local2.distance = _local2.distance + 4;
if (_local2.distance > (Stage.width + 100)) {
i = 0;
while (i < _local1.planes.length) {
if (_local1.planes[i] == _local2) {
_local1.planes.splice(i, 1);
break;
}
i++;
}
removeMovieClip(_local2);
}
if (random(50) == 1) {
newBomb = _local1.attachMovie("bomb1", "bomb" + (_local1.depth++), _local1.depth);
newBomb._x = _local2._x;
newBomb._y = _local2._y;
_local1.bombs.push(newBomb);
newBomb.onEnterFrame = function () {
var _local1 = this;
_local1._y = _local1._y + 4;
if (_local1.hitTest(_parent.tank.hit)) {
_parent.tank_hp--;
}
if (_local1._y > (Stage.height - 30)) {
_local1.play();
_local1.onEnterFrame = null;
}
};
}
};
stop();
Symbol 20013 MovieClip [plane1] Frame 14
i = 0;
while (i < _parent.planes.length) {
if (_parent.planes[i] == this) {
_parent.planes.splice(i, 1);
break;
}
i++;
}
_parent.pointen = _parent.pointen + 100;
_parent.enemiesleft--;
removeMovieClip(this);
Symbol 20030 MovieClip Frame 1
stop();
this.id = "doubleshoot";
Symbol 20030 MovieClip Frame 2
this.id = "healthpack";
Symbol 20030 MovieClip Frame 3
this.id = "bulletproof";
Symbol 20030 MovieClip Frame 4
this.id = "nuclear strike";
Symbol 20030 MovieClip Frame 5
this.id = "laserbox";
Symbol 20030 MovieClip Frame 16
this.removeMovieClip();
Symbol 20045 MovieClip [kasztanokopter] Frame 1
this.speed = 3;
this.onEnterFrame = function () {
var _local1 = _parent;
var _local2 = this;
_local2._x = _local2._x + ((_local2._xscale / 100) * _local2.speed);
_local2.distance = _local2.distance + _local2.speed;
if (_local2.distance > (Stage.width + 100)) {
i = 0;
while (i < _local1.planes.length) {
if (_local1.planes[i] == _local2) {
_local1.planes.splice(i, 1);
break;
}
i++;
}
removeMovieClip(_local2);
}
if ((random(100) == 5) && (bonus._x != -10000)) {
_local2.dropBonus();
}
};
stop();
function dropBonus() {
var _local1 = _parent;
newBonus = _local1.attachMovie(bonus.id, bonus.id + (_local1.depth++), _local1.depth);
newBonus._x = this._x;
newBonus._y = this._y + 10.4;
_local1.planes.push(newBonus);
bonus._x = -10000;
}
bonus.gotoAndStop(random(bonus._totalframes - 11) + 1);
Symbol 20045 MovieClip [kasztanokopter] Frame 2
play();
if ((bonus.id == "nuclear strike") && (bonus._x != -10000)) {
this.dropBonus();
newBonus.play();
} else {
bonus.gotoAndPlay(bonus._totalframes - 10);
}
Symbol 20045 MovieClip [kasztanokopter] Frame 13
i = 0;
while (i < _parent.planes.length) {
if (_parent.planes[i] == this) {
_parent.planes.splice(i, 1);
break;
}
i++;
}
_parent.pointen = _parent.pointen + 50;
_parent.enemiesleft--;
removeMovieClip(this);
Symbol 20047 MovieClip [bomb1] Frame 1
stop();
Symbol 20047 MovieClip [bomb1] Frame 12
i = 0;
while (i < _parent.bombs.length) {
if (_parent.bombs[i] == this) {
_parent.bombs.splice(i, 1);
break;
}
i++;
}
this.removeMovieClip();
Symbol 20055 MovieClip [f16] Frame 1
stop();
this.onEnterFrame = function () {
var _local1 = _parent;
var _local2 = this;
_local2._x = _local2._x + ((_local2._xscale / 100) * 6);
_local2.distance = _local2.distance + 6;
if (_local2.distance > (Stage.width + 100)) {
i = 0;
while (i < _local1.planes.length) {
if (_local1.planes[i] == _local2) {
_local1.planes.splice(i, 1);
break;
}
i++;
}
removeMovieClip(_local2);
}
};
Symbol 20055 MovieClip [f16] Frame 14
i = 0;
while (i < _parent.planes.length) {
if (_parent.planes[i] == this) {
_parent.planes.splice(i, 1);
break;
}
i++;
}
_parent.pointen = _parent.pointen + 50;
_parent.enemiesleft--;
removeMovieClip(this);
Symbol 20060 MovieClip [rakieta] Frame 1
stop();
this.onEnterFrame = function () {
var _local1 = this;
_local1._y = _local1._y - (8 * Math.cos(_local1._rotation * (Math.PI/180)));
_local1._x = _local1._x + (8 * Math.sin(_local1._rotation * (Math.PI/180)));
if (_local1.hitTest(_parent.tank.hit)) {
_parent.tank_hp--;
}
if (_local1._y > (Stage.height - 20)) {
_local1.play();
_local1.onEnterFrame = null;
}
};
Symbol 20060 MovieClip [rakieta] Frame 12
this.removeMovieClip();
Symbol 20063 MovieClip Frame 4
stop();
Symbol 20065 MovieClip [apache] Frame 1
function shooted() {
eff.play();
this.hp--;
}
stop();
if (this.hp == undefined) {
this.hp = 4;
}
onEnterFrame = function () {
var _local1 = _parent;
var _local2 = this;
_local2._x = _local2._x + ((_local2._xscale / 100) * 4);
if ((random(20) == 4) && (_local2._currentframe < 6)) {
_local2.gotoAndPlay(16);
}
_local2.distance = _local2.distance + 2;
if (_local2.distance > (Stage.width + 100)) {
i = 0;
while (i < _local1.planes.length) {
if (_local1.planes[i] == _local2) {
_local1.planes.splice(i, 1);
break;
}
i++;
}
removeMovieClip(_local2);
}
if ((_local2.hp < 1) && (_local2._currentframe < 3)) {
_local2.gotoAndPlay(3);
}
};
Symbol 20065 MovieClip [apache] Frame 2
this.prevFrame();
Symbol 20065 MovieClip [apache] Frame 3
this.onEnterFrame = null;
this.play();
Symbol 20065 MovieClip [apache] Frame 12
i = 0;
while (i < _parent.planes.length) {
if (_parent.planes[i] == this) {
_parent.planes.splice(i, 1);
break;
}
i++;
}
_parent.pointen = _parent.pointen + 250;
_parent.enemiesleft--;
removeMovieClip(this);
Symbol 20065 MovieClip [apache] Frame 26
i = 0;
while (i < 3) {
newRocket = _parent.attachMovie("rakieta", "rakieta" + (_parent.depth++), _parent.depth);
newRocket._x = this._x + ((40 * (-this._xscale)) / 100);
newRocket._y = this._y + 13;
newRocket._rotation = ((140 + random(20)) * this._xscale) / 100;
i++;
}
Symbol 20067 MovieClip [doubleshoot] Frame 1
stop();
this.onEnterFrame = function () {
var _local1 = _parent;
var _local2 = this;
_local2._y = _local2._y + 3;
if (_local2._y > (Stage.height - 30)) {
i = 0;
while (i < _local1.planes.length) {
if (_local1.planes[i] == _local2) {
_local1.planes.splice(i, 1);
break;
}
i++;
}
_local2.play();
}
if (_local2.hitTest(_local1.tank)) {
_local1.bonus_snd.start(0, 0);
_local1.double = true;
_local2.removeMovieClip();
}
};
Symbol 20067 MovieClip [doubleshoot] Frame 9
this.removeMovieClip();
Symbol 20068 MovieClip [bulletproof] Frame 1
stop();
this.onEnterFrame = function () {
var _local1 = _parent;
var _local2 = this;
_local2._y = _local2._y + 3;
if (_local2._y > (Stage.height - 30)) {
i = 0;
while (i < _local1.planes.length) {
if (_local1.planes[i] == _local2) {
_local1.planes.splice(i, 1);
break;
}
i++;
}
_local2.play();
}
if (_local2.hitTest(_local1.tank)) {
_local1.bonus_snd.start(0, 0);
_local1.tank.gotoAndPlay("bulletproof");
_local2.removeMovieClip();
}
};
Symbol 20068 MovieClip [bulletproof] Frame 9
this.removeMovieClip();
Symbol 20069 MovieClip [healthpack] Frame 1
stop();
this.onEnterFrame = function () {
var _local1 = _parent;
var _local2 = this;
_local2._y = _local2._y + 3;
if (_local2._y > (Stage.height - 30)) {
i = 0;
while (i < _local1.planes.length) {
if (_local1.planes[i] == _local2) {
_local1.planes.splice(i, 1);
break;
}
i++;
}
_local2.play();
}
if (_local2.hitTest(_local1.tank)) {
_local1.bonus_snd.start(0, 0);
((_local1.tank_hp <= 80) ? ((_local1.tank_hp = _local1.tank_hp + 20)) : ((_local1.tank_hp = 100)));
_local2.removeMovieClip();
}
};
Symbol 20069 MovieClip [healthpack] Frame 9
this.removeMovieClip();
Symbol 20079 MovieClip [nc_missle] Frame 72
this.onEnterFrame = function () {
var _local1 = _parent;
var _local2 = this;
if (_local2.hit_.hitTest(_local1.tank)) {
_local1.tank_hp = _local1.tank_hp - 3;
}
i = 0;
while (i < _local1.planes.length) {
if (_local2.hit_.hitTest(_local1.planes[i])) {
_local1.planes[i].play();
_local1.planes[i].shooted();
}
i++;
}
i = 0;
while (i < _local1.bombs.length) {
if (_local2.hit_.hitTest(_local1.bombs[i])) {
_local1.bombs[i].play();
_local1.bombs.splice(i, 1);
}
i++;
}
};
Symbol 20079 MovieClip [nc_missle] Frame 97
this.removeMovieClip();
Symbol 20081 MovieClip [nuclear strike] Frame 1
stop();
this.onEnterFrame = function () {
var _local1 = _parent;
var _local2 = this;
_local2._y = _local2._y + 3;
if (_local2._y > (Stage.height - 30)) {
i = 0;
while (i < _local1.planes.length) {
if (_local1.planes[i] == _local2) {
_local1.planes.splice(i, 1);
break;
}
i++;
}
_local2.play();
}
if (_local2.hitTest(_local1.tank)) {
_local1.nuclear = true;
_local1.bonus_snd.start(0, 0);
_local2.removeMovieClip();
}
};
Symbol 20081 MovieClip [nuclear strike] Frame 2
this.onEnterFrame = function () {
var _local1 = _parent;
var _local2 = this;
if (_local2.hit_.hitTest(_local1.tank)) {
_local1.tank_hp = _local1.tank_hp - 3;
}
i = 0;
while (i < _local1.planes.length) {
if (_local2.hit_.hitTest(_local1.planes[i])) {
_local1.planes[j].play();
_local1.planes[j].shooted();
}
i++;
}
i = 0;
while (i < _local1.bombs.length) {
if (_local2.hit_.hitTest(_local1.bombs[i])) {
_local1.bombs[j].play();
_local1.bombs.splice(j, 1);
}
i++;
}
};
Symbol 20081 MovieClip [nuclear strike] Frame 14
this.removeMovieClip();
Symbol 20083 MovieClip [fadetoblack] Frame 1
stop();
Symbol 20083 MovieClip [fadetoblack] Frame 72
_parent.gotoAndStop("looser");
Symbol 20086 MovieClip [laser] Frame 1
gotoAndPlay (5);
Symbol 20086 MovieClip [laser] Frame 99
gotoAndPlay (5);
Symbol 20088 MovieClip [laserbox] Frame 1
stop();
this.onEnterFrame = function () {
var _local1 = _parent;
var _local2 = this;
_local2._y = _local2._y + 3;
if (_local2._y > (Stage.height - 30)) {
i = 0;
while (i < _local1.planes.length) {
if (_local1.planes[i] == _local2) {
_local1.planes.splice(i, 1);
break;
}
i++;
}
_local2.play();
}
if (_local2.hitTest(_local1.tank)) {
_local1.laser = true;
_local1.laserAmmo = 100;
_local1.laserCounter.alphaTo(100);
_local1.bonus_snd.start(0, 0);
_local1.laserCounter.onEnterFrame = _local1.laserCounter.showAmmo;
_local2.removeMovieClip();
}
};
Symbol 20088 MovieClip [laserbox] Frame 12
this.removeMovieClip();
Symbol 20090 MovieClip [cluster] Frame 1
stop();
Symbol 20090 MovieClip [cluster] Frame 2
i = 0;
while (i < 10) {
newCluster = _parent.attachMovie("odlamek", "odlamek" + (_parent.depth++), _parent.depth);
newCluster._x = this._x;
newCluster._y = this._y;
newCluster.speedx = (random(2) ? ((-Math.random()) * 6) : (Math.random() * 6));
newCluster.power = (Math.random() * 6) + 2;
newCluster.onEnterFrame = function () {
var _local1 = this;
_local1._x = _local1._x + _local1.speedx;
_local1._y = _local1._y - _local1.power;
_local1.power = _local1.power - 0.3;
if (_local1._y > (Stage.height - 30)) {
_local1.play();
}
};
i++;
}
Symbol 20090 MovieClip [cluster] Frame 14
i = 0;
while (i < _parent.bombs.length) {
if (_parent.bombs[i] == this) {
_parent.bombs.splice(i, 1);
break;
}
i++;
}
this.removeMovieClip();
Symbol 20093 MovieClip Frame 6
stop();
Symbol 20094 MovieClip [crazy_bird] Frame 1
function shooted() {
graph.play();
}
this.onEnterFrame = function () {
var _local1 = _parent;
var _local2 = this;
_local2._x = _local2._x + ((_local2._xscale / 100) * 4);
_local2.distance = _local2.distance + 4;
if (_local2.distance > (Stage.width + 100)) {
i = 0;
while (i < _local1.planes.length) {
if (_local1.planes[i] == _local2) {
_local1.planes.splice(i, 1);
break;
}
i++;
}
removeMovieClip(_local2);
}
if (random(100) == 1) {
newBomb = _local1.attachMovie("cluster", "cluster" + (_local1.depth++), _local1.depth);
newBomb._x = _local2._x;
newBomb._y = _local2._y;
_local1.bombs.push(newBomb);
newBomb.onEnterFrame = function () {
var _local1 = this;
_local1._y = _local1._y + 4;
if (_local1.hitTest(_parent.tank.hit)) {
_parent.tank_hp--;
}
if (_local1._y > (Stage.height - 30)) {
_local1.play();
_local1.onEnterFrame = null;
}
};
}
};
stop();
Symbol 20094 MovieClip [crazy_bird] Frame 2
stop();
Symbol 20094 MovieClip [crazy_bird] Frame 3
stop();
Symbol 20094 MovieClip [crazy_bird] Frame 4
stop();
Symbol 20094 MovieClip [crazy_bird] Frame 5
stop();
Symbol 20094 MovieClip [crazy_bird] Frame 6
stop();
Symbol 20094 MovieClip [crazy_bird] Frame 7
stop();
Symbol 20094 MovieClip [crazy_bird] Frame 22
i = 0;
while (i < _parent.planes.length) {
if (_parent.planes[i] == this) {
_parent.planes.splice(i, 1);
break;
}
i++;
}
_parent.pointen = _parent.pointen + 300;
_parent.enemiesleft--;
this.removeMovieClip();
Symbol 20096 MovieClip [odlamek] Frame 1
stop();
Symbol 20096 MovieClip [odlamek] Frame 2
this.onEnterFrame = function () {
if (this._hit.hitTest(_parent.tank)) {
_parent.tank_hp = _parent.tank_hp - 1;
}
};
Symbol 20096 MovieClip [odlamek] Frame 10
this.removeMovieClip();
Symbol 20102 MovieClip Frame 1
stop();
this.onRollOver = function () {
this.play();
};
this.onRollOut = function () {
this.gotoAndPlay(11);
};
Symbol 20102 MovieClip Frame 10
stop();
Symbol 20105 MovieClip Frame 1
stop();
this.onRollOver = function () {
this.play();
};
this.onRollOut = function () {
this.gotoAndPlay(11);
};
Symbol 20105 MovieClip Frame 10
stop();
Symbol 20108 MovieClip Frame 1
stop();
this.onRollOver = function () {
this.play();
};
this.onRollOut = function () {
this.gotoAndPlay(11);
};
Symbol 20108 MovieClip Frame 10
stop();
Symbol 20120 MovieClip Frame 1
stop();
Symbol 20128 MovieClip Frame 1
stop();
Symbol 20128 MovieClip Frame 264
this.gotoAndPlay(1);
Symbol 20128 MovieClip Frame 279
stop();
this.onMouseDown = function () {
this.gotoAndStop(1);
this.onMouseDown = null;
};
Symbol 20136 MovieClip Frame 1
function showAmmo() {
var _local1 = _parent;
bar.followPoint("_xscale", _local1.laserAmmo, 5);
if (_local1.laserAmmo < 1) {
this.alphaTo(0);
this.onEnterFrame = null;
_local1.laser = false;
}
}
MovieClip.prototype.followPoint = function (wspolrzedna, wartosc, dzielnik) {
this[wspolrzedna] = this[wspolrzedna] + ((wartosc - this[wspolrzedna]) / dzielnik);
};
thisi.onEnterFrame = showAmmo;
Symbol 20158 MovieClip Frame 1
stop();
Symbol 20165 MovieClip Frame 2
counter.gotoAndStop(_parent._level_ + 1);
Symbol 20165 MovieClip Frame 54
gotoAndStop (1);
Symbol 20182 MovieClip Frame 33
stop();
onMouseDown = function () {
_parent.play();
};
Symbol 20183 MovieClip Frame 1
stop();
Symbol 20183 MovieClip Frame 23
stop();
Symbol 20183 MovieClip Frame 38
_parent.onEnterFrame = _parent.oldoEF1;
_parent.tank.onEnterFrame = _parent.oldoEF2;
_parent.tank.onMouseDown = _parent.oldoMC;
_parent.tank_hp = 100;
_parent.nextlev.play();
_parent.chmurki.play();
Symbol 20189 Button
on (release) {
gotoAndStop (3);
}
Symbol 20191 Button
on (release) {
GOS.API.scoreBoard(false);
}
Symbol 20193 Button
on (release) {
GOS.API.scoreBoard(true);
}
Symbol 52768 MovieClip Frame 2
stop();
play_btn.onRelease = function () {
nextFrame();
};
instr_btn.onRelease = function () {
gotoAndStop ("instructions");
};
hof_btn.onRelease = function () {
GOS.API.scoreBoard(false);
};
Symbol 52768 MovieClip Frame 3
function shoot() {
if (nuclear == true) {
newShoot = attachMovie("nc_missle", "nc_missle" + (depth++), depth);
newShoot._x = tank._x;
newShoot._y = tank._y;
newShoot._rotation = tank.lufacz._rotation;
newShoot._rotation = tank.lufacz._rotation;
newShoot.slideTo(_xmouse, _ymouse, 2, "linear");
nuclear = false;
} else if (laser == true) {
if (_laser == undefined) {
__laser = attachMovie("laser", "_laser", depth++);
_laser._x = tank._x;
_laser._y = tank._y;
_laser.onEnterFrame = function () {
_laser._x = tank._x;
_laser._y = tank._y;
laserAmmo--;
_laser._rotation = (-Math.atan2(tank._x - _xmouse, tank._y - _ymouse)) / (Math.PI/180);
if (laserAmmo < 1) {
clearInterval(shootInterval);
_laser.removeMovieClip();
}
};
}
j = 0;
while (j < planes.length) {
if (_laser.hitTest(planes[j].hit)) {
planes[j].play();
planes[j].shooted();
break;
}
j++;
}
j = 0;
while (j < bombs.length) {
if (_laser.hitTest(bombs[j])) {
bombs[j].play();
bombs.splice(j, 1);
break;
}
j++;
}
} else if (double == true) {
i = 0;
while (i < 2) {
newShoot = attachMovie("strzal", "strzal" + (depth++), depth);
newShoot._x = tank._x;
newShoot._y = tank._y;
newShoot._rotation = tank.lufacz._rotation;
((i == 0) ? ((newShoot._rotation = tank.lufacz._rotation - 3)) : ((newShoot._rotation = tank.lufacz._rotation + 3)));
strzaly.push(newShoot);
i++;
}
} else {
newShoot = attachMovie("strzal", "strzal" + (depth++), depth);
newShoot._x = tank._x;
newShoot._y = tank._y;
newShoot._rotation = tank.lufacz._rotation;
strzaly.push(newShoot);
}
tank.lufacz.play();
}
function deleteUnusedItems() {
j = 0;
while (j < planes.length) {
if (planes[j] == undefined) {
planes.splice(j, 1);
break;
}
j++;
}
j = 0;
while (j < bombs.length) {
if (bombs[j] == undefined) {
bombs.splice(j, 1);
return;
}
j++;
}
}
double = false;
clearin = setInterval(deleteUnusedItems, 5000);
celownik._x = _xmouse;
celownik._y = _ymouse;
celownik.startDrag();
strzaly = [];
planes = [];
bombs = [];
tank_hp = 100;
tank_lives = 2;
laserAmmo = 0;
pointen = 0;
_level_ = 1;
enemiesleft = 50;
oldoEF1 = (oldoEF2 = (oldoMD = function () {
}));
liveCounter.gotoAndStop(tank_lives + 1);
MovieClip.prototype.followPoint = function (wspolrzedna, wartosc, dzielnik) {
this[wspolrzedna] = this[wspolrzedna] + ((wartosc - this[wspolrzedna]) / dzielnik);
};
tank.onEnterFrame = function () {
tank.lufacz._rotation = (-Math.atan2(tank._x - _xmouse, tank._y - _ymouse)) / (Math.PI/180);
this.followPoint("_x", _xmouse, 20);
i = 0;
while (i < strzaly.length) {
strzaly[i]._y = strzaly[i]._y - (12 * Math.cos(strzaly[i]._rotation * (Math.PI/180)));
strzaly[i]._x = strzaly[i]._x + (12 * Math.sin(strzaly[i]._rotation * (Math.PI/180)));
if ((((strzaly[i]._x > Stage.width) || (strzaly[i]._x < 0)) || (strzaly[i]._y > Stage.height)) || (strzaly[i]._y < 0)) {
strzaly[i].removeMovieClip();
strzaly.splice(i, 1);
}
j = 0;
while (j < planes.length) {
if (strzaly[i].hitTest(planes[j].hit)) {
planes[j].play();
planes[j].shooted();
strzaly[i].removeMovieClip();
strzaly.splice(i, 1);
break;
}
j++;
}
j = 0;
while (j < bombs.length) {
if (strzaly[i].hitTest(bombs[j])) {
bombs[j].play();
bombs.splice(j, 1);
strzaly[i].removeMovieClip();
strzaly.splice(i, 1);
pointen = pointen + 20;
break;
}
j++;
}
i++;
}
if (tank_hp < 1) {
tank_hp = 0;
looser.play();
tank_lives--;
enemiesleft = 50;
chmurki.stop();
tank.gotoAndPlay("death");
oldoEF1 = onEnterFrame;
oldoEF2 = tank.onEnterFrame;
oldoMC = tank.onMouseDown;
removeMovieClip(_laser);
onEnterFrame = (tank.onEnterFrame = (tank.onMouseDown = null));
liveCounter.prevFrame();
double = (laser = (nuclear = false));
}
if (tank_lives == -1) {
fadetoblack.play();
removeMovieClip("chmurki");
}
};
tank_hp_bar.onEnterFrame = function () {
tank_hp_bar.followPoint("_xscale", tank_hp, 20);
};
tank.onMouseDown = function () {
shoot();
shootInterval = setInterval(shoot, 140);
Mouse.hide();
};
tank.onMouseUp = function () {
clearInterval(shootInterval);
if (_laser != undefined) {
_laser.removeMovieClip();
}
};
onEnterFrame = function () {
var _local1 = _pdue;
trace(enemiesleft);
_local1.eleft = enemiesleft;
if (enemiesleft > 0) {
if (random(30) == 1) {
switch (random(2 + _level_)) {
case 0 :
np = attachMovie("plane1", "plane" + (depth++), depth);
break;
case 1 :
np = attachMovie("kasztanokopter", "heli" + (depth++), depth);
break;
case 2 :
np = attachMovie("f16", "f16" + (depth++), depth);
break;
case 3 :
np = attachMovie("apache", "apache" + (depth++), depth);
break;
case 4 :
np = attachMovie("crazy_bird", "apache" + (depth++), depth);
}
np._y = random(Stage.height - 150) + 70;
lr = (random(2) ? 250 : -250);
np._x = 200 + lr;
((np._x < 0) ? ((np._xscale = 100)) : ((np._xscale = -100)));
planes.push(np);
np.distance = 0;
np = null;
}
} else {
enemiesleft = 50;
_level_++;
nextlev.play();
}
pkt_str = pointen.toString();
i = 0;
while (i < pkt_str.length) {
_local1["pointCounter" + i].gotoAndStop(int(pkt_str.charAt((pkt_str.length - i) - 1)) + 1);
i++;
}
};
nextlev.play();
function tweenManager() {
var _local1 = this;
_local1.playing = false;
_local1.autoStop = false;
_local1.broadcastEvents = false;
_local1.autoOverwrite = true;
_local1.tweenList = new Array();
_local1.ints = new Array();
_local1.lockedTweens = new Object();
_local1.now = 0;
_local1.isPaused = false;
_local1.pausedTime = 0;
}
Mouse.hide();
depth = 0;
Math.linearTween = function (t, b, c, d) {
return(((c * t) / d) + b);
};
Math.easeInQuad = function (t, b, c, d) {
return(((c * ((t = t / d))) * t) + b);
};
Math.easeOutQuad = function (t, b, c, d) {
return((((-c) * ((t = t / d))) * (t - 2)) + b);
};
Math.easeInOutQuad = function (t, b, c, d) {
var _local1 = t;
_local1 = _local1 / (d / 2);
if (_local1 < 1) {
return((((c / 2) * _local1) * _local1) + b);
}
_local1--;
return((((-c) / 2) * ((_local1 * (_local1 - 2)) - 1)) + b);
};
Math.easeOutInQuad = function (t, b, c, d) {
var _local1 = t;
_local1 = _local1 / (d / 2);
if (_local1 < 1) {
_local1--;
return((((-c) / 2) * ((_local1 * _local1) - 1)) + b);
}
_local1--;
return(((c / 2) * ((_local1 * _local1) + 1)) + b);
};
Math.easeInCubic = function (t, b, c, d) {
var _local1 = t;
_local1 = _local1 / d;
return((((c * _local1) * _local1) * _local1) + b);
};
Math.easeOutCubic = function (t, b, c, d) {
var _local1 = t;
_local1 = (_local1 / d) - 1;
return((c * (((_local1 * _local1) * _local1) + 1)) + b);
};
Math.easeInOutCubic = function (t, b, c, d) {
var _local1 = t;
_local1 = _local1 / (d / 2);
if (_local1 < 1) {
return(((((c / 2) * _local1) * _local1) * _local1) + b);
}
_local1 = _local1 - 2;
return(((c / 2) * (((_local1 * _local1) * _local1) + 2)) + b);
};
Math.easeOutInCubic = function (t, b, c, d) {
var _local1 = t;
_local1 = _local1 / (d / 2);
_local1--;
return(((c / 2) * (((_local1 * _local1) * _local1) + 1)) + b);
};
Math.easeInQuart = function (t, b, c, d) {
var _local1 = t;
_local1 = _local1 / d;
return(((((c * _local1) * _local1) * _local1) * _local1) + b);
};
Math.easeOutQuart = function (t, b, c, d) {
var _local1 = t;
_local1 = (_local1 / d) - 1;
return(((-c) * ((((_local1 * _local1) * _local1) * _local1) - 1)) + b);
};
Math.easeInOutQuart = function (t, b, c, d) {
var _local1 = t;
_local1 = _local1 / (d / 2);
if (_local1 < 1) {
return((((((c / 2) * _local1) * _local1) * _local1) * _local1) + b);
}
_local1 = _local1 - 2;
return((((-c) / 2) * ((((_local1 * _local1) * _local1) * _local1) - 2)) + b);
};
Math.easeOutInQuart = function (t, b, c, d) {
var _local1 = t;
_local1 = _local1 / (d / 2);
if (_local1 < 1) {
_local1--;
return((((-c) / 2) * ((((_local1 * _local1) * _local1) * _local1) - 1)) + b);
}
_local1--;
return(((c / 2) * ((((_local1 * _local1) * _local1) * _local1) + 1)) + b);
};
Math.easeInQuint = function (t, b, c, d) {
var _local1 = t;
_local1 = _local1 / d;
return((((((c * _local1) * _local1) * _local1) * _local1) * _local1) + b);
};
Math.easeOutQuint = function (t, b, c, d) {
var _local1 = t;
_local1 = (_local1 / d) - 1;
return((c * (((((_local1 * _local1) * _local1) * _local1) * _local1) + 1)) + b);
};
Math.easeInOutQuint = function (t, b, c, d) {
var _local1 = t;
_local1 = _local1 / (d / 2);
if (_local1 < 1) {
return(((((((c / 2) * _local1) * _local1) * _local1) * _local1) * _local1) + b);
}
_local1 = _local1 - 2;
return(((c / 2) * (((((_local1 * _local1) * _local1) * _local1) * _local1) + 2)) + b);
};
Math.easeOutInQuint = function (t, b, c, d) {
var _local1 = t;
_local1 = _local1 / (d / 2);
_local1--;
return(((c / 2) * (((((_local1 * _local1) * _local1) * _local1) * _local1) + 1)) + b);
};
Math.easeInSine = function (t, b, c, d) {
return((((-c) * Math.cos((t / d) * (Math.PI/2))) + c) + b);
};
Math.easeOutSine = function (t, b, c, d) {
return((c * Math.sin((t / d) * (Math.PI/2))) + b);
};
Math.easeInOutSine = function (t, b, c, d) {
return((((-c) / 2) * (Math.cos((Math.PI * t) / d) - 1)) + b);
};
Math.easeOutInSine = function (t, b, c, d) {
var _local1 = t;
_local1 = _local1 / (d / 2);
if (_local1 < 1) {
return(((c / 2) * Math.sin((Math.PI * _local1) / 2)) + b);
}
_local1--;
return((((-c) / 2) * (Math.cos((Math.PI * _local1) / 2) - 2)) + 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 _local1 = t;
var _local2 = b;
var _local3 = c;
if (_local1 == 0) {
return(_local2);
}
if (_local1 == d) {
return(_local2 + _local3);
}
_local1 = _local1 / (d / 2);
if (_local1 < 1) {
return(((_local3 / 2) * Math.pow(2, 10 * (_local1 - 1))) + _local2);
}
_local1--;
return(((_local3 / 2) * ((-Math.pow(2, -10 * _local1)) + 2)) + _local2);
};
Math.easeOutInExpo = function (t, b, c, d) {
var _local1 = t;
var _local2 = b;
var _local3 = c;
if (_local1 == 0) {
return(_local2);
}
if (_local1 == d) {
return(_local2 + _local3);
}
_local1 = _local1 / (d / 2);
if (_local1 < 1) {
return(((_local3 / 2) * ((-Math.pow(2, -10 * _local1)) + 1)) + _local2);
}
return(((_local3 / 2) * (Math.pow(2, 10 * (_local1 - 2)) + 1)) + _local2);
};
Math.easeInCirc = function (t, b, c, d) {
return(((-c) * (Math.sqrt(1 - (((t = t / d)) * t)) - 1)) + b);
};
Math.easeOutCirc = function (t, b, c, d) {
var _local1 = t;
_local1 = (_local1 / d) - 1;
return((c * Math.sqrt(1 - (_local1 * _local1))) + b);
};
Math.easeInOutCirc = function (t, b, c, d) {
var _local1 = t;
_local1 = _local1 / (d / 2);
if (_local1 < 1) {
return((((-c) / 2) * (Math.sqrt(1 - (_local1 * _local1)) - 1)) + b);
}
_local1 = _local1 - 2;
return(((c / 2) * (Math.sqrt(1 - (_local1 * _local1)) + 1)) + b);
};
Math.easeOutInCirc = function (t, b, c, d) {
var _local1 = t;
_local1 = _local1 / (d / 2);
if (_local1 < 1) {
_local1--;
return(((c / 2) * Math.sqrt(1 - (_local1 * _local1))) + b);
}
_local1--;
return(((c / 2) * (2 - Math.sqrt(1 - (_local1 * _local1)))) + b);
};
Math.easeInElastic = function (t, b, c, d, a, p) {
var _local1 = p;
var _local2 = t;
var _local3 = c;
if (_local2 == 0) {
return(b);
}
_local2 = _local2 / d;
if (_local2 == 1) {
return(b + _local3);
}
if (!_local1) {
_local1 = d * 0.3;
}
if (a < Math.abs(_local3)) {
a = _local3;
var s = (_local1 / 4);
} else {
var s = ((_local1 / (Math.PI*2)) * Math.asin(_local3 / a));
}
_local2 = _local2 - 1;
return((-((a * Math.pow(2, 10 * _local2)) * Math.sin((((_local2 * d) - s) * (Math.PI*2)) / _local1))) + b);
};
Math.easeOutElastic = function (t, b, c, d, a, p) {
var _local1 = c;
var _local2 = p;
var _local3 = t;
if (_local3 == 0) {
return(b);
}
_local3 = _local3 / d;
if (_local3 == 1) {
return(b + _local1);
}
if (!_local2) {
_local2 = d * 0.3;
}
if (a < Math.abs(_local1)) {
a = _local1;
var s = (_local2 / 4);
} else {
var s = ((_local2 / (Math.PI*2)) * Math.asin(_local1 / a));
}
return((((a * Math.pow(2, -10 * _local3)) * Math.sin((((_local3 * d) - s) * (Math.PI*2)) / _local2)) + _local1) + b);
};
Math.easeInOutElastic = function (t, b, c, d, a, p) {
var _local1 = t;
var _local2 = p;
var _local3 = c;
if (_local1 == 0) {
return(b);
}
_local1 = _local1 / (d / 2);
if (_local1 == 2) {
return(b + _local3);
}
if (!_local2) {
_local2 = d * 0.45;
}
if (a < Math.abs(_local3)) {
a = _local3;
var s = (_local2 / 4);
} else {
var s = ((_local2 / (Math.PI*2)) * Math.asin(_local3 / a));
}
if (_local1 < 1) {
_local1--;
return((-0.5 * ((a * Math.pow(2, 10 * _local1)) * Math.sin((((_local1 * d) - s) * (Math.PI*2)) / _local2))) + b);
}
_local1--;
return(((((a * Math.pow(2, -10 * _local1)) * Math.sin((((_local1 * d) - s) * (Math.PI*2)) / _local2)) * 0.5) + _local3) + b);
};
Math.easeOutInElastic = function (t, b, c, d, a, p) {
var _local1 = t;
var _local2 = c;
var _local3 = p;
if (_local1 == 0) {
return(b);
}
_local1 = _local1 / (d / 2);
if (_local1 == 2) {
return(b + _local2);
}
if (!_local3) {
_local3 = d * 0.45;
}
if (a < Math.abs(_local2)) {
a = _local2;
var s = (_local3 / 4);
} else {
var s = ((_local3 / (Math.PI*2)) * Math.asin(_local2 / a));
}
if (_local1 < 1) {
return(((0.5 * ((a * Math.pow(2, -10 * _local1)) * Math.sin((((_local1 * d) - s) * (Math.PI*2)) / _local3))) + (_local2 / 2)) + b);
}
return(((_local2 / 2) + (0.5 * ((a * Math.pow(2, 10 * (_local1 - 2))) * Math.sin((((_local1 * d) - s) * (Math.PI*2)) / _local3)))) + b);
};
Math.easeInBack = function (t, b, c, d, s) {
var _local1 = s;
var _local2 = t;
if (_local1 == undefined) {
_local1 = 1.70158;
}
_local2 = _local2 / d;
return((((c * _local2) * _local2) * (((_local1 + 1) * _local2) - _local1)) + b);
};
Math.easeOutBack = function (t, b, c, d, s) {
var _local1 = t;
var _local2 = s;
if (_local2 == undefined) {
_local2 = 1.70158;
}
_local1 = (_local1 / d) - 1;
return((c * (((_local1 * _local1) * (((_local2 + 1) * _local1) + _local2)) + 1)) + b);
};
Math.easeInOutBack = function (t, b, c, d, s) {
var _local1 = t;
var _local2 = s;
if (_local2 == undefined) {
_local2 = 1.70158;
}
_local1 = _local1 / (d / 2);
if (_local1 < 1) {
_local2 = _local2 * 1.525;
return(((c / 2) * ((_local1 * _local1) * (((_local2 + 1) * _local1) - _local2))) + b);
}
_local1 = _local1 - 2;
_local2 = _local2 * 1.525;
return(((c / 2) * (((_local1 * _local1) * (((_local2 + 1) * _local1) + _local2)) + 2)) + b);
};
Math.easeOutInBack = function (t, b, c, d, s) {
var _local1 = t;
var _local2 = s;
if (_local2 == undefined) {
_local2 = 1.70158;
}
_local1 = _local1 / (d / 2);
if (_local1 < 1) {
_local1--;
_local2 = _local2 * 1.525;
return(((c / 2) * (((_local1 * _local1) * (((_local2 + 1) * _local1) + _local2)) + 1)) + b);
}
_local1--;
_local2 = _local2 * 1.525;
return(((c / 2) * (((_local1 * _local1) * (((_local2 + 1) * _local1) - _local2)) + 1)) + 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 _local1 = t;
var _local2 = c;
var _local3 = b;
_local1 = _local1 / d;
if (_local1 < 0.363636363636364) {
return((_local2 * ((7.5625 * _local1) * _local1)) + _local3);
}
if (_local1 < 0.727272727272727) {
_local1 = _local1 - 0.545454545454545;
return((_local2 * (((7.5625 * _local1) * _local1) + 0.75)) + _local3);
}
if (_local1 < 0.909090909090909) {
_local1 = _local1 - 0.818181818181818;
return((_local2 * (((7.5625 * _local1) * _local1) + 0.9375)) + _local3);
}
_local1 = _local1 - 0.954545454545455;
return((_local2 * (((7.5625 * _local1) * _local1) + 0.984375)) + _local3);
};
Math.easeInOutBounce = function (t, b, c, d) {
var _local1 = d;
var _local2 = t;
var _local3 = c;
if (_local2 < (_local1 / 2)) {
return((Math.easeInBounce(_local2 * 2, 0, _local3, _local1) * 0.5) + b);
}
return(((Math.easeOutBounce((_local2 * 2) - _local1, 0, _local3, _local1) * 0.5) + (_local3 * 0.5)) + b);
};
Math.easeOutInBounce = function (t, b, c, d) {
var _local1 = d;
var _local2 = t;
var _local3 = c;
if (_local2 < (_local1 / 2)) {
return((Math.easeOutBounce(_local2 * 2, 0, _local3, _local1) * 0.5) + b);
}
return(((Math.easeInBounce((_local2 * 2) - _local1, 0, _local3, _local1) * 0.5) + (_local3 * 0.5)) + b);
};
var Mp = MovieClip.prototype;
Mp.addListener = function () {
var _local1 = this;
if (!_local1._listeners) {
AsBroadcaster.initialize(_local1);
}
_local1.addListener.apply(_local1, arguments);
};
ASSetPropFlags(Mp, "addListener", 1, 0);
var tp = tweenManager.prototype;
tp.setupdateInterval = function (time) {
var _local1 = this;
if (_local1.playing) {
_local1.deinit();
_local1.updateTime = time;
_local1.init();
} else {
_local1.updateTime = time;
}
};
tp.getupdateInterval = function () {
return(this.updateTime);
};
tp.addProperty("updateInterval", tp.getupdateInterval, tp.setupdateInterval);
tp.init = function () {
var tm = this;
if (tm.updateTime > 0) {
tm.updateIntId = setInterval(tm, "update", tm.updateTime);
} else {
if (tm.tweenHolder._name == undefined) {
tm.tweenHolder = _pdue.createEmptyMovieClip("_th_", -6789);
}
tm.tweenHolder.onEnterFrame = function () {
tm.update.call(tm);
};
}
tm.playing = true;
tm.now = getTimer();
};
tp.deinit = function () {
var _local1 = this;
_local1.playing = false;
clearInterval(_local1.updateIntId);
delete _local1.tweenHolder.onEnterFrame;
};
tp.update = function () {
var i;
var _local1;
var _local2;
var _local3;
i = this.tweenList.length;
if (this.broadcastEvents) {
var ut = {};
var et = {};
}
while (i--) {
_local1 = this.tweenList[i];
if ((_local1.ts + _local1.d) > this.now) {
if (_local1.ctm == undefined) {
_local1.mc[_local1.pp] = _local1.ef(this.now - _local1.ts, _local1.ps, _local1.ch, _local1.d, _local1.e1, _local1.e2);
} else {
_local3 = {};
for (_local2 in _local1.ctm) {
_local3[_local2] = _local1.ef(this.now - _local1.ts, _local1.stm[_local2], _local1.ctm[_local2], _local1.d, _local1.e1, _local1.e2);
}
_local1.c.setTransform(_local3);
}
if (this.broadcastEvents && (ut[targetPath(_local1.mc)] == undefined)) {
ut[targetPath(_local1.mc)] = _local1.mc;
}
if (_local1.cb.updfunc != undefined) {
_local1.cb.updfunc.apply(_local1.cb.updscope, _local1.cb.updargs);
}
} else {
if (_local1.ctm == undefined) {
_local1.mc[_local1.pp] = _local1.ps + _local1.ch;
} else {
_local3 = {};
for (_local2 in _local1.ctm) {
_local3[_local2] = _local1.stm[_local2] + _local1.ctm[_local2];
}
_local1.c.setTransform(_local3);
}
if (this.broadcastEvents) {
if (ut[targetPath(_local1.mc)] == undefined) {
ut[targetPath(_local1.mc)] = _local1.mc;
}
if (et[targetPath(_local1.mc)] == undefined) {
et[targetPath(_local1.mc)] = _local1.mc;
}
}
if (_local1.cb.updfunc != undefined) {
_local1.cb.updfunc.apply(_local1.cb.updscope, _local1.cb.updargs);
}
if (endt == undefined) {
var endt = new Array();
}
endt.push(i);
}
}
for (_local2 in ut) {
ut[_local2].broadcastMessage("onTweenUpdate");
}
if (endt != undefined) {
this.endTweens(endt);
}
for (_local2 in et) {
et[_local2].broadcastMessage("onTweenEnd");
}
this.now = getTimer();
if (this.updateTime > 0) {
updateAfterEvent();
}
};
tp.endTweens = function (tid_arr) {
var cb_arr;
var tl;
var i;
var cb;
var j;
cb_arr = [];
tl = tid_arr.length;
with (this) {
i = 0;
while (i < tl) {
cb = tweenList[tid_arr[i]].cb;
if (cb != undefined) {
var exec = true;
for (j in cb_arr) {
if (cb_arr[j] == cb) {
exec = false;
break;
}
}
if (exec) {
cb_arr.push(cb);
}
}
tweenList.splice(tid_arr[i], 1);
i++;
}
i = 0;
while (i < cb_arr.length) {
cb_arr[i].func.apply(cb_arr[i].scope, cb_arr[i].args);
i++;
}
if (tweenList.length == 0) {
deinit();
}
}
};
tp.addTween = function (mc, props, pEnd, sec, eqFunc, callback, extra1, extra2) {
var i;
var pp;
var addnew;
var j;
var t;
with (this) {
if (!playing) {
init();
}
for (i in props) {
pp = props[i];
addnew = true;
if (pp.substr(0, 4) != "_ct_") {
if (autoOverwrite) {
for (j in tweenList) {
t = tweenList[j];
if ((t.mc == mc) && (t.pp == pp)) {
t.ps = mc[pp];
t.ch = pEnd[i] - mc[pp];
t.ts = now;
t.d = sec * 1000;
t.ef = eqFunc;
t.cb = callback;
t.e1 = extra1;
t.e2 = extra2;
addnew = false;
break;
}
}
}
if (addnew) {
tweenList.unshift({mc:mc, pp:pp, ps:mc[pp], ch:pEnd[i] - mc[pp], ts:now, d:sec * 1000, ef:eqFunc, cb:callback, e1:extra1, e2:extra2});
}
} else {
var c = new Color(mc);
var stm = c.getTransform();
var ctm = {};
for (j in pEnd[i]) {
if ((pEnd[i][j] != stm[j]) && (pEnd[i][j] != undefined)) {
ctm[j] = pEnd[i][j] - stm[j];
}
}
if (autoOverwrite) {
for (j in tweenList) {
t = tweenList[j];
if ((t.mc == mc) && (t.ctm != undefined)) {
t.c = c;
t.stm = stm;
(t.ctm = ctm);
(t.ts = now);
t.d = sec * 1000;
t.ef = eqFunc;
t.cb = callback;
t.e1 = extra1;
t.e2 = extra2;
addnew = false;
break;
}
}
}
if (addnew) {
tweenList.unshift({mc:mc, c:c, stm:stm, ctm:ctm, ts:now, d:sec * 1000, ef:eqFunc, cb:callback, e1:extra1, e2:extra2});
}
}
}
if (broadcastEvents) {
mc.broadcastMessage("onTweenStart");
}
if (callback.startfunc != undefined) {
callback.startfunc.apply(callback.startscope, callback.startargs);
}
}
};
tp.addTweenWithDelay = function (delay, mc, props, pEnd, sec, eqFunc, callback, extra1, extra2) {
with (this) {
var il;
var intid;
il = ints.length;
intid = setInterval(function (obj) {
var _local1 = obj;
var _local3;
var _local2;
_local1.addTween(mc, props, pEnd, sec, eqFunc, callback, extra1, extra2);
clearInterval(_local1.ints[il].intid);
_local1.ints[il] = undefined;
_local3 = true;
for (_local2 in _local1.ints) {
if (_local1.ints[_local2] != undefined) {
_local3 = false;
break;
}
}
if (_local3) {
_local1.ints = [];
}
}, delay * 1000, this);
ints[il] = {mc:mc, props:props, pend:pEnd, intid:intid, st:this.now, delay:delay * 1000, args:arguments.slice(1)};
}
};
tp.removeTween = function (mc, props) {
with (this) {
var all;
var i;
var j;
all = false;
if (props == undefined) {
all = true;
}
i = tweenList.length;
while (i--) {
if (tweenList[i].mc == mc) {
if (all) {
tweenList.splice(i, 1);
} else {
for (j in props) {
if (tweenList[i].pp == props[j]) {
tweenList.splice(i, 1);
} else if ((props[j] == "_ct_") && (tweenList[i].ctm != undefined)) {
tweenList.splice(i, 1);
}
}
}
}
}
i = ints.length;
while (i--) {
if (ints[i].mc == mc) {
if (all) {
clearInterval(ints[i].intid);
ints[i] = undefined;
} else {
for (j in props) {
for (var k in ints[i].props) {
if (ints[i].props[k] == props[j]) {
ints[i].props.splice(k, 1);
ints[i].pend.splice(k, 1);
}
}
if (ints[i].props.length == 0) {
clearInterval(ints[i].intid);
ints[i] = undefined;
}
}
}
}
}
if (tweenList.length == 0) {
deinit();
}
}
};
tp.isTweening = function (mc) {
with (this) {
for (var i in tweenList) {
if (tweenList[i].mc == mc) {
return(true);
}
}
return(false);
}
};
tp.getTweens = function (mc) {
with (this) {
var count = 0;
for (var i in tweenList) {
if (tweenList[i].mc == mc) {
count++;
}
}
return(count);
}
};
tp.lockTween = function (mc, bool) {
this.lockedTweens[targetPath(mc)] = bool;
};
tp.isTweenLocked = function (mc) {
if (this.lockedTweens[targetPath(mc)] == undefined) {
return(false);
}
return(this.lockedTweens[targetPath(mc)]);
};
tp.pauseAll = function () {
var _local1 = this;
if (_local1.isPaused) {
} else {
_local1.isPaused = true;
_local1.pausedTime = _local1.now;
for (var _local2 in _local1.ints) {
clearInterval(_local1.ints[_local2].intid);
}
_local1.deinit();
}
};
tp.unpauseAll = function () {
var _local1 = this;
if (!_local1.isPaused) {
} else {
var _local2;
var t;
_local1.isPaused = false;
_local1.now = getTimer();
for (_local2 in _local1.tweenList) {
t = _local1.tweenList[_local2];
t.ts = _local1.now - (_local1.pausedTime - t.ts);
}
_local1.init();
for (_local2 in _local1.ints) {
if (_local1.ints[_local2] == undefined) {
continue;
}
var _local3 = _local1.ints[_local2].delay - (_local1.pausedTime - _local1.ints[_local2].st);
var intid = setInterval(function (obj, id) {
var _local1 = obj;
var _local2 = id;
_local1.addTween.apply(_local1, _local1.ints[_local2].args);
clearInterval(_local1.ints[_local2].intid);
_local1.ints[_local2] = undefined;
}, _local3, _local1, _local2);
_local1.ints[_local2].intid = intid;
_local1.ints[_local2].st = _local1.now;
_local1.ints[_local2].delay = _local3;
}
}
};
tp.toString = function () {
return("[AS1 tweenManager 1.1.8]");
};
delete tp;
if (_global.$tweenManager == undefined) {
_global.$tweenManager = new tweenManager();
} else {
_global.$tweenManager.playing = false;
}
Mp.tween = function (props, pEnd, seconds, animType, delay, callback, extra1, extra2) {
if (_global.$tweenManager.isTweenLocked(this)) {
trace("error: this movieclip is locked");
return(undefined);
}
if (arguments.length < 2) {
trace("error: props & pEnd must be defined");
return(undefined);
}
if (typeof(props) == "string") {
props = [props];
}
if (pEnd.length == undefined) {
pEnd = [pEnd];
}
if (seconds == undefined) {
seconds = 2;
} else if (seconds < 0.01) {
seconds = 0;
}
if ((delay < 0.01) || (delay == undefined)) {
delay = 0;
}
switch (typeof(animType)) {
case "string" :
if (animType.toLowerCase() == "linear") {
var eqf = Math.linearTween;
} else {
var eqf = Math[animType];
}
break;
case "function" :
var eqf = animType;
break;
case "object" :
if (!((animType.pts != undefined) && (animType.ease != undefined))) {
break;
}
var eqf = animType.ease;
var extra1 = animType.pts;
}
if (eqf == undefined) {
var eqf = Math.easeOutExpo;
}
switch (typeof(callback)) {
case "function" :
callback = {func:callback, scope:this._parent};
break;
case "string" :
var ilp = callback.indexOf("(");
var funcp = callback.slice(0, ilp);
var scope = eval (funcp.slice(0, funcp.lastIndexOf(".")));
var func = eval (funcp);
var args = callback.slice(ilp + 1, callback.lastIndexOf(")")).split(",");
var i = 0;
while (i < args.length) {
var a = eval (args[i]);
if (a != undefined) {
args[i] = a;
}
i++;
}
callback = {func:func, scope:scope, args:args};
}
if (_global.$tweenManager.autoStop) {
_global.$tweenManager.removeTween(this, props);
}
if (delay > 0) {
_global.$tweenManager.addTweenWithDelay(delay, this, props, pEnd, seconds, eqf, callback, extra1, extra2);
} else {
_global.$tweenManager.addTween(this, props, pEnd, seconds, eqf, callback, extra1, extra2);
}
};
ASSetPropFlags(Mp, "tween", 1, 0);
Mp.stopTween = function (props) {
var _local1 = props;
if (typeof(_local1) == "string") {
_local1 = [_local1];
}
_global.$tweenManager.removeTween(this, _local1);
};
ASSetPropFlags(Mp, "stopTween", 1, 0);
Mp.isTweening = function () {
return(_global.$tweenManager.isTweening(this));
};
ASSetPropFlags(Mp, "isTweening", 1, 0);
Mp.getTweens = function () {
return(_global.$tweenManager.getTweens(this));
};
ASSetPropFlags(Mp, "getTweens", 1, 0);
Mp.lockTween = function () {
_global.$tweenManager.lockTween(this, true);
};
ASSetPropFlags(Mp, "lockTween", 1, 0);
Mp.unlockTween = function () {
_global.$tweenManager.lockTween(this, false);
};
ASSetPropFlags(Mp, "unlockTween", 1, 0);
Mp.isTweenLocked = function () {
return(_global.$tweenManager.isTweenLocked(this));
};
ASSetPropFlags(Mp, "isTweenLocked", 1, 0);
Mp.alphaTo = function (destAlpha, seconds, animType, delay, callback, extra1, extra2) {
this.tween(["_alpha"], [destAlpha], seconds, animType, delay, callback, extra1, extra2);
};
ASSetPropFlags(Mp, "alphaTo", 1, 0);
Mp.brightnessTo = function (bright, seconds, animType, delay, callback, extra1, extra2) {
var _local3 = bright;
var _local2 = 100 - Math.abs(_local3);
var _local1 = 0;
if (_local3 > 0) {
_local1 = 256 * (_local3 / 100);
}
var destCt = {ra:_local2, rb:_local1, ga:_local2, gb:_local1, ba:_local2, bb:_local1};
this.tween(["_ct_"], [destCt], seconds, animType, delay, callback, extra1, extra2);
};
ASSetPropFlags(Mp, "brightnessTo", 1, 0);
Mp.colorTo = function (destColor, seconds, animType, delay, callback, extra1, extra2) {
var _local1 = destColor;
var _local2;
if ((_local1 == undefined) || (_local1 == null)) {
_local2 = {rb:0, ra:100, gb:0, ga:100, bb:0, ba:100};
} else {
_local2 = {rb:_local1 >> 16, ra:0, gb:(_local1 & 65280) >> 8, ga:0, bb:_local1 & 255, ba:0};
}
this.tween(["_ct_"], [_local2], seconds, animType, delay, callback, extra1, extra2);
};
ASSetPropFlags(Mp, "colorTo", 1, 0);
Mp.colorTransformTo = function (ra, rb, ga, gb, ba, bb, aa, ab, seconds, animType, delay, callback, extra1, extra2) {
var _local1 = {ra:ra, rb:rb, ga:ga, gb:gb, ba:ba, bb:bb, aa:aa, ab:ab};
this.tween(["_ct_"], [_local1], seconds, animType, delay, callback, extra1, extra2);
};
ASSetPropFlags(Mp, "colorTransformTo", 1, 0);
Mp.scaleTo = function (destScale, seconds, animType, delay, callback, extra1, extra2) {
this.tween(["_xscale", "_yscale"], [destScale, destScale], seconds, animType, delay, callback, extra1, extra2);
};
ASSetPropFlags(Mp, "scaleTo", 1, 0);
Mp.slideTo = function (destX, destY, seconds, animType, delay, callback, extra1, extra2) {
this.tween(["_x", "_y"], [destX, destY], seconds, animType, delay, callback, extra1, extra2);
};
ASSetPropFlags(Mp, "slideTo", 1, 0);
Mp.rotateTo = function (destRotation, seconds, animType, delay, callback, extra1, extra2) {
this.tween(["_rotation"], [destRotation], seconds, animType, delay, callback, extra1, extra2);
};
ASSetPropFlags(Mp, "rotateTo", 1, 0);
Mp.getFrame = function () {
return(this._currentframe);
};
ASSetPropFlags(Mp, "getFrame", 1, 0);
Mp.setFrame = function (fr) {
this.gotoAndStop(Math.round(fr));
};
ASSetPropFlags(Mp, "setFrame", 1, 0);
Mp.addProperty("_frame", Mp.getFrame, Mp.setFrame);
ASSetPropFlags(Mp, "_frame", 1, 0);
Mp.frameTo = function (endframe, duration, animType, delay, callback, extra1, extra2) {
var _local1 = endframe;
if (_local1 == undefined) {
_local1 = this._totalframes;
}
this.tween("_frame", _local1, duration, animType, delay, callback, extra1, extra2);
};
ASSetPropFlags(Mp, "frameTo", 1, 0);
Mp.brightOffsetTo = function (percent, seconds, animType, delay, callback, extra1, extra2) {
var _local1 = 256 * (percent / 100);
var _local2 = {ra:100, rb:_local1, ga:100, gb:_local1, ba:100, bb:_local1};
this.tween(["_ct_"], [_local2], seconds, animType, delay, callback, extra1, extra2);
};
ASSetPropFlags(Mp, "brightOffsetTo", 1, 0);
Mp.contrastTo = function (percent, seconds, animType, delay, callback, extra1, extra2) {
var _local1 = {};
_local1.ra = (_local1.ga = (_local1.ba = percent));
_local1.rb = (_local1.gb = (_local1.bb = 128 - (1.28 * percent)));
this.tween(["_ct_"], [_local1], seconds, animType, delay, callback, extra1, extra2);
};
ASSetPropFlags(Mp, "contrastTo", 1, 0);
delete Mp;
attachMovie("chmurki", "chmurki", 10000);
_quality = "LOW";
Stage.showMenu = false;
attachMovie("fadetoblack", "fadetoblack", 60515);
bonus_snd = new Sound();
bonus_snd.attachSound("bonusso");
Symbol 52768 MovieClip Frame 4
Mouse.show();
GOS.API.gameOver();
GOS.API.registerScoreVariable("_global.scrxx", true);
_quality = "BEST";
trace(punkten);
_global.scrxx = pointen;
trace(_global.scrxx);
score.text = pointen;
Symbol 52768 MovieClip Frame 10
function play_again() {
_pdue.gotoAndStop(3);
}
GOS.API.scoreBoard(true);
stop();
Symbol 52768 MovieClip Frame 15
function play_again() {
_pdue.gotoAndStop(3);
}
GOS.API.scoreBoard(false);
stop();
Symbol 52768 MovieClip Frame 24
onMouseDown = function () {
gotoAndStop (2);
delete onMouseDown;
};