What you need to do is calculate the distance between the current position and the 'target' position and divide this by a number greater than one. Then you add the result to the current position. Do this once per frame and the result looks like 'easing'. Here's some sample code:
In your button
Code:
on (release) {
_root.menuMovie.scroll = 1;
_root.menuMovie.targetX += 100;
}
This of course assumes that your menu movie clip is called menuMovie and is in the main timeline -- you'll have to change this to whatever is appropriate in your movie. And of course, you'll need to change the value of 'targetX' to whatever you need it to be.
Then in your menu movie clip:
Code:
onClipEvent (load) {
speed = 3;
}
onClipEvent (enterFrame) {
if (scroll) {
diffx = targetX - _x;
_x += diffx/speed;
if (math.abs(diffx) <=0.05) {
scroll = 0;
}
}
}
Changing the value of speed will alter the speed with which the menu moves -- higher values will be slower (value must be greater than 1).