Yahoo! Pipes + Flash: Smokin’ Good
Posted in "Articles, Flex" at 6:30 am on September 19, 2007 by Alaric Cole | 10 commentsYou’ve probably heard the buzz about Yahoo! Pipes, a powerful and easy tool for mashing up data from across the Internet. But did you know that Pipes is one of Yahoo!’s Flash-friendly properties? Our buddies at Pipes have generously deployed an open crossdomain policy file, giving all Flash and Flex developers access to the raw Pipes output. Just like with Flickr (see Allen’s post), there are no security worries, no roadblocks, and no limits to what you can do with the Pipes data. Pipes can even be your proxy for grabbing data from places that aren’t themselves accessible using Flash (although some sources may prevent Pipes from accessing their data—you’ll want to make sure a particular data source works with Pipes before using it.)
If you haven’t tried Pipes, definitely check it out. It has an intuitive visual interface that allows you to import and manipulate data from across the web, with zero coding skills necessary! Want to mash up all your favorite RSS feeds into a single super-feed? How about checking Flickr images against recent news articles? Whatever you create, you can export to your preferred format, ready to view in a reader or, as shown below, in your own interface built with Flash or Flex.
Once you create a pipe or try one of the many already available, you are just a couple of steps away from using that data in Flash. In the example below, we are using a simple pipe that aggregates some news feeds. First, let’s run the pipe and choose More Options > Get as RSS.

Notice that the URL you get is of the form http://pipes.yahoo.com/pipes/pipe.run?somepipe&_render=rss. That’s almost the URL you’ll use to retrieve the XML data, but not quite. For security purposes, most of Yahoo! APIs use *.yahooapis.com as the API entrypoint. So once you replace pipes.yahoo.com with pipes.yahooapis.com in that URL, you’re in business (note that there’s no crossdomain on pipes.yahoo.com, but there is one on pipes.yahooapis.com—that’s what’s working the magic.) Now, if your pipe has any parameters you need to include, just build out the URL as needed and send it along.
Here’s a really simple example in Flex that uses the pipe described above.
Please install Flash 9 to see this example.
Check out the source here.
Share: on Yahoo! My Web | on del.icio.us | digg it! | reddit!
10 Comments »
RSS feed for comments on this post. TrackBack URI
Leave a comment

Copyright © 2007 Yahoo! Inc. All rights reserved. Privacy Policy - Terms of Service
Powered by WordPress on Yahoo! Web Hosting.
[...] Preprocess data for use in a Flash application [...]
Pingback by And Now For Something Completely Different: Visual Programming Cracks the Multicore Barrier « SmoothSpan Blog — September 19, 2007 #
[...] because of security you had to use pipes.yahooapis.com and NOT pipes.yahoo.com more information here pon the Yahoo! Flash(R) [...]
Pingback by Playfool® - Darren Richardson » Blog Archive » Yahoo! Pipes + Flash — September 26, 2007 #
Hello, I’ve been checking my feed subscription for the next article – when’s it coming, please? So glad you started this flash blog, please keep it going.
Comment by simon — October 13, 2007 #
Simon,
Don’t worry, we’re definitely working on more content for the blog. Stay tuned!
Josh Tynjala
Yahoo! Flash Platform
Comment by Josh Tynjala — October 14, 2007 #
Thanks Josh, I look forward to it.
Comment by simon — October 17, 2007 #
[...] the past year we’ve adding some cool features such as, Flash support (tutorial link), iPhone support (wired buzz), Private Field support (external tutorial link) and Fetch Page module [...]
Pingback by Pipes Blog » Blog Archive » Our one year anniversary — February 7, 2008 #
y-pipes rules anyway
Comment by GatherB — February 20, 2008 #
This has just saved my cross-domaining skin! Thankyou!! Pipes rocks your socks!
Comment by Ed — March 18, 2008 #
Ok, I’m new to Pipes and the whole querying network data for Flash scene. I have a simple CSV file, created by php, hosted on my server. Can you direct me to a simple tutorial on how to get that CSV data taken from Pipes into Flash?
Thanks.
Comment by concepthunter — October 26, 2009 #
Does pipes leak like regular plumbing? Had never heard of it will read about it thank you.
Comment by Lindsay — February 11, 2010 #