Flash ActionScript 2 API Documentation

Setting up the AS2 API

Download Browse on Github

Unzip that file so that the Playtomic folder is in the same folder as your game FLA.

Import the Playtomic classes into any of your ActionScript files or code sections that will use them:

import Playtomic.*;

Initialize the API by logging the view

A view occurs when someone loads the game in any way. Begin by registering the view early in your game. You must log the view before anything else to initialize the Playtomic API.

Playtomic.Log.View(gameid, "guid", _root._url);

Check the API page for your game in the dashboard to get your codes. Remember to encrypt your game with something like Kindisoft to protect your game.