-
rollover bar effect
i know i was taught how to do this but i forget how to. this website: http://www.graphikline.com/main.php has a rollover bar effect that i like. i'm just wondering how to do the bar effect, not the changing of the letters/text effect.
what i'm looking to do is have the bar come in like it does on that site for a rollover but keep my text the same which is white.
can anyone tell me how this is done?
(i'm using flash 8)
lizzie
-
The way I would do this would be to create a movie clip which will be your bar and create a motion tween of it moving in and then moving out. what you want is to have a keyframe at say, frame 1 and one at frame 10 for the in movement, then a key frame at frame 11 and at frame 20 for the out movement.
Then on frames 1 and 10 you want to place the code:
stop();
Then go back to the main timeline and enter the code:
thisBtn.onRollover=function(){
_root.bar.gotoAndPlay(2);
}
thisBtn.onRollOut=function(){
_root.bar.gotoAndPlay(11);
}
*where thisBtn is the name of the button you created which holds the text, and bar is the instance of the bar animation (and giving it a refernece from the root of the file.)
hope this helps!