I used HTTPService for reading xml, but I want only a particular xml field value like the first node id.
The HTTPService object is:
<mx:HTTPService result="getid(event)" id="xml_coupon" url="###" useProxy="false" resultFormat="e4x"/>
The getid(event) function is:
public function getid(evt:ResultEvent):void
{
var id:number=evt.result.id;
Alert.show(id.tostring);
}
The getid function shows all ids, but I want the first index id only. How can I read this? I tried Alert.show(evt.getChildAt(1).id); but it shows an error. If you know, please help me.