Advanced login

Ok…I have created a login script by using the tutorial on http://www.kirupa.com/developer/actionscript/authentication.htm and it works perfectly, it connects, lgs in, error checks and everything. But now i have done this i want it to be able to do more…

  1. Is it possible using that login script for it to connect to a chat room aswell as loging in?

  2. Once logged in, will i be able to make it display users details from the MYsql database?

Is it possible to do any of theese using the same script on thatl ink above and how would i go about doing this?

Thanks
Jason