0 Replies Latest reply on May 20, 2008 2:03 PM by John Hall

    Tree control parent node label

    John Hall Level 4
      The following code works fine (except the part in caps, which isn't code). Suggestions?

      private function changeEvt(event:Event):void {
      var theData:String = ""
      if (event.currentTarget.selectedItem.@value) {
      theData = " Data: " + event.currentTarget.selectedItem.@value;
      }
      trace(event.currentTarget.selectedItem.@label + theData);

      //trace(NEED PARENT NODE LABEL HERE IF IT EXISTS);
      }