This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Flash Site Design > July 2007 > Reverse Button Movie





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Reverse Button Movie
metaphiz

2007-07-18, 6:16 pm

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?

Rapatski

2007-07-19, 6:16 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.

Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews