Questions about tutorial 'sliding menue'

Hi,

I am kinda new to Flash and I have a few questions about that code from this tutorial:

http://www.kirupa.com/developer/flash8/slidingMenu.htm

Here’s the code:

var currentPosition:Number = contentHold.content1._x;
var startFlag:Boolean = false;
menuSlide = function (input:MovieClip) {
if (startFlag == false) {

    startFlag = true;
    
    var finalDestination:Number = input._x;
    var distanceMoved:Number = 0;
    var distanceToMove:Number = Math.abs(finalDestination-currentPosition);
    var finalSpeed:Number = .3;
    var currentSpeed:Number = 0;
    var dir:Number = 1;
    
    if (currentPosition<=finalDestination) {
        dir = -1;
    } else if (currentPosition>finalDestination) {
        dir = 1;
    }
    
    this.onEnterFrame = function() {
        currentSpeed = Math.round((distanceToMove-distanceMoved+1)*finalSpeed);
        distanceMoved += currentSpeed;
        contentHold._x += dir*currentSpeed;
        if (Math.abs(distanceMoved-distanceToMove)<=1) {
            contentHold._x = maskMovie._x-currentPosition+dir*distanceToMove;
            currentPosition = input._x;
            startFlag = false;
            delete this.onEnterFrame;
        }
    };
}

};
b1.onRelease = function() {
menuSlide(contentHold.content1);
};
b2.onRelease = function() {
menuSlide(contentHold.content2);
};
b3.onRelease = function() {
menuSlide(contentHold.content3);
};
b4.onRelease = function() {
menuSlide(contentHold.content4);
};
b5.onRelease = function() {
menuSlide(contentHold.content5);
};

  1. What do I need to do to make this sliding menue slide vertical and not horizontal ?

I already changed all the ‘x’ values to ‘y’ in the code but it doesn’t do anything after this…

  1. I wanna add ‘Next’ & ‘Previous’ buttons to my menue bar. When the end of the (sliding) clip is reached I want Flash to recognize that and when the user still presses on ‘Next’ to do no action (no more sliding).

What would be the code for that ?

  1. In another tutorial an author talked about the Action Script ‘Expert Mode’…

What is that and what an u do in there ? Is it the normal mode when you use not Script Assist ?

The author wrote to go to the Actions Panel click into the field and press ctrl+E to switch to Expert Mode. When I press ctrl+E in the .fla provided in that tutorial it just jumps back to the main timeline…

Thanx for your help in advance !

Regards,

Mike