Hi –
Have a preloader bar that stretches from left to right until it fills a gauge in the background-- standard stuff.
Also have a KB numerical reader that calculates from 0 to 100%-- again standard stuff.
I would really like the numerical reader to follow the right hand side of the preloader bar as it grows from left to right. Can’t really figure it out.
Here is the preloader code-- pretty standard-- please, someone, help me make the KB reader move with the load bar width.
Thanks in advance, sure it must be simple, but confused as heck.
this.stop();
// Stop movie and do the preloader.
myInterval = setInterval(preloader, 1);
function preloader() {
if (getBytesLoaded()>=getBytesTotal()) {
_parent.gotoAndPlay(3);
clearInterval(myInterval);
}
loadbar._xscale = (getBytesLoaded()/getBytesTotal())*100;
loadtext.text=Math.round(getBytesLoaded()/getBytesTotal()*100)+"%";
}