flex 2 provides a more efficient way of manipulating an
ArrayCollection using a "filterFunction" from the IViewCollection
Interface. This also provides the use of a cursor which you can use to
manipulate the collection as well. Sorting is first required if you
want to use a cursor. Filtering can be done in a 1 line conditional
stmt which eliminates any need to loop through the entire
ArrayCollection. Look in Chap 7., pg 161 of the Developer's Guide with
a very good example on pg. 178 and 185.

Hope this helps,

Bob I.


--- In [email protected], "e_baggg" <[EMAIL PROTECTED]> wrote:
>
> That is exactly what you need to do. Create a "for" loop and get a
> handle on each object in the loop. 
> 
> Then, set up a method that returns a Boolean if it needs to be
> flagged. This method will check the dates. if true, then inside your
> For loop, flag the data object.
> 
> Note: You can do the conditionals inside the for loop, it's just
> better for readability to extract that logic out to another method
> within the same class.


Reply via email to