00:00
00:00

Our goal is for Newgrounds to be ad free for everyone! Become a Supporter today and help make this dream a reality!

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

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.
  • Parameters
    • numericScore:Number
      The player's score.

    • tag:String
      Custom metadata.

      prevPage

      public function prevPage():void

      toString

      public function toString():String
  • Returns
    • String

      Properties

      These are the properties of ScoreBoard.

      firstResult

      public var firstResult:uint;
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";