Menu with slider - problems with getting the icon in a good spot

Ok so i have it work sort of:
http://www.thespeedlounge.com/beta/navi%20rev2.swf

but the problem is that when the mouse goes over certain buttons like “information” the star goes to the beginning of the word but i’d like it to go to the middle, is there a way to do that??? I tried making a new button with a registration point in the middle but then the star goes too far right :puzzle:

any suggestions?

Without knowing how you’ve done the movement, if you want it to lock on to the middle of the mc it’s under, then


followerMC._x=targetMC._x+((targetMC._width/2)-(followerMC._width/2));

or something like that. To have it ease in place, check out ZigoEngine or similar.

Without knowing how you’ve done the movement, if you want it to lock on to the middle of the mc it’s under, then


followerMC._x=targetMC._x-((targetMC._width/2)+(followerMC._width/2));

or something like that. To have it ease in place, check out ZigoEngine or similar.

thanks, ill check that out

…ok i checked it but i dont know where to put your code. This is mine for the action script:

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;

};

anything…anyone?

Your code checks out, when using _x … it snaps to the registration points, so make sure that the registration point on “information” is in the middle.

My example uses mc_tween 2. A nice little extension which makes things like this really easy. I also added some extra into it, using flash 8’s new blur filter. So now when the ease is occuring, there will be a blur on the star.

wow…how did you get that to work? and can it blur when the mouse hovers over an object and not when its clicked on?

how about
onRollOver(“the name of the MC”){
//blury-thingy-code (i dont know what the hell the code is)
}

:slight_smile: :slight_smile:

ill give it a shot, thanks