Flex Result event ... question
In ResultEvent via HTTPService, I need to print the result in a textbox.
private google function (evt: ResultEvent): void {
Alert.show(evt.result.loginsuccess.person); subtitle.text = evt.result.loginsuccess.person.keyword; }
This is my XML coming from a 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>
0
a source to share
2 answers
as above, but if you want to get a specific value you can do evt.result.person.keyword [0] (this will give you the first value). Someone else's answer will give you XML 3 times, but specifying which node keyword you want will only return the value inside that node (i.e. 'Java')
as an aside, I just looked at your profile, did you know that after you asked a question and then liked one of the answers, you can mark that answer as correct. None of the 9 questions with 30+ answers you asked are marked as answered, none have answered your questions properly!
+1
a source to share