SHARE
TWEET

_dataHandler

klabacher Oct 15th, 2019 (edited) 145 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.       private function _dataHandler(param1:ProgressEvent) : void
  2.       {
  3.          var _loc3_:String = null;
  4.          var _loc4_:Array = null;
  5.          var _loc5_:String = null;
  6.          var _loc2_:int = this._connectedSocket.bytesAvailable;
  7.          if(_loc2_ > 0)
  8.          {
  9.             _loc3_ = this._connectedSocket.readMultiByte(this._connectedSocket.bytesAvailable,"UTF-8");
  10.             _loc4_ = _loc3_.split("\r").join("").split("\n");
  11.             _loc4_[0] = this._lineBuffer + _loc4_[0];
  12.             if(_loc3_.charAt(-1) != "\n")
  13.             {
  14.                this._lineBuffer = _loc4_.pop();
  15.             }
  16.             else
  17.             {
  18.                this._lineBuffer = "";
  19.             }
  20.             for each(_loc5_ in _loc4_)
  21.             {
  22.                if(_loc5_.indexOf("S_PING") != -1)
  23.                {
  24.                   LayerManager.Ping.set_difference_in(_loc5_);
  25.                }
  26.                if(_loc5_.charAt(0) == "[")
  27.                {
  28.                   this._tagBuffer.push(_loc5_);
  29.                }
  30.                else if(_loc5_ != "")
  31.                {
  32.                   ExternalInterface.call("console.error","unformated string in tag stream: " + _loc5_);
  33.                }
  34.             }
  35.          }
  36.       }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top