[flash8] Timing and displaying how long a game takes

Hello all.

For my Advanced Higher Computing project at school, I decided to design and code a game in Flash. Bearing in mind, I’d never used flash before. Ever.

Well, everything has gone well, but I have a few problems with the last pieces of code.

I’ve used the

var starttime=getTimer()

code on the first scene

var elapstedTime=getTimer()-starttime;

on the last scene in order to time how long is taken to complete the game.

I’m not sure if this works properly, or how to then display it on the screen at the end of the game.

Help, please?

And sorry if the answer is really simple and obvious.
I’ve basically had to source my code from here, and other sites :]