ComboBox
{
color : #7b1281;/*couleur du texte*/
rollOverColor: #dd90dd;/*couleur du fond au survol*/
textSelectedColor: #7b1281;/*couleur du texte sélectionné*/
selectionColor: #ffccff;/*couleur du fond sélectionné */
borderStyle: none;/*suppression de la bordure*/
fillAlphas: 1.0, 1.0;/*couleur de fond*/
fillColors: #ffffff, #ffffff;
dropdownStyleName: comboBoxDropdown;/*renvoi au style nommé*/
}
.comboBoxDropdown
/*propriété du panneau déroulé
{
backgroundColor: #ffffff;
}
Pour le tester :
<mx:Script>
<![CDATA[
[Bindable]
public var maListe: Array = [
{label:"texte1", data:1},
{label:"Texte2", data:2},
{label:"Texte3", data:3} ];
[Bindable]
public var selectedItem:Object;
]]>
</mx:Script>
<mx:ComboBox
dataProvider="{
maListe
}" width="150"
close="selectedItem=ComboBox(event.target).selectedItem"/>
Aucun commentaire:
Enregistrer un commentaire