AS3 GamesChart API Implementation - Copy Paste

Implement the API using the IDE Copy & Paste method by following 6 simple steps: {|

Step 1 - Download the GamesChart AS3 Example
Download the GamesChart AS3 Example for AS3.

You will need to refer to this throughout the 6 steps below.

Step 2 - Copy and Paste the API component into your Flash project
Open the GamesChart_AS3_Example.fla

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
To get a Unique Game ID you must create an instance of the game on GamesChart.com.

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
Put this single line of code into the first frame of your Flash project: GamesChart.setup(stage,"yourGameId"); Insert your Unique Game ID where it says yourGameId.

Step 5 - Publish .swf
Now publish your game.. (File > Publish / Shift+F12)

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
Return to the GamesChart website to complete the Upload Game procedure.

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!
GamesChart static functions can be used to control the behaviour of the API.

For example, you can:


 * Hide the GamesChart button when required


 * Display the GamesChart button when required


 * Adjust the position of the GamesChart button


 * Open the GamesChart window on an event

Tell me more about Static Functions


 * }