I'm new to flex and I'm having a little trouble figuring this out...

I need to lazily populate a tree control via an HttpService object.  
So far, I can retreive the top node and it's children.  For each 
child that has children of it's own, I add a dummy child tag 
to "trick" flex and set the hasChildren attribute correctly.

Next, I trap the itemOpen event on the tree.  Using the TreeEvent 
passed to the event handler, I can correctly call the HttpService 
again, get the next level, and populate a new XMLListCollection with 
the results.

This is where I have problems...

I can't figure out how to take the new XMLListCollection and add it 
to the tree's dataProvider.  Or should I add it directly to the tree?

Can anyone can point me in the right direction and (please) give an 
example or two?  Thanks in advance.

Bruce






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to