Infinite Array
  • experiments
  • tutorials
  • projects
  • resources
  • all posts

tutorials: February 2008 Archives

Yahoo Pipes + Flex Tutorial

By ryan on February 10, 2008 12:19 PM | Permalink | Comments (0) | digg this | del.icio.us | reddit
flexpipes.jpg Yahoo Pipes is a pretty nifty utility for quickly bundling data sources from the web into one neat feed.  While you can do nearly everything Pipes does with ActionScript, the feeds must be cached locally for flash player to access them because of crossdomain policies.  For this reason, it is nice to only have to cache one feed, instead of caching several and then piecing them all together.  This also makes it easy to modify the data feed later on through the Pipes interface without having to touch ActionScript. 


Building a Yahoo Pipes app

pipes.jpgFirst, sign up for a Yahoo Pipes account if you haven't already:  http://pipes.yahoo.com/pipes/
Next, create a simple Application.  There are plenty of examples out there.  You can always clone someone else's pipe, and modify it with your own favorite data sources.  

For this tutorial, I have created an app that pulls feeds from Digg.com, and combines snapshots of the articles from Snap.com
diggsnapshots.jpgThe sample app can be viewed here:
http://pipes.yahoo.com/pipes/pipe.info?_id=xv9z9HSr3BG_6gN48jxBKg


Setting up PHP caching
I am using a PHP RSS caching script called RSS Fetch.  It can be easily customized to cache at specified intervals, or constantly pull the newest data.  I have added a line to the rsslist array for the yahoo pipes RSS source:
"Pipes" => "http://pipes.yahoo.com/pipes/pipe.run?_id=xv9z9HSr3BG_6gN48jxBKg&_render=rss"
You'll also need to create a "cache" directory for the script to write to.  My example can be seen here:
http://infinitearray.com/experiments/feeder/rssfetch.php?id=Pipes&cachetime=5


Creating a Flex App
Luckily, Adobe has done most of the work here.  They've open sourced a few libraries that take care of parsing RSS feeds.   You'll need both the as3corelib and the as3syndicationlib.  Mike Chambers has built a great demo App for working with these libraries.

apppreview.jpg
View the demo

I've built a simple demo application in Flex that pushes the Yahoo Pipes RSS feed into a TileList component.

I've packaged the entire source for this application, including the external libraries. 

View Source

« tutorials: November 2007 | Main Index | Archives

Search

Subscribe to feed Infinite Array RSS feed

About this Archive

This page is a archive of entries in the tutorials category from February 2008.

tutorials: November 2007 is the previous archive.

Find recent content on the main index or look in the archives to find all content.

Categories
  • experiments (2)

  • projects
  • resources (3)

  • reviews
  • tutorials (3)

tutorials: February 2008: Monthly Archives

  • February 2008 (1)
  • November 2007 (2)
Copyright © 2008 Ryan Robinson
portfolio  |   resume  |   contact