(It's the 3rd time I try to answer this post, so sorry if you get this many times)
This article is very interesting. I just want to give two precisions :
- The next release will force the initialization of uids before sending anything to the server so that should not be necessary to deal with this manually any more
- I would not advise using PersistentCollection directly, it is supposed to an implementation detail.
If you need to register listeners on the collection, you can override the setter for the collection :
public override function set children(list:ListCollectionView):void {
if (this.children)
this.children.removeEventListener(..);
super.children = list;
if (list)
list.addEventListener(...)
}
Also note that you can disable automatic call of getters in the Flash Builder debugger preferences.
William