Movie Clip Menu Problem - help would be great!

I’m creating a menu bar that is a movieclip and inside the movieclip consists of the buttons.

Now the menu bar is twice as WIDE as what is visible on the stage.

The only part you can see is the text ‘menu’ on a bar.

Then when the mouse hits the bar, it flies across the screen to the otherside of the bar where the menu buttons are.

Now the menu bar does its animation over 20 frames - the last frame being the frame where the menu buttons are now visible.

On the last frame i have the ‘stop;’ code

On the first frame I have this code:


this.onEnterFrame = function(){

if(rewind == true){


if (this.hitTest(_root._xmouse, _root._ymouse)) 
	rewind = false;
	rewind = true;


Now when i test my movie it it works fine when my mouse hits the bar BUT it doesnt stop!!! and i just get this continous bar flying!!!

Please help it would be great all i want is for the bar to stop on frame 20!

If you are confused please look at the navbar on PRELOADIT