To open the achievements menu, use the toggleInterface function.

sdk.toggleInterface('achievements');

Unlocking an Achievement

When a player reaches an important milestone in-game, reward them by giving them an achievement.

sdk.achievementsSave(name, key)

See the achievementSave reference for optional arguments.

Getting Achievement Data

Calling the achievementsList function provides a list of all achievements of the game. The list can be checked for a player property. If an achievement has a player property, that means the player has unlocked it. The data is returned to the handleSDK function as an object.

sdk.achievementsList();
function handleSDK(e:Event) {
	if (sdk.type == 'achievementsList'){
		trace(JSON.stringify(sdk.data));
	}
}

See the page about achievement response data for details about unlocked achievements.