You can change the behavior of isBranch in your tree - for example,
I'm hiding the icon if I'm on my "Test" item:
private function isBranch(item:Object):Boolean
{
if (item != null)
if (item.folderName == "Test")
{
return false;
}
return _dataDescriptor.isBranch(item, iterator.view);
return false;
}
Hope this helps!
-Karen Hartley
--- In [email protected], "djdyland" <[EMAIL PROTECTED]> wrote:
>
> That doesn't seem to get rid of the triangle unfortunely.. sounded
> right tho!
>
> --- In [email protected], "Alex Harui" <aharui@> wrote:
> >
> > hasChildren() should return false.
> >
> >
> >
> > ________________________________
> >
> > From: [email protected]
> [mailto:[EMAIL PROTECTED] On
> > Behalf Of djdyland
> > Sent: Monday, October 29, 2007 10:18 AM
> > To: [email protected]
> > Subject: [flexcoders] Re: Tree: Removing expand triangle from
> select
> > nodes
> >
> >
> >
> > Hi, Thanks for the reply.
> >
> > Like I said I have a ITreeDataDescriptor.
> >
> > But I don't see how I can use that to disable the expand triagle
> for
> > certain nodes.
> >
> > Thanks
> > Dylan
> >
> > --- In [email protected] <mailto:flexcoders%
> 40yahoogroups.com>
> > , "Alex Harui" <aharui@> wrote:
> > >
> > > Custom ITreeDataDescriptor
> > >
> > >
> > >
> > > ________________________________
> > >
> > > From: [email protected] <mailto:flexcoders%
> 40yahoogroups.com>
> >
> > [mailto:[email protected] <mailto:flexcoders%
> 40yahoogroups.com>
> > ] On
> > > Behalf Of djdyland
> > > Sent: Monday, October 29, 2007 8:41 AM
> > > To: [email protected] <mailto:flexcoders%
> 40yahoogroups.com>
> > > Subject: [flexcoders] Tree: Removing expand triangle from select
> > nodes
> > >
> > >
> > >
> > > Hello,
> > >
> > > I'm building a scripting reference app that is populated from an
> > XML
> > > file. The structure is something like this.
> > >
> > > <groupOfAssociatedClasses name="name of container">
> > > <class name="className">
> > > <property name="propertyName">
> > > <type>theType</type>
> > > </property>
> > > <method name="methodName">
> > > <inputType>type</inputType>
> > > <returnValue>value</returnValue>
> > > </method>
> > > </class>
> > > <class name="className">
> > > <property name="propertyName">
> > > <type>theType</type>
> > > </property>
> > > <method name="methodName">
> > > <inputType>type</inputType>
> > > <returnValue>value</returnValue>
> > > </method>
> > > </class>
> > > </groupOfAssociatedClasses>
> > > <groupOfAssociatedClasses name="name of container">
> > > <class name="className">
> > > <property name="propertyName">
> > > <type>theType</type>
> > > </property>
> > > <method name="methodName">
> > > <inputType>type</inputType>
> > > <returnValue>value</returnValue>
> > > </method>
> > > </class>
> > > </groupOfAssociatedClasses>
> > >
> > > I created a tree discriptor to filter out all the children on
> each
> > > class so it doesn't display them in the tree. All I want to see
> in
> > > the tree is the names of the containers and the names of the
> > classes.
> > >
> > > My proplem is that beucase the classes have children flex is
> > > displaying the expand node triangle beside the icon which ends
> up
> > > doing nothing becuase of the filter. How can I get rid of the
> > expand
> > > node triangle?
> > >
> > > I tried to turn it off but it ended up turning it off for the
> > parent
> > > container nodes as well.
> > >
> > > Any Help is much appreciated :)
> > >
> >
>