Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash








Xml+Xmlserver Problem


Hi ,
I listen xmlSocket with onXML in my project.
My Code :

Code:
server.onXML = function(gelenveri:XML) {
gelenveri.ignoreWhite = true;
trace(gelenveri)
var xmlAction = gelenveri.firstChild.firstChild.attributes.action;
trace(xmlAction)
}
When i start project and connect xmlsocket , dcome 3 new data directly (server to client)
My project Output :


Code:

<protocol>
<response action="login" clientId="6FAAB970-339E-4D49-80B3-3A161C5AD833" errorCode="0" sid="" />
</protocol>
login

<protocol>
<response action="roomLogin" errorCode="0" sid="" />
</protocol>
undefined

<protocol>
<response action="userList" errorCode="0" sid="">
<data userCount="1">
<nickName>asdasd</nickName>
</data>
</response>
</protocol>
undefined
First coming data "login" true but 2. and 3. datas wrong "undefined".
How i can fix it.
Sory for my bad English.

thanks already now...




KirupaForum > Flash > ActionScript 1.0/2.0
Posted on: 09-16-2007, 03:37 AM


View Complete Forum Thread with Replies

Sponsored Links:

C++ Xmlserver
developing a c++ socket server,
the client connects and send the data successfully.
the problem is that it doesn't recieve the data from the server!
it requires a null character to be attached to the end of the transmission so that the client knows it's the end .
i've used "" at the end of the string from the server with no success.
note: the same client recieves the data successfully from php server with a " char(0) " attached to the end of the string.
char() prints the character of the ascii provided which in this case was the zero.
any ideas !!!

View Replies !    View Related
Copyright © 2005-08 www.BigResource.com, All rights reserved