AS2 GamesChart API Implementation - Copy Paste
From GamesChart
Implement the API using the IDE Copy & Paste method by following 6 simple steps:
Step 1 - Download the GamesChart AS2 Example
You will need to refer to this throughout the 6 steps below.
| ||
Step 2 - Copy and Paste the API component into your Flash project
Go to the Library, select and copy the GamesChart component. Now paste the GamesChart component into the Library of your Flash project (but not directly into the Stage). | ||
Step 3 - Get your Unique Game ID
Go to your Developer Console and select Add Game, then enter your game name and select Create. Your Unique Game ID for that game will then be displayed. | ||
Step 4 - Calling the GamesChart API with your Unique Game ID
GamesChart.setup("yourGameId");
Insert your Unique Game ID where it says yourGameId. | ||
Step 5 - Publish .swf
You should ensure in Publish Settings (File > Publish Settings / Ctrl+Shift+F12) that you select Flash Player version 8 or higher. The GamesChart tab will automatically display in the top right hand corner of your game. You can adjust the tab position by adding the following static function. Replace x and y with the desired tab co-ordinates. GamesChart.showTab(x, y); | ||
Step 6 - Upload Game
The Upload Game pages will provide information on how to complete this process. The implementation is now complete! See below for information on customizing the behaviour of the API. | ||
Learn More!
For example, you can:
|







