3 Replies Latest reply on Nov 16, 2007 1:45 PM by Peter deHaan

    MX Tree Control Item Events

    evsPeart Level 1

      How I can do for each item in the Tree Control to have events, like a click event or something like that.
      So when the user choose a item in the Tree Control, I need to show a panel with other options and the same with the other items... the click event must show diferent options.

      Regards...


      <mx:Tree id="TreeProject"
      width="326"
      height="395"
      labelField="@label"
      showRoot="true"
      defaultLeafIcon="{myDefaultLeafIcon}"
      folderOpenIcon="{myFolderOpenIcon}"
      folderClosedIcon="{myFolderClosedIcon}" >

      <mx:dataProvider>
      <mx:XMLListCollection id="ProjectTree">
      <mx:XMLList>
      <folder label="Project Name">
      <folder label="Home Page">
      <folder label="Slide Show"/>
      <folder label="Other Folder">
      </folder>
      </folder>
      </folder>
      </mx:XMLList>
      </mx:XMLListCollection>
      </mx:dataProvider>
      </mx:Tree>