Hello,
just a quick question reguarding how to make a preloader animate backwards. So the bar decreases in width as the load number gets larger.
Here's my code
onClipEvent (enterFrame) {
loading = _root.getBytesLoaded();
total = _root.getBytesTotal();
if (percent == undefined) percent = 0;
percent -= (percent-((loading/total)*100))*.25;
per = int(percent);
percentage = per+"%";
loadBar._width = per*9.70;
if (percent>99) {
_root.gotoAndStop(2);
}
}
Many thanks,
Matt