# mp3 duration

**URL:** <https://forum.kirupa.com/t/mp3-duration/224543>\
**Category:** flash\
**Created:** [May 3, 2007, 7:20am UTC](https://forum.kirupa.com/t/mp3-duration/224543 "2007-05-03T07:20:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bulletz](https://avatars.discourse-cdn.com/v4/letter/b/f6c823/32.png) [@bulletz](https://forum.kirupa.com/u/bulletz)\
**Post date:** [May 3, 2007, 7:20am UTC](https://forum.kirupa.com/t/mp3-duration/224543/1 "2007-05-03T07:20:15Z")

</div>

hello:  
i’m trying to create an mp3 player…  
buttons are created dynamically by loading xml file.

i can only get the duration of the mp3 after i “loaded” it.  
how can i display the duration of each song without  
loading it? i want it to display like (pls see below), after xml file is loaded:

song\_1 - 03:51  
song\_2 - 02:53  
song\_3 - 04:25  
etc …  
etc …

\*i already have the timeformat to display “00:00”

any input is very much appreciated.  
thanks in advance.
