Simple Preloader problem

I am trying to do a preloader for an animation of mine for class, and instead of using the traditional loading bar, I am using a little figure that has to travel 285 pixels to the right (x) in order for it to hit the “100%” mark…

this is my actionscript in my 1st frame

var amountLoaded:Number = _root.getBytesLoaded()/_root.getBytesTotal();
penar._x = (amountLoaded*2.85)
a1.text = Math.round(amountLoaded*100)+"%";

and in my second just in case

if (_root.getBytesLoaded() == _root.getBytesTotal()) {
 gotoAndPlay(3);
} else {
 gotoAndPlay(1);
}

My problem is, with that code in the first frame it doesn’t travel all the way, it only goes like 1/10 of the way through. I have tried various other ways but it either goes way too far or barely anywhere. It’s probably something dumb, yes I know. Any help would be awesomedizzle.