Okay, I am by no means anything good at Flash development. I need help on
something. Pretty much, I am working on making buttons that pop out, but to the
right, diagonally when they are mouse-overed. It needs to look smooth as well.
Any thougts?
Twinbird24 - 15 Sep 2007 13:30 GMT
You need to use a Movie Clip symbol for you buttons, so you can make it
animated. In the movie clip, you first frame should be the 'Up' state of the
button. On your second frame, you should start the animation that would animate
into your popped out ' 'Over' state (remember, this is all in the Movie Clip
that is your button). You can then copy you animation (the frames) by
right-clicking them >copy frames, then paste the frames next to the last frame
and reverse them (right-click all of them and click reverse frames) to get an
animation that will make you button animate back into it's Up state. You should
make the animations tweens to make them as smooth as possible, and make the
ease 100% for both of them.
You probably didn't understand much of this, but you could email me your
button (videogame_guy24@hotmail.com) and I'll see what I can do..
Twinbird24 - 15 Sep 2007 13:35 GMT
Use action on the movie clip like:
on (RollOver) {
this.gotoAndPlay(2);
}
// so when you roll your mouse over the button, the movie clip will stat the
roll-over animation in your movie clip (just make sure to add stop actions at
the beginning, middle, and an action at the end of the movie-clip that says:
gotoAndStop(1);
// to make the movie clip return to frame 1 when the roll-out animation
finishes.
make a roll-out aaction this this on the movie clip:
on (rollOut) {
this.gotoAndPlay(8):
}
// asuming 8 is the frame after the stop action in the middle of your movie
clip button (after the roll-over animation in you MC).