Flex 2 MXNA RSS Reader Example #2 (HTTPService)

Posted on July 5, 2006 | 5 comments

This example RSS Reader does exactly what my first Macromedia XML News Aggregator (MXNA) RSS Reader Example does, except it uses HTTPService to do it with.
MXNA can be found here http://weblogs.macromedia.com/mxna/.

This example shows how to load external XML data with HTTPService(ie: RSS feed or Atom feed) and parse through the data.
It display the data using a repeatar class and uses navigateToUrl to provide links back to the
blog posts themselves.

To see the application run go to http://renaun.com/flex2/MXNARSSReader/RSSReader2.html
To see the application’s source code go to http://renaun.com/flex2/MXNARSSReader/srcview/

  • Tolga Erdogus

    Do you have any experience with xml updates?
    How easy is it to build HTTPService based flex2 apps that actually update data in a database using xml (sqlxml)?

    Thanks

  • http://www.renaun.com Renaun Erickson

    Simple as other XML applications. Its XML, all the processing on the backend is the same.

    Renaun

  • http://paulkarpenko.com/flash/LRDb.swf Paul

    I created a simple XML reader in Flex 2 myself ( http://paulkarpenko.com/flash/LRDb.swf ) and while the swf works from the machine I created it on (opening the URL, seeing the data in the grid) .. almost nobody else can see the data that should be in the grid.

    Do you know if this something to do with HTTPService or Flex 2 or what?

  • http://www.renaun.com Renaun Erickson

    I was able to view data in the grid. If its just the xml not showing up them have them try and view the xml directly. If its the SWF not looking make sure they have FP9 of course.

    Your polling data from your own domain so crossdomain security is not an issue.

    Good luck,

  • Paul Karpenko

    Turns out I was missing a crossdomain.xml file on my webserver, making XML unreachable there. Live and learn.