Kongregate's AS2 APIThe Kongregate AS2 API allows you to extend your game to communicate with the Kongregate back-end. The API is automatically loaded for all ActionScript2 games, so there is nothing to download or install in order to integrate. Accessing the API and Connecting
In order to access the Kongregate API object, you can simply get a reference to it from the var kongregate = _global.kongregate; kongregate.services.connect(); The Kongregate API Object
As you can see in the code above, we keep a reference to the "Kongregate API" object and store it in the variable named kongregate. This is the assumption that is made for the remainder of the documentation, so if you store this reference in a different way, make sure to modify the examples accordingly. For ActionScript 2, you can always just use the Additional Support/DiscussionIf you run into problems, please check out the AS2 integration forum API Documentation: |