On ResultEvent through HTTPService, i need to print the result in a textBox.
private function google(evt:ResultEvent):void
{
Alert.show(evt.result.loginsuccess.person);
subtitle.text = evt.result.loginsuccess.person.keyword;
}
This is my XML coming down from PHP file… [index.php]
<loginsuccess><person><keyword>java</keyword><name>http://www.xml.com/</name><occur>4</occur></person
><person><keyword>java</keyword><name>http://www.sitepoint.com</name><occur>2</occur></person><person
><keyword>java</keyword><name>http://www.httpguru.com</name><occur>2</occur></person></loginsuccess>
as the above answer but if you wish to get a specific value you can do evt.result.person.keyword[0] (this will give you the first value).
Someone else’s answer would give you the XML 3 times, but specifying which keyword node you wish to get will return just the value inside that node (i.e. ‘java’)
as an aside I’ve just had a look at your profile, do you know that after you’ve asked a question and then liked one of the answers you can mark that answer as correct. None of the 9 question with 30+ answers you’ve asked have been flagged as answered, has nobody answered any of your questions appropriately!