Infinite menu, but different approach

Hello all,

I have a vertical menu containing 6 items (buttons). I’d like to have it loop: Ex: When I press button one, it animates up and off the top of the page and reappears at the bottom. Like wise, if I hit button three, all buttons eill move up and one, two, three ‘reappear’ at the bottom.

Here is the code:
// make navigation, clips move about
function MoveTo (clip, yTo, speed)
{
clip.onEnterFrame = function ()
{
this._y += (yTo - this._y) * speed;
};
}

// main navigation button behavior
mainNav.button1.onPress = function ()
{
MoveTo (mainNav, -18, 0.15);
};
stop();

I’ve attached an MX 04 file as well. I’d be aternally grateful to anyone who can help. :slight_smile:

Many thanks in advance

T