Hey,
I’m trying to make a highscore table for a game. The table is very basic, only displaying the user name and their score, I therefore don’t think it warrants a database. Is there a way of storing these variables in a text file, sorting them in descending order and then displaying the top 10?
I’ll probably have to take a different route, but I have so far managed to display variables from a text file:
var loader:URLLoader = new URLLoader();
loader.dataFormat = URLLoaderDataFormat.VARIABLES;
loader.addEventListener(Event.COMPLETE, loading);
loader.load(new URLRequest(“scores.txt”));
function loading (event:Event):void {
boxname_1.text = loader.data.name_1
boxscore_1.text = loader.data.score_1
}
Text file code:
name_1=David:&score_1=100
Any help or advise would be much appreciated.
-Ryan