View Full Version : my menu easing
rlLife
August 18th, 2004, 10:39 AM
this site i am working on (http://www.aspirebcg.com/clients/roddy) 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
www.aspirebcg.com/clients/roddy
RvGaTe
August 18th, 2004, 11:04 AM
what are the actions for the moving mc? and the actions for the buttons?
80% its just an adjustment at the calculation
rlLife
August 18th, 2004, 11:10 AM
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.
RvGaTe
August 18th, 2004, 11:15 AM
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...
rlLife
August 18th, 2004, 12:43 PM
yep i think that would work, thanks for your help!
rlLife
August 18th, 2004, 02:24 PM
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
RvGaTe
August 18th, 2004, 02:30 PM
looks like this is a bit useless....
if (_root.box.hitTest(_root._xmouse, _root._ymouse)) {
_root.tarX = _root._xmouse;
}
JustinM
August 20th, 2004, 04:17 PM
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.
rlLife
August 20th, 2004, 04:21 PM
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.
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.