Ah, ok, you want to update the server and refresh the tree on every change to the tree. Your event mechanism is fine for that.
Note that each time you re-assign the dataProvider, which you porbably do in the result handler of the getDirectories method, the Tree will entirely re-render, closing open branches, etc. Preserving this state and re-applying it after a dataProvider re-assignment can be messy. I think I would not-re-assign the dataProvider every time, but rather, in the result handler, if the method call was successful, I would update only the changed dataProvider item specifically. Tracy ________________________________ From: [email protected] [mailto:[email protected]] On Behalf Of Dan Vega Sent: Monday, December 29, 2008 1:16 PM To: [email protected] Subject: Re: [flexcoders] Re: Custom Event Problem I think you make a great point but im just not sure how to do it. The data provider for the tree is not getting updated just yet. What I am doing is throwing a popup on the screen with what you want to rename the folder to. I do the renaming on the server side. Somehow I have to tell my main application to call the getDirectories() method again. I can do it from the view without really repeating a ton of stuff. Im just kind of stuck on how to make another call back to the server to list the dirs again. Thank You Dan Vega [email protected] <mailto:[email protected]> http://www.danvega.org <http://www.danvega.org>

