You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is a bug in the AS3 example.
The following will not work:
var s:SerialPort = new SerialPort("127.0.0.1", 5334);
s.connect();
This will causes a Flash Socket error #1023
If you look at the connect function:
public function connect( host:String = null, port:int = 0 ):void
{
_socket.connect( host, port );
trace( "connecting" );
}
You see that host and string are optional values, and are thus set to their
defaults of null and zero.
This, the connection is:
_socket.connect(null, 0);
which of course, causes a SocketError.
I have attached an updated version of the class which should fix the issue (I
havent tested it yet).
Original issue reported on code.google.com by mikechambers on 29 Jul 2010 at 5:14
The text was updated successfully, but these errors were encountered:
Original issue reported on code.google.com by
mikechambers
on 29 Jul 2010 at 5:14The text was updated successfully, but these errors were encountered: