Embedding images using style sheets and the tag
Just when you thought I may have run out of Embed examples… Here’s a quick example of embedding an PNG icon using an <mx:Style> block. Full code after the jump. The following example creates a...
View ArticleStyling the HSlider control using CSS
The following example shows how you can style a HSlider (or VSlider) control in Flex using Cascading Style Sheets (CSS). Full code after the jump. View MXML <?xml version="1.0" encoding="utf-8"?>...
View ArticleSetting a Flex application’s style name
The following example shows how you can use the styleName style in a Flex Application to remove the background image, set the background color to white and left aligns the content. To quote the Flex...
View ArticleChanging the RichTextEditor control’s style name in Flex
The following example shows how you can change the style name for the Flex RichTextEditor control to the predefined “.opaquePanel” style, by setting the styleName property on the RichTextEditor. Full...
View ArticleSetting the label color on a CheckBox control in Flex
The following example shows how you can set the text and theme color on a Flex CheckBox control based on whether the control is selected or not. Full code after the jump. View MXML <?xml...
View ArticleDisplaying an icon on a toggle button in Flex 4
The following example shows how you can create a simple toggle button with an icon in Flex 4 by using the Spark ButtonBarButton control and specifying the icon in the data property, and then using a...
View ArticleApplying styles to specific Spark List controls in Flex 4
The following example shows how you can selectively style Spark List controls in Flex 4 using Advanced CSS and the styleName property or the id property. Full code after the jump. The following...
View ArticleSetting multiple style names on a Spark Button control in Flex 4
The following example shows how you can define multiple style names on a Spark Button control in Flex 4 by setting the styleName property to a space separated list of CSS style names. The following...
View ArticleSetting a custom icon on the MX Button control in Flex
The following example shows how you can use the MX TitleWindow container’s close button for an MX Button control icon and skin by setting the skinClass style. <?xml version="1.0"...
View Article