openduration inactive dans combobox
Bonjour,
J'ai appliqué un openduration dans un combobox auquel j'ai attribué un item renderer.
Du coup, le openduration est inactif lors de la première ouverture du combobox... après ca fonctionne très bien.
Code combobox :
Code:
1 2 3 4 5 6 7 8 9 10 11 12
| <mx:ComboBox id="comboBox"
openDuration="1000"
closeDuration="1000"
alternatingItemColors="[0xDFDFDF, 0xEEEEEE]" itemRenderer="CmBxItmRdr">
<mx:dataProvider>
<mx:XMLList>
<type value="0" name="Taille" />
<type value="1" name="Création" />
<type value="2" name="Modification" />
</mx:XMLList>
</mx:dataProvider>
</mx:ComboBox> |
Code ItemRenderer :
Code:
1 2 3 4 5 6 7 8 9 10 11
| <?xml version="1.0" encoding="utf-8"?>
<mx:VBox xmlns:mx="http://www.adobe.com/2006/mxml"
>
<mx:Label text="{data.@name}"
fontSize="11"
height="10"
paddingTop="-3"
paddingBottom="-3"
color="0x000000"/>
</mx:VBox> |
Merci.
Alexandre