NaN:NaN
NaN:NaN
--:-- / --:--
Newgrounds Background Image Theme

Someone gifted pokkipox supporter status!

We need you on the team, too.

Support Newgrounds and get tons of perks for just $2.99!

Create a Free Account and then..

Become a Supporter!

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.



prevPage

public function prevPage():void


toString

public function toString():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";