0 Replies Latest reply on Jan 25, 2012 9:19 AM by r0ks0n

    Images in RSS app


      Hello all!


      I really need help, because I`m not a programmer, but I make a very simple RSS reader for my website in Flash Builder 4.5, based on this tutorial. Now I have a problem. I need to put images into articles in application (DetailsView). In my RSS feed images in <enclosure> tag. I have no idea how put images in DetailsView and how to get it with enclosure tag.


      Please, I really need this and I very greatful for any help!


      This is source coude for DetailsView:


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

      <s:View xmlns:fx="http://ns.adobe.com/mxml/2009"



      title="" viewActivate="getDetails()">




      import valueObjects.Item;


      [Bindable] private var rtitle:String;

      [Bindable] private var rdate:String;

      [Bindable] private var rcreator:String;

      [Bindable] private var rlink:String;

      [Bindable] private var rdesc:String;



      private function getDetails():void


      var p:RegExp = /(&quot;)/ig;

      var thisItem:Item = data as Item;


      rtitle = thisItem.title;

      rdate = thisItem.pubDate;

      rcreator = thisItem.author;

      rlink = thisItem.link;

      rdesc = thisItem.description;

      rtitle = rtitle.replace(p, "");






      <s:CallResponder id="getDataResult"/>

      <rssreader:Rssreader id="rssreader"/>



      <s:Button label="Nazaj" click="navigator.popView()" />


      <s:BorderContainer top="0" bottom="0" left="0" right="0"




      <s:Label left="20" right="20" top="42" height="61"

      backgroundColor="#FFFFFF" color="#000000" fontSize="24"

      paddingBottom="20" paddingLeft="5" paddingRight="5"

      paddingTop="5" text="{rtitle}"/>



      <s:Label left="20" right="90" top="14" height="23" backgroundColor="#FEFDFD" color="#666666"

      fontSize="18" fontStyle="italic" paddingBottom="5" paddingLeft="5" paddingRight="5"

      paddingTop="5" text="{rdate}"/>


                  <s:BitmapImage y="91" left="20" right="20" height="135" source="image"/>


      <s:Label left="20" right="20" top="335" bottom="69" color="#666666"

      backgroundColor="#FFFFFF" fontSize="18" paddingBottom="5"

      paddingLeft="5" paddingRight="5" paddingTop="5"

      text="{rdesc}" maxDisplayedLines="50"  />


      <s:Button left="50" right="50" bottom="22" label="Preberi celoten članek"

      click="navigator.pushView(ClanekHTML, data.link)"/>






      And this is link to my rss feed: http://www.elektro-vozila.si/rssnovice