Mega Code Archive

 
Categories / Flex / Data Model
 

Access returning value from a HTTPService

<?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" creationComplete="rssRequest.send()" layout="absolute">     <mx:HTTPService id="rssRequest" url="http://yourserver.com/flex.php" />     <mx:Panel width="500" height="500" layout="absolute" title="{rssRequest.lastResult.rss.channel.title}">         <mx:VBox width="100%" height="100%">             <mx:DataGrid width="100%" height="200" id="datagridBooks" dataProvider="{rssRequest.lastResult.rss.channel.item}">                 <mx:columns>                     <mx:DataGridColumn headerText="Title" dataField="title"/>                 </mx:columns>             </mx:DataGrid>             <mx:LinkButton label="Goto Book"/>         </mx:VBox>     </mx:Panel> </mx:Application>