PDA

View Full Version : creating a translucent color for buttons


Hockeyfan
03-10-2006, 11:58 PM
I am creating buttons and what I want to do is when i roll over the button I want the nre collor to ease into the button rather then just appear. Also I would like to modify how opaque the color is. If anyoune can tell me how to accomplish this that would be great

Thank you,

Hockeyfan

By the way I am using flash 8

bombsledder
03-11-2006, 12:04 AM
to ease in, you going to need a movieClip and not a button, that way you can transform the colors into the color you want onRollOver, etc..

Hockeyfan
03-11-2006, 06:02 AM
I made the button that I wanted to have the color change to ease in a movie clip rather then a button. When I went to debug the animation I got an error telling me that "on (rollOver) can not be used in move clips. How do I accompish the task of having a gradual change in color rather an immediate change? Also I would like to have the button have a 3D effect. Also How can I make the colr less opaque?

Thanks again

Hockeyfan

guiltfilter
03-15-2006, 01:32 AM
Create a movie clip with instance name of my_btn. Open the movie clip and place your static graphic on frame 1 and 10. Have the graphic tween or fade in to frame 5 and out to frame 10. Place a stop(); action on frames 1, 5, 10.

Go to your main timeline and place action on frame 1 thus:


my_btn.onRollOver = function() {
this.gotoAndPlay(2);
};
my_btn.onRollOut = function() {
this.gotoAndPlay(6);
};