TigerDirect

Who's Online

We have 15 guests online
Home Technology Tutorials Horizontal Slider Highlighted Menu
Horizontal Slider Highlighted Menu
Thursday, 14 January 2010 11:08
slider
Purpose: Have a sliding horizontal bar, highlighting your horizontal menu

Difficulty: Intermediate

In Short: Using simple actionscript to create the movement.
Actionscript used:

(sample)

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.
 

Add comment


Security code
Refresh