Hello,
Today i had a crazy idea when i saw that flash has a socket class.
I remembered my old geekBot in php so i decided to try and make that in Flash. It didn’t work :(. Here’s the code:
IrcSocket = new XMLSocket();
IrcSocket.onConnect = function(success){
if(success){
trace("Connection Successfull");
IrcSocket.send("NICK GeekTest
");
IrcSocket.send("USER GeekTest \"\" \"\" :GeekTest
");
IrcSocket.send("JOIN #banana
");
}else{
trace("Connection Failed");
}
}
IrcSocket.onClose = function(){
trace("Disconnected");
}
IrcSocket.onData = function(data){
trace(data);
}
IrcSocket.connect("64.246.0.150", 6667);
It traces Connection Successfull and then Disconnected. Any idea’s?