Conceptchat is a project mainly written in ACTIONSCRIPT and JAVASCRIPT, it's free.
Chat framework using TLF, most of the code isn't document but clean code ( besides the "Controller" class)