Difference between revisions of "Sample RSS Widget"

From Chumby Wiki
Jump to: navigation, search
Line 4: Line 4:
  
 
In this case, we're using [http://www.chumby.com/rss/recentwidgets Chumby: Recent Widgets] RSS feed that the [http://www.chumby.com chumby.com] website provides that lists the most recent 10 new or updated public widgets.  The source file is heavily commented and can be used as a template for your own RSS-based widgets.
 
In this case, we're using [http://www.chumby.com/rss/recentwidgets Chumby: Recent Widgets] RSS feed that the [http://www.chumby.com chumby.com] website provides that lists the most recent 10 new or updated public widgets.  The source file is heavily commented and can be used as a template for your own RSS-based widgets.
 +
 +
One thing to keep in mind when you create an RSS-based widget is that the server that is providing the RSS *must* allow Flash access to that feed by using a "crossdomain.xml" file - you can read more about this at:
 +
* [http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_14213 External data not accessible outside a Macromedia Flash movie's domain]
 +
* [http://www.adobe.com/devnet/flash/articles/fplayer_security.html Security Changes in Macromedia Flash Player 7]
 +
 +
If you have a widget that seems to work fine standalone, but not from a real chumby or virtual chumby, that's very likely the cause - it will probably also fail if loaded into a web page.  If you don't have access to the source of the feed to implement the proper access rights, then you can get around this by creating another server with the proper access rights that can proxy the original feed.
  
 
FLA source file (requires Flash MX or later): [http://files.chumby.com/widgetexamples/recentwidgets.fla recentwidgets.fla]
 
FLA source file (requires Flash MX or later): [http://files.chumby.com/widgetexamples/recentwidgets.fla recentwidgets.fla]
  
 
Other examples: [[Sample Clock Widget]]
 
Other examples: [[Sample Clock Widget]]

Revision as of 10:11, 2 November 2006

recentwidgets_ss.jpg

This example file shows how to make a simple widget that displays an RSS feed.

In this case, we're using Chumby: Recent Widgets RSS feed that the chumby.com website provides that lists the most recent 10 new or updated public widgets. The source file is heavily commented and can be used as a template for your own RSS-based widgets.

One thing to keep in mind when you create an RSS-based widget is that the server that is providing the RSS *must* allow Flash access to that feed by using a "crossdomain.xml" file - you can read more about this at:

If you have a widget that seems to work fine standalone, but not from a real chumby or virtual chumby, that's very likely the cause - it will probably also fail if loaded into a web page. If you don't have access to the source of the feed to implement the proper access rights, then you can get around this by creating another server with the proper access rights that can proxy the original feed.

FLA source file (requires Flash MX or later): recentwidgets.fla

Other examples: Sample Clock Widget