0
$output = "<loginsuccess>";


while( $Row = mysql_fetch_object( $result ) )
{

$output .="<keyword>".$_POST['keyword']."</keyword><name>".$row['url']."</name><occur>".$row['occurrences']."</occur><queryTime>".(substr($end_time-$start_time,0,5))."</queryTime>";
}

$output .= "</loginsuccess>";

This is my PHP output, how can i convert the piece of code into Array in Flex. This is my output which i am reading in flex through event.result.loginsucess, but want this output as array there.

Thanks

1
  • i assume you mean to parse xml to array Commented Jun 2, 2009 at 10:40

1 Answer 1

1

You need to set the resultFormat property in HTTPService tag to "object" - see this: Converting xml to objects using the flex httpservice mxml tag

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.