API Integration Instructions
We try to make our High Scores API as easy as possible for developers to add to their games so more will participate. We have made our API submit scores by using the same exact code you would add for other large portals. Currently we have only have support for the MindJolt.com API for AS1 and AS2. So if you have a copy of a game that already has this added just go to the submit page and upload it.
To connect to our system and submit scores to our database just add the following two lines of code to wherever you calculate the the final scores in your game. They should be added to a frame and not a button so that they are submitted automatically.
To connect to our system and submit scores to our database just add the following two lines of code to wherever you calculate the the final scores in your game. They should be added to a frame and not a button so that they are submitted automatically.
ScoreAPI = new LocalConnection();
ScoreAPI.send(_root.com_mindjolt_api, "submitScore", your_score_variable);
The only thing you need to change for this to work is to replace the text "your_score_variable" with the variable that holds the players final score.
If you have different levels of difficulties or modes of game play you should submit them with an extra parameter like so:
ScoreAPI.send(_root.com_mindjolt_api, "submitScore", your_score_variable, "easy");
or
ScoreAPI.send(_root.com_mindjolt_api, "submitScore", your_score_variable, "hard");
or
ScoreAPI.send(_root.com_mindjolt_api, "submitScore", your_score_variable, "hard");
This last step is not required in most cases but could help in preventing problems. We recommend you add the following code to the first frame of your game.
_lockroot = true;
Please Note:
You should test your games by playing through and seeing if it submits your score. After you get to the point where the score should have been submitted refresh the page. If the score was submitted correctly there will be a new "Show Highscores" link in the white spot to the right of the green title bar just above the game. Click that to see your score. If it doesn't work you can always fix it and upload the new version from your account later.
We will soon be adding a little ribbon to all game icons in which the game has high scores enabled. But we are currently only in a beta faze.
All users will have only one score per mode, per game. If the user beats his old best score it will be updated. If not than he won't lose his spot on the high scores lists.
You should test your games by playing through and seeing if it submits your score. After you get to the point where the score should have been submitted refresh the page. If the score was submitted correctly there will be a new "Show Highscores" link in the white spot to the right of the green title bar just above the game. Click that to see your score. If it doesn't work you can always fix it and upload the new version from your account later.
We will soon be adding a little ribbon to all game icons in which the game has high scores enabled. But we are currently only in a beta faze.
All users will have only one score per mode, per game. If the user beats his old best score it will be updated. If not than he won't lose his spot on the high scores lists.
Total Games: 624
Played Today: 7477
Overall Played: 1000830
Total Members: 714
Newest Member:
maranda1
Played Today: 7477
Overall Played: 1000830
Total Members: 714
Newest Member:
maranda1
Users Online: 70 (0 members and 70 guests)







