PDA

View Full Version : buttons -- keeping the "over" state after click


Mutex
04-23-2003, 01:08 PM
Howdy folks,
If some one has asked the same question then i'm sorry i must have missed it.

Here's the thing.
i have six buttons with which all have an "over" state.
when the person clicks the button i would like the over state to ramain "active" while they are on the respected page, (as to confirm which page there on). Then, when on to the next button the rollover effect still works as normal untill of course the persons decides to click releasing the "over" state on the previous button...thus repeating the effect.

The closest i can think of as an example would be in HTML like the "hover" state remaining active after onMouseout.

here is exactly what i'm after, but in flash. Ccheck out the buttons (links) and how they behave.

http://www.pr-vantage.com/clients.htm

skip intro and i think hopefully you'll know what i mean.

Once as always, thanks for your time and eventual help.
__________________

avatar
04-23-2003, 03:26 PM
Hi there,

I would use an MC instead of a button.
Give it three labels like your previous buttons. Thus an UP/OVER and DOWN label. Don't forget to add stop();
Than make an 'invisible' button with only the hit frame filled.
Place this button over your MC and add following code
on(rollover){
mc.gotoAndStop("OVER");
}


Say you have three buttons 'Cars', 'Chicks' and 'Beer'... ;)
I want to click from 'Cars' to 'Beer'. Put this on the 'Beer' button

on(press){
_root.position = "beer";
}

and this on your beer MC

onClipEvent(enterFrame){
if(_root.position = "beer"){
gotoAndStop("OVER");
}
}

red penguin
04-24-2003, 02:45 PM
Jesse did this one a while back:
link to the movie (http://www.actionscript.org/showMovie.php?id=311)