Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function _SafeStr_4018(_arg_1:ByteArray):void{
- var _local_2:int;
- if (this._SafeStr_3999.connected)
- {
- _arg_1.position = _SafeStr_11658._SafeStr_5247;
- _local_2 = _arg_1.length;
- if (_local_2 <= 0xFF)
- {
- this._SafeStr_3999.writeByte(_SafeStr_12468._SafeStr_10745);
- this._SafeStr_3999.writeByte(_local_2);
- } else
- {
- if (_local_2 <= 0xFFFF)
- {
- this._SafeStr_3999.writeByte(_SafeStr_12343._SafeStr_9435(_SafeStr_12010._SafeStr_7514));
- this._SafeStr_3999.writeShort(_local_2);
- } else
- {
- if (_local_2 <= 0xFFFFFF)
- {
- this._SafeStr_3999.writeByte(_SafeStr_12343._SafeStr_9435(_SafeStr_12244._SafeStr_8889));
- this._SafeStr_3999.writeByte(((_local_2 >> _SafeStr_11939._SafeStr_7044) & 0xFF));
- this._SafeStr_3999.writeByte(((_local_2 >> _SafeStr_12343._SafeStr_9435(_SafeStr_12275._SafeStr_9140)) & 0xFF));
- this._SafeStr_3999.writeByte((_local_2 & 0xFF));
- };
- };
- };
- this._SafeStr_3999.writeByte(this._SafeStr_3997);
- this._SafeStr_3997 = ((_SafeStr_12468._SafeStr_10745 + this._SafeStr_3997) % _SafeStr_12343._SafeStr_9435(_SafeStr_12443._SafeStr_10239));
- this._SafeStr_3999.writeBytes(_arg_1);
- this._SafeStr_3999.flush();
- };
- }
- public function _SafeStr_4019(_arg_1:Event):void{
- if (this._SafeStr_4007)
- {
- _SafeStr_11787._SafeStr_6148(_SafeStr_11705._SafeStr_5530);
- };
- this._SafeStr_4();
- }
- public function _SafeStr_4020(_arg_1:Event):void{
- _SafeStr_11664._SafeStr_5325.removeEventListener(_SafeStr_12443._SafeStr_10195, this._SafeStr_4020);
- this._SafeStr_4021(null, false);
- }
- public function _SafeStr_3113(_arg_1:_SafeStr_12534):void{
- var _local_2:int;
- var _local_3:_SafeStr_12534;
- if (this._SafeStr_3999.connected)
- {
- if (this._SafeStr_4008)
- {
- _local_3 = this._SafeStr_4008;
- this._SafeStr_4008 = null;
- if (this._SafeStr_4007)
- {
- _SafeStr_11787._SafeStr_6147(_SafeStr_12343._SafeStr_9437(_SafeStr_11865._SafeStr_6524));
- };
- this._SafeStr_3113(_local_3);
- };
- if (_arg_1._SafeStr_12)
- {
- _arg_1._SafeStr_15(this._SafeStr_3997);
- };
- _local_2 = _arg_1._SafeStr_10.length;
- if (_local_2 <= 0xFF)
- {
- this._SafeStr_3999.writeByte(_SafeStr_12468._SafeStr_10745);
- this._SafeStr_3999.writeByte(_local_2);
- } else
- {
- if (0xFFFF >= _local_2)
- {
- this._SafeStr_3999.writeByte(_SafeStr_12343._SafeStr_9435(_SafeStr_12010._SafeStr_7514));
- this._SafeStr_3999.writeShort(_local_2);
- } else
- {
- if (0xFFFFFF >= _local_2)
- {
- this._SafeStr_3999.writeByte(_SafeStr_12244._SafeStr_8889);
- this._SafeStr_3999.writeByte(((_local_2 >> _SafeStr_12343._SafeStr_9435(_SafeStr_11939._SafeStr_7044)) & 0xFF));
- this._SafeStr_3999.writeByte(((_local_2 >> _SafeStr_12343._SafeStr_9435(_SafeStr_12275._SafeStr_9140)) & 0xFF));
- this._SafeStr_3999.writeByte((_local_2 & 0xFF));
- };
- };
- };
- this._SafeStr_3999.writeByte(this._SafeStr_3997);
- this._SafeStr_3997 = ((_SafeStr_12343._SafeStr_9435(_SafeStr_12468._SafeStr_10745) + this._SafeStr_3997) % _SafeStr_12443._SafeStr_10239);
- this._SafeStr_3999.writeBytes(_arg_1._SafeStr_10);
- this._SafeStr_3999.flush();
- };
- }
- public function _SafeStr_4(_arg_1:String=null):void{
- this.reset();
- var _local_2:String = _arg_1;
- if (null == _local_2)
- {
- _local_2 = this._SafeStr_4005;
- };
- this._SafeStr_4005 = _local_2;
- if (this._SafeStr_4006.length == _SafeStr_11658._SafeStr_5247)
- {
- if (!this._SafeStr_4007)
- {
- _SafeStr_11720._SafeStr_797(_SafeStr_12100._SafeStr_7852);
- };
- return;
- };
- var _local_3:int = this._SafeStr_4006.shift();
- _SafeStr_12364._SafeStr_9748 = _local_3;
- this._SafeStr_3999 = new Socket();
- this._SafeStr_3999.endian = Endian.BIG_ENDIAN;
- if (this._SafeStr_4007)
- {
- this._SafeStr_3999.addEventListener(Event.CLOSE, this._SafeStr_4013);
- } else
- {
- this._SafeStr_3999.addEventListener(Event.CONNECT, _SafeStr_11664._SafeStr_5325._SafeStr_560, false, int.MAX_VALUE);
- this._SafeStr_3999.addEventListener(Event.CLOSE, _SafeStr_11664._SafeStr_5325._SafeStr_538);
- };
- this._SafeStr_3999.addEventListener(Event.CONNECT, this._SafeStr_4012);
- this._SafeStr_3999.addEventListener(ProgressEvent.SOCKET_DATA, this._SafeStr_4021);
- this._SafeStr_3999.addEventListener(SecurityErrorEvent.SECURITY_ERROR, this._SafeStr_4014);
- this._SafeStr_3999.addEventListener(IOErrorEvent.IO_ERROR, this._SafeStr_4019);
- if (this._SafeStr_4007)
- {
- if (_SafeStr_12091._SafeStr_7778)
- {
- _SafeStr_11787._SafeStr_6147(((((_SafeStr_12244._SafeStr_8737 + _local_2) + _SafeStr_11705._SafeStr_5648) + _local_3) + _SafeStr_12450._SafeStr_10273));
- } else
- {
- _SafeStr_11787._SafeStr_6147(_SafeStr_11652._SafeStr_4853);
- };
- } else
- {
- _SafeStr_11720._SafeStr_797(((_SafeStr_12577._SafeStr_11434 + _local_3) + _SafeStr_12343._SafeStr_9437(_SafeStr_11658._SafeStr_5041)));
- };
- _local_2 = "ip-from-my-server.here";
- _local_3 = 44440; // a single port
- this._SafeStr_3999.connect(_local_2, _local_3);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement