Hello, I have a little promblem with flash.net.Socket. I'm doing this:
import flash.net.Socket; private function doInit():void { var s:Socket = new Socket(); s.connect("localhost", 4321); } This code is connecting me to application written in .NET. This works fine. I can accept connection in C# app and I see message sended from Flex with content <policy-request />. But the problem is when I close browser window. Twice per second I'm starting to receive messages from Flex server with content: <policy- request />. For me it looks like connection to socket is not closed. The only thing I can do is kill C# app. How can I avoid this strange behaviour? Can I detect somehow browser window closing in Flex? Or should I use onunload JavaScript event to call ExternalInterface and manually kill socket connection? Thank you. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/