I have made a chat room in flash. It constantly opens a PHP file and reads in the chat. I need to detect when a user either closes the flash window or gets disconnected from the internet. i would prefer not to use socket connections but if they are the only way then i dont mind.
A start on some code would be well appreciated.
Thank You