In a previous example, “Styling specific states in a Spark ToggleButton control in Flex 4″, we saw how to style specific states in a Flex 4 Spark ToggleButton control using CSS by specifying the state name after the control name in the <Script> block.
The following example shows how you can set styles on specific states on a Flex 4 Spark ToggleButton control using ActionScript.
Full code after the jump.
{ 0 comments }
