i have a menu with 5 different movie clips that i gave button functionality too.
when you move over each button, there _xscale and _yscale values = 125 (so they grow bigger). when you move off of the they go back to their orignal size.
my question is, how would i give them a hit state where they would stay at 125% until another button is hit then return to it's normal size? i would like to get this working so the visiter will know which section is currently selected.
here is some example code i got working:
on (rollOver, dragOver) {
varOver= 1;
}
on (rollOut, dragOut) {
varOver= 0;
this.gotoAndPlay("_Out");
}
If you attach this to each of your buttons, it will work for increasing and decreasing size on rollover. I did not know how you wanted to handle it if you have the first button expanded, and then you rollover the 2nd. Hopefully, this will give you enough to tweek and get the final effect. If not, let me know:
actually i wanted it to play an _Out animation i set up when you roll off the button.
when you press the button, i want it to stay resized-- until another button is pressed.
if you look at the animation i have working, the section title fills in with a redish color. i was trying to get it to tay filled in and resized on click.
hopefully my attached sample file will make since thanks!
as working as i got it is in the test file i attached a couple messages back.
i got the button to stay in the sized position and go back to it's normal size when you mouse over another button, but what i want it to do is stay sized on click only and when you click another button, have the last button you pressed go back to it's normal size.
another issue i'm having is getting the clicked button to stay filled in. the way it's set up, if you mouse over a button, i have it play an animation of the button getting filled in with a red color. when you mouse off the button, i have an animation play of the button unfilling itself.
if you check my code on the test file i'm sure you'll see how it is working.