[flexcoders] Re: How to access the tag name in a tree XML data provider

2006-04-25 Thread greenfishinwater



I forgot to mention that this is using Flex 2 Beta 2

--- In flexcoders@yahoogroups.com, greenfishinwater
[EMAIL PROTECTED] 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





  




  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  












[flexcoders] Re: How to access the tag name in a tree XML data provider

2006-04-25 Thread pasflex



Try something like:

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

--- In flexcoders@yahoogroups.com, greenfishinwater 
[EMAIL PROTECTED] wrote:

 I forgot to mention that this is using Flex 2 Beta 2
 
 --- In flexcoders@yahoogroups.com, 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



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.