I have an XML file that looks like this:
<a>
<b>
<c>
<data>1</data>
</c>
<c>
<data>2</data>
</c>
</b>
</a>
I'm fetching it with..
<mx:HTTPService
id="ticketDataRequest"
url= "{FLEXsys.proxy}"
useProxy="false"
method="POST"
resultFormat="object"
showBusyCursor="true"
result="ticketDataRequestHandler( ticketDataRequest.lastResult )">
<mx:request xmlns="">
<action>ticketData</action>
<id>{ticketID}</id>
</mx:request>
</mx:HTTPService>
In my ticketDataRequestHandler, as exercise, I just want to 'alert'
what's in the data blocks... I've tried:
private function ticketDataRequestHandler(data:Object):void {
for each (var d:Object in data.a.b..c){
Alert.show( d.data);
}
}
and every permutation thereof - and it just won't work for me..
Help appreciated!
Alex