|
<?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" <mx:Script> import mx.collections.*; [Bindable] private function initList() : void ]]> <mx:XML id="source" format="e4x"> <mx:XMLListCollection id="col" source="{source.product}" /> <mx:HTTPService id="srv" url="../assets/airports.xml" result="initList()"/> <mx:Label text="List bound to an ArrayCollection"/> <mx:Label text="List with an XMLCollection as its dataProvider and <mx:Label text="List with an XMLCollection as its dataProvider and </mx:Application> |
airports.xml |
<?xml version="1.0" encoding="utf-8"?> <airports> |