I may be missing something simple here, but I would like to create a
getter function in one of my classes that binds to a collection change
event of an ArrayCollection in the same class. As a simple example,
public var myCollection:ArrayCollection = new ArrayCollection();
[Bindable]
public function get mySimpleSum():int{
return myCollection.length + 10;
}
I would like to bind the view to the getter so that when myCollection
is modified, the getter will refire and the view will update. So far
nothing I have tried (such as
[Bindable(event=CollectionEvent.COLLECTION_CHANGE)])works...
Thoughts?...
Thanks, Kevin