Flex4组件 - DropDownList
DropDownList 控件包含下拉列表,用户可从中选择单个值。其功能与 HTML 中 SELECT 表单元素的功能非常相似。 同Halo的ComboBox。

注:DropDownList还有个prompt属性,用来设置当没有选中项时(即selectedIndex = -1),显示的提示文字:
示例如下:
<s:DropDownList close="Alert.show(event.currentTarget.selectedItem)" x="20" y="20"> <s:ArrayCollection> <fx:String>选项1</fx:String> <fx:String>选项2</fx:String> <fx:String>选项3</fx:String> </s:ArrayCollection> </s:DropDownList>效果图:

注:DropDownList还有个prompt属性,用来设置当没有选中项时(即selectedIndex = -1),显示的提示文字:
<s:DropDownList prompt="请选择...">效果图:
