Downloading a file using ActionScript 3 and timing it


I can initiate a file download from Flash using AS 3 but I would also like to display information like:

  • How long the download took
  • The average speed of the download in Kbps

Does anyone know if this is possible in AS 3 and if so how to go about doing it and then displaying the information in a Flash applet once the download has completed?

Thanks in advance for your help