all groups > flash actionscript > september 2005 >
You're in the

flash actionscript

group:

lock down hoverstate on button


Re: lock down hoverstate on button kglad
9/17/2005 12:00:00 AM
flash actionscript:
in the on(release) handler for your button, direct its timeline to its "over"
frame, direct the previous button to its "up" frame and define the previous
button to be "this" one:

on(release){
this.gotoAndStop("over");
prevBtn.gotoAndStop("up");
prevBtn=this;
}
lock down hoverstate on button nathan kadlac
9/17/2005 10:12:27 AM
I am looking for some quick advice/tutorial on having a series of
numbered rollover buttons in a row, where on(release), that button stays
in the over position. Then if you click the next number in a row, the
hover state turns off on the previous and locks on the new one. Sorry if
this is confusing. Thanks in advance!

Nate

p.s. I know these have to be mc's, and I know the code for doing all of
the rollovers, I just don't know how to lock a button in that certain
AddThis Social Bookmark Button