This content has been marked as final. Show 3 replies
also if you would like to see the player go to www.parrisstudios.com and it is the first post there. You need to scroll down to the bottom of that post. I had to fill up some space because the player was too wide for the top of the page I need to shrink it down.
After doing a little more research. I found that there is a way to estimate the length of a song. Of course it is off a little bit until the end of the song. It will continually become more accurate.
//get an estimate of how long the sound is becase
//_parent.soundToLoad.duration will only give the loaded duration
var kbps:Number = (((_parent.soundToLoad.getBytesLoaded()*8)/1000)/(_parent.soundToLoad.duration))*1000;
var num:Number = int(((_parent.soundToLoad.getBytesLoaded()*8)/kbps)/1000);
//calculate the progress amount
progressamount = Math.round(((_parent.soundToLoad.position /(num*1000)) * 100));
still not completely accurate although it is better than before. Anyone have any suggestions?