set the presence up on Login using the following method
private function setupPresence() : void
{
connection.addEventListener(PresenceEvent.PRESENCE, onPresence);
presence = new Presence(null, connection.jid, Presence.SUBSCRIBE_TYPE, Presence.SHOW_CHAT, null, 3);
connection.send(presence);
}
the PresenceEvent.PRESENCE fires but in the onPresence function the presence
var presObject:Presence = event.data as Presence;
comes back as null every time.
Can anyone please help. Why is presence null?
thanks
MaTT