I’ve written and rewritten this code multiple times, as well as copy and pasted some successful code. And when I simulate download it seems to always download at the same rate. Soo…It could be my default settings are wacked out or I just screwed the code up. Could use some help.
stop();
myInterval = setInterval(preload,100);
function preload() {
var current = _root.getBytesLoaded();
var total = _root.getBytesTotal();
var pctLoaded = Math.round(current/total*100);
pct_txt.text = pctLoaded;
loaderBar_mc._xscale = pctLoaded;
if (current >= total) {
gotoAndStop("main",1);
clearInterval(myInterval);
}
}