First off, you may want to read this other url=http://www.jivesoftware.org/forums/thread.jspa?threadID=13461thread[/url], specifically the last post by Guido which provides a fix for a problem with the XIFF library.
Once you established a connection with the server you will need to send an available presence indicating that your client is available for receiving messages from other clients as well as from the server itself. Here I present two options to send an available presence:
Option 1: (does not require Guido’'s patch)
connection.send(new Presence( null, null, null, null, null, 1 ));
Option 2: (requires Guido’'s patch)
var myRoster:Roster = new Roster(connection);
myRoster.setPresence(null, "Online", 5);
You can follow this url=http://voisen.org/archives/flash_mx/000408.phplink[/url] to see an example that no only connects with the server but also joins/create a group chat room. Note: You will need to change the server and username to use (look for the “CHANGE THESE SETTINGS” text), use the “flash” method and finally send an available presence when you receive the login event.