# How can I save a global high score for all players in AS3?

I am developing a game in which I want to make a scoring system where the global high score is stored and shared by all players.

I am using Flash and ActionScript 3. Until now I've used SharedObject.getLocal("savename") for saving score individualy but I cant figure out the way to store a common high score for all players.

• Could you explain what you mean by "all players"? Do you mean everyone who's played that specific copy of the game, or all players of the game in all physical locations? Just because the answer is very different in each case – jhocking Jun 20 '14 at 15:07
• @jhocking i mean everyone who have played the game .in his browser when he opens the game he can find the highest score gained by any player – user3536228 Jun 20 '14 at 15:09
• That's... actually still not addressing my question. I'm going to assume you mean "all players in all physical locations", but "in his browser" could mean multiple people using the same computer. – jhocking Jun 20 '14 at 15:13

The advantage to the PHP-based approach is that it puts all your database access on the server, rather than connecting to a DB directly from the client, which helps isolate you from a whole host of problems. You will of course want to further lock this down and make sure that users cannot submit bogus high scores simply by hitting, for example http://example.org/submitscore?score=99999999999.