I am trying to get the adobe AIR SocketServer class to work. When I pasted in this code from the adobe website:
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);
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?