As suggested, resetting your dataProvider to whatever you started with is fast.
I use this :
myTree.dataProvider = myTreeDP.firstChild;
Mark Mulhollam
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Lieven
Cardoen
Sent: Tuesday, September 12, 2006
this is a cheat. reset your dataprovider.
On 9/12/06, Lieven Cardoen [EMAIL PROTECTED] wrote:
Does anybody have a function to close all branches in tree
component???(V2 component Flash)
Thx, Lieven Cardoen
___
Flashcoders@chattyfig.figleaf.com
To
Here is my old code
Good luck!
function CloseAll() {
var i:Number;
var j:Number;
j = this.length;
for(i = 0; i j; i++) {
var oNode:XMLNode = this.getTreeNodeAt(i);
if(oNode != undefined this.getIsBranch(oNode)) {
this.CloseNode(oNode);
OUPS!
This code is attached to the tree instance!
;-)
A+
Éric Thibault a écrit :
Here is my old code
Good luck!
function CloseAll() {
var i:Number;
var j:Number;
j = this.length;
for(i = 0; i j; i++) {
var oNode:XMLNode = this.getTreeNodeAt(i);
if(oNode !=
Thx.
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Éric Thibault
Sent: dinsdag 12 september 2006 16:10
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Close all brances in tree component
OUPS!
This code is attached to the tree instance
5 matches
Mail list logo