<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/halo" minWidth="1024" minHeight="768"> <fx:Declarations> <!-- 下拉列表的数据提供 --> <s:ArrayList id="_conditionTypes"> <s:source> <fx:Object label="用户名" data="name"/> <fx:Object label="EMAIL" data="email"/> </s:source> </s:ArrayList> </fx:Declarations> <s:HGroup> <s:Label id="msg" text="查询条件"/> <s:TextInput id="conditionValue" /> <s:DropDownList id="conditionType" dataProvider="{_conditionTypes}" click="msg.text=conditionType.selectedItem.data"> </s:DropDownList>