Mega Code Archive

 
Categories / Flex / Data Model
 

Use HTTPService to access php

<?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://server.com/proxy.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">                 <mx:columns>                     <mx:DataGridColumn headerText="Column 1" dataField="col1"/>                 </mx:columns>             </mx:DataGrid>             <mx:TextArea width="100%" height="200"/>             <mx:LinkButton label="Book"/>         </mx:VBox>     </mx:Panel> </mx:Application>