all groups > flash (macromedia) > april 2005 >
You're in the

flash (macromedia)

group:

Rollover Motion Tween Buttons


Rollover Motion Tween Buttons em_shomer
4/2/2005 7:06:58 PM
flash (macromedia):
I am about to gouge my eyes out with my bare hands, because Im so frusterated.
I bought a couple flash books to help me out, but i cant seem to get this down.
I am trying to create a rollover button flash identical to the buttons that
appear in the link below. I understand that you have to create a movie clip and
then insert it in the buttons over state. I understand that, but i dont know
how to use actionscript, When the mouse mouses over the button and to get the
motion when it mouses off. I need some help or a good tutorial with screen
shots that can help me with this, At this point I would even pay someone to
just create one for me. OK...the first link is what I want to replicate(just
the buttons) its is from a flash template.
http://home.comcast.net/~emshomer/Leftbtmbutton.jpg Any help would be greatly
appreciated, I really need help with this ASAP
Re: Rollover Motion Tween Buttons arashamiri NO[at]SPAM hotmail.com
4/26/2005 9:20:33 AM
i did it like this:

create a symbol "movie" with some animation.

split the movie into two parts:

in the first part do some animation
in the second part do the reverse animation

- add a "stop();" in the first frame of the movie
- and a "stop();" in the last frame of the movie
- and a "stop();" in the middle of the movie (after the animation is completed,
before the reverse animation starts)

clear??

create a symbol "button"

add the button to your "main" scene

place the movie above the button.

click on the movie:
add following actionscript:

that's tricky but cool:

on (rollOver) {
if (_currentframe > _totalframes / 2)
gotoAndPlay(_totalframes - _currentframe + 1);
else
gotoAndPlay(2);
}

on (rollOut) {
gotoAndPlay(_totalframes - _currentframe);
}



[quoted text, click to view]
AddThis Social Bookmark Button