Reverse Rollover?
- Started
- Last post
- 18 Responses
- Buckyball2
How do I make my "About" button, after I roll out of the button, play the reverse of the movie you see when you roll over?
When you roll out, I want the About green bar to slide back to the left to its original position.
Probably easy. I've just never done one.
thanks,
bB
- vena0
flash?
- vena0
easy way:
movie clip with the forward animation, stop, and backward animation, goto 1. put an invisible button (one with a hit state and nothing else) on the layer above it and set mouseover{play} and mouseout{play}
- Buckyball20
excellent. i will give that a try.
thanks v.
bB
- ********0
you'd want to animate it with code, but it looks like you have a motion tween so if that's easier for you to understand then that way is fine.
You basically need a script that says gotoAndStop(_currentframe-1) with some sort of conditional statement...
hope that helps.
- zaven0
i like the first design most!
- Bio0
if you still have trouble, i can send you a sourcefile for how i made the buttons here: http://www.LifeInSepia.com
same principle as what you are trying to do really. mouse over = play the movie. mouse out = play the movie backwards from where it stopped.
anyway, shoot me an email at if you still wind up needing the file.
- mcLeod0
look for tuts on "tell target"
best piece of code i learned.
- lindkvistcom0
Me To old for flash... ;)
- ********0
yeah nice
- unfittoprint0
on the last movieclip button put:
this.onEnterFrame=function(){
if(this._currentframe!=1){
gotoAndStop(this._currentframe-1...
} else{
stop()
delete onEnterFrame;
}
- unfittoprint0
where it's writen 'on the last movieclip button put:' should read 'on the last FRAME of the movieclip-button, put:'
- stimuli0
I did this, is this similar to what you're after?
http://www.marketingconcepts.co.…
- bokkus0
but what if you want it to be smooth in that if the user rolls off midway through the animation, it plays back from that specific point? otherwise if it just jumps back to the end to play in reverse, it'll be jumpy, right?
- unfittoprint0
use onEnterFrame with a onRollOut event.
- XC010
"Study 08" does exactly what you are after, and the code is supplied.
http://flashtothecore.praystatio…
- XC010
just a "bump" in case you didn't see my suggestion.
(previous post)
- bokkus0
yes, thats exactly the type of thing what i was trying to figure out, thanks alot!