I'm trying to send multiple values from PHP to Flash. I know how to send back one value, and that's by using PHP's print or echo, and then in flash using e.target.data., for example...
PHP:
print "resultMessage=$something";
Flash:
var resultText:TextField;
resultText.text = e.target.data.resultMessage;
The problem is when trying to receive 2 values; I've tried things like...
PHP:
print "resultNumber=$somethingNumber";
print "resultName=$somethingName";
Flash:
var flashNumber:TextField
flashNumber.text = e.target.data.resultNumber;
var flashName:TextField;
flashName.text = e.target.data.resultName;
But when I try that, flashNumber would end up as flashNumber and flashName mashed together, like 2Tom or 7Mary or something like that.
I tried printing <br> between the 2 values in PHP, but I still got the same result. I know that I can split the PHP into 2 PHP files and get a value from each one, but that would be a little ridiculous, since in my program I'll need to get many values.
Is there another way to send values from PHP to Flash, so that I can send more than 1 value? Or, is there a way to use print or echo to send more than 1 value?
Thank you very much in advance.