0 Replies Latest reply on Apr 8, 2010 11:59 PM by avdave

    Image Loading problem from Flickr API!

    avdave

      Hi,

        I am Akshay and am beginner in this forum. I am trying to load images using flickr API and having problem.

       

      I am doing it in following fashion:

       

       

       

      1) I am calling the Httpservice to get the xml through flickr API as

       

      <s:HTTPService id="photoService" url="http://api.flickr.com/services/feeds/....FullAPI" resultFormat="e4x" result="photoResultHandler(event);" fault="photoFaultHandler(event);"/>

       

      2) In photoResultHandler I am retrieving the XML

       

      private function photoResultHandler(re:ResultEvent):void

      {

      photoXml= re.result as XML;

       

      }

       

      The XML structure is as below:

      <?xml version="1.0" encoding="utf-8" standalone="yes"?>

      <feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:flickr="urn:flickr:" xmlns:media="http://search.yahoo.com/mrss/">

      <title></title>

      <link rel="self" href="...."/>

      <link rel="alternate" type="text/html" href=".."/>

      <id></id>

      <icon></icon>

      <subtitle/>

      <updated></updated>

      <generator uri="http://www.flickr.com/">Flickr</generator>

      <entry>

           <title> </title>

           <link rel="alternate" type="text/html" href="http://www.flickr.com/.../"/>

           <id></id>

           <published></published>

           <updated></updated>

           <dc:date.Taken></dc:date.Taken>

           <content type="html"></content>

           <author>

                <name></name>

                <uri></uri>

                <flickr:nsid></flickr:nsid>

                <flickr:buddyicon></flickr:buddyicon>

           </author>

      <link rel="enclosure" type="image/jpeg" href="http://farm5.static.flickr.com/....."/>

      </entry>