0 Replies Latest reply on Feb 1, 2007 9:39 AM by 187_2007

    XML- select a apecific type

    187_2007 Level 1
      I have this XML sheet.

      <Mainparent label="AOL">
      <child label="AOl Technologies" isBranch="true"/>
      <parent label="Aol Sports">
      <child label="Football"/>
      <child label="Basketball"/>
      <child label="Soccer"/>
      <child label="Curling"/>

      I want to perform an action ONLY if it is a child that I select. not a parent ot Mainparent...

      In ActionScript I have this:

      var selectedNode:Object = event.target.selectedItem;

      How do I grab the name PARENT or CHILD?
      In other words, I want to perform an action on the leaf of the tree not any branches...