# Ranking system

**URL:** <https://forum.kirupa.com/t/ranking-system/282906>\
**Category:** flash\
**Created:** [February 27, 2009, 5:15pm UTC](https://forum.kirupa.com/t/ranking-system/282906 "2009-02-27T17:15:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Danief](https://avatars.discourse-cdn.com/v4/letter/d/b9bd4f/32.png) [@Danief](https://forum.kirupa.com/u/Danief)\
**Post date:** [February 27, 2009, 5:15pm UTC](https://forum.kirupa.com/t/ranking-system/282906/1 "2009-02-27T17:15:08Z")

</div>

I have a ranking system set up, and its functional. the movie clips “a”-“d” displays the rank. while the dyanamic text box “one” is changing for future reference. heres my code:

```auto
if(myStopWatch.getTime() < 70) {
     A.gotoAndPlay(2);
     one.text="A";
} else if(myStopWatch.getTime() < 1000) {
    B.gotoAndPlay(2);
    one.text="B";
} else if(myStopWatch.getTime() < 3000) {
    C.gotoAndPlay(2);
    one.text="C";
} else if(myStopWatch.getTime() > 5000) {
    D.gotoAndPlay(2);
    one.text = "D";
}

```

however, I realized that if you got a rank of B, and you replayed the level, and your rank went down, you’d want your better rank to stay in place.

so how can i keep the highest rank in the dynamic text box “one”, so it doesnt change if you later get a lower rank?

thanks for looking.:sonic::sonic::sonic::sonic:
