Can't read output of httpservice
Posted
by tag
on Stack Overflow
See other posts from Stack Overflow
or by tag
Published on 2010-05-08T15:43:30Z
Indexed on
2010/05/08
15:48 UTC
Read the original article
Hit count: 268
I have an HTTPservice that uses
id="myhttp"
url="site.com/script.php"
method="POST"
resultFormat="xml"
script.php returns
$output = '' . $worked . ''; echo $output;
Problem is when I try to read worked, it tells me the variable worked is not there
event.result.worked
myhttp.lastResult.worked
The only thing that works is using toString()
myhttp.lastResult.toString()
or event.result.toString()
What am I doing wrong?
- I plan to add other variables to the output
time, so need to access eachtimeandworkedseparately. - I may also need to return multiple responses each with their own
workedandtimevalues. How do I do that. I was thinking to not use XML. Is there a more lightweight option. Flex shows I have the following options:arraye4xflashvarsobjecttextxml
© Stack Overflow or respective owner