如何在完全下載之前找到mp3的總時間?我有這個功能,這就是所謂的TimerEvent.TIMERAS3 - 如何在下載之前找到mp3的總時間?
private function onTick(e:TimerEvent):void
{
_soundLength = _sound.length;
_position = _channel.position;
mp3Interface.timeBar.timers.elapsedTime.text = ascb.util.DateFormat.formatMilliseconds(_position);
mp3Interface.timeBar.timers.totalTime.text = ascb.util.DateFormat.formatMilliseconds(_soundLength);
var percentPlayed:Number = Math.round((_position/_soundLength)*100);
mp3Interface.timeBar.seeker.x = (percentPlayed*mp3Interface.timeBar.progressBar.width-5)/100;
}
的問題是THA的TOTALTIME是正確的,只有當MP3完全下載..