Normally when I send information to PHP scripts via URLLoader, I have the PHP return various success codes so I can have my Flash files respond according to whatever success code the PHP returns (0 is a failure, 1 a success, 2 is some other error code, etc.).
Now I'm trying to submit a form with a bunch of data in it (name, email, birthday, etc.) as well as upload a file. I'm using fileReference to upload the file and send the additional variables along with the upload request. The information is making it to my PHP file fine. However, I can't find any way to get information BACK from the PHP file. That is to say, I want the PHP to echo "success=1" if the file is successfully loaded, "success=2" if there was an error inserting the data into the MySQL database, etc., but currently I can't figure out how to get info from the PHP. Normally I could just look at _myURLLoader.data but in this instance I need to reference _fileReference.data which is actually the bitmap data of the file.
Anybody have any ideas?
Thanks!
--eric