Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private function _dataHandler(param1:ProgressEvent) : void
- {
- var _loc3_:String = null;
- var _loc4_:Array = null;
- var _loc5_:String = null;
- var _loc2_:int = this._connectedSocket.bytesAvailable;
- if(_loc2_ > 0)
- {
- _loc3_ = this._connectedSocket.readMultiByte(this._connectedSocket.bytesAvailable,"UTF-8");
- _loc4_ = _loc3_.split("\r").join("").split("\n");
- _loc4_[0] = this._lineBuffer + _loc4_[0];
- if(_loc3_.charAt(-1) != "\n")
- {
- this._lineBuffer = _loc4_.pop();
- }
- else
- {
- this._lineBuffer = "";
- }
- for each(_loc5_ in _loc4_)
- {
- if(_loc5_.indexOf("S_PING") != -1)
- {
- LayerManager.Ping.set_difference_in(_loc5_);
- }
- if(_loc5_.charAt(0) == "[")
- {
- this._tagBuffer.push(_loc5_);
- }
- else if(_loc5_ != "")
- {
- ExternalInterface.call("console.error","unformated string in tag stream: " + _loc5_);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement