[flexcoders] Re: need strategy for filtering ArrayCollections in a Cairngorm app

2006-12-09 Thread lostinrecursion
What is the matter with me today? Second time, I asked a question there was a clearly published answer for. Ignore me until midnight PST. Otherwise, who knows what chaos I could cause. -Kenny

[flexcoders] Re: need strategy for filtering ArrayCollections in a Cairngorm app

2006-12-09 Thread Kenny Silanskas
Here's what's funny. I wasn't aware it continued to part III. Thank you, Alex, for answering a question this silly programmer could have found by navigating the thread. :) "Welcome to the family!" Kenny Silanskas Director of Communications Dillstar Productions

[flexcoders] Re: need strategy for filtering ArrayCollections in a Cairngorm app

2006-12-09 Thread lostinrecursion
Alex, What if the three lists a developer is filtering/sorting are contained within a component? Then doesn't hard coding the values into the ModelLocator defeat the purpose of component independence? You would have to update your model every time you wanted to add an instance of the component, am

Re: [flexcoders] Re: need strategy for filtering ArrayCollections in a Cairngorm app

2006-12-06 Thread Rick Schmitty
> > There's a very simple demo for beta 3 below. Does this solve your problem? > > Paul > > > http://www.adobe.com/2006/mxml"; layout="horizontal" creationComplete="initialise()"> > > > > > > > > > > > > > > > > > > > > > > > > > > > > ___

RE: [flexcoders] Re: need strategy for filtering ArrayCollections in a Cairngorm app

2006-12-05 Thread Alex Uhlmann
> > > > > > > > > > > > > From: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> [mailto:flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> ] On Behalf Of Jeremy Lu > S

Re: [flexcoders] Re: need strategy for filtering ArrayCollections in a Cairngorm app

2006-12-05 Thread Rick Schmitty
t; > > > > > > > > > > > ________ > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of > Jeremy Lu > Sent: Saturday, June 10, 2006 4:13 AM > To: flexcoders@yahoogroups.com > Subject: Re:

Re: [flexcoders] Re: need strategy for filtering ArrayCollections in a Cairngorm app

2006-06-10 Thread Jeremy Lu
> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >

[flexcoders] Re: need strategy for filtering ArrayCollections in a Cairngorm app

2006-06-10 Thread Tim Hoff
; > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > From: flexcoders@yahoogroups.com [mailto: > > flexcoders@yahoogroups.com ] On Behalf Of >

Re: [flexcoders] Re: need strategy for filtering ArrayCollections in a Cairngorm app

2006-06-10 Thread Tom Bray
ot;horizontal" creationComplete="initialise()"> From: flexcoders@yahoogroups.com [mailto: flexcoders@yahoogroups.com] On Behalf Of Jeremy Lu Sent: Saturday, June 10, 2006 4:13 AM To: flexcoders@yahoogroups.com Subject:

RE: [flexcoders] Re: need strategy for filtering ArrayCollections in a Cairngorm app

2006-06-10 Thread Paul Williams
f Jeremy Lu Sent: Saturday, June 10, 2006 4:13 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: need strategy for filtering ArrayCollections in a Cairngorm app very interesting... why not trigger a global "ArrayChangedEvent" so each fitlered ArrayCollection can update

Re: [flexcoders] Re: need strategy for filtering ArrayCollections in a Cairngorm app

2006-06-09 Thread Jeremy Lu
very interesting... why not trigger a global "ArrayChangedEvent" so each fitlered ArrayCollection can update itself according to it ? (with some binding settings this should be feasible) the trigger point is: when new data are pushed into MasterArray, dispatch it. Tom: if you have some sampl

[flexcoders] Re: need strategy for filtering ArrayCollections in a Cairngorm app

2006-06-09 Thread Tim Hoff
I'll have to take your word on that, but I'm still skeptical.  If what you say is true, then you could still use the same approach, but instead have the view listen for updates to the masterArray in the ModelLocator.  You could do this either by using the changWatcher utility or Paul Williams' O

Re: [flexcoders] Re: need strategy for filtering ArrayCollections in a Cairngorm app

2006-06-09 Thread Tom Bray
Thanks for trying.  An ArrayCollection will not reflect changes made directly to its source array, so new items pushed onto masterArray do not show up in my views.-TomOn 6/9/06, Tim Hoff <[EMAIL PROTECTED]> wrote: Changes to the masterArray in the ModelLocator sho

[flexcoders] Re: need strategy for filtering ArrayCollections in a Cairngorm app

2006-06-09 Thread Tim Hoff
Changes to the masterArray in the ModelLocator should be automatically reflected in the AC if you use either of the binding methods I posted. If not, sorry. That's all I have. -TH --- In flexcoders@yahoogroups.com, "Tom Bray" <[EMAIL PROTECTED]> wrote: > > The problem is that changes to Model

Re: [flexcoders] Re: need strategy for filtering ArrayCollections in a Cairngorm app

2006-06-09 Thread Tom Bray
The problem is that changes to ModelLocator.getInstance().masterArray don't update the views' dataProviders.  In other words, the ArrayCollections that use masterArray as their source don't know when new items are added to or removed from masterArray.  That's why I was thinking that masterArray

[flexcoders] Re: need strategy for filtering ArrayCollections in a Cairngorm app

2006-06-09 Thread Tim Hoff
If that doesn't work you could try this: -TH --- In flexcoders@yahoogroups.com, "Tim Hoff" <[EMAIL PROTECTED]> wrote: > > > Something like this should do the trick: > > > > > > -TH > > --- In flexcoders@yahoogroups.com, "Tom Bray" wrote: > > > > Thanks, Tim. That makes sense but t

[flexcoders] Re: need strategy for filtering ArrayCollections in a Cairngorm app

2006-06-09 Thread Tim Hoff
Something like this should do the trick: -TH --- In flexcoders@yahoogroups.com, "Tom Bray" <[EMAIL PROTECTED]> wrote: > > Thanks, Tim. That makes sense but there's one limitation I'm not sure how > to work around. That master Array of users is going to be constantly updated > by the serv

Re: [flexcoders] Re: need strategy for filtering ArrayCollections in a Cairngorm app

2006-06-09 Thread Tom Bray
Thanks, Tim.  That makes sense but there's one limitation I'm not sure how to work around. That master Array of users is going to be constantly updated by the server to show who's currenlty online.  Since an Array isn't bindable, how would you propagate changes from that Array to the filtered Ar

[flexcoders] Re: need strategy for filtering ArrayCollections in a Cairngorm app

2006-06-09 Thread Tim Hoff
Hey Tom, In response to this question and the BindingUtils and ArrayCollection.filter question, I offer this suggestion. In the ModelLocator maintain a single master Array of all the users. Then in each instance of your view components, create a new bound ArrayCollection (dataProvider), with