i see. what i would do is use a lazy loading mechanism. so you only display
the top level branches. when the user opens a branch then you lazy load the
child nodes. when the user opens the branch then you can get the node they
opened and filter the node they opened of all the noshow nodes.

// in the open node event

var filteredNode:XML = myTree.selectedNode.myFilter;
myTree.selectedNode = filteredNode;

actually, i think there is a way to apply a filter on xmllist collection non
destructively. i think maybe you could put your selected node into an xml
list collection and then filter it. if this was AS2 i'd be able to help you
more.

On 12 Apr 2007 18:40:43 -0700, hosey hosey <[EMAIL PROTECTED]> wrote:

  Thanks, I dont believe that can work.

If the data is
<xml>
   <cb title="hello">
      <noshow notitle="dontshowanything"/>
      <cb title="there"/>
   </cb>
</xml>

and I set the datasource=data.cb

then the tree appears with hello and all of the following tags.

if I set the datasource =data..cb
then I get an XMLlist of all of the tags I need , but the first of which
expands revealing the no show tag

if I set the datasource=data.cb.(nodeName!="noShow").. the first of which
expands revealing the no show tag


Anyways I am looking into creating a filter function, but I think a better
way is to extned a renderer...but I dont know yet....

Thanks
Hosey

Reply via email to