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
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 =
( ...
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
id {
>> var _node:Object = event.currentTarget;
>> _node.children = event.result as Array;
>> }
>>
>> - Ivo
>>
>>
>>
>>
>>
>> --
>> *From:* Dan Vega
>> *To:* flexcoders@yahoogroups.com
>> *Sent:
> *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(
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
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
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
If you read through the post I am actually passed that and now trying to
figure out how to dynamically insert / remove nodes.
Dan
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
10 matches
Mail list logo