Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package MvnChatV2_Flash_10_3_fla
- {
- import flash.display.*;
- import flash.events.*;
- import flash.external.*;
- import flash.net.*;
- import flash.utils.*;
- dynamic public class MainTimeline extends MovieClip
- {
- public var MvnSocket:XMLSocket;
- public var isReconnecting:Boolean;
- public var isConnected:Boolean;
- public var isJoined:Boolean;
- public var MvnServer:Object;
- public var MvnPort:Object;
- public var MvnUser:Object;
- public var MvnPass:Object;
- public var MvnChan:Object;
- public var MvnMask:Object;
- public var MvnLevel:Object;
- public var MvnColor:Object;
- public var MvnVip:Object;
- public var isGuest:Object;
- public var MvnReconnectCnt:int;
- public var MvnReconnectTimer:Timer;
- public var MvnQs:Object;
- public var mvnQs:Object;
- public var qsSplt:Object;
- public function MainTimeline()
- {
- addFrameScript(0, this.frame1);
- return;
- }// end function
- public function MvnSplit(param1:String, param2:String, param3:String)
- {
- var _loc_4:* = "";
- var _loc_5:* = "";
- var _loc_6:* = "";
- var _loc_7:* = "";
- try
- {
- _loc_4 = param3.split(param1);
- _loc_5 = _loc_4[1];
- _loc_6 = _loc_5.split(param2);
- _loc_7 = _loc_6[0];
- }
- catch (error)
- {
- }
- return _loc_7;
- }// end function
- public function MvnExtCallback(param1:String, param2:String)
- {
- try
- {
- ExternalInterface.call(param1, param2).toString();
- }
- catch (error)
- {
- }
- return;
- }// end function
- public function vtrace(param1:String)
- {
- trace("!! ==> VTraceChat: " + param1);
- ExternalInterface.call("console.log", "VTraceChat: " + param1);
- return;
- }// end function
- public function Connect() : void
- {
- try
- {
- this.isConnected = true;
- this.vtrace(this.MvnServer + ":" + this.MvnPort);
- this.MvnSocket.connect(this.MvnServer, this.MvnPort);
- this.MvnSocket.addEventListener(Event.CONNECT, this.HandleMvnSocket);
- this.MvnSocket.addEventListener(Event.CLOSE, this.HandleMvnSocket);
- this.MvnSocket.addEventListener(IOErrorEvent.IO_ERROR, this.HandleMvnSocket);
- this.MvnSocket.addEventListener(DataEvent.DATA, this.HandleMvnData);
- this.MvnSocket.addEventListener(SecurityErrorEvent.SECURITY_ERROR, this.HandleMvnSecurityError);
- this.MvnSocket.addEventListener(ProgressEvent.SOCKET_DATA, this.HandleMvnSocketData);
- }
- catch (error)
- {
- trace("Connect error: " + error);
- }
- return;
- }// end function
- public function Send(param1:String) : void
- {
- var theData:* = param1;
- try
- {
- if (theData != "")
- {
- this.MvnSocket.send(theData + "\n\n\n\n");
- trace("SENT >> " + theData);
- }
- }
- catch (error)
- {
- trace("SEND ERROR >>> " + error);
- }
- return;
- }// end function
- public function sendChat(param1:String)
- {
- this.Send("CHAT " + this.MvnChan + " :" + param1);
- ExternalInterface.call("ChatV2.Draw", this.MvnUser, this.MvnColor, this.MvnLevel, this.MvnVip, param1);
- return;
- }// end function
- public function sendVaughnChat(param1:String)
- {
- this.Send("MVN VAUGHN <vn:" + this.MvnUser + ">" + param1 + "</vn>");
- ExternalInterface.call("ChatV2vaughn.Draw", this.MvnUser, this.MvnColor, param1);
- return;
- }// end function
- public function doViewBans()
- {
- this.Send("MVN BANS " + this.MvnChan);
- return;
- }// end function
- public function doViewMods()
- {
- this.Send("MVN MODS " + this.MvnChan);
- return;
- }// end function
- public function doUnbanall()
- {
- this.Send("MVN UNBANALL " + this.MvnChan);
- return;
- }// end function
- public function doUnmodall()
- {
- this.Send("MVN UNMODALL " + this.MvnChan);
- return;
- }// end function
- public function doRandom()
- {
- this.Send("MVN RANDOM " + this.MvnChan);
- return;
- }// end function
- public function doGuestOn()
- {
- this.Send("MVN GUESTON " + this.MvnChan);
- return;
- }// end function
- public function doGuestOff()
- {
- this.Send("MVN GUESTOFF " + this.MvnChan);
- return;
- }// end function
- public function doInvite()
- {
- this.Send("MVN INVITE " + this.MvnChan);
- return;
- }// end function
- public function doInviteCohost(param1)
- {
- this.Send("MVN COHOST " + this.MvnChan + " " + param1);
- return;
- }// end function
- public function doMod(param1)
- {
- this.Send("MVN MOD " + this.MvnChan + " " + param1);
- return;
- }// end function
- public function doUnmod(param1)
- {
- this.Send("MVN UNMOD " + this.MvnChan + " " + param1);
- return;
- }// end function
- public function doRegular(param1)
- {
- this.Send("MVN REGULAR " + this.MvnChan + " " + param1);
- return;
- }// end function
- public function doUnregular(param1)
- {
- this.Send("MVN UNREGULAR " + this.MvnChan + " " + param1);
- return;
- }// end function
- public function doDrop(param1)
- {
- this.Send("MVN DROP " + param1);
- return;
- }// end function
- public function doGlobalBan(param1)
- {
- this.Send("MVN GBAN " + param1);
- return;
- }// end function
- public function doGlobalMute(param1)
- {
- this.Send("MVN GMUTE " + param1);
- return;
- }// end function
- public function doPermBan(param1)
- {
- this.Send("MVN PBAN " + param1);
- return;
- }// end function
- public function delGlobalBan(param1)
- {
- this.Send("MVN DELGBAN " + param1);
- return;
- }// end function
- public function delGlobalMute(param1)
- {
- this.Send("MVN DELGMUTE " + param1);
- return;
- }// end function
- public function delPermBan(param1)
- {
- this.Send("MVN DELPBAN " + param1);
- return;
- }// end function
- public function doSlowMode()
- {
- this.Send("MVN SLOWON " + this.MvnChan);
- return;
- }// end function
- public function doSlowModeOff()
- {
- this.Send("MVN SLOWOFF " + this.MvnChan);
- return;
- }// end function
- public function doActMode()
- {
- this.Send("MVN ACTON " + this.MvnChan);
- return;
- }// end function
- public function doActModeOff()
- {
- this.Send("MVN ACTOFF " + this.MvnChan);
- return;
- }// end function
- public function doGlobalMessage(param1)
- {
- this.Send("MVN GLOBAL " + param1);
- return;
- }// end function
- public function doGlobalMessageVL(param1)
- {
- this.Send("MVN GLOBALVL " + param1);
- return;
- }// end function
- public function doGlobalMessageBTV(param1)
- {
- this.Send("MVN GLOBALBTV " + param1);
- return;
- }// end function
- public function doGlobalMessageIGB(param1)
- {
- this.Send("MVN GLOBALIGB " + param1);
- return;
- }// end function
- public function doBan(param1)
- {
- this.Send("MVN BAN " + this.MvnChan + " " + param1);
- return;
- }// end function
- public function doMute(param1)
- {
- this.Send("MVN MUTE " + this.MvnChan + " " + param1);
- return;
- }// end function
- public function doKick(param1)
- {
- this.Send("MVN KICK " + this.MvnChan + " " + param1);
- return;
- }// end function
- public function doPurge(param1)
- {
- this.Send("MVN PURGE " + this.MvnChan + " " + param1);
- return;
- }// end function
- public function doUnban(param1)
- {
- this.Send("MVN UNBAN " + this.MvnChan + " " + param1);
- return;
- }// end function
- public function doUnmute(param1)
- {
- this.Send("MVN UNMUTE " + this.MvnChan + " " + param1);
- return;
- }// end function
- public function doClear()
- {
- this.Send("MVN CLEAR " + this.MvnChan);
- return;
- }// end function
- public function doChatters()
- {
- this.Send("MVN CHATTERS " + this.MvnChan);
- return;
- }// end function
- public function doColor(param1)
- {
- this.MvnColor = param1;
- this.Send("MVN COLOR " + param1);
- return;
- }// end function
- public function SendIM(param1:String, param2:String)
- {
- this.Send("MVN IM <vn:" + param1 + ">" + param2 + "</vn>");
- return;
- }// end function
- public function imOn()
- {
- this.Send("MVN IMSTATUS <vn:" + this.MvnMask + ">1</vn>");
- return;
- }// end function
- public function imOff()
- {
- this.Send("MVN IMSTATUS <vn:" + this.MvnMask + ">0</vn>");
- return;
- }// end function
- public function doUserLevel(param1)
- {
- this.MvnLevel = param1;
- return;
- }// end function
- public function doUserVip(param1)
- {
- this.MvnVip = param1;
- return;
- }// end function
- public function getServer(param1:String)
- {
- var chatServers:*;
- var user_char_1:*;
- var chanLength:*;
- var user_char_2:*;
- var serversLength:*;
- var chanName:* = param1;
- if (chanName == "#vl-vtest")
- {
- return "localhost";
- }
- try
- {
- chatServers;
- user_char_1 = chanName.charCodeAt(0);
- chanLength = (chanName.length - 1);
- user_char_2 = chanName.charCodeAt(chanLength);
- serversLength = chatServers.length;
- return chatServers[(user_char_1 + user_char_2) % serversLength];
- }
- catch (e)
- {
- return "error";
- }
- return;
- }// end function
- public function getColor(param1:String)
- {
- var user_colors:*;
- var user_char_1:*;
- var username_length:*;
- var user_char_2:*;
- var colors_length:*;
- var username:* = param1;
- try
- {
- user_colors;
- user_char_1 = username.charCodeAt(0);
- username_length = (username.length - 1);
- user_char_2 = username.charCodeAt(username_length);
- colors_length = user_colors.length;
- return user_colors[(user_char_1 + user_char_2) % colors_length];
- }
- catch (e)
- {
- return "Black";
- }
- return;
- }// end function
- public function HandleMvnSocket(param1) : void
- {
- var Event:* = param1;
- try
- {
- switch(Event.type)
- {
- case "ioError":
- {
- this.vtrace("ioError");
- this.noticeDisconnect();
- this.isJoined = false;
- break;
- }
- case "connect":
- {
- this.isJoined = false;
- if (this.isGuest)
- {
- this.Send("MVN AUTH guest guest");
- }
- else
- {
- this.Send("MVN AUTH " + this.MvnUser + " " + this.MvnPass);
- }
- this.isConnected = true;
- this.MvnReconnectTimer.stop();
- this.MvnReconnectCnt = 1;
- if (this.isReconnecting)
- {
- trace("Already Reconnecting");
- }
- this.isReconnecting = false;
- break;
- }
- case "close":
- {
- this.vtrace("Disconnected");
- this.isJoined = false;
- this.isConnected = false;
- if (!this.isReconnecting)
- {
- this.Reconnect();
- }
- this.isReconnecting = true;
- this.noticeDisconnect();
- break;
- }
- default:
- {
- this.vtrace("Socket Error: " + Event.type);
- this.isJoined = false;
- this.noticeDisconnect();
- break;
- break;
- }
- }
- }
- catch (error)
- {
- vtrace("HandleSocket error: " + error);
- }
- return;
- }// end function
- public function HandleMvnData(param1:String) : void
- {
- var _loc_4:* = undefined;
- var _loc_5:* = undefined;
- var _loc_6:* = undefined;
- var _loc_7:* = undefined;
- var _loc_8:* = undefined;
- var _loc_9:* = undefined;
- var _loc_10:* = undefined;
- var _loc_11:* = null;
- var _loc_12:* = null;
- var _loc_13:* = null;
- var _loc_14:* = null;
- var _loc_15:* = null;
- var _loc_16:* = null;
- var _loc_17:* = undefined;
- var _loc_18:* = undefined;
- var _loc_19:* = undefined;
- var _loc_20:* = undefined;
- var _loc_21:* = undefined;
- var _loc_22:* = undefined;
- var _loc_23:* = undefined;
- var _loc_24:* = undefined;
- var _loc_25:* = undefined;
- var _loc_26:* = undefined;
- var _loc_27:* = undefined;
- var _loc_28:* = undefined;
- var _loc_29:* = undefined;
- var _loc_30:* = undefined;
- var _loc_31:* = undefined;
- var _loc_32:* = undefined;
- var _loc_33:* = undefined;
- var _loc_34:* = undefined;
- var _loc_35:* = undefined;
- var _loc_36:* = undefined;
- var _loc_37:* = undefined;
- var _loc_38:* = undefined;
- var _loc_39:* = undefined;
- var _loc_40:* = undefined;
- var _loc_41:* = undefined;
- var _loc_42:* = undefined;
- var _loc_43:* = null;
- var _loc_44:* = null;
- var _loc_45:* = undefined;
- var _loc_46:* = undefined;
- var _loc_47:* = undefined;
- var _loc_48:* = undefined;
- var _loc_49:* = undefined;
- var _loc_50:* = undefined;
- param1 = this.MvnSplit("data=\"", "\"]", param1);
- var _loc_2:* = param1.split("\n");
- var _loc_3:* = 0;
- while (_loc_3 <= (_loc_2.length - 1))
- {
- _loc_4 = _loc_2[_loc_3];
- if (_loc_4 != "")
- {
- this.vtrace("RECV << " + _loc_4);
- try
- {
- _loc_5 = _loc_4.split(" ");
- _loc_6 = _loc_5[0];
- _loc_7 = _loc_5[1];
- if (_loc_6 == "MVN")
- {
- _loc_8 = _loc_5[2];
- _loc_9 = _loc_5[3];
- _loc_10 = "";
- try
- {
- _loc_10 = _loc_5[4];
- }
- catch (e)
- {
- }
- if (_loc_7 == "BAN")
- {
- this.noticeStatus(_loc_10 + " banned " + _loc_9);
- this.ExtBan(_loc_9);
- this.ExtPurge(_loc_9);
- }
- else if (_loc_7 == "UNBAN")
- {
- this.noticeStatus(_loc_10 + " unbanned " + _loc_9);
- }
- else if (_loc_7 == "MUTE")
- {
- this.noticeStatus(_loc_10 + " muted " + _loc_9);
- this.ExtPurge(_loc_9);
- }
- else if (_loc_7 == "UNMUTE")
- {
- this.noticeStatus(_loc_10 + " unmuted " + _loc_9);
- }
- else if (_loc_7 == "MOD")
- {
- this.noticeStatus(_loc_10 + " gave Mod status to " + _loc_9);
- this.ExtDoMod(_loc_9, "black");
- }
- else if (_loc_7 == "UNMOD")
- {
- this.noticeStatus(_loc_10 + " took Mod status from " + _loc_9);
- this.ExtDoUnMod(_loc_9);
- }
- else if (_loc_7 == "REGULAR")
- {
- this.noticeStatus(_loc_10 + " gave Regular status to " + _loc_9);
- this.ExtDoRegular(_loc_9);
- }
- else if (_loc_7 == "UNREGULAR")
- {
- this.noticeStatus(_loc_10 + " took Regular status from " + _loc_9);
- this.ExtDoUnRegular(_loc_9);
- }
- else if (_loc_7 == "KICK")
- {
- this.noticeStatus(_loc_10 + " kicked " + _loc_9 + " from chat");
- this.ExtPurge(_loc_9);
- }
- else if (_loc_7 == "PURGE")
- {
- this.noticeStatus(_loc_10 + " purged " + _loc_9);
- this.ExtPurge(_loc_9);
- }
- else if (_loc_7 == "PBAN")
- {
- this.noticeStatus(_loc_8 + " permanently banned " + _loc_9 + " from chat");
- }
- else if (_loc_7 == "GMUTE")
- {
- this.noticeStatus(_loc_8 + " globally muted " + _loc_9 + " in chat");
- }
- else if (_loc_7 == "GBAN")
- {
- this.noticeStatus(_loc_8 + " globally banned " + _loc_9 + " from chat");
- }
- else if (_loc_7 == "DELPBAN")
- {
- this.noticeStatus(_loc_8 + " lifted permanent ban on " + _loc_9 + " from chat");
- }
- else if (_loc_7 == "DELGMUTE")
- {
- this.noticeStatus(_loc_8 + " lifted global mute on " + _loc_9 + " in chat");
- }
- else if (_loc_7 == "DELGBAN")
- {
- this.noticeStatus(_loc_8 + " lifted global ban on " + _loc_9 + " from chat");
- }
- else if (_loc_7 == "CLEAR")
- {
- this.ExtClear();
- this.noticeStatus("Chat cleared by " + _loc_9);
- }
- else if (_loc_7 == "GLOBAL")
- {
- _loc_11 = this.MvnSplit("MVN GLOBAL ", "<EOF>", _loc_4 + "<EOF>");
- trace("GLOBAL MESSAGE: " + _loc_11);
- trace("INC: " + _loc_4);
- this.ExtGlobal(_loc_11);
- }
- else if (_loc_7 == "GLOBALVL")
- {
- _loc_12 = this.MvnSplit("MVN GLOBALVL ", "<EOF>", _loc_4 + "<EOF>");
- trace("GLOBAL MESSAGE: " + _loc_12);
- trace("INC: " + _loc_4);
- this.ExtGlobalVL(_loc_12);
- }
- else if (_loc_7 == "GLOBALBTV")
- {
- _loc_13 = this.MvnSplit("MVN GLOBALBTV ", "<EOF>", _loc_4 + "<EOF>");
- trace("GLOBAL MESSAGE: " + _loc_13);
- trace("INC: " + _loc_4);
- this.ExtGlobalBTV(_loc_13);
- }
- else if (_loc_7 == "GLOBALIGB")
- {
- _loc_14 = this.MvnSplit("MVN GLOBALIGB ", "<EOF>", _loc_4 + "<EOF>");
- trace("GLOBAL MESSAGE: " + _loc_14);
- trace("INC: " + _loc_4);
- this.ExtGlobalIGB(_loc_14);
- }
- else if (_loc_7 == "NOTICE")
- {
- _loc_15 = this.MvnSplit("MVN NOTICE ", "<EOF>", _loc_4 + "<EOF>");
- this.noticeStatus(_loc_15);
- }
- else if (_loc_7 == "INVITE")
- {
- _loc_16 = this.MvnSplit("MVN INVITE ", "<EOF>", _loc_4 + "<EOF>");
- this.noticeInvite(_loc_16);
- }
- else if (_loc_7 == "GUESTON")
- {
- this.ExtGuestOn();
- }
- else if (_loc_7 == "GUESTOFF")
- {
- this.ExtGuestOff();
- }
- else if (_loc_7 == "COHOST")
- {
- this.ExtCohostInvite(_loc_8, _loc_9);
- }
- else if (_loc_7 == "SLOWON")
- {
- this.ExtSlowOn();
- }
- else if (_loc_7 == "SLOWOFF")
- {
- this.ExtSlowOff();
- }
- else if (_loc_7 == "ACTON")
- {
- this.ExtActOn();
- }
- else if (_loc_7 == "ACTOFF")
- {
- this.ExtActOff();
- }
- else if (_loc_7 == "CHATTERS")
- {
- _loc_17 = _loc_9.split(",");
- if (_loc_8 != "")
- {
- _loc_18 = 0;
- while (_loc_18 <= (_loc_17.length - 1))
- {
- _loc_19 = _loc_17[_loc_18];
- if (_loc_19 != "")
- {
- _loc_20 = _loc_19.split(";");
- _loc_21 = _loc_20[0];
- _loc_22 = _loc_20[1];
- _loc_23 = _loc_20[2];
- _loc_24 = _loc_20[3];
- if (_loc_22 == "" || _loc_22 == undefined)
- {
- _loc_22 = this.getColor(_loc_21);
- }
- this.vtrace(_loc_21 + ": " + _loc_22 + " = " + _loc_23);
- this.drawChatter(_loc_21, _loc_22, _loc_23, _loc_24);
- }
- _loc_18 = _loc_18 + 1;
- }
- }
- }
- else if (_loc_7 == "CHATTERSEND")
- {
- this.ExtChattersLoaded();
- }
- else if (_loc_7 == "CLOSE")
- {
- this.ExtRefresh();
- }
- else if (_loc_7 == "DMCA")
- {
- this.ExtRefresh();
- }
- else if (_loc_7 == "SUB")
- {
- this.ExtSubscriber(_loc_9);
- }
- else if (_loc_7 == "FOLLOW")
- {
- this.ExtFollow(_loc_9);
- }
- else if (_loc_7 == "DONATE")
- {
- this.ExtDonate(_loc_9, "9.00 USD", "Something something Marvin something something Spago");
- }
- else if (_loc_7 == "COMMERCIAL")
- {
- }
- else if (_loc_7 == "IPBAN")
- {
- this.ExtRefresh();
- }
- else if (_loc_7 == "SLOWNOTICE")
- {
- this.noticeStatus("Slow Mode is Enabled: Wait before you type again");
- }
- else if (_loc_7 == "TOOFAST")
- {
- this.noticeStatus("Whoa! Slow your role, breh.");
- }
- else if (_loc_7 == "VAUGHN")
- {
- _loc_25 = this.MvnSplit("<vn:", ">", _loc_4);
- _loc_26 = this.MvnSplit("<vn:" + _loc_25 + ">", "</vn>", _loc_4);
- if (_loc_26 == "")
- {
- _loc_26 = this.MvnSplit("<vn:" + _loc_25.toLowerCase() + ">", "</vn>", _loc_4);
- }
- this.ExtVaughn("vaughn", "", _loc_26);
- }
- else if (_loc_7 == "IM")
- {
- _loc_27 = this.MvnSplit("<vn:", ">", _loc_4);
- _loc_28 = this.MvnSplit("<vn:" + _loc_27 + ">", "</vn>", _loc_4);
- if (_loc_28 == "")
- {
- _loc_28 = this.MvnSplit("<vn:" + _loc_27.toLowerCase() + ">", "</vn>", _loc_4);
- }
- this.ExtIM(_loc_27, _loc_28);
- }
- else if (_loc_7 == "IMSTATUS")
- {
- _loc_29 = this.MvnSplit("<vn:", ">", _loc_4);
- _loc_30 = this.MvnSplit("<vn:" + _loc_29 + ">", "</vn>", _loc_4);
- if (_loc_30 == 0)
- {
- this.ExtIMstatusOff();
- }
- else if (_loc_30 == 1)
- {
- this.ExtIMstatusOn();
- }
- }
- else if (_loc_7 == "IMERROR")
- {
- _loc_31 = this.MvnSplit("<vn:", ">", _loc_4);
- _loc_32 = this.MvnSplit("<vn:" + _loc_31 + ">", "</vn>", _loc_4);
- if (_loc_31 == "IMOFF")
- {
- this.ExtIMnotice(_loc_32, _loc_32 + " has IM\'s turned off!");
- }
- else if (_loc_31 == "TYPETOOFAST")
- {
- this.ExtIMnotice(_loc_32, "You\'re typing too fast!");
- }
- }
- }
- else if (_loc_6 == "ACK")
- {
- this.Send("JOIN " + this.MvnChan);
- this.Connected(this.MvnUser);
- }
- else if (_loc_4 == "PING")
- {
- this.Send("PONG");
- }
- else
- {
- _loc_33 = _loc_4.split(" ");
- _loc_34 = _loc_33[0];
- _loc_35 = _loc_34.split(";");
- _loc_36 = _loc_35[0];
- _loc_37 = _loc_35[1];
- _loc_38 = _loc_35[2];
- _loc_39 = _loc_35[3];
- _loc_40 = _loc_33[1];
- _loc_41 = _loc_33[2];
- _loc_42 = _loc_33[3];
- if (_loc_37 == -2)
- {
- _loc_37 = this.getColor(_loc_36);
- }
- if (_loc_40 == "CHAT")
- {
- _loc_43 = this.MvnSplit(_loc_41 + " :", "<EOF>", _loc_4 + "<EOF>");
- this.DrawChat(_loc_36, _loc_37, _loc_38, _loc_39, _loc_43);
- }
- else if (_loc_40 == "HISTORY")
- {
- _loc_44 = this.MvnSplit(_loc_42 + " :", "<EOF>", _loc_4 + "<EOF>");
- this.DrawHistory(_loc_36, _loc_37, _loc_38, _loc_39, _loc_41, _loc_44);
- }
- else if (_loc_40 == "JOIN")
- {
- _loc_45 = _loc_42.split(";");
- _loc_46 = _loc_45[0];
- _loc_47 = _loc_45[1];
- _loc_48 = _loc_45[2];
- this.drawChatter(_loc_36, _loc_37, _loc_38, _loc_39);
- if (_loc_36.toLowerCase() == this.MvnUser.toLowerCase())
- {
- this.MvnUser = _loc_36;
- this.MvnColor = _loc_37;
- this.MvnLevel = _loc_38;
- this.MvnVip = _loc_39;
- if (!this.isJoined)
- {
- this.isJoined = true;
- this.ExtLoaded(_loc_36, _loc_37, _loc_38, this.MvnChan);
- if (_loc_46 == 1)
- {
- this.ExtGuestOn();
- }
- if (_loc_47 == 1)
- {
- this.ExtSlowOn();
- }
- if (_loc_48 == 1)
- {
- this.ExtActOn();
- }
- }
- }
- else if (this.MvnUser == "guest")
- {
- this.MvnUser = _loc_36;
- this.MvnColor = _loc_37;
- this.MvnLevel = _loc_38;
- this.isGuest = true;
- if (!this.isJoined)
- {
- this.isJoined = true;
- this.ExtLoaded(_loc_36, _loc_37, _loc_38, this.MvnChan);
- if (_loc_46 == 1)
- {
- this.ExtGuestOn();
- }
- if (_loc_47 == 1)
- {
- this.ExtSlowOn();
- }
- if (_loc_48 == 1)
- {
- this.ExtActOn();
- }
- }
- }
- }
- else if (_loc_40 == "PART")
- {
- _loc_49 = _loc_41.split(":");
- _loc_50 = _loc_49[1];
- this.eraseChatter(_loc_36, _loc_38, _loc_39);
- }
- }
- }
- catch (e)
- {
- }
- }
- ;
- var _loc_51:* = new catch2;
- e;
- _loc_3 = _loc_3 + 1;
- }
- return;
- }// end function
- public function HandleMvnSocketData(event:ProgressEvent) : void
- {
- trace("socketDataHandler: " + event);
- return;
- }// end function
- public function HandleMvnSecurityError(event:SecurityErrorEvent) : void
- {
- this.vtrace("securityErrorHandler: " + event);
- this.isConnected = false;
- if (!this.isReconnecting)
- {
- this.Reconnect();
- }
- this.isReconnecting = true;
- return;
- }// end function
- public function Reconnect() : void
- {
- this.MvnReconnectTimer.addEventListener(TimerEvent.TIMER, this.doReconnect);
- this.MvnReconnectTimer.start();
- return;
- }// end function
- public function doReconnect(event:TimerEvent) : void
- {
- if (!this.isConnected)
- {
- this.noticeStatus("Reconnect Attempt #" + this.MvnReconnectCnt);
- this.Connect();
- var _loc_2:* = this;
- var _loc_3:* = this.MvnReconnectCnt + 1;
- _loc_2.MvnReconnectCnt = _loc_3;
- }
- return;
- }// end function
- public function Connected(param1:String)
- {
- ExternalInterface.call("ChatV2.Connected", param1);
- return;
- }// end function
- public function DrawChat(param1, param2, param3, param4, param5)
- {
- if (param2 == "" || param2 == undefined)
- {
- param2 = this.getColor(param1);
- }
- ExternalInterface.call("ChatV2.Draw", param1, param2, param3, param4, param5);
- return;
- }// end function
- public function DrawHistory(param1, param2, param3, param4, param5, param6)
- {
- if (param2 == "" || param2 == undefined)
- {
- param2 = this.getColor(param1);
- }
- ExternalInterface.call("ChatV2.Draw", param1, param2, param3, param4, param6, param5);
- return;
- }// end function
- public function drawChatter(param1:String, param2:String, param3:String, param4:String)
- {
- ExternalInterface.call("ChatV2.DrawChatter", param1, param2, param3, param4);
- return;
- }// end function
- public function eraseChatter(param1:String, param2:String, param3:String)
- {
- ExternalInterface.call("ChatV2.EraseChatter", param1, param2, param3);
- return;
- }// end function
- public function noticeDisconnect()
- {
- ExternalInterface.call("ChatV2.Disconnected");
- return;
- }// end function
- public function noticeWarning(param1)
- {
- ExternalInterface.call("ChatV2.Warning", param1);
- return;
- }// end function
- public function noticeStatus(param1)
- {
- ExternalInterface.call("ChatV2.Status", param1);
- return;
- }// end function
- public function noticeInvite(param1)
- {
- ExternalInterface.call("ChatV2.Notice", param1);
- return;
- }// end function
- public function ExtIM(param1:String, param2:String)
- {
- ExternalInterface.call("doMvnIM.mvnIM", param1, param2, param1);
- return;
- }// end function
- public function ExtIMstatusOn()
- {
- ExternalInterface.call("doMvnIM.MvnIMstatusOn");
- return;
- }// end function
- public function ExtIMstatusOff()
- {
- ExternalInterface.call("doMvnIM.MvnIMstatusOff");
- return;
- }// end function
- public function ExtIMnotice(param1:String, param2:String)
- {
- ExternalInterface.call("doMvnIM.MvnIMnotice", param2, param1);
- return;
- }// end function
- public function ExtPurge(param1:String)
- {
- ExternalInterface.call("ChatV2.Purge", param1);
- return;
- }// end function
- public function ExtBan(param1:String)
- {
- ExternalInterface.call("ChatV2.BanChatter", param1);
- return;
- }// end function
- public function ExtClear()
- {
- ExternalInterface.call("ChatV2.Clear");
- return;
- }// end function
- public function ExtLoaded(param1:String, param2:String, param3:String, param4:String)
- {
- ExternalInterface.call("ChatV2.Loaded", param1, param2, param3, param4);
- return;
- }// end function
- public function ExtChattersLoaded()
- {
- ExternalInterface.call("ChatV2options.loadedChatters");
- return;
- }// end function
- public function ExtGlobal(param1:String)
- {
- ExternalInterface.call("ChatV2.drawGlobal", param1);
- return;
- }// end function
- public function ExtGlobalVL(param1:String)
- {
- ExternalInterface.call("ChatV2.drawGlobalVL", param1);
- return;
- }// end function
- public function ExtGlobalBTV(param1:String)
- {
- ExternalInterface.call("ChatV2.drawGlobalBTV", param1);
- return;
- }// end function
- public function ExtGlobalIGB(param1:String)
- {
- ExternalInterface.call("ChatV2.drawGlobalIGB", param1);
- return;
- }// end function
- public function ExtDoMod(param1:String, param2:String)
- {
- ExternalInterface.call("ChatV2.ChatterMod", param1, param2);
- return;
- }// end function
- public function ExtDoUnMod(param1:String)
- {
- ExternalInterface.call("ChatV2.ChatterUnmod", param1);
- return;
- }// end function
- public function ExtDoRegular(param1:String)
- {
- ExternalInterface.call("ChatV2.ChatterRegular", param1);
- return;
- }// end function
- public function ExtDoUnRegular(param1:String)
- {
- ExternalInterface.call("ChatV2.ChatterUnregular", param1);
- return;
- }// end function
- public function ExtSubscriber(param1:String)
- {
- ExternalInterface.call("ChatV2.newSubscriber", param1);
- return;
- }// end function
- public function ExtFollow(param1:String)
- {
- ExternalInterface.call("ChatV2.newFollow", param1);
- return;
- }// end function
- public function ExtDonate(param1:String, param2:String, param3:String)
- {
- ExternalInterface.call("ChatV2.newDonation", param1, param2, param3);
- return;
- }// end function
- public function ExtGuestOn()
- {
- ExternalInterface.call("ChatV2.setGuestOn");
- return;
- }// end function
- public function ExtGuestOff()
- {
- ExternalInterface.call("ChatV2.setGuestOff");
- return;
- }// end function
- public function ExtSlowOn()
- {
- ExternalInterface.call("ChatV2.setSlowOn");
- return;
- }// end function
- public function ExtSlowOff()
- {
- ExternalInterface.call("ChatV2.setSlowOff");
- return;
- }// end function
- public function ExtActOn()
- {
- ExternalInterface.call("ChatV2.setActivatedOn");
- return;
- }// end function
- public function ExtActOff()
- {
- ExternalInterface.call("ChatV2.setActivatedOff");
- return;
- }// end function
- public function ExtVaughn(param1:String, param2:String, param3:String)
- {
- ExternalInterface.call("ChatV2vaughn.Draw", param1, param2, param3);
- return;
- }// end function
- public function ExtCohostInvite(param1:String, param2:String)
- {
- ExternalInterface.call("ChatV2.CohostInvite", param1, param2);
- return;
- }// end function
- public function ExtRefresh()
- {
- ExternalInterface.call("location.reload", true);
- return;
- }// end function
- function frame1()
- {
- this.MvnSocket = new XMLSocket();
- this.isReconnecting = false;
- this.isConnected = false;
- this.isJoined = false;
- this.MvnServer = "";
- this.MvnPort = 0;
- this.MvnUser = "";
- this.MvnPass = "";
- this.MvnChan = "";
- this.MvnMask = "";
- this.MvnLevel = 0;
- this.MvnColor = "";
- this.MvnVip = 0;
- this.isGuest = false;
- this.MvnReconnectCnt = 1;
- this.MvnReconnectTimer = new Timer(2000, 100);
- this.MvnQs = this.loaderInfo.parameters;
- if (this.MvnQs.u != undefined)
- {
- this.MvnUser = this.MvnQs.u;
- }
- if (this.MvnQs.p != undefined)
- {
- this.MvnUser = this.MvnQs.p;
- }
- if (this.MvnQs.cs != undefined)
- {
- this.MvnServer = this.MvnQs.cs;
- }
- if (this.MvnQs.cp != undefined)
- {
- this.MvnPort = this.MvnQs.cp;
- }
- this.MvnUser = "guest";
- this.MvnPass = "guest";
- this.MvnChan = "#vl-vtest";
- this.mvnQs = this.MvnQs.mvn;
- if (this.mvnQs != undefined)
- {
- this.qsSplt = this.mvnQs.split(";");
- this.MvnChan = "#" + this.qsSplt[0] + "-" + this.qsSplt[1];
- if (this.qsSplt[0] == "vl")
- {
- this.MvnServer = this.getServer(this.MvnChan);
- }
- else
- {
- this.MvnServer = this.qsSplt[2];
- }
- this.MvnUser = this.qsSplt[3];
- this.MvnPass = this.qsSplt[4];
- this.MvnPort = this.qsSplt[5];
- }
- trace("SERVER = " + this.getServer("#vl-notmark"));
- this.Connect();
- ExternalInterface.addCallback("sendChat", this.sendChat);
- ExternalInterface.addCallback("sendVaughnChat", this.sendVaughnChat);
- ExternalInterface.addCallback("doUserLevel", this.doUserLevel);
- ExternalInterface.addCallback("doUserVip", this.doUserVip);
- ExternalInterface.addCallback("doBan", this.doBan);
- ExternalInterface.addCallback("doMute", this.doMute);
- ExternalInterface.addCallback("doKick", this.doKick);
- ExternalInterface.addCallback("doPurge", this.doPurge);
- ExternalInterface.addCallback("doUnban", this.doUnban);
- ExternalInterface.addCallback("doUnmute", this.doUnmute);
- ExternalInterface.addCallback("doClear", this.doClear);
- ExternalInterface.addCallback("doChatters", this.doChatters);
- ExternalInterface.addCallback("doColor", this.doColor);
- ExternalInterface.addCallback("SendIM", this.SendIM);
- ExternalInterface.addCallback("imOn", this.imOn);
- ExternalInterface.addCallback("imOff", this.imOff);
- ExternalInterface.addCallback("doMod", this.doMod);
- ExternalInterface.addCallback("doUnmod", this.doUnmod);
- ExternalInterface.addCallback("doRegular", this.doRegular);
- ExternalInterface.addCallback("doUnregular", this.doUnregular);
- ExternalInterface.addCallback("doGlobalBan", this.doGlobalBan);
- ExternalInterface.addCallback("delGlobalBan", this.delGlobalBan);
- ExternalInterface.addCallback("doGlobalMute", this.doGlobalMute);
- ExternalInterface.addCallback("delGlobalMute", this.delGlobalMute);
- ExternalInterface.addCallback("doGlobalMessage", this.doGlobalMessage);
- ExternalInterface.addCallback("doGlobalMessageVL", this.doGlobalMessageVL);
- ExternalInterface.addCallback("doGlobalMessageBTV", this.doGlobalMessageBTV);
- ExternalInterface.addCallback("doGlobalMessageIGB", this.doGlobalMessageIGB);
- ExternalInterface.addCallback("doPermBan", this.doPermBan);
- ExternalInterface.addCallback("delPermBan", this.delPermBan);
- ExternalInterface.addCallback("doSlowOn", this.doSlowMode);
- ExternalInterface.addCallback("doSlowOff", this.doSlowModeOff);
- ExternalInterface.addCallback("doActOn", this.doActMode);
- ExternalInterface.addCallback("doActOff", this.doActModeOff);
- ExternalInterface.addCallback("doGuestOn", this.doGuestOn);
- ExternalInterface.addCallback("doGuestOff", this.doGuestOff);
- ExternalInterface.addCallback("doDrop", this.doDrop);
- ExternalInterface.addCallback("doInvite", this.doInvite);
- ExternalInterface.addCallback("doInviteCohost", this.doInviteCohost);
- ExternalInterface.addCallback("doRandom", this.doRandom);
- ExternalInterface.addCallback("doViewBans", this.doViewBans);
- ExternalInterface.addCallback("doViewMods", this.doViewMods);
- ExternalInterface.addCallback("doUnbanall", this.doUnbanall);
- ExternalInterface.addCallback("doUnmodall", this.doUnmodall);
- return;
- }// end function
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement