this site i am working on the menu is not exactly how i would like it. does anyone know how to make the little easing piece i have stop over each word and if you stop between words it will jump to the next word.
here you can take a look
this site i am working on the menu is not exactly how i would like it. does anyone know how to make the little easing piece i have stop over each word and if you stop between words it will jump to the next word.
here you can take a look
what are the actions for the moving mc? and the actions for the buttons?
80% its just an adjustment at the calculation
well right now i think that i am doing this the totall crap way. i have a mc that is the length of the whole menu bar and i just have that shape easing along that mc. that is why i question if there is (i am sure there is) a much better and more professional way to do this.
you’d probably have an variable in that mc with:
newX = _root._xmouse
or something simular…
make sure you set the vars on the buttons with an rollover
on(rollOver){
_root.easingMc.newX = this._x + this._width/2
}
adjust it to your needs…
yep i think that would work, thanks for your help!
i guess i am still a little off here is what is in my mc
onClipEvent (load) {
_root.tarX = 262;
}
onClipEvent (enterFrame) {
if (_root.box.hitTest(_root._xmouse, _root._ymouse)) {
_root.tarX = _root._xmouse;
}
_root.bigbox._x = _root.tarX-(_root.tarX-_root.bigbox._x)/1.2;
}
and here is what is on my button
on (rollOver) {
_root.box.tarX = this._x+this._width/2;
}
my mc is named box
looks like this is a bit useless…
if (_root.box.hitTest(_root._xmouse, _root._ymouse)) {
_root.tarX = _root._xmouse;
}
I think what you want to do is have the slider ease to a certain position corresponding to a menu option, not the mouse position. If you post the fla, I’ll give it a shot.
i will post it later i have it at home and i am at work. really all there is is a movie clip. that has the code from above in it. and also a button. it is that simple but it does not work. i will post it later for you to check out.
:: Copyright KIRUPA 2024 //--