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) { } } } }