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...
Flash Catalyst Engineering
ToggleButtonStates.zip 19.5 K
This is exactly the behavior I was looking for. However, is there a way that I can "convert artwork" to a toggle button?
1 person found this helpful
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.
Thanks Mark. I read this that for now, if I want to enable toggle button capabilities for styled components, I have make this happen in Flash Builder. Is that correct?
I had some difficulty getting Catalyst to allow me to set the states of toggle buttons added to my project. So, I decided to create my own custom toggle button to give me the ability to fully style it. Here's the process I followed:
- converted my styled "normal" buttons back to artwork
- Converted the artwork to a custom component
- Created states for custom component for Unselected, Selected, Over, etc.
- Associated the artwork from Illustrator to the appropriate states for the custom component
- set the custom component state (e.g., unselected, selected...) for the each of the appropriate application states
- set the component action to "transition to state" when the custom component is "clicked"
- Renamed the custom component in the library to "CustomToggleButton"
- Exported the CustomToggleButton library component and then imported it so it was reusable in my library