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 add and remove children from a Flex Accordion container by using the addChild() and removeChild() methods.
Full code after the jump.
Continue reading ‘Dynamically adding new children to a Flex Accordion container’
The following example shows how you can control the amount of text indenting on a progress bar label.
Full code after the jump.
Continue reading ‘Setting a Flex ProgressBar control’s text indent’