A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: The onXML event start, but the data is empty, Why?

  1. #1
    Junior Member
    Join Date
    May 2001
    Posts
    2

    Lightbulb

    Hi guys, I have created an server program that send data beetween winsock.
    Flash player connect to it, and if I send data the onXML event start but the data is null, undefined. Why?
    I have use the chr(0), because without it don't start the onXML event.
    This is the code:

    function ricevuto (dati) {
    if (dati==null) {testo="niente";}
    }
    ml = new XMLSocket();
    xml.onConnect = myOnConnect;
    xml.onXML= ricevuto;
    if (!xml.connect(null,1024)) {
    gotoAndStop("connectionFailed")
    }
    I have created the condition to test if "dati" is null.
    This is the data that sent:
    "<messaggi><messaggio>ciao</messaggio></messaggi>" & Chr(0)
    with vb.
    I tried with telnet and it's all ok.

    Please help me.

  2. #2
    Senior Member
    Join Date
    Feb 2001
    Location
    Provo, Utah
    Posts
    1,112

    Uhh...

    So you've tried your Fla with a different server, and it works?? or your FLA won't work at all??

    What exactly are you trying to do?? You're just trying to send and recieve data - right??

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center