RE: [Flashcoders] Close all brances in tree component

2006-09-14 Thread Mark Mulhollam
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

Re: [Flashcoders] Close all brances in tree component

2006-09-12 Thread Johannes Nel
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

Re: [Flashcoders] Close all brances in tree component

2006-09-12 Thread Éric Thibault
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);

Re: [Flashcoders] Close all brances in tree component

2006-09-12 Thread Éric Thibault
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 !=

RE: [Flashcoders] Close all brances in tree component

2006-09-12 Thread Lieven Cardoen
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