Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

reverse animation

Status
Not open for further replies.

wakkoguy

Technical User
Oct 30, 2001
84
US
hey
i want to do a reverse animation, now is there a way to do it with frames instead of a motion tween?

i want to do a rollover on a button and when the user rolls out, i want the animatio to reverse back to the button
 
You mean something like this:


Or...


Regards,
mywink2.gif
ldnewbie
 
I don't know about wakkoguy but i sure would like to see the file...

Thanks OldNewbie...

Sharky99 >:):O>
 
ya, both of those basically do the same thing, you've sent me the .fla for the button test but that had a motion tween in it, how do it without a motion tweens? (like frames) also could i see that .fla to the first link u gave me?
thanx!
 
hey that's what i want now how do i do it? i'm kinda new so i am trying to understand how to do it with just the .fla
 
The main code is this :


for the button movie_clip :

onClipEvent (load) {
this.stop();
}
onClipEvent (enterFrame) {
if (_root.movie1.direction == "forwards") {
this.gotoAndStop(this._currentframe+1);
}
if (_root.movie1.direction == "backwards") {
this.gotoAndStop(this._currentframe-1);
}
}


for the rollover action :

on (rollOver) {
_root.movie1.direction = "forwards";
}
on (rollOut) {
_root.movie1.direction = "backwards";
} Regards

Big Dave


** If I am wrong I am sorry, but i'm only trying to help!! **

 
now will this work without using a motion tween? i made a movie clip where everyframe has a keyframe in it
 
You don't need motion tween, it just plays the movie_clip backwards. Regards

Big Dave


** If I am wrong I am sorry, but i'm only trying to help!! **

 
ok i'm dumb! i can't figure out either of you guys's .fla's! is there a tutorial or something? i'm sorry thanx so much for helping me
 
It's simple really :

First, make your button with mouseover

Second, make your button into a movie_clip (if you havn't allready)

Next, name your movie clip on the stage

Next, put an on (rollover) {} and on(rollout) {} action on your button relating to your named movie_clip

Last, put the onClipevent(load) {} action on you button movie_clip Regards

Big Dave


** If I am wrong I am sorry, but i'm only trying to help!! **

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top