I'm having issues with loading the user's information into Flash from a PHP script.

EDIT: index.php is called by Facebook to Authenticate. Flash then calls database.php to connect to the database and store/recall the players information and progress. Database.php then encodes the array and echos it out to Flash where it is parsed.

Changing it back to the original code worked till the next day before it stopped working.

I managed to get it working with a temporary fix by including the database script in with the index script and then calling it from Flash.

That just stopped working. Obviously this is driving me insane. Including database.php in index.php even now will trace echo out the JSON information correctly, but it isn't loaded into the game.

On the Flash side, I had it hooked up to a button so I could call it and see the return and it seemed to be working fine. I am never getting errors returned when it doesn't load the player's information which makes troubleshooting this trial and error and research.

Any help would be greatly appreciated. I have spent way too much of my time adapting scripts and researching at this point when there is someone out there that knows what is going on.

If you are getting your JSON data into the Database.as response then why would you think its a server side issue? You got the data where you need. You are probably not parsing it correctly.
–
The_asManNov 3 '11 at 23:12

1

Sorry, when I said trace out I meant it echo'd out in the browser. If I add dummy info to be encoded, it will update properly in the game.
–
Stuart SaundersNov 4 '11 at 1:39