Call HTTP server and set result to DataGrid
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="initApp()"> <mx:HTTPService id="srv" url="data.xml" resultFormat="object" result="onResult(event)"/> <mx:DataGrid id="grid" width="100%" height="100%" dataProvider="{homesForSale}"> <mx:columns> <mx:DataGridColumn headerText="No." dataField="total"/> <mx:DataGridColumn headerText="City" dataField="city"/> <mx:DataGridColumn headerText="Price Ranges" dataField="range"/> </mx:columns> </mx:DataGrid> <mx:Script> import mx.collections.ArrayCollection; import mx.rpc.events.ResultEvent; [Bindable] private var homesForSale:ArrayCollection; private function initApp():void { this.srv.send(); } private function onResult(evt:ResultEvent):void { this.homesForSale = evt.result.data.region; } </mx:Script> </mx:Application>