ProtoC
06-06-2006, 08:23 PM
I am using this widely available simple preloader code to display a percentage count of my movie:
bytes_loaded = Math.round(_root.getBytesLoaded());
bytes_total = Math.round(_root.getBytesTotal());
getPercent = bytes_loaded/bytes_total;
percentor.text = Math.round(getPercent*100)+"%";
There is code that checks if the movie is loaded and send the playhead to the start but thats the main chunk we all know and love.
The problem is that it only displays "75%" than "100%" but nothing before or in between. Is there a better way to make a percentage pre-loader, that you literally see going from 1% to 100%?
bytes_loaded = Math.round(_root.getBytesLoaded());
bytes_total = Math.round(_root.getBytesTotal());
getPercent = bytes_loaded/bytes_total;
percentor.text = Math.round(getPercent*100)+"%";
There is code that checks if the movie is loaded and send the playhead to the start but thats the main chunk we all know and love.
The problem is that it only displays "75%" than "100%" but nothing before or in between. Is there a better way to make a percentage pre-loader, that you literally see going from 1% to 100%?