플레스 도움말의 예제
이 예제를 통해서 flex data service를 사용하지 않고 http를 이용해서
데이터를 binding 시캐보았다.
<?xml version="1.0"?>
<!-- Simple example to demonstrate the HTTPService tag. -->
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
creationComplete="feedRequest.send();">
<!-- The url property specifies the location of the requested file,
in this case the RSS 2.0 feed of Matt Chotin's blog.
As of this writing, the URL was still valid, but you should
check to make sure it hasn't changed.
You should use the latest RSS 2.0 URL listed on the right side of
the blog at http://www.adobe.com/go/mchotinblog. -->
<mx:HTTPService
id="feedRequest"
url="http://weblogs.macromedia.com/mchotin/index.xml"
useProxy="false" />
<mx:Panel title="HTTPService Example" height="75%" width="75%"
paddingTop="10" paddingBottom="10" paddingLeft="10" paddingRight="10">
<mx:DataGrid id="dgPosts" height="50%" width="75%"
dataProvider="{feedRequest.lastResult.rss.channel.item}">
<mx:columns>
<mx:DataGridColumn headerText="Posts" dataField="title" />
<mx:DataGridColumn headerText="link" dataField="link" />
</mx:columns>
</mx:DataGrid>
<mx:TextArea height="50%" width="75%" htmlText="{dgPosts.selectedItem.description}"/>
</mx:Panel>
</mx:Application>
flex에서 Data formatting(데이터 포맷 지정하기) (0) | 2007.08.08 |
---|---|
플렉스(Flex)에서 팝업창을 만드는 방법 (0) | 2007.08.06 |
flex에서 swf나 mxml에 파라미터를 던지는 방법(Using query string parameters) (0) | 2007.08.06 |
Compile mxml in Apache/IIS (0) | 2007.08.04 |
flex에서 Data type (0) | 2007.08.04 |