<?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" creationComplete="siteData.send()"> <mx:Script> <![CDATA[ import mx.collections.XMLListCollection; import mx.controls.*; import mx.events.ListEvent; import mx.rpc.events.ResultEvent; import mx.controls.Alert; [Bindable] private var fullXML:XMLList; private function contentHandler(evt:ResultEvent):void{ fullXML = evt.result.values; } </mx:Script> <mx:VBox> <mx:Label text="This Data Grid is loading the full XML file"/> <mx:DataGrid width="600" id="datagrid" dataProvider="{fullXML}"> <mx:columns> <mx:DataGridColumn headerText="Select"> <mx:itemRenderer> <mx:Component> <mx:HBox horizontalAlign="center"> <mx:CheckBox id="check"/> </mx:HBox> </mx:Component> </mx:itemRenderer> </mx:DataGridColumn> <mx:DataGridColumn dataField="release_version" headerText="Release"/> <mx:DataGridColumn dataField="build" headerText="build"/> <mx:DataGridColumn dataField="time_login" headerText="time_login"/> <mx:DataGridColumn dataField="time_tunnel" headerText="time_tunnel"/> <mx:DataGridColumn dataField="rate_login" headerText="time_tunnel"/> <mx:DataGridColumn dataField="rate_tunnel" headerText="rate_tunnel"/> </mx:columns> </mx:DataGrid> </mx:VBox> <mx:HTTPService url="http://localhost/php_genxml.php" id="siteData" result="contentHandler(event)" resultFormat="e4x"/> </mx:Application>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)