Re: [Flashcoders] Open all Branches of a Tree Component

2005-10-28 Thread Martin Schafer
Eric, Couldn't get your code to work at first. Made some slight modifications to get it to work in a single frame based code structure. This code works great for relatively small tree structures. Took around 10-15 seconds to open 1500 nodes. Meanwhile it just sits there without feedback.

Re: [Flashcoders] Open all Branches of a Tree Component

2005-10-27 Thread Daniel Cascais
Hi Martin, I've used something like this (can't remeber exactly): public function setTreeIsOpen(open:Boolean):Void { for(var i:Number = 0; i tree.length; i++) { tree.setIsOpen(tree.getTreeNodeAt(i),

Re: [Flashcoders] Open all Branches of a Tree Component

2005-10-27 Thread Martin Schafer
Daniel, I am looking for something that would allow every branch to be recursively set to Open. Wouldn't the code below only open the children of root? Martin :) On 10/27/05 2:06 PM, Daniel Cascais [EMAIL PROTECTED] wrote: Hi Martin, I've used something like this (can't remeber exactly):