Frame 1
_global.log = new LuminicBox.Log.Logger("Tester");
_global.log.addPublisher(new LuminicBox.Log.ConsolePublisher());
fscommand ("trapallkeys", "true");
System.security.allowDomain("*");
System.useCodepage = false;
_focusrect = false;
Mouse.show();
switch (System.capabilities.playerType) {
case "External" :
case "StandAlone" :
_global.OPQAURL = "http://www.opqa.com/";
break;
case "PlugIn" :
case "ActiveX" :
_global.OPQAURL = "http://www.opqa.com/";
}
_global.gUserName = ((!int(_global.gUserName.length)) ? "Invitado" : (_global.gUserName));
_global.gPasswd = ((!int(_global.gPasswd.length)) ? "Invitado" : (_global.gPasswd));
_global.gameObj = new Object();
_global.gameObj.name = "3OnLine";
_global.gameObj.version = "2.16.05";
_global.gameObj.gameConnect = function (gameName) {
_global.tmo.clearAll();
_global.intervalMngr.clearAllInterval();
Key.removeListener(_global.keyLst);
var _local3 = 0;
while (_local3 < 1000) {
clearInterval(_local3);
_local3++;
}
cfci.stop();
cfco.stop();
delete cfci;
delete cfco;
var _local8 = ((gameName == "Home") ? "http://www.opqa.com/base.swf" : (((((_global.OPQAURL + "juegos/") + gameName) + "/") + _global.gamesInfo[gameName].alias) + ".swf"));
var _local5 = _global.gUserName;
var _local6 = _global.gPasswd;
for (var _local4 in _global) {
delete _global[_local4];
}
for (var _local4 in _root) {
delete _root[_local4];
}
_global.gUserName = _local5;
_global.gPasswd = _local6;
_level0.loadMovie(_local8);
};
loadMovieNum ("Console/mcConsole.swf", 2);
Sound.prototype.fadeIn = function (interval, inc, secondOffset, loops) {
function wait() {
if (This.getVolume() < 100) {
This.setVolume(This.getVolume() + inc);
} else {
clearInterval(id);
}
}
if (!interval) {
interval = 10;
}
if (!inc) {
inc = 3;
}
if (!secondOffset) {
secondOffset = 0;
}
if (!loops) {
loops = 9999;
}
var This = this;
this.setVolume(0);
this.start(secondOffset, loops);
clearInterval(id);
var id = setInterval(wait, interval);
};
ASSetPropFlags(Object.prototype, ["fadeIn"], 1);
Sound.prototype.fadeOff = function (interval, dec) {
function wait() {
if (This.getVolume() > 0) {
This.setVolume(This.getVolume() - dec);
} else {
This.stop();
This.setVolume(100);
clearInterval(id);
}
}
if (!interval) {
interval = 10;
}
if (!dec) {
dec = 3;
}
var This = this;
clearInterval(id);
var id = setInterval(wait, interval);
};
ASSetPropFlags(Object.prototype, ["fadeOff"], 1);
_global.cookie = new cCookie("opqa");
_global.skipIntro = false;
_global.connectionPing = undefined;
_global.socketXML = new XML();
_global.socketXML.ignoreWhite = true;
_global.gamesInfoXML = new XML();
gamesInfoXML.ignoreWhite = true;
_global.gamesInfo = new Object();
_global.gamesInfoXML.onLoad = function (success) {
if (success) {
var _local5 = 0;
var _local4 = 0;
while (_local4 < this.firstChild.childNodes.length) {
var _local3 = this.firstChild.childNodes[_local4].attributes.gameName;
_global.gamesInfo[_local3] = new Object();
_global.gamesInfo[_local3].gameName = this.firstChild.childNodes[_local4].attributes.gameName;
_global.gamesInfo[_local3].alias = this.firstChild.childNodes[_local4].attributes.alias;
_global.gamesInfo[_local3].host = this.firstChild.childNodes[_local4].attributes.host;
_global.gamesInfo[_local3].port = this.firstChild.childNodes[_local4].attributes.port;
_global.gamesInfo[_local3].serverID = this.firstChild.childNodes[_local4].attributes.serverid;
_global.gamesInfo[_local3].numPlayers = this.firstChild.childNodes[_local4].attributes.numPlayers;
_global.gamesInfo[_local3].price = this.firstChild.childNodes[_local4].attributes.precio;
_global.gamesInfo[_local3].version = this.firstChild.childNodes[_local4].attributes.version;
if (_local3 == _global.gameObj.name) {
if (_global.gamesInfo[_global.gameObj.name].version != _global.gameObj.version) {
_level.mcMessages.mcWindow.Escape();
_level.attachMovie("mcMessages", "mcMessages", _level.getNextHighestDepth());
_level.mcMessages.mcWindow.gotoAndStop("fCache");
_level.mcMessages.mcWindow.txtMsg.text = ((((("Se ha detectado que la versi\u00F3n " + _global.gameObj.version) + " del ") + _global.gameObj.name) + " es anterior. Limpia la cach\u00E9 de tu navegador para actualizarlo a la ") + _global.gamesInfo[_global.gameObj.name].version) + ". Si no sabes como hacerlo haz clic sobre el navegador q utilices:";
}
System.security.loadPolicyFile((("xmlsocket://" + _global.gamesInfo[_local3].host) + ":") + _global.gamesInfo[_local3].port);
} else {
_level7.gameSelector.gameSelector.mcContent["txt" + (_local5++)].text = _global.gamesInfo[_local3].numPlayers;
}
_local4++;
}
if ((gFrame == "fConectando") && (_global.gamesInfo[_global.gameObj.name].version == _global.gameObj.version)) {
_global.rg.userName = _global.gUserName;
_global.rg.passwd = _global.gPasswd;
_global.rg.host = _global.gamesInfo[_global.gameObj.name].host;
_global.rg.port = _global.gamesInfo[_global.gameObj.name].port;
_global.rg.serverID = _global.gamesInfo[_global.gameObj.name].serverID;
_global.rg.juego = _global.gameObj.name;
_global.rg.connect();
}
}
};
_global.gOptions = new SharedObject();
_global.gOptions = SharedObject.getLocal(_global.gameObj.name);
if (_global.gOptions.data.chatColor == undefined) {
_global.gOptions.data.chatColor = "#000000";
}
_global.gColor = _global.gOptions.data.chatColor;
if (_global.gOptions.data.quality == undefined) {
_global.gOptions.data.quality = "HIGH";
}
_quality = _global.gOptions.data.quality;
if (_global.gOptions.data.sound == undefined) {
_global.gOptions.data.sound = true;
}
if (_global.gOptions.data.privates == undefined) {
_global.gOptions.data.privates = true;
}
if (_global.gOptions.data.chat == undefined) {
_global.gOptions.data.chat = true;
}
if (_global.gOptions.data.invite == undefined) {
_global.gOptions.data.invite = true;
}
var wait = function (This) {
if (This.getBytesLoaded() == This.getBytesTotal()) {
clearInterval(intervalId);
_global.skipIntro = true;
This.gotoAndPlay("fPrototypes");
}
};
var intervalId = setInterval(wait, 0, this);
Frame 38
_quality = _global.gOptions.data.quality;
Frame 60
stop();
analytics();
var BytesLoaded = getBytesLoaded();
if (BytesLoaded == getBytesTotal()) {
txtTotal.text = "100%";
mcBar.gotoAndStop(100);
this.play();
} else {
clearInterval(intervalId);
var snd = new Sound();
if (_global.gOptions.data.sound) {
snd.attachSound("preload");
snd.start(0, 999);
}
onEnterFrame = function () {
var _local2 = int(((getBytesLoaded() - BytesLoaded) * 100) / (getBytesTotal() - BytesLoaded));
txtTotal.text = _local2 + "%";
mcBar.gotoAndStop(_local2);
if (_local2 == 100) {
snd.fadeOff();
delete onEnterFrame;
this.play();
}
};
}
Instance of Symbol 70 MovieClip in Frame 85
on (release) {
_global.skipIntro = true;
_parent.gotoAndPlay("fPrototypes");
}
Instance of Symbol 70 MovieClip in Frame 137
on (release) {
_global.skipIntro = true;
_parent.gotoAndPlay("fPrototypes");
}
Frame 138
stop();
Mouse.show();
_quality = _global.gOptions.data.quality;
_global.connectionPing = undefined;
Frame 139
function analytics() {
var _local2 = "http://www.google-analytics.com/urchin.js";
var _local1 = "var js=document.createElement('script');";
_local1 = _local1 + "js.setAttribute('type','text/javascript');";
_local1 = _local1 + (("js.setAttribute('src','" + _local2) + "');");
_local1 = _local1 + "var cmp=document.getElementsByTagName('object');";
_local1 = _local1 + "cmp[0].parentNode.appendChild(js);";
getURL (("javascript:" + _local1) + "void(0);");
var _local3 = function () {
getURL ("javascript:_uacct = \"UA-707712-2\";urchinTracker(3OnLine);");
};
setTimeout(_local3, 0);
}
analytics();
Object.prototype.clone = function () {
if (this instanceof Array) {
var _local2 = [];
var _local3 = 0;
while (_local3 < this.length) {
_local2[_local3] = ((typeof(this[_local3]) == "object") ? (this[_local3].clone()) : (this[_local3]));
_local3++;
}
} else if ((this instanceof XML) || (this instanceof MovieClip)) {
var _local2 = null;
} else {
var _local2 = {};
for (var _local3 in this) {
_local2[_local3] = ((typeof(this[_local3]) == "object") ? (this[_local3].clone()) : (this[_local3]));
}
}
return(_local2);
};
ASSetPropFlags(Object.prototype, ["clone"], 1);
Object.prototype.cloneMatchInfo = function () {
if (this instanceof Array) {
var _local2 = [];
var _local3 = 0;
while (_local3 < this.length) {
_local2[_local3] = ((typeof(this[_local3]) == "object") ? (this[_local3].cloneMatchInfo()) : (this[_local3]));
_local3++;
}
} else if ((this instanceof XML) || (this instanceof MovieClip)) {
var _local2 = null;
} else {
var _local2 = {};
for (var _local3 in this) {
if (typeof(this[_local3]) == "object") {
if (((((((_local3 == "m_player") || (_local3 == "m_extra")) || (_local3 == "m_matchDuration")) || (_local3 == "m_initNameList")) || (_local3 == "m_leaveList")) || (_local3 == "m_initTurnList")) || (_local3 = "m_turnList")) {
_local2[_local3] = this[_local3].clone();
}
} else if (((((((((((_local3 == "m_numMatchs") || (_local3 == "m_numRounds")) || (_local3 == "m_numPlayers")) || (_local3 == "m_numTeams")) || (_local3 == "m_numPlayersPerTeam")) || (_local3 == "m_initTurn")) || (_local3 == "m_turn")) || (_local3 == "m_myBet")) || (_local3 == "m_maxBet")) || (_local3 == "m_leaveBet")) || (_local3 == "m_ownerName")) {
_local2[_local3] = this[_local3];
}
}
}
return(_local2);
};
ASSetPropFlags(Object.prototype, ["cloneMatchInfo"], 1);
Object.prototype.sync = function (obj, ow) {
var _local3;
var _local4;
if (ow == undefined) {
ow = true;
}
for (var _local6 in obj) {
_local3 = this[_local6] != undefined;
if (obj[_local6].toString() == "[object Object]") {
if (!_local3) {
this[_local6] = obj[_local6];
}
_local4 = this[_local6];
_local4 = _local4.sync(obj[_local6], ow);
} else {
if (!_local3) {
this[_local6] = obj[_local6];
}
if (_local3 && (ow)) {
this[_local6] = obj[_local6];
}
}
}
};
ASSetPropFlags(Object.prototype, "sync", 1, true);
Object.prototype.find = function (objName, value) {
var _local2 = this.length;
if (int(objName.length) > 0) {
while (_local2--) {
if (this[_local2][objName] == value) {
return(_local2);
}
}
} else {
while (_local2--) {
if (this[_local2] == value) {
return(_local2);
}
}
}
return(-1);
};
ASSetPropFlags(Object.prototype, ["find"], 1);
_global.Timer = function (seconds) {
this._seconds = seconds;
this._listeners = [];
this._status = function () {
var _local3 = this._final.getTime();
var _local2 = new Date().getTime();
if (((this._status = _local3 - _local2)) <= 0) {
this._finish();
} else {
this.broadcastMessage("onTimerStatus", this._status);
}
};
var _local3 = ((this._final = new Date())).getMilliseconds();
this._final.setMilliseconds(_local3 + (seconds * 1000));
this.addListener(this);
};
Timer.prototype.start = function () {
this._finish = function () {
this.broadcastMessage("onTimerStatus", 0);
this.broadcastMessage("onTimerFinish");
clearInterval(this._idstatus);
};
this._idstatus = setInterval(this, "_status", 50);
};
Timer.prototype.stop = function () {
clearInterval(this._idstatus);
};
Timer.prototype.pause = function (seconds) {
if (seconds != null) {
clearInterval(this._idstatus);
var pause_id = setInterval(function (o) {
o.start();
clearInterval(pause_id);
}, seconds * 1000, this);
}
};
ASBroadcaster.initialize(Timer.prototype);
ASSetPropFlags(_global, "Timer", 1);
_global.sounds = new Object();
var aSounds = new Array("arrive", "privi", "beep", "bell", "derrota", "empate", "victoria", "ding", "slide");
var len = aSounds.length;
var i = 0;
while (i < len) {
_global.sounds[aSounds[i]] = new Sound();
_global.sounds[aSounds[i]].attachSound(aSounds[i]);
i++;
}
_global.sounds.playSound = function (soundName, offset, loops) {
offset = ((offset != undefined) ? (offset) : 0);
loops = ((loops != undefined) ? (loops) : 1);
_global.sounds[soundName].start(offset, loops);
};
_global.sounds.setVolumes = function () {
for (var _local3 in _global.sounds) {
var _local2 = (_global.gOptions.data.sound ? 100 : 0);
_global.sounds[_local3].setVolume(_local2);
}
};
_global.sounds.setVolumes();
Frame 140
function onConnect(success) {
if (!success) {
tmo.clearAll();
_root.gotoAndPlay("fError");
}
}
function onClose() {
gotoAndStop ("fError");
if (_level.mcMessagesStatistics.mcWindow._currentframe == 23) {
_level.mcMessagesStatistics.mcWindow.mcQuestion.gotoAndStop(11);
}
}
function onWelcome(obj) {
this.msgWelcome = obj.msg;
this.login();
}
function onLogin(obj) {
switch (obj.error) {
case 0 :
rg.codservidor = obj.codservidor;
rg.email = obj.email;
rg.credits = obj.credits;
rg.type = obj.type;
rg.rank = obj.rank;
rg.sex = obj.sex;
rg.points = obj.points;
rg.avatar = obj.avatar;
rg.getGames();
break;
case 1 :
_global.rg.close();
_root.gotoAndStop("fRelog");
break;
case 3 :
_global.rg.close();
_root.gotoAndStop("fBan");
var _local4 = parseDate(obj.date);
_root.mcBan.txtDate.text = (_local4.date + " ") + _local4.time;
break;
case 4 :
_global.rg.close();
_level.attachMovie("mcMessages", "mcMessages", _level.getNextHighestDepth());
_level.mcMessages.mcWindow.gotoAndStop("fErrorExtra");
_level.mcMessages.mcWindow.txtMsg.text = "El nombre de usuario o la contrase\u00F1a son incorrectos";
tmo.clearAll();
_root.gotoAndPlay("fPortada");
break;
case 5 :
_global.rg.close();
_level.attachMovie("mcMessages", "mcMessages", _level.getNextHighestDepth());
_level.mcMessages.mcWindow.gotoAndStop("fErrorExtra");
_level.mcMessages.mcWindow.txtMsg.text = "Tu usuario no est\u00E1 activado. Para activarlo haz login en la Home.";
tmo.clearAll();
_root.gotoAndPlay("fPortada");
}
}
function onIdleTimeExceded(secs) {
if ((secs == 15) && (!_level.wndIdleTime.mcWindow)) {
_level.mcMessages.mcWindow.Escape();
_level.attachMovie("mcMessages", "wndIdleTime", _level.getNextHighestDepth());
_level.wndIdleTime.mcWindow.gotoAndStop("fOnIdleTimeExceded");
}
if ((secs <= 15) && (secs >= 11)) {
_level.wndIdleTime.mcWindow.txtSeconds.textColor = 0;
_level.wndIdleTime.mcWindow.txtSeconds.text = secs;
}
if ((secs <= 10) && (secs >= 1)) {
_global.sounds.beep.start();
_level.wndIdleTime.mcWindow.txtSeconds.textColor = 11141120 /* 0xAA0000 */;
_level.wndIdleTime.mcWindow.txtSeconds.text = secs;
}
if (secs <= 0) {
_level.wndIdleTime.removeMovieClip();
if (_level.mcMessagesStatistics.mcWindow._currentframe == 23) {
_level.mcMessagesStatistics.mcWindow.mcQuestion.gotoAndStop(10);
}
}
}
function onGetGames(obj) {
_global.gGames = obj.games.clone();
var _local3 = gGames.find("gameName", rg.juego);
if (_local3 > -1) {
idGame = gGames[_local3].idGame;
}
if (gGames[idGame].gPasswd) {
_level.mcMessages.mcWindow.Escape();
_level.attachMovie("mcMessages", "mcMessages", _level.getNextHighestDepth());
_level.mcMessages.mcWindow.gotoAndStop("fPasswdGame");
_level.mcMessages.mcWindow.idGame = idGame;
return(undefined);
}
this.joinGame(idGame, "");
}
function onGetRooms(obj) {
_global.gRooms = obj.rooms.clone();
var _local4 = false;
var _local3 = 0;
while (_local3 < gRooms.length) {
if (gRooms[_local3].maxUsers > gRooms[_local3].users.length) {
_local4 = true;
if ((!_global.gRooms[_local3].guests) && (rg.type == 2)) {
} else if (_global.gRooms[_local3].rPasswd) {
} else {
this.joinRoom(_local3);
return(undefined);
}
}
_local3++;
}
var _local5 = function () {
_global.rg.getRooms();
};
tmo.setTimeout(_local5, 5000);
}
function onGetMatchs(obj) {
_global.gMatchs = obj.matchs.clone();
_root.mcConectado.mcListaPartidas.lstMatchs.dataProvider = obj.matchs.clone();
gFrame = "fConectado";
mcConectando.play();
}
function onGetRoomConnections(obj) {
_global.gUsers = obj.users.clone();
_global.rutaListaUsuariosSala.dataProvider = obj.users.clone();
rg.getMatchs();
}
function onGetMatchConnections(obj) {
lstPlayers.removeAll();
var _local1 = 0;
while (_local1 < obj.users.length) {
obj.users[_local1].label = obj.users[_local1].userName;
lstPlayers.addItem(obj.users[_local1]);
_local1++;
}
lstPlayers.sortItemsBy("label");
}
function onCreateMatch(obj) {
if (!obj.error) {
_global.rg.idOwner = obj.idOwner;
gMatchs.push(obj.clone());
_root.mcConectado.gotoAndStop("fWaitOponents");
} else {
_level.mcMessages.mcWindow.Escape();
_level.attachMovie("mcMessages", "mcMessages", _level.getNextHighestDepth());
_level.mcMessages.mcWindow.gotoAndStop("fTooManyMatchs");
}
}
function onUpdateMatch(obj) {
if (((idx = gMatchs.find("idMatch", obj.idMatch))) > -1) {
gMatchs[idx] = obj.clone();
}
if (((idx = _root.mcConectado.mcListaPartidas.lstMatchs.dataProvider.find("idMatch", obj.idMatch))) > -1) {
_root.mcConectado.mcListaPartidas.lstMatchs.dataProvider[idx] = obj.clone();
_root.mcConectado.mcListaPartidas.lstMatchs.render();
}
}
function onUserCreateMatch(obj) {
if (((idx = gUsers.find("idUser", obj.idOwner))) > -1) {
gUsers[idx].idMatch = obj.idMatch;
}
if (((idx = _global.rutaListaUsuariosSala.dataProvider.find("idUser", obj.idOwner))) > -1) {
_global.rutaListaUsuariosSala.dataProvider[idx].idMatch = obj.idMatch;
_global.rutaListaUsuariosSala.render();
}
if (((idx = _global.rutaListaUsuariosPartida.dataProvider.find("idUser", obj.idOwner))) > -1) {
_global.rutaListaUsuariosPartida.dataProvider[idx].idMatch = obj.idMatch;
_global.rutaListaUsuariosPartida.render();
}
_global.rutaListaUsuariosSala.onChange();
_global.rutaListaUsuariosPartida.onChange();
if (gMatchs.find("idMatch", obj.idMatch) > -1) {
return(undefined);
}
_global.gMatchs.push(obj);
_root.mcConectado.mcListaPartidas.lstMatchs.addItem(obj);
}
function onChgMatchOwner(obj) {
if (((idx = gMatchs.find("idMatch", obj.idMatch))) > -1) {
gMatchs[idx] = obj.clone();
}
if (((idx = _root.mcConectado.mcListaPartidas.lstMatchs.dataProvider.find("idMatch", obj.idMatch))) > -1) {
_root.mcConectado.mcListaPartidas.lstMatchs.dataProvider[idx] = obj.clone();
_global.rutaListaUsuariosSala.render();
}
if (obj.idMatch == _global.rg.idMatch) {
_root.mcConectado.mcVersus.updateOptions();
_root.mcConectado.mcVersus.refresh();
}
}
function onUserDeleteMatch(obj) {
if (((idx = gMatchs.find("idMatch", obj.idMatch))) > -1) {
gMatchs.splice(idx, 1);
}
if (((idx = _root.mcConectado.mcListaPartidas.lstMatchs.dataProvider.find("idMatch", obj.idMatch))) > -1) {
_root.mcConectado.mcListaPartidas.lstMatchs.removeItemAt(idx);
}
if ((obj.idMatch == rg.idMatch) && (rg._lookMatch)) {
_root.mcConectado.gotoAndStop("fSala");
_global.rg._lookMatch = false;
}
}
function onUserUpdateMatch(obj) {
if (((idx = gMatchs.find("idMatch", obj.idMatch))) > -1) {
gMatchs[idx] = obj.clone();
}
if (((idx = _root.mcConectado.mcListaPartidas.lstMatchs.dataProvider.find("idMatch", obj.idMatch))) > -1) {
_root.mcConectado.mcListaPartidas.lstMatchs.dataProvider[idx] = obj.clone();
_root.mcConectado.mcListaPartidas.lstMatchs.render();
}
if (_global.rg.idMatch == obj.idMatch) {
if (_root.mcConectado.mcVersus) {
_root.mcConectado.mcVersus.updateOptions();
_root.mcConectado.mcVersus.refresh();
var _local5 = false;
var _local3 = 0;
while (_local3 < obj.maxUsers) {
if (obj.users[_local3] == _global.rg.idUser) {
_local5 = true;
}
_local3++;
}
if (!_local5) {
_global.rg.leaveMatch();
_level.mcMessages.mcWindow.Escape();
_level.attachMovie("mcMessages", "mcMessages", _level.getNextHighestDepth());
_level.mcMessages.mcWindow.gotoAndStop("fLessPlayers");
}
} else {
_global.parentScene.mcOptionsWindow.updateOptions();
_global.parentScene.mcOptionsWindow.updateExtraOptions();
}
} else if (_level.mcMessages.mcWindow._currentframe == 26) {
_level.mcMessages.mcWindow.updateOptions();
}
}
function onUserJoinRoom(obj) {
if (obj.idUser != rg.idUser) {
_global.gUsers.push(obj.clone());
if ((obj.visible || (_global.rg.type == 0)) || (_global.rg.type == 4)) {
_global.rutaListaUsuariosSala.addItem(obj.clone());
}
} else {
var _local3 = _global.gRooms.find("idRoom", _global.rg.mIdRoom);
var _local4 = ((("<FONT COLOR=\"#" + _global.systemColor) + "\">:! Has entrado a la sala ") + _global.gRooms[_local3].roomName) + "</FONT>";
rutaChat.mcSala.txt.parse(_local4);
rutaChat.mcSala.txt.refreshText();
rutaChat.mcSala.txt.render();
rutaChat.mcSala.txt.scroll = rutaChat.mcSala.txt.maxscroll;
}
}
function onUserJoinMatch(obj) {
if (((idx = gUsers.find("idUser", obj.user.idUser))) > -1) {
gUsers[idx] = obj.user.clone();
}
if (((idx = _global.rutaListaUsuariosSala.dataProvider.find("idUser", obj.user.idUser))) > -1) {
_global.rutaListaUsuariosSala.dataProvider[idx] = obj.user.clone();
_global.rutaListaUsuariosSala.render();
}
_global.rutaListaUsuariosSala.onChange();
if (((idx = gMatchs.find("idMatch", obj.match.idMatch))) > -1) {
gMatchs[idx] = obj.match.clone();
}
if (((idx = _root.mcConectado.mcListaPartidas.lstMatchs.dataProvider.find("idMatch", obj.match.idMatch))) > -1) {
_root.mcConectado.mcListaPartidas.lstMatchs.dataProvider[idx] = obj.match.clone();
_root.mcConectado.mcListaPartidas.lstMatchs.render();
}
if (obj.match.idMatch == rg.idMatch) {
_global.rutaListaUsuariosPartida.addItem(obj.user.clone());
_global.sounds.ding.start();
_root.mcConectado.mcVersus.btnTeamsSetting.enabled = ((_global.rg.idUser == obj.match.idOwner) && (obj.match.numUsers == obj.match.maxUsers)) && (obj.match.extra.frame > 6);
_root.mcConectado.mcVersus.btnAccept.enabled = (_global.rg.idUser == obj.match.idOwner) && (obj.match.numUsers == obj.match.maxUsers);
_root.mcConectado.mcVersus.refresh();
}
}
function onUserLookMatch(obj) {
if ((obj.user.type != 0) && (obj.user.type != 4)) {
if (((idx = gUsers.find("idUser", obj.user.idUser))) > -1) {
gUsers[idx] = obj.user.clone();
}
if (((idx = _global.rutaListaUsuariosSala.dataProvider.find("idUser", obj.user.idUser))) > -1) {
_global.rutaListaUsuariosSala.dataProvider[idx] = obj.user.clone();
_global.rutaListaUsuariosSala.render();
}
}
_global.rutaListaUsuariosSala.onChange();
if (((idx = gMatchs.find("idMatch", obj.match.idMatch))) > -1) {
gMatchs[idx] = obj.match.clone();
}
if (((idx = _root.mcConectado.mcListaPartidas.lstMatchs.dataProvider.find("idMatch", obj.match.idMatch))) > -1) {
_root.mcConectado.mcListaPartidas.lstMatchs.dataProvider[idx] = obj.match.clone();
_root.mcConectado.mcListaPartidas.lstMatchs.render();
}
if (obj.match.idMatch == _global.rg.idMatch) {
if ((obj.user.type != 0) && (obj.user.type != 4)) {
_global.rutaListaUsuariosPartida.addItem(obj.user.clone());
_global.sounds.ding.start();
}
if (_global.game) {
if (_global.game.imPlayer()) {
_global.game.spectatorQueue.push(obj.user);
}
if (_global.game.imClean) {
_global.game.sendInfoToSpectators();
}
} else if ((_root.mcConectado.mcVersus.mcCountDown._currentframe > 1) || ((_root.mcConectado == undefined) && (obj.match.idOwner == _global.rg.idUser))) {
var _local4 = new Object();
_local4.fn = "onEndCountDown";
_local4.idUser = obj.user.idUser;
_local4.userName = obj.user.userName;
_local4.serverID = obj.user.serverID;
_local4.codservidor = obj.user.codservidor;
_global.rg.sendObjUser(_local4);
}
}
}
function onUserLeaveRoom(obj) {
if (((idx = gUsers.find("idUser", obj.idUser))) > -1) {
gUsers.splice(idx, 1);
}
if (((idx = _global.rutaListaUsuariosSala.dataProvider.find("idUser", obj.idUser))) > -1) {
_global.rutaListaUsuariosSala.removeItemAt(idx);
}
_global.rutaListaUsuariosSala.onChange();
}
function onUserLeaveMatch(obj) {
_level.wndIdleTime.mcWindow.Escape();
onUserLookLeaveMatch(obj);
if (obj.match.idMatch == _global.rg.idMatch) {
if ((((_global.game.match.goOnLeave && (obj.match.numUsers >= 2)) && (_global.game.allReady)) && (!_global.game.endedMatch)) && (_global.game.numPlayersPerTeam == 1)) {
_global.game.maxBet = obj.maxBet;
_global.parentScene.mcBetWindow.mcBet.updateBet();
_global.parentScene.mcBetWindow.mcBet.setIncreaseNS();
_global.rg.onGameEvent({fn:"onGameEvent", event:"onUserLeaveStartMatch", name:obj.user.userName});
} else {
_global.intervalMngr.clearAllInterval();
delete _global.intervalMngr;
delete _global.loadGame;
delete _global.scene;
delete _global.parentScene;
if (_global.game.endedMatch && (_level.mcMessagesStatistics.mcWindow._currentframe == 23)) {
var _local5 = false;
var _local3 = 0;
while (_local3 < _global.game.numPlayers) {
var _local4 = _global.gUsers.find("idUser", _global.game.player[_local3].idUser);
if (_global.gUsers[_local4].credits < _global.game.initBet) {
_local5 = true;
}
_local3++;
}
if (_local5) {
if (_global.rg._lookMatch) {
_level.mcMessagesStatistics.mcWindow.mcQuestion.gotoAndStop(6);
} else {
_level.mcMessagesStatistics.mcWindow.mcQuestion.gotoAndStop(7);
}
} else if (_global.rg._lookMatch) {
_level.mcMessagesStatistics.mcWindow.mcQuestion.gotoAndStop(4);
} else {
_level.mcMessagesStatistics.mcWindow.mcQuestion.gotoAndStop(5);
}
} else if (_global.game) {
if (_global.escena == "Juego") {
_level.mcMessages.mcWindow.Escape();
_level.attachMovie("mcMessages", "mcMessages", _level.getNextHighestDepth());
_level.mcMessages.mcWindow.gotoAndStop("fOnUserLeaveMatch");
}
delete _global.game;
}
cfci.stop();
cfco.stop();
delete cfci;
delete cfco;
if (_global.escena == "Juego") {
saveChatState();
}
if (_root.mcConectado.mcVersus.mcCountDown._currentframe > 1) {
_root.mcConectado.mcVersus.updateOptions();
_root.mcConectado.mcVersus.mcCountDown.gotoAndStop(1);
}
_global.cFrame = "fWaitOponents";
_root.gotoAndStop("fConectado");
if ((rg.credits < obj.match.bet) && (!rg._lookMatch)) {
_global.rg.leaveMatch(true);
}
_root.mcConectado.mcVersus.refresh();
}
}
}
function onUserLookLeaveMatch(obj) {
if (((idx = gUsers.find("idUser", obj.user.idUser))) > -1) {
gUsers[idx] = obj.user.clone();
}
if (((idx = _global.rutaListaUsuariosSala.dataProvider.find("idUser", obj.user.idUser))) > -1) {
_global.rutaListaUsuariosSala.dataProvider[idx] = obj.user.clone();
_global.rutaListaUsuariosSala.render();
}
_global.rutaListaUsuariosSala.onChange();
if (((idx = gMatchs.find("idMatch", obj.match.idMatch))) > -1) {
gMatchs[idx] = obj.match.clone();
}
if (((idx = _root.mcConectado.mcListaPartidas.lstMatchs.dataProvider.find("idMatch", obj.match.idMatch))) > -1) {
_root.mcConectado.mcListaPartidas.lstMatchs.dataProvider[idx] = obj.match.clone();
_root.mcConectado.mcListaPartidas.lstMatchs.render();
}
if (obj.match.idMatch == rg.idMatch) {
if (((idx = _global.rutaListaUsuariosPartida.dataProvider.find("idUser", obj.user.idUser))) > -1) {
_global.rutaListaUsuariosPartida.removeItemAt(idx);
_global.rutaListaUsuariosPartida.onChange();
}
}
}
function onJoinGame(obj) {
switch (obj.error) {
case 0 :
_global.rg.getRooms();
break;
case 1 :
_global.rg.close();
_root.gotoAndStop("fRelog");
break;
case 2 :
break;
case 3 :
_level.mcMessages.mcWindow.Escape();
_level.attachMovie("mcMessages", "mcMessages", _level.getNextHighestDepth());
_level.mcMessages.mcWindow.gotoAndStop("fGameNoGuests");
_global.rg.close();
break;
case 4 :
break;
case 5 :
_level.mcMessages.mcWindow.Escape();
_level.attachMovie("mcMessages", "mcMessages", _level.getNextHighestDepth());
_level.mcMessages.mcWindow.gotoAndStop("fGameComplete");
_global.rg.close();
break;
case 6 :
_level.mcMessages.mcWindow.Escape();
_level.attachMovie("mcMessages", "mcMessages", _level.getNextHighestDepth());
_level.mcMessages.mcWindow.gotoAndStop("fGameNoCredits");
_global.rg.close();
break;
case 7 :
_level.mcMessages.mcWindow.Escape();
_level.attachMovie("mcMessages", "mcMessages", _level.getNextHighestDepth());
_level.mcMessages.mcWindow.gotoAndStop("fGuestsComplete");
_global.rg.close();
}
}
function onJoinRoom(obj) {
if (!obj.error) {
_root.mcMessages._visible = false;
rg.getRoomConnections();
Selection.setFocus(_root.mcConectado.mcChat.txtIn);
} else {
_global.rg.getRooms();
}
}
function onJoinMatch(obj) {
if (!obj.error) {
_global.rg.idOwner = obj.idOwner;
_root.mcConectado.gotoAndStop("fWaitOponents");
}
}
function onLookMatch(obj) {
if (!obj.error) {
var _local3 = _global.gMatchs[_global.gMatchs.find("idMatch", _global.rg.idMatch)].clone();
_global.rg._lookMatch = true;
_global.rg.idOwner = obj.idOwner;
_global.rg.beginMatch = false;
if (_local3.numUsers == _local3.maxUsers) {
_global.rg.beginMatch = true;
_root.saveChatState();
_root.play();
} else {
_root.mcConectado.gotoAndStop("fWaitOponents");
}
}
}
function onLeaveGame(obj) {
if (!obj.error) {
txtOut.text = txtOut.text + (("<font color=\"#" + _global.systemColor) + "\">leaveGame [ok]</font>");
} else {
txtOut.text = txtOut.text + (((("<font color=\"#" + _global.systemColor) + "\">") + obj.msg) + "</font>");
}
txtOut.vPosition = txtOut.maxVPosition;
}
function onLeaveRoom(obj) {
if (!obj.error) {
txtOut.text = txtOut.text + (("<font color=\"#" + _global.systemColor) + "\">leaveRoom [ok]</font>");
lstUsers.removeAll();
lstMatchs.removeAll();
} else {
txtOut.text = txtOut.text + (((("<font color=\"#" + _global.systemColor) + "\">") + obj.msg) + "</font>");
}
txtOut.vPosition = txtOut.maxVPosition;
}
function onLeaveMatch(obj) {
_global.rg.idOwner = -1;
if (!obj.users.length) {
if (((idx = gMatchs.find("idMatch", obj.idMatch))) > -1) {
gMatchs.splice(idx, 1);
}
if (((idx = _root.mcConectado.mcListaPartidas.lstMatchs.dataProvider.find("idMatch", obj.idMatch))) > -1) {
_root.mcConectado.mcListaPartidas.lstMatchs.removeItemAt(idx);
}
}
cfci.stop();
cfco.stop();
delete cfci;
delete cfco;
if (_global.escena == "Juego") {
saveChatState();
}
_global.cFrame = "fSala";
if (_root.mcConectado != undefined) {
(_root.mcConectado.gotoAndStop("fSala"));// not popped
} else {
(_root.gotoAndStop("fConectado"));// not popped
}
}
function onSendObjRoom(obj) {
}
function onSendObjMatch(error, msg) {
}
function onSendObjUser(obj) {
}
function onPong(obj) {
txtPing.text = obj.mls + " ms";
}
function onLoadFriendList(obj) {
rg.friendList = obj.friendList.clone();
}
function onUserJoinOPQA(obj) {
if (((idx = rg.friendList.find("userName", obj.userName))) > -1) {
if (!rg.friendList[idx].online) {
var _local4 = int(rg.friendList[idx].lTime);
_global.rg.friendList[idx] = obj.clone();
}
}
if (((idx = _global.rutaListaUsuariosAmigos.dataProvider.find("userName", obj.userName))) > -1) {
_global.rutaListaUsuariosAmigos.dataProvider[idx] = obj.clone();
_global.rutaListaUsuariosAmigos.render();
if (((new Date().getTime() / 1000) - _local4) > 60) {
if (_root.mcConectado) {
mcConectado.mcBtnAmigos.gotoAndStop("fBlink");
mcConectado.mcBtnAmigos.mcBlink.gotoAndStop(2);
} else {
_global.parentScene.mcChatWindow.mcBtnAmigos.gotoAndStop("fBlink");
_global.parentScene.mcChatWindow.mcBtnAmigos.mcBlink.gotoAndStop(2);
}
_global.sounds.playSound("arrive");
}
}
}
function onUserLeaveOPQA(obj) {
obj.lTime = int(new Date().getTime() / 1000);
if (((idx = rg.friendList.find("userName", obj.userName))) > -1) {
rg.friendList[idx] = obj.clone();
}
if (((idx = _global.rutaListaUsuariosAmigos.dataProvider.find("userName", obj.userName))) > -1) {
_global.rutaListaUsuariosAmigos.dataProvider[idx] = obj.clone();
_global.rutaListaUsuariosAmigos.render();
}
}
function onLeafDown(obj) {
var _local3 = _global.rutaListaUsuariosAmigos.dataProvider.length;
var _local2 = 0;
while (_local2 < _local3) {
if (_global.rutaListaUsuariosAmigos.dataProvider[_local2].serverID == obj.serverID) {
_global.rutaListaUsuariosAmigos.dataProvider[_local2].online = false;
}
_local2++;
}
_global.rutaListaUsuariosAmigos.render();
}
function onLeafUp(obj) {
}
function onHubDown() {
var _local3 = _global.rutaListaUsuariosAmigos.dataProvider.length;
var _local2 = 0;
while (_local2 < _local3) {
if (_global.rutaListaUsuariosAmigos.dataProvider[_local2].serverID != rg.serverID) {
_global.rutaListaUsuariosAmigos.dataProvider[_local2].online = false;
}
_local2++;
}
_global.rutaListaUsuariosAmigos.render();
}
function onHubUp() {
}
function onSendChatRoom(obj) {
if (_global.gIgnores.find("", obj.__userName) > -1) {
return(undefined);
}
if (rutaChat.tab.selected != 0) {
rutaChat.tab.tabs[0].blink = true;
rutaChat.tab.render();
rutaChat.tab.mcSurface.mcBoton0.mcContent.mcBlink.gotoAndStop(2);
}
_root.createTextField("txtAux", 9999, 950, 550, 1, 1);
_root.txtAux.html = true;
_root.txtAux.htmlText = obj.msg;
obj.msg = _root.txtAux.htmlText;
removeMovieClip(_root.txtAux);
var _local6 = obj.msg.indexOf("KERNING=\"0\">") + 12;
var _local7 = obj.msg.lastIndexOf("</FONT></P>");
obj.msg = obj.msg.slice(_local6, _local7);
var _local5 = gUsers[gUsers.find("idUser", obj.__idUser)].type;
var _local8 = (((_local5 == 4) || (_local5 == 0)) ? "(~@\u00AC)" : "");
var _local4 = (((((("<FONT COLOR=\"" + obj.color) + "\">") + _local8) + obj.__userName) + "> ") + obj.msg) + "</FONT>";
_local4 = _local4.split(String.fromCharCode(160)).join("");
_local4 = _local4.split(String.fromCharCode(13)).join("<br>");
rutaChat.mcSala.txt.parse(_local4);
rutaChat.mcSala.txt.refreshText();
rutaChat.mcSala.txt.render();
rutaChat.mcSala.txt.scroll = rutaChat.mcSala.txt.maxscroll;
}
function onSendChatMatch(obj) {
if (_global.gIgnores.find("", obj.__userName) > -1) {
return(undefined);
}
var _local4 = rutaChat.tab.tabs.find("label", "Partida");
if (rutaChat.tab.selected != _local4) {
rutaChat.tab.tabs[_local4].blink = true;
rutaChat.tab.render();
rutaChat.tab.mcSurface["mcBoton" + _local4].mcContent.mcBlink.gotoAndStop(2);
}
_root.createTextField("txtAux", 9999, 950, 550, 1, 1);
_root.txtAux.html = true;
_root.txtAux.htmlText = obj.msg;
obj.msg = _root.txtAux.htmlText;
removeMovieClip(_root.txtAux);
var _local7 = obj.msg.indexOf("KERNING=\"0\">") + 12;
var _local8 = obj.msg.lastIndexOf("</FONT></P>");
obj.msg = obj.msg.slice(_local7, _local8);
var _local6 = gUsers[gUsers.find("idUser", obj.__idUser)].type;
var _local9 = (((_local6 == 4) || (_local6 == 0)) ? "(~@\u00AC)" : "");
var _local5 = (((((("<FONT COLOR=\"" + obj.color) + "\">") + _local9) + obj.__userName) + "> ") + obj.msg) + "</FONT>";
if (!mcChatWindow._visible) {
cfco.show(_local5);
}
rutaChat.mcPartida.txt.parse(_local5);
rutaChat.mcPartida.txt.refreshText();
rutaChat.mcPartida.txt.render();
rutaChat.mcPartida.txt.scroll = rutaChat.mcPartida.txt.maxscroll;
}
function onSendChatUser(obj) {
if (_global.gIgnores.find("", obj.__userName) > -1) {
if (obj.ignoreMsg == undefined) {
var _local7 = obj.userName + " te tiene en su lista de ignorados.";
rg.sendObjUser({fn:"onSendChatUser", idUser:obj.__idUser, userName:obj.__userName, serverID:obj.__serverID, codservidor:obj.__codservidor, msg:_local7, color:_global.gColor, ignoreMsg:true});
return(undefined);
}
}
if (obj.ignoreMsg) {
if (obj.__userName != rg.userName) {
var _local7 = ((("<FONT COLOR=\"#" + _global.systemColor) + "\">:! ") + obj.msg) + "</FONT>";
var _local12 = _global.rutaChat["mc" + _global.rutaChat.tab.tabs[_global.rutaChat.tab.selected].label];
_local12.txt.parse(_local7);
_local12.txt.refreshText();
_local12.txt.render();
_local12.txt.scroll = _local12.txt.maxscroll;
}
return(undefined);
}
if (((!_global.gOptions.data.privates) && (obj.__type != 0)) && (obj.__type != 4)) {
return(undefined);
}
var tab = rutaChat.tab;
_root.createTextField("txtAux", 9999, 950, 550, 1, 1);
_root.txtAux.html = true;
_root.txtAux.htmlText = obj.msg;
obj.msg = _root.txtAux.htmlText;
removeMovieClip(_root.txtAux);
var _local8 = obj.msg.indexOf("KERNING=\"0\">") + 12;
var _local9 = obj.msg.lastIndexOf("</FONT></P>");
obj.msg = obj.msg.slice(_local8, _local9);
if (obj.__error == 2) {
var _local7 = ((("<FONT COLOR=\"#" + _global.systemColor) + "\">:! ") + obj.userName) + " no est\u00E1 conectado en estos momentos.</FONT>";
var _local12 = _global.rutaChat["mc" + _global.rutaChat.tab.tabs[_global.rutaChat.tab.selected].label];
_local12.txt.parse(_local7);
_local12.txt.refreshText();
_local12.txt.render();
_local12.txt.scroll = _local12.txt.maxscroll;
return(undefined);
}
if (obj.__error == 1) {
var _local12 = _global.rutaChat["mc" + _global.rutaChat.tab.tabs[_global.rutaChat.tab.selected].label];
var _local3 = 0;
while (_local3 < tab.tabs.length) {
if (tab.tabs[_local3].label == obj.userName) {
tab.tabs[_local3].idUser = obj.idUser;
tab.tabs[_local3].codservidor = obj.codservidor;
tab.tabs[_local3].serverID = obj.serverID;
}
_local3++;
}
}
if ((_global.escena == "Juego") && (!mcChatWindow._visible)) {
mcBlinkChatButton._visible = true;
mcBlinkChatButton.play();
}
if (obj.__userName == rg.userName) {
var _local5 = obj.userName;
var opuesto = obj.__userName;
} else {
var _local5 = obj.__userName;
var opuesto = obj.__userName;
var _local4 = -1;
var _local13 = tab.tabs.find("label", "Partida");
var _local3 = 0;
while ((_local3 < tab.tabs.length) && (_local4 == -1)) {
if (tab.tabs[_local3].label == _local5) {
if (tab.selected != _local3) {
tab.tabs[_local3].blink = true;
_global.sounds.playSound("privi");
}
_local4 = _local3;
}
_local3++;
}
if (_local4 == -1) {
if (_global.escena == "Conexion") {
var nue = rutaChat.attachMovie("mcChatSala", "mc" + _local5, rutaChat.getNextHighestDepth());
} else {
var nue = rutaChat.attachMovie("mcChatSalaGame", "mc" + _local5, rutaChat.getNextHighestDepth());
}
nue._x = rutaChat.mcSala._x;
nue._y = rutaChat.mcSala._y;
rutaChat.cmbSmileys.swapDepths(rutaChat.getNextHighestDepth());
rutaChat.btnLeft.swapDepths(rutaChat.getNextHighestDepth());
rutaChat.btnRight.swapDepths(rutaChat.getNextHighestDepth());
rutaChat.btnClose.swapDepths(rutaChat.getNextHighestDepth());
nue._visible = false;
tab.addTab(_local5, false, true);
tab.tabs[tab.tabs.length - 1].idUser = obj.__idUser;
tab.tabs[tab.tabs.length - 1].codservidor = obj.__codservidor;
tab.tabs[tab.tabs.length - 1].serverID = obj.__serverID;
waitNue = function () {
if (nue.txt.mcSurface.mcClip.txtOut != undefined) {
clearInterval(IDNue);
var _local2 = gUsers[gUsers.find("idUser", obj.__idUser)].type;
var _local3 = (((_local2 == 4) || (_local2 == 0)) ? "(~@\u00AC)" : "");
nue.txt.parse((((((("<FONT COLOR=\"" + obj.color) + "\">") + _local3) + opuesto) + "> ") + obj.msg) + "</FONT>");
nue.txt.refreshText();
nue.txt.render();
nue.txt.scroll = nue.txt.scroll + nue.txt.maxscroll;
_global.sounds.playSound("privi");
tab.render();
tab.mcSurface["mcBoton" + (tab.tabs.length - 1)].mcContent.mcBlink.gotoAndStop(2);
}
};
clearInterval(IDNue);
var IDNue = setInterval(waitNue, 100);
return(undefined);
}
}
var _local6 = gUsers[gUsers.find("idUser", obj.__idUser)].type;
var _local10 = (((_local6 == 4) || (_local6 == 0)) ? "(~@\u00AC)" : "");
rutaChat["mc" + _local5].txt.parse((((((("<FONT COLOR=\"" + obj.color) + "\">") + _local10) + opuesto) + "> ") + obj.msg) + "</FONT>");
rutaChat["mc" + _local5].txt.refreshText();
rutaChat["mc" + _local5].txt.render();
rutaChat["mc" + _local5].txt.scroll = rutaChat["mc" + _local5].txt.scroll + rutaChat["mc" + _local5].txt.maxscroll;
tab.render();
if ((_local4 != -1) && (tab.selected != _local4)) {
tab.mcSurface["mcBoton" + _local4].mcContent.mcBlink.gotoAndStop(2);
}
}
function onSendInviteUser(obj) {
if (_global.gIgnores.find("", obj.__userName) > -1) {
return(undefined);
}
if ((obj.__idUser == rg.idUser) || ((!_global.rg._lookMatch) && (_global.escena == "Juego"))) {
return(undefined);
}
if ((_level.mcMessages.mcWindow._currentframe != 19) && (_global.gOptions.data.invite)) {
_level.mcMessages.mcWindow.Escape();
_level.attachMovie("mcMessages", "mcMessages", _level.getNextHighestDepth());
_level.mcMessages.mcWindow.gotoAndStop("fInvite");
_level.mcMessages.mcWindow.userName = obj.__userName;
_level.mcMessages.mcWindow.idMatch = obj.idMatch;
_level.mcMessages.mcWindow.initBet = obj.initBet;
} else if (_level.mcMessages.mcWindow.lstUsuarios.dataProvider.find("label", obj.__userName) == -1) {
_level.mcMessages.mcWindow.lstUsuarios.addItem({label:obj.__userName, data:obj.idMatch, initBet:obj.initBet});
}
}
function onBeginCountDown(obj) {
if (obj.__idUser == _global.rg.idUser) {
return(undefined);
}
var _local3 = gMatchs.find("idMatch", rg.idMatch);
if (gMatchs[_local3].users[0] == obj.__idUser) {
if (_root.mcConectado.mcVersus.mcCountDown) {
_root.mcConectado.mcVersus.mcCountDown.play();
} else if (_global.escena == "Conexion") {
_root.play();
}
}
}
function onEndCountDown(obj) {
if (obj.__idUser == _global.rg.idUser) {
return(undefined);
}
var _local3 = gMatchs.find("idMatch", rg.idMatch);
if (gMatchs[_local3].users[0] == obj.__idUser) {
if (_global.escena == "Conexion") {
_root.saveChatState();
_root.play();
}
}
}
function onUserIncreaseBet(obj) {
_global.intervalMngr.clearOneInterval("countDown");
_root.mcBetWindow._visible = false;
switch (obj.status) {
case -1 :
_global.game.pauseOff();
if (_global.game.ignoreQuerys) {
_global.parentScene.mcGameMessages._visible = false;
} else {
_global.game.showMessage("fCancelBet", false);
}
break;
case 0 :
_global.game.pauseOn();
if (!_global.game.ignoreQuerys) {
_global.game.showMessage("fIncreaseBet", true);
_root.mcGameMessages.mcWindow.txtMsg.text = ((obj.userName + " quiere apostar ") + obj.increase) + " $ m\u00E1s.\n\u00BFQuieres aceptar la apuesta?";
} else {
_global.rg.send(("fn'onIncreaseBet'idUser&" + rg.idUser) + ";accept%0");
}
break;
case 1 :
_global.game.pauseOff();
_global.game.maxBet = obj.maxBet;
_global.game.myBet = obj.bet;
_global.game.showMessage("fAcceptBet", false);
}
}
function onUserSaveMatch(obj) {
_global.intervalMngr.clearOneInterval("countDown");
_root.mcOptionsWindow._visible = false;
switch (obj.status) {
case -1 :
_global.game.pauseOff();
if (_global.game.ignoreQuerys) {
_global.parentScene.mcGameMessages._visible = false;
} else {
_global.game.showMessage("fCancelSave", false);
}
break;
case 0 :
_global.game.pauseOn();
if (!_global.game.ignoreQuerys) {
_global.game.showMessage("fSaveMatch", true);
_root.mcGameMessages.mcWindow.txtMsg.text = obj.userName + " quiere guardar la partida.\n\u00BFQuieres guardarla?";
} else {
_global.rg.send(("fn'onSaveMatch'idUser&" + rg.idUser) + ";accept%0");
}
break;
case 1 :
_global.game.pauseOff();
_level.mcMessages.mcWindow.Escape();
_level.attachMovie("mcMessages", "mcMessages", _level.getNextHighestDepth());
_level.mcMessages.mcWindow.gotoAndStop("fSuccessSave");
_global.intervalMngr.clearAllInterval();
delete _global.intervalMngr;
delete _global.game;
delete _global.loadGame;
delete _global.scene;
delete _global.parentScene;
_global.cFrame = "fSala";
}
}
function onUserLoadMatch(obj) {
_global.intervalMngr.clearOneInterval("countDown");
_root.mcOptionsWindow._visible = false;
switch (obj.status) {
case -1 :
_global.game.pauseOff();
if (_global.game.ignoreQuerys) {
_global.parentScene.mcGameMessages._visible = false;
} else {
_global.game.showMessage("fCancelLoad", false);
}
break;
case 0 :
_global.game.pauseOn();
if (!_global.game.ignoreQuerys) {
_global.game.showMessage("fLoadMatch", true);
if (_global.game.myBet == 0) {
_root.mcGameMessages.mcWindow.txtMsg.text = ((((obj.userName + " quiere cargar la partida.\n") + obj.matchName) + " que fue guardada\n el dia ") + obj.date) + "\n\u00BFQuieres cargarla?";
} else {
_root.mcGameMessages.mcWindow.txtMsg.text = ((((obj.userName + " quiere cargar la partida.\n") + obj.matchName) + " que fue guardada\n el dia ") + obj.date) + "\n Recuerda que la apuesta actual\n se anulara \u00BFQuieres cargarla?";
}
} else {
_global.rg.send(("fn'onLoadMatch'idUser&" + rg.idUser) + ";accept%0");
}
break;
case 1 :
_global.game.pauseOff();
_global.rg.mPasswd = _global.parentScene.mcOptionsWindow.lstCargar.selectedItem.mPasswd;
_global.game.deleteMatchFromList(obj.obj.codpartida);
_global.parentScene.mcOptionsWindow.gotoAndStop("fservidor");
_global.intervalMngr.clearAllInterval();
_global.loadGame = new Object();
_global.loadGame = obj.obj.clone();
_global.parentScene.mcGameMessages.mcWindow.gotoAndStop("fSuccessLoad");
_global.scene.gotoAndStop(1);
break;
case 2 :
_global.game.pauseOff();
_global.game.showMessage("fWaitInitMatch", false);
_global.intervalMngr.clearAllInterval();
_global.loadGame = new Object();
_global.loadGame = obj.obj.clone();
_global.game.readyPlayerLoadMatch();
}
}
function onUserNullMatch(obj) {
_global.intervalMngr.clearOneInterval("countDown");
_root.mcOptionsWindow._visible = false;
switch (obj.status) {
case -1 :
_global.game.pauseOff();
if (_global.game.ignoreQuerys) {
_global.parentScene.mcGameMessages._visible = false;
} else {
_global.game.showMessage("fCancelNullMatch", false);
}
break;
case 0 :
_global.game.pauseOn();
if (!_global.game.ignoreQuerys) {
_global.game.showMessage("fNullMatch", true);
_root.mcGameMessages.mcWindow.txtMsg.text = obj.userName + " quiere anular la partida. Nadie perder\u00E1 puntos y la apuesta ser\u00E1 devuelta \u00BFAceptas?";
} else {
_global.rg.send(("fn'onNullMatch'idUser&" + rg.idUser) + ";accept%0");
}
break;
case 1 :
_level.mcMessages.mcWindow.Escape();
_level.attachMovie("mcMessages", "mcMessages", _level.getNextHighestDepth());
_level.mcMessages.mcWindow.gotoAndStop("fSuccessNullMatch");
_global.intervalMngr.clearAllInterval();
delete _global.intervalMngr;
delete _global.game;
delete _global.loadGame;
delete _global.scene;
delete _global.parentScene;
_global.cFrame = "fSala";
break;
case 23 :
_level.mcMessages.mcWindow.Escape();
_level.attachMovie("mcMessages", "mcMessages", _level.getNextHighestDepth());
_level.mcMessages.mcWindow.gotoAndStop("fErrorExtra");
_level.mcMessages.mcWindow.txtMsg.text = "La partida se ha anulado por irregularidades en el resultado.";
_global.intervalMngr.clearAllInterval();
delete _global.intervalMngr;
delete _global.game;
delete _global.loadGame;
delete _global.scene;
delete _global.parentScene;
_global.cFrame = "fSala";
}
}
function onUserResetBet(obj) {
_root.mcBetWindow._visible = false;
switch (obj.status) {
case -1 :
_global.game.pauseOff();
if (_global.game.ignoreQuerys) {
_global.parentScene.mcGameMessages._visible = false;
} else {
_global.game.showMessage("fCancelResetBet", false);
}
break;
case 0 :
_global.game.pauseOn();
if (!_global.game.ignoreQuerys) {
_global.game.showMessage("fResetBet", true);
_root.mcGameMessages.mcWindow.txtMsg.text = obj.userName + " quiere anular la apuesta.\n\u00BFQuieres anular la apuesta?";
} else {
_global.rg.send(("fn'onResetBet'idUser&" + rg.idUser) + ";accept%0");
}
break;
case 1 :
_global.game.pauseOff();
_global.game.maxBet = _global.game.maxBet + _global.game.myBet;
_global.game.myBet = 0;
_global.game.showMessage("fOkResetBet", false);
}
}
function onKickMe(obj) {
_level.mcMessages.mcWindow.Escape();
_level.attachMovie("mcMessages", "mcMessages", _level.getNextHighestDepth());
_level.mcMessages.mcWindow.gotoAndStop("fKick");
}
function onKick() {
_global.rg.close();
_root.gotoAndStop("fKick");
}
function onShutDown() {
_global.rg.close();
_root.gotoAndPlay("fError");
}
function onBanPC(obj) {
var _local3 = SharedObject.getLocal("protection", "/");
_local3.data.code = obj.code;
_local3.data.userName = obj.userName;
_local3.data.date = obj.date;
_local3.data.ip = obj.ip;
_local3.flush();
_global.rg.close();
_root.gotoAndPlay("fBan");
var _local5 = parseDate(obj.date);
_root.mcBan.txtDate.text = (_local5.date + " ") + _local5.time;
}
function onCheat() {
_global.rg.close();
gotoAndStop ("fCheat");
}
function onTimeOut() {
_global.rg.close();
gotoAndStop ("fTimeOut");
}
function onDebt() {
_global.rg.close();
gotoAndStop ("fDebt");
}
function onAllReady(obj) {
_global.game.allReady = true;
_level.mcMessages.mcWindow.Escape();
_level.mcMessagesStatistics.mcWindow.Escape();
if (_global.game.codLoadMatch == -1) {
if (_global.game.imSpectator()) {
_global.game.spectatorQueue.splice(0, _global.game.spectatorQueue.length);
_global.game.readyNewMatch();
}
_global.game.beginNewMatch(obj);
} else {
_global.game.beginPlayerLoadMatch(obj);
}
}
function onListSaveMatch(obj) {
if (_global.escena == "Juego") {
_root.mcOptionsWindow.lstCargar.onChange = function (item, datos) {
_root.mcOptionsWindow.btnCargarOK.enabled = ((_root.mcOptionsWindow.lstCargar.dataProvider.length > 0) && (_root.mcOptionsWindow.lstCargar.selectedIndex != undefined)) && (_global.game.isMyTurn());
};
_root.mcOptionsWindow.lstCargar.onRenderRow = function (item, datos) {
item.txtMatchName.text = datos.matchName;
var _local6 = parseDate(datos.date);
item.txtDate.text = (_local6.date + " ") + _local6.time;
item.txtBet.text = datos.bet * _global.game.numPlayers;
var _local3 = true;
if (_global.game.numPlayers == datos.game.m_numPlayers) {
var _local2 = 0;
while (_local2 < datos.game.m_numPlayers) {
_local3 = _local3 && (datos.game.m_initNameList.find("", _global.game.nameList[_local2]) != -1);
_local2++;
}
} else {
_local3 = false;
}
if (_local3) {
item.mcBG._visible = true;
item.txtMatchName.textColor = 0;
item.txtDate.textColor = 0;
item.txtBet.textColor = 0;
} else {
item.mcBG._visible = false;
item.txtMatchName.textColor = 5592405 /* 0x555555 */;
item.txtDate.textColor = 5592405 /* 0x555555 */;
item.txtBet.textColor = 5592405 /* 0x555555 */;
}
};
var _local4 = 0;
while (_local4 < obj.obj.length) {
obj.obj[_local4].game = Serialize.decode(obj.obj[_local4].game);
if (obj.obj[_local4].codpartida != _global.game.codLoadMatch) {
_root.mcOptionsWindow.lstCargar.dataProvider = obj.obj.clone();
}
_local4++;
}
} else {
_root.mcConectado.lstCargar.onRenderRow = function (item, datos) {
item.txtMatchName.text = datos.matchName;
var _local2 = parseDate(datos.date);
item.txtDate.text = (_local2.date + " ") + _local2.time;
item.txtBet.text = datos.bet * datos.maxUsers;
};
var _local4 = 0;
while (_local4 < obj.obj.length) {
obj.obj[_local4].game = Serialize.decode(obj.obj[_local4].game);
_local4++;
}
_root.mcConectado.lstCargar.dataProvider = obj.obj.clone();
_root.mcConectado.mcListaPartidas.lstMatchs.render();
}
}
function parseDate(pDate) {
var _local1 = pDate.split(" ");
var _local2 = new Object();
_local2.time = _local1[1];
_local1 = _local1[0].split("-");
_local2.date = (((_local1[2] + "-") + _local1[1]) + "-") + _local1[0];
return(_local2);
}
function onUserLeaveStartMatch(obj) {
_global.game.userLeaveMatch(obj.name);
}
function onGameEvent(obj) {
if (_global.game.imWaitingSpectator()) {
return(undefined);
}
if (_root.mcGameMessages._visible && (_root.mcGameMessages.mcWindow._currentframe == 1)) {
_root.mcGameMessages._visible = false;
}
if (obj.pushed == undefined) {
obj.pushed = true;
_global.game.qEvent.push(obj);
if ((_global.game.qEvent.length > 1) || (_global.game.imLoadingSpectator)) {
return(undefined);
}
}
_global.rg[obj.event](obj);
}
function onRequestMatchInfo(obj) {
function wait(obj) {
if (_global.scene._currentframe > 1) {
_global.game.spectatorLoadMatch(obj);
clearInterval(id_wait);
}
}
if (((obj.__idUser == _global.rg.idUser) || (!_global.game.imWaitingSpectator())) || (_global.game.imLoadingSpectator)) {
return(undefined);
}
_global.game.imLoadingSpectator = _global.game.imSpectator();
_global.game.spectatorQueue.splice(0, _global.game.spectatorQueue.length);
var id_wait = setInterval(wait, 10, obj);
}
function onNullMatch() {
_global.game.initPlayerLoadMatch();
}
function onEndMatch() {
_global.game.endedMatch = true;
if (_global.game.imSpectator()) {
return(undefined);
}
if (_global.game.isMyTurn()) {
_global.game.sendInfoToSpectators();
}
_global.game.spectatorQueue.splice(0, _global.game.spectatorQueue.length);
if (_global.game.iHaveWon()) {
_global.game.onWinMatch();
_global.sounds.playSound("victoria");
} else if (_global.game.iHaveDraw()) {
_global.game.onDrawMatch();
_global.sounds.playSound("empate");
} else if (_global.game.iHaveLost()) {
_global.game.onLoseMatch();
_global.sounds.playSound("derrota");
}
_global.game.showResults(_global.game.myTurn);
}
function onJoinTricky(obj) {
if (obj.error == 0) {
if (obj.users.length > 0) {
if (_global.escena == "Juego") {
return(undefined);
}
_level.mcMessages.mcWindow.Escape();
_level.attachMovie("mcMessages", "mcMessages", _level.getNextHighestDepth());
_level.mcMessages.mcWindow.gotoAndStop("fTrickies");
} else {
_level.mcMessages.mcWindow.Escape();
_level.attachMovie("mcMessages", "mcMessages", _level.getNextHighestDepth());
_level.mcMessages.mcWindow.gotoAndStop("fNoTrickies");
}
}
}
function onPrevTimeOut(obj) {
_global.game.onPrevTimeOut(obj.idUser);
}
function onAlivePrevTimeOut(obj) {
_global.game.onAlivePrevTimeOut(obj.idUser);
}
function saveChatState() {
if (_global.gChatTabs != undefined) {
return(undefined);
}
_global.gChatTabs = new Array();
var _local4 = rutaChat.tab;
var _local3 = 0;
while (_local3 < _local4.tabs.length) {
var _local2 = new Object();
_local2.idUser = _local4.tabs[_local3].idUser;
_local2.codservidor = _local4.tabs[_local3].codservidor;
_local2.serverID = _local4.tabs[_local3].serverID;
_local2.label = _local4.tabs[_local3].label;
_local2.num = _local4.tabs[_local3].num;
_local2.c1 = _local4.tabs[_local3].c1;
_local2.c2 = _local4.tabs[_local3].c2;
_local2.c3 = _local4.tabs[_local3].c3;
_local2.c4 = _local4.tabs[_local3].c4;
_local2.selected = _local4.tabs[_local3].selected;
_local2.blink = _local4.tabs[_local3].blink;
_local2.txt = rutaChat["mc" + _local2.label].txt.obj;
_global.gChatTabs.push(_local2);
_local3++;
}
}
function loadChatState() {
if (_global.gChatTabs == undefined) {
return(undefined);
}
var _local4 = rutaChat.tab;
var _local6 = gChatTabs.length;
var _local3 = 0;
while (_local3 < _local6) {
if (_local3 > 0) {
if (_global.escena == "Conexion") {
var _local5 = rutaChat.attachMovie("mcChatSala", "mc" + gChatTabs[_local3].label, rutaChat.getNextHighestDepth());
} else {
var _local5 = rutaChat.attachMovie("mcChatSalaGame", "mc" + gChatTabs[_local3].label, rutaChat.getNextHighestDepth());
}
_local5._x = rutaChat.mcSala._x;
_local5._y = rutaChat.mcSala._y;
rutaChat.cmbSmileys.swapDepths(rutaChat.getNextHighestDepth());
rutaChat.btnLeft.swapDepths(rutaChat.getNextHighestDepth());
rutaChat.btnRight.swapDepths(rutaChat.getNextHighestDepth());
rutaChat.btnClose.swapDepths(rutaChat.getNextHighestDepth());
rutaChat.newTab = true;
_local4.addTab(gChatTabs[_local3].label, true);
}
_local4.tabs[_local4.tabs.length - 1].idUser = gChatTabs[_local3].idUser;
_local4.tabs[_local4.tabs.length - 1].codservidor = gChatTabs[_local3].codservidor;
_local4.tabs[_local4.tabs.length - 1].serverID = gChatTabs[_local3].serverID;
_local4.tabs[_local4.tabs.length - 1].label = gChatTabs[_local3].label;
_local4.tabs[_local4.tabs.length - 1].num = gChatTabs[_local3].num;
_local4.tabs[_local4.tabs.length - 1].c1 = gChatTabs[_local3].c1;
_local4.tabs[_local4.tabs.length - 1].c2 = gChatTabs[_local3].c2;
_local4.tabs[_local4.tabs.length - 1].c3 = gChatTabs[_local3].c3;
_local4.tabs[_local4.tabs.length - 1].c4 = gChatTabs[_local3].c4;
_local4.tabs[_local4.tabs.length - 1].selected = gChatTabs[_local3].selected;
_local4.tabs[_local4.tabs.length - 1].blink = gChatTabs[_local3].blink;
rutaChat["mc" + gChatTabs[_local3].label].txt.__selected = gChatTabs[_local3].selected;
rutaChat["mc" + gChatTabs[_local3].label].txt.__txt = gChatTabs[_local3].txt;
rutaChat["mc" + gChatTabs[_local3].label].txt.__j = _local3;
rutaChat["mc" + gChatTabs[_local3].label].txt.__len = _local6;
rutaChat["mc" + gChatTabs[_local3].label].txt.onLoad = function () {
if (this.__selected) {
this._parent._parent.tab.selected = this.__j;
}
this._parent._parent.tab.tabs[this.__j].selected = this.__selected;
this._parent._visible = this.__selected;
this.obj = this.__txt;
if (this.__j == (this.__len - 1)) {
this._parent._parent.tab.render();
}
delete this.onEnterFrame;
};
_local3++;
}
_global.gChatTabs = undefined;
}
stop();
_global.socketXML.sendAndLoad(((_global.OPQAURL + "opqa.php?fn=getGamesInfo") + "&refresh=") + new Date().getTime(), _global.gamesInfoXML);
Mouse.show();
tmo.clearAll();
Mouse.show();
unloadMovie (_level5);
unloadMovie (_level6);
Key.removeListener(_global.keyLst);
_global.keyLst = new Object();
Key.addListener(_global.keyLst);
var gFrame = "";
_global.rg = new cReGAMES();
_global.gGames = new Object();
_global.gRooms = new Object();
_global.gMatchs = new Object();
_global.gUsers = new Object();
_global.rutaChat;
_global.rutaListaUsuariosSala;
_global.rutaListaUsuariosPartida;
_global.rutaListaUsuariosAmigos;
_global.escena = "Conexion";
_global.gFlood = new Object();
_global.systemColor = "FFFFFF";
_global.gFlood.floodTime = 3000;
_global.gFlood.maxNumMsg = 3;
_global.gFlood.punishment = 20;
_global.gFlood.inc = 5;
_global.gFlood.idFSecond = -1;
_global.gFlood.swBtnEnviar = false;
_global.gFlood.timeAcu = 0;
_global.gFlood.numMsg = 0;
_global.gFlood.oldTimer = 0;
_global.gFlood.sec = 0;
_global.gIgnores = new Array();
_global.cFrame = "fSala";
_global.mosaico_logotipos();
rg.onConnect = onConnect;
rg.onClose = onClose;
rg.onWelcome = onWelcome;
rg.onLogin = onLogin;
rg.onIdleTimeExceded = onIdleTimeExceded;
rg.onGetGames = onGetGames;
rg.onGetRooms = onGetRooms;
rg.onGetMatchs = onGetMatchs;
rg.onGetRoomConnections = onGetRoomConnections;
rg.onGetMatchConnections = onGetMatchConnections;
rg.onCreateMatch = onCreateMatch;
rg.onUpdateMatch = onUpdateMatch;
rg.onUserCreateMatch = onUserCreateMatch;
rg.onChgMatchOwner = onChgMatchOwner;
rg.onUserDeleteMatch = onUserDeleteMatch;
rg.onUserUpdateMatch = onUserUpdateMatch;
rg.onUserJoinRoom = onUserJoinRoom;
rg.onUserJoinMatch = onUserJoinMatch;
rg.onUserLookMatch = onUserLookMatch;
rg.onUserLeaveRoom = onUserLeaveRoom;
rg.onUserLeaveMatch = onUserLeaveMatch;
rg.onUserLookLeaveMatch = onUserLookLeaveMatch;
rg.onJoinGame = onJoinGame;
rg.onJoinRoom = onJoinRoom;
rg.onJoinMatch = onJoinMatch;
rg.onLookMatch = onLookMatch;
rg.onLeaveGame = onLeaveGame;
rg.onLeaveRoom = onLeaveRoom;
rg.onLeaveMatch = onLeaveMatch;
rg.onSendObjRoom = onSendObjRoom;
rg.onSendObjMatch = onSendObjMatch;
rg.onSendObjUser = onSendObjUser;
rg.onPong = onPong;
rg.onCheat = onCheat;
rg.onTimeOut = onTimeOut;
rg.onDebt = onDebt;
rg.onLoadFriendList = onLoadFriendList;
rg.onUserJoinOPQA = onUserJoinOPQA;
rg.onUserLeaveOPQA = onUserLeaveOPQA;
rg.onHubDown = onHubDown;
rg.gonHubUp = onHubUp;
rg.onLeafDown = onLeafDown;
rg.onLeafUp = onLeafUp;
rg.onSendChatRoom = onSendChatRoom;
rg.onSendChatMatch = onSendChatMatch;
rg.onSendChatUser = onSendChatUser;
rg.onSendInviteUser = onSendInviteUser;
rg.onBeginCountDown = onBeginCountDown;
rg.onEndCountDown = onEndCountDown;
rg.onUserIncreaseBet = onUserIncreaseBet;
rg.onUserSaveMatch = onUserSaveMatch;
rg.onUserLoadMatch = onUserLoadMatch;
rg.onUserNullMatch = onUserNullMatch;
rg.onUserResetBet = onUserResetBet;
rg.onKickMe = onKickMe;
rg.onKick = onKick;
rg.onShutDown = onShutDown;
rg.onBanPC = onBanPC;
rg.onAllReady = onAllReady;
rg.onListSaveMatch = onListSaveMatch;
rg.onUserLeaveStartMatch = onUserLeaveStartMatch;
rg.onGameEvent = onGameEvent;
rg.onRequestMatchInfo = onRequestMatchInfo;
rg.onNullMatch = onNullMatch;
rg.onEndMatch = onEndMatch;
rg.onJoinTricky = onJoinTricky;
rg.onPrevTimeOut = onPrevTimeOut;
rg.onAlivePrevTimeOut = onAlivePrevTimeOut;
Frame 141
stop();
Mouse.show();
_quality = _global.gOptions.data.quality;
_global.escena = "Conexion";
cfci.stop();
cfco.stop();
delete cfci;
delete cfco;
_global.connectionPing = undefined;
var i = 0;
while (i < 1000) {
clearInterval(i);
i++;
}
for (var i in _global.sounds) {
_global.sounds[i].stop();
}
Frame 142
stop();
Mouse.show();
_quality = _global.gOptions.data.quality;
_global.escena = "Conexion";
cfci.stop();
cfco.stop();
delete cfci;
delete cfco;
_global.connectionPing = undefined;
var i = 0;
while (i < 1000) {
clearInterval(i);
i++;
}
for (var i in _global.sounds) {
_global.sounds[i].stop();
}
Frame 143
stop();
Mouse.show();
_quality = _global.gOptions.data.quality;
_global.escena = "Conexion";
cfci.stop();
cfco.stop();
delete cfci;
delete cfco;
getURL ("javascript:swReload=false;void(0);");
_global.rg.destroy();
delete _global.rg;
_global.intervalMngr.clearAllInterval();
delete _global.intervalMngr;
_global.connectionPing = undefined;
unloadMovie (_level5);
unloadMovie (_level6);
var i = 0;
while (i < 1000) {
clearInterval(i);
i++;
}
for (var i in _global.sounds) {
_global.sounds[i].stop();
}
Frame 144
stop();
Mouse.show();
_quality = _global.gOptions.data.quality;
_global.escena = "Conexion";
cfci.stop();
cfco.stop();
delete cfci;
delete cfco;
getURL ("javascript:swReload=false;void(0);");
_global.rg.destroy();
delete _global.rg;
_global.intervalMngr.clearAllInterval();
delete _global.intervalMngr;
_global.connectionPing = undefined;
unloadMovie (_level5);
unloadMovie (_level6);
var i = 0;
while (i < 1000) {
clearInterval(i);
i++;
}
for (var i in _global.sounds) {
_global.sounds[i].stop();
}
Frame 145
stop();
Mouse.show();
_quality = _global.gOptions.data.quality;
_global.escena = "Conexion";
cfci.stop();
cfco.stop();
delete cfci;
delete cfco;
getURL ("javascript:swReload=false;void(0);");
_global.rg.destroy();
delete _global.rg;
_global.intervalMngr.clearAllInterval();
delete _global.intervalMngr;
_global.connectionPing = undefined;
unloadMovie (_level5);
unloadMovie (_level6);
var i = 0;
while (i < 1000) {
clearInterval(i);
i++;
}
for (var i in _global.sounds) {
_global.sounds[i].stop();
}
Frame 146
stop();
Mouse.show();
_quality = _global.gOptions.data.quality;
_global.escena = "Conexion";
cfci.stop();
cfco.stop();
delete cfci;
delete cfco;
getURL ("javascript:swReload=false;void(0);");
_global.rg.destroy();
delete _global.rg;
_global.intervalMngr.clearAllInterval();
delete _global.intervalMngr;
_global.connectionPing = undefined;
unloadMovie (_level5);
unloadMovie (_level6);
var i = 0;
while (i < 1000) {
clearInterval(i);
i++;
}
for (var i in _global.sounds) {
_global.sounds[i].stop();
}
Frame 147
stop();
Mouse.show();
_quality = _global.gOptions.data.quality;
_global.escena = "Conexion";
cfci.stop();
cfco.stop();
delete cfci;
delete cfco;
getURL ("javascript:swReload=false;void(0);");
_global.rg.destroy();
delete _global.rg;
_global.intervalMngr.clearAllInterval();
delete _global.intervalMngr;
_global.connectionPing = undefined;
unloadMovie (_level5);
unloadMovie (_level6);
var i = 0;
while (i < 1000) {
clearInterval(i);
i++;
}
for (var i in _global.sounds) {
_global.sounds[i].stop();
}
Frame 148
stop();
Mouse.show();
_quality = _global.gOptions.data.quality;
_global.escena = "Conexion";
cfci.stop();
cfco.stop();
delete cfci;
delete cfco;
getURL ("javascript:swReload=false;void(0);");
_global.rg.destroy();
delete _global.rg;
_global.intervalMngr.clearAllInterval();
delete _global.intervalMngr;
_global.connectionPing = undefined;
unloadMovie (_level5);
unloadMovie (_level6);
var i = 0;
while (i < 1000) {
clearInterval(i);
i++;
}
for (var i in _global.sounds) {
_global.sounds[i].stop();
}
Frame 149
stop();
Mouse.show();
_quality = _global.gOptions.data.quality;
_global.escena = "Conexion";
cfci.stop();
cfco.stop();
delete cfci;
delete cfco;
getURL ("javascript:swReload=false;void(0);");
_global.rg.destroy();
delete _global.rg;
_global.intervalMngr.clearAllInterval();
delete _global.intervalMngr;
_global.connectionPing = undefined;
unloadMovie (_level5);
unloadMovie (_level6);
var i = 0;
while (i < 1000) {
clearInterval(i);
i++;
}
for (var i in _global.sounds) {
_global.sounds[i].stop();
}
Frame 150
stop();
Mouse.show();
_quality = _global.gOptions.data.quality;
_global.escena = "Conexion";
cfci.stop();
cfco.stop();
delete cfci;
delete cfco;
getURL ("javascript:swReload=false;void(0);");
_global.rg.destroy();
delete _global.rg;
_global.intervalMngr.clearAllInterval();
delete _global.intervalMngr;
_global.connectionPing = undefined;
unloadMovie (_level5);
unloadMovie (_level6);
var i = 0;
while (i < 1000) {
clearInterval(i);
i++;
}
for (var i in _global.sounds) {
_global.sounds[i].stop();
}
Frame 151
stop();
Mouse.show();
_quality = _global.gOptions.data.quality;
_global.escena = "Conexion";
cfci.stop();
cfco.stop();
delete cfci;
delete cfco;
getURL ("javascript:swReload=false;void(0);");
_global.rg.destroy();
delete _global.rg;
_global.intervalMngr.clearAllInterval();
delete _global.intervalMngr;
_global.connectionPing = undefined;
unloadMovie (_level5);
unloadMovie (_level6);
var i = 0;
while (i < 1000) {
clearInterval(i);
i++;
}
for (var i in _global.sounds) {
_global.sounds[i].stop();
}
Frame 152
stop();
Mouse.show();
_root.mcCursor.removeMovieClip();
_quality = _global.gOptions.data.quality;
_global.escena = "Conexion";
cfci.stop();
cfco.stop();
delete cfci;
delete cfco;
getURL ("javascript:swReload=false;void(0);");
_global.rutaChat = _root.mcConectado.mcChat;
_global.rutaListaUsuariosSala = _root.mcConectado.mcListaUsuariosSala.lstUsuarios;
_global.rutaListaUsuariosPartida = _root.mcConectado.mcListaUsuariosPartida.lstUsuarios;
_global.rutaListaUsuariosAmigos = _root.mcConectado.mcListaUsuariosAmigos.lstAmigos;
var i = 0;
while (i < 1000) {
if ((i != _global.rg.idTimeOut) && (i != _global.rg.idIdleTimeExceded)) {
clearInterval(i);
}
i++;
}
for (var i in _global.sounds) {
_global.sounds[i].stop();
}
unloadMovie (_level7);
if (_level6 == undefined) {
loadMovieNum (_global.OPQAURL + "juegos/moderator/moderatorsList.swf", 6);
}
if ((_level5 == undefined) && ((_global.rg.type == 0) || (_global.rg.type == 4))) {
loadMovieNum (_global.OPQAURL + "juegos/moderator/moderator.swf", 5);
}
Instance of Symbol 439 MovieClip [zButton] in Frame 152
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "radioGroup";
label = "Aceptar";
selected = false;
skin = "_skinButtonSalir";
type = "Button";
}
onClipEvent (load) {
if (rg.type != 2) {
this._x = 50.5;
this._y = 456.4;
}
}
on (release) {
this._onRelease();
this.enabled = false;
_global.rg.close();
_global.connectionPing = undefined;
_parent.gotoAndStop("fPortada");
}
Instance of Symbol 439 MovieClip [zButton] "btnRegistrate" in Frame 152
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "radioGroup";
label = "Aceptar";
selected = false;
skin = "_skinButtonRegistrate";
type = "Button";
}
onClipEvent (load) {
this._visible = rg.type == 2;
}
on (release) {
this._onRelease();
this.enabled = false;
getURL ("http://www.opqa.com", "_blank");
}
Frame 153
stop();
unloadMovie (_level7);
Mouse.show();
var i = 0;
while (i < 1000) {
if ((i != _global.rg.idTimeOut) && (i != _global.rg.idIdleTimeExceded)) {
clearInterval(i);
}
i++;
}
_global.rutaChat = this.mcChatWindow;
_global.rutaListaUsuariosSala = mcChatWindow.mcListaUsuariosSala.lstUsuarios;
_global.rutaListaUsuariosPartida = mcChatWindow.mcListaUsuariosPartida.lstUsuarios;
_global.rutaListaUsuariosAmigos = mcChatWindow.mcListaUsuariosAmigos.lstAmigos;
_global.escena = "Juego";
mcRecuerda._visible = _global.rg._lookMatch;
mcGameMessages.mcWindow.gotoAndStop("fWaitInitMatch");
mcGameMessages._visible = true;
mcChatWindow._visible = false;
mcOptionsWindow._visible = false;
mcBetWindow._visible = false;
mcExitWindow._visible = false;
loadChatState();
if ((_global.rutaChat.tab.tabs.find("label", "Partida") < 0) && (_global.gChatTabs == undefined)) {
var nue = _global.rutaChat.attachMovie("mcChatSalaGame", "mcPartida", _global.rutaChat.getNextHighestDepth());
nue._x = _global.rutaChat.mcSala._x;
nue._y = _global.rutaChat.mcSala._y;
nue._visible = false;
_global.rutaChat.cmbSmileys.swapDepths(_global.rutaChat.getNextHighestDepth());
_global.rutaChat.newTab = true;
_global.rutaChat.tab.addTab("Partida", false);
Selection.setFocus(_global.rutaChat.txtIn);
}
var cfci = new cFastChatInput(_root, 50, 400);
if (_global.gOptions.data.chat) {
var cfco = new cFastChatOutput(_root, 30, 10);
}
cfci.onSentence = function (sentence) {
rg.sendObjMatch({fn:"onSendChatMatch", msg:sentence, color:_global.gColor});
};
cfci.start();
Instance of Symbol 439 MovieClip [zButton] "btnChat" in Frame 153
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "radioGroup";
label = "Aceptar";
selected = false;
skin = "mcSkinButtonChat";
type = "Button";
}
on (release) {
this._onRelease();
_parent.mcChatWindow._visible = !_parent.mcChatWindow._visible;
_parent.mcOptionsWindow._visible = false;
_parent.mcBetWindow._visible = false;
_parent.mcExitWindow._visible = false;
_parent.mcBlinkChatButton.gotoAndStop(1);
_parent.mcBlinkChatButton._visible = false;
if (_parent.mcChatWindow._visible) {
_parent.cfci.stop();
} else {
_parent.cfci.start();
}
Selection.setFocus(_parent.mcChatWindow.txtIn);
}
Instance of Symbol 439 MovieClip [zButton] "btnOptions" in Frame 153
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = false;
groupName = "radioGroup";
label = "Aceptar";
selected = false;
skin = "mcSkinButtonOptions";
type = "Button";
}
on (release) {
this._onRelease();
_parent.cfci.stop();
_parent.mcChatWindow._visible = false;
_parent.mcOptionsWindow._visible = !_parent.mcOptionsWindow._visible;
_parent.mcBetWindow._visible = false;
_parent.mcExitWindow._visible = false;
if (_parent.mcOptionsWindow._visible) {
_parent.cfci.stop();
} else {
_parent.cfci.start();
}
}
Instance of Symbol 439 MovieClip [zButton] "btnBet" in Frame 153
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = false;
groupName = "radioGroup";
label = "Aceptar";
selected = false;
skin = "mcSkinButtonBet";
type = "Button";
}
on (release) {
this._onRelease();
_parent.cfci.stop();
_parent.mcChatWindow._visible = false;
_parent.mcOptionsWindow._visible = false;
_parent.mcBetWindow._visible = !_parent.mcBetWindow._visible;
_parent.mcExitWindow._visible = false;
_parent.mcBetWindow.mcBet.gotoAndPlay(1);
if (_parent.mcBetWindow._visible) {
_parent.cfci.stop();
} else {
_parent.cfci.start();
}
}
Instance of Symbol 439 MovieClip [zButton] "btnExit" in Frame 153
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "radioGroup";
label = "Aceptar";
selected = false;
skin = "mcSkinButtonExit";
type = "Button";
}
on (release) {
this._onRelease();
if (_global.rg._lookMatch || (_global.game.endedMatch)) {
_level.mcMessagesStatistics.mcWindow.Escape();
_global.rg.leaveMatch(true);
return(undefined);
}
_parent.cfci.stop();
_parent.mcChatWindow._visible = false;
_parent.mcOptionsWindow._visible = false;
_parent.mcBetWindow._visible = false;
_parent.mcExitWindow._visible = !_parent.mcExitWindow._visible;
if (_parent.mcExitWindow._visible) {
_parent.cfci.stop();
} else {
_parent.cfci.start();
}
}
Instance of Symbol 1961 MovieClip [mcExitWindow] "mcExitWindow" in Frame 153
onClipEvent (load) {
if (_global.rg.type == 2) {
this.gotoAndStop("fInvitado");
}
}
Instance of Symbol 439 MovieClip [zButton] "btnModerators" in Frame 153
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "";
label = "";
selected = false;
skin = "_skinButtonPlaca";
type = "Button";
}
on (release) {
_level6.onCheckModerators();
}
on (rollOver, dragOver) {
var THIS = this;
var wait = function () {
THIS.mcToolTip = _root.mcConectado.attachMovie("mcToolTips", "mcToolTip", 100);
THIS.mcToolTip.gotoAndStop(THIS._name.toString());
THIS.onMouseMove = function () {
THIS.mcToolTip._x = _root._xmouse - (THIS.mcToolTip._width / 2);
THIS.mcToolTip._y = _root._ymouse - THIS.mcToolTip._height;
updateAfterEvent();
};
THIS.onMouseMove();
};
clearInterval(this.idWait);
this.idWait = tmo.setTimeout(wait, 800);
}
on (releaseOutside, rollOut, dragOut) {
clearInterval(this.idWait);
delete this.onMouseMove;
this.mcToolTip.removeMovieClip();
}
Instance of Symbol 439 MovieClip [zButton] "btnConsole" in Frame 153
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "";
label = "";
selected = false;
skin = "_skinButtonModConsole";
type = "Button";
}
onClipEvent (load) {
this._visible = (_global.rg.type == 0) || (_global.rg.type == 4);
}
on (release) {
_level5.onCheckConsole();
}
on (rollOver, dragOver) {
var THIS = this;
var wait = function () {
THIS.mcToolTip = _root.mcConectado.attachMovie("mcToolTips", "mcToolTip", 100);
THIS.mcToolTip.gotoAndStop(THIS._name.toString());
THIS.onMouseMove = function () {
THIS.mcToolTip._x = _root._xmouse - (THIS.mcToolTip._width / 2);
THIS.mcToolTip._y = _root._ymouse - THIS.mcToolTip._height;
updateAfterEvent();
};
THIS.onMouseMove();
};
clearInterval(this.idWait);
this.idWait = tmo.setTimeout(wait, 800);
}
on (releaseOutside, rollOut, dragOut) {
clearInterval(this.idWait);
delete this.onMouseMove;
this.mcToolTip.removeMovieClip();
}
Symbol 17 MovieClip [_skinButtonPlaca] Frame 1
stop();
Symbol 21 MovieClip [mcFicha0] Frame 1
stop();
Symbol 21 MovieClip [mcFicha0] Frame 2
stop();
Symbol 24 MovieClip [mcFicha1] Frame 1
stop();
Symbol 24 MovieClip [mcFicha1] Frame 2
stop();
Symbol 28 MovieClip [zVScrollBar] Frame 1
#initclip 26
Object.registerClass("zVScrollBar", czVScrollBar);
#endinitclip
Symbol 35 MovieClip Frame 1
stop();
txtLabel.textColor = 0;
Symbol 35 MovieClip Frame 2
txtLabel.textColor = 0;
Symbol 35 MovieClip Frame 3
txtLabel.textColor = 16777215 /* 0xFFFFFF */;
Symbol 35 MovieClip Frame 4
txtLabel.textColor = 16777215 /* 0xFFFFFF */;
Symbol 35 MovieClip Frame 5
txtLabel.textColor = 16777215 /* 0xFFFFFF */;
Symbol 35 MovieClip Frame 6
txtLabel.textColor = 16777215 /* 0xFFFFFF */;
Symbol 35 MovieClip Frame 7
txtLabel.textColor = 16777215 /* 0xFFFFFF */;
Symbol 35 MovieClip Frame 8
txtLabel.textColor = 16777215 /* 0xFFFFFF */;
Symbol 38 MovieClip [zListBox] Frame 1
#initclip 27
Object.registerClass("zListBox", czListBox);
#endinitclip
stop();
Symbol 1976 MovieClip [__Packages.LuminicBox.Log.Logger] Frame 0
class LuminicBox.Log.Logger
{
var _loggerId, _level, _publishers, _filters;
function Logger (logId) {
if (logId && (logId.length > 0)) {
_loggerId = logId;
}
_level = LuminicBox.Log.Level.LOG;
_publishers = new Array();
_filters = new Array();
}
function setLevel(level) {
_level = level;
}
function addPublisher(publisher) {
if (!_publishers[publisher.toString()]) {
_publishers[publisher.toString()] = publisher;
}
}
function removePublisher(publisher) {
delete _publishers[publisher.toString()];
}
function getPublishers() {
return(_publishers);
}
function publish(argument, level) {
if (level.getValue() >= _level.getValue()) {
var _local2 = new LuminicBox.Log.LogEvent(_loggerId, argument, level);
for (var _local3 in _publishers) {
LuminicBox.Log.IPublisher(_publishers[_local3]).publish(_local2);
}
}
}
function log(argument) {
publish(argument, LuminicBox.Log.Level.LOG);
}
function debug(argument) {
publish(argument, LuminicBox.Log.Level.DEBUG);
}
function info(argument) {
publish(argument, LuminicBox.Log.Level.INFO);
}
function warn(argument) {
publish(argument, LuminicBox.Log.Level.WARN);
}
function error(argument) {
publish(argument, LuminicBox.Log.Level.ERROR);
}
function fatal(argument) {
publish(argument, LuminicBox.Log.Level.FATAL);
}
}
Symbol 1977 MovieClip [__Packages.LuminicBox.Log.Level] Frame 0
class LuminicBox.Log.Level
{
var _name, _value;
function Level (name, value) {
_name = name;
_value = value;
}
function getName() {
return(_name);
}
function getValue() {
return(_value);
}
function toString() {
return(getName());
}
static var ALL = new LuminicBox.Log.Level("ALL", 1);
static var LOG = new LuminicBox.Log.Level("LOG", 1);
static var DEBUG = new LuminicBox.Log.Level("DEBUG", 2);
static var INFO = new LuminicBox.Log.Level("INFO", 4);
static var WARN = new LuminicBox.Log.Level("WARN", 8);
static var ERROR = new LuminicBox.Log.Level("ERROR", 16);
static var FATAL = new LuminicBox.Log.Level("FATAL", 32);
static var NONE = new LuminicBox.Log.Level("NONE", 1024);
}
Symbol 1978 MovieClip [__Packages.LuminicBox.Log.IPublisher] Frame 0
interface LuminicBox.Log.IPublisher
{
}
Symbol 1979 MovieClip [__Packages.LuminicBox.Log.LogEvent] Frame 0
class LuminicBox.Log.LogEvent
{
var loggerId, argument, level, time;
function LogEvent (loggerId, argument, level) {
this.loggerId = loggerId;
this.argument = argument;
this.level = level;
time = new Date();
}
static function serialize(logEvent) {
var _local1 = new Object();
_local1.loggerId = logEvent.loggerId;
_local1.time = logEvent.time;
_local1.levelName = logEvent.level.getName();
_local1.argument = logEvent.argument;
return(_local1);
}
static function deserialize(o) {
var _local3 = LuminicBox.Log.Level["" + o.levelName];
var _local1 = new LuminicBox.Log.LogEvent(o.loggerId, o.argument, _local3);
_local1.time = o.time;
return(_local1);
}
}
Symbol 1980 MovieClip [__Packages.LuminicBox.Log.ConsolePublisher] Frame 0
class LuminicBox.Log.ConsolePublisher implements LuminicBox.Log.IPublisher
{
var _maxDepth;
function ConsolePublisher () {
_maxDepth = 4;
}
function set maxDepth(value) {
_maxDepth = ((_maxDepth > 255) ? 255 : (value));
//return(maxDepth);
}
function get maxDepth() {
return(_maxDepth);
}
function toString() {
return("ConsolePublisher");
}
function publish(e) {
var _local2 = LuminicBox.Log.LogEvent.serialize(e);
_local2.argument = serializeObj(_local2.argument, 1);
var _local3 = new LocalConnection();
_local3.send("_luminicbox_log_console", "log", _local2);
}
function serializeObj(o, depth) {
var _local9 = getType(o);
var _local8 = new Object();
if (!_local9.inspectable) {
_local8.value = o;
} else if (_local9.stringify) {
_local8.value = o + "";
} else if (depth <= _maxDepth) {
if ((_local9.name == "movieclip") || (_local9.name == "button")) {
_local8.id = o + "";
}
var _local4 = new Array();
if (o instanceof Array) {
var _local2 = 0;
while (_local2 < o.length) {
_local4.push({property:_local2, value:serializeObj(o[_local2], depth + 1)});
_local2++;
}
} else {
for (var _local10 in o) {
_local4.push({property:_local10, value:serializeObj(o[_local10], depth + 1)});
}
}
_local8.value = _local4;
} else {
_local8.reachLimit = true;
}
_local8.type = _local9.name;
return(_local8);
}
function getType(o) {
var _local2 = typeof(o);
var _local1 = new Object();
_local1.inspectable = true;
_local1.name = _local2;
if (((((_local2 == "string") || (_local2 == "boolean")) || (_local2 == "number")) || (_local2 == "undefined")) || (_local2 == "null")) {
_local1.inspectable = false;
} else if (o instanceof Date) {
_local1.inspectable = false;
_local1.name = "date";
} else if (o instanceof Array) {
_local1.name = "array";
} else if (o instanceof Button) {
_local1.name = "button";
} else if (o instanceof MovieClip) {
_local1.name = "movieclip";
} else if (o instanceof XML) {
_local1.name = "xml";
_local1.stringify = true;
} else if (o instanceof XMLNode) {
_local1.name = "xmlnode";
_local1.stringify = true;
} else if (o instanceof Color) {
_local1.name = "color";
}
return(_local1);
}
var _version = 0.1;
}
Symbol 1981 MovieClip [__Packages.cCookie] Frame 0
class cCookie
{
var so;
function cCookie (file) {
so = SharedObject.getLocal(file, "/");
}
function allowSharedObject() {
var _local1 = false;
var _local2 = SharedObject.getLocal("opqaCheck", "/");
_local2.data.dato = new Number();
switch (_local2.flush()) {
case true :
_local1 = 1;
break;
case false :
_local1 = 0;
break;
case "pending" :
_local1 = -1;
}
_local2.clear();
return(_local1);
}
function init() {
var _local2 = so.getSize();
if (!so.getSize()) {
so.data.userName = "";
so.data.passwd = "";
so.data.remember = false;
so.flush();
}
}
function showOptions() {
System.showSettings(1);
}
function setUser(userName, passwd, remember) {
if (userName) {
so.data.userName = userName;
}
if (passwd) {
so.data.passwd = passwd;
}
if ((remember == true) || (remember == false)) {
so.data.remember = remember;
}
}
function save() {
so.flush();
}
}
Symbol 1982 MovieClip [__Packages.tmo] Frame 0
class tmo
{
function tmo () {
}
function sys() {
}
static function clearList() {
var _local2 = true;
var _local3 = IDs.length;
var _local1 = 0;
while (_local1 < _local3) {
if (IDs[_local1] > -1) {
_local2 = false;
break;
}
_local1++;
}
if (_local2) {
IDs = [];
}
}
static function waits(fn, idx, arg) {
_global.clearInterval(IDs[idx]);
IDs[idx] = -1;
switch (arg.length) {
case 2 :
fn();
break;
case 3 :
fn(arg[2]);
break;
case 4 :
fn(arg[2], arg[3]);
break;
case 5 :
fn(arg[2], arg[3], arg[4]);
break;
case 6 :
fn(arg[2], arg[3], arg[4], arg[5]);
break;
case 7 :
fn(arg[2], arg[3], arg[4], arg[5], arg[6]);
break;
case 8 :
fn(arg[2], arg[3], arg[4], arg[5], arg[6], arg[7]);
break;
case 9 :
fn(arg[2], arg[3], arg[4], arg[5], arg[6], arg[7], arg[8]);
break;
case 10 :
fn(arg[2], arg[3], arg[4], arg[5], arg[6], arg[7], arg[8], arg[9]);
break;
case 11 :
fn(arg[2], arg[3], arg[4], arg[5], arg[6], arg[7], arg[8], arg[9], arg[10]);
break;
case 12 :
fn(arg[2], arg[3], arg[4], arg[5], arg[6], arg[7], arg[8], arg[9], arg[10], arg[11]);
}
clearList();
}
static function setTimeout(fn, time) {
IDs.push(-1);
var _local3 = IDs.length - 1;
IDs[_local3] = _global.setInterval(waits, time, fn, _local3, arguments);
return(IDs[_local3]);
}
static function clearInterval(idx) {
_global.clearInterval(idx);
var _local3 = IDs.length;
var _local2 = 0;
while (_local2 < _local3) {
if (IDs[_local2] == idx) {
IDs[_local2] = -1;
break;
}
_local2++;
}
clearList();
}
static function clearAll() {
var _local3 = IDs.length;
var _local2 = 0;
while (_local2 < _local3) {
_global.clearInterval(IDs[_local2]);
_local2++;
}
IDs = [];
}
static function get length() {
return(IDs.length);
}
static var IDs = new Array();
}
Symbol 751 MovieClip [__Packages.Serialize] Frame 0
class Serialize
{
function Serialize () {
}
static function code(obj) {
var _local2;
var _local4 = "";
var _local3 = "";
for (var _local6 in obj) {
switch (obj[_local6].__proto__) {
case Boolean.prototype :
_local4 = _local4 + ((_local6 + "%") + (obj[_local6] ? "1" : "0"));
break;
case Number.prototype :
_local4 = _local4 + (((_local6 + "&") + obj[_local6]) + ";");
break;
case String.prototype :
var _local5 = obj[_local6].length;
_local3 = "";
_local2 = 0;
while (_local2 < _local5) {
if (obj[_local6].charCodeAt(_local2) == 39) {
_local3 = _local3 + "\\'";
} else {
_local3 = _local3 + obj[_local6].charAt(_local2);
}
_local2++;
}
_local4 = _local4 + (((_local6 + "'") + _local3) + "'");
break;
case Object.prototype :
_local4 = _local4 + (((_local6 + "{") + code(obj[_local6])) + "}");
break;
case Array.prototype :
_local4 = _local4 + (((_local6 + "[") + code(obj[_local6])) + "]");
}
}
return(_local4);
}
static function decode(str) {
var _local9 = new Object();
var _local3 = new Array();
var _local4 = "";
var _local6 = "";
var _local2 = str.split("");
var _local8 = _local2.length;
var _local5 = _local3.length;
var _local1 = 0;
while (_local1 < _local8) {
if (_local5 == 0) {
switch (_local2[_local1]) {
case "%" :
_local1++;
_local9[_local4] = _local2[_local1] != "0";
_local4 = "";
break;
case "'" :
_local1++;
var _local7 = _local2[_local1].charCodeAt(0);
while ((_local7 != 39) && (_local1 < _local8)) {
if ((_local7 == 92) && (_local2[_local1 + 1].charCodeAt(0) == 39)) {
_local1++;
_local7 = _local2[_local1].charCodeAt(0);
}
_local6 = _local6 + chr(_local7);
_local1++;
_local7 = _local2[_local1].charCodeAt(0);
}
_local9[_local4] = String(_local6);
_local4 = "";
_local6 = "";
break;
case "&" :
_local1++;
_local7 = _local2[_local1].charCodeAt(0);
while (_local7 != 59) {
_local6 = _local6 + chr(_local7);
_local1++;
_local7 = _local2[_local1].charCodeAt(0);
}
_local9[_local4] = Number(_local6);
_local6 = "";
_local4 = "";
break;
case "[" :
_local3[_local5++] = _local4;
_local3[_local5++] = new Array();
_local4 = "";
break;
case "{" :
_local3[_local5++] = _local4;
_local3[_local5++] = new Object();
_local4 = "";
break;
default :
_local4 = _local4 + _local2[_local1];
}
} else {
switch (_local2[_local1]) {
case "%" :
_local1++;
_local3[_local5 - 1][_local4] = _local2[_local1].charCodeAt(0) != 48;
_local4 = "";
break;
case "'" :
_local1++;
var _local7 = _local2[_local1].charCodeAt(0);
while ((_local7 != 39) && (_local1 < _local8)) {
if ((_local7 == 92) && (_local2[_local1 + 1].charCodeAt(0) == 39)) {
_local1++;
_local7 = _local2[_local1].charCodeAt(0);
}
_local6 = _local6 + chr(_local7);
_local1++;
_local7 = _local2[_local1].charCodeAt(0);
}
_local3[_local5 - 1][_local4] = String(_local6);
_local4 = "";
_local6 = "";
break;
case "&" :
_local1++;
_local7 = _local2[_local1].charCodeAt(0);
while (_local7 != 59) {
_local6 = _local6 + chr(_local7);
_local1++;
_local7 = _local2[_local1].charCodeAt(0);
}
_local3[_local5 - 1][_local4] = Number(_local6);
_local4 = "";
_local6 = "";
break;
case "[" :
_local3[_local5++] = _local4;
_local3[_local5++] = new Array();
_local4 = "";
break;
case "{" :
_local3[_local5++] = _local4;
_local3[_local5++] = new Object();
_local4 = "";
break;
case "]" :
case "}" :
if (_local3[_local5 - 2].pop) {
_local3[_local5 - 3][_local3[_local5 - 2]] = _local3.pop();
_local5 = _local3.length;
} else if (_local5 == 2) {
_local9[_local3[0]] = _local3.pop();
_local3.length--;
_local5 = _local3.length;
} else {
_local3[_local5 - 3][_local3[_local5 - 2]] = _local3.pop();
_local3.length--;
_local5 = _local3.length;
}
break;
default :
_local4 = _local4 + _local2[_local1];
}
}
_local1++;
}
return(_local9);
}
}
Symbol 1983 MovieClip [__Packages.cFastChatOutput] Frame 0
class cFastChatOutput
{
var path, x, y, max, msg, id;
function cFastChatOutput (pPath, pX, pY) {
path = pPath;
x = pX;
y = pY;
max = 5;
msg = new Array();
}
function three(This) {
This.scroll();
}
function show(str) {
if (str.length > 100) {
str = str.slice(0, 100) + "...";
}
if (msg.length > max) {
scroll();
}
var _local3 = msg.length;
var _local2 = path.attachMovie("mcFastChatOutput", "mcFastChatOutput" + _local3, path.getNextHighestDepth());
_local2._x = x;
_local2._y = ((_local2._height + 2) * _local3) + y;
_local2.txtOut.str = str;
_local2.txtOut.onLoad = function () {
this.parse(this.str);
this.refreshText();
this.render();
this._parent.mcBackGround._width = this.mcSurface.mcClip.txtOut._width + 8;
};
msg.push(_local2);
if ((msg.length == 1) && (!id)) {
id = setInterval(three, (str.length * 50) + 2500, this);
}
}
function stop() {
var _local3 = msg.length;
var _local2 = 0;
while (_local2 < _local3) {
removeMovieClip(msg[_local2]);
_local2++;
}
}
function scroll() {
var _local3 = msg.length;
var _local2 = _local3;
while (_local2 > 0) {
msg[_local2]._y = msg[_local2 - 1]._y;
_local2--;
}
removeMovieClip(msg[0]);
msg.shift();
clearInterval(id);
id = undefined;
if (msg.length > 0) {
id = setInterval(three, (msg[0].txtOut.mcSurface.mcClip.txtOut.text.length * 50) + 1500, this);
}
}
}
Symbol 1984 MovieClip [__Packages.cFastChatInput] Frame 0
class cFastChatInput
{
var path, x, y, lstFastChatInput, mcFastChatInput, This, onSentence;
function cFastChatInput (pPath, pX, pY) {
path = pPath;
x = pX;
y = pY;
}
function start() {
lstFastChatInput = new Object();
lstFastChatInput.This = this;
lstFastChatInput.onKeyDown = initialKey;
Key.addListener(lstFastChatInput);
}
function stop() {
removeMovieClip(mcFastChatInput);
lstFastChatInput.onKeyUp = undefined;
lstFastChatInput.onKeyDown = undefined;
Key.removeListener(lstFastChatInput);
}
function chatKey() {
switch (Key.getCode()) {
case 27 :
This.lstFastChatInput.onKeyDown = This.initialKey;
This.x = This.mcFastChatInput._x;
This.y = This.mcFastChatInput._y;
removeMovieClip(This.mcFastChatInput);
break;
case 13 :
This.enter();
}
}
function initialKey() {
if ((Key.getAscii() < 32) || (Key.getAscii() > 126)) {
switch (Key.getCode()) {
case 186 :
case 187 :
case 191 :
case 192 :
case 220 :
case 221 :
case 222 :
break;
default :
return(undefined);
}
}
This.mcFastChatInput = This.path.attachMovie("mcFastChatInput", "mcFastChatInput", This.path.getNextHighestDepth(), {_x:This.x, _y:This.y});
This.mcFastChatInput.txtIn.text = String.fromCharCode(Key.getAscii());
This.mcFastChatInput.btnSend.This = This;
This.mcFastChatInput.btnSend.onRelease = function () {
this._onRelease();
_global.gFlood.swBtnEnviar = true;
this.This.enter();
};
This.mcFastChatInput.btnClose.This = This;
This.mcFastChatInput.btnClose.onRelease = function () {
this._onRelease();
this.This.lstFastChatInput.onKeyDown = this.This.initialKey;
this.This.x = this.This.mcFastChatInput._x;
this.This.y = this.This.mcFastChatInput._y;
removeMovieClip(this.This.mcFastChatInput);
};
Selection.setFocus(This.mcFastChatInput.txtIn);
This.lstFastChatInput.onKeyDown = This.chatKey;
This.mcFastChatInput.txtIn.This = This;
This.mcFastChatInput.txtIn.onChanged = function () {
if (!int(this.text.length)) {
this.This.lstFastChatInput.onKeyDown = this.This.initialKey;
this.This.x = this.This.mcFastChatInput._x;
this.This.y = this.This.mcFastChatInput._y;
removeMovieClip(this.This.mcFastChatInput);
}
};
}
function enter() {
if (_global.gFlood.idFSecond > -1) {
return(undefined);
}
if (_global.rutaChat._visible) {
return(undefined);
}
_global.gFlood.swBtnEnviar = false;
if (!_global.gFlood.numMsg) {
_global.gFlood.oldTimer = getTimer();
}
_global.gFlood.timeAcu = _global.gFlood.timeAcu + (getTimer() - _global.gFlood.oldTimer);
_global.gFlood.numMsg++;
_global.gFlood.oldTimer = getTimer();
if (_global.gFlood.timeAcu < _global.gFlood.floodTime) {
if (_global.gFlood.numMsg > _global.gFlood.maxNumMsg) {
if (_global.gFlood.idFSecond < 0) {
_global.gFlood.sec = _global.gFlood.punishment;
_global.gFlood.second();
_global.gFlood.idFSecond = setInterval(_global.gFlood.second, _global.gFlood.inc * 1000);
} else {
_global.gFlood.sec = _global.gFlood.sec + _global.gFlood.punishment;
}
} else {
onSentence(mcFastChatInput.txtIn.text);
}
} else {
_global.gFlood.numMsg = (_global.gFlood.timeAcu = 0);
onSentence(mcFastChatInput.txtIn.text);
}
lstFastChatInput.onKeyDown = initialKey;
x = mcFastChatInput._x;
y = mcFastChatInput._y;
removeMovieClip(mcFastChatInput);
}
}
Symbol 1985 MovieClip [__Packages.cReGAMES] Frame 0
class cReGAMES
{
var mSocket, __crypt, __key, host, port, serverID, idTimeOut, mIdGame, mIdRoom, mIdMatch, mIdUser, mPasswd, mIp, userName, passwd, _lookMatch, idleTimeExceded, idleTimeNotify, contIdleTime, idIdleTimeExceded, mTimePing;
function cReGAMES (pHost, pPort, pServerID, pGame) {
mSocket = new XMLSocket();
__crypt = true;
__key = "kguen10";
host = pHost;
port = pPort;
serverID = pServerID;
idTimeOut = 0;
mIdGame = -1;
mIdRoom = -1;
mIdMatch = -1;
mIdUser = -1;
mPasswd = "";
mIp = "000.000.000.000";
userName = "";
passwd = "";
_lookMatch = false;
idleTimeExceded = Infinity;
idleTimeNotify = 15;
contIdleTime = idleTimeExceded;
var THIS = this;
mSocket.onConnect = function (success) {
clearInterval(THIS.idTimeOut);
THIS.pAlive = function () {
THIS.ping();
};
THIS.idTimeOut = setInterval(THIS.pAlive, 10000);
THIS.contIdleTime = THIS.idleTimeExceded;
THIS.pComprobarIdle = function () {
if (THIS.contIdleTime <= 0) {
THIS.onIdleTimeExceded(THIS.contIdleTime);
THIS.contIdleTime = THIS.idleTimeExceded;
THIS.close();
_root.gotoAndStop("fTimeOut");
} else if (THIS.contIdleTime <= THIS.idleTimeNotify) {
THIS.onIdleTimeExceded(THIS.contIdleTime);
}
THIS.contIdleTime--;
};
THIS.idIdleTimeExceded = setInterval(THIS.pComprobarIdle, 1000);
THIS.onConnect(success);
THIS.send((((("fn'onServerID'serverID'" + THIS.serverID) + "'") + "dataPC{") + THIS.dataPC) + "}");
};
mSocket.onClose = function () {
clearInterval(THIS.idTimeOut);
clearInterval(THIS.idIdleTimeExceded);
THIS.onClose();
};
mSocket.onData = function (str) {
if (THIS.__crypt) {
str = crypt.decode(str, THIS.__key);
}
if (str != "fn'onPong'") {
_level2.showIn(str);
}
var _local1 = Serialize.decode(str);
var _local3 = _local1.fn;
delete _local1.fn;
switch (_local3) {
case "onServerID" :
THIS.send(("fn'onServerID'serverID'" + THIS.serverID) + "'");
break;
case "onLogin" :
THIS.mIdGame = _local1.idGame;
THIS.mIdRoom = _local1.idRoom;
THIS.mIdMatch = _local1.idMatch;
THIS.mIdUser = _local1.idUser;
THIS.mIp = _local1.ip;
THIS.userName = _local1.userName;
break;
case "onPong" :
_local1.mls = getTimer() - THIS.mTimePing;
break;
case "onCreateMatch" :
if (!_local1.error) {
THIS.mIdMatch = _local1.idMatch;
}
break;
case "onJoinGame" :
if (!_local1.error) {
THIS.mIdGame = _local1.idGame;
}
THIS.mIdRoom = -1;
THIS.mIdMatch = -1;
break;
case "onJoinRoom" :
if (!_local1.error) {
THIS.mIdRoom = _local1.idRoom;
}
THIS.mIdMatch = -1;
break;
case "onJoinMatch" :
if (!_local1.error) {
THIS.mIdMatch = _local1.idMatch;
}
break;
case "onLookMatch" :
if (!_local1.error) {
THIS.mIdMatch = _local1.idMatch;
}
THIS._lookMatch = true;
break;
case "onLeaveGame" :
if (!_local1.error) {
THIS.mIdGame = -1;
}
break;
case "onLeaveRoom" :
if (!_local1.error) {
THIS.mIdRoom = -1;
}
break;
case "onLeaveMatch" :
if (!_local1.error) {
THIS.mIdMatch = -1;
}
THIS._lookMatch = false;
break;
case "onUserSendObjRoom" :
THIS[_local1.obj.fn](_local1.obj);
return(undefined);
case "onUserSendObjMatch" :
THIS[_local1.obj.fn](_local1.obj);
return(undefined);
case "onUserSendObjUser" :
THIS[_local1.obj.fn](_local1.obj);
return(undefined);
case "onMsgBox" :
getURL (("javascript:alert(\"" + _local1.msg) + "\")");
return(undefined);
case "onExecute" :
getURL ("javascript:" + _local1.cmd);
case "onGetURL" :
getURL (_local1.url, _local1.ventana);
}
THIS[_local3](_local1);
};
}
function destroy() {
clearInterval(idIdleTimeExceded);
clearInterval(idTimeOut);
}
function get idGame() {
return(mIdGame);
}
function get idRoom() {
return(mIdRoom);
}
function get idMatch() {
return(mIdMatch);
}
function get idUser() {
return(mIdUser);
}
function get ip() {
return(mIp);
}
function connect(pHost, pPort, pServerID) {
if (pHost != undefined) {
host = pHost;
}
if (pPort != undefined) {
port = pPort;
}
if (pServerID != undefined) {
serverID = pServerID;
}
mSocket.connect(host, port);
}
function close() {
_global.tmo.clearAll();
clearInterval(idIdleTimeExceded);
clearInterval(idTimeOut);
mSocket.close();
}
function send(str) {
alive();
_level2.showOut(str);
if (__crypt) {
str = crypt.code(str, __key);
}
var _local3 = System.useCodepage;
System.useCodepage = false;
mSocket.send(str);
System.useCodepage = _local3;
}
function login(pUserName, pPasswd) {
if (pUserName != undefined) {
userName = pUserName;
}
if (pPasswd != undefined) {
passwd = pPasswd;
}
send(((("fn'onLogin'userName'" + userName) + "'passwd'") + passwd) + "'");
}
function ping() {
mTimePing = getTimer();
if (__crypt) {
mSocket.send(crypt.code("fn'onPing'", __key));
} else {
mSocket.send("fn'onPing'");
}
}
function alive() {
contIdleTime = idleTimeExceded;
}
function getVersion() {
send("fn'onGetVersion'");
}
function getTime() {
send("fn'onGetTime'");
}
function getDate() {
send("fn'onGetDate'");
}
function getPort() {
send("fn'onGetPort'");
}
function getMaxUserIdleTime() {
send("fn'onGetMaxUserIdleTime'");
}
function getIdleTimeNotify() {
send("fn'onGetIdleTimeNotify'");
}
function getDefaultUserName() {
send("fn'onGetDefaultUserName'");
}
function getDefaultInitCount() {
send("fn'onGetDefaultInitCount'");
}
function getMaxUsers() {
send("fn'onGetMaxUsers'");
}
function getForbiddenWords() {
send("fn'onGetForbiddenWords'");
}
function getBanedIPs() {
send("fn'onGetBanedIPs'");
}
function createMatch(matchName, mPasswd, maxUsers, guests, initBet, audience, audienceTalk, codLoadMatch, goOnLeave, extra) {
guests = (guests ? 1 : 0);
audience = (audience ? 1 : 0);
audienceTalk = (audienceTalk ? 1 : 0);
codLoadMatch = (codLoadMatch ? (codLoadMatch) : -1);
goOnLeave = (goOnLeave ? 1 : 0);
this.mPasswd = (mPasswd ? (mPasswd) : "");
extra = (extra ? (extra) : "");
var _local6 = ((((((((((((((((((("fn'onCreateMatch'matchName'" + matchName) + "'mPasswd'") + mPasswd) + "'maxUsers&") + maxUsers) + ";guests%") + guests) + "initBet&") + initBet) + ";audience%") + audience) + "audienceTalk%") + audienceTalk) + "codLoadMatch&") + codLoadMatch) + ";goOnLeave%") + goOnLeave) + "extra'") + extra) + "'";
send(_local6);
}
function deleteMatch() {
send("fn'onDeleteMatch'");
}
function updateMatch(matchName, mPasswd, maxUsers, guests, audience, audienceTalk, goOnLeave, extra, users) {
guests = (guests ? 1 : 0);
audience = (audience ? 1 : 0);
audienceTalk = (audienceTalk ? 1 : 0);
goOnLeave = (goOnLeave ? 1 : 0);
extra = (extra ? (extra) : "");
var _local3 = ((((((((((((((("fn'onUpdateMatch'matchName'" + matchName) + "'mPasswd'") + mPasswd) + "'maxUsers&") + maxUsers) + ";guests%") + guests) + "audience%") + audience) + "audienceTalk%") + audienceTalk) + "goOnLeave%") + goOnLeave) + "extra'") + extra) + "'";
if (users) {
_local3 = _local3 + "users[";
var _local4 = users.length;
var _local2 = 0;
while (_local2 < _local4) {
_local3 = _local3 + (((_local2 + "&") + users[_local2]) + ";");
_local2++;
}
_local3 = _local3 + "]";
}
send(_local3);
}
function checkPasswdGame(idGame, gPasswd) {
send(((("fn'onCheckPasswdGame'idGame&" + idGame) + ";gPasswd'") + gPasswd) + "'");
}
function joinGame(idGame, gPasswd) {
send(((("fn'onJoinGame'idGame&" + idGame) + ";gPasswd'") + gPasswd) + "'");
}
function checkPasswdRoom(idRoom, rPasswd) {
send(((("fn'onCheckPasswdRoom'idRoom&" + idRoom) + ";rPasswd'") + rPasswd) + "'");
}
function joinRoom(idRoom, rPasswd) {
send(((("fn'onJoinRoom'idRoom&" + idRoom) + ";rPasswd'") + rPasswd) + "'");
}
function checkPasswdMatch(idMatch, mPasswd) {
send(((("fn'onCheckPasswdMatch'idMatch&" + idMatch) + ";mPasswd'") + mPasswd) + "'");
}
function joinMatch(idMatch, mPasswd) {
this.mPasswd = (mPasswd ? (mPasswd) : "");
send(((("fn'onJoinMatch'idMatch&" + idMatch) + ";mPasswd'") + mPasswd) + "'");
}
function lookMatch(idMatch, mPasswd) {
this.mPasswd = (mPasswd ? (mPasswd) : "");
send(((("fn'onLookMatch'idMatch&" + idMatch) + ";mPasswd'") + mPasswd) + "'");
}
function leaveGame() {
send("fn'onLeaveGame'");
}
function leaveRoom() {
send("fn'onLeaveRoom'");
}
function leaveMatch(bDeleteGame) {
_global.intervalMngr.clearAllInterval();
delete _global.intervalMngr;
delete _global.loadGame;
delete _global.scene;
delete _global.parentScene;
if (bDeleteGame) {
delete _global.game;
}
mPasswd = "";
send("fn'onLeaveMatch'");
}
function getGames() {
send("fn'onGetGames'");
}
function getRooms() {
send("fn'onGetRooms'");
}
function getMatchs() {
send("fn'onGetMatchs'");
}
function getRoomConnections() {
send("fn'onGetRoomConnections'");
}
function getRoomAdmins() {
send("fn'onGetRoomAdmins'");
}
function getRoomUsers() {
send("fn'onGetRoomUsers'");
}
function getRoomGuests() {
send("fn'onGetRoomGuests'");
}
function getRoomBots() {
send("fn'onGetRoomBots'");
}
function getMatchConnections(idMatch) {
if (idMatch == undefined) {
idMatch = "";
}
send(("fn'onGetMatchConnections'idMatch&" + idMatch) + ";");
}
function getMatchsAdmins(idMatch) {
if (idMatch == undefined) {
idMatch = "";
}
send(("fn'onGetMatchAdmins'idMatch&" + idMatch) + ";");
}
function getMatchsUsers(idMatch) {
if (idMatch == undefined) {
idMatch = "";
}
send(("fn'onGetMatchUsers'idMatch&" + idMatch) + ";");
}
function getMatchsGuests(idMatch) {
if (idMatch == undefined) {
idMatch = "";
}
send(("fn'onGetMatchGuests'idMatch&" + idMatch) + ";");
}
function getMatchsBots(idMatch) {
if (idMatch == undefined) {
idMatch = "";
}
send(("fn'onGetMatchBots'idMatch&" + idMatch) + ";");
}
function sendObjRoom(obj) {
var _local2 = new Object();
_local2.fn = "onSendObjRoom";
_local2.obj = obj;
send(Serialize.code(_local2));
}
function sendObjMatch(obj) {
var _local2 = new Object();
_local2.fn = "onSendObjMatch";
_local2.obj = obj;
send(Serialize.code(_local2));
}
function sendObjUser(obj) {
var _local2 = new Object();
_local2.fn = "onSendObjUser";
_local2.obj = obj;
send(Serialize.code(_local2));
}
}
Symbol 1986 MovieClip [__Packages.crypt] Frame 0
class crypt
{
function crypt () {
}
static function code(str, key) {
var _local4 = "";
var _local6 = str.length;
var _local3 = 0;
var _local7 = key.length;
var _local1 = 0;
while (_local1 < _local6) {
if ((str.charCodeAt(_local1) > 255) || (str.charCodeAt(_local1) & 128)) {
_local4 = _local4 + str.charAt(_local1);
} else {
if (str.charCodeAt(_local1) != key.charCodeAt(_local3)) {
_local4 = _local4 + String.fromCharCode(str.charCodeAt(_local1) ^ key.charCodeAt(_local3));
} else {
_local4 = _local4 + str.charAt(_local1);
}
_local3++;
if (_local3 >= _local7) {
_local3 = 0;
}
}
_local1++;
}
return(_local4);
}
static function decode(str, key) {
return(code(str, key));
}
}
Symbol 1987 MovieClip [__Packages.cGame] Frame 0
class cGame
{
var m_numPlayers, m_ownerName, m_initNameList, m_nameList, m_leaveList, m_initTurnList, m_turnList, m_bChangePos, m_numTeams, m_numPlayersPerTeam, m_player, m_myTurn, m_myBet, m_leaveBet, m_initTurn, m_turn, m_showTurn, m_imClean, m_imLoadingSpectator, m_maxBet, m_codLoadMatch, m_numMatchs, m_numRounds, m_matchDuration, m_extra, m_isPaused, m_endedMatch, m_allReady, m_ignoreQuerys, m_mcl, m_lst, m_snd, m_spectQueue, m_qEvent;
function cGame (obj) {
var _local6 = _global.gMatchs[_global.gMatchs.find("idMatch", _global.rg.idMatch)].clone();
m_numPlayers = _local6.maxUsers;
var _local4 = _global.gUsers.find("idUser", _local6.idOwner);
m_ownerName = _global.gUsers[_local4].userName;
m_initNameList = new Array();
m_nameList = new Array();
m_leaveList = new Array();
m_initTurnList = new Array();
m_turnList = new Array();
if (!obj) {
m_bChangePos = false;
m_numTeams = 2;
m_numPlayersPerTeam = m_numPlayers / m_numTeams;
var _local5 = 0;
while (_local5 < m_numTeams) {
m_turnList[_local5] = _local5;
m_initTurnList[_local5] = _local5;
var _local3 = 0;
while (_local3 < m_numTeams) {
_local4 = (_local5 * m_numPlayersPerTeam) + _local3;
var _local8 = _global.gUsers[_global.gUsers.find("idUser", _local6.users[_local4])].userName;
m_initNameList[_local5 + (m_numTeams * _local3)] = _local8;
m_nameList[_local5 + (m_numTeams * _local3)] = _local8;
_local3 = _local3 + m_numPlayersPerTeam;
}
_local5++;
}
} else {
if (!obj.changePos) {
m_bChangePos = false;
} else {
m_bChangePos = obj.changePos;
}
if (!obj.numTeams) {
m_numTeams = 2;
} else {
m_numTeams = obj.numTeams;
}
m_numPlayersPerTeam = m_numPlayers / m_numTeams;
if (!obj.turnList) {
var _local5 = 0;
while (_local5 < m_numTeams) {
m_turnList[_local5] = _local5;
m_initTurnList[_local5] = _local5;
var _local3 = 0;
while (_local3 < m_numTeams) {
_local4 = (_local5 * m_numPlayersPerTeam) + _local3;
var _local8 = _global.gUsers[_global.gUsers.find("idUser", _local6.users[_local4])].userName;
m_initNameList[_local5 + (m_numTeams * _local3)] = _local8;
m_nameList[_local5 + (m_numTeams * _local3)] = _local8;
_local3 = _local3 + m_numPlayersPerTeam;
}
_local5++;
}
} else {
var _local5 = 0;
while (_local5 < m_numPlayers) {
m_turnList[_local5] = obj.turnList[_local5];
m_initTurnList[_local5] = obj.turnList[_local5];
var _local8 = _global.gUsers[_global.gUsers.find("idUser", _local6.users[_local5])].userName;
m_initNameList[_local5] = _local8;
m_nameList[_local5] = _local8;
_local5++;
}
}
}
m_player = new Array();
var _local5 = 0;
while (_local5 < m_numPlayers) {
m_player[_local5] = new cPlayer({userName:m_initNameList[_local5], team:Math.floor(_local5 / m_numPlayersPerTeam)});
_local5++;
}
if (!_global.rg._lookMatch) {
_local4 = _global.gUsers.find("idUser", _global.rg.idUser);
m_myTurn = m_initTurnList.find("", _local6.users.find("", _global.rg.idUser));
m_myBet = _local6.initBet;
fscommand ("onMatch", true);
} else {
m_myTurn = -1;
m_myBet = 0;
}
m_leaveBet = 0;
m_initTurn = m_initTurnList[0];
m_turn = m_initTurn;
m_showTurn = m_initTurnList[0];
m_imClean = false;
m_imLoadingSpectator = false;
m_maxBet = 0;
m_codLoadMatch = _local6.codLoadMatch;
m_numMatchs = 0;
m_numRounds = 0;
m_matchDuration = new Object({buffer:"0", msgs:"0", sgs:0, mins:0, hrs:0});
m_extra = new Object();
m_isPaused = false;
m_endedMatch = false;
m_allReady = false;
m_ignoreQuerys = false;
m_mcl = new MovieClipLoader();
m_lst = new Object();
m_lst.THIS = this;
m_lst.onLoadProgress = function (target) {
target._visible = false;
};
m_lst.onLoadInit = function (target) {
this.THIS.onLoadAvatar(target);
target._visible = true;
};
m_mcl.addListener(m_lst);
m_snd = new Array();
m_spectQueue = new Array();
if (imSpectator()) {
m_spectQueue.push({idUser:_global.rg.idUser});
}
m_qEvent = new Array();
_global.intervalMngr.addInterval("countDown", 1);
}
function get match() {
return(_global.gMatchs[_global.gMatchs.find("idMatch", _global.rg.idMatch)]);
}
function get options() {
return(_global.gMatchs[_global.gMatchs.find("idMatch", _global.rg.idMatch)].extra);
}
function get numPlayers() {
return(m_numPlayers);
}
function get numTeams() {
return(m_numTeams);
}
function get numPlayersPerTeam() {
return(m_numPlayersPerTeam);
}
function get player() {
return(m_player);
}
function getPlayerByTurn(pTurn) {
return(m_player[m_turnList.find("", pTurn)]);
}
function getPlayerByIndex(pIdx) {
return(m_player[m_turnList[pIdx]]);
}
function getPlayerByIdUser(pIdUser) {
return(m_player[m_player.find("idUser", pIdUser)]);
}
function getCurrentPlayer() {
return(m_player[m_turnList.find("", m_turn)]);
}
function getMyPlayer() {
return(m_player[m_turnList.find("", m_myTurn)]);
}
function getAvatarByIndex(pIdx) {
return(_global.scene["mcAvatar" + m_turnList[pIdx]]);
}
function getAvatarByTurn(pTurn) {
return(_global.scene["mcAvatar" + pTurn]);
}
function getAvatarByIdUser(pIdUser) {
return(_global.scene["mcAvatar" + m_player.find("idUser", pIdUser)]);
}
function getCurrentAvatar() {
return(_global.scene["mcAvatar" + m_turn]);
}
function getMyAvatar() {
return(_global.scene["mcAvatar" + m_myTurn]);
}
function getInterfaceByIndex(pIdx) {
return(_global.scene["mcInterface" + m_turnList[pIdx]]);
}
function getInterfaceByTurn(pTurn) {
return(_global.scene["mcInterface" + pTurn]);
}
function getCurrentInterface() {
return(_global.scene["mcInterface" + m_turn]);
}
function getMyInterface() {
return(_global.scene["mcInterface" + m_myTurn]);
}
function getTeamTurn() {
return(getPlayerByTurn(m_turn).team);
}
function getNextTeamTurn() {
return(getPlayerByTurn(getNextTurn(m_turn)).team);
}
function get numSpectators() {
return(_global.gMatchs[_global.gMatchs.find("idMatch", _global.rg.idMatch)].spectators.length);
}
function get ownerName() {
return(m_ownerName);
}
function set ownerName(pOwnerName) {
m_ownerName = pOwnerName;
//return(ownerName);
}
function get myTurn() {
return(m_myTurn);
}
function set myTurn(pMyTurn) {
m_myTurn = pMyTurn;
//return(myTurn);
}
function get showTurn() {
return(m_showTurn);
}
function set showTurn(pShowTurn) {
m_showTurn = pShowTurn;
//return(showTurn);
}
function get initNameList() {
return(m_initNameList);
}
function get nameList() {
return(m_nameList);
}
function get leaveList() {
return(m_leaveList);
}
function get initTurnList() {
return(m_initTurnList);
}
function get turnList() {
return(m_turnList);
}
function get initTurn() {
return(m_initTurn);
}
function set initTurn(pInitTurn) {
m_initTurn = pInitTurn;
//return(initTurn);
}
function get turn() {
return(m_turn);
}
function set turn(pTurn) {
m_turn = pTurn;
//return(turn);
}
function get imClean() {
return(m_imClean);
}
function set imClean(pImClean) {
m_imClean = pImClean;
_global.parentScene.mcOptionsWindow.txtMatchName.onChanged();
//return(imClean);
}
function get imLoadingSpectator() {
return(m_imLoadingSpectator);
}
function set imLoadingSpectator(pImLoading) {
m_imLoadingSpectator = pImLoading;
//return(imLoadingSpectator);
}
function get initBet() {
return(_global.gMatchs[_global.gMatchs.find("idMatch", _global.rg.idMatch)].initBet);
}
function get myBet() {
return(m_myBet);
}
function set myBet(pBet) {
m_myBet = pBet;
//return(myBet);
}
function get maxBet() {
return(m_maxBet);
}
function set maxBet(pMaxBet) {
m_maxBet = pMaxBet;
//return(maxBet);
}
function get leaveBet() {
return(m_leaveBet);
}
function set leaveBet(pLeaveBet) {
m_leaveBet = pLeaveBet;
//return(leaveBet);
}
function get matchDuration() {
return(m_matchDuration);
}
function get numMatchs() {
return(m_numMatchs);
}
function get numRounds() {
return(m_numRounds);
}
function get extra() {
return(m_extra);
}
function set extra(pExtra) {
m_extra = pExtra;
//return(extra);
}
function get codLoadMatch() {
return(_global.gMatchs[_global.gMatchs.find("idMatch", _global.rg.idMatch)].codLoadMatch);
}
function set codLoadMatch(pCodLoadMatch) {
_global.gMatchs[_global.gMatchs.find("idMatch", _global.rg.idMatch)].codLoadMatch = pCodLoadMatch;
//return(codLoadMatch);
}
function get changePos() {
return(m_bChangePos);
}
function set changePos(pChangePos) {
m_bChangePos = pChangePos;
//return(changePos);
}
function get isPaused() {
return(m_isPaused);
}
function set isPaused(pIsPaused) {
m_isPaused = pIsPaused;
//return(isPaused);
}
function get endedMatch() {
return(m_endedMatch);
}
function set endedMatch(pEndedMatch) {
m_endedMatch = pEndedMatch;
//return(endedMatch);
}
function get allReady() {
return(m_allReady);
}
function set allReady(pAllReady) {
m_allReady = pAllReady;
//return(allReady);
}
function get mcl() {
return(m_mcl);
}
function get lst() {
return(m_lst);
}
function set sound(pSound) {
m_snd = pSound;
//return(sound);
}
function get sound() {
return(m_snd);
}
function set spectatorQueue(pSpecQueue) {
m_spectQueue = pSpecQueue;
//return(spectatorQueue);
}
function get spectatorQueue() {
return(m_spectQueue);
}
function set qEvent(pqEvent) {
m_qEvent = pqEvent;
//return(qEvent);
}
function get qEvent() {
return(m_qEvent);
}
function get ignoreQuerys() {
return(m_ignoreQuerys);
}
function set ignoreQuerys(pIgnoreQuerys) {
m_ignoreQuerys = pIgnoreQuerys;
//return(ignoreQuerys);
}
function loadAvatars() {
i = 0;
while (i < m_numPlayers) {
getAvatarByIndex(i).avatar.avatar.removeMovieClip();
getAvatarByIndex(i).avatar.createEmptyMovieClip("avatar", i);
m_mcl.loadClip((m_player[i].avatar + "?refresh=") + new Date().getTime(), getAvatarByIndex(i).avatar.avatar);
i++;
}
if (!m_bChangePos) {
return(undefined);
}
if ((m_myTurn != 0) && (!imSpectator())) {
var _local6 = getAvatarByTurn(0)._x;
var _local5 = getAvatarByTurn(0)._y;
switch (m_numPlayers) {
case 2 :
getAvatarByTurn(0)._x = getAvatarByTurn(1)._x;
getAvatarByTurn(0)._y = getAvatarByTurn(1)._y;
getAvatarByTurn(1)._x = _local6;
getAvatarByTurn(1)._y = _local5;
break;
case 3 :
switch (m_myTurn) {
case 1 :
getAvatarByTurn(0)._x = getAvatarByTurn(2)._x;
getAvatarByTurn(0)._y = getAvatarByTurn(2)._y;
getAvatarByTurn(2)._x = getAvatarByTurn(1)._x;
getAvatarByTurn(2)._y = getAvatarByTurn(1)._y;
getAvatarByTurn(1)._x = _local6;
getAvatarByTurn(1)._y = _local5;
break;
case 2 :
getAvatarByTurn(0)._x = getAvatarByTurn(1)._x;
getAvatarByTurn(0)._y = getAvatarByTurn(1)._y;
getAvatarByTurn(1)._x = getAvatarByTurn(2)._x;
getAvatarByTurn(1)._y = getAvatarByTurn(2)._y;
getAvatarByTurn(2)._x = _local6;
getAvatarByTurn(2)._y = _local5;
}
break;
case 4 :
switch (m_myTurn) {
case 1 :
getAvatarByTurn(0)._x = getAvatarByTurn(3)._x;
getAvatarByTurn(0)._y = getAvatarByTurn(3)._y;
getAvatarByTurn(3)._x = getAvatarByTurn(2)._x;
getAvatarByTurn(3)._y = getAvatarByTurn(2)._y;
getAvatarByTurn(2)._x = getAvatarByTurn(1)._x;
getAvatarByTurn(2)._y = getAvatarByTurn(1)._y;
getAvatarByTurn(1)._x = _local6;
getAvatarByTurn(1)._y = _local5;
break;
case 2 :
getAvatarByTurn(0)._x = getAvatarByTurn(2)._x;
getAvatarByTurn(0)._y = getAvatarByTurn(2)._y;
getAvatarByTurn(2)._x = _local6;
getAvatarByTurn(2)._y = _local5;
_local6 = getAvatarByTurn(1)._x;
_local5 = getAvatarByTurn(1)._y;
getAvatarByTurn(1)._x = getAvatarByTurn(3)._x;
getAvatarByTurn(1)._y = getAvatarByTurn(3)._y;
getAvatarByTurn(3)._x = _local6;
getAvatarByTurn(3)._y = _local5;
break;
case 3 :
getAvatarByTurn(0)._x = getAvatarByTurn(1)._x;
getAvatarByTurn(0)._y = getAvatarByTurn(1)._y;
getAvatarByTurn(1)._x = getAvatarByTurn(2)._x;
getAvatarByTurn(1)._y = getAvatarByTurn(2)._y;
getAvatarByTurn(2)._x = getAvatarByTurn(3)._x;
getAvatarByTurn(2)._y = getAvatarByTurn(3)._y;
getAvatarByTurn(3)._x = _local6;
getAvatarByTurn(3)._y = _local5;
}
break;
case 5 :
var _local2 = new Array();
var i = 0;
while (i < 5) {
_local2[i] = new Object({xPos:getAvatarByTurn(i)._x, yPos:getAvatarByTurn(i)._y});
i++;
}
switch (m_myTurn) {
case 1 :
getAvatarByTurn(0)._x = _local2[4].xPos;
getAvatarByTurn(0)._y = _local2[4].yPos;
getAvatarByTurn(1)._x = _local2[0].xPos;
getAvatarByTurn(1)._y = _local2[0].yPos;
getAvatarByTurn(2)._x = _local2[1].xPos;
getAvatarByTurn(2)._y = _local2[1].yPos;
getAvatarByTurn(3)._x = _local2[2].xPos;
getAvatarByTurn(3)._y = _local2[2].yPos;
getAvatarByTurn(4)._x = _local2[3].xPos;
getAvatarByTurn(4)._y = _local2[3].yPos;
break;
case 2 :
getAvatarByTurn(0)._x = _local2[3].xPos;
getAvatarByTurn(0)._y = _local2[3].yPos;
getAvatarByTurn(1)._x = _local2[4].xPos;
getAvatarByTurn(1)._y = _local2[4].yPos;
getAvatarByTurn(2)._x = _local2[0].xPos;
getAvatarByTurn(2)._y = _local2[0].yPos;
getAvatarByTurn(3)._x = _local2[1].xPos;
getAvatarByTurn(3)._y = _local2[1].yPos;
getAvatarByTurn(4)._x = _local2[2].xPos;
getAvatarByTurn(4)._y = _local2[2].yPos;
break;
case 3 :
getAvatarByTurn(0)._x = _local2[2].xPos;
getAvatarByTurn(0)._y = _local2[2].yPos;
getAvatarByTurn(1)._x = _local2[3].xPos;
getAvatarByTurn(1)._y = _local2[3].yPos;
getAvatarByTurn(2)._x = _local2[4].xPos;
getAvatarByTurn(2)._y = _local2[4].yPos;
getAvatarByTurn(3)._x = _local2[0].xPos;
getAvatarByTurn(3)._y = _local2[0].yPos;
getAvatarByTurn(4)._x = _local2[1].xPos;
getAvatarByTurn(4)._y = _local2[1].yPos;
break;
case 4 :
getAvatarByTurn(0)._x = _local2[1].xPos;
getAvatarByTurn(0)._y = _local2[1].yPos;
getAvatarByTurn(1)._x = _local2[2].xPos;
getAvatarByTurn(1)._y = _local2[2].yPos;
getAvatarByTurn(2)._x = _local2[3].xPos;
getAvatarByTurn(2)._y = _local2[3].yPos;
getAvatarByTurn(3)._x = _local2[4].xPos;
getAvatarByTurn(3)._y = _local2[4].yPos;
getAvatarByTurn(4)._x = _local2[0].xPos;
getAvatarByTurn(4)._y = _local2[0].yPos;
}
break;
case 6 :
_local2 = new Array();
var i = 0;
while (i < 6) {
_local2[i] = new Object({xPos:getAvatarByTurn(i)._x, yPos:getAvatarByTurn(i)._y});
i++;
}
switch (m_myTurn) {
case 1 :
getAvatarByTurn(0)._x = _local2[5].xPos;
getAvatarByTurn(0)._y = _local2[5].yPos;
getAvatarByTurn(1)._x = _local2[0].xPos;
getAvatarByTurn(1)._y = _local2[0].yPos;
getAvatarByTurn(2)._x = _local2[1].xPos;
getAvatarByTurn(2)._y = _local2[1].yPos;
getAvatarByTurn(3)._x = _local2[2].xPos;
getAvatarByTurn(3)._y = _local2[2].yPos;
getAvatarByTurn(4)._x = _local2[3].xPos;
getAvatarByTurn(4)._y = _local2[3].yPos;
getAvatarByTurn(5)._x = _local2[4].xPos;
getAvatarByTurn(5)._y = _local2[4].yPos;
break;
case 2 :
getAvatarByTurn(0)._x = _local2[4].xPos;
getAvatarByTurn(0)._y = _local2[4].yPos;
getAvatarByTurn(1)._x = _local2[5].xPos;
getAvatarByTurn(1)._y = _local2[5].yPos;
getAvatarByTurn(2)._x = _local2[0].xPos;
getAvatarByTurn(2)._y = _local2[0].yPos;
getAvatarByTurn(3)._x = _local2[1].xPos;
getAvatarByTurn(3)._y = _local2[1].yPos;
getAvatarByTurn(4)._x = _local2[2].xPos;
getAvatarByTurn(4)._y = _local2[2].yPos;
getAvatarByTurn(5)._x = _local2[3].xPos;
getAvatarByTurn(5)._y = _local2[3].yPos;
break;
case 3 :
getAvatarByTurn(0)._x = _local2[3].xPos;
getAvatarByTurn(0)._y = _local2[3].yPos;
getAvatarByTurn(1)._x = _local2[4].xPos;
getAvatarByTurn(1)._y = _local2[4].yPos;
getAvatarByTurn(2)._x = _local2[5].xPos;
getAvatarByTurn(2)._y = _local2[5].yPos;
getAvatarByTurn(3)._x = _local2[0].xPos;
getAvatarByTurn(3)._y = _local2[0].yPos;
getAvatarByTurn(4)._x = _local2[1].xPos;
getAvatarByTurn(4)._y = _local2[1].yPos;
getAvatarByTurn(5)._x = _local2[2].xPos;
getAvatarByTurn(5)._y = _local2[2].yPos;
break;
case 4 :
getAvatarByTurn(0)._x = _local2[2].xPos;
getAvatarByTurn(0)._y = _local2[2].yPos;
getAvatarByTurn(1)._x = _local2[3].xPos;
getAvatarByTurn(1)._y = _local2[3].yPos;
getAvatarByTurn(2)._x = _local2[4].xPos;
getAvatarByTurn(2)._y = _local2[4].yPos;
getAvatarByTurn(3)._x = _local2[5].xPos;
getAvatarByTurn(3)._y = _local2[5].yPos;
getAvatarByTurn(4)._x = _local2[0].xPos;
getAvatarByTurn(4)._y = _local2[0].yPos;
getAvatarByTurn(5)._x = _local2[1].xPos;
getAvatarByTurn(5)._y = _local2[1].yPos;
break;
case 5 :
getAvatarByTurn(0)._x = _local2[1].xPos;
getAvatarByTurn(0)._y = _local2[1].yPos;
getAvatarByTurn(1)._x = _local2[2].xPos;
getAvatarByTurn(1)._y = _local2[2].yPos;
getAvatarByTurn(2)._x = _local2[3].xPos;
getAvatarByTurn(2)._y = _local2[3].yPos;
getAvatarByTurn(3)._x = _local2[4].xPos;
getAvatarByTurn(3)._y = _local2[4].yPos;
getAvatarByTurn(4)._x = _local2[5].xPos;
getAvatarByTurn(4)._y = _local2[5].yPos;
getAvatarByTurn(5)._x = _local2[0].xPos;
getAvatarByTurn(5)._y = _local2[0].yPos;
}
}
}
var i = 0;
while (i < m_numPlayers) {
getAvatarByIndex(i)._xscale = 100;
if (getAvatarByIndex(i)._x > 450) {
getAvatarByIndex(i)._xscale = -100;
}
i++;
}
}
function onLoadAvatar(target) {
}
function loadInterfaces() {
var _local3 = 0;
while (_local3 < m_numPlayers) {
getInterfaceByIndex(_local3).txtName.text = m_player[_local3].name;
getInterfaceByIndex(_local3).txtPoints.text = m_player[_local3].points;
_local3++;
}
if (!m_bChangePos) {
return(undefined);
}
if ((m_myTurn != 0) && (!imSpectator())) {
var _local7 = getInterfaceByTurn(0)._x;
var _local6 = getInterfaceByTurn(0)._y;
switch (m_numPlayers) {
case 2 :
getInterfaceByTurn(0)._x = getInterfaceByTurn(1)._x;
getInterfaceByTurn(0)._y = getInterfaceByTurn(1)._y;
getInterfaceByTurn(1)._x = _local7;
getInterfaceByTurn(1)._y = _local6;
break;
case 3 :
switch (m_myTurn) {
case 1 :
getInterfaceByTurn(0)._x = getInterfaceByTurn(2)._x;
getInterfaceByTurn(0)._y = getInterfaceByTurn(2)._y;
getInterfaceByTurn(2)._x = getInterfaceByTurn(1)._x;
getInterfaceByTurn(2)._y = getInterfaceByTurn(1)._y;
getInterfaceByTurn(1)._x = _local7;
getInterfaceByTurn(1)._y = _local6;
break;
case 2 :
getInterfaceByTurn(0)._x = getInterfaceByTurn(1)._x;
getInterfaceByTurn(0)._y = getInterfaceByTurn(1)._y;
getInterfaceByTurn(1)._x = getInterfaceByTurn(2)._x;
getInterfaceByTurn(1)._y = getInterfaceByTurn(2)._y;
getInterfaceByTurn(2)._x = _local7;
getInterfaceByTurn(2)._y = _local6;
}
break;
case 4 :
switch (m_myTurn) {
case 1 :
getInterfaceByTurn(0)._x = getInterfaceByTurn(3)._x;
getInterfaceByTurn(0)._y = getInterfaceByTurn(3)._y;
getInterfaceByTurn(3)._x = getInterfaceByTurn(2)._x;
getInterfaceByTurn(3)._y = getInterfaceByTurn(2)._y;
getInterfaceByTurn(2)._x = getInterfaceByTurn(1)._x;
getInterfaceByTurn(2)._y = getInterfaceByTurn(1)._y;
getInterfaceByTurn(1)._x = _local7;
getInterfaceByTurn(1)._y = _local6;
break;
case 2 :
getInterfaceByTurn(0)._x = getInterfaceByTurn(2)._x;
getInterfaceByTurn(0)._y = getInterfaceByTurn(2)._y;
getInterfaceByTurn(2)._x = _local7;
getInterfaceByTurn(2)._y = _local6;
_local7 = getInterfaceByTurn(1)._x;
_local6 = getInterfaceByTurn(1)._y;
getInterfaceByTurn(1)._x = getInterfaceByTurn(3)._x;
getInterfaceByTurn(1)._y = getInterfaceByTurn(3)._y;
getInterfaceByTurn(3)._x = _local7;
getInterfaceByTurn(3)._y = _local6;
break;
case 3 :
getInterfaceByTurn(0)._x = getInterfaceByTurn(1)._x;
getInterfaceByTurn(0)._y = getInterfaceByTurn(1)._y;
getInterfaceByTurn(1)._x = getInterfaceByTurn(2)._x;
getInterfaceByTurn(1)._y = getInterfaceByTurn(2)._y;
getInterfaceByTurn(2)._x = getInterfaceByTurn(3)._x;
getInterfaceByTurn(2)._y = getInterfaceByTurn(3)._y;
getInterfaceByTurn(3)._x = _local7;
getInterfaceByTurn(3)._y = _local6;
}
break;
case 5 :
var _local2 = new Array();
_local3 = 0;
while (_local3 < 5) {
_local2[_local3] = new Object({xPos:getInterfaceByTurn(_local3)._x, yPos:getInterfaceByTurn(_local3)._y});
_local3++;
}
switch (m_myTurn) {
case 1 :
getInterfaceByTurn(0)._x = _local2[4].xPos;
getInterfaceByTurn(0)._y = _local2[4].yPos;
getInterfaceByTurn(1)._x = _local2[0].xPos;
getInterfaceByTurn(1)._y = _local2[0].yPos;
getInterfaceByTurn(2)._x = _local2[1].xPos;
getInterfaceByTurn(2)._y = _local2[1].yPos;
getInterfaceByTurn(3)._x = _local2[2].xPos;
getInterfaceByTurn(3)._y = _local2[2].yPos;
getInterfaceByTurn(4)._x = _local2[3].xPos;
getInterfaceByTurn(4)._y = _local2[3].yPos;
break;
case 2 :
getInterfaceByTurn(0)._x = _local2[3].xPos;
getInterfaceByTurn(0)._y = _local2[3].yPos;
getInterfaceByTurn(1)._x = _local2[4].xPos;
getInterfaceByTurn(1)._y = _local2[4].yPos;
getInterfaceByTurn(2)._x = _local2[0].xPos;
getInterfaceByTurn(2)._y = _local2[0].yPos;
getInterfaceByTurn(3)._x = _local2[1].xPos;
getInterfaceByTurn(3)._y = _local2[1].yPos;
getInterfaceByTurn(4)._x = _local2[2].xPos;
getInterfaceByTurn(4)._y = _local2[2].yPos;
break;
case 3 :
getInterfaceByTurn(0)._x = _local2[2].xPos;
getInterfaceByTurn(0)._y = _local2[2].yPos;
getInterfaceByTurn(1)._x = _local2[3].xPos;
getInterfaceByTurn(1)._y = _local2[3].yPos;
getInterfaceByTurn(2)._x = _local2[4].xPos;
getInterfaceByTurn(2)._y = _local2[4].yPos;
getInterfaceByTurn(3)._x = _local2[0].xPos;
getInterfaceByTurn(3)._y = _local2[0].yPos;
getInterfaceByTurn(4)._x = _local2[1].xPos;
getInterfaceByTurn(4)._y = _local2[1].yPos;
break;
case 4 :
getInterfaceByTurn(0)._x = _local2[1].xPos;
getInterfaceByTurn(0)._y = _local2[1].yPos;
getInterfaceByTurn(1)._x = _local2[2].xPos;
getInterfaceByTurn(1)._y = _local2[2].yPos;
getInterfaceByTurn(2)._x = _local2[3].xPos;
getInterfaceByTurn(2)._y = _local2[3].yPos;
getInterfaceByTurn(3)._x = _local2[4].xPos;
getInterfaceByTurn(3)._y = _local2[4].yPos;
getInterfaceByTurn(4)._x = _local2[0].xPos;
getInterfaceByTurn(4)._y = _local2[0].yPos;
}
break;
case 6 :
_local2 = new Array();
_local3 = 0;
while (_local3 < 6) {
_local2[_local3] = new Object({xPos:getInterfaceByTurn(_local3)._x, yPos:getInterfaceByTurn(_local3)._y});
_local3++;
}
switch (m_myTurn) {
case 1 :
getInterfaceByTurn(0)._x = _local2[5].xPos;
getInterfaceByTurn(0)._y = _local2[5].yPos;
getInterfaceByTurn(1)._x = _local2[0].xPos;
getInterfaceByTurn(1)._y = _local2[0].yPos;
getInterfaceByTurn(2)._x = _local2[1].xPos;
getInterfaceByTurn(2)._y = _local2[1].yPos;
getInterfaceByTurn(3)._x = _local2[2].xPos;
getInterfaceByTurn(3)._y = _local2[2].yPos;
getInterfaceByTurn(4)._x = _local2[3].xPos;
getInterfaceByTurn(4)._y = _local2[3].yPos;
getInterfaceByTurn(5)._x = _local2[4].xPos;
getInterfaceByTurn(5)._y = _local2[4].yPos;
break;
case 2 :
getInterfaceByTurn(0)._x = _local2[4].xPos;
getInterfaceByTurn(0)._y = _local2[4].yPos;
getInterfaceByTurn(1)._x = _local2[5].xPos;
getInterfaceByTurn(1)._y = _local2[5].yPos;
getInterfaceByTurn(2)._x = _local2[0].xPos;
getInterfaceByTurn(2)._y = _local2[0].yPos;
getInterfaceByTurn(3)._x = _local2[1].xPos;
getInterfaceByTurn(3)._y = _local2[1].yPos;
getInterfaceByTurn(4)._x = _local2[2].xPos;
getInterfaceByTurn(4)._y = _local2[2].yPos;
getInterfaceByTurn(5)._x = _local2[3].xPos;
getInterfaceByTurn(5)._y = _local2[3].yPos;
break;
case 3 :
getInterfaceByTurn(0)._x = _local2[3].xPos;
getInterfaceByTurn(0)._y = _local2[3].yPos;
getInterfaceByTurn(1)._x = _local2[4].xPos;
getInterfaceByTurn(1)._y = _local2[4].yPos;
getInterfaceByTurn(2)._x = _local2[5].xPos;
getInterfaceByTurn(2)._y = _local2[5].yPos;
getInterfaceByTurn(3)._x = _local2[0].xPos;
getInterfaceByTurn(3)._y = _local2[0].yPos;
getInterfaceByTurn(4)._x = _local2[1].xPos;
getInterfaceByTurn(4)._y = _local2[1].yPos;
getInterfaceByTurn(5)._x = _local2[2].xPos;
getInterfaceByTurn(5)._y = _local2[2].yPos;
break;
case 4 :
getInterfaceByTurn(0)._x = _local2[2].xPos;
getInterfaceByTurn(0)._y = _local2[2].yPos;
getInterfaceByTurn(1)._x = _local2[3].xPos;
getInterfaceByTurn(1)._y = _local2[3].yPos;
getInterfaceByTurn(2)._x = _local2[4].xPos;
getInterfaceByTurn(2)._y = _local2[4].yPos;
getInterfaceByTurn(3)._x = _local2[5].xPos;
getInterfaceByTurn(3)._y = _local2[5].yPos;
getInterfaceByTurn(4)._x = _local2[0].xPos;
getInterfaceByTurn(4)._y = _local2[0].yPos;
getInterfaceByTurn(5)._x = _local2[1].xPos;
getInterfaceByTurn(5)._y = _local2[1].yPos;
break;
case 5 :
getInterfaceByTurn(0)._x = _local2[1].xPos;
getInterfaceByTurn(0)._y = _local2[1].yPos;
getInterfaceByTurn(1)._x = _local2[2].xPos;
getInterfaceByTurn(1)._y = _local2[2].yPos;
getInterfaceByTurn(2)._x = _local2[3].xPos;
getInterfaceByTurn(2)._y = _local2[3].yPos;
getInterfaceByTurn(3)._x = _local2[4].xPos;
getInterfaceByTurn(3)._y = _local2[4].yPos;
getInterfaceByTurn(4)._x = _local2[5].xPos;
getInterfaceByTurn(4)._y = _local2[5].yPos;
getInterfaceByTurn(5)._x = _local2[0].xPos;
getInterfaceByTurn(5)._y = _local2[0].yPos;
}
}
}
}
function initNewMatch() {
loadAvatars();
loadInterfaces();
if (imPlayer()) {
_global.rg.send("fn'onListSaveMatch'");
}
onInitNewMatch();
readyNewMatch();
}
function onInitNewMatch() {
}
function readyNewMatch() {
_global.intervalMngr.clearAllInterval();
m_qEvent.splice(0, m_qEvent.length);
m_showTurn = m_turnList[0];
var _local3 = 0;
while (_local3 < m_numPlayers) {
getAvatarByIndex(_local3)._visible = true;
getInterfaceByIndex(_local3)._visible = true;
getAvatarByIndex(_local3).mcClipTurn._visible = false;
_local3++;
}
_local3 = 0;
while (_local3 < m_numPlayers) {
m_player[_local3].points = 0;
m_player[_local3].result = 0;
m_player[_local3].position = 0;
m_player[_local3].numMovs = 0;
_local3++;
}
onReadyNewMatch();
if (imPlayer()) {
_global.rg.send("fn'onBeginMatch'");
}
_global.parentScene.mcOptionsWindow.updateOptions();
_global.parentScene.mcOptionsWindow.updateExtraOptions();
}
function onReadyNewMatch() {
}
function beginNewMatch(obj) {
m_endedMatch = false;
m_myBet = _global.gMatchs[_global.gMatchs.find("idMatch", _global.rg.idMatch)].initBet;
m_leaveBet = 0;
_global.rg.credits = _global.rg.credits - m_myBet;
m_maxBet = obj.maxBet;
m_numMatchs++;
m_numRounds = 0;
m_turn = m_initTurn;
nextInitTurn();
_global.parentScene.btnBet.enabled = true;
_global.parentScene.btnOptions.enabled = true;
var _local4 = isMyTurn();
m_imClean = _local4;
_root.mcBetWindow.mcBet.btnOk.enabled = _local4 && (m_maxBet > 0);
_root.mcBetWindow.mcBet.btnDelete.enabled = _local4 && (_global.rg.initBet > 0);
_root.mcOptionsWindow.btnSave.enabled = _local4;
_root.mcOptionsWindow.btnCargarOK.enabled = _local4 && (m_myBet == 0);
m_matchDuration.buffer = 0;
m_matchDuration.hrs = 0;
m_matchDuration.mins = 0;
m_matchDuration.sgs = 0;
m_matchDuration.msgs = new Date().getTime().toString();
onBeginNewMatch(obj);
getCurrentAvatar().mcClipTurn._visible = true;
getCurrentAvatar().mcClipTurn.play();
_global.parentScene.mcGameMessages._visible = false;
_level.mcMessages.mcWindow.Escape();
_level.mcMessagesStatistics.mcWindow.Escape();
}
function onBeginNewMatch(obj) {
}
function initPlayerLoadMatch() {
var _local3 = 0;
while (_local3 < m_numPlayers) {
getAvatarByIndex(_local3).mcClipTurn._visible = false;
_local3++;
}
onInitPlayerLoadMatch();
_global.rg.send("fn'onBeginMatch'");
}
function onInitPlayerLoadMatch() {
}
function readyPlayerLoadMatch() {
m_spectQueue.splice(0, m_spectQueue.length);
m_qEvent.splice(0, m_qEvent.length);
_global.intervalMngr.clearAllInterval();
_global.game.sync(Serialize.decode(_global.loadGame.game), true);
var _local4 = 0;
while (_local4 < m_initTurnList.length) {
m_nameList[_local4] = m_initNameList[_local4];
m_turnList[_local4] = m_initTurnList[_local4];
_local4++;
}
updatePlayersinfo();
_local4 = 0;
while (_local4 < m_leaveList.length) {
userLeaveMatch(m_leaveList[_local4]);
_local4++;
}
m_myTurn = m_turnList[m_nameList.find("", _global.rg.userName)];
if (imPlayer() && (_root.mcGameMessages.mcWindow._currentframe == 1)) {
_global.rg.send("fn'onListSaveMatch'");
}
var _local5 = isMyTurn();
m_imClean = _local5;
_root.mcBetWindow.mcBet.btnOk.enabled = _local5 && (_global.game.maxBet > 0);
_root.mcBetWindow.mcBet.btnDelete.enabled = _local5 && (_global.rg.initBet > 0);
_root.mcOptionsWindow.btnSave.enabled = _local5;
_root.mcOptionsWindow.btnCargarOK.enabled = _local5;
loadAvatars();
loadInterfaces();
_local4 = 0;
while (_local4 < m_numPlayers) {
getInterfaceByIndex(_local4).txtPoints.text = m_player[_local4].points;
_local4++;
}
delete _global.loadGame;
_global.parentScene.mcOptionsWindow.updateOptions();
_global.parentScene.mcOptionsWindow.updateExtraOptions();
onReadyPlayerLoadMatch();
}
function onReadyPlayerLoadMatch() {
}
function beginPlayerLoadMatch(obj) {
m_endedMatch = false;
m_maxBet = obj.maxBet;
_global.gMatchs[_global.gMatchs.find("idMatch", _global.rg.idMatch)].codLoadMatch = -1;
_global.parentScene.btnBet.enabled = true;
_global.parentScene.btnOptions.enabled = true;
m_matchDuration.msgs = new Date().getTime();
onBeginPlayerLoadMatch();
getCurrentAvatar().mcClipTurn._visible = true;
getCurrentAvatar().mcClipTurn.play();
if (_root.mcGameMessages.mcWindow._currentframe == 1) {
_global.parentScene.mcGameMessages._visible = false;
_level.mcMessages.mcWindow.Escape();
_level.mcMessagesStatistics.mcWindow.Escape();
}
}
function onBeginPlayerLoadMatch() {
}
function nextEvent() {
m_qEvent.shift();
if (m_qEvent.length > 0) {
_global.rg[m_qEvent[0].fn](m_qEvent[0]);
}
}
function sendInfoToSpectators() {
if (m_spectQueue.length == 0) {
return(undefined);
}
var _local4 = _global.game.cloneMatchInfo();
_local4.fn = "onRequestMatchInfo";
if (_level.mcMessagesStatistics.mcWindow._currentframe == 23) {
_local4.status = 0;
} else {
_local4.status = (_global.game.endedMatch ? 1 : 2);
}
onSendInfoToSpectators(_local4);
var _local3 = 0;
while (_local3 < _global.game.spectatorQueue.length) {
_local4.idUser = _global.game.spectatorQueue[_local3].idUser;
_local4.userName = _global.game.spectatorQueue[_local3].userName;
_local4.serverID = _global.game.spectatorQueue[_local3].serverID;
_local4.codservidor = _global.game.spectatorQueue[_local3].codservidor;
_global.rg.sendObjUser(_local4);
_local3++;
}
m_spectQueue.splice(0, m_spectQueue.length);
}
function onSendInfoToSpectators(obj) {
}
function spectatorLoadMatch(obj) {
if ((!imWaitingSpectator()) && (!m_imLoadingSpectator)) {
return(undefined);
}
m_endedMatch = false;
m_showTurn = m_turnList[0];
_global.parentScene.btnBet.enabled = true;
_global.parentScene.btnOptions.enabled = true;
_root.mcBetWindow.mcBet.btnOk.enabled = false;
_root.mcBetWindow.mcBet.btnDelete.enabled = false;
_root.mcOptionsWindow.btnSave.enabled = false;
_root.mcOptionsWindow.btnCargarOK.enabled = false;
_global.game.sync(obj, true);
var _local4 = 0;
while (_local4 < m_initTurnList.length) {
m_nameList[_local4] = m_initNameList[_local4];
m_turnList[_local4] = m_initTurnList[_local4];
_local4++;
}
updatePlayersinfo();
_local4 = 0;
while (_local4 < m_leaveList.length) {
userLeaveMatch(m_leaveList[_local4]);
_local4++;
}
loadAvatars();
loadInterfaces();
_local4 = 0;
while (_local4 < m_numPlayers) {
getInterfaceByIndex(_local4).txtPoints.text = m_player[_local4].points;
_local4++;
}
_level.mcMessages.mcWindow.Escape();
_level.mcMessagesStatistics.mcWindow.Escape();
delete _global.loadGame;
_local4 = 0;
while (_local4 < m_numPlayers) {
getAvatarByIndex(_local4).mcClipTurn._visible = false;
_local4++;
}
getCurrentAvatar().mcClipTurn._visible = true;
getCurrentAvatar().mcClipTurn.play();
switch (obj.status) {
case 0 :
_global.parentScene.mcGameMessages._visible = false;
_global.sounds.playSound("empate");
_global.sounds.empate.onSoundComplete = function () {
_global.game.showResults(_global.game.turnList[0]);
};
break;
case 1 :
break;
case 2 :
onSpectatorLoadMatch(obj);
_global.parentScene.mcGameMessages._visible = false;
}
m_imLoadingSpectator = false;
_global.rg[m_qEvent[0].fn](m_qEvent[0]);
}
function onSpectatorLoadMatch(obj) {
}
function deleteMatchFromList(codpartida) {
var _local3 = _root.mcOptionsWindow.lstCargar.length;
var _local2 = 0;
while (_local2 < _local3) {
if (codpartida == _root.mcOptionsWindow.lstCargar.getItemAt(_local2).codpartida) {
_root.mcOptionsWindow.lstCargar.removeItemAt(_local2);
if (_root.mcOptionsWindow.lstCargar.dataProvider.length == 0) {
_root.mcOptionsWindow.btnCargarOK.enabled = false;
} else {
_root.mcOptionsWindow.txtSave._visible = false;
}
}
_local2++;
}
}
function updatePlayersinfo() {
var _local7 = _global.game.player.clone();
m_player.splice(0, m_player.length);
var _local6 = m_initNameList.length;
var _local3 = 0;
while (_local3 < _local6) {
m_player.push(new cPlayer({userName:m_initNameList[_local3], team:Math.floor(_local3 / m_numPlayersPerTeam)}));
_local3++;
}
_global.game.player.sync(_local7, true);
}
function pauseOn() {
_global.parentScene.mcChatWindow._visible = false;
_global.parentScene.mcOptionsWindow._visible = false;
_global.parentScene.mcBetWindow._visible = false;
_global.parentScene.mcExitWindow._visible = false;
_global.parentScene.btnOptions.enabled = false;
_global.parentScene.btnBet.enabled = false;
m_isPaused = true;
onPauseOn();
}
function onPauseOn() {
}
function pauseOff() {
_global.parentScene.btnOptions.enabled = true;
_global.parentScene.btnBet.enabled = true;
m_isPaused = false;
onPauseOff();
}
function onPauseOff() {
}
function onBeforeChgInitTurn() {
}
function onAfterChgInitTurn() {
}
function onBeforeChgTurn() {
}
function onAfterChgTurn() {
}
function getPrevInitTurn(pInitTurn) {
var _local3 = -1;
var _local2 = 0;
while (_local2 < m_numPlayers) {
if (m_turnList[_local2] == pInitTurn) {
_local3 = _local2;
}
_local2++;
}
_local3--;
if (_local3 < 0) {
_local3 = m_numPlayers - 1;
}
return(m_turnList[_local3]);
}
function getNextInitTurn(pInitTurn) {
var _local3 = -1;
var _local2 = 0;
while (_local2 < m_numPlayers) {
if (m_turnList[_local2] == pInitTurn) {
_local3 = _local2;
}
_local2++;
}
_local3++;
if (_local3 >= m_numPlayers) {
_local3 = 0;
}
return(m_turnList[_local3]);
}
function nextInitTurn() {
onBeforeChgInitTurn();
m_initTurn = getNextInitTurn(m_initTurn);
if (imPlayer()) {
var _local4 = isMyTurn();
_root.mcBetWindow.mcBet.btnOk.enabled = _local4 && (_global.game.maxBet > 0);
_root.mcBetWindow.mcBet.btnDelete.enabled = _local4 && (_global.game.myBet > 0);
_root.mcOptionsWindow.btnSave.enabled = _local4;
_root.mcOptionsWindow.btnCargarOK.enabled = _local4 && (_root.mcOptionsWindow.lstCargar.dataProvider.length > 0);
}
onAfterChgInitTurn();
return(m_initTurn);
}
function getPrevTurn(pTurn) {
pTurn = ((pTurn != undefined) ? (pTurn) : (m_turn));
var _local3 = -1;
var _local2 = 0;
while (_local2 < m_numPlayers) {
if (m_turnList[_local2] == pTurn) {
_local3 = _local2;
}
_local2++;
}
_local3--;
if (_local3 < 0) {
_local3 = m_numPlayers - 1;
}
return(m_turnList[_local3]);
}
function prevTurn() {
getCurrentAvatar().mcClipTurn._visible = false;
m_player[m_turnList.find("", m_turn)].statistics.numMovs++;
onBeforeChgTurn();
m_numRounds++;
m_turn = getPrevTurn(m_turn);
if (imPlayer()) {
var _local4 = isMyTurn();
m_imClean = _local4;
_root.mcBetWindow.mcBet.btnOk.enabled = _local4 && (_global.game.maxBet > 0);
_root.mcBetWindow.mcBet.btnDelete.enabled = _local4 && (_global.game.myBet > 0);
_root.mcOptionsWindow.btnSave.enabled = _local4;
_root.mcOptionsWindow.btnCargarOK.enabled = _local4 && (_root.mcOptionsWindow.lstCargar.dataProvider.length > 0);
(_local4 ? (sendInfoToSpectators()) : (m_spectQueue.splice(0, m_spectQueue.length)));
if (_local4) {
_global.sounds.playSound("bell");
}
}
getCurrentAvatar().mcClipTurn._visible = true;
getCurrentAvatar().mcClipTurn.play();
onAfterChgTurn();
return(m_turn);
}
function getNextTurn(pTurn) {
pTurn = ((pTurn != undefined) ? (pTurn) : (m_turn));
var _local3 = -1;
var _local2 = 0;
while (_local2 < m_numPlayers) {
if (m_turnList[_local2] == pTurn) {
_local3 = _local2;
}
_local2++;
}
_local3++;
if (_local3 >= m_numPlayers) {
_local3 = 0;
}
return(m_turnList[_local3]);
}
function nextTurn() {
getCurrentAvatar().mcClipTurn._visible = false;
m_player[m_turnList.find("", m_turn)].statistics.numMovs++;
onBeforeChgTurn();
m_numRounds++;
m_turn = getNextTurn(m_turn);
if (imPlayer()) {
var _local4 = isMyTurn();
m_imClean = _local4;
_root.mcBetWindow.mcBet.btnOk.enabled = _local4 && (_global.game.maxBet > 0);
_root.mcBetWindow.mcBet.btnDelete.enabled = _local4 && (_global.game.myBet > 0);
_root.mcOptionsWindow.btnSave.enabled = _local4;
_root.mcOptionsWindow.btnCargarOK.enabled = _local4 && (_root.mcOptionsWindow.lstCargar.dataProvider.length > 0);
(_local4 ? (sendInfoToSpectators()) : (m_spectQueue.splice(0, m_spectQueue.length)));
if (_local4) {
_global.sounds.playSound("bell");
}
}
getCurrentAvatar().mcClipTurn._visible = true;
getCurrentAvatar().mcClipTurn.play();
onAfterChgTurn();
return(m_turn);
}
function isMyIdUser(idUser) {
return(_global.rg.idUser == idUser);
}
function isMyTurn() {
return(m_turn == m_myTurn);
}
function isHisTurn(pTurn) {
return(m_turn == pTurn);
}
function isHisIdUserTurn(pIdUser) {
return(m_player[m_turnList.find("", m_turn)].idUser == pIdUser);
}
function senderIsValid(obj) {
return((_global.rg.idUser != obj.__idUser) && (m_player[m_turnList.find("", m_turn)].idUser == obj.__idUser));
}
function imTheOwner() {
return((!_global.rg._lookMacth) && (_global.rg.userName == m_ownerName));
}
function imSpectator() {
return(m_myTurn == -1);
}
function imWaitingSpectator() {
var _local4 = m_spectQueue.length;
var _local3 = 0;
while (_local3 < _local4) {
if (m_spectQueue[_local3].idUser == _global.rg.idUser) {
return(true);
}
_local3++;
}
return(false);
}
function imPlayer() {
return(m_myTurn != -1);
}
function getWinnerTurn() {
var _local2 = 0;
while (_local2 < m_numPlayers) {
if (m_player[_local2].result == 1) {
return(_local2);
}
_local2++;
}
return(-1);
}
function getLoserTurn() {
var _local2 = 0;
while (_local2 < m_numPlayers) {
if (m_player[_local2].result == -1) {
return(_local2);
}
_local2++;
}
return(-1);
}
function iHaveWon() {
return((!_global.rg._lookMacth) && (m_player[m_turnList.find("", m_myTurn)].result == 1));
}
function iHaveDraw() {
return((!_global.rg._lookMacth) && (m_player[m_turnList.find("", m_myTurn)].result == 0));
}
function iHaveLost() {
return((!_global.rg._lookMacth) && (m_player[m_turnList.find("", m_myTurn)].result == -1));
}
function isMyTeammate(pTurn) {
return((!_global.rg._lookMacth) && (m_player[m_turnList.find("", pTurn)].team == m_player[m_turnList.find("", m_myTurn)].team));
}
function countDown() {
_global.parentScene.mcGameMessages.mcWindow.time = int(_global.parentScene.mcGameMessages.mcWindow.timeOut - ((new Date().getTime() - _global.parentScene.mcGameMessages.mcWindow.startTime) / 1000));
_global.parentScene.mcGameMessages.mcWindow.txtTimeOut.text = _global.parentScene.mcGameMessages.mcWindow.time + " sg";
if (_global.parentScene.mcGameMessages.mcWindow.time < 0) {
_global.intervalMngr.clearOneInterval("countDown");
_global.parentScene.mcGameMessages.mcWindow.EnviarRespuesta(false);
}
}
function showMessage(photogram, bInterval, timeOut, duration) {
if (imSpectator()) {
return(undefined);
}
_global.parentScene.mcGameMessages._visible = false;
_global.parentScene.mcGameMessages.mcWindow.gotoAndStop(1);
_global.parentScene.mcGameMessages.mcWindow.gotoAndStop(photogram);
if (bInterval) {
_global.parentScene.mcGameMessages.mcWindow.startTime = new Date().getTime();
if (timeOut == undefined) {
_global.parentScene.mcGameMessages.mcWindow.timeOut = 10;
} else {
timeOut++;
_global.parentScene.mcGameMessages.mcWindow.timeOut = timeOut;
}
if (duration == undefined) {
_global.parentScene.mcGameMessages.mcWindow.duration = 1000;
} else {
_global.parentScene.mcGameMessages.mcWindow.duration = duration;
}
_global.parentScene.mcGameMessages.mcWindow.time = _global.parentScene.mcGameMessages.mcWindow.timeOut;
_global.parentScene.mcGameMessages.mcWindow.txtTimeOut.text = _global.parentScene.mcGameMessages.mcWindow.time + " sg";
_global.intervalMngr.clearOneInterval("countDown");
countDown();
_global.intervalMngr.setInterval("countDown", setInterval(countDown, _global.parentScene.mcGameMessages.mcWindow.duration));
}
_global.parentScene.mcGameMessages._visible = true;
}
function userLeaveMatch(userName) {
var _local10 = _global.gMatchs[_global.gMatchs.find("idMatch", _global.rg.idMatch)].clone();
var _local5 = m_nameList.find("", userName);
m_nameList.splice(_local5, 1);
var _local9 = getPrevTurn(m_turn);
var _local6 = m_turnList[_local5];
onBeforeUserLeaveMatch(_local6);
m_turnList.splice(_local5, 1);
getAvatarByTurn(_local6)._visible = false;
getInterfaceByTurn(_local6)._visible = false;
var _local7 = m_turnList.find("", m_turn) == -1;
if (_local7) {
m_turn = _local9;
}
if (m_leaveList.find("", userName) == -1) {
m_player.splice(_local5, 1);
m_numPlayers--;
m_numTeams--;
m_numPlayersPerTeam = m_numPlayers / m_numTeams;
m_leaveBet = m_leaveBet + m_myBet;
if (imPlayer()) {
_global.rg.send("fn'onListSaveMatch'");
}
m_leaveList.push(userName);
}
m_ownerName = m_nameList[0];
m_showTurn = m_turnList[0];
var _local4 = true;
var _local3 = 0;
while (_local3 < _global.game.numPlayers) {
_local4 = _local4 && (_global.game.player[_local3].type != 2);
_local3++;
}
_global.parentScene.mcOptionsWindow.btnLoad.enabled = _local4;
_global.parentScene.mcOptionsWindow.btnSavePest.enabled = _local4;
_global.parentScene.mcOptionsWindow.updateOptions();
onUserLeaveMatch(_local7, _local6);
}
function onBeforeUserLeaveMatch(leaveTurn) {
}
function onUserLeaveMatch(isHisturn, leaveTurn) {
}
function endMatch() {
m_allReady = false;
m_imClean = isMyTurn();
_root.mcBetWindow._visible = false;
_global.parentScene.btnBet.enabled = false;
_root.mcOptionsWindow._visible = false;
_global.parentScene.btnOptions.enabled = false;
_global.intervalMngr.clearAllInterval();
var _local4 = 0;
while (_local4 < m_numPlayers) {
getAvatarByIndex(_local4).mcClipTurn._visible = false;
_local4++;
}
calcMatchDuration();
onEndMatch();
calcResults();
calcStatistics();
if (imPlayer()) {
sendOnEndMatch(false);
} else {
_global.sounds.playSound("empate");
_global.game.showResults(_global.game.turnList[0]);
}
}
function onEndMatch() {
}
function getNumWinners() {
var _local3 = 0;
var _local2 = 0;
while (_local2 < m_numPlayers) {
if (m_player[_local2].result == 1) {
_local3++;
}
_local2++;
}
return(_local3);
}
function showResults(pTurn) {
m_showTurn = pTurn;
_level.mcMessagesStatistics.mcWindow.Escape();
_level.attachMovie("mcMessages", "mcMessagesStatistics", _level.getNextHighestDepth());
_level.mcMessagesStatistics.swapDepths(_level.mcMessages);
_level.mcMessagesStatistics.mcWindow.gotoAndStop("fRebootMatch");
}
function onShowResults() {
}
function onWinMatch() {
}
function onDrawMatch() {
}
function onLoseMatch() {
}
function calcMatchDuration() {
m_matchDuration.msgs = (new Date().getTime() - Number(m_matchDuration.msgs)) + m_matchDuration.buffer;
m_matchDuration.hrs = Math.floor(Number(m_matchDuration.msgs) / 3600000);
var _local2 = Number(m_matchDuration.msgs) % 3600000;
m_matchDuration.mins = Math.floor(_local2 / 60000);
m_matchDuration.sgs = Math.floor((_local2 % 60000) / 1000);
}
function calcResults() {
var _local2 = 0;
while (_local2 < m_numPlayers) {
if (getWinnerTurn() != -1) {
if (m_player[_local2].isTeammate(getWinnerTurn())) {
m_player[_local2].result = 1;
} else {
m_player[_local2].result = -1;
}
} else if (getLoserTurn() != -1) {
if (m_player[_local2].isTeammate(getLoserTurn())) {
m_player[_local2].result = -1;
} else if (m_numTeams > 2) {
onDoubtResult();
} else {
m_player[_local2].result = 1;
}
} else {
m_player[_local2].result = 0;
}
_local2++;
}
onCalcResults();
}
function onCalcResults() {
}
function onDoubtResult() {
}
function calcStatistics() {
var _local2 = 0;
while (_local2 < m_numPlayers) {
m_player[_local2].statistics.calculate();
_local2++;
}
}
function onCalcStatistics() {
}
function sendOnEndMatch(bNull) {
if (imSpectator()) {
return(undefined);
}
var _local7 = _global.gMatchs[_global.gMatchs.find("idMatch", _global.rg.idMatch)].clone();
var _local5 = _global.gUsers.find("idUser", _local7.idOwner);
m_ownerName = _global.gUsers[_local5].userName;
if (!bNull) {
var _local6 = int(m_matchDuration.msgs / 1000);
var _local4 = "fn'onEndMatch'result[";
var _local3 = 0;
while (_local3 < m_numPlayers) {
_local5 = _global.gUsers.find("userName", m_player[_local3].name);
_local4 = _local4 + ((_local3 + "{idUser&") + _global.gUsers[_local5].idUser);
_local4 = _local4 + (";result&" + m_player[_local3].result);
_local4 = _local4 + (";points&" + m_player[_local3].points);
_local4 = _local4 + ((";duration&" + _local6) + ";}");
_local3++;
}
_global.rg.send(_local4 + "]");
} else {
_global.rg.send("fn'onNullMatch'");
}
}
function loadSounds(sounds) {
var _local4 = sounds.length;
var _local2 = 0;
while (_local2 < _local4) {
m_snd[sounds[_local2]] = new Sound();
m_snd[sounds[_local2]].loadSound(("../sounds/" + sounds[_local2]) + ".mp3", false);
_local2++;
}
}
function onPrevTimeOut(idUser) {
var _local2 = new Array();
_local2 = _local2.concat([0.3, 0.3, 0.3, 0, 0]);
_local2 = _local2.concat([0.3, 0.3, 0.3, 0, 0]);
_local2 = _local2.concat([0.3, 0.3, 0.3, 0, 0]);
_local2 = _local2.concat([0, 0, 0, 1, 0]);
var _local3 = new flash.filters.ColorMatrixFilter(_local2);
getAvatarByIdUser(idUser).avatar.filters = new Array(_local3);
}
function onAlivePrevTimeOut(idUser) {
getAvatarByIdUser(idUser).avatar.filters = [];
}
}
Symbol 1988 MovieClip [__Packages.cPlayer] Frame 0
class cPlayer
{
var m_name, m_team, m_idUser, m_code, m_type, m_avatar, m_statistics, m_extra;
function cPlayer (obj) {
m_name = obj.userName;
m_team = obj.team;
var _local3 = _global.gUsers.find("userName", m_name);
m_idUser = _global.gUsers[_local3].idUser;
m_code = _global.gUsers[_local3].codusuario;
m_type = _global.gUsers[_local3].type;
m_avatar = _global.gUsers[_local3].avatar;
m_statistics = new cStatistics();
m_extra = new Object();
}
function get idUser() {
return(m_idUser);
}
function set idUser(pIdUser) {
m_idUser = pIdUser;
//return(idUser);
}
function get name() {
return(m_name);
}
function set name(pName) {
m_name = pName;
//return(name);
}
function get code() {
return(m_code);
}
function set code(pCode) {
m_code = pCode;
//return(code);
}
function get type() {
return(m_type);
}
function set type(pType) {
m_type = pType;
//return(type);
}
function get team() {
return(m_team);
}
function set team(pTeam) {
m_team = pTeam;
//return(team);
}
function get avatar() {
return(m_avatar);
}
function set avatar(pAvatar) {
m_avatar = pAvatar;
//return(avatar);
}
function get points() {
return(m_statistics.__get__points());
}
function set points(pPoints) {
m_statistics.__set__points(pPoints);
//return(points);
}
function get result() {
return(m_statistics.__get__currentResult());
}
function set result(pResult) {
m_statistics.__set__currentResult(pResult);
//return(result);
}
function get position() {
return(m_statistics.__get__currentPosition());
}
function set position(pPosition) {
m_statistics.__set__currentPosition(pPosition);
//return(position);
}
function get numMovs() {
return(m_statistics.__get__numMovs());
}
function set numMovs(pNumMovs) {
m_statistics.__set__numMovs(pNumMovs);
//return(numMovs);
}
function get statistics() {
return(m_statistics);
}
function get extra() {
return(m_extra);
}
function set extra(pExtra) {
m_extra = pExtra;
//return(extra);
}
function isTeammate(pTurn) {
return(m_team == _global.game.player[pTurn].team);
}
}
Symbol 1989 MovieClip [__Packages.cStatistics] Frame 0
class cStatistics
{
var m_currentResult, m_lastResult, m_currentPosition, m_lastPosition, m_win, m_maxFollowedWin, m_draw, m_lose, m_maxFollowedLose, m_followedResults, m_points, m_totalPoints, m_maxPoints, m_minPoints, m_credits, m_maxCredits, m_minCredits, m_numMovs, m_extra;
function cStatistics () {
m_currentResult = 0;
m_lastResult = 0;
m_currentPosition = 0;
m_lastPosition = 0;
m_win = 0;
m_maxFollowedWin = 0;
m_draw = 0;
m_lose = 0;
m_maxFollowedLose = 0;
m_followedResults = 0;
m_points = 0;
m_totalPoints = 0;
m_maxPoints = 0;
m_minPoints = 0;
m_credits = 0;
m_maxCredits = 0;
m_minCredits = 0;
m_numMovs = 0;
m_extra = new Object();
}
function get currentResult() {
return(m_currentResult);
}
function set currentResult(pCurrentResult) {
m_currentResult = pCurrentResult;
//return(currentResult);
}
function get currentPosition() {
return(m_currentPosition);
}
function set currentPosition(pCurrentPosition) {
m_currentPosition = pCurrentPosition;
//return(currentPosition);
}
function get lastPosition() {
return(m_lastPosition);
}
function set lastPosition(pLastPosition) {
m_lastPosition = pLastPosition;
//return(lastPosition);
}
function get win() {
return(m_win);
}
function set win(pWin) {
m_win = pWin;
//return(win);
}
function get maxFollowedWin() {
return(m_maxFollowedWin);
}
function set maxFollowedWin(pMaxFollowedWin) {
m_maxFollowedWin = pMaxFollowedWin;
//return(maxFollowedWin);
}
function get draw() {
return(m_draw);
}
function set draw(pDraw) {
m_draw = pDraw;
//return(draw);
}
function get lose() {
return(m_lose);
}
function set lose(pLose) {
m_lose = pLose;
//return(lose);
}
function get maxFollowedLose() {
return(m_maxFollowedLose);
}
function set maxFollowedLose(pMaxFollowedLose) {
m_maxFollowedLose = pMaxFollowedLose;
//return(maxFollowedLose);
}
function get followedResults() {
return(m_followedResults);
}
function set followedResults(pFollowedResults) {
m_followedResults = pFollowedResults;
//return(followedResults);
}
function get points() {
return(m_points);
}
function set points(pPoints) {
m_points = pPoints;
//return(points);
}
function get totalPoints() {
return(m_totalPoints);
}
function set totalPoints(pTotalPoints) {
m_totalPoints = pTotalPoints;
//return(totalPoints);
}
function get maxPoints() {
return(m_maxPoints);
}
function set maxPoints(pMaxPoints) {
m_maxPoints = pMaxPoints;
//return(maxPoints);
}
function get minPoints() {
return(m_minPoints);
}
function set minPoints(pMinPoints) {
m_minPoints = pMinPoints;
//return(minPoints);
}
function get credits() {
return(m_credits);
}
function set credits(pCredits) {
m_credits = pCredits;
//return(credits);
}
function get maxCredits() {
return(m_maxCredits);
}
function set maxCredits(pMaxCredits) {
m_maxCredits = pMaxCredits;
//return(maxCredits);
}
function get minCredits() {
return(m_minCredits);
}
function set minCredits(pMinCredits) {
m_minCredits = pMinCredits;
//return(minCredits);
}
function get numMovs() {
return(m_numMovs);
}
function set numMovs(pNumMovs) {
m_numMovs = pNumMovs;
//return(numMovs);
}
function get extra() {
return(m_extra);
}
function set extra(pExtra) {
m_extra = pExtra;
//return(extra);
}
function calculate() {
if (m_currentResult == 1) {
m_win++;
if ((m_lastResult == -1) || (m_lastResult == 0)) {
m_followedResults = 1;
} else {
m_followedResults++;
}
m_lastResult = 1;
} else if (m_currentResult == -1) {
m_lose++;
if ((m_lastResult == 1) || (m_lastResult == 0)) {
m_followedResults = -1;
} else {
m_followedResults--;
}
m_lastResult = -1;
} else {
m_draw++;
}
var _local3 = (_global.game.myBet * (_global.game.numPlayers - 1)) * m_currentResult;
m_credits = m_credits + _local3;
if (_local3 > m_maxCredits) {
m_maxCredits = _local3;
} else if (_local3 < m_minCredits) {
m_minCredits = _local3;
}
m_totalPoints = m_totalPoints + m_points;
if (m_points > m_maxPoints) {
m_maxPoints = m_points;
} else if (m_points < m_minPoints) {
m_minPoints = m_points;
}
if (m_followedResults > m_maxFollowedWin) {
m_maxFollowedWin = m_followedResults;
} else if (m_followedResults < m_maxFollowedLose) {
m_maxFollowedLose = Math.abs(m_followedResults);
}
_global.game.onCalcStatistics();
m_lastResult = m_currentResult;
m_lastPosition = m_currentPosition;
}
}
Symbol 1990 MovieClip [__Packages.cIntervalManager] Frame 0
class cIntervalManager
{
function cIntervalManager () {
}
function clearAllInterval() {
for (var _local4 in this) {
var _local3 = this[_local4].ids.length;
var _local2 = 0;
while (_local2 < _local3) {
clearInterval(this[_local4].ids.shift());
_local2++;
}
delete this[_local4];
}
}
function clearOneInterval(pIntervalName) {
if (this[pIntervalName] != undefined) {
clearInterval(this[pIntervalName].ids.shift());
}
}
function addInterval(pIntervalName, pMaxLength) {
if (this[pIntervalName] != undefined) {
var _local4 = this[pIntervalName].ids.length;
var _local2 = 0;
while (_local2 < _local4) {
clearInterval(this[pIntervalName].ids.shift());
_local2++;
}
} else {
this[pIntervalName] = new Object();
this[pIntervalName].ids = new Array();
}
if (pMaxLength != undefined) {
this[pIntervalName].maxLength = pMaxLength;
} else {
this[pIntervalName].maxLength = 1;
}
}
function setInterval(pIntervalName, pValue) {
if (this[pIntervalName] == undefined) {
addInterval(pIntervalName, 1);
}
if (this[pIntervalName].ids.length == this[pIntervalName].maxLength) {
clearInterval(this[pIntervalName].ids.shift());
}
if (pValue != undefined) {
this[pIntervalName].ids.push(pValue);
}
}
function howMany(pIntervalName) {
var _local4 = 0;
if (pIntervalName != undefined) {
var _local3 = this[pIntervalName].ids.length;
var _local2 = 0;
while (_local2 < _local3) {
_local4++;
_local2++;
}
} else {
for (var _local5 in this) {
var _local3 = this[_local5].ids.length;
var _local2 = 0;
while (_local2 < _local3) {
_local4++;
_local2++;
}
}
}
return(_local4);
}
}
Symbol 25 MovieClip [__Packages.czVScrollBar] Frame 0
class czVScrollBar extends MovieClip
{
var __width, __height, mLstTxt, mTargetInstanceName, _parent, mPageSize, mMaxPos, mMinPos, mScrollPosition, mcScrollBar, mOnScroll, mUseHandCursor, useHandCursor, mEnabled, oldy, mSkin, mData, isScrolling, dispatchEvent, _focusrect, _width, _height, _xscale, _yscale, mcBoundingBox, attachMovie, createEmptyMovieClip, ID_Funcion, ymin, ymax, xmin, xmax;
function czVScrollBar () {
super();
init();
createChildren();
setSize(__width, __height);
}
function set _targetInstanceName(pTargetInstanceName) {
if (mLstTxt != undefined) {
mTargetInstanceName.removeListener(mLstTxt);
}
mLstTxt = new Object();
mTargetInstanceName = ((typeof(pTargetInstanceName) == "string") ? (_parent[pTargetInstanceName]) : (pTargetInstanceName));
var This = this;
var _local5 = true;
mPageSize = mTargetInstanceName.bottomScroll - mTargetInstanceName.scroll;
if (mPageSize == 0) {
mPageSize = 5;
}
mMaxPos = mTargetInstanceName.maxscroll;
mMinPos = 1;
arrange();
mScrollPosition = 1;
var _local4 = (((mScrollPosition - minPos) * (mcScrollBar.mcTrack._height - mcScrollBar.mcThumb._height)) / (maxPos - minPos)) + mcScrollBar.mcTrack._y;
mcScrollBar.mcThumb._y = _local4;
mcScrollBar.mcThumbGrip._y = mcScrollBar.mcThumb._y + ((mcScrollBar.mcThumb._height - mcScrollBar.mcThumbGrip._height) / 2);
onScroll = (function () {
this.mTargetInstanceName.scroll = Math.round(This.mScrollPosition);
});
mLstTxt.onScroller = function (target) {
var _local1 = false;
if (This.mMinPos != 1) {
This.mMinPos = 1;
_local1 = true;
}
if (This.mMaxPos != target.maxscroll) {
This.mMaxPos = target.maxscroll;
_local1 = true;
}
if ((This.mPageSize != (This.mTargetInstanceName.bottomScroll - This.mTargetInstanceName.scroll)) && (This.mPageSize != ((This.mTargetInstanceName.bottomScroll - This.mTargetInstanceName.scroll) + 1))) {
This.mPageSize = This.mTargetInstanceName.bottomScroll - This.mTargetInstanceName.scroll;
_local1 = true;
}
if (_local1) {
This.arrange();
}
This.scrollPosition = target.scroll;
};
mLstTxt.onChanged = function (target) {
var _local1 = false;
if (This.mMinPos != 1) {
This.mMinPos = 1;
_local1 = true;
}
if (This.mMaxPos != target.maxscroll) {
This.mMaxPos = target.maxscroll;
_local1 = true;
}
if ((This.mPageSize != (This.mTargetInstanceName.bottomScroll - This.mTargetInstanceName.scroll)) && (This.mPageSize != ((This.mTargetInstanceName.bottomScroll - This.mTargetInstanceName.scroll) + 1))) {
This.mPageSize = This.mTargetInstanceName.bottomScroll - This.mTargetInstanceName.scroll;
_local1 = true;
}
if (_local1) {
This.arrange();
}
This.scrollPosition = target.scroll;
};
mTargetInstanceName.addListener(mLstTxt);
//return(_targetInstanceName);
}
function get _targetInstanceName() {
return(mTargetInstanceName);
}
function set onScroll(pOnScroll) {
mOnScroll = pOnScroll;
//return(onScroll);
}
function get onScroll() {
return(mOnScroll);
}
function set _useHandCursor(pUseHandCursor) {
mUseHandCursor = pUseHandCursor;
useHandCursor = mUseHandCursor;
//return(_useHandCursor);
}
function get _useHandCursor() {
return(mUseHandCursor);
}
function set enabled(pEnabled) {
mEnabled = pEnabled;
if (!mEnabled) {
oldy = mcScrollBar.mcThumb._y;
}
createChildren();
//return(enabled);
}
function get enabled() {
return(mEnabled);
}
function set skin(pSkin) {
mSkin = pSkin;
createChildren();
//return(skin);
}
function get skin() {
return(mSkin);
}
function set data(pData) {
mData = pData;
//return(data);
}
function get data() {
return(mData);
}
function set minPos(pMinPos) {
mMinPos = ((pMinPos <= mMaxPos) ? (pMinPos) : (mMaxPos));
createChildren();
scrollPosition = (scrollPosition);
//return(minPos);
}
function get minPos() {
return(mMinPos);
}
function set maxPos(pMaxPos) {
mMaxPos = ((pMaxPos >= mMinPos) ? (pMaxPos) : (mMinPos));
createChildren();
scrollPosition = (scrollPosition);
//return(maxPos);
}
function get maxPos() {
return(mMaxPos);
}
function SetmPos(pMaxPos) {
mMaxPos = pMaxPos;
createChildren();
scrollPosition = (scrollPosition);
}
function GetmPos() {
return(mMaxPos);
}
function set scrollPosition(pScrollPosition) {
if (pScrollPosition < minPos) {
pScrollPosition = minPos;
}
if (pScrollPosition > maxPos) {
pScrollPosition = maxPos;
}
mScrollPosition = pScrollPosition;
if (!isScrolling) {
pScrollPosition = Math.min(pScrollPosition, maxPos);
pScrollPosition = Math.max(pScrollPosition, minPos);
var _local3 = (((pScrollPosition - minPos) * (mcScrollBar.mcTrack._height - mcScrollBar.mcThumb._height)) / (maxPos - minPos)) + mcScrollBar.mcTrack._y;
mcScrollBar.mcThumb._y = _local3;
}
mcScrollBar.mcThumbGrip._y = mcScrollBar.mcThumb._y + ((mcScrollBar.mcThumb._height - mcScrollBar.mcThumbGrip._height) / 2);
if (isNaN(scrollPosition)) {
mScrollPosition = 0;
}
mOnScroll();
dispatchEvent({type:"scroll"});
//return(scrollPosition);
}
function get scrollPosition() {
return(mScrollPosition);
}
function set pageSize(pPageSize) {
mPageSize = pPageSize;
createChildren();
//return(pageSize);
}
function get pageSize() {
return(mPageSize);
}
function init() {
_focusrect = false;
__width = _width;
__height = _height;
_xscale = 100;
_yscale = 100;
mx.events.EventDispatcher.initialize(this);
mcBoundingBox._visible = false;
mcBoundingBox._width = 0;
mcBoundingBox._height = 0;
}
function createChildren() {
function dragThumb(Void) {
var _local2 = this._parent._parent;
var _local3 = (this._ymouse - lastY) + this._y;
if (_local3 < _local2.ymin) {
_local3 = _local2.ymin;
} else if (_local3 > _local2.ymax) {
_local3 = _local2.ymax;
}
if (_local2.mMaxPos > 0) {
this._y = _local3;
}
var _local4 = (((_local2.maxPos - _local2.minPos) * (this._y - _local2.ymin)) / (_local2.ymax - _local2.ymin)) + _local2.minPos;
_local2.scrollPosition = _local4;
updateAfterEvent();
}
if (int(skin.length) > 0) {
attachMovie(skin, "mcScrollBar", 1);
if (!enabled) {
useHandCursor = false;
mcScrollBar.useHandCursor = false;
mcScrollBar.mcArrowUp.enabled = false;
mcScrollBar.mcArrowDown.enabled = false;
mcScrollBar.mcTrack.enabled = false;
mcScrollBar.mcTrack.mcTrackTop.enabled = false;
mcScrollBar.mcTrack.mcTrackMiddle.enabled = false;
mcScrollBar.mcTrack.mcTrackBottom.enabled = false;
mcScrollBar.mcThumb.enabled = false;
mcScrollBar.mcThumb.mcThumbTop.enabled = false;
mcScrollBar.mcThumb.mcThumbMiddle.enabled = false;
mcScrollBar.mcThumb.mcThumbBottom.enabled = false;
}
} else {
createEmptyMovieClip("mcScrollBar", 1);
mcScrollBar.createEmptyMovieClip("mcArrowUp", 2);
mcScrollBar.createEmptyMovieClip("mcArrowDown", 3);
mcScrollBar.createEmptyMovieClip("mcTrack", 4);
if (enabled) {
mcScrollBar.createEmptyMovieClip("mcThumb", 5);
createButtonUp(mcScrollBar.mcArrowUp, 0, 0, 16, 16);
createVerticalArrow(mcScrollBar.mcArrowUp, 4, 10, 7, 0, 1);
createButtonUp(mcScrollBar.mcArrowDown, 0, 0, 16, 16);
createVerticalArrow(mcScrollBar.mcArrowDown, 4, 6, 7, 0, -1);
rect(mcScrollBar.mcTrack, 0, 0, 16, (__height - mcScrollBar.mcArrowUp._height) - mcScrollBar.mcArrowDown._height, 13947080);
createButtonUp(mcScrollBar.mcThumb, 0, 0, 16, 16);
useHandCursor = _useHandCursor;
mcScrollBar.useHandCursor = _useHandCursor;
mcScrollBar.mcArrowUp.useHandCursor = _useHandCursor;
mcScrollBar.mcArrowDown.useHandCursor = _useHandCursor;
mcScrollBar.mcTrack.useHandCursor = _useHandCursor;
mcScrollBar.mcThumb.useHandCursor = _useHandCursor;
} else {
createButtonUp(mcScrollBar.mcArrowUp, 0, 0, 16, 16);
createVerticalArrow(mcScrollBar.mcArrowUp, 5, 11, 7, 16777215, 1);
createVerticalArrow(mcScrollBar.mcArrowUp, 4, 10, 7, 11315353, 1);
createButtonUp(mcScrollBar.mcArrowDown, 0, 0, 16, 16);
createVerticalArrow(mcScrollBar.mcArrowDown, 5, 7, 7, 16777215, -1);
createVerticalArrow(mcScrollBar.mcArrowDown, 4, 6, 7, 11315353, -1);
rect(mcScrollBar.mcTrack, 0, 0, 16, (__height - mcScrollBar.mcArrowUp._height) - mcScrollBar.mcArrowDown._height, 13947080);
useHandCursor = false;
mcScrollBar.useHandCursor = false;
mcScrollBar.mcArrowUp.useHandCursor = false;
mcScrollBar.mcArrowDown.useHandCursor = false;
mcScrollBar.mcTrack.useHandCursor = false;
mcScrollBar.mcThumb.useHandCursor = false;
}
}
mcScrollBar.mcArrowUp._focusrect = false;
mcScrollBar.mcArrowDown._focusrect = false;
mcScrollBar.mcTrack._focusrect = false;
mcScrollBar.mcThumb._focusrect = false;
arrange();
isScrolling = false;
ID_Funcion = 0;
mcScrollBar.mcThumb._y = oldy;
if (!enabled) {
return(undefined);
}
mcScrollBar.mcArrowUp.onPress = function () {
function wait() {
clearInterval(This._parent._parent.ID_Funcion);
This._parent._parent.ID_Funcion = setInterval(Prev, 30);
}
function Prev() {
if (This.hitTest(_root._xmouse, _root._ymouse, true)) {
This._parent._parent.scrollPosition--;
}
}
Selection.setFocus(this);
this._onPress();
var This = this;
if (int(this._parent._parent.skin.length) == 0) {
this._parent._parent.createButtonDown(this, 0, 0, 16, 16);
this._parent._parent.createVerticalArrow(this, 5, 11, 7, 0, 1);
}
this._parent._parent.scrollPosition--;
this._parent._parent.ID_Funcion = setInterval(wait, 300);
};
mcScrollBar.mcArrowUp.onRelease = function () {
this._onRelease();
clearInterval(this._parent._parent.ID_Funcion);
if (int(this._parent._parent.skin.length) == 0) {
this._parent._parent.createButtonUp(this, 0, 0, 16, 16);
this._parent._parent.createVerticalArrow(this, 4, 10, 7, 0, 1);
}
};
mcScrollBar.mcArrowUp.onReleaseOutside = function () {
this._onReleaseOutside();
clearInterval(this._parent._parent.ID_Funcion);
if (int(this._parent._parent.skin.length) == 0) {
this._parent._parent.createButtonUp(this, 0, 0, 16, 16);
this._parent._parent.createVerticalArrow(this, 4, 10, 7, 0, 1);
}
};
mcScrollBar.mcArrowUp.onDragOut = function () {
this._onDragOut();
if (int(this._parent._parent.skin.length) == 0) {
this._parent._parent.createButtonUp(this, 0, 0, 16, 16);
this._parent._parent.createVerticalArrow(this, 4, 10, 7, 0, 1);
}
};
mcScrollBar.mcArrowUp.onDragOver = function () {
this._onDragOver();
if (int(this._parent._parent.skin.length) == 0) {
this._parent._parent.createButtonDown(this, 0, 0, 16, 16);
this._parent._parent.createVerticalArrow(this, 5, 11, 7, 0, 1);
}
};
mcScrollBar.mcArrowDown.onPress = function () {
function wait() {
clearInterval(This._parent._parent.ID_Funcion);
This._parent._parent.ID_Funcion = setInterval(Next, 30);
}
function Next() {
if (This.hitTest(_root._xmouse, _root._ymouse, true)) {
This._parent._parent.scrollPosition++;
}
}
Selection.setFocus(this);
this._onPress();
var This = this;
if (int(this._parent._parent.skin.length) == 0) {
this._parent._parent.createButtonDown(this, 0, 0, 16, 16);
this._parent._parent.createVerticalArrow(this, 5, 7, 7, 0, -1);
}
this._parent._parent.scrollPosition++;
this._parent._parent.ID_Funcion = setInterval(wait, 300);
};
mcScrollBar.mcArrowDown.onRelease = function () {
this._onRelease();
clearInterval(this._parent._parent.ID_Funcion);
if (int(this._parent._parent.skin.length) == 0) {
this._parent._parent.createButtonUp(this, 0, 0, 16, 16);
this._parent._parent.createVerticalArrow(this, 4, 6, 7, 0, -1);
}
};
mcScrollBar.mcArrowDown.onReleaseOutside = function () {
this._onReleaseOutside();
clearInterval(this._parent._parent.ID_Funcion);
if (int(this._parent._parent.skin.length) == 0) {
this._parent._parent.createButtonUp(this, 0, 0, 16, 16);
this._parent._parent.createVerticalArrow(this, 4, 6, 7, 0, -1);
}
};
mcScrollBar.mcArrowDown.onDragOut = function () {
this._onDragOut();
if (int(this._parent._parent.skin.length) == 0) {
this._parent._parent.createButtonUp(this, 0, 0, 16, 16);
this._parent._parent.createVerticalArrow(this, 4, 6, 7, 0, -1);
}
};
mcScrollBar.mcArrowDown.onDragOver = function () {
this._onDragOver();
if (int(this._parent._parent.skin.length) == 0) {
this._parent._parent.createButtonDown(this, 0, 0, 16, 16);
this._parent._parent.createVerticalArrow(this, 5, 7, 7, 0, -1);
}
};
mcScrollBar.mcTrack.onPress = function () {
function wait() {
clearInterval(This._parent._parent.ID_Funcion);
This._parent._parent.ID_Funcion = setInterval(Next, 100);
}
function Next() {
if (This.hitTest(_root._xmouse, _root._ymouse, true)) {
if (This._parent._ymouse < This._parent.mcThumb._y) {
This._parent._parent.scrollPosition = This._parent._parent.scrollPosition - This._parent._parent.pageSize;
if (This._parent._ymouse > This._parent.mcThumb._y) {
clearInterval(This._parent._parent.ID_Funcion);
}
} else if (This._parent._ymouse > (This._parent.mcThumb._y + This._parent.mcThumb._height)) {
This._parent._parent.scrollPosition = This._parent._parent.scrollPosition + This._parent._parent.pageSize;
if (This._parent._ymouse < (This._parent.mcThumb._y + This._parent.mcThumb._height)) {
clearInterval(This._parent._parent.ID_Funcion);
}
}
}
}
Selection.setFocus(this);
this._onPress();
this.mcTrackTop._onPress();
this.mcTrackMiddle._onPress();
this.mcTrackBottom._onPress();
var This = this;
if (this._parent._ymouse < this._parent.mcThumb._y) {
this._parent._parent.scrollPosition = this._parent._parent.scrollPosition - this._parent._parent.pageSize;
} else if (this._parent._ymouse > (this._parent.mcThumb._y + this._parent.mcThumb._height)) {
this._parent._parent.scrollPosition = this._parent._parent.scrollPosition + this._parent._parent.pageSize;
}
this._parent._parent.ID_Funcion = setInterval(wait, 300);
};
mcScrollBar.mcTrack.onRelease = function () {
this._onRelease();
this.mcTrackTop._onRelease();
this.mcTrackMiddle._onRelease();
this.mcTrackBottom._onRelease();
clearInterval(this._parent._parent.ID_Funcion);
};
mcScrollBar.mcTrack.onReleaseOutside = function () {
this._onReleaseOutside();
this.mcTrackTop._onReleaseOutside();
this.mcTrackMiddle._onReleaseOutside();
this.mcTrackBottom._onReleaseOutside();
clearInterval(this._parent._parent.ID_Funcion);
};
mcScrollBar.mcTrack.onRollOver = function () {
this._onRollOver();
this.mcTrackTop._onRollOver();
this.mcTrackMiddle._onRollOver();
this.mcTrackBottom._onRollOver();
};
mcScrollBar.mcTrack.onRollOut = function () {
this._onRollOut();
this.mcTrackTop._onRollOut();
this.mcTrackMiddle._onRollOut();
this.mcTrackBottom._onRollOut();
};
mcScrollBar.mcTrack.onDragOver = function () {
this._onDragOver();
this.mcTrackTop._onDragOver();
this.mcTrackMiddle._onDragOver();
this.mcTrackBottom._onDragOver();
};
mcScrollBar.mcTrack.onDragOut = function () {
this._onDragOut();
this.mcTrackTop._onDragOut();
this.mcTrackMiddle._onDragOut();
this.mcTrackBottom._onDragOut();
};
var lastY;
mcScrollBar.mcThumb.onPress = function () {
this._onPress();
this.mcThumbTop._onPress();
this.mcThumbMiddle._onPress();
this.mcThumbBottom._onPress();
lastY = this._ymouse;
this._parent._parent.isScrolling = true;
this.onMouseMove = dragThumb;
};
mcScrollBar.mcThumb.onRelease = function () {
this._onRelease();
this.mcThumbTop._onRelease();
this.mcThumbMiddle._onRelease();
this.mcThumbBottom._onRelease();
this._parent._parent.isScrolling = false;
delete this.onMouseMove;
};
mcScrollBar.mcThumb.onReleaseOutside = function () {
this._onReleaseOutside();
this.mcThumbTop._onReleaseOutside();
this.mcThumbMiddle._onReleaseOutside();
this.mcThumbBottom._onReleaseOutside();
this._parent._parent.isScrolling = false;
delete this.onMouseMove;
};
mcScrollBar.mcThumb.onRollOver = function () {
this._onRollOver();
this.mcThumbTop._onRollOver();
this.mcThumbMiddle._onRollOver();
this.mcThumbBottom._onRollOver();
};
mcScrollBar.mcThumb.onRollOut = function () {
this._onRollOut();
this.mcThumbTop._onRollOut();
this.mcThumbMiddle._onRollOut();
this.mcThumbBottom._onRollOut();
};
mcScrollBar.mcThumb.onDragOver = function () {
this._onDragOver();
this.mcThumbTop._onDragOver();
this.mcThumbMiddle._onDragOver();
this.mcThumbBottom._onDragOver();
};
mcScrollBar.mcThumb.onDragOut = function () {
this._onDragOut();
this.mcThumbTop._onDragOut();
this.mcThumbMiddle._onDragOut();
this.mcThumbBottom._onDragOut();
};
}
function setSize(nW, nH) {
_xscale = 100;
_yscale = 100;
__width = nW;
__height = nH;
arrange();
createChildren();
}
function arrange() {
if (int(skin.length) > 0) {
mcScrollBar.mcArrowDown._y = __height - mcScrollBar.mcArrowDown._height;
mcScrollBar.mcTrack._y = mcScrollBar.mcArrowUp._height;
if (mcScrollBar.mcTrack.mcTrackMiddle != undefined) {
if (mcScrollBar.mcTrack.mcTrackTop == mcScrollBar.mcTrack.mcTrackBottom) {
mcScrollBar.mcTrack.mcTrackMiddle._height = (__height - mcScrollBar.mcArrowUp._height) - mcScrollBar.mcArrowDown._height;
} else {
mcScrollBar.mcTrack.mcTrackMiddle._height = (((__height - mcScrollBar.mcArrowUp._height) - mcScrollBar.mcArrowDown._height) - mcScrollBar.mcTrack.mcTrackTop._height) - mcScrollBar.mcTrack.mcTrackBottom._height;
mcScrollBar.mcTrack.mcTrackBottom._y = mcScrollBar.mcTrack.mcTrackTop._height + mcScrollBar.mcTrack.mcTrackMiddle._height;
}
}
if (mcScrollBar.mcThumb.mcThumbMiddle != undefined) {
if (mcScrollBar.mcThumb.mcThumbTop == mcScrollBar.mcThumb.mcThumbBottom) {
mcScrollBar.mcThumb.mcThumbMiddle._height = (pageSize / ((maxPos - minPos) + pageSize)) * mcScrollBar.mcTrack._height;
} else {
var _local2 = pageSize / ((maxPos - minPos) + pageSize);
var _local4 = (mcScrollBar.mcTrack._height - mcScrollBar.mcThumb.mcThumbTop._height) - mcScrollBar.mcThumb.mcThumbBottom._height;
if (isNaN(_local2)) {
_local2 = 1;
}
var _local3 = _local2 * _local4;
mcScrollBar.mcThumb.mcThumbMiddle._height = ((_local3 < 12) ? 12 : (_local3));
mcScrollBar.mcThumb.mcThumbBottom._y = mcScrollBar.mcThumb.mcThumbTop._height + mcScrollBar.mcThumb.mcThumbMiddle._height;
}
}
if (mcScrollBar.mcThumbGrip._height < (mcScrollBar.mcThumbGrip._height + 4)) {
mcScrollBar.mcThumbGrip._visible = true;
mcScrollBar.mcThumbGrip._y = mcScrollBar.mcThumb._y + ((mcScrollBar.mcThumb._height - mcScrollBar.mcThumbGrip._height) / 2);
} else {
mcScrollBar.mcThumbGrip._visible = false;
}
} else {
mcScrollBar.mcArrowDown._y = __height - mcScrollBar.mcArrowDown._height;
mcScrollBar.mcTrack._y = mcScrollBar.mcArrowUp._height;
mcScrollBar.mcThumb.clear();
var _local2 = pageSize / ((maxPos - minPos) + pageSize);
var _local4 = mcScrollBar.mcTrack._height;
if (isNaN(_local2)) {
_local2 = 1;
}
var _local3 = _local2 * _local4;
createButtonUp(mcScrollBar.mcThumb, 0, 0, 16, ((_local3 < 12) ? 12 : (_local3)));
mcScrollBar.mcThumb._y = mcScrollBar.mcArrowUp._height;
}
ymin = mcScrollBar.mcTrack._y;
ymax = (ymin + mcScrollBar.mcTrack._height) - mcScrollBar.mcThumb._height;
xmin = mcScrollBar.mcThumb._x;
xmax = xmin;
}
function rect(obj, x, y, x2, y2, color) {
obj.beginFill(color, 100);
obj.moveTo(x, y);
obj.lineTo(x2, y);
obj.lineTo(x2, y2);
obj.lineTo(x, y2);
obj.endFill();
}
function createButtonUp(obj, x, y, width, height) {
var _local3 = x + width;
var _local2 = y + height;
obj.clear();
rect(obj, x, y, _local3, _local2, 4210752);
rect(obj, x, y, _local3 - 1, _local2 - 1, 13947080);
rect(obj, x + 1, y + 1, _local3 - 1, _local2 - 1, 8421504);
rect(obj, x + 1, y + 1, _local3 - 2, _local2 - 2, 16777215);
rect(obj, x + 2, y + 2, _local3 - 2, _local2 - 2, 13947080);
}
function createButtonDown(obj, x, y, width, height) {
var _local3 = x + width;
var _local2 = y + height;
obj.clear();
rect(obj, x, y, _local3, _local2, 13947080);
rect(obj, x, y, _local3 - 1, _local2 - 1, 4210752);
rect(obj, x + 1, y + 1, _local3 - 1, _local2 - 1, 16777215);
rect(obj, x + 1, y + 1, _local3 - 2, _local2 - 2, 8421504);
rect(obj, x + 2, y + 2, _local3 - 2, _local2 - 2, 13947080);
}
function createVerticalArrow(obj, x, y, width, color, dir) {
var _local4;
var _local2 = 0;
while (_local2 < Math.ceil(width / 2)) {
_local4 = (x + width) - _local2;
rect(obj, x + _local2, y - (_local2 * dir), _local4, y - ((_local2 * dir) + dir), color);
_local2++;
}
}
function createHorizontalArrow(obj, x, y, height, color, dir) {
var _local4;
var _local2 = 0;
while (_local2 < Math.ceil(height / 2)) {
_local4 = (y + height) - _local2;
rect(obj, x - (_local2 * dir), y + _local2, x - ((_local2 * dir) + dir), _local4, color);
_local2++;
}
}
static var symbolName = "czVScrollBar";
static var symbolOwner = Object(czVScrollBar);
static var version = "1.0.0.0";
var className = "czVScrollBar";
}
Symbol 29 MovieClip [__Packages.mx.events.EventDispatcher] Frame 0
class mx.events.EventDispatcher
{
function EventDispatcher () {
}
static function _removeEventListener(queue, event, handler) {
if (queue != undefined) {
var _local4 = queue.length;
var _local1;
_local1 = 0;
while (_local1 < _local4) {
var _local2 = queue[_local1];
if (_local2 == handler) {
queue.splice(_local1, 1);
return(undefined);
}
_local1++;
}
}
}
static function initialize(object) {
if (_fEventDispatcher == undefined) {
_fEventDispatcher = new mx.events.EventDispatcher();
}
object.addEventListener = _fEventDispatcher.addEventListener;
object.removeEventListener = _fEventDispatcher.removeEventListener;
object.dispatchEvent = _fEventDispatcher.dispatchEvent;
object.dispatchQueue = _fEventDispatcher.dispatchQueue;
}
function dispatchQueue(queueObj, eventObj) {
var _local7 = "__q_" + eventObj.type;
var _local4 = queueObj[_local7];
if (_local4 != undefined) {
var _local5;
for (_local5 in _local4) {
var _local1 = _local4[_local5];
var _local3 = typeof(_local1);
if ((_local3 == "object") || (_local3 == "movieclip")) {
if (_local1.handleEvent != undefined) {
_local1.handleEvent(eventObj);
}
if (_local1[eventObj.type] != undefined) {
if (exceptions[eventObj.type] == undefined) {
_local1[eventObj.type](eventObj);
}
}
} else {
_local1.apply(queueObj, [eventObj]);
}
}
}
}
function dispatchEvent(eventObj) {
if (eventObj.target == undefined) {
eventObj.target = this;
}
this[eventObj.type + "Handler"](eventObj);
dispatchQueue(this, eventObj);
}
function addEventListener(event, handler) {
var _local3 = "__q_" + event;
if (this[_local3] == undefined) {
this[_local3] = new Array();
}
_global.ASSetPropFlags(this, _local3, 1);
_removeEventListener(this[_local3], event, handler);
this[_local3].push(handler);
}
function removeEventListener(event, handler) {
var _local2 = "__q_" + event;
_removeEventListener(this[_local2], event, handler);
}
static var _fEventDispatcher = undefined;
static var exceptions = {move:1, draw:1, load:1};
}
Symbol 30 MovieClip [__Packages.czListBox] Frame 0
class czListBox extends MovieClip
{
var mRow, mActualRow, mVPosition, mcSurface, onScroll, dispatchEvent, mSelectedIndex, mItems, mSelectedIndices, mDataProvider, mRowCount, __width, mEnabled, mMultipleSelection, mSkin, mLabels, mData, mVScrollPolicy, mHScrollPolicy, _focusrect, _width, __height, _height, _xscale, _yscale, mcBoundingBox, mouseListener, createEmptyMovieClip, getNextHighestDepth, Diseño, mWidth, mHeight, onDraw;
function czListBox () {
super();
init();
createChildren();
}
function get _row() {
return(mRow);
}
function get actualRow() {
return(mActualRow);
}
function get vPosition() {
return(Math.round(mVPosition));
}
function set vPosition(pVPosition) {
if ((pVPosition < 0) || (pVPosition > int(length - rowCount))) {
return;
}
if (_row >= 0) {
var _local6 = _row;
mcSurface.mcClip.mcContent["mcItem" + _row].mcBG.onRollOut();
mRow = _local6;
mVPosition = pVPosition;
mcSurface.mcClip.mcContent["mcItem" + _row].mcBG.pos = _row + vPosition;
mcSurface.mcClip.mcContent["mcItem" + _row].mcBG.i = _row;
mcSurface.mcClip.mcContent["mcItem" + _row].mcBG.onRollOver();
} else {
var _local5 = mActualRow - vPosition;
mVPosition = pVPosition;
mActualRow = _local5 + vPosition;
}
var _local2 = mcSurface.mcClip.mcVSB;
var _local3 = vPosition;
if (!eval (["ASnative"])(800, 2)(1)) {
_local3 = Math.min(_local3, _local2.maxPos);
_local3 = Math.max(_local3, _local2.minPos);
var _local7 = (((_local3 - _local2.minPos) * (_local2.mcScrollBar.mcTrack._height - _local2.mcScrollBar.mcThumb._height)) / (_local2.maxPos - _local2.minPos)) + _local2.mcScrollBar.mcTrack._y;
_local2.mcScrollBar.mcThumb._y = _local7;
_local2.mcScrollBar.mcThumbGrip._y = _local2.mcScrollBar.mcThumb._y + ((_local2.mcScrollBar.mcThumb._height - _local2.mcScrollBar.mcThumbGrip._height) / 2);
}
render();
onScroll();
dispatchEvent({type:"scroll"});
//return(vPosition);
}
function get length() {
return(int(dataProvider.length));
}
function get selectedIndex() {
return(mSelectedIndex);
}
function set selectedIndex(pSelectedIndex) {
mSelectedIndex = pSelectedIndex;
if (multipleSelection) {
fnSelectedItems(mSelectedIndex);
} else {
var _local2 = 0;
while (_local2 < mItems.length) {
mItems[_local2].selected = false;
mItems[_local2].frame = "fFalseUp";
mItems[_local2].status = "Up";
mcSurface.mcClip.mcContent.mcItem["mcItem" + _local2].gotoAndStop(1);
_local2++;
}
}
mItems[mSelectedIndex].selected = true;
mItems[mSelectedIndex].status = "Up";
mItems[mSelectedIndex].frame = "fTrueUp";
render();
//return(selectedIndex);
}
function get selectedIndices() {
return(mSelectedIndices);
}
function set selectedIndices(pSelectedIndices) {
mSelectedIndices = pSelectedIndices;
var _local2 = 0;
while (_local2 < mSelectedIndices.length) {
mItems[mSelectedIndices[_local2]].selected = true;
mItems[mSelectedIndices[_local2]].status = "Up";
mItems[mSelectedIndices[_local2]].frame = "fTrueUp";
_local2++;
}
render();
//return(selectedIndices);
}
function get selectedItem() {
return(mDataProvider[mSelectedIndex]);
}
function get selectedItems() {
var _local3 = new Array();
var _local2 = 0;
while (_local2 < mSelectedIndices.length) {
_local3.push(mDataProvider[mSelectedIndices[_local2]]);
_local2++;
}
return(_local3);
}
function get rowCount() {
return(int(mRowCount));
}
function set rowCount(pRowCount) {
setSize(__width, pRowCount * mcSurface.mcClip.mcContent.mcItem.mcBG._height);
//return(rowCount);
}
function set dataProvider(pDataProvider) {
mDataProvider = pDataProvider;
mRow = -1;
mVPosition = 0;
mSelectedIndices = [];
mItems = [];
var _local2 = 0;
while (_local2 < mDataProvider.length) {
mItems[_local2] = {selected:false, status:"Up", frame:"fFalseUp"};
_local2++;
}
createChildren();
//return(dataProvider);
}
function get dataProvider() {
return(mDataProvider);
}
function set enabled(pEnabled) {
mEnabled = pEnabled;
createChildren();
//return(enabled);
}
function get enabled() {
return(mEnabled);
}
function set multipleSelection(pMultipleSelection) {
mMultipleSelection = pMultipleSelection;
//return(multipleSelection);
}
function get multipleSelection() {
return(mMultipleSelection);
}
function set skin(pSkin) {
mSkin = pSkin;
createChildren();
//return(skin);
}
function get skin() {
return(mSkin);
}
function set labels(pLabels) {
mLabels = pLabels;
createChildren();
//return(labels);
}
function get labels() {
return(mLabels);
}
function set data(pData) {
mData = pData;
//return(data);
}
function get data() {
return(mData);
}
function set vScrollPolicy(pVScrollPolicy) {
mVScrollPolicy = pVScrollPolicy;
//return(vScrollPolicy);
}
function get vScrollPolicy() {
return(mVScrollPolicy);
}
function set hScrollPolicy(pHScrollPolicy) {
mHScrollPolicy = pHScrollPolicy;
//return(hScrollPolicy);
}
function get hScrollPolicy() {
return(mHScrollPolicy);
}
function init() {
_focusrect = false;
__width = _width;
__height = _height;
_xscale = 100;
_yscale = 100;
mx.events.EventDispatcher.initialize(this);
mcBoundingBox._visible = false;
mcBoundingBox._width = 0;
mcBoundingBox._height = 0;
vPosition = (0);
mRow = -1;
if (mSelectedIndices == undefined) {
mSelectedIndices = new Array();
}
if (mItems == undefined) {
mItems = new Array();
}
if (mDataProvider == undefined) {
mDataProvider = new Array();
var _local3 = 0;
while (_local3 < mLabels.length) {
mDataProvider[_local3] = {label:mLabels[_local3], data:mData[_local3]};
mItems[_local3] = {selected:false, status:"Up", frame:"fFalseUp"};
_local3++;
}
}
mouseListener = new Object();
mouseListener.This = this;
mouseListener.onMouseWheel = function (delta, scrollTarget) {
_root.txtOut.text = delta;
if ((this.This._target == scrollTarget._target.substr(0, this.This._target.length)) && (scrollTarget._target.substr(this.This._target.length, 1) == "/")) {
this.This.vPosition = this.This.vPosition - (delta / Math.abs(delta));
}
};
Mouse.addListener(mouseListener);
if (mcSurface == undefined) {
mcSurface.removeMovieClip();
}
createEmptyMovieClip("mcSurface", getNextHighestDepth());
}
function createChildren() {
if (_level0.contents == undefined) {
Dise\u00F1o = false;
} else {
Dise\u00F1o = true;
}
if (Dise\u00F1o) {
mcSurface.clear();
rect(mcSurface, 0, 0, __width, __height, 0);
rect(mcSurface, 1, 1, __width - 1, __height - 1, 13947080);
}
if (int(skin.length) > 0) {
mcSurface.attachMovie(mSkin, "mcClip", getNextHighestDepth());
} else {
mcSurface.attachMovie("mcDefaultSkinListBox", "mcClip", getNextHighestDepth());
rect(mcSurface.mcClip, 0, 0, __width, __height, 16777215);
rect(mcSurface.mcClip, 0, 0, __width - 1, __height - 1, 11315353);
rect(mcSurface.mcClip, 1, 1, __width - 1, __height - 1, 15855586);
rect(mcSurface.mcClip, 1, 1, __width - 2, __height - 2, 7434084);
rect(mcSurface.mcClip, 2, 2, __width - 2, __height - 2, 16777215);
var _local2 = new Object();
_local2._targetInstanceName = "";
_local2._useHandCursor = true;
_local2.data = "";
_local2.enabled = true;
_local2.maxPos = 0;
_local2.minPos = 0;
_local2.scrollPosition = 0;
_local2.pageSize = 5;
_local2.skin = "";
_local2.onLoad = function () {
};
mcSurface.mcClip.attachMovie("zVScrollBar", "mcVSB", 5, _local2);
mcSurface.mcClip.attachMovie("zHScrollBar", "mcHSB", 4, _local2);
}
mcSurface.mcClip.mcMask._width = mWidth;
mcSurface.mcClip.mcMask._height = mHeight;
mcSurface.mcClip.mcContent.setMask(mcSurface.mcClip.mcMask);
mcSurface.mcClip.mcVSB._visible = false;
mcSurface.mcClip.mcHSB._visible = false;
if (mWidth == undefined) {
mWidth = _width;
mHeight = _height;
}
mcSurface.mcClip.mcContent.mcItem._visible = false;
mRowCount = int(__height / mcSurface.mcClip.mcContent.mcItem.mcBG._height);
mRowCount = ((mRowCount < length) ? (mRowCount) : (length));
clear();
draw();
render();
}
function setSize(nW, nH) {
_xscale = 100;
_yscale = 100;
__width = nW;
__height = nH;
mWidth = nW;
mHeight = nH;
mcSurface.clear();
createChildren();
}
function clear() {
var _local2 = 0;
while (_local2 < length) {
mcSurface.mcClip.mcContent["mcItem" + _local2].removeMovieClip();
_local2++;
}
}
function draw() {
var This = this;
var i = 0;
while (i < rowCount) {
if (mcSurface.mcClip.mcContent["mcItem" + i] != undefined) {
} else {
var _local3 = mcSurface.mcClip.mcContent.mcItem.duplicateMovieClip("mcItem" + i, i);
_local3._y = _local3.mcBG._height * i;
_local3.stop();
_local3.mcBG._width = __width - 4;
_local3.mcBG.pos = i + vPosition;
_local3.mcBG.i = i;
_local3.mcBG.onRollOver = function () {
This.mRow = this.i;
This.mActualRow = this.i + This.vPosition;
This.mItems[this.i + This.vPosition].status = "Over";
This.mItems[this.i + This.vPosition].frame = ("f" + (This.mItems[this.i + This.vPosition].selected ? "True" : "False")) + "Over";
this._parent.gotoAndStop(This.mItems[this.i + This.vPosition].frame);
if (!int(This.skin.length)) {
this._parent["mcSel" + this._parent._currentframe]._width = This.__width - 4;
}
};
_local3.mcBG.onRollOut = (_local3.mcBG.onReleaseOutside = function () {
This.mRow = -1;
This.mItems[this.i + This.vPosition].status = "Up";
This.mItems[this.i + This.vPosition].frame = ("f" + (This.mItems[this.i + This.vPosition].selected ? "True" : "False")) + "Up";
this._parent.gotoAndStop(This.mItems[this.i + This.vPosition].frame);
if (!int(This.skin.length)) {
this._parent["mcSel" + this._parent._currentframe]._width = This.__width - 4;
}
});
_local3.mcBG.onPress = function () {
This.mItems[this.i + This.vPosition].status = "Down";
This.mItems[this.i + This.vPosition].frame = ("f" + (This.mItems[this.i + This.vPosition].selected ? "True" : "False")) + "Down";
this._parent.gotoAndStop(This.mItems[this.i + This.vPosition].frame);
if (!int(This.skin.length)) {
this._parent["mcSel" + this._parent._currentframe]._width = This.__width - 4;
}
};
_local3.mcBG.onRelease = function () {
if (This.multipleSelection) {
This.fnSelectedItems(this.i + This.vPosition);
This.mItems[this.i + This.vPosition].selected = !This.mItems[this.i + This.vPosition].selected;
} else {
var _local2 = 0;
while (_local2 < This.length) {
This.mItems[_local2].selected = false;
This.mItems[_local2].frame = "fFalseUp";
This.mItems[_local2].status = "Up";
this._parent._parent["mcItem" + _local2].gotoAndStop(1);
_local2++;
}
This.mItems[this.i + This.vPosition].selected = true;
}
This.mSelectedIndex = this.i + This.vPosition;
This.mItems[this.i + This.vPosition].status = "Up";
This.mItems[this.i + This.vPosition].frame = ("f" + (This.mItems[this.i + This.vPosition].selected ? "True" : "False")) + "Up";
this._parent.gotoAndStop(This.mItems[this.i + This.vPosition].frame);
if (!int(This.skin.length)) {
this._parent["mcSel" + this._parent._currentframe]._width = This.__width - 4;
}
This.onChange();
This.dispatchEvent({type:"change"});
};
}
i++;
}
This.mcSurface.mcClip.mcVSB.onLoad = function () {
this.pageSize = This.rowCount;
this._y = 2;
var _local4 = (this._parent.mcHSB._width ? (this._parent.mcHSB._width) : 16);
var _local2 = (this._parent.mcHSB._height ? (this._parent.mcHSB._height) : 0);
this._x = (This.__width - this._width) - 2;
this.setSize(_local4, (This.__height - _local2) - 4);
switch (This.mVScrollPolicy) {
case "off" :
This.mcSurface.mcClip.mcVSB._visible = false;
if (This["Dise\u00F1o"]) {
This.mcSurface.mcClip.mcHSB.setSize(This.__width, This.mcSurface.mcClip.mcHSB._height);
} else {
This.mcSurface.mcClip.mcHSB.setSize(This.mWidth, This.mcSurface.mcClip.mcHSB._height);
This.mcSurface.mcClip.mcMask._width = This.mWidth;
}
break;
case "on" :
This.mcSurface.mcClip.mcVSB.This = This;
This.mcSurface.mcClip.mcVSB._visible = true;
This.mcSurface.mcClip.mcVSB.enabled = true;
This.mcSurface.mcClip.mcVSB.maxPos = This.length - This.rowCount;
This.mcSurface.mcClip.mcVSB.onScroll = function () {
if (This.vPosition == Math.round(this.scrollPosition)) {
return(undefined);
}
var _local2 = This.vPosition;
This.vPosition = Math.round(this.scrollPosition);
if (_local2 != This.vPosition) {
This.render();
This.onScroll();
This.dispatchEvent({type:"scroll"});
}
};
break;
case "auto" :
This.mcSurface.mcClip.mcVSB.This = This;
if (This.length <= This.rowCount) {
break;
}
This.mcSurface.mcClip.mcVSB._visible = true;
This.mcSurface.mcClip.mcVSB.enabled = true;
This.mcSurface.mcClip.mcVSB.maxPos = This.length - This.rowCount;
This.mcSurface.mcClip.mcVSB.onScroll = function () {
if (This.vPosition == Math.round(this.scrollPosition)) {
return(undefined);
}
var _local2 = This.vPosition;
This.vPosition = Math.round(this.scrollPosition);
if (_local2 != This.vPosition) {
This.render();
This.onScroll();
This.dispatchEvent({type:"scroll"});
}
};
}
};
This.mcSurface.mcClip.mcHSB.onLoad = function () {
this.pageSize = this._parent.mcMask._width;
This.mcSurface.mcClip.mcHSB._x = 0;
if (This["Dise\u00F1o"]) {
This.mcSurface.mcClip.mcHSB._y = This.__height - This.mcSurface.mcClip.mcHSB._height;
This.mcSurface.mcClip.mcHSB.setSize(This.__width - This.mcSurface.mcClip.mcVSB._width, This.mcSurface.mcClip.mcHSB._height);
} else {
This.mcSurface.mcClip.mcHSB._y = This._height - This.mcSurface.mcClip.mcHSB._height;
This.mcSurface.mcClip.mcHSB.setSize(This.mWidth - This.mcSurface.mcClip.mcVSB._width, This.mcSurface.mcClip.mcHSB._height);
}
if (This.mHScrollPolicy == "off") {
This.mcSurface.mcClip.mcHSB._visible = false;
if (This["Dise\u00F1o"]) {
This.mcSurface.mcClip.mcVSB.setSize(This.mcSurface.mcClip.mcHSB._width, This.__height - 4);
} else {
This.mcSurface.mcClip.mcVSB.setSize(This.mcSurface.mcClip.mcHSB._width, This.mHeight - 4);
}
} else {
This.mcSurface.mcClip.mcHSB.This = This;
if ((This.mcSurface.mcClip.mcContent._width > This.mcSurface.mcClip.mcMask._width) && (This.length > 0)) {
This.mcSurface.mcClip.mcHSB._visible = true;
This.mcSurface.mcClip.mcHSB.enabled = true;
if (This["Dise\u00F1o"]) {
This.mcSurface.mcClip.mcHSB.maxPos = 0;
} else {
if (This.mcSurface.mcClip.mcVSB._visible) {
This.mcSurface.mcClip.mcHSB.maxPos = This.mcSurface.mcClip.mcContent._width - (This.mWidth - This.mcSurface.mcClip.mcVSB._width);
} else {
This.mcSurface.mcClip.mcHSB.maxPos = This.mcSurface.mcClip.mcContent._width - This.mWidth;
}
This.mcSurface.mcClip.mcHSB.pageSize = This.mcSurface.mcClip.mcHSB.maxPos / 3;
}
This.mcSurface.mcClip.mcHSB.onScroll = function () {
This.mcSurface.mcClip.mcContent._x = -this.scrollPosition;
};
} else {
This.mcSurface.mcClip.mcHSB.maxPos = 0;
if (This["Dise\u00F1o"]) {
This.mcSurface.mcClip.mcHSB.enabled = true;
} else {
This.mcSurface.mcClip.mcHSB.enabled = false;
}
if (This.mHScrollPolicy == "auto") {
if (This["Dise\u00F1o"]) {
This.mcSurface.mcClip.mcVSB.setSize(This.mcSurface.mcClip.mcHSB._width, This.__height - This.mcSurface.mcClip.mcHSB._height);
} else {
This.mcSurface.mcClip.mcHSB._visible = false;
This.mcSurface.mcClip.mcVSB.setSize(This.mcSurface.mcClip.mcHSB._width, This.mHeight);
}
}
}
}
};
onDraw();
dispatchEvent({type:"draw"});
}
function render() {
var _local2 = 0;
while (_local2 < rowCount) {
mcSurface.mcClip.mcContent["mcItem" + _local2].gotoAndStop(mItems[_local2 + vPosition].frame);
if (!skin.length) {
mcSurface.mcClip.mcContent["mcItem" + _local2]["mcSel" + mcSurface.mcClip.mcContent["mcItem" + _local2]._currentframe]._width = __width - 4;
}
onRenderRow(mcSurface.mcClip.mcContent["mcItem" + _local2], dataProvider[_local2 + vPosition]);
_local2++;
}
}
function onRenderRow(item, datos) {
item.txtLabel.text = datos.label;
}
function addItem() {
addItemAt(length, arguments[0], arguments[1]);
}
function addItemAt() {
if (typeof(arguments[0]) == "number") {
var _local4 = arguments[0];
var _local3 = arguments[1];
var _local6 = arguments[2];
_local4 = ((_local4 < 0) ? 0 : (_local4));
_local4 = ((_local4 > length) ? (length) : (_local4));
} else {
var _local4 = length;
var _local3 = arguments[0];
var _local6 = arguments[1];
}
if (typeof(_local3) == "string") {
mDataProvider.splice(_local4, 0, {label:_local3, data:_local6});
}
if (typeof(_local3) == "object") {
mDataProvider.splice(_local4, 0, _local3);
}
mItems.splice(_local4, 0, {selected:false, status:"Up", frame:"fFalseUp"});
mRowCount = int(__height / mcSurface.mcClip.mcContent.mcItem.mcBG._height);
mRowCount = ((mRowCount < length) ? (mRowCount) : (length));
var _local5 = vPosition;
draw();
mcSurface.mcClip.mcVSB.onLoad();
mcSurface.mcClip.mcHSB.onLoad();
vPosition = (_local5);
render();
}
function replaceItemAt() {
if ((arguments[0] < 0) && (arguments[0] > length)) {
return(undefined);
}
if (typeof(arguments[1]) == "string") {
mDataProvider[arguments[0]] = {label:arguments[1], data:arguments[2]};
}
if (typeof(arguments[1]) == "object") {
mDataProvider[arguments[0]] = arguments[1];
}
render();
}
function removeAll() {
clear();
mSelectedIndex = undefined;
mSelectedIndices = [];
mDataProvider.removeAll();
mItems.removeAll();
mDataProvider = [];
mItems = [];
mVPosition = 0;
mcSurface.mcClip.mcVSB.enabled = false;
if (mVScrollPolicy == "auto") {
mcSurface.mcClip.mcVSB._visible = false;
}
mcSurface.mcClip.mcHSB.enabled = false;
if (mHScrollPolicy == "auto") {
mcSurface.mcClip.mcHSB._visible = false;
}
render();
}
function removeItemAt(index) {
mDataProvider.splice(index, 1);
mItems.splice(index, 1);
if (mSelectedIndex == index) {
mSelectedIndex = undefined;
} else if (mSelectedIndex > (mDataProvider.length - 1)) {
mSelectedIndex = mDataProvider.length - 1;
}
mcSurface.mcClip.mcContent["mcItem" + length].removeMovieClip();
mRowCount = ((mRowCount < length) ? (mRowCount) : (length));
mVPosition--;
if (vPosition < 0) {
mVPosition = 0;
}
mcSurface.mcClip.mcVSB.maxPos = length - rowCount;
mcSurface.mcClip.mcVSB.scrollPosition = mVPosition;
if (mcSurface.mcClip.mcVSB.maxPos == 0) {
mcSurface.mcClip.mcVSB.enabled = false;
if (mVScrollPolicy == "auto") {
mcSurface.mcClip.mcVSB._visible = false;
}
}
render();
}
function getItemAt(idx) {
return(mDataProvider[idx]);
}
function sortItems(fn) {
var _local4 = 0;
while (_local4 < (mDataProvider.length - 1)) {
var _local2 = 0;
while (_local2 < ((mDataProvider.length - _local4) - 1)) {
if (fn(mDataProvider[_local2], mDataProvider[_local2 + 1])) {
var _local3 = mDataProvider[_local2];
mDataProvider[_local2] = mDataProvider[_local2 + 1];
mDataProvider[_local2 + 1] = _local3;
_local3 = mItems[_local2];
mItems[_local2] = mItems[_local2 + 1];
mItems[_local2 + 1] = _local3;
}
_local2++;
}
_local4++;
}
render();
}
function sortItemsBy(prop, orden) {
if (orden) {
var _local5 = 0;
while (_local5 < (mDataProvider.length - 1)) {
var _local2 = 0;
while (_local2 < ((mDataProvider.length - _local5) - 1)) {
if (mDataProvider[_local2][prop] < mDataProvider[_local2 + 1][prop]) {
var _local3 = mDataProvider[_local2];
mDataProvider[_local2] = mDataProvider[_local2 + 1];
mDataProvider[_local2 + 1] = _local3;
_local3 = mItems[_local2];
mItems[_local2] = mItems[_local2 + 1];
mItems[_local2 + 1] = _local3;
}
_local2++;
}
_local5++;
}
} else {
var _local5 = 0;
while (_local5 < (mDataProvider.length - 1)) {
var _local2 = 0;
while (_local2 < ((mDataProvider.length - _local5) - 1)) {
if (mDataProvider[_local2][prop] > mDataProvider[_local2 + 1][prop]) {
var _local3 = mDataProvider[_local2];
mDataProvider[_local2] = mDataProvider[_local2 + 1];
mDataProvider[_local2 + 1] = _local3;
_local3 = mItems[_local2];
mItems[_local2] = mItems[_local2 + 1];
mItems[_local2 + 1] = _local3;
}
_local2++;
}
_local5++;
}
}
render();
}
function fnSelectedItems(idx) {
var _local3;
var _local2 = 0;
while ((_local2 < mSelectedIndices.length) && (!_local3)) {
if (mSelectedIndices[_local2] == idx) {
_local3 = true;
}
_local2++;
}
if (_local3) {
mSelectedIndices.splice(_local2 - 1, 1);
} else {
mSelectedIndices.push(idx);
}
}
function rect(obj, x, y, x2, y2, color) {
obj.beginFill(color, 100);
obj.moveTo(x, y);
obj.lineTo(x2, y);
obj.lineTo(x2, y2);
obj.lineTo(x, y2);
obj.endFill();
}
function createButtonDown(obj, x, y, width, height) {
var _local3 = x + width;
var _local2 = y + height;
obj.clear();
rect(obj, x, y, _local3, _local2, 16777215);
rect(obj, x, y, _local3 - 1, _local2 - 1, 11315353);
rect(obj, x + 1, y + 1, _local3 - 1, _local2 - 1, 15855586);
rect(obj, x + 1, y + 1, _local3 - 2, _local2 - 2, 7434084);
rect(obj, x + 2, y + 2, _local3 - 2, _local2 - 2, 16777215);
}
static var symbolName = "czListBox";
static var symbolOwner = Object(czListBox);
static var version = "1.0.0.0";
var className = "czListBox";
}
Symbol 436 MovieClip [__Packages.czButton] Frame 0
class czButton extends MovieClip
{
var mLabel, mUseHandCursor, useHandCursor, mSelected, dispatchEvent, mGroupName, mEnabled, mType, mSkin, mData, _focusrect, __width, _width, __height, _height, _xscale, _yscale, mcBoundingBox, mcSurface, createEmptyMovieClip, getNextHighestDepth, mcClip, m_falseDisabled, m_falseDown, m_falseOver, m_falseUp, m_trueDisabled, m_trueDown, m_trueOver, m_trueUp, _parent, _currentframe, nextFrame, onEnterFrame, prevFrame;
function czButton () {
super();
init();
createChildren();
}
function set label(pLabel) {
mLabel = pLabel;
createChildren();
//return(label);
}
function get label() {
return(mLabel);
}
function set _useHandCursor(pUseHandCursor) {
mUseHandCursor = pUseHandCursor;
useHandCursor = mUseHandCursor;
//return(_useHandCursor);
}
function get _useHandCursor() {
return(mUseHandCursor);
}
function set selected(pSelected) {
mSelected = pSelected;
if (mSelected && (type == "Option")) {
var _local3 = getGroup(groupName);
var _local2 = 0;
while (_local2 < _local3.length) {
if (_local3[_local2].path != this) {
_local3[_local2].path.selected = false;
_local3[_local2].path.createChildren();
}
_local2++;
}
}
createChildren();
dispatchEvent({type:"change"});
//return(selected);
}
function get selected() {
return(mSelected);
}
function set groupName(pGroupName) {
mGroupName = pGroupName;
createChildren();
//return(groupName);
}
function get groupName() {
return(mGroupName);
}
function set enabled(pEnabled) {
mEnabled = pEnabled;
createChildren();
//return(enabled);
}
function get enabled() {
return(mEnabled);
}
function set type(pType) {
mType = pType;
//return(type);
}
function get type() {
return(mType);
}
function set skin(pSkin) {
mSkin = pSkin;
createChildren();
//return(skin);
}
function get skin() {
return(mSkin);
}
function set data(pData) {
mData = pData;
//return(data);
}
function get data() {
return(mData);
}
function init() {
_focusrect = false;
__width = _width;
__height = _height;
_xscale = 100;
_yscale = 100;
mx.events.EventDispatcher.initialize(this);
mcBoundingBox._visible = false;
mcBoundingBox._width = 0;
mcBoundingBox._height = 0;
if (mcSurface == undefined) {
mcSurface.removeMovieClip();
}
createEmptyMovieClip("mcSurface", getNextHighestDepth());
}
function createChildren() {
if (int(skin.length) > 0) {
mcClip = mcSurface.attachMovie(mSkin, "mcClip", getNextHighestDepth());
mcSurface.mcClip.label = mLabel;
} else if (selected) {
createButtonDown(mcSurface, 0, 0, __width, __height);
} else {
createButtonUp(mcSurface, 0, 0, __width, __height);
}
if (type == "Option") {
addGroup(groupName, this);
}
loadStates();
if (mEnabled) {
mcSurface.useHandCursor = true;
mcClip.gotoAndStop(this[("m_" + selected.toString()) + "Up"]);
} else {
mcSurface.useHandCursor = false;
mcClip.gotoAndStop(this[("m_" + selected.toString()) + "Disabled"]);
}
}
function setSize(nW, nH) {
_xscale = 100;
_yscale = 100;
__width = nW;
__height = nH;
createButtonUp(mcSurface, 0, 0, __width, __height);
}
function loadStates() {
mcSurface.mcClip.gotoAndStop("fFalseDisabled");
m_falseDisabled = mcSurface.mcClip._currentframe;
mcSurface.mcClip.gotoAndStop("fFalseDown");
m_falseDown = mcSurface.mcClip._currentframe;
mcSurface.mcClip.gotoAndStop("fFalseOver");
m_falseOver = mcSurface.mcClip._currentframe;
mcSurface.mcClip.gotoAndStop("fFalseUp");
m_falseUp = mcSurface.mcClip._currentframe;
mcSurface.mcClip.gotoAndStop("fTrueDisabled");
m_trueDisabled = mcSurface.mcClip._currentframe;
mcSurface.mcClip.gotoAndStop("fTrueDown");
m_trueDown = mcSurface.mcClip._currentframe;
mcSurface.mcClip.gotoAndStop("fTrueOver");
m_trueOver = mcSurface.mcClip._currentframe;
mcSurface.mcClip.gotoAndStop("fTrueUp");
m_trueUp = mcSurface.mcClip._currentframe;
}
function Next() {
if ((_currentframe >= _parent._parent[("m_" + _parent._parent.selected.toString()) + "Up"]) && (_currentframe < _parent._parent[("m_" + _parent._parent.selected.toString()) + "Over"])) {
nextFrame();
} else {
delete onEnterFrame;
}
}
function Prev() {
if ((_currentframe > _parent._parent[("m_" + _parent._parent.selected.toString()) + "Up"]) && (_currentframe <= _parent._parent[("m_" + _parent._parent.selected.toString()) + "Over"])) {
prevFrame();
} else {
delete onEnterFrame;
}
}
function onRollOver(Void) {
_onRollOver();
}
function onRollOut(Void) {
_onRollOut();
}
function onPress(Void) {
Selection.setFocus(this);
_onPress();
}
function onRelease(Void) {
_onRelease();
}
function onReleaseOutside(Void) {
_onReleaseOutside();
}
function onDragOut(Void) {
_onDragOut();
}
function onDragOver(Void) {
_onDragOver();
}
function _onRollOver(Void) {
if (!mEnabled) {
return(undefined);
}
mcSurface.mcClip.onEnterFrame = Next;
}
function _onRollOut(Void) {
if (!mEnabled) {
return(undefined);
}
mcSurface.mcClip.onEnterFrame = Prev;
}
function _onPress(Void) {
if (!mEnabled) {
return(undefined);
}
delete mcSurface.mcClip.onEnterFrame;
if (int(skin.length) > 0) {
mcClip.gotoAndStop(this[("m_" + selected.toString()) + "Down"]);
} else {
createButtonDown(mcSurface, 0, 0, __width, __height);
}
}
function _onRelease(Void) {
if (!mEnabled) {
return(undefined);
}
delete mcSurface.mcClip.onEnterFrame;
if (type == "Check") {
selected = (!selected);
}
if (type == "Option") {
selected = (true);
}
if (int(skin.length) > 0) {
mcClip.gotoAndStop(this[("m_" + selected.toString()) + "Over"]);
} else if (selected) {
createButtonDown(mcSurface, 0, 0, __width, __height);
} else {
createButtonUp(mcSurface, 0, 0, __width, __height);
}
}
function _onReleaseOutside(Void) {
if (!mEnabled) {
return(undefined);
}
useHandCursor = mUseHandCursor;
delete mcSurface.mcClip.onEnterFrame;
if (int(skin.length) > 0) {
mcClip.gotoAndStop(this[("m_" + selected.toString()) + "Up"]);
} else {
createButtonUp(mcSurface, 0, 0, __width, __height);
}
}
function _onDragOut(Void) {
if (!mEnabled) {
return(undefined);
}
useHandCursor = false;
delete mcSurface.mcClip.onEnterFrame;
if (int(skin.length) > 0) {
mcClip.gotoAndStop(this[("m_" + selected.toString()) + "Up"]);
} else {
createButtonUp(mcSurface, 0, 0, __width, __height);
}
}
function _onDragOver(Void) {
if (!mEnabled) {
return(undefined);
}
useHandCursor = mUseHandCursor;
delete mcSurface.mcClip.onEnterFrame;
if (int(skin.length) > 0) {
mcClip.gotoAndStop(this[("m_" + selected.toString()) + "Down"]);
} else {
createButtonDown(mcSurface, 0, 0, __width, __height);
}
}
function addGroup(groupName, path) {
var _local1 = 0;
while (_local1 < mGroups.length) {
if ((mGroups[_local1].path == undefined) || (mGroups[_local1].path == path)) {
mGroups.splice(_local1--, 1);
}
_local1++;
}
mGroups.push({groupName:groupName, path:path});
}
function getGroup(groupName) {
var _local4 = new Array();
var _local1 = 0;
while (_local1 < mGroups.length) {
if (mGroups[_local1].groupName == groupName) {
_local4.push({groupName:mGroups[_local1].groupName, path:mGroups[_local1].path});
}
_local1++;
}
return(_local4);
}
function showGroups() {
var _local1 = 0;
while (_local1 < mGroups.length) {
trace((("groupName: " + mGroups[_local1].groupName) + " path: ") + mGroups[_local1].path);
_local1++;
}
}
function rect(obj, x, y, x2, y2, color) {
obj.beginFill(color, 100);
obj.moveTo(x, y);
obj.lineTo(x2, y);
obj.lineTo(x2, y2);
obj.lineTo(x, y2);
obj.endFill();
}
function createButtonUp(obj, x, y, width, height) {
var _local3 = x + width;
var _local2 = y + height;
obj.clear();
rect(obj, x, y, _local3, _local2, 4210752);
rect(obj, x, y, _local3 - 1, _local2 - 1, 13947080);
rect(obj, x + 1, y + 1, _local3 - 1, _local2 - 1, 8421504);
rect(obj, x + 1, y + 1, _local3 - 2, _local2 - 2, 16777215);
rect(obj, x + 2, y + 2, _local3 - 2, _local2 - 2, 13947080);
}
function createButtonDown(obj, x, y, width, height) {
var _local3 = x + width;
var _local2 = y + height;
obj.clear();
rect(obj, x, y, _local3, _local2, 13947080);
rect(obj, x, y, _local3 - 1, _local2 - 1, 4210752);
rect(obj, x + 1, y + 1, _local3 - 1, _local2 - 1, 16777215);
rect(obj, x + 1, y + 1, _local3 - 2, _local2 - 2, 8421504);
rect(obj, x + 2, y + 2, _local3 - 2, _local2 - 2, 13947080);
}
static var symbolName = "czButton";
static var symbolOwner = Object(czButton);
static var version = "1.0.0.0";
var className = "czButton";
static var mGroups = new Array();
}
Symbol 645 MovieClip [__Packages.czHScrollBar] Frame 0
class czHScrollBar extends MovieClip
{
var __width, __height, mTargetInstanceName, onScroll, _parent, mUseHandCursor, useHandCursor, mEnabled, oldx, mcScrollBar, mSkin, mData, mMinPos, mMaxPos, mScrollPosition, isScrolling, dispatchEvent, mPageSize, _focusrect, _width, _height, _xscale, _yscale, mcBoundingBox, attachMovie, createEmptyMovieClip, ID_Funcion, xmin, xmax, ymin, ymax;
function czHScrollBar () {
super();
init();
createChildren();
setSize(__width, __height);
}
function set _targetInstanceName(pTargetInstanceName) {
mTargetInstanceName = pTargetInstanceName;
if (int(mTargetInstanceName.length) > 0) {
var This = this;
onScroll = function () {
This._parent[this._targetInstanceName].hscroll = This.mScrollPosition;
};
_parent[_targetInstanceName].onScroller = (_parent[_targetInstanceName].onChanged = function () {
if (!This.isScrolling) {
trace("onScroller: Scroll del Texto");
This.mPageSize = this._width;
This.mMaxPos = this.maxhscroll;
This.arrange();
This.mScrollPosition = this.hscroll;
var _local2 = (((This.mScrollPosition - This.minPos) * (This.mcScrollBar.mcTrack._width - This.mcScrollBar.mcThumb._width)) / (This.maxPos - This.minPos)) + This.mcScrollBar.mcTrack._x;
This.mcScrollBar.mcThumb._x = _local2;
This.mcScrollBar.mcThumbGrip._x = This.mcScrollBar.mcThumb._x + ((This.mcScrollBar.mcThumb._width - This.mcScrollBar.mcThumbGrip._width) / 2);
}
});
}
//return(_targetInstanceName);
}
function get _targetInstanceName() {
return(mTargetInstanceName);
}
function set _useHandCursor(pUseHandCursor) {
mUseHandCursor = pUseHandCursor;
useHandCursor = mUseHandCursor;
//return(_useHandCursor);
}
function get _useHandCursor() {
return(mUseHandCursor);
}
function set enabled(pEnabled) {
mEnabled = pEnabled;
if (!mEnabled) {
oldx = mcScrollBar.mcThumb._x;
}
createChildren();
//return(enabled);
}
function get enabled() {
return(mEnabled);
}
function set skin(pSkin) {
mSkin = pSkin;
createChildren();
//return(skin);
}
function get skin() {
return(mSkin);
}
function set data(pData) {
mData = pData;
//return(data);
}
function get data() {
return(mData);
}
function set minPos(pMinPos) {
mMinPos = pMinPos;
createChildren();
scrollPosition = (scrollPosition);
//return(minPos);
}
function get minPos() {
return(mMinPos);
}
function set maxPos(pMaxPos) {
mMaxPos = pMaxPos;
createChildren();
scrollPosition = (scrollPosition);
//return(maxPos);
}
function get maxPos() {
return(mMaxPos);
}
function set scrollPosition(pScrollPosition) {
if (pScrollPosition < minPos) {
pScrollPosition = minPos;
}
if (pScrollPosition > maxPos) {
pScrollPosition = maxPos;
}
mScrollPosition = pScrollPosition;
if (!isScrolling) {
pScrollPosition = Math.min(pScrollPosition, maxPos);
pScrollPosition = Math.max(pScrollPosition, minPos);
var _local3 = (((pScrollPosition - minPos) * (mcScrollBar.mcTrack._width - mcScrollBar.mcThumb._width)) / (maxPos - minPos)) + mcScrollBar.mcTrack._x;
mcScrollBar.mcThumb._x = _local3;
}
mcScrollBar.mcThumbGrip._x = mcScrollBar.mcThumb._x + ((mcScrollBar.mcThumb._width - mcScrollBar.mcThumbGrip._width) / 2);
if (isNaN(scrollPosition)) {
mScrollPosition = 0;
}
onScroll();
dispatchEvent({type:"scroll"});
//return(scrollPosition);
}
function get scrollPosition() {
return(mScrollPosition);
}
function set pageSize(pPageSize) {
mPageSize = pPageSize;
createChildren();
//return(pageSize);
}
function get pageSize() {
return(mPageSize);
}
function init() {
_focusrect = false;
__width = _width;
__height = _height;
_xscale = 100;
_yscale = 100;
mx.events.EventDispatcher.initialize(this);
mcBoundingBox._visible = false;
mcBoundingBox._width = 0;
mcBoundingBox._height = 0;
}
function createChildren() {
function dragThumb(Void) {
var _local2 = this._parent._parent;
var _local3 = (this._xmouse - lastX) + this._x;
if (_local3 < _local2.xmin) {
_local3 = _local2.xmin;
} else if (_local3 > _local2.xmax) {
_local3 = _local2.xmax;
}
this._x = _local3;
var _local4 = (((_local2.maxPos - _local2.minPos) * (this._x - _local2.xmin)) / (_local2.xmax - _local2.xmin)) + _local2.minPos;
_local2.scrollPosition = _local4;
updateAfterEvent();
}
if (int(skin.length) > 0) {
attachMovie(skin, "mcScrollBar", 1);
if (!enabled) {
useHandCursor = false;
mcScrollBar.useHandCursor = false;
mcScrollBar.mcArrowUp.enabled = false;
mcScrollBar.mcArrowDown.enabled = false;
mcScrollBar.mcTrack.enabled = false;
mcScrollBar.mcTrack.mcTrackTop.enabled = false;
mcScrollBar.mcTrack.mcTrackMiddle.enabled = false;
mcScrollBar.mcTrack.mcTrackBottom.enabled = false;
mcScrollBar.mcThumb.enabled = false;
mcScrollBar.mcThumb.mcThumbTop.enabled = false;
mcScrollBar.mcThumb.mcThumbMiddle.enabled = false;
mcScrollBar.mcThumb.mcThumbBottom.enabled = false;
}
} else {
createEmptyMovieClip("mcScrollBar", 1);
mcScrollBar.createEmptyMovieClip("mcArrowUp", 2);
mcScrollBar.createEmptyMovieClip("mcArrowDown", 3);
mcScrollBar.createEmptyMovieClip("mcTrack", 4);
if (enabled) {
mcScrollBar.createEmptyMovieClip("mcThumb", 5);
createButtonUp(mcScrollBar.mcArrowUp, 0, 0, 16, 16);
createHorizontalArrow(mcScrollBar.mcArrowUp, 10, 4, 7, 0, 1);
createButtonUp(mcScrollBar.mcArrowDown, 0, 0, 16, 16);
createHorizontalArrow(mcScrollBar.mcArrowDown, 6, 4, 7, 0, -1);
rect(mcScrollBar.mcTrack, 0, 0, (__width - mcScrollBar.mcArrowUp._width) - mcScrollBar.mcArrowDown._width, 16, 13947080);
createButtonUp(mcScrollBar.mcThumb, 0, 0, 16, 16);
useHandCursor = _useHandCursor;
mcScrollBar.useHandCursor = _useHandCursor;
mcScrollBar.mcArrowUp.useHandCursor = _useHandCursor;
mcScrollBar.mcArrowDown.useHandCursor = _useHandCursor;
mcScrollBar.mcTrack.useHandCursor = _useHandCursor;
mcScrollBar.mcThumb.useHandCursor = _useHandCursor;
} else {
createButtonUp(mcScrollBar.mcArrowUp, 0, 0, 16, 16);
createHorizontalArrow(mcScrollBar.mcArrowUp, 11, 5, 7, 16777215, 1);
createHorizontalArrow(mcScrollBar.mcArrowUp, 10, 4, 7, 11315353, 1);
createButtonUp(mcScrollBar.mcArrowDown, 0, 0, 16, 16);
createHorizontalArrow(mcScrollBar.mcArrowDown, 7, 5, 7, 16777215, -1);
createHorizontalArrow(mcScrollBar.mcArrowDown, 6, 4, 7, 11315353, -1);
rect(mcScrollBar.mcTrack, 0, 0, (__width - mcScrollBar.mcArrowUp._width) - mcScrollBar.mcArrowDown._width, 16, 13947080);
useHandCursor = false;
mcScrollBar.useHandCursor = false;
mcScrollBar.mcArrowUp.useHandCursor = false;
mcScrollBar.mcArrowDown.useHandCursor = false;
mcScrollBar.mcTrack.useHandCursor = false;
mcScrollBar.mcThumb.useHandCursor = false;
}
}
mcScrollBar.mcArrowUp._focusrect = false;
mcScrollBar.mcArrowDown._focusrect = false;
mcScrollBar.mcTrack._focusrect = false;
mcScrollBar.mcThumb._focusrect = false;
arrange();
isScrolling = false;
ID_Funcion = 0;
mcScrollBar.mcThumb._x = oldx;
if (!enabled) {
return(undefined);
}
mcScrollBar.mcArrowUp.onPress = function () {
function wait() {
clearInterval(This._parent._parent.ID_Funcion);
This._parent._parent.ID_Funcion = setInterval(Prev, 30);
}
function Prev() {
if (This.hitTest(_root._xmouse, _root._ymouse, true)) {
This._parent._parent.scrollPosition--;
}
}
Selection.setFocus(this);
this._onPress();
var This = this;
if (int(this._parent._parent.skin.length) == 0) {
this._parent._parent.createButtonDown(this, 0, 0, 16, 16);
this._parent._parent.createHorizontalArrow(this, 11, 5, 7, 0, 1);
}
this._parent._parent.scrollPosition--;
this._parent._parent.ID_Funcion = setInterval(wait, 300);
};
mcScrollBar.mcArrowUp.onRelease = function () {
this._onRelease();
clearInterval(this._parent._parent.ID_Funcion);
if (int(this._parent._parent.skin.length) == 0) {
this._parent._parent.createButtonUp(this, 0, 0, 16, 16);
this._parent._parent.createHorizontalArrow(this, 10, 4, 7, 0, 1);
}
this._parent._parent.dispatchEvent({type:"upRelease"});
this._parent._parent.dispatchEvent({type:"onRelease"});
};
mcScrollBar.mcArrowUp.onReleaseOutside = function () {
this._onReleaseOutside();
clearInterval(this._parent._parent.ID_Funcion);
if (int(this._parent._parent.skin.length) == 0) {
this._parent._parent.createButtonUp(this, 0, 0, 16, 16);
this._parent._parent.createHorizontalArrow(this, 10, 4, 7, 0, 1);
}
this._parent._parent.dispatchEvent({type:"upReleaseOutside"});
this._parent._parent.dispatchEvent({type:"onRelease"});
};
mcScrollBar.mcArrowUp.onDragOut = function () {
this._onDragOut();
if (int(this._parent._parent.skin.length) == 0) {
this._parent._parent.createButtonUp(this, 0, 0, 16, 16);
this._parent._parent.createHorizontalArrow(this, 10, 4, 7, 0, 1);
}
};
mcScrollBar.mcArrowUp.onDragOver = function () {
this._onDragOver();
if (int(this._parent._parent.skin.length) == 0) {
this._parent._parent.createButtonDown(this, 0, 0, 16, 16);
this._parent._parent.createHorizontalArrow(this, 11, 5, 7, 0, 1);
}
};
mcScrollBar.mcArrowDown.onPress = function () {
function wait() {
clearInterval(This._parent._parent.ID_Funcion);
This._parent._parent.ID_Funcion = setInterval(Next, 30);
}
function Next() {
if (This.hitTest(_root._xmouse, _root._ymouse, true)) {
This._parent._parent.scrollPosition++;
}
}
Selection.setFocus(this);
this._onPress();
var This = this;
if (int(this._parent._parent.skin.length) == 0) {
this._parent._parent.createButtonDown(this, 0, 0, 16, 16);
this._parent._parent.createHorizontalArrow(this, 7, 5, 7, 0, -1);
}
this._parent._parent.scrollPosition++;
this._parent._parent.ID_Funcion = setInterval(wait, 300);
};
mcScrollBar.mcArrowDown.onRelease = function () {
this._onRelease();
clearInterval(this._parent._parent.ID_Funcion);
if (int(this._parent._parent.skin.length) == 0) {
this._parent._parent.createButtonUp(this, 0, 0, 16, 16);
this._parent._parent.createHorizontalArrow(this, 6, 4, 7, 0, -1);
}
this._parent._parent.dispatchEvent({type:"DownRelease"});
this._parent._parent.dispatchEvent({type:"onRelease"});
};
mcScrollBar.mcArrowDown.onReleaseOutside = function () {
this._onReleaseOutside();
clearInterval(this._parent._parent.ID_Funcion);
if (int(this._parent._parent.skin.length) == 0) {
this._parent._parent.createButtonUp(this, 0, 0, 16, 16);
this._parent._parent.createHorizontalArrow(this, 6, 4, 7, 0, -1);
}
this._parent._parent.dispatchEvent({type:"DownReleaseOutside"});
this._parent._parent.dispatchEvent({type:"onRelease"});
};
mcScrollBar.mcArrowDown.onDragOut = function () {
this._onDragOut();
if (int(this._parent._parent.skin.length) == 0) {
this._parent._parent.createButtonUp(this, 0, 0, 16, 16);
this._parent._parent.createHorizontalArrow(this, 6, 4, 7, 0, -1);
}
};
mcScrollBar.mcArrowDown.onDragOver = function () {
this._onDragOver();
if (int(this._parent._parent.skin.length) == 0) {
this._parent._parent.createButtonDown(this, 0, 0, 16, 16);
this._parent._parent.createHorizontalArrow(this, 7, 5, 7, 0, -1);
}
};
mcScrollBar.mcTrack.onPress = function () {
function wait() {
clearInterval(This._parent._parent.ID_Funcion);
This._parent._parent.ID_Funcion = setInterval(Next, 100);
}
function Next() {
if (This.hitTest(_root._xmouse, _root._ymouse, true)) {
if (This._parent._xmouse < This._parent.mcThumb._x) {
This._parent._parent.scrollPosition = This._parent._parent.scrollPosition - This._parent._parent.pageSize;
if (This._parent._xmouse > This._parent.mcThumb._x) {
clearInterval(This._parent._parent.ID_Funcion);
}
} else if (This._parent._xmouse > (This._parent.mcThumb._x + This._parent.mcThumb._width)) {
This._parent._parent.scrollPosition = This._parent._parent.scrollPosition + This._parent._parent.pageSize;
if (This._parent._xmouse < (This._parent.mcThumb._x + This._parent.mcThumb._width)) {
clearInterval(This._parent._parent.ID_Funcion);
}
}
}
}
Selection.setFocus(this);
this._onPress();
this.mcTrackTop._onPress();
this.mcTrackMiddle._onPress();
this.mcTrackBottom._onPress();
var This = this;
if (this._parent._xmouse < this._parent.mcThumb._x) {
this._parent._parent.scrollPosition = this._parent._parent.scrollPosition - this._parent._parent.pageSize;
} else if (this._parent._xmouse > (this._parent.mcThumb._x + this._parent.mcThumb._width)) {
this._parent._parent.scrollPosition = this._parent._parent.scrollPosition + this._parent._parent.pageSize;
}
this._parent._parent.ID_Funcion = setInterval(wait, 300);
};
mcScrollBar.mcTrack.onRelease = function () {
this._onRelease();
this.mcTrackTop._onRelease();
this.mcTrackMiddle._onRelease();
this.mcTrackBottom._onRelease();
clearInterval(this._parent._parent.ID_Funcion);
this._parent._parent.dispatchEvent({type:"trackRelease"});
this._parent._parent.dispatchEvent({type:"onRelease"});
};
mcScrollBar.mcTrack.onReleaseOutside = function () {
this._onReleaseOutside();
this.mcTrackTop._onReleaseOutside();
this.mcTrackMiddle._onReleaseOutside();
this.mcTrackBottom._onReleaseOutside();
clearInterval(this._parent._parent.ID_Funcion);
this._parent._parent.dispatchEvent({type:"trackRelease"});
this._parent._parent.dispatchEvent({type:"onRelease"});
};
mcScrollBar.mcTrack.onRollOver = function () {
this._onRollOver();
this.mcTrackTop._onRollOver();
this.mcTrackMiddle._onRollOver();
this.mcTrackBottom._onRollOver();
};
mcScrollBar.mcTrack.onRollOut = function () {
this._onRollOut();
this.mcTrackTop._onRollOut();
this.mcTrackMiddle._onRollOut();
this.mcTrackBottom._onRollOut();
};
mcScrollBar.mcTrack.onDragOver = function () {
this._onDragOver();
this.mcTrackTop._onDragOver();
this.mcTrackMiddle._onDragOver();
this.mcTrackBottom._onDragOver();
};
mcScrollBar.mcTrack.onDragOut = function () {
this._onDragOut();
this.mcTrackTop._onDragOut();
this.mcTrackMiddle._onDragOut();
this.mcTrackBottom._onDragOut();
};
var lastX;
mcScrollBar.mcThumb.onPress = function () {
this._onPress();
this.mcThumbTop._onPress();
this.mcThumbMiddle._onPress();
this.mcThumbBottom._onPress();
lastX = this._xmouse;
this._parent._parent.isScrolling = true;
this.onMouseMove = dragThumb;
};
mcScrollBar.mcThumb.onRelease = function () {
this._onRelease();
this.mcThumbTop._onRelease();
this.mcThumbMiddle._onRelease();
this.mcThumbBottom._onRelease();
this._parent._parent.isScrolling = false;
delete this.onMouseMove;
this._parent._parent.dispatchEvent({type:"thumbRelease"});
this._parent._parent.dispatchEvent({type:"onRelease"});
};
mcScrollBar.mcThumb.onReleaseOutside = function () {
this._onReleaseOutside();
this.mcThumbTop._onReleaseOutside();
this.mcThumbMiddle._onReleaseOutside();
this.mcThumbBottom._onReleaseOutside();
this._parent._parent.isScrolling = false;
delete this.onMouseMove;
this._parent._parent.dispatchEvent({type:"thumbReleaseOutside"});
this._parent._parent.dispatchEvent({type:"onRelease"});
};
mcScrollBar.mcThumb.onRollOver = function () {
this._onRollOver();
this.mcThumbTop._onRollOver();
this.mcThumbMiddle._onRollOver();
this.mcThumbBottom._onRollOver();
};
mcScrollBar.mcThumb.onRollOut = function () {
this._onRollOut();
this.mcThumbTop._onRollOut();
this.mcThumbMiddle._onRollOut();
this.mcThumbBottom._onRollOut();
};
mcScrollBar.mcThumb.onDragOver = function () {
this._onDragOver();
this.mcThumbTop._onDragOver();
this.mcThumbMiddle._onDragOver();
this.mcThumbBottom._onDragOver();
};
mcScrollBar.mcThumb.onDragOut = function () {
this._onDragOut();
this.mcThumbTop._onDragOut();
this.mcThumbMiddle._onDragOut();
this.mcThumbBottom._onDragOut();
};
}
function setSize(nW, nH) {
_xscale = 100;
_yscale = 100;
__width = nW;
__height = nH;
arrange();
createChildren();
}
function arrange() {
if (int(skin.length) > 0) {
mcScrollBar.mcArrowDown._x = __width - mcScrollBar.mcArrowDown._width;
mcScrollBar.mcTrack._x = mcScrollBar.mcArrowUp._width;
if (mcScrollBar.mcTrack.mcTrackMiddle != undefined) {
if (mcScrollBar.mcTrack.mcTrackTop == mcScrollBar.mcTrack.mcTrackBottom) {
mcScrollBar.mcTrack.mcTrackMiddle._width = (__width - mcScrollBar.mcArrowUp._width) - mcScrollBar.mcArrowDown._width;
} else {
mcScrollBar.mcTrack.mcTrackMiddle._width = (((__width - mcScrollBar.mcArrowUp._width) - mcScrollBar.mcArrowDown._width) - mcScrollBar.mcTrack.mcTrackTop._width) - mcScrollBar.mcTrack.mcTrackBottom._width;
mcScrollBar.mcTrack.mcTrackBottom._x = mcScrollBar.mcTrack.mcTrackTop._width + mcScrollBar.mcTrack.mcTrackMiddle._width;
}
}
if (mcScrollBar.mcThumb.mcThumbMiddle != undefined) {
if (mcScrollBar.mcThumb.mcThumbTop == mcScrollBar.mcThumb.mcThumbBottom) {
mcScrollBar.mcThumb.mcThumbMiddle._width = (pageSize / ((maxPos - minPos) + pageSize)) * mcScrollBar.mcTrack._width;
} else {
mcScrollBar.mcThumb.mcThumbMiddle._width = ((pageSize / ((maxPos - minPos) + pageSize)) * mcScrollBar.mcTrack._width) - mcScrollBar.mcThumb.mcThumbTop._width;
mcScrollBar.mcThumb.mcThumbBottom._x = mcScrollBar.mcThumb.mcThumbTop._width + mcScrollBar.mcThumb.mcThumbMiddle._width;
}
}
if (mcScrollBar.mcThumbGrip._width < (mcScrollBar.mcThumbGrip._width + 4)) {
mcScrollBar.mcThumbGrip._visible = true;
mcScrollBar.mcThumbGrip._x = mcScrollBar.mcThumb._x + ((mcScrollBar.mcThumb._width - mcScrollBar.mcThumbGrip._width) / 2);
} else {
mcScrollBar.mcThumbGrip._visible = false;
}
} else {
mcScrollBar.mcArrowDown._x = __width - mcScrollBar.mcArrowDown._width;
mcScrollBar.mcTrack._x = mcScrollBar.mcArrowUp._width;
mcScrollBar.mcThumb.clear();
var _local2 = (pageSize / ((maxPos - minPos) + pageSize)) * mcScrollBar.mcTrack._width;
if (_local2 < 5) {
_local2 = 5;
}
createButtonUp(mcScrollBar.mcThumb, 0, 0, _local2, 16);
mcScrollBar.mcThumb._x = mcScrollBar.mcArrowUp._width;
}
xmin = mcScrollBar.mcTrack._x;
xmax = (xmin + mcScrollBar.mcTrack._width) - mcScrollBar.mcThumb._width;
ymin = mcScrollBar.mcThumb._y;
ymax = ymin;
}
function rect(obj, x, y, x2, y2, color) {
obj.beginFill(color, 100);
obj.moveTo(x, y);
obj.lineTo(x2, y);
obj.lineTo(x2, y2);
obj.lineTo(x, y2);
obj.endFill();
}
function createButtonUp(obj, x, y, width, height) {
var _local3 = x + width;
var _local2 = y + height;
obj.clear();
rect(obj, x, y, _local3, _local2, 4210752);
rect(obj, x, y, _local3 - 1, _local2 - 1, 13947080);
rect(obj, x + 1, y + 1, _local3 - 1, _local2 - 1, 8421504);
rect(obj, x + 1, y + 1, _local3 - 2, _local2 - 2, 16777215);
rect(obj, x + 2, y + 2, _local3 - 2, _local2 - 2, 13947080);
}
function createButtonDown(obj, x, y, width, height) {
var _local3 = x + width;
var _local2 = y + height;
obj.clear();
rect(obj, x, y, _local3, _local2, 13947080);
rect(obj, x, y, _local3 - 1, _local2 - 1, 4210752);
rect(obj, x + 1, y + 1, _local3 - 1, _local2 - 1, 16777215);
rect(obj, x + 1, y + 1, _local3 - 2, _local2 - 2, 8421504);
rect(obj, x + 2, y + 2, _local3 - 2, _local2 - 2, 13947080);
}
function createVerticalArrow(obj, x, y, width, color, dir) {
var _local4;
var _local2 = 0;
while (_local2 < Math.ceil(width / 2)) {
_local4 = (x + width) - _local2;
rect(obj, x + _local2, y - (_local2 * dir), _local4, y - ((_local2 * dir) + dir), color);
_local2++;
}
}
function createHorizontalArrow(obj, x, y, height, color, dir) {
var _local4;
var _local2 = 0;
while (_local2 < Math.ceil(height / 2)) {
_local4 = (y + height) - _local2;
rect(obj, x - (_local2 * dir), y + _local2, x - ((_local2 * dir) + dir), _local4, color);
_local2++;
}
}
static var symbolName = "czHScrollBar";
static var symbolOwner = Object(czHScrollBar);
static var version = "1.0.0.0";
var className = "czHScrollBar";
}
Symbol 740 MovieClip [__Packages.czRichTextBox] Frame 0
class czRichTextBox extends MovieClip
{
var mSkin, mData, mEmbedFonts, mMaxLines, mMultiline, mcClip, numLines, aRender, _focusrect, runtime, __width, _width, __height, _height, _xscale, _yscale, mcBoundingBox, aType, aHTML, aForbiddenHTML, mcSurface, createEmptyMovieClip, getNextHighestDepth, aSmileys, aStrHistory, fmt;
function czRichTextBox () {
super();
init();
createChildren();
}
function set skin(pSkin) {
mSkin = pSkin;
createChildren();
//return(skin);
}
function get skin() {
return(mSkin);
}
function set data(pData) {
mData = pData;
//return(data);
}
function get data() {
return(mData);
}
function set embedFonts(pEmbedFonts) {
mEmbedFonts = pEmbedFonts;
createChildren();
//return(embedFonts);
}
function get embedFonts() {
return(mEmbedFonts);
}
function set maxLines(pMaxLines) {
mMaxLines = pMaxLines;
//return(maxLines);
}
function get maxLines() {
return(mMaxLines);
}
function set multiline(pMultiline) {
mMultiline = pMultiline;
//return(multiline);
}
function get multiline() {
return(mMultiline);
}
function set scroll(param) {
mcClip.txtOut.scroll = param;
//return(scroll);
}
function get scroll() {
return(mcClip.txtOut.scroll);
}
function set bottomScroll(param) {
mcClip.txtOut.bottomScroll = param;
//return(bottomScroll);
}
function get bottomScroll() {
return(mcClip.txtOut.bottomScroll);
}
function set maxscroll(param) {
mcClip.txtOut.maxscroll = param;
//return(maxscroll);
}
function get maxscroll() {
return(mcClip.txtOut.maxscroll);
}
function set obj(param) {
if (!int(param.length)) {
return;
}
var _local2 = Serialize.decode(param);
clear();
numLines = _local2.numLines;
aRender = _local2.aRender;
refreshText();
render();
scroll = (maxscroll);
//return(obj);
}
function get obj() {
var _local4 = ("numLines&" + numLines) + ";aRender[";
var _local6 = aRender.length;
var _local5;
var _local3 = 0;
while (_local3 < _local6) {
_local4 = _local4 + (((((_local3 + "{str'") + aRender[_local3].str) + "'y&") + aRender[_local3].y) + ";smileys[");
_local5 = aRender[_local3].smileys.length;
var _local2 = 0;
while (_local2 < _local5) {
_local4 = _local4 + (((_local2 + "{x&") + aRender[_local3].smileys[_local2].x) + ";w&");
_local4 = _local4 + (aRender[_local3].smileys[_local2].w + ";h&");
_local4 = _local4 + (aRender[_local3].smileys[_local2].h + ";target'");
_local4 = _local4 + (aRender[_local3].smileys[_local2].target + "'}");
_local2++;
}
_local4 = _local4 + "]}";
_local3++;
}
if (!_local3) {
return("");
}
return(_local4 + "]");
}
function init() {
_focusrect = false;
runtime = ((String(this).slice(0, 16) == "_level0.contents") ? false : true);
__width = _width;
__height = _height;
_xscale = 100;
_yscale = 100;
mcBoundingBox._visible = false;
mcBoundingBox._width = 0;
mcBoundingBox._height = 0;
aType = new Array(255);
var _local2 = 0;
while (_local2 < 255) {
aType[_local2] = false;
_local2++;
}
aType[60] = true;
aType[38] = true;
aHTML = new Array();
aHTML["<a>"] = "</a>";
aHTML["<a "] = "</a>";
aHTML["<b>"] = "</b>";
aHTML["<b "] = "</b>";
aHTML["<fo"] = "</font>";
aHTML["<i>"] = "</i>";
aHTML["<i "] = "</i>";
aHTML["<u>"] = "</u>";
aHTML["<u "] = "</u>";
aHTML["<A>"] = "</A>";
aHTML["<A "] = "</A>";
aHTML["<B>"] = "</B>";
aHTML["<B "] = "</B>";
aHTML["<FO"] = "</FONT>";
aHTML["<Fo"] = "</Font>";
aHTML["<fO"] = "</fONT>";
aHTML["<I>"] = "</I>";
aHTML["<I "] = "</I>";
aHTML["<U>"] = "</U>";
aHTML["<U "] = "</U>";
aForbiddenHTML = new Array();
aForbiddenHTML["<im"] = true;
aForbiddenHTML["<li"] = true;
aForbiddenHTML["<p>"] = true;
aForbiddenHTML["<p "] = true;
aForbiddenHTML["<sp"] = true;
aForbiddenHTML["<te"] = true;
aForbiddenHTML["</l"] = true;
aForbiddenHTML["</p"] = true;
aForbiddenHTML["</s"] = true;
aForbiddenHTML["</t"] = true;
if (mcSurface == undefined) {
mcSurface.removeMovieClip();
}
createEmptyMovieClip("mcSurface", getNextHighestDepth());
}
function createChildren() {
var THIS = this;
mcClip = mcSurface.attachMovie(mSkin, "mcClip", getNextHighestDepth());
numLines = 0;
aSmileys = new Array();
aRender = new Array();
aStrHistory = new Array();
fmt = new TextFormat();
fmt = mcClip.txtOut.getTextFormat();
mcClip.txtAux.autoSize = true;
mcClip.txtAux._visible = false;
mcClip.txtAux.htmlText = "";
mcClip.txtOut.htmlText = "";
mcClip.txtOut.setNewTextFormat(fmt);
mcClip.txtAux.setNewTextFormat(fmt);
mcClip.txtAux.embedFonts = mEmbedFonts;
mcClip.txtOut.embedFonts = mEmbedFonts;
if (!multiline) {
mcClip.txtOut.autoSize = true;
mcClip.txtOut.multiline = false;
mcClip.txtOut.wordWrap = false;
}
if (mEmbedFonts) {
initCharMapsEmbed();
} else {
initCharMaps();
}
var THIS = this;
mcClip.txtOut.onScroller = function () {
THIS.render();
THIS.onScroller(THIS);
};
mcClip.txtOut.onChanged = function () {
THIS.onChanged(THIS);
};
arrange();
}
function setSize(nW, nH) {
_xscale = 100;
_yscale = 100;
__width = nW;
__height = nH;
arrange();
}
function arrange() {
mcClip.txtOut._width = __width;
mcClip.txtOut._height = __height;
if (multiline) {
mcClip.mcMask._x = 1;
mcClip.mcMask._y = 1;
mcClip.mcMask._width = __width - 2;
mcClip.mcMask._height = __height - 2;
} else {
mcClip.mcMask._x = -8;
mcClip.mcMask._y = -8;
mcClip.mcMask._width = __width + 8;
mcClip.mcMask._height = __height + 8;
}
if (!runtime) {
viewRect();
}
}
function initCharMaps() {
var _local5 = int(fmt.leftMargin + fmt.rightMargin);
var _local4 = 0;
var _local3 = "";
var _local2 = "";
while (_local4 < 256) {
_local3 = chr(_local4);
switch (_local3) {
case "<" :
_local2 = "<";
break;
case ">" :
_local2 = ">";
break;
case "\u00A0" :
_local2 = " ";
break;
case "&" :
_local2 = "&";
break;
case "\"" :
_local2 = """;
break;
case "'" :
_local2 = "'";
break;
default :
_local2 = _local3;
}
mcClip.txtAux.htmlText = _local2;
asciiNormal[_local3] = mcClip.txtAux._width - (4 + _local5);
mcClip.txtAux.htmlText = ("<B>" + _local2) + "</B>";
asciiBold[_local3] = mcClip.txtAux._width - (4 + _local5);
mcClip.txtAux.htmlText = ("<I>" + _local2) + "</I>";
asciiItalic[_local3] = mcClip.txtAux._width - (4 + _local5);
mcClip.txtAux.htmlText = ("<B><I>" + _local2) + "</I></B>";
asciiBoldItalic[_local3] = mcClip.txtAux._width - (4 + _local5);
_local4++;
}
ascii[0] = asciiNormal;
ascii[1] = asciiNormal;
ascii[2] = asciiItalic;
ascii[3] = asciiItalic;
ascii[4] = asciiBold;
ascii[5] = asciiBold;
ascii[6] = asciiBoldItalic;
ascii[7] = asciiBoldItalic;
}
function initCharMapsEmbed() {
var _local5 = int(fmt.leftMargin + fmt.rightMargin);
var _local4 = 0;
var _local3 = "";
var _local2 = "";
while (_local4 < 256) {
_local3 = chr(_local4);
switch (_local3) {
case "<" :
_local2 = "<";
break;
case ">" :
_local2 = ">";
break;
case "\u00A0" :
_local2 = " ";
break;
case "&" :
_local2 = "&";
break;
case "\"" :
_local2 = """;
break;
case "'" :
_local2 = "'";
default :
_local2 = _local3;
}
mcClip.txtAux.htmlText = _local2;
asciiNormal[_local3] = mcClip.txtAux._width - (4 + _local5);
mcClip.txtAux.htmlText = ("<B>" + _local2) + "</B>";
asciiBold[_local3] = mcClip.txtAux._width - (4 + _local5);
mcClip.txtAux.htmlText = ("<I>" + _local2) + "</I>";
asciiItalic[_local3] = mcClip.txtAux._width - (4 + _local5);
mcClip.txtAux.htmlText = ("<B><I>" + _local2) + "</I></B>";
asciiBoldItalic[_local3] = mcClip.txtAux._width - (4 + _local5);
_local4++;
}
ascii[0] = asciiNormal;
ascii[1] = asciiNormal;
ascii[2] = asciiItalic;
ascii[3] = asciiItalic;
ascii[4] = asciiBold;
ascii[5] = asciiBold;
ascii[6] = asciiBoldItalic;
ascii[7] = asciiBoldItalic;
}
function addSmiley(code, target, w, h) {
var _local3 = "";
var _local4;
_local4 = (mEmbedFonts ? " " : " ");
var _local2 = 0;
while (_local2 < w) {
_local3 = _local3 + _local4;
_local2++;
}
aSmileys.push({code:code, target:target, w:w, h:h, html:_local3});
aSmileys.sortOn("code");
aType[ord(code.charAt(0))] = true;
}
function clearSmileys() {
aSmileys = new Array();
}
function render() {
var _local11 = mcClip.txtOut.scroll - 1;
var _local10 = mcClip.txtOut.bottomScroll;
var _local9 = 0;
var _local5 = 0;
var _local6;
var _local4;
for (var _local12 in mcClip.mcSmileys) {
mcClip.mcSmileys[_local12].removeMovieClip();
}
var _local2 = _local11;
while (_local2 <= _local10) {
var _local3 = 0;
while (_local3 < aRender[_local2].smileys.length) {
_local6 = (aRender[_local2].smileys[_local3].x - mcClip.txtOut.hscroll) - fmt.rightMargin;
_local4 = (_local9 + int(aRender[_local2].y / 2)) + 2;
if ((_local4 + (aRender[_local2].smileys[_local3].h / 2)) < mcClip.mcMask._height) {
mcClip.mcSmileys.attachMovie(aRender[_local2].smileys[_local3].target, "item" + _local5, _local5++, {_x:_local6, _y:_local4});
}
_local3++;
}
_local9 = _local9 + (aRender[_local2].y + fmt.leading);
_local2++;
}
}
function clear() {
numLines = 0;
aRender = new Array();
aStrHistory = new Array();
mcClip.txtAux.htmlText = "";
mcClip.txtOut.htmlText = "";
mcClip.txtOut.setNewTextFormat(fmt);
mcClip.txtAux.setNewTextFormat(fmt);
}
function refreshText() {
var _local3 = "";
var _local4 = aRender.length - 2;
var _local2 = 0;
while (_local2 <= _local4) {
_local3 = _local3 + (aRender[_local2].str + "<BR>");
_local2++;
}
mcClip.txtOut.htmlText = _local3 + aRender[_local2].str;
}
function parse(str) {
var _local3 = ltrim(rtrim(str)).length;
if (ltrim(rtrim(str)).length < 1) {
return(undefined);
}
aStrHistory.push(str);
mcClip.txtAux.htmlText = "";
if (multiline) {
parseMultiline(debugHTML(str));
} else {
parseSingleline(debugHTML(str));
}
}
function parseMultiline(str) {
var _local5 = str.split("");
var _local3 = 0;
var _local24 = _local5.length;
var _local6 = 0;
var _local25 = fmt.leftMargin + fmt.rightMargin;
var _local9 = 0;
var _local30 = "";
var _local29 = "";
var _local4 = "";
var _local16 = "";
var _local8 = 0;
var _local20;
var _local13 = 0;
var _local14 = 0;
var _local22 = 0;
aRender.push({str:"", y:0, smileys:[]});
for ( ; _local3 < _local24 ; _local3++) {
if (aType[ord(_local5[_local3])]) {
if (_local5[_local3] == "&") {
var _local19 = _local5.slice(_local3, _local3 + 6).join("");
var _local12 = "";
var _local15 = "&";
if (_local19.slice(0, 4).indexOf("<") > -1) {
_local12 = "<";
_local15 = "<";
} else if (_local19.slice(0, 4).indexOf(">") > -1) {
_local12 = ">";
_local15 = ">";
} else if (_local19.indexOf(" ") > -1) {
_local12 = " ";
_local15 = "\u00A0";
} else if (_local19.slice(0, 5).indexOf("&") > -1) {
_local12 = "&";
_local15 = "&";
} else if (_local19.indexOf(""") > -1) {
_local12 = """;
_local15 = "\"";
} else if (_local19.indexOf("'") > -1) {
_local12 = "'";
_local15 = "'";
}
_local9 = ascii[(_local13 | _local14) | _local22][_local15];
if (_local9 == undefined) {
var _local18 = "";
if (_local13) {
_local18 = _local18 + "<B>";
}
if (_local14) {
_local18 = _local18 + "<I>";
}
_local18 = _local18 + _local5[_local3];
if (_local13) {
_local18 = _local18 + "</B>";
}
if (_local14) {
_local18 = _local18 + "</I>";
}
mcClip.txtAux.htmlText = _local18;
_local9 = mcClip.txtAux._width - ((4 + fmt.leftMargin) + fmt.rightMargin);
}
if (((_local8 + _local9) + 5) >= mcClip.txtOut._width) {
if (_local6 > 0) {
_local20 = -((_local3 - _local6) - 1);
if (_local20) {
_local4 = _local4.slice(0, _local20);
}
_local6 = _local3 - _local6;
} else {
_local6 = 1;
}
aRender[numLines].str = _local4;
mcClip.txtAux.htmlText = "a";
aRender[numLines].y = mcClip.txtAux._height - fmt.leading;
numLines = numLines + 1;
if (numLines == maxLines) {
aRender.shift();
numLines = numLines - 1;
}
_local3 = _local3 - _local6;
_local4 = "";
_local16 = "";
_local8 = 0;
_local6 = 0;
aRender.push({str:"", y:0, smileys:[]});
} else {
if (_local15 == "<") {
_local15 = "<";
}
_local4 = _local4 + _local12;
_local16 = _local16 + _local12;
_local8 = _local8 + _local9;
if (_local12.length > 0) {
_local3 = _local3 + (length(_local12) - 1);
}
}
continue;
}
if (_local5[_local3] == "<") {
var _local23 = "";
var _local10 = "";
while ((_local5[_local3] != ">") && (_local3 < _local24)) {
_local23 = _local23 + _local5[_local3];
_local10 = _local10 + _local5[_local3].toUpperCase();
_local3++;
}
if (_local5[_local3] == ">") {
_local10 = _local10 + _local5[_local3];
_local23 = _local23 + _local5[_local3];
}
switch (_local10.slice(0, 3)) {
case "<B " :
case "<B>" :
_local13 = 4;
_local4 = _local4 + _local10;
break;
case "</B" :
_local13 = 0;
_local4 = _local4 + _local10;
break;
case "<I " :
case "<I>" :
_local14 = 2;
_local4 = _local4 + _local10;
break;
case "</I" :
_local14 = 0;
_local4 = _local4 + _local10;
break;
case "<U " :
case "<U>" :
_local22 = 1;
_local4 = _local4 + _local10;
break;
case "</U" :
_local22 = 0;
_local4 = _local4 + _local10;
break;
case "<BR" :
aRender[numLines].str = _local4;
mcClip.txtAux.htmlText = "a";
aRender[numLines].y = mcClip.txtAux._height - fmt.leading;
numLines = numLines + 1;
if (numLines == maxLines) {
aRender.shift();
numLines = numLines - 1;
}
_local4 = "";
_local16 = "";
_local8 = 0;
_local6 = 0;
aRender.push({str:"", y:0, smileys:[]});
break;
case "<A " :
case "</A" :
case "<FO" :
case "</F" :
_local4 = _local4 + _local10;
}
} else {
var _local21 = _local3;
var _local11 = aSmileys.length;
var _local17 = -1;
var _local2 = 0;
while (_local2 < _local11) {
if (_local5[_local3] < aSmileys[_local2].code.charAt(0)) {
break;
}
if (_local5[_local3] == aSmileys[_local2].code.charAt(0)) {
while (_local2 < _local11) {
if (_local5.slice(_local3, _local3 + length(aSmileys[_local2].code)).join("") == aSmileys[_local2].code) {
if (((_local8 + aSmileys[_local2].w) + 5) >= mcClip.txtOut._width) {
_local17 = _local2;
aRender[numLines].str = _local4;
mcClip.txtAux.htmlText = "a";
aRender[numLines].y = mcClip.txtAux._height - fmt.leading;
numLines = numLines + 1;
if (numLines == maxLines) {
aRender.shift();
numLines = numLines - 1;
}
_local3--;
_local4 = "";
_local16 = "";
_local8 = 0;
_local6 = 0;
aRender.push({str:"", y:0, smileys:[]});
_local2 = _local11 + 1;
} else {
if (mEmbedFonts) {
_local4 = _local4 + ((("<FONT FACE=\"richTextFont\" SIZE=\"2\">" + aSmileys[_local2].code) + aSmileys[_local2].html) + "</FONT>");
} else {
_local4 = _local4 + (("<FONT SIZE=\"1\">" + aSmileys[_local2].html) + "</FONT>");
}
_local17 = _local2;
_local3 = (_local21 + length(aSmileys[_local2].code)) - 1;
_local8 = _local8 + aSmileys[_local2].w;
var _local7 = new Object();
_local7.target = aSmileys[_local2].target;
_local7.w = aSmileys[_local2].w;
_local7.h = aSmileys[_local2].h;
_local7.x = ((_local8 + 2) + _local25) - (_local7.w / 2);
aRender[numLines].smileys.push(_local7);
_local6 = _local3;
_local2 = _local11 + 1;
}
break;
}
_local2++;
}
}
_local2++;
}
if (_local17 < 0) {
_local3 = _local21;
_local9 = ascii[(_local13 | _local14) | _local22][_local5[_local3]];
if (_local9 == undefined) {
var _local18 = "";
if (_local13) {
_local18 = _local18 + "<B>";
}
if (_local14) {
_local18 = _local18 + "<I>";
}
_local18 = _local18 + _local5[_local3];
if (_local13) {
_local18 = _local18 + "</B>";
}
if (_local14) {
_local18 = _local18 + "</I>";
}
mcClip.txtAux.htmlText = _local18;
_local9 = mcClip.txtAux._width - ((4 + fmt.leftMargin) + fmt.rightMargin);
}
if (((_local8 + _local9) + 5) >= mcClip.txtOut._width) {
if (_local6 > 0) {
_local20 = -((_local3 - _local6) - 1);
if (_local20) {
_local4 = _local4.slice(0, _local20);
}
_local6 = _local3 - _local6;
} else {
_local6 = 1;
}
aRender[numLines].str = _local4;
mcClip.txtAux.htmlText = "a";
aRender[numLines].y = mcClip.txtAux._height - fmt.leading;
numLines = numLines + 1;
if (numLines == maxLines) {
aRender.shift();
numLines = numLines - 1;
}
_local3 = _local3 - _local6;
_local4 = "";
_local16 = "";
_local8 = 0;
_local6 = 0;
aRender.push({str:"", y:0, smileys:[]});
} else {
_local4 = _local4 + _local5[_local3];
_local16 = _local16 + _local5[_local3];
_local8 = _local8 + _local9;
}
}
}
} else {
_local9 = ascii[(_local13 | _local14) | _local22][_local5[_local3]];
if (_local9 == undefined) {
var _local18 = "";
if (_local13) {
_local18 = _local18 + "<B>";
}
if (_local14) {
_local18 = _local18 + "<I>";
}
_local18 = _local18 + _local5[_local3];
if (_local13) {
_local18 = _local18 + "</B>";
}
if (_local14) {
_local18 = _local18 + "</I>";
}
mcClip.txtAux.htmlText = _local18;
_local9 = mcClip.txtAux._width - ((4 + fmt.leftMargin) + fmt.rightMargin);
}
if (((_local8 + _local9) + 5) >= mcClip.txtOut._width) {
if (_local6 > 0) {
_local20 = -((_local3 - _local6) - 1);
if (_local20) {
_local4 = _local4.slice(0, _local20);
}
_local6 = _local3 - _local6;
} else {
_local6 = 1;
}
aRender[numLines].str = _local4;
mcClip.txtAux.htmlText = "a";
aRender[numLines].y = mcClip.txtAux._height - fmt.leading;
numLines = numLines + 1;
if (numLines == maxLines) {
aRender.shift();
numLines = numLines - 1;
}
_local3 = _local3 - _local6;
_local4 = "";
_local16 = "";
_local8 = 0;
_local6 = 0;
aRender.push({str:"", y:0, smileys:[]});
} else {
if (_local5[_local3] == " ") {
_local6 = _local3;
}
_local4 = _local4 + _local5[_local3];
_local16 = _local16 + _local5[_local3];
_local8 = _local8 + _local9;
}
}
}
aRender[numLines].str = _local4;
mcClip.txtAux.htmlText = "a";
aRender[numLines].y = mcClip.txtAux._height - fmt.leading;
numLines = numLines + 1;
if (numLines == maxLines) {
aRender.shift();
numLines = numLines - 1;
}
}
function parseSingleline(str) {
var _local4 = str.split("");
var _local3 = 0;
var _local21 = _local4.length;
var _local22 = fmt.leftMargin + fmt.rightMargin;
var _local13 = 0;
var _local25 = "";
var _local24 = "";
var _local6 = "";
var _local20 = "";
var _local11 = 0;
var _local28;
var _local17 = 0;
var _local18 = 0;
var _local16 = 0;
aRender = new Array();
aRender.push({str:"", y:0, smileys:[]});
for ( ; _local3 < _local21 ; _local3++) {
if (aType[ord(_local4[_local3])]) {
if (_local4[_local3] == "&") {
var _local12 = _local4.slice(_local3, _local3 + 6).join("");
var _local8 = "";
var _local9 = "&";
if (_local12.slice(0, 4).indexOf("<") > -1) {
_local8 = "<";
_local9 = "<";
} else if (_local12.slice(0, 4).indexOf(">") > -1) {
_local8 = ">";
_local9 = ">";
} else if (_local12.indexOf(" ") > -1) {
_local8 = " ";
_local9 = "\u00A0";
} else if (_local12.slice(0, 5).indexOf("&") > -1) {
_local8 = "&";
_local9 = "&";
} else if (_local12.indexOf(""") > -1) {
_local8 = """;
_local9 = "\"";
} else if (_local12.indexOf("'") > -1) {
_local8 = "'";
_local9 = "'";
}
_local13 = ascii[(_local17 | _local18) | _local16][_local9];
if (_local9 == "<") {
_local9 = "<";
}
_local6 = _local6 + _local8;
_local20 = _local20 + _local8;
_local11 = _local11 + _local13;
if (_local8.length > 0) {
_local3 = _local3 + (length(_local8) - 1);
}
continue;
}
if (_local4[_local3] == "<") {
var _local19 = "";
var _local7 = "";
while ((_local4[_local3] != ">") && (_local3 < _local21)) {
_local19 = _local19 + _local4[_local3];
_local7 = _local7 + _local4[_local3].toUpperCase();
_local3++;
}
if (_local4[_local3] == ">") {
_local7 = _local7 + _local4[_local3];
_local19 = _local19 + _local4[_local3];
}
switch (_local7.slice(0, 3)) {
case "<B " :
case "<B>" :
_local17 = 4;
_local6 = _local6 + _local7;
break;
case "</B" :
_local17 = 0;
_local6 = _local6 + _local7;
break;
case "<I " :
case "<I>" :
_local18 = 2;
_local6 = _local6 + _local7;
break;
case "</I" :
_local18 = 0;
_local6 = _local6 + _local7;
break;
case "<U " :
case "<U>" :
_local16 = 1;
_local6 = _local6 + _local7;
break;
case "</U" :
_local16 = 0;
_local6 = _local6 + _local7;
break;
case "<A " :
case "</A" :
case "<FO" :
case "</F" :
_local6 = _local6 + _local7;
}
} else {
var _local15 = _local3;
var _local10 = aSmileys.length;
var _local14 = -1;
var _local2 = 0;
while (_local2 < _local10) {
if (_local4[_local3] < aSmileys[_local2].code.charAt(0)) {
break;
}
if (_local4[_local3] == aSmileys[_local2].code.charAt(0)) {
while (_local2 < _local10) {
if (_local4.slice(_local3, _local3 + length(aSmileys[_local2].code)).join("") == aSmileys[_local2].code) {
if (mEmbedFonts) {
_local6 = _local6 + ((("<FONT FACE=\"richTextFont\" SIZE=\"2\">" + aSmileys[_local2].code) + aSmileys[_local2].html) + "</FONT>");
} else {
_local6 = _local6 + (("<FONT SIZE=\"1\">" + aSmileys[_local2].html) + "</FONT>");
}
_local14 = _local2;
_local3 = (_local15 + length(aSmileys[_local2].code)) - 1;
_local11 = _local11 + aSmileys[_local2].w;
var _local5 = new Object();
_local5.target = aSmileys[_local2].target;
_local5.w = aSmileys[_local2].w;
_local5.h = aSmileys[_local2].h;
_local5.x = ((_local11 + 2) + _local22) - (_local5.w / 2);
aRender[0].smileys.push(_local5);
_local2 = _local10 + 1;
break;
}
_local2++;
}
}
_local2++;
}
if (_local14 < 0) {
_local3 = _local15;
_local13 = ascii[(_local17 | _local18) | _local16][_local4[_local3]];
_local6 = _local6 + _local4[_local3];
_local20 = _local20 + _local4[_local3];
_local11 = _local11 + _local13;
}
}
} else {
_local13 = ascii[(_local17 | _local18) | _local16][_local4[_local3]];
_local6 = _local6 + _local4[_local3];
_local20 = _local20 + _local4[_local3];
_local11 = _local11 + _local13;
}
}
aRender[0].str = _local6;
mcClip.txtAux.htmlText = "a";
aRender[0].y = mcClip.txtAux._height - fmt.leading;
}
function ltrim(str) {
var _local1 = 0;
while ((str.charCodeAt(_local1) == 32) && (_local1 < str.length)) {
_local1++;
}
return(str.slice(_local1));
}
function rtrim(str) {
var _local1 = str.length - 1;
while ((str.charCodeAt(_local1) == 32) && (_local1 > 0)) {
_local1--;
}
return(str.slice(0, _local1 + 1));
}
function debugHTML(str) {
var _local6 = str.split("");
var _local9 = _local6.length;
var _local4 = "";
var _local2 = 0;
while (_local2 < _local9) {
if (_local6[_local2] == "&") {
var _local8 = _local6.slice(_local2, _local2 + 6).join("");
var _local5 = "";
if (_local8.slice(0, 4).indexOf("<") > -1) {
_local5 = "<";
} else if (_local8.slice(0, 4).indexOf(">") > -1) {
_local5 = ">";
} else if (_local8.indexOf(" ") > -1) {
_local5 = " ";
} else if (_local8.slice(0, 5).indexOf("&") > -1) {
_local5 = "&";
} else if (_local8.indexOf(""") > -1) {
_local5 = """;
} else if (_local8.indexOf("'") > -1) {
_local5 = "'";
} else {
_local5 = "&";
}
if (_local5 != "&") {
_local4 = _local4 + _local5;
_local2 = _local2 + (length(_local5) - 1);
} else {
_local4 = _local4 + "&";
}
} else if (_local6[_local2] == "<") {
var _local1 = "";
while ((_local6[_local2] != ">") && (_local2 < _local9)) {
_local1 = _local1 + _local6[_local2];
_local2++;
}
if (_local2 < _local9) {
_local1 = _local1 + ">";
}
switch (_local1.slice(0, 3).toUpperCase()) {
case "<TE" :
case "</T" :
case "<P " :
case "<P>" :
case "<IM" :
case "<LI" :
case "</L" :
case "<SP" :
break;
case "<FO" :
var _local7 = _local1.toUpperCase().indexOf("COLOR");
var _local3;
if (_local7 > -1) {
_local3 = _local1.indexOf("\"#", _local7);
}
if (_local3 > -1) {
_local3 = _local1.indexOf("\"", _local3 + 1);
}
if (_local3 > -1) {
_local4 = _local4 + (("<FONT " + _local1.slice(_local7, _local3)) + "\">");
} else {
if (_local7 > -1) {
_local3 = _local1.indexOf("'#", _local7);
}
if (_local3 > -1) {
_local3 = _local1.indexOf("'", _local3 + 1);
}
if (_local3 > -1) {
_local4 = _local4 + (("<FONT " + _local1.slice(_local7, _local3)) + "'>");
} else {
_local4 = _local4 + "<FONT>";
}
}
break;
case "</P" :
_local4 = _local4 + "<BR>";
break;
case "<A " :
_local7 = _local1.toUpperCase().indexOf("HREF");
if (_local7 > -1) {
_local3 = _local1.indexOf("\"", _local7);
}
if (_local3 > -1) {
_local3 = _local1.indexOf("\"", _local3 + 1);
}
if (_local3 > -1) {
_local4 = _local4 + (("<A " + _local1.slice(_local7, _local3)) + "\" target=\"_blank\">");
} else {
if (_local7 > -1) {
_local3 = _local1.indexOf("'", _local7);
}
if (_local3 > -1) {
_local3 = _local1.indexOf("'", _local3 + 1);
}
if (_local3 > -1) {
_local4 = _local4 + (("<A " + _local1.slice(_local7, _local3)) + "' target=\"_blank\">");
} else {
_local4 = _local4 + "<A>";
}
}
break;
case "<A>" :
case "</A" :
case "<B " :
case "<B>" :
case "</B" :
case "<I " :
case "<I>" :
case "</I" :
case "<U " :
case "<U>" :
case "</U" :
case "</F" :
case "<BR" :
_local4 = _local4 + _local1;
break;
default :
_local4 = _local4 + "<";
_local2 = _local2 - (length(_local1) - 1);
}
} else {
_local4 = _local4 + _local6[_local2];
}
_local2++;
}
if (_local4.slice(-4) == "<BR>") {
return(_local4.slice(0, -4));
}
return(_local4);
}
function viewRect() {
mcSurface.clear();
mcSurface.lineStyle(0, 16711680, 100);
mcSurface.moveTo(1, 1);
mcSurface.lineTo(__width - 1, 1);
mcSurface.lineTo(__width - 1, __height - 1);
mcSurface.lineTo(1, __height - 1);
mcSurface.lineTo(1, 1);
}
var ascii = new Array(8);
var asciiNormal = new Array();
var asciiBold = new Array();
var asciiItalic = new Array();
var asciiBoldItalic = new Array();
function addListener(param) {
mcClip.txtOut.addListener(param);
}
function removeListener(param) {
mcClip.txtOut.removeListener(param);
}
}
Symbol 830 MovieClip [__Packages.czComboBox] Frame 0
class czComboBox extends MovieClip
{
var mLabels, mcSurface, mData, mUseHandCursor, useHandCursor, mEnabled, onRelease, mEditable, mSkin, _focusrect, __width, _width, __height, _height, _xscale, _yscale, mcBoundingBox, lst, createEmptyMovieClip, getNextHighestDepth, list;
function czComboBox () {
super();
init();
createChildren();
}
function set labels(pLabels) {
mLabels = pLabels;
mcSurface.mcClip.mcLista.mcSecurity.mcList.labels = pLabels;
//return(labels);
}
function get labels() {
return(mcSurface.mcClip.mcLista.mcSecurity.mcList.labels);
}
function set data(pData) {
mData = pData;
mcSurface.mcClip.mcLista.mcSecurity.mcList.data = pData;
//return(data);
}
function get data() {
return(mData);
}
function set dataProvider(pDataProvider) {
mcSurface.mcClip.mcLista.mcSecurity.mcList.dataProvider = pDataProvider;
//return(dataProvider);
}
function get dataProvider() {
return(mcSurface.mcClip.mcLista.mcSecurity.mcList.dataProvider);
}
function set onRenderRow(pOnRenderRow) {
mcSurface.mcClip.mcLista.mcSecurity.mcList.onRenderRow = pOnRenderRow;
//return(onRenderRow);
}
function get onRenderRow() {
return(mcSurface.mcClip.mcLista.mcSecurity.mcList.onRenderRow);
}
function set selectedItem(pSelectedItem) {
mcSurface.mcClip.mcLista.mcSecurity.mcList.selectedItem = pSelectedItem;
//return(selectedItem);
}
function get selectedItem() {
return(mcSurface.mcClip.mcLista.mcSecurity.mcList.selectedItem);
}
function set selectedIndex(pSelectedIndex) {
function wait() {
This.mcSurface.mcClip.mcLista.mcSecurity.mcList.selectedIndex = pSelectedIndex;
This.onRenderHead(This.mcSurface.mcClip, (This.mcSurface.mcClip.txtLabel.text = This.mcSurface.mcClip.mcLista.mcSecurity.mcList.dataProvider[pSelectedIndex]));
clearInterval(ID);
}
var ID = setInterval(wait, 0);
var This = this;
//return(selectedIndex);
}
function get selectedIndex() {
return(mcSurface.mcClip.mcLista.mcSecurity.mcList.selectedIndex);
}
function set text(pText) {
mcSurface.mcClip.txtLabel.text = pText;
//return(text);
}
function get text() {
return(mcSurface.mcClip.txtLabel.text);
}
function set htmlText(pText) {
mcSurface.mcClip.txtLabel.htmlText = pText;
//return(htmlText);
}
function get htmlText() {
return(mcSurface.mcClip.txtLabel.htmlText);
}
function set _useHandCursor(pUseHandCursor) {
mUseHandCursor = pUseHandCursor;
useHandCursor = mUseHandCursor;
//return(_useHandCursor);
}
function get _useHandCursor() {
return(mUseHandCursor);
}
function set enabled(pEnabled) {
mEnabled = pEnabled;
mcSurface.mcClip.btnDown.enabled = mEnabled;
if (!mEnabled) {
onRelease = function () {
};
} else {
delete onRelease;
}
//return(enabled);
}
function get enabled() {
return(mEnabled);
}
function set editable(pEditable) {
mEditable = pEditable;
mcSurface.mcClip.txtLabel.type = (pEditable ? "input" : "dynamic");
//return(editable);
}
function get editable() {
return(mEditable);
}
function set skin(pSkin) {
mSkin = pSkin;
createChildren();
//return(skin);
}
function get skin() {
return(mSkin);
}
function init() {
_focusrect = false;
__width = _width;
__height = _height;
_xscale = 100;
_yscale = 100;
mx.events.EventDispatcher.initialize(this);
mcBoundingBox._visible = false;
mcBoundingBox._width = 0;
mcBoundingBox._height = 0;
if (mcSurface == undefined) {
mcSurface.removeMovieClip();
}
if (lst == undefined) {
lst = new Object();
Key.addListener(lst);
}
createEmptyMovieClip("mcSurface", getNextHighestDepth());
}
function createChildren() {
function wait() {
if (This.mcSurface.mcClip.mcLista.mcSecurity.mcList.mVScrollPolicy != undefined) {
This.mcSurface.mcClip.mcLista.mcSecurity.mcList.labels = This.mLabels;
var _local1 = 0;
while (_local1 < This.mLabels.length) {
This.mcSurface.mcClip.mcLista.mcSecurity.mcList.mDataProvider[_local1] = {label:This.mLabels[_local1], data:This.mData[_local1]};
This.mcSurface.mcClip.mcLista.mcSecurity.mcList.mItems[_local1] = {selected:false, status:"Up", frame:"fFalseUp"};
_local1++;
}
clearInterval(ID);
}
}
if (int(skin.length) > 0) {
mcSurface.attachMovie(mSkin, "mcClip", getNextHighestDepth());
} else {
mcSurface.attachMovie("mcSkinDefaultComboBox", "mcClip", getNextHighestDepth());
rect(mcSurface.mcClip, 0, 0, __width, __height, 16777215);
rect(mcSurface.mcClip, 0, 0, __width - 1, __height - 1, 11315353);
rect(mcSurface.mcClip, 1, 1, __width - 1, __height - 1, 15855586);
rect(mcSurface.mcClip, 1, 1, __width - 2, __height - 2, 7434084);
rect(mcSurface.mcClip, 2, 2, __width - 2, __height - 2, 16777215);
mcSurface.mcClip.createTextField("txtLabel", mcSurface.mcClip.getNextHighestDepth(), 5, 0, __width, 18);
mcSurface.mcClip.txtLabel._yscale = (__height * 100) / 20;
mcSurface.mcClip.createEmptyMovieClip("btnDown", mcSurface.mcClip.getNextHighestDepth());
mcSurface.mcClip.btnDown._x = __width - 18;
mcSurface.mcClip.btnDown._y = 2;
createButtonUp(mcSurface.mcClip.btnDown, 0, 0, 16, __height - 4);
createVerticalArrow(mcSurface.mcClip.btnDown, 4, int(mcSurface.mcClip.btnDown._height / 2) - 2, 7, 0, -1);
mcSurface.mcClip.mcLista._x = 0;
mcSurface.mcClip.mcLista._y = __height;
mcSurface.mcClip.mcLista.mcMask._width = __width;
var _local9 = new Object();
_local9.data = [];
_local9.enabled = true;
_local9.hScrollPolicy = "off";
_local9.labels = [];
_local9.multipleSelection = false;
_local9.skin = "";
_local9.vScrollPolicy = "auto";
mcSurface.mcClip.mcLista.mcSecurity.attachMovie("zListBox", "mcList", mcSurface.mcClip.mcLista.mcSecurity.getNextHighestDepth(), _local9);
mcSurface.mcClip.mcLista.mcSecurity.mcList._x = 0;
mcSurface.mcClip.mcLista.mcSecurity.mcList._y = 0;
mcSurface.mcClip.mcLista.mcSecurity.mcList.setSize(__width, 115);
var This = this;
mcSurface.mcClip.btnDown.onPress = (mcSurface.mcClip.btnDown.onDragOver = function () {
This.createButtonDown(This.mcSurface.mcClip.btnDown, 0, 0, 16, This.__height - 4);
This.createVerticalArrow(This.mcSurface.mcClip.btnDown, 5, int(This.mcSurface.mcClip.btnDown._height / 2) - 1, 7, 0, -1);
});
mcSurface.mcClip.btnDown.onRelease = function () {
This.createButtonUp(This.mcSurface.mcClip.btnDown, 0, 0, 16, This.__height - 4);
This.createVerticalArrow(This.mcSurface.mcClip.btnDown, 4, int(This.mcSurface.mcClip.btnDown._height / 2) - 2, 7, 0, -1);
This.mcSurface.mcClip.mcLista.play();
};
mcSurface.mcClip.btnDown.onReleaseOutside = (mcSurface.mcClip.btnDown.onDragOut = function () {
This.createButtonUp(This.mcSurface.mcClip.btnDown, 0, 0, 16, This.__height - 4);
This.createVerticalArrow(This.mcSurface.mcClip.btnDown, 4, int(This.mcSurface.mcClip.btnDown._height / 2) - 2, 7, 0, -1);
});
}
list = mcSurface.mcClip.mcLista.mcSecurity.mcList;
var This = this;
mcSurface.mcClip.mcLista.mcSecurity.mcList.onChange = function () {
This.onRenderHead(This.mcSurface.mcClip, this.selectedItem);
this._parent._parent.play();
This.dispatchEvent({type:"change"});
This.onChange();
};
var This = this;
var ID = setInterval(wait, 0);
mcSurface.mcClip.txtLabel.type = (mEditable ? "input" : "dynamic");
lst.onKeyUp = function () {
if (String(Selection.getFocus()) == String(This.mcSurface.mcClip.txtLabel)) {
if (Key.getCode() == 13) {
This.onIntro();
This.dispatchEvent({type:"intro"});
}
}
};
mcSurface.mcClip.onMouseDown = function () {
if (this.mcLista._currentframe > 1) {
if (!this.hitTest(_root._xmouse, _root._ymouse, true)) {
this.mcLista.play();
}
}
};
}
function setSize(nW, nH) {
_xscale = 100;
_yscale = 100;
__width = nW;
__height = nH;
mcSurface.mcClip.clear();
createChildren();
}
function onRenderHead(item, datos) {
if (item.txtLabel.html) {
item.txtLabel.text = datos.label;
} else {
item.txtLabel.htmlText = datos.label;
}
}
function addItem() {
mcSurface.mcClip.mcLista.mcSecurity.mcList.addItem(arguments[0], arguments[1]);
}
function addItemAt() {
mcSurface.mcClip.mcLista.mcSecurity.mcList.addItemAt(arguments[0], arguments[1], arguments[2]);
}
function replaceItemAt() {
mcSurface.mcClip.mcLista.mcSecurity.mcList.replaceItemAt(arguments[0], arguments[1], arguments[2]);
}
function removeAll() {
mcSurface.mcClip.mcLista.mcSecurity.mcList.removeAll();
}
function removeItemAt() {
mcSurface.mcClip.mcLista.mcSecurity.mcList.removeItemAt(arguments[0]);
}
function getItemAt() {
return(mcSurface.mcClip.mcLista.mcSecurity.mcList.getItemAt(arguments[0]));
}
function sortItems() {
mcSurface.mcClip.mcLista.mcSecurity.mcList.sortItems(arguments[0]);
}
function sortItemsBy() {
mcSurface.mcClip.mcLista.mcSecurity.mcList.sortItemsBy(arguments[0], arguments[1]);
}
function rect(obj, x, y, x2, y2, color) {
obj.beginFill(color, 100);
obj.moveTo(x, y);
obj.lineTo(x2, y);
obj.lineTo(x2, y2);
obj.lineTo(x, y2);
obj.endFill();
}
function createButtonUp(obj, x, y, width, height) {
var _local3 = x + width;
var _local2 = y + height;
obj.clear();
rect(obj, x, y, _local3, _local2, 4210752);
rect(obj, x, y, _local3 - 1, _local2 - 1, 13947080);
rect(obj, x + 1, y + 1, _local3 - 1, _local2 - 1, 8421504);
rect(obj, x + 1, y + 1, _local3 - 2, _local2 - 2, 16777215);
rect(obj, x + 2, y + 2, _local3 - 2, _local2 - 2, 13947080);
}
function createButtonDown(obj, x, y, width, height) {
var _local3 = x + width;
var _local2 = y + height;
obj.clear();
rect(obj, x, y, _local3, _local2, 13947080);
rect(obj, x, y, _local3 - 1, _local2 - 1, 4210752);
rect(obj, x + 1, y + 1, _local3 - 1, _local2 - 1, 16777215);
rect(obj, x + 1, y + 1, _local3 - 2, _local2 - 2, 8421504);
rect(obj, x + 2, y + 2, _local3 - 2, _local2 - 2, 13947080);
}
function createVerticalArrow(obj, x, y, width, color, dir) {
var _local4;
var _local2 = 0;
while (_local2 < Math.ceil(width / 2)) {
_local4 = (x + width) - _local2;
rect(obj, x + _local2, y - (_local2 * dir), _local4, y - ((_local2 * dir) + dir), color);
_local2++;
}
}
function createHorizontalArrow(obj, x, y, height, color, dir) {
var _local4;
var _local2 = 0;
while (_local2 < Math.ceil(height / 2)) {
_local4 = (y + height) - _local2;
rect(obj, x - (_local2 * dir), y + _local2, x - ((_local2 * dir) + dir), _local4, color);
_local2++;
}
}
static var symbolName = "czComboBox";
static var symbolOwner = Object(czComboBox);
static var version = "1.0.0.0";
var className = "czComboBox";
}
Symbol 1094 MovieClip [__Packages.czNStepper] Frame 0
class czNStepper extends MovieClip
{
var mEnabled, mSkin, mData, mMax, mMin, mPosition, mIncrease, _focusrect, __width, _width, __height, _height, _xscale, _yscale, mcBoundingBox, mcSurface, createEmptyMovieClip, getNextHighestDepth, mcClip, mWidth, mHeight;
function czNStepper () {
super();
init();
createChildren();
}
function set enabled(pEnabled) {
mEnabled = pEnabled;
createChildren();
//return(enabled);
}
function get enabled() {
return(mEnabled);
}
function set skin(pSkin) {
mSkin = pSkin;
createChildren();
//return(skin);
}
function get skin() {
return(mSkin);
}
function set data(pData) {
mData = pData;
//return(data);
}
function get data() {
return(mData);
}
function set max(pMax) {
mMax = pMax;
//return(max);
}
function get max() {
return(((mMax != undefined) ? (mMax) : 10));
}
function set min(pMin) {
mMin = pMin;
//return(min);
}
function get min() {
return(((mMin != undefined) ? (mMin) : 0));
}
function set position(pPosition) {
mPosition = pPosition;
//return(position);
}
function get position() {
return(((mPosition != undefined) ? (mPosition) : 0));
}
function set increase(pIncrease) {
mIncrease = pIncrease;
//return(increase);
}
function get increase() {
return(((mIncrease != undefined) ? (mIncrease) : 1));
}
function init() {
_focusrect = false;
__width = _width;
__height = _height;
_xscale = 100;
_yscale = 100;
mx.events.EventDispatcher.initialize(this);
mcBoundingBox._visible = false;
mcBoundingBox._width = 0;
mcBoundingBox._height = 0;
if (mcSurface == undefined) {
mcSurface.removeMovieClip();
}
createEmptyMovieClip("mcSurface", getNextHighestDepth());
}
function createChildren() {
mcClip = mcSurface.attachMovie(mSkin, "mcClip", getNextHighestDepth());
var This = this;
mcClip.btnDown.onLoad = function () {
This.mcClip.txtLabel.text = This.position;
if (!This.enabled) {
This.mcClip.btnUp.enabled = false;
This.mcClip.btnDown.enabled = false;
This.mcClip.txtLabel.selectable = false;
This.mcClip.txtLabel.type = "dynamic";
return(undefined);
}
This.mcClip.txtLabel.onChanged = function () {
var _local1 = Number(This.mcClip.txtLabel.text);
if (!isNaN(_local1)) {
if (_local1 <= This.min) {
This.position = _local1;
} else if (_local1 <= This.max) {
This.position = _local1;
This.check();
} else {
This.position = _local1.toString().slice(0, -1);
}
This.mcClip.txtLabel.text = This.position;
}
};
This.mcClip.txtLabel.onKillFocus = function () {
var _local1 = Number(This.mcClip.txtLabel.text);
if (_local1 < This.min) {
This.position = This.min;
}
if (_local1 > This.max) {
This.position = This.max;
}
This.check();
This.mcClip.txtLabel.text = This.position;
};
This.mcClip.btnUp.onRelease = function () {
this._onRelease();
This.position = This.position + This.increase;
This.check();
This.mcClip.txtLabel.text = This.position;
};
This.mcClip.btnDown.onRelease = function () {
this._onRelease();
This.position = This.position - This.increase;
This.check();
This.mcClip.txtLabel.text = This.position;
};
This.check();
};
}
function setSize(nW, nH) {
_xscale = 100;
_yscale = 100;
__width = nW;
__height = nH;
mWidth = nW;
mHeight = nH;
createChildren();
}
function check() {
if (position > max) {
position = (max);
}
if (position < min) {
position = (min);
}
mcClip.btnUp.enabled = ((position >= max) ? false : true);
mcClip.btnDown.enabled = ((position <= min) ? false : true);
}
}
Symbol 1624 MovieClip [__Packages.czTab] Frame 0
class czTab extends MovieClip
{
var mSkin, mData, mBgColor, mBgAlpha, mVisibleTabs, mBtnLeft, mBtnRight, _focusrect, __width, _width, __height, _height, _xscale, _yscale, mcBoundingBox, index, selected, tabs, mcSurface, createEmptyMovieClip, getNextHighestDepth, onAddTab, onDelTab, onChange, onButtonChange;
function czTab () {
super();
init();
createChildren();
}
function set skin(pSkin) {
mSkin = pSkin;
createChildren();
//return(skin);
}
function get skin() {
return(mSkin);
}
function set data(pData) {
mData = pData;
//return(data);
}
function get data() {
return(mData);
}
function set bgColor(pBgColor) {
mBgColor = pBgColor;
createChildren();
//return(bgColor);
}
function get bgColor() {
return(mBgColor);
}
function set bgAlpha(pBgAlpha) {
mBgAlpha = pBgAlpha;
createChildren();
//return(bgAlpha);
}
function get bgAlpha() {
return(mBgAlpha);
}
function set visibleTabs(pVisibleTabs) {
mVisibleTabs = pVisibleTabs;
render();
//return(visibleTabs);
}
function get visibleTabs() {
return(mVisibleTabs);
}
function get btnLeft() {
return(mBtnLeft);
}
function get btnRight() {
return(mBtnRight);
}
function init() {
var THIS = this;
_focusrect = false;
__width = _width;
__height = _height;
_xscale = 100;
_yscale = 100;
mcBoundingBox._visible = false;
mcBoundingBox._width = 0;
mcBoundingBox._height = 0;
index = 0;
selected = 0;
tabs = new Array();
tabs.push({num:tabs.length, label:"Sala", c1:15, c2:15, c3:0, c4:0, selected:true, blink:false});
var _local2 = new Object();
_local2.onMouseWheel = function (delta, target) {
var _local1 = String(THIS);
if (_local1 == String(target).slice(0, _local1.length)) {
if (delta < 0) {
if (THIS.mBtnRight) {
THIS.nextTab();
}
} else if (THIS.mBtnLeft) {
THIS.prevTab();
}
}
};
Mouse.removeListener(_local2);
Mouse.addListener(_local2);
if (mcSurface == undefined) {
mcSurface.removeMovieClip();
}
createEmptyMovieClip("mcSurface", getNextHighestDepth());
}
function createChildren() {
render();
}
function setSize(nW, nH) {
_xscale = 100;
_yscale = 100;
__width = ((nW == undefined) ? (__width) : (nW));
__height = ((nH == undefined) ? (__width) : (nH));
render();
}
function addTab(label, _selected, blink) {
_selected = ((_selected == undefined) ? false : (_selected));
blink = ((blink == undefined) ? false : (blink));
var _local2 = 0;
while (_local2 < tabs.length) {
tabs[_local2].c2 = 0;
_local2++;
}
tabs.push({num:tabs.length, label:label, c1:0, c2:15, c3:0, c4:0, selected:_selected, blink:blink});
if (_selected) {
if (tabs.length > mVisibleTabs) {
index = tabs.length - mVisibleTabs;
}
setTab(tabs.length - 1);
} else {
render();
}
onAddTab(tabs.length - 1, tabs[tabs.length - 1]);
}
function delTabSelected() {
if (selected > 0) {
onDelTab(selected, tabs[selected]);
tabs.splice(selected, 1);
tabs[tabs.length - 1].c2 = 15;
if ((((index + mVisibleTabs) - 1) == tabs.length) && (index > 0)) {
selected--;
index--;
}
if (selected == tabs.length) {
selected--;
}
if (selected < 0) {
selected = 0;
}
if (index < 0) {
index = 0;
}
setTab(selected);
}
}
function setTab(idx) {
tabs[idx].blink = false;
tabs[selected].selected = false;
selected = idx;
tabs[idx].selected = true;
render();
onChange(idx, tabs[idx]);
}
function prevTab() {
index--;
if (index < 0) {
index = 0;
} else if (selected > ((index + mVisibleTabs) - 1)) {
setTab(selected - 1);
} else {
render();
}
}
function nextTab() {
index++;
if (index > (tabs.length - mVisibleTabs)) {
index = tabs.length - mVisibleTabs;
} else if (selected < index) {
setTab(selected + 1);
} else {
render();
}
}
function buttonStatus() {
var _local3 = mBtnLeft;
var _local2 = mBtnRight;
mBtnLeft = ((index > 0) ? true : false);
mBtnRight = ((tabs.length > (index + mVisibleTabs)) ? true : false);
if ((_local3 != mBtnLeft) || (_local2 != mBtnRight)) {
onButtonChange(mBtnLeft, mBtnRight);
}
}
function render() {
var THIS = this;
var _local4 = 0;
buttonStatus();
for (var _local6 in mcSurface) {
mcSurface[_local6].removeMovieClip();
}
var _local5 = index + mVisibleTabs;
var _local3 = index;
while ((_local3 < _local5) && (_local3 < tabs.length)) {
_local4 = __width / mVisibleTabs;
var _local2 = mcSurface.attachMovie(mSkin, "mcBoton" + _local3, mcSurface.getNextHighestDepth());
_local2.mcContent.j = _local3;
_local2._x = ((_local3 - index) * _local4) + 1;
if (tabs[_local3].selected) {
roundRect(_local2.mcMask, 0, 0, _local4 - 2, __height, tabs[_local3].c1, tabs[_local3].c2, tabs[_local3].c3, tabs[_local3].c4, 16777215);
_local2.mcContent.gotoAndStop("fSelected");
} else {
roundRect(_local2.mcMask, 0, 0, _local4 - 2, __height - 2, tabs[_local3].c1, tabs[_local3].c2, tabs[_local3].c3, tabs[_local3].c4, 16777215);
if (tabs[_local3].blink) {
_local2.mcContent.gotoAndStop("fBlink");
_local2.mcContent.mcBlink.stop();
} else {
_local2.mcContent.gotoAndStop("fNormal");
_local2.mcContent.mcBgColor.onRollOver = (_local2.mcContent.mcBgColor.onDragOver = function () {
this.onEnterFrame = this._parent.next;
});
_local2.mcContent.mcBgColor.onRollOut = (_local2.mcContent.mcBgColor.onReleaseOutside = (_local2.mcContent.mcBgColor.onDragOut = function () {
this.onEnterFrame = this._parent.prev;
}));
}
_local2.mcContent.mcBgColor.onRelease = function () {
THIS.setTab(this._parent.j);
};
}
_local2.mcContent.mcBgColor._width = _local4;
_local2.mcContent.mcBgColor._height = __height;
_local2.mcContent.txt._width = _local4 - 10;
_local2.mcContent.txt._x = 5;
_local2.mcContent.txt._y = (__height - _local2.mcContent._height) / 2;
_local2.mcContent.txt.text = tabs[_local3].label;
_local2.mcContent.setMask(_local2.mcMask);
_local3++;
}
}
function roundRect(mc, x, y, w, h, r1, r2, r3, r4, c) {
if (r1 == undefined) {
r1 = 0;
}
if (r2 == undefined) {
r2 = 0;
}
if (r3 == undefined) {
r3 = 0;
}
if (r4 == undefined) {
r4 = 0;
}
mc.beginFill(c, 100);
mc.lineStyle(0, 0, 0);
mc.moveTo(x + r1, y);
mc.lineTo((x + w) - r2, y);
mc.curveTo(x + w, y, x + w, y + r2);
mc.lineTo(x + w, (y + h) - r3);
mc.curveTo(x + w, y + h, (x + w) - r3, y + h);
mc.lineTo(x + r4, y + h);
mc.curveTo(x, y + h, x, (y + h) - r4);
mc.lineTo(x, y + r1);
mc.curveTo(x, y, x + r1, y);
mc.endFill();
}
static var symbolName = "czTab";
static var symbolOwner = Object(czTab);
static var version = "1.0.0.0";
var className = "czTab";
}
Symbol 57 MovieClip Frame 1
stop();
Symbol 63 MovieClip Frame 53
gotoAndPlay (1);
Symbol 290 MovieClip [mcRangos] Frame 1
stop();
Symbol 290 MovieClip [mcRangos] Frame 100
stop();
Symbol 290 MovieClip [mcRangos] Frame 101
stop();
Symbol 295 MovieClip [mcInvitado] Frame 1
stop();
Symbol 379 MovieClip Frame 7
stop();
Symbol 380 MovieClip [_skinButtonCrearCancelar] Frame 1
stop();
Symbol 384 MovieClip [_skinButtonCrearOK] Frame 1
stop();
Symbol 388 MovieClip Frame 1
Symbol 397 MovieClip [_skinButton] Frame 1
stop();
Symbol 401 MovieClip [_skinButtonJuegosCancelar] Frame 1
stop();
Symbol 406 MovieClip [_skinButtonJuegosEntrar] Frame 1
stop();
Symbol 410 MovieClip [_skinButtonJuegosMirar] Frame 1
stop();
Symbol 419 MovieClip [_skinButtonOK] Frame 1
stop();
Symbol 429 MovieClip Frame 20
stop();
Symbol 432 MovieClip [skinCheck] Frame 1
stop();
Symbol 439 MovieClip [zButton] Frame 1
#initclip 28
Object.registerClass("zButton", czButton);
#endinitclip
Instance of Symbol 38 MovieClip [zListBox] "mcList" in Symbol 445 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
enabled = true;
hScrollPolicy = "off";
multipleSelection = false;
skin = "_skinListaPeq";
vScrollPolicy = "auto";
}
onClipEvent (load) {
function __f_change(eventObj) {
_parent._parent.txtLabel.text = this.selectedItem.label;
_parent._parent.mcSobre.gotoAndStop(this.selectedItem.icon);
_parent._parent.play();
}
this.addEventListener("change", __f_change);
}
Symbol 446 MovieClip Frame 1
stop();
_parent.btnDown.selected = false;
Symbol 446 MovieClip Frame 10
stop();
_parent.btnDown.selected = true;
Instance of Symbol 435 MovieClip in Symbol 447 MovieClip [_skinComboPeq] Frame 1
on (release) {
_parent.mcLista.play();
}
Instance of Symbol 439 MovieClip [zButton] "btnDown" in Symbol 447 MovieClip [_skinComboPeq] Frame 1
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "radioGroup";
label = "Aceptar";
selected = false;
skin = "_skinButtonCombo";
type = "Button";
}
on (release) {
_parent.mcLista.play();
}
Symbol 457 MovieClip Frame 10
stop();
Symbol 459 MovieClip Frame 1
stop();
Instance of Symbol 28 MovieClip [zVScrollBar] "mcVSB" in Symbol 461 MovieClip [_skinListaPeq] Frame 1
//component parameters
onClipEvent (construct) {
_targetInstanceName = "";
_useHandCursor = true;
data = "";
enabled = true;
maxPos = 0;
minPos = 0;
pageSize = 5;
scrollPosition = 0;
skin = "_skinVScrollBarOK";
}
Symbol 471 MovieClip [_skinButtonCombo] Frame 1
stop();
Symbol 485 MovieClip Frame 1
securityCombo.useHandCursor = false;
Instance of Symbol 38 MovieClip [zListBox] "mcList" in Symbol 485 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
enabled = true;
hScrollPolicy = "off";
multipleSelection = false;
skin = "_skinLista";
vScrollPolicy = "auto";
}
onClipEvent (load) {
function __f_change(eventObj) {
_parent._parent._parent.txtLabel.text = this.selectedItem.roomName;
_parent._parent.play();
}
this.addEventListener("change", __f_change);
}
Symbol 486 MovieClip Frame 1
stop();
_parent.btnDown.selected = false;
Symbol 486 MovieClip Frame 10
stop();
_parent.btnDown.selected = true;
Instance of Symbol 474 MovieClip in Symbol 487 MovieClip [_skinCombo] Frame 1
on (release) {
if (!this.selected) {
var THIS = this;
rg.onGetRooms = function (obj) {
_global.gRooms = new Object(obj.rooms);
THIS._parent._parent._parent.dataProvider = gRooms;
THIS._parent._parent._parent.selectedIndex = rg.idRoom;
THIS._parent.mcLista.play();
};
rg.getRooms();
} else {
_parent.mcLista.play();
}
}
Instance of Symbol 439 MovieClip [zButton] "btnDown" in Symbol 487 MovieClip [_skinCombo] Frame 1
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "radioGroup";
label = "Aceptar";
selected = false;
skin = "_skinButtonCombo";
type = "Check";
}
on (release) {
if (!this.selected) {
var THIS = this;
rg.onGetRooms = function (obj) {
_global.gRooms = new Object(obj.rooms);
THIS._parent._parent._parent.dataProvider = gRooms;
THIS._parent._parent._parent.selectedIndex = rg.idRoom;
THIS._parent.mcLista.play();
};
rg.getRooms();
} else {
_parent.mcLista.play();
}
}
Symbol 492 MovieClip Frame 1
stop();
Instance of Symbol 28 MovieClip [zVScrollBar] "mcVSB" in Symbol 494 MovieClip [_skinLista] Frame 1
//component parameters
onClipEvent (construct) {
_targetInstanceName = "";
_useHandCursor = true;
data = "";
enabled = true;
maxPos = 0;
minPos = 0;
pageSize = 5;
scrollPosition = 0;
skin = "_skinVScrollBarOKRoja";
}
Symbol 500 MovieClip Frame 1
stop();
Symbol 503 MovieClip Frame 1
stop();
Symbol 508 MovieClip [_skinButtonAñadirUsuariox3] Frame 1
stop();
Symbol 519 MovieClip Frame 1
stop();
Symbol 519 MovieClip Frame 26
stop();
Symbol 522 MovieClip Frame 15
stop();
Symbol 523 MovieClip [_skinButtonInvitarUsuariox3] Frame 1
stop();
Symbol 535 MovieClip [_skinButtonPerfilUsuariox2] Frame 1
stop();
Symbol 535 MovieClip [_skinButtonPerfilUsuariox2] Frame 11
stop();
Symbol 546 MovieClip [_skinButtonHablarx2] Frame 1
stop();
Symbol 556 MovieClip [_skinButtonBorrarUsuariox2] Frame 1
stop();
Symbol 569 MovieClip Frame 1
stop();
Symbol 569 MovieClip Frame 2
stop();
Instance of Symbol 297 MovieClip [mcOjo] "mcUserLooking" in Symbol 569 MovieClip Frame 2
on (rollOver, dragOver) {
var THIS = this;
var wait = function () {
if (_global.escena == "Conexion") {
THIS.mcToolTip = _root.mcConectado.attachMovie("mcToolTips", "mcToolTip", 100);
} else {
THIS.mcToolTip = _root.mcChatWindow.attachMovie("mcToolTips", "mcToolTip", 100);
}
THIS.mcToolTip.gotoAndStop(THIS._name.toString());
THIS.onMouseMove = function () {
if (_global.escena == "Conexion") {
THIS.mcToolTip._x = _root.mcConectado._xmouse - (THIS.mcToolTip._width / 2);
THIS.mcToolTip._y = _root.mcConectado._ymouse - THIS.mcToolTip._height;
} else {
THIS.mcToolTip._x = _root.mcChatWindow._xmouse - (THIS.mcToolTip._width / 2);
THIS.mcToolTip._y = _root.mcChatWindow._ymouse - THIS.mcToolTip._height;
}
updateAfterEvent();
};
THIS.onMouseMove();
};
tmo.clearInterval(this.idWait);
this.idWait = tmo.setTimeout(wait, 800);
}
on (releaseOutside, rollOut, dragOut) {
tmo.clearInterval(this.idWait);
delete this.onMouseMove;
this.mcToolTip.removeMovieClip();
}
on (release) {
this._onRelease();
tmo.clearInterval(this.idWait);
this.mcToolTip.removeMovieClip();
}
Symbol 569 MovieClip Frame 3
stop();
Instance of Symbol 560 MovieClip "mcUserPlaying" in Symbol 569 MovieClip Frame 3
on (rollOver, dragOver) {
var THIS = this;
var wait = function () {
if (_global.escena == "Conexion") {
THIS.mcToolTip = _root.mcConectado.attachMovie("mcToolTips", "mcToolTip", 100);
} else {
THIS.mcToolTip = _root.mcChatWindow.attachMovie("mcToolTips", "mcToolTip", 100);
}
THIS.mcToolTip.gotoAndStop(THIS._name.toString());
THIS.onMouseMove = function () {
if (_global.escena == "Conexion") {
THIS.mcToolTip._x = _root.mcConectado._xmouse - (THIS.mcToolTip._width / 2);
THIS.mcToolTip._y = _root.mcConectado._ymouse - THIS.mcToolTip._height;
} else {
THIS.mcToolTip._x = _root.mcChatWindow._xmouse - (THIS.mcToolTip._width / 2);
THIS.mcToolTip._y = _root.mcChatWindow._ymouse - THIS.mcToolTip._height;
}
updateAfterEvent();
};
THIS.onMouseMove();
};
tmo.clearInterval(this.idWait);
this.idWait = tmo.setTimeout(wait, 800);
}
on (releaseOutside, rollOut, dragOut) {
tmo.clearInterval(this.idWait);
delete this.onMouseMove;
this.mcToolTip.removeMovieClip();
}
on (release) {
this._onRelease();
tmo.clearInterval(this.idWait);
this.mcToolTip.removeMovieClip();
}
Symbol 569 MovieClip Frame 4
stop();
Instance of Symbol 562 MovieClip "mcUserOnline" in Symbol 569 MovieClip Frame 4
on (rollOver, dragOver) {
var THIS = this;
var wait = function () {
if (_global.escena == "Conexion") {
THIS.mcToolTip = _root.mcConectado.attachMovie("mcToolTips", "mcToolTip", 100);
} else {
THIS.mcToolTip = _root.mcChatWindow.attachMovie("mcToolTips", "mcToolTip", 100);
}
THIS.mcToolTip.gotoAndStop(THIS._name.toString());
THIS.onMouseMove = function () {
if (_global.escena == "Conexion") {
THIS.mcToolTip._x = _root.mcConectado._xmouse - (THIS.mcToolTip._width / 2);
THIS.mcToolTip._y = _root.mcConectado._ymouse - THIS.mcToolTip._height;
} else {
THIS.mcToolTip._x = _root.mcChatWindow._xmouse - (THIS.mcToolTip._width / 2);
THIS.mcToolTip._y = _root.mcChatWindow._ymouse - THIS.mcToolTip._height;
}
updateAfterEvent();
};
THIS.onMouseMove();
};
tmo.clearInterval(this.idWait);
this.idWait = tmo.setTimeout(wait, 800);
}
on (releaseOutside, rollOut, dragOut) {
tmo.clearInterval(this.idWait);
delete this.onMouseMove;
this.mcToolTip.removeMovieClip();
}
on (release) {
this._onRelease();
tmo.clearInterval(this.idWait);
this.mcToolTip.removeMovieClip();
}
Symbol 569 MovieClip Frame 5
stop();
Instance of Symbol 564 MovieClip "mcUserOffline" in Symbol 569 MovieClip Frame 5
on (rollOver, dragOver) {
var THIS = this;
var wait = function () {
if (_global.escena == "Conexion") {
THIS.mcToolTip = _root.mcConectado.attachMovie("mcToolTips", "mcToolTip", 100);
} else {
THIS.mcToolTip = _root.mcChatWindow.attachMovie("mcToolTips", "mcToolTip", 100);
}
THIS.mcToolTip.gotoAndStop(THIS._name.toString());
THIS.onMouseMove = function () {
if (_global.escena == "Conexion") {
THIS.mcToolTip._x = _root.mcConectado._xmouse - (THIS.mcToolTip._width / 2);
THIS.mcToolTip._y = _root.mcConectado._ymouse - THIS.mcToolTip._height;
} else {
THIS.mcToolTip._x = _root.mcChatWindow._xmouse - (THIS.mcToolTip._width / 2);
THIS.mcToolTip._y = _root.mcChatWindow._ymouse - THIS.mcToolTip._height;
}
updateAfterEvent();
};
THIS.onMouseMove();
};
tmo.clearInterval(this.idWait);
this.idWait = tmo.setTimeout(wait, 800);
}
on (releaseOutside, rollOut, dragOut) {
tmo.clearInterval(this.idWait);
delete this.onMouseMove;
this.mcToolTip.removeMovieClip();
}
on (release) {
this._onRelease();
tmo.clearInterval(this.idWait);
this.mcToolTip.removeMovieClip();
}
Symbol 569 MovieClip Frame 6
stop();
Instance of Symbol 566 MovieClip "mcUserIgnore" in Symbol 569 MovieClip Frame 6
on (rollOver, dragOver) {
var THIS = this;
var wait = function () {
if (_global.escena == "Conexion") {
THIS.mcToolTip = _root.mcConectado.attachMovie("mcToolTips", "mcToolTip", 100);
} else {
THIS.mcToolTip = _root.mcChatWindow.attachMovie("mcToolTips", "mcToolTip", 100);
}
THIS.mcToolTip.gotoAndStop(THIS._name.toString());
THIS.onMouseMove = function () {
if (_global.escena == "Conexion") {
THIS.mcToolTip._x = _root.mcConectado._xmouse - (THIS.mcToolTip._width / 2);
THIS.mcToolTip._y = _root.mcConectado._ymouse - THIS.mcToolTip._height;
} else {
THIS.mcToolTip._x = _root.mcChatWindow._xmouse - (THIS.mcToolTip._width / 2);
THIS.mcToolTip._y = _root.mcChatWindow._ymouse - THIS.mcToolTip._height;
}
updateAfterEvent();
};
THIS.onMouseMove();
};
tmo.clearInterval(this.idWait);
this.idWait = tmo.setTimeout(wait, 800);
}
on (releaseOutside, rollOut, dragOut) {
tmo.clearInterval(this.idWait);
delete this.onMouseMove;
this.mcToolTip.removeMovieClip();
}
on (release) {
this._onRelease();
tmo.clearInterval(this.idWait);
this.mcToolTip.removeMovieClip();
}
Symbol 569 MovieClip Frame 7
stop();
Instance of Symbol 568 MovieClip "mcUserModerator" in Symbol 569 MovieClip Frame 7
on (rollOver, dragOver) {
var THIS = this;
var wait = function () {
if (_global.escena == "Conexion") {
THIS.mcToolTip = _root.mcConectado.attachMovie("mcToolTips", "mcToolTip", 100);
} else {
THIS.mcToolTip = _root.mcChatWindow.attachMovie("mcToolTips", "mcToolTip", 100);
}
THIS.mcToolTip.gotoAndStop(THIS._name.toString());
THIS.onMouseMove = function () {
if (_global.escena == "Conexion") {
THIS.mcToolTip._x = _root.mcConectado._xmouse - (THIS.mcToolTip._width / 2);
THIS.mcToolTip._y = _root.mcConectado._ymouse - THIS.mcToolTip._height;
} else {
THIS.mcToolTip._x = _root.mcChatWindow._xmouse - (THIS.mcToolTip._width / 2);
THIS.mcToolTip._y = _root.mcChatWindow._ymouse - THIS.mcToolTip._height;
}
updateAfterEvent();
};
THIS.onMouseMove();
};
tmo.clearInterval(this.idWait);
this.idWait = tmo.setTimeout(wait, 800);
}
on (releaseOutside, rollOut, dragOut) {
tmo.clearInterval(this.idWait);
delete this.onMouseMove;
this.mcToolTip.removeMovieClip();
}
on (release) {
this._onRelease();
tmo.clearInterval(this.idWait);
this.mcToolTip.removeMovieClip();
}
Symbol 573 MovieClip Frame 1
stop();
Instance of Symbol 28 MovieClip [zVScrollBar] "mcVSB" in Symbol 575 MovieClip [_skinListaPlayers] Frame 1
//component parameters
onClipEvent (construct) {
_targetInstanceName = "";
_useHandCursor = true;
data = "";
enabled = true;
maxPos = 0;
minPos = 0;
pageSize = 5;
scrollPosition = 0;
skin = "_skinVScrollBarOKColor6";
}
Symbol 581 MovieClip Frame 1
stop();
Symbol 625 MovieClip Frame 1
stop();
Instance of Symbol 439 MovieClip [zButton] in Symbol 638 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "radioGroup";
label = "Aceptar";
selected = false;
skin = "_skinButtonJuegosMirar";
type = "Button";
}
on (release) {
if (_root.mcConectado.mcListaPartidas.lstMatchs.selectedItem.mPasswd) {
_level.attachMovie("mcMessages", "mcMessages", _level.getNextHighestDepth());
_level.mcMessages.mcWindow.gotoAndStop("fPasswdMatch");
_level.mcMessages.mcWindow.idMatch = _root.mcConectado.mcListaPartidas.lstMatchs.selectedItem.idMatch;
} else {
rg.lookMatch(_root.mcConectado.mcListaPartidas.lstMatchs.selectedItem.idMatch, "");
}
}
Symbol 639 MovieClip Frame 15
stop();
Instance of Symbol 439 MovieClip [zButton] in Symbol 640 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "radioGroup";
label = "Aceptar";
selected = false;
skin = "_skinButtonJuegosEntrar";
type = "Button";
}
on (release) {
if (_root.mcConectado.mcListaPartidas.lstMatchs.selectedItem.mPasswd) {
_level.attachMovie("mcMessages", "mcMessages", _level.getNextHighestDepth());
_level.mcMessages.mcWindow.gotoAndStop("fPasswdMatch");
_level.mcMessages.mcWindow.idMatch = _root.mcConectado.mcListaPartidas.lstMatchs.selectedItem.idMatch;
} else {
rg.joinMatch(_root.mcConectado.mcListaPartidas.lstMatchs.selectedItem.idMatch, "");
}
}
Symbol 641 MovieClip Frame 15
stop();
Symbol 642 MovieClip Frame 1
stop();
Symbol 642 MovieClip Frame 2
stop();
Symbol 643 MovieClip Frame 1
stop();
Instance of Symbol 292 MovieClip [mcPasswd] "mcPasswd" in Symbol 643 MovieClip Frame 1
on (rollOver, dragOver) {
var THIS = this;
var wait = function () {
THIS.mcToolTip = _root.mcConectado.attachMovie("mcToolTips", "mcToolTip", 100);
THIS.mcToolTip.gotoAndStop(THIS._name.toString());
THIS.onMouseMove = function () {
THIS.mcToolTip._x = _root.mcConectado._xmouse - (THIS.mcToolTip._width / 2);
THIS.mcToolTip._y = _root.mcConectado._ymouse - THIS.mcToolTip._height;
updateAfterEvent();
};
THIS.onMouseMove();
};
tmo.clearInterval(this.idWait);
this.idWait = tmo.setTimeout(wait, 800);
}
on (releaseOutside, rollOut, dragOut) {
tmo.clearInterval(this.idWait);
delete this.onMouseMove;
this.mcToolTip.removeMovieClip();
}
on (release) {
tmo.clearInterval(this.idWait);
delete this.onMouseMove;
this.mcToolTip.removeMovieClip();
}
Instance of Symbol 295 MovieClip [mcInvitado] "mcGuests" in Symbol 643 MovieClip Frame 1
on (rollOver, dragOver) {
var THIS = this;
var wait = function () {
THIS.mcToolTip = _root.mcConectado.attachMovie("mcToolTips", "mcToolTip", 100);
THIS.mcToolTip.gotoAndStop(THIS._name.toString());
THIS.onMouseMove = function () {
THIS.mcToolTip._x = _root.mcConectado._xmouse - (THIS.mcToolTip._width / 2);
THIS.mcToolTip._y = _root.mcConectado._ymouse - THIS.mcToolTip._height;
updateAfterEvent();
};
THIS.onMouseMove();
};
tmo.clearInterval(this.idWait);
this.idWait = tmo.setTimeout(wait, 800);
}
on (releaseOutside, rollOut, dragOut) {
tmo.clearInterval(this.idWait);
delete this.onMouseMove;
this.mcToolTip.removeMovieClip();
}
on (release) {
tmo.clearInterval(this.idWait);
delete this.onMouseMove;
this.mcToolTip.removeMovieClip();
}
Instance of Symbol 297 MovieClip [mcOjo] "mcAudience" in Symbol 643 MovieClip Frame 1
on (rollOver, dragOver) {
var THIS = this;
var wait = function () {
THIS.mcToolTip = _root.mcConectado.attachMovie("mcToolTips", "mcToolTip", 100);
THIS.mcToolTip.gotoAndStop(THIS._name.toString());
THIS.onMouseMove = function () {
THIS.mcToolTip._x = _root.mcConectado._xmouse - (THIS.mcToolTip._width / 2);
THIS.mcToolTip._y = _root.mcConectado._ymouse - THIS.mcToolTip._height;
updateAfterEvent();
};
THIS.onMouseMove();
};
tmo.clearInterval(this.idWait);
this.idWait = tmo.setTimeout(wait, 800);
}
on (releaseOutside, rollOut, dragOut) {
tmo.clearInterval(this.idWait);
delete this.onMouseMove;
this.mcToolTip.removeMovieClip();
}
on (release) {
tmo.clearInterval(this.idWait);
delete this.onMouseMove;
this.mcToolTip.removeMovieClip();
}
Instance of Symbol 628 MovieClip "mcLoaded" in Symbol 643 MovieClip Frame 1
on (rollOver, dragOver) {
var THIS = this;
var wait = function () {
THIS.mcToolTip = _root.mcConectado.attachMovie("mcToolTips", "mcToolTip", 100);
THIS.mcToolTip.gotoAndStop(THIS._name.toString());
THIS.onMouseMove = function () {
THIS.mcToolTip._x = _root.mcConectado._xmouse - (THIS.mcToolTip._width / 2);
THIS.mcToolTip._y = _root.mcConectado._ymouse - THIS.mcToolTip._height;
updateAfterEvent();
};
THIS.onMouseMove();
};
tmo.clearInterval(this.idWait);
this.idWait = tmo.setTimeout(wait, 800);
}
on (releaseOutside, rollOut, dragOut) {
tmo.clearInterval(this.idWait);
delete this.onMouseMove;
this.mcToolTip.removeMovieClip();
}
on (release) {
tmo.clearInterval(this.idWait);
delete this.onMouseMove;
this.mcToolTip.removeMovieClip();
}
Instance of Symbol 630 MovieClip "mcInitBet" in Symbol 643 MovieClip Frame 1
on (rollOver, dragOver) {
var THIS = this;
var wait = function () {
THIS.mcToolTip = _root.mcConectado.attachMovie("mcToolTips", "mcToolTip", 100);
THIS.mcToolTip.gotoAndStop(THIS._name.toString());
THIS.onMouseMove = function () {
THIS.mcToolTip._x = _root.mcConectado._xmouse - (THIS.mcToolTip._width / 2);
THIS.mcToolTip._y = _root.mcConectado._ymouse - THIS.mcToolTip._height;
updateAfterEvent();
};
THIS.onMouseMove();
};
tmo.clearInterval(this.idWait);
this.idWait = tmo.setTimeout(wait, 800);
}
on (releaseOutside, rollOut, dragOut) {
tmo.clearInterval(this.idWait);
delete this.onMouseMove;
this.mcToolTip.removeMovieClip();
}
on (release) {
tmo.clearInterval(this.idWait);
delete this.onMouseMove;
this.mcToolTip.removeMovieClip();
}
Instance of Symbol 632 MovieClip "mcSpeak" in Symbol 643 MovieClip Frame 1
on (rollOver, dragOver) {
var THIS = this;
var wait = function () {
THIS.mcToolTip = _root.mcConectado.attachMovie("mcToolTips", "mcToolTip", 100);
THIS.mcToolTip.gotoAndStop(THIS._name.toString());
THIS.onMouseMove = function () {
THIS.mcToolTip._x = _root.mcConectado._xmouse - (THIS.mcToolTip._width / 2);
THIS.mcToolTip._y = _root.mcConectado._ymouse - THIS.mcToolTip._height;
updateAfterEvent();
};
THIS.onMouseMove();
};
tmo.clearInterval(this.idWait);
this.idWait = tmo.setTimeout(wait, 800);
}
on (releaseOutside, rollOut, dragOut) {
tmo.clearInterval(this.idWait);
delete this.onMouseMove;
this.mcToolTip.removeMovieClip();
}
on (release) {
tmo.clearInterval(this.idWait);
delete this.onMouseMove;
this.mcToolTip.removeMovieClip();
}
Instance of Symbol 439 MovieClip [zButton] "mcInfo" in Symbol 643 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "radioGroup";
label = "Aceptar";
selected = false;
skin = "_skinButtonCrearInfo";
type = "Button";
}
on (rollOver, dragOver) {
var THIS = this;
var wait = function () {
THIS.mcToolTip = _root.mcConectado.attachMovie("mcToolTips", "mcToolTip", 100);
THIS.mcToolTip.gotoAndStop(THIS._name.toString());
THIS.onMouseMove = function () {
THIS.mcToolTip._x = _root.mcConectado._xmouse - (THIS.mcToolTip._width / 2);
THIS.mcToolTip._y = _root.mcConectado._ymouse - THIS.mcToolTip._height;
updateAfterEvent();
};
THIS.onMouseMove();
};
tmo.clearInterval(this.idWait);
this.idWait = tmo.setTimeout(wait, 800);
}
on (releaseOutside, rollOut, dragOut) {
tmo.clearInterval(this.idWait);
delete this.onMouseMove;
this.mcToolTip.removeMovieClip();
}
on (release) {
tmo.clearInterval(this.idWait);
delete this.onMouseMove;
this.mcToolTip.removeMovieClip();
_parent.mcBG.onRelease();
_level.mcMessages.mcWindow.Escape();
_level.attachMovie("mcMessages", "mcMessages", _level.getNextHighestDepth());
_level.mcMessages.mcWindow.gotoAndStop("fMatchInfo");
}
Symbol 643 MovieClip Frame 5
switch (mcBgColor._currentframe) {
case 1 :
animBoton._visible = true;
animBoton.gotoAndStop("fJugar");
break;
case 2 :
animBoton._visible = true;
animBoton.gotoAndStop("fMirar");
break;
case 3 :
animBoton._visible = false;
}
Symbol 648 MovieClip [zHScrollBar] Frame 1
#initclip 29
Object.registerClass("zHScrollBar", czHScrollBar);
#endinitclip
Instance of Symbol 648 MovieClip [zHScrollBar] "mcHSB" in Symbol 649 MovieClip [zSkinListPartidas] Frame 1
//component parameters
onClipEvent (construct) {
_targetInstanceName = "";
_useHandCursor = true;
data = "";
enabled = true;
maxPos = 0;
minPos = 0;
pageSize = 15;
scrollPosition = 0;
skin = "";
}
Instance of Symbol 28 MovieClip [zVScrollBar] "mcVSB" in Symbol 649 MovieClip [zSkinListPartidas] Frame 1
//component parameters
onClipEvent (construct) {
_targetInstanceName = "";
_useHandCursor = true;
data = "";
enabled = true;
maxPos = 0;
minPos = 0;
pageSize = 10;
scrollPosition = 0;
skin = "_skinVScrollBarOKRoja";
}
Symbol 652 MovieClip Frame 1
Symbol 653 MovieClip Frame 1
stop();
Symbol 657 MovieClip Frame 1
stop();
Symbol 657 MovieClip Frame 2
stop();
if (cont == undefined) {
var cont = 0;
}
var wait = function (This) {
if ((cont++) >= 3) {
cont = 0;
} else {
This.nextFrame();
}
};
tmo.setTimeout(wait, 300, this);
Symbol 657 MovieClip Frame 3
stop();
var wait = function (This) {
This.prevFrame();
};
tmo.setTimeout(wait, 300, this);
Symbol 659 MovieClip Frame 1
function next() {
if (mcBgColor._currentframe < mcBgColor._totalframes) {
mcBgColor.nextFrame();
} else {
delete mcBgColor.onEnterFrame;
}
}
function prev() {
if (mcBgColor._currentframe > 1) {
mcBgColor.prevFrame();
} else {
delete mcBgColor.onEnterFrame;
}
}
stop();
Symbol 680 MovieClip [_skinArrowDown] Frame 1
stop();
Symbol 685 MovieClip [_skinArrowUp] Frame 1
stop();
Instance of Symbol 439 MovieClip [zButton] "mcArrowUp" in Symbol 699 MovieClip [_skinVScrollBarOK] Frame 1
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "radioGroup";
label = "Aceptar";
selected = false;
skin = "_skinArrowUp";
type = "Button";
}
Instance of Symbol 439 MovieClip [zButton] "mcArrowDown" in Symbol 699 MovieClip [_skinVScrollBarOK] Frame 1
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "radioGroup";
label = "Aceptar";
selected = false;
skin = "_skinArrowDown";
type = "Button";
}
Symbol 729 MovieClip [skinArrowDown_Rojo] Frame 1
stop();
Symbol 733 MovieClip [skinArrowUp_Rojo] Frame 1
stop();
Instance of Symbol 439 MovieClip [zButton] "mcArrowUp" in Symbol 734 MovieClip [_skinVScrollBarOKRoja] Frame 1
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "radioGroup";
label = "Aceptar";
selected = false;
skin = "skinArrowUp_Rojo";
type = "Button";
}
Instance of Symbol 439 MovieClip [zButton] "mcArrowDown" in Symbol 734 MovieClip [_skinVScrollBarOKRoja] Frame 1
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "radioGroup";
label = "Aceptar";
selected = false;
skin = "skinArrowDown_Rojo";
type = "Button";
}
Symbol 739 MovieClip [mcSkinChat] Frame 1
var str = (("a:link {color: #" + _global.systemColor) + "; text-decoration: none; } a:hover{color: #0000FF; text-decoration: underline;}");
var CSS = (new TextField.StyleSheet());
CSS.parseCSS(str);
txtAux.styleSheet = CSS;
txtOut.styleSheet = CSS;
Symbol 749 MovieClip [mcSkinDefault] Frame 1
var str = "a:link {color: #FF0000; text-decoration: none; } a:hover{color: #0000FF; text-decoration: underline;}";
var CSS = (new TextField.StyleSheet());
CSS.parseCSS(str);
txtAux.styleSheet = CSS;
txtOut.styleSheet = CSS;
Symbol 750 MovieClip [zRichTextBox] Frame 1
#initclip 30
Object.registerClass("zRichTextBox", czRichTextBox);
#endinitclip
stop();
Symbol 752 MovieClip [mcChatSalaGame] Frame 1
stop();
txt.addSmiley(":(", "smSad", 18, 16);
txt.addSmiley(":)", "smSmiley", 18, 16);
txt.addSmiley(":D", "smBiggrin", 18, 16);
txt.addSmiley("xD", "smSuperHappy", 18, 16);
txt.addSmiley(":P", "smTounge", 18, 16);
txt.addSmiley(":S", "smConfused", 18, 16);
txt.addSmiley(":$", "smBlush", 18, 16);
txt.addSmiley(":O", "smOh", 18, 16);
txt.addSmiley("o_O", "smSuperOh", 18, 16);
txt.addSmiley(":@", "smMad", 18, 16);
txt.addSmiley("(6)", "smEvil", 18, 16);
txt.addSmiley(";)", "smWink", 18, 16);
txt.addSmiley(":_(", "smCry", 18, 16);
txt.addSmiley("(H)", "smHot", 18, 16);
txt.addSmiley("(Y)", "smAccept", 18, 16);
txt.addSmiley("(N)", "smCancel", 18, 16);
txt.addSmiley("(Q)", "smQuestion", 18, 16);
txt.addSmiley(":!", "smExclaim", 18, 16);
txt.addSmiley("(I)", "smIdea", 18, 16);
txt.addSmiley("OK", "smUp", 18, 16);
txt.addSmiley("KO", "smDown", 18, 16);
txt.addSmiley("(L)", "smHeart", 18, 16);
txt.addSmiley("(*)", "smNinja", 18, 16);
txt.addSmiley("(T)", "smPhone", 18, 16);
txt.addSmiley(":T", "smTwisted", 18, 16);
txt.addSmiley(":Z", "smSleep", 18, 16);
txt.addSmiley("$", "smCredits", 18, 16);
txt.addSmiley("opqa", "smOPQA", 64, 16);
txt.addSmiley("OPQA", "smOPQA", 64, 16);
txt.addSmiley("(~@\u00AC)", "smPlaca", 18, 16);
Instance of Symbol 750 MovieClip [zRichTextBox] "txt" in Symbol 752 MovieClip [mcChatSalaGame] Frame 1
//component parameters
onClipEvent (construct) {
data = "";
embedFonts = false;
maxLines = 25;
multiline = true;
skin = "mcSkinChat";
}
Instance of Symbol 28 MovieClip [zVScrollBar] "sb" in Symbol 752 MovieClip [mcChatSalaGame] Frame 1
//component parameters
onClipEvent (construct) {
_targetInstanceName = "txt";
_useHandCursor = true;
data = "";
enabled = true;
maxPos = 0;
minPos = 0;
pageSize = 5;
scrollPosition = 0;
skin = "_skinVScrollBarOKRoja";
}
Symbol 754 MovieClip Frame 1
this.useHandCursor = false;
onRelease = function () {
};
Symbol 791 MovieClip Frame 1
stop();
Symbol 791 MovieClip Frame 2
stop();
Symbol 791 MovieClip Frame 3
stop();
Symbol 833 MovieClip Frame 1
stop();
mcSecurity.setMask(mcMask);
Symbol 833 MovieClip Frame 10
stop();
Symbol 835 MovieClip [zComboBox] Frame 1
#initclip 31
Object.registerClass("zComboBox", czComboBox);
#endinitclip
stop();
Symbol 842 MovieClip Frame 69
stop();
Symbol 865 MovieClip Frame 1
stop();
Symbol 884 MovieClip Frame 1
stop();
Symbol 884 MovieClip Frame 2
stop();
Symbol 884 MovieClip Frame 3
stop();
Symbol 884 MovieClip Frame 4
stop();
Symbol 894 MovieClip Frame 1
stop();
game.easeOut = function (t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
return((((c / 2) * t) * t) + b);
}
t--;
return((((-c) / 2) * ((t * (t - 2)) - 1)) + b);
};
game.moveCounter = function (objMoveCounter) {
if (objMoveCounter.timex < objMoveCounter.durationx) {
objMoveCounter.piece._x = _global.game.easeOut(objMoveCounter.timex++, objMoveCounter.beginx, objMoveCounter.changex, objMoveCounter.durationx);
}
if (objMoveCounter.timey < objMoveCounter.durationy) {
objMoveCounter.piece._y = _global.game.easeOut(objMoveCounter.timey++, objMoveCounter.beginy, objMoveCounter.changey, objMoveCounter.durationy);
}
if ((objMoveCounter.timex >= objMoveCounter.durationx) && (objMoveCounter.timey >= objMoveCounter.durationy)) {
_global.intervalMngr.clearOneInterval("moveCounter");
objMoveCounter.piece.removeMovieClip();
_global.scene.mcTablero["h" + objMoveCounter.pos].gotoAndStop("ficha" + _global.game.turn);
_global.game.extra.numMovs++;
if (!_global.game.checkTablero(objMoveCounter.pos)) {
_global.game.nextTurn();
_global.game.qEvent.shift();
if (_global.game.qEvent.length > 0) {
_global.game.playMoveCounter(_global.game.qEvent[0]);
}
} else {
_global.game.endMatch();
}
}
updateAfterEvent();
};
game.playMoveCounter = function (obj) {
if (!_global.game.isHisTurn(obj.turn)) {
return(undefined);
}
if (obj.startMove != undefined) {
game.timeCountDownOn();
_global.game.qEvent.shift();
if (_global.game.qEvent.length > 0) {
_global.game.playMoveCounter(_global.game.qEvent[0]);
}
return(undefined);
}
if (obj.timeOut != undefined) {
_global.game.getCurrentPlayer().result = -1;
_global.game.endMatch();
return(undefined);
}
game.timeCountDownOff();
_global.scene["mcInterface" + _global.game.turn].txtTime.text = obj.time;
_global.sounds.playSound("slide");
_global.game.extra.board[obj.p] = _global.game.turn;
if (obj.antPos < 10) {
_global.scene.mcTablero["h" + obj.antPos].gotoAndStop("vacio");
_global.game.extra.board[obj.antPos] = -1;
} else {
var _local4 = _global.scene["mcInterface" + _global.game.turn].mcFichas;
_local4["f" + (obj.antPos - 10)]._visible = false;
_global.game.extra.initBoard[((_global.game.turn * 3) + obj.antPos) - 10] = false;
}
var _local2 = new Object();
_local2.pos = obj.p;
_local2.piece = _global.scene.mcTablero.attachMovie("mcFicha" + _global.game.turn, "mcFicha", 10);
if (obj.antPos < 10) {
_local2.piece._x = _global.scene.mcTablero["h" + obj.antPos]._x;
_local2.piece._y = _global.scene.mcTablero["h" + obj.antPos]._y;
} else {
if (_global.game.imSpectator() && (_global.game.turn == 0)) {
_local2.piece._x = -198.2 + (56.5 * (obj.antPos - 10));
} else {
_local2.piece._x = 285.1 + (56.5 * (obj.antPos - 10));
}
_local2.piece._y = -30;
}
_local2.piece._width = 52.5;
_local2.piece._height = 62.7;
_local2.piece._alpha = 50;
_local2.square = _global.scene.mcTablero["h" + obj.p];
_local2.durationx = 45;
_local2.durationy = 45;
_local2.timex = 0;
_local2.timey = 0;
_local2.beginx = _local2.piece._x;
_local2.beginy = _local2.piece._y;
_local2.changex = _local2.square._x - _local2.piece._x;
_local2.changey = _local2.square._y - _local2.piece._y;
_global.intervalMngr.setInterval("moveCounter", setInterval(_global.game.moveCounter, 10, _local2));
};
Symbol 894 MovieClip Frame 2
stop();
Symbol 894 MovieClip Frame 3
stop();
Symbol 894 MovieClip Frame 4
stop();
Symbol 894 MovieClip Frame 5
stop();
Symbol 910 MovieClip Frame 1
stop();
if (_global.rg._lookMatch) {
gotoAndStop (2);
} else if ((_global.rg.credits <= 0) && (_global.game.initBet > 0)) {
gotoAndStop (8);
} else if ((_global.rg.credits < _global.game.initBet) && (_global.game.initBet > 0)) {
gotoAndStop (9);
} else {
gotoAndStop (3);
}
Symbol 910 MovieClip Frame 2
stop();
Instance of Symbol 439 MovieClip [zButton] in Symbol 910 MovieClip Frame 2
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "radioGroup";
label = "Aceptar";
selected = false;
skin = "_skinButtonYES";
type = "Button";
}
on (release) {
this._onRelease();
_global.parentScene.mcGameMessages.mcWindow.gotoAndStop("fWaitInitMatch");
_global.parentScene.mcGameMessages._visible = true;
_parent._parent.Escape();
}
Instance of Symbol 439 MovieClip [zButton] in Symbol 910 MovieClip Frame 2
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "radioGroup";
label = "Aceptar";
selected = false;
skin = "_skinButtonNO";
type = "Button";
}
on (release) {
this._onRelease();
_global.rg.leaveMatch(true);
_parent._parent.Escape();
}
Symbol 910 MovieClip Frame 3
stop();
Instance of Symbol 439 MovieClip [zButton] in Symbol 910 MovieClip Frame 3
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "radioGroup";
label = "Aceptar";
selected = false;
skin = "_skinButtonYES";
type = "Button";
}
on (release) {
this._onRelease();
_parent._parent.EnviarRespuesta(true);
}
Instance of Symbol 439 MovieClip [zButton] in Symbol 910 MovieClip Frame 3
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "radioGroup";
label = "Aceptar";
selected = false;
skin = "_skinButtonNO";
type = "Button";
}
on (release) {
this._onRelease();
_parent._parent.EnviarRespuesta(false);
}
Symbol 910 MovieClip Frame 4
stop();
Instance of Symbol 439 MovieClip [zButton] in Symbol 910 MovieClip Frame 4
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "radioGroup";
label = "Aceptar";
selected = false;
skin = "_skinButtonAceptar";
type = "Button";
}
on (release) {
this._onRelease();
delete _global.game;
_parent._parent.Escape();
}
Symbol 910 MovieClip Frame 5
stop();
Instance of Symbol 439 MovieClip [zButton] in Symbol 910 MovieClip Frame 5
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "radioGroup";
label = "Aceptar";
selected = false;
skin = "_skinButtonAceptar";
type = "Button";
}
on (release) {
this._onRelease();
delete _global.game;
_parent._parent.Escape();
}
Symbol 910 MovieClip Frame 6
stop();
Symbol 910 MovieClip Frame 7
stop();
Symbol 910 MovieClip Frame 8
stop();
_global.rg.leaveMatch(false);
Symbol 910 MovieClip Frame 9
stop();
_global.rg.leaveMatch(false);
Symbol 910 MovieClip Frame 10
stop();
if (_global.game.imPlayer()) {
_global.rg.leaveMatch(false);
}
Symbol 910 MovieClip Frame 11
stop();
if (_global.game.imPlayer()) {
_global.rg.leaveMatch(false);
}
Instance of Symbol 439 MovieClip [zButton] in Symbol 910 MovieClip Frame 11
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "radioGroup";
label = "Aceptar";
selected = false;
skin = "_skinButtonAceptar";
type = "Button";
}
on (release) {
this._onRelease();
delete _global.game;
_parent._parent.Escape();
}
Symbol 915 MovieClip Frame 1
stop();
var sw = false;
var i = 0;
while (i < _global.game.numPlayers) {
var idx = _global.gUsers.find("idUser", _global.game.player[i].idUser);
if (_global.gUsers[idx].credits < _global.game.initBet) {
sw = true;
}
i++;
}
if (sw) {
if (_global.rg._lookMatch) {
gotoAndStop (4);
} else {
gotoAndStop (5);
}
} else if (_global.rg._lookMatch) {
gotoAndStop (2);
} else {
gotoAndStop (3);
}
Symbol 915 MovieClip Frame 2
stop();
Symbol 915 MovieClip Frame 3
stop();
Symbol 915 MovieClip Frame 4
stop();
Symbol 915 MovieClip Frame 5
stop();
Symbol 979 MovieClip Frame 1
function Escape() {
rg.close();
_parent.removeMovieClip();
}
function Enter() {
rg.checkPasswdGame(idGame, txtPasswd.text);
rg.onCheckPasswdGame = function (obj) {
if (!obj.error) {
_global.rg.joinGame(idGame, txtPasswd.text);
_parent.removeMovieClip();
} else {
_root.mcMessages.mcWindow.gotoAndStop("fPasswdErrorGame");
}
};
}
stop();
Selection.setFocus(txtPasswd);
keyLst.onKeyUp = function () {
switch (Key.getCode()) {
case 27 :
Escape();
return;
case 13 :
Enter();
}
};
Instance of Symbol 388 MovieClip in Symbol 979 MovieClip Frame 1
onClipEvent (load) {
this.useHandCursor = false;
this.iniX = this._x;
this.iniY = this._y;
}
on (press) {
startDrag (_parent);
}
on (release, releaseOutside) {
stopDrag();
var security = 25;
if ((((_parent._x + this._width) - security) + this.iniX) < 0) {
_parent._x = -((this._width - security) + this.iniX);
}
if ((((_parent._y + this._height) - security) + this.iniY) < 0) {
_parent._y = -((this._height - security) + this.iniY);
}
if (((_parent._x + security) + this.iniX) > 900) {
_parent._x = (900 - security) - this.iniX;
}
if (((_parent._y + security) + this.iniY) > 500) {
_parent._y = (500 - security) - this.iniY;
}
}
Instance of Symbol 439 MovieClip [zButton] in Symbol 979 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "radioGroup";
label = "Aceptar";
selected = false;
skin = "_skinChatTabClose";
type = "Button";
}
on (release) {
this._onRelease();
this.enabled = false;
_parent.Escape();
}
Instance of Symbol 439 MovieClip [zButton] "btnEnviar" in Symbol 979 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "radioGroup";
label = "Aceptar";
selected = false;
skin = "_skinButtonOK";
type = "Button";
}
on (release) {
this._onRelease();
this.enabled = false;
_parent.Enter();
}
Symbol 979 MovieClip Frame 2
keyLst.onKeyUp = function () {
switch (Key.getCode()) {
case 27 :
Escape();
return;
case 13 :
gotoAndStop ("fPasswdGame");
}
};
Instance of Symbol 439 MovieClip [zButton] "btnEnviar" in Symbol 979 MovieClip Frame 2
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "radioGroup";
label = "Aceptar";
selected = false;
skin = "_skinButtonOK";
type = "Button";
}
on (release) {
this._onRelease();
this.enabled = false;
_parent.gotoAndStop("fPasswdGame");
}
Symbol 979 MovieClip Frame 3
function Escape() {
_root.mcConectado.mcListaUsuariosSala.cmbSalas.selectedIndex = rg.idRoom;
keyLst.onKeyUp = _global.rutaChat.Enter;
Selection.setFocus(_global.rutaChat.txtIn);
_parent.removeMovieClip();
}
function Enter() {
rg.checkPasswdRoom(_root.mcConectado.mcListaUsuariosSala.cmbSalas.selectedItem.idRoom, txtPasswd.text);
rg.onCheckPasswdRoom = function (obj) {
if (!obj.error) {
keyLst.onKeyUp = _root.mcConectado.mcChat.Enter;
rg.leaveRoom();
rg.joinRoom(_root.mcConectado.mcListaUsuariosSala.cmbSalas.selectedItem.idRoom, txtPasswd.text);
_parent.removeMovieClip();
} else {
_root.mcMessages.mcWindow.gotoAndStop("fPasswdErrorRoom");
}
};
}
stop();
Selection.setFocus(txtPasswd);
keyLst.onKeyUp = function () {
switch (Key.getCode()) {
case 27 :
Escape();
return;
case 13 :
Enter();
}
};
Instance of Symbol 439 MovieClip [zButton] in Symbol 979 MovieClip Frame 3
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "radioGroup";
label = "Aceptar";
selected = false;
skin = "_skinChatTabClose";
type = "Button";
}
on (release) {
this._onRelease();
this.enabled = false;
_parent.Escape();
}
Instance of Symbol 439 MovieClip [zButton] "btnEnviar" in Symbol 979 MovieClip Frame 3
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "radioGroup";
label = "Aceptar";
selected = false;
skin = "_skinButtonOK";
type = "Button";
}
on (release) {
this._onRelease();
this.enabled = false;
_parent.Enter();
}
Symbol 979 MovieClip Frame 4
keyLst.onKeyUp = function () {
switch (Key.getCode()) {
case 27 :
Escape();
return;
case 13 :
gotoAndStop ("fPasswdRoom");
}
};
Instance of Symbol 439 MovieClip [zButton] "btnEnviar" in Symbol 979 MovieClip Frame 4
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "radioGroup";
label = "Aceptar";
selected = false;
skin = "_skinButtonOK";
type = "Button";
}
on (release) {
this._onRelease();
this.enabled = false;
_parent.gotoAndStop("fPasswdRoom");
}
Symbol 979 MovieClip Frame 5
function Escape() {
keyLst.onKeyUp = _global.rutaChat.Enter;
Selection.setFocus(_global.rutaChat.txtIn);
_parent.removeMovieClip();
}
function Enter() {
rg.checkPasswdMatch(idMatch, txtPasswd.text);
rg.onCheckPasswdMatch = function (obj) {
if (!obj.error) {
keyLst.onKeyUp = _root.mcConectado.mcChat.Enter;
if (((idx = _global.gMatchs.find("idMatch", obj.idMatch))) > -1) {
if (((_global.gMatchs[idx].maxUsers == _global.gMatchs[idx].users.length) || ((!_global.gMatchs[idx].guests) && (_global.rg.type == 2))) || (_global.rg.credits < _global.gMatchs[idx].initBet)) {
_global.rg.lookMatch(idMatch, txtPasswd.text);
} else {
_global.rg.joinMatch(idMatch, txtPasswd.text);
}
}
_parent.removeMovieClip();
} else {
_root.mcMessages.mcWindow.gotoAndStop("fPasswdErrorMatch");
}
};
}
stop();
Selection.setFocus(txtPasswd);
keyLst.onKeyUp = function () {
switch (Key.getCode()) {
case 27 :
Escape();
return;
case 13 :
Enter();
}
};
Instance of Symbol 439 MovieClip [zButton] in Symbol 979 MovieClip Frame 5
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "radioGroup";
label = "Aceptar";
selected = false;
skin = "_skinChatTabClose";
type = "Button";
}
on (release) {
this._onRelease();
this.enabled = false;
_parent.Escape();
}
Instance of Symbol 439 MovieClip [zButton] "btnEnviar" in Symbol 979 MovieClip Frame 5
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "radioGroup";
label = "Aceptar";
selected = false;
skin = "_skinButtonOK";
type = "Button";
}
on (release) {
this._onRelease();
this.enabled = false;
_parent.Enter();
}
Symbol 979 MovieClip Frame 6
keyLst.onKeyUp = function () {
switch (Key.getCode()) {
case 27 :
Escape();
return;
case 13 :
gotoAndStop ("fPasswdMatch");
}
};
Instance of Symbol 439 MovieClip [zButton] "btnEnviar" in Symbol 979 MovieClip Frame 6
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "radioGroup";
label = "Aceptar";
selected = false;
skin = "_skinButtonOK";
type = "Button";
}
on (release) {
this._onRelease();
this.enabled = false;
_parent.gotoAndStop("fPasswdMatch");
}
Symbol 979 MovieClip Frame 7
function Escape() {
_parent.removeMovieClip();
}
keyLst.onKeyUp = function () {
switch (Key.getCode()) {
case 27 :
case 13 :
Escape();
}
};
Instance of Symbol 439 MovieClip [zButton] "btnEnviar" in Symbol 979 MovieClip Frame 7
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "radioGroup";
label = "Aceptar";
selected = false;
skin = "_skinButtonOK";
type = "Button";
}
on (release) {
this._onRelease();
this.enabled = false;
_parent.Escape();
}
Symbol 979 MovieClip Frame 8
function Escape() {
_root.mcConectado.mcListaUsuariosSala.cmbSalas.selectedIndex = rg.idRoom;
keyLst.onKeyUp = _global.rutaChat.Enter;
Selection.setFocus(_global.rutaChat.txtIn);
_parent.removeMovieClip();
}
keyLst.onKeyUp = function () {
switch (Key.getCode()) {
case 27 :
case 13 :
Escape();
}
};
Symbol 979 MovieClip Frame 9
function Escape() {
keyLst.onKeyUp = _global.rutaChat.Enter;
Selection.setFocus(_global.rutaChat.txtIn);
_parent.removeMovieClip();
}
keyLst.onKeyUp = function () {
switch (Key.getCode()) {
case 27 :
case 13 :
Escape();
}
};
Symbol 979 MovieClip Frame 10
function Escape() {
_parent.removeMovieClip();
}
keyLst.onKeyUp = function () {
switch (Key.getCode()) {
case 27 :
case 13 :
Escape();
}
};
Instance of Symbol 388 MovieClip in Symbol 979 MovieClip Frame 10
onClipEvent (load) {
this.useHandCursor = false;
this.iniX = this._x;
this.iniY = this._y;
}
on (press) {
startDrag (_parent);
}
on (release, releaseOutside) {
stopDrag();
var security = 25;
if ((((_parent._x + this._width) - security) + this.iniX) < 0) {
_parent._x = -((this._width - security) + this.iniX);
}
if ((((_parent._y + this._height) - security) + this.iniY) < 0) {
_parent._y = -((this._height - security) + this.iniY);
}
if (((_parent._x + security) + this.iniX) > 900) {
_parent._x = (900 - security) - this.iniX;
}
if (((_parent._y + security) + this.iniY) > 500) {
_parent._y = (500 - security) - this.iniY;
}
}
Instance of Symbol 439 MovieClip [zButton] "btnEnviar" in Symbol 979 MovieClip Frame 10
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "radioGroup";
label = "Aceptar";
selected = false;
skin = "_skinButtonOK";
type = "Button";
}
on (release) {
this._onRelease();
this.enabled = false;
_parent.Escape();
}
Symbol 979 MovieClip Frame 11
function Escape() {
keyLst.onKeyUp = _global.rutaChat.Enter;
Selection.setFocus(_global.rutaChat.txtIn);
_parent.removeMovieClip();
}
keyLst.onKeyUp = function () {
switch (Key.getCode()) {
case 27 :
case 13 :
Escape();
}
};
Instance of Symbol 388 MovieClip in Symbol 979 MovieClip Frame 11
onClipEvent (load) {
this.useHandCursor = false;
this.iniX = this._x;
this.iniY = this._y;
}
on (press) {
startDrag (_parent);
}
on (release, releaseOutside) {
stopDrag();
var security = 25;
if ((((_parent._x + this._width) - security) + this.iniX) < 0) {
_parent._x = -((this._width - security) + this.iniX);
}
if ((((_parent._y + this._height) - security) + this.iniY) < 0) {
_parent._y = -((this._height - security) + this.iniY);
}
if (((_parent._x + security) + this.iniX) > 900) {
_parent._x = (900 - security) - this.iniX;
}
if (((_parent._y + security) + this.iniY) > 500) {
_parent._y = (500 - security) - this.iniY;
}
}
Instance of Symbol 439 MovieClip [zButton] "btnEnviar" in Symbol 979 MovieClip Frame 11
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "radioGroup";
label = "Aceptar";
selected = false;
skin = "_skinButtonOK";
type = "Button";
}
on (release) {
this._onRelease();
this.enabled = false;
_parent.Escape();
}
Symbol 979 MovieClip Frame 12
function Escape() {
keyLst.onKeyUp = _global.rutaChat.Enter;
Selection.setFocus(_global.rutaChat.txtIn);
_parent.removeMovieClip();
}
keyLst.onKeyUp = function () {
switch (Key.getCode()) {
case 27 :
case 13 :
Escape();
}
};
Symbol 979 MovieClip Frame 13
function Escape() {
keyLst.onKeyUp = _global.rutaChat.Enter;
Selection.setFocus(_global.rutaChat.txtIn);
_parent.removeMovieClip();
}
keyLst.onKeyUp = function () {
switch (Key.getCode()) {
case 27 :
case 13 :
Escape();
}
};
Symbol 979 MovieClip Frame 14
function Escape() {
keyLst.onKeyUp = _global.rutaChat.Enter;
Selection.setFocus(_global.rutaChat.txtIn);
_parent.removeMovieClip();
}
keyLst.onKeyUp = function () {
switch (Key.getCode()) {
case 27 :
case 13 :
Escape();
}
};
Symbol 979 MovieClip Frame 15
function Escape() {
keyLst.onKeyUp = _global.rutaChat.Enter;
Selection.setFocus(_global.rutaChat.txtIn);
_parent.removeMovieClip();
}
keyLst.onKeyUp = function () {
switch (Key.getCode()) {
case 27 :
case 13 :
Escape();
}
};
Symbol 979 MovieClip Frame 16
function Escape() {
keyLst.onKeyUp = _global.rutaChat.Enter;
Selection.setFocus(_global.rutaChat.txtIn);
_parent.removeMovieClip();
}
keyLst.onKeyUp = function () {
switch (Key.getCode()) {
case 27 :
case 13 :
Escape();
}
};
Symbol 979 MovieClip Frame 17
function Escape() {
keyLst.onKeyUp = _global.rutaChat.Enter;
Selection.setFocus(_global.rutaChat.txtIn);
_parent.removeMovieClip();
}
keyLst.onKeyUp = function () {
switch (Key.getCode()) {
case 27 :
case 13 :
Escape();
}
};
Symbol 979 MovieClip Frame 18
function Escape() {
keyLst.onKeyUp = _global.rutaChat.Enter;
Selection.setFocus(_global.rutaChat.txtIn);
_parent.removeMovieClip();
}
function CargarPerfil(auxXML) {
txtPosition.text = auxXML.firstChild.attributes.position;
txtPoints.text = auxXML.firstChild.attributes.points;
txtMatchs.text = auxXML.firstChild.attributes.matchs;
txtVictories.text = auxXML.firstChild.attributes.victories;
txtVxAbandonment.text = auxXML.firstChild.attributes.vxabandonment;
txtDefeats.text = auxXML.firstChild.attributes.defeats;
txtTies.text = auxXML.firstChild.attributes.ties;
txtAbandonments.text = auxXML.firstChild.attributes.abandonments;
txtGains.text = auxXML.firstChild.attributes.gains;
txtLosses.text = auxXML.firstChild.attributes.losses;
var _local2 = ((auxXML.firstChild.attributes.points == 0) ? 1 : (Math.ceil(auxXML.firstChild.attributes.points / 5000)));
mcRangoLocal.gotoAndStop(_local2);
btnActual.enabled = gamesActual.length != 1;
btnSemanal.enabled = gamesSemanal.length != 1;
btnHistorico.enabled = gamesHistorico.length != 1;
cmbGames.enabled = true;
}
function sendProfile(codGame) {
var _local2 = ((rankingIndex == 0) ? "Actual" : (((rankingIndex == 1) ? "Semanal" : "Historico")));
XMLObjProfile.sendAndLoad((((((((_global.OPQAURL + "opqa.php?fn=getProfile") + _local2) + "&userName=") + userName) + "&codGame=") + codGame) + "&refresh=") + new Date().getTime(), XMLObjProfile);
}
function fillcmbGames() {
cmbGames.removeAll();
idxGame = -1;
switch (rankingIndex) {
case 0 :
var _local4 = gamesActual.length;
if (_local4 > 1) {
cmbGames.addItem("General", 0);
}
if (gGameName.toLowerCase() == "general") {
idxGame = 0;
}
var _local1 = 0;
while (_local1 < (_local4 - 1)) {
var _local2 = games[gamesActual[_local1] - 1];
var _local3 = gamesActual[_local1];
cmbGames.addItem(_local2, _local3);
if (gGameName.toLowerCase() == _local2.toLowerCase()) {
idxGame = _local1 + 1;
}
_local1++;
}
break;
case 1 :
_local4 = gamesSemanal.length;
if (_local4 > 1) {
cmbGames.addItem("General", 0);
}
if (gGameName.toLowerCase() == "general") {
idxGame = 0;
}
_local1 = 0;
while (_local1 < (_local4 - 1)) {
var _local2 = games[gamesSemanal[_local1] - 1];
var _local3 = gamesSemanal[_local1];
cmbGames.addItem(_local2, _local3);
if (gGameName.toLowerCase() == _local2.toLowerCase()) {
idxGame = _local1 + 1;
}
_local1++;
}
break;
case 2 :
_local4 = gamesHistorico.length;
if (_local4 > 1) {
cmbGames.addItem("General", 0);
}
if (gGameName.toLowerCase() == "general") {
idxGame = 0;
}
_local1 = 0;
for(;;){
if (_local1 >= (_local4 - 1)) {
break;
}
var _local2 = games[gamesHistorico[_local1] - 1];
var _local3 = gamesHistorico[_local1];
cmbGames.addItem(_local2, _local3);
if (gGameName.toLowerCase() == _local2.toLowerCase()) {
idxGame = _local1 + 1;
}
_local1++;
};
}
if (idxGame == -1) {
idxGame = 0;
}
cmbGames.selectedIndex = idxGame;
gameIndex = cmbGames.dataProvider[idxGame].data;
}
btnActual.enabled = false;
btnSemanal.enabled = false;
btnHistorico.enabled = false;
switch (_global.escena) {
case "Conexion" :
if (_root.mcConectado.mcListaUsuariosSala._visible) {
var userName = _root.mcConectado.mcListaUsuariosSala.lstUsuarios.selectedItem.userName;
} else if (_root.mcConectado.mcListaUsuariosAmigos._visible) {
var userName = _root.mcConectado.mcListaUsuariosAmigos.lstAmigos.selectedItem.userName;
} else {
var userName = _root.mcConectado.mcListaUsuariosPartida.lstUsuarios.selectedItem.userName;
}
break;
case "Juego" :
if (_root.mcChatWindow.mcListaUsuariosPartida._visible) {
var userName = _root.mcChatWindow.mcListaUsuariosPartida.lstUsuarios.selectedItem.userName;
} else if (_root.mcChatWindow.mcListaUsuariosSala._visible) {
var userName = _root.mcChatWindow.mcListaUsuariosSala.lstUsuarios.selectedItem.userName;
} else {
var userName = _root.mcChatWindow.mcListaUsuariosAmigos.lstAmigos.selectedItem.userName;
}
}
keyLst.onKeyUp = function () {
switch (Key.getCode()) {
case 27 :
case 13 :
Escape();
}
};
var mSocketXML = new XML();
var gPerfil;
var XMLObjProfile = new XML();
XMLObjProfile.ignoreWhite = true;
XMLObjProfile.onLoad = function () {
CargarPerfil(this);
};
var games = new Array();
var gamesActual = new Array();
var gamesSemanal = new Array();
var gamesHistorico = new Array();
var gGameName = _global.rg.juego.toLowerCase();
var rankingIndex = 0;
var gameIndex = 0;
var idxGame = 0;
mSocketXML.sendAndLoad((((_global.OPQAURL + "opqa.php?fn=getProfile&userName=") + userName) + "&refresh=") + new Date().getTime(), mSocketXML);
mSocketXML.onData = function (valor) {
gPerfil = new XML(valor);
if (gPerfil.firstChild.attributes.status == "OK") {
games = gPerfil.firstChild.attributes.games.split(",");
gamesActual = gPerfil.firstChild.attributes.gamesActual.split(",");
gamesSemanal = gPerfil.firstChild.attributes.gamesSemanal.split(",");
gamesHistorico = gPerfil.firstChild.attributes.gamesHistorico.split(",");
if (gamesActual.length <= 1) {
rankingIndex = 2;
}
btnActual.selected = rankingIndex == 0;
btnSemanal.selected = rankingIndex == 1;
btnHistorico.selected = rankingIndex == 2;
fillcmbGames();
sendProfile(gameIndex);
txtUserName.text = gPerfil.firstChild.attributes.name;
mcRango.gotoAndStop(gPerfil.firstChild.attributes.rank);
if (gPerfil.firstChild.attributes.gameName == "Desconectado") {
txtDisconnect.htmlText = "\n\n Desconectado";
} else {
txtDisconnect.htmlText = "Est\u00E1 en :\n\n\nJugando a:";
txtGameName.text = gPerfil.firstChild.attributes.gameName;
txtRoomName.text = gPerfil.firstChild.attributes.roomName;
}
var _local3 = new MovieClipLoader();
var _local2 = new Object();
_local2.onLoadProgress = function (target) {
target._visible = false;
};
_local2.onLoadInit = function (target) {
target._xscale = -70;
target._yscale = 70;
target._visible = true;
};
_local3.addListener(_local2);
_local3.loadClip((((_global.OPQAURL + "avatares/") + txtUserName.text) + ".swf?refresh=") + new Date().getTime(), mcAvatar);
mcCopas.txtOro.text = gPerfil.firstChild.attributes.oros;
mcCopas.txtPlata.text = gPerfil.firstChild.attributes.platas;
mcCopas.txtBronce.text = gPerfil.firstChild.attributes.bronces;
} else {
_level.mcMessages.mcWindow.Escape();
_level.attachMovie("mcMessages", "mcMessages", _level.getNextHighestDepth());
_level.mcMessages.mcWindow.gotoAndStop("fProfileError");
}
};
Instance of Symbol 388 MovieClip in Symbol 979 MovieClip Frame 18
onClipEvent (load) {
this.useHandCursor = false;
this.iniX = this._x;
this.iniY = this._y;
}
on (press) {
startDrag (_parent);
}
on (release, releaseOutside) {
stopDrag();
var security = 25;
if ((((_parent._x + this._width) - security) + this.iniX) < 0) {
_parent._x = -((this._width - security) + this.iniX);
}
if ((((_parent._y + this._height) - security) + this.iniY) < 0) {
_parent._y = -((this._height - security) + this.iniY);
}
if (((_parent._x + security) + this.iniX) > 900) {
_parent._x = (900 - security) - this.iniX;
}
if (((_parent._y + security) + this.iniY) > 500) {
_parent._y = (500 - security) - this.iniY;
}
}
Instance of Symbol 439 MovieClip [zButton] "btnActual" in Symbol 979 MovieClip Frame 18
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "PerfilPest";
label = "Aceptar";
selected = true;
skin = "_skinPerfilPest1";
type = "Option";
}
on (release) {
if (_parent.rankingIndex != 0) {
this._onRelease();
_parent.cmbGames.enabled = false;
_parent.btnActual.enabled = false;
_parent.btnSemanal.enabled = false;
_parent.btnHistorico.enabled = false;
_parent.rankingIndex = 0;
_parent.fillcmbGames();
_parent.sendProfile(_parent.gameIndex);
}
}
Instance of Symbol 439 MovieClip [zButton] "btnSemanal" in Symbol 979 MovieClip Frame 18
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "PerfilPest";
label = "Aceptar";
selected = false;
skin = "_skinPerfilPest2";
type = "Option";
}
on (release) {
if (_parent.rankingIndex != 1) {
this._onRelease();
_parent.cmbGames.enabled = false;
_parent.btnActual.enabled = false;
_parent.btnSemanal.enabled = false;
_parent.btnHistorico.enabled = false;
_parent.rankingIndex = 1;
_parent.fillcmbGames();
_parent.sendProfile(_parent.gameIndex);
}
}
Instance of Symbol 439 MovieClip [zButton] "btnHistorico" in Symbol 979 MovieClip Frame 18
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "PerfilPest";
label = "Aceptar";
selected = false;
skin = "_skinPerfilPest3";
type = "Option";
}
on (release) {
if (_parent.rankingIndex != 2) {
this._onRelease();
_parent.cmbGames.enabled = false;
_parent.btnActual.enabled = false;
_parent.btnSemanal.enabled = false;
_parent.btnHistorico.enabled = false;
_parent.rankingIndex = 2;
_parent.fillcmbGames();
_parent.sendProfile(_parent.gameIndex);
}
}
Instance of Symbol 835 MovieClip [zComboBox] "cmbGames" in Symbol 979 MovieClip Frame 18
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
editable = false;
enabled = true;
skin = "_skinComboSoloTexto";
}
onClipEvent (load) {
function __f_change(eventObj) {
_parent.cmbGames.enabled = false;
_parent.btnActual.enabled = false;
_parent.btnSemanal.enabled = false;
_parent.btnHistorico.enabled = false;
this.enabled = false;
_parent.gGameName = this.selectedItem.label;
_parent.sendProfile(this.selectedItem.data);
}
this.addEventListener("change", __f_change);
}
Instance of Symbol 439 MovieClip [zButton] in Symbol 979 MovieClip Frame 18
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "radioGroup";
label = "Aceptar";
selected = false;
skin = "_skinChatTabCloseWhite";
type = "Button";
}
on (release) {
this._onRelease();
this.enabled = false;
_parent.Escape();
}
Symbol 979 MovieClip Frame 19
function Escape() {
keyLst.onKeyUp = _root.mcConectado.mcChat.Enter;
Selection.setFocus(_root.mcConectado.mcChat.txtIn);
_parent.removeMovieClip();
}
function Enter() {
if (rg.idMatch > -1) {
rg.leaveMatch(true);
}
var _local1 = gMatchs.find("idMatch", lstUsuarios.selectedItem.data);
if (gMatchs[_local1].mPasswd) {
_level.mcMessages.mcWindow.idMatch = lstUsuarios.selectedItem.data;
_level.mcMessages.mcWindow.gotoAndStop("fPasswdMatch");
} else {
rg.joinMatch(lstUsuarios.selectedItem.data, "");
Escape();
}
}
keyLst.onKeyUp = function () {
switch (Key.getCode()) {
case 27 :
Escape();
return;
case 13 :
Enter();
}
};
lstUsuarios.onRenderRow = function (item, datos) {
item.txtUserName.text = datos.label;
item.txtInitBet.text = datos.initBet;
};
lstUsuarios.addItem({label:userName, data:idMatch, initBet:initBet});
lstUsuarios.selectedIndex = 0;
Instance of Symbol 388 MovieClip in Symbol 979 MovieClip Frame 19
onClipEvent (load) {
this.useHandCursor = false;
this.iniX = this._x;
this.iniY = this._y;
}
on (press) {
startDrag (_parent);
}
on (release, releaseOutside) {
stopDrag();
var security = 25;
if ((((_parent._x + this._width) - security) + this.iniX) < 0) {
_parent._x = -((this._width - security) + this.iniX);
}
if ((((_parent._y + this._height) - security) + this.iniY) < 0) {
_parent._y = -((this._height - security) + this.iniY);
}
if (((_parent._x + security) + this.iniX) > 900) {
_parent._x = (900 - security) - this.iniX;
}
if (((_parent._y + security) + this.iniY) > 500) {
_parent._y = (500 - security) - this.iniY;
}
}
Instance of Symbol 38 MovieClip [zListBox] "lstUsuarios" in Symbol 979 MovieClip Frame 19
//component parameters
onClipEvent (construct) {
enabled = true;
hScrollPolicy = "off";
multipleSelection = false;
skin = "_skinListaInvitando";
vScrollPolicy = "auto";
}
Instance of Symbol 439 MovieClip [zButton] in Symbol 979 MovieClip Frame 19
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "radioGroup";
label = "Aceptar";
selected = false;
skin = "_skinChatTabClose";
type = "Button";
}
on (release) {
this._onRelease();
this.enabled = false;
_parent.Escape();
}
Instance of Symbol 439 MovieClip [zButton] "btnCancelar" in Symbol 979 MovieClip Frame 19
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "radioGroup";
label = "Aceptar";
selected = false;
skin = "_skinButtonJuegosCancelar";
type = "Button";
}
on (release) {
this._onRelease();
this.enabled = false;
_parent.Escape();
}
Instance of Symbol 439 MovieClip [zButton] "btnEnviar" in Symbol 979 MovieClip Frame 19
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "radioGroup";
label = "Aceptar";
selected = false;
skin = "_skinButtonJuegosEntrar";
type = "Button";
}
on (release) {
this._onRelease();
this.enabled = false;
if (_parent.lstUsuarios.selectedItem != undefined) {
_parent.Enter();
}
}
Symbol 979 MovieClip Frame 20
function Escape() {
rg.alive();
keyLst.onKeyUp = _global.rutaChat.Enter;
Selection.setFocus(_global.rutaChat.txtIn);
_parent.removeMovieClip();
}
function Enter() {
Escape();
}
keyLst.onKeyUp = function () {
switch (Key.getCode()) {
case 27 :
case 13 :
Escape();
}
};
Instance of Symbol 388 MovieClip in Symbol 979 MovieClip Frame 20
onClipEvent (load) {
this.useHandCursor = false;
this.iniX = this._x;
this.iniY = this._y;
}
on (press) {
startDrag (_parent);
}
on (release, releaseOutside) {
stopDrag();
var security = 25;
if ((((_parent._x + this._width) - security) + this.iniX) < 0) {
_parent._x = -((this._width - security) + this.iniX);
}
if ((((_parent._y + this._height) - security) + this.iniY) < 0) {
_parent._y = -((this._height - security) + this.iniY);
}
if (((_parent._x + security) + this.iniX) > 900) {
_parent._x = (900 - security) - this.iniX;
}
if (((_parent._y + security) + this.iniY) > 500) {
_parent._y = (500 - security) - this.iniY;
}
}
Instance of Symbol 439 MovieClip [zButton] "btnEnviar" in Symbol 979 MovieClip Frame 20
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "radioGroup";
label = "Aceptar";
selected = false;
skin = "_skinButtonOK";
type = "Button";
}
on (release) {
this._onRelease();
this.enabled = false;
_parent.Enter();
}
Symbol 979 MovieClip Frame 21
function Escape() {
keyLst.onKeyUp = _global.rutaChat.Enter;
Selection.setFocus(_global.rutaChat.txtIn);
_parent.removeMovieClip();
}
keyLst.onKeyUp = function () {
switch (Key.getCode()) {
case 27 :
case 13 :
Escape();
}
};
Instance of Symbol 388 MovieClip in Symbol 979 MovieClip Frame 21
onClipEvent (load) {
this.useHandCursor = false;
this.iniX = this._x;
this.iniY = this._y;
}
on (press) {
startDrag (_parent);
}
on (release, releaseOutside) {
stopDrag();
var security = 25;
if ((((_parent._x + this._width) - security) + this.iniX) < 0) {
_parent._x = -((this._width - security) + this.iniX);
}
if ((((_parent._y + this._height) - security) + this.iniY) < 0) {
_parent._y = -((this._height - security) + this.iniY);
}
if (((_parent._x + security) + this.iniX) > 900) {
_parent._x = (900 - security) - this.iniX;
}
if (((_parent._y + security) + this.iniY) > 500) {
_parent._y = (500 - security) - this.iniY;
}
}
Instance of Symbol 439 MovieClip [zButton] "btnEnviar" in Symbol 979 MovieClip Frame 21
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "radioGroup";
label = "Aceptar";
selected = false;
skin = "_skinButtonOK";
type = "Button";
}
on (release) {
this._onRelease();
this.enabled = false;
_parent.Escape();
}
Symbol 979 MovieClip Frame 22
function Escape() {
keyLst.onKeyUp = _global.rutaChat.Enter;
Selection.setFocus(_global.rutaChat.txtIn);
_parent.removeMovieClip();
}
keyLst.onKeyUp = function () {
switch (Key.getCode()) {
case 27 :
case 13 :
Escape();
}
};
Symbol 979 MovieClip Frame 23
function Escape() {
Selection.setFocus(_global.rutaChat.txtIn);
_parent.removeMovieClip();
}
function EnviarRespuesta(bReboot) {
if (bReboot && (_global.rg.credits >= _global.game.initBet)) {
_global.game.readyNewMatch();
_global.game.showMessage("fWaitInitMatch", false);
} else {
_global.rg.leaveMatch(true);
}
Escape();
}
function updateProfile(pTurn) {
this.mcAvatar.avatar.createEmptyMovieClip("avatar", _level.getNextHighestDepth());
mcl.loadClip(_global.game.getPlayerByTurn(pTurn).avatar, this.mcAvatar.avatar.avatar);
this.txtUserName.text = _global.game.getPlayerByTurn(pTurn).name;
_global.game.onShowResults(pTurn);
}
var mcl = new MovieClipLoader();
var lst = new Object();
var THIS = this;
_parent.mcSecurity._visible = false;
lst.onLoadProgress = function (target) {
target._visible = false;
};
lst.onLoadInit = function (target) {
target._width = target._width * 0.62;
target._height = target._height * 0.62;
target._x = 323;
target._y = -115;
target._xscale = -Math.abs(target._xscale);
target._visible = true;
};
keyLst.onKeyUp = function () {
switch (Key.getCode()) {
case 27 :
case 13 :
}
};
keyLst.onKeyUp = _global.rutaChat.Enter;
updateProfile(_global.game.showTurn);
Instance of Symbol 388 MovieClip in Symbol 979 MovieClip Frame 23
onClipEvent (load) {
this.useHandCursor = false;
this.iniX = this._x;
this.iniY = this._y;
}
on (press) {
startDrag (_parent);
}
on (release, releaseOutside) {
stopDrag();
var security = 25;
if ((((_parent._x + this._width) - security) + this.iniX) < 0) {
_parent._x = -((this._width - security) + this.iniX);
}
if ((((_parent._y + this._height) - security) + this.iniY) < 0) {
_parent._y = -((this._height - security) + this.iniY);
}
if (((_parent._x + security) + this.iniX) > 900) {
_parent._x = (900 - security) - this.iniX;
}
if (((_parent._y + security) + this.iniY) > 500) {
_parent._y = (500 - security) - this.iniY;
}
}
Instance of Symbol 439 MovieClip [zButton] "btnNextPlayer" in Symbol 979 MovieClip Frame 23
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "radioGroup";
label = "Aceptar";
selected = false;
skin = "_skinBtnNextPlayer";
type = "Button";
}
on (release) {
this._onRelease();
_global.game.showTurn = _global.game.getNextTurn(_global.game.showTurn);
_parent.updateProfile(_global.game.showTurn);
}
Symbol 979 MovieClip Frame 24
function Escape() {
keyLst.onKeyUp = _global.rutaChat.Enter;
Selection.setFocus(_global.rutaChat.txtIn);
_parent.removeMovieClip();
}
keyLst.onKeyUp = function () {
switch (Key.getCode()) {
case 27 :
case 13 :
Escape();
}
};
Instance of Symbol 388 MovieClip in Symbol 979 MovieClip Frame 24
onClipEvent (load) {
this.useHandCursor = false;
this.iniX = this._x;
this.iniY = this._y;
}
on (press) {
startDrag (_parent);
}
on (release, releaseOutside) {
stopDrag();
var security = 25;
if ((((_parent._x + this._width) - security) + this.iniX) < 0) {
_parent._x = -((this._width - security) + this.iniX);
}
if ((((_parent._y + this._height) - security) + this.iniY) < 0) {
_parent._y = -((this._height - security) + this.iniY);
}
if (((_parent._x + security) + this.iniX) > 900) {
_parent._x = (900 - security) - this.iniX;
}
if (((_parent._y + security) + this.iniY) > 500) {
_parent._y = (500 - security) - this.iniY;
}
}
Instance of Symbol 439 MovieClip [zButton] "btnEnviar" in Symbol 979 MovieClip Frame 24
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "radioGroup";
label = "Aceptar";
selected = false;
skin = "_skinButtonOK";
type = "Button";
}
on (release) {
this._onRelease();
this.enabled = false;
_parent.Escape();
}
Symbol 979 MovieClip Frame 25
function Escape() {
keyLst.onKeyUp = _global.rutaChat.Enter;
Selection.setFocus(_global.rutaChat.txtIn);
_parent.removeMovieClip();
}
keyLst.onKeyUp = function () {
switch (Key.getCode()) {
case 27 :
case 13 :
Escape();
}
};
Instance of Symbol 388 MovieClip in Symbol 979 MovieClip Frame 25
onClipEvent (load) {
this.useHandCursor = false;
this.iniX = this._x;
this.iniY = this._y;
}
on (press) {
startDrag (_parent);
}
on (release, releaseOutside) {
stopDrag();
var security = 25;
if ((((_parent._x + this._width) - security) + this.iniX) < 0) {
_parent._x = -((this._width - security) + this.iniX);
}
if ((((_parent._y + this._height) - security) + this.iniY) < 0) {
_parent._y = -((this._height - security) + this.iniY);
}
if (((_parent._x + security) + this.iniX) > 900) {
_parent._x = (900 - security) - this.iniX;
}
if (((_parent._y + security) + this.iniY) > 500) {
_parent._y = (500 - security) - this.iniY;
}
}
Symbol 979 MovieClip Frame 26
function Escape() {
keyLst.onKeyUp = _root.mcConectado.mcChat.Enter;
Selection.setFocus(_root.mcConectado.mcChat.txtIn);
_parent.removeMovieClip();
}
function updateOptions() {
if (_root.mcConectado.mcListaPartidas.lstMatchs.selectedItem == undefined) {
return(undefined);
}
var _local2 = _root.mcConectado.mcListaPartidas.lstMatchs.selectedItem.clone();
txtMatchName.text = _local2.matchName;
txtNumPlayers.text = (_local2.numUsers + " / ") + _local2.maxUsers;
chkPasswd.selected = _local2.mPasswd;
chkGuests.selected = _local2.guests;
chkAudience.selected = _local2.audience;
chkAudienceTalk.selected = _local2.audienceTalk;
chkLoaded.selected = _local2.codLoadMatch != -1;
chkGoOnLeave.selected = _local2.goOnLeave;
txtInitBet.text = _local2.initBet;
txtTurnTime.text = _local2.extra.turnTime;
}
keyLst.onKeyUp = function () {
switch (Key.getCode()) {
case 27 :
case 13 :
Escape();
}
};
updateOptions();
Instance of Symbol 388 MovieClip in Symbol 979 MovieClip Frame 26
onClipEvent (load) {
this.useHandCursor = false;
this.iniX = this._x;
this.iniY = this._y;
}
on (press) {
startDrag (_parent);
}
on (release, releaseOutside) {
stopDrag();
var security = 25;
if ((((_parent._x + this._width) - security) + this.iniX) < 0) {
_parent._x = -((this._width - security) + this.iniX);
}
if ((((_parent._y + this._height) - security) + this.iniY) < 0) {
_parent._y = -((this._height - security) + this.iniY);
}
if (((_parent._x + security) + this.iniX) > 900) {
_parent._x = (900 - security) - this.iniX;
}
if (((_parent._y + security) + this.iniY) > 500) {
_parent._y = (500 - security) - this.iniY;
}
}
Instance of Symbol 439 MovieClip [zButton] "chkGoOnLeave" in Symbol 979 MovieClip Frame 26
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = false;
groupName = "";
label = "";
selected = true;
skin = "skinCheck";
type = "Check";
}
Instance of Symbol 439 MovieClip [zButton] "chkPasswd" in Symbol 979 MovieClip Frame 26
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = false;
groupName = "";
label = "";
selected = true;
skin = "skinCheck";
type = "Check";
}
Instance of Symbol 439 MovieClip [zButton] "chkGuests" in Symbol 979 MovieClip Frame 26
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = false;
groupName = "";
label = "";
selected = true;
skin = "skinCheck";
type = "Check";
}
Instance of Symbol 439 MovieClip [zButton] "chkAudience" in Symbol 979 MovieClip Frame 26
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = false;
groupName = "";
label = "";
selected = true;
skin = "skinCheck";
type = "Check";
}
Instance of Symbol 439 MovieClip [zButton] "chkAudienceTalk" in Symbol 979 MovieClip Frame 26
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = false;
groupName = "";
label = "";
selected = true;
skin = "skinCheck";
type = "Check";
}
Instance of Symbol 439 MovieClip [zButton] "chkLoaded" in Symbol 979 MovieClip Frame 26
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = false;
groupName = "";
label = "";
selected = true;
skin = "skinCheck";
type = "Check";
}
Instance of Symbol 628 MovieClip "mcLoaded" in Symbol 979 MovieClip Frame 26
on (rollOver, dragOver) {
var THIS = this;
var wait = function () {
THIS.mcToolTip = _root.mcConectado.attachMovie("mcToolTips", "mcToolTip", 100);
THIS.mcToolTip._x = _root.mcConectado._xmouse - (THIS.mcToolTip._width / 2);
THIS.mcToolTip._y = _root.mcConectado._ymouse - THIS.mcToolTip._height;
THIS.mcToolTip.gotoAndStop(THIS._name.toString());
};
clearInterval(this.idWait);
this.idWait = tmo.setTimeout(wait, 800);
}
on (releaseOutside, rollOut, dragOut) {
clearInterval(this.idWait);
this.mcToolTip.removeMovieClip();
}
on (release) {
clearInterval(this.idWait);
this.mcToolTip.removeMovieClip();
_parent.mcBG.onRelease();
}
Instance of Symbol 439 MovieClip [zButton] in Symbol 979 MovieClip Frame 26
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "radioGroup";
label = "Aceptar";
selected = false;
skin = "_skinChatTabCloseWhite";
type = "Button";
}
on (release) {
this._onRelease();
this.enabled = false;
_parent.Escape();
}
Symbol 979 MovieClip Frame 27
function Escape() {
keyLst.onKeyUp = _root.mcConectado.mcChat.Enter;
Selection.setFocus(_root.mcConectado.mcChat.txtIn);
_parent.removeMovieClip();
}
function sendUpdate() {
var _local4 = lst1.dataProvider.length;
var _local3 = 0;
while (_local3 < _local4) {
newUsers[_local3] = lst1.dataProvider[_local3].id;
_local3++;
}
_local4 = lst2.dataProvider.length;
_local3 = 0;
while (_local3 < _local4) {
newUsers[int(match.maxUsers / 2) + _local3] = lst2.dataProvider[_local3].id;
_local3++;
}
if (!checkPositions()) {
return(undefined);
}
if (_global.rg.idUser == gMatchs[gMatchs.find("idMatch", _global.rg.idMatch)].idOwner) {
var _local9 = _root.mcConectado.mcVersus.antOptions.matchTitle;
var _local11 = _root.mcConectado.mcVersus.antOptions.passwd;
var _local6 = _root.mcConectado.mcVersus.antOptions.numPlayers;
var _local8 = _root.mcConectado.mcVersus.antOptions.guests;
var _local7 = _root.mcConectado.mcVersus.antOptions.audience;
var _local10 = _root.mcConectado.mcVersus.antOptions.audienceTalk;
var _local5 = _root.mcConectado.mcVersus.antOptions.goOnLeave;
_global.rg.updateMatch(_local9, _local11, _local6, _local8, _local7, _local10, _local5, Serialize.code(_global.extra).split("'").join("\\'"), newUsers);
}
}
function checkPositions() {
var _local2 = lst1.dataProvider.length + lst2.dataProvider.length;
var _local1 = 0;
while (_local1 < _local2) {
if (newUsers[_local1] != match.users[_local1]) {
return(true);
}
_local1++;
}
return(false);
}
keyLst.onKeyUp = function () {
switch (Key.getCode()) {
case 27 :
Escape();
return;
case 13 :
sendUpdate();
Escape();
}
};
var match = gMatchs[gMatchs.find("idMatch", _global.rg.idMatch)].clone();
var newUsers = new Array();
lst1.onRenderRow = function (item, datos) {
if (datos.id == match.idOwner) {
item.onRollOver = undefined;
item.onRollOut = undefined;
item.onRelease = undefined;
item.onReleaseOutside = undefined;
item.onPress = undefined;
item.useHandCursor = false;
item.txtLabel.textColor = 7829367 /* 0x777777 */;
} else {
item.txtLabel.textColor = 0;
}
item.txtLabel.text = datos.label;
};
var i = 0;
while (i < int(match.maxUsers / 2)) {
if (match.users[i] != undefined) {
var user = _global.gUsers[_global.gUsers.find("idUser", match.users[i])];
lst1.addItem({label:user.userName, id:user.idUser});
}
i++;
}
var i = int(match.maxUsers / 2);
while (i < match.maxUsers) {
if (match.users[i] != undefined) {
var user = _global.gUsers[_global.gUsers.find("idUser", match.users[i])];
lst2.addItem({label:user.userName, id:user.idUser});
}
i++;
}
lst1.render();
Instance of Symbol 388 MovieClip in Symbol 979 MovieClip Frame 27
onClipEvent (load) {
this.useHandCursor = false;
this.iniX = this._x;
this.iniY = this._y;
}
on (press) {
startDrag (_parent);
}
on (release, releaseOutside) {
stopDrag();
var security = 25;
if ((((_parent._x + this._width) - security) + this.iniX) < 0) {
_parent._x = -((this._width - security) + this.iniX);
}
if ((((_parent._y + this._height) - security) + this.iniY) < 0) {
_parent._y = -((this._height - security) + this.iniY);
}
if (((_parent._x + security) + this.iniX) > 900) {
_parent._x = (900 - security) - this.iniX;
}
if (((_parent._y + security) + this.iniY) > 500) {
_parent._y = (500 - security) - this.iniY;
}
}
Instance of Symbol 439 MovieClip [zButton] in Symbol 979 MovieClip Frame 27
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "radioGroup";
label = "Aceptar";
selected = false;
skin = "_skinBtnNextPlayer";
type = "Button";
}
on (release) {
if (_parent.lst1.selectedItem == undefined) {
return(undefined);
}
_parent.lst2.addItem({label:_parent.lst1.selectedItem.label, id:_parent.lst1.selectedItem.id});
_parent.lst1.removeItemAt(_parent.lst1.selectedIndex);
_parent.btnOK.enabled = _parent.lst1.dataProvider.length == _parent.lst2.dataProvider.length;
}
Instance of Symbol 439 MovieClip [zButton] in Symbol 979 MovieClip Frame 27
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "radioGroup";
label = "Aceptar";
selected = false;
skin = "_skinBtnNextPlayer";
type = "Button";
}
on (release) {
if (_parent.lst2.selectedItem == undefined) {
return(undefined);
}
_parent.lst1.addItem({label:_parent.lst2.selectedItem.label, id:_parent.lst2.selectedItem.id});
_parent.lst2.removeItemAt(_parent.lst2.selectedIndex);
_parent.btnOK.enabled = _parent.lst1.dataProvider.length == _parent.lst2.dataProvider.length;
}
Instance of Symbol 38 MovieClip [zListBox] "lst1" in Symbol 979 MovieClip Frame 27
//component parameters
onClipEvent (construct) {
data = [];
data[0] = "defaultValue";
data[1] = "defaultValue";
data[2] = "defaultValue";
data[3] = "defaultValue";
data[4] = "defaultValue";
enabled = true;
hScrollPolicy = "off";
multipleSelection = false;
skin = "_skinListaSoloTexto";
vScrollPolicy = "auto";
}
Instance of Symbol 38 MovieClip [zListBox] "lst2" in Symbol 979 MovieClip Frame 27
//component parameters
onClipEvent (construct) {
data = [];
data[0] = "defaultValue";
data[1] = "defaultValue";
data[2] = "defaultValue";
data[3] = "defaultValue";
data[4] = "defaultValue";
data[5] = "defaultValue";
data[6] = "defaultValue";
enabled = true;
hScrollPolicy = "off";
multipleSelection = false;
skin = "_skinListaSoloTexto";
vScrollPolicy = "auto";
}
Instance of Symbol 439 MovieClip [zButton] "btnOK" in Symbol 979 MovieClip Frame 27
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "radioGroup";
label = "Aceptar";
selected = false;
skin = "_skinButtonAceptar";
type = "Button";
}
onClipEvent (load) {
this.enabled = false;
}
on (release) {
this._onRelease();
this.enabled = false;
_parent.sendUpdate();
_parent.Escape();
}
Symbol 979 MovieClip Frame 28
function Escape() {
Selection.setFocus(_root.mcConectado.mcChat.txtIn);
_parent.removeMovieClip();
}
function sendUpdate() {
var _local4 = lst1.dataProvider.length;
var _local3 = 0;
while (_local3 < _local4) {
newUsers[_local3] = lst1.dataProvider[_local3].id;
_local3++;
}
_local4 = lst2.dataProvider.length;
_local3 = 0;
while (_local3 < _local4) {
newUsers[2 + _local3] = lst2.dataProvider[_local3].id;
_local3++;
}
_local4 = lst3.dataProvider.length;
_local3 = 0;
while (_local3 < _local4) {
newUsers[4 + _local3] = lst3.dataProvider[_local3].id;
_local3++;
}
if (!checkPositions()) {
return(undefined);
}
if (_global.rg.idUser == gMatchs[gMatchs.find("idMatch", _global.rg.idMatch)].idOwner) {
var _local9 = _root.mcConectado.mcVersus.antOptions.matchTitle;
var _local11 = _root.mcConectado.mcVersus.antOptions.passwd;
var _local6 = _root.mcConectado.mcVersus.antOptions.numPlayers;
var _local8 = _root.mcConectado.mcVersus.antOptions.guests;
var _local7 = _root.mcConectado.mcVersus.antOptions.audience;
var _local10 = _root.mcConectado.mcVersus.antOptions.audienceTalk;
var _local5 = _root.mcConectado.mcVersus.antOptions.goOnLeave;
_global.rg.updateMatch(_local9, _local11, _local6, _local8, _local7, _local10, _local5, Serialize.code(_global.extra).split("'").join("\\'"), newUsers);
}
}
function checkPositions() {
var _local2 = (lst1.dataProvider.length + lst2.dataProvider.length) + lst3.dataProvider.length;
var _local1 = 0;
while (_local1 < _local2) {
if (newUsers[_local1] != match.users[_local1]) {
return(true);
}
_local1++;
}
return(false);
}
keyLst.onKeyUp = function () {
switch (Key.getCode()) {
case 27 :
Escape();
return;
case 13 :
sendUpdate();
Escape();
}
};
var match = gMatchs[gMatchs.find("idMatch", _global.rg.idMatch)].clone();
var newUsers = new Array();
lst1.onRenderRow = function (item, datos) {
if (datos.id == match.idOwner) {
item.onRollOver = undefined;
item.onRollOut = undefined;
item.onRelease = undefined;
item.onReleaseOutside = undefined;
item.onPress = undefined;
item.useHandCursor = false;
item.txtLabel.textColor = 7829367 /* 0x777777 */;
} else {
item.txtLabel.textColor = 0;
}
item.txtLabel.text = datos.label;
};
var i = 0;
while (i < 2) {
if (match.users[i] != undefined) {
var user = _global.gUsers[_global.gUsers.find("idUser", match.users[i])];
lst1.addItem({label:user.userName, id:user.idUser});
}
i++;
}
var i = 2;
while (i < 4) {
if (match.users[i] != undefined) {
var user = _global.gUsers[_global.gUsers.find("idUser", match.users[i])];
lst2.addItem({label:user.userName, id:user.idUser});
}
i++;
}
var i = 4;
while (i < 6) {
if (match.users[i] != undefined) {
var user = _global.gUsers[_global.gUsers.find("idUser", match.users[i])];
lst3.addItem({label:user.userName, id:user.idUser});
}
i++;
}
lst1.render();
Instance of Symbol 388 MovieClip in Symbol 979 MovieClip Frame 28
onClipEvent (load) {
this.useHandCursor = false;
this.iniX = this._x;
this.iniY = this._y;
}
on (press) {
startDrag (_parent);
}
on (release, releaseOutside) {
stopDrag();
var security = 25;
if ((((_parent._x + this._width) - security) + this.iniX) < 0) {
_parent._x = -((this._width - security) + this.iniX);
}
if ((((_parent._y + this._height) - security) + this.iniY) < 0) {
_parent._y = -((this._height - security) + this.iniY);
}
if (((_parent._x + security) + this.iniX) > 900) {
_parent._x = (900 - security) - this.iniX;
}
if (((_parent._y + security) + this.iniY) > 500) {
_parent._y = (500 - security) - this.iniY;
}
}
Instance of Symbol 439 MovieClip [zButton] in Symbol 979 MovieClip Frame 28
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "radioGroup";
label = "Aceptar";
selected = false;
skin = "_skinBtnNextPlayer";
type = "Button";
}
on (release) {
if (_parent.lst1.selectedItem == undefined) {
return(undefined);
}
_parent.lst2.addItem({label:_parent.lst1.selectedItem.label, id:_parent.lst1.selectedItem.id});
_parent.lst1.removeItemAt(_parent.lst1.selectedIndex);
_parent.btnOK.enabled = ((_parent.lst1.dataProvider.length == 2) && (_parent.lst2.dataProvider.length == 2)) && (_parent.lst3.dataProvider.length == 2);
}
Instance of Symbol 439 MovieClip [zButton] in Symbol 979 MovieClip Frame 28
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "radioGroup";
label = "Aceptar";
selected = false;
skin = "_skinBtnNextPlayer";
type = "Button";
}
on (release) {
if (_parent.lst2.selectedItem == undefined) {
return(undefined);
}
_parent.lst1.addItem({label:_parent.lst2.selectedItem.label, id:_parent.lst2.selectedItem.id});
_parent.lst2.removeItemAt(_parent.lst2.selectedIndex);
_parent.btnOK.enabled = ((_parent.lst1.dataProvider.length == 2) && (_parent.lst2.dataProvider.length == 2)) && (_parent.lst3.dataProvider.length == 2);
}
Instance of Symbol 38 MovieClip [zListBox] "lst1" in Symbol 979 MovieClip Frame 28
//component parameters
onClipEvent (construct) {
enabled = true;
hScrollPolicy = "off";
multipleSelection = false;
skin = "_skinListaSoloTexto";
vScrollPolicy = "auto";
}
Instance of Symbol 38 MovieClip [zListBox] "lst2" in Symbol 979 MovieClip Frame 28
//component parameters
onClipEvent (construct) {
enabled = true;
hScrollPolicy = "off";
multipleSelection = false;
skin = "_skinListaSoloTexto";
vScrollPolicy = "auto";
}
Instance of Symbol 439 MovieClip [zButton] "btnOK" in Symbol 979 MovieClip Frame 28
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "radioGroup";
label = "Aceptar";
selected = false;
skin = "_skinButtonAceptar";
type = "Button";
}
onClipEvent (load) {
this.enabled = false;
}
on (release) {
this._onRelease();
this.enabled = false;
_parent.sendUpdate();
_parent.Escape();
}
Instance of Symbol 38 MovieClip [zListBox] "lst3" in Symbol 979 MovieClip Frame 28
//component parameters
onClipEvent (construct) {
enabled = true;
hScrollPolicy = "off";
multipleSelection = false;
skin = "_skinListaSoloTexto";
vScrollPolicy = "auto";
}
Instance of Symbol 439 MovieClip [zButton] in Symbol 979 MovieClip Frame 28
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "radioGroup";
label = "Aceptar";
selected = false;
skin = "_skinChatTabClose";
type = "Button";
}
on (release) {
this._onRelease();
this.enabled = false;
_parent.Escape();
}
Instance of Symbol 439 MovieClip [zButton] in Symbol 979 MovieClip Frame 28
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "radioGroup";
label = "Aceptar";
selected = false;
skin = "_skinBtnNextPlayer";
type = "Button";
}
on (release) {
if (_parent.lst2.selectedItem == undefined) {
return(undefined);
}
_parent.lst3.addItem({label:_parent.lst2.selectedItem.label, id:_parent.lst2.selectedItem.id});
_parent.lst2.removeItemAt(_parent.lst2.selectedIndex);
_parent.btnOK.enabled = ((_parent.lst1.dataProvider.length == 2) && (_parent.lst2.dataProvider.length == 2)) && (_parent.lst3.dataProvider.length == 2);
}
Instance of Symbol 439 MovieClip [zButton] in Symbol 979 MovieClip Frame 28
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "radioGroup";
label = "Aceptar";
selected = false;
skin = "_skinBtnNextPlayer";
type = "Button";
}
on (release) {
if (_parent.lst3.selectedItem == undefined) {
return(undefined);
}
_parent.lst2.addItem({label:_parent.lst3.selectedItem.label, id:_parent.lst3.selectedItem.id});
_parent.lst3.removeItemAt(_parent.lst3.selectedIndex);
_parent.btnOK.enabled = ((_parent.lst1.dataProvider.length == 2) && (_parent.lst2.dataProvider.length == 2)) && (_parent.lst3.dataProvider.length == 2);
}
Symbol 979 MovieClip Frame 29
function Escape() {
keyLst.onKeyUp = _root.mcConectado.mcChat.Enter;
Selection.setFocus(_root.mcConectado.mcChat.txtIn);
_parent.removeMovieClip();
}
keyLst.onKeyUp = function () {
switch (Key.getCode()) {
case 27 :
case 13 :
Escape();
}
};
Instance of Symbol 388 MovieClip in Symbol 979 MovieClip Frame 29
onClipEvent (load) {
this.useHandCursor = false;
this.iniX = this._x;
this.iniY = this._y;
}
on (press) {
startDrag (_parent);
}
on (release, releaseOutside) {
stopDrag();
var security = 25;
if ((((_parent._x + this._width) - security) + this.iniX) < 0) {
_parent._x = -((this._width - security) + this.iniX);
}
if ((((_parent._y + this._height) - security) + this.iniY) < 0) {
_parent._y = -((this._height - security) + this.iniY);
}
if (((_parent._x + security) + this.iniX) > 900) {
_parent._x = (900 - security) - this.iniX;
}
if (((_parent._y + security) + this.iniY) > 500) {
_parent._y = (500 - security) - this.iniY;
}
}
Instance of Symbol 439 MovieClip [zButton] in Symbol 979 MovieClip Frame 29
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "radioGroup";
label = "Aceptar";
selected = false;
skin = "_skinChatTabClose";
type = "Button";
}
on (release) {
this._onRelease();
this.enabled = false;
_parent.Escape();
}
Symbol 979 MovieClip Frame 30
function Escape() {
keyLst.onKeyUp = _global.rutaChat.Enter;
Selection.setFocus(_global.rutaChat.txtIn);
_parent.removeMovieClip();
}
stop();
keyLst.onKeyUp = function () {
switch (Key.getCode()) {
case 27 :
case 13 :
Escape();
}
};
Instance of Symbol 388 MovieClip in Symbol 979 MovieClip Frame 30
onClipEvent (load) {
this.useHandCursor = false;
this.iniX = this._x;
this.iniY = this._y;
}
on (press) {
startDrag (_parent);
}
on (release, releaseOutside) {
stopDrag();
var security = 25;
if ((((_parent._x + this._width) - security) + this.iniX) < 0) {
_parent._x = -((this._width - security) + this.iniX);
}
if ((((_parent._y + this._height) - security) + this.iniY) < 0) {
_parent._y = -((this._height - security) + this.iniY);
}
if (((_parent._x + security) + this.iniX) > 900) {
_parent._x = (900 - security) - this.iniX;
}
if (((_parent._y + security) + this.iniY) > 500) {
_parent._y = (500 - security) - this.iniY;
}
}
Instance of Symbol 439 MovieClip [zButton] "btnEnviar" in Symbol 979 MovieClip Frame 30
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "radioGroup";
label = "Aceptar";
selected = false;
skin = "_skinButtonOK";
type = "Button";
}
on (release) {
this._onRelease();
this.enabled = false;
_parent.Escape();
}
Symbol 979 MovieClip Frame 31
function Escape() {
keyLst.onKeyUp = _global.rutaChat.Enter;
Selection.setFocus(_global.rutaChat.txtIn);
_parent.removeMovieClip();
}
stop();
keyLst.onKeyUp = function () {
switch (Key.getCode()) {
case 27 :
case 13 :
Escape();
}
};
Instance of Symbol 388 MovieClip in Symbol 979 MovieClip Frame 31
onClipEvent (load) {
this.useHandCursor = false;
this.iniX = this._x;
this.iniY = this._y;
}
on (press) {
startDrag (_parent);
}
on (release, releaseOutside) {
stopDrag();
var security = 25;
if ((((_parent._x + this._width) - security) + this.iniX) < 0) {
_parent._x = -((this._width - security) + this.iniX);
}
if ((((_parent._y + this._height) - security) + this.iniY) < 0) {
_parent._y = -((this._height - security) + this.iniY);
}
if (((_parent._x + security) + this.iniX) > 900) {
_parent._x = (900 - security) - this.iniX;
}
if (((_parent._y + security) + this.iniY) > 500) {
_parent._y = (500 - security) - this.iniY;
}
}
Symbol 979 MovieClip Frame 32
function Escape() {
keyLst.onKeyUp = _global.rutaChat.Enter;
Selection.setFocus(_global.rutaChat.txtIn);
_parent.removeMovieClip();
}
stop();
keyLst.onKeyUp = function () {
switch (Key.getCode()) {
case 27 :
case 13 :
Escape();
}
};
Instance of Symbol 388 MovieClip in Symbol 979 MovieClip Frame 32
onClipEvent (load) {
this.useHandCursor = false;
this.iniX = this._x;
this.iniY = this._y;
}
on (press) {
startDrag (_parent);
}
on (release, releaseOutside) {
stopDrag();
var security = 25;
if ((((_parent._x + this._width) - security) + this.iniX) < 0) {
_parent._x = -((this._width - security) + this.iniX);
}
if ((((_parent._y + this._height) - security) + this.iniY) < 0) {
_parent._y = -((this._height - security) + this.iniY);
}
if (((_parent._x + security) + this.iniX) > 900) {
_parent._x = (900 - security) - this.iniX;
}
if (((_parent._y + security) + this.iniY) > 500) {
_parent._y = (500 - security) - this.iniY;
}
}
Symbol 979 MovieClip Frame 33
function Escape() {
keyLst.onKeyUp = _global.rutaChat.Enter;
Selection.setFocus(_global.rutaChat.txtIn);
_parent.removeMovieClip();
}
stop();
keyLst.onKeyUp = function () {
switch (Key.getCode()) {
case 27 :
case 13 :
Escape();
}
};
Instance of Symbol 388 MovieClip in Symbol 979 MovieClip Frame 33
onClipEvent (load) {
this.useHandCursor = false;
this.iniX = this._x;
this.iniY = this._y;
}
on (press) {
startDrag (_parent);
}
on (release, releaseOutside) {
stopDrag();
var security = 25;
if ((((_parent._x + this._width) - security) + this.iniX) < 0) {
_parent._x = -((this._width - security) + this.iniX);
}
if ((((_parent._y + this._height) - security) + this.iniY) < 0) {
_parent._y = -((this._height - security) + this.iniY);
}
if (((_parent._x + security) + this.iniX) > 900) {
_parent._x = (900 - security) - this.iniX;
}
if (((_parent._y + security) + this.iniY) > 500) {
_parent._y = (500 - security) - this.iniY;
}
}
Instance of Symbol 439 MovieClip [zButton] "btnEnviar" in Symbol 979 MovieClip Frame 33
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "radioGroup";
label = "Aceptar";
selected = false;
skin = "_skinButtonOK";
type = "Button";
}
on (release) {
this._onRelease();
this.enabled = false;
_parent.Escape();
}
Symbol 979 MovieClip Frame 34
function Escape() {
keyLst.onKeyUp = _global.rutaChat.Enter;
Selection.setFocus(_global.rutaChat.txtIn);
_parent.removeMovieClip();
}
stop();
keyLst.onKeyUp = function () {
switch (Key.getCode()) {
case 27 :
case 13 :
Escape();
}
};
Instance of Symbol 388 MovieClip in Symbol 979 MovieClip Frame 34
onClipEvent (load) {
this.useHandCursor = false;
this.iniX = this._x;
this.iniY = this._y;
}
on (press) {
startDrag (_parent);
}
on (release, releaseOutside) {
stopDrag();
var security = 25;
if ((((_parent._x + this._width) - security) + this.iniX) < 0) {
_parent._x = -((this._width - security) + this.iniX);
}
if ((((_parent._y + this._height) - security) + this.iniY) < 0) {
_parent._y = -((this._height - security) + this.iniY);
}
if (((_parent._x + security) + this.iniX) > 900) {
_parent._x = (900 - security) - this.iniX;
}
if (((_parent._y + security) + this.iniY) > 500) {
_parent._y = (500 - security) - this.iniY;
}
}
Instance of Symbol 439 MovieClip [zButton] "btnEnviar" in Symbol 979 MovieClip Frame 34
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "radioGroup";
label = "Aceptar";
selected = false;
skin = "_skinButtonOK";
type = "Button";
}
on (release) {
this._onRelease();
this.enabled = false;
_parent.Escape();
}
Symbol 979 MovieClip Frame 35
function Escape() {
keyLst.onKeyUp = _global.rutaChat.Enter;
Selection.setFocus(_global.rutaChat.txtIn);
_parent.removeMovieClip();
}
stop();
keyLst.onKeyUp = function () {
switch (Key.getCode()) {
case 27 :
case 13 :
Escape();
}
};
Instance of Symbol 388 MovieClip in Symbol 979 MovieClip Frame 35
onClipEvent (load) {
this.useHandCursor = false;
this.iniX = this._x;
this.iniY = this._y;
}
on (press) {
startDrag (_parent);
}
on (release, releaseOutside) {
stopDrag();
var security = 25;
if ((((_parent._x + this._width) - security) + this.iniX) < 0) {
_parent._x = -((this._width - security) + this.iniX);
}
if ((((_parent._y + this._height) - security) + this.iniY) < 0) {
_parent._y = -((this._height - security) + this.iniY);
}
if (((_parent._x + security) + this.iniX) > 900) {
_parent._x = (900 - security) - this.iniX;
}
if (((_parent._y + security) + this.iniY) > 500) {
_parent._y = (500 - security) - this.iniY;
}
}
Instance of Symbol 439 MovieClip [zButton] "btnEnviar" in Symbol 979 MovieClip Frame 35
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "radioGroup";
label = "Aceptar";
selected = false;
skin = "_skinButtonOK";
type = "Button";
}
on (release) {
this._onRelease();
this.enabled = false;
_parent.Escape();
}
Symbol 979 MovieClip Frame 36
stop();
keyLst.onKeyUp = function () {
switch (Key.getCode()) {
case 27 :
case 13 :
}
};
Instance of Symbol 388 MovieClip in Symbol 979 MovieClip Frame 36
onClipEvent (load) {
this.useHandCursor = false;
this.iniX = this._x;
this.iniY = this._y;
}
on (press) {
startDrag (_parent);
}
on (release, releaseOutside) {
stopDrag();
var security = 25;
if ((((_parent._x + this._width) - security) + this.iniX) < 0) {
_parent._x = -((this._width - security) + this.iniX);
}
if ((((_parent._y + this._height) - security) + this.iniY) < 0) {
_parent._y = -((this._height - security) + this.iniY);
}
if (((_parent._x + security) + this.iniX) > 900) {
_parent._x = (900 - security) - this.iniX;
}
if (((_parent._y + security) + this.iniY) > 500) {
_parent._y = (500 - security) - this.iniY;
}
}
Symbol 979 MovieClip Frame 37
function Escape() {
keyLst.onKeyUp = _global.rutaChat.Enter;
Selection.setFocus(_global.rutaChat.txtIn);
_parent.removeMovieClip();
}
keyLst.onKeyUp = function () {
switch (Key.getCode()) {
case 27 :
case 13 :
Escape();
}
};
Instance of Symbol 388 MovieClip in Symbol 979 MovieClip Frame 37
onClipEvent (load) {
this.useHandCursor = false;
this.iniX = this._x;
this.iniY = this._y;
}
on (press) {
startDrag (_parent);
}
on (release, releaseOutside) {
stopDrag();
var security = 25;
if ((((_parent._x + this._width) - security) + this.iniX) < 0) {
_parent._x = -((this._width - security) + this.iniX);
}
if ((((_parent._y + this._height) - security) + this.iniY) < 0) {
_parent._y = -((this._height - security) + this.iniY);
}
if (((_parent._x + security) + this.iniX) > 900) {
_parent._x = (900 - security) - this.iniX;
}
if (((_parent._y + security) + this.iniY) > 500) {
_parent._y = (500 - security) - this.iniY;
}
}
Instance of Symbol 439 MovieClip [zButton] "btnEnviar" in Symbol 979 MovieClip Frame 37
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "radioGroup";
label = "Aceptar";
selected = false;
skin = "_skinButtonOK";
type = "Button";
}
on (release) {
this._onRelease();
this.enabled = false;
_parent.Escape();
}
Symbol 979 MovieClip Frame 38
function Escape() {
keyLst.onKeyUp = _global.rutaChat.Enter;
Selection.setFocus(_global.rutaChat.txtIn);
_parent.removeMovieClip();
}
keyLst.onKeyUp = function () {
switch (Key.getCode()) {
case 27 :
case 13 :
Escape();
}
};
Instance of Symbol 388 MovieClip in Symbol 979 MovieClip Frame 38
onClipEvent (load) {
this.useHandCursor = false;
this.iniX = this._x;
this.iniY = this._y;
}
on (press) {
startDrag (_parent);
}
on (release, releaseOutside) {
stopDrag();
var security = 25;
if ((((_parent._x + this._width) - security) + this.iniX) < 0) {
_parent._x = -((this._width - security) + this.iniX);
}
if ((((_parent._y + this._height) - security) + this.iniY) < 0) {
_parent._y = -((this._height - security) + this.iniY);
}
if (((_parent._x + security) + this.iniX) > 900) {
_parent._x = (900 - security) - this.iniX;
}
if (((_parent._y + security) + this.iniY) > 500) {
_parent._y = (500 - security) - this.iniY;
}
}
Symbol 979 MovieClip Frame 39
function Escape() {
keyLst.onKeyUp = _global.rutaChat.Enter;
Selection.setFocus(_global.rutaChat.txtIn);
_parent.removeMovieClip();
}
keyLst.onKeyUp = function () {
switch (Key.getCode()) {
case 27 :
case 13 :
Escape();
}
};
Instance of Symbol 388 MovieClip in Symbol 979 MovieClip Frame 39
onClipEvent (load) {
this.useHandCursor = false;
this.iniX = this._x;
this.iniY = this._y;
}
on (press) {
startDrag (_parent);
}
on (release, releaseOutside) {
stopDrag();
var security = 25;
if ((((_parent._x + this._width) - security) + this.iniX) < 0) {
_parent._x = -((this._width - security) + this.iniX);
}
if ((((_parent._y + this._height) - security) + this.iniY) < 0) {
_parent._y = -((this._height - security) + this.iniY);
}
if (((_parent._x + security) + this.iniX) > 900) {
_parent._x = (900 - security) - this.iniX;
}
if (((_parent._y + security) + this.iniY) > 500) {
_parent._y = (500 - security) - this.iniY;
}
}
Symbol 982 MovieClip Frame 1
this.useHandCursor = false;
Symbol 991 MovieClip Frame 1
Instance of Symbol 877 MovieClip "mcVictoria" in Symbol 994 MovieClip [smUp] Frame 1
on (rollOver, dragOver) {
var THIS = this;
var wait = function () {
THIS.mcToolTip = _root.mcConectado.attachMovie("mcToolTips", "mcToolTip", 100);
THIS.mcToolTip._x = (_root.mcConectado._xmouse - (THIS.mcToolTip._width / 2)) + 50;
THIS.mcToolTip._y = _root.mcConectado._ymouse - THIS.mcToolTip._height;
THIS.mcToolTip.gotoAndStop(THIS._name.toString());
};
clearInterval(this.idWait);
this.idWait = tmo.setTimeout(wait, 800);
}
on (releaseOutside, rollOut, dragOut) {
clearInterval(this.idWait);
this.mcToolTip.removeMovieClip();
}
Instance of Symbol 877 MovieClip "mcVictoria" in Symbol 995 MovieClip [smDown] Frame 1
on (rollOver, dragOver) {
var THIS = this;
var wait = function () {
THIS.mcToolTip = _root.mcConectado.attachMovie("mcToolTips", "mcToolTip", 100);
THIS.mcToolTip._x = (_root.mcConectado._xmouse - (THIS.mcToolTip._width / 2)) + 50;
THIS.mcToolTip._y = _root.mcConectado._ymouse - THIS.mcToolTip._height;
THIS.mcToolTip.gotoAndStop(THIS._name.toString());
};
clearInterval(this.idWait);
this.idWait = tmo.setTimeout(wait, 800);
}
on (releaseOutside, rollOut, dragOut) {
clearInterval(this.idWait);
this.mcToolTip.removeMovieClip();
}
Symbol 996 MovieClip Frame 1
SecurityChat.useHandCursor = false;
sm25.stop();
var code = [":)", ":(", ":P", ":D", "xD", "o_O", ":Z", "(H)", ":@", ":O", ":T", ";)", ":$", ":S", ":_(", "(6)", "(Y)", "(N)", ":!", "(Q)", "(I)", "(*)", "(L)", "(T)", "$", "OK", "KO", "opqa"];
var j = 0;
while (j < 28) {
this["sm" + j].mColor = new Color(this["sm" + j]);
this["sm" + j].mTransform = this["sm" + j].mColor.getTransform();
this["sm" + j].code = code[j];
this["sm" + j].onRollOver = function () {
this.mColor.setTransform({rb:80, gb:80, bb:80, ab:0});
};
this["sm" + j].onRollOut = (this["sm" + j].onDragOut = function () {
this.mColor.setTransform(this.mTransform);
});
this["sm" + j].onPress = (this["sm" + j].onDragOver = function () {
this.mColor.setTransform({rb:-50, gb:-50, bb:-50, ab:0});
});
this["sm" + j].onRelease = function () {
this.mColor.setTransform({rb:80, gb:80, bb:80, ab:0});
Selection.setFocus(_parent._parent.txtIn);
Selection.setSelection(_parent.chB, _parent.chE);
_parent._parent.txtIn.replaceSel(this.code);
_parent.play();
};
j++;
}
this.onMouseDown = function () {
if (_parent._currentframe > 1) {
if (!_parent.hitTest(_root._xmouse, _root._ymouse, true)) {
_parent.play();
}
}
};
Instance of Symbol 388 MovieClip in Symbol 996 MovieClip Frame 1
on (release) {
var c = new Color(this);
_global.gColor = "#" + c.getRGB().toString(16);
_global.gOptions.data.chatColor = _global.gColor;
_global.gOptions.flush();
Selection.setFocus(_parent._parent._parent.txtIn);
_parent._parent.play();
}
Instance of Symbol 388 MovieClip in Symbol 996 MovieClip Frame 1
on (release) {
var c = new Color(this);
_global.gColor = "#" + c.getRGB().toString(16);
_global.gOptions.data.chatColor = _global.gColor;
_global.gOptions.flush();
Selection.setFocus(_parent._parent._parent.txtIn);
_parent._parent.play();
}
Instance of Symbol 388 MovieClip in Symbol 996 MovieClip Frame 1
on (release) {
var c = new Color(this);
_global.gColor = "#" + c.getRGB().toString(16);
_global.gOptions.data.chatColor = _global.gColor;
_global.gOptions.flush();
Selection.setFocus(_parent._parent._parent.txtIn);
_parent._parent.play();
}
Instance of Symbol 388 MovieClip in Symbol 996 MovieClip Frame 1
on (release) {
var c = new Color(this);
_global.gColor = "#" + c.getRGB().toString(16);
_global.gOptions.data.chatColor = _global.gColor;
_global.gOptions.flush();
Selection.setFocus(_parent._parent._parent.txtIn);
_parent._parent.play();
}
Instance of Symbol 388 MovieClip in Symbol 996 MovieClip Frame 1
on (release) {
var c = new Color(this);
_global.gColor = "#" + c.getRGB().toString(16);
_global.gOptions.data.chatColor = _global.gColor;
_global.gOptions.flush();
Selection.setFocus(_parent._parent._parent.txtIn);
_parent._parent.play();
}
Instance of Symbol 388 MovieClip in Symbol 996 MovieClip Frame 1
on (release) {
var c = new Color(this);
_global.gColor = "#" + c.getRGB().toString(16);
_global.gOptions.data.chatColor = _global.gColor;
_global.gOptions.flush();
Selection.setFocus(_parent._parent._parent.txtIn);
_parent._parent.play();
}
Instance of Symbol 388 MovieClip in Symbol 996 MovieClip Frame 1
on (release) {
var c = new Color(this);
_global.gColor = "#" + c.getRGB().toString(16);
_global.gOptions.data.chatColor = _global.gColor;
_global.gOptions.flush();
Selection.setFocus(_parent._parent._parent.txtIn);
_parent._parent.play();
}
Instance of Symbol 388 MovieClip in Symbol 996 MovieClip Frame 1
on (release) {
var c = new Color(this);
_global.gColor = "#" + c.getRGB().toString(16);
_global.gOptions.data.chatColor = _global.gColor;
_global.gOptions.flush();
Selection.setFocus(_parent._parent._parent.txtIn);
_parent._parent.play();
}
Instance of Symbol 388 MovieClip in Symbol 996 MovieClip Frame 1
on (release) {
var c = new Color(this);
_global.gColor = "#" + c.getRGB().toString(16);
_global.gOptions.data.chatColor = _global.gColor;
_global.gOptions.flush();
Selection.setFocus(_parent._parent._parent.txtIn);
_parent._parent.play();
}
Instance of Symbol 388 MovieClip in Symbol 996 MovieClip Frame 1
on (release) {
var c = new Color(this);
_global.gColor = "#" + c.getRGB().toString(16);
_global.gOptions.data.chatColor = _global.gColor;
_global.gOptions.flush();
Selection.setFocus(_parent._parent._parent.txtIn);
_parent._parent.play();
}
Symbol 997 MovieClip Frame 1
stop();
Instance of Symbol 439 MovieClip [zButton] "cmbSmileys" in Symbol 997 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "radioGroup";
label = "Aceptar";
selected = false;
skin = "_skinButtonChatSmilies";
type = "Button";
}
on (rollOver, dragOver) {
this._onRollOver();
if (Selection.getFocus().slice(-6) == ".txtIn") {
_parent.chB = Selection.getBeginIndex();
_parent.chE = Selection.getEndIndex();
}
var THIS = this;
var wait = function () {
if (_global.escena == "Conexion") {
THIS.mcToolTip = _root.mcConectado.attachMovie("mcToolTips", "mcToolTip", 100);
} else {
THIS.mcToolTip = _root.mcChatWindow.attachMovie("mcToolTips", "mcToolTip", 100);
}
THIS.mcToolTip.gotoAndStop(THIS._name.toString());
THIS.onMouseMove = function () {
if (_global.escena == "Conexion") {
THIS.mcToolTip._x = (_root.mcConectado._xmouse - (THIS.mcToolTip._width / 2)) - 40;
THIS.mcToolTip._y = _root.mcConectado._ymouse - THIS.mcToolTip._height;
} else {
THIS.mcToolTip._x = _root.mcChatWindow._xmouse - (THIS.mcToolTip._width / 2);
THIS.mcToolTip._y = _root.mcChatWindow._ymouse - THIS.mcToolTip._height;
}
updateAfterEvent();
};
THIS.onMouseMove();
};
tmo.clearInterval(this.idWait);
this.idWait = tmo.setTimeout(wait, 800);
}
on (releaseOutside, rollOut, dragOut) {
tmo.clearInterval(this.idWait);
delete this.onMouseMove;
this.mcToolTip.removeMovieClip();
}
on (release) {
this._onRelease();
tmo.clearInterval(this.idWait);
delete this.onMouseMove;
_parent.mcToolTip.removeMovieClip();
_parent.play();
}
Symbol 997 MovieClip Frame 10
stop();
Symbol 998 MovieClip [mcFastChatInput] Frame 1
#initclip 34
Object.registerClass("mcFastChatInput", cFastChatInput);
#endinitclip
txtIn.restrict = "^>";
Instance of Symbol 982 MovieClip in Symbol 998 MovieClip [mcFastChatInput] Frame 1
onClipEvent (load) {
this.useHandCursor = false;
this.iniX = this._x;
this.iniY = this._y;
}
on (press) {
var x = (_root._xmouse - _parent._x);
var y = (_root._ymouse - _parent._y);
_parent.onMouseMove = function () {
_parent._x = _root._xmouse - x;
_parent._y = _root._ymouse - y;
updateAfterEvent();
};
}
on (release, releaseOutside) {
var security = 20;
if ((((_parent._x + this._width) - security) + this.iniX) < 0) {
_parent._x = -((this._width - security) + this.iniX);
}
if ((((_parent._y + this._height) - security) + this.iniY) < 0) {
_parent._y = -((this._height - security) + this.iniY);
}
if (((_parent._x + security) + this.iniX) > 900) {
_parent._x = (900 - security) - this.iniX;
}
if (((_parent._y + security) + this.iniY) > 500) {
_parent._y = (500 - security) - this.iniY;
}
delete _parent.onMouseMove;
Selection.setFocus(_parent.txtIn);
var len = _parent.txtIn.text.length;
Selection.setSelection(len, len);
}
Instance of Symbol 439 MovieClip [zButton] "btnSend" in Symbol 998 MovieClip [mcFastChatInput] Frame 1
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "radioGroup";
label = "Aceptar";
selected = false;
skin = "_skinButtonOK";
type = "Button";
}
Instance of Symbol 439 MovieClip [zButton] "btnClose" in Symbol 998 MovieClip [mcFastChatInput] Frame 1
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "radioGroup";
label = "Aceptar";
selected = false;
skin = "_skinChatTabClose";
type = "Button";
}
Symbol 1001 MovieClip [mcFastChatOutput] Frame 1
#initclip 33
Object.registerClass("mcFastChatOutput", cFastChatOutput);
#endinitclip
stop();
txtOut.addSmiley(":(", "smSad", 18, 16);
txtOut.addSmiley(":)", "smSmiley", 18, 16);
txtOut.addSmiley(":D", "smBiggrin", 18, 16);
txtOut.addSmiley("xD", "smSuperHappy", 18, 16);
txtOut.addSmiley(":P", "smTounge", 18, 16);
txtOut.addSmiley(":S", "smConfused", 18, 16);
txtOut.addSmiley(":$", "smBlush", 18, 16);
txtOut.addSmiley(":O", "smOh", 18, 16);
txtOut.addSmiley("o_O", "smSuperOh", 18, 16);
txtOut.addSmiley(":@", "smMad", 18, 16);
txtOut.addSmiley("(6)", "smEvil", 18, 16);
txtOut.addSmiley(";)", "smWink", 18, 16);
txtOut.addSmiley(":_(", "smCry", 18, 16);
txtOut.addSmiley("(H)", "smHot", 18, 16);
txtOut.addSmiley("(Y)", "smAccept", 18, 16);
txtOut.addSmiley("(N)", "smCancel", 18, 16);
txtOut.addSmiley("(Q)", "smQuestion", 18, 16);
txtOut.addSmiley(":!", "smExclaim", 18, 16);
txtOut.addSmiley("(I)", "smIdea", 18, 16);
txtOut.addSmiley("OK", "smUp", 18, 16);
txtOut.addSmiley("KO", "smDown", 18, 16);
txtOut.addSmiley("(L)", "smHeart", 18, 16);
txtOut.addSmiley("(*)", "smNinja", 18, 16);
txtOut.addSmiley("(T)", "smPhone", 18, 16);
txtOut.addSmiley(":T", "smTwisted", 18, 16);
txtOut.addSmiley(":Z", "smSleep", 18, 16);
txtOut.addSmiley("$", "smCredits", 18, 16);
txtOut.addSmiley("opqa", "smOPQA", 64, 16);
txtOut.addSmiley("OPQA", "smOPQA", 64, 16);
txtOut.addSmiley("(~@\u00AC)", "smPlaca", 18, 16);
Instance of Symbol 750 MovieClip [zRichTextBox] "txtOut" in Symbol 1001 MovieClip [mcFastChatOutput] Frame 1
//component parameters
onClipEvent (construct) {
data = "";
embedFonts = false;
maxLines = 25;
multiline = false;
skin = "mcSkinChat";
}
Symbol 1015 MovieClip [mcSkinButtonBet] Frame 1
stop();
Symbol 1030 MovieClip Frame 20
stop();
Symbol 1032 MovieClip [mcSkinButtonOptions] Frame 1
stop();
Symbol 1041 MovieClip [mcSkinButtonChat] Frame 1
stop();
Symbol 1051 MovieClip [mcSkinButtonExit] Frame 1
stop();
Symbol 1055 MovieClip Frame 1
this.useHandCursor = false;
onRelease = function () {
};
Symbol 1089 MovieClip Frame 1
stop();
Instance of Symbol 388 MovieClip in Symbol 1089 MovieClip Frame 1
onClipEvent (load) {
this.useHandCursor = false;
this.iniX = this._x;
this.iniY = this._y;
}
on (press) {
startDrag (_parent);
}
on (release, releaseOutside) {
stopDrag();
var security = 25;
if ((((_parent._x + this._width) - security) + this.iniX) < 0) {
_parent._x = -((this._width - security) + this.iniX);
}
if ((((_parent._y + this._height) - security) + this.iniY) < 0) {
_parent._y = -((this._height - security) + this.iniY);
}
if (((_parent._x + security) + this.iniX) > 900) {
_parent._x = (900 - security) - this.iniX;
}
if (((_parent._y + security) + this.iniY) > 500) {
_parent._y = (500 - security) - this.iniY;
}
}
Symbol 1089 MovieClip Frame 2
function EnviarRespuesta(bReboot) {
_global.intervalMngr.clearOneInterval("countDown");
if (bReboot && (_global.rg.credits >= _global.game.currentBet)) {
_global.game.readyNewMatch();
nextFrame();
} else {
_global.rg.leaveMatch(true);
}
}
stop();
Instance of Symbol 439 MovieClip [zButton] in Symbol 1089 MovieClip Frame 2
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "radioGroup";
label = "Aceptar";
selected = false;
skin = "_skinButtonYES";
type = "Button";
}
on (release) {
this._onRelease();
this.enabled = false;
_parent.EnviarRespuesta(true);
}
Instance of Symbol 439 MovieClip [zButton] in Symbol 1089 MovieClip Frame 2
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "radioGroup";
label = "Aceptar";
selected = false;
skin = "_skinButtonNO";
type = "Button";
}
on (release) {
this._onRelease();
this.enabled = false;
_parent.EnviarRespuesta(false);
}
Symbol 1089 MovieClip Frame 3
function EnviarRespuesta(bReboot) {
_global.intervalMngr.clearOneInterval("countDown");
if (bReboot && (_global.rg.credits >= _global.game.currentBet)) {
_global.rg.send(("fn'onIncreaseBet'idUser&" + rg.idUser) + ";accept%1");
} else {
_global.rg.send(("fn'onIncreaseBet'idUser&" + rg.idUser) + ";accept%0");
}
_global.game.showMessage("fWaitInitMatch", false);
}
stop();
Instance of Symbol 388 MovieClip in Symbol 1089 MovieClip Frame 3
onClipEvent (load) {
this.useHandCursor = false;
this.iniX = this._x;
this.iniY = this._y;
}
on (press) {
startDrag (_parent);
}
on (release, releaseOutside) {
stopDrag();
var security = 25;
if ((((_parent._x + this._width) - security) + this.iniX) < 0) {
_parent._x = -((this._width - security) + this.iniX);
}
if ((((_parent._y + this._height) - security) + this.iniY) < 0) {
_parent._y = -((this._height - security) + this.iniY);
}
if (((_parent._x + security) + this.iniX) > 900) {
_parent._x = (900 - security) - this.iniX;
}
if (((_parent._y + security) + this.iniY) > 500) {
_parent._y = (500 - security) - this.iniY;
}
}
Instance of Symbol 439 MovieClip [zButton] "chkIgnore" in Symbol 1089 MovieClip Frame 3
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "";
label = "Aceptar";
selected = false;
skin = "skinCheck";
type = "Check";
}
onClipEvent (load) {
function __f_change(eventObj) {
_global.game.ignoreQuerys = this.selected;
_global.rg.send("fn'onIgnoreAllRequest'ignoreAllRequest%" + (this.selected ? 1 : 0));
}
this.addEventListener("change", __f_change);
}
Symbol 1089 MovieClip Frame 4
stop();
Instance of Symbol 388 MovieClip in Symbol 1089 MovieClip Frame 4
onClipEvent (load) {
this.useHandCursor = false;
this.iniX = this._x;
this.iniY = this._y;
}
on (press) {
startDrag (_parent);
}
on (release, releaseOutside) {
stopDrag();
var security = 25;
if ((((_parent._x + this._width) - security) + this.iniX) < 0) {
_parent._x = -((this._width - security) + this.iniX);
}
if ((((_parent._y + this._height) - security) + this.iniY) < 0) {
_parent._y = -((this._height - security) + this.iniY);
}
if (((_parent._x + security) + this.iniX) > 900) {
_parent._x = (900 - security) - this.iniX;
}
if (((_parent._y + security) + this.iniY) > 500) {
_parent._y = (500 - security) - this.iniY;
}
}
Instance of Symbol 439 MovieClip [zButton] in Symbol 1089 MovieClip Frame 4
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "radioGroup";
label = "Aceptar";
selected = false;
skin = "_skinButtonOK";
type = "Button";
}
on (release) {
this._onRelease();
_parent._parent._visible = false;
}
Symbol 1089 MovieClip Frame 5
stop();
Symbol 1089 MovieClip Frame 6
function EnviarRespuesta(bReboot) {
_global.intervalMngr.clearOneInterval("countDown");
if (bReboot && (_global.rg.credits >= 5)) {
_global.rg.send(("fn'onSaveMatch'idUser&" + rg.idUser) + ";accept%1");
} else {
_global.rg.send(("fn'onSaveMatch'idUser&" + rg.idUser) + ";accept%0");
}
_global.game.showMessage("fWaitInitMatch", false);
}
stop();
Instance of Symbol 388 MovieClip in Symbol 1089 MovieClip Frame 6
onClipEvent (load) {
this.useHandCursor = false;
this.iniX = this._x;
this.iniY = this._y;
}
on (press) {
startDrag (_parent);
}
on (release, releaseOutside) {
stopDrag();
var security = 25;
if ((((_parent._x + this._width) - security) + this.iniX) < 0) {
_parent._x = -((this._width - security) + this.iniX);
}
if ((((_parent._y + this._height) - security) + this.iniY) < 0) {
_parent._y = -((this._height - security) + this.iniY);
}
if (((_parent._x + security) + this.iniX) > 900) {
_parent._x = (900 - security) - this.iniX;
}
if (((_parent._y + security) + this.iniY) > 500) {
_parent._y = (500 - security) - this.iniY;
}
}
Instance of Symbol 439 MovieClip [zButton] in Symbol 1089 MovieClip Frame 6
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "radioGroup";
label = "Aceptar";
selected = false;
skin = "_skinButtonYES";
type = "Button";
}
on (release) {
this._onRelease();
this.enabled = false;
_parent.EnviarRespuesta(true);
}
Instance of Symbol 439 MovieClip [zButton] in Symbol 1089 MovieClip Frame 6
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "radioGroup";
label = "Aceptar";
selected = false;
skin = "_skinButtonNO";
type = "Button";
}
on (release) {
this._onRelease();
this.enabled = false;
_parent.EnviarRespuesta(false);
}
Instance of Symbol 439 MovieClip [zButton] "chkIgnore" in Symbol 1089 MovieClip Frame 6
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "";
label = "Aceptar";
selected = false;
skin = "skinCheck";
type = "Check";
}
onClipEvent (load) {
function __f_change(eventObj) {
_global.game.ignoreQuerys = this.selected;
_global.rg.send("fn'onIgnoreAllRequest'ignoreAllRequest%" + (this.selected ? 1 : 0));
}
this.addEventListener("change", __f_change);
}
Symbol 1089 MovieClip Frame 7
stop();
Instance of Symbol 388 MovieClip in Symbol 1089 MovieClip Frame 7
onClipEvent (load) {
this.useHandCursor = false;
this.iniX = this._x;
this.iniY = this._y;
}
on (press) {
startDrag (_parent);
}
on (release, releaseOutside) {
stopDrag();
var security = 25;
if ((((_parent._x + this._width) - security) + this.iniX) < 0) {
_parent._x = -((this._width - security) + this.iniX);
}
if ((((_parent._y + this._height) - security) + this.iniY) < 0) {
_parent._y = -((this._height - security) + this.iniY);
}
if (((_parent._x + security) + this.iniX) > 900) {
_parent._x = (900 - security) - this.iniX;
}
if (((_parent._y + security) + this.iniY) > 500) {
_parent._y = (500 - security) - this.iniY;
}
}
Instance of Symbol 439 MovieClip [zButton] in Symbol 1089 MovieClip Frame 7
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "radioGroup";
label = "Aceptar";
selected = false;
skin = "_skinButtonOK";
type = "Button";
}
on (release) {
this._onRelease();
_parent._parent._visible = false;
}
Symbol 1089 MovieClip Frame 8
stop();
Symbol 1089 MovieClip Frame 9
stop();
Symbol 1089 MovieClip Frame 10
stop();
Instance of Symbol 439 MovieClip [zButton] in Symbol 1089 MovieClip Frame 10
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "radioGroup";
label = "Aceptar";
selected = false;
skin = "_skinButtonOK";
type = "Button";
}
on (release) {
this._onRelease();
_parent._parent._visible = false;
}
Symbol 1089 MovieClip Frame 11
stop();
Symbol 1089 MovieClip Frame 12
stop();
Instance of Symbol 439 MovieClip [zButton] in Symbol 1089 MovieClip Frame 12
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "radioGroup";
label = "Aceptar";
selected = false;
skin = "_skinButtonOK";
type = "Button";
}
on (release) {
this._onRelease();
_parent._parent._visible = false;
}
Symbol 1089 MovieClip Frame 13
function EnviarRespuesta(bReboot) {
_global.intervalMngr.clearOneInterval("countDown");
if (bReboot) {
_global.rg.send(("fn'onResetBet'idUser&" + rg.idUser) + ";accept%1");
} else {
_global.rg.send(("fn'onResetBet'idUser&" + rg.idUser) + ";accept%0");
}
_global.game.showMessage("fWaitInitMatch", false);
}
stop();
Instance of Symbol 388 MovieClip in Symbol 1089 MovieClip Frame 13
onClipEvent (load) {
this.useHandCursor = false;
this.iniX = this._x;
this.iniY = this._y;
}
on (press) {
startDrag (_parent);
}
on (release, releaseOutside) {
stopDrag();
var security = 25;
if ((((_parent._x + this._width) - security) + this.iniX) < 0) {
_parent._x = -((this._width - security) + this.iniX);
}
if ((((_parent._y + this._height) - security) + this.iniY) < 0) {
_parent._y = -((this._height - security) + this.iniY);
}
if (((_parent._x + security) + this.iniX) > 900) {
_parent._x = (900 - security) - this.iniX;
}
if (((_parent._y + security) + this.iniY) > 500) {
_parent._y = (500 - security) - this.iniY;
}
}
Instance of Symbol 439 MovieClip [zButton] in Symbol 1089 MovieClip Frame 13
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "radioGroup";
label = "Aceptar";
selected = false;
skin = "_skinButtonYES";
type = "Button";
}
on (release) {
this._onRelease();
this.enabled = false;
_parent.EnviarRespuesta(true);
}
Instance of Symbol 439 MovieClip [zButton] in Symbol 1089 MovieClip Frame 13
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "radioGroup";
label = "Aceptar";
selected = false;
skin = "_skinButtonNO";
type = "Button";
}
on (release) {
this._onRelease();
this.enabled = false;
_parent.EnviarRespuesta(false);
}
Instance of Symbol 439 MovieClip [zButton] "chkIgnore" in Symbol 1089 MovieClip Frame 13
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "";
label = "Aceptar";
selected = false;
skin = "skinCheck";
type = "Check";
}
onClipEvent (load) {
function __f_change(eventObj) {
_global.game.ignoreQuerys = this.selected;
_global.rg.send("fn'onIgnoreAllRequest'ignoreAllRequest%" + (this.selected ? 1 : 0));
}
this.addEventListener("change", __f_change);
}
Symbol 1089 MovieClip Frame 14
stop();
Instance of Symbol 388 MovieClip in Symbol 1089 MovieClip Frame 14
onClipEvent (load) {
this.useHandCursor = false;
this.iniX = this._x;
this.iniY = this._y;
}
on (press) {
startDrag (_parent);
}
on (release, releaseOutside) {
stopDrag();
var security = 25;
if ((((_parent._x + this._width) - security) + this.iniX) < 0) {
_parent._x = -((this._width - security) + this.iniX);
}
if ((((_parent._y + this._height) - security) + this.iniY) < 0) {
_parent._y = -((this._height - security) + this.iniY);
}
if (((_parent._x + security) + this.iniX) > 900) {
_parent._x = (900 - security) - this.iniX;
}
if (((_parent._y + security) + this.iniY) > 500) {
_parent._y = (500 - security) - this.iniY;
}
}
Instance of Symbol 439 MovieClip [zButton] in Symbol 1089 MovieClip Frame 14
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "radioGroup";
label = "Aceptar";
selected = false;
skin = "_skinButtonOK";
type = "Button";
}
on (release) {
this._onRelease();
_parent._parent._visible = false;
}
Symbol 1089 MovieClip Frame 15
function loadMatch() {
var _local4 = _global.parentScene.mcOptionsWindow.lstCargar.selectedItem.codpartida;
var _local3 = _global.parentScene.mcOptionsWindow.lstCargar.selectedItem.matchName;
var _local2 = _global.parentScene.mcOptionsWindow.lstCargar.selectedItem.date;
_global.rg.send(((((((("fn'onLoadMatch'idUser&" + _global.rg.idUser) + ";codpartida&") + _local4) + ";matchName'") + _local3) + "'date'") + _local2) + "'accept%1");
_global.game.showMessage("fWaitInitMatch", false);
}
stop();
Instance of Symbol 439 MovieClip [zButton] in Symbol 1089 MovieClip Frame 15
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "radioGroup";
label = "Aceptar";
selected = false;
skin = "_skinButtonYES";
type = "Button";
}
on (release) {
this._onRelease();
this.enabled = false;
_parent.loadMatch();
}
Instance of Symbol 439 MovieClip [zButton] in Symbol 1089 MovieClip Frame 15
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "radioGroup";
label = "Aceptar";
selected = false;
skin = "_skinButtonNO";
type = "Button";
}
on (release) {
this._onRelease();
_parent._parent._visible = false;
}
Symbol 1089 MovieClip Frame 16
function EnviarRespuesta(bReboot) {
_global.intervalMngr.clearOneInterval("countDown");
if (bReboot) {
_global.rg.send(("fn'onLoadMatch'idUser&" + rg.idUser) + ";accept%1");
} else {
_global.rg.send(("fn'onLoadMatch'idUser&" + rg.idUser) + ";accept%0");
}
_global.game.showMessage("fWaitInitMatch", false);
}
stop();
Instance of Symbol 388 MovieClip in Symbol 1089 MovieClip Frame 16
onClipEvent (load) {
this.useHandCursor = false;
this.iniX = this._x;
this.iniY = this._y;
}
on (press) {
startDrag (_parent);
}
on (release, releaseOutside) {
stopDrag();
var security = 25;
if ((((_parent._x + this._width) - security) + this.iniX) < 0) {
_parent._x = -((this._width - security) + this.iniX);
}
if ((((_parent._y + this._height) - security) + this.iniY) < 0) {
_parent._y = -((this._height - security) + this.iniY);
}
if (((_parent._x + security) + this.iniX) > 900) {
_parent._x = (900 - security) - this.iniX;
}
if (((_parent._y + security) + this.iniY) > 500) {
_parent._y = (500 - security) - this.iniY;
}
}
Instance of Symbol 439 MovieClip [zButton] in Symbol 1089 MovieClip Frame 16
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "radioGroup";
label = "Aceptar";
selected = false;
skin = "_skinButtonYES";
type = "Button";
}
on (release) {
this._onRelease();
this.enabled = false;
_parent.EnviarRespuesta(true);
}
Instance of Symbol 439 MovieClip [zButton] in Symbol 1089 MovieClip Frame 16
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "radioGroup";
label = "Aceptar";
selected = false;
skin = "_skinButtonNO";
type = "Button";
}
on (release) {
this._onRelease();
this.enabled = false;
_parent.EnviarRespuesta(false);
}
Instance of Symbol 439 MovieClip [zButton] "chkIgnore" in Symbol 1089 MovieClip Frame 16
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "";
label = "Aceptar";
selected = false;
skin = "skinCheck";
type = "Check";
}
onClipEvent (load) {
function __f_change(eventObj) {
_global.game.ignoreQuerys = this.selected;
_global.rg.send("fn'onIgnoreAllRequest'ignoreAllRequest%" + (this.selected ? 1 : 0));
}
this.addEventListener("change", __f_change);
}
Symbol 1089 MovieClip Frame 17
function EnviarRespuesta(bReboot) {
_global.intervalMngr.clearOneInterval("countDown");
_global.rg.send((("fn'onNullMatch'idUser&" + rg.idUser) + ";accept%") + (bReboot ? 1 : 0));
_global.game.showMessage("fWaitInitMatch", false);
}
stop();
Instance of Symbol 388 MovieClip in Symbol 1089 MovieClip Frame 17
onClipEvent (load) {
this.useHandCursor = false;
this.iniX = this._x;
this.iniY = this._y;
}
on (press) {
startDrag (_parent);
}
on (release, releaseOutside) {
stopDrag();
var security = 25;
if ((((_parent._x + this._width) - security) + this.iniX) < 0) {
_parent._x = -((this._width - security) + this.iniX);
}
if ((((_parent._y + this._height) - security) + this.iniY) < 0) {
_parent._y = -((this._height - security) + this.iniY);
}
if (((_parent._x + security) + this.iniX) > 900) {
_parent._x = (900 - security) - this.iniX;
}
if (((_parent._y + security) + this.iniY) > 500) {
_parent._y = (500 - security) - this.iniY;
}
}
Instance of Symbol 439 MovieClip [zButton] in Symbol 1089 MovieClip Frame 17
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "radioGroup";
label = "Aceptar";
selected = false;
skin = "_skinButtonYES";
type = "Button";
}
on (release) {
this._onRelease();
this.enabled = false;
_parent.EnviarRespuesta(true);
}
Instance of Symbol 439 MovieClip [zButton] in Symbol 1089 MovieClip Frame 17
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "radioGroup";
label = "Aceptar";
selected = false;
skin = "_skinButtonNO";
type = "Button";
}
on (release) {
this._onRelease();
this.enabled = false;
_parent.EnviarRespuesta(false);
}
Instance of Symbol 439 MovieClip [zButton] "chkIgnore" in Symbol 1089 MovieClip Frame 17
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "";
label = "Aceptar";
selected = false;
skin = "skinCheck";
type = "Check";
}
onClipEvent (load) {
function __f_change(eventObj) {
_global.game.ignoreQuerys = this.selected;
_global.rg.send("fn'onIgnoreAllRequest'ignoreAllRequest%" + (this.selected ? 1 : 0));
}
this.addEventListener("change", __f_change);
}
Symbol 1089 MovieClip Frame 18
stop();
Instance of Symbol 388 MovieClip in Symbol 1089 MovieClip Frame 18
onClipEvent (load) {
this.useHandCursor = false;
this.iniX = this._x;
this.iniY = this._y;
}
on (press) {
startDrag (_parent);
}
on (release, releaseOutside) {
stopDrag();
var security = 25;
if ((((_parent._x + this._width) - security) + this.iniX) < 0) {
_parent._x = -((this._width - security) + this.iniX);
}
if ((((_parent._y + this._height) - security) + this.iniY) < 0) {
_parent._y = -((this._height - security) + this.iniY);
}
if (((_parent._x + security) + this.iniX) > 900) {
_parent._x = (900 - security) - this.iniX;
}
if (((_parent._y + security) + this.iniY) > 500) {
_parent._y = (500 - security) - this.iniY;
}
}
Instance of Symbol 439 MovieClip [zButton] in Symbol 1089 MovieClip Frame 18
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "radioGroup";
label = "Aceptar";
selected = false;
skin = "_skinButtonOK";
type = "Button";
}
on (release) {
this._onRelease();
_parent._parent._visible = false;
}
Symbol 1093 MovieClip [_skinNStepperCreateMatch] Frame 1
txtLabel.restrict = "0-9";
Instance of Symbol 439 MovieClip [zButton] "btnDown" in Symbol 1093 MovieClip [_skinNStepperCreateMatch] Frame 1
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "radioGroup";
label = "Aceptar";
selected = false;
skin = "_skinArrowDown";
type = "Button";
}
Instance of Symbol 439 MovieClip [zButton] "btnUp" in Symbol 1093 MovieClip [_skinNStepperCreateMatch] Frame 1
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "radioGroup";
label = "Aceptar";
selected = false;
skin = "_skinArrowUp";
type = "Button";
}
Instance of Symbol 439 MovieClip [zButton] "btnDown" in Symbol 1099 MovieClip [_SkinDefaultNStepper] Frame 1
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "radioGroup";
label = "Aceptar";
selected = false;
skin = "";
type = "Button";
}
Instance of Symbol 439 MovieClip [zButton] "btnUp" in Symbol 1099 MovieClip [_SkinDefaultNStepper] Frame 1
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "radioGroup";
label = "Aceptar";
selected = false;
skin = "";
type = "Button";
}
Symbol 1100 MovieClip [zNStepper] Frame 1
#initclip 32
Object.registerClass("zNStepper", czNStepper);
#endinitclip
stop();
Symbol 1103 MovieClip [_skinNStepperBet] Frame 1
txtLabel.restrict = "0-9";
Instance of Symbol 439 MovieClip [zButton] "btnDown" in Symbol 1103 MovieClip [_skinNStepperBet] Frame 1
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "radioGroup";
label = "Aceptar";
selected = false;
skin = "_skinArrowDownBet";
type = "Button";
}
Instance of Symbol 439 MovieClip [zButton] "btnUp" in Symbol 1103 MovieClip [_skinNStepperBet] Frame 1
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "radioGroup";
label = "Aceptar";
selected = false;
skin = "_skinArrowUpBet";
type = "Button";
}
Symbol 1110 MovieClip [_skinButtonEcharx2] Frame 1
stop();
Symbol 1120 MovieClip Frame 10
stop();
Symbol 1121 MovieClip Frame 1
stop();
Instance of Symbol 28 MovieClip [zVScrollBar] "mcVSB" in Symbol 1123 MovieClip [_skinListaCargar] Frame 1
//component parameters
onClipEvent (construct) {
_targetInstanceName = "";
_useHandCursor = true;
data = "";
enabled = true;
maxPos = 0;
minPos = 0;
pageSize = 5;
scrollPosition = 0;
skin = "_skinVScrollBarOKRoja";
}
Symbol 1128 MovieClip Frame 1
Symbol 1132 MovieClip [_skinButtonListaSala3Tabs] Frame 1
stop();
Symbol 1141 MovieClip [_skinButtonListaPartida] Frame 1
stop();
Symbol 1145 MovieClip Frame 1
Symbol 1151 MovieClip [_skinButtonListaAmigos2Tabs] Frame 1
stop();
Symbol 1154 MovieClip [_skinButtonListaAmigos3Tabs] Frame 1
stop();
Symbol 1156 MovieClip [_skinButtonListaSala2Tabs] Frame 1
stop();
Symbol 1162 MovieClip [_skinChatTabNext] Frame 1
stop();
stop();
Symbol 1168 MovieClip [_skinChatTabClose] Frame 1
stop();
Symbol 1172 MovieClip [_skinButtonChatSmilies] Frame 1
stop();
Symbol 1175 MovieClip Frame 1
stop();
Symbol 1179 MovieClip Frame 1
function next() {
if (mcBgColor._currentframe < mcBgColor._totalframes) {
mcBgColor.nextFrame();
} else {
delete mcBgColor.onEnterFrame;
}
}
function prev() {
if (mcBgColor._currentframe > 1) {
mcBgColor.prevFrame();
} else {
delete mcBgColor.onEnterFrame;
}
}
stop();
Symbol 1190 MovieClip [_skinOptionsTabServer] Frame 1
stop();
Symbol 1199 MovieClip [_skinOptionsTabMatch] Frame 1
stop();
Symbol 1209 MovieClip [_skinOptionsTabSave] Frame 1
stop();
Symbol 1215 MovieClip [_skinOptionsTabLoad] Frame 1
stop();
Symbol 1219 MovieClip [_skinButtonYES] Frame 1
stop();
Symbol 1223 MovieClip [_skinButtonNO] Frame 1
stop();
Symbol 1227 MovieClip [_skinButtonCargar] Frame 1
stop();
Symbol 1231 MovieClip [_skinButtonCambiar] Frame 1
stop();
Symbol 1235 MovieClip [_skinButtonGuardar] Frame 1
stop();
Symbol 1239 MovieClip [_skinButtonUpdate] Frame 1
stop();
Symbol 1244 MovieClip Frame 1
securityCombo.useHandCursor = false;
Instance of Symbol 38 MovieClip [zListBox] "mcList" in Symbol 1244 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
enabled = true;
hScrollPolicy = "off";
multipleSelection = false;
skin = "_skinListaSoloTexto";
vScrollPolicy = "auto";
}
onClipEvent (load) {
function __f_change(eventObj) {
_parent._parent.txtLabel.text = this.selectedItem.label;
_parent._parent.mcSobre.gotoAndStop(this.selectedItem.icon);
_parent._parent.play();
}
this.addEventListener("change", __f_change);
}
Symbol 1245 MovieClip Frame 1
stop();
_parent.btnDown.selected = false;
Symbol 1245 MovieClip Frame 10
stop();
_parent.btnDown.selected = true;
Instance of Symbol 474 MovieClip in Symbol 1246 MovieClip [_skinComboSoloTexto] Frame 1
on (release) {
_parent.mcLista.play();
}
Instance of Symbol 439 MovieClip [zButton] "btnDown" in Symbol 1246 MovieClip [_skinComboSoloTexto] Frame 1
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "radioGroup";
label = "Aceptar";
selected = false;
skin = "_skinButtonCombo";
type = "Check";
}
on (release) {
_parent.mcLista.play();
}
Symbol 1248 MovieClip Frame 1
stop();
Instance of Symbol 28 MovieClip [zVScrollBar] "mcVSB" in Symbol 1250 MovieClip [_skinListaSoloTexto] Frame 1
//component parameters
onClipEvent (construct) {
_targetInstanceName = "";
_useHandCursor = true;
data = "";
enabled = true;
maxPos = 0;
minPos = 0;
pageSize = 5;
scrollPosition = 0;
skin = "_skinVScrollBarOKRoja";
}
Symbol 1252 MovieClip [_skinChatTabCloseWhite] Frame 1
stop();
Symbol 1257 MovieClip [_skinButtonAnular] Frame 1
stop();
Symbol 1260 MovieClip Frame 1
stop();
Symbol 1262 MovieClip [_skinButtonSalir] Frame 1
stop();
Symbol 1263 MovieClip [_skinButtonListaSala3TabsGame] Frame 1
stop();
Instance of Symbol 28 MovieClip [zVScrollBar] "mcVSB" in Symbol 1264 MovieClip [_skinListaPlayersColor4] Frame 1
//component parameters
onClipEvent (construct) {
_targetInstanceName = "";
_useHandCursor = true;
data = "";
enabled = true;
maxPos = 0;
minPos = 0;
pageSize = 5;
scrollPosition = 0;
skin = "_skinVScrollBarOKColor4";
}
Instance of Symbol 28 MovieClip [zVScrollBar] "mcVSB" in Symbol 1265 MovieClip [_skinListaPlayersColor5] Frame 1
//component parameters
onClipEvent (construct) {
_targetInstanceName = "";
_useHandCursor = true;
data = "";
enabled = true;
maxPos = 0;
minPos = 0;
pageSize = 5;
scrollPosition = 0;
skin = "_skinVScrollBarOKColor5";
}
Instance of Symbol 439 MovieClip [zButton] "mcArrowUp" in Symbol 1275 MovieClip [_skinVScrollBarOKColor4] Frame 1
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "radioGroup";
label = "Aceptar";
selected = false;
skin = "skinArrowUp_Color4";
type = "Button";
}
Instance of Symbol 439 MovieClip [zButton] "mcArrowDown" in Symbol 1275 MovieClip [_skinVScrollBarOKColor4] Frame 1
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "radioGroup";
label = "Aceptar";
selected = false;
skin = "skinArrowDown_Color4";
type = "Button";
}
Symbol 1277 MovieClip [skinArrowDown_Color4] Frame 1
stop();
Symbol 1280 MovieClip [skinArrowUp_Color4] Frame 1
stop();
Symbol 1281 MovieClip Frame 1
Instance of Symbol 439 MovieClip [zButton] "mcArrowUp" in Symbol 1291 MovieClip [_skinVScrollBarOKColor5] Frame 1
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "radioGroup";
label = "Aceptar";
selected = false;
skin = "skinArrowUp_Color5";
type = "Button";
}
Instance of Symbol 439 MovieClip [zButton] "mcArrowDown" in Symbol 1291 MovieClip [_skinVScrollBarOKColor5] Frame 1
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "radioGroup";
label = "Aceptar";
selected = false;
skin = "skinArrowDown_Color5";
type = "Button";
}
Symbol 1293 MovieClip [skinArrowDown_Color5] Frame 1
stop();
Symbol 1296 MovieClip [skinArrowUp_Color5] Frame 1
stop();
Instance of Symbol 439 MovieClip [zButton] "mcArrowUp" in Symbol 1306 MovieClip [_skinVScrollBarOKColor6] Frame 1
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "radioGroup";
label = "Aceptar";
selected = false;
skin = "skinArrowUp_Color6";
type = "Button";
}
Instance of Symbol 439 MovieClip [zButton] "mcArrowDown" in Symbol 1306 MovieClip [_skinVScrollBarOKColor6] Frame 1
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "radioGroup";
label = "Aceptar";
selected = false;
skin = "skinArrowDown_Color6";
type = "Button";
}
Symbol 1308 MovieClip [skinArrowDown_Color6] Frame 1
stop();
Symbol 1311 MovieClip [skinArrowUp_Color6] Frame 1
stop();
Symbol 1321 MovieClip [_skinPerfilPest1] Frame 1
stop();
Symbol 1327 MovieClip [_skinPerfilPest2] Frame 1
stop();
Symbol 1337 MovieClip [_skinPerfilPest3] Frame 1
stop();
Symbol 1343 MovieClip [_skinBtnNextPlayer] Frame 1
stop();
Symbol 1346 MovieClip [_skinButtonAceptar] Frame 1
stop();
Symbol 1350 MovieClip Frame 1
stop();
Instance of Symbol 28 MovieClip [zVScrollBar] "mcVSB" in Symbol 1352 MovieClip [_skinListaCargarConexion] Frame 1
//component parameters
onClipEvent (construct) {
_targetInstanceName = "";
_useHandCursor = true;
data = "";
enabled = true;
maxPos = 0;
minPos = 0;
pageSize = 5;
scrollPosition = 0;
skin = "_skinVScrollBarOKRoja";
}
Symbol 1355 MovieClip Frame 1
stop();
Instance of Symbol 28 MovieClip [zVScrollBar] "mcVSB" in Symbol 1357 MovieClip [_skinListaInvitando] Frame 1
//component parameters
onClipEvent (construct) {
_targetInstanceName = "";
_useHandCursor = true;
data = "";
enabled = true;
maxPos = 0;
minPos = 0;
pageSize = 5;
scrollPosition = 0;
skin = "_skinVScrollBarOKRoja";
}
Symbol 1359 MovieClip [_skinArrowDownBet] Frame 1
stop();
Symbol 1362 MovieClip [_skinArrowUpBet] Frame 1
stop();
Symbol 1373 MovieClip [_skinButtonCrearInfo] Frame 1
stop();
Symbol 1404 MovieClip [mcToolTips] Frame 1
stop();
var THIS = this;
var wait = function () {
THIS.removeMovieClip();
};
tmo.clearInterval(_global.idWait);
_global.idWait = tmo.setTimeout(wait, 4000);
Instance of Symbol 38 MovieClip [zListBox] "mcList" in Symbol 1408 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
enabled = true;
hScrollPolicy = "off";
multipleSelection = false;
skin = "_skinListaNum";
vScrollPolicy = "auto";
}
onClipEvent (load) {
function __f_change(eventObj) {
_parent._parent.txtLabel.text = this.selectedItem.label;
_parent._parent.mcSobre.gotoAndStop(this.selectedItem.icon);
_parent._parent.play();
}
this.addEventListener("change", __f_change);
}
Symbol 1409 MovieClip Frame 1
stop();
_parent.btnDown.selected = false;
Symbol 1409 MovieClip Frame 10
stop();
_parent.btnDown.selected = true;
Instance of Symbol 435 MovieClip in Symbol 1410 MovieClip [_skinComboNum] Frame 1
on (release) {
_parent.mcLista.play();
}
Instance of Symbol 439 MovieClip [zButton] "btnDown" in Symbol 1410 MovieClip [_skinComboNum] Frame 1
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "radioGroup";
label = "Aceptar";
selected = false;
skin = "_skinButtonCombo";
type = "Button";
}
on (release) {
_parent.mcLista.play();
}
Symbol 1412 MovieClip Frame 1
stop();
Instance of Symbol 28 MovieClip [zVScrollBar] "mcVSB" in Symbol 1414 MovieClip [_skinListaNum] Frame 1
//component parameters
onClipEvent (construct) {
_targetInstanceName = "";
_useHandCursor = true;
data = "";
enabled = true;
maxPos = 0;
minPos = 0;
pageSize = 5;
scrollPosition = 0;
skin = "_skinVScrollBarOK";
}
Symbol 1418 MovieClip [skinCheckInvite] Frame 1
stop();
Symbol 1420 MovieClip [skinCheckPrivate] Frame 1
stop();
Symbol 1424 MovieClip [skinCheckSound] Frame 1
stop();
Symbol 1430 MovieClip [_skinButtonCrearTeams] Frame 1
stop();
Symbol 1435 MovieClip [_skinButtonCrearSettings] Frame 1
stop();
Symbol 1439 MovieClip Frame 7
stop();
Symbol 1440 MovieClip [_skinButtonCrearOKGreen] Frame 1
stop();
Symbol 1445 MovieClip Frame 10
stop();
Symbol 1446 MovieClip [_skinOptionButton] Frame 1
stop();
Symbol 1451 MovieClip [_skinButtonChangeUser] Frame 1
stop();
Symbol 1457 MovieClip Frame 15
stop();
Symbol 1460 MovieClip [_skinButtonRegistrate] Frame 1
stop();
Symbol 1464 MovieClip Frame 1
Symbol 1471 MovieClip [_skinButtonExitAbandono] Frame 1
stop();
Symbol 1475 MovieClip [_skinButtonExitAnular] Frame 1
stop();
Symbol 1478 MovieClip [_skinButtonExitJugar] Frame 1
stop();
Symbol 1481 MovieClip [_skinButtonModConsole] Frame 1
stop();
Symbol 1485 MovieClip [_skinButtonIgnorarUsuariox3] Frame 1
stop();
Symbol 1488 MovieClip [_skinButtonEcharx3] Frame 1
stop();
Symbol 1491 MovieClip Frame 1
stop();
Symbol 1494 MovieClip [_skinButtonInvitarUsuariox2] Frame 1
stop();
Symbol 1496 MovieClip Frame 15
stop();
Symbol 1500 MovieClip [_skinButtonAñadirUsuariox2] Frame 1
stop();
Symbol 1503 MovieClip Frame 90
Instance of Symbol 1100 MovieClip [zNStepper] in Symbol 1503 MovieClip Frame 90
//component parameters
onClipEvent (construct) {
enabled = true;
increase = 1;
max = 10;
min = 0;
position = 0;
skin = "_SkinDefaultNStepper";
}
Symbol 1503 MovieClip Frame 115
_root.play();
Symbol 1508 MovieClip Frame 20
stop();
var This = this;
var wait = function () {
if (This) {
play();
}
};
tmo.setTimeout(wait, (Math.random() * 6000) + 4000);
Symbol 1509 MovieClip Frame 1
Symbol 1509 MovieClip Frame 95
stop();
_root.mcPortada.aniMenu.play();
Symbol 1524 Button
on (release) {
tmo.clearAll();
btnJugar.enabled = false;
unloadMovie (_level7);
var snd = new Sound();
snd.fadeOff();
_global.rg.userName = _global.gUserName;
_global.rg.passwd = _global.gPasswd;
_global.rg.host = _global.gamesInfo[_global.gameObj.name].host;
_global.rg.port = _global.gamesInfo[_global.gameObj.name].port;
_global.rg.serverID = _global.gamesInfo[_global.gameObj.name].serverID;
_global.rg.juego = _global.gameObj.name;
var so = SharedObject.getLocal("protection", "/");
_global.rg.dataPC = Serialize.code(so.data);
if (int(_global.rg.host.length) > 0) {
_global.rg.connect();
}
_parent._parent.gFrame = "fConectando";
_parent._parent.gotoAndPlay(_parent._parent.gFrame);
}
Symbol 1529 Button
on (release) {
btnSalir.enabled = false;
_global.gameObj.gameConnect("Home");
}
Symbol 1534 Button
on (release) {
tmo.clearAll();
btnAyuda.enabled = false;
_quality = _global.gOptions.data.quality;
_parent._parent.gFrame = "fAyuda";
_parent._parent.play();
}
Symbol 1546 MovieClip Frame 1
lstIntro = new Object();
lstIntro.onKeyUp = function () {
if (Key.getCode() == 13) {
if (Selection.getFocus() == targetPath(txtUser)) {
Selection.setFocus(txtPasswd);
} else if (Selection.getFocus() == targetPath(txtPasswd)) {
Selection.setFocus(btnOK);
} else if (Selection.getFocus() == targetPath(btnOK)) {
btnOK.enabled = false;
btnOK._onRelease();
if ((chkUser.selected && (int(txtUser.text.length) > 0)) && (int(txtPasswd.text.length) > 0)) {
_global.gUserName = txtUser.text;
_global.gPasswd = txtPasswd.text;
} else {
_global.gUserName = "Invitado";
_global.gPasswd = "";
}
_parent.txtComo.text = "como " + _global.gUserName;
_visible = false;
_parent.btnChangeLogin.enabled = true;
}
}
};
Key.addListener(lstIntro);
txtUser.tabIndex = 1;
txtPasswd.tabIndex = 2;
btnOK.tabIndex = 3;
txtUser.onChanged = function () {
chkUser.selected = txtUser.length > 0;
chkGuest.selected = txtUser.length <= 0;
};
Instance of Symbol 388 MovieClip in Symbol 1546 MovieClip Frame 1
onClipEvent (load) {
this.useHandCursor = false;
}
on (press) {
startDrag (_parent);
}
on (release, releaseOutside) {
stopDrag();
var security = 25;
trace(_parent._x);
trace(_parent._y);
if (_parent._x < -850) {
_parent._x = -850 + security;
}
if (_parent._y < -80) {
_parent._y = -80 + security;
}
if (_parent._x > 180) {
_parent._x = 180 - security;
}
if (_parent._y > 478) {
_parent._y = 478 - security;
}
}
Instance of Symbol 439 MovieClip [zButton] "chkUser" in Symbol 1546 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "gameLogin";
label = "Aceptar";
selected = false;
skin = "_skinOptionButton";
type = "Option";
}
Instance of Symbol 439 MovieClip [zButton] "chkGuest" in Symbol 1546 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "gameLogin";
label = "Aceptar";
selected = false;
skin = "_skinOptionButton";
type = "Option";
}
Instance of Symbol 439 MovieClip [zButton] "btnOK" in Symbol 1546 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "radioGroup";
label = "Aceptar";
selected = false;
skin = "_skinButtonAceptar";
type = "Button";
}
on (release) {
this.enabled = false;
this._onRelease();
if ((_parent.chkUser.selected && (int(_parent.txtUser.text.length) > 0)) && (int(_parent.txtPasswd.text.length) > 0)) {
_global.gUserName = _parent.txtUser.text;
_global.gPasswd = _parent.txtPasswd.text;
} else {
_global.gUserName = "Invitado";
_global.gPasswd = "";
}
_parent._parent.txtComo.text = "como " + _global.gUserName;
_parent._visible = false;
_parent._parent.btnChangeLogin.enabled = true;
}
Instance of Symbol 439 MovieClip [zButton] "btnClose" in Symbol 1546 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "radioGroup";
label = "Aceptar";
selected = false;
skin = "_skinChatTabClose";
type = "Button";
}
on (release) {
this._onRelease();
this.enabled = false;
_parent._visible = false;
_parent._parent.btnChangeLogin.enabled = true;
}
Symbol 1547 MovieClip Frame 1
stop();
Symbol 1547 MovieClip Frame 19
_root._quality = _global.gOptions.data.quality;
Symbol 1547 MovieClip Frame 20
btnJugar.enabled = true;
btnAyuda.enabled = true;
stop();
if ((_root.gUserName != "") && (_root.gUserName != undefined)) {
_global.gUserName = _root.gUserName;
_global.gPasswd = _root.gPasswd;
}
txtComo.text = "como " + _global.gUserName;
Instance of Symbol 439 MovieClip [zButton] "btnChangeLogin" in Symbol 1547 MovieClip Frame 20
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "radioGroup";
label = "Aceptar";
selected = false;
skin = "_skinButtonChangeUser";
type = "Button";
}
on (release) {
this.enabled = false;
_parent.mcChangeLogin._visible = true;
_parent.mcChangeLogin.btnClose.enabled = true;
_parent.mcChangeLogin.btnOK.enabled = true;
if (_global.cookie.so.data.remember) {
_parent.mcChangeLogin.txtUser.text = _global.cookie.so.data.userName;
_parent.mcChangeLogin.txtPasswd.text = _global.cookie.so.data.passwd;
_parent.mcChangeLogin.chkUser.selected = true;
} else {
_parent.mcChangeLogin.txtUser.text = "";
_parent.mcChangeLogin.txtPasswd.text = "";
_parent.mcChangeLogin.chkGuest.selected = true;
}
}
Instance of Symbol 1546 MovieClip "mcChangeLogin" in Symbol 1547 MovieClip Frame 20
onClipEvent (load) {
this._visible = _global.gUserName == "Invitado";
}
Symbol 1548 MovieClip Frame 1
if (_level7 == undefined) {
loadMovieNum (_global.OPQAURL + "juegos/menu/gamesMenu.swf", 7);
}
if (_global.skipIntro) {
mcLogo.gotoAndStop(95);
aniMenu.gotoAndStop(20);
this.gotoAndStop(30);
}
Symbol 1548 MovieClip Frame 15
stop();
Symbol 1548 MovieClip Frame 30
stop();
_root._quality = _global.gOptions.data.quality;
_root.gotoAndPlay(gFrame);
Symbol 1559 MovieClip Frame 1
function EnterFrame() {
var _local3 = "strella" + Nivel;
Nivel++;
if (Nivel > 50) {
Nivel = 0;
}
var _local2 = random(160) - 10;
var _local1 = random(220);
Strella(_local3, _local2, _local1, Nivel);
}
function Strella(Nombre, X, Y, Nivel) {
var _local2 = this.attachMovie("Estrella" + random(3), Nombre, Nivel);
_local2._y = Y;
_local2._x = X;
_local2.vely = 0.5;
_local2._xscale = random(220);
_local2._yscale = random(220);
if (random(2) == 0) {
_local2._rotation = 180;
}
_local2.onEnterFrame = function () {
this._y = this._y + this.vely;
this.vely = this.vely + 0.01;
this._alpha = this._alpha - vAlfa;
if (this._alpha <= 0) {
this.removeMovieClip();
}
};
}
var Nivel = 0;
Symbol 1559 MovieClip Frame 300
gotoAndPlay (2);
Symbol 1565 MovieClip Frame 1
stop();
Symbol 1565 MovieClip Frame 31
stop();
mcContenido.loadMovie(((_global.OPQAURL + "juegos/") + _global.gameObj.name) + "/ayuda3OnLine.swf");
Symbol 1566 MovieClip Frame 1
function wait() {
clearInterval(IdFuncion);
onEnterFrame = Inicio;
}
function Inicio() {
mcHada.onEnterFrame = mcHada.EnterFrame;
mcHada._x = mcHada._x + ((117.85 - mcHada._x) / vel);
vel = vel - ace;
if (mcHada._x > 117.85) {
this.onEnterFrame = null;
Punto.x = mcHada._x - 7;
Punto.y = mcHada._y - 3;
onEnterFrame = EnterFrame;
mcBocadillo.play();
}
}
function EnterFrame() {
mcHada._x = mcHada._x + velx;
mcHada._y = mcHada._y + vely;
if (mcHada._x > Punto.x) {
velx = velx - AcelX;
} else {
velx = velx + AcelX;
}
if (mcHada._y > Punto.y) {
vely = vely - AcelY;
} else {
vely = vely + AcelY;
}
}
function StopAyuda() {
this.onEnterFrame = null;
this.mcHada.onEnterFrame = null;
this.mcHada.stop();
i = 0;
while (i < 51) {
this.mcHada["strella" + i].unloadMovie();
i++;
}
play();
}
var Punto = new Object();
var velx = 0;
var vely = 0;
var AcelX = 0.001;
var AcelY = 0.005;
var vel = 12;
var ace = 0.2;
mcHada._x = -250;
var IdFuncion;
IdFuncion = setInterval(wait, 700);
Instance of Symbol 439 MovieClip [zButton] in Symbol 1566 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "radioGroup";
label = "Aceptar";
selected = false;
skin = "_skinButtonAceptar";
type = "Button";
}
on (release) {
tmo.clearAll();
_parent.play();
}
Symbol 1566 MovieClip Frame 30
stop();
Symbol 1566 MovieClip Frame 60
_root.gotoAndStop("fPortada");
Symbol 1578 MovieClip Frame 1
stop();
var _this = this;
var wait = function () {
clearInterval(_this._parent.interv);
if (_this._parent._currentframe == 30) {
_this.play();
}
};
clearInterval(_parent.interv);
_parent.interv = setTimeout(wait, 8000);
Symbol 1578 MovieClip Frame 30
stop();
Instance of Symbol 439 MovieClip [zButton] in Symbol 1580 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "radioGroup";
label = "Aceptar";
selected = false;
skin = "_skinButtonJuegosCancelar";
type = "Button";
}
on (release) {
rg.close();
tmo.clearAll();
_parent._parent.gotoAndPlay("fPortada");
}
Symbol 1580 MovieClip Frame 30
var interv = -1;
if (_root.gFrame != "fConectado") {
stop();
}
Symbol 1580 MovieClip Frame 31
clearInterval(interv);
Instance of Symbol 439 MovieClip [zButton] in Symbol 1580 MovieClip Frame 31
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "radioGroup";
label = "Aceptar";
selected = false;
skin = "_skinButtonJuegosCancelar";
type = "Button";
}
Symbol 1580 MovieClip Frame 60
_root.gotoAndPlay(_root.gFrame);
Instance of Symbol 439 MovieClip [zButton] in Symbol 1586 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "radioGroup";
label = "Aceptar";
selected = false;
skin = "_skinButtonAceptar";
type = "Button";
}
on (release) {
_global.rg.close();
tmo.clearAll();
_parent.play();
}
Symbol 1586 MovieClip Frame 30
stop();
Symbol 1586 MovieClip Frame 60
_root.gotoAndStop("fPortada");
Instance of Symbol 439 MovieClip [zButton] in Symbol 1589 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "radioGroup";
label = "Aceptar";
selected = false;
skin = "_skinButtonAceptar";
type = "Button";
}
on (release) {
rg.close();
tmo.clearAll();
_parent.play();
}
Symbol 1589 MovieClip Frame 30
stop();
Symbol 1589 MovieClip Frame 60
_root.gotoAndStop("fPortada");
Instance of Symbol 439 MovieClip [zButton] in Symbol 1593 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "radioGroup";
label = "Aceptar";
selected = false;
skin = "_skinButtonAceptar";
type = "Button";
}
on (release) {
rg.close();
tmo.clearAll();
_parent.play();
}
Symbol 1593 MovieClip Frame 30
stop();
Symbol 1593 MovieClip Frame 60
_root.gotoAndStop("fPortada");
Instance of Symbol 439 MovieClip [zButton] in Symbol 1595 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "radioGroup";
label = "Aceptar";
selected = false;
skin = "_skinButtonAceptar";
type = "Button";
}
on (release) {
rg.close();
tmo.clearAll();
_parent.play();
}
Symbol 1595 MovieClip Frame 30
stop();
Symbol 1595 MovieClip Frame 60
_root.gotoAndStop("fPortada");
Instance of Symbol 439 MovieClip [zButton] in Symbol 1597 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "radioGroup";
label = "Aceptar";
selected = false;
skin = "_skinButtonAceptar";
type = "Button";
}
on (release) {
rg.close();
tmo.clearAll();
_parent.play();
}
Symbol 1597 MovieClip Frame 30
stop();
Symbol 1597 MovieClip Frame 60
_root.gotoAndStop("fPortada");
Instance of Symbol 439 MovieClip [zButton] in Symbol 1609 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "radioGroup";
label = "Aceptar";
selected = false;
skin = "_skinButtonAceptar";
type = "Button";
}
on (release) {
rg.close();
tmo.clearAll();
_parent.play();
}
Symbol 1609 MovieClip Frame 30
stop();
Symbol 1609 MovieClip Frame 60
_root.gotoAndStop("fPortada");
Instance of Symbol 439 MovieClip [zButton] in Symbol 1612 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "radioGroup";
label = "Aceptar";
selected = false;
skin = "_skinButtonAceptar";
type = "Button";
}
on (release) {
rg.close();
tmo.clearAll();
_parent.play();
}
Symbol 1612 MovieClip Frame 30
stop();
Symbol 1612 MovieClip Frame 60
_root.gotoAndStop("fPortada");
Instance of Symbol 439 MovieClip [zButton] in Symbol 1614 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "radioGroup";
label = "Aceptar";
selected = false;
skin = "_skinButtonAceptar";
type = "Button";
}
on (release) {
rg.close();
tmo.clearAll();
_parent.play();
}
Symbol 1614 MovieClip Frame 30
stop();
Symbol 1614 MovieClip Frame 60
_root.gotoAndStop("fPortada");
Instance of Symbol 439 MovieClip [zButton] in Symbol 1616 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "radioGroup";
label = "Aceptar";
selected = false;
skin = "_skinButtonAceptar";
type = "Button";
}
on (release) {
rg.close();
tmo.clearAll();
_parent.play();
}
Symbol 1616 MovieClip Frame 30
stop();
Symbol 1616 MovieClip Frame 60
_root.gotoAndStop("fPortada");
Symbol 1623 MovieClip [mcChatSala] Frame 1
stop();
txt.addSmiley(":(", "smSad", 18, 16);
txt.addSmiley(":)", "smSmiley", 18, 16);
txt.addSmiley(":D", "smBiggrin", 18, 16);
txt.addSmiley("xD", "smSuperHappy", 18, 16);
txt.addSmiley(":P", "smTounge", 18, 16);
txt.addSmiley(":S", "smConfused", 18, 16);
txt.addSmiley(":$", "smBlush", 18, 16);
txt.addSmiley(":O", "smOh", 18, 16);
txt.addSmiley("o_O", "smSuperOh", 18, 16);
txt.addSmiley(":@", "smMad", 18, 16);
txt.addSmiley("(6)", "smEvil", 18, 16);
txt.addSmiley(";)", "smWink", 18, 16);
txt.addSmiley(":_(", "smCry", 18, 16);
txt.addSmiley("(H)", "smHot", 18, 16);
txt.addSmiley("(Y)", "smAccept", 18, 16);
txt.addSmiley("(N)", "smCancel", 18, 16);
txt.addSmiley("(Q)", "smQuestion", 18, 16);
txt.addSmiley(":!", "smExclaim", 18, 16);
txt.addSmiley("(I)", "smIdea", 18, 16);
txt.addSmiley("OK", "smUp", 18, 16);
txt.addSmiley("KO", "smDown", 18, 16);
txt.addSmiley("(L)", "smHeart", 18, 16);
txt.addSmiley("(*)", "smNinja", 18, 16);
txt.addSmiley("(T)", "smPhone", 18, 16);
txt.addSmiley(":T", "smTwisted", 18, 16);
txt.addSmiley(":Z", "smSleep", 18, 16);
txt.addSmiley("$", "smCredits", 18, 16);
txt.addSmiley("opqa", "smOPQA", 64, 16);
txt.addSmiley("OPQA", "smOPQA", 64, 16);
txt.addSmiley("(~@\u00AC)", "smPlaca", 18, 16);
Instance of Symbol 750 MovieClip [zRichTextBox] "txt" in Symbol 1623 MovieClip [mcChatSala] Frame 1
//component parameters
onClipEvent (construct) {
data = "";
embedFonts = false;
maxLines = 25;
multiline = true;
skin = "mcSkinChat";
}
onClipEvent (load) {
if (_global.welcome == undefined) {
var idx = _global.gRooms.find("idRoom", _global.rg.mIdRoom);
var str = (((((("<FONT COLOR=\"#" + _global.systemColor) + "\">:! Bienvenid@ al ") + _global.rg.juego) + "<br>:! Has entrado a la sala ") + _global.gRooms[idx].roomName) + "</FONT>");
this.parse(str);
this.refreshText();
this.render();
this.scroll = this.maxscroll;
_global.welcome = true;
}
}
Instance of Symbol 28 MovieClip [zVScrollBar] "sb" in Symbol 1623 MovieClip [mcChatSala] Frame 1
//component parameters
onClipEvent (construct) {
_targetInstanceName = "txt";
_useHandCursor = true;
data = "";
enabled = true;
maxPos = 0;
minPos = 0;
pageSize = 5;
scrollPosition = 0;
skin = "_skinVScrollBarOKColor5";
}
Symbol 1629 MovieClip Frame 1
stop();
Symbol 1637 MovieClip Frame 1
function next() {
if (mcBgColor._currentframe < mcBgColor._totalframes) {
mcBgColor.nextFrame();
} else {
delete mcBgColor.onEnterFrame;
}
}
function prev() {
if (mcBgColor._currentframe > 1) {
mcBgColor.prevFrame();
} else {
delete mcBgColor.onEnterFrame;
}
}
stop();
Symbol 1639 MovieClip [zTab] Frame 1
#initclip 35
Object.registerClass("zTab", czTab);
#endinitclip
stop();
Symbol 1640 MovieClip Frame 1
stop();
var newTab = false;
var THIS = this;
btnLeft._visible = false;
btnRight._visible = false;
btnClose._visible = false;
txtIn.text = "";
tab.onChange = function (index, obj) {
if (this.tabs[index].label == "Partida") {
THIS.btnClose._visible = false;
} else {
THIS.btnClose._visible = (index ? true : false);
}
var _local2 = 0;
while (_local2 < this.tabs.length) {
if (this.tabs[_local2].label == "Partida") {
THIS.mcPartida._visible = this.tabs[_local2].selected;
} else {
THIS["mc" + this.tabs[_local2].label]._visible = this.tabs[_local2].selected;
}
_local2++;
}
if (!THIS.newTab) {
Selection.setFocus(txtIn);
}
THIS.newTab = false;
};
tab.onButtonChange = function (left, right) {
btnLeft._visible = left;
btnRight._visible = right;
Selection.setFocus(txtIn);
};
tab.onDelTab = function (index, obj) {
THIS["mc" + obj.label].removeMovieClip();
};
function Enviar() {
if (txtIn.text.length > 0) {
var _local7 = "00AAFF";
var _local3 = txtIn.text.split(String.fromCharCode(13)).join("");
var _local2 = tab.tabs[tab.selected];
if (_local2.label == "Sala") {
rg.sendObjRoom({fn:"onSendChatRoom", msg:_local3, color:_global.gColor});
} else if (_local2.label == "Partida") {
rg.sendObjMatch({fn:"onSendChatMatch", msg:_local3, color:_global.gColor});
} else {
rg.sendObjUser({fn:"onSendChatUser", idUser:_local2.idUser, userName:_local2.label, serverID:_local2.serverID, codservidor:_local2.codservidor, msg:_local3, color:_global.gColor});
}
}
txtIn.text = "";
}
function Enter() {
if (_global.gFlood.idFSecond > -1) {
return(undefined);
}
if (!_global.rutaChat._visible) {
return(undefined);
}
if ((Key.getCode() == 13) || (_global.gFlood.swBtnEnviar)) {
_global.gFlood.swBtnEnviar = false;
if (!_global.gFlood.numMsg) {
_global.gFlood.oldTimer = getTimer();
}
_global.gFlood.timeAcu = _global.gFlood.timeAcu + (getTimer() - _global.gFlood.oldTimer);
_global.gFlood.numMsg++;
_global.gFlood.oldTimer = getTimer();
if (_global.gFlood.timeAcu < _global.gFlood.floodTime) {
if (_global.gFlood.numMsg > _global.gFlood.maxNumMsg) {
if (_global.gFlood.idFSecond < 0) {
_global.gFlood.sec = _global.gFlood.punishment;
_global.gFlood.second();
_global.gFlood.idFSecond = setInterval(_global.gFlood.second, _global.gFlood.inc * 1000);
} else {
_global.gFlood.sec = _global.gFlood.sec + _global.gFlood.punishment;
}
} else {
Enviar();
}
} else {
_global.gFlood.numMsg = (_global.gFlood.timeAcu = 0);
Enviar();
}
}
}
txtIn.restrict = "^>";
_global.gFlood.second = function () {
if (_global.gFlood.sec > 0) {
var _local3 = ((("<FONT COLOR=\"#" + _global.systemColor) + "\">:! Detectado flood. Chat desactivado durante <FONT COLOR=\"#000000\">") + _global.gFlood.sec) + "</FONT> segundos.</FONT>";
var _local2 = _global.rutaChat["mc" + _global.rutaChat.tab.tabs[_global.rutaChat.tab.selected].label];
if (!_global.rutaChat._visible) {
_global.rutaChat._parent.cfco.show(_local3);
}
_local2.txt.parse(_local3);
_local2.txt.refreshText();
_local2.txt.render();
_local2.txt.scroll = _local2.txt.maxscroll;
_global.gFlood.sec = _global.gFlood.sec - _global.gFlood.inc;
} else {
var _local3 = ("<FONT COLOR=\"#" + _global.systemColor) + "\">:! Chat activado </FONT>";
var _local2 = _global.rutaChat["mc" + _global.rutaChat.tab.tabs[_global.rutaChat.tab.selected].label];
if (!_global.rutaChat._visible) {
_global.rutaChat._parent.cfco.show(_local3);
}
_local2.txt.parse(_local3);
_local2.txt.refreshText();
_local2.txt.render();
_local2.txt.scroll = _local2.txt.maxscroll;
clearInterval(_global.gFlood.idFSecond);
_global.gFlood.idFSecond = -1;
}
};
_global.keyLst.onKeyUp = Enter;
Instance of Symbol 1639 MovieClip [zTab] "tab" in Symbol 1640 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
bgAlpha = 100;
bgColor = 16711680 /* 0xFF0000 */;
data = "";
skin = "_skinTabChat";
visibleTabs = 5;
}
Instance of Symbol 439 MovieClip [zButton] "btnLeft" in Symbol 1640 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "radioGroup";
label = "<";
selected = false;
skin = "_skinChatTabNext";
type = "Button";
}
on (release) {
this._onRelease();
_parent.tab.prevTab();
}
Instance of Symbol 439 MovieClip [zButton] "btnRight" in Symbol 1640 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "radioGroup";
label = ">";
selected = false;
skin = "_skinChatTabNext";
type = "Button";
}
on (release) {
this._onRelease();
_parent.tab.nextTab();
}
Instance of Symbol 439 MovieClip [zButton] "btnClose" in Symbol 1640 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "radioGroup";
label = "X";
selected = false;
skin = "_skinChatTabClose";
type = "Button";
}
on (release) {
this._onRelease();
_parent.tab.delTabSelected();
}
Instance of Symbol 439 MovieClip [zButton] "btnEnviar" in Symbol 1640 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "radioGroup";
label = "Aceptar";
selected = false;
skin = "_skinButtonOK";
type = "Button";
}
on (rollOver, dragOver) {
var THIS = this;
var wait = function () {
THIS.mcToolTip = _root.mcConectado.attachMovie("mcToolTips", "mcToolTip", 100);
THIS.mcToolTip.gotoAndStop(THIS._name.toString());
THIS.onMouseMove = function () {
THIS.mcToolTip._x = (_root._xmouse - (THIS.mcToolTip._width / 2)) - 40;
THIS.mcToolTip._y = _root._ymouse - THIS.mcToolTip._height;
updateAfterEvent();
};
THIS.onMouseMove();
};
tmo.clearInterval(this.idWait);
this.idWait = setTimeout(wait, 800);
}
on (releaseOutside, rollOut, dragOut) {
tmo.clearInterval(this.idWait);
delete this.onMouseMove;
this.mcToolTip.removeMovieClip();
}
on (release) {
this._onRelease();
tmo.clearInterval(this.idWait);
delete this.onMouseMove;
this.mcToolTip.removeMovieClip();
_global.gFlood.swBtnEnviar = true;
_parent.Enter();
Selection.setFocus(_parent.txtIn);
}
Instance of Symbol 439 MovieClip [zButton] "chkPrivates" in Symbol 1640 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "";
label = "";
selected = true;
skin = "skinCheckPrivate";
type = "Check";
}
onClipEvent (load) {
if (_global.gOptions.data.privates != undefined) {
this.selected = _global.gOptions.data.privates;
} else {
this.selected = true;
}
}
onClipEvent (load) {
function __f_change(eventObj) {
_global.gOptions.data.privates = this.selected;
_global.gOptions.flush();
}
this.addEventListener("change", __f_change);
}
on (rollOver, dragOver) {
var THIS = this;
var wait = function () {
THIS.mcToolTip = _root.mcConectado.attachMovie("mcToolTips", "mcToolTip", 100);
THIS.mcToolTip.gotoAndStop(THIS._name.toString());
THIS.onMouseMove = function () {
THIS.mcToolTip._x = (_root._xmouse - (THIS.mcToolTip._width / 2)) - 50;
THIS.mcToolTip._y = _root._ymouse - THIS.mcToolTip._height;
updateAfterEvent();
};
THIS.onMouseMove();
};
tmo.clearInterval(this.idWait);
this.idWait = tmo.setTimeout(wait, 800);
}
on (releaseOutside, rollOut, dragOut) {
tmo.clearInterval(this.idWait);
delete this.onMouseMove;
this.mcToolTip.removeMovieClip();
}
Symbol 1646 MovieClip Frame 1
function checkButtons() {
btnPerfil.enabled = false;
btnInvitar.enabled = false;
btnDel.enabled = false;
btnChat.enabled = false;
if (lstAmigos.selectedItem == undefined) {
return(undefined);
}
btnPerfil.enabled = true;
btnDel.enabled = true;
if (lstAmigos.selectedItem.online) {
btnChat.enabled = true;
}
}
this._visible = false;
stop();
checkButtons();
lstAmigos.onChange = function () {
checkButtons();
};
Instance of Symbol 439 MovieClip [zButton] "btnDel" in Symbol 1646 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "radioGroup";
label = "Aceptar";
selected = false;
skin = "_skinButtonBorrarUsuariox2";
type = "Button";
}
on (release) {
this._onRelease();
var THIS = this;
if (_parent.lstAmigos.selectedItem == undefined) {
_level.attachMovie("mcMessages", "mcMessages", _level.getNextHighestDepth());
_level.mcMessages.mcWindow.gotoAndStop("fEmptyUser");
return(undefined);
}
rg.onDelFriend = function (obj) {
switch (obj.status) {
case 0 :
THIS._parent._parent.mcListaUsuariosAmigos.lstAmigos.addItem(am.clone());
var _local2 = 0;
while (_local2 < rg.friendList.length) {
if (rg.friendList[_local2].userName == _parent.lstAmigos.selectedItem.userName) {
rg.friendList.splice(_local2, 1);
break;
}
_local2++;
}
_local2 = 0;
while (_local2 < _parent.lstAmigos.length) {
if (_parent.lstAmigos.dataProvider[_local2].userName == _parent.lstAmigos.selectedItem.userName) {
_parent.lstAmigos.removeItemAt(_local2);
break;
}
_local2++;
}
THIS._parent.checkButtons();
_level.attachMovie("mcMessages", "mcMessages", _level.getNextHighestDepth());
_level.mcMessages.mcWindow.gotoAndStop("fDelFriendOk");
break;
case 1 :
case 2 :
_level.attachMovie("mcMessages", "mcMessages", _level.getNextHighestDepth());
_level.mcMessages.mcWindow.gotoAndStop("fDelFriendError");
break;
}
};
rg.send(("fn'onDelFriend'codusuario&" + _parent.lstAmigos.selectedItem.codusuario) + ";");
}
Instance of Symbol 439 MovieClip [zButton] "btnPerfil" in Symbol 1646 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "radioGroup";
label = "Aceptar";
selected = false;
skin = "_skinButtonPerfilUsuariox2";
type = "Button";
}
on (release) {
this._onRelease();
if (_parent.lstAmigos.selectedItem == undefined) {
_level.attachMovie("mcMessages", "mcMessages", _level.getNextHighestDepth());
_level.mcMessages.mcWindow.gotoAndStop("fEmptyUser");
return(undefined);
}
_level.attachMovie("mcMessages", "mcMessages", _level.getNextHighestDepth());
_level.mcMessages.mcWindow.gotoAndStop("fVerPerfil");
}
Instance of Symbol 439 MovieClip [zButton] "btnChat" in Symbol 1646 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "radioGroup";
label = "Aceptar";
selected = false;
skin = "_skinButtonHablarx2";
type = "Button";
}
on (release) {
this._onRelease();
if (_parent.lstAmigos.selectedItem == undefined) {
return(undefined);
}
var idUser = _parent.lstAmigos.selectedItem.idUser;
var userName = _parent.lstAmigos.selectedItem.userName;
var codservidor = _parent.lstAmigos.selectedItem.codservidor;
var serverID = _parent.lstAmigos.selectedItem.serverID;
if (_parent._parent.mcChat["mc" + userName] != undefined) {
return(undefined);
}
var nue = _parent._parent.mcChat.attachMovie("mcChatSala", "mc" + userName, _parent._parent.mcChat.getNextHighestDepth());
nue._x = _parent._parent.mcChat.mcSala._x;
nue._y = _parent._parent.mcChat.mcSala._y;
_parent._parent.mcChat.cmbSmileys.swapDepths(_parent._parent.mcChat.getNextHighestDepth());
_parent._parent.mcChat.btnLeft.swapDepths(_parent._parent.mcChat.getNextHighestDepth());
_parent._parent.mcChat.btnRight.swapDepths(_parent._parent.mcChat.getNextHighestDepth());
_parent._parent.mcChat.btnClose.swapDepths(_parent._parent.mcChat.getNextHighestDepth());
_parent._parent.mcChat.newTab = true;
_parent._parent.mcChat.tab.addTab(userName, true);
_parent._parent.mcChat.tab.tabs[_parent._parent.mcChat.tab.tabs.length - 1].idUser = idUser;
_parent._parent.mcChat.tab.tabs[_parent._parent.mcChat.tab.tabs.length - 1].codservidor = codservidor;
_parent._parent.mcChat.tab.tabs[_parent._parent.mcChat.tab.tabs.length - 1].serverID = serverID;
Selection.setFocus(_parent._parent.mcChat.txtIn);
}
Instance of Symbol 439 MovieClip [zButton] "btnInvitar" in Symbol 1646 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "radioGroup";
label = "Aceptar";
selected = false;
skin = "_skinButtonInvitarUsuariox2";
type = "Button";
}
on (release) {
this._onRelease();
var idUser = _parent.lstAmigos.selectedItem.idUser;
var userName = _parent.lstAmigos.selectedItem.userName;
var codservidor = _parent.lstAmigos.selectedItem.codservidor;
var serverID = _parent.lstAmigos.selectedItem.serverID;
if (rg.idMatch == -1) {
var matchName = ("Partida" + (_global.rg.idUser + 1));
var passwd = "";
var maxUsers = 2;
var guests = true;
var initBet = 0;
var audience = true;
var audienceTalk = true;
var codLoadMatch = -1;
var goOnLeave = false;
rg.onCreateMatch = function (obj) {
if (!obj.error) {
gMatchs.push(obj.clone());
rg.sendObjUser({fn:"onSendInviteUser", idUser:idUser, idMatch:obj.idMatch, userName:userName, codservidor:codservidor, serverID:serverID});
rg.onCreateMatch = _root.onCreateMatch;
_root.mcConectado.gotoAndStop("fWaitOponents");
}
};
_global.rg.createMatch(matchName, passwd, maxUsers, guests, initBet, audience, audienceTalk, codLoadMatch, goOnLeave, Serialize.code(_global.extra).split("'").join("\\'"));
} else {
rg.sendObjUser({fn:"onSendInviteUser", idUser:idUser, idMatch:rg.idMatch, userName:userName, codservidor:codservidor, serverID:serverID});
}
}
Instance of Symbol 38 MovieClip [zListBox] "lstAmigos" in Symbol 1646 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
enabled = true;
hScrollPolicy = "off";
multipleSelection = false;
skin = "_skinListaPlayersColor4";
vScrollPolicy = "on";
}
Symbol 1648 MovieClip Frame 1
function checkButtons() {
btnAdd.enabled = false;
btnChat.enabled = false;
btnPerfil.enabled = false;
btnEchar.enabled = false;
btnIgnore.enabled = false;
if (lstUsuarios.selectedItem == undefined) {
return(undefined);
}
if (lstUsuarios.selectedItem.idUser != rg.idUser) {
btnChat.enabled = true;
}
btnPerfil.enabled = lstUsuarios.selectedItem.type != 2;
if (((lstUsuarios.selectedItem.lookMatch && (_global.rg.idOwner == _global.rg.idUser)) && (lstUsuarios.selectedItem.type != 0)) && (lstUsuarios.selectedItem.type != 4)) {
btnEchar.enabled = true;
}
if (((((rg.type == 0) || (rg.type == 1)) || (rg.type == 4)) && (((lstUsuarios.selectedItem.type == 0) || (lstUsuarios.selectedItem.type == 1)) || (lstUsuarios.selectedItem.type == 4))) && (lstUsuarios.selectedItem.idUser != rg.idUser)) {
if (rg.friendList.find("userName", lstUsuarios.selectedItem.userName) < 0) {
btnAdd.enabled = true;
}
}
if (((lstUsuarios.selectedItem.idUser != rg.idUser) && (lstUsuarios.selectedItem.type != 0)) && (lstUsuarios.selectedItem.type != 4)) {
btnIgnore.enabled = true;
}
}
checkButtons();
lstUsuarios.onChange = function () {
checkButtons();
};
Instance of Symbol 439 MovieClip [zButton] "btnAdd" in Symbol 1648 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "radioGroup";
label = "Aceptar";
selected = false;
skin = "_skinButtonA\u00F1adirUsuariox3";
type = "Button";
}
on (release) {
this._onRelease();
this.enabled = false;
var THIS = this;
if (_parent.lstUsuarios.selectedItem == undefined) {
_level.attachMovie("mcMessages", "mcMessages", _level.getNextHighestDepth());
_level.mcMessages.mcWindow.gotoAndStop("fEmptyUser");
return(undefined);
}
rg.onAddFriend = function (obj) {
switch (obj.status) {
case 0 :
var _local2 = new Object();
_local2.codusuario = _parent.lstUsuarios.selectedItem.codusuario;
_local2.userName = _parent.lstUsuarios.selectedItem.userName;
_local2.rank = _parent.lstUsuarios.selectedItem.rank;
_local2.online = true;
_local2.codservidor = rg.codservidor;
_local2.serverID = rg.serverID;
_local2.idUser = _parent.lstUsuarios.selectedItem.idUser;
rg.friendList.push(_local2.clone());
THIS._parent._parent.mcListaUsuariosAmigos.lstAmigos.addItem(_local2.clone());
THIS._parent.checkButtons();
_level.attachMovie("mcMessages", "mcMessages", _level.getNextHighestDepth());
_level.mcMessages.mcWindow.gotoAndStop("fAddFriendOk");
break;
case 1 :
_level.attachMovie("mcMessages", "mcMessages", _level.getNextHighestDepth());
_level.mcMessages.mcWindow.gotoAndStop("fNoAddMe");
break;
case 3 :
_level.attachMovie("mcMessages", "mcMessages", _level.getNextHighestDepth());
_level.mcMessages.mcWindow.gotoAndStop("fFriendExists");
break;
case 2 :
case 4 :
_level.attachMovie("mcMessages", "mcMessages", _level.getNextHighestDepth());
_level.mcMessages.mcWindow.gotoAndStop("fAddFriendError");
break;
case 5 :
_level.attachMovie("mcMessages", "mcMessages", _level.getNextHighestDepth());
_level.mcMessages.mcWindow.gotoAndStop("fErrorExtra");
_level.mcMessages.mcWindow.txtMsg.text = obj.msg;
break;
}
};
var o = _parent.lstUsuarios.selectedItem;
rg.send(((("fn'onAddFriend'codusuario&" + o.codusuario) + ";idUser&") + o.idUser) + ";");
}
Instance of Symbol 439 MovieClip [zButton] "btnPerfil" in Symbol 1648 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "radioGroup";
label = "Aceptar";
selected = false;
skin = "_skinButtonPerfilUsuariox2";
type = "Button";
}
on (release) {
this._onRelease();
this.enabled = false;
if (_parent.lstUsuarios.selectedItem == undefined) {
_level.attachMovie("mcMessages", "mcMessages", _level.getNextHighestDepth());
_level.mcMessages.mcWindow.gotoAndStop("fEmptyUser");
return(undefined);
}
_level.attachMovie("mcMessages", "mcMessages", _level.getNextHighestDepth());
_level.mcMessages.mcWindow.gotoAndStop("fVerPerfil");
}
Instance of Symbol 439 MovieClip [zButton] "btnChat" in Symbol 1648 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "radioGroup";
label = "Aceptar";
selected = false;
skin = "_skinButtonHablarx2";
type = "Button";
}
on (release) {
this._onRelease();
this.enabled = false;
if (_parent.lstUsuarios.selectedItem == undefined) {
return(undefined);
}
var idUser = _parent.lstUsuarios.selectedItem.idUser;
var userName = _parent.lstUsuarios.selectedItem.userName;
var codservidor = _parent.lstUsuarios.selectedItem.codservidor;
var serverID = _parent.lstUsuarios.selectedItem.serverID;
if (_parent._parent.mcChat["mc" + userName] != undefined) {
return(undefined);
}
var nue = _parent._parent.mcChat.attachMovie("mcChatSala", "mc" + userName, _parent._parent.mcChat.getNextHighestDepth());
nue._x = _parent._parent.mcChat.mcSala._x;
nue._y = _parent._parent.mcChat.mcSala._y;
_parent._parent.mcChat.cmbSmileys.swapDepths(_parent._parent.mcChat.getNextHighestDepth());
_parent._parent.mcChat.btnLeft.swapDepths(_parent._parent.mcChat.getNextHighestDepth());
_parent._parent.mcChat.btnRight.swapDepths(_parent._parent.mcChat.getNextHighestDepth());
_parent._parent.mcChat.btnClose.swapDepths(_parent._parent.mcChat.getNextHighestDepth());
_parent._parent.mcChat.newTab = true;
_parent._parent.mcChat.tab.addTab(userName, true);
_parent._parent.mcChat.tab.tabs[_parent._parent.mcChat.tab.tabs.length - 1].idUser = idUser;
_parent._parent.mcChat.tab.tabs[_parent._parent.mcChat.tab.tabs.length - 1].codservidor = codservidor;
_parent._parent.mcChat.tab.tabs[_parent._parent.mcChat.tab.tabs.length - 1].serverID = serverID;
Selection.setFocus(_parent._parent.mcChat.txtIn);
}
Instance of Symbol 439 MovieClip [zButton] "btnEchar" in Symbol 1648 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "radioGroup";
label = "Aceptar";
selected = false;
skin = "_skinButtonEcharx3";
type = "Button";
}
on (release) {
this._onRelease();
this.enabled = false;
if (_parent.lstUsuarios.selectedItem == undefined) {
_level.mcMessages.mcWindow.Escape();
_level.attachMovie("mcMessages", "mcMessages", _level.getNextHighestDepth());
_level.mcMessages.mcWindow.gotoAndStop("fEmptyUser");
return(undefined);
}
_global.rg.send(("fn'onKickUserLookMatch'idUser&" + _parent.lstUsuarios.selectedItem.idUser) + ";");
}
Instance of Symbol 439 MovieClip [zButton] "btnIgnore" in Symbol 1648 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "radioGroup";
label = "Aceptar";
selected = false;
skin = "_skinButtonIgnorarUsuariox3";
type = "Button";
}
on (release) {
this._onRelease();
this.enabled = false;
if (_parent.lstUsuarios.selectedItem == undefined) {
_level.attachMovie("mcMessages", "mcMessages", _level.getNextHighestDepth());
_level.mcMessages.mcWindow.gotoAndStop("fEmptyUser");
return(undefined);
}
var idx = _global.gIgnores.find("", _parent.lstUsuarios.selectedItem.userName);
((idx == -1) ? (_global.gIgnores.push(_parent.lstUsuarios.selectedItem.userName)) : (_global.gIgnores.splice(idx, 1)));
_global.rutaListaUsuariosSala.render();
_global.rutaListaUsuariosPartida.render();
}
Instance of Symbol 38 MovieClip [zListBox] "lstUsuarios" in Symbol 1648 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
enabled = true;
hScrollPolicy = "off";
multipleSelection = false;
skin = "_skinListaPlayersColor5";
vScrollPolicy = "on";
}
Symbol 1649 MovieClip Frame 1
function checkButtons() {
btnAdd.enabled = false;
btnChat.enabled = false;
btnPerfil.enabled = false;
btnInvitar.enabled = false;
btnIgnore.enabled = false;
if (lstUsuarios.selectedItem == undefined) {
return(undefined);
}
if (lstUsuarios.selectedItem.idUser != rg.idUser) {
btnChat.enabled = true;
}
btnPerfil.enabled = lstUsuarios.selectedItem.type != 2;
if (lstUsuarios.selectedItem.idUser != rg.idUser) {
btnInvitar.enabled = true;
}
if (((((rg.type == 0) || (rg.type == 1)) || (rg.type == 4)) && (((lstUsuarios.selectedItem.type == 0) || (lstUsuarios.selectedItem.type == 1)) || (lstUsuarios.selectedItem.type == 4))) && (lstUsuarios.selectedItem.idUser != rg.idUser)) {
if (rg.friendList.find("userName", lstUsuarios.selectedItem.userName) < 0) {
btnAdd.enabled = true;
}
}
if (((lstUsuarios.selectedItem.idUser != rg.idUser) && (lstUsuarios.selectedItem.type != 0)) && (lstUsuarios.selectedItem.type != 4)) {
btnIgnore.enabled = true;
}
}
checkButtons();
cmbSalas.onLoad = function () {
this.onRenderRow = function (item, datos) {
item.mcGuests._visible = datos.guests;
item.mcPasswd._visible = datos.rPasswd;
item.txtRoomName.text = datos.roomName;
item.txtUsers.text = ((datos.users.length > datos.maxUsers) ? (datos.maxUsers) : (datos.users.length));
item.txtMaxUsers.text = datos.maxUsers;
_global.log.debug(_global.gUsers);
_global.log.debug(datos.users);
var _local2 = 0;
while (_local2 < datos.users.length) {
var _local4 = _global.gUsers.find("idUser", datos.users[_local2]);
_global.log.debug(_global.gUsers[_local4]);
_local2++;
}
};
this.onRenderHead = function (item, datos) {
item.txtLabel.htmlText = datos.roomName;
};
this.dataProvider = gRooms.clone();
this.selectedIndex = rg.idRoom;
};
lstUsuarios.onChange = function () {
checkButtons();
};
Instance of Symbol 439 MovieClip [zButton] "btnIgnore" in Symbol 1649 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "radioGroup";
label = "Aceptar";
selected = false;
skin = "_skinButtonIgnorarUsuariox3";
type = "Button";
}
on (release) {
this._onRelease();
this.enabled = false;
if (_parent.lstUsuarios.selectedItem == undefined) {
_level.attachMovie("mcMessages", "mcMessages", _level.getNextHighestDepth());
_level.mcMessages.mcWindow.gotoAndStop("fEmptyUser");
return(undefined);
}
var idx = _global.gIgnores.find("", _parent.lstUsuarios.selectedItem.userName);
((idx == -1) ? (_global.gIgnores.push(_parent.lstUsuarios.selectedItem.userName)) : (_global.gIgnores.splice(idx, 1)));
_global.rutaListaUsuariosSala.render();
_global.rutaListaUsuariosPartida.render();
}
Instance of Symbol 439 MovieClip [zButton] "btnAdd" in Symbol 1649 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "radioGroup";
label = "Aceptar";
selected = false;
skin = "_skinButtonA\u00F1adirUsuariox3";
type = "Button";
}
on (release) {
this._onRelease();
this.enabled = false;
var THIS = this;
if (_parent.lstUsuarios.selectedItem == undefined) {
_level.attachMovie("mcMessages", "mcMessages", _level.getNextHighestDepth());
_level.mcMessages.mcWindow.gotoAndStop("fEmptyUser");
return(undefined);
}
rg.onAddFriend = function (obj) {
switch (obj.status) {
case 0 :
var _local2 = new Object();
_local2.codusuario = _parent.lstUsuarios.selectedItem.codusuario;
_local2.userName = _parent.lstUsuarios.selectedItem.userName;
_local2.rank = _parent.lstUsuarios.selectedItem.rank;
_local2.online = true;
_local2.codservidor = rg.codservidor;
_local2.serverID = rg.serverID;
_local2.idUser = _parent.lstUsuarios.selectedItem.idUser;
rg.friendList.push(_local2.clone());
THIS._parent._parent.mcListaUsuariosAmigos.lstAmigos.addItem(_local2.clone());
THIS._parent.checkButtons();
_level.attachMovie("mcMessages", "mcMessages", _level.getNextHighestDepth());
_level.mcMessages.mcWindow.gotoAndStop("fAddFriendOk");
break;
case 1 :
_level.attachMovie("mcMessages", "mcMessages", _level.getNextHighestDepth());
_level.mcMessages.mcWindow.gotoAndStop("fNoAddMe");
break;
case 3 :
_level.attachMovie("mcMessages", "mcMessages", _level.getNextHighestDepth());
_level.mcMessages.mcWindow.gotoAndStop("fFriendExists");
break;
case 2 :
case 4 :
_level.attachMovie("mcMessages", "mcMessages", _level.getNextHighestDepth());
_level.mcMessages.mcWindow.gotoAndStop("fAddFriendError");
break;
case 5 :
_level.attachMovie("mcMessages", "mcMessages", _level.getNextHighestDepth());
_level.mcMessages.mcWindow.gotoAndStop("fErrorExtra");
_level.mcMessages.mcWindow.txtMsg.text = obj.msg;
break;
}
};
var o = _parent.lstUsuarios.selectedItem;
rg.send(((("fn'onAddFriend'codusuario&" + o.codusuario) + ";idUser&") + o.idUser) + ";");
}
Instance of Symbol 439 MovieClip [zButton] "btnPerfil" in Symbol 1649 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "radioGroup";
label = "Aceptar";
selected = false;
skin = "_skinButtonPerfilUsuariox2";
type = "Button";
}
on (release) {
this._onRelease();
this.enabled = false;
if (_parent.lstUsuarios.selectedItem == undefined) {
_level.attachMovie("mcMessages", "mcMessages", _level.getNextHighestDepth());
_level.mcMessages.mcWindow.gotoAndStop("fEmptyUser");
return(undefined);
}
_level.attachMovie("mcMessages", "mcMessages", _level.getNextHighestDepth());
_level.mcMessages.mcWindow.gotoAndStop("fVerPerfil");
}
Instance of Symbol 439 MovieClip [zButton] "btnChat" in Symbol 1649 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "radioGroup";
label = "Aceptar";
selected = false;
skin = "_skinButtonHablarx2";
type = "Button";
}
on (release) {
this._onRelease();
this.enabled = false;
if (_parent.lstUsuarios.selectedItem == undefined) {
return(undefined);
}
var idUser = _parent.lstUsuarios.selectedItem.idUser;
var userName = _parent.lstUsuarios.selectedItem.userName;
var codservidor = _parent.lstUsuarios.selectedItem.codservidor;
var serverID = _parent.lstUsuarios.selectedItem.serverID;
if (_parent._parent.mcChat["mc" + userName] != undefined) {
return(undefined);
}
var nue = _parent._parent.mcChat.attachMovie("mcChatSala", "mc" + userName, _parent._parent.mcChat.getNextHighestDepth());
nue._x = _parent._parent.mcChat.mcSala._x;
nue._y = _parent._parent.mcChat.mcSala._y;
_parent._parent.mcChat.cmbSmileys.swapDepths(_parent._parent.mcChat.getNextHighestDepth());
_parent._parent.mcChat.btnLeft.swapDepths(_parent._parent.mcChat.getNextHighestDepth());
_parent._parent.mcChat.btnRight.swapDepths(_parent._parent.mcChat.getNextHighestDepth());
_parent._parent.mcChat.btnClose.swapDepths(_parent._parent.mcChat.getNextHighestDepth());
_parent._parent.mcChat.newTab = true;
_parent._parent.mcChat.tab.addTab(userName, true);
_parent._parent.mcChat.tab.tabs[_parent._parent.mcChat.tab.tabs.length - 1].idUser = idUser;
_parent._parent.mcChat.tab.tabs[_parent._parent.mcChat.tab.tabs.length - 1].codservidor = codservidor;
_parent._parent.mcChat.tab.tabs[_parent._parent.mcChat.tab.tabs.length - 1].serverID = serverID;
Selection.setFocus(_parent._parent.mcChat.txtIn);
}
Instance of Symbol 439 MovieClip [zButton] "btnInvitar" in Symbol 1649 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "radioGroup";
label = "Aceptar";
selected = false;
skin = "_skinButtonInvitarUsuariox3";
type = "Button";
}
on (release) {
this._onRelease();
this.enabled = false;
var idUser = _parent.lstUsuarios.selectedItem.idUser;
var userName = _parent.lstUsuarios.selectedItem.userName;
var codservidor = _parent.lstUsuarios.selectedItem.codservidor;
var serverID = _parent.lstUsuarios.selectedItem.serverID;
if (rg.idMatch == -1) {
var matchName = ("Partida" + (_global.rg.idUser + 1));
var passwd = "";
var maxUsers = 2;
var guests = true;
var initBet = 0;
var audience = true;
var audienceTalk = true;
var codLoadMatch = -1;
var goOnLeave = false;
_global.rg.onCreateMatch = function (obj) {
if (!obj.error) {
_global.gMatchs.push(obj.clone());
_global.rg.sendObjUser({fn:"onSendInviteUser", idUser:idUser, idMatch:obj.idMatch, userName:userName, codservidor:codservidor, serverID:serverID, initBet:0});
_global.rg.onCreateMatch = _root.onCreateMatch;
_root.mcConectado.gotoAndStop("fWaitOponents");
}
};
_global.rg.createMatch(matchName, passwd, maxUsers, guests, initBet, audience, audienceTalk, codLoadMatch, goOnLeave, Serialize.code(_global.extra).split("'").join("\\'"));
}
}
Instance of Symbol 38 MovieClip [zListBox] "lstUsuarios" in Symbol 1649 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
enabled = true;
hScrollPolicy = "off";
multipleSelection = false;
skin = "_skinListaPlayers";
vScrollPolicy = "on";
}
Instance of Symbol 835 MovieClip [zComboBox] "cmbSalas" in Symbol 1649 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
editable = false;
enabled = true;
skin = "_skinCombo";
}
onClipEvent (load) {
function __f_change(eventObj) {
if (this.selectedItem.idRoom == rg.idRoom) {
return(undefined);
}
if (((this.selectedItem.users.length == this.selectedItem.maxUsers) && (_global.rg.type != 0)) && (_global.rg.type != 4)) {
_level.attachMovie("mcMessages", "mcMessages", _level.getNextHighestDepth());
_level.mcMessages.mcWindow.gotoAndStop("fFullRoom");
return(undefined);
}
if ((!this.selectedItem.guests) && (_global.rg.type == 2)) {
_level.attachMovie("mcMessages", "mcMessages", _level.getNextHighestDepth());
_level.mcMessages.mcWindow.gotoAndStop("fRoomNoGuests");
return(undefined);
}
if ((this.selectedItem.rPasswd && (_global.rg.type != 0)) && (_global.rg.type != 4)) {
_level.attachMovie("mcMessages", "mcMessages", _level.getNextHighestDepth());
_level.mcMessages.mcWindow.gotoAndStop("fPasswdRoom");
return(undefined);
}
_global.rg.leaveRoom();
_global.rg.joinRoom(this.selectedItem.idRoom);
}
this.addEventListener("change", __f_change);
}
Symbol 1650 MovieClip Frame 1
stop();
Instance of Symbol 439 MovieClip [zButton] in Symbol 1650 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "MenuGroup";
label = "Aceptar";
selected = true;
skin = "_skinButtonListaSala2Tabs";
type = "Option";
}
on (release) {
this._onRelease();
_parent._parent.mcListaUsuariosSala._visible = true;
_parent._parent.mcListaUsuariosPartida._visible = false;
_parent._parent.mcListaUsuariosAmigos._visible = false;
_parent._parent.mcListaUsuariosSala.checkButtons();
}
Symbol 1653 MovieClip Frame 1
stop();
Symbol 1653 MovieClip Frame 2
stop();
if (cont == undefined) {
var cont = 0;
}
var wait = function (This) {
if ((cont++) >= 3) {
cont = 0;
} else {
This.nextFrame();
}
};
tmo.setTimeout(wait, 300, this);
Symbol 1653 MovieClip Frame 3
stop();
var wait = function (This) {
This.prevFrame();
};
tmo.setTimeout(wait, 300, this);
Symbol 1654 MovieClip Frame 1
stop();
Instance of Symbol 439 MovieClip [zButton] in Symbol 1654 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "MenuGroup";
label = "Aceptar";
selected = false;
skin = "_skinButtonListaAmigos2Tabs";
type = "Option";
}
onClipEvent (load) {
if (_global.rg.type == 2) {
this.enabled = false;
}
}
on (release) {
this._onRelease();
_parent.gotoAndStop("fStop");
_parent._parent.mcListaUsuariosSala._visible = false;
_parent._parent.mcListaUsuariosPartida._visible = false;
_parent._parent.mcListaUsuariosAmigos._visible = true;
_parent._parent.mcListaUsuariosAmigos.checkButtons();
}
Symbol 1654 MovieClip Frame 2
if (_parent.mcListaUsuariosAmigos._visible) {
gotoAndStop ("fStop");
}
Symbol 1695 MovieClip Frame 143
stop();
Symbol 1724 MovieClip Frame 1
stop();
Symbol 1724 MovieClip Frame 2
stop();
Symbol 1724 MovieClip Frame 3
stop();
Symbol 1736 MovieClip Frame 1
stop();
lstMatchs._visible = true;
_parent.lstCargar._visible = false;
var matchName = ("Partida" + (_global.rg.idUser + 1));
var passwd = "";
var maxUsers = 2;
var guests = true;
var initBet = 0;
var audience = true;
var audienceTalk = true;
var codLoadMatch = -1;
var goOnLeave = false;
_global.extra = new Object({versus:2, frame:2, numTeams:2, turnTime:15, version:_global.gameObj.version});
_global.dpNumPlayers = [{label:2, frame:2, numPlayers:2, numTeams:2}];
Instance of Symbol 38 MovieClip [zListBox] "lstMatchs" in Symbol 1736 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
enabled = true;
hScrollPolicy = "off";
multipleSelection = false;
skin = "zSkinListPartidas";
vScrollPolicy = "auto";
}
Instance of Symbol 439 MovieClip [zButton] "btnCreateMatch" in Symbol 1736 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "";
label = "Aceptar";
selected = false;
skin = "_skinButton";
type = "Button";
}
on (rollOver, dragOver) {
var THIS = this;
var wait = function () {
THIS.mcToolTip = _root.mcConectado.attachMovie("mcToolTips", "mcToolTip", 100);
THIS.mcToolTip.gotoAndStop(THIS._name.toString());
THIS.onMouseMove = function () {
THIS.mcToolTip._x = (_root._xmouse - (THIS.mcToolTip._width / 2)) - 50;
THIS.mcToolTip._y = _root._ymouse - THIS.mcToolTip._height;
updateAfterEvent();
};
THIS.onMouseMove();
};
tmo.clearInterval(this.idWait);
this.idWait = tmo.setTimeout(wait, 800);
}
on (releaseOutside, rollOut, dragOut) {
tmo.clearInterval(this.idWait);
delete this.onMouseMove;
this.mcToolTip.removeMovieClip();
}
on (release) {
this._onRelease();
tmo.clearInterval(this.idWait);
delete this.onMouseMove;
this.mcToolTip.removeMovieClip();
_parent.play();
}
Instance of Symbol 439 MovieClip [zButton] "btnLoadMatch" in Symbol 1736 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "";
label = "Aceptar";
selected = false;
skin = "_skinButtonCargar";
type = "Button";
}
on (rollOver, dragOver) {
var THIS = this;
var wait = function () {
THIS.mcToolTip = _root.mcConectado.attachMovie("mcToolTips", "mcToolTip", 100);
THIS.mcToolTip.gotoAndStop(THIS._name.toString());
THIS.onMouseMove = function () {
THIS.mcToolTip._x = _root._xmouse - (THIS.mcToolTip._width / 2);
THIS.mcToolTip._y = _root._ymouse - THIS.mcToolTip._height;
updateAfterEvent();
};
THIS.onMouseMove();
};
tmo.clearInterval(this.idWait);
this.idWait = tmo.setTimeout(wait, 800);
}
on (releaseOutside, rollOut, dragOut) {
tmo.clearInterval(this.idWait);
delete this.onMouseMove;
this.mcToolTip.removeMovieClip();
}
on (release) {
this._onRelease();
tmo.clearInterval(this.idWait);
delete this.onMouseMove;
this.mcToolTip.removeMovieClip();
_parent.gotoAndStop("fLoadMatch");
}
Symbol 1736 MovieClip Frame 2
stop();
lstMatchs._visible = false;
txtMatchName.restrict = "a-zA-Z0-9_\u00F1";
txtMatchPasswd.restrict = "a-zA-Z0-9_\u00F1";
cmbPlayers.selectedIndex = 0;
txtMatchName.text = matchName;
Selection.setFocus(txtMatchName);
Instance of Symbol 439 MovieClip [zButton] "chkAudienceTalk" in Symbol 1736 MovieClip Frame 2
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "";
label = "";
selected = true;
skin = "skinCheck";
type = "Check";
}
Instance of Symbol 439 MovieClip [zButton] "chkAudience" in Symbol 1736 MovieClip Frame 2
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "";
label = "";
selected = true;
skin = "skinCheck";
type = "Check";
}
onClipEvent (load) {
function __f_change(eventObj) {
_parent.chkAudienceTalk.enabled = this.selected;
}
this.addEventListener("change", __f_change);
}
Instance of Symbol 439 MovieClip [zButton] "chkGuests" in Symbol 1736 MovieClip Frame 2
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "";
label = "";
selected = true;
skin = "skinCheck";
type = "Check";
}
Instance of Symbol 439 MovieClip [zButton] "chkGoOnLeave" in Symbol 1736 MovieClip Frame 2
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "";
label = "";
selected = true;
skin = "skinCheck";
type = "Check";
}
onClipEvent (load) {
this.enabled = false;
this.selected = _parent.goOnLeave;
}
Instance of Symbol 835 MovieClip [zComboBox] "cmbPlayers" in Symbol 1736 MovieClip Frame 2
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
editable = false;
enabled = true;
skin = "_skinComboNum";
}
onClipEvent (load) {
this.enabled = false;
this.dataProvider = _global.dpNumPlayers.clone();
this.selectedIndex = 0;
}
onClipEvent (load) {
function __f_change(eventObj) {
var _local3 = (this.selectedItem.numPlayers > 2) && ((this.selectedItem.numPlayers / this.selectedItem.numTeams) == 1);
_parent.chkGoOnLeave.enabled = _local3;
_parent.chkGoOnLeave.selected = _local3;
}
this.addEventListener("change", __f_change);
}
Instance of Symbol 439 MovieClip [zButton] "btnCancel" in Symbol 1736 MovieClip Frame 2
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "";
label = "";
selected = false;
skin = "_skinButtonCrearCancelar";
type = "Button";
}
on (release) {
this._onRelease();
this.enabled = false;
_parent.gotoAndPlay(1);
}
Instance of Symbol 439 MovieClip [zButton] "btnCreate" in Symbol 1736 MovieClip Frame 2
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "";
label = "";
selected = false;
skin = "_skinButtonCrearOK";
type = "Button";
}
on (release) {
this._onRelease();
this.enabled = false;
_parent.matchName = _parent.txtMatchName.text;
_parent.passwd = _parent.txtMatchPasswd.text;
_parent.maxUsers = _parent.cmbPlayers.selectedItem.numPlayers;
_parent.guests = _parent.chkGuests.selected;
_parent.audience = _parent.chkAudience.selected;
_parent.audienceTalk = _parent.chkAudienceTalk.selected;
_parent.goOnLeave = _parent.chkGoOnLeave.selected;
_global.extra.frame = _parent.cmbPlayers.selectedItem.frame;
_global.extra.versus = _parent.cmbPlayers.text;
_global.extra.numTeams = _parent.cmbPlayers.selectedItem.numTeams;
_parent.play();
}
Symbol 1736 MovieClip Frame 3
stop();
Instance of Symbol 1100 MovieClip [zNStepper] "nsTurnTime" in Symbol 1736 MovieClip Frame 3
//component parameters
onClipEvent (construct) {
enabled = true;
increase = 5;
max = 30;
min = 10;
position = 15;
skin = "_skinNStepperCreateMatch";
}
Instance of Symbol 439 MovieClip [zButton] "btnCancel" in Symbol 1736 MovieClip Frame 3
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "";
label = "";
selected = false;
skin = "_skinButtonCrearOK";
type = "Button";
}
on (release) {
this._onRelease();
this.enabled = false;
_parent.gotoAndPlay(2);
}
Instance of Symbol 439 MovieClip [zButton] "btnCreate" in Symbol 1736 MovieClip Frame 3
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "";
label = "";
selected = false;
skin = "_skinButtonCrearOK";
type = "Button";
}
on (release) {
this._onRelease();
this.enabled = false;
_global.extra.turnTime = (_parent.nsTurnTime ? (_parent.nsTurnTime.position) : (_global.extra.turnTime));
if (_global.rg.type == 2) {
_parent.initBet = 0;
rg.createMatch(_parent.matchName, _parent.passwd, _parent.maxUsers, _parent.guests, _parent.initBet, _parent.audience, _parent.audienceTalk, -1, _parent.goOnLeave, Serialize.code(_global.extra).split("'").join("\\'"));
} else {
_parent.play();
}
}
Symbol 1736 MovieClip Frame 4
stop();
Instance of Symbol 1100 MovieClip [zNStepper] "nsBet" in Symbol 1736 MovieClip Frame 4
//component parameters
onClipEvent (construct) {
enabled = true;
increase = 1;
max = 10;
min = 0;
position = 0;
skin = "_skinNStepperCreateMatch";
}
onClipEvent (load) {
if ((rg.type == 2) || (rg.credits <= 0)) {
this.enabled = false;
} else {
this.max = rg.credits;
this.increase = 100;
if (rg.credits < 1000) {
this.increase = 50;
}
if (rg.credits < 500) {
this.increase = 25;
}
if (rg.credits < 100) {
this.increase = 10;
}
if (rg.credits < 50) {
this.increase = 5;
}
if (rg.credits < 20) {
this.increase = 2;
}
if (rg.credits < 10) {
this.increase = 1;
}
}
}
Instance of Symbol 439 MovieClip [zButton] "btnCancel" in Symbol 1736 MovieClip Frame 4
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "";
label = "";
selected = false;
skin = "_skinButtonCrearOK";
type = "Button";
}
on (release) {
this._onRelease();
this.enabled = false;
_parent.gotoAndPlay(3);
}
Instance of Symbol 439 MovieClip [zButton] "btnCreate" in Symbol 1736 MovieClip Frame 4
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "radioGroup";
label = "";
selected = false;
skin = "_skinButtonCrearOK";
type = "Button";
}
on (release) {
this._onRelease();
this.enabled = false;
_parent.initBet = _parent.nsBet.position;
rg.createMatch(_parent.matchName, _parent.passwd, _parent.maxUsers, _parent.guests, _parent.initBet, _parent.audience, _parent.audienceTalk, _parent.codLoadMatch, _parent.goOnLeave, Serialize.code(_global.extra).split("'").join("\\'"));
}
Symbol 1736 MovieClip Frame 5
stop();
lstMatchs._visible = false;
_parent.lstCargar._visible = true;
btnInfoLoad.enabled = (_parent.lstCargar.dataProvider.length > 0) && (_parent.lstCargar.selectedIndex != undefined);
_parent.lstCargar.onChange = function (item, datos) {
btnInfoLoad.enabled = (_parent.lstCargar.dataProvider.length > 0) && (_parent.lstCargar.selectedIndex != undefined);
};
if (_parent.lstCargar.dataProvider.length == 0) {
if (_global.rg.type != 2) {
txtSave.text = "No tienes partidas guardadas";
} else {
txtSave.text = "Registrate para poder cargar/guardar partidas";
}
} else {
txtSave._visible = false;
}
Instance of Symbol 439 MovieClip [zButton] "btnCancel" in Symbol 1736 MovieClip Frame 5
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "";
label = "";
selected = false;
skin = "_skinButtonCrearCancelar";
type = "Button";
}
on (release) {
this._onRelease();
this.enabled = false;
_parent.gotoAndPlay(1);
}
Instance of Symbol 439 MovieClip [zButton] "btnInfoLoad" in Symbol 1736 MovieClip Frame 5
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "";
label = "";
selected = false;
skin = "_skinButtonCrearOK";
type = "Button";
}
on (release) {
this._onRelease();
if (_parent._parent.lstCargar.selectedItem) {
this.enabled = false;
_parent.gotoAndStop("fInfoLoadMatch");
}
}
Symbol 1736 MovieClip Frame 6
function parseDate(pDate) {
var _local1 = pDate.split(" ");
var _local2 = new Object();
_local2.time = _local1[1];
_local1 = _local1[0].split("-");
_local2.date = (((_local1[2] + "-") + _local1[1]) + "-") + _local1[0];
return(_local2);
}
function loadMatch() {
if (_parent.lstCargar.selectedIndex == undefined) {
return(undefined);
}
btnLoadOk.enabled = false;
rg.createMatch(match.matchName, match.mPasswd, match.maxUsers, match.guests, match.initBet, match.audience, match.audienceTalk, match.codpartida, match.goOnLeave, match.extra.split("'").join("\\'"));
}
stop();
_parent.lstCargar._visible = false;
var match = _parent.lstCargar.selectedItem.clone();
txtMatchName.text = match.matchName;
var objDate = parseDate(match.date);
txtDate.text = objDate.date;
txtTime.text = objDate.time;
txtNumPlayers.text = match.maxUsers;
txtBet.text = match.bet * match.maxUsers;
matchDuration = new Object();
matchDuration.msgs = "0";
matchDuration.sgs = 0;
matchDuration.mins = 0;
matchDuration.hrs = 0;
matchDuration.msgs = Number(match.game.m_matchDuration.buffer);
matchDuration.hrs = Math.floor(matchDuration.msgs / 3600000);
var auxMsgs = (Number(matchDuration.msgs) % 3600000);
matchDuration.mins = Math.floor(auxMsgs / 60000);
matchDuration.sgs = Math.floor((auxMsgs % 60000) / 1000);
if ((matchDuration.hrs == 0) && (matchDuration.mins == 0)) {
txtDuration.text = txtDuration.text + (matchDuration.sgs + " sg");
} else if (matchDuration.hrs == 0) {
txtDuration.text = txtDuration.text + (((matchDuration.mins + " min ") + matchDuration.sgs) + " sg");
} else {
txtDuration.text = txtDuration.text + (((((matchDuration.hrs + " hr ") + matchDuration.mins) + " min ") + matchDuration.sgs) + " sg");
}
txtTurn.text = "";
txtPlayerList.text = "";
txtWins.text = "";
txtLoses.text = "";
txtDraws.text = "";
txtPoints.text = "";
var i = 0;
while (i < match.maxUsers) {
this["mcTurn" + i]._visible = i == match.game.m_turn;
txtPlayerList.text = txtPlayerList.text + (match.game.m_player[i].m_name + newline);
txtWins.text = txtWins.text + (match.game.m_player[i].m_statistics.m_win + newline);
txtLoses.text = txtLoses.text + (match.game.m_player[i].m_statistics.m_lose + newline);
i++;
}
txtTurnTime.text = match.game.m_extra.turnTime + " sg";
var i = 0;
while (i < 9) {
this["h" + i].gotoAndStop("ficha" + match.game.m_extra.board[i]);
i++;
}
Instance of Symbol 877 MovieClip "mcVictoria" in Symbol 1736 MovieClip Frame 6
on (rollOver, dragOver) {
var THIS = this;
var wait = function () {
THIS.mcToolTip = _root.mcConectado.attachMovie("mcToolTips", "mcToolTip", 100);
THIS.mcToolTip.gotoAndStop(THIS._name.toString());
THIS.onMouseMove = function () {
THIS.mcToolTip._x = _root._xmouse - (THIS.mcToolTip._width / 2);
THIS.mcToolTip._y = _root._ymouse - THIS.mcToolTip._height;
updateAfterEvent();
};
THIS.onMouseMove();
};
tmo.clearInterval(this.idWait);
this.idWait = tmo.setTimeout(wait, 800);
}
on (releaseOutside, rollOut, dragOut) {
tmo.clearInterval(this.idWait);
delete this.onMouseMove;
this.mcToolTip.removeMovieClip();
}
on (release) {
this._onRelease();
tmo.clearInterval(this.idWait);
delete this.onMouseMove;
this.mcToolTip.removeMovieClip();
}
Instance of Symbol 877 MovieClip "mcDerrota" in Symbol 1736 MovieClip Frame 6
on (rollOver, dragOver) {
var THIS = this;
var wait = function () {
THIS.mcToolTip = _root.mcConectado.attachMovie("mcToolTips", "mcToolTip", 100);
THIS.mcToolTip.gotoAndStop(THIS._name.toString());
THIS.onMouseMove = function () {
THIS.mcToolTip._x = _root._xmouse - (THIS.mcToolTip._width / 2);
THIS.mcToolTip._y = _root._ymouse - THIS.mcToolTip._height;
updateAfterEvent();
};
THIS.onMouseMove();
};
tmo.clearInterval(this.idWait);
this.idWait = tmo.setTimeout(wait, 800);
}
on (releaseOutside, rollOut, dragOut) {
tmo.clearInterval(this.idWait);
delete this.onMouseMove;
this.mcToolTip.removeMovieClip();
}
on (release) {
this._onRelease();
tmo.clearInterval(this.idWait);
delete this.onMouseMove;
this.mcToolTip.removeMovieClip();
}
Instance of Symbol 439 MovieClip [zButton] "btnCancel" in Symbol 1736 MovieClip Frame 6
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "";
label = "";
selected = false;
skin = "_skinButtonCrearCancelar";
type = "Button";
}
on (release) {
this._onRelease();
this.enabled = false;
_parent.gotoAndStop("fLoadMatch");
}
Instance of Symbol 439 MovieClip [zButton] "btnLoadOk" in Symbol 1736 MovieClip Frame 6
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "";
label = "";
selected = false;
skin = "_skinButtonCrearOK";
type = "Button";
}
on (release) {
this._onRelease();
this.enabled = false;
_parent.loadMatch();
}
Symbol 1749 MovieClip Frame 1
stop();
Instance of Symbol 630 MovieClip "mcCredits" in Symbol 1749 MovieClip Frame 1
on (rollOver, dragOver) {
var THIS = this;
var wait = function () {
THIS.mcToolTip = _root.mcConectado.attachMovie("mcToolTips", "mcToolTip", 100);
THIS.mcToolTip.gotoAndStop(THIS._name.toString());
THIS.onMouseMove = function () {
THIS.mcToolTip._x = _root._xmouse - (THIS.mcToolTip._width / 2);
THIS.mcToolTip._y = _root._ymouse - THIS.mcToolTip._height;
updateAfterEvent();
};
THIS.onMouseMove();
};
tmo.clearInterval(this.idWait);
this.idWait = tmo.setTimeout(wait, 800);
}
on (releaseOutside, rollOut, dragOut) {
tmo.clearInterval(this.idWait);
delete this.onMouseMove;
this.mcToolTip.removeMovieClip();
}
on (release) {
this._onRelease();
tmo.clearInterval(this.idWait);
delete this.onMouseMove;
this.mcToolTip.removeMovieClip();
}
Symbol 1750 MovieClip Frame 1
stop();
if (_global.rg.type == 2) {
mcFicha.gotoAndStop("fGuestUser");
}
_global.rg.onRefreshProfile = function (obj) {
rg.credits = obj.credits;
rg.points = obj.points;
rg.rank = obj.rank;
mcFicha.txtNombre.text = _global.rg.userName;
mcFicha.txtRango.text = _global.rg.rank;
mcFicha.mcRango.gotoAndStop(_global.rg.rank);
mcFicha.txtCreditos.text = _global.rg.credits;
mcFicha.txtPuntos.text = _global.rg.points;
};
_global.rg.send("fn'onRefreshProfile'");
Symbol 1750 MovieClip Frame 25
stop();
Symbol 1751 MovieClip Frame 1
function checkButtons() {
btnAdd.enabled = false;
btnChat.enabled = false;
btnPerfil.enabled = false;
btnInvitar.enabled = false;
btnIgnore.enabled = false;
if (lstUsuarios.selectedItem == undefined) {
return(undefined);
}
if (lstUsuarios.selectedItem.idUser != rg.idUser) {
btnChat.enabled = true;
}
btnPerfil.enabled = lstUsuarios.selectedItem.type != 2;
var _local2 = _global.gMatchs.find("idMatch", rg.idMatch);
if (((((_global.rg.idUser == _global.gMatchs[_local2].idOwner) && (_global.gMatchs[_local2].numUsers < _global.gMatchs[_local2].maxUsers)) && (lstUsuarios.selectedItem.idUser != rg.idUser)) && (lstUsuarios.selectedItem.credits >= _global.gMatchs[_local2].initBet)) && (!((!_global.gMatchs[_local2].guests) && (lstUsuarios.selectedItem.type == 2)))) {
btnInvitar.enabled = true;
}
if (((((rg.type == 0) || (rg.type == 1)) || (rg.type == 4)) && (((lstUsuarios.selectedItem.type == 0) || (lstUsuarios.selectedItem.type == 1)) || (lstUsuarios.selectedItem.type == 4))) && (lstUsuarios.selectedItem.idUser != rg.idUser)) {
if (rg.friendList.find("userName", lstUsuarios.selectedItem.userName) < 0) {
btnAdd.enabled = true;
}
}
if (((lstUsuarios.selectedItem.idUser != rg.idUser) && (lstUsuarios.selectedItem.type != 0)) && (lstUsuarios.selectedItem.type != 4)) {
btnIgnore.enabled = true;
}
}
checkButtons();
lstUsuarios.onChange = function () {
checkButtons();
};
Instance of Symbol 439 MovieClip [zButton] "btnAdd" in Symbol 1751 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "radioGroup";
label = "Aceptar";
selected = false;
skin = "_skinButtonA\u00F1adirUsuariox3";
type = "Button";
}
on (release) {
this._onRelease();
this.enabled = false;
var THIS = this;
if (_parent.lstUsuarios.selectedItem == undefined) {
_level.attachMovie("mcMessages", "mcMessages", _level.getNextHighestDepth());
_level.mcMessages.mcWindow.gotoAndStop("fEmptyUser");
return(undefined);
}
rg.onAddFriend = function (obj) {
switch (obj.status) {
case 0 :
var _local2 = new Object();
_local2.codusuario = _parent.lstUsuarios.selectedItem.codusuario;
_local2.userName = _parent.lstUsuarios.selectedItem.userName;
_local2.rank = _parent.lstUsuarios.selectedItem.rank;
_local2.online = true;
_local2.codservidor = rg.codservidor;
_local2.serverID = rg.serverID;
_local2.idUser = _parent.lstUsuarios.selectedItem.idUser;
rg.friendList.push(_local2.clone());
THIS._parent._parent.mcListaUsuariosAmigos.lstAmigos.addItem(_local2.clone());
THIS._parent.checkButtons();
_level.attachMovie("mcMessages", "mcMessages", _level.getNextHighestDepth());
_level.mcMessages.mcWindow.gotoAndStop("fAddFriendOk");
break;
case 1 :
_level.attachMovie("mcMessages", "mcMessages", _level.getNextHighestDepth());
_level.mcMessages.mcWindow.gotoAndStop("fNoAddMe");
break;
case 3 :
_level.attachMovie("mcMessages", "mcMessages", _level.getNextHighestDepth());
_level.mcMessages.mcWindow.gotoAndStop("fFriendExists");
break;
case 2 :
case 4 :
_level.attachMovie("mcMessages", "mcMessages", _level.getNextHighestDepth());
_level.mcMessages.mcWindow.gotoAndStop("fAddFriendError");
break;
case 5 :
_level.attachMovie("mcMessages", "mcMessages", _level.getNextHighestDepth());
_level.mcMessages.mcWindow.gotoAndStop("fErrorExtra");
_level.mcMessages.mcWindow.txtMsg.text = obj.msg;
break;
}
};
var o = _parent.lstUsuarios.selectedItem;
rg.send(((("fn'onAddFriend'codusuario&" + o.codusuario) + ";idUser&") + o.idUser) + ";");
}
Instance of Symbol 439 MovieClip [zButton] "btnPerfil" in Symbol 1751 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "radioGroup";
label = "Aceptar";
selected = false;
skin = "_skinButtonPerfilUsuariox2";
type = "Button";
}
on (release) {
this._onRelease();
this.enabled = false;
if (_parent.lstUsuarios.selectedItem == undefined) {
_level.attachMovie("mcMessages", "mcMessages", _level.getNextHighestDepth());
_level.mcMessages.mcWindow.gotoAndStop("fEmptyUser");
return(undefined);
}
_level.attachMovie("mcMessages", "mcMessages", _level.getNextHighestDepth());
_level.mcMessages.mcWindow.gotoAndStop("fVerPerfil");
}
Instance of Symbol 439 MovieClip [zButton] "btnChat" in Symbol 1751 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "radioGroup";
label = "Aceptar";
selected = false;
skin = "_skinButtonHablarx2";
type = "Button";
}
on (release) {
this._onRelease();
this.enabled = false;
if (_parent.lstUsuarios.selectedItem == undefined) {
return(undefined);
}
var idUser = _parent.lstUsuarios.selectedItem.idUser;
var userName = _parent.lstUsuarios.selectedItem.userName;
var codservidor = _parent.lstUsuarios.selectedItem.codservidor;
var serverID = _parent.lstUsuarios.selectedItem.serverID;
if (_parent._parent.mcChat["mc" + userName] != undefined) {
return(undefined);
}
var nue = _parent._parent.mcChat.attachMovie("mcChatSala", "mc" + userName, _parent._parent.mcChat.getNextHighestDepth());
nue._x = _parent._parent.mcChat.mcSala._x;
nue._y = _parent._parent.mcChat.mcSala._y;
_parent._parent.mcChat.cmbSmileys.swapDepths(_parent._parent.mcChat.getNextHighestDepth());
_parent._parent.mcChat.newTab = true;
_parent._parent.mcChat.tab.addTab(userName, true);
_parent._parent.mcChat.tab.tabs[_parent._parent.mcChat.tab.tabs.length - 1].idUser = idUser;
_parent._parent.mcChat.tab.tabs[_parent._parent.mcChat.tab.tabs.length - 1].codservidor = codservidor;
_parent._parent.mcChat.tab.tabs[_parent._parent.mcChat.tab.tabs.length - 1].serverID = serverID;
Selection.setFocus(_parent._parent.mcChat.txtIn);
}
Instance of Symbol 439 MovieClip [zButton] "btnInvitar" in Symbol 1751 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "radioGroup";
label = "Aceptar";
selected = false;
skin = "_skinButtonInvitarUsuariox3";
type = "Button";
}
on (release) {
this._onRelease();
this.enabled = false;
var idUser = _parent.lstUsuarios.selectedItem.idUser;
var userName = _parent.lstUsuarios.selectedItem.userName;
var codservidor = _parent.lstUsuarios.selectedItem.codservidor;
var serverID = _parent.lstUsuarios.selectedItem.serverID;
var match = gMatchs[gMatchs.find("idMatch", _global.rg.idMatch)].clone();
rg.sendObjUser({fn:"onSendInviteUser", idUser:idUser, idMatch:rg.idMatch, userName:userName, codservidor:codservidor, serverID:serverID, initBet:match.initBet});
}
Instance of Symbol 439 MovieClip [zButton] "btnIgnore" in Symbol 1751 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "radioGroup";
label = "Aceptar";
selected = false;
skin = "_skinButtonIgnorarUsuariox3";
type = "Button";
}
on (release) {
this._onRelease();
this.enabled = false;
if (_parent.lstUsuarios.selectedItem == undefined) {
_level.attachMovie("mcMessages", "mcMessages", _level.getNextHighestDepth());
_level.mcMessages.mcWindow.gotoAndStop("fEmptyUser");
return(undefined);
}
var idx = _global.gIgnores.find("", _parent.lstUsuarios.selectedItem.userName);
((idx == -1) ? (_global.gIgnores.push(_parent.lstUsuarios.selectedItem.userName)) : (_global.gIgnores.splice(idx, 1)));
_global.rutaListaUsuariosSala.render();
_global.rutaListaUsuariosPartida.render();
}
Instance of Symbol 38 MovieClip [zListBox] "lstUsuarios" in Symbol 1751 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
enabled = true;
hScrollPolicy = "off";
multipleSelection = false;
skin = "_skinListaPlayers";
vScrollPolicy = "on";
}
Symbol 1752 MovieClip Frame 1
stop();
Instance of Symbol 439 MovieClip [zButton] in Symbol 1752 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "3Tabs";
label = "Aceptar";
selected = false;
skin = "_skinButtonListaSala3Tabs";
type = "Option";
}
on (release) {
this._onRelease();
_parent._parent.mcListaUsuariosSala._visible = true;
_parent._parent.mcListaUsuariosPartida._visible = false;
_parent._parent.mcListaUsuariosAmigos._visible = false;
_parent._parent.mcListaUsuariosSala.checkButtons();
}
Symbol 1753 MovieClip Frame 1
stop();
Instance of Symbol 439 MovieClip [zButton] in Symbol 1753 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "3Tabs";
label = "Aceptar";
selected = true;
skin = "_skinButtonListaPartida";
type = "Option";
}
on (release) {
this._onRelease();
_parent._parent.mcListaUsuariosSala._visible = false;
_parent._parent.mcListaUsuariosPartida._visible = true;
_parent._parent.mcListaUsuariosAmigos._visible = false;
_parent._parent.mcListaUsuariosPartida.checkButtons();
}
Symbol 1756 MovieClip Frame 1
stop();
Symbol 1756 MovieClip Frame 2
stop();
if (cont == undefined) {
var cont = 0;
}
var wait = function (This) {
if ((cont++) >= 3) {
cont = 0;
} else {
This.nextFrame();
}
};
tmo.setTimeout(wait, 300, this);
Symbol 1756 MovieClip Frame 3
stop();
var wait = function (This) {
This.prevFrame();
};
tmo.setTimeout(wait, 300, this);
Symbol 1757 MovieClip Frame 1
stop();
Instance of Symbol 439 MovieClip [zButton] in Symbol 1757 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "3Tabs";
label = "Aceptar";
selected = false;
skin = "_skinButtonListaAmigos3Tabs";
type = "Option";
}
onClipEvent (load) {
if (_global.rg.type == 2) {
this.enabled = false;
}
}
on (release) {
this._onRelease();
_parent.gotoAndStop("fStop");
_parent._parent.mcListaUsuariosSala._visible = false;
_parent._parent.mcListaUsuariosPartida._visible = false;
_parent._parent.mcListaUsuariosAmigos._visible = true;
_parent._parent.mcListaUsuariosAmigos.checkButtons();
}
Symbol 1757 MovieClip Frame 2
if (_parent.mcListaUsuariosAmigos._visible) {
gotoAndStop ("fStop");
}
Symbol 1769 MovieClip Frame 1
function refresh() {
var _local4 = gMatchs.find("idMatch", rg.idMatch);
var _local5 = gMatchs[_local4].users[idPlayer];
var _local3 = gUsers.find("idUser", _local5);
if (gMatchs[_local4].users[idPlayer] != undefined) {
if (txtUserName.text == gUsers[_local3].userName) {
return(undefined);
}
this.createEmptyMovieClip("mcAvatar", txtUserName.getDepth() - 9);
mclAvatar.addListener(lstAvatar);
mclAvatar.loadClip((gUsers[_local3].avatar + "?refresh=") + new Date().getTime(), mcAvatar);
txtUserName.text = gUsers[_local3].userName;
mcRank.gotoAndStop(gUsers[_local3].rank);
mcRank._visible = true;
} else {
avatarOut = function () {
if (this._alpha <= 0) {
this._alpha = 0;
delete this.onEnterFrame;
this.removeMovieClip();
} else {
this._alpha = this._alpha - 5;
}
};
this.mcAvatar.onEnterFrame = avatarOut;
_parent.btnAccept.enabled = false;
mcRank._visible = false;
txtUserName.text = "";
}
}
stop();
var idPlayer = Number(String(this._name).slice(8));
var mclAvatar = new MovieClipLoader();
var lstAvatar = new Object();
lstAvatar.onLoadProgress = function (target) {
target._alpha = 0;
};
lstAvatar.onLoadInit = function (target) {
target._xscale = 85;
target._yscale = 85;
target._x = -65;
target._y = -45;
avatarIn = function () {
if (target._alpha >= 100) {
target._alpha = 100;
delete this.onEnterFrame;
} else {
target._alpha = target._alpha + 5;
}
};
target.onEnterFrame = avatarIn;
};
refresh();
Symbol 1782 MovieClip Frame 1
stop();
Symbol 1782 MovieClip Frame 52
_global.sounds.beep.start();
Symbol 1782 MovieClip Frame 105
_global.sounds.beep.start();
Symbol 1782 MovieClip Frame 159
_global.sounds.beep.start();
Symbol 1782 MovieClip Frame 162
_root.saveChatState();
_root.play();
Instance of Symbol 835 MovieClip [zComboBox] "cmbPlayers" in Symbol 1785 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
editable = false;
enabled = true;
skin = "_skinComboNum";
}
onClipEvent (load) {
function __f_change(eventObj) {
_parent._parent.mcDesplegable.mcInfo.chkGoOnLeave.selected = (this.selectedItem.numPlayers > 2) && ((this.selectedItem.numPlayers / this.selectedItem.numTeams) == 1);
_parent._parent.sendUpdate();
}
this.addEventListener("change", __f_change);
}
Symbol 1791 MovieClip Frame 1
stop();
chkPasswd._visible = false;
Instance of Symbol 439 MovieClip [zButton] "chkPasswd" in Symbol 1791 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = false;
groupName = "";
label = "";
selected = true;
skin = "skinCheck";
type = "Check";
}
Symbol 1791 MovieClip Frame 2
stop();
chkPasswd._visible = true;
Symbol 1801 MovieClip Frame 1
stop();
Instance of Symbol 439 MovieClip [zButton] "btnUpdate" in Symbol 1801 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "";
label = "Aceptar";
selected = false;
skin = "_skinButtonUpdate";
type = "Button";
}
on (release) {
this._onRelease();
_root.mcConectado.mcVersus.sendUpdate();
}
Instance of Symbol 439 MovieClip [zButton] in Symbol 1801 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "";
label = "Aceptar";
selected = false;
skin = "_skinChatTabClose";
type = "Button";
}
on (release) {
this._onRelease();
_parent._parent.play();
}
Instance of Symbol 439 MovieClip [zButton] "chkGuests" in Symbol 1801 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "";
label = "";
selected = true;
skin = "skinCheck";
type = "Check";
}
Instance of Symbol 439 MovieClip [zButton] "chkAudience" in Symbol 1801 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "";
label = "";
selected = true;
skin = "skinCheck";
type = "Check";
}
onClipEvent (load) {
function __f_change(eventObj) {
_parent.chkAudienceTalk.enabled = this.selected;
}
this.addEventListener("change", __f_change);
}
Instance of Symbol 439 MovieClip [zButton] "chkAudienceTalk" in Symbol 1801 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "";
label = "";
selected = true;
skin = "skinCheck";
type = "Check";
}
Instance of Symbol 1100 MovieClip [zNStepper] "nsTurnTime" in Symbol 1801 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
enabled = true;
increase = 5;
max = 30;
min = 10;
position = 15;
skin = "_skinNStepperCreateMatch";
}
Instance of Symbol 439 MovieClip [zButton] "chkGoOnLeave" in Symbol 1801 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "";
label = "";
selected = true;
skin = "skinCheck";
type = "Check";
}
Symbol 1806 MovieClip Frame 1
stop();
mcInfo._visible = false;
txtMatchTitle._visible = true;
Symbol 1806 MovieClip Frame 2
txtMatchTitle._visible = false;
Symbol 1806 MovieClip Frame 15
stop();
mcInfo._visible = true;
Symbol 1806 MovieClip Frame 16
mcInfo._visible = false;
Symbol 1806 MovieClip Frame 30
gotoAndStop (1);
Symbol 1807 MovieClip Frame 1
function updateOptions() {
var _local2 = gMatchs[gMatchs.find("idMatch", _global.rg.idMatch)].clone();
var _local5 = _global.rg.idUser == _local2.idOwner;
mcDesplegableTeams.cmbPlayers.enabled = false;
mcDesplegableTeams.cmbPlayers.dataProvider = _global.dpNumPlayers.clone();
if (_currentframe != (_local2.extra.frame - 1)) {
gotoAndStop(_local2.extra.frame - 1);
}
mcDesplegableTeams.cmbPlayers.text = _local2.extra.versus;
btnAccept._visible = _local5;
mcTapaBtnJugar._visible = !_local5;
mcDesplegable.mcInfo.btnUpdate.enabled = _local5;
mcDesplegable.txtMatchTitle.selectable = _local5;
mcDesplegable.txtMatchTitle.text = _local2.matchName;
mcDesplegable.mcInfo.txtInitBet.text = _local2.initBet;
if (_local5) {
mcDesplegable.mcInfo.mcPasswd.gotoAndStop(1);
mcDesplegable.mcInfo.mcPasswd.txtPasswd.text = (antOptions.passwd ? (antOptions.passwd) : (_global.rg.mPasswd));
} else {
mcDesplegable.mcInfo.mcPasswd.gotoAndStop(2);
mcDesplegable.mcInfo.mcPasswd.chkPasswd.selected = _local2.mPasswd;
}
mcDesplegable.mcInfo.chkGuests.enabled = _local5;
mcDesplegable.mcInfo.chkGuests.selected = _local2.guests;
mcDesplegable.mcInfo.chkAudience.enabled = _local5;
mcDesplegable.mcInfo.chkAudience.selected = _local2.audience;
mcDesplegable.mcInfo.chkAudienceTalk.enabled = _local5;
mcDesplegable.mcInfo.chkAudienceTalk.selected = _local2.audienceTalk;
mcDesplegable.mcInfo.chkGoOnLeave.enabled = (_local5 && (_local2.maxUsers == _local2.extra.numTeams)) && (_local2.maxUsers > 2);
mcDesplegable.mcInfo.chkGoOnLeave.selected = _local2.goOnLeave;
mcDesplegable.mcInfo.nsTurnTime.enabled = _local5 && (_local2.codLoadMatch == -1);
mcDesplegable.mcInfo.nsTurnTime.position = _local2.extra.turnTime;
btnAccept.enabled = _local5 && (_local2.numUsers == _local2.maxUsers);
btnTeamsSetting.enabled = (_local5 && (_local2.numUsers == _local2.maxUsers)) && (_local2.extra.frame > 6);
antOptions.matchTitle = _local2.matchName;
antOptions.passwd = mcDesplegable.mcInfo.mcPasswd.txtPasswd.text;
antOptions.guests = _local2.guests;
antOptions.audience = _local2.audience;
antOptions.audienceTalk = _local2.audienceTalk;
antOptions.goOnLeave = _local2.goOnLeave;
antOptions.numPlayers = _local2.maxUsers;
antOptions.extra = _local2.extra.clone();
if ((_local2.extra.frame <= 6) && (_local2.extra.numTeams != _local2.maxUsers)) {
var _local6 = mcDesplegableTeams.cmbPlayers.dataProvider.length;
var _local3 = 0;
while (_local3 < _local6) {
if (mcDesplegableTeams.cmbPlayers.dataProvider[_local3].numTeams == _local2.maxUsers) {
mcDesplegableTeams.cmbPlayers.selectedIndex = _local3;
var _local4 = function (_this) {
clearInterval(id);
_this.sendUpdate();
};
clearInterval(id);
var id = setInterval(_local4, 100, _this);
return(undefined);
}
_local3++;
}
}
}
function refresh() {
var _local3 = 0;
while (_local3 < gMatchs[gMatchs.find("idMatch", _global.rg.idMatch)].maxUsers) {
this["mcPlayer" + _local3].refresh();
_local3++;
}
}
function sendUpdate() {
if (!checkOptions()) {
return(undefined);
}
mcDesplegable.mcInfo.btnUpdate.enabled = false;
if (_global.rg.idUser == gMatchs[gMatchs.find("idMatch", _global.rg.idMatch)].idOwner) {
var _local6 = mcDesplegable.txtMatchTitle.text;
var _local8 = mcDesplegable.mcInfo.mcPasswd.txtPasswd.text;
antOptions.passwd = mcDesplegable.mcInfo.mcPasswd.txtPasswd.text;
var _local3 = (mcDesplegableTeams.cmbPlayers.selectedItem ? (mcDesplegableTeams.cmbPlayers.selectedItem.numPlayers) : (antOptions.numPlayers));
var _local5 = mcDesplegable.mcInfo.chkGuests.selected;
var _local4 = mcDesplegable.mcInfo.chkAudience.selected;
var _local7 = mcDesplegable.mcInfo.chkAudienceTalk.selected;
var _local2 = mcDesplegable.mcInfo.chkGoOnLeave.selected;
_global.extra.frame = (mcDesplegableTeams.cmbPlayers.selectedItem ? (mcDesplegableTeams.cmbPlayers.selectedItem.frame) : (_global.extra.frame));
_global.extra.versus = mcDesplegableTeams.cmbPlayers.text;
_global.extra.numTeams = (mcDesplegableTeams.cmbPlayers.selectedItem ? (mcDesplegableTeams.cmbPlayers.selectedItem.numTeams) : (_global.extra.numTeams));
_global.extra.turnTime = mcDesplegable.mcInfo.nsTurnTime.position;
_global.rg.updateMatch(_local6, _local8, _local3, _local5, _local4, _local7, _local2, Serialize.code(_global.extra).split("'").join("\\'"));
}
}
function checkOptions() {
if (antOptions.matchTitle != mcDesplegable.txtMatchTitle.text) {
return(true);
}
if (antOptions.passwd != mcDesplegable.mcInfo.mcPasswd.txtPasswd.text) {
return(true);
}
if (antOptions.guests != mcDesplegable.mcInfo.chkGuests.selected) {
return(true);
}
if (antOptions.audience != mcDesplegable.mcInfo.chkAudience.selected) {
return(true);
}
if (antOptions.audienceTalk != mcDesplegable.mcInfo.chkAudienceTalk.selected) {
return(true);
}
if (antOptions.goOnLeave != mcDesplegable.mcInfo.chkGoOnLeave.selected) {
return(true);
}
if (antOptions.extra.versus != mcDesplegableTeams.cmbPlayers.text) {
return(true);
}
if (antOptions.extra.turnTime != mcDesplegable.mcInfo.nsTurnTime.position) {
return(true);
}
return(false);
}
stop();
var antOptions = new Object();
updateOptions();
Instance of Symbol 439 MovieClip [zButton] "btnAccept" in Symbol 1807 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "";
label = "Aceptar";
selected = false;
skin = "_skinButtonCrearOKGreen";
type = "Button";
}
onClipEvent (load) {
this.enabled = false;
}
on (release) {
this._onRelease();
this.enabled = false;
_parent.mcDesplegableTeams.cmbPlayers.enabled = false;
_parent.mcDesplegable.mcInfo.btnUpdate.enabled = false;
_parent.btnTeamsSetting.enabled = false;
rg.sendObjMatch({fn:"onBeginCountDown"});
_parent.mcCountDown.play();
}
Instance of Symbol 439 MovieClip [zButton] "btnCancel" in Symbol 1807 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "radioGroup";
label = "Aceptar";
selected = false;
skin = "_skinButtonCrearCancelar";
type = "Button";
}
on (release) {
this._onRelease();
this.enabled = false;
_global.rg.leaveMatch(true);
}
Instance of Symbol 439 MovieClip [zButton] "btnTeamsSetting" in Symbol 1807 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "";
label = "";
selected = false;
skin = "_skinButtonCrearTeams";
type = "Button";
}
onClipEvent (load) {
this.enabled = false;
}
on (release) {
this._onRelease();
tmo.clearInterval(this.idWait);
delete this.onMouseMove;
this.mcToolTip.removeMovieClip();
_level.mcMessages.mcWindow.Escape();
_level.attachMovie("mcMessages", "mcMessages", _level.getNextHighestDepth());
if (_parent.antOptions.extra.frame == 8) {
_level.mcMessages.mcWindow.gotoAndStop("f3TeamsSetting");
} else {
_level.mcMessages.mcWindow.gotoAndStop("f2TeamsSetting");
}
}
on (rollOver, dragOver) {
var THIS = this;
var wait = function () {
THIS.mcToolTip = _root.mcConectado.attachMovie("mcToolTips", "mcToolTip", 100);
THIS.mcToolTip.gotoAndStop(THIS._name.toString());
THIS.onMouseMove = function () {
THIS.mcToolTip._x = (_root._xmouse - (THIS.mcToolTip._width / 2)) - 50;
THIS.mcToolTip._y = _root._ymouse - THIS.mcToolTip._height;
updateAfterEvent();
};
THIS.onMouseMove();
};
tmo.clearInterval(this.idWait);
this.idWait = tmo.setTimeout(wait, 800);
}
on (releaseOutside, rollOut, dragOut) {
tmo.clearInterval(this.idWait);
delete this.onMouseMove;
this.mcToolTip.removeMovieClip();
}
Instance of Symbol 439 MovieClip [zButton] "btnSetting" in Symbol 1807 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "radioGroup";
label = "Aceptar";
selected = false;
skin = "_skinButtonCrearSettings";
type = "Button";
}
on (release) {
this._onRelease();
tmo.clearInterval(this.idWait);
delete this.onMouseMove;
this.mcToolTip.removeMovieClip();
_parent.mcDesplegable.play();
}
on (rollOver, dragOver) {
var THIS = this;
var wait = function () {
THIS.mcToolTip = _root.mcConectado.attachMovie("mcToolTips", "mcToolTip", 100);
THIS.mcToolTip.gotoAndStop(THIS._name.toString());
THIS.onMouseMove = function () {
THIS.mcToolTip._x = (_root._xmouse - (THIS.mcToolTip._width / 2)) - 50;
THIS.mcToolTip._y = _root._ymouse - THIS.mcToolTip._height;
updateAfterEvent();
};
THIS.onMouseMove();
};
tmo.clearInterval(this.idWait);
this.idWait = tmo.setTimeout(wait, 800);
}
on (releaseOutside, rollOut, dragOut) {
tmo.clearInterval(this.idWait);
delete this.onMouseMove;
this.mcToolTip.removeMovieClip();
}
Symbol 1812 MovieClip Frame 1
stop();
_parent.loadChatState();
Selection.setFocus(mcChat.txtIn);
gotoAndStop(_global.cFrame);
Instance of Symbol 439 MovieClip [zButton] "chkSound" in Symbol 1812 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "";
label = "";
selected = true;
skin = "skinCheckSound";
type = "Check";
}
onClipEvent (load) {
if (_global.gOptions.data.sound != undefined) {
this.selected = _global.gOptions.data.sound;
} else {
this.selected = true;
}
}
onClipEvent (load) {
function __f_change(eventObj) {
_global.gOptions.data.sound = this.selected;
_global.gOptions.flush();
_global.sounds.setVolumes();
}
this.addEventListener("change", __f_change);
}
on (rollOver, dragOver) {
var THIS = this;
var wait = function () {
THIS.mcToolTip = _root.mcConectado.attachMovie("mcToolTips", "mcToolTip", 100);
THIS.mcToolTip.gotoAndStop(THIS._name.toString());
THIS.onMouseMove = function () {
THIS.mcToolTip._x = _root._xmouse - (THIS.mcToolTip._width / 2);
THIS.mcToolTip._y = _root._ymouse - THIS.mcToolTip._height;
updateAfterEvent();
};
THIS.onMouseMove();
};
clearInterval(this.idWait);
this.idWait = tmo.setTimeout(wait, 800);
}
on (releaseOutside, rollOut, dragOut) {
clearInterval(this.idWait);
delete this.onMouseMove;
this.mcToolTip.removeMovieClip();
}
Instance of Symbol 439 MovieClip [zButton] "btnModerators" in Symbol 1812 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "";
label = "";
selected = false;
skin = "_skinButtonPlaca";
type = "Button";
}
on (release) {
_level6.onCheckModerators();
}
on (rollOver, dragOver) {
var THIS = this;
var wait = function () {
THIS.mcToolTip = _root.mcConectado.attachMovie("mcToolTips", "mcToolTip", 100);
THIS.mcToolTip.gotoAndStop(THIS._name.toString());
THIS.onMouseMove = function () {
THIS.mcToolTip._x = _root._xmouse - (THIS.mcToolTip._width / 2);
THIS.mcToolTip._y = _root._ymouse - THIS.mcToolTip._height;
updateAfterEvent();
};
THIS.onMouseMove();
};
clearInterval(this.idWait);
this.idWait = tmo.setTimeout(wait, 800);
}
on (releaseOutside, rollOut, dragOut) {
clearInterval(this.idWait);
delete this.onMouseMove;
this.mcToolTip.removeMovieClip();
}
Instance of Symbol 439 MovieClip [zButton] "btnConsole" in Symbol 1812 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "";
label = "";
selected = false;
skin = "_skinButtonModConsole";
type = "Button";
}
onClipEvent (load) {
this._visible = (_global.rg.type == 0) || (_global.rg.type == 4);
}
on (release) {
_level5.onCheckConsole();
}
on (rollOver, dragOver) {
var THIS = this;
var wait = function () {
THIS.mcToolTip = _root.mcConectado.attachMovie("mcToolTips", "mcToolTip", 100);
THIS.mcToolTip.gotoAndStop(THIS._name.toString());
THIS.onMouseMove = function () {
THIS.mcToolTip._x = _root._xmouse - (THIS.mcToolTip._width / 2);
THIS.mcToolTip._y = _root._ymouse - THIS.mcToolTip._height;
updateAfterEvent();
};
THIS.onMouseMove();
};
clearInterval(this.idWait);
this.idWait = tmo.setTimeout(wait, 800);
}
on (releaseOutside, rollOut, dragOut) {
clearInterval(this.idWait);
delete this.onMouseMove;
this.mcToolTip.removeMovieClip();
}
Instance of Symbol 439 MovieClip [zButton] "chkInvite" in Symbol 1812 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "";
label = "";
selected = true;
skin = "skinCheckInvite";
type = "Check";
}
onClipEvent (load) {
if (_global.gOptions.data.invite != undefined) {
this.selected = _global.gOptions.data.invite;
} else {
this.selected = true;
}
}
onClipEvent (load) {
function __f_change(eventObj) {
_global.gOptions.data.invite = this.selected;
_global.gOptions.flush();
}
this.addEventListener("change", __f_change);
}
on (rollOver, dragOver) {
var THIS = this;
var wait = function () {
THIS.mcToolTip = _root.mcConectado.attachMovie("mcToolTips", "mcToolTip", 100);
THIS.mcToolTip.gotoAndStop(THIS._name.toString());
THIS.onMouseMove = function () {
THIS.mcToolTip._x = _root._xmouse - (THIS.mcToolTip._width / 2);
THIS.mcToolTip._y = _root._ymouse - THIS.mcToolTip._height;
updateAfterEvent();
};
THIS.onMouseMove();
};
tmo.clearInterval(this.idWait);
this.idWait = tmo.setTimeout(wait, 800);
}
on (releaseOutside, rollOut, dragOut) {
tmo.clearInterval(this.idWait);
delete this.onMouseMove;
this.mcToolTip.removeMovieClip();
}
Instance of Symbol 38 MovieClip [zListBox] "lstCargar" in Symbol 1812 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
enabled = true;
hScrollPolicy = "off";
multipleSelection = false;
skin = "_skinListaCargarConexion";
vScrollPolicy = "auto";
}
onClipEvent (load) {
_global.rg.send("fn'onListSaveMatch'");
}
Symbol 1812 MovieClip Frame 2
function wait() {
var _local1 = mcChat.tab.tabs.find("label", "Partida");
if (_local1 > -1) {
var _local2 = mcChat.tab.selected;
var _local3 = mcChat.tab.tabs[_local1 + 1].blink;
mcChat.mcPartida.removeMovieClip();
mcChat.tab.setTab(_local1);
mcChat.tab.delTabSelected();
if (_local2 > _local1) {
_local2--;
}
if (_local2 >= mcChat.tab.tabs.length) {
_local2 = mcChat.tab.tabs.length - 1;
}
mcChat.tab.tabs[_local1].blink = _local3;
mcChat.tab.setTab(_local2);
}
}
function IsMyLoadMatch(cod) {
var _local2 = 0;
while (_local2 < _root.mcConectado.lstCargar.dataProvider.length) {
if (_root.mcConectado.lstCargar.dataProvider[_local2].codpartida == cod) {
return(true);
}
_local2++;
}
return(false);
}
stop();
var id_tabPartida = tmo.setTimeout(wait, 10);
if (rutaListaUsuariosPartida._parent._visible) {
rutaListaUsuariosSala._parent._visible = true;
rutaListaUsuariosPartida._parent._visible = false;
}
var mclAvatar = new MovieClipLoader();
var lstAvatar = new Object();
lstAvatar.onLoadProgress = function (target) {
target._alpha = 0;
};
lstAvatar.onLoadInit = function (target) {
target._x = -70;
target._y = -40;
target.onEnterFrame = function () {
if (this._alpha >= 100) {
this._alpha = 100;
this.cacheAsBitmap = true;
if (mcFichaAnim._currentframe == 1) {
mcFichaAnim.play();
}
delete this.onEnterFrame;
} else {
this._alpha = this._alpha + 5;
}
};
};
mclAvatar.addListener(lstAvatar);
mclAvatar.loadClip((rg.avatar + "?refresh=") + new Date().getTime(), mcAvatar);
mcListaUsuariosSala.lstUsuarios.onRenderRow = function (item, datos) {
item.txtUserName.text = datos.userName;
item.txtUserName.textColor = ((datos.sex == "M") ? 11356122 : 207296);
if ((datos.type == 0) || (datos.type == 4)) {
item.mcStatus.gotoAndStop("fModerator");
} else if (_global.gIgnores.find("", datos.userName) == -1) {
if (datos.idMatch < 0) {
item.mcStatus.gotoAndStop("fVerde");
} else if (datos.lookMatch) {
item.mcStatus.gotoAndStop("fAmarillo");
} else {
item.mcStatus.gotoAndStop("fRojo");
}
} else {
item.mcStatus.gotoAndStop("fIgnore");
}
item.mcRank.gotoAndStop(datos.rank);
};
mcListaUsuariosSala.lstUsuarios.removeAll();
var len = gUsers.length;
var i = 0;
while (i < len) {
if ((gUsers[i].visible || (_global.rg.type == 0)) || (_global.rg.type == 4)) {
mcListaUsuariosSala.lstUsuarios.addItem(gUsers[i].clone());
}
i++;
}
mcListaUsuariosAmigos.lstAmigos.onRenderRow = function (item, datos) {
item.txtUserName.text = datos.userName;
item.txtUserName.textColor = ((datos.sex == "M") ? 16098047 : 4604081);
if (datos.online) {
item.mcStatus.gotoAndStop("fOnline");
} else {
item.mcStatus.gotoAndStop("fOffline");
}
item.mcRank.gotoAndStop(datos.rank);
};
mcListaUsuariosAmigos.lstAmigos.dataProvider = rg.friendList.clone();
_root.mcConectado.mcListaPartidas.lstMatchs.onRenderRow = function (item, datos) {
item.txtMatchName.text = datos.matchName;
item.mcGuests._visible = datos.guests;
item.mcPasswd._visible = datos.mPasswd;
item.mcAudience._visible = datos.audience;
item.mcAudienceTalk._visible = datos.audienceTalk;
item.mcLoaded._visible = datos.codLoadMatch != -1;
item.txtInitBet.text = (isNaN(datos.initBet) ? 0 : (datos.initBet));
if (datos.extra.frame > 6) {
item.mcJugadoresPorPartida.gotoAndStop(datos.extra.frame);
} else {
item.mcJugadoresPorPartida.gotoAndStop(datos.maxUsers);
}
var _local4 = 0;
while (_local4 < datos.maxUsers) {
item.mcJugadoresPorPartida["txtUser" + _local4].text = "";
_local4++;
}
_local4 = 0;
while (_local4 < datos.users.length) {
if (((idx = gUsers.find("idUser", datos.users[_local4]))) > -1) {
item.mcJugadoresPorPartida["txtUser" + _local4].text = gUsers[idx].userName;
item.mcJugadoresPorPartida["txtUser" + _local4].textColor = ((gUsers[idx].sex == "M") ? 11356122 : 207296);
}
_local4++;
}
if (datos.extra.version != _global.gameObj.version) {
if ((_global.rg.type == 0) || (_global.rg.type == 4)) {
item.animBoton._visible = true;
item.animBoton.gotoAndStop("fMirar");
item.animBoton.btnMirar.gotoAndStop(15);
item.mcBgColor.gotoAndStop("fAmarillo");
} else {
item.animBoton._visible = false;
item.mcBgColor.gotoAndStop("fRojo");
}
return(undefined);
}
if (_global.rg.type != 2) {
if (datos.numUsers >= datos.maxUsers) {
if ((datos.audience || (_global.rg.type == 0)) || (_global.rg.type == 4)) {
item.animBoton._visible = true;
item.animBoton.gotoAndStop("fMirar");
item.animBoton.btnMirar.gotoAndStop(15);
item.mcBgColor.gotoAndStop("fAmarillo");
} else {
item.animBoton._visible = false;
item.mcBgColor.gotoAndStop("fRojo");
}
} else if (datos.codLoadMatch == -1) {
if (datos.initBet > rg.credits) {
if ((datos.audience || (_global.rg.type == 0)) || (_global.rg.type == 4)) {
item.animBoton._visible = true;
item.animBoton.gotoAndStop("fMirar");
item.animBoton.btnMirar.gotoAndStop(15);
item.mcBgColor.gotoAndStop("fAmarillo");
} else {
item.animBoton._visible = false;
item.mcBgColor.gotoAndStop("fRojo");
}
} else {
item.animBoton._visible = true;
item.animBoton.gotoAndStop("fJugar");
item.animBoton.btnEntrar.gotoAndStop(15);
item.mcBgColor.gotoAndStop("fVerde");
}
} else if (IsMyLoadMatch(datos.codLoadMatch)) {
item.animBoton._visible = true;
item.animBoton.gotoAndStop("fJugar");
item.animBoton.btnEntrar.gotoAndStop(15);
item.mcBgColor.gotoAndStop("fVerde");
} else if ((datos.audience || (_global.rg.type == 0)) || (_global.rg.type == 4)) {
item.animBoton._visible = true;
item.animBoton.gotoAndStop("fMirar");
item.animBoton.btnMirar.gotoAndStop(15);
item.mcBgColor.gotoAndStop("fAmarillo");
} else {
item.animBoton._visible = false;
item.mcBgColor.gotoAndStop("fRojo");
}
} else if (datos.numUsers >= datos.maxUsers) {
if (datos.audience) {
item.animBoton._visible = true;
item.animBoton.gotoAndStop("fMirar");
item.animBoton.btnMirar.gotoAndStop(15);
item.mcBgColor.gotoAndStop("fAmarillo");
} else {
item.animBoton._visible = false;
item.mcBgColor.gotoAndStop("fRojo");
}
} else if (datos.codLoadMatch == -1) {
if (datos.initBet > 0) {
if (datos.audience) {
item.animBoton._visible = true;
item.animBoton.gotoAndStop("fMirar");
item.animBoton.btnMirar.gotoAndStop(15);
item.mcBgColor.gotoAndStop("fAmarillo");
} else {
item.animBoton._visible = false;
item.mcBgColor.gotoAndStop("fRojo");
}
} else if (datos.guests) {
item.animBoton._visible = true;
item.animBoton.gotoAndStop("fJugar");
item.animBoton.btnEntrar.gotoAndStop(15);
item.mcBgColor.gotoAndStop("fVerde");
} else if (datos.audience) {
item.animBoton._visible = true;
item.animBoton.gotoAndStop("fMirar");
item.animBoton.btnMirar.gotoAndStop(15);
item.mcBgColor.gotoAndStop("fAmarillo");
} else {
item.animBoton._visible = false;
item.mcBgColor.gotoAndStop("fRojo");
}
} else if (datos.audience) {
item.animBoton._visible = true;
item.animBoton.gotoAndStop("fMirar");
item.animBoton.btnMirar.gotoAndStop(15);
item.mcBgColor.gotoAndStop("fAmarillo");
} else {
item.animBoton._visible = false;
item.mcBgColor.gotoAndStop("fRojo");
}
};
_root.mcConectado.mcListaPartidas.lstMatchs.dataProvider = _global.gMatchs.clone();
Symbol 1812 MovieClip Frame 3
stop();
lstCargar._visible = false;
mcRecuerda._visible = _global.rg._lookMatch;
clearInterval(id_tabPartida);
rutaListaUsuariosSala._parent._visible = false;
rutaListaUsuariosPartida._parent._visible = true;
rutaListaUsuariosAmigos._parent._visible = false;
if (mcFichaAnim._currentframe == 1) {
mcFichaAnim.play();
}
mcListaUsuariosPartida.lstUsuarios.onRenderRow = function (item, datos) {
item.txtUserName.text = datos.userName;
item.txtUserName.textColor = ((datos.sex == "M") ? 11356122 : 207296);
if ((datos.type == 0) || (datos.type == 4)) {
item.mcStatus.gotoAndStop("fModerator");
} else if (_global.gIgnores.find("", datos.userName) == -1) {
if (datos.idMatch < 0) {
item.mcStatus.gotoAndStop("fVerde");
} else if (datos.lookMatch) {
item.mcStatus.gotoAndStop("fAmarillo");
} else {
item.mcStatus.gotoAndStop("fRojo");
}
} else {
item.mcStatus.gotoAndStop("fIgnore");
}
item.mcRank.gotoAndStop(datos.rank);
};
var aux = new Array();
var idxMatch = gMatchs.find("idMatch", rg.idMatch);
var j = 0;
while (j < gMatchs[idxMatch].users.length) {
if (((idx = gUsers.find("idUser", gMatchs[idxMatch].users[j]))) > -1) {
aux.push(gUsers[idx]);
}
j++;
}
var j = 0;
while (j < gMatchs[idxMatch].spectators.length) {
if (((idx = gUsers.find("idUser", gMatchs[idxMatch].spectators[j]))) > -1) {
if ((gUsers[idx].type != 1) && (gUsers[idx].type != 4)) {
aux.push(gUsers[idx]);
}
}
j++;
}
mcListaUsuariosPartida.lstUsuarios.dataProvider = aux.clone();
mcListaUsuariosSala.lstUsuarios.onRenderRow = function (item, datos) {
item.txtUserName.text = datos.userName;
item.txtUserName.textColor = ((datos.sex == "M") ? 11356122 : 207296);
if ((datos.type == 0) || (datos.type == 4)) {
item.mcStatus.gotoAndStop("fModerator");
} else if (_global.gIgnores.find("", datos.userName) == -1) {
if (datos.idMatch < 0) {
item.mcStatus.gotoAndStop("fVerde");
} else if (datos.lookMatch) {
item.mcStatus.gotoAndStop("fAmarillo");
} else {
item.mcStatus.gotoAndStop("fRojo");
}
} else {
item.mcStatus.gotoAndStop("fIgnore");
}
item.mcRank.gotoAndStop(datos.rank);
};
mcListaUsuariosSala.lstUsuarios.removeAll();
var len = gUsers.length;
var i = 0;
while (i < len) {
if ((gUsers[i].visible || (_global.rg.type == 0)) || (_global.rg.type == 4)) {
mcListaUsuariosSala.lstUsuarios.addItem(gUsers[i].clone());
}
i++;
}
mcListaUsuariosAmigos.lstAmigos.onRenderRow = function (item, datos) {
item.txtUserName.text = datos.userName;
item.txtUserName.textColor = ((datos.sex == "M") ? 16098047 : 4604081);
if (datos.online) {
item.mcStatus.gotoAndStop("fOnline");
} else {
item.mcStatus.gotoAndStop("fOffline");
}
item.mcRank.gotoAndStop(datos.rank);
};
mcListaUsuariosAmigos.lstAmigos.dataProvider = rg.friendList.clone();
if ((((idx = mcChat.tab.tabs.find("label", "Partida"))) < 0) && (_global.gChatTabs == undefined)) {
var nue = mcChat.attachMovie("mcChatSala", "mcPartida", mcChat.getNextHighestDepth());
nue._x = mcChat.mcSala._x;
nue._y = mcChat.mcSala._y;
mcChat.cmbSmileys.swapDepths(mcChat.getNextHighestDepth());
mcChat.newTab = true;
mcChat.tab.addTab("Partida", true);
Selection.setFocus(mcChat.txtIn);
}
Instance of Symbol 439 MovieClip [zButton] "chkInvite" in Symbol 1812 MovieClip Frame 3
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "";
label = "";
selected = true;
skin = "skinCheckInvite";
type = "Check";
}
onClipEvent (load) {
if (_global.gOptions.data.invite != undefined) {
this.selected = _global.gOptions.data.invite;
} else {
this.selected = true;
}
}
onClipEvent (load) {
function __f_change(eventObj) {
_global.gOptions.data.invite = this.selected;
_global.gOptions.flush();
}
this.addEventListener("change", __f_change);
}
on (rollOver, dragOver) {
var THIS = this;
var wait = function () {
THIS.mcToolTip = _root.mcConectado.attachMovie("mcToolTips", "mcToolTip", 100);
THIS.mcToolTip.gotoAndStop(THIS._name.toString());
THIS.onMouseMove = function () {
THIS.mcToolTip._x = _root._xmouse - (THIS.mcToolTip._width / 2);
THIS.mcToolTip._y = _root._ymouse - THIS.mcToolTip._height;
updateAfterEvent();
};
THIS.onMouseMove();
};
tmo.clearInterval(this.idWait);
this.idWait = tmo.setTimeout(wait, 800);
}
on (releaseOutside, rollOut, dragOut) {
tmo.clearInterval(this.idWait);
delete this.onMouseMove;
this.mcToolTip.removeMovieClip();
}
Instance of Symbol 1841 MovieClip in Symbol 1855 MovieClip Frame 1
onClipEvent (enterFrame) {
_x = (_x - 0.4);
if (_x < -100) {
_x = 120;
}
}
Instance of Symbol 1841 MovieClip in Symbol 1855 MovieClip Frame 1
onClipEvent (enterFrame) {
_x = (_x - 0.3);
if (_x < -100) {
_x = 240;
}
}
Instance of Symbol 1841 MovieClip in Symbol 1855 MovieClip Frame 1
onClipEvent (enterFrame) {
_x = (_x - 0.2);
if (_x < -100) {
_x = 120;
}
}
Instance of Symbol 1854 MovieClip in Symbol 1855 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_x < -40) {
_x = 153;
} else {
_x = (_x - 0.3);
}
}
Instance of Symbol 1854 MovieClip in Symbol 1855 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_x < -40) {
_x = 150;
} else {
_x = (_x - 0.3);
}
}
onClipEvent (load) {
gotoAndPlay (15);
}
Instance of Symbol 1854 MovieClip in Symbol 1855 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_x < -40) {
_x = 145;
} else {
_x = (_x - 0.3);
}
}
onClipEvent (load) {
gotoAndPlay (25);
}
Symbol 1873 MovieClip Frame 1
function enableSquares() {
if (_global.game.isMyTurn()) {
var _local3 = 0;
while (_local3 < 3) {
this["f" + _local3].enabled = this["f" + _local3]._currentframe == 3;
_local3++;
}
}
}
function disableSquares() {
var _local2 = 0;
while (_local2 < 3) {
this["f" + _local2].enabled = false;
_local2++;
}
}
Symbol 1878 MovieClip Frame 1
function enableSquares() {
if (_global.game.isMyTurn()) {
var _local3 = 0;
while (_local3 < 3) {
this["f" + _local3].enabled = this["f" + _local3]._currentframe == 5;
_local3++;
}
}
}
function disableSquares() {
var _local2 = 0;
while (_local2 < 3) {
this["f" + _local2].enabled = false;
_local2++;
}
}
Symbol 1881 MovieClip Frame 120
gotoAndStop (1);
Symbol 1882 MovieClip Frame 1
stop();
Symbol 1883 MovieClip Frame 1
stop();
Symbol 1884 MovieClip Frame 1
stop();
_global.intervalMngr.clearAllInterval();
_global.intervalMngr = new cIntervalManager();
_global.intervalMngr.addInterval("timeCountDown", 1);
_global.intervalMngr.addInterval("moveCounter", 1);
_global.parentScene = _parent;
_global.scene = this;
var match = _global.gMatchs[_global.gMatchs.find("idMatch", _global.rg.idMatch)].clone();
var turnList = new Array();
var i = 0;
while (i < match.maxUsers) {
turnList.push(i);
i++;
}
_global.game = new cGame({numTeams:match.extra.numTeams, turnList:turnList, changePos:true});
_global.rg.onMove = function (obj) {
_global.game.playMoveCounter(obj);
};
game.onInitNewMatch = function () {
_global.game.extra.numSquares = 9;
var _local2 = 0;
while (_local2 < _global.game.extra.numSquares) {
_global.scene.mcTablero["h" + _local2].enabled = false;
_global.scene.mcTablero["h" + _local2].onPress = _global.game.onBoardPress;
_global.scene.mcTablero["h" + _local2].onRelease = _global.game.onBoardRelease;
_global.scene.mcTablero["h" + _local2].onReleaseOutside = _global.game.onBoardReleaseOutside;
_global.scene.mcTablero["h" + _local2].onRollOver = _global.game.onBoardRollOver;
_local2++;
}
_local2 = 0;
while (_local2 < 3) {
_global.scene.mcInterface0.mcFichas["f" + _local2].enabled = false;
_global.scene.mcInterface0.mcFichas["f" + _local2].onPress = _global.game.onBoardPress;
_global.scene.mcInterface0.mcFichas["f" + _local2].onRelease = _global.game.onBoardRelease;
_global.scene.mcInterface0.mcFichas["f" + _local2].onReleaseOutside = _global.game.onBoardReleaseOutside;
_global.scene.mcInterface0.mcFichas["f" + _local2].onRollOver = _global.game.onBoardRollOver;
_global.scene.mcInterface0.mcFichas["f" + _local2].enabled = false;
_global.scene.mcInterface1.mcFichas["f" + _local2].onPress = _global.game.onBoardPress;
_global.scene.mcInterface1.mcFichas["f" + _local2].onRelease = _global.game.onBoardRelease;
_global.scene.mcInterface1.mcFichas["f" + _local2].onReleaseOutside = _global.game.onBoardReleaseOutside;
_global.scene.mcInterface1.mcFichas["f" + _local2].onRollOver = _global.game.onBoardRollOver;
_local2++;
}
};
game.onReadyNewMatch = function () {
_global.scene.mcTablero.mcFicha.removeMovieClip();
_global.game.extra.turnTime = _global.game.options.turnTime;
_global.game.extra.time = _global.game.extra.turnTime;
var _local3 = new TextFormat();
if (_global.game.extra.turnTime > 10) {
_local3.color = 16777215 /* 0xFFFFFF */;
} else {
_local3.color = 16711680 /* 0xFF0000 */;
}
_global.scene.mcInterface0.txtTime.setNewTextFormat(_local3);
_global.scene.mcInterface1.txtTime.setNewTextFormat(_local3);
_global.scene.mcInterface0.txtTime.text = _global.game.extra.time;
_global.scene.mcInterface1.txtTime.text = _global.game.extra.time;
_global.game.extra.bTimeOut = false;
_global.game.extra.numMovs = 0;
_global.game.extra.nAntPos = -1;
_global.game.extra.board = new Array(-1, -1, -1, -1, -1, -1, -1, -1, -1);
_global.game.extra.initBoard = new Array(true, true, true, true, true, true);
var _local2 = 0;
while (_local2 < _global.game.extra.numSquares) {
_global.scene.mcTablero["h" + _local2].enabled = false;
_global.scene.mcTablero["h" + _local2].gotoAndStop("vacio");
_local2++;
}
_local2 = 0;
while (_local2 < 3) {
_global.scene.mcInterface0.mcFichas["f" + _local2].enabled = false;
_global.scene.mcInterface0.mcFichas["f" + _local2].gotoAndStop("ficha0");
_global.scene.mcInterface0.mcFichas["f" + _local2]._visible = true;
_global.scene.mcInterface1.mcFichas["f" + _local2].enabled = false;
_global.scene.mcInterface1.mcFichas["f" + _local2].gotoAndStop("ficha1");
_global.scene.mcInterface1.mcFichas["f" + _local2]._visible = true;
_local2++;
}
_local2 = 0;
while (_local2 < _global.game.numPlayers) {
_global.scene["mcInterface" + _local2].txtPoints.text = _global.game.player[_local2].statistics.win;
_local2++;
}
var _local4 = new Date();
var _local5 = new Array("Enero", "Febrero", "Marzo", "Abril", "Mayo", "Junio", "Julio", "Agosto", "Septiembre", "Octubre", "Noviembre", "Diciembre");
_global.scene.mcCalendario.txtMes.text = _local5[_local4.getMonth()];
_global.scene.mcCalendario.txtDia.text = _local4.getDate();
};
game.onBeginNewMatch = function (obj) {
_global.scene["mcInterface" + _global.game.myTurn].mcFichas.enableSquares();
_global.game.timeCountDownOn();
};
game.onInitPlayerLoadMatch = function () {
};
game.onReadyPlayerLoadMatch = function () {
_global.game.extra.numSquares = 9;
_global.game.extra.bTimeOut = false;
_global.game.extra.nAntPos = -1;
var _local2 = 0;
while (_local2 < _global.game.extra.numSquares) {
_global.scene.mcTablero["h" + _local2].enabled = false;
_global.scene.mcTablero["h" + _local2].gotoAndStop("vacio");
_global.scene.mcTablero["h" + _local2].gotoAndStop("ficha" + _global.game.extra.board[_local2]);
_global.scene.mcTablero["h" + _local2].onPress = _global.game.onBoardPress;
_global.scene.mcTablero["h" + _local2].onRelease = _global.game.onBoardRelease;
_global.scene.mcTablero["h" + _local2].onReleaseOutside = _global.game.onBoardReleaseOutside;
_global.scene.mcTablero["h" + _local2].onRollOver = _global.game.onBoardRollOver;
_local2++;
}
_local2 = 0;
while (_local2 < 3) {
_global.scene.mcInterface0.mcFichas["f" + _local2].enabled = false;
_global.scene.mcInterface0.mcFichas["f" + _local2].onPress = _global.game.onBoardPress;
_global.scene.mcInterface0.mcFichas["f" + _local2].onRelease = _global.game.onBoardRelease;
_global.scene.mcInterface0.mcFichas["f" + _local2].onReleaseOutside = _global.game.onBoardReleaseOutside;
_global.scene.mcInterface0.mcFichas["f" + _local2].onRollOver = _global.game.onBoardRollOver;
_global.scene.mcInterface0.mcFichas["f" + _local2].enabled = false;
if (_global.game.extra.initBoard[_local2]) {
_global.scene.mcInterface0.mcFichas["f" + _local2].gotoAndStop("ficha0");
} else {
_global.scene.mcInterface0.mcFichas["f" + _local2].gotoAndStop("vacio");
}
_global.scene.mcInterface0.mcFichas["f" + _local2]._visible = true;
_global.scene.mcInterface1.mcFichas["f" + _local2].onPress = _global.game.onBoardPress;
_global.scene.mcInterface1.mcFichas["f" + _local2].onRelease = _global.game.onBoardRelease;
_global.scene.mcInterface1.mcFichas["f" + _local2].onReleaseOutside = _global.game.onBoardReleaseOutside;
_global.scene.mcInterface1.mcFichas["f" + _local2].onRollOver = _global.game.onBoardRollOver;
_global.scene.mcInterface1.mcFichas["f" + _local2].enabled = false;
if (_global.game.extra.initBoard[_local2 + 3]) {
_global.scene.mcInterface1.mcFichas["f" + _local2].gotoAndStop("ficha1");
} else {
_global.scene.mcInterface1.mcFichas["f" + _local2].gotoAndStop("vacio");
}
_global.scene.mcInterface1.mcFichas["f" + _local2]._visible = true;
_local2++;
}
_local2 = 0;
while (_local2 < _global.game.numPlayers) {
_global.scene["mcInterface" + _local2].txtPoints.text = _global.game.player[_local2].statistics.win;
_local2++;
}
var _local3 = new TextFormat();
if (_global.game.extra.turnTime > 10) {
_local3.color = 268435455 /* 0xFFFFFFF */;
} else {
_local3.color = 16711680 /* 0xFF0000 */;
}
_global.scene.mcInterface0.txtTime.setNewTextFormat(_local3);
_global.scene.mcInterface1.txtTime.setNewTextFormat(_local3);
_global.game.extra.time = _global.game.extra.turnTime;
_global.scene.mcInterface0.txtTime.text = _global.game.extra.time;
_global.scene.mcInterface1.txtTime.text = _global.game.extra.time;
var _local4 = new Date();
var _local5 = new Array("Enero", "Febrero", "Marzo", "Abril", "Mayo", "Junio", "Julio", "Agosto", "Septiembre", "Octubre", "Noviembre", "Diciembre");
_global.scene.mcCalendario.txtMes.text = _local5[_local4.getMonth()];
_global.scene.mcCalendario.txtDia.text = _local4.getDate();
};
game.onBeginPlayerLoadMatch = function () {
var _local2 = 0;
while (_local2 < 3) {
if (!_global.game.extra.initBoard[_local2]) {
_global.scene.mcInterface0.mcFichas["f" + _local2].gotoAndStop("vacio");
}
if (!_global.game.extra.initBoard[_local2 + 3]) {
_global.scene.mcInterface1.mcFichas["f" + _local2].gotoAndStop("vacio");
}
_local2++;
}
_global.game.enableSquares();
_global.game.timeCountDownOn();
};
game.onSpectatorLoadMatch = function () {
_global.game.extra.numSquares = 9;
_global.game.extra.bTimeOut = false;
_global.game.extra.nAntPos = -1;
var _local2 = 0;
while (_local2 < 3) {
if (!_global.game.extra.initBoard[_local2]) {
_global.scene.mcInterface0.mcFichas["f" + _local2].gotoAndStop("vacio");
}
if (!_global.game.extra.initBoard[_local2 + 3]) {
_global.scene.mcInterface1.mcFichas["f" + _local2].gotoAndStop("vacio");
}
_local2++;
}
_local2 = 0;
while (_local2 < _global.game.extra.numSquares) {
_global.scene.mcTablero["h" + _local2].enabled = false;
_global.scene.mcTablero["h" + _local2].gotoAndStop("ficha" + _global.game.extra.board[_local2]);
_local2++;
}
_local2 = 0;
while (_local2 < 3) {
_global.scene.mcInterface0.mcFichas["f" + _local2].enabled = false;
if (_global.game.extra.initBoard[_local2]) {
_global.scene.mcInterface0.mcFichas["f" + _local2].gotoAndStop("ficha0");
} else {
_global.scene.mcInterface0.mcFichas["f" + _local2].gotoAndStop("vacio");
}
_global.scene.mcInterface0.mcFichas["f" + _local2]._visible = true;
_global.scene.mcInterface0.mcFichas["f" + _local2].enabled = false;
if (_global.game.extra.initBoard[_local2 + 3]) {
_global.scene.mcInterface1.mcFichas["f" + _local2].gotoAndStop("ficha1");
} else {
_global.scene.mcInterface1.mcFichas["f" + _local2].gotoAndStop("vacio");
}
_global.scene.mcInterface1.mcFichas["f" + _local2]._visible = true;
_global.scene.mcInterface1.mcFichas["f" + _local2].enabled = false;
_local2++;
}
_local2 = 0;
while (_local2 < _global.game.numPlayers) {
_global.scene["mcInterface" + _local2].txtPoints.text = _global.game.player[_local2].statistics.win;
_local2++;
}
var _local4 = new Date();
var _local5 = new Array("Enero", "Febrero", "Marzo", "Abril", "Mayo", "Junio", "Julio", "Agosto", "Septiembre", "Octubre", "Noviembre", "Diciembre");
_global.scene.mcCalendario.txtMes.text = _local5[_local4.getMonth()];
_global.scene.mcCalendario.txtDia.text = _local4.getDate();
var _local3 = new TextFormat();
if (_global.game.extra.turnTime > 10) {
_local3.color = 268435455 /* 0xFFFFFFF */;
} else {
_local3.color = 16711680 /* 0xFF0000 */;
}
_global.scene.mcInterface0.txtTime.setNewTextFormat(_local3);
_global.scene.mcInterface1.txtTime.setNewTextFormat(_local3);
_global.game.extra.time = _global.game.extra.turnTime;
_global.scene.mcInterface0.txtTime.text = _global.game.extra.time;
_global.scene.mcInterface1.txtTime.text = _global.game.extra.time;
};
game.onBeforeChgTurn = function () {
game.timeCountDownOff();
};
game.onAfterChgTurn = function () {
var _local2 = new TextFormat();
if (_global.game.extra.turnTime > 10) {
_local2.color = 268435455 /* 0xFFFFFFF */;
} else {
_local2.color = 16711680 /* 0xFF0000 */;
}
_global.scene["mcInterface" + _global.game.turn].txtTime.setNewTextFormat(_local2);
_global.game.extra.time = _global.game.extra.turnTime;
_global.scene["mcInterface" + _global.game.turn].txtTime.text = _global.game.extra.time;
if (_global.game.isMyTurn()) {
game.enableSquares();
game.timeCountDownOn();
_global.rg.sendObjMatch({fn:"onGameEvent", event:"onMove", withOutMe:true, turn:_global.game.turn, startMove:true});
}
};
game.onEndMatch = function () {
game.disableSquares();
game.timeCountDownOff();
};
game.onCalcResults = function () {
var _local2 = 0;
while (_local2 < _global.game.numPlayers) {
switch (_global.game.player[_local2].result) {
case 1 :
_global.game.player[_local2].points = 15;
break;
case 0 :
_global.game.player[_local2].points = 0;
break;
case -1 :
_global.game.player[_local2].points = 0;
}
_local2++;
}
};
game.onCalcStatistics = function () {
};
game.onShowResults = function (pTurn) {
var _local2 = _level.mcMessagesStatistics.mcWindow;
switch (_global.game.getPlayerByTurn(pTurn).result) {
case 1 :
_local2.mcResult.gotoAndStop("fVictoria");
break;
case 0 :
_local2.mcResult.gotoAndStop("fEmpate");
break;
case -1 :
_local2.mcResult.gotoAndStop("fDerrota");
}
var _local4 = new TextFormat();
_local4.font = "Courier New";
_local2.txtPoints.text = _global.game.getPlayerByTurn(pTurn).points + " puntos";
if (_global.game.getPlayerByTurn(pTurn).result == 1) {
_local2.txtCreditsTitle.text = "GANANCIAS";
_local2.txtCredits.text = int((_global.game.myBet * (_global.game.numPlayers - 1)) / _global.game.getNumWinners()) + " \u00A2";
} else if (_global.game.getPlayerByTurn(pTurn).result == 0) {
_local2.txtCreditsTitle.text = "GANANCIAS";
_local2.txtCredits.text = "0 \u00A2";
} else {
_local2.txtCreditsTitle.text = "P\u00C9RDIDAS";
_local2.txtCredits.text = _global.game.myBet + " \u00A2";
}
_local2.txtCredits.setTextFormat(_local2.txtCredits.length - 1, _local4);
if ((_global.game.matchDuration.hrs == 0) && (_global.game.matchDuration.mins == 0)) {
_local2.txtDuration.text = _global.game.matchDuration.sgs + " sg";
} else if (_global.game.matchDuration.hrs == 0) {
_local2.txtDuration.text = ((_global.game.matchDuration.mins + " min ") + _global.game.matchDuration.sgs) + " sg";
} else {
_local2.txtDuration.text = ((((_global.game.matchDuration.hrs + " hr ") + _global.game.matchDuration.mins) + " min ") + _global.game.matchDuration.sgs) + " sg";
}
var _local6 = int(_global.game.extra.numMovs / 2);
var _local7 = _global.game.extra.numMovs % 2;
if ((_global.game.turn == pTurn) && (_local7 == 1)) {
_local6++;
}
_local2.txtMovs.text = _local6;
_local2.txtWin.text = (("Victorias : " + _global.game.getPlayerByTurn(pTurn).statistics.win) + "/") + _global.game.numMatchs;
_local2.txtLose.text = (("Derrotas : " + _global.game.getPlayerByTurn(pTurn).statistics.lose) + "/") + _global.game.numMatchs;
_local2.txtGeneralPoints.text = "Puntuaci\u00F3n total : " + _global.game.getPlayerByTurn(pTurn).statistics.totalPoints;
var _local5 = _global.game.getPlayerByTurn(pTurn).statistics.credits;
if (_local5 >= 0) {
_local2.txtGeneralCredits.text = ("Ganancias: " + _local5) + " \u00A2";
} else {
_local2.txtGeneralCredits.text = ("P\u00E9rdidas" + Math.abs(_local5)) + " \u00A2";
}
_local2.txtGeneralCredits.setTextFormat(_local2.txtGeneralCredits.length - 1, _local4);
_local2.txtMaxPoints.text = "M\u00E1xima puntuaci\u00F3n : " + _global.game.getPlayerByTurn(pTurn).statistics.maxPoints;
_local2.txtMaxCredits.text = ("M\u00E1xima ganancia : " + _global.game.getPlayerByTurn(pTurn).statistics.maxCredits) + " \u00A2";
_local2.txtMaxCredits.setTextFormat(_local2.txtMaxCredits.length - 1, _local4);
_local2.txtMaxResult.text = "Victorias consecutivas : " + _global.game.getPlayerByTurn(pTurn).statistics.maxFollowedWin;
_local2.txtMinPoints.text = "M\u00EDnima puntuaci\u00F3n : " + _global.game.getPlayerByTurn(pTurn).statistics.minPoints;
_local2.txtMinCredits.text = ("M\u00E1xima p\u00E9rdida : " + Math.abs(_global.game.getPlayerByTurn(pTurn).statistics.minCredits)) + " \u00A2";
_local2.txtMinCredits.setTextFormat(_local2.txtMinCredits.length - 1, _local4);
_local2.txtMinResult.text = "Derrotas consecutivas : " + _global.game.getPlayerByTurn(pTurn).statistics.maxFollowedLose;
};
game.onWinMatch = function () {
};
game.onDrawMatch = function () {
};
game.onLoseMatch = function () {
};
game.onPauseOn = function () {
_global.game.timeCountDownOff();
};
game.onPauseOff = function () {
_global.game.timeCountDownOn();
};
game.onBoardRollOver = function () {
if ((!_global.game.isMyTurn()) || (!_global.scene.mcFicha)) {
return(undefined);
}
if (_global.game.extra.numMovs >= 6) {
delete _global.scene.mcTablero["h" + _global.game.extra.nAntPos].onMouseMove;
} else {
var _local4 = _global.scene["mcInterface" + _global.game.turn].mcFichas;
delete _local4["f" + (_global.game.extra.nAntPos - 10)].onMouseMove;
}
_global.scene.mcFicha.removeMovieClip();
if (((this._currentframe == 1) && (this._name.charAt(0) == "h")) && (!_global.game.extra.bTimeOut)) {
_global.game.disableSquares();
if (_global.game.extra.numMovs >= 6) {
_global.scene.mcTablero["h" + _global.game.extra.nAntPos].gotoAndStop("vacio");
_global.game.extra.board[_global.game.extra.nAntPos] = -1;
} else {
var _local4 = _global.scene["mcInterface" + _global.game.turn].mcFichas;
_local4["f" + (_global.game.extra.nAntPos - 10)]._visible = false;
_global.game.extra.initBoard[((_global.game.turn * 3) + _global.game.extra.nAntPos) - 10] = false;
}
this.gotoAndStop("ficha" + _global.game.turn);
var _local3 = this._name.charAt(1);
_global.game.extra.board[_local3] = _global.game.turn;
_global.game.extra.numMovs++;
var _local12 = _global.game.getCurrentPlayer().points;
_global.rg.sendObjMatch({fn:"onGameEvent", event:"onMove", withOutMe:true, turn:_global.game.turn, antPos:_global.game.extra.nAntPos, p:_local3, time:_global.scene["mcInterface" + _global.game.turn].txtTime.text});
_global.game.extra.nAntPos = -1;
if (!_global.game.checkTablero(_local3)) {
_global.game.nextTurn();
} else {
_global.game.endMatch();
}
} else {
_global.game.disableSquares();
if (_global.game.extra.numMovs >= 6) {
_global.game.extra.board[_global.game.extra.nAntPos] = _global.game.turn;
_global.scene.mcTablero["h" + _global.game.extra.nAntPos].gotoAndStop("ficha" + _global.game.turn);
} else {
var _local4 = _global.scene["mcInterface" + _global.game.turn].mcFichas;
_local4["f" + (_global.game.extra.nAntPos - 10)].gotoAndStop("ficha" + _global.game.turn);
}
_global.game.enableSquares();
}
};
game.onBoardPress = function () {
if (!_global.game.isMyTurn()) {
return(undefined);
}
_global.game.extra.nAntPos = this._name.charAt(1);
if (this._name.charAt(0) == "f") {
_global.game.extra.nAntPos = Number(_global.game.extra.nAntPos) + 10;
}
this.gotoAndStop("vacio");
var _local4 = 0;
while (_local4 < game.extra.numSquares) {
_global.scene.mcTablero["h" + _local4].enabled = true;
_local4++;
}
var mcFicha = _global.scene.attachMovie("mcFicha" + _global.game.myTurn, "mcFicha", 10);
mcFicha._width = 37.5;
mcFicha._height = 45;
mcFicha._alpha = 25;
this.onMouseMove = function () {
mcFicha._x = _root._xmouse - 18.75;
mcFicha._y = _root._ymouse - 22.5;
updateAfterEvent();
};
this.onMouseMove();
};
game.onBoardReleaseOutside = function () {
if ((!_global.game.isMyTurn()) || (!_global.scene.mcFicha)) {
return(undefined);
}
if (!_global.scene.mcPizarra.hitTest(_root._xmouse, _root._ymouse, true)) {
delete this.onMouseMove;
_global.scene.mcFicha.removeMovieClip();
_global.game.disableSquares();
if (_global.game.extra.numMovs >= 6) {
_global.scene.mcTablero["h" + _global.game.extra.nAntPos].gotoAndStop("ficha" + _global.game.turn);
_global.game.extra.board[_global.game.extra.nAntPos] = _global.game.turn;
} else {
var _local4 = _global.scene["mcInterface" + _global.game.turn].mcFichas;
_local4["f" + (_global.game.extra.nAntPos - 10)].gotoAndStop("ficha" + _global.game.turn);
}
_global.game.enableSquares();
}
};
game.onBoardRelease = function () {
if (!_global.game.isMyTurn()) {
return(undefined);
}
delete this.onMouseMove;
mcFicha.removeMovieClip();
_global.game.disableSquares();
if (_global.game.extra.numMovs >= 6) {
this.gotoAndStop("ficha" + _global.game.turn);
var _local4 = this._name.charAt(1);
_global.game.extra.board[_local4] = _global.game.turn;
} else {
var _local3 = _global.scene["mcInterface" + _global.game.turn].mcFichas;
_local3["f" + (_global.game.extra.nAntPos - 10)].gotoAndStop("ficha" + _global.game.turn);
}
_global.game.enableSquares();
};
game.enableSquares = function () {
if (_global.game.isMyTurn()) {
if (game.extra.numMovs < 6) {
_global.scene["mcInterface" + _global.game.myTurn].mcFichas.enableSquares();
} else {
var _local2 = 0;
while (_local2 < game.extra.numSquares) {
_global.scene.mcTablero["h" + _local2].enabled = game.extra.board[_local2] == game.myTurn;
_local2++;
}
}
}
};
game.disableSquares = function () {
var _local2 = 0;
while (_local2 < game.extra.numSquares) {
_global.scene.mcTablero["h" + _local2].enabled = false;
_local2++;
}
_local2 = 0;
while (_local2 < game.numPlayers) {
_global.scene["mcInterface" + _local2].mcFichas.disableSquares();
_local2++;
}
};
game.checkTablero = function (pos) {
var _local2 = -1;
switch (pos) {
case "0" :
if ((game.extra.board[0] == game.extra.board[1]) && (game.extra.board[0] == game.extra.board[2])) {
_local2 = 0;
} else if ((game.extra.board[0] == game.extra.board[3]) && (game.extra.board[0] == game.extra.board[6])) {
_local2 = 3;
} else if ((game.extra.board[0] == game.extra.board[4]) && (game.extra.board[0] == game.extra.board[8])) {
_local2 = 6;
}
break;
case "1" :
if ((game.extra.board[1] == game.extra.board[0]) && (game.extra.board[1] == game.extra.board[2])) {
_local2 = 0;
} else if ((game.extra.board[1] == game.extra.board[4]) && (game.extra.board[1] == game.extra.board[7])) {
_local2 = 4;
}
break;
case "2" :
if ((game.extra.board[2] == game.extra.board[0]) && (game.extra.board[2] == game.extra.board[1])) {
_local2 = 0;
} else if ((game.extra.board[2] == game.extra.board[5]) && (game.extra.board[2] == game.extra.board[8])) {
_local2 = 5;
} else if ((game.extra.board[2] == game.extra.board[4]) && (game.extra.board[2] == game.extra.board[6])) {
_local2 = 7;
}
break;
case "3" :
if ((game.extra.board[3] == game.extra.board[4]) && (game.extra.board[3] == game.extra.board[5])) {
_local2 = 1;
} else if ((game.extra.board[3] == game.extra.board[0]) && (game.extra.board[3] == game.extra.board[6])) {
_local2 = 3;
}
break;
case "4" :
if ((game.extra.board[4] == game.extra.board[3]) && (game.extra.board[4] == game.extra.board[5])) {
_local2 = 1;
} else if ((game.extra.board[4] == game.extra.board[1]) && (game.extra.board[4] == game.extra.board[7])) {
_local2 = 4;
} else if ((game.extra.board[4] == game.extra.board[0]) && (game.extra.board[4] == game.extra.board[8])) {
_local2 = 6;
} else if ((game.extra.board[4] == game.extra.board[6]) && (game.extra.board[4] == game.extra.board[2])) {
_local2 = 7;
}
break;
case "5" :
if ((game.extra.board[5] == game.extra.board[3]) && (game.extra.board[5] == game.extra.board[4])) {
_local2 = 1;
} else if ((game.extra.board[5] == game.extra.board[2]) && (game.extra.board[5] == game.extra.board[8])) {
_local2 = 5;
}
break;
case "6" :
if ((game.extra.board[6] == game.extra.board[7]) && (game.extra.board[6] == game.extra.board[8])) {
_local2 = 2;
} else if ((game.extra.board[6] == game.extra.board[0]) && (game.extra.board[6] == game.extra.board[3])) {
_local2 = 3;
} else if ((game.extra.board[6] == game.extra.board[4]) && (game.extra.board[6] == game.extra.board[2])) {
_local2 = 7;
}
break;
case "7" :
if ((game.extra.board[7] == game.extra.board[6]) && (game.extra.board[7] == game.extra.board[8])) {
_local2 = 2;
} else if ((game.extra.board[7] == game.extra.board[1]) && (game.extra.board[7] == game.extra.board[4])) {
_local2 = 4;
}
break;
case "8" :
if ((game.extra.board[8] == game.extra.board[6]) && (game.extra.board[8] == game.extra.board[7])) {
_local2 = 2;
} else if ((game.extra.board[8] == game.extra.board[2]) && (game.extra.board[8] == game.extra.board[5])) {
_local2 = 5;
} else {
if (!((game.extra.board[8] == game.extra.board[4]) && (game.extra.board[8] == game.extra.board[0]))) {
break;
}
_local2 = 6;
}
}
if (_local2 != -1) {
_global.game.getCurrentPlayer().result = 1;
_global.game.showWinnerPieces(_local2);
return(true);
}
return(false);
};
game.showWinnerPieces = function (line) {
switch (line) {
case 0 :
scene.mcTablero.h0.ficha.gotoAndStop("roja");
scene.mcTablero.h1.ficha.gotoAndStop("roja");
scene.mcTablero.h2.ficha.gotoAndStop("roja");
break;
case 1 :
scene.mcTablero.h3.ficha.gotoAndStop("roja");
scene.mcTablero.h4.ficha.gotoAndStop("roja");
scene.mcTablero.h5.ficha.gotoAndStop("roja");
break;
case 2 :
scene.mcTablero.h6.ficha.gotoAndStop("roja");
scene.mcTablero.h7.ficha.gotoAndStop("roja");
scene.mcTablero.h8.ficha.gotoAndStop("roja");
break;
case 3 :
scene.mcTablero.h0.ficha.gotoAndStop("roja");
scene.mcTablero.h3.ficha.gotoAndStop("roja");
scene.mcTablero.h6.ficha.gotoAndStop("roja");
break;
case 4 :
scene.mcTablero.h1.ficha.gotoAndStop("roja");
scene.mcTablero.h4.ficha.gotoAndStop("roja");
scene.mcTablero.h7.ficha.gotoAndStop("roja");
break;
case 5 :
scene.mcTablero.h2.ficha.gotoAndStop("roja");
scene.mcTablero.h5.ficha.gotoAndStop("roja");
scene.mcTablero.h8.ficha.gotoAndStop("roja");
break;
case 6 :
scene.mcTablero.h0.ficha.gotoAndStop("roja");
scene.mcTablero.h4.ficha.gotoAndStop("roja");
scene.mcTablero.h8.ficha.gotoAndStop("roja");
break;
case 7 :
scene.mcTablero.h2.ficha.gotoAndStop("roja");
scene.mcTablero.h4.ficha.gotoAndStop("roja");
scene.mcTablero.h6.ficha.gotoAndStop("roja");
}
};
game.timeCountDown = function () {
_global.game.extra.time = _global.game.extra.auxTurnTime - Math.floor((new Date().getTime() - _global.game.extra.startTimeOut) / 1000);
if (_global.game.extra.time <= 10) {
var _local2 = new TextFormat();
_local2.color = 16711680 /* 0xFF0000 */;
_global.scene["mcInterface" + _global.game.turn].txtTime.setNewTextFormat(_local2);
}
_global.scene["mcInterface" + _global.game.turn].txtTime.text = ((_global.game.extra.time >= 0) ? (_global.game.extra.time) : 0);
if (_global.game.extra.time <= 10) {
_global.sounds.playSound("beep");
}
if ((_global.game.extra.time <= 0) && (_global.game.isMyTurn())) {
_global.game.extra.bTimeOut = true;
_global.game.disableSquares();
_global.rg.sendObjMatch({fn:"onGameEvent", event:"onMove", withOutMe:true, turn:_global.game.turn, p:-1, timeOut:true});
_global.game.getCurrentPlayer().result = -1;
_global.game.endMatch();
}
};
game.timeCountDownOn = function () {
_global.game.timeCountDownOff();
if (_global.game.extra.turnTime == undefined) {
return(undefined);
}
_global.game.extra.startTimeOut = new Date().getTime();
_global.game.extra.auxTurnTime = _global.game.extra.time;
_global.game.timeCountDown();
_global.intervalMngr.setInterval("timeCountDown", setInterval(_global.game.timeCountDown, 1000));
};
game.timeCountDownOff = function () {
_global.intervalMngr.clearOneInterval("timeCountDown");
};
_global.scene.gotoAndStop(_global.game.options.frame);
Instance of Symbol 1835 MovieClip "mcPizarra" in Symbol 1884 MovieClip Frame 1
on (rollOver) {
if ((!_global.game.isMyTurn()) || (!_global.scene.mcFicha)) {
return(undefined);
}
if (_global.game.extra.numMovs >= 6) {
delete _global.scene.mcTablero["h" + _global.game.extra.nAntPos].onMouseMove;
} else {
var objAux = _global.scene["mcInterface" + _global.game.turn].mcFichas;
delete objAux["f" + (_global.game.extra.nAntPos - 10)].onMouseMove;
}
_global.scene.mcFicha.removeMovieClip();
_global.game.disableSquares();
if (_global.game.extra.numMovs >= 6) {
_global.scene.mcTablero["h" + _global.game.extra.nAntPos].gotoAndStop("ficha" + _global.game.turn);
_global.game.extra.board[_global.game.extra.nAntPos] = _global.game.turn;
} else {
var objAux = _global.scene["mcInterface" + _global.game.turn].mcFichas;
objAux["f" + (_global.game.extra.nAntPos - 10)].gotoAndStop("ficha" + _global.game.turn);
}
_global.game.enableSquares();
}
Symbol 1884 MovieClip Frame 2
stop();
mcPizarra.useHandCursor = false;
if (_root.mcGameMessages.mcWindow._currentframe == 1) {
if (((_global.game.codLoadMatch == -1) && (_global.loadGame == undefined)) || (_global.game.imSpectator() && (_global.rg.beginMatch))) {
_global.game.initNewMatch();
} else {
_global.game.initPlayerLoadMatch();
}
} else {
_global.game.sendOnEndMatch(true);
_global.game.onEndMatch();
}
Symbol 1887 MovieClip Frame 1
stop();
this._visible = false;
Symbol 1887 MovieClip Frame 41
gotoAndPlay (2);
Symbol 1889 Button
on (press) {
var x = (_root._xmouse - _parent._x);
var y = (_root._ymouse - _parent._y);
_parent.onMouseMove = function () {
_parent._x = _root._xmouse - x;
_parent._y = _root._ymouse - y;
updateAfterEvent();
};
}
on (release, releaseOutside) {
delete _parent.onMouseMove;
var security = 25;
if (((_parent._x + this._width) - security) < 0) {
_parent._x = -(this._width - security);
}
if (((_parent._y + this._height) - security) < 0) {
_parent._y = -(this._height - security);
}
if ((_parent._x + security) > 900) {
_parent._x = 900 - security;
}
if ((_parent._y + security) > 500) {
_parent._y = 500 - security;
}
}
Symbol 1890 MovieClip Frame 1
seguridad.useHandCursor = false;
Symbol 1903 MovieClip Frame 1
stop();
Symbol 1928 MovieClip [mcOptionsWindow] Frame 1
function updateOptions() {
btnPswd.selected = _global.game.match.mPasswd;
txtPswd.text = "";
txtPswd._visible = false;
mcFondoTxtPswd._visible = false;
btnVer.selected = _global.game.match.audience;
btnHablar.selected = _global.game.match.audienceTalk;
chkGoOnLeave.selected = _global.game.match.goOnLeave;
if (_global.game.imTheOwner()) {
btnUpdate.enabled = true;
btnChange._visible = btnPswd.selected;
btnPswd.enabled = true;
btnVer.enabled = true;
btnHablar.enabled = true;
chkGoOnLeave.enabled = (_global.game.match.maxUsers == _global.game.match.extra.numTeams) && (_global.game.match.maxUsers > 2);
} else {
btnUpdate.enabled = false;
btnChange._visible = false;
btnPswd.enabled = false;
btnVer.enabled = false;
btnHablar.enabled = false;
chkGoOnLeave.enabled = false;
}
}
function sendUpdate() {
this._visible = false;
_parent.cfci.start();
btnUpdate.enabled = false;
txtPswd._visible = false;
mcFondoTxtPswd._visible = false;
btnChange._visible = btnPswd.selected;
var _local4 = _global.game.match.clone();
var _local9 = _local4.matchName;
var _local11 = (btnPswd.selected ? (txtPswd.text) : "");
var _local6 = _local4.maxUsers;
var _local8 = _local4.guests;
var _local7 = btnVer.selected;
var _local10 = btnHablar.selected;
var _local5 = chkGoOnLeave.selected;
_global.rg.updateMatch(_local9, _local11, _local6, _local8, _local7, _local10, _local5, Serialize.code(_global.extra).split("'").join("\\'"));
}
stop();
lstCargar._visible = false;
txtPswd.restrict = "a-zA-Z0-9_\u00F1";
txtPswd.text = "";
var sw = true;
var i = 0;
while (i < _global.game.numPlayers) {
sw = sw && (_global.game.player[i].type != 2);
i++;
}
btnLoad.enabled = sw;
btnSavePest.enabled = sw;
updateOptions();
Instance of Symbol 439 MovieClip [zButton] "btnVer" in Symbol 1928 MovieClip [mcOptionsWindow] Frame 1
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "";
label = "Aceptar";
selected = false;
skin = "skinCheck";
type = "Check";
}
onClipEvent (load) {
function __f_change(eventObj) {
_parent.btnHablar.selected = this.selected;
}
this.addEventListener("change", __f_change);
}
Instance of Symbol 439 MovieClip [zButton] "btnHablar" in Symbol 1928 MovieClip [mcOptionsWindow] Frame 1
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "";
label = "Aceptar";
selected = false;
skin = "skinCheck";
type = "Check";
}
Instance of Symbol 439 MovieClip [zButton] "btnPswd" in Symbol 1928 MovieClip [mcOptionsWindow] Frame 1
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "";
label = "Aceptar";
selected = false;
skin = "skinCheck";
type = "Check";
}
on (release) {
if (this.selected) {
_parent.btnChange._visible = false;
_parent.txtPswd._visible = false;
_parent.mcFondoTxtPswd._visible = false;
} else {
Selection.setFocus(_parent.txtpswd);
_parent.txtPswd.text = "";
_parent.txtPswd._visible = true;
_parent.mcFondoTxtPswd._visible = true;
}
}
Instance of Symbol 439 MovieClip [zButton] "btnChange" in Symbol 1928 MovieClip [mcOptionsWindow] Frame 1
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "";
label = "Cambiar";
selected = false;
skin = "_skinButtonCambiar";
type = "Button";
}
on (release) {
this._onRelease();
btnUpdate.enabled = true;
this._visible = false;
_parent.txtPswd._visible = true;
_parent.mcFondoTxtPswd._visible = true;
}
Instance of Symbol 439 MovieClip [zButton] "btnUpdate" in Symbol 1928 MovieClip [mcOptionsWindow] Frame 1
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "";
label = "Aceptar";
selected = false;
skin = "_skinButtonUpdate";
type = "Button";
}
on (release) {
this._onRelease();
_parent.sendUpdate();
}
Instance of Symbol 439 MovieClip [zButton] "chkGoOnLeave" in Symbol 1928 MovieClip [mcOptionsWindow] Frame 1
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "";
label = "Aceptar";
selected = false;
skin = "skinCheck";
type = "Check";
}
Instance of Symbol 38 MovieClip [zListBox] "lstCargar" in Symbol 1928 MovieClip [mcOptionsWindow] Frame 1
//component parameters
onClipEvent (construct) {
enabled = true;
hScrollPolicy = "off";
multipleSelection = false;
skin = "_skinListaCargar";
vScrollPolicy = "auto";
}
Instance of Symbol 439 MovieClip [zButton] "btnOwner" in Symbol 1928 MovieClip [mcOptionsWindow] Frame 1
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "GroupGameOptions";
label = "Aceptar";
selected = true;
skin = "_skinOptionsTabServer";
type = "Option";
}
on (release) {
this._onRelease();
if (_parent._currentframe != 1) {
_parent.gotoAndStop("fservidor");
btnUpdate.enabled = _global.game.imTheOwner();
}
}
Instance of Symbol 439 MovieClip [zButton] "btnMatch" in Symbol 1928 MovieClip [mcOptionsWindow] Frame 1
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "GroupGameOptions";
label = "Aceptar";
selected = false;
skin = "_skinOptionsTabMatch";
type = "Option";
}
on (release) {
this._onRelease();
if (_parent._currentframe != 2) {
_parent.gotoAndStop("fpartida");
btnUpdate._visible = _global.game.imTheOwner();
}
}
Instance of Symbol 439 MovieClip [zButton] "btnLoad" in Symbol 1928 MovieClip [mcOptionsWindow] Frame 1
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "GroupGameOptions";
label = "Aceptar";
selected = false;
skin = "_skinOptionsTabLoad";
type = "Option";
}
on (release) {
this._onRelease();
if (_parent._currentframe != 3) {
_parent.gotoAndStop("fcargar");
_parent.btnCargarOK.enabled = _global.game.isMyTurn();
}
}
Instance of Symbol 439 MovieClip [zButton] "btnSavePest" in Symbol 1928 MovieClip [mcOptionsWindow] Frame 1
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "GroupGameOptions";
label = "Aceptar";
selected = false;
skin = "_skinOptionsTabSave";
type = "Option";
}
on (release) {
this._onRelease();
if (_parent._currentframe != 4) {
_parent.gotoAndStop("fguardar");
_parent.btnSave.enabled = _global.game.isMyTurn();
}
}
Instance of Symbol 439 MovieClip [zButton] in Symbol 1928 MovieClip [mcOptionsWindow] Frame 1
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "radioGroup";
label = "Aceptar";
selected = false;
skin = "_skinChatTabClose";
type = "Button";
}
on (release) {
_parent._visible = false;
_parent._parent.cfci.start();
}
Symbol 1928 MovieClip [mcOptionsWindow] Frame 2
function updateExtraOptions() {
btnUpdate.enabled = _global.game.imTheOwner();
cmbQuality.dataProvider = [{label:"\u00D3ptima"}, {label:"Alta"}, {label:"Media"}, {label:"Baja"}];
switch (_root._quality) {
case "BEST" :
cmbQuality.selectedIndex = 0;
break;
case "HIGH" :
cmbQuality.selectedIndex = 1;
break;
case "MEDIUM" :
cmbQuality.selectedIndex = 2;
break;
case "LOW" :
cmbQuality.selectedIndex = 3;
}
chkFullScreen.selected = Stage.displayState == "fullScreen";
if (_global.gOptions.data.sound != undefined) {
chkSound.selected = _global.gOptions.data.sound;
} else {
chkSound.selected = true;
}
if (_global.gOptions.data.chat != undefined) {
chkChat.selected = _global.gOptions.data.chat;
} else {
chkChat.selected = true;
}
chkIgnore.selected = _global.game.ignoreQuerys;
nsTurnTime.enabled = _global.game.imTheOwner();
nsTurnTime.position = _global.game.options.turnTime;
antOptions = match.extra.clone();
}
function sendUpdate() {
if (!checkOptions()) {
return(undefined);
}
btnUpdate.enabled = false;
this._visible = false;
_parent.cfci.start();
if (_global.game.imTheOwner()) {
var _local4 = _global.game.match.clone();
var _local9 = _local4.matchName;
var _local11 = _global.rg.mPasswd;
var _local6 = _local4.maxUsers;
var _local8 = _local4.guests;
var _local7 = _local4.audience;
var _local10 = _local4.audienceTalk;
var _local5 = _local4.goOnLeave;
_global.extra.turnTime = nsTurnTime.position;
_global.rg.updateMatch(_local9, _local11, _local6, _local8, _local7, _local10, _local5, Serialize.code(_global.extra).split("'").join("\\'"));
this._visible = false;
_level.mcMessages.mcWindow.Escape();
_global.game.showMessage("fUpdateMatch", false);
}
}
function checkOptions() {
if (antOptions.turnTime != nsTurnTime.position) {
return(true);
}
return(false);
}
stop();
btnUpdate.enabled = false;
lstCargar._visible = false;
var antOptions = new Object();
updateExtraOptions();
Instance of Symbol 439 MovieClip [zButton] "btnUpdate" in Symbol 1928 MovieClip [mcOptionsWindow] Frame 2
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "";
label = "Aceptar";
selected = false;
skin = "_skinButtonUpdate";
type = "Button";
}
on (release) {
this._onRelease();
_parent.sendUpdate();
}
Instance of Symbol 439 MovieClip [zButton] "chkFullScreen" in Symbol 1928 MovieClip [mcOptionsWindow] Frame 2
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "";
label = "Aceptar";
selected = false;
skin = "skinCheck";
type = "Check";
}
onClipEvent (load) {
function __f_change(eventObj) {
if ((Stage.displayState == "normal") || (Stage.displayState == undefined)) {
Stage.displayState = "fullScreen";
} else {
Stage.displayState = "normal";
}
}
this.addEventListener("change", __f_change);
}
Instance of Symbol 439 MovieClip [zButton] "chkSound" in Symbol 1928 MovieClip [mcOptionsWindow] Frame 2
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "";
label = "Aceptar";
selected = false;
skin = "skinCheck";
type = "Check";
}
onClipEvent (load) {
function __f_change(eventObj) {
_global.gOptions.data.sound = this.selected;
_global.gOptions.flush();
_global.sounds.setVolumes();
}
this.addEventListener("change", __f_change);
}
Instance of Symbol 439 MovieClip [zButton] "chkChat" in Symbol 1928 MovieClip [mcOptionsWindow] Frame 2
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "";
label = "Aceptar";
selected = false;
skin = "skinCheck";
type = "Check";
}
onClipEvent (load) {
function __f_change(eventObj) {
if (this.selected) {
_global.parentScene.cfco = new cFastChatOutput(_root, 30, 10);
} else {
_global.parentScene.cfco.stop();
delete _global.parentScene.cfco;
}
_global.gOptions.data.chat = this.selected;
_global.gOptions.flush();
}
this.addEventListener("change", __f_change);
}
Instance of Symbol 835 MovieClip [zComboBox] "cmbQuality" in Symbol 1928 MovieClip [mcOptionsWindow] Frame 2
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
editable = false;
enabled = true;
skin = "_skinComboNum";
}
onClipEvent (load) {
function __f_change(eventObj) {
switch (this.text) {
case "\u00D3ptima" :
_root._quality = "BEST";
break;
case "Alta" :
_root._quality = "HIGH";
break;
case "Media" :
_root._quality = "MEDIUM";
break;
case "Baja" :
_root._quality = "LOW";
}
_global.gOptions.data.quality = _root.quality;
_global.gOptions.flush();
}
this.addEventListener("change", __f_change);
}
Instance of Symbol 1100 MovieClip [zNStepper] "nsTurnTime" in Symbol 1928 MovieClip [mcOptionsWindow] Frame 2
//component parameters
onClipEvent (construct) {
enabled = true;
increase = 5;
max = 30;
min = 10;
position = 15;
skin = "_skinNStepperCreateMatch";
}
Instance of Symbol 439 MovieClip [zButton] "chkIgnore" in Symbol 1928 MovieClip [mcOptionsWindow] Frame 2
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "";
label = "Aceptar";
selected = false;
skin = "skinCheck";
type = "Check";
}
onClipEvent (load) {
function __f_change(eventObj) {
_global.game.ignoreQuerys = this.selected;
_global.rg.send("fn'onIgnoreAllRequest'ignoreAllRequest%" + (this.selected ? 1 : 0));
}
this.addEventListener("change", __f_change);
}
Symbol 1928 MovieClip [mcOptionsWindow] Frame 3
stop();
lstCargar._visible = true;
btnCargarOK.enabled = ((lstCargar.dataProvider.length > 0) && (lstCargar.selectedIndex != undefined)) && (_global.game.isMyTurn());
if (lstCargar.dataProvider.length != 0) {
txtSave._visible = false;
}
Instance of Symbol 439 MovieClip [zButton] "btnCargarOK" in Symbol 1928 MovieClip [mcOptionsWindow] Frame 3
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "";
label = "";
selected = false;
skin = "_skinButtonCrearOK";
type = "Button";
}
on (release) {
this._onRelease();
this.enabled = false;
if (_parent.lstCargar.selectedItem != undefined) {
_parent.gotoAndStop("fcargarInfo");
}
}
Symbol 1928 MovieClip [mcOptionsWindow] Frame 4
function saveMatch() {
this._visible = false;
btnSave.enabled = false;
if ((_global.rg.credits >= 5) && (_global.game.maxBet >= 5)) {
_global.game.pauseOn();
_global.game.matchDuration.buffer = new Date().getTime() - Number(_global.game.matchDuration.msgs);
var _local4 = _global.game.cloneMatchInfo();
delete _local4.m_extra.bTimeOut;
delete _local4.m_extra.time;
delete _local4.m_extra.auxTurnTime;
delete _local4.m_extra.startTimeOut;
delete _local4.m_extra.nAntPos;
delete _local4.m_extra.numSquares;
var _local5 = Serialize.code(_local4.cloneMatchInfo()).split("'").join("\\'");
_global.rg.send(((((("fn'onSaveMatch'idUser&" + _global.rg.idUser) + ";matchName'") + txtMatchName.text) + "'game'") + _local5) + "'accept%1");
_global.game.showMessage("fWaitInitMatch", false);
} else {
_global.game.showMessage("fInsufficientSave", false);
if (_global.rg.credits < 5) {
_root.mcGameMessages.mcWindow.txtMsg.text = "No tienes creditos suficientes \n para guardar la partida";
} else {
_root.mcGameMessages.mcWindow.txtMsg.text = "No se puede guardar la partida \n porque algun jugador no tiene \n creditos suficientes.";
}
}
_global.parentScene.mcGameMessages._visible = true;
_root.cfci.start();
}
stop();
lstCargar._visible = false;
txtMatchName.restrict = "a-zA-Z0-9_\u00F1";
txtMatchName.text = _global.game.match.matchName;
txtMatchName.onChanged = function () {
btnSave.enabled = _global.game.isMyTurn() && (this.length > 0);
};
Instance of Symbol 439 MovieClip [zButton] "btnSave" in Symbol 1928 MovieClip [mcOptionsWindow] Frame 4
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "";
label = "Aceptar";
selected = false;
skin = "_skinButtonGuardar";
type = "Button";
}
on (release) {
this._onRelease();
_parent.saveMatch();
var THIS = this;
var wait = function () {
THIS.enabled = true;
};
tmo.setTimeout(wait, 5000);
}
Symbol 1928 MovieClip [mcOptionsWindow] Frame 5
function parseDate(pDate) {
var _local1 = pDate.split(" ");
var _local2 = new Object();
_local2.time = _local1[1];
_local1 = _local1[0].split("-");
_local2.date = (((_local1[2] + "-") + _local1[1]) + "-") + _local1[0];
return(_local2);
}
function loadMatch() {
this._visible = false;
btnCargarOK.enabled = false;
_global.parentScene.btnBet.enabled = false;
_global.parentScene.btnOptions.enabled = false;
if (_global.game.myBet == 0) {
_global.game.pauseOn();
var _local6 = lstCargar.selectedItem.codpartida;
var _local5 = lstCargar.selectedItem.matchName;
var _local4 = lstCargar.selectedItem.date;
_global.rg.send(((((((("fn'onLoadMatch'idUser&" + _global.rg.idUser) + ";codpartida&") + _local6) + ";matchName'") + _local5) + "'date'") + _local4) + "'accept%1");
_global.game.showMessage("fWaitInitMatch", false);
} else {
_global.game.showMessage("fAnnulBet", false);
}
_global.parentScene.mcGameMessages._visible = true;
_root.cfci.start();
}
stop();
lstCargar._visible = false;
var match = lstCargar.selectedItem.clone();
txtMatchName.text = match.matchName;
var objDate = parseDate(match.date);
txtDate.text = objDate.date;
txtTime.text = objDate.time;
txtNumPlayers.text = match.maxUsers;
txtBet.text = match.bet * match.maxUsers;
matchDuration = new Object();
matchDuration.msgs = "0";
matchDuration.sgs = 0;
matchDuration.mins = 0;
matchDuration.hrs = 0;
matchDuration.msgs = Number(match.game.m_matchDuration.buffer);
matchDuration.hrs = Math.floor(matchDuration.msgs / 3600000);
var auxMsgs = (Number(matchDuration.msgs) % 3600000);
matchDuration.mins = Math.floor(auxMsgs / 60000);
matchDuration.sgs = Math.floor((auxMsgs % 60000) / 1000);
if ((matchDuration.hrs == 0) && (matchDuration.mins == 0)) {
txtDuration.text = txtDuration.text + (matchDuration.sgs + " sg");
} else if (matchDuration.hrs == 0) {
txtDuration.text = txtDuration.text + (((matchDuration.mins + " min ") + matchDuration.sgs) + " sg");
} else {
txtDuration.text = txtDuration.text + (((((matchDuration.hrs + " hr ") + matchDuration.mins) + " min ") + matchDuration.sgs) + " sg");
}
txtTurn.text = "";
txtPlayerList.text = "";
txtWins.text = "";
txtLoses.text = "";
txtDraws.text = "";
txtPoints.text = "";
var i = 0;
while (i < match.maxUsers) {
this["mcTurn" + i]._visible = i == match.game.m_turn;
txtPlayerList.text = txtPlayerList.text + (match.game.m_player[i].m_name + newline);
txtWins.text = txtWins.text + (match.game.m_player[i].m_statistics.m_win + newline);
txtLoses.text = txtLoses.text + (match.game.m_player[i].m_statistics.m_lose + newline);
i++;
}
txtTurnTime.text = match.game.m_extra.turnTime + " sg";
var i = 0;
while (i < 9) {
this["h" + i].gotoAndStop("ficha" + match.game.m_extra.board[i]);
i++;
}
Instance of Symbol 439 MovieClip [zButton] "btnCancel" in Symbol 1928 MovieClip [mcOptionsWindow] Frame 5
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "";
label = "";
selected = false;
skin = "_skinButtonCrearCancelar";
type = "Button";
}
on (release) {
this._onRelease();
this.enabled = false;
_parent.gotoAndStop("fcargar");
}
Instance of Symbol 439 MovieClip [zButton] "btnCargarOK" in Symbol 1928 MovieClip [mcOptionsWindow] Frame 5
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "";
label = "";
selected = false;
skin = "_skinButtonCrearOK";
type = "Button";
}
on (release) {
this._onRelease();
this.enabled = false;
if (_parent.lstCargar.selectedItem != undefined) {
_parent.loadMatch();
}
}
Instance of Symbol 877 MovieClip "mcVictoria" in Symbol 1928 MovieClip [mcOptionsWindow] Frame 5
on (rollOver, dragOver) {
var THIS = this;
var wait = function () {
THIS.mcToolTip = _root.mcConectado.attachMovie("mcToolTips", "mcToolTip", 100);
THIS.mcToolTip.gotoAndStop(THIS._name.toString());
THIS.onMouseMove = function () {
THIS.mcToolTip._x = _root._xmouse - (THIS.mcToolTip._width / 2);
THIS.mcToolTip._y = _root._ymouse - THIS.mcToolTip._height;
updateAfterEvent();
};
THIS.onMouseMove();
};
tmo.clearInterval(this.idWait);
this.idWait = tmo.setTimeout(wait, 800);
}
on (releaseOutside, rollOut, dragOut) {
tmo.clearInterval(this.idWait);
delete this.onMouseMove;
this.mcToolTip.removeMovieClip();
}
on (release) {
this._onRelease();
tmo.clearInterval(this.idWait);
delete this.onMouseMove;
this.mcToolTip.removeMovieClip();
}
Instance of Symbol 877 MovieClip "mcDerrota" in Symbol 1928 MovieClip [mcOptionsWindow] Frame 5
on (rollOver, dragOver) {
var THIS = this;
var wait = function () {
THIS.mcToolTip = _root.mcConectado.attachMovie("mcToolTips", "mcToolTip", 100);
THIS.mcToolTip.gotoAndStop(THIS._name.toString());
THIS.onMouseMove = function () {
THIS.mcToolTip._x = _root._xmouse - (THIS.mcToolTip._width / 2);
THIS.mcToolTip._y = _root._ymouse - THIS.mcToolTip._height;
updateAfterEvent();
};
THIS.onMouseMove();
};
tmo.clearInterval(this.idWait);
this.idWait = tmo.setTimeout(wait, 800);
}
on (releaseOutside, rollOut, dragOut) {
tmo.clearInterval(this.idWait);
delete this.onMouseMove;
this.mcToolTip.removeMovieClip();
}
on (release) {
this._onRelease();
tmo.clearInterval(this.idWait);
delete this.onMouseMove;
this.mcToolTip.removeMovieClip();
}
Symbol 1931 Button
on (press) {
var x = (_root._xmouse - _parent._x);
var y = (_root._ymouse - _parent._y);
_parent.onMouseMove = function () {
_parent._x = _root._xmouse - x;
_parent._y = _root._ymouse - y;
updateAfterEvent();
};
}
on (release, releaseOutside) {
delete _parent.onMouseMove;
var security = 25;
if (((_parent._x + this._width) - security) < 0) {
_parent._x = -(this._width - security);
}
if (((_parent._y + this._height) - security) < 0) {
_parent._y = -(this._height - security);
}
if ((_parent._x + security) > 900) {
_parent._x = 900 - security;
}
if ((_parent._y + security) > 500) {
_parent._y = 500 - security;
}
}
Symbol 1932 MovieClip Frame 1
seguridad.useHandCursor = false;
Symbol 1943 MovieClip Frame 1
function updateBet() {
nsIncrease.max = (txtBet.text = ((_global.game.myBet * _global.game.numPlayers) + _global.game.leaveBet) + "$");
txtSaldo.text = _global.rg.credits;
txtMaxBet.text = _global.game.maxBet + "$";
btnOk.enabled = _global.game.isMyTurn() && (_global.game.maxBet > 0);
btnDelete.enabled = _global.game.isMyTurn() && (_global.game.myBet > 0);
}
function setIncreaseNS() {
if ((_global.rg.type == 2) || (_global.rg.credits <= 0)) {
nsIncrease.enabled = false;
} else {
nsIncrease.max = _global.game.maxBet;
nsIncrease.increase = 100;
if (nsIncrease.max < 1000) {
nsIncrease.increase = 50;
}
if (nsIncrease.max < 500) {
nsIncrease.increase = 25;
}
if (nsIncrease.max < 100) {
nsIncrease.increase = 10;
}
if (nsIncrease.max < 50) {
nsIncrease.increase = 5;
}
if (nsIncrease.max < 20) {
nsIncrease.increase = 2;
}
if (nsIncrease.max < 10) {
nsIncrease.increase = 1;
}
}
}
Symbol 1943 MovieClip Frame 30
updateBet();
stop();
Instance of Symbol 1100 MovieClip [zNStepper] "nsIncrease" in Symbol 1943 MovieClip Frame 30
//component parameters
onClipEvent (construct) {
enabled = true;
increase = 1;
max = 10;
min = 0;
position = 0;
skin = "_skinNStepperBet";
}
onClipEvent (load) {
_parent.setIncreaseNS();
}
Instance of Symbol 439 MovieClip [zButton] "btnOk" in Symbol 1943 MovieClip Frame 30
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "radioGroup";
label = "Aceptar";
selected = false;
skin = "_skinButtonOK";
type = "Button";
}
on (release) {
this._onRelease();
if (_parent.nsIncrease.position < 1) {
return(undefined);
}
_global.game.pauseOn();
_global.rg.send(((("fn'onIncreaseBet'idUser&" + _global.rg.idUser) + ";increase&") + _parent.nsIncrease.position) + ";accept%1");
this.enabled = false;
_parent._parent._visible = false;
_global.game.showMessage("fWaitInitMatch", false);
_root.cfci.start();
}
Instance of Symbol 439 MovieClip [zButton] "btnDelete" in Symbol 1943 MovieClip Frame 30
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "radioGroup";
label = "Aceptar";
selected = false;
skin = "_skinButtonAnular";
type = "Button";
}
on (release) {
this._onRelease();
if (_global.game.myBet > 0) {
_global.game.pauseOn();
_global.rg.send(("fn'onResetBet'idUser&" + _global.rg.idUser) + ";accept%1");
this.enabled = false;
_parent._parent._visible = false;
_global.game.showMessage("fWaitInitMatch", false);
_root.cfci.start();
}
}
Instance of Symbol 439 MovieClip [zButton] in Symbol 1947 MovieClip [mcBetWindow] Frame 1
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "radioGroup";
label = "Aceptar";
selected = false;
skin = "_skinChatTabClose";
type = "Button";
}
on (release) {
this._onRelease();
_parent._visible = false;
_parent._parent.cfci.start();
}
Symbol 1949 Button
on (press) {
var x = (_root._xmouse - _parent._x);
var y = (_root._ymouse - _parent._y);
_parent.onMouseMove = function () {
_parent._x = _root._xmouse - x;
_parent._y = _root._ymouse - y;
updateAfterEvent();
};
}
on (release, releaseOutside) {
delete _parent.onMouseMove;
var security = 25;
if (((_parent._x + this._width) - security) < 0) {
_parent._x = -(this._width - security);
}
if (((_parent._y + this._height) - security) < 0) {
_parent._y = -(this._height - security);
}
if ((_parent._x + security) > 900) {
_parent._x = 900 - security;
}
if ((_parent._y + security) > 500) {
_parent._y = 500 - security;
}
}
Symbol 1950 MovieClip Frame 1
seguridad.useHandCursor = false;
Symbol 1961 MovieClip [mcExitWindow] Frame 1
stop();
Instance of Symbol 439 MovieClip [zButton] in Symbol 1961 MovieClip [mcExitWindow] Frame 1
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "radioGroup";
label = "Aceptar";
selected = false;
skin = "_skinChatTabClose";
type = "Button";
}
on (release) {
_parent._visible = false;
_parent._parent.cfci.start();
}
Instance of Symbol 439 MovieClip [zButton] in Symbol 1961 MovieClip [mcExitWindow] Frame 1
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "radioGroup";
label = "Aceptar";
selected = false;
skin = "_skinButtonExitAbandono";
type = "Button";
}
on (release) {
this._onRelease();
_level.mcMessages.mcWindow.Escape();
_global.rg.leaveMatch(true);
}
Instance of Symbol 439 MovieClip [zButton] in Symbol 1961 MovieClip [mcExitWindow] Frame 1
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "radioGroup";
label = "Aceptar";
selected = false;
skin = "_skinButtonExitJugar";
type = "Button";
}
on (release) {
this._onRelease();
_parent._visible = false;
}
Instance of Symbol 439 MovieClip [zButton] in Symbol 1961 MovieClip [mcExitWindow] Frame 1
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "radioGroup";
label = "Aceptar";
selected = false;
skin = "_skinButtonExitAnular";
type = "Button";
}
on (release) {
this.enabled = false;
_global.game.pauseOn();
_global.rg.send(("fn'onNullMatch'idUser&" + _global.rg.idUser) + ";accept%1");
_global.game.showMessage("fWaitInitMatch", false);
var THIS = this;
var wait = function () {
THIS.enabled = true;
};
tmo.setTimeout(wait, 5000);
}
Symbol 1963 Button
on (press) {
var x = (_root._xmouse - _parent._x);
var y = (_root._ymouse - _parent._y);
_parent.onMouseMove = function () {
_parent._x = _root._xmouse - x;
_parent._y = _root._ymouse - y;
updateAfterEvent();
};
}
on (release, releaseOutside) {
delete _parent.onMouseMove;
var security = 25;
if (((_parent._x + this._width) - security) < 0) {
_parent._x = -(this._width - security);
}
if (((_parent._y + this._height) - security) < 0) {
_parent._y = -(this._height - security);
}
if ((_parent._x + security) > 900) {
_parent._x = 900 - security;
}
if ((_parent._y + security) > 500) {
_parent._y = 500 - security;
}
}
Symbol 1964 MovieClip Frame 1
seguridad.useHandCursor = false;
Symbol 1972 MovieClip Frame 1
function checkButtons() {
btnAdd.enabled = false;
btnChat.enabled = false;
btnPerfil.enabled = false;
btnIgnore.enabled = false;
if (lstUsuarios.selectedItem == undefined) {
return(undefined);
}
if (lstUsuarios.selectedItem.idUser != rg.idUser) {
btnChat.enabled = true;
}
btnPerfil.enabled = lstUsuarios.selectedItem.type != 2;
if (((((rg.type == 0) || (rg.type == 1)) || (rg.type == 4)) && (((lstUsuarios.selectedItem.type == 0) || (lstUsuarios.selectedItem.type == 1)) || (lstUsuarios.selectedItem.type == 4))) && (lstUsuarios.selectedItem.idUser != rg.idUser)) {
if (rg.friendList.find("userName", lstUsuarios.selectedItem.userName) < 0) {
btnAdd.enabled = true;
}
}
if (((lstUsuarios.selectedItem.idUser != rg.idUser) && (lstUsuarios.selectedItem.type != 0)) && (lstUsuarios.selectedItem.type != 4)) {
btnIgnore.enabled = true;
}
}
checkButtons();
lstUsuarios.onChange = function () {
checkButtons();
};
Instance of Symbol 439 MovieClip [zButton] "btnAdd" in Symbol 1972 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "radioGroup";
label = "Aceptar";
selected = false;
skin = "_skinButtonA\u00F1adirUsuariox2";
type = "Button";
}
on (release) {
this._onRelease();
this.enabled = false;
var THIS = this;
if (_parent.lstUsuarios.selectedItem == undefined) {
_level.attachMovie("mcMessages", "mcMessages", _level.getNextHighestDepth());
_level.mcMessages.mcWindow.gotoAndStop("fEmptyUser");
return(undefined);
}
rg.onAddFriend = function (obj) {
switch (obj.status) {
case 0 :
var _local2 = new Object();
_local2.codusuario = _parent.lstUsuarios.selectedItem.codusuario;
_local2.userName = _parent.lstUsuarios.selectedItem.userName;
_local2.rank = _parent.lstUsuarios.selectedItem.rank;
_local2.online = true;
_local2.codservidor = rg.codservidor;
_local2.serverID = rg.serverID;
_local2.idUser = _parent.lstUsuarios.selectedItem.idUser;
rg.friendList.push(_local2.clone());
THIS._parent._parent.mcListaUsuariosAmigos.lstAmigos.addItem(_local2.clone());
THIS._parent.checkButtons();
THIS._parent._parent.mcListaUsuariosAmigos.lstAmigos.render();
_level.attachMovie("mcMessages", "mcMessages", _level.getNextHighestDepth());
_level.mcMessages.mcWindow.gotoAndStop("fAddFriendOk");
break;
case 1 :
_level.attachMovie("mcMessages", "mcMessages", _level.getNextHighestDepth());
_level.mcMessages.mcWindow.gotoAndStop("fNoAddMe");
break;
case 3 :
_level.attachMovie("mcMessages", "mcMessages", _level.getNextHighestDepth());
_level.mcMessages.mcWindow.gotoAndStop("fFriendExists");
break;
case 2 :
case 4 :
_level.attachMovie("mcMessages", "mcMessages", _level.getNextHighestDepth());
_level.mcMessages.mcWindow.gotoAndStop("fAddFriendError");
break;
case 5 :
_level.attachMovie("mcMessages", "mcMessages", _level.getNextHighestDepth());
_level.mcMessages.mcWindow.gotoAndStop("fErrorExtra");
_level.mcMessages.mcWindow.txtMsg.text = obj.msg;
break;
}
};
var o = _parent.lstUsuarios.selectedItem;
rg.send(((("fn'onAddFriend'codusuario&" + o.codusuario) + ";idUser&") + o.idUser) + ";");
}
Instance of Symbol 439 MovieClip [zButton] "btnPerfil" in Symbol 1972 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "radioGroup";
label = "Aceptar";
selected = false;
skin = "_skinButtonPerfilUsuariox2";
type = "Button";
}
on (release) {
this._onRelease();
this.enabled = false;
if (_parent.lstUsuarios.selectedItem == undefined) {
_level.attachMovie("mcMessages", "mcMessages", _level.getNextHighestDepth());
_level.mcMessages.mcWindow.gotoAndStop("fEmptyUser");
return(undefined);
}
_level.attachMovie("mcMessages", "mcMessages", _level.getNextHighestDepth());
_level.mcMessages.mcWindow.gotoAndStop("fVerPerfil");
}
Instance of Symbol 439 MovieClip [zButton] "btnChat" in Symbol 1972 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "radioGroup";
label = "Aceptar";
selected = false;
skin = "_skinButtonHablarx2";
type = "Button";
}
on (release) {
this._onRelease();
this.enabled = false;
if (_parent.lstUsuarios.selectedItem == undefined) {
return(undefined);
}
var idUser = _parent.lstUsuarios.selectedItem.idUser;
var userName = _parent.lstUsuarios.selectedItem.userName;
var codservidor = _parent.lstUsuarios.selectedItem.codservidor;
var serverID = _parent.lstUsuarios.selectedItem.serverID;
if (_parent._parent["mc" + userName] != undefined) {
return(undefined);
}
var nue = _parent._parent.attachMovie("mcChatSalaGame", "mc" + userName, _parent._parent.getNextHighestDepth());
nue._x = _parent._parent.mcSala._x;
nue._y = _parent._parent.mcSala._y;
_parent._parent.cmbSmileys.swapDepths(_parent._parent.getNextHighestDepth());
_parent._parent.btnLeft.swapDepths(_parent._parent.getNextHighestDepth());
_parent._parent.btnRight.swapDepths(_parent._parent.getNextHighestDepth());
_parent._parent.btnClose.swapDepths(_parent._parent.getNextHighestDepth());
_parent._parent.newTab = true;
_parent._parent.tab.addTab(userName, true);
_parent._parent.tab.tabs[_parent._parent.tab.tabs.length - 1].idUser = idUser;
_parent._parent.tab.tabs[_parent._parent.tab.tabs.length - 1].codservidor = codservidor;
_parent._parent.tab.tabs[_parent._parent.tab.tabs.length - 1].serverID = serverID;
Selection.setFocus(_parent._parent.txtIn);
}
Instance of Symbol 439 MovieClip [zButton] "btnIgnore" in Symbol 1972 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "radioGroup";
label = "Aceptar";
selected = false;
skin = "_skinButtonIgnorarUsuariox2";
type = "Button";
}
on (release) {
this._onRelease();
this.enabled = false;
if (_parent.lstUsuarios.selectedItem == undefined) {
_level.attachMovie("mcMessages", "mcMessages", _level.getNextHighestDepth());
_level.mcMessages.mcWindow.gotoAndStop("fEmptyUser");
return(undefined);
}
var idx = _global.gIgnores.find("", _parent.lstUsuarios.selectedItem.userName);
((idx == -1) ? (_global.gIgnores.push(_parent.lstUsuarios.selectedItem.userName)) : (_global.gIgnores.splice(idx, 1)));
_global.rutaListaUsuariosSala.render();
_global.rutaListaUsuariosPartida.render();
}
Instance of Symbol 38 MovieClip [zListBox] "lstUsuarios" in Symbol 1972 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
enabled = true;
hScrollPolicy = "off";
multipleSelection = false;
skin = "_skinListaPlayers";
vScrollPolicy = "on";
}
Symbol 1973 MovieClip Frame 1
function checkButtons() {
btnDel.enabled = false;
btnChat.enabled = false;
if (lstAmigos.selectedItem == undefined) {
return(undefined);
}
btnDel.enabled = true;
btnPerfil.enabled = true;
if ((lstAmigos.selectedItem.userName != rg.userName) && (lstAmigos.selectedItem.online)) {
btnChat.enabled = true;
}
}
checkButtons();
lstAmigos.onChange = function () {
checkButtons();
};
Instance of Symbol 38 MovieClip [zListBox] "lstAmigos" in Symbol 1973 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
enabled = true;
hScrollPolicy = "off";
multipleSelection = false;
skin = "_skinListaPlayersColor4";
vScrollPolicy = "on";
}
Instance of Symbol 439 MovieClip [zButton] "btnDel" in Symbol 1973 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "radioGroup";
label = "Aceptar";
selected = false;
skin = "_skinButtonBorrarUsuariox2";
type = "Button";
}
on (release) {
this._onRelease();
this.enabled = false;
var THIS = this;
if (_parent.lstAmigos.selectedItem == undefined) {
_level.attachMovie("mcMessages", "mcMessages", _level.getNextHighestDepth());
_level.mcMessages.mcWindow.gotoAndStop("fEmptyUser");
return(undefined);
}
rg.onDelFriend = function (obj) {
switch (obj.status) {
case 0 :
var _local2 = 0;
while (_local2 < rg.friendList.length) {
if (rg.friendList[_local2].userName == _parent.lstAmigos.selectedItem.userName) {
rg.friendList.splice(_local2, 1);
break;
}
_local2++;
}
_local2 = 0;
while (_local2 < _parent.lstAmigos.length) {
if (_parent.lstAmigos.dataProvider[_local2].userName == _parent.lstAmigos.selectedItem.userName) {
_parent.lstAmigos.removeItemAt(_local2);
break;
}
_local2++;
}
THIS._parent.checkButtons();
_level.attachMovie("mcMessages", "mcMessages", _level.getNextHighestDepth());
_level.mcMessages.mcWindow.gotoAndStop("fDelFriendOk");
break;
case 1 :
case 2 :
_level.attachMovie("mcMessages", "mcMessages", _level.getNextHighestDepth());
_level.mcMessages.mcWindow.gotoAndStop("fDelFriendError");
break;
}
};
rg.send(("fn'onDelFriend'codusuario&" + _parent.lstAmigos.selectedItem.codusuario) + ";");
}
Instance of Symbol 439 MovieClip [zButton] "btnPerfil" in Symbol 1973 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "radioGroup";
label = "Aceptar";
selected = false;
skin = "_skinButtonPerfilUsuariox2";
type = "Button";
}
on (release) {
this._onRelease();
this.enabled = false;
if (_parent.lstAmigos.selectedItem == undefined) {
_level.attachMovie("mcMessages", "mcMessages", _level.getNextHighestDepth());
_level.mcMessages.mcWindow.gotoAndStop("fEmptyUser");
return(undefined);
}
_level.attachMovie("mcMessages", "mcMessages", _level.getNextHighestDepth());
_level.mcMessages.mcWindow.gotoAndStop("fVerPerfil");
}
Instance of Symbol 439 MovieClip [zButton] "btnChat" in Symbol 1973 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "radioGroup";
label = "Aceptar";
selected = false;
skin = "_skinButtonHablarx2";
type = "Button";
}
on (release) {
this._onRelease();
this.enabled = false;
if (_parent.lstAmigos.selectedItem == undefined) {
return(undefined);
}
var idUser = _parent.lstAmigos.selectedItem.idUser;
var userName = _parent.lstAmigos.selectedItem.userName;
var codservidor = _parent.lstAmigos.selectedItem.codservidor;
var serverID = _parent.lstAmigos.selectedItem.serverID;
if (_parent._parent["mc" + userName] != undefined) {
return(undefined);
}
var nue = _parent._parent.attachMovie("mcChatSalaGame", "mc" + userName, _parent._parent.getNextHighestDepth());
nue._x = _parent._parent.mcSala._x;
nue._y = _parent._parent.mcSala._y;
_parent._parent.cmbSmileys.swapDepths(_parent._parent.getNextHighestDepth());
_parent._parent.btnLeft.swapDepths(_parent._parent.getNextHighestDepth());
_parent._parent.btnRight.swapDepths(_parent._parent.getNextHighestDepth());
_parent._parent.btnClose.swapDepths(_parent._parent.getNextHighestDepth());
_parent._parent.newTab = true;
_parent._parent.tab.addTab(userName, true);
_parent._parent.tab.tabs[_parent._parent.tab.tabs.length - 1].idUser = idUser;
_parent._parent.tab.tabs[_parent._parent.tab.tabs.length - 1].codservidor = codservidor;
_parent._parent.tab.tabs[_parent._parent.tab.tabs.length - 1].serverID = serverID;
Selection.setFocus(_parent._parent.txtIn);
}
Symbol 1974 MovieClip Frame 1
function checkButtons() {
btnAdd.enabled = false;
btnChat.enabled = false;
btnPerfil.enabled = false;
btnEchar.enabled = false;
btnIgnore.enabled = false;
if (lstUsuarios.selectedItem == undefined) {
return(undefined);
}
if (lstUsuarios.selectedItem.idUser != rg.idUser) {
btnChat.enabled = true;
}
btnPerfil.enabled = lstUsuarios.selectedItem.type != 2;
if (((lstUsuarios.selectedItem.lookMatch && (_global.rg.idOwner == _global.rg.idUser)) && (lstUsuarios.selectedItem.type != 0)) && (lstUsuarios.selectedItem.type != 4)) {
btnEchar.enabled = true;
}
if (((((rg.type == 0) || (rg.type == 1)) || (rg.type == 4)) && (((lstUsuarios.selectedItem.type == 0) || (lstUsuarios.selectedItem.type == 1)) || (lstUsuarios.selectedItem.type == 4))) && (lstUsuarios.selectedItem.idUser != rg.idUser)) {
if (rg.friendList.find("userName", lstUsuarios.selectedItem.userName) < 0) {
btnAdd.enabled = true;
}
}
if (((lstUsuarios.selectedItem.idUser != rg.idUser) && (lstUsuarios.selectedItem.type != 0)) && (lstUsuarios.selectedItem.type != 4)) {
btnIgnore.enabled = true;
}
}
checkButtons();
lstUsuarios.onChange = function () {
checkButtons();
};
Instance of Symbol 439 MovieClip [zButton] "btnAdd" in Symbol 1974 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "radioGroup";
label = "Aceptar";
selected = false;
skin = "_skinButtonA\u00F1adirUsuariox3";
type = "Button";
}
on (release) {
this._onRelease();
this.enabled = false;
var THIS = this;
if (_parent.lstUsuarios.selectedItem == undefined) {
_level.attachMovie("mcMessages", "mcMessages", _level.getNextHighestDepth());
_level.mcMessages.mcWindow.gotoAndStop("fEmptyUser");
return(undefined);
}
rg.onAddFriend = function (obj) {
switch (obj.status) {
case 0 :
var _local2 = new Object();
_local2.codusuario = _parent.lstUsuarios.selectedItem.codusuario;
_local2.userName = _parent.lstUsuarios.selectedItem.userName;
_local2.rank = _parent.lstUsuarios.selectedItem.rank;
_local2.online = true;
_local2.codservidor = rg.codservidor;
_local2.serverID = rg.serverID;
_local2.idUser = _parent.lstUsuarios.selectedItem.idUser;
rg.friendList.push(_local2.clone());
THIS._parent._parent.mcListaUsuariosAmigos.lstAmigos.addItem(_local2.clone());
THIS._parent.checkButtons();
THIS._parent._parent.mcListaUsuariosAmigos.lstAmigos.render();
_level.attachMovie("mcMessages", "mcMessages", _level.getNextHighestDepth());
_level.mcMessages.mcWindow.gotoAndStop("fAddFriendOk");
break;
case 1 :
_level.attachMovie("mcMessages", "mcMessages", _level.getNextHighestDepth());
_level.mcMessages.mcWindow.gotoAndStop("fNoAddMe");
break;
case 3 :
_level.attachMovie("mcMessages", "mcMessages", _level.getNextHighestDepth());
_level.mcMessages.mcWindow.gotoAndStop("fFriendExists");
break;
case 2 :
case 4 :
_level.attachMovie("mcMessages", "mcMessages", _level.getNextHighestDepth());
_level.mcMessages.mcWindow.gotoAndStop("fAddFriendError");
break;
case 5 :
_level.attachMovie("mcMessages", "mcMessages", _level.getNextHighestDepth());
_level.mcMessages.mcWindow.gotoAndStop("fErrorExtra");
_level.mcMessages.mcWindow.txtMsg.text = obj.msg;
break;
}
};
var o = _parent.lstUsuarios.selectedItem;
rg.send(((("fn'onAddFriend'codusuario&" + o.codusuario) + ";idUser&") + o.idUser) + ";");
}
Instance of Symbol 439 MovieClip [zButton] "btnPerfil" in Symbol 1974 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "radioGroup";
label = "Aceptar";
selected = false;
skin = "_skinButtonPerfilUsuariox2";
type = "Button";
}
on (release) {
this._onRelease();
this.enabled = false;
if (_parent.lstUsuarios.selectedItem == undefined) {
_level.attachMovie("mcMessages", "mcMessages", _level.getNextHighestDepth());
_level.mcMessages.mcWindow.gotoAndStop("fEmptyUser");
return(undefined);
}
_level.attachMovie("mcMessages", "mcMessages", _level.getNextHighestDepth());
_level.mcMessages.mcWindow.gotoAndStop("fVerPerfil");
}
Instance of Symbol 439 MovieClip [zButton] "btnChat" in Symbol 1974 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "radioGroup";
label = "Aceptar";
selected = false;
skin = "_skinButtonHablarx2";
type = "Button";
}
on (release) {
this._onRelease();
this.enabled = false;
if (_parent.lstUsuarios.selectedItem == undefined) {
return(undefined);
}
var idUser = _parent.lstUsuarios.selectedItem.idUser;
var userName = _parent.lstUsuarios.selectedItem.userName;
var codservidor = _parent.lstUsuarios.selectedItem.codservidor;
var serverID = _parent.lstUsuarios.selectedItem.serverID;
if (_parent._parent["mc" + userName] != undefined) {
return(undefined);
}
var nue = _parent._parent.attachMovie("mcChatSalaGame", "mc" + userName, _parent._parent.getNextHighestDepth());
nue._x = _parent._parent.mcSala._x;
nue._y = _parent._parent.mcSala._y;
_parent._parent.cmbSmileys.swapDepths(_parent._parent.getNextHighestDepth());
_parent._parent.btnLeft.swapDepths(_parent._parent.getNextHighestDepth());
_parent._parent.btnRight.swapDepths(_parent._parent.getNextHighestDepth());
_parent._parent.btnClose.swapDepths(_parent._parent.getNextHighestDepth());
_parent._parent.newTab = true;
_parent._parent.tab.addTab(userName, true);
_parent._parent.tab.tabs[_parent._parent.tab.tabs.length - 1].idUser = idUser;
_parent._parent.tab.tabs[_parent._parent.tab.tabs.length - 1].codservidor = codservidor;
_parent._parent.tab.tabs[_parent._parent.tab.tabs.length - 1].serverID = serverID;
Selection.setFocus(_parent._parent.txtIn);
}
Instance of Symbol 439 MovieClip [zButton] "btnIgnore" in Symbol 1974 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "radioGroup";
label = "Aceptar";
selected = false;
skin = "_skinButtonIgnorarUsuariox3";
type = "Button";
}
on (release) {
this._onRelease();
this.enabled = false;
if (_parent.lstUsuarios.selectedItem == undefined) {
_level.attachMovie("mcMessages", "mcMessages", _level.getNextHighestDepth());
_level.mcMessages.mcWindow.gotoAndStop("fEmptyUser");
return(undefined);
}
var idx = _global.gIgnores.find("", _parent.lstUsuarios.selectedItem.userName);
((idx == -1) ? (_global.gIgnores.push(_parent.lstUsuarios.selectedItem.userName)) : (_global.gIgnores.splice(idx, 1)));
_global.rutaListaUsuariosSala.render();
_global.rutaListaUsuariosPartida.render();
}
Instance of Symbol 439 MovieClip [zButton] "btnEchar" in Symbol 1974 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "radioGroup";
label = "Aceptar";
selected = false;
skin = "_skinButtonEcharx3";
type = "Button";
}
on (release) {
this._onRelease();
this.enabled = false;
if (_parent.lstUsuarios.selectedItem == undefined) {
_level.attachMovie("mcMessages", "mcMessages", _level.getNextHighestDepth());
_level.mcMessages.mcWindow.gotoAndStop("fEmptyUser");
return(undefined);
}
_global.rg.send(("fn'onKickUserLookMatch'idUser&" + _parent.lstUsuarios.selectedItem.idUser) + ";");
}
Instance of Symbol 38 MovieClip [zListBox] "lstUsuarios" in Symbol 1974 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
enabled = true;
hScrollPolicy = "off";
multipleSelection = false;
skin = "_skinListaPlayersColor5";
vScrollPolicy = "on";
}
Symbol 1975 MovieClip [mcChatWindow] Frame 1
stop();
mcListaUsuariosPartida._visible = true;
mcListaUsuariosSala._visible = false;
mcListaUsuariosAmigos._visible = false;
mcListaUsuariosPartida.lstUsuarios.onRenderRow = function (item, datos) {
item.txtUserName.text = datos.userName;
item.txtUserName.textColor = ((datos.sex == "M") ? 11356122 : 207296);
if ((datos.type == 0) || (datos.type == 4)) {
item.mcStatus.gotoAndStop("fModerator");
} else if (_global.gIgnores.find("", datos.userName) == -1) {
if (datos.idMatch < 0) {
item.mcStatus.gotoAndStop("fVerde");
} else if (datos.lookMatch) {
item.mcStatus.gotoAndStop("fAmarillo");
} else {
item.mcStatus.gotoAndStop("fRojo");
}
} else {
item.mcStatus.gotoAndStop("fIgnore");
}
item.mcRank.gotoAndStop(datos.rank);
};
var aux = new Array();
var idxMatch = gMatchs.find("idMatch", rg.idMatch);
var j = 0;
while (j < gMatchs[idxMatch].users.length) {
if (((idx = gUsers.find("idUser", gMatchs[idxMatch].users[j]))) > -1) {
aux.push(gUsers[idx]);
}
j++;
}
var j = 0;
while (j < gMatchs[idxMatch].spectators.length) {
if (((idx = gUsers.find("idUser", gMatchs[idxMatch].spectators[j]))) > -1) {
if ((gUsers[idx].type != 1) && (gUsers[idx].type != 4)) {
aux.push(gUsers[idx]);
}
}
j++;
}
mcListaUsuariosPartida.lstUsuarios.dataProvider = aux.clone();
mcListaUsuariosSala.lstUsuarios.onRenderRow = function (item, datos) {
item.txtUserName.text = datos.userName;
item.txtUserName.textColor = ((datos.sex == "M") ? 11356122 : 207296);
if ((datos.type == 0) || (datos.type == 4)) {
item.mcStatus.gotoAndStop("fModerator");
} else if (_global.gIgnores.find("", datos.userName) == -1) {
if (datos.idMatch < 0) {
item.mcStatus.gotoAndStop("fVerde");
} else if (datos.lookMatch) {
item.mcStatus.gotoAndStop("fAmarillo");
} else {
item.mcStatus.gotoAndStop("fRojo");
}
} else {
item.mcStatus.gotoAndStop("fIgnore");
}
item.mcRank.gotoAndStop(datos.rank);
};
mcListaUsuariosSala.lstUsuarios.removeAll();
var len = gUsers.length;
var i = 0;
while (i < len) {
if ((gUsers[i].visible || (_global.rg.type == 0)) || (_global.rg.type == 4)) {
mcListaUsuariosSala.lstUsuarios.addItem(gUsers[i].clone());
}
i++;
}
mcListaUsuariosAmigos.lstAmigos.onRenderRow = function (item, datos) {
item.txtUserName.text = datos.userName;
item.txtUserName.textColor = ((datos.sex == "M") ? 16098047 : 4604081);
if (datos.online) {
item.mcStatus.gotoAndStop("fOnline");
} else {
item.mcStatus.gotoAndStop("fOffline");
}
item.mcRank.gotoAndStop(datos.rank);
};
mcListaUsuariosAmigos.lstAmigos.dataProvider = rg.friendList.clone();
stop();
var newTab = false;
var THIS = this;
btnLeft._visible = false;
btnRight._visible = false;
btnClose._visible = false;
txtIn.text = "";
tab.onChange = function (index, obj) {
if (this.tabs[index].label == "Partida") {
THIS.btnClose._visible = false;
} else {
THIS.btnClose._visible = (index ? true : false);
}
var _local2 = 0;
while (_local2 < this.tabs.length) {
THIS["mc" + this.tabs[_local2].label]._visible = this.tabs[_local2].selected;
_local2++;
}
if (!THIS.newTab) {
Selection.setFocus(txtIn);
}
THIS.newTab = false;
};
tab.onButtonChange = function (left, right) {
btnLeft._visible = left;
btnRight._visible = right;
Selection.setFocus(txtIn);
};
tab.onDelTab = function (index, obj) {
THIS["mc" + obj.label].removeMovieClip();
};
function Enviar() {
if (txtIn.text.length > 0) {
var _local7 = "00AAFF";
var _local3 = txtIn.text.split(String.fromCharCode(13)).join("");
var _local2 = tab.tabs[tab.selected];
if (_local2.label == "Sala") {
rg.sendObjRoom({fn:"onSendChatRoom", msg:_local3, color:_global.gColor});
} else if (_local2.label == "Partida") {
rg.sendObjMatch({fn:"onSendChatMatch", msg:_local3, color:_global.gColor});
} else {
rg.sendObjUser({fn:"onSendChatUser", idUser:_local2.idUser, userName:_local2.label, serverID:_local2.serverID, codservidor:_local2.codservidor, msg:_local3, color:_global.gColor});
}
}
txtIn.text = "";
}
function Enter() {
if (_global.gFlood.idFSecond > -1) {
return(undefined);
}
if (!_global.rutaChat._visible) {
return(undefined);
}
if ((Key.getCode() == 13) || (_global.gFlood.swBtnEnviar)) {
_global.gFlood.swBtnEnviar = false;
if (!_global.gFlood.numMsg) {
_global.gFlood.oldTimer = getTimer();
}
_global.gFlood.timeAcu = _global.gFlood.timeAcu + (getTimer() - _global.gFlood.oldTimer);
_global.gFlood.numMsg++;
_global.gFlood.oldTimer = getTimer();
if (_global.gFlood.timeAcu < _global.gFlood.floodTime) {
if (_global.gFlood.numMsg > _global.gFlood.maxNumMsg) {
if (_global.gFlood.idFSecond < 0) {
_global.gFlood.sec = _global.gFlood.punishment;
_global.gFlood.second();
_global.gFlood.idFSecond = setInterval(_global.gFlood.second, _global.gFlood.inc * 1000);
} else {
_global.gFlood.sec = _global.gFlood.sec + _global.gFlood.punishment;
}
} else {
Enviar();
}
} else {
_global.gFlood.numMsg = (_global.gFlood.timeAcu = 0);
Enviar();
}
}
}
txtIn.restrict = "^>";
keyLst.onKeyUp = Enter;
Instance of Symbol 1639 MovieClip [zTab] "tab" in Symbol 1975 MovieClip [mcChatWindow] Frame 1
//component parameters
onClipEvent (construct) {
bgAlpha = 100;
bgColor = 16711680 /* 0xFF0000 */;
data = "";
skin = "_skinTabChatGame";
visibleTabs = 5;
}
Instance of Symbol 439 MovieClip [zButton] "btnClose" in Symbol 1975 MovieClip [mcChatWindow] Frame 1
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "radioGroup";
label = "X";
selected = false;
skin = "_skinChatTabClose";
type = "Button";
}
on (release) {
this._onRelease();
_parent.tab.delTabSelected();
}
Instance of Symbol 439 MovieClip [zButton] "btnLeft" in Symbol 1975 MovieClip [mcChatWindow] Frame 1
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "radioGroup";
label = "<";
selected = false;
skin = "_skinChatTabNext";
type = "Button";
}
on (release) {
this._onRelease();
_parent.tab.prevTab();
}
Instance of Symbol 439 MovieClip [zButton] "btnRight" in Symbol 1975 MovieClip [mcChatWindow] Frame 1
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "radioGroup";
label = ">";
selected = false;
skin = "_skinChatTabNext";
type = "Button";
}
on (release) {
this._onRelease();
_parent.tab.nextTab();
}
Instance of Symbol 439 MovieClip [zButton] in Symbol 1975 MovieClip [mcChatWindow] Frame 1
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "radioGroup";
label = "Aceptar";
selected = false;
skin = "_skinChatTabClose";
type = "Button";
}
on (release) {
this._onRelease();
_parent._visible = false;
_parent._parent.cfci.start();
}
Instance of Symbol 439 MovieClip [zButton] "btnEnviar" in Symbol 1975 MovieClip [mcChatWindow] Frame 1
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "radioGroup";
label = "Aceptar";
selected = false;
skin = "_skinButtonOK";
type = "Button";
}
on (rollOver, dragOver) {
var THIS = this;
var wait = function () {
THIS.mcToolTip = _root.mcChatWindow.attachMovie("mcToolTips", "mcToolTip", 100);
THIS.mcToolTip.gotoAndStop(THIS._name.toString());
THIS.onMouseMove = function () {
THIS.mcToolTip._x = (_root.mcChatWindow._xmouse - (THIS.mcToolTip._width / 2)) - 40;
THIS.mcToolTip._y = _root.mcChatWindow._ymouse - THIS.mcToolTip._height;
updateAfterEvent();
};
THIS.onMouseMove();
};
tmo.clearInterval(this.idWait);
this.idWait = tmo.setTimeout(wait, 800);
this.onMouseMove();
}
on (releaseOutside, rollOut, dragOut) {
tmo.clearInterval(this.idWait);
delete this.onMouseMove;
this.mcToolTip.removeMovieClip();
}
on (release) {
this._onRelease();
tmo.clearInterval(this.idWait);
this.mcToolTip.removeMovieClip();
_global.gFlood.swBtnEnviar = true;
_parent.Enter();
Selection.setFocus(_parent.txtIn);
}
Instance of Symbol 439 MovieClip [zButton] "chkPrivates" in Symbol 1975 MovieClip [mcChatWindow] Frame 1
//component parameters
onClipEvent (construct) {
_useHandCursor = true;
data = "";
enabled = true;
groupName = "";
label = "";
selected = true;
skin = "skinCheckPrivate";
type = "Check";
}
onClipEvent (load) {
if (_global.gOptions.data.privates != undefined) {
this.selected = _global.gOptions.data.privates;
} else {
this.selected = true;
}
}
onClipEvent (load) {
function __f_change(eventObj) {
_global.gOptions.data.privates = this.selected;
_global.gOptions.flush();
}
this.addEventListener("change", __f_change);
}
on (rollOver, dragOver) {
var THIS = this;
var wait = function () {
THIS.mcToolTip = _root.mcConectado.attachMovie("mcToolTips", "mcToolTip", 100);
THIS.mcToolTip.gotoAndStop(THIS._name.toString());
THIS.onMouseMove = function () {
THIS.mcToolTip._x = (_root._xmouse - (THIS.mcToolTip._width / 2)) - 50;
THIS.mcToolTip._y = _root._ymouse - THIS.mcToolTip._height;
updateAfterEvent();
};
THIS.onMouseMove();
};
tmo.clearInterval(this.idWait);
this.idWait = tmo.setTimeout(wait, 800);
}
on (releaseOutside, rollOut, dragOut) {
tmo.clearInterval(this.idWait);
delete this.onMouseMove;
this.mcToolTip.removeMovieClip();
}