Try something like:

var tagName:String = node.name().toString();

--- In [email protected], "greenfishinwater"
<[EMAIL PROTECTED]> wrote:
>
> I forgot to mention that this is using Flex 2 Beta 2
>
> --- In [email protected], "greenfishinwater"
> <greenfishinwater@> wrote:
> >
> > In my tree I use an XML based data provider. An example is:
> >
> > <category name="cat 1" code="001">
> >   <group name="group 1" code="987">
> >     <brand name="barnd 1" code="ABC"/>
> >   </group>
> > </category>
> >
> > When a user opens a tree node, I can access an attribute as:
> >
> > var n:String = [EMAIL PROTECTED];
> >
> > How can I access the tag name to find out if it is a category,
group
> > or brand etc.
> >
> > Thank you
> >
> > Andrew
> >
>







--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




Reply via email to