# Flash CS3, Actionscript 2, Leaderboard help

**URL:** <https://forum.kirupa.com/t/flash-cs3-actionscript-2-leaderboard-help/295905>\
**Category:** flash\
**Created:** [September 7, 2009, 8:39am UTC](https://forum.kirupa.com/t/flash-cs3-actionscript-2-leaderboard-help/295905 "2009-09-07T08:39:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![chris\_1344](https://avatars.discourse-cdn.com/v4/letter/c/59ef9b/32.png) [@chris\_1344](https://forum.kirupa.com/u/chris_1344)\
**Post date:** [September 7, 2009, 8:39am UTC](https://forum.kirupa.com/t/flash-cs3-actionscript-2-leaderboard-help/295905/1 "2009-09-07T08:39:28Z")

</div>

Hi,

I am creating a game in flash and I am trying to create a leaderboard of players names and the times that they completed the game in. This is the current code:

```auto
 
Mouse.show();
finishTime = minutes+":"+seconds+":"+hundredths;
userName.text = username+" completed the quiz in "+finishTime;
userEmail.text = useremail;
view_leader.label = "Leaderboard";
view_leader.onRelease = function() {
 gotoAndStop('leaderboard');
 yourname_txt.value = username;
 yourtime_txt.value = finishTime;
};

```

What I want is that when the player clicks on the View Leaderboard button, it displays a leaderboard with the top 10 or 12 performers. Their name and time (if good enough) should be displayed at the correct position on the leaderboard.

This current code enters the values into the text fields after the button is clicked, however it constantly over-rides the previous score. i need something that will make all the scores display in a list and then something to sort them into order

Thanks for your help!!
