PreLoader Help Needed

Im needing assistance, I have the following script for my preLoader (see below). Its a simple preLoader with a loading bar that goes from left to right with a percent read out.

What I want is the percent text box to move along the [COLOR=Magenta]_x[/COLOR] with the load bar, so when the load bar is at 100% the percent text box is just above.

Can anyone help??

[COLOR=Navy]myInterval = setInterval(preloader, 10);
function preloader() {
if (_root.getBytesLoaded()>=_root.getBytesTotal()) {
_root.loadBar._xscale = (_root.getBytesLoaded()/_root.getBytesTotal())*100;
_root.percentageDisplay.text = Math.round(_root.getBytesLoaded()/_root.getBytesTotal()*100)+"%";

i’m not sure, but maybe try:

_root.percentageDisplay._x = _root.loadBar._width

but then again, you can’t manipulate the _x property of a text field. so put it in a movie clip??

but you may get some lag time with the set interval…hmm…

oops. maybe i shouldn’t have responded. sorry.

right after the _root.loadBar._xscale line put:
_root.percentageDisplay._x = Math.floor(_root.getBytesLoaded()/_root.getBytesTotal())*loadBarFinalLength; //replace loadBarFinalLength with the number representing the width of the loadbar at 100%

That should move it along the x axis as the loadbar grows…just remember to put in the number or it won’t work
Good Luck if you have other questions let me know