Sending Data : Socket : Network Flash / Flex / ActionScript examples


Flash / Flex / ActionScript examples » Network » Socket »

 

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 exampleUsernamen");
        
        socket.writeByte(1);
        socket.writeByte(5);
        socket.writeByte(4);
        socket.writeByte(8);
        socket.flush(  );
    }
  }
}

        



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


Flash / Flex / ActionScript examples

 Navioo Network
» Socket