Does anyone know how to make a button turn inactive once you press it. Then turn active again when you press another button (beides it). like Flashinthecan
(top navigation bar)
I really like this technique and I want(*need) to implement it into my personal site Melodicmedia
If anyone knows this script please teach! share.
Last edited by steiner_99; 02-25-2004 at 08:35 PM.
What you learn is meant to be forgotten, so you can flow freely.
-Bruce Lee
1) create a movieclip that has two frames, each with a STOP()
2) in frame 1 put the 'button up' graphic and in frame 2 put the 'button down' graphic
3) drag three instances of the movieclip onto the stage
4) assign them Instance Names of button1, button2 and button3
5) add the following code to the first button
on (release) {
_root.button1.gotoAndStop(2);
_root.button2.gotoAndStop(1);
_root.button3.gotoAndStop(1);
}
6) add the following code to the second button
on (release) {
_root.button1.gotoAndStop(1);
_root.button2.gotoAndStop(2);
_root.button3.gotoAndStop(1);
}
7) add the following code to the third button
on (release) {
_root.button1.gotoAndStop(1);
_root.button2.gotoAndStop(1);
_root.button3.gotoAndStop(2);
}
That's it! You can add buttons easily, change the up/down states, etc.