= "Houston" && item.name <= "New York"; } public var xmlData:XML = Bob PersonA 25
111 Main
Anders PersonB 26
222 Main
Cathy PersonC 22
333 Main
Smith PersonD 32
444 Main
; [Bindable] public var players:Array = [{jerseyNumber:"80",lastName:"PlayerA",firstName:"Troy"}, {jerseyNumber:"12", lastName:"PlayerB",firstName:"Tom"}, {jerseyNumber:"21",lastName:"PlayerC",firstName:"Randall"}, {jerseyNumber:"7", lastName:"PlayerD",firstName:"Doug"}, {jerseyNumber:"4", lastName:"PlayerE",firstName:"Adam"}, {jerseyNumber:"54", lastName:"PlayerF",firstName:"Tedy"}, {jerseyNumber:"93", lastName:"PlayerG",firstName:"Richard"}, {jerseyNumber:"50", lastName:"PlayerH",firstName:"Mike"}, {jerseyNumber:"7", lastName:"PlayerI",firstName:"Chris"}, {jerseyNumber:"55", lastName:"PlayerJ",firstName:"Willie"}, {jerseyNumber:"2", lastName:"PlayerD",firstName:"Doug"}, {jerseyNumber:"28", lastName:"PlayerK",firstName:"Corey"}]; public var colXML_AS:XMLListCollection = new XMLListCollection(xmlData.employee); public var colArr_AS:ArrayCollection = new ArrayCollection(players); public var cursorXML_AS:IViewCursor; public var cursorArr_AS:IViewCursor; public var cursorArr_Airport:IViewCursor; public var cursorArr_Inline:IViewCursor ; public function initPlayers():void { var sortArr:Sort = new Sort(); var f:SortField = new SortField("jerseyNumber"); f.descending = true; f.numeric = true; sortArr.fields = [f]; colArr_AS.sort = sortArr; colArr_AS.refresh(); cursorArr_AS = colArr_AS.createCursor(); } public function initEmployees():void { //apply the appropriate Sorts var sortXML:Sort = new Sort(); sortXML.fields=[new SortField("last-name")]; colXML_AS.sort=sortXML; colXML_AS.refresh(); cursorXML_AS = colXML_AS.createCursor(); } ]]>
{airportCodes} {players}