Package | com.myflashlab.air.extensions.googleGames |
Class | public class Score |
Inheritance | Score Object |
Property | Defined By | ||
---|---|---|---|
displayRank : String [read-only]
Retrieves a formatted string to display for this rank. | Score | ||
displayScore : String [read-only]
Retrieves a formatted string to display for this score. | Score | ||
rank : Number [read-only]
Retrieves the rank returned from the server for this score. | Score | ||
rawScore : Number [read-only]
Retrieves the raw score value. | Score | ||
scoreHolderDisplayName : String [read-only]
Retrieves the name to display for the player who scored this score. | Score | ||
scoreMetadata : String [read-only]
Retrieve the optional score tag associated with this score, if any. | Score | ||
scoreTag : String [read-only]
Retrieve the optional score tag associated with this score, if any. | Score | ||
timestamp : Number [read-only]
Retrieves the timestamp (in milliseconds from epoch) at which this score was achieved. | Score |
Method | Defined By | ||
---|---|---|---|
loadScoreHolderHiResImage($forceReload:Boolean, $callback:Function):void | Score | ||
loadScoreHolderIconImage($forceReload:Boolean, $callback:Function):void | Score |
displayRank | property |
displayRank:String
[read-only] Retrieves a formatted string to display for this rank. This handles appropriate localization and formatting.
public function get displayRank():String
displayScore | property |
displayScore:String
[read-only] Retrieves a formatted string to display for this score. The details of the formatting are specified by the developer in their dev console.
public function get displayScore():String
rank | property |
rank:Number
[read-only] Retrieves the rank returned from the server for this score. Note that this may not be exact and that multiple scores can have identical ranks. Lower ranks indicate a better score, with rank 1 being the best score on the board.
public function get rank():Number
rawScore | property |
rawScore:Number
[read-only] Retrieves the raw score value.
public function get rawScore():Number
scoreHolderDisplayName | property |
scoreHolderDisplayName:String
[read-only] Retrieves the name to display for the player who scored this score. If the identity of the player is unknown, this will return an anonymous name to display.
public function get scoreHolderDisplayName():String
scoreMetadata | property |
scoreMetadata:String
[read-only] Retrieve the optional score tag associated with this score, if any. (same as scoreTag)
public function get scoreMetadata():String
scoreTag | property |
scoreTag:String
[read-only] Retrieve the optional score tag associated with this score, if any. (same as scoreMetadata)
public function get scoreTag():String
timestamp | property |
timestamp:Number
[read-only] Retrieves the timestamp (in milliseconds from epoch) at which this score was achieved.
public function get timestamp():Number
loadScoreHolderHiResImage | () | method |
public function loadScoreHolderHiResImage($forceReload:Boolean, $callback:Function):void
Parameters
$forceReload:Boolean | |
$callback:Function — expects one param as File object to the image file.
|
loadScoreHolderIconImage | () | method |
public function loadScoreHolderIconImage($forceReload:Boolean, $callback:Function):void
Parameters
$forceReload:Boolean | |
$callback:Function — expects one param as File object to the image file.
|