Hi
I’am making a advanced mp3 player arund this tutorial:
http://www.flashkit.com/tutorials/Audio/Create_c-Shaun_St-881/index.php
and i want the users of the player to see how long they have listen or how long time back of the song. i have the AS i what to use but i cant connect them. becuase the tutorial i used does not make a sound objekt (MUSIC)
[AS]
pos = new Date();
pos.setSeconds(MUSIC.position/1000);
pos.setMinutes((MUSIC.position/1000)/60);
seconds = pos.getSeconds();
minutes = pos.getMinutes();
if(seconds < 10){
seconds = 0 + seconds.toString();
}
if(minutes < 10){
minutes = 0 + minutes.toString();
}
}
timeleft = minutes + “:” + seconds;
[/AS]
Hope some one knows what to do
thank in advance
Bonna