Flash Socket Chat Trouble

Hey all,

I have been following the tutorial at http://www.kirupa.com/developer/flash8/php5sockets_flash8.htm
to make a socket based flash chat, but I’m having a bit of trouble.

At first it returned ‘Couldn’t connect to server’, I found the problem and set the server to ‘localhost’ and port ‘80’. Tried again, returned ‘Server connection estrablished’ but the moment I pressed the send button/enter it returned ‘Server connection lost’
I twiddled the code a bit, and now it constantly returns ‘Server connection established’, and never disconnects. But the messages don’t show up.

Any suggestions as to how I can fix this? Is there anything in the code that needs changing depending on me or something?

Cheers

Hi all
my name is Immortal
and I like ask ainy one how to make a flash component?
thank you all
regards
Immortal

I’m also using the code here:
http://www.kirupa.com/developer/flash8/php5sockets_flash8.htm
As the basis of my app - I’m finding windows computers are connecting just fine, but macs are getting an error. It looks to me like it’s asking for the policy file - even though the php script & the chat are w/in the same domain. Any thoughts?

thanks - i found my solution here::
http://djz.hu/blog/2007/07/26/php-socket-server-chat-gateway-for-flash-clients/
The code there provides for a connection over 80 & also provides for the case where the client requests the policy file.
In my case the policy file was being requested through the socket connection on Mac clients, but not on PCs for whatever reason, even though everything was being tested internally on a private IP address - ie, the test client was located @ http://192.168.0.3/sockets/test.html & the swf was opening a socket connection to 192.168.0.3 as well - so not really cross domain, but was asking for the policy file over the socket anyway.

All is good now - thanks for the response though!