Groups | Blog | Home
all groups > flash (macromedia) > august 2004 >

flash (macromedia) : Reverse Button Animation


Andrew Caldwell
8/24/2004 11:52:07 PM
Code stupid here...

How do i go about making a button that will be animated on the rollover state and then reverse that animation on the rollout state?

a little ant
8/25/2004 12:30:16 AM
A similar question was asked recently (as it is often) (and shinchi and kglad
provided the answers.)

You can see it
http://www.macromedia.com/cfusion/webforums/forum/messageview.cfm?catid=288&thre
adid=875440&highlight_key=y#3132783
urami_
8/25/2004 9:05:59 AM


[quoted text, click to view]

Say , you have movie clip that has some motion tween from frame 1 to 10 , frame 1 stop(); action.

Give the movie clip instance name MC (select movie clip , hit CTRL F3 and key in the name )

On frame on the main timeline place the following action:

mc.onEnterFrame = function() {
if (fade) {
this.nextFrame();
} else {
this.prevFrame();
}
};
mc.onRollover = function() {
_root.fade = true;
};
mc.onRollout = function() {
_root.fade = false;
};
--


Regards


urami_*

<hol>
http://flashfugitive.com/
</hol>


By The way:
If you try to mail me , DO NOT *laugh*
AddThis Social Bookmark Button