Hi ,
I listen xmlSocket with onXML in my project.
My 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 :
<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…