Handling a Built-in Exception : Socket : Network Flash / Flex / ActionScript examples


Flash / Flex / ActionScript examples » Network » Socket »

 

Handling a Built-in Exception


 

package{
  import flash.display.Sprite;
  
  public class Main extends Sprite{
    public function Main(){

        var socket:Socket = new Socket(  );
        
        try {
          socket.connect("example.com", userPort);
        catch (e:SecurityError) {
        }
    }
  }
}

        



Leave a Comment / Note


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


Flash / Flex / ActionScript examples

 Navioo Network
» Socket