- Mark as New
- Follow
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report
After relogin, CollectionNode doesn't fire Sync event.
_collectionVacantUsers = new CollectionNode();
_collectionVacantUsers.sharedID = "VacantUsers";
_collectionVacantUsers.addEventListener(CollectionNodeEvent.SYNCHRONIZATION_CHANGE, onSyncCollectionNode);
_collectionVacantUsers.subscribe();
Event listener:
private function onSyncCollectionNode(e : CollectionNodeEvent) : void {
if (_collectionVacantUsers.isSynchronized) {
CONFIG::DEBUG {
MonsterDebugger.trace(this, "VacantUsers synced and ready to use", "", "", DebugColors.SERVICE);
}
...}
}
Views
Replies
0 Likes
Total Likes