Flexs:rss reader

      :: Flash :: 2006-8-6 8:53
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>
  

是不是太简单了??
标签集:TAGS:
回复Comments() 点击Count()

回复Comments

{commenttime}{commentauthor}

{CommentUrl}
{commentcontent}