This content has been marked as final. Show 10 replies
Have you checked the policyfiles.txt log?
Have you set up crossdomain.xml? ( http://www.adobe.com/devnet/articles/crossdomain_policy_file_spec.html)
It is also highly recommended to add event listeners on "connect", "ioError", "securityError", "close" events as they will give you a broader picture of what is going on.
Another good tool for checking what is happening on the network layer is Wireshark. It is a very powerful tool, but note that it does not work on 127.0.0.1 interface under Windows. Always try to use 2 boxes for testing.
thanks for the answer.
There is no cross-domain. everything is running on my machine, so there is no policy server.
and yes i have all error handlers
"connect", "ioError", "securityError", the only one fires is connect.
in order to be logged in at the server i have to send some message to the server:
do i need to do anything after this to free the socket?
Just guessing here but...
A message sent over an XMLSocket must be null terminated.
I'm guessing your messages are terminated by something else, a newline maybe?
Even if "...everything is running on my machine..." you still might have a security issue.
What does the policyfiles.txt say?
The fact that you able to send something from the socket is strange, because you use some external address 10.0.0.2, so before doing this XMLSocket sends a policy file request and as soon as it does not receive a response it ceases all network activity.
I have a problem with the XMLSocket that sounds related.
I built a swf using the flash 9 SDK running with flash player 9 and all works as expected.
But running with flash player 10 gives a socket that sends a single message to the server and then the connection is dropped.
Today, I built with a flash 10 SDK and all messages and connections work once again.
Guys, why don't you look at the flash log files (policyfiles.txt & flashlog.txt). This will unveil a lot of mysteries :)
Thanks for all replies :)
I'm new to flex. this is my first flex application.
can somebody tell me where the policyfiles.txt & flashlog.txt are?
Thanks in advance