|
Create a file:
PenelDemo.mxml
<?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" <mx:Script> import mx.collections.ArrayCollection; [Bindable] </mx:Script> <mx:HTTPService id="srv" url="../assets/employees.xml" useProxy="false" <mx:Panel title="Employee List" width="100%" height="100%"> <mx:DataGrid id="dg" width="100%" height="100%" dataProvider="{employees}"> </mx:Panel> </mx:Application> |
employees.xml |
<?xml version="1.0" encoding="utf-8"?> <list> <employee> </list> |