1 person found this helpful
At the php, loop through the result and print it with xml tags. ie,
print '<videoName>' . $result . '</videoName>' ;
print '<videoLabel>' . $result . '</videoName>';
You can test it by printing back to the browser window. When you get well formed XML,
you can stream it direct to the flex app.
xml is fine for small amounts of data, you can use amf object which is fast and small. I find by far the easiest is JASON.
PHP can encode and decode Jason, you can load a jason library into flex and decode and encoded.
Works flawlessly, ist now my main method of communicating with PHP.
Google flex and jason there are tons of projects out there.
Thanks for your help meshgraphics; I am able to do that with XML, and I've already set it up to do so, but I'm trying to do it without XML, but rather directly as an array or ArrayCollection.
I've read a little bit about JSON; I'll look more into that. Thanks flashharry!.
Had a little difficulty in getting the JSON library installed for Flex to use, but it was supurbly easy on the PHP side. As soon as I did get JSON installed and imported properly, it works like a charm. Thanks!