For some reason I have an aversion to adding event listeners in
ActionScript, favouring binding expressions and the Observe tag from Adobe
Consulting. Not sure how rational this is, but there you have it. Binding is
just so damn elegant.

However, collections are a problem. It seems that so often you want to
update something if either the collection itself or its contents changes,
and you don't really care about the details of the change.

I suppose if you're a DataGrid watching its dataprovider you do care and can
minimize updates, but in many of the use cases I've encountered, that's not
the case - my observer is going to do something with the whole collection
(or maybe I've just been lazy about exploiting possible optimizations).

Is there anything like the Observe tag that can be instantiated in MXML and
can trigger a function call on a COLLECTION_CHANGE event?

Reply via email to