Answered
Sound.getBytesLoaded proplems, help!
I am trying to program a preloader for external MP3 files,
the sound var is called MP3ToPlay so i figure my code should be as follows;
bytes_loaded = Math.round(_root.MP3ToPlay.getBytesLoaded());
bytes_total = Math.round(_root.MP3ToPlay.getBytesTotal());
getPercent = bytes_loaded/bytes_total;
loadText1 = Math.round(getPercent*100)+"%";
Though in the text box all i am getting is NaN%
what might this problem be?
source files online at
http://www.philipbell.org/drphil/webtest/
the sound var is called MP3ToPlay so i figure my code should be as follows;
bytes_loaded = Math.round(_root.MP3ToPlay.getBytesLoaded());
bytes_total = Math.round(_root.MP3ToPlay.getBytesTotal());
getPercent = bytes_loaded/bytes_total;
loadText1 = Math.round(getPercent*100)+"%";
Though in the text box all i am getting is NaN%
what might this problem be?
source files online at
http://www.philipbell.org/drphil/webtest/