I don’t think that is possible but even if it is, it doesn’t sound that 
graceful.  Why not have a single SocketProxy or SocketWrapper class with a 
single socket connection.  You can pass that as a reference to two or more 
classes.

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Eric E. Dolecki
Sent: 04 December 2008 15:24
To: Flash Coders List
Subject: [Flashcoders] Different class instances with socket using same 
portnumber?

Wondering if it's possible to have different classes open sockets to the
same port number? Going to throw stuff in an if/else and depending on a
variable, send to the socket with different values. They all currently open
to the same port number.
ie. inside each of the class constructors being used:

_socket = new Socket( "localhost", 5751 );

-- 
http://ericd.net
Interactive design and development
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to