Yes, I have become a Flexaholic
. This is a simple RSS reader, I developed it using Adobe Flex.. The whole application contains only 19 lines of code
.
Code:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
<mx:StringValidator id="urlValidator" source="{myTextInput}" property="text"/>
<mx:HTTPService id="myRSSFeed" url="{myTextInput.text}" />
<mx:Label x="10" y="12" text="RSS URL:" fontWeight="bold"/>
<mx:TextInput id="myTextInput" width="357" x="68" y="10"/>
<mx:Button x="371" y="40" label="GO !!" click="myRSSFeed.send()"/>
<mx:DataGrid id="myDataGrid" dataProvider="{myRSSFeed.lastResult.rss.channel.item}"
width="417.5" height="144"
click="{myTextArea.htmlText =
myRSSFeed.lastResult.rss.channel.item[myDataGrid.selectedIndex].description}"
x="7.5" y="70">
<mx:columns>
<mx:DataGridColumn headerText="Date" dataField="pubDate" textAlign="left"/>
<mx:DataGridColumn headerText="Title" dataField="title" textAlign="center"/>
</mx:columns>
</mx:DataGrid>
<mx:TextArea id="myTextArea" width="415" height="162" x="10" y="222"/>
</mx:Application>
Screenshots:
-
1
Pingback on Mar 18th, 2008 at 7:42 pm
[...] source code is huge if you compared it to the Flex version of the same application I have posted earlier, cause at the moment I want (and hope) to master ActionScript 3.0, its the neatest OOP language I [...]

October 27, 2008 at 7:39 pm
I am new to Flex and I’m using Flex Builder 3 to run the code above. I don’t see any property called RSS in myRSSFeed.lastResult (line 12).
Any idea?
December 10, 2008 at 7:38 pm
If I wanted to pull the last 3 posts but not display in a DataGrid, how would one parse through and save the xml feed? Would an ArrayCollection be the way to go?
Thanks!
AB
March 24, 2009 at 3:37 am
Great code. I noticed that this throws a couple of errors, though it works. One of which is the “useProxy must be set to “false” error on applicationCompletion. Any idea why this occurs?