Типа у меня есть продвинутый вариант

Только там не один класс, но сам проект фасадный.
В основном классе пишем строки типа:

Код:
this.irc = new IRC('irc1','irc.dion.ru',6667);
this.irc.encoding = 'windows-1251';
this.irc.autoPong = true;
this.irc.addEventListener(SocketEvent.CONNECT,this.connectHandler);
this.irc.addEventListener(ServerEvent.RPL_NAMREPLY,this.nickListHandler);
this.irc.addEventListener(ServerEvent.RPL_ENDOFNAMES,this.nickListEndHandler);
this.irc.addEventListener(ServerEvent.RPL_TOPIC,this.topicHandler);
this.irc.addEventListener(UserEvent.PRIVMSG,this.messageHandler);
this.irc.connect();
…
private function connectHandler(event:SocketEvent):void {
this.irc.queueCommands = true;
this.irc.setUser('flashirc','FlashIRC');
this.irc.setNick('FlashIRC');
this.irc.joinChannel('#flasher');
this.irc.flushCommands();
}
И вуаля
Не дописан. Если есть желание поковыряться с этим — велкам!