Open GoogleCodeExporter opened 9 years ago
Actually with similar steps, I get :
Error #2044: Unhandled IOErrorEvent:. text=Error #2031: Socket Error.
at merapi::Bridge$/connect()[/Users/adam/dev/os/merapi/pre-os/trunk/flex/merapi-core/src/merapi/Bridge.as:204]
at merapi::Bridge/sendMessage()[/Users/adam/dev/os/merapi/pre-os/trunk/flex/merapi-core/src/merapi/Bridge.as:366]
An IOErrorEvent is unhandled. I looked at the source for the connect. The
problem is that the socket is instantiated with the host and port on sending.
This triggers automatic connection.
The recommendation is to instantiate the socket without parameters and then
call the connect(host,port) on it.
"Note: It is strongly advised to use the constructor form without parameters,
then add any event listeners, then call the connect method with host and port
parameters. This sequence guarantees that all event listeners will work
properly."
http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/net/Soc
ket.html?filter_flex=4.1&filter_flashplayer=10.1&filter_air=2#Socket%28%29
Original comment by AhmadHa...@gmail.com
on 8 Nov 2010 at 5:22
Original issue reported on code.google.com by
ajay.n...@gmail.com
on 20 Nov 2009 at 4:02