Skip to main content
June 16, 2008
Question

Button States change per user input

  • June 16, 2008
  • 3 replies
  • 347 views
I have 4 buttons displayed on a left navigation panel.When user first launch the window, I want button 1 to be in the selcted state while button2, button3 and button4 in unselected state but if the user clicked on any button, then the code resets button 1 to the unselected state.
This topic has been closed for replies.

3 replies

June 18, 2008
Hi Bob,

The first mistake is using the "button" type. They are very limited in functionality.

Change all of your buttons to type MovieClip and then change your code to the following:

Cheers,
FlashTastic
June 19, 2008
Hi,

This time it worked !!! Many million thanks for your help and patience. You truely a magician in coding. I learned something new with your guide and help.

bob
June 17, 2008
Make sure each button has the 'toggle' parameter set to true. You can change this by clicking on the button parameters tab in the property inspector. You can also do it with actionscript by writing button1.toggle = true, etc.

Cheers,
FlashTastic

June 18, 2008
Hi,

Thanks a lot for your help and support.

I tried the way you suggested me but with No luck. I have uploaded my file for your reviewal at
http://www.filefactory.com/file/7787f2/

Please check and guide me where did I make a mistake?
June 16, 2008
Something like this could work. Every time a button is pressed, all of the buttons' selected states are set to false, and then the button passed to the function is set to true.
June 17, 2008
Hi,

Thanks for your help and code.

However it did not work on my project! Dont know what went wrong! I renamed all my buttons as button1, button2 and so on and pasted the script on frame 1 actionscript layer. Can you help me in this?

Thanks a lot.