Flex 做rss reader真是太方便了,只要短短几行代码就实现了
是不是太简单了??
private function xmlLoaded(evtObj:ResultEvent):void {
mlist.dataProvider=evtObj.result.rss.channel.item;
}
<mx:HTTPService id="srv" url="http://www.5dblog.com/service/rss.asp?uid=3638"
result="xmlLoaded(event)"/>
//to list
<mx:DataGrid height="151" width="306" id="mlist"
<mx:columns>
<mx:DataGridColumn dataField="title" headerText="Title"/>
<mx:DataGridColumn dataField="pubDate" headerText="Date"/>
</mx:columns>
</mx:DataGrid>
是不是太简单了??
回复Comments
{commenttime}{commentauthor}
{CommentUrl}
{commentcontent}