Hi, i have a player in flash action 3. i need to take a the total time of the sound file and current time of the sound file. how can i code like this.
function onPlayProgress(evt:Event):void {
var sndLength:int = Math.ceil(snd.length /(snd.bytesLoaded / snd.bytesTotal));
var seekbar = 100 * (channel.position / sndLength);
playBar.seekbar.x = seekbar*5.8;
var _totalTime:Number = (((snd.length /(snd.bytesLoaded / snd.bytesTotal))*0.001/60));
what is current time??????????