Re: [flexcoders] Tree problems

2008-12-20 Thread Dan Vega
I actually stuck a placeholder on to the empty array and now everything seems to be working out ok, thanks for the help guys! Thank You Dan Vega danv...@gmail.com http://www.danvega.org On Sat, Dec 20, 2008 at 4:29 PM, Dan Vega wrote: > Same result .. > > private function listDirec

Re: [flexcoders] Tree problems

2008-12-20 Thread Dan Vega
Same result .. private function listDirectories(event:ResultEvent):void { var dirs:Array = event.result as Array; // if the _directories array is null this is our root request if(_directories == null) { _directories =

Re: [flexcoders] Tree problems

2008-12-20 Thread ivo
( ... From: Dan Vega To: flexcoders@yahoogroups.com Sent: Saturday, December 20, 2008 11:37:11 AM Subject: Re: [flexcoders] Tree problems Well i used that approach before and now I am back to using the same approach. A placholder to that array works great but the problem I had before is coming

Re: [flexcoders] Tree problems

2008-12-20 Thread Dan Vega
id { >> var _node:Object = event.currentTarget; >> _node.children = event.result as Array; >> } >> >> - Ivo >> >> >> >> >> >> -- >> *From:* Dan Vega >> *To:* flexcoders@yahoogroups.com >> *Sent:

Re: [flexcoders] Tree problems

2008-12-20 Thread Dan Vega
> *To:* flexcoders@yahoogroups.com > *Sent:* Friday, December 19, 2008 10:28:29 PM > *Subject:* Re: [flexcoders] Tree problems > > I am not sure what you mean by getChildren( ) though, when a branch is > clicked this method is called. > > private function onItemOpen(

Re: [flexcoders] Tree problems

2008-12-20 Thread ivo
From: Dan Vega To: flexcoders@yahoogroups.com Sent: Friday, December 19, 2008 10:28:29 PM Subject: Re: [flexcoders] Tree problems I am not sure what you mean by getChildren( ) though, when a branch is clicked this method is called. private

Re: [flexcoders] Tree problems

2008-12-19 Thread Dan Vega
I am not sure what you mean by getChildren() though, when a branch is clicked this method is called. private function onItemOpen(event:TreeEvent):void { var path:String = event.item.path; FileManager.getDirectories(path); } The getDirectori

RE: [flexcoders] Tree problems

2008-12-19 Thread Alex Harui
oders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Dan Vega Sent: Friday, December 19, 2008 9:36 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Tree problems If you read through the post I am actually passed that and now trying to figure out how to dynamically insert / remove

Re: [flexcoders] Tree problems

2008-12-19 Thread Dan Vega
If you read through the post I am actually passed that and now trying to figure out how to dynamically insert / remove nodes. Dan

RE: [flexcoders] Tree problems

2008-12-19 Thread Alex Harui
Typically, this is done via a customized ITreeDataDescriptor. It should always return true for isBranch and hasChildren, and return an empty ArrayCollection for getChildren that you fill later with the actual children. From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Beha