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 code after the jump.
Continue reading ‘Changing the RichTextEditor control’s style name in Flex’
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 2.0.1 documentation, “Overriding the default Application container styles“:
The Flex default style sheet defines a plain style name that sets all padding to 0 pixels, removes the default background image, sets the background color to white, and left-aligns the children.
Full code after the jump.
Continue reading ‘Setting a Flex application’s style name’
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.
Continue reading ‘Styling the HSlider control using CSS’
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.
Continue reading ‘Embedding images using style sheets and the <mx:Style> tag’