PDA

View Full Version : making buttons move smoothly


Yishai
08-15-2001, 05:31 PM
when you make a button that does something on the over state (get bigger, move, change color), how do you make it return smoothly to the regular state? here is an example of where i am trying to make it work:

http://yishai.org/new.swf

the button at the top that says "yishai" for example. how would i get that to go back to just one white "yishai" smoothly?

i know this question has been answered before, but i can't make it work. there is even an similar one now one the first page of topics, but i know there has to be an easier answer.

thanks,
jesse

matt poole
08-15-2001, 09:55 PM
Hey dude,

heres one way you could do it...

Put an invisible button onto the instance of your Yishai.org movie clip.

Then add an 'on (rollOver)' action on the button that tells the movie clip to play and add a stop to the end.

Then add a blank movie clip into the yishai clip with the following actions in the following frames:

frame 1: stop ();
frame 2: _parent.prevFrame ();
frame 3: gotoAndPlay (2);

Add an 'on (rollOut)' action to the invisible button that tells the blank MC to play. This should reverse the Yishai clip back to the white image creating the illusion of a smooth roll out effect

hope its works ok!!

Yishai
08-16-2001, 02:04 AM
thanks for your suggestion. i am going to see if i can get this to work.

Yishai
08-16-2001, 02:42 PM
Alright!! I think that I got it work for the most part. Thank you matt for your suggestion.

http://yishai.org/new.swf

matt poole
08-16-2001, 03:21 PM
A pleasure.