*Originally posted by crapboyjr *
percent -= (percent-((downloaded/total)100)).25;
per = int(percent);
percentage = per+“%”;
loadBar._width = per;
These lines look odd to me but maybe it’s just me
You want to calculate the percent loaded but the first line got’s nothing to do with percents…
I think the following could help you out:
percent = downloaded / total;
// this isn’t percent either but I don’t know the English word for it
percentage = Math.round(percent * 100) + “%”;
loadBar._width = percent * totalWidthOfBar;
You need to replace the totalWidthOfBar with the acording variable
Oh, by the way. This also means that you need to change your check for when to start. When (percent == 1) the movie is fully loaded (as it’s the actual percent divided by 100).