3 Replies Latest reply: Oct 29, 2009 8:31 PM by Sugar.Chen RSS

    XMLSocket on Windows Mobile - no data send and onConnect not entered

    ChrFin00 Community Member

      Hi,

       

      I'm developing a FlashLite 2.1 application and try to communicat with the host device (WiMo) through a XMLSocket to write some data to the disk.

      I have the following code in the FL-App:

       

      xmlSocket = new XMLSocket();
      xmlSocket.onConnect = function(success:Boolean)
           {
                fscommand("Launch", "\\...\\FileEditor.exe,Success=" + success);
                
                if (success)
                     LearnLogic.Current.xmlSocket.send(LearnLogic.Current.Message.toString());
                else
                     LearnLogic.Current._cardBox[_cardIds[_currentCardIndex]] = 10;
           }
      var connected:Boolean = xmlSocket.connect("127.0.0.1", 8181);               
      fscommand("Launch", "\\...\\FileEditor.exe,Connected=" + connected);
      xmlSocket.send(Message.toString());
      xmlSocket.close();
      
       
      

       

      The File Editor simply writes the Argument to a log file and I get the "Connected=true" in the log, but not the "Success=xxx" and on the host application (C#) I got a connection but no data is submitted (Client.Available stays 0).

       

      What can I do to fix that problem or is there an easier way to edit files on the phone?

       

      regards