Be a Supporter!

Browse Sections


Newgrounds Wiki: ScoreBoard

  • Package: com.newgrounds
  • Class: ScoreBoard
Contains the info for a ScoreBoard and allows for queries.

Methods

These are the methods of ScoreBoard.

loadScores

Return to Top ^
public function loadScores():void
Queries the server for scores.

nextPage

Return to Top ^
public function nextPage():void

postScore

Return to Top ^
public function postScore(numericScore:Number, tag:String):void
Posts a score to this ScoreBoard. Dispatches APIEvent.SCORE_POSTED.
  • Parameters
    • numericScore:Number
      The player's score.

    • tag:String
      Custom metadata.

prevPage

Return to Top ^
public function prevPage():void

toString

Return to Top ^
public function toString():String

Properties

These are the properties of ScoreBoard.

firstResult

Return to Top ^
public var firstResult:uint;
The initial result.

name

Return to Top ^
public var name:String;
The name of the ScoreBoard.

numResults

Return to Top ^
public var numResults:uint;
The number of results to be returned by the query.

page

Return to Top ^
public var page:uint;

period

Return to Top ^
public var period:String;
The period.

scores

Return to Top ^
public var scores:Array;
A list of scores returned by the previous query.

tag

Return to Top ^
public var tag:String;
The metadata tag.

Constants

These are the constants of ScoreBoard.

ALL_TIME

Return to Top ^
public static const ALL_TIME:String = "All-Time";

THIS_MONTH

Return to Top ^
public static const THIS_MONTH:String = "This Month";

THIS_WEEK

Return to Top ^
public static const THIS_WEEK:String = "This Week";

THIS_YEAR

Return to Top ^
public static const THIS_YEAR:String = "This Year";

TODAY

Return to Top ^
public static const TODAY:String = "Today";