OK, explication de texte
var select=c.getSelectedItem().label;
I declare a variable called "select". You can call it "pom", "shirt", "beer" or anything you like.
c is your component.
c.getSelectedItem() will return the item that has been selected. This item has a label property and a data property. When I entered the items:
ActionScript Code:
myCombo.addItem("friend");
friend is the label. I could have entered a data but we didn't need it.
c.getSelectedItem().label will return the "label" property of the selected item.
Voilà!
pom