Okay, I quit. I’ve tried incrementing _x, startDrag’s with easing…nothing. Anyone that can help explain how to code the little red bar for the navigation on this site ( http://www.brandnewrock.com/index.php ) will become my hero.
I’m kind of new, kind of not new…which is why I feel like an *** posting this question, because I SHOULD KNOW THIS.
Well…no. Takes too much time to compile an FLA from this. You can see what it does here: emptyproductions.com/new
Basically, you have a buttons that – when moused over – instructs the barMC (“underline” as it’s called above) to move underneath the proper MC, adjusting it’s width to fit the width of the button it’s under and easing into place using a custom method.
Once one/all/any of the links are moused over and the mouse is no longer over any of the MCs, then a setInterval is called that eases the underline back offscreen after a set amount of time.
The if/then function is to determine whether the mouse is over the links or not.
The setInterval eases the underline out of view and is called when the mouse is no longer over any of the navigation MCs.
I’ll try to post an FLA later tonight, I guess. Hope this explanation helps a bit.