Hi,
I have a menu in which when you click on a button, a rectangle moves up or down to sit behind the button clicked on (to highlight it).
I was wondering how I can make the rectangle move smoothly as in the tutorial where the ball follows the mouse.
Here is the code I have used:-
Actions layer-
Frame 1:
currenty = -50;
yto = -50;
Frame 2:
if (currenty == yto) {
} else if (currenty<yto) {
setProperty(bar, _y, bar._y+10);
currenty = bar._y;
} else if (currenty>yto) {
setProperty(bar, _y, bar._y-10);
currenty = bar._y;
}
Frame 3:
gotoAndPlay(2);
And for each button-
on (release) {
yto = -50;
_root.contents.loadMovie(“demopage.swf”);
}
With ‘yto’ specifying the location to move to…
This all works fine, I just cannot work out how to get that smooth springy movment as the the ‘Mouse Follow with Easing’ tutorial…
Sorry for the long post, just wanted to give a full picture
thankyou
jay