Flash-problem


#1

I am trying to make a button. so that when u hover an animation plays and when u take it off the animation plays backwards returning it to its previous position. I would like to make it that when ever the mouse hovers it plays. but the way it is now is that when it is playing backwards and u bring the mouse bac, the animation finishes b4 it plays the hover action.

I hope u understand me. I need help please.


#2

uhmmm… I don’t get it…


#3

I want to make an interactive button so that it responds when the mouse hovers over it with an animation. How do i do that?


#4

so what if you attach de animacion in the OVER frame of the button ?


#5

it plays but when i take the mouse off it does not go back slowly to original position. It just jumps to the begining. I does not reverse. here is my tes site. try the buttons and see what I mean.: http://studentpages.scad.edu/~igoroh20


#6

this isn’t exactly what you want, but it will give the desired effect.

create a movie clip with the animation you want. then put an instance of it on the stage, select it, and paste this into the actionscript panel:

onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
this.nextFrame();
} else {
this.prevFrame();
}
}

that should take care of the animation part, but you will have to create an invisible button on top of the movie clip with the actual link in it.

good luck.


#7

Wow I am very greatful. U have helped me very much. Thank u. It worked. I will update the site soon.

Than u again!!!


#8

This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.