Hi,
I ran into a situation where I need to be notified about items being
removed or added from/to a node that has children:ArrayCollection in
a hierarchical structure. I know the deep binding works as I can see
my model changes picked by the Tree control.
[Bindable]
private var myData :ArrayCollection = new ArrayCollection();
...
// trace(ChangeWatcher.canWatch(myData.getItemAt(0).children.getItemAt
(0), "children")) -> true
BindingUtils.bindSetter(dataUpdated, myData.getItemAt
(0).children.getItemAt(0), "children"); /* -> public var
children :ArrayCollection = new ArrayCollection();*/
...
public function dataUpdated(value:ArrayCollection):void
{
trace("--- updated ---");
}
is being called only on assignments to children.
How do I bind on an ArrayCollection? I would like to catch the items
added & removed to the collection.
Regards,
Sebastian