Gotit.   <mx:binding...>  or Bindutils don;t work.  

But listening for the event does.

                
__model.managedElements.addEventListener(CollectionEvent.COLLECTION_CHANGE,
buildTree);


I figured it was a newbie question.  Thanks for the help.



--- In flexcoders@yahoogroups.com, "Josh McDonald" <dzn...@...> wrote:
>
> Bindings work with any objects, so long as the fields (or the whole
class)
> are marked with [Bindable]
> 
> -Josh
> 
> On Wed, Jan 7, 2009 at 11:44 AM, john.casey64 <john.case...@...>wrote:
> 
> > I'm working on an application where I build a tree (in actionscript
> > buildtree()) where I add new leafs from data that is retieve from a
> > remote call.
> >
> > Since the buildtree() function deals with the view - I have this coded
> > in the view mxml. The tree is bound to a XMLListCollection which is
> > updated by the buildtree() function after a remote value object is
updated
> >
> > The remote RetrieveDataCommand successfully retrieves the data into a
> > business value object.
> >
> > What is the correct Cairgorm method for triggering the builtree()
> > function after the RetrieveDataCommand is complete?
> >
> > I don't want to pollute my Command logic with any specific calls to
> > buildtree()
> >
> > Should I be adding RemoteCommandComplete events to all of my
> > RemoteCommands? and then set the view logic to listen for them?
> >
> > I tried to set a Collection.COLLECTION_CHANGE listener on the Business
> > Value object from my View logic. But it seems to fire before the
> > ArrayCollection is complete.
> >
> > I also tried the BindUtils function to bind my buildtree() function to
> > my value object,  but bindutils only seems to work with MX visual
> > objects, not actionscript value objects.
> >
> > Any experts out there? I'm sure there must be a simple solution
for this.
> >
> >
> > ------------------------------------
> >
> > --
> > Flexcoders Mailing List
> > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > Alternative FAQ location:
> >
https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
> > Search Archives:
> > http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
> > Links
> >
> >
> >
> >
> 
> 
> -- 
> "Therefore, send not to know For whom the bell tolls. It tolls for
thee."
> 
> Like the cut of my jib? Check out my Flex blog!
> 
> :: Josh 'G-Funk' McDonald
> :: 0437 221 380 :: j...@...
> :: http://flex.joshmcdonald.info/
> :: http://twitter.com/sophistifunk
>


Reply via email to