how to implement a data receiver service in Drupal I have a Drupal site which will host a flash application. The application will be inserted in a node body (or as an attachment, not sure yet). I would like this application to send some data to Drupal (e.g. a game progress and score) using Javascript.

What I achieved so far is the ability to have the game score displayed in a Javascript alert  window in Json format. Next step would be to send it to Drupal and I want to save it to a table. I don't know how to do the "Send it to Drupal" part. What is the right way to do it, so it's hacker-proof etc?
If you do it the JS part, Drupal part will be quite easy.

Create module with form that handle data transfer to Drupal and submit this form via Ajax https://drupal.org/node/752056

It can be helpful too: Match JSON POST data with custom node fields