-
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.
-
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|