(English version below)
Inspiriert vom miniFlickr Beispiel in SWX, habe ich einen kleinen RSS Reader für Flash Lite 2 geschrieben.
Das Beispiel nutzt SWXml. SWXml ist eine Serviceklasse für SWX, mit der man problemlos die Inhalte aus XML Dateien oder RSS Feeds einlesen. Diese Anwendung zeigt, dass dies auch auf sehr einfache Weise mit Flash Lite (2.0 und 2.1) funktioniert.
Im folgenden ein Screencast, den ich von Adobe Device Central abgefilmt habe. miniRSS Reader lädt den RSS Feed von Aral Balkan und stellt ihn dar:
Wer seinen eigenen Feed anzeigen will, muss nur die URL in der .fla Datei abändern. Aktuell ist die Anwendung so eingestellt, dass der Feed vom Format RSS2 sein muss. Mit ein paar kleinen Änderungen kann jedoch auch jedes andere Feedformat (Atom, …) genutzt werden.
Um die Anwendung zu kompilieren, benötigt man noch die SWX ActionScript-Klassen. Man kann die Files dazu einfach zu den anderen Beispiel von swxformat.org kopieren.
Wer SWX noch nicht kennt, sollte sich unbedingt den unterhaltsamen Vortag von der Flashforum Konferenz anschauen.
[kml_flashembed movie=“http://www.video-flash.de/wp-content/uploads/2007/12/minirss-screencast.swf“ height=“564″ width=“394″ /]
English version:
Inspired by the SWX miniFlickr example, I wrote this RSS reader for Flash Lite.It uses SWXml, my service class for SWX that parses XML files and RSS feeds.
Watch the screencast showing you how miniRSS loads and displays the feed of Aral’s web site.
If you want to use miniRSS with your own feed, just change the URL in the .fla file. At the moment, the application is configured for RSS2 feeds. It’s very easy to change the format to another format, e.g. Atom (have a look at the SWXml documentation).
If you want to compile the application, be sure to have the SWX ActionScript classes (download the SWX ActionScript Library from swxformat.org). Just copy miniRSS to the other examples.
Download: miniRSS (.fla und .swf)
Link: SWXml: XML API for SWX
Link: Let’s talk about SWX (Aral Balkan, Flashforum Konferenz 2007)
[ad]
Hey man, that looks so cool — you must enter it in the SWX contest! :)