Movement Preloader?

I am trying to make a preloader where rather than have a bar which gets bigger, I want a movieClip to move across the stage. I am using the following code but it doesn’t work:

stop;
PercentLoaded = getBytesLoaded/getBytesTotal100;
if (PercentLoaded != 100) {
setProperty(boat, _x, PercentLoaded
12);
} else {
gotoAndPlay(“3”);
}

Can anyone help me?

It isn’t in a seperate scene or movieclip, might this be the problem?

Thanks, Ben