Static Functions
From GamesChart
Contents |
Setup
Note: You dont need to call this method if you use the Adobe Flash IDE components as the component will call it for you.
This is the first function that needs to be called before anything else. It loads the GamesChart 'brain' and automatically shows the tab in the rop right hand corner.
Using this method varies between AS2 and AS3.
AS2:
GamesChart.setup(gameKey);
AS3:
GamesChart.setup(stage,gameKey);
You can find more information on what the gameKey is and how to get it in the Getting Started section.
HideTab
Note: Before using this function you need to have called #Setup
You can use this function to hide the GamesChart show/hide toggle tab.
This function is used to control when the tab is shown within the flow of the game. You should not use this function to disable the API completely. If you wish the API not to show on specified or all sites, you are able to control that through Blacklisting within your Developer Console. Edit your game and follow the instructions for Blacklisting.
GamesChart.hideTab();
ShowTab
Note: Before using this function you need to have called #Setup
You can use this function to show the GamesChart show/hide toggle tab. You can also (optionally) provide X and Y coordinates to set a position in your game where the show/hide toggle tab will be positioned.
The default position of the button is the top right hand corner of your game.
GamesChart.showTab(x, y);
OpenCharts
Note: Before using this function you need to have called #Setup
You can use this function to force open the GamesChart lists. This would be a good thing to at specific points in your game such as 'Level Complete' or 'Game Over'.
GamesChart.openCharts();

