My favorites | Sign in
Project Home Source
Project Information
Members
Links

Nateon Messenger Library for Actionscript 3.0 (Flex/AIR)

How to use

1. make an Account object

  var a:Account = new Account();

2. add eventlistener to account object

  a.addEventListener(AccountEvent.STATE_CHANGE, onStatusChange);

3. connect to notification server with email, pwd, init status

  a.connect('your_email', 'your_pwd', AccountState.ONLINE);

4. If the connection is opened, the account object dispatch event STATE_CHANGE.

And It will be hadled by onStatusChange function.

  function onStatusChange(event:AccountEvent):void
  {
    for each (var friend:Friend in a.data.friends)
    {
      trace(friend.data.email);
    }
  }

Requirements

1. as3corelib ( http://code.google.com/p/as3corelib/ )

Contact me

buvlet@gmail.com or buzzler@hotmail.com or buzzler@mobswing.com

Powered by Google Project Hosting