| Package | com.myflashlab.air.extensions.googleGames |
| Class | public class Achievement |
| Inheritance | Achievement Object |
| Property | Defined By | ||
|---|---|---|---|
| currentSteps : int [read-only]
Retrieves the number of steps this user has gone toward unlocking this achievement;
only applicable for Achievement.TYPE_INCREMENTAL achievement types. | Achievement | ||
| description : String [read-only]
Retrieves the description for this achievement. | Achievement | ||
| formattedCurrentSteps : String [read-only]
Retrieves the number of steps this user has gone toward unlocking this achievement (formatted for
the user's locale); only applicable for Achievement.TYPE_INCREMENTAL achievement types. | Achievement | ||
| formattedTotalSteps : String [read-only]
Retrieves the total number of steps necessary to unlock this achievement, formatted for the user's
locale; only applicable for Achievement.TYPE_INCREMENTAL achievement types. | Achievement | ||
| id : String [read-only]
Retrieves the ID of this achievement. | Achievement | ||
| lastUpdatedTimestamp : Number [read-only]
Retrieves the timestamp at which this achievement was last updated. | Achievement | ||
| name : String [read-only]
Retrieves the name of this achievement. | Achievement | ||
| state : int [read-only]
Retrieves the state of the achievement - one of Achievement.STATE_UNLOCKED,
Achievement.STATE_REVEALED, or Achievement.STATE_HIDDEN. | Achievement | ||
| totalSteps : int [read-only]
Retrieves the total number of steps necessary to unlock this achievement; only applicable for
Achievement.TYPE_INCREMENTAL achievement types. | Achievement | ||
| type : int [read-only]
Retrieves the type of this achievement - one of Achievement.TYPE_STANDARD or
Achievement.TYPE_INCREMENTAL. | Achievement | ||
| xpValue : Number [read-only]
Retrieves the XP value of this achievement. | Achievement | ||
| Method | Defined By | ||
|---|---|---|---|
loadRevealedImage($forceReload:Boolean, $callback:Function):void | Achievement | ||
loadUnlockedImage($forceReload:Boolean, $callback:Function):void | Achievement | ||
| Constant | Defined By | ||
|---|---|---|---|
| STATE_HIDDEN : int = 2 [static] | Achievement | ||
| STATE_REVEALED : int = 1 [static] | Achievement | ||
| STATE_UNLOCKED : int = 0 [static] | Achievement | ||
| TYPE_INCREMENTAL : int = 1 [static] | Achievement | ||
| TYPE_STANDARD : int = 0 [static] | Achievement | ||
| currentSteps | property |
currentSteps:int [read-only]
Retrieves the number of steps this user has gone toward unlocking this achievement;
only applicable for Achievement.TYPE_INCREMENTAL achievement types.
public function get currentSteps():int| description | property |
description:String [read-only] Retrieves the description for this achievement.
public function get description():String| formattedCurrentSteps | property |
formattedCurrentSteps:String [read-only]
Retrieves the number of steps this user has gone toward unlocking this achievement (formatted for
the user's locale); only applicable for Achievement.TYPE_INCREMENTAL achievement types.
public function get formattedCurrentSteps():String| formattedTotalSteps | property |
formattedTotalSteps:String [read-only]
Retrieves the total number of steps necessary to unlock this achievement, formatted for the user's
locale; only applicable for Achievement.TYPE_INCREMENTAL achievement types.
public function get formattedTotalSteps():String| id | property |
id:String [read-only] Retrieves the ID of this achievement.
public function get id():String| lastUpdatedTimestamp | property |
lastUpdatedTimestamp:Number [read-only]
Retrieves the timestamp at which this achievement was last updated. If the achievement has never
been updated, this will return null.
public function get lastUpdatedTimestamp():Number| name | property |
name:String [read-only] Retrieves the name of this achievement.
public function get name():String| state | property |
state:int [read-only]
Retrieves the state of the achievement - one of Achievement.STATE_UNLOCKED,
Achievement.STATE_REVEALED, or Achievement.STATE_HIDDEN.
public function get state():int| totalSteps | property |
totalSteps:int [read-only]
Retrieves the total number of steps necessary to unlock this achievement; only applicable for
Achievement.TYPE_INCREMENTAL achievement types.
public function get totalSteps():int| type | property |
type:int [read-only]
Retrieves the type of this achievement - one of Achievement.TYPE_STANDARD or
Achievement.TYPE_INCREMENTAL.
public function get type():int| xpValue | property |
xpValue:Number [read-only] Retrieves the XP value of this achievement.
public function get xpValue():Number| loadRevealedImage | () | method |
public function loadRevealedImage($forceReload:Boolean, $callback:Function):void
Parameters
$forceReload:Boolean | |
$callback:Function — expects two params, Achievement reference to the related achievement. And
File object to the image file.
|
| loadUnlockedImage | () | method |
public function loadUnlockedImage($forceReload:Boolean, $callback:Function):void
Parameters
$forceReload:Boolean | |
$callback:Function — expects two params, Achievement reference to the related achievement. And
File object to the image file.
|
| STATE_HIDDEN | Constant |
public static const STATE_HIDDEN:int = 2| STATE_REVEALED | Constant |
public static const STATE_REVEALED:int = 1| STATE_UNLOCKED | Constant |
public static const STATE_UNLOCKED:int = 0| TYPE_INCREMENTAL | Constant |
public static const TYPE_INCREMENTAL:int = 1| TYPE_STANDARD | Constant |
public static const TYPE_STANDARD:int = 0