function SocketExample() 
{
   socket = new Socket();
   // Add an event listener to be notified when the connection
   // is made
   socket.addEventListener( Event.CONNECT, onConnect );
   // Connect to the server
   socket.connect( "127.0.0.1", 2901 );
}
function onConnect( event:Event ):void 
{
  tt.text = "Successful linking";
}
我尝试通过 Flash as3.0 连接到 Socket。但这不起作用,它向我显示错误“SecurityError:错误#2000”。如何避免此错误?