title: bytearray to string
body: <p>One trick shown me that I could use <code>bytes+""</code> which convert into String but not a pure String. It is acceptable by any UI components except it won't accept when I throw <code>bytes+""</code> into <code>switch</code> statement. How do I convert bytearray to pure string?</p>
  
  <pre><code>private function socketDataHandler(event:ProgressEvent):void {
      try {
          rsocket = event.target as Socket;
          bytes = new ByteArray();
          rsocket.readBytes(bytes);
          kEvent(bytes+"");
          rsocket.flush();
      } catch (error:Error) {
          Alert.show(error.message, "Error");
      }
  }
  </code></pre>