Hey Adam, Maintain the state of the tree in your model and map this state to the tree in your View using Data Binding. The command changes the state and the bindings refresh your view. You don't need to explicitly call methods on the tree. Cheers, Aman
________________________________ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of achegedus Sent: Thursday, May 17, 2007 10:28 PM To: [email protected] Subject: [flexcoders] tree event using cairngorm Hi Everyone! I'm trying to write a dynamic tree using cairngorm, and I ran into a problem. I want to be able to expand a node, have it go to my webservice, return the xml and open the node. In the command that is handling the response to the webservice, i need to call the expandItem method of the tree. And there's the trouble... How do I call a method for a flex tree from a cairngorm command? Any suggestions?? Thanks, Adam - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - This message is intended only for the personal and confidential use of the designated recipient(s) named above. If you are not the intended recipient of this message you are hereby notified that any review, dissemination, distribution or copying of this message is strictly prohibited. This communication is for information purposes only and should not be regarded as an offer to sell or as a solicitation of an offer to buy any financial product, an official confirmation of any transaction, or as an official statement of Lehman Brothers. Email transmission cannot be guaranteed to be secure or error-free. Therefore, we do not represent that this information is complete or accurate and it should not be relied upon as such. All information is subject to change without notice.

