- Package: com.newgrounds
- Class: ScoreBoard
Contains the info for a ScoreBoard and allows for queries.
Methods
These are the methods of ScoreBoard.
loadScores
public function loadScores():void
Queries the server for scores.
nextPage
public function nextPage():void
postScore
public function postScore(numericScore:Number, tag:String):void
Posts a score to this ScoreBoard. Dispatches APIEvent.SCORE_POSTED.
The initial result.
name
public var name:String;
The name of the ScoreBoard.
numResults
public var numResults:uint;
The number of results to be returned by the query.
page
public var page:uint;
period
public var period:String;
The period.
scores
public var scores:Array;
A list of scores returned by the previous query.
tag
public var tag:String;
The metadata tag.
Constants
These are the constants of ScoreBoard.
ALL_TIME
public static const ALL_TIME:String = "All-Time";
THIS_MONTH
public static const THIS_MONTH:String = "This Month";
THIS_WEEK
public static const THIS_WEEK:String = "This Week";
THIS_YEAR
public static const THIS_YEAR:String = "This Year";
TODAY
public static const TODAY:String = "Today";