1 Reply Latest reply on Oct 26, 2009 6:07 PM by Flex harUI

    Combobox - selectedItem

    Zolotoj Level 3

      I am a bit confused with selectedItem. Here is my combobox definition:

      <mx:ComboBox width="100" id="labels" change="labels_changeHandler(event)" labelField="filename"/>

      SelectedItem looks like this:

      <availablelabels>

        <filename>

          160down

        </filename>

        <id>

          25

        </id>

      </availablelabels>

       

      When I run it I am testing selectedItem like this:

      filename = labels.selectedItem.filename;

      and I see that filename  is a type of XMLList. But I was expecting it to be a string with a value of 160down.

      What I am missing?

       

      Thanks