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 without altering the seek bar. Thank u all
:beam:
o and pls dont give me the KennyBellew tutorial url i have allready checked it.
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!!!
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