Packagecom.myflashlab.air.extensions.googleGames
Classpublic class Score
InheritanceScore Inheritance Object

Data interface representing a single score on a leaderboard.



Public Properties
 PropertyDefined 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
Public Methods
 MethodDefined By
  
loadScoreHolderHiResImage($forceReload:Boolean, $callback:Function):void
Score
  
loadScoreHolderIconImage($forceReload:Boolean, $callback:Function):void
Score
Property Detail
displayRankproperty
displayRank:String  [read-only]

Retrieves a formatted string to display for this rank. This handles appropriate localization and formatting.


Implementation
    public function get displayRank():String
displayScoreproperty 
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.


Implementation
    public function get displayScore():String
rankproperty 
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.


Implementation
    public function get rank():Number
rawScoreproperty 
rawScore:Number  [read-only]

Retrieves the raw score value.


Implementation
    public function get rawScore():Number
scoreHolderDisplayNameproperty 
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.


Implementation
    public function get scoreHolderDisplayName():String
scoreMetadataproperty 
scoreMetadata:String  [read-only]

Retrieve the optional score tag associated with this score, if any. (same as scoreTag)


Implementation
    public function get scoreMetadata():String
scoreTagproperty 
scoreTag:String  [read-only]

Retrieve the optional score tag associated with this score, if any. (same as scoreMetadata)


Implementation
    public function get scoreTag():String
timestampproperty 
timestamp:Number  [read-only]

Retrieves the timestamp (in milliseconds from epoch) at which this score was achieved.


Implementation
    public function get timestamp():Number
Method Detail
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.