ActionScript3 Reference
Class OneScore
Namespace: playerio
Language: ActionScript 3
The Player.IO OneScore service
Properties | |||
---|---|---|---|
public |
The percentile compared to all other players. A value from 0 -> 100. A value of 30.0 means you are in the bottom 30% of players. A value of 100 means you are in the top 100% with other players. |
||
public |
OneScore value |
||
public |
The absolute ranking of this player, if they are one of the top 1000 players. 0 otherwise. |
||
Methods | |||
public |
Adds the score to the OneScore for the user. |
||
public |
Loads OneScore for multiple users. |
||
public |
Refresh OneScore for the user. |
||
public |
Sets OneScore for the user. |
OneScore.percentile
public |
|
The percentile compared to all other players. A value from 0 -> 100. A value of 30.0 means you are in the bottom 30% of players. A value of 100 means you are in the top 100% with other players.
OneScore.score
public |
|
OneScore value
OneScore.topRank
public |
|
The absolute ranking of this player, if they are one of the top 1000 players. 0 otherwise.
OneScore.add
public |
|
Adds the score to the OneScore for the user.
Arguments
score:int | |
The score to add for the user. | |
callback:Function (Default = null) | |
Callback that will be called when the operation succeeds. | |
errorHandler:Function (Default = null) | |
Callback that will be called instead of callback if an error occurs during the operation. |
OneScore.load
public |
|
Loads OneScore for multiple users.
Arguments
userIds:Array | |
The user ids to load OneScore for. | |
callback:Function (Default = null) | |
Callback that will be called when the operation succeeds. | |
errorHandler:Function (Default = null) | |
Callback that will be called instead of callback if an error occurs during the operation. |
OneScore.refresh
public |
|
Refresh OneScore for the user.
Arguments
callback:Function (Default = null) | |
Callback that will be called when the operation succeeds. | |
errorHandler:Function (Default = null) | |
Callback that will be called instead of callback if an error occurs during the operation. |
OneScore.set
public |
|
Sets OneScore for the user.
Arguments
score:int | |
The score to set for the user. | |
callback:Function (Default = null) | |
Callback that will be called when the operation succeeds. | |
errorHandler:Function (Default = null) | |
Callback that will be called instead of callback if an error occurs during the operation. |