Cita:
this.onEnterFrame = function() {
var pos:Number = Math.floor(mp3.position*100/mp3.duration);
barra_mc._xscale = pos;
var segundos:Number = mp3.duration/1000;
var min:Number = Math.floor(segundos/60);
var sec:Number = Math.floor(segundos%60);
var posicion:Number = mp3.position/1000;
var minpos:Number = Math.floor(posicion/60);
var secpos:Number = Math.floor(posicion%60);
if(secpos<9){
info_txt.text = minpos+":0"+secpos+" / "+min+":"+sec;
}else{
info_txt.text = minpos+":"+secpos+" / "+min+":"+sec;
}
}
Agradesco la Ayuda. this.onEnterFrame = function() {
var pos:Number = Math.floor(mp3.position*100/mp3.duration);
barra_mc._xscale = pos;
var segundos:Number = mp3.duration/1000;
var min:Number = Math.floor(segundos/60);
var sec:Number = Math.floor(segundos%60);
var posicion:Number = mp3.position/1000;
var minpos:Number = Math.floor(posicion/60);
var secpos:Number = Math.floor(posicion%60);
if(secpos<9){
info_txt.text = minpos+":0"+secpos+" / "+min+":"+sec;
}else{
info_txt.text = minpos+":"+secpos+" / "+min+":"+sec;
}
}