2 Replies Latest reply on Jun 7, 2012 11:20 AM by Leo8o8

    XMLsocket.prototype.onData doesn't work properly

    Leo8o8 Level 1

      Ok so I've got a java server and flash as2 client

      The problem is that when the server sends me a string

      Client doesn't get it until I add some special char to the string in the java like:

       

      Java code:

      char EOF = (char)0x00;

      sendData("blablabla"+EOF);

       

      AS2 code

      XMLSocket.prototype.onData = function(stats)

      {

           trace(stats);

      }

       

      It doesn't trace anything if I won't add "+EOF". But I need a clear string... Help?