AS3 GamesChart API Implementation - IDE

Implement the API using the IDE method by following 7 simple steps: {|

Step 1 - Download the GamesChart Developer Pack
This contains all the files you need in order to implement the GamesChart API. 

Step 2 - Add the IDE component to Flash

 * 1) Extract the files from the zip pack and browse to Flash IDE Components
 * 2) Double click on the AS3 .mxp file. This will add the component to Flash. If you code AS2 and AS3 projects just double click both files.
 * 3) Adobe Extension Manager will pop up. Click Accept.
 * 4) The Extension Manager will confirm that the component has been successfully installed

Step 3 - Add the IDE component to your game stage

 * 1) Open your game .fla
 * 2) Open the Components window (Windows > Components or Ctrl + F7).
 * 3) Left click the Standard Components node in the Components window to view contents.
 * 4) Drag the GamesChart-AS3 component onto the stage.

The GamesChart-AS3 component should ideally be added to the top layer of your timeline.

Step 4 - 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.

Step 5 - Add Unique Game ID to component

 * 1) Select the instance of GamesChart-AS3 on the stage
 * 2) Open the Component Inspector window (Window > Component Inspector or Shift + F7)
 * 3) Copy and paste your Unique Game ID into the Game Key field in the parameter window.

Step 6 - 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 7 - 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


 * }