<fx:Declarations> <!-- 将非可视元素(例如服务、值对象)放在此处 --> </fx:Declarations>
<fx:Declarations> <s:HTTPService id="employeeService" url="http://adobetes.com/f4iaw100/remoteData/employees.xml"/> </fx:Declarations>
<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/mx" minWidth="955" minHeight="600" creationComplete="employeeService.send()">
<mx:Form x="87" y="73" width="290" height="98"> <mx:FormItem label="test"> <s:DropDownList id="dropDownList" labelField="lastName" dataProvider="{testd.lastResult.employees.employee}"/> </mx:FormItem> <mx:FormItem label="Office Phone:"> <s:TextInput id="phone" text="{dropDownList.selectedItem.phone}"/> </mx:FormItem> </mx:Form>