Hi there,
I would like to do something like in “Meno with slider” tutorial but make the slider fit it self in buttons that are in diferent scale.
Is it possible to make the slider fit to the size of the button and resize when you go to another button of defirent size.
For the Slider
onClipEvent (load) {
xMove = _x;
xScale = _x;
easeSpeed = 6;
}
onClipEvent (enterFrame) {
_x += (xMove-_x)/easeSpeed;
_xscale += (xScale-_x)/easeSpeed;;
}
For the Button
on (rollOver) {
slider.xMove = Links._x;
slider.xScale = Links._x;
}