Skip navigation
emrexconi
Currently Being Moderated

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

Feb 11, 2013 6:41 AM

Tags: #flex #mobile #xml

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)" >



<fx:Script>
    <![CDATA[
        import mx.events.FlexEvent;



        protected function view1_creationCompleteHandler(event:FlexEvent):void
        {
            adres.send();
        }


    ]]>
</fx:Script>


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



<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}" />

 

 


 

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points