hello-
I am working on an animated button. There are two problems that I’ve encountered, and can’t find the answer to within the forum, so here it is…
I would like the movie animation of the “down” step to finish after the click is released. At the moment, when I release the click, the animation abrubtly cuts to the first frame of the “over” step… which leads me to my next dilemma.
What I would like to see is the animation of the down step to finish, and go back to the last frame of the “over” step, and stay that way until either A - the button is clicked again, or B - the cursor is dragged off the button.
Oh, and one last thing - could you explain the reverse animation on drag off to me as well???
I know it’s all a lot to ask, but your help would be MUCH appreciated. :chinaman:
[COLOR=red]Thanks-[/COLOR]
bnb
OK This is what I do:
I have a movie called ganjabar and inside that I have more movies. One movie per keyframe. So, Keyframe 2 inside the ganjabar MIGHT be the start of the animation and keyframe 3 would be the same but in reverse.
on (rollOver) {
ganjbar.gotoAndStop(2);
}
on (rollOut) {
ganjbar.gotoAndStop(3);
}
on (release) {
unloadMovieNum(2);
unloadMovieNum(3);
unloadMovieNum(4);
unloadMovieNum(5);
unloadMovieNum(6);
unloadMovieNum(7);
unloadMovieNum(8);
loadMovie("main01.swf",2);
}
You shouldn’t need all the unloads. I just had a few glitches so I added them and it helped my situation.
I think to do what you are wanting you will have to use movieclips as buttons. Use boolean variables to check if certian things have happened such as if the down state has finished, if the button has been released… etc
then use if statments in your on(){} command to tell your movie what to do. Just have a variable that is set to true when the down animation has finished and an if statment that does what you want if it’s true.
see below
Take a look, and let me know if someone out there can fix it for me…
Thanks,
bnb
You need to do it man