Need Help Making This Work

Ok, I have a flash site that I’m building with AS 2.0. What I’m trying to do with the below code is:

when the user enters the frame for the very first time the navbar movie clip will play. But, when ever the comeback to that frame anytime later then the movie clip automatically goes to the last frame. But, the movieclip doesn’t seem to want to play at all.

stop ();
var navbar = false;
//
this.onEnterFrame = function ()
{
if (navbar == false)
{
navbar_mc.gotoAndPlay (2);
}
else
{
navbar_mc.gotoAndStop (30);
}
//
if (navbar_mc.totalFrames)
{
navbar = true;
}
};