anyone have any ideas on how to add a percentage preloader to this fla?
I think if you make a dynamic text box and give it a variable name like, LoadText
then put that box somewhere in your transition mc, which i think you called “loader”
then change this:
[AS]
if (_root.content.getBytesLoaded()>=_root.content.getBytesTotal()) {
gotoAndPlay(“loaded”);
}
[/AS]
to
[AS]
bytes_loaded = Math.round(_root.content.getBytesLoaded());
bytes_total = Math.round(_root.content.getBytesTotal());
getPercent = bytes_loaded/bytes_total;
this.LoadText = Math.round(getPercent*100)+"%";
if (bytes_loaded == bytes_total) {
gotoAndPlay(“loaded”);
}
[/AS]
of course the this.LoadText = Math.round line would have to reflect your path to it…ie _root.loader.LoadText = Math.round or whatever it should put a percentage loaded