First, use a result handler, and do not use lastResult.

 

Then go one step at a time.  Examine event.result by itself first, then work
your way into the object.

 

Tracy Spratt,

Lariat Services, development services available

  _____  

From: [email protected] [mailto:[email protected]] On
Behalf Of Jason B
Sent: Monday, April 06, 2009 10:35 AM
To: [email protected]
Subject: [flexcoders] reading a simple array dump?

 

this is my first array dump and i was wondering how to show an item in an
alert box

I have an httpservice with resultformat to array now how do i alert the
first name in the list?

Alert.show(myhttpservice.lastResult.DATARESULTS.info.NAME);
Doesn't work 

(mx.collections::ArrayCollection)#0
filterFunction = (null)
length = 1
list = (mx.collections::ArrayList)#1
length = 1
source = (Array)#2
[0] (Object)#3
DATARESULTS = (Object)#4
info = (mx.collections::ArrayCollection)#5
filterFunction = (null)
length = 4
list = (mx.collections::ArrayList)#6
length = 4
source = (Array)#7
[0] (Object)#8
NAME = (null)
[1] (Object)#9
NAME = "Dory, Jason"
[2] (Object)#10
NAME = "Doe, Jason"
[3] (Object)#11
NAME = "Daniel, Jason"
uid = "EA885A5B-71B3-346D-2A21-7BC841863233"
sort = (null)
source = (Array)#7
uid = "C9FAD864-FEE7-6523-6EEF-7BC84187A68B"
sort = (null)
source = (Array)#2



Reply via email to