title: 1046: Type was not found or was not a compile-time constant: ServerSocketConnectEvent
body: <p>I am trying to get the adobe AIR SocketServer class to work. When I pasted in this code from the adobe website:</p>
  
  <pre><code>import flash.net.ServerSocket; 
  import flash.events.ServerSocketConnectEvent; 
  
  function onConnect(e:ServerSocketConnectEvent):void 
  { 
      var incomingSocket:Socket = e.socket; 
  } 
  var server:ServerSocket = new ServerSocket(); 
  server.addEventListener(Event.CONNECT, onConnect); 
  server.bind(8888); 
  </code></pre>
  
  <p>I got the error saying that the SocketServerConnectEvent could not be found. However, there is an import statement importing precisely that class at the line above it. What am I missing here?</p>