# Highscore table

**URL:** <https://forum.kirupa.com/t/highscore-table/277050>\
**Category:** Uncategorized\
**Created:** [December 6, 2008, 8:47pm UTC](https://forum.kirupa.com/t/highscore-table/277050 "2008-12-06T20:47:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ryrocks](https://avatars.discourse-cdn.com/v4/letter/r/ba9def/32.png) [@ryrocks](https://forum.kirupa.com/u/ryrocks)\
**Post date:** [December 6, 2008, 8:47pm UTC](https://forum.kirupa.com/t/highscore-table/277050/1 "2008-12-06T20:47:13Z")

</div>

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
