Be a Supporter!

Browse Sections


Newgrounds Wiki: SaveBrowser

  • Package: com.newgrounds.components
  • Class: SaveBrowser
The SaveBrowser component displays save files to the user, and allows them to select a file to load.

Methods

These are the methods of SaveBrowser.

loadScores

Return to Top ^
public function loadFiles():void
Loads a list of files and displays them in the save browser.

Properties

These are the properties of SaveBrowser

customSortField

Return to Top ^
public var customSortField:String;
Allows you to sort on a custom key or rating in your save group. For example, setting customSortField to "Game Type" will sort the files based on their Game Type key.

saveGroupName

Return to Top ^
public var scoreBoardName:String;
The name of the save group that will be displayed. If no name is specified, the save browser will default to the first save group available for this game. This save group will be used for the next call to loadFiles.

sortDescending

Return to Top ^
public var sortDescending:Boolean;
Sets the sorting order of the files.

sortField

Return to Top ^
public var sortField:String;
Determines the field that the files will be sorted on.

title

Return to Top ^
public var title:String = "High Scores";
The title text displayed at the top of the save browser.