all groups > macromedia flash sitedesign > july 2007 >
You're in the

macromedia flash sitedesign

group:

Reverse Button Movie


Reverse Button Movie metaphiz
7/18/2007 8:49:54 PM
macromedia flash sitedesign:
I have a button with a movie clip in the over state. The movie clip looks like
a camera panning up over an image of a person. so when you mouse over, you
start at the bottom of his necktie and move upward toward his face. When you
mouse off, I want the exact opposite to happen. If you are just at the bottom
of his neck, I want you to pan down from the bottom of his neck to the
beginning of the over state movie. So it's basically reversing however much of
the 'over' movie has played at the point where you mouse off. I'm not that
advanced as far as actionscript goes...is there a (fairly) simple way to do
this?
Re: Reverse Button Movie Rapatski
7/19/2007 8:49:23 PM
Yes there is.

button_mc.onRollOver = function() {
play();
}

button_mc.onRollOut = function() {
this.onEnterFrame = function() {
prevFrame();
}
}.

Or similar. In either case it's the prevFrame in combination with an
onEnterFrame event that you want to use if I understand your story correctly.
AddThis Social Bookmark Button