…reference to yesterday post, I was wondering how did we parse the feeds from the Flickr as Arrays…
photoFeed = event.result.rss.channel.item as ArrayCollection;
…so today, I tried pasting
http://api.flickr.com/services/feeds/photos_public.gne?format=rss_200_enc
into the web-browser and I got a photo feed page… viewing it’s source.. I noticed the xml page is formatted in this manner
<rss version="2.0" xmlns:media="http://search.yahoo.com/mrss/"
xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:flickr="urn:flickr:" >
<channel>
.... .... ....
.... .... ....
<item>
<title>IMG_0359 copy</title>
<link>http://www.flickr.com/photos/stander/2884730150/</link>
.... .... ....
.... .... ....
<guid isPermaLink="false">tag:flickr.com,2004:/photo/2884730150</guid>
<media:content url="http://farm3.static.flickr.com/2294/2884730150_08b0c69027_o.jpg" type="image/jpeg" height="1000" width="1500"/>
<media:title>IMG_0359 copy</media:title>
<media:thumbnail url="http://farm3.static.flickr.com/2294/2884730150_22f80b06e8_s.jpg" height="75" width="75" />
<media:credit role="photographer">pics_by_me</media:credit>
<enclosure url="http://farm3.static.flickr.com/2294/2884730150_08b0c69027_o.jpg" type="image/jpeg" />
</item>
so when the event returns the feeds, we use rss.channel.item to make the results return from the item level and storing them in Arrays format.. This explains the code to display the thumbnails and the description of the thumbnails, using data.thumbnail.url and data.credit…. Looking at it, I think I can use the data.enclosure.url to blow up the thumbnail to a bigger picture… I will continue to explore to make that happen..