# .duration mp3 id3 property

**URL:** <https://forum.kirupa.com/t/duration-mp3-id3-property/240816>\
**Category:** flash\
**Created:** [October 6, 2007, 5:28pm UTC](https://forum.kirupa.com/t/duration-mp3-id3-property/240816 "2007-10-06T17:28:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bpdp](https://avatars.discourse-cdn.com/v4/letter/b/c0e974/32.png) [@bpdp](https://forum.kirupa.com/u/bpdp)\
**Post date:** [October 6, 2007, 5:28pm UTC](https://forum.kirupa.com/t/duration-mp3-id3-property/240816/1 "2007-10-06T17:28:27Z")

</div>

hello,  
I’m having trouble with this:

```auto

function playMusicFunc(whichSong) {

	mySound = new Sound();
	curPlaybackPos = 0;
	
	disablePlay();
	song = filePath[whichSong];
	
	mySound.loadSound(song, true);
	mySound.setVolume(curTrackVolume);
	
	dur_txt.text = mySound.duration;
}

```

Seems simple enough, but…

dur\_txt.text = mySound.duration;

always displays 0, any help would be great.  
Thanks
