flex-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alex Harui <aha...@adobe.com>
Subject Re: Monitor collection change
Date Wed, 29 Apr 2015 18:39:22 GMT
Probably easier to do addEventListener(CollectionEvent.COLLECTION_CHANGE).

That will pick up changes to the collection, but not to properties in
object in the collection.  To do that, you will need to listen to each
object in the collection.


On 4/29/15, 9:35 AM, "mark goldin" <markzolotoy@gmail.com> wrote:

>I have an ArrayCollection. I need to monitor changes made to it by a user.
>I am trying something like this:
>aWatcher = ChangeWatcher.watch(_model.selectedPoints, "Selected",
>private function validateSaveState(event:CollectionEvent):void
>But I am not really getting into validateSaveState when selected property
>is changed.
>Please give me some ideas.

View raw message