private var cbSelectedIndx:Number = -1; private function cbOpen():void { cbSelectedIndx = cb1.selectedIndex; cb1.selectedIndex = -1; } private function cbClosed():void { if(cb1.selectedIndex == -1) cb1.selectedIndex = cbSelectedIndx; } <s:ComboBox id="cb1" open="cbOpen()" change="trace(cb1.selectedItem)" close="cbClosed()"> <s:ArrayList> <fx:String>Red</fx:String> <fx:String>Green</fx:String> <fx:String>Blue</fx:String> </s:ArrayList> </s:ComboBox>
<s:ComboBox id="cb1" open="cb1.selectedIndex = -1" change="trace(cb1.selectedItem)"> <s:ArrayList> <fx:String>Red</fx:String> <fx:String>Green</fx:String> <fx:String>Blue</fx:String> </s:ArrayList> </s:ComboBox>
Los miembros registrados pueden publicar, seguir actualizaciones y más. ¿Nuevo aquí? Regístrate gratis.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.