0 Replies Latest reply on Feb 11, 2013 6:41 AM by emrexconi

    How can I get one element of httpservice xml file  (for flex mobile application)


      I investigated this problem for hours on end. but I couldn't find out it. I really need you guidance for flex mobile application


      I only wanna use a xml child (not all of them )

      for example ; I only wanna this person's picture "Allen Partridge"

      this is xml file : http://adobeevangelists.com/evangelists.xml

      this is my project;


      xmlns:s="library://ns.adobe.com/flex/spark" title="HomeView"  creationComplete="view1_creationCompleteHandler(event)" >

              import mx.events.FlexEvent;

              protected function view1_creationCompleteHandler(event:FlexEvent):void


      <s:HTTPService id="adres" url="http://adobeevangelists.com/evangelists.xml"/>               

      <s:Image id="picture" x="50" y="500" source="{adres.evangelist.(name == 'Allen Partridge').profileimage}" />

      <s:List left="0" right="0" top="0" bottom="500" dataProvider="{adres.lastResult.evangelists.evangelist}" labelField="name" ></s:List>


      I tryed all the ways ,like bellow;


      <s:Image x="10" y="467" source="{adres.evangelist.(name == 'Allen Partridge').profileimage}" />
      <s:Image id="picture" x="50" y="500" source="http://adobeevangelists.com/{data.evangelist.(name == 'Allen Partridge').profileimage}" />