Adobe收购了MicorMedia后推除了FlexBuilder2.0 。因为本人对Flash比较喜欢,所以就装了个FlexBuilder2.0看着它的帮助做了一个程序,感觉挺不错的,我做的就是它帮助里的第一个程序,rss阅读器,下面是全部的代码
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="freedRequest.send()">
<mx:HTTPService id="freedRequest" url="http://www.cnblogs.com/interboy/category/61221.html/rss" useProxy="false"/>
<mx:Panel x="45" y="20" width="604" height="494" layout="absolute" title="{freedRequest.lastResult.rss.channel.title}" cornerRadius="12">
<mx:DataGrid x="20" y="20" width="554" id="dgPosts" dataProvider="{freedRequest.lastResult.rss.channel.item}">
<mx:columns>
<mx:DataGridColumn headerText="Posts" dataField="title"/>
<mx:DataGridColumn headerText="Date" dataField="pubDate" width="150"/>
</mx:columns>
</mx:DataGrid>
<mx:LinkButton x="20" y="422" label="Read Full Post" click="navigateToURL(new URLRequest(dgPosts.selectedItem.link));"/>
<mx:TextArea width="554" htmlText="{dgPosts.selectedItem.description}" height="229" editable="false" y="185" x="20"/>
</mx:Panel>
</mx:Application>
【推荐】还在用 ECharts 开发大屏?试试这款永久免费的开源 BI 工具!
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步