Flex Accordion Rss Reader

Flex Accordion Rss Reader

Mar 11
Google Buzz

Update: RSS Reader With Project File as requested by Sidd and Johann. (Project file for Flash Developer)

Are you looking for a rss reader ? A simple one ? And the source also ? Oh, you like flex ? There you go!On new developments of Masterfoot webaplication and to involve even more all Teams participating in the football action, we installed a Feed Reader so they could setup their blog on the site so other teams can easily now news about them.I looked for a simple reader in flex, openlaszlo or even javascript. Google AJAX Feed API didn’t really worked as it required a API Key for directory an each team as a page under the respective tournament their playing.Most Flex examples were more than I needed, like a full aggregater. I just wanted a fun and simple feed reads for one RSS only and with fixed height.Nothing better than start from an example and build it yourself.The end component was a very nice RSS reader with an accordion interface where you can set the Feed’s URL and the number of post to show. It uses adobed’s xmlsyndication.There was another problem. Cross-Domain is always difficult, but we worked around it with a proxy so every blog Rss would be presented on the team page.Here is the RssReader Package with the Source and the SWF file on the Bin directory.It accepts two parameters on the URL parameters:

  • blog_rss : the Feed’s URL
  • post : number of posts to appear

Here it is runing:Have fun!

7 comments

  1. Saagar

    Do you have any steps to get it onboard an existing application ? Any kind of documentation or tutorial ? I am trying to compile it and I am getting some errors..

  2. Saagar,
    To use this in an existing application your have to:

    1 – Get the code from the MAIN file isolated and on your application. It is basically the source to request the feed and instantiated it on a iFeed class.

    2 – Use the feedreader class as it is. Just pass the ifeed object to the reader as I do on the source.

    Send me a mail with your errors. I’ll try to help.

  3. Sidd

    Hi,

    I really like the RSS Accordion Panel you have created. But I am not able to import your RSS Reader package as a Flex project. It is detecting the project but something is going wrong when I try importng the project as an archive file. Sorry but I am a beginner in Flex. Is it possible that you can export your RSS Reader project with only the files required to me in the zip format?

    Thanks very much

  4. Johann

    Hi Tiago,

    I’ve got almost the same question as Sidd; can you send me the RSS project as a Flex project zip file which can be imported by Flex?

    I cannot get it working (newbie…) with the files supplied above…

    Thanks!

    Johann

  5. There it is.. but for Flash Developer.

    Hope it helps.

  6. Brant

    I am getting a compile time error saying that IFeed on line 54 of FeedReader.mxml is not a compile-time constant, any ideas?

  7. Hi Brant,
    Thanks for the feedback.
    You probably aren’t including the AS Core library from adobe. Usually, that error is the lacking of the class IFeed. This may be due to you not putting the import of the right package or the package isn’t correctly included in the project.
    Best of luck.

Leave a Reply

ERROR: si-captcha.php plugin says GD image support not detected in PHP!

Contact your web host and ask them why GD image support is not enabled for PHP.

ERROR: si-captcha.php plugin says imagepng function not detected in PHP!

Contact your web host and ask them why imagepng function is not enabled for PHP.