hello wise forum-
i’m using a tutorial from this site to build a menu with a sliding bar that follows the mouse to a button location- tutorial and code is here: http://tinyurl.com/2avju6
it’s simple, lovely, and working (yay!) however, my menu crosses 2 lines, the example has just a single line.
how can i get the slider to jump down to the next line below and align with the buttons there?
here’s the basic code with my [COLOR=Blue]nonfunctioning[/COLOR] additions:
easeSpeed = 5;
slider_mc.onEnterFrame = function() {
this._x += (xMove1-this._x)/easeSpeed;
[COLOR=Blue]this._y += (yMove1-this._y)/easeSpeed;[/COLOR]
};
button_1.onPress = function() {
xMove = button_1._x;
};
button_2.onPress = function() {
xMove = button_2._x;
};
button_3.onPress = function() {
xMove = button_3._x;
[COLOR=Blue] yMove = button_3._y; //actually at button 4 i move to the next line[/COLOR]
};
then for the buttons:
on (rollOver) {
slider.xMove = button_3._x;
[COLOR=Blue]slider.yMove = button_3._y;[/COLOR]
}
um… i think my logic is off here. :pa:
help!
thanks–
alex