Purpose: Have a sliding horizontal bar, highlighting your horizontal menu
Difficulty: Intermediate
In Short: Using simple actionscript to create the movement.
easeSpeed = 5;
//slider_mc is your Movie Clip's name, not the Instance Name.
slider_mc.onEnterFrame = function() {
this._x += (xMove1-this._x)/easeSpeed;
};
button_1.onPress = function() {
xMove = button_1._x;
};
button_2.onPress = function() {
xMove = button_2._x;
};
button_3.onPress = function() {
xMove = button_3._x;
};
button_4.onPress = function() {
xMove = button_4._x;
};
button_5.onPress = function() {
xMove = button_5._x;
};
button_6.onPress = function() {
xMove = button_6._x;
};
button_7.onPress = function() {
xMove = button_7._x;
};
Download .fla:
Click here.
Source: http://www.toucs.com




