Skip navigation
kahilburn
Currently Being Moderated

Toggle button to "Down" when changing application state?

Aug 21, 2009 11:03 AM

I am trying to make a button component modal so that when I click it, the application changes to a different state and the button stays in the button "down" state. Then if I click a different button, the application state changes again, the first button changes to the "up" state and the second button changes to the "down" state. Basically, I want radio button actions, but on a styled button.

 

Is there a way to do this in Catalyst or do I have to handle this in the FB code?

 
Replies
  • Currently Being Moderated
    Aug 21, 2009 4:23 PM   in reply to kahilburn

    Here's a way to do it in Catalyst, assuming you have N states and N corresponding buttons:

    1. make each of your buttons a ToggleButton

    2. for each ToggleButton

         a. give it the action "Go To State <the corresponding state>"

         b. go to the corresponding state, and use the Properties Panel to set the ToggleButton's 'selected' property. It should be not selected in anyother states.


    The atached example file illustrates this. Let me know if this is what you were looking for...

     

    Mark Shepherd

    Flash Catalyst Engineering

    Attachments:
     
    |
    Mark as:
  • Currently Being Moderated
    Aug 21, 2009 4:56 PM   in reply to kahilburn

    In the current Beta 1 release, Convert Artwork to Component is not implemented for ToggleButton. But, there is a very good possibility that this will be available in an upcoming release.

     

    Mark S

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points