0 Replies Latest reply on Aug 27, 2007 8:34 PM by rgames

    List item w/ multiple data items - how to select data items?

      I have a list component (myListBox) that is showing the labels for some data items read in from an XML file. Each item in the list has an associated name, description, and path (they're mp3 files) and they are named accordingly in the XML tags.

      Using myListBox.selectedItem.label gives the correct label but myListBox.selectedItem.data is undefined. I've tried using the XML tags after the data selector (e.g. myListBox.selectedItem.data.path) but those don't work, either. All of the examples I've found in the docs show only a single data element associated with each list item.

      So, if a list item has multiple data items associated with it, how do you select them using the listBox.selectedItem property?