0 Replies Latest reply on Apr 28, 2007 6:57 PM by sherif86

    is there a reason this should be down this way

    sherif86
      <mx:HDividedBox width="100%" height="100%">
      <mx:Tree id="tree1" width="50%" height="100%" labelField="@label"
      showRoot="false" dataProvider="{treeData}" change="treeChanged(event)"/>
      <mx:TextArea height="100%" width="50%"
      text="Selected Item: {selectedNode.@label}"/>
      </mx:HDividedBox>

      Vs.
      <mx:Tree id="tree1" width="50%" height="100%" labelField="@label"
      showRoot="false" dataProvider="{treeData}
      <mx:TextArea text=" Selected Item: {tree1.selectedItem.label}" height="100%" width="100%"/>

      both of them work so is one preffered over the otehr