Category Archives: Button (Spark)

Applying styles to different states on a Spark Button control in Flex 4

The following example shows you how you can use the advanced CSS features in Flex 4 to apply different state-specific styles to a Spark Button control using CSS.

For more information on using advanced CSS, see the “CSS Advanced Selectors” specification on the Adobe Flex Open Source site.

Full code after the jump.

Continue reading Applying styles to different states on a Spark Button control in Flex 4

Using the new Fx prefix-less Flex Gumbo builds

The following example shows how you can use styles in a <Style/> block to style a Spark Button and TextInput control as well as a Halo Button and TextInput control.

To compile this example, you’ll need to download the nightly beta Flex Gumbo build 5873 (4.0.0.5873) or newer. The latest Gumbo SDK builds can be downloaded from the opensource.adobe.com site at http://opensource.adobe.com/wiki/display/flexsdk/Download+Flex+4.
For more information on the “Fx” prefix removal and API changes, see the “Dropping the Fx Prefix” page on the Flex Gumbo opensource.adobe.com site.
For more information on the new CSS namespaces and styling in Flex Gumbo, see the “Styling Component Parts” page on the Flex Gumbo opensource.adobe.com site.

Full code after the jump.

Continue reading Using the new Fx prefix-less Flex Gumbo builds