Sending Data
package{ import flash.display.Sprite; import flash.net.*; public class Main extends Sprite{ public function Main(){ var socket:Socket = new Socket( ); socket.writeMultiByte("example", "unicode"); socket.writeUTFBytes("USER exampleUsername\n"); socket.writeByte(1); socket.writeByte(5); socket.writeByte(4); socket.writeByte(8); socket.flush( ); } } }