Mp3 player (displays miliseconds, but i need seconds) T.T

i have the mp3 player working, displays miliseconds because is only thing i could achieve. :tb:
Displaying seconds with this mp3 streaming player is a mistery to me.

When u export the swf file Play button doesnt work, seek bar doesnt respond also, but in brouser works fine.

Only problem i have is that i would like replace the miliseconds display by a friendly minute-second one :stuck_out_tongue: without altering the seek bar. Thank u all
:beam:

o and pls dont give me the KennyBellew tutorial url i have allready checked it.

title = Math.round(s.position/1000)+" of "+Math.round(s.duration/1000)+" "+src;

lol i need glasses … or rest :crazy:

Thx anyway i would never had figured out today without ur help

I buy u a beer :beer:

welcome :slight_smile:
and dont forget to mail me the beer :stuck_out_tongue:

well im pretty confused, I forgot to ddivide by /1000 but besides of that i needed this format min:sec can i bother u to teach me how ?
Brahma rules!!!

:bad:

Use this instead:

function miliToMinutes(time) {
	var min = Math.floor(time/1000/3600*60);
	var sec = Math.floor((time/1000/3600*60-min)*60);
	var minutes = min<10 ? "0"+min : min;
	var seconds = sec<10 ? "0"+sec : sec;
	return minutes+":"+seconds;
}
title = miliToMinutes(s.position)+" of "+miliToMinutes(s.duration)+" "+src;

i was wondering, do you know a good book or method to learn more about this actionscript function like the ones u showed me?
Works great, but it messes up with the dragger seek bar function i’ll try to figure out whats wrong, i dont quite understand all u did.

There is a working (with seek bar problem) example at the link in my 1st post

Thanx u! =)

welcome :slight_smile:
I dont know any AS books as ive never read one. You might want to search the forums. This subject has been discussed before.

Ill try to check your file, maybe we can fix the drag bar bug. :wink:

i hope u can check it, and help me fix it.
thx again cya!:hr: